@sd-angular/core 0.0.939 → 0.0.943

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 (35) hide show
  1. package/bundles/sd-angular-core-grid-material.umd.js +102 -53
  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 +30 -28
  6. package/esm2015/grid-material/src/lib/components/desktop-cell/desktop-cell.component.js +4 -4
  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/desktop-editor-validation/desktop-editor-validation.component.js +19 -0
  10. package/esm2015/grid-material/src/lib/components/grid-filter/grid-filter.component.js +1 -1
  11. package/esm2015/grid-material/src/lib/grid-material.component.js +6 -2
  12. package/esm2015/grid-material/src/lib/grid-material.module.js +9 -3
  13. package/esm2015/grid-material/src/lib/models/grid-option.model.js +1 -1
  14. package/esm2015/grid-material/src/lib/models/grid-style.model.js +2 -0
  15. package/esm2015/grid-material/src/lib/models/grid.model.js +1 -1
  16. package/esm2015/grid-material/src/lib/pipes/editor-handler-column.pipe.js +3 -1
  17. package/esm2015/grid-material/src/lib/pipes/editor-validate.pipe.js +7 -10
  18. package/esm2015/grid-material/src/lib/pipes/style-row-css.pipe.js +13 -0
  19. package/esm2015/grid-material/src/lib/services/grid-configuration.service.js +6 -1
  20. package/fesm2015/sd-angular-core-grid-material.js +68 -25
  21. package/fesm2015/sd-angular-core-grid-material.js.map +1 -1
  22. package/grid-material/sd-angular-core-grid-material.d.ts +29 -27
  23. package/grid-material/sd-angular-core-grid-material.metadata.json +1 -1
  24. package/grid-material/src/lib/components/desktop-cell/desktop-cell.component.d.ts +1 -0
  25. package/grid-material/src/lib/components/desktop-cell-editor/desktop-cell-editor.component.d.ts +1 -0
  26. package/grid-material/src/lib/components/desktop-cell-view/desktop-cell-view.component.d.ts +1 -0
  27. package/grid-material/src/lib/components/desktop-editor-validation/desktop-editor-validation.component.d.ts +7 -0
  28. package/grid-material/src/lib/grid-material.component.d.ts +1 -0
  29. package/grid-material/src/lib/models/grid-option.model.d.ts +2 -3
  30. package/grid-material/src/lib/models/grid-style.model.d.ts +6 -0
  31. package/grid-material/src/lib/models/grid.model.d.ts +1 -0
  32. package/grid-material/src/lib/pipes/editor-validate.pipe.d.ts +1 -2
  33. package/grid-material/src/lib/pipes/style-row-css.pipe.d.ts +7 -0
  34. package/package.json +1 -1
  35. package/{sd-angular-core-0.0.939.tgz → sd-angular-core-0.0.943.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;
@@ -0,0 +1,7 @@
1
+ import { SdGridMaterialOption } from '../../models/grid-option.model';
2
+ export declare class SdDesktopEditorValidation {
3
+ sdId: string;
4
+ item: any;
5
+ gridOption: SdGridMaterialOption;
6
+ constructor();
7
+ }
@@ -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;
@@ -1,9 +1,8 @@
1
1
  import { PipeTransform } from '@angular/core';
2
- import { SdGridMaterialColumn } from '../models/grid-column.model';
3
2
  import { SdGridMaterialOption } from '../models/grid-option.model';
4
3
  import { SdItem } from '../models/grid.model';
5
4
  export declare class SdEditorValidatePipe implements PipeTransform {
6
5
  private previous;
7
6
  private delay;
8
- transform(value: string, item: SdItem, column: SdGridMaterialColumn, gridOption: SdGridMaterialOption): Promise<boolean>;
7
+ transform(sdId: string, item: SdItem, gridOption: SdGridMaterialOption): Promise<string>;
9
8
  }
@@ -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.939",
3
+ "version": "0.0.943",
4
4
  "homepage": "https://www.facebook.com/DarkP3ter",
5
5
  "author": {
6
6
  "name": "darkpeter",
index a0fd354..945b509 100644
Binary file