@sd-angular/core 1.0.4 → 1.0.8

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 (26) hide show
  1. package/bundles/sd-angular-core-grid-material.umd.js +162 -18
  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 +2 -2
  7. package/esm2015/grid-material/src/lib/components/desktop-cell-editor/desktop-cell-editor.component.js +2 -2
  8. package/esm2015/grid-material/src/lib/components/desktop-cell-view/desktop-cell-view.component.js +5 -4
  9. package/esm2015/grid-material/src/lib/components/grid-filter/grid-filter.component.js +2 -2
  10. package/esm2015/grid-material/src/lib/grid-material.component.js +14 -12
  11. package/esm2015/grid-material/src/lib/grid-material.module.js +4 -2
  12. package/esm2015/grid-material/src/lib/models/grid-cell.model.js +2 -0
  13. package/esm2015/grid-material/src/lib/models/grid-column.model.js +1 -1
  14. package/esm2015/grid-material/src/lib/models/grid-option.model.js +1 -1
  15. package/esm2015/grid-material/src/lib/pipes/cell-view.pipe.js +131 -0
  16. package/fesm2015/sd-angular-core-grid-material.js +149 -19
  17. package/fesm2015/sd-angular-core-grid-material.js.map +1 -1
  18. package/grid-material/sd-angular-core-grid-material.d.ts +1 -0
  19. package/grid-material/sd-angular-core-grid-material.metadata.json +1 -1
  20. package/grid-material/src/lib/components/desktop-cell-view/desktop-cell-view.component.d.ts +2 -0
  21. package/grid-material/src/lib/models/grid-cell.model.d.ts +15 -0
  22. package/grid-material/src/lib/models/grid-column.model.d.ts +1 -0
  23. package/grid-material/src/lib/models/grid-option.model.d.ts +1 -0
  24. package/grid-material/src/lib/pipes/cell-view.pipe.d.ts +14 -0
  25. package/package.json +1 -1
  26. package/{sd-angular-core-1.0.4.tgz → sd-angular-core-1.0.8.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
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@sd-angular/core",
3
- "version": "1.0.4",
3
+ "version": "1.0.8",
4
4
  "homepage": "https://www.facebook.com/DarkP3ter",
5
5
  "author": {
6
6
  "name": "darkpeter",
index 85f893e..5e7b34c 100644
Binary file