@sd-angular/core 1.3.15 → 1.3.16

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.
@@ -94,7 +94,7 @@ export declare class SdGridMaterial<T = any> implements OnInit, AfterViewInit, O
94
94
  onUpdate: (item: SdItem) => void;
95
95
  onSave: (item: SdGridMaterialItem<T>) => Promise<void>;
96
96
  onCancel: (item: SdGridMaterialItem<T>) => void;
97
- onRemove: (item: SdGridMaterialItem<T>) => void;
97
+ onRemove: (item: SdGridMaterialItem<T>) => Promise<void>;
98
98
  add: (idx: number, item: T) => void;
99
99
  update: (idx: number, item: T) => void;
100
100
  remove: (idx: number) => void;
@@ -6,6 +6,7 @@ export interface SdEditorBase<T = any> {
6
6
  onAdd?: (rowData?: T, rowDatas?: T[]) => void;
7
7
  onCancel?: (rowData?: T, rowDatas?: T[]) => void;
8
8
  onRemove?: (rowData?: T, rowDatas?: T[]) => void;
9
+ beforeRemove?: (rowData?: T) => boolean | Promise<boolean>;
9
10
  onEdit?: (rowData: T) => void;
10
11
  onSave?: (rowData: T) => void | Promise<void>;
11
12
  validate?: (rowData: T, idx?: number) => string | Promise<string>;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@sd-angular/core",
3
- "version": "1.3.15",
3
+ "version": "1.3.16",
4
4
  "homepage": "https://www.facebook.com/DarkP3ter",
5
5
  "author": {
6
6
  "name": "darkpeter",
index b55acc9..954ead9 100644
Binary file