@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
@@ -7,7 +7,7 @@ import { MatInputModule } from '@angular/material/input';
7
7
  import { MatIconModule } from '@angular/material/icon';
8
8
  import { MatTooltipModule } from '@angular/material/tooltip';
9
9
  import { MatTreeModule } from '@angular/material/tree';
10
- import { MatPaginator, MatPaginatorModule } from '@angular/material/paginator';
10
+ import { MatPaginator as MatPaginator$1, MatPaginatorModule } from '@angular/material/paginator';
11
11
  import { MatTableModule } from '@angular/material/table';
12
12
  import { MatProgressBarModule } from '@angular/material/progress-bar';
13
13
  import { MatMenuModule } from '@angular/material/menu';
@@ -15,16 +15,20 @@ import { MatCheckboxModule } from '@angular/material/checkbox';
15
15
  import { MatSelectModule } from '@angular/material/select';
16
16
  import { MatProgressSpinnerModule } from '@angular/material/progress-spinner';
17
17
  import { HttpClient, HttpHandler, HttpParams, HttpHeaders } from '@angular/common/http';
18
- import { BehaviorSubject, Subject, of, merge, combineLatest } from 'rxjs';
18
+ import { BehaviorSubject, Subject, merge, of as of$1 } from 'rxjs';
19
19
  import { __awaiter } from 'tslib';
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
  /**
@@ -189,7 +193,6 @@ const ROOT_ASSET_ID = 'ROOT';
189
193
 
190
194
  /**
191
195
  * @fileoverview added by tsickle
192
- * Generated from: lib/models/asset-file.model.ts
193
196
  * @suppress {checkTypes,constantProperty,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
194
197
  */
195
198
  class AssetFileUploadModel {
@@ -247,7 +250,6 @@ if (false) {
247
250
 
248
251
  /**
249
252
  * @fileoverview added by tsickle
250
- * Generated from: lib/models/file.model.ts
251
253
  * @suppress {checkTypes,constantProperty,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
252
254
  */
253
255
  /**
@@ -339,7 +341,6 @@ if (false) {
339
341
 
340
342
  /**
341
343
  * @fileoverview added by tsickle
342
- * Generated from: lib/models/node-tree.model.ts
343
344
  * @suppress {checkTypes,constantProperty,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
344
345
  */
345
346
  /**
@@ -372,18 +373,16 @@ if (false) {
372
373
 
373
374
  /**
374
375
  * @fileoverview added by tsickle
375
- * Generated from: lib/models/file-type.enum.ts
376
376
  * @suppress {checkTypes,constantProperty,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
377
377
  */
378
378
  /** @enum {string} */
379
379
  const FileTypeEnum = {
380
- IMAGE: "Image",
381
- DOCUMENT: "Document",
380
+ IMAGE: 'Image',
381
+ DOCUMENT: 'Document',
382
382
  };
383
383
 
384
384
  /**
385
385
  * @fileoverview added by tsickle
386
- * Generated from: lib/models/sort.enum.ts
387
386
  * @suppress {checkTypes,constantProperty,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
388
387
  */
389
388
  /** @enum {number} */
@@ -405,13 +404,11 @@ TypeSort[TypeSort.ASC] = 'ASC';
405
404
 
406
405
  /**
407
406
  * @fileoverview added by tsickle
408
- * Generated from: lib/models/index.ts
409
407
  * @suppress {checkTypes,constantProperty,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
410
408
  */
411
409
 
412
410
  /**
413
411
  * @fileoverview added by tsickle
414
- * Generated from: lib/services/env-config.service.ts
415
412
  * @suppress {checkTypes,constantProperty,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
416
413
  */
417
414
  /**
@@ -431,7 +428,6 @@ const AM_CONFIG = new InjectionToken('asset.man.config.angular');
431
428
 
432
429
  /**
433
430
  * @fileoverview added by tsickle
434
- * Generated from: lib/services/base.service.ts
435
431
  * @suppress {checkTypes,constantProperty,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
436
432
  */
437
433
  class BaseHttpClient extends HttpClient {
@@ -478,7 +474,6 @@ if (false) {
478
474
 
479
475
  /**
480
476
  * @fileoverview added by tsickle
481
- * Generated from: lib/services/asset.service.ts
482
477
  * @suppress {checkTypes,constantProperty,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
483
478
  */
484
479
  class AssetService {
@@ -743,7 +738,6 @@ if (false) {
743
738
 
744
739
  /**
745
740
  * @fileoverview added by tsickle
746
- * Generated from: lib/asset-management.service.ts
747
741
  * @suppress {checkTypes,constantProperty,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
748
742
  */
749
743
  /** @type {?} */
@@ -775,7 +769,7 @@ AssetManagementService.decorators = [
775
769
  ];
776
770
  /** @nocollapse */
777
771
  AssetManagementService.ctorParameters = () => [];
778
- /** @nocollapse */ AssetManagementService.ɵprov = ɵɵdefineInjectable({ factory: function AssetManagementService_Factory() { return new AssetManagementService(); }, token: AssetManagementService, providedIn: "root" });
772
+ /** @nocollapse */ AssetManagementService.ngInjectableDef = ɵɵdefineInjectable({ factory: function AssetManagementService_Factory() { return new AssetManagementService(); }, token: AssetManagementService, providedIn: "root" });
779
773
  if (false) {
780
774
  /**
781
775
  * @type {?}
@@ -786,7 +780,6 @@ if (false) {
786
780
 
787
781
  /**
788
782
  * @fileoverview added by tsickle
789
- * Generated from: lib/store/actions.action.ts
790
783
  * @suppress {checkTypes,constantProperty,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
791
784
  */
792
785
  /**
@@ -802,18 +795,18 @@ if (false) {
802
795
  /** @enum {string} */
803
796
  const ActionTypes = {
804
797
  // global loading
805
- SET_GLOBAL_LOADING: "[LOADING] Set global loading state",
798
+ SET_GLOBAL_LOADING: '[LOADING] Set global loading state',
806
799
  // asset area
807
- SET_SELECTED_ASSETS: "[ASSET] Set selected assets",
808
- RELOAD_CURRENT_ASSETS: "[ASSET] reload current asset list ",
809
- DELETE_ASSET: "[ASSET] delete an asset ",
800
+ SET_SELECTED_ASSETS: '[ASSET] Set selected assets',
801
+ RELOAD_CURRENT_ASSETS: '[ASSET] reload current asset list ',
802
+ DELETE_ASSET: '[ASSET] delete an asset ',
810
803
  // folder area
811
- SET_CURRENT_FOLDER_ID: "[FOLDER] get current folder id",
812
- SET_CURRENT_FOLDER: "[FOLDER] set current folder ",
813
- RELOAD_CURRENT_FOLDER: "[FOLDER] reload current folder ",
814
- SET_CURRENT_FOLDER_HIERARCHY: "[FOLDER] set current folder hierarchy ",
804
+ SET_CURRENT_FOLDER_ID: '[FOLDER] get current folder id',
805
+ SET_CURRENT_FOLDER: '[FOLDER] set current folder ',
806
+ RELOAD_CURRENT_FOLDER: '[FOLDER] reload current folder ',
807
+ SET_CURRENT_FOLDER_HIERARCHY: '[FOLDER] set current folder hierarchy ',
815
808
  // node area
816
- RELOAD_CURRENT_NODE: "[NODE] reload current node ",
809
+ RELOAD_CURRENT_NODE: '[NODE] reload current node ',
817
810
  };
818
811
  class SetGlobalLoading {
819
812
  constructor() {
@@ -911,7 +904,6 @@ if (false) {
911
904
 
912
905
  /**
913
906
  * @fileoverview added by tsickle
914
- * Generated from: lib/store/reducer.ts
915
907
  * @suppress {checkTypes,constantProperty,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
916
908
  */
917
909
  /**
@@ -969,39 +961,39 @@ const initialReducer = (/**
969
961
  (action) => {
970
962
  switch (action.type) {
971
963
  case ActionTypes.SET_SELECTED_ASSETS:
972
- state = Object.assign(Object.assign({}, state), { selectedAssets: action.payload });
964
+ state = Object.assign({}, state, { selectedAssets: action.payload });
973
965
  store.next(state);
974
966
  break;
975
967
  case ActionTypes.SET_GLOBAL_LOADING:
976
- state = Object.assign(Object.assign({}, state), { globalLoading: action.payload });
968
+ state = Object.assign({}, state, { globalLoading: action.payload });
977
969
  store.next(state);
978
970
  break;
979
971
  case ActionTypes.SET_CURRENT_FOLDER:
980
- state = Object.assign(Object.assign({}, state), { currentFolder: Object.assign({}, action.payload) });
972
+ state = Object.assign({}, state, { currentFolder: Object.assign({}, action.payload) });
981
973
  store.next(state);
982
974
  break;
983
975
  case ActionTypes.RELOAD_CURRENT_FOLDER:
984
- state = Object.assign(Object.assign({}, state), { reloadCurrentFolder: !state.reloadCurrentFolder });
976
+ state = Object.assign({}, state, { reloadCurrentFolder: !state.reloadCurrentFolder });
985
977
  store.next(state);
986
978
  break;
987
979
  case ActionTypes.RELOAD_CURRENT_ASSETS:
988
- state = Object.assign(Object.assign({}, state), { reloadCurrentAssets: !state.reloadCurrentAssets });
980
+ state = Object.assign({}, state, { reloadCurrentAssets: !state.reloadCurrentAssets });
989
981
  store.next(state);
990
982
  break;
991
983
  case ActionTypes.RELOAD_CURRENT_NODE:
992
- state = Object.assign(Object.assign({}, state), { reloadCurrentNode: !state.reloadCurrentNode });
984
+ state = Object.assign({}, state, { reloadCurrentNode: !state.reloadCurrentNode });
993
985
  store.next(state);
994
986
  break;
995
987
  case ActionTypes.SET_CURRENT_FOLDER_HIERARCHY:
996
- state = Object.assign(Object.assign({}, state), { currentFolderHierarchy: [...action.payload] });
988
+ state = Object.assign({}, state, { currentFolderHierarchy: [...action.payload] });
997
989
  store.next(state);
998
990
  break;
999
991
  case ActionTypes.SET_CURRENT_FOLDER_ID:
1000
- state = Object.assign(Object.assign({}, state), { currentFolderId: action.payload });
992
+ state = Object.assign({}, state, { currentFolderId: action.payload });
1001
993
  store.next(state);
1002
994
  break;
1003
995
  case ActionTypes.DELETE_ASSET:
1004
- state = Object.assign(Object.assign({}, state), { deletedAssetId: action.payload });
996
+ state = Object.assign({}, state, { deletedAssetId: action.payload });
1005
997
  store.next(state);
1006
998
  break;
1007
999
  default:
@@ -1024,13 +1016,11 @@ const select = (/**
1024
1016
 
1025
1017
  /**
1026
1018
  * @fileoverview added by tsickle
1027
- * Generated from: lib/store/index.ts
1028
1019
  * @suppress {checkTypes,constantProperty,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
1029
1020
  */
1030
1021
 
1031
1022
  /**
1032
1023
  * @fileoverview added by tsickle
1033
- * Generated from: lib/services/node-tree.service.ts
1034
1024
  * @suppress {checkTypes,constantProperty,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
1035
1025
  */
1036
1026
  class NodeTreeService {
@@ -1041,9 +1031,9 @@ class NodeTreeService {
1041
1031
  constructor(assetService, svc) {
1042
1032
  this.assetService = assetService;
1043
1033
  this.svc = svc;
1044
- this.storedData$ = new BehaviorSubject([]);
1045
- this.loading$ = new BehaviorSubject(false);
1046
- this.initialData$ = new BehaviorSubject([]);
1034
+ this.storedData$ = new BehaviorSubject$1([]);
1035
+ this.loading$ = new BehaviorSubject$1(false);
1036
+ this.initialData$ = new BehaviorSubject$1([]);
1047
1037
  }
1048
1038
  /**
1049
1039
  * @return {?}
@@ -1159,7 +1149,7 @@ class NodeTreeService {
1159
1149
  */
1160
1150
  (node) => node.AssetId === asset.AssetId));
1161
1151
  if (index < 0) {
1162
- data = [...data, Object.assign(Object.assign({}, asset), { ParentId: parentId ? parentId : null })];
1152
+ data = [...data, Object.assign({}, asset, { ParentId: parentId ? parentId : null })];
1163
1153
  }
1164
1154
  this.data = data;
1165
1155
  }
@@ -1248,7 +1238,6 @@ if (false) {
1248
1238
 
1249
1239
  /**
1250
1240
  * @fileoverview added by tsickle
1251
- * Generated from: lib/services/upload-assets.service.ts
1252
1241
  * @suppress {checkTypes,constantProperty,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
1253
1242
  */
1254
1243
  class UploadAssetsService {
@@ -1263,6 +1252,7 @@ class UploadAssetsService {
1263
1252
  this._api = _api;
1264
1253
  this.files = [];
1265
1254
  this.fileNames = [];
1255
+ this.uploadErrors = new Map();
1266
1256
  this.supportedSize = 10 * 1024 * 1024; // 10MB
1267
1257
  // 10MB
1268
1258
  this.documentExtension = ['.pdf', '.csv'];
@@ -1338,9 +1328,21 @@ class UploadAssetsService {
1338
1328
  * @return {?}
1339
1329
  */
1340
1330
  deleteFile(index) {
1331
+ this.uploadErrors.delete(this.files[index]);
1341
1332
  this.files.splice(index, 1);
1342
1333
  this.fileNames.splice(index, 1);
1343
1334
  }
1335
+ /**
1336
+ * @param {?} index
1337
+ * @return {?}
1338
+ */
1339
+ getUploadName(index) {
1340
+ /** @type {?} */
1341
+ const nameSplit = this.files[index].name.split('.');
1342
+ /** @type {?} */
1343
+ const ext = `.${nameSplit.splice(nameSplit.length - 1, 1)[0]}`;
1344
+ return `${this.fileNames[index].name}${ext}`;
1345
+ }
1344
1346
  /**
1345
1347
  * @param {?} parentAssetId
1346
1348
  * @return {?}
@@ -1348,21 +1350,11 @@ class UploadAssetsService {
1348
1350
  uploadMultipleAssets(parentAssetId) {
1349
1351
  const { files } = this;
1350
1352
  /** @type {?} */
1351
- const fileNames = this.fileNames.map((/**
1352
- * @param {?} file
1353
- * @return {?}
1354
- */
1355
- file => file.name));
1356
- /** @type {?} */
1357
1353
  const formData = new FormData();
1358
1354
  formData.append('parentAssetId', parentAssetId);
1359
1355
  formData.append('companyId', '732DA8D2-04EC-4BE0-A168-63EE0DCF50D8');
1360
1356
  for (let i = 0; i < files.length; i++) {
1361
- /** @type {?} */
1362
- const nameSplit = files[i].name.split('.');
1363
- /** @type {?} */
1364
- const ext = `.${nameSplit.splice(nameSplit.length - 1, 1)[0]}`;
1365
- formData.append('files', files[i], `${fileNames[i]}${ext}`);
1357
+ formData.append('files', files[i], this.getUploadName(i));
1366
1358
  }
1367
1359
  return this._api.post(`${this.baseUrl}/File/Upload`, formData);
1368
1360
  }
@@ -1385,6 +1377,8 @@ if (false) {
1385
1377
  /** @type {?} */
1386
1378
  UploadAssetsService.prototype.fileNames;
1387
1379
  /** @type {?} */
1380
+ UploadAssetsService.prototype.uploadErrors;
1381
+ /** @type {?} */
1388
1382
  UploadAssetsService.prototype.supportedSize;
1389
1383
  /** @type {?} */
1390
1384
  UploadAssetsService.prototype.documentExtension;
@@ -1422,7 +1416,6 @@ if (false) {
1422
1416
 
1423
1417
  /**
1424
1418
  * @fileoverview added by tsickle
1425
- * Generated from: lib/services/file.service.ts
1426
1419
  * @suppress {checkTypes,constantProperty,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
1427
1420
  */
1428
1421
  class FileService {
@@ -1525,13 +1518,11 @@ if (false) {
1525
1518
 
1526
1519
  /**
1527
1520
  * @fileoverview added by tsickle
1528
- * Generated from: lib/services/index.ts
1529
1521
  * @suppress {checkTypes,constantProperty,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
1530
1522
  */
1531
1523
 
1532
1524
  /**
1533
1525
  * @fileoverview added by tsickle
1534
- * Generated from: lib/components/partial/asset-management-dialog/asset-management-dialog.component.ts
1535
1526
  * @suppress {checkTypes,constantProperty,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
1536
1527
  */
1537
1528
  class AssetManagementDialogComponent {
@@ -1544,7 +1535,7 @@ class AssetManagementDialogComponent {
1544
1535
  this.data = data;
1545
1536
  this.dialogRef = dialogRef;
1546
1537
  this.assetService = assetService;
1547
- this.destroy$ = new Subject();
1538
+ this.destroy$ = new Subject$1();
1548
1539
  this.selectedAssets = [];
1549
1540
  }
1550
1541
  /**
@@ -1634,7 +1625,6 @@ if (false) {
1634
1625
 
1635
1626
  /**
1636
1627
  * @fileoverview added by tsickle
1637
- * Generated from: lib/asset-management.component.ts
1638
1628
  * @suppress {checkTypes,constantProperty,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
1639
1629
  */
1640
1630
  class AssetManagementComponent {
@@ -1796,7 +1786,6 @@ if (false) {
1796
1786
 
1797
1787
  /**
1798
1788
  * @fileoverview added by tsickle
1799
- * Generated from: lib/directives/dialogTrigger.directive.ts
1800
1789
  * @suppress {checkTypes,constantProperty,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
1801
1790
  */
1802
1791
  class DialogTriggerDirective {
@@ -1842,7 +1831,6 @@ if (false) {
1842
1831
 
1843
1832
  /**
1844
1833
  * @fileoverview added by tsickle
1845
- * Generated from: lib/directives/dnd.directive.ts
1846
1834
  * @suppress {checkTypes,constantProperty,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
1847
1835
  */
1848
1836
  class DndDirective {
@@ -1899,7 +1887,6 @@ if (false) {
1899
1887
 
1900
1888
  /**
1901
1889
  * @fileoverview added by tsickle
1902
- * Generated from: lib/directives/directives.module.ts
1903
1890
  * @suppress {checkTypes,constantProperty,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
1904
1891
  */
1905
1892
  /** @type {?} */
@@ -1916,7 +1903,6 @@ DirectivesModule.decorators = [
1916
1903
 
1917
1904
  /**
1918
1905
  * @fileoverview added by tsickle
1919
- * Generated from: lib/components/ui/input-file/input-file.component.ts
1920
1906
  * @suppress {checkTypes,constantProperty,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
1921
1907
  */
1922
1908
  class InputFileComponent {
@@ -1965,7 +1951,6 @@ if (false) {
1965
1951
 
1966
1952
  /**
1967
1953
  * @fileoverview added by tsickle
1968
- * Generated from: lib/components/ui/modal/modal.component.ts
1969
1954
  * @suppress {checkTypes,constantProperty,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
1970
1955
  */
1971
1956
  class ModalComponent {
@@ -1999,7 +1984,6 @@ if (false) {
1999
1984
 
2000
1985
  /**
2001
1986
  * @fileoverview added by tsickle
2002
- * Generated from: lib/contanst/data-image.ts
2003
1987
  * @suppress {checkTypes,constantProperty,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
2004
1988
  */
2005
1989
  // tslint:disable:max-line-length
@@ -2020,13 +2004,11 @@ const fileDefault = "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAgAAAAIACAMAA
2020
2004
 
2021
2005
  /**
2022
2006
  * @fileoverview added by tsickle
2023
- * Generated from: lib/contanst/index.ts
2024
2007
  * @suppress {checkTypes,constantProperty,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
2025
2008
  */
2026
2009
 
2027
2010
  /**
2028
2011
  * @fileoverview added by tsickle
2029
- * Generated from: lib/components/ui/search-not-found/search-not-found.component.ts
2030
2012
  * @suppress {checkTypes,constantProperty,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
2031
2013
  */
2032
2014
  class SearchNotFoundComponent {
@@ -2065,7 +2047,6 @@ if (false) {
2065
2047
 
2066
2048
  /**
2067
2049
  * @fileoverview added by tsickle
2068
- * Generated from: lib/components/partial/file-item/file-item.component.ts
2069
2050
  * @suppress {checkTypes,constantProperty,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
2070
2051
  */
2071
2052
  class FileItemComponent {
@@ -2103,6 +2084,12 @@ class FileItemComponent {
2103
2084
  ngOnInit() {
2104
2085
  this.initDataFile();
2105
2086
  }
2087
+ /**
2088
+ * @return {?}
2089
+ */
2090
+ get uploadErrors() {
2091
+ return this.uploadAssetService.uploadErrors.get(this.file);
2092
+ }
2106
2093
  /**
2107
2094
  * @private
2108
2095
  * @return {?}
@@ -2202,8 +2189,8 @@ class FileItemComponent {
2202
2189
  FileItemComponent.decorators = [
2203
2190
  { type: Component, args: [{
2204
2191
  selector: 'lib-file-item',
2205
- 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",
2206
- 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}"]
2192
+ 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",
2193
+ 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}"]
2207
2194
  }] }
2208
2195
  ];
2209
2196
  /** @nocollapse */
@@ -2243,7 +2230,6 @@ if (false) {
2243
2230
 
2244
2231
  /**
2245
2232
  * @fileoverview added by tsickle
2246
- * Generated from: lib/components/partial/file-list/file-list.component.ts
2247
2233
  * @suppress {checkTypes,constantProperty,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
2248
2234
  */
2249
2235
  class FileListComponent {
@@ -2315,7 +2301,6 @@ if (false) {
2315
2301
 
2316
2302
  /**
2317
2303
  * @fileoverview added by tsickle
2318
- * Generated from: lib/components/partial/upload-file/upload-file.component.ts
2319
2304
  * @suppress {checkTypes,constantProperty,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
2320
2305
  */
2321
2306
  class UploadFileComponent {
@@ -2397,7 +2382,6 @@ if (false) {
2397
2382
 
2398
2383
  /**
2399
2384
  * @fileoverview added by tsickle
2400
- * Generated from: lib/components/partial/add-folder-dialog/add-folder-dialog.component.ts
2401
2385
  * @suppress {checkTypes,constantProperty,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
2402
2386
  */
2403
2387
  /**
@@ -2538,7 +2522,6 @@ if (false) {
2538
2522
 
2539
2523
  /**
2540
2524
  * @fileoverview added by tsickle
2541
- * Generated from: lib/components/partial/edit-folder-dialog/edit-folder-dialog.component.ts
2542
2525
  * @suppress {checkTypes,constantProperty,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
2543
2526
  */
2544
2527
  /**
@@ -2684,7 +2667,6 @@ if (false) {
2684
2667
 
2685
2668
  /**
2686
2669
  * @fileoverview added by tsickle
2687
- * Generated from: lib/components/partial/delete-dialog/delete-dialog.component.ts
2688
2670
  * @suppress {checkTypes,constantProperty,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
2689
2671
  */
2690
2672
  /**
@@ -2818,7 +2800,6 @@ if (false) {
2818
2800
 
2819
2801
  /**
2820
2802
  * @fileoverview added by tsickle
2821
- * Generated from: lib/components/partial/upload-dialog/upload-dialog.component.ts
2822
2803
  * @suppress {checkTypes,constantProperty,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
2823
2804
  */
2824
2805
  /**
@@ -2847,6 +2828,8 @@ class UploadDialogComponent {
2847
2828
  this.uploadAssetsService = uploadAssetsService;
2848
2829
  this.isLoading = false;
2849
2830
  this.disabled = true;
2831
+ this.errorMessages = [];
2832
+ this.defaultErrorMessage = 'Something went wrong while uploading. Please try again.';
2850
2833
  this.destroy$ = new Subject();
2851
2834
  if (this.data.fileType) {
2852
2835
  this.uploadAssetsService.supportedTypes =
@@ -2871,6 +2854,7 @@ class UploadDialogComponent {
2871
2854
  */
2872
2855
  error => {
2873
2856
  this.disabled = error;
2857
+ this.clearErrors();
2874
2858
  this.changeDetectorRef.detectChanges();
2875
2859
  }));
2876
2860
  }
@@ -2880,12 +2864,15 @@ class UploadDialogComponent {
2880
2864
  */
2881
2865
  onValidate(hasError) {
2882
2866
  this.disabled = hasError;
2867
+ this.clearErrors();
2883
2868
  }
2884
2869
  /**
2885
2870
  * @return {?}
2886
2871
  */
2887
2872
  uploadFiles() {
2888
2873
  this.isLoading = true;
2874
+ this.clearErrors();
2875
+ this.dialogRef.disableClose = true;
2889
2876
  this.uploadAssetsService
2890
2877
  .uploadMultipleAssets(this.data.currentAssetId)
2891
2878
  .pipe(takeUntil(this.destroy$))
@@ -2897,8 +2884,102 @@ class UploadDialogComponent {
2897
2884
  if (res) {
2898
2885
  this.closeDialog(true);
2899
2886
  }
2887
+ }), (/**
2888
+ * @param {?} err
2889
+ * @return {?}
2890
+ */
2891
+ err => {
2892
+ this.setUploadErrors(this.getErrorMessages(err));
2893
+ this.stopLoading();
2894
+ }), (
2895
+ // the request can complete without a truthy response (or be swallowed by an interceptor)
2896
+ /**
2897
+ * @return {?}
2898
+ */
2899
+ () => this.stopLoading()));
2900
+ }
2901
+ /**
2902
+ * @private
2903
+ * @return {?}
2904
+ */
2905
+ stopLoading() {
2906
+ this.isLoading = false;
2907
+ this.dialogRef.disableClose = false;
2908
+ this.changeDetectorRef.detectChanges();
2909
+ }
2910
+ /**
2911
+ * @private
2912
+ * @return {?}
2913
+ */
2914
+ clearErrors() {
2915
+ this.errorMessages = [];
2916
+ this.uploadAssetsService.uploadErrors.clear();
2917
+ }
2918
+ // show each message on the file it mentions, the rest stay under the list
2919
+ /**
2920
+ * @private
2921
+ * @param {?} messages
2922
+ * @return {?}
2923
+ */
2924
+ setUploadErrors(messages) {
2925
+ const { getFiles: files, uploadErrors } = this.uploadAssetsService;
2926
+ /** @type {?} */
2927
+ const uploadNames = files.map((/**
2928
+ * @param {?} file
2929
+ * @param {?} index
2930
+ * @return {?}
2931
+ */
2932
+ (file, index) => this.uploadAssetsService.getUploadName(index)));
2933
+ this.errorMessages = messages.filter((/**
2934
+ * @param {?} message
2935
+ * @return {?}
2936
+ */
2937
+ message => {
2938
+ /** @type {?} */
2939
+ let index = uploadNames.findIndex((/**
2940
+ * @param {?} name
2941
+ * @return {?}
2942
+ */
2943
+ name => message.indexOf(name) > -1));
2944
+ if (index < 0 && files.length === 1) {
2945
+ index = 0;
2946
+ }
2947
+ if (index < 0) {
2948
+ return true;
2949
+ }
2950
+ uploadErrors.set(files[index], [...(uploadErrors.get(files[index]) || []), message]);
2951
+ return false;
2900
2952
  }));
2901
2953
  }
2954
+ /**
2955
+ * @private
2956
+ * @param {?} err
2957
+ * @return {?}
2958
+ */
2959
+ getErrorMessages(err) {
2960
+ // HttpErrorResponse keeps the API body in `error`, an interceptor may already unwrap it
2961
+ /** @type {?} */
2962
+ const body = err && err.error && typeof err.error === 'object' ? err.error : err || {};
2963
+ /** @type {?} */
2964
+ const messages = (body.Messages || [])
2965
+ .map((/**
2966
+ * @param {?} message
2967
+ * @return {?}
2968
+ */
2969
+ message => (typeof message === 'string' ? message : message && message.Text)))
2970
+ .filter(Boolean);
2971
+ if (!messages.length && body.ResponseMessage) {
2972
+ messages.push(body.ResponseMessage);
2973
+ }
2974
+ return messages.length
2975
+ ? messages.filter((/**
2976
+ * @param {?} message
2977
+ * @param {?} index
2978
+ * @return {?}
2979
+ */
2980
+ (message, index) => messages.indexOf(message) === index))
2981
+ : [this.defaultErrorMessage];
2982
+ }
2902
2983
  /**
2903
2984
  * @param {?=} res
2904
2985
  * @return {?}
@@ -2917,15 +2998,15 @@ class UploadDialogComponent {
2917
2998
  UploadDialogComponent.decorators = [
2918
2999
  { type: Component, args: [{
2919
3000
  selector: 'lib-upload-dialog',
2920
- 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",
3001
+ 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",
2921
3002
  providers: [UploadAssetsService],
2922
- 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}"]
3003
+ 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}"]
2923
3004
  }] }
2924
3005
  ];
2925
3006
  /** @nocollapse */
2926
3007
  UploadDialogComponent.ctorParameters = () => [
2927
- { type: undefined, decorators: [{ type: Inject, args: [MAT_DIALOG_DATA,] }] },
2928
- { type: MatDialogRef },
3008
+ { type: undefined, decorators: [{ type: Inject, args: [MAT_DIALOG_DATA$1,] }] },
3009
+ { type: MatDialogRef$1 },
2929
3010
  { type: ChangeDetectorRef },
2930
3011
  { type: UploadAssetsService }
2931
3012
  ];
@@ -2934,6 +3015,13 @@ if (false) {
2934
3015
  UploadDialogComponent.prototype.isLoading;
2935
3016
  /** @type {?} */
2936
3017
  UploadDialogComponent.prototype.disabled;
3018
+ /** @type {?} */
3019
+ UploadDialogComponent.prototype.errorMessages;
3020
+ /**
3021
+ * @type {?}
3022
+ * @private
3023
+ */
3024
+ UploadDialogComponent.prototype.defaultErrorMessage;
2937
3025
  /**
2938
3026
  * @type {?}
2939
3027
  * @private
@@ -2954,7 +3042,6 @@ if (false) {
2954
3042
 
2955
3043
  /**
2956
3044
  * @fileoverview added by tsickle
2957
- * Generated from: lib/components/partial/folder-item/folder-item.component.ts
2958
3045
  * @suppress {checkTypes,constantProperty,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
2959
3046
  */
2960
3047
  class FolderItemComponent {
@@ -3074,7 +3161,6 @@ if (false) {
3074
3161
 
3075
3162
  /**
3076
3163
  * @fileoverview added by tsickle
3077
- * Generated from: lib/components/partial/folder-list/folder-list.component.ts
3078
3164
  * @suppress {checkTypes,constantProperty,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
3079
3165
  */
3080
3166
  class FolderListComponent {
@@ -3084,7 +3170,7 @@ class FolderListComponent {
3084
3170
  this.hasArchivePermission = true;
3085
3171
  this.onPageChange = new EventEmitter();
3086
3172
  this.loading = false;
3087
- this.unsubscribe$ = new Subject();
3173
+ this.unsubscribe$ = new Subject$1();
3088
3174
  this.bindSubscriber();
3089
3175
  }
3090
3176
  /**
@@ -3179,7 +3265,6 @@ if (false) {
3179
3265
 
3180
3266
  /**
3181
3267
  * @fileoverview added by tsickle
3182
- * Generated from: lib/components/partial/asset-list/asset-list.component.ts
3183
3268
  * @suppress {checkTypes,constantProperty,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
3184
3269
  */
3185
3270
  class AssetListComponent {
@@ -3194,7 +3279,8 @@ class AssetListComponent {
3194
3279
  this.hasAccessPermission = true;
3195
3280
  this.hasArchivePermission = true;
3196
3281
  this.backgroundProcessingNum = BackgroudProcessingStatus;
3197
- this.unsubscribe$ = new Subject();
3282
+ this.processingCheckDelay = 5000;
3283
+ this.unsubscribe$ = new Subject$1();
3198
3284
  this.selectedAssets = [];
3199
3285
  }
3200
3286
  /**
@@ -3209,15 +3295,7 @@ class AssetListComponent {
3209
3295
  */
3210
3296
  ngOnChanges(changes) {
3211
3297
  if (changes.assets) {
3212
- // Check if asset is uploading
3213
- if (this.assets && this.assets.find((/**
3214
- * @param {?} x
3215
- * @return {?}
3216
- */
3217
- x => x.BackgroudProcessingStatus === this.backgroundProcessingNum.InProcessing))) {
3218
- this._resetUploadingAssets();
3219
- }
3220
- ;
3298
+ this.checkProcessingAssets();
3221
3299
  this.paginator.pageIndex = this.assetService.pageIndex;
3222
3300
  this.paginator.pageSize = this.assetService.pageSize;
3223
3301
  this.paginator.length = this.assetService.fileTotal;
@@ -3352,15 +3430,8 @@ class AssetListComponent {
3352
3430
  * @param {?} res
3353
3431
  * @return {?}
3354
3432
  */
3355
- (res) => {
3356
- /** @type {?} */
3357
- const pagination = res && res.Meta || {};
3358
- /** @type {?} */
3359
- const assets = res && res.Data && res.Data.Children || [];
3360
- /** @type {?} */
3361
- const totalFile = res && res.Data && res.Data.TotalFile || 0;
3362
- this.assetService.setAssetList(assets, pagination, totalFile);
3363
- })).add((/**
3433
+ (res) => this.setAssetList(res)))
3434
+ .add((/**
3364
3435
  * @return {?}
3365
3436
  */
3366
3437
  () => {
@@ -3370,31 +3441,73 @@ class AssetListComponent {
3370
3441
  });
3371
3442
  }));
3372
3443
  }
3444
+ /**
3445
+ * @private
3446
+ * @param {?} res
3447
+ * @return {?}
3448
+ */
3449
+ setAssetList(res) {
3450
+ /** @type {?} */
3451
+ const pagination = res && res.Meta || {};
3452
+ /** @type {?} */
3453
+ const assets = res && res.Data && res.Data.Children || [];
3454
+ /** @type {?} */
3455
+ const totalFile = res && res.Data && res.Data.TotalFile || 0;
3456
+ this.assetService.setAssetList(assets, pagination, totalFile);
3457
+ }
3458
+ // Called on every new asset list: while some files are still processed in the background,
3459
+ // reload the list once after a delay. The reloaded list calls this again, until nothing is processing.
3373
3460
  /**
3374
3461
  * @private
3375
3462
  * @return {?}
3376
3463
  */
3377
- _resetUploadingAssets() {
3464
+ checkProcessingAssets() {
3465
+ this.stopProcessingCheck();
3378
3466
  /** @type {?} */
3379
- const reload = setInterval((/**
3467
+ const hasProcessingAssets = this.assets && this.assets.some((/**
3468
+ * @param {?} asset
3380
3469
  * @return {?}
3381
3470
  */
3382
- () => {
3383
- this.fetchChildrenAssets();
3384
- if (this.assets.find((/**
3385
- * @param {?} x
3471
+ (asset) => asset.BackgroudProcessingStatus === this.backgroundProcessingNum.InProcessing));
3472
+ if (hasProcessingAssets) {
3473
+ this.processingCheckTimer = setTimeout((/**
3386
3474
  * @return {?}
3387
3475
  */
3388
- x => x.BackgroudProcessingStatus === this.backgroundProcessingNum.Processed))) {
3389
- clearInterval(reload);
3390
- }
3391
- console.log('Upload Successfully!'); // interval will be cleared after completing this whole block
3392
- }), 5000);
3476
+ () => this.reloadProcessingAssets()), this.processingCheckDelay);
3477
+ }
3478
+ }
3479
+ // Silent reload, without the global loading bar
3480
+ /**
3481
+ * @private
3482
+ * @return {?}
3483
+ */
3484
+ reloadProcessingAssets() {
3485
+ if (!this.currentFolderId) {
3486
+ return;
3487
+ }
3488
+ this.processingCheckRequest = this.assetService
3489
+ .getChildrenAssets({ assetId: this.currentFolderId })
3490
+ .subscribe((/**
3491
+ * @param {?} res
3492
+ * @return {?}
3493
+ */
3494
+ (res) => this.setAssetList(res)));
3495
+ }
3496
+ /**
3497
+ * @private
3498
+ * @return {?}
3499
+ */
3500
+ stopProcessingCheck() {
3501
+ clearTimeout(this.processingCheckTimer);
3502
+ if (this.processingCheckRequest) {
3503
+ this.processingCheckRequest.unsubscribe();
3504
+ }
3393
3505
  }
3394
3506
  /**
3395
3507
  * @return {?}
3396
3508
  */
3397
3509
  ngOnDestroy() {
3510
+ this.stopProcessingCheck();
3398
3511
  this.unsubscribe$.next();
3399
3512
  this.unsubscribe$.complete();
3400
3513
  }
@@ -3403,7 +3516,7 @@ AssetListComponent.decorators = [
3403
3516
  { type: Component, args: [{
3404
3517
  selector: 'lib-asset-list',
3405
3518
  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",
3406
- 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}"]
3519
+ 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}"]
3407
3520
  }] }
3408
3521
  ];
3409
3522
  /** @nocollapse */
@@ -3416,7 +3529,7 @@ AssetListComponent.propDecorators = {
3416
3529
  hasModifyPermission: [{ type: Input }],
3417
3530
  hasAccessPermission: [{ type: Input }],
3418
3531
  hasArchivePermission: [{ type: Input }],
3419
- paginator: [{ type: ViewChild, args: [MatPaginator, { static: true },] }],
3532
+ paginator: [{ type: ViewChild, args: [MatPaginator$1, { static: true },] }],
3420
3533
  assets: [{ type: Input }]
3421
3534
  };
3422
3535
  if (false) {
@@ -3434,6 +3547,21 @@ if (false) {
3434
3547
  AssetListComponent.prototype.assets;
3435
3548
  /** @type {?} */
3436
3549
  AssetListComponent.prototype.backgroundProcessingNum;
3550
+ /**
3551
+ * @type {?}
3552
+ * @private
3553
+ */
3554
+ AssetListComponent.prototype.processingCheckDelay;
3555
+ /**
3556
+ * @type {?}
3557
+ * @private
3558
+ */
3559
+ AssetListComponent.prototype.processingCheckTimer;
3560
+ /**
3561
+ * @type {?}
3562
+ * @private
3563
+ */
3564
+ AssetListComponent.prototype.processingCheckRequest;
3437
3565
  /**
3438
3566
  * @type {?}
3439
3567
  * @private
@@ -3463,7 +3591,6 @@ if (false) {
3463
3591
 
3464
3592
  /**
3465
3593
  * @fileoverview added by tsickle
3466
- * Generated from: lib/pipes/file-size.pipe.ts
3467
3594
  * @suppress {checkTypes,constantProperty,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
3468
3595
  */
3469
3596
  /*
@@ -3517,7 +3644,6 @@ if (false) {
3517
3644
 
3518
3645
  /**
3519
3646
  * @fileoverview added by tsickle
3520
- * Generated from: lib/components/partial/asset-dialog/asset-dialog.component.ts
3521
3647
  * @suppress {checkTypes,constantProperty,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
3522
3648
  */
3523
3649
  /**
@@ -3900,7 +4026,6 @@ if (false) {
3900
4026
 
3901
4027
  /**
3902
4028
  * @fileoverview added by tsickle
3903
- * Generated from: lib/components/partial/asset-item/asset-item.component.ts
3904
4029
  * @suppress {checkTypes,constantProperty,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
3905
4030
  */
3906
4031
  class AssetItemComponent {
@@ -4207,7 +4332,6 @@ if (false) {
4207
4332
 
4208
4333
  /**
4209
4334
  * @fileoverview added by tsickle
4210
- * Generated from: lib/datasources/node-tree.datasource.ts
4211
4335
  * @suppress {checkTypes,constantProperty,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
4212
4336
  */
4213
4337
  class NodeTreeDataSource {
@@ -4384,13 +4508,11 @@ if (false) {
4384
4508
 
4385
4509
  /**
4386
4510
  * @fileoverview added by tsickle
4387
- * Generated from: lib/datasources/index.ts
4388
4511
  * @suppress {checkTypes,constantProperty,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
4389
4512
  */
4390
4513
 
4391
4514
  /**
4392
4515
  * @fileoverview added by tsickle
4393
- * Generated from: lib/components/partial/node-tree/node-tree.component.ts
4394
4516
  * @suppress {checkTypes,constantProperty,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
4395
4517
  */
4396
4518
  class NodeTreeComponent {
@@ -4543,7 +4665,7 @@ class NodeTreeComponent {
4543
4665
  * @param {?} res
4544
4666
  * @return {?}
4545
4667
  */
4546
- (res) => of(res))))
4668
+ (res) => of$1(res))))
4547
4669
  .subscribe((/**
4548
4670
  * @return {?}
4549
4671
  */
@@ -4850,7 +4972,6 @@ if (false) {
4850
4972
 
4851
4973
  /**
4852
4974
  * @fileoverview added by tsickle
4853
- * Generated from: lib/components/partial/breadcrumb/breadcrumb.component.ts
4854
4975
  * @suppress {checkTypes,constantProperty,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
4855
4976
  */
4856
4977
  class BreadcrumbComponent {
@@ -4863,7 +4984,7 @@ class BreadcrumbComponent {
4863
4984
  this.nodeTreeService = nodeTreeService;
4864
4985
  this.svc = svc;
4865
4986
  this.changeDetectorRef = changeDetectorRef;
4866
- this.unsubscribe$ = new Subject();
4987
+ this.unsubscribe$ = new Subject$1();
4867
4988
  this.currentFolderHierarchy = [];
4868
4989
  this.maximumShownLevel = 3;
4869
4990
  this.bindSubscriber();
@@ -4964,7 +5085,6 @@ if (false) {
4964
5085
 
4965
5086
  /**
4966
5087
  * @fileoverview added by tsickle
4967
- * Generated from: lib/components/partial/search-box/search-box.component.ts
4968
5088
  * @suppress {checkTypes,constantProperty,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
4969
5089
  */
4970
5090
  class SearchBoxComponent {
@@ -4975,7 +5095,7 @@ class SearchBoxComponent {
4975
5095
  constructor(assetService, svc) {
4976
5096
  this.assetService = assetService;
4977
5097
  this.svc = svc;
4978
- this.destroy$ = new Subject();
5098
+ this.destroy$ = new Subject$1();
4979
5099
  this.value = '';
4980
5100
  this.folderId = '';
4981
5101
  this.bindingSubscriber();
@@ -5120,7 +5240,6 @@ if (false) {
5120
5240
 
5121
5241
  /**
5122
5242
  * @fileoverview added by tsickle
5123
- * Generated from: lib/components/partial/sort-items/sort-items.component.ts
5124
5243
  * @suppress {checkTypes,constantProperty,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
5125
5244
  */
5126
5245
  class SortItemsComponent {
@@ -5215,7 +5334,6 @@ if (false) {
5215
5334
 
5216
5335
  /**
5217
5336
  * @fileoverview added by tsickle
5218
- * Generated from: lib/components/partial/asset-wrapper/asset-wrapper.component.ts
5219
5337
  * @suppress {checkTypes,constantProperty,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
5220
5338
  */
5221
5339
  class AssetWrapperComponent {
@@ -5229,7 +5347,7 @@ class AssetWrapperComponent {
5229
5347
  this.hasAccessPermission = true;
5230
5348
  this.hasArchivePermission = true;
5231
5349
  this.assets = new EventEmitter();
5232
- this.unsubscribe$ = new Subject();
5350
+ this.unsubscribe$ = new Subject$1();
5233
5351
  this.nodeTreeMinWidth = 300;
5234
5352
  this.nodeTreeMaxWidth = 700;
5235
5353
  }
@@ -5326,7 +5444,6 @@ if (false) {
5326
5444
 
5327
5445
  /**
5328
5446
  * @fileoverview added by tsickle
5329
- * Generated from: lib/components/partial/node-details/node-details.component.ts
5330
5447
  * @suppress {checkTypes,constantProperty,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
5331
5448
  */
5332
5449
  class NodeDetailsComponent {
@@ -5346,9 +5463,9 @@ class NodeDetailsComponent {
5346
5463
  this.hasModifyPermission = true;
5347
5464
  this.hasAccessPermission = true;
5348
5465
  this.hasArchivePermission = true;
5349
- this.unsubscribe$ = new Subject();
5466
+ this.unsubscribe$ = new Subject$1();
5350
5467
  this.selectedAssets = [];
5351
- this.loading$ = new BehaviorSubject(false);
5468
+ this.loading$ = new BehaviorSubject$1(false);
5352
5469
  this.bindSubscriber();
5353
5470
  }
5354
5471
  /**
@@ -5392,7 +5509,7 @@ class NodeDetailsComponent {
5392
5509
  * @param {?} res
5393
5510
  * @return {?}
5394
5511
  */
5395
- (res) => of(res))))
5512
+ (res) => of$1(res))))
5396
5513
  .subscribe((/**
5397
5514
  * @param {?} globalLoading
5398
5515
  * @return {?}
@@ -5424,7 +5541,7 @@ class NodeDetailsComponent {
5424
5541
  * @param {?} res
5425
5542
  * @return {?}
5426
5543
  */
5427
- (res) => of(res))))
5544
+ (res) => of$1(res))))
5428
5545
  .subscribe((/**
5429
5546
  * @param {?} currentFolderId
5430
5547
  * @return {?}
@@ -5444,7 +5561,7 @@ class NodeDetailsComponent {
5444
5561
  * @param {?} res
5445
5562
  * @return {?}
5446
5563
  */
5447
- (res) => of(res))))
5564
+ (res) => of$1(res))))
5448
5565
  .subscribe((/**
5449
5566
  * @return {?}
5450
5567
  */
@@ -5463,7 +5580,7 @@ class NodeDetailsComponent {
5463
5580
  * @param {?} res
5464
5581
  * @return {?}
5465
5582
  */
5466
- (res) => of(res))))
5583
+ (res) => of$1(res))))
5467
5584
  .subscribe((/**
5468
5585
  * @return {?}
5469
5586
  */
@@ -5791,7 +5908,6 @@ if (false) {
5791
5908
 
5792
5909
  /**
5793
5910
  * @fileoverview added by tsickle
5794
- * Generated from: lib/components/ui/drag-to-resize/drag-to-resize.component.ts
5795
5911
  * @suppress {checkTypes,constantProperty,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
5796
5912
  */
5797
5913
  class DragToResizeComponent {
@@ -5887,7 +6003,6 @@ if (false) {
5887
6003
 
5888
6004
  /**
5889
6005
  * @fileoverview added by tsickle
5890
- * Generated from: lib/configs/admin.config.ts
5891
6006
  * @suppress {checkTypes,constantProperty,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
5892
6007
  */
5893
6008
  /** @type {?} */
@@ -5968,7 +6083,6 @@ const AdminConfig = {
5968
6083
 
5969
6084
  /**
5970
6085
  * @fileoverview added by tsickle
5971
- * Generated from: lib/pipes/datetime.pipe.ts
5972
6086
  * @suppress {checkTypes,constantProperty,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
5973
6087
  */
5974
6088
  /** @type {?} */
@@ -6045,7 +6159,6 @@ if (false) {
6045
6159
 
6046
6160
  /**
6047
6161
  * @fileoverview added by tsickle
6048
- * Generated from: lib/asset-management.module.ts
6049
6162
  * @suppress {checkTypes,constantProperty,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
6050
6163
  */
6051
6164
  // SERVICES
@@ -6085,6 +6198,16 @@ const COMPONENTS = [
6085
6198
  AssetWrapperComponent,
6086
6199
  AssetManagementDialogComponent,
6087
6200
  ];
6201
+ /** @type {?} */
6202
+ const ENTRY_COMPONENTS = [
6203
+ ModalComponent,
6204
+ UploadDialogComponent,
6205
+ AddFolderDialogComponent,
6206
+ EditFolderDialogComponent,
6207
+ DeleteDialogComponent,
6208
+ AssetDialogComponent,
6209
+ AssetManagementDialogComponent,
6210
+ ];
6088
6211
  /**
6089
6212
  * @param {?} config
6090
6213
  * @return {?}
@@ -6159,6 +6282,7 @@ AssetManagementModule.decorators = [
6159
6282
  multi: true,
6160
6283
  }
6161
6284
  ],
6285
+ entryComponents: [...ENTRY_COMPONENTS],
6162
6286
  },] }
6163
6287
  ];
6164
6288
  /** @nocollapse */
@@ -6166,15 +6290,13 @@ AssetManagementModule.ctorParameters = () => [];
6166
6290
 
6167
6291
  /**
6168
6292
  * @fileoverview added by tsickle
6169
- * Generated from: public-api.ts
6170
6293
  * @suppress {checkTypes,constantProperty,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
6171
6294
  */
6172
6295
 
6173
6296
  /**
6174
6297
  * @fileoverview added by tsickle
6175
- * Generated from: rs-pk-asset-management.ts
6176
6298
  * @suppress {checkTypes,constantProperty,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
6177
6299
  */
6178
6300
 
6179
- 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 };
6301
+ 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 };
6180
6302
  //# sourceMappingURL=rs-pk-asset-management.js.map