@apexara/ng-components 1.0.6 → 1.0.7

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.
@@ -224,7 +224,9 @@ class ApexTableComponent {
224
224
  this.pageData.set(data);
225
225
  }
226
226
  updateVisibleRange(start, end) {
227
- this.visibleRange.set(`Showing ${start + 1} to ${end} of ${this._dataLength} results`);
227
+ // Grouped digits: "Showing 8,670,471 to 8,670,480 of 8,670,480 results".
228
+ const format = (value) => value.toLocaleString('en-US');
229
+ this.visibleRange.set(`Showing ${format(start + 1)} to ${format(end)} of ${format(this._dataLength)} results`);
228
230
  }
229
231
  calculateTotalPages() {
230
232
  this.totalPages.set(Math.ceil(this._dataLength / this.pageSize));
@@ -922,7 +924,7 @@ class ApexTableComponent {
922
924
  }
923
925
  }
924
926
  static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.1.2", ngImport: i0, type: ApexTableComponent, deps: [{ token: i0.ElementRef }, { token: i1.OSService }, { token: i2.FormBuilder }, { token: i1.ScrollBlockService }, { token: i0.Injector }], target: i0.ɵɵFactoryTarget.Component }); }
925
- static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "21.1.2", type: ApexTableComponent, isStandalone: true, selector: "apex-table", inputs: { data: "data", dataLength: "dataLength", columns: "columns", filter: "filter", serverSide: "serverSide", isLoading: "isLoading", sortIndex: "sortIndex", sortable: "sortable", sortDirection: "sortDirection", pageSize: "pageSize", currentPage: "currentPage", pageable: "pageable", pageSizeOptions: "pageSizeOptions", virtualScroll: "virtualScroll", tableMaxHeight: "tableMaxHeight", stickyHeader: "stickyHeader", editMode: "editMode", selectionPosition: "selectionPosition", selectionHeader: "selectionHeader" }, outputs: { tableChange: "tableChange", selectionChange: "selectionChange", editModeChange: "editModeChange", rowClick: "rowClick", cellChange: "cellChange", selectAllAcrossChange: "selectAllAcrossChange" }, host: { listeners: { "document:click": "onClick($event)", "document:scroll": "onScroll()", "window:resize": "onResize()" } }, viewQueries: [{ propertyName: "theadRef", first: true, predicate: ["theadRef"], descendants: true }, { propertyName: "cdkViewport", first: true, predicate: CdkVirtualScrollViewport, descendants: true }, { propertyName: "DropdownElement", first: true, predicate: ["dropdownElement"], descendants: true }, { propertyName: "textCellTpl", first: true, predicate: ["textCell"], descendants: true, static: true }, { propertyName: "numberCellTpl", first: true, predicate: ["numberCell"], descendants: true, static: true }, { propertyName: "currencyCellTpl", first: true, predicate: ["currencyCell"], descendants: true, static: true }, { propertyName: "numberMathCellTpl", first: true, predicate: ["numberMathCell"], descendants: true, static: true }, { propertyName: "dateCellTpl", first: true, predicate: ["dateCell"], descendants: true, static: true }, { propertyName: "chipCellTpl", first: true, predicate: ["chipCell"], descendants: true, static: true }, { propertyName: "checkboxCellTpl", first: true, predicate: ["checkboxCell"], descendants: true, static: true }, { propertyName: "actionCellTpl", first: true, predicate: ["actionCell"], descendants: true, static: true }, { propertyName: "listCellTpl", first: true, predicate: ["listCell"], descendants: true, static: true }, { propertyName: "statusCellTpl", first: true, predicate: ["statusCell"], descendants: true, static: true }, { propertyName: "selectCellTpl", first: true, predicate: ["selectCell"], descendants: true, static: true }, { propertyName: "moreActionsList", predicate: ["moreActionsList"], descendants: true }], usesOnChanges: true, ngImport: i0, template: "<div class=\"container\" [ngClass]=\"{ 'is-loading': isLoading, 'sticky-header': stickyHeader, 'header-stuck': isHeaderStuck() }\">\n <!-- Server-side \"select all matching\" banner: shown once the current page is\n fully selected and the filtered total exceeds the loaded page. -->\n @if (selectionHeader === 'checkbox' && serverSide && allSelected() && dataLength > pageData().length) {\n <div class=\"select-all-across\">\n @if (selectAllAcross()) {\n <span class=\"select-all-across-text\">All {{ dataLength | number }} selected.</span>\n <button type=\"button\" class=\"select-all-across-btn\" (click)=\"setSelectAllAcross(false)\">Clear selection</button>\n } @else {\n <span class=\"select-all-across-text\">All {{ pageData().length }} on this page are selected.</span>\n <button type=\"button\" class=\"select-all-across-btn\" (click)=\"setSelectAllAcross(true)\">Select all {{ dataLength | number }}</button>\n }\n </div>\n }\n\n @if (virtualScroll) {\n @if (stickyHeader) {\n <table class=\"sticky-virtual-header\">\n <thead>\n <ng-container *ngTemplateOutlet=\"headerRow\"></ng-container>\n </thead>\n </table>\n }\n\n <cdk-virtual-scroll-viewport [itemSize]=\"itemSize\" class=\"cdk-table-viewport\" [ngStyle]=\"{ height: virtualViewportHeight() + 'px' }\" [style.overflow-y]=\"showViewportScroll() ? 'auto' : 'hidden'\" (scrolled)=\"onViewportScroll()\">\n <table>\n @if (!stickyHeader) {\n <thead #theadRef>\n <ng-container *ngTemplateOutlet=\"headerRow\"></ng-container>\n </thead>\n }\n\n <tbody>\n <tr *cdkVirtualFor=\"let row of pageData(); trackBy: trackByIndex\"\n class=\"row-clickable\"\n [attr.tabindex]=\"rowClick.observed ? 0 : null\"\n [ngClass]=\"{ 'selected-row': editMode && isRowSelected(row) }\"\n (click)=\"onRowClick(row, $event)\"\n (keydown.enter)=\"onRowClick(row, $event)\">\n @if (editMode && selectionPosition === 'left') {\n <ng-container *ngTemplateOutlet=\"selectionBodyCell; context: { row: row }\"></ng-container>\n }\n\n @for (column of columns; track $index) {\n <td tabindex=\"-1\" [ngStyle]=\"{ width: column.width ? column.width : '' }\">\n <ng-container [ngTemplateOutlet]=\"getCellTemplate(column)\"\n [ngTemplateOutletContext]=\"{ row: row, column: column, $index: $index }\">\n </ng-container>\n </td>\n }\n\n @if (editMode && selectionPosition === 'right') {\n <ng-container *ngTemplateOutlet=\"selectionBodyCell; context: { row: row }\"></ng-container>\n }\n </tr>\n </tbody>\n </table>\n </cdk-virtual-scroll-viewport>\n } @else {\n <table>\n <thead>\n <ng-container *ngTemplateOutlet=\"headerRow\"></ng-container>\n </thead>\n\n <tbody>\n @for (row of pageData(); track $index) {\n <tr class=\"row-clickable\"\n [attr.tabindex]=\"rowClick.observed ? 0 : null\"\n [ngClass]=\"{ 'selected-row': editMode && isRowSelected(row) }\"\n (click)=\"onRowClick(row, $event)\"\n (keydown.enter)=\"onRowClick(row, $event)\">\n @if (editMode && selectionPosition === 'left') {\n <ng-container *ngTemplateOutlet=\"selectionBodyCell; context: { row: row }\"></ng-container>\n }\n\n @for (column of columns; track $index) {\n <td tabindex=\"-1\">\n <ng-container [ngTemplateOutlet]=\"getCellTemplate(column)\"\n [ngTemplateOutletContext]=\"{ row: row, column: column, $index: $index }\">\n </ng-container>\n </td>\n }\n\n @if (editMode && selectionPosition === 'right') {\n <ng-container *ngTemplateOutlet=\"selectionBodyCell; context: { row: row }\"></ng-container>\n }\n </tr>\n }\n </tbody>\n </table>\n }\n\n @if (currentActiveRow()?.isDropdown && currentActiveColumn()) {\n <ng-container *ngTemplateOutlet=\"multipleActionsDropdown; context: { row: currentActiveRow(), column: currentActiveColumn() }\"></ng-container>\n }\n\n @if (filter && filteredData() && filteredData().length === 0) {\n <div class=\"row no-data\">\n <span>No data matching the filter:</span>\n\n <span>\"{{ filter }}\"</span>\n </div>\n }\n\n @if (!filter && data && data.length === 0) {\n <div class=\"row no-data\">No data available.</div>\n }\n\n @if (pageable && pageData().length !== 0) {\n <div class=\"paging\">\n <div class=\"visible-range\">{{ visibleRange() }}</div>\n\n <ng-container *ngTemplateOutlet=\"pagePicker; context: { totalPages: totalPages() }\"></ng-container>\n\n <div class=\"page-size-option-picker\">\n <span>Items per page:</span>\n\n <apex-select class=\"table\" [options]=\"pageSizeSelectOptions\"></apex-select>\n </div>\n </div>\n }\n</div>\n\n<ng-template #textCell let-row=\"row\" let-column=\"column\" let-index=\"$index\">\n <div class=\"cell\"\n [ngClass]=\"[getClass(row, column), column.change ? 'has-change' : '', column.cellOptions?.icon ? 'has-icon' : '']\"\n [style.color]=\"getTextColor(row, column)\"\n [attr.contenteditable]=\"column.editable\"\n (keyup)=\"cellEdit($event, column.value, index)\">\n\n @if (getCellIcon(row, column) && column.cellOptions?.iconPosition !== 'right') {\n <div class=\"cell-icon\" [class.has-color]=\"getCellIconColor(row, column)\" [style.--apex-table-cell-icon-fill]=\"getCellIconColor(row, column)\" [style.--apex-table-cell-icon-stroke]=\"getCellIconColor(row, column)\">\n <apex-img [src]=\"'assets/img/' + getCellIcon(row, column)\" [alt]=\"'Cell icon.'\"></apex-img>\n </div>\n }\n\n <span class=\"cell-text\">{{ column.prefix ? column.prefix : '' }}{{ getDescendantProp(row, column) }}{{ column.suffix ? column.suffix : '' }}</span>\n\n @if (getCellIcon(row, column) && column.cellOptions?.iconPosition === 'right') {\n <div class=\"cell-icon\" [class.has-color]=\"getCellIconColor(row, column)\" [style.--apex-table-cell-icon-fill]=\"getCellIconColor(row, column)\" [style.--apex-table-cell-icon-stroke]=\"getCellIconColor(row, column)\">\n <apex-img [src]=\"'assets/img/' + getCellIcon(row, column)\" [alt]=\"'Cell icon.'\"></apex-img>\n </div>\n }\n\n @if (getChangeValue(row, column) !== null) {\n <apex-chip [ngClass]=\"getChangeValue(row, column)! >= 0 ? 'change-positive' : 'change-negative'\">\n {{ getChangeValue(row, column)! >= 0 ? '+' : '' }}{{ getChangeValue(row, column) }}%\n </apex-chip>\n }\n </div>\n</ng-template>\n\n<ng-template #dateCell let-row=\"row\" let-column=\"column\">\n <div class=\"cell\"\n [ngClass]=\"getClass(row, column)\">\n {{ formatDate(getDescendantProp(row, column), column.dateFormat) }}\n </div>\n</ng-template>\n\n<ng-template #currencyCell let-row=\"row\" let-column=\"column\">\n <div class=\"cell\"\n [ngClass]=\"[getClass(row, column), column.change ? 'has-change' : '']\">\n\n @if (getDescendantProp(row, column) !== undefined) {\n {{ column.prefix ? column.prefix : '' }}{{ (getDescendantProp(row, column) / 100) | number }}\n }\n\n @if (getChangeValue(row, column) !== null) {\n <apex-chip [ngClass]=\"getChangeValue(row, column)! >= 0 ? 'change-positive' : 'change-negative'\">\n {{ getChangeValue(row, column)! >= 0 ? '+' : '' }}{{ getChangeValue(row, column) }}%\n </apex-chip>\n }\n </div>\n</ng-template>\n\n<ng-template #numberCell let-row=\"row\" let-column=\"column\" let-index=\"i\">\n <div class=\"cell\"\n [ngClass]=\"[getClass(row, column), column.change ? 'has-change' : '']\"\n [attr.contenteditable]=\"column.editable\"\n (keyup)=\"cellEdit($event, column.value, index)\">\n\n {{ column.prefix ? column.prefix : '' }}{{ getDescendantProp(row, column) | number}}{{ column.suffix ? column.suffix : '' }}\n\n @if (getChangeValue(row, column) !== null) {\n <apex-chip [ngClass]=\"getChangeValue(row, column)! >= 0 ? 'change-positive' : 'change-negative'\">\n {{ getChangeValue(row, column)! >= 0 ? '+' : '' }}{{ getChangeValue(row, column) }}%\n </apex-chip>\n }\n </div>\n</ng-template>\n\n<ng-template #numberMathCell let-row=\"row\" let-column=\"column\" let-index=\"i\">\n <div class=\"cell\"\n [ngClass]=\"[getClass(row, column), column.change ? 'has-change' : '']\"\n [attr.contenteditable]=\"column.editable\"\n (keyup)=\"cellEdit($event, column.value, index)\">\n\n {{ column.prefix ? column.prefix : '' }}{{ getDescendantProp(row, column) | number}}{{ column.suffix ? column.suffix : '' }}\n\n @if (getChangeValue(row, column) !== null) {\n <apex-chip [ngClass]=\"getChangeValue(row, column)! >= 0 ? 'change-positive' : 'change-negative'\">\n {{ getChangeValue(row, column)! >= 0 ? '+' : '' }}{{ getChangeValue(row, column) }}%\n </apex-chip>\n }\n </div>\n</ng-template>\n\n<ng-template #actionCell let-row=\"row\" let-column=\"column\">\n <div class=\"cell actions\">\n\n @for (action of column.singleActions; track $index) {\n @if (handleActionShow(action, row, column)) {\n <div ApexTooltip role=\"button\" [attr.tabindex]=\"action.disabled ? -1 : 0\" [attr.aria-label]=\"action.label\" [attr.aria-disabled]=\"action.disabled ? 'true' : null\" (click)=\"action.execute && action.execute(row)\" (keydown.enter)=\"action.execute && action.execute(row)\" (keydown.space)=\"$event.preventDefault(); action.execute && action.execute(row)\" [apexTooltip]=\"action.label\" [tooltipPosition]=\"tooltipPosition.Above\" class=\"action-icon-wrapper\" [ngClass]=\"{ 'disabled': action.disabled }\">\n <apex-img [src]=\" 'assets/img/' + action.icon\" [ngClass]=\"action.class\" [alt]=\"''\"></apex-img>\n </div>\n }\n }\n\n @if (column.multipleActions) {\n <div class=\"action-icon-wrapper\" #moreActionsList role=\"button\" tabindex=\"0\" aria-label=\"More actions\" aria-haspopup=\"menu\" [attr.aria-expanded]=\"row.isDropdown ? 'true' : 'false'\" [ngClass]=\"{ 'opened': row.isDropdown }\" (click)=\"toggleActionDropdown(row, column, $event)\" (keydown.enter)=\"toggleActionDropdown(row, column, $event)\">\n <svg class=\"multiple-action-icon\" aria-hidden=\"true\" xmlns=\"http://www.w3.org/2000/svg\" width=\"16\" height=\"16\" viewBox=\"0 0 17 16\" fill=\"none\">\n <path d=\"M10.3047 8C10.3047 8.34612 10.2021 8.68446 10.0098 8.97225C9.81747 9.26004 9.54416 9.48434 9.22438 9.61679C8.90461 9.74924 8.55275 9.7839 8.21328 9.71638C7.87381 9.64885 7.56199 9.48218 7.31725 9.23744C7.07251 8.9927 6.90584 8.68088 6.83831 8.34141C6.77079 8.00194 6.80545 7.65008 6.9379 7.33031C7.07035 7.01053 7.29465 6.73722 7.58244 6.54493C7.87023 6.35264 8.20857 6.25 8.55469 6.25C9.01868 6.25046 9.46353 6.43498 9.79162 6.76307C10.1197 7.09116 10.3042 7.53601 10.3047 8ZM8.55469 4.75C8.90081 4.75 9.23915 4.64737 9.52694 4.45507C9.81472 4.26278 10.039 3.98947 10.1715 3.6697C10.3039 3.34993 10.3386 2.99806 10.2711 2.65859C10.2035 2.31913 10.0369 2.00731 9.79213 1.76256C9.54738 1.51782 9.23556 1.35115 8.8961 1.28363C8.55663 1.2161 8.20476 1.25076 7.88499 1.38321C7.56522 1.51566 7.29191 1.73997 7.09962 2.02775C6.90732 2.31554 6.80469 2.65388 6.80469 3C6.80515 3.46399 6.98967 3.90884 7.31776 4.23693C7.64585 4.56502 8.0907 4.74954 8.55469 4.75ZM8.55469 11.25C8.20857 11.25 7.87023 11.3526 7.58244 11.5449C7.29465 11.7372 7.07035 12.0105 6.9379 12.3303C6.80545 12.6501 6.77079 13.0019 6.83831 13.3414C6.90584 13.6809 7.07251 13.9927 7.31725 14.2374C7.56199 14.4822 7.87381 14.6489 8.21328 14.7164C8.55275 14.7839 8.90461 14.7492 9.22438 14.6168C9.54416 14.4843 9.81747 14.26 10.0098 13.9722C10.2021 13.6845 10.3047 13.3461 10.3047 13C10.3042 12.536 10.1197 12.0912 9.79162 11.7631C9.46353 11.435 9.01868 11.2505 8.55469 11.25Z\"/>\n </svg>\n </div>\n }\n\n </div>\n</ng-template>\n\n<ng-template #chipCell let-row=\"row\" let-column=\"column\">\n <div class=\"cell chip\" [class.chips]=\"isChipArray(row, column)\">\n @if (isChipArray(row, column)) {\n @for (chip of getChipsVisible(row, column); track $index) {\n <apex-chip [ngClass]=\"getClass(row, column)\"\n [style.--apex-chip-color]=\"getChipValueColor(chip.value, column)\"\n [style.--apex-chip-background-color]=\"getChipValueBackground(chip.value, column)\">{{ chip.label }}</apex-chip>\n }\n\n @if (getChipsOverflowCount(row, column) > 0) {\n <apex-chip class=\"list-overflow-badge\"\n ApexTooltip\n [apexTooltip]=\"getChipsTooltip(row, column)\"\n [tooltipPosition]=\"tooltipPosition.Below\">\n +{{ getChipsOverflowCount(row, column) }}\n </apex-chip>\n }\n } @else if (getChipLabel(row, column)) {\n <apex-chip [ngClass]=\"getClass(row, column)\"\n [style.--apex-chip-color]=\"getChipColor(row, column)\"\n [style.--apex-chip-background-color]=\"getChipBackgroundColor(row, column)\"> {{ getChipLabel(row, column) }}</apex-chip>\n }\n </div>\n</ng-template>\n\n<ng-template #statusCell let-row=\"row\" let-column=\"column\">\n <div class=\"cell status\">\n @for (step of column.statusSteps; track step.value; let i = $index) {\n <div class=\"status-step\" [class.completed]=\"isStatusStepCompleted(row, column, i)\">\n <span class=\"status-step-label\">{{ step.label }}</span>\n\n <div class=\"status-step-bar\"\n [style.background-color]=\"isStatusStepCompleted(row, column, i) ? step.color : null\">\n </div>\n </div>\n }\n </div>\n</ng-template>\n\n<ng-template #listCell let-row=\"row\" let-column=\"column\">\n <div class=\"cell list\">\n <span class=\"list-text\">{{ getListDisplayText(row, column) }}</span>\n\n @if (getListOverflowCount(row, column) > 0) {\n <apex-chip class=\"list-overflow-badge\"\n ApexTooltip\n [apexTooltip]=\"getListTooltipContent(row, column)\"\n [tooltipPosition]=\"tooltipPosition.Below\">\n +{{ getListOverflowCount(row, column) }}\n </apex-chip>\n }\n </div>\n</ng-template>\n\n<ng-template #checkboxCell let-row=\"row\" let-column=\"column\">\n <div class=\"cell checkbox\">\n <apex-checkbox [checked]=\"getCheckboxState(row, column)\" [disabled]=\"true\"></apex-checkbox>\n </div>\n</ng-template>\n\n<ng-template #selectCell let-row=\"row\" let-column=\"column\">\n <div class=\"cell cell-select\" (click)=\"$event.stopPropagation()\">\n <apex-select\n [options]=\"getSelectCellOptions(row, column)\"\n [style.--apex-select-input-text-color]=\"getSelectCellColor(row, column)\"\n [style.--apex-select-arrow-color]=\"getSelectCellColor(row, column)\"\n (selectChange)=\"onCellSelectChange(row, column, $event)\"></apex-select>\n </div>\n</ng-template>\n\n<ng-template #multipleActionsDropdown let-row=\"row\" let-column=\"column\">\n <div #multipleActionsDropdownElement #dropdownElement class=\"more-actions-dropdown\">\n @for (action of column.multipleActions; track $index) {\n\n @if (handleActionShow(action, row, column)) {\n <div class=\"dropdown-row\" role=\"button\" tabindex=\"0\" (click)=\"action.execute && action.execute(row)\" (keydown.enter)=\"action.execute && action.execute(row)\" (keydown.space)=\"$event.preventDefault(); action.execute && action.execute(row)\">\n <apex-img [src]=\"'assets/img/' + action.icon\" [ngClass]=\"action.class\" [alt]=\"''\"></apex-img>\n\n <span>{{ action.label }}</span>\n </div>\n }\n\n }\n </div>\n</ng-template>\n\n<ng-template #pagePicker let-totalPages=\"totalPages\">\n <div class=\"page-picker\">\n <!-- If page one should be visible -->\n @if (currentPage + 1 >= 3) {\n <span role=\"button\" tabindex=\"0\" aria-label=\"Page 1\" (click)=\"goToPage(0)\" (keydown.enter)=\"goToPage(0)\">1</span>\n <span class=\"style-excluded\" aria-hidden=\"true\">...</span>\n }\n\n <!-- Middle part of the page-picker -->\n <ng-container *ngTemplateOutlet=\"page; context: { page: currentPage - 1 } \"></ng-container>\n <ng-container *ngTemplateOutlet=\"page; context: { page: currentPage, class: 'highlighted' } \"></ng-container>\n <ng-container *ngTemplateOutlet=\"page; context: { page: currentPage + 1 } \"></ng-container>\n\n <!-- If last page should be visible -->\n @if (currentPage + 1 <= totalPages - 2) {\n <span class=\"style-excluded\" aria-hidden=\"true\">...</span>\n <span role=\"button\" tabindex=\"0\" [attr.aria-label]=\"'Page ' + totalPages\" (click)=\"goToPage(totalPages - 1)\" (keydown.enter)=\"goToPage(totalPages - 1)\">{{ totalPages }}</span>\n }\n\n </div>\n</ng-template>\n\n<ng-template #page let-page=\"page\" let-class=\"class\">\n @if (page >= 0 && page < totalPages()) {\n <span [ngClass]=\"class\" role=\"button\" tabindex=\"0\" [attr.aria-label]=\"'Page ' + (page + 1)\" [attr.aria-current]=\"class === 'highlighted' ? 'page' : null\" (click)=\"goToPage(page)\" (keydown.enter)=\"goToPage(page)\">{{ page + 1 }}</span>\n }\n</ng-template>\n\n<ng-template #headerRow>\n <tr>\n @if (editMode && selectionPosition === 'left') {\n <ng-container *ngTemplateOutlet=\"selectionHeaderCell\"></ng-container>\n }\n\n @for (column of columns; track $index) {\n <th scope=\"col\" [attr.aria-sort]=\"sortable && columns.indexOf(column) === sortIndex ? (sortDirection === 'asc' ? 'ascending' : 'descending') : null\" [ngStyle]=\"{ width: column.width ? column.width : '' }\">\n <div class=\"cell\">\n <span>{{ column.label }}</span>\n\n @if (column.type !== TableColumnType.Actions && sortable) {\n <div class=\"arranger\" role=\"button\" tabindex=\"0\" [attr.aria-label]=\"'Sort by ' + column.label\" (click)=\"sortColumn(column)\" (keydown.enter)=\"sortColumn(column)\" (keydown.space)=\"$event.preventDefault(); sortColumn(column)\">\n <svg xmlns=\"http://www.w3.org/2000/svg\" width=\"14\" height=\"14\" viewBox=\"0 0 12 12\" fill=\"none\" aria-hidden=\"true\">\n <path d=\"M3.11445 5.50005H8.88795C9.31895 5.50005 9.54795 4.99005 9.26145 4.66755L6.37495 1.42005C6.32813 1.3672 6.27063 1.32489 6.20624 1.29591C6.14186 1.26694 6.07205 1.25195 6.00145 1.25195C5.93084 1.25195 5.86104 1.26694 5.79666 1.29591C5.73227 1.32489 5.67477 1.3672 5.62795 1.42005L2.74045 4.66755C2.45395 4.99005 2.68295 5.50005 3.11445 5.50005ZM5.62745 10.5795C5.67427 10.6324 5.73177 10.6747 5.79616 10.7037C5.86054 10.7327 5.93034 10.7476 6.00095 10.7476C6.07155 10.7476 6.14136 10.7327 6.20574 10.7037C6.27013 10.6747 6.32763 10.6324 6.37445 10.5795L9.26095 7.33205C9.54795 7.01005 9.31895 6.50005 8.88745 6.50005H3.11445C2.68345 6.50005 2.45445 7.01005 2.74095 7.33255L5.62745 10.5795Z\" fill=\"#C6C6C6\"/>\n </svg>\n </div>\n }\n </div>\n </th>\n }\n\n @if (editMode && selectionPosition === 'right') {\n <ng-container *ngTemplateOutlet=\"selectionHeaderCell\"></ng-container>\n }\n </tr>\n</ng-template>\n\n<ng-template #selectionHeaderCell>\n <th scope=\"col\" class=\"select-column\" (click)=\"selectionHeader === 'checkbox' ? toggleSelectAll() : null\">\n <div class=\"cell\" [class.checkbox]=\"selectionHeader === 'checkbox'\">\n @if (selectionHeader === 'checkbox') {\n <apex-checkbox [checked]=\"allSelected()\"></apex-checkbox>\n } @else {\n <span class=\"select-all-btn\" role=\"button\" tabindex=\"0\" (click)=\"toggleSelectAll()\" (keydown.enter)=\"toggleSelectAll()\" (keydown.space)=\"$event.preventDefault(); toggleSelectAll()\">{{ allSelected() ? 'Deselect' : 'Select all' }}</span>\n }\n </div>\n </th>\n</ng-template>\n\n<ng-template #selectionBodyCell let-row=\"row\">\n <td class=\"select-column\" (click)=\"toggleRowSelection(row, $event)\">\n <div class=\"cell checkbox\">\n <apex-checkbox [checked]=\"isRowSelected(row)\"></apex-checkbox>\n </div>\n </td>\n</ng-template>\n", styles: [":host{display:block;touch-action:manipulation}.container{width:100%;position:relative;overflow:auto;padding:24px 0}.cdk-table-viewport{width:100%;display:block;overflow:auto;scrollbar-gutter:stable}.cdk-table-viewport .cdk-virtual-scroll-content-wrapper{width:100%;display:block}table{width:100%;text-align:center;table-layout:fixed;border-collapse:collapse}thead tr{border:none}.sticky-header{overflow:visible}.sticky-header table{border-collapse:separate;border-spacing:0}.sticky-header th{position:sticky;top:0;z-index:1}.header-stuck th{background-color:var(--apex-table-header-background-color, #ffffff)}tr{height:42px;vertical-align:middle;border-bottom:1px solid var(--apex-table-row-bottom-border-color, #e9e9e9)}tbody tr.row-clickable{cursor:pointer;transition:background-color .15s ease}tbody tr.row-clickable:hover{background-color:var(--apex-table-row-hover-background-color, #f7f7f7)}th{min-width:60px;-webkit-user-select:none;user-select:none;font-weight:500;font-size:14px;color:var(--apex-table-first-row-text-color, #5d6068)}th .cell{display:flex;justify-content:center;align-items:center}td{scrollbar-width:thin;overflow:auto;text-overflow:clip;font-size:14px}td:focus{outline:none}td .cell{text-wrap:nowrap}apex-chip{max-width:100%;--apex-chip-background-color: #fff2ef;--apex-chip-color: #f96138}.cell.has-change{display:flex;align-items:center;justify-content:center}.cell.has-icon{display:flex;align-items:center;justify-content:center;gap:8px;font-size:13px;font-weight:600;line-height:20px}.cell-icon{width:16px;height:16px;min-width:16px;display:flex;align-items:center;justify-content:center}.cell-icon apex-img{width:16px;height:16px;display:flex;align-items:center;justify-content:center}.cell-icon.has-color path{fill:var(--apex-table-cell-icon-fill);stroke:var(--apex-table-cell-icon-stroke)}.cell.has-icon .cell-text{color:inherit}apex-chip.change-positive{--apex-chip-background-color: var( --apex-table-change-positive-background, #e6f9f0 );--apex-chip-color: var(--apex-table-change-positive-color, #00b67a);margin-left:8px}apex-chip.change-negative{--apex-chip-background-color: var( --apex-table-change-negative-background, #fff2ef );--apex-chip-color: var(--apex-table-change-negative-color, #f96138);margin-left:8px}.cell{line-height:16px;box-sizing:border-box}.cell span{margin-right:4px}.cell-select{--apex-select-input-border-width: 0;--apex-select-input-placeholder-color: #9A9A9A}.cell-select apex-select{width:100%}.cell.checkbox{display:flex;justify-content:center;align-items:center;--apex-checkbox-disabled-opacity: 1}.select-column .cell.checkbox apex-checkbox{pointer-events:none}.select-column .cell.checkbox{width:100%}.cell.list{display:flex;align-items:center;justify-content:flex-start;gap:8px}.list-text{white-space:nowrap;overflow:hidden;text-overflow:ellipsis}apex-chip.list-overflow-badge{--apex-chip-background-color: var( --apex-table-list-overflow-background, transparent );--apex-chip-color: var(--apex-table-list-overflow-color, #ffa753);--apex-chip-font-size: 13px;--apex-chip-height: 20px;--apex-chip-padding: 0 4px;--apex-chip-border-width: 1px;--apex-chip-border-color: var( --apex-table-list-overflow-border-color, #ffefe1 );--apex-chip-border-radius: 5px;cursor:default;flex-shrink:0;font-weight:500;line-height:20px;letter-spacing:0}.cell.actions{display:flex;justify-content:center;align-items:center;gap:4px}.cell.actions apex-img{width:16px;height:16px}.cell.chip{display:flex;justify-content:center;align-items:center}.cell.chip .primary{--apex-chip-background-color: var(--apex-table-chip-background-color);--apex-chip-color: var(--apex-table-chip-color)}.cell.chip .secondary{--apex-chip-background-color: var( --apex-table-chip-background-color-secondary );--apex-chip-color: var(--apex-table-chip-color-secondary)}.cell.chip.chips{flex-wrap:nowrap;justify-content:flex-start;min-width:0;overflow:hidden;gap:4px}.cell.chip.chips apex-chip:not(.list-overflow-badge){min-width:0;overflow:hidden;--apex-chip-background-color: var(--apex-table-chips-background, #f1e8ff);--apex-chip-color: var(--apex-table-chips-color, #000000);--apex-chip-font-size: 12px;--apex-chip-height: 28px;--apex-chip-padding: 4px 10px;--apex-chip-border-radius: 6px}.cell.status{display:flex;align-items:center;gap:var(--apex-table-status-gap, 8px)}.status-step{display:flex;flex-direction:column;gap:4px;min-width:0;flex:1}.status-step-label{font-size:12px;line-height:16px;color:var(--apex-table-status-label-color, #888b95);white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.status-step.completed .status-step-label{color:var(--apex-table-status-label-completed-color, #191b22);font-weight:600}.status-step-bar{height:var(--apex-table-status-bar-height, 3px);border-radius:2px;background-color:var(--apex-table-status-incomplete-color, #e5e7eb)}.select-column{width:80px;min-width:80px;max-width:80px}.select-all-btn{cursor:pointer;font-size:var(--apex-table-select-all-font-size, 12px);font-weight:var(--apex-table-select-all-font-weight, 600);color:var(--apex-table-select-all-color, #f96138);background-color:var(--apex-table-select-all-background-color, transparent);text-wrap:nowrap}.select-all-btn:hover{color:var(--apex-table-select-all-hover-color, #e0562f)}tr.selected-row{background-color:var(--apex-table-selected-row-background-color, #fff7f5)}.no-data{display:flex;justify-content:center;font-size:14px;margin-top:16px}.more-actions-dropdown{min-width:184px;width:fit-content;position:fixed;background-color:var( --apex-table-more-actions-dropdown-background-color, #ffffff );border-radius:8px;box-shadow:0 4px 8px #d6d6d659;z-index:10}.dropdown-row{height:44px;display:flex;align-items:center;justify-content:flex-start;font-size:14px;font-weight:500;box-sizing:border-box;overflow:visible;cursor:pointer;background-color:var( --apex-table-more-actions-dropdown-background-color, #ffffff );padding:0 12px}.dropdown-row:hover{background-color:var( --apex-table-more-actions-dropdown-hover-background-color, #f3f3f3 )}.dropdown-row apex-img{width:20px;height:20px}.dropdown-row apex-img path{fill:var(--apex-table-dropdown-action-icon-fill, #5d6068);stroke:var(--apex-table-dropdown-action-icon-stroke, #ffffff00)}.dropdown-row:hover apex-img path{fill:var(--apex-table-action-icon-hover-fill, #f96138);stroke:var(--apex-table-action-icon-hover-stroke, #ffffff00)}.dropdown-row span{margin:0 12px;text-wrap:nowrap}.is-loading{opacity:.5;pointer-events:none}.container.is-loading:after{width:0px;height:2px;content:\" \";position:sticky;top:0;left:-50%;display:block;background-color:var(--apex-table-loading-bar-color, #ff7f50);animation:lineAnimation 1s linear infinite;border-radius:20px;z-index:1}.action-icon-wrapper{width:36px;height:36px;display:flex;align-items:center;justify-content:center;cursor:pointer}.action-icon-wrapper:not(.disabled):hover{border-radius:4px;background:var(--apex-table-action-hover-background-color, #f7f8fb)}.action-icon-wrapper apex-img path{fill:var(--apex-table-action-icon-fill, #5d6068);stroke:var(--apex-table-action-icon-stroke, #ffffff00)}.action-icon-wrapper:not(.disabled):hover apex-img path{fill:var(--apex-table-action-icon-hover-fill, #f96138);stroke:var(--apex-table-action-icon-hover-stroke, #ffffff00)}.multiple-action-icon path{fill:var(--apex-table-action-more-icon-default-fill, #5d6068);stroke:var(--apex-table-action-more-icon-default-stroke, #ffffff00)}.action-icon-wrapper:not(.disabled):hover svg path,.opened .multiple-action-icon path{fill:var(--apex-table-action-more-icon-fill, #f96138);stroke:var(--apex-table-action-more-icon-stroke, #ffffff00)}.action-icon-wrapper apex-img.secondary path{fill:var(--apex-table-action-secondary-icon-fill, #f96138);stroke:var(--apex-table-action-secondary-icon-stroke, #ffffff00)}.action-icon-wrapper:not(.disabled):hover apex-img.secondary path{fill:var(--apex-table-action-secondary-icon-hover-fill, #5d6068);stroke:var(--apex-table-action-secondary-icon-hover-stroke, #ffffff00)}.arranger{width:14px;height:14px;cursor:pointer}.arranger svg:hover{transform:scale(1.15)}.paging{display:flex;justify-content:space-between;align-items:center;font-size:14px;font-weight:600;-webkit-user-select:none;user-select:none;margin-top:12px}.paging .items-per-page{line-height:10px;margin-right:8px}.mobile .visible-range{margin:0 12px}.page-picker{display:flex;justify-content:center;gap:14px}.page-picker span{min-width:24px;height:24px;display:flex;flex-direction:column;justify-content:center;align-items:center;text-align:center;border-radius:24px;gap:10px;transition:color .25s,background-color .25s}.page-picker span.highlighted,.page-picker span:hover:not(.style-excluded){cursor:pointer;color:var(--apex-table-page-picker-text-color, #fff);background:var(--apex-table-page-picker-background, #f96138)}.page-size-option-picker{display:flex;align-items:center}.page-size-option-picker span{text-wrap:nowrap;margin-right:8px}@media(max-width:940px){.paging{flex-direction:column;row-gap:16px;margin-top:24px}.visible-range{order:1}}@keyframes lineAnimation{0%{width:0px}50%{left:20%;width:80%}to{left:100%;width:100%}}.select-all-across{display:flex;align-items:center;justify-content:center;gap:6px;padding:8px 12px;font-size:13px;color:var(--apex-table-select-all-across-text-color, #5d6068);background-color:var(--apex-table-select-all-across-background-color, #fff7f5);border-bottom:1px solid var(--apex-table-row-bottom-border-color, #e9e9e9)}.select-all-across-btn{padding:0;border:none;background:none;font:inherit;font-weight:600;color:var(--apex-table-select-all-color, #f96138);cursor:pointer}.select-all-across-btn:hover{text-decoration:underline}\n"], dependencies: [{ kind: "directive", type: NgStyle, selector: "[ngStyle]", inputs: ["ngStyle"] }, { kind: "directive", type: NgClass, selector: "[ngClass]", inputs: ["class", "ngClass"] }, { kind: "directive", type: NgTemplateOutlet, selector: "[ngTemplateOutlet]", inputs: ["ngTemplateOutletContext", "ngTemplateOutlet", "ngTemplateOutletInjector"] }, { kind: "component", type: ApexChipComponent, selector: "apex-chip", inputs: ["closeIcon", "options"], outputs: ["closeChange"] }, { kind: "component", type: ApexImageComponent, selector: "apex-img", inputs: ["src", "alt", "loading"] }, { kind: "component", type: ApexSelectComponent, selector: "apex-select", inputs: ["options"], outputs: ["selectChange", "helperTextChange"] }, { kind: "directive", type: ApexTooltipDirective, selector: "[apexTooltip]", inputs: ["apexTooltip", "tooltipPosition"] }, { kind: "component", type: ApexCheckboxComponent, selector: "apex-checkbox", inputs: ["checked", "disabled", "tooltip", "options"], outputs: ["clickChange"] }, { kind: "ngmodule", type: ScrollingModule }, { kind: "directive", type: i3.CdkFixedSizeVirtualScroll, selector: "cdk-virtual-scroll-viewport[itemSize]", inputs: ["itemSize", "minBufferPx", "maxBufferPx"] }, { kind: "directive", type: i3.CdkVirtualForOf, selector: "[cdkVirtualFor][cdkVirtualForOf]", inputs: ["cdkVirtualForOf", "cdkVirtualForTrackBy", "cdkVirtualForTemplate", "cdkVirtualForTemplateCacheSize"] }, { kind: "component", type: i3.CdkVirtualScrollViewport, selector: "cdk-virtual-scroll-viewport", inputs: ["orientation", "appendOnly"], outputs: ["scrolledIndexChange"] }, { kind: "pipe", type: DecimalPipe, name: "number" }] }); }
927
+ static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "21.1.2", type: ApexTableComponent, isStandalone: true, selector: "apex-table", inputs: { data: "data", dataLength: "dataLength", columns: "columns", filter: "filter", serverSide: "serverSide", isLoading: "isLoading", sortIndex: "sortIndex", sortable: "sortable", sortDirection: "sortDirection", pageSize: "pageSize", currentPage: "currentPage", pageable: "pageable", pageSizeOptions: "pageSizeOptions", virtualScroll: "virtualScroll", tableMaxHeight: "tableMaxHeight", stickyHeader: "stickyHeader", editMode: "editMode", selectionPosition: "selectionPosition", selectionHeader: "selectionHeader" }, outputs: { tableChange: "tableChange", selectionChange: "selectionChange", editModeChange: "editModeChange", rowClick: "rowClick", cellChange: "cellChange", selectAllAcrossChange: "selectAllAcrossChange" }, host: { listeners: { "document:click": "onClick($event)", "document:scroll": "onScroll()", "window:resize": "onResize()" } }, viewQueries: [{ propertyName: "theadRef", first: true, predicate: ["theadRef"], descendants: true }, { propertyName: "cdkViewport", first: true, predicate: CdkVirtualScrollViewport, descendants: true }, { propertyName: "DropdownElement", first: true, predicate: ["dropdownElement"], descendants: true }, { propertyName: "textCellTpl", first: true, predicate: ["textCell"], descendants: true, static: true }, { propertyName: "numberCellTpl", first: true, predicate: ["numberCell"], descendants: true, static: true }, { propertyName: "currencyCellTpl", first: true, predicate: ["currencyCell"], descendants: true, static: true }, { propertyName: "numberMathCellTpl", first: true, predicate: ["numberMathCell"], descendants: true, static: true }, { propertyName: "dateCellTpl", first: true, predicate: ["dateCell"], descendants: true, static: true }, { propertyName: "chipCellTpl", first: true, predicate: ["chipCell"], descendants: true, static: true }, { propertyName: "checkboxCellTpl", first: true, predicate: ["checkboxCell"], descendants: true, static: true }, { propertyName: "actionCellTpl", first: true, predicate: ["actionCell"], descendants: true, static: true }, { propertyName: "listCellTpl", first: true, predicate: ["listCell"], descendants: true, static: true }, { propertyName: "statusCellTpl", first: true, predicate: ["statusCell"], descendants: true, static: true }, { propertyName: "selectCellTpl", first: true, predicate: ["selectCell"], descendants: true, static: true }, { propertyName: "moreActionsList", predicate: ["moreActionsList"], descendants: true }], usesOnChanges: true, ngImport: i0, template: "<div class=\"container\" [ngClass]=\"{ 'is-loading': isLoading, 'sticky-header': stickyHeader, 'header-stuck': isHeaderStuck() }\">\n <!-- Server-side \"select all matching\" banner: shown once the current page is\n fully selected and the filtered total exceeds the loaded page. -->\n @if (selectionHeader === 'checkbox' && serverSide && allSelected() && dataLength > pageData().length) {\n <div class=\"select-all-across\">\n @if (selectAllAcross()) {\n <span class=\"select-all-across-text\">All {{ dataLength | number }} selected.</span>\n <button type=\"button\" class=\"select-all-across-btn\" (click)=\"setSelectAllAcross(false)\">Clear selection</button>\n } @else {\n <span class=\"select-all-across-text\">All {{ pageData().length }} on this page are selected.</span>\n <button type=\"button\" class=\"select-all-across-btn\" (click)=\"setSelectAllAcross(true)\">Select all {{ dataLength | number }}</button>\n }\n </div>\n }\n\n @if (virtualScroll) {\n @if (stickyHeader) {\n <table class=\"sticky-virtual-header\">\n <thead>\n <ng-container *ngTemplateOutlet=\"headerRow\"></ng-container>\n </thead>\n </table>\n }\n\n <cdk-virtual-scroll-viewport [itemSize]=\"itemSize\" class=\"cdk-table-viewport\" [ngStyle]=\"{ height: virtualViewportHeight() + 'px' }\" [style.overflow-y]=\"showViewportScroll() ? 'auto' : 'hidden'\" (scrolled)=\"onViewportScroll()\">\n <table>\n @if (!stickyHeader) {\n <thead #theadRef>\n <ng-container *ngTemplateOutlet=\"headerRow\"></ng-container>\n </thead>\n }\n\n <tbody>\n <tr *cdkVirtualFor=\"let row of pageData(); trackBy: trackByIndex\"\n class=\"row-clickable\"\n [attr.tabindex]=\"rowClick.observed ? 0 : null\"\n [ngClass]=\"{ 'selected-row': editMode && isRowSelected(row) }\"\n (click)=\"onRowClick(row, $event)\"\n (keydown.enter)=\"onRowClick(row, $event)\">\n @if (editMode && selectionPosition === 'left') {\n <ng-container *ngTemplateOutlet=\"selectionBodyCell; context: { row: row }\"></ng-container>\n }\n\n @for (column of columns; track $index) {\n <td tabindex=\"-1\" [ngStyle]=\"{ width: column.width ? column.width : '' }\">\n <ng-container [ngTemplateOutlet]=\"getCellTemplate(column)\"\n [ngTemplateOutletContext]=\"{ row: row, column: column, $index: $index }\">\n </ng-container>\n </td>\n }\n\n @if (editMode && selectionPosition === 'right') {\n <ng-container *ngTemplateOutlet=\"selectionBodyCell; context: { row: row }\"></ng-container>\n }\n </tr>\n </tbody>\n </table>\n </cdk-virtual-scroll-viewport>\n } @else {\n <table>\n <thead>\n <ng-container *ngTemplateOutlet=\"headerRow\"></ng-container>\n </thead>\n\n <tbody>\n @for (row of pageData(); track $index) {\n <tr class=\"row-clickable\"\n [attr.tabindex]=\"rowClick.observed ? 0 : null\"\n [ngClass]=\"{ 'selected-row': editMode && isRowSelected(row) }\"\n (click)=\"onRowClick(row, $event)\"\n (keydown.enter)=\"onRowClick(row, $event)\">\n @if (editMode && selectionPosition === 'left') {\n <ng-container *ngTemplateOutlet=\"selectionBodyCell; context: { row: row }\"></ng-container>\n }\n\n @for (column of columns; track $index) {\n <td tabindex=\"-1\">\n <ng-container [ngTemplateOutlet]=\"getCellTemplate(column)\"\n [ngTemplateOutletContext]=\"{ row: row, column: column, $index: $index }\">\n </ng-container>\n </td>\n }\n\n @if (editMode && selectionPosition === 'right') {\n <ng-container *ngTemplateOutlet=\"selectionBodyCell; context: { row: row }\"></ng-container>\n }\n </tr>\n }\n </tbody>\n </table>\n }\n\n @if (currentActiveRow()?.isDropdown && currentActiveColumn()) {\n <ng-container *ngTemplateOutlet=\"multipleActionsDropdown; context: { row: currentActiveRow(), column: currentActiveColumn() }\"></ng-container>\n }\n\n @if (filter && filteredData() && filteredData().length === 0) {\n <div class=\"row no-data\">\n <span>No data matching the filter:</span>\n\n <span>\"{{ filter }}\"</span>\n </div>\n }\n\n @if (!filter && data && data.length === 0) {\n <div class=\"row no-data\">No data available.</div>\n }\n\n @if (pageable && pageData().length !== 0) {\n <div class=\"paging\">\n <div class=\"visible-range\">{{ visibleRange() }}</div>\n\n <ng-container *ngTemplateOutlet=\"pagePicker; context: { totalPages: totalPages() }\"></ng-container>\n\n <div class=\"page-size-option-picker\">\n <span>Items per page:</span>\n\n <apex-select class=\"table\" [options]=\"pageSizeSelectOptions\"></apex-select>\n </div>\n </div>\n }\n</div>\n\n<ng-template #textCell let-row=\"row\" let-column=\"column\" let-index=\"$index\">\n <div class=\"cell\"\n [ngClass]=\"[getClass(row, column), column.change ? 'has-change' : '', column.cellOptions?.icon ? 'has-icon' : '']\"\n [style.color]=\"getTextColor(row, column)\"\n [attr.contenteditable]=\"column.editable\"\n (keyup)=\"cellEdit($event, column.value, index)\">\n\n @if (getCellIcon(row, column) && column.cellOptions?.iconPosition !== 'right') {\n <div class=\"cell-icon\" [class.has-color]=\"getCellIconColor(row, column)\" [style.--apex-table-cell-icon-fill]=\"getCellIconColor(row, column)\" [style.--apex-table-cell-icon-stroke]=\"getCellIconColor(row, column)\">\n <apex-img [src]=\"'assets/img/' + getCellIcon(row, column)\" [alt]=\"'Cell icon.'\"></apex-img>\n </div>\n }\n\n <span class=\"cell-text\">{{ column.prefix ? column.prefix : '' }}{{ getDescendantProp(row, column) }}{{ column.suffix ? column.suffix : '' }}</span>\n\n @if (getCellIcon(row, column) && column.cellOptions?.iconPosition === 'right') {\n <div class=\"cell-icon\" [class.has-color]=\"getCellIconColor(row, column)\" [style.--apex-table-cell-icon-fill]=\"getCellIconColor(row, column)\" [style.--apex-table-cell-icon-stroke]=\"getCellIconColor(row, column)\">\n <apex-img [src]=\"'assets/img/' + getCellIcon(row, column)\" [alt]=\"'Cell icon.'\"></apex-img>\n </div>\n }\n\n @if (getChangeValue(row, column) !== null) {\n <apex-chip [ngClass]=\"getChangeValue(row, column)! >= 0 ? 'change-positive' : 'change-negative'\">\n {{ getChangeValue(row, column)! >= 0 ? '+' : '' }}{{ getChangeValue(row, column) }}%\n </apex-chip>\n }\n </div>\n</ng-template>\n\n<ng-template #dateCell let-row=\"row\" let-column=\"column\">\n <div class=\"cell\"\n [ngClass]=\"getClass(row, column)\">\n {{ formatDate(getDescendantProp(row, column), column.dateFormat) }}\n </div>\n</ng-template>\n\n<ng-template #currencyCell let-row=\"row\" let-column=\"column\">\n <div class=\"cell\"\n [ngClass]=\"[getClass(row, column), column.change ? 'has-change' : '']\">\n\n @if (getDescendantProp(row, column) !== undefined) {\n {{ column.prefix ? column.prefix : '' }}{{ (getDescendantProp(row, column) / 100) | number }}\n }\n\n @if (getChangeValue(row, column) !== null) {\n <apex-chip [ngClass]=\"getChangeValue(row, column)! >= 0 ? 'change-positive' : 'change-negative'\">\n {{ getChangeValue(row, column)! >= 0 ? '+' : '' }}{{ getChangeValue(row, column) }}%\n </apex-chip>\n }\n </div>\n</ng-template>\n\n<ng-template #numberCell let-row=\"row\" let-column=\"column\" let-index=\"i\">\n <div class=\"cell\"\n [ngClass]=\"[getClass(row, column), column.change ? 'has-change' : '']\"\n [attr.contenteditable]=\"column.editable\"\n (keyup)=\"cellEdit($event, column.value, index)\">\n\n {{ column.prefix ? column.prefix : '' }}{{ getDescendantProp(row, column) | number}}{{ column.suffix ? column.suffix : '' }}\n\n @if (getChangeValue(row, column) !== null) {\n <apex-chip [ngClass]=\"getChangeValue(row, column)! >= 0 ? 'change-positive' : 'change-negative'\">\n {{ getChangeValue(row, column)! >= 0 ? '+' : '' }}{{ getChangeValue(row, column) }}%\n </apex-chip>\n }\n </div>\n</ng-template>\n\n<ng-template #numberMathCell let-row=\"row\" let-column=\"column\" let-index=\"i\">\n <div class=\"cell\"\n [ngClass]=\"[getClass(row, column), column.change ? 'has-change' : '']\"\n [attr.contenteditable]=\"column.editable\"\n (keyup)=\"cellEdit($event, column.value, index)\">\n\n {{ column.prefix ? column.prefix : '' }}{{ getDescendantProp(row, column) | number}}{{ column.suffix ? column.suffix : '' }}\n\n @if (getChangeValue(row, column) !== null) {\n <apex-chip [ngClass]=\"getChangeValue(row, column)! >= 0 ? 'change-positive' : 'change-negative'\">\n {{ getChangeValue(row, column)! >= 0 ? '+' : '' }}{{ getChangeValue(row, column) }}%\n </apex-chip>\n }\n </div>\n</ng-template>\n\n<ng-template #actionCell let-row=\"row\" let-column=\"column\">\n <div class=\"cell actions\">\n\n @for (action of column.singleActions; track $index) {\n @if (handleActionShow(action, row, column)) {\n <div ApexTooltip role=\"button\" [attr.tabindex]=\"action.disabled ? -1 : 0\" [attr.aria-label]=\"action.label\" [attr.aria-disabled]=\"action.disabled ? 'true' : null\" (click)=\"action.execute && action.execute(row)\" (keydown.enter)=\"action.execute && action.execute(row)\" (keydown.space)=\"$event.preventDefault(); action.execute && action.execute(row)\" [apexTooltip]=\"action.label\" [tooltipPosition]=\"tooltipPosition.Above\" class=\"action-icon-wrapper\" [ngClass]=\"{ 'disabled': action.disabled }\">\n <apex-img [src]=\" 'assets/img/' + action.icon\" [ngClass]=\"action.class\" [alt]=\"''\"></apex-img>\n </div>\n }\n }\n\n @if (column.multipleActions) {\n <div class=\"action-icon-wrapper\" #moreActionsList role=\"button\" tabindex=\"0\" aria-label=\"More actions\" aria-haspopup=\"menu\" [attr.aria-expanded]=\"row.isDropdown ? 'true' : 'false'\" [ngClass]=\"{ 'opened': row.isDropdown }\" (click)=\"toggleActionDropdown(row, column, $event)\" (keydown.enter)=\"toggleActionDropdown(row, column, $event)\">\n <svg class=\"multiple-action-icon\" aria-hidden=\"true\" xmlns=\"http://www.w3.org/2000/svg\" width=\"16\" height=\"16\" viewBox=\"0 0 17 16\" fill=\"none\">\n <path d=\"M10.3047 8C10.3047 8.34612 10.2021 8.68446 10.0098 8.97225C9.81747 9.26004 9.54416 9.48434 9.22438 9.61679C8.90461 9.74924 8.55275 9.7839 8.21328 9.71638C7.87381 9.64885 7.56199 9.48218 7.31725 9.23744C7.07251 8.9927 6.90584 8.68088 6.83831 8.34141C6.77079 8.00194 6.80545 7.65008 6.9379 7.33031C7.07035 7.01053 7.29465 6.73722 7.58244 6.54493C7.87023 6.35264 8.20857 6.25 8.55469 6.25C9.01868 6.25046 9.46353 6.43498 9.79162 6.76307C10.1197 7.09116 10.3042 7.53601 10.3047 8ZM8.55469 4.75C8.90081 4.75 9.23915 4.64737 9.52694 4.45507C9.81472 4.26278 10.039 3.98947 10.1715 3.6697C10.3039 3.34993 10.3386 2.99806 10.2711 2.65859C10.2035 2.31913 10.0369 2.00731 9.79213 1.76256C9.54738 1.51782 9.23556 1.35115 8.8961 1.28363C8.55663 1.2161 8.20476 1.25076 7.88499 1.38321C7.56522 1.51566 7.29191 1.73997 7.09962 2.02775C6.90732 2.31554 6.80469 2.65388 6.80469 3C6.80515 3.46399 6.98967 3.90884 7.31776 4.23693C7.64585 4.56502 8.0907 4.74954 8.55469 4.75ZM8.55469 11.25C8.20857 11.25 7.87023 11.3526 7.58244 11.5449C7.29465 11.7372 7.07035 12.0105 6.9379 12.3303C6.80545 12.6501 6.77079 13.0019 6.83831 13.3414C6.90584 13.6809 7.07251 13.9927 7.31725 14.2374C7.56199 14.4822 7.87381 14.6489 8.21328 14.7164C8.55275 14.7839 8.90461 14.7492 9.22438 14.6168C9.54416 14.4843 9.81747 14.26 10.0098 13.9722C10.2021 13.6845 10.3047 13.3461 10.3047 13C10.3042 12.536 10.1197 12.0912 9.79162 11.7631C9.46353 11.435 9.01868 11.2505 8.55469 11.25Z\"/>\n </svg>\n </div>\n }\n\n </div>\n</ng-template>\n\n<ng-template #chipCell let-row=\"row\" let-column=\"column\">\n <div class=\"cell chip\" [class.chips]=\"isChipArray(row, column)\">\n @if (isChipArray(row, column)) {\n @for (chip of getChipsVisible(row, column); track $index) {\n <apex-chip [ngClass]=\"getClass(row, column)\"\n [style.--apex-chip-color]=\"getChipValueColor(chip.value, column)\"\n [style.--apex-chip-background-color]=\"getChipValueBackground(chip.value, column)\">{{ chip.label }}</apex-chip>\n }\n\n @if (getChipsOverflowCount(row, column) > 0) {\n <apex-chip class=\"list-overflow-badge\"\n ApexTooltip\n [apexTooltip]=\"getChipsTooltip(row, column)\"\n [tooltipPosition]=\"tooltipPosition.Below\">\n +{{ getChipsOverflowCount(row, column) }}\n </apex-chip>\n }\n } @else if (getChipLabel(row, column)) {\n <apex-chip [ngClass]=\"getClass(row, column)\"\n [style.--apex-chip-color]=\"getChipColor(row, column)\"\n [style.--apex-chip-background-color]=\"getChipBackgroundColor(row, column)\"> {{ getChipLabel(row, column) }}</apex-chip>\n }\n </div>\n</ng-template>\n\n<ng-template #statusCell let-row=\"row\" let-column=\"column\">\n <div class=\"cell status\">\n @for (step of column.statusSteps; track step.value; let i = $index) {\n <div class=\"status-step\" [class.completed]=\"isStatusStepCompleted(row, column, i)\">\n <span class=\"status-step-label\">{{ step.label }}</span>\n\n <div class=\"status-step-bar\"\n [style.background-color]=\"isStatusStepCompleted(row, column, i) ? step.color : null\">\n </div>\n </div>\n }\n </div>\n</ng-template>\n\n<ng-template #listCell let-row=\"row\" let-column=\"column\">\n <div class=\"cell list\">\n <span class=\"list-text\">{{ getListDisplayText(row, column) }}</span>\n\n @if (getListOverflowCount(row, column) > 0) {\n <apex-chip class=\"list-overflow-badge\"\n ApexTooltip\n [apexTooltip]=\"getListTooltipContent(row, column)\"\n [tooltipPosition]=\"tooltipPosition.Below\">\n +{{ getListOverflowCount(row, column) }}\n </apex-chip>\n }\n </div>\n</ng-template>\n\n<ng-template #checkboxCell let-row=\"row\" let-column=\"column\">\n <div class=\"cell checkbox\">\n <apex-checkbox [checked]=\"getCheckboxState(row, column)\" [disabled]=\"true\"></apex-checkbox>\n </div>\n</ng-template>\n\n<ng-template #selectCell let-row=\"row\" let-column=\"column\">\n <div class=\"cell cell-select\" (click)=\"$event.stopPropagation()\">\n <apex-select\n [options]=\"getSelectCellOptions(row, column)\"\n [style.--apex-select-input-text-color]=\"getSelectCellColor(row, column)\"\n [style.--apex-select-arrow-color]=\"getSelectCellColor(row, column)\"\n (selectChange)=\"onCellSelectChange(row, column, $event)\"></apex-select>\n </div>\n</ng-template>\n\n<ng-template #multipleActionsDropdown let-row=\"row\" let-column=\"column\">\n <div #multipleActionsDropdownElement #dropdownElement class=\"more-actions-dropdown\">\n @for (action of column.multipleActions; track $index) {\n\n @if (handleActionShow(action, row, column)) {\n <div class=\"dropdown-row\" role=\"button\" tabindex=\"0\" (click)=\"action.execute && action.execute(row)\" (keydown.enter)=\"action.execute && action.execute(row)\" (keydown.space)=\"$event.preventDefault(); action.execute && action.execute(row)\">\n <apex-img [src]=\"'assets/img/' + action.icon\" [ngClass]=\"action.class\" [alt]=\"''\"></apex-img>\n\n <span>{{ action.label }}</span>\n </div>\n }\n\n }\n </div>\n</ng-template>\n\n<ng-template #pagePicker let-totalPages=\"totalPages\">\n <div class=\"page-picker\">\n <!-- If page one should be visible -->\n @if (currentPage + 1 >= 3) {\n <span role=\"button\" tabindex=\"0\" aria-label=\"Page 1\" (click)=\"goToPage(0)\" (keydown.enter)=\"goToPage(0)\">1</span>\n <span class=\"style-excluded\" aria-hidden=\"true\">...</span>\n }\n\n <!-- Middle part of the page-picker -->\n <ng-container *ngTemplateOutlet=\"page; context: { page: currentPage - 1 } \"></ng-container>\n <ng-container *ngTemplateOutlet=\"page; context: { page: currentPage, class: 'highlighted' } \"></ng-container>\n <ng-container *ngTemplateOutlet=\"page; context: { page: currentPage + 1 } \"></ng-container>\n\n <!-- If last page should be visible -->\n @if (currentPage + 1 <= totalPages - 2) {\n <span class=\"style-excluded\" aria-hidden=\"true\">...</span>\n <span role=\"button\" tabindex=\"0\" [attr.aria-label]=\"'Page ' + totalPages\" (click)=\"goToPage(totalPages - 1)\" (keydown.enter)=\"goToPage(totalPages - 1)\">{{ totalPages | number }}</span>\n }\n\n </div>\n</ng-template>\n\n<ng-template #page let-page=\"page\" let-class=\"class\">\n @if (page >= 0 && page < totalPages()) {\n <span [ngClass]=\"class\" role=\"button\" tabindex=\"0\" [attr.aria-label]=\"'Page ' + (page + 1)\" [attr.aria-current]=\"class === 'highlighted' ? 'page' : null\" (click)=\"goToPage(page)\" (keydown.enter)=\"goToPage(page)\">{{ page + 1 | number }}</span>\n }\n</ng-template>\n\n<ng-template #headerRow>\n <tr>\n @if (editMode && selectionPosition === 'left') {\n <ng-container *ngTemplateOutlet=\"selectionHeaderCell\"></ng-container>\n }\n\n @for (column of columns; track $index) {\n <th scope=\"col\" [attr.aria-sort]=\"sortable && columns.indexOf(column) === sortIndex ? (sortDirection === 'asc' ? 'ascending' : 'descending') : null\" [ngStyle]=\"{ width: column.width ? column.width : '' }\">\n <div class=\"cell\">\n <span>{{ column.label }}</span>\n\n @if (column.type !== TableColumnType.Actions && sortable) {\n <div class=\"arranger\" role=\"button\" tabindex=\"0\" [attr.aria-label]=\"'Sort by ' + column.label\" (click)=\"sortColumn(column)\" (keydown.enter)=\"sortColumn(column)\" (keydown.space)=\"$event.preventDefault(); sortColumn(column)\">\n <svg xmlns=\"http://www.w3.org/2000/svg\" width=\"14\" height=\"14\" viewBox=\"0 0 12 12\" fill=\"none\" aria-hidden=\"true\">\n <path d=\"M3.11445 5.50005H8.88795C9.31895 5.50005 9.54795 4.99005 9.26145 4.66755L6.37495 1.42005C6.32813 1.3672 6.27063 1.32489 6.20624 1.29591C6.14186 1.26694 6.07205 1.25195 6.00145 1.25195C5.93084 1.25195 5.86104 1.26694 5.79666 1.29591C5.73227 1.32489 5.67477 1.3672 5.62795 1.42005L2.74045 4.66755C2.45395 4.99005 2.68295 5.50005 3.11445 5.50005ZM5.62745 10.5795C5.67427 10.6324 5.73177 10.6747 5.79616 10.7037C5.86054 10.7327 5.93034 10.7476 6.00095 10.7476C6.07155 10.7476 6.14136 10.7327 6.20574 10.7037C6.27013 10.6747 6.32763 10.6324 6.37445 10.5795L9.26095 7.33205C9.54795 7.01005 9.31895 6.50005 8.88745 6.50005H3.11445C2.68345 6.50005 2.45445 7.01005 2.74095 7.33255L5.62745 10.5795Z\" fill=\"#C6C6C6\"/>\n </svg>\n </div>\n }\n </div>\n </th>\n }\n\n @if (editMode && selectionPosition === 'right') {\n <ng-container *ngTemplateOutlet=\"selectionHeaderCell\"></ng-container>\n }\n </tr>\n</ng-template>\n\n<ng-template #selectionHeaderCell>\n <th scope=\"col\" class=\"select-column\" (click)=\"selectionHeader === 'checkbox' ? toggleSelectAll() : null\">\n <div class=\"cell\" [class.checkbox]=\"selectionHeader === 'checkbox'\">\n @if (selectionHeader === 'checkbox') {\n <apex-checkbox [checked]=\"allSelected()\"></apex-checkbox>\n } @else {\n <span class=\"select-all-btn\" role=\"button\" tabindex=\"0\" (click)=\"toggleSelectAll()\" (keydown.enter)=\"toggleSelectAll()\" (keydown.space)=\"$event.preventDefault(); toggleSelectAll()\">{{ allSelected() ? 'Deselect' : 'Select all' }}</span>\n }\n </div>\n </th>\n</ng-template>\n\n<ng-template #selectionBodyCell let-row=\"row\">\n <td class=\"select-column\" (click)=\"toggleRowSelection(row, $event)\">\n <div class=\"cell checkbox\">\n <apex-checkbox [checked]=\"isRowSelected(row)\"></apex-checkbox>\n </div>\n </td>\n</ng-template>\n", styles: [":host{display:block;touch-action:manipulation}.container{width:100%;position:relative;overflow:auto;padding:24px 0}.cdk-table-viewport{width:100%;display:block;overflow:auto;scrollbar-gutter:stable}.cdk-table-viewport .cdk-virtual-scroll-content-wrapper{width:100%;display:block}table{width:100%;text-align:center;table-layout:fixed;border-collapse:collapse}thead tr{border:none}.sticky-header{overflow:visible}.sticky-header table{border-collapse:separate;border-spacing:0}.sticky-header th{position:sticky;top:0;z-index:1}.header-stuck th{background-color:var(--apex-table-header-background-color, #ffffff)}tr{height:42px;vertical-align:middle;border-bottom:1px solid var(--apex-table-row-bottom-border-color, #e9e9e9)}tbody tr.row-clickable{cursor:pointer;transition:background-color .15s ease}tbody tr.row-clickable:hover{background-color:var(--apex-table-row-hover-background-color, #f7f7f7)}th{min-width:60px;-webkit-user-select:none;user-select:none;font-weight:500;font-size:14px;color:var(--apex-table-first-row-text-color, #5d6068)}th .cell{display:flex;justify-content:center;align-items:center}td{scrollbar-width:thin;overflow:auto;text-overflow:clip;font-size:14px}td:focus{outline:none}td .cell{text-wrap:nowrap}apex-chip{max-width:100%;--apex-chip-background-color: #fff2ef;--apex-chip-color: #f96138}.cell.has-change{display:flex;align-items:center;justify-content:center}.cell.has-icon{display:flex;align-items:center;justify-content:center;gap:8px;font-size:13px;font-weight:600;line-height:20px}.cell-icon{width:16px;height:16px;min-width:16px;display:flex;align-items:center;justify-content:center}.cell-icon apex-img{width:16px;height:16px;display:flex;align-items:center;justify-content:center}.cell-icon.has-color path{fill:var(--apex-table-cell-icon-fill);stroke:var(--apex-table-cell-icon-stroke)}.cell.has-icon .cell-text{color:inherit}apex-chip.change-positive{--apex-chip-background-color: var( --apex-table-change-positive-background, #e6f9f0 );--apex-chip-color: var(--apex-table-change-positive-color, #00b67a);margin-left:8px}apex-chip.change-negative{--apex-chip-background-color: var( --apex-table-change-negative-background, #fff2ef );--apex-chip-color: var(--apex-table-change-negative-color, #f96138);margin-left:8px}.cell{line-height:16px;box-sizing:border-box}.cell span{margin-right:4px}.cell-select{--apex-select-input-border-width: 0;--apex-select-input-placeholder-color: #9A9A9A}.cell-select apex-select{width:100%}.cell.checkbox{display:flex;justify-content:center;align-items:center;--apex-checkbox-disabled-opacity: 1}.select-column .cell.checkbox apex-checkbox{pointer-events:none}.select-column .cell.checkbox{width:100%}.cell.list{display:flex;align-items:center;justify-content:flex-start;gap:8px}.list-text{white-space:nowrap;overflow:hidden;text-overflow:ellipsis}apex-chip.list-overflow-badge{--apex-chip-background-color: var( --apex-table-list-overflow-background, transparent );--apex-chip-color: var(--apex-table-list-overflow-color, #ffa753);--apex-chip-font-size: 13px;--apex-chip-height: 20px;--apex-chip-padding: 0 4px;--apex-chip-border-width: 1px;--apex-chip-border-color: var( --apex-table-list-overflow-border-color, #ffefe1 );--apex-chip-border-radius: 5px;cursor:default;flex-shrink:0;font-weight:500;line-height:20px;letter-spacing:0}.cell.actions{display:flex;justify-content:center;align-items:center;gap:4px}.cell.actions apex-img{width:16px;height:16px}.cell.chip{display:flex;justify-content:center;align-items:center}.cell.chip .primary{--apex-chip-background-color: var(--apex-table-chip-background-color);--apex-chip-color: var(--apex-table-chip-color)}.cell.chip .secondary{--apex-chip-background-color: var( --apex-table-chip-background-color-secondary );--apex-chip-color: var(--apex-table-chip-color-secondary)}.cell.chip.chips{flex-wrap:nowrap;justify-content:flex-start;min-width:0;overflow:hidden;gap:4px}.cell.chip.chips apex-chip:not(.list-overflow-badge){min-width:0;overflow:hidden;--apex-chip-background-color: var(--apex-table-chips-background, #f1e8ff);--apex-chip-color: var(--apex-table-chips-color, #000000);--apex-chip-font-size: 12px;--apex-chip-height: 28px;--apex-chip-padding: 4px 10px;--apex-chip-border-radius: 6px}.cell.status{display:flex;align-items:center;gap:var(--apex-table-status-gap, 8px)}.status-step{display:flex;flex-direction:column;gap:4px;min-width:0;flex:1}.status-step-label{font-size:12px;line-height:16px;color:var(--apex-table-status-label-color, #888b95);white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.status-step.completed .status-step-label{color:var(--apex-table-status-label-completed-color, #191b22);font-weight:600}.status-step-bar{height:var(--apex-table-status-bar-height, 3px);border-radius:2px;background-color:var(--apex-table-status-incomplete-color, #e5e7eb)}.select-column{width:80px;min-width:80px;max-width:80px}.select-all-btn{cursor:pointer;font-size:var(--apex-table-select-all-font-size, 12px);font-weight:var(--apex-table-select-all-font-weight, 600);color:var(--apex-table-select-all-color, #f96138);background-color:var(--apex-table-select-all-background-color, transparent);text-wrap:nowrap}.select-all-btn:hover{color:var(--apex-table-select-all-hover-color, #e0562f)}tr.selected-row{background-color:var(--apex-table-selected-row-background-color, #fff7f5)}.no-data{display:flex;justify-content:center;font-size:14px;margin-top:16px}.more-actions-dropdown{min-width:184px;width:fit-content;position:fixed;background-color:var( --apex-table-more-actions-dropdown-background-color, #ffffff );border-radius:8px;box-shadow:0 4px 8px #d6d6d659;z-index:10}.dropdown-row{height:44px;display:flex;align-items:center;justify-content:flex-start;font-size:14px;font-weight:500;box-sizing:border-box;overflow:visible;cursor:pointer;background-color:var( --apex-table-more-actions-dropdown-background-color, #ffffff );padding:0 12px}.dropdown-row:hover{background-color:var( --apex-table-more-actions-dropdown-hover-background-color, #f3f3f3 )}.dropdown-row apex-img{width:20px;height:20px}.dropdown-row apex-img path{fill:var(--apex-table-dropdown-action-icon-fill, #5d6068);stroke:var(--apex-table-dropdown-action-icon-stroke, #ffffff00)}.dropdown-row:hover apex-img path{fill:var(--apex-table-action-icon-hover-fill, #f96138);stroke:var(--apex-table-action-icon-hover-stroke, #ffffff00)}.dropdown-row span{margin:0 12px;text-wrap:nowrap}.is-loading{opacity:.5;pointer-events:none}.container.is-loading:after{width:0px;height:2px;content:\" \";position:sticky;top:0;left:-50%;display:block;background-color:var(--apex-table-loading-bar-color, #ff7f50);animation:lineAnimation 1s linear infinite;border-radius:20px;z-index:1}.action-icon-wrapper{width:36px;height:36px;display:flex;align-items:center;justify-content:center;cursor:pointer}.action-icon-wrapper:not(.disabled):hover{border-radius:4px;background:var(--apex-table-action-hover-background-color, #f7f8fb)}.action-icon-wrapper apex-img path{fill:var(--apex-table-action-icon-fill, #5d6068);stroke:var(--apex-table-action-icon-stroke, #ffffff00)}.action-icon-wrapper:not(.disabled):hover apex-img path{fill:var(--apex-table-action-icon-hover-fill, #f96138);stroke:var(--apex-table-action-icon-hover-stroke, #ffffff00)}.multiple-action-icon path{fill:var(--apex-table-action-more-icon-default-fill, #5d6068);stroke:var(--apex-table-action-more-icon-default-stroke, #ffffff00)}.action-icon-wrapper:not(.disabled):hover svg path,.opened .multiple-action-icon path{fill:var(--apex-table-action-more-icon-fill, #f96138);stroke:var(--apex-table-action-more-icon-stroke, #ffffff00)}.action-icon-wrapper apex-img.secondary path{fill:var(--apex-table-action-secondary-icon-fill, #f96138);stroke:var(--apex-table-action-secondary-icon-stroke, #ffffff00)}.action-icon-wrapper:not(.disabled):hover apex-img.secondary path{fill:var(--apex-table-action-secondary-icon-hover-fill, #5d6068);stroke:var(--apex-table-action-secondary-icon-hover-stroke, #ffffff00)}.arranger{width:14px;height:14px;cursor:pointer}.arranger svg:hover{transform:scale(1.15)}.paging{display:flex;justify-content:space-between;align-items:center;font-size:14px;font-weight:600;-webkit-user-select:none;user-select:none;margin-top:12px}.paging .items-per-page{line-height:10px;margin-right:8px}.mobile .visible-range{margin:0 12px}.page-picker{display:flex;justify-content:center;gap:14px}.page-picker span{min-width:24px;padding:0 6px;box-sizing:border-box;flex-shrink:0;white-space:nowrap;height:24px;display:flex;flex-direction:column;justify-content:center;align-items:center;text-align:center;border-radius:24px;gap:10px;transition:color .25s,background-color .25s}.page-picker span.highlighted,.page-picker span:hover:not(.style-excluded){cursor:pointer;color:var(--apex-table-page-picker-text-color, #fff);background:var(--apex-table-page-picker-background, #f96138)}.page-size-option-picker{display:flex;align-items:center}.page-size-option-picker span{text-wrap:nowrap;margin-right:8px}@media(max-width:940px){.paging{flex-direction:column;row-gap:16px;margin-top:24px}.visible-range{order:1}}@keyframes lineAnimation{0%{width:0px}50%{left:20%;width:80%}to{left:100%;width:100%}}.select-all-across{display:flex;align-items:center;justify-content:center;gap:6px;padding:8px 12px;font-size:13px;color:var(--apex-table-select-all-across-text-color, #5d6068);background-color:var(--apex-table-select-all-across-background-color, #fff7f5);border-bottom:1px solid var(--apex-table-row-bottom-border-color, #e9e9e9)}.select-all-across-btn{padding:0;border:none;background:none;font:inherit;font-weight:600;color:var(--apex-table-select-all-color, #f96138);cursor:pointer}.select-all-across-btn:hover{text-decoration:underline}\n"], dependencies: [{ kind: "directive", type: NgStyle, selector: "[ngStyle]", inputs: ["ngStyle"] }, { kind: "directive", type: NgClass, selector: "[ngClass]", inputs: ["class", "ngClass"] }, { kind: "directive", type: NgTemplateOutlet, selector: "[ngTemplateOutlet]", inputs: ["ngTemplateOutletContext", "ngTemplateOutlet", "ngTemplateOutletInjector"] }, { kind: "component", type: ApexChipComponent, selector: "apex-chip", inputs: ["closeIcon", "options"], outputs: ["closeChange"] }, { kind: "component", type: ApexImageComponent, selector: "apex-img", inputs: ["src", "alt", "loading"] }, { kind: "component", type: ApexSelectComponent, selector: "apex-select", inputs: ["options"], outputs: ["selectChange", "helperTextChange"] }, { kind: "directive", type: ApexTooltipDirective, selector: "[apexTooltip]", inputs: ["apexTooltip", "tooltipPosition"] }, { kind: "component", type: ApexCheckboxComponent, selector: "apex-checkbox", inputs: ["checked", "disabled", "tooltip", "options"], outputs: ["clickChange"] }, { kind: "ngmodule", type: ScrollingModule }, { kind: "directive", type: i3.CdkFixedSizeVirtualScroll, selector: "cdk-virtual-scroll-viewport[itemSize]", inputs: ["itemSize", "minBufferPx", "maxBufferPx"] }, { kind: "directive", type: i3.CdkVirtualForOf, selector: "[cdkVirtualFor][cdkVirtualForOf]", inputs: ["cdkVirtualForOf", "cdkVirtualForTrackBy", "cdkVirtualForTemplate", "cdkVirtualForTemplateCacheSize"] }, { kind: "component", type: i3.CdkVirtualScrollViewport, selector: "cdk-virtual-scroll-viewport", inputs: ["orientation", "appendOnly"], outputs: ["scrolledIndexChange"] }, { kind: "pipe", type: DecimalPipe, name: "number" }] }); }
926
928
  }
927
929
  i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.1.2", ngImport: i0, type: ApexTableComponent, decorators: [{
928
930
  type: Component,
@@ -937,7 +939,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.1.2", ngImpor
937
939
  ApexTooltipDirective,
938
940
  ApexCheckboxComponent,
939
941
  ScrollingModule,
940
- ], template: "<div class=\"container\" [ngClass]=\"{ 'is-loading': isLoading, 'sticky-header': stickyHeader, 'header-stuck': isHeaderStuck() }\">\n <!-- Server-side \"select all matching\" banner: shown once the current page is\n fully selected and the filtered total exceeds the loaded page. -->\n @if (selectionHeader === 'checkbox' && serverSide && allSelected() && dataLength > pageData().length) {\n <div class=\"select-all-across\">\n @if (selectAllAcross()) {\n <span class=\"select-all-across-text\">All {{ dataLength | number }} selected.</span>\n <button type=\"button\" class=\"select-all-across-btn\" (click)=\"setSelectAllAcross(false)\">Clear selection</button>\n } @else {\n <span class=\"select-all-across-text\">All {{ pageData().length }} on this page are selected.</span>\n <button type=\"button\" class=\"select-all-across-btn\" (click)=\"setSelectAllAcross(true)\">Select all {{ dataLength | number }}</button>\n }\n </div>\n }\n\n @if (virtualScroll) {\n @if (stickyHeader) {\n <table class=\"sticky-virtual-header\">\n <thead>\n <ng-container *ngTemplateOutlet=\"headerRow\"></ng-container>\n </thead>\n </table>\n }\n\n <cdk-virtual-scroll-viewport [itemSize]=\"itemSize\" class=\"cdk-table-viewport\" [ngStyle]=\"{ height: virtualViewportHeight() + 'px' }\" [style.overflow-y]=\"showViewportScroll() ? 'auto' : 'hidden'\" (scrolled)=\"onViewportScroll()\">\n <table>\n @if (!stickyHeader) {\n <thead #theadRef>\n <ng-container *ngTemplateOutlet=\"headerRow\"></ng-container>\n </thead>\n }\n\n <tbody>\n <tr *cdkVirtualFor=\"let row of pageData(); trackBy: trackByIndex\"\n class=\"row-clickable\"\n [attr.tabindex]=\"rowClick.observed ? 0 : null\"\n [ngClass]=\"{ 'selected-row': editMode && isRowSelected(row) }\"\n (click)=\"onRowClick(row, $event)\"\n (keydown.enter)=\"onRowClick(row, $event)\">\n @if (editMode && selectionPosition === 'left') {\n <ng-container *ngTemplateOutlet=\"selectionBodyCell; context: { row: row }\"></ng-container>\n }\n\n @for (column of columns; track $index) {\n <td tabindex=\"-1\" [ngStyle]=\"{ width: column.width ? column.width : '' }\">\n <ng-container [ngTemplateOutlet]=\"getCellTemplate(column)\"\n [ngTemplateOutletContext]=\"{ row: row, column: column, $index: $index }\">\n </ng-container>\n </td>\n }\n\n @if (editMode && selectionPosition === 'right') {\n <ng-container *ngTemplateOutlet=\"selectionBodyCell; context: { row: row }\"></ng-container>\n }\n </tr>\n </tbody>\n </table>\n </cdk-virtual-scroll-viewport>\n } @else {\n <table>\n <thead>\n <ng-container *ngTemplateOutlet=\"headerRow\"></ng-container>\n </thead>\n\n <tbody>\n @for (row of pageData(); track $index) {\n <tr class=\"row-clickable\"\n [attr.tabindex]=\"rowClick.observed ? 0 : null\"\n [ngClass]=\"{ 'selected-row': editMode && isRowSelected(row) }\"\n (click)=\"onRowClick(row, $event)\"\n (keydown.enter)=\"onRowClick(row, $event)\">\n @if (editMode && selectionPosition === 'left') {\n <ng-container *ngTemplateOutlet=\"selectionBodyCell; context: { row: row }\"></ng-container>\n }\n\n @for (column of columns; track $index) {\n <td tabindex=\"-1\">\n <ng-container [ngTemplateOutlet]=\"getCellTemplate(column)\"\n [ngTemplateOutletContext]=\"{ row: row, column: column, $index: $index }\">\n </ng-container>\n </td>\n }\n\n @if (editMode && selectionPosition === 'right') {\n <ng-container *ngTemplateOutlet=\"selectionBodyCell; context: { row: row }\"></ng-container>\n }\n </tr>\n }\n </tbody>\n </table>\n }\n\n @if (currentActiveRow()?.isDropdown && currentActiveColumn()) {\n <ng-container *ngTemplateOutlet=\"multipleActionsDropdown; context: { row: currentActiveRow(), column: currentActiveColumn() }\"></ng-container>\n }\n\n @if (filter && filteredData() && filteredData().length === 0) {\n <div class=\"row no-data\">\n <span>No data matching the filter:</span>\n\n <span>\"{{ filter }}\"</span>\n </div>\n }\n\n @if (!filter && data && data.length === 0) {\n <div class=\"row no-data\">No data available.</div>\n }\n\n @if (pageable && pageData().length !== 0) {\n <div class=\"paging\">\n <div class=\"visible-range\">{{ visibleRange() }}</div>\n\n <ng-container *ngTemplateOutlet=\"pagePicker; context: { totalPages: totalPages() }\"></ng-container>\n\n <div class=\"page-size-option-picker\">\n <span>Items per page:</span>\n\n <apex-select class=\"table\" [options]=\"pageSizeSelectOptions\"></apex-select>\n </div>\n </div>\n }\n</div>\n\n<ng-template #textCell let-row=\"row\" let-column=\"column\" let-index=\"$index\">\n <div class=\"cell\"\n [ngClass]=\"[getClass(row, column), column.change ? 'has-change' : '', column.cellOptions?.icon ? 'has-icon' : '']\"\n [style.color]=\"getTextColor(row, column)\"\n [attr.contenteditable]=\"column.editable\"\n (keyup)=\"cellEdit($event, column.value, index)\">\n\n @if (getCellIcon(row, column) && column.cellOptions?.iconPosition !== 'right') {\n <div class=\"cell-icon\" [class.has-color]=\"getCellIconColor(row, column)\" [style.--apex-table-cell-icon-fill]=\"getCellIconColor(row, column)\" [style.--apex-table-cell-icon-stroke]=\"getCellIconColor(row, column)\">\n <apex-img [src]=\"'assets/img/' + getCellIcon(row, column)\" [alt]=\"'Cell icon.'\"></apex-img>\n </div>\n }\n\n <span class=\"cell-text\">{{ column.prefix ? column.prefix : '' }}{{ getDescendantProp(row, column) }}{{ column.suffix ? column.suffix : '' }}</span>\n\n @if (getCellIcon(row, column) && column.cellOptions?.iconPosition === 'right') {\n <div class=\"cell-icon\" [class.has-color]=\"getCellIconColor(row, column)\" [style.--apex-table-cell-icon-fill]=\"getCellIconColor(row, column)\" [style.--apex-table-cell-icon-stroke]=\"getCellIconColor(row, column)\">\n <apex-img [src]=\"'assets/img/' + getCellIcon(row, column)\" [alt]=\"'Cell icon.'\"></apex-img>\n </div>\n }\n\n @if (getChangeValue(row, column) !== null) {\n <apex-chip [ngClass]=\"getChangeValue(row, column)! >= 0 ? 'change-positive' : 'change-negative'\">\n {{ getChangeValue(row, column)! >= 0 ? '+' : '' }}{{ getChangeValue(row, column) }}%\n </apex-chip>\n }\n </div>\n</ng-template>\n\n<ng-template #dateCell let-row=\"row\" let-column=\"column\">\n <div class=\"cell\"\n [ngClass]=\"getClass(row, column)\">\n {{ formatDate(getDescendantProp(row, column), column.dateFormat) }}\n </div>\n</ng-template>\n\n<ng-template #currencyCell let-row=\"row\" let-column=\"column\">\n <div class=\"cell\"\n [ngClass]=\"[getClass(row, column), column.change ? 'has-change' : '']\">\n\n @if (getDescendantProp(row, column) !== undefined) {\n {{ column.prefix ? column.prefix : '' }}{{ (getDescendantProp(row, column) / 100) | number }}\n }\n\n @if (getChangeValue(row, column) !== null) {\n <apex-chip [ngClass]=\"getChangeValue(row, column)! >= 0 ? 'change-positive' : 'change-negative'\">\n {{ getChangeValue(row, column)! >= 0 ? '+' : '' }}{{ getChangeValue(row, column) }}%\n </apex-chip>\n }\n </div>\n</ng-template>\n\n<ng-template #numberCell let-row=\"row\" let-column=\"column\" let-index=\"i\">\n <div class=\"cell\"\n [ngClass]=\"[getClass(row, column), column.change ? 'has-change' : '']\"\n [attr.contenteditable]=\"column.editable\"\n (keyup)=\"cellEdit($event, column.value, index)\">\n\n {{ column.prefix ? column.prefix : '' }}{{ getDescendantProp(row, column) | number}}{{ column.suffix ? column.suffix : '' }}\n\n @if (getChangeValue(row, column) !== null) {\n <apex-chip [ngClass]=\"getChangeValue(row, column)! >= 0 ? 'change-positive' : 'change-negative'\">\n {{ getChangeValue(row, column)! >= 0 ? '+' : '' }}{{ getChangeValue(row, column) }}%\n </apex-chip>\n }\n </div>\n</ng-template>\n\n<ng-template #numberMathCell let-row=\"row\" let-column=\"column\" let-index=\"i\">\n <div class=\"cell\"\n [ngClass]=\"[getClass(row, column), column.change ? 'has-change' : '']\"\n [attr.contenteditable]=\"column.editable\"\n (keyup)=\"cellEdit($event, column.value, index)\">\n\n {{ column.prefix ? column.prefix : '' }}{{ getDescendantProp(row, column) | number}}{{ column.suffix ? column.suffix : '' }}\n\n @if (getChangeValue(row, column) !== null) {\n <apex-chip [ngClass]=\"getChangeValue(row, column)! >= 0 ? 'change-positive' : 'change-negative'\">\n {{ getChangeValue(row, column)! >= 0 ? '+' : '' }}{{ getChangeValue(row, column) }}%\n </apex-chip>\n }\n </div>\n</ng-template>\n\n<ng-template #actionCell let-row=\"row\" let-column=\"column\">\n <div class=\"cell actions\">\n\n @for (action of column.singleActions; track $index) {\n @if (handleActionShow(action, row, column)) {\n <div ApexTooltip role=\"button\" [attr.tabindex]=\"action.disabled ? -1 : 0\" [attr.aria-label]=\"action.label\" [attr.aria-disabled]=\"action.disabled ? 'true' : null\" (click)=\"action.execute && action.execute(row)\" (keydown.enter)=\"action.execute && action.execute(row)\" (keydown.space)=\"$event.preventDefault(); action.execute && action.execute(row)\" [apexTooltip]=\"action.label\" [tooltipPosition]=\"tooltipPosition.Above\" class=\"action-icon-wrapper\" [ngClass]=\"{ 'disabled': action.disabled }\">\n <apex-img [src]=\" 'assets/img/' + action.icon\" [ngClass]=\"action.class\" [alt]=\"''\"></apex-img>\n </div>\n }\n }\n\n @if (column.multipleActions) {\n <div class=\"action-icon-wrapper\" #moreActionsList role=\"button\" tabindex=\"0\" aria-label=\"More actions\" aria-haspopup=\"menu\" [attr.aria-expanded]=\"row.isDropdown ? 'true' : 'false'\" [ngClass]=\"{ 'opened': row.isDropdown }\" (click)=\"toggleActionDropdown(row, column, $event)\" (keydown.enter)=\"toggleActionDropdown(row, column, $event)\">\n <svg class=\"multiple-action-icon\" aria-hidden=\"true\" xmlns=\"http://www.w3.org/2000/svg\" width=\"16\" height=\"16\" viewBox=\"0 0 17 16\" fill=\"none\">\n <path d=\"M10.3047 8C10.3047 8.34612 10.2021 8.68446 10.0098 8.97225C9.81747 9.26004 9.54416 9.48434 9.22438 9.61679C8.90461 9.74924 8.55275 9.7839 8.21328 9.71638C7.87381 9.64885 7.56199 9.48218 7.31725 9.23744C7.07251 8.9927 6.90584 8.68088 6.83831 8.34141C6.77079 8.00194 6.80545 7.65008 6.9379 7.33031C7.07035 7.01053 7.29465 6.73722 7.58244 6.54493C7.87023 6.35264 8.20857 6.25 8.55469 6.25C9.01868 6.25046 9.46353 6.43498 9.79162 6.76307C10.1197 7.09116 10.3042 7.53601 10.3047 8ZM8.55469 4.75C8.90081 4.75 9.23915 4.64737 9.52694 4.45507C9.81472 4.26278 10.039 3.98947 10.1715 3.6697C10.3039 3.34993 10.3386 2.99806 10.2711 2.65859C10.2035 2.31913 10.0369 2.00731 9.79213 1.76256C9.54738 1.51782 9.23556 1.35115 8.8961 1.28363C8.55663 1.2161 8.20476 1.25076 7.88499 1.38321C7.56522 1.51566 7.29191 1.73997 7.09962 2.02775C6.90732 2.31554 6.80469 2.65388 6.80469 3C6.80515 3.46399 6.98967 3.90884 7.31776 4.23693C7.64585 4.56502 8.0907 4.74954 8.55469 4.75ZM8.55469 11.25C8.20857 11.25 7.87023 11.3526 7.58244 11.5449C7.29465 11.7372 7.07035 12.0105 6.9379 12.3303C6.80545 12.6501 6.77079 13.0019 6.83831 13.3414C6.90584 13.6809 7.07251 13.9927 7.31725 14.2374C7.56199 14.4822 7.87381 14.6489 8.21328 14.7164C8.55275 14.7839 8.90461 14.7492 9.22438 14.6168C9.54416 14.4843 9.81747 14.26 10.0098 13.9722C10.2021 13.6845 10.3047 13.3461 10.3047 13C10.3042 12.536 10.1197 12.0912 9.79162 11.7631C9.46353 11.435 9.01868 11.2505 8.55469 11.25Z\"/>\n </svg>\n </div>\n }\n\n </div>\n</ng-template>\n\n<ng-template #chipCell let-row=\"row\" let-column=\"column\">\n <div class=\"cell chip\" [class.chips]=\"isChipArray(row, column)\">\n @if (isChipArray(row, column)) {\n @for (chip of getChipsVisible(row, column); track $index) {\n <apex-chip [ngClass]=\"getClass(row, column)\"\n [style.--apex-chip-color]=\"getChipValueColor(chip.value, column)\"\n [style.--apex-chip-background-color]=\"getChipValueBackground(chip.value, column)\">{{ chip.label }}</apex-chip>\n }\n\n @if (getChipsOverflowCount(row, column) > 0) {\n <apex-chip class=\"list-overflow-badge\"\n ApexTooltip\n [apexTooltip]=\"getChipsTooltip(row, column)\"\n [tooltipPosition]=\"tooltipPosition.Below\">\n +{{ getChipsOverflowCount(row, column) }}\n </apex-chip>\n }\n } @else if (getChipLabel(row, column)) {\n <apex-chip [ngClass]=\"getClass(row, column)\"\n [style.--apex-chip-color]=\"getChipColor(row, column)\"\n [style.--apex-chip-background-color]=\"getChipBackgroundColor(row, column)\"> {{ getChipLabel(row, column) }}</apex-chip>\n }\n </div>\n</ng-template>\n\n<ng-template #statusCell let-row=\"row\" let-column=\"column\">\n <div class=\"cell status\">\n @for (step of column.statusSteps; track step.value; let i = $index) {\n <div class=\"status-step\" [class.completed]=\"isStatusStepCompleted(row, column, i)\">\n <span class=\"status-step-label\">{{ step.label }}</span>\n\n <div class=\"status-step-bar\"\n [style.background-color]=\"isStatusStepCompleted(row, column, i) ? step.color : null\">\n </div>\n </div>\n }\n </div>\n</ng-template>\n\n<ng-template #listCell let-row=\"row\" let-column=\"column\">\n <div class=\"cell list\">\n <span class=\"list-text\">{{ getListDisplayText(row, column) }}</span>\n\n @if (getListOverflowCount(row, column) > 0) {\n <apex-chip class=\"list-overflow-badge\"\n ApexTooltip\n [apexTooltip]=\"getListTooltipContent(row, column)\"\n [tooltipPosition]=\"tooltipPosition.Below\">\n +{{ getListOverflowCount(row, column) }}\n </apex-chip>\n }\n </div>\n</ng-template>\n\n<ng-template #checkboxCell let-row=\"row\" let-column=\"column\">\n <div class=\"cell checkbox\">\n <apex-checkbox [checked]=\"getCheckboxState(row, column)\" [disabled]=\"true\"></apex-checkbox>\n </div>\n</ng-template>\n\n<ng-template #selectCell let-row=\"row\" let-column=\"column\">\n <div class=\"cell cell-select\" (click)=\"$event.stopPropagation()\">\n <apex-select\n [options]=\"getSelectCellOptions(row, column)\"\n [style.--apex-select-input-text-color]=\"getSelectCellColor(row, column)\"\n [style.--apex-select-arrow-color]=\"getSelectCellColor(row, column)\"\n (selectChange)=\"onCellSelectChange(row, column, $event)\"></apex-select>\n </div>\n</ng-template>\n\n<ng-template #multipleActionsDropdown let-row=\"row\" let-column=\"column\">\n <div #multipleActionsDropdownElement #dropdownElement class=\"more-actions-dropdown\">\n @for (action of column.multipleActions; track $index) {\n\n @if (handleActionShow(action, row, column)) {\n <div class=\"dropdown-row\" role=\"button\" tabindex=\"0\" (click)=\"action.execute && action.execute(row)\" (keydown.enter)=\"action.execute && action.execute(row)\" (keydown.space)=\"$event.preventDefault(); action.execute && action.execute(row)\">\n <apex-img [src]=\"'assets/img/' + action.icon\" [ngClass]=\"action.class\" [alt]=\"''\"></apex-img>\n\n <span>{{ action.label }}</span>\n </div>\n }\n\n }\n </div>\n</ng-template>\n\n<ng-template #pagePicker let-totalPages=\"totalPages\">\n <div class=\"page-picker\">\n <!-- If page one should be visible -->\n @if (currentPage + 1 >= 3) {\n <span role=\"button\" tabindex=\"0\" aria-label=\"Page 1\" (click)=\"goToPage(0)\" (keydown.enter)=\"goToPage(0)\">1</span>\n <span class=\"style-excluded\" aria-hidden=\"true\">...</span>\n }\n\n <!-- Middle part of the page-picker -->\n <ng-container *ngTemplateOutlet=\"page; context: { page: currentPage - 1 } \"></ng-container>\n <ng-container *ngTemplateOutlet=\"page; context: { page: currentPage, class: 'highlighted' } \"></ng-container>\n <ng-container *ngTemplateOutlet=\"page; context: { page: currentPage + 1 } \"></ng-container>\n\n <!-- If last page should be visible -->\n @if (currentPage + 1 <= totalPages - 2) {\n <span class=\"style-excluded\" aria-hidden=\"true\">...</span>\n <span role=\"button\" tabindex=\"0\" [attr.aria-label]=\"'Page ' + totalPages\" (click)=\"goToPage(totalPages - 1)\" (keydown.enter)=\"goToPage(totalPages - 1)\">{{ totalPages }}</span>\n }\n\n </div>\n</ng-template>\n\n<ng-template #page let-page=\"page\" let-class=\"class\">\n @if (page >= 0 && page < totalPages()) {\n <span [ngClass]=\"class\" role=\"button\" tabindex=\"0\" [attr.aria-label]=\"'Page ' + (page + 1)\" [attr.aria-current]=\"class === 'highlighted' ? 'page' : null\" (click)=\"goToPage(page)\" (keydown.enter)=\"goToPage(page)\">{{ page + 1 }}</span>\n }\n</ng-template>\n\n<ng-template #headerRow>\n <tr>\n @if (editMode && selectionPosition === 'left') {\n <ng-container *ngTemplateOutlet=\"selectionHeaderCell\"></ng-container>\n }\n\n @for (column of columns; track $index) {\n <th scope=\"col\" [attr.aria-sort]=\"sortable && columns.indexOf(column) === sortIndex ? (sortDirection === 'asc' ? 'ascending' : 'descending') : null\" [ngStyle]=\"{ width: column.width ? column.width : '' }\">\n <div class=\"cell\">\n <span>{{ column.label }}</span>\n\n @if (column.type !== TableColumnType.Actions && sortable) {\n <div class=\"arranger\" role=\"button\" tabindex=\"0\" [attr.aria-label]=\"'Sort by ' + column.label\" (click)=\"sortColumn(column)\" (keydown.enter)=\"sortColumn(column)\" (keydown.space)=\"$event.preventDefault(); sortColumn(column)\">\n <svg xmlns=\"http://www.w3.org/2000/svg\" width=\"14\" height=\"14\" viewBox=\"0 0 12 12\" fill=\"none\" aria-hidden=\"true\">\n <path d=\"M3.11445 5.50005H8.88795C9.31895 5.50005 9.54795 4.99005 9.26145 4.66755L6.37495 1.42005C6.32813 1.3672 6.27063 1.32489 6.20624 1.29591C6.14186 1.26694 6.07205 1.25195 6.00145 1.25195C5.93084 1.25195 5.86104 1.26694 5.79666 1.29591C5.73227 1.32489 5.67477 1.3672 5.62795 1.42005L2.74045 4.66755C2.45395 4.99005 2.68295 5.50005 3.11445 5.50005ZM5.62745 10.5795C5.67427 10.6324 5.73177 10.6747 5.79616 10.7037C5.86054 10.7327 5.93034 10.7476 6.00095 10.7476C6.07155 10.7476 6.14136 10.7327 6.20574 10.7037C6.27013 10.6747 6.32763 10.6324 6.37445 10.5795L9.26095 7.33205C9.54795 7.01005 9.31895 6.50005 8.88745 6.50005H3.11445C2.68345 6.50005 2.45445 7.01005 2.74095 7.33255L5.62745 10.5795Z\" fill=\"#C6C6C6\"/>\n </svg>\n </div>\n }\n </div>\n </th>\n }\n\n @if (editMode && selectionPosition === 'right') {\n <ng-container *ngTemplateOutlet=\"selectionHeaderCell\"></ng-container>\n }\n </tr>\n</ng-template>\n\n<ng-template #selectionHeaderCell>\n <th scope=\"col\" class=\"select-column\" (click)=\"selectionHeader === 'checkbox' ? toggleSelectAll() : null\">\n <div class=\"cell\" [class.checkbox]=\"selectionHeader === 'checkbox'\">\n @if (selectionHeader === 'checkbox') {\n <apex-checkbox [checked]=\"allSelected()\"></apex-checkbox>\n } @else {\n <span class=\"select-all-btn\" role=\"button\" tabindex=\"0\" (click)=\"toggleSelectAll()\" (keydown.enter)=\"toggleSelectAll()\" (keydown.space)=\"$event.preventDefault(); toggleSelectAll()\">{{ allSelected() ? 'Deselect' : 'Select all' }}</span>\n }\n </div>\n </th>\n</ng-template>\n\n<ng-template #selectionBodyCell let-row=\"row\">\n <td class=\"select-column\" (click)=\"toggleRowSelection(row, $event)\">\n <div class=\"cell checkbox\">\n <apex-checkbox [checked]=\"isRowSelected(row)\"></apex-checkbox>\n </div>\n </td>\n</ng-template>\n", styles: [":host{display:block;touch-action:manipulation}.container{width:100%;position:relative;overflow:auto;padding:24px 0}.cdk-table-viewport{width:100%;display:block;overflow:auto;scrollbar-gutter:stable}.cdk-table-viewport .cdk-virtual-scroll-content-wrapper{width:100%;display:block}table{width:100%;text-align:center;table-layout:fixed;border-collapse:collapse}thead tr{border:none}.sticky-header{overflow:visible}.sticky-header table{border-collapse:separate;border-spacing:0}.sticky-header th{position:sticky;top:0;z-index:1}.header-stuck th{background-color:var(--apex-table-header-background-color, #ffffff)}tr{height:42px;vertical-align:middle;border-bottom:1px solid var(--apex-table-row-bottom-border-color, #e9e9e9)}tbody tr.row-clickable{cursor:pointer;transition:background-color .15s ease}tbody tr.row-clickable:hover{background-color:var(--apex-table-row-hover-background-color, #f7f7f7)}th{min-width:60px;-webkit-user-select:none;user-select:none;font-weight:500;font-size:14px;color:var(--apex-table-first-row-text-color, #5d6068)}th .cell{display:flex;justify-content:center;align-items:center}td{scrollbar-width:thin;overflow:auto;text-overflow:clip;font-size:14px}td:focus{outline:none}td .cell{text-wrap:nowrap}apex-chip{max-width:100%;--apex-chip-background-color: #fff2ef;--apex-chip-color: #f96138}.cell.has-change{display:flex;align-items:center;justify-content:center}.cell.has-icon{display:flex;align-items:center;justify-content:center;gap:8px;font-size:13px;font-weight:600;line-height:20px}.cell-icon{width:16px;height:16px;min-width:16px;display:flex;align-items:center;justify-content:center}.cell-icon apex-img{width:16px;height:16px;display:flex;align-items:center;justify-content:center}.cell-icon.has-color path{fill:var(--apex-table-cell-icon-fill);stroke:var(--apex-table-cell-icon-stroke)}.cell.has-icon .cell-text{color:inherit}apex-chip.change-positive{--apex-chip-background-color: var( --apex-table-change-positive-background, #e6f9f0 );--apex-chip-color: var(--apex-table-change-positive-color, #00b67a);margin-left:8px}apex-chip.change-negative{--apex-chip-background-color: var( --apex-table-change-negative-background, #fff2ef );--apex-chip-color: var(--apex-table-change-negative-color, #f96138);margin-left:8px}.cell{line-height:16px;box-sizing:border-box}.cell span{margin-right:4px}.cell-select{--apex-select-input-border-width: 0;--apex-select-input-placeholder-color: #9A9A9A}.cell-select apex-select{width:100%}.cell.checkbox{display:flex;justify-content:center;align-items:center;--apex-checkbox-disabled-opacity: 1}.select-column .cell.checkbox apex-checkbox{pointer-events:none}.select-column .cell.checkbox{width:100%}.cell.list{display:flex;align-items:center;justify-content:flex-start;gap:8px}.list-text{white-space:nowrap;overflow:hidden;text-overflow:ellipsis}apex-chip.list-overflow-badge{--apex-chip-background-color: var( --apex-table-list-overflow-background, transparent );--apex-chip-color: var(--apex-table-list-overflow-color, #ffa753);--apex-chip-font-size: 13px;--apex-chip-height: 20px;--apex-chip-padding: 0 4px;--apex-chip-border-width: 1px;--apex-chip-border-color: var( --apex-table-list-overflow-border-color, #ffefe1 );--apex-chip-border-radius: 5px;cursor:default;flex-shrink:0;font-weight:500;line-height:20px;letter-spacing:0}.cell.actions{display:flex;justify-content:center;align-items:center;gap:4px}.cell.actions apex-img{width:16px;height:16px}.cell.chip{display:flex;justify-content:center;align-items:center}.cell.chip .primary{--apex-chip-background-color: var(--apex-table-chip-background-color);--apex-chip-color: var(--apex-table-chip-color)}.cell.chip .secondary{--apex-chip-background-color: var( --apex-table-chip-background-color-secondary );--apex-chip-color: var(--apex-table-chip-color-secondary)}.cell.chip.chips{flex-wrap:nowrap;justify-content:flex-start;min-width:0;overflow:hidden;gap:4px}.cell.chip.chips apex-chip:not(.list-overflow-badge){min-width:0;overflow:hidden;--apex-chip-background-color: var(--apex-table-chips-background, #f1e8ff);--apex-chip-color: var(--apex-table-chips-color, #000000);--apex-chip-font-size: 12px;--apex-chip-height: 28px;--apex-chip-padding: 4px 10px;--apex-chip-border-radius: 6px}.cell.status{display:flex;align-items:center;gap:var(--apex-table-status-gap, 8px)}.status-step{display:flex;flex-direction:column;gap:4px;min-width:0;flex:1}.status-step-label{font-size:12px;line-height:16px;color:var(--apex-table-status-label-color, #888b95);white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.status-step.completed .status-step-label{color:var(--apex-table-status-label-completed-color, #191b22);font-weight:600}.status-step-bar{height:var(--apex-table-status-bar-height, 3px);border-radius:2px;background-color:var(--apex-table-status-incomplete-color, #e5e7eb)}.select-column{width:80px;min-width:80px;max-width:80px}.select-all-btn{cursor:pointer;font-size:var(--apex-table-select-all-font-size, 12px);font-weight:var(--apex-table-select-all-font-weight, 600);color:var(--apex-table-select-all-color, #f96138);background-color:var(--apex-table-select-all-background-color, transparent);text-wrap:nowrap}.select-all-btn:hover{color:var(--apex-table-select-all-hover-color, #e0562f)}tr.selected-row{background-color:var(--apex-table-selected-row-background-color, #fff7f5)}.no-data{display:flex;justify-content:center;font-size:14px;margin-top:16px}.more-actions-dropdown{min-width:184px;width:fit-content;position:fixed;background-color:var( --apex-table-more-actions-dropdown-background-color, #ffffff );border-radius:8px;box-shadow:0 4px 8px #d6d6d659;z-index:10}.dropdown-row{height:44px;display:flex;align-items:center;justify-content:flex-start;font-size:14px;font-weight:500;box-sizing:border-box;overflow:visible;cursor:pointer;background-color:var( --apex-table-more-actions-dropdown-background-color, #ffffff );padding:0 12px}.dropdown-row:hover{background-color:var( --apex-table-more-actions-dropdown-hover-background-color, #f3f3f3 )}.dropdown-row apex-img{width:20px;height:20px}.dropdown-row apex-img path{fill:var(--apex-table-dropdown-action-icon-fill, #5d6068);stroke:var(--apex-table-dropdown-action-icon-stroke, #ffffff00)}.dropdown-row:hover apex-img path{fill:var(--apex-table-action-icon-hover-fill, #f96138);stroke:var(--apex-table-action-icon-hover-stroke, #ffffff00)}.dropdown-row span{margin:0 12px;text-wrap:nowrap}.is-loading{opacity:.5;pointer-events:none}.container.is-loading:after{width:0px;height:2px;content:\" \";position:sticky;top:0;left:-50%;display:block;background-color:var(--apex-table-loading-bar-color, #ff7f50);animation:lineAnimation 1s linear infinite;border-radius:20px;z-index:1}.action-icon-wrapper{width:36px;height:36px;display:flex;align-items:center;justify-content:center;cursor:pointer}.action-icon-wrapper:not(.disabled):hover{border-radius:4px;background:var(--apex-table-action-hover-background-color, #f7f8fb)}.action-icon-wrapper apex-img path{fill:var(--apex-table-action-icon-fill, #5d6068);stroke:var(--apex-table-action-icon-stroke, #ffffff00)}.action-icon-wrapper:not(.disabled):hover apex-img path{fill:var(--apex-table-action-icon-hover-fill, #f96138);stroke:var(--apex-table-action-icon-hover-stroke, #ffffff00)}.multiple-action-icon path{fill:var(--apex-table-action-more-icon-default-fill, #5d6068);stroke:var(--apex-table-action-more-icon-default-stroke, #ffffff00)}.action-icon-wrapper:not(.disabled):hover svg path,.opened .multiple-action-icon path{fill:var(--apex-table-action-more-icon-fill, #f96138);stroke:var(--apex-table-action-more-icon-stroke, #ffffff00)}.action-icon-wrapper apex-img.secondary path{fill:var(--apex-table-action-secondary-icon-fill, #f96138);stroke:var(--apex-table-action-secondary-icon-stroke, #ffffff00)}.action-icon-wrapper:not(.disabled):hover apex-img.secondary path{fill:var(--apex-table-action-secondary-icon-hover-fill, #5d6068);stroke:var(--apex-table-action-secondary-icon-hover-stroke, #ffffff00)}.arranger{width:14px;height:14px;cursor:pointer}.arranger svg:hover{transform:scale(1.15)}.paging{display:flex;justify-content:space-between;align-items:center;font-size:14px;font-weight:600;-webkit-user-select:none;user-select:none;margin-top:12px}.paging .items-per-page{line-height:10px;margin-right:8px}.mobile .visible-range{margin:0 12px}.page-picker{display:flex;justify-content:center;gap:14px}.page-picker span{min-width:24px;height:24px;display:flex;flex-direction:column;justify-content:center;align-items:center;text-align:center;border-radius:24px;gap:10px;transition:color .25s,background-color .25s}.page-picker span.highlighted,.page-picker span:hover:not(.style-excluded){cursor:pointer;color:var(--apex-table-page-picker-text-color, #fff);background:var(--apex-table-page-picker-background, #f96138)}.page-size-option-picker{display:flex;align-items:center}.page-size-option-picker span{text-wrap:nowrap;margin-right:8px}@media(max-width:940px){.paging{flex-direction:column;row-gap:16px;margin-top:24px}.visible-range{order:1}}@keyframes lineAnimation{0%{width:0px}50%{left:20%;width:80%}to{left:100%;width:100%}}.select-all-across{display:flex;align-items:center;justify-content:center;gap:6px;padding:8px 12px;font-size:13px;color:var(--apex-table-select-all-across-text-color, #5d6068);background-color:var(--apex-table-select-all-across-background-color, #fff7f5);border-bottom:1px solid var(--apex-table-row-bottom-border-color, #e9e9e9)}.select-all-across-btn{padding:0;border:none;background:none;font:inherit;font-weight:600;color:var(--apex-table-select-all-color, #f96138);cursor:pointer}.select-all-across-btn:hover{text-decoration:underline}\n"] }]
942
+ ], template: "<div class=\"container\" [ngClass]=\"{ 'is-loading': isLoading, 'sticky-header': stickyHeader, 'header-stuck': isHeaderStuck() }\">\n <!-- Server-side \"select all matching\" banner: shown once the current page is\n fully selected and the filtered total exceeds the loaded page. -->\n @if (selectionHeader === 'checkbox' && serverSide && allSelected() && dataLength > pageData().length) {\n <div class=\"select-all-across\">\n @if (selectAllAcross()) {\n <span class=\"select-all-across-text\">All {{ dataLength | number }} selected.</span>\n <button type=\"button\" class=\"select-all-across-btn\" (click)=\"setSelectAllAcross(false)\">Clear selection</button>\n } @else {\n <span class=\"select-all-across-text\">All {{ pageData().length }} on this page are selected.</span>\n <button type=\"button\" class=\"select-all-across-btn\" (click)=\"setSelectAllAcross(true)\">Select all {{ dataLength | number }}</button>\n }\n </div>\n }\n\n @if (virtualScroll) {\n @if (stickyHeader) {\n <table class=\"sticky-virtual-header\">\n <thead>\n <ng-container *ngTemplateOutlet=\"headerRow\"></ng-container>\n </thead>\n </table>\n }\n\n <cdk-virtual-scroll-viewport [itemSize]=\"itemSize\" class=\"cdk-table-viewport\" [ngStyle]=\"{ height: virtualViewportHeight() + 'px' }\" [style.overflow-y]=\"showViewportScroll() ? 'auto' : 'hidden'\" (scrolled)=\"onViewportScroll()\">\n <table>\n @if (!stickyHeader) {\n <thead #theadRef>\n <ng-container *ngTemplateOutlet=\"headerRow\"></ng-container>\n </thead>\n }\n\n <tbody>\n <tr *cdkVirtualFor=\"let row of pageData(); trackBy: trackByIndex\"\n class=\"row-clickable\"\n [attr.tabindex]=\"rowClick.observed ? 0 : null\"\n [ngClass]=\"{ 'selected-row': editMode && isRowSelected(row) }\"\n (click)=\"onRowClick(row, $event)\"\n (keydown.enter)=\"onRowClick(row, $event)\">\n @if (editMode && selectionPosition === 'left') {\n <ng-container *ngTemplateOutlet=\"selectionBodyCell; context: { row: row }\"></ng-container>\n }\n\n @for (column of columns; track $index) {\n <td tabindex=\"-1\" [ngStyle]=\"{ width: column.width ? column.width : '' }\">\n <ng-container [ngTemplateOutlet]=\"getCellTemplate(column)\"\n [ngTemplateOutletContext]=\"{ row: row, column: column, $index: $index }\">\n </ng-container>\n </td>\n }\n\n @if (editMode && selectionPosition === 'right') {\n <ng-container *ngTemplateOutlet=\"selectionBodyCell; context: { row: row }\"></ng-container>\n }\n </tr>\n </tbody>\n </table>\n </cdk-virtual-scroll-viewport>\n } @else {\n <table>\n <thead>\n <ng-container *ngTemplateOutlet=\"headerRow\"></ng-container>\n </thead>\n\n <tbody>\n @for (row of pageData(); track $index) {\n <tr class=\"row-clickable\"\n [attr.tabindex]=\"rowClick.observed ? 0 : null\"\n [ngClass]=\"{ 'selected-row': editMode && isRowSelected(row) }\"\n (click)=\"onRowClick(row, $event)\"\n (keydown.enter)=\"onRowClick(row, $event)\">\n @if (editMode && selectionPosition === 'left') {\n <ng-container *ngTemplateOutlet=\"selectionBodyCell; context: { row: row }\"></ng-container>\n }\n\n @for (column of columns; track $index) {\n <td tabindex=\"-1\">\n <ng-container [ngTemplateOutlet]=\"getCellTemplate(column)\"\n [ngTemplateOutletContext]=\"{ row: row, column: column, $index: $index }\">\n </ng-container>\n </td>\n }\n\n @if (editMode && selectionPosition === 'right') {\n <ng-container *ngTemplateOutlet=\"selectionBodyCell; context: { row: row }\"></ng-container>\n }\n </tr>\n }\n </tbody>\n </table>\n }\n\n @if (currentActiveRow()?.isDropdown && currentActiveColumn()) {\n <ng-container *ngTemplateOutlet=\"multipleActionsDropdown; context: { row: currentActiveRow(), column: currentActiveColumn() }\"></ng-container>\n }\n\n @if (filter && filteredData() && filteredData().length === 0) {\n <div class=\"row no-data\">\n <span>No data matching the filter:</span>\n\n <span>\"{{ filter }}\"</span>\n </div>\n }\n\n @if (!filter && data && data.length === 0) {\n <div class=\"row no-data\">No data available.</div>\n }\n\n @if (pageable && pageData().length !== 0) {\n <div class=\"paging\">\n <div class=\"visible-range\">{{ visibleRange() }}</div>\n\n <ng-container *ngTemplateOutlet=\"pagePicker; context: { totalPages: totalPages() }\"></ng-container>\n\n <div class=\"page-size-option-picker\">\n <span>Items per page:</span>\n\n <apex-select class=\"table\" [options]=\"pageSizeSelectOptions\"></apex-select>\n </div>\n </div>\n }\n</div>\n\n<ng-template #textCell let-row=\"row\" let-column=\"column\" let-index=\"$index\">\n <div class=\"cell\"\n [ngClass]=\"[getClass(row, column), column.change ? 'has-change' : '', column.cellOptions?.icon ? 'has-icon' : '']\"\n [style.color]=\"getTextColor(row, column)\"\n [attr.contenteditable]=\"column.editable\"\n (keyup)=\"cellEdit($event, column.value, index)\">\n\n @if (getCellIcon(row, column) && column.cellOptions?.iconPosition !== 'right') {\n <div class=\"cell-icon\" [class.has-color]=\"getCellIconColor(row, column)\" [style.--apex-table-cell-icon-fill]=\"getCellIconColor(row, column)\" [style.--apex-table-cell-icon-stroke]=\"getCellIconColor(row, column)\">\n <apex-img [src]=\"'assets/img/' + getCellIcon(row, column)\" [alt]=\"'Cell icon.'\"></apex-img>\n </div>\n }\n\n <span class=\"cell-text\">{{ column.prefix ? column.prefix : '' }}{{ getDescendantProp(row, column) }}{{ column.suffix ? column.suffix : '' }}</span>\n\n @if (getCellIcon(row, column) && column.cellOptions?.iconPosition === 'right') {\n <div class=\"cell-icon\" [class.has-color]=\"getCellIconColor(row, column)\" [style.--apex-table-cell-icon-fill]=\"getCellIconColor(row, column)\" [style.--apex-table-cell-icon-stroke]=\"getCellIconColor(row, column)\">\n <apex-img [src]=\"'assets/img/' + getCellIcon(row, column)\" [alt]=\"'Cell icon.'\"></apex-img>\n </div>\n }\n\n @if (getChangeValue(row, column) !== null) {\n <apex-chip [ngClass]=\"getChangeValue(row, column)! >= 0 ? 'change-positive' : 'change-negative'\">\n {{ getChangeValue(row, column)! >= 0 ? '+' : '' }}{{ getChangeValue(row, column) }}%\n </apex-chip>\n }\n </div>\n</ng-template>\n\n<ng-template #dateCell let-row=\"row\" let-column=\"column\">\n <div class=\"cell\"\n [ngClass]=\"getClass(row, column)\">\n {{ formatDate(getDescendantProp(row, column), column.dateFormat) }}\n </div>\n</ng-template>\n\n<ng-template #currencyCell let-row=\"row\" let-column=\"column\">\n <div class=\"cell\"\n [ngClass]=\"[getClass(row, column), column.change ? 'has-change' : '']\">\n\n @if (getDescendantProp(row, column) !== undefined) {\n {{ column.prefix ? column.prefix : '' }}{{ (getDescendantProp(row, column) / 100) | number }}\n }\n\n @if (getChangeValue(row, column) !== null) {\n <apex-chip [ngClass]=\"getChangeValue(row, column)! >= 0 ? 'change-positive' : 'change-negative'\">\n {{ getChangeValue(row, column)! >= 0 ? '+' : '' }}{{ getChangeValue(row, column) }}%\n </apex-chip>\n }\n </div>\n</ng-template>\n\n<ng-template #numberCell let-row=\"row\" let-column=\"column\" let-index=\"i\">\n <div class=\"cell\"\n [ngClass]=\"[getClass(row, column), column.change ? 'has-change' : '']\"\n [attr.contenteditable]=\"column.editable\"\n (keyup)=\"cellEdit($event, column.value, index)\">\n\n {{ column.prefix ? column.prefix : '' }}{{ getDescendantProp(row, column) | number}}{{ column.suffix ? column.suffix : '' }}\n\n @if (getChangeValue(row, column) !== null) {\n <apex-chip [ngClass]=\"getChangeValue(row, column)! >= 0 ? 'change-positive' : 'change-negative'\">\n {{ getChangeValue(row, column)! >= 0 ? '+' : '' }}{{ getChangeValue(row, column) }}%\n </apex-chip>\n }\n </div>\n</ng-template>\n\n<ng-template #numberMathCell let-row=\"row\" let-column=\"column\" let-index=\"i\">\n <div class=\"cell\"\n [ngClass]=\"[getClass(row, column), column.change ? 'has-change' : '']\"\n [attr.contenteditable]=\"column.editable\"\n (keyup)=\"cellEdit($event, column.value, index)\">\n\n {{ column.prefix ? column.prefix : '' }}{{ getDescendantProp(row, column) | number}}{{ column.suffix ? column.suffix : '' }}\n\n @if (getChangeValue(row, column) !== null) {\n <apex-chip [ngClass]=\"getChangeValue(row, column)! >= 0 ? 'change-positive' : 'change-negative'\">\n {{ getChangeValue(row, column)! >= 0 ? '+' : '' }}{{ getChangeValue(row, column) }}%\n </apex-chip>\n }\n </div>\n</ng-template>\n\n<ng-template #actionCell let-row=\"row\" let-column=\"column\">\n <div class=\"cell actions\">\n\n @for (action of column.singleActions; track $index) {\n @if (handleActionShow(action, row, column)) {\n <div ApexTooltip role=\"button\" [attr.tabindex]=\"action.disabled ? -1 : 0\" [attr.aria-label]=\"action.label\" [attr.aria-disabled]=\"action.disabled ? 'true' : null\" (click)=\"action.execute && action.execute(row)\" (keydown.enter)=\"action.execute && action.execute(row)\" (keydown.space)=\"$event.preventDefault(); action.execute && action.execute(row)\" [apexTooltip]=\"action.label\" [tooltipPosition]=\"tooltipPosition.Above\" class=\"action-icon-wrapper\" [ngClass]=\"{ 'disabled': action.disabled }\">\n <apex-img [src]=\" 'assets/img/' + action.icon\" [ngClass]=\"action.class\" [alt]=\"''\"></apex-img>\n </div>\n }\n }\n\n @if (column.multipleActions) {\n <div class=\"action-icon-wrapper\" #moreActionsList role=\"button\" tabindex=\"0\" aria-label=\"More actions\" aria-haspopup=\"menu\" [attr.aria-expanded]=\"row.isDropdown ? 'true' : 'false'\" [ngClass]=\"{ 'opened': row.isDropdown }\" (click)=\"toggleActionDropdown(row, column, $event)\" (keydown.enter)=\"toggleActionDropdown(row, column, $event)\">\n <svg class=\"multiple-action-icon\" aria-hidden=\"true\" xmlns=\"http://www.w3.org/2000/svg\" width=\"16\" height=\"16\" viewBox=\"0 0 17 16\" fill=\"none\">\n <path d=\"M10.3047 8C10.3047 8.34612 10.2021 8.68446 10.0098 8.97225C9.81747 9.26004 9.54416 9.48434 9.22438 9.61679C8.90461 9.74924 8.55275 9.7839 8.21328 9.71638C7.87381 9.64885 7.56199 9.48218 7.31725 9.23744C7.07251 8.9927 6.90584 8.68088 6.83831 8.34141C6.77079 8.00194 6.80545 7.65008 6.9379 7.33031C7.07035 7.01053 7.29465 6.73722 7.58244 6.54493C7.87023 6.35264 8.20857 6.25 8.55469 6.25C9.01868 6.25046 9.46353 6.43498 9.79162 6.76307C10.1197 7.09116 10.3042 7.53601 10.3047 8ZM8.55469 4.75C8.90081 4.75 9.23915 4.64737 9.52694 4.45507C9.81472 4.26278 10.039 3.98947 10.1715 3.6697C10.3039 3.34993 10.3386 2.99806 10.2711 2.65859C10.2035 2.31913 10.0369 2.00731 9.79213 1.76256C9.54738 1.51782 9.23556 1.35115 8.8961 1.28363C8.55663 1.2161 8.20476 1.25076 7.88499 1.38321C7.56522 1.51566 7.29191 1.73997 7.09962 2.02775C6.90732 2.31554 6.80469 2.65388 6.80469 3C6.80515 3.46399 6.98967 3.90884 7.31776 4.23693C7.64585 4.56502 8.0907 4.74954 8.55469 4.75ZM8.55469 11.25C8.20857 11.25 7.87023 11.3526 7.58244 11.5449C7.29465 11.7372 7.07035 12.0105 6.9379 12.3303C6.80545 12.6501 6.77079 13.0019 6.83831 13.3414C6.90584 13.6809 7.07251 13.9927 7.31725 14.2374C7.56199 14.4822 7.87381 14.6489 8.21328 14.7164C8.55275 14.7839 8.90461 14.7492 9.22438 14.6168C9.54416 14.4843 9.81747 14.26 10.0098 13.9722C10.2021 13.6845 10.3047 13.3461 10.3047 13C10.3042 12.536 10.1197 12.0912 9.79162 11.7631C9.46353 11.435 9.01868 11.2505 8.55469 11.25Z\"/>\n </svg>\n </div>\n }\n\n </div>\n</ng-template>\n\n<ng-template #chipCell let-row=\"row\" let-column=\"column\">\n <div class=\"cell chip\" [class.chips]=\"isChipArray(row, column)\">\n @if (isChipArray(row, column)) {\n @for (chip of getChipsVisible(row, column); track $index) {\n <apex-chip [ngClass]=\"getClass(row, column)\"\n [style.--apex-chip-color]=\"getChipValueColor(chip.value, column)\"\n [style.--apex-chip-background-color]=\"getChipValueBackground(chip.value, column)\">{{ chip.label }}</apex-chip>\n }\n\n @if (getChipsOverflowCount(row, column) > 0) {\n <apex-chip class=\"list-overflow-badge\"\n ApexTooltip\n [apexTooltip]=\"getChipsTooltip(row, column)\"\n [tooltipPosition]=\"tooltipPosition.Below\">\n +{{ getChipsOverflowCount(row, column) }}\n </apex-chip>\n }\n } @else if (getChipLabel(row, column)) {\n <apex-chip [ngClass]=\"getClass(row, column)\"\n [style.--apex-chip-color]=\"getChipColor(row, column)\"\n [style.--apex-chip-background-color]=\"getChipBackgroundColor(row, column)\"> {{ getChipLabel(row, column) }}</apex-chip>\n }\n </div>\n</ng-template>\n\n<ng-template #statusCell let-row=\"row\" let-column=\"column\">\n <div class=\"cell status\">\n @for (step of column.statusSteps; track step.value; let i = $index) {\n <div class=\"status-step\" [class.completed]=\"isStatusStepCompleted(row, column, i)\">\n <span class=\"status-step-label\">{{ step.label }}</span>\n\n <div class=\"status-step-bar\"\n [style.background-color]=\"isStatusStepCompleted(row, column, i) ? step.color : null\">\n </div>\n </div>\n }\n </div>\n</ng-template>\n\n<ng-template #listCell let-row=\"row\" let-column=\"column\">\n <div class=\"cell list\">\n <span class=\"list-text\">{{ getListDisplayText(row, column) }}</span>\n\n @if (getListOverflowCount(row, column) > 0) {\n <apex-chip class=\"list-overflow-badge\"\n ApexTooltip\n [apexTooltip]=\"getListTooltipContent(row, column)\"\n [tooltipPosition]=\"tooltipPosition.Below\">\n +{{ getListOverflowCount(row, column) }}\n </apex-chip>\n }\n </div>\n</ng-template>\n\n<ng-template #checkboxCell let-row=\"row\" let-column=\"column\">\n <div class=\"cell checkbox\">\n <apex-checkbox [checked]=\"getCheckboxState(row, column)\" [disabled]=\"true\"></apex-checkbox>\n </div>\n</ng-template>\n\n<ng-template #selectCell let-row=\"row\" let-column=\"column\">\n <div class=\"cell cell-select\" (click)=\"$event.stopPropagation()\">\n <apex-select\n [options]=\"getSelectCellOptions(row, column)\"\n [style.--apex-select-input-text-color]=\"getSelectCellColor(row, column)\"\n [style.--apex-select-arrow-color]=\"getSelectCellColor(row, column)\"\n (selectChange)=\"onCellSelectChange(row, column, $event)\"></apex-select>\n </div>\n</ng-template>\n\n<ng-template #multipleActionsDropdown let-row=\"row\" let-column=\"column\">\n <div #multipleActionsDropdownElement #dropdownElement class=\"more-actions-dropdown\">\n @for (action of column.multipleActions; track $index) {\n\n @if (handleActionShow(action, row, column)) {\n <div class=\"dropdown-row\" role=\"button\" tabindex=\"0\" (click)=\"action.execute && action.execute(row)\" (keydown.enter)=\"action.execute && action.execute(row)\" (keydown.space)=\"$event.preventDefault(); action.execute && action.execute(row)\">\n <apex-img [src]=\"'assets/img/' + action.icon\" [ngClass]=\"action.class\" [alt]=\"''\"></apex-img>\n\n <span>{{ action.label }}</span>\n </div>\n }\n\n }\n </div>\n</ng-template>\n\n<ng-template #pagePicker let-totalPages=\"totalPages\">\n <div class=\"page-picker\">\n <!-- If page one should be visible -->\n @if (currentPage + 1 >= 3) {\n <span role=\"button\" tabindex=\"0\" aria-label=\"Page 1\" (click)=\"goToPage(0)\" (keydown.enter)=\"goToPage(0)\">1</span>\n <span class=\"style-excluded\" aria-hidden=\"true\">...</span>\n }\n\n <!-- Middle part of the page-picker -->\n <ng-container *ngTemplateOutlet=\"page; context: { page: currentPage - 1 } \"></ng-container>\n <ng-container *ngTemplateOutlet=\"page; context: { page: currentPage, class: 'highlighted' } \"></ng-container>\n <ng-container *ngTemplateOutlet=\"page; context: { page: currentPage + 1 } \"></ng-container>\n\n <!-- If last page should be visible -->\n @if (currentPage + 1 <= totalPages - 2) {\n <span class=\"style-excluded\" aria-hidden=\"true\">...</span>\n <span role=\"button\" tabindex=\"0\" [attr.aria-label]=\"'Page ' + totalPages\" (click)=\"goToPage(totalPages - 1)\" (keydown.enter)=\"goToPage(totalPages - 1)\">{{ totalPages | number }}</span>\n }\n\n </div>\n</ng-template>\n\n<ng-template #page let-page=\"page\" let-class=\"class\">\n @if (page >= 0 && page < totalPages()) {\n <span [ngClass]=\"class\" role=\"button\" tabindex=\"0\" [attr.aria-label]=\"'Page ' + (page + 1)\" [attr.aria-current]=\"class === 'highlighted' ? 'page' : null\" (click)=\"goToPage(page)\" (keydown.enter)=\"goToPage(page)\">{{ page + 1 | number }}</span>\n }\n</ng-template>\n\n<ng-template #headerRow>\n <tr>\n @if (editMode && selectionPosition === 'left') {\n <ng-container *ngTemplateOutlet=\"selectionHeaderCell\"></ng-container>\n }\n\n @for (column of columns; track $index) {\n <th scope=\"col\" [attr.aria-sort]=\"sortable && columns.indexOf(column) === sortIndex ? (sortDirection === 'asc' ? 'ascending' : 'descending') : null\" [ngStyle]=\"{ width: column.width ? column.width : '' }\">\n <div class=\"cell\">\n <span>{{ column.label }}</span>\n\n @if (column.type !== TableColumnType.Actions && sortable) {\n <div class=\"arranger\" role=\"button\" tabindex=\"0\" [attr.aria-label]=\"'Sort by ' + column.label\" (click)=\"sortColumn(column)\" (keydown.enter)=\"sortColumn(column)\" (keydown.space)=\"$event.preventDefault(); sortColumn(column)\">\n <svg xmlns=\"http://www.w3.org/2000/svg\" width=\"14\" height=\"14\" viewBox=\"0 0 12 12\" fill=\"none\" aria-hidden=\"true\">\n <path d=\"M3.11445 5.50005H8.88795C9.31895 5.50005 9.54795 4.99005 9.26145 4.66755L6.37495 1.42005C6.32813 1.3672 6.27063 1.32489 6.20624 1.29591C6.14186 1.26694 6.07205 1.25195 6.00145 1.25195C5.93084 1.25195 5.86104 1.26694 5.79666 1.29591C5.73227 1.32489 5.67477 1.3672 5.62795 1.42005L2.74045 4.66755C2.45395 4.99005 2.68295 5.50005 3.11445 5.50005ZM5.62745 10.5795C5.67427 10.6324 5.73177 10.6747 5.79616 10.7037C5.86054 10.7327 5.93034 10.7476 6.00095 10.7476C6.07155 10.7476 6.14136 10.7327 6.20574 10.7037C6.27013 10.6747 6.32763 10.6324 6.37445 10.5795L9.26095 7.33205C9.54795 7.01005 9.31895 6.50005 8.88745 6.50005H3.11445C2.68345 6.50005 2.45445 7.01005 2.74095 7.33255L5.62745 10.5795Z\" fill=\"#C6C6C6\"/>\n </svg>\n </div>\n }\n </div>\n </th>\n }\n\n @if (editMode && selectionPosition === 'right') {\n <ng-container *ngTemplateOutlet=\"selectionHeaderCell\"></ng-container>\n }\n </tr>\n</ng-template>\n\n<ng-template #selectionHeaderCell>\n <th scope=\"col\" class=\"select-column\" (click)=\"selectionHeader === 'checkbox' ? toggleSelectAll() : null\">\n <div class=\"cell\" [class.checkbox]=\"selectionHeader === 'checkbox'\">\n @if (selectionHeader === 'checkbox') {\n <apex-checkbox [checked]=\"allSelected()\"></apex-checkbox>\n } @else {\n <span class=\"select-all-btn\" role=\"button\" tabindex=\"0\" (click)=\"toggleSelectAll()\" (keydown.enter)=\"toggleSelectAll()\" (keydown.space)=\"$event.preventDefault(); toggleSelectAll()\">{{ allSelected() ? 'Deselect' : 'Select all' }}</span>\n }\n </div>\n </th>\n</ng-template>\n\n<ng-template #selectionBodyCell let-row=\"row\">\n <td class=\"select-column\" (click)=\"toggleRowSelection(row, $event)\">\n <div class=\"cell checkbox\">\n <apex-checkbox [checked]=\"isRowSelected(row)\"></apex-checkbox>\n </div>\n </td>\n</ng-template>\n", styles: [":host{display:block;touch-action:manipulation}.container{width:100%;position:relative;overflow:auto;padding:24px 0}.cdk-table-viewport{width:100%;display:block;overflow:auto;scrollbar-gutter:stable}.cdk-table-viewport .cdk-virtual-scroll-content-wrapper{width:100%;display:block}table{width:100%;text-align:center;table-layout:fixed;border-collapse:collapse}thead tr{border:none}.sticky-header{overflow:visible}.sticky-header table{border-collapse:separate;border-spacing:0}.sticky-header th{position:sticky;top:0;z-index:1}.header-stuck th{background-color:var(--apex-table-header-background-color, #ffffff)}tr{height:42px;vertical-align:middle;border-bottom:1px solid var(--apex-table-row-bottom-border-color, #e9e9e9)}tbody tr.row-clickable{cursor:pointer;transition:background-color .15s ease}tbody tr.row-clickable:hover{background-color:var(--apex-table-row-hover-background-color, #f7f7f7)}th{min-width:60px;-webkit-user-select:none;user-select:none;font-weight:500;font-size:14px;color:var(--apex-table-first-row-text-color, #5d6068)}th .cell{display:flex;justify-content:center;align-items:center}td{scrollbar-width:thin;overflow:auto;text-overflow:clip;font-size:14px}td:focus{outline:none}td .cell{text-wrap:nowrap}apex-chip{max-width:100%;--apex-chip-background-color: #fff2ef;--apex-chip-color: #f96138}.cell.has-change{display:flex;align-items:center;justify-content:center}.cell.has-icon{display:flex;align-items:center;justify-content:center;gap:8px;font-size:13px;font-weight:600;line-height:20px}.cell-icon{width:16px;height:16px;min-width:16px;display:flex;align-items:center;justify-content:center}.cell-icon apex-img{width:16px;height:16px;display:flex;align-items:center;justify-content:center}.cell-icon.has-color path{fill:var(--apex-table-cell-icon-fill);stroke:var(--apex-table-cell-icon-stroke)}.cell.has-icon .cell-text{color:inherit}apex-chip.change-positive{--apex-chip-background-color: var( --apex-table-change-positive-background, #e6f9f0 );--apex-chip-color: var(--apex-table-change-positive-color, #00b67a);margin-left:8px}apex-chip.change-negative{--apex-chip-background-color: var( --apex-table-change-negative-background, #fff2ef );--apex-chip-color: var(--apex-table-change-negative-color, #f96138);margin-left:8px}.cell{line-height:16px;box-sizing:border-box}.cell span{margin-right:4px}.cell-select{--apex-select-input-border-width: 0;--apex-select-input-placeholder-color: #9A9A9A}.cell-select apex-select{width:100%}.cell.checkbox{display:flex;justify-content:center;align-items:center;--apex-checkbox-disabled-opacity: 1}.select-column .cell.checkbox apex-checkbox{pointer-events:none}.select-column .cell.checkbox{width:100%}.cell.list{display:flex;align-items:center;justify-content:flex-start;gap:8px}.list-text{white-space:nowrap;overflow:hidden;text-overflow:ellipsis}apex-chip.list-overflow-badge{--apex-chip-background-color: var( --apex-table-list-overflow-background, transparent );--apex-chip-color: var(--apex-table-list-overflow-color, #ffa753);--apex-chip-font-size: 13px;--apex-chip-height: 20px;--apex-chip-padding: 0 4px;--apex-chip-border-width: 1px;--apex-chip-border-color: var( --apex-table-list-overflow-border-color, #ffefe1 );--apex-chip-border-radius: 5px;cursor:default;flex-shrink:0;font-weight:500;line-height:20px;letter-spacing:0}.cell.actions{display:flex;justify-content:center;align-items:center;gap:4px}.cell.actions apex-img{width:16px;height:16px}.cell.chip{display:flex;justify-content:center;align-items:center}.cell.chip .primary{--apex-chip-background-color: var(--apex-table-chip-background-color);--apex-chip-color: var(--apex-table-chip-color)}.cell.chip .secondary{--apex-chip-background-color: var( --apex-table-chip-background-color-secondary );--apex-chip-color: var(--apex-table-chip-color-secondary)}.cell.chip.chips{flex-wrap:nowrap;justify-content:flex-start;min-width:0;overflow:hidden;gap:4px}.cell.chip.chips apex-chip:not(.list-overflow-badge){min-width:0;overflow:hidden;--apex-chip-background-color: var(--apex-table-chips-background, #f1e8ff);--apex-chip-color: var(--apex-table-chips-color, #000000);--apex-chip-font-size: 12px;--apex-chip-height: 28px;--apex-chip-padding: 4px 10px;--apex-chip-border-radius: 6px}.cell.status{display:flex;align-items:center;gap:var(--apex-table-status-gap, 8px)}.status-step{display:flex;flex-direction:column;gap:4px;min-width:0;flex:1}.status-step-label{font-size:12px;line-height:16px;color:var(--apex-table-status-label-color, #888b95);white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.status-step.completed .status-step-label{color:var(--apex-table-status-label-completed-color, #191b22);font-weight:600}.status-step-bar{height:var(--apex-table-status-bar-height, 3px);border-radius:2px;background-color:var(--apex-table-status-incomplete-color, #e5e7eb)}.select-column{width:80px;min-width:80px;max-width:80px}.select-all-btn{cursor:pointer;font-size:var(--apex-table-select-all-font-size, 12px);font-weight:var(--apex-table-select-all-font-weight, 600);color:var(--apex-table-select-all-color, #f96138);background-color:var(--apex-table-select-all-background-color, transparent);text-wrap:nowrap}.select-all-btn:hover{color:var(--apex-table-select-all-hover-color, #e0562f)}tr.selected-row{background-color:var(--apex-table-selected-row-background-color, #fff7f5)}.no-data{display:flex;justify-content:center;font-size:14px;margin-top:16px}.more-actions-dropdown{min-width:184px;width:fit-content;position:fixed;background-color:var( --apex-table-more-actions-dropdown-background-color, #ffffff );border-radius:8px;box-shadow:0 4px 8px #d6d6d659;z-index:10}.dropdown-row{height:44px;display:flex;align-items:center;justify-content:flex-start;font-size:14px;font-weight:500;box-sizing:border-box;overflow:visible;cursor:pointer;background-color:var( --apex-table-more-actions-dropdown-background-color, #ffffff );padding:0 12px}.dropdown-row:hover{background-color:var( --apex-table-more-actions-dropdown-hover-background-color, #f3f3f3 )}.dropdown-row apex-img{width:20px;height:20px}.dropdown-row apex-img path{fill:var(--apex-table-dropdown-action-icon-fill, #5d6068);stroke:var(--apex-table-dropdown-action-icon-stroke, #ffffff00)}.dropdown-row:hover apex-img path{fill:var(--apex-table-action-icon-hover-fill, #f96138);stroke:var(--apex-table-action-icon-hover-stroke, #ffffff00)}.dropdown-row span{margin:0 12px;text-wrap:nowrap}.is-loading{opacity:.5;pointer-events:none}.container.is-loading:after{width:0px;height:2px;content:\" \";position:sticky;top:0;left:-50%;display:block;background-color:var(--apex-table-loading-bar-color, #ff7f50);animation:lineAnimation 1s linear infinite;border-radius:20px;z-index:1}.action-icon-wrapper{width:36px;height:36px;display:flex;align-items:center;justify-content:center;cursor:pointer}.action-icon-wrapper:not(.disabled):hover{border-radius:4px;background:var(--apex-table-action-hover-background-color, #f7f8fb)}.action-icon-wrapper apex-img path{fill:var(--apex-table-action-icon-fill, #5d6068);stroke:var(--apex-table-action-icon-stroke, #ffffff00)}.action-icon-wrapper:not(.disabled):hover apex-img path{fill:var(--apex-table-action-icon-hover-fill, #f96138);stroke:var(--apex-table-action-icon-hover-stroke, #ffffff00)}.multiple-action-icon path{fill:var(--apex-table-action-more-icon-default-fill, #5d6068);stroke:var(--apex-table-action-more-icon-default-stroke, #ffffff00)}.action-icon-wrapper:not(.disabled):hover svg path,.opened .multiple-action-icon path{fill:var(--apex-table-action-more-icon-fill, #f96138);stroke:var(--apex-table-action-more-icon-stroke, #ffffff00)}.action-icon-wrapper apex-img.secondary path{fill:var(--apex-table-action-secondary-icon-fill, #f96138);stroke:var(--apex-table-action-secondary-icon-stroke, #ffffff00)}.action-icon-wrapper:not(.disabled):hover apex-img.secondary path{fill:var(--apex-table-action-secondary-icon-hover-fill, #5d6068);stroke:var(--apex-table-action-secondary-icon-hover-stroke, #ffffff00)}.arranger{width:14px;height:14px;cursor:pointer}.arranger svg:hover{transform:scale(1.15)}.paging{display:flex;justify-content:space-between;align-items:center;font-size:14px;font-weight:600;-webkit-user-select:none;user-select:none;margin-top:12px}.paging .items-per-page{line-height:10px;margin-right:8px}.mobile .visible-range{margin:0 12px}.page-picker{display:flex;justify-content:center;gap:14px}.page-picker span{min-width:24px;padding:0 6px;box-sizing:border-box;flex-shrink:0;white-space:nowrap;height:24px;display:flex;flex-direction:column;justify-content:center;align-items:center;text-align:center;border-radius:24px;gap:10px;transition:color .25s,background-color .25s}.page-picker span.highlighted,.page-picker span:hover:not(.style-excluded){cursor:pointer;color:var(--apex-table-page-picker-text-color, #fff);background:var(--apex-table-page-picker-background, #f96138)}.page-size-option-picker{display:flex;align-items:center}.page-size-option-picker span{text-wrap:nowrap;margin-right:8px}@media(max-width:940px){.paging{flex-direction:column;row-gap:16px;margin-top:24px}.visible-range{order:1}}@keyframes lineAnimation{0%{width:0px}50%{left:20%;width:80%}to{left:100%;width:100%}}.select-all-across{display:flex;align-items:center;justify-content:center;gap:6px;padding:8px 12px;font-size:13px;color:var(--apex-table-select-all-across-text-color, #5d6068);background-color:var(--apex-table-select-all-across-background-color, #fff7f5);border-bottom:1px solid var(--apex-table-row-bottom-border-color, #e9e9e9)}.select-all-across-btn{padding:0;border:none;background:none;font:inherit;font-weight:600;color:var(--apex-table-select-all-color, #f96138);cursor:pointer}.select-all-across-btn:hover{text-decoration:underline}\n"] }]
941
943
  }], ctorParameters: () => [{ type: i0.ElementRef }, { type: i1.OSService }, { type: i2.FormBuilder }, { type: i1.ScrollBlockService }, { type: i0.Injector }], propDecorators: { theadRef: [{
942
944
  type: ViewChild,
943
945
  args: ['theadRef']
@@ -1 +1 @@
1
- {"version":3,"file":"apexara-ng-components-table.mjs","sources":["../../../../projects/apexara/ng-components/table/src/table.component.ts","../../../../projects/apexara/ng-components/table/src/table.component.html","../../../../projects/apexara/ng-components/table/apexara-ng-components-table.ts"],"sourcesContent":["import { Component, ViewChildren, QueryList, ViewChild, ElementRef, Input, Output, EventEmitter, HostListener, SimpleChanges, TemplateRef, signal, Injector, afterNextRender } from '@angular/core';\nimport { NgTemplateOutlet, NgStyle, NgClass, DecimalPipe, formatDate } from '@angular/common';\nimport { ScrollingModule, CdkVirtualScrollViewport } from '@angular/cdk/scrolling';\nimport { FormBuilder, FormControl, FormGroup, Validators } from '@angular/forms';\n\nimport { ApexChipComponent } from '@apexara/ng-components/chip';\nimport { ApexImageComponent } from '@apexara/ng-components/image';\nimport { ApexCheckboxComponent } from '@apexara/ng-components/checkbox';\nimport { ApexSelectData, ApexSelectComponent, ApexSelectOptions } from '@apexara/ng-components/select';\n\nimport { OSService, MobileOS, ScrollBlockService } from '@apexara/ng-components/services';\n\nimport { ApexTooltipDirective, TooltipPosition } from '@apexara/ng-components/tooltip';\n\nexport interface ApexTableColumn {\n label?: string;\n value?: string;\n type?: ApexTableColumnType;\n width?: string;\n editable?: boolean;\n prefix?: string;\n suffix?: string;\n singleActions?: Action[];\n multipleActions?: Action[];\n dateFormat?: ApexDateFormatOptions;\n chipLabel?: { [key: string]: string };\n class?: string | { [key: string]: string };\n change?: string;\n listOptions?: ApexTableListOptions;\n cellOptions?: ApexTableCellOptions;\n statusSteps?: ApexTableStatusStep[];\n // Select cell (type Select): the dropdown options and the empty-state\n // placeholder. The cell shows the option whose value matches the row's value\n // and emits (cellChange) when the user picks another.\n selectOptions?: ApexSelectData[];\n placeholder?: string;\n}\n\nexport interface ApexTableStatusStep {\n label: string;\n value: string | number | boolean;\n color: string;\n}\n\nexport interface ApexTableListOptions {\n label?: string;\n max?: number;\n}\n\nexport interface ApexTableCellOptions {\n icon?: string | { [key: string]: string };\n iconPosition?: 'left' | 'right';\n iconColor?: { [key: string]: string };\n textColor?: { [key: string]: string };\n chipColor?: { [key: string]: string };\n chipBackgroundColor?: { [key: string]: string };\n selectColor?: { [key: string]: string };\n}\n\nexport enum ApexTableColumnType {\n Text,\n Date,\n Currency,\n Chip,\n Number,\n NumberMath,\n Actions,\n Checkbox,\n List,\n Status,\n Select,\n}\n\nexport type ActionShowType = Array<{ property: string; values: any[]; exists?: boolean; }> \n\nexport interface Action {\n icon: string;\n label: string;\n class?: string;\n showOn?: ActionShowType;\n disabled?: boolean;\n execute?: (row: any) => void;\n}\n\nexport interface ApexTableChange {\n from: number;\n to: number;\n filter?: string;\n sort?: any;\n}\n\nexport interface ApexDateFormatOptions {\n format: string;\n locale: string;\n timezone?: string;\n}\n\ninterface PageFormControls {\n pageSize: FormControl<{ label: string, value: number }>;\n}\n\n@Component({\n standalone: true,\n selector: 'apex-table',\n templateUrl: './table.component.html',\n styleUrls: ['./table.component.css'],\n imports: [\n NgStyle,\n NgClass,\n DecimalPipe,\n NgTemplateOutlet,\n ApexChipComponent,\n ApexImageComponent,\n ApexSelectComponent,\n ApexTooltipDirective,\n ApexCheckboxComponent,\n ScrollingModule,\n ]\n})\n\nexport class ApexTableComponent {\n\n constructor(\n private elementRef: ElementRef,\n private osService: OSService,\n private formBuilder: FormBuilder,\n private scrollBlockService: ScrollBlockService,\n private injector: Injector) {\n }\n\n @ViewChild('theadRef') theadRef?: ElementRef<HTMLElement>;\n @ViewChildren('moreActionsList') moreActionsList!: QueryList<ElementRef>;\n @ViewChild(CdkVirtualScrollViewport) cdkViewport?: CdkVirtualScrollViewport;\n @ViewChild('dropdownElement') DropdownElement: ElementRef<any> | null = null;\n\n // Cell templates (mapped by type)\n @ViewChild('textCell', { static: true }) textCellTpl!: TemplateRef<any>;\n @ViewChild('numberCell', { static: true }) numberCellTpl!: TemplateRef<any>;\n @ViewChild('currencyCell', { static: true }) currencyCellTpl!: TemplateRef<any>;\n @ViewChild('numberMathCell', { static: true }) numberMathCellTpl!: TemplateRef<any>;\n @ViewChild('dateCell', { static: true }) dateCellTpl!: TemplateRef<any>;\n @ViewChild('chipCell', { static: true }) chipCellTpl!: TemplateRef<any>;\n @ViewChild('checkboxCell', { static: true }) checkboxCellTpl!: TemplateRef<any>;\n @ViewChild('actionCell', { static: true }) actionCellTpl!: TemplateRef<any>;\n @ViewChild('listCell', { static: true }) listCellTpl!: TemplateRef<any>;\n @ViewChild('statusCell', { static: true }) statusCellTpl!: TemplateRef<any>;\n @ViewChild('selectCell', { static: true }) selectCellTpl!: TemplateRef<any>;\n\n\n // Data configuration\n @Input() data!: any[];\n @Input() dataLength!: number;\n @Input() columns!: ApexTableColumn[];\n @Input() filter!: string;\n\n // Data source configuration (serverSide loaded or local data)\n @Input() serverSide!: boolean;\n @Input() isLoading!: boolean;\n\n // Sorting configuration\n @Input() sortIndex = 0;\n @Input() sortable = true;\n @Input() sortDirection: 'asc' | 'desc' = 'asc';\n\n // Pagination configuration\n @Input() pageSize = 10;\n @Input() currentPage = 0;\n @Input() pageable = false;\n @Input() pageSizeOptions = [ 10, 25, 50, 100, 1000 ];\n\n // Virtual scroll configuration (optimization for large datasets)\n @Input() virtualScroll: boolean = false; // For local data only\n @Input() tableMaxHeight: number = 800;\n\n // Sticky header configuration\n @Input() stickyHeader: boolean = false;\n\n // Edit mode configuration\n @Input() editMode: boolean = false;\n @Input() selectionPosition: 'left' | 'right' = 'right';\n @Input() selectionHeader: 'text' | 'checkbox' = 'text';\n\n @Output() tableChange = new EventEmitter<ApexTableChange>()\n @Output() selectionChange = new EventEmitter<any[]>()\n @Output() editModeChange = new EventEmitter<boolean>()\n @Output() rowClick = new EventEmitter<any>()\n // A select cell's value changed — { row, column, value } where value is the\n // chosen option's raw value (null when cleared). Lets a consumer persist it.\n @Output() cellChange = new EventEmitter<{ row: any; column: ApexTableColumn; value: any }>()\n // Server-side \"select all matching\" — emits true when the user opts to select\n // every row behind the current filter (beyond the loaded page), false when\n // cleared or when a manual selection change cancels it. Consumers act on the\n // whole filtered set (e.g. by re-sending the query) rather than the row list.\n @Output() selectAllAcrossChange = new EventEmitter<boolean>()\n\n public itemSize: number = 42; // Must match CSS table row height\n\n public tooltipPosition = TooltipPosition;\n\n public TableColumnType = ApexTableColumnType;\n\n public totalPages = signal(0);\n public visibleRange = signal('');\n\n public filteredData = signal<any[]>([]);\n public pageData = signal<any[]>([]);\n\n public pageSizeSelectOptions!: ApexSelectOptions;\n\n public currentActiveRow = signal<any>(null);\n public currentActiveColumn = signal<ApexTableColumn | null>(null);\n public isDropdown = signal(false);\n public isHeaderStuck = signal(false);\n\n public selectedRows = signal<Set<any>>(new Set());\n public allSelected = signal(false);\n // True when \"select all matching\" is active (server-side, beyond the page).\n public selectAllAcross = signal(false);\n public virtualViewportHeight = signal(0);\n public showViewportScroll = signal(false);\n private lastSelectedIndex: number = -1;\n\n public formGroup!: FormGroup<PageFormControls>;\n\n private _dataLength!: number;\n\n @HostListener('document:click', ['$event'])\n public onClick(event: any): void {\n // TO DO: When two tables exists the dropdown from first table is not closed\n if (event.target !== this.DropdownElement?.nativeElement && event.target) {\n const row = this.currentActiveRow();\n\n if (row) {\n row.isDropdown = false;\n this.currentActiveRow.set(null);\n this.unlockScroll();\n }\n }\n }\n\n @HostListener('document:scroll')\n public onScroll(): void {\n\n if (this.stickyHeader) {\n const rect = this.elementRef.nativeElement.getBoundingClientRect();\n const stuck = rect.top < 0;\n\n if (stuck !== this.isHeaderStuck()) {\n this.isHeaderStuck.set(stuck);\n }\n }\n\n for (let item of this.moreActionsList) {\n if (item.nativeElement.classList.contains('opened') && this.DropdownElement) {\n let actionPos = item.nativeElement.getBoundingClientRect();\n\n if (this.osService.mobileOS === MobileOS.iOS) {\n actionPos.y += window.visualViewport!.offsetTop;\n }\n\n this.DropdownElement.nativeElement.style.top = `${ actionPos.y + actionPos.height }px`;\n\n break;\n }\n }\n }\n\n @HostListener('window:resize')\n public onResize(): void {\n\n for (let item of this.moreActionsList) {\n if (item.nativeElement.classList.contains('opened') && this.DropdownElement) { \n let actionPos = item.nativeElement.getBoundingClientRect();\n\n if (this.osService.mobileOS === MobileOS.iOS) {\n actionPos.x += window.visualViewport!.offsetLeft;\n }\n\n const dropdownWidth = this.DropdownElement.nativeElement.offsetWidth;\n\n const left = actionPos.x + dropdownWidth / 2 < window.innerWidth - 10 ? actionPos.x : window.innerWidth - 10 - dropdownWidth;\n \n this.DropdownElement.nativeElement.style.transform = left === actionPos.x ? 'translateX(-50%)' : '';\n this.DropdownElement.nativeElement.style.left = left + 'px';\n\n break;\n }\n }\n }\n\n public ngOnInit(): void {\n }\n\n public ngAfterViewInit(): void {\n const from = this.currentPage * this.pageSize;\n const to = from + this.pageSize;\n\n if (this.serverSide && !this.data) {\n this.tableChange.emit({ from, to, sort: { columnValue: this.columns[this.sortIndex].value, sortDirection: this.sortDirection } });\n }\n\n if (!this.serverSide) {\n this.buildPaginationSelectDependecies();\n }\n\n this.updateViewportLayout();\n\n setTimeout(() => {\n this.cdkViewport?.checkViewportSize();\n });\n }\n\n public ngOnChanges(changes: SimpleChanges): void {\n if (changes['isLoading'] && changes['isLoading'].currentValue === false) {\n if (this.data) {\n this._dataLength = this.data.length;\n }\n }\n\n if (changes['data'] && changes['data'].currentValue) {\n if (this.serverSide) {\n this.filteredData.set(this.data);\n\n this.preprocessData();\n } else {\n this.filteredData.set(this.filter ? this.filterData() : this.data);\n\n this.preprocessData();\n\n setTimeout(() => {\n this.sortColumn(this.columns[this.sortIndex], false);\n })\n }\n\n this._dataLength = this.dataLength ? this.dataLength : this.filteredData().length;\n }\n\n if (changes['filter'] && !changes['filter'].firstChange) {\n // The two ways of filtering data -> local and serverSide\n if (!this.serverSide) {\n this.filteredData.set(this.filterData());\n this._dataLength = this.filteredData().length;\n\n setTimeout(() => {\n this.goToFirstPage();\n });\n\n } else {\n setTimeout(() => {\n this.currentPage = 0;\n\n this.tableChange.emit({ from: 0, to: 0 + this.pageSize, filter: this.filter, sort: { columnValue: this.columns[this.sortIndex].value, sortDirection: this.sortDirection } });\n });\n }\n\n }\n\n if (changes['editMode']) {\n this.editModeChange.emit(changes['editMode'].currentValue);\n\n if (!changes['editMode'].currentValue) {\n this.selectedRows.set(new Set());\n this.allSelected.set(false);\n this.lastSelectedIndex = -1;\n this.selectionChange.emit([]);\n }\n }\n\n if (changes['pageable'] && changes['pageable'].currentValue !== undefined) {\n this.buildPaginationSelectDependecies();\n }\n\n const from = this.currentPage * this.pageSize;\n const to = Math.min(this._dataLength, from + this.pageSize);\n \n this.calculateTotalPages();\n this.updateVisibleRange(from, to);\n this.updatePageData();\n this.refreshLayout();\n }\n\n public updatePageData(): void {\n const data = this.filteredData();\n if (!data || !data.length) {\n this.pageData.set([]);\n return;\n }\n\n if (!this.pageable) {\n this.pageData.set(data);\n return;\n }\n\n if (!this.serverSide) {\n const start = this.currentPage * this.pageSize;\n const end = start + this.pageSize;\n\n this.pageData.set(data.slice(start, end));\n return;\n }\n\n this.pageData.set(data);\n }\n\n public updateVisibleRange(start: number, end: number): void {\n this.visibleRange.set(`Showing ${ start + 1 } to ${end} of ${this._dataLength} results`);\n }\n\n public calculateTotalPages(): void {\n this.totalPages.set(Math.ceil(this._dataLength / this.pageSize));\n }\n\n public trackByIndex(index: number): number {\n return index;\n }\n\n public updateViewportLayout(): void {\n const headerHeight = this.theadRef?.nativeElement?.getBoundingClientRect().height || 0;\n\n const data = this.filteredData();\n const renderedCount = this.serverSide\n ? (data ? data.length : 0)\n : (this.pageData() ? this.pageData().length : 0);\n\n // Update viewport height\n if (renderedCount <= 0) {\n this.virtualViewportHeight.set(headerHeight);\n } else {\n const maxTotal = this.tableMaxHeight;\n const bodyCapacity = Math.max(0, maxTotal - headerHeight);\n const rowsHeight = Math.min(bodyCapacity, this.itemSize * renderedCount);\n this.virtualViewportHeight.set(Math.max(0, headerHeight + rowsHeight));\n }\n\n // Update scroll visibility\n if (!this.virtualScroll) {\n this.showViewportScroll.set(false);\n } else {\n const availableBodyHeight = Math.max(0, this.tableMaxHeight - headerHeight);\n const rowsHeight = this.itemSize * renderedCount;\n this.showViewportScroll.set(rowsHeight > availableBodyHeight);\n }\n }\n\n public getCellTemplate(column: ApexTableColumn): TemplateRef<any> {\n switch (column.type) {\n case ApexTableColumnType.Number:\n return this.numberCellTpl;\n case ApexTableColumnType.Currency:\n return this.currencyCellTpl;\n case ApexTableColumnType.NumberMath:\n return this.numberMathCellTpl;\n case ApexTableColumnType.Date:\n return this.dateCellTpl;\n case ApexTableColumnType.Chip:\n return this.chipCellTpl;\n case ApexTableColumnType.Checkbox:\n return this.checkboxCellTpl;\n case ApexTableColumnType.Actions:\n return this.actionCellTpl;\n case ApexTableColumnType.List:\n return this.listCellTpl;\n case ApexTableColumnType.Status:\n return this.statusCellTpl;\n case ApexTableColumnType.Select:\n return this.selectCellTpl;\n default:\n return this.textCellTpl;\n }\n }\n\n // One apex-select config per (row, column) select cell, kept stable across\n // change detection so the dropdown doesn't rebuild on every tick. Keyed by the\n // row object, so replacing the row (an immutable data update) drops the old\n // entry and reseeds from the new value; the WeakMap collects stale rows.\n private selectCellOptions = new WeakMap<object, Map<string, ApexSelectOptions>>();\n\n public getSelectCellOptions(row: any, column: ApexTableColumn): ApexSelectOptions {\n let byColumn = this.selectCellOptions.get(row);\n\n if (!byColumn) {\n byColumn = new Map<string, ApexSelectOptions>();\n this.selectCellOptions.set(row, byColumn);\n }\n\n const key = column.value ?? '';\n const cached = byColumn.get(key);\n\n if (cached) {\n return cached;\n }\n\n const current = column.selectOptions?.find(option => option.value === this.getDescendantProp(row, column)) ?? null;\n\n const options: ApexSelectOptions = {\n label: '',\n placeholder: column.placeholder ?? '',\n data: column.selectOptions ?? [],\n formGroup: this.formBuilder.group({ value: [current] }),\n formControlName: 'value',\n };\n\n byColumn.set(key, options);\n\n return options;\n }\n\n public onCellSelectChange(row: any, column: ApexTableColumn, selected: ApexSelectData | null): void {\n this.cellChange.emit({ row, column, value: selected?.value ?? null });\n }\n\n // Colour for the current select value (trigger text + caret); null falls back\n // to the default styling. Mirrors getChipColor for the Chip cell.\n public getSelectCellColor(row: any, column: ApexTableColumn): string | null {\n if (!column.cellOptions?.selectColor) {\n return null;\n }\n\n const value = this.getDescendantProp(row, column);\n\n return column.cellOptions.selectColor[value] || null;\n }\n\n private refreshLayout(): void {\n this.updateViewportLayout();\n\n setTimeout(() => {\n this.cdkViewport?.checkViewportSize();\n });\n }\n\n public goToPage(page: number): void {\n this.currentPage = page;\n this.calculatePages();\n }\n\n public goToPreviousPage(): void {\n this.currentPage--;\n this.calculatePages();\n }\n\n public goToNextPage(): void {\n this.currentPage++;\n this.calculatePages();\n }\n\n public goToFirstPage(): void {\n this.currentPage = 0;\n this.calculatePages();\n }\n\n public goToLastPage(): void {\n this.currentPage = this.totalPages() - 1;\n this.calculatePages();\n }\n\n public cellEdit(event: KeyboardEvent, column: string, currentPageRowIndex: number): void {\n const dataIndex = currentPageRowIndex + (this.currentPage * this.pageSize);\n const filtered = this.filteredData();\n\n if (column.indexOf('.') === -1) {\n filtered[dataIndex][column] = (event.target as HTMLDivElement).innerText;\n } else { // Nested properties\n let data = filtered[dataIndex];\n const fullPath = column.split('.');\n\n for (let i = 0; i < fullPath.length; i++) {\n if (i < fullPath.length - 1) {\n data = data[fullPath[i]];\n } else {\n data[fullPath[i]] = (event.target as HTMLDivElement).innerText;\n }\n }\n }\n }\n\n public formatDate(dateAsString: string | null | undefined, formatDateOptions: ApexDateFormatOptions = { format: 'shortDate', locale: 'en-US', timezone: undefined }): string {\n if (dateAsString === null || dateAsString === undefined || dateAsString === '') {\n return '';\n }\n\n return formatDate(dateAsString, formatDateOptions.format, formatDateOptions.locale, formatDateOptions.timezone);\n }\n\n public getClass(row: any, column: ApexTableColumn): string {\n if (!column.class) {\n return '';\n }\n\n if (typeof column.class === 'string') {\n return column.class;\n }\n\n return column.class[this.getDescendantProp(row, column)] || '';\n }\n\n public getDescendantProp(row: any, column: ApexTableColumn): any {\n if (!column.value || column.value === null) {\n return column.label;\n }\n\n // Case only on preprocessing - returns any numbers that have been passed in the column.value string\n if (isFinite(Number(column.value))) {\n return parseFloat(column.value);\n }\n\n if (column.type === this.TableColumnType.NumberMath) {\n return row[column.value];\n }\n\n return column.value.split('.')\n .reduce((prev: any, curr: string) => {\n if (prev && curr in prev) {\n return prev[curr];\n } else {\n return undefined;\n }\n }, row);\n }\n\n public getTextColor(row: any, column: ApexTableColumn): string | null {\n if (!column.cellOptions?.textColor) {\n return null;\n }\n\n const value = this.getDescendantProp(row, column);\n\n return column.cellOptions.textColor[value] || null;\n }\n\n public getChipColor(row: any, column: ApexTableColumn): string | null {\n if (!column.cellOptions?.chipColor) {\n return null;\n }\n\n const value = this.getDescendantProp(row, column);\n\n return column.cellOptions.chipColor[value] || null;\n }\n\n public getChipBackgroundColor(row: any, column: ApexTableColumn): string | null {\n if (!column.cellOptions?.chipBackgroundColor) {\n return null;\n }\n\n const value = this.getDescendantProp(row, column);\n\n return column.cellOptions.chipBackgroundColor[value] || null;\n }\n\n // Multi-chip support for the Chip column: when the bound value is an array, render\n // one chip per item (coloured per value via cellOptions.chipColor/chipBackgroundColor)\n // with an optional \"+N\" overflow once listOptions.max is exceeded. A scalar value keeps\n // the original single-chip rendering untouched.\n public isChipArray(row: any, column: ApexTableColumn): boolean {\n return Array.isArray(this.getDescendantProp(row, column));\n }\n\n public getChipsVisible(row: any, column: ApexTableColumn): { label: any; value: any }[] {\n const arr = this.getDescendantProp(row, column);\n\n if (!Array.isArray(arr) || arr.length === 0) {\n return [];\n }\n\n const labelKey = column.listOptions?.label;\n const max = column.listOptions?.max;\n const visible = typeof max === 'number' ? arr.slice(0, max) : arr;\n\n return visible.map(item => {\n const value = labelKey ? item[labelKey] : item;\n\n return { label: value, value };\n });\n }\n\n public getChipsOverflowCount(row: any, column: ApexTableColumn): number {\n const arr = this.getDescendantProp(row, column);\n const max = column.listOptions?.max;\n\n if (!Array.isArray(arr) || typeof max !== 'number') {\n return 0;\n }\n\n return Math.max(0, arr.length - max);\n }\n\n public getChipsTooltip(row: any, column: ApexTableColumn): string {\n const arr = this.getDescendantProp(row, column);\n const max = column.listOptions?.max;\n\n if (!Array.isArray(arr) || typeof max !== 'number') {\n return '';\n }\n\n const labelKey = column.listOptions?.label;\n\n return arr.slice(max).map(item => labelKey ? item[labelKey] : item).join('<br>');\n }\n\n public getChipValueColor(value: any, column: ApexTableColumn): string | null {\n return column.cellOptions?.chipColor?.[value] ?? null;\n }\n\n public getChipValueBackground(value: any, column: ApexTableColumn): string | null {\n return column.cellOptions?.chipBackgroundColor?.[value] ?? null;\n }\n\n public getCellIconColor(row: any, column: ApexTableColumn): string | null {\n if (!column.cellOptions?.iconColor) {\n return null;\n }\n\n const value = this.getDescendantProp(row, column);\n\n return column.cellOptions.iconColor[value] || null;\n }\n\n public getCellIcon(row: any, column: ApexTableColumn): string | null {\n if (!column.cellOptions?.icon) {\n return null;\n }\n\n if (typeof column.cellOptions.icon === 'string') {\n return column.cellOptions.icon;\n }\n\n const value = this.getDescendantProp(row, column);\n return column.cellOptions.icon[value] || null;\n }\n\n public getChangeValue(row: any, column: ApexTableColumn): number | null {\n if (!column.change) return null;\n\n const value = this.getDescendantProp(row, { value: column.change } as ApexTableColumn);\n\n return typeof value === 'number' ? value : parseFloat(value) || null;\n }\n\n public getListDisplayText(row: any, column: ApexTableColumn): string {\n const arr = this.getDescendantProp(row, column);\n\n if (!Array.isArray(arr) || arr.length === 0) {\n return '--';\n }\n\n const max = column.listOptions?.max ?? 3;\n const visible = arr.slice(0, max);\n const labelKey = column.listOptions?.label;\n\n return visible.map(item => labelKey ? item[labelKey] : item).join(' / ');\n }\n\n public getListOverflowCount(row: any, column: ApexTableColumn): number {\n const arr = this.getDescendantProp(row, column);\n\n if (!Array.isArray(arr)) {\n return 0;\n }\n\n const max = column.listOptions?.max ?? 3;\n\n return Math.max(0, arr.length - max);\n }\n\n public getListTooltipContent(row: any, column: ApexTableColumn): string {\n const arr = this.getDescendantProp(row, column);\n\n if (!Array.isArray(arr)) {\n return '';\n }\n\n const max = column.listOptions?.max ?? 3;\n const hidden = arr.slice(max);\n const labelKey = column.listOptions?.label;\n\n return hidden.map(item => labelKey ? item[labelKey] : item).join('<br>');\n }\n\n public getChipLabel(row: any, column: ApexTableColumn): string {\n if (!column.chipLabel) {\n return column.label ? column.label : this.getDescendantProp(row, column);\n }\n\n return column.chipLabel[this.getDescendantProp(row, column)];\n }\n\n public isStatusStepCompleted(row: any, column: ApexTableColumn, stepIndex: number): boolean {\n if (!column.statusSteps?.length) {\n return false;\n }\n\n const currentValue = this.getDescendantProp(row, column);\n const currentIndex = column.statusSteps.findIndex(s => s.value === currentValue);\n\n return currentIndex !== -1 && stepIndex <= currentIndex;\n }\n\n public getCheckboxState(row: any, column: ApexTableColumn): boolean {\n let state = this.getDescendantProp(row, column);\n\n if (typeof state !== 'boolean') {\n return false;\n }\n\n return state;\n }\n\n public handleActionShow(action: Action, row: any, column?: ApexTableColumn): boolean {\n if (!action.showOn || action.showOn.length === 0) {\n return true;\n }\n\n return action.showOn.every((condition) => {\n const rowValue = this.getDescendantProp(row, { value: condition.property });\n\n const ifValueExists = !!rowValue;\n \n if (condition.exists != null && condition.exists === ifValueExists) {\n return ifValueExists;\n }\n\n return condition.values.includes(rowValue);\n });\n }\n\n public sortColumn(column: any, changeSortDirection = true): void {\n if (!this.sortable) {\n return;\n }\n\n if (!column.value) {\n return;\n }\n\n if (changeSortDirection) {\n\n if (this.sortIndex == this.columns.indexOf(column)) {\n switch (this.sortDirection) {\n case 'asc':\n this.sortDirection = 'desc';\n break;\n case 'desc':\n this.sortDirection = 'asc';\n break;\n default:\n this.sortDirection = 'asc';\n break;\n }\n } else {\n this.sortDirection = 'asc';\n this.sortIndex = this.columns.indexOf(column);\n }\n\n }\n\n if (this.serverSide) {\n this.currentPage = 0;\n\n const start = this.currentPage * this.pageSize;\n const end = Math.min(this._dataLength, start + this.pageSize);\n\n this.tableChange.emit({ from: start, to: end, filter: this.filter, sort: { columnValue: this.columns[this.sortIndex].value, sortDirection: this.sortDirection } });\n } else {\n this.goToFirstPage();\n\n this.sortData(this.filteredData(), column);\n this.updatePageData();\n }\n\n const row = this.currentActiveRow();\n if (row) {\n row.isDropdown = false;\n this.currentActiveRow.set(null);\n this.unlockScroll();\n }\n }\n\n public toggleActionDropdown(row: any, column: ApexTableColumn, event: any): void {\n // Prevent the event to be processed by the Hostlistener\n event.stopPropagation();\n\n const prevRow = this.currentActiveRow();\n if (prevRow) {\n prevRow.isDropdown = false;\n }\n\n row.isDropdown = !row.isDropdown;\n\n this.currentActiveRow.set(row);\n this.currentActiveColumn.set(column);\n\n // Wait for Angular to render the dropdown element via @if before positioning it.\n afterNextRender(() => {\n let actionPos!: DOMRect;\n\n for (let i of this.moreActionsList) {\n if (i.nativeElement.classList.contains('opened')) {\n actionPos = i.nativeElement.getBoundingClientRect();\n }\n }\n\n if (this.DropdownElement) {\n if (this.osService.mobileOS === MobileOS.iOS) {\n actionPos.y += window.visualViewport!.offsetTop;\n actionPos.x += window.visualViewport!.offsetLeft;\n }\n\n const dropdownWidth = this.DropdownElement.nativeElement.offsetWidth;\n\n const left = actionPos.x + dropdownWidth / 2 < window.innerWidth - 10 ? actionPos.x : window.innerWidth - 10 - dropdownWidth;\n\n this.DropdownElement.nativeElement.style.transform = left === actionPos.x ? 'translateX(-50%)' : '';\n this.DropdownElement.nativeElement.style.left = left + 'px';\n this.DropdownElement.nativeElement.style.top = `${ actionPos.y + actionPos.height }px`;\n\n this.lockScroll();\n } else {\n this.unlockScroll();\n }\n }, { injector: this.injector });\n }\n\n public onViewportScroll(): void {\n // Safety net: close dropdown if scroll somehow fires while it's open\n const row = this.currentActiveRow();\n if (row) {\n row.isDropdown = false;\n this.currentActiveRow.set(null);\n this.currentActiveColumn.set(null);\n this.unlockScroll();\n }\n }\n\n public toggleRowSelection(row: any, event?: MouseEvent): void {\n this.cancelSelectAllAcross();\n const pageData = this.pageData();\n const currentIndex = pageData.indexOf(row);\n\n this.selectedRows.update(s => {\n const next = new Set(s);\n if (event?.shiftKey && this.lastSelectedIndex !== -1 && currentIndex !== -1) {\n const start = Math.min(this.lastSelectedIndex, currentIndex);\n const end = Math.max(this.lastSelectedIndex, currentIndex);\n\n for (let i = start; i <= end; i++) {\n next.add(pageData[i]);\n }\n } else {\n if (next.has(row)) {\n next.delete(row);\n } else {\n next.add(row);\n }\n }\n return next;\n });\n\n this.lastSelectedIndex = currentIndex;\n this.allSelected.set(this.selectedRows().size === pageData.length);\n this.selectionChange.emit(Array.from(this.selectedRows()));\n }\n\n public toggleSelectAll(): void {\n this.cancelSelectAllAcross();\n const pageData = this.pageData();\n\n if (this.allSelected()) {\n this.selectedRows.set(new Set());\n this.allSelected.set(false);\n } else {\n this.selectedRows.set(new Set(pageData));\n this.allSelected.set(true);\n }\n\n this.selectionChange.emit(Array.from(this.selectedRows()));\n }\n\n // Banner action: opt into (on=true) or out of \"select all matching\". Keeps the\n // current page selected as the visual baseline; consumers act on the full\n // filtered set (via selectAllAcrossChange) rather than the emitted row list.\n public setSelectAllAcross(on: boolean): void {\n if (on) {\n this.selectedRows.set(new Set(this.pageData()));\n this.allSelected.set(true);\n this.selectAllAcross.set(true);\n this.selectionChange.emit(Array.from(this.selectedRows()));\n } else {\n this.selectedRows.set(new Set());\n this.allSelected.set(false);\n this.selectAllAcross.set(false);\n this.selectionChange.emit([]);\n }\n\n this.selectAllAcrossChange.emit(on);\n }\n\n // A manual selection change (row toggle / header toggle) cancels an active\n // \"select all matching\" so the two states can't drift apart.\n private cancelSelectAllAcross(): void {\n if (this.selectAllAcross()) {\n this.selectAllAcross.set(false);\n this.selectAllAcrossChange.emit(false);\n }\n }\n\n public isRowSelected(row: any): boolean {\n return this.selectedRows().has(row);\n }\n\n // Emit `rowClick` for whole-row click consumers. Skip when the click originated from\n // an in-row interactive (action icon, kebab dropdown, selection checkbox, contenteditable\n // cell) so existing handlers keep working without callers needing stopPropagation.\n public onRowClick(row: any, event: MouseEvent | Event): void {\n const target = event.target as HTMLElement | null;\n\n if (!target) {\n return;\n }\n\n if (target.closest('.action-icon-wrapper, .select-column, .cell-select, [contenteditable=\"true\"], .more-actions-dropdown')) {\n return;\n }\n\n this.rowClick.emit(row);\n }\n\n private lockScroll(): void {\n this.scrollBlockService.activate();\n\n if (this.cdkViewport) {\n this.cdkViewport.elementRef.nativeElement.style.overflow = 'hidden';\n }\n }\n\n private unlockScroll(): void {\n this.scrollBlockService.deactivate();\n\n if (this.cdkViewport) {\n this.cdkViewport.elementRef.nativeElement.style.overflow = '';\n }\n }\n\n private preprocessData(): void {\n if (!this.data || this.data.length === 0) {\n return;\n }\n\n this.columns.forEach(column => {\n if (!column.value || column.type !== this.TableColumnType.NumberMath) {\n return;\n }\n\n this.data.forEach(row => {\n const result = this.calculateNumberMathCell(row, column);\n row[column.value as any] = result;\n });\n });\n }\n\n private calculateNumberMathCell(row: any, column: any): any {\n const expression = column.value.replace(\n /([a-zA-Z_][a-zA-Z0-9_.]*|\\d*\\.?\\d+)/g,\n (match: any) => {\n let value = this.getDescendantProp(row, { value: match });\n\n return (typeof value === 'number') ? value : parseFloat(value) || 0;\n }\n );\n\n let fn = new Function(`return ${expression};`);\n let result = fn();\n\n if (Number.isFinite(result)) {\n return result;\n }\n\n return this.getDescendantProp(row, column);\n }\n\n private filterData(): any[] {\n if (!this.data || this.data.length === 0) {\n return [];\n }\n\n let arrayToReturn: any[] = [ ];\n\n for (let row of this.data) {\n for (let column of this.columns) {\n if (!column.value) { continue; }\n\n let access = row[column.value];\n\n if (column.value.indexOf('.') !== -1 && column.type !== this.TableColumnType.NumberMath) {\n access = this.getAccessIfColumnValueIsObject(row, column);\n }\n\n if (access === undefined) {\n break;\n }\n\n const rowPropAsString = JSON.stringify(access).toLowerCase();\n\n if (rowPropAsString.includes(this.filter.toLowerCase())) {\n arrayToReturn.push(row);\n\n break;\n }\n }\n }\n\n return arrayToReturn;\n }\n\n private sortData(data: any[], column: ApexTableColumn): any[] {\n if (!data || data.length === 0 || !Array.isArray(data)) {\n return [];\n }\n\n if (column) {\n this.sortByProperty(data, column);\n }\n\n return data;\n }\n\n private sortByProperty(arr: any, column: any): number | void {\n if (this.sortDirection === 'desc') {\n this.sortReverse(arr, column);\n return;\n }\n\n return arr.sort((a: any, b: any) => {\n let valueA = a[column.value];\n let valueB = b[column.value];\n\n let access = column.value;\n\n if (access.indexOf('.') !== -1 && column.type !== this.TableColumnType.NumberMath) {\n valueA = this.getAccessIfColumnValueIsObject(a, column);\n valueB = this.getAccessIfColumnValueIsObject(b, column);\n } else {\n if (typeof valueA === 'string' && valueB !== undefined) {\n valueA = valueA.toLowerCase();\n valueB = valueB.toLowerCase();\n }\n }\n\n if (typeof valueA === 'number' && typeof valueB === 'number') {\n return valueA - valueB;\n }\n \n if (!valueA && valueB) return -1;\n if (valueA && !valueB) return 1;\n\n if (!valueA && !valueB) return 0;\n\n if (valueA < valueB) return -1;\n if (valueA > valueB) return 1;\n\n return 0;\n });\n }\n\n private sortReverse(arr: any, column: any) {\n return arr.sort((a: any, b: any) => {\n let valueA = a[column.value];\n let valueB = b[column.value];\n\n let access = column.value;\n\n if (access.indexOf('.') !== -1 && column.type !== this.TableColumnType.NumberMath) {\n valueA = this.getAccessIfColumnValueIsObject(a, column);\n valueB = this.getAccessIfColumnValueIsObject(b, column);\n } else {\n if (typeof valueA === 'string' && valueB !== undefined) {\n valueA = valueA.toLowerCase();\n valueB = valueB.toLowerCase();\n }\n }\n\n if (typeof valueA === 'number' && typeof valueB === 'number') {\n return valueB - valueA;\n }\n\n if (!valueA && valueB) return 1;\n if (valueA && !valueB) return -1;\n\n if (!valueA && !valueB) return 0;\n\n if (valueA < valueB) return 1;\n if (valueA > valueB) return -1;\n\n return 0;\n });\n }\n\n private getAccessIfColumnValueIsObject(row: any, column: ApexTableColumn): any {\n if (!column.value || column.value === null) {\n return undefined;\n }\n\n const keys = column.value.split('.');\n\n let access = row[keys[0]];\n\n for (let i = 1; i < keys.length; i++) {\n if (access && keys[i] in access) {\n access = access[keys[i]];\n } else {\n return undefined;\n }\n }\n\n return access;\n }\n\n private buildPaginationSelectDependecies(): void {\n const formControls: PageFormControls = {\n pageSize: this.formBuilder.control({ label: this.pageSize.toString(), value: this.pageSize }, { nonNullable: true, validators: [ Validators.required ] })\n };\n\n this.formGroup = this.formBuilder.group(formControls);\n\n const selectData = this.pageSizeOptions.map(item => ({\n label: item.toString(),\n value: item\n }));\n\n this.pageSizeSelectOptions = {\n label: '',\n data: selectData,\n formGroup: this.formGroup,\n formControlName: 'pageSize'\n };\n\n this.subscribeToFormValueChanges();\n }\n\n private subscribeToFormValueChanges(): void {\n this.formGroup.controls.pageSize.valueChanges.subscribe((value) => {\n if (this.pageSize === value.value) {\n return;\n }\n\n const currentPageFirstRowIndex = this.currentPage * this.pageSize;\n this.pageSize = value.value;\n\n this.currentPage = Math.floor(currentPageFirstRowIndex / this.pageSize);\n\n const start = this.currentPage * this.pageSize;\n const end = Math.min(this._dataLength, start + this.pageSize);\n\n if (this.serverSide) {\n this.tableChange.emit({ from: start, to: end, filter: this.filter, sort: { columnValue: this.columns[this.sortIndex].value, sortDirection: this.sortDirection } });\n }\n\n this.calculateTotalPages();\n this.updateVisibleRange(start, end);\n this.updatePageData();\n this.refreshLayout();\n });\n }\n\n private calculatePages(): void {\n const start = this.currentPage * this.pageSize;\n const end = Math.min(this._dataLength, start + this.pageSize);\n\n this.updatePageData();\n\n if (!this.serverSide) {\n this.updateVisibleRange(start, end);\n } else {\n this.tableChange.emit({ from: start, to: end, filter: this.filter, sort: { columnValue: this.columns[this.sortIndex].value, sortDirection: this.sortDirection } });\n }\n\n }\n}\n","<div class=\"container\" [ngClass]=\"{ 'is-loading': isLoading, 'sticky-header': stickyHeader, 'header-stuck': isHeaderStuck() }\">\n <!-- Server-side \"select all matching\" banner: shown once the current page is\n fully selected and the filtered total exceeds the loaded page. -->\n @if (selectionHeader === 'checkbox' && serverSide && allSelected() && dataLength > pageData().length) {\n <div class=\"select-all-across\">\n @if (selectAllAcross()) {\n <span class=\"select-all-across-text\">All {{ dataLength | number }} selected.</span>\n <button type=\"button\" class=\"select-all-across-btn\" (click)=\"setSelectAllAcross(false)\">Clear selection</button>\n } @else {\n <span class=\"select-all-across-text\">All {{ pageData().length }} on this page are selected.</span>\n <button type=\"button\" class=\"select-all-across-btn\" (click)=\"setSelectAllAcross(true)\">Select all {{ dataLength | number }}</button>\n }\n </div>\n }\n\n @if (virtualScroll) {\n @if (stickyHeader) {\n <table class=\"sticky-virtual-header\">\n <thead>\n <ng-container *ngTemplateOutlet=\"headerRow\"></ng-container>\n </thead>\n </table>\n }\n\n <cdk-virtual-scroll-viewport [itemSize]=\"itemSize\" class=\"cdk-table-viewport\" [ngStyle]=\"{ height: virtualViewportHeight() + 'px' }\" [style.overflow-y]=\"showViewportScroll() ? 'auto' : 'hidden'\" (scrolled)=\"onViewportScroll()\">\n <table>\n @if (!stickyHeader) {\n <thead #theadRef>\n <ng-container *ngTemplateOutlet=\"headerRow\"></ng-container>\n </thead>\n }\n\n <tbody>\n <tr *cdkVirtualFor=\"let row of pageData(); trackBy: trackByIndex\"\n class=\"row-clickable\"\n [attr.tabindex]=\"rowClick.observed ? 0 : null\"\n [ngClass]=\"{ 'selected-row': editMode && isRowSelected(row) }\"\n (click)=\"onRowClick(row, $event)\"\n (keydown.enter)=\"onRowClick(row, $event)\">\n @if (editMode && selectionPosition === 'left') {\n <ng-container *ngTemplateOutlet=\"selectionBodyCell; context: { row: row }\"></ng-container>\n }\n\n @for (column of columns; track $index) {\n <td tabindex=\"-1\" [ngStyle]=\"{ width: column.width ? column.width : '' }\">\n <ng-container [ngTemplateOutlet]=\"getCellTemplate(column)\"\n [ngTemplateOutletContext]=\"{ row: row, column: column, $index: $index }\">\n </ng-container>\n </td>\n }\n\n @if (editMode && selectionPosition === 'right') {\n <ng-container *ngTemplateOutlet=\"selectionBodyCell; context: { row: row }\"></ng-container>\n }\n </tr>\n </tbody>\n </table>\n </cdk-virtual-scroll-viewport>\n } @else {\n <table>\n <thead>\n <ng-container *ngTemplateOutlet=\"headerRow\"></ng-container>\n </thead>\n\n <tbody>\n @for (row of pageData(); track $index) {\n <tr class=\"row-clickable\"\n [attr.tabindex]=\"rowClick.observed ? 0 : null\"\n [ngClass]=\"{ 'selected-row': editMode && isRowSelected(row) }\"\n (click)=\"onRowClick(row, $event)\"\n (keydown.enter)=\"onRowClick(row, $event)\">\n @if (editMode && selectionPosition === 'left') {\n <ng-container *ngTemplateOutlet=\"selectionBodyCell; context: { row: row }\"></ng-container>\n }\n\n @for (column of columns; track $index) {\n <td tabindex=\"-1\">\n <ng-container [ngTemplateOutlet]=\"getCellTemplate(column)\"\n [ngTemplateOutletContext]=\"{ row: row, column: column, $index: $index }\">\n </ng-container>\n </td>\n }\n\n @if (editMode && selectionPosition === 'right') {\n <ng-container *ngTemplateOutlet=\"selectionBodyCell; context: { row: row }\"></ng-container>\n }\n </tr>\n }\n </tbody>\n </table>\n }\n\n @if (currentActiveRow()?.isDropdown && currentActiveColumn()) {\n <ng-container *ngTemplateOutlet=\"multipleActionsDropdown; context: { row: currentActiveRow(), column: currentActiveColumn() }\"></ng-container>\n }\n\n @if (filter && filteredData() && filteredData().length === 0) {\n <div class=\"row no-data\">\n <span>No data matching the filter:</span>\n\n <span>\"{{ filter }}\"</span>\n </div>\n }\n\n @if (!filter && data && data.length === 0) {\n <div class=\"row no-data\">No data available.</div>\n }\n\n @if (pageable && pageData().length !== 0) {\n <div class=\"paging\">\n <div class=\"visible-range\">{{ visibleRange() }}</div>\n\n <ng-container *ngTemplateOutlet=\"pagePicker; context: { totalPages: totalPages() }\"></ng-container>\n\n <div class=\"page-size-option-picker\">\n <span>Items per page:</span>\n\n <apex-select class=\"table\" [options]=\"pageSizeSelectOptions\"></apex-select>\n </div>\n </div>\n }\n</div>\n\n<ng-template #textCell let-row=\"row\" let-column=\"column\" let-index=\"$index\">\n <div class=\"cell\"\n [ngClass]=\"[getClass(row, column), column.change ? 'has-change' : '', column.cellOptions?.icon ? 'has-icon' : '']\"\n [style.color]=\"getTextColor(row, column)\"\n [attr.contenteditable]=\"column.editable\"\n (keyup)=\"cellEdit($event, column.value, index)\">\n\n @if (getCellIcon(row, column) && column.cellOptions?.iconPosition !== 'right') {\n <div class=\"cell-icon\" [class.has-color]=\"getCellIconColor(row, column)\" [style.--apex-table-cell-icon-fill]=\"getCellIconColor(row, column)\" [style.--apex-table-cell-icon-stroke]=\"getCellIconColor(row, column)\">\n <apex-img [src]=\"'assets/img/' + getCellIcon(row, column)\" [alt]=\"'Cell icon.'\"></apex-img>\n </div>\n }\n\n <span class=\"cell-text\">{{ column.prefix ? column.prefix : '' }}{{ getDescendantProp(row, column) }}{{ column.suffix ? column.suffix : '' }}</span>\n\n @if (getCellIcon(row, column) && column.cellOptions?.iconPosition === 'right') {\n <div class=\"cell-icon\" [class.has-color]=\"getCellIconColor(row, column)\" [style.--apex-table-cell-icon-fill]=\"getCellIconColor(row, column)\" [style.--apex-table-cell-icon-stroke]=\"getCellIconColor(row, column)\">\n <apex-img [src]=\"'assets/img/' + getCellIcon(row, column)\" [alt]=\"'Cell icon.'\"></apex-img>\n </div>\n }\n\n @if (getChangeValue(row, column) !== null) {\n <apex-chip [ngClass]=\"getChangeValue(row, column)! >= 0 ? 'change-positive' : 'change-negative'\">\n {{ getChangeValue(row, column)! >= 0 ? '+' : '' }}{{ getChangeValue(row, column) }}%\n </apex-chip>\n }\n </div>\n</ng-template>\n\n<ng-template #dateCell let-row=\"row\" let-column=\"column\">\n <div class=\"cell\"\n [ngClass]=\"getClass(row, column)\">\n {{ formatDate(getDescendantProp(row, column), column.dateFormat) }}\n </div>\n</ng-template>\n\n<ng-template #currencyCell let-row=\"row\" let-column=\"column\">\n <div class=\"cell\"\n [ngClass]=\"[getClass(row, column), column.change ? 'has-change' : '']\">\n\n @if (getDescendantProp(row, column) !== undefined) {\n {{ column.prefix ? column.prefix : '' }}{{ (getDescendantProp(row, column) / 100) | number }}\n }\n\n @if (getChangeValue(row, column) !== null) {\n <apex-chip [ngClass]=\"getChangeValue(row, column)! >= 0 ? 'change-positive' : 'change-negative'\">\n {{ getChangeValue(row, column)! >= 0 ? '+' : '' }}{{ getChangeValue(row, column) }}%\n </apex-chip>\n }\n </div>\n</ng-template>\n\n<ng-template #numberCell let-row=\"row\" let-column=\"column\" let-index=\"i\">\n <div class=\"cell\"\n [ngClass]=\"[getClass(row, column), column.change ? 'has-change' : '']\"\n [attr.contenteditable]=\"column.editable\"\n (keyup)=\"cellEdit($event, column.value, index)\">\n\n {{ column.prefix ? column.prefix : '' }}{{ getDescendantProp(row, column) | number}}{{ column.suffix ? column.suffix : '' }}\n\n @if (getChangeValue(row, column) !== null) {\n <apex-chip [ngClass]=\"getChangeValue(row, column)! >= 0 ? 'change-positive' : 'change-negative'\">\n {{ getChangeValue(row, column)! >= 0 ? '+' : '' }}{{ getChangeValue(row, column) }}%\n </apex-chip>\n }\n </div>\n</ng-template>\n\n<ng-template #numberMathCell let-row=\"row\" let-column=\"column\" let-index=\"i\">\n <div class=\"cell\"\n [ngClass]=\"[getClass(row, column), column.change ? 'has-change' : '']\"\n [attr.contenteditable]=\"column.editable\"\n (keyup)=\"cellEdit($event, column.value, index)\">\n\n {{ column.prefix ? column.prefix : '' }}{{ getDescendantProp(row, column) | number}}{{ column.suffix ? column.suffix : '' }}\n\n @if (getChangeValue(row, column) !== null) {\n <apex-chip [ngClass]=\"getChangeValue(row, column)! >= 0 ? 'change-positive' : 'change-negative'\">\n {{ getChangeValue(row, column)! >= 0 ? '+' : '' }}{{ getChangeValue(row, column) }}%\n </apex-chip>\n }\n </div>\n</ng-template>\n\n<ng-template #actionCell let-row=\"row\" let-column=\"column\">\n <div class=\"cell actions\">\n\n @for (action of column.singleActions; track $index) {\n @if (handleActionShow(action, row, column)) {\n <div ApexTooltip role=\"button\" [attr.tabindex]=\"action.disabled ? -1 : 0\" [attr.aria-label]=\"action.label\" [attr.aria-disabled]=\"action.disabled ? 'true' : null\" (click)=\"action.execute && action.execute(row)\" (keydown.enter)=\"action.execute && action.execute(row)\" (keydown.space)=\"$event.preventDefault(); action.execute && action.execute(row)\" [apexTooltip]=\"action.label\" [tooltipPosition]=\"tooltipPosition.Above\" class=\"action-icon-wrapper\" [ngClass]=\"{ 'disabled': action.disabled }\">\n <apex-img [src]=\" 'assets/img/' + action.icon\" [ngClass]=\"action.class\" [alt]=\"''\"></apex-img>\n </div>\n }\n }\n\n @if (column.multipleActions) {\n <div class=\"action-icon-wrapper\" #moreActionsList role=\"button\" tabindex=\"0\" aria-label=\"More actions\" aria-haspopup=\"menu\" [attr.aria-expanded]=\"row.isDropdown ? 'true' : 'false'\" [ngClass]=\"{ 'opened': row.isDropdown }\" (click)=\"toggleActionDropdown(row, column, $event)\" (keydown.enter)=\"toggleActionDropdown(row, column, $event)\">\n <svg class=\"multiple-action-icon\" aria-hidden=\"true\" xmlns=\"http://www.w3.org/2000/svg\" width=\"16\" height=\"16\" viewBox=\"0 0 17 16\" fill=\"none\">\n <path d=\"M10.3047 8C10.3047 8.34612 10.2021 8.68446 10.0098 8.97225C9.81747 9.26004 9.54416 9.48434 9.22438 9.61679C8.90461 9.74924 8.55275 9.7839 8.21328 9.71638C7.87381 9.64885 7.56199 9.48218 7.31725 9.23744C7.07251 8.9927 6.90584 8.68088 6.83831 8.34141C6.77079 8.00194 6.80545 7.65008 6.9379 7.33031C7.07035 7.01053 7.29465 6.73722 7.58244 6.54493C7.87023 6.35264 8.20857 6.25 8.55469 6.25C9.01868 6.25046 9.46353 6.43498 9.79162 6.76307C10.1197 7.09116 10.3042 7.53601 10.3047 8ZM8.55469 4.75C8.90081 4.75 9.23915 4.64737 9.52694 4.45507C9.81472 4.26278 10.039 3.98947 10.1715 3.6697C10.3039 3.34993 10.3386 2.99806 10.2711 2.65859C10.2035 2.31913 10.0369 2.00731 9.79213 1.76256C9.54738 1.51782 9.23556 1.35115 8.8961 1.28363C8.55663 1.2161 8.20476 1.25076 7.88499 1.38321C7.56522 1.51566 7.29191 1.73997 7.09962 2.02775C6.90732 2.31554 6.80469 2.65388 6.80469 3C6.80515 3.46399 6.98967 3.90884 7.31776 4.23693C7.64585 4.56502 8.0907 4.74954 8.55469 4.75ZM8.55469 11.25C8.20857 11.25 7.87023 11.3526 7.58244 11.5449C7.29465 11.7372 7.07035 12.0105 6.9379 12.3303C6.80545 12.6501 6.77079 13.0019 6.83831 13.3414C6.90584 13.6809 7.07251 13.9927 7.31725 14.2374C7.56199 14.4822 7.87381 14.6489 8.21328 14.7164C8.55275 14.7839 8.90461 14.7492 9.22438 14.6168C9.54416 14.4843 9.81747 14.26 10.0098 13.9722C10.2021 13.6845 10.3047 13.3461 10.3047 13C10.3042 12.536 10.1197 12.0912 9.79162 11.7631C9.46353 11.435 9.01868 11.2505 8.55469 11.25Z\"/>\n </svg>\n </div>\n }\n\n </div>\n</ng-template>\n\n<ng-template #chipCell let-row=\"row\" let-column=\"column\">\n <div class=\"cell chip\" [class.chips]=\"isChipArray(row, column)\">\n @if (isChipArray(row, column)) {\n @for (chip of getChipsVisible(row, column); track $index) {\n <apex-chip [ngClass]=\"getClass(row, column)\"\n [style.--apex-chip-color]=\"getChipValueColor(chip.value, column)\"\n [style.--apex-chip-background-color]=\"getChipValueBackground(chip.value, column)\">{{ chip.label }}</apex-chip>\n }\n\n @if (getChipsOverflowCount(row, column) > 0) {\n <apex-chip class=\"list-overflow-badge\"\n ApexTooltip\n [apexTooltip]=\"getChipsTooltip(row, column)\"\n [tooltipPosition]=\"tooltipPosition.Below\">\n +{{ getChipsOverflowCount(row, column) }}\n </apex-chip>\n }\n } @else if (getChipLabel(row, column)) {\n <apex-chip [ngClass]=\"getClass(row, column)\"\n [style.--apex-chip-color]=\"getChipColor(row, column)\"\n [style.--apex-chip-background-color]=\"getChipBackgroundColor(row, column)\"> {{ getChipLabel(row, column) }}</apex-chip>\n }\n </div>\n</ng-template>\n\n<ng-template #statusCell let-row=\"row\" let-column=\"column\">\n <div class=\"cell status\">\n @for (step of column.statusSteps; track step.value; let i = $index) {\n <div class=\"status-step\" [class.completed]=\"isStatusStepCompleted(row, column, i)\">\n <span class=\"status-step-label\">{{ step.label }}</span>\n\n <div class=\"status-step-bar\"\n [style.background-color]=\"isStatusStepCompleted(row, column, i) ? step.color : null\">\n </div>\n </div>\n }\n </div>\n</ng-template>\n\n<ng-template #listCell let-row=\"row\" let-column=\"column\">\n <div class=\"cell list\">\n <span class=\"list-text\">{{ getListDisplayText(row, column) }}</span>\n\n @if (getListOverflowCount(row, column) > 0) {\n <apex-chip class=\"list-overflow-badge\"\n ApexTooltip\n [apexTooltip]=\"getListTooltipContent(row, column)\"\n [tooltipPosition]=\"tooltipPosition.Below\">\n +{{ getListOverflowCount(row, column) }}\n </apex-chip>\n }\n </div>\n</ng-template>\n\n<ng-template #checkboxCell let-row=\"row\" let-column=\"column\">\n <div class=\"cell checkbox\">\n <apex-checkbox [checked]=\"getCheckboxState(row, column)\" [disabled]=\"true\"></apex-checkbox>\n </div>\n</ng-template>\n\n<ng-template #selectCell let-row=\"row\" let-column=\"column\">\n <div class=\"cell cell-select\" (click)=\"$event.stopPropagation()\">\n <apex-select\n [options]=\"getSelectCellOptions(row, column)\"\n [style.--apex-select-input-text-color]=\"getSelectCellColor(row, column)\"\n [style.--apex-select-arrow-color]=\"getSelectCellColor(row, column)\"\n (selectChange)=\"onCellSelectChange(row, column, $event)\"></apex-select>\n </div>\n</ng-template>\n\n<ng-template #multipleActionsDropdown let-row=\"row\" let-column=\"column\">\n <div #multipleActionsDropdownElement #dropdownElement class=\"more-actions-dropdown\">\n @for (action of column.multipleActions; track $index) {\n\n @if (handleActionShow(action, row, column)) {\n <div class=\"dropdown-row\" role=\"button\" tabindex=\"0\" (click)=\"action.execute && action.execute(row)\" (keydown.enter)=\"action.execute && action.execute(row)\" (keydown.space)=\"$event.preventDefault(); action.execute && action.execute(row)\">\n <apex-img [src]=\"'assets/img/' + action.icon\" [ngClass]=\"action.class\" [alt]=\"''\"></apex-img>\n\n <span>{{ action.label }}</span>\n </div>\n }\n\n }\n </div>\n</ng-template>\n\n<ng-template #pagePicker let-totalPages=\"totalPages\">\n <div class=\"page-picker\">\n <!-- If page one should be visible -->\n @if (currentPage + 1 >= 3) {\n <span role=\"button\" tabindex=\"0\" aria-label=\"Page 1\" (click)=\"goToPage(0)\" (keydown.enter)=\"goToPage(0)\">1</span>\n <span class=\"style-excluded\" aria-hidden=\"true\">...</span>\n }\n\n <!-- Middle part of the page-picker -->\n <ng-container *ngTemplateOutlet=\"page; context: { page: currentPage - 1 } \"></ng-container>\n <ng-container *ngTemplateOutlet=\"page; context: { page: currentPage, class: 'highlighted' } \"></ng-container>\n <ng-container *ngTemplateOutlet=\"page; context: { page: currentPage + 1 } \"></ng-container>\n\n <!-- If last page should be visible -->\n @if (currentPage + 1 <= totalPages - 2) {\n <span class=\"style-excluded\" aria-hidden=\"true\">...</span>\n <span role=\"button\" tabindex=\"0\" [attr.aria-label]=\"'Page ' + totalPages\" (click)=\"goToPage(totalPages - 1)\" (keydown.enter)=\"goToPage(totalPages - 1)\">{{ totalPages }}</span>\n }\n\n </div>\n</ng-template>\n\n<ng-template #page let-page=\"page\" let-class=\"class\">\n @if (page >= 0 && page < totalPages()) {\n <span [ngClass]=\"class\" role=\"button\" tabindex=\"0\" [attr.aria-label]=\"'Page ' + (page + 1)\" [attr.aria-current]=\"class === 'highlighted' ? 'page' : null\" (click)=\"goToPage(page)\" (keydown.enter)=\"goToPage(page)\">{{ page + 1 }}</span>\n }\n</ng-template>\n\n<ng-template #headerRow>\n <tr>\n @if (editMode && selectionPosition === 'left') {\n <ng-container *ngTemplateOutlet=\"selectionHeaderCell\"></ng-container>\n }\n\n @for (column of columns; track $index) {\n <th scope=\"col\" [attr.aria-sort]=\"sortable && columns.indexOf(column) === sortIndex ? (sortDirection === 'asc' ? 'ascending' : 'descending') : null\" [ngStyle]=\"{ width: column.width ? column.width : '' }\">\n <div class=\"cell\">\n <span>{{ column.label }}</span>\n\n @if (column.type !== TableColumnType.Actions && sortable) {\n <div class=\"arranger\" role=\"button\" tabindex=\"0\" [attr.aria-label]=\"'Sort by ' + column.label\" (click)=\"sortColumn(column)\" (keydown.enter)=\"sortColumn(column)\" (keydown.space)=\"$event.preventDefault(); sortColumn(column)\">\n <svg xmlns=\"http://www.w3.org/2000/svg\" width=\"14\" height=\"14\" viewBox=\"0 0 12 12\" fill=\"none\" aria-hidden=\"true\">\n <path d=\"M3.11445 5.50005H8.88795C9.31895 5.50005 9.54795 4.99005 9.26145 4.66755L6.37495 1.42005C6.32813 1.3672 6.27063 1.32489 6.20624 1.29591C6.14186 1.26694 6.07205 1.25195 6.00145 1.25195C5.93084 1.25195 5.86104 1.26694 5.79666 1.29591C5.73227 1.32489 5.67477 1.3672 5.62795 1.42005L2.74045 4.66755C2.45395 4.99005 2.68295 5.50005 3.11445 5.50005ZM5.62745 10.5795C5.67427 10.6324 5.73177 10.6747 5.79616 10.7037C5.86054 10.7327 5.93034 10.7476 6.00095 10.7476C6.07155 10.7476 6.14136 10.7327 6.20574 10.7037C6.27013 10.6747 6.32763 10.6324 6.37445 10.5795L9.26095 7.33205C9.54795 7.01005 9.31895 6.50005 8.88745 6.50005H3.11445C2.68345 6.50005 2.45445 7.01005 2.74095 7.33255L5.62745 10.5795Z\" fill=\"#C6C6C6\"/>\n </svg>\n </div>\n }\n </div>\n </th>\n }\n\n @if (editMode && selectionPosition === 'right') {\n <ng-container *ngTemplateOutlet=\"selectionHeaderCell\"></ng-container>\n }\n </tr>\n</ng-template>\n\n<ng-template #selectionHeaderCell>\n <th scope=\"col\" class=\"select-column\" (click)=\"selectionHeader === 'checkbox' ? toggleSelectAll() : null\">\n <div class=\"cell\" [class.checkbox]=\"selectionHeader === 'checkbox'\">\n @if (selectionHeader === 'checkbox') {\n <apex-checkbox [checked]=\"allSelected()\"></apex-checkbox>\n } @else {\n <span class=\"select-all-btn\" role=\"button\" tabindex=\"0\" (click)=\"toggleSelectAll()\" (keydown.enter)=\"toggleSelectAll()\" (keydown.space)=\"$event.preventDefault(); toggleSelectAll()\">{{ allSelected() ? 'Deselect' : 'Select all' }}</span>\n }\n </div>\n </th>\n</ng-template>\n\n<ng-template #selectionBodyCell let-row=\"row\">\n <td class=\"select-column\" (click)=\"toggleRowSelection(row, $event)\">\n <div class=\"cell checkbox\">\n <apex-checkbox [checked]=\"isRowSelected(row)\"></apex-checkbox>\n </div>\n </td>\n</ng-template>\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":[],"mappings":";;;;;;;;;;;;;;;IA2DY;AAAZ,CAAA,UAAY,mBAAmB,EAAA;AAC7B,IAAA,mBAAA,CAAA,mBAAA,CAAA,MAAA,CAAA,GAAA,CAAA,CAAA,GAAA,MAAI;AACJ,IAAA,mBAAA,CAAA,mBAAA,CAAA,MAAA,CAAA,GAAA,CAAA,CAAA,GAAA,MAAI;AACJ,IAAA,mBAAA,CAAA,mBAAA,CAAA,UAAA,CAAA,GAAA,CAAA,CAAA,GAAA,UAAQ;AACR,IAAA,mBAAA,CAAA,mBAAA,CAAA,MAAA,CAAA,GAAA,CAAA,CAAA,GAAA,MAAI;AACJ,IAAA,mBAAA,CAAA,mBAAA,CAAA,QAAA,CAAA,GAAA,CAAA,CAAA,GAAA,QAAM;AACN,IAAA,mBAAA,CAAA,mBAAA,CAAA,YAAA,CAAA,GAAA,CAAA,CAAA,GAAA,YAAU;AACV,IAAA,mBAAA,CAAA,mBAAA,CAAA,SAAA,CAAA,GAAA,CAAA,CAAA,GAAA,SAAO;AACP,IAAA,mBAAA,CAAA,mBAAA,CAAA,UAAA,CAAA,GAAA,CAAA,CAAA,GAAA,UAAQ;AACR,IAAA,mBAAA,CAAA,mBAAA,CAAA,MAAA,CAAA,GAAA,CAAA,CAAA,GAAA,MAAI;AACJ,IAAA,mBAAA,CAAA,mBAAA,CAAA,QAAA,CAAA,GAAA,CAAA,CAAA,GAAA,QAAM;A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CAAA,cAAc,EAAE,EAAE,MAAM,EAAE,IAAI,EAAE;;sBAC1C,SAAS;AAAC,gBAAA,IAAA,EAAA,CAAA,YAAY,EAAE,EAAE,MAAM,EAAE,IAAI,EAAE;;sBACxC,SAAS;AAAC,gBAAA,IAAA,EAAA,CAAA,UAAU,EAAE,EAAE,MAAM,EAAE,IAAI,EAAE;;sBACtC,SAAS;AAAC,gBAAA,IAAA,EAAA,CAAA,YAAY,EAAE,EAAE,MAAM,EAAE,IAAI,EAAE;;sBACxC,SAAS;AAAC,gBAAA,IAAA,EAAA,CAAA,YAAY,EAAE,EAAE,MAAM,EAAE,IAAI,EAAE;;sBAIxC;;sBACA;;sBACA;;sBACA;;sBAGA;;sBACA;;sBAGA;;sBACA;;sBACA;;sBAGA;;sBACA;;sBACA;;sBACA;;sBAGA;;sBACA;;sBAGA;;sBAGA;;sBACA;;sBACA;;sBAEA;;sBACA;;sBACA;;sBACA;;sBAGA;;sBAKA;;sBAiCA,YAAY;uBAAC,gBAAgB,EAAE,CAAC,QAAQ,CAAC;;sBAczC,YAAY;uBAAC,iBAAiB;;sBA2B9B,YAAY;uBAAC,eAAe;;;AE3Q/B;;AAEG;;;;"}
1
+ {"version":3,"file":"apexara-ng-components-table.mjs","sources":["../../../../projects/apexara/ng-components/table/src/table.component.ts","../../../../projects/apexara/ng-components/table/src/table.component.html","../../../../projects/apexara/ng-components/table/apexara-ng-components-table.ts"],"sourcesContent":["import { Component, ViewChildren, QueryList, ViewChild, ElementRef, Input, Output, EventEmitter, HostListener, SimpleChanges, TemplateRef, signal, Injector, afterNextRender } from '@angular/core';\nimport { NgTemplateOutlet, NgStyle, NgClass, DecimalPipe, formatDate } from '@angular/common';\nimport { ScrollingModule, CdkVirtualScrollViewport } from '@angular/cdk/scrolling';\nimport { FormBuilder, FormControl, FormGroup, Validators } from '@angular/forms';\n\nimport { ApexChipComponent } from '@apexara/ng-components/chip';\nimport { ApexImageComponent } from '@apexara/ng-components/image';\nimport { ApexCheckboxComponent } from '@apexara/ng-components/checkbox';\nimport { ApexSelectData, ApexSelectComponent, ApexSelectOptions } from '@apexara/ng-components/select';\n\nimport { OSService, MobileOS, ScrollBlockService } from '@apexara/ng-components/services';\n\nimport { ApexTooltipDirective, TooltipPosition } from '@apexara/ng-components/tooltip';\n\nexport interface ApexTableColumn {\n label?: string;\n value?: string;\n type?: ApexTableColumnType;\n width?: string;\n editable?: boolean;\n prefix?: string;\n suffix?: string;\n singleActions?: Action[];\n multipleActions?: Action[];\n dateFormat?: ApexDateFormatOptions;\n chipLabel?: { [key: string]: string };\n class?: string | { [key: string]: string };\n change?: string;\n listOptions?: ApexTableListOptions;\n cellOptions?: ApexTableCellOptions;\n statusSteps?: ApexTableStatusStep[];\n // Select cell (type Select): the dropdown options and the empty-state\n // placeholder. The cell shows the option whose value matches the row's value\n // and emits (cellChange) when the user picks another.\n selectOptions?: ApexSelectData[];\n placeholder?: string;\n}\n\nexport interface ApexTableStatusStep {\n label: string;\n value: string | number | boolean;\n color: string;\n}\n\nexport interface ApexTableListOptions {\n label?: string;\n max?: number;\n}\n\nexport interface ApexTableCellOptions {\n icon?: string | { [key: string]: string };\n iconPosition?: 'left' | 'right';\n iconColor?: { [key: string]: string };\n textColor?: { [key: string]: string };\n chipColor?: { [key: string]: string };\n chipBackgroundColor?: { [key: string]: string };\n selectColor?: { [key: string]: string };\n}\n\nexport enum ApexTableColumnType {\n Text,\n Date,\n Currency,\n Chip,\n Number,\n NumberMath,\n Actions,\n Checkbox,\n List,\n Status,\n Select,\n}\n\nexport type ActionShowType = Array<{ property: string; values: any[]; exists?: boolean; }> \n\nexport interface Action {\n icon: string;\n label: string;\n class?: string;\n showOn?: ActionShowType;\n disabled?: boolean;\n execute?: (row: any) => void;\n}\n\nexport interface ApexTableChange {\n from: number;\n to: number;\n filter?: string;\n sort?: any;\n}\n\nexport interface ApexDateFormatOptions {\n format: string;\n locale: string;\n timezone?: string;\n}\n\ninterface PageFormControls {\n pageSize: FormControl<{ label: string, value: number }>;\n}\n\n@Component({\n standalone: true,\n selector: 'apex-table',\n templateUrl: './table.component.html',\n styleUrls: ['./table.component.css'],\n imports: [\n NgStyle,\n NgClass,\n DecimalPipe,\n NgTemplateOutlet,\n ApexChipComponent,\n ApexImageComponent,\n ApexSelectComponent,\n ApexTooltipDirective,\n ApexCheckboxComponent,\n ScrollingModule,\n ]\n})\n\nexport class ApexTableComponent {\n\n constructor(\n private elementRef: ElementRef,\n private osService: OSService,\n private formBuilder: FormBuilder,\n private scrollBlockService: ScrollBlockService,\n private injector: Injector) {\n }\n\n @ViewChild('theadRef') theadRef?: ElementRef<HTMLElement>;\n @ViewChildren('moreActionsList') moreActionsList!: QueryList<ElementRef>;\n @ViewChild(CdkVirtualScrollViewport) cdkViewport?: CdkVirtualScrollViewport;\n @ViewChild('dropdownElement') DropdownElement: ElementRef<any> | null = null;\n\n // Cell templates (mapped by type)\n @ViewChild('textCell', { static: true }) textCellTpl!: TemplateRef<any>;\n @ViewChild('numberCell', { static: true }) numberCellTpl!: TemplateRef<any>;\n @ViewChild('currencyCell', { static: true }) currencyCellTpl!: TemplateRef<any>;\n @ViewChild('numberMathCell', { static: true }) numberMathCellTpl!: TemplateRef<any>;\n @ViewChild('dateCell', { static: true }) dateCellTpl!: TemplateRef<any>;\n @ViewChild('chipCell', { static: true }) chipCellTpl!: TemplateRef<any>;\n @ViewChild('checkboxCell', { static: true }) checkboxCellTpl!: TemplateRef<any>;\n @ViewChild('actionCell', { static: true }) actionCellTpl!: TemplateRef<any>;\n @ViewChild('listCell', { static: true }) listCellTpl!: TemplateRef<any>;\n @ViewChild('statusCell', { static: true }) statusCellTpl!: TemplateRef<any>;\n @ViewChild('selectCell', { static: true }) selectCellTpl!: TemplateRef<any>;\n\n\n // Data configuration\n @Input() data!: any[];\n @Input() dataLength!: number;\n @Input() columns!: ApexTableColumn[];\n @Input() filter!: string;\n\n // Data source configuration (serverSide loaded or local data)\n @Input() serverSide!: boolean;\n @Input() isLoading!: boolean;\n\n // Sorting configuration\n @Input() sortIndex = 0;\n @Input() sortable = true;\n @Input() sortDirection: 'asc' | 'desc' = 'asc';\n\n // Pagination configuration\n @Input() pageSize = 10;\n @Input() currentPage = 0;\n @Input() pageable = false;\n @Input() pageSizeOptions = [ 10, 25, 50, 100, 1000 ];\n\n // Virtual scroll configuration (optimization for large datasets)\n @Input() virtualScroll: boolean = false; // For local data only\n @Input() tableMaxHeight: number = 800;\n\n // Sticky header configuration\n @Input() stickyHeader: boolean = false;\n\n // Edit mode configuration\n @Input() editMode: boolean = false;\n @Input() selectionPosition: 'left' | 'right' = 'right';\n @Input() selectionHeader: 'text' | 'checkbox' = 'text';\n\n @Output() tableChange = new EventEmitter<ApexTableChange>()\n @Output() selectionChange = new EventEmitter<any[]>()\n @Output() editModeChange = new EventEmitter<boolean>()\n @Output() rowClick = new EventEmitter<any>()\n // A select cell's value changed — { row, column, value } where value is the\n // chosen option's raw value (null when cleared). Lets a consumer persist it.\n @Output() cellChange = new EventEmitter<{ row: any; column: ApexTableColumn; value: any }>()\n // Server-side \"select all matching\" — emits true when the user opts to select\n // every row behind the current filter (beyond the loaded page), false when\n // cleared or when a manual selection change cancels it. Consumers act on the\n // whole filtered set (e.g. by re-sending the query) rather than the row list.\n @Output() selectAllAcrossChange = new EventEmitter<boolean>()\n\n public itemSize: number = 42; // Must match CSS table row height\n\n public tooltipPosition = TooltipPosition;\n\n public TableColumnType = ApexTableColumnType;\n\n public totalPages = signal(0);\n public visibleRange = signal('');\n\n public filteredData = signal<any[]>([]);\n public pageData = signal<any[]>([]);\n\n public pageSizeSelectOptions!: ApexSelectOptions;\n\n public currentActiveRow = signal<any>(null);\n public currentActiveColumn = signal<ApexTableColumn | null>(null);\n public isDropdown = signal(false);\n public isHeaderStuck = signal(false);\n\n public selectedRows = signal<Set<any>>(new Set());\n public allSelected = signal(false);\n // True when \"select all matching\" is active (server-side, beyond the page).\n public selectAllAcross = signal(false);\n public virtualViewportHeight = signal(0);\n public showViewportScroll = signal(false);\n private lastSelectedIndex: number = -1;\n\n public formGroup!: FormGroup<PageFormControls>;\n\n private _dataLength!: number;\n\n @HostListener('document:click', ['$event'])\n public onClick(event: any): void {\n // TO DO: When two tables exists the dropdown from first table is not closed\n if (event.target !== this.DropdownElement?.nativeElement && event.target) {\n const row = this.currentActiveRow();\n\n if (row) {\n row.isDropdown = false;\n this.currentActiveRow.set(null);\n this.unlockScroll();\n }\n }\n }\n\n @HostListener('document:scroll')\n public onScroll(): void {\n\n if (this.stickyHeader) {\n const rect = this.elementRef.nativeElement.getBoundingClientRect();\n const stuck = rect.top < 0;\n\n if (stuck !== this.isHeaderStuck()) {\n this.isHeaderStuck.set(stuck);\n }\n }\n\n for (let item of this.moreActionsList) {\n if (item.nativeElement.classList.contains('opened') && this.DropdownElement) {\n let actionPos = item.nativeElement.getBoundingClientRect();\n\n if (this.osService.mobileOS === MobileOS.iOS) {\n actionPos.y += window.visualViewport!.offsetTop;\n }\n\n this.DropdownElement.nativeElement.style.top = `${ actionPos.y + actionPos.height }px`;\n\n break;\n }\n }\n }\n\n @HostListener('window:resize')\n public onResize(): void {\n\n for (let item of this.moreActionsList) {\n if (item.nativeElement.classList.contains('opened') && this.DropdownElement) { \n let actionPos = item.nativeElement.getBoundingClientRect();\n\n if (this.osService.mobileOS === MobileOS.iOS) {\n actionPos.x += window.visualViewport!.offsetLeft;\n }\n\n const dropdownWidth = this.DropdownElement.nativeElement.offsetWidth;\n\n const left = actionPos.x + dropdownWidth / 2 < window.innerWidth - 10 ? actionPos.x : window.innerWidth - 10 - dropdownWidth;\n \n this.DropdownElement.nativeElement.style.transform = left === actionPos.x ? 'translateX(-50%)' : '';\n this.DropdownElement.nativeElement.style.left = left + 'px';\n\n break;\n }\n }\n }\n\n public ngOnInit(): void {\n }\n\n public ngAfterViewInit(): void {\n const from = this.currentPage * this.pageSize;\n const to = from + this.pageSize;\n\n if (this.serverSide && !this.data) {\n this.tableChange.emit({ from, to, sort: { columnValue: this.columns[this.sortIndex].value, sortDirection: this.sortDirection } });\n }\n\n if (!this.serverSide) {\n this.buildPaginationSelectDependecies();\n }\n\n this.updateViewportLayout();\n\n setTimeout(() => {\n this.cdkViewport?.checkViewportSize();\n });\n }\n\n public ngOnChanges(changes: SimpleChanges): void {\n if (changes['isLoading'] && changes['isLoading'].currentValue === false) {\n if (this.data) {\n this._dataLength = this.data.length;\n }\n }\n\n if (changes['data'] && changes['data'].currentValue) {\n if (this.serverSide) {\n this.filteredData.set(this.data);\n\n this.preprocessData();\n } else {\n this.filteredData.set(this.filter ? this.filterData() : this.data);\n\n this.preprocessData();\n\n setTimeout(() => {\n this.sortColumn(this.columns[this.sortIndex], false);\n })\n }\n\n this._dataLength = this.dataLength ? this.dataLength : this.filteredData().length;\n }\n\n if (changes['filter'] && !changes['filter'].firstChange) {\n // The two ways of filtering data -> local and serverSide\n if (!this.serverSide) {\n this.filteredData.set(this.filterData());\n this._dataLength = this.filteredData().length;\n\n setTimeout(() => {\n this.goToFirstPage();\n });\n\n } else {\n setTimeout(() => {\n this.currentPage = 0;\n\n this.tableChange.emit({ from: 0, to: 0 + this.pageSize, filter: this.filter, sort: { columnValue: this.columns[this.sortIndex].value, sortDirection: this.sortDirection } });\n });\n }\n\n }\n\n if (changes['editMode']) {\n this.editModeChange.emit(changes['editMode'].currentValue);\n\n if (!changes['editMode'].currentValue) {\n this.selectedRows.set(new Set());\n this.allSelected.set(false);\n this.lastSelectedIndex = -1;\n this.selectionChange.emit([]);\n }\n }\n\n if (changes['pageable'] && changes['pageable'].currentValue !== undefined) {\n this.buildPaginationSelectDependecies();\n }\n\n const from = this.currentPage * this.pageSize;\n const to = Math.min(this._dataLength, from + this.pageSize);\n \n this.calculateTotalPages();\n this.updateVisibleRange(from, to);\n this.updatePageData();\n this.refreshLayout();\n }\n\n public updatePageData(): void {\n const data = this.filteredData();\n if (!data || !data.length) {\n this.pageData.set([]);\n return;\n }\n\n if (!this.pageable) {\n this.pageData.set(data);\n return;\n }\n\n if (!this.serverSide) {\n const start = this.currentPage * this.pageSize;\n const end = start + this.pageSize;\n\n this.pageData.set(data.slice(start, end));\n return;\n }\n\n this.pageData.set(data);\n }\n\n public updateVisibleRange(start: number, end: number): void {\n // Grouped digits: \"Showing 8,670,471 to 8,670,480 of 8,670,480 results\".\n const format = (value: number) => value.toLocaleString('en-US');\n\n this.visibleRange.set(`Showing ${format(start + 1)} to ${format(end)} of ${format(this._dataLength)} results`);\n }\n\n public calculateTotalPages(): void {\n this.totalPages.set(Math.ceil(this._dataLength / this.pageSize));\n }\n\n public trackByIndex(index: number): number {\n return index;\n }\n\n public updateViewportLayout(): void {\n const headerHeight = this.theadRef?.nativeElement?.getBoundingClientRect().height || 0;\n\n const data = this.filteredData();\n const renderedCount = this.serverSide\n ? (data ? data.length : 0)\n : (this.pageData() ? this.pageData().length : 0);\n\n // Update viewport height\n if (renderedCount <= 0) {\n this.virtualViewportHeight.set(headerHeight);\n } else {\n const maxTotal = this.tableMaxHeight;\n const bodyCapacity = Math.max(0, maxTotal - headerHeight);\n const rowsHeight = Math.min(bodyCapacity, this.itemSize * renderedCount);\n this.virtualViewportHeight.set(Math.max(0, headerHeight + rowsHeight));\n }\n\n // Update scroll visibility\n if (!this.virtualScroll) {\n this.showViewportScroll.set(false);\n } else {\n const availableBodyHeight = Math.max(0, this.tableMaxHeight - headerHeight);\n const rowsHeight = this.itemSize * renderedCount;\n this.showViewportScroll.set(rowsHeight > availableBodyHeight);\n }\n }\n\n public getCellTemplate(column: ApexTableColumn): TemplateRef<any> {\n switch (column.type) {\n case ApexTableColumnType.Number:\n return this.numberCellTpl;\n case ApexTableColumnType.Currency:\n return this.currencyCellTpl;\n case ApexTableColumnType.NumberMath:\n return this.numberMathCellTpl;\n case ApexTableColumnType.Date:\n return this.dateCellTpl;\n case ApexTableColumnType.Chip:\n return this.chipCellTpl;\n case ApexTableColumnType.Checkbox:\n return this.checkboxCellTpl;\n case ApexTableColumnType.Actions:\n return this.actionCellTpl;\n case ApexTableColumnType.List:\n return this.listCellTpl;\n case ApexTableColumnType.Status:\n return this.statusCellTpl;\n case ApexTableColumnType.Select:\n return this.selectCellTpl;\n default:\n return this.textCellTpl;\n }\n }\n\n // One apex-select config per (row, column) select cell, kept stable across\n // change detection so the dropdown doesn't rebuild on every tick. Keyed by the\n // row object, so replacing the row (an immutable data update) drops the old\n // entry and reseeds from the new value; the WeakMap collects stale rows.\n private selectCellOptions = new WeakMap<object, Map<string, ApexSelectOptions>>();\n\n public getSelectCellOptions(row: any, column: ApexTableColumn): ApexSelectOptions {\n let byColumn = this.selectCellOptions.get(row);\n\n if (!byColumn) {\n byColumn = new Map<string, ApexSelectOptions>();\n this.selectCellOptions.set(row, byColumn);\n }\n\n const key = column.value ?? '';\n const cached = byColumn.get(key);\n\n if (cached) {\n return cached;\n }\n\n const current = column.selectOptions?.find(option => option.value === this.getDescendantProp(row, column)) ?? null;\n\n const options: ApexSelectOptions = {\n label: '',\n placeholder: column.placeholder ?? '',\n data: column.selectOptions ?? [],\n formGroup: this.formBuilder.group({ value: [current] }),\n formControlName: 'value',\n };\n\n byColumn.set(key, options);\n\n return options;\n }\n\n public onCellSelectChange(row: any, column: ApexTableColumn, selected: ApexSelectData | null): void {\n this.cellChange.emit({ row, column, value: selected?.value ?? null });\n }\n\n // Colour for the current select value (trigger text + caret); null falls back\n // to the default styling. Mirrors getChipColor for the Chip cell.\n public getSelectCellColor(row: any, column: ApexTableColumn): string | null {\n if (!column.cellOptions?.selectColor) {\n return null;\n }\n\n const value = this.getDescendantProp(row, column);\n\n return column.cellOptions.selectColor[value] || null;\n }\n\n private refreshLayout(): void {\n this.updateViewportLayout();\n\n setTimeout(() => {\n this.cdkViewport?.checkViewportSize();\n });\n }\n\n public goToPage(page: number): void {\n this.currentPage = page;\n this.calculatePages();\n }\n\n public goToPreviousPage(): void {\n this.currentPage--;\n this.calculatePages();\n }\n\n public goToNextPage(): void {\n this.currentPage++;\n this.calculatePages();\n }\n\n public goToFirstPage(): void {\n this.currentPage = 0;\n this.calculatePages();\n }\n\n public goToLastPage(): void {\n this.currentPage = this.totalPages() - 1;\n this.calculatePages();\n }\n\n public cellEdit(event: KeyboardEvent, column: string, currentPageRowIndex: number): void {\n const dataIndex = currentPageRowIndex + (this.currentPage * this.pageSize);\n const filtered = this.filteredData();\n\n if (column.indexOf('.') === -1) {\n filtered[dataIndex][column] = (event.target as HTMLDivElement).innerText;\n } else { // Nested properties\n let data = filtered[dataIndex];\n const fullPath = column.split('.');\n\n for (let i = 0; i < fullPath.length; i++) {\n if (i < fullPath.length - 1) {\n data = data[fullPath[i]];\n } else {\n data[fullPath[i]] = (event.target as HTMLDivElement).innerText;\n }\n }\n }\n }\n\n public formatDate(dateAsString: string | null | undefined, formatDateOptions: ApexDateFormatOptions = { format: 'shortDate', locale: 'en-US', timezone: undefined }): string {\n if (dateAsString === null || dateAsString === undefined || dateAsString === '') {\n return '';\n }\n\n return formatDate(dateAsString, formatDateOptions.format, formatDateOptions.locale, formatDateOptions.timezone);\n }\n\n public getClass(row: any, column: ApexTableColumn): string {\n if (!column.class) {\n return '';\n }\n\n if (typeof column.class === 'string') {\n return column.class;\n }\n\n return column.class[this.getDescendantProp(row, column)] || '';\n }\n\n public getDescendantProp(row: any, column: ApexTableColumn): any {\n if (!column.value || column.value === null) {\n return column.label;\n }\n\n // Case only on preprocessing - returns any numbers that have been passed in the column.value string\n if (isFinite(Number(column.value))) {\n return parseFloat(column.value);\n }\n\n if (column.type === this.TableColumnType.NumberMath) {\n return row[column.value];\n }\n\n return column.value.split('.')\n .reduce((prev: any, curr: string) => {\n if (prev && curr in prev) {\n return prev[curr];\n } else {\n return undefined;\n }\n }, row);\n }\n\n public getTextColor(row: any, column: ApexTableColumn): string | null {\n if (!column.cellOptions?.textColor) {\n return null;\n }\n\n const value = this.getDescendantProp(row, column);\n\n return column.cellOptions.textColor[value] || null;\n }\n\n public getChipColor(row: any, column: ApexTableColumn): string | null {\n if (!column.cellOptions?.chipColor) {\n return null;\n }\n\n const value = this.getDescendantProp(row, column);\n\n return column.cellOptions.chipColor[value] || null;\n }\n\n public getChipBackgroundColor(row: any, column: ApexTableColumn): string | null {\n if (!column.cellOptions?.chipBackgroundColor) {\n return null;\n }\n\n const value = this.getDescendantProp(row, column);\n\n return column.cellOptions.chipBackgroundColor[value] || null;\n }\n\n // Multi-chip support for the Chip column: when the bound value is an array, render\n // one chip per item (coloured per value via cellOptions.chipColor/chipBackgroundColor)\n // with an optional \"+N\" overflow once listOptions.max is exceeded. A scalar value keeps\n // the original single-chip rendering untouched.\n public isChipArray(row: any, column: ApexTableColumn): boolean {\n return Array.isArray(this.getDescendantProp(row, column));\n }\n\n public getChipsVisible(row: any, column: ApexTableColumn): { label: any; value: any }[] {\n const arr = this.getDescendantProp(row, column);\n\n if (!Array.isArray(arr) || arr.length === 0) {\n return [];\n }\n\n const labelKey = column.listOptions?.label;\n const max = column.listOptions?.max;\n const visible = typeof max === 'number' ? arr.slice(0, max) : arr;\n\n return visible.map(item => {\n const value = labelKey ? item[labelKey] : item;\n\n return { label: value, value };\n });\n }\n\n public getChipsOverflowCount(row: any, column: ApexTableColumn): number {\n const arr = this.getDescendantProp(row, column);\n const max = column.listOptions?.max;\n\n if (!Array.isArray(arr) || typeof max !== 'number') {\n return 0;\n }\n\n return Math.max(0, arr.length - max);\n }\n\n public getChipsTooltip(row: any, column: ApexTableColumn): string {\n const arr = this.getDescendantProp(row, column);\n const max = column.listOptions?.max;\n\n if (!Array.isArray(arr) || typeof max !== 'number') {\n return '';\n }\n\n const labelKey = column.listOptions?.label;\n\n return arr.slice(max).map(item => labelKey ? item[labelKey] : item).join('<br>');\n }\n\n public getChipValueColor(value: any, column: ApexTableColumn): string | null {\n return column.cellOptions?.chipColor?.[value] ?? null;\n }\n\n public getChipValueBackground(value: any, column: ApexTableColumn): string | null {\n return column.cellOptions?.chipBackgroundColor?.[value] ?? null;\n }\n\n public getCellIconColor(row: any, column: ApexTableColumn): string | null {\n if (!column.cellOptions?.iconColor) {\n return null;\n }\n\n const value = this.getDescendantProp(row, column);\n\n return column.cellOptions.iconColor[value] || null;\n }\n\n public getCellIcon(row: any, column: ApexTableColumn): string | null {\n if (!column.cellOptions?.icon) {\n return null;\n }\n\n if (typeof column.cellOptions.icon === 'string') {\n return column.cellOptions.icon;\n }\n\n const value = this.getDescendantProp(row, column);\n return column.cellOptions.icon[value] || null;\n }\n\n public getChangeValue(row: any, column: ApexTableColumn): number | null {\n if (!column.change) return null;\n\n const value = this.getDescendantProp(row, { value: column.change } as ApexTableColumn);\n\n return typeof value === 'number' ? value : parseFloat(value) || null;\n }\n\n public getListDisplayText(row: any, column: ApexTableColumn): string {\n const arr = this.getDescendantProp(row, column);\n\n if (!Array.isArray(arr) || arr.length === 0) {\n return '--';\n }\n\n const max = column.listOptions?.max ?? 3;\n const visible = arr.slice(0, max);\n const labelKey = column.listOptions?.label;\n\n return visible.map(item => labelKey ? item[labelKey] : item).join(' / ');\n }\n\n public getListOverflowCount(row: any, column: ApexTableColumn): number {\n const arr = this.getDescendantProp(row, column);\n\n if (!Array.isArray(arr)) {\n return 0;\n }\n\n const max = column.listOptions?.max ?? 3;\n\n return Math.max(0, arr.length - max);\n }\n\n public getListTooltipContent(row: any, column: ApexTableColumn): string {\n const arr = this.getDescendantProp(row, column);\n\n if (!Array.isArray(arr)) {\n return '';\n }\n\n const max = column.listOptions?.max ?? 3;\n const hidden = arr.slice(max);\n const labelKey = column.listOptions?.label;\n\n return hidden.map(item => labelKey ? item[labelKey] : item).join('<br>');\n }\n\n public getChipLabel(row: any, column: ApexTableColumn): string {\n if (!column.chipLabel) {\n return column.label ? column.label : this.getDescendantProp(row, column);\n }\n\n return column.chipLabel[this.getDescendantProp(row, column)];\n }\n\n public isStatusStepCompleted(row: any, column: ApexTableColumn, stepIndex: number): boolean {\n if (!column.statusSteps?.length) {\n return false;\n }\n\n const currentValue = this.getDescendantProp(row, column);\n const currentIndex = column.statusSteps.findIndex(s => s.value === currentValue);\n\n return currentIndex !== -1 && stepIndex <= currentIndex;\n }\n\n public getCheckboxState(row: any, column: ApexTableColumn): boolean {\n let state = this.getDescendantProp(row, column);\n\n if (typeof state !== 'boolean') {\n return false;\n }\n\n return state;\n }\n\n public handleActionShow(action: Action, row: any, column?: ApexTableColumn): boolean {\n if (!action.showOn || action.showOn.length === 0) {\n return true;\n }\n\n return action.showOn.every((condition) => {\n const rowValue = this.getDescendantProp(row, { value: condition.property });\n\n const ifValueExists = !!rowValue;\n \n if (condition.exists != null && condition.exists === ifValueExists) {\n return ifValueExists;\n }\n\n return condition.values.includes(rowValue);\n });\n }\n\n public sortColumn(column: any, changeSortDirection = true): void {\n if (!this.sortable) {\n return;\n }\n\n if (!column.value) {\n return;\n }\n\n if (changeSortDirection) {\n\n if (this.sortIndex == this.columns.indexOf(column)) {\n switch (this.sortDirection) {\n case 'asc':\n this.sortDirection = 'desc';\n break;\n case 'desc':\n this.sortDirection = 'asc';\n break;\n default:\n this.sortDirection = 'asc';\n break;\n }\n } else {\n this.sortDirection = 'asc';\n this.sortIndex = this.columns.indexOf(column);\n }\n\n }\n\n if (this.serverSide) {\n this.currentPage = 0;\n\n const start = this.currentPage * this.pageSize;\n const end = Math.min(this._dataLength, start + this.pageSize);\n\n this.tableChange.emit({ from: start, to: end, filter: this.filter, sort: { columnValue: this.columns[this.sortIndex].value, sortDirection: this.sortDirection } });\n } else {\n this.goToFirstPage();\n\n this.sortData(this.filteredData(), column);\n this.updatePageData();\n }\n\n const row = this.currentActiveRow();\n if (row) {\n row.isDropdown = false;\n this.currentActiveRow.set(null);\n this.unlockScroll();\n }\n }\n\n public toggleActionDropdown(row: any, column: ApexTableColumn, event: any): void {\n // Prevent the event to be processed by the Hostlistener\n event.stopPropagation();\n\n const prevRow = this.currentActiveRow();\n if (prevRow) {\n prevRow.isDropdown = false;\n }\n\n row.isDropdown = !row.isDropdown;\n\n this.currentActiveRow.set(row);\n this.currentActiveColumn.set(column);\n\n // Wait for Angular to render the dropdown element via @if before positioning it.\n afterNextRender(() => {\n let actionPos!: DOMRect;\n\n for (let i of this.moreActionsList) {\n if (i.nativeElement.classList.contains('opened')) {\n actionPos = i.nativeElement.getBoundingClientRect();\n }\n }\n\n if (this.DropdownElement) {\n if (this.osService.mobileOS === MobileOS.iOS) {\n actionPos.y += window.visualViewport!.offsetTop;\n actionPos.x += window.visualViewport!.offsetLeft;\n }\n\n const dropdownWidth = this.DropdownElement.nativeElement.offsetWidth;\n\n const left = actionPos.x + dropdownWidth / 2 < window.innerWidth - 10 ? actionPos.x : window.innerWidth - 10 - dropdownWidth;\n\n this.DropdownElement.nativeElement.style.transform = left === actionPos.x ? 'translateX(-50%)' : '';\n this.DropdownElement.nativeElement.style.left = left + 'px';\n this.DropdownElement.nativeElement.style.top = `${ actionPos.y + actionPos.height }px`;\n\n this.lockScroll();\n } else {\n this.unlockScroll();\n }\n }, { injector: this.injector });\n }\n\n public onViewportScroll(): void {\n // Safety net: close dropdown if scroll somehow fires while it's open\n const row = this.currentActiveRow();\n if (row) {\n row.isDropdown = false;\n this.currentActiveRow.set(null);\n this.currentActiveColumn.set(null);\n this.unlockScroll();\n }\n }\n\n public toggleRowSelection(row: any, event?: MouseEvent): void {\n this.cancelSelectAllAcross();\n const pageData = this.pageData();\n const currentIndex = pageData.indexOf(row);\n\n this.selectedRows.update(s => {\n const next = new Set(s);\n if (event?.shiftKey && this.lastSelectedIndex !== -1 && currentIndex !== -1) {\n const start = Math.min(this.lastSelectedIndex, currentIndex);\n const end = Math.max(this.lastSelectedIndex, currentIndex);\n\n for (let i = start; i <= end; i++) {\n next.add(pageData[i]);\n }\n } else {\n if (next.has(row)) {\n next.delete(row);\n } else {\n next.add(row);\n }\n }\n return next;\n });\n\n this.lastSelectedIndex = currentIndex;\n this.allSelected.set(this.selectedRows().size === pageData.length);\n this.selectionChange.emit(Array.from(this.selectedRows()));\n }\n\n public toggleSelectAll(): void {\n this.cancelSelectAllAcross();\n const pageData = this.pageData();\n\n if (this.allSelected()) {\n this.selectedRows.set(new Set());\n this.allSelected.set(false);\n } else {\n this.selectedRows.set(new Set(pageData));\n this.allSelected.set(true);\n }\n\n this.selectionChange.emit(Array.from(this.selectedRows()));\n }\n\n // Banner action: opt into (on=true) or out of \"select all matching\". Keeps the\n // current page selected as the visual baseline; consumers act on the full\n // filtered set (via selectAllAcrossChange) rather than the emitted row list.\n public setSelectAllAcross(on: boolean): void {\n if (on) {\n this.selectedRows.set(new Set(this.pageData()));\n this.allSelected.set(true);\n this.selectAllAcross.set(true);\n this.selectionChange.emit(Array.from(this.selectedRows()));\n } else {\n this.selectedRows.set(new Set());\n this.allSelected.set(false);\n this.selectAllAcross.set(false);\n this.selectionChange.emit([]);\n }\n\n this.selectAllAcrossChange.emit(on);\n }\n\n // A manual selection change (row toggle / header toggle) cancels an active\n // \"select all matching\" so the two states can't drift apart.\n private cancelSelectAllAcross(): void {\n if (this.selectAllAcross()) {\n this.selectAllAcross.set(false);\n this.selectAllAcrossChange.emit(false);\n }\n }\n\n public isRowSelected(row: any): boolean {\n return this.selectedRows().has(row);\n }\n\n // Emit `rowClick` for whole-row click consumers. Skip when the click originated from\n // an in-row interactive (action icon, kebab dropdown, selection checkbox, contenteditable\n // cell) so existing handlers keep working without callers needing stopPropagation.\n public onRowClick(row: any, event: MouseEvent | Event): void {\n const target = event.target as HTMLElement | null;\n\n if (!target) {\n return;\n }\n\n if (target.closest('.action-icon-wrapper, .select-column, .cell-select, [contenteditable=\"true\"], .more-actions-dropdown')) {\n return;\n }\n\n this.rowClick.emit(row);\n }\n\n private lockScroll(): void {\n this.scrollBlockService.activate();\n\n if (this.cdkViewport) {\n this.cdkViewport.elementRef.nativeElement.style.overflow = 'hidden';\n }\n }\n\n private unlockScroll(): void {\n this.scrollBlockService.deactivate();\n\n if (this.cdkViewport) {\n this.cdkViewport.elementRef.nativeElement.style.overflow = '';\n }\n }\n\n private preprocessData(): void {\n if (!this.data || this.data.length === 0) {\n return;\n }\n\n this.columns.forEach(column => {\n if (!column.value || column.type !== this.TableColumnType.NumberMath) {\n return;\n }\n\n this.data.forEach(row => {\n const result = this.calculateNumberMathCell(row, column);\n row[column.value as any] = result;\n });\n });\n }\n\n private calculateNumberMathCell(row: any, column: any): any {\n const expression = column.value.replace(\n /([a-zA-Z_][a-zA-Z0-9_.]*|\\d*\\.?\\d+)/g,\n (match: any) => {\n let value = this.getDescendantProp(row, { value: match });\n\n return (typeof value === 'number') ? value : parseFloat(value) || 0;\n }\n );\n\n let fn = new Function(`return ${expression};`);\n let result = fn();\n\n if (Number.isFinite(result)) {\n return result;\n }\n\n return this.getDescendantProp(row, column);\n }\n\n private filterData(): any[] {\n if (!this.data || this.data.length === 0) {\n return [];\n }\n\n let arrayToReturn: any[] = [ ];\n\n for (let row of this.data) {\n for (let column of this.columns) {\n if (!column.value) { continue; }\n\n let access = row[column.value];\n\n if (column.value.indexOf('.') !== -1 && column.type !== this.TableColumnType.NumberMath) {\n access = this.getAccessIfColumnValueIsObject(row, column);\n }\n\n if (access === undefined) {\n break;\n }\n\n const rowPropAsString = JSON.stringify(access).toLowerCase();\n\n if (rowPropAsString.includes(this.filter.toLowerCase())) {\n arrayToReturn.push(row);\n\n break;\n }\n }\n }\n\n return arrayToReturn;\n }\n\n private sortData(data: any[], column: ApexTableColumn): any[] {\n if (!data || data.length === 0 || !Array.isArray(data)) {\n return [];\n }\n\n if (column) {\n this.sortByProperty(data, column);\n }\n\n return data;\n }\n\n private sortByProperty(arr: any, column: any): number | void {\n if (this.sortDirection === 'desc') {\n this.sortReverse(arr, column);\n return;\n }\n\n return arr.sort((a: any, b: any) => {\n let valueA = a[column.value];\n let valueB = b[column.value];\n\n let access = column.value;\n\n if (access.indexOf('.') !== -1 && column.type !== this.TableColumnType.NumberMath) {\n valueA = this.getAccessIfColumnValueIsObject(a, column);\n valueB = this.getAccessIfColumnValueIsObject(b, column);\n } else {\n if (typeof valueA === 'string' && valueB !== undefined) {\n valueA = valueA.toLowerCase();\n valueB = valueB.toLowerCase();\n }\n }\n\n if (typeof valueA === 'number' && typeof valueB === 'number') {\n return valueA - valueB;\n }\n \n if (!valueA && valueB) return -1;\n if (valueA && !valueB) return 1;\n\n if (!valueA && !valueB) return 0;\n\n if (valueA < valueB) return -1;\n if (valueA > valueB) return 1;\n\n return 0;\n });\n }\n\n private sortReverse(arr: any, column: any) {\n return arr.sort((a: any, b: any) => {\n let valueA = a[column.value];\n let valueB = b[column.value];\n\n let access = column.value;\n\n if (access.indexOf('.') !== -1 && column.type !== this.TableColumnType.NumberMath) {\n valueA = this.getAccessIfColumnValueIsObject(a, column);\n valueB = this.getAccessIfColumnValueIsObject(b, column);\n } else {\n if (typeof valueA === 'string' && valueB !== undefined) {\n valueA = valueA.toLowerCase();\n valueB = valueB.toLowerCase();\n }\n }\n\n if (typeof valueA === 'number' && typeof valueB === 'number') {\n return valueB - valueA;\n }\n\n if (!valueA && valueB) return 1;\n if (valueA && !valueB) return -1;\n\n if (!valueA && !valueB) return 0;\n\n if (valueA < valueB) return 1;\n if (valueA > valueB) return -1;\n\n return 0;\n });\n }\n\n private getAccessIfColumnValueIsObject(row: any, column: ApexTableColumn): any {\n if (!column.value || column.value === null) {\n return undefined;\n }\n\n const keys = column.value.split('.');\n\n let access = row[keys[0]];\n\n for (let i = 1; i < keys.length; i++) {\n if (access && keys[i] in access) {\n access = access[keys[i]];\n } else {\n return undefined;\n }\n }\n\n return access;\n }\n\n private buildPaginationSelectDependecies(): void {\n const formControls: PageFormControls = {\n pageSize: this.formBuilder.control({ label: this.pageSize.toString(), value: this.pageSize }, { nonNullable: true, validators: [ Validators.required ] })\n };\n\n this.formGroup = this.formBuilder.group(formControls);\n\n const selectData = this.pageSizeOptions.map(item => ({\n label: item.toString(),\n value: item\n }));\n\n this.pageSizeSelectOptions = {\n label: '',\n data: selectData,\n formGroup: this.formGroup,\n formControlName: 'pageSize'\n };\n\n this.subscribeToFormValueChanges();\n }\n\n private subscribeToFormValueChanges(): void {\n this.formGroup.controls.pageSize.valueChanges.subscribe((value) => {\n if (this.pageSize === value.value) {\n return;\n }\n\n const currentPageFirstRowIndex = this.currentPage * this.pageSize;\n this.pageSize = value.value;\n\n this.currentPage = Math.floor(currentPageFirstRowIndex / this.pageSize);\n\n const start = this.currentPage * this.pageSize;\n const end = Math.min(this._dataLength, start + this.pageSize);\n\n if (this.serverSide) {\n this.tableChange.emit({ from: start, to: end, filter: this.filter, sort: { columnValue: this.columns[this.sortIndex].value, sortDirection: this.sortDirection } });\n }\n\n this.calculateTotalPages();\n this.updateVisibleRange(start, end);\n this.updatePageData();\n this.refreshLayout();\n });\n }\n\n private calculatePages(): void {\n const start = this.currentPage * this.pageSize;\n const end = Math.min(this._dataLength, start + this.pageSize);\n\n this.updatePageData();\n\n if (!this.serverSide) {\n this.updateVisibleRange(start, end);\n } else {\n this.tableChange.emit({ from: start, to: end, filter: this.filter, sort: { columnValue: this.columns[this.sortIndex].value, sortDirection: this.sortDirection } });\n }\n\n }\n}\n","<div class=\"container\" [ngClass]=\"{ 'is-loading': isLoading, 'sticky-header': stickyHeader, 'header-stuck': isHeaderStuck() }\">\n <!-- Server-side \"select all matching\" banner: shown once the current page is\n fully selected and the filtered total exceeds the loaded page. -->\n @if (selectionHeader === 'checkbox' && serverSide && allSelected() && dataLength > pageData().length) {\n <div class=\"select-all-across\">\n @if (selectAllAcross()) {\n <span class=\"select-all-across-text\">All {{ dataLength | number }} selected.</span>\n <button type=\"button\" class=\"select-all-across-btn\" (click)=\"setSelectAllAcross(false)\">Clear selection</button>\n } @else {\n <span class=\"select-all-across-text\">All {{ pageData().length }} on this page are selected.</span>\n <button type=\"button\" class=\"select-all-across-btn\" (click)=\"setSelectAllAcross(true)\">Select all {{ dataLength | number }}</button>\n }\n </div>\n }\n\n @if (virtualScroll) {\n @if (stickyHeader) {\n <table class=\"sticky-virtual-header\">\n <thead>\n <ng-container *ngTemplateOutlet=\"headerRow\"></ng-container>\n </thead>\n </table>\n }\n\n <cdk-virtual-scroll-viewport [itemSize]=\"itemSize\" class=\"cdk-table-viewport\" [ngStyle]=\"{ height: virtualViewportHeight() + 'px' }\" [style.overflow-y]=\"showViewportScroll() ? 'auto' : 'hidden'\" (scrolled)=\"onViewportScroll()\">\n <table>\n @if (!stickyHeader) {\n <thead #theadRef>\n <ng-container *ngTemplateOutlet=\"headerRow\"></ng-container>\n </thead>\n }\n\n <tbody>\n <tr *cdkVirtualFor=\"let row of pageData(); trackBy: trackByIndex\"\n class=\"row-clickable\"\n [attr.tabindex]=\"rowClick.observed ? 0 : null\"\n [ngClass]=\"{ 'selected-row': editMode && isRowSelected(row) }\"\n (click)=\"onRowClick(row, $event)\"\n (keydown.enter)=\"onRowClick(row, $event)\">\n @if (editMode && selectionPosition === 'left') {\n <ng-container *ngTemplateOutlet=\"selectionBodyCell; context: { row: row }\"></ng-container>\n }\n\n @for (column of columns; track $index) {\n <td tabindex=\"-1\" [ngStyle]=\"{ width: column.width ? column.width : '' }\">\n <ng-container [ngTemplateOutlet]=\"getCellTemplate(column)\"\n [ngTemplateOutletContext]=\"{ row: row, column: column, $index: $index }\">\n </ng-container>\n </td>\n }\n\n @if (editMode && selectionPosition === 'right') {\n <ng-container *ngTemplateOutlet=\"selectionBodyCell; context: { row: row }\"></ng-container>\n }\n </tr>\n </tbody>\n </table>\n </cdk-virtual-scroll-viewport>\n } @else {\n <table>\n <thead>\n <ng-container *ngTemplateOutlet=\"headerRow\"></ng-container>\n </thead>\n\n <tbody>\n @for (row of pageData(); track $index) {\n <tr class=\"row-clickable\"\n [attr.tabindex]=\"rowClick.observed ? 0 : null\"\n [ngClass]=\"{ 'selected-row': editMode && isRowSelected(row) }\"\n (click)=\"onRowClick(row, $event)\"\n (keydown.enter)=\"onRowClick(row, $event)\">\n @if (editMode && selectionPosition === 'left') {\n <ng-container *ngTemplateOutlet=\"selectionBodyCell; context: { row: row }\"></ng-container>\n }\n\n @for (column of columns; track $index) {\n <td tabindex=\"-1\">\n <ng-container [ngTemplateOutlet]=\"getCellTemplate(column)\"\n [ngTemplateOutletContext]=\"{ row: row, column: column, $index: $index }\">\n </ng-container>\n </td>\n }\n\n @if (editMode && selectionPosition === 'right') {\n <ng-container *ngTemplateOutlet=\"selectionBodyCell; context: { row: row }\"></ng-container>\n }\n </tr>\n }\n </tbody>\n </table>\n }\n\n @if (currentActiveRow()?.isDropdown && currentActiveColumn()) {\n <ng-container *ngTemplateOutlet=\"multipleActionsDropdown; context: { row: currentActiveRow(), column: currentActiveColumn() }\"></ng-container>\n }\n\n @if (filter && filteredData() && filteredData().length === 0) {\n <div class=\"row no-data\">\n <span>No data matching the filter:</span>\n\n <span>\"{{ filter }}\"</span>\n </div>\n }\n\n @if (!filter && data && data.length === 0) {\n <div class=\"row no-data\">No data available.</div>\n }\n\n @if (pageable && pageData().length !== 0) {\n <div class=\"paging\">\n <div class=\"visible-range\">{{ visibleRange() }}</div>\n\n <ng-container *ngTemplateOutlet=\"pagePicker; context: { totalPages: totalPages() }\"></ng-container>\n\n <div class=\"page-size-option-picker\">\n <span>Items per page:</span>\n\n <apex-select class=\"table\" [options]=\"pageSizeSelectOptions\"></apex-select>\n </div>\n </div>\n }\n</div>\n\n<ng-template #textCell let-row=\"row\" let-column=\"column\" let-index=\"$index\">\n <div class=\"cell\"\n [ngClass]=\"[getClass(row, column), column.change ? 'has-change' : '', column.cellOptions?.icon ? 'has-icon' : '']\"\n [style.color]=\"getTextColor(row, column)\"\n [attr.contenteditable]=\"column.editable\"\n (keyup)=\"cellEdit($event, column.value, index)\">\n\n @if (getCellIcon(row, column) && column.cellOptions?.iconPosition !== 'right') {\n <div class=\"cell-icon\" [class.has-color]=\"getCellIconColor(row, column)\" [style.--apex-table-cell-icon-fill]=\"getCellIconColor(row, column)\" [style.--apex-table-cell-icon-stroke]=\"getCellIconColor(row, column)\">\n <apex-img [src]=\"'assets/img/' + getCellIcon(row, column)\" [alt]=\"'Cell icon.'\"></apex-img>\n </div>\n }\n\n <span class=\"cell-text\">{{ column.prefix ? column.prefix : '' }}{{ getDescendantProp(row, column) }}{{ column.suffix ? column.suffix : '' }}</span>\n\n @if (getCellIcon(row, column) && column.cellOptions?.iconPosition === 'right') {\n <div class=\"cell-icon\" [class.has-color]=\"getCellIconColor(row, column)\" [style.--apex-table-cell-icon-fill]=\"getCellIconColor(row, column)\" [style.--apex-table-cell-icon-stroke]=\"getCellIconColor(row, column)\">\n <apex-img [src]=\"'assets/img/' + getCellIcon(row, column)\" [alt]=\"'Cell icon.'\"></apex-img>\n </div>\n }\n\n @if (getChangeValue(row, column) !== null) {\n <apex-chip [ngClass]=\"getChangeValue(row, column)! >= 0 ? 'change-positive' : 'change-negative'\">\n {{ getChangeValue(row, column)! >= 0 ? '+' : '' }}{{ getChangeValue(row, column) }}%\n </apex-chip>\n }\n </div>\n</ng-template>\n\n<ng-template #dateCell let-row=\"row\" let-column=\"column\">\n <div class=\"cell\"\n [ngClass]=\"getClass(row, column)\">\n {{ formatDate(getDescendantProp(row, column), column.dateFormat) }}\n </div>\n</ng-template>\n\n<ng-template #currencyCell let-row=\"row\" let-column=\"column\">\n <div class=\"cell\"\n [ngClass]=\"[getClass(row, column), column.change ? 'has-change' : '']\">\n\n @if (getDescendantProp(row, column) !== undefined) {\n {{ column.prefix ? column.prefix : '' }}{{ (getDescendantProp(row, column) / 100) | number }}\n }\n\n @if (getChangeValue(row, column) !== null) {\n <apex-chip [ngClass]=\"getChangeValue(row, column)! >= 0 ? 'change-positive' : 'change-negative'\">\n {{ getChangeValue(row, column)! >= 0 ? '+' : '' }}{{ getChangeValue(row, column) }}%\n </apex-chip>\n }\n </div>\n</ng-template>\n\n<ng-template #numberCell let-row=\"row\" let-column=\"column\" let-index=\"i\">\n <div class=\"cell\"\n [ngClass]=\"[getClass(row, column), column.change ? 'has-change' : '']\"\n [attr.contenteditable]=\"column.editable\"\n (keyup)=\"cellEdit($event, column.value, index)\">\n\n {{ column.prefix ? column.prefix : '' }}{{ getDescendantProp(row, column) | number}}{{ column.suffix ? column.suffix : '' }}\n\n @if (getChangeValue(row, column) !== null) {\n <apex-chip [ngClass]=\"getChangeValue(row, column)! >= 0 ? 'change-positive' : 'change-negative'\">\n {{ getChangeValue(row, column)! >= 0 ? '+' : '' }}{{ getChangeValue(row, column) }}%\n </apex-chip>\n }\n </div>\n</ng-template>\n\n<ng-template #numberMathCell let-row=\"row\" let-column=\"column\" let-index=\"i\">\n <div class=\"cell\"\n [ngClass]=\"[getClass(row, column), column.change ? 'has-change' : '']\"\n [attr.contenteditable]=\"column.editable\"\n (keyup)=\"cellEdit($event, column.value, index)\">\n\n {{ column.prefix ? column.prefix : '' }}{{ getDescendantProp(row, column) | number}}{{ column.suffix ? column.suffix : '' }}\n\n @if (getChangeValue(row, column) !== null) {\n <apex-chip [ngClass]=\"getChangeValue(row, column)! >= 0 ? 'change-positive' : 'change-negative'\">\n {{ getChangeValue(row, column)! >= 0 ? '+' : '' }}{{ getChangeValue(row, column) }}%\n </apex-chip>\n }\n </div>\n</ng-template>\n\n<ng-template #actionCell let-row=\"row\" let-column=\"column\">\n <div class=\"cell actions\">\n\n @for (action of column.singleActions; track $index) {\n @if (handleActionShow(action, row, column)) {\n <div ApexTooltip role=\"button\" [attr.tabindex]=\"action.disabled ? -1 : 0\" [attr.aria-label]=\"action.label\" [attr.aria-disabled]=\"action.disabled ? 'true' : null\" (click)=\"action.execute && action.execute(row)\" (keydown.enter)=\"action.execute && action.execute(row)\" (keydown.space)=\"$event.preventDefault(); action.execute && action.execute(row)\" [apexTooltip]=\"action.label\" [tooltipPosition]=\"tooltipPosition.Above\" class=\"action-icon-wrapper\" [ngClass]=\"{ 'disabled': action.disabled }\">\n <apex-img [src]=\" 'assets/img/' + action.icon\" [ngClass]=\"action.class\" [alt]=\"''\"></apex-img>\n </div>\n }\n }\n\n @if (column.multipleActions) {\n <div class=\"action-icon-wrapper\" #moreActionsList role=\"button\" tabindex=\"0\" aria-label=\"More actions\" aria-haspopup=\"menu\" [attr.aria-expanded]=\"row.isDropdown ? 'true' : 'false'\" [ngClass]=\"{ 'opened': row.isDropdown }\" (click)=\"toggleActionDropdown(row, column, $event)\" (keydown.enter)=\"toggleActionDropdown(row, column, $event)\">\n <svg class=\"multiple-action-icon\" aria-hidden=\"true\" xmlns=\"http://www.w3.org/2000/svg\" width=\"16\" height=\"16\" viewBox=\"0 0 17 16\" fill=\"none\">\n <path d=\"M10.3047 8C10.3047 8.34612 10.2021 8.68446 10.0098 8.97225C9.81747 9.26004 9.54416 9.48434 9.22438 9.61679C8.90461 9.74924 8.55275 9.7839 8.21328 9.71638C7.87381 9.64885 7.56199 9.48218 7.31725 9.23744C7.07251 8.9927 6.90584 8.68088 6.83831 8.34141C6.77079 8.00194 6.80545 7.65008 6.9379 7.33031C7.07035 7.01053 7.29465 6.73722 7.58244 6.54493C7.87023 6.35264 8.20857 6.25 8.55469 6.25C9.01868 6.25046 9.46353 6.43498 9.79162 6.76307C10.1197 7.09116 10.3042 7.53601 10.3047 8ZM8.55469 4.75C8.90081 4.75 9.23915 4.64737 9.52694 4.45507C9.81472 4.26278 10.039 3.98947 10.1715 3.6697C10.3039 3.34993 10.3386 2.99806 10.2711 2.65859C10.2035 2.31913 10.0369 2.00731 9.79213 1.76256C9.54738 1.51782 9.23556 1.35115 8.8961 1.28363C8.55663 1.2161 8.20476 1.25076 7.88499 1.38321C7.56522 1.51566 7.29191 1.73997 7.09962 2.02775C6.90732 2.31554 6.80469 2.65388 6.80469 3C6.80515 3.46399 6.98967 3.90884 7.31776 4.23693C7.64585 4.56502 8.0907 4.74954 8.55469 4.75ZM8.55469 11.25C8.20857 11.25 7.87023 11.3526 7.58244 11.5449C7.29465 11.7372 7.07035 12.0105 6.9379 12.3303C6.80545 12.6501 6.77079 13.0019 6.83831 13.3414C6.90584 13.6809 7.07251 13.9927 7.31725 14.2374C7.56199 14.4822 7.87381 14.6489 8.21328 14.7164C8.55275 14.7839 8.90461 14.7492 9.22438 14.6168C9.54416 14.4843 9.81747 14.26 10.0098 13.9722C10.2021 13.6845 10.3047 13.3461 10.3047 13C10.3042 12.536 10.1197 12.0912 9.79162 11.7631C9.46353 11.435 9.01868 11.2505 8.55469 11.25Z\"/>\n </svg>\n </div>\n }\n\n </div>\n</ng-template>\n\n<ng-template #chipCell let-row=\"row\" let-column=\"column\">\n <div class=\"cell chip\" [class.chips]=\"isChipArray(row, column)\">\n @if (isChipArray(row, column)) {\n @for (chip of getChipsVisible(row, column); track $index) {\n <apex-chip [ngClass]=\"getClass(row, column)\"\n [style.--apex-chip-color]=\"getChipValueColor(chip.value, column)\"\n [style.--apex-chip-background-color]=\"getChipValueBackground(chip.value, column)\">{{ chip.label }}</apex-chip>\n }\n\n @if (getChipsOverflowCount(row, column) > 0) {\n <apex-chip class=\"list-overflow-badge\"\n ApexTooltip\n [apexTooltip]=\"getChipsTooltip(row, column)\"\n [tooltipPosition]=\"tooltipPosition.Below\">\n +{{ getChipsOverflowCount(row, column) }}\n </apex-chip>\n }\n } @else if (getChipLabel(row, column)) {\n <apex-chip [ngClass]=\"getClass(row, column)\"\n [style.--apex-chip-color]=\"getChipColor(row, column)\"\n [style.--apex-chip-background-color]=\"getChipBackgroundColor(row, column)\"> {{ getChipLabel(row, column) }}</apex-chip>\n }\n </div>\n</ng-template>\n\n<ng-template #statusCell let-row=\"row\" let-column=\"column\">\n <div class=\"cell status\">\n @for (step of column.statusSteps; track step.value; let i = $index) {\n <div class=\"status-step\" [class.completed]=\"isStatusStepCompleted(row, column, i)\">\n <span class=\"status-step-label\">{{ step.label }}</span>\n\n <div class=\"status-step-bar\"\n [style.background-color]=\"isStatusStepCompleted(row, column, i) ? step.color : null\">\n </div>\n </div>\n }\n </div>\n</ng-template>\n\n<ng-template #listCell let-row=\"row\" let-column=\"column\">\n <div class=\"cell list\">\n <span class=\"list-text\">{{ getListDisplayText(row, column) }}</span>\n\n @if (getListOverflowCount(row, column) > 0) {\n <apex-chip class=\"list-overflow-badge\"\n ApexTooltip\n [apexTooltip]=\"getListTooltipContent(row, column)\"\n [tooltipPosition]=\"tooltipPosition.Below\">\n +{{ getListOverflowCount(row, column) }}\n </apex-chip>\n }\n </div>\n</ng-template>\n\n<ng-template #checkboxCell let-row=\"row\" let-column=\"column\">\n <div class=\"cell checkbox\">\n <apex-checkbox [checked]=\"getCheckboxState(row, column)\" [disabled]=\"true\"></apex-checkbox>\n </div>\n</ng-template>\n\n<ng-template #selectCell let-row=\"row\" let-column=\"column\">\n <div class=\"cell cell-select\" (click)=\"$event.stopPropagation()\">\n <apex-select\n [options]=\"getSelectCellOptions(row, column)\"\n [style.--apex-select-input-text-color]=\"getSelectCellColor(row, column)\"\n [style.--apex-select-arrow-color]=\"getSelectCellColor(row, column)\"\n (selectChange)=\"onCellSelectChange(row, column, $event)\"></apex-select>\n </div>\n</ng-template>\n\n<ng-template #multipleActionsDropdown let-row=\"row\" let-column=\"column\">\n <div #multipleActionsDropdownElement #dropdownElement class=\"more-actions-dropdown\">\n @for (action of column.multipleActions; track $index) {\n\n @if (handleActionShow(action, row, column)) {\n <div class=\"dropdown-row\" role=\"button\" tabindex=\"0\" (click)=\"action.execute && action.execute(row)\" (keydown.enter)=\"action.execute && action.execute(row)\" (keydown.space)=\"$event.preventDefault(); action.execute && action.execute(row)\">\n <apex-img [src]=\"'assets/img/' + action.icon\" [ngClass]=\"action.class\" [alt]=\"''\"></apex-img>\n\n <span>{{ action.label }}</span>\n </div>\n }\n\n }\n </div>\n</ng-template>\n\n<ng-template #pagePicker let-totalPages=\"totalPages\">\n <div class=\"page-picker\">\n <!-- If page one should be visible -->\n @if (currentPage + 1 >= 3) {\n <span role=\"button\" tabindex=\"0\" aria-label=\"Page 1\" (click)=\"goToPage(0)\" (keydown.enter)=\"goToPage(0)\">1</span>\n <span class=\"style-excluded\" aria-hidden=\"true\">...</span>\n }\n\n <!-- Middle part of the page-picker -->\n <ng-container *ngTemplateOutlet=\"page; context: { page: currentPage - 1 } \"></ng-container>\n <ng-container *ngTemplateOutlet=\"page; context: { page: currentPage, class: 'highlighted' } \"></ng-container>\n <ng-container *ngTemplateOutlet=\"page; context: { page: currentPage + 1 } \"></ng-container>\n\n <!-- If last page should be visible -->\n @if (currentPage + 1 <= totalPages - 2) {\n <span class=\"style-excluded\" aria-hidden=\"true\">...</span>\n <span role=\"button\" tabindex=\"0\" [attr.aria-label]=\"'Page ' + totalPages\" (click)=\"goToPage(totalPages - 1)\" (keydown.enter)=\"goToPage(totalPages - 1)\">{{ totalPages | number }}</span>\n }\n\n </div>\n</ng-template>\n\n<ng-template #page let-page=\"page\" let-class=\"class\">\n @if (page >= 0 && page < totalPages()) {\n <span [ngClass]=\"class\" role=\"button\" tabindex=\"0\" [attr.aria-label]=\"'Page ' + (page + 1)\" [attr.aria-current]=\"class === 'highlighted' ? 'page' : null\" (click)=\"goToPage(page)\" (keydown.enter)=\"goToPage(page)\">{{ page + 1 | number }}</span>\n }\n</ng-template>\n\n<ng-template #headerRow>\n <tr>\n @if (editMode && selectionPosition === 'left') {\n <ng-container *ngTemplateOutlet=\"selectionHeaderCell\"></ng-container>\n }\n\n @for (column of columns; track $index) {\n <th scope=\"col\" [attr.aria-sort]=\"sortable && columns.indexOf(column) === sortIndex ? (sortDirection === 'asc' ? 'ascending' : 'descending') : null\" [ngStyle]=\"{ width: column.width ? column.width : '' }\">\n <div class=\"cell\">\n <span>{{ column.label }}</span>\n\n @if (column.type !== TableColumnType.Actions && sortable) {\n <div class=\"arranger\" role=\"button\" tabindex=\"0\" [attr.aria-label]=\"'Sort by ' + column.label\" (click)=\"sortColumn(column)\" (keydown.enter)=\"sortColumn(column)\" (keydown.space)=\"$event.preventDefault(); sortColumn(column)\">\n <svg xmlns=\"http://www.w3.org/2000/svg\" width=\"14\" height=\"14\" viewBox=\"0 0 12 12\" fill=\"none\" aria-hidden=\"true\">\n <path d=\"M3.11445 5.50005H8.88795C9.31895 5.50005 9.54795 4.99005 9.26145 4.66755L6.37495 1.42005C6.32813 1.3672 6.27063 1.32489 6.20624 1.29591C6.14186 1.26694 6.07205 1.25195 6.00145 1.25195C5.93084 1.25195 5.86104 1.26694 5.79666 1.29591C5.73227 1.32489 5.67477 1.3672 5.62795 1.42005L2.74045 4.66755C2.45395 4.99005 2.68295 5.50005 3.11445 5.50005ZM5.62745 10.5795C5.67427 10.6324 5.73177 10.6747 5.79616 10.7037C5.86054 10.7327 5.93034 10.7476 6.00095 10.7476C6.07155 10.7476 6.14136 10.7327 6.20574 10.7037C6.27013 10.6747 6.32763 10.6324 6.37445 10.5795L9.26095 7.33205C9.54795 7.01005 9.31895 6.50005 8.88745 6.50005H3.11445C2.68345 6.50005 2.45445 7.01005 2.74095 7.33255L5.62745 10.5795Z\" fill=\"#C6C6C6\"/>\n </svg>\n </div>\n }\n </div>\n </th>\n }\n\n @if (editMode && selectionPosition === 'right') {\n <ng-container *ngTemplateOutlet=\"selectionHeaderCell\"></ng-container>\n }\n </tr>\n</ng-template>\n\n<ng-template #selectionHeaderCell>\n <th scope=\"col\" class=\"select-column\" (click)=\"selectionHeader === 'checkbox' ? toggleSelectAll() : null\">\n <div class=\"cell\" [class.checkbox]=\"selectionHeader === 'checkbox'\">\n @if (selectionHeader === 'checkbox') {\n <apex-checkbox [checked]=\"allSelected()\"></apex-checkbox>\n } @else {\n <span class=\"select-all-btn\" role=\"button\" tabindex=\"0\" (click)=\"toggleSelectAll()\" (keydown.enter)=\"toggleSelectAll()\" (keydown.space)=\"$event.preventDefault(); toggleSelectAll()\">{{ allSelected() ? 'Deselect' : 'Select all' }}</span>\n }\n </div>\n </th>\n</ng-template>\n\n<ng-template #selectionBodyCell let-row=\"row\">\n <td class=\"select-column\" (click)=\"toggleRowSelection(row, $event)\">\n <div class=\"cell checkbox\">\n <apex-checkbox [checked]=\"isRowSelected(row)\"></apex-checkbox>\n </div>\n </td>\n</ng-template>\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":[],"mappings":";;;;;;;;;;;;;;;IA2DY;AAAZ,CAAA,UAAY,mBAAmB,EAAA;AAC7B,IAAA,mBAAA,CAAA,mBAAA,CAAA,MAAA,CAAA,GAAA,CAAA,CAAA,GAAA,MAAI;AACJ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AY,EAAE,EAAE,MAAM,EAAE,IAAI,EAAE;;sBAIxC;;sBACA;;sBACA;;sBACA;;sBAGA;;sBACA;;sBAGA;;sBACA;;sBACA;;sBAGA;;sBACA;;sBACA;;sBACA;;sBAGA;;sBACA;;sBAGA;;sBAGA;;sBACA;;sBACA;;sBAEA;;sBACA;;sBACA;;sBACA;;sBAGA;;sBAKA;;sBAiCA,YAAY;uBAAC,gBAAgB,EAAE,CAAC,QAAQ,CAAC;;sBAczC,YAAY;uBAAC,iBAAiB;;sBA2B9B,YAAY;uBAAC,eAAe;;;AE3Q/B;;AAEG;;;;"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@apexara/ng-components",
3
- "version": "1.0.6",
3
+ "version": "1.0.7",
4
4
  "private": false,
5
5
  "peerDependencies": {
6
6
  "@angular/cdk": ">=19",