gp-grid-vue 0.2.2 → 0.2.3

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.
Files changed (2) hide show
  1. package/dist/index.d.ts +4 -4
  2. package/package.json +1 -1
package/dist/index.d.ts CHANGED
@@ -333,11 +333,11 @@ type BatchInstructionListener = (instructions: GridInstruction[]) => void;
333
333
  //#endregion
334
334
  //#region ../core/src/types/renderers.d.ts
335
335
  /** Cell renderer params */
336
- interface CellRendererParams {
336
+ interface CellRendererParams<TData extends Row = Row> {
337
337
  /** Cell value */
338
338
  value: CellValue;
339
339
  /** Row data */
340
- rowData: Row;
340
+ rowData: TData;
341
341
  /** Column definition */
342
342
  column: ColumnDefinition;
343
343
  /** Row index */
@@ -352,7 +352,7 @@ interface CellRendererParams {
352
352
  isEditing: boolean;
353
353
  }
354
354
  /** Edit renderer params */
355
- interface EditRendererParams extends CellRendererParams {
355
+ interface EditRendererParams<TData extends Row = Row> extends CellRendererParams<TData> {
356
356
  /** Initial value */
357
357
  initialValue: CellValue;
358
358
  /** On value change */
@@ -1193,7 +1193,7 @@ interface UseInputHandlerResult {
1193
1193
  /**
1194
1194
  * Vue composable for handling all input interactions
1195
1195
  */
1196
- declare function useInputHandler(coreRef: ShallowRef<GridCore | null>, containerRef: Ref<HTMLDivElement | null>, columns: ComputedRef<ColumnDefinition[]>, options: UseInputHandlerOptions): UseInputHandlerResult;
1196
+ declare function useInputHandler<TData extends Row = Row>(coreRef: ShallowRef<GridCore<TData> | null>, containerRef: Ref<HTMLDivElement | null>, columns: ComputedRef<ColumnDefinition[]>, options: UseInputHandlerOptions): UseInputHandlerResult;
1197
1197
  //#endregion
1198
1198
  //#region src/composables/useAutoScroll.d.ts
1199
1199
  /**
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "gp-grid-vue",
3
3
  "description": "A high-performance Vue 3 data grid component with virtual scrolling, cell selection, sorting, filtering, and Excel-like editing",
4
- "version": "0.2.2",
4
+ "version": "0.2.3",
5
5
  "license": "Apache-2.0",
6
6
  "type": "module",
7
7
  "main": "dist/index.js",