eru-grid 0.0.13 → 0.0.15
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 +766 -270
- package/fesm2022/eru-grid.mjs.map +1 -1
- package/index.d.ts +75 -13
- package/package.json +1 -1
package/index.d.ts
CHANGED
|
@@ -237,7 +237,7 @@ declare class PivotTransformService {
|
|
|
237
237
|
*/
|
|
238
238
|
private buildNestedHeaders;
|
|
239
239
|
/**
|
|
240
|
-
* Calculate colspan for a header at given level
|
|
240
|
+
* Calculate colspan for a header at given level - GENERIC VERSION
|
|
241
241
|
*/
|
|
242
242
|
private calculateColspan;
|
|
243
243
|
/**
|
|
@@ -256,14 +256,6 @@ declare class PivotTransformService {
|
|
|
256
256
|
* Generate all combinations of dimension values
|
|
257
257
|
*/
|
|
258
258
|
private generateCombinations;
|
|
259
|
-
/**
|
|
260
|
-
* Generate hierarchical subtotal combinations - creates combinations at each level separately
|
|
261
|
-
* For 3 dimensions [["Low", "Medium"], ["0", "1"], ["Open", "Closed"]] this generates:
|
|
262
|
-
* Level 0: ["Low"], ["Medium"] (first dimension only)
|
|
263
|
-
* Level 1: ["Low", "0"], ["Low", "1"], ["Medium", "0"], ["Medium", "1"] (first + second dimensions)
|
|
264
|
-
* This ensures subtotals are calculated for ALL dimension levels, not just full combinations
|
|
265
|
-
*/
|
|
266
|
-
private generateHierarchicalSubtotalCombinations;
|
|
267
259
|
/**
|
|
268
260
|
* Generate flat header structure for single dimension
|
|
269
261
|
*/
|
|
@@ -280,6 +272,34 @@ declare class PivotTransformService {
|
|
|
280
272
|
* Add column subtotals as new columns
|
|
281
273
|
*/
|
|
282
274
|
private addColumnSubtotals;
|
|
275
|
+
/**
|
|
276
|
+
* Generate all possible subtotal combinations for hierarchical column dimensions
|
|
277
|
+
*/
|
|
278
|
+
private generateSubtotalCombinations;
|
|
279
|
+
/**
|
|
280
|
+
* Generate all possible dimension paths at a specific level
|
|
281
|
+
*/
|
|
282
|
+
private generateCombinationsAtLevel;
|
|
283
|
+
/**
|
|
284
|
+
* Generate columns with properly positioned subtotal columns
|
|
285
|
+
*/
|
|
286
|
+
private generateColumnsWithInterleavedSubtotals;
|
|
287
|
+
/**
|
|
288
|
+
* Group combinations by dimension levels for subtotal insertion
|
|
289
|
+
*/
|
|
290
|
+
private groupCombinationsByDimensions;
|
|
291
|
+
/**
|
|
292
|
+
* Add interleaved subtotals within column groups
|
|
293
|
+
*/
|
|
294
|
+
private addInterleavedSubtotals;
|
|
295
|
+
/**
|
|
296
|
+
* Group pivot columns by dimension prefixes for subtotal insertion
|
|
297
|
+
*/
|
|
298
|
+
private groupPivotColumnsByDimensions;
|
|
299
|
+
/**
|
|
300
|
+
* Create a subtotal column for a specific dimension prefix
|
|
301
|
+
*/
|
|
302
|
+
private createSubtotalColumn;
|
|
283
303
|
/**
|
|
284
304
|
* Add grand total row
|
|
285
305
|
*/
|
|
@@ -368,9 +388,53 @@ declare class PivotTransformService {
|
|
|
368
388
|
*/
|
|
369
389
|
private insertColumnSubtotalHeaders;
|
|
370
390
|
/**
|
|
371
|
-
*
|
|
391
|
+
* Add subtotal headers at their correct row levels
|
|
392
|
+
*/
|
|
393
|
+
private addSubtotalHeadersAtCorrectLevels;
|
|
394
|
+
/**
|
|
395
|
+
* Rearrange headers in each row to match the leaf column order
|
|
396
|
+
*/
|
|
397
|
+
private rearrangeHeadersToMatchLeafColumns;
|
|
398
|
+
/**
|
|
399
|
+
* Reorder headers by hierarchy to match leaf column interleaved positioning - GENERIC VERSION
|
|
400
|
+
*/
|
|
401
|
+
private reorderHeadersByHierarchy;
|
|
402
|
+
/**
|
|
403
|
+
* Extract unique values for a specific column dimension from source data
|
|
404
|
+
*/
|
|
405
|
+
private extractDimensionValues;
|
|
406
|
+
/**
|
|
407
|
+
* Extract all dimension values arrays from headers or source data
|
|
408
|
+
*/
|
|
409
|
+
private extractAllDimensionValues;
|
|
410
|
+
/**
|
|
411
|
+
* Group rating headers by their priority parent - GENERIC VERSION
|
|
412
|
+
*/
|
|
413
|
+
private groupRatingHeadersByPriority;
|
|
414
|
+
/**
|
|
415
|
+
* Group subtotals by their priority
|
|
416
|
+
*/
|
|
417
|
+
private groupSubtotalsByPriority;
|
|
418
|
+
/**
|
|
419
|
+
* Group status headers by their rating parent (combination) - GENERIC VERSION
|
|
420
|
+
*/
|
|
421
|
+
private groupStatusHeadersByRating;
|
|
422
|
+
/**
|
|
423
|
+
* Group subtotals by their rating (Priority+Rating combination)
|
|
424
|
+
*/
|
|
425
|
+
private groupSubtotalsByRating;
|
|
426
|
+
/**
|
|
427
|
+
* Add parent group keys to headers based on their position and row level - GENERIC VERSION
|
|
428
|
+
*/
|
|
429
|
+
private addParentGroupKeysToHeaders;
|
|
430
|
+
/**
|
|
431
|
+
* Group headers by their parentGroupKey
|
|
432
|
+
*/
|
|
433
|
+
private groupHeadersByParentKey;
|
|
434
|
+
/**
|
|
435
|
+
* Group subtotals by their parentGroupKey
|
|
372
436
|
*/
|
|
373
|
-
private
|
|
437
|
+
private groupSubtotalsByParentKey;
|
|
374
438
|
static ɵfac: _angular_core.ɵɵFactoryDeclaration<PivotTransformService, never>;
|
|
375
439
|
static ɵprov: _angular_core.ɵɵInjectableDeclaration<PivotTransformService>;
|
|
376
440
|
}
|
|
@@ -633,7 +697,6 @@ declare class EruGridComponent implements OnInit, AfterViewInit, OnDestroy {
|
|
|
633
697
|
gtScroller: ElementRef<HTMLDivElement>;
|
|
634
698
|
initialMinHeight: number;
|
|
635
699
|
initialTotalWidth: number;
|
|
636
|
-
initialAdjustScrollWidth: boolean;
|
|
637
700
|
vp: CdkVirtualScrollViewport;
|
|
638
701
|
private rowLoadQueue;
|
|
639
702
|
private isProcessingQueue;
|
|
@@ -690,7 +753,6 @@ declare class EruGridComponent implements OnInit, AfterViewInit, OnDestroy {
|
|
|
690
753
|
getInitialMinHeightPx(): number;
|
|
691
754
|
getInitialTotalWidth(): number;
|
|
692
755
|
applyCdkWidth(): boolean;
|
|
693
|
-
getInitialAdjustScrollWidth(): boolean;
|
|
694
756
|
private createGroupedRows;
|
|
695
757
|
initializeGroups(): void;
|
|
696
758
|
private fetchInitialRows;
|