@rs-pk/asset-management 1.0.30 → 1.0.31

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 (142) hide show
  1. package/bundles/rs-pk-asset-management.umd.js +327 -158
  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/asset-management.component.js +1 -2
  6. package/esm2015/lib/asset-management.module.js +12 -2
  7. package/esm2015/lib/asset-management.service.js +2 -3
  8. package/esm2015/lib/components/partial/add-folder-dialog/add-folder-dialog.component.js +1 -2
  9. package/esm2015/lib/components/partial/asset-dialog/asset-dialog.component.js +1 -2
  10. package/esm2015/lib/components/partial/asset-item/asset-item.component.js +1 -2
  11. package/esm2015/lib/components/partial/asset-list/asset-list.component.js +76 -33
  12. package/esm2015/lib/components/partial/asset-management-dialog/asset-management-dialog.component.js +2 -3
  13. package/esm2015/lib/components/partial/asset-wrapper/asset-wrapper.component.js +2 -3
  14. package/esm2015/lib/components/partial/breadcrumb/breadcrumb.component.js +5 -5
  15. package/esm2015/lib/components/partial/delete-dialog/delete-dialog.component.js +1 -2
  16. package/esm2015/lib/components/partial/edit-folder-dialog/edit-folder-dialog.component.js +1 -2
  17. package/esm2015/lib/components/partial/file-item/file-item.component.js +9 -4
  18. package/esm2015/lib/components/partial/file-list/file-list.component.js +1 -2
  19. package/esm2015/lib/components/partial/folder-item/folder-item.component.js +1 -2
  20. package/esm2015/lib/components/partial/folder-list/folder-list.component.js +3 -4
  21. package/esm2015/lib/components/partial/node-details/node-details.component.js +5 -3
  22. package/esm2015/lib/components/partial/node-tree/node-tree.component.js +8 -9
  23. package/esm2015/lib/components/partial/search-box/search-box.component.js +4 -3
  24. package/esm2015/lib/components/partial/sort-items/sort-items.component.js +1 -2
  25. package/esm2015/lib/components/partial/upload-dialog/upload-dialog.component.js +111 -5
  26. package/esm2015/lib/components/partial/upload-file/upload-file.component.js +1 -2
  27. package/esm2015/lib/components/ui/drag-to-resize/drag-to-resize.component.js +1 -2
  28. package/esm2015/lib/components/ui/input-file/input-file.component.js +1 -2
  29. package/esm2015/lib/components/ui/modal/modal.component.js +1 -2
  30. package/esm2015/lib/components/ui/search-not-found/search-not-found.component.js +1 -2
  31. package/esm2015/lib/configs/admin.config.js +1 -2
  32. package/esm2015/lib/contanst/data-image.js +1 -2
  33. package/esm2015/lib/contanst/index.js +1 -2
  34. package/esm2015/lib/datasources/index.js +1 -2
  35. package/esm2015/lib/datasources/node-tree.datasource.js +6 -7
  36. package/esm2015/lib/directives/dialogTrigger.directive.js +1 -2
  37. package/esm2015/lib/directives/directives.module.js +1 -2
  38. package/esm2015/lib/directives/dnd.directive.js +1 -2
  39. package/esm2015/lib/models/asset-file.model.js +1 -2
  40. package/esm2015/lib/models/asset.model.js +1 -2
  41. package/esm2015/lib/models/file-type.enum.js +3 -4
  42. package/esm2015/lib/models/file.model.js +1 -2
  43. package/esm2015/lib/models/index.js +1 -2
  44. package/esm2015/lib/models/node-tree.model.js +1 -2
  45. package/esm2015/lib/models/sort.enum.js +1 -2
  46. package/esm2015/lib/pipes/datetime.pipe.js +1 -2
  47. package/esm2015/lib/pipes/file-size.pipe.js +1 -2
  48. package/esm2015/lib/services/asset.service.js +1 -2
  49. package/esm2015/lib/services/base.service.js +1 -2
  50. package/esm2015/lib/services/env-config.service.js +1 -2
  51. package/esm2015/lib/services/file.service.js +1 -2
  52. package/esm2015/lib/services/index.js +1 -2
  53. package/esm2015/lib/services/node-tree.service.js +8 -9
  54. package/esm2015/lib/services/upload-assets.service.js +17 -13
  55. package/esm2015/lib/store/actions.action.js +10 -11
  56. package/esm2015/lib/store/index.js +1 -2
  57. package/esm2015/lib/store/reducer.js +10 -11
  58. package/esm2015/public-api.js +1 -8
  59. package/esm2015/rs-pk-asset-management.js +10 -5
  60. package/esm5/lib/asset-management.component.js +1 -2
  61. package/esm5/lib/asset-management.module.js +16 -6
  62. package/esm5/lib/asset-management.service.js +2 -3
  63. package/esm5/lib/components/partial/add-folder-dialog/add-folder-dialog.component.js +1 -2
  64. package/esm5/lib/components/partial/asset-dialog/asset-dialog.component.js +1 -2
  65. package/esm5/lib/components/partial/asset-item/asset-item.component.js +1 -2
  66. package/esm5/lib/components/partial/asset-list/asset-list.component.js +100 -36
  67. package/esm5/lib/components/partial/asset-management-dialog/asset-management-dialog.component.js +2 -3
  68. package/esm5/lib/components/partial/asset-wrapper/asset-wrapper.component.js +2 -3
  69. package/esm5/lib/components/partial/breadcrumb/breadcrumb.component.js +6 -6
  70. package/esm5/lib/components/partial/delete-dialog/delete-dialog.component.js +1 -2
  71. package/esm5/lib/components/partial/edit-folder-dialog/edit-folder-dialog.component.js +1 -2
  72. package/esm5/lib/components/partial/file-item/file-item.component.js +13 -4
  73. package/esm5/lib/components/partial/file-list/file-list.component.js +3 -4
  74. package/esm5/lib/components/partial/folder-item/folder-item.component.js +1 -2
  75. package/esm5/lib/components/partial/folder-list/folder-list.component.js +3 -4
  76. package/esm5/lib/components/partial/node-details/node-details.component.js +7 -5
  77. package/esm5/lib/components/partial/node-tree/node-tree.component.js +16 -17
  78. package/esm5/lib/components/partial/search-box/search-box.component.js +6 -5
  79. package/esm5/lib/components/partial/sort-items/sort-items.component.js +1 -2
  80. package/esm5/lib/components/partial/upload-dialog/upload-dialog.component.js +136 -7
  81. package/esm5/lib/components/partial/upload-file/upload-file.component.js +3 -4
  82. package/esm5/lib/components/ui/drag-to-resize/drag-to-resize.component.js +1 -2
  83. package/esm5/lib/components/ui/input-file/input-file.component.js +1 -2
  84. package/esm5/lib/components/ui/modal/modal.component.js +1 -2
  85. package/esm5/lib/components/ui/search-not-found/search-not-found.component.js +1 -2
  86. package/esm5/lib/configs/admin.config.js +1 -2
  87. package/esm5/lib/contanst/data-image.js +1 -2
  88. package/esm5/lib/contanst/index.js +1 -2
  89. package/esm5/lib/datasources/index.js +1 -2
  90. package/esm5/lib/datasources/node-tree.datasource.js +12 -15
  91. package/esm5/lib/directives/dialogTrigger.directive.js +1 -2
  92. package/esm5/lib/directives/directives.module.js +4 -5
  93. package/esm5/lib/directives/dnd.directive.js +1 -2
  94. package/esm5/lib/models/asset-file.model.js +1 -2
  95. package/esm5/lib/models/asset.model.js +3 -4
  96. package/esm5/lib/models/file-type.enum.js +3 -4
  97. package/esm5/lib/models/file.model.js +1 -2
  98. package/esm5/lib/models/index.js +1 -2
  99. package/esm5/lib/models/node-tree.model.js +1 -2
  100. package/esm5/lib/models/sort.enum.js +1 -2
  101. package/esm5/lib/pipes/datetime.pipe.js +1 -2
  102. package/esm5/lib/pipes/file-size.pipe.js +1 -2
  103. package/esm5/lib/services/asset.service.js +1 -2
  104. package/esm5/lib/services/base.service.js +3 -4
  105. package/esm5/lib/services/env-config.service.js +1 -2
  106. package/esm5/lib/services/file.service.js +1 -2
  107. package/esm5/lib/services/index.js +1 -2
  108. package/esm5/lib/services/node-tree.service.js +15 -16
  109. package/esm5/lib/services/upload-assets.service.js +23 -15
  110. package/esm5/lib/store/actions.action.js +10 -11
  111. package/esm5/lib/store/index.js +1 -2
  112. package/esm5/lib/store/reducer.js +11 -12
  113. package/esm5/public-api.js +1 -8
  114. package/esm5/rs-pk-asset-management.js +10 -5
  115. package/fesm2015/rs-pk-asset-management.js +266 -144
  116. package/fesm2015/rs-pk-asset-management.js.map +1 -1
  117. package/fesm5/rs-pk-asset-management.js +321 -149
  118. package/fesm5/rs-pk-asset-management.js.map +1 -1
  119. package/lib/asset-management.module.d.ts +1 -1
  120. package/lib/components/partial/add-folder-dialog/add-folder-dialog.component.d.ts +1 -1
  121. package/lib/components/partial/asset-dialog/asset-dialog.component.d.ts +1 -1
  122. package/lib/components/partial/asset-item/asset-item.component.d.ts +1 -1
  123. package/lib/components/partial/asset-list/asset-list.component.d.ts +7 -1
  124. package/lib/components/partial/asset-management-dialog/asset-management-dialog.component.d.ts +1 -1
  125. package/lib/components/partial/asset-wrapper/asset-wrapper.component.d.ts +1 -1
  126. package/lib/components/partial/edit-folder-dialog/edit-folder-dialog.component.d.ts +1 -1
  127. package/lib/components/partial/file-item/file-item.component.d.ts +4 -3
  128. package/lib/components/partial/file-list/file-list.component.d.ts +1 -1
  129. package/lib/components/partial/folder-list/folder-list.component.d.ts +1 -1
  130. package/lib/components/partial/node-details/node-details.component.d.ts +3 -3
  131. package/lib/components/partial/node-tree/node-tree.component.d.ts +1 -1
  132. package/lib/components/partial/upload-dialog/upload-dialog.component.d.ts +7 -1
  133. package/lib/components/partial/upload-file/upload-file.component.d.ts +1 -1
  134. package/lib/components/ui/drag-to-resize/drag-to-resize.component.d.ts +1 -1
  135. package/lib/datasources/node-tree.datasource.d.ts +1 -2
  136. package/lib/services/asset.service.d.ts +1 -1
  137. package/lib/services/node-tree.service.d.ts +2 -3
  138. package/lib/services/upload-assets.service.d.ts +6 -4
  139. package/package.json +9 -9
  140. package/public-api.d.ts +0 -6
  141. package/rs-pk-asset-management.d.ts +8 -2
  142. package/rs-pk-asset-management.metadata.json +1 -1
@@ -8,7 +8,7 @@ import { MatInputModule } from '@angular/material/input';
8
8
  import { MatIconModule } from '@angular/material/icon';
9
9
  import { MatTooltipModule } from '@angular/material/tooltip';
10
10
  import { MatTreeModule } from '@angular/material/tree';
11
- import { MatPaginator, MatPaginatorModule } from '@angular/material/paginator';
11
+ import { MatPaginator as MatPaginator$1, MatPaginatorModule } from '@angular/material/paginator';
12
12
  import { MatTableModule } from '@angular/material/table';
13
13
  import { MatProgressBarModule } from '@angular/material/progress-bar';
14
14
  import { MatMenuModule } from '@angular/material/menu';
@@ -16,15 +16,19 @@ import { MatCheckboxModule } from '@angular/material/checkbox';
16
16
  import { MatSelectModule } from '@angular/material/select';
17
17
  import { MatProgressSpinnerModule } from '@angular/material/progress-spinner';
18
18
  import { HttpHandler, HttpClient, HttpParams, HttpHeaders } from '@angular/common/http';
19
- import { BehaviorSubject, Subject, of, merge, combineLatest } from 'rxjs';
19
+ import { BehaviorSubject, Subject, merge, of as of$1 } from 'rxjs';
20
+ import { BehaviorSubject as BehaviorSubject$1 } from 'rxjs/internal/BehaviorSubject';
20
21
  import { map, distinctUntilChanged, takeUntil, switchMap } from 'rxjs/operators';
22
+ import { Subject as Subject$1 } from 'rxjs/internal/Subject';
21
23
  import { DomSanitizer } from '@angular/platform-browser';
24
+ import { MAT_DIALOG_DATA as MAT_DIALOG_DATA$1, MatDialogRef as MatDialogRef$1, MatPaginator } from '@angular/material';
25
+ import { of } from 'rxjs/internal/observable/of';
22
26
  import { FlatTreeControl } from '@angular/cdk/tree';
27
+ import { combineLatest } from 'rxjs/internal/observable/combineLatest';
23
28
  import * as moment_ from 'moment';
24
29
 
25
30
  /**
26
31
  * @fileoverview added by tsickle
27
- * Generated from: lib/models/asset.model.ts
28
32
  * @suppress {checkTypes,constantProperty,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
29
33
  */
30
34
  /**
@@ -203,7 +207,6 @@ var ROOT_ASSET_ID = 'ROOT';
203
207
 
204
208
  /**
205
209
  * @fileoverview added by tsickle
206
- * Generated from: lib/models/asset-file.model.ts
207
210
  * @suppress {checkTypes,constantProperty,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
208
211
  */
209
212
  var AssetFileUploadModel = /** @class */ (function () {
@@ -270,7 +273,6 @@ if (false) {
270
273
 
271
274
  /**
272
275
  * @fileoverview added by tsickle
273
- * Generated from: lib/models/file.model.ts
274
276
  * @suppress {checkTypes,constantProperty,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
275
277
  */
276
278
  /**
@@ -368,7 +370,6 @@ if (false) {
368
370
 
369
371
  /**
370
372
  * @fileoverview added by tsickle
371
- * Generated from: lib/models/node-tree.model.ts
372
373
  * @suppress {checkTypes,constantProperty,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
373
374
  */
374
375
  /**
@@ -402,18 +403,16 @@ if (false) {
402
403
 
403
404
  /**
404
405
  * @fileoverview added by tsickle
405
- * Generated from: lib/models/file-type.enum.ts
406
406
  * @suppress {checkTypes,constantProperty,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
407
407
  */
408
408
  /** @enum {string} */
409
409
  var FileTypeEnum = {
410
- IMAGE: "Image",
411
- DOCUMENT: "Document",
410
+ IMAGE: 'Image',
411
+ DOCUMENT: 'Document',
412
412
  };
413
413
 
414
414
  /**
415
415
  * @fileoverview added by tsickle
416
- * Generated from: lib/models/sort.enum.ts
417
416
  * @suppress {checkTypes,constantProperty,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
418
417
  */
419
418
  /** @enum {number} */
@@ -435,13 +434,11 @@ TypeSort[TypeSort.ASC] = 'ASC';
435
434
 
436
435
  /**
437
436
  * @fileoverview added by tsickle
438
- * Generated from: lib/models/index.ts
439
437
  * @suppress {checkTypes,constantProperty,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
440
438
  */
441
439
 
442
440
  /**
443
441
  * @fileoverview added by tsickle
444
- * Generated from: lib/services/env-config.service.ts
445
442
  * @suppress {checkTypes,constantProperty,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
446
443
  */
447
444
  /**
@@ -461,7 +458,6 @@ var AM_CONFIG = new InjectionToken('asset.man.config.angular');
461
458
 
462
459
  /**
463
460
  * @fileoverview added by tsickle
464
- * Generated from: lib/services/base.service.ts
465
461
  * @suppress {checkTypes,constantProperty,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
466
462
  */
467
463
  var BaseHttpClient = /** @class */ (function (_super) {
@@ -514,7 +510,6 @@ if (false) {
514
510
 
515
511
  /**
516
512
  * @fileoverview added by tsickle
517
- * Generated from: lib/services/asset.service.ts
518
513
  * @suppress {checkTypes,constantProperty,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
519
514
  */
520
515
  var AssetService = /** @class */ (function () {
@@ -843,7 +838,6 @@ if (false) {
843
838
 
844
839
  /**
845
840
  * @fileoverview added by tsickle
846
- * Generated from: lib/asset-management.service.ts
847
841
  * @suppress {checkTypes,constantProperty,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
848
842
  */
849
843
  /** @type {?} */
@@ -881,7 +875,7 @@ var AssetManagementService = /** @class */ (function () {
881
875
  ];
882
876
  /** @nocollapse */
883
877
  AssetManagementService.ctorParameters = function () { return []; };
884
- /** @nocollapse */ AssetManagementService.ɵprov = ɵɵdefineInjectable({ factory: function AssetManagementService_Factory() { return new AssetManagementService(); }, token: AssetManagementService, providedIn: "root" });
878
+ /** @nocollapse */ AssetManagementService.ngInjectableDef = ɵɵdefineInjectable({ factory: function AssetManagementService_Factory() { return new AssetManagementService(); }, token: AssetManagementService, providedIn: "root" });
885
879
  return AssetManagementService;
886
880
  }());
887
881
  if (false) {
@@ -894,7 +888,6 @@ if (false) {
894
888
 
895
889
  /**
896
890
  * @fileoverview added by tsickle
897
- * Generated from: lib/store/actions.action.ts
898
891
  * @suppress {checkTypes,constantProperty,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
899
892
  */
900
893
  /**
@@ -910,18 +903,18 @@ if (false) {
910
903
  /** @enum {string} */
911
904
  var ActionTypes = {
912
905
  // global loading
913
- SET_GLOBAL_LOADING: "[LOADING] Set global loading state",
906
+ SET_GLOBAL_LOADING: '[LOADING] Set global loading state',
914
907
  // asset area
915
- SET_SELECTED_ASSETS: "[ASSET] Set selected assets",
916
- RELOAD_CURRENT_ASSETS: "[ASSET] reload current asset list ",
917
- DELETE_ASSET: "[ASSET] delete an asset ",
908
+ SET_SELECTED_ASSETS: '[ASSET] Set selected assets',
909
+ RELOAD_CURRENT_ASSETS: '[ASSET] reload current asset list ',
910
+ DELETE_ASSET: '[ASSET] delete an asset ',
918
911
  // folder area
919
- SET_CURRENT_FOLDER_ID: "[FOLDER] get current folder id",
920
- SET_CURRENT_FOLDER: "[FOLDER] set current folder ",
921
- RELOAD_CURRENT_FOLDER: "[FOLDER] reload current folder ",
922
- SET_CURRENT_FOLDER_HIERARCHY: "[FOLDER] set current folder hierarchy ",
912
+ SET_CURRENT_FOLDER_ID: '[FOLDER] get current folder id',
913
+ SET_CURRENT_FOLDER: '[FOLDER] set current folder ',
914
+ RELOAD_CURRENT_FOLDER: '[FOLDER] reload current folder ',
915
+ SET_CURRENT_FOLDER_HIERARCHY: '[FOLDER] set current folder hierarchy ',
923
916
  // node area
924
- RELOAD_CURRENT_NODE: "[NODE] reload current node ",
917
+ RELOAD_CURRENT_NODE: '[NODE] reload current node ',
925
918
  };
926
919
  var SetGlobalLoading = /** @class */ (function () {
927
920
  function SetGlobalLoading() {
@@ -1028,7 +1021,6 @@ if (false) {
1028
1021
 
1029
1022
  /**
1030
1023
  * @fileoverview added by tsickle
1031
- * Generated from: lib/store/reducer.ts
1032
1024
  * @suppress {checkTypes,constantProperty,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
1033
1025
  */
1034
1026
  /**
@@ -1086,39 +1078,39 @@ function (dispatcher) {
1086
1078
  function (action) {
1087
1079
  switch (action.type) {
1088
1080
  case ActionTypes.SET_SELECTED_ASSETS:
1089
- state = __assign(__assign({}, state), { selectedAssets: action.payload });
1081
+ state = __assign({}, state, { selectedAssets: action.payload });
1090
1082
  store.next(state);
1091
1083
  break;
1092
1084
  case ActionTypes.SET_GLOBAL_LOADING:
1093
- state = __assign(__assign({}, state), { globalLoading: action.payload });
1085
+ state = __assign({}, state, { globalLoading: action.payload });
1094
1086
  store.next(state);
1095
1087
  break;
1096
1088
  case ActionTypes.SET_CURRENT_FOLDER:
1097
- state = __assign(__assign({}, state), { currentFolder: __assign({}, action.payload) });
1089
+ state = __assign({}, state, { currentFolder: __assign({}, action.payload) });
1098
1090
  store.next(state);
1099
1091
  break;
1100
1092
  case ActionTypes.RELOAD_CURRENT_FOLDER:
1101
- state = __assign(__assign({}, state), { reloadCurrentFolder: !state.reloadCurrentFolder });
1093
+ state = __assign({}, state, { reloadCurrentFolder: !state.reloadCurrentFolder });
1102
1094
  store.next(state);
1103
1095
  break;
1104
1096
  case ActionTypes.RELOAD_CURRENT_ASSETS:
1105
- state = __assign(__assign({}, state), { reloadCurrentAssets: !state.reloadCurrentAssets });
1097
+ state = __assign({}, state, { reloadCurrentAssets: !state.reloadCurrentAssets });
1106
1098
  store.next(state);
1107
1099
  break;
1108
1100
  case ActionTypes.RELOAD_CURRENT_NODE:
1109
- state = __assign(__assign({}, state), { reloadCurrentNode: !state.reloadCurrentNode });
1101
+ state = __assign({}, state, { reloadCurrentNode: !state.reloadCurrentNode });
1110
1102
  store.next(state);
1111
1103
  break;
1112
1104
  case ActionTypes.SET_CURRENT_FOLDER_HIERARCHY:
1113
- state = __assign(__assign({}, state), { currentFolderHierarchy: __spread(action.payload) });
1105
+ state = __assign({}, state, { currentFolderHierarchy: __spread(action.payload) });
1114
1106
  store.next(state);
1115
1107
  break;
1116
1108
  case ActionTypes.SET_CURRENT_FOLDER_ID:
1117
- state = __assign(__assign({}, state), { currentFolderId: action.payload });
1109
+ state = __assign({}, state, { currentFolderId: action.payload });
1118
1110
  store.next(state);
1119
1111
  break;
1120
1112
  case ActionTypes.DELETE_ASSET:
1121
- state = __assign(__assign({}, state), { deletedAssetId: action.payload });
1113
+ state = __assign({}, state, { deletedAssetId: action.payload });
1122
1114
  store.next(state);
1123
1115
  break;
1124
1116
  default:
@@ -1141,22 +1133,20 @@ function (mapFn) {
1141
1133
 
1142
1134
  /**
1143
1135
  * @fileoverview added by tsickle
1144
- * Generated from: lib/store/index.ts
1145
1136
  * @suppress {checkTypes,constantProperty,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
1146
1137
  */
1147
1138
 
1148
1139
  /**
1149
1140
  * @fileoverview added by tsickle
1150
- * Generated from: lib/services/node-tree.service.ts
1151
1141
  * @suppress {checkTypes,constantProperty,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
1152
1142
  */
1153
1143
  var NodeTreeService = /** @class */ (function () {
1154
1144
  function NodeTreeService(assetService, svc) {
1155
1145
  this.assetService = assetService;
1156
1146
  this.svc = svc;
1157
- this.storedData$ = new BehaviorSubject([]);
1158
- this.loading$ = new BehaviorSubject(false);
1159
- this.initialData$ = new BehaviorSubject([]);
1147
+ this.storedData$ = new BehaviorSubject$1([]);
1148
+ this.loading$ = new BehaviorSubject$1(false);
1149
+ this.initialData$ = new BehaviorSubject$1([]);
1160
1150
  }
1161
1151
  Object.defineProperty(NodeTreeService.prototype, "data", {
1162
1152
  get: /**
@@ -1332,7 +1322,7 @@ var NodeTreeService = /** @class */ (function () {
1332
1322
  */
1333
1323
  function (node) { return node.AssetId === asset.AssetId; }));
1334
1324
  if (index < 0) {
1335
- data = __spread(data, [__assign(__assign({}, asset), { ParentId: parentId ? parentId : null })]);
1325
+ data = __spread(data, [__assign({}, asset, { ParentId: parentId ? parentId : null })]);
1336
1326
  }
1337
1327
  this.data = data;
1338
1328
  };
@@ -1438,7 +1428,6 @@ if (false) {
1438
1428
 
1439
1429
  /**
1440
1430
  * @fileoverview added by tsickle
1441
- * Generated from: lib/services/upload-assets.service.ts
1442
1431
  * @suppress {checkTypes,constantProperty,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
1443
1432
  */
1444
1433
  var UploadAssetsService = /** @class */ (function () {
@@ -1448,6 +1437,7 @@ var UploadAssetsService = /** @class */ (function () {
1448
1437
  this._api = _api;
1449
1438
  this.files = [];
1450
1439
  this.fileNames = [];
1440
+ this.uploadErrors = new Map();
1451
1441
  this.supportedSize = 10 * 1024 * 1024; // 10MB
1452
1442
  // 10MB
1453
1443
  this.documentExtension = ['.pdf', '.csv'];
@@ -1550,9 +1540,25 @@ var UploadAssetsService = /** @class */ (function () {
1550
1540
  * @return {?}
1551
1541
  */
1552
1542
  function (index) {
1543
+ this.uploadErrors.delete(this.files[index]);
1553
1544
  this.files.splice(index, 1);
1554
1545
  this.fileNames.splice(index, 1);
1555
1546
  };
1547
+ /**
1548
+ * @param {?} index
1549
+ * @return {?}
1550
+ */
1551
+ UploadAssetsService.prototype.getUploadName = /**
1552
+ * @param {?} index
1553
+ * @return {?}
1554
+ */
1555
+ function (index) {
1556
+ /** @type {?} */
1557
+ var nameSplit = this.files[index].name.split('.');
1558
+ /** @type {?} */
1559
+ var ext = "." + nameSplit.splice(nameSplit.length - 1, 1)[0];
1560
+ return "" + this.fileNames[index].name + ext;
1561
+ };
1556
1562
  /**
1557
1563
  * @param {?} parentAssetId
1558
1564
  * @return {?}
@@ -1564,21 +1570,11 @@ var UploadAssetsService = /** @class */ (function () {
1564
1570
  function (parentAssetId) {
1565
1571
  var files = this.files;
1566
1572
  /** @type {?} */
1567
- var fileNames = this.fileNames.map((/**
1568
- * @param {?} file
1569
- * @return {?}
1570
- */
1571
- function (file) { return file.name; }));
1572
- /** @type {?} */
1573
1573
  var formData = new FormData();
1574
1574
  formData.append('parentAssetId', parentAssetId);
1575
1575
  formData.append('companyId', '732DA8D2-04EC-4BE0-A168-63EE0DCF50D8');
1576
1576
  for (var i = 0; i < files.length; i++) {
1577
- /** @type {?} */
1578
- var nameSplit = files[i].name.split('.');
1579
- /** @type {?} */
1580
- var ext = "." + nameSplit.splice(nameSplit.length - 1, 1)[0];
1581
- formData.append('files', files[i], "" + fileNames[i] + ext);
1577
+ formData.append('files', files[i], this.getUploadName(i));
1582
1578
  }
1583
1579
  return this._api.post(this.baseUrl + "/File/Upload", formData);
1584
1580
  };
@@ -1602,6 +1598,8 @@ if (false) {
1602
1598
  /** @type {?} */
1603
1599
  UploadAssetsService.prototype.fileNames;
1604
1600
  /** @type {?} */
1601
+ UploadAssetsService.prototype.uploadErrors;
1602
+ /** @type {?} */
1605
1603
  UploadAssetsService.prototype.supportedSize;
1606
1604
  /** @type {?} */
1607
1605
  UploadAssetsService.prototype.documentExtension;
@@ -1639,7 +1637,6 @@ if (false) {
1639
1637
 
1640
1638
  /**
1641
1639
  * @fileoverview added by tsickle
1642
- * Generated from: lib/services/file.service.ts
1643
1640
  * @suppress {checkTypes,constantProperty,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
1644
1641
  */
1645
1642
  var FileService = /** @class */ (function () {
@@ -1762,13 +1759,11 @@ if (false) {
1762
1759
 
1763
1760
  /**
1764
1761
  * @fileoverview added by tsickle
1765
- * Generated from: lib/services/index.ts
1766
1762
  * @suppress {checkTypes,constantProperty,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
1767
1763
  */
1768
1764
 
1769
1765
  /**
1770
1766
  * @fileoverview added by tsickle
1771
- * Generated from: lib/components/partial/asset-management-dialog/asset-management-dialog.component.ts
1772
1767
  * @suppress {checkTypes,constantProperty,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
1773
1768
  */
1774
1769
  var AssetManagementDialogComponent = /** @class */ (function () {
@@ -1776,7 +1771,7 @@ var AssetManagementDialogComponent = /** @class */ (function () {
1776
1771
  this.data = data;
1777
1772
  this.dialogRef = dialogRef;
1778
1773
  this.assetService = assetService;
1779
- this.destroy$ = new Subject();
1774
+ this.destroy$ = new Subject$1();
1780
1775
  this.selectedAssets = [];
1781
1776
  }
1782
1777
  /**
@@ -1885,7 +1880,6 @@ if (false) {
1885
1880
 
1886
1881
  /**
1887
1882
  * @fileoverview added by tsickle
1888
- * Generated from: lib/asset-management.component.ts
1889
1883
  * @suppress {checkTypes,constantProperty,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
1890
1884
  */
1891
1885
  var AssetManagementComponent = /** @class */ (function () {
@@ -2061,7 +2055,6 @@ if (false) {
2061
2055
 
2062
2056
  /**
2063
2057
  * @fileoverview added by tsickle
2064
- * Generated from: lib/directives/dialogTrigger.directive.ts
2065
2058
  * @suppress {checkTypes,constantProperty,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
2066
2059
  */
2067
2060
  var DialogTriggerDirective = /** @class */ (function () {
@@ -2112,7 +2105,6 @@ if (false) {
2112
2105
 
2113
2106
  /**
2114
2107
  * @fileoverview added by tsickle
2115
- * Generated from: lib/directives/dnd.directive.ts
2116
2108
  * @suppress {checkTypes,constantProperty,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
2117
2109
  */
2118
2110
  var DndDirective = /** @class */ (function () {
@@ -2191,7 +2183,6 @@ if (false) {
2191
2183
 
2192
2184
  /**
2193
2185
  * @fileoverview added by tsickle
2194
- * Generated from: lib/directives/directives.module.ts
2195
2186
  * @suppress {checkTypes,constantProperty,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
2196
2187
  */
2197
2188
  /** @type {?} */
@@ -2211,7 +2202,6 @@ var DirectivesModule = /** @class */ (function () {
2211
2202
 
2212
2203
  /**
2213
2204
  * @fileoverview added by tsickle
2214
- * Generated from: lib/components/ui/input-file/input-file.component.ts
2215
2205
  * @suppress {checkTypes,constantProperty,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
2216
2206
  */
2217
2207
  var InputFileComponent = /** @class */ (function () {
@@ -2265,7 +2255,6 @@ if (false) {
2265
2255
 
2266
2256
  /**
2267
2257
  * @fileoverview added by tsickle
2268
- * Generated from: lib/components/ui/modal/modal.component.ts
2269
2258
  * @suppress {checkTypes,constantProperty,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
2270
2259
  */
2271
2260
  var ModalComponent = /** @class */ (function () {
@@ -2303,7 +2292,6 @@ if (false) {
2303
2292
 
2304
2293
  /**
2305
2294
  * @fileoverview added by tsickle
2306
- * Generated from: lib/contanst/data-image.ts
2307
2295
  * @suppress {checkTypes,constantProperty,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
2308
2296
  */
2309
2297
  // tslint:disable:max-line-length
@@ -2324,13 +2312,11 @@ var fileDefault = "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAgAAAAIACAMAAAD
2324
2312
 
2325
2313
  /**
2326
2314
  * @fileoverview added by tsickle
2327
- * Generated from: lib/contanst/index.ts
2328
2315
  * @suppress {checkTypes,constantProperty,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
2329
2316
  */
2330
2317
 
2331
2318
  /**
2332
2319
  * @fileoverview added by tsickle
2333
- * Generated from: lib/components/ui/search-not-found/search-not-found.component.ts
2334
2320
  * @suppress {checkTypes,constantProperty,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
2335
2321
  */
2336
2322
  var SearchNotFoundComponent = /** @class */ (function () {
@@ -2370,7 +2356,6 @@ if (false) {
2370
2356
 
2371
2357
  /**
2372
2358
  * @fileoverview added by tsickle
2373
- * Generated from: lib/components/partial/file-item/file-item.component.ts
2374
2359
  * @suppress {checkTypes,constantProperty,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
2375
2360
  */
2376
2361
  var FileItemComponent = /** @class */ (function () {
@@ -2407,6 +2392,16 @@ var FileItemComponent = /** @class */ (function () {
2407
2392
  function () {
2408
2393
  this.initDataFile();
2409
2394
  };
2395
+ Object.defineProperty(FileItemComponent.prototype, "uploadErrors", {
2396
+ get: /**
2397
+ * @return {?}
2398
+ */
2399
+ function () {
2400
+ return this.uploadAssetService.uploadErrors.get(this.file);
2401
+ },
2402
+ enumerable: true,
2403
+ configurable: true
2404
+ });
2410
2405
  /**
2411
2406
  * @private
2412
2407
  * @return {?}
@@ -2529,8 +2524,8 @@ var FileItemComponent = /** @class */ (function () {
2529
2524
  FileItemComponent.decorators = [
2530
2525
  { type: Component, args: [{
2531
2526
  selector: 'lib-file-item',
2532
- template: "<div class=\"file-item__img\">\n <ng-container\n *ngIf=\"\n file.type.indexOf('image') > -1 || documentExts.indexOf(dataFile.ext) > -1;\n else defaultFile\n \"\n >\n <img\n [class.image]=\"file.type.indexOf('image') > -1\"\n *ngIf=\"documentExts.indexOf(dataFile.ext) > -1 || dataFile.data\"\n [src]=\"documentExts.indexOf(dataFile.ext) > -1 ? base64PNG[dataFile.ext] : dataFile.data\"\n />\n </ng-container>\n <ng-template #defaultFile>\n <mat-icon>attach_file</mat-icon>\n </ng-template>\n</div>\n<div class=\"file-item__content\">\n <input\n class=\"file-item__content--name\"\n matInput\n placeholder=\"Enter file name\"\n [value]=\"dataFile.name\"\n required\n (input)=\"onChange($event)\"\n />\n <div class=\"file-item__content--info\">\n <div class=\"file-item__content--info__item\">\n Extension: <span>{{ dataFile.ext }}</span>\n </div>\n <div class=\"file-item__content--info__item\">\n Size: <span>{{ dataFile.size | fileSize }}</span>\n </div>\n </div>\n <div *ngIf=\"dataFile.errors.ext\" class=\"file-item__error\">\n {{ uploadAssetService.messageErrors['ext'] }}\n {{ uploadAssetService.supportedTypes.join(', ') }}\n </div>\n <div *ngIf=\"dataFile.errors.size\" class=\"file-item__error\">\n {{ uploadAssetService.messageErrors['size'] }}\n {{ uploadAssetService.supportedSize | fileSize: 0 }}\n </div>\n <div *ngIf=\"dataFile.errors.maxLength\" class=\"file-item__error\">\n {{ uploadAssetService.messageErrors['maxLength'] }}\n </div>\n</div>\n<div class=\"file-item__action\">\n <mat-icon (click)=\"onRemove()\">delete_outline</mat-icon>\n</div>\n",
2533
- styles: [":host::ng-deep{padding:10px 5%;display:flex;justify-content:space-between;align-items:center;background-color:#f9f9f9;border-radius:10px}:host::ng-deep .file-item__img{display:flex;justify-content:center;align-items:center;width:250px;height:150px;border-radius:10px}:host::ng-deep .file-item__img img{max-width:100%;max-height:100%;-o-object-fit:contain;object-fit:contain}:host::ng-deep .file-item__img img.image{background-image:url(data:image/jpeg;base64,/9j/4AAQSkZJRgABAQEBLAEsAAD/2wBDAAEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQH/2wBDAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQH/wAARCAAUABQDASIAAhEBAxEB/8QAHwAAAQUBAQEBAQEAAAAAAAAAAAECAwQFBgcICQoL/8QAtRAAAgEDAwIEAwUFBAQAAAF9AQIDAAQRBRIhMUEGE1FhByJxFDKBkaEII0KxwRVS0fAkM2JyggkKFhcYGRolJicoKSo0NTY3ODk6Q0RFRkdISUpTVFVWV1hZWmNkZWZnaGlqc3R1dnd4eXqDhIWGh4iJipKTlJWWl5iZmqKjpKWmp6ipqrKztLW2t7i5usLDxMXGx8jJytLT1NXW19jZ2uHi4+Tl5ufo6erx8vP09fb3+Pn6/8QAHwEAAwEBAQEBAQEBAQAAAAAAAAECAwQFBgcICQoL/8QAtREAAgECBAQDBAcFBAQAAQJ3AAECAxEEBSExBhJBUQdhcRMiMoEIFEKRobHBCSMzUvAVYnLRChYkNOEl8RcYGRomJygpKjU2Nzg5OkNERUZHSElKU1RVVldYWVpjZGVmZ2hpanN0dXZ3eHl6goOEhYaHiImKkpOUlZaXmJmaoqOkpaanqKmqsrO0tba3uLm6wsPExcbHyMnK0tPU1dbX2Nna4uPk5ebn6Onq8vP09fb3+Pn6/9oADAMBAAIRAxEAPwD+/ivFPFOf+EjvxzjbBgdv+PeDp+OfxzSt4q18AkageASB9ntu3OM+Vn8c5rsdG0fT9d06DVdUgN1f3XmefP5ksO/ypXhj/dwvHGu2ONF+VF3bQSM0AeYUV7IPCWgjgWRA/wCvi4P85SaKAPGm5Vh7H+VeyeERjQLEDoPP/WeQ/wAzRRQB0tFFFAH/2Q==)}:host::ng-deep .file-item__img mat-icon{font-size:100px;width:auto;height:auto}:host::ng-deep .file-item__content{flex:1;padding-left:5%;padding-right:5%}:host::ng-deep .file-item__content--name{width:100%;padding:10px;border:1px solid #d8d8d8;border-radius:5px}:host::ng-deep .file-item__content--info{margin-top:10px;display:flex}:host::ng-deep .file-item__content--info__item:not(:last-child){margin-right:50px}:host::ng-deep .file-item__content--info__item span{color:#000;text-transform:uppercase}:host::ng-deep .file-item__error{margin-top:10px;color:#f44336}:host::ng-deep .file-item__action{color:#f44336;cursor:pointer}"]
2527
+ template: "<div class=\"file-item__img\">\n <ng-container\n *ngIf=\"\n file.type.indexOf('image') > -1 || documentExts.indexOf(dataFile.ext) > -1;\n else defaultFile\n \"\n >\n <img\n [class.image]=\"file.type.indexOf('image') > -1\"\n *ngIf=\"documentExts.indexOf(dataFile.ext) > -1 || dataFile.data\"\n [src]=\"documentExts.indexOf(dataFile.ext) > -1 ? base64PNG[dataFile.ext] : dataFile.data\"\n />\n </ng-container>\n <ng-template #defaultFile>\n <mat-icon>attach_file</mat-icon>\n </ng-template>\n</div>\n<div class=\"file-item__content\">\n <input\n class=\"file-item__content--name\"\n matInput\n placeholder=\"Enter file name\"\n [value]=\"dataFile.name\"\n required\n (input)=\"onChange($event)\"\n />\n <div class=\"file-item__content--info\">\n <div class=\"file-item__content--info__item\">\n Extension: <span>{{ dataFile.ext }}</span>\n </div>\n <div class=\"file-item__content--info__item\">\n Size: <span>{{ dataFile.size | fileSize }}</span>\n </div>\n </div>\n <div *ngIf=\"dataFile.errors.ext\" class=\"file-item__error\">\n <mat-icon class=\"file-item__error--icon\">error_outline</mat-icon>\n <span>\n {{ uploadAssetService.messageErrors['ext'] }}\n {{ uploadAssetService.supportedTypes.join(', ') }}\n </span>\n </div>\n <div *ngIf=\"dataFile.errors.size\" class=\"file-item__error\">\n <mat-icon class=\"file-item__error--icon\">error_outline</mat-icon>\n <span>\n {{ uploadAssetService.messageErrors['size'] }}\n {{ uploadAssetService.supportedSize | fileSize: 0 }}\n </span>\n </div>\n <div *ngIf=\"dataFile.errors.maxLength\" class=\"file-item__error\">\n <mat-icon class=\"file-item__error--icon\">error_outline</mat-icon>\n <span>{{ uploadAssetService.messageErrors['maxLength'] }}</span>\n </div>\n <div *ngFor=\"let message of uploadErrors\" class=\"file-item__error\" role=\"alert\">\n <mat-icon class=\"file-item__error--icon\">error_outline</mat-icon>\n <span>{{ message }}</span>\n </div>\n</div>\n<div class=\"file-item__action\">\n <mat-icon (click)=\"onRemove()\">delete_outline</mat-icon>\n</div>\n",
2528
+ styles: [":host::ng-deep{padding:10px 5%;display:flex;justify-content:space-between;align-items:center;background-color:#f9f9f9;border-radius:10px}:host::ng-deep .file-item__img{display:flex;justify-content:center;align-items:center;width:250px;height:150px;border-radius:10px}:host::ng-deep .file-item__img img{max-width:100%;max-height:100%;-o-object-fit:contain;object-fit:contain}:host::ng-deep .file-item__img img.image{background-image:url(data:image/jpeg;base64,/9j/4AAQSkZJRgABAQEBLAEsAAD/2wBDAAEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQH/2wBDAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQH/wAARCAAUABQDASIAAhEBAxEB/8QAHwAAAQUBAQEBAQEAAAAAAAAAAAECAwQFBgcICQoL/8QAtRAAAgEDAwIEAwUFBAQAAAF9AQIDAAQRBRIhMUEGE1FhByJxFDKBkaEII0KxwRVS0fAkM2JyggkKFhcYGRolJicoKSo0NTY3ODk6Q0RFRkdISUpTVFVWV1hZWmNkZWZnaGlqc3R1dnd4eXqDhIWGh4iJipKTlJWWl5iZmqKjpKWmp6ipqrKztLW2t7i5usLDxMXGx8jJytLT1NXW19jZ2uHi4+Tl5ufo6erx8vP09fb3+Pn6/8QAHwEAAwEBAQEBAQEBAQAAAAAAAAECAwQFBgcICQoL/8QAtREAAgECBAQDBAcFBAQAAQJ3AAECAxEEBSExBhJBUQdhcRMiMoEIFEKRobHBCSMzUvAVYnLRChYkNOEl8RcYGRomJygpKjU2Nzg5OkNERUZHSElKU1RVVldYWVpjZGVmZ2hpanN0dXZ3eHl6goOEhYaHiImKkpOUlZaXmJmaoqOkpaanqKmqsrO0tba3uLm6wsPExcbHyMnK0tPU1dbX2Nna4uPk5ebn6Onq8vP09fb3+Pn6/9oADAMBAAIRAxEAPwD+/ivFPFOf+EjvxzjbBgdv+PeDp+OfxzSt4q18AkageASB9ntu3OM+Vn8c5rsdG0fT9d06DVdUgN1f3XmefP5ksO/ypXhj/dwvHGu2ONF+VF3bQSM0AeYUV7IPCWgjgWRA/wCvi4P85SaKAPGm5Vh7H+VeyeERjQLEDoPP/WeQ/wAzRRQB0tFFFAH/2Q==)}:host::ng-deep .file-item__img mat-icon{font-size:100px;width:auto;height:auto}:host::ng-deep .file-item__content{flex:1;padding-left:5%;padding-right:5%}:host::ng-deep .file-item__content--name{width:100%;padding:10px;border:1px solid #d8d8d8;border-radius:5px}:host::ng-deep .file-item__content--info{margin-top:10px;display:flex}:host::ng-deep .file-item__content--info__item:not(:last-child){margin-right:50px}:host::ng-deep .file-item__content--info__item span{color:#000;text-transform:uppercase}:host::ng-deep .file-item__error{display:flex;align-items:center;width:-moz-fit-content;width:fit-content;max-width:100%;margin-top:8px;padding:4px 10px;border-radius:6px;background-color:#fdecea;color:#d32f2f;font-size:13px;line-height:18px;word-break:break-word}:host::ng-deep .file-item__error--icon{flex-shrink:0;margin-right:6px;font-size:16px;width:16px;height:16px}:host::ng-deep .file-item__action{color:#f44336;cursor:pointer}"]
2534
2529
  }] }
2535
2530
  ];
2536
2531
  /** @nocollapse */
@@ -2572,7 +2567,6 @@ if (false) {
2572
2567
 
2573
2568
  /**
2574
2569
  * @fileoverview added by tsickle
2575
- * Generated from: lib/components/partial/file-list/file-list.component.ts
2576
2570
  * @suppress {checkTypes,constantProperty,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
2577
2571
  */
2578
2572
  var FileListComponent = /** @class */ (function () {
@@ -2662,7 +2656,6 @@ if (false) {
2662
2656
 
2663
2657
  /**
2664
2658
  * @fileoverview added by tsickle
2665
- * Generated from: lib/components/partial/upload-file/upload-file.component.ts
2666
2659
  * @suppress {checkTypes,constantProperty,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
2667
2660
  */
2668
2661
  var UploadFileComponent = /** @class */ (function () {
@@ -2759,7 +2752,6 @@ if (false) {
2759
2752
 
2760
2753
  /**
2761
2754
  * @fileoverview added by tsickle
2762
- * Generated from: lib/components/partial/add-folder-dialog/add-folder-dialog.component.ts
2763
2755
  * @suppress {checkTypes,constantProperty,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
2764
2756
  */
2765
2757
  /**
@@ -2917,7 +2909,6 @@ if (false) {
2917
2909
 
2918
2910
  /**
2919
2911
  * @fileoverview added by tsickle
2920
- * Generated from: lib/components/partial/edit-folder-dialog/edit-folder-dialog.component.ts
2921
2912
  * @suppress {checkTypes,constantProperty,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
2922
2913
  */
2923
2914
  /**
@@ -3080,7 +3071,6 @@ if (false) {
3080
3071
 
3081
3072
  /**
3082
3073
  * @fileoverview added by tsickle
3083
- * Generated from: lib/components/partial/delete-dialog/delete-dialog.component.ts
3084
3074
  * @suppress {checkTypes,constantProperty,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
3085
3075
  */
3086
3076
  /**
@@ -3228,7 +3218,6 @@ if (false) {
3228
3218
 
3229
3219
  /**
3230
3220
  * @fileoverview added by tsickle
3231
- * Generated from: lib/components/partial/upload-dialog/upload-dialog.component.ts
3232
3221
  * @suppress {checkTypes,constantProperty,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
3233
3222
  */
3234
3223
  /**
@@ -3251,6 +3240,8 @@ var UploadDialogComponent = /** @class */ (function () {
3251
3240
  this.uploadAssetsService = uploadAssetsService;
3252
3241
  this.isLoading = false;
3253
3242
  this.disabled = true;
3243
+ this.errorMessages = [];
3244
+ this.defaultErrorMessage = 'Something went wrong while uploading. Please try again.';
3254
3245
  this.destroy$ = new Subject();
3255
3246
  if (this.data.fileType) {
3256
3247
  this.uploadAssetsService.supportedTypes =
@@ -3278,6 +3269,7 @@ var UploadDialogComponent = /** @class */ (function () {
3278
3269
  */
3279
3270
  function (error) {
3280
3271
  _this.disabled = error;
3272
+ _this.clearErrors();
3281
3273
  _this.changeDetectorRef.detectChanges();
3282
3274
  }));
3283
3275
  };
@@ -3291,6 +3283,7 @@ var UploadDialogComponent = /** @class */ (function () {
3291
3283
  */
3292
3284
  function (hasError) {
3293
3285
  this.disabled = hasError;
3286
+ this.clearErrors();
3294
3287
  };
3295
3288
  /**
3296
3289
  * @return {?}
@@ -3301,6 +3294,8 @@ var UploadDialogComponent = /** @class */ (function () {
3301
3294
  function () {
3302
3295
  var _this = this;
3303
3296
  this.isLoading = true;
3297
+ this.clearErrors();
3298
+ this.dialogRef.disableClose = true;
3304
3299
  this.uploadAssetsService
3305
3300
  .uploadMultipleAssets(this.data.currentAssetId)
3306
3301
  .pipe(takeUntil(this.destroy$))
@@ -3312,8 +3307,125 @@ var UploadDialogComponent = /** @class */ (function () {
3312
3307
  if (res) {
3313
3308
  _this.closeDialog(true);
3314
3309
  }
3310
+ }), (/**
3311
+ * @param {?} err
3312
+ * @return {?}
3313
+ */
3314
+ function (err) {
3315
+ _this.setUploadErrors(_this.getErrorMessages(err));
3316
+ _this.stopLoading();
3317
+ }), (
3318
+ // the request can complete without a truthy response (or be swallowed by an interceptor)
3319
+ // the request can complete without a truthy response (or be swallowed by an interceptor)
3320
+ /**
3321
+ * @return {?}
3322
+ */
3323
+ function () { return _this.stopLoading(); }));
3324
+ };
3325
+ /**
3326
+ * @private
3327
+ * @return {?}
3328
+ */
3329
+ UploadDialogComponent.prototype.stopLoading = /**
3330
+ * @private
3331
+ * @return {?}
3332
+ */
3333
+ function () {
3334
+ this.isLoading = false;
3335
+ this.dialogRef.disableClose = false;
3336
+ this.changeDetectorRef.detectChanges();
3337
+ };
3338
+ /**
3339
+ * @private
3340
+ * @return {?}
3341
+ */
3342
+ UploadDialogComponent.prototype.clearErrors = /**
3343
+ * @private
3344
+ * @return {?}
3345
+ */
3346
+ function () {
3347
+ this.errorMessages = [];
3348
+ this.uploadAssetsService.uploadErrors.clear();
3349
+ };
3350
+ // show each message on the file it mentions, the rest stay under the list
3351
+ // show each message on the file it mentions, the rest stay under the list
3352
+ /**
3353
+ * @private
3354
+ * @param {?} messages
3355
+ * @return {?}
3356
+ */
3357
+ UploadDialogComponent.prototype.setUploadErrors =
3358
+ // show each message on the file it mentions, the rest stay under the list
3359
+ /**
3360
+ * @private
3361
+ * @param {?} messages
3362
+ * @return {?}
3363
+ */
3364
+ function (messages) {
3365
+ var _this = this;
3366
+ var _a = this.uploadAssetsService, files = _a.getFiles, uploadErrors = _a.uploadErrors;
3367
+ /** @type {?} */
3368
+ var uploadNames = files.map((/**
3369
+ * @param {?} file
3370
+ * @param {?} index
3371
+ * @return {?}
3372
+ */
3373
+ function (file, index) { return _this.uploadAssetsService.getUploadName(index); }));
3374
+ this.errorMessages = messages.filter((/**
3375
+ * @param {?} message
3376
+ * @return {?}
3377
+ */
3378
+ function (message) {
3379
+ /** @type {?} */
3380
+ var index = uploadNames.findIndex((/**
3381
+ * @param {?} name
3382
+ * @return {?}
3383
+ */
3384
+ function (name) { return message.indexOf(name) > -1; }));
3385
+ if (index < 0 && files.length === 1) {
3386
+ index = 0;
3387
+ }
3388
+ if (index < 0) {
3389
+ return true;
3390
+ }
3391
+ uploadErrors.set(files[index], __spread((uploadErrors.get(files[index]) || []), [message]));
3392
+ return false;
3315
3393
  }));
3316
3394
  };
3395
+ /**
3396
+ * @private
3397
+ * @param {?} err
3398
+ * @return {?}
3399
+ */
3400
+ UploadDialogComponent.prototype.getErrorMessages = /**
3401
+ * @private
3402
+ * @param {?} err
3403
+ * @return {?}
3404
+ */
3405
+ function (err) {
3406
+ // HttpErrorResponse keeps the API body in `error`, an interceptor may already unwrap it
3407
+ /** @type {?} */
3408
+ var body = err && err.error && typeof err.error === 'object' ? err.error : err || {};
3409
+ /** @type {?} */
3410
+ var messages = (body.Messages || [])
3411
+ .map((/**
3412
+ * @param {?} message
3413
+ * @return {?}
3414
+ */
3415
+ function (message) { return (typeof message === 'string' ? message : message && message.Text); }))
3416
+ .filter(Boolean);
3417
+ if (!messages.length && body.ResponseMessage) {
3418
+ messages.push(body.ResponseMessage);
3419
+ }
3420
+ return messages.length
3421
+ ? messages.filter((/**
3422
+ * @param {?} message
3423
+ * @param {?} index
3424
+ * @return {?}
3425
+ */
3426
+ function (message, index) { return messages.indexOf(message) === index; }))
3427
+ : [this.defaultErrorMessage];
3428
+ };
3317
3429
  /**
3318
3430
  * @param {?=} res
3319
3431
  * @return {?}
@@ -3338,15 +3450,15 @@ var UploadDialogComponent = /** @class */ (function () {
3338
3450
  UploadDialogComponent.decorators = [
3339
3451
  { type: Component, args: [{
3340
3452
  selector: 'lib-upload-dialog',
3341
- template: "<lib-modal heading=\"Add new assets\">\n <ng-container content>\n <lib-upload-file\n *ngIf=\"!uploadAssetsService?.getFiles?.length\"\n (revalidate)=\"onValidate($event)\"\n ></lib-upload-file>\n <lib-file-list\n *ngIf=\"uploadAssetsService?.getFiles?.length\"\n (revalidate)=\"onValidate($event)\"\n ></lib-file-list>\n </ng-container>\n <ng-container actions>\n <button mat-raised-button mat-dialog-close>Cancel</button>\n <button\n class=\"upload__action\"\n [class.loading]=\"isLoading\"\n mat-raised-button\n color=\"primary\"\n (click)=\"uploadFiles()\"\n [disabled]=\"disabled || isLoading\"\n >\n <ng-container *ngIf=\"isLoading\">\n <mat-spinner [diameter]=\"20\"></mat-spinner>\n </ng-container>\n <span>Upload</span>\n </button>\n </ng-container>\n</lib-modal>\n",
3453
+ template: "<lib-modal heading=\"Add new assets\">\n <ng-container content>\n <lib-upload-file\n *ngIf=\"!uploadAssetsService?.getFiles?.length\"\n (revalidate)=\"onValidate($event)\"\n ></lib-upload-file>\n <lib-file-list\n *ngIf=\"uploadAssetsService?.getFiles?.length\"\n (revalidate)=\"onValidate($event)\"\n ></lib-file-list>\n <div *ngFor=\"let message of errorMessages\" class=\"upload__error\" role=\"alert\">\n <mat-icon class=\"upload__error--icon\">error_outline</mat-icon>\n <span>{{ message }}</span>\n </div>\n </ng-container>\n <ng-container actions>\n <button mat-raised-button mat-dialog-close [disabled]=\"isLoading\">Cancel</button>\n <button\n class=\"upload__action\"\n [class.loading]=\"isLoading\"\n mat-raised-button\n color=\"primary\"\n (click)=\"uploadFiles()\"\n [disabled]=\"disabled || isLoading\"\n >\n <ng-container *ngIf=\"isLoading\">\n <mat-spinner [diameter]=\"20\"></mat-spinner>\n </ng-container>\n <span>Upload</span>\n </button>\n </ng-container>\n</lib-modal>\n",
3342
3454
  providers: [UploadAssetsService],
3343
- styles: [":host::ng-deep{display:block;width:1200px;max-width:100%;font-size:14px;line-height:16px;color:#979797;letter-spacing:.15px}:host::ng-deep .mat-dialog-title{position:relative;margin-bottom:0;padding-bottom:24px;color:#000}:host::ng-deep .mat-dialog-actions{justify-content:flex-end;padding:24px 0 0}:host::ng-deep .upload__action{min-width:100px}:host::ng-deep .upload__action.loading{padding:0 5px}:host::ng-deep .upload__action.loading .mat-button-wrapper{display:flex;width:100%;justify-content:center;align-items:center}:host::ng-deep .upload__action.loading .mat-spinner{margin-right:10px}"]
3455
+ styles: [":host::ng-deep{display:block;width:1200px;max-width:100%;font-size:14px;line-height:16px;color:#979797;letter-spacing:.15px}:host::ng-deep .mat-dialog-title{position:relative;margin-bottom:0;padding-bottom:24px;color:#000}:host::ng-deep .mat-dialog-actions{justify-content:flex-end;padding:24px 0 0}:host::ng-deep .upload__error{display:flex;align-items:center;width:-moz-fit-content;width:fit-content;max-width:100%;margin-top:8px;padding:4px 10px;border-radius:6px;background-color:#fdecea;color:#d32f2f;font-size:13px;line-height:18px;word-break:break-word}:host::ng-deep .upload__error--icon{flex-shrink:0;margin-right:6px;font-size:16px;width:16px;height:16px}:host::ng-deep .upload__action{min-width:100px}:host::ng-deep .upload__action.loading{padding:0 5px}:host::ng-deep .upload__action.loading .mat-button-wrapper{display:flex;width:100%;justify-content:center;align-items:center}:host::ng-deep .upload__action.loading .mat-spinner{margin-right:10px}"]
3344
3456
  }] }
3345
3457
  ];
3346
3458
  /** @nocollapse */
3347
3459
  UploadDialogComponent.ctorParameters = function () { return [
3348
- { type: undefined, decorators: [{ type: Inject, args: [MAT_DIALOG_DATA,] }] },
3349
- { type: MatDialogRef },
3460
+ { type: undefined, decorators: [{ type: Inject, args: [MAT_DIALOG_DATA$1,] }] },
3461
+ { type: MatDialogRef$1 },
3350
3462
  { type: ChangeDetectorRef },
3351
3463
  { type: UploadAssetsService }
3352
3464
  ]; };
@@ -3357,6 +3469,13 @@ if (false) {
3357
3469
  UploadDialogComponent.prototype.isLoading;
3358
3470
  /** @type {?} */
3359
3471
  UploadDialogComponent.prototype.disabled;
3472
+ /** @type {?} */
3473
+ UploadDialogComponent.prototype.errorMessages;
3474
+ /**
3475
+ * @type {?}
3476
+ * @private
3477
+ */
3478
+ UploadDialogComponent.prototype.defaultErrorMessage;
3360
3479
  /**
3361
3480
  * @type {?}
3362
3481
  * @private
@@ -3377,7 +3496,6 @@ if (false) {
3377
3496
 
3378
3497
  /**
3379
3498
  * @fileoverview added by tsickle
3380
- * Generated from: lib/components/partial/folder-item/folder-item.component.ts
3381
3499
  * @suppress {checkTypes,constantProperty,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
3382
3500
  */
3383
3501
  var FolderItemComponent = /** @class */ (function () {
@@ -3508,7 +3626,6 @@ if (false) {
3508
3626
 
3509
3627
  /**
3510
3628
  * @fileoverview added by tsickle
3511
- * Generated from: lib/components/partial/folder-list/folder-list.component.ts
3512
3629
  * @suppress {checkTypes,constantProperty,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
3513
3630
  */
3514
3631
  var FolderListComponent = /** @class */ (function () {
@@ -3518,7 +3635,7 @@ var FolderListComponent = /** @class */ (function () {
3518
3635
  this.hasArchivePermission = true;
3519
3636
  this.onPageChange = new EventEmitter();
3520
3637
  this.loading = false;
3521
- this.unsubscribe$ = new Subject();
3638
+ this.unsubscribe$ = new Subject$1();
3522
3639
  this.bindSubscriber();
3523
3640
  }
3524
3641
  /**
@@ -3632,7 +3749,6 @@ if (false) {
3632
3749
 
3633
3750
  /**
3634
3751
  * @fileoverview added by tsickle
3635
- * Generated from: lib/components/partial/asset-list/asset-list.component.ts
3636
3752
  * @suppress {checkTypes,constantProperty,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
3637
3753
  */
3638
3754
  var AssetListComponent = /** @class */ (function () {
@@ -3643,7 +3759,8 @@ var AssetListComponent = /** @class */ (function () {
3643
3759
  this.hasAccessPermission = true;
3644
3760
  this.hasArchivePermission = true;
3645
3761
  this.backgroundProcessingNum = BackgroudProcessingStatus;
3646
- this.unsubscribe$ = new Subject();
3762
+ this.processingCheckDelay = 5000;
3763
+ this.unsubscribe$ = new Subject$1();
3647
3764
  this.selectedAssets = [];
3648
3765
  }
3649
3766
  /**
@@ -3664,17 +3781,8 @@ var AssetListComponent = /** @class */ (function () {
3664
3781
  * @return {?}
3665
3782
  */
3666
3783
  function (changes) {
3667
- var _this = this;
3668
3784
  if (changes.assets) {
3669
- // Check if asset is uploading
3670
- if (this.assets && this.assets.find((/**
3671
- * @param {?} x
3672
- * @return {?}
3673
- */
3674
- function (x) { return x.BackgroudProcessingStatus === _this.backgroundProcessingNum.InProcessing; }))) {
3675
- this._resetUploadingAssets();
3676
- }
3677
- ;
3785
+ this.checkProcessingAssets();
3678
3786
  this.paginator.pageIndex = this.assetService.pageIndex;
3679
3787
  this.paginator.pageSize = this.assetService.pageSize;
3680
3788
  this.paginator.length = this.assetService.fileTotal;
@@ -3827,15 +3935,8 @@ var AssetListComponent = /** @class */ (function () {
3827
3935
  * @param {?} res
3828
3936
  * @return {?}
3829
3937
  */
3830
- function (res) {
3831
- /** @type {?} */
3832
- var pagination = res && res.Meta || {};
3833
- /** @type {?} */
3834
- var assets = res && res.Data && res.Data.Children || [];
3835
- /** @type {?} */
3836
- var totalFile = res && res.Data && res.Data.TotalFile || 0;
3837
- _this.assetService.setAssetList(assets, pagination, totalFile);
3838
- })).add((/**
3938
+ function (res) { return _this.setAssetList(res); }))
3939
+ .add((/**
3839
3940
  * @return {?}
3840
3941
  */
3841
3942
  function () {
@@ -3847,29 +3948,92 @@ var AssetListComponent = /** @class */ (function () {
3847
3948
  };
3848
3949
  /**
3849
3950
  * @private
3951
+ * @param {?} res
3850
3952
  * @return {?}
3851
3953
  */
3852
- AssetListComponent.prototype._resetUploadingAssets = /**
3954
+ AssetListComponent.prototype.setAssetList = /**
3955
+ * @private
3956
+ * @param {?} res
3957
+ * @return {?}
3958
+ */
3959
+ function (res) {
3960
+ /** @type {?} */
3961
+ var pagination = res && res.Meta || {};
3962
+ /** @type {?} */
3963
+ var assets = res && res.Data && res.Data.Children || [];
3964
+ /** @type {?} */
3965
+ var totalFile = res && res.Data && res.Data.TotalFile || 0;
3966
+ this.assetService.setAssetList(assets, pagination, totalFile);
3967
+ };
3968
+ // Called on every new asset list: while some files are still processed in the background,
3969
+ // reload the list once after a delay. The reloaded list calls this again, until nothing is processing.
3970
+ // Called on every new asset list: while some files are still processed in the background,
3971
+ // reload the list once after a delay. The reloaded list calls this again, until nothing is processing.
3972
+ /**
3973
+ * @private
3974
+ * @return {?}
3975
+ */
3976
+ AssetListComponent.prototype.checkProcessingAssets =
3977
+ // Called on every new asset list: while some files are still processed in the background,
3978
+ // reload the list once after a delay. The reloaded list calls this again, until nothing is processing.
3979
+ /**
3853
3980
  * @private
3854
3981
  * @return {?}
3855
3982
  */
3856
3983
  function () {
3857
3984
  var _this = this;
3985
+ this.stopProcessingCheck();
3858
3986
  /** @type {?} */
3859
- var reload = setInterval((/**
3987
+ var hasProcessingAssets = this.assets && this.assets.some((/**
3988
+ * @param {?} asset
3860
3989
  * @return {?}
3861
3990
  */
3862
- function () {
3863
- _this.fetchChildrenAssets();
3864
- if (_this.assets.find((/**
3865
- * @param {?} x
3991
+ function (asset) { return asset.BackgroudProcessingStatus === _this.backgroundProcessingNum.InProcessing; }));
3992
+ if (hasProcessingAssets) {
3993
+ this.processingCheckTimer = setTimeout((/**
3866
3994
  * @return {?}
3867
3995
  */
3868
- function (x) { return x.BackgroudProcessingStatus === _this.backgroundProcessingNum.Processed; }))) {
3869
- clearInterval(reload);
3870
- }
3871
- console.log('Upload Successfully!'); // interval will be cleared after completing this whole block
3872
- }), 5000);
3996
+ function () { return _this.reloadProcessingAssets(); }), this.processingCheckDelay);
3997
+ }
3998
+ };
3999
+ // Silent reload, without the global loading bar
4000
+ // Silent reload, without the global loading bar
4001
+ /**
4002
+ * @private
4003
+ * @return {?}
4004
+ */
4005
+ AssetListComponent.prototype.reloadProcessingAssets =
4006
+ // Silent reload, without the global loading bar
4007
+ /**
4008
+ * @private
4009
+ * @return {?}
4010
+ */
4011
+ function () {
4012
+ var _this = this;
4013
+ if (!this.currentFolderId) {
4014
+ return;
4015
+ }
4016
+ this.processingCheckRequest = this.assetService
4017
+ .getChildrenAssets({ assetId: this.currentFolderId })
4018
+ .subscribe((/**
4019
+ * @param {?} res
4020
+ * @return {?}
4021
+ */
4022
+ function (res) { return _this.setAssetList(res); }));
4023
+ };
4024
+ /**
4025
+ * @private
4026
+ * @return {?}
4027
+ */
4028
+ AssetListComponent.prototype.stopProcessingCheck = /**
4029
+ * @private
4030
+ * @return {?}
4031
+ */
4032
+ function () {
4033
+ clearTimeout(this.processingCheckTimer);
4034
+ if (this.processingCheckRequest) {
4035
+ this.processingCheckRequest.unsubscribe();
4036
+ }
3873
4037
  };
3874
4038
  /**
3875
4039
  * @return {?}
@@ -3878,6 +4042,7 @@ var AssetListComponent = /** @class */ (function () {
3878
4042
  * @return {?}
3879
4043
  */
3880
4044
  function () {
4045
+ this.stopProcessingCheck();
3881
4046
  this.unsubscribe$.next();
3882
4047
  this.unsubscribe$.complete();
3883
4048
  };
@@ -3885,7 +4050,7 @@ var AssetListComponent = /** @class */ (function () {
3885
4050
  { type: Component, args: [{
3886
4051
  selector: 'lib-asset-list',
3887
4052
  template: "<div class=\"asset-container\">\n <div class=\"asset-heading\">\n <h6 class=\"asset-heading__title\">Files</h6>\n <lib-sort-items\n [hidden]=\"!assets?.length\"\n class=\"asset-heading__sort\"\n ></lib-sort-items>\n </div>\n <ng-container *ngIf=\"assets && !assets.length; else assetsTemplate\">\n <div class=\"asset-empty\">\n <span>This asset is empty.</span>\n </div>\n </ng-container>\n <ng-template #assetsTemplate>\n <div class=\"asset-list\">\n <lib-asset-item\n class=\"asset-list__item\"\n *ngFor=\"let asset of assets\"\n [asset]=\"asset\"\n [isDialog]=\"isDialog\"\n (selectAsset)=\"onSelectAsset($event)\"\n [hasModifyPermission]=\"hasModifyPermission\"\n [hasAccessPermission]=\"hasAccessPermission\"\n [hasArchivePermission]=\"hasArchivePermission\"\n >\n </lib-asset-item>\n </div>\n </ng-template>\n <div [hidden]=\"!assets?.length\">\n <mat-paginator\n #paginator\n [pageSizeOptions]=\"[12, 24, 60, 120]\"\n (page)=\"pageChange($event)\"\n [showFirstLastButtons]=\"true\"\n >\n </mat-paginator>\n </div>\n</div>\n",
3888
- styles: [":host::ng-deep .asset-container .asset-heading{display:flex;justify-content:space-between;align-items:center;margin-bottom:.5rem}:host::ng-deep .asset-container .asset-heading__title{margin-bottom:0;color:#979797}:host::ng-deep .asset-container .asset-list{display:flex;flex-wrap:wrap;justify-content:flex-start;align-items:stretch;margin:0 -5px}:host::ng-deep .asset-container .asset-list__item{width:25%}@media only screen and (max-width:1200px){:host::ng-deep .asset-container .asset-list__item{width:calc(100% / 3)}}@media only screen and (max-width:960px){:host::ng-deep .asset-container .asset-list__item{width:50%}}:host::ng-deep .asset-container .asset-empty{text-align:center;color:#979797;font-size:14px}"]
4053
+ styles: [":host::ng-deep .asset-container .asset-heading{display:flex;justify-content:space-between;align-items:center;margin-bottom:.5rem}:host::ng-deep .asset-container .asset-heading__title{margin-bottom:0;color:#979797}:host::ng-deep .asset-container .asset-list{display:flex;flex-wrap:wrap;justify-content:flex-start;align-items:stretch;margin:0 -5px}:host::ng-deep .asset-container .asset-list__item{width:25%}@media only screen and (max-width:1200px){:host::ng-deep .asset-container .asset-list__item{width:33.3333333333%}}@media only screen and (max-width:960px){:host::ng-deep .asset-container .asset-list__item{width:50%}}:host::ng-deep .asset-container .asset-empty{text-align:center;color:#979797;font-size:14px}"]
3889
4054
  }] }
3890
4055
  ];
3891
4056
  /** @nocollapse */
@@ -3898,7 +4063,7 @@ var AssetListComponent = /** @class */ (function () {
3898
4063
  hasModifyPermission: [{ type: Input }],
3899
4064
  hasAccessPermission: [{ type: Input }],
3900
4065
  hasArchivePermission: [{ type: Input }],
3901
- paginator: [{ type: ViewChild, args: [MatPaginator, { static: true },] }],
4066
+ paginator: [{ type: ViewChild, args: [MatPaginator$1, { static: true },] }],
3902
4067
  assets: [{ type: Input }]
3903
4068
  };
3904
4069
  return AssetListComponent;
@@ -3918,6 +4083,21 @@ if (false) {
3918
4083
  AssetListComponent.prototype.assets;
3919
4084
  /** @type {?} */
3920
4085
  AssetListComponent.prototype.backgroundProcessingNum;
4086
+ /**
4087
+ * @type {?}
4088
+ * @private
4089
+ */
4090
+ AssetListComponent.prototype.processingCheckDelay;
4091
+ /**
4092
+ * @type {?}
4093
+ * @private
4094
+ */
4095
+ AssetListComponent.prototype.processingCheckTimer;
4096
+ /**
4097
+ * @type {?}
4098
+ * @private
4099
+ */
4100
+ AssetListComponent.prototype.processingCheckRequest;
3921
4101
  /**
3922
4102
  * @type {?}
3923
4103
  * @private
@@ -3947,7 +4127,6 @@ if (false) {
3947
4127
 
3948
4128
  /**
3949
4129
  * @fileoverview added by tsickle
3950
- * Generated from: lib/pipes/file-size.pipe.ts
3951
4130
  * @suppress {checkTypes,constantProperty,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
3952
4131
  */
3953
4132
  /*
@@ -4009,7 +4188,6 @@ if (false) {
4009
4188
 
4010
4189
  /**
4011
4190
  * @fileoverview added by tsickle
4012
- * Generated from: lib/components/partial/asset-dialog/asset-dialog.component.ts
4013
4191
  * @suppress {checkTypes,constantProperty,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
4014
4192
  */
4015
4193
  /**
@@ -4433,7 +4611,6 @@ if (false) {
4433
4611
 
4434
4612
  /**
4435
4613
  * @fileoverview added by tsickle
4436
- * Generated from: lib/components/partial/asset-item/asset-item.component.ts
4437
4614
  * @suppress {checkTypes,constantProperty,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
4438
4615
  */
4439
4616
  var AssetItemComponent = /** @class */ (function () {
@@ -4773,7 +4950,6 @@ if (false) {
4773
4950
 
4774
4951
  /**
4775
4952
  * @fileoverview added by tsickle
4776
- * Generated from: lib/datasources/node-tree.datasource.ts
4777
4953
  * @suppress {checkTypes,constantProperty,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
4778
4954
  */
4779
4955
  var NodeTreeDataSource = /** @class */ (function () {
@@ -4892,8 +5068,7 @@ var NodeTreeDataSource = /** @class */ (function () {
4892
5068
  */
4893
5069
  function (node, expand) {
4894
5070
  return __awaiter(this, void 0, void 0, function () {
4895
- var index, newNode, nodes, count, i;
4896
- var _a;
5071
+ var _a, index, newNode, nodes, count, i;
4897
5072
  var _this = this;
4898
5073
  return __generator(this, function (_b) {
4899
5074
  switch (_b.label) {
@@ -4956,8 +5131,7 @@ var NodeTreeDataSource = /** @class */ (function () {
4956
5131
  */
4957
5132
  function (node, pageSize) {
4958
5133
  return __awaiter(this, void 0, void 0, function () {
4959
- var newNode, index, count, i, nodes;
4960
- var _a;
5134
+ var _a, newNode, index, count, i, nodes;
4961
5135
  var _this = this;
4962
5136
  return __generator(this, function (_b) {
4963
5137
  switch (_b.label) {
@@ -5012,13 +5186,11 @@ if (false) {
5012
5186
 
5013
5187
  /**
5014
5188
  * @fileoverview added by tsickle
5015
- * Generated from: lib/datasources/index.ts
5016
5189
  * @suppress {checkTypes,constantProperty,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
5017
5190
  */
5018
5191
 
5019
5192
  /**
5020
5193
  * @fileoverview added by tsickle
5021
- * Generated from: lib/components/partial/node-tree/node-tree.component.ts
5022
5194
  * @suppress {checkTypes,constantProperty,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
5023
5195
  */
5024
5196
  var NodeTreeComponent = /** @class */ (function () {
@@ -5205,7 +5377,7 @@ var NodeTreeComponent = /** @class */ (function () {
5205
5377
  * @param {?} res
5206
5378
  * @return {?}
5207
5379
  */
5208
- function (res) { return of(res); })))
5380
+ function (res) { return of$1(res); })))
5209
5381
  .subscribe((/**
5210
5382
  * @return {?}
5211
5383
  */
@@ -5596,7 +5768,6 @@ if (false) {
5596
5768
 
5597
5769
  /**
5598
5770
  * @fileoverview added by tsickle
5599
- * Generated from: lib/components/partial/breadcrumb/breadcrumb.component.ts
5600
5771
  * @suppress {checkTypes,constantProperty,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
5601
5772
  */
5602
5773
  var BreadcrumbComponent = /** @class */ (function () {
@@ -5604,7 +5775,7 @@ var BreadcrumbComponent = /** @class */ (function () {
5604
5775
  this.nodeTreeService = nodeTreeService;
5605
5776
  this.svc = svc;
5606
5777
  this.changeDetectorRef = changeDetectorRef;
5607
- this.unsubscribe$ = new Subject();
5778
+ this.unsubscribe$ = new Subject$1();
5608
5779
  this.currentFolderHierarchy = [];
5609
5780
  this.maximumShownLevel = 3;
5610
5781
  this.bindSubscriber();
@@ -5731,14 +5902,13 @@ if (false) {
5731
5902
 
5732
5903
  /**
5733
5904
  * @fileoverview added by tsickle
5734
- * Generated from: lib/components/partial/search-box/search-box.component.ts
5735
5905
  * @suppress {checkTypes,constantProperty,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
5736
5906
  */
5737
5907
  var SearchBoxComponent = /** @class */ (function () {
5738
5908
  function SearchBoxComponent(assetService, svc) {
5739
5909
  this.assetService = assetService;
5740
5910
  this.svc = svc;
5741
- this.destroy$ = new Subject();
5911
+ this.destroy$ = new Subject$1();
5742
5912
  this.value = '';
5743
5913
  this.folderId = '';
5744
5914
  this.bindingSubscriber();
@@ -5911,7 +6081,6 @@ if (false) {
5911
6081
 
5912
6082
  /**
5913
6083
  * @fileoverview added by tsickle
5914
- * Generated from: lib/components/partial/sort-items/sort-items.component.ts
5915
6084
  * @suppress {checkTypes,constantProperty,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
5916
6085
  */
5917
6086
  var SortItemsComponent = /** @class */ (function () {
@@ -6013,7 +6182,6 @@ if (false) {
6013
6182
 
6014
6183
  /**
6015
6184
  * @fileoverview added by tsickle
6016
- * Generated from: lib/components/partial/asset-wrapper/asset-wrapper.component.ts
6017
6185
  * @suppress {checkTypes,constantProperty,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
6018
6186
  */
6019
6187
  var AssetWrapperComponent = /** @class */ (function () {
@@ -6024,7 +6192,7 @@ var AssetWrapperComponent = /** @class */ (function () {
6024
6192
  this.hasAccessPermission = true;
6025
6193
  this.hasArchivePermission = true;
6026
6194
  this.assets = new EventEmitter();
6027
- this.unsubscribe$ = new Subject();
6195
+ this.unsubscribe$ = new Subject$1();
6028
6196
  this.nodeTreeMinWidth = 300;
6029
6197
  this.nodeTreeMaxWidth = 700;
6030
6198
  }
@@ -6138,7 +6306,6 @@ if (false) {
6138
6306
 
6139
6307
  /**
6140
6308
  * @fileoverview added by tsickle
6141
- * Generated from: lib/components/partial/node-details/node-details.component.ts
6142
6309
  * @suppress {checkTypes,constantProperty,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
6143
6310
  */
6144
6311
  var NodeDetailsComponent = /** @class */ (function () {
@@ -6151,9 +6318,9 @@ var NodeDetailsComponent = /** @class */ (function () {
6151
6318
  this.hasModifyPermission = true;
6152
6319
  this.hasAccessPermission = true;
6153
6320
  this.hasArchivePermission = true;
6154
- this.unsubscribe$ = new Subject();
6321
+ this.unsubscribe$ = new Subject$1();
6155
6322
  this.selectedAssets = [];
6156
- this.loading$ = new BehaviorSubject(false);
6323
+ this.loading$ = new BehaviorSubject$1(false);
6157
6324
  this.bindSubscriber();
6158
6325
  }
6159
6326
  /**
@@ -6206,7 +6373,7 @@ var NodeDetailsComponent = /** @class */ (function () {
6206
6373
  * @param {?} res
6207
6374
  * @return {?}
6208
6375
  */
6209
- function (res) { return of(res); })))
6376
+ function (res) { return of$1(res); })))
6210
6377
  .subscribe((/**
6211
6378
  * @param {?} globalLoading
6212
6379
  * @return {?}
@@ -6238,7 +6405,7 @@ var NodeDetailsComponent = /** @class */ (function () {
6238
6405
  * @param {?} res
6239
6406
  * @return {?}
6240
6407
  */
6241
- function (res) { return of(res); })))
6408
+ function (res) { return of$1(res); })))
6242
6409
  .subscribe((/**
6243
6410
  * @param {?} currentFolderId
6244
6411
  * @return {?}
@@ -6258,7 +6425,7 @@ var NodeDetailsComponent = /** @class */ (function () {
6258
6425
  * @param {?} res
6259
6426
  * @return {?}
6260
6427
  */
6261
- function (res) { return of(res); })))
6428
+ function (res) { return of$1(res); })))
6262
6429
  .subscribe((/**
6263
6430
  * @return {?}
6264
6431
  */
@@ -6277,7 +6444,7 @@ var NodeDetailsComponent = /** @class */ (function () {
6277
6444
  * @param {?} res
6278
6445
  * @return {?}
6279
6446
  */
6280
- function (res) { return of(res); })))
6447
+ function (res) { return of$1(res); })))
6281
6448
  .subscribe((/**
6282
6449
  * @return {?}
6283
6450
  */
@@ -6657,7 +6824,6 @@ if (false) {
6657
6824
 
6658
6825
  /**
6659
6826
  * @fileoverview added by tsickle
6660
- * Generated from: lib/components/ui/drag-to-resize/drag-to-resize.component.ts
6661
6827
  * @suppress {checkTypes,constantProperty,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
6662
6828
  */
6663
6829
  var DragToResizeComponent = /** @class */ (function () {
@@ -6773,7 +6939,6 @@ if (false) {
6773
6939
 
6774
6940
  /**
6775
6941
  * @fileoverview added by tsickle
6776
- * Generated from: lib/configs/admin.config.ts
6777
6942
  * @suppress {checkTypes,constantProperty,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
6778
6943
  */
6779
6944
  /** @type {?} */
@@ -6854,7 +7019,6 @@ var AdminConfig = {
6854
7019
 
6855
7020
  /**
6856
7021
  * @fileoverview added by tsickle
6857
- * Generated from: lib/pipes/datetime.pipe.ts
6858
7022
  * @suppress {checkTypes,constantProperty,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
6859
7023
  */
6860
7024
  /** @type {?} */
@@ -6933,7 +7097,6 @@ if (false) {
6933
7097
 
6934
7098
  /**
6935
7099
  * @fileoverview added by tsickle
6936
- * Generated from: lib/asset-management.module.ts
6937
7100
  * @suppress {checkTypes,constantProperty,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
6938
7101
  */
6939
7102
  // SERVICES
@@ -6973,6 +7136,16 @@ var COMPONENTS = [
6973
7136
  AssetWrapperComponent,
6974
7137
  AssetManagementDialogComponent,
6975
7138
  ];
7139
+ /** @type {?} */
7140
+ var ENTRY_COMPONENTS = [
7141
+ ModalComponent,
7142
+ UploadDialogComponent,
7143
+ AddFolderDialogComponent,
7144
+ EditFolderDialogComponent,
7145
+ DeleteDialogComponent,
7146
+ AssetDialogComponent,
7147
+ AssetManagementDialogComponent,
7148
+ ];
6976
7149
  /**
6977
7150
  * @param {?} config
6978
7151
  * @return {?}
@@ -7044,6 +7217,7 @@ var AssetManagementModule = /** @class */ (function () {
7044
7217
  multi: true,
7045
7218
  }
7046
7219
  ]),
7220
+ entryComponents: __spread(ENTRY_COMPONENTS),
7047
7221
  },] }
7048
7222
  ];
7049
7223
  /** @nocollapse */
@@ -7053,15 +7227,13 @@ var AssetManagementModule = /** @class */ (function () {
7053
7227
 
7054
7228
  /**
7055
7229
  * @fileoverview added by tsickle
7056
- * Generated from: public-api.ts
7057
7230
  * @suppress {checkTypes,constantProperty,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
7058
7231
  */
7059
7232
 
7060
7233
  /**
7061
7234
  * @fileoverview added by tsickle
7062
- * Generated from: rs-pk-asset-management.ts
7063
7235
  * @suppress {checkTypes,constantProperty,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
7064
7236
  */
7065
7237
 
7066
- export { AMFactory, AM_CONFIG, AddFolderDialogComponent, AssetDialogComponent, AssetItemComponent, AssetListComponent, AssetManagementComponent, AssetManagementDialogComponent, AssetManagementModule, AssetService, AssetWrapperComponent, BaseHttpClient, BreadcrumbComponent, DIRECTIVES, DeleteDialogComponent, DialogTriggerDirective, DirectivesModule, DndDirective, DragToResizeComponent, EditFolderDialogComponent, FileItemComponent, FileListComponent, FileService, FileSizePipe, FolderItemComponent, FolderListComponent, InputFileComponent, LocalDatePipe, LocalDateTimePipe, ModalComponent, NodeDetailsComponent, NodeTreeComponent, NodeTreeService, SearchBoxComponent, SearchNotFoundComponent, SortItemsComponent, UploadAssetsService, UploadDialogComponent, UploadFileComponent, AssetManagementService as ɵa, DialogConfig as ɵb };
7238
+ export { AMFactory, AM_CONFIG, AddFolderDialogComponent, AssetDialogComponent, AssetItemComponent, AssetListComponent, AssetManagementComponent, AssetManagementDialogComponent, AssetManagementModule, AssetService, AssetWrapperComponent, BaseHttpClient, BreadcrumbComponent, DeleteDialogComponent, DialogTriggerDirective, EditFolderDialogComponent, FileItemComponent, FileListComponent, FileService, FolderItemComponent, FolderListComponent, InputFileComponent, ModalComponent, NodeDetailsComponent, NodeTreeComponent, NodeTreeService, SearchBoxComponent, SearchNotFoundComponent, UploadAssetsService, UploadDialogComponent, UploadFileComponent, DragToResizeComponent as ɵa, FileSizePipe as ɵb, AssetManagementService as ɵc, SortItemsComponent as ɵd, DialogConfig as ɵe, LocalDateTimePipe as ɵf, LocalDatePipe as ɵg, DIRECTIVES as ɵh, DirectivesModule as ɵi, DndDirective as ɵj };
7067
7239
  //# sourceMappingURL=rs-pk-asset-management.js.map