gm-datagrid 0.1.26 → 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.
@@ -64,5 +64,13 @@ export interface GridLabels {
64
64
  emptyGroup: string;
65
65
  /** Engine error message */
66
66
  engineError: string;
67
+ /** Row index column header */
68
+ rowNumber: string;
69
+ /** Confirm dialog title */
70
+ confirmTitle: string;
71
+ confirmCancel: string;
72
+ confirmAccept: string;
73
+ /** Column resize handle: double-click auto-fit */
74
+ columnAutoFit: string;
67
75
  }
68
76
  export declare const GRID_LABELS: Record<GridLocale, GridLabels>;
@@ -150,6 +150,8 @@ export interface StatusSwitchConfig {
150
150
  deletedStatus?: string;
151
151
  canEdit?: boolean | ((row: Row) => boolean);
152
152
  confirmBeforeUpdate?: boolean | ((row: Row, newStatus: string) => string | false);
153
+ /** Overrides default in-grid confirm dialog. Return true to proceed. */
154
+ confirmPrompt?: (message: string) => Promise<boolean>;
153
155
  successMessage?: string;
154
156
  onNotify?: (message: string, severity: 'success' | 'error') => void;
155
157
  onAfterUpdate?: (row: Row, newStatus: string) => void;
@@ -362,6 +364,11 @@ export interface GMDatagridProps {
362
364
  onRowDetail?: (row: Row) => void;
363
365
  /** Enables row selection checkboxes. Default: false. */
364
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;
365
372
  /** Fired whenever the selection changes. Receives the full array of selected rows. */
366
373
  onRowSelectionChange?: (rows: Row[]) => void;
367
374
  /**
@@ -504,4 +511,33 @@ export interface GMDatagridProps {
504
511
  * @default true
505
512
  */
506
513
  autoCheckboxSelection?: boolean;
514
+ /** Minimum height of the grid root (px or CSS length). @default 360 */
515
+ minHeight?: number | string;
516
+ /** Minimum height of the scrollable body area only. */
517
+ bodyMinHeight?: number | string;
518
+ /** Show 1-based row index column. @default true */
519
+ showRowNumber?: boolean;
520
+ /** Row index column position. @default 'first' */
521
+ rowNumberPosition?: 'first' | 'last';
522
+ /** Skeleton rows while loading. @default 8 */
523
+ loadingRowCount?: number;
524
+ /** Grid-level confirm dialog override for status switch and built-in prompts. */
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;
507
543
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "gm-datagrid",
3
- "version": "0.1.26",
3
+ "version": "0.1.30",
4
4
  "description": "Enterprise Excel-like data grid with Rust/Wasm engine, featuring inline-aligned group subtotals and automatic group aggregate preloading",
5
5
  "keywords": [
6
6
  "datagrid",