@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
@@ -7,7 +7,7 @@ import { MatInputModule } from '@angular/material/input';
7
7
  import { MatIconModule } from '@angular/material/icon';
8
8
  import { MatTooltipModule } from '@angular/material/tooltip';
9
9
  import { MatTreeModule } from '@angular/material/tree';
10
- import { MatPaginator as MatPaginator$1, MatPaginatorModule } from '@angular/material/paginator';
10
+ import { MatPaginator, MatPaginatorModule } from '@angular/material/paginator';
11
11
  import { MatTableModule } from '@angular/material/table';
12
12
  import { MatProgressBarModule } from '@angular/material/progress-bar';
13
13
  import { MatMenuModule } from '@angular/material/menu';
@@ -15,20 +15,16 @@ import { MatCheckboxModule } from '@angular/material/checkbox';
15
15
  import { MatSelectModule } from '@angular/material/select';
16
16
  import { MatProgressSpinnerModule } from '@angular/material/progress-spinner';
17
17
  import { HttpClient, HttpHandler, HttpParams, HttpHeaders } from '@angular/common/http';
18
- import { BehaviorSubject, Subject, merge, of as of$1 } from 'rxjs';
18
+ import { BehaviorSubject, Subject, of, merge, combineLatest } from 'rxjs';
19
19
  import { __awaiter } from 'tslib';
20
- import { BehaviorSubject as BehaviorSubject$1 } from 'rxjs/internal/BehaviorSubject';
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
  /**
@@ -193,6 +189,7 @@ const ROOT_ASSET_ID = 'ROOT';
193
189
 
194
190
  /**
195
191
  * @fileoverview added by tsickle
192
+ * Generated from: lib/models/asset-file.model.ts
196
193
  * @suppress {checkTypes,constantProperty,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
197
194
  */
198
195
  class AssetFileUploadModel {
@@ -250,6 +247,7 @@ if (false) {
250
247
 
251
248
  /**
252
249
  * @fileoverview added by tsickle
250
+ * Generated from: lib/models/file.model.ts
253
251
  * @suppress {checkTypes,constantProperty,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
254
252
  */
255
253
  /**
@@ -341,6 +339,7 @@ if (false) {
341
339
 
342
340
  /**
343
341
  * @fileoverview added by tsickle
342
+ * Generated from: lib/models/node-tree.model.ts
344
343
  * @suppress {checkTypes,constantProperty,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
345
344
  */
346
345
  /**
@@ -373,16 +372,18 @@ if (false) {
373
372
 
374
373
  /**
375
374
  * @fileoverview added by tsickle
375
+ * Generated from: lib/models/file-type.enum.ts
376
376
  * @suppress {checkTypes,constantProperty,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
377
377
  */
378
378
  /** @enum {string} */
379
379
  const FileTypeEnum = {
380
- IMAGE: 'Image',
381
- DOCUMENT: 'Document',
380
+ IMAGE: "Image",
381
+ DOCUMENT: "Document",
382
382
  };
383
383
 
384
384
  /**
385
385
  * @fileoverview added by tsickle
386
+ * Generated from: lib/models/sort.enum.ts
386
387
  * @suppress {checkTypes,constantProperty,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
387
388
  */
388
389
  /** @enum {number} */
@@ -404,11 +405,13 @@ TypeSort[TypeSort.ASC] = 'ASC';
404
405
 
405
406
  /**
406
407
  * @fileoverview added by tsickle
408
+ * Generated from: lib/models/index.ts
407
409
  * @suppress {checkTypes,constantProperty,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
408
410
  */
409
411
 
410
412
  /**
411
413
  * @fileoverview added by tsickle
414
+ * Generated from: lib/services/env-config.service.ts
412
415
  * @suppress {checkTypes,constantProperty,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
413
416
  */
414
417
  /**
@@ -428,6 +431,7 @@ const AM_CONFIG = new InjectionToken('asset.man.config.angular');
428
431
 
429
432
  /**
430
433
  * @fileoverview added by tsickle
434
+ * Generated from: lib/services/base.service.ts
431
435
  * @suppress {checkTypes,constantProperty,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
432
436
  */
433
437
  class BaseHttpClient extends HttpClient {
@@ -474,6 +478,7 @@ if (false) {
474
478
 
475
479
  /**
476
480
  * @fileoverview added by tsickle
481
+ * Generated from: lib/services/asset.service.ts
477
482
  * @suppress {checkTypes,constantProperty,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
478
483
  */
479
484
  class AssetService {
@@ -556,10 +561,11 @@ class AssetService {
556
561
  /**
557
562
  * @param {?} assets
558
563
  * @param {?=} pagination
564
+ * @param {?=} totalFile
559
565
  * @return {?}
560
566
  */
561
- setAssetList(assets, pagination) {
562
- this.setPagination(pagination);
567
+ setAssetList(assets, pagination, totalFile) {
568
+ this.setPagination(pagination, totalFile);
563
569
  this.assetList$.next(assets);
564
570
  }
565
571
  /**
@@ -578,11 +584,12 @@ class AssetService {
578
584
  /**
579
585
  * @private
580
586
  * @param {?} pagination
587
+ * @param {?} totalFile
581
588
  * @return {?}
582
589
  */
583
- setPagination(pagination) {
590
+ setPagination(pagination, totalFile) {
584
591
  if (pagination) {
585
- this.fileTotal = pagination.Total;
592
+ this.fileTotal = totalFile || 0;
586
593
  this.pageIndex = pagination.PageIndex;
587
594
  this.pageSize = pagination.PageSize;
588
595
  }
@@ -736,6 +743,7 @@ if (false) {
736
743
 
737
744
  /**
738
745
  * @fileoverview added by tsickle
746
+ * Generated from: lib/asset-management.service.ts
739
747
  * @suppress {checkTypes,constantProperty,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
740
748
  */
741
749
  /** @type {?} */
@@ -767,7 +775,7 @@ AssetManagementService.decorators = [
767
775
  ];
768
776
  /** @nocollapse */
769
777
  AssetManagementService.ctorParameters = () => [];
770
- /** @nocollapse */ AssetManagementService.ngInjectableDef = ɵɵdefineInjectable({ factory: function AssetManagementService_Factory() { return new AssetManagementService(); }, token: AssetManagementService, providedIn: "root" });
778
+ /** @nocollapse */ AssetManagementService.ɵprov = ɵɵdefineInjectable({ factory: function AssetManagementService_Factory() { return new AssetManagementService(); }, token: AssetManagementService, providedIn: "root" });
771
779
  if (false) {
772
780
  /**
773
781
  * @type {?}
@@ -778,6 +786,7 @@ if (false) {
778
786
 
779
787
  /**
780
788
  * @fileoverview added by tsickle
789
+ * Generated from: lib/store/actions.action.ts
781
790
  * @suppress {checkTypes,constantProperty,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
782
791
  */
783
792
  /**
@@ -793,18 +802,18 @@ if (false) {
793
802
  /** @enum {string} */
794
803
  const ActionTypes = {
795
804
  // global loading
796
- SET_GLOBAL_LOADING: '[LOADING] Set global loading state',
805
+ SET_GLOBAL_LOADING: "[LOADING] Set global loading state",
797
806
  // asset area
798
- SET_SELECTED_ASSETS: '[ASSET] Set selected assets',
799
- RELOAD_CURRENT_ASSETS: '[ASSET] reload current asset list ',
800
- DELETE_ASSET: '[ASSET] delete an asset ',
807
+ SET_SELECTED_ASSETS: "[ASSET] Set selected assets",
808
+ RELOAD_CURRENT_ASSETS: "[ASSET] reload current asset list ",
809
+ DELETE_ASSET: "[ASSET] delete an asset ",
801
810
  // folder area
802
- SET_CURRENT_FOLDER_ID: '[FOLDER] get current folder id',
803
- SET_CURRENT_FOLDER: '[FOLDER] set current folder ',
804
- RELOAD_CURRENT_FOLDER: '[FOLDER] reload current folder ',
805
- SET_CURRENT_FOLDER_HIERARCHY: '[FOLDER] set current folder hierarchy ',
811
+ SET_CURRENT_FOLDER_ID: "[FOLDER] get current folder id",
812
+ SET_CURRENT_FOLDER: "[FOLDER] set current folder ",
813
+ RELOAD_CURRENT_FOLDER: "[FOLDER] reload current folder ",
814
+ SET_CURRENT_FOLDER_HIERARCHY: "[FOLDER] set current folder hierarchy ",
806
815
  // node area
807
- RELOAD_CURRENT_NODE: '[NODE] reload current node ',
816
+ RELOAD_CURRENT_NODE: "[NODE] reload current node ",
808
817
  };
809
818
  class SetGlobalLoading {
810
819
  constructor() {
@@ -902,6 +911,7 @@ if (false) {
902
911
 
903
912
  /**
904
913
  * @fileoverview added by tsickle
914
+ * Generated from: lib/store/reducer.ts
905
915
  * @suppress {checkTypes,constantProperty,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
906
916
  */
907
917
  /**
@@ -959,39 +969,39 @@ const initialReducer = (/**
959
969
  (action) => {
960
970
  switch (action.type) {
961
971
  case ActionTypes.SET_SELECTED_ASSETS:
962
- state = Object.assign({}, state, { selectedAssets: action.payload });
972
+ state = Object.assign(Object.assign({}, state), { selectedAssets: action.payload });
963
973
  store.next(state);
964
974
  break;
965
975
  case ActionTypes.SET_GLOBAL_LOADING:
966
- state = Object.assign({}, state, { globalLoading: action.payload });
976
+ state = Object.assign(Object.assign({}, state), { globalLoading: action.payload });
967
977
  store.next(state);
968
978
  break;
969
979
  case ActionTypes.SET_CURRENT_FOLDER:
970
- state = Object.assign({}, state, { currentFolder: Object.assign({}, action.payload) });
980
+ state = Object.assign(Object.assign({}, state), { currentFolder: Object.assign({}, action.payload) });
971
981
  store.next(state);
972
982
  break;
973
983
  case ActionTypes.RELOAD_CURRENT_FOLDER:
974
- state = Object.assign({}, state, { reloadCurrentFolder: !state.reloadCurrentFolder });
984
+ state = Object.assign(Object.assign({}, state), { reloadCurrentFolder: !state.reloadCurrentFolder });
975
985
  store.next(state);
976
986
  break;
977
987
  case ActionTypes.RELOAD_CURRENT_ASSETS:
978
- state = Object.assign({}, state, { reloadCurrentAssets: !state.reloadCurrentAssets });
988
+ state = Object.assign(Object.assign({}, state), { reloadCurrentAssets: !state.reloadCurrentAssets });
979
989
  store.next(state);
980
990
  break;
981
991
  case ActionTypes.RELOAD_CURRENT_NODE:
982
- state = Object.assign({}, state, { reloadCurrentNode: !state.reloadCurrentNode });
992
+ state = Object.assign(Object.assign({}, state), { reloadCurrentNode: !state.reloadCurrentNode });
983
993
  store.next(state);
984
994
  break;
985
995
  case ActionTypes.SET_CURRENT_FOLDER_HIERARCHY:
986
- state = Object.assign({}, state, { currentFolderHierarchy: [...action.payload] });
996
+ state = Object.assign(Object.assign({}, state), { currentFolderHierarchy: [...action.payload] });
987
997
  store.next(state);
988
998
  break;
989
999
  case ActionTypes.SET_CURRENT_FOLDER_ID:
990
- state = Object.assign({}, state, { currentFolderId: action.payload });
1000
+ state = Object.assign(Object.assign({}, state), { currentFolderId: action.payload });
991
1001
  store.next(state);
992
1002
  break;
993
1003
  case ActionTypes.DELETE_ASSET:
994
- state = Object.assign({}, state, { deletedAssetId: action.payload });
1004
+ state = Object.assign(Object.assign({}, state), { deletedAssetId: action.payload });
995
1005
  store.next(state);
996
1006
  break;
997
1007
  default:
@@ -1014,11 +1024,13 @@ const select = (/**
1014
1024
 
1015
1025
  /**
1016
1026
  * @fileoverview added by tsickle
1027
+ * Generated from: lib/store/index.ts
1017
1028
  * @suppress {checkTypes,constantProperty,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
1018
1029
  */
1019
1030
 
1020
1031
  /**
1021
1032
  * @fileoverview added by tsickle
1033
+ * Generated from: lib/services/node-tree.service.ts
1022
1034
  * @suppress {checkTypes,constantProperty,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
1023
1035
  */
1024
1036
  class NodeTreeService {
@@ -1029,9 +1041,9 @@ class NodeTreeService {
1029
1041
  constructor(assetService, svc) {
1030
1042
  this.assetService = assetService;
1031
1043
  this.svc = svc;
1032
- this.storedData$ = new BehaviorSubject$1([]);
1033
- this.loading$ = new BehaviorSubject$1(false);
1034
- this.initialData$ = new BehaviorSubject$1([]);
1044
+ this.storedData$ = new BehaviorSubject([]);
1045
+ this.loading$ = new BehaviorSubject(false);
1046
+ this.initialData$ = new BehaviorSubject([]);
1035
1047
  }
1036
1048
  /**
1037
1049
  * @return {?}
@@ -1049,13 +1061,16 @@ class NodeTreeService {
1049
1061
  /**
1050
1062
  * @private
1051
1063
  * @param {?} id
1064
+ * @param {?=} pageSize
1052
1065
  * @return {?}
1053
1066
  */
1054
- fetchChildrenFolder(id) {
1067
+ fetchChildrenFolder(id, pageSize) {
1055
1068
  return __awaiter(this, void 0, void 0, function* () {
1056
1069
  try {
1057
1070
  /** @type {?} */
1058
- const result = yield this.assetService.getChildrenFolders({ assetId: id, isFilter: false }).toPromise();
1071
+ const result = yield this.assetService
1072
+ .getChildrenFolders({ assetId: id, isFilter: false, pageSize: pageSize || this.assetService.AMConfig.pageFolderSize || MAX_FOLDER_TREE_SIZE })
1073
+ .toPromise();
1059
1074
  if (result) {
1060
1075
  return result.Data;
1061
1076
  }
@@ -1069,7 +1084,7 @@ class NodeTreeService {
1069
1084
  * @param {?} __0
1070
1085
  * @return {?}
1071
1086
  */
1072
- initialData({ dispatchRootId, pageSize = this.assetService.AMConfig.pageFolderSize || MAX_FOLDER_TREE_SIZE }) {
1087
+ initialData({ dispatchRootId, pageSize = this.assetService.AMConfig.pageFolderSize || MAX_FOLDER_TREE_SIZE, }) {
1073
1088
  return __awaiter(this, void 0, void 0, function* () {
1074
1089
  if (dispatchRootId) {
1075
1090
  this.loading$.next(true);
@@ -1113,11 +1128,12 @@ class NodeTreeService {
1113
1128
  }
1114
1129
  /**
1115
1130
  * @param {?} node
1131
+ * @param {?=} pageSize
1116
1132
  * @return {?}
1117
1133
  */
1118
- getChildren(node) {
1134
+ getChildren(node, pageSize) {
1119
1135
  return __awaiter(this, void 0, void 0, function* () {
1120
- return yield this.fetchChildrenFolder(node.AssetId);
1136
+ return yield this.fetchChildrenFolder(node.AssetId, pageSize);
1121
1137
  });
1122
1138
  }
1123
1139
  /**
@@ -1143,7 +1159,7 @@ class NodeTreeService {
1143
1159
  */
1144
1160
  (node) => node.AssetId === asset.AssetId));
1145
1161
  if (index < 0) {
1146
- data = [...data, Object.assign({}, asset, { ParentId: parentId ? parentId : null })];
1162
+ data = [...data, Object.assign(Object.assign({}, asset), { ParentId: parentId ? parentId : null })];
1147
1163
  }
1148
1164
  this.data = data;
1149
1165
  }
@@ -1232,6 +1248,7 @@ if (false) {
1232
1248
 
1233
1249
  /**
1234
1250
  * @fileoverview added by tsickle
1251
+ * Generated from: lib/services/upload-assets.service.ts
1235
1252
  * @suppress {checkTypes,constantProperty,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
1236
1253
  */
1237
1254
  class UploadAssetsService {
@@ -1405,6 +1422,7 @@ if (false) {
1405
1422
 
1406
1423
  /**
1407
1424
  * @fileoverview added by tsickle
1425
+ * Generated from: lib/services/file.service.ts
1408
1426
  * @suppress {checkTypes,constantProperty,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
1409
1427
  */
1410
1428
  class FileService {
@@ -1507,11 +1525,13 @@ if (false) {
1507
1525
 
1508
1526
  /**
1509
1527
  * @fileoverview added by tsickle
1528
+ * Generated from: lib/services/index.ts
1510
1529
  * @suppress {checkTypes,constantProperty,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
1511
1530
  */
1512
1531
 
1513
1532
  /**
1514
1533
  * @fileoverview added by tsickle
1534
+ * Generated from: lib/components/partial/asset-management-dialog/asset-management-dialog.component.ts
1515
1535
  * @suppress {checkTypes,constantProperty,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
1516
1536
  */
1517
1537
  class AssetManagementDialogComponent {
@@ -1524,7 +1544,7 @@ class AssetManagementDialogComponent {
1524
1544
  this.data = data;
1525
1545
  this.dialogRef = dialogRef;
1526
1546
  this.assetService = assetService;
1527
- this.destroy$ = new Subject$1();
1547
+ this.destroy$ = new Subject();
1528
1548
  this.selectedAssets = [];
1529
1549
  }
1530
1550
  /**
@@ -1583,7 +1603,7 @@ class AssetManagementDialogComponent {
1583
1603
  AssetManagementDialogComponent.decorators = [
1584
1604
  { type: Component, args: [{
1585
1605
  selector: 'lib-asset-management-dialog',
1586
- 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>",
1606
+ 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>",
1587
1607
  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}"]
1588
1608
  }] }
1589
1609
  ];
@@ -1614,6 +1634,7 @@ if (false) {
1614
1634
 
1615
1635
  /**
1616
1636
  * @fileoverview added by tsickle
1637
+ * Generated from: lib/asset-management.component.ts
1617
1638
  * @suppress {checkTypes,constantProperty,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
1618
1639
  */
1619
1640
  class AssetManagementComponent {
@@ -1775,6 +1796,7 @@ if (false) {
1775
1796
 
1776
1797
  /**
1777
1798
  * @fileoverview added by tsickle
1799
+ * Generated from: lib/directives/dialogTrigger.directive.ts
1778
1800
  * @suppress {checkTypes,constantProperty,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
1779
1801
  */
1780
1802
  class DialogTriggerDirective {
@@ -1820,6 +1842,7 @@ if (false) {
1820
1842
 
1821
1843
  /**
1822
1844
  * @fileoverview added by tsickle
1845
+ * Generated from: lib/directives/dnd.directive.ts
1823
1846
  * @suppress {checkTypes,constantProperty,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
1824
1847
  */
1825
1848
  class DndDirective {
@@ -1876,6 +1899,7 @@ if (false) {
1876
1899
 
1877
1900
  /**
1878
1901
  * @fileoverview added by tsickle
1902
+ * Generated from: lib/directives/directives.module.ts
1879
1903
  * @suppress {checkTypes,constantProperty,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
1880
1904
  */
1881
1905
  /** @type {?} */
@@ -1892,6 +1916,7 @@ DirectivesModule.decorators = [
1892
1916
 
1893
1917
  /**
1894
1918
  * @fileoverview added by tsickle
1919
+ * Generated from: lib/components/ui/input-file/input-file.component.ts
1895
1920
  * @suppress {checkTypes,constantProperty,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
1896
1921
  */
1897
1922
  class InputFileComponent {
@@ -1940,6 +1965,7 @@ if (false) {
1940
1965
 
1941
1966
  /**
1942
1967
  * @fileoverview added by tsickle
1968
+ * Generated from: lib/components/ui/modal/modal.component.ts
1943
1969
  * @suppress {checkTypes,constantProperty,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
1944
1970
  */
1945
1971
  class ModalComponent {
@@ -1955,7 +1981,7 @@ ModalComponent.decorators = [
1955
1981
  { type: Component, args: [{
1956
1982
  selector: 'lib-modal',
1957
1983
  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",
1958
- 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}"]
1984
+ 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}"]
1959
1985
  }] }
1960
1986
  ];
1961
1987
  /** @nocollapse */
@@ -1973,6 +1999,7 @@ if (false) {
1973
1999
 
1974
2000
  /**
1975
2001
  * @fileoverview added by tsickle
2002
+ * Generated from: lib/contanst/data-image.ts
1976
2003
  * @suppress {checkTypes,constantProperty,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
1977
2004
  */
1978
2005
  // tslint:disable:max-line-length
@@ -1993,11 +2020,13 @@ const fileDefault = "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAgAAAAIACAMAA
1993
2020
 
1994
2021
  /**
1995
2022
  * @fileoverview added by tsickle
2023
+ * Generated from: lib/contanst/index.ts
1996
2024
  * @suppress {checkTypes,constantProperty,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
1997
2025
  */
1998
2026
 
1999
2027
  /**
2000
2028
  * @fileoverview added by tsickle
2029
+ * Generated from: lib/components/ui/search-not-found/search-not-found.component.ts
2001
2030
  * @suppress {checkTypes,constantProperty,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
2002
2031
  */
2003
2032
  class SearchNotFoundComponent {
@@ -2036,6 +2065,7 @@ if (false) {
2036
2065
 
2037
2066
  /**
2038
2067
  * @fileoverview added by tsickle
2068
+ * Generated from: lib/components/partial/file-item/file-item.component.ts
2039
2069
  * @suppress {checkTypes,constantProperty,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
2040
2070
  */
2041
2071
  class FileItemComponent {
@@ -2213,6 +2243,7 @@ if (false) {
2213
2243
 
2214
2244
  /**
2215
2245
  * @fileoverview added by tsickle
2246
+ * Generated from: lib/components/partial/file-list/file-list.component.ts
2216
2247
  * @suppress {checkTypes,constantProperty,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
2217
2248
  */
2218
2249
  class FileListComponent {
@@ -2265,7 +2296,7 @@ FileListComponent.decorators = [
2265
2296
  { type: Component, args: [{
2266
2297
  selector: 'lib-file-list',
2267
2298
  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",
2268
- 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}"]
2299
+ 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}"]
2269
2300
  }] }
2270
2301
  ];
2271
2302
  /** @nocollapse */
@@ -2284,6 +2315,7 @@ if (false) {
2284
2315
 
2285
2316
  /**
2286
2317
  * @fileoverview added by tsickle
2318
+ * Generated from: lib/components/partial/upload-file/upload-file.component.ts
2287
2319
  * @suppress {checkTypes,constantProperty,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
2288
2320
  */
2289
2321
  class UploadFileComponent {
@@ -2365,6 +2397,7 @@ if (false) {
2365
2397
 
2366
2398
  /**
2367
2399
  * @fileoverview added by tsickle
2400
+ * Generated from: lib/components/partial/add-folder-dialog/add-folder-dialog.component.ts
2368
2401
  * @suppress {checkTypes,constantProperty,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
2369
2402
  */
2370
2403
  /**
@@ -2505,6 +2538,7 @@ if (false) {
2505
2538
 
2506
2539
  /**
2507
2540
  * @fileoverview added by tsickle
2541
+ * Generated from: lib/components/partial/edit-folder-dialog/edit-folder-dialog.component.ts
2508
2542
  * @suppress {checkTypes,constantProperty,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
2509
2543
  */
2510
2544
  /**
@@ -2650,6 +2684,7 @@ if (false) {
2650
2684
 
2651
2685
  /**
2652
2686
  * @fileoverview added by tsickle
2687
+ * Generated from: lib/components/partial/delete-dialog/delete-dialog.component.ts
2653
2688
  * @suppress {checkTypes,constantProperty,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
2654
2689
  */
2655
2690
  /**
@@ -2783,6 +2818,7 @@ if (false) {
2783
2818
 
2784
2819
  /**
2785
2820
  * @fileoverview added by tsickle
2821
+ * Generated from: lib/components/partial/upload-dialog/upload-dialog.component.ts
2786
2822
  * @suppress {checkTypes,constantProperty,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
2787
2823
  */
2788
2824
  /**
@@ -2888,8 +2924,8 @@ UploadDialogComponent.decorators = [
2888
2924
  ];
2889
2925
  /** @nocollapse */
2890
2926
  UploadDialogComponent.ctorParameters = () => [
2891
- { type: undefined, decorators: [{ type: Inject, args: [MAT_DIALOG_DATA$1,] }] },
2892
- { type: MatDialogRef$1 },
2927
+ { type: undefined, decorators: [{ type: Inject, args: [MAT_DIALOG_DATA,] }] },
2928
+ { type: MatDialogRef },
2893
2929
  { type: ChangeDetectorRef },
2894
2930
  { type: UploadAssetsService }
2895
2931
  ];
@@ -2918,6 +2954,7 @@ if (false) {
2918
2954
 
2919
2955
  /**
2920
2956
  * @fileoverview added by tsickle
2957
+ * Generated from: lib/components/partial/folder-item/folder-item.component.ts
2921
2958
  * @suppress {checkTypes,constantProperty,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
2922
2959
  */
2923
2960
  class FolderItemComponent {
@@ -3037,6 +3074,7 @@ if (false) {
3037
3074
 
3038
3075
  /**
3039
3076
  * @fileoverview added by tsickle
3077
+ * Generated from: lib/components/partial/folder-list/folder-list.component.ts
3040
3078
  * @suppress {checkTypes,constantProperty,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
3041
3079
  */
3042
3080
  class FolderListComponent {
@@ -3046,7 +3084,7 @@ class FolderListComponent {
3046
3084
  this.hasArchivePermission = true;
3047
3085
  this.onPageChange = new EventEmitter();
3048
3086
  this.loading = false;
3049
- this.unsubscribe$ = new Subject$1();
3087
+ this.unsubscribe$ = new Subject();
3050
3088
  this.bindSubscriber();
3051
3089
  }
3052
3090
  /**
@@ -3141,6 +3179,7 @@ if (false) {
3141
3179
 
3142
3180
  /**
3143
3181
  * @fileoverview added by tsickle
3182
+ * Generated from: lib/components/partial/asset-list/asset-list.component.ts
3144
3183
  * @suppress {checkTypes,constantProperty,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
3145
3184
  */
3146
3185
  class AssetListComponent {
@@ -3155,7 +3194,7 @@ class AssetListComponent {
3155
3194
  this.hasAccessPermission = true;
3156
3195
  this.hasArchivePermission = true;
3157
3196
  this.backgroundProcessingNum = BackgroudProcessingStatus;
3158
- this.unsubscribe$ = new Subject$1();
3197
+ this.unsubscribe$ = new Subject();
3159
3198
  this.selectedAssets = [];
3160
3199
  }
3161
3200
  /**
@@ -3314,9 +3353,14 @@ class AssetListComponent {
3314
3353
  * @return {?}
3315
3354
  */
3316
3355
  (res) => {
3317
- this.assetService.setAssetList(res.Data.Children, res.Meta);
3318
- }))
3319
- .add((/**
3356
+ /** @type {?} */
3357
+ const pagination = res && res.Meta || {};
3358
+ /** @type {?} */
3359
+ const assets = res && res.Data && res.Data.Children || [];
3360
+ /** @type {?} */
3361
+ const totalFile = res && res.Data && res.Data.TotalFile || 0;
3362
+ this.assetService.setAssetList(assets, pagination, totalFile);
3363
+ })).add((/**
3320
3364
  * @return {?}
3321
3365
  */
3322
3366
  () => {
@@ -3358,7 +3402,7 @@ class AssetListComponent {
3358
3402
  AssetListComponent.decorators = [
3359
3403
  { type: Component, args: [{
3360
3404
  selector: 'lib-asset-list',
3361
- 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",
3405
+ 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",
3362
3406
  styles: [":host::ng-deep .asset-container .asset-heading{display:flex;justify-content:space-between;align-items:center;margin-bottom:.5rem}:host::ng-deep .asset-container .asset-heading__title{margin-bottom:0;color:#979797}:host::ng-deep .asset-container .asset-list{display:flex;flex-wrap:wrap;justify-content:flex-start;align-items:stretch;margin:0 -5px}:host::ng-deep .asset-container .asset-list__item{width:25%}@media only screen and (max-width:1200px){:host::ng-deep .asset-container .asset-list__item{width:calc(100% / 3)}}@media only screen and (max-width:960px){:host::ng-deep .asset-container .asset-list__item{width:50%}}:host::ng-deep .asset-container .asset-empty{text-align:center;color:#979797;font-size:14px}"]
3363
3407
  }] }
3364
3408
  ];
@@ -3368,13 +3412,16 @@ AssetListComponent.ctorParameters = () => [
3368
3412
  { type: AssetManagementService }
3369
3413
  ];
3370
3414
  AssetListComponent.propDecorators = {
3415
+ isDialog: [{ type: Input }],
3371
3416
  hasModifyPermission: [{ type: Input }],
3372
3417
  hasAccessPermission: [{ type: Input }],
3373
3418
  hasArchivePermission: [{ type: Input }],
3374
- paginator: [{ type: ViewChild, args: [MatPaginator$1, { static: true },] }],
3419
+ paginator: [{ type: ViewChild, args: [MatPaginator, { static: true },] }],
3375
3420
  assets: [{ type: Input }]
3376
3421
  };
3377
3422
  if (false) {
3423
+ /** @type {?} */
3424
+ AssetListComponent.prototype.isDialog;
3378
3425
  /** @type {?} */
3379
3426
  AssetListComponent.prototype.hasModifyPermission;
3380
3427
  /** @type {?} */
@@ -3416,6 +3463,7 @@ if (false) {
3416
3463
 
3417
3464
  /**
3418
3465
  * @fileoverview added by tsickle
3466
+ * Generated from: lib/pipes/file-size.pipe.ts
3419
3467
  * @suppress {checkTypes,constantProperty,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
3420
3468
  */
3421
3469
  /*
@@ -3469,6 +3517,7 @@ if (false) {
3469
3517
 
3470
3518
  /**
3471
3519
  * @fileoverview added by tsickle
3520
+ * Generated from: lib/components/partial/asset-dialog/asset-dialog.component.ts
3472
3521
  * @suppress {checkTypes,constantProperty,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
3473
3522
  */
3474
3523
  /**
@@ -3851,6 +3900,7 @@ if (false) {
3851
3900
 
3852
3901
  /**
3853
3902
  * @fileoverview added by tsickle
3903
+ * Generated from: lib/components/partial/asset-item/asset-item.component.ts
3854
3904
  * @suppress {checkTypes,constantProperty,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
3855
3905
  */
3856
3906
  class AssetItemComponent {
@@ -4081,8 +4131,8 @@ class AssetItemComponent {
4081
4131
  AssetItemComponent.decorators = [
4082
4132
  { type: Component, args: [{
4083
4133
  selector: 'lib-asset-item',
4084
- 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",
4085
- 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}"]
4134
+ 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>",
4135
+ 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}"]
4086
4136
  }] }
4087
4137
  ];
4088
4138
  /** @nocollapse */
@@ -4094,6 +4144,7 @@ AssetItemComponent.ctorParameters = () => [
4094
4144
  { type: ChangeDetectorRef }
4095
4145
  ];
4096
4146
  AssetItemComponent.propDecorators = {
4147
+ isDialog: [{ type: Input }],
4097
4148
  hasModifyPermission: [{ type: Input }],
4098
4149
  hasAccessPermission: [{ type: Input }],
4099
4150
  hasArchivePermission: [{ type: Input }],
@@ -4101,6 +4152,8 @@ AssetItemComponent.propDecorators = {
4101
4152
  selectAsset: [{ type: Output }]
4102
4153
  };
4103
4154
  if (false) {
4155
+ /** @type {?} */
4156
+ AssetItemComponent.prototype.isDialog;
4104
4157
  /** @type {?} */
4105
4158
  AssetItemComponent.prototype.hasModifyPermission;
4106
4159
  /** @type {?} */
@@ -4154,6 +4207,7 @@ if (false) {
4154
4207
 
4155
4208
  /**
4156
4209
  * @fileoverview added by tsickle
4210
+ * Generated from: lib/datasources/node-tree.datasource.ts
4157
4211
  * @suppress {checkTypes,constantProperty,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
4158
4212
  */
4159
4213
  class NodeTreeDataSource {
@@ -4279,15 +4333,16 @@ class NodeTreeDataSource {
4279
4333
  /**
4280
4334
  * Reload the node, remove from display list
4281
4335
  * @param {?} node
4336
+ * @param {?=} pageSize
4282
4337
  * @return {?}
4283
4338
  */
4284
- reloadNode(node) {
4339
+ reloadNode(node, pageSize) {
4285
4340
  return __awaiter(this, void 0, void 0, function* () {
4286
4341
  if (!node) {
4287
4342
  return;
4288
4343
  }
4289
4344
  /** @type {?} */
4290
- const newNode = yield this._database.getChildren(node.item);
4345
+ const newNode = yield this._database.getChildren(node.item, pageSize);
4291
4346
  /** @type {?} */
4292
4347
  const index = this.data.indexOf(node);
4293
4348
  if (!newNode || index < 0) {
@@ -4329,11 +4384,13 @@ if (false) {
4329
4384
 
4330
4385
  /**
4331
4386
  * @fileoverview added by tsickle
4387
+ * Generated from: lib/datasources/index.ts
4332
4388
  * @suppress {checkTypes,constantProperty,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
4333
4389
  */
4334
4390
 
4335
4391
  /**
4336
4392
  * @fileoverview added by tsickle
4393
+ * Generated from: lib/components/partial/node-tree/node-tree.component.ts
4337
4394
  * @suppress {checkTypes,constantProperty,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
4338
4395
  */
4339
4396
  class NodeTreeComponent {
@@ -4382,7 +4439,7 @@ class NodeTreeComponent {
4382
4439
  const rootFolder = this.folderChildrenMap.get(ROOT_ASSET_ID);
4383
4440
  return {
4384
4441
  length: rootFolder ? rootFolder.size : 0,
4385
- total: this.nodeTreeService.rootFolder ? this.nodeTreeService.rootFolder.TotalFolder || '0' : 0,
4442
+ total: this.nodeTreeService.rootFolder ? this.nodeTreeService.rootFolder.TotalFolder || "0" : 0,
4386
4443
  };
4387
4444
  }
4388
4445
  /**
@@ -4425,9 +4482,7 @@ class NodeTreeComponent {
4425
4482
  * @return {?}
4426
4483
  */
4427
4484
  bindSubscriber() {
4428
- this.nodeTreeService.loading$
4429
- .pipe(takeUntil(this.unsubscribe$), distinctUntilChanged())
4430
- .subscribe((/**
4485
+ this.nodeTreeService.loading$.pipe(takeUntil(this.unsubscribe$), distinctUntilChanged()).subscribe((/**
4431
4486
  * @param {?} loading
4432
4487
  * @return {?}
4433
4488
  */
@@ -4435,9 +4490,7 @@ class NodeTreeComponent {
4435
4490
  this.homeLoading = loading;
4436
4491
  this.changeDetectorRef.detectChanges();
4437
4492
  }));
4438
- this.nodeTreeService.initialData$
4439
- .pipe(takeUntil(this.unsubscribe$), distinctUntilChanged())
4440
- .subscribe((/**
4493
+ this.nodeTreeService.initialData$.pipe(takeUntil(this.unsubscribe$), distinctUntilChanged()).subscribe((/**
4441
4494
  * @param {?} data
4442
4495
  * @return {?}
4443
4496
  */
@@ -4452,9 +4505,7 @@ class NodeTreeComponent {
4452
4505
  (node) => this.nodeTreeService.addNode(node.item, null)));
4453
4506
  this.changeDetectorRef.detectChanges();
4454
4507
  }));
4455
- this.dataSource.dataChange
4456
- .pipe(takeUntil(this.unsubscribe$))
4457
- .subscribe((/**
4508
+ this.dataSource.dataChange.pipe(takeUntil(this.unsubscribe$)).subscribe((/**
4458
4509
  * @param {?} data
4459
4510
  * @return {?}
4460
4511
  */
@@ -4492,7 +4543,7 @@ class NodeTreeComponent {
4492
4543
  * @param {?} res
4493
4544
  * @return {?}
4494
4545
  */
4495
- (res) => of$1(res))))
4546
+ (res) => of(res))))
4496
4547
  .subscribe((/**
4497
4548
  * @return {?}
4498
4549
  */
@@ -4579,11 +4630,13 @@ class NodeTreeComponent {
4579
4630
  /** @type {?} */
4580
4631
  const itemsPerPage = this.assetService.AMConfig.pageFolderSize || MAX_FOLDER_TREE_SIZE;
4581
4632
  /** @type {?} */
4582
- const result = yield this.assetService.getChildrenFolders({
4633
+ const result = yield this.assetService
4634
+ .getChildrenFolders({
4583
4635
  assetId: id === ROOT_ASSET_ID ? null : id,
4584
4636
  isFilter: false,
4585
- pageIndex: Math.round((children ? children.size : 0) / itemsPerPage)
4586
- }).toPromise();
4637
+ pageIndex: Math.round((children ? children.size : 0) / itemsPerPage),
4638
+ })
4639
+ .toPromise();
4587
4640
  /** @type {?} */
4588
4641
  const assetChildren = result.Data.Children || [];
4589
4642
  // Handle datasource
@@ -4611,7 +4664,7 @@ class NodeTreeComponent {
4611
4664
  this.changeDetectorRef.detectChanges();
4612
4665
  }
4613
4666
  catch (error) {
4614
- console.log('Load more folder error', error);
4667
+ console.log("Load more folder error", error);
4615
4668
  this.setLoadingMore(id, false);
4616
4669
  }
4617
4670
  });
@@ -4679,20 +4732,26 @@ class NodeTreeComponent {
4679
4732
  const parent = this.getParent(node);
4680
4733
  if (parent) {
4681
4734
  // Reload parent folder (get children and expand it again)
4682
- yield this.dataSource.reloadNode(parent);
4735
+ /** @type {?} */
4736
+ const children = this.folderChildrenMap.get(parent.item.AssetId);
4737
+ yield this.dataSource.reloadNode(parent, children.size);
4683
4738
  /** @type {?} */
4684
4739
  const updatedNode = this.getNodeById(id);
4685
4740
  if (updatedNode) {
4741
+ // TODO
4686
4742
  yield this.treeControl.expand(updatedNode);
4687
4743
  }
4688
4744
  }
4689
4745
  else {
4690
- // BUG: This will reload the root folder when the user selects a folder from the tree
4691
- // await this.nodeTreeService.initialData({ dispatchRootId: false });
4692
- // const updatedNode = this.getNodeById(id);
4693
- // if (updatedNode) {
4694
- // await this.treeControl.expand(updatedNode);
4695
- // }
4746
+ /** @type {?} */
4747
+ const rootFolder = this.folderChildrenMap.get(ROOT_ASSET_ID);
4748
+ yield this.nodeTreeService.initialData({ dispatchRootId: false, pageSize: rootFolder.size });
4749
+ /** @type {?} */
4750
+ const updatedNode = this.getNodeById(id);
4751
+ if (updatedNode) {
4752
+ // TODO
4753
+ yield this.treeControl.expand(updatedNode);
4754
+ }
4696
4755
  }
4697
4756
  }
4698
4757
  else {
@@ -4723,9 +4782,9 @@ class NodeTreeComponent {
4723
4782
  }
4724
4783
  NodeTreeComponent.decorators = [
4725
4784
  { type: Component, args: [{
4726
- selector: 'lib-node-tree',
4785
+ selector: "lib-node-tree",
4727
4786
  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>",
4728
- 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}"]
4787
+ 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}"]
4729
4788
  }] }
4730
4789
  ];
4731
4790
  /** @nocollapse */
@@ -4791,6 +4850,7 @@ if (false) {
4791
4850
 
4792
4851
  /**
4793
4852
  * @fileoverview added by tsickle
4853
+ * Generated from: lib/components/partial/breadcrumb/breadcrumb.component.ts
4794
4854
  * @suppress {checkTypes,constantProperty,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
4795
4855
  */
4796
4856
  class BreadcrumbComponent {
@@ -4803,7 +4863,7 @@ class BreadcrumbComponent {
4803
4863
  this.nodeTreeService = nodeTreeService;
4804
4864
  this.svc = svc;
4805
4865
  this.changeDetectorRef = changeDetectorRef;
4806
- this.unsubscribe$ = new Subject$1();
4866
+ this.unsubscribe$ = new Subject();
4807
4867
  this.currentFolderHierarchy = [];
4808
4868
  this.maximumShownLevel = 3;
4809
4869
  this.bindSubscriber();
@@ -4904,6 +4964,7 @@ if (false) {
4904
4964
 
4905
4965
  /**
4906
4966
  * @fileoverview added by tsickle
4967
+ * Generated from: lib/components/partial/search-box/search-box.component.ts
4907
4968
  * @suppress {checkTypes,constantProperty,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
4908
4969
  */
4909
4970
  class SearchBoxComponent {
@@ -4914,7 +4975,7 @@ class SearchBoxComponent {
4914
4975
  constructor(assetService, svc) {
4915
4976
  this.assetService = assetService;
4916
4977
  this.svc = svc;
4917
- this.destroy$ = new Subject$1();
4978
+ this.destroy$ = new Subject();
4918
4979
  this.value = '';
4919
4980
  this.folderId = '';
4920
4981
  this.bindingSubscriber();
@@ -4996,11 +5057,16 @@ class SearchBoxComponent {
4996
5057
  * @param {?} __0
4997
5058
  * @return {?}
4998
5059
  */
4999
- ([folders, assets]) => {
5060
+ ([folders, assetsRes]) => {
5061
+ /** @type {?} */
5062
+ const pagination = assetsRes && assetsRes.Meta || {};
5063
+ /** @type {?} */
5064
+ const assets = assetsRes && assetsRes.Data && assetsRes.Data.Children || [];
5065
+ /** @type {?} */
5066
+ const totalFile = assetsRes && assetsRes.Data && assetsRes.Data.TotalFile || 0;
5000
5067
  this.assetService.setFolderList(folders.Data, { Total: folders.Data.TotalFolder });
5001
- this.assetService.setAssetList(assets.Data.Children, assets.Meta);
5002
- }))
5003
- .add((/**
5068
+ this.assetService.setAssetList(assets, pagination, totalFile);
5069
+ })).add((/**
5004
5070
  * @return {?}
5005
5071
  */
5006
5072
  () => {
@@ -5054,6 +5120,7 @@ if (false) {
5054
5120
 
5055
5121
  /**
5056
5122
  * @fileoverview added by tsickle
5123
+ * Generated from: lib/components/partial/sort-items/sort-items.component.ts
5057
5124
  * @suppress {checkTypes,constantProperty,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
5058
5125
  */
5059
5126
  class SortItemsComponent {
@@ -5148,6 +5215,7 @@ if (false) {
5148
5215
 
5149
5216
  /**
5150
5217
  * @fileoverview added by tsickle
5218
+ * Generated from: lib/components/partial/asset-wrapper/asset-wrapper.component.ts
5151
5219
  * @suppress {checkTypes,constantProperty,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
5152
5220
  */
5153
5221
  class AssetWrapperComponent {
@@ -5161,7 +5229,7 @@ class AssetWrapperComponent {
5161
5229
  this.hasAccessPermission = true;
5162
5230
  this.hasArchivePermission = true;
5163
5231
  this.assets = new EventEmitter();
5164
- this.unsubscribe$ = new Subject$1();
5232
+ this.unsubscribe$ = new Subject();
5165
5233
  this.nodeTreeMinWidth = 300;
5166
5234
  this.nodeTreeMaxWidth = 700;
5167
5235
  }
@@ -5209,7 +5277,7 @@ class AssetWrapperComponent {
5209
5277
  AssetWrapperComponent.decorators = [
5210
5278
  { type: Component, args: [{
5211
5279
  selector: 'lib-asset-wrapper',
5212
- 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>",
5280
+ 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>",
5213
5281
  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}"]
5214
5282
  }] }
5215
5283
  ];
@@ -5219,6 +5287,7 @@ AssetWrapperComponent.ctorParameters = () => [
5219
5287
  ];
5220
5288
  AssetWrapperComponent.propDecorators = {
5221
5289
  header: [{ type: Input }],
5290
+ isDialog: [{ type: Input }],
5222
5291
  hasModifyPermission: [{ type: Input }],
5223
5292
  hasAccessPermission: [{ type: Input }],
5224
5293
  hasArchivePermission: [{ type: Input }],
@@ -5228,6 +5297,8 @@ if (false) {
5228
5297
  /** @type {?} */
5229
5298
  AssetWrapperComponent.prototype.header;
5230
5299
  /** @type {?} */
5300
+ AssetWrapperComponent.prototype.isDialog;
5301
+ /** @type {?} */
5231
5302
  AssetWrapperComponent.prototype.hasModifyPermission;
5232
5303
  /** @type {?} */
5233
5304
  AssetWrapperComponent.prototype.hasAccessPermission;
@@ -5255,6 +5326,7 @@ if (false) {
5255
5326
 
5256
5327
  /**
5257
5328
  * @fileoverview added by tsickle
5329
+ * Generated from: lib/components/partial/node-details/node-details.component.ts
5258
5330
  * @suppress {checkTypes,constantProperty,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
5259
5331
  */
5260
5332
  class NodeDetailsComponent {
@@ -5274,9 +5346,9 @@ class NodeDetailsComponent {
5274
5346
  this.hasModifyPermission = true;
5275
5347
  this.hasAccessPermission = true;
5276
5348
  this.hasArchivePermission = true;
5277
- this.unsubscribe$ = new Subject$1();
5349
+ this.unsubscribe$ = new Subject();
5278
5350
  this.selectedAssets = [];
5279
- this.loading$ = new BehaviorSubject$1(false);
5351
+ this.loading$ = new BehaviorSubject(false);
5280
5352
  this.bindSubscriber();
5281
5353
  }
5282
5354
  /**
@@ -5320,7 +5392,7 @@ class NodeDetailsComponent {
5320
5392
  * @param {?} res
5321
5393
  * @return {?}
5322
5394
  */
5323
- (res) => of$1(res))))
5395
+ (res) => of(res))))
5324
5396
  .subscribe((/**
5325
5397
  * @param {?} globalLoading
5326
5398
  * @return {?}
@@ -5352,7 +5424,7 @@ class NodeDetailsComponent {
5352
5424
  * @param {?} res
5353
5425
  * @return {?}
5354
5426
  */
5355
- (res) => of$1(res))))
5427
+ (res) => of(res))))
5356
5428
  .subscribe((/**
5357
5429
  * @param {?} currentFolderId
5358
5430
  * @return {?}
@@ -5372,7 +5444,7 @@ class NodeDetailsComponent {
5372
5444
  * @param {?} res
5373
5445
  * @return {?}
5374
5446
  */
5375
- (res) => of$1(res))))
5447
+ (res) => of(res))))
5376
5448
  .subscribe((/**
5377
5449
  * @return {?}
5378
5450
  */
@@ -5391,7 +5463,7 @@ class NodeDetailsComponent {
5391
5463
  * @param {?} res
5392
5464
  * @return {?}
5393
5465
  */
5394
- (res) => of$1(res))))
5466
+ (res) => of(res))))
5395
5467
  .subscribe((/**
5396
5468
  * @return {?}
5397
5469
  */
@@ -5567,8 +5639,14 @@ class NodeDetailsComponent {
5567
5639
  * @return {?}
5568
5640
  */
5569
5641
  ([foldersRes, assetsRes]) => {
5642
+ /** @type {?} */
5643
+ const pagination = assetsRes && assetsRes.Meta || {};
5644
+ /** @type {?} */
5645
+ const assets = assetsRes && assetsRes.Data && assetsRes.Data.Children || [];
5646
+ /** @type {?} */
5647
+ const totalFile = assetsRes && assetsRes.Data && assetsRes.Data.TotalFile || 0;
5570
5648
  this.setFolderList(foldersRes);
5571
- this.assetService.setAssetList(assetsRes.Data.Children, assetsRes.Meta);
5649
+ this.assetService.setAssetList(assets, pagination, totalFile);
5572
5650
  if (foldersRes.Data && foldersRes.Data.Children) {
5573
5651
  foldersRes.Data.Children.forEach((/**
5574
5652
  * @param {?} node
@@ -5648,8 +5726,8 @@ class NodeDetailsComponent {
5648
5726
  NodeDetailsComponent.decorators = [
5649
5727
  { type: Component, args: [{
5650
5728
  selector: 'lib-node-details',
5651
- 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>",
5652
- 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}"]
5729
+ 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>",
5730
+ 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}"]
5653
5731
  }] }
5654
5732
  ];
5655
5733
  /** @nocollapse */
@@ -5661,11 +5739,14 @@ NodeDetailsComponent.ctorParameters = () => [
5661
5739
  { type: ChangeDetectorRef }
5662
5740
  ];
5663
5741
  NodeDetailsComponent.propDecorators = {
5742
+ isDialog: [{ type: Input }],
5664
5743
  hasModifyPermission: [{ type: Input }],
5665
5744
  hasAccessPermission: [{ type: Input }],
5666
5745
  hasArchivePermission: [{ type: Input }]
5667
5746
  };
5668
5747
  if (false) {
5748
+ /** @type {?} */
5749
+ NodeDetailsComponent.prototype.isDialog;
5669
5750
  /** @type {?} */
5670
5751
  NodeDetailsComponent.prototype.hasModifyPermission;
5671
5752
  /** @type {?} */
@@ -5710,6 +5791,7 @@ if (false) {
5710
5791
 
5711
5792
  /**
5712
5793
  * @fileoverview added by tsickle
5794
+ * Generated from: lib/components/ui/drag-to-resize/drag-to-resize.component.ts
5713
5795
  * @suppress {checkTypes,constantProperty,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
5714
5796
  */
5715
5797
  class DragToResizeComponent {
@@ -5805,28 +5887,88 @@ if (false) {
5805
5887
 
5806
5888
  /**
5807
5889
  * @fileoverview added by tsickle
5890
+ * Generated from: lib/configs/admin.config.ts
5808
5891
  * @suppress {checkTypes,constantProperty,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
5809
5892
  */
5810
5893
  /** @type {?} */
5811
5894
  const AdminConfig = {
5812
- locale: 'en-US',
5813
- timeZone: 'local',
5895
+ locale: "en-US",
5896
+ countryName: {
5897
+ US: "United States",
5898
+ CA: "Canada",
5899
+ },
5814
5900
  format: {
5815
- date: 'MM/DD/YYYY',
5816
- dayMonth: 'MMM DD',
5817
- dateTime: 'MM/DD/YYYY HH:mm',
5818
- fullDateTime: 'MM/DD/YYYY HH:mm:ss',
5819
- dateTimeAM: 'MM/DD/YYYY hh:mm A',
5820
- apiDate: 'YYYY/MM/DD',
5821
- apiDateTime: 'YYYY-MM-DD[T]HH:mm:ssZ',
5822
- apiDateTimeNoZ: 'YYYY-MM-DD[T]HH:mm:ss',
5823
- apiDateMonthYear: 'MMM DD YYYY',
5824
- urlParam: 'YYYY-MM-DD',
5901
+ date: "MM/DD/YYYY",
5902
+ dayMonth: "MMM DD",
5903
+ dateTime: "MM/DD/YYYY HH:mm",
5904
+ fullDateTime: "MM/DD/YYYY HH:mm:ss",
5905
+ dateTimeAM: "MM/DD/YYYY hh:mm A",
5906
+ apiDate: "YYYY/MM/DD",
5907
+ apiDateTime: "YYYY-MM-DD[T]HH:mm:ssZ",
5908
+ apiDateTimeNoZ: "YYYY-MM-DD[T]HH:mm:ss",
5909
+ apiDateMonthYear: "MMM DD YYYY",
5910
+ urlParam: "YYYY-MM-DD",
5911
+ },
5912
+ mask: {
5913
+ phone: "(000) 000-0000",
5914
+ date: "M0/d0/0000",
5915
+ zipCode: {
5916
+ US: "00000",
5917
+ CA: "AAA AAA",
5918
+ },
5919
+ money: "0*.00",
5920
+ number: "0*.00",
5921
+ integer: "0*",
5922
+ tax: "00.0000",
5923
+ sku: "0000000000000",
5924
+ upca: "000000000000",
5925
+ pin: "000000",
5926
+ mi9ProductUpc: "00000000000000",
5825
5927
  },
5928
+ regex: {
5929
+ password: "^(?=.*[a-zA-Z])(?=.*[0-9]).{6,12}",
5930
+ bigyPassword: "^(?=.*[a-zA-Z])(?=.*[0-9]).{8,}$",
5931
+ url: /^(?:http(s)?:\/\/)?[\w.-]+(?:\.[\w\.-]+)+[\w\-\.%_~:/?#[\]@!\$&'\(\)\*\+,;=.]+$/,
5932
+ shortCode: "^[A-Z0-9_]{1,20}$",
5933
+ longCode: "^[A-Z0-9_]{1,100}$",
5934
+ email: /^[\w-\.]+@([\w]+[\.-])+[\w-]{2,}$/,
5935
+ textWithoutSpecialChars: /^[a-zA-Z0-9\. ]+$/,
5936
+ textWithSpecialChars: /^[a-zA-Z0-9_-]+$/,
5937
+ // Allow char '_ -'
5938
+ textWithSpaceAndSpecialChars: /^[a-zA-Z0-9\. /_-]+$/,
5939
+ // Allow space and char '_ - /'
5940
+ address: /^[a-zA-Z0-9][a-zA-Z0-9\_\/\. ]+$/,
5941
+ leadTimeKeyPress: /^[0-9mhdw ]+$/,
5942
+ leadTime: [
5943
+ /^(?:(?<minutes>\d{0,2})m\s*)?(?:(?<hours>\d{0,3})h\s*)?(?:(?<days>\d{0,2})d\s*)?(?:(?<weeks>\d{0,2})w\s*)?$/,
5944
+ /^(?:(?<weeks>\d{0,2})w\s*)?(?:(?<days>\d{0,2})d\s*)?(?:(?<hours>\d{0,3})h\s*)?(?:(?<minutes>\d{0,2})m\s*)?$/,
5945
+ ],
5946
+ userPIN: /^[0-9]{6}$/,
5947
+ storeCode: /^[0-9]{1,10}$/,
5948
+ sku: /^[0-9]{1,14}$/,
5949
+ sku13: /^[0-9]{1,13}$/,
5950
+ keyConfigProvider: /^[a-zA-Z0-9!*()_+\-\[\]{}:\\|,.<>\/]*$/,
5951
+ //not allow character '?#%='
5952
+ textNoSpace: /^[a-zA-Z]+$/,
5953
+ textWithSpace: /^(\s+\S+\s*)*(?!\s).*$/,
5954
+ //not allow a string containing only white spaces
5955
+ slug: /^[A-Za-z0-9]+(?:-[A-Za-z0-9]+)*$/,
5956
+ tag: /^[a-zA-Z0-9](-?_?[a-zA-Z0-9])*$/,
5957
+ noSpace: /^[a-zA-Z0-9!*()_+\-\[\]{}:\\|,.<>\/\?\=\&\%\#\@]*$/,
5958
+ },
5959
+ pattern: {},
5960
+ pipe: {},
5961
+ pageSizeOptions: [5, 10, 25, 50, 100],
5962
+ maxOrderNumber: 99999,
5963
+ // TinyMCE
5964
+ tinyHeightDefault: "75vh",
5965
+ 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",
5966
+ 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",
5826
5967
  };
5827
5968
 
5828
5969
  /**
5829
5970
  * @fileoverview added by tsickle
5971
+ * Generated from: lib/pipes/datetime.pipe.ts
5830
5972
  * @suppress {checkTypes,constantProperty,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
5831
5973
  */
5832
5974
  /** @type {?} */
@@ -5903,6 +6045,7 @@ if (false) {
5903
6045
 
5904
6046
  /**
5905
6047
  * @fileoverview added by tsickle
6048
+ * Generated from: lib/asset-management.module.ts
5906
6049
  * @suppress {checkTypes,constantProperty,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
5907
6050
  */
5908
6051
  // SERVICES
@@ -5942,16 +6085,6 @@ const COMPONENTS = [
5942
6085
  AssetWrapperComponent,
5943
6086
  AssetManagementDialogComponent,
5944
6087
  ];
5945
- /** @type {?} */
5946
- const ENTRY_COMPONENTS = [
5947
- ModalComponent,
5948
- UploadDialogComponent,
5949
- AddFolderDialogComponent,
5950
- EditFolderDialogComponent,
5951
- DeleteDialogComponent,
5952
- AssetDialogComponent,
5953
- AssetManagementDialogComponent,
5954
- ];
5955
6088
  /**
5956
6089
  * @param {?} config
5957
6090
  * @return {?}
@@ -6026,7 +6159,6 @@ AssetManagementModule.decorators = [
6026
6159
  multi: true,
6027
6160
  }
6028
6161
  ],
6029
- entryComponents: [...ENTRY_COMPONENTS],
6030
6162
  },] }
6031
6163
  ];
6032
6164
  /** @nocollapse */
@@ -6034,13 +6166,15 @@ AssetManagementModule.ctorParameters = () => [];
6034
6166
 
6035
6167
  /**
6036
6168
  * @fileoverview added by tsickle
6169
+ * Generated from: public-api.ts
6037
6170
  * @suppress {checkTypes,constantProperty,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
6038
6171
  */
6039
6172
 
6040
6173
  /**
6041
6174
  * @fileoverview added by tsickle
6175
+ * Generated from: rs-pk-asset-management.ts
6042
6176
  * @suppress {checkTypes,constantProperty,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
6043
6177
  */
6044
6178
 
6045
- 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 };
6179
+ export { AMFactory, AM_CONFIG, AddFolderDialogComponent, AssetDialogComponent, AssetItemComponent, AssetListComponent, AssetManagementComponent, AssetManagementDialogComponent, AssetManagementModule, AssetService, AssetWrapperComponent, BaseHttpClient, BreadcrumbComponent, DIRECTIVES, DeleteDialogComponent, DialogTriggerDirective, DirectivesModule, DndDirective, DragToResizeComponent, EditFolderDialogComponent, FileItemComponent, FileListComponent, FileService, FileSizePipe, FolderItemComponent, FolderListComponent, InputFileComponent, LocalDatePipe, LocalDateTimePipe, ModalComponent, NodeDetailsComponent, NodeTreeComponent, NodeTreeService, SearchBoxComponent, SearchNotFoundComponent, SortItemsComponent, UploadAssetsService, UploadDialogComponent, UploadFileComponent, AssetManagementService as ɵa, DialogConfig as ɵb };
6046
6180
  //# sourceMappingURL=rs-pk-asset-management.js.map