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.
- package/README.md +6 -0
- package/dist/components/GMGridLoadingSkeleton.d.ts +13 -0
- package/dist/components/GridConfirmDialog.d.ts +10 -0
- package/dist/context/ConfirmContext.d.ts +7 -0
- package/dist/features/useGridContentWidth.d.ts +11 -0
- package/dist/gm-datagrid.js +7181 -6767
- package/dist/gm-datagrid.umd.cjs +49 -49
- package/dist/lib/i18n.d.ts +6 -0
- package/dist/types/index.d.ts +14 -0
- package/package.json +1 -1
package/dist/lib/i18n.d.ts
CHANGED
|
@@ -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>;
|
package/dist/types/index.d.ts
CHANGED
|
@@ -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