@ithouse-bd/ngx-table 1.1.0 → 1.1.1

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.
@@ -630,7 +630,10 @@ class TableComponent {
630
630
  columnOrder = signal([], ...(ngDevMode ? [{ debugName: "columnOrder" }] : []));
631
631
  /** Runtime widths in px, keyed by column key. */
632
632
  columnWidths = signal({}, ...(ngDevMode ? [{ debugName: "columnWidths" }] : []));
633
- /** Runtime pinning, keyed by column key. */
633
+ /**
634
+ * Runtime pinning, keyed by column key. A `null` value records an explicit unpin so
635
+ * a column that declares `sticky` in its definition can still be unpinned at runtime.
636
+ */
634
637
  pinnedKeys = signal({}, ...(ngDevMode ? [{ debugName: "pinnedKeys" }] : []));
635
638
  /** Measured header widths, used to offset stacked sticky columns. */
636
639
  measuredWidths = signal({}, ...(ngDevMode ? [{ debugName: "measuredWidths" }] : []));
@@ -663,7 +666,8 @@ class TableComponent {
663
666
  resizing = null;
664
667
  copyTimer;
665
668
  measureHandle;
666
- presetLoaded = false;
669
+ /** `storageKey` whose preset was already loaded (or `''` when none is used). */
670
+ presetKey = null;
667
671
  skeletonIndexes = computed(() => Array.from({ length: Math.max(0, this.skeletonRows()) }, (_, index) => index), ...(ngDevMode ? [{ debugName: "skeletonIndexes" }] : []));
668
672
  constructor() {
669
673
  // Restore the stored preset once, then persist every later change. Restoring must
@@ -671,15 +675,15 @@ class TableComponent {
671
675
  // still empty until the host has bound it.
672
676
  effect(() => {
673
677
  const key = this.storageKey();
674
- const state = this.state();
678
+ void this.state();
675
679
  void this.views();
676
680
  void this.activeView();
677
681
  untracked(() => {
678
- if (!this.presetLoaded) {
679
- this.presetLoaded = true;
680
- if (!key)
681
- return;
682
- const stored = this.readPreset(key);
682
+ // Load once per storage key. Keying the restore (instead of a one-shot flag) also
683
+ // covers a `storageKey` that is only bound after the first change detection.
684
+ if (key !== this.presetKey) {
685
+ this.presetKey = key;
686
+ const stored = key ? this.readPreset(key) : null;
683
687
  if (stored) {
684
688
  this.views.set(stored.views ?? {});
685
689
  this.activeView.set(stored.activeView ?? null);
@@ -1174,7 +1178,11 @@ class TableComponent {
1174
1178
  }
1175
1179
  /** Runtime pin, falling back to the declared `column.sticky`. */
1176
1180
  pinOf(column) {
1177
- return this.pinnedKeys()[column.key] ?? column.sticky ?? null;
1181
+ const pinned = this.pinnedKeys();
1182
+ // `in` (not `??`) so a stored `null` really unpins a column that declares `sticky`.
1183
+ if (column.key in pinned)
1184
+ return pinned[column.key];
1185
+ return column.sticky ?? null;
1178
1186
  }
1179
1187
  stickyClassFor(column) {
1180
1188
  const pin = this.pinOf(column);
@@ -1404,9 +1412,18 @@ class TableComponent {
1404
1412
  return this.visibleColumns().length > 1;
1405
1413
  }
1406
1414
  emitColumns() {
1415
+ this.markViewDirty();
1407
1416
  this.columnsChange.emit(this.visibleColumns().map((column) => column.key));
1408
1417
  this.columnStateChange.emit(this.state());
1409
1418
  }
1419
+ /**
1420
+ * A manual layout change (pin, hide, resize, reorder, density) means the table no longer
1421
+ * matches the view that was applied last, so drop its highlight instead of lying about it.
1422
+ */
1423
+ markViewDirty() {
1424
+ if (this.activeView() !== null)
1425
+ this.activeView.set(null);
1426
+ }
1410
1427
  toggleColumnPicker(event) {
1411
1428
  event?.stopPropagation();
1412
1429
  if (this.columnPickerOpen()) {
@@ -1440,6 +1457,7 @@ class TableComponent {
1440
1457
  if (this.density() === density)
1441
1458
  return;
1442
1459
  this.density.set(density);
1460
+ this.markViewDirty();
1443
1461
  this.densityChange.emit(density);
1444
1462
  }
1445
1463
  toggleDensity() {
@@ -1499,12 +1517,9 @@ class TableComponent {
1499
1517
  return column.pinnable !== false;
1500
1518
  }
1501
1519
  pinColumn(key, pin) {
1502
- const next = { ...this.pinnedKeys() };
1503
- if (pin)
1504
- next[key] = pin;
1505
- else
1506
- delete next[key];
1507
- this.pinnedKeys.set(next);
1520
+ // A `null` entry is kept on purpose: it remembers that the user unpinned a column
1521
+ // whose definition declares `sticky`, instead of silently falling back to it.
1522
+ this.pinnedKeys.set({ ...this.pinnedKeys(), [key]: pin });
1508
1523
  this.emitColumns();
1509
1524
  }
1510
1525
  /* ---- resize ------------------------------------------------------ */
@@ -1530,6 +1545,7 @@ class TableComponent {
1530
1545
  this.resizing = null;
1531
1546
  document.body.style.userSelect = '';
1532
1547
  this.scheduleMeasure();
1548
+ this.markViewDirty();
1533
1549
  this.columnStateChange.emit(this.state());
1534
1550
  }
1535
1551
  /** Shrink/grow a column to its widest rendered value. */
@@ -1715,9 +1731,11 @@ class TableComponent {
1715
1731
  if (!view)
1716
1732
  return;
1717
1733
  this.applyState(view);
1718
- this.activeView.set(name);
1719
1734
  this.viewsOpen.set(false);
1735
+ // Emit first: `emitColumns()` clears the previous highlight, so the applied view is
1736
+ // marked active afterwards.
1720
1737
  this.emitColumns();
1738
+ this.activeView.set(name);
1721
1739
  }
1722
1740
  saveView() {
1723
1741
  const name = this.viewNameDraft().trim();
@@ -1750,14 +1768,54 @@ class TableComponent {
1750
1768
  /* ---------------------------------------------------------------- */
1751
1769
  /* Internals */
1752
1770
  /* ---------------------------------------------------------------- */
1771
+ /**
1772
+ * Copy `value` and show the check icon only when the browser really took it.
1773
+ */
1753
1774
  copyText(value, key) {
1754
- if (typeof navigator !== 'undefined' && navigator.clipboard?.writeText) {
1755
- void navigator.clipboard.writeText(value).catch(() => undefined);
1775
+ void this.writeClipboard(value).then((copied) => {
1776
+ if (!copied)
1777
+ return;
1778
+ this.copiedCell.set(key);
1779
+ if (this.copyTimer)
1780
+ clearTimeout(this.copyTimer);
1781
+ this.copyTimer = setTimeout(() => this.copiedCell.set(null), 1400);
1782
+ });
1783
+ }
1784
+ /**
1785
+ * The async Clipboard API only exists in a secure context (https / localhost) and can
1786
+ * still be blocked by permissions or a sandboxed iframe. Plain-HTTP intranets get no
1787
+ * `navigator.clipboard` at all, so fall back to a hidden textarea + `execCommand`.
1788
+ */
1789
+ writeClipboard(value) {
1790
+ const clipboard = typeof navigator === 'undefined' ? undefined : navigator.clipboard;
1791
+ if (clipboard?.writeText) {
1792
+ return clipboard.writeText(value).then(() => true, () => this.legacyCopy(value));
1793
+ }
1794
+ return Promise.resolve(this.legacyCopy(value));
1795
+ }
1796
+ /** Deprecated but the only synchronous copy available outside a secure context. */
1797
+ legacyCopy(value) {
1798
+ if (typeof document === 'undefined' || typeof document.execCommand !== 'function')
1799
+ return false;
1800
+ const area = document.createElement('textarea');
1801
+ area.value = value;
1802
+ area.setAttribute('readonly', '');
1803
+ area.setAttribute('aria-hidden', 'true');
1804
+ area.style.position = 'fixed';
1805
+ area.style.top = '-1000px';
1806
+ area.style.opacity = '0';
1807
+ document.body.appendChild(area);
1808
+ area.select();
1809
+ area.setSelectionRange(0, value.length);
1810
+ let copied = false;
1811
+ try {
1812
+ copied = document.execCommand('copy');
1813
+ }
1814
+ catch {
1815
+ copied = false;
1756
1816
  }
1757
- this.copiedCell.set(key);
1758
- if (this.copyTimer)
1759
- clearTimeout(this.copyTimer);
1760
- this.copyTimer = setTimeout(() => this.copiedCell.set(null), 1400);
1817
+ document.body.removeChild(area);
1818
+ return copied;
1761
1819
  }
1762
1820
  /** Screen position for a menu anchored to `anchor`, kept inside the viewport. */
1763
1821
  floatPosition(anchor, width, height) {
@@ -1951,11 +2009,11 @@ class TableComponent {
1951
2009
  return this.cellText(row, column).toLowerCase();
1952
2010
  }
1953
2011
  static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.34", ngImport: i0, type: TableComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
1954
- static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "20.3.34", type: TableComponent, isStandalone: true, selector: "ith-table", inputs: { data: { classPropertyName: "data", publicName: "data", isSignal: true, isRequired: false, transformFunction: null }, columns: { classPropertyName: "columns", publicName: "columns", isSignal: true, isRequired: false, transformFunction: null }, keyField: { classPropertyName: "keyField", publicName: "keyField", isSignal: true, isRequired: false, transformFunction: null }, mode: { classPropertyName: "mode", publicName: "mode", isSignal: true, isRequired: false, transformFunction: null }, total: { classPropertyName: "total", publicName: "total", isSignal: true, isRequired: false, transformFunction: null }, title: { classPropertyName: "title", publicName: "title", isSignal: true, isRequired: false, transformFunction: null }, countSuffix: { classPropertyName: "countSuffix", publicName: "countSuffix", isSignal: true, isRequired: false, transformFunction: null }, totalLabel: { classPropertyName: "totalLabel", publicName: "totalLabel", isSignal: true, isRequired: false, transformFunction: null }, showToolbar: { classPropertyName: "showToolbar", publicName: "showToolbar", isSignal: true, isRequired: false, transformFunction: null }, searchable: { classPropertyName: "searchable", publicName: "searchable", isSignal: true, isRequired: false, transformFunction: null }, searchPlaceholder: { classPropertyName: "searchPlaceholder", publicName: "searchPlaceholder", isSignal: true, isRequired: false, transformFunction: null }, showFilters: { classPropertyName: "showFilters", publicName: "showFilters", isSignal: true, isRequired: false, transformFunction: null }, filterPlaceholder: { classPropertyName: "filterPlaceholder", publicName: "filterPlaceholder", isSignal: true, isRequired: false, transformFunction: null }, filterAllLabel: { classPropertyName: "filterAllLabel", publicName: "filterAllLabel", isSignal: true, isRequired: false, transformFunction: null }, emptyText: { classPropertyName: "emptyText", publicName: "emptyText", isSignal: true, isRequired: false, transformFunction: null }, ariaLabel: { classPropertyName: "ariaLabel", publicName: "ariaLabel", isSignal: true, isRequired: false, transformFunction: null }, sort: { classPropertyName: "sort", publicName: "sort", isSignal: true, isRequired: false, transformFunction: null }, sortable: { classPropertyName: "sortable", publicName: "sortable", isSignal: true, isRequired: false, transformFunction: null }, search: { classPropertyName: "search", publicName: "search", isSignal: true, isRequired: false, transformFunction: null }, page: { classPropertyName: "page", publicName: "page", isSignal: true, isRequired: false, transformFunction: null }, pageSize: { classPropertyName: "pageSize", publicName: "pageSize", isSignal: true, isRequired: false, transformFunction: null }, pageSizeOptions: { classPropertyName: "pageSizeOptions", publicName: "pageSizeOptions", isSignal: true, isRequired: false, transformFunction: null }, showPagination: { classPropertyName: "showPagination", publicName: "showPagination", isSignal: true, isRequired: false, transformFunction: null }, showPageSize: { classPropertyName: "showPageSize", publicName: "showPageSize", isSignal: true, isRequired: false, transformFunction: null }, showFirstLast: { classPropertyName: "showFirstLast", publicName: "showFirstLast", isSignal: true, isRequired: false, transformFunction: null }, maxPageButtons: { classPropertyName: "maxPageButtons", publicName: "maxPageButtons", isSignal: true, isRequired: false, transformFunction: null }, showFooter: { classPropertyName: "showFooter", publicName: "showFooter", isSignal: true, isRequired: false, transformFunction: null }, showFilterChips: { classPropertyName: "showFilterChips", publicName: "showFilterChips", isSignal: true, isRequired: false, transformFunction: null }, selectionMode: { classPropertyName: "selectionMode", publicName: "selectionMode", isSignal: true, isRequired: false, transformFunction: null }, selectAllScope: { classPropertyName: "selectAllScope", publicName: "selectAllScope", isSignal: true, isRequired: false, transformFunction: null }, selected: { classPropertyName: "selected", publicName: "selected", isSignal: true, isRequired: false, transformFunction: null }, selectOnRowClick: { classPropertyName: "selectOnRowClick", publicName: "selectOnRowClick", isSignal: true, isRequired: false, transformFunction: null }, selectionActions: { classPropertyName: "selectionActions", publicName: "selectionActions", isSignal: true, isRequired: false, transformFunction: null }, rowActions: { classPropertyName: "rowActions", publicName: "rowActions", isSignal: true, isRequired: false, transformFunction: null }, actionsHeader: { classPropertyName: "actionsHeader", publicName: "actionsHeader", isSignal: true, isRequired: false, transformFunction: null }, actionsWidth: { classPropertyName: "actionsWidth", publicName: "actionsWidth", isSignal: true, isRequired: false, transformFunction: null }, rowClickable: { classPropertyName: "rowClickable", publicName: "rowClickable", isSignal: true, isRequired: false, transformFunction: null }, rowClass: { classPropertyName: "rowClass", publicName: "rowClass", isSignal: true, isRequired: false, transformFunction: null }, loading: { classPropertyName: "loading", publicName: "loading", isSignal: true, isRequired: false, transformFunction: null }, loadingText: { classPropertyName: "loadingText", publicName: "loadingText", isSignal: true, isRequired: false, transformFunction: null }, striped: { classPropertyName: "striped", publicName: "striped", isSignal: true, isRequired: false, transformFunction: null }, hoverable: { classPropertyName: "hoverable", publicName: "hoverable", isSignal: true, isRequired: false, transformFunction: null }, bordered: { classPropertyName: "bordered", publicName: "bordered", isSignal: true, isRequired: false, transformFunction: null }, dense: { classPropertyName: "dense", publicName: "dense", isSignal: true, isRequired: false, transformFunction: null }, stickyHeader: { classPropertyName: "stickyHeader", publicName: "stickyHeader", isSignal: true, isRequired: false, transformFunction: null }, maxHeight: { classPropertyName: "maxHeight", publicName: "maxHeight", isSignal: true, isRequired: false, transformFunction: null }, copyable: { classPropertyName: "copyable", publicName: "copyable", isSignal: true, isRequired: false, transformFunction: null }, showColumnPicker: { classPropertyName: "showColumnPicker", publicName: "showColumnPicker", isSignal: true, isRequired: false, transformFunction: null }, showDensityToggle: { classPropertyName: "showDensityToggle", publicName: "showDensityToggle", isSignal: true, isRequired: false, transformFunction: null }, showColumnMenu: { classPropertyName: "showColumnMenu", publicName: "showColumnMenu", isSignal: true, isRequired: false, transformFunction: null }, showExport: { classPropertyName: "showExport", publicName: "showExport", isSignal: true, isRequired: false, transformFunction: null }, exportFileName: { classPropertyName: "exportFileName", publicName: "exportFileName", isSignal: true, isRequired: false, transformFunction: null }, showViews: { classPropertyName: "showViews", publicName: "showViews", isSignal: true, isRequired: false, transformFunction: null }, resizable: { classPropertyName: "resizable", publicName: "resizable", isSignal: true, isRequired: false, transformFunction: null }, reorderable: { classPropertyName: "reorderable", publicName: "reorderable", isSignal: true, isRequired: false, transformFunction: null }, keyboardNavigation: { classPropertyName: "keyboardNavigation", publicName: "keyboardNavigation", isSignal: true, isRequired: false, transformFunction: null }, storageKey: { classPropertyName: "storageKey", publicName: "storageKey", isSignal: true, isRequired: false, transformFunction: null }, skeletonRows: { classPropertyName: "skeletonRows", publicName: "skeletonRows", isSignal: true, isRequired: false, transformFunction: null }, minRows: { classPropertyName: "minRows", publicName: "minRows", isSignal: true, isRequired: false, transformFunction: null }, stickySelection: { classPropertyName: "stickySelection", publicName: "stickySelection", isSignal: true, isRequired: false, transformFunction: null }, stickyActions: { classPropertyName: "stickyActions", publicName: "stickyActions", isSignal: true, isRequired: false, transformFunction: null }, rowDetailTrigger: { classPropertyName: "rowDetailTrigger", publicName: "rowDetailTrigger", isSignal: true, isRequired: false, transformFunction: null }, filters: { classPropertyName: "filters", publicName: "filters", isSignal: true, isRequired: false, transformFunction: null } }, outputs: { sort: "sortChange", search: "searchChange", filterChange: "filterChange", page: "pageChange", pageSize: "pageSizeChange", selected: "selectedChange", actionClick: "actionClick", rowClick: "rowClick", cellCopy: "cellCopy", rowContextMenu: "rowContextMenu", columnsChange: "columnsChange", densityChange: "densityChange", columnStateChange: "columnStateChange", selectionAction: "selectionAction", csvExport: "csvExport", exportFile: "exportFile", filters: "filtersChange" }, host: { listeners: { "document:pointermove": "onDocumentPointerMove($event)", "document:pointerup": "onDocumentPointerUp()", "document:click": "onDocumentClick()", "document:keydown.escape": "onDocumentEscape()" } }, queries: [{ propertyName: "cellDirectives", predicate: TableCellDirective, descendants: true, isSignal: true }, { propertyName: "headerDirectives", predicate: TableHeaderDirective, descendants: true, isSignal: true }, { propertyName: "filterDirectives", predicate: TableFilterDirective, descendants: true, isSignal: true }, { propertyName: "rowActionsDirectives", predicate: TableRowActionsDirective, descendants: true, isSignal: true }, { propertyName: "toolbarDirectives", predicate: TableToolbarDirective, descendants: true, isSignal: true }, { propertyName: "footerDirectives", predicate: TableFooterDirective, descendants: true, isSignal: true }, { propertyName: "emptyDirectives", predicate: TableEmptyDirective, descendants: true, isSignal: true }, { propertyName: "rowMenuDirectives", predicate: TableRowMenuDirective, descendants: true, isSignal: true }, { propertyName: "rowDetailDirectives", predicate: TableRowDetailDirective, descendants: true, isSignal: true }], ngImport: i0, template: "<div\n class=\"ith-table\"\n [class.ith-table-bordered]=\"bordered()\"\n [class.ith-table-dense]=\"dense()\"\n [class.ith-table-striped]=\"striped()\"\n [class.ith-table-hoverable]=\"hoverable()\"\n [class.ith-table-sticky]=\"stickyHeader()\"\n [class.ith-table-compact]=\"compact()\">\n <!-- Toolbar -->\n @if (showToolbar()) {\n <div class=\"ith-table-toolbar\">\n <div class=\"ith-table-toolbar-inner\">\n <div class=\"ith-table-toolbar-main\">\n @if (title()) {\n <h3 class=\"ith-table-title\">{{ title() }}</h3>\n }\n <span class=\"ith-table-badge\">{{ totalRows() }} {{ countSuffix() }}</span>\n @if (selected().length > 0) {\n <span class=\"ith-table-badge ith-table-badge-accent\">{{ selected().length }} selected</span>\n }\n @if (toolbarTemplate(); as toolbarTpl) {\n <ng-container\n [ngTemplateOutlet]=\"toolbarTpl\"\n [ngTemplateOutletContext]=\"toolbarContext()\" />\n }\n </div>\n\n <div class=\"ith-table-toolbar-spacer\"></div>\n\n <div class=\"ith-table-toolbar-actions\">\n @if (showViews()) {\n <div class=\"ith-table-menu-anchor\" (click)=\"$event.stopPropagation()\">\n <button\n type=\"button\"\n class=\"ith-table-tool-btn\"\n aria-haspopup=\"true\"\n [attr.aria-expanded]=\"viewsOpen()\"\n (click)=\"toggleViews($event)\">\n <svg class=\"ith-table-tool-icon\" viewBox=\"0 0 24 24\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"1.8\" stroke-linecap=\"round\" stroke-linejoin=\"round\" aria-hidden=\"true\">\n <path d=\"M4 6h16M4 12h10M4 18h7\" />\n </svg>\n <span>Views</span>\n </button>\n </div>\n }\n\n @if (showColumnPicker()) {\n <div class=\"ith-table-menu-anchor\" (click)=\"$event.stopPropagation()\">\n <button\n type=\"button\"\n class=\"ith-table-tool-btn\"\n aria-haspopup=\"true\"\n [attr.aria-expanded]=\"columnPickerOpen()\"\n (click)=\"toggleColumnPicker($event)\">\n <svg class=\"ith-table-tool-icon\" viewBox=\"0 0 24 24\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"1.8\" stroke-linecap=\"round\" stroke-linejoin=\"round\" aria-hidden=\"true\">\n <rect x=\"3\" y=\"4\" width=\"7\" height=\"16\" rx=\"1.5\" />\n <rect x=\"14\" y=\"4\" width=\"7\" height=\"16\" rx=\"1.5\" />\n </svg>\n <span>Columns</span>\n </button>\n </div>\n }\n\n @if (showDensityToggle()) {\n <div class=\"ith-table-segmented\" role=\"group\" aria-label=\"Row density\">\n <button\n type=\"button\"\n class=\"ith-table-segmented-btn\"\n [class.is-active]=\"!compact()\"\n [attr.aria-pressed]=\"!compact()\"\n title=\"Comfortable rows\"\n (click)=\"setDensity('comfortable')\">\n <svg viewBox=\"0 0 24 24\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"1.8\" stroke-linecap=\"round\" aria-hidden=\"true\">\n <path d=\"M4 8h16M4 16h16\" />\n </svg>\n <span>Comfortable</span>\n </button>\n <button\n type=\"button\"\n class=\"ith-table-segmented-btn\"\n [class.is-active]=\"compact()\"\n [attr.aria-pressed]=\"compact()\"\n title=\"Compact rows\"\n (click)=\"setDensity('compact')\">\n <svg viewBox=\"0 0 24 24\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"1.8\" stroke-linecap=\"round\" aria-hidden=\"true\">\n <path d=\"M4 6h16M4 10h16M4 14h16M4 18h16\" />\n </svg>\n <span>Compact</span>\n </button>\n </div>\n }\n\n @if (showExport()) {\n <div class=\"ith-table-menu-anchor\" (click)=\"$event.stopPropagation()\">\n <button\n type=\"button\"\n class=\"ith-table-tool-btn\"\n aria-haspopup=\"true\"\n [attr.aria-expanded]=\"!!exportMenuPos()\"\n title=\"Export the current view\"\n (click)=\"toggleExportMenu($event)\">\n <svg class=\"ith-table-tool-icon\" viewBox=\"0 0 24 24\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"1.8\" stroke-linecap=\"round\" stroke-linejoin=\"round\" aria-hidden=\"true\">\n <path d=\"M12 4v11m0 0 4-4m-4 4-4-4\" />\n <path d=\"M4 19h16\" />\n </svg>\n <span>Export</span>\n </button>\n </div>\n }\n\n @if (searchable()) {\n <div class=\"ith-table-search\">\n <svg class=\"ith-table-search-icon\" viewBox=\"0 0 24 24\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"2\" stroke-linecap=\"round\" aria-hidden=\"true\">\n <circle cx=\"11\" cy=\"11\" r=\"7\" />\n <path d=\"m20 20-3.6-3.6\" />\n </svg>\n <input\n type=\"search\"\n class=\"ith-table-search-input\"\n [value]=\"search()\"\n [attr.placeholder]=\"searchPlaceholder()\"\n [attr.aria-label]=\"searchPlaceholder()\"\n (input)=\"onSearchInput($any($event.target).value)\" />\n @if (search()) {\n <button type=\"button\" class=\"ith-table-search-clear\" (click)=\"clearSearch()\" aria-label=\"Clear search\">\n <svg viewBox=\"0 0 24 24\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"2\" stroke-linecap=\"round\" aria-hidden=\"true\">\n <path d=\"M6 6l12 12M18 6 6 18\" />\n </svg>\n </button>\n }\n </div>\n }\n </div>\n </div>\n\n @if (showFilterChips() && hasQuery()) {\n <div class=\"ith-table-chips\">\n @for (chip of filterChips(); track chip.kind + chip.key) {\n <span class=\"ith-table-chip\">\n <span class=\"ith-table-chip-label\">{{ chip.label }}</span>\n <span class=\"ith-table-chip-value\">{{ chip.value }}</span>\n <button\n type=\"button\"\n class=\"ith-table-chip-remove\"\n [attr.aria-label]=\"'Remove ' + chip.label + ' filter'\"\n (click)=\"removeChip(chip)\">\n <svg viewBox=\"0 0 24 24\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"2\" stroke-linecap=\"round\" aria-hidden=\"true\">\n <path d=\"M6 6l12 12M18 6 6 18\" />\n </svg>\n </button>\n </span>\n }\n <button type=\"button\" class=\"ith-table-chips-clear\" (click)=\"clearQuery()\">Clear all</button>\n </div>\n }\n </div>\n }\n\n <!-- Bulk actions for the current selection -->\n @if (selected().length > 0 && selectionActions().length) {\n <div class=\"ith-table-selection-bar\" role=\"region\" aria-label=\"Selection actions\">\n <span class=\"ith-table-selection-count\">\n <strong>{{ selected().length }}</strong> selected\n </span>\n <span class=\"ith-table-selection-spacer\"></span>\n <div class=\"ith-table-selection-actions\">\n @for (action of selectionActions(); track action.id) {\n <button\n type=\"button\"\n class=\"ith-table-selection-btn\"\n [ngClass]=\"action.class ?? ''\"\n [attr.title]=\"action.title ?? action.label\"\n (click)=\"onSelectionAction(action, $event)\">\n @if (action.icon) {\n <span class=\"ith-table-selection-icon\" aria-hidden=\"true\">{{ action.icon }}</span>\n }\n <span>{{ action.label }}</span>\n </button>\n }\n <button type=\"button\" class=\"ith-table-selection-clear\" (click)=\"clearSelection()\">\n Clear selection\n </button>\n </div>\n </div>\n }\n\n <!-- Table -->\n <div\n class=\"ith-table-scroll\"\n [class.ith-table-scroll-bounded]=\"!!maxHeight()\"\n [class.ith-table-scroll-filtered]=\"showFilters()\"\n [class.is-scrolled]=\"scrolled()\"\n [style.maxHeight]=\"maxHeight() || null\"\n [style.--_min-rows]=\"minRows()\"\n (scroll)=\"onScroll($event)\">\n <table class=\"ith-table-grid\" [attr.aria-label]=\"ariaLabel()\" [attr.aria-busy]=\"loading()\">\n <thead>\n <tr class=\"ith-table-head-row\">\n @if (selectable()) {\n <th\n scope=\"col\"\n class=\"ith-table-select-cell\"\n [class.ith-table-sticky-start]=\"stickySelection()\"\n [style.left]=\"stickySelection() ? '0px' : null\">\n @if (selectionMode() === 'multi') {\n <input\n type=\"checkbox\"\n class=\"ith-table-checkbox\"\n [checked]=\"allPageSelected()\"\n [indeterminate]=\"somePageSelected()\"\n [attr.aria-label]=\"'Select all rows'\"\n (change)=\"onSelectAllChange($event)\" />\n }\n </th>\n }\n\n @if (hasExpander()) {\n <th scope=\"col\" class=\"ith-table-expander-cell\" [attr.aria-label]=\"'Row details'\"></th>\n }\n\n @for (column of visibleColumns(); track column.key) {\n <th\n scope=\"col\"\n class=\"ith-table-th\"\n [ngClass]=\"headerClasses(column)\"\n [style]=\"columnStyle(column)\"\n [attr.data-col]=\"column.key\"\n [attr.aria-sort]=\"isSortable(column) ? ariaSort(column) : null\"\n [attr.draggable]=\"reorderable() ? 'true' : null\"\n [class.ith-table-th-dragging]=\"dragKey() === column.key\"\n (dragstart)=\"onHeaderDragStart(column, $event)\"\n (dragover)=\"onHeaderDragOver(column, $event)\"\n (drop)=\"onHeaderDrop(column, $event)\"\n (dragend)=\"onHeaderDragEnd()\">\n <div class=\"ith-table-th-inner\">\n @if (headerTemplate(column); as headerTpl) {\n <ng-container\n [ngTemplateOutlet]=\"headerTpl\"\n [ngTemplateOutletContext]=\"{ $implicit: column, column: column }\" />\n } @else if (isSortable(column)) {\n <button\n type=\"button\"\n class=\"ith-table-sort\"\n [class.is-sorted]=\"!!sortDirection(column)\"\n (click)=\"toggleSort(column)\"\n [attr.aria-label]=\"'Sort by ' + (column.header ?? column.key)\">\n <span class=\"ith-table-th-label\">{{ column.header ?? column.key }}</span>\n <span class=\"ith-table-sort-icons\" aria-hidden=\"true\">\n <svg viewBox=\"0 0 10 6\" class=\"ith-table-sort-up\" [class.is-active]=\"sortDirection(column) === 'asc'\"><path d=\"M5 0l5 6H0z\" /></svg>\n <svg viewBox=\"0 0 10 6\" class=\"ith-table-sort-down\" [class.is-active]=\"sortDirection(column) === 'desc'\"><path d=\"M5 6L0 0h10z\" /></svg>\n </span>\n </button>\n } @else {\n <span class=\"ith-table-th-label\">{{ column.header ?? column.key }}</span>\n }\n\n @if (showColumnMenu()) {\n <button\n type=\"button\"\n class=\"ith-table-th-menu\"\n [attr.aria-expanded]=\"columnMenu()?.key === column.key\"\n [attr.aria-label]=\"'Column options for ' + (column.header ?? column.key)\"\n (click)=\"openColumnMenu(column, $event)\">\n <svg viewBox=\"0 0 24 24\" fill=\"currentColor\" aria-hidden=\"true\">\n <circle cx=\"12\" cy=\"5\" r=\"1.7\" />\n <circle cx=\"12\" cy=\"12\" r=\"1.7\" />\n <circle cx=\"12\" cy=\"19\" r=\"1.7\" />\n </svg>\n </button>\n }\n\n @if (pinOf(column) === 'start') {\n <span class=\"ith-table-pin-dot\" aria-hidden=\"true\"></span>\n }\n </div>\n\n @if (resizable()) {\n <span\n class=\"ith-table-resizer\"\n role=\"separator\"\n aria-orientation=\"vertical\"\n [attr.aria-label]=\"'Resize ' + (column.header ?? column.key)\"\n (pointerdown)=\"startResize(column, $event)\"></span>\n }\n </th>\n }\n\n @if (hasActionsColumn()) {\n <th\n scope=\"col\"\n class=\"ith-table-th ith-table-actions-head\"\n [class.ith-table-sticky-end]=\"stickyActions()\"\n [style.width]=\"actionsWidth()\"\n [style.right]=\"stickyActions() ? '0px' : null\">\n {{ actionsHeader() }}\n </th>\n }\n </tr>\n\n @if (showFilters()) {\n <tr class=\"ith-table-filter-row\">\n @if (selectable()) {\n <th\n class=\"ith-table-select-cell\"\n [class.ith-table-sticky-start]=\"stickySelection()\"\n [style.left]=\"stickySelection() ? '0px' : null\"></th>\n }\n @if (hasExpander()) {\n <th class=\"ith-table-expander-cell\"></th>\n }\n @for (column of visibleColumns(); track column.key) {\n <th\n class=\"ith-table-filter-cell\"\n [ngClass]=\"filterClasses(column)\"\n [style]=\"columnStyle(column)\">\n @if (filterTemplate(column); as filterTpl) {\n <ng-container\n [ngTemplateOutlet]=\"filterTpl\"\n [ngTemplateOutletContext]=\"filterContext(column)\" />\n } @else if (column.filterable !== false) {\n @switch (filterTypeFor(column)) {\n @case ('select') {\n <select\n class=\"ith-table-filter-input ith-table-filter-select\"\n [value]=\"filterValue(column.key)\"\n [attr.aria-label]=\"'Filter by ' + (column.header ?? column.key)\"\n (change)=\"onFilterInput(column.key, $any($event.target).value)\">\n <option value=\"\">{{ filterAllLabel() }}</option>\n @for (option of filterOptionsFor(column); track option.value) {\n <option [value]=\"option.value\">{{ option.label }}</option>\n }\n </select>\n }\n @case ('number') {\n <input\n type=\"number\"\n class=\"ith-table-filter-input\"\n [value]=\"filterValue(column.key)\"\n [attr.placeholder]=\"filterPlaceholderFor(column)\"\n [attr.aria-label]=\"'Filter by ' + (column.header ?? column.key)\"\n (input)=\"onFilterInput(column.key, $any($event.target).value)\" />\n }\n @case ('date') {\n <input\n type=\"date\"\n class=\"ith-table-filter-input\"\n [value]=\"filterValue(column.key)\"\n [attr.aria-label]=\"'Filter by ' + (column.header ?? column.key)\"\n (input)=\"onFilterInput(column.key, $any($event.target).value)\" />\n }\n @default {\n <input\n type=\"text\"\n class=\"ith-table-filter-input\"\n [value]=\"filterValue(column.key)\"\n [attr.placeholder]=\"filterPlaceholderFor(column)\"\n [attr.aria-label]=\"'Filter by ' + (column.header ?? column.key)\"\n (input)=\"onFilterInput(column.key, $any($event.target).value)\" />\n }\n }\n }\n </th>\n }\n @if (hasActionsColumn()) {\n <th\n class=\"ith-table-filter-cell\"\n [class.ith-table-sticky-end]=\"stickyActions()\"\n [style.right]=\"stickyActions() ? '0px' : null\"></th>\n }\n </tr>\n }\n </thead>\n\n <tbody>\n @if (loading() && pagedRows().length === 0) {\n @for (skeleton of skeletonIndexes(); track skeleton) {\n <tr class=\"ith-table-skeleton-row\" aria-hidden=\"true\">\n @if (selectable()) {\n <td\n class=\"ith-table-select-cell\"\n [class.ith-table-sticky-start]=\"stickySelection()\"\n [style.left]=\"stickySelection() ? '0px' : null\">\n <span class=\"ith-table-skeleton is-check\"></span>\n </td>\n }\n @if (hasExpander()) {\n <td class=\"ith-table-expander-cell\"></td>\n }\n @for (column of visibleColumns(); track column.key) {\n <td class=\"ith-table-td\">\n <span class=\"ith-table-skeleton\"></span>\n </td>\n }\n @if (hasActionsColumn()) {\n <td class=\"ith-table-actions-cell\"><span class=\"ith-table-skeleton\"></span></td>\n }\n </tr>\n }\n <tr>\n <td class=\"ith-table-visually-hidden\" [attr.colspan]=\"emptyColspan()\" aria-live=\"polite\">\n {{ loadingText() }}\n </td>\n </tr>\n } @else if (pagedRows().length === 0) {\n <tr>\n <td class=\"ith-table-status\" [attr.colspan]=\"emptyColspan()\">\n @if (emptyTemplate(); as emptyTpl) {\n <ng-container\n [ngTemplateOutlet]=\"emptyTpl\"\n [ngTemplateOutletContext]=\"emptyContext()\" />\n } @else {\n <div class=\"ith-table-empty\">\n <svg viewBox=\"0 0 24 24\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"1.5\" stroke-linecap=\"round\" aria-hidden=\"true\">\n <rect x=\"3\" y=\"5\" width=\"18\" height=\"14\" rx=\"2\" />\n <path d=\"M3 10h18M9 10v9\" />\n </svg>\n <span>{{ hasQuery() ? 'No records match your search.' : emptyText() }}</span>\n @if (hasQuery()) {\n <button type=\"button\" class=\"ith-table-link\" (click)=\"clearQuery()\">Clear search &amp; filters</button>\n }\n </div>\n }\n </td>\n </tr>\n } @else {\n @for (row of pagedRows(); track trackRow($index, row); let rowIndex = $index) {\n <tr\n class=\"ith-table-row\"\n [ngClass]=\"rowClassFor(row, $index)\"\n [class.ith-table-row-clickable]=\"rowClickable() || selectOnRowClick() || (hasRowDetail() && rowDetailTrigger() === 'row')\"\n [attr.tabindex]=\"rowClickable() || selectOnRowClick() ? 0 : null\"\n [attr.aria-selected]=\"selectable() ? isSelected(row) : null\"\n [attr.aria-expanded]=\"hasRowDetail() ? isRowExpanded(row) : null\"\n (click)=\"onRowClick(row, $index, $event)\"\n (keydown)=\"onRowKeydown(row, $index, $event)\"\n (contextmenu)=\"onRowContextMenu(row, $index, $event)\">\n @if (selectable()) {\n <td\n class=\"ith-table-select-cell\"\n [class.ith-table-sticky-start]=\"stickySelection()\"\n [style.left]=\"stickySelection() ? '0px' : null\">\n <input\n type=\"checkbox\"\n class=\"ith-table-checkbox\"\n [checked]=\"isSelected(row)\"\n [attr.aria-label]=\"'Select row ' + ($index + 1)\"\n (click)=\"$event.stopPropagation()\"\n (change)=\"onRowCheckboxChange(row, $event)\" />\n </td>\n }\n\n @if (hasExpander()) {\n <td class=\"ith-table-expander-cell\">\n <button\n type=\"button\"\n class=\"ith-table-expander\"\n [class.is-open]=\"isRowExpanded(row)\"\n [attr.aria-expanded]=\"isRowExpanded(row)\"\n [attr.aria-label]=\"'Toggle details for row ' + ($index + 1)\"\n (click)=\"toggleRowDetail(row, $event)\">\n <svg viewBox=\"0 0 24 24\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"2\" stroke-linecap=\"round\" stroke-linejoin=\"round\" aria-hidden=\"true\">\n <path d=\"m9 6 6 6-6 6\" />\n </svg>\n </button>\n </td>\n }\n\n @for (column of visibleColumns(); track column.key; let colIndex = $index) {\n <td\n class=\"ith-table-td\"\n [class.ith-table-copyable]=\"copyable()\"\n [ngClass]=\"cellClasses(row, column, rowIndex)\"\n [style]=\"columnStyle(column)\"\n [attr.title]=\"tooltipText(row, column, rowIndex)\"\n [attr.data-cell]=\"rowIndex + '-' + colIndex\"\n [attr.data-col]=\"column.key\"\n [attr.tabindex]=\"cellTabIndex(rowIndex, colIndex)\"\n (focus)=\"onCellFocus(rowIndex, colIndex)\"\n (keydown)=\"onCellKeydown(column, rowIndex, colIndex, $event)\">\n @if (cellTemplate(column); as cellTpl) {\n <ng-container\n [ngTemplateOutlet]=\"cellTpl\"\n [ngTemplateOutletContext]=\"cellContext(row, column, rowIndex)\" />\n } @else {\n {{ cellText(row, column, rowIndex) }}\n }\n @if (copyable()) {\n <button\n type=\"button\"\n class=\"ith-table-copy\"\n [class.is-copied]=\"isCellCopied(rowIndex, column)\"\n [attr.aria-label]=\"'Copy ' + (column.header ?? column.key)\"\n (click)=\"copyCell(row, column, rowIndex, $event)\">\n @if (isCellCopied(rowIndex, column)) {\n <svg viewBox=\"0 0 24 24\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"2\" stroke-linecap=\"round\" stroke-linejoin=\"round\" aria-hidden=\"true\"><path d=\"m5 13 4 4L19 7\" /></svg>\n } @else {\n <svg viewBox=\"0 0 24 24\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"1.8\" stroke-linecap=\"round\" stroke-linejoin=\"round\" aria-hidden=\"true\"><rect x=\"9\" y=\"9\" width=\"11\" height=\"11\" rx=\"2\" /><path d=\"M15 5.5A2.5 2.5 0 0 0 12.5 3H6a2 2 0 0 0-2 2v7.5A2.5 2.5 0 0 0 6.5 15\" /></svg>\n }\n </button>\n }\n </td>\n }\n\n @if (hasActionsColumn()) {\n <td\n class=\"ith-table-actions-cell\"\n [class.ith-table-sticky-end]=\"stickyActions()\"\n [style.right]=\"stickyActions() ? '0px' : null\">\n @if (rowActionsTemplate(); as actionsTpl) {\n <ng-container\n [ngTemplateOutlet]=\"actionsTpl\"\n [ngTemplateOutletContext]=\"{ $implicit: row, row: row, index: $index }\" />\n } @else {\n @for (action of rowActions(); track action.id) {\n @if (isActionVisible(action, row, $index)) {\n <button\n type=\"button\"\n class=\"ith-table-action\"\n [ngClass]=\"action.class ?? ''\"\n [attr.title]=\"action.title ?? action.label\"\n [disabled]=\"isActionDisabled(action, row, $index)\"\n (click)=\"onActionClick(action, row, $index, $event)\">\n @if (action.icon) {\n <span class=\"ith-table-action-icon\" aria-hidden=\"true\">{{ action.icon }}</span>\n }\n <span>{{ action.label }}</span>\n </button>\n }\n }\n }\n </td>\n }\n </tr>\n\n @if (hasRowDetail() && isRowExpanded(row)) {\n <tr class=\"ith-table-detail-row\">\n <td [attr.colspan]=\"emptyColspan()\">\n @if (rowDetailTemplate(); as detailTpl) {\n <ng-container\n [ngTemplateOutlet]=\"detailTpl\"\n [ngTemplateOutletContext]=\"rowDetailContext(row, rowIndex)\" />\n }\n </td>\n </tr>\n }\n }\n }\n </tbody>\n\n @if (hasAggregates() && pagedRows().length > 0) {\n <tfoot>\n <tr class=\"ith-table-total-row\">\n @if (selectable()) {\n <td\n class=\"ith-table-select-cell\"\n [class.ith-table-sticky-start]=\"stickySelection()\"\n [style.left]=\"stickySelection() ? '0px' : null\"></td>\n }\n @if (hasExpander()) {\n <td class=\"ith-table-expander-cell\"></td>\n }\n @for (column of visibleColumns(); track column.key) {\n <td\n class=\"ith-table-total-cell\"\n [ngClass]=\"stickyClassFor(column)\"\n [style]=\"columnStyle(column)\">\n @if (column.aggregate) {\n <span class=\"ith-table-total-label\">{{ aggregateLabel(column) }}</span>\n <span class=\"ith-table-total-value\">{{ aggregateText(column) }}</span>\n }\n </td>\n }\n @if (hasActionsColumn()) {\n <td\n class=\"ith-table-total-cell ith-table-actions-cell\"\n [class.ith-table-sticky-end]=\"stickyActions()\"\n [style.right]=\"stickyActions() ? '0px' : null\"></td>\n }\n </tr>\n </tfoot>\n }\n </table>\n\n @if (loading() && pagedRows().length > 0) {\n <div class=\"ith-table-loading-overlay\">\n <span class=\"ith-table-spinner\" aria-hidden=\"true\"></span>\n <span>{{ loadingText() }}</span>\n </div>\n }\n </div>\n\n <!-- Columns popover (fixed, so the toolbar's scroll box cannot clip it) -->\n @if (columnPickerOpen()) {\n <div\n class=\"ith-table-popover\"\n role=\"dialog\"\n aria-label=\"Visible columns\"\n [style.left.px]=\"columnsMenuPos()?.x ?? 0\"\n [style.top.px]=\"columnsMenuPos()?.y ?? 0\"\n (click)=\"$event.stopPropagation()\">\n <div class=\"ith-table-popover-header\">Show columns</div>\n <div class=\"ith-table-popover-list\">\n @for (column of orderedColumns(); track column.key) {\n <label class=\"ith-table-columns-item\">\n <input\n type=\"checkbox\"\n class=\"ith-table-checkbox\"\n [checked]=\"isColumnVisible(column)\"\n [disabled]=\"!isColumnVisible(column) && !canHide(column.key)\"\n (change)=\"setColumnVisible(column.key, $any($event.target).checked)\" />\n <span>{{ column.header ?? column.key }}</span>\n @if (pinOf(column)) {\n <span class=\"ith-table-pin-tag\">{{ pinOf(column) }}</span>\n }\n </label>\n }\n </div>\n <div class=\"ith-table-popover-footer\">\n <button type=\"button\" class=\"ith-table-popover-action\" (click)=\"resetColumns()\">\n Reset columns\n </button>\n </div>\n </div>\n }\n\n <!-- Export formats -->\n @if (exportMenuPos(); as pos) {\n <div\n class=\"ith-table-popover ith-table-export-menu\"\n role=\"menu\"\n aria-label=\"Export format\"\n [style.left.px]=\"pos.x\"\n [style.top.px]=\"pos.y\"\n (click)=\"$event.stopPropagation()\">\n <button type=\"button\" class=\"ith-table-menu-item\" role=\"menuitem\" (click)=\"exportAs('xlsx')\">\n <span class=\"ith-table-export-name\">Excel</span>\n <span class=\"ith-table-export-hint\">.xlsx \u2014 Excel, Numbers, Sheets</span>\n </button>\n <button type=\"button\" class=\"ith-table-menu-item\" role=\"menuitem\" (click)=\"exportAs('csv')\">\n <span class=\"ith-table-export-name\">CSV</span>\n <span class=\"ith-table-export-hint\">.csv \u2014 plain text, any tool</span>\n </button>\n </div>\n }\n\n <!-- Named views -->\n @if (viewsOpen()) {\n <div\n class=\"ith-table-popover\"\n role=\"dialog\"\n aria-label=\"Saved views\"\n [style.left.px]=\"viewsMenuPos()?.x ?? 0\"\n [style.top.px]=\"viewsMenuPos()?.y ?? 0\"\n (click)=\"$event.stopPropagation()\">\n <div class=\"ith-table-popover-header\">Saved views</div>\n <div class=\"ith-table-popover-list\">\n @for (name of savedViewNames(); track name) {\n <div class=\"ith-table-view-item\" [class.is-active]=\"activeView() === name\">\n <button type=\"button\" class=\"ith-table-view-apply\" (click)=\"applyView(name)\">\n {{ name }}\n </button>\n <button\n type=\"button\"\n class=\"ith-table-view-delete\"\n [attr.aria-label]=\"'Delete view ' + name\"\n (click)=\"deleteView(name, $event)\">\n <svg viewBox=\"0 0 24 24\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"2\" stroke-linecap=\"round\" aria-hidden=\"true\">\n <path d=\"M6 6l12 12M18 6 6 18\" />\n </svg>\n </button>\n </div>\n } @empty {\n <p class=\"ith-table-popover-empty\">No saved views yet.</p>\n }\n </div>\n <div class=\"ith-table-popover-footer ith-table-view-save\">\n <input\n type=\"text\"\n class=\"ith-table-view-input\"\n placeholder=\"View name\"\n aria-label=\"New view name\"\n [value]=\"viewNameDraft()\"\n (input)=\"onViewNameInput($any($event.target).value)\"\n (keydown.enter)=\"saveView()\" />\n <button type=\"button\" class=\"ith-table-popover-action\" (click)=\"saveView()\">Save</button>\n </div>\n </div>\n }\n\n <!-- Column header menu -->\n @if (columnMenu(); as menu) {\n <div\n class=\"ith-table-popover ith-table-column-menu\"\n role=\"menu\"\n [style.left.px]=\"menu.x\"\n [style.top.px]=\"menu.y\"\n (click)=\"$event.stopPropagation()\">\n @if (columnMenuColumn(); as column) {\n @if (isSortable(column)) {\n <button type=\"button\" class=\"ith-table-menu-item\" role=\"menuitem\" (click)=\"menuSort('asc')\">\n Sort ascending\n </button>\n <button type=\"button\" class=\"ith-table-menu-item\" role=\"menuitem\" (click)=\"menuSort('desc')\">\n Sort descending\n </button>\n @if (sortDirection(column)) {\n <button type=\"button\" class=\"ith-table-menu-item\" role=\"menuitem\" (click)=\"menuClearSort()\">\n Clear sort\n </button>\n }\n <div class=\"ith-table-menu-divider\"></div>\n }\n @if (canPin(column)) {\n @if (pinOf(column) !== 'start') {\n <button type=\"button\" class=\"ith-table-menu-item\" role=\"menuitem\" (click)=\"menuPin('start')\">\n Pin to left\n </button>\n }\n @if (pinOf(column) !== 'end') {\n <button type=\"button\" class=\"ith-table-menu-item\" role=\"menuitem\" (click)=\"menuPin('end')\">\n Pin to right\n </button>\n }\n @if (pinOf(column)) {\n <button type=\"button\" class=\"ith-table-menu-item\" role=\"menuitem\" (click)=\"menuPin(null)\">\n Unpin column\n </button>\n }\n <div class=\"ith-table-menu-divider\"></div>\n }\n <button type=\"button\" class=\"ith-table-menu-item\" role=\"menuitem\" (click)=\"menuAutosize()\">\n Fit to content\n </button>\n @if (canHide(column.key)) {\n <button type=\"button\" class=\"ith-table-menu-item\" role=\"menuitem\" (click)=\"menuHide()\">\n Hide column\n </button>\n }\n }\n </div>\n }\n\n <!-- Right-click menu (projected template, positioned at the pointer) -->\n @if (menuState(); as menu) {\n <div\n class=\"ith-table-menu\"\n role=\"menu\"\n [style.left.px]=\"menu.x\"\n [style.top.px]=\"menu.y\"\n (click)=\"closeRowMenu(); $event.stopPropagation()\">\n @if (rowMenuTemplate(); as menuTpl) {\n <ng-container\n [ngTemplateOutlet]=\"menuTpl\"\n [ngTemplateOutletContext]=\"{ $implicit: menu.row, row: menu.row, index: menu.index }\" />\n }\n </div>\n }\n\n <!-- Footer -->\n @if (showFooter()) {\n <div class=\"ith-table-footer\">\n <div class=\"ith-table-footer-info\">\n @if (footerTemplate(); as footerTpl) {\n <ng-container\n [ngTemplateOutlet]=\"footerTpl\"\n [ngTemplateOutletContext]=\"footerContext()\" />\n } @else {\n <span>\n Showing <strong>{{ rangeStart() }}</strong>\u2013<strong>{{ rangeEnd() }}</strong>\n of <strong>{{ totalRows() }}</strong>\n </span>\n <span class=\"ith-table-total\">{{ totalLabel() }}: <strong>{{ totalRows() }}</strong></span>\n }\n </div>\n\n <div class=\"ith-table-footer-controls\">\n @if (showPagination()) {\n <nav class=\"ith-table-pagination\" aria-label=\"Pagination\">\n @if (showFirstLast()) {\n <button type=\"button\" class=\"ith-table-page-btn\" (click)=\"firstPage()\" [disabled]=\"page() === 1\" aria-label=\"First page\">\n <svg viewBox=\"0 0 24 24\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"2\" stroke-linecap=\"round\" stroke-linejoin=\"round\" aria-hidden=\"true\"><path d=\"m11 17-5-5 5-5M18 17l-5-5 5-5\" /></svg>\n </button>\n }\n <button type=\"button\" class=\"ith-table-page-btn\" (click)=\"previousPage()\" [disabled]=\"page() === 1\" aria-label=\"Previous page\">\n <svg viewBox=\"0 0 24 24\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"2\" stroke-linecap=\"round\" stroke-linejoin=\"round\" aria-hidden=\"true\"><path d=\"m15 18-6-6 6-6\" /></svg>\n </button>\n\n @for (item of pageItems(); track item) {\n <button\n type=\"button\"\n class=\"ith-table-page-btn ith-table-page-number\"\n [class.is-active]=\"item === page()\"\n [attr.aria-current]=\"item === page() ? 'page' : null\"\n (click)=\"goToPage(item)\">\n {{ item }}\n </button>\n }\n\n <button type=\"button\" class=\"ith-table-page-btn\" (click)=\"nextPage()\" [disabled]=\"page() === pageCount()\" aria-label=\"Next page\">\n <svg viewBox=\"0 0 24 24\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"2\" stroke-linecap=\"round\" stroke-linejoin=\"round\" aria-hidden=\"true\"><path d=\"m9 18 6-6-6-6\" /></svg>\n </button>\n @if (showFirstLast()) {\n <button type=\"button\" class=\"ith-table-page-btn\" (click)=\"lastPage()\" [disabled]=\"page() === pageCount()\" aria-label=\"Last page\">\n <svg viewBox=\"0 0 24 24\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"2\" stroke-linecap=\"round\" stroke-linejoin=\"round\" aria-hidden=\"true\"><path d=\"m13 17 5-5-5-5M6 17l5-5-5-5\" /></svg>\n </button>\n }\n <span class=\"ith-table-page-state\">Page {{ page() }} / {{ pageCount() }}</span>\n </nav>\n }\n\n @if (showPageSize()) {\n <label class=\"ith-table-page-size\">\n <span>Rows:</span>\n <select class=\"ith-table-select\" [value]=\"pageSize()\" (change)=\"onPageSizeChange($any($event.target).value)\">\n @for (size of pageSizeChoices(); track size) {\n <option [value]=\"size\">{{ size }}</option>\n }\n </select>\n </label>\n }\n </div>\n </div>\n }\n</div>\n", styles: [":host{display:block;--_brand: var(--ith-table-brand, #5b21b6);--_bg: var(--ith-table-bg, #ffffff);--_text: var(--ith-table-text, #1f2937);--_muted: var(--ith-table-muted, #6b7280);--_border: var(--ith-table-border, #e8eaf0);--_header-bg: var(--ith-table-header-bg, var(--_brand));--_header-text: var(--ith-table-header-text, #ffffff);--_hover: var(--ith-table-hover, color-mix(in srgb, var(--_brand) 6%, #ffffff));--_selected-bg: var(--ith-table-selected-bg, color-mix(in srgb, var(--_brand) 10%, #ffffff));--_striped-bg: var(--ith-table-striped-bg, color-mix(in srgb, var(--_brand) 2%, #ffffff));--_accent: var(--ith-table-accent, var(--_brand));--_accent-soft: var(--ith-table-accent-soft, color-mix(in srgb, var(--_brand) 12%, #ffffff));--_input-bg: var(--ith-table-input-bg, #ffffff);--_input-border: var(--ith-table-input-border, #dfe3ec);--_footer-bg: var(--ith-table-footer-bg, color-mix(in srgb, var(--_brand) 2%, #ffffff));--_filter-bg: var(--ith-table-filter-bg, color-mix(in srgb, var(--_brand) 3%, #ffffff));--_overlay: var(--ith-table-overlay, rgba(255, 255, 255, .72));--_radius: var(--ith-table-radius, 14px);--_shadow: var(--ith-table-shadow, 0 18px 40px -28px rgba(24, 20, 60, .55));--_focus: var(--ith-table-focus, color-mix(in srgb, var(--_brand) 25%, transparent));--_cell-padding: var(--ith-table-cell-padding, 12px 16px);--_font-size: var(--ith-table-font-size, 14px);--_header-font-size: var(--ith-table-header-font-size, 13px);--_row-height: var(--ith-table-row-height, 46px);--_head-height: var(--ith-table-head-height, 45px);--_filter-height: 47px;--_on-accent: #ffffff;--_toolbar-tint: color-mix(in srgb, var(--_brand) 3%, var(--_bg));--_popover-bg: var(--_bg);--_scroll-thumb: color-mix(in srgb, var(--_muted) 38%, transparent);--_danger: #dc2626;--_elevation: 0 18px 40px -18px rgba(17, 12, 46, .35), 0 0 0 1px color-mix(in srgb, var(--_border) 60%, transparent)}:host-context([data-theme=\"dark\"]),:host-context(.dark){--_brand: var(--ith-table-brand, #7c3aed);--_bg: var(--ith-table-bg, #161826);--_text: var(--ith-table-text, #e7e9f3);--_muted: var(--ith-table-muted, #9aa0b5);--_border: var(--ith-table-border, #2f3348);--_header-bg: var(--ith-table-header-bg, color-mix(in srgb, var(--_brand) 34%, #0b0d16));--_header-text: var(--ith-table-header-text, #f3eeff);--_hover: var(--ith-table-hover, color-mix(in srgb, var(--_brand) 15%, #161826));--_selected-bg: var(--ith-table-selected-bg, color-mix(in srgb, var(--_brand) 20%, #161826));--_striped-bg: var(--ith-table-striped-bg, color-mix(in srgb, var(--_brand) 6%, #161826));--_accent: var(--ith-table-accent, color-mix(in srgb, var(--_brand) 55%, #ffffff));--_accent-soft: var(--ith-table-accent-soft, color-mix(in srgb, var(--_brand) 26%, #161826));--_input-bg: var(--ith-table-input-bg, #202436);--_input-border: var(--ith-table-input-border, #343a52);--_footer-bg: var(--ith-table-footer-bg, color-mix(in srgb, var(--_brand) 4%, #12141f));--_filter-bg: var(--ith-table-filter-bg, color-mix(in srgb, var(--_brand) 9%, #161826));--_overlay: var(--ith-table-overlay, rgba(17, 19, 30, .72));--_shadow: var(--ith-table-shadow, 0 18px 40px -28px rgba(0, 0, 0, .85));--_focus: var(--ith-table-focus, color-mix(in srgb, var(--_brand) 38%, transparent));--_on-accent: #15121f;--_toolbar-tint: color-mix(in srgb, var(--_brand) 12%, var(--_bg));--_popover-bg: #1d2133;--_scroll-thumb: color-mix(in srgb, #ffffff 22%, transparent);--_danger: #f87171;--_elevation: 0 22px 48px -20px rgba(0, 0, 0, .8), 0 0 0 1px color-mix(in srgb, #ffffff 8%, transparent)}@media(prefers-color-scheme:dark){:host-context([data-theme=\"auto\"]){--_brand: var(--ith-table-brand, #7c3aed);--_bg: var(--ith-table-bg, #161826);--_text: var(--ith-table-text, #e7e9f3);--_muted: var(--ith-table-muted, #9aa0b5);--_border: var(--ith-table-border, #2f3348);--_header-bg: var(--ith-table-header-bg, color-mix(in srgb, var(--_brand) 34%, #0b0d16));--_header-text: var(--ith-table-header-text, #f3eeff);--_hover: var(--ith-table-hover, color-mix(in srgb, var(--_brand) 15%, #161826));--_selected-bg: var(--ith-table-selected-bg, color-mix(in srgb, var(--_brand) 20%, #161826));--_striped-bg: var(--ith-table-striped-bg, color-mix(in srgb, var(--_brand) 6%, #161826));--_accent: var(--ith-table-accent, color-mix(in srgb, var(--_brand) 55%, #ffffff));--_accent-soft: var(--ith-table-accent-soft, color-mix(in srgb, var(--_brand) 26%, #161826));--_input-bg: var(--ith-table-input-bg, #202436);--_input-border: var(--ith-table-input-border, #343a52);--_footer-bg: var(--ith-table-footer-bg, color-mix(in srgb, var(--_brand) 4%, #12141f));--_filter-bg: var(--ith-table-filter-bg, color-mix(in srgb, var(--_brand) 9%, #161826));--_overlay: var(--ith-table-overlay, rgba(17, 19, 30, .72));--_shadow: var(--ith-table-shadow, 0 18px 40px -28px rgba(0, 0, 0, .85));--_focus: var(--ith-table-focus, color-mix(in srgb, var(--_brand) 38%, transparent));--_on-accent: #15121f;--_toolbar-tint: color-mix(in srgb, var(--_brand) 12%, var(--_bg));--_popover-bg: #1d2133;--_scroll-thumb: color-mix(in srgb, #ffffff 22%, transparent);--_danger: #f87171;--_elevation: 0 22px 48px -20px rgba(0, 0, 0, .8), 0 0 0 1px color-mix(in srgb, #ffffff 8%, transparent)}}.ith-table{display:block;position:relative;background:var(--_bg);color:var(--_text);border:1px solid var(--_border);border-radius:var(--_radius);box-shadow:var(--_shadow);font-family:-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Oxygen,Ubuntu,Cantarell,Fira Sans,Droid Sans,Helvetica Neue,sans-serif;font-size:var(--_font-size);overflow:hidden}.ith-table-toolbar{padding:14px 16px;border-bottom:1px solid var(--_border);background:var(--_toolbar-tint)}.ith-table-toolbar-inner{display:flex;align-items:center;gap:12px;flex-wrap:nowrap;min-width:0;overflow-x:auto;scrollbar-width:none}.ith-table-toolbar-inner::-webkit-scrollbar{display:none}.ith-table-toolbar-main{display:flex;align-items:center;gap:10px;flex-wrap:nowrap;min-width:0;flex:0 0 auto}.ith-table-toolbar-spacer{flex:1 1 auto;min-width:8px}.ith-table-title{margin:0;font-size:15.5px;font-weight:650;letter-spacing:-.015em;color:var(--_text);white-space:nowrap}.ith-table-badge{display:inline-flex;align-items:center;padding:3px 10px;border-radius:999px;background:var(--_accent-soft);color:var(--_accent);font-size:11.5px;font-weight:600;line-height:1.4;white-space:nowrap}.ith-table-badge-accent{background:var(--_accent);color:var(--_on-accent);box-shadow:0 0 0 1px color-mix(in srgb,var(--_accent) 30%,transparent)}.ith-table-search{position:relative;flex:0 1 260px;min-width:180px}.ith-table-search-icon{position:absolute;left:12px;top:50%;width:15px;height:15px;transform:translateY(-50%);color:var(--_muted);pointer-events:none}.ith-table-search-input{width:100%;box-sizing:border-box;height:36px;padding:0 34px 0 36px;border:1px solid var(--_input-border);border-radius:10px;background:var(--_input-bg);color:var(--_text);font-size:13px;font-family:inherit;transition:border-color .15s ease,box-shadow .15s ease,background-color .15s ease}.ith-table-search-input:hover{border-color:color-mix(in srgb,var(--_accent) 35%,var(--_input-border))}.ith-table-search-input::placeholder{color:var(--_muted)}.ith-table-search-input::-webkit-search-cancel-button,.ith-table-search-input::-webkit-search-decoration,.ith-table-search-input::-webkit-search-results-button,.ith-table-search-input::-webkit-search-results-decoration{-webkit-appearance:none;appearance:none;display:none}.ith-table-search-input:focus{outline:none;border-color:var(--_accent);box-shadow:0 0 0 3px var(--_focus);background:var(--_bg)}.ith-table-search-clear{position:absolute;right:6px;top:50%;transform:translateY(-50%);width:24px;height:24px;display:grid;place-items:center;border:0;border-radius:7px;background:transparent;color:var(--_muted);cursor:pointer;transition:background-color .12s ease,color .12s ease}.ith-table-search-clear svg{width:14px;height:14px}.ith-table-search-clear:hover{background:var(--_accent-soft);color:var(--_accent)}.ith-table-scroll{position:relative;overflow:auto;scrollbar-width:thin;scrollbar-color:var(--_scroll-thumb) transparent}.ith-table-scroll::-webkit-scrollbar{width:10px;height:10px}.ith-table-scroll::-webkit-scrollbar-track{background:transparent}.ith-table-scroll::-webkit-scrollbar-thumb{border:3px solid transparent;border-radius:999px;background-color:var(--_scroll-thumb);background-clip:content-box}.ith-table-scroll::-webkit-scrollbar-thumb:hover{background-color:color-mix(in srgb,var(--_scroll-thumb) 75%,var(--_text))}.ith-table-scroll:not(.ith-table-scroll-bounded){min-height:calc(var(--_head-height) + var(--_row-height) * var(--_min-rows, 4))}.ith-table-scroll:not(.ith-table-scroll-bounded).ith-table-scroll-filtered{min-height:calc(var(--_head-height) + var(--_filter-height) + var(--_row-height) * var(--_min-rows, 4))}.ith-table-grid{width:100%;border-collapse:separate;border-spacing:0;table-layout:auto}.ith-table-head-row th{background:var(--_header-bg);color:var(--_header-text);font-size:var(--_header-font-size);font-weight:600;letter-spacing:.01em;text-align:left;padding:13px 16px;white-space:nowrap;border:0}.ith-table-sticky .ith-table-head-row th{position:sticky;top:0;z-index:2}.ith-table-th-label{display:inline-block}.ith-table-sort{display:inline-flex;align-items:center;justify-content:flex-start;gap:8px;width:100%;padding:0;border:0;background:transparent;color:inherit;font:inherit;letter-spacing:inherit;cursor:pointer;text-align:inherit}.ith-table-sort-icons{display:inline-flex;flex-direction:column;gap:2px;opacity:.5}.ith-table-sort-icons svg{width:8px;height:5px;fill:currentColor;opacity:.5;transition:opacity .15s ease}.ith-table-sort-icons svg.is-active{opacity:1}.ith-table-sort.is-sorted .ith-table-sort-icons{opacity:1}.ith-table-select-cell{width:46px;text-align:center;padding-left:14px;padding-right:10px}.ith-table-checkbox{width:16px;height:16px;margin:0;cursor:pointer;accent-color:var(--_accent);vertical-align:middle}.ith-table-checkbox:focus-visible{outline:2px solid var(--_accent);outline-offset:2px}.ith-table-row{background:var(--_bg);transition:background-color .15s ease}.ith-table-hoverable .ith-table-row:hover{background:var(--_hover)}.ith-table-row.ith-table-row-selected{background:var(--_selected-bg)}.ith-table-row.ith-table-row-selected td:first-child{box-shadow:inset 3px 0 0 var(--_accent)}.ith-table-row-clickable{cursor:pointer}.ith-table-td{padding:var(--_cell-padding);border-bottom:1px solid var(--_border);font-size:var(--_font-size);color:var(--_text);vertical-align:middle;white-space:nowrap;background:transparent}.ith-table-row:last-child .ith-table-td{border-bottom:0}.ith-table-align-left{text-align:left}.ith-table-align-center{text-align:center}.ith-table-align-right,.ith-table-actions-head{text-align:right}.ith-table-actions-cell{padding:var(--_cell-padding);border-bottom:1px solid var(--_border);text-align:right;white-space:nowrap}.ith-table-row:last-child .ith-table-actions-cell{border-bottom:0}.ith-table-action{display:inline-flex;align-items:center;gap:4px;padding:5px 9px;margin-left:4px;border:1px solid var(--_border);border-radius:7px;background:transparent;color:var(--_accent);font-family:inherit;font-size:12px;font-weight:500;line-height:1.2;cursor:pointer;transition:background-color .15s ease,border-color .15s ease}.ith-table-action:hover:not(:disabled){background:var(--_accent-soft);border-color:var(--_accent)}.ith-table-action:disabled{opacity:.45;cursor:not-allowed}.ith-table-action-icon{font-size:12px;line-height:1}.ith-table-action.is-danger{color:var(--_danger);border-color:color-mix(in srgb,var(--_danger) 35%,transparent)}.ith-table-filter-row th{background:var(--_filter-bg);padding:8px 10px;border-bottom:1px solid var(--_border);border-top:1px solid var(--_border)}.ith-table-filter-input{width:100%;box-sizing:border-box;height:30px;padding:0 9px;border:1px solid var(--_input-border);border-radius:7px;background:var(--_input-bg);color:var(--_text);font-family:inherit;font-size:12px}.ith-table-filter-select{cursor:pointer;padding-right:4px}.ith-table-filter-input:focus{outline:none;border-color:var(--_accent);box-shadow:0 0 0 3px var(--_focus)}.ith-table-filter-input::placeholder{color:var(--_muted)}.ith-table-status{padding:40px 16px;text-align:center;color:var(--_muted);font-size:13px}.ith-table-empty{display:flex;flex-direction:column;align-items:center;gap:8px}.ith-table-empty svg{width:36px;height:36px;opacity:.45}.ith-table-spinner{display:inline-block;width:16px;height:16px;border:2px solid var(--_accent-soft);border-top-color:var(--_accent);border-radius:50%;animation:ith-table-spin .7s linear infinite;vertical-align:middle}@keyframes ith-table-spin{to{transform:rotate(360deg)}}.ith-table-loading-overlay{position:absolute;inset:0;display:flex;align-items:center;justify-content:center;gap:8px;background:var(--_overlay);-webkit-backdrop-filter:blur(1px);backdrop-filter:blur(1px);color:var(--_text);font-size:13px;font-weight:500;z-index:3}.ith-table-link{padding:0;border:0;background:none;color:var(--_accent);font-family:inherit;font-size:12px;text-decoration:underline;text-underline-offset:3px;cursor:pointer}.ith-table-footer{display:flex;align-items:center;justify-content:space-between;gap:12px;flex-wrap:wrap;padding:12px 16px;border-top:1px solid var(--_border);background:var(--_footer-bg);font-size:12px;color:var(--_muted)}.ith-table-footer-info{display:flex;align-items:center;gap:16px;flex-wrap:wrap}.ith-table-footer-info strong{color:var(--_text);font-weight:600}.ith-table-footer-controls{display:flex;align-items:center;gap:14px;flex-wrap:wrap}.ith-table-pagination{display:flex;align-items:center;gap:4px}.ith-table-page-btn{display:inline-grid;place-items:center;min-width:30px;height:30px;padding:0 6px;border:1px solid var(--_border);border-radius:7px;background:var(--_bg);color:var(--_text);font-family:inherit;font-size:12px;font-weight:500;cursor:pointer;transition:background-color .15s ease,border-color .15s ease,color .15s ease}.ith-table-page-btn svg{width:14px;height:14px}.ith-table-page-btn:hover:not(:disabled){border-color:var(--_accent);color:var(--_accent);background:var(--_accent-soft)}.ith-table-page-btn:disabled{opacity:.4;cursor:not-allowed}.ith-table-page-number{min-width:30px}.ith-table-page-number.is-active{background:var(--_accent);border-color:var(--_accent);color:var(--_on-accent)}.ith-table-page-number.is-active:hover{background:var(--_accent);color:var(--_on-accent)}.ith-table-page-state{margin-left:6px;white-space:nowrap}.ith-table-page-size{display:inline-flex;align-items:center;gap:6px;white-space:nowrap}.ith-table-select{height:30px;padding:0 6px;border:1px solid var(--_border);border-radius:7px;background:var(--_bg);color:var(--_text);font-family:inherit;font-size:12px;cursor:pointer}.ith-table-select:focus-visible,.ith-table-page-btn:focus-visible,.ith-table-action:focus-visible,.ith-table-link:focus-visible{outline:2px solid var(--_accent);outline-offset:2px}.ith-table-dense{--ith-table-cell-padding: 8px 12px;--ith-table-font-size: 13px;--ith-table-header-font-size: 12px;--_cell-padding: 8px 12px;--_font-size: 13px;--_header-font-size: 12px;--_row-height: 39px;--_head-height: 38px}.ith-table-dense .ith-table-head-row th{padding:10px 12px}.ith-table-striped .ith-table-row:nth-child(2n){background:var(--_striped-bg)}.ith-table-bordered .ith-table-td,.ith-table-bordered .ith-table-actions-cell,.ith-table-bordered .ith-table-head-row th,.ith-table-bordered .ith-table-filter-row th{border-right:1px solid var(--_border)}.ith-table-bordered .ith-table-head-row th:last-child,.ith-table-bordered .ith-table-filter-row th:last-child{border-right:0}.ith-table-bordered .ith-table-td:last-child,.ith-table-bordered .ith-table-actions-cell:last-child{border-right:0}@media(prefers-reduced-motion:reduce){.ith-table-row,.ith-table-action,.ith-table-page-btn,.ith-table-search-input,.ith-table-sort-icons svg{transition:none}.ith-table-spinner{animation-duration:2.4s}}@media(max-width:640px){.ith-table-footer{align-items:stretch;flex-direction:column}.ith-table-toolbar-inner{gap:10px}.ith-table-search{flex:1 1 auto}.ith-table-footer-controls{justify-content:space-between}.ith-table-page-state{display:none}}.ith-table-toolbar-actions{display:flex;align-items:center;gap:10px;flex-wrap:nowrap;flex:0 0 auto}.ith-table-tool-btn{display:inline-flex;align-items:center;gap:7px;height:36px;padding:0 13px;border:1px solid var(--_input-border);border-radius:10px;background:var(--_input-bg);color:var(--_text);font:inherit;font-size:12.5px;font-weight:600;cursor:pointer;white-space:nowrap;transition:border-color .14s ease,background-color .14s ease,color .14s ease,box-shadow .14s ease}.ith-table-tool-icon{width:15px;height:15px;flex-shrink:0;opacity:.8}.ith-table-tool-btn:hover .ith-table-tool-icon,.ith-table-tool-btn[aria-expanded=true] .ith-table-tool-icon,.ith-table-tool-btn[aria-pressed=true] .ith-table-tool-icon{opacity:1}.ith-table-tool-btn:hover{border-color:color-mix(in srgb,var(--_accent) 45%,var(--_input-border));background:color-mix(in srgb,var(--_accent) 4%,var(--_input-bg));color:var(--_accent)}.ith-table-tool-btn[aria-expanded=true],.ith-table-tool-btn[aria-pressed=true]{border-color:var(--_accent);background:var(--_accent-soft);color:var(--_accent);box-shadow:0 0 0 1px color-mix(in srgb,var(--_accent) 20%,transparent)}.ith-table-tool-btn:focus-visible{outline:none;box-shadow:0 0 0 3px var(--_focus)}.ith-table-menu-anchor{position:relative;display:inline-flex}.ith-table-segmented{display:inline-flex;align-items:center;gap:2px;height:36px;padding:3px;border:1px solid var(--_input-border);border-radius:10px;background:var(--_input-bg)}.ith-table-segmented-btn{display:inline-flex;align-items:center;gap:5px;height:28px;padding:0 10px;border:0;border-radius:7px;background:transparent;color:var(--_muted);font:inherit;font-size:12.5px;font-weight:600;white-space:nowrap;cursor:pointer;transition:background-color .12s ease,color .12s ease}.ith-table-segmented-btn svg{width:13px;height:13px}.ith-table-segmented-btn:hover{color:var(--_accent)}.ith-table-segmented-btn.is-active{background:var(--_accent-soft);color:var(--_accent);box-shadow:0 0 0 1px color-mix(in srgb,var(--_accent) 22%,transparent)}.ith-table-segmented-btn:focus-visible{outline:none;box-shadow:0 0 0 3px var(--_focus)}.ith-table-popover{position:fixed;z-index:900;width:250px;max-height:380px;display:flex;flex-direction:column;overflow:hidden;border:1px solid var(--_border);border-radius:12px;background:var(--_popover-bg);color:var(--_text);box-shadow:var(--_elevation);font-size:13px}.ith-table-popover-header{padding:10px 12px 8px;font-size:11.5px;font-weight:700;letter-spacing:.04em;text-transform:uppercase;color:var(--_muted)}.ith-table-popover-list{padding:0 6px 6px;overflow-y:auto;max-height:280px}.ith-table-popover-footer{display:flex;gap:6px;padding:6px;border-top:1px solid var(--_border);background:color-mix(in srgb,var(--_brand) 2%,var(--_bg))}.ith-table-popover-action{flex:1 1 auto;padding:7px 8px;border:0;border-radius:8px;background:transparent;color:var(--_accent);font:inherit;font-size:12.5px;font-weight:600;cursor:pointer}.ith-table-popover-action:hover{background:var(--_accent-soft)}.ith-table-popover-empty{margin:0;padding:10px 12px;color:var(--_muted);font-size:12.5px}.ith-table-columns-item{display:flex;align-items:center;gap:10px;padding:7px 8px;border-radius:8px;font-size:13px;cursor:pointer;transition:background-color .12s ease}.ith-table-columns-item:hover{background:var(--_hover)}.ith-table-columns-item input:disabled{opacity:.4;cursor:not-allowed}.ith-table-pin-tag{margin-left:auto;padding:1px 7px;border-radius:999px;background:var(--_accent-soft);color:var(--_accent);font-size:10px;font-weight:700;letter-spacing:.04em;text-transform:uppercase}.ith-table-view-item{display:flex;align-items:center;gap:4px;padding-right:4px;border-radius:8px}.ith-table-view-item:hover{background:var(--_hover)}.ith-table-view-item.is-active .ith-table-view-apply{color:var(--_accent);font-weight:650}.ith-table-view-apply{flex:1 1 auto;padding:7px 8px;border:0;background:transparent;color:var(--_text);font:inherit;font-size:13px;text-align:left;cursor:pointer}.ith-table-view-delete{display:grid;place-items:center;width:24px;height:24px;padding:0;border:0;border-radius:6px;background:transparent;color:var(--_muted);cursor:pointer}.ith-table-view-delete svg{width:11px;height:11px}.ith-table-view-delete:hover{background:var(--_accent-soft);color:var(--_accent)}.ith-table-view-save{align-items:center}.ith-table-view-input{flex:1 1 auto;min-width:0;height:30px;padding:0 9px;border:1px solid var(--_input-border);border-radius:8px;background:var(--_input-bg);color:var(--_text);font:inherit;font-size:12.5px}.ith-table-view-input:focus{outline:none;border-color:var(--_accent);box-shadow:0 0 0 3px var(--_focus)}.ith-table-column-menu{width:220px;padding:6px}.ith-table-menu-item{display:block;width:100%;padding:8px 10px;border:0;border-radius:8px;background:transparent;color:var(--_text);font:inherit;font-size:13px;text-align:left;cursor:pointer}.ith-table-menu-item:hover{background:var(--_accent-soft);color:var(--_accent)}.ith-table-menu-divider{height:1px;margin:5px 6px;background:var(--_border)}.ith-table.ith-table-compact{--ith-table-cell-padding: 7px 12px;--_cell-padding: var(--ith-table-compact-padding, 7px 12px);--_font-size: var(--ith-table-compact-font-size, 13px);--_header-font-size: 12.5px;--_row-height: 39px;--_head-height: 39px}.ith-table.ith-table-compact .ith-table-head-row th{padding:10px 12px}.ith-table.ith-table-compact .ith-table-filter-row th{padding:6px 10px}.ith-table-sticky-start,.ith-table-sticky-end{position:sticky;z-index:3;background:var(--_bg)}.ith-table-sticky-start{box-shadow:inset -1px 0 0 var(--_border)}.ith-table-sticky-end{box-shadow:inset 1px 0 0 var(--_border)}.ith-table-striped .ith-table-row:nth-child(2n) .ith-table-sticky-start,.ith-table-striped .ith-table-row:nth-child(2n) .ith-table-sticky-end{background:var(--_striped-bg)}.ith-table-row-selected .ith-table-sticky-start,.ith-table-row-selected .ith-table-sticky-end{background:var(--_selected-bg)}.ith-table-row:hover .ith-table-sticky-start,.ith-table-row:hover .ith-table-sticky-end{background:var(--_hover)}thead .ith-table-sticky-start,thead .ith-table-sticky-end{z-index:7;background:var(--_header-bg)}.ith-table-filter-row .ith-table-sticky-start,.ith-table-filter-row .ith-table-sticky-end{z-index:6;background:var(--_filter-bg)}.ith-table-td:not(.ith-table-sticky-start):not(.ith-table-sticky-end){position:relative}.ith-table-td.ith-table-copyable{padding-inline-end:36px}.ith-table-copy{position:absolute;inset-inline-end:8px;top:50%;display:grid;place-items:center;width:24px;height:24px;padding:0;transform:translateY(-50%);border:1px solid transparent;border-radius:7px;background:var(--_bg);color:var(--_muted);cursor:pointer;opacity:0;pointer-events:none;transition:opacity .12s ease,color .12s ease,border-color .12s ease}.ith-table-copy svg{width:14px;height:14px}.ith-table-td:hover .ith-table-copy,.ith-table-td:focus-within .ith-table-copy,.ith-table-copy.is-copied{opacity:1;pointer-events:auto}.ith-table-copy:hover{border-color:var(--_accent);color:var(--_accent)}.ith-table-copy.is-copied{color:var(--_accent)}.ith-table-td:focus-visible{outline:2px solid var(--_accent);outline-offset:-2px}.ith-table-skeleton{display:block;width:72%;height:12px;border-radius:6px;background:linear-gradient(90deg,var(--_border) 25%,var(--_hover) 37%,var(--_border) 63%);background-size:400% 100%;animation:ith-table-shimmer 1.4s ease infinite}.ith-table-skeleton.is-check{width:16px;height:16px;border-radius:4px;margin:0 auto}@keyframes ith-table-shimmer{0%{background-position:100% 50%}to{background-position:0 50%}}.ith-table-visually-hidden{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}.ith-table-menu{position:fixed;z-index:1000;min-width:180px;max-width:280px;padding:6px;border:1px solid var(--_border);border-radius:10px;background:var(--_popover-bg);color:var(--_text);box-shadow:var(--_elevation);font-size:13px}@media(prefers-reduced-motion:reduce){.ith-table-skeleton{animation:none}.ith-table-copy,.ith-table-tool-btn{transition:none}}.ith-table-th-inner{display:flex;align-items:center;gap:6px;min-width:0}.ith-table-th-inner>*:first-child{min-width:0}.ith-table-th:not(.ith-table-sticky-start):not(.ith-table-sticky-end){position:relative}.ith-table-th-menu{display:grid;place-items:center;flex:0 0 auto;width:20px;height:20px;padding:0;border:0;border-radius:6px;background:transparent;color:inherit;cursor:pointer;opacity:0;transition:opacity .12s ease,background-color .12s ease}.ith-table-th-menu svg{width:13px;height:13px}.ith-table-th:hover .ith-table-th-menu,.ith-table-th-menu[aria-expanded=true],.ith-table-th-menu:focus-visible{opacity:.85}.ith-table-th-menu:hover{background:color-mix(in srgb,currentColor 20%,transparent);opacity:1}.ith-table-th-menu:focus-visible{outline:2px solid currentColor;outline-offset:1px}.ith-table-resizer{position:absolute;top:0;inset-inline-end:-4px;bottom:0;width:9px;z-index:4;cursor:col-resize;touch-action:none}.ith-table-resizer:after{content:\"\";position:absolute;top:22%;bottom:22%;inset-inline-start:4px;width:2px;border-radius:2px;background:transparent;transition:background-color .12s ease}.ith-table-th:hover .ith-table-resizer:after{background:color-mix(in srgb,currentColor 40%,transparent)}.ith-table-th-dragging{opacity:.5}.ith-table-drop-target{box-shadow:inset 3px 0 0 var(--_accent)}.ith-table-pin-dot{flex:0 0 auto;width:6px;height:6px;border-radius:50%;background:currentColor;opacity:.55}.ith-table-sticky .ith-table-scroll.is-scrolled .ith-table-head-row th{box-shadow:0 1px 0 var(--_border),0 10px 16px -14px #0c0a1e8c}.ith-table-chips{display:flex;align-items:center;flex-wrap:wrap;gap:6px;margin-top:10px}.ith-table-chip{display:inline-flex;align-items:center;gap:6px;max-width:260px;padding:3px 4px 3px 9px;border:1px solid color-mix(in srgb,var(--_accent) 24%,transparent);border-radius:999px;background:var(--_accent-soft);color:var(--_accent);font-size:11.5px;font-weight:600}.ith-table-chip-label{font-size:10px;letter-spacing:.04em;text-transform:uppercase;opacity:.7}.ith-table-chip-value{max-width:150px;overflow:hidden;font-weight:500;text-overflow:ellipsis;white-space:nowrap}.ith-table-chip-remove{display:grid;place-items:center;width:18px;height:18px;padding:0;border:0;border-radius:50%;background:color-mix(in srgb,var(--_accent) 16%,transparent);color:inherit;cursor:pointer}.ith-table-chip-remove svg{width:9px;height:9px}.ith-table-chip-remove:hover{background:var(--_accent);color:var(--_on-accent)}.ith-table-chips-clear{padding:3px 8px;border:0;border-radius:999px;background:transparent;color:var(--_muted);font:inherit;font-size:11.5px;text-decoration:underline;text-underline-offset:3px;cursor:pointer}.ith-table-chips-clear:hover{color:var(--_accent)}.ith-table-selection-bar{display:flex;align-items:center;gap:10px;flex-wrap:wrap;padding:8px 16px;border-bottom:1px solid color-mix(in srgb,var(--_accent) 28%,var(--_border));background:var(--_accent-soft);color:var(--_accent);font-size:12.5px}.ith-table-selection-count strong{font-weight:700}.ith-table-selection-spacer{flex:1 1 auto}.ith-table-selection-actions{display:flex;align-items:center;gap:6px;flex-wrap:wrap}.ith-table-selection-btn{display:inline-flex;align-items:center;gap:5px;height:28px;padding:0 10px;border:1px solid color-mix(in srgb,var(--_accent) 35%,transparent);border-radius:8px;background:var(--_bg);color:var(--_accent);font:inherit;font-size:12px;font-weight:600;cursor:pointer;transition:background-color .12s ease,color .12s ease}.ith-table-selection-btn:hover{background:var(--_accent);color:var(--_on-accent)}.ith-table-selection-btn.is-danger{border-color:color-mix(in srgb,var(--_danger) 40%,transparent);color:var(--_danger)}.ith-table-selection-btn.is-danger:hover{background:var(--_danger);color:#fff}.ith-table-selection-clear{border:0;background:transparent;color:var(--_muted);font:inherit;font-size:12px;text-decoration:underline;text-underline-offset:3px;cursor:pointer}.ith-table-selection-clear:hover{color:var(--_accent)}.ith-table-expander-cell{width:38px;padding:0 0 0 10px;text-align:center}th.ith-table-expander-cell{background:var(--_header-bg)}.ith-table-expander{display:grid;place-items:center;width:22px;height:22px;padding:0;border:0;border-radius:6px;background:transparent;color:var(--_muted);cursor:pointer;transition:transform .15s ease,color .12s ease,background-color .12s ease}.ith-table-expander svg{width:13px;height:13px}.ith-table-expander:hover{background:var(--_accent-soft);color:var(--_accent)}.ith-table-expander.is-open{transform:rotate(90deg);color:var(--_accent)}.ith-table-detail-row>td{padding:14px 16px;border-bottom:1px solid var(--_border);background:var(--_striped-bg);white-space:normal}.ith-table-total-cell{padding:var(--_cell-padding);border-top:1px solid var(--_border);background:var(--_filter-bg);font-size:12px;white-space:nowrap}.ith-table-total-row .ith-table-select-cell,.ith-table-total-row .ith-table-expander-cell{border-top:1px solid var(--_border);background:var(--_filter-bg)}.ith-table-total-label{margin-inline-end:6px;font-size:10px;font-weight:700;letter-spacing:.04em;text-transform:uppercase;color:var(--_muted)}.ith-table-total-value{font-weight:650;color:var(--_text)}@media(prefers-reduced-motion:reduce){.ith-table-expander,.ith-table-th-menu,.ith-table-selection-btn{transition:none}}.ith-table-export-menu{width:236px;padding:6px}.ith-table-export-name{display:block;font-weight:650}.ith-table-export-hint{display:block;margin-top:2px;font-size:11px;font-weight:500;color:var(--_muted)}.ith-table-menu-item:hover .ith-table-export-hint{color:inherit;opacity:.75}:host-context([data-theme=\"dark\"]) .ith-table,:host-context(.dark) .ith-table{box-shadow:var(--_shadow),inset 0 0 0 1px color-mix(in srgb,#ffffff 6%,transparent)}@media(prefers-color-scheme:dark){:host-context([data-theme=\"auto\"]) .ith-table{box-shadow:var(--_shadow),inset 0 0 0 1px color-mix(in srgb,#ffffff 6%,transparent)}}:host-context([data-theme=\"dark\"]) .ith-table-td,:host-context(.dark) .ith-table-td,:host-context([data-theme=\"dark\"]) .ith-table-actions-cell,:host-context(.dark) .ith-table-actions-cell{border-color:color-mix(in srgb,var(--_border) 78%,#ffffff)}:host-context([data-theme=\"dark\"]) .ith-table-row.ith-table-row-selected td:first-child,:host-context(.dark) .ith-table-row.ith-table-row-selected td:first-child{box-shadow:inset 3px 0 0 var(--_accent)}:host-context([data-theme=\"dark\"]) .ith-table-sort-icons,:host-context(.dark) .ith-table-sort-icons{opacity:.65}\n"], dependencies: [{ kind: "directive", type: NgClass, selector: "[ngClass]", inputs: ["class", "ngClass"] }, { kind: "directive", type: NgTemplateOutlet, selector: "[ngTemplateOutlet]", inputs: ["ngTemplateOutletContext", "ngTemplateOutlet", "ngTemplateOutletInjector"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush });
2012
+ static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "20.3.34", type: TableComponent, isStandalone: true, selector: "ith-table", inputs: { data: { classPropertyName: "data", publicName: "data", isSignal: true, isRequired: false, transformFunction: null }, columns: { classPropertyName: "columns", publicName: "columns", isSignal: true, isRequired: false, transformFunction: null }, keyField: { classPropertyName: "keyField", publicName: "keyField", isSignal: true, isRequired: false, transformFunction: null }, mode: { classPropertyName: "mode", publicName: "mode", isSignal: true, isRequired: false, transformFunction: null }, total: { classPropertyName: "total", publicName: "total", isSignal: true, isRequired: false, transformFunction: null }, title: { classPropertyName: "title", publicName: "title", isSignal: true, isRequired: false, transformFunction: null }, countSuffix: { classPropertyName: "countSuffix", publicName: "countSuffix", isSignal: true, isRequired: false, transformFunction: null }, totalLabel: { classPropertyName: "totalLabel", publicName: "totalLabel", isSignal: true, isRequired: false, transformFunction: null }, showToolbar: { classPropertyName: "showToolbar", publicName: "showToolbar", isSignal: true, isRequired: false, transformFunction: null }, searchable: { classPropertyName: "searchable", publicName: "searchable", isSignal: true, isRequired: false, transformFunction: null }, searchPlaceholder: { classPropertyName: "searchPlaceholder", publicName: "searchPlaceholder", isSignal: true, isRequired: false, transformFunction: null }, showFilters: { classPropertyName: "showFilters", publicName: "showFilters", isSignal: true, isRequired: false, transformFunction: null }, filterPlaceholder: { classPropertyName: "filterPlaceholder", publicName: "filterPlaceholder", isSignal: true, isRequired: false, transformFunction: null }, filterAllLabel: { classPropertyName: "filterAllLabel", publicName: "filterAllLabel", isSignal: true, isRequired: false, transformFunction: null }, emptyText: { classPropertyName: "emptyText", publicName: "emptyText", isSignal: true, isRequired: false, transformFunction: null }, ariaLabel: { classPropertyName: "ariaLabel", publicName: "ariaLabel", isSignal: true, isRequired: false, transformFunction: null }, sort: { classPropertyName: "sort", publicName: "sort", isSignal: true, isRequired: false, transformFunction: null }, sortable: { classPropertyName: "sortable", publicName: "sortable", isSignal: true, isRequired: false, transformFunction: null }, search: { classPropertyName: "search", publicName: "search", isSignal: true, isRequired: false, transformFunction: null }, page: { classPropertyName: "page", publicName: "page", isSignal: true, isRequired: false, transformFunction: null }, pageSize: { classPropertyName: "pageSize", publicName: "pageSize", isSignal: true, isRequired: false, transformFunction: null }, pageSizeOptions: { classPropertyName: "pageSizeOptions", publicName: "pageSizeOptions", isSignal: true, isRequired: false, transformFunction: null }, showPagination: { classPropertyName: "showPagination", publicName: "showPagination", isSignal: true, isRequired: false, transformFunction: null }, showPageSize: { classPropertyName: "showPageSize", publicName: "showPageSize", isSignal: true, isRequired: false, transformFunction: null }, showFirstLast: { classPropertyName: "showFirstLast", publicName: "showFirstLast", isSignal: true, isRequired: false, transformFunction: null }, maxPageButtons: { classPropertyName: "maxPageButtons", publicName: "maxPageButtons", isSignal: true, isRequired: false, transformFunction: null }, showFooter: { classPropertyName: "showFooter", publicName: "showFooter", isSignal: true, isRequired: false, transformFunction: null }, showFilterChips: { classPropertyName: "showFilterChips", publicName: "showFilterChips", isSignal: true, isRequired: false, transformFunction: null }, selectionMode: { classPropertyName: "selectionMode", publicName: "selectionMode", isSignal: true, isRequired: false, transformFunction: null }, selectAllScope: { classPropertyName: "selectAllScope", publicName: "selectAllScope", isSignal: true, isRequired: false, transformFunction: null }, selected: { classPropertyName: "selected", publicName: "selected", isSignal: true, isRequired: false, transformFunction: null }, selectOnRowClick: { classPropertyName: "selectOnRowClick", publicName: "selectOnRowClick", isSignal: true, isRequired: false, transformFunction: null }, selectionActions: { classPropertyName: "selectionActions", publicName: "selectionActions", isSignal: true, isRequired: false, transformFunction: null }, rowActions: { classPropertyName: "rowActions", publicName: "rowActions", isSignal: true, isRequired: false, transformFunction: null }, actionsHeader: { classPropertyName: "actionsHeader", publicName: "actionsHeader", isSignal: true, isRequired: false, transformFunction: null }, actionsWidth: { classPropertyName: "actionsWidth", publicName: "actionsWidth", isSignal: true, isRequired: false, transformFunction: null }, rowClickable: { classPropertyName: "rowClickable", publicName: "rowClickable", isSignal: true, isRequired: false, transformFunction: null }, rowClass: { classPropertyName: "rowClass", publicName: "rowClass", isSignal: true, isRequired: false, transformFunction: null }, loading: { classPropertyName: "loading", publicName: "loading", isSignal: true, isRequired: false, transformFunction: null }, loadingText: { classPropertyName: "loadingText", publicName: "loadingText", isSignal: true, isRequired: false, transformFunction: null }, striped: { classPropertyName: "striped", publicName: "striped", isSignal: true, isRequired: false, transformFunction: null }, hoverable: { classPropertyName: "hoverable", publicName: "hoverable", isSignal: true, isRequired: false, transformFunction: null }, bordered: { classPropertyName: "bordered", publicName: "bordered", isSignal: true, isRequired: false, transformFunction: null }, dense: { classPropertyName: "dense", publicName: "dense", isSignal: true, isRequired: false, transformFunction: null }, stickyHeader: { classPropertyName: "stickyHeader", publicName: "stickyHeader", isSignal: true, isRequired: false, transformFunction: null }, maxHeight: { classPropertyName: "maxHeight", publicName: "maxHeight", isSignal: true, isRequired: false, transformFunction: null }, copyable: { classPropertyName: "copyable", publicName: "copyable", isSignal: true, isRequired: false, transformFunction: null }, showColumnPicker: { classPropertyName: "showColumnPicker", publicName: "showColumnPicker", isSignal: true, isRequired: false, transformFunction: null }, showDensityToggle: { classPropertyName: "showDensityToggle", publicName: "showDensityToggle", isSignal: true, isRequired: false, transformFunction: null }, showColumnMenu: { classPropertyName: "showColumnMenu", publicName: "showColumnMenu", isSignal: true, isRequired: false, transformFunction: null }, showExport: { classPropertyName: "showExport", publicName: "showExport", isSignal: true, isRequired: false, transformFunction: null }, exportFileName: { classPropertyName: "exportFileName", publicName: "exportFileName", isSignal: true, isRequired: false, transformFunction: null }, showViews: { classPropertyName: "showViews", publicName: "showViews", isSignal: true, isRequired: false, transformFunction: null }, resizable: { classPropertyName: "resizable", publicName: "resizable", isSignal: true, isRequired: false, transformFunction: null }, reorderable: { classPropertyName: "reorderable", publicName: "reorderable", isSignal: true, isRequired: false, transformFunction: null }, keyboardNavigation: { classPropertyName: "keyboardNavigation", publicName: "keyboardNavigation", isSignal: true, isRequired: false, transformFunction: null }, storageKey: { classPropertyName: "storageKey", publicName: "storageKey", isSignal: true, isRequired: false, transformFunction: null }, skeletonRows: { classPropertyName: "skeletonRows", publicName: "skeletonRows", isSignal: true, isRequired: false, transformFunction: null }, minRows: { classPropertyName: "minRows", publicName: "minRows", isSignal: true, isRequired: false, transformFunction: null }, stickySelection: { classPropertyName: "stickySelection", publicName: "stickySelection", isSignal: true, isRequired: false, transformFunction: null }, stickyActions: { classPropertyName: "stickyActions", publicName: "stickyActions", isSignal: true, isRequired: false, transformFunction: null }, rowDetailTrigger: { classPropertyName: "rowDetailTrigger", publicName: "rowDetailTrigger", isSignal: true, isRequired: false, transformFunction: null }, filters: { classPropertyName: "filters", publicName: "filters", isSignal: true, isRequired: false, transformFunction: null } }, outputs: { sort: "sortChange", search: "searchChange", filterChange: "filterChange", page: "pageChange", pageSize: "pageSizeChange", selected: "selectedChange", actionClick: "actionClick", rowClick: "rowClick", cellCopy: "cellCopy", rowContextMenu: "rowContextMenu", columnsChange: "columnsChange", densityChange: "densityChange", columnStateChange: "columnStateChange", selectionAction: "selectionAction", csvExport: "csvExport", exportFile: "exportFile", filters: "filtersChange" }, host: { listeners: { "document:pointermove": "onDocumentPointerMove($event)", "document:pointerup": "onDocumentPointerUp()", "document:click": "onDocumentClick()", "document:keydown.escape": "onDocumentEscape()" } }, queries: [{ propertyName: "cellDirectives", predicate: TableCellDirective, descendants: true, isSignal: true }, { propertyName: "headerDirectives", predicate: TableHeaderDirective, descendants: true, isSignal: true }, { propertyName: "filterDirectives", predicate: TableFilterDirective, descendants: true, isSignal: true }, { propertyName: "rowActionsDirectives", predicate: TableRowActionsDirective, descendants: true, isSignal: true }, { propertyName: "toolbarDirectives", predicate: TableToolbarDirective, descendants: true, isSignal: true }, { propertyName: "footerDirectives", predicate: TableFooterDirective, descendants: true, isSignal: true }, { propertyName: "emptyDirectives", predicate: TableEmptyDirective, descendants: true, isSignal: true }, { propertyName: "rowMenuDirectives", predicate: TableRowMenuDirective, descendants: true, isSignal: true }, { propertyName: "rowDetailDirectives", predicate: TableRowDetailDirective, descendants: true, isSignal: true }], ngImport: i0, template: "<div\n class=\"ith-table\"\n [class.ith-table-bordered]=\"bordered()\"\n [class.ith-table-dense]=\"dense()\"\n [class.ith-table-striped]=\"striped()\"\n [class.ith-table-hoverable]=\"hoverable()\"\n [class.ith-table-sticky]=\"stickyHeader()\"\n [class.ith-table-compact]=\"compact()\">\n <!-- Toolbar -->\n @if (showToolbar()) {\n <div class=\"ith-table-toolbar\">\n <div class=\"ith-table-toolbar-inner\">\n <div class=\"ith-table-toolbar-main\">\n @if (title()) {\n <h3 class=\"ith-table-title\">{{ title() }}</h3>\n }\n <span class=\"ith-table-badge\">{{ totalRows() }} {{ countSuffix() }}</span>\n @if (selected().length > 0) {\n <span class=\"ith-table-badge ith-table-badge-accent\">{{ selected().length }} selected</span>\n }\n @if (toolbarTemplate(); as toolbarTpl) {\n <ng-container\n [ngTemplateOutlet]=\"toolbarTpl\"\n [ngTemplateOutletContext]=\"toolbarContext()\" />\n }\n </div>\n\n <div class=\"ith-table-toolbar-spacer\"></div>\n\n <div class=\"ith-table-toolbar-actions\">\n @if (showViews()) {\n <div class=\"ith-table-menu-anchor\" (click)=\"$event.stopPropagation()\">\n <button\n type=\"button\"\n class=\"ith-table-tool-btn\"\n aria-haspopup=\"true\"\n [attr.aria-expanded]=\"viewsOpen()\"\n (click)=\"toggleViews($event)\">\n <svg class=\"ith-table-tool-icon\" viewBox=\"0 0 24 24\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"1.8\" stroke-linecap=\"round\" stroke-linejoin=\"round\" aria-hidden=\"true\">\n <path d=\"M4 6h16M4 12h10M4 18h7\" />\n </svg>\n <span>Views</span>\n </button>\n </div>\n }\n\n @if (showColumnPicker()) {\n <div class=\"ith-table-menu-anchor\" (click)=\"$event.stopPropagation()\">\n <button\n type=\"button\"\n class=\"ith-table-tool-btn\"\n aria-haspopup=\"true\"\n [attr.aria-expanded]=\"columnPickerOpen()\"\n (click)=\"toggleColumnPicker($event)\">\n <svg class=\"ith-table-tool-icon\" viewBox=\"0 0 24 24\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"1.8\" stroke-linecap=\"round\" stroke-linejoin=\"round\" aria-hidden=\"true\">\n <rect x=\"3\" y=\"4\" width=\"7\" height=\"16\" rx=\"1.5\" />\n <rect x=\"14\" y=\"4\" width=\"7\" height=\"16\" rx=\"1.5\" />\n </svg>\n <span>Columns</span>\n </button>\n </div>\n }\n\n @if (showDensityToggle()) {\n <div class=\"ith-table-segmented\" role=\"group\" aria-label=\"Row density\">\n <button\n type=\"button\"\n class=\"ith-table-segmented-btn\"\n [class.is-active]=\"!compact()\"\n [attr.aria-pressed]=\"!compact()\"\n title=\"Comfortable rows\"\n (click)=\"setDensity('comfortable')\">\n <svg viewBox=\"0 0 24 24\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"1.8\" stroke-linecap=\"round\" aria-hidden=\"true\">\n <path d=\"M4 8h16M4 16h16\" />\n </svg>\n <span>Comfortable</span>\n </button>\n <button\n type=\"button\"\n class=\"ith-table-segmented-btn\"\n [class.is-active]=\"compact()\"\n [attr.aria-pressed]=\"compact()\"\n title=\"Compact rows\"\n (click)=\"setDensity('compact')\">\n <svg viewBox=\"0 0 24 24\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"1.8\" stroke-linecap=\"round\" aria-hidden=\"true\">\n <path d=\"M4 6h16M4 10h16M4 14h16M4 18h16\" />\n </svg>\n <span>Compact</span>\n </button>\n </div>\n }\n\n @if (showExport()) {\n <div class=\"ith-table-menu-anchor\" (click)=\"$event.stopPropagation()\">\n <button\n type=\"button\"\n class=\"ith-table-tool-btn\"\n aria-haspopup=\"true\"\n [attr.aria-expanded]=\"!!exportMenuPos()\"\n title=\"Export the current view\"\n (click)=\"toggleExportMenu($event)\">\n <svg class=\"ith-table-tool-icon\" viewBox=\"0 0 24 24\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"1.8\" stroke-linecap=\"round\" stroke-linejoin=\"round\" aria-hidden=\"true\">\n <path d=\"M12 4v11m0 0 4-4m-4 4-4-4\" />\n <path d=\"M4 19h16\" />\n </svg>\n <span>Export</span>\n </button>\n </div>\n }\n\n @if (searchable()) {\n <div class=\"ith-table-search\">\n <svg class=\"ith-table-search-icon\" viewBox=\"0 0 24 24\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"2\" stroke-linecap=\"round\" aria-hidden=\"true\">\n <circle cx=\"11\" cy=\"11\" r=\"7\" />\n <path d=\"m20 20-3.6-3.6\" />\n </svg>\n <input\n type=\"search\"\n class=\"ith-table-search-input\"\n [value]=\"search()\"\n [attr.placeholder]=\"searchPlaceholder()\"\n [attr.aria-label]=\"searchPlaceholder()\"\n (input)=\"onSearchInput($any($event.target).value)\" />\n @if (search()) {\n <button type=\"button\" class=\"ith-table-search-clear\" (click)=\"clearSearch()\" aria-label=\"Clear search\">\n <svg viewBox=\"0 0 24 24\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"2\" stroke-linecap=\"round\" aria-hidden=\"true\">\n <path d=\"M6 6l12 12M18 6 6 18\" />\n </svg>\n </button>\n }\n </div>\n }\n </div>\n </div>\n\n @if (showFilterChips() && hasQuery()) {\n <div class=\"ith-table-chips\">\n @for (chip of filterChips(); track chip.kind + chip.key) {\n <span class=\"ith-table-chip\">\n <span class=\"ith-table-chip-label\">{{ chip.label }}</span>\n <span class=\"ith-table-chip-value\">{{ chip.value }}</span>\n <button\n type=\"button\"\n class=\"ith-table-chip-remove\"\n [attr.aria-label]=\"'Remove ' + chip.label + ' filter'\"\n (click)=\"removeChip(chip)\">\n <svg viewBox=\"0 0 24 24\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"2\" stroke-linecap=\"round\" aria-hidden=\"true\">\n <path d=\"M6 6l12 12M18 6 6 18\" />\n </svg>\n </button>\n </span>\n }\n <button type=\"button\" class=\"ith-table-chips-clear\" (click)=\"clearQuery()\">Clear all</button>\n </div>\n }\n </div>\n }\n\n <!-- Bulk actions for the current selection -->\n @if (selected().length > 0 && selectionActions().length) {\n <div class=\"ith-table-selection-bar\" role=\"region\" aria-label=\"Selection actions\">\n <span class=\"ith-table-selection-count\">\n <strong>{{ selected().length }}</strong> selected\n </span>\n <span class=\"ith-table-selection-spacer\"></span>\n <div class=\"ith-table-selection-actions\">\n @for (action of selectionActions(); track action.id) {\n <button\n type=\"button\"\n class=\"ith-table-selection-btn\"\n [ngClass]=\"action.class ?? ''\"\n [attr.title]=\"action.title ?? action.label\"\n (click)=\"onSelectionAction(action, $event)\">\n @if (action.icon) {\n <span class=\"ith-table-selection-icon\" aria-hidden=\"true\">{{ action.icon }}</span>\n }\n <span>{{ action.label }}</span>\n </button>\n }\n <button type=\"button\" class=\"ith-table-selection-clear\" (click)=\"clearSelection()\">\n Clear selection\n </button>\n </div>\n </div>\n }\n\n <!-- Table -->\n <div\n class=\"ith-table-scroll\"\n [class.ith-table-scroll-bounded]=\"!!maxHeight()\"\n [class.ith-table-scroll-filtered]=\"showFilters()\"\n [class.is-scrolled]=\"scrolled()\"\n [style.maxHeight]=\"maxHeight() || null\"\n [style.--_min-rows]=\"minRows()\"\n (scroll)=\"onScroll($event)\">\n <table class=\"ith-table-grid\" [attr.aria-label]=\"ariaLabel()\" [attr.aria-busy]=\"loading()\">\n <thead>\n <tr class=\"ith-table-head-row\">\n @if (selectable()) {\n <th\n scope=\"col\"\n class=\"ith-table-select-cell\"\n [class.ith-table-sticky-start]=\"stickySelection()\"\n [style.left]=\"stickySelection() ? '0px' : null\">\n @if (selectionMode() === 'multi') {\n <input\n type=\"checkbox\"\n class=\"ith-table-checkbox\"\n [checked]=\"allPageSelected()\"\n [indeterminate]=\"somePageSelected()\"\n [attr.aria-label]=\"'Select all rows'\"\n (change)=\"onSelectAllChange($event)\" />\n }\n </th>\n }\n\n @if (hasExpander()) {\n <th scope=\"col\" class=\"ith-table-expander-cell\" [attr.aria-label]=\"'Row details'\"></th>\n }\n\n @for (column of visibleColumns(); track column.key) {\n <th\n scope=\"col\"\n class=\"ith-table-th\"\n [ngClass]=\"headerClasses(column)\"\n [style]=\"columnStyle(column)\"\n [attr.data-col]=\"column.key\"\n [attr.aria-sort]=\"isSortable(column) ? ariaSort(column) : null\"\n [attr.draggable]=\"reorderable() ? 'true' : null\"\n [class.ith-table-th-dragging]=\"dragKey() === column.key\"\n (dragstart)=\"onHeaderDragStart(column, $event)\"\n (dragover)=\"onHeaderDragOver(column, $event)\"\n (drop)=\"onHeaderDrop(column, $event)\"\n (dragend)=\"onHeaderDragEnd()\">\n <div class=\"ith-table-th-inner\">\n @if (headerTemplate(column); as headerTpl) {\n <ng-container\n [ngTemplateOutlet]=\"headerTpl\"\n [ngTemplateOutletContext]=\"{ $implicit: column, column: column }\" />\n } @else if (isSortable(column)) {\n <button\n type=\"button\"\n class=\"ith-table-sort\"\n [class.is-sorted]=\"!!sortDirection(column)\"\n (click)=\"toggleSort(column)\"\n [attr.aria-label]=\"'Sort by ' + (column.header ?? column.key)\">\n <span class=\"ith-table-th-label\">{{ column.header ?? column.key }}</span>\n <span class=\"ith-table-sort-icons\" aria-hidden=\"true\">\n <svg viewBox=\"0 0 10 6\" class=\"ith-table-sort-up\" [class.is-active]=\"sortDirection(column) === 'asc'\"><path d=\"M5 0l5 6H0z\" /></svg>\n <svg viewBox=\"0 0 10 6\" class=\"ith-table-sort-down\" [class.is-active]=\"sortDirection(column) === 'desc'\"><path d=\"M5 6L0 0h10z\" /></svg>\n </span>\n </button>\n } @else {\n <span class=\"ith-table-th-label\">{{ column.header ?? column.key }}</span>\n }\n\n @if (showColumnMenu()) {\n <button\n type=\"button\"\n class=\"ith-table-th-menu\"\n [attr.aria-expanded]=\"columnMenu()?.key === column.key\"\n [attr.aria-label]=\"'Column options for ' + (column.header ?? column.key)\"\n (click)=\"openColumnMenu(column, $event)\">\n <svg viewBox=\"0 0 24 24\" fill=\"currentColor\" aria-hidden=\"true\">\n <circle cx=\"12\" cy=\"5\" r=\"1.7\" />\n <circle cx=\"12\" cy=\"12\" r=\"1.7\" />\n <circle cx=\"12\" cy=\"19\" r=\"1.7\" />\n </svg>\n </button>\n }\n\n @if (pinOf(column) === 'start') {\n <span class=\"ith-table-pin-dot\" aria-hidden=\"true\"></span>\n }\n </div>\n\n @if (resizable()) {\n <span\n class=\"ith-table-resizer\"\n role=\"separator\"\n aria-orientation=\"vertical\"\n [attr.aria-label]=\"'Resize ' + (column.header ?? column.key)\"\n (pointerdown)=\"startResize(column, $event)\"></span>\n }\n </th>\n }\n\n @if (hasActionsColumn()) {\n <th\n scope=\"col\"\n class=\"ith-table-th ith-table-actions-head\"\n [class.ith-table-sticky-end]=\"stickyActions()\"\n [style.width]=\"actionsWidth()\"\n [style.right]=\"stickyActions() ? '0px' : null\">\n {{ actionsHeader() }}\n </th>\n }\n </tr>\n\n @if (showFilters()) {\n <tr class=\"ith-table-filter-row\">\n @if (selectable()) {\n <th\n class=\"ith-table-select-cell\"\n [class.ith-table-sticky-start]=\"stickySelection()\"\n [style.left]=\"stickySelection() ? '0px' : null\"></th>\n }\n @if (hasExpander()) {\n <th class=\"ith-table-expander-cell\"></th>\n }\n @for (column of visibleColumns(); track column.key) {\n <th\n class=\"ith-table-filter-cell\"\n [ngClass]=\"filterClasses(column)\"\n [style]=\"columnStyle(column)\">\n @if (filterTemplate(column); as filterTpl) {\n <ng-container\n [ngTemplateOutlet]=\"filterTpl\"\n [ngTemplateOutletContext]=\"filterContext(column)\" />\n } @else if (column.filterable !== false) {\n @switch (filterTypeFor(column)) {\n @case ('select') {\n <select\n class=\"ith-table-filter-input ith-table-filter-select\"\n [value]=\"filterValue(column.key)\"\n [attr.aria-label]=\"'Filter by ' + (column.header ?? column.key)\"\n (change)=\"onFilterInput(column.key, $any($event.target).value)\">\n <option value=\"\">{{ filterAllLabel() }}</option>\n @for (option of filterOptionsFor(column); track option.value) {\n <option [value]=\"option.value\">{{ option.label }}</option>\n }\n </select>\n }\n @case ('number') {\n <input\n type=\"number\"\n class=\"ith-table-filter-input\"\n [value]=\"filterValue(column.key)\"\n [attr.placeholder]=\"filterPlaceholderFor(column)\"\n [attr.aria-label]=\"'Filter by ' + (column.header ?? column.key)\"\n (input)=\"onFilterInput(column.key, $any($event.target).value)\" />\n }\n @case ('date') {\n <input\n type=\"date\"\n class=\"ith-table-filter-input\"\n [value]=\"filterValue(column.key)\"\n [attr.aria-label]=\"'Filter by ' + (column.header ?? column.key)\"\n (input)=\"onFilterInput(column.key, $any($event.target).value)\" />\n }\n @default {\n <input\n type=\"text\"\n class=\"ith-table-filter-input\"\n [value]=\"filterValue(column.key)\"\n [attr.placeholder]=\"filterPlaceholderFor(column)\"\n [attr.aria-label]=\"'Filter by ' + (column.header ?? column.key)\"\n (input)=\"onFilterInput(column.key, $any($event.target).value)\" />\n }\n }\n }\n </th>\n }\n @if (hasActionsColumn()) {\n <th\n class=\"ith-table-filter-cell\"\n [class.ith-table-sticky-end]=\"stickyActions()\"\n [style.right]=\"stickyActions() ? '0px' : null\"></th>\n }\n </tr>\n }\n </thead>\n\n <tbody>\n @if (loading() && pagedRows().length === 0) {\n @for (skeleton of skeletonIndexes(); track skeleton) {\n <tr class=\"ith-table-skeleton-row\" aria-hidden=\"true\">\n @if (selectable()) {\n <td\n class=\"ith-table-select-cell\"\n [class.ith-table-sticky-start]=\"stickySelection()\"\n [style.left]=\"stickySelection() ? '0px' : null\">\n <span class=\"ith-table-skeleton is-check\"></span>\n </td>\n }\n @if (hasExpander()) {\n <td class=\"ith-table-expander-cell\"></td>\n }\n @for (column of visibleColumns(); track column.key) {\n <td class=\"ith-table-td\">\n <span class=\"ith-table-skeleton\"></span>\n </td>\n }\n @if (hasActionsColumn()) {\n <td class=\"ith-table-actions-cell\"><span class=\"ith-table-skeleton\"></span></td>\n }\n </tr>\n }\n <tr>\n <td class=\"ith-table-visually-hidden\" [attr.colspan]=\"emptyColspan()\" aria-live=\"polite\">\n {{ loadingText() }}\n </td>\n </tr>\n } @else if (pagedRows().length === 0) {\n <tr>\n <td class=\"ith-table-status\" [attr.colspan]=\"emptyColspan()\">\n @if (emptyTemplate(); as emptyTpl) {\n <ng-container\n [ngTemplateOutlet]=\"emptyTpl\"\n [ngTemplateOutletContext]=\"emptyContext()\" />\n } @else {\n <div class=\"ith-table-empty\">\n <svg viewBox=\"0 0 24 24\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"1.5\" stroke-linecap=\"round\" aria-hidden=\"true\">\n <rect x=\"3\" y=\"5\" width=\"18\" height=\"14\" rx=\"2\" />\n <path d=\"M3 10h18M9 10v9\" />\n </svg>\n <span>{{ hasQuery() ? 'No records match your search.' : emptyText() }}</span>\n @if (hasQuery()) {\n <button type=\"button\" class=\"ith-table-link\" (click)=\"clearQuery()\">Clear search &amp; filters</button>\n }\n </div>\n }\n </td>\n </tr>\n } @else {\n @for (row of pagedRows(); track trackRow($index, row); let rowIndex = $index) {\n <tr\n class=\"ith-table-row\"\n [ngClass]=\"rowClassFor(row, $index)\"\n [class.ith-table-row-clickable]=\"rowClickable() || selectOnRowClick() || (hasRowDetail() && rowDetailTrigger() === 'row')\"\n [attr.tabindex]=\"rowClickable() || selectOnRowClick() ? 0 : null\"\n [attr.aria-selected]=\"selectable() ? isSelected(row) : null\"\n [attr.aria-expanded]=\"hasRowDetail() ? isRowExpanded(row) : null\"\n (click)=\"onRowClick(row, $index, $event)\"\n (keydown)=\"onRowKeydown(row, $index, $event)\"\n (contextmenu)=\"onRowContextMenu(row, $index, $event)\">\n @if (selectable()) {\n <td\n class=\"ith-table-select-cell\"\n [class.ith-table-sticky-start]=\"stickySelection()\"\n [style.left]=\"stickySelection() ? '0px' : null\">\n <input\n type=\"checkbox\"\n class=\"ith-table-checkbox\"\n [checked]=\"isSelected(row)\"\n [attr.aria-label]=\"'Select row ' + ($index + 1)\"\n (click)=\"$event.stopPropagation()\"\n (change)=\"onRowCheckboxChange(row, $event)\" />\n </td>\n }\n\n @if (hasExpander()) {\n <td class=\"ith-table-expander-cell\">\n <button\n type=\"button\"\n class=\"ith-table-expander\"\n [class.is-open]=\"isRowExpanded(row)\"\n [attr.aria-expanded]=\"isRowExpanded(row)\"\n [attr.aria-label]=\"'Toggle details for row ' + ($index + 1)\"\n (click)=\"toggleRowDetail(row, $event)\">\n <svg viewBox=\"0 0 24 24\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"2\" stroke-linecap=\"round\" stroke-linejoin=\"round\" aria-hidden=\"true\">\n <path d=\"m9 6 6 6-6 6\" />\n </svg>\n </button>\n </td>\n }\n\n @for (column of visibleColumns(); track column.key; let colIndex = $index) {\n <td\n class=\"ith-table-td\"\n [class.ith-table-copyable]=\"copyable()\"\n [ngClass]=\"cellClasses(row, column, rowIndex)\"\n [style]=\"columnStyle(column)\"\n [attr.title]=\"tooltipText(row, column, rowIndex)\"\n [attr.data-cell]=\"rowIndex + '-' + colIndex\"\n [attr.data-col]=\"column.key\"\n [attr.tabindex]=\"cellTabIndex(rowIndex, colIndex)\"\n (focus)=\"onCellFocus(rowIndex, colIndex)\"\n (keydown)=\"onCellKeydown(column, rowIndex, colIndex, $event)\">\n @if (cellTemplate(column); as cellTpl) {\n <ng-container\n [ngTemplateOutlet]=\"cellTpl\"\n [ngTemplateOutletContext]=\"cellContext(row, column, rowIndex)\" />\n } @else {\n {{ cellText(row, column, rowIndex) }}\n }\n @if (copyable()) {\n <button\n type=\"button\"\n class=\"ith-table-copy\"\n [class.is-copied]=\"isCellCopied(rowIndex, column)\"\n [attr.aria-label]=\"'Copy ' + (column.header ?? column.key)\"\n (click)=\"copyCell(row, column, rowIndex, $event)\">\n @if (isCellCopied(rowIndex, column)) {\n <svg viewBox=\"0 0 24 24\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"2\" stroke-linecap=\"round\" stroke-linejoin=\"round\" aria-hidden=\"true\"><path d=\"m5 13 4 4L19 7\" /></svg>\n } @else {\n <svg viewBox=\"0 0 24 24\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"1.8\" stroke-linecap=\"round\" stroke-linejoin=\"round\" aria-hidden=\"true\"><rect x=\"9\" y=\"9\" width=\"11\" height=\"11\" rx=\"2\" /><path d=\"M15 5.5A2.5 2.5 0 0 0 12.5 3H6a2 2 0 0 0-2 2v7.5A2.5 2.5 0 0 0 6.5 15\" /></svg>\n }\n </button>\n }\n </td>\n }\n\n @if (hasActionsColumn()) {\n <td\n class=\"ith-table-actions-cell\"\n [class.ith-table-sticky-end]=\"stickyActions()\"\n [style.right]=\"stickyActions() ? '0px' : null\">\n @if (rowActionsTemplate(); as actionsTpl) {\n <ng-container\n [ngTemplateOutlet]=\"actionsTpl\"\n [ngTemplateOutletContext]=\"{ $implicit: row, row: row, index: $index }\" />\n } @else {\n @for (action of rowActions(); track action.id) {\n @if (isActionVisible(action, row, $index)) {\n <button\n type=\"button\"\n class=\"ith-table-action\"\n [ngClass]=\"action.class ?? ''\"\n [attr.title]=\"action.title ?? action.label\"\n [disabled]=\"isActionDisabled(action, row, $index)\"\n (click)=\"onActionClick(action, row, $index, $event)\">\n @if (action.icon) {\n <span class=\"ith-table-action-icon\" aria-hidden=\"true\">{{ action.icon }}</span>\n }\n <span>{{ action.label }}</span>\n </button>\n }\n }\n }\n </td>\n }\n </tr>\n\n @if (hasRowDetail() && isRowExpanded(row)) {\n <tr class=\"ith-table-detail-row\">\n <td [attr.colspan]=\"emptyColspan()\">\n @if (rowDetailTemplate(); as detailTpl) {\n <ng-container\n [ngTemplateOutlet]=\"detailTpl\"\n [ngTemplateOutletContext]=\"rowDetailContext(row, rowIndex)\" />\n }\n </td>\n </tr>\n }\n }\n }\n </tbody>\n\n @if (hasAggregates() && pagedRows().length > 0) {\n <tfoot>\n <tr class=\"ith-table-total-row\">\n @if (selectable()) {\n <td\n class=\"ith-table-select-cell\"\n [class.ith-table-sticky-start]=\"stickySelection()\"\n [style.left]=\"stickySelection() ? '0px' : null\"></td>\n }\n @if (hasExpander()) {\n <td class=\"ith-table-expander-cell\"></td>\n }\n @for (column of visibleColumns(); track column.key) {\n <td\n class=\"ith-table-total-cell\"\n [ngClass]=\"stickyClassFor(column)\"\n [style]=\"columnStyle(column)\">\n @if (column.aggregate) {\n <span class=\"ith-table-total-label\">{{ aggregateLabel(column) }}</span>\n <span class=\"ith-table-total-value\">{{ aggregateText(column) }}</span>\n }\n </td>\n }\n @if (hasActionsColumn()) {\n <td\n class=\"ith-table-total-cell ith-table-actions-cell\"\n [class.ith-table-sticky-end]=\"stickyActions()\"\n [style.right]=\"stickyActions() ? '0px' : null\"></td>\n }\n </tr>\n </tfoot>\n }\n </table>\n\n @if (loading() && pagedRows().length > 0) {\n <div class=\"ith-table-loading-overlay\">\n <span class=\"ith-table-spinner\" aria-hidden=\"true\"></span>\n <span>{{ loadingText() }}</span>\n </div>\n }\n </div>\n\n <!-- Columns popover (fixed, so the toolbar's scroll box cannot clip it) -->\n @if (columnPickerOpen()) {\n <div\n class=\"ith-table-popover\"\n role=\"dialog\"\n aria-label=\"Visible columns\"\n [style.left.px]=\"columnsMenuPos()?.x ?? 0\"\n [style.top.px]=\"columnsMenuPos()?.y ?? 0\"\n (click)=\"$event.stopPropagation()\">\n <div class=\"ith-table-popover-header\">Show columns</div>\n <div class=\"ith-table-popover-list\">\n @for (column of orderedColumns(); track column.key) {\n <label class=\"ith-table-columns-item\">\n <input\n type=\"checkbox\"\n class=\"ith-table-checkbox\"\n [checked]=\"isColumnVisible(column)\"\n [disabled]=\"!isColumnVisible(column) && !canHide(column.key)\"\n (change)=\"setColumnVisible(column.key, $any($event.target).checked)\" />\n <span>{{ column.header ?? column.key }}</span>\n @if (pinOf(column)) {\n <span class=\"ith-table-pin-tag\">{{ pinOf(column) }}</span>\n }\n </label>\n }\n </div>\n <div class=\"ith-table-popover-footer\">\n <button type=\"button\" class=\"ith-table-popover-action\" (click)=\"resetColumns()\">\n Reset columns\n </button>\n </div>\n </div>\n }\n\n <!-- Export formats -->\n @if (exportMenuPos(); as pos) {\n <div\n class=\"ith-table-popover ith-table-export-menu\"\n role=\"menu\"\n aria-label=\"Export format\"\n [style.left.px]=\"pos.x\"\n [style.top.px]=\"pos.y\"\n (click)=\"$event.stopPropagation()\">\n <button type=\"button\" class=\"ith-table-menu-item\" role=\"menuitem\" (click)=\"exportAs('xlsx')\">\n <span class=\"ith-table-export-name\">Excel</span>\n <span class=\"ith-table-export-hint\">.xlsx \u2014 Excel, Numbers, Sheets</span>\n </button>\n <button type=\"button\" class=\"ith-table-menu-item\" role=\"menuitem\" (click)=\"exportAs('csv')\">\n <span class=\"ith-table-export-name\">CSV</span>\n <span class=\"ith-table-export-hint\">.csv \u2014 plain text, any tool</span>\n </button>\n </div>\n }\n\n <!-- Named views -->\n @if (viewsOpen()) {\n <div\n class=\"ith-table-popover\"\n role=\"dialog\"\n aria-label=\"Saved views\"\n [style.left.px]=\"viewsMenuPos()?.x ?? 0\"\n [style.top.px]=\"viewsMenuPos()?.y ?? 0\"\n (click)=\"$event.stopPropagation()\">\n <div class=\"ith-table-popover-header\">Saved views</div>\n <div class=\"ith-table-popover-list\">\n @for (name of savedViewNames(); track name) {\n <div class=\"ith-table-view-item\" [class.is-active]=\"activeView() === name\">\n <button type=\"button\" class=\"ith-table-view-apply\" (click)=\"applyView(name)\">\n {{ name }}\n </button>\n <button\n type=\"button\"\n class=\"ith-table-view-delete\"\n [attr.aria-label]=\"'Delete view ' + name\"\n (click)=\"deleteView(name, $event)\">\n <svg viewBox=\"0 0 24 24\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"2\" stroke-linecap=\"round\" aria-hidden=\"true\">\n <path d=\"M6 6l12 12M18 6 6 18\" />\n </svg>\n </button>\n </div>\n } @empty {\n <p class=\"ith-table-popover-empty\">No saved views yet.</p>\n }\n </div>\n <div class=\"ith-table-popover-footer ith-table-view-save\">\n <input\n type=\"text\"\n class=\"ith-table-view-input\"\n placeholder=\"View name\"\n aria-label=\"New view name\"\n [value]=\"viewNameDraft()\"\n (input)=\"onViewNameInput($any($event.target).value)\"\n (keydown.enter)=\"saveView()\" />\n <button type=\"button\" class=\"ith-table-popover-action\" (click)=\"saveView()\">Save</button>\n </div>\n </div>\n }\n\n <!-- Column header menu -->\n @if (columnMenu(); as menu) {\n <div\n class=\"ith-table-popover ith-table-column-menu\"\n role=\"menu\"\n [style.left.px]=\"menu.x\"\n [style.top.px]=\"menu.y\"\n (click)=\"$event.stopPropagation()\">\n @if (columnMenuColumn(); as column) {\n @if (isSortable(column)) {\n <button type=\"button\" class=\"ith-table-menu-item\" role=\"menuitem\" (click)=\"menuSort('asc')\">\n Sort ascending\n </button>\n <button type=\"button\" class=\"ith-table-menu-item\" role=\"menuitem\" (click)=\"menuSort('desc')\">\n Sort descending\n </button>\n @if (sortDirection(column)) {\n <button type=\"button\" class=\"ith-table-menu-item\" role=\"menuitem\" (click)=\"menuClearSort()\">\n Clear sort\n </button>\n }\n <div class=\"ith-table-menu-divider\"></div>\n }\n @if (canPin(column)) {\n @if (pinOf(column) !== 'start') {\n <button type=\"button\" class=\"ith-table-menu-item\" role=\"menuitem\" (click)=\"menuPin('start')\">\n Pin to left\n </button>\n }\n @if (pinOf(column) !== 'end') {\n <button type=\"button\" class=\"ith-table-menu-item\" role=\"menuitem\" (click)=\"menuPin('end')\">\n Pin to right\n </button>\n }\n @if (pinOf(column)) {\n <button type=\"button\" class=\"ith-table-menu-item\" role=\"menuitem\" (click)=\"menuPin(null)\">\n Unpin column\n </button>\n }\n <div class=\"ith-table-menu-divider\"></div>\n }\n <button type=\"button\" class=\"ith-table-menu-item\" role=\"menuitem\" (click)=\"menuAutosize()\">\n Fit to content\n </button>\n @if (canHide(column.key)) {\n <button type=\"button\" class=\"ith-table-menu-item\" role=\"menuitem\" (click)=\"menuHide()\">\n Hide column\n </button>\n }\n }\n </div>\n }\n\n <!-- Right-click menu (projected template, positioned at the pointer) -->\n @if (menuState(); as menu) {\n <div\n class=\"ith-table-menu\"\n role=\"menu\"\n [style.left.px]=\"menu.x\"\n [style.top.px]=\"menu.y\"\n (click)=\"closeRowMenu(); $event.stopPropagation()\">\n @if (rowMenuTemplate(); as menuTpl) {\n <ng-container\n [ngTemplateOutlet]=\"menuTpl\"\n [ngTemplateOutletContext]=\"{ $implicit: menu.row, row: menu.row, index: menu.index }\" />\n }\n </div>\n }\n\n <!-- Footer -->\n @if (showFooter()) {\n <div class=\"ith-table-footer\">\n <div class=\"ith-table-footer-info\">\n @if (footerTemplate(); as footerTpl) {\n <ng-container\n [ngTemplateOutlet]=\"footerTpl\"\n [ngTemplateOutletContext]=\"footerContext()\" />\n } @else {\n <span>\n Showing <strong>{{ rangeStart() }}</strong>\u2013<strong>{{ rangeEnd() }}</strong>\n of <strong>{{ totalRows() }}</strong>\n </span>\n <span class=\"ith-table-total\">{{ totalLabel() }}: <strong>{{ totalRows() }}</strong></span>\n }\n </div>\n\n <div class=\"ith-table-footer-controls\">\n @if (showPagination()) {\n <nav class=\"ith-table-pagination\" aria-label=\"Pagination\">\n @if (showFirstLast()) {\n <button type=\"button\" class=\"ith-table-page-btn\" (click)=\"firstPage()\" [disabled]=\"page() === 1\" aria-label=\"First page\">\n <svg viewBox=\"0 0 24 24\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"2\" stroke-linecap=\"round\" stroke-linejoin=\"round\" aria-hidden=\"true\"><path d=\"m11 17-5-5 5-5M18 17l-5-5 5-5\" /></svg>\n </button>\n }\n <button type=\"button\" class=\"ith-table-page-btn\" (click)=\"previousPage()\" [disabled]=\"page() === 1\" aria-label=\"Previous page\">\n <svg viewBox=\"0 0 24 24\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"2\" stroke-linecap=\"round\" stroke-linejoin=\"round\" aria-hidden=\"true\"><path d=\"m15 18-6-6 6-6\" /></svg>\n </button>\n\n @for (item of pageItems(); track item) {\n <button\n type=\"button\"\n class=\"ith-table-page-btn ith-table-page-number\"\n [class.is-active]=\"item === page()\"\n [attr.aria-current]=\"item === page() ? 'page' : null\"\n (click)=\"goToPage(item)\">\n {{ item }}\n </button>\n }\n\n <button type=\"button\" class=\"ith-table-page-btn\" (click)=\"nextPage()\" [disabled]=\"page() === pageCount()\" aria-label=\"Next page\">\n <svg viewBox=\"0 0 24 24\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"2\" stroke-linecap=\"round\" stroke-linejoin=\"round\" aria-hidden=\"true\"><path d=\"m9 18 6-6-6-6\" /></svg>\n </button>\n @if (showFirstLast()) {\n <button type=\"button\" class=\"ith-table-page-btn\" (click)=\"lastPage()\" [disabled]=\"page() === pageCount()\" aria-label=\"Last page\">\n <svg viewBox=\"0 0 24 24\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"2\" stroke-linecap=\"round\" stroke-linejoin=\"round\" aria-hidden=\"true\"><path d=\"m13 17 5-5-5-5M6 17l5-5-5-5\" /></svg>\n </button>\n }\n <span class=\"ith-table-page-state\">Page {{ page() }} / {{ pageCount() }}</span>\n </nav>\n }\n\n @if (showPageSize()) {\n <label class=\"ith-table-page-size\">\n <span>Rows:</span>\n <select class=\"ith-table-select\" [value]=\"pageSize()\" (change)=\"onPageSizeChange($any($event.target).value)\">\n @for (size of pageSizeChoices(); track size) {\n <option [value]=\"size\">{{ size }}</option>\n }\n </select>\n </label>\n }\n </div>\n </div>\n }\n</div>\n", styles: [":host{display:block;--_brand: var(--ith-table-brand, #5b21b6);--_bg: var(--ith-table-bg, #ffffff);--_text: var(--ith-table-text, #1f2937);--_muted: var(--ith-table-muted, #6b7280);--_border: var(--ith-table-border, #e8eaf0);--_header-bg: var(--ith-table-header-bg, var(--_brand));--_header-text: var(--ith-table-header-text, #ffffff);--_hover: var(--ith-table-hover, color-mix(in srgb, var(--_brand) 6%, #ffffff));--_selected-bg: var(--ith-table-selected-bg, color-mix(in srgb, var(--_brand) 10%, #ffffff));--_striped-bg: var(--ith-table-striped-bg, color-mix(in srgb, var(--_brand) 2%, #ffffff));--_accent: var(--ith-table-accent, var(--_brand));--_accent-soft: var(--ith-table-accent-soft, color-mix(in srgb, var(--_brand) 12%, #ffffff));--_input-bg: var(--ith-table-input-bg, #ffffff);--_input-border: var(--ith-table-input-border, #dfe3ec);--_footer-bg: var(--ith-table-footer-bg, color-mix(in srgb, var(--_brand) 2%, #ffffff));--_filter-bg: var(--ith-table-filter-bg, color-mix(in srgb, var(--_brand) 3%, #ffffff));--_overlay: var(--ith-table-overlay, rgba(255, 255, 255, .72));--_radius: var(--ith-table-radius, 14px);--_shadow: var(--ith-table-shadow, 0 18px 40px -28px rgba(24, 20, 60, .55));--_focus: var(--ith-table-focus, color-mix(in srgb, var(--_brand) 25%, transparent));--_cell-padding: var(--ith-table-cell-padding, 12px 16px);--_font-size: var(--ith-table-font-size, 14px);--_header-font-size: var(--ith-table-header-font-size, 13px);--_row-height: var(--ith-table-row-height, 46px);--_head-height: var(--ith-table-head-height, 45px);--_filter-height: 47px;--_on-accent: #ffffff;--_toolbar-tint: color-mix(in srgb, var(--_brand) 3%, var(--_bg));--_popover-bg: var(--_bg);--_scroll-thumb: color-mix(in srgb, var(--_muted) 38%, transparent);--_danger: #dc2626;--_elevation: 0 18px 40px -18px rgba(17, 12, 46, .35), 0 0 0 1px color-mix(in srgb, var(--_border) 60%, transparent)}:host-context([data-theme=\"dark\"]),:host-context(.dark){--_brand: var(--ith-table-brand, #7c3aed);--_bg: var(--ith-table-bg, #161826);--_text: var(--ith-table-text, #e7e9f3);--_muted: var(--ith-table-muted, #9aa0b5);--_border: var(--ith-table-border, #2f3348);--_header-bg: var(--ith-table-header-bg, color-mix(in srgb, var(--_brand) 34%, #0b0d16));--_header-text: var(--ith-table-header-text, #f3eeff);--_hover: var(--ith-table-hover, color-mix(in srgb, var(--_brand) 15%, #161826));--_selected-bg: var(--ith-table-selected-bg, color-mix(in srgb, var(--_brand) 20%, #161826));--_striped-bg: var(--ith-table-striped-bg, color-mix(in srgb, var(--_brand) 6%, #161826));--_accent: var(--ith-table-accent, color-mix(in srgb, var(--_brand) 55%, #ffffff));--_accent-soft: var(--ith-table-accent-soft, color-mix(in srgb, var(--_brand) 26%, #161826));--_input-bg: var(--ith-table-input-bg, #202436);--_input-border: var(--ith-table-input-border, #343a52);--_footer-bg: var(--ith-table-footer-bg, color-mix(in srgb, var(--_brand) 4%, #12141f));--_filter-bg: var(--ith-table-filter-bg, color-mix(in srgb, var(--_brand) 9%, #161826));--_overlay: var(--ith-table-overlay, rgba(17, 19, 30, .72));--_shadow: var(--ith-table-shadow, 0 18px 40px -28px rgba(0, 0, 0, .85));--_focus: var(--ith-table-focus, color-mix(in srgb, var(--_brand) 38%, transparent));--_on-accent: #15121f;--_toolbar-tint: color-mix(in srgb, var(--_brand) 12%, var(--_bg));--_popover-bg: #1d2133;--_scroll-thumb: color-mix(in srgb, #ffffff 22%, transparent);--_danger: #f87171;--_elevation: 0 22px 48px -20px rgba(0, 0, 0, .8), 0 0 0 1px color-mix(in srgb, #ffffff 8%, transparent)}@media(prefers-color-scheme:dark){:host-context([data-theme=\"auto\"]){--_brand: var(--ith-table-brand, #7c3aed);--_bg: var(--ith-table-bg, #161826);--_text: var(--ith-table-text, #e7e9f3);--_muted: var(--ith-table-muted, #9aa0b5);--_border: var(--ith-table-border, #2f3348);--_header-bg: var(--ith-table-header-bg, color-mix(in srgb, var(--_brand) 34%, #0b0d16));--_header-text: var(--ith-table-header-text, #f3eeff);--_hover: var(--ith-table-hover, color-mix(in srgb, var(--_brand) 15%, #161826));--_selected-bg: var(--ith-table-selected-bg, color-mix(in srgb, var(--_brand) 20%, #161826));--_striped-bg: var(--ith-table-striped-bg, color-mix(in srgb, var(--_brand) 6%, #161826));--_accent: var(--ith-table-accent, color-mix(in srgb, var(--_brand) 55%, #ffffff));--_accent-soft: var(--ith-table-accent-soft, color-mix(in srgb, var(--_brand) 26%, #161826));--_input-bg: var(--ith-table-input-bg, #202436);--_input-border: var(--ith-table-input-border, #343a52);--_footer-bg: var(--ith-table-footer-bg, color-mix(in srgb, var(--_brand) 4%, #12141f));--_filter-bg: var(--ith-table-filter-bg, color-mix(in srgb, var(--_brand) 9%, #161826));--_overlay: var(--ith-table-overlay, rgba(17, 19, 30, .72));--_shadow: var(--ith-table-shadow, 0 18px 40px -28px rgba(0, 0, 0, .85));--_focus: var(--ith-table-focus, color-mix(in srgb, var(--_brand) 38%, transparent));--_on-accent: #15121f;--_toolbar-tint: color-mix(in srgb, var(--_brand) 12%, var(--_bg));--_popover-bg: #1d2133;--_scroll-thumb: color-mix(in srgb, #ffffff 22%, transparent);--_danger: #f87171;--_elevation: 0 22px 48px -20px rgba(0, 0, 0, .8), 0 0 0 1px color-mix(in srgb, #ffffff 8%, transparent)}}.ith-table{display:block;position:relative;background:var(--_bg);color:var(--_text);border:1px solid var(--_border);border-radius:var(--_radius);box-shadow:var(--_shadow);font-family:-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Oxygen,Ubuntu,Cantarell,Fira Sans,Droid Sans,Helvetica Neue,sans-serif;font-size:var(--_font-size);overflow:hidden}.ith-table-toolbar{padding:14px 16px;border-bottom:1px solid var(--_border);background:var(--_toolbar-tint)}.ith-table-toolbar-inner{display:flex;align-items:center;gap:12px;flex-wrap:nowrap;min-width:0;overflow-x:auto;scrollbar-width:none}.ith-table-toolbar-inner::-webkit-scrollbar{display:none}.ith-table-toolbar-main{display:flex;align-items:center;gap:10px;flex-wrap:nowrap;min-width:0;flex:0 0 auto}.ith-table-toolbar-spacer{flex:1 1 auto;min-width:8px}.ith-table-title{margin:0;font-size:15.5px;font-weight:650;letter-spacing:-.015em;color:var(--_text);white-space:nowrap}.ith-table-badge{display:inline-flex;align-items:center;padding:3px 10px;border-radius:999px;background:var(--_accent-soft);color:var(--_accent);font-size:11.5px;font-weight:600;line-height:1.4;white-space:nowrap}.ith-table-badge-accent{background:var(--_accent);color:var(--_on-accent);box-shadow:0 0 0 1px color-mix(in srgb,var(--_accent) 30%,transparent)}.ith-table-search{position:relative;flex:0 1 260px;min-width:180px}.ith-table-search-icon{position:absolute;left:12px;top:50%;width:15px;height:15px;transform:translateY(-50%);color:var(--_muted);pointer-events:none}.ith-table-search-input{width:100%;box-sizing:border-box;height:36px;padding:0 34px 0 36px;border:1px solid var(--_input-border);border-radius:10px;background:var(--_input-bg);color:var(--_text);font-size:13px;font-family:inherit;transition:border-color .15s ease,box-shadow .15s ease,background-color .15s ease}.ith-table-search-input:hover{border-color:color-mix(in srgb,var(--_accent) 35%,var(--_input-border))}.ith-table-search-input::placeholder{color:var(--_muted)}.ith-table-search-input::-webkit-search-cancel-button,.ith-table-search-input::-webkit-search-decoration,.ith-table-search-input::-webkit-search-results-button,.ith-table-search-input::-webkit-search-results-decoration{-webkit-appearance:none;appearance:none;display:none}.ith-table-search-input:focus{outline:none;border-color:var(--_accent);box-shadow:0 0 0 3px var(--_focus);background:var(--_bg)}.ith-table-search-clear{position:absolute;right:6px;top:50%;transform:translateY(-50%);width:24px;height:24px;display:grid;place-items:center;border:0;border-radius:7px;background:transparent;color:var(--_muted);cursor:pointer;transition:background-color .12s ease,color .12s ease}.ith-table-search-clear svg{width:14px;height:14px}.ith-table-search-clear:hover{background:var(--_accent-soft);color:var(--_accent)}.ith-table-scroll{position:relative;overflow:auto;scrollbar-width:thin;scrollbar-color:var(--_scroll-thumb) transparent}.ith-table-scroll::-webkit-scrollbar{width:10px;height:10px}.ith-table-scroll::-webkit-scrollbar-track{background:transparent}.ith-table-scroll::-webkit-scrollbar-thumb{border:3px solid transparent;border-radius:999px;background-color:var(--_scroll-thumb);background-clip:content-box}.ith-table-scroll::-webkit-scrollbar-thumb:hover{background-color:color-mix(in srgb,var(--_scroll-thumb) 75%,var(--_text))}.ith-table-scroll:not(.ith-table-scroll-bounded){min-height:calc(var(--_head-height) + var(--_row-height) * var(--_min-rows, 4))}.ith-table-scroll:not(.ith-table-scroll-bounded).ith-table-scroll-filtered{min-height:calc(var(--_head-height) + var(--_filter-height) + var(--_row-height) * var(--_min-rows, 4))}.ith-table-grid{width:100%;border-collapse:separate;border-spacing:0;table-layout:auto}.ith-table-head-row th{background:var(--_header-bg);color:var(--_header-text);font-size:var(--_header-font-size);font-weight:600;letter-spacing:.01em;text-align:left;padding:13px 16px;white-space:nowrap;border:0}.ith-table-sticky .ith-table-head-row th{position:sticky;top:0;z-index:2}.ith-table-th-label{display:inline-block}.ith-table-sort{display:inline-flex;align-items:center;justify-content:flex-start;gap:8px;width:100%;padding:0;border:0;background:transparent;color:inherit;font:inherit;letter-spacing:inherit;cursor:pointer;text-align:inherit}.ith-table-sort-icons{display:inline-flex;flex-direction:column;gap:2px;opacity:.5}.ith-table-sort-icons svg{width:8px;height:5px;fill:currentColor;opacity:.5;transition:opacity .15s ease}.ith-table-sort-icons svg.is-active{opacity:1}.ith-table-sort.is-sorted .ith-table-sort-icons{opacity:1}.ith-table-select-cell{width:46px;text-align:center;padding-left:14px;padding-right:10px}.ith-table-checkbox{width:16px;height:16px;margin:0;cursor:pointer;accent-color:var(--_accent);vertical-align:middle}.ith-table-checkbox:focus-visible{outline:2px solid var(--_accent);outline-offset:2px}.ith-table-row{background:var(--_bg);transition:background-color .15s ease}.ith-table-hoverable .ith-table-row:hover{background:var(--_hover)}.ith-table-row.ith-table-row-selected{background:var(--_selected-bg)}.ith-table-row.ith-table-row-selected td:first-child{box-shadow:inset 3px 0 0 var(--_accent)}.ith-table-row-clickable{cursor:pointer}.ith-table-td{padding:var(--_cell-padding);border-bottom:1px solid var(--_border);font-size:var(--_font-size);color:var(--_text);vertical-align:middle;white-space:nowrap;background:transparent}.ith-table-row:last-child .ith-table-td{border-bottom:0}.ith-table-align-left{text-align:left}.ith-table-align-center{text-align:center}.ith-table-align-right,.ith-table-actions-head{text-align:right}.ith-table-actions-cell{padding:var(--_cell-padding);border-bottom:1px solid var(--_border);text-align:right;white-space:nowrap}.ith-table-row:last-child .ith-table-actions-cell{border-bottom:0}.ith-table-action{display:inline-flex;align-items:center;gap:4px;padding:5px 9px;margin-left:4px;border:1px solid var(--_border);border-radius:7px;background:transparent;color:var(--_accent);font-family:inherit;font-size:12px;font-weight:500;line-height:1.2;cursor:pointer;transition:background-color .15s ease,border-color .15s ease}.ith-table-action:hover:not(:disabled){background:var(--_accent-soft);border-color:var(--_accent)}.ith-table-action:disabled{opacity:.45;cursor:not-allowed}.ith-table-action-icon{font-size:12px;line-height:1}.ith-table-action.is-danger{color:var(--_danger);border-color:color-mix(in srgb,var(--_danger) 35%,transparent)}.ith-table-filter-row th{background:var(--_filter-bg);padding:8px 10px;border-bottom:1px solid var(--_border);border-top:1px solid var(--_border)}.ith-table-filter-input{width:100%;box-sizing:border-box;height:30px;padding:0 9px;border:1px solid var(--_input-border);border-radius:7px;background:var(--_input-bg);color:var(--_text);font-family:inherit;font-size:12px}.ith-table-filter-select{cursor:pointer;padding-right:4px}.ith-table-filter-input:focus{outline:none;border-color:var(--_accent);box-shadow:0 0 0 3px var(--_focus)}.ith-table-filter-input::placeholder{color:var(--_muted)}.ith-table-status{padding:40px 16px;text-align:center;color:var(--_muted);font-size:13px}.ith-table-empty{display:flex;flex-direction:column;align-items:center;gap:8px}.ith-table-empty svg{width:36px;height:36px;opacity:.45}.ith-table-spinner{display:inline-block;width:16px;height:16px;border:2px solid var(--_accent-soft);border-top-color:var(--_accent);border-radius:50%;animation:ith-table-spin .7s linear infinite;vertical-align:middle}@keyframes ith-table-spin{to{transform:rotate(360deg)}}.ith-table-loading-overlay{position:absolute;inset:0;display:flex;align-items:center;justify-content:center;gap:8px;background:var(--_overlay);-webkit-backdrop-filter:blur(1px);backdrop-filter:blur(1px);color:var(--_text);font-size:13px;font-weight:500;z-index:3}.ith-table-link{padding:0;border:0;background:none;color:var(--_accent);font-family:inherit;font-size:12px;text-decoration:underline;text-underline-offset:3px;cursor:pointer}.ith-table-footer{display:flex;align-items:center;justify-content:space-between;gap:12px;flex-wrap:wrap;padding:12px 16px;border-top:1px solid var(--_border);background:var(--_footer-bg);font-size:12px;color:var(--_muted)}.ith-table-footer-info{display:flex;align-items:center;gap:16px;flex-wrap:wrap}.ith-table-footer-info strong{color:var(--_text);font-weight:600}.ith-table-footer-controls{display:flex;align-items:center;gap:14px;flex-wrap:wrap}.ith-table-pagination{display:flex;align-items:center;gap:4px}.ith-table-page-btn{display:inline-grid;place-items:center;min-width:30px;height:30px;padding:0 6px;border:1px solid var(--_border);border-radius:7px;background:var(--_bg);color:var(--_text);font-family:inherit;font-size:12px;font-weight:500;cursor:pointer;transition:background-color .15s ease,border-color .15s ease,color .15s ease}.ith-table-page-btn svg{width:14px;height:14px}.ith-table-page-btn:hover:not(:disabled){border-color:var(--_accent);color:var(--_accent);background:var(--_accent-soft)}.ith-table-page-btn:disabled{opacity:.4;cursor:not-allowed}.ith-table-page-number{min-width:30px}.ith-table-page-number.is-active{background:var(--_accent);border-color:var(--_accent);color:var(--_on-accent)}.ith-table-page-number.is-active:hover{background:var(--_accent);color:var(--_on-accent)}.ith-table-page-state{margin-left:6px;white-space:nowrap}.ith-table-page-size{display:inline-flex;align-items:center;gap:6px;white-space:nowrap}.ith-table-select{height:30px;padding:0 6px;border:1px solid var(--_border);border-radius:7px;background:var(--_bg);color:var(--_text);font-family:inherit;font-size:12px;cursor:pointer}.ith-table-select:focus-visible,.ith-table-page-btn:focus-visible,.ith-table-action:focus-visible,.ith-table-link:focus-visible{outline:2px solid var(--_accent);outline-offset:2px}.ith-table-dense{--ith-table-cell-padding: 8px 12px;--ith-table-font-size: 13px;--ith-table-header-font-size: 12px;--_cell-padding: 8px 12px;--_font-size: 13px;--_header-font-size: 12px;--_row-height: 39px;--_head-height: 38px}.ith-table-dense .ith-table-head-row th{padding:10px 12px}.ith-table-striped .ith-table-row:nth-child(2n){background:var(--_striped-bg)}.ith-table-bordered .ith-table-td,.ith-table-bordered .ith-table-actions-cell,.ith-table-bordered .ith-table-head-row th,.ith-table-bordered .ith-table-filter-row th{border-right:1px solid var(--_border)}.ith-table-bordered .ith-table-head-row th:last-child,.ith-table-bordered .ith-table-filter-row th:last-child{border-right:0}.ith-table-bordered .ith-table-td:last-child,.ith-table-bordered .ith-table-actions-cell:last-child{border-right:0}@media(prefers-reduced-motion:reduce){.ith-table-row,.ith-table-action,.ith-table-page-btn,.ith-table-search-input,.ith-table-sort-icons svg{transition:none}.ith-table-spinner{animation-duration:2.4s}}@media(max-width:640px){.ith-table-footer{align-items:stretch;flex-direction:column}.ith-table-toolbar-inner{gap:10px}.ith-table-search{flex:1 1 auto}.ith-table-footer-controls{justify-content:space-between}.ith-table-page-state{display:none}}@media(hover:none){.ith-table-copy,.ith-table-th-menu{opacity:.55}.ith-table-copy:active,.ith-table-th-menu:active{opacity:1}}.ith-table-toolbar-actions{display:flex;align-items:center;gap:10px;flex-wrap:nowrap;flex:0 0 auto}.ith-table-tool-btn{display:inline-flex;align-items:center;gap:7px;height:36px;padding:0 13px;border:1px solid var(--_input-border);border-radius:10px;background:var(--_input-bg);color:var(--_text);font:inherit;font-size:12.5px;font-weight:600;cursor:pointer;white-space:nowrap;transition:border-color .14s ease,background-color .14s ease,color .14s ease,box-shadow .14s ease}.ith-table-tool-icon{width:15px;height:15px;flex-shrink:0;opacity:.8}.ith-table-tool-btn:hover .ith-table-tool-icon,.ith-table-tool-btn[aria-expanded=true] .ith-table-tool-icon,.ith-table-tool-btn[aria-pressed=true] .ith-table-tool-icon{opacity:1}.ith-table-tool-btn:hover{border-color:color-mix(in srgb,var(--_accent) 45%,var(--_input-border));background:color-mix(in srgb,var(--_accent) 4%,var(--_input-bg));color:var(--_accent)}.ith-table-tool-btn[aria-expanded=true],.ith-table-tool-btn[aria-pressed=true]{border-color:var(--_accent);background:var(--_accent-soft);color:var(--_accent);box-shadow:0 0 0 1px color-mix(in srgb,var(--_accent) 20%,transparent)}.ith-table-tool-btn:focus-visible{outline:none;box-shadow:0 0 0 3px var(--_focus)}.ith-table-menu-anchor{position:relative;display:inline-flex}.ith-table-segmented{display:inline-flex;align-items:center;gap:2px;height:36px;padding:3px;border:1px solid var(--_input-border);border-radius:10px;background:var(--_input-bg)}.ith-table-segmented-btn{display:inline-flex;align-items:center;gap:5px;height:28px;padding:0 10px;border:0;border-radius:7px;background:transparent;color:var(--_muted);font:inherit;font-size:12.5px;font-weight:600;white-space:nowrap;cursor:pointer;transition:background-color .12s ease,color .12s ease}.ith-table-segmented-btn svg{width:13px;height:13px}.ith-table-segmented-btn:hover{color:var(--_accent)}.ith-table-segmented-btn.is-active{background:var(--_accent-soft);color:var(--_accent);box-shadow:0 0 0 1px color-mix(in srgb,var(--_accent) 22%,transparent)}.ith-table-segmented-btn:focus-visible{outline:none;box-shadow:0 0 0 3px var(--_focus)}.ith-table-popover{position:fixed;z-index:900;width:250px;max-height:380px;display:flex;flex-direction:column;overflow:hidden;border:1px solid var(--_border);border-radius:12px;background:var(--_popover-bg);color:var(--_text);box-shadow:var(--_elevation);font-size:13px}.ith-table-popover-header{padding:10px 12px 8px;font-size:11.5px;font-weight:700;letter-spacing:.04em;text-transform:uppercase;color:var(--_muted)}.ith-table-popover-list{padding:0 6px 6px;overflow-y:auto;max-height:280px}.ith-table-popover-footer{display:flex;gap:6px;padding:6px;border-top:1px solid var(--_border);background:color-mix(in srgb,var(--_brand) 2%,var(--_bg))}.ith-table-popover-action{flex:1 1 auto;padding:7px 8px;border:0;border-radius:8px;background:transparent;color:var(--_accent);font:inherit;font-size:12.5px;font-weight:600;cursor:pointer}.ith-table-popover-action:hover{background:var(--_accent-soft)}.ith-table-popover-empty{margin:0;padding:10px 12px;color:var(--_muted);font-size:12.5px}.ith-table-columns-item{display:flex;align-items:center;gap:10px;padding:7px 8px;border-radius:8px;font-size:13px;cursor:pointer;transition:background-color .12s ease}.ith-table-columns-item:hover{background:var(--_hover)}.ith-table-columns-item input:disabled{opacity:.4;cursor:not-allowed}.ith-table-pin-tag{margin-left:auto;padding:1px 7px;border-radius:999px;background:var(--_accent-soft);color:var(--_accent);font-size:10px;font-weight:700;letter-spacing:.04em;text-transform:uppercase}.ith-table-view-item{display:flex;align-items:center;gap:4px;padding-right:4px;border-radius:8px}.ith-table-view-item:hover{background:var(--_hover)}.ith-table-view-item.is-active .ith-table-view-apply{color:var(--_accent);font-weight:650}.ith-table-view-apply{flex:1 1 auto;padding:7px 8px;border:0;background:transparent;color:var(--_text);font:inherit;font-size:13px;text-align:left;cursor:pointer}.ith-table-view-delete{display:grid;place-items:center;width:24px;height:24px;padding:0;border:0;border-radius:6px;background:transparent;color:var(--_muted);cursor:pointer}.ith-table-view-delete svg{width:11px;height:11px}.ith-table-view-delete:hover{background:var(--_accent-soft);color:var(--_accent)}.ith-table-view-save{align-items:center}.ith-table-view-input{flex:1 1 auto;min-width:0;height:30px;padding:0 9px;border:1px solid var(--_input-border);border-radius:8px;background:var(--_input-bg);color:var(--_text);font:inherit;font-size:12.5px}.ith-table-view-input:focus{outline:none;border-color:var(--_accent);box-shadow:0 0 0 3px var(--_focus)}.ith-table-column-menu{width:220px;padding:6px}.ith-table-menu-item{display:block;width:100%;padding:8px 10px;border:0;border-radius:8px;background:transparent;color:var(--_text);font:inherit;font-size:13px;text-align:left;cursor:pointer}.ith-table-menu-item:hover{background:var(--_accent-soft);color:var(--_accent)}.ith-table-menu-divider{height:1px;margin:5px 6px;background:var(--_border)}.ith-table.ith-table-compact{--ith-table-cell-padding: 7px 12px;--_cell-padding: var(--ith-table-compact-padding, 7px 12px);--_font-size: var(--ith-table-compact-font-size, 13px);--_header-font-size: 12.5px;--_row-height: 39px;--_head-height: 39px}.ith-table.ith-table-compact .ith-table-head-row th{padding:10px 12px}.ith-table.ith-table-compact .ith-table-filter-row th{padding:6px 10px}.ith-table-sticky-start,.ith-table-sticky-end{position:sticky;z-index:3;background:var(--_bg)}.ith-table-sticky-start{box-shadow:inset -1px 0 0 var(--_border)}.ith-table-sticky-end{box-shadow:inset 1px 0 0 var(--_border)}.ith-table-striped .ith-table-row:nth-child(2n) .ith-table-sticky-start,.ith-table-striped .ith-table-row:nth-child(2n) .ith-table-sticky-end{background:var(--_striped-bg)}.ith-table-row-selected .ith-table-sticky-start,.ith-table-row-selected .ith-table-sticky-end{background:var(--_selected-bg)}.ith-table-row:hover .ith-table-sticky-start,.ith-table-row:hover .ith-table-sticky-end{background:var(--_hover)}thead .ith-table-sticky-start,thead .ith-table-sticky-end{z-index:7;background:var(--_header-bg)}.ith-table-filter-row .ith-table-sticky-start,.ith-table-filter-row .ith-table-sticky-end{z-index:6;background:var(--_filter-bg)}.ith-table-td:not(.ith-table-sticky-start):not(.ith-table-sticky-end){position:relative}.ith-table-td.ith-table-copyable{padding-inline-end:36px}.ith-table-copy{position:absolute;inset-inline-end:8px;top:50%;display:grid;place-items:center;width:24px;height:24px;padding:0;transform:translateY(-50%);border:1px solid transparent;border-radius:7px;background:var(--_bg);color:var(--_muted);cursor:pointer;opacity:0;transition:opacity .12s ease,color .12s ease,border-color .12s ease}.ith-table-copy svg{width:14px;height:14px}.ith-table-td:hover .ith-table-copy,.ith-table-td:focus-within .ith-table-copy,.ith-table-copy:focus-visible,.ith-table-copy.is-copied{opacity:1}.ith-table-copy:hover{border-color:var(--_accent);color:var(--_accent)}.ith-table-copy.is-copied{color:var(--_accent)}.ith-table-td:focus-visible{outline:2px solid var(--_accent);outline-offset:-2px}.ith-table-skeleton{display:block;width:72%;height:12px;border-radius:6px;background:linear-gradient(90deg,var(--_border) 25%,var(--_hover) 37%,var(--_border) 63%);background-size:400% 100%;animation:ith-table-shimmer 1.4s ease infinite}.ith-table-skeleton.is-check{width:16px;height:16px;border-radius:4px;margin:0 auto}@keyframes ith-table-shimmer{0%{background-position:100% 50%}to{background-position:0 50%}}.ith-table-visually-hidden{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}.ith-table-menu{position:fixed;z-index:1000;min-width:180px;max-width:280px;padding:6px;border:1px solid var(--_border);border-radius:10px;background:var(--_popover-bg);color:var(--_text);box-shadow:var(--_elevation);font-size:13px}@media(prefers-reduced-motion:reduce){.ith-table-skeleton{animation:none}.ith-table-copy,.ith-table-tool-btn{transition:none}}.ith-table-th-inner{display:flex;align-items:center;gap:6px;min-width:0}.ith-table-th-inner>*:first-child{min-width:0}.ith-table-th:not(.ith-table-sticky-start):not(.ith-table-sticky-end){position:relative}.ith-table-th-menu{display:grid;place-items:center;flex:0 0 auto;width:20px;height:20px;padding:0;border:0;border-radius:6px;background:transparent;color:inherit;cursor:pointer;opacity:0;transition:opacity .12s ease,background-color .12s ease}.ith-table-th-menu svg{width:13px;height:13px}.ith-table-th:hover .ith-table-th-menu,.ith-table-th-menu[aria-expanded=true],.ith-table-th-menu:focus-visible{opacity:.85}.ith-table-th-menu:hover{background:color-mix(in srgb,currentColor 20%,transparent);opacity:1}.ith-table-th-menu:focus-visible{outline:2px solid currentColor;outline-offset:1px}.ith-table-resizer{position:absolute;top:0;inset-inline-end:-4px;bottom:0;width:9px;z-index:4;cursor:col-resize;touch-action:none}.ith-table-resizer:after{content:\"\";position:absolute;top:22%;bottom:22%;inset-inline-start:4px;width:2px;border-radius:2px;background:transparent;transition:background-color .12s ease}.ith-table-th:hover .ith-table-resizer:after{background:color-mix(in srgb,currentColor 40%,transparent)}.ith-table-th-dragging{opacity:.5}.ith-table-drop-target{box-shadow:inset 3px 0 0 var(--_accent)}.ith-table-pin-dot{flex:0 0 auto;width:6px;height:6px;border-radius:50%;background:currentColor;opacity:.55}.ith-table-sticky .ith-table-scroll.is-scrolled .ith-table-head-row th{box-shadow:0 1px 0 var(--_border),0 10px 16px -14px #0c0a1e8c}.ith-table-chips{display:flex;align-items:center;flex-wrap:wrap;gap:6px;margin-top:10px}.ith-table-chip{display:inline-flex;align-items:center;gap:6px;max-width:260px;padding:3px 4px 3px 9px;border:1px solid color-mix(in srgb,var(--_accent) 24%,transparent);border-radius:999px;background:var(--_accent-soft);color:var(--_accent);font-size:11.5px;font-weight:600}.ith-table-chip-label{font-size:10px;letter-spacing:.04em;text-transform:uppercase;opacity:.7}.ith-table-chip-value{max-width:150px;overflow:hidden;font-weight:500;text-overflow:ellipsis;white-space:nowrap}.ith-table-chip-remove{display:grid;place-items:center;width:18px;height:18px;padding:0;border:0;border-radius:50%;background:color-mix(in srgb,var(--_accent) 16%,transparent);color:inherit;cursor:pointer}.ith-table-chip-remove svg{width:9px;height:9px}.ith-table-chip-remove:hover{background:var(--_accent);color:var(--_on-accent)}.ith-table-chips-clear{padding:3px 8px;border:0;border-radius:999px;background:transparent;color:var(--_muted);font:inherit;font-size:11.5px;text-decoration:underline;text-underline-offset:3px;cursor:pointer}.ith-table-chips-clear:hover{color:var(--_accent)}.ith-table-selection-bar{display:flex;align-items:center;gap:10px;flex-wrap:wrap;padding:8px 16px;border-bottom:1px solid color-mix(in srgb,var(--_accent) 28%,var(--_border));background:var(--_accent-soft);color:var(--_accent);font-size:12.5px}.ith-table-selection-count strong{font-weight:700}.ith-table-selection-spacer{flex:1 1 auto}.ith-table-selection-actions{display:flex;align-items:center;gap:6px;flex-wrap:wrap}.ith-table-selection-btn{display:inline-flex;align-items:center;gap:5px;height:28px;padding:0 10px;border:1px solid color-mix(in srgb,var(--_accent) 35%,transparent);border-radius:8px;background:var(--_bg);color:var(--_accent);font:inherit;font-size:12px;font-weight:600;cursor:pointer;transition:background-color .12s ease,color .12s ease}.ith-table-selection-btn:hover{background:var(--_accent);color:var(--_on-accent)}.ith-table-selection-btn.is-danger{border-color:color-mix(in srgb,var(--_danger) 40%,transparent);color:var(--_danger)}.ith-table-selection-btn.is-danger:hover{background:var(--_danger);color:#fff}.ith-table-selection-clear{border:0;background:transparent;color:var(--_muted);font:inherit;font-size:12px;text-decoration:underline;text-underline-offset:3px;cursor:pointer}.ith-table-selection-clear:hover{color:var(--_accent)}.ith-table-expander-cell{width:38px;padding:0 0 0 10px;text-align:center}th.ith-table-expander-cell{background:var(--_header-bg)}.ith-table-expander{display:grid;place-items:center;width:22px;height:22px;padding:0;border:0;border-radius:6px;background:transparent;color:var(--_muted);cursor:pointer;transition:transform .15s ease,color .12s ease,background-color .12s ease}.ith-table-expander svg{width:13px;height:13px}.ith-table-expander:hover{background:var(--_accent-soft);color:var(--_accent)}.ith-table-expander.is-open{transform:rotate(90deg);color:var(--_accent)}.ith-table-detail-row>td{padding:14px 16px;border-bottom:1px solid var(--_border);background:var(--_striped-bg);white-space:normal}.ith-table-total-cell{padding:var(--_cell-padding);border-top:1px solid var(--_border);background:var(--_filter-bg);font-size:12px;white-space:nowrap}.ith-table-total-row .ith-table-select-cell,.ith-table-total-row .ith-table-expander-cell{border-top:1px solid var(--_border);background:var(--_filter-bg)}.ith-table-total-label{margin-inline-end:6px;font-size:10px;font-weight:700;letter-spacing:.04em;text-transform:uppercase;color:var(--_muted)}.ith-table-total-value{font-weight:650;color:var(--_text)}@media(prefers-reduced-motion:reduce){.ith-table-expander,.ith-table-th-menu,.ith-table-selection-btn{transition:none}}.ith-table-export-menu{width:236px;padding:6px}.ith-table-export-name{display:block;font-weight:650}.ith-table-export-hint{display:block;margin-top:2px;font-size:11px;font-weight:500;color:var(--_muted)}.ith-table-menu-item:hover .ith-table-export-hint{color:inherit;opacity:.75}:host-context([data-theme=\"dark\"]) .ith-table,:host-context(.dark) .ith-table{box-shadow:var(--_shadow),inset 0 0 0 1px color-mix(in srgb,#ffffff 6%,transparent)}@media(prefers-color-scheme:dark){:host-context([data-theme=\"auto\"]) .ith-table{box-shadow:var(--_shadow),inset 0 0 0 1px color-mix(in srgb,#ffffff 6%,transparent)}}:host-context([data-theme=\"dark\"]) .ith-table-td,:host-context(.dark) .ith-table-td,:host-context([data-theme=\"dark\"]) .ith-table-actions-cell,:host-context(.dark) .ith-table-actions-cell{border-color:color-mix(in srgb,var(--_border) 78%,#ffffff)}:host-context([data-theme=\"dark\"]) .ith-table-row.ith-table-row-selected td:first-child,:host-context(.dark) .ith-table-row.ith-table-row-selected td:first-child{box-shadow:inset 3px 0 0 var(--_accent)}:host-context([data-theme=\"dark\"]) .ith-table-sort-icons,:host-context(.dark) .ith-table-sort-icons{opacity:.65}\n"], dependencies: [{ kind: "directive", type: NgClass, selector: "[ngClass]", inputs: ["class", "ngClass"] }, { kind: "directive", type: NgTemplateOutlet, selector: "[ngTemplateOutlet]", inputs: ["ngTemplateOutletContext", "ngTemplateOutlet", "ngTemplateOutletInjector"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush });
1955
2013
  }
1956
2014
  i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.34", ngImport: i0, type: TableComponent, decorators: [{
1957
2015
  type: Component,
1958
- args: [{ selector: 'ith-table', imports: [NgClass, NgTemplateOutlet], changeDetection: ChangeDetectionStrategy.OnPush, template: "<div\n class=\"ith-table\"\n [class.ith-table-bordered]=\"bordered()\"\n [class.ith-table-dense]=\"dense()\"\n [class.ith-table-striped]=\"striped()\"\n [class.ith-table-hoverable]=\"hoverable()\"\n [class.ith-table-sticky]=\"stickyHeader()\"\n [class.ith-table-compact]=\"compact()\">\n <!-- Toolbar -->\n @if (showToolbar()) {\n <div class=\"ith-table-toolbar\">\n <div class=\"ith-table-toolbar-inner\">\n <div class=\"ith-table-toolbar-main\">\n @if (title()) {\n <h3 class=\"ith-table-title\">{{ title() }}</h3>\n }\n <span class=\"ith-table-badge\">{{ totalRows() }} {{ countSuffix() }}</span>\n @if (selected().length > 0) {\n <span class=\"ith-table-badge ith-table-badge-accent\">{{ selected().length }} selected</span>\n }\n @if (toolbarTemplate(); as toolbarTpl) {\n <ng-container\n [ngTemplateOutlet]=\"toolbarTpl\"\n [ngTemplateOutletContext]=\"toolbarContext()\" />\n }\n </div>\n\n <div class=\"ith-table-toolbar-spacer\"></div>\n\n <div class=\"ith-table-toolbar-actions\">\n @if (showViews()) {\n <div class=\"ith-table-menu-anchor\" (click)=\"$event.stopPropagation()\">\n <button\n type=\"button\"\n class=\"ith-table-tool-btn\"\n aria-haspopup=\"true\"\n [attr.aria-expanded]=\"viewsOpen()\"\n (click)=\"toggleViews($event)\">\n <svg class=\"ith-table-tool-icon\" viewBox=\"0 0 24 24\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"1.8\" stroke-linecap=\"round\" stroke-linejoin=\"round\" aria-hidden=\"true\">\n <path d=\"M4 6h16M4 12h10M4 18h7\" />\n </svg>\n <span>Views</span>\n </button>\n </div>\n }\n\n @if (showColumnPicker()) {\n <div class=\"ith-table-menu-anchor\" (click)=\"$event.stopPropagation()\">\n <button\n type=\"button\"\n class=\"ith-table-tool-btn\"\n aria-haspopup=\"true\"\n [attr.aria-expanded]=\"columnPickerOpen()\"\n (click)=\"toggleColumnPicker($event)\">\n <svg class=\"ith-table-tool-icon\" viewBox=\"0 0 24 24\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"1.8\" stroke-linecap=\"round\" stroke-linejoin=\"round\" aria-hidden=\"true\">\n <rect x=\"3\" y=\"4\" width=\"7\" height=\"16\" rx=\"1.5\" />\n <rect x=\"14\" y=\"4\" width=\"7\" height=\"16\" rx=\"1.5\" />\n </svg>\n <span>Columns</span>\n </button>\n </div>\n }\n\n @if (showDensityToggle()) {\n <div class=\"ith-table-segmented\" role=\"group\" aria-label=\"Row density\">\n <button\n type=\"button\"\n class=\"ith-table-segmented-btn\"\n [class.is-active]=\"!compact()\"\n [attr.aria-pressed]=\"!compact()\"\n title=\"Comfortable rows\"\n (click)=\"setDensity('comfortable')\">\n <svg viewBox=\"0 0 24 24\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"1.8\" stroke-linecap=\"round\" aria-hidden=\"true\">\n <path d=\"M4 8h16M4 16h16\" />\n </svg>\n <span>Comfortable</span>\n </button>\n <button\n type=\"button\"\n class=\"ith-table-segmented-btn\"\n [class.is-active]=\"compact()\"\n [attr.aria-pressed]=\"compact()\"\n title=\"Compact rows\"\n (click)=\"setDensity('compact')\">\n <svg viewBox=\"0 0 24 24\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"1.8\" stroke-linecap=\"round\" aria-hidden=\"true\">\n <path d=\"M4 6h16M4 10h16M4 14h16M4 18h16\" />\n </svg>\n <span>Compact</span>\n </button>\n </div>\n }\n\n @if (showExport()) {\n <div class=\"ith-table-menu-anchor\" (click)=\"$event.stopPropagation()\">\n <button\n type=\"button\"\n class=\"ith-table-tool-btn\"\n aria-haspopup=\"true\"\n [attr.aria-expanded]=\"!!exportMenuPos()\"\n title=\"Export the current view\"\n (click)=\"toggleExportMenu($event)\">\n <svg class=\"ith-table-tool-icon\" viewBox=\"0 0 24 24\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"1.8\" stroke-linecap=\"round\" stroke-linejoin=\"round\" aria-hidden=\"true\">\n <path d=\"M12 4v11m0 0 4-4m-4 4-4-4\" />\n <path d=\"M4 19h16\" />\n </svg>\n <span>Export</span>\n </button>\n </div>\n }\n\n @if (searchable()) {\n <div class=\"ith-table-search\">\n <svg class=\"ith-table-search-icon\" viewBox=\"0 0 24 24\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"2\" stroke-linecap=\"round\" aria-hidden=\"true\">\n <circle cx=\"11\" cy=\"11\" r=\"7\" />\n <path d=\"m20 20-3.6-3.6\" />\n </svg>\n <input\n type=\"search\"\n class=\"ith-table-search-input\"\n [value]=\"search()\"\n [attr.placeholder]=\"searchPlaceholder()\"\n [attr.aria-label]=\"searchPlaceholder()\"\n (input)=\"onSearchInput($any($event.target).value)\" />\n @if (search()) {\n <button type=\"button\" class=\"ith-table-search-clear\" (click)=\"clearSearch()\" aria-label=\"Clear search\">\n <svg viewBox=\"0 0 24 24\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"2\" stroke-linecap=\"round\" aria-hidden=\"true\">\n <path d=\"M6 6l12 12M18 6 6 18\" />\n </svg>\n </button>\n }\n </div>\n }\n </div>\n </div>\n\n @if (showFilterChips() && hasQuery()) {\n <div class=\"ith-table-chips\">\n @for (chip of filterChips(); track chip.kind + chip.key) {\n <span class=\"ith-table-chip\">\n <span class=\"ith-table-chip-label\">{{ chip.label }}</span>\n <span class=\"ith-table-chip-value\">{{ chip.value }}</span>\n <button\n type=\"button\"\n class=\"ith-table-chip-remove\"\n [attr.aria-label]=\"'Remove ' + chip.label + ' filter'\"\n (click)=\"removeChip(chip)\">\n <svg viewBox=\"0 0 24 24\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"2\" stroke-linecap=\"round\" aria-hidden=\"true\">\n <path d=\"M6 6l12 12M18 6 6 18\" />\n </svg>\n </button>\n </span>\n }\n <button type=\"button\" class=\"ith-table-chips-clear\" (click)=\"clearQuery()\">Clear all</button>\n </div>\n }\n </div>\n }\n\n <!-- Bulk actions for the current selection -->\n @if (selected().length > 0 && selectionActions().length) {\n <div class=\"ith-table-selection-bar\" role=\"region\" aria-label=\"Selection actions\">\n <span class=\"ith-table-selection-count\">\n <strong>{{ selected().length }}</strong> selected\n </span>\n <span class=\"ith-table-selection-spacer\"></span>\n <div class=\"ith-table-selection-actions\">\n @for (action of selectionActions(); track action.id) {\n <button\n type=\"button\"\n class=\"ith-table-selection-btn\"\n [ngClass]=\"action.class ?? ''\"\n [attr.title]=\"action.title ?? action.label\"\n (click)=\"onSelectionAction(action, $event)\">\n @if (action.icon) {\n <span class=\"ith-table-selection-icon\" aria-hidden=\"true\">{{ action.icon }}</span>\n }\n <span>{{ action.label }}</span>\n </button>\n }\n <button type=\"button\" class=\"ith-table-selection-clear\" (click)=\"clearSelection()\">\n Clear selection\n </button>\n </div>\n </div>\n }\n\n <!-- Table -->\n <div\n class=\"ith-table-scroll\"\n [class.ith-table-scroll-bounded]=\"!!maxHeight()\"\n [class.ith-table-scroll-filtered]=\"showFilters()\"\n [class.is-scrolled]=\"scrolled()\"\n [style.maxHeight]=\"maxHeight() || null\"\n [style.--_min-rows]=\"minRows()\"\n (scroll)=\"onScroll($event)\">\n <table class=\"ith-table-grid\" [attr.aria-label]=\"ariaLabel()\" [attr.aria-busy]=\"loading()\">\n <thead>\n <tr class=\"ith-table-head-row\">\n @if (selectable()) {\n <th\n scope=\"col\"\n class=\"ith-table-select-cell\"\n [class.ith-table-sticky-start]=\"stickySelection()\"\n [style.left]=\"stickySelection() ? '0px' : null\">\n @if (selectionMode() === 'multi') {\n <input\n type=\"checkbox\"\n class=\"ith-table-checkbox\"\n [checked]=\"allPageSelected()\"\n [indeterminate]=\"somePageSelected()\"\n [attr.aria-label]=\"'Select all rows'\"\n (change)=\"onSelectAllChange($event)\" />\n }\n </th>\n }\n\n @if (hasExpander()) {\n <th scope=\"col\" class=\"ith-table-expander-cell\" [attr.aria-label]=\"'Row details'\"></th>\n }\n\n @for (column of visibleColumns(); track column.key) {\n <th\n scope=\"col\"\n class=\"ith-table-th\"\n [ngClass]=\"headerClasses(column)\"\n [style]=\"columnStyle(column)\"\n [attr.data-col]=\"column.key\"\n [attr.aria-sort]=\"isSortable(column) ? ariaSort(column) : null\"\n [attr.draggable]=\"reorderable() ? 'true' : null\"\n [class.ith-table-th-dragging]=\"dragKey() === column.key\"\n (dragstart)=\"onHeaderDragStart(column, $event)\"\n (dragover)=\"onHeaderDragOver(column, $event)\"\n (drop)=\"onHeaderDrop(column, $event)\"\n (dragend)=\"onHeaderDragEnd()\">\n <div class=\"ith-table-th-inner\">\n @if (headerTemplate(column); as headerTpl) {\n <ng-container\n [ngTemplateOutlet]=\"headerTpl\"\n [ngTemplateOutletContext]=\"{ $implicit: column, column: column }\" />\n } @else if (isSortable(column)) {\n <button\n type=\"button\"\n class=\"ith-table-sort\"\n [class.is-sorted]=\"!!sortDirection(column)\"\n (click)=\"toggleSort(column)\"\n [attr.aria-label]=\"'Sort by ' + (column.header ?? column.key)\">\n <span class=\"ith-table-th-label\">{{ column.header ?? column.key }}</span>\n <span class=\"ith-table-sort-icons\" aria-hidden=\"true\">\n <svg viewBox=\"0 0 10 6\" class=\"ith-table-sort-up\" [class.is-active]=\"sortDirection(column) === 'asc'\"><path d=\"M5 0l5 6H0z\" /></svg>\n <svg viewBox=\"0 0 10 6\" class=\"ith-table-sort-down\" [class.is-active]=\"sortDirection(column) === 'desc'\"><path d=\"M5 6L0 0h10z\" /></svg>\n </span>\n </button>\n } @else {\n <span class=\"ith-table-th-label\">{{ column.header ?? column.key }}</span>\n }\n\n @if (showColumnMenu()) {\n <button\n type=\"button\"\n class=\"ith-table-th-menu\"\n [attr.aria-expanded]=\"columnMenu()?.key === column.key\"\n [attr.aria-label]=\"'Column options for ' + (column.header ?? column.key)\"\n (click)=\"openColumnMenu(column, $event)\">\n <svg viewBox=\"0 0 24 24\" fill=\"currentColor\" aria-hidden=\"true\">\n <circle cx=\"12\" cy=\"5\" r=\"1.7\" />\n <circle cx=\"12\" cy=\"12\" r=\"1.7\" />\n <circle cx=\"12\" cy=\"19\" r=\"1.7\" />\n </svg>\n </button>\n }\n\n @if (pinOf(column) === 'start') {\n <span class=\"ith-table-pin-dot\" aria-hidden=\"true\"></span>\n }\n </div>\n\n @if (resizable()) {\n <span\n class=\"ith-table-resizer\"\n role=\"separator\"\n aria-orientation=\"vertical\"\n [attr.aria-label]=\"'Resize ' + (column.header ?? column.key)\"\n (pointerdown)=\"startResize(column, $event)\"></span>\n }\n </th>\n }\n\n @if (hasActionsColumn()) {\n <th\n scope=\"col\"\n class=\"ith-table-th ith-table-actions-head\"\n [class.ith-table-sticky-end]=\"stickyActions()\"\n [style.width]=\"actionsWidth()\"\n [style.right]=\"stickyActions() ? '0px' : null\">\n {{ actionsHeader() }}\n </th>\n }\n </tr>\n\n @if (showFilters()) {\n <tr class=\"ith-table-filter-row\">\n @if (selectable()) {\n <th\n class=\"ith-table-select-cell\"\n [class.ith-table-sticky-start]=\"stickySelection()\"\n [style.left]=\"stickySelection() ? '0px' : null\"></th>\n }\n @if (hasExpander()) {\n <th class=\"ith-table-expander-cell\"></th>\n }\n @for (column of visibleColumns(); track column.key) {\n <th\n class=\"ith-table-filter-cell\"\n [ngClass]=\"filterClasses(column)\"\n [style]=\"columnStyle(column)\">\n @if (filterTemplate(column); as filterTpl) {\n <ng-container\n [ngTemplateOutlet]=\"filterTpl\"\n [ngTemplateOutletContext]=\"filterContext(column)\" />\n } @else if (column.filterable !== false) {\n @switch (filterTypeFor(column)) {\n @case ('select') {\n <select\n class=\"ith-table-filter-input ith-table-filter-select\"\n [value]=\"filterValue(column.key)\"\n [attr.aria-label]=\"'Filter by ' + (column.header ?? column.key)\"\n (change)=\"onFilterInput(column.key, $any($event.target).value)\">\n <option value=\"\">{{ filterAllLabel() }}</option>\n @for (option of filterOptionsFor(column); track option.value) {\n <option [value]=\"option.value\">{{ option.label }}</option>\n }\n </select>\n }\n @case ('number') {\n <input\n type=\"number\"\n class=\"ith-table-filter-input\"\n [value]=\"filterValue(column.key)\"\n [attr.placeholder]=\"filterPlaceholderFor(column)\"\n [attr.aria-label]=\"'Filter by ' + (column.header ?? column.key)\"\n (input)=\"onFilterInput(column.key, $any($event.target).value)\" />\n }\n @case ('date') {\n <input\n type=\"date\"\n class=\"ith-table-filter-input\"\n [value]=\"filterValue(column.key)\"\n [attr.aria-label]=\"'Filter by ' + (column.header ?? column.key)\"\n (input)=\"onFilterInput(column.key, $any($event.target).value)\" />\n }\n @default {\n <input\n type=\"text\"\n class=\"ith-table-filter-input\"\n [value]=\"filterValue(column.key)\"\n [attr.placeholder]=\"filterPlaceholderFor(column)\"\n [attr.aria-label]=\"'Filter by ' + (column.header ?? column.key)\"\n (input)=\"onFilterInput(column.key, $any($event.target).value)\" />\n }\n }\n }\n </th>\n }\n @if (hasActionsColumn()) {\n <th\n class=\"ith-table-filter-cell\"\n [class.ith-table-sticky-end]=\"stickyActions()\"\n [style.right]=\"stickyActions() ? '0px' : null\"></th>\n }\n </tr>\n }\n </thead>\n\n <tbody>\n @if (loading() && pagedRows().length === 0) {\n @for (skeleton of skeletonIndexes(); track skeleton) {\n <tr class=\"ith-table-skeleton-row\" aria-hidden=\"true\">\n @if (selectable()) {\n <td\n class=\"ith-table-select-cell\"\n [class.ith-table-sticky-start]=\"stickySelection()\"\n [style.left]=\"stickySelection() ? '0px' : null\">\n <span class=\"ith-table-skeleton is-check\"></span>\n </td>\n }\n @if (hasExpander()) {\n <td class=\"ith-table-expander-cell\"></td>\n }\n @for (column of visibleColumns(); track column.key) {\n <td class=\"ith-table-td\">\n <span class=\"ith-table-skeleton\"></span>\n </td>\n }\n @if (hasActionsColumn()) {\n <td class=\"ith-table-actions-cell\"><span class=\"ith-table-skeleton\"></span></td>\n }\n </tr>\n }\n <tr>\n <td class=\"ith-table-visually-hidden\" [attr.colspan]=\"emptyColspan()\" aria-live=\"polite\">\n {{ loadingText() }}\n </td>\n </tr>\n } @else if (pagedRows().length === 0) {\n <tr>\n <td class=\"ith-table-status\" [attr.colspan]=\"emptyColspan()\">\n @if (emptyTemplate(); as emptyTpl) {\n <ng-container\n [ngTemplateOutlet]=\"emptyTpl\"\n [ngTemplateOutletContext]=\"emptyContext()\" />\n } @else {\n <div class=\"ith-table-empty\">\n <svg viewBox=\"0 0 24 24\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"1.5\" stroke-linecap=\"round\" aria-hidden=\"true\">\n <rect x=\"3\" y=\"5\" width=\"18\" height=\"14\" rx=\"2\" />\n <path d=\"M3 10h18M9 10v9\" />\n </svg>\n <span>{{ hasQuery() ? 'No records match your search.' : emptyText() }}</span>\n @if (hasQuery()) {\n <button type=\"button\" class=\"ith-table-link\" (click)=\"clearQuery()\">Clear search &amp; filters</button>\n }\n </div>\n }\n </td>\n </tr>\n } @else {\n @for (row of pagedRows(); track trackRow($index, row); let rowIndex = $index) {\n <tr\n class=\"ith-table-row\"\n [ngClass]=\"rowClassFor(row, $index)\"\n [class.ith-table-row-clickable]=\"rowClickable() || selectOnRowClick() || (hasRowDetail() && rowDetailTrigger() === 'row')\"\n [attr.tabindex]=\"rowClickable() || selectOnRowClick() ? 0 : null\"\n [attr.aria-selected]=\"selectable() ? isSelected(row) : null\"\n [attr.aria-expanded]=\"hasRowDetail() ? isRowExpanded(row) : null\"\n (click)=\"onRowClick(row, $index, $event)\"\n (keydown)=\"onRowKeydown(row, $index, $event)\"\n (contextmenu)=\"onRowContextMenu(row, $index, $event)\">\n @if (selectable()) {\n <td\n class=\"ith-table-select-cell\"\n [class.ith-table-sticky-start]=\"stickySelection()\"\n [style.left]=\"stickySelection() ? '0px' : null\">\n <input\n type=\"checkbox\"\n class=\"ith-table-checkbox\"\n [checked]=\"isSelected(row)\"\n [attr.aria-label]=\"'Select row ' + ($index + 1)\"\n (click)=\"$event.stopPropagation()\"\n (change)=\"onRowCheckboxChange(row, $event)\" />\n </td>\n }\n\n @if (hasExpander()) {\n <td class=\"ith-table-expander-cell\">\n <button\n type=\"button\"\n class=\"ith-table-expander\"\n [class.is-open]=\"isRowExpanded(row)\"\n [attr.aria-expanded]=\"isRowExpanded(row)\"\n [attr.aria-label]=\"'Toggle details for row ' + ($index + 1)\"\n (click)=\"toggleRowDetail(row, $event)\">\n <svg viewBox=\"0 0 24 24\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"2\" stroke-linecap=\"round\" stroke-linejoin=\"round\" aria-hidden=\"true\">\n <path d=\"m9 6 6 6-6 6\" />\n </svg>\n </button>\n </td>\n }\n\n @for (column of visibleColumns(); track column.key; let colIndex = $index) {\n <td\n class=\"ith-table-td\"\n [class.ith-table-copyable]=\"copyable()\"\n [ngClass]=\"cellClasses(row, column, rowIndex)\"\n [style]=\"columnStyle(column)\"\n [attr.title]=\"tooltipText(row, column, rowIndex)\"\n [attr.data-cell]=\"rowIndex + '-' + colIndex\"\n [attr.data-col]=\"column.key\"\n [attr.tabindex]=\"cellTabIndex(rowIndex, colIndex)\"\n (focus)=\"onCellFocus(rowIndex, colIndex)\"\n (keydown)=\"onCellKeydown(column, rowIndex, colIndex, $event)\">\n @if (cellTemplate(column); as cellTpl) {\n <ng-container\n [ngTemplateOutlet]=\"cellTpl\"\n [ngTemplateOutletContext]=\"cellContext(row, column, rowIndex)\" />\n } @else {\n {{ cellText(row, column, rowIndex) }}\n }\n @if (copyable()) {\n <button\n type=\"button\"\n class=\"ith-table-copy\"\n [class.is-copied]=\"isCellCopied(rowIndex, column)\"\n [attr.aria-label]=\"'Copy ' + (column.header ?? column.key)\"\n (click)=\"copyCell(row, column, rowIndex, $event)\">\n @if (isCellCopied(rowIndex, column)) {\n <svg viewBox=\"0 0 24 24\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"2\" stroke-linecap=\"round\" stroke-linejoin=\"round\" aria-hidden=\"true\"><path d=\"m5 13 4 4L19 7\" /></svg>\n } @else {\n <svg viewBox=\"0 0 24 24\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"1.8\" stroke-linecap=\"round\" stroke-linejoin=\"round\" aria-hidden=\"true\"><rect x=\"9\" y=\"9\" width=\"11\" height=\"11\" rx=\"2\" /><path d=\"M15 5.5A2.5 2.5 0 0 0 12.5 3H6a2 2 0 0 0-2 2v7.5A2.5 2.5 0 0 0 6.5 15\" /></svg>\n }\n </button>\n }\n </td>\n }\n\n @if (hasActionsColumn()) {\n <td\n class=\"ith-table-actions-cell\"\n [class.ith-table-sticky-end]=\"stickyActions()\"\n [style.right]=\"stickyActions() ? '0px' : null\">\n @if (rowActionsTemplate(); as actionsTpl) {\n <ng-container\n [ngTemplateOutlet]=\"actionsTpl\"\n [ngTemplateOutletContext]=\"{ $implicit: row, row: row, index: $index }\" />\n } @else {\n @for (action of rowActions(); track action.id) {\n @if (isActionVisible(action, row, $index)) {\n <button\n type=\"button\"\n class=\"ith-table-action\"\n [ngClass]=\"action.class ?? ''\"\n [attr.title]=\"action.title ?? action.label\"\n [disabled]=\"isActionDisabled(action, row, $index)\"\n (click)=\"onActionClick(action, row, $index, $event)\">\n @if (action.icon) {\n <span class=\"ith-table-action-icon\" aria-hidden=\"true\">{{ action.icon }}</span>\n }\n <span>{{ action.label }}</span>\n </button>\n }\n }\n }\n </td>\n }\n </tr>\n\n @if (hasRowDetail() && isRowExpanded(row)) {\n <tr class=\"ith-table-detail-row\">\n <td [attr.colspan]=\"emptyColspan()\">\n @if (rowDetailTemplate(); as detailTpl) {\n <ng-container\n [ngTemplateOutlet]=\"detailTpl\"\n [ngTemplateOutletContext]=\"rowDetailContext(row, rowIndex)\" />\n }\n </td>\n </tr>\n }\n }\n }\n </tbody>\n\n @if (hasAggregates() && pagedRows().length > 0) {\n <tfoot>\n <tr class=\"ith-table-total-row\">\n @if (selectable()) {\n <td\n class=\"ith-table-select-cell\"\n [class.ith-table-sticky-start]=\"stickySelection()\"\n [style.left]=\"stickySelection() ? '0px' : null\"></td>\n }\n @if (hasExpander()) {\n <td class=\"ith-table-expander-cell\"></td>\n }\n @for (column of visibleColumns(); track column.key) {\n <td\n class=\"ith-table-total-cell\"\n [ngClass]=\"stickyClassFor(column)\"\n [style]=\"columnStyle(column)\">\n @if (column.aggregate) {\n <span class=\"ith-table-total-label\">{{ aggregateLabel(column) }}</span>\n <span class=\"ith-table-total-value\">{{ aggregateText(column) }}</span>\n }\n </td>\n }\n @if (hasActionsColumn()) {\n <td\n class=\"ith-table-total-cell ith-table-actions-cell\"\n [class.ith-table-sticky-end]=\"stickyActions()\"\n [style.right]=\"stickyActions() ? '0px' : null\"></td>\n }\n </tr>\n </tfoot>\n }\n </table>\n\n @if (loading() && pagedRows().length > 0) {\n <div class=\"ith-table-loading-overlay\">\n <span class=\"ith-table-spinner\" aria-hidden=\"true\"></span>\n <span>{{ loadingText() }}</span>\n </div>\n }\n </div>\n\n <!-- Columns popover (fixed, so the toolbar's scroll box cannot clip it) -->\n @if (columnPickerOpen()) {\n <div\n class=\"ith-table-popover\"\n role=\"dialog\"\n aria-label=\"Visible columns\"\n [style.left.px]=\"columnsMenuPos()?.x ?? 0\"\n [style.top.px]=\"columnsMenuPos()?.y ?? 0\"\n (click)=\"$event.stopPropagation()\">\n <div class=\"ith-table-popover-header\">Show columns</div>\n <div class=\"ith-table-popover-list\">\n @for (column of orderedColumns(); track column.key) {\n <label class=\"ith-table-columns-item\">\n <input\n type=\"checkbox\"\n class=\"ith-table-checkbox\"\n [checked]=\"isColumnVisible(column)\"\n [disabled]=\"!isColumnVisible(column) && !canHide(column.key)\"\n (change)=\"setColumnVisible(column.key, $any($event.target).checked)\" />\n <span>{{ column.header ?? column.key }}</span>\n @if (pinOf(column)) {\n <span class=\"ith-table-pin-tag\">{{ pinOf(column) }}</span>\n }\n </label>\n }\n </div>\n <div class=\"ith-table-popover-footer\">\n <button type=\"button\" class=\"ith-table-popover-action\" (click)=\"resetColumns()\">\n Reset columns\n </button>\n </div>\n </div>\n }\n\n <!-- Export formats -->\n @if (exportMenuPos(); as pos) {\n <div\n class=\"ith-table-popover ith-table-export-menu\"\n role=\"menu\"\n aria-label=\"Export format\"\n [style.left.px]=\"pos.x\"\n [style.top.px]=\"pos.y\"\n (click)=\"$event.stopPropagation()\">\n <button type=\"button\" class=\"ith-table-menu-item\" role=\"menuitem\" (click)=\"exportAs('xlsx')\">\n <span class=\"ith-table-export-name\">Excel</span>\n <span class=\"ith-table-export-hint\">.xlsx \u2014 Excel, Numbers, Sheets</span>\n </button>\n <button type=\"button\" class=\"ith-table-menu-item\" role=\"menuitem\" (click)=\"exportAs('csv')\">\n <span class=\"ith-table-export-name\">CSV</span>\n <span class=\"ith-table-export-hint\">.csv \u2014 plain text, any tool</span>\n </button>\n </div>\n }\n\n <!-- Named views -->\n @if (viewsOpen()) {\n <div\n class=\"ith-table-popover\"\n role=\"dialog\"\n aria-label=\"Saved views\"\n [style.left.px]=\"viewsMenuPos()?.x ?? 0\"\n [style.top.px]=\"viewsMenuPos()?.y ?? 0\"\n (click)=\"$event.stopPropagation()\">\n <div class=\"ith-table-popover-header\">Saved views</div>\n <div class=\"ith-table-popover-list\">\n @for (name of savedViewNames(); track name) {\n <div class=\"ith-table-view-item\" [class.is-active]=\"activeView() === name\">\n <button type=\"button\" class=\"ith-table-view-apply\" (click)=\"applyView(name)\">\n {{ name }}\n </button>\n <button\n type=\"button\"\n class=\"ith-table-view-delete\"\n [attr.aria-label]=\"'Delete view ' + name\"\n (click)=\"deleteView(name, $event)\">\n <svg viewBox=\"0 0 24 24\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"2\" stroke-linecap=\"round\" aria-hidden=\"true\">\n <path d=\"M6 6l12 12M18 6 6 18\" />\n </svg>\n </button>\n </div>\n } @empty {\n <p class=\"ith-table-popover-empty\">No saved views yet.</p>\n }\n </div>\n <div class=\"ith-table-popover-footer ith-table-view-save\">\n <input\n type=\"text\"\n class=\"ith-table-view-input\"\n placeholder=\"View name\"\n aria-label=\"New view name\"\n [value]=\"viewNameDraft()\"\n (input)=\"onViewNameInput($any($event.target).value)\"\n (keydown.enter)=\"saveView()\" />\n <button type=\"button\" class=\"ith-table-popover-action\" (click)=\"saveView()\">Save</button>\n </div>\n </div>\n }\n\n <!-- Column header menu -->\n @if (columnMenu(); as menu) {\n <div\n class=\"ith-table-popover ith-table-column-menu\"\n role=\"menu\"\n [style.left.px]=\"menu.x\"\n [style.top.px]=\"menu.y\"\n (click)=\"$event.stopPropagation()\">\n @if (columnMenuColumn(); as column) {\n @if (isSortable(column)) {\n <button type=\"button\" class=\"ith-table-menu-item\" role=\"menuitem\" (click)=\"menuSort('asc')\">\n Sort ascending\n </button>\n <button type=\"button\" class=\"ith-table-menu-item\" role=\"menuitem\" (click)=\"menuSort('desc')\">\n Sort descending\n </button>\n @if (sortDirection(column)) {\n <button type=\"button\" class=\"ith-table-menu-item\" role=\"menuitem\" (click)=\"menuClearSort()\">\n Clear sort\n </button>\n }\n <div class=\"ith-table-menu-divider\"></div>\n }\n @if (canPin(column)) {\n @if (pinOf(column) !== 'start') {\n <button type=\"button\" class=\"ith-table-menu-item\" role=\"menuitem\" (click)=\"menuPin('start')\">\n Pin to left\n </button>\n }\n @if (pinOf(column) !== 'end') {\n <button type=\"button\" class=\"ith-table-menu-item\" role=\"menuitem\" (click)=\"menuPin('end')\">\n Pin to right\n </button>\n }\n @if (pinOf(column)) {\n <button type=\"button\" class=\"ith-table-menu-item\" role=\"menuitem\" (click)=\"menuPin(null)\">\n Unpin column\n </button>\n }\n <div class=\"ith-table-menu-divider\"></div>\n }\n <button type=\"button\" class=\"ith-table-menu-item\" role=\"menuitem\" (click)=\"menuAutosize()\">\n Fit to content\n </button>\n @if (canHide(column.key)) {\n <button type=\"button\" class=\"ith-table-menu-item\" role=\"menuitem\" (click)=\"menuHide()\">\n Hide column\n </button>\n }\n }\n </div>\n }\n\n <!-- Right-click menu (projected template, positioned at the pointer) -->\n @if (menuState(); as menu) {\n <div\n class=\"ith-table-menu\"\n role=\"menu\"\n [style.left.px]=\"menu.x\"\n [style.top.px]=\"menu.y\"\n (click)=\"closeRowMenu(); $event.stopPropagation()\">\n @if (rowMenuTemplate(); as menuTpl) {\n <ng-container\n [ngTemplateOutlet]=\"menuTpl\"\n [ngTemplateOutletContext]=\"{ $implicit: menu.row, row: menu.row, index: menu.index }\" />\n }\n </div>\n }\n\n <!-- Footer -->\n @if (showFooter()) {\n <div class=\"ith-table-footer\">\n <div class=\"ith-table-footer-info\">\n @if (footerTemplate(); as footerTpl) {\n <ng-container\n [ngTemplateOutlet]=\"footerTpl\"\n [ngTemplateOutletContext]=\"footerContext()\" />\n } @else {\n <span>\n Showing <strong>{{ rangeStart() }}</strong>\u2013<strong>{{ rangeEnd() }}</strong>\n of <strong>{{ totalRows() }}</strong>\n </span>\n <span class=\"ith-table-total\">{{ totalLabel() }}: <strong>{{ totalRows() }}</strong></span>\n }\n </div>\n\n <div class=\"ith-table-footer-controls\">\n @if (showPagination()) {\n <nav class=\"ith-table-pagination\" aria-label=\"Pagination\">\n @if (showFirstLast()) {\n <button type=\"button\" class=\"ith-table-page-btn\" (click)=\"firstPage()\" [disabled]=\"page() === 1\" aria-label=\"First page\">\n <svg viewBox=\"0 0 24 24\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"2\" stroke-linecap=\"round\" stroke-linejoin=\"round\" aria-hidden=\"true\"><path d=\"m11 17-5-5 5-5M18 17l-5-5 5-5\" /></svg>\n </button>\n }\n <button type=\"button\" class=\"ith-table-page-btn\" (click)=\"previousPage()\" [disabled]=\"page() === 1\" aria-label=\"Previous page\">\n <svg viewBox=\"0 0 24 24\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"2\" stroke-linecap=\"round\" stroke-linejoin=\"round\" aria-hidden=\"true\"><path d=\"m15 18-6-6 6-6\" /></svg>\n </button>\n\n @for (item of pageItems(); track item) {\n <button\n type=\"button\"\n class=\"ith-table-page-btn ith-table-page-number\"\n [class.is-active]=\"item === page()\"\n [attr.aria-current]=\"item === page() ? 'page' : null\"\n (click)=\"goToPage(item)\">\n {{ item }}\n </button>\n }\n\n <button type=\"button\" class=\"ith-table-page-btn\" (click)=\"nextPage()\" [disabled]=\"page() === pageCount()\" aria-label=\"Next page\">\n <svg viewBox=\"0 0 24 24\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"2\" stroke-linecap=\"round\" stroke-linejoin=\"round\" aria-hidden=\"true\"><path d=\"m9 18 6-6-6-6\" /></svg>\n </button>\n @if (showFirstLast()) {\n <button type=\"button\" class=\"ith-table-page-btn\" (click)=\"lastPage()\" [disabled]=\"page() === pageCount()\" aria-label=\"Last page\">\n <svg viewBox=\"0 0 24 24\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"2\" stroke-linecap=\"round\" stroke-linejoin=\"round\" aria-hidden=\"true\"><path d=\"m13 17 5-5-5-5M6 17l5-5-5-5\" /></svg>\n </button>\n }\n <span class=\"ith-table-page-state\">Page {{ page() }} / {{ pageCount() }}</span>\n </nav>\n }\n\n @if (showPageSize()) {\n <label class=\"ith-table-page-size\">\n <span>Rows:</span>\n <select class=\"ith-table-select\" [value]=\"pageSize()\" (change)=\"onPageSizeChange($any($event.target).value)\">\n @for (size of pageSizeChoices(); track size) {\n <option [value]=\"size\">{{ size }}</option>\n }\n </select>\n </label>\n }\n </div>\n </div>\n }\n</div>\n", styles: [":host{display:block;--_brand: var(--ith-table-brand, #5b21b6);--_bg: var(--ith-table-bg, #ffffff);--_text: var(--ith-table-text, #1f2937);--_muted: var(--ith-table-muted, #6b7280);--_border: var(--ith-table-border, #e8eaf0);--_header-bg: var(--ith-table-header-bg, var(--_brand));--_header-text: var(--ith-table-header-text, #ffffff);--_hover: var(--ith-table-hover, color-mix(in srgb, var(--_brand) 6%, #ffffff));--_selected-bg: var(--ith-table-selected-bg, color-mix(in srgb, var(--_brand) 10%, #ffffff));--_striped-bg: var(--ith-table-striped-bg, color-mix(in srgb, var(--_brand) 2%, #ffffff));--_accent: var(--ith-table-accent, var(--_brand));--_accent-soft: var(--ith-table-accent-soft, color-mix(in srgb, var(--_brand) 12%, #ffffff));--_input-bg: var(--ith-table-input-bg, #ffffff);--_input-border: var(--ith-table-input-border, #dfe3ec);--_footer-bg: var(--ith-table-footer-bg, color-mix(in srgb, var(--_brand) 2%, #ffffff));--_filter-bg: var(--ith-table-filter-bg, color-mix(in srgb, var(--_brand) 3%, #ffffff));--_overlay: var(--ith-table-overlay, rgba(255, 255, 255, .72));--_radius: var(--ith-table-radius, 14px);--_shadow: var(--ith-table-shadow, 0 18px 40px -28px rgba(24, 20, 60, .55));--_focus: var(--ith-table-focus, color-mix(in srgb, var(--_brand) 25%, transparent));--_cell-padding: var(--ith-table-cell-padding, 12px 16px);--_font-size: var(--ith-table-font-size, 14px);--_header-font-size: var(--ith-table-header-font-size, 13px);--_row-height: var(--ith-table-row-height, 46px);--_head-height: var(--ith-table-head-height, 45px);--_filter-height: 47px;--_on-accent: #ffffff;--_toolbar-tint: color-mix(in srgb, var(--_brand) 3%, var(--_bg));--_popover-bg: var(--_bg);--_scroll-thumb: color-mix(in srgb, var(--_muted) 38%, transparent);--_danger: #dc2626;--_elevation: 0 18px 40px -18px rgba(17, 12, 46, .35), 0 0 0 1px color-mix(in srgb, var(--_border) 60%, transparent)}:host-context([data-theme=\"dark\"]),:host-context(.dark){--_brand: var(--ith-table-brand, #7c3aed);--_bg: var(--ith-table-bg, #161826);--_text: var(--ith-table-text, #e7e9f3);--_muted: var(--ith-table-muted, #9aa0b5);--_border: var(--ith-table-border, #2f3348);--_header-bg: var(--ith-table-header-bg, color-mix(in srgb, var(--_brand) 34%, #0b0d16));--_header-text: var(--ith-table-header-text, #f3eeff);--_hover: var(--ith-table-hover, color-mix(in srgb, var(--_brand) 15%, #161826));--_selected-bg: var(--ith-table-selected-bg, color-mix(in srgb, var(--_brand) 20%, #161826));--_striped-bg: var(--ith-table-striped-bg, color-mix(in srgb, var(--_brand) 6%, #161826));--_accent: var(--ith-table-accent, color-mix(in srgb, var(--_brand) 55%, #ffffff));--_accent-soft: var(--ith-table-accent-soft, color-mix(in srgb, var(--_brand) 26%, #161826));--_input-bg: var(--ith-table-input-bg, #202436);--_input-border: var(--ith-table-input-border, #343a52);--_footer-bg: var(--ith-table-footer-bg, color-mix(in srgb, var(--_brand) 4%, #12141f));--_filter-bg: var(--ith-table-filter-bg, color-mix(in srgb, var(--_brand) 9%, #161826));--_overlay: var(--ith-table-overlay, rgba(17, 19, 30, .72));--_shadow: var(--ith-table-shadow, 0 18px 40px -28px rgba(0, 0, 0, .85));--_focus: var(--ith-table-focus, color-mix(in srgb, var(--_brand) 38%, transparent));--_on-accent: #15121f;--_toolbar-tint: color-mix(in srgb, var(--_brand) 12%, var(--_bg));--_popover-bg: #1d2133;--_scroll-thumb: color-mix(in srgb, #ffffff 22%, transparent);--_danger: #f87171;--_elevation: 0 22px 48px -20px rgba(0, 0, 0, .8), 0 0 0 1px color-mix(in srgb, #ffffff 8%, transparent)}@media(prefers-color-scheme:dark){:host-context([data-theme=\"auto\"]){--_brand: var(--ith-table-brand, #7c3aed);--_bg: var(--ith-table-bg, #161826);--_text: var(--ith-table-text, #e7e9f3);--_muted: var(--ith-table-muted, #9aa0b5);--_border: var(--ith-table-border, #2f3348);--_header-bg: var(--ith-table-header-bg, color-mix(in srgb, var(--_brand) 34%, #0b0d16));--_header-text: var(--ith-table-header-text, #f3eeff);--_hover: var(--ith-table-hover, color-mix(in srgb, var(--_brand) 15%, #161826));--_selected-bg: var(--ith-table-selected-bg, color-mix(in srgb, var(--_brand) 20%, #161826));--_striped-bg: var(--ith-table-striped-bg, color-mix(in srgb, var(--_brand) 6%, #161826));--_accent: var(--ith-table-accent, color-mix(in srgb, var(--_brand) 55%, #ffffff));--_accent-soft: var(--ith-table-accent-soft, color-mix(in srgb, var(--_brand) 26%, #161826));--_input-bg: var(--ith-table-input-bg, #202436);--_input-border: var(--ith-table-input-border, #343a52);--_footer-bg: var(--ith-table-footer-bg, color-mix(in srgb, var(--_brand) 4%, #12141f));--_filter-bg: var(--ith-table-filter-bg, color-mix(in srgb, var(--_brand) 9%, #161826));--_overlay: var(--ith-table-overlay, rgba(17, 19, 30, .72));--_shadow: var(--ith-table-shadow, 0 18px 40px -28px rgba(0, 0, 0, .85));--_focus: var(--ith-table-focus, color-mix(in srgb, var(--_brand) 38%, transparent));--_on-accent: #15121f;--_toolbar-tint: color-mix(in srgb, var(--_brand) 12%, var(--_bg));--_popover-bg: #1d2133;--_scroll-thumb: color-mix(in srgb, #ffffff 22%, transparent);--_danger: #f87171;--_elevation: 0 22px 48px -20px rgba(0, 0, 0, .8), 0 0 0 1px color-mix(in srgb, #ffffff 8%, transparent)}}.ith-table{display:block;position:relative;background:var(--_bg);color:var(--_text);border:1px solid var(--_border);border-radius:var(--_radius);box-shadow:var(--_shadow);font-family:-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Oxygen,Ubuntu,Cantarell,Fira Sans,Droid Sans,Helvetica Neue,sans-serif;font-size:var(--_font-size);overflow:hidden}.ith-table-toolbar{padding:14px 16px;border-bottom:1px solid var(--_border);background:var(--_toolbar-tint)}.ith-table-toolbar-inner{display:flex;align-items:center;gap:12px;flex-wrap:nowrap;min-width:0;overflow-x:auto;scrollbar-width:none}.ith-table-toolbar-inner::-webkit-scrollbar{display:none}.ith-table-toolbar-main{display:flex;align-items:center;gap:10px;flex-wrap:nowrap;min-width:0;flex:0 0 auto}.ith-table-toolbar-spacer{flex:1 1 auto;min-width:8px}.ith-table-title{margin:0;font-size:15.5px;font-weight:650;letter-spacing:-.015em;color:var(--_text);white-space:nowrap}.ith-table-badge{display:inline-flex;align-items:center;padding:3px 10px;border-radius:999px;background:var(--_accent-soft);color:var(--_accent);font-size:11.5px;font-weight:600;line-height:1.4;white-space:nowrap}.ith-table-badge-accent{background:var(--_accent);color:var(--_on-accent);box-shadow:0 0 0 1px color-mix(in srgb,var(--_accent) 30%,transparent)}.ith-table-search{position:relative;flex:0 1 260px;min-width:180px}.ith-table-search-icon{position:absolute;left:12px;top:50%;width:15px;height:15px;transform:translateY(-50%);color:var(--_muted);pointer-events:none}.ith-table-search-input{width:100%;box-sizing:border-box;height:36px;padding:0 34px 0 36px;border:1px solid var(--_input-border);border-radius:10px;background:var(--_input-bg);color:var(--_text);font-size:13px;font-family:inherit;transition:border-color .15s ease,box-shadow .15s ease,background-color .15s ease}.ith-table-search-input:hover{border-color:color-mix(in srgb,var(--_accent) 35%,var(--_input-border))}.ith-table-search-input::placeholder{color:var(--_muted)}.ith-table-search-input::-webkit-search-cancel-button,.ith-table-search-input::-webkit-search-decoration,.ith-table-search-input::-webkit-search-results-button,.ith-table-search-input::-webkit-search-results-decoration{-webkit-appearance:none;appearance:none;display:none}.ith-table-search-input:focus{outline:none;border-color:var(--_accent);box-shadow:0 0 0 3px var(--_focus);background:var(--_bg)}.ith-table-search-clear{position:absolute;right:6px;top:50%;transform:translateY(-50%);width:24px;height:24px;display:grid;place-items:center;border:0;border-radius:7px;background:transparent;color:var(--_muted);cursor:pointer;transition:background-color .12s ease,color .12s ease}.ith-table-search-clear svg{width:14px;height:14px}.ith-table-search-clear:hover{background:var(--_accent-soft);color:var(--_accent)}.ith-table-scroll{position:relative;overflow:auto;scrollbar-width:thin;scrollbar-color:var(--_scroll-thumb) transparent}.ith-table-scroll::-webkit-scrollbar{width:10px;height:10px}.ith-table-scroll::-webkit-scrollbar-track{background:transparent}.ith-table-scroll::-webkit-scrollbar-thumb{border:3px solid transparent;border-radius:999px;background-color:var(--_scroll-thumb);background-clip:content-box}.ith-table-scroll::-webkit-scrollbar-thumb:hover{background-color:color-mix(in srgb,var(--_scroll-thumb) 75%,var(--_text))}.ith-table-scroll:not(.ith-table-scroll-bounded){min-height:calc(var(--_head-height) + var(--_row-height) * var(--_min-rows, 4))}.ith-table-scroll:not(.ith-table-scroll-bounded).ith-table-scroll-filtered{min-height:calc(var(--_head-height) + var(--_filter-height) + var(--_row-height) * var(--_min-rows, 4))}.ith-table-grid{width:100%;border-collapse:separate;border-spacing:0;table-layout:auto}.ith-table-head-row th{background:var(--_header-bg);color:var(--_header-text);font-size:var(--_header-font-size);font-weight:600;letter-spacing:.01em;text-align:left;padding:13px 16px;white-space:nowrap;border:0}.ith-table-sticky .ith-table-head-row th{position:sticky;top:0;z-index:2}.ith-table-th-label{display:inline-block}.ith-table-sort{display:inline-flex;align-items:center;justify-content:flex-start;gap:8px;width:100%;padding:0;border:0;background:transparent;color:inherit;font:inherit;letter-spacing:inherit;cursor:pointer;text-align:inherit}.ith-table-sort-icons{display:inline-flex;flex-direction:column;gap:2px;opacity:.5}.ith-table-sort-icons svg{width:8px;height:5px;fill:currentColor;opacity:.5;transition:opacity .15s ease}.ith-table-sort-icons svg.is-active{opacity:1}.ith-table-sort.is-sorted .ith-table-sort-icons{opacity:1}.ith-table-select-cell{width:46px;text-align:center;padding-left:14px;padding-right:10px}.ith-table-checkbox{width:16px;height:16px;margin:0;cursor:pointer;accent-color:var(--_accent);vertical-align:middle}.ith-table-checkbox:focus-visible{outline:2px solid var(--_accent);outline-offset:2px}.ith-table-row{background:var(--_bg);transition:background-color .15s ease}.ith-table-hoverable .ith-table-row:hover{background:var(--_hover)}.ith-table-row.ith-table-row-selected{background:var(--_selected-bg)}.ith-table-row.ith-table-row-selected td:first-child{box-shadow:inset 3px 0 0 var(--_accent)}.ith-table-row-clickable{cursor:pointer}.ith-table-td{padding:var(--_cell-padding);border-bottom:1px solid var(--_border);font-size:var(--_font-size);color:var(--_text);vertical-align:middle;white-space:nowrap;background:transparent}.ith-table-row:last-child .ith-table-td{border-bottom:0}.ith-table-align-left{text-align:left}.ith-table-align-center{text-align:center}.ith-table-align-right,.ith-table-actions-head{text-align:right}.ith-table-actions-cell{padding:var(--_cell-padding);border-bottom:1px solid var(--_border);text-align:right;white-space:nowrap}.ith-table-row:last-child .ith-table-actions-cell{border-bottom:0}.ith-table-action{display:inline-flex;align-items:center;gap:4px;padding:5px 9px;margin-left:4px;border:1px solid var(--_border);border-radius:7px;background:transparent;color:var(--_accent);font-family:inherit;font-size:12px;font-weight:500;line-height:1.2;cursor:pointer;transition:background-color .15s ease,border-color .15s ease}.ith-table-action:hover:not(:disabled){background:var(--_accent-soft);border-color:var(--_accent)}.ith-table-action:disabled{opacity:.45;cursor:not-allowed}.ith-table-action-icon{font-size:12px;line-height:1}.ith-table-action.is-danger{color:var(--_danger);border-color:color-mix(in srgb,var(--_danger) 35%,transparent)}.ith-table-filter-row th{background:var(--_filter-bg);padding:8px 10px;border-bottom:1px solid var(--_border);border-top:1px solid var(--_border)}.ith-table-filter-input{width:100%;box-sizing:border-box;height:30px;padding:0 9px;border:1px solid var(--_input-border);border-radius:7px;background:var(--_input-bg);color:var(--_text);font-family:inherit;font-size:12px}.ith-table-filter-select{cursor:pointer;padding-right:4px}.ith-table-filter-input:focus{outline:none;border-color:var(--_accent);box-shadow:0 0 0 3px var(--_focus)}.ith-table-filter-input::placeholder{color:var(--_muted)}.ith-table-status{padding:40px 16px;text-align:center;color:var(--_muted);font-size:13px}.ith-table-empty{display:flex;flex-direction:column;align-items:center;gap:8px}.ith-table-empty svg{width:36px;height:36px;opacity:.45}.ith-table-spinner{display:inline-block;width:16px;height:16px;border:2px solid var(--_accent-soft);border-top-color:var(--_accent);border-radius:50%;animation:ith-table-spin .7s linear infinite;vertical-align:middle}@keyframes ith-table-spin{to{transform:rotate(360deg)}}.ith-table-loading-overlay{position:absolute;inset:0;display:flex;align-items:center;justify-content:center;gap:8px;background:var(--_overlay);-webkit-backdrop-filter:blur(1px);backdrop-filter:blur(1px);color:var(--_text);font-size:13px;font-weight:500;z-index:3}.ith-table-link{padding:0;border:0;background:none;color:var(--_accent);font-family:inherit;font-size:12px;text-decoration:underline;text-underline-offset:3px;cursor:pointer}.ith-table-footer{display:flex;align-items:center;justify-content:space-between;gap:12px;flex-wrap:wrap;padding:12px 16px;border-top:1px solid var(--_border);background:var(--_footer-bg);font-size:12px;color:var(--_muted)}.ith-table-footer-info{display:flex;align-items:center;gap:16px;flex-wrap:wrap}.ith-table-footer-info strong{color:var(--_text);font-weight:600}.ith-table-footer-controls{display:flex;align-items:center;gap:14px;flex-wrap:wrap}.ith-table-pagination{display:flex;align-items:center;gap:4px}.ith-table-page-btn{display:inline-grid;place-items:center;min-width:30px;height:30px;padding:0 6px;border:1px solid var(--_border);border-radius:7px;background:var(--_bg);color:var(--_text);font-family:inherit;font-size:12px;font-weight:500;cursor:pointer;transition:background-color .15s ease,border-color .15s ease,color .15s ease}.ith-table-page-btn svg{width:14px;height:14px}.ith-table-page-btn:hover:not(:disabled){border-color:var(--_accent);color:var(--_accent);background:var(--_accent-soft)}.ith-table-page-btn:disabled{opacity:.4;cursor:not-allowed}.ith-table-page-number{min-width:30px}.ith-table-page-number.is-active{background:var(--_accent);border-color:var(--_accent);color:var(--_on-accent)}.ith-table-page-number.is-active:hover{background:var(--_accent);color:var(--_on-accent)}.ith-table-page-state{margin-left:6px;white-space:nowrap}.ith-table-page-size{display:inline-flex;align-items:center;gap:6px;white-space:nowrap}.ith-table-select{height:30px;padding:0 6px;border:1px solid var(--_border);border-radius:7px;background:var(--_bg);color:var(--_text);font-family:inherit;font-size:12px;cursor:pointer}.ith-table-select:focus-visible,.ith-table-page-btn:focus-visible,.ith-table-action:focus-visible,.ith-table-link:focus-visible{outline:2px solid var(--_accent);outline-offset:2px}.ith-table-dense{--ith-table-cell-padding: 8px 12px;--ith-table-font-size: 13px;--ith-table-header-font-size: 12px;--_cell-padding: 8px 12px;--_font-size: 13px;--_header-font-size: 12px;--_row-height: 39px;--_head-height: 38px}.ith-table-dense .ith-table-head-row th{padding:10px 12px}.ith-table-striped .ith-table-row:nth-child(2n){background:var(--_striped-bg)}.ith-table-bordered .ith-table-td,.ith-table-bordered .ith-table-actions-cell,.ith-table-bordered .ith-table-head-row th,.ith-table-bordered .ith-table-filter-row th{border-right:1px solid var(--_border)}.ith-table-bordered .ith-table-head-row th:last-child,.ith-table-bordered .ith-table-filter-row th:last-child{border-right:0}.ith-table-bordered .ith-table-td:last-child,.ith-table-bordered .ith-table-actions-cell:last-child{border-right:0}@media(prefers-reduced-motion:reduce){.ith-table-row,.ith-table-action,.ith-table-page-btn,.ith-table-search-input,.ith-table-sort-icons svg{transition:none}.ith-table-spinner{animation-duration:2.4s}}@media(max-width:640px){.ith-table-footer{align-items:stretch;flex-direction:column}.ith-table-toolbar-inner{gap:10px}.ith-table-search{flex:1 1 auto}.ith-table-footer-controls{justify-content:space-between}.ith-table-page-state{display:none}}.ith-table-toolbar-actions{display:flex;align-items:center;gap:10px;flex-wrap:nowrap;flex:0 0 auto}.ith-table-tool-btn{display:inline-flex;align-items:center;gap:7px;height:36px;padding:0 13px;border:1px solid var(--_input-border);border-radius:10px;background:var(--_input-bg);color:var(--_text);font:inherit;font-size:12.5px;font-weight:600;cursor:pointer;white-space:nowrap;transition:border-color .14s ease,background-color .14s ease,color .14s ease,box-shadow .14s ease}.ith-table-tool-icon{width:15px;height:15px;flex-shrink:0;opacity:.8}.ith-table-tool-btn:hover .ith-table-tool-icon,.ith-table-tool-btn[aria-expanded=true] .ith-table-tool-icon,.ith-table-tool-btn[aria-pressed=true] .ith-table-tool-icon{opacity:1}.ith-table-tool-btn:hover{border-color:color-mix(in srgb,var(--_accent) 45%,var(--_input-border));background:color-mix(in srgb,var(--_accent) 4%,var(--_input-bg));color:var(--_accent)}.ith-table-tool-btn[aria-expanded=true],.ith-table-tool-btn[aria-pressed=true]{border-color:var(--_accent);background:var(--_accent-soft);color:var(--_accent);box-shadow:0 0 0 1px color-mix(in srgb,var(--_accent) 20%,transparent)}.ith-table-tool-btn:focus-visible{outline:none;box-shadow:0 0 0 3px var(--_focus)}.ith-table-menu-anchor{position:relative;display:inline-flex}.ith-table-segmented{display:inline-flex;align-items:center;gap:2px;height:36px;padding:3px;border:1px solid var(--_input-border);border-radius:10px;background:var(--_input-bg)}.ith-table-segmented-btn{display:inline-flex;align-items:center;gap:5px;height:28px;padding:0 10px;border:0;border-radius:7px;background:transparent;color:var(--_muted);font:inherit;font-size:12.5px;font-weight:600;white-space:nowrap;cursor:pointer;transition:background-color .12s ease,color .12s ease}.ith-table-segmented-btn svg{width:13px;height:13px}.ith-table-segmented-btn:hover{color:var(--_accent)}.ith-table-segmented-btn.is-active{background:var(--_accent-soft);color:var(--_accent);box-shadow:0 0 0 1px color-mix(in srgb,var(--_accent) 22%,transparent)}.ith-table-segmented-btn:focus-visible{outline:none;box-shadow:0 0 0 3px var(--_focus)}.ith-table-popover{position:fixed;z-index:900;width:250px;max-height:380px;display:flex;flex-direction:column;overflow:hidden;border:1px solid var(--_border);border-radius:12px;background:var(--_popover-bg);color:var(--_text);box-shadow:var(--_elevation);font-size:13px}.ith-table-popover-header{padding:10px 12px 8px;font-size:11.5px;font-weight:700;letter-spacing:.04em;text-transform:uppercase;color:var(--_muted)}.ith-table-popover-list{padding:0 6px 6px;overflow-y:auto;max-height:280px}.ith-table-popover-footer{display:flex;gap:6px;padding:6px;border-top:1px solid var(--_border);background:color-mix(in srgb,var(--_brand) 2%,var(--_bg))}.ith-table-popover-action{flex:1 1 auto;padding:7px 8px;border:0;border-radius:8px;background:transparent;color:var(--_accent);font:inherit;font-size:12.5px;font-weight:600;cursor:pointer}.ith-table-popover-action:hover{background:var(--_accent-soft)}.ith-table-popover-empty{margin:0;padding:10px 12px;color:var(--_muted);font-size:12.5px}.ith-table-columns-item{display:flex;align-items:center;gap:10px;padding:7px 8px;border-radius:8px;font-size:13px;cursor:pointer;transition:background-color .12s ease}.ith-table-columns-item:hover{background:var(--_hover)}.ith-table-columns-item input:disabled{opacity:.4;cursor:not-allowed}.ith-table-pin-tag{margin-left:auto;padding:1px 7px;border-radius:999px;background:var(--_accent-soft);color:var(--_accent);font-size:10px;font-weight:700;letter-spacing:.04em;text-transform:uppercase}.ith-table-view-item{display:flex;align-items:center;gap:4px;padding-right:4px;border-radius:8px}.ith-table-view-item:hover{background:var(--_hover)}.ith-table-view-item.is-active .ith-table-view-apply{color:var(--_accent);font-weight:650}.ith-table-view-apply{flex:1 1 auto;padding:7px 8px;border:0;background:transparent;color:var(--_text);font:inherit;font-size:13px;text-align:left;cursor:pointer}.ith-table-view-delete{display:grid;place-items:center;width:24px;height:24px;padding:0;border:0;border-radius:6px;background:transparent;color:var(--_muted);cursor:pointer}.ith-table-view-delete svg{width:11px;height:11px}.ith-table-view-delete:hover{background:var(--_accent-soft);color:var(--_accent)}.ith-table-view-save{align-items:center}.ith-table-view-input{flex:1 1 auto;min-width:0;height:30px;padding:0 9px;border:1px solid var(--_input-border);border-radius:8px;background:var(--_input-bg);color:var(--_text);font:inherit;font-size:12.5px}.ith-table-view-input:focus{outline:none;border-color:var(--_accent);box-shadow:0 0 0 3px var(--_focus)}.ith-table-column-menu{width:220px;padding:6px}.ith-table-menu-item{display:block;width:100%;padding:8px 10px;border:0;border-radius:8px;background:transparent;color:var(--_text);font:inherit;font-size:13px;text-align:left;cursor:pointer}.ith-table-menu-item:hover{background:var(--_accent-soft);color:var(--_accent)}.ith-table-menu-divider{height:1px;margin:5px 6px;background:var(--_border)}.ith-table.ith-table-compact{--ith-table-cell-padding: 7px 12px;--_cell-padding: var(--ith-table-compact-padding, 7px 12px);--_font-size: var(--ith-table-compact-font-size, 13px);--_header-font-size: 12.5px;--_row-height: 39px;--_head-height: 39px}.ith-table.ith-table-compact .ith-table-head-row th{padding:10px 12px}.ith-table.ith-table-compact .ith-table-filter-row th{padding:6px 10px}.ith-table-sticky-start,.ith-table-sticky-end{position:sticky;z-index:3;background:var(--_bg)}.ith-table-sticky-start{box-shadow:inset -1px 0 0 var(--_border)}.ith-table-sticky-end{box-shadow:inset 1px 0 0 var(--_border)}.ith-table-striped .ith-table-row:nth-child(2n) .ith-table-sticky-start,.ith-table-striped .ith-table-row:nth-child(2n) .ith-table-sticky-end{background:var(--_striped-bg)}.ith-table-row-selected .ith-table-sticky-start,.ith-table-row-selected .ith-table-sticky-end{background:var(--_selected-bg)}.ith-table-row:hover .ith-table-sticky-start,.ith-table-row:hover .ith-table-sticky-end{background:var(--_hover)}thead .ith-table-sticky-start,thead .ith-table-sticky-end{z-index:7;background:var(--_header-bg)}.ith-table-filter-row .ith-table-sticky-start,.ith-table-filter-row .ith-table-sticky-end{z-index:6;background:var(--_filter-bg)}.ith-table-td:not(.ith-table-sticky-start):not(.ith-table-sticky-end){position:relative}.ith-table-td.ith-table-copyable{padding-inline-end:36px}.ith-table-copy{position:absolute;inset-inline-end:8px;top:50%;display:grid;place-items:center;width:24px;height:24px;padding:0;transform:translateY(-50%);border:1px solid transparent;border-radius:7px;background:var(--_bg);color:var(--_muted);cursor:pointer;opacity:0;pointer-events:none;transition:opacity .12s ease,color .12s ease,border-color .12s ease}.ith-table-copy svg{width:14px;height:14px}.ith-table-td:hover .ith-table-copy,.ith-table-td:focus-within .ith-table-copy,.ith-table-copy.is-copied{opacity:1;pointer-events:auto}.ith-table-copy:hover{border-color:var(--_accent);color:var(--_accent)}.ith-table-copy.is-copied{color:var(--_accent)}.ith-table-td:focus-visible{outline:2px solid var(--_accent);outline-offset:-2px}.ith-table-skeleton{display:block;width:72%;height:12px;border-radius:6px;background:linear-gradient(90deg,var(--_border) 25%,var(--_hover) 37%,var(--_border) 63%);background-size:400% 100%;animation:ith-table-shimmer 1.4s ease infinite}.ith-table-skeleton.is-check{width:16px;height:16px;border-radius:4px;margin:0 auto}@keyframes ith-table-shimmer{0%{background-position:100% 50%}to{background-position:0 50%}}.ith-table-visually-hidden{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}.ith-table-menu{position:fixed;z-index:1000;min-width:180px;max-width:280px;padding:6px;border:1px solid var(--_border);border-radius:10px;background:var(--_popover-bg);color:var(--_text);box-shadow:var(--_elevation);font-size:13px}@media(prefers-reduced-motion:reduce){.ith-table-skeleton{animation:none}.ith-table-copy,.ith-table-tool-btn{transition:none}}.ith-table-th-inner{display:flex;align-items:center;gap:6px;min-width:0}.ith-table-th-inner>*:first-child{min-width:0}.ith-table-th:not(.ith-table-sticky-start):not(.ith-table-sticky-end){position:relative}.ith-table-th-menu{display:grid;place-items:center;flex:0 0 auto;width:20px;height:20px;padding:0;border:0;border-radius:6px;background:transparent;color:inherit;cursor:pointer;opacity:0;transition:opacity .12s ease,background-color .12s ease}.ith-table-th-menu svg{width:13px;height:13px}.ith-table-th:hover .ith-table-th-menu,.ith-table-th-menu[aria-expanded=true],.ith-table-th-menu:focus-visible{opacity:.85}.ith-table-th-menu:hover{background:color-mix(in srgb,currentColor 20%,transparent);opacity:1}.ith-table-th-menu:focus-visible{outline:2px solid currentColor;outline-offset:1px}.ith-table-resizer{position:absolute;top:0;inset-inline-end:-4px;bottom:0;width:9px;z-index:4;cursor:col-resize;touch-action:none}.ith-table-resizer:after{content:\"\";position:absolute;top:22%;bottom:22%;inset-inline-start:4px;width:2px;border-radius:2px;background:transparent;transition:background-color .12s ease}.ith-table-th:hover .ith-table-resizer:after{background:color-mix(in srgb,currentColor 40%,transparent)}.ith-table-th-dragging{opacity:.5}.ith-table-drop-target{box-shadow:inset 3px 0 0 var(--_accent)}.ith-table-pin-dot{flex:0 0 auto;width:6px;height:6px;border-radius:50%;background:currentColor;opacity:.55}.ith-table-sticky .ith-table-scroll.is-scrolled .ith-table-head-row th{box-shadow:0 1px 0 var(--_border),0 10px 16px -14px #0c0a1e8c}.ith-table-chips{display:flex;align-items:center;flex-wrap:wrap;gap:6px;margin-top:10px}.ith-table-chip{display:inline-flex;align-items:center;gap:6px;max-width:260px;padding:3px 4px 3px 9px;border:1px solid color-mix(in srgb,var(--_accent) 24%,transparent);border-radius:999px;background:var(--_accent-soft);color:var(--_accent);font-size:11.5px;font-weight:600}.ith-table-chip-label{font-size:10px;letter-spacing:.04em;text-transform:uppercase;opacity:.7}.ith-table-chip-value{max-width:150px;overflow:hidden;font-weight:500;text-overflow:ellipsis;white-space:nowrap}.ith-table-chip-remove{display:grid;place-items:center;width:18px;height:18px;padding:0;border:0;border-radius:50%;background:color-mix(in srgb,var(--_accent) 16%,transparent);color:inherit;cursor:pointer}.ith-table-chip-remove svg{width:9px;height:9px}.ith-table-chip-remove:hover{background:var(--_accent);color:var(--_on-accent)}.ith-table-chips-clear{padding:3px 8px;border:0;border-radius:999px;background:transparent;color:var(--_muted);font:inherit;font-size:11.5px;text-decoration:underline;text-underline-offset:3px;cursor:pointer}.ith-table-chips-clear:hover{color:var(--_accent)}.ith-table-selection-bar{display:flex;align-items:center;gap:10px;flex-wrap:wrap;padding:8px 16px;border-bottom:1px solid color-mix(in srgb,var(--_accent) 28%,var(--_border));background:var(--_accent-soft);color:var(--_accent);font-size:12.5px}.ith-table-selection-count strong{font-weight:700}.ith-table-selection-spacer{flex:1 1 auto}.ith-table-selection-actions{display:flex;align-items:center;gap:6px;flex-wrap:wrap}.ith-table-selection-btn{display:inline-flex;align-items:center;gap:5px;height:28px;padding:0 10px;border:1px solid color-mix(in srgb,var(--_accent) 35%,transparent);border-radius:8px;background:var(--_bg);color:var(--_accent);font:inherit;font-size:12px;font-weight:600;cursor:pointer;transition:background-color .12s ease,color .12s ease}.ith-table-selection-btn:hover{background:var(--_accent);color:var(--_on-accent)}.ith-table-selection-btn.is-danger{border-color:color-mix(in srgb,var(--_danger) 40%,transparent);color:var(--_danger)}.ith-table-selection-btn.is-danger:hover{background:var(--_danger);color:#fff}.ith-table-selection-clear{border:0;background:transparent;color:var(--_muted);font:inherit;font-size:12px;text-decoration:underline;text-underline-offset:3px;cursor:pointer}.ith-table-selection-clear:hover{color:var(--_accent)}.ith-table-expander-cell{width:38px;padding:0 0 0 10px;text-align:center}th.ith-table-expander-cell{background:var(--_header-bg)}.ith-table-expander{display:grid;place-items:center;width:22px;height:22px;padding:0;border:0;border-radius:6px;background:transparent;color:var(--_muted);cursor:pointer;transition:transform .15s ease,color .12s ease,background-color .12s ease}.ith-table-expander svg{width:13px;height:13px}.ith-table-expander:hover{background:var(--_accent-soft);color:var(--_accent)}.ith-table-expander.is-open{transform:rotate(90deg);color:var(--_accent)}.ith-table-detail-row>td{padding:14px 16px;border-bottom:1px solid var(--_border);background:var(--_striped-bg);white-space:normal}.ith-table-total-cell{padding:var(--_cell-padding);border-top:1px solid var(--_border);background:var(--_filter-bg);font-size:12px;white-space:nowrap}.ith-table-total-row .ith-table-select-cell,.ith-table-total-row .ith-table-expander-cell{border-top:1px solid var(--_border);background:var(--_filter-bg)}.ith-table-total-label{margin-inline-end:6px;font-size:10px;font-weight:700;letter-spacing:.04em;text-transform:uppercase;color:var(--_muted)}.ith-table-total-value{font-weight:650;color:var(--_text)}@media(prefers-reduced-motion:reduce){.ith-table-expander,.ith-table-th-menu,.ith-table-selection-btn{transition:none}}.ith-table-export-menu{width:236px;padding:6px}.ith-table-export-name{display:block;font-weight:650}.ith-table-export-hint{display:block;margin-top:2px;font-size:11px;font-weight:500;color:var(--_muted)}.ith-table-menu-item:hover .ith-table-export-hint{color:inherit;opacity:.75}:host-context([data-theme=\"dark\"]) .ith-table,:host-context(.dark) .ith-table{box-shadow:var(--_shadow),inset 0 0 0 1px color-mix(in srgb,#ffffff 6%,transparent)}@media(prefers-color-scheme:dark){:host-context([data-theme=\"auto\"]) .ith-table{box-shadow:var(--_shadow),inset 0 0 0 1px color-mix(in srgb,#ffffff 6%,transparent)}}:host-context([data-theme=\"dark\"]) .ith-table-td,:host-context(.dark) .ith-table-td,:host-context([data-theme=\"dark\"]) .ith-table-actions-cell,:host-context(.dark) .ith-table-actions-cell{border-color:color-mix(in srgb,var(--_border) 78%,#ffffff)}:host-context([data-theme=\"dark\"]) .ith-table-row.ith-table-row-selected td:first-child,:host-context(.dark) .ith-table-row.ith-table-row-selected td:first-child{box-shadow:inset 3px 0 0 var(--_accent)}:host-context([data-theme=\"dark\"]) .ith-table-sort-icons,:host-context(.dark) .ith-table-sort-icons{opacity:.65}\n"] }]
2016
+ args: [{ selector: 'ith-table', imports: [NgClass, NgTemplateOutlet], changeDetection: ChangeDetectionStrategy.OnPush, template: "<div\n class=\"ith-table\"\n [class.ith-table-bordered]=\"bordered()\"\n [class.ith-table-dense]=\"dense()\"\n [class.ith-table-striped]=\"striped()\"\n [class.ith-table-hoverable]=\"hoverable()\"\n [class.ith-table-sticky]=\"stickyHeader()\"\n [class.ith-table-compact]=\"compact()\">\n <!-- Toolbar -->\n @if (showToolbar()) {\n <div class=\"ith-table-toolbar\">\n <div class=\"ith-table-toolbar-inner\">\n <div class=\"ith-table-toolbar-main\">\n @if (title()) {\n <h3 class=\"ith-table-title\">{{ title() }}</h3>\n }\n <span class=\"ith-table-badge\">{{ totalRows() }} {{ countSuffix() }}</span>\n @if (selected().length > 0) {\n <span class=\"ith-table-badge ith-table-badge-accent\">{{ selected().length }} selected</span>\n }\n @if (toolbarTemplate(); as toolbarTpl) {\n <ng-container\n [ngTemplateOutlet]=\"toolbarTpl\"\n [ngTemplateOutletContext]=\"toolbarContext()\" />\n }\n </div>\n\n <div class=\"ith-table-toolbar-spacer\"></div>\n\n <div class=\"ith-table-toolbar-actions\">\n @if (showViews()) {\n <div class=\"ith-table-menu-anchor\" (click)=\"$event.stopPropagation()\">\n <button\n type=\"button\"\n class=\"ith-table-tool-btn\"\n aria-haspopup=\"true\"\n [attr.aria-expanded]=\"viewsOpen()\"\n (click)=\"toggleViews($event)\">\n <svg class=\"ith-table-tool-icon\" viewBox=\"0 0 24 24\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"1.8\" stroke-linecap=\"round\" stroke-linejoin=\"round\" aria-hidden=\"true\">\n <path d=\"M4 6h16M4 12h10M4 18h7\" />\n </svg>\n <span>Views</span>\n </button>\n </div>\n }\n\n @if (showColumnPicker()) {\n <div class=\"ith-table-menu-anchor\" (click)=\"$event.stopPropagation()\">\n <button\n type=\"button\"\n class=\"ith-table-tool-btn\"\n aria-haspopup=\"true\"\n [attr.aria-expanded]=\"columnPickerOpen()\"\n (click)=\"toggleColumnPicker($event)\">\n <svg class=\"ith-table-tool-icon\" viewBox=\"0 0 24 24\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"1.8\" stroke-linecap=\"round\" stroke-linejoin=\"round\" aria-hidden=\"true\">\n <rect x=\"3\" y=\"4\" width=\"7\" height=\"16\" rx=\"1.5\" />\n <rect x=\"14\" y=\"4\" width=\"7\" height=\"16\" rx=\"1.5\" />\n </svg>\n <span>Columns</span>\n </button>\n </div>\n }\n\n @if (showDensityToggle()) {\n <div class=\"ith-table-segmented\" role=\"group\" aria-label=\"Row density\">\n <button\n type=\"button\"\n class=\"ith-table-segmented-btn\"\n [class.is-active]=\"!compact()\"\n [attr.aria-pressed]=\"!compact()\"\n title=\"Comfortable rows\"\n (click)=\"setDensity('comfortable')\">\n <svg viewBox=\"0 0 24 24\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"1.8\" stroke-linecap=\"round\" aria-hidden=\"true\">\n <path d=\"M4 8h16M4 16h16\" />\n </svg>\n <span>Comfortable</span>\n </button>\n <button\n type=\"button\"\n class=\"ith-table-segmented-btn\"\n [class.is-active]=\"compact()\"\n [attr.aria-pressed]=\"compact()\"\n title=\"Compact rows\"\n (click)=\"setDensity('compact')\">\n <svg viewBox=\"0 0 24 24\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"1.8\" stroke-linecap=\"round\" aria-hidden=\"true\">\n <path d=\"M4 6h16M4 10h16M4 14h16M4 18h16\" />\n </svg>\n <span>Compact</span>\n </button>\n </div>\n }\n\n @if (showExport()) {\n <div class=\"ith-table-menu-anchor\" (click)=\"$event.stopPropagation()\">\n <button\n type=\"button\"\n class=\"ith-table-tool-btn\"\n aria-haspopup=\"true\"\n [attr.aria-expanded]=\"!!exportMenuPos()\"\n title=\"Export the current view\"\n (click)=\"toggleExportMenu($event)\">\n <svg class=\"ith-table-tool-icon\" viewBox=\"0 0 24 24\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"1.8\" stroke-linecap=\"round\" stroke-linejoin=\"round\" aria-hidden=\"true\">\n <path d=\"M12 4v11m0 0 4-4m-4 4-4-4\" />\n <path d=\"M4 19h16\" />\n </svg>\n <span>Export</span>\n </button>\n </div>\n }\n\n @if (searchable()) {\n <div class=\"ith-table-search\">\n <svg class=\"ith-table-search-icon\" viewBox=\"0 0 24 24\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"2\" stroke-linecap=\"round\" aria-hidden=\"true\">\n <circle cx=\"11\" cy=\"11\" r=\"7\" />\n <path d=\"m20 20-3.6-3.6\" />\n </svg>\n <input\n type=\"search\"\n class=\"ith-table-search-input\"\n [value]=\"search()\"\n [attr.placeholder]=\"searchPlaceholder()\"\n [attr.aria-label]=\"searchPlaceholder()\"\n (input)=\"onSearchInput($any($event.target).value)\" />\n @if (search()) {\n <button type=\"button\" class=\"ith-table-search-clear\" (click)=\"clearSearch()\" aria-label=\"Clear search\">\n <svg viewBox=\"0 0 24 24\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"2\" stroke-linecap=\"round\" aria-hidden=\"true\">\n <path d=\"M6 6l12 12M18 6 6 18\" />\n </svg>\n </button>\n }\n </div>\n }\n </div>\n </div>\n\n @if (showFilterChips() && hasQuery()) {\n <div class=\"ith-table-chips\">\n @for (chip of filterChips(); track chip.kind + chip.key) {\n <span class=\"ith-table-chip\">\n <span class=\"ith-table-chip-label\">{{ chip.label }}</span>\n <span class=\"ith-table-chip-value\">{{ chip.value }}</span>\n <button\n type=\"button\"\n class=\"ith-table-chip-remove\"\n [attr.aria-label]=\"'Remove ' + chip.label + ' filter'\"\n (click)=\"removeChip(chip)\">\n <svg viewBox=\"0 0 24 24\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"2\" stroke-linecap=\"round\" aria-hidden=\"true\">\n <path d=\"M6 6l12 12M18 6 6 18\" />\n </svg>\n </button>\n </span>\n }\n <button type=\"button\" class=\"ith-table-chips-clear\" (click)=\"clearQuery()\">Clear all</button>\n </div>\n }\n </div>\n }\n\n <!-- Bulk actions for the current selection -->\n @if (selected().length > 0 && selectionActions().length) {\n <div class=\"ith-table-selection-bar\" role=\"region\" aria-label=\"Selection actions\">\n <span class=\"ith-table-selection-count\">\n <strong>{{ selected().length }}</strong> selected\n </span>\n <span class=\"ith-table-selection-spacer\"></span>\n <div class=\"ith-table-selection-actions\">\n @for (action of selectionActions(); track action.id) {\n <button\n type=\"button\"\n class=\"ith-table-selection-btn\"\n [ngClass]=\"action.class ?? ''\"\n [attr.title]=\"action.title ?? action.label\"\n (click)=\"onSelectionAction(action, $event)\">\n @if (action.icon) {\n <span class=\"ith-table-selection-icon\" aria-hidden=\"true\">{{ action.icon }}</span>\n }\n <span>{{ action.label }}</span>\n </button>\n }\n <button type=\"button\" class=\"ith-table-selection-clear\" (click)=\"clearSelection()\">\n Clear selection\n </button>\n </div>\n </div>\n }\n\n <!-- Table -->\n <div\n class=\"ith-table-scroll\"\n [class.ith-table-scroll-bounded]=\"!!maxHeight()\"\n [class.ith-table-scroll-filtered]=\"showFilters()\"\n [class.is-scrolled]=\"scrolled()\"\n [style.maxHeight]=\"maxHeight() || null\"\n [style.--_min-rows]=\"minRows()\"\n (scroll)=\"onScroll($event)\">\n <table class=\"ith-table-grid\" [attr.aria-label]=\"ariaLabel()\" [attr.aria-busy]=\"loading()\">\n <thead>\n <tr class=\"ith-table-head-row\">\n @if (selectable()) {\n <th\n scope=\"col\"\n class=\"ith-table-select-cell\"\n [class.ith-table-sticky-start]=\"stickySelection()\"\n [style.left]=\"stickySelection() ? '0px' : null\">\n @if (selectionMode() === 'multi') {\n <input\n type=\"checkbox\"\n class=\"ith-table-checkbox\"\n [checked]=\"allPageSelected()\"\n [indeterminate]=\"somePageSelected()\"\n [attr.aria-label]=\"'Select all rows'\"\n (change)=\"onSelectAllChange($event)\" />\n }\n </th>\n }\n\n @if (hasExpander()) {\n <th scope=\"col\" class=\"ith-table-expander-cell\" [attr.aria-label]=\"'Row details'\"></th>\n }\n\n @for (column of visibleColumns(); track column.key) {\n <th\n scope=\"col\"\n class=\"ith-table-th\"\n [ngClass]=\"headerClasses(column)\"\n [style]=\"columnStyle(column)\"\n [attr.data-col]=\"column.key\"\n [attr.aria-sort]=\"isSortable(column) ? ariaSort(column) : null\"\n [attr.draggable]=\"reorderable() ? 'true' : null\"\n [class.ith-table-th-dragging]=\"dragKey() === column.key\"\n (dragstart)=\"onHeaderDragStart(column, $event)\"\n (dragover)=\"onHeaderDragOver(column, $event)\"\n (drop)=\"onHeaderDrop(column, $event)\"\n (dragend)=\"onHeaderDragEnd()\">\n <div class=\"ith-table-th-inner\">\n @if (headerTemplate(column); as headerTpl) {\n <ng-container\n [ngTemplateOutlet]=\"headerTpl\"\n [ngTemplateOutletContext]=\"{ $implicit: column, column: column }\" />\n } @else if (isSortable(column)) {\n <button\n type=\"button\"\n class=\"ith-table-sort\"\n [class.is-sorted]=\"!!sortDirection(column)\"\n (click)=\"toggleSort(column)\"\n [attr.aria-label]=\"'Sort by ' + (column.header ?? column.key)\">\n <span class=\"ith-table-th-label\">{{ column.header ?? column.key }}</span>\n <span class=\"ith-table-sort-icons\" aria-hidden=\"true\">\n <svg viewBox=\"0 0 10 6\" class=\"ith-table-sort-up\" [class.is-active]=\"sortDirection(column) === 'asc'\"><path d=\"M5 0l5 6H0z\" /></svg>\n <svg viewBox=\"0 0 10 6\" class=\"ith-table-sort-down\" [class.is-active]=\"sortDirection(column) === 'desc'\"><path d=\"M5 6L0 0h10z\" /></svg>\n </span>\n </button>\n } @else {\n <span class=\"ith-table-th-label\">{{ column.header ?? column.key }}</span>\n }\n\n @if (showColumnMenu()) {\n <button\n type=\"button\"\n class=\"ith-table-th-menu\"\n [attr.aria-expanded]=\"columnMenu()?.key === column.key\"\n [attr.aria-label]=\"'Column options for ' + (column.header ?? column.key)\"\n (click)=\"openColumnMenu(column, $event)\">\n <svg viewBox=\"0 0 24 24\" fill=\"currentColor\" aria-hidden=\"true\">\n <circle cx=\"12\" cy=\"5\" r=\"1.7\" />\n <circle cx=\"12\" cy=\"12\" r=\"1.7\" />\n <circle cx=\"12\" cy=\"19\" r=\"1.7\" />\n </svg>\n </button>\n }\n\n @if (pinOf(column) === 'start') {\n <span class=\"ith-table-pin-dot\" aria-hidden=\"true\"></span>\n }\n </div>\n\n @if (resizable()) {\n <span\n class=\"ith-table-resizer\"\n role=\"separator\"\n aria-orientation=\"vertical\"\n [attr.aria-label]=\"'Resize ' + (column.header ?? column.key)\"\n (pointerdown)=\"startResize(column, $event)\"></span>\n }\n </th>\n }\n\n @if (hasActionsColumn()) {\n <th\n scope=\"col\"\n class=\"ith-table-th ith-table-actions-head\"\n [class.ith-table-sticky-end]=\"stickyActions()\"\n [style.width]=\"actionsWidth()\"\n [style.right]=\"stickyActions() ? '0px' : null\">\n {{ actionsHeader() }}\n </th>\n }\n </tr>\n\n @if (showFilters()) {\n <tr class=\"ith-table-filter-row\">\n @if (selectable()) {\n <th\n class=\"ith-table-select-cell\"\n [class.ith-table-sticky-start]=\"stickySelection()\"\n [style.left]=\"stickySelection() ? '0px' : null\"></th>\n }\n @if (hasExpander()) {\n <th class=\"ith-table-expander-cell\"></th>\n }\n @for (column of visibleColumns(); track column.key) {\n <th\n class=\"ith-table-filter-cell\"\n [ngClass]=\"filterClasses(column)\"\n [style]=\"columnStyle(column)\">\n @if (filterTemplate(column); as filterTpl) {\n <ng-container\n [ngTemplateOutlet]=\"filterTpl\"\n [ngTemplateOutletContext]=\"filterContext(column)\" />\n } @else if (column.filterable !== false) {\n @switch (filterTypeFor(column)) {\n @case ('select') {\n <select\n class=\"ith-table-filter-input ith-table-filter-select\"\n [value]=\"filterValue(column.key)\"\n [attr.aria-label]=\"'Filter by ' + (column.header ?? column.key)\"\n (change)=\"onFilterInput(column.key, $any($event.target).value)\">\n <option value=\"\">{{ filterAllLabel() }}</option>\n @for (option of filterOptionsFor(column); track option.value) {\n <option [value]=\"option.value\">{{ option.label }}</option>\n }\n </select>\n }\n @case ('number') {\n <input\n type=\"number\"\n class=\"ith-table-filter-input\"\n [value]=\"filterValue(column.key)\"\n [attr.placeholder]=\"filterPlaceholderFor(column)\"\n [attr.aria-label]=\"'Filter by ' + (column.header ?? column.key)\"\n (input)=\"onFilterInput(column.key, $any($event.target).value)\" />\n }\n @case ('date') {\n <input\n type=\"date\"\n class=\"ith-table-filter-input\"\n [value]=\"filterValue(column.key)\"\n [attr.aria-label]=\"'Filter by ' + (column.header ?? column.key)\"\n (input)=\"onFilterInput(column.key, $any($event.target).value)\" />\n }\n @default {\n <input\n type=\"text\"\n class=\"ith-table-filter-input\"\n [value]=\"filterValue(column.key)\"\n [attr.placeholder]=\"filterPlaceholderFor(column)\"\n [attr.aria-label]=\"'Filter by ' + (column.header ?? column.key)\"\n (input)=\"onFilterInput(column.key, $any($event.target).value)\" />\n }\n }\n }\n </th>\n }\n @if (hasActionsColumn()) {\n <th\n class=\"ith-table-filter-cell\"\n [class.ith-table-sticky-end]=\"stickyActions()\"\n [style.right]=\"stickyActions() ? '0px' : null\"></th>\n }\n </tr>\n }\n </thead>\n\n <tbody>\n @if (loading() && pagedRows().length === 0) {\n @for (skeleton of skeletonIndexes(); track skeleton) {\n <tr class=\"ith-table-skeleton-row\" aria-hidden=\"true\">\n @if (selectable()) {\n <td\n class=\"ith-table-select-cell\"\n [class.ith-table-sticky-start]=\"stickySelection()\"\n [style.left]=\"stickySelection() ? '0px' : null\">\n <span class=\"ith-table-skeleton is-check\"></span>\n </td>\n }\n @if (hasExpander()) {\n <td class=\"ith-table-expander-cell\"></td>\n }\n @for (column of visibleColumns(); track column.key) {\n <td class=\"ith-table-td\">\n <span class=\"ith-table-skeleton\"></span>\n </td>\n }\n @if (hasActionsColumn()) {\n <td class=\"ith-table-actions-cell\"><span class=\"ith-table-skeleton\"></span></td>\n }\n </tr>\n }\n <tr>\n <td class=\"ith-table-visually-hidden\" [attr.colspan]=\"emptyColspan()\" aria-live=\"polite\">\n {{ loadingText() }}\n </td>\n </tr>\n } @else if (pagedRows().length === 0) {\n <tr>\n <td class=\"ith-table-status\" [attr.colspan]=\"emptyColspan()\">\n @if (emptyTemplate(); as emptyTpl) {\n <ng-container\n [ngTemplateOutlet]=\"emptyTpl\"\n [ngTemplateOutletContext]=\"emptyContext()\" />\n } @else {\n <div class=\"ith-table-empty\">\n <svg viewBox=\"0 0 24 24\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"1.5\" stroke-linecap=\"round\" aria-hidden=\"true\">\n <rect x=\"3\" y=\"5\" width=\"18\" height=\"14\" rx=\"2\" />\n <path d=\"M3 10h18M9 10v9\" />\n </svg>\n <span>{{ hasQuery() ? 'No records match your search.' : emptyText() }}</span>\n @if (hasQuery()) {\n <button type=\"button\" class=\"ith-table-link\" (click)=\"clearQuery()\">Clear search &amp; filters</button>\n }\n </div>\n }\n </td>\n </tr>\n } @else {\n @for (row of pagedRows(); track trackRow($index, row); let rowIndex = $index) {\n <tr\n class=\"ith-table-row\"\n [ngClass]=\"rowClassFor(row, $index)\"\n [class.ith-table-row-clickable]=\"rowClickable() || selectOnRowClick() || (hasRowDetail() && rowDetailTrigger() === 'row')\"\n [attr.tabindex]=\"rowClickable() || selectOnRowClick() ? 0 : null\"\n [attr.aria-selected]=\"selectable() ? isSelected(row) : null\"\n [attr.aria-expanded]=\"hasRowDetail() ? isRowExpanded(row) : null\"\n (click)=\"onRowClick(row, $index, $event)\"\n (keydown)=\"onRowKeydown(row, $index, $event)\"\n (contextmenu)=\"onRowContextMenu(row, $index, $event)\">\n @if (selectable()) {\n <td\n class=\"ith-table-select-cell\"\n [class.ith-table-sticky-start]=\"stickySelection()\"\n [style.left]=\"stickySelection() ? '0px' : null\">\n <input\n type=\"checkbox\"\n class=\"ith-table-checkbox\"\n [checked]=\"isSelected(row)\"\n [attr.aria-label]=\"'Select row ' + ($index + 1)\"\n (click)=\"$event.stopPropagation()\"\n (change)=\"onRowCheckboxChange(row, $event)\" />\n </td>\n }\n\n @if (hasExpander()) {\n <td class=\"ith-table-expander-cell\">\n <button\n type=\"button\"\n class=\"ith-table-expander\"\n [class.is-open]=\"isRowExpanded(row)\"\n [attr.aria-expanded]=\"isRowExpanded(row)\"\n [attr.aria-label]=\"'Toggle details for row ' + ($index + 1)\"\n (click)=\"toggleRowDetail(row, $event)\">\n <svg viewBox=\"0 0 24 24\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"2\" stroke-linecap=\"round\" stroke-linejoin=\"round\" aria-hidden=\"true\">\n <path d=\"m9 6 6 6-6 6\" />\n </svg>\n </button>\n </td>\n }\n\n @for (column of visibleColumns(); track column.key; let colIndex = $index) {\n <td\n class=\"ith-table-td\"\n [class.ith-table-copyable]=\"copyable()\"\n [ngClass]=\"cellClasses(row, column, rowIndex)\"\n [style]=\"columnStyle(column)\"\n [attr.title]=\"tooltipText(row, column, rowIndex)\"\n [attr.data-cell]=\"rowIndex + '-' + colIndex\"\n [attr.data-col]=\"column.key\"\n [attr.tabindex]=\"cellTabIndex(rowIndex, colIndex)\"\n (focus)=\"onCellFocus(rowIndex, colIndex)\"\n (keydown)=\"onCellKeydown(column, rowIndex, colIndex, $event)\">\n @if (cellTemplate(column); as cellTpl) {\n <ng-container\n [ngTemplateOutlet]=\"cellTpl\"\n [ngTemplateOutletContext]=\"cellContext(row, column, rowIndex)\" />\n } @else {\n {{ cellText(row, column, rowIndex) }}\n }\n @if (copyable()) {\n <button\n type=\"button\"\n class=\"ith-table-copy\"\n [class.is-copied]=\"isCellCopied(rowIndex, column)\"\n [attr.aria-label]=\"'Copy ' + (column.header ?? column.key)\"\n (click)=\"copyCell(row, column, rowIndex, $event)\">\n @if (isCellCopied(rowIndex, column)) {\n <svg viewBox=\"0 0 24 24\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"2\" stroke-linecap=\"round\" stroke-linejoin=\"round\" aria-hidden=\"true\"><path d=\"m5 13 4 4L19 7\" /></svg>\n } @else {\n <svg viewBox=\"0 0 24 24\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"1.8\" stroke-linecap=\"round\" stroke-linejoin=\"round\" aria-hidden=\"true\"><rect x=\"9\" y=\"9\" width=\"11\" height=\"11\" rx=\"2\" /><path d=\"M15 5.5A2.5 2.5 0 0 0 12.5 3H6a2 2 0 0 0-2 2v7.5A2.5 2.5 0 0 0 6.5 15\" /></svg>\n }\n </button>\n }\n </td>\n }\n\n @if (hasActionsColumn()) {\n <td\n class=\"ith-table-actions-cell\"\n [class.ith-table-sticky-end]=\"stickyActions()\"\n [style.right]=\"stickyActions() ? '0px' : null\">\n @if (rowActionsTemplate(); as actionsTpl) {\n <ng-container\n [ngTemplateOutlet]=\"actionsTpl\"\n [ngTemplateOutletContext]=\"{ $implicit: row, row: row, index: $index }\" />\n } @else {\n @for (action of rowActions(); track action.id) {\n @if (isActionVisible(action, row, $index)) {\n <button\n type=\"button\"\n class=\"ith-table-action\"\n [ngClass]=\"action.class ?? ''\"\n [attr.title]=\"action.title ?? action.label\"\n [disabled]=\"isActionDisabled(action, row, $index)\"\n (click)=\"onActionClick(action, row, $index, $event)\">\n @if (action.icon) {\n <span class=\"ith-table-action-icon\" aria-hidden=\"true\">{{ action.icon }}</span>\n }\n <span>{{ action.label }}</span>\n </button>\n }\n }\n }\n </td>\n }\n </tr>\n\n @if (hasRowDetail() && isRowExpanded(row)) {\n <tr class=\"ith-table-detail-row\">\n <td [attr.colspan]=\"emptyColspan()\">\n @if (rowDetailTemplate(); as detailTpl) {\n <ng-container\n [ngTemplateOutlet]=\"detailTpl\"\n [ngTemplateOutletContext]=\"rowDetailContext(row, rowIndex)\" />\n }\n </td>\n </tr>\n }\n }\n }\n </tbody>\n\n @if (hasAggregates() && pagedRows().length > 0) {\n <tfoot>\n <tr class=\"ith-table-total-row\">\n @if (selectable()) {\n <td\n class=\"ith-table-select-cell\"\n [class.ith-table-sticky-start]=\"stickySelection()\"\n [style.left]=\"stickySelection() ? '0px' : null\"></td>\n }\n @if (hasExpander()) {\n <td class=\"ith-table-expander-cell\"></td>\n }\n @for (column of visibleColumns(); track column.key) {\n <td\n class=\"ith-table-total-cell\"\n [ngClass]=\"stickyClassFor(column)\"\n [style]=\"columnStyle(column)\">\n @if (column.aggregate) {\n <span class=\"ith-table-total-label\">{{ aggregateLabel(column) }}</span>\n <span class=\"ith-table-total-value\">{{ aggregateText(column) }}</span>\n }\n </td>\n }\n @if (hasActionsColumn()) {\n <td\n class=\"ith-table-total-cell ith-table-actions-cell\"\n [class.ith-table-sticky-end]=\"stickyActions()\"\n [style.right]=\"stickyActions() ? '0px' : null\"></td>\n }\n </tr>\n </tfoot>\n }\n </table>\n\n @if (loading() && pagedRows().length > 0) {\n <div class=\"ith-table-loading-overlay\">\n <span class=\"ith-table-spinner\" aria-hidden=\"true\"></span>\n <span>{{ loadingText() }}</span>\n </div>\n }\n </div>\n\n <!-- Columns popover (fixed, so the toolbar's scroll box cannot clip it) -->\n @if (columnPickerOpen()) {\n <div\n class=\"ith-table-popover\"\n role=\"dialog\"\n aria-label=\"Visible columns\"\n [style.left.px]=\"columnsMenuPos()?.x ?? 0\"\n [style.top.px]=\"columnsMenuPos()?.y ?? 0\"\n (click)=\"$event.stopPropagation()\">\n <div class=\"ith-table-popover-header\">Show columns</div>\n <div class=\"ith-table-popover-list\">\n @for (column of orderedColumns(); track column.key) {\n <label class=\"ith-table-columns-item\">\n <input\n type=\"checkbox\"\n class=\"ith-table-checkbox\"\n [checked]=\"isColumnVisible(column)\"\n [disabled]=\"!isColumnVisible(column) && !canHide(column.key)\"\n (change)=\"setColumnVisible(column.key, $any($event.target).checked)\" />\n <span>{{ column.header ?? column.key }}</span>\n @if (pinOf(column)) {\n <span class=\"ith-table-pin-tag\">{{ pinOf(column) }}</span>\n }\n </label>\n }\n </div>\n <div class=\"ith-table-popover-footer\">\n <button type=\"button\" class=\"ith-table-popover-action\" (click)=\"resetColumns()\">\n Reset columns\n </button>\n </div>\n </div>\n }\n\n <!-- Export formats -->\n @if (exportMenuPos(); as pos) {\n <div\n class=\"ith-table-popover ith-table-export-menu\"\n role=\"menu\"\n aria-label=\"Export format\"\n [style.left.px]=\"pos.x\"\n [style.top.px]=\"pos.y\"\n (click)=\"$event.stopPropagation()\">\n <button type=\"button\" class=\"ith-table-menu-item\" role=\"menuitem\" (click)=\"exportAs('xlsx')\">\n <span class=\"ith-table-export-name\">Excel</span>\n <span class=\"ith-table-export-hint\">.xlsx \u2014 Excel, Numbers, Sheets</span>\n </button>\n <button type=\"button\" class=\"ith-table-menu-item\" role=\"menuitem\" (click)=\"exportAs('csv')\">\n <span class=\"ith-table-export-name\">CSV</span>\n <span class=\"ith-table-export-hint\">.csv \u2014 plain text, any tool</span>\n </button>\n </div>\n }\n\n <!-- Named views -->\n @if (viewsOpen()) {\n <div\n class=\"ith-table-popover\"\n role=\"dialog\"\n aria-label=\"Saved views\"\n [style.left.px]=\"viewsMenuPos()?.x ?? 0\"\n [style.top.px]=\"viewsMenuPos()?.y ?? 0\"\n (click)=\"$event.stopPropagation()\">\n <div class=\"ith-table-popover-header\">Saved views</div>\n <div class=\"ith-table-popover-list\">\n @for (name of savedViewNames(); track name) {\n <div class=\"ith-table-view-item\" [class.is-active]=\"activeView() === name\">\n <button type=\"button\" class=\"ith-table-view-apply\" (click)=\"applyView(name)\">\n {{ name }}\n </button>\n <button\n type=\"button\"\n class=\"ith-table-view-delete\"\n [attr.aria-label]=\"'Delete view ' + name\"\n (click)=\"deleteView(name, $event)\">\n <svg viewBox=\"0 0 24 24\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"2\" stroke-linecap=\"round\" aria-hidden=\"true\">\n <path d=\"M6 6l12 12M18 6 6 18\" />\n </svg>\n </button>\n </div>\n } @empty {\n <p class=\"ith-table-popover-empty\">No saved views yet.</p>\n }\n </div>\n <div class=\"ith-table-popover-footer ith-table-view-save\">\n <input\n type=\"text\"\n class=\"ith-table-view-input\"\n placeholder=\"View name\"\n aria-label=\"New view name\"\n [value]=\"viewNameDraft()\"\n (input)=\"onViewNameInput($any($event.target).value)\"\n (keydown.enter)=\"saveView()\" />\n <button type=\"button\" class=\"ith-table-popover-action\" (click)=\"saveView()\">Save</button>\n </div>\n </div>\n }\n\n <!-- Column header menu -->\n @if (columnMenu(); as menu) {\n <div\n class=\"ith-table-popover ith-table-column-menu\"\n role=\"menu\"\n [style.left.px]=\"menu.x\"\n [style.top.px]=\"menu.y\"\n (click)=\"$event.stopPropagation()\">\n @if (columnMenuColumn(); as column) {\n @if (isSortable(column)) {\n <button type=\"button\" class=\"ith-table-menu-item\" role=\"menuitem\" (click)=\"menuSort('asc')\">\n Sort ascending\n </button>\n <button type=\"button\" class=\"ith-table-menu-item\" role=\"menuitem\" (click)=\"menuSort('desc')\">\n Sort descending\n </button>\n @if (sortDirection(column)) {\n <button type=\"button\" class=\"ith-table-menu-item\" role=\"menuitem\" (click)=\"menuClearSort()\">\n Clear sort\n </button>\n }\n <div class=\"ith-table-menu-divider\"></div>\n }\n @if (canPin(column)) {\n @if (pinOf(column) !== 'start') {\n <button type=\"button\" class=\"ith-table-menu-item\" role=\"menuitem\" (click)=\"menuPin('start')\">\n Pin to left\n </button>\n }\n @if (pinOf(column) !== 'end') {\n <button type=\"button\" class=\"ith-table-menu-item\" role=\"menuitem\" (click)=\"menuPin('end')\">\n Pin to right\n </button>\n }\n @if (pinOf(column)) {\n <button type=\"button\" class=\"ith-table-menu-item\" role=\"menuitem\" (click)=\"menuPin(null)\">\n Unpin column\n </button>\n }\n <div class=\"ith-table-menu-divider\"></div>\n }\n <button type=\"button\" class=\"ith-table-menu-item\" role=\"menuitem\" (click)=\"menuAutosize()\">\n Fit to content\n </button>\n @if (canHide(column.key)) {\n <button type=\"button\" class=\"ith-table-menu-item\" role=\"menuitem\" (click)=\"menuHide()\">\n Hide column\n </button>\n }\n }\n </div>\n }\n\n <!-- Right-click menu (projected template, positioned at the pointer) -->\n @if (menuState(); as menu) {\n <div\n class=\"ith-table-menu\"\n role=\"menu\"\n [style.left.px]=\"menu.x\"\n [style.top.px]=\"menu.y\"\n (click)=\"closeRowMenu(); $event.stopPropagation()\">\n @if (rowMenuTemplate(); as menuTpl) {\n <ng-container\n [ngTemplateOutlet]=\"menuTpl\"\n [ngTemplateOutletContext]=\"{ $implicit: menu.row, row: menu.row, index: menu.index }\" />\n }\n </div>\n }\n\n <!-- Footer -->\n @if (showFooter()) {\n <div class=\"ith-table-footer\">\n <div class=\"ith-table-footer-info\">\n @if (footerTemplate(); as footerTpl) {\n <ng-container\n [ngTemplateOutlet]=\"footerTpl\"\n [ngTemplateOutletContext]=\"footerContext()\" />\n } @else {\n <span>\n Showing <strong>{{ rangeStart() }}</strong>\u2013<strong>{{ rangeEnd() }}</strong>\n of <strong>{{ totalRows() }}</strong>\n </span>\n <span class=\"ith-table-total\">{{ totalLabel() }}: <strong>{{ totalRows() }}</strong></span>\n }\n </div>\n\n <div class=\"ith-table-footer-controls\">\n @if (showPagination()) {\n <nav class=\"ith-table-pagination\" aria-label=\"Pagination\">\n @if (showFirstLast()) {\n <button type=\"button\" class=\"ith-table-page-btn\" (click)=\"firstPage()\" [disabled]=\"page() === 1\" aria-label=\"First page\">\n <svg viewBox=\"0 0 24 24\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"2\" stroke-linecap=\"round\" stroke-linejoin=\"round\" aria-hidden=\"true\"><path d=\"m11 17-5-5 5-5M18 17l-5-5 5-5\" /></svg>\n </button>\n }\n <button type=\"button\" class=\"ith-table-page-btn\" (click)=\"previousPage()\" [disabled]=\"page() === 1\" aria-label=\"Previous page\">\n <svg viewBox=\"0 0 24 24\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"2\" stroke-linecap=\"round\" stroke-linejoin=\"round\" aria-hidden=\"true\"><path d=\"m15 18-6-6 6-6\" /></svg>\n </button>\n\n @for (item of pageItems(); track item) {\n <button\n type=\"button\"\n class=\"ith-table-page-btn ith-table-page-number\"\n [class.is-active]=\"item === page()\"\n [attr.aria-current]=\"item === page() ? 'page' : null\"\n (click)=\"goToPage(item)\">\n {{ item }}\n </button>\n }\n\n <button type=\"button\" class=\"ith-table-page-btn\" (click)=\"nextPage()\" [disabled]=\"page() === pageCount()\" aria-label=\"Next page\">\n <svg viewBox=\"0 0 24 24\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"2\" stroke-linecap=\"round\" stroke-linejoin=\"round\" aria-hidden=\"true\"><path d=\"m9 18 6-6-6-6\" /></svg>\n </button>\n @if (showFirstLast()) {\n <button type=\"button\" class=\"ith-table-page-btn\" (click)=\"lastPage()\" [disabled]=\"page() === pageCount()\" aria-label=\"Last page\">\n <svg viewBox=\"0 0 24 24\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"2\" stroke-linecap=\"round\" stroke-linejoin=\"round\" aria-hidden=\"true\"><path d=\"m13 17 5-5-5-5M6 17l5-5-5-5\" /></svg>\n </button>\n }\n <span class=\"ith-table-page-state\">Page {{ page() }} / {{ pageCount() }}</span>\n </nav>\n }\n\n @if (showPageSize()) {\n <label class=\"ith-table-page-size\">\n <span>Rows:</span>\n <select class=\"ith-table-select\" [value]=\"pageSize()\" (change)=\"onPageSizeChange($any($event.target).value)\">\n @for (size of pageSizeChoices(); track size) {\n <option [value]=\"size\">{{ size }}</option>\n }\n </select>\n </label>\n }\n </div>\n </div>\n }\n</div>\n", styles: [":host{display:block;--_brand: var(--ith-table-brand, #5b21b6);--_bg: var(--ith-table-bg, #ffffff);--_text: var(--ith-table-text, #1f2937);--_muted: var(--ith-table-muted, #6b7280);--_border: var(--ith-table-border, #e8eaf0);--_header-bg: var(--ith-table-header-bg, var(--_brand));--_header-text: var(--ith-table-header-text, #ffffff);--_hover: var(--ith-table-hover, color-mix(in srgb, var(--_brand) 6%, #ffffff));--_selected-bg: var(--ith-table-selected-bg, color-mix(in srgb, var(--_brand) 10%, #ffffff));--_striped-bg: var(--ith-table-striped-bg, color-mix(in srgb, var(--_brand) 2%, #ffffff));--_accent: var(--ith-table-accent, var(--_brand));--_accent-soft: var(--ith-table-accent-soft, color-mix(in srgb, var(--_brand) 12%, #ffffff));--_input-bg: var(--ith-table-input-bg, #ffffff);--_input-border: var(--ith-table-input-border, #dfe3ec);--_footer-bg: var(--ith-table-footer-bg, color-mix(in srgb, var(--_brand) 2%, #ffffff));--_filter-bg: var(--ith-table-filter-bg, color-mix(in srgb, var(--_brand) 3%, #ffffff));--_overlay: var(--ith-table-overlay, rgba(255, 255, 255, .72));--_radius: var(--ith-table-radius, 14px);--_shadow: var(--ith-table-shadow, 0 18px 40px -28px rgba(24, 20, 60, .55));--_focus: var(--ith-table-focus, color-mix(in srgb, var(--_brand) 25%, transparent));--_cell-padding: var(--ith-table-cell-padding, 12px 16px);--_font-size: var(--ith-table-font-size, 14px);--_header-font-size: var(--ith-table-header-font-size, 13px);--_row-height: var(--ith-table-row-height, 46px);--_head-height: var(--ith-table-head-height, 45px);--_filter-height: 47px;--_on-accent: #ffffff;--_toolbar-tint: color-mix(in srgb, var(--_brand) 3%, var(--_bg));--_popover-bg: var(--_bg);--_scroll-thumb: color-mix(in srgb, var(--_muted) 38%, transparent);--_danger: #dc2626;--_elevation: 0 18px 40px -18px rgba(17, 12, 46, .35), 0 0 0 1px color-mix(in srgb, var(--_border) 60%, transparent)}:host-context([data-theme=\"dark\"]),:host-context(.dark){--_brand: var(--ith-table-brand, #7c3aed);--_bg: var(--ith-table-bg, #161826);--_text: var(--ith-table-text, #e7e9f3);--_muted: var(--ith-table-muted, #9aa0b5);--_border: var(--ith-table-border, #2f3348);--_header-bg: var(--ith-table-header-bg, color-mix(in srgb, var(--_brand) 34%, #0b0d16));--_header-text: var(--ith-table-header-text, #f3eeff);--_hover: var(--ith-table-hover, color-mix(in srgb, var(--_brand) 15%, #161826));--_selected-bg: var(--ith-table-selected-bg, color-mix(in srgb, var(--_brand) 20%, #161826));--_striped-bg: var(--ith-table-striped-bg, color-mix(in srgb, var(--_brand) 6%, #161826));--_accent: var(--ith-table-accent, color-mix(in srgb, var(--_brand) 55%, #ffffff));--_accent-soft: var(--ith-table-accent-soft, color-mix(in srgb, var(--_brand) 26%, #161826));--_input-bg: var(--ith-table-input-bg, #202436);--_input-border: var(--ith-table-input-border, #343a52);--_footer-bg: var(--ith-table-footer-bg, color-mix(in srgb, var(--_brand) 4%, #12141f));--_filter-bg: var(--ith-table-filter-bg, color-mix(in srgb, var(--_brand) 9%, #161826));--_overlay: var(--ith-table-overlay, rgba(17, 19, 30, .72));--_shadow: var(--ith-table-shadow, 0 18px 40px -28px rgba(0, 0, 0, .85));--_focus: var(--ith-table-focus, color-mix(in srgb, var(--_brand) 38%, transparent));--_on-accent: #15121f;--_toolbar-tint: color-mix(in srgb, var(--_brand) 12%, var(--_bg));--_popover-bg: #1d2133;--_scroll-thumb: color-mix(in srgb, #ffffff 22%, transparent);--_danger: #f87171;--_elevation: 0 22px 48px -20px rgba(0, 0, 0, .8), 0 0 0 1px color-mix(in srgb, #ffffff 8%, transparent)}@media(prefers-color-scheme:dark){:host-context([data-theme=\"auto\"]){--_brand: var(--ith-table-brand, #7c3aed);--_bg: var(--ith-table-bg, #161826);--_text: var(--ith-table-text, #e7e9f3);--_muted: var(--ith-table-muted, #9aa0b5);--_border: var(--ith-table-border, #2f3348);--_header-bg: var(--ith-table-header-bg, color-mix(in srgb, var(--_brand) 34%, #0b0d16));--_header-text: var(--ith-table-header-text, #f3eeff);--_hover: var(--ith-table-hover, color-mix(in srgb, var(--_brand) 15%, #161826));--_selected-bg: var(--ith-table-selected-bg, color-mix(in srgb, var(--_brand) 20%, #161826));--_striped-bg: var(--ith-table-striped-bg, color-mix(in srgb, var(--_brand) 6%, #161826));--_accent: var(--ith-table-accent, color-mix(in srgb, var(--_brand) 55%, #ffffff));--_accent-soft: var(--ith-table-accent-soft, color-mix(in srgb, var(--_brand) 26%, #161826));--_input-bg: var(--ith-table-input-bg, #202436);--_input-border: var(--ith-table-input-border, #343a52);--_footer-bg: var(--ith-table-footer-bg, color-mix(in srgb, var(--_brand) 4%, #12141f));--_filter-bg: var(--ith-table-filter-bg, color-mix(in srgb, var(--_brand) 9%, #161826));--_overlay: var(--ith-table-overlay, rgba(17, 19, 30, .72));--_shadow: var(--ith-table-shadow, 0 18px 40px -28px rgba(0, 0, 0, .85));--_focus: var(--ith-table-focus, color-mix(in srgb, var(--_brand) 38%, transparent));--_on-accent: #15121f;--_toolbar-tint: color-mix(in srgb, var(--_brand) 12%, var(--_bg));--_popover-bg: #1d2133;--_scroll-thumb: color-mix(in srgb, #ffffff 22%, transparent);--_danger: #f87171;--_elevation: 0 22px 48px -20px rgba(0, 0, 0, .8), 0 0 0 1px color-mix(in srgb, #ffffff 8%, transparent)}}.ith-table{display:block;position:relative;background:var(--_bg);color:var(--_text);border:1px solid var(--_border);border-radius:var(--_radius);box-shadow:var(--_shadow);font-family:-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Oxygen,Ubuntu,Cantarell,Fira Sans,Droid Sans,Helvetica Neue,sans-serif;font-size:var(--_font-size);overflow:hidden}.ith-table-toolbar{padding:14px 16px;border-bottom:1px solid var(--_border);background:var(--_toolbar-tint)}.ith-table-toolbar-inner{display:flex;align-items:center;gap:12px;flex-wrap:nowrap;min-width:0;overflow-x:auto;scrollbar-width:none}.ith-table-toolbar-inner::-webkit-scrollbar{display:none}.ith-table-toolbar-main{display:flex;align-items:center;gap:10px;flex-wrap:nowrap;min-width:0;flex:0 0 auto}.ith-table-toolbar-spacer{flex:1 1 auto;min-width:8px}.ith-table-title{margin:0;font-size:15.5px;font-weight:650;letter-spacing:-.015em;color:var(--_text);white-space:nowrap}.ith-table-badge{display:inline-flex;align-items:center;padding:3px 10px;border-radius:999px;background:var(--_accent-soft);color:var(--_accent);font-size:11.5px;font-weight:600;line-height:1.4;white-space:nowrap}.ith-table-badge-accent{background:var(--_accent);color:var(--_on-accent);box-shadow:0 0 0 1px color-mix(in srgb,var(--_accent) 30%,transparent)}.ith-table-search{position:relative;flex:0 1 260px;min-width:180px}.ith-table-search-icon{position:absolute;left:12px;top:50%;width:15px;height:15px;transform:translateY(-50%);color:var(--_muted);pointer-events:none}.ith-table-search-input{width:100%;box-sizing:border-box;height:36px;padding:0 34px 0 36px;border:1px solid var(--_input-border);border-radius:10px;background:var(--_input-bg);color:var(--_text);font-size:13px;font-family:inherit;transition:border-color .15s ease,box-shadow .15s ease,background-color .15s ease}.ith-table-search-input:hover{border-color:color-mix(in srgb,var(--_accent) 35%,var(--_input-border))}.ith-table-search-input::placeholder{color:var(--_muted)}.ith-table-search-input::-webkit-search-cancel-button,.ith-table-search-input::-webkit-search-decoration,.ith-table-search-input::-webkit-search-results-button,.ith-table-search-input::-webkit-search-results-decoration{-webkit-appearance:none;appearance:none;display:none}.ith-table-search-input:focus{outline:none;border-color:var(--_accent);box-shadow:0 0 0 3px var(--_focus);background:var(--_bg)}.ith-table-search-clear{position:absolute;right:6px;top:50%;transform:translateY(-50%);width:24px;height:24px;display:grid;place-items:center;border:0;border-radius:7px;background:transparent;color:var(--_muted);cursor:pointer;transition:background-color .12s ease,color .12s ease}.ith-table-search-clear svg{width:14px;height:14px}.ith-table-search-clear:hover{background:var(--_accent-soft);color:var(--_accent)}.ith-table-scroll{position:relative;overflow:auto;scrollbar-width:thin;scrollbar-color:var(--_scroll-thumb) transparent}.ith-table-scroll::-webkit-scrollbar{width:10px;height:10px}.ith-table-scroll::-webkit-scrollbar-track{background:transparent}.ith-table-scroll::-webkit-scrollbar-thumb{border:3px solid transparent;border-radius:999px;background-color:var(--_scroll-thumb);background-clip:content-box}.ith-table-scroll::-webkit-scrollbar-thumb:hover{background-color:color-mix(in srgb,var(--_scroll-thumb) 75%,var(--_text))}.ith-table-scroll:not(.ith-table-scroll-bounded){min-height:calc(var(--_head-height) + var(--_row-height) * var(--_min-rows, 4))}.ith-table-scroll:not(.ith-table-scroll-bounded).ith-table-scroll-filtered{min-height:calc(var(--_head-height) + var(--_filter-height) + var(--_row-height) * var(--_min-rows, 4))}.ith-table-grid{width:100%;border-collapse:separate;border-spacing:0;table-layout:auto}.ith-table-head-row th{background:var(--_header-bg);color:var(--_header-text);font-size:var(--_header-font-size);font-weight:600;letter-spacing:.01em;text-align:left;padding:13px 16px;white-space:nowrap;border:0}.ith-table-sticky .ith-table-head-row th{position:sticky;top:0;z-index:2}.ith-table-th-label{display:inline-block}.ith-table-sort{display:inline-flex;align-items:center;justify-content:flex-start;gap:8px;width:100%;padding:0;border:0;background:transparent;color:inherit;font:inherit;letter-spacing:inherit;cursor:pointer;text-align:inherit}.ith-table-sort-icons{display:inline-flex;flex-direction:column;gap:2px;opacity:.5}.ith-table-sort-icons svg{width:8px;height:5px;fill:currentColor;opacity:.5;transition:opacity .15s ease}.ith-table-sort-icons svg.is-active{opacity:1}.ith-table-sort.is-sorted .ith-table-sort-icons{opacity:1}.ith-table-select-cell{width:46px;text-align:center;padding-left:14px;padding-right:10px}.ith-table-checkbox{width:16px;height:16px;margin:0;cursor:pointer;accent-color:var(--_accent);vertical-align:middle}.ith-table-checkbox:focus-visible{outline:2px solid var(--_accent);outline-offset:2px}.ith-table-row{background:var(--_bg);transition:background-color .15s ease}.ith-table-hoverable .ith-table-row:hover{background:var(--_hover)}.ith-table-row.ith-table-row-selected{background:var(--_selected-bg)}.ith-table-row.ith-table-row-selected td:first-child{box-shadow:inset 3px 0 0 var(--_accent)}.ith-table-row-clickable{cursor:pointer}.ith-table-td{padding:var(--_cell-padding);border-bottom:1px solid var(--_border);font-size:var(--_font-size);color:var(--_text);vertical-align:middle;white-space:nowrap;background:transparent}.ith-table-row:last-child .ith-table-td{border-bottom:0}.ith-table-align-left{text-align:left}.ith-table-align-center{text-align:center}.ith-table-align-right,.ith-table-actions-head{text-align:right}.ith-table-actions-cell{padding:var(--_cell-padding);border-bottom:1px solid var(--_border);text-align:right;white-space:nowrap}.ith-table-row:last-child .ith-table-actions-cell{border-bottom:0}.ith-table-action{display:inline-flex;align-items:center;gap:4px;padding:5px 9px;margin-left:4px;border:1px solid var(--_border);border-radius:7px;background:transparent;color:var(--_accent);font-family:inherit;font-size:12px;font-weight:500;line-height:1.2;cursor:pointer;transition:background-color .15s ease,border-color .15s ease}.ith-table-action:hover:not(:disabled){background:var(--_accent-soft);border-color:var(--_accent)}.ith-table-action:disabled{opacity:.45;cursor:not-allowed}.ith-table-action-icon{font-size:12px;line-height:1}.ith-table-action.is-danger{color:var(--_danger);border-color:color-mix(in srgb,var(--_danger) 35%,transparent)}.ith-table-filter-row th{background:var(--_filter-bg);padding:8px 10px;border-bottom:1px solid var(--_border);border-top:1px solid var(--_border)}.ith-table-filter-input{width:100%;box-sizing:border-box;height:30px;padding:0 9px;border:1px solid var(--_input-border);border-radius:7px;background:var(--_input-bg);color:var(--_text);font-family:inherit;font-size:12px}.ith-table-filter-select{cursor:pointer;padding-right:4px}.ith-table-filter-input:focus{outline:none;border-color:var(--_accent);box-shadow:0 0 0 3px var(--_focus)}.ith-table-filter-input::placeholder{color:var(--_muted)}.ith-table-status{padding:40px 16px;text-align:center;color:var(--_muted);font-size:13px}.ith-table-empty{display:flex;flex-direction:column;align-items:center;gap:8px}.ith-table-empty svg{width:36px;height:36px;opacity:.45}.ith-table-spinner{display:inline-block;width:16px;height:16px;border:2px solid var(--_accent-soft);border-top-color:var(--_accent);border-radius:50%;animation:ith-table-spin .7s linear infinite;vertical-align:middle}@keyframes ith-table-spin{to{transform:rotate(360deg)}}.ith-table-loading-overlay{position:absolute;inset:0;display:flex;align-items:center;justify-content:center;gap:8px;background:var(--_overlay);-webkit-backdrop-filter:blur(1px);backdrop-filter:blur(1px);color:var(--_text);font-size:13px;font-weight:500;z-index:3}.ith-table-link{padding:0;border:0;background:none;color:var(--_accent);font-family:inherit;font-size:12px;text-decoration:underline;text-underline-offset:3px;cursor:pointer}.ith-table-footer{display:flex;align-items:center;justify-content:space-between;gap:12px;flex-wrap:wrap;padding:12px 16px;border-top:1px solid var(--_border);background:var(--_footer-bg);font-size:12px;color:var(--_muted)}.ith-table-footer-info{display:flex;align-items:center;gap:16px;flex-wrap:wrap}.ith-table-footer-info strong{color:var(--_text);font-weight:600}.ith-table-footer-controls{display:flex;align-items:center;gap:14px;flex-wrap:wrap}.ith-table-pagination{display:flex;align-items:center;gap:4px}.ith-table-page-btn{display:inline-grid;place-items:center;min-width:30px;height:30px;padding:0 6px;border:1px solid var(--_border);border-radius:7px;background:var(--_bg);color:var(--_text);font-family:inherit;font-size:12px;font-weight:500;cursor:pointer;transition:background-color .15s ease,border-color .15s ease,color .15s ease}.ith-table-page-btn svg{width:14px;height:14px}.ith-table-page-btn:hover:not(:disabled){border-color:var(--_accent);color:var(--_accent);background:var(--_accent-soft)}.ith-table-page-btn:disabled{opacity:.4;cursor:not-allowed}.ith-table-page-number{min-width:30px}.ith-table-page-number.is-active{background:var(--_accent);border-color:var(--_accent);color:var(--_on-accent)}.ith-table-page-number.is-active:hover{background:var(--_accent);color:var(--_on-accent)}.ith-table-page-state{margin-left:6px;white-space:nowrap}.ith-table-page-size{display:inline-flex;align-items:center;gap:6px;white-space:nowrap}.ith-table-select{height:30px;padding:0 6px;border:1px solid var(--_border);border-radius:7px;background:var(--_bg);color:var(--_text);font-family:inherit;font-size:12px;cursor:pointer}.ith-table-select:focus-visible,.ith-table-page-btn:focus-visible,.ith-table-action:focus-visible,.ith-table-link:focus-visible{outline:2px solid var(--_accent);outline-offset:2px}.ith-table-dense{--ith-table-cell-padding: 8px 12px;--ith-table-font-size: 13px;--ith-table-header-font-size: 12px;--_cell-padding: 8px 12px;--_font-size: 13px;--_header-font-size: 12px;--_row-height: 39px;--_head-height: 38px}.ith-table-dense .ith-table-head-row th{padding:10px 12px}.ith-table-striped .ith-table-row:nth-child(2n){background:var(--_striped-bg)}.ith-table-bordered .ith-table-td,.ith-table-bordered .ith-table-actions-cell,.ith-table-bordered .ith-table-head-row th,.ith-table-bordered .ith-table-filter-row th{border-right:1px solid var(--_border)}.ith-table-bordered .ith-table-head-row th:last-child,.ith-table-bordered .ith-table-filter-row th:last-child{border-right:0}.ith-table-bordered .ith-table-td:last-child,.ith-table-bordered .ith-table-actions-cell:last-child{border-right:0}@media(prefers-reduced-motion:reduce){.ith-table-row,.ith-table-action,.ith-table-page-btn,.ith-table-search-input,.ith-table-sort-icons svg{transition:none}.ith-table-spinner{animation-duration:2.4s}}@media(max-width:640px){.ith-table-footer{align-items:stretch;flex-direction:column}.ith-table-toolbar-inner{gap:10px}.ith-table-search{flex:1 1 auto}.ith-table-footer-controls{justify-content:space-between}.ith-table-page-state{display:none}}@media(hover:none){.ith-table-copy,.ith-table-th-menu{opacity:.55}.ith-table-copy:active,.ith-table-th-menu:active{opacity:1}}.ith-table-toolbar-actions{display:flex;align-items:center;gap:10px;flex-wrap:nowrap;flex:0 0 auto}.ith-table-tool-btn{display:inline-flex;align-items:center;gap:7px;height:36px;padding:0 13px;border:1px solid var(--_input-border);border-radius:10px;background:var(--_input-bg);color:var(--_text);font:inherit;font-size:12.5px;font-weight:600;cursor:pointer;white-space:nowrap;transition:border-color .14s ease,background-color .14s ease,color .14s ease,box-shadow .14s ease}.ith-table-tool-icon{width:15px;height:15px;flex-shrink:0;opacity:.8}.ith-table-tool-btn:hover .ith-table-tool-icon,.ith-table-tool-btn[aria-expanded=true] .ith-table-tool-icon,.ith-table-tool-btn[aria-pressed=true] .ith-table-tool-icon{opacity:1}.ith-table-tool-btn:hover{border-color:color-mix(in srgb,var(--_accent) 45%,var(--_input-border));background:color-mix(in srgb,var(--_accent) 4%,var(--_input-bg));color:var(--_accent)}.ith-table-tool-btn[aria-expanded=true],.ith-table-tool-btn[aria-pressed=true]{border-color:var(--_accent);background:var(--_accent-soft);color:var(--_accent);box-shadow:0 0 0 1px color-mix(in srgb,var(--_accent) 20%,transparent)}.ith-table-tool-btn:focus-visible{outline:none;box-shadow:0 0 0 3px var(--_focus)}.ith-table-menu-anchor{position:relative;display:inline-flex}.ith-table-segmented{display:inline-flex;align-items:center;gap:2px;height:36px;padding:3px;border:1px solid var(--_input-border);border-radius:10px;background:var(--_input-bg)}.ith-table-segmented-btn{display:inline-flex;align-items:center;gap:5px;height:28px;padding:0 10px;border:0;border-radius:7px;background:transparent;color:var(--_muted);font:inherit;font-size:12.5px;font-weight:600;white-space:nowrap;cursor:pointer;transition:background-color .12s ease,color .12s ease}.ith-table-segmented-btn svg{width:13px;height:13px}.ith-table-segmented-btn:hover{color:var(--_accent)}.ith-table-segmented-btn.is-active{background:var(--_accent-soft);color:var(--_accent);box-shadow:0 0 0 1px color-mix(in srgb,var(--_accent) 22%,transparent)}.ith-table-segmented-btn:focus-visible{outline:none;box-shadow:0 0 0 3px var(--_focus)}.ith-table-popover{position:fixed;z-index:900;width:250px;max-height:380px;display:flex;flex-direction:column;overflow:hidden;border:1px solid var(--_border);border-radius:12px;background:var(--_popover-bg);color:var(--_text);box-shadow:var(--_elevation);font-size:13px}.ith-table-popover-header{padding:10px 12px 8px;font-size:11.5px;font-weight:700;letter-spacing:.04em;text-transform:uppercase;color:var(--_muted)}.ith-table-popover-list{padding:0 6px 6px;overflow-y:auto;max-height:280px}.ith-table-popover-footer{display:flex;gap:6px;padding:6px;border-top:1px solid var(--_border);background:color-mix(in srgb,var(--_brand) 2%,var(--_bg))}.ith-table-popover-action{flex:1 1 auto;padding:7px 8px;border:0;border-radius:8px;background:transparent;color:var(--_accent);font:inherit;font-size:12.5px;font-weight:600;cursor:pointer}.ith-table-popover-action:hover{background:var(--_accent-soft)}.ith-table-popover-empty{margin:0;padding:10px 12px;color:var(--_muted);font-size:12.5px}.ith-table-columns-item{display:flex;align-items:center;gap:10px;padding:7px 8px;border-radius:8px;font-size:13px;cursor:pointer;transition:background-color .12s ease}.ith-table-columns-item:hover{background:var(--_hover)}.ith-table-columns-item input:disabled{opacity:.4;cursor:not-allowed}.ith-table-pin-tag{margin-left:auto;padding:1px 7px;border-radius:999px;background:var(--_accent-soft);color:var(--_accent);font-size:10px;font-weight:700;letter-spacing:.04em;text-transform:uppercase}.ith-table-view-item{display:flex;align-items:center;gap:4px;padding-right:4px;border-radius:8px}.ith-table-view-item:hover{background:var(--_hover)}.ith-table-view-item.is-active .ith-table-view-apply{color:var(--_accent);font-weight:650}.ith-table-view-apply{flex:1 1 auto;padding:7px 8px;border:0;background:transparent;color:var(--_text);font:inherit;font-size:13px;text-align:left;cursor:pointer}.ith-table-view-delete{display:grid;place-items:center;width:24px;height:24px;padding:0;border:0;border-radius:6px;background:transparent;color:var(--_muted);cursor:pointer}.ith-table-view-delete svg{width:11px;height:11px}.ith-table-view-delete:hover{background:var(--_accent-soft);color:var(--_accent)}.ith-table-view-save{align-items:center}.ith-table-view-input{flex:1 1 auto;min-width:0;height:30px;padding:0 9px;border:1px solid var(--_input-border);border-radius:8px;background:var(--_input-bg);color:var(--_text);font:inherit;font-size:12.5px}.ith-table-view-input:focus{outline:none;border-color:var(--_accent);box-shadow:0 0 0 3px var(--_focus)}.ith-table-column-menu{width:220px;padding:6px}.ith-table-menu-item{display:block;width:100%;padding:8px 10px;border:0;border-radius:8px;background:transparent;color:var(--_text);font:inherit;font-size:13px;text-align:left;cursor:pointer}.ith-table-menu-item:hover{background:var(--_accent-soft);color:var(--_accent)}.ith-table-menu-divider{height:1px;margin:5px 6px;background:var(--_border)}.ith-table.ith-table-compact{--ith-table-cell-padding: 7px 12px;--_cell-padding: var(--ith-table-compact-padding, 7px 12px);--_font-size: var(--ith-table-compact-font-size, 13px);--_header-font-size: 12.5px;--_row-height: 39px;--_head-height: 39px}.ith-table.ith-table-compact .ith-table-head-row th{padding:10px 12px}.ith-table.ith-table-compact .ith-table-filter-row th{padding:6px 10px}.ith-table-sticky-start,.ith-table-sticky-end{position:sticky;z-index:3;background:var(--_bg)}.ith-table-sticky-start{box-shadow:inset -1px 0 0 var(--_border)}.ith-table-sticky-end{box-shadow:inset 1px 0 0 var(--_border)}.ith-table-striped .ith-table-row:nth-child(2n) .ith-table-sticky-start,.ith-table-striped .ith-table-row:nth-child(2n) .ith-table-sticky-end{background:var(--_striped-bg)}.ith-table-row-selected .ith-table-sticky-start,.ith-table-row-selected .ith-table-sticky-end{background:var(--_selected-bg)}.ith-table-row:hover .ith-table-sticky-start,.ith-table-row:hover .ith-table-sticky-end{background:var(--_hover)}thead .ith-table-sticky-start,thead .ith-table-sticky-end{z-index:7;background:var(--_header-bg)}.ith-table-filter-row .ith-table-sticky-start,.ith-table-filter-row .ith-table-sticky-end{z-index:6;background:var(--_filter-bg)}.ith-table-td:not(.ith-table-sticky-start):not(.ith-table-sticky-end){position:relative}.ith-table-td.ith-table-copyable{padding-inline-end:36px}.ith-table-copy{position:absolute;inset-inline-end:8px;top:50%;display:grid;place-items:center;width:24px;height:24px;padding:0;transform:translateY(-50%);border:1px solid transparent;border-radius:7px;background:var(--_bg);color:var(--_muted);cursor:pointer;opacity:0;transition:opacity .12s ease,color .12s ease,border-color .12s ease}.ith-table-copy svg{width:14px;height:14px}.ith-table-td:hover .ith-table-copy,.ith-table-td:focus-within .ith-table-copy,.ith-table-copy:focus-visible,.ith-table-copy.is-copied{opacity:1}.ith-table-copy:hover{border-color:var(--_accent);color:var(--_accent)}.ith-table-copy.is-copied{color:var(--_accent)}.ith-table-td:focus-visible{outline:2px solid var(--_accent);outline-offset:-2px}.ith-table-skeleton{display:block;width:72%;height:12px;border-radius:6px;background:linear-gradient(90deg,var(--_border) 25%,var(--_hover) 37%,var(--_border) 63%);background-size:400% 100%;animation:ith-table-shimmer 1.4s ease infinite}.ith-table-skeleton.is-check{width:16px;height:16px;border-radius:4px;margin:0 auto}@keyframes ith-table-shimmer{0%{background-position:100% 50%}to{background-position:0 50%}}.ith-table-visually-hidden{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}.ith-table-menu{position:fixed;z-index:1000;min-width:180px;max-width:280px;padding:6px;border:1px solid var(--_border);border-radius:10px;background:var(--_popover-bg);color:var(--_text);box-shadow:var(--_elevation);font-size:13px}@media(prefers-reduced-motion:reduce){.ith-table-skeleton{animation:none}.ith-table-copy,.ith-table-tool-btn{transition:none}}.ith-table-th-inner{display:flex;align-items:center;gap:6px;min-width:0}.ith-table-th-inner>*:first-child{min-width:0}.ith-table-th:not(.ith-table-sticky-start):not(.ith-table-sticky-end){position:relative}.ith-table-th-menu{display:grid;place-items:center;flex:0 0 auto;width:20px;height:20px;padding:0;border:0;border-radius:6px;background:transparent;color:inherit;cursor:pointer;opacity:0;transition:opacity .12s ease,background-color .12s ease}.ith-table-th-menu svg{width:13px;height:13px}.ith-table-th:hover .ith-table-th-menu,.ith-table-th-menu[aria-expanded=true],.ith-table-th-menu:focus-visible{opacity:.85}.ith-table-th-menu:hover{background:color-mix(in srgb,currentColor 20%,transparent);opacity:1}.ith-table-th-menu:focus-visible{outline:2px solid currentColor;outline-offset:1px}.ith-table-resizer{position:absolute;top:0;inset-inline-end:-4px;bottom:0;width:9px;z-index:4;cursor:col-resize;touch-action:none}.ith-table-resizer:after{content:\"\";position:absolute;top:22%;bottom:22%;inset-inline-start:4px;width:2px;border-radius:2px;background:transparent;transition:background-color .12s ease}.ith-table-th:hover .ith-table-resizer:after{background:color-mix(in srgb,currentColor 40%,transparent)}.ith-table-th-dragging{opacity:.5}.ith-table-drop-target{box-shadow:inset 3px 0 0 var(--_accent)}.ith-table-pin-dot{flex:0 0 auto;width:6px;height:6px;border-radius:50%;background:currentColor;opacity:.55}.ith-table-sticky .ith-table-scroll.is-scrolled .ith-table-head-row th{box-shadow:0 1px 0 var(--_border),0 10px 16px -14px #0c0a1e8c}.ith-table-chips{display:flex;align-items:center;flex-wrap:wrap;gap:6px;margin-top:10px}.ith-table-chip{display:inline-flex;align-items:center;gap:6px;max-width:260px;padding:3px 4px 3px 9px;border:1px solid color-mix(in srgb,var(--_accent) 24%,transparent);border-radius:999px;background:var(--_accent-soft);color:var(--_accent);font-size:11.5px;font-weight:600}.ith-table-chip-label{font-size:10px;letter-spacing:.04em;text-transform:uppercase;opacity:.7}.ith-table-chip-value{max-width:150px;overflow:hidden;font-weight:500;text-overflow:ellipsis;white-space:nowrap}.ith-table-chip-remove{display:grid;place-items:center;width:18px;height:18px;padding:0;border:0;border-radius:50%;background:color-mix(in srgb,var(--_accent) 16%,transparent);color:inherit;cursor:pointer}.ith-table-chip-remove svg{width:9px;height:9px}.ith-table-chip-remove:hover{background:var(--_accent);color:var(--_on-accent)}.ith-table-chips-clear{padding:3px 8px;border:0;border-radius:999px;background:transparent;color:var(--_muted);font:inherit;font-size:11.5px;text-decoration:underline;text-underline-offset:3px;cursor:pointer}.ith-table-chips-clear:hover{color:var(--_accent)}.ith-table-selection-bar{display:flex;align-items:center;gap:10px;flex-wrap:wrap;padding:8px 16px;border-bottom:1px solid color-mix(in srgb,var(--_accent) 28%,var(--_border));background:var(--_accent-soft);color:var(--_accent);font-size:12.5px}.ith-table-selection-count strong{font-weight:700}.ith-table-selection-spacer{flex:1 1 auto}.ith-table-selection-actions{display:flex;align-items:center;gap:6px;flex-wrap:wrap}.ith-table-selection-btn{display:inline-flex;align-items:center;gap:5px;height:28px;padding:0 10px;border:1px solid color-mix(in srgb,var(--_accent) 35%,transparent);border-radius:8px;background:var(--_bg);color:var(--_accent);font:inherit;font-size:12px;font-weight:600;cursor:pointer;transition:background-color .12s ease,color .12s ease}.ith-table-selection-btn:hover{background:var(--_accent);color:var(--_on-accent)}.ith-table-selection-btn.is-danger{border-color:color-mix(in srgb,var(--_danger) 40%,transparent);color:var(--_danger)}.ith-table-selection-btn.is-danger:hover{background:var(--_danger);color:#fff}.ith-table-selection-clear{border:0;background:transparent;color:var(--_muted);font:inherit;font-size:12px;text-decoration:underline;text-underline-offset:3px;cursor:pointer}.ith-table-selection-clear:hover{color:var(--_accent)}.ith-table-expander-cell{width:38px;padding:0 0 0 10px;text-align:center}th.ith-table-expander-cell{background:var(--_header-bg)}.ith-table-expander{display:grid;place-items:center;width:22px;height:22px;padding:0;border:0;border-radius:6px;background:transparent;color:var(--_muted);cursor:pointer;transition:transform .15s ease,color .12s ease,background-color .12s ease}.ith-table-expander svg{width:13px;height:13px}.ith-table-expander:hover{background:var(--_accent-soft);color:var(--_accent)}.ith-table-expander.is-open{transform:rotate(90deg);color:var(--_accent)}.ith-table-detail-row>td{padding:14px 16px;border-bottom:1px solid var(--_border);background:var(--_striped-bg);white-space:normal}.ith-table-total-cell{padding:var(--_cell-padding);border-top:1px solid var(--_border);background:var(--_filter-bg);font-size:12px;white-space:nowrap}.ith-table-total-row .ith-table-select-cell,.ith-table-total-row .ith-table-expander-cell{border-top:1px solid var(--_border);background:var(--_filter-bg)}.ith-table-total-label{margin-inline-end:6px;font-size:10px;font-weight:700;letter-spacing:.04em;text-transform:uppercase;color:var(--_muted)}.ith-table-total-value{font-weight:650;color:var(--_text)}@media(prefers-reduced-motion:reduce){.ith-table-expander,.ith-table-th-menu,.ith-table-selection-btn{transition:none}}.ith-table-export-menu{width:236px;padding:6px}.ith-table-export-name{display:block;font-weight:650}.ith-table-export-hint{display:block;margin-top:2px;font-size:11px;font-weight:500;color:var(--_muted)}.ith-table-menu-item:hover .ith-table-export-hint{color:inherit;opacity:.75}:host-context([data-theme=\"dark\"]) .ith-table,:host-context(.dark) .ith-table{box-shadow:var(--_shadow),inset 0 0 0 1px color-mix(in srgb,#ffffff 6%,transparent)}@media(prefers-color-scheme:dark){:host-context([data-theme=\"auto\"]) .ith-table{box-shadow:var(--_shadow),inset 0 0 0 1px color-mix(in srgb,#ffffff 6%,transparent)}}:host-context([data-theme=\"dark\"]) .ith-table-td,:host-context(.dark) .ith-table-td,:host-context([data-theme=\"dark\"]) .ith-table-actions-cell,:host-context(.dark) .ith-table-actions-cell{border-color:color-mix(in srgb,var(--_border) 78%,#ffffff)}:host-context([data-theme=\"dark\"]) .ith-table-row.ith-table-row-selected td:first-child,:host-context(.dark) .ith-table-row.ith-table-row-selected td:first-child{box-shadow:inset 3px 0 0 var(--_accent)}:host-context([data-theme=\"dark\"]) .ith-table-sort-icons,:host-context(.dark) .ith-table-sort-icons{opacity:.65}\n"] }]
1959
2017
  }], ctorParameters: () => [], propDecorators: { data: [{ type: i0.Input, args: [{ isSignal: true, alias: "data", required: false }] }], columns: [{ type: i0.Input, args: [{ isSignal: true, alias: "columns", required: false }] }], keyField: [{ type: i0.Input, args: [{ isSignal: true, alias: "keyField", required: false }] }], mode: [{ type: i0.Input, args: [{ isSignal: true, alias: "mode", required: false }] }], total: [{ type: i0.Input, args: [{ isSignal: true, alias: "total", required: false }] }], title: [{ type: i0.Input, args: [{ isSignal: true, alias: "title", required: false }] }], countSuffix: [{ type: i0.Input, args: [{ isSignal: true, alias: "countSuffix", required: false }] }], totalLabel: [{ type: i0.Input, args: [{ isSignal: true, alias: "totalLabel", required: false }] }], showToolbar: [{ type: i0.Input, args: [{ isSignal: true, alias: "showToolbar", required: false }] }], searchable: [{ type: i0.Input, args: [{ isSignal: true, alias: "searchable", required: false }] }], searchPlaceholder: [{ type: i0.Input, args: [{ isSignal: true, alias: "searchPlaceholder", required: false }] }], showFilters: [{ type: i0.Input, args: [{ isSignal: true, alias: "showFilters", required: false }] }], filterPlaceholder: [{ type: i0.Input, args: [{ isSignal: true, alias: "filterPlaceholder", required: false }] }], filterAllLabel: [{ type: i0.Input, args: [{ isSignal: true, alias: "filterAllLabel", required: false }] }], emptyText: [{ type: i0.Input, args: [{ isSignal: true, alias: "emptyText", required: false }] }], ariaLabel: [{ type: i0.Input, args: [{ isSignal: true, alias: "ariaLabel", required: false }] }], sort: [{ type: i0.Input, args: [{ isSignal: true, alias: "sort", required: false }] }, { type: i0.Output, args: ["sortChange"] }], sortable: [{ type: i0.Input, args: [{ isSignal: true, alias: "sortable", required: false }] }], search: [{ type: i0.Input, args: [{ isSignal: true, alias: "search", required: false }] }, { type: i0.Output, args: ["searchChange"] }], filterChange: [{ type: i0.Output, args: ["filterChange"] }], page: [{ type: i0.Input, args: [{ isSignal: true, alias: "page", required: false }] }, { type: i0.Output, args: ["pageChange"] }], pageSize: [{ type: i0.Input, args: [{ isSignal: true, alias: "pageSize", required: false }] }, { type: i0.Output, args: ["pageSizeChange"] }], pageSizeOptions: [{ type: i0.Input, args: [{ isSignal: true, alias: "pageSizeOptions", required: false }] }], showPagination: [{ type: i0.Input, args: [{ isSignal: true, alias: "showPagination", required: false }] }], showPageSize: [{ type: i0.Input, args: [{ isSignal: true, alias: "showPageSize", required: false }] }], showFirstLast: [{ type: i0.Input, args: [{ isSignal: true, alias: "showFirstLast", required: false }] }], maxPageButtons: [{ type: i0.Input, args: [{ isSignal: true, alias: "maxPageButtons", required: false }] }], showFooter: [{ type: i0.Input, args: [{ isSignal: true, alias: "showFooter", required: false }] }], showFilterChips: [{ type: i0.Input, args: [{ isSignal: true, alias: "showFilterChips", required: false }] }], selectionMode: [{ type: i0.Input, args: [{ isSignal: true, alias: "selectionMode", required: false }] }], selectAllScope: [{ type: i0.Input, args: [{ isSignal: true, alias: "selectAllScope", required: false }] }], selected: [{ type: i0.Input, args: [{ isSignal: true, alias: "selected", required: false }] }, { type: i0.Output, args: ["selectedChange"] }], selectOnRowClick: [{ type: i0.Input, args: [{ isSignal: true, alias: "selectOnRowClick", required: false }] }], selectionActions: [{ type: i0.Input, args: [{ isSignal: true, alias: "selectionActions", required: false }] }], rowActions: [{ type: i0.Input, args: [{ isSignal: true, alias: "rowActions", required: false }] }], actionsHeader: [{ type: i0.Input, args: [{ isSignal: true, alias: "actionsHeader", required: false }] }], actionsWidth: [{ type: i0.Input, args: [{ isSignal: true, alias: "actionsWidth", required: false }] }], rowClickable: [{ type: i0.Input, args: [{ isSignal: true, alias: "rowClickable", required: false }] }], rowClass: [{ type: i0.Input, args: [{ isSignal: true, alias: "rowClass", required: false }] }], loading: [{ type: i0.Input, args: [{ isSignal: true, alias: "loading", required: false }] }], loadingText: [{ type: i0.Input, args: [{ isSignal: true, alias: "loadingText", required: false }] }], striped: [{ type: i0.Input, args: [{ isSignal: true, alias: "striped", required: false }] }], hoverable: [{ type: i0.Input, args: [{ isSignal: true, alias: "hoverable", required: false }] }], bordered: [{ type: i0.Input, args: [{ isSignal: true, alias: "bordered", required: false }] }], dense: [{ type: i0.Input, args: [{ isSignal: true, alias: "dense", required: false }] }], stickyHeader: [{ type: i0.Input, args: [{ isSignal: true, alias: "stickyHeader", required: false }] }], maxHeight: [{ type: i0.Input, args: [{ isSignal: true, alias: "maxHeight", required: false }] }], copyable: [{ type: i0.Input, args: [{ isSignal: true, alias: "copyable", required: false }] }], showColumnPicker: [{ type: i0.Input, args: [{ isSignal: true, alias: "showColumnPicker", required: false }] }], showDensityToggle: [{ type: i0.Input, args: [{ isSignal: true, alias: "showDensityToggle", required: false }] }], showColumnMenu: [{ type: i0.Input, args: [{ isSignal: true, alias: "showColumnMenu", required: false }] }], showExport: [{ type: i0.Input, args: [{ isSignal: true, alias: "showExport", required: false }] }], exportFileName: [{ type: i0.Input, args: [{ isSignal: true, alias: "exportFileName", required: false }] }], showViews: [{ type: i0.Input, args: [{ isSignal: true, alias: "showViews", required: false }] }], resizable: [{ type: i0.Input, args: [{ isSignal: true, alias: "resizable", required: false }] }], reorderable: [{ type: i0.Input, args: [{ isSignal: true, alias: "reorderable", required: false }] }], keyboardNavigation: [{ type: i0.Input, args: [{ isSignal: true, alias: "keyboardNavigation", required: false }] }], storageKey: [{ type: i0.Input, args: [{ isSignal: true, alias: "storageKey", required: false }] }], skeletonRows: [{ type: i0.Input, args: [{ isSignal: true, alias: "skeletonRows", required: false }] }], minRows: [{ type: i0.Input, args: [{ isSignal: true, alias: "minRows", required: false }] }], stickySelection: [{ type: i0.Input, args: [{ isSignal: true, alias: "stickySelection", required: false }] }], stickyActions: [{ type: i0.Input, args: [{ isSignal: true, alias: "stickyActions", required: false }] }], rowDetailTrigger: [{ type: i0.Input, args: [{ isSignal: true, alias: "rowDetailTrigger", required: false }] }], actionClick: [{ type: i0.Output, args: ["actionClick"] }], rowClick: [{ type: i0.Output, args: ["rowClick"] }], cellCopy: [{ type: i0.Output, args: ["cellCopy"] }], rowContextMenu: [{ type: i0.Output, args: ["rowContextMenu"] }], columnsChange: [{ type: i0.Output, args: ["columnsChange"] }], densityChange: [{ type: i0.Output, args: ["densityChange"] }], columnStateChange: [{ type: i0.Output, args: ["columnStateChange"] }], selectionAction: [{ type: i0.Output, args: ["selectionAction"] }], csvExport: [{ type: i0.Output, args: ["csvExport"] }], exportFile: [{ type: i0.Output, args: ["exportFile"] }], cellDirectives: [{ type: i0.ContentChildren, args: [i0.forwardRef(() => TableCellDirective), { ...{ descendants: true }, isSignal: true }] }], headerDirectives: [{ type: i0.ContentChildren, args: [i0.forwardRef(() => TableHeaderDirective), { ...{ descendants: true }, isSignal: true }] }], filterDirectives: [{ type: i0.ContentChildren, args: [i0.forwardRef(() => TableFilterDirective), { ...{ descendants: true }, isSignal: true }] }], rowActionsDirectives: [{ type: i0.ContentChildren, args: [i0.forwardRef(() => TableRowActionsDirective), { ...{
1960
2018
  descendants: true,
1961
2019
  }, isSignal: true }] }], toolbarDirectives: [{ type: i0.ContentChildren, args: [i0.forwardRef(() => TableToolbarDirective), { ...{ descendants: true }, isSignal: true }] }], footerDirectives: [{ type: i0.ContentChildren, args: [i0.forwardRef(() => TableFooterDirective), { ...{ descendants: true }, isSignal: true }] }], emptyDirectives: [{ type: i0.ContentChildren, args: [i0.forwardRef(() => TableEmptyDirective), { ...{ descendants: true }, isSignal: true }] }], rowMenuDirectives: [{ type: i0.ContentChildren, args: [i0.forwardRef(() => TableRowMenuDirective), { ...{