@sd-angular/core 0.0.1027 → 0.0.1031

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
+ items: any[];
5
6
  gridOption: SdGridMaterialOption;
6
7
  constructor();
7
8
  }
@@ -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, items: SdItem[], 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.1031",
4
4
  "homepage": "https://www.facebook.com/DarkP3ter",
5
5
  "author": {
6
6
  "name": "darkpeter",
index aa0456f..feca6a7 100644
Binary file