@memberjunction/ng-entity-viewer 6.1.4 → 6.2.0-edge.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (81) hide show
  1. package/dist/lib/aggregate-panel/aggregate-panel.component.d.ts +18 -2
  2. package/dist/lib/aggregate-panel/aggregate-panel.component.d.ts.map +1 -1
  3. package/dist/lib/aggregate-panel/aggregate-panel.component.js +47 -18
  4. package/dist/lib/aggregate-panel/aggregate-panel.component.js.map +1 -1
  5. package/dist/lib/aggregate-setup-dialog/aggregate-setup-dialog.component.d.ts +22 -0
  6. package/dist/lib/aggregate-setup-dialog/aggregate-setup-dialog.component.d.ts.map +1 -1
  7. package/dist/lib/aggregate-setup-dialog/aggregate-setup-dialog.component.js +57 -13
  8. package/dist/lib/aggregate-setup-dialog/aggregate-setup-dialog.component.js.map +1 -1
  9. package/dist/lib/entity-cards/entity-cards.component.d.ts +68 -5
  10. package/dist/lib/entity-cards/entity-cards.component.d.ts.map +1 -1
  11. package/dist/lib/entity-cards/entity-cards.component.js +213 -73
  12. package/dist/lib/entity-cards/entity-cards.component.js.map +1 -1
  13. package/dist/lib/entity-data-grid/entity-data-grid.component.d.ts +156 -14
  14. package/dist/lib/entity-data-grid/entity-data-grid.component.d.ts.map +1 -1
  15. package/dist/lib/entity-data-grid/entity-data-grid.component.js +432 -138
  16. package/dist/lib/entity-data-grid/entity-data-grid.component.js.map +1 -1
  17. package/dist/lib/entity-data-grid/events/grid-events.js +67 -67
  18. package/dist/lib/entity-data-grid/events/grid-events.js.map +1 -1
  19. package/dist/lib/entity-record-detail-panel/entity-record-detail-panel.component.d.ts +112 -8
  20. package/dist/lib/entity-record-detail-panel/entity-record-detail-panel.component.d.ts.map +1 -1
  21. package/dist/lib/entity-record-detail-panel/entity-record-detail-panel.component.js +255 -69
  22. package/dist/lib/entity-record-detail-panel/entity-record-detail-panel.component.js.map +1 -1
  23. package/dist/lib/entity-viewer/entity-viewer.component.d.ts +11 -0
  24. package/dist/lib/entity-viewer/entity-viewer.component.d.ts.map +1 -1
  25. package/dist/lib/entity-viewer/entity-viewer.component.js +45 -8
  26. package/dist/lib/entity-viewer/entity-viewer.component.js.map +1 -1
  27. package/dist/lib/pill/pill.component.d.ts +13 -3
  28. package/dist/lib/pill/pill.component.d.ts.map +1 -1
  29. package/dist/lib/pill/pill.component.js +34 -10
  30. package/dist/lib/pill/pill.component.js.map +1 -1
  31. package/dist/lib/quick-save-dialog/quick-save-dialog.component.d.ts +29 -3
  32. package/dist/lib/quick-save-dialog/quick-save-dialog.component.d.ts.map +1 -1
  33. package/dist/lib/quick-save-dialog/quick-save-dialog.component.js +173 -114
  34. package/dist/lib/quick-save-dialog/quick-save-dialog.component.js.map +1 -1
  35. package/dist/lib/recycle-bin/recycle-bin.component.d.ts +4 -0
  36. package/dist/lib/recycle-bin/recycle-bin.component.d.ts.map +1 -1
  37. package/dist/lib/recycle-bin/recycle-bin.component.js +10 -2
  38. package/dist/lib/recycle-bin/recycle-bin.component.js.map +1 -1
  39. package/dist/lib/utils/aggregate-field.util.d.ts +21 -0
  40. package/dist/lib/utils/aggregate-field.util.d.ts.map +1 -0
  41. package/dist/lib/utils/aggregate-field.util.js +40 -0
  42. package/dist/lib/utils/aggregate-field.util.js.map +1 -0
  43. package/dist/lib/utils/highlight.util.d.ts +6 -0
  44. package/dist/lib/utils/highlight.util.d.ts.map +1 -1
  45. package/dist/lib/utils/highlight.util.js +23 -11
  46. package/dist/lib/utils/highlight.util.js.map +1 -1
  47. package/dist/lib/utils/record.util.d.ts +10 -0
  48. package/dist/lib/utils/record.util.d.ts.map +1 -1
  49. package/dist/lib/utils/record.util.js +20 -4
  50. package/dist/lib/utils/record.util.js.map +1 -1
  51. package/dist/lib/view-config-panel/view-config-panel.component.d.ts +22 -2
  52. package/dist/lib/view-config-panel/view-config-panel.component.d.ts.map +1 -1
  53. package/dist/lib/view-config-panel/view-config-panel.component.js +54 -14
  54. package/dist/lib/view-config-panel/view-config-panel.component.js.map +1 -1
  55. package/dist/lib/view-selector/view-selector.component.js +2 -2
  56. package/dist/lib/view-types/renderers/cards-view-renderer.component.d.ts +15 -3
  57. package/dist/lib/view-types/renderers/cards-view-renderer.component.d.ts.map +1 -1
  58. package/dist/lib/view-types/renderers/cards-view-renderer.component.js +33 -5
  59. package/dist/lib/view-types/renderers/cards-view-renderer.component.js.map +1 -1
  60. package/dist/lib/view-types/renderers/grid-view-renderer.component.d.ts +160 -5
  61. package/dist/lib/view-types/renderers/grid-view-renderer.component.d.ts.map +1 -1
  62. package/dist/lib/view-types/renderers/grid-view-renderer.component.js +576 -36
  63. package/dist/lib/view-types/renderers/grid-view-renderer.component.js.map +1 -1
  64. package/dist/lib/view-types/renderers/map-view-renderer.component.d.ts +16 -2
  65. package/dist/lib/view-types/renderers/map-view-renderer.component.d.ts.map +1 -1
  66. package/dist/lib/view-types/renderers/map-view-renderer.component.js +37 -9
  67. package/dist/lib/view-types/renderers/map-view-renderer.component.js.map +1 -1
  68. package/dist/lib/view-types/view-type.contracts.js.map +1 -1
  69. package/dist/lib/view-workspace/view-workspace.component.d.ts +235 -24
  70. package/dist/lib/view-workspace/view-workspace.component.d.ts.map +1 -1
  71. package/dist/lib/view-workspace/view-workspace.component.js +600 -174
  72. package/dist/lib/view-workspace/view-workspace.component.js.map +1 -1
  73. package/dist/module.d.ts +5 -4
  74. package/dist/module.d.ts.map +1 -1
  75. package/dist/module.js +8 -1
  76. package/dist/module.js.map +1 -1
  77. package/dist/public-api.d.ts +1 -0
  78. package/dist/public-api.d.ts.map +1 -1
  79. package/dist/public-api.js +1 -0
  80. package/dist/public-api.js.map +1 -1
  81. package/package.json +21 -20
@@ -6,9 +6,9 @@
6
6
  */
7
7
  export class GridEventArgs {
8
8
  /** The grid component that raised the event */
9
- grid;
9
+ grid; // case-violation-ok-legacy-back-compat: object literals are assigned to this class, so an accessor stub changes what they must supply
10
10
  /** Timestamp when event was raised */
11
- timestamp;
11
+ timestamp; // case-violation-ok-legacy-back-compat: object literals are assigned to this class, so an accessor stub changes what they must supply
12
12
  constructor(grid) {
13
13
  this.grid = grid;
14
14
  this.timestamp = new Date();
@@ -63,9 +63,9 @@ export class CancelableRowEventArgs extends RowEventArgs {
63
63
  */
64
64
  export class BeforeRowSelectEventArgs extends CancelableRowEventArgs {
65
65
  /** Whether this is adding to selection (multi-select) or replacing */
66
- isAdditive;
66
+ isAdditive; // case-violation-ok-legacy-back-compat: object literals are assigned to this class, so an accessor stub changes what they must supply
67
67
  /** Current selection before this change */
68
- currentSelection;
68
+ currentSelection; // case-violation-ok-legacy-back-compat: object literals are assigned to this class, so an accessor stub changes what they must supply
69
69
  constructor(grid, row, rowIndex, rowKey, isAdditive, currentSelection) {
70
70
  super(grid, row, rowIndex, rowKey);
71
71
  this.isAdditive = isAdditive;
@@ -77,11 +77,11 @@ export class BeforeRowSelectEventArgs extends CancelableRowEventArgs {
77
77
  */
78
78
  export class AfterRowSelectEventArgs extends RowEventArgs {
79
79
  /** Whether this was additive selection */
80
- wasAdditive;
80
+ wasAdditive; // case-violation-ok-legacy-back-compat: object literals are assigned to this class, so an accessor stub changes what they must supply
81
81
  /** New selection state */
82
- newSelection;
82
+ newSelection; // case-violation-ok-legacy-back-compat: object literals are assigned to this class, so an accessor stub changes what they must supply
83
83
  /** Previous selection state */
84
- previousSelection;
84
+ previousSelection; // case-violation-ok-legacy-back-compat: object literals are assigned to this class, so an accessor stub changes what they must supply
85
85
  constructor(grid, row, rowIndex, rowKey, wasAdditive, newSelection, previousSelection) {
86
86
  super(grid, row, rowIndex, rowKey);
87
87
  this.wasAdditive = wasAdditive;
@@ -94,7 +94,7 @@ export class AfterRowSelectEventArgs extends RowEventArgs {
94
94
  */
95
95
  export class BeforeRowDeselectEventArgs extends CancelableRowEventArgs {
96
96
  /** Current selection before this change */
97
- currentSelection;
97
+ currentSelection; // case-violation-ok-legacy-back-compat: object literals are assigned to this class, so an accessor stub changes what they must supply
98
98
  constructor(grid, row, rowIndex, rowKey, currentSelection) {
99
99
  super(grid, row, rowIndex, rowKey);
100
100
  this.currentSelection = [...currentSelection];
@@ -105,9 +105,9 @@ export class BeforeRowDeselectEventArgs extends CancelableRowEventArgs {
105
105
  */
106
106
  export class AfterRowDeselectEventArgs extends RowEventArgs {
107
107
  /** New selection state */
108
- newSelection;
108
+ newSelection; // case-violation-ok-legacy-back-compat: object literals are assigned to this class, so an accessor stub changes what they must supply
109
109
  /** Previous selection state */
110
- previousSelection;
110
+ previousSelection; // case-violation-ok-legacy-back-compat: object literals are assigned to this class, so an accessor stub changes what they must supply
111
111
  constructor(grid, row, rowIndex, rowKey, newSelection, previousSelection) {
112
112
  super(grid, row, rowIndex, rowKey);
113
113
  this.newSelection = [...newSelection];
@@ -122,11 +122,11 @@ export class AfterRowDeselectEventArgs extends RowEventArgs {
122
122
  */
123
123
  export class BeforeRowClickEventArgs extends CancelableRowEventArgs {
124
124
  /** The mouse event */
125
- mouseEvent;
125
+ mouseEvent; // case-violation-ok-legacy-back-compat: object literals are assigned to this class, so an accessor stub changes what they must supply
126
126
  /** The column that was clicked (if any) */
127
- column;
127
+ column; // case-violation-ok-legacy-back-compat: an accessor cannot be optional, so a stub would turn this into a required member
128
128
  /** The cell value that was clicked (if any) */
129
- cellValue;
129
+ cellValue; // case-violation-ok-legacy-back-compat: an accessor cannot be optional, so a stub would turn this into a required member
130
130
  constructor(grid, row, rowIndex, rowKey, mouseEvent, column, cellValue) {
131
131
  super(grid, row, rowIndex, rowKey);
132
132
  this.mouseEvent = mouseEvent;
@@ -139,11 +139,11 @@ export class BeforeRowClickEventArgs extends CancelableRowEventArgs {
139
139
  */
140
140
  export class AfterRowClickEventArgs extends RowEventArgs {
141
141
  /** The mouse event */
142
- mouseEvent;
142
+ mouseEvent; // case-violation-ok-legacy-back-compat: object literals are assigned to this class, so an accessor stub changes what they must supply
143
143
  /** The column that was clicked (if any) */
144
- column;
144
+ column; // case-violation-ok-legacy-back-compat: an accessor cannot be optional, so a stub would turn this into a required member
145
145
  /** The cell value that was clicked (if any) */
146
- cellValue;
146
+ cellValue; // case-violation-ok-legacy-back-compat: an accessor cannot be optional, so a stub would turn this into a required member
147
147
  constructor(grid, row, rowIndex, rowKey, mouseEvent, column, cellValue) {
148
148
  super(grid, row, rowIndex, rowKey);
149
149
  this.mouseEvent = mouseEvent;
@@ -156,11 +156,11 @@ export class AfterRowClickEventArgs extends RowEventArgs {
156
156
  */
157
157
  export class BeforeRowDoubleClickEventArgs extends CancelableRowEventArgs {
158
158
  /** The mouse event */
159
- mouseEvent;
159
+ mouseEvent; // case-violation-ok-legacy-back-compat: object literals are assigned to this class, so an accessor stub changes what they must supply
160
160
  /** The column that was clicked (if any) */
161
- column;
161
+ column; // case-violation-ok-legacy-back-compat: an accessor cannot be optional, so a stub would turn this into a required member
162
162
  /** The cell value that was clicked (if any) */
163
- cellValue;
163
+ cellValue; // case-violation-ok-legacy-back-compat: an accessor cannot be optional, so a stub would turn this into a required member
164
164
  constructor(grid, row, rowIndex, rowKey, mouseEvent, column, cellValue) {
165
165
  super(grid, row, rowIndex, rowKey);
166
166
  this.mouseEvent = mouseEvent;
@@ -173,11 +173,11 @@ export class BeforeRowDoubleClickEventArgs extends CancelableRowEventArgs {
173
173
  */
174
174
  export class AfterRowDoubleClickEventArgs extends RowEventArgs {
175
175
  /** The mouse event */
176
- mouseEvent;
176
+ mouseEvent; // case-violation-ok-legacy-back-compat: object literals are assigned to this class, so an accessor stub changes what they must supply
177
177
  /** The column that was clicked (if any) */
178
- column;
178
+ column; // case-violation-ok-legacy-back-compat: an accessor cannot be optional, so a stub would turn this into a required member
179
179
  /** The cell value that was clicked (if any) */
180
- cellValue;
180
+ cellValue; // case-violation-ok-legacy-back-compat: an accessor cannot be optional, so a stub would turn this into a required member
181
181
  constructor(grid, row, rowIndex, rowKey, mouseEvent, column, cellValue) {
182
182
  super(grid, row, rowIndex, rowKey);
183
183
  this.mouseEvent = mouseEvent;
@@ -193,9 +193,9 @@ export class AfterRowDoubleClickEventArgs extends RowEventArgs {
193
193
  */
194
194
  export class BeforeCellEditEventArgs extends CancelableRowEventArgs {
195
195
  /** The column being edited */
196
- column;
196
+ column; // case-violation-ok-legacy-back-compat: object literals are assigned to this class, so an accessor stub changes what they must supply
197
197
  /** Current value in the cell */
198
- currentValue;
198
+ currentValue; // case-violation-ok-legacy-back-compat: object literals are assigned to this class, so an accessor stub changes what they must supply
199
199
  constructor(grid, row, rowIndex, rowKey, column, currentValue) {
200
200
  super(grid, row, rowIndex, rowKey);
201
201
  this.column = column;
@@ -207,9 +207,9 @@ export class BeforeCellEditEventArgs extends CancelableRowEventArgs {
207
207
  */
208
208
  export class AfterCellEditBeginEventArgs extends RowEventArgs {
209
209
  /** The column being edited */
210
- column;
210
+ column; // case-violation-ok-legacy-back-compat: object literals are assigned to this class, so an accessor stub changes what they must supply
211
211
  /** Current value in the cell */
212
- currentValue;
212
+ currentValue; // case-violation-ok-legacy-back-compat: object literals are assigned to this class, so an accessor stub changes what they must supply
213
213
  constructor(grid, row, rowIndex, rowKey, column, currentValue) {
214
214
  super(grid, row, rowIndex, rowKey);
215
215
  this.column = column;
@@ -221,13 +221,13 @@ export class AfterCellEditBeginEventArgs extends RowEventArgs {
221
221
  */
222
222
  export class BeforeCellEditCommitEventArgs extends CancelableRowEventArgs {
223
223
  /** The column being edited */
224
- column;
224
+ column; // case-violation-ok-legacy-back-compat: object literals are assigned to this class, so an accessor stub changes what they must supply
225
225
  /** Original value before edit */
226
226
  oldValue;
227
227
  /** New value being committed */
228
228
  newValue;
229
229
  /** Set to modify the value before committing */
230
- modifiedValue;
230
+ modifiedValue; // case-violation-ok-legacy-back-compat: an accessor cannot be optional, so a stub would turn this into a required member
231
231
  constructor(grid, row, rowIndex, rowKey, column, oldValue, newValue) {
232
232
  super(grid, row, rowIndex, rowKey);
233
233
  this.column = column;
@@ -240,7 +240,7 @@ export class BeforeCellEditCommitEventArgs extends CancelableRowEventArgs {
240
240
  */
241
241
  export class AfterCellEditCommitEventArgs extends RowEventArgs {
242
242
  /** The column that was edited */
243
- column;
243
+ column; // case-violation-ok-legacy-back-compat: object literals are assigned to this class, so an accessor stub changes what they must supply
244
244
  /** Original value before edit */
245
245
  oldValue;
246
246
  /** New value that was committed */
@@ -257,11 +257,11 @@ export class AfterCellEditCommitEventArgs extends RowEventArgs {
257
257
  */
258
258
  export class BeforeCellEditCancelEventArgs extends CancelableRowEventArgs {
259
259
  /** The column being edited */
260
- column;
260
+ column; // case-violation-ok-legacy-back-compat: object literals are assigned to this class, so an accessor stub changes what they must supply
261
261
  /** Original value */
262
- originalValue;
262
+ originalValue; // case-violation-ok-legacy-back-compat: object literals are assigned to this class, so an accessor stub changes what they must supply
263
263
  /** The edited value that would be discarded */
264
- editedValue;
264
+ editedValue; // case-violation-ok-legacy-back-compat: object literals are assigned to this class, so an accessor stub changes what they must supply
265
265
  constructor(grid, row, rowIndex, rowKey, column, originalValue, editedValue) {
266
266
  super(grid, row, rowIndex, rowKey);
267
267
  this.column = column;
@@ -274,11 +274,11 @@ export class BeforeCellEditCancelEventArgs extends CancelableRowEventArgs {
274
274
  */
275
275
  export class AfterCellEditCancelEventArgs extends RowEventArgs {
276
276
  /** The column that was being edited */
277
- column;
277
+ column; // case-violation-ok-legacy-back-compat: object literals are assigned to this class, so an accessor stub changes what they must supply
278
278
  /** Original value that was restored */
279
- originalValue;
279
+ originalValue; // case-violation-ok-legacy-back-compat: object literals are assigned to this class, so an accessor stub changes what they must supply
280
280
  /** The edited value that was discarded */
281
- editedValue;
281
+ editedValue; // case-violation-ok-legacy-back-compat: object literals are assigned to this class, so an accessor stub changes what they must supply
282
282
  constructor(grid, row, rowIndex, rowKey, column, originalValue, editedValue) {
283
283
  super(grid, row, rowIndex, rowKey);
284
284
  this.column = column;
@@ -294,9 +294,9 @@ export class AfterCellEditCancelEventArgs extends RowEventArgs {
294
294
  */
295
295
  export class BeforeRowSaveEventArgs extends CancelableRowEventArgs {
296
296
  /** The changes being saved */
297
- changes;
297
+ changes; // case-violation-ok-legacy-back-compat: object literals are assigned to this class, so an accessor stub changes what they must supply
298
298
  /** Set to modify values before saving */
299
- modifiedValues;
299
+ modifiedValues; // case-violation-ok-legacy-back-compat: an accessor cannot be optional, so a stub would turn this into a required member
300
300
  constructor(grid, row, rowIndex, rowKey, changes) {
301
301
  super(grid, row, rowIndex, rowKey);
302
302
  this.changes = { ...changes };
@@ -307,7 +307,7 @@ export class BeforeRowSaveEventArgs extends CancelableRowEventArgs {
307
307
  */
308
308
  export class AfterRowSaveEventArgs extends RowEventArgs {
309
309
  /** The changes that were saved */
310
- changes;
310
+ changes; // case-violation-ok-legacy-back-compat: object literals are assigned to this class, so an accessor stub changes what they must supply
311
311
  /** Whether the save was successful */
312
312
  success;
313
313
  /** Error message if save failed */
@@ -324,7 +324,7 @@ export class AfterRowSaveEventArgs extends RowEventArgs {
324
324
  */
325
325
  export class BeforeRowDeleteEventArgs extends CancelableRowEventArgs {
326
326
  /** Whether this is part of a batch delete */
327
- isBatch;
327
+ isBatch; // case-violation-ok-legacy-back-compat: object literals are assigned to this class, so an accessor stub changes what they must supply
328
328
  constructor(grid, row, rowIndex, rowKey, isBatch) {
329
329
  super(grid, row, rowIndex, rowKey);
330
330
  this.isBatch = isBatch;
@@ -354,7 +354,7 @@ export class BeforeDataLoadEventArgs extends CancelableGridEventArgs {
354
354
  /** The RunView parameters that will be used */
355
355
  params;
356
356
  /** Set to modify the parameters before loading */
357
- modifiedParams;
357
+ modifiedParams; // case-violation-ok-legacy-back-compat: an accessor cannot be optional, so a stub would turn this into a required member
358
358
  constructor(grid, params) {
359
359
  super(grid);
360
360
  this.params = { ...params };
@@ -369,11 +369,11 @@ export class AfterDataLoadEventArgs extends GridEventArgs {
369
369
  /** Whether the load was successful */
370
370
  success;
371
371
  /** Total number of rows matching the query */
372
- totalRowCount;
372
+ totalRowCount; // case-violation-ok-legacy-back-compat: object literals are assigned to this class, so an accessor stub changes what they must supply
373
373
  /** Number of rows actually loaded (may be limited by maxRows) */
374
- loadedRowCount;
374
+ loadedRowCount; // case-violation-ok-legacy-back-compat: object literals are assigned to this class, so an accessor stub changes what they must supply
375
375
  /** Time taken to load in milliseconds */
376
- loadTimeMs;
376
+ loadTimeMs; // case-violation-ok-legacy-back-compat: object literals are assigned to this class, so an accessor stub changes what they must supply
377
377
  /** Error message if load failed */
378
378
  error;
379
379
  constructor(grid, params, success, totalRowCount, loadedRowCount, loadTimeMs, error) {
@@ -391,7 +391,7 @@ export class AfterDataLoadEventArgs extends GridEventArgs {
391
391
  */
392
392
  export class BeforeDataRefreshEventArgs extends CancelableGridEventArgs {
393
393
  /** Whether this is an auto-refresh from parameter changes */
394
- isAutoRefresh;
394
+ isAutoRefresh; // case-violation-ok-legacy-back-compat: object literals are assigned to this class, so an accessor stub changes what they must supply
395
395
  constructor(grid, isAutoRefresh) {
396
396
  super(grid);
397
397
  this.isAutoRefresh = isAutoRefresh;
@@ -404,9 +404,9 @@ export class AfterDataRefreshEventArgs extends GridEventArgs {
404
404
  /** Whether the refresh was successful */
405
405
  success;
406
406
  /** Total number of rows after refresh */
407
- totalRowCount;
407
+ totalRowCount; // case-violation-ok-legacy-back-compat: object literals are assigned to this class, so an accessor stub changes what they must supply
408
408
  /** Time taken to refresh in milliseconds */
409
- loadTimeMs;
409
+ loadTimeMs; // case-violation-ok-legacy-back-compat: object literals are assigned to this class, so an accessor stub changes what they must supply
410
410
  constructor(grid, success, totalRowCount, loadTimeMs) {
411
411
  super(grid);
412
412
  this.success = success;
@@ -422,13 +422,13 @@ export class AfterDataRefreshEventArgs extends GridEventArgs {
422
422
  */
423
423
  export class BeforeSortEventArgs extends CancelableGridEventArgs {
424
424
  /** The column being sorted */
425
- column;
425
+ column; // case-violation-ok-legacy-back-compat: object literals are assigned to this class, so an accessor stub changes what they must supply
426
426
  /** The new sort direction */
427
427
  direction;
428
428
  /** Whether this is a multi-sort operation (shift+click) */
429
- isMultiSort;
429
+ isMultiSort; // case-violation-ok-legacy-back-compat: object literals are assigned to this class, so an accessor stub changes what they must supply
430
430
  /** Current sort state before change */
431
- currentSortState;
431
+ currentSortState; // case-violation-ok-legacy-back-compat: object literals are assigned to this class, so an accessor stub changes what they must supply
432
432
  constructor(grid, column, direction, isMultiSort, currentSortState) {
433
433
  super(grid);
434
434
  this.column = column;
@@ -442,11 +442,11 @@ export class BeforeSortEventArgs extends CancelableGridEventArgs {
442
442
  */
443
443
  export class AfterSortEventArgs extends GridEventArgs {
444
444
  /** The column that was sorted */
445
- column;
445
+ column; // case-violation-ok-legacy-back-compat: object literals are assigned to this class, so an accessor stub changes what they must supply
446
446
  /** The new sort direction */
447
447
  direction;
448
448
  /** New sort state */
449
- newSortState;
449
+ newSortState; // case-violation-ok-legacy-back-compat: object literals are assigned to this class, so an accessor stub changes what they must supply
450
450
  constructor(grid, column, direction, newSortState) {
451
451
  super(grid);
452
452
  this.column = column;
@@ -462,11 +462,11 @@ export class AfterSortEventArgs extends GridEventArgs {
462
462
  */
463
463
  export class BeforeColumnReorderEventArgs extends CancelableGridEventArgs {
464
464
  /** The column being moved */
465
- column;
465
+ column; // case-violation-ok-legacy-back-compat: object literals are assigned to this class, so an accessor stub changes what they must supply
466
466
  /** Original index */
467
- fromIndex;
467
+ fromIndex; // case-violation-ok-legacy-back-compat: object literals are assigned to this class, so an accessor stub changes what they must supply
468
468
  /** Target index */
469
- toIndex;
469
+ toIndex; // case-violation-ok-legacy-back-compat: object literals are assigned to this class, so an accessor stub changes what they must supply
470
470
  constructor(grid, column, fromIndex, toIndex) {
471
471
  super(grid);
472
472
  this.column = column;
@@ -479,11 +479,11 @@ export class BeforeColumnReorderEventArgs extends CancelableGridEventArgs {
479
479
  */
480
480
  export class AfterColumnReorderEventArgs extends GridEventArgs {
481
481
  /** The column that was moved */
482
- column;
482
+ column; // case-violation-ok-legacy-back-compat: object literals are assigned to this class, so an accessor stub changes what they must supply
483
483
  /** Original index */
484
- fromIndex;
484
+ fromIndex; // case-violation-ok-legacy-back-compat: object literals are assigned to this class, so an accessor stub changes what they must supply
485
485
  /** New index */
486
- toIndex;
486
+ toIndex; // case-violation-ok-legacy-back-compat: object literals are assigned to this class, so an accessor stub changes what they must supply
487
487
  constructor(grid, column, fromIndex, toIndex) {
488
488
  super(grid);
489
489
  this.column = column;
@@ -496,11 +496,11 @@ export class AfterColumnReorderEventArgs extends GridEventArgs {
496
496
  */
497
497
  export class BeforeColumnResizeEventArgs extends CancelableGridEventArgs {
498
498
  /** The column being resized */
499
- column;
499
+ column; // case-violation-ok-legacy-back-compat: object literals are assigned to this class, so an accessor stub changes what they must supply
500
500
  /** Original width */
501
- oldWidth;
501
+ oldWidth; // case-violation-ok-legacy-back-compat: object literals are assigned to this class, so an accessor stub changes what they must supply
502
502
  /** New width */
503
- newWidth;
503
+ newWidth; // case-violation-ok-legacy-back-compat: object literals are assigned to this class, so an accessor stub changes what they must supply
504
504
  constructor(grid, column, oldWidth, newWidth) {
505
505
  super(grid);
506
506
  this.column = column;
@@ -513,11 +513,11 @@ export class BeforeColumnResizeEventArgs extends CancelableGridEventArgs {
513
513
  */
514
514
  export class AfterColumnResizeEventArgs extends GridEventArgs {
515
515
  /** The column that was resized */
516
- column;
516
+ column; // case-violation-ok-legacy-back-compat: object literals are assigned to this class, so an accessor stub changes what they must supply
517
517
  /** Original width */
518
- oldWidth;
518
+ oldWidth; // case-violation-ok-legacy-back-compat: object literals are assigned to this class, so an accessor stub changes what they must supply
519
519
  /** New width */
520
- newWidth;
520
+ newWidth; // case-violation-ok-legacy-back-compat: object literals are assigned to this class, so an accessor stub changes what they must supply
521
521
  constructor(grid, column, oldWidth, newWidth) {
522
522
  super(grid);
523
523
  this.column = column;
@@ -530,9 +530,9 @@ export class AfterColumnResizeEventArgs extends GridEventArgs {
530
530
  */
531
531
  export class BeforeColumnVisibilityChangeEventArgs extends CancelableGridEventArgs {
532
532
  /** The column being shown/hidden */
533
- column;
533
+ column; // case-violation-ok-legacy-back-compat: object literals are assigned to this class, so an accessor stub changes what they must supply
534
534
  /** New visibility state */
535
- newVisibility;
535
+ newVisibility; // case-violation-ok-legacy-back-compat: object literals are assigned to this class, so an accessor stub changes what they must supply
536
536
  constructor(grid, column, newVisibility) {
537
537
  super(grid);
538
538
  this.column = column;
@@ -544,9 +544,9 @@ export class BeforeColumnVisibilityChangeEventArgs extends CancelableGridEventAr
544
544
  */
545
545
  export class AfterColumnVisibilityChangeEventArgs extends GridEventArgs {
546
546
  /** The column that was shown/hidden */
547
- column;
547
+ column; // case-violation-ok-legacy-back-compat: object literals are assigned to this class, so an accessor stub changes what they must supply
548
548
  /** New visibility state */
549
- newVisibility;
549
+ newVisibility; // case-violation-ok-legacy-back-compat: object literals are assigned to this class, so an accessor stub changes what they must supply
550
550
  constructor(grid, column, newVisibility) {
551
551
  super(grid);
552
552
  this.column = column;
@@ -1 +1 @@
1
- {"version":3,"file":"grid-events.js","sourceRoot":"","sources":["../../../../src/lib/entity-data-grid/events/grid-events.ts"],"names":[],"mappings":"AAMA,2CAA2C;AAC3C,qBAAqB;AACrB,2CAA2C;AAE3C;;GAEG;AACH,MAAM,OAAO,aAAa;IACxB,+CAA+C;IACtC,IAAI,CAAmB;IAEhC,sCAAsC;IAC7B,SAAS,CAAO;IAEzB,YAAY,IAAsB;QAChC,IAAI,CAAC,IAAI,GAAG,IAAI,CAAC;QACjB,IAAI,CAAC,SAAS,GAAG,IAAI,IAAI,EAAE,CAAC;IAC9B,CAAC;CACF;AAED;;GAEG;AACH,MAAM,OAAO,uBAAwB,SAAQ,aAAa;IACxD,0CAA0C;IAC1C,MAAM,GAAY,KAAK,CAAC;IAExB,+DAA+D;IAC/D,YAAY,CAAU;IAEtB,YAAY,IAAsB;QAChC,KAAK,CAAC,IAAI,CAAC,CAAC;IACd,CAAC;CACF;AAED;;GAEG;AACH,MAAM,OAAO,YAAa,SAAQ,aAAa;IAC7C,4BAA4B;IACnB,GAAG,CAA0B;IAEtC,wCAAwC;IAC/B,QAAQ,CAAS;IAE1B,uBAAuB;IACd,MAAM,CAAS;IAExB,YAA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;IACP,QAAQ,CAAS;IAE1B,YACE,IAAsB,EACtB,MAAwB,EACxB,QAAgB,EAChB,QAAgB;QAEhB,KAAK,CAAC,IAAI,CAAC,CAAC;QACZ,IAAI,CAAC,MAAM,GAAG,MAAM,CAAC;QACrB,IAAI,CAAC,QAAQ,GAAG,QAAQ,CAAC;QACzB,IAAI,CAAC,QAAQ,GAAG,QAAQ,CAAC;IAC3B,CAAC;CACF;AAED;;GAEG;AACH,MAAM,OAAO,qCAAsC,SAAQ,uBAAuB;IAChF,oCAAoC;IAC3B,MAAM,CAAmB;IAElC,2BAA2B;IAClB,aAAa,CAAU;IAEhC,YACE,IAAsB,EACtB,MAAwB,EACxB,aAAsB;QAEtB,KAAK,CAAC,IAAI,CAAC,CAAC;QACZ,IAAI,CAAC,MAAM,GAAG,MAAM,CAAC;QACrB,IAAI,CAAC,aAAa,GAAG,aAAa,CAAC;IACrC,CAAC;CACF;AAED;;GAEG;AACH,MAAM,OAAO,oCAAqC,SAAQ,aAAa;IACrE,uCAAuC;IAC9B,MAAM,CAAmB;IAElC,2BAA2B;IAClB,aAAa,CAAU;IAEhC,YACE,IAAsB,EACtB,MAAwB,EACxB,aAAsB;QAEtB,KAAK,CAAC,IAAI,CAAC,CAAC;QACZ,IAAI,CAAC,MAAM,GAAG,MAAM,CAAC;QACrB,IAAI,CAAC,aAAa,GAAG,aAAa,CAAC;IACrC,CAAC;CACF","sourcesContent":["import { GridColumnConfig, DataGridSortState, GridRunViewParams } from '../models/grid-types';\n\n// Forward declaration to avoid circular dependency\n// The actual component type is set at runtime\nexport type GridComponentRef = unknown;\n\n// ========================================\n// Base Event Classes\n// ========================================\n\n/**\n * Base class for all grid events\n */\nexport class GridEventArgs {\n /** The grid component that raised the event */\n readonly grid: GridComponentRef;\n\n /** Timestamp when event was raised */\n readonly timestamp: Date;\n\n constructor(grid: GridComponentRef) {\n this.grid = grid;\n this.timestamp = new Date();\n }\n}\n\n/**\n * Base class for cancelable events (Before events)\n */\nexport class CancelableGridEventArgs extends GridEventArgs {\n /** Set to true to cancel the operation */\n cancel: boolean = false;\n\n /** Optional reason for cancellation (for logging/debugging) */\n cancelReason?: string;\n\n constructor(grid: GridComponentRef) {\n super(grid);\n }\n}\n\n/**\n * Base class for row-related events\n */\nexport class RowEventArgs extends GridEventArgs {\n /** The row data (entity) */\n readonly row: Record<string, unknown>;\n\n /** The row index in the current view */\n readonly rowIndex: number;\n\n /** The row key (ID) */\n readonly rowKey: string;\n\n constructor(grid: GridComponentRef, row: Record<string, unknown>, rowIndex: number, rowKey: string) {\n super(grid);\n this.row = row;\n this.rowIndex = rowIndex;\n this.rowKey = rowKey;\n }\n}\n\n/**\n * Base class for cancelable row events\n */\nexport class CancelableRowEventArgs extends RowEventArgs {\n /** Set to true to cancel the operation */\n cancel: boolean = false;\n\n /** Optional reason for cancellation */\n cancelReason?: string;\n\n constructor(grid: GridComponentRef, row: Record<string, unknown>, rowIndex: number, rowKey: string) {\n super(grid, row, rowIndex, rowKey);\n }\n}\n\n// ========================================\n// Row Selection Events\n// ========================================\n\n/**\n * Fired before a row is selected - can be canceled\n */\nexport class BeforeRowSelectEventArgs extends CancelableRowEventArgs {\n /** Whether this is adding to selection (multi-select) or replacing */\n readonly isAdditive: boolean;\n\n /** Current selection before this change */\n readonly currentSelection: string[];\n\n constructor(\n grid: GridComponentRef,\n row: Record<string, unknown>,\n rowIndex: number,\n rowKey: string,\n isAdditive: boolean,\n currentSelection: string[]\n ) {\n super(grid, row, rowIndex, rowKey);\n this.isAdditive = isAdditive;\n this.currentSelection = [...currentSelection];\n }\n}\n\n/**\n * Fired after a row is selected\n */\nexport class AfterRowSelectEventArgs extends RowEventArgs {\n /** Whether this was additive selection */\n readonly wasAdditive: boolean;\n\n /** New selection state */\n readonly newSelection: string[];\n\n /** Previous selection state */\n readonly previousSelection: string[];\n\n constructor(\n grid: GridComponentRef,\n row: Record<string, unknown>,\n rowIndex: number,\n rowKey: string,\n wasAdditive: boolean,\n newSelection: string[],\n previousSelection: string[]\n ) {\n super(grid, row, rowIndex, rowKey);\n this.wasAdditive = wasAdditive;\n this.newSelection = [...newSelection];\n this.previousSelection = [...previousSelection];\n }\n}\n\n/**\n * Fired before a row is deselected - can be canceled\n */\nexport class BeforeRowDeselectEventArgs extends CancelableRowEventArgs {\n /** Current selection before this change */\n readonly currentSelection: string[];\n\n constructor(\n grid: GridComponentRef,\n row: Record<string, unknown>,\n rowIndex: number,\n rowKey: string,\n currentSelection: string[]\n ) {\n super(grid, row, rowIndex, rowKey);\n this.currentSelection = [...currentSelection];\n }\n}\n\n/**\n * Fired after a row is deselected\n */\nexport class AfterRowDeselectEventArgs extends RowEventArgs {\n /** New selection state */\n readonly newSelection: string[];\n\n /** Previous selection state */\n readonly previousSelection: string[];\n\n constructor(\n grid: GridComponentRef,\n row: Record<string, unknown>,\n rowIndex: number,\n rowKey: string,\n newSelection: string[],\n previousSelection: string[]\n ) {\n super(grid, row, rowIndex, rowKey);\n this.newSelection = [...newSelection];\n this.previousSelection = [...previousSelection];\n }\n}\n\n// ========================================\n// Row Click Events\n// ========================================\n\n/**\n * Fired before a row click is processed - can be canceled\n */\nexport class BeforeRowClickEventArgs extends CancelableRowEventArgs {\n /** The mouse event */\n readonly mouseEvent: MouseEvent;\n\n /** The column that was clicked (if any) */\n readonly column?: GridColumnConfig;\n\n /** The cell value that was clicked (if any) */\n readonly cellValue?: unknown;\n\n constructor(\n grid: GridComponentRef,\n row: Record<string, unknown>,\n rowIndex: number,\n rowKey: string,\n mouseEvent: MouseEvent,\n column?: GridColumnConfig,\n cellValue?: unknown\n ) {\n super(grid, row, rowIndex, rowKey);\n this.mouseEvent = mouseEvent;\n this.column = column;\n this.cellValue = cellValue;\n }\n}\n\n/**\n * Fired after a row click\n */\nexport class AfterRowClickEventArgs extends RowEventArgs {\n /** The mouse event */\n readonly mouseEvent: MouseEvent;\n\n /** The column that was clicked (if any) */\n readonly column?: GridColumnConfig;\n\n /** The cell value that was clicked (if any) */\n readonly cellValue?: unknown;\n\n constructor(\n grid: GridComponentRef,\n row: Record<string, unknown>,\n rowIndex: number,\n rowKey: string,\n mouseEvent: MouseEvent,\n column?: GridColumnConfig,\n cellValue?: unknown\n ) {\n super(grid, row, rowIndex, rowKey);\n this.mouseEvent = mouseEvent;\n this.column = column;\n this.cellValue = cellValue;\n }\n}\n\n/**\n * Fired before a row double-click - can be canceled\n */\nexport class BeforeRowDoubleClickEventArgs extends CancelableRowEventArgs {\n /** The mouse event */\n readonly mouseEvent: MouseEvent;\n\n /** The column that was clicked (if any) */\n readonly column?: GridColumnConfig;\n\n /** The cell value that was clicked (if any) */\n readonly cellValue?: unknown;\n\n constructor(\n grid: GridComponentRef,\n row: Record<string, unknown>,\n rowIndex: number,\n rowKey: string,\n mouseEvent: MouseEvent,\n column?: GridColumnConfig,\n cellValue?: unknown\n ) {\n super(grid, row, rowIndex, rowKey);\n this.mouseEvent = mouseEvent;\n this.column = column;\n this.cellValue = cellValue;\n }\n}\n\n/**\n * Fired after a row double-click\n */\nexport class AfterRowDoubleClickEventArgs extends RowEventArgs {\n /** The mouse event */\n readonly mouseEvent: MouseEvent;\n\n /** The column that was clicked (if any) */\n readonly column?: GridColumnConfig;\n\n /** The cell value that was clicked (if any) */\n readonly cellValue?: unknown;\n\n constructor(\n grid: GridComponentRef,\n row: Record<string, unknown>,\n rowIndex: number,\n rowKey: string,\n mouseEvent: MouseEvent,\n column?: GridColumnConfig,\n cellValue?: unknown\n ) {\n super(grid, row, rowIndex, rowKey);\n this.mouseEvent = mouseEvent;\n this.column = column;\n this.cellValue = cellValue;\n }\n}\n\n// ========================================\n// Cell Editing Events\n// ========================================\n\n/**\n * Fired before cell edit begins - can be canceled\n */\nexport class BeforeCellEditEventArgs extends CancelableRowEventArgs {\n /** The column being edited */\n readonly column: GridColumnConfig;\n\n /** Current value in the cell */\n readonly currentValue: unknown;\n\n constructor(\n grid: GridComponentRef,\n row: Record<string, unknown>,\n rowIndex: number,\n rowKey: string,\n column: GridColumnConfig,\n currentValue: unknown\n ) {\n super(grid, row, rowIndex, rowKey);\n this.column = column;\n this.currentValue = currentValue;\n }\n}\n\n/**\n * Fired after cell edit begins\n */\nexport class AfterCellEditBeginEventArgs extends RowEventArgs {\n /** The column being edited */\n readonly column: GridColumnConfig;\n\n /** Current value in the cell */\n readonly currentValue: unknown;\n\n constructor(\n grid: GridComponentRef,\n row: Record<string, unknown>,\n rowIndex: number,\n rowKey: string,\n column: GridColumnConfig,\n currentValue: unknown\n ) {\n super(grid, row, rowIndex, rowKey);\n this.column = column;\n this.currentValue = currentValue;\n }\n}\n\n/**\n * Fired before cell edit is committed - can be canceled or value modified\n */\nexport class BeforeCellEditCommitEventArgs extends CancelableRowEventArgs {\n /** The column being edited */\n readonly column: GridColumnConfig;\n\n /** Original value before edit */\n readonly oldValue: unknown;\n\n /** New value being committed */\n readonly newValue: unknown;\n\n /** Set to modify the value before committing */\n modifiedValue?: unknown;\n\n constructor(\n grid: GridComponentRef,\n row: Record<string, unknown>,\n rowIndex: number,\n rowKey: string,\n column: GridColumnConfig,\n oldValue: unknown,\n newValue: unknown\n ) {\n super(grid, row, rowIndex, rowKey);\n this.column = column;\n this.oldValue = oldValue;\n this.newValue = newValue;\n }\n}\n\n/**\n * Fired after cell edit is committed\n */\nexport class AfterCellEditCommitEventArgs extends RowEventArgs {\n /** The column that was edited */\n readonly column: GridColumnConfig;\n\n /** Original value before edit */\n readonly oldValue: unknown;\n\n /** New value that was committed */\n readonly newValue: unknown;\n\n constructor(\n grid: GridComponentRef,\n row: Record<string, unknown>,\n rowIndex: number,\n rowKey: string,\n column: GridColumnConfig,\n oldValue: unknown,\n newValue: unknown\n ) {\n super(grid, row, rowIndex, rowKey);\n this.column = column;\n this.oldValue = oldValue;\n this.newValue = newValue;\n }\n}\n\n/**\n * Fired before cell edit is canceled - can be canceled (forcing commit instead)\n */\nexport class BeforeCellEditCancelEventArgs extends CancelableRowEventArgs {\n /** The column being edited */\n readonly column: GridColumnConfig;\n\n /** Original value */\n readonly originalValue: unknown;\n\n /** The edited value that would be discarded */\n readonly editedValue: unknown;\n\n constructor(\n grid: GridComponentRef,\n row: Record<string, unknown>,\n rowIndex: number,\n rowKey: string,\n column: GridColumnConfig,\n originalValue: unknown,\n editedValue: unknown\n ) {\n super(grid, row, rowIndex, rowKey);\n this.column = column;\n this.originalValue = originalValue;\n this.editedValue = editedValue;\n }\n}\n\n/**\n * Fired after cell edit is canceled\n */\nexport class AfterCellEditCancelEventArgs extends RowEventArgs {\n /** The column that was being edited */\n readonly column: GridColumnConfig;\n\n /** Original value that was restored */\n readonly originalValue: unknown;\n\n /** The edited value that was discarded */\n readonly editedValue: unknown;\n\n constructor(\n grid: GridComponentRef,\n row: Record<string, unknown>,\n rowIndex: number,\n rowKey: string,\n column: GridColumnConfig,\n originalValue: unknown,\n editedValue: unknown\n ) {\n super(grid, row, rowIndex, rowKey);\n this.column = column;\n this.originalValue = originalValue;\n this.editedValue = editedValue;\n }\n}\n\n// ========================================\n// Row Save/Delete Events\n// ========================================\n\n/**\n * Fired before row save - can be canceled or values modified\n */\nexport class BeforeRowSaveEventArgs extends CancelableRowEventArgs {\n /** The changes being saved */\n readonly changes: Record<string, { oldValue: unknown; newValue: unknown }>;\n\n /** Set to modify values before saving */\n modifiedValues?: Record<string, unknown>;\n\n constructor(\n grid: GridComponentRef,\n row: Record<string, unknown>,\n rowIndex: number,\n rowKey: string,\n changes: Record<string, { oldValue: unknown; newValue: unknown }>\n ) {\n super(grid, row, rowIndex, rowKey);\n this.changes = { ...changes };\n }\n}\n\n/**\n * Fired after row save\n */\nexport class AfterRowSaveEventArgs extends RowEventArgs {\n /** The changes that were saved */\n readonly changes: Record<string, { oldValue: unknown; newValue: unknown }>;\n\n /** Whether the save was successful */\n readonly success: boolean;\n\n /** Error message if save failed */\n readonly error?: string;\n\n constructor(\n grid: GridComponentRef,\n row: Record<string, unknown>,\n rowIndex: number,\n rowKey: string,\n changes: Record<string, { oldValue: unknown; newValue: unknown }>,\n success: boolean,\n error?: string\n ) {\n super(grid, row, rowIndex, rowKey);\n this.changes = { ...changes };\n this.success = success;\n this.error = error;\n }\n}\n\n/**\n * Fired before row delete - can be canceled\n */\nexport class BeforeRowDeleteEventArgs extends CancelableRowEventArgs {\n /** Whether this is part of a batch delete */\n readonly isBatch: boolean;\n\n constructor(\n grid: GridComponentRef,\n row: Record<string, unknown>,\n rowIndex: number,\n rowKey: string,\n isBatch: boolean\n ) {\n super(grid, row, rowIndex, rowKey);\n this.isBatch = isBatch;\n }\n}\n\n/**\n * Fired after row delete\n */\nexport class AfterRowDeleteEventArgs extends RowEventArgs {\n /** Whether the delete was successful */\n readonly success: boolean;\n\n /** Error message if delete failed */\n readonly error?: string;\n\n constructor(\n grid: GridComponentRef,\n row: Record<string, unknown>,\n rowIndex: number,\n rowKey: string,\n success: boolean,\n error?: string\n ) {\n super(grid, row, rowIndex, rowKey);\n this.success = success;\n this.error = error;\n }\n}\n\n// ========================================\n// Data Loading Events\n// ========================================\n\n/**\n * Fired before data load - can be canceled or params modified\n */\nexport class BeforeDataLoadEventArgs extends CancelableGridEventArgs {\n /** The RunView parameters that will be used */\n readonly params: GridRunViewParams;\n\n /** Set to modify the parameters before loading */\n modifiedParams?: Partial<GridRunViewParams>;\n\n constructor(grid: GridComponentRef, params: GridRunViewParams) {\n super(grid);\n this.params = { ...params };\n }\n}\n\n/**\n * Fired after data load\n */\nexport class AfterDataLoadEventArgs extends GridEventArgs {\n /** The RunView parameters that were used */\n readonly params: GridRunViewParams;\n\n /** Whether the load was successful */\n readonly success: boolean;\n\n /** Total number of rows matching the query */\n readonly totalRowCount: number;\n\n /** Number of rows actually loaded (may be limited by maxRows) */\n readonly loadedRowCount: number;\n\n /** Time taken to load in milliseconds */\n readonly loadTimeMs: number;\n\n /** Error message if load failed */\n readonly error?: string;\n\n constructor(\n grid: GridComponentRef,\n params: GridRunViewParams,\n success: boolean,\n totalRowCount: number,\n loadedRowCount: number,\n loadTimeMs: number,\n error?: string\n ) {\n super(grid);\n this.params = { ...params };\n this.success = success;\n this.totalRowCount = totalRowCount;\n this.loadedRowCount = loadedRowCount;\n this.loadTimeMs = loadTimeMs;\n this.error = error;\n }\n}\n\n/**\n * Fired before data refresh (reload) - can be canceled\n */\nexport class BeforeDataRefreshEventArgs extends CancelableGridEventArgs {\n /** Whether this is an auto-refresh from parameter changes */\n readonly isAutoRefresh: boolean;\n\n constructor(grid: GridComponentRef, isAutoRefresh: boolean) {\n super(grid);\n this.isAutoRefresh = isAutoRefresh;\n }\n}\n\n/**\n * Fired after data refresh\n */\nexport class AfterDataRefreshEventArgs extends GridEventArgs {\n /** Whether the refresh was successful */\n readonly success: boolean;\n\n /** Total number of rows after refresh */\n readonly totalRowCount: number;\n\n /** Time taken to refresh in milliseconds */\n readonly loadTimeMs: number;\n\n constructor(\n grid: GridComponentRef,\n success: boolean,\n totalRowCount: number,\n loadTimeMs: number\n ) {\n super(grid);\n this.success = success;\n this.totalRowCount = totalRowCount;\n this.loadTimeMs = loadTimeMs;\n }\n}\n\n// ========================================\n// Sorting Events\n// ========================================\n\n/**\n * Fired before sort - can be canceled\n */\nexport class BeforeSortEventArgs extends CancelableGridEventArgs {\n /** The column being sorted */\n readonly column: GridColumnConfig;\n\n /** The new sort direction */\n readonly direction: 'asc' | 'desc' | 'none';\n\n /** Whether this is a multi-sort operation (shift+click) */\n readonly isMultiSort: boolean;\n\n /** Current sort state before change */\n readonly currentSortState: DataGridSortState[];\n\n constructor(\n grid: GridComponentRef,\n column: GridColumnConfig,\n direction: 'asc' | 'desc' | 'none',\n isMultiSort: boolean,\n currentSortState: DataGridSortState[]\n ) {\n super(grid);\n this.column = column;\n this.direction = direction;\n this.isMultiSort = isMultiSort;\n this.currentSortState = [...currentSortState];\n }\n}\n\n/**\n * Fired after sort\n */\nexport class AfterSortEventArgs extends GridEventArgs {\n /** The column that was sorted */\n readonly column: GridColumnConfig;\n\n /** The new sort direction */\n readonly direction: 'asc' | 'desc' | 'none';\n\n /** New sort state */\n readonly newSortState: DataGridSortState[];\n\n constructor(\n grid: GridComponentRef,\n column: GridColumnConfig,\n direction: 'asc' | 'desc' | 'none',\n newSortState: DataGridSortState[]\n ) {\n super(grid);\n this.column = column;\n this.direction = direction;\n this.newSortState = [...newSortState];\n }\n}\n\n// ========================================\n// Column Events\n// ========================================\n\n/**\n * Fired before column reorder - can be canceled\n */\nexport class BeforeColumnReorderEventArgs extends CancelableGridEventArgs {\n /** The column being moved */\n readonly column: GridColumnConfig;\n\n /** Original index */\n readonly fromIndex: number;\n\n /** Target index */\n readonly toIndex: number;\n\n constructor(\n grid: GridComponentRef,\n column: GridColumnConfig,\n fromIndex: number,\n toIndex: number\n ) {\n super(grid);\n this.column = column;\n this.fromIndex = fromIndex;\n this.toIndex = toIndex;\n }\n}\n\n/**\n * Fired after column reorder\n */\nexport class AfterColumnReorderEventArgs extends GridEventArgs {\n /** The column that was moved */\n readonly column: GridColumnConfig;\n\n /** Original index */\n readonly fromIndex: number;\n\n /** New index */\n readonly toIndex: number;\n\n constructor(\n grid: GridComponentRef,\n column: GridColumnConfig,\n fromIndex: number,\n toIndex: number\n ) {\n super(grid);\n this.column = column;\n this.fromIndex = fromIndex;\n this.toIndex = toIndex;\n }\n}\n\n/**\n * Fired before column resize - can be canceled\n */\nexport class BeforeColumnResizeEventArgs extends CancelableGridEventArgs {\n /** The column being resized */\n readonly column: GridColumnConfig;\n\n /** Original width */\n readonly oldWidth: number;\n\n /** New width */\n readonly newWidth: number;\n\n constructor(\n grid: GridComponentRef,\n column: GridColumnConfig,\n oldWidth: number,\n newWidth: number\n ) {\n super(grid);\n this.column = column;\n this.oldWidth = oldWidth;\n this.newWidth = newWidth;\n }\n}\n\n/**\n * Fired after column resize\n */\nexport class AfterColumnResizeEventArgs extends GridEventArgs {\n /** The column that was resized */\n readonly column: GridColumnConfig;\n\n /** Original width */\n readonly oldWidth: number;\n\n /** New width */\n readonly newWidth: number;\n\n constructor(\n grid: GridComponentRef,\n column: GridColumnConfig,\n oldWidth: number,\n newWidth: number\n ) {\n super(grid);\n this.column = column;\n this.oldWidth = oldWidth;\n this.newWidth = newWidth;\n }\n}\n\n/**\n * Fired before column visibility change - can be canceled\n */\nexport class BeforeColumnVisibilityChangeEventArgs extends CancelableGridEventArgs {\n /** The column being shown/hidden */\n readonly column: GridColumnConfig;\n\n /** New visibility state */\n readonly newVisibility: boolean;\n\n constructor(\n grid: GridComponentRef,\n column: GridColumnConfig,\n newVisibility: boolean\n ) {\n super(grid);\n this.column = column;\n this.newVisibility = newVisibility;\n }\n}\n\n/**\n * Fired after column visibility change\n */\nexport class AfterColumnVisibilityChangeEventArgs extends GridEventArgs {\n /** The column that was shown/hidden */\n readonly column: GridColumnConfig;\n\n /** New visibility state */\n readonly newVisibility: boolean;\n\n constructor(\n grid: GridComponentRef,\n column: GridColumnConfig,\n newVisibility: boolean\n ) {\n super(grid);\n this.column = column;\n this.newVisibility = newVisibility;\n }\n}\n"]}
1
+ {"version":3,"file":"grid-events.js","sourceRoot":"","sources":["../../../../src/lib/entity-data-grid/events/grid-events.ts"],"names":[],"mappings":"AAMA,2CAA2C;AAC3C,qBAAqB;AACrB,2CAA2C;AAE3C;;GAEG;AACH,MAAM,OAAO,aAAa;IACxB,+CAA+C;IACtC,IAAI,CAAmB,CAAE,sIAAsI;IAExK,sCAAsC;IAC7B,SAAS,CAAO,CAAE,sIAAsI;IAEjK,YAAY,IAAsB;QAChC,IAAI,CAAC,IAAI,GAAG,IAAI,CAAC;QACjB,IAAI,CAAC,SAAS,GAAG,IAAI,IAAI,EAAE,CAAC;IAC9B,CAAC;CACF;AAED;;GAEG;AACH,MAAM,OAAO,uBAAwB,SAAQ,aAAa;IACxD,0CAA0C;IAC1C,MAAM,GAAY,KAAK,CAAC;IAExB,+DAA+D;IAC/D,YAAY,CAAU;IAEtB,YAAY,IAAsB;QAChC,KAAK,CAAC,IAAI,CAAC,CAAC;IACd,CAAC;CACF;AAED;;GAEG;AACH,MAAM,OAAO,YAAa,SAAQ,aAAa;IAC7C,4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IAC3B,CAAC;CACF;AAED;;GAEG;AACH,MAAM,OAAO,qCAAsC,SAAQ,uBAAuB;IAChF,oCAAoC;IAC3B,MAAM,CAAmB,CAAE,sIAAsI;IAE1K,2BAA2B;IAClB,aAAa,CAAU,CAAE,sIAAsI;IAExK,YACE,IAAsB,EACtB,MAAwB,EACxB,aAAsB;QAEtB,KAAK,CAAC,IAAI,CAAC,CAAC;QACZ,IAAI,CAAC,MAAM,GAAG,MAAM,CAAC;QACrB,IAAI,CAAC,aAAa,GAAG,aAAa,CAAC;IACrC,CAAC;CACF;AAED;;GAEG;AACH,MAAM,OAAO,oCAAqC,SAAQ,aAAa;IACrE,uCAAuC;IAC9B,MAAM,CAAmB,CAAE,sIAAsI;IAE1K,2BAA2B;IAClB,aAAa,CAAU,CAAE,sIAAsI;IAExK,YACE,IAAsB,EACtB,MAAwB,EACxB,aAAsB;QAEtB,KAAK,CAAC,IAAI,CAAC,CAAC;QACZ,IAAI,CAAC,MAAM,GAAG,MAAM,CAAC;QACrB,IAAI,CAAC,aAAa,GAAG,aAAa,CAAC;IACrC,CAAC;CACF","sourcesContent":["import { GridColumnConfig, DataGridSortState, GridRunViewParams } from '../models/grid-types';\n\n// Forward declaration to avoid circular dependency\n// The actual component type is set at runtime\nexport type GridComponentRef = unknown;\n\n// ========================================\n// Base Event Classes\n// ========================================\n\n/**\n * Base class for all grid events\n */\nexport class GridEventArgs {\n /** The grid component that raised the event */\n readonly grid: GridComponentRef; // case-violation-ok-legacy-back-compat: object literals are assigned to this class, so an accessor stub changes what they must supply\n\n /** Timestamp when event was raised */\n readonly timestamp: Date; // case-violation-ok-legacy-back-compat: object literals are assigned to this class, so an accessor stub changes what they must supply\n\n constructor(grid: GridComponentRef) {\n this.grid = grid;\n this.timestamp = new Date();\n }\n}\n\n/**\n * Base class for cancelable events (Before events)\n */\nexport class CancelableGridEventArgs extends GridEventArgs {\n /** Set to true to cancel the operation */\n cancel: boolean = false;\n\n /** Optional reason for cancellation (for logging/debugging) */\n cancelReason?: string;\n\n constructor(grid: GridComponentRef) {\n super(grid);\n }\n}\n\n/**\n * Base class for row-related events\n */\nexport class RowEventArgs extends GridEventArgs {\n /** The row data (entity) */\n readonly row: Record<string, unknown>;\n\n /** The row index in the current view */\n readonly rowIndex: number;\n\n /** The row key (ID) */\n readonly rowKey: string;\n\n constructor(grid: GridComponentRef, row: Record<string, unknown>, rowIndex: number, rowKey: string) {\n super(grid);\n this.row = row;\n this.rowIndex = rowIndex;\n this.rowKey = rowKey;\n }\n}\n\n/**\n * Base class for cancelable row events\n */\nexport class CancelableRowEventArgs extends RowEventArgs {\n /** Set to true to cancel the operation */\n cancel: boolean = false;\n\n /** Optional reason for cancellation */\n cancelReason?: string;\n\n constructor(grid: GridComponentRef, row: Record<string, unknown>, rowIndex: number, rowKey: string) {\n super(grid, row, rowIndex, rowKey);\n }\n}\n\n// ========================================\n// Row Selection Events\n// ========================================\n\n/**\n * Fired before a row is selected - can be canceled\n */\nexport class BeforeRowSelectEventArgs extends CancelableRowEventArgs {\n /** Whether this is adding to selection (multi-select) or replacing */\n readonly isAdditive: boolean; // case-violation-ok-legacy-back-compat: object literals are assigned to this class, so an accessor stub changes what they must supply\n\n /** Current selection before this change */\n readonly currentSelection: string[]; // case-violation-ok-legacy-back-compat: object literals are assigned to this class, so an accessor stub changes what they must supply\n\n constructor(\n grid: GridComponentRef,\n row: Record<string, unknown>,\n rowIndex: number,\n rowKey: string,\n isAdditive: boolean,\n currentSelection: string[]\n ) {\n super(grid, row, rowIndex, rowKey);\n this.isAdditive = isAdditive;\n this.currentSelection = [...currentSelection];\n }\n}\n\n/**\n * Fired after a row is selected\n */\nexport class AfterRowSelectEventArgs extends RowEventArgs {\n /** Whether this was additive selection */\n readonly wasAdditive: boolean; // case-violation-ok-legacy-back-compat: object literals are assigned to this class, so an accessor stub changes what they must supply\n\n /** New selection state */\n readonly newSelection: string[]; // case-violation-ok-legacy-back-compat: object literals are assigned to this class, so an accessor stub changes what they must supply\n\n /** Previous selection state */\n readonly previousSelection: string[]; // case-violation-ok-legacy-back-compat: object literals are assigned to this class, so an accessor stub changes what they must supply\n\n constructor(\n grid: GridComponentRef,\n row: Record<string, unknown>,\n rowIndex: number,\n rowKey: string,\n wasAdditive: boolean,\n newSelection: string[],\n previousSelection: string[]\n ) {\n super(grid, row, rowIndex, rowKey);\n this.wasAdditive = wasAdditive;\n this.newSelection = [...newSelection];\n this.previousSelection = [...previousSelection];\n }\n}\n\n/**\n * Fired before a row is deselected - can be canceled\n */\nexport class BeforeRowDeselectEventArgs extends CancelableRowEventArgs {\n /** Current selection before this change */\n readonly currentSelection: string[]; // case-violation-ok-legacy-back-compat: object literals are assigned to this class, so an accessor stub changes what they must supply\n\n constructor(\n grid: GridComponentRef,\n row: Record<string, unknown>,\n rowIndex: number,\n rowKey: string,\n currentSelection: string[]\n ) {\n super(grid, row, rowIndex, rowKey);\n this.currentSelection = [...currentSelection];\n }\n}\n\n/**\n * Fired after a row is deselected\n */\nexport class AfterRowDeselectEventArgs extends RowEventArgs {\n /** New selection state */\n readonly newSelection: string[]; // case-violation-ok-legacy-back-compat: object literals are assigned to this class, so an accessor stub changes what they must supply\n\n /** Previous selection state */\n readonly previousSelection: string[]; // case-violation-ok-legacy-back-compat: object literals are assigned to this class, so an accessor stub changes what they must supply\n\n constructor(\n grid: GridComponentRef,\n row: Record<string, unknown>,\n rowIndex: number,\n rowKey: string,\n newSelection: string[],\n previousSelection: string[]\n ) {\n super(grid, row, rowIndex, rowKey);\n this.newSelection = [...newSelection];\n this.previousSelection = [...previousSelection];\n }\n}\n\n// ========================================\n// Row Click Events\n// ========================================\n\n/**\n * Fired before a row click is processed - can be canceled\n */\nexport class BeforeRowClickEventArgs extends CancelableRowEventArgs {\n /** The mouse event */\n readonly mouseEvent: MouseEvent; // case-violation-ok-legacy-back-compat: object literals are assigned to this class, so an accessor stub changes what they must supply\n\n /** The column that was clicked (if any) */\n readonly column?: GridColumnConfig; // case-violation-ok-legacy-back-compat: an accessor cannot be optional, so a stub would turn this into a required member\n\n /** The cell value that was clicked (if any) */\n readonly cellValue?: unknown; // case-violation-ok-legacy-back-compat: an accessor cannot be optional, so a stub would turn this into a required member\n\n constructor(\n grid: GridComponentRef,\n row: Record<string, unknown>,\n rowIndex: number,\n rowKey: string,\n mouseEvent: MouseEvent,\n column?: GridColumnConfig,\n cellValue?: unknown\n ) {\n super(grid, row, rowIndex, rowKey);\n this.mouseEvent = mouseEvent;\n this.column = column;\n this.cellValue = cellValue;\n }\n}\n\n/**\n * Fired after a row click\n */\nexport class AfterRowClickEventArgs extends RowEventArgs {\n /** The mouse event */\n readonly mouseEvent: MouseEvent; // case-violation-ok-legacy-back-compat: object literals are assigned to this class, so an accessor stub changes what they must supply\n\n /** The column that was clicked (if any) */\n readonly column?: GridColumnConfig; // case-violation-ok-legacy-back-compat: an accessor cannot be optional, so a stub would turn this into a required member\n\n /** The cell value that was clicked (if any) */\n readonly cellValue?: unknown; // case-violation-ok-legacy-back-compat: an accessor cannot be optional, so a stub would turn this into a required member\n\n constructor(\n grid: GridComponentRef,\n row: Record<string, unknown>,\n rowIndex: number,\n rowKey: string,\n mouseEvent: MouseEvent,\n column?: GridColumnConfig,\n cellValue?: unknown\n ) {\n super(grid, row, rowIndex, rowKey);\n this.mouseEvent = mouseEvent;\n this.column = column;\n this.cellValue = cellValue;\n }\n}\n\n/**\n * Fired before a row double-click - can be canceled\n */\nexport class BeforeRowDoubleClickEventArgs extends CancelableRowEventArgs {\n /** The mouse event */\n readonly mouseEvent: MouseEvent; // case-violation-ok-legacy-back-compat: object literals are assigned to this class, so an accessor stub changes what they must supply\n\n /** The column that was clicked (if any) */\n readonly column?: GridColumnConfig; // case-violation-ok-legacy-back-compat: an accessor cannot be optional, so a stub would turn this into a required member\n\n /** The cell value that was clicked (if any) */\n readonly cellValue?: unknown; // case-violation-ok-legacy-back-compat: an accessor cannot be optional, so a stub would turn this into a required member\n\n constructor(\n grid: GridComponentRef,\n row: Record<string, unknown>,\n rowIndex: number,\n rowKey: string,\n mouseEvent: MouseEvent,\n column?: GridColumnConfig,\n cellValue?: unknown\n ) {\n super(grid, row, rowIndex, rowKey);\n this.mouseEvent = mouseEvent;\n this.column = column;\n this.cellValue = cellValue;\n }\n}\n\n/**\n * Fired after a row double-click\n */\nexport class AfterRowDoubleClickEventArgs extends RowEventArgs {\n /** The mouse event */\n readonly mouseEvent: MouseEvent; // case-violation-ok-legacy-back-compat: object literals are assigned to this class, so an accessor stub changes what they must supply\n\n /** The column that was clicked (if any) */\n readonly column?: GridColumnConfig; // case-violation-ok-legacy-back-compat: an accessor cannot be optional, so a stub would turn this into a required member\n\n /** The cell value that was clicked (if any) */\n readonly cellValue?: unknown; // case-violation-ok-legacy-back-compat: an accessor cannot be optional, so a stub would turn this into a required member\n\n constructor(\n grid: GridComponentRef,\n row: Record<string, unknown>,\n rowIndex: number,\n rowKey: string,\n mouseEvent: MouseEvent,\n column?: GridColumnConfig,\n cellValue?: unknown\n ) {\n super(grid, row, rowIndex, rowKey);\n this.mouseEvent = mouseEvent;\n this.column = column;\n this.cellValue = cellValue;\n }\n}\n\n// ========================================\n// Cell Editing Events\n// ========================================\n\n/**\n * Fired before cell edit begins - can be canceled\n */\nexport class BeforeCellEditEventArgs extends CancelableRowEventArgs {\n /** The column being edited */\n readonly column: GridColumnConfig; // case-violation-ok-legacy-back-compat: object literals are assigned to this class, so an accessor stub changes what they must supply\n\n /** Current value in the cell */\n readonly currentValue: unknown; // case-violation-ok-legacy-back-compat: object literals are assigned to this class, so an accessor stub changes what they must supply\n\n constructor(\n grid: GridComponentRef,\n row: Record<string, unknown>,\n rowIndex: number,\n rowKey: string,\n column: GridColumnConfig,\n currentValue: unknown\n ) {\n super(grid, row, rowIndex, rowKey);\n this.column = column;\n this.currentValue = currentValue;\n }\n}\n\n/**\n * Fired after cell edit begins\n */\nexport class AfterCellEditBeginEventArgs extends RowEventArgs {\n /** The column being edited */\n readonly column: GridColumnConfig; // case-violation-ok-legacy-back-compat: object literals are assigned to this class, so an accessor stub changes what they must supply\n\n /** Current value in the cell */\n readonly currentValue: unknown; // case-violation-ok-legacy-back-compat: object literals are assigned to this class, so an accessor stub changes what they must supply\n\n constructor(\n grid: GridComponentRef,\n row: Record<string, unknown>,\n rowIndex: number,\n rowKey: string,\n column: GridColumnConfig,\n currentValue: unknown\n ) {\n super(grid, row, rowIndex, rowKey);\n this.column = column;\n this.currentValue = currentValue;\n }\n}\n\n/**\n * Fired before cell edit is committed - can be canceled or value modified\n */\nexport class BeforeCellEditCommitEventArgs extends CancelableRowEventArgs {\n /** The column being edited */\n readonly column: GridColumnConfig; // case-violation-ok-legacy-back-compat: object literals are assigned to this class, so an accessor stub changes what they must supply\n\n /** Original value before edit */\n readonly oldValue: unknown;\n\n /** New value being committed */\n readonly newValue: unknown;\n\n /** Set to modify the value before committing */\n modifiedValue?: unknown; // case-violation-ok-legacy-back-compat: an accessor cannot be optional, so a stub would turn this into a required member\n\n constructor(\n grid: GridComponentRef,\n row: Record<string, unknown>,\n rowIndex: number,\n rowKey: string,\n column: GridColumnConfig,\n oldValue: unknown,\n newValue: unknown\n ) {\n super(grid, row, rowIndex, rowKey);\n this.column = column;\n this.oldValue = oldValue;\n this.newValue = newValue;\n }\n}\n\n/**\n * Fired after cell edit is committed\n */\nexport class AfterCellEditCommitEventArgs extends RowEventArgs {\n /** The column that was edited */\n readonly column: GridColumnConfig; // case-violation-ok-legacy-back-compat: object literals are assigned to this class, so an accessor stub changes what they must supply\n\n /** Original value before edit */\n readonly oldValue: unknown;\n\n /** New value that was committed */\n readonly newValue: unknown;\n\n constructor(\n grid: GridComponentRef,\n row: Record<string, unknown>,\n rowIndex: number,\n rowKey: string,\n column: GridColumnConfig,\n oldValue: unknown,\n newValue: unknown\n ) {\n super(grid, row, rowIndex, rowKey);\n this.column = column;\n this.oldValue = oldValue;\n this.newValue = newValue;\n }\n}\n\n/**\n * Fired before cell edit is canceled - can be canceled (forcing commit instead)\n */\nexport class BeforeCellEditCancelEventArgs extends CancelableRowEventArgs {\n /** The column being edited */\n readonly column: GridColumnConfig; // case-violation-ok-legacy-back-compat: object literals are assigned to this class, so an accessor stub changes what they must supply\n\n /** Original value */\n readonly originalValue: unknown; // case-violation-ok-legacy-back-compat: object literals are assigned to this class, so an accessor stub changes what they must supply\n\n /** The edited value that would be discarded */\n readonly editedValue: unknown; // case-violation-ok-legacy-back-compat: object literals are assigned to this class, so an accessor stub changes what they must supply\n\n constructor(\n grid: GridComponentRef,\n row: Record<string, unknown>,\n rowIndex: number,\n rowKey: string,\n column: GridColumnConfig,\n originalValue: unknown,\n editedValue: unknown\n ) {\n super(grid, row, rowIndex, rowKey);\n this.column = column;\n this.originalValue = originalValue;\n this.editedValue = editedValue;\n }\n}\n\n/**\n * Fired after cell edit is canceled\n */\nexport class AfterCellEditCancelEventArgs extends RowEventArgs {\n /** The column that was being edited */\n readonly column: GridColumnConfig; // case-violation-ok-legacy-back-compat: object literals are assigned to this class, so an accessor stub changes what they must supply\n\n /** Original value that was restored */\n readonly originalValue: unknown; // case-violation-ok-legacy-back-compat: object literals are assigned to this class, so an accessor stub changes what they must supply\n\n /** The edited value that was discarded */\n readonly editedValue: unknown; // case-violation-ok-legacy-back-compat: object literals are assigned to this class, so an accessor stub changes what they must supply\n\n constructor(\n grid: GridComponentRef,\n row: Record<string, unknown>,\n rowIndex: number,\n rowKey: string,\n column: GridColumnConfig,\n originalValue: unknown,\n editedValue: unknown\n ) {\n super(grid, row, rowIndex, rowKey);\n this.column = column;\n this.originalValue = originalValue;\n this.editedValue = editedValue;\n }\n}\n\n// ========================================\n// Row Save/Delete Events\n// ========================================\n\n/**\n * Fired before row save - can be canceled or values modified\n */\nexport class BeforeRowSaveEventArgs extends CancelableRowEventArgs {\n /** The changes being saved */\n readonly changes: Record<string, { oldValue: unknown; newValue: unknown }>; // case-violation-ok-legacy-back-compat: object literals are assigned to this class, so an accessor stub changes what they must supply\n\n /** Set to modify values before saving */\n modifiedValues?: Record<string, unknown>; // case-violation-ok-legacy-back-compat: an accessor cannot be optional, so a stub would turn this into a required member\n\n constructor(\n grid: GridComponentRef,\n row: Record<string, unknown>,\n rowIndex: number,\n rowKey: string,\n changes: Record<string, { oldValue: unknown; newValue: unknown }>\n ) {\n super(grid, row, rowIndex, rowKey);\n this.changes = { ...changes };\n }\n}\n\n/**\n * Fired after row save\n */\nexport class AfterRowSaveEventArgs extends RowEventArgs {\n /** The changes that were saved */\n readonly changes: Record<string, { oldValue: unknown; newValue: unknown }>; // case-violation-ok-legacy-back-compat: object literals are assigned to this class, so an accessor stub changes what they must supply\n\n /** Whether the save was successful */\n readonly success: boolean;\n\n /** Error message if save failed */\n readonly error?: string;\n\n constructor(\n grid: GridComponentRef,\n row: Record<string, unknown>,\n rowIndex: number,\n rowKey: string,\n changes: Record<string, { oldValue: unknown; newValue: unknown }>,\n success: boolean,\n error?: string\n ) {\n super(grid, row, rowIndex, rowKey);\n this.changes = { ...changes };\n this.success = success;\n this.error = error;\n }\n}\n\n/**\n * Fired before row delete - can be canceled\n */\nexport class BeforeRowDeleteEventArgs extends CancelableRowEventArgs {\n /** Whether this is part of a batch delete */\n readonly isBatch: boolean; // case-violation-ok-legacy-back-compat: object literals are assigned to this class, so an accessor stub changes what they must supply\n\n constructor(\n grid: GridComponentRef,\n row: Record<string, unknown>,\n rowIndex: number,\n rowKey: string,\n isBatch: boolean\n ) {\n super(grid, row, rowIndex, rowKey);\n this.isBatch = isBatch;\n }\n}\n\n/**\n * Fired after row delete\n */\nexport class AfterRowDeleteEventArgs extends RowEventArgs {\n /** Whether the delete was successful */\n readonly success: boolean;\n\n /** Error message if delete failed */\n readonly error?: string;\n\n constructor(\n grid: GridComponentRef,\n row: Record<string, unknown>,\n rowIndex: number,\n rowKey: string,\n success: boolean,\n error?: string\n ) {\n super(grid, row, rowIndex, rowKey);\n this.success = success;\n this.error = error;\n }\n}\n\n// ========================================\n// Data Loading Events\n// ========================================\n\n/**\n * Fired before data load - can be canceled or params modified\n */\nexport class BeforeDataLoadEventArgs extends CancelableGridEventArgs {\n /** The RunView parameters that will be used */\n readonly params: GridRunViewParams;\n\n /** Set to modify the parameters before loading */\n modifiedParams?: Partial<GridRunViewParams>; // case-violation-ok-legacy-back-compat: an accessor cannot be optional, so a stub would turn this into a required member\n\n constructor(grid: GridComponentRef, params: GridRunViewParams) {\n super(grid);\n this.params = { ...params };\n }\n}\n\n/**\n * Fired after data load\n */\nexport class AfterDataLoadEventArgs extends GridEventArgs {\n /** The RunView parameters that were used */\n readonly params: GridRunViewParams;\n\n /** Whether the load was successful */\n readonly success: boolean;\n\n /** Total number of rows matching the query */\n readonly totalRowCount: number; // case-violation-ok-legacy-back-compat: object literals are assigned to this class, so an accessor stub changes what they must supply\n\n /** Number of rows actually loaded (may be limited by maxRows) */\n readonly loadedRowCount: number; // case-violation-ok-legacy-back-compat: object literals are assigned to this class, so an accessor stub changes what they must supply\n\n /** Time taken to load in milliseconds */\n readonly loadTimeMs: number; // case-violation-ok-legacy-back-compat: object literals are assigned to this class, so an accessor stub changes what they must supply\n\n /** Error message if load failed */\n readonly error?: string;\n\n constructor(\n grid: GridComponentRef,\n params: GridRunViewParams,\n success: boolean,\n totalRowCount: number,\n loadedRowCount: number,\n loadTimeMs: number,\n error?: string\n ) {\n super(grid);\n this.params = { ...params };\n this.success = success;\n this.totalRowCount = totalRowCount;\n this.loadedRowCount = loadedRowCount;\n this.loadTimeMs = loadTimeMs;\n this.error = error;\n }\n}\n\n/**\n * Fired before data refresh (reload) - can be canceled\n */\nexport class BeforeDataRefreshEventArgs extends CancelableGridEventArgs {\n /** Whether this is an auto-refresh from parameter changes */\n readonly isAutoRefresh: boolean; // case-violation-ok-legacy-back-compat: object literals are assigned to this class, so an accessor stub changes what they must supply\n\n constructor(grid: GridComponentRef, isAutoRefresh: boolean) {\n super(grid);\n this.isAutoRefresh = isAutoRefresh;\n }\n}\n\n/**\n * Fired after data refresh\n */\nexport class AfterDataRefreshEventArgs extends GridEventArgs {\n /** Whether the refresh was successful */\n readonly success: boolean;\n\n /** Total number of rows after refresh */\n readonly totalRowCount: number; // case-violation-ok-legacy-back-compat: object literals are assigned to this class, so an accessor stub changes what they must supply\n\n /** Time taken to refresh in milliseconds */\n readonly loadTimeMs: number; // case-violation-ok-legacy-back-compat: object literals are assigned to this class, so an accessor stub changes what they must supply\n\n constructor(\n grid: GridComponentRef,\n success: boolean,\n totalRowCount: number,\n loadTimeMs: number\n ) {\n super(grid);\n this.success = success;\n this.totalRowCount = totalRowCount;\n this.loadTimeMs = loadTimeMs;\n }\n}\n\n// ========================================\n// Sorting Events\n// ========================================\n\n/**\n * Fired before sort - can be canceled\n */\nexport class BeforeSortEventArgs extends CancelableGridEventArgs {\n /** The column being sorted */\n readonly column: GridColumnConfig; // case-violation-ok-legacy-back-compat: object literals are assigned to this class, so an accessor stub changes what they must supply\n\n /** The new sort direction */\n readonly direction: 'asc' | 'desc' | 'none';\n\n /** Whether this is a multi-sort operation (shift+click) */\n readonly isMultiSort: boolean; // case-violation-ok-legacy-back-compat: object literals are assigned to this class, so an accessor stub changes what they must supply\n\n /** Current sort state before change */\n readonly currentSortState: DataGridSortState[]; // case-violation-ok-legacy-back-compat: object literals are assigned to this class, so an accessor stub changes what they must supply\n\n constructor(\n grid: GridComponentRef,\n column: GridColumnConfig,\n direction: 'asc' | 'desc' | 'none',\n isMultiSort: boolean,\n currentSortState: DataGridSortState[]\n ) {\n super(grid);\n this.column = column;\n this.direction = direction;\n this.isMultiSort = isMultiSort;\n this.currentSortState = [...currentSortState];\n }\n}\n\n/**\n * Fired after sort\n */\nexport class AfterSortEventArgs extends GridEventArgs {\n /** The column that was sorted */\n readonly column: GridColumnConfig; // case-violation-ok-legacy-back-compat: object literals are assigned to this class, so an accessor stub changes what they must supply\n\n /** The new sort direction */\n readonly direction: 'asc' | 'desc' | 'none';\n\n /** New sort state */\n readonly newSortState: DataGridSortState[]; // case-violation-ok-legacy-back-compat: object literals are assigned to this class, so an accessor stub changes what they must supply\n\n constructor(\n grid: GridComponentRef,\n column: GridColumnConfig,\n direction: 'asc' | 'desc' | 'none',\n newSortState: DataGridSortState[]\n ) {\n super(grid);\n this.column = column;\n this.direction = direction;\n this.newSortState = [...newSortState];\n }\n}\n\n// ========================================\n// Column Events\n// ========================================\n\n/**\n * Fired before column reorder - can be canceled\n */\nexport class BeforeColumnReorderEventArgs extends CancelableGridEventArgs {\n /** The column being moved */\n readonly column: GridColumnConfig; // case-violation-ok-legacy-back-compat: object literals are assigned to this class, so an accessor stub changes what they must supply\n\n /** Original index */\n readonly fromIndex: number; // case-violation-ok-legacy-back-compat: object literals are assigned to this class, so an accessor stub changes what they must supply\n\n /** Target index */\n readonly toIndex: number; // case-violation-ok-legacy-back-compat: object literals are assigned to this class, so an accessor stub changes what they must supply\n\n constructor(\n grid: GridComponentRef,\n column: GridColumnConfig,\n fromIndex: number,\n toIndex: number\n ) {\n super(grid);\n this.column = column;\n this.fromIndex = fromIndex;\n this.toIndex = toIndex;\n }\n}\n\n/**\n * Fired after column reorder\n */\nexport class AfterColumnReorderEventArgs extends GridEventArgs {\n /** The column that was moved */\n readonly column: GridColumnConfig; // case-violation-ok-legacy-back-compat: object literals are assigned to this class, so an accessor stub changes what they must supply\n\n /** Original index */\n readonly fromIndex: number; // case-violation-ok-legacy-back-compat: object literals are assigned to this class, so an accessor stub changes what they must supply\n\n /** New index */\n readonly toIndex: number; // case-violation-ok-legacy-back-compat: object literals are assigned to this class, so an accessor stub changes what they must supply\n\n constructor(\n grid: GridComponentRef,\n column: GridColumnConfig,\n fromIndex: number,\n toIndex: number\n ) {\n super(grid);\n this.column = column;\n this.fromIndex = fromIndex;\n this.toIndex = toIndex;\n }\n}\n\n/**\n * Fired before column resize - can be canceled\n */\nexport class BeforeColumnResizeEventArgs extends CancelableGridEventArgs {\n /** The column being resized */\n readonly column: GridColumnConfig; // case-violation-ok-legacy-back-compat: object literals are assigned to this class, so an accessor stub changes what they must supply\n\n /** Original width */\n readonly oldWidth: number; // case-violation-ok-legacy-back-compat: object literals are assigned to this class, so an accessor stub changes what they must supply\n\n /** New width */\n readonly newWidth: number; // case-violation-ok-legacy-back-compat: object literals are assigned to this class, so an accessor stub changes what they must supply\n\n constructor(\n grid: GridComponentRef,\n column: GridColumnConfig,\n oldWidth: number,\n newWidth: number\n ) {\n super(grid);\n this.column = column;\n this.oldWidth = oldWidth;\n this.newWidth = newWidth;\n }\n}\n\n/**\n * Fired after column resize\n */\nexport class AfterColumnResizeEventArgs extends GridEventArgs {\n /** The column that was resized */\n readonly column: GridColumnConfig; // case-violation-ok-legacy-back-compat: object literals are assigned to this class, so an accessor stub changes what they must supply\n\n /** Original width */\n readonly oldWidth: number; // case-violation-ok-legacy-back-compat: object literals are assigned to this class, so an accessor stub changes what they must supply\n\n /** New width */\n readonly newWidth: number; // case-violation-ok-legacy-back-compat: object literals are assigned to this class, so an accessor stub changes what they must supply\n\n constructor(\n grid: GridComponentRef,\n column: GridColumnConfig,\n oldWidth: number,\n newWidth: number\n ) {\n super(grid);\n this.column = column;\n this.oldWidth = oldWidth;\n this.newWidth = newWidth;\n }\n}\n\n/**\n * Fired before column visibility change - can be canceled\n */\nexport class BeforeColumnVisibilityChangeEventArgs extends CancelableGridEventArgs {\n /** The column being shown/hidden */\n readonly column: GridColumnConfig; // case-violation-ok-legacy-back-compat: object literals are assigned to this class, so an accessor stub changes what they must supply\n\n /** New visibility state */\n readonly newVisibility: boolean; // case-violation-ok-legacy-back-compat: object literals are assigned to this class, so an accessor stub changes what they must supply\n\n constructor(\n grid: GridComponentRef,\n column: GridColumnConfig,\n newVisibility: boolean\n ) {\n super(grid);\n this.column = column;\n this.newVisibility = newVisibility;\n }\n}\n\n/**\n * Fired after column visibility change\n */\nexport class AfterColumnVisibilityChangeEventArgs extends GridEventArgs {\n /** The column that was shown/hidden */\n readonly column: GridColumnConfig; // case-violation-ok-legacy-back-compat: object literals are assigned to this class, so an accessor stub changes what they must supply\n\n /** New visibility state */\n readonly newVisibility: boolean; // case-violation-ok-legacy-back-compat: object literals are assigned to this class, so an accessor stub changes what they must supply\n\n constructor(\n grid: GridComponentRef,\n column: GridColumnConfig,\n newVisibility: boolean\n ) {\n super(grid);\n this.column = column;\n this.newVisibility = newVisibility;\n }\n}\n"]}