@sd-angular/core 0.0.932 → 0.0.936
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.
- package/bundles/sd-angular-core-grid-material.umd.js +51 -21
- package/bundles/sd-angular-core-grid-material.umd.js.map +1 -1
- package/bundles/sd-angular-core-grid-material.umd.min.js +2 -2
- package/bundles/sd-angular-core-grid-material.umd.min.js.map +1 -1
- package/esm2015/grid-material/src/lib/components/desktop-cell/desktop-cell.component.js +3 -2
- package/esm2015/grid-material/src/lib/grid-material.component.js +27 -8
- package/esm2015/grid-material/src/lib/models/grid-option.model.js +1 -1
- package/esm2015/grid-material/src/lib/models/grid.model.js +1 -1
- package/esm2015/grid-material/src/lib/pipes/editor-validate.pipe.js +10 -8
- package/fesm2015/sd-angular-core-grid-material.js +37 -15
- package/fesm2015/sd-angular-core-grid-material.js.map +1 -1
- package/grid-material/sd-angular-core-grid-material.metadata.json +1 -1
- package/grid-material/src/lib/components/desktop-cell/desktop-cell.component.d.ts +1 -0
- package/grid-material/src/lib/grid-material.component.d.ts +9 -5
- package/grid-material/src/lib/models/grid-option.model.d.ts +0 -7
- package/grid-material/src/lib/models/grid.model.d.ts +1 -0
- package/grid-material/src/lib/pipes/editor-validate.pipe.d.ts +4 -2
- package/package.json +1 -1
- package/{sd-angular-core-0.0.932.tgz → sd-angular-core-0.0.936.tgz} +0 -0
|
@@ -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
|
|
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:
|
|
40
|
+
items: SdItem[];
|
|
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:
|
|
80
|
-
onSelect: (rowData:
|
|
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,8 @@ 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[];
|
|
93
97
|
}
|
|
@@ -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;
|
|
@@ -1,7 +1,9 @@
|
|
|
1
1
|
import { PipeTransform } from '@angular/core';
|
|
2
|
-
import {
|
|
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,
|
|
8
|
+
transform(value: string, item: SdItem, column: SdGridMaterialColumn, gridOption: SdGridMaterialOption): Promise<boolean>;
|
|
7
9
|
}
|
package/package.json
CHANGED
|
index 7fd7e94..4a7b64f 100644
|
|
|
Binary file
|