gm-datagrid 0.1.27 → 0.1.30
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/README.md +4 -0
- package/dist/features/measureColumnContentWidth.d.ts +15 -0
- package/dist/features/useColumnResize.d.ts +7 -1
- package/dist/features/useGridContentWidth.d.ts +6 -0
- package/dist/features/useGridViewportWidth.d.ts +4 -0
- package/dist/features/useResolvedColumnWidths.d.ts +17 -0
- package/dist/features/useVirtualization.d.ts +3 -1
- package/dist/gm-datagrid.js +6487 -6338
- package/dist/gm-datagrid.umd.cjs +35 -35
- package/dist/lib/i18n.d.ts +2 -0
- package/dist/types/index.d.ts +22 -0
- package/package.json +1 -1
package/dist/lib/i18n.d.ts
CHANGED
package/dist/types/index.d.ts
CHANGED
|
@@ -364,6 +364,11 @@ export interface GMDatagridProps {
|
|
|
364
364
|
onRowDetail?: (row: Row) => void;
|
|
365
365
|
/** Enables row selection checkboxes. Default: false. */
|
|
366
366
|
checkboxSelection?: boolean;
|
|
367
|
+
/**
|
|
368
|
+
* Fixed bottom “N selected / Limpiar” bar.
|
|
369
|
+
* Default true; set false in drawers/dialogs so it does not overlay the main list.
|
|
370
|
+
*/
|
|
371
|
+
floatingSelectionBar?: boolean;
|
|
367
372
|
/** Fired whenever the selection changes. Receives the full array of selected rows. */
|
|
368
373
|
onRowSelectionChange?: (rows: Row[]) => void;
|
|
369
374
|
/**
|
|
@@ -518,4 +523,21 @@ export interface GMDatagridProps {
|
|
|
518
523
|
loadingRowCount?: number;
|
|
519
524
|
/** Grid-level confirm dialog override for status switch and built-in prompts. */
|
|
520
525
|
confirmPrompt?: (message: string) => Promise<boolean>;
|
|
526
|
+
/**
|
|
527
|
+
* Stretch columns to fill the viewport when their total width is narrower.
|
|
528
|
+
* @default true
|
|
529
|
+
*/
|
|
530
|
+
fillAvailableWidth?: boolean;
|
|
531
|
+
/**
|
|
532
|
+
* Double-click a column resize handle to auto-fit content width.
|
|
533
|
+
* @default false (opt-in until consumers expect Excel-like behavior globally)
|
|
534
|
+
*/
|
|
535
|
+
disableColumnAutoFit?: boolean;
|
|
536
|
+
/** Cap for double-click auto-fit width (px). @default 480 */
|
|
537
|
+
autoFitMaxWidth?: number;
|
|
538
|
+
/**
|
|
539
|
+
* Keep column header (and filter row) sticky inside the scrollport.
|
|
540
|
+
* @default true
|
|
541
|
+
*/
|
|
542
|
+
stickyHeader?: boolean;
|
|
521
543
|
}
|
package/package.json
CHANGED