@sd-angular/core 0.0.934 → 0.0.938

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 { SdMaterialCellDefDirective } from '../../directives/sd-material-cell-de
2
2
  import { SdGridMaterialColumn } from '../../models/grid-column.model';
3
3
  import { SdGridMaterialOption } from '../../models/grid-option.model';
4
4
  export declare class SdDesktopCell {
5
+ value: any;
5
6
  key: string;
6
7
  column: SdGridMaterialColumn;
7
8
  item: any;
@@ -1,7 +1,7 @@
1
1
  import { AfterViewInit, ChangeDetectorRef, QueryList, OnInit, OnDestroy } from '@angular/core';
2
2
  import { MatPaginator } from '@angular/material/paginator';
3
3
  import { MatSort } from '@angular/material/sort';
4
- import { SdGridMaterialOption, SdGridMaterialRowData } from './models/grid-option.model';
4
+ import { SdGridMaterialOption } from './models/grid-option.model';
5
5
  import { ISdGridMaterialConfiguration } from './models/grid-configuration.model';
6
6
  import { Observable } from 'rxjs';
7
7
  import { SdNotifyService } from '@sd-angular/core/notify';
@@ -19,7 +19,7 @@ import { SdGridConfigurationService } from './services/grid-configuration.servic
19
19
  import { SdTranslateService } from '@sd-angular/core/translate';
20
20
  import { SdGridService } from './services/grid.service';
21
21
  import { SdQuickAction } from '@sd-angular/core/quick-action';
22
- import { SdItem } from './models/grid.model';
22
+ import { SdGridMaterialItem, SdItem } from './models/grid.model';
23
23
  export declare class SdGridMaterial<T = any> implements OnInit, AfterViewInit, OnDestroy {
24
24
  #private;
25
25
  private ref;
@@ -37,7 +37,7 @@ export declare class SdGridMaterial<T = any> implements OnInit, AfterViewInit, O
37
37
  set option(option: SdGridMaterialOption);
38
38
  gridOption: SdGridMaterialOption;
39
39
  localItems: any[];
40
- items: SdGridMaterialRowData[];
40
+ items: SdGridMaterialItem[];
41
41
  selectedItems: T[];
42
42
  total: number;
43
43
  isLoading: boolean;
@@ -76,8 +76,8 @@ export declare class SdGridMaterial<T = any> implements OnInit, AfterViewInit, O
76
76
  isCSV: boolean;
77
77
  }) => Promise<void>;
78
78
  onFilterChange: () => void;
79
- onExpand: (rowData: SdGridMaterialRowData) => Promise<void>;
80
- onSelect: (rowData: SdGridMaterialRowData) => void;
79
+ onExpand: (rowData: SdGridMaterialItem) => Promise<void>;
80
+ onSelect: (rowData: SdGridMaterialItem) => void;
81
81
  onSelectAll: () => void;
82
82
  clearFilter: () => void;
83
83
  setFilter: (args: {
@@ -90,4 +90,9 @@ export declare class SdGridMaterial<T = any> implements OnInit, AfterViewInit, O
90
90
  onSave: (item: SdItem) => Promise<void>;
91
91
  onCancel: (item: SdItem) => void;
92
92
  onRemove: (item: SdItem) => void;
93
+ get editedItems(): (T & {
94
+ editorErrorMessage: string;
95
+ })[];
96
+ get gridItems(): T[];
97
+ detectChanges: () => void;
93
98
  }
@@ -9,13 +9,6 @@ import { SdGridMaterialSelection } from './grid-selection.model';
9
9
  import { Observable } from 'rxjs';
10
10
  import { SdEditor } from './grid-editor.model';
11
11
  export declare type SdGridMaterialOption<T = any> = SdGridMaterialLocalOption<T> | SdGridMaterialServerOption<T>;
12
- export interface SdGridMaterialRowData {
13
- [key: string]: any;
14
- isSelected?: boolean;
15
- isExpanded?: boolean;
16
- isExpanding?: boolean;
17
- expandDetail?: any;
18
- }
19
12
  interface SdGridMaterialBaseOption<T = any> {
20
13
  shadow?: boolean;
21
14
  maxHeight?: string;
@@ -6,6 +6,7 @@ export interface EditorHandler {
6
6
  };
7
7
  }
8
8
  export interface SdItem {
9
+ originItem?: any;
9
10
  isSelected?: boolean;
10
11
  isExpanded?: boolean;
11
12
  isExpanding?: boolean;
@@ -1,7 +1,9 @@
1
1
  import { PipeTransform } from '@angular/core';
2
- import { SdGridMaterialItem, SdItem } from '../models/grid.model';
2
+ import { SdGridMaterialColumn } from '../models/grid-column.model';
3
+ import { SdGridMaterialOption } from '../models/grid-option.model';
4
+ import { SdItem } from '../models/grid.model';
3
5
  export declare class SdEditorValidatePipe implements PipeTransform {
4
6
  private previous;
5
7
  private delay;
6
- transform(value: string, item: SdItem, validate: (item: SdGridMaterialItem) => string | Promise<string>): Promise<boolean>;
8
+ transform(value: string, item: SdItem, column: SdGridMaterialColumn, gridOption: SdGridMaterialOption): Promise<boolean>;
7
9
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@sd-angular/core",
3
- "version": "0.0.934",
3
+ "version": "0.0.938",
4
4
  "homepage": "https://www.facebook.com/DarkP3ter",
5
5
  "author": {
6
6
  "name": "darkpeter",
index 1c2f8b8..1e68451 100644
Binary file