@rozie-ui/data-table-lit 0.3.2 → 0.4.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.d.cts CHANGED
@@ -192,6 +192,26 @@ declare class DataTable extends DataTable_base {
192
192
  indeterminate: any;
193
193
  toggle: any;
194
194
  }) => unknown;
195
+ private _hasSlotDynamicColHeader;
196
+ private _slotDynamicColHeaderElements;
197
+ private _hasSlotDynamicFilter;
198
+ private _slotDynamicFilterElements;
199
+ private _hasSlotSelectCell;
200
+ private _slotSelectCellElements;
201
+ selectCell?: (scope: {
202
+ row: any;
203
+ checked: any;
204
+ toggle: any;
205
+ }) => unknown;
206
+ private _hasSlotDynamicCell;
207
+ private _slotDynamicCellElements;
208
+ private _hasSlotDynamicEditor;
209
+ private _slotDynamicEditorElements;
210
+ private _hasSlotDetail;
211
+ private _slotDetailElements;
212
+ detail?: (scope: {
213
+ row: any;
214
+ }) => unknown;
195
215
  private _hasSlotColHeader;
196
216
  private _slotColHeaderElements;
197
217
  colHeader?: (scope: {
@@ -208,13 +228,6 @@ declare class DataTable extends DataTable_base {
208
228
  minMax: any;
209
229
  setFilter: any;
210
230
  }) => unknown;
211
- private _hasSlotSelectCell;
212
- private _slotSelectCellElements;
213
- selectCell?: (scope: {
214
- row: any;
215
- checked: any;
216
- toggle: any;
217
- }) => unknown;
218
231
  private _hasSlotCell;
219
232
  private _slotCellElements;
220
233
  cell?: (scope: {
@@ -234,12 +247,35 @@ declare class DataTable extends DataTable_base {
234
247
  cancel: any;
235
248
  autofocus: any;
236
249
  }) => unknown;
237
- private _hasSlotDetail;
238
- private _slotDetailElements;
239
- detail?: (scope: {
240
- row: any;
241
- }) => unknown;
242
- rozieSlots?: Record<string, (scope: any) => unknown>;
250
+ rozieSlots?: {
251
+ [key: `colHeader-${string}`]: (scope: {
252
+ columnId: any;
253
+ column: any;
254
+ label: any;
255
+ }) => unknown;
256
+ [key: `filter-${string}`]: (scope: {
257
+ columnId: any;
258
+ value: any;
259
+ uniqueValues: any;
260
+ minMax: any;
261
+ setFilter: any;
262
+ }) => unknown;
263
+ [key: `cell-${string}`]: (scope: {
264
+ columnId: any;
265
+ column: any;
266
+ row: any;
267
+ value: any;
268
+ }) => unknown;
269
+ [key: `editor-${string}`]: (scope: {
270
+ columnId: any;
271
+ column: any;
272
+ row: any;
273
+ value: any;
274
+ commit: any;
275
+ cancel: any;
276
+ autofocus: any;
277
+ }) => unknown;
278
+ } & Record<string, (scope: any) => unknown>;
243
279
  private _disconnectCleanups;
244
280
  private _rozieTornDown;
245
281
  private _armListeners;
@@ -424,11 +460,9 @@ declare class DataTable extends DataTable_base {
424
460
  columnEditable: (colId: any) => boolean;
425
461
  editorTypeOf: (colId: any) => any;
426
462
  editorOptionsOf: (colId: any) => any;
427
- hasEditorSlot: (colId: any) => boolean;
428
- hasFilterSlot: () => boolean;
429
463
  columnIsFilterable: (colId: any) => boolean;
430
464
  headerLabel: (colId: any) => any;
431
- headerWidth: (colId: any) => string;
465
+ headerWidth: (header: any) => string;
432
466
  onResizeStart: (colId: any, evt: any) => void;
433
467
  findHeader: (colId: any) => any;
434
468
  columnIsResizing: (colId: any) => boolean;
@@ -438,7 +472,7 @@ declare class DataTable extends DataTable_base {
438
472
  columnPinSide: (colId: any) => any;
439
473
  onPinColumn: (colId: any, side: any, evt: any) => void;
440
474
  pinStyle: (colId: any, zIndex?: number) => string;
441
- thStyle: (colId: any) => string;
475
+ thStyle: (header: any) => string;
442
476
  onGlobalFilterInput: (evt: any) => void;
443
477
  onColumnFilterInput: (colId: any, evt: any) => void;
444
478
  globalFilterValue: () => any;
@@ -604,6 +638,12 @@ declare class DataTable extends DataTable_base {
604
638
  dy: number;
605
639
  };
606
640
  teardownFillDrag: () => void;
641
+ FILL_HITTEST_PROBE_RADIUS_PX: number;
642
+ FILL_HITTEST_PROBE_STEP_PX: number;
643
+ resolveCellAt: (clientX: any, clientY: any) => {
644
+ r: number;
645
+ c: number;
646
+ };
607
647
  cellIndexFromPoint: (clientX: any, clientY: any) => {
608
648
  r: number;
609
649
  c: number;
@@ -627,7 +667,8 @@ declare class DataTable extends DataTable_base {
627
667
  editingCellValue: () => any;
628
668
  editingRowOriginal: () => any;
629
669
  editingRowId: () => any;
630
- focusEditorWhenReady: (selectAll?: boolean) => void;
670
+ resolveEditFocusCellEl: (rowIndex: any, colIndex: any) => any;
671
+ focusEditorWhenReady: (rowIndex: any, colIndex: any, selectAll?: boolean) => void;
631
672
  columnIdAt: (rowIndex: any, colIndex: any) => any;
632
673
  cellValueAt: (rowIndex: any, colIndex: any) => any;
633
674
  beginEdit: (rowIndex: any, colIndex: any, seed: any) => void;
package/dist/index.d.mts CHANGED
@@ -192,6 +192,26 @@ declare class DataTable extends DataTable_base {
192
192
  indeterminate: any;
193
193
  toggle: any;
194
194
  }) => unknown;
195
+ private _hasSlotDynamicColHeader;
196
+ private _slotDynamicColHeaderElements;
197
+ private _hasSlotDynamicFilter;
198
+ private _slotDynamicFilterElements;
199
+ private _hasSlotSelectCell;
200
+ private _slotSelectCellElements;
201
+ selectCell?: (scope: {
202
+ row: any;
203
+ checked: any;
204
+ toggle: any;
205
+ }) => unknown;
206
+ private _hasSlotDynamicCell;
207
+ private _slotDynamicCellElements;
208
+ private _hasSlotDynamicEditor;
209
+ private _slotDynamicEditorElements;
210
+ private _hasSlotDetail;
211
+ private _slotDetailElements;
212
+ detail?: (scope: {
213
+ row: any;
214
+ }) => unknown;
195
215
  private _hasSlotColHeader;
196
216
  private _slotColHeaderElements;
197
217
  colHeader?: (scope: {
@@ -208,13 +228,6 @@ declare class DataTable extends DataTable_base {
208
228
  minMax: any;
209
229
  setFilter: any;
210
230
  }) => unknown;
211
- private _hasSlotSelectCell;
212
- private _slotSelectCellElements;
213
- selectCell?: (scope: {
214
- row: any;
215
- checked: any;
216
- toggle: any;
217
- }) => unknown;
218
231
  private _hasSlotCell;
219
232
  private _slotCellElements;
220
233
  cell?: (scope: {
@@ -234,12 +247,35 @@ declare class DataTable extends DataTable_base {
234
247
  cancel: any;
235
248
  autofocus: any;
236
249
  }) => unknown;
237
- private _hasSlotDetail;
238
- private _slotDetailElements;
239
- detail?: (scope: {
240
- row: any;
241
- }) => unknown;
242
- rozieSlots?: Record<string, (scope: any) => unknown>;
250
+ rozieSlots?: {
251
+ [key: `colHeader-${string}`]: (scope: {
252
+ columnId: any;
253
+ column: any;
254
+ label: any;
255
+ }) => unknown;
256
+ [key: `filter-${string}`]: (scope: {
257
+ columnId: any;
258
+ value: any;
259
+ uniqueValues: any;
260
+ minMax: any;
261
+ setFilter: any;
262
+ }) => unknown;
263
+ [key: `cell-${string}`]: (scope: {
264
+ columnId: any;
265
+ column: any;
266
+ row: any;
267
+ value: any;
268
+ }) => unknown;
269
+ [key: `editor-${string}`]: (scope: {
270
+ columnId: any;
271
+ column: any;
272
+ row: any;
273
+ value: any;
274
+ commit: any;
275
+ cancel: any;
276
+ autofocus: any;
277
+ }) => unknown;
278
+ } & Record<string, (scope: any) => unknown>;
243
279
  private _disconnectCleanups;
244
280
  private _rozieTornDown;
245
281
  private _armListeners;
@@ -424,11 +460,9 @@ declare class DataTable extends DataTable_base {
424
460
  columnEditable: (colId: any) => boolean;
425
461
  editorTypeOf: (colId: any) => any;
426
462
  editorOptionsOf: (colId: any) => any;
427
- hasEditorSlot: (colId: any) => boolean;
428
- hasFilterSlot: () => boolean;
429
463
  columnIsFilterable: (colId: any) => boolean;
430
464
  headerLabel: (colId: any) => any;
431
- headerWidth: (colId: any) => string;
465
+ headerWidth: (header: any) => string;
432
466
  onResizeStart: (colId: any, evt: any) => void;
433
467
  findHeader: (colId: any) => any;
434
468
  columnIsResizing: (colId: any) => boolean;
@@ -438,7 +472,7 @@ declare class DataTable extends DataTable_base {
438
472
  columnPinSide: (colId: any) => any;
439
473
  onPinColumn: (colId: any, side: any, evt: any) => void;
440
474
  pinStyle: (colId: any, zIndex?: number) => string;
441
- thStyle: (colId: any) => string;
475
+ thStyle: (header: any) => string;
442
476
  onGlobalFilterInput: (evt: any) => void;
443
477
  onColumnFilterInput: (colId: any, evt: any) => void;
444
478
  globalFilterValue: () => any;
@@ -604,6 +638,12 @@ declare class DataTable extends DataTable_base {
604
638
  dy: number;
605
639
  };
606
640
  teardownFillDrag: () => void;
641
+ FILL_HITTEST_PROBE_RADIUS_PX: number;
642
+ FILL_HITTEST_PROBE_STEP_PX: number;
643
+ resolveCellAt: (clientX: any, clientY: any) => {
644
+ r: number;
645
+ c: number;
646
+ };
607
647
  cellIndexFromPoint: (clientX: any, clientY: any) => {
608
648
  r: number;
609
649
  c: number;
@@ -627,7 +667,8 @@ declare class DataTable extends DataTable_base {
627
667
  editingCellValue: () => any;
628
668
  editingRowOriginal: () => any;
629
669
  editingRowId: () => any;
630
- focusEditorWhenReady: (selectAll?: boolean) => void;
670
+ resolveEditFocusCellEl: (rowIndex: any, colIndex: any) => any;
671
+ focusEditorWhenReady: (rowIndex: any, colIndex: any, selectAll?: boolean) => void;
631
672
  columnIdAt: (rowIndex: any, colIndex: any) => any;
632
673
  cellValueAt: (rowIndex: any, colIndex: any) => any;
633
674
  beginEdit: (rowIndex: any, colIndex: any, seed: any) => void;