ngx-core-components 0.3.11 → 0.3.13
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +1087 -89
- package/fesm2022/ngx-core-components-grid.mjs +351 -122
- package/fesm2022/ngx-core-components-grid.mjs.map +1 -1
- package/fesm2022/ngx-core-components-views.mjs +752 -86
- package/fesm2022/ngx-core-components-views.mjs.map +1 -1
- package/grid/data-grid/data-grid.component.d.ts +14 -1
- package/package.json +5 -5
- package/views/public-api.d.ts +1 -1
- package/views/scheduler/models.d.ts +16 -0
- package/views/scheduler/scheduler.component.d.ts +75 -7
|
@@ -122,6 +122,8 @@ class DataGridComponent {
|
|
|
122
122
|
collapsedGroups = signal(new Set());
|
|
123
123
|
editingRowKey = signal(null);
|
|
124
124
|
editingDraft = signal({});
|
|
125
|
+
internalPageSize = signal(10);
|
|
126
|
+
internalGroupBy = signal(null);
|
|
125
127
|
// Enterprise Extensions
|
|
126
128
|
elementRef = inject(ElementRef);
|
|
127
129
|
destroyRef = inject(DestroyRef);
|
|
@@ -157,6 +159,7 @@ class DataGridComponent {
|
|
|
157
159
|
tempFilterValue = signal('');
|
|
158
160
|
tempFilterOperator = signal('contains');
|
|
159
161
|
tempSelectedValues = signal(new Set());
|
|
162
|
+
filterSearchQuery = signal('');
|
|
160
163
|
// Global search state
|
|
161
164
|
searchText = signal('');
|
|
162
165
|
constructor() {
|
|
@@ -179,6 +182,14 @@ class DataGridComponent {
|
|
|
179
182
|
this.currentPage.set(max);
|
|
180
183
|
}
|
|
181
184
|
});
|
|
185
|
+
effect(() => {
|
|
186
|
+
const externalPageSize = this.pageSize();
|
|
187
|
+
untracked(() => this.internalPageSize.set(externalPageSize));
|
|
188
|
+
});
|
|
189
|
+
effect(() => {
|
|
190
|
+
const externalGroupBy = this.groupBy();
|
|
191
|
+
untracked(() => this.internalGroupBy.set(externalGroupBy));
|
|
192
|
+
});
|
|
182
193
|
effect(() => {
|
|
183
194
|
const states = this.sortStates();
|
|
184
195
|
const current = untracked(() => this.sortState());
|
|
@@ -281,6 +292,8 @@ class DataGridComponent {
|
|
|
281
292
|
}
|
|
282
293
|
}
|
|
283
294
|
ngOnInit() {
|
|
295
|
+
this.internalPageSize.set(this.pageSize());
|
|
296
|
+
this.internalGroupBy.set(this.groupBy());
|
|
284
297
|
this.loadState();
|
|
285
298
|
}
|
|
286
299
|
loadState() {
|
|
@@ -592,7 +605,7 @@ class DataGridComponent {
|
|
|
592
605
|
return this.baseFlatData().length;
|
|
593
606
|
});
|
|
594
607
|
totalPages = computed(() => {
|
|
595
|
-
const pageSize = Math.max(1, this.
|
|
608
|
+
const pageSize = Math.max(1, this.internalPageSize());
|
|
596
609
|
return Math.max(1, Math.ceil(this.totalItems() / pageSize));
|
|
597
610
|
});
|
|
598
611
|
flatRenderedRows = computed(() => {
|
|
@@ -602,7 +615,7 @@ class DataGridComponent {
|
|
|
602
615
|
if (this.pagingMode() === 'server') {
|
|
603
616
|
return this.data();
|
|
604
617
|
}
|
|
605
|
-
const pageSize = Math.max(1, this.
|
|
618
|
+
const pageSize = Math.max(1, this.internalPageSize());
|
|
606
619
|
const start = (this.currentPage() - 1) * pageSize;
|
|
607
620
|
return this.baseFlatData().slice(start, start + pageSize);
|
|
608
621
|
});
|
|
@@ -613,7 +626,7 @@ class DataGridComponent {
|
|
|
613
626
|
if (this.groupMode() === 'server') {
|
|
614
627
|
return this.groupedData();
|
|
615
628
|
}
|
|
616
|
-
const group = this.
|
|
629
|
+
const group = this.internalGroupBy();
|
|
617
630
|
if (!group) {
|
|
618
631
|
return [];
|
|
619
632
|
}
|
|
@@ -657,13 +670,13 @@ class DataGridComponent {
|
|
|
657
670
|
if (this.totalItems() === 0) {
|
|
658
671
|
return 0;
|
|
659
672
|
}
|
|
660
|
-
return (this.currentPage() - 1) * this.
|
|
673
|
+
return (this.currentPage() - 1) * this.internalPageSize() + 1;
|
|
661
674
|
});
|
|
662
675
|
pagerRangeEnd = computed(() => {
|
|
663
676
|
if (this.totalItems() === 0) {
|
|
664
677
|
return 0;
|
|
665
678
|
}
|
|
666
|
-
return Math.min(this.currentPage() * this.
|
|
679
|
+
return Math.min(this.currentPage() * this.internalPageSize(), this.totalItems());
|
|
667
680
|
});
|
|
668
681
|
pageNumbers = computed(() => {
|
|
669
682
|
const total = this.totalPages();
|
|
@@ -904,6 +917,68 @@ class DataGridComponent {
|
|
|
904
917
|
downloadAnchor.click();
|
|
905
918
|
downloadAnchor.remove();
|
|
906
919
|
}
|
|
920
|
+
exportToExcel() {
|
|
921
|
+
if (this.data().length === 0)
|
|
922
|
+
return;
|
|
923
|
+
const cols = this.orderedColumns();
|
|
924
|
+
let tableHtml = '<table><thead><tr>';
|
|
925
|
+
cols.forEach(c => {
|
|
926
|
+
tableHtml += `<th>${c.title}</th>`;
|
|
927
|
+
});
|
|
928
|
+
tableHtml += '</tr></thead><tbody>';
|
|
929
|
+
this.data().forEach(row => {
|
|
930
|
+
const r = row;
|
|
931
|
+
tableHtml += '<tr>';
|
|
932
|
+
cols.forEach(c => {
|
|
933
|
+
const val = r[c.field] ?? '';
|
|
934
|
+
const valStr = typeof val === 'object' ? JSON.stringify(val) : String(val);
|
|
935
|
+
const alignClass = c.align ? ` class="text-${c.align}"` : '';
|
|
936
|
+
tableHtml += `<td${alignClass}>${valStr}</td>`;
|
|
937
|
+
});
|
|
938
|
+
tableHtml += '</tr>';
|
|
939
|
+
});
|
|
940
|
+
tableHtml += '</tbody></table>';
|
|
941
|
+
const worksheetName = 'Grid Export';
|
|
942
|
+
const template = `
|
|
943
|
+
<html xmlns:o="urn:schemas-microsoft-com:office:office" xmlns:x="urn:schemas-microsoft-com:office:excel" xmlns="http://www.w3.org/TR/REC-html40">
|
|
944
|
+
<head>
|
|
945
|
+
<!--[if gte mso 9]>
|
|
946
|
+
<xml>
|
|
947
|
+
<x:ExcelWorkbook>
|
|
948
|
+
<x:ExcelWorksheets>
|
|
949
|
+
<x:ExcelWorksheet>
|
|
950
|
+
<x:Name>${worksheetName}</x:Name>
|
|
951
|
+
<x:WorksheetOptions>
|
|
952
|
+
<x:DisplayGridlines/>
|
|
953
|
+
</x:WorksheetOptions>
|
|
954
|
+
</x:ExcelWorksheet>
|
|
955
|
+
</x:ExcelWorksheets>
|
|
956
|
+
</x:ExcelWorkbook>
|
|
957
|
+
</xml>
|
|
958
|
+
<![endif]-->
|
|
959
|
+
<style>
|
|
960
|
+
table { border-collapse: collapse; font-family: sans-serif; font-size: 11pt; }
|
|
961
|
+
th { background-color: #f1f5f9; color: #1e293b; font-weight: bold; border: 1px solid #cbd5e1; padding: 6px; }
|
|
962
|
+
td { border: 1px solid #cbd5e1; padding: 6px; }
|
|
963
|
+
.text-right { text-align: right; }
|
|
964
|
+
.text-center { text-align: center; }
|
|
965
|
+
.text-left { text-align: left; }
|
|
966
|
+
</style>
|
|
967
|
+
</head>
|
|
968
|
+
<body>
|
|
969
|
+
${tableHtml}
|
|
970
|
+
</body>
|
|
971
|
+
</html>
|
|
972
|
+
`;
|
|
973
|
+
const blob = new Blob([template], { type: 'application/vnd.ms-excel;charset=utf-8;' });
|
|
974
|
+
const url = URL.createObjectURL(blob);
|
|
975
|
+
const downloadAnchor = document.createElement('a');
|
|
976
|
+
downloadAnchor.setAttribute("href", url);
|
|
977
|
+
downloadAnchor.setAttribute("download", "grid-data.xls");
|
|
978
|
+
document.body.appendChild(downloadAnchor);
|
|
979
|
+
downloadAnchor.click();
|
|
980
|
+
downloadAnchor.remove();
|
|
981
|
+
}
|
|
907
982
|
setFilter(field, value) {
|
|
908
983
|
const nextStates = new Map(this.filterStates());
|
|
909
984
|
if (value) {
|
|
@@ -945,12 +1020,39 @@ class DataGridComponent {
|
|
|
945
1020
|
window.addEventListener('mousemove', onMouseMove);
|
|
946
1021
|
window.addEventListener('mouseup', onMouseUp);
|
|
947
1022
|
}
|
|
1023
|
+
onResizeDoubleClick(event, col) {
|
|
1024
|
+
event.stopPropagation();
|
|
1025
|
+
event.preventDefault();
|
|
1026
|
+
this.autoSizeColumn(col);
|
|
1027
|
+
}
|
|
1028
|
+
autoSizeColumn(col) {
|
|
1029
|
+
const colField = col.field;
|
|
1030
|
+
let longestText = '';
|
|
1031
|
+
if (col.title && col.title.length > longestText.length) {
|
|
1032
|
+
longestText = col.title;
|
|
1033
|
+
}
|
|
1034
|
+
const rows = this.clientFilteredData();
|
|
1035
|
+
for (const row of rows) {
|
|
1036
|
+
const val = this.getCellValue(row, colField);
|
|
1037
|
+
const strVal = val != null ? String(val) : '';
|
|
1038
|
+
if (strVal.length > longestText.length) {
|
|
1039
|
+
longestText = strVal;
|
|
1040
|
+
}
|
|
1041
|
+
}
|
|
1042
|
+
const padding = col.filterable ? 44 : 24;
|
|
1043
|
+
const computedWidth = Math.max(60, Math.min(600, longestText.length * 8 + padding));
|
|
1044
|
+
this.columnWidths.update(widths => ({
|
|
1045
|
+
...widths,
|
|
1046
|
+
[colField]: computedWidth
|
|
1047
|
+
}));
|
|
1048
|
+
}
|
|
948
1049
|
openFilterPopover(event, field) {
|
|
949
1050
|
event.stopPropagation();
|
|
950
1051
|
if (this.activeFilterPopover()?.field === field) {
|
|
951
1052
|
this.activeFilterPopover.set(null);
|
|
952
1053
|
return;
|
|
953
1054
|
}
|
|
1055
|
+
this.filterSearchQuery.set('');
|
|
954
1056
|
const current = this.filterStates().get(field);
|
|
955
1057
|
this.tempFilterValue.set(current?.value ?? '');
|
|
956
1058
|
this.tempFilterOperator.set((current?.operator === 'in' ? 'contains' : current?.operator) ?? 'contains');
|
|
@@ -981,6 +1083,13 @@ class DataGridComponent {
|
|
|
981
1083
|
});
|
|
982
1084
|
return Array.from(vals).sort();
|
|
983
1085
|
}
|
|
1086
|
+
getFilteredDistinctValues(field) {
|
|
1087
|
+
const distinct = this.getDistinctValues(field);
|
|
1088
|
+
const search = this.filterSearchQuery().trim().toLowerCase();
|
|
1089
|
+
if (!search)
|
|
1090
|
+
return distinct;
|
|
1091
|
+
return distinct.filter(v => v.toLowerCase().includes(search));
|
|
1092
|
+
}
|
|
984
1093
|
toggleChecklistItem(val) {
|
|
985
1094
|
const next = new Set(this.tempSelectedValues());
|
|
986
1095
|
if (next.has(val)) {
|
|
@@ -995,13 +1104,16 @@ class DataGridComponent {
|
|
|
995
1104
|
const pop = this.activeFilterPopover();
|
|
996
1105
|
if (!pop)
|
|
997
1106
|
return;
|
|
998
|
-
const distinct = this.
|
|
999
|
-
|
|
1000
|
-
|
|
1107
|
+
const distinct = this.getFilteredDistinctValues(pop.field);
|
|
1108
|
+
const current = new Set(this.tempSelectedValues());
|
|
1109
|
+
const allSelected = distinct.every(val => current.has(val));
|
|
1110
|
+
if (allSelected) {
|
|
1111
|
+
distinct.forEach(val => current.delete(val));
|
|
1001
1112
|
}
|
|
1002
1113
|
else {
|
|
1003
|
-
|
|
1114
|
+
distinct.forEach(val => current.add(val));
|
|
1004
1115
|
}
|
|
1116
|
+
this.tempSelectedValues.set(current);
|
|
1005
1117
|
}
|
|
1006
1118
|
applyPopoverFilter() {
|
|
1007
1119
|
const pop = this.activeFilterPopover();
|
|
@@ -1237,9 +1349,44 @@ class DataGridComponent {
|
|
|
1237
1349
|
goPage(page) {
|
|
1238
1350
|
const safePage = Math.max(1, Math.min(this.totalPages(), page));
|
|
1239
1351
|
this.currentPage.set(safePage);
|
|
1240
|
-
this.pageChange.emit({ page: safePage, pageSize: this.
|
|
1352
|
+
this.pageChange.emit({ page: safePage, pageSize: this.internalPageSize() });
|
|
1353
|
+
this.emitDataState();
|
|
1354
|
+
}
|
|
1355
|
+
changePageSize(size) {
|
|
1356
|
+
this.internalPageSize.set(size);
|
|
1357
|
+
this.currentPage.set(1);
|
|
1358
|
+
this.pageChange.emit({ page: 1, pageSize: size });
|
|
1241
1359
|
this.emitDataState();
|
|
1242
1360
|
}
|
|
1361
|
+
getColumnDef(field) {
|
|
1362
|
+
if (!field)
|
|
1363
|
+
return null;
|
|
1364
|
+
return this.columns().find(c => c.field === field) ?? null;
|
|
1365
|
+
}
|
|
1366
|
+
contextMenuGroupBy(field) {
|
|
1367
|
+
if (!field)
|
|
1368
|
+
return;
|
|
1369
|
+
const groupState = { field, dir: 'asc' };
|
|
1370
|
+
this.internalGroupBy.set(groupState);
|
|
1371
|
+
this.groupChange.emit({ group: groupState });
|
|
1372
|
+
this.emitDataState(groupState);
|
|
1373
|
+
this.activeContextMenu.set(null);
|
|
1374
|
+
}
|
|
1375
|
+
contextMenuClearGrouping() {
|
|
1376
|
+
this.internalGroupBy.set(null);
|
|
1377
|
+
this.groupChange.emit({ group: null });
|
|
1378
|
+
this.emitDataState(null);
|
|
1379
|
+
this.activeContextMenu.set(null);
|
|
1380
|
+
}
|
|
1381
|
+
collapseAllGroups() {
|
|
1382
|
+
const keys = this.groupedRows().map(g => g.key);
|
|
1383
|
+
this.collapsedGroups.set(new Set(keys));
|
|
1384
|
+
this.activeContextMenu.set(null);
|
|
1385
|
+
}
|
|
1386
|
+
expandAllGroups() {
|
|
1387
|
+
this.collapsedGroups.set(new Set());
|
|
1388
|
+
this.activeContextMenu.set(null);
|
|
1389
|
+
}
|
|
1243
1390
|
onRowClick(row, index) {
|
|
1244
1391
|
this.rowClick.emit({ row, index });
|
|
1245
1392
|
}
|
|
@@ -1401,13 +1548,13 @@ class DataGridComponent {
|
|
|
1401
1548
|
return String(source['id'] ?? source['key'] ?? index);
|
|
1402
1549
|
}
|
|
1403
1550
|
hasGrouping() {
|
|
1404
|
-
return this.
|
|
1551
|
+
return this.internalGroupBy() !== null;
|
|
1405
1552
|
}
|
|
1406
1553
|
paginateRows(rows) {
|
|
1407
1554
|
if (this.pagingMode() === 'server') {
|
|
1408
1555
|
return rows;
|
|
1409
1556
|
}
|
|
1410
|
-
const pageSize = Math.max(1, this.
|
|
1557
|
+
const pageSize = Math.max(1, this.internalPageSize());
|
|
1411
1558
|
const start = (this.currentPage() - 1) * pageSize;
|
|
1412
1559
|
return rows.slice(start, start + pageSize);
|
|
1413
1560
|
}
|
|
@@ -1449,10 +1596,10 @@ class DataGridComponent {
|
|
|
1449
1596
|
emitDataState(overrideGroup) {
|
|
1450
1597
|
this.dataStateChange.emit({
|
|
1451
1598
|
page: this.currentPage(),
|
|
1452
|
-
pageSize: this.
|
|
1599
|
+
pageSize: this.internalPageSize(),
|
|
1453
1600
|
sort: this.sortState(),
|
|
1454
1601
|
filters: this.activeFilters(),
|
|
1455
|
-
group: overrideGroup === undefined ? this.
|
|
1602
|
+
group: overrideGroup === undefined ? this.internalGroupBy() : overrideGroup,
|
|
1456
1603
|
});
|
|
1457
1604
|
}
|
|
1458
1605
|
onCellClick(row, colField) {
|
|
@@ -1687,6 +1834,7 @@ class DataGridComponent {
|
|
|
1687
1834
|
}
|
|
1688
1835
|
<button class="grid-action-btn" (click)="exportToJson()" title="Export JSON">JSON</button>
|
|
1689
1836
|
<button class="grid-action-btn" (click)="exportToCsv()" title="Export CSV">CSV</button>
|
|
1837
|
+
<button class="grid-action-btn" (click)="exportToExcel()" title="Export Excel">Excel</button>
|
|
1690
1838
|
</div>
|
|
1691
1839
|
</div>
|
|
1692
1840
|
|
|
@@ -1743,7 +1891,7 @@ class DataGridComponent {
|
|
|
1743
1891
|
</button>
|
|
1744
1892
|
}
|
|
1745
1893
|
</div>
|
|
1746
|
-
<div class="grid-resize-handle" (mousedown)="onResizeStart($event, col)" (click)="$event.stopPropagation()"></div>
|
|
1894
|
+
<div class="grid-resize-handle" (mousedown)="onResizeStart($event, col)" (dblclick)="onResizeDoubleClick($event, col)" (click)="$event.stopPropagation()"></div>
|
|
1747
1895
|
</ng-template>
|
|
1748
1896
|
|
|
1749
1897
|
<tr class="grid-header-row">
|
|
@@ -1754,9 +1902,7 @@ class DataGridComponent {
|
|
|
1754
1902
|
<th class="grid-th grid-th-toggle pinned-left" [class.pinned-left-last]="isDetailToggleLastPinned()" [attr.rowspan]="hasColumnCategories() ? 2 : 1" [style.left.px]="rowReorderable() ? 44 : 0" style="width:44px"></th>
|
|
1755
1903
|
}
|
|
1756
1904
|
@if (selectable()) {
|
|
1757
|
-
<th class="grid-th grid-th-check pinned-left" [class.pinned-left-last]="isSelectableLastPinned()" [attr.rowspan]="hasColumnCategories() ? 2 : 1" [style.left.px]="(rowReorderable() ? 44 : 0) + (showDetailToggle() ? 44 : 0)" style="width:44px">
|
|
1758
|
-
<input type="checkbox" [checked]="allSelected()" [indeterminate]="someSelected() && !allSelected()" (change)="toggleAll()" />
|
|
1759
|
-
</th>
|
|
1905
|
+
<th class="grid-th grid-th-check pinned-left" [class.pinned-left-last]="isSelectableLastPinned()" [attr.rowspan]="hasColumnCategories() ? 2 : 1" [style.left.px]="(rowReorderable() ? 44 : 0) + (showDetailToggle() ? 44 : 0)" style="width:44px"><input type="checkbox" [checked]="allSelected()" [indeterminate]="someSelected() && !allSelected()" (change)="toggleAll()" /></th>
|
|
1760
1906
|
}
|
|
1761
1907
|
@for (cell of headerRows().row1; track cell.field) {
|
|
1762
1908
|
@if (cell.isCategory) {
|
|
@@ -1866,9 +2012,7 @@ class DataGridComponent {
|
|
|
1866
2012
|
<td class="grid-td grid-td-toggle pinned-left" [class.pinned-left-last]="isDetailToggleLastPinned()" [style.left.px]="rowReorderable() ? 44 : 0" style="width:44px"></td>
|
|
1867
2013
|
}
|
|
1868
2014
|
@if (selectable()) {
|
|
1869
|
-
<td class="grid-td grid-td-check pinned-left" [class.pinned-left-last]="isSelectableLastPinned()" [style.left.px]="(rowReorderable() ? 44 : 0) + (showDetailToggle() ? 44 : 0)" style="width:44px">
|
|
1870
|
-
<input type="checkbox" [checked]="isGroupAllSelected(group)" (change)="toggleGroupSelection(group, $event)" (click)="$event.stopPropagation()" />
|
|
1871
|
-
</td>
|
|
2015
|
+
<td class="grid-td grid-td-check pinned-left" [class.pinned-left-last]="isSelectableLastPinned()" [style.left.px]="(rowReorderable() ? 44 : 0) + (showDetailToggle() ? 44 : 0)" style="width:44px"><input type="checkbox" [checked]="isGroupAllSelected(group)" (change)="toggleGroupSelection(group, $event)" (click)="$event.stopPropagation()" /></td>
|
|
1872
2016
|
}
|
|
1873
2017
|
@for (col of orderedColumns(); track col.field; let first = $first) {
|
|
1874
2018
|
<td
|
|
@@ -1927,28 +2071,15 @@ class DataGridComponent {
|
|
|
1927
2071
|
(dblclick)="editable() ? beginEdit(row, i) : null"
|
|
1928
2072
|
>
|
|
1929
2073
|
@if (rowReorderable()) {
|
|
1930
|
-
<td class="grid-td grid-td-reorder pinned-left" [class.pinned-left-last]="isRowReorderableLastPinned()" style="left:0px; text-align:center; width:44px">
|
|
1931
|
-
<span
|
|
1932
|
-
class="row-drag-handle"
|
|
1933
|
-
draggable="true"
|
|
1934
|
-
(dragstart)="onRowDragStart($event, i)"
|
|
1935
|
-
(dragend)="onRowDragEnd()"
|
|
1936
|
-
>⋮⋮</span>
|
|
1937
|
-
</td>
|
|
2074
|
+
<td class="grid-td grid-td-reorder pinned-left" [class.pinned-left-last]="isRowReorderableLastPinned()" style="left:0px; text-align:center; width:44px"><span class="row-drag-handle" draggable="true" (dragstart)="onRowDragStart($event, i)" (dragend)="onRowDragEnd()">⋮⋮</span></td>
|
|
1938
2075
|
}
|
|
1939
2076
|
|
|
1940
2077
|
@if (showDetailToggle()) {
|
|
1941
|
-
<td class="grid-td grid-td-toggle pinned-left" [class.pinned-left-last]="isDetailToggleLastPinned()" [style.left.px]="rowReorderable() ? 44 : 0">
|
|
1942
|
-
<button class="toggle-btn" type="button" (click)="toggleDetail(row); $event.stopPropagation()">
|
|
1943
|
-
{{ isExpanded(row) ? '▾' : '▸' }}
|
|
1944
|
-
</button>
|
|
1945
|
-
</td>
|
|
2078
|
+
<td class="grid-td grid-td-toggle pinned-left" [class.pinned-left-last]="isDetailToggleLastPinned()" [style.left.px]="rowReorderable() ? 44 : 0"><button class="toggle-btn" type="button" (click)="toggleDetail(row); $event.stopPropagation()">{{ isExpanded(row) ? '▾' : '▸' }}</button></td>
|
|
1946
2079
|
}
|
|
1947
2080
|
|
|
1948
2081
|
@if (selectable()) {
|
|
1949
|
-
<td class="grid-td grid-td-check pinned-left" [class.pinned-left-last]="isSelectableLastPinned()" [style.left.px]="(rowReorderable() ? 44 : 0) + (showDetailToggle() ? 44 : 0)">
|
|
1950
|
-
<input type="checkbox" [checked]="isRowSelected(row)" (change)="toggleRow(row)" (click)="$event.stopPropagation()" />
|
|
1951
|
-
</td>
|
|
2082
|
+
<td class="grid-td grid-td-check pinned-left" [class.pinned-left-last]="isSelectableLastPinned()" [style.left.px]="(rowReorderable() ? 44 : 0) + (showDetailToggle() ? 44 : 0)"><input type="checkbox" [checked]="isRowSelected(row)" (change)="toggleRow(row)" (click)="$event.stopPropagation()" /></td>
|
|
1952
2083
|
}
|
|
1953
2084
|
|
|
1954
2085
|
@if (rowTemplate()) {
|
|
@@ -2070,28 +2201,15 @@ class DataGridComponent {
|
|
|
2070
2201
|
(dblclick)="editable() ? beginEdit(row, i) : null"
|
|
2071
2202
|
>
|
|
2072
2203
|
@if (rowReorderable()) {
|
|
2073
|
-
<td class="grid-td grid-td-reorder pinned-left" [class.pinned-left-last]="isRowReorderableLastPinned()" style="left:0px; text-align:center; width:44px">
|
|
2074
|
-
<span
|
|
2075
|
-
class="row-drag-handle"
|
|
2076
|
-
draggable="true"
|
|
2077
|
-
(dragstart)="onRowDragStart($event, i)"
|
|
2078
|
-
(dragend)="onRowDragEnd()"
|
|
2079
|
-
>⋮⋮</span>
|
|
2080
|
-
</td>
|
|
2204
|
+
<td class="grid-td grid-td-reorder pinned-left" [class.pinned-left-last]="isRowReorderableLastPinned()" style="left:0px; text-align:center; width:44px"><span class="row-drag-handle" draggable="true" (dragstart)="onRowDragStart($event, i)" (dragend)="onRowDragEnd()">⋮⋮</span></td>
|
|
2081
2205
|
}
|
|
2082
2206
|
|
|
2083
2207
|
@if (showDetailToggle()) {
|
|
2084
|
-
<td class="grid-td grid-td-toggle pinned-left" [class.pinned-left-last]="isDetailToggleLastPinned()" [style.left.px]="rowReorderable() ? 44 : 0">
|
|
2085
|
-
<button class="toggle-btn" type="button" (click)="toggleDetail(row); $event.stopPropagation()">
|
|
2086
|
-
{{ isExpanded(row) ? '▾' : '▸' }}
|
|
2087
|
-
</button>
|
|
2088
|
-
</td>
|
|
2208
|
+
<td class="grid-td grid-td-toggle pinned-left" [class.pinned-left-last]="isDetailToggleLastPinned()" [style.left.px]="rowReorderable() ? 44 : 0"><button class="toggle-btn" type="button" (click)="toggleDetail(row); $event.stopPropagation()">{{ isExpanded(row) ? '▾' : '▸' }}</button></td>
|
|
2089
2209
|
}
|
|
2090
2210
|
|
|
2091
2211
|
@if (selectable()) {
|
|
2092
|
-
<td class="grid-td grid-td-check pinned-left" [class.pinned-left-last]="isSelectableLastPinned()" [style.left.px]="(rowReorderable() ? 44 : 0) + (showDetailToggle() ? 44 : 0)">
|
|
2093
|
-
<input type="checkbox" [checked]="isRowSelected(row)" (change)="toggleRow(row)" (click)="$event.stopPropagation()" />
|
|
2094
|
-
</td>
|
|
2212
|
+
<td class="grid-td grid-td-check pinned-left" [class.pinned-left-last]="isSelectableLastPinned()" [style.left.px]="(rowReorderable() ? 44 : 0) + (showDetailToggle() ? 44 : 0)"><input type="checkbox" [checked]="isRowSelected(row)" (change)="toggleRow(row)" (click)="$event.stopPropagation()" /></td>
|
|
2095
2213
|
}
|
|
2096
2214
|
|
|
2097
2215
|
@if (rowTemplate()) {
|
|
@@ -2202,11 +2320,14 @@ class DataGridComponent {
|
|
|
2202
2320
|
@if (hasAggregation()) {
|
|
2203
2321
|
<tfoot>
|
|
2204
2322
|
<tr class="grid-footer-row">
|
|
2323
|
+
@if (rowReorderable()) {
|
|
2324
|
+
<td class="grid-td-reorder pinned-left" [class.pinned-left-last]="isRowReorderableLastPinned()" style="left:0px; width:44px"></td>
|
|
2325
|
+
}
|
|
2205
2326
|
@if (showDetailToggle()) {
|
|
2206
|
-
<td class="grid-td-toggle pinned-left" [class.pinned-left-last]="isDetailToggleLastPinned()" style="
|
|
2327
|
+
<td class="grid-td-toggle pinned-left" [class.pinned-left-last]="isDetailToggleLastPinned()" [style.left.px]="rowReorderable() ? 44 : 0" style="width:44px"></td>
|
|
2207
2328
|
}
|
|
2208
2329
|
@if (selectable()) {
|
|
2209
|
-
<td class="grid-td-check pinned-left" [class.pinned-left-last]="isSelectableLastPinned()" [style.left.px]="showDetailToggle() ? 44 : 0" style="width:44px"></td>
|
|
2330
|
+
<td class="grid-td-check pinned-left" [class.pinned-left-last]="isSelectableLastPinned()" [style.left.px]="(rowReorderable() ? 44 : 0) + (showDetailToggle() ? 44 : 0)" style="width:44px"></td>
|
|
2210
2331
|
}
|
|
2211
2332
|
@for (col of orderedColumns(); track col.field) {
|
|
2212
2333
|
<td
|
|
@@ -2248,17 +2369,52 @@ class DataGridComponent {
|
|
|
2248
2369
|
|
|
2249
2370
|
@if (showPager()) {
|
|
2250
2371
|
<div class="grid-pagination">
|
|
2251
|
-
<
|
|
2252
|
-
|
|
2253
|
-
|
|
2372
|
+
<div class="pagination-left">
|
|
2373
|
+
<span class="page-info">
|
|
2374
|
+
Showing <strong class="page-info-highlight">{{ pagerRangeStart() }}–{{ pagerRangeEnd() }}</strong> of <strong class="page-info-highlight">{{ totalItems() }}</strong> items
|
|
2375
|
+
</span>
|
|
2376
|
+
<div class="page-size-selector">
|
|
2377
|
+
<span class="page-size-label">Items per page:</span>
|
|
2378
|
+
<select [value]="internalPageSize()" (change)="changePageSize(+$any($event.target).value)" class="page-size-select">
|
|
2379
|
+
<option [value]="5">5</option>
|
|
2380
|
+
<option [value]="8">8</option>
|
|
2381
|
+
<option [value]="10">10</option>
|
|
2382
|
+
<option [value]="20">20</option>
|
|
2383
|
+
<option [value]="50">50</option>
|
|
2384
|
+
<option [value]="100">100</option>
|
|
2385
|
+
</select>
|
|
2386
|
+
</div>
|
|
2387
|
+
</div>
|
|
2254
2388
|
<div class="page-btns">
|
|
2255
|
-
<button class="page-btn" [disabled]="currentPage() === 1" (click)="goPage(1)"
|
|
2256
|
-
|
|
2257
|
-
|
|
2258
|
-
|
|
2259
|
-
|
|
2260
|
-
|
|
2261
|
-
<button class="page-btn" [disabled]="currentPage() ===
|
|
2389
|
+
<button class="page-btn ctrl" [disabled]="currentPage() === 1" (click)="goPage(1)" title="First Page">
|
|
2390
|
+
<svg viewBox="0 0 24 24" width="14" height="14" fill="none" stroke="currentColor" stroke-width="2.5" stroke-linecap="round" stroke-linejoin="round">
|
|
2391
|
+
<polyline points="11 17 6 12 11 7"></polyline>
|
|
2392
|
+
<polyline points="18 17 13 12 18 7"></polyline>
|
|
2393
|
+
</svg>
|
|
2394
|
+
</button>
|
|
2395
|
+
<button class="page-btn ctrl" [disabled]="currentPage() === 1" (click)="goPage(currentPage() - 1)" title="Previous Page">
|
|
2396
|
+
<svg viewBox="0 0 24 24" width="14" height="14" fill="none" stroke="currentColor" stroke-width="2.5" stroke-linecap="round" stroke-linejoin="round">
|
|
2397
|
+
<polyline points="15 18 9 12 15 6"></polyline>
|
|
2398
|
+
</svg>
|
|
2399
|
+
</button>
|
|
2400
|
+
|
|
2401
|
+
<div class="page-numbers">
|
|
2402
|
+
@for (p of pageNumbers(); track p) {
|
|
2403
|
+
<button class="page-btn number" [class.active]="p === currentPage()" (click)="goPage(p)">{{ p }}</button>
|
|
2404
|
+
}
|
|
2405
|
+
</div>
|
|
2406
|
+
|
|
2407
|
+
<button class="page-btn ctrl" [disabled]="currentPage() === totalPages()" (click)="goPage(currentPage() + 1)" title="Next Page">
|
|
2408
|
+
<svg viewBox="0 0 24 24" width="14" height="14" fill="none" stroke="currentColor" stroke-width="2.5" stroke-linecap="round" stroke-linejoin="round">
|
|
2409
|
+
<polyline points="9 18 15 12 9 6"></polyline>
|
|
2410
|
+
</svg>
|
|
2411
|
+
</button>
|
|
2412
|
+
<button class="page-btn ctrl" [disabled]="currentPage() === totalPages()" (click)="goPage(totalPages())" title="Last Page">
|
|
2413
|
+
<svg viewBox="0 0 24 24" width="14" height="14" fill="none" stroke="currentColor" stroke-width="2.5" stroke-linecap="round" stroke-linejoin="round">
|
|
2414
|
+
<polyline points="13 17 18 12 13 7"></polyline>
|
|
2415
|
+
<polyline points="6 17 11 12 6 7"></polyline>
|
|
2416
|
+
</svg>
|
|
2417
|
+
</button>
|
|
2262
2418
|
</div>
|
|
2263
2419
|
</div>
|
|
2264
2420
|
}
|
|
@@ -2281,14 +2437,21 @@ class DataGridComponent {
|
|
|
2281
2437
|
|
|
2282
2438
|
<div class="popover-section checklist-section">
|
|
2283
2439
|
<label class="popover-label">Checklist Filter</label>
|
|
2440
|
+
<input
|
|
2441
|
+
class="checklist-search"
|
|
2442
|
+
type="text"
|
|
2443
|
+
[value]="filterSearchQuery()"
|
|
2444
|
+
(input)="filterSearchQuery.set($any($event.target).value)"
|
|
2445
|
+
placeholder="Search items..."
|
|
2446
|
+
/>
|
|
2284
2447
|
<div class="checklist-actions">
|
|
2285
2448
|
<label class="checklist-item select-all">
|
|
2286
|
-
<input type="checkbox" [checked]="tempSelectedValues().size ===
|
|
2449
|
+
<input type="checkbox" [checked]="tempSelectedValues().size === getFilteredDistinctValues(pop.field).length" [indeterminate]="tempSelectedValues().size > 0 && tempSelectedValues().size < getFilteredDistinctValues(pop.field).length" (change)="toggleSelectAllChecklist()" />
|
|
2287
2450
|
<span>(Select All)</span>
|
|
2288
2451
|
</label>
|
|
2289
2452
|
</div>
|
|
2290
2453
|
<div class="checklist-scroll">
|
|
2291
|
-
@for (val of
|
|
2454
|
+
@for (val of getFilteredDistinctValues(pop.field); track val) {
|
|
2292
2455
|
<label class="checklist-item">
|
|
2293
2456
|
<input type="checkbox" [checked]="tempSelectedValues().has(val)" (change)="toggleChecklistItem(val)" />
|
|
2294
2457
|
<span>{{ val }}</span>
|
|
@@ -2334,6 +2497,28 @@ class DataGridComponent {
|
|
|
2334
2497
|
<span class="menu-icon">📋</span> Copy Selection
|
|
2335
2498
|
</button>
|
|
2336
2499
|
<div class="menu-divider"></div>
|
|
2500
|
+
@if (getColumnDef(menu.colField); as columnDef) {
|
|
2501
|
+
@if (columnDef.groupable) {
|
|
2502
|
+
@if (internalGroupBy()?.field === menu.colField) {
|
|
2503
|
+
<button class="menu-item" (click)="contextMenuClearGrouping()">
|
|
2504
|
+
<span class="menu-icon">📁</span> Clear Grouping
|
|
2505
|
+
</button>
|
|
2506
|
+
} @else {
|
|
2507
|
+
<button class="menu-item" (click)="contextMenuGroupBy(menu.colField)">
|
|
2508
|
+
<span class="menu-icon">🗂️</span> Group by {{ columnDef.title }}
|
|
2509
|
+
</button>
|
|
2510
|
+
}
|
|
2511
|
+
}
|
|
2512
|
+
}
|
|
2513
|
+
@if (hasGrouping()) {
|
|
2514
|
+
<button class="menu-item" (click)="expandAllGroups()">
|
|
2515
|
+
<span class="menu-icon">↕️</span> Expand All Groups
|
|
2516
|
+
</button>
|
|
2517
|
+
<button class="menu-item" (click)="collapseAllGroups()">
|
|
2518
|
+
<span class="menu-icon">⋯</span> Collapse All Groups
|
|
2519
|
+
</button>
|
|
2520
|
+
}
|
|
2521
|
+
<div class="menu-divider"></div>
|
|
2337
2522
|
<button class="menu-item" (click)="contextMenuTogglePin(menu.colField)">
|
|
2338
2523
|
<span class="menu-icon">📌</span> {{ isColumnPinned(menu.colField) ? 'Unpin Column' : 'Pin Column Left' }}
|
|
2339
2524
|
</button>
|
|
@@ -2351,10 +2536,13 @@ class DataGridComponent {
|
|
|
2351
2536
|
<button class="menu-item" (click)="exportToCsv(); activeContextMenu.set(null)">
|
|
2352
2537
|
<span class="menu-icon">📊</span> Export to CSV
|
|
2353
2538
|
</button>
|
|
2539
|
+
<button class="menu-item" (click)="exportToExcel(); activeContextMenu.set(null)">
|
|
2540
|
+
<span class="menu-icon">📈</span> Export to Excel
|
|
2541
|
+
</button>
|
|
2354
2542
|
</div>
|
|
2355
2543
|
}
|
|
2356
2544
|
</div>
|
|
2357
|
-
`, isInline: true, styles: [":host{display:block}.ngx-data-grid{position:relative;font-family:inherit;border:1px solid var(--ngx-grid-border, #e2e8f0);border-radius:var(--ngx-grid-radius, 12px);overflow:visible;background:var(--ngx-grid-bg, #ffffff);box-shadow:0 4px 6px -1px #0000000d,0 2px 4px -2px #0000000d;transition:background-color .3s,border-color .3s,box-shadow .3s}.grid-toolbar{display:flex;justify-content:space-between;align-items:center;padding:12px 16px;background:var(--ngx-grid-header-bg, #f8fafc);border-bottom:1px solid var(--ngx-grid-border, #e2e8f0);border-radius:var(--ngx-grid-radius, 12px) var(--ngx-grid-radius, 12px) 0 0;flex-wrap:wrap;gap:12px}.grid-toolbar-title{font-family:var(--ngx-heading-font-family, \"Outfit\", sans-serif);font-weight:700;font-size:14px;color:var(--ngx-grid-text, #0f172a)}.grid-toolbar-actions{display:flex;gap:6px}.grid-action-btn{padding:6px 14px;border:1px solid var(--ngx-grid-border, #e2e8f0);border-radius:8px;background:var(--ngx-grid-bg, #ffffff);color:var(--ngx-grid-text, #0f172a);font-size:12px;font-weight:500;cursor:pointer;font-family:inherit;transition:all .2s cubic-bezier(.4,0,.2,1);outline:none}.grid-action-btn:hover{background:var(--ngx-grid-hover-bg, #f1f5f9);border-color:var(--ngx-input-border, #cbd5e1);transform:translateY(-.5px)}.grid-action-btn:active{transform:scale(.97)}.grid-table-wrap{overflow-x:auto;overflow-y:hidden}.grid-table{width:100%;border-collapse:collapse;font-size:13px;table-layout:fixed}.grid-th{position:relative;padding:12px 16px;text-align:left;font-size:11px;font-weight:700;color:var(--ngx-grid-text-secondary, #64748b);background:var(--ngx-grid-header-bg, #f8fafc);border-bottom:2px solid var(--ngx-grid-border, #e2e8f0);white-space:nowrap;-webkit-user-select:none;user-select:none;text-transform:uppercase;letter-spacing:.05em;font-family:var(--ngx-heading-font-family, \"Outfit\", sans-serif)}.grid-category-th{text-align:center;border-bottom:1px solid var(--ngx-grid-border, #e2e8f0);border-right:1px solid var(--ngx-grid-border, #e2e8f0)}.sub-header-row .grid-th{border-bottom:2px solid var(--ngx-grid-border, #e2e8f0);border-right:1px solid var(--ngx-grid-border, #f1f5f9)}.grid-th.sortable{cursor:pointer;transition:background-color .2s}.grid-th.sortable:hover{background:var(--ngx-grid-hover-bg, #f1f5f9)}.grid-th.sort-asc,.grid-th.sort-desc{color:var(--ngx-input-focus, #4f46e5)}.th-text{margin-right:4px}.sort-icon{font-size:10px;color:#cbd5e1}.sort-asc .sort-icon,.sort-desc .sort-icon{color:var(--ngx-input-focus, #4f46e5)}.th-content-wrapper{display:flex;align-items:center;justify-content:space-between;gap:6px;width:100%}.grid-filter-btn{background:transparent;border:none;color:var(--ngx-grid-text-secondary, #64748b);cursor:pointer;padding:2px;border-radius:4px;display:flex;align-items:center;justify-content:center;transition:all .2s}.grid-filter-btn:hover{background:var(--ngx-grid-hover-bg, #e2e8f0);color:var(--ngx-grid-text, #0f172a)}.grid-filter-btn.active{color:var(--ngx-input-focus, #4f46e5);background:#4f46e51a}.grid-resize-handle{position:absolute;right:0;top:0;bottom:0;width:6px;cursor:col-resize;background:transparent;z-index:10;transition:background-color .2s}.grid-resize-handle:hover,.grid-resize-handle.resizing{background:var(--ngx-input-focus, #4f46e5)}.grid-filter-popover,.grid-column-chooser-popover{position:absolute;width:250px;background:var(--ngx-grid-bg, #ffffff);border:1px solid var(--ngx-grid-border, #e2e8f0);border-radius:12px;box-shadow:0 10px 25px -5px #0000001a,0 8px 10px -6px #0000001a;z-index:1000;padding:12px;box-sizing:border-box;display:flex;flex-direction:column;gap:12px;font-family:inherit}.popover-section{display:flex;flex-direction:column;gap:6px}.popover-label{font-size:11px;font-weight:700;color:var(--ngx-grid-text-secondary, #64748b);text-transform:uppercase;letter-spacing:.05em}.text-filter-row{display:flex;flex-direction:column;gap:6px}.popover-select{padding:6px;border:1px solid var(--ngx-grid-border, #cbd5e1);border-radius:6px;font-size:12px;font-family:inherit;outline:none;background:var(--ngx-input-bg, #ffffff);color:var(--ngx-grid-text, #0f172a)}.popover-input{padding:6px 10px;border:1px solid var(--ngx-grid-border, #cbd5e1);border-radius:6px;font-size:12px;font-family:inherit;outline:none;background:var(--ngx-input-bg, #ffffff);color:var(--ngx-grid-text, #0f172a)}.checklist-section{border-top:1px solid var(--ngx-grid-border, #e2e8f0);padding-top:10px}.checklist-scroll{max-height:120px;overflow-y:auto;display:flex;flex-direction:column;gap:4px;border:1px solid var(--ngx-grid-border, #e2e8f0);border-radius:6px;padding:6px}.checklist-item{display:flex;align-items:center;gap:8px;font-size:12px;color:var(--ngx-grid-text, #0f172a);cursor:pointer;-webkit-user-select:none;user-select:none}.checklist-item input{margin:0}.popover-footer{display:flex;justify-content:space-between;align-items:center;border-top:1px solid var(--ngx-grid-border, #e2e8f0);padding-top:10px;margin-top:4px}.footer-actions{display:flex;gap:6px}.popover-btn{padding:5px 10px;font-size:11px;font-weight:600;border-radius:6px;cursor:pointer;border:1px solid var(--ngx-grid-border, #cbd5e1);background:var(--ngx-grid-bg, #ffffff);color:var(--ngx-grid-text, #0f172a);transition:all .2s}.popover-btn:hover{background:var(--ngx-grid-hover-bg, #f1f5f9)}.popover-btn.apply{background:var(--ngx-btn-primary-bg, #4f46e5);color:#fff;border-color:var(--ngx-btn-primary-bg, #4f46e5)}.popover-btn.apply:hover{background:var(--ngx-btn-primary-hover, #4338ca);border-color:var(--ngx-btn-primary-hover, #4338ca)}.popover-btn.clear{color:#ef4444;border-color:transparent;background:transparent}.popover-btn.clear:hover{background:#fef2f2}.grid-group-row td{background:var(--ngx-grid-header-bg, #f8fafc);border-bottom:1.5px solid var(--ngx-grid-border, #e2e8f0);color:var(--ngx-grid-text, #0f172a);font-size:12px;font-weight:600;padding:11px 16px;cursor:pointer}.group-toggle{border:none;background:transparent;margin-right:6px;cursor:pointer;color:var(--ngx-grid-text-secondary, #64748b);font-size:12px}.group-count{color:var(--ngx-grid-text-secondary, #64748b);margin-left:6px;font-weight:500}.grid-row{border-bottom:1px solid var(--ngx-grid-border, #e2e8f0);transition:background-color .15s}.grid-row:hover{background:var(--ngx-grid-hover-bg, #f1f5f9)}.grid-row.selected{background:var(--ngx-grid-selected-bg, #e0e7ff)!important}.grid-table.striped .grid-row:nth-child(2n){background:var(--ngx-grid-stripe-bg, #f8fafc)}.grid-table.striped .grid-row:nth-child(2n):hover{background:var(--ngx-grid-hover-bg, #f1f5f9)}.grid-table.striped .grid-row.selected{background:var(--ngx-grid-selected-bg, #e0e7ff)!important}.grid-td{padding:11px 16px;color:var(--ngx-grid-text, #0f172a);white-space:nowrap;overflow:hidden;text-overflow:ellipsis;vertical-align:middle;box-sizing:border-box}.grid-th-check,.grid-td-check,.grid-th-toggle,.grid-td-toggle{width:44px!important;text-align:center}.toggle-btn{border:none;background:transparent;color:var(--ngx-grid-text-secondary, #64748b);cursor:pointer;font-size:13px;transition:color .15s}.toggle-btn:hover{color:var(--ngx-grid-text, #0f172a)}.grid-detail-row td{background:var(--ngx-grid-stripe-bg, #f8fafc);border-bottom:1px solid var(--ngx-grid-border, #e2e8f0)}.grid-detail-cell{padding:16px 24px;white-space:normal}.grid-edit-input{width:100%;min-width:80px;padding:6px 10px;border:1px solid var(--ngx-grid-border, #cbd5e1);border-radius:6px;font-size:12px;font-family:inherit;background:var(--ngx-input-bg, #ffffff);color:var(--ngx-grid-text, #0f172a);box-sizing:border-box;outline:none;transition:border-color .2s,box-shadow .2s}.grid-edit-input:focus{border-color:var(--ngx-input-focus, #4f46e5);box-shadow:0 0 0 3px var(--primary-glow, rgba(79, 70, 229, .15))}.grid-actions{white-space:nowrap}.action-btn{border:1px solid var(--ngx-grid-border, #cbd5e1);background:var(--ngx-grid-bg, #ffffff);color:var(--ngx-grid-text, #0f172a);border-radius:6px;padding:5px 10px;font-size:12px;font-weight:500;margin-right:6px;cursor:pointer;transition:all .2s;outline:none}.action-btn:hover{background:var(--ngx-grid-hover-bg, #f1f5f9);border-color:var(--ngx-input-border, #cbd5e1)}.action-btn.save{border-color:var(--ngx-btn-primary-bg, #4f46e5);background:var(--ngx-btn-primary-bg, #4f46e5);color:#fff}.action-btn.save:hover{background:var(--ngx-btn-primary-hover, #4338ca);border-color:var(--ngx-btn-primary-hover, #4338ca)}.action-btn:last-child{margin-right:0}.grid-loading-cell,.grid-empty-cell{padding:48px;text-align:center;color:var(--ngx-grid-text-secondary, #64748b);font-weight:500}.grid-spinner{width:28px;height:28px;border:3.5px solid var(--ngx-grid-border, #e2e8f0);border-top-color:var(--ngx-btn-primary-bg, #4f46e5);border-radius:50%;animation:spin .8s cubic-bezier(.4,0,.2,1) infinite;margin:0 auto}@keyframes spin{to{transform:rotate(360deg)}}.grid-pagination{display:flex;align-items:center;justify-content:space-between;padding:10px 16px;border-top:1px solid var(--ngx-grid-border, #e2e8f0);background:var(--ngx-grid-bg, #ffffff);border-radius:0 0 var(--ngx-grid-radius, 12px) var(--ngx-grid-radius, 12px);flex-wrap:wrap;gap:8px}.page-info{font-size:12px;color:var(--ngx-grid-text-secondary, #64748b);font-weight:500}.page-btns{display:flex;gap:4px}.page-btn{min-width:32px;height:32px;padding:0 8px;font-size:12px;font-weight:500;border:1px solid var(--ngx-grid-border, #e2e8f0);background:var(--ngx-grid-bg, #ffffff);border-radius:8px;cursor:pointer;font-family:inherit;color:var(--ngx-grid-text, #0f172a);transition:all .2s;outline:none}.page-btn:hover:not(:disabled){background:var(--ngx-grid-hover-bg, #f1f5f9);border-color:var(--ngx-input-border, #cbd5e1)}.page-btn.active{background:var(--ngx-btn-primary-bg, #4f46e5);color:#fff;border-color:var(--ngx-btn-primary-bg, #4f46e5);box-shadow:0 2px 4px #4f46e533}.page-btn:disabled{opacity:.4;cursor:not-allowed}.grid-footer-row td{background:var(--ngx-grid-header-bg, #f8fafc);border-top:2px solid var(--ngx-grid-border, #e2e8f0);font-size:12px;padding:12px 16px;color:var(--ngx-grid-text, #0f172a)}.agg-label{font-size:10px;font-weight:700;color:var(--ngx-grid-text-secondary, #64748b);text-transform:uppercase;letter-spacing:.05em}.agg-value{font-weight:700;color:var(--ngx-input-focus, #4f46e5)}.pinned-left{position:sticky!important;z-index:2;background:var(--ngx-grid-bg, #ffffff)}th.pinned-left{z-index:4;background:var(--ngx-grid-header-bg, #f8fafc)}.sticky-toggle{position:sticky!important;left:0;z-index:3;background:var(--ngx-grid-bg, #ffffff)}th.sticky-toggle{z-index:5;background:var(--ngx-grid-header-bg, #f8fafc)}.sticky-check{position:sticky!important;z-index:3;background:var(--ngx-grid-bg, #ffffff)}th.sticky-check{z-index:5;background:var(--ngx-grid-header-bg, #f8fafc)}.pinned-left-last,.sticky-toggle-last,.sticky-check-last{border-right:1px solid var(--ngx-grid-border, #cbd5e1)!important;box-shadow:4px 0 8px -3px #00000026}.grid-table.striped .grid-row:nth-child(2n) .pinned-left,.grid-table.striped .grid-row:nth-child(2n) .sticky-toggle,.grid-table.striped .grid-row:nth-child(2n) .sticky-check{background:var(--ngx-grid-stripe-bg, #f8fafc)}.grid-row:hover .pinned-left,.grid-row:hover .sticky-toggle,.grid-row:hover .sticky-check{background:var(--ngx-grid-hover-bg, #f1f5f9)!important}.grid-row.selected .pinned-left,.grid-row.selected .sticky-toggle,.grid-row.selected .sticky-check{background:var(--ngx-grid-selected-bg, #e0e7ff)!important}.grid-footer-row .pinned-left,.grid-footer-row .sticky-toggle,.grid-footer-row .sticky-check{background:var(--ngx-grid-header-bg, #f8fafc)}.pinned-right{position:sticky!important;z-index:2;background:var(--ngx-grid-bg, #ffffff)}th.pinned-right{z-index:4;background:var(--ngx-grid-header-bg, #f8fafc)}.pinned-right-first{border-left:1px solid var(--ngx-grid-border, #cbd5e1)!important;box-shadow:-4px 0 8px -3px #00000026}.grid-table.striped .grid-row:nth-child(2n) .pinned-right{background:var(--ngx-grid-stripe-bg, #f8fafc)}.grid-row:hover .pinned-right{background:var(--ngx-grid-hover-bg, #f1f5f9)!important}.grid-row.selected .pinned-right{background:var(--ngx-grid-selected-bg, #e0e7ff)!important}.grid-footer-row .pinned-right{background:var(--ngx-grid-header-bg, #f8fafc)}.grid-td.cell-focused{outline:2px solid var(--ngx-input-focus, #4f46e5)!important;outline-offset:-2px;z-index:5}.grid-td.cell-focused-editing{padding:0!important}.grid-td.cell-focused-editing .grid-edit-input{width:100%;height:100%;border:none;outline:none;padding:12px 16px;box-sizing:border-box;background:var(--ngx-grid-bg, #ffffff);color:var(--ngx-grid-text, #0f172a);font-family:inherit;font-size:inherit}.grid-th[draggable=true]{cursor:grab}.grid-th[draggable=true]:active{cursor:grabbing}.grid-th.dragging{opacity:.4;background:var(--ngx-grid-hover-bg, #f1f5f9)!important;border:1.5px dashed var(--ngx-input-border, #cbd5e1)}.grid-th.drag-over{border-left:3px solid var(--ngx-input-focus, #4f46e5)!important}.sort-icon.active{color:var(--ngx-input-focus, #4f46e5);font-weight:700}.sort-order-badge{font-size:8px;line-height:1;background:var(--ngx-input-focus, #4f46e5);color:#fff;padding:1px 3.5px;border-radius:4px;vertical-align:super;margin-left:2px}.grid-search-wrap{position:relative;display:inline-flex;align-items:center}.grid-search-input{padding:6px 30px 6px 12px;border:1px solid var(--ngx-grid-border, #cbd5e1);border-radius:8px;font-size:13px;font-family:inherit;background:var(--ngx-input-bg, #ffffff);color:var(--ngx-grid-text, #0f172a);outline:none;transition:all .2s cubic-bezier(.4,0,.2,1);width:180px}.grid-search-input:focus{border-color:var(--ngx-input-focus, #4f46e5);box-shadow:0 0 0 3px var(--primary-glow, rgba(79, 70, 229, .15));width:220px}.grid-search-clear{position:absolute;right:8px;background:transparent;border:none;color:var(--ngx-grid-text-secondary, #94a3b8);font-size:16px;cursor:pointer;display:flex;align-items:center;justify-content:center;padding:2px;line-height:1}.grid-search-clear:hover{color:var(--ngx-grid-text, #0f172a)}.search-highlight{background-color:#fbbf244d;color:inherit;font-weight:600;padding:1px 2px;border-radius:4px}.grid-td.cell-selected{background:var(--ngx-grid-cell-selected-bg, rgba(79, 70, 229, .12))!important;outline:1.5px solid var(--ngx-grid-cell-selected-border, #4f46e5);outline-offset:-1.5px}.row-drag-handle{cursor:grab;-webkit-user-select:none;user-select:none;color:var(--ngx-grid-text-secondary, #94a3b8);font-size:15px;font-weight:700;display:inline-block;padding:4px 8px;transition:color .15s ease}.row-drag-handle:hover{color:var(--ngx-grid-text, #0f172a)}.row-drag-handle:active{cursor:grabbing}.grid-row.dragging-row{opacity:.4;background:var(--ngx-grid-hover-bg, #f1f5f9)!important;border:1.5px dashed var(--ngx-input-border, #cbd5e1)}.grid-row.drag-over-row{border-top:2px solid var(--ngx-input-focus, #4f46e5)!important}.grid-context-menu{position:absolute;width:180px;background:var(--ngx-grid-bg, rgba(255, 255, 255, .95));backdrop-filter:blur(8px);-webkit-backdrop-filter:blur(8px);border:1px solid var(--ngx-grid-border, #e2e8f0);border-radius:10px;box-shadow:0 10px 25px -5px #0000001a,0 8px 10px -6px #0000001a;z-index:2000;padding:6px;box-sizing:border-box;display:flex;flex-direction:column;gap:2px;font-family:inherit}.menu-item{display:flex;align-items:center;gap:8px;padding:8px 10px;border:none;background:transparent;color:var(--ngx-grid-text, #0f172a);font-size:12px;font-weight:500;cursor:pointer;text-align:left;border-radius:6px;transition:all .15s ease;font-family:inherit;width:100%;box-sizing:border-box;outline:none}.menu-item:hover:not(:disabled){background:var(--ngx-grid-hover-bg, #f1f5f9);color:var(--ngx-btn-primary-bg, #4f46e5)}.menu-item:disabled{opacity:.4;cursor:not-allowed}.menu-icon{font-size:14px;width:16px;text-align:center}.menu-divider{height:1px;background:var(--ngx-grid-border, #e2e8f0);margin:4px 6px}\n"], dependencies: [{ kind: "directive", type: NgTemplateOutlet, selector: "[ngTemplateOutlet]", inputs: ["ngTemplateOutletContext", "ngTemplateOutlet", "ngTemplateOutletInjector"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush });
|
|
2545
|
+
`, isInline: true, styles: [":host{display:block}.grid-table-wrap::-webkit-scrollbar,.checklist-scroll::-webkit-scrollbar{width:6px;height:6px}.grid-table-wrap::-webkit-scrollbar-track,.checklist-scroll::-webkit-scrollbar-track{background:transparent}.grid-table-wrap::-webkit-scrollbar-thumb,.checklist-scroll::-webkit-scrollbar-thumb{background:#64748b33;border-radius:99px}.grid-table-wrap::-webkit-scrollbar-thumb:hover,.checklist-scroll::-webkit-scrollbar-thumb:hover{background:#64748b66}.ngx-data-grid{position:relative;font-family:inherit;border:1px solid var(--ngx-grid-border, #e2e8f0);border-radius:var(--ngx-grid-radius, 12px);overflow:hidden;background:var(--ngx-grid-bg, #ffffff);box-shadow:0 10px 15px -3px #00000008,0 4px 6px -4px #00000008,0 0 0 1px #00000005;transition:background-color .3s,border-color .3s,box-shadow .3s}.grid-toolbar{display:flex;justify-content:space-between;align-items:center;padding:14px 18px;background:var(--ngx-grid-header-bg, #f8fafc);border-bottom:1px solid var(--ngx-grid-border, #e2e8f0);flex-wrap:wrap;gap:12px}.grid-toolbar-title{font-family:var(--ngx-heading-font-family, \"Outfit\", sans-serif);font-weight:700;font-size:15px;color:var(--ngx-grid-text, #0f172a);letter-spacing:-.01em}.grid-toolbar-actions{display:flex;gap:8px}.grid-action-btn{padding:6px 14px;border:1px solid var(--ngx-grid-border, #e2e8f0);border-radius:8px;background:var(--ngx-grid-bg, #ffffff);color:var(--ngx-grid-text, #0f172a);font-size:12px;font-weight:600;cursor:pointer;font-family:inherit;transition:all .2s cubic-bezier(.4,0,.2,1);outline:none;display:inline-flex;align-items:center;gap:6px}.grid-action-btn:hover{background:var(--ngx-grid-hover-bg, #f8fafc);border-color:var(--ngx-input-focus, #4f46e5);color:var(--ngx-input-focus, #4f46e5);box-shadow:0 4px 6px -1px #4f46e514;transform:translateY(-.5px)}.grid-action-btn:active{transform:scale(.97)}.grid-table-wrap{overflow-x:auto;overflow-y:hidden}.grid-table{width:100%;border-collapse:collapse;font-size:13px;table-layout:fixed}.grid-th{position:relative;padding:14px 18px;text-align:left;font-size:11px;font-weight:750;color:var(--ngx-grid-text-secondary, #64748b);background:var(--ngx-grid-header-bg, #f8fafc);border-bottom:2px solid var(--ngx-grid-border, #e2e8f0);white-space:nowrap;-webkit-user-select:none;user-select:none;text-transform:uppercase;letter-spacing:.06em;font-family:var(--ngx-heading-font-family, \"Outfit\", sans-serif);transition:background-color .2s ease}.grid-category-th{text-align:center;border-bottom:1px solid var(--ngx-grid-border, #e2e8f0);border-right:1px solid var(--ngx-grid-border, #e2e8f0)}.sub-header-row .grid-th{border-bottom:2px solid var(--ngx-grid-border, #e2e8f0);border-right:1px solid var(--ngx-grid-border, #f1f5f9)}.grid-th.sortable{cursor:pointer}.grid-th.sortable:hover{background:var(--ngx-grid-hover-bg, #f1f5f9);color:var(--ngx-grid-text, #0f172a)}.grid-th.sort-asc,.grid-th.sort-desc{color:var(--ngx-input-focus, #4f46e5);background:#4f46e505}.th-text{margin-right:4px}.sort-icon{font-size:10px;color:#cbd5e1;transition:color .2s ease}.sort-asc .sort-icon,.sort-desc .sort-icon{color:var(--ngx-input-focus, #4f46e5)}.th-content-wrapper{display:flex;align-items:center;justify-content:space-between;gap:6px;width:100%}.grid-filter-btn{background:transparent;border:none;color:var(--ngx-grid-text-secondary, #94a3b8);cursor:pointer;padding:4px;border-radius:6px;display:flex;align-items:center;justify-content:center;transition:all .2s}.grid-filter-btn:hover{background:var(--ngx-grid-hover-bg, #cbd5e1);color:var(--ngx-grid-text, #0f172a)}.grid-filter-btn.active{color:var(--ngx-input-focus, #4f46e5);background:#4f46e51a}.grid-resize-handle{position:absolute;right:0;top:0;bottom:0;width:6px;cursor:col-resize;background:transparent;z-index:10;transition:background-color .2s}.grid-resize-handle:hover,.grid-resize-handle.resizing{background:var(--ngx-input-focus, #4f46e5)}.grid-filter-popover,.grid-column-chooser-popover,.grid-context-menu{position:absolute;width:250px;background:var(--ngx-grid-bg-glass, rgba(255, 255, 255, .8));backdrop-filter:blur(16px) saturate(180%);-webkit-backdrop-filter:blur(16px) saturate(180%);border:1px solid rgba(255,255,255,.5);border-radius:14px;box-shadow:0 20px 25px -5px #00000014,0 10px 10px -5px #0000000a,0 0 0 1px #00000005;z-index:1000;padding:12px;box-sizing:border-box;display:flex;flex-direction:column;gap:12px;font-family:inherit;animation:popoverFadeIn .2s cubic-bezier(.16,1,.3,1) forwards;transform-origin:top center}.grid-context-menu{width:190px;padding:6px;gap:2px}@keyframes popoverFadeIn{0%{opacity:0;transform:scale(.95) translateY(-5px)}to{opacity:1;transform:scale(1) translateY(0)}}.checklist-search{padding:8px 12px;border:1px solid var(--ngx-grid-border, #cbd5e1);border-radius:8px;font-size:12px;font-family:inherit;outline:none;background:var(--ngx-input-bg, #ffffff);color:var(--ngx-grid-text, #0f172a);width:100%;box-sizing:border-box;margin-bottom:4px;transition:all .2s ease}.checklist-search:focus{border-color:var(--ngx-input-focus, #4f46e5);box-shadow:0 0 0 3px var(--primary-glow, rgba(79, 70, 229, .15))}.popover-section{display:flex;flex-direction:column;gap:6px}.popover-label{font-size:10px;font-weight:800;color:var(--ngx-grid-text-secondary, #64748b);text-transform:uppercase;letter-spacing:.06em}.text-filter-row{display:flex;flex-direction:column;gap:6px}.popover-select{padding:6px 10px;border:1px solid var(--ngx-grid-border, #cbd5e1);border-radius:8px;font-size:12px;font-family:inherit;outline:none;background:var(--ngx-input-bg, #ffffff);color:var(--ngx-grid-text, #0f172a);cursor:pointer}.popover-input{padding:6px 10px;border:1px solid var(--ngx-grid-border, #cbd5e1);border-radius:8px;font-size:12px;font-family:inherit;outline:none;background:var(--ngx-input-bg, #ffffff);color:var(--ngx-grid-text, #0f172a);transition:all .2s}.popover-input:focus{border-color:var(--ngx-input-focus, #4f46e5);box-shadow:0 0 0 3px var(--primary-glow, rgba(79, 70, 229, .15))}.checklist-section{border-top:1px solid var(--ngx-grid-border, #e2e8f0);padding-top:10px}.checklist-scroll{max-height:140px;overflow-y:auto;display:flex;flex-direction:column;gap:4px;border:1px solid var(--ngx-grid-border, #e2e8f0);border-radius:8px;padding:8px;background:#ffffff73}.checklist-item{display:flex;align-items:center;gap:8px;font-size:12px;color:var(--ngx-grid-text, #0f172a);cursor:pointer;-webkit-user-select:none;user-select:none}.popover-footer{display:flex;justify-content:space-between;align-items:center;border-top:1px solid var(--ngx-grid-border, #e2e8f0);padding-top:10px;margin-top:4px}.footer-actions{display:flex;gap:6px}.popover-btn{padding:5px 12px;font-size:11px;font-weight:600;border-radius:6px;cursor:pointer;border:1px solid var(--ngx-grid-border, #cbd5e1);background:var(--ngx-grid-bg, #ffffff);color:var(--ngx-grid-text, #0f172a);transition:all .2s ease;font-family:inherit}.popover-btn:hover{background:var(--ngx-grid-hover-bg, #f8fafc);border-color:var(--ngx-input-border, #cbd5e1)}.popover-btn.apply{background:var(--ngx-btn-primary-bg, #4f46e5);color:#fff;border-color:var(--ngx-btn-primary-bg, #4f46e5)}.popover-btn.apply:hover{background:var(--ngx-btn-primary-hover, #4338ca);border-color:var(--ngx-btn-primary-hover, #4338ca);box-shadow:0 4px 6px -1px #4f46e533}.popover-btn.clear{color:#ef4444;border-color:transparent;background:transparent}.popover-btn.clear:hover{background:#fef2f2}.grid-group-row td{background:var(--ngx-grid-header-bg, #f8fafc);border-bottom:1.5px solid var(--ngx-grid-border, #e2e8f0);color:var(--ngx-grid-text, #0f172a);font-size:12px;font-weight:600;padding:12px 18px;cursor:pointer}.group-toggle{border:none;background:transparent;margin-right:6px;cursor:pointer;color:var(--ngx-grid-text-secondary, #64748b);font-size:12px;transition:transform .2s ease}.group-count{color:var(--ngx-grid-text-secondary, #64748b);margin-left:6px;font-weight:500}.grid-row{border-bottom:1px solid var(--ngx-grid-border, #f1f5f9);transition:background-color .15s ease}.grid-row:hover{background:var(--ngx-grid-hover-bg, rgba(79, 70, 229, .02))!important}.grid-row.selected{background:var(--ngx-grid-selected-bg, rgba(79, 70, 229, .07))!important}.grid-row.selected:hover{background:var(--ngx-grid-selected-bg, rgba(79, 70, 229, .1))!important}.grid-table.striped .grid-row:nth-child(2n){background:var(--ngx-grid-stripe-bg, #f8fafc)}.grid-table.striped .grid-row:nth-child(2n):hover{background:var(--ngx-grid-hover-bg, rgba(79, 70, 229, .02))!important}.grid-table.striped .grid-row.selected{background:var(--ngx-grid-selected-bg, rgba(79, 70, 229, .07))!important}.grid-td{padding:12px 18px;color:var(--ngx-grid-text, #0f172a);white-space:nowrap;overflow:hidden;text-overflow:ellipsis;vertical-align:middle;box-sizing:border-box}.grid-th-check,.grid-td-check,.grid-th-toggle,.grid-td-toggle,.grid-td-reorder,.grid-th-reorder{width:44px!important;text-align:center;padding:0!important;text-overflow:clip!important}.toggle-btn{border:none;background:transparent;color:var(--ngx-grid-text-secondary, #64748b);cursor:pointer;font-size:13px;transition:color .15s ease,transform .15s ease}.toggle-btn:hover{color:var(--ngx-grid-text, #0f172a)}.grid-detail-row td{background:var(--ngx-grid-stripe-bg, #f8fafc);border-bottom:1px solid var(--ngx-grid-border, #e2e8f0)}.grid-detail-cell{padding:18px 24px;white-space:normal}.grid-edit-input{width:100%;min-width:80px;padding:6px 10px;border:1px solid var(--ngx-grid-border, #cbd5e1);border-radius:8px;font-size:12px;font-family:inherit;background:var(--ngx-input-bg, #ffffff);color:var(--ngx-grid-text, #0f172a);box-sizing:border-box;outline:none;transition:border-color .2s,box-shadow .2s}.grid-edit-input:focus{border-color:var(--ngx-input-focus, #4f46e5);box-shadow:0 0 0 3px var(--primary-glow, rgba(79, 70, 229, .15))}.grid-actions{white-space:nowrap}.action-btn{border:1px solid var(--ngx-grid-border, #cbd5e1);background:var(--ngx-grid-bg, #ffffff);color:var(--ngx-grid-text, #0f172a);border-radius:8px;padding:6px 12px;font-size:12px;font-weight:600;margin-right:6px;cursor:pointer;transition:all .2s;outline:none}.action-btn:hover{background:var(--ngx-grid-hover-bg, #f8fafc);border-color:var(--ngx-input-border, #cbd5e1)}.action-btn.save{border-color:var(--ngx-btn-primary-bg, #4f46e5);background:var(--ngx-btn-primary-bg, #4f46e5);color:#fff}.action-btn.save:hover{background:var(--ngx-btn-primary-hover, #4338ca);border-color:var(--ngx-btn-primary-hover, #4338ca);box-shadow:0 4px 6px -1px #4f46e533}.action-btn:last-child{margin-right:0}.grid-loading-cell,.grid-empty-cell{padding:48px;text-align:center;color:var(--ngx-grid-text-secondary, #64748b);font-weight:500}.grid-spinner{width:28px;height:28px;border:3.5px solid var(--ngx-grid-border, #e2e8f0);border-top-color:var(--ngx-btn-primary-bg, #4f46e5);border-radius:50%;animation:spin .8s cubic-bezier(.4,0,.2,1) infinite;margin:0 auto}@keyframes spin{to{transform:rotate(360deg)}}.grid-pagination{display:flex;align-items:center;justify-content:space-between;padding:14px 20px;border-top:1px solid var(--ngx-grid-border, #e2e8f0);background:var(--ngx-grid-header-bg, #f8fafc);flex-wrap:wrap;gap:16px}.pagination-left{display:flex;align-items:center;gap:20px;flex-wrap:wrap}.page-info{font-size:13px;color:var(--ngx-grid-text-secondary, #64748b);font-weight:500}.page-info-highlight{color:var(--ngx-grid-text, #0f172a);font-weight:600}.page-size-selector{display:flex;align-items:center;gap:8px}.page-size-label{font-size:12px;color:var(--ngx-grid-text-secondary, #64748b);font-weight:500}.page-size-select{padding:4px 28px 4px 10px;border:1px solid var(--ngx-grid-border, #cbd5e1);border-radius:6px;font-size:12px;font-weight:600;background:var(--ngx-grid-bg, #ffffff);color:var(--ngx-grid-text, #0f172a);cursor:pointer;outline:none;transition:all .2s;appearance:none;-webkit-appearance:none;background-image:url(\"data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke='%2364748b' stroke-width='2.5'%3E%3Cpath stroke-linecap='round' stroke-linejoin='round' d='M19.5 8.25l-7.5 7.5-7.5-7.5'/%3E%3C/svg%3E\");background-repeat:no-repeat;background-position:right 8px center;background-size:12px}.page-size-select:hover{border-color:var(--ngx-input-border-hover, #94a3b8)}.page-size-select:focus{border-color:var(--ngx-input-focus, #4f46e5);box-shadow:0 0 0 3px var(--primary-glow, rgba(79, 70, 229, .15))}.page-btns{display:flex;align-items:center;gap:6px}.page-numbers{display:flex;gap:4px}.page-btn{min-width:32px;height:32px;padding:0 8px;font-size:13px;font-weight:600;border:1px solid var(--ngx-grid-border, #e2e8f0);background:var(--ngx-grid-bg, #ffffff);border-radius:8px;cursor:pointer;font-family:inherit;color:var(--ngx-grid-text, #0f172a);transition:all .2s cubic-bezier(.4,0,.2,1);outline:none;display:inline-flex;align-items:center;justify-content:center}.page-btn.ctrl{color:var(--ngx-grid-text-secondary, #64748b);background:var(--ngx-grid-bg, #ffffff)}.page-btn:hover:not(:disabled){background:var(--ngx-grid-hover-bg, #f1f5f9);border-color:var(--ngx-input-border-hover, #cbd5e1);color:var(--ngx-input-focus, #4f46e5);transform:translateY(-.5px)}.page-btn.active{background:var(--ngx-btn-primary-bg, #4f46e5);color:#fff!important;border-color:var(--ngx-btn-primary-bg, #4f46e5);box-shadow:0 4px 6px -1px #4f46e540}.page-btn:disabled{opacity:.35;cursor:not-allowed;transform:none!important}.grid-footer-row td{background:var(--ngx-grid-header-bg, #f8fafc);border-top:2px solid var(--ngx-grid-border, #e2e8f0);font-size:12px;padding:12px 18px;color:var(--ngx-grid-text, #0f172a)}.agg-label{font-size:10px;font-weight:800;color:var(--ngx-grid-text-secondary, #64748b);text-transform:uppercase;letter-spacing:.05em}.agg-value{font-weight:700;color:var(--ngx-input-focus, #4f46e5)}.pinned-left{position:sticky!important;z-index:2;background:var(--ngx-grid-bg, #ffffff)}th.pinned-left{z-index:4;background:var(--ngx-grid-header-bg, #f8fafc)}.sticky-toggle{position:sticky!important;left:0;z-index:3;background:var(--ngx-grid-bg, #ffffff)}th.sticky-toggle{z-index:5;background:var(--ngx-grid-header-bg, #f8fafc)}.sticky-check{position:sticky!important;z-index:3;background:var(--ngx-grid-bg, #ffffff)}th.sticky-check{z-index:5;background:var(--ngx-grid-header-bg, #f8fafc)}.pinned-left-last,.sticky-toggle-last,.sticky-check-last{border-right:1px solid var(--ngx-grid-border, #cbd5e1)!important;box-shadow:4px 0 10px -3px #00000014}.grid-table.striped .grid-row:nth-child(2n) .pinned-left,.grid-table.striped .grid-row:nth-child(2n) .sticky-toggle,.grid-table.striped .grid-row:nth-child(2n) .sticky-check{background:var(--ngx-grid-stripe-bg, #f8fafc)}.grid-row:hover .pinned-left,.grid-row:hover .sticky-toggle,.grid-row:hover .sticky-check{background:var(--ngx-grid-hover-bg, rgba(79, 70, 229, .02))!important}.grid-row.selected .pinned-left,.grid-row.selected .sticky-toggle,.grid-row.selected .sticky-check{background:var(--ngx-grid-selected-bg, rgba(79, 70, 229, .07))!important}.grid-footer-row .pinned-left,.grid-footer-row .sticky-toggle,.grid-footer-row .sticky-check{background:var(--ngx-grid-header-bg, #f8fafc)}.pinned-right{position:sticky!important;z-index:2;background:var(--ngx-grid-bg, #ffffff)}th.pinned-right{z-index:4;background:var(--ngx-grid-header-bg, #f8fafc)}.pinned-right-first{border-left:1px solid var(--ngx-grid-border, #cbd5e1)!important;box-shadow:-4px 0 10px -3px #00000014}.grid-table.striped .grid-row:nth-child(2n) .pinned-right{background:var(--ngx-grid-stripe-bg, #f8fafc)}.grid-row:hover .pinned-right{background:var(--ngx-grid-hover-bg, rgba(79, 70, 229, .02))!important}.grid-row.selected .pinned-right{background:var(--ngx-grid-selected-bg, rgba(79, 70, 229, .07))!important}.grid-footer-row .pinned-right{background:var(--ngx-grid-header-bg, #f8fafc)}.grid-td.cell-focused{outline:2px solid var(--ngx-input-focus, #4f46e5)!important;outline-offset:-2px;z-index:5}.grid-td.cell-focused-editing{padding:0!important}.grid-td.cell-focused-editing .grid-edit-input{width:100%;height:100%;border:none;outline:none;padding:12px 18px;box-sizing:border-box;background:var(--ngx-grid-bg, #ffffff);color:var(--ngx-grid-text, #0f172a);font-family:inherit;font-size:inherit;border-radius:0}.grid-th[draggable=true]{cursor:grab}.grid-th[draggable=true]:active{cursor:grabbing}.grid-th.dragging{opacity:.4;background:var(--ngx-grid-hover-bg, #f1f5f9)!important;border:1.5px dashed var(--ngx-input-border, #cbd5e1)}.grid-th.drag-over{border-left:3px solid var(--ngx-input-focus, #4f46e5)!important}.sort-icon.active{color:var(--ngx-input-focus, #4f46e5);font-weight:700}.sort-order-badge{font-size:8px;line-height:1;background:var(--ngx-input-focus, #4f46e5);color:#fff;padding:2px 4px;border-radius:4px;vertical-align:super;margin-left:2px;font-weight:700}.grid-search-wrap{position:relative;display:inline-flex;align-items:center}.grid-search-input{padding:6px 30px 6px 12px;border:1px solid var(--ngx-grid-border, #cbd5e1);border-radius:8px;font-size:13px;font-family:inherit;background:var(--ngx-input-bg, #ffffff);color:var(--ngx-grid-text, #0f172a);outline:none;transition:all .2s cubic-bezier(.4,0,.2,1);width:180px}.grid-search-input:focus{border-color:var(--ngx-input-focus, #4f46e5);box-shadow:0 0 0 3px var(--primary-glow, rgba(79, 70, 229, .15));width:220px}.grid-search-clear{position:absolute;right:8px;background:transparent;border:none;color:var(--ngx-grid-text-secondary, #94a3b8);font-size:16px;cursor:pointer;display:flex;align-items:center;justify-content:center;padding:2px;line-height:1}.grid-search-clear:hover{color:var(--ngx-grid-text, #0f172a)}.search-highlight{background-color:#fbbf2440;color:inherit;font-weight:600;padding:1px 2px;border-radius:4px}.grid-td.cell-selected{background:var(--ngx-grid-cell-selected-bg, rgba(79, 70, 229, .1))!important;outline:1.5px solid var(--ngx-grid-cell-selected-border, #4f46e5);outline-offset:-1.5px}.row-drag-handle{cursor:grab;-webkit-user-select:none;user-select:none;color:var(--ngx-grid-text-secondary, #94a3b8);font-size:15px;font-weight:700;display:inline-block;padding:4px 8px;transition:color .15s ease}.row-drag-handle:hover{color:var(--ngx-grid-text, #0f172a)}.row-drag-handle:active{cursor:grabbing}.grid-row.dragging-row{opacity:.4;background:var(--ngx-grid-hover-bg, #f1f5f9)!important;border:1.5px dashed var(--ngx-input-border, #cbd5e1)}.grid-row.drag-over-row{border-top:2px solid var(--ngx-input-focus, #4f46e5)!important}.grid-context-menu{position:absolute;width:215px;background:var(--ngx-grid-bg, rgba(255, 255, 255, .95));backdrop-filter:blur(8px);-webkit-backdrop-filter:blur(8px);border:1px solid var(--ngx-grid-border, #e2e8f0);border-radius:10px;box-shadow:0 10px 25px -5px #0000001a,0 8px 10px -6px #0000001a;z-index:2000;padding:6px;box-sizing:border-box;display:flex;flex-direction:column;gap:2px;font-family:inherit}.menu-item{display:flex;align-items:center;gap:8px;padding:8px 10px;border:none;background:transparent;color:var(--ngx-grid-text, #0f172a);font-size:12px;font-weight:500;cursor:pointer;text-align:left;border-radius:6px;transition:all .15s ease;font-family:inherit;width:100%;box-sizing:border-box;outline:none}.menu-item:hover:not(:disabled){background:var(--ngx-grid-hover-bg, #f1f5f9);color:var(--ngx-btn-primary-bg, #4f46e5)}.menu-item:disabled{opacity:.4;cursor:not-allowed}.menu-icon{font-size:14px;width:16px;text-align:center}.menu-divider{height:1px;background:var(--ngx-grid-border, #e2e8f0);margin:4px 6px}.grid-th-check input[type=checkbox],.grid-td-check input[type=checkbox],.checklist-item input[type=checkbox]{appearance:none;-webkit-appearance:none;width:16px;height:16px;border:1.5px solid var(--ngx-grid-border, #cbd5e1);border-radius:4px;outline:none;cursor:pointer;display:inline-flex;align-items:center;justify-content:center;background:var(--ngx-grid-bg, #ffffff);transition:all .2s ease;margin:0;position:relative}.grid-th-check input[type=checkbox]:hover,.grid-td-check input[type=checkbox]:hover,.checklist-item input[type=checkbox]:hover{border-color:var(--ngx-input-focus, #4f46e5);box-shadow:0 0 0 2.5px #4f46e526}.grid-th-check input[type=checkbox]:checked,.grid-td-check input[type=checkbox]:checked,.checklist-item input[type=checkbox]:checked{background:var(--ngx-btn-primary-bg, #4f46e5);border-color:var(--ngx-btn-primary-bg, #4f46e5)}.grid-th-check input[type=checkbox]:checked:after,.grid-td-check input[type=checkbox]:checked:after,.checklist-item input[type=checkbox]:checked:after{content:\"\";display:block;width:4px;height:8px;border:solid #ffffff;border-width:0 2px 2px 0;transform:rotate(45deg);margin-bottom:2px}.grid-th-check input[type=checkbox]:indeterminate{background:var(--ngx-btn-primary-bg, #4f46e5);border-color:var(--ngx-btn-primary-bg, #4f46e5)}.grid-th-check input[type=checkbox]:indeterminate:after{content:\"\";display:block;width:8px;height:2px;background:#fff}\n"], dependencies: [{ kind: "directive", type: NgTemplateOutlet, selector: "[ngTemplateOutlet]", inputs: ["ngTemplateOutletContext", "ngTemplateOutlet", "ngTemplateOutletInjector"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush });
|
|
2358
2546
|
}
|
|
2359
2547
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.20", ngImport: i0, type: DataGridComponent, decorators: [{
|
|
2360
2548
|
type: Component,
|
|
@@ -2385,6 +2573,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.20", ngImpo
|
|
|
2385
2573
|
}
|
|
2386
2574
|
<button class="grid-action-btn" (click)="exportToJson()" title="Export JSON">JSON</button>
|
|
2387
2575
|
<button class="grid-action-btn" (click)="exportToCsv()" title="Export CSV">CSV</button>
|
|
2576
|
+
<button class="grid-action-btn" (click)="exportToExcel()" title="Export Excel">Excel</button>
|
|
2388
2577
|
</div>
|
|
2389
2578
|
</div>
|
|
2390
2579
|
|
|
@@ -2441,7 +2630,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.20", ngImpo
|
|
|
2441
2630
|
</button>
|
|
2442
2631
|
}
|
|
2443
2632
|
</div>
|
|
2444
|
-
<div class="grid-resize-handle" (mousedown)="onResizeStart($event, col)" (click)="$event.stopPropagation()"></div>
|
|
2633
|
+
<div class="grid-resize-handle" (mousedown)="onResizeStart($event, col)" (dblclick)="onResizeDoubleClick($event, col)" (click)="$event.stopPropagation()"></div>
|
|
2445
2634
|
</ng-template>
|
|
2446
2635
|
|
|
2447
2636
|
<tr class="grid-header-row">
|
|
@@ -2452,9 +2641,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.20", ngImpo
|
|
|
2452
2641
|
<th class="grid-th grid-th-toggle pinned-left" [class.pinned-left-last]="isDetailToggleLastPinned()" [attr.rowspan]="hasColumnCategories() ? 2 : 1" [style.left.px]="rowReorderable() ? 44 : 0" style="width:44px"></th>
|
|
2453
2642
|
}
|
|
2454
2643
|
@if (selectable()) {
|
|
2455
|
-
<th class="grid-th grid-th-check pinned-left" [class.pinned-left-last]="isSelectableLastPinned()" [attr.rowspan]="hasColumnCategories() ? 2 : 1" [style.left.px]="(rowReorderable() ? 44 : 0) + (showDetailToggle() ? 44 : 0)" style="width:44px">
|
|
2456
|
-
<input type="checkbox" [checked]="allSelected()" [indeterminate]="someSelected() && !allSelected()" (change)="toggleAll()" />
|
|
2457
|
-
</th>
|
|
2644
|
+
<th class="grid-th grid-th-check pinned-left" [class.pinned-left-last]="isSelectableLastPinned()" [attr.rowspan]="hasColumnCategories() ? 2 : 1" [style.left.px]="(rowReorderable() ? 44 : 0) + (showDetailToggle() ? 44 : 0)" style="width:44px"><input type="checkbox" [checked]="allSelected()" [indeterminate]="someSelected() && !allSelected()" (change)="toggleAll()" /></th>
|
|
2458
2645
|
}
|
|
2459
2646
|
@for (cell of headerRows().row1; track cell.field) {
|
|
2460
2647
|
@if (cell.isCategory) {
|
|
@@ -2564,9 +2751,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.20", ngImpo
|
|
|
2564
2751
|
<td class="grid-td grid-td-toggle pinned-left" [class.pinned-left-last]="isDetailToggleLastPinned()" [style.left.px]="rowReorderable() ? 44 : 0" style="width:44px"></td>
|
|
2565
2752
|
}
|
|
2566
2753
|
@if (selectable()) {
|
|
2567
|
-
<td class="grid-td grid-td-check pinned-left" [class.pinned-left-last]="isSelectableLastPinned()" [style.left.px]="(rowReorderable() ? 44 : 0) + (showDetailToggle() ? 44 : 0)" style="width:44px">
|
|
2568
|
-
<input type="checkbox" [checked]="isGroupAllSelected(group)" (change)="toggleGroupSelection(group, $event)" (click)="$event.stopPropagation()" />
|
|
2569
|
-
</td>
|
|
2754
|
+
<td class="grid-td grid-td-check pinned-left" [class.pinned-left-last]="isSelectableLastPinned()" [style.left.px]="(rowReorderable() ? 44 : 0) + (showDetailToggle() ? 44 : 0)" style="width:44px"><input type="checkbox" [checked]="isGroupAllSelected(group)" (change)="toggleGroupSelection(group, $event)" (click)="$event.stopPropagation()" /></td>
|
|
2570
2755
|
}
|
|
2571
2756
|
@for (col of orderedColumns(); track col.field; let first = $first) {
|
|
2572
2757
|
<td
|
|
@@ -2625,28 +2810,15 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.20", ngImpo
|
|
|
2625
2810
|
(dblclick)="editable() ? beginEdit(row, i) : null"
|
|
2626
2811
|
>
|
|
2627
2812
|
@if (rowReorderable()) {
|
|
2628
|
-
<td class="grid-td grid-td-reorder pinned-left" [class.pinned-left-last]="isRowReorderableLastPinned()" style="left:0px; text-align:center; width:44px">
|
|
2629
|
-
<span
|
|
2630
|
-
class="row-drag-handle"
|
|
2631
|
-
draggable="true"
|
|
2632
|
-
(dragstart)="onRowDragStart($event, i)"
|
|
2633
|
-
(dragend)="onRowDragEnd()"
|
|
2634
|
-
>⋮⋮</span>
|
|
2635
|
-
</td>
|
|
2813
|
+
<td class="grid-td grid-td-reorder pinned-left" [class.pinned-left-last]="isRowReorderableLastPinned()" style="left:0px; text-align:center; width:44px"><span class="row-drag-handle" draggable="true" (dragstart)="onRowDragStart($event, i)" (dragend)="onRowDragEnd()">⋮⋮</span></td>
|
|
2636
2814
|
}
|
|
2637
2815
|
|
|
2638
2816
|
@if (showDetailToggle()) {
|
|
2639
|
-
<td class="grid-td grid-td-toggle pinned-left" [class.pinned-left-last]="isDetailToggleLastPinned()" [style.left.px]="rowReorderable() ? 44 : 0">
|
|
2640
|
-
<button class="toggle-btn" type="button" (click)="toggleDetail(row); $event.stopPropagation()">
|
|
2641
|
-
{{ isExpanded(row) ? '▾' : '▸' }}
|
|
2642
|
-
</button>
|
|
2643
|
-
</td>
|
|
2817
|
+
<td class="grid-td grid-td-toggle pinned-left" [class.pinned-left-last]="isDetailToggleLastPinned()" [style.left.px]="rowReorderable() ? 44 : 0"><button class="toggle-btn" type="button" (click)="toggleDetail(row); $event.stopPropagation()">{{ isExpanded(row) ? '▾' : '▸' }}</button></td>
|
|
2644
2818
|
}
|
|
2645
2819
|
|
|
2646
2820
|
@if (selectable()) {
|
|
2647
|
-
<td class="grid-td grid-td-check pinned-left" [class.pinned-left-last]="isSelectableLastPinned()" [style.left.px]="(rowReorderable() ? 44 : 0) + (showDetailToggle() ? 44 : 0)">
|
|
2648
|
-
<input type="checkbox" [checked]="isRowSelected(row)" (change)="toggleRow(row)" (click)="$event.stopPropagation()" />
|
|
2649
|
-
</td>
|
|
2821
|
+
<td class="grid-td grid-td-check pinned-left" [class.pinned-left-last]="isSelectableLastPinned()" [style.left.px]="(rowReorderable() ? 44 : 0) + (showDetailToggle() ? 44 : 0)"><input type="checkbox" [checked]="isRowSelected(row)" (change)="toggleRow(row)" (click)="$event.stopPropagation()" /></td>
|
|
2650
2822
|
}
|
|
2651
2823
|
|
|
2652
2824
|
@if (rowTemplate()) {
|
|
@@ -2768,28 +2940,15 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.20", ngImpo
|
|
|
2768
2940
|
(dblclick)="editable() ? beginEdit(row, i) : null"
|
|
2769
2941
|
>
|
|
2770
2942
|
@if (rowReorderable()) {
|
|
2771
|
-
<td class="grid-td grid-td-reorder pinned-left" [class.pinned-left-last]="isRowReorderableLastPinned()" style="left:0px; text-align:center; width:44px">
|
|
2772
|
-
<span
|
|
2773
|
-
class="row-drag-handle"
|
|
2774
|
-
draggable="true"
|
|
2775
|
-
(dragstart)="onRowDragStart($event, i)"
|
|
2776
|
-
(dragend)="onRowDragEnd()"
|
|
2777
|
-
>⋮⋮</span>
|
|
2778
|
-
</td>
|
|
2943
|
+
<td class="grid-td grid-td-reorder pinned-left" [class.pinned-left-last]="isRowReorderableLastPinned()" style="left:0px; text-align:center; width:44px"><span class="row-drag-handle" draggable="true" (dragstart)="onRowDragStart($event, i)" (dragend)="onRowDragEnd()">⋮⋮</span></td>
|
|
2779
2944
|
}
|
|
2780
2945
|
|
|
2781
2946
|
@if (showDetailToggle()) {
|
|
2782
|
-
<td class="grid-td grid-td-toggle pinned-left" [class.pinned-left-last]="isDetailToggleLastPinned()" [style.left.px]="rowReorderable() ? 44 : 0">
|
|
2783
|
-
<button class="toggle-btn" type="button" (click)="toggleDetail(row); $event.stopPropagation()">
|
|
2784
|
-
{{ isExpanded(row) ? '▾' : '▸' }}
|
|
2785
|
-
</button>
|
|
2786
|
-
</td>
|
|
2947
|
+
<td class="grid-td grid-td-toggle pinned-left" [class.pinned-left-last]="isDetailToggleLastPinned()" [style.left.px]="rowReorderable() ? 44 : 0"><button class="toggle-btn" type="button" (click)="toggleDetail(row); $event.stopPropagation()">{{ isExpanded(row) ? '▾' : '▸' }}</button></td>
|
|
2787
2948
|
}
|
|
2788
2949
|
|
|
2789
2950
|
@if (selectable()) {
|
|
2790
|
-
<td class="grid-td grid-td-check pinned-left" [class.pinned-left-last]="isSelectableLastPinned()" [style.left.px]="(rowReorderable() ? 44 : 0) + (showDetailToggle() ? 44 : 0)">
|
|
2791
|
-
<input type="checkbox" [checked]="isRowSelected(row)" (change)="toggleRow(row)" (click)="$event.stopPropagation()" />
|
|
2792
|
-
</td>
|
|
2951
|
+
<td class="grid-td grid-td-check pinned-left" [class.pinned-left-last]="isSelectableLastPinned()" [style.left.px]="(rowReorderable() ? 44 : 0) + (showDetailToggle() ? 44 : 0)"><input type="checkbox" [checked]="isRowSelected(row)" (change)="toggleRow(row)" (click)="$event.stopPropagation()" /></td>
|
|
2793
2952
|
}
|
|
2794
2953
|
|
|
2795
2954
|
@if (rowTemplate()) {
|
|
@@ -2900,11 +3059,14 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.20", ngImpo
|
|
|
2900
3059
|
@if (hasAggregation()) {
|
|
2901
3060
|
<tfoot>
|
|
2902
3061
|
<tr class="grid-footer-row">
|
|
3062
|
+
@if (rowReorderable()) {
|
|
3063
|
+
<td class="grid-td-reorder pinned-left" [class.pinned-left-last]="isRowReorderableLastPinned()" style="left:0px; width:44px"></td>
|
|
3064
|
+
}
|
|
2903
3065
|
@if (showDetailToggle()) {
|
|
2904
|
-
<td class="grid-td-toggle pinned-left" [class.pinned-left-last]="isDetailToggleLastPinned()" style="
|
|
3066
|
+
<td class="grid-td-toggle pinned-left" [class.pinned-left-last]="isDetailToggleLastPinned()" [style.left.px]="rowReorderable() ? 44 : 0" style="width:44px"></td>
|
|
2905
3067
|
}
|
|
2906
3068
|
@if (selectable()) {
|
|
2907
|
-
<td class="grid-td-check pinned-left" [class.pinned-left-last]="isSelectableLastPinned()" [style.left.px]="showDetailToggle() ? 44 : 0" style="width:44px"></td>
|
|
3069
|
+
<td class="grid-td-check pinned-left" [class.pinned-left-last]="isSelectableLastPinned()" [style.left.px]="(rowReorderable() ? 44 : 0) + (showDetailToggle() ? 44 : 0)" style="width:44px"></td>
|
|
2908
3070
|
}
|
|
2909
3071
|
@for (col of orderedColumns(); track col.field) {
|
|
2910
3072
|
<td
|
|
@@ -2946,17 +3108,52 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.20", ngImpo
|
|
|
2946
3108
|
|
|
2947
3109
|
@if (showPager()) {
|
|
2948
3110
|
<div class="grid-pagination">
|
|
2949
|
-
<
|
|
2950
|
-
|
|
2951
|
-
|
|
3111
|
+
<div class="pagination-left">
|
|
3112
|
+
<span class="page-info">
|
|
3113
|
+
Showing <strong class="page-info-highlight">{{ pagerRangeStart() }}–{{ pagerRangeEnd() }}</strong> of <strong class="page-info-highlight">{{ totalItems() }}</strong> items
|
|
3114
|
+
</span>
|
|
3115
|
+
<div class="page-size-selector">
|
|
3116
|
+
<span class="page-size-label">Items per page:</span>
|
|
3117
|
+
<select [value]="internalPageSize()" (change)="changePageSize(+$any($event.target).value)" class="page-size-select">
|
|
3118
|
+
<option [value]="5">5</option>
|
|
3119
|
+
<option [value]="8">8</option>
|
|
3120
|
+
<option [value]="10">10</option>
|
|
3121
|
+
<option [value]="20">20</option>
|
|
3122
|
+
<option [value]="50">50</option>
|
|
3123
|
+
<option [value]="100">100</option>
|
|
3124
|
+
</select>
|
|
3125
|
+
</div>
|
|
3126
|
+
</div>
|
|
2952
3127
|
<div class="page-btns">
|
|
2953
|
-
<button class="page-btn" [disabled]="currentPage() === 1" (click)="goPage(1)"
|
|
2954
|
-
|
|
2955
|
-
|
|
2956
|
-
|
|
2957
|
-
|
|
2958
|
-
|
|
2959
|
-
<button class="page-btn" [disabled]="currentPage() ===
|
|
3128
|
+
<button class="page-btn ctrl" [disabled]="currentPage() === 1" (click)="goPage(1)" title="First Page">
|
|
3129
|
+
<svg viewBox="0 0 24 24" width="14" height="14" fill="none" stroke="currentColor" stroke-width="2.5" stroke-linecap="round" stroke-linejoin="round">
|
|
3130
|
+
<polyline points="11 17 6 12 11 7"></polyline>
|
|
3131
|
+
<polyline points="18 17 13 12 18 7"></polyline>
|
|
3132
|
+
</svg>
|
|
3133
|
+
</button>
|
|
3134
|
+
<button class="page-btn ctrl" [disabled]="currentPage() === 1" (click)="goPage(currentPage() - 1)" title="Previous Page">
|
|
3135
|
+
<svg viewBox="0 0 24 24" width="14" height="14" fill="none" stroke="currentColor" stroke-width="2.5" stroke-linecap="round" stroke-linejoin="round">
|
|
3136
|
+
<polyline points="15 18 9 12 15 6"></polyline>
|
|
3137
|
+
</svg>
|
|
3138
|
+
</button>
|
|
3139
|
+
|
|
3140
|
+
<div class="page-numbers">
|
|
3141
|
+
@for (p of pageNumbers(); track p) {
|
|
3142
|
+
<button class="page-btn number" [class.active]="p === currentPage()" (click)="goPage(p)">{{ p }}</button>
|
|
3143
|
+
}
|
|
3144
|
+
</div>
|
|
3145
|
+
|
|
3146
|
+
<button class="page-btn ctrl" [disabled]="currentPage() === totalPages()" (click)="goPage(currentPage() + 1)" title="Next Page">
|
|
3147
|
+
<svg viewBox="0 0 24 24" width="14" height="14" fill="none" stroke="currentColor" stroke-width="2.5" stroke-linecap="round" stroke-linejoin="round">
|
|
3148
|
+
<polyline points="9 18 15 12 9 6"></polyline>
|
|
3149
|
+
</svg>
|
|
3150
|
+
</button>
|
|
3151
|
+
<button class="page-btn ctrl" [disabled]="currentPage() === totalPages()" (click)="goPage(totalPages())" title="Last Page">
|
|
3152
|
+
<svg viewBox="0 0 24 24" width="14" height="14" fill="none" stroke="currentColor" stroke-width="2.5" stroke-linecap="round" stroke-linejoin="round">
|
|
3153
|
+
<polyline points="13 17 18 12 13 7"></polyline>
|
|
3154
|
+
<polyline points="6 17 11 12 6 7"></polyline>
|
|
3155
|
+
</svg>
|
|
3156
|
+
</button>
|
|
2960
3157
|
</div>
|
|
2961
3158
|
</div>
|
|
2962
3159
|
}
|
|
@@ -2979,14 +3176,21 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.20", ngImpo
|
|
|
2979
3176
|
|
|
2980
3177
|
<div class="popover-section checklist-section">
|
|
2981
3178
|
<label class="popover-label">Checklist Filter</label>
|
|
3179
|
+
<input
|
|
3180
|
+
class="checklist-search"
|
|
3181
|
+
type="text"
|
|
3182
|
+
[value]="filterSearchQuery()"
|
|
3183
|
+
(input)="filterSearchQuery.set($any($event.target).value)"
|
|
3184
|
+
placeholder="Search items..."
|
|
3185
|
+
/>
|
|
2982
3186
|
<div class="checklist-actions">
|
|
2983
3187
|
<label class="checklist-item select-all">
|
|
2984
|
-
<input type="checkbox" [checked]="tempSelectedValues().size ===
|
|
3188
|
+
<input type="checkbox" [checked]="tempSelectedValues().size === getFilteredDistinctValues(pop.field).length" [indeterminate]="tempSelectedValues().size > 0 && tempSelectedValues().size < getFilteredDistinctValues(pop.field).length" (change)="toggleSelectAllChecklist()" />
|
|
2985
3189
|
<span>(Select All)</span>
|
|
2986
3190
|
</label>
|
|
2987
3191
|
</div>
|
|
2988
3192
|
<div class="checklist-scroll">
|
|
2989
|
-
@for (val of
|
|
3193
|
+
@for (val of getFilteredDistinctValues(pop.field); track val) {
|
|
2990
3194
|
<label class="checklist-item">
|
|
2991
3195
|
<input type="checkbox" [checked]="tempSelectedValues().has(val)" (change)="toggleChecklistItem(val)" />
|
|
2992
3196
|
<span>{{ val }}</span>
|
|
@@ -3032,6 +3236,28 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.20", ngImpo
|
|
|
3032
3236
|
<span class="menu-icon">📋</span> Copy Selection
|
|
3033
3237
|
</button>
|
|
3034
3238
|
<div class="menu-divider"></div>
|
|
3239
|
+
@if (getColumnDef(menu.colField); as columnDef) {
|
|
3240
|
+
@if (columnDef.groupable) {
|
|
3241
|
+
@if (internalGroupBy()?.field === menu.colField) {
|
|
3242
|
+
<button class="menu-item" (click)="contextMenuClearGrouping()">
|
|
3243
|
+
<span class="menu-icon">📁</span> Clear Grouping
|
|
3244
|
+
</button>
|
|
3245
|
+
} @else {
|
|
3246
|
+
<button class="menu-item" (click)="contextMenuGroupBy(menu.colField)">
|
|
3247
|
+
<span class="menu-icon">🗂️</span> Group by {{ columnDef.title }}
|
|
3248
|
+
</button>
|
|
3249
|
+
}
|
|
3250
|
+
}
|
|
3251
|
+
}
|
|
3252
|
+
@if (hasGrouping()) {
|
|
3253
|
+
<button class="menu-item" (click)="expandAllGroups()">
|
|
3254
|
+
<span class="menu-icon">↕️</span> Expand All Groups
|
|
3255
|
+
</button>
|
|
3256
|
+
<button class="menu-item" (click)="collapseAllGroups()">
|
|
3257
|
+
<span class="menu-icon">⋯</span> Collapse All Groups
|
|
3258
|
+
</button>
|
|
3259
|
+
}
|
|
3260
|
+
<div class="menu-divider"></div>
|
|
3035
3261
|
<button class="menu-item" (click)="contextMenuTogglePin(menu.colField)">
|
|
3036
3262
|
<span class="menu-icon">📌</span> {{ isColumnPinned(menu.colField) ? 'Unpin Column' : 'Pin Column Left' }}
|
|
3037
3263
|
</button>
|
|
@@ -3049,10 +3275,13 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.20", ngImpo
|
|
|
3049
3275
|
<button class="menu-item" (click)="exportToCsv(); activeContextMenu.set(null)">
|
|
3050
3276
|
<span class="menu-icon">📊</span> Export to CSV
|
|
3051
3277
|
</button>
|
|
3278
|
+
<button class="menu-item" (click)="exportToExcel(); activeContextMenu.set(null)">
|
|
3279
|
+
<span class="menu-icon">📈</span> Export to Excel
|
|
3280
|
+
</button>
|
|
3052
3281
|
</div>
|
|
3053
3282
|
}
|
|
3054
3283
|
</div>
|
|
3055
|
-
`, styles: [":host{display:block}.ngx-data-grid{position:relative;font-family:inherit;border:1px solid var(--ngx-grid-border, #e2e8f0);border-radius:var(--ngx-grid-radius, 12px);overflow:visible;background:var(--ngx-grid-bg, #ffffff);box-shadow:0 4px 6px -1px #0000000d,0 2px 4px -2px #0000000d;transition:background-color .3s,border-color .3s,box-shadow .3s}.grid-toolbar{display:flex;justify-content:space-between;align-items:center;padding:12px 16px;background:var(--ngx-grid-header-bg, #f8fafc);border-bottom:1px solid var(--ngx-grid-border, #e2e8f0);border-radius:var(--ngx-grid-radius, 12px) var(--ngx-grid-radius, 12px) 0 0;flex-wrap:wrap;gap:12px}.grid-toolbar-title{font-family:var(--ngx-heading-font-family, \"Outfit\", sans-serif);font-weight:700;font-size:14px;color:var(--ngx-grid-text, #0f172a)}.grid-toolbar-actions{display:flex;gap:6px}.grid-action-btn{padding:6px 14px;border:1px solid var(--ngx-grid-border, #e2e8f0);border-radius:8px;background:var(--ngx-grid-bg, #ffffff);color:var(--ngx-grid-text, #0f172a);font-size:12px;font-weight:500;cursor:pointer;font-family:inherit;transition:all .2s cubic-bezier(.4,0,.2,1);outline:none}.grid-action-btn:hover{background:var(--ngx-grid-hover-bg, #f1f5f9);border-color:var(--ngx-input-border, #cbd5e1);transform:translateY(-.5px)}.grid-action-btn:active{transform:scale(.97)}.grid-table-wrap{overflow-x:auto;overflow-y:hidden}.grid-table{width:100%;border-collapse:collapse;font-size:13px;table-layout:fixed}.grid-th{position:relative;padding:12px 16px;text-align:left;font-size:11px;font-weight:700;color:var(--ngx-grid-text-secondary, #64748b);background:var(--ngx-grid-header-bg, #f8fafc);border-bottom:2px solid var(--ngx-grid-border, #e2e8f0);white-space:nowrap;-webkit-user-select:none;user-select:none;text-transform:uppercase;letter-spacing:.05em;font-family:var(--ngx-heading-font-family, \"Outfit\", sans-serif)}.grid-category-th{text-align:center;border-bottom:1px solid var(--ngx-grid-border, #e2e8f0);border-right:1px solid var(--ngx-grid-border, #e2e8f0)}.sub-header-row .grid-th{border-bottom:2px solid var(--ngx-grid-border, #e2e8f0);border-right:1px solid var(--ngx-grid-border, #f1f5f9)}.grid-th.sortable{cursor:pointer;transition:background-color .2s}.grid-th.sortable:hover{background:var(--ngx-grid-hover-bg, #f1f5f9)}.grid-th.sort-asc,.grid-th.sort-desc{color:var(--ngx-input-focus, #4f46e5)}.th-text{margin-right:4px}.sort-icon{font-size:10px;color:#cbd5e1}.sort-asc .sort-icon,.sort-desc .sort-icon{color:var(--ngx-input-focus, #4f46e5)}.th-content-wrapper{display:flex;align-items:center;justify-content:space-between;gap:6px;width:100%}.grid-filter-btn{background:transparent;border:none;color:var(--ngx-grid-text-secondary, #64748b);cursor:pointer;padding:2px;border-radius:4px;display:flex;align-items:center;justify-content:center;transition:all .2s}.grid-filter-btn:hover{background:var(--ngx-grid-hover-bg, #e2e8f0);color:var(--ngx-grid-text, #0f172a)}.grid-filter-btn.active{color:var(--ngx-input-focus, #4f46e5);background:#4f46e51a}.grid-resize-handle{position:absolute;right:0;top:0;bottom:0;width:6px;cursor:col-resize;background:transparent;z-index:10;transition:background-color .2s}.grid-resize-handle:hover,.grid-resize-handle.resizing{background:var(--ngx-input-focus, #4f46e5)}.grid-filter-popover,.grid-column-chooser-popover{position:absolute;width:250px;background:var(--ngx-grid-bg, #ffffff);border:1px solid var(--ngx-grid-border, #e2e8f0);border-radius:12px;box-shadow:0 10px 25px -5px #0000001a,0 8px 10px -6px #0000001a;z-index:1000;padding:12px;box-sizing:border-box;display:flex;flex-direction:column;gap:12px;font-family:inherit}.popover-section{display:flex;flex-direction:column;gap:6px}.popover-label{font-size:11px;font-weight:700;color:var(--ngx-grid-text-secondary, #64748b);text-transform:uppercase;letter-spacing:.05em}.text-filter-row{display:flex;flex-direction:column;gap:6px}.popover-select{padding:6px;border:1px solid var(--ngx-grid-border, #cbd5e1);border-radius:6px;font-size:12px;font-family:inherit;outline:none;background:var(--ngx-input-bg, #ffffff);color:var(--ngx-grid-text, #0f172a)}.popover-input{padding:6px 10px;border:1px solid var(--ngx-grid-border, #cbd5e1);border-radius:6px;font-size:12px;font-family:inherit;outline:none;background:var(--ngx-input-bg, #ffffff);color:var(--ngx-grid-text, #0f172a)}.checklist-section{border-top:1px solid var(--ngx-grid-border, #e2e8f0);padding-top:10px}.checklist-scroll{max-height:120px;overflow-y:auto;display:flex;flex-direction:column;gap:4px;border:1px solid var(--ngx-grid-border, #e2e8f0);border-radius:6px;padding:6px}.checklist-item{display:flex;align-items:center;gap:8px;font-size:12px;color:var(--ngx-grid-text, #0f172a);cursor:pointer;-webkit-user-select:none;user-select:none}.checklist-item input{margin:0}.popover-footer{display:flex;justify-content:space-between;align-items:center;border-top:1px solid var(--ngx-grid-border, #e2e8f0);padding-top:10px;margin-top:4px}.footer-actions{display:flex;gap:6px}.popover-btn{padding:5px 10px;font-size:11px;font-weight:600;border-radius:6px;cursor:pointer;border:1px solid var(--ngx-grid-border, #cbd5e1);background:var(--ngx-grid-bg, #ffffff);color:var(--ngx-grid-text, #0f172a);transition:all .2s}.popover-btn:hover{background:var(--ngx-grid-hover-bg, #f1f5f9)}.popover-btn.apply{background:var(--ngx-btn-primary-bg, #4f46e5);color:#fff;border-color:var(--ngx-btn-primary-bg, #4f46e5)}.popover-btn.apply:hover{background:var(--ngx-btn-primary-hover, #4338ca);border-color:var(--ngx-btn-primary-hover, #4338ca)}.popover-btn.clear{color:#ef4444;border-color:transparent;background:transparent}.popover-btn.clear:hover{background:#fef2f2}.grid-group-row td{background:var(--ngx-grid-header-bg, #f8fafc);border-bottom:1.5px solid var(--ngx-grid-border, #e2e8f0);color:var(--ngx-grid-text, #0f172a);font-size:12px;font-weight:600;padding:11px 16px;cursor:pointer}.group-toggle{border:none;background:transparent;margin-right:6px;cursor:pointer;color:var(--ngx-grid-text-secondary, #64748b);font-size:12px}.group-count{color:var(--ngx-grid-text-secondary, #64748b);margin-left:6px;font-weight:500}.grid-row{border-bottom:1px solid var(--ngx-grid-border, #e2e8f0);transition:background-color .15s}.grid-row:hover{background:var(--ngx-grid-hover-bg, #f1f5f9)}.grid-row.selected{background:var(--ngx-grid-selected-bg, #e0e7ff)!important}.grid-table.striped .grid-row:nth-child(2n){background:var(--ngx-grid-stripe-bg, #f8fafc)}.grid-table.striped .grid-row:nth-child(2n):hover{background:var(--ngx-grid-hover-bg, #f1f5f9)}.grid-table.striped .grid-row.selected{background:var(--ngx-grid-selected-bg, #e0e7ff)!important}.grid-td{padding:11px 16px;color:var(--ngx-grid-text, #0f172a);white-space:nowrap;overflow:hidden;text-overflow:ellipsis;vertical-align:middle;box-sizing:border-box}.grid-th-check,.grid-td-check,.grid-th-toggle,.grid-td-toggle{width:44px!important;text-align:center}.toggle-btn{border:none;background:transparent;color:var(--ngx-grid-text-secondary, #64748b);cursor:pointer;font-size:13px;transition:color .15s}.toggle-btn:hover{color:var(--ngx-grid-text, #0f172a)}.grid-detail-row td{background:var(--ngx-grid-stripe-bg, #f8fafc);border-bottom:1px solid var(--ngx-grid-border, #e2e8f0)}.grid-detail-cell{padding:16px 24px;white-space:normal}.grid-edit-input{width:100%;min-width:80px;padding:6px 10px;border:1px solid var(--ngx-grid-border, #cbd5e1);border-radius:6px;font-size:12px;font-family:inherit;background:var(--ngx-input-bg, #ffffff);color:var(--ngx-grid-text, #0f172a);box-sizing:border-box;outline:none;transition:border-color .2s,box-shadow .2s}.grid-edit-input:focus{border-color:var(--ngx-input-focus, #4f46e5);box-shadow:0 0 0 3px var(--primary-glow, rgba(79, 70, 229, .15))}.grid-actions{white-space:nowrap}.action-btn{border:1px solid var(--ngx-grid-border, #cbd5e1);background:var(--ngx-grid-bg, #ffffff);color:var(--ngx-grid-text, #0f172a);border-radius:6px;padding:5px 10px;font-size:12px;font-weight:500;margin-right:6px;cursor:pointer;transition:all .2s;outline:none}.action-btn:hover{background:var(--ngx-grid-hover-bg, #f1f5f9);border-color:var(--ngx-input-border, #cbd5e1)}.action-btn.save{border-color:var(--ngx-btn-primary-bg, #4f46e5);background:var(--ngx-btn-primary-bg, #4f46e5);color:#fff}.action-btn.save:hover{background:var(--ngx-btn-primary-hover, #4338ca);border-color:var(--ngx-btn-primary-hover, #4338ca)}.action-btn:last-child{margin-right:0}.grid-loading-cell,.grid-empty-cell{padding:48px;text-align:center;color:var(--ngx-grid-text-secondary, #64748b);font-weight:500}.grid-spinner{width:28px;height:28px;border:3.5px solid var(--ngx-grid-border, #e2e8f0);border-top-color:var(--ngx-btn-primary-bg, #4f46e5);border-radius:50%;animation:spin .8s cubic-bezier(.4,0,.2,1) infinite;margin:0 auto}@keyframes spin{to{transform:rotate(360deg)}}.grid-pagination{display:flex;align-items:center;justify-content:space-between;padding:10px 16px;border-top:1px solid var(--ngx-grid-border, #e2e8f0);background:var(--ngx-grid-bg, #ffffff);border-radius:0 0 var(--ngx-grid-radius, 12px) var(--ngx-grid-radius, 12px);flex-wrap:wrap;gap:8px}.page-info{font-size:12px;color:var(--ngx-grid-text-secondary, #64748b);font-weight:500}.page-btns{display:flex;gap:4px}.page-btn{min-width:32px;height:32px;padding:0 8px;font-size:12px;font-weight:500;border:1px solid var(--ngx-grid-border, #e2e8f0);background:var(--ngx-grid-bg, #ffffff);border-radius:8px;cursor:pointer;font-family:inherit;color:var(--ngx-grid-text, #0f172a);transition:all .2s;outline:none}.page-btn:hover:not(:disabled){background:var(--ngx-grid-hover-bg, #f1f5f9);border-color:var(--ngx-input-border, #cbd5e1)}.page-btn.active{background:var(--ngx-btn-primary-bg, #4f46e5);color:#fff;border-color:var(--ngx-btn-primary-bg, #4f46e5);box-shadow:0 2px 4px #4f46e533}.page-btn:disabled{opacity:.4;cursor:not-allowed}.grid-footer-row td{background:var(--ngx-grid-header-bg, #f8fafc);border-top:2px solid var(--ngx-grid-border, #e2e8f0);font-size:12px;padding:12px 16px;color:var(--ngx-grid-text, #0f172a)}.agg-label{font-size:10px;font-weight:700;color:var(--ngx-grid-text-secondary, #64748b);text-transform:uppercase;letter-spacing:.05em}.agg-value{font-weight:700;color:var(--ngx-input-focus, #4f46e5)}.pinned-left{position:sticky!important;z-index:2;background:var(--ngx-grid-bg, #ffffff)}th.pinned-left{z-index:4;background:var(--ngx-grid-header-bg, #f8fafc)}.sticky-toggle{position:sticky!important;left:0;z-index:3;background:var(--ngx-grid-bg, #ffffff)}th.sticky-toggle{z-index:5;background:var(--ngx-grid-header-bg, #f8fafc)}.sticky-check{position:sticky!important;z-index:3;background:var(--ngx-grid-bg, #ffffff)}th.sticky-check{z-index:5;background:var(--ngx-grid-header-bg, #f8fafc)}.pinned-left-last,.sticky-toggle-last,.sticky-check-last{border-right:1px solid var(--ngx-grid-border, #cbd5e1)!important;box-shadow:4px 0 8px -3px #00000026}.grid-table.striped .grid-row:nth-child(2n) .pinned-left,.grid-table.striped .grid-row:nth-child(2n) .sticky-toggle,.grid-table.striped .grid-row:nth-child(2n) .sticky-check{background:var(--ngx-grid-stripe-bg, #f8fafc)}.grid-row:hover .pinned-left,.grid-row:hover .sticky-toggle,.grid-row:hover .sticky-check{background:var(--ngx-grid-hover-bg, #f1f5f9)!important}.grid-row.selected .pinned-left,.grid-row.selected .sticky-toggle,.grid-row.selected .sticky-check{background:var(--ngx-grid-selected-bg, #e0e7ff)!important}.grid-footer-row .pinned-left,.grid-footer-row .sticky-toggle,.grid-footer-row .sticky-check{background:var(--ngx-grid-header-bg, #f8fafc)}.pinned-right{position:sticky!important;z-index:2;background:var(--ngx-grid-bg, #ffffff)}th.pinned-right{z-index:4;background:var(--ngx-grid-header-bg, #f8fafc)}.pinned-right-first{border-left:1px solid var(--ngx-grid-border, #cbd5e1)!important;box-shadow:-4px 0 8px -3px #00000026}.grid-table.striped .grid-row:nth-child(2n) .pinned-right{background:var(--ngx-grid-stripe-bg, #f8fafc)}.grid-row:hover .pinned-right{background:var(--ngx-grid-hover-bg, #f1f5f9)!important}.grid-row.selected .pinned-right{background:var(--ngx-grid-selected-bg, #e0e7ff)!important}.grid-footer-row .pinned-right{background:var(--ngx-grid-header-bg, #f8fafc)}.grid-td.cell-focused{outline:2px solid var(--ngx-input-focus, #4f46e5)!important;outline-offset:-2px;z-index:5}.grid-td.cell-focused-editing{padding:0!important}.grid-td.cell-focused-editing .grid-edit-input{width:100%;height:100%;border:none;outline:none;padding:12px 16px;box-sizing:border-box;background:var(--ngx-grid-bg, #ffffff);color:var(--ngx-grid-text, #0f172a);font-family:inherit;font-size:inherit}.grid-th[draggable=true]{cursor:grab}.grid-th[draggable=true]:active{cursor:grabbing}.grid-th.dragging{opacity:.4;background:var(--ngx-grid-hover-bg, #f1f5f9)!important;border:1.5px dashed var(--ngx-input-border, #cbd5e1)}.grid-th.drag-over{border-left:3px solid var(--ngx-input-focus, #4f46e5)!important}.sort-icon.active{color:var(--ngx-input-focus, #4f46e5);font-weight:700}.sort-order-badge{font-size:8px;line-height:1;background:var(--ngx-input-focus, #4f46e5);color:#fff;padding:1px 3.5px;border-radius:4px;vertical-align:super;margin-left:2px}.grid-search-wrap{position:relative;display:inline-flex;align-items:center}.grid-search-input{padding:6px 30px 6px 12px;border:1px solid var(--ngx-grid-border, #cbd5e1);border-radius:8px;font-size:13px;font-family:inherit;background:var(--ngx-input-bg, #ffffff);color:var(--ngx-grid-text, #0f172a);outline:none;transition:all .2s cubic-bezier(.4,0,.2,1);width:180px}.grid-search-input:focus{border-color:var(--ngx-input-focus, #4f46e5);box-shadow:0 0 0 3px var(--primary-glow, rgba(79, 70, 229, .15));width:220px}.grid-search-clear{position:absolute;right:8px;background:transparent;border:none;color:var(--ngx-grid-text-secondary, #94a3b8);font-size:16px;cursor:pointer;display:flex;align-items:center;justify-content:center;padding:2px;line-height:1}.grid-search-clear:hover{color:var(--ngx-grid-text, #0f172a)}.search-highlight{background-color:#fbbf244d;color:inherit;font-weight:600;padding:1px 2px;border-radius:4px}.grid-td.cell-selected{background:var(--ngx-grid-cell-selected-bg, rgba(79, 70, 229, .12))!important;outline:1.5px solid var(--ngx-grid-cell-selected-border, #4f46e5);outline-offset:-1.5px}.row-drag-handle{cursor:grab;-webkit-user-select:none;user-select:none;color:var(--ngx-grid-text-secondary, #94a3b8);font-size:15px;font-weight:700;display:inline-block;padding:4px 8px;transition:color .15s ease}.row-drag-handle:hover{color:var(--ngx-grid-text, #0f172a)}.row-drag-handle:active{cursor:grabbing}.grid-row.dragging-row{opacity:.4;background:var(--ngx-grid-hover-bg, #f1f5f9)!important;border:1.5px dashed var(--ngx-input-border, #cbd5e1)}.grid-row.drag-over-row{border-top:2px solid var(--ngx-input-focus, #4f46e5)!important}.grid-context-menu{position:absolute;width:180px;background:var(--ngx-grid-bg, rgba(255, 255, 255, .95));backdrop-filter:blur(8px);-webkit-backdrop-filter:blur(8px);border:1px solid var(--ngx-grid-border, #e2e8f0);border-radius:10px;box-shadow:0 10px 25px -5px #0000001a,0 8px 10px -6px #0000001a;z-index:2000;padding:6px;box-sizing:border-box;display:flex;flex-direction:column;gap:2px;font-family:inherit}.menu-item{display:flex;align-items:center;gap:8px;padding:8px 10px;border:none;background:transparent;color:var(--ngx-grid-text, #0f172a);font-size:12px;font-weight:500;cursor:pointer;text-align:left;border-radius:6px;transition:all .15s ease;font-family:inherit;width:100%;box-sizing:border-box;outline:none}.menu-item:hover:not(:disabled){background:var(--ngx-grid-hover-bg, #f1f5f9);color:var(--ngx-btn-primary-bg, #4f46e5)}.menu-item:disabled{opacity:.4;cursor:not-allowed}.menu-icon{font-size:14px;width:16px;text-align:center}.menu-divider{height:1px;background:var(--ngx-grid-border, #e2e8f0);margin:4px 6px}\n"] }]
|
|
3284
|
+
`, styles: [":host{display:block}.grid-table-wrap::-webkit-scrollbar,.checklist-scroll::-webkit-scrollbar{width:6px;height:6px}.grid-table-wrap::-webkit-scrollbar-track,.checklist-scroll::-webkit-scrollbar-track{background:transparent}.grid-table-wrap::-webkit-scrollbar-thumb,.checklist-scroll::-webkit-scrollbar-thumb{background:#64748b33;border-radius:99px}.grid-table-wrap::-webkit-scrollbar-thumb:hover,.checklist-scroll::-webkit-scrollbar-thumb:hover{background:#64748b66}.ngx-data-grid{position:relative;font-family:inherit;border:1px solid var(--ngx-grid-border, #e2e8f0);border-radius:var(--ngx-grid-radius, 12px);overflow:hidden;background:var(--ngx-grid-bg, #ffffff);box-shadow:0 10px 15px -3px #00000008,0 4px 6px -4px #00000008,0 0 0 1px #00000005;transition:background-color .3s,border-color .3s,box-shadow .3s}.grid-toolbar{display:flex;justify-content:space-between;align-items:center;padding:14px 18px;background:var(--ngx-grid-header-bg, #f8fafc);border-bottom:1px solid var(--ngx-grid-border, #e2e8f0);flex-wrap:wrap;gap:12px}.grid-toolbar-title{font-family:var(--ngx-heading-font-family, \"Outfit\", sans-serif);font-weight:700;font-size:15px;color:var(--ngx-grid-text, #0f172a);letter-spacing:-.01em}.grid-toolbar-actions{display:flex;gap:8px}.grid-action-btn{padding:6px 14px;border:1px solid var(--ngx-grid-border, #e2e8f0);border-radius:8px;background:var(--ngx-grid-bg, #ffffff);color:var(--ngx-grid-text, #0f172a);font-size:12px;font-weight:600;cursor:pointer;font-family:inherit;transition:all .2s cubic-bezier(.4,0,.2,1);outline:none;display:inline-flex;align-items:center;gap:6px}.grid-action-btn:hover{background:var(--ngx-grid-hover-bg, #f8fafc);border-color:var(--ngx-input-focus, #4f46e5);color:var(--ngx-input-focus, #4f46e5);box-shadow:0 4px 6px -1px #4f46e514;transform:translateY(-.5px)}.grid-action-btn:active{transform:scale(.97)}.grid-table-wrap{overflow-x:auto;overflow-y:hidden}.grid-table{width:100%;border-collapse:collapse;font-size:13px;table-layout:fixed}.grid-th{position:relative;padding:14px 18px;text-align:left;font-size:11px;font-weight:750;color:var(--ngx-grid-text-secondary, #64748b);background:var(--ngx-grid-header-bg, #f8fafc);border-bottom:2px solid var(--ngx-grid-border, #e2e8f0);white-space:nowrap;-webkit-user-select:none;user-select:none;text-transform:uppercase;letter-spacing:.06em;font-family:var(--ngx-heading-font-family, \"Outfit\", sans-serif);transition:background-color .2s ease}.grid-category-th{text-align:center;border-bottom:1px solid var(--ngx-grid-border, #e2e8f0);border-right:1px solid var(--ngx-grid-border, #e2e8f0)}.sub-header-row .grid-th{border-bottom:2px solid var(--ngx-grid-border, #e2e8f0);border-right:1px solid var(--ngx-grid-border, #f1f5f9)}.grid-th.sortable{cursor:pointer}.grid-th.sortable:hover{background:var(--ngx-grid-hover-bg, #f1f5f9);color:var(--ngx-grid-text, #0f172a)}.grid-th.sort-asc,.grid-th.sort-desc{color:var(--ngx-input-focus, #4f46e5);background:#4f46e505}.th-text{margin-right:4px}.sort-icon{font-size:10px;color:#cbd5e1;transition:color .2s ease}.sort-asc .sort-icon,.sort-desc .sort-icon{color:var(--ngx-input-focus, #4f46e5)}.th-content-wrapper{display:flex;align-items:center;justify-content:space-between;gap:6px;width:100%}.grid-filter-btn{background:transparent;border:none;color:var(--ngx-grid-text-secondary, #94a3b8);cursor:pointer;padding:4px;border-radius:6px;display:flex;align-items:center;justify-content:center;transition:all .2s}.grid-filter-btn:hover{background:var(--ngx-grid-hover-bg, #cbd5e1);color:var(--ngx-grid-text, #0f172a)}.grid-filter-btn.active{color:var(--ngx-input-focus, #4f46e5);background:#4f46e51a}.grid-resize-handle{position:absolute;right:0;top:0;bottom:0;width:6px;cursor:col-resize;background:transparent;z-index:10;transition:background-color .2s}.grid-resize-handle:hover,.grid-resize-handle.resizing{background:var(--ngx-input-focus, #4f46e5)}.grid-filter-popover,.grid-column-chooser-popover,.grid-context-menu{position:absolute;width:250px;background:var(--ngx-grid-bg-glass, rgba(255, 255, 255, .8));backdrop-filter:blur(16px) saturate(180%);-webkit-backdrop-filter:blur(16px) saturate(180%);border:1px solid rgba(255,255,255,.5);border-radius:14px;box-shadow:0 20px 25px -5px #00000014,0 10px 10px -5px #0000000a,0 0 0 1px #00000005;z-index:1000;padding:12px;box-sizing:border-box;display:flex;flex-direction:column;gap:12px;font-family:inherit;animation:popoverFadeIn .2s cubic-bezier(.16,1,.3,1) forwards;transform-origin:top center}.grid-context-menu{width:190px;padding:6px;gap:2px}@keyframes popoverFadeIn{0%{opacity:0;transform:scale(.95) translateY(-5px)}to{opacity:1;transform:scale(1) translateY(0)}}.checklist-search{padding:8px 12px;border:1px solid var(--ngx-grid-border, #cbd5e1);border-radius:8px;font-size:12px;font-family:inherit;outline:none;background:var(--ngx-input-bg, #ffffff);color:var(--ngx-grid-text, #0f172a);width:100%;box-sizing:border-box;margin-bottom:4px;transition:all .2s ease}.checklist-search:focus{border-color:var(--ngx-input-focus, #4f46e5);box-shadow:0 0 0 3px var(--primary-glow, rgba(79, 70, 229, .15))}.popover-section{display:flex;flex-direction:column;gap:6px}.popover-label{font-size:10px;font-weight:800;color:var(--ngx-grid-text-secondary, #64748b);text-transform:uppercase;letter-spacing:.06em}.text-filter-row{display:flex;flex-direction:column;gap:6px}.popover-select{padding:6px 10px;border:1px solid var(--ngx-grid-border, #cbd5e1);border-radius:8px;font-size:12px;font-family:inherit;outline:none;background:var(--ngx-input-bg, #ffffff);color:var(--ngx-grid-text, #0f172a);cursor:pointer}.popover-input{padding:6px 10px;border:1px solid var(--ngx-grid-border, #cbd5e1);border-radius:8px;font-size:12px;font-family:inherit;outline:none;background:var(--ngx-input-bg, #ffffff);color:var(--ngx-grid-text, #0f172a);transition:all .2s}.popover-input:focus{border-color:var(--ngx-input-focus, #4f46e5);box-shadow:0 0 0 3px var(--primary-glow, rgba(79, 70, 229, .15))}.checklist-section{border-top:1px solid var(--ngx-grid-border, #e2e8f0);padding-top:10px}.checklist-scroll{max-height:140px;overflow-y:auto;display:flex;flex-direction:column;gap:4px;border:1px solid var(--ngx-grid-border, #e2e8f0);border-radius:8px;padding:8px;background:#ffffff73}.checklist-item{display:flex;align-items:center;gap:8px;font-size:12px;color:var(--ngx-grid-text, #0f172a);cursor:pointer;-webkit-user-select:none;user-select:none}.popover-footer{display:flex;justify-content:space-between;align-items:center;border-top:1px solid var(--ngx-grid-border, #e2e8f0);padding-top:10px;margin-top:4px}.footer-actions{display:flex;gap:6px}.popover-btn{padding:5px 12px;font-size:11px;font-weight:600;border-radius:6px;cursor:pointer;border:1px solid var(--ngx-grid-border, #cbd5e1);background:var(--ngx-grid-bg, #ffffff);color:var(--ngx-grid-text, #0f172a);transition:all .2s ease;font-family:inherit}.popover-btn:hover{background:var(--ngx-grid-hover-bg, #f8fafc);border-color:var(--ngx-input-border, #cbd5e1)}.popover-btn.apply{background:var(--ngx-btn-primary-bg, #4f46e5);color:#fff;border-color:var(--ngx-btn-primary-bg, #4f46e5)}.popover-btn.apply:hover{background:var(--ngx-btn-primary-hover, #4338ca);border-color:var(--ngx-btn-primary-hover, #4338ca);box-shadow:0 4px 6px -1px #4f46e533}.popover-btn.clear{color:#ef4444;border-color:transparent;background:transparent}.popover-btn.clear:hover{background:#fef2f2}.grid-group-row td{background:var(--ngx-grid-header-bg, #f8fafc);border-bottom:1.5px solid var(--ngx-grid-border, #e2e8f0);color:var(--ngx-grid-text, #0f172a);font-size:12px;font-weight:600;padding:12px 18px;cursor:pointer}.group-toggle{border:none;background:transparent;margin-right:6px;cursor:pointer;color:var(--ngx-grid-text-secondary, #64748b);font-size:12px;transition:transform .2s ease}.group-count{color:var(--ngx-grid-text-secondary, #64748b);margin-left:6px;font-weight:500}.grid-row{border-bottom:1px solid var(--ngx-grid-border, #f1f5f9);transition:background-color .15s ease}.grid-row:hover{background:var(--ngx-grid-hover-bg, rgba(79, 70, 229, .02))!important}.grid-row.selected{background:var(--ngx-grid-selected-bg, rgba(79, 70, 229, .07))!important}.grid-row.selected:hover{background:var(--ngx-grid-selected-bg, rgba(79, 70, 229, .1))!important}.grid-table.striped .grid-row:nth-child(2n){background:var(--ngx-grid-stripe-bg, #f8fafc)}.grid-table.striped .grid-row:nth-child(2n):hover{background:var(--ngx-grid-hover-bg, rgba(79, 70, 229, .02))!important}.grid-table.striped .grid-row.selected{background:var(--ngx-grid-selected-bg, rgba(79, 70, 229, .07))!important}.grid-td{padding:12px 18px;color:var(--ngx-grid-text, #0f172a);white-space:nowrap;overflow:hidden;text-overflow:ellipsis;vertical-align:middle;box-sizing:border-box}.grid-th-check,.grid-td-check,.grid-th-toggle,.grid-td-toggle,.grid-td-reorder,.grid-th-reorder{width:44px!important;text-align:center;padding:0!important;text-overflow:clip!important}.toggle-btn{border:none;background:transparent;color:var(--ngx-grid-text-secondary, #64748b);cursor:pointer;font-size:13px;transition:color .15s ease,transform .15s ease}.toggle-btn:hover{color:var(--ngx-grid-text, #0f172a)}.grid-detail-row td{background:var(--ngx-grid-stripe-bg, #f8fafc);border-bottom:1px solid var(--ngx-grid-border, #e2e8f0)}.grid-detail-cell{padding:18px 24px;white-space:normal}.grid-edit-input{width:100%;min-width:80px;padding:6px 10px;border:1px solid var(--ngx-grid-border, #cbd5e1);border-radius:8px;font-size:12px;font-family:inherit;background:var(--ngx-input-bg, #ffffff);color:var(--ngx-grid-text, #0f172a);box-sizing:border-box;outline:none;transition:border-color .2s,box-shadow .2s}.grid-edit-input:focus{border-color:var(--ngx-input-focus, #4f46e5);box-shadow:0 0 0 3px var(--primary-glow, rgba(79, 70, 229, .15))}.grid-actions{white-space:nowrap}.action-btn{border:1px solid var(--ngx-grid-border, #cbd5e1);background:var(--ngx-grid-bg, #ffffff);color:var(--ngx-grid-text, #0f172a);border-radius:8px;padding:6px 12px;font-size:12px;font-weight:600;margin-right:6px;cursor:pointer;transition:all .2s;outline:none}.action-btn:hover{background:var(--ngx-grid-hover-bg, #f8fafc);border-color:var(--ngx-input-border, #cbd5e1)}.action-btn.save{border-color:var(--ngx-btn-primary-bg, #4f46e5);background:var(--ngx-btn-primary-bg, #4f46e5);color:#fff}.action-btn.save:hover{background:var(--ngx-btn-primary-hover, #4338ca);border-color:var(--ngx-btn-primary-hover, #4338ca);box-shadow:0 4px 6px -1px #4f46e533}.action-btn:last-child{margin-right:0}.grid-loading-cell,.grid-empty-cell{padding:48px;text-align:center;color:var(--ngx-grid-text-secondary, #64748b);font-weight:500}.grid-spinner{width:28px;height:28px;border:3.5px solid var(--ngx-grid-border, #e2e8f0);border-top-color:var(--ngx-btn-primary-bg, #4f46e5);border-radius:50%;animation:spin .8s cubic-bezier(.4,0,.2,1) infinite;margin:0 auto}@keyframes spin{to{transform:rotate(360deg)}}.grid-pagination{display:flex;align-items:center;justify-content:space-between;padding:14px 20px;border-top:1px solid var(--ngx-grid-border, #e2e8f0);background:var(--ngx-grid-header-bg, #f8fafc);flex-wrap:wrap;gap:16px}.pagination-left{display:flex;align-items:center;gap:20px;flex-wrap:wrap}.page-info{font-size:13px;color:var(--ngx-grid-text-secondary, #64748b);font-weight:500}.page-info-highlight{color:var(--ngx-grid-text, #0f172a);font-weight:600}.page-size-selector{display:flex;align-items:center;gap:8px}.page-size-label{font-size:12px;color:var(--ngx-grid-text-secondary, #64748b);font-weight:500}.page-size-select{padding:4px 28px 4px 10px;border:1px solid var(--ngx-grid-border, #cbd5e1);border-radius:6px;font-size:12px;font-weight:600;background:var(--ngx-grid-bg, #ffffff);color:var(--ngx-grid-text, #0f172a);cursor:pointer;outline:none;transition:all .2s;appearance:none;-webkit-appearance:none;background-image:url(\"data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke='%2364748b' stroke-width='2.5'%3E%3Cpath stroke-linecap='round' stroke-linejoin='round' d='M19.5 8.25l-7.5 7.5-7.5-7.5'/%3E%3C/svg%3E\");background-repeat:no-repeat;background-position:right 8px center;background-size:12px}.page-size-select:hover{border-color:var(--ngx-input-border-hover, #94a3b8)}.page-size-select:focus{border-color:var(--ngx-input-focus, #4f46e5);box-shadow:0 0 0 3px var(--primary-glow, rgba(79, 70, 229, .15))}.page-btns{display:flex;align-items:center;gap:6px}.page-numbers{display:flex;gap:4px}.page-btn{min-width:32px;height:32px;padding:0 8px;font-size:13px;font-weight:600;border:1px solid var(--ngx-grid-border, #e2e8f0);background:var(--ngx-grid-bg, #ffffff);border-radius:8px;cursor:pointer;font-family:inherit;color:var(--ngx-grid-text, #0f172a);transition:all .2s cubic-bezier(.4,0,.2,1);outline:none;display:inline-flex;align-items:center;justify-content:center}.page-btn.ctrl{color:var(--ngx-grid-text-secondary, #64748b);background:var(--ngx-grid-bg, #ffffff)}.page-btn:hover:not(:disabled){background:var(--ngx-grid-hover-bg, #f1f5f9);border-color:var(--ngx-input-border-hover, #cbd5e1);color:var(--ngx-input-focus, #4f46e5);transform:translateY(-.5px)}.page-btn.active{background:var(--ngx-btn-primary-bg, #4f46e5);color:#fff!important;border-color:var(--ngx-btn-primary-bg, #4f46e5);box-shadow:0 4px 6px -1px #4f46e540}.page-btn:disabled{opacity:.35;cursor:not-allowed;transform:none!important}.grid-footer-row td{background:var(--ngx-grid-header-bg, #f8fafc);border-top:2px solid var(--ngx-grid-border, #e2e8f0);font-size:12px;padding:12px 18px;color:var(--ngx-grid-text, #0f172a)}.agg-label{font-size:10px;font-weight:800;color:var(--ngx-grid-text-secondary, #64748b);text-transform:uppercase;letter-spacing:.05em}.agg-value{font-weight:700;color:var(--ngx-input-focus, #4f46e5)}.pinned-left{position:sticky!important;z-index:2;background:var(--ngx-grid-bg, #ffffff)}th.pinned-left{z-index:4;background:var(--ngx-grid-header-bg, #f8fafc)}.sticky-toggle{position:sticky!important;left:0;z-index:3;background:var(--ngx-grid-bg, #ffffff)}th.sticky-toggle{z-index:5;background:var(--ngx-grid-header-bg, #f8fafc)}.sticky-check{position:sticky!important;z-index:3;background:var(--ngx-grid-bg, #ffffff)}th.sticky-check{z-index:5;background:var(--ngx-grid-header-bg, #f8fafc)}.pinned-left-last,.sticky-toggle-last,.sticky-check-last{border-right:1px solid var(--ngx-grid-border, #cbd5e1)!important;box-shadow:4px 0 10px -3px #00000014}.grid-table.striped .grid-row:nth-child(2n) .pinned-left,.grid-table.striped .grid-row:nth-child(2n) .sticky-toggle,.grid-table.striped .grid-row:nth-child(2n) .sticky-check{background:var(--ngx-grid-stripe-bg, #f8fafc)}.grid-row:hover .pinned-left,.grid-row:hover .sticky-toggle,.grid-row:hover .sticky-check{background:var(--ngx-grid-hover-bg, rgba(79, 70, 229, .02))!important}.grid-row.selected .pinned-left,.grid-row.selected .sticky-toggle,.grid-row.selected .sticky-check{background:var(--ngx-grid-selected-bg, rgba(79, 70, 229, .07))!important}.grid-footer-row .pinned-left,.grid-footer-row .sticky-toggle,.grid-footer-row .sticky-check{background:var(--ngx-grid-header-bg, #f8fafc)}.pinned-right{position:sticky!important;z-index:2;background:var(--ngx-grid-bg, #ffffff)}th.pinned-right{z-index:4;background:var(--ngx-grid-header-bg, #f8fafc)}.pinned-right-first{border-left:1px solid var(--ngx-grid-border, #cbd5e1)!important;box-shadow:-4px 0 10px -3px #00000014}.grid-table.striped .grid-row:nth-child(2n) .pinned-right{background:var(--ngx-grid-stripe-bg, #f8fafc)}.grid-row:hover .pinned-right{background:var(--ngx-grid-hover-bg, rgba(79, 70, 229, .02))!important}.grid-row.selected .pinned-right{background:var(--ngx-grid-selected-bg, rgba(79, 70, 229, .07))!important}.grid-footer-row .pinned-right{background:var(--ngx-grid-header-bg, #f8fafc)}.grid-td.cell-focused{outline:2px solid var(--ngx-input-focus, #4f46e5)!important;outline-offset:-2px;z-index:5}.grid-td.cell-focused-editing{padding:0!important}.grid-td.cell-focused-editing .grid-edit-input{width:100%;height:100%;border:none;outline:none;padding:12px 18px;box-sizing:border-box;background:var(--ngx-grid-bg, #ffffff);color:var(--ngx-grid-text, #0f172a);font-family:inherit;font-size:inherit;border-radius:0}.grid-th[draggable=true]{cursor:grab}.grid-th[draggable=true]:active{cursor:grabbing}.grid-th.dragging{opacity:.4;background:var(--ngx-grid-hover-bg, #f1f5f9)!important;border:1.5px dashed var(--ngx-input-border, #cbd5e1)}.grid-th.drag-over{border-left:3px solid var(--ngx-input-focus, #4f46e5)!important}.sort-icon.active{color:var(--ngx-input-focus, #4f46e5);font-weight:700}.sort-order-badge{font-size:8px;line-height:1;background:var(--ngx-input-focus, #4f46e5);color:#fff;padding:2px 4px;border-radius:4px;vertical-align:super;margin-left:2px;font-weight:700}.grid-search-wrap{position:relative;display:inline-flex;align-items:center}.grid-search-input{padding:6px 30px 6px 12px;border:1px solid var(--ngx-grid-border, #cbd5e1);border-radius:8px;font-size:13px;font-family:inherit;background:var(--ngx-input-bg, #ffffff);color:var(--ngx-grid-text, #0f172a);outline:none;transition:all .2s cubic-bezier(.4,0,.2,1);width:180px}.grid-search-input:focus{border-color:var(--ngx-input-focus, #4f46e5);box-shadow:0 0 0 3px var(--primary-glow, rgba(79, 70, 229, .15));width:220px}.grid-search-clear{position:absolute;right:8px;background:transparent;border:none;color:var(--ngx-grid-text-secondary, #94a3b8);font-size:16px;cursor:pointer;display:flex;align-items:center;justify-content:center;padding:2px;line-height:1}.grid-search-clear:hover{color:var(--ngx-grid-text, #0f172a)}.search-highlight{background-color:#fbbf2440;color:inherit;font-weight:600;padding:1px 2px;border-radius:4px}.grid-td.cell-selected{background:var(--ngx-grid-cell-selected-bg, rgba(79, 70, 229, .1))!important;outline:1.5px solid var(--ngx-grid-cell-selected-border, #4f46e5);outline-offset:-1.5px}.row-drag-handle{cursor:grab;-webkit-user-select:none;user-select:none;color:var(--ngx-grid-text-secondary, #94a3b8);font-size:15px;font-weight:700;display:inline-block;padding:4px 8px;transition:color .15s ease}.row-drag-handle:hover{color:var(--ngx-grid-text, #0f172a)}.row-drag-handle:active{cursor:grabbing}.grid-row.dragging-row{opacity:.4;background:var(--ngx-grid-hover-bg, #f1f5f9)!important;border:1.5px dashed var(--ngx-input-border, #cbd5e1)}.grid-row.drag-over-row{border-top:2px solid var(--ngx-input-focus, #4f46e5)!important}.grid-context-menu{position:absolute;width:215px;background:var(--ngx-grid-bg, rgba(255, 255, 255, .95));backdrop-filter:blur(8px);-webkit-backdrop-filter:blur(8px);border:1px solid var(--ngx-grid-border, #e2e8f0);border-radius:10px;box-shadow:0 10px 25px -5px #0000001a,0 8px 10px -6px #0000001a;z-index:2000;padding:6px;box-sizing:border-box;display:flex;flex-direction:column;gap:2px;font-family:inherit}.menu-item{display:flex;align-items:center;gap:8px;padding:8px 10px;border:none;background:transparent;color:var(--ngx-grid-text, #0f172a);font-size:12px;font-weight:500;cursor:pointer;text-align:left;border-radius:6px;transition:all .15s ease;font-family:inherit;width:100%;box-sizing:border-box;outline:none}.menu-item:hover:not(:disabled){background:var(--ngx-grid-hover-bg, #f1f5f9);color:var(--ngx-btn-primary-bg, #4f46e5)}.menu-item:disabled{opacity:.4;cursor:not-allowed}.menu-icon{font-size:14px;width:16px;text-align:center}.menu-divider{height:1px;background:var(--ngx-grid-border, #e2e8f0);margin:4px 6px}.grid-th-check input[type=checkbox],.grid-td-check input[type=checkbox],.checklist-item input[type=checkbox]{appearance:none;-webkit-appearance:none;width:16px;height:16px;border:1.5px solid var(--ngx-grid-border, #cbd5e1);border-radius:4px;outline:none;cursor:pointer;display:inline-flex;align-items:center;justify-content:center;background:var(--ngx-grid-bg, #ffffff);transition:all .2s ease;margin:0;position:relative}.grid-th-check input[type=checkbox]:hover,.grid-td-check input[type=checkbox]:hover,.checklist-item input[type=checkbox]:hover{border-color:var(--ngx-input-focus, #4f46e5);box-shadow:0 0 0 2.5px #4f46e526}.grid-th-check input[type=checkbox]:checked,.grid-td-check input[type=checkbox]:checked,.checklist-item input[type=checkbox]:checked{background:var(--ngx-btn-primary-bg, #4f46e5);border-color:var(--ngx-btn-primary-bg, #4f46e5)}.grid-th-check input[type=checkbox]:checked:after,.grid-td-check input[type=checkbox]:checked:after,.checklist-item input[type=checkbox]:checked:after{content:\"\";display:block;width:4px;height:8px;border:solid #ffffff;border-width:0 2px 2px 0;transform:rotate(45deg);margin-bottom:2px}.grid-th-check input[type=checkbox]:indeterminate{background:var(--ngx-btn-primary-bg, #4f46e5);border-color:var(--ngx-btn-primary-bg, #4f46e5)}.grid-th-check input[type=checkbox]:indeterminate:after{content:\"\";display:block;width:8px;height:2px;background:#fff}\n"] }]
|
|
3056
3285
|
}], ctorParameters: () => [], propDecorators: { cellTemplates: [{
|
|
3057
3286
|
type: ContentChildren,
|
|
3058
3287
|
args: [NgxGridCellTemplateDirective]
|