gm-datagrid 0.1.26 → 0.1.27

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,11 @@ 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;
67
73
  }
68
74
  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;
@@ -504,4 +506,16 @@ export interface GMDatagridProps {
504
506
  * @default true
505
507
  */
506
508
  autoCheckboxSelection?: boolean;
509
+ /** Minimum height of the grid root (px or CSS length). @default 360 */
510
+ minHeight?: number | string;
511
+ /** Minimum height of the scrollable body area only. */
512
+ bodyMinHeight?: number | string;
513
+ /** Show 1-based row index column. @default true */
514
+ showRowNumber?: boolean;
515
+ /** Row index column position. @default 'first' */
516
+ rowNumberPosition?: 'first' | 'last';
517
+ /** Skeleton rows while loading. @default 8 */
518
+ loadingRowCount?: number;
519
+ /** Grid-level confirm dialog override for status switch and built-in prompts. */
520
+ confirmPrompt?: (message: string) => Promise<boolean>;
507
521
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "gm-datagrid",
3
- "version": "0.1.26",
3
+ "version": "0.1.27",
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",