@sd-angular/core 1.3.33 → 1.3.35

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 (31) hide show
  1. package/bundles/sd-angular-core-export.umd.js +232 -38
  2. package/bundles/sd-angular-core-export.umd.js.map +1 -1
  3. package/bundles/sd-angular-core-export.umd.min.js +1 -1
  4. package/bundles/sd-angular-core-export.umd.min.js.map +1 -1
  5. package/bundles/sd-angular-core-grid-material.umd.js +22 -3
  6. package/bundles/sd-angular-core-grid-material.umd.js.map +1 -1
  7. package/bundles/sd-angular-core-grid-material.umd.min.js +2 -2
  8. package/bundles/sd-angular-core-grid-material.umd.min.js.map +1 -1
  9. package/bundles/sd-angular-core-upload-excel.umd.js.map +1 -1
  10. package/bundles/sd-angular-core-upload-excel.umd.min.js.map +1 -1
  11. package/esm2015/export/src/lib/export.model.js +1 -1
  12. package/esm2015/export/src/lib/export.service.js +197 -18
  13. package/esm2015/grid-material/src/lib/components/desktop-cell-view/desktop-cell-view.component.js +2 -2
  14. package/esm2015/grid-material/src/lib/grid-material.component.js +13 -2
  15. package/esm2015/grid-material/src/lib/models/grid-column.model.js +1 -1
  16. package/esm2015/grid-material/src/lib/pipes/cell-view.pipe.js +2 -2
  17. package/esm2015/upload-excel/src/lib/upload-excel.component.js +1 -1
  18. package/export/sd-angular-core-export.metadata.json +1 -1
  19. package/export/src/lib/export.model.d.ts +4 -4
  20. package/export/src/lib/export.service.d.ts +3 -4
  21. package/fesm2015/sd-angular-core-export.js +196 -17
  22. package/fesm2015/sd-angular-core-export.js.map +1 -1
  23. package/fesm2015/sd-angular-core-grid-material.js +14 -3
  24. package/fesm2015/sd-angular-core-grid-material.js.map +1 -1
  25. package/fesm2015/sd-angular-core-upload-excel.js.map +1 -1
  26. package/grid-material/sd-angular-core-grid-material.metadata.json +1 -1
  27. package/grid-material/src/lib/grid-material.component.d.ts +2 -0
  28. package/grid-material/src/lib/models/grid-column.model.d.ts +4 -1
  29. package/grid-material/src/lib/pipes/cell-view.pipe.d.ts +1 -1
  30. package/package.json +3 -2
  31. package/{sd-angular-core-1.3.33.tgz → sd-angular-core-1.3.35.tgz} +0 -0
@@ -103,6 +103,8 @@ export declare class SdGridMaterial<T = any> implements OnInit, AfterViewInit, O
103
103
  editorErrorMessage: string;
104
104
  })[];
105
105
  get gridItems(): T[];
106
+ get localItems(): T[];
107
+ get localGridItems(): T[];
106
108
  detectChanges: () => void;
107
109
  get isEditing(): boolean;
108
110
  }
@@ -1,5 +1,8 @@
1
1
  import { SdBadgeColor } from '@sd-angular/core/badge';
2
2
  export declare type SdGridMaterialColumn<T = any> = SdGridMaterialColumnText<T> | SdGridMaterialColumnNumber<T> | SdGridMaterialBool<T> | SdGridMaterialColumnDate<T> | SdGridMaterialColumnValues<T> | SdGridMaterialColumnImage<T> | SdGridMaterialColumnChildren<T> | SdGridMaterialColumnChildrenCol<T>;
3
+ export declare type TransformFunc<T = any> = (value: any, rowData: T, args?: {
4
+ isExport?: boolean;
5
+ }) => string | Promise<string>;
3
6
  interface SdGridMaterialBaseColumn<T = any> {
4
7
  field: string;
5
8
  title: string;
@@ -11,7 +14,7 @@ interface SdGridMaterialBaseColumn<T = any> {
11
14
  fixed?: boolean;
12
15
  align?: 'center' | 'left' | 'right';
13
16
  htmlTemplate?: (value: any, rowData: T, isMobileOrTablet: boolean) => string;
14
- transform?: (value: any, rowData: T) => string | Promise<string>;
17
+ transform?: TransformFunc<T>;
15
18
  tooltip?: (value: any, rowData: T) => string;
16
19
  click?: (value: any, rowData: T) => void;
17
20
  sortable?: boolean;
@@ -10,5 +10,5 @@ export declare class SdCellViewPipe implements PipeTransform {
10
10
  private utilityService;
11
11
  private columnValuesPipe;
12
12
  constructor(deviceService: DeviceDetectorService, utilityService: SdUtilityService, columnValuesPipe: SdColumnValuesPipe);
13
- transform(value: any, rowData: any, column: SdGridMaterialColumn, gridOption: SdGridMaterialOption, key: string): Promise<SdCellView>;
13
+ transform(value: any, rowData: any, column: SdGridMaterialColumn, gridOption: SdGridMaterialOption): Promise<SdCellView>;
14
14
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@sd-angular/core",
3
- "version": "1.3.33",
3
+ "version": "1.3.35",
4
4
  "homepage": "https://www.facebook.com/DarkP3ter",
5
5
  "author": {
6
6
  "name": "darkpeter",
@@ -45,7 +45,8 @@
45
45
  "uuid": "^8.3.2",
46
46
  "xlsx": "^0.16.3",
47
47
  "export-to-csv": "^0.2.1",
48
- "ngx-print": "^1.2.0-beta.5"
48
+ "ngx-print": "^1.2.0-beta.5",
49
+ "exceljs": "^4.3.0"
49
50
  },
50
51
  "main": "bundles/sd-angular-core.umd.js",
51
52
  "module": "fesm2015/sd-angular-core.js",
index b9d0081..6dca98f 100644
Binary file