@sd-angular/core 0.0.941 → 0.0.942

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.
@@ -8,6 +8,7 @@ import { SdGridMaterialSubInformation } from './grid-sub-information.model';
8
8
  import { SdGridMaterialSelection } from './grid-selection.model';
9
9
  import { Observable } from 'rxjs';
10
10
  import { SdEditor } from './grid-editor.model';
11
+ import { SdGridMaterialStyle } from './grid-style.model';
11
12
  export declare type SdGridMaterialOption<T = any> = SdGridMaterialLocalOption<T> | SdGridMaterialServerOption<T>;
12
13
  interface SdGridMaterialBaseOption<T = any> {
13
14
  shadow?: boolean;
@@ -31,9 +32,7 @@ interface SdGridMaterialBaseOption<T = any> {
31
32
  commands?: SdGridMaterialCommand<T>[];
32
33
  columns: SdGridMaterialColumn<T>[];
33
34
  subInformation?: SdGridMaterialSubInformation<T>;
34
- style?: {
35
- grid?: 'style1' | 'style2';
36
- };
35
+ style?: SdGridMaterialStyle<T>;
37
36
  }
38
37
  interface SdGridMaterialLocalOption<T = any> extends SdGridMaterialBaseOption<T> {
39
38
  type: 'local';
@@ -0,0 +1,6 @@
1
+ export interface SdGridMaterialStyle<T = any> {
2
+ grid?: 'style1' | 'style2';
3
+ rowCss?: (rowData: T) => {
4
+ [key: string]: string;
5
+ };
6
+ }
@@ -0,0 +1,7 @@
1
+ import { PipeTransform } from '@angular/core';
2
+ import { SdGridMaterialOption } from '../models/grid-option.model';
3
+ export declare class SdStyleRowCss implements PipeTransform {
4
+ transform(item: any, gridOption: SdGridMaterialOption): {
5
+ [key: string]: string;
6
+ };
7
+ }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@sd-angular/core",
3
- "version": "0.0.941",
3
+ "version": "0.0.942",
4
4
  "homepage": "https://www.facebook.com/DarkP3ter",
5
5
  "author": {
6
6
  "name": "darkpeter",
index 2d885bc..e5a45f5 100644
Binary file