realgrid-vue 0.9.1 → 0.9.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 +16 -16
  2. package/package.json +2 -2
package/dist/index.d.ts CHANGED
@@ -83,7 +83,7 @@ onExpanded: PropType<(grid: RealGrid.GridView, itemIndex: number) => void>;
83
83
  onCollapsing: PropType<(grid: RealGrid.GridView, itemIndex: number) => boolean>;
84
84
  onCollapsed: PropType<(grid: RealGrid.GridView, itemIndex: number) => void>;
85
85
  onRowCountChanged: PropType<(provider: RealGrid.LocalDataProvider, newCount: number) => void>;
86
- onRowUpdating: PropType<(provider: RealGrid.LocalDataProvider, row: number) => boolean>;
86
+ onRowUpdating: PropType<(provider: RealGrid.LocalDataProvider, row: number, oldValues: RealGrid.RowValues, newValues: RealGrid.RowValues) => boolean>;
87
87
  onRowUpdated: PropType<(provider: RealGrid.LocalDataProvider, row: number) => void>;
88
88
  onRowsUpdated: PropType<(provider: RealGrid.LocalDataProvider, row: number, count: number) => void>;
89
89
  onRowListUpdated: PropType<(provider: RealGrid.LocalDataProvider, rows: number[]) => void>;
@@ -134,7 +134,7 @@ onDestroy: PropType<(grid: RealGrid.GridView) => void>;
134
134
  onCurrentChanging: PropType<(grid: RealGrid.GridView, oldIndex: RealGrid.CellIndex, newIndex: RealGrid.CellIndex) => boolean>;
135
135
  onCurrentChanged: PropType<(grid: RealGrid.GridView, newIndex: RealGrid.CellIndex) => void>;
136
136
  onCurrentRowChanged: PropType<(grid: RealGrid.GridView, oldRow: number, newRow: number) => void>;
137
- onValidateColumn: PropType<(grid: RealGrid.GridView, column: RealGrid.GridColumn, inserting: boolean, value: any, itemIndex: number, dataRow: number) => RealGrid.ValidationError>;
137
+ onValidateColumn: PropType<(grid: RealGrid.GridView, column: RealGrid.DataColumn, inserting: boolean, value: any, itemIndex: number, dataRow: number) => RealGrid.ValidationError | undefined>;
138
138
  onValidateRow: PropType<(grid: RealGrid.GridView, itemIndex: number, dataRow: number, inserting: boolean, values: any[]) => RealGrid.ValidationError>;
139
139
  onValidationFail: PropType<(grid: RealGrid.GridView, itemIndex: number, column: RealGrid.GridColumn, error: RealGrid.ValidationError) => RealGrid.ValidationError>;
140
140
  onColumnCheckedChanged: PropType<(grid: RealGrid.GridView, column: RealGrid.GridColumn, checked: boolean) => void>;
@@ -156,7 +156,7 @@ onShowEditor: PropType<(grid: RealGrid.GridView, index: RealGrid.CellIndex, prop
156
156
  onShowEditCommand: PropType<(grid: RealGrid.GridView, index: RealGrid.CellIndex) => boolean>;
157
157
  onHideEditor: PropType<(grid: RealGrid.GridView, index: RealGrid.CellIndex) => void>;
158
158
  onEditChange: PropType<(grid: RealGrid.GridView, index: RealGrid.CellIndex, value: any) => void>;
159
- onGetEditValue: PropType<(grid: RealGrid.GridView, index: RealGrid.CellIndex, editResult: Object) => void>;
159
+ onGetEditValue: PropType<(grid: RealGrid.GridView, index: RealGrid.CellIndex, editResult: Object) => void | boolean>;
160
160
  onEditCommit: PropType<(grid: RealGrid.GridView, index: RealGrid.CellIndex, oldValue: any, newValue: any) => boolean>;
161
161
  onEditCanceled: PropType<(grid: RealGrid.GridView, index: RealGrid.CellIndex) => void>;
162
162
  onItemEditCanceled: PropType<(grid: RealGrid.GridView, itemIndex: number, state: string) => void>;
@@ -180,7 +180,7 @@ onKeyDown: PropType<(grid: RealGrid.GridView, event: KeyboardEvent) => boolean>;
180
180
  onKeyPress: PropType<(grid: RealGrid.GridView, event: KeyboardEvent) => void>;
181
181
  onKeyUp: PropType<(grid: RealGrid.GridView, event: KeyboardEvent) => void>;
182
182
  onShowTooltip: PropType<(grid: RealGrid.GridView, index: RealGrid.CellIndex, value: any) => boolean | string>;
183
- onShowHeaderTooltip: PropType<(grid: RealGrid.GridView, column: RealGrid.GridColumn, value: any, layout: RealGrid.CellLayoutItem) => any>;
183
+ onShowHeaderTooltip: PropType<(grid: RealGrid.GridView, column: RealGrid.GridColumn, value: any, layout: RealGrid.CellLayoutItem) => string>;
184
184
  onColumnPropertyChanged: PropType<(grid: RealGrid.GridView, column: RealGrid.GridColumn, property: string, newValue: any, oldValue: any) => void>;
185
185
  onLayoutPropertyChanged: PropType<(grid: RealGrid.GridView, layout: RealGrid.CellLayoutItem, property: string, newValue: any, oldValue: any) => void>;
186
186
  onGridActivated: PropType<(grid: RealGrid.GridView) => void>;
@@ -238,7 +238,7 @@ onDestroy: PropType<(grid: RealGrid.GridView) => void>;
238
238
  onCurrentChanging: PropType<(grid: RealGrid.GridView, oldIndex: RealGrid.CellIndex, newIndex: RealGrid.CellIndex) => boolean>;
239
239
  onCurrentChanged: PropType<(grid: RealGrid.GridView, newIndex: RealGrid.CellIndex) => void>;
240
240
  onCurrentRowChanged: PropType<(grid: RealGrid.GridView, oldRow: number, newRow: number) => void>;
241
- onValidateColumn: PropType<(grid: RealGrid.GridView, column: RealGrid.GridColumn, inserting: boolean, value: any, itemIndex: number, dataRow: number) => RealGrid.ValidationError>;
241
+ onValidateColumn: PropType<(grid: RealGrid.GridView, column: RealGrid.DataColumn, inserting: boolean, value: any, itemIndex: number, dataRow: number) => RealGrid.ValidationError | undefined>;
242
242
  onValidateRow: PropType<(grid: RealGrid.GridView, itemIndex: number, dataRow: number, inserting: boolean, values: any[]) => RealGrid.ValidationError>;
243
243
  onValidationFail: PropType<(grid: RealGrid.GridView, itemIndex: number, column: RealGrid.GridColumn, error: RealGrid.ValidationError) => RealGrid.ValidationError>;
244
244
  onColumnCheckedChanged: PropType<(grid: RealGrid.GridView, column: RealGrid.GridColumn, checked: boolean) => void>;
@@ -260,7 +260,7 @@ onShowEditor: PropType<(grid: RealGrid.GridView, index: RealGrid.CellIndex, prop
260
260
  onShowEditCommand: PropType<(grid: RealGrid.GridView, index: RealGrid.CellIndex) => boolean>;
261
261
  onHideEditor: PropType<(grid: RealGrid.GridView, index: RealGrid.CellIndex) => void>;
262
262
  onEditChange: PropType<(grid: RealGrid.GridView, index: RealGrid.CellIndex, value: any) => void>;
263
- onGetEditValue: PropType<(grid: RealGrid.GridView, index: RealGrid.CellIndex, editResult: Object) => void>;
263
+ onGetEditValue: PropType<(grid: RealGrid.GridView, index: RealGrid.CellIndex, editResult: Object) => void | boolean>;
264
264
  onEditCommit: PropType<(grid: RealGrid.GridView, index: RealGrid.CellIndex, oldValue: any, newValue: any) => boolean>;
265
265
  onEditCanceled: PropType<(grid: RealGrid.GridView, index: RealGrid.CellIndex) => void>;
266
266
  onItemEditCanceled: PropType<(grid: RealGrid.GridView, itemIndex: number, state: string) => void>;
@@ -284,7 +284,7 @@ onKeyDown: PropType<(grid: RealGrid.GridView, event: KeyboardEvent) => boolean>;
284
284
  onKeyPress: PropType<(grid: RealGrid.GridView, event: KeyboardEvent) => void>;
285
285
  onKeyUp: PropType<(grid: RealGrid.GridView, event: KeyboardEvent) => void>;
286
286
  onShowTooltip: PropType<(grid: RealGrid.GridView, index: RealGrid.CellIndex, value: any) => boolean | string>;
287
- onShowHeaderTooltip: PropType<(grid: RealGrid.GridView, column: RealGrid.GridColumn, value: any, layout: RealGrid.CellLayoutItem) => any>;
287
+ onShowHeaderTooltip: PropType<(grid: RealGrid.GridView, column: RealGrid.GridColumn, value: any, layout: RealGrid.CellLayoutItem) => string>;
288
288
  onColumnPropertyChanged: PropType<(grid: RealGrid.GridView, column: RealGrid.GridColumn, property: string, newValue: any, oldValue: any) => void>;
289
289
  onLayoutPropertyChanged: PropType<(grid: RealGrid.GridView, layout: RealGrid.CellLayoutItem, property: string, newValue: any, oldValue: any) => void>;
290
290
  onGridActivated: PropType<(grid: RealGrid.GridView) => void>;
@@ -317,7 +317,7 @@ onExpanded: PropType<(grid: RealGrid.GridView, itemIndex: number) => void>;
317
317
  onCollapsing: PropType<(grid: RealGrid.GridView, itemIndex: number) => boolean>;
318
318
  onCollapsed: PropType<(grid: RealGrid.GridView, itemIndex: number) => void>;
319
319
  onRowCountChanged: PropType<(provider: RealGrid.LocalDataProvider, newCount: number) => void>;
320
- onRowUpdating: PropType<(provider: RealGrid.LocalDataProvider, row: number) => boolean>;
320
+ onRowUpdating: PropType<(provider: RealGrid.LocalDataProvider, row: number, oldValues: RealGrid.RowValues, newValues: RealGrid.RowValues) => boolean>;
321
321
  onRowUpdated: PropType<(provider: RealGrid.LocalDataProvider, row: number) => void>;
322
322
  onRowsUpdated: PropType<(provider: RealGrid.LocalDataProvider, row: number, count: number) => void>;
323
323
  onRowListUpdated: PropType<(provider: RealGrid.LocalDataProvider, rows: number[]) => void>;
@@ -367,7 +367,7 @@ onRowsAdded: PropType<(provider: RealGrid.LocalTreeDataProvider, parent: number,
367
367
  onRowDeleting: PropType<(provider: RealGrid.LocalTreeDataProvider, row: number) => boolean>;
368
368
  onRowDeleted: PropType<(provider: RealGrid.LocalTreeDataProvider, row: number) => void>;
369
369
  onRowsDeleted: PropType<(provider: RealGrid.LocalTreeDataProvider, rows: number[]) => void>;
370
- onRowUpdating: PropType<(provider: RealGrid.LocalTreeDataProvider, row: number) => boolean>;
370
+ onRowUpdating: PropType<(provider: RealGrid.LocalTreeDataProvider, row: number, oldValues: RealGrid.RowValues, newValues: RealGrid.RowValues) => boolean>;
371
371
  onRowUpdated: PropType<(provider: RealGrid.LocalTreeDataProvider, row: number) => void>;
372
372
  onRowsUpdating: PropType<(provider: RealGrid.LocalTreeDataProvider, rows: number[]) => boolean>;
373
373
  onRowsUpdated: PropType<(provider: RealGrid.LocalTreeDataProvider, rows: number[]) => void>;
@@ -419,7 +419,7 @@ onDestroy: PropType<(grid: RealGrid.TreeView) => void>;
419
419
  onCurrentChanging: PropType<(grid: RealGrid.TreeView, oldIndex: RealGrid.CellIndex, newIndex: RealGrid.CellIndex) => boolean>;
420
420
  onCurrentChanged: PropType<(grid: RealGrid.TreeView, newIndex: RealGrid.CellIndex) => void>;
421
421
  onCurrentRowChanged: PropType<(grid: RealGrid.TreeView, oldRow: number, newRow: number) => void>;
422
- onValidateColumn: PropType<(grid: RealGrid.TreeView, column: RealGrid.GridColumn, inserting: boolean, value: any, itemIndex: number, dataRow: number) => RealGrid.ValidationError>;
422
+ onValidateColumn: PropType<(grid: RealGrid.TreeView, column: RealGrid.DataColumn, inserting: boolean, value: any, itemIndex: number, dataRow: number) => RealGrid.ValidationError | undefined>;
423
423
  onValidateRow: PropType<(grid: RealGrid.TreeView, itemIndex: number, dataRow: number, inserting: boolean, values: any[]) => RealGrid.ValidationError>;
424
424
  onValidationFail: PropType<(grid: RealGrid.TreeView, itemIndex: number, column: RealGrid.GridColumn, error: RealGrid.ValidationError) => RealGrid.ValidationError>;
425
425
  onColumnCheckedChanged: PropType<(grid: RealGrid.TreeView, column: RealGrid.GridColumn, checked: boolean) => void>;
@@ -441,7 +441,7 @@ onShowEditor: PropType<(grid: RealGrid.TreeView, index: RealGrid.CellIndex, prop
441
441
  onShowEditCommand: PropType<(grid: RealGrid.TreeView, index: RealGrid.CellIndex) => boolean>;
442
442
  onHideEditor: PropType<(grid: RealGrid.TreeView, index: RealGrid.CellIndex) => void>;
443
443
  onEditChange: PropType<(grid: RealGrid.TreeView, index: RealGrid.CellIndex, value: any) => void>;
444
- onGetEditValue: PropType<(grid: RealGrid.TreeView, index: RealGrid.CellIndex, editResult: Object) => void>;
444
+ onGetEditValue: PropType<(grid: RealGrid.TreeView, index: RealGrid.CellIndex, editResult: Object) => void | boolean>;
445
445
  onEditCommit: PropType<(grid: RealGrid.TreeView, index: RealGrid.CellIndex, oldValue: any, newValue: any) => boolean>;
446
446
  onEditCanceled: PropType<(grid: RealGrid.TreeView, index: RealGrid.CellIndex) => void>;
447
447
  onItemEditCanceled: PropType<(grid: RealGrid.TreeView, itemIndex: number, state: string) => void>;
@@ -465,7 +465,7 @@ onKeyDown: PropType<(grid: RealGrid.TreeView, event: KeyboardEvent) => boolean>;
465
465
  onKeyPress: PropType<(grid: RealGrid.TreeView, event: KeyboardEvent) => void>;
466
466
  onKeyUp: PropType<(grid: RealGrid.TreeView, event: KeyboardEvent) => void>;
467
467
  onShowTooltip: PropType<(grid: RealGrid.TreeView, index: RealGrid.CellIndex, value: any) => boolean | string>;
468
- onShowHeaderTooltip: PropType<(grid: RealGrid.TreeView, column: RealGrid.GridColumn, value: any, layout: RealGrid.CellLayoutItem) => any>;
468
+ onShowHeaderTooltip: PropType<(grid: RealGrid.TreeView, column: RealGrid.GridColumn, value: any, layout: RealGrid.CellLayoutItem) => string>;
469
469
  onColumnPropertyChanged: PropType<(grid: RealGrid.TreeView, column: RealGrid.GridColumn, property: string, newValue: any, oldValue: any) => void>;
470
470
  onLayoutPropertyChanged: PropType<(grid: RealGrid.TreeView, layout: RealGrid.CellLayoutItem, property: string, newValue: any, oldValue: any) => void>;
471
471
  onGridActivated: PropType<(grid: RealGrid.TreeView) => void>;
@@ -523,7 +523,7 @@ onDestroy: PropType<(grid: RealGrid.TreeView) => void>;
523
523
  onCurrentChanging: PropType<(grid: RealGrid.TreeView, oldIndex: RealGrid.CellIndex, newIndex: RealGrid.CellIndex) => boolean>;
524
524
  onCurrentChanged: PropType<(grid: RealGrid.TreeView, newIndex: RealGrid.CellIndex) => void>;
525
525
  onCurrentRowChanged: PropType<(grid: RealGrid.TreeView, oldRow: number, newRow: number) => void>;
526
- onValidateColumn: PropType<(grid: RealGrid.TreeView, column: RealGrid.GridColumn, inserting: boolean, value: any, itemIndex: number, dataRow: number) => RealGrid.ValidationError>;
526
+ onValidateColumn: PropType<(grid: RealGrid.TreeView, column: RealGrid.DataColumn, inserting: boolean, value: any, itemIndex: number, dataRow: number) => RealGrid.ValidationError | undefined>;
527
527
  onValidateRow: PropType<(grid: RealGrid.TreeView, itemIndex: number, dataRow: number, inserting: boolean, values: any[]) => RealGrid.ValidationError>;
528
528
  onValidationFail: PropType<(grid: RealGrid.TreeView, itemIndex: number, column: RealGrid.GridColumn, error: RealGrid.ValidationError) => RealGrid.ValidationError>;
529
529
  onColumnCheckedChanged: PropType<(grid: RealGrid.TreeView, column: RealGrid.GridColumn, checked: boolean) => void>;
@@ -545,7 +545,7 @@ onShowEditor: PropType<(grid: RealGrid.TreeView, index: RealGrid.CellIndex, prop
545
545
  onShowEditCommand: PropType<(grid: RealGrid.TreeView, index: RealGrid.CellIndex) => boolean>;
546
546
  onHideEditor: PropType<(grid: RealGrid.TreeView, index: RealGrid.CellIndex) => void>;
547
547
  onEditChange: PropType<(grid: RealGrid.TreeView, index: RealGrid.CellIndex, value: any) => void>;
548
- onGetEditValue: PropType<(grid: RealGrid.TreeView, index: RealGrid.CellIndex, editResult: Object) => void>;
548
+ onGetEditValue: PropType<(grid: RealGrid.TreeView, index: RealGrid.CellIndex, editResult: Object) => void | boolean>;
549
549
  onEditCommit: PropType<(grid: RealGrid.TreeView, index: RealGrid.CellIndex, oldValue: any, newValue: any) => boolean>;
550
550
  onEditCanceled: PropType<(grid: RealGrid.TreeView, index: RealGrid.CellIndex) => void>;
551
551
  onItemEditCanceled: PropType<(grid: RealGrid.TreeView, itemIndex: number, state: string) => void>;
@@ -569,7 +569,7 @@ onKeyDown: PropType<(grid: RealGrid.TreeView, event: KeyboardEvent) => boolean>;
569
569
  onKeyPress: PropType<(grid: RealGrid.TreeView, event: KeyboardEvent) => void>;
570
570
  onKeyUp: PropType<(grid: RealGrid.TreeView, event: KeyboardEvent) => void>;
571
571
  onShowTooltip: PropType<(grid: RealGrid.TreeView, index: RealGrid.CellIndex, value: any) => boolean | string>;
572
- onShowHeaderTooltip: PropType<(grid: RealGrid.TreeView, column: RealGrid.GridColumn, value: any, layout: RealGrid.CellLayoutItem) => any>;
572
+ onShowHeaderTooltip: PropType<(grid: RealGrid.TreeView, column: RealGrid.GridColumn, value: any, layout: RealGrid.CellLayoutItem) => string>;
573
573
  onColumnPropertyChanged: PropType<(grid: RealGrid.TreeView, column: RealGrid.GridColumn, property: string, newValue: any, oldValue: any) => void>;
574
574
  onLayoutPropertyChanged: PropType<(grid: RealGrid.TreeView, layout: RealGrid.CellLayoutItem, property: string, newValue: any, oldValue: any) => void>;
575
575
  onGridActivated: PropType<(grid: RealGrid.TreeView) => void>;
@@ -611,7 +611,7 @@ onRowsAdded: PropType<(provider: RealGrid.LocalTreeDataProvider, parent: number,
611
611
  onRowDeleting: PropType<(provider: RealGrid.LocalTreeDataProvider, row: number) => boolean>;
612
612
  onRowDeleted: PropType<(provider: RealGrid.LocalTreeDataProvider, row: number) => void>;
613
613
  onRowsDeleted: PropType<(provider: RealGrid.LocalTreeDataProvider, rows: number[]) => void>;
614
- onRowUpdating: PropType<(provider: RealGrid.LocalTreeDataProvider, row: number) => boolean>;
614
+ onRowUpdating: PropType<(provider: RealGrid.LocalTreeDataProvider, row: number, oldValues: RealGrid.RowValues, newValues: RealGrid.RowValues) => boolean>;
615
615
  onRowUpdated: PropType<(provider: RealGrid.LocalTreeDataProvider, row: number) => void>;
616
616
  onRowsUpdating: PropType<(provider: RealGrid.LocalTreeDataProvider, rows: number[]) => boolean>;
617
617
  onRowsUpdated: PropType<(provider: RealGrid.LocalTreeDataProvider, rows: number[]) => void>;
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "realgrid-vue",
3
3
  "private": false,
4
- "version": "0.9.1",
4
+ "version": "0.9.3",
5
5
  "description": "RealGrid2 wrapping Component for Vue3",
6
6
  "author": {
7
7
  "name": "WooriTech",
@@ -24,7 +24,7 @@
24
24
  "module": "./dist/index.es.js",
25
25
  "types": "./dist/index.d.ts",
26
26
  "dependencies": {
27
- "realgrid": "^2.8.6"
27
+ "realgrid": "*"
28
28
  },
29
29
  "peerDependencies": {
30
30
  "vue": ">=3.2.25"