@rs-pk/asset-management 1.0.28 → 1.0.30

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 +286 -133
  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 +2 -1
  6. package/esm2015/lib/asset-management.module.js +2 -12
  7. package/esm2015/lib/asset-management.service.js +3 -2
  8. package/esm2015/lib/components/partial/add-folder-dialog/add-folder-dialog.component.js +2 -1
  9. package/esm2015/lib/components/partial/asset-dialog/asset-dialog.component.js +2 -1
  10. package/esm2015/lib/components/partial/asset-item/asset-item.component.js +7 -3
  11. package/esm2015/lib/components/partial/asset-list/asset-list.component.js +15 -7
  12. package/esm2015/lib/components/partial/asset-management-dialog/asset-management-dialog.component.js +4 -3
  13. package/esm2015/lib/components/partial/asset-wrapper/asset-wrapper.component.js +7 -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 +2 -1
  16. package/esm2015/lib/components/partial/edit-folder-dialog/edit-folder-dialog.component.js +2 -1
  17. package/esm2015/lib/components/partial/file-item/file-item.component.js +2 -1
  18. package/esm2015/lib/components/partial/file-list/file-list.component.js +3 -2
  19. package/esm2015/lib/components/partial/folder-item/folder-item.component.js +2 -1
  20. package/esm2015/lib/components/partial/folder-list/folder-list.component.js +4 -3
  21. package/esm2015/lib/components/partial/node-details/node-details.component.js +15 -8
  22. package/esm2015/lib/components/partial/node-tree/node-tree.component.js +44 -41
  23. package/esm2015/lib/components/partial/search-box/search-box.component.js +12 -8
  24. package/esm2015/lib/components/partial/sort-items/sort-items.component.js +2 -1
  25. package/esm2015/lib/components/partial/upload-dialog/upload-dialog.component.js +3 -2
  26. package/esm2015/lib/components/partial/upload-file/upload-file.component.js +2 -1
  27. package/esm2015/lib/components/ui/drag-to-resize/drag-to-resize.component.js +2 -1
  28. package/esm2015/lib/components/ui/input-file/input-file.component.js +2 -1
  29. package/esm2015/lib/components/ui/modal/modal.component.js +3 -2
  30. package/esm2015/lib/components/ui/search-not-found/search-not-found.component.js +2 -1
  31. package/esm2015/lib/configs/admin.config.js +72 -13
  32. package/esm2015/lib/contanst/data-image.js +2 -1
  33. package/esm2015/lib/contanst/index.js +2 -1
  34. package/esm2015/lib/datasources/index.js +2 -1
  35. package/esm2015/lib/datasources/node-tree.datasource.js +10 -8
  36. package/esm2015/lib/directives/dialogTrigger.directive.js +2 -1
  37. package/esm2015/lib/directives/directives.module.js +2 -1
  38. package/esm2015/lib/directives/dnd.directive.js +2 -1
  39. package/esm2015/lib/models/asset-file.model.js +2 -1
  40. package/esm2015/lib/models/asset.model.js +2 -1
  41. package/esm2015/lib/models/file-type.enum.js +4 -3
  42. package/esm2015/lib/models/file.model.js +2 -1
  43. package/esm2015/lib/models/index.js +2 -1
  44. package/esm2015/lib/models/node-tree.model.js +2 -1
  45. package/esm2015/lib/models/sort.enum.js +2 -1
  46. package/esm2015/lib/pipes/datetime.pipe.js +2 -1
  47. package/esm2015/lib/pipes/file-size.pipe.js +2 -1
  48. package/esm2015/lib/services/asset.service.js +8 -5
  49. package/esm2015/lib/services/base.service.js +2 -1
  50. package/esm2015/lib/services/env-config.service.js +2 -1
  51. package/esm2015/lib/services/file.service.js +2 -1
  52. package/esm2015/lib/services/index.js +2 -1
  53. package/esm2015/lib/services/node-tree.service.js +23 -18
  54. package/esm2015/lib/services/upload-assets.service.js +2 -1
  55. package/esm2015/lib/store/actions.action.js +11 -10
  56. package/esm2015/lib/store/index.js +2 -1
  57. package/esm2015/lib/store/reducer.js +11 -10
  58. package/esm2015/public-api.js +8 -1
  59. package/esm2015/rs-pk-asset-management.js +5 -10
  60. package/esm5/lib/asset-management.component.js +2 -1
  61. package/esm5/lib/asset-management.module.js +6 -16
  62. package/esm5/lib/asset-management.service.js +3 -2
  63. package/esm5/lib/components/partial/add-folder-dialog/add-folder-dialog.component.js +2 -1
  64. package/esm5/lib/components/partial/asset-dialog/asset-dialog.component.js +2 -1
  65. package/esm5/lib/components/partial/asset-item/asset-item.component.js +7 -3
  66. package/esm5/lib/components/partial/asset-list/asset-list.component.js +17 -9
  67. package/esm5/lib/components/partial/asset-management-dialog/asset-management-dialog.component.js +4 -3
  68. package/esm5/lib/components/partial/asset-wrapper/asset-wrapper.component.js +7 -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 +2 -1
  71. package/esm5/lib/components/partial/edit-folder-dialog/edit-folder-dialog.component.js +2 -1
  72. package/esm5/lib/components/partial/file-item/file-item.component.js +2 -1
  73. package/esm5/lib/components/partial/file-list/file-list.component.js +5 -4
  74. package/esm5/lib/components/partial/folder-item/folder-item.component.js +2 -1
  75. package/esm5/lib/components/partial/folder-list/folder-list.component.js +4 -3
  76. package/esm5/lib/components/partial/node-details/node-details.component.js +17 -10
  77. package/esm5/lib/components/partial/node-tree/node-tree.component.js +64 -52
  78. package/esm5/lib/components/partial/search-box/search-box.component.js +13 -9
  79. package/esm5/lib/components/partial/sort-items/sort-items.component.js +2 -1
  80. package/esm5/lib/components/partial/upload-dialog/upload-dialog.component.js +5 -4
  81. package/esm5/lib/components/partial/upload-file/upload-file.component.js +4 -3
  82. package/esm5/lib/components/ui/drag-to-resize/drag-to-resize.component.js +2 -1
  83. package/esm5/lib/components/ui/input-file/input-file.component.js +2 -1
  84. package/esm5/lib/components/ui/modal/modal.component.js +3 -2
  85. package/esm5/lib/components/ui/search-not-found/search-not-found.component.js +2 -1
  86. package/esm5/lib/configs/admin.config.js +72 -13
  87. package/esm5/lib/contanst/data-image.js +2 -1
  88. package/esm5/lib/contanst/index.js +2 -1
  89. package/esm5/lib/datasources/index.js +2 -1
  90. package/esm5/lib/datasources/node-tree.datasource.js +19 -14
  91. package/esm5/lib/directives/dialogTrigger.directive.js +2 -1
  92. package/esm5/lib/directives/directives.module.js +5 -4
  93. package/esm5/lib/directives/dnd.directive.js +2 -1
  94. package/esm5/lib/models/asset-file.model.js +2 -1
  95. package/esm5/lib/models/asset.model.js +4 -3
  96. package/esm5/lib/models/file-type.enum.js +4 -3
  97. package/esm5/lib/models/file.model.js +2 -1
  98. package/esm5/lib/models/index.js +2 -1
  99. package/esm5/lib/models/node-tree.model.js +2 -1
  100. package/esm5/lib/models/sort.enum.js +2 -1
  101. package/esm5/lib/pipes/datetime.pipe.js +2 -1
  102. package/esm5/lib/pipes/file-size.pipe.js +2 -1
  103. package/esm5/lib/services/asset.service.js +10 -5
  104. package/esm5/lib/services/base.service.js +4 -3
  105. package/esm5/lib/services/env-config.service.js +2 -1
  106. package/esm5/lib/services/file.service.js +2 -1
  107. package/esm5/lib/services/index.js +2 -1
  108. package/esm5/lib/services/node-tree.service.js +31 -24
  109. package/esm5/lib/services/upload-assets.service.js +4 -3
  110. package/esm5/lib/store/actions.action.js +11 -10
  111. package/esm5/lib/store/index.js +2 -1
  112. package/esm5/lib/store/reducer.js +12 -11
  113. package/esm5/public-api.js +8 -1
  114. package/esm5/rs-pk-asset-management.js +5 -10
  115. package/fesm2015/rs-pk-asset-management.js +257 -123
  116. package/fesm2015/rs-pk-asset-management.js.map +1 -1
  117. package/fesm5/rs-pk-asset-management.js +277 -127
  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 +2 -1
  123. package/lib/components/partial/asset-list/asset-list.component.d.ts +1 -0
  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 +2 -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 +3 -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 +4 -3
  131. package/lib/components/partial/node-tree/node-tree.component.d.ts +8 -8
  132. package/lib/components/partial/upload-dialog/upload-dialog.component.d.ts +1 -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 +3 -2
  136. package/lib/services/asset.service.d.ts +2 -2
  137. package/lib/services/node-tree.service.d.ts +8 -7
  138. package/lib/services/upload-assets.service.d.ts +4 -4
  139. package/package.json +10 -11
  140. package/public-api.d.ts +6 -0
  141. package/rs-pk-asset-management.d.ts +2 -8
  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 as MatPaginator$1, MatPaginatorModule } from '@angular/material/paginator';
11
+ import { MatPaginator, 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,19 +16,15 @@ 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, merge, of as of$1 } from 'rxjs';
20
- import { BehaviorSubject as BehaviorSubject$1 } from 'rxjs/internal/BehaviorSubject';
19
+ import { BehaviorSubject, Subject, of, merge, combineLatest } from 'rxjs';
21
20
  import { map, distinctUntilChanged, takeUntil, switchMap } from 'rxjs/operators';
22
- import { Subject as Subject$1 } from 'rxjs/internal/Subject';
23
21
  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';
26
22
  import { FlatTreeControl } from '@angular/cdk/tree';
27
- import { combineLatest } from 'rxjs/internal/observable/combineLatest';
28
23
  import * as moment_ from 'moment';
29
24
 
30
25
  /**
31
26
  * @fileoverview added by tsickle
27
+ * Generated from: lib/models/asset.model.ts
32
28
  * @suppress {checkTypes,constantProperty,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
33
29
  */
34
30
  /**
@@ -207,6 +203,7 @@ var ROOT_ASSET_ID = 'ROOT';
207
203
 
208
204
  /**
209
205
  * @fileoverview added by tsickle
206
+ * Generated from: lib/models/asset-file.model.ts
210
207
  * @suppress {checkTypes,constantProperty,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
211
208
  */
212
209
  var AssetFileUploadModel = /** @class */ (function () {
@@ -273,6 +270,7 @@ if (false) {
273
270
 
274
271
  /**
275
272
  * @fileoverview added by tsickle
273
+ * Generated from: lib/models/file.model.ts
276
274
  * @suppress {checkTypes,constantProperty,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
277
275
  */
278
276
  /**
@@ -370,6 +368,7 @@ if (false) {
370
368
 
371
369
  /**
372
370
  * @fileoverview added by tsickle
371
+ * Generated from: lib/models/node-tree.model.ts
373
372
  * @suppress {checkTypes,constantProperty,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
374
373
  */
375
374
  /**
@@ -403,16 +402,18 @@ if (false) {
403
402
 
404
403
  /**
405
404
  * @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
416
417
  * @suppress {checkTypes,constantProperty,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
417
418
  */
418
419
  /** @enum {number} */
@@ -434,11 +435,13 @@ TypeSort[TypeSort.ASC] = 'ASC';
434
435
 
435
436
  /**
436
437
  * @fileoverview added by tsickle
438
+ * Generated from: lib/models/index.ts
437
439
  * @suppress {checkTypes,constantProperty,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
438
440
  */
439
441
 
440
442
  /**
441
443
  * @fileoverview added by tsickle
444
+ * Generated from: lib/services/env-config.service.ts
442
445
  * @suppress {checkTypes,constantProperty,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
443
446
  */
444
447
  /**
@@ -458,6 +461,7 @@ var AM_CONFIG = new InjectionToken('asset.man.config.angular');
458
461
 
459
462
  /**
460
463
  * @fileoverview added by tsickle
464
+ * Generated from: lib/services/base.service.ts
461
465
  * @suppress {checkTypes,constantProperty,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
462
466
  */
463
467
  var BaseHttpClient = /** @class */ (function (_super) {
@@ -510,6 +514,7 @@ if (false) {
510
514
 
511
515
  /**
512
516
  * @fileoverview added by tsickle
517
+ * Generated from: lib/services/asset.service.ts
513
518
  * @suppress {checkTypes,constantProperty,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
514
519
  */
515
520
  var AssetService = /** @class */ (function () {
@@ -613,15 +618,17 @@ var AssetService = /** @class */ (function () {
613
618
  /**
614
619
  * @param {?} assets
615
620
  * @param {?=} pagination
621
+ * @param {?=} totalFile
616
622
  * @return {?}
617
623
  */
618
624
  AssetService.prototype.setAssetList = /**
619
625
  * @param {?} assets
620
626
  * @param {?=} pagination
627
+ * @param {?=} totalFile
621
628
  * @return {?}
622
629
  */
623
- function (assets, pagination) {
624
- this.setPagination(pagination);
630
+ function (assets, pagination, totalFile) {
631
+ this.setPagination(pagination, totalFile);
625
632
  this.assetList$.next(assets);
626
633
  };
627
634
  /**
@@ -647,16 +654,18 @@ var AssetService = /** @class */ (function () {
647
654
  /**
648
655
  * @private
649
656
  * @param {?} pagination
657
+ * @param {?} totalFile
650
658
  * @return {?}
651
659
  */
652
660
  AssetService.prototype.setPagination = /**
653
661
  * @private
654
662
  * @param {?} pagination
663
+ * @param {?} totalFile
655
664
  * @return {?}
656
665
  */
657
- function (pagination) {
666
+ function (pagination, totalFile) {
658
667
  if (pagination) {
659
- this.fileTotal = pagination.Total;
668
+ this.fileTotal = totalFile || 0;
660
669
  this.pageIndex = pagination.PageIndex;
661
670
  this.pageSize = pagination.PageSize;
662
671
  }
@@ -834,6 +843,7 @@ if (false) {
834
843
 
835
844
  /**
836
845
  * @fileoverview added by tsickle
846
+ * Generated from: lib/asset-management.service.ts
837
847
  * @suppress {checkTypes,constantProperty,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
838
848
  */
839
849
  /** @type {?} */
@@ -871,7 +881,7 @@ var AssetManagementService = /** @class */ (function () {
871
881
  ];
872
882
  /** @nocollapse */
873
883
  AssetManagementService.ctorParameters = function () { return []; };
874
- /** @nocollapse */ AssetManagementService.ngInjectableDef = ɵɵdefineInjectable({ factory: function AssetManagementService_Factory() { return new AssetManagementService(); }, token: AssetManagementService, providedIn: "root" });
884
+ /** @nocollapse */ AssetManagementService.ɵprov = ɵɵdefineInjectable({ factory: function AssetManagementService_Factory() { return new AssetManagementService(); }, token: AssetManagementService, providedIn: "root" });
875
885
  return AssetManagementService;
876
886
  }());
877
887
  if (false) {
@@ -884,6 +894,7 @@ if (false) {
884
894
 
885
895
  /**
886
896
  * @fileoverview added by tsickle
897
+ * Generated from: lib/store/actions.action.ts
887
898
  * @suppress {checkTypes,constantProperty,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
888
899
  */
889
900
  /**
@@ -899,18 +910,18 @@ if (false) {
899
910
  /** @enum {string} */
900
911
  var ActionTypes = {
901
912
  // global loading
902
- SET_GLOBAL_LOADING: '[LOADING] Set global loading state',
913
+ SET_GLOBAL_LOADING: "[LOADING] Set global loading state",
903
914
  // asset area
904
- SET_SELECTED_ASSETS: '[ASSET] Set selected assets',
905
- RELOAD_CURRENT_ASSETS: '[ASSET] reload current asset list ',
906
- DELETE_ASSET: '[ASSET] delete an asset ',
915
+ SET_SELECTED_ASSETS: "[ASSET] Set selected assets",
916
+ RELOAD_CURRENT_ASSETS: "[ASSET] reload current asset list ",
917
+ DELETE_ASSET: "[ASSET] delete an asset ",
907
918
  // folder area
908
- SET_CURRENT_FOLDER_ID: '[FOLDER] get current folder id',
909
- SET_CURRENT_FOLDER: '[FOLDER] set current folder ',
910
- RELOAD_CURRENT_FOLDER: '[FOLDER] reload current folder ',
911
- SET_CURRENT_FOLDER_HIERARCHY: '[FOLDER] set current folder hierarchy ',
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
923
  // node area
913
- RELOAD_CURRENT_NODE: '[NODE] reload current node ',
924
+ RELOAD_CURRENT_NODE: "[NODE] reload current node ",
914
925
  };
915
926
  var SetGlobalLoading = /** @class */ (function () {
916
927
  function SetGlobalLoading() {
@@ -1017,6 +1028,7 @@ if (false) {
1017
1028
 
1018
1029
  /**
1019
1030
  * @fileoverview added by tsickle
1031
+ * Generated from: lib/store/reducer.ts
1020
1032
  * @suppress {checkTypes,constantProperty,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
1021
1033
  */
1022
1034
  /**
@@ -1074,39 +1086,39 @@ function (dispatcher) {
1074
1086
  function (action) {
1075
1087
  switch (action.type) {
1076
1088
  case ActionTypes.SET_SELECTED_ASSETS:
1077
- state = __assign({}, state, { selectedAssets: action.payload });
1089
+ state = __assign(__assign({}, state), { selectedAssets: action.payload });
1078
1090
  store.next(state);
1079
1091
  break;
1080
1092
  case ActionTypes.SET_GLOBAL_LOADING:
1081
- state = __assign({}, state, { globalLoading: action.payload });
1093
+ state = __assign(__assign({}, state), { globalLoading: action.payload });
1082
1094
  store.next(state);
1083
1095
  break;
1084
1096
  case ActionTypes.SET_CURRENT_FOLDER:
1085
- state = __assign({}, state, { currentFolder: __assign({}, action.payload) });
1097
+ state = __assign(__assign({}, state), { currentFolder: __assign({}, action.payload) });
1086
1098
  store.next(state);
1087
1099
  break;
1088
1100
  case ActionTypes.RELOAD_CURRENT_FOLDER:
1089
- state = __assign({}, state, { reloadCurrentFolder: !state.reloadCurrentFolder });
1101
+ state = __assign(__assign({}, state), { reloadCurrentFolder: !state.reloadCurrentFolder });
1090
1102
  store.next(state);
1091
1103
  break;
1092
1104
  case ActionTypes.RELOAD_CURRENT_ASSETS:
1093
- state = __assign({}, state, { reloadCurrentAssets: !state.reloadCurrentAssets });
1105
+ state = __assign(__assign({}, state), { reloadCurrentAssets: !state.reloadCurrentAssets });
1094
1106
  store.next(state);
1095
1107
  break;
1096
1108
  case ActionTypes.RELOAD_CURRENT_NODE:
1097
- state = __assign({}, state, { reloadCurrentNode: !state.reloadCurrentNode });
1109
+ state = __assign(__assign({}, state), { reloadCurrentNode: !state.reloadCurrentNode });
1098
1110
  store.next(state);
1099
1111
  break;
1100
1112
  case ActionTypes.SET_CURRENT_FOLDER_HIERARCHY:
1101
- state = __assign({}, state, { currentFolderHierarchy: __spread(action.payload) });
1113
+ state = __assign(__assign({}, state), { currentFolderHierarchy: __spread(action.payload) });
1102
1114
  store.next(state);
1103
1115
  break;
1104
1116
  case ActionTypes.SET_CURRENT_FOLDER_ID:
1105
- state = __assign({}, state, { currentFolderId: action.payload });
1117
+ state = __assign(__assign({}, state), { currentFolderId: action.payload });
1106
1118
  store.next(state);
1107
1119
  break;
1108
1120
  case ActionTypes.DELETE_ASSET:
1109
- state = __assign({}, state, { deletedAssetId: action.payload });
1121
+ state = __assign(__assign({}, state), { deletedAssetId: action.payload });
1110
1122
  store.next(state);
1111
1123
  break;
1112
1124
  default:
@@ -1129,20 +1141,22 @@ function (mapFn) {
1129
1141
 
1130
1142
  /**
1131
1143
  * @fileoverview added by tsickle
1144
+ * Generated from: lib/store/index.ts
1132
1145
  * @suppress {checkTypes,constantProperty,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
1133
1146
  */
1134
1147
 
1135
1148
  /**
1136
1149
  * @fileoverview added by tsickle
1150
+ * Generated from: lib/services/node-tree.service.ts
1137
1151
  * @suppress {checkTypes,constantProperty,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
1138
1152
  */
1139
1153
  var NodeTreeService = /** @class */ (function () {
1140
1154
  function NodeTreeService(assetService, svc) {
1141
1155
  this.assetService = assetService;
1142
1156
  this.svc = svc;
1143
- this.storedData$ = new BehaviorSubject$1([]);
1144
- this.loading$ = new BehaviorSubject$1(false);
1145
- this.initialData$ = new BehaviorSubject$1([]);
1157
+ this.storedData$ = new BehaviorSubject([]);
1158
+ this.loading$ = new BehaviorSubject(false);
1159
+ this.initialData$ = new BehaviorSubject([]);
1146
1160
  }
1147
1161
  Object.defineProperty(NodeTreeService.prototype, "data", {
1148
1162
  get: /**
@@ -1164,21 +1178,25 @@ var NodeTreeService = /** @class */ (function () {
1164
1178
  /**
1165
1179
  * @private
1166
1180
  * @param {?} id
1181
+ * @param {?=} pageSize
1167
1182
  * @return {?}
1168
1183
  */
1169
1184
  NodeTreeService.prototype.fetchChildrenFolder = /**
1170
1185
  * @private
1171
1186
  * @param {?} id
1187
+ * @param {?=} pageSize
1172
1188
  * @return {?}
1173
1189
  */
1174
- function (id) {
1190
+ function (id, pageSize) {
1175
1191
  return __awaiter(this, void 0, void 0, function () {
1176
1192
  var result, err_1;
1177
1193
  return __generator(this, function (_a) {
1178
1194
  switch (_a.label) {
1179
1195
  case 0:
1180
1196
  _a.trys.push([0, 2, , 3]);
1181
- return [4 /*yield*/, this.assetService.getChildrenFolders({ assetId: id, isFilter: false }).toPromise()];
1197
+ return [4 /*yield*/, this.assetService
1198
+ .getChildrenFolders({ assetId: id, isFilter: false, pageSize: pageSize || this.assetService.AMConfig.pageFolderSize || MAX_FOLDER_TREE_SIZE })
1199
+ .toPromise()];
1182
1200
  case 1:
1183
1201
  result = _a.sent();
1184
1202
  if (result) {
@@ -1262,17 +1280,19 @@ var NodeTreeService = /** @class */ (function () {
1262
1280
  };
1263
1281
  /**
1264
1282
  * @param {?} node
1283
+ * @param {?=} pageSize
1265
1284
  * @return {?}
1266
1285
  */
1267
1286
  NodeTreeService.prototype.getChildren = /**
1268
1287
  * @param {?} node
1288
+ * @param {?=} pageSize
1269
1289
  * @return {?}
1270
1290
  */
1271
- function (node) {
1291
+ function (node, pageSize) {
1272
1292
  return __awaiter(this, void 0, void 0, function () {
1273
1293
  return __generator(this, function (_a) {
1274
1294
  switch (_a.label) {
1275
- case 0: return [4 /*yield*/, this.fetchChildrenFolder(node.AssetId)];
1295
+ case 0: return [4 /*yield*/, this.fetchChildrenFolder(node.AssetId, pageSize)];
1276
1296
  case 1: return [2 /*return*/, _a.sent()];
1277
1297
  }
1278
1298
  });
@@ -1312,7 +1332,7 @@ var NodeTreeService = /** @class */ (function () {
1312
1332
  */
1313
1333
  function (node) { return node.AssetId === asset.AssetId; }));
1314
1334
  if (index < 0) {
1315
- data = __spread(data, [__assign({}, asset, { ParentId: parentId ? parentId : null })]);
1335
+ data = __spread(data, [__assign(__assign({}, asset), { ParentId: parentId ? parentId : null })]);
1316
1336
  }
1317
1337
  this.data = data;
1318
1338
  };
@@ -1418,6 +1438,7 @@ if (false) {
1418
1438
 
1419
1439
  /**
1420
1440
  * @fileoverview added by tsickle
1441
+ * Generated from: lib/services/upload-assets.service.ts
1421
1442
  * @suppress {checkTypes,constantProperty,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
1422
1443
  */
1423
1444
  var UploadAssetsService = /** @class */ (function () {
@@ -1618,6 +1639,7 @@ if (false) {
1618
1639
 
1619
1640
  /**
1620
1641
  * @fileoverview added by tsickle
1642
+ * Generated from: lib/services/file.service.ts
1621
1643
  * @suppress {checkTypes,constantProperty,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
1622
1644
  */
1623
1645
  var FileService = /** @class */ (function () {
@@ -1740,11 +1762,13 @@ if (false) {
1740
1762
 
1741
1763
  /**
1742
1764
  * @fileoverview added by tsickle
1765
+ * Generated from: lib/services/index.ts
1743
1766
  * @suppress {checkTypes,constantProperty,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
1744
1767
  */
1745
1768
 
1746
1769
  /**
1747
1770
  * @fileoverview added by tsickle
1771
+ * Generated from: lib/components/partial/asset-management-dialog/asset-management-dialog.component.ts
1748
1772
  * @suppress {checkTypes,constantProperty,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
1749
1773
  */
1750
1774
  var AssetManagementDialogComponent = /** @class */ (function () {
@@ -1752,7 +1776,7 @@ var AssetManagementDialogComponent = /** @class */ (function () {
1752
1776
  this.data = data;
1753
1777
  this.dialogRef = dialogRef;
1754
1778
  this.assetService = assetService;
1755
- this.destroy$ = new Subject$1();
1779
+ this.destroy$ = new Subject();
1756
1780
  this.selectedAssets = [];
1757
1781
  }
1758
1782
  /**
@@ -1828,7 +1852,7 @@ var AssetManagementDialogComponent = /** @class */ (function () {
1828
1852
  AssetManagementDialogComponent.decorators = [
1829
1853
  { type: Component, args: [{
1830
1854
  selector: 'lib-asset-management-dialog',
1831
- template: "<lib-modal heading=\"Asset management\" [customHeader]=\"true\">\n <ng-container subtitle>\n <lib-breadcrumb></lib-breadcrumb>\n </ng-container>\n <ng-container headerActions>\n <lib-search-box></lib-search-box>\n </ng-container>\n <ng-container content>\n <lib-asset-wrapper \n [header]=\"false\"\n [hasModifyPermission]=\"data.permission.modify\"\n [hasAccessPermission]=\"data.permission.access\"\n [hasArchivePermission]=\"data.permission.archive\"\n ></lib-asset-wrapper>\n </ng-container>\n <ng-container actions>\n <div class=\"asset-management-dialog__footer\">\n <div class=\"selected-assets\">\n <ng-container *ngIf=\"data?.limit\">\n <span>Selected{{' '}}</span>\n <span class=\"count\" [ngClass]=\"{'error': selectedAssets?.length && disabled}\">\n {{selectedAssets?.length}}/{{data?.limit}}\n </span>\n <span>\n {{data?.limit > 1 ? \"assets\": \"asset\"}}\n </span>\n </ng-container>\n\n </div>\n <div>\n <button mat-raised-button mat-dialog-close>Cancel</button>\n <button mat-raised-button color=\"primary\" (click)=\"selectAssets()\" [disabled]=\"disabled\">Done</button>\n </div>\n </div>\n </ng-container>\n</lib-modal>",
1855
+ template: "<lib-modal heading=\"Asset management\" [customHeader]=\"true\">\n <ng-container subtitle>\n <lib-breadcrumb></lib-breadcrumb>\n </ng-container>\n <ng-container headerActions>\n <lib-search-box></lib-search-box>\n </ng-container>\n <ng-container content>\n <lib-asset-wrapper\n [header]=\"false\"\n [isDialog]=\"true\"\n [hasModifyPermission]=\"data.permission.modify\"\n [hasAccessPermission]=\"data.permission.access\"\n [hasArchivePermission]=\"data.permission.archive\"\n ></lib-asset-wrapper>\n </ng-container>\n <ng-container actions>\n <div class=\"asset-management-dialog__footer\">\n <div class=\"selected-assets\">\n <ng-container *ngIf=\"data?.limit\">\n <span>Selected{{' '}}</span>\n <span class=\"count\" [ngClass]=\"{'error': selectedAssets?.length && disabled}\">\n {{selectedAssets?.length}}/{{data?.limit}}\n </span>\n <span>\n {{data?.limit > 1 ? \"assets\": \"asset\"}}\n </span>\n </ng-container>\n </div>\n <div>\n <button mat-raised-button mat-dialog-close>Cancel</button>\n <button mat-raised-button color=\"primary\" (click)=\"selectAssets()\" [disabled]=\"disabled\">Done</button>\n </div>\n </div>\n </ng-container>\n</lib-modal>",
1832
1856
  styles: [":host::ng-deep .asset-management-dialog__footer{display:flex;width:100%;align-items:center;justify-content:space-between}:host::ng-deep .asset-management-dialog__footer .selected-assets{font-size:14px;color:#979797}:host::ng-deep .asset-management-dialog__footer .selected-assets .count{color:#000}:host::ng-deep .asset-management-dialog__footer .selected-assets .error{color:#f44336}"]
1833
1857
  }] }
1834
1858
  ];
@@ -1861,6 +1885,7 @@ if (false) {
1861
1885
 
1862
1886
  /**
1863
1887
  * @fileoverview added by tsickle
1888
+ * Generated from: lib/asset-management.component.ts
1864
1889
  * @suppress {checkTypes,constantProperty,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
1865
1890
  */
1866
1891
  var AssetManagementComponent = /** @class */ (function () {
@@ -2036,6 +2061,7 @@ if (false) {
2036
2061
 
2037
2062
  /**
2038
2063
  * @fileoverview added by tsickle
2064
+ * Generated from: lib/directives/dialogTrigger.directive.ts
2039
2065
  * @suppress {checkTypes,constantProperty,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
2040
2066
  */
2041
2067
  var DialogTriggerDirective = /** @class */ (function () {
@@ -2086,6 +2112,7 @@ if (false) {
2086
2112
 
2087
2113
  /**
2088
2114
  * @fileoverview added by tsickle
2115
+ * Generated from: lib/directives/dnd.directive.ts
2089
2116
  * @suppress {checkTypes,constantProperty,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
2090
2117
  */
2091
2118
  var DndDirective = /** @class */ (function () {
@@ -2164,6 +2191,7 @@ if (false) {
2164
2191
 
2165
2192
  /**
2166
2193
  * @fileoverview added by tsickle
2194
+ * Generated from: lib/directives/directives.module.ts
2167
2195
  * @suppress {checkTypes,constantProperty,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
2168
2196
  */
2169
2197
  /** @type {?} */
@@ -2183,6 +2211,7 @@ var DirectivesModule = /** @class */ (function () {
2183
2211
 
2184
2212
  /**
2185
2213
  * @fileoverview added by tsickle
2214
+ * Generated from: lib/components/ui/input-file/input-file.component.ts
2186
2215
  * @suppress {checkTypes,constantProperty,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
2187
2216
  */
2188
2217
  var InputFileComponent = /** @class */ (function () {
@@ -2236,6 +2265,7 @@ if (false) {
2236
2265
 
2237
2266
  /**
2238
2267
  * @fileoverview added by tsickle
2268
+ * Generated from: lib/components/ui/modal/modal.component.ts
2239
2269
  * @suppress {checkTypes,constantProperty,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
2240
2270
  */
2241
2271
  var ModalComponent = /** @class */ (function () {
@@ -2253,7 +2283,7 @@ var ModalComponent = /** @class */ (function () {
2253
2283
  { type: Component, args: [{
2254
2284
  selector: 'lib-modal',
2255
2285
  template: "<h4 mat-dialog-title *ngIf=\"!customHeader; else customHeaderTemplate\">\n <div class=\"lib-modal--title\" [title]=\"heading\">\n {{ heading }}\n </div>\n <div class=\"lib-modal--close\">\n <mat-icon mat-dialog-close>close</mat-icon>\n </div>\n</h4>\n<ng-template #customHeaderTemplate>\n <h4 mat-dialog-title>\n <div class=\"lib-modal--custom-title\">\n <span>\n {{ heading }}\n </span>\n <div class=\"lib-modal--custom-subtitle\">\n <ng-content select=\"[subtitle]\"></ng-content>\n </div>\n </div>\n <div class=\"lib-modal--header-actions\">\n <ng-content select=\"[headerActions]\"></ng-content>\n </div>\n <mat-icon mat-dialog-close class=\"mat-dialog-close\">close</mat-icon>\n </h4>\n</ng-template>\n<mat-dialog-content class=\"custom-scrollbar\">\n <ng-content select=\"[content]\"></ng-content>\n</mat-dialog-content>\n<mat-dialog-actions>\n <ng-content select=\"[actions]\"></ng-content>\n</mat-dialog-actions>\n",
2256
- styles: [":host::ng-deep{display:flex;flex-direction:column;min-height:150px;position:relative}:host::ng-deep .mat-dialog-title{padding-bottom:24px;margin:0;display:flex;justify-content:space-between;font-size:24px;line-height:1;gap:10px}:host::ng-deep .mat-dialog-title mat-icon{cursor:pointer}:host::ng-deep .lib-modal--custom-title,:host::ng-deep .lib-modal--title{white-space:nowrap;overflow:hidden;text-overflow:ellipsis}:host::ng-deep .lib-modal--custom-subtitle{margin-top:5px}:host::ng-deep .lib-modal--header-actions{display:flex;align-items:center;gap:10px}:host::ng-deep mat-dialog-content{flex:1;padding:0 24px}:host::ng-deep mat-dialog-actions{padding-top:24px;padding-bottom:0;display:flex;justify-content:flex-end;min-height:auto;margin-bottom:0}:host::ng-deep mat-dialog-actions .mat-button-base+.mat-button-base{margin-left:20px}:host::ng-deep .mat-error{margin-top:5px;font-size:14px}:host::ng-deep .no-wrap{white-space:nowrap}:host::ng-deep input,:host::ng-deep textarea{width:100%;padding:10px;border:1px solid #d8d8d8;border-radius:5px;color:#000;margin-top:0;resize:none}::ng-deep .lib-dialog--small{width:400px!important}::ng-deep .lib-dialog--small .file__name{word-break:break-word}::ng-deep .lib-dialog--small .mat-button-base{min-width:70px}::ng-deep .lib-dialog--small .loading{padding:0 5px}::ng-deep .lib-dialog--small .loading .mat-button-wrapper{display:flex;width:100%;justify-content:center;align-items:center}::ng-deep .lib-dialog--small .loading .mat-spinner{margin-right:10px}::ng-deep .lib-dialog--medium{max-width:1200px!important;width:90%!important}::ng-deep .lib-dialog--medium .mat-dialog-content{border-top:1px solid #d8d8d8;border-bottom:1px solid #d8d8d8;overflow-x:hidden}::ng-deep .lib-dialog--large{max-width:1200px!important;width:90vw!important}::ng-deep .lib-dialog--large .mat-dialog-title{padding-bottom:12px;position:relative}::ng-deep .lib-dialog--large .mat-dialog-title .mat-dialog-close{position:absolute;right:-22px;top:-22px}::ng-deep .lib-dialog--large .mat-dialog-content{min-height:70vh;border-top:1px solid #d8d8d8;border-bottom:1px solid #d8d8d8;padding:0}::ng-deep .lib-dialog--large .mat-dialog-content .asset-wrapper .asset-body{max-height:calc(70vh - 2px)!important}::ng-deep .lib-dialog--large .mat-dialog-content .asset-wrapper .asset-body .node-tree{height:calc(70vh - 2px)!important}::ng-deep .lib-dialog--large .mat-dialog-content .asset-wrapper .asset-body .asset-list__item{min-width:25%!important}@media only screen and (max-width:768px){::ng-deep .lib-dialog--large .mat-dialog-content .asset-wrapper .asset-body{max-height:none!important}::ng-deep .lib-dialog--large .mat-dialog-content .asset-wrapper .asset-body .node-tree{height:-webkit-max-content!important;height:-moz-max-content!important;height:max-content!important}}::ng-deep .lib-dialog--large .mat-dialog-actions{padding:12px 0;margin-bottom:-24px!important}"]
2286
+ styles: [":host::ng-deep{display:flex;flex-direction:column;min-height:150px;position:relative}:host::ng-deep .mat-dialog-title{padding-bottom:24px;margin:0;display:flex;justify-content:space-between;font-size:24px;line-height:1;gap:10px}:host::ng-deep .mat-dialog-title mat-icon{cursor:pointer}:host::ng-deep .lib-modal--custom-title,:host::ng-deep .lib-modal--title{white-space:nowrap;overflow:hidden;text-overflow:ellipsis}:host::ng-deep .lib-modal--custom-subtitle{margin-top:5px}:host::ng-deep .lib-modal--header-actions{display:flex;align-items:center;gap:10px}:host::ng-deep mat-dialog-content{flex:1;padding:0 24px}:host::ng-deep mat-dialog-actions{padding-top:24px;padding-bottom:0;display:flex;justify-content:flex-end;min-height:auto;margin-bottom:0}:host::ng-deep mat-dialog-actions .mat-button-base+.mat-button-base{margin-left:20px}:host::ng-deep .mat-error{margin-top:5px;font-size:14px}:host::ng-deep .no-wrap{white-space:nowrap}:host::ng-deep input,:host::ng-deep textarea{width:100%;padding:10px;border:1px solid #d8d8d8;border-radius:5px;color:#000;margin-top:0;resize:none}::ng-deep .lib-dialog--small{width:400px!important}::ng-deep .lib-dialog--small .file__name{word-break:break-word}::ng-deep .lib-dialog--small .mat-button-base{min-width:70px}::ng-deep .lib-dialog--small .loading{padding:0 5px}::ng-deep .lib-dialog--small .loading .mat-button-wrapper{display:flex;width:100%;justify-content:center;align-items:center}::ng-deep .lib-dialog--small .loading .mat-spinner{margin-right:10px}::ng-deep .lib-dialog--medium{max-width:1200px!important;width:90%!important}::ng-deep .lib-dialog--medium .mat-dialog-content{border-top:1px solid #d8d8d8;border-bottom:1px solid #d8d8d8;overflow-x:hidden}::ng-deep .lib-dialog--large{max-width:1200px!important;width:90vw!important}::ng-deep .lib-dialog--large .mat-dialog-title{padding-bottom:12px;position:relative}::ng-deep .lib-dialog--large .mat-dialog-title .mat-dialog-close{position:absolute;right:-22px;top:-22px}::ng-deep .lib-dialog--large .mat-dialog-content{min-height:70vh;border-top:1px solid #d8d8d8;border-bottom:1px solid #d8d8d8;padding:0}::ng-deep .lib-dialog--large .mat-dialog-content .asset-wrapper .asset-body{max-height:calc(70vh - 2px)!important}::ng-deep .lib-dialog--large .mat-dialog-content .asset-wrapper .asset-body .node-tree{height:calc(70vh - 2px)!important}::ng-deep .lib-dialog--large .mat-dialog-content .asset-wrapper .asset-body .asset-list__item{min-width:25%!important}@media only screen and (max-width:768px){::ng-deep .lib-dialog--large .mat-dialog-content .asset-wrapper .asset-body{max-height:none!important}::ng-deep .lib-dialog--large .mat-dialog-content .asset-wrapper .asset-body .node-tree{height:-moz-max-content!important;height:max-content!important}}::ng-deep .lib-dialog--large .mat-dialog-actions{padding:12px 0;margin-bottom:-24px!important}"]
2257
2287
  }] }
2258
2288
  ];
2259
2289
  /** @nocollapse */
@@ -2273,6 +2303,7 @@ if (false) {
2273
2303
 
2274
2304
  /**
2275
2305
  * @fileoverview added by tsickle
2306
+ * Generated from: lib/contanst/data-image.ts
2276
2307
  * @suppress {checkTypes,constantProperty,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
2277
2308
  */
2278
2309
  // tslint:disable:max-line-length
@@ -2293,11 +2324,13 @@ var fileDefault = "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAgAAAAIACAMAAAD
2293
2324
 
2294
2325
  /**
2295
2326
  * @fileoverview added by tsickle
2327
+ * Generated from: lib/contanst/index.ts
2296
2328
  * @suppress {checkTypes,constantProperty,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
2297
2329
  */
2298
2330
 
2299
2331
  /**
2300
2332
  * @fileoverview added by tsickle
2333
+ * Generated from: lib/components/ui/search-not-found/search-not-found.component.ts
2301
2334
  * @suppress {checkTypes,constantProperty,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
2302
2335
  */
2303
2336
  var SearchNotFoundComponent = /** @class */ (function () {
@@ -2337,6 +2370,7 @@ if (false) {
2337
2370
 
2338
2371
  /**
2339
2372
  * @fileoverview added by tsickle
2373
+ * Generated from: lib/components/partial/file-item/file-item.component.ts
2340
2374
  * @suppress {checkTypes,constantProperty,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
2341
2375
  */
2342
2376
  var FileItemComponent = /** @class */ (function () {
@@ -2538,6 +2572,7 @@ if (false) {
2538
2572
 
2539
2573
  /**
2540
2574
  * @fileoverview added by tsickle
2575
+ * Generated from: lib/components/partial/file-list/file-list.component.ts
2541
2576
  * @suppress {checkTypes,constantProperty,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
2542
2577
  */
2543
2578
  var FileListComponent = /** @class */ (function () {
@@ -2606,7 +2641,7 @@ var FileListComponent = /** @class */ (function () {
2606
2641
  { type: Component, args: [{
2607
2642
  selector: 'lib-file-list',
2608
2643
  template: "<div class=\"file-list__heading\">\n <div class=\"file-list__info\">\n <h4 class=\"file-list__info--title\">\n <span *ngIf=\"!uploadAssetsService.errorLength\">\n {{\n uploadAssetsService?.getFiles?.length -\n uploadAssetsService.errorLength\n }}\n {{ uploadAssetsService?.getFiles?.length > 1 ? 'assets' : 'asset' }}\n ready to upload\n </span>\n <span *ngIf=\"uploadAssetsService.errorLength\">\n {{ uploadAssetsService.errorLength }}\n {{ uploadAssetsService.errorLength > 1 ? 'assets' : 'asset' }}\n invalid, please remove it before upload</span\n >\n </h4>\n <div class=\"file-list__info--desc\">\n Manage the assets before adding them to the Media Library\n </div>\n </div>\n <lib-input-file\n [acceptTypes]=\"uploadAssetsService?.supportedTypes?.join(', ')\"\n (onFileChange)=\"onFileChange($event)\"\n color=\"primary\"\n >\n <span>Add new assets</span>\n </lib-input-file>\n</div>\n<div class=\"file-list\">\n <lib-file-item\n *ngFor=\"let file of uploadAssetsService?.getFiles; let i = index\"\n [file]=\"file\"\n (checkError)=\"onEmitError()\"\n (fileRemove)=\"onDelFile(i)\"\n (fileChange)=\"onChangeName($event, i)\"\n ></lib-file-item>\n</div>\n",
2609
- styles: [":host::ng-deep .file-list{padding-top:15px}:host::ng-deep .file-list__heading{display:flex;justify-content:space-between;align-items:center;padding-top:15px;padding-bottom:15px;position:-webkit-sticky;position:sticky;top:0;background-color:#fff}:host::ng-deep .file-list__info--title{font-size:16px;margin-bottom:5px;color:#000}:host::ng-deep lib-file-item{margin-bottom:20px}"]
2644
+ styles: [":host::ng-deep .file-list{padding-top:15px}:host::ng-deep .file-list__heading{display:flex;justify-content:space-between;align-items:center;padding-top:15px;padding-bottom:15px;position:sticky;top:0;background-color:#fff}:host::ng-deep .file-list__info--title{font-size:16px;margin-bottom:5px;color:#000}:host::ng-deep lib-file-item{margin-bottom:20px}"]
2610
2645
  }] }
2611
2646
  ];
2612
2647
  /** @nocollapse */
@@ -2627,6 +2662,7 @@ if (false) {
2627
2662
 
2628
2663
  /**
2629
2664
  * @fileoverview added by tsickle
2665
+ * Generated from: lib/components/partial/upload-file/upload-file.component.ts
2630
2666
  * @suppress {checkTypes,constantProperty,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
2631
2667
  */
2632
2668
  var UploadFileComponent = /** @class */ (function () {
@@ -2723,6 +2759,7 @@ if (false) {
2723
2759
 
2724
2760
  /**
2725
2761
  * @fileoverview added by tsickle
2762
+ * Generated from: lib/components/partial/add-folder-dialog/add-folder-dialog.component.ts
2726
2763
  * @suppress {checkTypes,constantProperty,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
2727
2764
  */
2728
2765
  /**
@@ -2880,6 +2917,7 @@ if (false) {
2880
2917
 
2881
2918
  /**
2882
2919
  * @fileoverview added by tsickle
2920
+ * Generated from: lib/components/partial/edit-folder-dialog/edit-folder-dialog.component.ts
2883
2921
  * @suppress {checkTypes,constantProperty,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
2884
2922
  */
2885
2923
  /**
@@ -3042,6 +3080,7 @@ if (false) {
3042
3080
 
3043
3081
  /**
3044
3082
  * @fileoverview added by tsickle
3083
+ * Generated from: lib/components/partial/delete-dialog/delete-dialog.component.ts
3045
3084
  * @suppress {checkTypes,constantProperty,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
3046
3085
  */
3047
3086
  /**
@@ -3189,6 +3228,7 @@ if (false) {
3189
3228
 
3190
3229
  /**
3191
3230
  * @fileoverview added by tsickle
3231
+ * Generated from: lib/components/partial/upload-dialog/upload-dialog.component.ts
3192
3232
  * @suppress {checkTypes,constantProperty,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
3193
3233
  */
3194
3234
  /**
@@ -3305,8 +3345,8 @@ var UploadDialogComponent = /** @class */ (function () {
3305
3345
  ];
3306
3346
  /** @nocollapse */
3307
3347
  UploadDialogComponent.ctorParameters = function () { return [
3308
- { type: undefined, decorators: [{ type: Inject, args: [MAT_DIALOG_DATA$1,] }] },
3309
- { type: MatDialogRef$1 },
3348
+ { type: undefined, decorators: [{ type: Inject, args: [MAT_DIALOG_DATA,] }] },
3349
+ { type: MatDialogRef },
3310
3350
  { type: ChangeDetectorRef },
3311
3351
  { type: UploadAssetsService }
3312
3352
  ]; };
@@ -3337,6 +3377,7 @@ if (false) {
3337
3377
 
3338
3378
  /**
3339
3379
  * @fileoverview added by tsickle
3380
+ * Generated from: lib/components/partial/folder-item/folder-item.component.ts
3340
3381
  * @suppress {checkTypes,constantProperty,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
3341
3382
  */
3342
3383
  var FolderItemComponent = /** @class */ (function () {
@@ -3467,6 +3508,7 @@ if (false) {
3467
3508
 
3468
3509
  /**
3469
3510
  * @fileoverview added by tsickle
3511
+ * Generated from: lib/components/partial/folder-list/folder-list.component.ts
3470
3512
  * @suppress {checkTypes,constantProperty,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
3471
3513
  */
3472
3514
  var FolderListComponent = /** @class */ (function () {
@@ -3476,7 +3518,7 @@ var FolderListComponent = /** @class */ (function () {
3476
3518
  this.hasArchivePermission = true;
3477
3519
  this.onPageChange = new EventEmitter();
3478
3520
  this.loading = false;
3479
- this.unsubscribe$ = new Subject$1();
3521
+ this.unsubscribe$ = new Subject();
3480
3522
  this.bindSubscriber();
3481
3523
  }
3482
3524
  /**
@@ -3590,6 +3632,7 @@ if (false) {
3590
3632
 
3591
3633
  /**
3592
3634
  * @fileoverview added by tsickle
3635
+ * Generated from: lib/components/partial/asset-list/asset-list.component.ts
3593
3636
  * @suppress {checkTypes,constantProperty,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
3594
3637
  */
3595
3638
  var AssetListComponent = /** @class */ (function () {
@@ -3600,7 +3643,7 @@ var AssetListComponent = /** @class */ (function () {
3600
3643
  this.hasAccessPermission = true;
3601
3644
  this.hasArchivePermission = true;
3602
3645
  this.backgroundProcessingNum = BackgroudProcessingStatus;
3603
- this.unsubscribe$ = new Subject$1();
3646
+ this.unsubscribe$ = new Subject();
3604
3647
  this.selectedAssets = [];
3605
3648
  }
3606
3649
  /**
@@ -3785,9 +3828,14 @@ var AssetListComponent = /** @class */ (function () {
3785
3828
  * @return {?}
3786
3829
  */
3787
3830
  function (res) {
3788
- _this.assetService.setAssetList(res.Data.Children, res.Meta);
3789
- }))
3790
- .add((/**
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((/**
3791
3839
  * @return {?}
3792
3840
  */
3793
3841
  function () {
@@ -3836,7 +3884,7 @@ var AssetListComponent = /** @class */ (function () {
3836
3884
  AssetListComponent.decorators = [
3837
3885
  { type: Component, args: [{
3838
3886
  selector: 'lib-asset-list',
3839
- 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 (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",
3887
+ 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",
3840
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}"]
3841
3889
  }] }
3842
3890
  ];
@@ -3846,15 +3894,18 @@ var AssetListComponent = /** @class */ (function () {
3846
3894
  { type: AssetManagementService }
3847
3895
  ]; };
3848
3896
  AssetListComponent.propDecorators = {
3897
+ isDialog: [{ type: Input }],
3849
3898
  hasModifyPermission: [{ type: Input }],
3850
3899
  hasAccessPermission: [{ type: Input }],
3851
3900
  hasArchivePermission: [{ type: Input }],
3852
- paginator: [{ type: ViewChild, args: [MatPaginator$1, { static: true },] }],
3901
+ paginator: [{ type: ViewChild, args: [MatPaginator, { static: true },] }],
3853
3902
  assets: [{ type: Input }]
3854
3903
  };
3855
3904
  return AssetListComponent;
3856
3905
  }());
3857
3906
  if (false) {
3907
+ /** @type {?} */
3908
+ AssetListComponent.prototype.isDialog;
3858
3909
  /** @type {?} */
3859
3910
  AssetListComponent.prototype.hasModifyPermission;
3860
3911
  /** @type {?} */
@@ -3896,6 +3947,7 @@ if (false) {
3896
3947
 
3897
3948
  /**
3898
3949
  * @fileoverview added by tsickle
3950
+ * Generated from: lib/pipes/file-size.pipe.ts
3899
3951
  * @suppress {checkTypes,constantProperty,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
3900
3952
  */
3901
3953
  /*
@@ -3957,6 +4009,7 @@ if (false) {
3957
4009
 
3958
4010
  /**
3959
4011
  * @fileoverview added by tsickle
4012
+ * Generated from: lib/components/partial/asset-dialog/asset-dialog.component.ts
3960
4013
  * @suppress {checkTypes,constantProperty,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
3961
4014
  */
3962
4015
  /**
@@ -4380,6 +4433,7 @@ if (false) {
4380
4433
 
4381
4434
  /**
4382
4435
  * @fileoverview added by tsickle
4436
+ * Generated from: lib/components/partial/asset-item/asset-item.component.ts
4383
4437
  * @suppress {checkTypes,constantProperty,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
4384
4438
  */
4385
4439
  var AssetItemComponent = /** @class */ (function () {
@@ -4641,8 +4695,8 @@ var AssetItemComponent = /** @class */ (function () {
4641
4695
  AssetItemComponent.decorators = [
4642
4696
  { type: Component, args: [{
4643
4697
  selector: 'lib-asset-item',
4644
- template: "<div class=\"asset-wrapper\">\n <div class=\"asset-content\">\n <div class=\"asset-content__header\" *ngIf=\"asset?.BackgroudProcessingStatus === backgroundProcessingNum.Processed\">\n <button class=\"asset-content__header--button\" mat-raised-button (click)=\"onChange()\">\n <mat-checkbox\n class=\"checkbox\"\n [checked]=\"checkSelectedAsset\"\n ></mat-checkbox>\n </button>\n <button\n class=\"asset-content__header--button edit-button\"\n mat-raised-button\n (click)=\"editAsset()\"\n >\n <mat-icon>edit</mat-icon>\n </button>\n </div>\n <div class=\"asset-content__body\">\n <ng-container [ngSwitch]=\"asset.FileType\">\n <ng-container *ngSwitchCase=\"fileType.IMAGE\">\n <img\n class=\"image\"\n [src]=\"asset.UrlThumbnail\"\n [alt]=\"asset.OriginalFileName\"\n *ngIf=\"asset.BackgroudProcessingStatus === backgroundProcessingNum.Processed\"\n />\n <!-- In Processing -->\n <div class=\"processing\" *ngIf=\"asset?.BackgroudProcessingStatus === backgroundProcessingNum.InProcessing\">\n <mat-icon class=\"icon\">cloud_upload</mat-icon>\n <span class=\"processing-txt\">Uploading...</span>\n </div>\n <!-- Failed -->\n <div class=\"processing\" *ngIf=\"asset.BackgroudProcessingStatus === backgroundProcessingNum.Failed\">\n <mat-icon class=\"icon-img\">error_outline</mat-icon>\n <div class=\"failed-group\">\n <span style=\"color: #f44336; font-weight: 300; font-size: 12px;\">Failed to upload the file</span>\n </div>\n <div class=\"btn-failed-group\">\n <button class=\"btn-custom-upload\" (click)=\"onUploadAgain(asset)\">Delete and update again</button>\n <span class=\"failed-txt mx-1\">or</span>\n <button class=\"btn-custom-failed\" (click)=\"onDelete(asset)\">Delete</button>\n </div>\n </div>\n </ng-container>\n <ng-container *ngSwitchCase=\"fileType.DOCUMENT\">\n <img [src]=\"base64PNG[asset.Extension] || base64PNG.default\" [alt]=\"asset.OriginalFileName\" class=\"file\" *ngIf=\"asset.BackgroudProcessingStatus === backgroundProcessingNum.Processed\"/>\n <!-- In Processing -->\n <div class=\"processing\" *ngIf=\"asset.BackgroudProcessingStatus === backgroundProcessingNum.InProcessing\">\n <mat-icon class=\"icon\">cloud_upload</mat-icon>\n <span class=\"processing-txt\">Uploading...</span>\n </div>\n <!-- Failed -->\n <div class=\"processing\" *ngIf=\"asset.BackgroudProcessingStatus === backgroundProcessingNum.Failed\">\n <mat-icon class=\"icon-doc\">error_outline</mat-icon>\n <div class=\"failed-group\">\n <span style=\"color: #f44336; font-weight: 300; font-size: 12px;\">Failed to upload the file</span>\n </div>\n <div class=\"btn-failed-group\">\n <button class=\"btn-custom-upload\" (click)=\"onUploadAgain(asset)\">Delete and update again</button>\n <span class=\"failed-txt mx-1\">or</span>\n <button class=\"btn-custom-failed\" (click)=\"onDelete(asset)\">Delete</button>\n </div>\n </div>\n </ng-container>\n </ng-container>\n </div>\n <div class=\"asset-content__footer\">\n <div\n class=\"asset-content__footer--info\"\n [ngClass]=\"{\n 'file-type__document': asset.FileType === fileType.DOCUMENT\n }\"\n >\n <p\n class=\"name\"\n [matTooltip]=\"asset.OriginalFileNameWithoutExtension\"\n matTooltipClass=\"width-auto\"\n >\n {{ asset.OriginalFileNameWithoutExtension }}\n </p>\n <p class=\"info\">\n <span class=\"extension\">{{ asset.Extension }}</span>\n <span\n *ngIf=\"\n asset.FileType === fileType.IMAGE && asset?.Extension !== 'svg'\n \"\n >\n - {{ asset.Width }}x{{ asset.Height }}</span\n >\n <span *ngIf=\"asset.Size\"> - {{ asset.Size }}</span>\n </p>\n </div>\n <div class=\"asset-content__footer--file-type\">\n <span>{{ asset.FileType }}</span>\n </div>\n </div>\n </div>\n</div>\n",
4645
- styles: [":host::ng-deep .asset-wrapper{padding:5px}:host::ng-deep .asset-wrapper .asset-content{overflow:hidden;position:relative;border-radius:10px;border:1px solid #d8d8d8;font-size:14px;transition:.3s cubic-bezier(.25,.8,.25,1)}:host::ng-deep .asset-wrapper .asset-content:hover{box-shadow:0 0 8px rgba(0,0,0,.17),0 0 0 rgba(0,0,0,.06)}:host::ng-deep .asset-wrapper .asset-content__header{position:absolute;z-index:1;top:0;left:0;width:100%;display:flex;justify-content:space-between;padding:14px}:host::ng-deep .asset-wrapper .asset-content__header--button{width:30px;height:30px;min-width:30px;display:flex;align-items:center;justify-content:center;text-align:center;color:rgba(0,0,0,.65);background:rgba(255,255,255,.6)}:host::ng-deep .asset-wrapper .asset-content__header--button:hover{background:#fff}:host::ng-deep .asset-wrapper .asset-content__header--button.edit-button{transition:.3s cubic-bezier(.25,.8,.25,1);opacity:0}:host::ng-deep .asset-wrapper .asset-content__header--button .mat-icon{font-size:22px}:host::ng-deep .asset-wrapper .asset-content__header--button .mat-checkbox{pointer-events:none;display:flex;align-items:center}:host::ng-deep .asset-wrapper .asset-content__header--button .mat-checkbox .mat-checkbox-layout{display:block;margin:0}:host::ng-deep .asset-wrapper .asset-content__header--button .mat-checkbox .mat-checkbox-layout .mat-checkbox-frame{color:#767676}:host::ng-deep .asset-wrapper .asset-content__body{padding-bottom:66.66%;background:#f1f1f1;position:relative}:host::ng-deep .asset-wrapper .asset-content__body img{max-width:100%;max-height:100%;-o-object-fit:contain;object-fit:contain;position:absolute;top:50%;left:50%;transform:translate(-50%,-50%)}:host::ng-deep .asset-wrapper .asset-content__body 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 .asset-wrapper .asset-content__body img.file{width:75%;height:75%}:host::ng-deep .asset-wrapper .asset-content__body .processing{background-color:#f1f1f1;width:100%;height:100%}:host::ng-deep .asset-wrapper .asset-content__body .processing .icon{position:absolute;top:30%;left:42%;font-size:35px}:host::ng-deep .asset-wrapper .asset-content__body .processing .icon-img{position:absolute;top:30%;left:42%;font-size:35px;color:#f44336}:host::ng-deep .asset-wrapper .asset-content__body .processing .icon-doc{position:absolute;top:30%;left:42%;font-size:35px;color:#f44336}:host::ng-deep .asset-wrapper .asset-content__body .processing .processing-txt{position:absolute;top:55%;left:35%}:host::ng-deep .asset-wrapper .asset-content__body .processing .failed-image{width:27px;height:27px;-o-object-fit:contain;object-fit:contain}:host::ng-deep .asset-wrapper .asset-content__body .processing .failed-group{position:absolute;top:55%;left:20%}:host::ng-deep .asset-wrapper .asset-content__body .processing .btn-failed-group{position:absolute;top:70%;left:10%;font-size:12px}:host::ng-deep .asset-wrapper .asset-content__body .processing .btn-failed-group .failed-txt{color:#f44336}:host::ng-deep .asset-wrapper .asset-content__body .processing .btn-failed-group .btn-custom-upload{font-size:9px;border:0;color:#fff;background-color:#ffc107;border-radius:3px}:host::ng-deep .asset-wrapper .asset-content__body .processing .btn-failed-group .btn-custom-failed{font-size:9px;border:0;color:#fff;background-color:#f44336;border-radius:3px}:host::ng-deep .asset-wrapper .asset-content__body .processing .btn-failed-group .btn-custom-failed:hover,:host::ng-deep .asset-wrapper .asset-content__body .processing .btn-failed-group .btn-custom-upload:hover{opacity:.8}:host::ng-deep .asset-wrapper .asset-content__footer{display:flex;align-items:center;justify-content:space-between;padding:5px 8px}:host::ng-deep .asset-wrapper .asset-content__footer--info{max-width:calc(100% - 50px)}:host::ng-deep .asset-wrapper .asset-content__footer--info p{margin:0;display:block;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}:host::ng-deep .asset-wrapper .asset-content__footer--info .info{font-size:12px;color:#979797}:host::ng-deep .asset-wrapper .asset-content__footer--info .info .extension{text-transform:uppercase}:host::ng-deep .asset-wrapper .asset-content__footer--info.file-type__document{max-width:calc(100% - 70px)}:host::ng-deep .asset-wrapper .asset-content__footer--file-type{border-radius:5px;background-color:#d8d8d8;padding:2px 6px;font-size:12px}:host::ng-deep .asset-wrapper .asset-content:hover .edit-button{opacity:1!important}"]
4698
+ template: "<div class=\"asset-wrapper\">\n <div class=\"asset-content\">\n <div class=\"asset-content__header\">\n <button class=\"asset-content__header--button\"\n *ngIf=\"(asset?.BackgroudProcessingStatus === backgroundProcessingNum.Processed) || (asset?.BackgroudProcessingStatus === backgroundProcessingNum.InProcessing)\"\n mat-raised-button (click)=\"onChange()\">\n <mat-checkbox class=\"checkbox\" [checked]=\"checkSelectedAsset\"></mat-checkbox>\n </button>\n <button class=\"asset-content__header--button edit-button\"\n *ngIf=\"asset?.BackgroudProcessingStatus === backgroundProcessingNum.Processed\" mat-raised-button\n (click)=\"editAsset()\">\n <mat-icon>edit</mat-icon>\n </button>\n </div>\n <div class=\"asset-content__body\">\n <ng-container [ngSwitch]=\"asset.FileType\">\n <ng-container *ngSwitchCase=\"fileType.IMAGE\">\n <img class=\"image\" [src]=\"asset.UrlThumbnail\" [alt]=\"asset.OriginalFileName\"\n *ngIf=\"asset.BackgroudProcessingStatus === backgroundProcessingNum.Processed\" />\n <!-- In Processing -->\n <div class=\"processing\" *ngIf=\"asset?.BackgroudProcessingStatus === backgroundProcessingNum.InProcessing\">\n <div class=\"upload-group\">\n <div>\n <mat-icon class=\"processing-icon\"\n [ngClass]=\"{ 'processing-icon-dialog': isDialog }\">cloud_upload</mat-icon>\n </div>\n <div>\n <span class=\"{{ isDialog ? 'processing-txt-dialog' : 'processing-txt' }}\">Uploading...</span>\n </div>\n </div>\n </div>\n\n <!-- Failed -->\n <div class=\"processing\" *ngIf=\"asset.BackgroudProcessingStatus === backgroundProcessingNum.Failed\">\n <div class=\"failed-group\">\n <div>\n <mat-icon class=\"processing-icon\"\n [ngClass]=\"{ 'processing-icon-dialog': isDialog }\">error_outline</mat-icon>\n </div>\n <div>\n <span class=\"{{ isDialog ? 'processing-txt-dialog' : 'processing-txt' }}\">Failed to upload the\n file</span>\n </div>\n <div class=\"btn-failed-group\">\n <button class=\"{{ isDialog ? 'btn-upload-dialog' : 'btn-upload' }}\"\n (click)=\"onUploadAgain(asset)\">Delete and update again</button>\n <span class=\"{{ isDialog ? 'processing-txt-dialog' : 'processing-txt' }} mx-1\">or</span>\n <button class=\"{{ isDialog ? 'btn-failed-dialog' : 'btn-failed' }}\"\n (click)=\"onDelete(asset)\">Delete</button>\n </div>\n </div>\n </div>\n </ng-container>\n <ng-container *ngSwitchCase=\"fileType.DOCUMENT\">\n <img [src]=\"base64PNG[asset.Extension] || base64PNG.default\" [alt]=\"asset.OriginalFileName\" class=\"file\"\n *ngIf=\"asset.BackgroudProcessingStatus === backgroundProcessingNum.Processed\" />\n <!-- In Processing -->\n <div class=\"processing\" *ngIf=\"asset?.BackgroudProcessingStatus === backgroundProcessingNum.InProcessing\">\n <div class=\"upload-group\">\n <div>\n <mat-icon class=\"processing-icon\"\n [ngClass]=\"{ 'processing-icon-dialog': isDialog }\">cloud_upload</mat-icon>\n </div>\n <div>\n <span class=\"{{ isDialog ? 'processing-txt-dialog' : 'processing-txt' }}\">Uploading...</span>\n </div>\n </div>\n </div>\n\n <!-- Failed -->\n <div class=\"processing\" *ngIf=\"asset.BackgroudProcessingStatus === backgroundProcessingNum.Failed\">\n <div class=\"failed-group\">\n <mat-icon class=\"processing-icon\"\n [ngClass]=\"{ 'processing-icon-dialog': isDialog }\">error_outline</mat-icon>\n <div>\n <span class=\"{{ isDialog ? 'processing-txt-dialog' : 'processing-txt' }}\">Failed to upload the\n file</span>\n </div>\n <div class=\"btn-failed-group\">\n <button class=\"{{ isDialog ? 'btn-upload-dialog' : 'btn-upload' }}\"\n (click)=\"onUploadAgain(asset)\">Delete and update again</button>\n <span class=\"{{ isDialog ? 'processing-txt-dialog' : 'processing-txt' }} mx-1\">or</span>\n <button class=\"{{ isDialog ? 'btn-failed-dialog' : 'btn-failed' }}\"\n (click)=\"onDelete(asset)\">Delete</button>\n </div>\n </div>\n </div>\n </ng-container>\n </ng-container>\n </div>\n <div class=\"asset-content__footer\">\n <div class=\"asset-content__footer--info\" [ngClass]=\"{\n 'file-type__document': asset.FileType === fileType.DOCUMENT\n }\">\n <p class=\"name\" [matTooltip]=\"asset.OriginalFileNameWithoutExtension\" matTooltipClass=\"width-auto\">\n {{ asset.OriginalFileNameWithoutExtension }}\n </p>\n <p class=\"info\">\n <span class=\"extension\">{{ asset.Extension }}</span>\n <span *ngIf=\"\n asset.FileType === fileType.IMAGE && asset?.Extension !== 'svg'\n \">\n - {{ asset.Width }}x{{ asset.Height }}</span>\n <span *ngIf=\"asset.Size\"> - {{ asset.Size }}</span>\n </p>\n </div>\n <div class=\"asset-content__footer--file-type\">\n <span>{{ asset.FileType }}</span>\n </div>\n </div>\n </div>\n</div>",
4699
+ styles: [":host::ng-deep .asset-wrapper{padding:5px}:host::ng-deep .asset-wrapper .asset-content{overflow:hidden;position:relative;border-radius:10px;border:1px solid #d8d8d8;font-size:14px;transition:.3s cubic-bezier(.25,.8,.25,1)}:host::ng-deep .asset-wrapper .asset-content:hover{box-shadow:0 0 8px rgba(0,0,0,.17),0 0 0 rgba(0,0,0,.06)}:host::ng-deep .asset-wrapper .asset-content__header{position:absolute;z-index:1;top:0;left:0;width:100%;display:flex;justify-content:space-between;padding:14px}:host::ng-deep .asset-wrapper .asset-content__header--button{width:30px;height:30px;min-width:30px;display:flex;align-items:center;justify-content:center;text-align:center;color:rgba(0,0,0,.65);background:rgba(255,255,255,.6)}:host::ng-deep .asset-wrapper .asset-content__header--button:hover{background:#fff}:host::ng-deep .asset-wrapper .asset-content__header--button.edit-button{transition:.3s cubic-bezier(.25,.8,.25,1);opacity:0}:host::ng-deep .asset-wrapper .asset-content__header--button .mat-icon{font-size:22px}:host::ng-deep .asset-wrapper .asset-content__header--button .mat-checkbox{pointer-events:none;display:flex;align-items:center}:host::ng-deep .asset-wrapper .asset-content__header--button .mat-checkbox .mat-checkbox-layout{display:block;margin:0}:host::ng-deep .asset-wrapper .asset-content__header--button .mat-checkbox .mat-checkbox-layout .mat-checkbox-frame{color:#767676}:host::ng-deep .asset-wrapper .asset-content__body{padding-bottom:66.66%;background:#f1f1f1;position:relative}:host::ng-deep .asset-wrapper .asset-content__body img{max-width:100%;max-height:100%;-o-object-fit:contain;object-fit:contain;position:absolute;top:50%;left:50%;transform:translate(-50%,-50%)}:host::ng-deep .asset-wrapper .asset-content__body 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 .asset-wrapper .asset-content__body img.file{width:75%;height:75%}:host::ng-deep .asset-wrapper .asset-content__body .processing{background-color:#f1f1f1;width:100%;max-height:100%;-o-object-fit:contain;object-fit:contain;position:absolute;top:50%;left:50%;transform:translate(-50%,-50%)}:host::ng-deep .asset-wrapper .asset-content__body .processing .processing-icon{font-size:35px;height:35px;width:35px}:host::ng-deep .asset-wrapper .asset-content__body .processing .processing-txt{font-size:17px}:host::ng-deep .asset-wrapper .asset-content__body .processing .processing-icon-dialog{font-size:24px;height:24px;width:24px}:host::ng-deep .asset-wrapper .asset-content__body .processing .processing-txt-dialog{font-size:13px}:host::ng-deep .asset-wrapper .asset-content__body .processing .upload-group{text-align:center}:host::ng-deep .asset-wrapper .asset-content__body .processing .failed-group{text-align:center;color:#f44336}:host::ng-deep .asset-wrapper .asset-content__body .processing .btn-failed-group{margin-top:7px}:host::ng-deep .asset-wrapper .asset-content__body .processing .btn-failed-group .btn-upload{font-size:13px;padding:5px;border:0;color:#fff;background-color:#ffc107;border-radius:3px}:host::ng-deep .asset-wrapper .asset-content__body .processing .btn-failed-group .btn-failed{font-size:13px;padding:5px;border:0;color:#fff;background-color:#f44336;border-radius:3px}:host::ng-deep .asset-wrapper .asset-content__body .processing .btn-failed-group .btn-upload-dialog{font-size:9px;border:0;color:#fff;background-color:#ffc107;border-radius:3px}:host::ng-deep .asset-wrapper .asset-content__body .processing .btn-failed-group .btn-failed-dialog{font-size:9px;border:0;color:#fff;background-color:#f44336;border-radius:3px}:host::ng-deep .asset-wrapper .asset-content__body .processing .btn-failed-group .btn-failed-dialog:hover,:host::ng-deep .asset-wrapper .asset-content__body .processing .btn-failed-group .btn-failed:hover,:host::ng-deep .asset-wrapper .asset-content__body .processing .btn-failed-group .btn-upload-dialog:hover,:host::ng-deep .asset-wrapper .asset-content__body .processing .btn-failed-group .btn-upload:hover{opacity:.8}:host::ng-deep .asset-wrapper .asset-content__footer{display:flex;align-items:center;justify-content:space-between;padding:5px 8px}:host::ng-deep .asset-wrapper .asset-content__footer--info{max-width:calc(100% - 50px)}:host::ng-deep .asset-wrapper .asset-content__footer--info p{margin:0;display:block;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}:host::ng-deep .asset-wrapper .asset-content__footer--info .info{font-size:12px;color:#979797}:host::ng-deep .asset-wrapper .asset-content__footer--info .info .extension{text-transform:uppercase}:host::ng-deep .asset-wrapper .asset-content__footer--info.file-type__document{max-width:calc(100% - 70px)}:host::ng-deep .asset-wrapper .asset-content__footer--file-type{border-radius:5px;background-color:#d8d8d8;padding:2px 6px;font-size:12px}:host::ng-deep .asset-wrapper .asset-content:hover .edit-button{opacity:1!important}"]
4646
4700
  }] }
4647
4701
  ];
4648
4702
  /** @nocollapse */
@@ -4654,6 +4708,7 @@ var AssetItemComponent = /** @class */ (function () {
4654
4708
  { type: ChangeDetectorRef }
4655
4709
  ]; };
4656
4710
  AssetItemComponent.propDecorators = {
4711
+ isDialog: [{ type: Input }],
4657
4712
  hasModifyPermission: [{ type: Input }],
4658
4713
  hasAccessPermission: [{ type: Input }],
4659
4714
  hasArchivePermission: [{ type: Input }],
@@ -4663,6 +4718,8 @@ var AssetItemComponent = /** @class */ (function () {
4663
4718
  return AssetItemComponent;
4664
4719
  }());
4665
4720
  if (false) {
4721
+ /** @type {?} */
4722
+ AssetItemComponent.prototype.isDialog;
4666
4723
  /** @type {?} */
4667
4724
  AssetItemComponent.prototype.hasModifyPermission;
4668
4725
  /** @type {?} */
@@ -4716,6 +4773,7 @@ if (false) {
4716
4773
 
4717
4774
  /**
4718
4775
  * @fileoverview added by tsickle
4776
+ * Generated from: lib/datasources/node-tree.datasource.ts
4719
4777
  * @suppress {checkTypes,constantProperty,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
4720
4778
  */
4721
4779
  var NodeTreeDataSource = /** @class */ (function () {
@@ -4834,7 +4892,8 @@ var NodeTreeDataSource = /** @class */ (function () {
4834
4892
  */
4835
4893
  function (node, expand) {
4836
4894
  return __awaiter(this, void 0, void 0, function () {
4837
- var _a, index, newNode, nodes, count, i;
4895
+ var index, newNode, nodes, count, i;
4896
+ var _a;
4838
4897
  var _this = this;
4839
4898
  return __generator(this, function (_b) {
4840
4899
  switch (_b.label) {
@@ -4886,16 +4945,19 @@ var NodeTreeDataSource = /** @class */ (function () {
4886
4945
  /**
4887
4946
  * Reload the node, remove from display list
4888
4947
  * @param {?} node
4948
+ * @param {?=} pageSize
4889
4949
  * @return {?}
4890
4950
  */
4891
4951
  NodeTreeDataSource.prototype.reloadNode = /**
4892
4952
  * Reload the node, remove from display list
4893
4953
  * @param {?} node
4954
+ * @param {?=} pageSize
4894
4955
  * @return {?}
4895
4956
  */
4896
- function (node) {
4957
+ function (node, pageSize) {
4897
4958
  return __awaiter(this, void 0, void 0, function () {
4898
- var _a, newNode, index, count, i, nodes;
4959
+ var newNode, index, count, i, nodes;
4960
+ var _a;
4899
4961
  var _this = this;
4900
4962
  return __generator(this, function (_b) {
4901
4963
  switch (_b.label) {
@@ -4903,7 +4965,7 @@ var NodeTreeDataSource = /** @class */ (function () {
4903
4965
  if (!node) {
4904
4966
  return [2 /*return*/];
4905
4967
  }
4906
- return [4 /*yield*/, this._database.getChildren(node.item)];
4968
+ return [4 /*yield*/, this._database.getChildren(node.item, pageSize)];
4907
4969
  case 1:
4908
4970
  newNode = _b.sent();
4909
4971
  index = this.data.indexOf(node);
@@ -4950,11 +5012,13 @@ if (false) {
4950
5012
 
4951
5013
  /**
4952
5014
  * @fileoverview added by tsickle
5015
+ * Generated from: lib/datasources/index.ts
4953
5016
  * @suppress {checkTypes,constantProperty,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
4954
5017
  */
4955
5018
 
4956
5019
  /**
4957
5020
  * @fileoverview added by tsickle
5021
+ * Generated from: lib/components/partial/node-tree/node-tree.component.ts
4958
5022
  * @suppress {checkTypes,constantProperty,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
4959
5023
  */
4960
5024
  var NodeTreeComponent = /** @class */ (function () {
@@ -4998,7 +5062,7 @@ var NodeTreeComponent = /** @class */ (function () {
4998
5062
  var rootFolder = this.folderChildrenMap.get(ROOT_ASSET_ID);
4999
5063
  return {
5000
5064
  length: rootFolder ? rootFolder.size : 0,
5001
- total: this.nodeTreeService.rootFolder ? this.nodeTreeService.rootFolder.TotalFolder || '0' : 0,
5065
+ total: this.nodeTreeService.rootFolder ? this.nodeTreeService.rootFolder.TotalFolder || "0" : 0,
5002
5066
  };
5003
5067
  },
5004
5068
  enumerable: true,
@@ -5071,9 +5135,7 @@ var NodeTreeComponent = /** @class */ (function () {
5071
5135
  */
5072
5136
  function () {
5073
5137
  var _this = this;
5074
- this.nodeTreeService.loading$
5075
- .pipe(takeUntil(this.unsubscribe$), distinctUntilChanged())
5076
- .subscribe((/**
5138
+ this.nodeTreeService.loading$.pipe(takeUntil(this.unsubscribe$), distinctUntilChanged()).subscribe((/**
5077
5139
  * @param {?} loading
5078
5140
  * @return {?}
5079
5141
  */
@@ -5081,9 +5143,7 @@ var NodeTreeComponent = /** @class */ (function () {
5081
5143
  _this.homeLoading = loading;
5082
5144
  _this.changeDetectorRef.detectChanges();
5083
5145
  }));
5084
- this.nodeTreeService.initialData$
5085
- .pipe(takeUntil(this.unsubscribe$), distinctUntilChanged())
5086
- .subscribe((/**
5146
+ this.nodeTreeService.initialData$.pipe(takeUntil(this.unsubscribe$), distinctUntilChanged()).subscribe((/**
5087
5147
  * @param {?} data
5088
5148
  * @return {?}
5089
5149
  */
@@ -5098,9 +5158,7 @@ var NodeTreeComponent = /** @class */ (function () {
5098
5158
  function (node) { return _this.nodeTreeService.addNode(node.item, null); }));
5099
5159
  _this.changeDetectorRef.detectChanges();
5100
5160
  }));
5101
- this.dataSource.dataChange
5102
- .pipe(takeUntil(this.unsubscribe$))
5103
- .subscribe((/**
5161
+ this.dataSource.dataChange.pipe(takeUntil(this.unsubscribe$)).subscribe((/**
5104
5162
  * @param {?} data
5105
5163
  * @return {?}
5106
5164
  */
@@ -5147,7 +5205,7 @@ var NodeTreeComponent = /** @class */ (function () {
5147
5205
  * @param {?} res
5148
5206
  * @return {?}
5149
5207
  */
5150
- function (res) { return of$1(res); })))
5208
+ function (res) { return of(res); })))
5151
5209
  .subscribe((/**
5152
5210
  * @return {?}
5153
5211
  */
@@ -5271,11 +5329,13 @@ var NodeTreeComponent = /** @class */ (function () {
5271
5329
  this.setLoadingMore(id, true);
5272
5330
  children = this.folderChildrenMap.get(id);
5273
5331
  itemsPerPage = this.assetService.AMConfig.pageFolderSize || MAX_FOLDER_TREE_SIZE;
5274
- return [4 /*yield*/, this.assetService.getChildrenFolders({
5332
+ return [4 /*yield*/, this.assetService
5333
+ .getChildrenFolders({
5275
5334
  assetId: id === ROOT_ASSET_ID ? null : id,
5276
5335
  isFilter: false,
5277
- pageIndex: Math.round((children ? children.size : 0) / itemsPerPage)
5278
- }).toPromise()];
5336
+ pageIndex: Math.round((children ? children.size : 0) / itemsPerPage),
5337
+ })
5338
+ .toPromise()];
5279
5339
  case 2:
5280
5340
  result = _a.sent();
5281
5341
  assetChildren = result.Data.Children || [];
@@ -5302,7 +5362,7 @@ var NodeTreeComponent = /** @class */ (function () {
5302
5362
  return [3 /*break*/, 4];
5303
5363
  case 3:
5304
5364
  error_1 = _a.sent();
5305
- console.log('Load more folder error', error_1);
5365
+ console.log("Load more folder error", error_1);
5306
5366
  this.setLoadingMore(id, false);
5307
5367
  return [3 /*break*/, 4];
5308
5368
  case 4: return [2 /*return*/];
@@ -5383,7 +5443,7 @@ var NodeTreeComponent = /** @class */ (function () {
5383
5443
  */
5384
5444
  function (id) {
5385
5445
  return __awaiter(this, void 0, void 0, function () {
5386
- var node, parent_1, updatedNode;
5446
+ var node, parent_1, children, updatedNode, rootFolder, updatedNode;
5387
5447
  return __generator(this, function (_a) {
5388
5448
  switch (_a.label) {
5389
5449
  case 0:
@@ -5392,30 +5452,45 @@ var NodeTreeComponent = /** @class */ (function () {
5392
5452
  }
5393
5453
  this.loading = true;
5394
5454
  node = this.getNodeById(id);
5395
- if (!node) return [3 /*break*/, 5];
5455
+ if (!node) return [3 /*break*/, 8];
5396
5456
  parent_1 = this.getParent(node);
5397
5457
  if (!parent_1) return [3 /*break*/, 4];
5398
5458
  // Reload parent folder (get children and expand it again)
5399
- return [4 /*yield*/, this.dataSource.reloadNode(parent_1)];
5459
+ children = this.folderChildrenMap.get(parent_1.item.AssetId);
5460
+ return [4 /*yield*/, this.dataSource.reloadNode(parent_1, children.size)];
5400
5461
  case 1:
5401
- // Reload parent folder (get children and expand it again)
5402
5462
  _a.sent();
5403
5463
  updatedNode = this.getNodeById(id);
5404
5464
  if (!updatedNode) return [3 /*break*/, 3];
5465
+ // TODO
5405
5466
  return [4 /*yield*/, this.treeControl.expand(updatedNode)];
5406
5467
  case 2:
5468
+ // TODO
5407
5469
  _a.sent();
5408
5470
  _a.label = 3;
5409
- case 3: return [3 /*break*/, 4];
5410
- case 4: return [3 /*break*/, 7];
5411
- case 5:
5471
+ case 3: return [3 /*break*/, 7];
5472
+ case 4:
5473
+ rootFolder = this.folderChildrenMap.get(ROOT_ASSET_ID);
5474
+ return [4 /*yield*/, this.nodeTreeService.initialData({ dispatchRootId: false, pageSize: rootFolder.size })];
5475
+ case 5:
5476
+ _a.sent();
5477
+ updatedNode = this.getNodeById(id);
5478
+ if (!updatedNode) return [3 /*break*/, 7];
5479
+ // TODO
5480
+ return [4 /*yield*/, this.treeControl.expand(updatedNode)];
5481
+ case 6:
5482
+ // TODO
5483
+ _a.sent();
5484
+ _a.label = 7;
5485
+ case 7: return [3 /*break*/, 10];
5486
+ case 8:
5412
5487
  // Reload root folder
5413
5488
  return [4 /*yield*/, this.nodeTreeService.initialData({ dispatchRootId: false })];
5414
- case 6:
5489
+ case 9:
5415
5490
  // Reload root folder
5416
5491
  _a.sent();
5417
- _a.label = 7;
5418
- case 7:
5492
+ _a.label = 10;
5493
+ case 10:
5419
5494
  this.loading = false;
5420
5495
  return [2 /*return*/];
5421
5496
  }
@@ -5451,9 +5526,9 @@ var NodeTreeComponent = /** @class */ (function () {
5451
5526
  };
5452
5527
  NodeTreeComponent.decorators = [
5453
5528
  { type: Component, args: [{
5454
- selector: 'lib-node-tree',
5529
+ selector: "lib-node-tree",
5455
5530
  template: "<div class=\"node custom-scrollbar node-tree\">\n <div class=\"node__home\" (click)=\"backToHome()\" [ngClass]=\"{ active: isRoot,\n disabled: loading || homeLoading}\">\n <mat-icon *ngIf=\"!homeLoading\">home</mat-icon>\n <mat-spinner *ngIf=\"homeLoading\" [diameter]=\"20\"\n class=\"node__home--loading\"></mat-spinner>\n <span>Home</span>\n </div>\n <mat-tree [dataSource]=\"dataSource\" [treeControl]=\"treeControl\"\n class=\"node__item\">\n <mat-tree-node *matTreeNodeDef=\"let node\" matTreeNodePadding\n [ngClass]=\"{ active: checked(node),disabled: loading || node.isLoading }\"\n (click)=\"selectNode(node)\">\n <button mat-icon-button disabled class=\"node__item--pading\"></button>\n <div class=\"node__item--info\" [style.maxWidth.px]=\"width -50\">\n <mat-icon class=\"folder-icon\">folder</mat-icon>\n <div class=\"node-name\">\n <span>\n {{ node.item.OriginalFileName }}\n </span>\n <span class=\"node-summary\" *ngIf=\"node.item?.TotalFolder ||\n node.item?.TotalFile\">\n <small *ngIf=\"node.item?.TotalFolder\">{{ node.item?.TotalFolder}}\n {{node.item?.TotalFolder> 1 ?\n 'folders':'folder'}}</small>\n <small *ngIf=\"node.item?.TotalFolder && node.item?.TotalFile\">,\n </small>\n <small *ngIf=\"node.item?.TotalFile\">{{ node.item?.TotalFile}}\n {{node.item?.TotalFile> 1 ?\n 'files':'file'}}</small>\n </span>\n </div>\n </div>\n </mat-tree-node>\n <mat-tree-node *matTreeNodeDef=\"let node; when: hasChild\" matTreeNodePadding \n [ngClass]=\"{ active: checked(node), disabled: loading || node.isLoading\n }\">\n <div class=\"d-flex align-items-center\" (click)=\"selectNode(node)\">\n <button mat-icon-button [attr.aria-label]=\"'Toggle ' +\n node.item.OriginalFileName\" matTreeNodeToggle\n [disabled]=\"node.isLoading\">\n <mat-icon *ngIf=\"!node.isLoading\" class=\"mat-icon-rtl-mirror\">\n {{ treeControl.isExpanded(node) ? 'expand_more' : 'chevron_right' }}\n </mat-icon>\n <mat-spinner *ngIf=\"node.isLoading\" [diameter]=\"20\"\n class=\"node__item--loading\"></mat-spinner>\n </button>\n <div class=\"node__item--info\" [style.maxWidth.px]=\"width -50\">\n <mat-icon class=\"folder-icon\">folder</mat-icon>\n <div class=\"node-name\">\n <span>\n {{ node.item.OriginalFileName }}\n </span>\n <span class=\"node-summary\">\n <small *ngIf=\"node.item?.TotalFolder\"><ng-container *ngIf=\"treeControl.isExpanded(node)\"><b>{{getFolderChildrenSize(node.item.AssetId)}}</b>/</ng-container>{{ node.item?.TotalFolder}}\n {{node.item?.TotalFolder> 1 ?\n 'folders':'folder'}}</small>\n <small *ngIf=\"node.item?.TotalFolder && node.item?.TotalFile\">,\n </small>\n <small *ngIf=\"node.item?.TotalFile\">{{ node.item?.TotalFile}}\n {{node.item?.TotalFile> 1 ?\n 'files':'file'}}</small>\n </span>\n </div>\n </div>\n </div>\n <ng-container *ngIf=\"treeControl.isExpanded(node)\"> \n <div *ngIf=\"!!loadingMoreList[node.item.AssetId]\" class=\"mx-2\" [style.minWidth.px]=\"40\">\n <mat-spinner [diameter]=\"20\"\n class=\"node__item--loading\"></mat-spinner>\n </div>\n <button *ngIf=\"!loadingMoreList[node.item.AssetId] && canLoadMore(node)\" matTooltip=\"Load More\" class=\"mx-2\" mat-icon-button (click)=\"loadMoreFolder(node)\" [disabled]=\"loadingMoreList[node.item.AssetId] || homeLoading || loading\">\n <svg xmlns=\"http://www.w3.org/2000/svg\" height=\"24px\" viewBox=\"0 -960 960 960\" width=\"24px\" fill=\"#5f6368\"><path d=\"m482-200 114-113-114-113-42 42 43 43q-28 1-54.5-9T381-381q-20-20-30.5-46T340-479q0-17 4.5-34t12.5-33l-44-44q-17 25-25 53t-8 57q0 38 15 75t44 66q29 29 65 43.5t74 15.5l-38 38 42 42Zm165-170q17-25 25-53t8-57q0-38-14.5-75.5T622-622q-29-29-65.5-43T482-679l38-39-42-42-114 113 114 113 42-42-44-44q27 0 55 10.5t48 30.5q20 20 30.5 46t10.5 52q0 17-4.5 34T603-414l44 44ZM480-80q-83 0-156-31.5T197-197q-54-54-85.5-127T80-480q0-83 31.5-156T197-763q54-54 127-85.5T480-880q83 0 156 31.5T763-763q54 54 85.5 127T880-480q0 83-31.5 156T763-197q-54 54-127 85.5T480-80Zm0-80q134 0 227-93t93-227q0-134-93-227t-227-93q-134 0-227 93t-93 227q0 134 93 227t227 93Zm0-320Z\"/></svg>\n </button>\n </ng-container>\n </mat-tree-node>\n </mat-tree>\n <div class=\"p-2 d-flex flex-column align-items-center justify-content-center\" *ngIf=\"folderTreeMeta.length\">\n <button mat-raised-button *ngIf=\"folderTreeMeta.length !== folderTreeMeta.total\" (click)=\"loadMoreFolder()\" [disabled]=\"loadingMoreList[ROOT_ASSET_ID] || loading || homeLoading\">\n <div class=\"d-flex align-items-center\">\n <mat-spinner [diameter]=\"20\" *ngIf=\"loadingMoreList[ROOT_ASSET_ID]\"></mat-spinner>\n <mat-icon *ngIf=\"!loadingMoreList[ROOT_ASSET_ID]\">expand_more</mat-icon>\n <div class=\"ml-2\">Load More</div>\n </div>\n </button>\n <div class=\"mt-2\" [style.fontSize.px]=\"13\"><b>{{ folderTreeMeta.length }}</b> of <b>{{ folderTreeMeta.total }} folders</b></div>\n </div>\n</div>",
5456
- styles: [":host::ng-deep .node{overflow-x:hidden;height:100%;display:-ms-grid;display:grid;grid-auto-rows:-webkit-max-content;grid-auto-rows:max-content}:host::ng-deep .node-tree{max-height:max(800px,90vh);overflow-y:auto}:host::ng-deep .node__home{padding:8px 10px;display:flex;align-items:center;height:44px}:host::ng-deep .node__home .mat-icon{color:#979797;margin-right:15px;margin-bottom:10px;font-size:32px}:host::ng-deep .node__home .node__home--loading{margin-right:19px}:host::ng-deep .node__item--loading{margin-left:10px}:host::ng-deep .node__item--info{display:flex;align-items:center}:host::ng-deep .node__item--info .folder-icon{display:flex;align-items:center;color:#6fc0ff;font-size:32px;margin-right:20px}:host::ng-deep .node__item--info .node-name{display:block;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}:host::ng-deep .node__item--info .node-name span{display:block;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}:host::ng-deep .node__item--info .node-name .node-summary{margin-top:-5px;color:#979797}:host::ng-deep .node .mat-tree{width:-webkit-max-content!important;width:-moz-max-content!important;width:max-content!important;min-width:100%}:host::ng-deep .node .mat-tree .mat-tree-node{padding:5px 0;min-height:44px}:host::ng-deep .node .mat-tree .mat-tree-node .node__item--pading{height:20px}:host::ng-deep .node .mat-tree-node:hover,:host::ng-deep .node .node__home{transition:.3s;cursor:pointer}:host::ng-deep .node .mat-tree-node:hover:hover,:host::ng-deep .node .node__home:hover{background-color:#e8e8e8}:host::ng-deep .node .active{background-color:#f0f0f0}:host::ng-deep .node .disabled{pointer-events:none}"]
5531
+ styles: [":host::ng-deep .node{overflow-x:hidden;height:100%;display:grid;grid-auto-rows:max-content}:host::ng-deep .node-tree{max-height:max(800px,90vh);overflow-y:auto}:host::ng-deep .node__home{padding:8px 10px;display:flex;align-items:center;height:44px}:host::ng-deep .node__home .mat-icon{color:#979797;margin-right:15px;margin-bottom:10px;font-size:32px}:host::ng-deep .node__home .node__home--loading{margin-right:19px}:host::ng-deep .node__item--loading{margin-left:10px}:host::ng-deep .node__item--info{display:flex;align-items:center}:host::ng-deep .node__item--info .folder-icon{display:flex;align-items:center;color:#6fc0ff;font-size:32px;margin-right:20px}:host::ng-deep .node__item--info .node-name{display:block;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}:host::ng-deep .node__item--info .node-name span{display:block;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}:host::ng-deep .node__item--info .node-name .node-summary{margin-top:-5px;color:#979797}:host::ng-deep .node .mat-tree{width:-moz-max-content!important;width:max-content!important;min-width:100%}:host::ng-deep .node .mat-tree .mat-tree-node{padding:5px 0;min-height:44px}:host::ng-deep .node .mat-tree .mat-tree-node .node__item--pading{height:20px}:host::ng-deep .node .mat-tree-node:hover,:host::ng-deep .node .node__home{transition:.3s;cursor:pointer}:host::ng-deep .node .mat-tree-node:hover:hover,:host::ng-deep .node .node__home:hover{background-color:#e8e8e8}:host::ng-deep .node .active{background-color:#f0f0f0}:host::ng-deep .node .disabled{pointer-events:none}"]
5457
5532
  }] }
5458
5533
  ];
5459
5534
  /** @nocollapse */
@@ -5521,6 +5596,7 @@ if (false) {
5521
5596
 
5522
5597
  /**
5523
5598
  * @fileoverview added by tsickle
5599
+ * Generated from: lib/components/partial/breadcrumb/breadcrumb.component.ts
5524
5600
  * @suppress {checkTypes,constantProperty,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
5525
5601
  */
5526
5602
  var BreadcrumbComponent = /** @class */ (function () {
@@ -5528,7 +5604,7 @@ var BreadcrumbComponent = /** @class */ (function () {
5528
5604
  this.nodeTreeService = nodeTreeService;
5529
5605
  this.svc = svc;
5530
5606
  this.changeDetectorRef = changeDetectorRef;
5531
- this.unsubscribe$ = new Subject$1();
5607
+ this.unsubscribe$ = new Subject();
5532
5608
  this.currentFolderHierarchy = [];
5533
5609
  this.maximumShownLevel = 3;
5534
5610
  this.bindSubscriber();
@@ -5655,13 +5731,14 @@ if (false) {
5655
5731
 
5656
5732
  /**
5657
5733
  * @fileoverview added by tsickle
5734
+ * Generated from: lib/components/partial/search-box/search-box.component.ts
5658
5735
  * @suppress {checkTypes,constantProperty,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
5659
5736
  */
5660
5737
  var SearchBoxComponent = /** @class */ (function () {
5661
5738
  function SearchBoxComponent(assetService, svc) {
5662
5739
  this.assetService = assetService;
5663
5740
  this.svc = svc;
5664
- this.destroy$ = new Subject$1();
5741
+ this.destroy$ = new Subject();
5665
5742
  this.value = '';
5666
5743
  this.folderId = '';
5667
5744
  this.bindingSubscriber();
@@ -5767,11 +5844,16 @@ var SearchBoxComponent = /** @class */ (function () {
5767
5844
  * @return {?}
5768
5845
  */
5769
5846
  function (_a) {
5770
- var _b = __read(_a, 2), folders = _b[0], assets = _b[1];
5847
+ var _b = __read(_a, 2), folders = _b[0], assetsRes = _b[1];
5848
+ /** @type {?} */
5849
+ var pagination = assetsRes && assetsRes.Meta || {};
5850
+ /** @type {?} */
5851
+ var assets = assetsRes && assetsRes.Data && assetsRes.Data.Children || [];
5852
+ /** @type {?} */
5853
+ var totalFile = assetsRes && assetsRes.Data && assetsRes.Data.TotalFile || 0;
5771
5854
  _this.assetService.setFolderList(folders.Data, { Total: folders.Data.TotalFolder });
5772
- _this.assetService.setAssetList(assets.Data.Children, assets.Meta);
5773
- }))
5774
- .add((/**
5855
+ _this.assetService.setAssetList(assets, pagination, totalFile);
5856
+ })).add((/**
5775
5857
  * @return {?}
5776
5858
  */
5777
5859
  function () {
@@ -5829,6 +5911,7 @@ if (false) {
5829
5911
 
5830
5912
  /**
5831
5913
  * @fileoverview added by tsickle
5914
+ * Generated from: lib/components/partial/sort-items/sort-items.component.ts
5832
5915
  * @suppress {checkTypes,constantProperty,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
5833
5916
  */
5834
5917
  var SortItemsComponent = /** @class */ (function () {
@@ -5930,6 +6013,7 @@ if (false) {
5930
6013
 
5931
6014
  /**
5932
6015
  * @fileoverview added by tsickle
6016
+ * Generated from: lib/components/partial/asset-wrapper/asset-wrapper.component.ts
5933
6017
  * @suppress {checkTypes,constantProperty,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
5934
6018
  */
5935
6019
  var AssetWrapperComponent = /** @class */ (function () {
@@ -5940,7 +6024,7 @@ var AssetWrapperComponent = /** @class */ (function () {
5940
6024
  this.hasAccessPermission = true;
5941
6025
  this.hasArchivePermission = true;
5942
6026
  this.assets = new EventEmitter();
5943
- this.unsubscribe$ = new Subject$1();
6027
+ this.unsubscribe$ = new Subject();
5944
6028
  this.nodeTreeMinWidth = 300;
5945
6029
  this.nodeTreeMaxWidth = 700;
5946
6030
  }
@@ -6003,7 +6087,7 @@ var AssetWrapperComponent = /** @class */ (function () {
6003
6087
  AssetWrapperComponent.decorators = [
6004
6088
  { type: Component, args: [{
6005
6089
  selector: 'lib-asset-wrapper',
6006
- template: "<div class=\"asset-wrapper\">\n <div class=\"asset-header\" *ngIf=\"header\">\n <div class=\"asset-header__left asset-header__title\" #title>\n <lib-breadcrumb></lib-breadcrumb>\n </div>\n <div class=\"asset-header__right asset-header__actions\" #actions>\n <lib-search-box></lib-search-box>\n </div>\n </div>\n <div class=\"asset-body\">\n <lib-drag-to-resize (resizeCompleted)=\"onResize($event)\" class=\"asset-body__node-tree\" [minWidth]=\"nodeTreeMinWidth\" [maxWidth]=\"nodeTreeMaxWidth\">\n <lib-node-tree [width]=\"nodeTreeWidth\"></lib-node-tree>\n </lib-drag-to-resize>\n <lib-node-details \n class=\"asset-body__node-details\" \n [style.maxWidth]=\"nodeDetailsWidth\"\n [hasModifyPermission]=\"hasModifyPermission\"\n [hasAccessPermission]=\"hasAccessPermission\"\n [hasArchivePermission]=\"hasArchivePermission\"\n ></lib-node-details>\n </div>\n</div>",
6090
+ template: "<div class=\"asset-wrapper\">\n <div class=\"asset-header\" *ngIf=\"header\">\n <div class=\"asset-header__left asset-header__title\" #title>\n <lib-breadcrumb></lib-breadcrumb>\n </div>\n <div class=\"asset-header__right asset-header__actions\" #actions>\n <lib-search-box></lib-search-box>\n </div>\n </div>\n <div class=\"asset-body\">\n <lib-drag-to-resize (resizeCompleted)=\"onResize($event)\" class=\"asset-body__node-tree\" [minWidth]=\"nodeTreeMinWidth\" [maxWidth]=\"nodeTreeMaxWidth\">\n <lib-node-tree [width]=\"nodeTreeWidth\"></lib-node-tree>\n </lib-drag-to-resize>\n <lib-node-details \n class=\"asset-body__node-details\"\n [isDialog]=\"isDialog\"\n [style.maxWidth]=\"nodeDetailsWidth\"\n [hasModifyPermission]=\"hasModifyPermission\"\n [hasAccessPermission]=\"hasAccessPermission\"\n [hasArchivePermission]=\"hasArchivePermission\"\n ></lib-node-details>\n </div>\n</div>",
6007
6091
  styles: [":host::ng-deep .mat-dialog-title{padding:24px}:host::ng-deep .mat-dialog-title .lib-modal--close{padding:10px;position:absolute;top:10px;right:10px;z-index:1}:host::ng-deep .mat-dialog-actions{padding-left:24px;padding-right:24px}:host::ng-deep .asset-wrapper{display:flex;flex-direction:column;height:100%;width:100%;overflow-x:hidden}:host::ng-deep .asset-wrapper .asset-header{display:flex;padding:20px 15px;border-bottom:1px solid #d8d8d8;justify-content:space-between;align-items:center}:host::ng-deep .asset-wrapper .asset-body{display:flex;align-items:stretch}:host::ng-deep .asset-wrapper .asset-body__node-tree{border-right:1px solid #d8d8d8}:host::ng-deep .asset-wrapper .asset-body__node-details{flex:1}@media screen and (max-width:768px){:host::ng-deep .asset-wrapper .asset-header{flex-direction:column;justify-content:flex-start;align-items:flex-start;gap:10px}:host::ng-deep .asset-wrapper .asset-body{flex-direction:column;justify-content:flex-start}:host::ng-deep .asset-wrapper .asset-body__node-tree{width:100%}:host::ng-deep .asset-wrapper .asset-body__node-details{max-width:100%!important}}::ng-deep .mat-tooltip.width-auto{max-width:100%!important}"]
6008
6092
  }] }
6009
6093
  ];
@@ -6013,6 +6097,7 @@ var AssetWrapperComponent = /** @class */ (function () {
6013
6097
  ]; };
6014
6098
  AssetWrapperComponent.propDecorators = {
6015
6099
  header: [{ type: Input }],
6100
+ isDialog: [{ type: Input }],
6016
6101
  hasModifyPermission: [{ type: Input }],
6017
6102
  hasAccessPermission: [{ type: Input }],
6018
6103
  hasArchivePermission: [{ type: Input }],
@@ -6024,6 +6109,8 @@ if (false) {
6024
6109
  /** @type {?} */
6025
6110
  AssetWrapperComponent.prototype.header;
6026
6111
  /** @type {?} */
6112
+ AssetWrapperComponent.prototype.isDialog;
6113
+ /** @type {?} */
6027
6114
  AssetWrapperComponent.prototype.hasModifyPermission;
6028
6115
  /** @type {?} */
6029
6116
  AssetWrapperComponent.prototype.hasAccessPermission;
@@ -6051,6 +6138,7 @@ if (false) {
6051
6138
 
6052
6139
  /**
6053
6140
  * @fileoverview added by tsickle
6141
+ * Generated from: lib/components/partial/node-details/node-details.component.ts
6054
6142
  * @suppress {checkTypes,constantProperty,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
6055
6143
  */
6056
6144
  var NodeDetailsComponent = /** @class */ (function () {
@@ -6063,9 +6151,9 @@ var NodeDetailsComponent = /** @class */ (function () {
6063
6151
  this.hasModifyPermission = true;
6064
6152
  this.hasAccessPermission = true;
6065
6153
  this.hasArchivePermission = true;
6066
- this.unsubscribe$ = new Subject$1();
6154
+ this.unsubscribe$ = new Subject();
6067
6155
  this.selectedAssets = [];
6068
- this.loading$ = new BehaviorSubject$1(false);
6156
+ this.loading$ = new BehaviorSubject(false);
6069
6157
  this.bindSubscriber();
6070
6158
  }
6071
6159
  /**
@@ -6118,7 +6206,7 @@ var NodeDetailsComponent = /** @class */ (function () {
6118
6206
  * @param {?} res
6119
6207
  * @return {?}
6120
6208
  */
6121
- function (res) { return of$1(res); })))
6209
+ function (res) { return of(res); })))
6122
6210
  .subscribe((/**
6123
6211
  * @param {?} globalLoading
6124
6212
  * @return {?}
@@ -6150,7 +6238,7 @@ var NodeDetailsComponent = /** @class */ (function () {
6150
6238
  * @param {?} res
6151
6239
  * @return {?}
6152
6240
  */
6153
- function (res) { return of$1(res); })))
6241
+ function (res) { return of(res); })))
6154
6242
  .subscribe((/**
6155
6243
  * @param {?} currentFolderId
6156
6244
  * @return {?}
@@ -6170,7 +6258,7 @@ var NodeDetailsComponent = /** @class */ (function () {
6170
6258
  * @param {?} res
6171
6259
  * @return {?}
6172
6260
  */
6173
- function (res) { return of$1(res); })))
6261
+ function (res) { return of(res); })))
6174
6262
  .subscribe((/**
6175
6263
  * @return {?}
6176
6264
  */
@@ -6189,7 +6277,7 @@ var NodeDetailsComponent = /** @class */ (function () {
6189
6277
  * @param {?} res
6190
6278
  * @return {?}
6191
6279
  */
6192
- function (res) { return of$1(res); })))
6280
+ function (res) { return of(res); })))
6193
6281
  .subscribe((/**
6194
6282
  * @return {?}
6195
6283
  */
@@ -6395,8 +6483,14 @@ var NodeDetailsComponent = /** @class */ (function () {
6395
6483
  */
6396
6484
  function (_a) {
6397
6485
  var _b = __read(_a, 2), foldersRes = _b[0], assetsRes = _b[1];
6486
+ /** @type {?} */
6487
+ var pagination = assetsRes && assetsRes.Meta || {};
6488
+ /** @type {?} */
6489
+ var assets = assetsRes && assetsRes.Data && assetsRes.Data.Children || [];
6490
+ /** @type {?} */
6491
+ var totalFile = assetsRes && assetsRes.Data && assetsRes.Data.TotalFile || 0;
6398
6492
  _this.setFolderList(foldersRes);
6399
- _this.assetService.setAssetList(assetsRes.Data.Children, assetsRes.Meta);
6493
+ _this.assetService.setAssetList(assets, pagination, totalFile);
6400
6494
  if (foldersRes.Data && foldersRes.Data.Children) {
6401
6495
  foldersRes.Data.Children.forEach((/**
6402
6496
  * @param {?} node
@@ -6496,8 +6590,8 @@ var NodeDetailsComponent = /** @class */ (function () {
6496
6590
  NodeDetailsComponent.decorators = [
6497
6591
  { type: Component, args: [{
6498
6592
  selector: 'lib-node-details',
6499
- template: "<div class=\"node-details custom-scrollbar\">\n <div class=\"node-header\">\n <mat-progress-bar [style.visibility]=\"(loading$ | async) ? 'visible' : 'hidden'\" mode=\"indeterminate\">\n </mat-progress-bar>\n <div class=\"node-header-content\">\n <div class=\"node-header-content__left\">\n <H5 class=\"node-header-content__left--title\">\n <ng-container *ngIf=\"assetService?.keyword\">\n Search results for <span>{{ assetService?.keyword }}</span> in\n </ng-container>\n {{ currentFolder?.OriginalFileName }}\n </H5>\n <p *ngIf=\"!noResults\" class=\"node-header-content__left--subtitle\">\n {{ assetService?.folderTotal }}\n {{ assetService?.folderTotal > 1 ? 'folders' : 'folder' }},\n {{ assetService?.fileTotal }}\n {{ assetService?.fileTotal > 1 ? 'files': 'file' }}\n </p>\n </div>\n <div class=\"node-header-content__right\">\n <div class=\"button-wrapper\">\n <button mat-raised-button [disabled]=\"!selectedAssets?.length || !hasArchivePermission\" (click)=\"deleteAssets()\" color=\"warn\">\n <span>{{selectedAssets?.length > 1 ? 'Delete assets' : 'Delete asset'}}</span>\n <span *ngIf=\"selectedAssets?.length\" class=\"count\">({{ selectedAssets.length }})</span>\n </button>\n <button mat-raised-button color=\"primary\" (click)=\"openUploadDialog()\" [disabled]=\"!currentFolder?.AssetId || !hasModifyPermission\">\n Upload asset\n </button>\n <button mat-raised-button color=\"primary\" (click)=\"addFolder()\" [disabled]=\"!currentFolder?.AssetId || !hasModifyPermission\">\n Add folder\n </button>\n </div>\n </div>\n </div>\n </div>\n <div class=\"node-body\">\n <lib-search-not-found *ngIf=\"noResults; else contentAsset\"></lib-search-not-found>\n <ng-template #contentAsset>\n <lib-folder-list\n class=\"node-body__section\"\n [folders]=\"currentFolder?.Children\"\n [pagination]=\"folderPagination\"\n [hasModifyPermission]=\"hasModifyPermission\"\n [hasAccessPermission]=\"hasAccessPermission\"\n [hasArchivePermission]=\"hasArchivePermission\"\n (onPageChange)=\"onFolderPageChange($event)\"\n ></lib-folder-list>\n <lib-asset-list\n [assets]=\"assets\"\n [hasModifyPermission]=\"hasModifyPermission\"\n [hasAccessPermission]=\"hasAccessPermission\"\n [hasArchivePermission]=\"hasArchivePermission\"\n ></lib-asset-list>\n </ng-template>\n </div>\n</div>",
6500
- styles: [":host::ng-deep .node-details{max-height:100%;overflow-y:auto}:host::ng-deep .node-details .node-header{position:-webkit-sticky;position:sticky;top:0;background-color:#fff;z-index:20}:host::ng-deep .node-details .node-header-content{padding:10px 20px;display:flex;justify-content:space-between;flex-wrap:wrap;gap:10px}:host::ng-deep .node-details .node-header-content__left--title{margin-bottom:5px}:host::ng-deep .node-details .node-header-content__left--title span{color:#fb3458}:host::ng-deep .node-details .node-header-content__left--subtitle{margin:0;color:#979797;font-size:14px}:host::ng-deep .node-details .node-header-content__right{flex:1}:host::ng-deep .node-details .node-header-content__right .button-wrapper{display:flex;gap:15px;justify-content:flex-end}:host::ng-deep .node-details .node-header-content__right .button-wrapper .count{margin-left:3px}:host::ng-deep .node-details .node-body{padding:0 20px}:host::ng-deep .node-details .node-body__section{display:block;margin-bottom:15px}"]
6593
+ template: "<div class=\"node-details custom-scrollbar\">\n <div class=\"node-header\">\n <mat-progress-bar [style.visibility]=\"(loading$ | async) ? 'visible' : 'hidden'\" mode=\"indeterminate\">\n </mat-progress-bar>\n <div class=\"node-header-content\">\n <div class=\"node-header-content__left\">\n <H5 class=\"node-header-content__left--title\">\n <ng-container *ngIf=\"assetService?.keyword\">\n Search results for <span>{{ assetService?.keyword }}</span> in\n </ng-container>\n {{ currentFolder?.OriginalFileName }}\n </H5>\n <p *ngIf=\"!noResults\" class=\"node-header-content__left--subtitle\">\n {{ assetService?.folderTotal }}\n {{ assetService?.folderTotal > 1 ? 'folders' : 'folder' }},\n {{ assetService?.fileTotal }}\n {{ assetService?.fileTotal > 1 ? 'files': 'file' }}\n </p>\n </div>\n <div class=\"node-header-content__right\">\n <div class=\"button-wrapper\">\n <button mat-raised-button [disabled]=\"!selectedAssets?.length || !hasArchivePermission\" (click)=\"deleteAssets()\" color=\"warn\">\n <span>{{selectedAssets?.length > 1 ? 'Delete assets' : 'Delete asset'}}</span>\n <span *ngIf=\"selectedAssets?.length\" class=\"count\">({{ selectedAssets.length }})</span>\n </button>\n <button mat-raised-button color=\"primary\" (click)=\"openUploadDialog()\" [disabled]=\"!currentFolder?.AssetId || !hasModifyPermission\">\n Upload asset\n </button>\n <button mat-raised-button color=\"primary\" (click)=\"addFolder()\" [disabled]=\"!currentFolder?.AssetId || !hasModifyPermission\">\n Add folder\n </button>\n </div>\n </div>\n </div>\n </div>\n <div class=\"node-body\">\n <lib-search-not-found *ngIf=\"noResults; else contentAsset\"></lib-search-not-found>\n <ng-template #contentAsset>\n <lib-folder-list\n class=\"node-body__section\"\n [folders]=\"currentFolder?.Children\"\n [pagination]=\"folderPagination\"\n [hasModifyPermission]=\"hasModifyPermission\"\n [hasAccessPermission]=\"hasAccessPermission\"\n [hasArchivePermission]=\"hasArchivePermission\"\n (onPageChange)=\"onFolderPageChange($event)\"\n ></lib-folder-list>\n <lib-asset-list\n [assets]=\"assets\"\n [isDialog]=\"isDialog\"\n [hasModifyPermission]=\"hasModifyPermission\"\n [hasAccessPermission]=\"hasAccessPermission\"\n [hasArchivePermission]=\"hasArchivePermission\"\n ></lib-asset-list>\n </ng-template>\n </div>\n</div>",
6594
+ styles: [":host::ng-deep .node-details{max-height:100%;overflow-y:auto}:host::ng-deep .node-details .node-header{position:sticky;top:0;background-color:#fff;z-index:20}:host::ng-deep .node-details .node-header-content{padding:10px 20px;display:flex;justify-content:space-between;flex-wrap:wrap;gap:10px}:host::ng-deep .node-details .node-header-content__left--title{margin-bottom:5px}:host::ng-deep .node-details .node-header-content__left--title span{color:#fb3458}:host::ng-deep .node-details .node-header-content__left--subtitle{margin:0;color:#979797;font-size:14px}:host::ng-deep .node-details .node-header-content__right{flex:1}:host::ng-deep .node-details .node-header-content__right .button-wrapper{display:flex;gap:15px;justify-content:flex-end}:host::ng-deep .node-details .node-header-content__right .button-wrapper .count{margin-left:3px}:host::ng-deep .node-details .node-body{padding:0 20px}:host::ng-deep .node-details .node-body__section{display:block;margin-bottom:15px}"]
6501
6595
  }] }
6502
6596
  ];
6503
6597
  /** @nocollapse */
@@ -6509,6 +6603,7 @@ var NodeDetailsComponent = /** @class */ (function () {
6509
6603
  { type: ChangeDetectorRef }
6510
6604
  ]; };
6511
6605
  NodeDetailsComponent.propDecorators = {
6606
+ isDialog: [{ type: Input }],
6512
6607
  hasModifyPermission: [{ type: Input }],
6513
6608
  hasAccessPermission: [{ type: Input }],
6514
6609
  hasArchivePermission: [{ type: Input }]
@@ -6516,6 +6611,8 @@ var NodeDetailsComponent = /** @class */ (function () {
6516
6611
  return NodeDetailsComponent;
6517
6612
  }());
6518
6613
  if (false) {
6614
+ /** @type {?} */
6615
+ NodeDetailsComponent.prototype.isDialog;
6519
6616
  /** @type {?} */
6520
6617
  NodeDetailsComponent.prototype.hasModifyPermission;
6521
6618
  /** @type {?} */
@@ -6560,6 +6657,7 @@ if (false) {
6560
6657
 
6561
6658
  /**
6562
6659
  * @fileoverview added by tsickle
6660
+ * Generated from: lib/components/ui/drag-to-resize/drag-to-resize.component.ts
6563
6661
  * @suppress {checkTypes,constantProperty,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
6564
6662
  */
6565
6663
  var DragToResizeComponent = /** @class */ (function () {
@@ -6675,28 +6773,88 @@ if (false) {
6675
6773
 
6676
6774
  /**
6677
6775
  * @fileoverview added by tsickle
6776
+ * Generated from: lib/configs/admin.config.ts
6678
6777
  * @suppress {checkTypes,constantProperty,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
6679
6778
  */
6680
6779
  /** @type {?} */
6681
6780
  var AdminConfig = {
6682
- locale: 'en-US',
6683
- timeZone: 'local',
6781
+ locale: "en-US",
6782
+ countryName: {
6783
+ US: "United States",
6784
+ CA: "Canada",
6785
+ },
6684
6786
  format: {
6685
- date: 'MM/DD/YYYY',
6686
- dayMonth: 'MMM DD',
6687
- dateTime: 'MM/DD/YYYY HH:mm',
6688
- fullDateTime: 'MM/DD/YYYY HH:mm:ss',
6689
- dateTimeAM: 'MM/DD/YYYY hh:mm A',
6690
- apiDate: 'YYYY/MM/DD',
6691
- apiDateTime: 'YYYY-MM-DD[T]HH:mm:ssZ',
6692
- apiDateTimeNoZ: 'YYYY-MM-DD[T]HH:mm:ss',
6693
- apiDateMonthYear: 'MMM DD YYYY',
6694
- urlParam: 'YYYY-MM-DD',
6787
+ date: "MM/DD/YYYY",
6788
+ dayMonth: "MMM DD",
6789
+ dateTime: "MM/DD/YYYY HH:mm",
6790
+ fullDateTime: "MM/DD/YYYY HH:mm:ss",
6791
+ dateTimeAM: "MM/DD/YYYY hh:mm A",
6792
+ apiDate: "YYYY/MM/DD",
6793
+ apiDateTime: "YYYY-MM-DD[T]HH:mm:ssZ",
6794
+ apiDateTimeNoZ: "YYYY-MM-DD[T]HH:mm:ss",
6795
+ apiDateMonthYear: "MMM DD YYYY",
6796
+ urlParam: "YYYY-MM-DD",
6695
6797
  },
6798
+ mask: {
6799
+ phone: "(000) 000-0000",
6800
+ date: "M0/d0/0000",
6801
+ zipCode: {
6802
+ US: "00000",
6803
+ CA: "AAA AAA",
6804
+ },
6805
+ money: "0*.00",
6806
+ number: "0*.00",
6807
+ integer: "0*",
6808
+ tax: "00.0000",
6809
+ sku: "0000000000000",
6810
+ upca: "000000000000",
6811
+ pin: "000000",
6812
+ mi9ProductUpc: "00000000000000",
6813
+ },
6814
+ regex: {
6815
+ password: "^(?=.*[a-zA-Z])(?=.*[0-9]).{6,12}",
6816
+ bigyPassword: "^(?=.*[a-zA-Z])(?=.*[0-9]).{8,}$",
6817
+ url: /^(?:http(s)?:\/\/)?[\w.-]+(?:\.[\w\.-]+)+[\w\-\.%_~:/?#[\]@!\$&'\(\)\*\+,;=.]+$/,
6818
+ shortCode: "^[A-Z0-9_]{1,20}$",
6819
+ longCode: "^[A-Z0-9_]{1,100}$",
6820
+ email: /^[\w-\.]+@([\w]+[\.-])+[\w-]{2,}$/,
6821
+ textWithoutSpecialChars: /^[a-zA-Z0-9\. ]+$/,
6822
+ textWithSpecialChars: /^[a-zA-Z0-9_-]+$/,
6823
+ // Allow char '_ -'
6824
+ textWithSpaceAndSpecialChars: /^[a-zA-Z0-9\. /_-]+$/,
6825
+ // Allow space and char '_ - /'
6826
+ address: /^[a-zA-Z0-9][a-zA-Z0-9\_\/\. ]+$/,
6827
+ leadTimeKeyPress: /^[0-9mhdw ]+$/,
6828
+ leadTime: [
6829
+ /^(?:(?<minutes>\d{0,2})m\s*)?(?:(?<hours>\d{0,3})h\s*)?(?:(?<days>\d{0,2})d\s*)?(?:(?<weeks>\d{0,2})w\s*)?$/,
6830
+ /^(?:(?<weeks>\d{0,2})w\s*)?(?:(?<days>\d{0,2})d\s*)?(?:(?<hours>\d{0,3})h\s*)?(?:(?<minutes>\d{0,2})m\s*)?$/,
6831
+ ],
6832
+ userPIN: /^[0-9]{6}$/,
6833
+ storeCode: /^[0-9]{1,10}$/,
6834
+ sku: /^[0-9]{1,14}$/,
6835
+ sku13: /^[0-9]{1,13}$/,
6836
+ keyConfigProvider: /^[a-zA-Z0-9!*()_+\-\[\]{}:\\|,.<>\/]*$/,
6837
+ //not allow character '?#%='
6838
+ textNoSpace: /^[a-zA-Z]+$/,
6839
+ textWithSpace: /^(\s+\S+\s*)*(?!\s).*$/,
6840
+ //not allow a string containing only white spaces
6841
+ slug: /^[A-Za-z0-9]+(?:-[A-Za-z0-9]+)*$/,
6842
+ tag: /^[a-zA-Z0-9](-?_?[a-zA-Z0-9])*$/,
6843
+ noSpace: /^[a-zA-Z0-9!*()_+\-\[\]{}:\\|,.<>\/\?\=\&\%\#\@]*$/,
6844
+ },
6845
+ pattern: {},
6846
+ pipe: {},
6847
+ pageSizeOptions: [5, 10, 25, 50, 100],
6848
+ maxOrderNumber: 99999,
6849
+ // TinyMCE
6850
+ tinyHeightDefault: "75vh",
6851
+ tinyMCEPluginConfig: "print preview fullpage importcss searchreplace autolink autosave save directionality code visualblocks visualchars fullscreen image link media template codesample table charmap hr pagebreak nonbreaking anchor toc insertdatetime advlist lists wordcount imagetools textpattern noneditable help charmap quickbars emoticons",
6852
+ tinyMCEToolbarConfig: "undo redo | bold italic underline strikethrough | fontselect fontsizeselect formatselect | fileManagerButton | alignleft aligncenter alignright alignjustify | outdent indent | numlist bullist checklist | forecolor backcolor | pagebreak | charmap emoticons | fullscreen preview save print | image media template link anchor codesample | ltr rtl",
6696
6853
  };
6697
6854
 
6698
6855
  /**
6699
6856
  * @fileoverview added by tsickle
6857
+ * Generated from: lib/pipes/datetime.pipe.ts
6700
6858
  * @suppress {checkTypes,constantProperty,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
6701
6859
  */
6702
6860
  /** @type {?} */
@@ -6775,6 +6933,7 @@ if (false) {
6775
6933
 
6776
6934
  /**
6777
6935
  * @fileoverview added by tsickle
6936
+ * Generated from: lib/asset-management.module.ts
6778
6937
  * @suppress {checkTypes,constantProperty,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
6779
6938
  */
6780
6939
  // SERVICES
@@ -6814,16 +6973,6 @@ var COMPONENTS = [
6814
6973
  AssetWrapperComponent,
6815
6974
  AssetManagementDialogComponent,
6816
6975
  ];
6817
- /** @type {?} */
6818
- var ENTRY_COMPONENTS = [
6819
- ModalComponent,
6820
- UploadDialogComponent,
6821
- AddFolderDialogComponent,
6822
- EditFolderDialogComponent,
6823
- DeleteDialogComponent,
6824
- AssetDialogComponent,
6825
- AssetManagementDialogComponent,
6826
- ];
6827
6976
  /**
6828
6977
  * @param {?} config
6829
6978
  * @return {?}
@@ -6895,7 +7044,6 @@ var AssetManagementModule = /** @class */ (function () {
6895
7044
  multi: true,
6896
7045
  }
6897
7046
  ]),
6898
- entryComponents: __spread(ENTRY_COMPONENTS),
6899
7047
  },] }
6900
7048
  ];
6901
7049
  /** @nocollapse */
@@ -6905,13 +7053,15 @@ var AssetManagementModule = /** @class */ (function () {
6905
7053
 
6906
7054
  /**
6907
7055
  * @fileoverview added by tsickle
7056
+ * Generated from: public-api.ts
6908
7057
  * @suppress {checkTypes,constantProperty,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
6909
7058
  */
6910
7059
 
6911
7060
  /**
6912
7061
  * @fileoverview added by tsickle
7062
+ * Generated from: rs-pk-asset-management.ts
6913
7063
  * @suppress {checkTypes,constantProperty,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
6914
7064
  */
6915
7065
 
6916
- 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 };
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 };
6917
7067
  //# sourceMappingURL=rs-pk-asset-management.js.map