@rs-pk/asset-management 1.0.21 → 1.0.22

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 (27) hide show
  1. package/bundles/rs-pk-asset-management.umd.js +229 -37
  2. package/bundles/rs-pk-asset-management.umd.js.map +1 -1
  3. package/bundles/rs-pk-asset-management.umd.min.js +2 -2
  4. package/bundles/rs-pk-asset-management.umd.min.js.map +1 -1
  5. package/esm2015/lib/components/partial/asset-item/asset-item.component.js +162 -33
  6. package/esm2015/lib/components/partial/asset-list/asset-list.component.js +35 -1
  7. package/esm2015/lib/components/partial/asset-management-dialog/asset-management-dialog.component.js +1 -1
  8. package/esm2015/lib/components/partial/upload-dialog/upload-dialog.component.js +1 -1
  9. package/esm2015/lib/contanst/data-image.js +6 -6
  10. package/esm2015/lib/models/asset.model.js +13 -1
  11. package/esm2015/lib/models/index.js +2 -2
  12. package/esm5/lib/components/partial/asset-item/asset-item.component.js +181 -37
  13. package/esm5/lib/components/partial/asset-list/asset-list.component.js +41 -1
  14. package/esm5/lib/components/partial/asset-management-dialog/asset-management-dialog.component.js +1 -1
  15. package/esm5/lib/components/partial/upload-dialog/upload-dialog.component.js +1 -1
  16. package/esm5/lib/contanst/data-image.js +6 -6
  17. package/esm5/lib/models/asset.model.js +13 -1
  18. package/esm5/lib/models/index.js +2 -2
  19. package/fesm2015/rs-pk-asset-management.js +204 -33
  20. package/fesm2015/rs-pk-asset-management.js.map +1 -1
  21. package/fesm5/rs-pk-asset-management.js +229 -37
  22. package/fesm5/rs-pk-asset-management.js.map +1 -1
  23. package/lib/components/partial/asset-item/asset-item.component.d.ts +12 -5
  24. package/lib/components/partial/asset-list/asset-list.component.d.ts +3 -1
  25. package/lib/models/asset.model.d.ts +7 -1
  26. package/package.json +1 -1
  27. package/rs-pk-asset-management.metadata.json +1 -1
@@ -1,15 +1,16 @@
1
- import { EventEmitter, OnDestroy, OnInit } from '@angular/core';
1
+ import { EventEmitter, OnDestroy, OnInit, ChangeDetectorRef } from '@angular/core';
2
2
  import { MatDialog } from '@angular/material/dialog';
3
3
  import { DomSanitizer } from '@angular/platform-browser';
4
4
  import { AssetManagementService } from '../../../asset-management.service';
5
- import { AssetModel, FileTypeEnum } from '../../../models';
5
+ import { AssetModel, BackgroudProcessingStatus, FileTypeEnum, FolderTreeModel } from '../../../models';
6
6
  import { AssetService } from '../../../services/asset.service';
7
7
  export declare class AssetItemComponent implements OnInit, OnDestroy {
8
8
  private dialog;
9
9
  private domSanitizer;
10
+ assetService: AssetService;
10
11
  private svc;
11
- private assetService;
12
- constructor(dialog: MatDialog, domSanitizer: DomSanitizer, svc: AssetManagementService, assetService: AssetService);
12
+ private changeDetectorRef;
13
+ constructor(dialog: MatDialog, domSanitizer: DomSanitizer, assetService: AssetService, svc: AssetManagementService, changeDetectorRef: ChangeDetectorRef);
13
14
  asset: AssetModel;
14
15
  selectAsset: EventEmitter<AssetModel>;
15
16
  base64PNG: {
@@ -18,13 +19,19 @@ export declare class AssetItemComponent implements OnInit, OnDestroy {
18
19
  csv: import("@angular/platform-browser").SafeUrl;
19
20
  default: import("@angular/platform-browser").SafeUrl;
20
21
  };
22
+ errorMessage: string;
21
23
  selectedAssets: Array<AssetModel>;
24
+ currentFolder: FolderTreeModel;
22
25
  fileType: typeof FileTypeEnum;
26
+ backgroundProcessingNum: typeof BackgroudProcessingStatus;
23
27
  private destroy$;
24
28
  ngOnInit(): void;
25
29
  readonly checkSelectedAsset: boolean;
26
- private bindSubscriber;
27
30
  onChange(): void;
28
31
  editAsset(): void;
32
+ onUploadAgain(asset: AssetModel): void;
33
+ onDelete(asset: AssetModel): void;
34
+ private _bindSubscriber;
35
+ private _openUploadDialog;
29
36
  ngOnDestroy(): void;
30
37
  }
@@ -1,7 +1,7 @@
1
1
  import { OnChanges, OnDestroy, OnInit, SimpleChanges } from '@angular/core';
2
2
  import { MatPaginator, PageEvent } from '@angular/material/paginator';
3
3
  import { AssetManagementService } from '../../../asset-management.service';
4
- import { AssetModel } from '../../../models';
4
+ import { AssetModel, BackgroudProcessingStatus } from '../../../models';
5
5
  import { AssetService } from '../../../services/asset.service';
6
6
  export declare class AssetListComponent implements OnInit, OnChanges, OnDestroy {
7
7
  private assetService;
@@ -9,6 +9,7 @@ export declare class AssetListComponent implements OnInit, OnChanges, OnDestroy
9
9
  constructor(assetService: AssetService, svc: AssetManagementService);
10
10
  paginator: MatPaginator;
11
11
  assets: AssetModel[];
12
+ backgroundProcessingNum: typeof BackgroudProcessingStatus;
12
13
  private unsubscribe$;
13
14
  private currentFolderId;
14
15
  private selectedAssets;
@@ -18,5 +19,6 @@ export declare class AssetListComponent implements OnInit, OnChanges, OnDestroy
18
19
  private bindSubscriber;
19
20
  pageChange(event?: PageEvent): void;
20
21
  private fetchChildrenAssets;
22
+ private _resetUploadingAssets;
21
23
  ngOnDestroy(): void;
22
24
  }
@@ -40,7 +40,7 @@ export declare class AssetModel {
40
40
  ModifiedBy: string;
41
41
  CreatedDate: string;
42
42
  ModifiedDate: string;
43
- BackgroudProcessingStatus: string;
43
+ BackgroudProcessingStatus: number;
44
44
  IsRoot: boolean;
45
45
  IsFolder: boolean;
46
46
  TotalFile: number;
@@ -60,3 +60,9 @@ export declare class DialogConfig {
60
60
  allowedType: string;
61
61
  maxSize?: number;
62
62
  }
63
+ export declare enum BackgroudProcessingStatus {
64
+ None = 0,
65
+ InProcessing = 1,
66
+ Processed = 2,
67
+ Failed = 3
68
+ }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@rs-pk/asset-management",
3
- "version": "1.0.21",
3
+ "version": "1.0.22",
4
4
  "peerDependencies": {
5
5
  "@angular/platform-browser": "8.2.14",
6
6
  "@angular/common": "8.2.14",