realgrid-vue2 0.9.2 → 0.9.4

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
@@ -131,7 +131,7 @@ export declare const RealGridVue: DefineComponent<{
131
131
  onCurrentChanging: PropType<(grid: RealGrid.GridView, oldIndex: RealGrid.CellIndex, newIndex: RealGrid.CellIndex) => boolean>;
132
132
  onCurrentChanged: PropType<(grid: RealGrid.GridView, newIndex: RealGrid.CellIndex) => void>;
133
133
  onCurrentRowChanged: PropType<(grid: RealGrid.GridView, oldRow: number, newRow: number) => void>;
134
- onValidateColumn: PropType<(grid: RealGrid.GridView, column: RealGrid.GridColumn, inserting: boolean, value: any, itemIndex: number, dataRow: number) => RealGrid.ValidationError>;
134
+ onValidateColumn: PropType<(grid: RealGrid.GridView, column: RealGrid.DataColumn, inserting: boolean, value: any, itemIndex: number, dataRow: number) => RealGrid.ValidationError | undefined>;
135
135
  onValidateRow: PropType<(grid: RealGrid.GridView, itemIndex: number, dataRow: number, inserting: boolean, values: any[]) => RealGrid.ValidationError>;
136
136
  onValidationFail: PropType<(grid: RealGrid.GridView, itemIndex: number, column: RealGrid.GridColumn, error: RealGrid.ValidationError) => RealGrid.ValidationError>;
137
137
  onColumnCheckedChanged: PropType<(grid: RealGrid.GridView, column: RealGrid.GridColumn, checked: boolean) => void>;
@@ -164,20 +164,20 @@ export declare const RealGridVue: DefineComponent<{
164
164
  onEditRowChanged: PropType<(grid: RealGrid.GridView, itemIndex: number, row: number, field: number, oldValue: any, newValue: any) => void>;
165
165
  onEditRowPasted: PropType<(grid: RealGrid.GridView, itemIndex: number, row: number, fields: number[], oldValues: any[], newValues: any[]) => void>;
166
166
  onRowsPasted: PropType<(grid: RealGrid.GridView, items: number[]) => void>;
167
- onCellPasting: PropType<(grid: RealGrid.GridView, index: RealGrid.CellIndex, value: any) => boolean>;
167
+ onCellPasting: PropType<(grid: RealGrid.GridView, index: RealGrid.CellIndex, value: any, editResult: RealGrid.EditResult) => boolean>;
168
168
  onItemChecked: PropType<(grid: RealGrid.GridView, itemIndex: number, checked: boolean) => void>;
169
169
  onItemAllChecked: PropType<(grid: RealGrid.GridView, checked: boolean) => void>;
170
170
  onErrorClicked: PropType<(grid: RealGrid.GridView, error: string) => void>;
171
171
  onSorting: PropType<(grid: RealGrid.GridView, fields: number[], directions: string[]) => boolean>;
172
172
  onSortingChanged: PropType<(grid: RealGrid.GridView) => void>;
173
173
  onFiltering: PropType<(grid: RealGrid.GridView) => boolean>;
174
- onFilteringChanged: PropType<(grid: RealGrid.GridView, column: RealGrid.GridColumn, filter: RealGrid.ColumnFilter) => void>;
174
+ onFilteringChanged: PropType<(grid: RealGrid.GridView, column: RealGrid.GridColumn, filter: RealGrid.ColumnFilter, reset: boolean) => void>;
175
175
  onWheel: PropType<(grid: RealGrid.GridView, event: WheelEvent) => boolean>;
176
176
  onKeyDown: PropType<(grid: RealGrid.GridView, event: KeyboardEvent) => boolean>;
177
177
  onKeyPress: PropType<(grid: RealGrid.GridView, event: KeyboardEvent) => void>;
178
178
  onKeyUp: PropType<(grid: RealGrid.GridView, event: KeyboardEvent) => void>;
179
179
  onShowTooltip: PropType<(grid: RealGrid.GridView, index: RealGrid.CellIndex, value: any) => boolean | string>;
180
- onShowHeaderTooltip: PropType<(grid: RealGrid.GridView, column: RealGrid.GridColumn, value: any, layout: RealGrid.CellLayoutItem) => any>;
180
+ onShowHeaderTooltip: PropType<(grid: RealGrid.GridView, column: RealGrid.GridColumn, value: any, layout: RealGrid.CellLayoutItem) => string>;
181
181
  onColumnPropertyChanged: PropType<(grid: RealGrid.GridView, column: RealGrid.GridColumn, property: string, newValue: any, oldValue: any) => void>;
182
182
  onLayoutPropertyChanged: PropType<(grid: RealGrid.GridView, layout: RealGrid.CellLayoutItem, property: string, newValue: any, oldValue: any) => void>;
183
183
  onGridActivated: PropType<(grid: RealGrid.GridView) => void>;
@@ -235,7 +235,7 @@ export declare const RealGridVue: DefineComponent<{
235
235
  onCurrentChanging: PropType<(grid: RealGrid.GridView, oldIndex: RealGrid.CellIndex, newIndex: RealGrid.CellIndex) => boolean>;
236
236
  onCurrentChanged: PropType<(grid: RealGrid.GridView, newIndex: RealGrid.CellIndex) => void>;
237
237
  onCurrentRowChanged: PropType<(grid: RealGrid.GridView, oldRow: number, newRow: number) => void>;
238
- onValidateColumn: PropType<(grid: RealGrid.GridView, column: RealGrid.GridColumn, inserting: boolean, value: any, itemIndex: number, dataRow: number) => RealGrid.ValidationError>;
238
+ onValidateColumn: PropType<(grid: RealGrid.GridView, column: RealGrid.DataColumn, inserting: boolean, value: any, itemIndex: number, dataRow: number) => RealGrid.ValidationError | undefined>;
239
239
  onValidateRow: PropType<(grid: RealGrid.GridView, itemIndex: number, dataRow: number, inserting: boolean, values: any[]) => RealGrid.ValidationError>;
240
240
  onValidationFail: PropType<(grid: RealGrid.GridView, itemIndex: number, column: RealGrid.GridColumn, error: RealGrid.ValidationError) => RealGrid.ValidationError>;
241
241
  onColumnCheckedChanged: PropType<(grid: RealGrid.GridView, column: RealGrid.GridColumn, checked: boolean) => void>;
@@ -268,20 +268,20 @@ export declare const RealGridVue: DefineComponent<{
268
268
  onEditRowChanged: PropType<(grid: RealGrid.GridView, itemIndex: number, row: number, field: number, oldValue: any, newValue: any) => void>;
269
269
  onEditRowPasted: PropType<(grid: RealGrid.GridView, itemIndex: number, row: number, fields: number[], oldValues: any[], newValues: any[]) => void>;
270
270
  onRowsPasted: PropType<(grid: RealGrid.GridView, items: number[]) => void>;
271
- onCellPasting: PropType<(grid: RealGrid.GridView, index: RealGrid.CellIndex, value: any) => boolean>;
271
+ onCellPasting: PropType<(grid: RealGrid.GridView, index: RealGrid.CellIndex, value: any, editResult: RealGrid.EditResult) => boolean>;
272
272
  onItemChecked: PropType<(grid: RealGrid.GridView, itemIndex: number, checked: boolean) => void>;
273
273
  onItemAllChecked: PropType<(grid: RealGrid.GridView, checked: boolean) => void>;
274
274
  onErrorClicked: PropType<(grid: RealGrid.GridView, error: string) => void>;
275
275
  onSorting: PropType<(grid: RealGrid.GridView, fields: number[], directions: string[]) => boolean>;
276
276
  onSortingChanged: PropType<(grid: RealGrid.GridView) => void>;
277
277
  onFiltering: PropType<(grid: RealGrid.GridView) => boolean>;
278
- onFilteringChanged: PropType<(grid: RealGrid.GridView, column: RealGrid.GridColumn, filter: RealGrid.ColumnFilter) => void>;
278
+ onFilteringChanged: PropType<(grid: RealGrid.GridView, column: RealGrid.GridColumn, filter: RealGrid.ColumnFilter, reset: boolean) => void>;
279
279
  onWheel: PropType<(grid: RealGrid.GridView, event: WheelEvent) => boolean>;
280
280
  onKeyDown: PropType<(grid: RealGrid.GridView, event: KeyboardEvent) => boolean>;
281
281
  onKeyPress: PropType<(grid: RealGrid.GridView, event: KeyboardEvent) => void>;
282
282
  onKeyUp: PropType<(grid: RealGrid.GridView, event: KeyboardEvent) => void>;
283
283
  onShowTooltip: PropType<(grid: RealGrid.GridView, index: RealGrid.CellIndex, value: any) => boolean | string>;
284
- onShowHeaderTooltip: PropType<(grid: RealGrid.GridView, column: RealGrid.GridColumn, value: any, layout: RealGrid.CellLayoutItem) => any>;
284
+ onShowHeaderTooltip: PropType<(grid: RealGrid.GridView, column: RealGrid.GridColumn, value: any, layout: RealGrid.CellLayoutItem) => string>;
285
285
  onColumnPropertyChanged: PropType<(grid: RealGrid.GridView, column: RealGrid.GridColumn, property: string, newValue: any, oldValue: any) => void>;
286
286
  onLayoutPropertyChanged: PropType<(grid: RealGrid.GridView, layout: RealGrid.CellLayoutItem, property: string, newValue: any, oldValue: any) => void>;
287
287
  onGridActivated: PropType<(grid: RealGrid.GridView) => void>;
@@ -416,7 +416,7 @@ export declare const RealTreeVue: DefineComponent<{
416
416
  onCurrentChanging: PropType<(grid: RealGrid.TreeView, oldIndex: RealGrid.CellIndex, newIndex: RealGrid.CellIndex) => boolean>;
417
417
  onCurrentChanged: PropType<(grid: RealGrid.TreeView, newIndex: RealGrid.CellIndex) => void>;
418
418
  onCurrentRowChanged: PropType<(grid: RealGrid.TreeView, oldRow: number, newRow: number) => void>;
419
- onValidateColumn: PropType<(grid: RealGrid.TreeView, column: RealGrid.GridColumn, inserting: boolean, value: any, itemIndex: number, dataRow: number) => RealGrid.ValidationError>;
419
+ onValidateColumn: PropType<(grid: RealGrid.TreeView, column: RealGrid.DataColumn, inserting: boolean, value: any, itemIndex: number, dataRow: number) => RealGrid.ValidationError | undefined>;
420
420
  onValidateRow: PropType<(grid: RealGrid.TreeView, itemIndex: number, dataRow: number, inserting: boolean, values: any[]) => RealGrid.ValidationError>;
421
421
  onValidationFail: PropType<(grid: RealGrid.TreeView, itemIndex: number, column: RealGrid.GridColumn, error: RealGrid.ValidationError) => RealGrid.ValidationError>;
422
422
  onColumnCheckedChanged: PropType<(grid: RealGrid.TreeView, column: RealGrid.GridColumn, checked: boolean) => void>;
@@ -449,20 +449,20 @@ export declare const RealTreeVue: DefineComponent<{
449
449
  onEditRowChanged: PropType<(grid: RealGrid.TreeView, itemIndex: number, row: number, field: number, oldValue: any, newValue: any) => void>;
450
450
  onEditRowPasted: PropType<(grid: RealGrid.TreeView, itemIndex: number, row: number, fields: number[], oldValues: any[], newValues: any[]) => void>;
451
451
  onRowsPasted: PropType<(grid: RealGrid.TreeView, items: number[]) => void>;
452
- onCellPasting: PropType<(grid: RealGrid.TreeView, index: RealGrid.CellIndex, value: any) => boolean>;
452
+ onCellPasting: PropType<(grid: RealGrid.TreeView, index: RealGrid.CellIndex, value: any, editResult: RealGrid.EditResult) => boolean>;
453
453
  onItemChecked: PropType<(grid: RealGrid.TreeView, itemIndex: number, checked: boolean) => void>;
454
454
  onItemAllChecked: PropType<(grid: RealGrid.TreeView, checked: boolean) => void>;
455
455
  onErrorClicked: PropType<(grid: RealGrid.TreeView, error: string) => void>;
456
456
  onSorting: PropType<(grid: RealGrid.TreeView, fields: number[], directions: string[]) => boolean>;
457
457
  onSortingChanged: PropType<(grid: RealGrid.TreeView) => void>;
458
458
  onFiltering: PropType<(grid: RealGrid.TreeView) => boolean>;
459
- onFilteringChanged: PropType<(grid: RealGrid.TreeView, column: RealGrid.GridColumn, filter: RealGrid.ColumnFilter) => void>;
459
+ onFilteringChanged: PropType<(grid: RealGrid.TreeView, column: RealGrid.GridColumn, filter: RealGrid.ColumnFilter, reset: boolean) => void>;
460
460
  onWheel: PropType<(grid: RealGrid.TreeView, event: WheelEvent) => boolean>;
461
461
  onKeyDown: PropType<(grid: RealGrid.TreeView, event: KeyboardEvent) => boolean>;
462
462
  onKeyPress: PropType<(grid: RealGrid.TreeView, event: KeyboardEvent) => void>;
463
463
  onKeyUp: PropType<(grid: RealGrid.TreeView, event: KeyboardEvent) => void>;
464
464
  onShowTooltip: PropType<(grid: RealGrid.TreeView, index: RealGrid.CellIndex, value: any) => boolean | string>;
465
- onShowHeaderTooltip: PropType<(grid: RealGrid.TreeView, column: RealGrid.GridColumn, value: any, layout: RealGrid.CellLayoutItem) => any>;
465
+ onShowHeaderTooltip: PropType<(grid: RealGrid.TreeView, column: RealGrid.GridColumn, value: any, layout: RealGrid.CellLayoutItem) => string>;
466
466
  onColumnPropertyChanged: PropType<(grid: RealGrid.TreeView, column: RealGrid.GridColumn, property: string, newValue: any, oldValue: any) => void>;
467
467
  onLayoutPropertyChanged: PropType<(grid: RealGrid.TreeView, layout: RealGrid.CellLayoutItem, property: string, newValue: any, oldValue: any) => void>;
468
468
  onGridActivated: PropType<(grid: RealGrid.TreeView) => void>;
@@ -520,7 +520,7 @@ export declare const RealTreeVue: DefineComponent<{
520
520
  onCurrentChanging: PropType<(grid: RealGrid.TreeView, oldIndex: RealGrid.CellIndex, newIndex: RealGrid.CellIndex) => boolean>;
521
521
  onCurrentChanged: PropType<(grid: RealGrid.TreeView, newIndex: RealGrid.CellIndex) => void>;
522
522
  onCurrentRowChanged: PropType<(grid: RealGrid.TreeView, oldRow: number, newRow: number) => void>;
523
- onValidateColumn: PropType<(grid: RealGrid.TreeView, column: RealGrid.GridColumn, inserting: boolean, value: any, itemIndex: number, dataRow: number) => RealGrid.ValidationError>;
523
+ onValidateColumn: PropType<(grid: RealGrid.TreeView, column: RealGrid.DataColumn, inserting: boolean, value: any, itemIndex: number, dataRow: number) => RealGrid.ValidationError | undefined>;
524
524
  onValidateRow: PropType<(grid: RealGrid.TreeView, itemIndex: number, dataRow: number, inserting: boolean, values: any[]) => RealGrid.ValidationError>;
525
525
  onValidationFail: PropType<(grid: RealGrid.TreeView, itemIndex: number, column: RealGrid.GridColumn, error: RealGrid.ValidationError) => RealGrid.ValidationError>;
526
526
  onColumnCheckedChanged: PropType<(grid: RealGrid.TreeView, column: RealGrid.GridColumn, checked: boolean) => void>;
@@ -553,20 +553,20 @@ export declare const RealTreeVue: DefineComponent<{
553
553
  onEditRowChanged: PropType<(grid: RealGrid.TreeView, itemIndex: number, row: number, field: number, oldValue: any, newValue: any) => void>;
554
554
  onEditRowPasted: PropType<(grid: RealGrid.TreeView, itemIndex: number, row: number, fields: number[], oldValues: any[], newValues: any[]) => void>;
555
555
  onRowsPasted: PropType<(grid: RealGrid.TreeView, items: number[]) => void>;
556
- onCellPasting: PropType<(grid: RealGrid.TreeView, index: RealGrid.CellIndex, value: any) => boolean>;
556
+ onCellPasting: PropType<(grid: RealGrid.TreeView, index: RealGrid.CellIndex, value: any, editResult: RealGrid.EditResult) => boolean>;
557
557
  onItemChecked: PropType<(grid: RealGrid.TreeView, itemIndex: number, checked: boolean) => void>;
558
558
  onItemAllChecked: PropType<(grid: RealGrid.TreeView, checked: boolean) => void>;
559
559
  onErrorClicked: PropType<(grid: RealGrid.TreeView, error: string) => void>;
560
560
  onSorting: PropType<(grid: RealGrid.TreeView, fields: number[], directions: string[]) => boolean>;
561
561
  onSortingChanged: PropType<(grid: RealGrid.TreeView) => void>;
562
562
  onFiltering: PropType<(grid: RealGrid.TreeView) => boolean>;
563
- onFilteringChanged: PropType<(grid: RealGrid.TreeView, column: RealGrid.GridColumn, filter: RealGrid.ColumnFilter) => void>;
563
+ onFilteringChanged: PropType<(grid: RealGrid.TreeView, column: RealGrid.GridColumn, filter: RealGrid.ColumnFilter, reset: boolean) => void>;
564
564
  onWheel: PropType<(grid: RealGrid.TreeView, event: WheelEvent) => boolean>;
565
565
  onKeyDown: PropType<(grid: RealGrid.TreeView, event: KeyboardEvent) => boolean>;
566
566
  onKeyPress: PropType<(grid: RealGrid.TreeView, event: KeyboardEvent) => void>;
567
567
  onKeyUp: PropType<(grid: RealGrid.TreeView, event: KeyboardEvent) => void>;
568
568
  onShowTooltip: PropType<(grid: RealGrid.TreeView, index: RealGrid.CellIndex, value: any) => boolean | string>;
569
- onShowHeaderTooltip: PropType<(grid: RealGrid.TreeView, column: RealGrid.GridColumn, value: any, layout: RealGrid.CellLayoutItem) => any>;
569
+ onShowHeaderTooltip: PropType<(grid: RealGrid.TreeView, column: RealGrid.GridColumn, value: any, layout: RealGrid.CellLayoutItem) => string>;
570
570
  onColumnPropertyChanged: PropType<(grid: RealGrid.TreeView, column: RealGrid.GridColumn, property: string, newValue: any, oldValue: any) => void>;
571
571
  onLayoutPropertyChanged: PropType<(grid: RealGrid.TreeView, layout: RealGrid.CellLayoutItem, property: string, newValue: any, oldValue: any) => void>;
572
572
  onGridActivated: PropType<(grid: RealGrid.TreeView) => void>;
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "realgrid-vue2",
3
3
  "private": false,
4
- "version": "0.9.2",
4
+ "version": "0.9.4",
5
5
  "description": "RealGrid2 wrapping Component for Vue2",
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.3"
27
+ "realgrid": "*"
28
28
  },
29
29
  "peerDependencies": {
30
30
  "vue": ">=2.7.0 <2.8.0"