eru-grid 0.0.22-o → 0.0.22-p

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.
@@ -152,15 +152,6 @@ class PivotTransformService {
152
152
  processingTime: endTime - startTime,
153
153
  dataSize: sourceData.length
154
154
  };
155
- console.log({
156
- data: pivotRows,
157
- columnDefinitions,
158
- rowCount: pivotRows.length,
159
- metadata,
160
- configuration,
161
- headerStructure,
162
- columnGroupState: this.columnGroupState
163
- });
164
155
  return {
165
156
  data: pivotRows,
166
157
  columnDefinitions,
@@ -403,7 +394,6 @@ class PivotTransformService {
403
394
  enableDrilldown: field?.enableDrilldown || false
404
395
  });
405
396
  });
406
- console.log(columns);
407
397
  // Check if column subtotals and grand totals are enabled
408
398
  const enableColumnSubtotals = gridConfiguration?.config?.enableColumnSubtotals ?? false;
409
399
  const enableColumnGrandTotal = gridConfiguration?.config?.enableColumnGrandTotal ?? false;
@@ -1091,7 +1081,6 @@ class PivotTransformService {
1091
1081
  combinations.push([value, ...restCombo]);
1092
1082
  });
1093
1083
  });
1094
- console.log(combinations);
1095
1084
  return combinations;
1096
1085
  }
1097
1086
  /**
@@ -2371,7 +2360,6 @@ class EruGridStore {
2371
2360
  data: configuration.data
2372
2361
  };
2373
2362
  this._configuration.set(this.validateAndEnforceConfiguration(newConfiguration));
2374
- console.log("setColumns", configuration.fields);
2375
2363
  this.setColumns(configuration.fields);
2376
2364
  }
2377
2365
  /**
@@ -2502,7 +2490,6 @@ class EruGridStore {
2502
2490
  this._configuration.set(this.validateAndEnforceConfiguration(mergedConfig));
2503
2491
  }
2504
2492
  setPivotConfiguration(pivotConfig) {
2505
- console.log('🔄 SET PIVOT CONFIGURATION: Setting pivot configuration', pivotConfig);
2506
2493
  this._pivotConfiguration.set(pivotConfig);
2507
2494
  // Also store in the main configuration for consistency
2508
2495
  this.updateGridConfiguration({ pivot: pivotConfig });
@@ -2529,7 +2516,6 @@ class EruGridStore {
2529
2516
  const pivotConfig = this.pivotConfiguration();
2530
2517
  const sourceData = this.configuration().data || [];
2531
2518
  if (!pivotConfig || sourceData.length === 0) {
2532
- console.log('🔄 TRANSFORM DEBUG: Skipping transformation - no config or data');
2533
2519
  return;
2534
2520
  }
2535
2521
  // Skip the (expensive O(n × dims × aggs)) re-run when the pivot config and
@@ -2568,7 +2554,6 @@ class EruGridStore {
2568
2554
  }
2569
2555
  // Force refresh pivot transformation (for debugging)
2570
2556
  forceRefreshPivot() {
2571
- console.log('🔄 FORCE REFRESH: Clearing pivot result and re-transforming');
2572
2557
  this._pivotResult.set(null);
2573
2558
  this._lastPivotConfigRef = null;
2574
2559
  this._lastPivotDataRef = null;
@@ -2675,7 +2660,6 @@ class EruGridStore {
2675
2660
  columnValuesArray.forEach((value, index) => {
2676
2661
  drilldown.rowData[cols[index]] = value;
2677
2662
  });
2678
- console.log('🔄 SET DRILLDOWN: Drilldown', drilldown);
2679
2663
  this._drilldown.set(drilldown);
2680
2664
  }
2681
2665
  clearPivotDrilldown() {
@@ -2724,7 +2708,6 @@ class EruGridStore {
2724
2708
  * Add rows for a specific group (called by consumer with API data)
2725
2709
  */
2726
2710
  addRowsForGroup(groupId, rows, hasMore) {
2727
- console.log(`✅ Grid Store: Received ${rows.length} rows for group ${groupId}`);
2728
2711
  // Add rows to existing rows
2729
2712
  const existingRows = this.rows();
2730
2713
  const newRows = [...existingRows, ...rows];
@@ -3022,14 +3005,12 @@ class EruGridService {
3022
3005
  * Update grid configuration with new settings
3023
3006
  */
3024
3007
  update_grid_configuration(updates) {
3025
- console.log('🔄 update_grid_configuration from service:', updates);
3026
3008
  this.eruGridStore.updateGridConfiguration(updates);
3027
3009
  }
3028
3010
  /**
3029
3011
  * Enable or disable specific grid features
3030
3012
  */
3031
3013
  set_grid_features(features) {
3032
- console.log('🔄 set_grid_features from service:', features);
3033
3014
  const currentConfig = this.eruGridStore.configuration();
3034
3015
  this.eruGridStore.updateGridConfiguration({
3035
3016
  config: {
@@ -3854,7 +3835,6 @@ class DataCellComponent {
3854
3835
  onDrillableClick(event) {
3855
3836
  if (this.drillable()) {
3856
3837
  event.stopPropagation();
3857
- console.log('drillable click', this.id(), this.currentValue());
3858
3838
  // Handle drillable click - you can emit an event or call a service here
3859
3839
  const idSplit = this.id().toString().replace('pivot_', '').replace('_default|', '');
3860
3840
  // Split on first underscore to get first part and rest
@@ -3862,13 +3842,6 @@ class DataCellComponent {
3862
3842
  const columnValues = columnName.join('_');
3863
3843
  const columnValuesSplit = columnValues.split('|');
3864
3844
  const colName = columnValuesSplit[columnValuesSplit.length - 1];
3865
- console.log({
3866
- frozenGrandTotalCell: this.frozenGrandTotalCell(),
3867
- columnName: colName,
3868
- rowId: rowId,
3869
- columnValue: this.currentValue()
3870
- });
3871
- console.log(columnValues);
3872
3845
  this.eruGridStore().setDrilldown({
3873
3846
  frozenGrandTotalCell: this.frozenGrandTotalCell(),
3874
3847
  columnName: colName,
@@ -3907,7 +3880,6 @@ class DataCellComponent {
3907
3880
  }
3908
3881
  }
3909
3882
  catch (error) {
3910
- console.log("Could not set cursor position for input type:", matInput.type, error);
3911
3883
  // Final fallback: try to use value manipulation
3912
3884
  try {
3913
3885
  const currentValue = matInput.value;
@@ -3916,7 +3888,6 @@ class DataCellComponent {
3916
3888
  matInput.setSelectionRange(0, 0);
3917
3889
  }
3918
3890
  catch (fallbackError) {
3919
- console.log("All cursor positioning methods failed:", fallbackError);
3920
3891
  }
3921
3892
  }
3922
3893
  }
@@ -3926,7 +3897,6 @@ class DataCellComponent {
3926
3897
  setTimeout(tryFocus, 25);
3927
3898
  }
3928
3899
  else {
3929
- console.log("Could not find visible input element after", maxAttempts, "attempts");
3930
3900
  }
3931
3901
  };
3932
3902
  // Start trying to focus after allowing Angular to update the DOM
@@ -4016,7 +3986,6 @@ class DataCellComponent {
4016
3986
  openDatePicker() {
4017
3987
  }
4018
3988
  selectedMultiSelect(event) {
4019
- console.log('selectedMultiSelect event:', event);
4020
3989
  // Handle edge cases
4021
3990
  if (!event || !Array.isArray(event)) {
4022
3991
  console.warn('Invalid event received:', event);
@@ -4033,7 +4002,6 @@ class DataCellComponent {
4033
4002
  }
4034
4003
  }
4035
4004
  appendMultiSelect(event) {
4036
- console.log(event);
4037
4005
  const currentValues = this.currentValue();
4038
4006
  if (Array.isArray(currentValues)) {
4039
4007
  if (currentValues.includes(event)) {
@@ -4318,11 +4286,9 @@ class DataCellComponent {
4318
4286
  }
4319
4287
  viewFile(file) {
4320
4288
  // TODO: Implement file viewing functionality
4321
- console.log('View file:', file);
4322
4289
  }
4323
4290
  deleteFile(file) {
4324
4291
  // TODO: Implement file deletion functionality
4325
- console.log('Delete file:', file);
4326
4292
  const currentFiles = this.currentValue() || [];
4327
4293
  const updatedFiles = currentFiles.filter((f) => f !== file);
4328
4294
  this.currentValue.set(updatedFiles);
@@ -4362,7 +4328,6 @@ class DataCellComponent {
4362
4328
  this.upload(base64Content, newFileName);
4363
4329
  this.currentValue().push(newFileName);
4364
4330
  this.cdr.detectChanges();
4365
- console.log(this.currentValue());
4366
4331
  };
4367
4332
  reader.readAsDataURL(file);
4368
4333
  }
@@ -4385,11 +4350,8 @@ class DataCellComponent {
4385
4350
  // })
4386
4351
  }
4387
4352
  fileInputChange(e) {
4388
- debugger;
4389
- console.log(e, 'file');
4390
4353
  Array.from(e.target.files).forEach((file) => {
4391
4354
  this.processFile(file);
4392
- console.log(file, 'file');
4393
4355
  });
4394
4356
  }
4395
4357
  view(file, FNAME) {
@@ -4507,7 +4469,6 @@ class DataCellComponent {
4507
4469
  }
4508
4470
  }
4509
4471
  getColumnName() {
4510
- //console.log(this.getColumnValue())
4511
4472
  //const columnValue = this.getColumnValue().replace('default|', '');
4512
4473
  //const columnValues = columnValue.split('|')
4513
4474
  //const colName = columnValues[columnValues.length - 1]
@@ -4729,7 +4690,6 @@ class ColumnDragDirective {
4729
4690
  event.preventDefault();
4730
4691
  return;
4731
4692
  }
4732
- console.log('Drag start', this.columnIndex);
4733
4693
  // Ensure dataTransfer exists
4734
4694
  if (event.dataTransfer) {
4735
4695
  try {
@@ -4768,7 +4728,6 @@ class ColumnDragDirective {
4768
4728
  event.preventDefault();
4769
4729
  return;
4770
4730
  }
4771
- console.log('Drop', this.columnIndex);
4772
4731
  event.preventDefault();
4773
4732
  // Get the dragged column index
4774
4733
  let fromIndex;
@@ -4780,7 +4739,6 @@ class ColumnDragDirective {
4780
4739
  return;
4781
4740
  }
4782
4741
  const toIndex = this.columnIndex;
4783
- console.log('Reordering', { fromIndex, toIndex });
4784
4742
  // Reorder columns if different
4785
4743
  if (fromIndex !== toIndex) {
4786
4744
  this.eruGridStore.reorderColumns(fromIndex, toIndex);
@@ -5490,24 +5448,19 @@ class EruGridComponent {
5490
5448
  else if (this.getRowspanInfo().get(`${rowIndex}_${columnName}`)) {
5491
5449
  if (this.getRowspanInfo().get(`${rowIndex}_${columnName}`)?.rowspan || 1 > 0) {
5492
5450
  if (currentRowspan > previousRowspan && rowIndex >= this.firstDataRowIndex()) {
5493
- /* if (rowIndex >= 6 && rowIndex <= 7) {console.log('inside 2a');} */
5494
5451
  return false;
5495
5452
  }
5496
5453
  else {
5497
- /* if (rowIndex >= 6 && rowIndex <= 7) {console.log('inside 2b');} */
5498
5454
  return true;
5499
5455
  }
5500
5456
  }
5501
5457
  }
5502
5458
  else if (!this.getRowspanInfo().get(`${rowIndex}_${columnName}`)) {
5503
- /* if (rowIndex >= 6 && rowIndex <= 7) {console.log('inside 3');} */
5504
5459
  return false;
5505
5460
  }
5506
5461
  else {
5507
- /* if (rowIndex >= 6 && rowIndex <= 7) {console.log('inside 4');} */
5508
5462
  return true;
5509
5463
  }
5510
- /* if (rowIndex >= 6 && rowIndex <= 7) {console.log('inside 5');} */
5511
5464
  return true;
5512
5465
  }
5513
5466
  /**