eru-grid 0.0.12 → 0.0.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/fesm2022/eru-grid.mjs +620 -64
- package/fesm2022/eru-grid.mjs.map +1 -1
- package/index.d.ts +36 -4
- package/package.json +1 -1
package/fesm2022/eru-grid.mjs
CHANGED
|
@@ -108,24 +108,25 @@ class PivotTransformService {
|
|
|
108
108
|
*/
|
|
109
109
|
transformData(sourceData, configuration, gridConfiguration) {
|
|
110
110
|
const startTime = performance.now();
|
|
111
|
-
// Step 2: Group data by row dimensions
|
|
111
|
+
// Step 2: Group data by row dimensions and collect unique column dimension values
|
|
112
112
|
const rowDimensionFields = configuration.rows;
|
|
113
|
-
const groupedData = this.groupByDimensions(sourceData, rowDimensionFields);
|
|
114
|
-
// Step 3: Generate pivot columns from column dimensions
|
|
115
113
|
const columnDimensionFields = configuration.cols;
|
|
116
|
-
const
|
|
114
|
+
const groupedData = this.groupByDimensions(sourceData, rowDimensionFields, columnDimensionFields);
|
|
115
|
+
// Step 3: Use pre-collected unique column values
|
|
116
|
+
const pivotColumns = groupedData.uniqueColumnValues;
|
|
117
|
+
console.log('pivotColumns', pivotColumns);
|
|
117
118
|
// Step 4: Create pivot rows with aggregated data
|
|
118
|
-
let pivotRows = this.createPivotRows(groupedData, pivotColumns, configuration);
|
|
119
|
+
let pivotRows = this.createPivotRows(groupedData.groupedData, pivotColumns, configuration);
|
|
119
120
|
// Step 4a: Add subtotals and grand totals if configured
|
|
120
121
|
const enableRowSubtotals = gridConfiguration?.config?.enableRowSubtotals ?? false;
|
|
121
122
|
const enableColumnSubtotals = gridConfiguration?.config?.enableColumnSubtotals ?? false;
|
|
122
123
|
const enableGrandTotal = gridConfiguration?.config?.enableGrandTotal ?? false;
|
|
123
|
-
const
|
|
124
|
-
if (enableRowSubtotals || enableColumnSubtotals || enableGrandTotal) {
|
|
125
|
-
pivotRows = this.addSubtotals(pivotRows, configuration, pivotColumns, gridConfiguration
|
|
124
|
+
const enableColumnGrandTotal = gridConfiguration?.config?.enableColumnGrandTotal ?? false;
|
|
125
|
+
if (enableRowSubtotals || enableColumnSubtotals || enableGrandTotal || enableColumnGrandTotal) {
|
|
126
|
+
pivotRows = this.addSubtotals(pivotRows, configuration, pivotColumns, gridConfiguration);
|
|
126
127
|
}
|
|
127
128
|
// Step 5: Generate column definitions (including subtotal columns)
|
|
128
|
-
const columnDefinitions = this.generateColumnDefinitions(rowDimensionFields, pivotColumns, configuration.aggregations, gridConfiguration);
|
|
129
|
+
const columnDefinitions = this.generateColumnDefinitions(rowDimensionFields, pivotColumns, configuration.aggregations, gridConfiguration, columnDimensionFields);
|
|
129
130
|
// Step 6: Initialize column group state for collapsible columns
|
|
130
131
|
//this.initializeColumnGroupState(configuration, columnDimensionFields);
|
|
131
132
|
// Step 7: Generate nested header structure with collapsible support
|
|
@@ -137,15 +138,15 @@ class PivotTransformService {
|
|
|
137
138
|
processingTime: endTime - startTime,
|
|
138
139
|
dataSize: sourceData.length
|
|
139
140
|
};
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
|
|
146
|
-
|
|
147
|
-
|
|
148
|
-
});
|
|
141
|
+
console.log({
|
|
142
|
+
data: pivotRows,
|
|
143
|
+
columnDefinitions,
|
|
144
|
+
rowCount: pivotRows.length,
|
|
145
|
+
metadata,
|
|
146
|
+
configuration,
|
|
147
|
+
headerStructure,
|
|
148
|
+
columnGroupState: this.columnGroupState
|
|
149
|
+
});
|
|
149
150
|
return {
|
|
150
151
|
data: pivotRows,
|
|
151
152
|
columnDefinitions,
|
|
@@ -157,21 +158,33 @@ class PivotTransformService {
|
|
|
157
158
|
};
|
|
158
159
|
}
|
|
159
160
|
/**
|
|
160
|
-
* Group data by row dimensions
|
|
161
|
+
* Group data by row dimensions and collect unique column dimension values
|
|
161
162
|
*/
|
|
162
|
-
groupByDimensions(data,
|
|
163
|
+
groupByDimensions(data, rowDimensions, columnDimensions = []) {
|
|
163
164
|
const groups = new Map();
|
|
165
|
+
const columnDimensionValues = columnDimensions.map(() => new Set());
|
|
164
166
|
data.forEach(row => {
|
|
165
167
|
// Create a key from row dimension values
|
|
166
168
|
// Use null/undefined check to preserve boolean false values
|
|
167
|
-
const key =
|
|
169
|
+
const key = rowDimensions.map(dim => row[dim] != null ? String(row[dim]) : '').join('|');
|
|
168
170
|
if (!groups.has(key)) {
|
|
169
171
|
groups.set(key, []);
|
|
170
172
|
}
|
|
171
173
|
groups.get(key).push(row);
|
|
174
|
+
// Collect unique column dimension values while iterating
|
|
175
|
+
columnDimensions.forEach((dimension, index) => {
|
|
176
|
+
const value = row[dimension] != null ? String(row[dimension]) : '';
|
|
177
|
+
columnDimensionValues[index].add(value);
|
|
178
|
+
});
|
|
172
179
|
});
|
|
173
180
|
// Sort the groups hierarchically to ensure proper parent-child ordering
|
|
174
|
-
|
|
181
|
+
const sortedGroups = this.sortGroupsHierarchically(groups, rowDimensions);
|
|
182
|
+
// Generate unique column values from collected sets
|
|
183
|
+
const uniqueColumnValues = this.generatePivotColumnsFromSets(columnDimensionValues);
|
|
184
|
+
return {
|
|
185
|
+
groupedData: sortedGroups,
|
|
186
|
+
uniqueColumnValues
|
|
187
|
+
};
|
|
175
188
|
}
|
|
176
189
|
/**
|
|
177
190
|
* Sort grouped data hierarchically so parent dimensions appear with their children grouped together
|
|
@@ -216,21 +229,22 @@ class PivotTransformService {
|
|
|
216
229
|
return a.localeCompare(b, undefined, { numeric: true, sensitivity: 'base' });
|
|
217
230
|
}
|
|
218
231
|
/**
|
|
219
|
-
*
|
|
232
|
+
* Convert string to title case
|
|
220
233
|
*/
|
|
221
|
-
|
|
222
|
-
|
|
234
|
+
toTitleCase(str) {
|
|
235
|
+
return str
|
|
236
|
+
.toLowerCase()
|
|
237
|
+
.replace(/\b\w/g, char => char.toUpperCase());
|
|
238
|
+
}
|
|
239
|
+
/**
|
|
240
|
+
* Generate unique pivot column values from pre-collected dimension value sets
|
|
241
|
+
*/
|
|
242
|
+
generatePivotColumnsFromSets(dimensionValueSets) {
|
|
243
|
+
if (dimensionValueSets.length === 0) {
|
|
223
244
|
return ['_default']; // Default column for aggregations
|
|
224
245
|
}
|
|
225
|
-
//
|
|
226
|
-
const dimensionValues =
|
|
227
|
-
const values = new Set();
|
|
228
|
-
data.forEach(row => {
|
|
229
|
-
const value = row[dimension] != null ? String(row[dimension]) : '';
|
|
230
|
-
values.add(value);
|
|
231
|
-
});
|
|
232
|
-
return Array.from(values).sort();
|
|
233
|
-
});
|
|
246
|
+
// Convert sets to sorted arrays
|
|
247
|
+
const dimensionValues = dimensionValueSets.map(set => Array.from(set).sort());
|
|
234
248
|
// Generate cartesian product of all dimension combinations
|
|
235
249
|
const generateCombinations = (arrays, index = 0, current = []) => {
|
|
236
250
|
if (index === arrays.length) {
|
|
@@ -352,7 +366,8 @@ class PivotTransformService {
|
|
|
352
366
|
/**
|
|
353
367
|
* Generate column definitions for the pivot table
|
|
354
368
|
*/
|
|
355
|
-
generateColumnDefinitions(rowDimensions, pivotColumns, aggregations, gridConfiguration
|
|
369
|
+
generateColumnDefinitions(rowDimensions, pivotColumns, aggregations, gridConfiguration, columnDimensions // Add column dimensions parameter
|
|
370
|
+
) {
|
|
356
371
|
const columns = [];
|
|
357
372
|
let columnIndex = 0;
|
|
358
373
|
// Add row dimension columns
|
|
@@ -362,15 +377,75 @@ class PivotTransformService {
|
|
|
362
377
|
columns.push({
|
|
363
378
|
name: dimension,
|
|
364
379
|
label: this.formatColumnLabel(field?.label || dimension),
|
|
365
|
-
datatype: 'textbox',
|
|
366
|
-
field_size: 150,
|
|
380
|
+
datatype: field?.datatype || 'textbox',
|
|
381
|
+
field_size: field?.field_size || 150,
|
|
367
382
|
grid_index: columnIndex++,
|
|
368
383
|
enableDrilldown: field?.enableDrilldown || false
|
|
369
384
|
});
|
|
370
385
|
});
|
|
386
|
+
// Check if column subtotals and grand totals are enabled
|
|
387
|
+
const enableColumnSubtotals = gridConfiguration?.config?.enableColumnSubtotals ?? false;
|
|
388
|
+
const enableColumnGrandTotal = gridConfiguration?.config?.enableColumnGrandTotal ?? false;
|
|
389
|
+
const subtotalPositionColumn = gridConfiguration?.config?.subtotalPositionColumn ?? 'after';
|
|
390
|
+
const grandTotalPositionColumn = gridConfiguration?.config?.grandTotalPositionColumn ?? 'after';
|
|
391
|
+
// Add column subtotal columns if enabled (before pivot columns)
|
|
392
|
+
if (enableColumnSubtotals && subtotalPositionColumn === 'before') {
|
|
393
|
+
// Only add subtotals for dimensions that are not the last column dimension
|
|
394
|
+
if (columnDimensions && columnDimensions.length > 1) {
|
|
395
|
+
const subtotalDimensions = columnDimensions.slice(0, -1);
|
|
396
|
+
// Extract unique values for each subtotal dimension from pivot columns
|
|
397
|
+
const dimensionValues = subtotalDimensions.map((dimension, dimIndex) => {
|
|
398
|
+
const values = new Set();
|
|
399
|
+
pivotColumns.forEach(pivotColumn => {
|
|
400
|
+
if (pivotColumn !== '_default') {
|
|
401
|
+
const parts = pivotColumn.split('|');
|
|
402
|
+
if (parts[dimIndex]) {
|
|
403
|
+
values.add(parts[dimIndex]);
|
|
404
|
+
}
|
|
405
|
+
}
|
|
406
|
+
});
|
|
407
|
+
return Array.from(values).sort();
|
|
408
|
+
});
|
|
409
|
+
const subtotalCombinations = this.generateCombinations(dimensionValues);
|
|
410
|
+
subtotalCombinations.forEach(combination => {
|
|
411
|
+
const combinationKey = combination.join('|');
|
|
412
|
+
aggregations.forEach(aggregation => {
|
|
413
|
+
if (aggregation.showSubtotals) {
|
|
414
|
+
// Find the column config for this aggregation
|
|
415
|
+
const aggregationColumn = fields.find(field => field.name === aggregation.name);
|
|
416
|
+
const columnName = `_${combinationKey}_subtotal_${aggregation.name}`;
|
|
417
|
+
columns.push({
|
|
418
|
+
name: columnName,
|
|
419
|
+
label: `${combination.join(' ')} Subtotal - ${aggregation.label || aggregation.name}`,
|
|
420
|
+
datatype: this.getAggregationDataType(aggregation.aggregationFunction),
|
|
421
|
+
field_size: aggregation.field_size || aggregationColumn?.field_size || 120,
|
|
422
|
+
grid_index: columnIndex++,
|
|
423
|
+
enableDrilldown: aggregation.enableDrilldown || false
|
|
424
|
+
});
|
|
425
|
+
}
|
|
426
|
+
});
|
|
427
|
+
});
|
|
428
|
+
}
|
|
429
|
+
}
|
|
430
|
+
// Add column grand total columns if enabled (before pivot columns)
|
|
431
|
+
if (enableColumnGrandTotal && grandTotalPositionColumn === 'before') {
|
|
432
|
+
aggregations.forEach(aggregation => {
|
|
433
|
+
const aggregationColumn = fields.find(field => field.name === aggregation.name);
|
|
434
|
+
const columnName = `_${aggregation.aggregationFunction}_column_grand_total_${aggregation.name}`;
|
|
435
|
+
columns.push({
|
|
436
|
+
name: columnName,
|
|
437
|
+
label: `${this.toTitleCase(aggregation.aggregationFunction)} of ${aggregation.label || aggregation.name}`,
|
|
438
|
+
datatype: this.getAggregationDataType(aggregation.aggregationFunction),
|
|
439
|
+
field_size: aggregation.field_size || aggregationColumn?.field_size || 120,
|
|
440
|
+
grid_index: columnIndex++,
|
|
441
|
+
enableDrilldown: aggregation.enableDrilldown || false
|
|
442
|
+
});
|
|
443
|
+
});
|
|
444
|
+
}
|
|
371
445
|
// Add pivot value columns
|
|
372
446
|
pivotColumns.forEach(pivotColumn => {
|
|
373
447
|
aggregations.forEach(aggregation => {
|
|
448
|
+
const aggregationColumn = fields.find(field => field.name === aggregation.name);
|
|
374
449
|
// CRITICAL FIX: Always use consistent naming pattern
|
|
375
450
|
const columnName = `${pivotColumn}_${aggregation.name}`;
|
|
376
451
|
// For no column dimensions, just show the aggregation label
|
|
@@ -381,12 +456,65 @@ class PivotTransformService {
|
|
|
381
456
|
name: columnName,
|
|
382
457
|
label: columnLabel,
|
|
383
458
|
datatype: this.getAggregationDataType(aggregation.aggregationFunction),
|
|
384
|
-
field_size: 120,
|
|
459
|
+
field_size: aggregation.field_size || aggregationColumn?.field_size || 120,
|
|
385
460
|
grid_index: columnIndex++,
|
|
386
461
|
enableDrilldown: aggregation.enableDrilldown || false
|
|
387
462
|
});
|
|
388
463
|
});
|
|
389
464
|
});
|
|
465
|
+
// Add column subtotal columns if enabled (after pivot columns)
|
|
466
|
+
if (enableColumnSubtotals && subtotalPositionColumn === 'after') {
|
|
467
|
+
// Only add subtotals for dimensions that are not the last column dimension
|
|
468
|
+
if (columnDimensions && columnDimensions.length > 1) {
|
|
469
|
+
const subtotalDimensions = columnDimensions.slice(0, -1);
|
|
470
|
+
// Extract unique values for each subtotal dimension from pivot columns
|
|
471
|
+
const dimensionValues = subtotalDimensions.map((dimension, dimIndex) => {
|
|
472
|
+
const values = new Set();
|
|
473
|
+
pivotColumns.forEach(pivotColumn => {
|
|
474
|
+
if (pivotColumn !== '_default') {
|
|
475
|
+
const parts = pivotColumn.split('|');
|
|
476
|
+
if (parts[dimIndex]) {
|
|
477
|
+
values.add(parts[dimIndex]);
|
|
478
|
+
}
|
|
479
|
+
}
|
|
480
|
+
});
|
|
481
|
+
return Array.from(values).sort();
|
|
482
|
+
});
|
|
483
|
+
const subtotalCombinations = this.generateCombinations(dimensionValues);
|
|
484
|
+
subtotalCombinations.forEach(combination => {
|
|
485
|
+
const combinationKey = combination.join('|');
|
|
486
|
+
aggregations.forEach(aggregation => {
|
|
487
|
+
if (aggregation.showSubtotals) {
|
|
488
|
+
const aggregationColumn = fields.find(field => field.name === aggregation.name);
|
|
489
|
+
const columnName = `_${combinationKey}_subtotal_${aggregation.name}`;
|
|
490
|
+
columns.push({
|
|
491
|
+
name: columnName,
|
|
492
|
+
label: `${combination.join(' ')} Subtotal - ${aggregation.label || aggregation.name}`,
|
|
493
|
+
datatype: this.getAggregationDataType(aggregation.aggregationFunction),
|
|
494
|
+
field_size: aggregation.field_size || aggregationColumn?.field_size || 120,
|
|
495
|
+
grid_index: columnIndex++,
|
|
496
|
+
enableDrilldown: aggregation.enableDrilldown || false
|
|
497
|
+
});
|
|
498
|
+
}
|
|
499
|
+
});
|
|
500
|
+
});
|
|
501
|
+
}
|
|
502
|
+
}
|
|
503
|
+
// Add column grand total columns if enabled (after pivot columns)
|
|
504
|
+
if (enableColumnGrandTotal && grandTotalPositionColumn === 'after') {
|
|
505
|
+
aggregations.forEach(aggregation => {
|
|
506
|
+
const aggregationColumn = fields.find(field => field.name === aggregation.name);
|
|
507
|
+
const columnName = `_${aggregation.aggregationFunction}_column_grand_total_${aggregation.name}`;
|
|
508
|
+
columns.push({
|
|
509
|
+
name: columnName,
|
|
510
|
+
label: `${this.toTitleCase(aggregation.aggregationFunction)} of ${aggregation.label || aggregation.name}`,
|
|
511
|
+
datatype: this.getAggregationDataType(aggregation.aggregationFunction),
|
|
512
|
+
field_size: aggregation.field_size || aggregationColumn?.field_size || 120,
|
|
513
|
+
grid_index: columnIndex++,
|
|
514
|
+
enableDrilldown: aggregation.enableDrilldown || false
|
|
515
|
+
});
|
|
516
|
+
});
|
|
517
|
+
}
|
|
390
518
|
return columns;
|
|
391
519
|
}
|
|
392
520
|
/**
|
|
@@ -442,7 +570,7 @@ class PivotTransformService {
|
|
|
442
570
|
return chunks;
|
|
443
571
|
}
|
|
444
572
|
/**
|
|
445
|
-
* Generate nested header structure
|
|
573
|
+
* Generate nested header structure with collapsible support
|
|
446
574
|
*/
|
|
447
575
|
generateNestedHeaderStructure(rowDimensions, columnDimensions, aggregations, sourceData, gridConfiguration) {
|
|
448
576
|
// Use flat structure only if no column dimensions AND single aggregation
|
|
@@ -461,9 +589,14 @@ class PivotTransformService {
|
|
|
461
589
|
// Build hierarchical header structure
|
|
462
590
|
const headerRows = [];
|
|
463
591
|
const maxDepth = columnDimensions.length + (aggregations.length > 1 ? 1 : 0);
|
|
592
|
+
console.log('Header structure initialization:');
|
|
593
|
+
console.log('columnDimensions:', columnDimensions);
|
|
594
|
+
console.log('aggregations:', aggregations);
|
|
595
|
+
console.log('maxDepth:', maxDepth);
|
|
464
596
|
// Initialize header rows
|
|
465
597
|
for (let i = 0; i < maxDepth; i++) {
|
|
466
598
|
headerRows.push([]);
|
|
599
|
+
console.log(`Initialized headerRows[${i}] with length:`, headerRows[i].length);
|
|
467
600
|
}
|
|
468
601
|
// Add row dimension headers (they span all header rows)
|
|
469
602
|
const fields = gridConfiguration?.fields || [];
|
|
@@ -476,8 +609,41 @@ class PivotTransformService {
|
|
|
476
609
|
rowspan: maxDepth
|
|
477
610
|
});
|
|
478
611
|
});
|
|
612
|
+
// Check if column subtotals and grand totals are enabled
|
|
613
|
+
const enableColumnGrandTotal = gridConfiguration?.config?.enableColumnGrandTotal ?? false;
|
|
614
|
+
const grandTotalPositionColumn = gridConfiguration?.config?.grandTotalPositionColumn ?? 'after';
|
|
615
|
+
const enableColumnSubtotals = gridConfiguration?.config?.enableColumnSubtotals ?? false;
|
|
616
|
+
const subtotalPositionColumn = gridConfiguration?.config?.subtotalPositionColumn ?? 'after';
|
|
617
|
+
// Add column grand total headers if enabled (before pivot columns)
|
|
618
|
+
if (enableColumnGrandTotal && grandTotalPositionColumn === 'before') {
|
|
619
|
+
aggregations.forEach(aggregation => {
|
|
620
|
+
headerRows[0].push({
|
|
621
|
+
name: `_${aggregation.aggregationFunction}_column_grand_total_${aggregation.name}`,
|
|
622
|
+
label: `${this.toTitleCase(aggregation.aggregationFunction)} of ${aggregation.label || aggregation.name}`,
|
|
623
|
+
level: 0,
|
|
624
|
+
colspan: 1,
|
|
625
|
+
rowspan: maxDepth
|
|
626
|
+
});
|
|
627
|
+
});
|
|
628
|
+
}
|
|
479
629
|
// Generate nested column headers with collapsible support
|
|
480
|
-
this.buildNestedHeaders(dimensionValues, aggregations, headerRows, 0, columnDimensions);
|
|
630
|
+
this.buildNestedHeaders(dimensionValues, aggregations, headerRows, 0, columnDimensions, maxDepth, gridConfiguration);
|
|
631
|
+
// Insert column subtotal headers at the correct positions within each priority group
|
|
632
|
+
if (enableColumnSubtotals) {
|
|
633
|
+
this.insertColumnSubtotalHeaders(headerRows, columnDimensions, aggregations, gridConfiguration, sourceData);
|
|
634
|
+
}
|
|
635
|
+
// Add column grand total headers if enabled (after pivot columns)
|
|
636
|
+
if (enableColumnGrandTotal && grandTotalPositionColumn === 'after') {
|
|
637
|
+
aggregations.forEach(aggregation => {
|
|
638
|
+
headerRows[0].push({
|
|
639
|
+
name: `_${aggregation.aggregationFunction}_column_grand_total_${aggregation.name}`,
|
|
640
|
+
label: `${this.toTitleCase(aggregation.aggregationFunction)} of ${aggregation.label || aggregation.name}`,
|
|
641
|
+
level: 0,
|
|
642
|
+
colspan: 1,
|
|
643
|
+
rowspan: maxDepth
|
|
644
|
+
});
|
|
645
|
+
});
|
|
646
|
+
}
|
|
481
647
|
// Generate leaf columns for actual data with collapsible support
|
|
482
648
|
const leafColumns = this.generateLeafColumnsWithCollapsible(rowDimensions, dimensionValues, aggregations, columnDimensions, gridConfiguration);
|
|
483
649
|
return {
|
|
@@ -489,7 +655,7 @@ class PivotTransformService {
|
|
|
489
655
|
/**
|
|
490
656
|
* Build nested column headers recursively - generates complete cartesian product structure
|
|
491
657
|
*/
|
|
492
|
-
buildNestedHeaders(dimensionValues, aggregations, headerRows, currentLevel, columnDimensions) {
|
|
658
|
+
buildNestedHeaders(dimensionValues, aggregations, headerRows, currentLevel, columnDimensions, maxDepth, gridConfiguration) {
|
|
493
659
|
if (currentLevel >= dimensionValues.length) {
|
|
494
660
|
return;
|
|
495
661
|
}
|
|
@@ -502,17 +668,36 @@ class PivotTransformService {
|
|
|
502
668
|
// Generate headers for this level - repeat for each parent combination
|
|
503
669
|
for (let parentIndex = 0; parentIndex < parentCombinations; parentIndex++) {
|
|
504
670
|
currentDimensionValues.forEach(value => {
|
|
505
|
-
const colspan = this.calculateColspan(dimensionValues, currentLevel, aggregations.length);
|
|
671
|
+
const colspan = this.calculateColspan(dimensionValues, currentLevel, aggregations.length, gridConfiguration?.config?.enableColumnSubtotals ?? false, gridConfiguration?.config?.subtotalPositionColumn ?? 'after', aggregations);
|
|
506
672
|
const rowspan = (isLastDimension && !hasMultipleAggregations) ? 2 : 1;
|
|
507
673
|
const dimension = columnDimensions[currentLevel];
|
|
508
674
|
const groupKey = this.generateColumnGroupKey(dimension, currentLevel);
|
|
509
675
|
const isExpanded = this.isColumnGroupExpanded(groupKey);
|
|
676
|
+
// Calculate parentValue for positioning subtotals
|
|
677
|
+
let parentValue = undefined;
|
|
678
|
+
if (currentLevel > 0) {
|
|
679
|
+
// For levels beyond the first, determine the parent combination values
|
|
680
|
+
const parentDimensionIndex = Math.floor(parentIndex /
|
|
681
|
+
dimensionValues.slice(currentLevel).reduce((acc, values) => acc * values.length, 1));
|
|
682
|
+
const parentDimensionValues = [];
|
|
683
|
+
// Build parent path by working backwards through dimensions
|
|
684
|
+
let tempIndex = parentIndex;
|
|
685
|
+
for (let level = currentLevel - 1; level >= 0; level--) {
|
|
686
|
+
const levelSize = dimensionValues.slice(level + 1, currentLevel).reduce((acc, values) => acc * values.length, 1);
|
|
687
|
+
const levelIndex = Math.floor(tempIndex / levelSize);
|
|
688
|
+
parentDimensionValues.unshift(dimensionValues[level][levelIndex % dimensionValues[level].length]);
|
|
689
|
+
tempIndex = tempIndex % levelSize;
|
|
690
|
+
}
|
|
691
|
+
parentValue = parentDimensionValues.join('+');
|
|
692
|
+
}
|
|
693
|
+
// Add the header with parentValue for N-dimensional support
|
|
510
694
|
headerRows[currentLevel].push({
|
|
511
695
|
name: dimension,
|
|
512
696
|
label: value,
|
|
513
697
|
level: currentLevel,
|
|
514
698
|
colspan,
|
|
515
699
|
rowspan,
|
|
700
|
+
parentValue,
|
|
516
701
|
// Collapsible properties
|
|
517
702
|
isCollapsible: true,
|
|
518
703
|
isExpanded: isExpanded,
|
|
@@ -523,13 +708,16 @@ class PivotTransformService {
|
|
|
523
708
|
// If this is the last dimension and we have multiple aggregations,
|
|
524
709
|
// add aggregation headers for this dimension value
|
|
525
710
|
if (isLastDimension && hasMultipleAggregations) {
|
|
711
|
+
// For aggregation headers, the parentValue includes the current dimension value
|
|
712
|
+
const aggParentValue = parentValue ? `${parentValue}+${value}` : value;
|
|
526
713
|
aggregations.forEach(agg => {
|
|
527
714
|
headerRows[currentLevel + 1].push({
|
|
528
715
|
name: agg.name,
|
|
529
716
|
label: agg.label || agg.name,
|
|
530
717
|
level: currentLevel + 1,
|
|
531
718
|
colspan: 1,
|
|
532
|
-
rowspan: 1
|
|
719
|
+
rowspan: 1,
|
|
720
|
+
parentValue: aggParentValue
|
|
533
721
|
});
|
|
534
722
|
});
|
|
535
723
|
}
|
|
@@ -537,13 +725,13 @@ class PivotTransformService {
|
|
|
537
725
|
}
|
|
538
726
|
// Recursively build next level only if not the last dimension
|
|
539
727
|
if (!isLastDimension) {
|
|
540
|
-
this.buildNestedHeaders(dimensionValues, aggregations, headerRows, currentLevel + 1, columnDimensions);
|
|
728
|
+
this.buildNestedHeaders(dimensionValues, aggregations, headerRows, currentLevel + 1, columnDimensions, maxDepth, gridConfiguration);
|
|
541
729
|
}
|
|
542
730
|
}
|
|
543
731
|
/**
|
|
544
732
|
* Calculate colspan for a header at given level
|
|
545
733
|
*/
|
|
546
|
-
calculateColspan(dimensionValues, currentLevel, aggregationCount) {
|
|
734
|
+
calculateColspan(dimensionValues, currentLevel, aggregationCount, isColumnSubtotalsEnabled, subtotalPositionColumn, aggregations) {
|
|
547
735
|
let colspan = 1;
|
|
548
736
|
// Multiply by values in deeper levels
|
|
549
737
|
for (let i = currentLevel + 1; i < dimensionValues.length; i++) {
|
|
@@ -553,6 +741,26 @@ class PivotTransformService {
|
|
|
553
741
|
if (aggregationCount > 1) {
|
|
554
742
|
colspan *= aggregationCount;
|
|
555
743
|
}
|
|
744
|
+
// Add subtotal columns for levels that have subtotals (all except last dimension)
|
|
745
|
+
if (isColumnSubtotalsEnabled && currentLevel < dimensionValues.length - 1) {
|
|
746
|
+
// Calculate how many subtotal columns will be added at THIS level and all deeper levels
|
|
747
|
+
const subtotalAggregations = aggregations.filter(agg => agg.showSubtotals);
|
|
748
|
+
// For this level: add subtotal columns for this dimension combination
|
|
749
|
+
// For deeper levels: add subtotal columns for all combinations at those levels
|
|
750
|
+
let subtotalColumns = 0;
|
|
751
|
+
// Add subtotal columns for current level (single dimension combination)
|
|
752
|
+
subtotalColumns += subtotalAggregations.length;
|
|
753
|
+
// Add subtotal columns for deeper level combinations
|
|
754
|
+
for (let level = currentLevel + 1; level < dimensionValues.length - 1; level++) {
|
|
755
|
+
// Calculate combinations at this deeper level that would be under current header
|
|
756
|
+
let deeperCombinations = 1;
|
|
757
|
+
for (let i = currentLevel; i <= level; i++) {
|
|
758
|
+
deeperCombinations *= dimensionValues[i].length;
|
|
759
|
+
}
|
|
760
|
+
subtotalColumns += deeperCombinations * subtotalAggregations.length;
|
|
761
|
+
}
|
|
762
|
+
colspan += subtotalColumns;
|
|
763
|
+
}
|
|
556
764
|
return colspan;
|
|
557
765
|
}
|
|
558
766
|
/**
|
|
@@ -567,8 +775,8 @@ class PivotTransformService {
|
|
|
567
775
|
columns.push({
|
|
568
776
|
name: dimension,
|
|
569
777
|
label: this.formatColumnLabel(field?.label || dimension),
|
|
570
|
-
datatype: 'textbox',
|
|
571
|
-
field_size: 150,
|
|
778
|
+
datatype: field?.datatype || 'textbox',
|
|
779
|
+
field_size: field?.field_size || 150,
|
|
572
780
|
grid_index: columnIndex++,
|
|
573
781
|
isLeaf: true,
|
|
574
782
|
level: 0,
|
|
@@ -577,26 +785,65 @@ class PivotTransformService {
|
|
|
577
785
|
enableDrilldown: field?.enableDrilldown || false
|
|
578
786
|
});
|
|
579
787
|
});
|
|
788
|
+
// Check if column grand totals are enabled
|
|
789
|
+
const enableColumnGrandTotal = gridConfiguration?.config?.enableColumnGrandTotal ?? false;
|
|
790
|
+
const grandTotalPositionColumn = gridConfiguration?.config?.grandTotalPositionColumn ?? 'after';
|
|
791
|
+
// Add column grand total columns if enabled (before pivot columns)
|
|
792
|
+
if (enableColumnGrandTotal && grandTotalPositionColumn === 'before') {
|
|
793
|
+
aggregations.forEach(aggregation => {
|
|
794
|
+
const aggregationColumn = gridConfiguration?.fields.find((col) => col.name === aggregation.name);
|
|
795
|
+
columns.push({
|
|
796
|
+
name: `_${aggregation.aggregationFunction}_column_grand_total_${aggregation.name}`,
|
|
797
|
+
label: `${this.toTitleCase(aggregation.aggregationFunction)} of ${aggregation.label || aggregation.name}`,
|
|
798
|
+
datatype: this.getAggregationDataType(aggregation.aggregationFunction),
|
|
799
|
+
field_size: aggregation.field_size || aggregationColumn?.field_size || 120,
|
|
800
|
+
grid_index: columnIndex++,
|
|
801
|
+
isLeaf: true,
|
|
802
|
+
level: 0,
|
|
803
|
+
rowspan: dimensionValues.length + (aggregations.length > 1 ? 1 : 0),
|
|
804
|
+
colspan: 1,
|
|
805
|
+
enableDrilldown: aggregation.enableDrilldown || false
|
|
806
|
+
});
|
|
807
|
+
});
|
|
808
|
+
}
|
|
580
809
|
// Handle case when there are no column dimensions
|
|
581
810
|
if (columnDimensions.length === 0) {
|
|
582
811
|
aggregations.forEach(aggregation => {
|
|
812
|
+
const aggregationColumn = gridConfiguration?.fields.find((col) => col.name === aggregation.name);
|
|
583
813
|
const columnName = `_default_${aggregation.name}`;
|
|
584
814
|
const columnLabel = aggregation.label || this.formatColumnLabel(aggregation.name);
|
|
585
815
|
columns.push({
|
|
586
816
|
name: columnName,
|
|
587
817
|
label: columnLabel,
|
|
588
818
|
datatype: this.getAggregationDataType(aggregation.aggregationFunction),
|
|
589
|
-
field_size: 120,
|
|
819
|
+
field_size: aggregation.field_size || aggregationColumn?.field_size || 120,
|
|
590
820
|
grid_index: columnIndex++,
|
|
591
821
|
isLeaf: true,
|
|
592
822
|
level: 1,
|
|
593
823
|
parentPath: [],
|
|
594
824
|
rowspan: 1,
|
|
595
825
|
colspan: 1,
|
|
596
|
-
aggregationFunction: aggregation.aggregationFunction,
|
|
597
826
|
enableDrilldown: aggregation.enableDrilldown || false
|
|
598
827
|
});
|
|
599
828
|
});
|
|
829
|
+
// Add column grand total columns if enabled (after pivot columns)
|
|
830
|
+
if (enableColumnGrandTotal && grandTotalPositionColumn === 'after') {
|
|
831
|
+
aggregations.forEach(aggregation => {
|
|
832
|
+
const aggregationColumn = gridConfiguration?.fields.find((col) => col.name === aggregation.name);
|
|
833
|
+
columns.push({
|
|
834
|
+
name: `_${aggregation.aggregationFunction}_column_grand_total_${aggregation.name}`,
|
|
835
|
+
label: `${this.toTitleCase(aggregation.aggregationFunction)} of ${aggregation.label || aggregation.name}`,
|
|
836
|
+
datatype: this.getAggregationDataType(aggregation.aggregationFunction),
|
|
837
|
+
field_size: aggregation.field_size || aggregationColumn?.field_size || 120,
|
|
838
|
+
grid_index: columnIndex++,
|
|
839
|
+
isLeaf: true,
|
|
840
|
+
level: 0,
|
|
841
|
+
rowspan: dimensionValues.length + (aggregations.length > 1 ? 1 : 0),
|
|
842
|
+
colspan: 1,
|
|
843
|
+
enableDrilldown: aggregation.enableDrilldown || false
|
|
844
|
+
});
|
|
845
|
+
});
|
|
846
|
+
}
|
|
600
847
|
return columns;
|
|
601
848
|
}
|
|
602
849
|
// Generate combinations respecting collapse state
|
|
@@ -613,13 +860,14 @@ class PivotTransformService {
|
|
|
613
860
|
const collapsedColumnKey = combination.slice(0, collapsedLevel + 1).join('|');
|
|
614
861
|
if (!columns.find(col => col.name.startsWith(`${collapsedColumnKey}_collapsed_`))) {
|
|
615
862
|
aggregations.forEach(aggregation => {
|
|
863
|
+
const aggregationColumn = gridConfiguration?.fields.find((col) => col.name === aggregation.name);
|
|
616
864
|
const columnName = `${collapsedColumnKey}_collapsed_${aggregation.name}`;
|
|
617
865
|
const columnLabel = `${combination.slice(0, collapsedLevel + 1).join(' - ')} (Total)`;
|
|
618
866
|
columns.push({
|
|
619
867
|
name: columnName,
|
|
620
868
|
label: columnLabel,
|
|
621
869
|
datatype: this.getAggregationDataType(aggregation.aggregationFunction),
|
|
622
|
-
field_size: 120,
|
|
870
|
+
field_size: aggregation.field_size || aggregationColumn?.field_size || 120,
|
|
623
871
|
grid_index: columnIndex++,
|
|
624
872
|
isLeaf: true,
|
|
625
873
|
level: dimensionValues.length + (aggregations.length > 1 ? 1 : 0),
|
|
@@ -635,8 +883,13 @@ class PivotTransformService {
|
|
|
635
883
|
else {
|
|
636
884
|
// Generate normal expanded columns
|
|
637
885
|
aggregations.forEach(aggregation => {
|
|
886
|
+
const aggregationColumn = gridConfiguration?.fields.find((col) => col.name === aggregation.name);
|
|
638
887
|
const columnKey = combination.join('|');
|
|
639
888
|
const columnName = `${columnKey}_${aggregation.name}`;
|
|
889
|
+
console.log('aggregation', aggregation);
|
|
890
|
+
console.log('aggregationColumn', aggregationColumn);
|
|
891
|
+
console.log('columnKey', columnKey);
|
|
892
|
+
console.log('columnName', columnName);
|
|
640
893
|
const columnLabel = aggregations.length > 1
|
|
641
894
|
? `${combination.join(' - ')} (${aggregation.label})`
|
|
642
895
|
: combination.join(' - ');
|
|
@@ -644,7 +897,7 @@ class PivotTransformService {
|
|
|
644
897
|
name: columnName,
|
|
645
898
|
label: columnLabel,
|
|
646
899
|
datatype: this.getAggregationDataType(aggregation.aggregationFunction),
|
|
647
|
-
field_size: 120,
|
|
900
|
+
field_size: aggregation.field_size || aggregationColumn?.field_size || 120,
|
|
648
901
|
grid_index: columnIndex++,
|
|
649
902
|
isLeaf: true,
|
|
650
903
|
level: dimensionValues.length + (aggregations.length > 1 ? 1 : 0),
|
|
@@ -657,6 +910,25 @@ class PivotTransformService {
|
|
|
657
910
|
});
|
|
658
911
|
}
|
|
659
912
|
});
|
|
913
|
+
// Add column grand total columns if enabled (after pivot columns)
|
|
914
|
+
if (enableColumnGrandTotal && grandTotalPositionColumn === 'after') {
|
|
915
|
+
aggregations.forEach(aggregation => {
|
|
916
|
+
const aggregationColumn = gridConfiguration?.fields.find((col) => col.name === aggregation.name);
|
|
917
|
+
columns.push({
|
|
918
|
+
name: `_${aggregation.aggregationFunction}_column_grand_total_${aggregation.name}`,
|
|
919
|
+
label: `${this.toTitleCase(aggregation.aggregationFunction)} of ${aggregation.label || aggregation.name}`,
|
|
920
|
+
datatype: this.getAggregationDataType(aggregation.aggregationFunction),
|
|
921
|
+
field_size: aggregation.field_size || aggregationColumn?.field_size || 120,
|
|
922
|
+
grid_index: columnIndex++,
|
|
923
|
+
isLeaf: true,
|
|
924
|
+
level: 0,
|
|
925
|
+
rowspan: dimensionValues.length + (aggregations.length > 1 ? 1 : 0),
|
|
926
|
+
colspan: 1,
|
|
927
|
+
aggregationFunction: aggregation.aggregationFunction,
|
|
928
|
+
enableDrilldown: aggregation.enableDrilldown || false
|
|
929
|
+
});
|
|
930
|
+
});
|
|
931
|
+
}
|
|
660
932
|
return columns;
|
|
661
933
|
}
|
|
662
934
|
/**
|
|
@@ -693,8 +965,8 @@ class PivotTransformService {
|
|
|
693
965
|
columns.push({
|
|
694
966
|
name: dimension,
|
|
695
967
|
label: this.formatColumnLabel(field?.label || dimension),
|
|
696
|
-
datatype: 'textbox',
|
|
697
|
-
field_size: 150,
|
|
968
|
+
datatype: field?.datatype || 'textbox',
|
|
969
|
+
field_size: field?.field_size || 150,
|
|
698
970
|
grid_index: columnIndex++,
|
|
699
971
|
isLeaf: true,
|
|
700
972
|
level: 0,
|
|
@@ -706,13 +978,14 @@ class PivotTransformService {
|
|
|
706
978
|
// Handle case when there are no column dimensions
|
|
707
979
|
if (columnDimensions.length === 0) {
|
|
708
980
|
aggregations.forEach(aggregation => {
|
|
981
|
+
const aggregationColumn = gridConfiguration?.fields.find((col) => col.name === aggregation.name);
|
|
709
982
|
const columnName = `_default_${aggregation.name}`;
|
|
710
983
|
const columnLabel = aggregation.label || this.formatColumnLabel(aggregation.name);
|
|
711
984
|
columns.push({
|
|
712
985
|
name: columnName,
|
|
713
986
|
label: columnLabel,
|
|
714
987
|
datatype: this.getAggregationDataType(aggregation.aggregationFunction),
|
|
715
|
-
field_size: 120,
|
|
988
|
+
field_size: aggregation.field_size || aggregationColumn?.field_size || 120,
|
|
716
989
|
grid_index: columnIndex++,
|
|
717
990
|
isLeaf: true,
|
|
718
991
|
level: 1,
|
|
@@ -728,6 +1001,7 @@ class PivotTransformService {
|
|
|
728
1001
|
const combinations = this.generateCombinations(dimensionValues);
|
|
729
1002
|
combinations.forEach(combination => {
|
|
730
1003
|
aggregations.forEach(aggregation => {
|
|
1004
|
+
const aggregationColumn = gridConfiguration?.fields.find((col) => col.name === aggregation.name);
|
|
731
1005
|
const columnKey = combination.join('|');
|
|
732
1006
|
// CRITICAL FIX: Use the same naming convention as data calculation
|
|
733
1007
|
// Data is stored as 'Feb_sales', 'Jan_sales' but columns were named 'Feb', 'Jan'
|
|
@@ -739,7 +1013,7 @@ class PivotTransformService {
|
|
|
739
1013
|
name: columnName,
|
|
740
1014
|
label: columnLabel,
|
|
741
1015
|
datatype: this.getAggregationDataType(aggregation.aggregationFunction),
|
|
742
|
-
field_size: 120,
|
|
1016
|
+
field_size: aggregation.field_size || aggregationColumn?.field_size || 120,
|
|
743
1017
|
grid_index: columnIndex++,
|
|
744
1018
|
isLeaf: true,
|
|
745
1019
|
level: dimensionValues.length + (aggregations.length > 1 ? 1 : 0),
|
|
@@ -774,6 +1048,32 @@ class PivotTransformService {
|
|
|
774
1048
|
});
|
|
775
1049
|
return combinations;
|
|
776
1050
|
}
|
|
1051
|
+
/**
|
|
1052
|
+
* Generate hierarchical subtotal combinations - creates combinations at each level separately
|
|
1053
|
+
* For 3 dimensions [["Low", "Medium"], ["0", "1"], ["Open", "Closed"]] this generates:
|
|
1054
|
+
* Level 0: ["Low"], ["Medium"] (first dimension only)
|
|
1055
|
+
* Level 1: ["Low", "0"], ["Low", "1"], ["Medium", "0"], ["Medium", "1"] (first + second dimensions)
|
|
1056
|
+
* This ensures subtotals are calculated for ALL dimension levels, not just full combinations
|
|
1057
|
+
*/
|
|
1058
|
+
generateHierarchicalSubtotalCombinations(dimensionValues) {
|
|
1059
|
+
const allCombinations = [];
|
|
1060
|
+
// For each level from 0 to dimensionValues.length - 1 (excluding the last level)
|
|
1061
|
+
for (let level = 0; level < dimensionValues.length; level++) {
|
|
1062
|
+
// Generate combinations up to this level (inclusive)
|
|
1063
|
+
const relevantDimensions = dimensionValues.slice(0, level + 1);
|
|
1064
|
+
if (level === 0) {
|
|
1065
|
+
// Level 0: Individual values from first dimension
|
|
1066
|
+
const levelCombinations = dimensionValues[0].map(value => [value]);
|
|
1067
|
+
allCombinations.push(...levelCombinations);
|
|
1068
|
+
}
|
|
1069
|
+
else {
|
|
1070
|
+
// Higher levels: Cartesian product of dimensions up to current level
|
|
1071
|
+
const levelCombinations = this.generateCombinations(relevantDimensions);
|
|
1072
|
+
allCombinations.push(...levelCombinations);
|
|
1073
|
+
}
|
|
1074
|
+
}
|
|
1075
|
+
return allCombinations;
|
|
1076
|
+
}
|
|
777
1077
|
/**
|
|
778
1078
|
* Generate flat header structure for single dimension
|
|
779
1079
|
*/
|
|
@@ -824,10 +1124,15 @@ class PivotTransformService {
|
|
|
824
1124
|
/**
|
|
825
1125
|
* Add subtotals to pivot data based on configuration
|
|
826
1126
|
*/
|
|
827
|
-
addSubtotals(pivotRows, configuration, pivotColumns, gridConfiguration
|
|
1127
|
+
addSubtotals(pivotRows, configuration, pivotColumns, gridConfiguration) {
|
|
828
1128
|
const enableRowSubtotals = gridConfiguration?.config?.enableRowSubtotals ?? false;
|
|
1129
|
+
const enableColumnSubtotals = gridConfiguration?.config?.enableColumnSubtotals ?? false;
|
|
829
1130
|
const enableGrandTotal = gridConfiguration?.config?.enableGrandTotal ?? false;
|
|
830
|
-
|
|
1131
|
+
const enableColumnGrandTotal = gridConfiguration?.config?.enableColumnGrandTotal ?? false;
|
|
1132
|
+
const grandTotalPosition = gridConfiguration?.config?.grandTotalPosition ?? 'after';
|
|
1133
|
+
const grandTotalPositionColumn = gridConfiguration?.config?.grandTotalPositionColumn ?? 'after';
|
|
1134
|
+
const subtotalPositionColumn = gridConfiguration?.config?.subtotalPositionColumn ?? 'after';
|
|
1135
|
+
if (!enableRowSubtotals && !enableColumnSubtotals && !enableGrandTotal && !enableColumnGrandTotal) {
|
|
831
1136
|
return pivotRows;
|
|
832
1137
|
}
|
|
833
1138
|
let result = [...pivotRows];
|
|
@@ -835,10 +1140,18 @@ class PivotTransformService {
|
|
|
835
1140
|
if (enableRowSubtotals) {
|
|
836
1141
|
result = this.addRowSubtotals(result, configuration, gridConfiguration);
|
|
837
1142
|
}
|
|
1143
|
+
// Add column subtotals
|
|
1144
|
+
if (enableColumnSubtotals) {
|
|
1145
|
+
result = this.addColumnSubtotals(result, configuration, pivotColumns, gridConfiguration, subtotalPositionColumn);
|
|
1146
|
+
}
|
|
838
1147
|
// Add grand total row
|
|
839
1148
|
if (enableGrandTotal) {
|
|
840
1149
|
result = this.addGrandTotalRow(result, configuration, pivotColumns, gridConfiguration, grandTotalPosition);
|
|
841
1150
|
}
|
|
1151
|
+
// Add column grand totals
|
|
1152
|
+
if (enableColumnGrandTotal) {
|
|
1153
|
+
result = this.addColumnGrandTotals(result, configuration, pivotColumns, gridConfiguration, grandTotalPositionColumn);
|
|
1154
|
+
}
|
|
842
1155
|
return result;
|
|
843
1156
|
}
|
|
844
1157
|
/**
|
|
@@ -894,6 +1207,98 @@ class PivotTransformService {
|
|
|
894
1207
|
}
|
|
895
1208
|
return result;
|
|
896
1209
|
}
|
|
1210
|
+
/**
|
|
1211
|
+
* Add column subtotals as new columns
|
|
1212
|
+
*/
|
|
1213
|
+
addColumnSubtotals(pivotRows, configuration, pivotColumns, gridConfiguration, subtotalPositionColumn) {
|
|
1214
|
+
// Only calculate subtotals if we have column dimensions
|
|
1215
|
+
if (configuration.cols.length === 0) {
|
|
1216
|
+
return pivotRows;
|
|
1217
|
+
}
|
|
1218
|
+
// Don't calculate subtotals for the last column dimension
|
|
1219
|
+
const subtotalDimensions = configuration.cols.slice(0, -1);
|
|
1220
|
+
if (subtotalDimensions.length === 0) {
|
|
1221
|
+
return pivotRows;
|
|
1222
|
+
}
|
|
1223
|
+
// Extract unique values for each column dimension that should have subtotals
|
|
1224
|
+
const dimensionValues = subtotalDimensions.map((dimension, dimIndex) => {
|
|
1225
|
+
const values = new Set();
|
|
1226
|
+
// Extract unique values from pivot column names
|
|
1227
|
+
// Pivot columns are named like "Low|0", "Low|1", "Medium|0", etc.
|
|
1228
|
+
pivotColumns.forEach(pivotColumn => {
|
|
1229
|
+
if (pivotColumn !== '_default') {
|
|
1230
|
+
const parts = pivotColumn.split('|');
|
|
1231
|
+
if (parts[dimIndex] !== undefined) {
|
|
1232
|
+
values.add(parts[dimIndex]);
|
|
1233
|
+
}
|
|
1234
|
+
}
|
|
1235
|
+
});
|
|
1236
|
+
return Array.from(values).sort();
|
|
1237
|
+
});
|
|
1238
|
+
console.log('Column subtotal dimensions:', subtotalDimensions);
|
|
1239
|
+
console.log('Dimension values for subtotals:', dimensionValues);
|
|
1240
|
+
// Generate hierarchical subtotal combinations (for each level separately)
|
|
1241
|
+
const subtotalCombinations = this.generateHierarchicalSubtotalCombinations(dimensionValues);
|
|
1242
|
+
console.log('Hierarchical subtotal combinations:', subtotalCombinations);
|
|
1243
|
+
// Add column subtotal columns to each row
|
|
1244
|
+
const result = [];
|
|
1245
|
+
for (const row of pivotRows) {
|
|
1246
|
+
const newRow = { ...row };
|
|
1247
|
+
// For each combination of dimension values that should have subtotals
|
|
1248
|
+
subtotalCombinations.forEach(combination => {
|
|
1249
|
+
const combinationKey = combination.join('|');
|
|
1250
|
+
// For each aggregation, calculate subtotal for this combination
|
|
1251
|
+
configuration.aggregations.forEach(aggregation => {
|
|
1252
|
+
if (aggregation.showSubtotals) {
|
|
1253
|
+
const subtotalColumnName = `_${combinationKey}_subtotal_${aggregation.name}`;
|
|
1254
|
+
let measureTotal = 0;
|
|
1255
|
+
const matchedColumns = [];
|
|
1256
|
+
// Find all columns that match this combination and sum their values
|
|
1257
|
+
Object.keys(row).forEach(key => {
|
|
1258
|
+
if (key.endsWith(`_${aggregation.name}`) && typeof row[key] === 'number') {
|
|
1259
|
+
// Check if this column belongs to the combination
|
|
1260
|
+
// The key format is "Priority|Rating_measure" (e.g., "Low|0_number")
|
|
1261
|
+
const columnKey = key.split('_')[0]; // Get the part before the aggregation name
|
|
1262
|
+
const columnParts = columnKey.split('|'); // Split column key by delimiter
|
|
1263
|
+
// Check if this column matches the current combination
|
|
1264
|
+
let isMatch = false;
|
|
1265
|
+
if (combination.length === 1) {
|
|
1266
|
+
// Single dimension: check if first part of column matches (e.g., "Low|0" matches ["Low"])
|
|
1267
|
+
isMatch = columnParts[0] === combination[0];
|
|
1268
|
+
}
|
|
1269
|
+
else {
|
|
1270
|
+
// Multi-dimension: check if first N parts of column match the combination
|
|
1271
|
+
// e.g., for combination ["Low", "0"], check if column "Low|0|Open" starts with "Low|0"
|
|
1272
|
+
if (columnParts.length >= combination.length) {
|
|
1273
|
+
isMatch = true;
|
|
1274
|
+
for (let i = 0; i < combination.length; i++) {
|
|
1275
|
+
if (columnParts[i] !== combination[i]) {
|
|
1276
|
+
isMatch = false;
|
|
1277
|
+
break;
|
|
1278
|
+
}
|
|
1279
|
+
}
|
|
1280
|
+
}
|
|
1281
|
+
}
|
|
1282
|
+
if (isMatch) {
|
|
1283
|
+
measureTotal += row[key];
|
|
1284
|
+
matchedColumns.push(key);
|
|
1285
|
+
}
|
|
1286
|
+
}
|
|
1287
|
+
});
|
|
1288
|
+
console.log(`Subtotal for ${combinationKey} - ${aggregation.name}:`, {
|
|
1289
|
+
combinationKey,
|
|
1290
|
+
aggregationName: aggregation.name,
|
|
1291
|
+
matchedColumns,
|
|
1292
|
+
measureTotal
|
|
1293
|
+
});
|
|
1294
|
+
newRow[subtotalColumnName] = measureTotal;
|
|
1295
|
+
}
|
|
1296
|
+
});
|
|
1297
|
+
});
|
|
1298
|
+
result.push(newRow);
|
|
1299
|
+
}
|
|
1300
|
+
return result;
|
|
1301
|
+
}
|
|
897
1302
|
/**
|
|
898
1303
|
* Add grand total row
|
|
899
1304
|
*/
|
|
@@ -918,6 +1323,30 @@ class PivotTransformService {
|
|
|
918
1323
|
}
|
|
919
1324
|
return [...pivotRows, grandTotalRow];
|
|
920
1325
|
}
|
|
1326
|
+
/**
|
|
1327
|
+
* Add column grand totals as new columns
|
|
1328
|
+
*/
|
|
1329
|
+
addColumnGrandTotals(pivotRows, configuration, pivotColumns, gridConfiguration, grandTotalPositionColumn) {
|
|
1330
|
+
// Add column grand total columns to each row
|
|
1331
|
+
const result = [];
|
|
1332
|
+
for (const row of pivotRows) {
|
|
1333
|
+
const newRow = { ...row };
|
|
1334
|
+
// For each aggregation/measure, calculate the grand total across all column dimension values
|
|
1335
|
+
configuration.aggregations.forEach(aggregation => {
|
|
1336
|
+
const grandTotalColumnName = `_${aggregation.aggregationFunction}_column_grand_total_${aggregation.name}`;
|
|
1337
|
+
let measureTotal = 0;
|
|
1338
|
+
// Find all columns that end with this measure name and sum their values
|
|
1339
|
+
Object.keys(row).forEach(key => {
|
|
1340
|
+
if (key.endsWith(`_${aggregation.name}`) && typeof row[key] === 'number') {
|
|
1341
|
+
measureTotal += row[key];
|
|
1342
|
+
}
|
|
1343
|
+
});
|
|
1344
|
+
newRow[grandTotalColumnName] = measureTotal;
|
|
1345
|
+
});
|
|
1346
|
+
result.push(newRow);
|
|
1347
|
+
}
|
|
1348
|
+
return result;
|
|
1349
|
+
}
|
|
921
1350
|
/**
|
|
922
1351
|
* Calculate grand total values for all rows (ignores showSubtotals flag)
|
|
923
1352
|
*/
|
|
@@ -1300,6 +1729,135 @@ class PivotTransformService {
|
|
|
1300
1729
|
}
|
|
1301
1730
|
return rowspanInfo;
|
|
1302
1731
|
}
|
|
1732
|
+
/**
|
|
1733
|
+
* Insert column subtotal headers at the correct positions within each priority group
|
|
1734
|
+
*/
|
|
1735
|
+
insertColumnSubtotalHeaders(headerRows, columnDimensions, aggregations, gridConfiguration, sourceData) {
|
|
1736
|
+
const enableColumnSubtotals = gridConfiguration?.config?.enableColumnSubtotals ?? false;
|
|
1737
|
+
const subtotalPositionColumn = gridConfiguration?.config?.subtotalPositionColumn ?? 'after';
|
|
1738
|
+
if (!enableColumnSubtotals || columnDimensions.length <= 1) {
|
|
1739
|
+
return;
|
|
1740
|
+
}
|
|
1741
|
+
// N-DIMENSIONAL APPROACH: Get subtotal dimensions (all except last)
|
|
1742
|
+
const subtotalDimensions = columnDimensions.slice(0, -1);
|
|
1743
|
+
// Extract unique values for each subtotal dimension dynamically
|
|
1744
|
+
const dimensionValues = subtotalDimensions.map((dimension) => {
|
|
1745
|
+
const values = new Set();
|
|
1746
|
+
if (sourceData && sourceData.length > 0) {
|
|
1747
|
+
sourceData.forEach(row => {
|
|
1748
|
+
const value = row[dimension] != null ? String(row[dimension]) : '';
|
|
1749
|
+
if (value) {
|
|
1750
|
+
values.add(value);
|
|
1751
|
+
}
|
|
1752
|
+
});
|
|
1753
|
+
}
|
|
1754
|
+
return Array.from(values).sort();
|
|
1755
|
+
});
|
|
1756
|
+
// Generate hierarchical combinations for subtotal headers (same as data subtotals)
|
|
1757
|
+
const subtotalCombinations = this.generateHierarchicalSubtotalCombinations(dimensionValues);
|
|
1758
|
+
// Process each header row that needs subtotal headers
|
|
1759
|
+
for (let rowIndex = 1; rowIndex < headerRows.length; rowIndex++) {
|
|
1760
|
+
// Get subtotal combinations for this specific row level
|
|
1761
|
+
const rowSubtotals = subtotalCombinations.filter(combination => combination.length === rowIndex);
|
|
1762
|
+
if (rowSubtotals.length === 0)
|
|
1763
|
+
continue;
|
|
1764
|
+
// Create subtotal headers for this row
|
|
1765
|
+
const subtotalHeadersForRow = [];
|
|
1766
|
+
rowSubtotals.forEach(combination => {
|
|
1767
|
+
const combinationKey = combination.join('|');
|
|
1768
|
+
const combinationLabel = combination.join(' ');
|
|
1769
|
+
const parentValue = combination.length > 1 ? combination.slice(0, -1).join('+') : undefined;
|
|
1770
|
+
aggregations.forEach(aggregation => {
|
|
1771
|
+
if (aggregation.showSubtotals) {
|
|
1772
|
+
const subtotalHeader = {
|
|
1773
|
+
name: `_${combinationKey}_subtotal_${aggregation.name}`,
|
|
1774
|
+
label: `${combinationLabel} Subtotal - ${aggregation.label || aggregation.name}`,
|
|
1775
|
+
level: combination.length,
|
|
1776
|
+
colspan: 1,
|
|
1777
|
+
rowspan: 1,
|
|
1778
|
+
parentValue: parentValue,
|
|
1779
|
+
isSubtotal: true,
|
|
1780
|
+
subtotalLevel: combination.length - 1
|
|
1781
|
+
};
|
|
1782
|
+
// Find the correct insertion position for this subtotal header
|
|
1783
|
+
const insertPosition = this.findSubtotalInsertPosition(headerRows[rowIndex], subtotalHeader, combination, subtotalPositionColumn);
|
|
1784
|
+
subtotalHeadersForRow.push({ header: subtotalHeader, insertPosition });
|
|
1785
|
+
}
|
|
1786
|
+
});
|
|
1787
|
+
});
|
|
1788
|
+
// Sort by insertion position (highest to lowest to avoid index shifting)
|
|
1789
|
+
subtotalHeadersForRow.sort((a, b) => b.insertPosition - a.insertPosition);
|
|
1790
|
+
// Insert all subtotal headers at their correct positions
|
|
1791
|
+
subtotalHeadersForRow.forEach(({ header, insertPosition }) => {
|
|
1792
|
+
headerRows[rowIndex].splice(insertPosition, 0, header);
|
|
1793
|
+
});
|
|
1794
|
+
}
|
|
1795
|
+
}
|
|
1796
|
+
/**
|
|
1797
|
+
* Find the correct insertion position for a subtotal header based on parentValue and position config
|
|
1798
|
+
*/
|
|
1799
|
+
findSubtotalInsertPosition(headerRow, subtotalHeader, combination, subtotalPositionColumn) {
|
|
1800
|
+
console.log(`🔍 Finding position for combination [${combination.join(', ')}] in row with ${headerRow.length} headers`);
|
|
1801
|
+
console.log(` Looking for parentValue match. Subtotal parentValue: "${subtotalHeader.parentValue}"`);
|
|
1802
|
+
const headerSample = headerRow.slice(0, 10).map(h => `{name:"${h.name}", label:"${h.label}", parentValue:"${h.parentValue}"}`);
|
|
1803
|
+
console.log(` First 10 headers: ${headerSample.join(' | ')}`);
|
|
1804
|
+
// For single dimension subtotals (e.g., ["Low"]), find position relative to parent group
|
|
1805
|
+
if (combination.length === 1) {
|
|
1806
|
+
const dimensionValue = combination[0]; // e.g., "Low"
|
|
1807
|
+
// Find the range of headers that belong to this dimension value
|
|
1808
|
+
// Look for headers with parentValue matching this dimension value
|
|
1809
|
+
let startIndex = -1;
|
|
1810
|
+
let endIndex = -1;
|
|
1811
|
+
for (let i = 0; i < headerRow.length; i++) {
|
|
1812
|
+
const header = headerRow[i];
|
|
1813
|
+
// Check if this header belongs to our dimension group
|
|
1814
|
+
// For level 1 subtotals, we look for headers that have this dimension as their parent
|
|
1815
|
+
if (header.parentValue === dimensionValue) {
|
|
1816
|
+
if (startIndex === -1)
|
|
1817
|
+
startIndex = i;
|
|
1818
|
+
endIndex = i;
|
|
1819
|
+
}
|
|
1820
|
+
}
|
|
1821
|
+
if (startIndex !== -1) {
|
|
1822
|
+
// Found the range - insert based on position config
|
|
1823
|
+
if (subtotalPositionColumn === 'before') {
|
|
1824
|
+
return startIndex; // Insert before the group starts
|
|
1825
|
+
}
|
|
1826
|
+
else {
|
|
1827
|
+
return endIndex + 1; // Insert after the group ends
|
|
1828
|
+
}
|
|
1829
|
+
}
|
|
1830
|
+
// Fallback: if no parent match found, append at end
|
|
1831
|
+
return headerRow.length;
|
|
1832
|
+
}
|
|
1833
|
+
// For multi-dimension subtotals (e.g., ["Low", "0"]), find position relative to exact parent match
|
|
1834
|
+
else {
|
|
1835
|
+
const fullParentValueKey = combination.join('+'); // e.g., "Low+0" from ["Low", "0"]
|
|
1836
|
+
// Find headers that match the exact parent hierarchy
|
|
1837
|
+
let matchStart = -1;
|
|
1838
|
+
let matchEnd = -1;
|
|
1839
|
+
for (let i = 0; i < headerRow.length; i++) {
|
|
1840
|
+
const header = headerRow[i];
|
|
1841
|
+
// Check if this header belongs to our specific parent combination
|
|
1842
|
+
console.log(` Checking header ${i}: parentValue="${header.parentValue}" vs expected="${fullParentValueKey}"`);
|
|
1843
|
+
if (header.parentValue === fullParentValueKey) {
|
|
1844
|
+
if (matchStart === -1)
|
|
1845
|
+
matchStart = i;
|
|
1846
|
+
matchEnd = i;
|
|
1847
|
+
}
|
|
1848
|
+
}
|
|
1849
|
+
if (matchStart !== -1) {
|
|
1850
|
+
if (subtotalPositionColumn === 'before') {
|
|
1851
|
+
return matchStart;
|
|
1852
|
+
}
|
|
1853
|
+
else {
|
|
1854
|
+
return matchEnd + 1;
|
|
1855
|
+
}
|
|
1856
|
+
}
|
|
1857
|
+
// Fallback: append at end
|
|
1858
|
+
return headerRow.length;
|
|
1859
|
+
}
|
|
1860
|
+
}
|
|
1303
1861
|
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.1.3", ngImport: i0, type: PivotTransformService, deps: [], target: i0.ɵɵFactoryTarget.Injectable });
|
|
1304
1862
|
static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "20.1.3", ngImport: i0, type: PivotTransformService, providedIn: 'root' });
|
|
1305
1863
|
}
|
|
@@ -3451,7 +4009,7 @@ class DataCellComponent {
|
|
|
3451
4009
|
provide: CELL_VALIDATORS,
|
|
3452
4010
|
useValue: cellValidators
|
|
3453
4011
|
}
|
|
3454
|
-
], viewQueries: [{ propertyName: "attachmentTrigger", first: true, predicate: ["attachmentTrigger"], descendants: true }, { propertyName: "singleSelectTrigger", first: true, predicate: ["singleSelectTrigger"], descendants: true }, { propertyName: "multiSelectTrigger", first: true, predicate: ["multiSelectTrigger"], descendants: true }, { propertyName: "peopleTrigger", first: true, predicate: ["peopleTrigger"], descendants: true }], ngImport: i0, template: "<div class=\"container\">\n @switch (columnDatatype()) {\n @case ('textbox') {\n @if(isActive()){\n <mat-form-field appearance=\"outline\" class=\"cell-form-field\">\n <input matInput type=\"text\" [id]=\"'input-' + columnName()+ id()\" [name]=\"'input-' + columnName()+ id()\"\n [(ngModel)]=\"currentValue\" (blur)=\"onTextboxBlur()\">\n </mat-form-field>\n } @else {\n <div class=\"cell-display-text\" (dblclick)=\"setActive(true)\"\n [class.cell-display-text-editable]=\"isEditable()\">\n @if (drillable()) {\n <span class=\"drillable-value\" (click)=\"onDrillableClick($event)\">{{currentValue()}}</span>\n } @else {\n {{currentValue()}}\n }\n </div>\n }\n }\n @case ('currency') {\n @if(isActive()){\n <mat-form-field appearance=\"outline\" class=\"cell-form-field\">\n <input matInput type=\"text\" [id]=\"'currency-' + columnName()+ id()\" [name]=\"'currency-' + columnName()+ id()\"\n [ngModel]=\"currentValue()\" (ngModelChange)=\"setField($event)\" placeholder=\"Number\" (blur)=\"onNumberBlur()\">\n <span matTextPrefix>$</span>\n </mat-form-field>\n } @else {\n <div class=\"cell-display-text cell-display-number\" (dblclick)=\"setActive(true)\"\n [class.cell-display-text-editable]=\"isEditable()\">\n @if (drillable()) {\n <span class=\"drillable-value\" (click)=\"onDrillableClick($event)\">{{formatNumberSignal()}}</span>\n } @else {\n {{formatNumberSignal()}}\n }\n </div>\n }\n }\n @case ('number') {\n @if(isActive()){\n <mat-form-field appearance=\"outline\" class=\"cell-form-field\">\n <input matInput type=\"text\" [id]=\"'number-' + columnName()+ id()\" [name]=\"'number-' + columnName()+ id()\"\n [ngModel]=\"currentValue()\" (ngModelChange)=\"setField($event)\" placeholder=\"Number\" (blur)=\"onNumberBlur()\">\n </mat-form-field>\n } @else {\n <div class=\"cell-display-text cell-display-number\" (dblclick)=\"setActive(true)\"\n[class.cell-display-text-editable]=\"isEditable()\"\n >\n @if (drillable() && currentValue() !== 0) {\n <span class=\"drillable-value\" ><a class=\"drillable-link\" (click)=\"onDrillableClick($event)\">{{formatNumberSignal()}}</a></span>\n } @else {\n {{formatNumberSignal()}}\n }\n </div>\n }\n }\n @case ('location') {\n @if(isActive()){\n <mat-form-field appearance=\"outline\" class=\"cell-form-field\">\n <input matInput type=\"text\" [id]=\"'location-' + columnName()+ id()\" [name]=\"'location-' + columnName()+ id()\"\n [(ngModel)]=\"currentValue\" placeholder=\"location\" (blur)=\"onLocationBlur()\">\n </mat-form-field>\n } @else {\n <div class=\"cell-display-text\" (dblclick)=\"setActive(true)\"\n [class.cell-display-text-editable]=\"isEditable()\">\n @if (drillable()) {\n <span class=\"drillable-value\" (click)=\"onDrillableClick($event)\">{{currentValue()}}</span>\n } @else {\n {{currentValue()}}\n }\n </div>\n }\n }\n @case ('email') {\n @if(isActive()){\n <mat-form-field appearance=\"outline\" class=\"cell-form-field\">\n <input matInput type=\"email\" [id]=\"'email-' + columnName()+ id()\" [name]=\"'email-' + columnName()+ id()\"\n [(ngModel)]=\"currentValue\" placeholder=\"email\" matTooltipPosition=\"below\" (blur)=\"onEmailBlur()\">\n </mat-form-field>\n } @else {\n <div class=\"cell-display-text\" (dblclick)=\"setActive(true)\"\n [class.cell-display-text-editable]=\"isEditable()\">\n @if (drillable()) {\n <span class=\"drillable-value\" (click)=\"onDrillableClick($event)\">{{currentValue()}}</span>\n } @else {\n {{currentValue()}}\n }\n </div>\n }\n }\n @case ('dropdown_multi_select') {\n <div class=\"cell-display-text\" (dblclick)=\"toggleOverlayMenu($event)\" #multiSelectTrigger\n [class.cell-display-text-editable]=\"isEditable()\">\n @if (drillable()) {\n <span class=\"drillable-value\" (click)=\"onDrillableClick($event)\">{{formattedMultiSelectValue(currentColumnWidth()) || 'Click to select'}}</span>\n } @else {\n {{formattedMultiSelectValue(currentColumnWidth()) || 'Click to select'}}\n }\n </div>\n }\n\n @case ('dropdown_single_select') {\n <div class=\"cell-display-text\" (dblclick)=\"toggleOverlayMenu($event)\" [cdkMenuTriggerFor]=\"singleSelectTrigger\" #singleSelectTrigger\n [class.cell-display-text-editable]=\"isEditable()\">\n @if (drillable()) {\n <span class=\"drillable-value\" (click)=\"onDrillableClick($event)\">{{currentValue()}}</span>\n } @else {\n {{currentValue()}}\n }\n </div>\n }\n\n @case ('checkbox') {\n <div class=\"cell-form-field cell-checkbox\">\n <mat-checkbox [(ngModel)]=\"currentValue\">\n </mat-checkbox>\n </div>\n }\n\n @case ('people') {\n <div class=\"assignee-avatars \" (dblclick)=\"toggleOverlayMenu($event)\" #peopleTrigger>\n @if (isAssigneeArray(currentValue()) && currentValue().length > 0) {\n @if (drillable()) {\n <span class=\"drillable-value\" (click)=\"onDrillableClick($event)\">\n @for (assignee of currentValue(); track $index) {\n @if ($index < 3) {\n <div class=\"avatar-circle\" [style.z-index]=\"currentValue().length - $index\">\n {{ getInitials(assignee) }}\n </div>\n }\n }\n @if (currentValue().length > 3) {\n <div class=\"avatar-circle count-circle\" [style.z-index]=\"1\">\n +{{ currentValue().length - 3 }}\n </div>\n }\n </span>\n } @else {\n @for (assignee of currentValue(); track $index) {\n @if ($index < 3) {\n <div class=\"avatar-circle\" [style.z-index]=\"currentValue().length - $index\">\n {{ getInitials(assignee) }}\n </div>\n }\n }\n @if (currentValue().length > 3) {\n <div class=\"avatar-circle count-circle\" [style.z-index]=\"1\">\n +{{ currentValue().length - 3 }}\n </div>\n }\n }\n }\n </div>\n }\n\n\n @case ('date') {\n <div class=\"cell-date-container\">\n @if (drillable()) {\n <span class=\"drillable-value\" (click)=\"onDrillableClick($event)\">\n <input type=\"text\" [id]=\"'date-' + columnName()+ id()\" [name]=\"'date-' + columnName()+ id()\"\n [matDatepicker]=\"picker\" appCustomDatePicker class=\"inputRef date-picker\" [ngModel]=\"currentValue()\"\n (ngModelChange)=\"onDateChange($event)\" (click)=\"picker.open()\" readonly>\n <mat-datepicker-toggle hidden matIconSuffix [for]=\"picker\"></mat-datepicker-toggle>\n <mat-datepicker #picker></mat-datepicker>\n </span>\n } @else {\n <input type=\"text\" [id]=\"'date-' + columnName()+ id()\" [name]=\"'date-' + columnName()+ id()\"\n [matDatepicker]=\"picker\" appCustomDatePicker class=\"inputRef date-picker\" [ngModel]=\"currentValue()\"\n (ngModelChange)=\"onDateChange($event)\" (click)=\"picker.open()\" readonly>\n <mat-datepicker-toggle hidden matIconSuffix [for]=\"picker\"></mat-datepicker-toggle>\n <mat-datepicker #picker></mat-datepicker>\n }\n </div>\n }\n\n\n @case ('priority') {\n <button mat-stroked-button [cdkMenuTriggerFor]=\"prioritySelectMenu\" class=\"dropdown-trigger\">\n <div class=\"cell-priority-content\">\n <div [innerHTML]=\"getPriorityIcon()\"></div>\n @if (drillable()) {\n <div class=\"drillable-value\" (click)=\"onDrillableClick($event)\">{{currentValue()}}</div>\n } @else {\n <div>{{currentValue()}}</div>\n }\n </div>\n </button>\n }\n @case ('progress') {\n @if(isActive()){\n <div class=\"progress-input-container\">\n <mat-slider class=\"progress-slider\" [min]=\"0\" [max]=\"100\" [step]=\"1\" [discrete]=\"true\">\n <input matSliderThumb [ngModel]=\"currentValue()\" (ngModelChange)=\"setProgressValue($event)\">\n </mat-slider>\n <span class=\"progress-value\">{{currentValue()}}%</span>\n </div>\n } @else {\n <div class=\"progress-bar-container\" [attr.data-progress]=\"currentValue()\">\n <div class=\"progress-bar\" [style.width.%]=\"currentValue()\"></div>\n @if (drillable()) {\n <span class=\"progress-text drillable-value\" (click)=\"onDrillableClick($event)\">{{currentValue()}}%</span>\n } @else {\n <span class=\"progress-text\">{{currentValue()}}%</span>\n }\n </div>\n }\n }\n\n @case ('rating') {\n @if(isActive()){\n <div class=\"rating-input-container\">\n @for (star of getRatingStars(); track star) {\n <span class=\"rating-star\" [class.active]=\"currentValue() >= star\" (click)=\"setRatingValue(star)\"\n (mouseenter)=\"hoverRating = star\" (mouseleave)=\"hoverRating = 0\">\n {{getEmojiForRating(star)}}\n </span>\n }\n <span class=\"rating-value\">{{currentValue()}}/{{columnCellConfiguration()?.end_value || 5}}</span>\n </div>\n } @else {\n <div class=\"rating-display-container\">\n @for (star of getRatingStars(); track star) {\n <span class=\"rating-star\" [class.active]=\"currentValue() >= star\">\n {{getEmojiForRating(star)}}\n </span>\n }\n @if (drillable()) {\n <span class=\"drillable-value\" (click)=\"onDrillableClick($event)\">{{currentValue()}}/{{columnCellConfiguration()?.end_value || 5}}</span>\n }\n </div>\n }\n }\n\n @case ('status') {\n <button mat-stroked-button [cdkMenuTriggerFor]=\"statusSelectMenu\" class=\"status-dropdown-trigger\"\n [style.background-color]=\"getStatusColor(currentValue()).background\"\n [style.border-color]=\"getStatusColor(currentValue()).border\" [style.color]=\"getStatusColor(currentValue()).text\"\n [style.height.px]=\"30\">\n <div class=\"status-button-content\">\n @if(getStatusButtonDisplay(currentValue()).color) {\n\n }\n @if (drillable()) {\n <span class=\"status-text drillable-value\" (click)=\"onDrillableClick($event)\">\n {{getStatusButtonDisplay(currentValue()).text}}\n </span>\n } @else {\n <span class=\"status-text\">\n {{getStatusButtonDisplay(currentValue()).text}}\n </span>\n }\n </div>\n </button>\n }\n\n @case ('tag') {\n <div class=\"tag-container\" [cdkMenuTriggerFor]=\"tagSelectMenu\">\n\n <div class=\"tag-display\">\n @if (drillable()) {\n <span class=\"drillable-value\" (click)=\"onDrillableClick($event)\">\n @for (tag of getTagDisplay(currentValue()).displayTags; track tag) {\n @if (columnCellConfiguration()) {\n <span class=\"tag\" [style.background]=\"getTagColor(tag).background\" [style.color]=\"getTagColor(tag).color\">\n {{tag}}\n </span>\n } @else {\n <span class=\"tag cell-fallback-tag\">\n {{tag}}\n </span>\n }\n }\n @if(getTagDisplay(currentValue()).moreCount > 0) {\n <span class=\"tag-more\">\n + {{getTagDisplay(currentValue()).moreCount}} more\n </span>\n }\n </span>\n } @else {\n @for (tag of getTagDisplay(currentValue()).displayTags; track tag) {\n @if (columnCellConfiguration()) {\n <span class=\"tag\" [style.background]=\"getTagColor(tag).background\" [style.color]=\"getTagColor(tag).color\">\n {{tag}}\n </span>\n } @else {\n <span class=\"tag cell-fallback-tag\">\n {{tag}}\n </span>\n }\n }\n @if(getTagDisplay(currentValue()).moreCount > 0) {\n <span class=\"tag-more\">\n + {{getTagDisplay(currentValue()).moreCount}} more\n </span>\n }\n }\n </div>\n\n </div>\n }\n\n @case ('phone') {\n <app-mobile-input [(ngModel)]=\"currentValue\"\n [defaultCountry]=\"columnCellConfiguration()?.default_country || 'US'\"></app-mobile-input>\n }\n\n @case ('attachment') {\n <div class=\"attachment-cell-wrapper\" (dblclick)=\"toggleOverlayMenu($event)\" cdkOverlayOrigin #attachmentTrigger=\"cdkOverlayOrigin\">\n @if(currentValue()?.length > 0){\n <div class=\"cell-attachment-container\">\n @if (drillable()) {\n <span class=\"drillable-value\" (click)=\"onDrillableClick($event)\">\n <svg width=\"24\" height=\"24\" viewBox=\"0 0 24 24\" fill=\"none\" xmlns=\"http://www.w3.org/2000/svg\">\n <path fill-rule=\"evenodd\" clip-rule=\"evenodd\"\n d=\"M19 12.5C19 14.985 15.866 17 12 17C8.134 17 5 14.985 5 12.5C5 10.015 8.134 8 12 8C15.866 8 19 10.015 19 12.5Z\"\n stroke=\"#7C818C\" stroke-linecap=\"round\" stroke-linejoin=\"round\" />\n <path fill-rule=\"evenodd\" clip-rule=\"evenodd\"\n d=\"M13.75 12.5001C13.7716 13.1394 13.4429 13.7397 12.8925 14.0657C12.3422 14.3918 11.6578 14.3918 11.1075 14.0657C10.5571 13.7397 10.2284 13.1394 10.25 12.5001C10.2284 11.8608 10.5571 11.2606 11.1075 10.9345C11.6578 10.6084 12.3422 10.6084 12.8925 10.9345C13.4429 11.2606 13.7716 11.8608 13.75 12.5001V12.5001Z\"\n stroke=\"#7C818C\" stroke-linecap=\"round\" stroke-linejoin=\"round\" />\n </svg>\n </span>\n } @else {\n <svg width=\"24\" height=\"24\" viewBox=\"0 0 24 24\" fill=\"none\" xmlns=\"http://www.w3.org/2000/svg\">\n <path fill-rule=\"evenodd\" clip-rule=\"evenodd\"\n d=\"M19 12.5C19 14.985 15.866 17 12 17C8.134 17 5 14.985 5 12.5C5 10.015 8.134 8 12 8C15.866 8 19 10.015 19 12.5Z\"\n stroke=\"#7C818C\" stroke-linecap=\"round\" stroke-linejoin=\"round\" />\n <path fill-rule=\"evenodd\" clip-rule=\"evenodd\"\n d=\"M13.75 12.5001C13.7716 13.1394 13.4429 13.7397 12.8925 14.0657C12.3422 14.3918 11.6578 14.3918 11.1075 14.0657C10.5571 13.7397 10.2284 13.1394 10.25 12.5001C10.2284 11.8608 10.5571 11.2606 11.1075 10.9345C11.6578 10.6084 12.3422 10.6084 12.8925 10.9345C13.4429 11.2606 13.7716 11.8608 13.75 12.5001V12.5001Z\"\n stroke=\"#7C818C\" stroke-linecap=\"round\" stroke-linejoin=\"round\" />\n </svg>\n }\n </div>\n }@else {\n <div class=\"cell-attachment-container\">\n @if (drillable()) {\n <span class=\"drillable-value\" (click)=\"onDrillableClick($event)\">\n <svg width=\"24\" height=\"24\" viewBox=\"0 0 24 24\" fill=\"none\" xmlns=\"http://www.w3.org/2000/svg\">\n <path\n d=\"M14.67 11.053L10.68 15.315C10.3416 15.6932 9.85986 15.9119 9.35236 15.9178C8.84487 15.9237 8.35821 15.7162 8.01104 15.346C7.24412 14.5454 7.257 13.2788 8.04004 12.494L13.399 6.763C13.9902 6.10491 14.8315 5.72677 15.7161 5.72163C16.6006 5.71649 17.4463 6.08482 18.045 6.736C19.3222 8.14736 19.3131 10.2995 18.024 11.7L12.342 17.771C11.5334 18.5827 10.4265 19.0261 9.28113 18.9971C8.13575 18.9682 7.05268 18.4695 6.28604 17.618C4.5337 15.6414 4.57705 12.6549 6.38604 10.73L11.753 5\"\n stroke=\"#363B44\" stroke-linecap=\"round\" stroke-linejoin=\"round\" />\n </svg>\n </span>\n } @else {\n <svg width=\"24\" height=\"24\" viewBox=\"0 0 24 24\" fill=\"none\" xmlns=\"http://www.w3.org/2000/svg\">\n <path\n d=\"M14.67 11.053L10.68 15.315C10.3416 15.6932 9.85986 15.9119 9.35236 15.9178C8.84487 15.9237 8.35821 15.7162 8.01104 15.346C7.24412 14.5454 7.257 13.2788 8.04004 12.494L13.399 6.763C13.9902 6.10491 14.8315 5.72677 15.7161 5.72163C16.6006 5.71649 17.4463 6.08482 18.045 6.736C19.3222 8.14736 19.3131 10.2995 18.024 11.7L12.342 17.771C11.5334 18.5827 10.4265 19.0261 9.28113 18.9971C8.13575 18.9682 7.05268 18.4695 6.28604 17.618C4.5337 15.6414 4.57705 12.6549 6.38604 10.73L11.753 5\"\n stroke=\"#363B44\" stroke-linecap=\"round\" stroke-linejoin=\"round\" />\n </svg>\n }\n </div>\n }\n \n \n </div>\n }\n @default {\n <div class=\"cell-default-display\">\n @if (drillable()) {\n <span class=\"drillable-value\" (click)=\"onDrillableClick($event)\">{{value()}}</span>\n } @else {\n {{value()}}\n }\n </div>\n }\n }\n\n</div>\n\n<ng-template #prioritySelectMenu>\n <div class=\"dropdown-menu\" cdkMenu [style.min-width.px]=\"fieldSize()\" (closed)=\"singleOptionClosed()\">\n <div class=\"listbox-container\">\n <mat-form-field appearance=\"outline\" class=\"search-form-field\">\n <input matInput type=\"search\" placeholder=\"Search...\" [(ngModel)]=\"optionSearchText\">\n </mat-form-field>\n\n <ul cdkListbox [ngModel]=\"currentValue()\" (ngModelChange)=\"selectedSingleSelect($event)\"\n aria-labelledby=\"listbox-label\" class=\"listbox\">\n <li [cdkOption]=\"''\" class=\"listbox-option notext-overflow\">\n None\n </li>\n @for (option of filteredOptions(); track option) {\n <li [cdkOption]=\"option.value\" class=\"listbox-option notext-overflow cell-priority-content\">\n <div [innerHTML]=\"sanitize.bypassSecurityTrustHtml(option.icon)\"></div>\n <div>{{option.label}}</div>\n </li>\n }\n </ul>\n </div>\n </div>\n</ng-template>\n\n<ng-template cdkConnectedOverlay\n[cdkConnectedOverlayOrigin]=\"singleSelectTrigger\"\n[cdkConnectedOverlayOpen]=\"showOverlayMenu('dropdown_single_select')\"\n(detach)=\"isOpen = showOverlayMenu('dropdown_single_select')\">\n <div class=\"dropdown-menu\" cdkMenu [style.width.px]=\"currentColumnWidth()\" (closed)=\"singleOptionClosed()\">\n <div class=\"listbox-container\">\n <mat-form-field appearance=\"outline\" class=\"search-form-field\">\n <input matInput type=\"search\" placeholder=\"Search...\" (click)=\"$event.stopPropagation()\" [(ngModel)]=\"optionSearchText\">\n </mat-form-field>\n <ul cdkListbox [ngModel]=\"currentValue()\" (ngModelChange)=\"selectedSingleSelect($event)\"\n aria-labelledby=\"listbox-label\" class=\"listbox\">\n <li [cdkOption]=\"'None'\" class=\"listbox-option notext-overflow\">\n None\n </li>\n <li [cdkOption]=\"'option 1'\" class=\"listbox-option notext-overflow\">\n option 1\n </li>\n <li [cdkOption]=\"'option 2'\" class=\"listbox-option notext-overflow\">\n option 2\n </li>\n <li [cdkOption]=\"'option 3'\" class=\"listbox-option notext-overflow\">\n option 3\n </li>\n <li [cdkOption]=\"'option 4'\" class=\"listbox-option notext-overflow\">\n option 4\n </li><li [cdkOption]=\"'option 5'\" class=\"listbox-option notext-overflow\">\n option 5\n </li><li [cdkOption]=\"'option 6'\" class=\"listbox-option notext-overflow\">\n option 6\n </li><li [cdkOption]=\"'option 7'\" class=\"listbox-option notext-overflow\">\n option 7\n </li><li [cdkOption]=\"'option 1'\" class=\"listbox-option notext-overflow\">\n option 1\n </li><li [cdkOption]=\"'option 9'\" class=\"listbox-option notext-overflow\">\n option 9\n </li><li [cdkOption]=\"'option 10'\" class=\"listbox-option notext-overflow\">\n option 10\n </li><li [cdkOption]=\"'option 11'\" class=\"listbox-option notext-overflow\">\n option 11\n </li><li [cdkOption]=\"'option 12'\" class=\"listbox-option notext-overflow\">\n option 12\n </li><li [cdkOption]=\"'option 13'\" class=\"listbox-option notext-overflow\">\n option 13\n </li><li [cdkOption]=\"'option 14'\" class=\"listbox-option notext-overflow\">\n option 14\n </li><li [cdkOption]=\"'option 15'\" class=\"listbox-option notext-overflow\">\n option 15\n </li><li [cdkOption]=\"'option 16'\" class=\"listbox-option notext-overflow\">\n option 16\n </li><li [cdkOption]=\"'option 17'\" class=\"listbox-option notext-overflow\">\n option 17\n </li><li [cdkOption]=\"'option 18'\" class=\"listbox-option notext-overflow\">\n option 18\n </li>\n @for (option of filteredOptions(); track option) {\n <li [cdkOption]=\"option.value\" class=\"listbox-option notext-overflow\">\n {{option.label}}\n </li>\n }\n </ul>\n </div>\n </div>\n</ng-template>\n\n<ng-template \ncdkConnectedOverlay\n[cdkConnectedOverlayOrigin]=\"multiSelectTrigger\"\n[cdkConnectedOverlayOpen]=\"showOverlayMenu('dropdown_multi_select')\"\n(detach)=\"isOpen = showOverlayMenu('dropdown_multi_select')\">\n <div class=\"dropdown-menu\" cdkMenu [style.width.px]=\"currentColumnWidth()\" (closed)=\"singleOptionClosed()\">\n <div class=\"listbox-container\">\n <mat-form-field appearance=\"outline\" class=\"search-form-field\">\n <input matInput type=\"search\" placeholder=\"Search...\" [ngModel]=\"optionSearchText()\"\n (ngModelChange)=\"optionSearchText.set($event)\" (click)=\"$event.stopPropagation()\">\n </mat-form-field>\n \n <!-- Select All Checkbox -->\n <div class=\"select-all-container\" (click)=\"$event.stopPropagation()\">\n <mat-checkbox \n [checked]=\"isAllSelected()\" \n [indeterminate]=\"isIndeterminate()\"\n (change)=\"toggleSelectAll($event.checked)\">\n <span class=\"select-all-text\">Select All</span>\n </mat-checkbox>\n </div>\n \n <ul cdkListboxMultiple=\"true\" cdkListboxUseActiveDescendant cdkListbox [ngModel]=\"currentValue()\"\n (ngModelChange)=\"selectedMultiSelect($event)\" aria-labelledby=\"listbox-labssel\" class=\"listbox\" (click)=\"$event.stopPropagation()\">\n <li [cdkOption]=\"'None'\" class=\"multi-listbox-option notext-overflow\">\n <div class=\"option-content\">\n <mat-checkbox [checked]=\"isOptionSelected('None')\" (click)=\"$event.stopPropagation();appendMultiSelect('None')\"></mat-checkbox>\n <span class=\"option-text\">None</span>\n </div>\n </li>\n <li [cdkOption]=\"'option 1'\" class=\"multi-listbox-option notext-overflow\">\n <div class=\"option-content\">\n <mat-checkbox [checked]=\"isOptionSelected('option 1')\" (click)=\"$event.stopPropagation();appendMultiSelect('option 1')\"></mat-checkbox>\n <span class=\"option-text\">option 1</span>\n </div>\n </li>\n <li [cdkOption]=\"'option 2'\" class=\"multi-listbox-option notext-overflow\">\n <div class=\"option-content\">\n <mat-checkbox [checked]=\"isOptionSelected('option 2')\" (click)=\"$event.stopPropagation();appendMultiSelect('option 2')\"></mat-checkbox>\n <span class=\"option-text\">option 2</span>\n </div>\n </li>\n <li [cdkOption]=\"'option 3'\" class=\"multi-listbox-option notext-overflow\">\n <div class=\"option-content\">\n <mat-checkbox [checked]=\"isOptionSelected('option 3')\" (click)=\"$event.stopPropagation();appendMultiSelect('option 3')\"></mat-checkbox>\n <span class=\"option-text\">option 3</span>\n </div>\n </li>\n <li [cdkOption]=\"'option 4'\" class=\"multi-listbox-option notext-overflow\">\n <div class=\"option-content\">\n <mat-checkbox [checked]=\"isOptionSelected('option 4')\" (click)=\"$event.stopPropagation();appendMultiSelect('option 4')\"></mat-checkbox>\n <span class=\"option-text\">option 4</span>\n </div>\n </li>\n <li [cdkOption]=\"'option 5'\" class=\"multi-listbox-option notext-overflow\">\n <div class=\"option-content\">\n <mat-checkbox [checked]=\"isOptionSelected('option 5')\" (click)=\"$event.stopPropagation();appendMultiSelect('option 5')\"></mat-checkbox>\n <span class=\"option-text\">option 5</span>\n </div>\n </li>\n <li [cdkOption]=\"'option 6'\" class=\"multi-listbox-option notext-overflow\">\n <div class=\"option-content\">\n <mat-checkbox [checked]=\"isOptionSelected('option 6')\" (click)=\"$event.stopPropagation();appendMultiSelect('option 6')\"></mat-checkbox>\n <span class=\"option-text\">option 6</span>\n </div>\n </li>\n <li [cdkOption]=\"'option 7'\" class=\"multi-listbox-option notext-overflow\">\n <div class=\"option-content\">\n <mat-checkbox [checked]=\"isOptionSelected('option 7')\" (click)=\"$event.stopPropagation();appendMultiSelect('option 7')\"></mat-checkbox>\n <span class=\"option-text\">option 7</span>\n </div>\n </li>\n <li [cdkOption]=\"'option 8'\" class=\"multi-listbox-option notext-overflow\">\n <div class=\"option-content\">\n <mat-checkbox [checked]=\"isOptionSelected('option 8')\" (click)=\"$event.stopPropagation();appendMultiSelect('option 8')\"></mat-checkbox>\n <span class=\"option-text\">option 8</span>\n </div>\n </li>\n <li [cdkOption]=\"'option 9'\" class=\"multi-listbox-option notext-overflow\">\n <div class=\"option-content\">\n <mat-checkbox [checked]=\"isOptionSelected('option 9')\" (click)=\"$event.stopPropagation();appendMultiSelect('option 9')\"></mat-checkbox>\n <span class=\"option-text\">option 9</span>\n </div>\n </li>\n <li [cdkOption]=\"'option 10'\" class=\"multi-listbox-option notext-overflow\">\n <div class=\"option-content\">\n <mat-checkbox [checked]=\"isOptionSelected('option 10')\" (click)=\"$event.stopPropagation();appendMultiSelect('option 10')\"></mat-checkbox>\n <span class=\"option-text\">option 10</span>\n </div>\n </li>\n @for (option of filteredOptions(); track option) {\n <li [cdkOption]=\"option.value\" class=\"multi-listbox-option notext-overflow\">\n <div class=\"option-content\">\n <mat-checkbox [checked]=\"isOptionSelected(option.value)\" (click)=\"$event.stopPropagation();appendMultiSelect(option.value)\"></mat-checkbox>\n <span class=\"option-text\">{{option.label}}</span>\n </div>\n </li>\n }\n </ul>\n </div>\n </div>\n</ng-template>\n\n<ng-template cdkConnectedOverlay\n[cdkConnectedOverlayOrigin]=\"peopleTrigger\"\n[cdkConnectedOverlayOpen]=\"showOverlayMenu('people')\"\n(detach)=\"isOpen = showOverlayMenu('people')\">\n <div class=\"dropdown-menu\" cdkMenu [style.width.px]=\"currentColumnWidth()\" (closed)=\"singleOptionClosed()\">\n <div class=\"listbox-container\">\n <mat-form-field appearance=\"outline\" class=\"search-form-field\">\n <input matInput type=\"search\" placeholder=\"Search...\" [ngModel]=\"optionSearchText()\" (click)=\"$event.stopPropagation()\"\n (ngModelChange)=\"optionSearchText.set($event)\">\n </mat-form-field>\n <ul cdkListboxMultiple=\"true\" cdkListboxUseActiveDescendant cdkListbox [ngModel]=\"currentValue()\"\n (ngModelChange)=\"selectedMultiSelect($event)\" aria-labelledby=\"listbox-labssel\" class=\"listbox\">\n <li [cdkOption]=\"'person0@domain.com'\" class=\"multi-listbox-option notext-overflow\">\n <div class=\"option-content\">\n <div class=\"option-avatar\">{{ getInitials('person0@domain.com') }}</div>\n <span class=\"option-text\">person0@domain.com</span>\n @if (isOptionSelected('person0@domain.com')) {\n <span class=\"checkmark\">\u2713</span>\n }\n </div>\n </li>\n <li [cdkOption]=\"'person1@domain.com'\" class=\"multi-listbox-option notext-overflow\">\n <div class=\"option-content\">\n <div class=\"option-avatar\">{{ getInitials('person1@domain.com') }}</div>\n <span class=\"option-text\">person1@domain.com</span>\n @if (isOptionSelected('person1@domain.com')) {\n <span class=\"checkmark\">\u2713</span>\n }\n </div>\n </li>\n <li [cdkOption]=\"'person2@domain.com'\" class=\"multi-listbox-option notext-overflow\">\n <div class=\"option-content\">\n <div class=\"option-avatar\">{{ getInitials('person2@domain.com') }}</div>\n <span class=\"option-text\">person2@domain.com</span>\n @if (isOptionSelected('person2@domain.com')) {\n <span class=\"checkmark\">\u2713</span>\n }\n </div>\n </li>\n <li [cdkOption]=\"'person3@domain.com'\" class=\"multi-listbox-option notext-overflow\">\n <div class=\"option-content\">\n <div class=\"option-avatar\">{{ getInitials('person3@domain.com') }}</div>\n <span class=\"option-text\">person3@domain.com</span>\n @if (isOptionSelected('person3@domain.com')) {\n <span class=\"checkmark\">\u2713</span>\n }\n </div>\n </li>\n <li [cdkOption]=\"'person4@domain.com'\" class=\"multi-listbox-option notext-overflow\">\n <div class=\"option-content\">\n <div class=\"option-avatar\">{{ getInitials('person4@domain.com') }}</div>\n <span class=\"option-text\">person4@domain.com</span>\n @if (isOptionSelected('person4@domain.com')) {\n <span class=\"checkmark\">\u2713</span>\n }\n </div>\n </li>\n <li [cdkOption]=\"'person5@domain.com'\" class=\"multi-listbox-option notext-overflow\">\n <div class=\"option-content\">\n <div class=\"option-avatar\">{{ getInitials('person5@domain.com') }}</div>\n <span class=\"option-text\">person5@domain.com</span>\n @if (isOptionSelected('person5@domain.com')) {\n <span class=\"checkmark\">\u2713</span>\n }\n </div>\n </li>\n @for (option of filteredOptions(); track option) {\n <li [cdkOption]=\"option.value\" class=\"multi-listbox-option notext-overflow listbox-option_people\">\n <div class=\"option-content\">\n <div class=\"option-avatar\">{{ getInitials(option.value) }}</div>\n <span class=\"option-text\">{{option.label}}</span>\n @if (isOptionSelected(option.value)) {\n <span class=\"checkmark\">\u2713</span>\n }\n </div>\n </li>\n }\n </ul>\n </div>\n </div>\n</ng-template>\n\n<ng-template #statusSelectMenu>\n <div class=\"dropdown-menu status-dropdown-menu\" cdkMenu [style.min-width.px]=\"fieldSize()\"\n (closed)=\"singleOptionClosed()\">\n <div class=\"listbox-container\">\n <mat-form-field appearance=\"outline\" class=\"search-form-field\">\n <input matInput type=\"search\" placeholder=\"Search...\" [(ngModel)]=\"optionSearchText\">\n </mat-form-field>\n\n <ul cdkListbox [ngModel]=\"currentValue()\" (ngModelChange)=\"selectedSingleSelect($event)\"\n aria-labelledby=\"listbox-label\" class=\"listbox status-listbox\">\n <li [cdkOption]=\"''\" class=\"listbox-option notext-overflow\">\n None\n </li>\n @for (option of getStatusOptions(); track option.value) {\n <li [cdkOption]=\"option.value\" class=\"listbox-option status-option\"\n [style.background-color]=\"getStatusColor(option.value).background\"\n [style.border-color]=\"getStatusColor(option.value).border\" [style.color]=\"getStatusColor(option.value).text\">\n @if(option.color) {\n <span class=\"status-color-indicator\" [style.background-color]=\"option.color\"></span>\n }\n {{option.label}}\n </li>\n }\n </ul>\n </div>\n </div>\n</ng-template>\n\n<ng-template #tagSelectMenu>\n <div class=\"dropdown-menu tag-dropdown-menu\" [style.min-width.px]=\"fieldSize()\">\n <div class=\"listbox-container\">\n <mat-form-field appearance=\"outline\" class=\"search-form-field\">\n <input matInput type=\"search\" placeholder=\"Search or add tag...\" [ngModel]=\"optionSearchText()\"\n (ngModelChange)=\"optionSearchText.set($event)\" (keyup.enter)=\"addNewTag(optionSearchText())\"\n [style.min-width.px]=\"fieldSize()\">\n </mat-form-field>\n\n <ul cdkListboxMultiple=\"true\" cdkListbox [ngModel]=\"currentValue()\" (ngModelChange)=\"selectedMultiSelect($event)\"\n class=\"listbox tag-listbox\" [style.min-width.px]=\"fieldSize()\">\n <!-- Predefined tags -->\n @for (option of getTagOptions(); track option.value) {\n <li [cdkOption]=\"option.value\" class=\"listbox-option tag-option\">\n {{option.label}}\n </li>\n }\n\n <!-- New tag input -->\n\n\n\n </ul>\n\n </div>\n </div>\n</ng-template>\n\n<!-- Attachment Menu - Positioned relative to the cell -->\n<ng-template \ncdkConnectedOverlay\n[cdkConnectedOverlayOrigin]=\"attachmentTrigger\"\n[cdkConnectedOverlayOpen]=\"showOverlayMenu('attachment')\"\n(detach)=\"isOpen = showOverlayMenu('attachment')\">\n <div class=\"attachment-menu-overlay\" [style.width.px]=\"currentColumnWidth()\" [style.min-width.px]=\"300\">\n <div class=\"attachment-container\">\n <!-- Header Section -->\n <div class=\"attachment-header\">\n <span class=\"attachment-title\">Add or Drag files</span>\n <button mat-flat-button \n (click)=\"fileInput.click()\" \n class=\"attachment-upload-btn\">\n Upload\n </button>\n </div>\n \n <!-- Drop zone -->\n <div class=\"attachment-drop-zone\" \n (drop)=\"onFileDrop($event)\" \n (dragover)=\"onDragOver($event)\" \n (dragleave)=\"onDragLeave($event)\"\n (paste)=\"onPaste($event)\"\n (click)=\"fileInput.click()\"\n [class.dragging]=\"isDragging()\">\n <div class=\"attachment-drop-content\">\n <div class=\"attachment-drop-icon\">+</div>\n <div class=\"attachment-drop-text\">\n <div class=\"primary-text\">Click to upload or drag files here</div>\n <div class=\"secondary-text\">Support multiple files</div>\n </div>\n </div>\n </div>\n \n <!-- Hidden file input -->\n <input #fileInput \n type=\"file\" \n multiple \n (change)=\"fileInputChange($event)\" \n style=\"display: none;\">\n \n <!-- File list -->\n <div class=\"attachment-file-list\" *ngIf=\"currentValue()?.length > 0\">\n <div class=\"attachment-file-item\" *ngFor=\"let file of currentValue(); trackBy: trackByFile\">\n <div class=\"file-info\">\n <span class=\"file-icon\">\uD83D\uDCC4</span>\n <span class=\"file-name\">{{ file?.split('_')?.[2] || file }}</span>\n </div>\n <div class=\"file-actions\">\n <button class=\"action-btn\" (click)=\"viewFile(file)\" title=\"View\">\uD83D\uDC41\uFE0F</button>\n <button class=\"action-btn\" (click)=\"deleteFile(file)\" title=\"Delete\">\uD83D\uDDD1\uFE0F</button>\n </div>\n </div>\n </div>\n </div>\n </div>\n</ng-template>", styles: [":host{display:block;height:100%;width:100%;position:relative;overflow:hidden!important}.container{height:calc(100% - 2px);width:calc(100% - 2px);position:relative!important;overflow:hidden!important;max-width:100%!important;box-sizing:border-box!important}.container .cell-display-text{text-overflow:ellipsis!important;overflow:hidden!important;white-space:nowrap!important;max-width:100%!important;width:100%!important;display:block!important}.inputRef{height:inherit;width:inherit;border:none}.inputRef:focus{outline:none}.cell-checkbox{text-align:center}.cell-form-field{width:100%!important;height:100%!important;padding:0!important;margin:0!important}.cell-form-field .mat-mdc-form-field-outline,.cell-form-field .mat-mdc-form-field-subscript-wrapper,.cell-form-field .mat-mdc-form-field-text-suffix{display:none!important}.cell-form-field .mat-mdc-form-field-wrapper,.cell-form-field .mat-mdc-form-field-wrapper .mat-mdc-form-field-flex{width:100%!important;height:100%!important;padding:0!important;margin:0!important}.cell-form-field .mat-mdc-form-field-wrapper .mat-mdc-form-field-flex .mat-mdc-form-field-infix{width:100%!important;height:100%!important;padding:0!important;margin:0!important;min-height:auto!important;border-top:none!important}.cell-form-field input[matInput]{width:100%!important;height:100%!important;padding:2px!important;margin:0!important;border:none!important;outline:none!important;background:transparent!important;font-size:14px!important;line-height:normal!important;box-sizing:border-box!important;max-width:none!important;min-width:0!important;flex:none!important}.dropdown-menu{width:100%}.attachment-menu,.dropdown-menu,.dropdown-menu.attachment-menu,[cdkMenu].attachment-menu{background:var(--grid-surface, #fef7ff)!important;background-color:var(--grid-surface, #fef7ff)!important;border-radius:8px!important;box-shadow:var(--grid-elevation-2, 0px 1px 2px 0px rgba(0, 0, 0, .3), 0px 2px 6px 2px rgba(0, 0, 0, .15))!important;border:1px solid var(--grid-outline-variant, #cac4d0)!important}.attachment-menu.cdk-overlay-pane,.dropdown-menu.cdk-overlay-pane,.dropdown-menu.attachment-menu.cdk-overlay-pane,[cdkMenu].attachment-menu.cdk-overlay-pane{background:var(--grid-surface)!important;background-color:var(--grid-surface)!important}.attachment-menu .attachment-container,.dropdown-menu .attachment-container,.dropdown-menu.attachment-menu .attachment-container,[cdkMenu].attachment-menu .attachment-container{padding:4px;background:var(--grid-surface, #fef7ff);border-radius:8px}.attachment-menu .attachment-header,.dropdown-menu .attachment-header,.dropdown-menu.attachment-menu .attachment-header,[cdkMenu].attachment-menu .attachment-header{display:flex!important;justify-content:space-between!important;align-items:center!important;margin-bottom:24px!important;padding:0!important}.attachment-menu .attachment-header .attachment-title,.dropdown-menu .attachment-header .attachment-title,.dropdown-menu.attachment-menu .attachment-header .attachment-title,[cdkMenu].attachment-menu .attachment-header .attachment-title{font-family:var(--grid-font-family, \"Poppins\")!important;font-size:16px!important;font-weight:500!important;color:var(--grid-on-surface, #1d1b20)!important;margin:0!important}.attachment-menu .attachment-header .attachment-upload-btn,.attachment-menu .attachment-header .attachment-upload-btn.mat-mdc-raised-button,.attachment-menu .attachment-header .attachment-upload-btn.mat-mdc-button,.dropdown-menu .attachment-header .attachment-upload-btn,.dropdown-menu .attachment-header .attachment-upload-btn.mat-mdc-raised-button,.dropdown-menu .attachment-header .attachment-upload-btn.mat-mdc-button,.dropdown-menu.attachment-menu .attachment-header .attachment-upload-btn,.dropdown-menu.attachment-menu .attachment-header .attachment-upload-btn.mat-mdc-raised-button,.dropdown-menu.attachment-menu .attachment-header .attachment-upload-btn.mat-mdc-button,[cdkMenu].attachment-menu .attachment-header .attachment-upload-btn,[cdkMenu].attachment-menu .attachment-header .attachment-upload-btn.mat-mdc-raised-button,[cdkMenu].attachment-menu .attachment-header .attachment-upload-btn.mat-mdc-button{background:var(--grid-primary, #6750a4)!important;background-color:var(--grid-primary, #6750a4)!important;color:var(--grid-on-primary, #ffffff)!important;font-family:var(--grid-font-family, \"Poppins\")!important;font-weight:500!important;padding:8px 20px!important;border-radius:6px!important;border:none!important;cursor:pointer!important;font-size:14px!important;letter-spacing:.5px!important;box-shadow:var(--grid-elevation-1, 0px 1px 2px 0px rgba(0, 0, 0, .3), 0px 1px 3px 1px rgba(0, 0, 0, .15))!important;transition:background-color .2s ease!important}.attachment-menu .attachment-header .attachment-upload-btn .mdc-button__label,.attachment-menu .attachment-header .attachment-upload-btn.mat-mdc-raised-button .mdc-button__label,.attachment-menu .attachment-header .attachment-upload-btn.mat-mdc-button .mdc-button__label,.dropdown-menu .attachment-header .attachment-upload-btn .mdc-button__label,.dropdown-menu .attachment-header .attachment-upload-btn.mat-mdc-raised-button .mdc-button__label,.dropdown-menu .attachment-header .attachment-upload-btn.mat-mdc-button .mdc-button__label,.dropdown-menu.attachment-menu .attachment-header .attachment-upload-btn .mdc-button__label,.dropdown-menu.attachment-menu .attachment-header .attachment-upload-btn.mat-mdc-raised-button .mdc-button__label,.dropdown-menu.attachment-menu .attachment-header .attachment-upload-btn.mat-mdc-button .mdc-button__label,[cdkMenu].attachment-menu .attachment-header .attachment-upload-btn .mdc-button__label,[cdkMenu].attachment-menu .attachment-header .attachment-upload-btn.mat-mdc-raised-button .mdc-button__label,[cdkMenu].attachment-menu .attachment-header .attachment-upload-btn.mat-mdc-button .mdc-button__label{color:var(--grid-on-primary, #ffffff)!important}.attachment-menu .attachment-header .attachment-upload-btn:hover,.attachment-menu .attachment-header .attachment-upload-btn.mat-mdc-raised-button:hover,.attachment-menu .attachment-header .attachment-upload-btn.mat-mdc-button:hover,.dropdown-menu .attachment-header .attachment-upload-btn:hover,.dropdown-menu .attachment-header .attachment-upload-btn.mat-mdc-raised-button:hover,.dropdown-menu .attachment-header .attachment-upload-btn.mat-mdc-button:hover,.dropdown-menu.attachment-menu .attachment-header .attachment-upload-btn:hover,.dropdown-menu.attachment-menu .attachment-header .attachment-upload-btn.mat-mdc-raised-button:hover,.dropdown-menu.attachment-menu .attachment-header .attachment-upload-btn.mat-mdc-button:hover,[cdkMenu].attachment-menu .attachment-header .attachment-upload-btn:hover,[cdkMenu].attachment-menu .attachment-header .attachment-upload-btn.mat-mdc-raised-button:hover,[cdkMenu].attachment-menu .attachment-header .attachment-upload-btn.mat-mdc-button:hover{opacity:.9!important}.attachment-menu .attachment-header .attachment-upload-btn:before,.attachment-menu .attachment-header .attachment-upload-btn:after,.attachment-menu .attachment-header .attachment-upload-btn.mat-mdc-raised-button:before,.attachment-menu .attachment-header .attachment-upload-btn.mat-mdc-raised-button:after,.attachment-menu .attachment-header .attachment-upload-btn.mat-mdc-button:before,.attachment-menu .attachment-header .attachment-upload-btn.mat-mdc-button:after,.dropdown-menu .attachment-header .attachment-upload-btn:before,.dropdown-menu .attachment-header .attachment-upload-btn:after,.dropdown-menu .attachment-header .attachment-upload-btn.mat-mdc-raised-button:before,.dropdown-menu .attachment-header .attachment-upload-btn.mat-mdc-raised-button:after,.dropdown-menu .attachment-header .attachment-upload-btn.mat-mdc-button:before,.dropdown-menu .attachment-header .attachment-upload-btn.mat-mdc-button:after,.dropdown-menu.attachment-menu .attachment-header .attachment-upload-btn:before,.dropdown-menu.attachment-menu .attachment-header .attachment-upload-btn:after,.dropdown-menu.attachment-menu .attachment-header .attachment-upload-btn.mat-mdc-raised-button:before,.dropdown-menu.attachment-menu .attachment-header .attachment-upload-btn.mat-mdc-raised-button:after,.dropdown-menu.attachment-menu .attachment-header .attachment-upload-btn.mat-mdc-button:before,.dropdown-menu.attachment-menu .attachment-header .attachment-upload-btn.mat-mdc-button:after,[cdkMenu].attachment-menu .attachment-header .attachment-upload-btn:before,[cdkMenu].attachment-menu .attachment-header .attachment-upload-btn:after,[cdkMenu].attachment-menu .attachment-header .attachment-upload-btn.mat-mdc-raised-button:before,[cdkMenu].attachment-menu .attachment-header .attachment-upload-btn.mat-mdc-raised-button:after,[cdkMenu].attachment-menu .attachment-header .attachment-upload-btn.mat-mdc-button:before,[cdkMenu].attachment-menu .attachment-header .attachment-upload-btn.mat-mdc-button:after{display:none!important}.attachment-menu .attachment-drop-zone,.dropdown-menu .attachment-drop-zone,.dropdown-menu.attachment-menu .attachment-drop-zone,[cdkMenu].attachment-menu .attachment-drop-zone{border:2px dashed var(--grid-outline-variant, #cac4d0)!important;border-radius:8px!important;padding:10px!important;text-align:center!important;cursor:pointer!important;transition:all .3s ease!important;background:var(--grid-surface-variant, #e7e0ec)!important;margin:16px 0!important}.attachment-menu .attachment-drop-zone:hover,.dropdown-menu .attachment-drop-zone:hover,.dropdown-menu.attachment-menu .attachment-drop-zone:hover,[cdkMenu].attachment-menu .attachment-drop-zone:hover{border-color:var(--grid-primary, #6750a4)!important;background:var(--grid-surface-container, #f3edf7)!important}.attachment-menu .attachment-drop-zone.dragging,.dropdown-menu .attachment-drop-zone.dragging,.dropdown-menu.attachment-menu .attachment-drop-zone.dragging,[cdkMenu].attachment-menu .attachment-drop-zone.dragging{border-color:var(--grid-primary, #6750a4)!important;background:var(--grid-surface-container, #f3edf7)!important;transform:scale(1.01)!important}.attachment-menu .attachment-drop-zone .attachment-drop-content,.dropdown-menu .attachment-drop-zone .attachment-drop-content,.dropdown-menu.attachment-menu .attachment-drop-zone .attachment-drop-content,[cdkMenu].attachment-menu .attachment-drop-zone .attachment-drop-content{display:flex!important;flex-direction:column!important;align-items:center!important;gap:12px!important}.attachment-menu .attachment-drop-zone .attachment-drop-icon,.dropdown-menu .attachment-drop-zone .attachment-drop-icon,.dropdown-menu.attachment-menu .attachment-drop-zone .attachment-drop-icon,[cdkMenu].attachment-menu .attachment-drop-zone .attachment-drop-icon{font-size:48px!important;color:var(--grid-primary, #6750a4)!important;font-weight:300!important;line-height:1!important}.attachment-menu .attachment-drop-zone .attachment-drop-text .primary-text,.dropdown-menu .attachment-drop-zone .attachment-drop-text .primary-text,.dropdown-menu.attachment-menu .attachment-drop-zone .attachment-drop-text .primary-text,[cdkMenu].attachment-menu .attachment-drop-zone .attachment-drop-text .primary-text{font-family:var(--grid-font-family, \"Poppins\")!important;font-size:14px!important;color:var(--grid-on-surface-variant, #49454f)!important;font-weight:400!important;margin:0!important}.attachment-menu .attachment-drop-zone .attachment-drop-text .secondary-text,.dropdown-menu .attachment-drop-zone .attachment-drop-text .secondary-text,.dropdown-menu.attachment-menu .attachment-drop-zone .attachment-drop-text .secondary-text,[cdkMenu].attachment-menu .attachment-drop-zone .attachment-drop-text .secondary-text{font-family:var(--grid-font-family, \"Poppins\")!important;font-size:12px!important;color:var(--grid-on-surface-variant, #49454f)!important;margin-top:4px!important;display:block!important}.attachment-menu .attachment-file-list,.dropdown-menu .attachment-file-list,.dropdown-menu.attachment-menu .attachment-file-list,[cdkMenu].attachment-menu .attachment-file-list{display:block!important;margin-top:16px!important;border-top:1px solid var(--grid-outline-variant, #cac4d0)!important;padding-top:16px!important}.attachment-menu .attachment-file-list .attachment-file-item,.dropdown-menu .attachment-file-list .attachment-file-item,.dropdown-menu.attachment-menu .attachment-file-list .attachment-file-item,[cdkMenu].attachment-menu .attachment-file-list .attachment-file-item{display:flex!important;align-items:center!important;justify-content:space-between!important;padding:8px 0!important;border-bottom:1px solid var(--grid-outline-variant, #cac4d0)!important}.attachment-menu .attachment-file-list .attachment-file-item:last-child,.dropdown-menu .attachment-file-list .attachment-file-item:last-child,.dropdown-menu.attachment-menu .attachment-file-list .attachment-file-item:last-child,[cdkMenu].attachment-menu .attachment-file-list .attachment-file-item:last-child{border-bottom:none!important}.attachment-menu .attachment-file-list .attachment-file-item .file-info,.dropdown-menu .attachment-file-list .attachment-file-item .file-info,.dropdown-menu.attachment-menu .attachment-file-list .attachment-file-item .file-info,[cdkMenu].attachment-menu .attachment-file-list .attachment-file-item .file-info{display:flex!important;align-items:center!important;gap:8px!important;flex:1!important}.attachment-menu .attachment-file-list .attachment-file-item .file-info .file-icon,.dropdown-menu .attachment-file-list .attachment-file-item .file-info .file-icon,.dropdown-menu.attachment-menu .attachment-file-list .attachment-file-item .file-info .file-icon,[cdkMenu].attachment-menu .attachment-file-list .attachment-file-item .file-info .file-icon{font-size:16px!important;color:var(--grid-on-surface-variant, #49454f)!important}.attachment-menu .attachment-file-list .attachment-file-item .file-info .file-name,.dropdown-menu .attachment-file-list .attachment-file-item .file-info .file-name,.dropdown-menu.attachment-menu .attachment-file-list .attachment-file-item .file-info .file-name,[cdkMenu].attachment-menu .attachment-file-list .attachment-file-item .file-info .file-name{font-family:var(--grid-font-family, \"Poppins\")!important;font-size:14px!important;color:var(--grid-on-surface, #1d1b20)!important;word-break:break-word!important}.attachment-menu .attachment-file-list .attachment-file-item .file-actions,.dropdown-menu .attachment-file-list .attachment-file-item .file-actions,.dropdown-menu.attachment-menu .attachment-file-list .attachment-file-item .file-actions,[cdkMenu].attachment-menu .attachment-file-list .attachment-file-item .file-actions{display:flex!important;gap:4px!important}.attachment-menu .attachment-file-list .attachment-file-item .file-actions .action-btn,.dropdown-menu .attachment-file-list .attachment-file-item .file-actions .action-btn,.dropdown-menu.attachment-menu .attachment-file-list .attachment-file-item .file-actions .action-btn,[cdkMenu].attachment-menu .attachment-file-list .attachment-file-item .file-actions .action-btn{width:24px!important;height:24px!important;border:none!important;background:transparent!important;cursor:pointer!important;border-radius:4px!important;font-size:14px!important;color:var(--grid-on-surface-variant, #49454f)!important;transition:background-color .2s ease!important}.attachment-menu .attachment-file-list .attachment-file-item .file-actions .action-btn:hover,.dropdown-menu .attachment-file-list .attachment-file-item .file-actions .action-btn:hover,.dropdown-menu.attachment-menu .attachment-file-list .attachment-file-item .file-actions .action-btn:hover,[cdkMenu].attachment-menu .attachment-file-list .attachment-file-item .file-actions .action-btn:hover{background:var(--grid-surface-container, #f3edf7)!important}.cdk-overlay-container .cdk-overlay-pane .attachment-menu,.cdk-overlay-container .attachment-menu,.cdk-overlay-pane .attachment-menu{background:var(--grid-surface, #fef7ff)!important;background-color:var(--grid-surface, #fef7ff)!important;border:1px solid var(--grid-outline-variant, #cac4d0)!important;box-shadow:var(--grid-elevation-2, 0px 1px 2px 0px rgba(0, 0, 0, .3), 0px 2px 6px 2px rgba(0, 0, 0, .15))!important;border-radius:8px!important;font-family:var(--grid-font-family, \"Poppins\")!important}.cdk-overlay-container .cdk-overlay-pane .attachment-menu .attachment-container,.cdk-overlay-container .attachment-menu .attachment-container,.cdk-overlay-pane .attachment-menu .attachment-container{padding:4px;background:var(--grid-surface, #fef7ff)!important}.cdk-overlay-container .cdk-overlay-pane .attachment-menu .attachment-header,.cdk-overlay-container .attachment-menu .attachment-header,.cdk-overlay-pane .attachment-menu .attachment-header{display:flex!important;justify-content:space-between!important;align-items:center!important;margin-bottom:24px!important;padding:0!important}.cdk-overlay-container .cdk-overlay-pane .attachment-menu .attachment-header .attachment-title,.cdk-overlay-container .attachment-menu .attachment-header .attachment-title,.cdk-overlay-pane .attachment-menu .attachment-header .attachment-title{font-family:var(--grid-font-family, \"Poppins\")!important;font-size:16px!important;font-weight:500!important;color:var(--grid-on-surface, #1d1b20)!important;margin:0!important}.cdk-overlay-container .cdk-overlay-pane .attachment-menu .attachment-header .attachment-upload-btn,.cdk-overlay-container .attachment-menu .attachment-header .attachment-upload-btn,.cdk-overlay-pane .attachment-menu .attachment-header .attachment-upload-btn{background:var(--grid-primary, #6750a4)!important;background-color:var(--grid-primary, #6750a4)!important;color:var(--grid-on-primary, #ffffff)!important;font-family:var(--grid-font-family, \"Poppins\")!important;font-weight:500!important;padding:8px 20px!important;border-radius:6px!important;border:none!important;cursor:pointer!important;font-size:14px!important;letter-spacing:.5px!important;box-shadow:var(--grid-elevation-1, 0px 1px 2px 0px rgba(0, 0, 0, .3), 0px 1px 3px 1px rgba(0, 0, 0, .15))!important;transition:background-color .2s ease!important}.cdk-overlay-container .cdk-overlay-pane .attachment-menu .attachment-header .attachment-upload-btn:hover,.cdk-overlay-container .attachment-menu .attachment-header .attachment-upload-btn:hover,.cdk-overlay-pane .attachment-menu .attachment-header .attachment-upload-btn:hover{opacity:.9!important}.cdk-overlay-container .cdk-overlay-pane .attachment-menu .attachment-header .attachment-upload-btn .mdc-button__label,.cdk-overlay-container .attachment-menu .attachment-header .attachment-upload-btn .mdc-button__label,.cdk-overlay-pane .attachment-menu .attachment-header .attachment-upload-btn .mdc-button__label{color:var(--grid-on-primary, #ffffff)!important}.cdk-overlay-container .cdk-overlay-pane .attachment-menu .attachment-drop-zone,.cdk-overlay-container .attachment-menu .attachment-drop-zone,.cdk-overlay-pane .attachment-menu .attachment-drop-zone{border:2px dashed var(--grid-outline-variant, #cac4d0)!important;border-radius:8px!important;padding:40px 20px!important;text-align:center!important;cursor:pointer!important;transition:all .3s ease!important;background:var(--grid-surface-variant, #e7e0ec)!important;margin:16px 0!important}.cdk-overlay-container .cdk-overlay-pane .attachment-menu .attachment-drop-zone:hover,.cdk-overlay-container .attachment-menu .attachment-drop-zone:hover,.cdk-overlay-pane .attachment-menu .attachment-drop-zone:hover{border-color:var(--grid-primary, #6750a4)!important;background:var(--grid-surface-container, #f3edf7)!important}.cdk-overlay-container .cdk-overlay-pane .attachment-menu .attachment-drop-zone.dragging,.cdk-overlay-container .attachment-menu .attachment-drop-zone.dragging,.cdk-overlay-pane .attachment-menu .attachment-drop-zone.dragging{border-color:var(--grid-primary, #6750a4)!important;background:var(--grid-surface-container, #f3edf7)!important;transform:scale(1.01)!important}.cdk-overlay-container .cdk-overlay-pane .attachment-menu .attachment-drop-zone .attachment-drop-content,.cdk-overlay-container .attachment-menu .attachment-drop-zone .attachment-drop-content,.cdk-overlay-pane .attachment-menu .attachment-drop-zone .attachment-drop-content{display:flex!important;flex-direction:column!important;align-items:center!important;gap:12px!important}.cdk-overlay-container .cdk-overlay-pane .attachment-menu .attachment-drop-zone .attachment-drop-icon,.cdk-overlay-container .attachment-menu .attachment-drop-zone .attachment-drop-icon,.cdk-overlay-pane .attachment-menu .attachment-drop-zone .attachment-drop-icon{font-size:48px!important;color:var(--grid-primary, #6750a4)!important;font-weight:300!important;line-height:1!important}.cdk-overlay-container .cdk-overlay-pane .attachment-menu .attachment-drop-zone .attachment-drop-text .primary-text,.cdk-overlay-container .attachment-menu .attachment-drop-zone .attachment-drop-text .primary-text,.cdk-overlay-pane .attachment-menu .attachment-drop-zone .attachment-drop-text .primary-text{font-family:var(--grid-font-family, \"Poppins\")!important;font-size:14px!important;color:var(--grid-on-surface-variant, #49454f)!important;font-weight:400!important;margin:0!important}.cdk-overlay-container .cdk-overlay-pane .attachment-menu .attachment-drop-zone .attachment-drop-text .secondary-text,.cdk-overlay-container .attachment-menu .attachment-drop-zone .attachment-drop-text .secondary-text,.cdk-overlay-pane .attachment-menu .attachment-drop-zone .attachment-drop-text .secondary-text{font-family:var(--grid-font-family, \"Poppins\")!important;font-size:12px!important;color:var(--grid-on-surface-variant, #49454f)!important;margin-top:4px!important;display:block!important}.cdk-overlay-container .cdk-overlay-pane .attachment-menu .attachment-file-list,.cdk-overlay-container .attachment-menu .attachment-file-list,.cdk-overlay-pane .attachment-menu .attachment-file-list{display:block!important;margin-top:16px!important;border-top:1px solid var(--grid-outline-variant, #cac4d0)!important;padding-top:16px!important}.cdk-overlay-container .cdk-overlay-pane .attachment-menu .attachment-file-list .attachment-file-item,.cdk-overlay-container .attachment-menu .attachment-file-list .attachment-file-item,.cdk-overlay-pane .attachment-menu .attachment-file-list .attachment-file-item{display:flex!important;align-items:center!important;justify-content:space-between!important;padding:8px 0!important;border-bottom:1px solid var(--grid-outline-variant, #cac4d0)!important}.cdk-overlay-container .cdk-overlay-pane .attachment-menu .attachment-file-list .attachment-file-item:last-child,.cdk-overlay-container .attachment-menu .attachment-file-list .attachment-file-item:last-child,.cdk-overlay-pane .attachment-menu .attachment-file-list .attachment-file-item:last-child{border-bottom:none!important}.cdk-overlay-container .cdk-overlay-pane .attachment-menu .attachment-file-list .attachment-file-item .file-info,.cdk-overlay-container .attachment-menu .attachment-file-list .attachment-file-item .file-info,.cdk-overlay-pane .attachment-menu .attachment-file-list .attachment-file-item .file-info{display:flex!important;align-items:center!important;gap:8px!important;flex:1!important}.cdk-overlay-container .cdk-overlay-pane .attachment-menu .attachment-file-list .attachment-file-item .file-info .file-icon,.cdk-overlay-container .attachment-menu .attachment-file-list .attachment-file-item .file-info .file-icon,.cdk-overlay-pane .attachment-menu .attachment-file-list .attachment-file-item .file-info .file-icon{font-size:16px!important;color:var(--grid-on-surface-variant, #49454f)!important}.cdk-overlay-container .cdk-overlay-pane .attachment-menu .attachment-file-list .attachment-file-item .file-info .file-name,.cdk-overlay-container .attachment-menu .attachment-file-list .attachment-file-item .file-info .file-name,.cdk-overlay-pane .attachment-menu .attachment-file-list .attachment-file-item .file-info .file-name{font-family:var(--grid-font-family, \"Poppins\")!important;font-size:14px!important;color:var(--grid-on-surface, #1d1b20)!important;word-break:break-word!important}.cdk-overlay-container .cdk-overlay-pane .attachment-menu .attachment-file-list .attachment-file-item .file-actions,.cdk-overlay-container .attachment-menu .attachment-file-list .attachment-file-item .file-actions,.cdk-overlay-pane .attachment-menu .attachment-file-list .attachment-file-item .file-actions{display:flex!important;gap:4px!important}.cdk-overlay-container .cdk-overlay-pane .attachment-menu .attachment-file-list .attachment-file-item .file-actions .action-btn,.cdk-overlay-container .attachment-menu .attachment-file-list .attachment-file-item .file-actions .action-btn,.cdk-overlay-pane .attachment-menu .attachment-file-list .attachment-file-item .file-actions .action-btn{width:24px!important;height:24px!important;border:none!important;background:transparent!important;cursor:pointer!important;border-radius:4px!important;font-size:14px!important;color:var(--grid-on-surface-variant, #49454f)!important;transition:background-color .2s ease!important}.cdk-overlay-container .cdk-overlay-pane .attachment-menu .attachment-file-list .attachment-file-item .file-actions .action-btn:hover,.cdk-overlay-container .attachment-menu .attachment-file-list .attachment-file-item .file-actions .action-btn:hover,.cdk-overlay-pane .attachment-menu .attachment-file-list .attachment-file-item .file-actions .action-btn:hover{background:var(--grid-surface-container, #f3edf7)!important}.cdk-overlay-container .cdk-overlay-pane .attachment-menu,.cdk-overlay-container .attachment-menu{background:var(--grid-surface, #fef7ff)!important;background-color:var(--grid-surface, #fef7ff)!important;border:1px solid var(--grid-outline-variant, #cac4d0)!important;box-shadow:var(--grid-elevation-2, 0px 1px 2px 0px rgba(0, 0, 0, .3), 0px 2px 6px 2px rgba(0, 0, 0, .15))!important}.attachment-cell-wrapper{position:relative;display:block;width:100%;height:100%;text-align:center;overflow:visible}.attachment-menu-overlay{position:absolute;z-index:1000;background:var(--grid-surface, #fef7ff);border:1px solid var(--grid-outline-variant, #cac4d0);box-shadow:var(--grid-elevation-2, 0px 1px 2px 0px rgba(0, 0, 0, .3), 0px 2px 6px 2px rgba(0, 0, 0, .15));border-radius:8px;font-family:var(--grid-font-family, \"Poppins\");color:var(--grid-on-surface, #1d1b20);overflow:visible;z-index:9999}.attachment-menu-overlay .attachment-container{padding:16px;background:var(--grid-surface, #fef7ff)}.attachment-menu-overlay .attachment-header{display:flex;justify-content:space-between;align-items:center;margin-bottom:24px;padding:0}.attachment-menu-overlay .attachment-header .attachment-title{font-family:var(--grid-font-family, \"Poppins\");font-size:16px;font-weight:500;color:var(--grid-on-surface, #1d1b20);margin:0}.attachment-menu-overlay .attachment-header .attachment-upload-btn{background:var(--grid-primary, #6750a4);background-color:var(--grid-primary, #6750a4);color:var(--grid-on-primary, #ffffff);font-family:var(--grid-font-family, \"Poppins\");font-weight:500;padding:8px 20px;border-radius:6px;border:none;cursor:pointer;font-size:14px;letter-spacing:.5px;box-shadow:var(--grid-elevation-1, 0px 1px 2px 0px rgba(0, 0, 0, .3), 0px 1px 3px 1px rgba(0, 0, 0, .15));transition:background-color .2s ease}.attachment-menu-overlay .attachment-header .attachment-upload-btn:hover{opacity:.9}.attachment-menu-overlay .attachment-header .attachment-upload-btn .mdc-button__label{color:var(--grid-on-primary, #ffffff)}.attachment-menu-overlay .attachment-drop-zone{border:2px dashed var(--grid-outline-variant, #cac4d0);border-radius:8px;padding:10px;text-align:center;cursor:pointer;transition:all .3s ease;background:var(--grid-surface-variant, #e7e0ec);margin:16px 0}.attachment-menu-overlay .attachment-drop-zone:hover{border-color:var(--grid-primary, #6750a4);background:var(--grid-surface-container, #f3edf7)}.attachment-menu-overlay .attachment-drop-zone.dragging{border-color:var(--grid-primary, #6750a4);background:var(--grid-surface-container, #f3edf7);transform:scale(1.01)}.attachment-menu-overlay .attachment-drop-zone .attachment-drop-content{display:flex;flex-direction:column;align-items:center;gap:12px}.attachment-menu-overlay .attachment-drop-zone .attachment-drop-icon{font-size:48px;color:var(--grid-primary, #6750a4);font-weight:300;line-height:1}.attachment-menu-overlay .attachment-drop-zone .attachment-drop-text .primary-text{font-family:var(--grid-font-family, \"Poppins\");font-size:14px;color:var(--grid-on-surface-variant, #49454f);font-weight:400;margin:0}.attachment-menu-overlay .attachment-drop-zone .attachment-drop-text .secondary-text{font-family:var(--grid-font-family, \"Poppins\");font-size:12px;color:var(--grid-on-surface-variant, #49454f);margin-top:4px;display:block}.attachment-menu-overlay .attachment-file-list{display:block;margin-top:16px;border-top:1px solid var(--grid-outline-variant, #cac4d0);padding-top:16px}.attachment-menu-overlay .attachment-file-list .attachment-file-item{display:flex;align-items:center;justify-content:space-between;padding:8px 0;border-bottom:1px solid var(--grid-outline-variant, #cac4d0)}.attachment-menu-overlay .attachment-file-list .attachment-file-item:last-child{border-bottom:none}.attachment-menu-overlay .attachment-file-list .attachment-file-item .file-info{display:flex;align-items:center;gap:8px;flex:1}.attachment-menu-overlay .attachment-file-list .attachment-file-item .file-info .file-icon{font-size:16px;color:var(--grid-on-surface-variant, #49454f)}.attachment-menu-overlay .attachment-file-list .attachment-file-item .file-info .file-name{font-family:var(--grid-font-family, \"Poppins\");font-size:14px;color:var(--grid-on-surface, #1d1b20);word-break:break-word}.attachment-menu-overlay .attachment-file-list .attachment-file-item .file-actions{display:flex;gap:4px}.attachment-menu-overlay .attachment-file-list .attachment-file-item .file-actions .action-btn{width:24px;height:24px;border:none;background:transparent;cursor:pointer;border-radius:4px;font-size:14px;color:var(--grid-on-surface-variant, #49454f);transition:background-color .2s ease}.attachment-menu-overlay .attachment-file-list .attachment-file-item .file-actions .action-btn:hover{background:var(--grid-surface-container, #f3edf7)}.cdk-overlay-container .cdk-overlay-pane .dropdown-menu,.cdk-overlay-container .dropdown-menu,.cdk-overlay-pane .dropdown-menu{background:var(--grid-surface, #fef7ff)!important;background-color:var(--grid-surface, #fef7ff)!important;border:1px solid var(--grid-outline-variant, #cac4d0)!important;box-shadow:var(--grid-elevation-2, 0px 1px 2px 0px rgba(0, 0, 0, .3), 0px 2px 6px 2px rgba(0, 0, 0, .15))!important;border-radius:8px!important;font-family:var(--grid-font-family, \"Poppins\")!important;color:var(--grid-on-surface, #1d1b20)!important;overflow:hidden!important;box-sizing:border-box!important}.cdk-overlay-container .cdk-overlay-pane .dropdown-menu .listbox-container,.cdk-overlay-container .dropdown-menu .listbox-container,.cdk-overlay-pane .dropdown-menu .listbox-container{padding:8px!important;background:var(--grid-surface, #fef7ff)!important}.cdk-overlay-container .cdk-overlay-pane .dropdown-menu .search-form-field,.cdk-overlay-container .dropdown-menu .search-form-field,.cdk-overlay-pane .dropdown-menu .search-form-field{width:100%!important;margin-bottom:8px!important}.cdk-overlay-container .cdk-overlay-pane .dropdown-menu .search-form-field .mat-mdc-form-field,.cdk-overlay-container .dropdown-menu .search-form-field .mat-mdc-form-field,.cdk-overlay-pane .dropdown-menu .search-form-field .mat-mdc-form-field{width:100%!important}.cdk-overlay-container .cdk-overlay-pane .dropdown-menu .search-form-field .mat-mdc-text-field-wrapper,.cdk-overlay-container .dropdown-menu .search-form-field .mat-mdc-text-field-wrapper,.cdk-overlay-pane .dropdown-menu .search-form-field .mat-mdc-text-field-wrapper{background:var(--grid-surface, #fffbfe)!important;border-radius:4px!important}.cdk-overlay-container .cdk-overlay-pane .dropdown-menu .search-form-field .mat-mdc-form-field-focus-overlay,.cdk-overlay-container .dropdown-menu .search-form-field .mat-mdc-form-field-focus-overlay,.cdk-overlay-pane .dropdown-menu .search-form-field .mat-mdc-form-field-focus-overlay{background:var(--grid-surface, #fffbfe)!important}.cdk-overlay-container .cdk-overlay-pane .dropdown-menu .search-form-field .mat-mdc-form-field-subscript-wrapper,.cdk-overlay-container .dropdown-menu .search-form-field .mat-mdc-form-field-subscript-wrapper,.cdk-overlay-pane .dropdown-menu .search-form-field .mat-mdc-form-field-subscript-wrapper{display:none!important}.cdk-overlay-container .cdk-overlay-pane .dropdown-menu .search-form-field input,.cdk-overlay-container .dropdown-menu .search-form-field input,.cdk-overlay-pane .dropdown-menu .search-form-field input{font-family:var(--grid-font-family, \"Poppins\")!important;font-size:14px!important;color:var(--grid-on-surface, #1d1b20)!important}.cdk-overlay-container .cdk-overlay-pane .dropdown-menu .select-all-container,.cdk-overlay-container .dropdown-menu .select-all-container,.cdk-overlay-pane .dropdown-menu .select-all-container{padding:8px 12px!important;border-bottom:1px solid var(--grid-outline-variant, #cac4d0)!important;margin-bottom:4px!important}.cdk-overlay-container .cdk-overlay-pane .dropdown-menu .select-all-container .select-all-text,.cdk-overlay-container .dropdown-menu .select-all-container .select-all-text,.cdk-overlay-pane .dropdown-menu .select-all-container .select-all-text{font-family:var(--grid-font-family, \"Poppins\")!important;font-size:14px!important;font-weight:500!important;color:var(--grid-on-surface, #1d1b20)!important;margin-left:8px!important}.cdk-overlay-container .cdk-overlay-pane .dropdown-menu .select-all-container mat-checkbox .mdc-checkbox .mdc-checkbox__checkmark,.cdk-overlay-container .dropdown-menu .select-all-container mat-checkbox .mdc-checkbox .mdc-checkbox__checkmark,.cdk-overlay-pane .dropdown-menu .select-all-container mat-checkbox .mdc-checkbox .mdc-checkbox__checkmark{color:var(--grid-on-primary, #ffffff)!important}.cdk-overlay-container .cdk-overlay-pane .dropdown-menu .select-all-container mat-checkbox.mat-mdc-checkbox-checked .mdc-checkbox__background,.cdk-overlay-container .dropdown-menu .select-all-container mat-checkbox.mat-mdc-checkbox-checked .mdc-checkbox__background,.cdk-overlay-pane .dropdown-menu .select-all-container mat-checkbox.mat-mdc-checkbox-checked .mdc-checkbox__background{background-color:var(--grid-primary, #6750a4)!important;border-color:var(--grid-primary, #6750a4)!important}.cdk-overlay-container .cdk-overlay-pane .dropdown-menu .select-all-container mat-checkbox.mat-mdc-checkbox-indeterminate .mdc-checkbox__background,.cdk-overlay-container .dropdown-menu .select-all-container mat-checkbox.mat-mdc-checkbox-indeterminate .mdc-checkbox__background,.cdk-overlay-pane .dropdown-menu .select-all-container mat-checkbox.mat-mdc-checkbox-indeterminate .mdc-checkbox__background{background-color:var(--grid-primary, #6750a4)!important;border-color:var(--grid-primary, #6750a4)!important}.cdk-overlay-container .cdk-overlay-pane .dropdown-menu .listbox,.cdk-overlay-container .dropdown-menu .listbox,.cdk-overlay-pane .dropdown-menu .listbox{list-style:none!important;margin:0!important;padding:0!important;max-height:200px!important;overflow-y:auto!important;background:var(--grid-surface, #fef7ff)!important}.cdk-overlay-container .cdk-overlay-pane .dropdown-menu .listbox::-webkit-scrollbar,.cdk-overlay-container .dropdown-menu .listbox::-webkit-scrollbar,.cdk-overlay-pane .dropdown-menu .listbox::-webkit-scrollbar{width:8px!important}.cdk-overlay-container .cdk-overlay-pane .dropdown-menu .listbox::-webkit-scrollbar-track,.cdk-overlay-container .dropdown-menu .listbox::-webkit-scrollbar-track,.cdk-overlay-pane .dropdown-menu .listbox::-webkit-scrollbar-track{background:var(--grid-surface-variant, #e7e0ec)!important;border-radius:4px!important}.cdk-overlay-container .cdk-overlay-pane .dropdown-menu .listbox::-webkit-scrollbar-thumb,.cdk-overlay-container .dropdown-menu .listbox::-webkit-scrollbar-thumb,.cdk-overlay-pane .dropdown-menu .listbox::-webkit-scrollbar-thumb{background:var(--grid-primary, #6750a4)!important;border-radius:4px!important}.cdk-overlay-container .cdk-overlay-pane .dropdown-menu .listbox::-webkit-scrollbar-thumb:hover,.cdk-overlay-container .dropdown-menu .listbox::-webkit-scrollbar-thumb:hover,.cdk-overlay-pane .dropdown-menu .listbox::-webkit-scrollbar-thumb:hover{background:var(--grid-primary, #6750a4)!important;opacity:.8!important}.cdk-overlay-container .cdk-overlay-pane .dropdown-menu .multi-listbox-option,.cdk-overlay-container .dropdown-menu .multi-listbox-option,.cdk-overlay-pane .dropdown-menu .multi-listbox-option{padding:4px 8px!important;margin:2px 0!important;border-radius:4px!important;cursor:pointer!important;font-family:var(--grid-font-family, \"Poppins\")!important;font-size:14px!important;color:var(--grid-on-surface, #1d1b20)!important;background:transparent!important;transition:background-color .2s ease!important;border:none!important;text-align:left!important;width:100%!important}.cdk-overlay-container .cdk-overlay-pane .dropdown-menu .multi-listbox-option:hover,.cdk-overlay-container .dropdown-menu .multi-listbox-option:hover,.cdk-overlay-pane .dropdown-menu .multi-listbox-option:hover{background:var(--grid-surface-container, #f3edf7)!important}.cdk-overlay-container .cdk-overlay-pane .dropdown-menu .multi-listbox-option.notext-overflow,.cdk-overlay-container .dropdown-menu .multi-listbox-option.notext-overflow,.cdk-overlay-pane .dropdown-menu .multi-listbox-option.notext-overflow{white-space:nowrap!important;overflow:hidden!important;text-overflow:ellipsis!important}.cdk-overlay-container .cdk-overlay-pane .dropdown-menu .multi-listbox-option .option-content,.cdk-overlay-container .dropdown-menu .multi-listbox-option .option-content,.cdk-overlay-pane .dropdown-menu .multi-listbox-option .option-content{display:flex!important;align-items:center!important;gap:8px!important;width:100%!important}.cdk-overlay-container .cdk-overlay-pane .dropdown-menu .multi-listbox-option .option-content .option-text,.cdk-overlay-container .dropdown-menu .multi-listbox-option .option-content .option-text,.cdk-overlay-pane .dropdown-menu .multi-listbox-option .option-content .option-text{flex:1!important;font-family:var(--grid-font-family, \"Poppins\")!important;font-size:14px!important;color:inherit!important}.cdk-overlay-container .cdk-overlay-pane .dropdown-menu .multi-listbox-option .option-content mat-checkbox,.cdk-overlay-container .dropdown-menu .multi-listbox-option .option-content mat-checkbox,.cdk-overlay-pane .dropdown-menu .multi-listbox-option .option-content mat-checkbox{flex-shrink:0!important}.cdk-overlay-container .cdk-overlay-pane .dropdown-menu .multi-listbox-option .option-content mat-checkbox .mdc-checkbox .mdc-checkbox__background,.cdk-overlay-container .dropdown-menu .multi-listbox-option .option-content mat-checkbox .mdc-checkbox .mdc-checkbox__background,.cdk-overlay-pane .dropdown-menu .multi-listbox-option .option-content mat-checkbox .mdc-checkbox .mdc-checkbox__background{border-color:var(--grid-outline, #79757f)!important}.cdk-overlay-container .cdk-overlay-pane .dropdown-menu .multi-listbox-option .option-content mat-checkbox .mdc-checkbox .mdc-checkbox__checkmark,.cdk-overlay-container .dropdown-menu .multi-listbox-option .option-content mat-checkbox .mdc-checkbox .mdc-checkbox__checkmark,.cdk-overlay-pane .dropdown-menu .multi-listbox-option .option-content mat-checkbox .mdc-checkbox .mdc-checkbox__checkmark{color:var(--grid-on-primary, #ffffff)!important}.cdk-overlay-container .cdk-overlay-pane .dropdown-menu .multi-listbox-option .option-content mat-checkbox.mat-mdc-checkbox-checked .mdc-checkbox__background,.cdk-overlay-container .dropdown-menu .multi-listbox-option .option-content mat-checkbox.mat-mdc-checkbox-checked .mdc-checkbox__background,.cdk-overlay-pane .dropdown-menu .multi-listbox-option .option-content mat-checkbox.mat-mdc-checkbox-checked .mdc-checkbox__background{background-color:var(--grid-primary, #6750a4)!important;border-color:var(--grid-primary, #6750a4)!important}.cdk-overlay-container .cdk-overlay-pane .dropdown-menu .listbox-option,.cdk-overlay-container .dropdown-menu .listbox-option,.cdk-overlay-pane .dropdown-menu .listbox-option{padding:4px 8px!important;margin:2px 0!important;border-radius:4px!important;cursor:pointer!important;font-family:var(--grid-font-family, \"Poppins\")!important;font-size:14px!important;color:var(--grid-on-surface, #1d1b20)!important;background:transparent!important;transition:background-color .2s ease!important;border:none!important;text-align:left!important;width:100%!important}.cdk-overlay-container .cdk-overlay-pane .dropdown-menu .listbox-option:hover,.cdk-overlay-container .dropdown-menu .listbox-option:hover,.cdk-overlay-pane .dropdown-menu .listbox-option:hover{background:var(--grid-surface-container, #f3edf7)!important}.cdk-overlay-container .cdk-overlay-pane .dropdown-menu .listbox-option.cdk-option-active,.cdk-overlay-container .dropdown-menu .listbox-option.cdk-option-active,.cdk-overlay-pane .dropdown-menu .listbox-option.cdk-option-active,.cdk-overlay-container .cdk-overlay-pane .dropdown-menu .listbox-option.cdk-option-selected,.cdk-overlay-container .dropdown-menu .listbox-option.cdk-option-selected,.cdk-overlay-pane .dropdown-menu .listbox-option.cdk-option-selected{background:var(--grid-primary, #6750a4)!important;color:var(--grid-on-primary, #ffffff)!important}.cdk-overlay-container .cdk-overlay-pane .dropdown-menu .listbox-option.notext-overflow,.cdk-overlay-container .dropdown-menu .listbox-option.notext-overflow,.cdk-overlay-pane .dropdown-menu .listbox-option.notext-overflow{white-space:nowrap!important;overflow:hidden!important;text-overflow:ellipsis!important}.cdk-overlay-container .cdk-overlay-pane .dropdown-menu .listbox-option .option-content,.cdk-overlay-container .dropdown-menu .listbox-option .option-content,.cdk-overlay-pane .dropdown-menu .listbox-option .option-content{display:flex!important;align-items:center!important;gap:8px!important;width:100%!important}.cdk-overlay-container .cdk-overlay-pane .dropdown-menu .listbox-option .option-content .option-text,.cdk-overlay-container .dropdown-menu .listbox-option .option-content .option-text,.cdk-overlay-pane .dropdown-menu .listbox-option .option-content .option-text{flex:1!important;font-family:var(--grid-font-family, \"Poppins\")!important;font-size:14px!important;color:inherit!important}.cell-display-text-editable{cursor:pointer!important}.cell-display-text{width:100%!important;height:100%!important;min-height:20px!important;display:block!important;padding:4px 8px!important;font-family:var(--grid-font-family, \"Poppins\")!important;font-size:var(--grid-font-size-body, 12px)!important;color:var(--grid-on-surface, #1d1b20)!important;background:transparent!important;border:none!important;outline:none!important;text-overflow:ellipsis!important;overflow:hidden!important;white-space:nowrap!important;max-width:100%!important;box-sizing:border-box!important;transition:background-color .2s ease!important;line-height:1.4!important}.cell-display-text,.cell-display-text>*{text-overflow:ellipsis!important;overflow:hidden!important;white-space:nowrap!important;max-width:100%!important;width:100%!important;display:block!important}.cell-display-text:empty:before{content:\"Click to select\"!important;color:var(--grid-on-surface-variant, #49454f)!important;font-style:italic!important}.cell-display-number{text-align:var(--grid-number-text-align, right)}.aggregation .cell-display-number{text-align:var(--grid-aggregation-text-align, right)}.assignee-avatars{display:flex;align-items:center;padding:4px 8px;min-height:20px}.avatar-circle{width:28px;height:28px;border-radius:50%;background-color:var(--grid-primary, #6750a4);color:#fff;display:flex;align-items:center;justify-content:center;font-size:12px;font-weight:600;border:2px solid var(--grid-surface, #fef7ff);margin-left:-8px;position:relative;z-index:1}.avatar-circle:first-child{margin-left:0}.avatar-circle.count-circle{background-color:var(--grid-surface-variant, #e7e0ec);color:var(--grid-on-surface-variant, #49454f);font-size:11px;font-weight:500}.no-assignees{color:var(--grid-on-surface-variant, #49454f);font-style:italic;font-size:12px}.option-content{display:flex;align-items:center;gap:8px;width:100%}.option-avatar{width:24px;height:24px;border-radius:50%;background-color:var(--grid-primary, #6750a4);color:#fff;display:flex;align-items:center;justify-content:center;font-size:10px;font-weight:600;flex-shrink:0}.option-text{flex:1;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.checkmark{color:var(--grid-primary, #6750a4);font-weight:700;font-size:14px;flex-shrink:0}.drillable-value{color:var(--grid-primary, #6750a4);text-decoration:underline;text-decoration-color:var(--grid-primary, #6750a4);text-decoration-thickness:1px;text-underline-offset:2px;transition:all .2s ease}.drillable-link{cursor:pointer;padding:4px}\n"], dependencies: [{ kind: "directive", type: NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "ngmodule", type: CommonModule }, { kind: "directive", type: i2$1.NgForOf, selector: "[ngFor][ngForOf]", inputs: ["ngForOf", "ngForTrackBy", "ngForTemplate"] }, { kind: "ngmodule", type: MatFormFieldModule }, { kind: "component", type: i2$2.MatFormField, selector: "mat-form-field", inputs: ["hideRequiredMarker", "color", "floatLabel", "appearance", "subscriptSizing", "hintLabel"], exportAs: ["matFormField"] }, { kind: "directive", type: i2$2.MatPrefix, selector: "[matPrefix], [matIconPrefix], [matTextPrefix]", inputs: ["matTextPrefix"] }, { kind: "directive", type: i2$2.MatSuffix, selector: "[matSuffix], [matIconSuffix], [matTextSuffix]", inputs: ["matTextSuffix"] }, { kind: "ngmodule", type: MatInputModule }, { kind: "directive", type: i3.MatInput, selector: "input[matInput], textarea[matInput], select[matNativeControl], input[matNativeControl], textarea[matNativeControl]", inputs: ["disabled", "id", "placeholder", "name", "required", "type", "errorStateMatcher", "aria-describedby", "value", "readonly", "disabledInteractive"], exportAs: ["matInput"] }, { kind: "ngmodule", type: MatButtonModule }, { kind: "component", type: i4.MatButton, selector: " button[matButton], a[matButton], button[mat-button], button[mat-raised-button], button[mat-flat-button], button[mat-stroked-button], a[mat-button], a[mat-raised-button], a[mat-flat-button], a[mat-stroked-button] ", inputs: ["matButton"], exportAs: ["matButton", "matAnchor"] }, { kind: "ngmodule", type: MatCheckboxModule }, { kind: "component", type: i5.MatCheckbox, selector: "mat-checkbox", inputs: ["aria-label", "aria-labelledby", "aria-describedby", "aria-expanded", "aria-controls", "aria-owns", "id", "required", "labelPosition", "name", "value", "disableRipple", "tabIndex", "color", "disabledInteractive", "checked", "disabled", "indeterminate"], outputs: ["change", "indeterminateChange"], exportAs: ["matCheckbox"] }, { kind: "ngmodule", type: MatSliderModule }, { kind: "component", type: i6.MatSlider, selector: "mat-slider", inputs: ["disabled", "discrete", "showTickMarks", "min", "color", "disableRipple", "max", "step", "displayWith"], exportAs: ["matSlider"] }, { kind: "directive", type: i6.MatSliderThumb, selector: "input[matSliderThumb]", inputs: ["value"], outputs: ["valueChange", "dragStart", "dragEnd"], exportAs: ["matSliderThumb"] }, { kind: "ngmodule", type: MatIconModule }, { kind: "directive", type: CdkMenuTrigger, selector: "[cdkMenuTriggerFor]", inputs: ["cdkMenuTriggerFor", "cdkMenuPosition", "cdkMenuTriggerData"], outputs: ["cdkMenuOpened", "cdkMenuClosed"], exportAs: ["cdkMenuTriggerFor"] }, { kind: "ngmodule", type: FormsModule }, { kind: "directive", type: i1$1.DefaultValueAccessor, selector: "input:not([type=checkbox])[formControlName],textarea[formControlName],input:not([type=checkbox])[formControl],textarea[formControl],input:not([type=checkbox])[ngModel],textarea[ngModel],[ngDefaultControl]" }, { kind: "directive", type: i1$1.NgControlStatus, selector: "[formControlName],[ngModel],[formControl]" }, { kind: "directive", type: i1$1.NgModel, selector: "[ngModel]:not([formControlName]):not([formControl])", inputs: ["name", "disabled", "ngModel", "ngModelOptions"], outputs: ["ngModelChange"], exportAs: ["ngModel"] }, { kind: "directive", type: CdkListbox, selector: "[cdkListbox]", inputs: ["id", "tabindex", "cdkListboxValue", "cdkListboxMultiple", "cdkListboxDisabled", "cdkListboxUseActiveDescendant", "cdkListboxOrientation", "cdkListboxCompareWith", "cdkListboxNavigationWrapDisabled", "cdkListboxNavigatesDisabledOptions"], outputs: ["cdkListboxValueChange"], exportAs: ["cdkListbox"] }, { kind: "directive", type: CdkOption, selector: "[cdkOption]", inputs: ["id", "cdkOption", "cdkOptionTypeaheadLabel", "cdkOptionDisabled", "tabindex"], exportAs: ["cdkOption"] }, { kind: "directive", type: CdkMenu, selector: "[cdkMenu]", outputs: ["closed"], exportAs: ["cdkMenu"] }, { kind: "ngmodule", type: OverlayModule }, { kind: "directive", type: i1$2.CdkConnectedOverlay, selector: "[cdk-connected-overlay], [connected-overlay], [cdkConnectedOverlay]", inputs: ["cdkConnectedOverlayOrigin", "cdkConnectedOverlayPositions", "cdkConnectedOverlayPositionStrategy", "cdkConnectedOverlayOffsetX", "cdkConnectedOverlayOffsetY", "cdkConnectedOverlayWidth", "cdkConnectedOverlayHeight", "cdkConnectedOverlayMinWidth", "cdkConnectedOverlayMinHeight", "cdkConnectedOverlayBackdropClass", "cdkConnectedOverlayPanelClass", "cdkConnectedOverlayViewportMargin", "cdkConnectedOverlayScrollStrategy", "cdkConnectedOverlayOpen", "cdkConnectedOverlayDisableClose", "cdkConnectedOverlayTransformOriginOn", "cdkConnectedOverlayHasBackdrop", "cdkConnectedOverlayLockPosition", "cdkConnectedOverlayFlexibleDimensions", "cdkConnectedOverlayGrowAfterOpen", "cdkConnectedOverlayPush", "cdkConnectedOverlayDisposeOnNavigation"], outputs: ["backdropClick", "positionChange", "attach", "detach", "overlayKeydown", "overlayOutsideClick"], exportAs: ["cdkConnectedOverlay"] }, { kind: "directive", type: i1$2.CdkOverlayOrigin, selector: "[cdk-overlay-origin], [overlay-origin], [cdkOverlayOrigin]", exportAs: ["cdkOverlayOrigin"] }, { kind: "directive", type: CustomDatePickerDirective, selector: "[appCustomDatePicker]" }, { kind: "ngmodule", type: MatDatepickerModule }, { kind: "component", type: i9.MatDatepicker, selector: "mat-datepicker", exportAs: ["matDatepicker"] }, { kind: "directive", type: i9.MatDatepickerInput, selector: "input[matDatepicker]", inputs: ["matDatepicker", "min", "max", "matDatepickerFilter"], exportAs: ["matDatepickerInput"] }, { kind: "component", type: i9.MatDatepickerToggle, selector: "mat-datepicker-toggle", inputs: ["for", "tabIndex", "aria-label", "disabled", "disableRipple"], exportAs: ["matDatepickerToggle"] }, { kind: "ngmodule", type: MatNativeDateModule }, { kind: "component", type: MobileInputComponent, selector: "app-mobile-input", inputs: ["defaultCountry"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush, encapsulation: i0.ViewEncapsulation.None });
|
|
4012
|
+
], viewQueries: [{ propertyName: "attachmentTrigger", first: true, predicate: ["attachmentTrigger"], descendants: true }, { propertyName: "singleSelectTrigger", first: true, predicate: ["singleSelectTrigger"], descendants: true }, { propertyName: "multiSelectTrigger", first: true, predicate: ["multiSelectTrigger"], descendants: true }, { propertyName: "peopleTrigger", first: true, predicate: ["peopleTrigger"], descendants: true }], ngImport: i0, template: "<div class=\"container\">\n @switch (columnDatatype()) {\n @case ('textbox') {\n @if(isActive()){\n <mat-form-field appearance=\"outline\" class=\"cell-form-field\">\n <input matInput type=\"text\" [id]=\"'input-' + columnName()+ id()\" [name]=\"'input-' + columnName()+ id()\"\n [(ngModel)]=\"currentValue\" (blur)=\"onTextboxBlur()\">\n </mat-form-field>\n } @else {\n <div class=\"cell-display-text\" (dblclick)=\"setActive(true)\"\n [class.cell-display-text-editable]=\"isEditable()\">\n @if (drillable()) {\n <span class=\"drillable-value\" (click)=\"onDrillableClick($event)\">{{currentValue()}}</span>\n } @else {\n {{currentValue()}}\n }\n </div>\n }\n }\n @case ('currency') {\n @if(isActive()){\n <mat-form-field appearance=\"outline\" class=\"cell-form-field\">\n <input matInput type=\"text\" [id]=\"'currency-' + columnName()+ id()\" [name]=\"'currency-' + columnName()+ id()\"\n [ngModel]=\"currentValue()\" (ngModelChange)=\"setField($event)\" placeholder=\"Number\" (blur)=\"onNumberBlur()\">\n <span matTextPrefix>$</span>\n </mat-form-field>\n } @else {\n <div class=\"cell-display-text cell-display-number\" (dblclick)=\"setActive(true)\"\n [class.cell-display-text-editable]=\"isEditable()\">\n @if (drillable()) {\n <span class=\"drillable-value\" (click)=\"onDrillableClick($event)\">{{formatNumberSignal()}}</span>\n } @else {\n {{formatNumberSignal()}}\n }\n </div>\n }\n }\n @case ('number') {\n @if(isActive()){\n <mat-form-field appearance=\"outline\" class=\"cell-form-field\">\n <input matInput type=\"text\" [id]=\"'number-' + columnName()+ id()\" [name]=\"'number-' + columnName()+ id()\"\n [ngModel]=\"currentValue()\" (ngModelChange)=\"setField($event)\" placeholder=\"Number\" (blur)=\"onNumberBlur()\">\n </mat-form-field>\n } @else {\n <div class=\"cell-display-text cell-display-number\" (dblclick)=\"setActive(true)\"\n[class.cell-display-text-editable]=\"isEditable()\"\n >\n @if (drillable() && currentValue() !== 0) {\n <span class=\"drillable-value\" ><a class=\"drillable-link\" (click)=\"onDrillableClick($event)\">{{formatNumberSignal()}}</a></span>\n } @else {\n {{formatNumberSignal()}}\n }\n </div>\n }\n }\n @case ('location') {\n @if(isActive()){\n <mat-form-field appearance=\"outline\" class=\"cell-form-field\">\n <input matInput type=\"text\" [id]=\"'location-' + columnName()+ id()\" [name]=\"'location-' + columnName()+ id()\"\n [(ngModel)]=\"currentValue\" placeholder=\"location\" (blur)=\"onLocationBlur()\">\n </mat-form-field>\n } @else {\n <div class=\"cell-display-text\" (dblclick)=\"setActive(true)\"\n [class.cell-display-text-editable]=\"isEditable()\">\n @if (drillable()) {\n <span class=\"drillable-value\" (click)=\"onDrillableClick($event)\">{{currentValue()}}</span>\n } @else {\n {{currentValue()}}\n }\n </div>\n }\n }\n @case ('email') {\n @if(isActive()){\n <mat-form-field appearance=\"outline\" class=\"cell-form-field\">\n <input matInput type=\"email\" [id]=\"'email-' + columnName()+ id()\" [name]=\"'email-' + columnName()+ id()\"\n [(ngModel)]=\"currentValue\" placeholder=\"email\" matTooltipPosition=\"below\" (blur)=\"onEmailBlur()\">\n </mat-form-field>\n } @else {\n <div class=\"cell-display-text\" (dblclick)=\"setActive(true)\"\n [class.cell-display-text-editable]=\"isEditable()\">\n @if (drillable()) {\n <span class=\"drillable-value\" (click)=\"onDrillableClick($event)\">{{currentValue()}}</span>\n } @else {\n {{currentValue()}}\n }\n </div>\n }\n }\n @case ('dropdown_multi_select') {\n <div class=\"cell-display-text\" (dblclick)=\"toggleOverlayMenu($event)\" #multiSelectTrigger\n [class.cell-display-text-editable]=\"isEditable()\">\n @if (drillable()) {\n <span class=\"drillable-value\" (click)=\"onDrillableClick($event)\">{{formattedMultiSelectValue(currentColumnWidth()) || 'Click to select'}}</span>\n } @else {\n {{formattedMultiSelectValue(currentColumnWidth()) || 'Click to select'}}\n }\n </div>\n }\n\n @case ('dropdown_single_select') {\n <div class=\"cell-display-text\" (dblclick)=\"toggleOverlayMenu($event)\" [cdkMenuTriggerFor]=\"singleSelectTrigger\" #singleSelectTrigger\n [class.cell-display-text-editable]=\"isEditable()\">\n @if (drillable()) {\n <span class=\"drillable-value\" (click)=\"onDrillableClick($event)\">{{currentValue()}}</span>\n } @else {\n {{currentValue()}}\n }\n </div>\n }\n\n @case ('checkbox') {\n <div class=\"cell-form-field cell-checkbox\">\n <mat-checkbox [(ngModel)]=\"currentValue\">\n </mat-checkbox>\n </div>\n }\n\n @case ('people') {\n <div class=\"assignee-avatars \" (dblclick)=\"toggleOverlayMenu($event)\" #peopleTrigger>\n @if (isAssigneeArray(currentValue()) && currentValue().length > 0) {\n @if (drillable()) {\n <span class=\"drillable-value\" (click)=\"onDrillableClick($event)\">\n @for (assignee of currentValue(); track $index) {\n @if ($index < 3) {\n <div class=\"avatar-circle\" [style.z-index]=\"currentValue().length - $index\">\n {{ getInitials(assignee) }}\n </div>\n }\n }\n @if (currentValue().length > 3) {\n <div class=\"avatar-circle count-circle\" [style.z-index]=\"1\">\n +{{ currentValue().length - 3 }}\n </div>\n }\n </span>\n } @else {\n @for (assignee of currentValue(); track $index) {\n @if ($index < 3) {\n <div class=\"avatar-circle\" [style.z-index]=\"currentValue().length - $index\">\n {{ getInitials(assignee) }}\n </div>\n }\n }\n @if (currentValue().length > 3) {\n <div class=\"avatar-circle count-circle\" [style.z-index]=\"1\">\n +{{ currentValue().length - 3 }}\n </div>\n }\n }\n }\n </div>\n }\n\n\n @case ('date') {\n <div class=\"cell-date-container\">\n @if(isActive()){\n <input type=\"text\" [id]=\"'date-' + columnName()+ id()\" [name]=\"'date-' + columnName()+ id()\"\n [matDatepicker]=\"picker\" appCustomDatePicker class=\"inputRef date-picker\" [ngModel]=\"currentValue()\"\n (ngModelChange)=\"onDateChange($event)\" (click)=\"picker.open()\" readonly>\n <mat-datepicker-toggle hidden matIconSuffix [for]=\"picker\"></mat-datepicker-toggle>\n <mat-datepicker #picker></mat-datepicker>\n } @else {\n <div class=\"cell-display-text\" (dblclick)=\"setActive(true)\"\n [class.cell-display-text-editable]=\"isEditable()\">\n @if (drillable()) {\n <span class=\"drillable-value\" (click)=\"onDrillableClick($event)\">{{currentValue()}}</span>\n } @else {\n {{currentValue()}}\n }\n </div>\n }\n </div>\n }\n\n\n @case ('priority') {\n <button mat-stroked-button [cdkMenuTriggerFor]=\"prioritySelectMenu\" class=\"dropdown-trigger\">\n <div class=\"cell-priority-content\">\n <div [innerHTML]=\"getPriorityIcon()\"></div>\n @if (drillable()) {\n <div class=\"drillable-value\" (click)=\"onDrillableClick($event)\">{{currentValue()}}</div>\n } @else {\n <div>{{currentValue()}}</div>\n }\n </div>\n </button>\n }\n @case ('progress') {\n @if(isActive()){\n <div class=\"progress-input-container\">\n <mat-slider class=\"progress-slider\" [min]=\"0\" [max]=\"100\" [step]=\"1\" [discrete]=\"true\">\n <input matSliderThumb [ngModel]=\"currentValue()\" (ngModelChange)=\"setProgressValue($event)\">\n </mat-slider>\n <span class=\"progress-value\">{{currentValue()}}%</span>\n </div>\n } @else {\n <div class=\"progress-bar-container\" [attr.data-progress]=\"currentValue()\">\n <div class=\"progress-bar\" [style.width.%]=\"currentValue()\"></div>\n @if (drillable()) {\n <span class=\"progress-text drillable-value\" (click)=\"onDrillableClick($event)\">{{currentValue()}}%</span>\n } @else {\n <span class=\"progress-text\">{{currentValue()}}%</span>\n }\n </div>\n }\n }\n\n @case ('rating') {\n @if(isActive()){\n <div class=\"rating-input-container\">\n @for (star of getRatingStars(); track star) {\n <span class=\"rating-star\" [class.active]=\"currentValue() >= star\" (click)=\"setRatingValue(star)\"\n (mouseenter)=\"hoverRating = star\" (mouseleave)=\"hoverRating = 0\">\n {{getEmojiForRating(star)}}\n </span>\n }\n <span class=\"rating-value\">{{currentValue()}}/{{columnCellConfiguration()?.end_value || 5}}</span>\n </div>\n } @else {\n <div class=\"rating-display-container\">\n @for (star of getRatingStars(); track star) {\n <span class=\"rating-star\" [class.active]=\"currentValue() >= star\">\n {{getEmojiForRating(star)}}\n </span>\n }\n @if (drillable()) {\n <span class=\"drillable-value\" (click)=\"onDrillableClick($event)\">{{currentValue()}}/{{columnCellConfiguration()?.end_value || 5}}</span>\n }\n </div>\n }\n }\n\n @case ('status') {\n <button mat-stroked-button [cdkMenuTriggerFor]=\"statusSelectMenu\" class=\"status-dropdown-trigger\"\n [style.background-color]=\"getStatusColor(currentValue()).background\"\n [style.border-color]=\"getStatusColor(currentValue()).border\" [style.color]=\"getStatusColor(currentValue()).text\"\n [style.height.px]=\"30\">\n <div class=\"status-button-content\">\n @if(getStatusButtonDisplay(currentValue()).color) {\n\n }\n @if (drillable()) {\n <span class=\"status-text drillable-value\" (click)=\"onDrillableClick($event)\">\n {{getStatusButtonDisplay(currentValue()).text}}\n </span>\n } @else {\n <span class=\"status-text\">\n {{getStatusButtonDisplay(currentValue()).text}}\n </span>\n }\n </div>\n </button>\n }\n\n @case ('tag') {\n <div class=\"tag-container\" [cdkMenuTriggerFor]=\"tagSelectMenu\">\n\n <div class=\"tag-display\">\n @if (drillable()) {\n <span class=\"drillable-value\" (click)=\"onDrillableClick($event)\">\n @for (tag of getTagDisplay(currentValue()).displayTags; track tag) {\n @if (columnCellConfiguration()) {\n <span class=\"tag\" [style.background]=\"getTagColor(tag).background\" [style.color]=\"getTagColor(tag).color\">\n {{tag}}\n </span>\n } @else {\n <span class=\"tag cell-fallback-tag\">\n {{tag}}\n </span>\n }\n }\n @if(getTagDisplay(currentValue()).moreCount > 0) {\n <span class=\"tag-more\">\n + {{getTagDisplay(currentValue()).moreCount}} more\n </span>\n }\n </span>\n } @else {\n @for (tag of getTagDisplay(currentValue()).displayTags; track tag) {\n @if (columnCellConfiguration()) {\n <span class=\"tag\" [style.background]=\"getTagColor(tag).background\" [style.color]=\"getTagColor(tag).color\">\n {{tag}}\n </span>\n } @else {\n <span class=\"tag cell-fallback-tag\">\n {{tag}}\n </span>\n }\n }\n @if(getTagDisplay(currentValue()).moreCount > 0) {\n <span class=\"tag-more\">\n + {{getTagDisplay(currentValue()).moreCount}} more\n </span>\n }\n }\n </div>\n\n </div>\n }\n\n @case ('phone') {\n <app-mobile-input [(ngModel)]=\"currentValue\"\n [defaultCountry]=\"columnCellConfiguration()?.default_country || 'US'\"></app-mobile-input>\n }\n\n @case ('attachment') {\n <div class=\"attachment-cell-wrapper\" (dblclick)=\"toggleOverlayMenu($event)\" cdkOverlayOrigin #attachmentTrigger=\"cdkOverlayOrigin\">\n @if(currentValue()?.length > 0){\n <div class=\"cell-attachment-container\">\n @if (drillable()) {\n <span class=\"drillable-value\" (click)=\"onDrillableClick($event)\">\n <svg width=\"24\" height=\"24\" viewBox=\"0 0 24 24\" fill=\"none\" xmlns=\"http://www.w3.org/2000/svg\">\n <path fill-rule=\"evenodd\" clip-rule=\"evenodd\"\n d=\"M19 12.5C19 14.985 15.866 17 12 17C8.134 17 5 14.985 5 12.5C5 10.015 8.134 8 12 8C15.866 8 19 10.015 19 12.5Z\"\n stroke=\"#7C818C\" stroke-linecap=\"round\" stroke-linejoin=\"round\" />\n <path fill-rule=\"evenodd\" clip-rule=\"evenodd\"\n d=\"M13.75 12.5001C13.7716 13.1394 13.4429 13.7397 12.8925 14.0657C12.3422 14.3918 11.6578 14.3918 11.1075 14.0657C10.5571 13.7397 10.2284 13.1394 10.25 12.5001C10.2284 11.8608 10.5571 11.2606 11.1075 10.9345C11.6578 10.6084 12.3422 10.6084 12.8925 10.9345C13.4429 11.2606 13.7716 11.8608 13.75 12.5001V12.5001Z\"\n stroke=\"#7C818C\" stroke-linecap=\"round\" stroke-linejoin=\"round\" />\n </svg>\n </span>\n } @else {\n <svg width=\"24\" height=\"24\" viewBox=\"0 0 24 24\" fill=\"none\" xmlns=\"http://www.w3.org/2000/svg\">\n <path fill-rule=\"evenodd\" clip-rule=\"evenodd\"\n d=\"M19 12.5C19 14.985 15.866 17 12 17C8.134 17 5 14.985 5 12.5C5 10.015 8.134 8 12 8C15.866 8 19 10.015 19 12.5Z\"\n stroke=\"#7C818C\" stroke-linecap=\"round\" stroke-linejoin=\"round\" />\n <path fill-rule=\"evenodd\" clip-rule=\"evenodd\"\n d=\"M13.75 12.5001C13.7716 13.1394 13.4429 13.7397 12.8925 14.0657C12.3422 14.3918 11.6578 14.3918 11.1075 14.0657C10.5571 13.7397 10.2284 13.1394 10.25 12.5001C10.2284 11.8608 10.5571 11.2606 11.1075 10.9345C11.6578 10.6084 12.3422 10.6084 12.8925 10.9345C13.4429 11.2606 13.7716 11.8608 13.75 12.5001V12.5001Z\"\n stroke=\"#7C818C\" stroke-linecap=\"round\" stroke-linejoin=\"round\" />\n </svg>\n }\n </div>\n }@else {\n <div class=\"cell-attachment-container\">\n @if (drillable()) {\n <span class=\"drillable-value\" (click)=\"onDrillableClick($event)\">\n <svg width=\"24\" height=\"24\" viewBox=\"0 0 24 24\" fill=\"none\" xmlns=\"http://www.w3.org/2000/svg\">\n <path\n d=\"M14.67 11.053L10.68 15.315C10.3416 15.6932 9.85986 15.9119 9.35236 15.9178C8.84487 15.9237 8.35821 15.7162 8.01104 15.346C7.24412 14.5454 7.257 13.2788 8.04004 12.494L13.399 6.763C13.9902 6.10491 14.8315 5.72677 15.7161 5.72163C16.6006 5.71649 17.4463 6.08482 18.045 6.736C19.3222 8.14736 19.3131 10.2995 18.024 11.7L12.342 17.771C11.5334 18.5827 10.4265 19.0261 9.28113 18.9971C8.13575 18.9682 7.05268 18.4695 6.28604 17.618C4.5337 15.6414 4.57705 12.6549 6.38604 10.73L11.753 5\"\n stroke=\"#363B44\" stroke-linecap=\"round\" stroke-linejoin=\"round\" />\n </svg>\n </span>\n } @else {\n <svg width=\"24\" height=\"24\" viewBox=\"0 0 24 24\" fill=\"none\" xmlns=\"http://www.w3.org/2000/svg\">\n <path\n d=\"M14.67 11.053L10.68 15.315C10.3416 15.6932 9.85986 15.9119 9.35236 15.9178C8.84487 15.9237 8.35821 15.7162 8.01104 15.346C7.24412 14.5454 7.257 13.2788 8.04004 12.494L13.399 6.763C13.9902 6.10491 14.8315 5.72677 15.7161 5.72163C16.6006 5.71649 17.4463 6.08482 18.045 6.736C19.3222 8.14736 19.3131 10.2995 18.024 11.7L12.342 17.771C11.5334 18.5827 10.4265 19.0261 9.28113 18.9971C8.13575 18.9682 7.05268 18.4695 6.28604 17.618C4.5337 15.6414 4.57705 12.6549 6.38604 10.73L11.753 5\"\n stroke=\"#363B44\" stroke-linecap=\"round\" stroke-linejoin=\"round\" />\n </svg>\n }\n </div>\n }\n \n \n </div>\n }\n @default {\n <div class=\"cell-default-display\">\n @if (drillable()) {\n <span class=\"drillable-value\" (click)=\"onDrillableClick($event)\">{{value()}}</span>\n } @else {\n {{value()}}\n }\n </div>\n }\n }\n\n</div>\n\n<ng-template #prioritySelectMenu>\n <div class=\"dropdown-menu\" cdkMenu [style.min-width.px]=\"fieldSize()\" (closed)=\"singleOptionClosed()\">\n <div class=\"listbox-container\">\n <mat-form-field appearance=\"outline\" class=\"search-form-field\">\n <input matInput type=\"search\" placeholder=\"Search...\" [(ngModel)]=\"optionSearchText\">\n </mat-form-field>\n\n <ul cdkListbox [ngModel]=\"currentValue()\" (ngModelChange)=\"selectedSingleSelect($event)\"\n aria-labelledby=\"listbox-label\" class=\"listbox\">\n <li [cdkOption]=\"''\" class=\"listbox-option notext-overflow\">\n None\n </li>\n @for (option of filteredOptions(); track option) {\n <li [cdkOption]=\"option.value\" class=\"listbox-option notext-overflow cell-priority-content\">\n <div [innerHTML]=\"sanitize.bypassSecurityTrustHtml(option.icon)\"></div>\n <div>{{option.label}}</div>\n </li>\n }\n </ul>\n </div>\n </div>\n</ng-template>\n\n<ng-template cdkConnectedOverlay\n[cdkConnectedOverlayOrigin]=\"singleSelectTrigger\"\n[cdkConnectedOverlayOpen]=\"showOverlayMenu('dropdown_single_select')\"\n(detach)=\"isOpen = showOverlayMenu('dropdown_single_select')\">\n <div class=\"dropdown-menu\" cdkMenu [style.width.px]=\"currentColumnWidth()\" (closed)=\"singleOptionClosed()\">\n <div class=\"listbox-container\">\n <mat-form-field appearance=\"outline\" class=\"search-form-field\">\n <input matInput type=\"search\" placeholder=\"Search...\" (click)=\"$event.stopPropagation()\" [(ngModel)]=\"optionSearchText\">\n </mat-form-field>\n <ul cdkListbox [ngModel]=\"currentValue()\" (ngModelChange)=\"selectedSingleSelect($event)\"\n aria-labelledby=\"listbox-label\" class=\"listbox\">\n <li [cdkOption]=\"'None'\" class=\"listbox-option notext-overflow\">\n None\n </li>\n <li [cdkOption]=\"'option 1'\" class=\"listbox-option notext-overflow\">\n option 1\n </li>\n <li [cdkOption]=\"'option 2'\" class=\"listbox-option notext-overflow\">\n option 2\n </li>\n <li [cdkOption]=\"'option 3'\" class=\"listbox-option notext-overflow\">\n option 3\n </li>\n <li [cdkOption]=\"'option 4'\" class=\"listbox-option notext-overflow\">\n option 4\n </li><li [cdkOption]=\"'option 5'\" class=\"listbox-option notext-overflow\">\n option 5\n </li><li [cdkOption]=\"'option 6'\" class=\"listbox-option notext-overflow\">\n option 6\n </li><li [cdkOption]=\"'option 7'\" class=\"listbox-option notext-overflow\">\n option 7\n </li><li [cdkOption]=\"'option 1'\" class=\"listbox-option notext-overflow\">\n option 1\n </li><li [cdkOption]=\"'option 9'\" class=\"listbox-option notext-overflow\">\n option 9\n </li><li [cdkOption]=\"'option 10'\" class=\"listbox-option notext-overflow\">\n option 10\n </li><li [cdkOption]=\"'option 11'\" class=\"listbox-option notext-overflow\">\n option 11\n </li><li [cdkOption]=\"'option 12'\" class=\"listbox-option notext-overflow\">\n option 12\n </li><li [cdkOption]=\"'option 13'\" class=\"listbox-option notext-overflow\">\n option 13\n </li><li [cdkOption]=\"'option 14'\" class=\"listbox-option notext-overflow\">\n option 14\n </li><li [cdkOption]=\"'option 15'\" class=\"listbox-option notext-overflow\">\n option 15\n </li><li [cdkOption]=\"'option 16'\" class=\"listbox-option notext-overflow\">\n option 16\n </li><li [cdkOption]=\"'option 17'\" class=\"listbox-option notext-overflow\">\n option 17\n </li><li [cdkOption]=\"'option 18'\" class=\"listbox-option notext-overflow\">\n option 18\n </li>\n @for (option of filteredOptions(); track option) {\n <li [cdkOption]=\"option.value\" class=\"listbox-option notext-overflow\">\n {{option.label}}\n </li>\n }\n </ul>\n </div>\n </div>\n</ng-template>\n\n<ng-template \ncdkConnectedOverlay\n[cdkConnectedOverlayOrigin]=\"multiSelectTrigger\"\n[cdkConnectedOverlayOpen]=\"showOverlayMenu('dropdown_multi_select')\"\n(detach)=\"isOpen = showOverlayMenu('dropdown_multi_select')\">\n <div class=\"dropdown-menu\" cdkMenu [style.width.px]=\"currentColumnWidth()\" (closed)=\"singleOptionClosed()\">\n <div class=\"listbox-container\">\n <mat-form-field appearance=\"outline\" class=\"search-form-field\">\n <input matInput type=\"search\" placeholder=\"Search...\" [ngModel]=\"optionSearchText()\"\n (ngModelChange)=\"optionSearchText.set($event)\" (click)=\"$event.stopPropagation()\">\n </mat-form-field>\n \n <!-- Select All Checkbox -->\n <div class=\"select-all-container\" (click)=\"$event.stopPropagation()\">\n <mat-checkbox \n [checked]=\"isAllSelected()\" \n [indeterminate]=\"isIndeterminate()\"\n (change)=\"toggleSelectAll($event.checked)\">\n <span class=\"select-all-text\">Select All</span>\n </mat-checkbox>\n </div>\n \n <ul cdkListboxMultiple=\"true\" cdkListboxUseActiveDescendant cdkListbox [ngModel]=\"currentValue()\"\n (ngModelChange)=\"selectedMultiSelect($event)\" aria-labelledby=\"listbox-labssel\" class=\"listbox\" (click)=\"$event.stopPropagation()\">\n <li [cdkOption]=\"'None'\" class=\"multi-listbox-option notext-overflow\">\n <div class=\"option-content\">\n <mat-checkbox [checked]=\"isOptionSelected('None')\" (click)=\"$event.stopPropagation();appendMultiSelect('None')\"></mat-checkbox>\n <span class=\"option-text\">None</span>\n </div>\n </li>\n <li [cdkOption]=\"'option 1'\" class=\"multi-listbox-option notext-overflow\">\n <div class=\"option-content\">\n <mat-checkbox [checked]=\"isOptionSelected('option 1')\" (click)=\"$event.stopPropagation();appendMultiSelect('option 1')\"></mat-checkbox>\n <span class=\"option-text\">option 1</span>\n </div>\n </li>\n <li [cdkOption]=\"'option 2'\" class=\"multi-listbox-option notext-overflow\">\n <div class=\"option-content\">\n <mat-checkbox [checked]=\"isOptionSelected('option 2')\" (click)=\"$event.stopPropagation();appendMultiSelect('option 2')\"></mat-checkbox>\n <span class=\"option-text\">option 2</span>\n </div>\n </li>\n <li [cdkOption]=\"'option 3'\" class=\"multi-listbox-option notext-overflow\">\n <div class=\"option-content\">\n <mat-checkbox [checked]=\"isOptionSelected('option 3')\" (click)=\"$event.stopPropagation();appendMultiSelect('option 3')\"></mat-checkbox>\n <span class=\"option-text\">option 3</span>\n </div>\n </li>\n <li [cdkOption]=\"'option 4'\" class=\"multi-listbox-option notext-overflow\">\n <div class=\"option-content\">\n <mat-checkbox [checked]=\"isOptionSelected('option 4')\" (click)=\"$event.stopPropagation();appendMultiSelect('option 4')\"></mat-checkbox>\n <span class=\"option-text\">option 4</span>\n </div>\n </li>\n <li [cdkOption]=\"'option 5'\" class=\"multi-listbox-option notext-overflow\">\n <div class=\"option-content\">\n <mat-checkbox [checked]=\"isOptionSelected('option 5')\" (click)=\"$event.stopPropagation();appendMultiSelect('option 5')\"></mat-checkbox>\n <span class=\"option-text\">option 5</span>\n </div>\n </li>\n <li [cdkOption]=\"'option 6'\" class=\"multi-listbox-option notext-overflow\">\n <div class=\"option-content\">\n <mat-checkbox [checked]=\"isOptionSelected('option 6')\" (click)=\"$event.stopPropagation();appendMultiSelect('option 6')\"></mat-checkbox>\n <span class=\"option-text\">option 6</span>\n </div>\n </li>\n <li [cdkOption]=\"'option 7'\" class=\"multi-listbox-option notext-overflow\">\n <div class=\"option-content\">\n <mat-checkbox [checked]=\"isOptionSelected('option 7')\" (click)=\"$event.stopPropagation();appendMultiSelect('option 7')\"></mat-checkbox>\n <span class=\"option-text\">option 7</span>\n </div>\n </li>\n <li [cdkOption]=\"'option 8'\" class=\"multi-listbox-option notext-overflow\">\n <div class=\"option-content\">\n <mat-checkbox [checked]=\"isOptionSelected('option 8')\" (click)=\"$event.stopPropagation();appendMultiSelect('option 8')\"></mat-checkbox>\n <span class=\"option-text\">option 8</span>\n </div>\n </li>\n <li [cdkOption]=\"'option 9'\" class=\"multi-listbox-option notext-overflow\">\n <div class=\"option-content\">\n <mat-checkbox [checked]=\"isOptionSelected('option 9')\" (click)=\"$event.stopPropagation();appendMultiSelect('option 9')\"></mat-checkbox>\n <span class=\"option-text\">option 9</span>\n </div>\n </li>\n <li [cdkOption]=\"'option 10'\" class=\"multi-listbox-option notext-overflow\">\n <div class=\"option-content\">\n <mat-checkbox [checked]=\"isOptionSelected('option 10')\" (click)=\"$event.stopPropagation();appendMultiSelect('option 10')\"></mat-checkbox>\n <span class=\"option-text\">option 10</span>\n </div>\n </li>\n @for (option of filteredOptions(); track option) {\n <li [cdkOption]=\"option.value\" class=\"multi-listbox-option notext-overflow\">\n <div class=\"option-content\">\n <mat-checkbox [checked]=\"isOptionSelected(option.value)\" (click)=\"$event.stopPropagation();appendMultiSelect(option.value)\"></mat-checkbox>\n <span class=\"option-text\">{{option.label}}</span>\n </div>\n </li>\n }\n </ul>\n </div>\n </div>\n</ng-template>\n\n<ng-template cdkConnectedOverlay\n[cdkConnectedOverlayOrigin]=\"peopleTrigger\"\n[cdkConnectedOverlayOpen]=\"showOverlayMenu('people')\"\n(detach)=\"isOpen = showOverlayMenu('people')\">\n <div class=\"dropdown-menu\" cdkMenu [style.width.px]=\"currentColumnWidth()\" (closed)=\"singleOptionClosed()\">\n <div class=\"listbox-container\">\n <mat-form-field appearance=\"outline\" class=\"search-form-field\">\n <input matInput type=\"search\" placeholder=\"Search...\" [ngModel]=\"optionSearchText()\" (click)=\"$event.stopPropagation()\"\n (ngModelChange)=\"optionSearchText.set($event)\">\n </mat-form-field>\n <ul cdkListboxMultiple=\"true\" cdkListboxUseActiveDescendant cdkListbox [ngModel]=\"currentValue()\"\n (ngModelChange)=\"selectedMultiSelect($event)\" aria-labelledby=\"listbox-labssel\" class=\"listbox\">\n <li [cdkOption]=\"'person0@domain.com'\" class=\"multi-listbox-option notext-overflow\">\n <div class=\"option-content\">\n <div class=\"option-avatar\">{{ getInitials('person0@domain.com') }}</div>\n <span class=\"option-text\">person0@domain.com</span>\n @if (isOptionSelected('person0@domain.com')) {\n <span class=\"checkmark\">\u2713</span>\n }\n </div>\n </li>\n <li [cdkOption]=\"'person1@domain.com'\" class=\"multi-listbox-option notext-overflow\">\n <div class=\"option-content\">\n <div class=\"option-avatar\">{{ getInitials('person1@domain.com') }}</div>\n <span class=\"option-text\">person1@domain.com</span>\n @if (isOptionSelected('person1@domain.com')) {\n <span class=\"checkmark\">\u2713</span>\n }\n </div>\n </li>\n <li [cdkOption]=\"'person2@domain.com'\" class=\"multi-listbox-option notext-overflow\">\n <div class=\"option-content\">\n <div class=\"option-avatar\">{{ getInitials('person2@domain.com') }}</div>\n <span class=\"option-text\">person2@domain.com</span>\n @if (isOptionSelected('person2@domain.com')) {\n <span class=\"checkmark\">\u2713</span>\n }\n </div>\n </li>\n <li [cdkOption]=\"'person3@domain.com'\" class=\"multi-listbox-option notext-overflow\">\n <div class=\"option-content\">\n <div class=\"option-avatar\">{{ getInitials('person3@domain.com') }}</div>\n <span class=\"option-text\">person3@domain.com</span>\n @if (isOptionSelected('person3@domain.com')) {\n <span class=\"checkmark\">\u2713</span>\n }\n </div>\n </li>\n <li [cdkOption]=\"'person4@domain.com'\" class=\"multi-listbox-option notext-overflow\">\n <div class=\"option-content\">\n <div class=\"option-avatar\">{{ getInitials('person4@domain.com') }}</div>\n <span class=\"option-text\">person4@domain.com</span>\n @if (isOptionSelected('person4@domain.com')) {\n <span class=\"checkmark\">\u2713</span>\n }\n </div>\n </li>\n <li [cdkOption]=\"'person5@domain.com'\" class=\"multi-listbox-option notext-overflow\">\n <div class=\"option-content\">\n <div class=\"option-avatar\">{{ getInitials('person5@domain.com') }}</div>\n <span class=\"option-text\">person5@domain.com</span>\n @if (isOptionSelected('person5@domain.com')) {\n <span class=\"checkmark\">\u2713</span>\n }\n </div>\n </li>\n @for (option of filteredOptions(); track option) {\n <li [cdkOption]=\"option.value\" class=\"multi-listbox-option notext-overflow listbox-option_people\">\n <div class=\"option-content\">\n <div class=\"option-avatar\">{{ getInitials(option.value) }}</div>\n <span class=\"option-text\">{{option.label}}</span>\n @if (isOptionSelected(option.value)) {\n <span class=\"checkmark\">\u2713</span>\n }\n </div>\n </li>\n }\n </ul>\n </div>\n </div>\n</ng-template>\n\n<ng-template #statusSelectMenu>\n <div class=\"dropdown-menu status-dropdown-menu\" cdkMenu [style.min-width.px]=\"fieldSize()\"\n (closed)=\"singleOptionClosed()\">\n <div class=\"listbox-container\">\n <mat-form-field appearance=\"outline\" class=\"search-form-field\">\n <input matInput type=\"search\" placeholder=\"Search...\" [(ngModel)]=\"optionSearchText\">\n </mat-form-field>\n\n <ul cdkListbox [ngModel]=\"currentValue()\" (ngModelChange)=\"selectedSingleSelect($event)\"\n aria-labelledby=\"listbox-label\" class=\"listbox status-listbox\">\n <li [cdkOption]=\"''\" class=\"listbox-option notext-overflow\">\n None\n </li>\n @for (option of getStatusOptions(); track option.value) {\n <li [cdkOption]=\"option.value\" class=\"listbox-option status-option\"\n [style.background-color]=\"getStatusColor(option.value).background\"\n [style.border-color]=\"getStatusColor(option.value).border\" [style.color]=\"getStatusColor(option.value).text\">\n @if(option.color) {\n <span class=\"status-color-indicator\" [style.background-color]=\"option.color\"></span>\n }\n {{option.label}}\n </li>\n }\n </ul>\n </div>\n </div>\n</ng-template>\n\n<ng-template #tagSelectMenu>\n <div class=\"dropdown-menu tag-dropdown-menu\" [style.min-width.px]=\"fieldSize()\">\n <div class=\"listbox-container\">\n <mat-form-field appearance=\"outline\" class=\"search-form-field\">\n <input matInput type=\"search\" placeholder=\"Search or add tag...\" [ngModel]=\"optionSearchText()\"\n (ngModelChange)=\"optionSearchText.set($event)\" (keyup.enter)=\"addNewTag(optionSearchText())\"\n [style.min-width.px]=\"fieldSize()\">\n </mat-form-field>\n\n <ul cdkListboxMultiple=\"true\" cdkListbox [ngModel]=\"currentValue()\" (ngModelChange)=\"selectedMultiSelect($event)\"\n class=\"listbox tag-listbox\" [style.min-width.px]=\"fieldSize()\">\n <!-- Predefined tags -->\n @for (option of getTagOptions(); track option.value) {\n <li [cdkOption]=\"option.value\" class=\"listbox-option tag-option\">\n {{option.label}}\n </li>\n }\n\n <!-- New tag input -->\n\n\n\n </ul>\n\n </div>\n </div>\n</ng-template>\n\n<!-- Attachment Menu - Positioned relative to the cell -->\n<ng-template \ncdkConnectedOverlay\n[cdkConnectedOverlayOrigin]=\"attachmentTrigger\"\n[cdkConnectedOverlayOpen]=\"showOverlayMenu('attachment')\"\n(detach)=\"isOpen = showOverlayMenu('attachment')\">\n <div class=\"attachment-menu-overlay\" [style.width.px]=\"currentColumnWidth()\" [style.min-width.px]=\"300\">\n <div class=\"attachment-container\">\n <!-- Header Section -->\n <div class=\"attachment-header\">\n <span class=\"attachment-title\">Add or Drag files</span>\n <button mat-flat-button \n (click)=\"fileInput.click()\" \n class=\"attachment-upload-btn\">\n Upload\n </button>\n </div>\n \n <!-- Drop zone -->\n <div class=\"attachment-drop-zone\" \n (drop)=\"onFileDrop($event)\" \n (dragover)=\"onDragOver($event)\" \n (dragleave)=\"onDragLeave($event)\"\n (paste)=\"onPaste($event)\"\n (click)=\"fileInput.click()\"\n [class.dragging]=\"isDragging()\">\n <div class=\"attachment-drop-content\">\n <div class=\"attachment-drop-icon\">+</div>\n <div class=\"attachment-drop-text\">\n <div class=\"primary-text\">Click to upload or drag files here</div>\n <div class=\"secondary-text\">Support multiple files</div>\n </div>\n </div>\n </div>\n \n <!-- Hidden file input -->\n <input #fileInput \n type=\"file\" \n multiple \n (change)=\"fileInputChange($event)\" \n style=\"display: none;\">\n \n <!-- File list -->\n <div class=\"attachment-file-list\" *ngIf=\"currentValue()?.length > 0\">\n <div class=\"attachment-file-item\" *ngFor=\"let file of currentValue(); trackBy: trackByFile\">\n <div class=\"file-info\">\n <span class=\"file-icon\">\uD83D\uDCC4</span>\n <span class=\"file-name\">{{ file?.split('_')?.[2] || file }}</span>\n </div>\n <div class=\"file-actions\">\n <button class=\"action-btn\" (click)=\"viewFile(file)\" title=\"View\">\uD83D\uDC41\uFE0F</button>\n <button class=\"action-btn\" (click)=\"deleteFile(file)\" title=\"Delete\">\uD83D\uDDD1\uFE0F</button>\n </div>\n </div>\n </div>\n </div>\n </div>\n</ng-template>", styles: [":host{display:block;height:100%;width:100%;position:relative;overflow:hidden!important}.container{height:calc(100% - 2px);width:calc(100% - 2px);position:relative!important;overflow:hidden!important;max-width:100%!important;box-sizing:border-box!important}.container .cell-display-text{text-overflow:ellipsis!important;overflow:hidden!important;white-space:nowrap!important;max-width:100%!important;width:100%!important;display:block!important}.inputRef{height:inherit;width:inherit;border:none}.inputRef:focus{outline:none}.cell-checkbox{text-align:center}.cell-form-field{width:100%!important;height:100%!important;padding:0!important;margin:0!important}.cell-form-field .mat-mdc-form-field-outline,.cell-form-field .mat-mdc-form-field-subscript-wrapper,.cell-form-field .mat-mdc-form-field-text-suffix{display:none!important}.cell-form-field .mat-mdc-form-field-wrapper,.cell-form-field .mat-mdc-form-field-wrapper .mat-mdc-form-field-flex{width:100%!important;height:100%!important;padding:0!important;margin:0!important}.cell-form-field .mat-mdc-form-field-wrapper .mat-mdc-form-field-flex .mat-mdc-form-field-infix{width:100%!important;height:100%!important;padding:0!important;margin:0!important;min-height:auto!important;border-top:none!important}.cell-form-field input[matInput]{width:100%!important;height:100%!important;padding:2px!important;margin:0!important;border:none!important;outline:none!important;background:transparent!important;font-size:14px!important;line-height:normal!important;box-sizing:border-box!important;max-width:none!important;min-width:0!important;flex:none!important}.dropdown-menu{width:100%}.attachment-menu,.dropdown-menu,.dropdown-menu.attachment-menu,[cdkMenu].attachment-menu{background:var(--grid-surface, #fef7ff)!important;background-color:var(--grid-surface, #fef7ff)!important;border-radius:8px!important;box-shadow:var(--grid-elevation-2, 0px 1px 2px 0px rgba(0, 0, 0, .3), 0px 2px 6px 2px rgba(0, 0, 0, .15))!important;border:1px solid var(--grid-outline-variant, #cac4d0)!important}.attachment-menu.cdk-overlay-pane,.dropdown-menu.cdk-overlay-pane,.dropdown-menu.attachment-menu.cdk-overlay-pane,[cdkMenu].attachment-menu.cdk-overlay-pane{background:var(--grid-surface)!important;background-color:var(--grid-surface)!important}.attachment-menu .attachment-container,.dropdown-menu .attachment-container,.dropdown-menu.attachment-menu .attachment-container,[cdkMenu].attachment-menu .attachment-container{padding:4px;background:var(--grid-surface, #fef7ff);border-radius:8px}.attachment-menu .attachment-header,.dropdown-menu .attachment-header,.dropdown-menu.attachment-menu .attachment-header,[cdkMenu].attachment-menu .attachment-header{display:flex!important;justify-content:space-between!important;align-items:center!important;margin-bottom:24px!important;padding:0!important}.attachment-menu .attachment-header .attachment-title,.dropdown-menu .attachment-header .attachment-title,.dropdown-menu.attachment-menu .attachment-header .attachment-title,[cdkMenu].attachment-menu .attachment-header .attachment-title{font-family:var(--grid-font-family, \"Poppins\")!important;font-size:16px!important;font-weight:500!important;color:var(--grid-on-surface, #1d1b20)!important;margin:0!important}.attachment-menu .attachment-header .attachment-upload-btn,.attachment-menu .attachment-header .attachment-upload-btn.mat-mdc-raised-button,.attachment-menu .attachment-header .attachment-upload-btn.mat-mdc-button,.dropdown-menu .attachment-header .attachment-upload-btn,.dropdown-menu .attachment-header .attachment-upload-btn.mat-mdc-raised-button,.dropdown-menu .attachment-header .attachment-upload-btn.mat-mdc-button,.dropdown-menu.attachment-menu .attachment-header .attachment-upload-btn,.dropdown-menu.attachment-menu .attachment-header .attachment-upload-btn.mat-mdc-raised-button,.dropdown-menu.attachment-menu .attachment-header .attachment-upload-btn.mat-mdc-button,[cdkMenu].attachment-menu .attachment-header .attachment-upload-btn,[cdkMenu].attachment-menu .attachment-header .attachment-upload-btn.mat-mdc-raised-button,[cdkMenu].attachment-menu .attachment-header .attachment-upload-btn.mat-mdc-button{background:var(--grid-primary, #6750a4)!important;background-color:var(--grid-primary, #6750a4)!important;color:var(--grid-on-primary, #ffffff)!important;font-family:var(--grid-font-family, \"Poppins\")!important;font-weight:500!important;padding:8px 20px!important;border-radius:6px!important;border:none!important;cursor:pointer!important;font-size:14px!important;letter-spacing:.5px!important;box-shadow:var(--grid-elevation-1, 0px 1px 2px 0px rgba(0, 0, 0, .3), 0px 1px 3px 1px rgba(0, 0, 0, .15))!important;transition:background-color .2s ease!important}.attachment-menu .attachment-header .attachment-upload-btn .mdc-button__label,.attachment-menu .attachment-header .attachment-upload-btn.mat-mdc-raised-button .mdc-button__label,.attachment-menu .attachment-header .attachment-upload-btn.mat-mdc-button .mdc-button__label,.dropdown-menu .attachment-header .attachment-upload-btn .mdc-button__label,.dropdown-menu .attachment-header .attachment-upload-btn.mat-mdc-raised-button .mdc-button__label,.dropdown-menu .attachment-header .attachment-upload-btn.mat-mdc-button .mdc-button__label,.dropdown-menu.attachment-menu .attachment-header .attachment-upload-btn .mdc-button__label,.dropdown-menu.attachment-menu .attachment-header .attachment-upload-btn.mat-mdc-raised-button .mdc-button__label,.dropdown-menu.attachment-menu .attachment-header .attachment-upload-btn.mat-mdc-button .mdc-button__label,[cdkMenu].attachment-menu .attachment-header .attachment-upload-btn .mdc-button__label,[cdkMenu].attachment-menu .attachment-header .attachment-upload-btn.mat-mdc-raised-button .mdc-button__label,[cdkMenu].attachment-menu .attachment-header .attachment-upload-btn.mat-mdc-button .mdc-button__label{color:var(--grid-on-primary, #ffffff)!important}.attachment-menu .attachment-header .attachment-upload-btn:hover,.attachment-menu .attachment-header .attachment-upload-btn.mat-mdc-raised-button:hover,.attachment-menu .attachment-header .attachment-upload-btn.mat-mdc-button:hover,.dropdown-menu .attachment-header .attachment-upload-btn:hover,.dropdown-menu .attachment-header .attachment-upload-btn.mat-mdc-raised-button:hover,.dropdown-menu .attachment-header .attachment-upload-btn.mat-mdc-button:hover,.dropdown-menu.attachment-menu .attachment-header .attachment-upload-btn:hover,.dropdown-menu.attachment-menu .attachment-header .attachment-upload-btn.mat-mdc-raised-button:hover,.dropdown-menu.attachment-menu .attachment-header .attachment-upload-btn.mat-mdc-button:hover,[cdkMenu].attachment-menu .attachment-header .attachment-upload-btn:hover,[cdkMenu].attachment-menu .attachment-header .attachment-upload-btn.mat-mdc-raised-button:hover,[cdkMenu].attachment-menu .attachment-header .attachment-upload-btn.mat-mdc-button:hover{opacity:.9!important}.attachment-menu .attachment-header .attachment-upload-btn:before,.attachment-menu .attachment-header .attachment-upload-btn:after,.attachment-menu .attachment-header .attachment-upload-btn.mat-mdc-raised-button:before,.attachment-menu .attachment-header .attachment-upload-btn.mat-mdc-raised-button:after,.attachment-menu .attachment-header .attachment-upload-btn.mat-mdc-button:before,.attachment-menu .attachment-header .attachment-upload-btn.mat-mdc-button:after,.dropdown-menu .attachment-header .attachment-upload-btn:before,.dropdown-menu .attachment-header .attachment-upload-btn:after,.dropdown-menu .attachment-header .attachment-upload-btn.mat-mdc-raised-button:before,.dropdown-menu .attachment-header .attachment-upload-btn.mat-mdc-raised-button:after,.dropdown-menu .attachment-header .attachment-upload-btn.mat-mdc-button:before,.dropdown-menu .attachment-header .attachment-upload-btn.mat-mdc-button:after,.dropdown-menu.attachment-menu .attachment-header .attachment-upload-btn:before,.dropdown-menu.attachment-menu .attachment-header .attachment-upload-btn:after,.dropdown-menu.attachment-menu .attachment-header .attachment-upload-btn.mat-mdc-raised-button:before,.dropdown-menu.attachment-menu .attachment-header .attachment-upload-btn.mat-mdc-raised-button:after,.dropdown-menu.attachment-menu .attachment-header .attachment-upload-btn.mat-mdc-button:before,.dropdown-menu.attachment-menu .attachment-header .attachment-upload-btn.mat-mdc-button:after,[cdkMenu].attachment-menu .attachment-header .attachment-upload-btn:before,[cdkMenu].attachment-menu .attachment-header .attachment-upload-btn:after,[cdkMenu].attachment-menu .attachment-header .attachment-upload-btn.mat-mdc-raised-button:before,[cdkMenu].attachment-menu .attachment-header .attachment-upload-btn.mat-mdc-raised-button:after,[cdkMenu].attachment-menu .attachment-header .attachment-upload-btn.mat-mdc-button:before,[cdkMenu].attachment-menu .attachment-header .attachment-upload-btn.mat-mdc-button:after{display:none!important}.attachment-menu .attachment-drop-zone,.dropdown-menu .attachment-drop-zone,.dropdown-menu.attachment-menu .attachment-drop-zone,[cdkMenu].attachment-menu .attachment-drop-zone{border:2px dashed var(--grid-outline-variant, #cac4d0)!important;border-radius:8px!important;padding:10px!important;text-align:center!important;cursor:pointer!important;transition:all .3s ease!important;background:var(--grid-surface-variant, #e7e0ec)!important;margin:16px 0!important}.attachment-menu .attachment-drop-zone:hover,.dropdown-menu .attachment-drop-zone:hover,.dropdown-menu.attachment-menu .attachment-drop-zone:hover,[cdkMenu].attachment-menu .attachment-drop-zone:hover{border-color:var(--grid-primary, #6750a4)!important;background:var(--grid-surface-container, #f3edf7)!important}.attachment-menu .attachment-drop-zone.dragging,.dropdown-menu .attachment-drop-zone.dragging,.dropdown-menu.attachment-menu .attachment-drop-zone.dragging,[cdkMenu].attachment-menu .attachment-drop-zone.dragging{border-color:var(--grid-primary, #6750a4)!important;background:var(--grid-surface-container, #f3edf7)!important;transform:scale(1.01)!important}.attachment-menu .attachment-drop-zone .attachment-drop-content,.dropdown-menu .attachment-drop-zone .attachment-drop-content,.dropdown-menu.attachment-menu .attachment-drop-zone .attachment-drop-content,[cdkMenu].attachment-menu .attachment-drop-zone .attachment-drop-content{display:flex!important;flex-direction:column!important;align-items:center!important;gap:12px!important}.attachment-menu .attachment-drop-zone .attachment-drop-icon,.dropdown-menu .attachment-drop-zone .attachment-drop-icon,.dropdown-menu.attachment-menu .attachment-drop-zone .attachment-drop-icon,[cdkMenu].attachment-menu .attachment-drop-zone .attachment-drop-icon{font-size:48px!important;color:var(--grid-primary, #6750a4)!important;font-weight:300!important;line-height:1!important}.attachment-menu .attachment-drop-zone .attachment-drop-text .primary-text,.dropdown-menu .attachment-drop-zone .attachment-drop-text .primary-text,.dropdown-menu.attachment-menu .attachment-drop-zone .attachment-drop-text .primary-text,[cdkMenu].attachment-menu .attachment-drop-zone .attachment-drop-text .primary-text{font-family:var(--grid-font-family, \"Poppins\")!important;font-size:14px!important;color:var(--grid-on-surface-variant, #49454f)!important;font-weight:400!important;margin:0!important}.attachment-menu .attachment-drop-zone .attachment-drop-text .secondary-text,.dropdown-menu .attachment-drop-zone .attachment-drop-text .secondary-text,.dropdown-menu.attachment-menu .attachment-drop-zone .attachment-drop-text .secondary-text,[cdkMenu].attachment-menu .attachment-drop-zone .attachment-drop-text .secondary-text{font-family:var(--grid-font-family, \"Poppins\")!important;font-size:12px!important;color:var(--grid-on-surface-variant, #49454f)!important;margin-top:4px!important;display:block!important}.attachment-menu .attachment-file-list,.dropdown-menu .attachment-file-list,.dropdown-menu.attachment-menu .attachment-file-list,[cdkMenu].attachment-menu .attachment-file-list{display:block!important;margin-top:16px!important;border-top:1px solid var(--grid-outline-variant, #cac4d0)!important;padding-top:16px!important}.attachment-menu .attachment-file-list .attachment-file-item,.dropdown-menu .attachment-file-list .attachment-file-item,.dropdown-menu.attachment-menu .attachment-file-list .attachment-file-item,[cdkMenu].attachment-menu .attachment-file-list .attachment-file-item{display:flex!important;align-items:center!important;justify-content:space-between!important;padding:8px 0!important;border-bottom:1px solid var(--grid-outline-variant, #cac4d0)!important}.attachment-menu .attachment-file-list .attachment-file-item:last-child,.dropdown-menu .attachment-file-list .attachment-file-item:last-child,.dropdown-menu.attachment-menu .attachment-file-list .attachment-file-item:last-child,[cdkMenu].attachment-menu .attachment-file-list .attachment-file-item:last-child{border-bottom:none!important}.attachment-menu .attachment-file-list .attachment-file-item .file-info,.dropdown-menu .attachment-file-list .attachment-file-item .file-info,.dropdown-menu.attachment-menu .attachment-file-list .attachment-file-item .file-info,[cdkMenu].attachment-menu .attachment-file-list .attachment-file-item .file-info{display:flex!important;align-items:center!important;gap:8px!important;flex:1!important}.attachment-menu .attachment-file-list .attachment-file-item .file-info .file-icon,.dropdown-menu .attachment-file-list .attachment-file-item .file-info .file-icon,.dropdown-menu.attachment-menu .attachment-file-list .attachment-file-item .file-info .file-icon,[cdkMenu].attachment-menu .attachment-file-list .attachment-file-item .file-info .file-icon{font-size:16px!important;color:var(--grid-on-surface-variant, #49454f)!important}.attachment-menu .attachment-file-list .attachment-file-item .file-info .file-name,.dropdown-menu .attachment-file-list .attachment-file-item .file-info .file-name,.dropdown-menu.attachment-menu .attachment-file-list .attachment-file-item .file-info .file-name,[cdkMenu].attachment-menu .attachment-file-list .attachment-file-item .file-info .file-name{font-family:var(--grid-font-family, \"Poppins\")!important;font-size:14px!important;color:var(--grid-on-surface, #1d1b20)!important;word-break:break-word!important}.attachment-menu .attachment-file-list .attachment-file-item .file-actions,.dropdown-menu .attachment-file-list .attachment-file-item .file-actions,.dropdown-menu.attachment-menu .attachment-file-list .attachment-file-item .file-actions,[cdkMenu].attachment-menu .attachment-file-list .attachment-file-item .file-actions{display:flex!important;gap:4px!important}.attachment-menu .attachment-file-list .attachment-file-item .file-actions .action-btn,.dropdown-menu .attachment-file-list .attachment-file-item .file-actions .action-btn,.dropdown-menu.attachment-menu .attachment-file-list .attachment-file-item .file-actions .action-btn,[cdkMenu].attachment-menu .attachment-file-list .attachment-file-item .file-actions .action-btn{width:24px!important;height:24px!important;border:none!important;background:transparent!important;cursor:pointer!important;border-radius:4px!important;font-size:14px!important;color:var(--grid-on-surface-variant, #49454f)!important;transition:background-color .2s ease!important}.attachment-menu .attachment-file-list .attachment-file-item .file-actions .action-btn:hover,.dropdown-menu .attachment-file-list .attachment-file-item .file-actions .action-btn:hover,.dropdown-menu.attachment-menu .attachment-file-list .attachment-file-item .file-actions .action-btn:hover,[cdkMenu].attachment-menu .attachment-file-list .attachment-file-item .file-actions .action-btn:hover{background:var(--grid-surface-container, #f3edf7)!important}.cdk-overlay-container .cdk-overlay-pane .attachment-menu,.cdk-overlay-container .attachment-menu,.cdk-overlay-pane .attachment-menu{background:var(--grid-surface, #fef7ff)!important;background-color:var(--grid-surface, #fef7ff)!important;border:1px solid var(--grid-outline-variant, #cac4d0)!important;box-shadow:var(--grid-elevation-2, 0px 1px 2px 0px rgba(0, 0, 0, .3), 0px 2px 6px 2px rgba(0, 0, 0, .15))!important;border-radius:8px!important;font-family:var(--grid-font-family, \"Poppins\")!important}.cdk-overlay-container .cdk-overlay-pane .attachment-menu .attachment-container,.cdk-overlay-container .attachment-menu .attachment-container,.cdk-overlay-pane .attachment-menu .attachment-container{padding:4px;background:var(--grid-surface, #fef7ff)!important}.cdk-overlay-container .cdk-overlay-pane .attachment-menu .attachment-header,.cdk-overlay-container .attachment-menu .attachment-header,.cdk-overlay-pane .attachment-menu .attachment-header{display:flex!important;justify-content:space-between!important;align-items:center!important;margin-bottom:24px!important;padding:0!important}.cdk-overlay-container .cdk-overlay-pane .attachment-menu .attachment-header .attachment-title,.cdk-overlay-container .attachment-menu .attachment-header .attachment-title,.cdk-overlay-pane .attachment-menu .attachment-header .attachment-title{font-family:var(--grid-font-family, \"Poppins\")!important;font-size:16px!important;font-weight:500!important;color:var(--grid-on-surface, #1d1b20)!important;margin:0!important}.cdk-overlay-container .cdk-overlay-pane .attachment-menu .attachment-header .attachment-upload-btn,.cdk-overlay-container .attachment-menu .attachment-header .attachment-upload-btn,.cdk-overlay-pane .attachment-menu .attachment-header .attachment-upload-btn{background:var(--grid-primary, #6750a4)!important;background-color:var(--grid-primary, #6750a4)!important;color:var(--grid-on-primary, #ffffff)!important;font-family:var(--grid-font-family, \"Poppins\")!important;font-weight:500!important;padding:8px 20px!important;border-radius:6px!important;border:none!important;cursor:pointer!important;font-size:14px!important;letter-spacing:.5px!important;box-shadow:var(--grid-elevation-1, 0px 1px 2px 0px rgba(0, 0, 0, .3), 0px 1px 3px 1px rgba(0, 0, 0, .15))!important;transition:background-color .2s ease!important}.cdk-overlay-container .cdk-overlay-pane .attachment-menu .attachment-header .attachment-upload-btn:hover,.cdk-overlay-container .attachment-menu .attachment-header .attachment-upload-btn:hover,.cdk-overlay-pane .attachment-menu .attachment-header .attachment-upload-btn:hover{opacity:.9!important}.cdk-overlay-container .cdk-overlay-pane .attachment-menu .attachment-header .attachment-upload-btn .mdc-button__label,.cdk-overlay-container .attachment-menu .attachment-header .attachment-upload-btn .mdc-button__label,.cdk-overlay-pane .attachment-menu .attachment-header .attachment-upload-btn .mdc-button__label{color:var(--grid-on-primary, #ffffff)!important}.cdk-overlay-container .cdk-overlay-pane .attachment-menu .attachment-drop-zone,.cdk-overlay-container .attachment-menu .attachment-drop-zone,.cdk-overlay-pane .attachment-menu .attachment-drop-zone{border:2px dashed var(--grid-outline-variant, #cac4d0)!important;border-radius:8px!important;padding:40px 20px!important;text-align:center!important;cursor:pointer!important;transition:all .3s ease!important;background:var(--grid-surface-variant, #e7e0ec)!important;margin:16px 0!important}.cdk-overlay-container .cdk-overlay-pane .attachment-menu .attachment-drop-zone:hover,.cdk-overlay-container .attachment-menu .attachment-drop-zone:hover,.cdk-overlay-pane .attachment-menu .attachment-drop-zone:hover{border-color:var(--grid-primary, #6750a4)!important;background:var(--grid-surface-container, #f3edf7)!important}.cdk-overlay-container .cdk-overlay-pane .attachment-menu .attachment-drop-zone.dragging,.cdk-overlay-container .attachment-menu .attachment-drop-zone.dragging,.cdk-overlay-pane .attachment-menu .attachment-drop-zone.dragging{border-color:var(--grid-primary, #6750a4)!important;background:var(--grid-surface-container, #f3edf7)!important;transform:scale(1.01)!important}.cdk-overlay-container .cdk-overlay-pane .attachment-menu .attachment-drop-zone .attachment-drop-content,.cdk-overlay-container .attachment-menu .attachment-drop-zone .attachment-drop-content,.cdk-overlay-pane .attachment-menu .attachment-drop-zone .attachment-drop-content{display:flex!important;flex-direction:column!important;align-items:center!important;gap:12px!important}.cdk-overlay-container .cdk-overlay-pane .attachment-menu .attachment-drop-zone .attachment-drop-icon,.cdk-overlay-container .attachment-menu .attachment-drop-zone .attachment-drop-icon,.cdk-overlay-pane .attachment-menu .attachment-drop-zone .attachment-drop-icon{font-size:48px!important;color:var(--grid-primary, #6750a4)!important;font-weight:300!important;line-height:1!important}.cdk-overlay-container .cdk-overlay-pane .attachment-menu .attachment-drop-zone .attachment-drop-text .primary-text,.cdk-overlay-container .attachment-menu .attachment-drop-zone .attachment-drop-text .primary-text,.cdk-overlay-pane .attachment-menu .attachment-drop-zone .attachment-drop-text .primary-text{font-family:var(--grid-font-family, \"Poppins\")!important;font-size:14px!important;color:var(--grid-on-surface-variant, #49454f)!important;font-weight:400!important;margin:0!important}.cdk-overlay-container .cdk-overlay-pane .attachment-menu .attachment-drop-zone .attachment-drop-text .secondary-text,.cdk-overlay-container .attachment-menu .attachment-drop-zone .attachment-drop-text .secondary-text,.cdk-overlay-pane .attachment-menu .attachment-drop-zone .attachment-drop-text .secondary-text{font-family:var(--grid-font-family, \"Poppins\")!important;font-size:12px!important;color:var(--grid-on-surface-variant, #49454f)!important;margin-top:4px!important;display:block!important}.cdk-overlay-container .cdk-overlay-pane .attachment-menu .attachment-file-list,.cdk-overlay-container .attachment-menu .attachment-file-list,.cdk-overlay-pane .attachment-menu .attachment-file-list{display:block!important;margin-top:16px!important;border-top:1px solid var(--grid-outline-variant, #cac4d0)!important;padding-top:16px!important}.cdk-overlay-container .cdk-overlay-pane .attachment-menu .attachment-file-list .attachment-file-item,.cdk-overlay-container .attachment-menu .attachment-file-list .attachment-file-item,.cdk-overlay-pane .attachment-menu .attachment-file-list .attachment-file-item{display:flex!important;align-items:center!important;justify-content:space-between!important;padding:8px 0!important;border-bottom:1px solid var(--grid-outline-variant, #cac4d0)!important}.cdk-overlay-container .cdk-overlay-pane .attachment-menu .attachment-file-list .attachment-file-item:last-child,.cdk-overlay-container .attachment-menu .attachment-file-list .attachment-file-item:last-child,.cdk-overlay-pane .attachment-menu .attachment-file-list .attachment-file-item:last-child{border-bottom:none!important}.cdk-overlay-container .cdk-overlay-pane .attachment-menu .attachment-file-list .attachment-file-item .file-info,.cdk-overlay-container .attachment-menu .attachment-file-list .attachment-file-item .file-info,.cdk-overlay-pane .attachment-menu .attachment-file-list .attachment-file-item .file-info{display:flex!important;align-items:center!important;gap:8px!important;flex:1!important}.cdk-overlay-container .cdk-overlay-pane .attachment-menu .attachment-file-list .attachment-file-item .file-info .file-icon,.cdk-overlay-container .attachment-menu .attachment-file-list .attachment-file-item .file-info .file-icon,.cdk-overlay-pane .attachment-menu .attachment-file-list .attachment-file-item .file-info .file-icon{font-size:16px!important;color:var(--grid-on-surface-variant, #49454f)!important}.cdk-overlay-container .cdk-overlay-pane .attachment-menu .attachment-file-list .attachment-file-item .file-info .file-name,.cdk-overlay-container .attachment-menu .attachment-file-list .attachment-file-item .file-info .file-name,.cdk-overlay-pane .attachment-menu .attachment-file-list .attachment-file-item .file-info .file-name{font-family:var(--grid-font-family, \"Poppins\")!important;font-size:14px!important;color:var(--grid-on-surface, #1d1b20)!important;word-break:break-word!important}.cdk-overlay-container .cdk-overlay-pane .attachment-menu .attachment-file-list .attachment-file-item .file-actions,.cdk-overlay-container .attachment-menu .attachment-file-list .attachment-file-item .file-actions,.cdk-overlay-pane .attachment-menu .attachment-file-list .attachment-file-item .file-actions{display:flex!important;gap:4px!important}.cdk-overlay-container .cdk-overlay-pane .attachment-menu .attachment-file-list .attachment-file-item .file-actions .action-btn,.cdk-overlay-container .attachment-menu .attachment-file-list .attachment-file-item .file-actions .action-btn,.cdk-overlay-pane .attachment-menu .attachment-file-list .attachment-file-item .file-actions .action-btn{width:24px!important;height:24px!important;border:none!important;background:transparent!important;cursor:pointer!important;border-radius:4px!important;font-size:14px!important;color:var(--grid-on-surface-variant, #49454f)!important;transition:background-color .2s ease!important}.cdk-overlay-container .cdk-overlay-pane .attachment-menu .attachment-file-list .attachment-file-item .file-actions .action-btn:hover,.cdk-overlay-container .attachment-menu .attachment-file-list .attachment-file-item .file-actions .action-btn:hover,.cdk-overlay-pane .attachment-menu .attachment-file-list .attachment-file-item .file-actions .action-btn:hover{background:var(--grid-surface-container, #f3edf7)!important}.cdk-overlay-container .cdk-overlay-pane .attachment-menu,.cdk-overlay-container .attachment-menu{background:var(--grid-surface, #fef7ff)!important;background-color:var(--grid-surface, #fef7ff)!important;border:1px solid var(--grid-outline-variant, #cac4d0)!important;box-shadow:var(--grid-elevation-2, 0px 1px 2px 0px rgba(0, 0, 0, .3), 0px 2px 6px 2px rgba(0, 0, 0, .15))!important}.attachment-cell-wrapper{position:relative;display:block;width:100%;height:100%;text-align:center;overflow:visible}.attachment-menu-overlay{position:absolute;z-index:1000;background:var(--grid-surface, #fef7ff);border:1px solid var(--grid-outline-variant, #cac4d0);box-shadow:var(--grid-elevation-2, 0px 1px 2px 0px rgba(0, 0, 0, .3), 0px 2px 6px 2px rgba(0, 0, 0, .15));border-radius:8px;font-family:var(--grid-font-family, \"Poppins\");color:var(--grid-on-surface, #1d1b20);overflow:visible;z-index:9999}.attachment-menu-overlay .attachment-container{padding:16px;background:var(--grid-surface, #fef7ff)}.attachment-menu-overlay .attachment-header{display:flex;justify-content:space-between;align-items:center;margin-bottom:24px;padding:0}.attachment-menu-overlay .attachment-header .attachment-title{font-family:var(--grid-font-family, \"Poppins\");font-size:16px;font-weight:500;color:var(--grid-on-surface, #1d1b20);margin:0}.attachment-menu-overlay .attachment-header .attachment-upload-btn{background:var(--grid-primary, #6750a4);background-color:var(--grid-primary, #6750a4);color:var(--grid-on-primary, #ffffff);font-family:var(--grid-font-family, \"Poppins\");font-weight:500;padding:8px 20px;border-radius:6px;border:none;cursor:pointer;font-size:14px;letter-spacing:.5px;box-shadow:var(--grid-elevation-1, 0px 1px 2px 0px rgba(0, 0, 0, .3), 0px 1px 3px 1px rgba(0, 0, 0, .15));transition:background-color .2s ease}.attachment-menu-overlay .attachment-header .attachment-upload-btn:hover{opacity:.9}.attachment-menu-overlay .attachment-header .attachment-upload-btn .mdc-button__label{color:var(--grid-on-primary, #ffffff)}.attachment-menu-overlay .attachment-drop-zone{border:2px dashed var(--grid-outline-variant, #cac4d0);border-radius:8px;padding:10px;text-align:center;cursor:pointer;transition:all .3s ease;background:var(--grid-surface-variant, #e7e0ec);margin:16px 0}.attachment-menu-overlay .attachment-drop-zone:hover{border-color:var(--grid-primary, #6750a4);background:var(--grid-surface-container, #f3edf7)}.attachment-menu-overlay .attachment-drop-zone.dragging{border-color:var(--grid-primary, #6750a4);background:var(--grid-surface-container, #f3edf7);transform:scale(1.01)}.attachment-menu-overlay .attachment-drop-zone .attachment-drop-content{display:flex;flex-direction:column;align-items:center;gap:12px}.attachment-menu-overlay .attachment-drop-zone .attachment-drop-icon{font-size:48px;color:var(--grid-primary, #6750a4);font-weight:300;line-height:1}.attachment-menu-overlay .attachment-drop-zone .attachment-drop-text .primary-text{font-family:var(--grid-font-family, \"Poppins\");font-size:14px;color:var(--grid-on-surface-variant, #49454f);font-weight:400;margin:0}.attachment-menu-overlay .attachment-drop-zone .attachment-drop-text .secondary-text{font-family:var(--grid-font-family, \"Poppins\");font-size:12px;color:var(--grid-on-surface-variant, #49454f);margin-top:4px;display:block}.attachment-menu-overlay .attachment-file-list{display:block;margin-top:16px;border-top:1px solid var(--grid-outline-variant, #cac4d0);padding-top:16px}.attachment-menu-overlay .attachment-file-list .attachment-file-item{display:flex;align-items:center;justify-content:space-between;padding:8px 0;border-bottom:1px solid var(--grid-outline-variant, #cac4d0)}.attachment-menu-overlay .attachment-file-list .attachment-file-item:last-child{border-bottom:none}.attachment-menu-overlay .attachment-file-list .attachment-file-item .file-info{display:flex;align-items:center;gap:8px;flex:1}.attachment-menu-overlay .attachment-file-list .attachment-file-item .file-info .file-icon{font-size:16px;color:var(--grid-on-surface-variant, #49454f)}.attachment-menu-overlay .attachment-file-list .attachment-file-item .file-info .file-name{font-family:var(--grid-font-family, \"Poppins\");font-size:14px;color:var(--grid-on-surface, #1d1b20);word-break:break-word}.attachment-menu-overlay .attachment-file-list .attachment-file-item .file-actions{display:flex;gap:4px}.attachment-menu-overlay .attachment-file-list .attachment-file-item .file-actions .action-btn{width:24px;height:24px;border:none;background:transparent;cursor:pointer;border-radius:4px;font-size:14px;color:var(--grid-on-surface-variant, #49454f);transition:background-color .2s ease}.attachment-menu-overlay .attachment-file-list .attachment-file-item .file-actions .action-btn:hover{background:var(--grid-surface-container, #f3edf7)}.cdk-overlay-container .cdk-overlay-pane .dropdown-menu,.cdk-overlay-container .dropdown-menu,.cdk-overlay-pane .dropdown-menu{background:var(--grid-surface, #fef7ff)!important;background-color:var(--grid-surface, #fef7ff)!important;border:1px solid var(--grid-outline-variant, #cac4d0)!important;box-shadow:var(--grid-elevation-2, 0px 1px 2px 0px rgba(0, 0, 0, .3), 0px 2px 6px 2px rgba(0, 0, 0, .15))!important;border-radius:8px!important;font-family:var(--grid-font-family, \"Poppins\")!important;color:var(--grid-on-surface, #1d1b20)!important;overflow:hidden!important;box-sizing:border-box!important}.cdk-overlay-container .cdk-overlay-pane .dropdown-menu .listbox-container,.cdk-overlay-container .dropdown-menu .listbox-container,.cdk-overlay-pane .dropdown-menu .listbox-container{padding:8px!important;background:var(--grid-surface, #fef7ff)!important}.cdk-overlay-container .cdk-overlay-pane .dropdown-menu .search-form-field,.cdk-overlay-container .dropdown-menu .search-form-field,.cdk-overlay-pane .dropdown-menu .search-form-field{width:100%!important;margin-bottom:8px!important}.cdk-overlay-container .cdk-overlay-pane .dropdown-menu .search-form-field .mat-mdc-form-field,.cdk-overlay-container .dropdown-menu .search-form-field .mat-mdc-form-field,.cdk-overlay-pane .dropdown-menu .search-form-field .mat-mdc-form-field{width:100%!important}.cdk-overlay-container .cdk-overlay-pane .dropdown-menu .search-form-field .mat-mdc-text-field-wrapper,.cdk-overlay-container .dropdown-menu .search-form-field .mat-mdc-text-field-wrapper,.cdk-overlay-pane .dropdown-menu .search-form-field .mat-mdc-text-field-wrapper{background:var(--grid-surface, #fffbfe)!important;border-radius:4px!important}.cdk-overlay-container .cdk-overlay-pane .dropdown-menu .search-form-field .mat-mdc-form-field-focus-overlay,.cdk-overlay-container .dropdown-menu .search-form-field .mat-mdc-form-field-focus-overlay,.cdk-overlay-pane .dropdown-menu .search-form-field .mat-mdc-form-field-focus-overlay{background:var(--grid-surface, #fffbfe)!important}.cdk-overlay-container .cdk-overlay-pane .dropdown-menu .search-form-field .mat-mdc-form-field-subscript-wrapper,.cdk-overlay-container .dropdown-menu .search-form-field .mat-mdc-form-field-subscript-wrapper,.cdk-overlay-pane .dropdown-menu .search-form-field .mat-mdc-form-field-subscript-wrapper{display:none!important}.cdk-overlay-container .cdk-overlay-pane .dropdown-menu .search-form-field input,.cdk-overlay-container .dropdown-menu .search-form-field input,.cdk-overlay-pane .dropdown-menu .search-form-field input{font-family:var(--grid-font-family, \"Poppins\")!important;font-size:14px!important;color:var(--grid-on-surface, #1d1b20)!important}.cdk-overlay-container .cdk-overlay-pane .dropdown-menu .select-all-container,.cdk-overlay-container .dropdown-menu .select-all-container,.cdk-overlay-pane .dropdown-menu .select-all-container{padding:8px 12px!important;border-bottom:1px solid var(--grid-outline-variant, #cac4d0)!important;margin-bottom:4px!important}.cdk-overlay-container .cdk-overlay-pane .dropdown-menu .select-all-container .select-all-text,.cdk-overlay-container .dropdown-menu .select-all-container .select-all-text,.cdk-overlay-pane .dropdown-menu .select-all-container .select-all-text{font-family:var(--grid-font-family, \"Poppins\")!important;font-size:14px!important;font-weight:500!important;color:var(--grid-on-surface, #1d1b20)!important;margin-left:8px!important}.cdk-overlay-container .cdk-overlay-pane .dropdown-menu .select-all-container mat-checkbox .mdc-checkbox .mdc-checkbox__checkmark,.cdk-overlay-container .dropdown-menu .select-all-container mat-checkbox .mdc-checkbox .mdc-checkbox__checkmark,.cdk-overlay-pane .dropdown-menu .select-all-container mat-checkbox .mdc-checkbox .mdc-checkbox__checkmark{color:var(--grid-on-primary, #ffffff)!important}.cdk-overlay-container .cdk-overlay-pane .dropdown-menu .select-all-container mat-checkbox.mat-mdc-checkbox-checked .mdc-checkbox__background,.cdk-overlay-container .dropdown-menu .select-all-container mat-checkbox.mat-mdc-checkbox-checked .mdc-checkbox__background,.cdk-overlay-pane .dropdown-menu .select-all-container mat-checkbox.mat-mdc-checkbox-checked .mdc-checkbox__background{background-color:var(--grid-primary, #6750a4)!important;border-color:var(--grid-primary, #6750a4)!important}.cdk-overlay-container .cdk-overlay-pane .dropdown-menu .select-all-container mat-checkbox.mat-mdc-checkbox-indeterminate .mdc-checkbox__background,.cdk-overlay-container .dropdown-menu .select-all-container mat-checkbox.mat-mdc-checkbox-indeterminate .mdc-checkbox__background,.cdk-overlay-pane .dropdown-menu .select-all-container mat-checkbox.mat-mdc-checkbox-indeterminate .mdc-checkbox__background{background-color:var(--grid-primary, #6750a4)!important;border-color:var(--grid-primary, #6750a4)!important}.cdk-overlay-container .cdk-overlay-pane .dropdown-menu .listbox,.cdk-overlay-container .dropdown-menu .listbox,.cdk-overlay-pane .dropdown-menu .listbox{list-style:none!important;margin:0!important;padding:0!important;max-height:200px!important;overflow-y:auto!important;background:var(--grid-surface, #fef7ff)!important}.cdk-overlay-container .cdk-overlay-pane .dropdown-menu .listbox::-webkit-scrollbar,.cdk-overlay-container .dropdown-menu .listbox::-webkit-scrollbar,.cdk-overlay-pane .dropdown-menu .listbox::-webkit-scrollbar{width:8px!important}.cdk-overlay-container .cdk-overlay-pane .dropdown-menu .listbox::-webkit-scrollbar-track,.cdk-overlay-container .dropdown-menu .listbox::-webkit-scrollbar-track,.cdk-overlay-pane .dropdown-menu .listbox::-webkit-scrollbar-track{background:var(--grid-surface-variant, #e7e0ec)!important;border-radius:4px!important}.cdk-overlay-container .cdk-overlay-pane .dropdown-menu .listbox::-webkit-scrollbar-thumb,.cdk-overlay-container .dropdown-menu .listbox::-webkit-scrollbar-thumb,.cdk-overlay-pane .dropdown-menu .listbox::-webkit-scrollbar-thumb{background:var(--grid-primary, #6750a4)!important;border-radius:4px!important}.cdk-overlay-container .cdk-overlay-pane .dropdown-menu .listbox::-webkit-scrollbar-thumb:hover,.cdk-overlay-container .dropdown-menu .listbox::-webkit-scrollbar-thumb:hover,.cdk-overlay-pane .dropdown-menu .listbox::-webkit-scrollbar-thumb:hover{background:var(--grid-primary, #6750a4)!important;opacity:.8!important}.cdk-overlay-container .cdk-overlay-pane .dropdown-menu .multi-listbox-option,.cdk-overlay-container .dropdown-menu .multi-listbox-option,.cdk-overlay-pane .dropdown-menu .multi-listbox-option{padding:4px 8px!important;margin:2px 0!important;border-radius:4px!important;cursor:pointer!important;font-family:var(--grid-font-family, \"Poppins\")!important;font-size:14px!important;color:var(--grid-on-surface, #1d1b20)!important;background:transparent!important;transition:background-color .2s ease!important;border:none!important;text-align:left!important;width:100%!important}.cdk-overlay-container .cdk-overlay-pane .dropdown-menu .multi-listbox-option:hover,.cdk-overlay-container .dropdown-menu .multi-listbox-option:hover,.cdk-overlay-pane .dropdown-menu .multi-listbox-option:hover{background:var(--grid-surface-container, #f3edf7)!important}.cdk-overlay-container .cdk-overlay-pane .dropdown-menu .multi-listbox-option.notext-overflow,.cdk-overlay-container .dropdown-menu .multi-listbox-option.notext-overflow,.cdk-overlay-pane .dropdown-menu .multi-listbox-option.notext-overflow{white-space:nowrap!important;overflow:hidden!important;text-overflow:ellipsis!important}.cdk-overlay-container .cdk-overlay-pane .dropdown-menu .multi-listbox-option .option-content,.cdk-overlay-container .dropdown-menu .multi-listbox-option .option-content,.cdk-overlay-pane .dropdown-menu .multi-listbox-option .option-content{display:flex!important;align-items:center!important;gap:8px!important;width:100%!important}.cdk-overlay-container .cdk-overlay-pane .dropdown-menu .multi-listbox-option .option-content .option-text,.cdk-overlay-container .dropdown-menu .multi-listbox-option .option-content .option-text,.cdk-overlay-pane .dropdown-menu .multi-listbox-option .option-content .option-text{flex:1!important;font-family:var(--grid-font-family, \"Poppins\")!important;font-size:14px!important;color:inherit!important}.cdk-overlay-container .cdk-overlay-pane .dropdown-menu .multi-listbox-option .option-content mat-checkbox,.cdk-overlay-container .dropdown-menu .multi-listbox-option .option-content mat-checkbox,.cdk-overlay-pane .dropdown-menu .multi-listbox-option .option-content mat-checkbox{flex-shrink:0!important}.cdk-overlay-container .cdk-overlay-pane .dropdown-menu .multi-listbox-option .option-content mat-checkbox .mdc-checkbox .mdc-checkbox__background,.cdk-overlay-container .dropdown-menu .multi-listbox-option .option-content mat-checkbox .mdc-checkbox .mdc-checkbox__background,.cdk-overlay-pane .dropdown-menu .multi-listbox-option .option-content mat-checkbox .mdc-checkbox .mdc-checkbox__background{border-color:var(--grid-outline, #79757f)!important}.cdk-overlay-container .cdk-overlay-pane .dropdown-menu .multi-listbox-option .option-content mat-checkbox .mdc-checkbox .mdc-checkbox__checkmark,.cdk-overlay-container .dropdown-menu .multi-listbox-option .option-content mat-checkbox .mdc-checkbox .mdc-checkbox__checkmark,.cdk-overlay-pane .dropdown-menu .multi-listbox-option .option-content mat-checkbox .mdc-checkbox .mdc-checkbox__checkmark{color:var(--grid-on-primary, #ffffff)!important}.cdk-overlay-container .cdk-overlay-pane .dropdown-menu .multi-listbox-option .option-content mat-checkbox.mat-mdc-checkbox-checked .mdc-checkbox__background,.cdk-overlay-container .dropdown-menu .multi-listbox-option .option-content mat-checkbox.mat-mdc-checkbox-checked .mdc-checkbox__background,.cdk-overlay-pane .dropdown-menu .multi-listbox-option .option-content mat-checkbox.mat-mdc-checkbox-checked .mdc-checkbox__background{background-color:var(--grid-primary, #6750a4)!important;border-color:var(--grid-primary, #6750a4)!important}.cdk-overlay-container .cdk-overlay-pane .dropdown-menu .listbox-option,.cdk-overlay-container .dropdown-menu .listbox-option,.cdk-overlay-pane .dropdown-menu .listbox-option{padding:4px 8px!important;margin:2px 0!important;border-radius:4px!important;cursor:pointer!important;font-family:var(--grid-font-family, \"Poppins\")!important;font-size:14px!important;color:var(--grid-on-surface, #1d1b20)!important;background:transparent!important;transition:background-color .2s ease!important;border:none!important;text-align:left!important;width:100%!important}.cdk-overlay-container .cdk-overlay-pane .dropdown-menu .listbox-option:hover,.cdk-overlay-container .dropdown-menu .listbox-option:hover,.cdk-overlay-pane .dropdown-menu .listbox-option:hover{background:var(--grid-surface-container, #f3edf7)!important}.cdk-overlay-container .cdk-overlay-pane .dropdown-menu .listbox-option.cdk-option-active,.cdk-overlay-container .dropdown-menu .listbox-option.cdk-option-active,.cdk-overlay-pane .dropdown-menu .listbox-option.cdk-option-active,.cdk-overlay-container .cdk-overlay-pane .dropdown-menu .listbox-option.cdk-option-selected,.cdk-overlay-container .dropdown-menu .listbox-option.cdk-option-selected,.cdk-overlay-pane .dropdown-menu .listbox-option.cdk-option-selected{background:var(--grid-primary, #6750a4)!important;color:var(--grid-on-primary, #ffffff)!important}.cdk-overlay-container .cdk-overlay-pane .dropdown-menu .listbox-option.notext-overflow,.cdk-overlay-container .dropdown-menu .listbox-option.notext-overflow,.cdk-overlay-pane .dropdown-menu .listbox-option.notext-overflow{white-space:nowrap!important;overflow:hidden!important;text-overflow:ellipsis!important}.cdk-overlay-container .cdk-overlay-pane .dropdown-menu .listbox-option .option-content,.cdk-overlay-container .dropdown-menu .listbox-option .option-content,.cdk-overlay-pane .dropdown-menu .listbox-option .option-content{display:flex!important;align-items:center!important;gap:8px!important;width:100%!important}.cdk-overlay-container .cdk-overlay-pane .dropdown-menu .listbox-option .option-content .option-text,.cdk-overlay-container .dropdown-menu .listbox-option .option-content .option-text,.cdk-overlay-pane .dropdown-menu .listbox-option .option-content .option-text{flex:1!important;font-family:var(--grid-font-family, \"Poppins\")!important;font-size:14px!important;color:inherit!important}.cell-display-text-editable{cursor:pointer!important}.cell-display-text{width:100%!important;height:100%!important;min-height:20px!important;display:block!important;padding:4px 8px!important;font-family:var(--grid-font-family, \"Poppins\")!important;font-size:var(--grid-font-size-body, 12px)!important;color:var(--grid-on-surface, #1d1b20)!important;background:transparent!important;border:none!important;outline:none!important;text-overflow:ellipsis!important;overflow:hidden!important;white-space:nowrap!important;max-width:100%!important;box-sizing:border-box!important;transition:background-color .2s ease!important;line-height:1.4!important}.cell-display-text,.cell-display-text>*{text-overflow:ellipsis!important;overflow:hidden!important;white-space:nowrap!important;max-width:100%!important;width:100%!important;display:block!important}.cell-display-text:empty:before{content:\"Click to select\"!important;color:var(--grid-on-surface-variant, #49454f)!important;font-style:italic!important}.cell-display-number{text-align:var(--grid-number-text-align, right)}.aggregation .cell-display-number{text-align:var(--grid-aggregation-text-align, right)}.assignee-avatars{display:flex;align-items:center;padding:4px 8px;min-height:20px}.avatar-circle{width:28px;height:28px;border-radius:50%;background-color:var(--grid-primary, #6750a4);color:#fff;display:flex;align-items:center;justify-content:center;font-size:12px;font-weight:600;border:2px solid var(--grid-surface, #fef7ff);margin-left:-8px;position:relative;z-index:1}.avatar-circle:first-child{margin-left:0}.avatar-circle.count-circle{background-color:var(--grid-surface-variant, #e7e0ec);color:var(--grid-on-surface-variant, #49454f);font-size:11px;font-weight:500}.no-assignees{color:var(--grid-on-surface-variant, #49454f);font-style:italic;font-size:12px}.option-content{display:flex;align-items:center;gap:8px;width:100%}.option-avatar{width:24px;height:24px;border-radius:50%;background-color:var(--grid-primary, #6750a4);color:#fff;display:flex;align-items:center;justify-content:center;font-size:10px;font-weight:600;flex-shrink:0}.option-text{flex:1;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.checkmark{color:var(--grid-primary, #6750a4);font-weight:700;font-size:14px;flex-shrink:0}.drillable-value{color:var(--grid-primary, #6750a4);text-decoration:underline;text-decoration-color:var(--grid-primary, #6750a4);text-decoration-thickness:1px;text-underline-offset:2px;transition:all .2s ease}.drillable-link{cursor:pointer;padding:4px}\n"], dependencies: [{ kind: "directive", type: NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "ngmodule", type: CommonModule }, { kind: "directive", type: i2$1.NgForOf, selector: "[ngFor][ngForOf]", inputs: ["ngForOf", "ngForTrackBy", "ngForTemplate"] }, { kind: "ngmodule", type: MatFormFieldModule }, { kind: "component", type: i2$2.MatFormField, selector: "mat-form-field", inputs: ["hideRequiredMarker", "color", "floatLabel", "appearance", "subscriptSizing", "hintLabel"], exportAs: ["matFormField"] }, { kind: "directive", type: i2$2.MatPrefix, selector: "[matPrefix], [matIconPrefix], [matTextPrefix]", inputs: ["matTextPrefix"] }, { kind: "directive", type: i2$2.MatSuffix, selector: "[matSuffix], [matIconSuffix], [matTextSuffix]", inputs: ["matTextSuffix"] }, { kind: "ngmodule", type: MatInputModule }, { kind: "directive", type: i3.MatInput, selector: "input[matInput], textarea[matInput], select[matNativeControl], input[matNativeControl], textarea[matNativeControl]", inputs: ["disabled", "id", "placeholder", "name", "required", "type", "errorStateMatcher", "aria-describedby", "value", "readonly", "disabledInteractive"], exportAs: ["matInput"] }, { kind: "ngmodule", type: MatButtonModule }, { kind: "component", type: i4.MatButton, selector: " button[matButton], a[matButton], button[mat-button], button[mat-raised-button], button[mat-flat-button], button[mat-stroked-button], a[mat-button], a[mat-raised-button], a[mat-flat-button], a[mat-stroked-button] ", inputs: ["matButton"], exportAs: ["matButton", "matAnchor"] }, { kind: "ngmodule", type: MatCheckboxModule }, { kind: "component", type: i5.MatCheckbox, selector: "mat-checkbox", inputs: ["aria-label", "aria-labelledby", "aria-describedby", "aria-expanded", "aria-controls", "aria-owns", "id", "required", "labelPosition", "name", "value", "disableRipple", "tabIndex", "color", "disabledInteractive", "checked", "disabled", "indeterminate"], outputs: ["change", "indeterminateChange"], exportAs: ["matCheckbox"] }, { kind: "ngmodule", type: MatSliderModule }, { kind: "component", type: i6.MatSlider, selector: "mat-slider", inputs: ["disabled", "discrete", "showTickMarks", "min", "color", "disableRipple", "max", "step", "displayWith"], exportAs: ["matSlider"] }, { kind: "directive", type: i6.MatSliderThumb, selector: "input[matSliderThumb]", inputs: ["value"], outputs: ["valueChange", "dragStart", "dragEnd"], exportAs: ["matSliderThumb"] }, { kind: "ngmodule", type: MatIconModule }, { kind: "directive", type: CdkMenuTrigger, selector: "[cdkMenuTriggerFor]", inputs: ["cdkMenuTriggerFor", "cdkMenuPosition", "cdkMenuTriggerData"], outputs: ["cdkMenuOpened", "cdkMenuClosed"], exportAs: ["cdkMenuTriggerFor"] }, { kind: "ngmodule", type: FormsModule }, { kind: "directive", type: i1$1.DefaultValueAccessor, selector: "input:not([type=checkbox])[formControlName],textarea[formControlName],input:not([type=checkbox])[formControl],textarea[formControl],input:not([type=checkbox])[ngModel],textarea[ngModel],[ngDefaultControl]" }, { kind: "directive", type: i1$1.NgControlStatus, selector: "[formControlName],[ngModel],[formControl]" }, { kind: "directive", type: i1$1.NgModel, selector: "[ngModel]:not([formControlName]):not([formControl])", inputs: ["name", "disabled", "ngModel", "ngModelOptions"], outputs: ["ngModelChange"], exportAs: ["ngModel"] }, { kind: "directive", type: CdkListbox, selector: "[cdkListbox]", inputs: ["id", "tabindex", "cdkListboxValue", "cdkListboxMultiple", "cdkListboxDisabled", "cdkListboxUseActiveDescendant", "cdkListboxOrientation", "cdkListboxCompareWith", "cdkListboxNavigationWrapDisabled", "cdkListboxNavigatesDisabledOptions"], outputs: ["cdkListboxValueChange"], exportAs: ["cdkListbox"] }, { kind: "directive", type: CdkOption, selector: "[cdkOption]", inputs: ["id", "cdkOption", "cdkOptionTypeaheadLabel", "cdkOptionDisabled", "tabindex"], exportAs: ["cdkOption"] }, { kind: "directive", type: CdkMenu, selector: "[cdkMenu]", outputs: ["closed"], exportAs: ["cdkMenu"] }, { kind: "ngmodule", type: OverlayModule }, { kind: "directive", type: i1$2.CdkConnectedOverlay, selector: "[cdk-connected-overlay], [connected-overlay], [cdkConnectedOverlay]", inputs: ["cdkConnectedOverlayOrigin", "cdkConnectedOverlayPositions", "cdkConnectedOverlayPositionStrategy", "cdkConnectedOverlayOffsetX", "cdkConnectedOverlayOffsetY", "cdkConnectedOverlayWidth", "cdkConnectedOverlayHeight", "cdkConnectedOverlayMinWidth", "cdkConnectedOverlayMinHeight", "cdkConnectedOverlayBackdropClass", "cdkConnectedOverlayPanelClass", "cdkConnectedOverlayViewportMargin", "cdkConnectedOverlayScrollStrategy", "cdkConnectedOverlayOpen", "cdkConnectedOverlayDisableClose", "cdkConnectedOverlayTransformOriginOn", "cdkConnectedOverlayHasBackdrop", "cdkConnectedOverlayLockPosition", "cdkConnectedOverlayFlexibleDimensions", "cdkConnectedOverlayGrowAfterOpen", "cdkConnectedOverlayPush", "cdkConnectedOverlayDisposeOnNavigation"], outputs: ["backdropClick", "positionChange", "attach", "detach", "overlayKeydown", "overlayOutsideClick"], exportAs: ["cdkConnectedOverlay"] }, { kind: "directive", type: i1$2.CdkOverlayOrigin, selector: "[cdk-overlay-origin], [overlay-origin], [cdkOverlayOrigin]", exportAs: ["cdkOverlayOrigin"] }, { kind: "directive", type: CustomDatePickerDirective, selector: "[appCustomDatePicker]" }, { kind: "ngmodule", type: MatDatepickerModule }, { kind: "component", type: i9.MatDatepicker, selector: "mat-datepicker", exportAs: ["matDatepicker"] }, { kind: "directive", type: i9.MatDatepickerInput, selector: "input[matDatepicker]", inputs: ["matDatepicker", "min", "max", "matDatepickerFilter"], exportAs: ["matDatepickerInput"] }, { kind: "component", type: i9.MatDatepickerToggle, selector: "mat-datepicker-toggle", inputs: ["for", "tabIndex", "aria-label", "disabled", "disableRipple"], exportAs: ["matDatepickerToggle"] }, { kind: "ngmodule", type: MatNativeDateModule }, { kind: "component", type: MobileInputComponent, selector: "app-mobile-input", inputs: ["defaultCountry"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush, encapsulation: i0.ViewEncapsulation.None });
|
|
3455
4013
|
}
|
|
3456
4014
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.1.3", ngImport: i0, type: DataCellComponent, decorators: [{
|
|
3457
4015
|
type: Component,
|
|
@@ -3486,7 +4044,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.1.3", ngImpor
|
|
|
3486
4044
|
], host: {
|
|
3487
4045
|
'(document:click)': 'onDocumentClick($event)',
|
|
3488
4046
|
'class': 'data-cell-component'
|
|
3489
|
-
}, changeDetection: ChangeDetectionStrategy.OnPush, encapsulation: ViewEncapsulation.None, template: "<div class=\"container\">\n @switch (columnDatatype()) {\n @case ('textbox') {\n @if(isActive()){\n <mat-form-field appearance=\"outline\" class=\"cell-form-field\">\n <input matInput type=\"text\" [id]=\"'input-' + columnName()+ id()\" [name]=\"'input-' + columnName()+ id()\"\n [(ngModel)]=\"currentValue\" (blur)=\"onTextboxBlur()\">\n </mat-form-field>\n } @else {\n <div class=\"cell-display-text\" (dblclick)=\"setActive(true)\"\n [class.cell-display-text-editable]=\"isEditable()\">\n @if (drillable()) {\n <span class=\"drillable-value\" (click)=\"onDrillableClick($event)\">{{currentValue()}}</span>\n } @else {\n {{currentValue()}}\n }\n </div>\n }\n }\n @case ('currency') {\n @if(isActive()){\n <mat-form-field appearance=\"outline\" class=\"cell-form-field\">\n <input matInput type=\"text\" [id]=\"'currency-' + columnName()+ id()\" [name]=\"'currency-' + columnName()+ id()\"\n [ngModel]=\"currentValue()\" (ngModelChange)=\"setField($event)\" placeholder=\"Number\" (blur)=\"onNumberBlur()\">\n <span matTextPrefix>$</span>\n </mat-form-field>\n } @else {\n <div class=\"cell-display-text cell-display-number\" (dblclick)=\"setActive(true)\"\n [class.cell-display-text-editable]=\"isEditable()\">\n @if (drillable()) {\n <span class=\"drillable-value\" (click)=\"onDrillableClick($event)\">{{formatNumberSignal()}}</span>\n } @else {\n {{formatNumberSignal()}}\n }\n </div>\n }\n }\n @case ('number') {\n @if(isActive()){\n <mat-form-field appearance=\"outline\" class=\"cell-form-field\">\n <input matInput type=\"text\" [id]=\"'number-' + columnName()+ id()\" [name]=\"'number-' + columnName()+ id()\"\n [ngModel]=\"currentValue()\" (ngModelChange)=\"setField($event)\" placeholder=\"Number\" (blur)=\"onNumberBlur()\">\n </mat-form-field>\n } @else {\n <div class=\"cell-display-text cell-display-number\" (dblclick)=\"setActive(true)\"\n[class.cell-display-text-editable]=\"isEditable()\"\n >\n @if (drillable() && currentValue() !== 0) {\n <span class=\"drillable-value\" ><a class=\"drillable-link\" (click)=\"onDrillableClick($event)\">{{formatNumberSignal()}}</a></span>\n } @else {\n {{formatNumberSignal()}}\n }\n </div>\n }\n }\n @case ('location') {\n @if(isActive()){\n <mat-form-field appearance=\"outline\" class=\"cell-form-field\">\n <input matInput type=\"text\" [id]=\"'location-' + columnName()+ id()\" [name]=\"'location-' + columnName()+ id()\"\n [(ngModel)]=\"currentValue\" placeholder=\"location\" (blur)=\"onLocationBlur()\">\n </mat-form-field>\n } @else {\n <div class=\"cell-display-text\" (dblclick)=\"setActive(true)\"\n [class.cell-display-text-editable]=\"isEditable()\">\n @if (drillable()) {\n <span class=\"drillable-value\" (click)=\"onDrillableClick($event)\">{{currentValue()}}</span>\n } @else {\n {{currentValue()}}\n }\n </div>\n }\n }\n @case ('email') {\n @if(isActive()){\n <mat-form-field appearance=\"outline\" class=\"cell-form-field\">\n <input matInput type=\"email\" [id]=\"'email-' + columnName()+ id()\" [name]=\"'email-' + columnName()+ id()\"\n [(ngModel)]=\"currentValue\" placeholder=\"email\" matTooltipPosition=\"below\" (blur)=\"onEmailBlur()\">\n </mat-form-field>\n } @else {\n <div class=\"cell-display-text\" (dblclick)=\"setActive(true)\"\n [class.cell-display-text-editable]=\"isEditable()\">\n @if (drillable()) {\n <span class=\"drillable-value\" (click)=\"onDrillableClick($event)\">{{currentValue()}}</span>\n } @else {\n {{currentValue()}}\n }\n </div>\n }\n }\n @case ('dropdown_multi_select') {\n <div class=\"cell-display-text\" (dblclick)=\"toggleOverlayMenu($event)\" #multiSelectTrigger\n [class.cell-display-text-editable]=\"isEditable()\">\n @if (drillable()) {\n <span class=\"drillable-value\" (click)=\"onDrillableClick($event)\">{{formattedMultiSelectValue(currentColumnWidth()) || 'Click to select'}}</span>\n } @else {\n {{formattedMultiSelectValue(currentColumnWidth()) || 'Click to select'}}\n }\n </div>\n }\n\n @case ('dropdown_single_select') {\n <div class=\"cell-display-text\" (dblclick)=\"toggleOverlayMenu($event)\" [cdkMenuTriggerFor]=\"singleSelectTrigger\" #singleSelectTrigger\n [class.cell-display-text-editable]=\"isEditable()\">\n @if (drillable()) {\n <span class=\"drillable-value\" (click)=\"onDrillableClick($event)\">{{currentValue()}}</span>\n } @else {\n {{currentValue()}}\n }\n </div>\n }\n\n @case ('checkbox') {\n <div class=\"cell-form-field cell-checkbox\">\n <mat-checkbox [(ngModel)]=\"currentValue\">\n </mat-checkbox>\n </div>\n }\n\n @case ('people') {\n <div class=\"assignee-avatars \" (dblclick)=\"toggleOverlayMenu($event)\" #peopleTrigger>\n @if (isAssigneeArray(currentValue()) && currentValue().length > 0) {\n @if (drillable()) {\n <span class=\"drillable-value\" (click)=\"onDrillableClick($event)\">\n @for (assignee of currentValue(); track $index) {\n @if ($index < 3) {\n <div class=\"avatar-circle\" [style.z-index]=\"currentValue().length - $index\">\n {{ getInitials(assignee) }}\n </div>\n }\n }\n @if (currentValue().length > 3) {\n <div class=\"avatar-circle count-circle\" [style.z-index]=\"1\">\n +{{ currentValue().length - 3 }}\n </div>\n }\n </span>\n } @else {\n @for (assignee of currentValue(); track $index) {\n @if ($index < 3) {\n <div class=\"avatar-circle\" [style.z-index]=\"currentValue().length - $index\">\n {{ getInitials(assignee) }}\n </div>\n }\n }\n @if (currentValue().length > 3) {\n <div class=\"avatar-circle count-circle\" [style.z-index]=\"1\">\n +{{ currentValue().length - 3 }}\n </div>\n }\n }\n }\n </div>\n }\n\n\n @case ('date') {\n <div class=\"cell-date-container\">\n @if (drillable()) {\n <span class=\"drillable-value\" (click)=\"onDrillableClick($event)\">\n <input type=\"text\" [id]=\"'date-' + columnName()+ id()\" [name]=\"'date-' + columnName()+ id()\"\n [matDatepicker]=\"picker\" appCustomDatePicker class=\"inputRef date-picker\" [ngModel]=\"currentValue()\"\n (ngModelChange)=\"onDateChange($event)\" (click)=\"picker.open()\" readonly>\n <mat-datepicker-toggle hidden matIconSuffix [for]=\"picker\"></mat-datepicker-toggle>\n <mat-datepicker #picker></mat-datepicker>\n </span>\n } @else {\n <input type=\"text\" [id]=\"'date-' + columnName()+ id()\" [name]=\"'date-' + columnName()+ id()\"\n [matDatepicker]=\"picker\" appCustomDatePicker class=\"inputRef date-picker\" [ngModel]=\"currentValue()\"\n (ngModelChange)=\"onDateChange($event)\" (click)=\"picker.open()\" readonly>\n <mat-datepicker-toggle hidden matIconSuffix [for]=\"picker\"></mat-datepicker-toggle>\n <mat-datepicker #picker></mat-datepicker>\n }\n </div>\n }\n\n\n @case ('priority') {\n <button mat-stroked-button [cdkMenuTriggerFor]=\"prioritySelectMenu\" class=\"dropdown-trigger\">\n <div class=\"cell-priority-content\">\n <div [innerHTML]=\"getPriorityIcon()\"></div>\n @if (drillable()) {\n <div class=\"drillable-value\" (click)=\"onDrillableClick($event)\">{{currentValue()}}</div>\n } @else {\n <div>{{currentValue()}}</div>\n }\n </div>\n </button>\n }\n @case ('progress') {\n @if(isActive()){\n <div class=\"progress-input-container\">\n <mat-slider class=\"progress-slider\" [min]=\"0\" [max]=\"100\" [step]=\"1\" [discrete]=\"true\">\n <input matSliderThumb [ngModel]=\"currentValue()\" (ngModelChange)=\"setProgressValue($event)\">\n </mat-slider>\n <span class=\"progress-value\">{{currentValue()}}%</span>\n </div>\n } @else {\n <div class=\"progress-bar-container\" [attr.data-progress]=\"currentValue()\">\n <div class=\"progress-bar\" [style.width.%]=\"currentValue()\"></div>\n @if (drillable()) {\n <span class=\"progress-text drillable-value\" (click)=\"onDrillableClick($event)\">{{currentValue()}}%</span>\n } @else {\n <span class=\"progress-text\">{{currentValue()}}%</span>\n }\n </div>\n }\n }\n\n @case ('rating') {\n @if(isActive()){\n <div class=\"rating-input-container\">\n @for (star of getRatingStars(); track star) {\n <span class=\"rating-star\" [class.active]=\"currentValue() >= star\" (click)=\"setRatingValue(star)\"\n (mouseenter)=\"hoverRating = star\" (mouseleave)=\"hoverRating = 0\">\n {{getEmojiForRating(star)}}\n </span>\n }\n <span class=\"rating-value\">{{currentValue()}}/{{columnCellConfiguration()?.end_value || 5}}</span>\n </div>\n } @else {\n <div class=\"rating-display-container\">\n @for (star of getRatingStars(); track star) {\n <span class=\"rating-star\" [class.active]=\"currentValue() >= star\">\n {{getEmojiForRating(star)}}\n </span>\n }\n @if (drillable()) {\n <span class=\"drillable-value\" (click)=\"onDrillableClick($event)\">{{currentValue()}}/{{columnCellConfiguration()?.end_value || 5}}</span>\n }\n </div>\n }\n }\n\n @case ('status') {\n <button mat-stroked-button [cdkMenuTriggerFor]=\"statusSelectMenu\" class=\"status-dropdown-trigger\"\n [style.background-color]=\"getStatusColor(currentValue()).background\"\n [style.border-color]=\"getStatusColor(currentValue()).border\" [style.color]=\"getStatusColor(currentValue()).text\"\n [style.height.px]=\"30\">\n <div class=\"status-button-content\">\n @if(getStatusButtonDisplay(currentValue()).color) {\n\n }\n @if (drillable()) {\n <span class=\"status-text drillable-value\" (click)=\"onDrillableClick($event)\">\n {{getStatusButtonDisplay(currentValue()).text}}\n </span>\n } @else {\n <span class=\"status-text\">\n {{getStatusButtonDisplay(currentValue()).text}}\n </span>\n }\n </div>\n </button>\n }\n\n @case ('tag') {\n <div class=\"tag-container\" [cdkMenuTriggerFor]=\"tagSelectMenu\">\n\n <div class=\"tag-display\">\n @if (drillable()) {\n <span class=\"drillable-value\" (click)=\"onDrillableClick($event)\">\n @for (tag of getTagDisplay(currentValue()).displayTags; track tag) {\n @if (columnCellConfiguration()) {\n <span class=\"tag\" [style.background]=\"getTagColor(tag).background\" [style.color]=\"getTagColor(tag).color\">\n {{tag}}\n </span>\n } @else {\n <span class=\"tag cell-fallback-tag\">\n {{tag}}\n </span>\n }\n }\n @if(getTagDisplay(currentValue()).moreCount > 0) {\n <span class=\"tag-more\">\n + {{getTagDisplay(currentValue()).moreCount}} more\n </span>\n }\n </span>\n } @else {\n @for (tag of getTagDisplay(currentValue()).displayTags; track tag) {\n @if (columnCellConfiguration()) {\n <span class=\"tag\" [style.background]=\"getTagColor(tag).background\" [style.color]=\"getTagColor(tag).color\">\n {{tag}}\n </span>\n } @else {\n <span class=\"tag cell-fallback-tag\">\n {{tag}}\n </span>\n }\n }\n @if(getTagDisplay(currentValue()).moreCount > 0) {\n <span class=\"tag-more\">\n + {{getTagDisplay(currentValue()).moreCount}} more\n </span>\n }\n }\n </div>\n\n </div>\n }\n\n @case ('phone') {\n <app-mobile-input [(ngModel)]=\"currentValue\"\n [defaultCountry]=\"columnCellConfiguration()?.default_country || 'US'\"></app-mobile-input>\n }\n\n @case ('attachment') {\n <div class=\"attachment-cell-wrapper\" (dblclick)=\"toggleOverlayMenu($event)\" cdkOverlayOrigin #attachmentTrigger=\"cdkOverlayOrigin\">\n @if(currentValue()?.length > 0){\n <div class=\"cell-attachment-container\">\n @if (drillable()) {\n <span class=\"drillable-value\" (click)=\"onDrillableClick($event)\">\n <svg width=\"24\" height=\"24\" viewBox=\"0 0 24 24\" fill=\"none\" xmlns=\"http://www.w3.org/2000/svg\">\n <path fill-rule=\"evenodd\" clip-rule=\"evenodd\"\n d=\"M19 12.5C19 14.985 15.866 17 12 17C8.134 17 5 14.985 5 12.5C5 10.015 8.134 8 12 8C15.866 8 19 10.015 19 12.5Z\"\n stroke=\"#7C818C\" stroke-linecap=\"round\" stroke-linejoin=\"round\" />\n <path fill-rule=\"evenodd\" clip-rule=\"evenodd\"\n d=\"M13.75 12.5001C13.7716 13.1394 13.4429 13.7397 12.8925 14.0657C12.3422 14.3918 11.6578 14.3918 11.1075 14.0657C10.5571 13.7397 10.2284 13.1394 10.25 12.5001C10.2284 11.8608 10.5571 11.2606 11.1075 10.9345C11.6578 10.6084 12.3422 10.6084 12.8925 10.9345C13.4429 11.2606 13.7716 11.8608 13.75 12.5001V12.5001Z\"\n stroke=\"#7C818C\" stroke-linecap=\"round\" stroke-linejoin=\"round\" />\n </svg>\n </span>\n } @else {\n <svg width=\"24\" height=\"24\" viewBox=\"0 0 24 24\" fill=\"none\" xmlns=\"http://www.w3.org/2000/svg\">\n <path fill-rule=\"evenodd\" clip-rule=\"evenodd\"\n d=\"M19 12.5C19 14.985 15.866 17 12 17C8.134 17 5 14.985 5 12.5C5 10.015 8.134 8 12 8C15.866 8 19 10.015 19 12.5Z\"\n stroke=\"#7C818C\" stroke-linecap=\"round\" stroke-linejoin=\"round\" />\n <path fill-rule=\"evenodd\" clip-rule=\"evenodd\"\n d=\"M13.75 12.5001C13.7716 13.1394 13.4429 13.7397 12.8925 14.0657C12.3422 14.3918 11.6578 14.3918 11.1075 14.0657C10.5571 13.7397 10.2284 13.1394 10.25 12.5001C10.2284 11.8608 10.5571 11.2606 11.1075 10.9345C11.6578 10.6084 12.3422 10.6084 12.8925 10.9345C13.4429 11.2606 13.7716 11.8608 13.75 12.5001V12.5001Z\"\n stroke=\"#7C818C\" stroke-linecap=\"round\" stroke-linejoin=\"round\" />\n </svg>\n }\n </div>\n }@else {\n <div class=\"cell-attachment-container\">\n @if (drillable()) {\n <span class=\"drillable-value\" (click)=\"onDrillableClick($event)\">\n <svg width=\"24\" height=\"24\" viewBox=\"0 0 24 24\" fill=\"none\" xmlns=\"http://www.w3.org/2000/svg\">\n <path\n d=\"M14.67 11.053L10.68 15.315C10.3416 15.6932 9.85986 15.9119 9.35236 15.9178C8.84487 15.9237 8.35821 15.7162 8.01104 15.346C7.24412 14.5454 7.257 13.2788 8.04004 12.494L13.399 6.763C13.9902 6.10491 14.8315 5.72677 15.7161 5.72163C16.6006 5.71649 17.4463 6.08482 18.045 6.736C19.3222 8.14736 19.3131 10.2995 18.024 11.7L12.342 17.771C11.5334 18.5827 10.4265 19.0261 9.28113 18.9971C8.13575 18.9682 7.05268 18.4695 6.28604 17.618C4.5337 15.6414 4.57705 12.6549 6.38604 10.73L11.753 5\"\n stroke=\"#363B44\" stroke-linecap=\"round\" stroke-linejoin=\"round\" />\n </svg>\n </span>\n } @else {\n <svg width=\"24\" height=\"24\" viewBox=\"0 0 24 24\" fill=\"none\" xmlns=\"http://www.w3.org/2000/svg\">\n <path\n d=\"M14.67 11.053L10.68 15.315C10.3416 15.6932 9.85986 15.9119 9.35236 15.9178C8.84487 15.9237 8.35821 15.7162 8.01104 15.346C7.24412 14.5454 7.257 13.2788 8.04004 12.494L13.399 6.763C13.9902 6.10491 14.8315 5.72677 15.7161 5.72163C16.6006 5.71649 17.4463 6.08482 18.045 6.736C19.3222 8.14736 19.3131 10.2995 18.024 11.7L12.342 17.771C11.5334 18.5827 10.4265 19.0261 9.28113 18.9971C8.13575 18.9682 7.05268 18.4695 6.28604 17.618C4.5337 15.6414 4.57705 12.6549 6.38604 10.73L11.753 5\"\n stroke=\"#363B44\" stroke-linecap=\"round\" stroke-linejoin=\"round\" />\n </svg>\n }\n </div>\n }\n \n \n </div>\n }\n @default {\n <div class=\"cell-default-display\">\n @if (drillable()) {\n <span class=\"drillable-value\" (click)=\"onDrillableClick($event)\">{{value()}}</span>\n } @else {\n {{value()}}\n }\n </div>\n }\n }\n\n</div>\n\n<ng-template #prioritySelectMenu>\n <div class=\"dropdown-menu\" cdkMenu [style.min-width.px]=\"fieldSize()\" (closed)=\"singleOptionClosed()\">\n <div class=\"listbox-container\">\n <mat-form-field appearance=\"outline\" class=\"search-form-field\">\n <input matInput type=\"search\" placeholder=\"Search...\" [(ngModel)]=\"optionSearchText\">\n </mat-form-field>\n\n <ul cdkListbox [ngModel]=\"currentValue()\" (ngModelChange)=\"selectedSingleSelect($event)\"\n aria-labelledby=\"listbox-label\" class=\"listbox\">\n <li [cdkOption]=\"''\" class=\"listbox-option notext-overflow\">\n None\n </li>\n @for (option of filteredOptions(); track option) {\n <li [cdkOption]=\"option.value\" class=\"listbox-option notext-overflow cell-priority-content\">\n <div [innerHTML]=\"sanitize.bypassSecurityTrustHtml(option.icon)\"></div>\n <div>{{option.label}}</div>\n </li>\n }\n </ul>\n </div>\n </div>\n</ng-template>\n\n<ng-template cdkConnectedOverlay\n[cdkConnectedOverlayOrigin]=\"singleSelectTrigger\"\n[cdkConnectedOverlayOpen]=\"showOverlayMenu('dropdown_single_select')\"\n(detach)=\"isOpen = showOverlayMenu('dropdown_single_select')\">\n <div class=\"dropdown-menu\" cdkMenu [style.width.px]=\"currentColumnWidth()\" (closed)=\"singleOptionClosed()\">\n <div class=\"listbox-container\">\n <mat-form-field appearance=\"outline\" class=\"search-form-field\">\n <input matInput type=\"search\" placeholder=\"Search...\" (click)=\"$event.stopPropagation()\" [(ngModel)]=\"optionSearchText\">\n </mat-form-field>\n <ul cdkListbox [ngModel]=\"currentValue()\" (ngModelChange)=\"selectedSingleSelect($event)\"\n aria-labelledby=\"listbox-label\" class=\"listbox\">\n <li [cdkOption]=\"'None'\" class=\"listbox-option notext-overflow\">\n None\n </li>\n <li [cdkOption]=\"'option 1'\" class=\"listbox-option notext-overflow\">\n option 1\n </li>\n <li [cdkOption]=\"'option 2'\" class=\"listbox-option notext-overflow\">\n option 2\n </li>\n <li [cdkOption]=\"'option 3'\" class=\"listbox-option notext-overflow\">\n option 3\n </li>\n <li [cdkOption]=\"'option 4'\" class=\"listbox-option notext-overflow\">\n option 4\n </li><li [cdkOption]=\"'option 5'\" class=\"listbox-option notext-overflow\">\n option 5\n </li><li [cdkOption]=\"'option 6'\" class=\"listbox-option notext-overflow\">\n option 6\n </li><li [cdkOption]=\"'option 7'\" class=\"listbox-option notext-overflow\">\n option 7\n </li><li [cdkOption]=\"'option 1'\" class=\"listbox-option notext-overflow\">\n option 1\n </li><li [cdkOption]=\"'option 9'\" class=\"listbox-option notext-overflow\">\n option 9\n </li><li [cdkOption]=\"'option 10'\" class=\"listbox-option notext-overflow\">\n option 10\n </li><li [cdkOption]=\"'option 11'\" class=\"listbox-option notext-overflow\">\n option 11\n </li><li [cdkOption]=\"'option 12'\" class=\"listbox-option notext-overflow\">\n option 12\n </li><li [cdkOption]=\"'option 13'\" class=\"listbox-option notext-overflow\">\n option 13\n </li><li [cdkOption]=\"'option 14'\" class=\"listbox-option notext-overflow\">\n option 14\n </li><li [cdkOption]=\"'option 15'\" class=\"listbox-option notext-overflow\">\n option 15\n </li><li [cdkOption]=\"'option 16'\" class=\"listbox-option notext-overflow\">\n option 16\n </li><li [cdkOption]=\"'option 17'\" class=\"listbox-option notext-overflow\">\n option 17\n </li><li [cdkOption]=\"'option 18'\" class=\"listbox-option notext-overflow\">\n option 18\n </li>\n @for (option of filteredOptions(); track option) {\n <li [cdkOption]=\"option.value\" class=\"listbox-option notext-overflow\">\n {{option.label}}\n </li>\n }\n </ul>\n </div>\n </div>\n</ng-template>\n\n<ng-template \ncdkConnectedOverlay\n[cdkConnectedOverlayOrigin]=\"multiSelectTrigger\"\n[cdkConnectedOverlayOpen]=\"showOverlayMenu('dropdown_multi_select')\"\n(detach)=\"isOpen = showOverlayMenu('dropdown_multi_select')\">\n <div class=\"dropdown-menu\" cdkMenu [style.width.px]=\"currentColumnWidth()\" (closed)=\"singleOptionClosed()\">\n <div class=\"listbox-container\">\n <mat-form-field appearance=\"outline\" class=\"search-form-field\">\n <input matInput type=\"search\" placeholder=\"Search...\" [ngModel]=\"optionSearchText()\"\n (ngModelChange)=\"optionSearchText.set($event)\" (click)=\"$event.stopPropagation()\">\n </mat-form-field>\n \n <!-- Select All Checkbox -->\n <div class=\"select-all-container\" (click)=\"$event.stopPropagation()\">\n <mat-checkbox \n [checked]=\"isAllSelected()\" \n [indeterminate]=\"isIndeterminate()\"\n (change)=\"toggleSelectAll($event.checked)\">\n <span class=\"select-all-text\">Select All</span>\n </mat-checkbox>\n </div>\n \n <ul cdkListboxMultiple=\"true\" cdkListboxUseActiveDescendant cdkListbox [ngModel]=\"currentValue()\"\n (ngModelChange)=\"selectedMultiSelect($event)\" aria-labelledby=\"listbox-labssel\" class=\"listbox\" (click)=\"$event.stopPropagation()\">\n <li [cdkOption]=\"'None'\" class=\"multi-listbox-option notext-overflow\">\n <div class=\"option-content\">\n <mat-checkbox [checked]=\"isOptionSelected('None')\" (click)=\"$event.stopPropagation();appendMultiSelect('None')\"></mat-checkbox>\n <span class=\"option-text\">None</span>\n </div>\n </li>\n <li [cdkOption]=\"'option 1'\" class=\"multi-listbox-option notext-overflow\">\n <div class=\"option-content\">\n <mat-checkbox [checked]=\"isOptionSelected('option 1')\" (click)=\"$event.stopPropagation();appendMultiSelect('option 1')\"></mat-checkbox>\n <span class=\"option-text\">option 1</span>\n </div>\n </li>\n <li [cdkOption]=\"'option 2'\" class=\"multi-listbox-option notext-overflow\">\n <div class=\"option-content\">\n <mat-checkbox [checked]=\"isOptionSelected('option 2')\" (click)=\"$event.stopPropagation();appendMultiSelect('option 2')\"></mat-checkbox>\n <span class=\"option-text\">option 2</span>\n </div>\n </li>\n <li [cdkOption]=\"'option 3'\" class=\"multi-listbox-option notext-overflow\">\n <div class=\"option-content\">\n <mat-checkbox [checked]=\"isOptionSelected('option 3')\" (click)=\"$event.stopPropagation();appendMultiSelect('option 3')\"></mat-checkbox>\n <span class=\"option-text\">option 3</span>\n </div>\n </li>\n <li [cdkOption]=\"'option 4'\" class=\"multi-listbox-option notext-overflow\">\n <div class=\"option-content\">\n <mat-checkbox [checked]=\"isOptionSelected('option 4')\" (click)=\"$event.stopPropagation();appendMultiSelect('option 4')\"></mat-checkbox>\n <span class=\"option-text\">option 4</span>\n </div>\n </li>\n <li [cdkOption]=\"'option 5'\" class=\"multi-listbox-option notext-overflow\">\n <div class=\"option-content\">\n <mat-checkbox [checked]=\"isOptionSelected('option 5')\" (click)=\"$event.stopPropagation();appendMultiSelect('option 5')\"></mat-checkbox>\n <span class=\"option-text\">option 5</span>\n </div>\n </li>\n <li [cdkOption]=\"'option 6'\" class=\"multi-listbox-option notext-overflow\">\n <div class=\"option-content\">\n <mat-checkbox [checked]=\"isOptionSelected('option 6')\" (click)=\"$event.stopPropagation();appendMultiSelect('option 6')\"></mat-checkbox>\n <span class=\"option-text\">option 6</span>\n </div>\n </li>\n <li [cdkOption]=\"'option 7'\" class=\"multi-listbox-option notext-overflow\">\n <div class=\"option-content\">\n <mat-checkbox [checked]=\"isOptionSelected('option 7')\" (click)=\"$event.stopPropagation();appendMultiSelect('option 7')\"></mat-checkbox>\n <span class=\"option-text\">option 7</span>\n </div>\n </li>\n <li [cdkOption]=\"'option 8'\" class=\"multi-listbox-option notext-overflow\">\n <div class=\"option-content\">\n <mat-checkbox [checked]=\"isOptionSelected('option 8')\" (click)=\"$event.stopPropagation();appendMultiSelect('option 8')\"></mat-checkbox>\n <span class=\"option-text\">option 8</span>\n </div>\n </li>\n <li [cdkOption]=\"'option 9'\" class=\"multi-listbox-option notext-overflow\">\n <div class=\"option-content\">\n <mat-checkbox [checked]=\"isOptionSelected('option 9')\" (click)=\"$event.stopPropagation();appendMultiSelect('option 9')\"></mat-checkbox>\n <span class=\"option-text\">option 9</span>\n </div>\n </li>\n <li [cdkOption]=\"'option 10'\" class=\"multi-listbox-option notext-overflow\">\n <div class=\"option-content\">\n <mat-checkbox [checked]=\"isOptionSelected('option 10')\" (click)=\"$event.stopPropagation();appendMultiSelect('option 10')\"></mat-checkbox>\n <span class=\"option-text\">option 10</span>\n </div>\n </li>\n @for (option of filteredOptions(); track option) {\n <li [cdkOption]=\"option.value\" class=\"multi-listbox-option notext-overflow\">\n <div class=\"option-content\">\n <mat-checkbox [checked]=\"isOptionSelected(option.value)\" (click)=\"$event.stopPropagation();appendMultiSelect(option.value)\"></mat-checkbox>\n <span class=\"option-text\">{{option.label}}</span>\n </div>\n </li>\n }\n </ul>\n </div>\n </div>\n</ng-template>\n\n<ng-template cdkConnectedOverlay\n[cdkConnectedOverlayOrigin]=\"peopleTrigger\"\n[cdkConnectedOverlayOpen]=\"showOverlayMenu('people')\"\n(detach)=\"isOpen = showOverlayMenu('people')\">\n <div class=\"dropdown-menu\" cdkMenu [style.width.px]=\"currentColumnWidth()\" (closed)=\"singleOptionClosed()\">\n <div class=\"listbox-container\">\n <mat-form-field appearance=\"outline\" class=\"search-form-field\">\n <input matInput type=\"search\" placeholder=\"Search...\" [ngModel]=\"optionSearchText()\" (click)=\"$event.stopPropagation()\"\n (ngModelChange)=\"optionSearchText.set($event)\">\n </mat-form-field>\n <ul cdkListboxMultiple=\"true\" cdkListboxUseActiveDescendant cdkListbox [ngModel]=\"currentValue()\"\n (ngModelChange)=\"selectedMultiSelect($event)\" aria-labelledby=\"listbox-labssel\" class=\"listbox\">\n <li [cdkOption]=\"'person0@domain.com'\" class=\"multi-listbox-option notext-overflow\">\n <div class=\"option-content\">\n <div class=\"option-avatar\">{{ getInitials('person0@domain.com') }}</div>\n <span class=\"option-text\">person0@domain.com</span>\n @if (isOptionSelected('person0@domain.com')) {\n <span class=\"checkmark\">\u2713</span>\n }\n </div>\n </li>\n <li [cdkOption]=\"'person1@domain.com'\" class=\"multi-listbox-option notext-overflow\">\n <div class=\"option-content\">\n <div class=\"option-avatar\">{{ getInitials('person1@domain.com') }}</div>\n <span class=\"option-text\">person1@domain.com</span>\n @if (isOptionSelected('person1@domain.com')) {\n <span class=\"checkmark\">\u2713</span>\n }\n </div>\n </li>\n <li [cdkOption]=\"'person2@domain.com'\" class=\"multi-listbox-option notext-overflow\">\n <div class=\"option-content\">\n <div class=\"option-avatar\">{{ getInitials('person2@domain.com') }}</div>\n <span class=\"option-text\">person2@domain.com</span>\n @if (isOptionSelected('person2@domain.com')) {\n <span class=\"checkmark\">\u2713</span>\n }\n </div>\n </li>\n <li [cdkOption]=\"'person3@domain.com'\" class=\"multi-listbox-option notext-overflow\">\n <div class=\"option-content\">\n <div class=\"option-avatar\">{{ getInitials('person3@domain.com') }}</div>\n <span class=\"option-text\">person3@domain.com</span>\n @if (isOptionSelected('person3@domain.com')) {\n <span class=\"checkmark\">\u2713</span>\n }\n </div>\n </li>\n <li [cdkOption]=\"'person4@domain.com'\" class=\"multi-listbox-option notext-overflow\">\n <div class=\"option-content\">\n <div class=\"option-avatar\">{{ getInitials('person4@domain.com') }}</div>\n <span class=\"option-text\">person4@domain.com</span>\n @if (isOptionSelected('person4@domain.com')) {\n <span class=\"checkmark\">\u2713</span>\n }\n </div>\n </li>\n <li [cdkOption]=\"'person5@domain.com'\" class=\"multi-listbox-option notext-overflow\">\n <div class=\"option-content\">\n <div class=\"option-avatar\">{{ getInitials('person5@domain.com') }}</div>\n <span class=\"option-text\">person5@domain.com</span>\n @if (isOptionSelected('person5@domain.com')) {\n <span class=\"checkmark\">\u2713</span>\n }\n </div>\n </li>\n @for (option of filteredOptions(); track option) {\n <li [cdkOption]=\"option.value\" class=\"multi-listbox-option notext-overflow listbox-option_people\">\n <div class=\"option-content\">\n <div class=\"option-avatar\">{{ getInitials(option.value) }}</div>\n <span class=\"option-text\">{{option.label}}</span>\n @if (isOptionSelected(option.value)) {\n <span class=\"checkmark\">\u2713</span>\n }\n </div>\n </li>\n }\n </ul>\n </div>\n </div>\n</ng-template>\n\n<ng-template #statusSelectMenu>\n <div class=\"dropdown-menu status-dropdown-menu\" cdkMenu [style.min-width.px]=\"fieldSize()\"\n (closed)=\"singleOptionClosed()\">\n <div class=\"listbox-container\">\n <mat-form-field appearance=\"outline\" class=\"search-form-field\">\n <input matInput type=\"search\" placeholder=\"Search...\" [(ngModel)]=\"optionSearchText\">\n </mat-form-field>\n\n <ul cdkListbox [ngModel]=\"currentValue()\" (ngModelChange)=\"selectedSingleSelect($event)\"\n aria-labelledby=\"listbox-label\" class=\"listbox status-listbox\">\n <li [cdkOption]=\"''\" class=\"listbox-option notext-overflow\">\n None\n </li>\n @for (option of getStatusOptions(); track option.value) {\n <li [cdkOption]=\"option.value\" class=\"listbox-option status-option\"\n [style.background-color]=\"getStatusColor(option.value).background\"\n [style.border-color]=\"getStatusColor(option.value).border\" [style.color]=\"getStatusColor(option.value).text\">\n @if(option.color) {\n <span class=\"status-color-indicator\" [style.background-color]=\"option.color\"></span>\n }\n {{option.label}}\n </li>\n }\n </ul>\n </div>\n </div>\n</ng-template>\n\n<ng-template #tagSelectMenu>\n <div class=\"dropdown-menu tag-dropdown-menu\" [style.min-width.px]=\"fieldSize()\">\n <div class=\"listbox-container\">\n <mat-form-field appearance=\"outline\" class=\"search-form-field\">\n <input matInput type=\"search\" placeholder=\"Search or add tag...\" [ngModel]=\"optionSearchText()\"\n (ngModelChange)=\"optionSearchText.set($event)\" (keyup.enter)=\"addNewTag(optionSearchText())\"\n [style.min-width.px]=\"fieldSize()\">\n </mat-form-field>\n\n <ul cdkListboxMultiple=\"true\" cdkListbox [ngModel]=\"currentValue()\" (ngModelChange)=\"selectedMultiSelect($event)\"\n class=\"listbox tag-listbox\" [style.min-width.px]=\"fieldSize()\">\n <!-- Predefined tags -->\n @for (option of getTagOptions(); track option.value) {\n <li [cdkOption]=\"option.value\" class=\"listbox-option tag-option\">\n {{option.label}}\n </li>\n }\n\n <!-- New tag input -->\n\n\n\n </ul>\n\n </div>\n </div>\n</ng-template>\n\n<!-- Attachment Menu - Positioned relative to the cell -->\n<ng-template \ncdkConnectedOverlay\n[cdkConnectedOverlayOrigin]=\"attachmentTrigger\"\n[cdkConnectedOverlayOpen]=\"showOverlayMenu('attachment')\"\n(detach)=\"isOpen = showOverlayMenu('attachment')\">\n <div class=\"attachment-menu-overlay\" [style.width.px]=\"currentColumnWidth()\" [style.min-width.px]=\"300\">\n <div class=\"attachment-container\">\n <!-- Header Section -->\n <div class=\"attachment-header\">\n <span class=\"attachment-title\">Add or Drag files</span>\n <button mat-flat-button \n (click)=\"fileInput.click()\" \n class=\"attachment-upload-btn\">\n Upload\n </button>\n </div>\n \n <!-- Drop zone -->\n <div class=\"attachment-drop-zone\" \n (drop)=\"onFileDrop($event)\" \n (dragover)=\"onDragOver($event)\" \n (dragleave)=\"onDragLeave($event)\"\n (paste)=\"onPaste($event)\"\n (click)=\"fileInput.click()\"\n [class.dragging]=\"isDragging()\">\n <div class=\"attachment-drop-content\">\n <div class=\"attachment-drop-icon\">+</div>\n <div class=\"attachment-drop-text\">\n <div class=\"primary-text\">Click to upload or drag files here</div>\n <div class=\"secondary-text\">Support multiple files</div>\n </div>\n </div>\n </div>\n \n <!-- Hidden file input -->\n <input #fileInput \n type=\"file\" \n multiple \n (change)=\"fileInputChange($event)\" \n style=\"display: none;\">\n \n <!-- File list -->\n <div class=\"attachment-file-list\" *ngIf=\"currentValue()?.length > 0\">\n <div class=\"attachment-file-item\" *ngFor=\"let file of currentValue(); trackBy: trackByFile\">\n <div class=\"file-info\">\n <span class=\"file-icon\">\uD83D\uDCC4</span>\n <span class=\"file-name\">{{ file?.split('_')?.[2] || file }}</span>\n </div>\n <div class=\"file-actions\">\n <button class=\"action-btn\" (click)=\"viewFile(file)\" title=\"View\">\uD83D\uDC41\uFE0F</button>\n <button class=\"action-btn\" (click)=\"deleteFile(file)\" title=\"Delete\">\uD83D\uDDD1\uFE0F</button>\n </div>\n </div>\n </div>\n </div>\n </div>\n</ng-template>", styles: [":host{display:block;height:100%;width:100%;position:relative;overflow:hidden!important}.container{height:calc(100% - 2px);width:calc(100% - 2px);position:relative!important;overflow:hidden!important;max-width:100%!important;box-sizing:border-box!important}.container .cell-display-text{text-overflow:ellipsis!important;overflow:hidden!important;white-space:nowrap!important;max-width:100%!important;width:100%!important;display:block!important}.inputRef{height:inherit;width:inherit;border:none}.inputRef:focus{outline:none}.cell-checkbox{text-align:center}.cell-form-field{width:100%!important;height:100%!important;padding:0!important;margin:0!important}.cell-form-field .mat-mdc-form-field-outline,.cell-form-field .mat-mdc-form-field-subscript-wrapper,.cell-form-field .mat-mdc-form-field-text-suffix{display:none!important}.cell-form-field .mat-mdc-form-field-wrapper,.cell-form-field .mat-mdc-form-field-wrapper .mat-mdc-form-field-flex{width:100%!important;height:100%!important;padding:0!important;margin:0!important}.cell-form-field .mat-mdc-form-field-wrapper .mat-mdc-form-field-flex .mat-mdc-form-field-infix{width:100%!important;height:100%!important;padding:0!important;margin:0!important;min-height:auto!important;border-top:none!important}.cell-form-field input[matInput]{width:100%!important;height:100%!important;padding:2px!important;margin:0!important;border:none!important;outline:none!important;background:transparent!important;font-size:14px!important;line-height:normal!important;box-sizing:border-box!important;max-width:none!important;min-width:0!important;flex:none!important}.dropdown-menu{width:100%}.attachment-menu,.dropdown-menu,.dropdown-menu.attachment-menu,[cdkMenu].attachment-menu{background:var(--grid-surface, #fef7ff)!important;background-color:var(--grid-surface, #fef7ff)!important;border-radius:8px!important;box-shadow:var(--grid-elevation-2, 0px 1px 2px 0px rgba(0, 0, 0, .3), 0px 2px 6px 2px rgba(0, 0, 0, .15))!important;border:1px solid var(--grid-outline-variant, #cac4d0)!important}.attachment-menu.cdk-overlay-pane,.dropdown-menu.cdk-overlay-pane,.dropdown-menu.attachment-menu.cdk-overlay-pane,[cdkMenu].attachment-menu.cdk-overlay-pane{background:var(--grid-surface)!important;background-color:var(--grid-surface)!important}.attachment-menu .attachment-container,.dropdown-menu .attachment-container,.dropdown-menu.attachment-menu .attachment-container,[cdkMenu].attachment-menu .attachment-container{padding:4px;background:var(--grid-surface, #fef7ff);border-radius:8px}.attachment-menu .attachment-header,.dropdown-menu .attachment-header,.dropdown-menu.attachment-menu .attachment-header,[cdkMenu].attachment-menu .attachment-header{display:flex!important;justify-content:space-between!important;align-items:center!important;margin-bottom:24px!important;padding:0!important}.attachment-menu .attachment-header .attachment-title,.dropdown-menu .attachment-header .attachment-title,.dropdown-menu.attachment-menu .attachment-header .attachment-title,[cdkMenu].attachment-menu .attachment-header .attachment-title{font-family:var(--grid-font-family, \"Poppins\")!important;font-size:16px!important;font-weight:500!important;color:var(--grid-on-surface, #1d1b20)!important;margin:0!important}.attachment-menu .attachment-header .attachment-upload-btn,.attachment-menu .attachment-header .attachment-upload-btn.mat-mdc-raised-button,.attachment-menu .attachment-header .attachment-upload-btn.mat-mdc-button,.dropdown-menu .attachment-header .attachment-upload-btn,.dropdown-menu .attachment-header .attachment-upload-btn.mat-mdc-raised-button,.dropdown-menu .attachment-header .attachment-upload-btn.mat-mdc-button,.dropdown-menu.attachment-menu .attachment-header .attachment-upload-btn,.dropdown-menu.attachment-menu .attachment-header .attachment-upload-btn.mat-mdc-raised-button,.dropdown-menu.attachment-menu .attachment-header .attachment-upload-btn.mat-mdc-button,[cdkMenu].attachment-menu .attachment-header .attachment-upload-btn,[cdkMenu].attachment-menu .attachment-header .attachment-upload-btn.mat-mdc-raised-button,[cdkMenu].attachment-menu .attachment-header .attachment-upload-btn.mat-mdc-button{background:var(--grid-primary, #6750a4)!important;background-color:var(--grid-primary, #6750a4)!important;color:var(--grid-on-primary, #ffffff)!important;font-family:var(--grid-font-family, \"Poppins\")!important;font-weight:500!important;padding:8px 20px!important;border-radius:6px!important;border:none!important;cursor:pointer!important;font-size:14px!important;letter-spacing:.5px!important;box-shadow:var(--grid-elevation-1, 0px 1px 2px 0px rgba(0, 0, 0, .3), 0px 1px 3px 1px rgba(0, 0, 0, .15))!important;transition:background-color .2s ease!important}.attachment-menu .attachment-header .attachment-upload-btn .mdc-button__label,.attachment-menu .attachment-header .attachment-upload-btn.mat-mdc-raised-button .mdc-button__label,.attachment-menu .attachment-header .attachment-upload-btn.mat-mdc-button .mdc-button__label,.dropdown-menu .attachment-header .attachment-upload-btn .mdc-button__label,.dropdown-menu .attachment-header .attachment-upload-btn.mat-mdc-raised-button .mdc-button__label,.dropdown-menu .attachment-header .attachment-upload-btn.mat-mdc-button .mdc-button__label,.dropdown-menu.attachment-menu .attachment-header .attachment-upload-btn .mdc-button__label,.dropdown-menu.attachment-menu .attachment-header .attachment-upload-btn.mat-mdc-raised-button .mdc-button__label,.dropdown-menu.attachment-menu .attachment-header .attachment-upload-btn.mat-mdc-button .mdc-button__label,[cdkMenu].attachment-menu .attachment-header .attachment-upload-btn .mdc-button__label,[cdkMenu].attachment-menu .attachment-header .attachment-upload-btn.mat-mdc-raised-button .mdc-button__label,[cdkMenu].attachment-menu .attachment-header .attachment-upload-btn.mat-mdc-button .mdc-button__label{color:var(--grid-on-primary, #ffffff)!important}.attachment-menu .attachment-header .attachment-upload-btn:hover,.attachment-menu .attachment-header .attachment-upload-btn.mat-mdc-raised-button:hover,.attachment-menu .attachment-header .attachment-upload-btn.mat-mdc-button:hover,.dropdown-menu .attachment-header .attachment-upload-btn:hover,.dropdown-menu .attachment-header .attachment-upload-btn.mat-mdc-raised-button:hover,.dropdown-menu .attachment-header .attachment-upload-btn.mat-mdc-button:hover,.dropdown-menu.attachment-menu .attachment-header .attachment-upload-btn:hover,.dropdown-menu.attachment-menu .attachment-header .attachment-upload-btn.mat-mdc-raised-button:hover,.dropdown-menu.attachment-menu .attachment-header .attachment-upload-btn.mat-mdc-button:hover,[cdkMenu].attachment-menu .attachment-header .attachment-upload-btn:hover,[cdkMenu].attachment-menu .attachment-header .attachment-upload-btn.mat-mdc-raised-button:hover,[cdkMenu].attachment-menu .attachment-header .attachment-upload-btn.mat-mdc-button:hover{opacity:.9!important}.attachment-menu .attachment-header .attachment-upload-btn:before,.attachment-menu .attachment-header .attachment-upload-btn:after,.attachment-menu .attachment-header .attachment-upload-btn.mat-mdc-raised-button:before,.attachment-menu .attachment-header .attachment-upload-btn.mat-mdc-raised-button:after,.attachment-menu .attachment-header .attachment-upload-btn.mat-mdc-button:before,.attachment-menu .attachment-header .attachment-upload-btn.mat-mdc-button:after,.dropdown-menu .attachment-header .attachment-upload-btn:before,.dropdown-menu .attachment-header .attachment-upload-btn:after,.dropdown-menu .attachment-header .attachment-upload-btn.mat-mdc-raised-button:before,.dropdown-menu .attachment-header .attachment-upload-btn.mat-mdc-raised-button:after,.dropdown-menu .attachment-header .attachment-upload-btn.mat-mdc-button:before,.dropdown-menu .attachment-header .attachment-upload-btn.mat-mdc-button:after,.dropdown-menu.attachment-menu .attachment-header .attachment-upload-btn:before,.dropdown-menu.attachment-menu .attachment-header .attachment-upload-btn:after,.dropdown-menu.attachment-menu .attachment-header .attachment-upload-btn.mat-mdc-raised-button:before,.dropdown-menu.attachment-menu .attachment-header .attachment-upload-btn.mat-mdc-raised-button:after,.dropdown-menu.attachment-menu .attachment-header .attachment-upload-btn.mat-mdc-button:before,.dropdown-menu.attachment-menu .attachment-header .attachment-upload-btn.mat-mdc-button:after,[cdkMenu].attachment-menu .attachment-header .attachment-upload-btn:before,[cdkMenu].attachment-menu .attachment-header .attachment-upload-btn:after,[cdkMenu].attachment-menu .attachment-header .attachment-upload-btn.mat-mdc-raised-button:before,[cdkMenu].attachment-menu .attachment-header .attachment-upload-btn.mat-mdc-raised-button:after,[cdkMenu].attachment-menu .attachment-header .attachment-upload-btn.mat-mdc-button:before,[cdkMenu].attachment-menu .attachment-header .attachment-upload-btn.mat-mdc-button:after{display:none!important}.attachment-menu .attachment-drop-zone,.dropdown-menu .attachment-drop-zone,.dropdown-menu.attachment-menu .attachment-drop-zone,[cdkMenu].attachment-menu .attachment-drop-zone{border:2px dashed var(--grid-outline-variant, #cac4d0)!important;border-radius:8px!important;padding:10px!important;text-align:center!important;cursor:pointer!important;transition:all .3s ease!important;background:var(--grid-surface-variant, #e7e0ec)!important;margin:16px 0!important}.attachment-menu .attachment-drop-zone:hover,.dropdown-menu .attachment-drop-zone:hover,.dropdown-menu.attachment-menu .attachment-drop-zone:hover,[cdkMenu].attachment-menu .attachment-drop-zone:hover{border-color:var(--grid-primary, #6750a4)!important;background:var(--grid-surface-container, #f3edf7)!important}.attachment-menu .attachment-drop-zone.dragging,.dropdown-menu .attachment-drop-zone.dragging,.dropdown-menu.attachment-menu .attachment-drop-zone.dragging,[cdkMenu].attachment-menu .attachment-drop-zone.dragging{border-color:var(--grid-primary, #6750a4)!important;background:var(--grid-surface-container, #f3edf7)!important;transform:scale(1.01)!important}.attachment-menu .attachment-drop-zone .attachment-drop-content,.dropdown-menu .attachment-drop-zone .attachment-drop-content,.dropdown-menu.attachment-menu .attachment-drop-zone .attachment-drop-content,[cdkMenu].attachment-menu .attachment-drop-zone .attachment-drop-content{display:flex!important;flex-direction:column!important;align-items:center!important;gap:12px!important}.attachment-menu .attachment-drop-zone .attachment-drop-icon,.dropdown-menu .attachment-drop-zone .attachment-drop-icon,.dropdown-menu.attachment-menu .attachment-drop-zone .attachment-drop-icon,[cdkMenu].attachment-menu .attachment-drop-zone .attachment-drop-icon{font-size:48px!important;color:var(--grid-primary, #6750a4)!important;font-weight:300!important;line-height:1!important}.attachment-menu .attachment-drop-zone .attachment-drop-text .primary-text,.dropdown-menu .attachment-drop-zone .attachment-drop-text .primary-text,.dropdown-menu.attachment-menu .attachment-drop-zone .attachment-drop-text .primary-text,[cdkMenu].attachment-menu .attachment-drop-zone .attachment-drop-text .primary-text{font-family:var(--grid-font-family, \"Poppins\")!important;font-size:14px!important;color:var(--grid-on-surface-variant, #49454f)!important;font-weight:400!important;margin:0!important}.attachment-menu .attachment-drop-zone .attachment-drop-text .secondary-text,.dropdown-menu .attachment-drop-zone .attachment-drop-text .secondary-text,.dropdown-menu.attachment-menu .attachment-drop-zone .attachment-drop-text .secondary-text,[cdkMenu].attachment-menu .attachment-drop-zone .attachment-drop-text .secondary-text{font-family:var(--grid-font-family, \"Poppins\")!important;font-size:12px!important;color:var(--grid-on-surface-variant, #49454f)!important;margin-top:4px!important;display:block!important}.attachment-menu .attachment-file-list,.dropdown-menu .attachment-file-list,.dropdown-menu.attachment-menu .attachment-file-list,[cdkMenu].attachment-menu .attachment-file-list{display:block!important;margin-top:16px!important;border-top:1px solid var(--grid-outline-variant, #cac4d0)!important;padding-top:16px!important}.attachment-menu .attachment-file-list .attachment-file-item,.dropdown-menu .attachment-file-list .attachment-file-item,.dropdown-menu.attachment-menu .attachment-file-list .attachment-file-item,[cdkMenu].attachment-menu .attachment-file-list .attachment-file-item{display:flex!important;align-items:center!important;justify-content:space-between!important;padding:8px 0!important;border-bottom:1px solid var(--grid-outline-variant, #cac4d0)!important}.attachment-menu .attachment-file-list .attachment-file-item:last-child,.dropdown-menu .attachment-file-list .attachment-file-item:last-child,.dropdown-menu.attachment-menu .attachment-file-list .attachment-file-item:last-child,[cdkMenu].attachment-menu .attachment-file-list .attachment-file-item:last-child{border-bottom:none!important}.attachment-menu .attachment-file-list .attachment-file-item .file-info,.dropdown-menu .attachment-file-list .attachment-file-item .file-info,.dropdown-menu.attachment-menu .attachment-file-list .attachment-file-item .file-info,[cdkMenu].attachment-menu .attachment-file-list .attachment-file-item .file-info{display:flex!important;align-items:center!important;gap:8px!important;flex:1!important}.attachment-menu .attachment-file-list .attachment-file-item .file-info .file-icon,.dropdown-menu .attachment-file-list .attachment-file-item .file-info .file-icon,.dropdown-menu.attachment-menu .attachment-file-list .attachment-file-item .file-info .file-icon,[cdkMenu].attachment-menu .attachment-file-list .attachment-file-item .file-info .file-icon{font-size:16px!important;color:var(--grid-on-surface-variant, #49454f)!important}.attachment-menu .attachment-file-list .attachment-file-item .file-info .file-name,.dropdown-menu .attachment-file-list .attachment-file-item .file-info .file-name,.dropdown-menu.attachment-menu .attachment-file-list .attachment-file-item .file-info .file-name,[cdkMenu].attachment-menu .attachment-file-list .attachment-file-item .file-info .file-name{font-family:var(--grid-font-family, \"Poppins\")!important;font-size:14px!important;color:var(--grid-on-surface, #1d1b20)!important;word-break:break-word!important}.attachment-menu .attachment-file-list .attachment-file-item .file-actions,.dropdown-menu .attachment-file-list .attachment-file-item .file-actions,.dropdown-menu.attachment-menu .attachment-file-list .attachment-file-item .file-actions,[cdkMenu].attachment-menu .attachment-file-list .attachment-file-item .file-actions{display:flex!important;gap:4px!important}.attachment-menu .attachment-file-list .attachment-file-item .file-actions .action-btn,.dropdown-menu .attachment-file-list .attachment-file-item .file-actions .action-btn,.dropdown-menu.attachment-menu .attachment-file-list .attachment-file-item .file-actions .action-btn,[cdkMenu].attachment-menu .attachment-file-list .attachment-file-item .file-actions .action-btn{width:24px!important;height:24px!important;border:none!important;background:transparent!important;cursor:pointer!important;border-radius:4px!important;font-size:14px!important;color:var(--grid-on-surface-variant, #49454f)!important;transition:background-color .2s ease!important}.attachment-menu .attachment-file-list .attachment-file-item .file-actions .action-btn:hover,.dropdown-menu .attachment-file-list .attachment-file-item .file-actions .action-btn:hover,.dropdown-menu.attachment-menu .attachment-file-list .attachment-file-item .file-actions .action-btn:hover,[cdkMenu].attachment-menu .attachment-file-list .attachment-file-item .file-actions .action-btn:hover{background:var(--grid-surface-container, #f3edf7)!important}.cdk-overlay-container .cdk-overlay-pane .attachment-menu,.cdk-overlay-container .attachment-menu,.cdk-overlay-pane .attachment-menu{background:var(--grid-surface, #fef7ff)!important;background-color:var(--grid-surface, #fef7ff)!important;border:1px solid var(--grid-outline-variant, #cac4d0)!important;box-shadow:var(--grid-elevation-2, 0px 1px 2px 0px rgba(0, 0, 0, .3), 0px 2px 6px 2px rgba(0, 0, 0, .15))!important;border-radius:8px!important;font-family:var(--grid-font-family, \"Poppins\")!important}.cdk-overlay-container .cdk-overlay-pane .attachment-menu .attachment-container,.cdk-overlay-container .attachment-menu .attachment-container,.cdk-overlay-pane .attachment-menu .attachment-container{padding:4px;background:var(--grid-surface, #fef7ff)!important}.cdk-overlay-container .cdk-overlay-pane .attachment-menu .attachment-header,.cdk-overlay-container .attachment-menu .attachment-header,.cdk-overlay-pane .attachment-menu .attachment-header{display:flex!important;justify-content:space-between!important;align-items:center!important;margin-bottom:24px!important;padding:0!important}.cdk-overlay-container .cdk-overlay-pane .attachment-menu .attachment-header .attachment-title,.cdk-overlay-container .attachment-menu .attachment-header .attachment-title,.cdk-overlay-pane .attachment-menu .attachment-header .attachment-title{font-family:var(--grid-font-family, \"Poppins\")!important;font-size:16px!important;font-weight:500!important;color:var(--grid-on-surface, #1d1b20)!important;margin:0!important}.cdk-overlay-container .cdk-overlay-pane .attachment-menu .attachment-header .attachment-upload-btn,.cdk-overlay-container .attachment-menu .attachment-header .attachment-upload-btn,.cdk-overlay-pane .attachment-menu .attachment-header .attachment-upload-btn{background:var(--grid-primary, #6750a4)!important;background-color:var(--grid-primary, #6750a4)!important;color:var(--grid-on-primary, #ffffff)!important;font-family:var(--grid-font-family, \"Poppins\")!important;font-weight:500!important;padding:8px 20px!important;border-radius:6px!important;border:none!important;cursor:pointer!important;font-size:14px!important;letter-spacing:.5px!important;box-shadow:var(--grid-elevation-1, 0px 1px 2px 0px rgba(0, 0, 0, .3), 0px 1px 3px 1px rgba(0, 0, 0, .15))!important;transition:background-color .2s ease!important}.cdk-overlay-container .cdk-overlay-pane .attachment-menu .attachment-header .attachment-upload-btn:hover,.cdk-overlay-container .attachment-menu .attachment-header .attachment-upload-btn:hover,.cdk-overlay-pane .attachment-menu .attachment-header .attachment-upload-btn:hover{opacity:.9!important}.cdk-overlay-container .cdk-overlay-pane .attachment-menu .attachment-header .attachment-upload-btn .mdc-button__label,.cdk-overlay-container .attachment-menu .attachment-header .attachment-upload-btn .mdc-button__label,.cdk-overlay-pane .attachment-menu .attachment-header .attachment-upload-btn .mdc-button__label{color:var(--grid-on-primary, #ffffff)!important}.cdk-overlay-container .cdk-overlay-pane .attachment-menu .attachment-drop-zone,.cdk-overlay-container .attachment-menu .attachment-drop-zone,.cdk-overlay-pane .attachment-menu .attachment-drop-zone{border:2px dashed var(--grid-outline-variant, #cac4d0)!important;border-radius:8px!important;padding:40px 20px!important;text-align:center!important;cursor:pointer!important;transition:all .3s ease!important;background:var(--grid-surface-variant, #e7e0ec)!important;margin:16px 0!important}.cdk-overlay-container .cdk-overlay-pane .attachment-menu .attachment-drop-zone:hover,.cdk-overlay-container .attachment-menu .attachment-drop-zone:hover,.cdk-overlay-pane .attachment-menu .attachment-drop-zone:hover{border-color:var(--grid-primary, #6750a4)!important;background:var(--grid-surface-container, #f3edf7)!important}.cdk-overlay-container .cdk-overlay-pane .attachment-menu .attachment-drop-zone.dragging,.cdk-overlay-container .attachment-menu .attachment-drop-zone.dragging,.cdk-overlay-pane .attachment-menu .attachment-drop-zone.dragging{border-color:var(--grid-primary, #6750a4)!important;background:var(--grid-surface-container, #f3edf7)!important;transform:scale(1.01)!important}.cdk-overlay-container .cdk-overlay-pane .attachment-menu .attachment-drop-zone .attachment-drop-content,.cdk-overlay-container .attachment-menu .attachment-drop-zone .attachment-drop-content,.cdk-overlay-pane .attachment-menu .attachment-drop-zone .attachment-drop-content{display:flex!important;flex-direction:column!important;align-items:center!important;gap:12px!important}.cdk-overlay-container .cdk-overlay-pane .attachment-menu .attachment-drop-zone .attachment-drop-icon,.cdk-overlay-container .attachment-menu .attachment-drop-zone .attachment-drop-icon,.cdk-overlay-pane .attachment-menu .attachment-drop-zone .attachment-drop-icon{font-size:48px!important;color:var(--grid-primary, #6750a4)!important;font-weight:300!important;line-height:1!important}.cdk-overlay-container .cdk-overlay-pane .attachment-menu .attachment-drop-zone .attachment-drop-text .primary-text,.cdk-overlay-container .attachment-menu .attachment-drop-zone .attachment-drop-text .primary-text,.cdk-overlay-pane .attachment-menu .attachment-drop-zone .attachment-drop-text .primary-text{font-family:var(--grid-font-family, \"Poppins\")!important;font-size:14px!important;color:var(--grid-on-surface-variant, #49454f)!important;font-weight:400!important;margin:0!important}.cdk-overlay-container .cdk-overlay-pane .attachment-menu .attachment-drop-zone .attachment-drop-text .secondary-text,.cdk-overlay-container .attachment-menu .attachment-drop-zone .attachment-drop-text .secondary-text,.cdk-overlay-pane .attachment-menu .attachment-drop-zone .attachment-drop-text .secondary-text{font-family:var(--grid-font-family, \"Poppins\")!important;font-size:12px!important;color:var(--grid-on-surface-variant, #49454f)!important;margin-top:4px!important;display:block!important}.cdk-overlay-container .cdk-overlay-pane .attachment-menu .attachment-file-list,.cdk-overlay-container .attachment-menu .attachment-file-list,.cdk-overlay-pane .attachment-menu .attachment-file-list{display:block!important;margin-top:16px!important;border-top:1px solid var(--grid-outline-variant, #cac4d0)!important;padding-top:16px!important}.cdk-overlay-container .cdk-overlay-pane .attachment-menu .attachment-file-list .attachment-file-item,.cdk-overlay-container .attachment-menu .attachment-file-list .attachment-file-item,.cdk-overlay-pane .attachment-menu .attachment-file-list .attachment-file-item{display:flex!important;align-items:center!important;justify-content:space-between!important;padding:8px 0!important;border-bottom:1px solid var(--grid-outline-variant, #cac4d0)!important}.cdk-overlay-container .cdk-overlay-pane .attachment-menu .attachment-file-list .attachment-file-item:last-child,.cdk-overlay-container .attachment-menu .attachment-file-list .attachment-file-item:last-child,.cdk-overlay-pane .attachment-menu .attachment-file-list .attachment-file-item:last-child{border-bottom:none!important}.cdk-overlay-container .cdk-overlay-pane .attachment-menu .attachment-file-list .attachment-file-item .file-info,.cdk-overlay-container .attachment-menu .attachment-file-list .attachment-file-item .file-info,.cdk-overlay-pane .attachment-menu .attachment-file-list .attachment-file-item .file-info{display:flex!important;align-items:center!important;gap:8px!important;flex:1!important}.cdk-overlay-container .cdk-overlay-pane .attachment-menu .attachment-file-list .attachment-file-item .file-info .file-icon,.cdk-overlay-container .attachment-menu .attachment-file-list .attachment-file-item .file-info .file-icon,.cdk-overlay-pane .attachment-menu .attachment-file-list .attachment-file-item .file-info .file-icon{font-size:16px!important;color:var(--grid-on-surface-variant, #49454f)!important}.cdk-overlay-container .cdk-overlay-pane .attachment-menu .attachment-file-list .attachment-file-item .file-info .file-name,.cdk-overlay-container .attachment-menu .attachment-file-list .attachment-file-item .file-info .file-name,.cdk-overlay-pane .attachment-menu .attachment-file-list .attachment-file-item .file-info .file-name{font-family:var(--grid-font-family, \"Poppins\")!important;font-size:14px!important;color:var(--grid-on-surface, #1d1b20)!important;word-break:break-word!important}.cdk-overlay-container .cdk-overlay-pane .attachment-menu .attachment-file-list .attachment-file-item .file-actions,.cdk-overlay-container .attachment-menu .attachment-file-list .attachment-file-item .file-actions,.cdk-overlay-pane .attachment-menu .attachment-file-list .attachment-file-item .file-actions{display:flex!important;gap:4px!important}.cdk-overlay-container .cdk-overlay-pane .attachment-menu .attachment-file-list .attachment-file-item .file-actions .action-btn,.cdk-overlay-container .attachment-menu .attachment-file-list .attachment-file-item .file-actions .action-btn,.cdk-overlay-pane .attachment-menu .attachment-file-list .attachment-file-item .file-actions .action-btn{width:24px!important;height:24px!important;border:none!important;background:transparent!important;cursor:pointer!important;border-radius:4px!important;font-size:14px!important;color:var(--grid-on-surface-variant, #49454f)!important;transition:background-color .2s ease!important}.cdk-overlay-container .cdk-overlay-pane .attachment-menu .attachment-file-list .attachment-file-item .file-actions .action-btn:hover,.cdk-overlay-container .attachment-menu .attachment-file-list .attachment-file-item .file-actions .action-btn:hover,.cdk-overlay-pane .attachment-menu .attachment-file-list .attachment-file-item .file-actions .action-btn:hover{background:var(--grid-surface-container, #f3edf7)!important}.cdk-overlay-container .cdk-overlay-pane .attachment-menu,.cdk-overlay-container .attachment-menu{background:var(--grid-surface, #fef7ff)!important;background-color:var(--grid-surface, #fef7ff)!important;border:1px solid var(--grid-outline-variant, #cac4d0)!important;box-shadow:var(--grid-elevation-2, 0px 1px 2px 0px rgba(0, 0, 0, .3), 0px 2px 6px 2px rgba(0, 0, 0, .15))!important}.attachment-cell-wrapper{position:relative;display:block;width:100%;height:100%;text-align:center;overflow:visible}.attachment-menu-overlay{position:absolute;z-index:1000;background:var(--grid-surface, #fef7ff);border:1px solid var(--grid-outline-variant, #cac4d0);box-shadow:var(--grid-elevation-2, 0px 1px 2px 0px rgba(0, 0, 0, .3), 0px 2px 6px 2px rgba(0, 0, 0, .15));border-radius:8px;font-family:var(--grid-font-family, \"Poppins\");color:var(--grid-on-surface, #1d1b20);overflow:visible;z-index:9999}.attachment-menu-overlay .attachment-container{padding:16px;background:var(--grid-surface, #fef7ff)}.attachment-menu-overlay .attachment-header{display:flex;justify-content:space-between;align-items:center;margin-bottom:24px;padding:0}.attachment-menu-overlay .attachment-header .attachment-title{font-family:var(--grid-font-family, \"Poppins\");font-size:16px;font-weight:500;color:var(--grid-on-surface, #1d1b20);margin:0}.attachment-menu-overlay .attachment-header .attachment-upload-btn{background:var(--grid-primary, #6750a4);background-color:var(--grid-primary, #6750a4);color:var(--grid-on-primary, #ffffff);font-family:var(--grid-font-family, \"Poppins\");font-weight:500;padding:8px 20px;border-radius:6px;border:none;cursor:pointer;font-size:14px;letter-spacing:.5px;box-shadow:var(--grid-elevation-1, 0px 1px 2px 0px rgba(0, 0, 0, .3), 0px 1px 3px 1px rgba(0, 0, 0, .15));transition:background-color .2s ease}.attachment-menu-overlay .attachment-header .attachment-upload-btn:hover{opacity:.9}.attachment-menu-overlay .attachment-header .attachment-upload-btn .mdc-button__label{color:var(--grid-on-primary, #ffffff)}.attachment-menu-overlay .attachment-drop-zone{border:2px dashed var(--grid-outline-variant, #cac4d0);border-radius:8px;padding:10px;text-align:center;cursor:pointer;transition:all .3s ease;background:var(--grid-surface-variant, #e7e0ec);margin:16px 0}.attachment-menu-overlay .attachment-drop-zone:hover{border-color:var(--grid-primary, #6750a4);background:var(--grid-surface-container, #f3edf7)}.attachment-menu-overlay .attachment-drop-zone.dragging{border-color:var(--grid-primary, #6750a4);background:var(--grid-surface-container, #f3edf7);transform:scale(1.01)}.attachment-menu-overlay .attachment-drop-zone .attachment-drop-content{display:flex;flex-direction:column;align-items:center;gap:12px}.attachment-menu-overlay .attachment-drop-zone .attachment-drop-icon{font-size:48px;color:var(--grid-primary, #6750a4);font-weight:300;line-height:1}.attachment-menu-overlay .attachment-drop-zone .attachment-drop-text .primary-text{font-family:var(--grid-font-family, \"Poppins\");font-size:14px;color:var(--grid-on-surface-variant, #49454f);font-weight:400;margin:0}.attachment-menu-overlay .attachment-drop-zone .attachment-drop-text .secondary-text{font-family:var(--grid-font-family, \"Poppins\");font-size:12px;color:var(--grid-on-surface-variant, #49454f);margin-top:4px;display:block}.attachment-menu-overlay .attachment-file-list{display:block;margin-top:16px;border-top:1px solid var(--grid-outline-variant, #cac4d0);padding-top:16px}.attachment-menu-overlay .attachment-file-list .attachment-file-item{display:flex;align-items:center;justify-content:space-between;padding:8px 0;border-bottom:1px solid var(--grid-outline-variant, #cac4d0)}.attachment-menu-overlay .attachment-file-list .attachment-file-item:last-child{border-bottom:none}.attachment-menu-overlay .attachment-file-list .attachment-file-item .file-info{display:flex;align-items:center;gap:8px;flex:1}.attachment-menu-overlay .attachment-file-list .attachment-file-item .file-info .file-icon{font-size:16px;color:var(--grid-on-surface-variant, #49454f)}.attachment-menu-overlay .attachment-file-list .attachment-file-item .file-info .file-name{font-family:var(--grid-font-family, \"Poppins\");font-size:14px;color:var(--grid-on-surface, #1d1b20);word-break:break-word}.attachment-menu-overlay .attachment-file-list .attachment-file-item .file-actions{display:flex;gap:4px}.attachment-menu-overlay .attachment-file-list .attachment-file-item .file-actions .action-btn{width:24px;height:24px;border:none;background:transparent;cursor:pointer;border-radius:4px;font-size:14px;color:var(--grid-on-surface-variant, #49454f);transition:background-color .2s ease}.attachment-menu-overlay .attachment-file-list .attachment-file-item .file-actions .action-btn:hover{background:var(--grid-surface-container, #f3edf7)}.cdk-overlay-container .cdk-overlay-pane .dropdown-menu,.cdk-overlay-container .dropdown-menu,.cdk-overlay-pane .dropdown-menu{background:var(--grid-surface, #fef7ff)!important;background-color:var(--grid-surface, #fef7ff)!important;border:1px solid var(--grid-outline-variant, #cac4d0)!important;box-shadow:var(--grid-elevation-2, 0px 1px 2px 0px rgba(0, 0, 0, .3), 0px 2px 6px 2px rgba(0, 0, 0, .15))!important;border-radius:8px!important;font-family:var(--grid-font-family, \"Poppins\")!important;color:var(--grid-on-surface, #1d1b20)!important;overflow:hidden!important;box-sizing:border-box!important}.cdk-overlay-container .cdk-overlay-pane .dropdown-menu .listbox-container,.cdk-overlay-container .dropdown-menu .listbox-container,.cdk-overlay-pane .dropdown-menu .listbox-container{padding:8px!important;background:var(--grid-surface, #fef7ff)!important}.cdk-overlay-container .cdk-overlay-pane .dropdown-menu .search-form-field,.cdk-overlay-container .dropdown-menu .search-form-field,.cdk-overlay-pane .dropdown-menu .search-form-field{width:100%!important;margin-bottom:8px!important}.cdk-overlay-container .cdk-overlay-pane .dropdown-menu .search-form-field .mat-mdc-form-field,.cdk-overlay-container .dropdown-menu .search-form-field .mat-mdc-form-field,.cdk-overlay-pane .dropdown-menu .search-form-field .mat-mdc-form-field{width:100%!important}.cdk-overlay-container .cdk-overlay-pane .dropdown-menu .search-form-field .mat-mdc-text-field-wrapper,.cdk-overlay-container .dropdown-menu .search-form-field .mat-mdc-text-field-wrapper,.cdk-overlay-pane .dropdown-menu .search-form-field .mat-mdc-text-field-wrapper{background:var(--grid-surface, #fffbfe)!important;border-radius:4px!important}.cdk-overlay-container .cdk-overlay-pane .dropdown-menu .search-form-field .mat-mdc-form-field-focus-overlay,.cdk-overlay-container .dropdown-menu .search-form-field .mat-mdc-form-field-focus-overlay,.cdk-overlay-pane .dropdown-menu .search-form-field .mat-mdc-form-field-focus-overlay{background:var(--grid-surface, #fffbfe)!important}.cdk-overlay-container .cdk-overlay-pane .dropdown-menu .search-form-field .mat-mdc-form-field-subscript-wrapper,.cdk-overlay-container .dropdown-menu .search-form-field .mat-mdc-form-field-subscript-wrapper,.cdk-overlay-pane .dropdown-menu .search-form-field .mat-mdc-form-field-subscript-wrapper{display:none!important}.cdk-overlay-container .cdk-overlay-pane .dropdown-menu .search-form-field input,.cdk-overlay-container .dropdown-menu .search-form-field input,.cdk-overlay-pane .dropdown-menu .search-form-field input{font-family:var(--grid-font-family, \"Poppins\")!important;font-size:14px!important;color:var(--grid-on-surface, #1d1b20)!important}.cdk-overlay-container .cdk-overlay-pane .dropdown-menu .select-all-container,.cdk-overlay-container .dropdown-menu .select-all-container,.cdk-overlay-pane .dropdown-menu .select-all-container{padding:8px 12px!important;border-bottom:1px solid var(--grid-outline-variant, #cac4d0)!important;margin-bottom:4px!important}.cdk-overlay-container .cdk-overlay-pane .dropdown-menu .select-all-container .select-all-text,.cdk-overlay-container .dropdown-menu .select-all-container .select-all-text,.cdk-overlay-pane .dropdown-menu .select-all-container .select-all-text{font-family:var(--grid-font-family, \"Poppins\")!important;font-size:14px!important;font-weight:500!important;color:var(--grid-on-surface, #1d1b20)!important;margin-left:8px!important}.cdk-overlay-container .cdk-overlay-pane .dropdown-menu .select-all-container mat-checkbox .mdc-checkbox .mdc-checkbox__checkmark,.cdk-overlay-container .dropdown-menu .select-all-container mat-checkbox .mdc-checkbox .mdc-checkbox__checkmark,.cdk-overlay-pane .dropdown-menu .select-all-container mat-checkbox .mdc-checkbox .mdc-checkbox__checkmark{color:var(--grid-on-primary, #ffffff)!important}.cdk-overlay-container .cdk-overlay-pane .dropdown-menu .select-all-container mat-checkbox.mat-mdc-checkbox-checked .mdc-checkbox__background,.cdk-overlay-container .dropdown-menu .select-all-container mat-checkbox.mat-mdc-checkbox-checked .mdc-checkbox__background,.cdk-overlay-pane .dropdown-menu .select-all-container mat-checkbox.mat-mdc-checkbox-checked .mdc-checkbox__background{background-color:var(--grid-primary, #6750a4)!important;border-color:var(--grid-primary, #6750a4)!important}.cdk-overlay-container .cdk-overlay-pane .dropdown-menu .select-all-container mat-checkbox.mat-mdc-checkbox-indeterminate .mdc-checkbox__background,.cdk-overlay-container .dropdown-menu .select-all-container mat-checkbox.mat-mdc-checkbox-indeterminate .mdc-checkbox__background,.cdk-overlay-pane .dropdown-menu .select-all-container mat-checkbox.mat-mdc-checkbox-indeterminate .mdc-checkbox__background{background-color:var(--grid-primary, #6750a4)!important;border-color:var(--grid-primary, #6750a4)!important}.cdk-overlay-container .cdk-overlay-pane .dropdown-menu .listbox,.cdk-overlay-container .dropdown-menu .listbox,.cdk-overlay-pane .dropdown-menu .listbox{list-style:none!important;margin:0!important;padding:0!important;max-height:200px!important;overflow-y:auto!important;background:var(--grid-surface, #fef7ff)!important}.cdk-overlay-container .cdk-overlay-pane .dropdown-menu .listbox::-webkit-scrollbar,.cdk-overlay-container .dropdown-menu .listbox::-webkit-scrollbar,.cdk-overlay-pane .dropdown-menu .listbox::-webkit-scrollbar{width:8px!important}.cdk-overlay-container .cdk-overlay-pane .dropdown-menu .listbox::-webkit-scrollbar-track,.cdk-overlay-container .dropdown-menu .listbox::-webkit-scrollbar-track,.cdk-overlay-pane .dropdown-menu .listbox::-webkit-scrollbar-track{background:var(--grid-surface-variant, #e7e0ec)!important;border-radius:4px!important}.cdk-overlay-container .cdk-overlay-pane .dropdown-menu .listbox::-webkit-scrollbar-thumb,.cdk-overlay-container .dropdown-menu .listbox::-webkit-scrollbar-thumb,.cdk-overlay-pane .dropdown-menu .listbox::-webkit-scrollbar-thumb{background:var(--grid-primary, #6750a4)!important;border-radius:4px!important}.cdk-overlay-container .cdk-overlay-pane .dropdown-menu .listbox::-webkit-scrollbar-thumb:hover,.cdk-overlay-container .dropdown-menu .listbox::-webkit-scrollbar-thumb:hover,.cdk-overlay-pane .dropdown-menu .listbox::-webkit-scrollbar-thumb:hover{background:var(--grid-primary, #6750a4)!important;opacity:.8!important}.cdk-overlay-container .cdk-overlay-pane .dropdown-menu .multi-listbox-option,.cdk-overlay-container .dropdown-menu .multi-listbox-option,.cdk-overlay-pane .dropdown-menu .multi-listbox-option{padding:4px 8px!important;margin:2px 0!important;border-radius:4px!important;cursor:pointer!important;font-family:var(--grid-font-family, \"Poppins\")!important;font-size:14px!important;color:var(--grid-on-surface, #1d1b20)!important;background:transparent!important;transition:background-color .2s ease!important;border:none!important;text-align:left!important;width:100%!important}.cdk-overlay-container .cdk-overlay-pane .dropdown-menu .multi-listbox-option:hover,.cdk-overlay-container .dropdown-menu .multi-listbox-option:hover,.cdk-overlay-pane .dropdown-menu .multi-listbox-option:hover{background:var(--grid-surface-container, #f3edf7)!important}.cdk-overlay-container .cdk-overlay-pane .dropdown-menu .multi-listbox-option.notext-overflow,.cdk-overlay-container .dropdown-menu .multi-listbox-option.notext-overflow,.cdk-overlay-pane .dropdown-menu .multi-listbox-option.notext-overflow{white-space:nowrap!important;overflow:hidden!important;text-overflow:ellipsis!important}.cdk-overlay-container .cdk-overlay-pane .dropdown-menu .multi-listbox-option .option-content,.cdk-overlay-container .dropdown-menu .multi-listbox-option .option-content,.cdk-overlay-pane .dropdown-menu .multi-listbox-option .option-content{display:flex!important;align-items:center!important;gap:8px!important;width:100%!important}.cdk-overlay-container .cdk-overlay-pane .dropdown-menu .multi-listbox-option .option-content .option-text,.cdk-overlay-container .dropdown-menu .multi-listbox-option .option-content .option-text,.cdk-overlay-pane .dropdown-menu .multi-listbox-option .option-content .option-text{flex:1!important;font-family:var(--grid-font-family, \"Poppins\")!important;font-size:14px!important;color:inherit!important}.cdk-overlay-container .cdk-overlay-pane .dropdown-menu .multi-listbox-option .option-content mat-checkbox,.cdk-overlay-container .dropdown-menu .multi-listbox-option .option-content mat-checkbox,.cdk-overlay-pane .dropdown-menu .multi-listbox-option .option-content mat-checkbox{flex-shrink:0!important}.cdk-overlay-container .cdk-overlay-pane .dropdown-menu .multi-listbox-option .option-content mat-checkbox .mdc-checkbox .mdc-checkbox__background,.cdk-overlay-container .dropdown-menu .multi-listbox-option .option-content mat-checkbox .mdc-checkbox .mdc-checkbox__background,.cdk-overlay-pane .dropdown-menu .multi-listbox-option .option-content mat-checkbox .mdc-checkbox .mdc-checkbox__background{border-color:var(--grid-outline, #79757f)!important}.cdk-overlay-container .cdk-overlay-pane .dropdown-menu .multi-listbox-option .option-content mat-checkbox .mdc-checkbox .mdc-checkbox__checkmark,.cdk-overlay-container .dropdown-menu .multi-listbox-option .option-content mat-checkbox .mdc-checkbox .mdc-checkbox__checkmark,.cdk-overlay-pane .dropdown-menu .multi-listbox-option .option-content mat-checkbox .mdc-checkbox .mdc-checkbox__checkmark{color:var(--grid-on-primary, #ffffff)!important}.cdk-overlay-container .cdk-overlay-pane .dropdown-menu .multi-listbox-option .option-content mat-checkbox.mat-mdc-checkbox-checked .mdc-checkbox__background,.cdk-overlay-container .dropdown-menu .multi-listbox-option .option-content mat-checkbox.mat-mdc-checkbox-checked .mdc-checkbox__background,.cdk-overlay-pane .dropdown-menu .multi-listbox-option .option-content mat-checkbox.mat-mdc-checkbox-checked .mdc-checkbox__background{background-color:var(--grid-primary, #6750a4)!important;border-color:var(--grid-primary, #6750a4)!important}.cdk-overlay-container .cdk-overlay-pane .dropdown-menu .listbox-option,.cdk-overlay-container .dropdown-menu .listbox-option,.cdk-overlay-pane .dropdown-menu .listbox-option{padding:4px 8px!important;margin:2px 0!important;border-radius:4px!important;cursor:pointer!important;font-family:var(--grid-font-family, \"Poppins\")!important;font-size:14px!important;color:var(--grid-on-surface, #1d1b20)!important;background:transparent!important;transition:background-color .2s ease!important;border:none!important;text-align:left!important;width:100%!important}.cdk-overlay-container .cdk-overlay-pane .dropdown-menu .listbox-option:hover,.cdk-overlay-container .dropdown-menu .listbox-option:hover,.cdk-overlay-pane .dropdown-menu .listbox-option:hover{background:var(--grid-surface-container, #f3edf7)!important}.cdk-overlay-container .cdk-overlay-pane .dropdown-menu .listbox-option.cdk-option-active,.cdk-overlay-container .dropdown-menu .listbox-option.cdk-option-active,.cdk-overlay-pane .dropdown-menu .listbox-option.cdk-option-active,.cdk-overlay-container .cdk-overlay-pane .dropdown-menu .listbox-option.cdk-option-selected,.cdk-overlay-container .dropdown-menu .listbox-option.cdk-option-selected,.cdk-overlay-pane .dropdown-menu .listbox-option.cdk-option-selected{background:var(--grid-primary, #6750a4)!important;color:var(--grid-on-primary, #ffffff)!important}.cdk-overlay-container .cdk-overlay-pane .dropdown-menu .listbox-option.notext-overflow,.cdk-overlay-container .dropdown-menu .listbox-option.notext-overflow,.cdk-overlay-pane .dropdown-menu .listbox-option.notext-overflow{white-space:nowrap!important;overflow:hidden!important;text-overflow:ellipsis!important}.cdk-overlay-container .cdk-overlay-pane .dropdown-menu .listbox-option .option-content,.cdk-overlay-container .dropdown-menu .listbox-option .option-content,.cdk-overlay-pane .dropdown-menu .listbox-option .option-content{display:flex!important;align-items:center!important;gap:8px!important;width:100%!important}.cdk-overlay-container .cdk-overlay-pane .dropdown-menu .listbox-option .option-content .option-text,.cdk-overlay-container .dropdown-menu .listbox-option .option-content .option-text,.cdk-overlay-pane .dropdown-menu .listbox-option .option-content .option-text{flex:1!important;font-family:var(--grid-font-family, \"Poppins\")!important;font-size:14px!important;color:inherit!important}.cell-display-text-editable{cursor:pointer!important}.cell-display-text{width:100%!important;height:100%!important;min-height:20px!important;display:block!important;padding:4px 8px!important;font-family:var(--grid-font-family, \"Poppins\")!important;font-size:var(--grid-font-size-body, 12px)!important;color:var(--grid-on-surface, #1d1b20)!important;background:transparent!important;border:none!important;outline:none!important;text-overflow:ellipsis!important;overflow:hidden!important;white-space:nowrap!important;max-width:100%!important;box-sizing:border-box!important;transition:background-color .2s ease!important;line-height:1.4!important}.cell-display-text,.cell-display-text>*{text-overflow:ellipsis!important;overflow:hidden!important;white-space:nowrap!important;max-width:100%!important;width:100%!important;display:block!important}.cell-display-text:empty:before{content:\"Click to select\"!important;color:var(--grid-on-surface-variant, #49454f)!important;font-style:italic!important}.cell-display-number{text-align:var(--grid-number-text-align, right)}.aggregation .cell-display-number{text-align:var(--grid-aggregation-text-align, right)}.assignee-avatars{display:flex;align-items:center;padding:4px 8px;min-height:20px}.avatar-circle{width:28px;height:28px;border-radius:50%;background-color:var(--grid-primary, #6750a4);color:#fff;display:flex;align-items:center;justify-content:center;font-size:12px;font-weight:600;border:2px solid var(--grid-surface, #fef7ff);margin-left:-8px;position:relative;z-index:1}.avatar-circle:first-child{margin-left:0}.avatar-circle.count-circle{background-color:var(--grid-surface-variant, #e7e0ec);color:var(--grid-on-surface-variant, #49454f);font-size:11px;font-weight:500}.no-assignees{color:var(--grid-on-surface-variant, #49454f);font-style:italic;font-size:12px}.option-content{display:flex;align-items:center;gap:8px;width:100%}.option-avatar{width:24px;height:24px;border-radius:50%;background-color:var(--grid-primary, #6750a4);color:#fff;display:flex;align-items:center;justify-content:center;font-size:10px;font-weight:600;flex-shrink:0}.option-text{flex:1;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.checkmark{color:var(--grid-primary, #6750a4);font-weight:700;font-size:14px;flex-shrink:0}.drillable-value{color:var(--grid-primary, #6750a4);text-decoration:underline;text-decoration-color:var(--grid-primary, #6750a4);text-decoration-thickness:1px;text-underline-offset:2px;transition:all .2s ease}.drillable-link{cursor:pointer;padding:4px}\n"] }]
|
|
4047
|
+
}, changeDetection: ChangeDetectionStrategy.OnPush, encapsulation: ViewEncapsulation.None, template: "<div class=\"container\">\n @switch (columnDatatype()) {\n @case ('textbox') {\n @if(isActive()){\n <mat-form-field appearance=\"outline\" class=\"cell-form-field\">\n <input matInput type=\"text\" [id]=\"'input-' + columnName()+ id()\" [name]=\"'input-' + columnName()+ id()\"\n [(ngModel)]=\"currentValue\" (blur)=\"onTextboxBlur()\">\n </mat-form-field>\n } @else {\n <div class=\"cell-display-text\" (dblclick)=\"setActive(true)\"\n [class.cell-display-text-editable]=\"isEditable()\">\n @if (drillable()) {\n <span class=\"drillable-value\" (click)=\"onDrillableClick($event)\">{{currentValue()}}</span>\n } @else {\n {{currentValue()}}\n }\n </div>\n }\n }\n @case ('currency') {\n @if(isActive()){\n <mat-form-field appearance=\"outline\" class=\"cell-form-field\">\n <input matInput type=\"text\" [id]=\"'currency-' + columnName()+ id()\" [name]=\"'currency-' + columnName()+ id()\"\n [ngModel]=\"currentValue()\" (ngModelChange)=\"setField($event)\" placeholder=\"Number\" (blur)=\"onNumberBlur()\">\n <span matTextPrefix>$</span>\n </mat-form-field>\n } @else {\n <div class=\"cell-display-text cell-display-number\" (dblclick)=\"setActive(true)\"\n [class.cell-display-text-editable]=\"isEditable()\">\n @if (drillable()) {\n <span class=\"drillable-value\" (click)=\"onDrillableClick($event)\">{{formatNumberSignal()}}</span>\n } @else {\n {{formatNumberSignal()}}\n }\n </div>\n }\n }\n @case ('number') {\n @if(isActive()){\n <mat-form-field appearance=\"outline\" class=\"cell-form-field\">\n <input matInput type=\"text\" [id]=\"'number-' + columnName()+ id()\" [name]=\"'number-' + columnName()+ id()\"\n [ngModel]=\"currentValue()\" (ngModelChange)=\"setField($event)\" placeholder=\"Number\" (blur)=\"onNumberBlur()\">\n </mat-form-field>\n } @else {\n <div class=\"cell-display-text cell-display-number\" (dblclick)=\"setActive(true)\"\n[class.cell-display-text-editable]=\"isEditable()\"\n >\n @if (drillable() && currentValue() !== 0) {\n <span class=\"drillable-value\" ><a class=\"drillable-link\" (click)=\"onDrillableClick($event)\">{{formatNumberSignal()}}</a></span>\n } @else {\n {{formatNumberSignal()}}\n }\n </div>\n }\n }\n @case ('location') {\n @if(isActive()){\n <mat-form-field appearance=\"outline\" class=\"cell-form-field\">\n <input matInput type=\"text\" [id]=\"'location-' + columnName()+ id()\" [name]=\"'location-' + columnName()+ id()\"\n [(ngModel)]=\"currentValue\" placeholder=\"location\" (blur)=\"onLocationBlur()\">\n </mat-form-field>\n } @else {\n <div class=\"cell-display-text\" (dblclick)=\"setActive(true)\"\n [class.cell-display-text-editable]=\"isEditable()\">\n @if (drillable()) {\n <span class=\"drillable-value\" (click)=\"onDrillableClick($event)\">{{currentValue()}}</span>\n } @else {\n {{currentValue()}}\n }\n </div>\n }\n }\n @case ('email') {\n @if(isActive()){\n <mat-form-field appearance=\"outline\" class=\"cell-form-field\">\n <input matInput type=\"email\" [id]=\"'email-' + columnName()+ id()\" [name]=\"'email-' + columnName()+ id()\"\n [(ngModel)]=\"currentValue\" placeholder=\"email\" matTooltipPosition=\"below\" (blur)=\"onEmailBlur()\">\n </mat-form-field>\n } @else {\n <div class=\"cell-display-text\" (dblclick)=\"setActive(true)\"\n [class.cell-display-text-editable]=\"isEditable()\">\n @if (drillable()) {\n <span class=\"drillable-value\" (click)=\"onDrillableClick($event)\">{{currentValue()}}</span>\n } @else {\n {{currentValue()}}\n }\n </div>\n }\n }\n @case ('dropdown_multi_select') {\n <div class=\"cell-display-text\" (dblclick)=\"toggleOverlayMenu($event)\" #multiSelectTrigger\n [class.cell-display-text-editable]=\"isEditable()\">\n @if (drillable()) {\n <span class=\"drillable-value\" (click)=\"onDrillableClick($event)\">{{formattedMultiSelectValue(currentColumnWidth()) || 'Click to select'}}</span>\n } @else {\n {{formattedMultiSelectValue(currentColumnWidth()) || 'Click to select'}}\n }\n </div>\n }\n\n @case ('dropdown_single_select') {\n <div class=\"cell-display-text\" (dblclick)=\"toggleOverlayMenu($event)\" [cdkMenuTriggerFor]=\"singleSelectTrigger\" #singleSelectTrigger\n [class.cell-display-text-editable]=\"isEditable()\">\n @if (drillable()) {\n <span class=\"drillable-value\" (click)=\"onDrillableClick($event)\">{{currentValue()}}</span>\n } @else {\n {{currentValue()}}\n }\n </div>\n }\n\n @case ('checkbox') {\n <div class=\"cell-form-field cell-checkbox\">\n <mat-checkbox [(ngModel)]=\"currentValue\">\n </mat-checkbox>\n </div>\n }\n\n @case ('people') {\n <div class=\"assignee-avatars \" (dblclick)=\"toggleOverlayMenu($event)\" #peopleTrigger>\n @if (isAssigneeArray(currentValue()) && currentValue().length > 0) {\n @if (drillable()) {\n <span class=\"drillable-value\" (click)=\"onDrillableClick($event)\">\n @for (assignee of currentValue(); track $index) {\n @if ($index < 3) {\n <div class=\"avatar-circle\" [style.z-index]=\"currentValue().length - $index\">\n {{ getInitials(assignee) }}\n </div>\n }\n }\n @if (currentValue().length > 3) {\n <div class=\"avatar-circle count-circle\" [style.z-index]=\"1\">\n +{{ currentValue().length - 3 }}\n </div>\n }\n </span>\n } @else {\n @for (assignee of currentValue(); track $index) {\n @if ($index < 3) {\n <div class=\"avatar-circle\" [style.z-index]=\"currentValue().length - $index\">\n {{ getInitials(assignee) }}\n </div>\n }\n }\n @if (currentValue().length > 3) {\n <div class=\"avatar-circle count-circle\" [style.z-index]=\"1\">\n +{{ currentValue().length - 3 }}\n </div>\n }\n }\n }\n </div>\n }\n\n\n @case ('date') {\n <div class=\"cell-date-container\">\n @if(isActive()){\n <input type=\"text\" [id]=\"'date-' + columnName()+ id()\" [name]=\"'date-' + columnName()+ id()\"\n [matDatepicker]=\"picker\" appCustomDatePicker class=\"inputRef date-picker\" [ngModel]=\"currentValue()\"\n (ngModelChange)=\"onDateChange($event)\" (click)=\"picker.open()\" readonly>\n <mat-datepicker-toggle hidden matIconSuffix [for]=\"picker\"></mat-datepicker-toggle>\n <mat-datepicker #picker></mat-datepicker>\n } @else {\n <div class=\"cell-display-text\" (dblclick)=\"setActive(true)\"\n [class.cell-display-text-editable]=\"isEditable()\">\n @if (drillable()) {\n <span class=\"drillable-value\" (click)=\"onDrillableClick($event)\">{{currentValue()}}</span>\n } @else {\n {{currentValue()}}\n }\n </div>\n }\n </div>\n }\n\n\n @case ('priority') {\n <button mat-stroked-button [cdkMenuTriggerFor]=\"prioritySelectMenu\" class=\"dropdown-trigger\">\n <div class=\"cell-priority-content\">\n <div [innerHTML]=\"getPriorityIcon()\"></div>\n @if (drillable()) {\n <div class=\"drillable-value\" (click)=\"onDrillableClick($event)\">{{currentValue()}}</div>\n } @else {\n <div>{{currentValue()}}</div>\n }\n </div>\n </button>\n }\n @case ('progress') {\n @if(isActive()){\n <div class=\"progress-input-container\">\n <mat-slider class=\"progress-slider\" [min]=\"0\" [max]=\"100\" [step]=\"1\" [discrete]=\"true\">\n <input matSliderThumb [ngModel]=\"currentValue()\" (ngModelChange)=\"setProgressValue($event)\">\n </mat-slider>\n <span class=\"progress-value\">{{currentValue()}}%</span>\n </div>\n } @else {\n <div class=\"progress-bar-container\" [attr.data-progress]=\"currentValue()\">\n <div class=\"progress-bar\" [style.width.%]=\"currentValue()\"></div>\n @if (drillable()) {\n <span class=\"progress-text drillable-value\" (click)=\"onDrillableClick($event)\">{{currentValue()}}%</span>\n } @else {\n <span class=\"progress-text\">{{currentValue()}}%</span>\n }\n </div>\n }\n }\n\n @case ('rating') {\n @if(isActive()){\n <div class=\"rating-input-container\">\n @for (star of getRatingStars(); track star) {\n <span class=\"rating-star\" [class.active]=\"currentValue() >= star\" (click)=\"setRatingValue(star)\"\n (mouseenter)=\"hoverRating = star\" (mouseleave)=\"hoverRating = 0\">\n {{getEmojiForRating(star)}}\n </span>\n }\n <span class=\"rating-value\">{{currentValue()}}/{{columnCellConfiguration()?.end_value || 5}}</span>\n </div>\n } @else {\n <div class=\"rating-display-container\">\n @for (star of getRatingStars(); track star) {\n <span class=\"rating-star\" [class.active]=\"currentValue() >= star\">\n {{getEmojiForRating(star)}}\n </span>\n }\n @if (drillable()) {\n <span class=\"drillable-value\" (click)=\"onDrillableClick($event)\">{{currentValue()}}/{{columnCellConfiguration()?.end_value || 5}}</span>\n }\n </div>\n }\n }\n\n @case ('status') {\n <button mat-stroked-button [cdkMenuTriggerFor]=\"statusSelectMenu\" class=\"status-dropdown-trigger\"\n [style.background-color]=\"getStatusColor(currentValue()).background\"\n [style.border-color]=\"getStatusColor(currentValue()).border\" [style.color]=\"getStatusColor(currentValue()).text\"\n [style.height.px]=\"30\">\n <div class=\"status-button-content\">\n @if(getStatusButtonDisplay(currentValue()).color) {\n\n }\n @if (drillable()) {\n <span class=\"status-text drillable-value\" (click)=\"onDrillableClick($event)\">\n {{getStatusButtonDisplay(currentValue()).text}}\n </span>\n } @else {\n <span class=\"status-text\">\n {{getStatusButtonDisplay(currentValue()).text}}\n </span>\n }\n </div>\n </button>\n }\n\n @case ('tag') {\n <div class=\"tag-container\" [cdkMenuTriggerFor]=\"tagSelectMenu\">\n\n <div class=\"tag-display\">\n @if (drillable()) {\n <span class=\"drillable-value\" (click)=\"onDrillableClick($event)\">\n @for (tag of getTagDisplay(currentValue()).displayTags; track tag) {\n @if (columnCellConfiguration()) {\n <span class=\"tag\" [style.background]=\"getTagColor(tag).background\" [style.color]=\"getTagColor(tag).color\">\n {{tag}}\n </span>\n } @else {\n <span class=\"tag cell-fallback-tag\">\n {{tag}}\n </span>\n }\n }\n @if(getTagDisplay(currentValue()).moreCount > 0) {\n <span class=\"tag-more\">\n + {{getTagDisplay(currentValue()).moreCount}} more\n </span>\n }\n </span>\n } @else {\n @for (tag of getTagDisplay(currentValue()).displayTags; track tag) {\n @if (columnCellConfiguration()) {\n <span class=\"tag\" [style.background]=\"getTagColor(tag).background\" [style.color]=\"getTagColor(tag).color\">\n {{tag}}\n </span>\n } @else {\n <span class=\"tag cell-fallback-tag\">\n {{tag}}\n </span>\n }\n }\n @if(getTagDisplay(currentValue()).moreCount > 0) {\n <span class=\"tag-more\">\n + {{getTagDisplay(currentValue()).moreCount}} more\n </span>\n }\n }\n </div>\n\n </div>\n }\n\n @case ('phone') {\n <app-mobile-input [(ngModel)]=\"currentValue\"\n [defaultCountry]=\"columnCellConfiguration()?.default_country || 'US'\"></app-mobile-input>\n }\n\n @case ('attachment') {\n <div class=\"attachment-cell-wrapper\" (dblclick)=\"toggleOverlayMenu($event)\" cdkOverlayOrigin #attachmentTrigger=\"cdkOverlayOrigin\">\n @if(currentValue()?.length > 0){\n <div class=\"cell-attachment-container\">\n @if (drillable()) {\n <span class=\"drillable-value\" (click)=\"onDrillableClick($event)\">\n <svg width=\"24\" height=\"24\" viewBox=\"0 0 24 24\" fill=\"none\" xmlns=\"http://www.w3.org/2000/svg\">\n <path fill-rule=\"evenodd\" clip-rule=\"evenodd\"\n d=\"M19 12.5C19 14.985 15.866 17 12 17C8.134 17 5 14.985 5 12.5C5 10.015 8.134 8 12 8C15.866 8 19 10.015 19 12.5Z\"\n stroke=\"#7C818C\" stroke-linecap=\"round\" stroke-linejoin=\"round\" />\n <path fill-rule=\"evenodd\" clip-rule=\"evenodd\"\n d=\"M13.75 12.5001C13.7716 13.1394 13.4429 13.7397 12.8925 14.0657C12.3422 14.3918 11.6578 14.3918 11.1075 14.0657C10.5571 13.7397 10.2284 13.1394 10.25 12.5001C10.2284 11.8608 10.5571 11.2606 11.1075 10.9345C11.6578 10.6084 12.3422 10.6084 12.8925 10.9345C13.4429 11.2606 13.7716 11.8608 13.75 12.5001V12.5001Z\"\n stroke=\"#7C818C\" stroke-linecap=\"round\" stroke-linejoin=\"round\" />\n </svg>\n </span>\n } @else {\n <svg width=\"24\" height=\"24\" viewBox=\"0 0 24 24\" fill=\"none\" xmlns=\"http://www.w3.org/2000/svg\">\n <path fill-rule=\"evenodd\" clip-rule=\"evenodd\"\n d=\"M19 12.5C19 14.985 15.866 17 12 17C8.134 17 5 14.985 5 12.5C5 10.015 8.134 8 12 8C15.866 8 19 10.015 19 12.5Z\"\n stroke=\"#7C818C\" stroke-linecap=\"round\" stroke-linejoin=\"round\" />\n <path fill-rule=\"evenodd\" clip-rule=\"evenodd\"\n d=\"M13.75 12.5001C13.7716 13.1394 13.4429 13.7397 12.8925 14.0657C12.3422 14.3918 11.6578 14.3918 11.1075 14.0657C10.5571 13.7397 10.2284 13.1394 10.25 12.5001C10.2284 11.8608 10.5571 11.2606 11.1075 10.9345C11.6578 10.6084 12.3422 10.6084 12.8925 10.9345C13.4429 11.2606 13.7716 11.8608 13.75 12.5001V12.5001Z\"\n stroke=\"#7C818C\" stroke-linecap=\"round\" stroke-linejoin=\"round\" />\n </svg>\n }\n </div>\n }@else {\n <div class=\"cell-attachment-container\">\n @if (drillable()) {\n <span class=\"drillable-value\" (click)=\"onDrillableClick($event)\">\n <svg width=\"24\" height=\"24\" viewBox=\"0 0 24 24\" fill=\"none\" xmlns=\"http://www.w3.org/2000/svg\">\n <path\n d=\"M14.67 11.053L10.68 15.315C10.3416 15.6932 9.85986 15.9119 9.35236 15.9178C8.84487 15.9237 8.35821 15.7162 8.01104 15.346C7.24412 14.5454 7.257 13.2788 8.04004 12.494L13.399 6.763C13.9902 6.10491 14.8315 5.72677 15.7161 5.72163C16.6006 5.71649 17.4463 6.08482 18.045 6.736C19.3222 8.14736 19.3131 10.2995 18.024 11.7L12.342 17.771C11.5334 18.5827 10.4265 19.0261 9.28113 18.9971C8.13575 18.9682 7.05268 18.4695 6.28604 17.618C4.5337 15.6414 4.57705 12.6549 6.38604 10.73L11.753 5\"\n stroke=\"#363B44\" stroke-linecap=\"round\" stroke-linejoin=\"round\" />\n </svg>\n </span>\n } @else {\n <svg width=\"24\" height=\"24\" viewBox=\"0 0 24 24\" fill=\"none\" xmlns=\"http://www.w3.org/2000/svg\">\n <path\n d=\"M14.67 11.053L10.68 15.315C10.3416 15.6932 9.85986 15.9119 9.35236 15.9178C8.84487 15.9237 8.35821 15.7162 8.01104 15.346C7.24412 14.5454 7.257 13.2788 8.04004 12.494L13.399 6.763C13.9902 6.10491 14.8315 5.72677 15.7161 5.72163C16.6006 5.71649 17.4463 6.08482 18.045 6.736C19.3222 8.14736 19.3131 10.2995 18.024 11.7L12.342 17.771C11.5334 18.5827 10.4265 19.0261 9.28113 18.9971C8.13575 18.9682 7.05268 18.4695 6.28604 17.618C4.5337 15.6414 4.57705 12.6549 6.38604 10.73L11.753 5\"\n stroke=\"#363B44\" stroke-linecap=\"round\" stroke-linejoin=\"round\" />\n </svg>\n }\n </div>\n }\n \n \n </div>\n }\n @default {\n <div class=\"cell-default-display\">\n @if (drillable()) {\n <span class=\"drillable-value\" (click)=\"onDrillableClick($event)\">{{value()}}</span>\n } @else {\n {{value()}}\n }\n </div>\n }\n }\n\n</div>\n\n<ng-template #prioritySelectMenu>\n <div class=\"dropdown-menu\" cdkMenu [style.min-width.px]=\"fieldSize()\" (closed)=\"singleOptionClosed()\">\n <div class=\"listbox-container\">\n <mat-form-field appearance=\"outline\" class=\"search-form-field\">\n <input matInput type=\"search\" placeholder=\"Search...\" [(ngModel)]=\"optionSearchText\">\n </mat-form-field>\n\n <ul cdkListbox [ngModel]=\"currentValue()\" (ngModelChange)=\"selectedSingleSelect($event)\"\n aria-labelledby=\"listbox-label\" class=\"listbox\">\n <li [cdkOption]=\"''\" class=\"listbox-option notext-overflow\">\n None\n </li>\n @for (option of filteredOptions(); track option) {\n <li [cdkOption]=\"option.value\" class=\"listbox-option notext-overflow cell-priority-content\">\n <div [innerHTML]=\"sanitize.bypassSecurityTrustHtml(option.icon)\"></div>\n <div>{{option.label}}</div>\n </li>\n }\n </ul>\n </div>\n </div>\n</ng-template>\n\n<ng-template cdkConnectedOverlay\n[cdkConnectedOverlayOrigin]=\"singleSelectTrigger\"\n[cdkConnectedOverlayOpen]=\"showOverlayMenu('dropdown_single_select')\"\n(detach)=\"isOpen = showOverlayMenu('dropdown_single_select')\">\n <div class=\"dropdown-menu\" cdkMenu [style.width.px]=\"currentColumnWidth()\" (closed)=\"singleOptionClosed()\">\n <div class=\"listbox-container\">\n <mat-form-field appearance=\"outline\" class=\"search-form-field\">\n <input matInput type=\"search\" placeholder=\"Search...\" (click)=\"$event.stopPropagation()\" [(ngModel)]=\"optionSearchText\">\n </mat-form-field>\n <ul cdkListbox [ngModel]=\"currentValue()\" (ngModelChange)=\"selectedSingleSelect($event)\"\n aria-labelledby=\"listbox-label\" class=\"listbox\">\n <li [cdkOption]=\"'None'\" class=\"listbox-option notext-overflow\">\n None\n </li>\n <li [cdkOption]=\"'option 1'\" class=\"listbox-option notext-overflow\">\n option 1\n </li>\n <li [cdkOption]=\"'option 2'\" class=\"listbox-option notext-overflow\">\n option 2\n </li>\n <li [cdkOption]=\"'option 3'\" class=\"listbox-option notext-overflow\">\n option 3\n </li>\n <li [cdkOption]=\"'option 4'\" class=\"listbox-option notext-overflow\">\n option 4\n </li><li [cdkOption]=\"'option 5'\" class=\"listbox-option notext-overflow\">\n option 5\n </li><li [cdkOption]=\"'option 6'\" class=\"listbox-option notext-overflow\">\n option 6\n </li><li [cdkOption]=\"'option 7'\" class=\"listbox-option notext-overflow\">\n option 7\n </li><li [cdkOption]=\"'option 1'\" class=\"listbox-option notext-overflow\">\n option 1\n </li><li [cdkOption]=\"'option 9'\" class=\"listbox-option notext-overflow\">\n option 9\n </li><li [cdkOption]=\"'option 10'\" class=\"listbox-option notext-overflow\">\n option 10\n </li><li [cdkOption]=\"'option 11'\" class=\"listbox-option notext-overflow\">\n option 11\n </li><li [cdkOption]=\"'option 12'\" class=\"listbox-option notext-overflow\">\n option 12\n </li><li [cdkOption]=\"'option 13'\" class=\"listbox-option notext-overflow\">\n option 13\n </li><li [cdkOption]=\"'option 14'\" class=\"listbox-option notext-overflow\">\n option 14\n </li><li [cdkOption]=\"'option 15'\" class=\"listbox-option notext-overflow\">\n option 15\n </li><li [cdkOption]=\"'option 16'\" class=\"listbox-option notext-overflow\">\n option 16\n </li><li [cdkOption]=\"'option 17'\" class=\"listbox-option notext-overflow\">\n option 17\n </li><li [cdkOption]=\"'option 18'\" class=\"listbox-option notext-overflow\">\n option 18\n </li>\n @for (option of filteredOptions(); track option) {\n <li [cdkOption]=\"option.value\" class=\"listbox-option notext-overflow\">\n {{option.label}}\n </li>\n }\n </ul>\n </div>\n </div>\n</ng-template>\n\n<ng-template \ncdkConnectedOverlay\n[cdkConnectedOverlayOrigin]=\"multiSelectTrigger\"\n[cdkConnectedOverlayOpen]=\"showOverlayMenu('dropdown_multi_select')\"\n(detach)=\"isOpen = showOverlayMenu('dropdown_multi_select')\">\n <div class=\"dropdown-menu\" cdkMenu [style.width.px]=\"currentColumnWidth()\" (closed)=\"singleOptionClosed()\">\n <div class=\"listbox-container\">\n <mat-form-field appearance=\"outline\" class=\"search-form-field\">\n <input matInput type=\"search\" placeholder=\"Search...\" [ngModel]=\"optionSearchText()\"\n (ngModelChange)=\"optionSearchText.set($event)\" (click)=\"$event.stopPropagation()\">\n </mat-form-field>\n \n <!-- Select All Checkbox -->\n <div class=\"select-all-container\" (click)=\"$event.stopPropagation()\">\n <mat-checkbox \n [checked]=\"isAllSelected()\" \n [indeterminate]=\"isIndeterminate()\"\n (change)=\"toggleSelectAll($event.checked)\">\n <span class=\"select-all-text\">Select All</span>\n </mat-checkbox>\n </div>\n \n <ul cdkListboxMultiple=\"true\" cdkListboxUseActiveDescendant cdkListbox [ngModel]=\"currentValue()\"\n (ngModelChange)=\"selectedMultiSelect($event)\" aria-labelledby=\"listbox-labssel\" class=\"listbox\" (click)=\"$event.stopPropagation()\">\n <li [cdkOption]=\"'None'\" class=\"multi-listbox-option notext-overflow\">\n <div class=\"option-content\">\n <mat-checkbox [checked]=\"isOptionSelected('None')\" (click)=\"$event.stopPropagation();appendMultiSelect('None')\"></mat-checkbox>\n <span class=\"option-text\">None</span>\n </div>\n </li>\n <li [cdkOption]=\"'option 1'\" class=\"multi-listbox-option notext-overflow\">\n <div class=\"option-content\">\n <mat-checkbox [checked]=\"isOptionSelected('option 1')\" (click)=\"$event.stopPropagation();appendMultiSelect('option 1')\"></mat-checkbox>\n <span class=\"option-text\">option 1</span>\n </div>\n </li>\n <li [cdkOption]=\"'option 2'\" class=\"multi-listbox-option notext-overflow\">\n <div class=\"option-content\">\n <mat-checkbox [checked]=\"isOptionSelected('option 2')\" (click)=\"$event.stopPropagation();appendMultiSelect('option 2')\"></mat-checkbox>\n <span class=\"option-text\">option 2</span>\n </div>\n </li>\n <li [cdkOption]=\"'option 3'\" class=\"multi-listbox-option notext-overflow\">\n <div class=\"option-content\">\n <mat-checkbox [checked]=\"isOptionSelected('option 3')\" (click)=\"$event.stopPropagation();appendMultiSelect('option 3')\"></mat-checkbox>\n <span class=\"option-text\">option 3</span>\n </div>\n </li>\n <li [cdkOption]=\"'option 4'\" class=\"multi-listbox-option notext-overflow\">\n <div class=\"option-content\">\n <mat-checkbox [checked]=\"isOptionSelected('option 4')\" (click)=\"$event.stopPropagation();appendMultiSelect('option 4')\"></mat-checkbox>\n <span class=\"option-text\">option 4</span>\n </div>\n </li>\n <li [cdkOption]=\"'option 5'\" class=\"multi-listbox-option notext-overflow\">\n <div class=\"option-content\">\n <mat-checkbox [checked]=\"isOptionSelected('option 5')\" (click)=\"$event.stopPropagation();appendMultiSelect('option 5')\"></mat-checkbox>\n <span class=\"option-text\">option 5</span>\n </div>\n </li>\n <li [cdkOption]=\"'option 6'\" class=\"multi-listbox-option notext-overflow\">\n <div class=\"option-content\">\n <mat-checkbox [checked]=\"isOptionSelected('option 6')\" (click)=\"$event.stopPropagation();appendMultiSelect('option 6')\"></mat-checkbox>\n <span class=\"option-text\">option 6</span>\n </div>\n </li>\n <li [cdkOption]=\"'option 7'\" class=\"multi-listbox-option notext-overflow\">\n <div class=\"option-content\">\n <mat-checkbox [checked]=\"isOptionSelected('option 7')\" (click)=\"$event.stopPropagation();appendMultiSelect('option 7')\"></mat-checkbox>\n <span class=\"option-text\">option 7</span>\n </div>\n </li>\n <li [cdkOption]=\"'option 8'\" class=\"multi-listbox-option notext-overflow\">\n <div class=\"option-content\">\n <mat-checkbox [checked]=\"isOptionSelected('option 8')\" (click)=\"$event.stopPropagation();appendMultiSelect('option 8')\"></mat-checkbox>\n <span class=\"option-text\">option 8</span>\n </div>\n </li>\n <li [cdkOption]=\"'option 9'\" class=\"multi-listbox-option notext-overflow\">\n <div class=\"option-content\">\n <mat-checkbox [checked]=\"isOptionSelected('option 9')\" (click)=\"$event.stopPropagation();appendMultiSelect('option 9')\"></mat-checkbox>\n <span class=\"option-text\">option 9</span>\n </div>\n </li>\n <li [cdkOption]=\"'option 10'\" class=\"multi-listbox-option notext-overflow\">\n <div class=\"option-content\">\n <mat-checkbox [checked]=\"isOptionSelected('option 10')\" (click)=\"$event.stopPropagation();appendMultiSelect('option 10')\"></mat-checkbox>\n <span class=\"option-text\">option 10</span>\n </div>\n </li>\n @for (option of filteredOptions(); track option) {\n <li [cdkOption]=\"option.value\" class=\"multi-listbox-option notext-overflow\">\n <div class=\"option-content\">\n <mat-checkbox [checked]=\"isOptionSelected(option.value)\" (click)=\"$event.stopPropagation();appendMultiSelect(option.value)\"></mat-checkbox>\n <span class=\"option-text\">{{option.label}}</span>\n </div>\n </li>\n }\n </ul>\n </div>\n </div>\n</ng-template>\n\n<ng-template cdkConnectedOverlay\n[cdkConnectedOverlayOrigin]=\"peopleTrigger\"\n[cdkConnectedOverlayOpen]=\"showOverlayMenu('people')\"\n(detach)=\"isOpen = showOverlayMenu('people')\">\n <div class=\"dropdown-menu\" cdkMenu [style.width.px]=\"currentColumnWidth()\" (closed)=\"singleOptionClosed()\">\n <div class=\"listbox-container\">\n <mat-form-field appearance=\"outline\" class=\"search-form-field\">\n <input matInput type=\"search\" placeholder=\"Search...\" [ngModel]=\"optionSearchText()\" (click)=\"$event.stopPropagation()\"\n (ngModelChange)=\"optionSearchText.set($event)\">\n </mat-form-field>\n <ul cdkListboxMultiple=\"true\" cdkListboxUseActiveDescendant cdkListbox [ngModel]=\"currentValue()\"\n (ngModelChange)=\"selectedMultiSelect($event)\" aria-labelledby=\"listbox-labssel\" class=\"listbox\">\n <li [cdkOption]=\"'person0@domain.com'\" class=\"multi-listbox-option notext-overflow\">\n <div class=\"option-content\">\n <div class=\"option-avatar\">{{ getInitials('person0@domain.com') }}</div>\n <span class=\"option-text\">person0@domain.com</span>\n @if (isOptionSelected('person0@domain.com')) {\n <span class=\"checkmark\">\u2713</span>\n }\n </div>\n </li>\n <li [cdkOption]=\"'person1@domain.com'\" class=\"multi-listbox-option notext-overflow\">\n <div class=\"option-content\">\n <div class=\"option-avatar\">{{ getInitials('person1@domain.com') }}</div>\n <span class=\"option-text\">person1@domain.com</span>\n @if (isOptionSelected('person1@domain.com')) {\n <span class=\"checkmark\">\u2713</span>\n }\n </div>\n </li>\n <li [cdkOption]=\"'person2@domain.com'\" class=\"multi-listbox-option notext-overflow\">\n <div class=\"option-content\">\n <div class=\"option-avatar\">{{ getInitials('person2@domain.com') }}</div>\n <span class=\"option-text\">person2@domain.com</span>\n @if (isOptionSelected('person2@domain.com')) {\n <span class=\"checkmark\">\u2713</span>\n }\n </div>\n </li>\n <li [cdkOption]=\"'person3@domain.com'\" class=\"multi-listbox-option notext-overflow\">\n <div class=\"option-content\">\n <div class=\"option-avatar\">{{ getInitials('person3@domain.com') }}</div>\n <span class=\"option-text\">person3@domain.com</span>\n @if (isOptionSelected('person3@domain.com')) {\n <span class=\"checkmark\">\u2713</span>\n }\n </div>\n </li>\n <li [cdkOption]=\"'person4@domain.com'\" class=\"multi-listbox-option notext-overflow\">\n <div class=\"option-content\">\n <div class=\"option-avatar\">{{ getInitials('person4@domain.com') }}</div>\n <span class=\"option-text\">person4@domain.com</span>\n @if (isOptionSelected('person4@domain.com')) {\n <span class=\"checkmark\">\u2713</span>\n }\n </div>\n </li>\n <li [cdkOption]=\"'person5@domain.com'\" class=\"multi-listbox-option notext-overflow\">\n <div class=\"option-content\">\n <div class=\"option-avatar\">{{ getInitials('person5@domain.com') }}</div>\n <span class=\"option-text\">person5@domain.com</span>\n @if (isOptionSelected('person5@domain.com')) {\n <span class=\"checkmark\">\u2713</span>\n }\n </div>\n </li>\n @for (option of filteredOptions(); track option) {\n <li [cdkOption]=\"option.value\" class=\"multi-listbox-option notext-overflow listbox-option_people\">\n <div class=\"option-content\">\n <div class=\"option-avatar\">{{ getInitials(option.value) }}</div>\n <span class=\"option-text\">{{option.label}}</span>\n @if (isOptionSelected(option.value)) {\n <span class=\"checkmark\">\u2713</span>\n }\n </div>\n </li>\n }\n </ul>\n </div>\n </div>\n</ng-template>\n\n<ng-template #statusSelectMenu>\n <div class=\"dropdown-menu status-dropdown-menu\" cdkMenu [style.min-width.px]=\"fieldSize()\"\n (closed)=\"singleOptionClosed()\">\n <div class=\"listbox-container\">\n <mat-form-field appearance=\"outline\" class=\"search-form-field\">\n <input matInput type=\"search\" placeholder=\"Search...\" [(ngModel)]=\"optionSearchText\">\n </mat-form-field>\n\n <ul cdkListbox [ngModel]=\"currentValue()\" (ngModelChange)=\"selectedSingleSelect($event)\"\n aria-labelledby=\"listbox-label\" class=\"listbox status-listbox\">\n <li [cdkOption]=\"''\" class=\"listbox-option notext-overflow\">\n None\n </li>\n @for (option of getStatusOptions(); track option.value) {\n <li [cdkOption]=\"option.value\" class=\"listbox-option status-option\"\n [style.background-color]=\"getStatusColor(option.value).background\"\n [style.border-color]=\"getStatusColor(option.value).border\" [style.color]=\"getStatusColor(option.value).text\">\n @if(option.color) {\n <span class=\"status-color-indicator\" [style.background-color]=\"option.color\"></span>\n }\n {{option.label}}\n </li>\n }\n </ul>\n </div>\n </div>\n</ng-template>\n\n<ng-template #tagSelectMenu>\n <div class=\"dropdown-menu tag-dropdown-menu\" [style.min-width.px]=\"fieldSize()\">\n <div class=\"listbox-container\">\n <mat-form-field appearance=\"outline\" class=\"search-form-field\">\n <input matInput type=\"search\" placeholder=\"Search or add tag...\" [ngModel]=\"optionSearchText()\"\n (ngModelChange)=\"optionSearchText.set($event)\" (keyup.enter)=\"addNewTag(optionSearchText())\"\n [style.min-width.px]=\"fieldSize()\">\n </mat-form-field>\n\n <ul cdkListboxMultiple=\"true\" cdkListbox [ngModel]=\"currentValue()\" (ngModelChange)=\"selectedMultiSelect($event)\"\n class=\"listbox tag-listbox\" [style.min-width.px]=\"fieldSize()\">\n <!-- Predefined tags -->\n @for (option of getTagOptions(); track option.value) {\n <li [cdkOption]=\"option.value\" class=\"listbox-option tag-option\">\n {{option.label}}\n </li>\n }\n\n <!-- New tag input -->\n\n\n\n </ul>\n\n </div>\n </div>\n</ng-template>\n\n<!-- Attachment Menu - Positioned relative to the cell -->\n<ng-template \ncdkConnectedOverlay\n[cdkConnectedOverlayOrigin]=\"attachmentTrigger\"\n[cdkConnectedOverlayOpen]=\"showOverlayMenu('attachment')\"\n(detach)=\"isOpen = showOverlayMenu('attachment')\">\n <div class=\"attachment-menu-overlay\" [style.width.px]=\"currentColumnWidth()\" [style.min-width.px]=\"300\">\n <div class=\"attachment-container\">\n <!-- Header Section -->\n <div class=\"attachment-header\">\n <span class=\"attachment-title\">Add or Drag files</span>\n <button mat-flat-button \n (click)=\"fileInput.click()\" \n class=\"attachment-upload-btn\">\n Upload\n </button>\n </div>\n \n <!-- Drop zone -->\n <div class=\"attachment-drop-zone\" \n (drop)=\"onFileDrop($event)\" \n (dragover)=\"onDragOver($event)\" \n (dragleave)=\"onDragLeave($event)\"\n (paste)=\"onPaste($event)\"\n (click)=\"fileInput.click()\"\n [class.dragging]=\"isDragging()\">\n <div class=\"attachment-drop-content\">\n <div class=\"attachment-drop-icon\">+</div>\n <div class=\"attachment-drop-text\">\n <div class=\"primary-text\">Click to upload or drag files here</div>\n <div class=\"secondary-text\">Support multiple files</div>\n </div>\n </div>\n </div>\n \n <!-- Hidden file input -->\n <input #fileInput \n type=\"file\" \n multiple \n (change)=\"fileInputChange($event)\" \n style=\"display: none;\">\n \n <!-- File list -->\n <div class=\"attachment-file-list\" *ngIf=\"currentValue()?.length > 0\">\n <div class=\"attachment-file-item\" *ngFor=\"let file of currentValue(); trackBy: trackByFile\">\n <div class=\"file-info\">\n <span class=\"file-icon\">\uD83D\uDCC4</span>\n <span class=\"file-name\">{{ file?.split('_')?.[2] || file }}</span>\n </div>\n <div class=\"file-actions\">\n <button class=\"action-btn\" (click)=\"viewFile(file)\" title=\"View\">\uD83D\uDC41\uFE0F</button>\n <button class=\"action-btn\" (click)=\"deleteFile(file)\" title=\"Delete\">\uD83D\uDDD1\uFE0F</button>\n </div>\n </div>\n </div>\n </div>\n </div>\n</ng-template>", styles: [":host{display:block;height:100%;width:100%;position:relative;overflow:hidden!important}.container{height:calc(100% - 2px);width:calc(100% - 2px);position:relative!important;overflow:hidden!important;max-width:100%!important;box-sizing:border-box!important}.container .cell-display-text{text-overflow:ellipsis!important;overflow:hidden!important;white-space:nowrap!important;max-width:100%!important;width:100%!important;display:block!important}.inputRef{height:inherit;width:inherit;border:none}.inputRef:focus{outline:none}.cell-checkbox{text-align:center}.cell-form-field{width:100%!important;height:100%!important;padding:0!important;margin:0!important}.cell-form-field .mat-mdc-form-field-outline,.cell-form-field .mat-mdc-form-field-subscript-wrapper,.cell-form-field .mat-mdc-form-field-text-suffix{display:none!important}.cell-form-field .mat-mdc-form-field-wrapper,.cell-form-field .mat-mdc-form-field-wrapper .mat-mdc-form-field-flex{width:100%!important;height:100%!important;padding:0!important;margin:0!important}.cell-form-field .mat-mdc-form-field-wrapper .mat-mdc-form-field-flex .mat-mdc-form-field-infix{width:100%!important;height:100%!important;padding:0!important;margin:0!important;min-height:auto!important;border-top:none!important}.cell-form-field input[matInput]{width:100%!important;height:100%!important;padding:2px!important;margin:0!important;border:none!important;outline:none!important;background:transparent!important;font-size:14px!important;line-height:normal!important;box-sizing:border-box!important;max-width:none!important;min-width:0!important;flex:none!important}.dropdown-menu{width:100%}.attachment-menu,.dropdown-menu,.dropdown-menu.attachment-menu,[cdkMenu].attachment-menu{background:var(--grid-surface, #fef7ff)!important;background-color:var(--grid-surface, #fef7ff)!important;border-radius:8px!important;box-shadow:var(--grid-elevation-2, 0px 1px 2px 0px rgba(0, 0, 0, .3), 0px 2px 6px 2px rgba(0, 0, 0, .15))!important;border:1px solid var(--grid-outline-variant, #cac4d0)!important}.attachment-menu.cdk-overlay-pane,.dropdown-menu.cdk-overlay-pane,.dropdown-menu.attachment-menu.cdk-overlay-pane,[cdkMenu].attachment-menu.cdk-overlay-pane{background:var(--grid-surface)!important;background-color:var(--grid-surface)!important}.attachment-menu .attachment-container,.dropdown-menu .attachment-container,.dropdown-menu.attachment-menu .attachment-container,[cdkMenu].attachment-menu .attachment-container{padding:4px;background:var(--grid-surface, #fef7ff);border-radius:8px}.attachment-menu .attachment-header,.dropdown-menu .attachment-header,.dropdown-menu.attachment-menu .attachment-header,[cdkMenu].attachment-menu .attachment-header{display:flex!important;justify-content:space-between!important;align-items:center!important;margin-bottom:24px!important;padding:0!important}.attachment-menu .attachment-header .attachment-title,.dropdown-menu .attachment-header .attachment-title,.dropdown-menu.attachment-menu .attachment-header .attachment-title,[cdkMenu].attachment-menu .attachment-header .attachment-title{font-family:var(--grid-font-family, \"Poppins\")!important;font-size:16px!important;font-weight:500!important;color:var(--grid-on-surface, #1d1b20)!important;margin:0!important}.attachment-menu .attachment-header .attachment-upload-btn,.attachment-menu .attachment-header .attachment-upload-btn.mat-mdc-raised-button,.attachment-menu .attachment-header .attachment-upload-btn.mat-mdc-button,.dropdown-menu .attachment-header .attachment-upload-btn,.dropdown-menu .attachment-header .attachment-upload-btn.mat-mdc-raised-button,.dropdown-menu .attachment-header .attachment-upload-btn.mat-mdc-button,.dropdown-menu.attachment-menu .attachment-header .attachment-upload-btn,.dropdown-menu.attachment-menu .attachment-header .attachment-upload-btn.mat-mdc-raised-button,.dropdown-menu.attachment-menu .attachment-header .attachment-upload-btn.mat-mdc-button,[cdkMenu].attachment-menu .attachment-header .attachment-upload-btn,[cdkMenu].attachment-menu .attachment-header .attachment-upload-btn.mat-mdc-raised-button,[cdkMenu].attachment-menu .attachment-header .attachment-upload-btn.mat-mdc-button{background:var(--grid-primary, #6750a4)!important;background-color:var(--grid-primary, #6750a4)!important;color:var(--grid-on-primary, #ffffff)!important;font-family:var(--grid-font-family, \"Poppins\")!important;font-weight:500!important;padding:8px 20px!important;border-radius:6px!important;border:none!important;cursor:pointer!important;font-size:14px!important;letter-spacing:.5px!important;box-shadow:var(--grid-elevation-1, 0px 1px 2px 0px rgba(0, 0, 0, .3), 0px 1px 3px 1px rgba(0, 0, 0, .15))!important;transition:background-color .2s ease!important}.attachment-menu .attachment-header .attachment-upload-btn .mdc-button__label,.attachment-menu .attachment-header .attachment-upload-btn.mat-mdc-raised-button .mdc-button__label,.attachment-menu .attachment-header .attachment-upload-btn.mat-mdc-button .mdc-button__label,.dropdown-menu .attachment-header .attachment-upload-btn .mdc-button__label,.dropdown-menu .attachment-header .attachment-upload-btn.mat-mdc-raised-button .mdc-button__label,.dropdown-menu .attachment-header .attachment-upload-btn.mat-mdc-button .mdc-button__label,.dropdown-menu.attachment-menu .attachment-header .attachment-upload-btn .mdc-button__label,.dropdown-menu.attachment-menu .attachment-header .attachment-upload-btn.mat-mdc-raised-button .mdc-button__label,.dropdown-menu.attachment-menu .attachment-header .attachment-upload-btn.mat-mdc-button .mdc-button__label,[cdkMenu].attachment-menu .attachment-header .attachment-upload-btn .mdc-button__label,[cdkMenu].attachment-menu .attachment-header .attachment-upload-btn.mat-mdc-raised-button .mdc-button__label,[cdkMenu].attachment-menu .attachment-header .attachment-upload-btn.mat-mdc-button .mdc-button__label{color:var(--grid-on-primary, #ffffff)!important}.attachment-menu .attachment-header .attachment-upload-btn:hover,.attachment-menu .attachment-header .attachment-upload-btn.mat-mdc-raised-button:hover,.attachment-menu .attachment-header .attachment-upload-btn.mat-mdc-button:hover,.dropdown-menu .attachment-header .attachment-upload-btn:hover,.dropdown-menu .attachment-header .attachment-upload-btn.mat-mdc-raised-button:hover,.dropdown-menu .attachment-header .attachment-upload-btn.mat-mdc-button:hover,.dropdown-menu.attachment-menu .attachment-header .attachment-upload-btn:hover,.dropdown-menu.attachment-menu .attachment-header .attachment-upload-btn.mat-mdc-raised-button:hover,.dropdown-menu.attachment-menu .attachment-header .attachment-upload-btn.mat-mdc-button:hover,[cdkMenu].attachment-menu .attachment-header .attachment-upload-btn:hover,[cdkMenu].attachment-menu .attachment-header .attachment-upload-btn.mat-mdc-raised-button:hover,[cdkMenu].attachment-menu .attachment-header .attachment-upload-btn.mat-mdc-button:hover{opacity:.9!important}.attachment-menu .attachment-header .attachment-upload-btn:before,.attachment-menu .attachment-header .attachment-upload-btn:after,.attachment-menu .attachment-header .attachment-upload-btn.mat-mdc-raised-button:before,.attachment-menu .attachment-header .attachment-upload-btn.mat-mdc-raised-button:after,.attachment-menu .attachment-header .attachment-upload-btn.mat-mdc-button:before,.attachment-menu .attachment-header .attachment-upload-btn.mat-mdc-button:after,.dropdown-menu .attachment-header .attachment-upload-btn:before,.dropdown-menu .attachment-header .attachment-upload-btn:after,.dropdown-menu .attachment-header .attachment-upload-btn.mat-mdc-raised-button:before,.dropdown-menu .attachment-header .attachment-upload-btn.mat-mdc-raised-button:after,.dropdown-menu .attachment-header .attachment-upload-btn.mat-mdc-button:before,.dropdown-menu .attachment-header .attachment-upload-btn.mat-mdc-button:after,.dropdown-menu.attachment-menu .attachment-header .attachment-upload-btn:before,.dropdown-menu.attachment-menu .attachment-header .attachment-upload-btn:after,.dropdown-menu.attachment-menu .attachment-header .attachment-upload-btn.mat-mdc-raised-button:before,.dropdown-menu.attachment-menu .attachment-header .attachment-upload-btn.mat-mdc-raised-button:after,.dropdown-menu.attachment-menu .attachment-header .attachment-upload-btn.mat-mdc-button:before,.dropdown-menu.attachment-menu .attachment-header .attachment-upload-btn.mat-mdc-button:after,[cdkMenu].attachment-menu .attachment-header .attachment-upload-btn:before,[cdkMenu].attachment-menu .attachment-header .attachment-upload-btn:after,[cdkMenu].attachment-menu .attachment-header .attachment-upload-btn.mat-mdc-raised-button:before,[cdkMenu].attachment-menu .attachment-header .attachment-upload-btn.mat-mdc-raised-button:after,[cdkMenu].attachment-menu .attachment-header .attachment-upload-btn.mat-mdc-button:before,[cdkMenu].attachment-menu .attachment-header .attachment-upload-btn.mat-mdc-button:after{display:none!important}.attachment-menu .attachment-drop-zone,.dropdown-menu .attachment-drop-zone,.dropdown-menu.attachment-menu .attachment-drop-zone,[cdkMenu].attachment-menu .attachment-drop-zone{border:2px dashed var(--grid-outline-variant, #cac4d0)!important;border-radius:8px!important;padding:10px!important;text-align:center!important;cursor:pointer!important;transition:all .3s ease!important;background:var(--grid-surface-variant, #e7e0ec)!important;margin:16px 0!important}.attachment-menu .attachment-drop-zone:hover,.dropdown-menu .attachment-drop-zone:hover,.dropdown-menu.attachment-menu .attachment-drop-zone:hover,[cdkMenu].attachment-menu .attachment-drop-zone:hover{border-color:var(--grid-primary, #6750a4)!important;background:var(--grid-surface-container, #f3edf7)!important}.attachment-menu .attachment-drop-zone.dragging,.dropdown-menu .attachment-drop-zone.dragging,.dropdown-menu.attachment-menu .attachment-drop-zone.dragging,[cdkMenu].attachment-menu .attachment-drop-zone.dragging{border-color:var(--grid-primary, #6750a4)!important;background:var(--grid-surface-container, #f3edf7)!important;transform:scale(1.01)!important}.attachment-menu .attachment-drop-zone .attachment-drop-content,.dropdown-menu .attachment-drop-zone .attachment-drop-content,.dropdown-menu.attachment-menu .attachment-drop-zone .attachment-drop-content,[cdkMenu].attachment-menu .attachment-drop-zone .attachment-drop-content{display:flex!important;flex-direction:column!important;align-items:center!important;gap:12px!important}.attachment-menu .attachment-drop-zone .attachment-drop-icon,.dropdown-menu .attachment-drop-zone .attachment-drop-icon,.dropdown-menu.attachment-menu .attachment-drop-zone .attachment-drop-icon,[cdkMenu].attachment-menu .attachment-drop-zone .attachment-drop-icon{font-size:48px!important;color:var(--grid-primary, #6750a4)!important;font-weight:300!important;line-height:1!important}.attachment-menu .attachment-drop-zone .attachment-drop-text .primary-text,.dropdown-menu .attachment-drop-zone .attachment-drop-text .primary-text,.dropdown-menu.attachment-menu .attachment-drop-zone .attachment-drop-text .primary-text,[cdkMenu].attachment-menu .attachment-drop-zone .attachment-drop-text .primary-text{font-family:var(--grid-font-family, \"Poppins\")!important;font-size:14px!important;color:var(--grid-on-surface-variant, #49454f)!important;font-weight:400!important;margin:0!important}.attachment-menu .attachment-drop-zone .attachment-drop-text .secondary-text,.dropdown-menu .attachment-drop-zone .attachment-drop-text .secondary-text,.dropdown-menu.attachment-menu .attachment-drop-zone .attachment-drop-text .secondary-text,[cdkMenu].attachment-menu .attachment-drop-zone .attachment-drop-text .secondary-text{font-family:var(--grid-font-family, \"Poppins\")!important;font-size:12px!important;color:var(--grid-on-surface-variant, #49454f)!important;margin-top:4px!important;display:block!important}.attachment-menu .attachment-file-list,.dropdown-menu .attachment-file-list,.dropdown-menu.attachment-menu .attachment-file-list,[cdkMenu].attachment-menu .attachment-file-list{display:block!important;margin-top:16px!important;border-top:1px solid var(--grid-outline-variant, #cac4d0)!important;padding-top:16px!important}.attachment-menu .attachment-file-list .attachment-file-item,.dropdown-menu .attachment-file-list .attachment-file-item,.dropdown-menu.attachment-menu .attachment-file-list .attachment-file-item,[cdkMenu].attachment-menu .attachment-file-list .attachment-file-item{display:flex!important;align-items:center!important;justify-content:space-between!important;padding:8px 0!important;border-bottom:1px solid var(--grid-outline-variant, #cac4d0)!important}.attachment-menu .attachment-file-list .attachment-file-item:last-child,.dropdown-menu .attachment-file-list .attachment-file-item:last-child,.dropdown-menu.attachment-menu .attachment-file-list .attachment-file-item:last-child,[cdkMenu].attachment-menu .attachment-file-list .attachment-file-item:last-child{border-bottom:none!important}.attachment-menu .attachment-file-list .attachment-file-item .file-info,.dropdown-menu .attachment-file-list .attachment-file-item .file-info,.dropdown-menu.attachment-menu .attachment-file-list .attachment-file-item .file-info,[cdkMenu].attachment-menu .attachment-file-list .attachment-file-item .file-info{display:flex!important;align-items:center!important;gap:8px!important;flex:1!important}.attachment-menu .attachment-file-list .attachment-file-item .file-info .file-icon,.dropdown-menu .attachment-file-list .attachment-file-item .file-info .file-icon,.dropdown-menu.attachment-menu .attachment-file-list .attachment-file-item .file-info .file-icon,[cdkMenu].attachment-menu .attachment-file-list .attachment-file-item .file-info .file-icon{font-size:16px!important;color:var(--grid-on-surface-variant, #49454f)!important}.attachment-menu .attachment-file-list .attachment-file-item .file-info .file-name,.dropdown-menu .attachment-file-list .attachment-file-item .file-info .file-name,.dropdown-menu.attachment-menu .attachment-file-list .attachment-file-item .file-info .file-name,[cdkMenu].attachment-menu .attachment-file-list .attachment-file-item .file-info .file-name{font-family:var(--grid-font-family, \"Poppins\")!important;font-size:14px!important;color:var(--grid-on-surface, #1d1b20)!important;word-break:break-word!important}.attachment-menu .attachment-file-list .attachment-file-item .file-actions,.dropdown-menu .attachment-file-list .attachment-file-item .file-actions,.dropdown-menu.attachment-menu .attachment-file-list .attachment-file-item .file-actions,[cdkMenu].attachment-menu .attachment-file-list .attachment-file-item .file-actions{display:flex!important;gap:4px!important}.attachment-menu .attachment-file-list .attachment-file-item .file-actions .action-btn,.dropdown-menu .attachment-file-list .attachment-file-item .file-actions .action-btn,.dropdown-menu.attachment-menu .attachment-file-list .attachment-file-item .file-actions .action-btn,[cdkMenu].attachment-menu .attachment-file-list .attachment-file-item .file-actions .action-btn{width:24px!important;height:24px!important;border:none!important;background:transparent!important;cursor:pointer!important;border-radius:4px!important;font-size:14px!important;color:var(--grid-on-surface-variant, #49454f)!important;transition:background-color .2s ease!important}.attachment-menu .attachment-file-list .attachment-file-item .file-actions .action-btn:hover,.dropdown-menu .attachment-file-list .attachment-file-item .file-actions .action-btn:hover,.dropdown-menu.attachment-menu .attachment-file-list .attachment-file-item .file-actions .action-btn:hover,[cdkMenu].attachment-menu .attachment-file-list .attachment-file-item .file-actions .action-btn:hover{background:var(--grid-surface-container, #f3edf7)!important}.cdk-overlay-container .cdk-overlay-pane .attachment-menu,.cdk-overlay-container .attachment-menu,.cdk-overlay-pane .attachment-menu{background:var(--grid-surface, #fef7ff)!important;background-color:var(--grid-surface, #fef7ff)!important;border:1px solid var(--grid-outline-variant, #cac4d0)!important;box-shadow:var(--grid-elevation-2, 0px 1px 2px 0px rgba(0, 0, 0, .3), 0px 2px 6px 2px rgba(0, 0, 0, .15))!important;border-radius:8px!important;font-family:var(--grid-font-family, \"Poppins\")!important}.cdk-overlay-container .cdk-overlay-pane .attachment-menu .attachment-container,.cdk-overlay-container .attachment-menu .attachment-container,.cdk-overlay-pane .attachment-menu .attachment-container{padding:4px;background:var(--grid-surface, #fef7ff)!important}.cdk-overlay-container .cdk-overlay-pane .attachment-menu .attachment-header,.cdk-overlay-container .attachment-menu .attachment-header,.cdk-overlay-pane .attachment-menu .attachment-header{display:flex!important;justify-content:space-between!important;align-items:center!important;margin-bottom:24px!important;padding:0!important}.cdk-overlay-container .cdk-overlay-pane .attachment-menu .attachment-header .attachment-title,.cdk-overlay-container .attachment-menu .attachment-header .attachment-title,.cdk-overlay-pane .attachment-menu .attachment-header .attachment-title{font-family:var(--grid-font-family, \"Poppins\")!important;font-size:16px!important;font-weight:500!important;color:var(--grid-on-surface, #1d1b20)!important;margin:0!important}.cdk-overlay-container .cdk-overlay-pane .attachment-menu .attachment-header .attachment-upload-btn,.cdk-overlay-container .attachment-menu .attachment-header .attachment-upload-btn,.cdk-overlay-pane .attachment-menu .attachment-header .attachment-upload-btn{background:var(--grid-primary, #6750a4)!important;background-color:var(--grid-primary, #6750a4)!important;color:var(--grid-on-primary, #ffffff)!important;font-family:var(--grid-font-family, \"Poppins\")!important;font-weight:500!important;padding:8px 20px!important;border-radius:6px!important;border:none!important;cursor:pointer!important;font-size:14px!important;letter-spacing:.5px!important;box-shadow:var(--grid-elevation-1, 0px 1px 2px 0px rgba(0, 0, 0, .3), 0px 1px 3px 1px rgba(0, 0, 0, .15))!important;transition:background-color .2s ease!important}.cdk-overlay-container .cdk-overlay-pane .attachment-menu .attachment-header .attachment-upload-btn:hover,.cdk-overlay-container .attachment-menu .attachment-header .attachment-upload-btn:hover,.cdk-overlay-pane .attachment-menu .attachment-header .attachment-upload-btn:hover{opacity:.9!important}.cdk-overlay-container .cdk-overlay-pane .attachment-menu .attachment-header .attachment-upload-btn .mdc-button__label,.cdk-overlay-container .attachment-menu .attachment-header .attachment-upload-btn .mdc-button__label,.cdk-overlay-pane .attachment-menu .attachment-header .attachment-upload-btn .mdc-button__label{color:var(--grid-on-primary, #ffffff)!important}.cdk-overlay-container .cdk-overlay-pane .attachment-menu .attachment-drop-zone,.cdk-overlay-container .attachment-menu .attachment-drop-zone,.cdk-overlay-pane .attachment-menu .attachment-drop-zone{border:2px dashed var(--grid-outline-variant, #cac4d0)!important;border-radius:8px!important;padding:40px 20px!important;text-align:center!important;cursor:pointer!important;transition:all .3s ease!important;background:var(--grid-surface-variant, #e7e0ec)!important;margin:16px 0!important}.cdk-overlay-container .cdk-overlay-pane .attachment-menu .attachment-drop-zone:hover,.cdk-overlay-container .attachment-menu .attachment-drop-zone:hover,.cdk-overlay-pane .attachment-menu .attachment-drop-zone:hover{border-color:var(--grid-primary, #6750a4)!important;background:var(--grid-surface-container, #f3edf7)!important}.cdk-overlay-container .cdk-overlay-pane .attachment-menu .attachment-drop-zone.dragging,.cdk-overlay-container .attachment-menu .attachment-drop-zone.dragging,.cdk-overlay-pane .attachment-menu .attachment-drop-zone.dragging{border-color:var(--grid-primary, #6750a4)!important;background:var(--grid-surface-container, #f3edf7)!important;transform:scale(1.01)!important}.cdk-overlay-container .cdk-overlay-pane .attachment-menu .attachment-drop-zone .attachment-drop-content,.cdk-overlay-container .attachment-menu .attachment-drop-zone .attachment-drop-content,.cdk-overlay-pane .attachment-menu .attachment-drop-zone .attachment-drop-content{display:flex!important;flex-direction:column!important;align-items:center!important;gap:12px!important}.cdk-overlay-container .cdk-overlay-pane .attachment-menu .attachment-drop-zone .attachment-drop-icon,.cdk-overlay-container .attachment-menu .attachment-drop-zone .attachment-drop-icon,.cdk-overlay-pane .attachment-menu .attachment-drop-zone .attachment-drop-icon{font-size:48px!important;color:var(--grid-primary, #6750a4)!important;font-weight:300!important;line-height:1!important}.cdk-overlay-container .cdk-overlay-pane .attachment-menu .attachment-drop-zone .attachment-drop-text .primary-text,.cdk-overlay-container .attachment-menu .attachment-drop-zone .attachment-drop-text .primary-text,.cdk-overlay-pane .attachment-menu .attachment-drop-zone .attachment-drop-text .primary-text{font-family:var(--grid-font-family, \"Poppins\")!important;font-size:14px!important;color:var(--grid-on-surface-variant, #49454f)!important;font-weight:400!important;margin:0!important}.cdk-overlay-container .cdk-overlay-pane .attachment-menu .attachment-drop-zone .attachment-drop-text .secondary-text,.cdk-overlay-container .attachment-menu .attachment-drop-zone .attachment-drop-text .secondary-text,.cdk-overlay-pane .attachment-menu .attachment-drop-zone .attachment-drop-text .secondary-text{font-family:var(--grid-font-family, \"Poppins\")!important;font-size:12px!important;color:var(--grid-on-surface-variant, #49454f)!important;margin-top:4px!important;display:block!important}.cdk-overlay-container .cdk-overlay-pane .attachment-menu .attachment-file-list,.cdk-overlay-container .attachment-menu .attachment-file-list,.cdk-overlay-pane .attachment-menu .attachment-file-list{display:block!important;margin-top:16px!important;border-top:1px solid var(--grid-outline-variant, #cac4d0)!important;padding-top:16px!important}.cdk-overlay-container .cdk-overlay-pane .attachment-menu .attachment-file-list .attachment-file-item,.cdk-overlay-container .attachment-menu .attachment-file-list .attachment-file-item,.cdk-overlay-pane .attachment-menu .attachment-file-list .attachment-file-item{display:flex!important;align-items:center!important;justify-content:space-between!important;padding:8px 0!important;border-bottom:1px solid var(--grid-outline-variant, #cac4d0)!important}.cdk-overlay-container .cdk-overlay-pane .attachment-menu .attachment-file-list .attachment-file-item:last-child,.cdk-overlay-container .attachment-menu .attachment-file-list .attachment-file-item:last-child,.cdk-overlay-pane .attachment-menu .attachment-file-list .attachment-file-item:last-child{border-bottom:none!important}.cdk-overlay-container .cdk-overlay-pane .attachment-menu .attachment-file-list .attachment-file-item .file-info,.cdk-overlay-container .attachment-menu .attachment-file-list .attachment-file-item .file-info,.cdk-overlay-pane .attachment-menu .attachment-file-list .attachment-file-item .file-info{display:flex!important;align-items:center!important;gap:8px!important;flex:1!important}.cdk-overlay-container .cdk-overlay-pane .attachment-menu .attachment-file-list .attachment-file-item .file-info .file-icon,.cdk-overlay-container .attachment-menu .attachment-file-list .attachment-file-item .file-info .file-icon,.cdk-overlay-pane .attachment-menu .attachment-file-list .attachment-file-item .file-info .file-icon{font-size:16px!important;color:var(--grid-on-surface-variant, #49454f)!important}.cdk-overlay-container .cdk-overlay-pane .attachment-menu .attachment-file-list .attachment-file-item .file-info .file-name,.cdk-overlay-container .attachment-menu .attachment-file-list .attachment-file-item .file-info .file-name,.cdk-overlay-pane .attachment-menu .attachment-file-list .attachment-file-item .file-info .file-name{font-family:var(--grid-font-family, \"Poppins\")!important;font-size:14px!important;color:var(--grid-on-surface, #1d1b20)!important;word-break:break-word!important}.cdk-overlay-container .cdk-overlay-pane .attachment-menu .attachment-file-list .attachment-file-item .file-actions,.cdk-overlay-container .attachment-menu .attachment-file-list .attachment-file-item .file-actions,.cdk-overlay-pane .attachment-menu .attachment-file-list .attachment-file-item .file-actions{display:flex!important;gap:4px!important}.cdk-overlay-container .cdk-overlay-pane .attachment-menu .attachment-file-list .attachment-file-item .file-actions .action-btn,.cdk-overlay-container .attachment-menu .attachment-file-list .attachment-file-item .file-actions .action-btn,.cdk-overlay-pane .attachment-menu .attachment-file-list .attachment-file-item .file-actions .action-btn{width:24px!important;height:24px!important;border:none!important;background:transparent!important;cursor:pointer!important;border-radius:4px!important;font-size:14px!important;color:var(--grid-on-surface-variant, #49454f)!important;transition:background-color .2s ease!important}.cdk-overlay-container .cdk-overlay-pane .attachment-menu .attachment-file-list .attachment-file-item .file-actions .action-btn:hover,.cdk-overlay-container .attachment-menu .attachment-file-list .attachment-file-item .file-actions .action-btn:hover,.cdk-overlay-pane .attachment-menu .attachment-file-list .attachment-file-item .file-actions .action-btn:hover{background:var(--grid-surface-container, #f3edf7)!important}.cdk-overlay-container .cdk-overlay-pane .attachment-menu,.cdk-overlay-container .attachment-menu{background:var(--grid-surface, #fef7ff)!important;background-color:var(--grid-surface, #fef7ff)!important;border:1px solid var(--grid-outline-variant, #cac4d0)!important;box-shadow:var(--grid-elevation-2, 0px 1px 2px 0px rgba(0, 0, 0, .3), 0px 2px 6px 2px rgba(0, 0, 0, .15))!important}.attachment-cell-wrapper{position:relative;display:block;width:100%;height:100%;text-align:center;overflow:visible}.attachment-menu-overlay{position:absolute;z-index:1000;background:var(--grid-surface, #fef7ff);border:1px solid var(--grid-outline-variant, #cac4d0);box-shadow:var(--grid-elevation-2, 0px 1px 2px 0px rgba(0, 0, 0, .3), 0px 2px 6px 2px rgba(0, 0, 0, .15));border-radius:8px;font-family:var(--grid-font-family, \"Poppins\");color:var(--grid-on-surface, #1d1b20);overflow:visible;z-index:9999}.attachment-menu-overlay .attachment-container{padding:16px;background:var(--grid-surface, #fef7ff)}.attachment-menu-overlay .attachment-header{display:flex;justify-content:space-between;align-items:center;margin-bottom:24px;padding:0}.attachment-menu-overlay .attachment-header .attachment-title{font-family:var(--grid-font-family, \"Poppins\");font-size:16px;font-weight:500;color:var(--grid-on-surface, #1d1b20);margin:0}.attachment-menu-overlay .attachment-header .attachment-upload-btn{background:var(--grid-primary, #6750a4);background-color:var(--grid-primary, #6750a4);color:var(--grid-on-primary, #ffffff);font-family:var(--grid-font-family, \"Poppins\");font-weight:500;padding:8px 20px;border-radius:6px;border:none;cursor:pointer;font-size:14px;letter-spacing:.5px;box-shadow:var(--grid-elevation-1, 0px 1px 2px 0px rgba(0, 0, 0, .3), 0px 1px 3px 1px rgba(0, 0, 0, .15));transition:background-color .2s ease}.attachment-menu-overlay .attachment-header .attachment-upload-btn:hover{opacity:.9}.attachment-menu-overlay .attachment-header .attachment-upload-btn .mdc-button__label{color:var(--grid-on-primary, #ffffff)}.attachment-menu-overlay .attachment-drop-zone{border:2px dashed var(--grid-outline-variant, #cac4d0);border-radius:8px;padding:10px;text-align:center;cursor:pointer;transition:all .3s ease;background:var(--grid-surface-variant, #e7e0ec);margin:16px 0}.attachment-menu-overlay .attachment-drop-zone:hover{border-color:var(--grid-primary, #6750a4);background:var(--grid-surface-container, #f3edf7)}.attachment-menu-overlay .attachment-drop-zone.dragging{border-color:var(--grid-primary, #6750a4);background:var(--grid-surface-container, #f3edf7);transform:scale(1.01)}.attachment-menu-overlay .attachment-drop-zone .attachment-drop-content{display:flex;flex-direction:column;align-items:center;gap:12px}.attachment-menu-overlay .attachment-drop-zone .attachment-drop-icon{font-size:48px;color:var(--grid-primary, #6750a4);font-weight:300;line-height:1}.attachment-menu-overlay .attachment-drop-zone .attachment-drop-text .primary-text{font-family:var(--grid-font-family, \"Poppins\");font-size:14px;color:var(--grid-on-surface-variant, #49454f);font-weight:400;margin:0}.attachment-menu-overlay .attachment-drop-zone .attachment-drop-text .secondary-text{font-family:var(--grid-font-family, \"Poppins\");font-size:12px;color:var(--grid-on-surface-variant, #49454f);margin-top:4px;display:block}.attachment-menu-overlay .attachment-file-list{display:block;margin-top:16px;border-top:1px solid var(--grid-outline-variant, #cac4d0);padding-top:16px}.attachment-menu-overlay .attachment-file-list .attachment-file-item{display:flex;align-items:center;justify-content:space-between;padding:8px 0;border-bottom:1px solid var(--grid-outline-variant, #cac4d0)}.attachment-menu-overlay .attachment-file-list .attachment-file-item:last-child{border-bottom:none}.attachment-menu-overlay .attachment-file-list .attachment-file-item .file-info{display:flex;align-items:center;gap:8px;flex:1}.attachment-menu-overlay .attachment-file-list .attachment-file-item .file-info .file-icon{font-size:16px;color:var(--grid-on-surface-variant, #49454f)}.attachment-menu-overlay .attachment-file-list .attachment-file-item .file-info .file-name{font-family:var(--grid-font-family, \"Poppins\");font-size:14px;color:var(--grid-on-surface, #1d1b20);word-break:break-word}.attachment-menu-overlay .attachment-file-list .attachment-file-item .file-actions{display:flex;gap:4px}.attachment-menu-overlay .attachment-file-list .attachment-file-item .file-actions .action-btn{width:24px;height:24px;border:none;background:transparent;cursor:pointer;border-radius:4px;font-size:14px;color:var(--grid-on-surface-variant, #49454f);transition:background-color .2s ease}.attachment-menu-overlay .attachment-file-list .attachment-file-item .file-actions .action-btn:hover{background:var(--grid-surface-container, #f3edf7)}.cdk-overlay-container .cdk-overlay-pane .dropdown-menu,.cdk-overlay-container .dropdown-menu,.cdk-overlay-pane .dropdown-menu{background:var(--grid-surface, #fef7ff)!important;background-color:var(--grid-surface, #fef7ff)!important;border:1px solid var(--grid-outline-variant, #cac4d0)!important;box-shadow:var(--grid-elevation-2, 0px 1px 2px 0px rgba(0, 0, 0, .3), 0px 2px 6px 2px rgba(0, 0, 0, .15))!important;border-radius:8px!important;font-family:var(--grid-font-family, \"Poppins\")!important;color:var(--grid-on-surface, #1d1b20)!important;overflow:hidden!important;box-sizing:border-box!important}.cdk-overlay-container .cdk-overlay-pane .dropdown-menu .listbox-container,.cdk-overlay-container .dropdown-menu .listbox-container,.cdk-overlay-pane .dropdown-menu .listbox-container{padding:8px!important;background:var(--grid-surface, #fef7ff)!important}.cdk-overlay-container .cdk-overlay-pane .dropdown-menu .search-form-field,.cdk-overlay-container .dropdown-menu .search-form-field,.cdk-overlay-pane .dropdown-menu .search-form-field{width:100%!important;margin-bottom:8px!important}.cdk-overlay-container .cdk-overlay-pane .dropdown-menu .search-form-field .mat-mdc-form-field,.cdk-overlay-container .dropdown-menu .search-form-field .mat-mdc-form-field,.cdk-overlay-pane .dropdown-menu .search-form-field .mat-mdc-form-field{width:100%!important}.cdk-overlay-container .cdk-overlay-pane .dropdown-menu .search-form-field .mat-mdc-text-field-wrapper,.cdk-overlay-container .dropdown-menu .search-form-field .mat-mdc-text-field-wrapper,.cdk-overlay-pane .dropdown-menu .search-form-field .mat-mdc-text-field-wrapper{background:var(--grid-surface, #fffbfe)!important;border-radius:4px!important}.cdk-overlay-container .cdk-overlay-pane .dropdown-menu .search-form-field .mat-mdc-form-field-focus-overlay,.cdk-overlay-container .dropdown-menu .search-form-field .mat-mdc-form-field-focus-overlay,.cdk-overlay-pane .dropdown-menu .search-form-field .mat-mdc-form-field-focus-overlay{background:var(--grid-surface, #fffbfe)!important}.cdk-overlay-container .cdk-overlay-pane .dropdown-menu .search-form-field .mat-mdc-form-field-subscript-wrapper,.cdk-overlay-container .dropdown-menu .search-form-field .mat-mdc-form-field-subscript-wrapper,.cdk-overlay-pane .dropdown-menu .search-form-field .mat-mdc-form-field-subscript-wrapper{display:none!important}.cdk-overlay-container .cdk-overlay-pane .dropdown-menu .search-form-field input,.cdk-overlay-container .dropdown-menu .search-form-field input,.cdk-overlay-pane .dropdown-menu .search-form-field input{font-family:var(--grid-font-family, \"Poppins\")!important;font-size:14px!important;color:var(--grid-on-surface, #1d1b20)!important}.cdk-overlay-container .cdk-overlay-pane .dropdown-menu .select-all-container,.cdk-overlay-container .dropdown-menu .select-all-container,.cdk-overlay-pane .dropdown-menu .select-all-container{padding:8px 12px!important;border-bottom:1px solid var(--grid-outline-variant, #cac4d0)!important;margin-bottom:4px!important}.cdk-overlay-container .cdk-overlay-pane .dropdown-menu .select-all-container .select-all-text,.cdk-overlay-container .dropdown-menu .select-all-container .select-all-text,.cdk-overlay-pane .dropdown-menu .select-all-container .select-all-text{font-family:var(--grid-font-family, \"Poppins\")!important;font-size:14px!important;font-weight:500!important;color:var(--grid-on-surface, #1d1b20)!important;margin-left:8px!important}.cdk-overlay-container .cdk-overlay-pane .dropdown-menu .select-all-container mat-checkbox .mdc-checkbox .mdc-checkbox__checkmark,.cdk-overlay-container .dropdown-menu .select-all-container mat-checkbox .mdc-checkbox .mdc-checkbox__checkmark,.cdk-overlay-pane .dropdown-menu .select-all-container mat-checkbox .mdc-checkbox .mdc-checkbox__checkmark{color:var(--grid-on-primary, #ffffff)!important}.cdk-overlay-container .cdk-overlay-pane .dropdown-menu .select-all-container mat-checkbox.mat-mdc-checkbox-checked .mdc-checkbox__background,.cdk-overlay-container .dropdown-menu .select-all-container mat-checkbox.mat-mdc-checkbox-checked .mdc-checkbox__background,.cdk-overlay-pane .dropdown-menu .select-all-container mat-checkbox.mat-mdc-checkbox-checked .mdc-checkbox__background{background-color:var(--grid-primary, #6750a4)!important;border-color:var(--grid-primary, #6750a4)!important}.cdk-overlay-container .cdk-overlay-pane .dropdown-menu .select-all-container mat-checkbox.mat-mdc-checkbox-indeterminate .mdc-checkbox__background,.cdk-overlay-container .dropdown-menu .select-all-container mat-checkbox.mat-mdc-checkbox-indeterminate .mdc-checkbox__background,.cdk-overlay-pane .dropdown-menu .select-all-container mat-checkbox.mat-mdc-checkbox-indeterminate .mdc-checkbox__background{background-color:var(--grid-primary, #6750a4)!important;border-color:var(--grid-primary, #6750a4)!important}.cdk-overlay-container .cdk-overlay-pane .dropdown-menu .listbox,.cdk-overlay-container .dropdown-menu .listbox,.cdk-overlay-pane .dropdown-menu .listbox{list-style:none!important;margin:0!important;padding:0!important;max-height:200px!important;overflow-y:auto!important;background:var(--grid-surface, #fef7ff)!important}.cdk-overlay-container .cdk-overlay-pane .dropdown-menu .listbox::-webkit-scrollbar,.cdk-overlay-container .dropdown-menu .listbox::-webkit-scrollbar,.cdk-overlay-pane .dropdown-menu .listbox::-webkit-scrollbar{width:8px!important}.cdk-overlay-container .cdk-overlay-pane .dropdown-menu .listbox::-webkit-scrollbar-track,.cdk-overlay-container .dropdown-menu .listbox::-webkit-scrollbar-track,.cdk-overlay-pane .dropdown-menu .listbox::-webkit-scrollbar-track{background:var(--grid-surface-variant, #e7e0ec)!important;border-radius:4px!important}.cdk-overlay-container .cdk-overlay-pane .dropdown-menu .listbox::-webkit-scrollbar-thumb,.cdk-overlay-container .dropdown-menu .listbox::-webkit-scrollbar-thumb,.cdk-overlay-pane .dropdown-menu .listbox::-webkit-scrollbar-thumb{background:var(--grid-primary, #6750a4)!important;border-radius:4px!important}.cdk-overlay-container .cdk-overlay-pane .dropdown-menu .listbox::-webkit-scrollbar-thumb:hover,.cdk-overlay-container .dropdown-menu .listbox::-webkit-scrollbar-thumb:hover,.cdk-overlay-pane .dropdown-menu .listbox::-webkit-scrollbar-thumb:hover{background:var(--grid-primary, #6750a4)!important;opacity:.8!important}.cdk-overlay-container .cdk-overlay-pane .dropdown-menu .multi-listbox-option,.cdk-overlay-container .dropdown-menu .multi-listbox-option,.cdk-overlay-pane .dropdown-menu .multi-listbox-option{padding:4px 8px!important;margin:2px 0!important;border-radius:4px!important;cursor:pointer!important;font-family:var(--grid-font-family, \"Poppins\")!important;font-size:14px!important;color:var(--grid-on-surface, #1d1b20)!important;background:transparent!important;transition:background-color .2s ease!important;border:none!important;text-align:left!important;width:100%!important}.cdk-overlay-container .cdk-overlay-pane .dropdown-menu .multi-listbox-option:hover,.cdk-overlay-container .dropdown-menu .multi-listbox-option:hover,.cdk-overlay-pane .dropdown-menu .multi-listbox-option:hover{background:var(--grid-surface-container, #f3edf7)!important}.cdk-overlay-container .cdk-overlay-pane .dropdown-menu .multi-listbox-option.notext-overflow,.cdk-overlay-container .dropdown-menu .multi-listbox-option.notext-overflow,.cdk-overlay-pane .dropdown-menu .multi-listbox-option.notext-overflow{white-space:nowrap!important;overflow:hidden!important;text-overflow:ellipsis!important}.cdk-overlay-container .cdk-overlay-pane .dropdown-menu .multi-listbox-option .option-content,.cdk-overlay-container .dropdown-menu .multi-listbox-option .option-content,.cdk-overlay-pane .dropdown-menu .multi-listbox-option .option-content{display:flex!important;align-items:center!important;gap:8px!important;width:100%!important}.cdk-overlay-container .cdk-overlay-pane .dropdown-menu .multi-listbox-option .option-content .option-text,.cdk-overlay-container .dropdown-menu .multi-listbox-option .option-content .option-text,.cdk-overlay-pane .dropdown-menu .multi-listbox-option .option-content .option-text{flex:1!important;font-family:var(--grid-font-family, \"Poppins\")!important;font-size:14px!important;color:inherit!important}.cdk-overlay-container .cdk-overlay-pane .dropdown-menu .multi-listbox-option .option-content mat-checkbox,.cdk-overlay-container .dropdown-menu .multi-listbox-option .option-content mat-checkbox,.cdk-overlay-pane .dropdown-menu .multi-listbox-option .option-content mat-checkbox{flex-shrink:0!important}.cdk-overlay-container .cdk-overlay-pane .dropdown-menu .multi-listbox-option .option-content mat-checkbox .mdc-checkbox .mdc-checkbox__background,.cdk-overlay-container .dropdown-menu .multi-listbox-option .option-content mat-checkbox .mdc-checkbox .mdc-checkbox__background,.cdk-overlay-pane .dropdown-menu .multi-listbox-option .option-content mat-checkbox .mdc-checkbox .mdc-checkbox__background{border-color:var(--grid-outline, #79757f)!important}.cdk-overlay-container .cdk-overlay-pane .dropdown-menu .multi-listbox-option .option-content mat-checkbox .mdc-checkbox .mdc-checkbox__checkmark,.cdk-overlay-container .dropdown-menu .multi-listbox-option .option-content mat-checkbox .mdc-checkbox .mdc-checkbox__checkmark,.cdk-overlay-pane .dropdown-menu .multi-listbox-option .option-content mat-checkbox .mdc-checkbox .mdc-checkbox__checkmark{color:var(--grid-on-primary, #ffffff)!important}.cdk-overlay-container .cdk-overlay-pane .dropdown-menu .multi-listbox-option .option-content mat-checkbox.mat-mdc-checkbox-checked .mdc-checkbox__background,.cdk-overlay-container .dropdown-menu .multi-listbox-option .option-content mat-checkbox.mat-mdc-checkbox-checked .mdc-checkbox__background,.cdk-overlay-pane .dropdown-menu .multi-listbox-option .option-content mat-checkbox.mat-mdc-checkbox-checked .mdc-checkbox__background{background-color:var(--grid-primary, #6750a4)!important;border-color:var(--grid-primary, #6750a4)!important}.cdk-overlay-container .cdk-overlay-pane .dropdown-menu .listbox-option,.cdk-overlay-container .dropdown-menu .listbox-option,.cdk-overlay-pane .dropdown-menu .listbox-option{padding:4px 8px!important;margin:2px 0!important;border-radius:4px!important;cursor:pointer!important;font-family:var(--grid-font-family, \"Poppins\")!important;font-size:14px!important;color:var(--grid-on-surface, #1d1b20)!important;background:transparent!important;transition:background-color .2s ease!important;border:none!important;text-align:left!important;width:100%!important}.cdk-overlay-container .cdk-overlay-pane .dropdown-menu .listbox-option:hover,.cdk-overlay-container .dropdown-menu .listbox-option:hover,.cdk-overlay-pane .dropdown-menu .listbox-option:hover{background:var(--grid-surface-container, #f3edf7)!important}.cdk-overlay-container .cdk-overlay-pane .dropdown-menu .listbox-option.cdk-option-active,.cdk-overlay-container .dropdown-menu .listbox-option.cdk-option-active,.cdk-overlay-pane .dropdown-menu .listbox-option.cdk-option-active,.cdk-overlay-container .cdk-overlay-pane .dropdown-menu .listbox-option.cdk-option-selected,.cdk-overlay-container .dropdown-menu .listbox-option.cdk-option-selected,.cdk-overlay-pane .dropdown-menu .listbox-option.cdk-option-selected{background:var(--grid-primary, #6750a4)!important;color:var(--grid-on-primary, #ffffff)!important}.cdk-overlay-container .cdk-overlay-pane .dropdown-menu .listbox-option.notext-overflow,.cdk-overlay-container .dropdown-menu .listbox-option.notext-overflow,.cdk-overlay-pane .dropdown-menu .listbox-option.notext-overflow{white-space:nowrap!important;overflow:hidden!important;text-overflow:ellipsis!important}.cdk-overlay-container .cdk-overlay-pane .dropdown-menu .listbox-option .option-content,.cdk-overlay-container .dropdown-menu .listbox-option .option-content,.cdk-overlay-pane .dropdown-menu .listbox-option .option-content{display:flex!important;align-items:center!important;gap:8px!important;width:100%!important}.cdk-overlay-container .cdk-overlay-pane .dropdown-menu .listbox-option .option-content .option-text,.cdk-overlay-container .dropdown-menu .listbox-option .option-content .option-text,.cdk-overlay-pane .dropdown-menu .listbox-option .option-content .option-text{flex:1!important;font-family:var(--grid-font-family, \"Poppins\")!important;font-size:14px!important;color:inherit!important}.cell-display-text-editable{cursor:pointer!important}.cell-display-text{width:100%!important;height:100%!important;min-height:20px!important;display:block!important;padding:4px 8px!important;font-family:var(--grid-font-family, \"Poppins\")!important;font-size:var(--grid-font-size-body, 12px)!important;color:var(--grid-on-surface, #1d1b20)!important;background:transparent!important;border:none!important;outline:none!important;text-overflow:ellipsis!important;overflow:hidden!important;white-space:nowrap!important;max-width:100%!important;box-sizing:border-box!important;transition:background-color .2s ease!important;line-height:1.4!important}.cell-display-text,.cell-display-text>*{text-overflow:ellipsis!important;overflow:hidden!important;white-space:nowrap!important;max-width:100%!important;width:100%!important;display:block!important}.cell-display-text:empty:before{content:\"Click to select\"!important;color:var(--grid-on-surface-variant, #49454f)!important;font-style:italic!important}.cell-display-number{text-align:var(--grid-number-text-align, right)}.aggregation .cell-display-number{text-align:var(--grid-aggregation-text-align, right)}.assignee-avatars{display:flex;align-items:center;padding:4px 8px;min-height:20px}.avatar-circle{width:28px;height:28px;border-radius:50%;background-color:var(--grid-primary, #6750a4);color:#fff;display:flex;align-items:center;justify-content:center;font-size:12px;font-weight:600;border:2px solid var(--grid-surface, #fef7ff);margin-left:-8px;position:relative;z-index:1}.avatar-circle:first-child{margin-left:0}.avatar-circle.count-circle{background-color:var(--grid-surface-variant, #e7e0ec);color:var(--grid-on-surface-variant, #49454f);font-size:11px;font-weight:500}.no-assignees{color:var(--grid-on-surface-variant, #49454f);font-style:italic;font-size:12px}.option-content{display:flex;align-items:center;gap:8px;width:100%}.option-avatar{width:24px;height:24px;border-radius:50%;background-color:var(--grid-primary, #6750a4);color:#fff;display:flex;align-items:center;justify-content:center;font-size:10px;font-weight:600;flex-shrink:0}.option-text{flex:1;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.checkmark{color:var(--grid-primary, #6750a4);font-weight:700;font-size:14px;flex-shrink:0}.drillable-value{color:var(--grid-primary, #6750a4);text-decoration:underline;text-decoration-color:var(--grid-primary, #6750a4);text-decoration-thickness:1px;text-underline-offset:2px;transition:all .2s ease}.drillable-link{cursor:pointer;padding:4px}\n"] }]
|
|
3490
4048
|
}], ctorParameters: () => [], propDecorators: { attachmentTrigger: [{
|
|
3491
4049
|
type: ViewChild,
|
|
3492
4050
|
args: ['attachmentTrigger']
|
|
@@ -3907,8 +4465,7 @@ class EruGridComponent {
|
|
|
3907
4465
|
if (this.freezeGrandTotal() && this.grandTotalPosition() === 'before') {
|
|
3908
4466
|
headerHeight = headerHeight + 50;
|
|
3909
4467
|
}
|
|
3910
|
-
|
|
3911
|
-
return (this.gridHeight() - headerHeight) <= this.getInitialMinHeightPx();
|
|
4468
|
+
return (this.gridHeight()) <= this.getInitialMinHeightPx();
|
|
3912
4469
|
}
|
|
3913
4470
|
/**
|
|
3914
4471
|
* Get the rendered range (what's in the DOM including buffer)
|
|
@@ -3986,7 +4543,6 @@ class EruGridComponent {
|
|
|
3986
4543
|
applyCdkWidth() {
|
|
3987
4544
|
const element = this.rowContainer?.nativeElement;
|
|
3988
4545
|
if (element) {
|
|
3989
|
-
console.log(element.clientWidth, this.initialTotalWidth);
|
|
3990
4546
|
return element.clientWidth > this.initialTotalWidth;
|
|
3991
4547
|
}
|
|
3992
4548
|
return false;
|
|
@@ -4682,7 +5238,7 @@ class EruGridComponent {
|
|
|
4682
5238
|
}, 100);
|
|
4683
5239
|
}
|
|
4684
5240
|
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.1.3", ngImport: i0, type: EruGridComponent, deps: [{ token: i0.ChangeDetectorRef }], target: i0.ɵɵFactoryTarget.Component });
|
|
4685
|
-
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "20.1.3", type: EruGridComponent, isStandalone: true, selector: "eru-grid", viewQueries: [{ propertyName: "viewport", first: true, predicate: CdkVirtualScrollViewport, descendants: true }, { propertyName: "rowContainer", first: true, predicate: ["rowContainer"], descendants: true }, { propertyName: "headerScroller", first: true, predicate: ["headerScroller"], descendants: true, read: ElementRef }, { propertyName: "gtScroller", first: true, predicate: ["gtScroller"], descendants: true, read: ElementRef }, { propertyName: "vp", first: true, predicate: ["vp"], descendants: true }], ngImport: i0, template: "<!-- <div style=\"background: #f0f0f0; font-size: 12px; border-bottom: 1px solid #ccc;\">\n currentPivotScrollIndex {{currentPivotScrollIndex()}} | \n firstDataRowIndex {{firstDataRowIndex()}} | \n firstTr {{firstTr}} |\n maxDepth {{maxDepth()}}\n</div> -->\n<div class=\"incremental-row-container eru-grid\" #rowContainer \n [class.pivot-mode]=\"gridStore.isPivotMode()\"\n [class.table-mode]=\"!gridStore.isPivotMode()\">\n \n <!-- Pivot Mode Template -->\n @if (gridStore.isPivotMode()) {\n <ng-container >\n <div class=\"pivot-container\" style=\"display: flex; flex-direction: column; height: 100%;\"\n [style]=\"'--table-min-height: ' + getInitialMinHeightPx() + 'px; --table-total-width: ' + getInitialTotalWidth() + 'px'\">\n <!-- Debug info for first visible row -->\n \n \n <div class=\"pivot-single-table\" style=\"height: 100%; width: 100%; overflow: hidden; display: flex; flex-direction: column;\">\n @if (freezeHeader()) {\n <div #headerScroller class=\"header-shell\">\n <table class=\"eru-grid-table pivot-table\" \n [style]=\"'width: auto; min-width: 100%; --table-total-width: ' + getInitialTotalWidth() + 'px'\"\n [class.show-column-lines]=\"showColumnLines()\" \n [class.show-row-lines]=\"showRowLines()\">\n <!-- Column Groups for consistent width -->\n <ng-container *ngTemplateOutlet=\"pivotColGroup\"></ng-container>\n \n <ng-container *ngTemplateOutlet=\"pivotTableHead\"></ng-container>\n @if(grandTotalPosition() === 'before' && freezeGrandTotal()) {\n <ng-container *ngTemplateOutlet=\"pivotGrandTotal\"></ng-container>\n }\n </table> \n </div>\n } \n <!-- Virtual Scrolled Table Body -->\n <div>\n <cdk-virtual-scroll-viewport\n #vp\n [itemSize]=\"50\"\n class=\"viewport pivot-viewport\"\n [class.apply-cdk-width]=\"applyCdkWidth()\"\n (scrolledIndexChange)=\"onPivotScroll($event)\"\n (scroll)=\"onBodyScroll($event)\"\n style=\"overflow: auto;\">\n <table class=\"eru-grid-table pivot-table\" \n [style]=\"'width: auto; min-width: 100%; --table-total-width: ' + getInitialTotalWidth() + 'px'\"\n [class.show-column-lines]=\"showColumnLines()\" \n [class.show-row-lines]=\"showRowLines()\"\n >\n <!-- Column Groups for consistent width -->\n <ng-container *ngTemplateOutlet=\"pivotColGroup\"></ng-container>\n \n @if (!freezeHeader()) {\n <ng-container *ngTemplateOutlet=\"pivotTableHead\"></ng-container> \n }\n <!-- Table Body with Virtual Scrolling -->\n <tbody class=\"pivot-tbody\">\n \n <tr *cdkVirtualFor=\"let pivotRow of gridStore.pivotDisplayData(); \n trackBy: trackByPivotRowFn; \n let i = index\"\n class=\"pivot-row\"\n [class.subtotal-row]=\"pivotRow._isSubtotal\"\n [class.grand-total-row]=\"pivotRow._isGrandTotal\"\n [class.subtotal-bold]=\"pivotRow._isSubtotal && subTotalStyle() === 'bold'\"\n [class.subtotal-italic]=\"pivotRow._isSubtotal && subTotalStyle() === 'italic'\"\n [class.subtotal-highlighted]=\"pivotRow._isSubtotal && subTotalStyle() === 'highlighted'\"\n [class.grand-total-bold]=\"pivotRow._isGrandTotal && grandTotalStyle() === 'bold'\"\n [class.grand-total-italic]=\"pivotRow._isGrandTotal && grandTotalStyle() === 'italic'\"\n [class.grand-total-highlighted]=\"pivotRow._isGrandTotal && grandTotalStyle() === 'highlighted'\"\n [style.height.px]=\"50\"\n [attr.data-pivot-row]=\"i\">\n @if ((!pivotRow._isGrandTotal && freezeGrandTotal() ) || (!freezeGrandTotal() )) { \n @for (column of getLeafColumns(); track trackByColumnFn($index, column); let colIndex = $index) {\n @if (!shouldSkipCell(i, column.name)) {\n <td\n [attr.rowspan]=\"getEffectiveRowspan(i, column.name)\"\n [style.width.px]=\"column.field_size\"\n [style.minWidth.px]=\"column.field_size\"\n class=\"pivot-cell\"\n [class.row-dimension-cell]=\"isRowDimensionColumn(column.name)\"\n [class.column-dimension-cell]=\"!isRowDimensionColumn(column.name)\"\n [class.aggregated-value]=\"!isRowDimensionColumn(column.name) && column.datatype === 'number'\"\n [class.rowspan-cell]=\"getEffectiveRowspan(i, column.name) || 1 > 1\"\n [class.sticky-column]=\"isStickyColumn(column.name, colIndex)\"\n [style.position]=\"isStickyColumn(column.name, colIndex) ? 'sticky' : 'static'\"\n [style.left.px]=\"getStickyColumnLeft(column.name, colIndex)\"\n [style.z-index]=\"isStickyColumn(column.name, colIndex) ? 99 : 1\"\n [style.height.px]=\"50\"\n [attr.xx]=\"i\"> \n <div class=\"cell-content pivot-cell-content\">\n <data-cell\n [class.aggregation]=\"!!column.aggregationFunction\"\n [fieldSize]=\"column.field_size\"\n [columnDatatype]=\"column.datatype\"\n [columnName]=\"column.name\"\n [value]=\"getEffectiveCellValue(i,column.name, pivotRow)\"\n [column]=\"column\"\n [drillable]=\"column.enableDrilldown || false\"\n [mode]=\"mode()\"\n [isEditable]=\"isEditable()\"\n [id]=\"'pivot_' + i + '_' + column.name\">\n </data-cell>\n </div>\n </td>\n }\n }\n }\n </tr> \n </tbody>\n </table>\n </cdk-virtual-scroll-viewport>\n\n </div>\n @if (freezeGrandTotal() && grandTotalPosition() === 'after') {\n <div #gtScroller class=\"header-shell gt-shell\"\n [class.adjust-bottom]=\"!applyCdkWidth()\"\n [class.adjust-bottom-vs]=\"!adjustScrollWidth()\">\n <table class=\"eru-grid-table pivot-table\" \n [style]=\"'width: auto; min-width: 100%; --table-total-width: ' + getInitialTotalWidth() + 'px'\"\n [class.show-column-lines]=\"showColumnLines()\" \n [class.show-row-lines]=\"showRowLines()\">\n <ng-container *ngTemplateOutlet=\"pivotColGroup\"></ng-container>\n \n <ng-container *ngTemplateOutlet=\"pivotGrandTotal\"></ng-container>\n \n </table> \n </div>\n }\n \n\n </div>\n </div>\n </ng-container>\n} @else {\n \n<!-- Table Mode Template -->\n <ng-container>\n <cdk-virtual-scroll-viewport\n [itemSize]=\"50\"\n class=\"viewport table-viewport\"\n (scrolledIndexChange)=\"onScroll($event)\"\n >\n <div class=\"table-wrapper\">\n <table class=\"eru-grid-table\" [class.show-column-lines]=\"showColumnLines()\" [class.show-column-lines]=\"showColumnLines()\">\n <thead>\n <tr style=\"visibility:hidden;\">\n <th class=\"checkbox-column\"></th>\n <th *ngFor=\"let column of columns(); trackBy: trackByColumnFn\"\n [style.width.px]=\"column.field_size\"\n [style.minWidth.px]=\"column.field_size\"\n class=\"column-header\">\n {{column.label}}\n </th>\n </tr>\n </thead>\n <tbody *ngIf=\"columns() as columnsList\">\n <ng-container *cdkVirtualFor=\"let groupItem of groupedRows();\n trackBy: trackByGroupItemFn;\n let i = index;\n let first=first\">\n <tr\n *ngIf=\"groupItem.type === 'header'\"\n class=\"group-header\"\n (click)=\"toggleGroupExpansion(groupItem.group?.id || '')\"\n >\n <td class=\"checkbox-column\" style=\"border: none;\">\n {{ groupItem.group?.isExpanded ? '\u25BC' : '\u25B6' }}\n </td>\n <td [attr.colspan]=\"2\" style=\"border: none;\">\n <span class=\"group-title\">\n {{ groupItem.group?.title }}\n </span>\n <span class=\"group-row-count\">\n ({{ groupItem.group?.currentLoadedRows || 0 }}/{{ groupItem.group?.totalRowCount || 0 }})\n </span>\n </td>\n </tr>\n <tr *ngIf=\"groupItem.type === 'table-header'\" style=\"background:#fafafa\">\n <th class=\"checkbox-column\" style=\"text-align: center;\">\n <input\n type=\"checkbox\"\n [checked]=\"isGroupSelected(groupItem.group?.id || '')\"\n (click)=\"$event.stopPropagation()\"\n (change)=\"toggleGroupSelection($event, groupItem.group?.id || '')\"\n >\n </th>\n <th *ngFor=\"let column of columns(); trackBy: trackByColumnFn;let i =index\"\n style=\"text-align: center;\"\n [style.width.px]=\"column.field_size\"\n [style.minWidth.px]=\"column.field_size\"\n [resizeColumn]=\"true\"\n [columnConfig]=\"column\"\n [columnDraggable]=\"i\"\n class=\"column-header\">\n <div class=\"column-drag-handle\"></div>\n {{column.label}} {{column.symbol}}\n </th>\n </tr>\n <tr\n *ngIf=\"groupItem.type === 'row' && groupItem.group?.isExpanded\"\n class=\"row-item\"\n [attr.data-row-id]=\"groupItem.row?.entity_id\"\n [style.height.px]=\"30\"\n [style.minHeight.px]=\"30\"\n [style.maxHeight.px]=\"30\"\n >\n <td class=\"checkbox-column\" style=\"text-align: center;\">\n <input\n type=\"checkbox\"\n [checked]=\"isRowSelected(groupItem.row?.entity_id)\"\n (change)=\"toggleRowSelection($event, groupItem.row)\"\n >\n </td>\n <td #cell *ngFor=\"let column of columns(); trackBy: trackByColumnFn\"\n [style.width.px]=\"column.field_size\"\n [style.minWidth.px]=\"column.field_size\"\n class=\"data-cell\"\n [style.height.px]=\"30\"\n [style.minHeight.px]=\"30\"\n [style.maxHeight.px]=\"30\"\n [matTooltipClass]=\"'error-message'\"\n [matTooltip]=\"datacell.error()?'Error: ' + datacell.error():''\"\n matTooltipPosition=\"below\"\n >\n <div class=\"cell-content\">\n <data-cell\n #datacell \n [td]=cell\n [fieldSize]=\"column.field_size\"\n [columnDatatype]=\"column.datatype\"\n [columnName]=\"column.name\"\n [value]=\"groupItem.row?.[column.name] || ''\"\n [column]=\"column\"\n [mode]=\"mode()\"\n [isEditable]=\"isEditable()\"\n [drillable]=\"column.enableDrilldown || false\"\n [id]=\"groupItem.row?.['entity_id'] || '_' ||column.name\"\n ></data-cell>\n </div>\n </td>\n </tr>\n\n <tr\n *ngIf=\"groupItem.type === 'ghost-loading' && groupItem.group?.isExpanded\"\n class=\"ghost-loading-row\"\n [style.height.px]=\"30\"\n [style.minHeight.px]=\"30\"\n [style.maxHeight.px]=\"30\"\n >\n <td class=\"checkbox-column\"></td>\n <td *ngFor=\"let column of columns(); trackBy: trackByColumnFn\"\n [style.width.px]=\"column.field_size\"\n [style.minWidth.px]=\"column.field_size\"\n class=\"ghost-cell-container\"\n >\n <div class=\"ghost-cell\"></div>\n </td>\n </tr>\n\n <tr\n *ngIf=\"groupItem.type === 'row-place-holder'\"\n class=\"group-separator\"\n >\n <td [attr.colspan]=\"columns().length + 1\" class=\"separator-cell\"></td>\n </tr>\n </ng-container>\n </tbody>\n </table>\n </div>\n </cdk-virtual-scroll-viewport>\n </ng-container> \n}\n</div>\n\n <!-- Pivot Table Header Template -->\n <ng-template #pivotTableHead>\n <thead>\n @if (hasNestedHeaders()) {\n <ng-container >\n @for (headerRow of getHeaderRows(); track headerRow; let rowIndex = $index) {\n <tr class=\"pivot-header pivot-header-container\" \n [class.pivot-header-level]=\"'level-' + rowIndex\">\n @for (header of headerRow; track trackByHeaderFn($index, header); let colIndex = $index) {\n <th\n [attr.colspan]=\"header.colspan\"\n [attr.rowspan]=\"header.rowspan\"\n [resizeColumn]=\"gridStore.isFeatureEnabled('columnResizable') && header.level === 0\"\n class=\"column-header pivot-column-header nested-header\"\n [class.row-dimension-header]=\"isRowDimensionHeader(header)\"\n [class.column-dimension-header]=\"!isRowDimensionHeader(header)\"\n [class.expanded]=\"header.isExpanded\"\n [class.collapsed]=\"!header.isExpanded\"\n [class.sticky-column]=\"isStickyColumn(header.name, colIndex)\"\n [style.position]=\"isStickyColumn(header.name, colIndex) ? 'sticky' : 'static'\"\n [style.left.px]=\"getStickyColumnLeft(header.name, colIndex)\"\n [style.z-index]=\"isStickyColumn(header.name, colIndex) ? 100 : 1\"\n style=\"min-height: 40px; height: auto; padding: 8px 6px;\">\n <div class=\"header-content\">\n <span class=\"header-label\">{{header.label}}</span>\n <!-- <button *ngIf=\"!isRowDimensionHeader(header)\" \n class=\"collapse-toggle-btn\"\n [title]=\"header.isExpanded ? 'Collapse group' : 'Expand group'\"\n (click)=\"toggleColumnGroup(header.groupKey)\"\n type=\"button\">\n <span class=\"collapse-icon\">+</span>\n </button> -->\n </div>\n </th>\n }\n </tr>\n }\n </ng-container>\n } @else {\n <!-- Simple header fallback -->\n <ng-container>\n <tr class=\"pivot-header\" [class.freeze-header-enabled]=\"freezeHeader()\">\n @for (column of getLeafColumns(); track trackByColumnFn($index, column); let colIndex = $index) {\n <th [style.width.px]=\"column.field_size\"\n [style.minWidth.px]=\"column.field_size\"\n [resizeColumn]=\"gridStore.isFeatureEnabled('columnResizable')\"\n [columnConfig]=\"column\"\n class=\"column-header pivot-column-header\"\n [class.sticky-column]=\"isStickyColumn(column.name, colIndex)\"\n [style.position]=\"isStickyColumn(column.name, colIndex) ? 'sticky' : 'static'\"\n [style.left.px]=\"getStickyColumnLeft(column.name, colIndex)\"\n [style.z-index]=\"isStickyColumn(column.name, colIndex) ? 100 : 1\"\n style = \"min-height: 40px;height: auto;padding: 8px 6px;position: relative;left: 0px;z-index: 1\">\n {{column.label}}\n </th>\n }\n </tr>\n </ng-container>\n }\n \n </thead>\n</ng-template>\n\n<!-- Column Group Template for consistent column widths -->\n<ng-template #pivotColGroup>\n <colgroup>\n @for (column of getLeafColumns(); track trackByColumnFn($index, column)) {\n <col [style]=\"'width: ' + column.field_size + 'px !important; min-width: ' + column.field_size + 'px !important; max-width: ' + column.field_size + 'px !important; --col-width: ' + column.field_size + 'px'\">\n }\n </colgroup>\n</ng-template>\n\n<ng-template #pivotGrandTotal>\n<tbody class=\"pivot-tbody\">\n @for (pivotRow of gridStore.pivotGrandTotalData(); track trackByPivotRowFn($index, pivotRow); let i = $index) {\n <tr \n class=\"pivot-row grand-total-row\"\n [class.grand-total-bold]=\"pivotRow._isGrandTotal && grandTotalStyle() === 'bold'\"\n [class.grand-total-italic]=\"pivotRow._isGrandTotal && grandTotalStyle() === 'italic'\"\n [class.grand-total-highlighted]=\"pivotRow._isGrandTotal && grandTotalStyle() === 'highlighted'\"\n [style.height.px]=\"50\"\n [attr.data-pivot-row]=\"i\">\n <!-- <td colspan=\"20\">{{pivotRow | json}}</td> -->\n @for (column of getLeafColumns(); track trackByColumnFn($index, column); let colIndex = $index) {\n <td\n [attr.rowspan]=\"getEffectiveRowspan(i, column.name)\" \n [style.width.px]=\"column.field_size\"\n [style.minWidth.px]=\"column.field_size\"\n class=\"pivot-cell\"\n [class.row-dimension-cell]=\"isRowDimensionColumn(column.name)\"\n [class.column-dimension-cell]=\"!isRowDimensionColumn(column.name)\"\n [class.aggregated-value]=\"!isRowDimensionColumn(column.name) && column.datatype === 'number'\"\n [class.rowspan-cell]=\"getEffectiveRowspan(i, column.name) || 1 > 1\"\n [class.sticky-column]=\"isStickyColumn(column.name, colIndex)\"\n [style.position]=\"isStickyColumn(column.name, colIndex) ? 'sticky' : 'static'\"\n [style.left.px]=\"getStickyColumnLeft(column.name, colIndex)\"\n [style.z-index]=\"isStickyColumn(column.name, colIndex) ? 99 : 1\"\n [style.height.px]=\"50\"\n [attr.xx]=\"i\"> \n <div class=\"cell-content pivot-cell-content\">\n <data-cell\n [fieldSize]=\"column.field_size\"\n [columnDatatype]=\"column.datatype\"\n [columnName]=\"column.name\"\n [value]=\"getEffectiveCellValue(i,column.name, pivotRow)\"\n [column]=\"column\"\n [frozenGrandTotalCell]=\"true\"\n [drillable]=\"column.enableDrilldown || false\"\n [mode]=\"mode()\"\n [isEditable]=\"isEditable()\"\n [id]=\"'pivot_' + i + '_' + column.name\">\n </data-cell>\n </div>\n </td>\n }\n </tr>\n}\n</tbody>\n</ng-template>\n", styles: ["@charset \"UTF-8\";:host{display:block;width:100%;height:100%;font-family:var(--grid-font-family);--grid-primary: #6750a4;--grid-on-primary: #ffffff;--grid-surface: #fef7ff;--grid-surface-variant: #e7e0ec;--grid-surface-container: #f3edf7;--grid-surface-container-high: #ede7f0;--grid-on-surface: #1d1b20;--grid-on-surface-variant: #49454f;--grid-outline: #79757f;--grid-outline-variant: #cac4d0;--grid-error: #ba1a1a;--grid-error-container: #ffdad6;--grid-font-family: \"Poppins\", \"Roboto\", -apple-system, BlinkMacSystemFont, \"Segoe UI\", sans-serif;--grid-font-size-body: 12px;--grid-font-size-caption: 12px !important;--grid-line-height-body: 1;--grid-aggregation-text-align: right;--grid-number-text-align: right;--grid-spacing-xxs: 2px;--grid-spacing-xs: 4px;--grid-spacing-sm: 8px;--grid-spacing-md: 16px;--grid-spacing-lg: 24px;--grid-border-radius: 4px;--grid-elevation-1: 0px 1px 2px 0px rgba(0, 0, 0, .3), 0px 1px 3px 1px rgba(0, 0, 0, .15);--grid-elevation-2: 0px 1px 2px 0px rgba(0, 0, 0, .3), 0px 2px 6px 2px rgba(0, 0, 0, .15)}.incremental-row-container{padding:10px;width:100%;height:100%;min-height:var(--table-min-height, 400px);max-height:none;overflow:auto;position:relative;background-color:var(--grid-surface);border-radius:var(--grid-border-radius);box-shadow:var(--grid-elevation-1);font-family:var(--grid-font-family)}.viewport{overflow-x:auto;overflow-y:auto;background-color:var(--grid-surface);scrollbar-gutter:stable}.viewport.apply-cdk-width{width:calc(var(--table-total-width) + 10px)!important}.pivot-viewport{min-height:var(--table-min-height, 300px);overflow-x:auto;overflow-y:auto;background-color:var(--grid-surface)}.pivot-viewport .cdk-virtual-scroll-content-wrapper{width:auto;height:auto}.table-wrapper{min-width:100%;overflow-x:visible}.incremental-row-container .eru-grid-table,.eru-grid-table{width:100%!important;border-collapse:separate;border-spacing:0;table-layout:fixed!important;background-color:var(--grid-surface);color:var(--grid-on-surface);font-size:var(--grid-font-size-body);line-height:var(--grid-line-height-body)}.eru-grid-table th,.eru-grid-table td{text-align:left;overflow:hidden!important;text-overflow:ellipsis!important;white-space:nowrap!important;background-color:var(--grid-surface);color:var(--grid-on-surface);min-width:0;max-width:100%!important;box-sizing:border-box;position:relative}.eru-grid-table th:hover,.eru-grid-table td:hover{background-color:var(--grid-surface-variant)}.eru-grid-table thead{background-color:var(--grid-surface-container);transform:translateZ(0);will-change:transform;backface-visibility:hidden}.eru-grid-table thead.freeze-header-enabled{box-shadow:0 2px 4px #0000001a;border-bottom:2px solid var(--grid-outline)}.eru-grid-table thead th{background-color:var(--grid-surface-container);color:var(--grid-on-surface);font-weight:500;font-size:var(--grid-font-size-caption)}.checkbox-column{width:50px;min-width:50px;max-width:50px;text-align:center;border:1px solid var(--grid-outline);background-color:var(--grid-surface-container)}.checkbox-column input[type=checkbox]{width:16px;height:16px;cursor:pointer;accent-color:var(--grid-primary);border-radius:var(--grid-border-radius)}.checkbox-column input[type=checkbox]:focus{outline:2px solid var(--grid-primary);outline-offset:2px}.group-header{background-color:var(--grid-surface-container);color:var(--grid-on-surface);font-size:var(--grid-font-size-caption);font-weight:500;border-bottom:1px solid var(--grid-outline);cursor:pointer;transition:background-color .2s ease}.group-header:hover{background-color:var(--grid-surface-container-high)}.group-header .group-title{font-weight:600;color:var(--grid-primary)}.group-header .group-row-count{color:var(--grid-on-surface-variant);font-size:var(--grid-font-size-caption);margin-left:var(--grid-spacing-sm)}.row-item{border:1px solid var(--grid-outline);background-color:var(--grid-surface);transition:background-color .2s ease,box-shadow .2s ease}.row-item:hover{background-color:var(--grid-surface-variant);box-shadow:var(--grid-elevation-1)}.column-header{font-weight:500;text-align:center!important;font-size:var(--grid-font-size-caption, 12px);position:relative;-webkit-user-select:none;user-select:none;background-color:var(--grid-surface-container);color:var(--grid-on-surface)}.column-header:hover{background-color:var(--grid-surface-container-high)}.column-drag-handle{position:absolute;left:0;top:0;bottom:0;width:12px;cursor:grab;opacity:0;transition:opacity .2s ease,background-color .2s ease;z-index:2;display:flex;align-items:center;justify-content:center;border-right:1px solid transparent}.column-drag-handle:after{content:\"\\22ee\\22ee\";font-size:14px;color:var(--grid-on-surface-variant);transform:rotate(90deg)}.column-drag-handle:hover{background-color:var(--grid-surface-container-high);border-right-color:var(--grid-outline)}.column-header:hover .column-drag-handle{opacity:1}.column-drag-handle:active{cursor:grabbing}.dragging{opacity:1;background-color:var(--grid-surface-container);box-shadow:var(--grid-elevation-2)}.drag-over{background-color:var(--grid-surface-container);border-color:var(--grid-primary)}.data-cell{background-color:var(--grid-surface);color:var(--grid-on-surface);font-size:var(--grid-font-size-body)}.cell-content{align-items:center}.cell-content .mdc-text-field{padding:0px var(--grid-spacing-xxs)!important}.cell-display-text{align-items:center;padding:0px var(--grid-spacing-xs)}.ghost-loading-row{background-color:transparent}.ghost-cell-container{padding:var(--grid-spacing-sm)}.ghost-cell{height:20px;width:100%;background-color:var(--grid-surface-container);animation:pulse 1.5s ease-in-out infinite;border-radius:var(--grid-border-radius)}@keyframes pulse{0%,to{opacity:1}50%{opacity:.5}}.resizing{cursor:col-resize;-webkit-user-select:none;user-select:none}.column-resizer{position:absolute;right:0;top:0;bottom:0;width:4px;cursor:col-resize;background-color:transparent;transition:background-color .2s ease}.column-resizer:hover{background-color:var(--grid-primary)}.group-separator{height:var(--grid-spacing-sm);background-color:var(--grid-surface-variant)}.group-separator .separator-cell{background-color:var(--grid-surface-variant);border:none;height:var(--grid-spacing-sm)}.error-state{background-color:var(--grid-error-container);color:var(--grid-error);border-color:var(--grid-error)}.error-message{background-color:var(--grid-error);color:#fff;padding:var(--grid-spacing-sm);border-radius:var(--grid-border-radius);font-size:var(--grid-font-size-caption)}.incremental-row-container .eru-grid-table tbody,.incremental-row-container .eru-grid-table{position:relative}.incremental-row-container .eru-grid-table.show-column-lines{border-right:var(--grid-outline-width, 1px) solid var(--grid-outline, #e0e0e0)!important;border-top:var(--grid-outline-width, 1px) solid var(--grid-outline, #e0e0e0)!important;border-bottom:var(--grid-outline-width, 1px) solid var(--grid-outline, #e0e0e0)!important}.incremental-row-container .eru-grid-table:not(.show-column-lines){border:var(--grid-outline-width, 1px) solid var(--grid-outline, #e0e0e0)!important}.incremental-row-container .eru-grid-table thead:after{content:\"\";position:absolute;bottom:0;left:0;right:0;height:calc(var(--grid-outline-width, 1px) * 2);background-color:var(--grid-outline, #e0e0e0);pointer-events:none;z-index:10}.incremental-row-container .eru-grid-table.show-column-lines thead th{border-left:var(--grid-outline-width, 1px) solid var(--grid-outline, #e0e0e0)!important;border-bottom:var(--grid-outline-width, 1px) solid var(--grid-outline, #e0e0e0)!important}.incremental-row-container .eru-grid-table.show-column-lines tbody td{border-left:var(--grid-outline-width, 1px) solid var(--grid-outline, #e0e0e0)!important}.incremental-row-container .eru-grid-table.show-row-lines thead th{border-left:var(--grid-outline-width, 1px) solid var(--grid-outline, #e0e0e0)!important;border-bottom:var(--grid-outline-width, 1px) solid var(--grid-outline, #e0e0e0)!important}.incremental-row-container .eru-grid-table.show-row-lines tbody td{border-bottom:var(--grid-outline-width, 1px) solid var(--grid-outline, #e0e0e0)!important}@media (max-width: 768px){.incremental-row-container{height:600px}.eru-grid-table th,.eru-grid-table td{font-size:var(--grid-font-size-caption)}.checkbox-column{width:40px;min-width:40px;max-width:40px}}@media (prefers-contrast: high){.eru-grid-table th,.eru-grid-table td{border-width:2px}.row-item:hover{border-width:2px;border-color:var(--grid-primary)}}@media (prefers-reduced-motion: reduce){.row-item,.column-drag-handle,.ghost-cell{transition:none;animation:none}}.pivot-table .nested-header{text-align:center;font-weight:600;background:var(--grid-surface-container)}.pivot-table .nested-header.row-dimension-header{background:var(--grid-surface-container);font-weight:600}.pivot-table .pivot-header-leafcols{padding:0;margin:0;height:0}.pivot-table .pivot-header-level.level-0 .nested-header{font-size:14px;padding:12px 8px}.pivot-table .pivot-header-level.level-1 .nested-header{font-size:13px;padding:10px 6px}.pivot-table .pivot-header-level.level-2 .nested-header{font-size:12px;padding:8px 4px}.pivot-table .nested-header:hover{background:var(--grid-surface-variant);color:var(--grid-primary);transition:all .2s ease}.pivot-table .pivot-cell.aggregated-value{font-weight:500;font-family:Roboto Mono,monospace}.pivot-table .pivot-cell-content{display:flex;justify-content:center;align-items:center;min-height:38px}.pivot-table .rowspan-cell{vertical-align:middle}.pivot-table .rowspan-cell .pivot-cell-content{height:100%}.pivot-mode .incremental-row-container{display:flex;flex-direction:column;height:auto;max-height:85vh;overflow:auto}.pivot-mode .h-shell{position:relative;width:calc(100% - var(--scrollbar-width, 17px))!important;top:0;z-index:1;overflow-x:hidden;overflow-y:hidden;scrollbar-width:none;-ms-overflow-style:none}.pivot-mode .h-shell::-webkit-scrollbar{display:none}.pivot-mode .gt-shell{position:relative;bottom:50px;flex-shrink:0;overflow-x:hidden;overflow-y:hidden;scrollbar-width:none;-ms-overflow-style:none}.pivot-mode .gt-shell::-webkit-scrollbar{display:none}.pivot-mode .gt-shell table{border-bottom:var(--grid-outline-width, 1px) solid var(--grid-outline, #e0e0e0)!important}.pivot-mode .gt-shell.adjust-bottom-vs{bottom:58px!important}.pivot-mode .gt-shell.adjust-bottom:not(.adjust-bottom-vs){bottom:calc(66px - var(--scrollbar-width, 17px))!important}.pivot-mode .header-shell{flex-shrink:0;width:100%;box-sizing:border-box;padding-right:var(--scrollbar-width, 17px);overflow-x:auto;overflow-y:hidden;scrollbar-width:none;-ms-overflow-style:none}.pivot-mode .header-shell::-webkit-scrollbar{display:none}.pivot-mode .header-shell.apply-cdk-width{width:calc(var(--table-total-width) + 10px)!important}.pivot-mode .header-shell .eru-grid-table{margin-bottom:0;width:100%;table-layout:fixed}.pivot-mode .header-shell .eru-grid-table thead{background:var(--grid-surface-container)}.pivot-mode .header-shell .eru-grid-table thead th{background:var(--grid-surface-container);overflow:hidden;text-overflow:ellipsis;white-space:nowrap;width:var(--col-width)!important;min-width:var(--col-width)!important;max-width:var(--col-width)!important}.pivot-mode .header-shell .eru-grid-table thead th.sticky-column{position:sticky;background:var(--grid-surface-container);z-index:111}.pivot-mode .header-shell .eru-grid-table tbody td{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;width:var(--col-width)!important;min-width:var(--col-width)!important;max-width:var(--col-width)!important}.pivot-mode .pivot-container{display:flex;flex-direction:column;height:100%;width:100%;overflow:hidden}.pivot-mode .pivot-table{width:auto!important;min-width:100%!important;table-layout:fixed!important;width:100%!important}.pivot-mode .pivot-table colgroup col{width:var(--col-width)!important;min-width:var(--col-width)!important;max-width:var(--col-width)!important;flex:none!important;flex-shrink:0!important;flex-grow:0!important}.pivot-mode .pivot-table td,.pivot-mode .pivot-table th{box-sizing:border-box!important;flex:none!important;flex-shrink:0!important;flex-grow:0!important;word-wrap:break-word!important;word-break:break-all!important}.pivot-mode .pivot-table *{max-width:var(--col-width)!important;box-sizing:border-box!important}.pivot-mode .pivot-table colgroup{width:100%!important}.pivot-mode .pivot-table colgroup col{width:var(--col-width)!important;min-width:var(--col-width)!important;max-width:var(--col-width)!important;flex-basis:var(--col-width)!important;flex:0 0 var(--col-width)!important}.pivot-mode .pivot-table table{width:100%!important;table-layout:fixed!important;border-collapse:collapse!important;border-spacing:0!important}.pivot-mode .pivot-table[style*=--table-total-width]{width:var(--table-total-width)!important;min-width:var(--table-total-width)!important;max-width:var(--table-total-width)!important}.pivot-mode .pivot-table colgroup col{width:var(--col-width)!important;min-width:var(--col-width)!important;max-width:var(--col-width)!important;flex:0 0 var(--col-width)!important;flex-basis:var(--col-width)!important;flex-grow:0!important;flex-shrink:0!important;overflow:hidden!important}.pivot-mode .pivot-table tbody td,.pivot-mode .pivot-table thead th{width:var(--col-width)!important;min-width:var(--col-width)!important;max-width:var(--col-width)!important;overflow:hidden!important;text-overflow:ellipsis!important;white-space:nowrap!important}.pivot-mode .pivot-table .cell-content,.pivot-mode .pivot-table data-cell{width:100%!important;max-width:100%!important;overflow:hidden!important;text-overflow:ellipsis!important;white-space:nowrap!important;display:block!important}.pivot-mode .pivot-table table{width:var(--table-total-width)!important;min-width:var(--table-total-width)!important;max-width:var(--table-total-width)!important;table-layout:fixed!important;border-collapse:collapse!important;border-spacing:0!important;word-wrap:break-word!important;word-break:break-all!important}.pivot-mode .pivot-tbody tr.pivot-row{min-height:50px!important;height:50px!important}.pivot-mode .pivot-tbody tr.pivot-row:hover{background-color:var(--grid-surface-variant)}.pivot-mode .pivot-tbody tr.pivot-row:nth-child(2n){background-color:#00000005}.pivot-mode .pivot-tbody tr.pivot-row td{min-height:50px!important;height:50px!important;vertical-align:middle;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;width:var(--col-width)!important;min-width:var(--col-width)!important;max-width:var(--col-width)!important}.pivot-mode .pivot-tbody tr.pivot-row td .cell-content{min-height:48px;display:flex;align-items:center;justify-content:center}.pivot-mode .pivot-tbody tr.pivot-row td .cell-content data-cell{width:100%;min-height:46px;display:flex;align-items:center;justify-content:center;overflow:hidden;flex-shrink:0}.pivot-mode .pivot-cell{vertical-align:middle;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;width:var(--col-width)!important;min-width:var(--col-width)!important;max-width:var(--col-width)!important}.pivot-mode .pivot-cell.aggregated-value{font-weight:500;font-family:Roboto Mono,monospace}.pivot-mode .pivot-cell .cell-content{display:flex;justify-content:center;align-items:center;min-height:40px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;flex-shrink:0}.pivot-mode .pivot-table .subtotal-row{background-color:var(--grid-surface-container)!important;font-weight:600}.pivot-mode .pivot-table .subtotal-row td{background-color:var(--grid-surface-container);color:var(--grid-on-surface-variant)}.pivot-mode .pivot-table .subtotal-row td:first-child{color:var(--grid-primary)}.pivot-mode .pivot-table .subtotal-row td.aggregated-value{font-weight:500;color:var(--grid-primary)}.pivot-mode .pivot-table .subtotal-row:hover{background-color:var(--grid-surface-container-high)!important}.pivot-mode .pivot-table .subtotal-row:hover td{background-color:var(--grid-surface-container-high)}.pivot-mode .pivot-table .subtotal-bold td{font-weight:600!important;font-style:normal!important}.pivot-mode .pivot-table .subtotal-bold td.aggregated-value{font-weight:600!important}.pivot-mode .pivot-table .subtotal-italic td{font-style:italic!important}.pivot-mode .pivot-table .subtotal-italic td:first-child{font-weight:600!important}.pivot-mode .pivot-table .subtotal-italic td.aggregated-value{font-style:italic!important;font-weight:500!important}.pivot-mode .pivot-table .subtotal-highlighted{background-color:var(--grid-surface-variant)!important}.pivot-mode .pivot-table .subtotal-highlighted td{background-color:var(--grid-surface-variant)!important;font-weight:700!important;font-style:normal!important;color:var(--grid-primary)!important}.pivot-mode .pivot-table .subtotal-highlighted td.aggregated-value{font-weight:500!important;color:var(--grid-primary)!important}.pivot-mode .pivot-table .subtotal-highlighted:hover,.pivot-mode .pivot-table .subtotal-highlighted:hover td{background-color:var(--grid-surface-container-high)!important}.pivot-mode .pivot-table .grand-total-row{background-color:var(--grid-surface-container-high)!important;font-weight:700;font-size:var(--grid-font-size-body)}.pivot-mode .pivot-table .grand-total-row td{background-color:var(--grid-surface-container-high)!important;color:var(--grid-on-surface)}.pivot-mode .pivot-table .grand-total-row td:first-child{font-style:normal;font-weight:800;color:var(--grid-primary)}.pivot-mode .pivot-table .grand-total-row td.aggregated-value{font-weight:500;color:var(--grid-primary);font-family:Roboto Mono,monospace}.pivot-mode .pivot-table .grand-total-row:hover,.pivot-mode .pivot-table .grand-total-row:hover td{background-color:var(--grid-surface-container-high)!important}.pivot-mode .pivot-table .grand-total-bold td{font-weight:700!important;font-style:normal!important}.pivot-mode .pivot-table .grand-total-bold td.aggregated-value{font-weight:700!important}.pivot-mode .pivot-table .grand-total-italic td,.pivot-mode .pivot-table .grand-total-italic td.aggregated-value{font-style:italic!important;font-weight:500!important}.pivot-mode .pivot-table .grand-total-highlighted{background-color:var(--grid-primary)!important;box-shadow:var(--grid-elevation-2)!important}.pivot-mode .pivot-table .grand-total-highlighted td{background-color:var(--grid-primary)!important;color:var(--grid-on-primary)!important;font-weight:500!important;font-style:normal!important}.pivot-mode .pivot-table .grand-total-highlighted td.aggregated-value{color:var(--grid-on-primary)!important;font-weight:500!important}.pivot-mode .pivot-table .grand-total-highlighted:hover,.pivot-mode .pivot-table .grand-total-highlighted:hover td{background-color:var(--grid-primary)!important}.pivot-mode .pivot-table .collapsible-header{position:relative}.pivot-mode .pivot-table .collapsible-header .header-content{display:flex;align-items:center;justify-content:space-between;gap:var(--grid-spacing-xs);padding:var(--grid-spacing-xs) var(--grid-spacing-sm)}.pivot-mode .pivot-table .collapsible-header .header-label{flex:1;font-weight:600}.pivot-mode .pivot-table .collapsible-header .collapse-toggle-btn{background:none;border:none;cursor:pointer;padding:var(--grid-spacing-xxs);margin:0;display:flex;align-items:center;justify-content:center;width:20px;height:20px;border-radius:var(--grid-border-radius);color:var(--grid-on-surface-variant);transition:all .2s ease;font-size:12px;font-weight:600}.pivot-mode .pivot-table .collapsible-header .collapse-toggle-btn:hover{background-color:var(--grid-surface-container);color:var(--grid-primary);transform:scale(1.1)}.pivot-mode .pivot-table .collapsible-header .collapse-toggle-btn:focus{outline:2px solid var(--grid-primary);outline-offset:1px}.pivot-mode .pivot-table .collapsible-header .collapse-toggle-btn .collapse-icon{display:block;line-height:1;font-family:monospace;font-size:14px}.pivot-mode .pivot-table .collapsible-header.expanded .collapse-toggle-btn .collapse-icon{color:var(--grid-primary)}.pivot-mode .pivot-table .collapsible-header.collapsed{background-color:var(--grid-surface-variant)}.pivot-mode .pivot-table .collapsible-header.collapsed .header-label{font-style:italic;color:var(--grid-on-surface-variant)}.pivot-mode .pivot-table .collapsible-header.collapsed .collapse-toggle-btn .collapse-icon{color:var(--grid-outline)}.pivot-mode .pivot-table .collapsible-header:hover{background-color:var(--grid-surface-container)}.pivot-mode .pivot-table .collapsible-header:hover .header-label{color:var(--grid-on-surface)}.pivot-mode .pivot-table .pivot-single-table{display:flex;flex-direction:column;height:100%;width:100%;overflow:hidden;min-height:var(--table-min-height)!important}.pivot-mode .pivot-table .pivot-single-table .pivot-header-container{flex-shrink:0;background:var(--grid-surface)!important;overflow-x:auto;overflow-y:hidden;min-height:100px!important;height:auto!important}.pivot-mode .pivot-table .pivot-single-table .pivot-header-container .pivot-table{width:auto;min-width:100%;height:auto!important;min-height:100px!important}.pivot-mode .pivot-table .pivot-single-table .pivot-header-container .pivot-table th{background:var(--grid-surface-container)!important;padding:8px 6px!important;white-space:nowrap;min-width:50px;min-height:40px!important;height:auto!important;position:relative;visibility:visible!important;color:var(--grid-on-surface)!important}.pivot-mode .pivot-table .pivot-single-table .pivot-header-container .pivot-table th.sticky-column{position:sticky!important;background:var(--grid-surface-container)!important;border-right:2px solid var(--grid-primary)!important;box-shadow:2px 0 4px #0000001a;z-index:101!important}.pivot-mode .pivot-table .pivot-single-table .pivot-data-container{flex:1;overflow:auto;min-height:300px!important;height:auto!important}.pivot-mode .pivot-table .pivot-single-table .pivot-data-container .pivot-viewport{height:100%!important;width:100%!important;overflow-x:auto!important;overflow-y:auto!important}.pivot-mode .pivot-table .pivot-single-table .pivot-data-container .pivot-table,.pivot-mode .pivot-table .pivot-single-table .pivot-data-container .pivot-data-table{width:auto;min-width:100%;height:auto!important}.pivot-mode .pivot-table .pivot-single-table .pivot-data-container .pivot-table td,.pivot-mode .pivot-table .pivot-single-table .pivot-data-container .pivot-data-table td{padding:8px 6px!important;white-space:nowrap;min-width:50px;min-height:32px!important;height:auto!important;background:var(--grid-surface)!important;color:var(--grid-on-surface)!important;visibility:visible!important}.pivot-mode .pivot-table .pivot-single-table .pivot-data-container .pivot-table td.sticky-column,.pivot-mode .pivot-table .pivot-single-table .pivot-data-container .pivot-data-table td.sticky-column{position:sticky!important;background:var(--grid-surface-container)!important;border-right:2px solid var(--grid-primary)!important;box-shadow:2px 0 4px #0000001a;z-index:100!important}.pivot-mode .pivot-table .pivot-single-table .pivot-data-container .pivot-table tbody tr,.pivot-mode .pivot-table .pivot-single-table .pivot-data-container .pivot-data-table tbody tr{height:auto!important;min-height:50px!important}.pivot-mode .pivot-table .pivot-single-table .pivot-data-container .pivot-table tbody tr.pivot-row,.pivot-mode .pivot-table .pivot-single-table .pivot-data-container .pivot-data-table tbody tr.pivot-row{visibility:visible!important;display:table-row!important}.pivot-mode .pivot-table .collapsed-column-group{background-color:var(--grid-surface-container);border-left:3px solid var(--grid-primary)}.pivot-mode .pivot-table .collapsed-column-group:hover{background-color:var(--grid-surface-container-high)}.pivot-row.subtotal-row{background-color:var(--grid-surface-variant);font-weight:500}.pivot-row.subtotal-row.subtotal-bold{font-weight:500}.pivot-row.subtotal-row.subtotal-italic{font-style:italic}.pivot-row.subtotal-row.subtotal-highlighted{background-color:var(--grid-primary);color:var(--grid-on-primary)}.pivot-row.grand-total-row{background-color:var(--grid-surface-container);font-weight:600}.pivot-row.grand-total-row.grand-total-bold{font-weight:800}.pivot-row.grand-total-row.grand-total-italic{font-style:italic}.pivot-row.grand-total-row.grand-total-highlighted{background-color:var(--grid-primary);color:var(--grid-on-primary)}.pivot-row.first-visible-row{background-color:#6750a41a!important;position:relative}.pivot-row.first-visible-row:before{content:\"\\1f441\\fe0f First Visible\";position:absolute;top:-20px;left:0;background:var(--grid-primary);color:var(--grid-on-primary);padding:2px 6px;font-size:10px;border-radius:2px;z-index:1000}\n"], dependencies: [{ kind: "component", type: DataCellComponent, selector: "data-cell", inputs: ["fieldSize", "columnDatatype", "columnName", "column", "value", "id", "frozenGrandTotalCell", "td", "drillable", "mode", "isEditable"], outputs: ["tdChange"] }, { kind: "ngmodule", type: ScrollingModule }, { kind: "directive", type: i1$2.ɵɵCdkFixedSizeVirtualScroll, selector: "cdk-virtual-scroll-viewport[itemSize]", inputs: ["itemSize", "minBufferPx", "maxBufferPx"] }, { kind: "directive", type: i1$2.ɵɵCdkVirtualForOf, selector: "[cdkVirtualFor][cdkVirtualForOf]", inputs: ["cdkVirtualForOf", "cdkVirtualForTrackBy", "cdkVirtualForTemplate", "cdkVirtualForTemplateCacheSize"] }, { kind: "component", type: i1$2.ɵɵCdkVirtualScrollViewport, selector: "cdk-virtual-scroll-viewport", inputs: ["orientation", "appendOnly"], outputs: ["scrolledIndexChange"] }, { kind: "ngmodule", type: CommonModule }, { kind: "directive", type: i2$1.NgForOf, selector: "[ngFor][ngForOf]", inputs: ["ngForOf", "ngForTrackBy", "ngForTemplate"] }, { kind: "directive", type: i2$1.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "directive", type: i2$1.NgTemplateOutlet, selector: "[ngTemplateOutlet]", inputs: ["ngTemplateOutletContext", "ngTemplateOutlet", "ngTemplateOutletInjector"] }, { kind: "ngmodule", type: MatTooltipModule }, { kind: "directive", type: i3$1.MatTooltip, selector: "[matTooltip]", inputs: ["matTooltipPosition", "matTooltipPositionAtOrigin", "matTooltipDisabled", "matTooltipShowDelay", "matTooltipHideDelay", "matTooltipTouchGestures", "matTooltip", "matTooltipClass"], exportAs: ["matTooltip"] }, { kind: "directive", type: ResizeColumnDirective, selector: "[resizeColumn]", inputs: ["resizeColumn", "index", "columnConfig", "gridConfig"] }, { kind: "directive", type: ColumnDragDirective, selector: "[columnDraggable]", inputs: ["columnDraggable"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush, encapsulation: i0.ViewEncapsulation.None });
|
|
5241
|
+
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "20.1.3", type: EruGridComponent, isStandalone: true, selector: "eru-grid", viewQueries: [{ propertyName: "viewport", first: true, predicate: CdkVirtualScrollViewport, descendants: true }, { propertyName: "rowContainer", first: true, predicate: ["rowContainer"], descendants: true }, { propertyName: "headerScroller", first: true, predicate: ["headerScroller"], descendants: true, read: ElementRef }, { propertyName: "gtScroller", first: true, predicate: ["gtScroller"], descendants: true, read: ElementRef }, { propertyName: "vp", first: true, predicate: ["vp"], descendants: true }], ngImport: i0, template: "<!-- <div style=\"background: #f0f0f0; font-size: 12px; border-bottom: 1px solid #ccc;\">\n currentPivotScrollIndex {{currentPivotScrollIndex()}} | \n firstDataRowIndex {{firstDataRowIndex()}} | \n firstTr {{firstTr}} |\n maxDepth {{maxDepth()}}\n</div> -->\n<div class=\"incremental-row-container eru-grid\" #rowContainer \n [class.pivot-mode]=\"gridStore.isPivotMode()\"\n [class.table-mode]=\"!gridStore.isPivotMode()\">\n \n <!-- Pivot Mode Template -->\n @if (gridStore.isPivotMode()) {\n <ng-container >\n <div class=\"pivot-container\" style=\"display: flex; flex-direction: column; height: 100%;\"\n [style]=\"'--table-min-height: ' + getInitialMinHeightPx() + 'px; --table-total-width: ' + getInitialTotalWidth() + 'px'\">\n <!-- Debug info for first visible row -->\n \n \n <div class=\"pivot-single-table\" style=\"height: 100%; width: 100%; overflow: hidden; display: flex; flex-direction: column;\">\n @if (freezeHeader()) {\n <div #headerScroller class=\"header-shell\">\n <table class=\"eru-grid-table pivot-table\" \n [style]=\"'width: auto; min-width: 100%; --table-total-width: ' + getInitialTotalWidth() + 'px'\"\n [class.show-column-lines]=\"showColumnLines()\" \n [class.show-row-lines]=\"showRowLines()\">\n <!-- Column Groups for consistent width -->\n <ng-container *ngTemplateOutlet=\"pivotColGroup\"></ng-container>\n \n <ng-container *ngTemplateOutlet=\"pivotTableHead\"></ng-container>\n @if(grandTotalPosition() === 'before' && freezeGrandTotal()) {\n <ng-container *ngTemplateOutlet=\"pivotGrandTotal\"></ng-container>\n }\n </table> \n </div>\n } \n <!-- Virtual Scrolled Table Body -->\n <div>\n <cdk-virtual-scroll-viewport\n #vp\n [itemSize]=\"50\"\n class=\"viewport pivot-viewport\"\n [class.apply-cdk-width]=\"applyCdkWidth()\"\n (scrolledIndexChange)=\"onPivotScroll($event)\"\n (scroll)=\"onBodyScroll($event)\"\n style=\"overflow: auto;\">\n <table class=\"eru-grid-table pivot-table\" \n [style]=\"'width: auto; min-width: 100%; --table-total-width: ' + getInitialTotalWidth() + 'px'\"\n [class.show-column-lines]=\"showColumnLines()\" \n [class.show-row-lines]=\"showRowLines()\"\n >\n <!-- Column Groups for consistent width -->\n <ng-container *ngTemplateOutlet=\"pivotColGroup\"></ng-container>\n \n @if (!freezeHeader()) {\n <ng-container *ngTemplateOutlet=\"pivotTableHead\"></ng-container> \n }\n <!-- Table Body with Virtual Scrolling -->\n <tbody class=\"pivot-tbody\">\n \n <tr *cdkVirtualFor=\"let pivotRow of gridStore.pivotDisplayData(); \n trackBy: trackByPivotRowFn; \n let i = index\"\n class=\"pivot-row\"\n [class.subtotal-row]=\"pivotRow._isSubtotal\"\n [class.grand-total-row]=\"pivotRow._isGrandTotal\"\n [class.subtotal-bold]=\"pivotRow._isSubtotal && subTotalStyle() === 'bold'\"\n [class.subtotal-italic]=\"pivotRow._isSubtotal && subTotalStyle() === 'italic'\"\n [class.subtotal-highlighted]=\"pivotRow._isSubtotal && subTotalStyle() === 'highlighted'\"\n [class.grand-total-bold]=\"pivotRow._isGrandTotal && grandTotalStyle() === 'bold'\"\n [class.grand-total-italic]=\"pivotRow._isGrandTotal && grandTotalStyle() === 'italic'\"\n [class.grand-total-highlighted]=\"pivotRow._isGrandTotal && grandTotalStyle() === 'highlighted'\"\n [style.height.px]=\"50\"\n [attr.data-pivot-row]=\"i\">\n @if ((!pivotRow._isGrandTotal && freezeGrandTotal() ) || (!freezeGrandTotal() )) { \n @for (column of getLeafColumns(); track trackByColumnFn($index, column); let colIndex = $index) {\n @if (!shouldSkipCell(i, column.name)) {\n <td\n [attr.rowspan]=\"getEffectiveRowspan(i, column.name)\"\n [style.width.px]=\"column.field_size\"\n [style.minWidth.px]=\"column.field_size\"\n class=\"pivot-cell\"\n [class.row-dimension-cell]=\"isRowDimensionColumn(column.name)\"\n [class.column-dimension-cell]=\"!isRowDimensionColumn(column.name)\"\n [class.aggregated-value]=\"!isRowDimensionColumn(column.name) && column.datatype === 'number'\"\n [class.rowspan-cell]=\"getEffectiveRowspan(i, column.name) || 1 > 1\"\n [class.sticky-column]=\"isStickyColumn(column.name, colIndex)\"\n [style.position]=\"isStickyColumn(column.name, colIndex) ? 'sticky' : 'static'\"\n [style.left.px]=\"getStickyColumnLeft(column.name, colIndex)\"\n [style.z-index]=\"isStickyColumn(column.name, colIndex) ? 99 : 1\"\n [style.height.px]=\"50\"\n [attr.xx]=\"i\"> \n <div class=\"cell-content pivot-cell-content\">\n <data-cell\n [class.aggregation]=\"!!column.aggregationFunction\"\n [fieldSize]=\"column.field_size\"\n [columnDatatype]=\"column.datatype\"\n [columnName]=\"column.name\"\n [value]=\"getEffectiveCellValue(i,column.name, pivotRow)\"\n [column]=\"column\"\n [drillable]=\"column.enableDrilldown || false\"\n [mode]=\"mode()\"\n [isEditable]=\"isEditable()\"\n [id]=\"'pivot_' + i + '_' + column.name\">\n </data-cell>\n </div>\n </td>\n }\n }\n }\n </tr> \n </tbody>\n </table>\n </cdk-virtual-scroll-viewport>\n\n </div>\n @if (freezeGrandTotal() && grandTotalPosition() === 'after') {\n <div #gtScroller class=\"header-shell gt-shell\"\n [class.adjust-bottom]=\"!applyCdkWidth()\"\n [class.adjust-bottom-vs]=\"!adjustScrollWidth()\">\n <table class=\"eru-grid-table pivot-table\" \n [style]=\"'width: auto; min-width: 100%; --table-total-width: ' + getInitialTotalWidth() + 'px'\"\n [class.show-column-lines]=\"showColumnLines()\" \n [class.show-row-lines]=\"showRowLines()\">\n <ng-container *ngTemplateOutlet=\"pivotColGroup\"></ng-container>\n \n <ng-container *ngTemplateOutlet=\"pivotGrandTotal\"></ng-container>\n \n </table> \n </div>\n }\n \n\n </div>\n </div>\n </ng-container>\n} @else {\n \n<!-- Table Mode Template -->\n <ng-container>\n <cdk-virtual-scroll-viewport\n [itemSize]=\"50\"\n class=\"viewport table-viewport\"\n (scrolledIndexChange)=\"onScroll($event)\"\n >\n <div class=\"table-wrapper\">\n <table class=\"eru-grid-table\" [class.show-column-lines]=\"showColumnLines()\" [class.show-column-lines]=\"showColumnLines()\">\n <thead>\n <tr style=\"visibility:hidden;\">\n <th class=\"checkbox-column\"></th>\n <th *ngFor=\"let column of columns(); trackBy: trackByColumnFn\"\n [style.width.px]=\"column.field_size\"\n [style.minWidth.px]=\"column.field_size\"\n class=\"column-header\">\n {{column.label}}\n </th>\n </tr>\n </thead>\n <tbody *ngIf=\"columns() as columnsList\">\n <ng-container *cdkVirtualFor=\"let groupItem of groupedRows();\n trackBy: trackByGroupItemFn;\n let i = index;\n let first=first\">\n <tr\n *ngIf=\"groupItem.type === 'header'\"\n class=\"group-header\"\n (click)=\"toggleGroupExpansion(groupItem.group?.id || '')\"\n >\n <td class=\"checkbox-column\" style=\"border: none;\">\n {{ groupItem.group?.isExpanded ? '\u25BC' : '\u25B6' }}\n </td>\n <td [attr.colspan]=\"2\" style=\"border: none;\">\n <span class=\"group-title\">\n {{ groupItem.group?.title }}\n </span>\n <span class=\"group-row-count\">\n ({{ groupItem.group?.currentLoadedRows || 0 }}/{{ groupItem.group?.totalRowCount || 0 }})\n </span>\n </td>\n </tr>\n <tr *ngIf=\"groupItem.type === 'table-header'\" style=\"background:#fafafa\">\n <th class=\"checkbox-column\" style=\"text-align: center;\">\n <input\n type=\"checkbox\"\n [checked]=\"isGroupSelected(groupItem.group?.id || '')\"\n (click)=\"$event.stopPropagation()\"\n (change)=\"toggleGroupSelection($event, groupItem.group?.id || '')\"\n >\n </th>\n <th *ngFor=\"let column of columns(); trackBy: trackByColumnFn;let i =index\"\n style=\"text-align: center;\"\n [style.width.px]=\"column.field_size\"\n [style.minWidth.px]=\"column.field_size\"\n [resizeColumn]=\"true\"\n [columnConfig]=\"column\"\n [columnDraggable]=\"i\"\n class=\"column-header\">\n <div class=\"column-drag-handle\"></div>\n {{column.label}} {{column.symbol}}\n </th>\n </tr>\n <tr\n *ngIf=\"groupItem.type === 'row' && groupItem.group?.isExpanded\"\n class=\"row-item\"\n [attr.data-row-id]=\"groupItem.row?.entity_id\"\n [style.height.px]=\"30\"\n [style.minHeight.px]=\"30\"\n [style.maxHeight.px]=\"30\"\n >\n <td class=\"checkbox-column\" style=\"text-align: center;\">\n <input\n type=\"checkbox\"\n [checked]=\"isRowSelected(groupItem.row?.entity_id)\"\n (change)=\"toggleRowSelection($event, groupItem.row)\"\n >\n </td>\n <td #cell *ngFor=\"let column of columns(); trackBy: trackByColumnFn\"\n [style.width.px]=\"column.field_size\"\n [style.minWidth.px]=\"column.field_size\"\n class=\"data-cell\"\n [style.height.px]=\"30\"\n [style.minHeight.px]=\"30\"\n [style.maxHeight.px]=\"30\"\n [matTooltipClass]=\"'error-message'\"\n [matTooltip]=\"datacell.error()?'Error: ' + datacell.error():''\"\n matTooltipPosition=\"below\"\n >\n <div class=\"cell-content\">\n <data-cell\n #datacell \n [td]=cell\n [fieldSize]=\"column.field_size\"\n [columnDatatype]=\"column.datatype\"\n [columnName]=\"column.name\"\n [value]=\"groupItem.row?.[column.name] || ''\"\n [column]=\"column\"\n [mode]=\"mode()\"\n [isEditable]=\"isEditable()\"\n [drillable]=\"column.enableDrilldown || false\"\n [id]=\"groupItem.row?.['entity_id'] || '_' ||column.name\"\n ></data-cell>\n </div>\n </td>\n </tr>\n\n <tr\n *ngIf=\"groupItem.type === 'ghost-loading' && groupItem.group?.isExpanded\"\n class=\"ghost-loading-row\"\n [style.height.px]=\"30\"\n [style.minHeight.px]=\"30\"\n [style.maxHeight.px]=\"30\"\n >\n <td class=\"checkbox-column\"></td>\n <td *ngFor=\"let column of columns(); trackBy: trackByColumnFn\"\n [style.width.px]=\"column.field_size\"\n [style.minWidth.px]=\"column.field_size\"\n class=\"ghost-cell-container\"\n >\n <div class=\"ghost-cell\"></div>\n </td>\n </tr>\n\n <tr\n *ngIf=\"groupItem.type === 'row-place-holder'\"\n class=\"group-separator\"\n >\n <td [attr.colspan]=\"columns().length + 1\" class=\"separator-cell\"></td>\n </tr>\n </ng-container>\n </tbody>\n </table>\n </div>\n </cdk-virtual-scroll-viewport>\n </ng-container> \n}\n</div>\n\n <!-- Pivot Table Header Template -->\n <ng-template #pivotTableHead>\n <thead>\n @if (hasNestedHeaders()) {\n <ng-container >\n @for (headerRow of getHeaderRows(); track headerRow; let rowIndex = $index) {\n <tr class=\"pivot-header pivot-header-container\" \n [class.pivot-header-level]=\"'level-' + rowIndex\">\n @for (header of headerRow; track trackByHeaderFn($index, header); let colIndex = $index) {\n <th\n [attr.colspan]=\"header.colspan\"\n [attr.rowspan]=\"header.rowspan\"\n [resizeColumn]=\"gridStore.isFeatureEnabled('columnResizable') && header.level === 0\"\n class=\"column-header pivot-column-header nested-header\"\n [class.row-dimension-header]=\"isRowDimensionHeader(header)\"\n [class.column-dimension-header]=\"!isRowDimensionHeader(header)\"\n [class.expanded]=\"header.isExpanded\"\n [class.collapsed]=\"!header.isExpanded\"\n [class.sticky-column]=\"isStickyColumn(header.name, colIndex)\"\n [style.position]=\"isStickyColumn(header.name, colIndex) ? 'sticky' : 'static'\"\n [style.left.px]=\"getStickyColumnLeft(header.name, colIndex)\"\n [style.z-index]=\"isStickyColumn(header.name, colIndex) ? 100 : 1\"\n style=\"min-height: 40px; height: auto; padding: 8px 6px;\">\n <div class=\"header-content\">\n <span class=\"header-label header-wrap-text\">{{header.label}}</span>\n <!-- <button *ngIf=\"!isRowDimensionHeader(header)\" \n class=\"collapse-toggle-btn\"\n [title]=\"header.isExpanded ? 'Collapse group' : 'Expand group'\"\n (click)=\"toggleColumnGroup(header.groupKey)\"\n type=\"button\">\n <span class=\"collapse-icon\">+</span>\n </button> -->\n </div>\n </th>\n }\n </tr>\n }\n </ng-container>\n } @else {\n <!-- Simple header fallback -->\n <ng-container>\n <tr class=\"pivot-header\" [class.freeze-header-enabled]=\"freezeHeader()\">\n @for (column of getLeafColumns(); track trackByColumnFn($index, column); let colIndex = $index) {\n <th [style.width.px]=\"column.field_size\"\n [style.minWidth.px]=\"column.field_size\"\n [resizeColumn]=\"gridStore.isFeatureEnabled('columnResizable')\"\n [columnConfig]=\"column\"\n class=\"column-header pivot-column-header\"\n [class.sticky-column]=\"isStickyColumn(column.name, colIndex)\"\n [style.position]=\"isStickyColumn(column.name, colIndex) ? 'sticky' : 'static'\"\n [style.left.px]=\"getStickyColumnLeft(column.name, colIndex)\"\n [style.z-index]=\"isStickyColumn(column.name, colIndex) ? 100 : 1\"\n style = \"min-height: 40px;height: auto;padding: 8px 6px;position: relative;left: 0px;z-index: 1\">\n {{column.label}}\n </th>\n }\n </tr>\n </ng-container>\n }\n \n </thead>\n</ng-template>\n\n<!-- Column Group Template for consistent column widths -->\n<ng-template #pivotColGroup>\n <colgroup>\n @for (column of getLeafColumns(); track trackByColumnFn($index, column)) {\n <col [style]=\"'width: ' + column.field_size + 'px !important; min-width: ' + column.field_size + 'px !important; max-width: ' + column.field_size + 'px !important; --col-width: ' + column.field_size + 'px'\">\n }\n </colgroup>\n</ng-template>\n\n<ng-template #pivotGrandTotal>\n<tbody class=\"pivot-tbody\">\n @for (pivotRow of gridStore.pivotGrandTotalData(); track trackByPivotRowFn($index, pivotRow); let i = $index) {\n <tr \n class=\"pivot-row grand-total-row\"\n [class.grand-total-bold]=\"pivotRow._isGrandTotal && grandTotalStyle() === 'bold'\"\n [class.grand-total-italic]=\"pivotRow._isGrandTotal && grandTotalStyle() === 'italic'\"\n [class.grand-total-highlighted]=\"pivotRow._isGrandTotal && grandTotalStyle() === 'highlighted'\"\n [style.height.px]=\"50\"\n [attr.data-pivot-row]=\"i\">\n <!-- <td colspan=\"20\">{{pivotRow | json}}</td> -->\n @for (column of getLeafColumns(); track trackByColumnFn($index, column); let colIndex = $index) {\n <td\n [attr.rowspan]=\"getEffectiveRowspan(i, column.name)\" \n [style.width.px]=\"column.field_size\"\n [style.minWidth.px]=\"column.field_size\"\n class=\"pivot-cell\"\n [class.row-dimension-cell]=\"isRowDimensionColumn(column.name)\"\n [class.column-dimension-cell]=\"!isRowDimensionColumn(column.name)\"\n [class.aggregated-value]=\"!isRowDimensionColumn(column.name) && column.datatype === 'number'\"\n [class.rowspan-cell]=\"getEffectiveRowspan(i, column.name) || 1 > 1\"\n [class.sticky-column]=\"isStickyColumn(column.name, colIndex)\"\n [style.position]=\"isStickyColumn(column.name, colIndex) ? 'sticky' : 'static'\"\n [style.left.px]=\"getStickyColumnLeft(column.name, colIndex)\"\n [style.z-index]=\"isStickyColumn(column.name, colIndex) ? 99 : 1\"\n [style.height.px]=\"50\"\n [attr.xx]=\"i\"> \n <div class=\"cell-content pivot-cell-content\">\n <data-cell\n [fieldSize]=\"column.field_size\"\n [columnDatatype]=\"column.datatype\"\n [columnName]=\"column.name\"\n [value]=\"getEffectiveCellValue(i,column.name, pivotRow)\"\n [column]=\"column\"\n [frozenGrandTotalCell]=\"true\"\n [drillable]=\"column.enableDrilldown || false\"\n [mode]=\"mode()\"\n [isEditable]=\"isEditable()\"\n [id]=\"'pivot_' + i + '_' + column.name\">\n </data-cell>\n </div>\n </td>\n }\n </tr>\n}\n</tbody>\n</ng-template>\n", styles: ["@charset \"UTF-8\";:host{display:block;width:100%;height:100%;font-family:var(--grid-font-family);--grid-primary: #6750a4;--grid-on-primary: #ffffff;--grid-surface: #fef7ff;--grid-surface-variant: #e7e0ec;--grid-surface-container: #f3edf7;--grid-surface-container-high: #ede7f0;--grid-on-surface: #1d1b20;--grid-on-surface-variant: #49454f;--grid-outline: #79757f;--grid-outline-variant: #cac4d0;--grid-error: #ba1a1a;--grid-error-container: #ffdad6;--grid-font-family: \"Poppins\", \"Roboto\", -apple-system, BlinkMacSystemFont, \"Segoe UI\", sans-serif;--grid-font-size-body: 12px;--grid-font-size-caption: 12px !important;--grid-line-height-body: 1;--grid-aggregation-text-align: right;--grid-number-text-align: right;--grid-spacing-xxs: 2px;--grid-spacing-xs: 4px;--grid-spacing-sm: 8px;--grid-spacing-md: 16px;--grid-spacing-lg: 24px;--grid-border-radius: 4px;--grid-elevation-1: 0px 1px 2px 0px rgba(0, 0, 0, .3), 0px 1px 3px 1px rgba(0, 0, 0, .15);--grid-elevation-2: 0px 1px 2px 0px rgba(0, 0, 0, .3), 0px 2px 6px 2px rgba(0, 0, 0, .15)}.incremental-row-container{padding:10px;width:100%;height:100%;min-height:var(--table-min-height, 400px);max-height:none;overflow:auto;position:relative;background-color:var(--grid-surface);border-radius:var(--grid-border-radius);box-shadow:var(--grid-elevation-1);font-family:var(--grid-font-family)}.viewport{overflow-x:auto;overflow-y:auto;background-color:var(--grid-surface);scrollbar-gutter:stable}.viewport.apply-cdk-width{width:calc(var(--table-total-width) + 10px)!important}.pivot-viewport{min-height:var(--table-min-height, 300px);overflow-x:auto;overflow-y:auto;background-color:var(--grid-surface)}.pivot-viewport .cdk-virtual-scroll-content-wrapper{width:auto;height:auto}.table-wrapper{min-width:100%;overflow-x:visible}.incremental-row-container .eru-grid-table,.eru-grid-table{width:100%!important;border-collapse:separate;border-spacing:0;table-layout:fixed!important;background-color:var(--grid-surface);color:var(--grid-on-surface);font-size:var(--grid-font-size-body);line-height:var(--grid-line-height-body)}.eru-grid-table th,.eru-grid-table td{text-align:left;overflow:hidden!important;text-overflow:ellipsis!important;white-space:nowrap!important;background-color:var(--grid-surface);color:var(--grid-on-surface);min-width:0;max-width:100%!important;box-sizing:border-box;position:relative}.eru-grid-table th:hover,.eru-grid-table td:hover{background-color:var(--grid-surface-variant)}.eru-grid-table thead{background-color:var(--grid-surface-container);transform:translateZ(0);will-change:transform;backface-visibility:hidden}.eru-grid-table thead.freeze-header-enabled{box-shadow:0 2px 4px #0000001a;border-bottom:2px solid var(--grid-outline)}.eru-grid-table thead th{background-color:var(--grid-surface-container);color:var(--grid-on-surface);font-weight:500;font-size:var(--grid-font-size-caption)}.checkbox-column{width:50px;min-width:50px;max-width:50px;text-align:center;border:1px solid var(--grid-outline);background-color:var(--grid-surface-container)}.checkbox-column input[type=checkbox]{width:16px;height:16px;cursor:pointer;accent-color:var(--grid-primary);border-radius:var(--grid-border-radius)}.checkbox-column input[type=checkbox]:focus{outline:2px solid var(--grid-primary);outline-offset:2px}.group-header{background-color:var(--grid-surface-container);color:var(--grid-on-surface);font-size:var(--grid-font-size-caption);font-weight:500;border-bottom:1px solid var(--grid-outline);cursor:pointer;transition:background-color .2s ease}.group-header:hover{background-color:var(--grid-surface-container-high)}.group-header .group-title{font-weight:600;color:var(--grid-primary)}.group-header .group-row-count{color:var(--grid-on-surface-variant);font-size:var(--grid-font-size-caption);margin-left:var(--grid-spacing-sm)}.row-item{border:1px solid var(--grid-outline);background-color:var(--grid-surface);transition:background-color .2s ease,box-shadow .2s ease}.row-item:hover{background-color:var(--grid-surface-variant);box-shadow:var(--grid-elevation-1)}.column-header{font-weight:500;text-align:center!important;font-size:var(--grid-font-size-caption, 12px);position:relative;-webkit-user-select:none;user-select:none;background-color:var(--grid-surface-container);color:var(--grid-on-surface)}.column-header:hover{background-color:var(--grid-surface-container-high)}.column-drag-handle{position:absolute;left:0;top:0;bottom:0;width:12px;cursor:grab;opacity:0;transition:opacity .2s ease,background-color .2s ease;z-index:2;display:flex;align-items:center;justify-content:center;border-right:1px solid transparent}.column-drag-handle:after{content:\"\\22ee\\22ee\";font-size:14px;color:var(--grid-on-surface-variant);transform:rotate(90deg)}.column-drag-handle:hover{background-color:var(--grid-surface-container-high);border-right-color:var(--grid-outline)}.column-header:hover .column-drag-handle{opacity:1}.column-drag-handle:active{cursor:grabbing}.dragging{opacity:1;background-color:var(--grid-surface-container);box-shadow:var(--grid-elevation-2)}.drag-over{background-color:var(--grid-surface-container);border-color:var(--grid-primary)}.data-cell{background-color:var(--grid-surface);color:var(--grid-on-surface);font-size:var(--grid-font-size-body)}.cell-content{align-items:center}.cell-content .mdc-text-field{padding:0px var(--grid-spacing-xxs)!important}.cell-display-text{align-items:center;padding:0px var(--grid-spacing-xs)}.ghost-loading-row{background-color:transparent}.ghost-cell-container{padding:var(--grid-spacing-sm)}.ghost-cell{height:20px;width:100%;background-color:var(--grid-surface-container);animation:pulse 1.5s ease-in-out infinite;border-radius:var(--grid-border-radius)}@keyframes pulse{0%,to{opacity:1}50%{opacity:.5}}.resizing{cursor:col-resize;-webkit-user-select:none;user-select:none}.column-resizer{position:absolute;right:0;top:0;bottom:0;width:4px;cursor:col-resize;background-color:transparent;transition:background-color .2s ease}.column-resizer:hover{background-color:var(--grid-primary)}.group-separator{height:var(--grid-spacing-sm);background-color:var(--grid-surface-variant)}.group-separator .separator-cell{background-color:var(--grid-surface-variant);border:none;height:var(--grid-spacing-sm)}.error-state{background-color:var(--grid-error-container);color:var(--grid-error);border-color:var(--grid-error)}.error-message{background-color:var(--grid-error);color:#fff;padding:var(--grid-spacing-sm);border-radius:var(--grid-border-radius);font-size:var(--grid-font-size-caption)}.incremental-row-container .eru-grid-table tbody,.incremental-row-container .eru-grid-table{position:relative}.incremental-row-container .eru-grid-table.show-column-lines{border-right:var(--grid-outline-width, 1px) solid var(--grid-outline, #e0e0e0)!important;border-top:var(--grid-outline-width, 1px) solid var(--grid-outline, #e0e0e0)!important;border-bottom:var(--grid-outline-width, 1px) solid var(--grid-outline, #e0e0e0)!important}.incremental-row-container .eru-grid-table:not(.show-column-lines){border:var(--grid-outline-width, 1px) solid var(--grid-outline, #e0e0e0)!important}.incremental-row-container .eru-grid-table thead:after{content:\"\";position:absolute;bottom:0;left:0;right:0;height:calc(var(--grid-outline-width, 1px) * 2);background-color:var(--grid-outline, #e0e0e0);pointer-events:none;z-index:10}.incremental-row-container .eru-grid-table.show-column-lines thead th{border-left:var(--grid-outline-width, 1px) solid var(--grid-outline, #e0e0e0)!important;border-bottom:var(--grid-outline-width, 1px) solid var(--grid-outline, #e0e0e0)!important}.incremental-row-container .eru-grid-table.show-column-lines tbody td{border-left:var(--grid-outline-width, 1px) solid var(--grid-outline, #e0e0e0)!important}.incremental-row-container .eru-grid-table.show-row-lines thead th{border-left:var(--grid-outline-width, 1px) solid var(--grid-outline, #e0e0e0)!important;border-bottom:var(--grid-outline-width, 1px) solid var(--grid-outline, #e0e0e0)!important}.incremental-row-container .eru-grid-table.show-row-lines tbody td{border-bottom:var(--grid-outline-width, 1px) solid var(--grid-outline, #e0e0e0)!important}@media (max-width: 768px){.incremental-row-container{height:600px}.eru-grid-table th,.eru-grid-table td{font-size:var(--grid-font-size-caption)}.checkbox-column{width:40px;min-width:40px;max-width:40px}}@media (prefers-contrast: high){.eru-grid-table th,.eru-grid-table td{border-width:2px}.row-item:hover{border-width:2px;border-color:var(--grid-primary)}}@media (prefers-reduced-motion: reduce){.row-item,.column-drag-handle,.ghost-cell{transition:none;animation:none}}.pivot-table .nested-header{text-align:center;font-weight:600;background:var(--grid-surface-container)}.pivot-table .nested-header.row-dimension-header{background:var(--grid-surface-container);font-weight:600}.pivot-table .pivot-header-leafcols{padding:0;margin:0;height:0}.pivot-table .pivot-header-level.level-0 .nested-header{font-size:14px;padding:12px 8px}.pivot-table .pivot-header-level.level-1 .nested-header{font-size:13px;padding:10px 6px}.pivot-table .pivot-header-level.level-2 .nested-header{font-size:12px;padding:8px 4px}.pivot-table .nested-header:hover{background:var(--grid-surface-variant);color:var(--grid-primary);transition:all .2s ease}.pivot-table .pivot-cell.aggregated-value{font-weight:500;font-family:Roboto Mono,monospace}.pivot-table .pivot-cell-content{display:flex;justify-content:center;align-items:center;min-height:38px}.pivot-table .rowspan-cell{vertical-align:middle}.pivot-table .rowspan-cell .pivot-cell-content{height:100%}.pivot-mode .incremental-row-container{display:flex;flex-direction:column;height:auto;max-height:85vh;overflow:auto}.pivot-mode .h-shell{position:relative;width:calc(100% - var(--scrollbar-width, 17px))!important;top:0;z-index:1;overflow-x:hidden;overflow-y:hidden;scrollbar-width:none;-ms-overflow-style:none}.pivot-mode .h-shell::-webkit-scrollbar{display:none}.pivot-mode .gt-shell{position:relative;bottom:50px;flex-shrink:0;overflow-x:hidden;overflow-y:hidden;scrollbar-width:none;-ms-overflow-style:none}.pivot-mode .gt-shell::-webkit-scrollbar{display:none}.pivot-mode .gt-shell table{border-bottom:var(--grid-outline-width, 1px) solid var(--grid-outline, #e0e0e0)!important}.pivot-mode .gt-shell.adjust-bottom-vs{bottom:66px!important}.pivot-mode .gt-shell.adjust-bottom:not(.adjust-bottom-vs){bottom:calc(66px - var(--scrollbar-width, 17px))!important}.pivot-mode .header-shell{flex-shrink:0;width:100%;box-sizing:border-box;padding-right:var(--scrollbar-width, 17px);overflow-x:auto;overflow-y:hidden;scrollbar-width:none;-ms-overflow-style:none}.pivot-mode .header-shell::-webkit-scrollbar{display:none}.pivot-mode .header-shell.apply-cdk-width{width:calc(var(--table-total-width) + 10px)!important}.pivot-mode .header-shell .eru-grid-table{margin-bottom:0;width:100%;table-layout:fixed}.pivot-mode .header-shell .eru-grid-table thead{background:var(--grid-surface-container)}.pivot-mode .header-shell .eru-grid-table thead th{background:var(--grid-surface-container);overflow:hidden;text-overflow:ellipsis;white-space:nowrap;width:var(--col-width)!important;min-width:var(--col-width)!important;max-width:var(--col-width)!important}.pivot-mode .header-shell .eru-grid-table thead th.sticky-column{position:sticky;background:var(--grid-surface-container);z-index:111}.pivot-mode .header-shell .eru-grid-table tbody td{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;width:var(--col-width)!important;min-width:var(--col-width)!important;max-width:var(--col-width)!important}.pivot-mode .pivot-container{display:flex;flex-direction:column;height:100%;width:100%;overflow:hidden}.pivot-mode .pivot-table{width:auto!important;min-width:100%!important;table-layout:fixed!important;width:100%!important}.pivot-mode .pivot-table colgroup col{width:var(--col-width)!important;min-width:var(--col-width)!important;max-width:var(--col-width)!important;flex:none!important;flex-shrink:0!important;flex-grow:0!important}.pivot-mode .pivot-table td,.pivot-mode .pivot-table th{box-sizing:border-box!important;flex:none!important;flex-shrink:0!important;flex-grow:0!important;word-wrap:break-word!important;word-break:break-all!important}.pivot-mode .pivot-table *{max-width:var(--col-width)!important;box-sizing:border-box!important}.pivot-mode .pivot-table colgroup{width:100%!important}.pivot-mode .pivot-table colgroup col{width:var(--col-width)!important;min-width:var(--col-width)!important;max-width:var(--col-width)!important;flex-basis:var(--col-width)!important;flex:0 0 var(--col-width)!important}.pivot-mode .pivot-table table{width:100%!important;table-layout:fixed!important;border-collapse:collapse!important;border-spacing:0!important}.pivot-mode .pivot-table[style*=--table-total-width]{width:var(--table-total-width)!important;min-width:var(--table-total-width)!important;max-width:var(--table-total-width)!important}.pivot-mode .pivot-table colgroup col{width:var(--col-width)!important;min-width:var(--col-width)!important;max-width:var(--col-width)!important;flex:0 0 var(--col-width)!important;flex-basis:var(--col-width)!important;flex-grow:0!important;flex-shrink:0!important;overflow:hidden!important}.pivot-mode .pivot-table tbody td,.pivot-mode .pivot-table thead th{width:var(--col-width)!important;min-width:var(--col-width)!important;max-width:var(--col-width)!important;overflow:hidden!important;text-overflow:ellipsis!important;white-space:nowrap!important}.pivot-mode .pivot-table .cell-content,.pivot-mode .pivot-table data-cell{width:100%!important;max-width:100%!important;overflow:hidden!important;text-overflow:ellipsis!important;white-space:nowrap!important;display:block!important}.pivot-mode .pivot-table table{width:var(--table-total-width)!important;min-width:var(--table-total-width)!important;max-width:var(--table-total-width)!important;table-layout:fixed!important;border-collapse:collapse!important;border-spacing:0!important;word-wrap:break-word!important;word-break:break-all!important}.pivot-mode .pivot-tbody tr.pivot-row{min-height:50px!important;height:50px!important}.pivot-mode .pivot-tbody tr.pivot-row:hover{background-color:var(--grid-surface-variant)}.pivot-mode .pivot-tbody tr.pivot-row:nth-child(2n){background-color:#00000005}.pivot-mode .pivot-tbody tr.pivot-row td{min-height:50px!important;height:50px!important;vertical-align:middle;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;width:var(--col-width)!important;min-width:var(--col-width)!important;max-width:var(--col-width)!important}.pivot-mode .pivot-tbody tr.pivot-row td .cell-content{min-height:48px;display:flex;align-items:center;justify-content:center}.pivot-mode .pivot-tbody tr.pivot-row td .cell-content data-cell{width:100%;min-height:46px;display:flex;align-items:center;justify-content:center;overflow:hidden;flex-shrink:0}.pivot-mode .pivot-cell{vertical-align:middle;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;width:var(--col-width)!important;min-width:var(--col-width)!important;max-width:var(--col-width)!important}.pivot-mode .pivot-cell.aggregated-value{font-weight:500;font-family:Roboto Mono,monospace}.pivot-mode .pivot-cell .cell-content{display:flex;justify-content:center;align-items:center;min-height:40px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;flex-shrink:0}.pivot-mode .pivot-table .subtotal-row{background-color:var(--grid-surface-container)!important;font-weight:600}.pivot-mode .pivot-table .subtotal-row td{background-color:var(--grid-surface-container);color:var(--grid-on-surface-variant)}.pivot-mode .pivot-table .subtotal-row td:first-child{color:var(--grid-primary)}.pivot-mode .pivot-table .subtotal-row td.aggregated-value{font-weight:500;color:var(--grid-primary)}.pivot-mode .pivot-table .subtotal-row:hover{background-color:var(--grid-surface-container-high)!important}.pivot-mode .pivot-table .subtotal-row:hover td{background-color:var(--grid-surface-container-high)}.pivot-mode .pivot-table .subtotal-bold td{font-weight:600!important;font-style:normal!important}.pivot-mode .pivot-table .subtotal-bold td.aggregated-value{font-weight:600!important}.pivot-mode .pivot-table .subtotal-italic td{font-style:italic!important}.pivot-mode .pivot-table .subtotal-italic td:first-child{font-weight:600!important}.pivot-mode .pivot-table .subtotal-italic td.aggregated-value{font-style:italic!important;font-weight:500!important}.pivot-mode .pivot-table .subtotal-highlighted{background-color:var(--grid-surface-variant)!important}.pivot-mode .pivot-table .subtotal-highlighted td{background-color:var(--grid-surface-variant)!important;font-weight:700!important;font-style:normal!important;color:var(--grid-primary)!important}.pivot-mode .pivot-table .subtotal-highlighted td.aggregated-value{font-weight:500!important;color:var(--grid-primary)!important}.pivot-mode .pivot-table .subtotal-highlighted:hover,.pivot-mode .pivot-table .subtotal-highlighted:hover td{background-color:var(--grid-surface-container-high)!important}.pivot-mode .pivot-table .grand-total-row{background-color:var(--grid-surface-container-high)!important;font-weight:700;font-size:var(--grid-font-size-body)}.pivot-mode .pivot-table .grand-total-row td{background-color:var(--grid-surface-container-high)!important;color:var(--grid-on-surface)}.pivot-mode .pivot-table .grand-total-row td:first-child{font-style:normal;font-weight:800;color:var(--grid-primary)}.pivot-mode .pivot-table .grand-total-row td.aggregated-value{font-weight:500;color:var(--grid-primary);font-family:Roboto Mono,monospace}.pivot-mode .pivot-table .grand-total-row:hover,.pivot-mode .pivot-table .grand-total-row:hover td{background-color:var(--grid-surface-container-high)!important}.pivot-mode .pivot-table .grand-total-bold td{font-weight:700!important;font-style:normal!important}.pivot-mode .pivot-table .grand-total-bold td.aggregated-value{font-weight:700!important}.pivot-mode .pivot-table .grand-total-italic td,.pivot-mode .pivot-table .grand-total-italic td.aggregated-value{font-style:italic!important;font-weight:500!important}.pivot-mode .pivot-table .grand-total-highlighted{background-color:var(--grid-primary)!important;box-shadow:var(--grid-elevation-2)!important}.pivot-mode .pivot-table .grand-total-highlighted td{background-color:var(--grid-primary)!important;color:var(--grid-on-primary)!important;font-weight:500!important;font-style:normal!important}.pivot-mode .pivot-table .grand-total-highlighted td.aggregated-value{color:var(--grid-on-primary)!important;font-weight:500!important}.pivot-mode .pivot-table .grand-total-highlighted:hover,.pivot-mode .pivot-table .grand-total-highlighted:hover td{background-color:var(--grid-primary)!important}.pivot-mode .pivot-table .collapsible-header{position:relative}.pivot-mode .pivot-table .collapsible-header .header-content{display:flex;align-items:center;justify-content:space-between;gap:var(--grid-spacing-xs);padding:var(--grid-spacing-xs) var(--grid-spacing-sm)}.pivot-mode .pivot-table .collapsible-header .header-label{flex:1;font-weight:600}.pivot-mode .pivot-table .collapsible-header .collapse-toggle-btn{background:none;border:none;cursor:pointer;padding:var(--grid-spacing-xxs);margin:0;display:flex;align-items:center;justify-content:center;width:20px;height:20px;border-radius:var(--grid-border-radius);color:var(--grid-on-surface-variant);transition:all .2s ease;font-size:12px;font-weight:600}.pivot-mode .pivot-table .collapsible-header .collapse-toggle-btn:hover{background-color:var(--grid-surface-container);color:var(--grid-primary);transform:scale(1.1)}.pivot-mode .pivot-table .collapsible-header .collapse-toggle-btn:focus{outline:2px solid var(--grid-primary);outline-offset:1px}.pivot-mode .pivot-table .collapsible-header .collapse-toggle-btn .collapse-icon{display:block;line-height:1;font-family:monospace;font-size:14px}.pivot-mode .pivot-table .collapsible-header.expanded .collapse-toggle-btn .collapse-icon{color:var(--grid-primary)}.pivot-mode .pivot-table .collapsible-header.collapsed{background-color:var(--grid-surface-variant)}.pivot-mode .pivot-table .collapsible-header.collapsed .header-label{font-style:italic;color:var(--grid-on-surface-variant)}.pivot-mode .pivot-table .collapsible-header.collapsed .collapse-toggle-btn .collapse-icon{color:var(--grid-outline)}.pivot-mode .pivot-table .collapsible-header:hover{background-color:var(--grid-surface-container)}.pivot-mode .pivot-table .collapsible-header:hover .header-label{color:var(--grid-on-surface)}.pivot-mode .pivot-table .pivot-single-table{display:flex;flex-direction:column;height:100%;width:100%;overflow:hidden;min-height:var(--table-min-height)!important}.pivot-mode .pivot-table .pivot-single-table .pivot-header-container{flex-shrink:0;background:var(--grid-surface)!important;overflow-x:auto;overflow-y:hidden;min-height:100px!important;height:auto!important}.pivot-mode .pivot-table .pivot-single-table .pivot-header-container .pivot-table{width:auto;min-width:100%;height:auto!important;min-height:100px!important}.pivot-mode .pivot-table .pivot-single-table .pivot-header-container .pivot-table th{background:var(--grid-surface-container)!important;padding:8px 6px!important;white-space:nowrap;min-width:50px;min-height:40px!important;height:auto!important;position:relative;visibility:visible!important;color:var(--grid-on-surface)!important}.pivot-mode .pivot-table .pivot-single-table .pivot-header-container .pivot-table th.sticky-column{position:sticky!important;background:var(--grid-surface-container)!important;border-right:2px solid var(--grid-primary)!important;box-shadow:2px 0 4px #0000001a;z-index:101!important}.pivot-mode .pivot-table .pivot-single-table .pivot-data-container{flex:1;overflow:auto;min-height:300px!important;height:auto!important}.pivot-mode .pivot-table .pivot-single-table .pivot-data-container .pivot-viewport{height:100%!important;width:100%!important;overflow-x:auto!important;overflow-y:auto!important}.pivot-mode .pivot-table .pivot-single-table .pivot-data-container .pivot-table,.pivot-mode .pivot-table .pivot-single-table .pivot-data-container .pivot-data-table{width:auto;min-width:100%;height:auto!important}.pivot-mode .pivot-table .pivot-single-table .pivot-data-container .pivot-table td,.pivot-mode .pivot-table .pivot-single-table .pivot-data-container .pivot-data-table td{padding:8px 6px!important;white-space:nowrap;min-width:50px;min-height:32px!important;height:auto!important;background:var(--grid-surface)!important;color:var(--grid-on-surface)!important;visibility:visible!important}.pivot-mode .pivot-table .pivot-single-table .pivot-data-container .pivot-table td.sticky-column,.pivot-mode .pivot-table .pivot-single-table .pivot-data-container .pivot-data-table td.sticky-column{position:sticky!important;background:var(--grid-surface-container)!important;border-right:2px solid var(--grid-primary)!important;box-shadow:2px 0 4px #0000001a;z-index:100!important}.pivot-mode .pivot-table .pivot-single-table .pivot-data-container .pivot-table tbody tr,.pivot-mode .pivot-table .pivot-single-table .pivot-data-container .pivot-data-table tbody tr{height:auto!important;min-height:50px!important}.pivot-mode .pivot-table .pivot-single-table .pivot-data-container .pivot-table tbody tr.pivot-row,.pivot-mode .pivot-table .pivot-single-table .pivot-data-container .pivot-data-table tbody tr.pivot-row{visibility:visible!important;display:table-row!important}.pivot-mode .pivot-table .collapsed-column-group{background-color:var(--grid-surface-container);border-left:3px solid var(--grid-primary)}.pivot-mode .pivot-table .collapsed-column-group:hover{background-color:var(--grid-surface-container-high)}.pivot-row.subtotal-row{background-color:var(--grid-surface-variant);font-weight:500}.pivot-row.subtotal-row.subtotal-bold{font-weight:500}.pivot-row.subtotal-row.subtotal-italic{font-style:italic}.pivot-row.subtotal-row.subtotal-highlighted{background-color:var(--grid-primary);color:var(--grid-on-primary)}.pivot-row.grand-total-row{background-color:var(--grid-surface-container);font-weight:600}.pivot-row.grand-total-row.grand-total-bold{font-weight:800}.pivot-row.grand-total-row.grand-total-italic{font-style:italic}.pivot-row.grand-total-row.grand-total-highlighted{background-color:var(--grid-primary);color:var(--grid-on-primary)}.pivot-row.first-visible-row{background-color:#6750a41a!important;position:relative}.pivot-row.first-visible-row:before{content:\"\\1f441\\fe0f First Visible\";position:absolute;top:-20px;left:0;background:var(--grid-primary);color:var(--grid-on-primary);padding:2px 6px;font-size:10px;border-radius:2px;z-index:1000}.header-wrap-text{white-space:pre-wrap;word-break:auto-phrase}\n"], dependencies: [{ kind: "component", type: DataCellComponent, selector: "data-cell", inputs: ["fieldSize", "columnDatatype", "columnName", "column", "value", "id", "frozenGrandTotalCell", "td", "drillable", "mode", "isEditable"], outputs: ["tdChange"] }, { kind: "ngmodule", type: ScrollingModule }, { kind: "directive", type: i1$2.ɵɵCdkFixedSizeVirtualScroll, selector: "cdk-virtual-scroll-viewport[itemSize]", inputs: ["itemSize", "minBufferPx", "maxBufferPx"] }, { kind: "directive", type: i1$2.ɵɵCdkVirtualForOf, selector: "[cdkVirtualFor][cdkVirtualForOf]", inputs: ["cdkVirtualForOf", "cdkVirtualForTrackBy", "cdkVirtualForTemplate", "cdkVirtualForTemplateCacheSize"] }, { kind: "component", type: i1$2.ɵɵCdkVirtualScrollViewport, selector: "cdk-virtual-scroll-viewport", inputs: ["orientation", "appendOnly"], outputs: ["scrolledIndexChange"] }, { kind: "ngmodule", type: CommonModule }, { kind: "directive", type: i2$1.NgForOf, selector: "[ngFor][ngForOf]", inputs: ["ngForOf", "ngForTrackBy", "ngForTemplate"] }, { kind: "directive", type: i2$1.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "directive", type: i2$1.NgTemplateOutlet, selector: "[ngTemplateOutlet]", inputs: ["ngTemplateOutletContext", "ngTemplateOutlet", "ngTemplateOutletInjector"] }, { kind: "ngmodule", type: MatTooltipModule }, { kind: "directive", type: i3$1.MatTooltip, selector: "[matTooltip]", inputs: ["matTooltipPosition", "matTooltipPositionAtOrigin", "matTooltipDisabled", "matTooltipShowDelay", "matTooltipHideDelay", "matTooltipTouchGestures", "matTooltip", "matTooltipClass"], exportAs: ["matTooltip"] }, { kind: "directive", type: ResizeColumnDirective, selector: "[resizeColumn]", inputs: ["resizeColumn", "index", "columnConfig", "gridConfig"] }, { kind: "directive", type: ColumnDragDirective, selector: "[columnDraggable]", inputs: ["columnDraggable"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush, encapsulation: i0.ViewEncapsulation.None });
|
|
4686
5242
|
}
|
|
4687
5243
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.1.3", ngImport: i0, type: EruGridComponent, decorators: [{
|
|
4688
5244
|
type: Component,
|
|
@@ -4693,7 +5249,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.1.3", ngImpor
|
|
|
4693
5249
|
MatTooltipModule,
|
|
4694
5250
|
ResizeColumnDirective,
|
|
4695
5251
|
ColumnDragDirective
|
|
4696
|
-
], template: "<!-- <div style=\"background: #f0f0f0; font-size: 12px; border-bottom: 1px solid #ccc;\">\n currentPivotScrollIndex {{currentPivotScrollIndex()}} | \n firstDataRowIndex {{firstDataRowIndex()}} | \n firstTr {{firstTr}} |\n maxDepth {{maxDepth()}}\n</div> -->\n<div class=\"incremental-row-container eru-grid\" #rowContainer \n [class.pivot-mode]=\"gridStore.isPivotMode()\"\n [class.table-mode]=\"!gridStore.isPivotMode()\">\n \n <!-- Pivot Mode Template -->\n @if (gridStore.isPivotMode()) {\n <ng-container >\n <div class=\"pivot-container\" style=\"display: flex; flex-direction: column; height: 100%;\"\n [style]=\"'--table-min-height: ' + getInitialMinHeightPx() + 'px; --table-total-width: ' + getInitialTotalWidth() + 'px'\">\n <!-- Debug info for first visible row -->\n \n \n <div class=\"pivot-single-table\" style=\"height: 100%; width: 100%; overflow: hidden; display: flex; flex-direction: column;\">\n @if (freezeHeader()) {\n <div #headerScroller class=\"header-shell\">\n <table class=\"eru-grid-table pivot-table\" \n [style]=\"'width: auto; min-width: 100%; --table-total-width: ' + getInitialTotalWidth() + 'px'\"\n [class.show-column-lines]=\"showColumnLines()\" \n [class.show-row-lines]=\"showRowLines()\">\n <!-- Column Groups for consistent width -->\n <ng-container *ngTemplateOutlet=\"pivotColGroup\"></ng-container>\n \n <ng-container *ngTemplateOutlet=\"pivotTableHead\"></ng-container>\n @if(grandTotalPosition() === 'before' && freezeGrandTotal()) {\n <ng-container *ngTemplateOutlet=\"pivotGrandTotal\"></ng-container>\n }\n </table> \n </div>\n } \n <!-- Virtual Scrolled Table Body -->\n <div>\n <cdk-virtual-scroll-viewport\n #vp\n [itemSize]=\"50\"\n class=\"viewport pivot-viewport\"\n [class.apply-cdk-width]=\"applyCdkWidth()\"\n (scrolledIndexChange)=\"onPivotScroll($event)\"\n (scroll)=\"onBodyScroll($event)\"\n style=\"overflow: auto;\">\n <table class=\"eru-grid-table pivot-table\" \n [style]=\"'width: auto; min-width: 100%; --table-total-width: ' + getInitialTotalWidth() + 'px'\"\n [class.show-column-lines]=\"showColumnLines()\" \n [class.show-row-lines]=\"showRowLines()\"\n >\n <!-- Column Groups for consistent width -->\n <ng-container *ngTemplateOutlet=\"pivotColGroup\"></ng-container>\n \n @if (!freezeHeader()) {\n <ng-container *ngTemplateOutlet=\"pivotTableHead\"></ng-container> \n }\n <!-- Table Body with Virtual Scrolling -->\n <tbody class=\"pivot-tbody\">\n \n <tr *cdkVirtualFor=\"let pivotRow of gridStore.pivotDisplayData(); \n trackBy: trackByPivotRowFn; \n let i = index\"\n class=\"pivot-row\"\n [class.subtotal-row]=\"pivotRow._isSubtotal\"\n [class.grand-total-row]=\"pivotRow._isGrandTotal\"\n [class.subtotal-bold]=\"pivotRow._isSubtotal && subTotalStyle() === 'bold'\"\n [class.subtotal-italic]=\"pivotRow._isSubtotal && subTotalStyle() === 'italic'\"\n [class.subtotal-highlighted]=\"pivotRow._isSubtotal && subTotalStyle() === 'highlighted'\"\n [class.grand-total-bold]=\"pivotRow._isGrandTotal && grandTotalStyle() === 'bold'\"\n [class.grand-total-italic]=\"pivotRow._isGrandTotal && grandTotalStyle() === 'italic'\"\n [class.grand-total-highlighted]=\"pivotRow._isGrandTotal && grandTotalStyle() === 'highlighted'\"\n [style.height.px]=\"50\"\n [attr.data-pivot-row]=\"i\">\n @if ((!pivotRow._isGrandTotal && freezeGrandTotal() ) || (!freezeGrandTotal() )) { \n @for (column of getLeafColumns(); track trackByColumnFn($index, column); let colIndex = $index) {\n @if (!shouldSkipCell(i, column.name)) {\n <td\n [attr.rowspan]=\"getEffectiveRowspan(i, column.name)\"\n [style.width.px]=\"column.field_size\"\n [style.minWidth.px]=\"column.field_size\"\n class=\"pivot-cell\"\n [class.row-dimension-cell]=\"isRowDimensionColumn(column.name)\"\n [class.column-dimension-cell]=\"!isRowDimensionColumn(column.name)\"\n [class.aggregated-value]=\"!isRowDimensionColumn(column.name) && column.datatype === 'number'\"\n [class.rowspan-cell]=\"getEffectiveRowspan(i, column.name) || 1 > 1\"\n [class.sticky-column]=\"isStickyColumn(column.name, colIndex)\"\n [style.position]=\"isStickyColumn(column.name, colIndex) ? 'sticky' : 'static'\"\n [style.left.px]=\"getStickyColumnLeft(column.name, colIndex)\"\n [style.z-index]=\"isStickyColumn(column.name, colIndex) ? 99 : 1\"\n [style.height.px]=\"50\"\n [attr.xx]=\"i\"> \n <div class=\"cell-content pivot-cell-content\">\n <data-cell\n [class.aggregation]=\"!!column.aggregationFunction\"\n [fieldSize]=\"column.field_size\"\n [columnDatatype]=\"column.datatype\"\n [columnName]=\"column.name\"\n [value]=\"getEffectiveCellValue(i,column.name, pivotRow)\"\n [column]=\"column\"\n [drillable]=\"column.enableDrilldown || false\"\n [mode]=\"mode()\"\n [isEditable]=\"isEditable()\"\n [id]=\"'pivot_' + i + '_' + column.name\">\n </data-cell>\n </div>\n </td>\n }\n }\n }\n </tr> \n </tbody>\n </table>\n </cdk-virtual-scroll-viewport>\n\n </div>\n @if (freezeGrandTotal() && grandTotalPosition() === 'after') {\n <div #gtScroller class=\"header-shell gt-shell\"\n [class.adjust-bottom]=\"!applyCdkWidth()\"\n [class.adjust-bottom-vs]=\"!adjustScrollWidth()\">\n <table class=\"eru-grid-table pivot-table\" \n [style]=\"'width: auto; min-width: 100%; --table-total-width: ' + getInitialTotalWidth() + 'px'\"\n [class.show-column-lines]=\"showColumnLines()\" \n [class.show-row-lines]=\"showRowLines()\">\n <ng-container *ngTemplateOutlet=\"pivotColGroup\"></ng-container>\n \n <ng-container *ngTemplateOutlet=\"pivotGrandTotal\"></ng-container>\n \n </table> \n </div>\n }\n \n\n </div>\n </div>\n </ng-container>\n} @else {\n \n<!-- Table Mode Template -->\n <ng-container>\n <cdk-virtual-scroll-viewport\n [itemSize]=\"50\"\n class=\"viewport table-viewport\"\n (scrolledIndexChange)=\"onScroll($event)\"\n >\n <div class=\"table-wrapper\">\n <table class=\"eru-grid-table\" [class.show-column-lines]=\"showColumnLines()\" [class.show-column-lines]=\"showColumnLines()\">\n <thead>\n <tr style=\"visibility:hidden;\">\n <th class=\"checkbox-column\"></th>\n <th *ngFor=\"let column of columns(); trackBy: trackByColumnFn\"\n [style.width.px]=\"column.field_size\"\n [style.minWidth.px]=\"column.field_size\"\n class=\"column-header\">\n {{column.label}}\n </th>\n </tr>\n </thead>\n <tbody *ngIf=\"columns() as columnsList\">\n <ng-container *cdkVirtualFor=\"let groupItem of groupedRows();\n trackBy: trackByGroupItemFn;\n let i = index;\n let first=first\">\n <tr\n *ngIf=\"groupItem.type === 'header'\"\n class=\"group-header\"\n (click)=\"toggleGroupExpansion(groupItem.group?.id || '')\"\n >\n <td class=\"checkbox-column\" style=\"border: none;\">\n {{ groupItem.group?.isExpanded ? '\u25BC' : '\u25B6' }}\n </td>\n <td [attr.colspan]=\"2\" style=\"border: none;\">\n <span class=\"group-title\">\n {{ groupItem.group?.title }}\n </span>\n <span class=\"group-row-count\">\n ({{ groupItem.group?.currentLoadedRows || 0 }}/{{ groupItem.group?.totalRowCount || 0 }})\n </span>\n </td>\n </tr>\n <tr *ngIf=\"groupItem.type === 'table-header'\" style=\"background:#fafafa\">\n <th class=\"checkbox-column\" style=\"text-align: center;\">\n <input\n type=\"checkbox\"\n [checked]=\"isGroupSelected(groupItem.group?.id || '')\"\n (click)=\"$event.stopPropagation()\"\n (change)=\"toggleGroupSelection($event, groupItem.group?.id || '')\"\n >\n </th>\n <th *ngFor=\"let column of columns(); trackBy: trackByColumnFn;let i =index\"\n style=\"text-align: center;\"\n [style.width.px]=\"column.field_size\"\n [style.minWidth.px]=\"column.field_size\"\n [resizeColumn]=\"true\"\n [columnConfig]=\"column\"\n [columnDraggable]=\"i\"\n class=\"column-header\">\n <div class=\"column-drag-handle\"></div>\n {{column.label}} {{column.symbol}}\n </th>\n </tr>\n <tr\n *ngIf=\"groupItem.type === 'row' && groupItem.group?.isExpanded\"\n class=\"row-item\"\n [attr.data-row-id]=\"groupItem.row?.entity_id\"\n [style.height.px]=\"30\"\n [style.minHeight.px]=\"30\"\n [style.maxHeight.px]=\"30\"\n >\n <td class=\"checkbox-column\" style=\"text-align: center;\">\n <input\n type=\"checkbox\"\n [checked]=\"isRowSelected(groupItem.row?.entity_id)\"\n (change)=\"toggleRowSelection($event, groupItem.row)\"\n >\n </td>\n <td #cell *ngFor=\"let column of columns(); trackBy: trackByColumnFn\"\n [style.width.px]=\"column.field_size\"\n [style.minWidth.px]=\"column.field_size\"\n class=\"data-cell\"\n [style.height.px]=\"30\"\n [style.minHeight.px]=\"30\"\n [style.maxHeight.px]=\"30\"\n [matTooltipClass]=\"'error-message'\"\n [matTooltip]=\"datacell.error()?'Error: ' + datacell.error():''\"\n matTooltipPosition=\"below\"\n >\n <div class=\"cell-content\">\n <data-cell\n #datacell \n [td]=cell\n [fieldSize]=\"column.field_size\"\n [columnDatatype]=\"column.datatype\"\n [columnName]=\"column.name\"\n [value]=\"groupItem.row?.[column.name] || ''\"\n [column]=\"column\"\n [mode]=\"mode()\"\n [isEditable]=\"isEditable()\"\n [drillable]=\"column.enableDrilldown || false\"\n [id]=\"groupItem.row?.['entity_id'] || '_' ||column.name\"\n ></data-cell>\n </div>\n </td>\n </tr>\n\n <tr\n *ngIf=\"groupItem.type === 'ghost-loading' && groupItem.group?.isExpanded\"\n class=\"ghost-loading-row\"\n [style.height.px]=\"30\"\n [style.minHeight.px]=\"30\"\n [style.maxHeight.px]=\"30\"\n >\n <td class=\"checkbox-column\"></td>\n <td *ngFor=\"let column of columns(); trackBy: trackByColumnFn\"\n [style.width.px]=\"column.field_size\"\n [style.minWidth.px]=\"column.field_size\"\n class=\"ghost-cell-container\"\n >\n <div class=\"ghost-cell\"></div>\n </td>\n </tr>\n\n <tr\n *ngIf=\"groupItem.type === 'row-place-holder'\"\n class=\"group-separator\"\n >\n <td [attr.colspan]=\"columns().length + 1\" class=\"separator-cell\"></td>\n </tr>\n </ng-container>\n </tbody>\n </table>\n </div>\n </cdk-virtual-scroll-viewport>\n </ng-container> \n}\n</div>\n\n <!-- Pivot Table Header Template -->\n <ng-template #pivotTableHead>\n <thead>\n @if (hasNestedHeaders()) {\n <ng-container >\n @for (headerRow of getHeaderRows(); track headerRow; let rowIndex = $index) {\n <tr class=\"pivot-header pivot-header-container\" \n [class.pivot-header-level]=\"'level-' + rowIndex\">\n @for (header of headerRow; track trackByHeaderFn($index, header); let colIndex = $index) {\n <th\n [attr.colspan]=\"header.colspan\"\n [attr.rowspan]=\"header.rowspan\"\n [resizeColumn]=\"gridStore.isFeatureEnabled('columnResizable') && header.level === 0\"\n class=\"column-header pivot-column-header nested-header\"\n [class.row-dimension-header]=\"isRowDimensionHeader(header)\"\n [class.column-dimension-header]=\"!isRowDimensionHeader(header)\"\n [class.expanded]=\"header.isExpanded\"\n [class.collapsed]=\"!header.isExpanded\"\n [class.sticky-column]=\"isStickyColumn(header.name, colIndex)\"\n [style.position]=\"isStickyColumn(header.name, colIndex) ? 'sticky' : 'static'\"\n [style.left.px]=\"getStickyColumnLeft(header.name, colIndex)\"\n [style.z-index]=\"isStickyColumn(header.name, colIndex) ? 100 : 1\"\n style=\"min-height: 40px; height: auto; padding: 8px 6px;\">\n <div class=\"header-content\">\n <span class=\"header-label\">{{header.label}}</span>\n <!-- <button *ngIf=\"!isRowDimensionHeader(header)\" \n class=\"collapse-toggle-btn\"\n [title]=\"header.isExpanded ? 'Collapse group' : 'Expand group'\"\n (click)=\"toggleColumnGroup(header.groupKey)\"\n type=\"button\">\n <span class=\"collapse-icon\">+</span>\n </button> -->\n </div>\n </th>\n }\n </tr>\n }\n </ng-container>\n } @else {\n <!-- Simple header fallback -->\n <ng-container>\n <tr class=\"pivot-header\" [class.freeze-header-enabled]=\"freezeHeader()\">\n @for (column of getLeafColumns(); track trackByColumnFn($index, column); let colIndex = $index) {\n <th [style.width.px]=\"column.field_size\"\n [style.minWidth.px]=\"column.field_size\"\n [resizeColumn]=\"gridStore.isFeatureEnabled('columnResizable')\"\n [columnConfig]=\"column\"\n class=\"column-header pivot-column-header\"\n [class.sticky-column]=\"isStickyColumn(column.name, colIndex)\"\n [style.position]=\"isStickyColumn(column.name, colIndex) ? 'sticky' : 'static'\"\n [style.left.px]=\"getStickyColumnLeft(column.name, colIndex)\"\n [style.z-index]=\"isStickyColumn(column.name, colIndex) ? 100 : 1\"\n style = \"min-height: 40px;height: auto;padding: 8px 6px;position: relative;left: 0px;z-index: 1\">\n {{column.label}}\n </th>\n }\n </tr>\n </ng-container>\n }\n \n </thead>\n</ng-template>\n\n<!-- Column Group Template for consistent column widths -->\n<ng-template #pivotColGroup>\n <colgroup>\n @for (column of getLeafColumns(); track trackByColumnFn($index, column)) {\n <col [style]=\"'width: ' + column.field_size + 'px !important; min-width: ' + column.field_size + 'px !important; max-width: ' + column.field_size + 'px !important; --col-width: ' + column.field_size + 'px'\">\n }\n </colgroup>\n</ng-template>\n\n<ng-template #pivotGrandTotal>\n<tbody class=\"pivot-tbody\">\n @for (pivotRow of gridStore.pivotGrandTotalData(); track trackByPivotRowFn($index, pivotRow); let i = $index) {\n <tr \n class=\"pivot-row grand-total-row\"\n [class.grand-total-bold]=\"pivotRow._isGrandTotal && grandTotalStyle() === 'bold'\"\n [class.grand-total-italic]=\"pivotRow._isGrandTotal && grandTotalStyle() === 'italic'\"\n [class.grand-total-highlighted]=\"pivotRow._isGrandTotal && grandTotalStyle() === 'highlighted'\"\n [style.height.px]=\"50\"\n [attr.data-pivot-row]=\"i\">\n <!-- <td colspan=\"20\">{{pivotRow | json}}</td> -->\n @for (column of getLeafColumns(); track trackByColumnFn($index, column); let colIndex = $index) {\n <td\n [attr.rowspan]=\"getEffectiveRowspan(i, column.name)\" \n [style.width.px]=\"column.field_size\"\n [style.minWidth.px]=\"column.field_size\"\n class=\"pivot-cell\"\n [class.row-dimension-cell]=\"isRowDimensionColumn(column.name)\"\n [class.column-dimension-cell]=\"!isRowDimensionColumn(column.name)\"\n [class.aggregated-value]=\"!isRowDimensionColumn(column.name) && column.datatype === 'number'\"\n [class.rowspan-cell]=\"getEffectiveRowspan(i, column.name) || 1 > 1\"\n [class.sticky-column]=\"isStickyColumn(column.name, colIndex)\"\n [style.position]=\"isStickyColumn(column.name, colIndex) ? 'sticky' : 'static'\"\n [style.left.px]=\"getStickyColumnLeft(column.name, colIndex)\"\n [style.z-index]=\"isStickyColumn(column.name, colIndex) ? 99 : 1\"\n [style.height.px]=\"50\"\n [attr.xx]=\"i\"> \n <div class=\"cell-content pivot-cell-content\">\n <data-cell\n [fieldSize]=\"column.field_size\"\n [columnDatatype]=\"column.datatype\"\n [columnName]=\"column.name\"\n [value]=\"getEffectiveCellValue(i,column.name, pivotRow)\"\n [column]=\"column\"\n [frozenGrandTotalCell]=\"true\"\n [drillable]=\"column.enableDrilldown || false\"\n [mode]=\"mode()\"\n [isEditable]=\"isEditable()\"\n [id]=\"'pivot_' + i + '_' + column.name\">\n </data-cell>\n </div>\n </td>\n }\n </tr>\n}\n</tbody>\n</ng-template>\n", styles: ["@charset \"UTF-8\";:host{display:block;width:100%;height:100%;font-family:var(--grid-font-family);--grid-primary: #6750a4;--grid-on-primary: #ffffff;--grid-surface: #fef7ff;--grid-surface-variant: #e7e0ec;--grid-surface-container: #f3edf7;--grid-surface-container-high: #ede7f0;--grid-on-surface: #1d1b20;--grid-on-surface-variant: #49454f;--grid-outline: #79757f;--grid-outline-variant: #cac4d0;--grid-error: #ba1a1a;--grid-error-container: #ffdad6;--grid-font-family: \"Poppins\", \"Roboto\", -apple-system, BlinkMacSystemFont, \"Segoe UI\", sans-serif;--grid-font-size-body: 12px;--grid-font-size-caption: 12px !important;--grid-line-height-body: 1;--grid-aggregation-text-align: right;--grid-number-text-align: right;--grid-spacing-xxs: 2px;--grid-spacing-xs: 4px;--grid-spacing-sm: 8px;--grid-spacing-md: 16px;--grid-spacing-lg: 24px;--grid-border-radius: 4px;--grid-elevation-1: 0px 1px 2px 0px rgba(0, 0, 0, .3), 0px 1px 3px 1px rgba(0, 0, 0, .15);--grid-elevation-2: 0px 1px 2px 0px rgba(0, 0, 0, .3), 0px 2px 6px 2px rgba(0, 0, 0, .15)}.incremental-row-container{padding:10px;width:100%;height:100%;min-height:var(--table-min-height, 400px);max-height:none;overflow:auto;position:relative;background-color:var(--grid-surface);border-radius:var(--grid-border-radius);box-shadow:var(--grid-elevation-1);font-family:var(--grid-font-family)}.viewport{overflow-x:auto;overflow-y:auto;background-color:var(--grid-surface);scrollbar-gutter:stable}.viewport.apply-cdk-width{width:calc(var(--table-total-width) + 10px)!important}.pivot-viewport{min-height:var(--table-min-height, 300px);overflow-x:auto;overflow-y:auto;background-color:var(--grid-surface)}.pivot-viewport .cdk-virtual-scroll-content-wrapper{width:auto;height:auto}.table-wrapper{min-width:100%;overflow-x:visible}.incremental-row-container .eru-grid-table,.eru-grid-table{width:100%!important;border-collapse:separate;border-spacing:0;table-layout:fixed!important;background-color:var(--grid-surface);color:var(--grid-on-surface);font-size:var(--grid-font-size-body);line-height:var(--grid-line-height-body)}.eru-grid-table th,.eru-grid-table td{text-align:left;overflow:hidden!important;text-overflow:ellipsis!important;white-space:nowrap!important;background-color:var(--grid-surface);color:var(--grid-on-surface);min-width:0;max-width:100%!important;box-sizing:border-box;position:relative}.eru-grid-table th:hover,.eru-grid-table td:hover{background-color:var(--grid-surface-variant)}.eru-grid-table thead{background-color:var(--grid-surface-container);transform:translateZ(0);will-change:transform;backface-visibility:hidden}.eru-grid-table thead.freeze-header-enabled{box-shadow:0 2px 4px #0000001a;border-bottom:2px solid var(--grid-outline)}.eru-grid-table thead th{background-color:var(--grid-surface-container);color:var(--grid-on-surface);font-weight:500;font-size:var(--grid-font-size-caption)}.checkbox-column{width:50px;min-width:50px;max-width:50px;text-align:center;border:1px solid var(--grid-outline);background-color:var(--grid-surface-container)}.checkbox-column input[type=checkbox]{width:16px;height:16px;cursor:pointer;accent-color:var(--grid-primary);border-radius:var(--grid-border-radius)}.checkbox-column input[type=checkbox]:focus{outline:2px solid var(--grid-primary);outline-offset:2px}.group-header{background-color:var(--grid-surface-container);color:var(--grid-on-surface);font-size:var(--grid-font-size-caption);font-weight:500;border-bottom:1px solid var(--grid-outline);cursor:pointer;transition:background-color .2s ease}.group-header:hover{background-color:var(--grid-surface-container-high)}.group-header .group-title{font-weight:600;color:var(--grid-primary)}.group-header .group-row-count{color:var(--grid-on-surface-variant);font-size:var(--grid-font-size-caption);margin-left:var(--grid-spacing-sm)}.row-item{border:1px solid var(--grid-outline);background-color:var(--grid-surface);transition:background-color .2s ease,box-shadow .2s ease}.row-item:hover{background-color:var(--grid-surface-variant);box-shadow:var(--grid-elevation-1)}.column-header{font-weight:500;text-align:center!important;font-size:var(--grid-font-size-caption, 12px);position:relative;-webkit-user-select:none;user-select:none;background-color:var(--grid-surface-container);color:var(--grid-on-surface)}.column-header:hover{background-color:var(--grid-surface-container-high)}.column-drag-handle{position:absolute;left:0;top:0;bottom:0;width:12px;cursor:grab;opacity:0;transition:opacity .2s ease,background-color .2s ease;z-index:2;display:flex;align-items:center;justify-content:center;border-right:1px solid transparent}.column-drag-handle:after{content:\"\\22ee\\22ee\";font-size:14px;color:var(--grid-on-surface-variant);transform:rotate(90deg)}.column-drag-handle:hover{background-color:var(--grid-surface-container-high);border-right-color:var(--grid-outline)}.column-header:hover .column-drag-handle{opacity:1}.column-drag-handle:active{cursor:grabbing}.dragging{opacity:1;background-color:var(--grid-surface-container);box-shadow:var(--grid-elevation-2)}.drag-over{background-color:var(--grid-surface-container);border-color:var(--grid-primary)}.data-cell{background-color:var(--grid-surface);color:var(--grid-on-surface);font-size:var(--grid-font-size-body)}.cell-content{align-items:center}.cell-content .mdc-text-field{padding:0px var(--grid-spacing-xxs)!important}.cell-display-text{align-items:center;padding:0px var(--grid-spacing-xs)}.ghost-loading-row{background-color:transparent}.ghost-cell-container{padding:var(--grid-spacing-sm)}.ghost-cell{height:20px;width:100%;background-color:var(--grid-surface-container);animation:pulse 1.5s ease-in-out infinite;border-radius:var(--grid-border-radius)}@keyframes pulse{0%,to{opacity:1}50%{opacity:.5}}.resizing{cursor:col-resize;-webkit-user-select:none;user-select:none}.column-resizer{position:absolute;right:0;top:0;bottom:0;width:4px;cursor:col-resize;background-color:transparent;transition:background-color .2s ease}.column-resizer:hover{background-color:var(--grid-primary)}.group-separator{height:var(--grid-spacing-sm);background-color:var(--grid-surface-variant)}.group-separator .separator-cell{background-color:var(--grid-surface-variant);border:none;height:var(--grid-spacing-sm)}.error-state{background-color:var(--grid-error-container);color:var(--grid-error);border-color:var(--grid-error)}.error-message{background-color:var(--grid-error);color:#fff;padding:var(--grid-spacing-sm);border-radius:var(--grid-border-radius);font-size:var(--grid-font-size-caption)}.incremental-row-container .eru-grid-table tbody,.incremental-row-container .eru-grid-table{position:relative}.incremental-row-container .eru-grid-table.show-column-lines{border-right:var(--grid-outline-width, 1px) solid var(--grid-outline, #e0e0e0)!important;border-top:var(--grid-outline-width, 1px) solid var(--grid-outline, #e0e0e0)!important;border-bottom:var(--grid-outline-width, 1px) solid var(--grid-outline, #e0e0e0)!important}.incremental-row-container .eru-grid-table:not(.show-column-lines){border:var(--grid-outline-width, 1px) solid var(--grid-outline, #e0e0e0)!important}.incremental-row-container .eru-grid-table thead:after{content:\"\";position:absolute;bottom:0;left:0;right:0;height:calc(var(--grid-outline-width, 1px) * 2);background-color:var(--grid-outline, #e0e0e0);pointer-events:none;z-index:10}.incremental-row-container .eru-grid-table.show-column-lines thead th{border-left:var(--grid-outline-width, 1px) solid var(--grid-outline, #e0e0e0)!important;border-bottom:var(--grid-outline-width, 1px) solid var(--grid-outline, #e0e0e0)!important}.incremental-row-container .eru-grid-table.show-column-lines tbody td{border-left:var(--grid-outline-width, 1px) solid var(--grid-outline, #e0e0e0)!important}.incremental-row-container .eru-grid-table.show-row-lines thead th{border-left:var(--grid-outline-width, 1px) solid var(--grid-outline, #e0e0e0)!important;border-bottom:var(--grid-outline-width, 1px) solid var(--grid-outline, #e0e0e0)!important}.incremental-row-container .eru-grid-table.show-row-lines tbody td{border-bottom:var(--grid-outline-width, 1px) solid var(--grid-outline, #e0e0e0)!important}@media (max-width: 768px){.incremental-row-container{height:600px}.eru-grid-table th,.eru-grid-table td{font-size:var(--grid-font-size-caption)}.checkbox-column{width:40px;min-width:40px;max-width:40px}}@media (prefers-contrast: high){.eru-grid-table th,.eru-grid-table td{border-width:2px}.row-item:hover{border-width:2px;border-color:var(--grid-primary)}}@media (prefers-reduced-motion: reduce){.row-item,.column-drag-handle,.ghost-cell{transition:none;animation:none}}.pivot-table .nested-header{text-align:center;font-weight:600;background:var(--grid-surface-container)}.pivot-table .nested-header.row-dimension-header{background:var(--grid-surface-container);font-weight:600}.pivot-table .pivot-header-leafcols{padding:0;margin:0;height:0}.pivot-table .pivot-header-level.level-0 .nested-header{font-size:14px;padding:12px 8px}.pivot-table .pivot-header-level.level-1 .nested-header{font-size:13px;padding:10px 6px}.pivot-table .pivot-header-level.level-2 .nested-header{font-size:12px;padding:8px 4px}.pivot-table .nested-header:hover{background:var(--grid-surface-variant);color:var(--grid-primary);transition:all .2s ease}.pivot-table .pivot-cell.aggregated-value{font-weight:500;font-family:Roboto Mono,monospace}.pivot-table .pivot-cell-content{display:flex;justify-content:center;align-items:center;min-height:38px}.pivot-table .rowspan-cell{vertical-align:middle}.pivot-table .rowspan-cell .pivot-cell-content{height:100%}.pivot-mode .incremental-row-container{display:flex;flex-direction:column;height:auto;max-height:85vh;overflow:auto}.pivot-mode .h-shell{position:relative;width:calc(100% - var(--scrollbar-width, 17px))!important;top:0;z-index:1;overflow-x:hidden;overflow-y:hidden;scrollbar-width:none;-ms-overflow-style:none}.pivot-mode .h-shell::-webkit-scrollbar{display:none}.pivot-mode .gt-shell{position:relative;bottom:50px;flex-shrink:0;overflow-x:hidden;overflow-y:hidden;scrollbar-width:none;-ms-overflow-style:none}.pivot-mode .gt-shell::-webkit-scrollbar{display:none}.pivot-mode .gt-shell table{border-bottom:var(--grid-outline-width, 1px) solid var(--grid-outline, #e0e0e0)!important}.pivot-mode .gt-shell.adjust-bottom-vs{bottom:58px!important}.pivot-mode .gt-shell.adjust-bottom:not(.adjust-bottom-vs){bottom:calc(66px - var(--scrollbar-width, 17px))!important}.pivot-mode .header-shell{flex-shrink:0;width:100%;box-sizing:border-box;padding-right:var(--scrollbar-width, 17px);overflow-x:auto;overflow-y:hidden;scrollbar-width:none;-ms-overflow-style:none}.pivot-mode .header-shell::-webkit-scrollbar{display:none}.pivot-mode .header-shell.apply-cdk-width{width:calc(var(--table-total-width) + 10px)!important}.pivot-mode .header-shell .eru-grid-table{margin-bottom:0;width:100%;table-layout:fixed}.pivot-mode .header-shell .eru-grid-table thead{background:var(--grid-surface-container)}.pivot-mode .header-shell .eru-grid-table thead th{background:var(--grid-surface-container);overflow:hidden;text-overflow:ellipsis;white-space:nowrap;width:var(--col-width)!important;min-width:var(--col-width)!important;max-width:var(--col-width)!important}.pivot-mode .header-shell .eru-grid-table thead th.sticky-column{position:sticky;background:var(--grid-surface-container);z-index:111}.pivot-mode .header-shell .eru-grid-table tbody td{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;width:var(--col-width)!important;min-width:var(--col-width)!important;max-width:var(--col-width)!important}.pivot-mode .pivot-container{display:flex;flex-direction:column;height:100%;width:100%;overflow:hidden}.pivot-mode .pivot-table{width:auto!important;min-width:100%!important;table-layout:fixed!important;width:100%!important}.pivot-mode .pivot-table colgroup col{width:var(--col-width)!important;min-width:var(--col-width)!important;max-width:var(--col-width)!important;flex:none!important;flex-shrink:0!important;flex-grow:0!important}.pivot-mode .pivot-table td,.pivot-mode .pivot-table th{box-sizing:border-box!important;flex:none!important;flex-shrink:0!important;flex-grow:0!important;word-wrap:break-word!important;word-break:break-all!important}.pivot-mode .pivot-table *{max-width:var(--col-width)!important;box-sizing:border-box!important}.pivot-mode .pivot-table colgroup{width:100%!important}.pivot-mode .pivot-table colgroup col{width:var(--col-width)!important;min-width:var(--col-width)!important;max-width:var(--col-width)!important;flex-basis:var(--col-width)!important;flex:0 0 var(--col-width)!important}.pivot-mode .pivot-table table{width:100%!important;table-layout:fixed!important;border-collapse:collapse!important;border-spacing:0!important}.pivot-mode .pivot-table[style*=--table-total-width]{width:var(--table-total-width)!important;min-width:var(--table-total-width)!important;max-width:var(--table-total-width)!important}.pivot-mode .pivot-table colgroup col{width:var(--col-width)!important;min-width:var(--col-width)!important;max-width:var(--col-width)!important;flex:0 0 var(--col-width)!important;flex-basis:var(--col-width)!important;flex-grow:0!important;flex-shrink:0!important;overflow:hidden!important}.pivot-mode .pivot-table tbody td,.pivot-mode .pivot-table thead th{width:var(--col-width)!important;min-width:var(--col-width)!important;max-width:var(--col-width)!important;overflow:hidden!important;text-overflow:ellipsis!important;white-space:nowrap!important}.pivot-mode .pivot-table .cell-content,.pivot-mode .pivot-table data-cell{width:100%!important;max-width:100%!important;overflow:hidden!important;text-overflow:ellipsis!important;white-space:nowrap!important;display:block!important}.pivot-mode .pivot-table table{width:var(--table-total-width)!important;min-width:var(--table-total-width)!important;max-width:var(--table-total-width)!important;table-layout:fixed!important;border-collapse:collapse!important;border-spacing:0!important;word-wrap:break-word!important;word-break:break-all!important}.pivot-mode .pivot-tbody tr.pivot-row{min-height:50px!important;height:50px!important}.pivot-mode .pivot-tbody tr.pivot-row:hover{background-color:var(--grid-surface-variant)}.pivot-mode .pivot-tbody tr.pivot-row:nth-child(2n){background-color:#00000005}.pivot-mode .pivot-tbody tr.pivot-row td{min-height:50px!important;height:50px!important;vertical-align:middle;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;width:var(--col-width)!important;min-width:var(--col-width)!important;max-width:var(--col-width)!important}.pivot-mode .pivot-tbody tr.pivot-row td .cell-content{min-height:48px;display:flex;align-items:center;justify-content:center}.pivot-mode .pivot-tbody tr.pivot-row td .cell-content data-cell{width:100%;min-height:46px;display:flex;align-items:center;justify-content:center;overflow:hidden;flex-shrink:0}.pivot-mode .pivot-cell{vertical-align:middle;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;width:var(--col-width)!important;min-width:var(--col-width)!important;max-width:var(--col-width)!important}.pivot-mode .pivot-cell.aggregated-value{font-weight:500;font-family:Roboto Mono,monospace}.pivot-mode .pivot-cell .cell-content{display:flex;justify-content:center;align-items:center;min-height:40px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;flex-shrink:0}.pivot-mode .pivot-table .subtotal-row{background-color:var(--grid-surface-container)!important;font-weight:600}.pivot-mode .pivot-table .subtotal-row td{background-color:var(--grid-surface-container);color:var(--grid-on-surface-variant)}.pivot-mode .pivot-table .subtotal-row td:first-child{color:var(--grid-primary)}.pivot-mode .pivot-table .subtotal-row td.aggregated-value{font-weight:500;color:var(--grid-primary)}.pivot-mode .pivot-table .subtotal-row:hover{background-color:var(--grid-surface-container-high)!important}.pivot-mode .pivot-table .subtotal-row:hover td{background-color:var(--grid-surface-container-high)}.pivot-mode .pivot-table .subtotal-bold td{font-weight:600!important;font-style:normal!important}.pivot-mode .pivot-table .subtotal-bold td.aggregated-value{font-weight:600!important}.pivot-mode .pivot-table .subtotal-italic td{font-style:italic!important}.pivot-mode .pivot-table .subtotal-italic td:first-child{font-weight:600!important}.pivot-mode .pivot-table .subtotal-italic td.aggregated-value{font-style:italic!important;font-weight:500!important}.pivot-mode .pivot-table .subtotal-highlighted{background-color:var(--grid-surface-variant)!important}.pivot-mode .pivot-table .subtotal-highlighted td{background-color:var(--grid-surface-variant)!important;font-weight:700!important;font-style:normal!important;color:var(--grid-primary)!important}.pivot-mode .pivot-table .subtotal-highlighted td.aggregated-value{font-weight:500!important;color:var(--grid-primary)!important}.pivot-mode .pivot-table .subtotal-highlighted:hover,.pivot-mode .pivot-table .subtotal-highlighted:hover td{background-color:var(--grid-surface-container-high)!important}.pivot-mode .pivot-table .grand-total-row{background-color:var(--grid-surface-container-high)!important;font-weight:700;font-size:var(--grid-font-size-body)}.pivot-mode .pivot-table .grand-total-row td{background-color:var(--grid-surface-container-high)!important;color:var(--grid-on-surface)}.pivot-mode .pivot-table .grand-total-row td:first-child{font-style:normal;font-weight:800;color:var(--grid-primary)}.pivot-mode .pivot-table .grand-total-row td.aggregated-value{font-weight:500;color:var(--grid-primary);font-family:Roboto Mono,monospace}.pivot-mode .pivot-table .grand-total-row:hover,.pivot-mode .pivot-table .grand-total-row:hover td{background-color:var(--grid-surface-container-high)!important}.pivot-mode .pivot-table .grand-total-bold td{font-weight:700!important;font-style:normal!important}.pivot-mode .pivot-table .grand-total-bold td.aggregated-value{font-weight:700!important}.pivot-mode .pivot-table .grand-total-italic td,.pivot-mode .pivot-table .grand-total-italic td.aggregated-value{font-style:italic!important;font-weight:500!important}.pivot-mode .pivot-table .grand-total-highlighted{background-color:var(--grid-primary)!important;box-shadow:var(--grid-elevation-2)!important}.pivot-mode .pivot-table .grand-total-highlighted td{background-color:var(--grid-primary)!important;color:var(--grid-on-primary)!important;font-weight:500!important;font-style:normal!important}.pivot-mode .pivot-table .grand-total-highlighted td.aggregated-value{color:var(--grid-on-primary)!important;font-weight:500!important}.pivot-mode .pivot-table .grand-total-highlighted:hover,.pivot-mode .pivot-table .grand-total-highlighted:hover td{background-color:var(--grid-primary)!important}.pivot-mode .pivot-table .collapsible-header{position:relative}.pivot-mode .pivot-table .collapsible-header .header-content{display:flex;align-items:center;justify-content:space-between;gap:var(--grid-spacing-xs);padding:var(--grid-spacing-xs) var(--grid-spacing-sm)}.pivot-mode .pivot-table .collapsible-header .header-label{flex:1;font-weight:600}.pivot-mode .pivot-table .collapsible-header .collapse-toggle-btn{background:none;border:none;cursor:pointer;padding:var(--grid-spacing-xxs);margin:0;display:flex;align-items:center;justify-content:center;width:20px;height:20px;border-radius:var(--grid-border-radius);color:var(--grid-on-surface-variant);transition:all .2s ease;font-size:12px;font-weight:600}.pivot-mode .pivot-table .collapsible-header .collapse-toggle-btn:hover{background-color:var(--grid-surface-container);color:var(--grid-primary);transform:scale(1.1)}.pivot-mode .pivot-table .collapsible-header .collapse-toggle-btn:focus{outline:2px solid var(--grid-primary);outline-offset:1px}.pivot-mode .pivot-table .collapsible-header .collapse-toggle-btn .collapse-icon{display:block;line-height:1;font-family:monospace;font-size:14px}.pivot-mode .pivot-table .collapsible-header.expanded .collapse-toggle-btn .collapse-icon{color:var(--grid-primary)}.pivot-mode .pivot-table .collapsible-header.collapsed{background-color:var(--grid-surface-variant)}.pivot-mode .pivot-table .collapsible-header.collapsed .header-label{font-style:italic;color:var(--grid-on-surface-variant)}.pivot-mode .pivot-table .collapsible-header.collapsed .collapse-toggle-btn .collapse-icon{color:var(--grid-outline)}.pivot-mode .pivot-table .collapsible-header:hover{background-color:var(--grid-surface-container)}.pivot-mode .pivot-table .collapsible-header:hover .header-label{color:var(--grid-on-surface)}.pivot-mode .pivot-table .pivot-single-table{display:flex;flex-direction:column;height:100%;width:100%;overflow:hidden;min-height:var(--table-min-height)!important}.pivot-mode .pivot-table .pivot-single-table .pivot-header-container{flex-shrink:0;background:var(--grid-surface)!important;overflow-x:auto;overflow-y:hidden;min-height:100px!important;height:auto!important}.pivot-mode .pivot-table .pivot-single-table .pivot-header-container .pivot-table{width:auto;min-width:100%;height:auto!important;min-height:100px!important}.pivot-mode .pivot-table .pivot-single-table .pivot-header-container .pivot-table th{background:var(--grid-surface-container)!important;padding:8px 6px!important;white-space:nowrap;min-width:50px;min-height:40px!important;height:auto!important;position:relative;visibility:visible!important;color:var(--grid-on-surface)!important}.pivot-mode .pivot-table .pivot-single-table .pivot-header-container .pivot-table th.sticky-column{position:sticky!important;background:var(--grid-surface-container)!important;border-right:2px solid var(--grid-primary)!important;box-shadow:2px 0 4px #0000001a;z-index:101!important}.pivot-mode .pivot-table .pivot-single-table .pivot-data-container{flex:1;overflow:auto;min-height:300px!important;height:auto!important}.pivot-mode .pivot-table .pivot-single-table .pivot-data-container .pivot-viewport{height:100%!important;width:100%!important;overflow-x:auto!important;overflow-y:auto!important}.pivot-mode .pivot-table .pivot-single-table .pivot-data-container .pivot-table,.pivot-mode .pivot-table .pivot-single-table .pivot-data-container .pivot-data-table{width:auto;min-width:100%;height:auto!important}.pivot-mode .pivot-table .pivot-single-table .pivot-data-container .pivot-table td,.pivot-mode .pivot-table .pivot-single-table .pivot-data-container .pivot-data-table td{padding:8px 6px!important;white-space:nowrap;min-width:50px;min-height:32px!important;height:auto!important;background:var(--grid-surface)!important;color:var(--grid-on-surface)!important;visibility:visible!important}.pivot-mode .pivot-table .pivot-single-table .pivot-data-container .pivot-table td.sticky-column,.pivot-mode .pivot-table .pivot-single-table .pivot-data-container .pivot-data-table td.sticky-column{position:sticky!important;background:var(--grid-surface-container)!important;border-right:2px solid var(--grid-primary)!important;box-shadow:2px 0 4px #0000001a;z-index:100!important}.pivot-mode .pivot-table .pivot-single-table .pivot-data-container .pivot-table tbody tr,.pivot-mode .pivot-table .pivot-single-table .pivot-data-container .pivot-data-table tbody tr{height:auto!important;min-height:50px!important}.pivot-mode .pivot-table .pivot-single-table .pivot-data-container .pivot-table tbody tr.pivot-row,.pivot-mode .pivot-table .pivot-single-table .pivot-data-container .pivot-data-table tbody tr.pivot-row{visibility:visible!important;display:table-row!important}.pivot-mode .pivot-table .collapsed-column-group{background-color:var(--grid-surface-container);border-left:3px solid var(--grid-primary)}.pivot-mode .pivot-table .collapsed-column-group:hover{background-color:var(--grid-surface-container-high)}.pivot-row.subtotal-row{background-color:var(--grid-surface-variant);font-weight:500}.pivot-row.subtotal-row.subtotal-bold{font-weight:500}.pivot-row.subtotal-row.subtotal-italic{font-style:italic}.pivot-row.subtotal-row.subtotal-highlighted{background-color:var(--grid-primary);color:var(--grid-on-primary)}.pivot-row.grand-total-row{background-color:var(--grid-surface-container);font-weight:600}.pivot-row.grand-total-row.grand-total-bold{font-weight:800}.pivot-row.grand-total-row.grand-total-italic{font-style:italic}.pivot-row.grand-total-row.grand-total-highlighted{background-color:var(--grid-primary);color:var(--grid-on-primary)}.pivot-row.first-visible-row{background-color:#6750a41a!important;position:relative}.pivot-row.first-visible-row:before{content:\"\\1f441\\fe0f First Visible\";position:absolute;top:-20px;left:0;background:var(--grid-primary);color:var(--grid-on-primary);padding:2px 6px;font-size:10px;border-radius:2px;z-index:1000}\n"] }]
|
|
5252
|
+
], template: "<!-- <div style=\"background: #f0f0f0; font-size: 12px; border-bottom: 1px solid #ccc;\">\n currentPivotScrollIndex {{currentPivotScrollIndex()}} | \n firstDataRowIndex {{firstDataRowIndex()}} | \n firstTr {{firstTr}} |\n maxDepth {{maxDepth()}}\n</div> -->\n<div class=\"incremental-row-container eru-grid\" #rowContainer \n [class.pivot-mode]=\"gridStore.isPivotMode()\"\n [class.table-mode]=\"!gridStore.isPivotMode()\">\n \n <!-- Pivot Mode Template -->\n @if (gridStore.isPivotMode()) {\n <ng-container >\n <div class=\"pivot-container\" style=\"display: flex; flex-direction: column; height: 100%;\"\n [style]=\"'--table-min-height: ' + getInitialMinHeightPx() + 'px; --table-total-width: ' + getInitialTotalWidth() + 'px'\">\n <!-- Debug info for first visible row -->\n \n \n <div class=\"pivot-single-table\" style=\"height: 100%; width: 100%; overflow: hidden; display: flex; flex-direction: column;\">\n @if (freezeHeader()) {\n <div #headerScroller class=\"header-shell\">\n <table class=\"eru-grid-table pivot-table\" \n [style]=\"'width: auto; min-width: 100%; --table-total-width: ' + getInitialTotalWidth() + 'px'\"\n [class.show-column-lines]=\"showColumnLines()\" \n [class.show-row-lines]=\"showRowLines()\">\n <!-- Column Groups for consistent width -->\n <ng-container *ngTemplateOutlet=\"pivotColGroup\"></ng-container>\n \n <ng-container *ngTemplateOutlet=\"pivotTableHead\"></ng-container>\n @if(grandTotalPosition() === 'before' && freezeGrandTotal()) {\n <ng-container *ngTemplateOutlet=\"pivotGrandTotal\"></ng-container>\n }\n </table> \n </div>\n } \n <!-- Virtual Scrolled Table Body -->\n <div>\n <cdk-virtual-scroll-viewport\n #vp\n [itemSize]=\"50\"\n class=\"viewport pivot-viewport\"\n [class.apply-cdk-width]=\"applyCdkWidth()\"\n (scrolledIndexChange)=\"onPivotScroll($event)\"\n (scroll)=\"onBodyScroll($event)\"\n style=\"overflow: auto;\">\n <table class=\"eru-grid-table pivot-table\" \n [style]=\"'width: auto; min-width: 100%; --table-total-width: ' + getInitialTotalWidth() + 'px'\"\n [class.show-column-lines]=\"showColumnLines()\" \n [class.show-row-lines]=\"showRowLines()\"\n >\n <!-- Column Groups for consistent width -->\n <ng-container *ngTemplateOutlet=\"pivotColGroup\"></ng-container>\n \n @if (!freezeHeader()) {\n <ng-container *ngTemplateOutlet=\"pivotTableHead\"></ng-container> \n }\n <!-- Table Body with Virtual Scrolling -->\n <tbody class=\"pivot-tbody\">\n \n <tr *cdkVirtualFor=\"let pivotRow of gridStore.pivotDisplayData(); \n trackBy: trackByPivotRowFn; \n let i = index\"\n class=\"pivot-row\"\n [class.subtotal-row]=\"pivotRow._isSubtotal\"\n [class.grand-total-row]=\"pivotRow._isGrandTotal\"\n [class.subtotal-bold]=\"pivotRow._isSubtotal && subTotalStyle() === 'bold'\"\n [class.subtotal-italic]=\"pivotRow._isSubtotal && subTotalStyle() === 'italic'\"\n [class.subtotal-highlighted]=\"pivotRow._isSubtotal && subTotalStyle() === 'highlighted'\"\n [class.grand-total-bold]=\"pivotRow._isGrandTotal && grandTotalStyle() === 'bold'\"\n [class.grand-total-italic]=\"pivotRow._isGrandTotal && grandTotalStyle() === 'italic'\"\n [class.grand-total-highlighted]=\"pivotRow._isGrandTotal && grandTotalStyle() === 'highlighted'\"\n [style.height.px]=\"50\"\n [attr.data-pivot-row]=\"i\">\n @if ((!pivotRow._isGrandTotal && freezeGrandTotal() ) || (!freezeGrandTotal() )) { \n @for (column of getLeafColumns(); track trackByColumnFn($index, column); let colIndex = $index) {\n @if (!shouldSkipCell(i, column.name)) {\n <td\n [attr.rowspan]=\"getEffectiveRowspan(i, column.name)\"\n [style.width.px]=\"column.field_size\"\n [style.minWidth.px]=\"column.field_size\"\n class=\"pivot-cell\"\n [class.row-dimension-cell]=\"isRowDimensionColumn(column.name)\"\n [class.column-dimension-cell]=\"!isRowDimensionColumn(column.name)\"\n [class.aggregated-value]=\"!isRowDimensionColumn(column.name) && column.datatype === 'number'\"\n [class.rowspan-cell]=\"getEffectiveRowspan(i, column.name) || 1 > 1\"\n [class.sticky-column]=\"isStickyColumn(column.name, colIndex)\"\n [style.position]=\"isStickyColumn(column.name, colIndex) ? 'sticky' : 'static'\"\n [style.left.px]=\"getStickyColumnLeft(column.name, colIndex)\"\n [style.z-index]=\"isStickyColumn(column.name, colIndex) ? 99 : 1\"\n [style.height.px]=\"50\"\n [attr.xx]=\"i\"> \n <div class=\"cell-content pivot-cell-content\">\n <data-cell\n [class.aggregation]=\"!!column.aggregationFunction\"\n [fieldSize]=\"column.field_size\"\n [columnDatatype]=\"column.datatype\"\n [columnName]=\"column.name\"\n [value]=\"getEffectiveCellValue(i,column.name, pivotRow)\"\n [column]=\"column\"\n [drillable]=\"column.enableDrilldown || false\"\n [mode]=\"mode()\"\n [isEditable]=\"isEditable()\"\n [id]=\"'pivot_' + i + '_' + column.name\">\n </data-cell>\n </div>\n </td>\n }\n }\n }\n </tr> \n </tbody>\n </table>\n </cdk-virtual-scroll-viewport>\n\n </div>\n @if (freezeGrandTotal() && grandTotalPosition() === 'after') {\n <div #gtScroller class=\"header-shell gt-shell\"\n [class.adjust-bottom]=\"!applyCdkWidth()\"\n [class.adjust-bottom-vs]=\"!adjustScrollWidth()\">\n <table class=\"eru-grid-table pivot-table\" \n [style]=\"'width: auto; min-width: 100%; --table-total-width: ' + getInitialTotalWidth() + 'px'\"\n [class.show-column-lines]=\"showColumnLines()\" \n [class.show-row-lines]=\"showRowLines()\">\n <ng-container *ngTemplateOutlet=\"pivotColGroup\"></ng-container>\n \n <ng-container *ngTemplateOutlet=\"pivotGrandTotal\"></ng-container>\n \n </table> \n </div>\n }\n \n\n </div>\n </div>\n </ng-container>\n} @else {\n \n<!-- Table Mode Template -->\n <ng-container>\n <cdk-virtual-scroll-viewport\n [itemSize]=\"50\"\n class=\"viewport table-viewport\"\n (scrolledIndexChange)=\"onScroll($event)\"\n >\n <div class=\"table-wrapper\">\n <table class=\"eru-grid-table\" [class.show-column-lines]=\"showColumnLines()\" [class.show-column-lines]=\"showColumnLines()\">\n <thead>\n <tr style=\"visibility:hidden;\">\n <th class=\"checkbox-column\"></th>\n <th *ngFor=\"let column of columns(); trackBy: trackByColumnFn\"\n [style.width.px]=\"column.field_size\"\n [style.minWidth.px]=\"column.field_size\"\n class=\"column-header\">\n {{column.label}}\n </th>\n </tr>\n </thead>\n <tbody *ngIf=\"columns() as columnsList\">\n <ng-container *cdkVirtualFor=\"let groupItem of groupedRows();\n trackBy: trackByGroupItemFn;\n let i = index;\n let first=first\">\n <tr\n *ngIf=\"groupItem.type === 'header'\"\n class=\"group-header\"\n (click)=\"toggleGroupExpansion(groupItem.group?.id || '')\"\n >\n <td class=\"checkbox-column\" style=\"border: none;\">\n {{ groupItem.group?.isExpanded ? '\u25BC' : '\u25B6' }}\n </td>\n <td [attr.colspan]=\"2\" style=\"border: none;\">\n <span class=\"group-title\">\n {{ groupItem.group?.title }}\n </span>\n <span class=\"group-row-count\">\n ({{ groupItem.group?.currentLoadedRows || 0 }}/{{ groupItem.group?.totalRowCount || 0 }})\n </span>\n </td>\n </tr>\n <tr *ngIf=\"groupItem.type === 'table-header'\" style=\"background:#fafafa\">\n <th class=\"checkbox-column\" style=\"text-align: center;\">\n <input\n type=\"checkbox\"\n [checked]=\"isGroupSelected(groupItem.group?.id || '')\"\n (click)=\"$event.stopPropagation()\"\n (change)=\"toggleGroupSelection($event, groupItem.group?.id || '')\"\n >\n </th>\n <th *ngFor=\"let column of columns(); trackBy: trackByColumnFn;let i =index\"\n style=\"text-align: center;\"\n [style.width.px]=\"column.field_size\"\n [style.minWidth.px]=\"column.field_size\"\n [resizeColumn]=\"true\"\n [columnConfig]=\"column\"\n [columnDraggable]=\"i\"\n class=\"column-header\">\n <div class=\"column-drag-handle\"></div>\n {{column.label}} {{column.symbol}}\n </th>\n </tr>\n <tr\n *ngIf=\"groupItem.type === 'row' && groupItem.group?.isExpanded\"\n class=\"row-item\"\n [attr.data-row-id]=\"groupItem.row?.entity_id\"\n [style.height.px]=\"30\"\n [style.minHeight.px]=\"30\"\n [style.maxHeight.px]=\"30\"\n >\n <td class=\"checkbox-column\" style=\"text-align: center;\">\n <input\n type=\"checkbox\"\n [checked]=\"isRowSelected(groupItem.row?.entity_id)\"\n (change)=\"toggleRowSelection($event, groupItem.row)\"\n >\n </td>\n <td #cell *ngFor=\"let column of columns(); trackBy: trackByColumnFn\"\n [style.width.px]=\"column.field_size\"\n [style.minWidth.px]=\"column.field_size\"\n class=\"data-cell\"\n [style.height.px]=\"30\"\n [style.minHeight.px]=\"30\"\n [style.maxHeight.px]=\"30\"\n [matTooltipClass]=\"'error-message'\"\n [matTooltip]=\"datacell.error()?'Error: ' + datacell.error():''\"\n matTooltipPosition=\"below\"\n >\n <div class=\"cell-content\">\n <data-cell\n #datacell \n [td]=cell\n [fieldSize]=\"column.field_size\"\n [columnDatatype]=\"column.datatype\"\n [columnName]=\"column.name\"\n [value]=\"groupItem.row?.[column.name] || ''\"\n [column]=\"column\"\n [mode]=\"mode()\"\n [isEditable]=\"isEditable()\"\n [drillable]=\"column.enableDrilldown || false\"\n [id]=\"groupItem.row?.['entity_id'] || '_' ||column.name\"\n ></data-cell>\n </div>\n </td>\n </tr>\n\n <tr\n *ngIf=\"groupItem.type === 'ghost-loading' && groupItem.group?.isExpanded\"\n class=\"ghost-loading-row\"\n [style.height.px]=\"30\"\n [style.minHeight.px]=\"30\"\n [style.maxHeight.px]=\"30\"\n >\n <td class=\"checkbox-column\"></td>\n <td *ngFor=\"let column of columns(); trackBy: trackByColumnFn\"\n [style.width.px]=\"column.field_size\"\n [style.minWidth.px]=\"column.field_size\"\n class=\"ghost-cell-container\"\n >\n <div class=\"ghost-cell\"></div>\n </td>\n </tr>\n\n <tr\n *ngIf=\"groupItem.type === 'row-place-holder'\"\n class=\"group-separator\"\n >\n <td [attr.colspan]=\"columns().length + 1\" class=\"separator-cell\"></td>\n </tr>\n </ng-container>\n </tbody>\n </table>\n </div>\n </cdk-virtual-scroll-viewport>\n </ng-container> \n}\n</div>\n\n <!-- Pivot Table Header Template -->\n <ng-template #pivotTableHead>\n <thead>\n @if (hasNestedHeaders()) {\n <ng-container >\n @for (headerRow of getHeaderRows(); track headerRow; let rowIndex = $index) {\n <tr class=\"pivot-header pivot-header-container\" \n [class.pivot-header-level]=\"'level-' + rowIndex\">\n @for (header of headerRow; track trackByHeaderFn($index, header); let colIndex = $index) {\n <th\n [attr.colspan]=\"header.colspan\"\n [attr.rowspan]=\"header.rowspan\"\n [resizeColumn]=\"gridStore.isFeatureEnabled('columnResizable') && header.level === 0\"\n class=\"column-header pivot-column-header nested-header\"\n [class.row-dimension-header]=\"isRowDimensionHeader(header)\"\n [class.column-dimension-header]=\"!isRowDimensionHeader(header)\"\n [class.expanded]=\"header.isExpanded\"\n [class.collapsed]=\"!header.isExpanded\"\n [class.sticky-column]=\"isStickyColumn(header.name, colIndex)\"\n [style.position]=\"isStickyColumn(header.name, colIndex) ? 'sticky' : 'static'\"\n [style.left.px]=\"getStickyColumnLeft(header.name, colIndex)\"\n [style.z-index]=\"isStickyColumn(header.name, colIndex) ? 100 : 1\"\n style=\"min-height: 40px; height: auto; padding: 8px 6px;\">\n <div class=\"header-content\">\n <span class=\"header-label header-wrap-text\">{{header.label}}</span>\n <!-- <button *ngIf=\"!isRowDimensionHeader(header)\" \n class=\"collapse-toggle-btn\"\n [title]=\"header.isExpanded ? 'Collapse group' : 'Expand group'\"\n (click)=\"toggleColumnGroup(header.groupKey)\"\n type=\"button\">\n <span class=\"collapse-icon\">+</span>\n </button> -->\n </div>\n </th>\n }\n </tr>\n }\n </ng-container>\n } @else {\n <!-- Simple header fallback -->\n <ng-container>\n <tr class=\"pivot-header\" [class.freeze-header-enabled]=\"freezeHeader()\">\n @for (column of getLeafColumns(); track trackByColumnFn($index, column); let colIndex = $index) {\n <th [style.width.px]=\"column.field_size\"\n [style.minWidth.px]=\"column.field_size\"\n [resizeColumn]=\"gridStore.isFeatureEnabled('columnResizable')\"\n [columnConfig]=\"column\"\n class=\"column-header pivot-column-header\"\n [class.sticky-column]=\"isStickyColumn(column.name, colIndex)\"\n [style.position]=\"isStickyColumn(column.name, colIndex) ? 'sticky' : 'static'\"\n [style.left.px]=\"getStickyColumnLeft(column.name, colIndex)\"\n [style.z-index]=\"isStickyColumn(column.name, colIndex) ? 100 : 1\"\n style = \"min-height: 40px;height: auto;padding: 8px 6px;position: relative;left: 0px;z-index: 1\">\n {{column.label}}\n </th>\n }\n </tr>\n </ng-container>\n }\n \n </thead>\n</ng-template>\n\n<!-- Column Group Template for consistent column widths -->\n<ng-template #pivotColGroup>\n <colgroup>\n @for (column of getLeafColumns(); track trackByColumnFn($index, column)) {\n <col [style]=\"'width: ' + column.field_size + 'px !important; min-width: ' + column.field_size + 'px !important; max-width: ' + column.field_size + 'px !important; --col-width: ' + column.field_size + 'px'\">\n }\n </colgroup>\n</ng-template>\n\n<ng-template #pivotGrandTotal>\n<tbody class=\"pivot-tbody\">\n @for (pivotRow of gridStore.pivotGrandTotalData(); track trackByPivotRowFn($index, pivotRow); let i = $index) {\n <tr \n class=\"pivot-row grand-total-row\"\n [class.grand-total-bold]=\"pivotRow._isGrandTotal && grandTotalStyle() === 'bold'\"\n [class.grand-total-italic]=\"pivotRow._isGrandTotal && grandTotalStyle() === 'italic'\"\n [class.grand-total-highlighted]=\"pivotRow._isGrandTotal && grandTotalStyle() === 'highlighted'\"\n [style.height.px]=\"50\"\n [attr.data-pivot-row]=\"i\">\n <!-- <td colspan=\"20\">{{pivotRow | json}}</td> -->\n @for (column of getLeafColumns(); track trackByColumnFn($index, column); let colIndex = $index) {\n <td\n [attr.rowspan]=\"getEffectiveRowspan(i, column.name)\" \n [style.width.px]=\"column.field_size\"\n [style.minWidth.px]=\"column.field_size\"\n class=\"pivot-cell\"\n [class.row-dimension-cell]=\"isRowDimensionColumn(column.name)\"\n [class.column-dimension-cell]=\"!isRowDimensionColumn(column.name)\"\n [class.aggregated-value]=\"!isRowDimensionColumn(column.name) && column.datatype === 'number'\"\n [class.rowspan-cell]=\"getEffectiveRowspan(i, column.name) || 1 > 1\"\n [class.sticky-column]=\"isStickyColumn(column.name, colIndex)\"\n [style.position]=\"isStickyColumn(column.name, colIndex) ? 'sticky' : 'static'\"\n [style.left.px]=\"getStickyColumnLeft(column.name, colIndex)\"\n [style.z-index]=\"isStickyColumn(column.name, colIndex) ? 99 : 1\"\n [style.height.px]=\"50\"\n [attr.xx]=\"i\"> \n <div class=\"cell-content pivot-cell-content\">\n <data-cell\n [fieldSize]=\"column.field_size\"\n [columnDatatype]=\"column.datatype\"\n [columnName]=\"column.name\"\n [value]=\"getEffectiveCellValue(i,column.name, pivotRow)\"\n [column]=\"column\"\n [frozenGrandTotalCell]=\"true\"\n [drillable]=\"column.enableDrilldown || false\"\n [mode]=\"mode()\"\n [isEditable]=\"isEditable()\"\n [id]=\"'pivot_' + i + '_' + column.name\">\n </data-cell>\n </div>\n </td>\n }\n </tr>\n}\n</tbody>\n</ng-template>\n", styles: ["@charset \"UTF-8\";:host{display:block;width:100%;height:100%;font-family:var(--grid-font-family);--grid-primary: #6750a4;--grid-on-primary: #ffffff;--grid-surface: #fef7ff;--grid-surface-variant: #e7e0ec;--grid-surface-container: #f3edf7;--grid-surface-container-high: #ede7f0;--grid-on-surface: #1d1b20;--grid-on-surface-variant: #49454f;--grid-outline: #79757f;--grid-outline-variant: #cac4d0;--grid-error: #ba1a1a;--grid-error-container: #ffdad6;--grid-font-family: \"Poppins\", \"Roboto\", -apple-system, BlinkMacSystemFont, \"Segoe UI\", sans-serif;--grid-font-size-body: 12px;--grid-font-size-caption: 12px !important;--grid-line-height-body: 1;--grid-aggregation-text-align: right;--grid-number-text-align: right;--grid-spacing-xxs: 2px;--grid-spacing-xs: 4px;--grid-spacing-sm: 8px;--grid-spacing-md: 16px;--grid-spacing-lg: 24px;--grid-border-radius: 4px;--grid-elevation-1: 0px 1px 2px 0px rgba(0, 0, 0, .3), 0px 1px 3px 1px rgba(0, 0, 0, .15);--grid-elevation-2: 0px 1px 2px 0px rgba(0, 0, 0, .3), 0px 2px 6px 2px rgba(0, 0, 0, .15)}.incremental-row-container{padding:10px;width:100%;height:100%;min-height:var(--table-min-height, 400px);max-height:none;overflow:auto;position:relative;background-color:var(--grid-surface);border-radius:var(--grid-border-radius);box-shadow:var(--grid-elevation-1);font-family:var(--grid-font-family)}.viewport{overflow-x:auto;overflow-y:auto;background-color:var(--grid-surface);scrollbar-gutter:stable}.viewport.apply-cdk-width{width:calc(var(--table-total-width) + 10px)!important}.pivot-viewport{min-height:var(--table-min-height, 300px);overflow-x:auto;overflow-y:auto;background-color:var(--grid-surface)}.pivot-viewport .cdk-virtual-scroll-content-wrapper{width:auto;height:auto}.table-wrapper{min-width:100%;overflow-x:visible}.incremental-row-container .eru-grid-table,.eru-grid-table{width:100%!important;border-collapse:separate;border-spacing:0;table-layout:fixed!important;background-color:var(--grid-surface);color:var(--grid-on-surface);font-size:var(--grid-font-size-body);line-height:var(--grid-line-height-body)}.eru-grid-table th,.eru-grid-table td{text-align:left;overflow:hidden!important;text-overflow:ellipsis!important;white-space:nowrap!important;background-color:var(--grid-surface);color:var(--grid-on-surface);min-width:0;max-width:100%!important;box-sizing:border-box;position:relative}.eru-grid-table th:hover,.eru-grid-table td:hover{background-color:var(--grid-surface-variant)}.eru-grid-table thead{background-color:var(--grid-surface-container);transform:translateZ(0);will-change:transform;backface-visibility:hidden}.eru-grid-table thead.freeze-header-enabled{box-shadow:0 2px 4px #0000001a;border-bottom:2px solid var(--grid-outline)}.eru-grid-table thead th{background-color:var(--grid-surface-container);color:var(--grid-on-surface);font-weight:500;font-size:var(--grid-font-size-caption)}.checkbox-column{width:50px;min-width:50px;max-width:50px;text-align:center;border:1px solid var(--grid-outline);background-color:var(--grid-surface-container)}.checkbox-column input[type=checkbox]{width:16px;height:16px;cursor:pointer;accent-color:var(--grid-primary);border-radius:var(--grid-border-radius)}.checkbox-column input[type=checkbox]:focus{outline:2px solid var(--grid-primary);outline-offset:2px}.group-header{background-color:var(--grid-surface-container);color:var(--grid-on-surface);font-size:var(--grid-font-size-caption);font-weight:500;border-bottom:1px solid var(--grid-outline);cursor:pointer;transition:background-color .2s ease}.group-header:hover{background-color:var(--grid-surface-container-high)}.group-header .group-title{font-weight:600;color:var(--grid-primary)}.group-header .group-row-count{color:var(--grid-on-surface-variant);font-size:var(--grid-font-size-caption);margin-left:var(--grid-spacing-sm)}.row-item{border:1px solid var(--grid-outline);background-color:var(--grid-surface);transition:background-color .2s ease,box-shadow .2s ease}.row-item:hover{background-color:var(--grid-surface-variant);box-shadow:var(--grid-elevation-1)}.column-header{font-weight:500;text-align:center!important;font-size:var(--grid-font-size-caption, 12px);position:relative;-webkit-user-select:none;user-select:none;background-color:var(--grid-surface-container);color:var(--grid-on-surface)}.column-header:hover{background-color:var(--grid-surface-container-high)}.column-drag-handle{position:absolute;left:0;top:0;bottom:0;width:12px;cursor:grab;opacity:0;transition:opacity .2s ease,background-color .2s ease;z-index:2;display:flex;align-items:center;justify-content:center;border-right:1px solid transparent}.column-drag-handle:after{content:\"\\22ee\\22ee\";font-size:14px;color:var(--grid-on-surface-variant);transform:rotate(90deg)}.column-drag-handle:hover{background-color:var(--grid-surface-container-high);border-right-color:var(--grid-outline)}.column-header:hover .column-drag-handle{opacity:1}.column-drag-handle:active{cursor:grabbing}.dragging{opacity:1;background-color:var(--grid-surface-container);box-shadow:var(--grid-elevation-2)}.drag-over{background-color:var(--grid-surface-container);border-color:var(--grid-primary)}.data-cell{background-color:var(--grid-surface);color:var(--grid-on-surface);font-size:var(--grid-font-size-body)}.cell-content{align-items:center}.cell-content .mdc-text-field{padding:0px var(--grid-spacing-xxs)!important}.cell-display-text{align-items:center;padding:0px var(--grid-spacing-xs)}.ghost-loading-row{background-color:transparent}.ghost-cell-container{padding:var(--grid-spacing-sm)}.ghost-cell{height:20px;width:100%;background-color:var(--grid-surface-container);animation:pulse 1.5s ease-in-out infinite;border-radius:var(--grid-border-radius)}@keyframes pulse{0%,to{opacity:1}50%{opacity:.5}}.resizing{cursor:col-resize;-webkit-user-select:none;user-select:none}.column-resizer{position:absolute;right:0;top:0;bottom:0;width:4px;cursor:col-resize;background-color:transparent;transition:background-color .2s ease}.column-resizer:hover{background-color:var(--grid-primary)}.group-separator{height:var(--grid-spacing-sm);background-color:var(--grid-surface-variant)}.group-separator .separator-cell{background-color:var(--grid-surface-variant);border:none;height:var(--grid-spacing-sm)}.error-state{background-color:var(--grid-error-container);color:var(--grid-error);border-color:var(--grid-error)}.error-message{background-color:var(--grid-error);color:#fff;padding:var(--grid-spacing-sm);border-radius:var(--grid-border-radius);font-size:var(--grid-font-size-caption)}.incremental-row-container .eru-grid-table tbody,.incremental-row-container .eru-grid-table{position:relative}.incremental-row-container .eru-grid-table.show-column-lines{border-right:var(--grid-outline-width, 1px) solid var(--grid-outline, #e0e0e0)!important;border-top:var(--grid-outline-width, 1px) solid var(--grid-outline, #e0e0e0)!important;border-bottom:var(--grid-outline-width, 1px) solid var(--grid-outline, #e0e0e0)!important}.incremental-row-container .eru-grid-table:not(.show-column-lines){border:var(--grid-outline-width, 1px) solid var(--grid-outline, #e0e0e0)!important}.incremental-row-container .eru-grid-table thead:after{content:\"\";position:absolute;bottom:0;left:0;right:0;height:calc(var(--grid-outline-width, 1px) * 2);background-color:var(--grid-outline, #e0e0e0);pointer-events:none;z-index:10}.incremental-row-container .eru-grid-table.show-column-lines thead th{border-left:var(--grid-outline-width, 1px) solid var(--grid-outline, #e0e0e0)!important;border-bottom:var(--grid-outline-width, 1px) solid var(--grid-outline, #e0e0e0)!important}.incremental-row-container .eru-grid-table.show-column-lines tbody td{border-left:var(--grid-outline-width, 1px) solid var(--grid-outline, #e0e0e0)!important}.incremental-row-container .eru-grid-table.show-row-lines thead th{border-left:var(--grid-outline-width, 1px) solid var(--grid-outline, #e0e0e0)!important;border-bottom:var(--grid-outline-width, 1px) solid var(--grid-outline, #e0e0e0)!important}.incremental-row-container .eru-grid-table.show-row-lines tbody td{border-bottom:var(--grid-outline-width, 1px) solid var(--grid-outline, #e0e0e0)!important}@media (max-width: 768px){.incremental-row-container{height:600px}.eru-grid-table th,.eru-grid-table td{font-size:var(--grid-font-size-caption)}.checkbox-column{width:40px;min-width:40px;max-width:40px}}@media (prefers-contrast: high){.eru-grid-table th,.eru-grid-table td{border-width:2px}.row-item:hover{border-width:2px;border-color:var(--grid-primary)}}@media (prefers-reduced-motion: reduce){.row-item,.column-drag-handle,.ghost-cell{transition:none;animation:none}}.pivot-table .nested-header{text-align:center;font-weight:600;background:var(--grid-surface-container)}.pivot-table .nested-header.row-dimension-header{background:var(--grid-surface-container);font-weight:600}.pivot-table .pivot-header-leafcols{padding:0;margin:0;height:0}.pivot-table .pivot-header-level.level-0 .nested-header{font-size:14px;padding:12px 8px}.pivot-table .pivot-header-level.level-1 .nested-header{font-size:13px;padding:10px 6px}.pivot-table .pivot-header-level.level-2 .nested-header{font-size:12px;padding:8px 4px}.pivot-table .nested-header:hover{background:var(--grid-surface-variant);color:var(--grid-primary);transition:all .2s ease}.pivot-table .pivot-cell.aggregated-value{font-weight:500;font-family:Roboto Mono,monospace}.pivot-table .pivot-cell-content{display:flex;justify-content:center;align-items:center;min-height:38px}.pivot-table .rowspan-cell{vertical-align:middle}.pivot-table .rowspan-cell .pivot-cell-content{height:100%}.pivot-mode .incremental-row-container{display:flex;flex-direction:column;height:auto;max-height:85vh;overflow:auto}.pivot-mode .h-shell{position:relative;width:calc(100% - var(--scrollbar-width, 17px))!important;top:0;z-index:1;overflow-x:hidden;overflow-y:hidden;scrollbar-width:none;-ms-overflow-style:none}.pivot-mode .h-shell::-webkit-scrollbar{display:none}.pivot-mode .gt-shell{position:relative;bottom:50px;flex-shrink:0;overflow-x:hidden;overflow-y:hidden;scrollbar-width:none;-ms-overflow-style:none}.pivot-mode .gt-shell::-webkit-scrollbar{display:none}.pivot-mode .gt-shell table{border-bottom:var(--grid-outline-width, 1px) solid var(--grid-outline, #e0e0e0)!important}.pivot-mode .gt-shell.adjust-bottom-vs{bottom:66px!important}.pivot-mode .gt-shell.adjust-bottom:not(.adjust-bottom-vs){bottom:calc(66px - var(--scrollbar-width, 17px))!important}.pivot-mode .header-shell{flex-shrink:0;width:100%;box-sizing:border-box;padding-right:var(--scrollbar-width, 17px);overflow-x:auto;overflow-y:hidden;scrollbar-width:none;-ms-overflow-style:none}.pivot-mode .header-shell::-webkit-scrollbar{display:none}.pivot-mode .header-shell.apply-cdk-width{width:calc(var(--table-total-width) + 10px)!important}.pivot-mode .header-shell .eru-grid-table{margin-bottom:0;width:100%;table-layout:fixed}.pivot-mode .header-shell .eru-grid-table thead{background:var(--grid-surface-container)}.pivot-mode .header-shell .eru-grid-table thead th{background:var(--grid-surface-container);overflow:hidden;text-overflow:ellipsis;white-space:nowrap;width:var(--col-width)!important;min-width:var(--col-width)!important;max-width:var(--col-width)!important}.pivot-mode .header-shell .eru-grid-table thead th.sticky-column{position:sticky;background:var(--grid-surface-container);z-index:111}.pivot-mode .header-shell .eru-grid-table tbody td{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;width:var(--col-width)!important;min-width:var(--col-width)!important;max-width:var(--col-width)!important}.pivot-mode .pivot-container{display:flex;flex-direction:column;height:100%;width:100%;overflow:hidden}.pivot-mode .pivot-table{width:auto!important;min-width:100%!important;table-layout:fixed!important;width:100%!important}.pivot-mode .pivot-table colgroup col{width:var(--col-width)!important;min-width:var(--col-width)!important;max-width:var(--col-width)!important;flex:none!important;flex-shrink:0!important;flex-grow:0!important}.pivot-mode .pivot-table td,.pivot-mode .pivot-table th{box-sizing:border-box!important;flex:none!important;flex-shrink:0!important;flex-grow:0!important;word-wrap:break-word!important;word-break:break-all!important}.pivot-mode .pivot-table *{max-width:var(--col-width)!important;box-sizing:border-box!important}.pivot-mode .pivot-table colgroup{width:100%!important}.pivot-mode .pivot-table colgroup col{width:var(--col-width)!important;min-width:var(--col-width)!important;max-width:var(--col-width)!important;flex-basis:var(--col-width)!important;flex:0 0 var(--col-width)!important}.pivot-mode .pivot-table table{width:100%!important;table-layout:fixed!important;border-collapse:collapse!important;border-spacing:0!important}.pivot-mode .pivot-table[style*=--table-total-width]{width:var(--table-total-width)!important;min-width:var(--table-total-width)!important;max-width:var(--table-total-width)!important}.pivot-mode .pivot-table colgroup col{width:var(--col-width)!important;min-width:var(--col-width)!important;max-width:var(--col-width)!important;flex:0 0 var(--col-width)!important;flex-basis:var(--col-width)!important;flex-grow:0!important;flex-shrink:0!important;overflow:hidden!important}.pivot-mode .pivot-table tbody td,.pivot-mode .pivot-table thead th{width:var(--col-width)!important;min-width:var(--col-width)!important;max-width:var(--col-width)!important;overflow:hidden!important;text-overflow:ellipsis!important;white-space:nowrap!important}.pivot-mode .pivot-table .cell-content,.pivot-mode .pivot-table data-cell{width:100%!important;max-width:100%!important;overflow:hidden!important;text-overflow:ellipsis!important;white-space:nowrap!important;display:block!important}.pivot-mode .pivot-table table{width:var(--table-total-width)!important;min-width:var(--table-total-width)!important;max-width:var(--table-total-width)!important;table-layout:fixed!important;border-collapse:collapse!important;border-spacing:0!important;word-wrap:break-word!important;word-break:break-all!important}.pivot-mode .pivot-tbody tr.pivot-row{min-height:50px!important;height:50px!important}.pivot-mode .pivot-tbody tr.pivot-row:hover{background-color:var(--grid-surface-variant)}.pivot-mode .pivot-tbody tr.pivot-row:nth-child(2n){background-color:#00000005}.pivot-mode .pivot-tbody tr.pivot-row td{min-height:50px!important;height:50px!important;vertical-align:middle;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;width:var(--col-width)!important;min-width:var(--col-width)!important;max-width:var(--col-width)!important}.pivot-mode .pivot-tbody tr.pivot-row td .cell-content{min-height:48px;display:flex;align-items:center;justify-content:center}.pivot-mode .pivot-tbody tr.pivot-row td .cell-content data-cell{width:100%;min-height:46px;display:flex;align-items:center;justify-content:center;overflow:hidden;flex-shrink:0}.pivot-mode .pivot-cell{vertical-align:middle;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;width:var(--col-width)!important;min-width:var(--col-width)!important;max-width:var(--col-width)!important}.pivot-mode .pivot-cell.aggregated-value{font-weight:500;font-family:Roboto Mono,monospace}.pivot-mode .pivot-cell .cell-content{display:flex;justify-content:center;align-items:center;min-height:40px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;flex-shrink:0}.pivot-mode .pivot-table .subtotal-row{background-color:var(--grid-surface-container)!important;font-weight:600}.pivot-mode .pivot-table .subtotal-row td{background-color:var(--grid-surface-container);color:var(--grid-on-surface-variant)}.pivot-mode .pivot-table .subtotal-row td:first-child{color:var(--grid-primary)}.pivot-mode .pivot-table .subtotal-row td.aggregated-value{font-weight:500;color:var(--grid-primary)}.pivot-mode .pivot-table .subtotal-row:hover{background-color:var(--grid-surface-container-high)!important}.pivot-mode .pivot-table .subtotal-row:hover td{background-color:var(--grid-surface-container-high)}.pivot-mode .pivot-table .subtotal-bold td{font-weight:600!important;font-style:normal!important}.pivot-mode .pivot-table .subtotal-bold td.aggregated-value{font-weight:600!important}.pivot-mode .pivot-table .subtotal-italic td{font-style:italic!important}.pivot-mode .pivot-table .subtotal-italic td:first-child{font-weight:600!important}.pivot-mode .pivot-table .subtotal-italic td.aggregated-value{font-style:italic!important;font-weight:500!important}.pivot-mode .pivot-table .subtotal-highlighted{background-color:var(--grid-surface-variant)!important}.pivot-mode .pivot-table .subtotal-highlighted td{background-color:var(--grid-surface-variant)!important;font-weight:700!important;font-style:normal!important;color:var(--grid-primary)!important}.pivot-mode .pivot-table .subtotal-highlighted td.aggregated-value{font-weight:500!important;color:var(--grid-primary)!important}.pivot-mode .pivot-table .subtotal-highlighted:hover,.pivot-mode .pivot-table .subtotal-highlighted:hover td{background-color:var(--grid-surface-container-high)!important}.pivot-mode .pivot-table .grand-total-row{background-color:var(--grid-surface-container-high)!important;font-weight:700;font-size:var(--grid-font-size-body)}.pivot-mode .pivot-table .grand-total-row td{background-color:var(--grid-surface-container-high)!important;color:var(--grid-on-surface)}.pivot-mode .pivot-table .grand-total-row td:first-child{font-style:normal;font-weight:800;color:var(--grid-primary)}.pivot-mode .pivot-table .grand-total-row td.aggregated-value{font-weight:500;color:var(--grid-primary);font-family:Roboto Mono,monospace}.pivot-mode .pivot-table .grand-total-row:hover,.pivot-mode .pivot-table .grand-total-row:hover td{background-color:var(--grid-surface-container-high)!important}.pivot-mode .pivot-table .grand-total-bold td{font-weight:700!important;font-style:normal!important}.pivot-mode .pivot-table .grand-total-bold td.aggregated-value{font-weight:700!important}.pivot-mode .pivot-table .grand-total-italic td,.pivot-mode .pivot-table .grand-total-italic td.aggregated-value{font-style:italic!important;font-weight:500!important}.pivot-mode .pivot-table .grand-total-highlighted{background-color:var(--grid-primary)!important;box-shadow:var(--grid-elevation-2)!important}.pivot-mode .pivot-table .grand-total-highlighted td{background-color:var(--grid-primary)!important;color:var(--grid-on-primary)!important;font-weight:500!important;font-style:normal!important}.pivot-mode .pivot-table .grand-total-highlighted td.aggregated-value{color:var(--grid-on-primary)!important;font-weight:500!important}.pivot-mode .pivot-table .grand-total-highlighted:hover,.pivot-mode .pivot-table .grand-total-highlighted:hover td{background-color:var(--grid-primary)!important}.pivot-mode .pivot-table .collapsible-header{position:relative}.pivot-mode .pivot-table .collapsible-header .header-content{display:flex;align-items:center;justify-content:space-between;gap:var(--grid-spacing-xs);padding:var(--grid-spacing-xs) var(--grid-spacing-sm)}.pivot-mode .pivot-table .collapsible-header .header-label{flex:1;font-weight:600}.pivot-mode .pivot-table .collapsible-header .collapse-toggle-btn{background:none;border:none;cursor:pointer;padding:var(--grid-spacing-xxs);margin:0;display:flex;align-items:center;justify-content:center;width:20px;height:20px;border-radius:var(--grid-border-radius);color:var(--grid-on-surface-variant);transition:all .2s ease;font-size:12px;font-weight:600}.pivot-mode .pivot-table .collapsible-header .collapse-toggle-btn:hover{background-color:var(--grid-surface-container);color:var(--grid-primary);transform:scale(1.1)}.pivot-mode .pivot-table .collapsible-header .collapse-toggle-btn:focus{outline:2px solid var(--grid-primary);outline-offset:1px}.pivot-mode .pivot-table .collapsible-header .collapse-toggle-btn .collapse-icon{display:block;line-height:1;font-family:monospace;font-size:14px}.pivot-mode .pivot-table .collapsible-header.expanded .collapse-toggle-btn .collapse-icon{color:var(--grid-primary)}.pivot-mode .pivot-table .collapsible-header.collapsed{background-color:var(--grid-surface-variant)}.pivot-mode .pivot-table .collapsible-header.collapsed .header-label{font-style:italic;color:var(--grid-on-surface-variant)}.pivot-mode .pivot-table .collapsible-header.collapsed .collapse-toggle-btn .collapse-icon{color:var(--grid-outline)}.pivot-mode .pivot-table .collapsible-header:hover{background-color:var(--grid-surface-container)}.pivot-mode .pivot-table .collapsible-header:hover .header-label{color:var(--grid-on-surface)}.pivot-mode .pivot-table .pivot-single-table{display:flex;flex-direction:column;height:100%;width:100%;overflow:hidden;min-height:var(--table-min-height)!important}.pivot-mode .pivot-table .pivot-single-table .pivot-header-container{flex-shrink:0;background:var(--grid-surface)!important;overflow-x:auto;overflow-y:hidden;min-height:100px!important;height:auto!important}.pivot-mode .pivot-table .pivot-single-table .pivot-header-container .pivot-table{width:auto;min-width:100%;height:auto!important;min-height:100px!important}.pivot-mode .pivot-table .pivot-single-table .pivot-header-container .pivot-table th{background:var(--grid-surface-container)!important;padding:8px 6px!important;white-space:nowrap;min-width:50px;min-height:40px!important;height:auto!important;position:relative;visibility:visible!important;color:var(--grid-on-surface)!important}.pivot-mode .pivot-table .pivot-single-table .pivot-header-container .pivot-table th.sticky-column{position:sticky!important;background:var(--grid-surface-container)!important;border-right:2px solid var(--grid-primary)!important;box-shadow:2px 0 4px #0000001a;z-index:101!important}.pivot-mode .pivot-table .pivot-single-table .pivot-data-container{flex:1;overflow:auto;min-height:300px!important;height:auto!important}.pivot-mode .pivot-table .pivot-single-table .pivot-data-container .pivot-viewport{height:100%!important;width:100%!important;overflow-x:auto!important;overflow-y:auto!important}.pivot-mode .pivot-table .pivot-single-table .pivot-data-container .pivot-table,.pivot-mode .pivot-table .pivot-single-table .pivot-data-container .pivot-data-table{width:auto;min-width:100%;height:auto!important}.pivot-mode .pivot-table .pivot-single-table .pivot-data-container .pivot-table td,.pivot-mode .pivot-table .pivot-single-table .pivot-data-container .pivot-data-table td{padding:8px 6px!important;white-space:nowrap;min-width:50px;min-height:32px!important;height:auto!important;background:var(--grid-surface)!important;color:var(--grid-on-surface)!important;visibility:visible!important}.pivot-mode .pivot-table .pivot-single-table .pivot-data-container .pivot-table td.sticky-column,.pivot-mode .pivot-table .pivot-single-table .pivot-data-container .pivot-data-table td.sticky-column{position:sticky!important;background:var(--grid-surface-container)!important;border-right:2px solid var(--grid-primary)!important;box-shadow:2px 0 4px #0000001a;z-index:100!important}.pivot-mode .pivot-table .pivot-single-table .pivot-data-container .pivot-table tbody tr,.pivot-mode .pivot-table .pivot-single-table .pivot-data-container .pivot-data-table tbody tr{height:auto!important;min-height:50px!important}.pivot-mode .pivot-table .pivot-single-table .pivot-data-container .pivot-table tbody tr.pivot-row,.pivot-mode .pivot-table .pivot-single-table .pivot-data-container .pivot-data-table tbody tr.pivot-row{visibility:visible!important;display:table-row!important}.pivot-mode .pivot-table .collapsed-column-group{background-color:var(--grid-surface-container);border-left:3px solid var(--grid-primary)}.pivot-mode .pivot-table .collapsed-column-group:hover{background-color:var(--grid-surface-container-high)}.pivot-row.subtotal-row{background-color:var(--grid-surface-variant);font-weight:500}.pivot-row.subtotal-row.subtotal-bold{font-weight:500}.pivot-row.subtotal-row.subtotal-italic{font-style:italic}.pivot-row.subtotal-row.subtotal-highlighted{background-color:var(--grid-primary);color:var(--grid-on-primary)}.pivot-row.grand-total-row{background-color:var(--grid-surface-container);font-weight:600}.pivot-row.grand-total-row.grand-total-bold{font-weight:800}.pivot-row.grand-total-row.grand-total-italic{font-style:italic}.pivot-row.grand-total-row.grand-total-highlighted{background-color:var(--grid-primary);color:var(--grid-on-primary)}.pivot-row.first-visible-row{background-color:#6750a41a!important;position:relative}.pivot-row.first-visible-row:before{content:\"\\1f441\\fe0f First Visible\";position:absolute;top:-20px;left:0;background:var(--grid-primary);color:var(--grid-on-primary);padding:2px 6px;font-size:10px;border-radius:2px;z-index:1000}.header-wrap-text{white-space:pre-wrap;word-break:auto-phrase}\n"] }]
|
|
4697
5253
|
}], ctorParameters: () => [{ type: i0.ChangeDetectorRef }], propDecorators: { viewport: [{
|
|
4698
5254
|
type: ViewChild,
|
|
4699
5255
|
args: [CdkVirtualScrollViewport]
|