@sd-angular/core 0.0.1027 → 0.0.1028

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.
@@ -2,6 +2,7 @@ import { SdGridMaterialOption } from '../../models/grid-option.model';
2
2
  export declare class SdDesktopEditorValidation {
3
3
  sdId: string;
4
4
  item: any;
5
+ idx: number;
5
6
  gridOption: SdGridMaterialOption;
6
7
  constructor();
7
8
  }
@@ -87,10 +87,10 @@ export declare class SdGridMaterial<T = any> implements OnInit, AfterViewInit, O
87
87
  filterDef: any;
88
88
  }) => void;
89
89
  onCreate: () => void;
90
- onUpdate: (item: SdItem) => void;
91
- onSave: (item: SdGridMaterialItem<T>) => Promise<void>;
92
- onCancel: (item: SdGridMaterialItem<T>) => void;
93
- onRemove: (item: SdGridMaterialItem<T>) => void;
90
+ onUpdate: (item: SdItem, idx: number) => void;
91
+ onSave: (item: SdGridMaterialItem<T>, idx: number) => Promise<void>;
92
+ onCancel: (item: SdGridMaterialItem<T>, idx: number) => void;
93
+ onRemove: (item: SdGridMaterialItem<T>, idx: number) => void;
94
94
  add: (idx: number, item: T) => void;
95
95
  update: (idx: number, item: T) => void;
96
96
  remove: (idx: number) => void;
@@ -5,7 +5,7 @@ export interface SdEditorBase<T = any> {
5
5
  onAdd?: (rowData: T, rowDatas?: T[]) => void;
6
6
  onEdit?: (rowData: T) => void;
7
7
  onSave?: (rowData: T) => void | Promise<void>;
8
- validate?: (rowData: T) => string | Promise<string>;
8
+ validate?: (rowData: T, idx?: number) => string | Promise<string>;
9
9
  limit?: number;
10
10
  addToLast?: boolean;
11
11
  }
@@ -3,5 +3,5 @@ import { SdGridMaterialOption } from '../models/grid-option.model';
3
3
  import { SdItem } from '../models/grid.model';
4
4
  export declare class SdEditorValidatePipe implements PipeTransform {
5
5
  #private;
6
- transform(sdId: string, item: SdItem, gridOption: SdGridMaterialOption): Promise<string>;
6
+ transform(sdId: string, item: SdItem, idx: number, gridOption: SdGridMaterialOption): Promise<string>;
7
7
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@sd-angular/core",
3
- "version": "0.0.1027",
3
+ "version": "0.0.1028",
4
4
  "homepage": "https://www.facebook.com/DarkP3ter",
5
5
  "author": {
6
6
  "name": "darkpeter",
index aa0456f..aa7e7fa 100644
Binary file