@sd-angular/core 0.0.938 → 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.
Files changed (30) hide show
  1. package/bundles/sd-angular-core-grid-material.umd.js +35 -9
  2. package/bundles/sd-angular-core-grid-material.umd.js.map +1 -1
  3. package/bundles/sd-angular-core-grid-material.umd.min.js +2 -2
  4. package/bundles/sd-angular-core-grid-material.umd.min.js.map +1 -1
  5. package/esm2015/grid-material/sd-angular-core-grid-material.js +2 -1
  6. package/esm2015/grid-material/src/lib/components/desktop-cell/desktop-cell.component.js +3 -2
  7. package/esm2015/grid-material/src/lib/components/desktop-cell-editor/desktop-cell-editor.component.js +2 -1
  8. package/esm2015/grid-material/src/lib/components/desktop-cell-view/desktop-cell-view.component.js +2 -1
  9. package/esm2015/grid-material/src/lib/components/grid-filter/grid-filter.component.js +1 -1
  10. package/esm2015/grid-material/src/lib/grid-material.component.js +6 -2
  11. package/esm2015/grid-material/src/lib/grid-material.module.js +7 -3
  12. package/esm2015/grid-material/src/lib/models/grid-option.model.js +1 -1
  13. package/esm2015/grid-material/src/lib/models/grid-style.model.js +2 -0
  14. package/esm2015/grid-material/src/lib/models/grid.model.js +1 -1
  15. package/esm2015/grid-material/src/lib/pipes/editor-handler-column.pipe.js +3 -1
  16. package/esm2015/grid-material/src/lib/pipes/style-row-css.pipe.js +13 -0
  17. package/fesm2015/sd-angular-core-grid-material.js +37 -14
  18. package/fesm2015/sd-angular-core-grid-material.js.map +1 -1
  19. package/grid-material/sd-angular-core-grid-material.d.ts +1 -0
  20. package/grid-material/sd-angular-core-grid-material.metadata.json +1 -1
  21. package/grid-material/src/lib/components/desktop-cell/desktop-cell.component.d.ts +1 -0
  22. package/grid-material/src/lib/components/desktop-cell-editor/desktop-cell-editor.component.d.ts +1 -0
  23. package/grid-material/src/lib/components/desktop-cell-view/desktop-cell-view.component.d.ts +1 -0
  24. package/grid-material/src/lib/grid-material.component.d.ts +1 -0
  25. package/grid-material/src/lib/models/grid-option.model.d.ts +2 -3
  26. package/grid-material/src/lib/models/grid-style.model.d.ts +6 -0
  27. package/grid-material/src/lib/models/grid.model.d.ts +1 -0
  28. package/grid-material/src/lib/pipes/style-row-css.pipe.d.ts +7 -0
  29. package/package.json +1 -1
  30. package/{sd-angular-core-0.0.938.tgz → sd-angular-core-0.0.942.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
+ sdId: string;
5
6
  value: any;
6
7
  key: string;
7
8
  column: SdGridMaterialColumn;
@@ -1,5 +1,6 @@
1
1
  import { SdGridMaterialColumn } from '../../models/grid-column.model';
2
2
  export declare class SdDesktopCellEditor {
3
+ sdId: string;
3
4
  column: SdGridMaterialColumn;
4
5
  item: any;
5
6
  constructor();
@@ -1,5 +1,6 @@
1
1
  import { SdGridMaterialColumn } from '../../models/grid-column.model';
2
2
  export declare class SdDesktopCellView {
3
+ sdId: string;
3
4
  key: string;
4
5
  column: SdGridMaterialColumn;
5
6
  item: any;
@@ -94,5 +94,6 @@ export declare class SdGridMaterial<T = any> implements OnInit, AfterViewInit, O
94
94
  editorErrorMessage: string;
95
95
  })[];
96
96
  get gridItems(): T[];
97
+ reloadItem: (item: SdGridMaterialItem) => void;
97
98
  detectChanges: () => void;
98
99
  }
@@ -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
+ }
@@ -6,6 +6,7 @@ export interface EditorHandler {
6
6
  };
7
7
  }
8
8
  export interface SdItem {
9
+ sdId?: string;
9
10
  originItem?: any;
10
11
  isSelected?: boolean;
11
12
  isExpanded?: boolean;
@@ -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.938",
3
+ "version": "0.0.942",
4
4
  "homepage": "https://www.facebook.com/DarkP3ter",
5
5
  "author": {
6
6
  "name": "darkpeter",
index 1e68451..e5a45f5 100644
Binary file