@sd-angular/core 1.0.6 → 1.0.10
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-common.umd.js +8 -5
- package/bundles/sd-angular-core-common.umd.js.map +1 -1
- package/bundles/sd-angular-core-common.umd.min.js +1 -1
- package/bundles/sd-angular-core-common.umd.min.js.map +1 -1
- package/bundles/sd-angular-core-grid-material.umd.js +148 -6
- 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/common/sd-angular-core-common.metadata.json +1 -1
- package/common/src/lib/directives/sd-let.directive.d.ts +1 -1
- package/esm2015/common/src/lib/directives/sd-let.directive.js +9 -6
- package/esm2015/grid-material/sd-angular-core-grid-material.js +2 -1
- package/esm2015/grid-material/src/lib/components/desktop-cell/desktop-cell.component.js +2 -2
- package/esm2015/grid-material/src/lib/components/desktop-cell-editor/desktop-cell-editor.component.js +2 -2
- package/esm2015/grid-material/src/lib/components/desktop-cell-view/desktop-cell-view.component.js +5 -4
- package/esm2015/grid-material/src/lib/grid-material.module.js +4 -2
- package/esm2015/grid-material/src/lib/models/grid-cell.model.js +2 -0
- package/esm2015/grid-material/src/lib/models/grid-column.model.js +1 -1
- package/esm2015/grid-material/src/lib/models/grid-option.model.js +1 -1
- package/esm2015/grid-material/src/lib/pipes/cell-view.pipe.js +131 -0
- package/fesm2015/sd-angular-core-common.js +8 -6
- package/fesm2015/sd-angular-core-common.js.map +1 -1
- package/fesm2015/sd-angular-core-grid-material.js +135 -7
- package/fesm2015/sd-angular-core-grid-material.js.map +1 -1
- package/grid-material/sd-angular-core-grid-material.d.ts +1 -0
- package/grid-material/sd-angular-core-grid-material.metadata.json +1 -1
- package/grid-material/src/lib/components/desktop-cell-view/desktop-cell-view.component.d.ts +2 -0
- package/grid-material/src/lib/models/grid-cell.model.d.ts +15 -0
- package/grid-material/src/lib/models/grid-column.model.d.ts +1 -0
- package/grid-material/src/lib/models/grid-option.model.d.ts +1 -0
- package/grid-material/src/lib/pipes/cell-view.pipe.d.ts +14 -0
- package/package.json +1 -1
- package/{sd-angular-core-1.0.6.tgz → sd-angular-core-1.0.10.tgz} +0 -0
|
@@ -1,8 +1,10 @@
|
|
|
1
1
|
import { SdGridMaterialColumn } from '../../models/grid-column.model';
|
|
2
|
+
import { SdGridMaterialOption } from '../../models/grid-option.model';
|
|
2
3
|
export declare class SdDesktopCellView {
|
|
3
4
|
sdId: string;
|
|
4
5
|
key: string;
|
|
5
6
|
column: SdGridMaterialColumn;
|
|
6
7
|
item: any;
|
|
8
|
+
gridOption: SdGridMaterialOption;
|
|
7
9
|
constructor();
|
|
8
10
|
}
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import { SdBadgeColor } from "@sd-angular/core/badge";
|
|
2
|
+
export interface SdCellView {
|
|
3
|
+
badge?: {
|
|
4
|
+
type: 'round' | 'circle' | 'icon';
|
|
5
|
+
color: SdBadgeColor;
|
|
6
|
+
icon: string;
|
|
7
|
+
};
|
|
8
|
+
tooltip?: string;
|
|
9
|
+
display: {
|
|
10
|
+
align: 'center' | 'left' | 'right';
|
|
11
|
+
value: string;
|
|
12
|
+
html?: string;
|
|
13
|
+
};
|
|
14
|
+
click?: () => void;
|
|
15
|
+
}
|
|
@@ -9,6 +9,7 @@ interface SdGridMaterialBaseColumn<T = any> {
|
|
|
9
9
|
hidden?: boolean;
|
|
10
10
|
invisible?: boolean;
|
|
11
11
|
fixed?: boolean;
|
|
12
|
+
align?: 'center' | 'left' | 'right';
|
|
12
13
|
htmlTemplate?: (value: any, rowData: T, isMobileOrTablet: boolean) => string;
|
|
13
14
|
transform?: (value: any, rowData: T) => string;
|
|
14
15
|
tooltip?: (value: any, rowData: T) => string;
|
|
@@ -33,6 +33,7 @@ interface SdGridMaterialBaseOption<T = any> {
|
|
|
33
33
|
columns: SdGridMaterialColumn<T>[];
|
|
34
34
|
subInformation?: SdGridMaterialSubInformation<T>;
|
|
35
35
|
style?: SdGridMaterialStyle<T>;
|
|
36
|
+
displayOnEmpty?: boolean | ((rowData: T, column?: SdGridMaterialColumn<T>) => string);
|
|
36
37
|
}
|
|
37
38
|
interface SdGridMaterialLocalOption<T = any> extends SdGridMaterialBaseOption<T> {
|
|
38
39
|
type: 'local';
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import { PipeTransform } from '@angular/core';
|
|
2
|
+
import { SdUtilityService } from '@sd-angular/core/utility';
|
|
3
|
+
import { DeviceDetectorService } from 'ngx-device-detector';
|
|
4
|
+
import { SdCellView } from '../models/grid-cell.model';
|
|
5
|
+
import { SdGridMaterialColumn } from '../models/grid-column.model';
|
|
6
|
+
import { SdGridMaterialOption } from '../models/grid-option.model';
|
|
7
|
+
import { SdGridService } from '../services/grid.service';
|
|
8
|
+
export declare class SdCellViewPipe implements PipeTransform {
|
|
9
|
+
#private;
|
|
10
|
+
private utilityService;
|
|
11
|
+
private gridService;
|
|
12
|
+
constructor(deviceService: DeviceDetectorService, utilityService: SdUtilityService, gridService: SdGridService);
|
|
13
|
+
transform(value: any, rowData: any, column: SdGridMaterialColumn, gridOption: SdGridMaterialOption, key: string): Promise<SdCellView>;
|
|
14
|
+
}
|
package/package.json
CHANGED
|
index 9ddd80b..ce52213 100644
|
|
|
Binary file
|