@sd-angular/core 0.0.927 → 0.0.931

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.
@@ -1,3 +1,4 @@
1
+ import { SdMaterialCellDefDirective } from '../../directives/sd-material-cell-def.directive';
1
2
  import { SdGridMaterialColumn } from '../../models/grid-column.model';
2
3
  import { SdGridMaterialOption } from '../../models/grid-option.model';
3
4
  export declare class SdDesktopCell {
@@ -5,5 +6,9 @@ export declare class SdDesktopCell {
5
6
  column: SdGridMaterialColumn;
6
7
  item: any;
7
8
  gridOption: SdGridMaterialOption;
9
+ cellDef: {
10
+ [column: string]: SdMaterialCellDefDirective;
11
+ };
12
+ idx: number;
8
13
  constructor();
9
14
  }
@@ -86,7 +86,8 @@ export declare class SdGridMaterial<T = any> implements OnInit, AfterViewInit, O
86
86
  filterDef: any;
87
87
  }) => void;
88
88
  onCreate: () => void;
89
- onUpdate: (item: SdItem, isModified?: boolean) => void;
89
+ onUpdate: (item: SdItem) => void;
90
90
  onSave: (item: SdItem) => Promise<void>;
91
91
  onCancel: (item: SdItem) => void;
92
+ onRemove: (item: SdItem) => void;
92
93
  }
@@ -20,12 +20,13 @@ export interface SdItem {
20
20
  };
21
21
  }
22
22
  export interface EditorHandlerRow {
23
- visible: boolean;
24
23
  status?: 'create' | 'update';
24
+ visible?: boolean;
25
25
  editable?: boolean;
26
26
  removable?: boolean;
27
+ savable?: boolean;
28
+ cancelable?: boolean;
27
29
  errorMessage?: string;
28
- isInline?: boolean;
29
30
  temporary?: any;
30
31
  saving?: boolean;
31
32
  }
@@ -2,5 +2,5 @@ import { PipeTransform } from '@angular/core';
2
2
  import { SdGridMaterialOption } from '../models/grid-option.model';
3
3
  import { EditorHandlerRow, SdItem } from '../models/grid.model';
4
4
  export declare class SdEditorHandlerRowPipe implements PipeTransform {
5
- transform(item: SdItem, gridOption: SdGridMaterialOption): EditorHandlerRow;
5
+ transform(status: 'create' | 'update', item: SdItem, gridOption: SdGridMaterialOption): EditorHandlerRow;
6
6
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@sd-angular/core",
3
- "version": "0.0.927",
3
+ "version": "0.0.931",
4
4
  "homepage": "https://www.facebook.com/DarkP3ter",
5
5
  "author": {
6
6
  "name": "darkpeter",
index 680b3ac..5a7a101 100644
Binary file