gm-datagrid 0.1.27 → 0.1.31
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 +6 -0
- package/dist/cells/BooleanCell.d.ts +12 -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 +7093 -6880
- package/dist/gm-datagrid.umd.cjs +42 -42
- package/dist/lib/i18n.d.ts +2 -0
- package/dist/types/index.d.ts +24 -1
- package/package.json +1 -1
package/dist/lib/i18n.d.ts
CHANGED
package/dist/types/index.d.ts
CHANGED
|
@@ -20,7 +20,8 @@ export declare enum ColumnDataTypesEnum {
|
|
|
20
20
|
INT = "int",
|
|
21
21
|
CODE = "code",
|
|
22
22
|
ARRAY = "array",
|
|
23
|
-
TEXT = "text"
|
|
23
|
+
TEXT = "text",
|
|
24
|
+
BOOLEAN = "boolean"
|
|
24
25
|
}
|
|
25
26
|
export type MuiChipColor = ChipProps['color'];
|
|
26
27
|
export type DensityMode = 'compact' | 'standard' | 'comfortable';
|
|
@@ -364,6 +365,11 @@ export interface GMDatagridProps {
|
|
|
364
365
|
onRowDetail?: (row: Row) => void;
|
|
365
366
|
/** Enables row selection checkboxes. Default: false. */
|
|
366
367
|
checkboxSelection?: boolean;
|
|
368
|
+
/**
|
|
369
|
+
* Fixed bottom “N selected / Limpiar” bar.
|
|
370
|
+
* Default true; set false in drawers/dialogs so it does not overlay the main list.
|
|
371
|
+
*/
|
|
372
|
+
floatingSelectionBar?: boolean;
|
|
367
373
|
/** Fired whenever the selection changes. Receives the full array of selected rows. */
|
|
368
374
|
onRowSelectionChange?: (rows: Row[]) => void;
|
|
369
375
|
/**
|
|
@@ -518,4 +524,21 @@ export interface GMDatagridProps {
|
|
|
518
524
|
loadingRowCount?: number;
|
|
519
525
|
/** Grid-level confirm dialog override for status switch and built-in prompts. */
|
|
520
526
|
confirmPrompt?: (message: string) => Promise<boolean>;
|
|
527
|
+
/**
|
|
528
|
+
* Stretch columns to fill the viewport when their total width is narrower.
|
|
529
|
+
* @default true
|
|
530
|
+
*/
|
|
531
|
+
fillAvailableWidth?: boolean;
|
|
532
|
+
/**
|
|
533
|
+
* When `true`, disables double-click auto-fit on column resize handles.
|
|
534
|
+
* @default false
|
|
535
|
+
*/
|
|
536
|
+
disableColumnAutoFit?: boolean;
|
|
537
|
+
/** Cap for double-click auto-fit width (px). @default 480 */
|
|
538
|
+
autoFitMaxWidth?: number;
|
|
539
|
+
/**
|
|
540
|
+
* Keep column header (and filter row) sticky inside the scrollport.
|
|
541
|
+
* @default true
|
|
542
|
+
*/
|
|
543
|
+
stickyHeader?: boolean;
|
|
521
544
|
}
|
package/package.json
CHANGED