@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.
- package/bundles/rs-pk-asset-management.umd.js +286 -133
- package/bundles/rs-pk-asset-management.umd.js.map +1 -1
- package/bundles/rs-pk-asset-management.umd.min.js +2 -2
- package/bundles/rs-pk-asset-management.umd.min.js.map +1 -1
- package/esm2015/lib/asset-management.component.js +2 -1
- package/esm2015/lib/asset-management.module.js +2 -12
- package/esm2015/lib/asset-management.service.js +3 -2
- package/esm2015/lib/components/partial/add-folder-dialog/add-folder-dialog.component.js +2 -1
- package/esm2015/lib/components/partial/asset-dialog/asset-dialog.component.js +2 -1
- package/esm2015/lib/components/partial/asset-item/asset-item.component.js +7 -3
- package/esm2015/lib/components/partial/asset-list/asset-list.component.js +15 -7
- package/esm2015/lib/components/partial/asset-management-dialog/asset-management-dialog.component.js +4 -3
- package/esm2015/lib/components/partial/asset-wrapper/asset-wrapper.component.js +7 -3
- package/esm2015/lib/components/partial/breadcrumb/breadcrumb.component.js +5 -5
- package/esm2015/lib/components/partial/delete-dialog/delete-dialog.component.js +2 -1
- package/esm2015/lib/components/partial/edit-folder-dialog/edit-folder-dialog.component.js +2 -1
- package/esm2015/lib/components/partial/file-item/file-item.component.js +2 -1
- package/esm2015/lib/components/partial/file-list/file-list.component.js +3 -2
- package/esm2015/lib/components/partial/folder-item/folder-item.component.js +2 -1
- package/esm2015/lib/components/partial/folder-list/folder-list.component.js +4 -3
- package/esm2015/lib/components/partial/node-details/node-details.component.js +15 -8
- package/esm2015/lib/components/partial/node-tree/node-tree.component.js +44 -41
- package/esm2015/lib/components/partial/search-box/search-box.component.js +12 -8
- package/esm2015/lib/components/partial/sort-items/sort-items.component.js +2 -1
- package/esm2015/lib/components/partial/upload-dialog/upload-dialog.component.js +3 -2
- package/esm2015/lib/components/partial/upload-file/upload-file.component.js +2 -1
- package/esm2015/lib/components/ui/drag-to-resize/drag-to-resize.component.js +2 -1
- package/esm2015/lib/components/ui/input-file/input-file.component.js +2 -1
- package/esm2015/lib/components/ui/modal/modal.component.js +3 -2
- package/esm2015/lib/components/ui/search-not-found/search-not-found.component.js +2 -1
- package/esm2015/lib/configs/admin.config.js +72 -13
- package/esm2015/lib/contanst/data-image.js +2 -1
- package/esm2015/lib/contanst/index.js +2 -1
- package/esm2015/lib/datasources/index.js +2 -1
- package/esm2015/lib/datasources/node-tree.datasource.js +10 -8
- package/esm2015/lib/directives/dialogTrigger.directive.js +2 -1
- package/esm2015/lib/directives/directives.module.js +2 -1
- package/esm2015/lib/directives/dnd.directive.js +2 -1
- package/esm2015/lib/models/asset-file.model.js +2 -1
- package/esm2015/lib/models/asset.model.js +2 -1
- package/esm2015/lib/models/file-type.enum.js +4 -3
- package/esm2015/lib/models/file.model.js +2 -1
- package/esm2015/lib/models/index.js +2 -1
- package/esm2015/lib/models/node-tree.model.js +2 -1
- package/esm2015/lib/models/sort.enum.js +2 -1
- package/esm2015/lib/pipes/datetime.pipe.js +2 -1
- package/esm2015/lib/pipes/file-size.pipe.js +2 -1
- package/esm2015/lib/services/asset.service.js +8 -5
- package/esm2015/lib/services/base.service.js +2 -1
- package/esm2015/lib/services/env-config.service.js +2 -1
- package/esm2015/lib/services/file.service.js +2 -1
- package/esm2015/lib/services/index.js +2 -1
- package/esm2015/lib/services/node-tree.service.js +23 -18
- package/esm2015/lib/services/upload-assets.service.js +2 -1
- package/esm2015/lib/store/actions.action.js +11 -10
- package/esm2015/lib/store/index.js +2 -1
- package/esm2015/lib/store/reducer.js +11 -10
- package/esm2015/public-api.js +8 -1
- package/esm2015/rs-pk-asset-management.js +5 -10
- package/esm5/lib/asset-management.component.js +2 -1
- package/esm5/lib/asset-management.module.js +6 -16
- package/esm5/lib/asset-management.service.js +3 -2
- package/esm5/lib/components/partial/add-folder-dialog/add-folder-dialog.component.js +2 -1
- package/esm5/lib/components/partial/asset-dialog/asset-dialog.component.js +2 -1
- package/esm5/lib/components/partial/asset-item/asset-item.component.js +7 -3
- package/esm5/lib/components/partial/asset-list/asset-list.component.js +17 -9
- package/esm5/lib/components/partial/asset-management-dialog/asset-management-dialog.component.js +4 -3
- package/esm5/lib/components/partial/asset-wrapper/asset-wrapper.component.js +7 -3
- package/esm5/lib/components/partial/breadcrumb/breadcrumb.component.js +6 -6
- package/esm5/lib/components/partial/delete-dialog/delete-dialog.component.js +2 -1
- package/esm5/lib/components/partial/edit-folder-dialog/edit-folder-dialog.component.js +2 -1
- package/esm5/lib/components/partial/file-item/file-item.component.js +2 -1
- package/esm5/lib/components/partial/file-list/file-list.component.js +5 -4
- package/esm5/lib/components/partial/folder-item/folder-item.component.js +2 -1
- package/esm5/lib/components/partial/folder-list/folder-list.component.js +4 -3
- package/esm5/lib/components/partial/node-details/node-details.component.js +17 -10
- package/esm5/lib/components/partial/node-tree/node-tree.component.js +64 -52
- package/esm5/lib/components/partial/search-box/search-box.component.js +13 -9
- package/esm5/lib/components/partial/sort-items/sort-items.component.js +2 -1
- package/esm5/lib/components/partial/upload-dialog/upload-dialog.component.js +5 -4
- package/esm5/lib/components/partial/upload-file/upload-file.component.js +4 -3
- package/esm5/lib/components/ui/drag-to-resize/drag-to-resize.component.js +2 -1
- package/esm5/lib/components/ui/input-file/input-file.component.js +2 -1
- package/esm5/lib/components/ui/modal/modal.component.js +3 -2
- package/esm5/lib/components/ui/search-not-found/search-not-found.component.js +2 -1
- package/esm5/lib/configs/admin.config.js +72 -13
- package/esm5/lib/contanst/data-image.js +2 -1
- package/esm5/lib/contanst/index.js +2 -1
- package/esm5/lib/datasources/index.js +2 -1
- package/esm5/lib/datasources/node-tree.datasource.js +19 -14
- package/esm5/lib/directives/dialogTrigger.directive.js +2 -1
- package/esm5/lib/directives/directives.module.js +5 -4
- package/esm5/lib/directives/dnd.directive.js +2 -1
- package/esm5/lib/models/asset-file.model.js +2 -1
- package/esm5/lib/models/asset.model.js +4 -3
- package/esm5/lib/models/file-type.enum.js +4 -3
- package/esm5/lib/models/file.model.js +2 -1
- package/esm5/lib/models/index.js +2 -1
- package/esm5/lib/models/node-tree.model.js +2 -1
- package/esm5/lib/models/sort.enum.js +2 -1
- package/esm5/lib/pipes/datetime.pipe.js +2 -1
- package/esm5/lib/pipes/file-size.pipe.js +2 -1
- package/esm5/lib/services/asset.service.js +10 -5
- package/esm5/lib/services/base.service.js +4 -3
- package/esm5/lib/services/env-config.service.js +2 -1
- package/esm5/lib/services/file.service.js +2 -1
- package/esm5/lib/services/index.js +2 -1
- package/esm5/lib/services/node-tree.service.js +31 -24
- package/esm5/lib/services/upload-assets.service.js +4 -3
- package/esm5/lib/store/actions.action.js +11 -10
- package/esm5/lib/store/index.js +2 -1
- package/esm5/lib/store/reducer.js +12 -11
- package/esm5/public-api.js +8 -1
- package/esm5/rs-pk-asset-management.js +5 -10
- package/fesm2015/rs-pk-asset-management.js +257 -123
- package/fesm2015/rs-pk-asset-management.js.map +1 -1
- package/fesm5/rs-pk-asset-management.js +277 -127
- package/fesm5/rs-pk-asset-management.js.map +1 -1
- package/lib/asset-management.module.d.ts +1 -1
- package/lib/components/partial/add-folder-dialog/add-folder-dialog.component.d.ts +1 -1
- package/lib/components/partial/asset-dialog/asset-dialog.component.d.ts +1 -1
- package/lib/components/partial/asset-item/asset-item.component.d.ts +2 -1
- package/lib/components/partial/asset-list/asset-list.component.d.ts +1 -0
- package/lib/components/partial/asset-management-dialog/asset-management-dialog.component.d.ts +1 -1
- package/lib/components/partial/asset-wrapper/asset-wrapper.component.d.ts +2 -1
- package/lib/components/partial/edit-folder-dialog/edit-folder-dialog.component.d.ts +1 -1
- package/lib/components/partial/file-item/file-item.component.d.ts +3 -3
- package/lib/components/partial/file-list/file-list.component.d.ts +1 -1
- package/lib/components/partial/folder-list/folder-list.component.d.ts +1 -1
- package/lib/components/partial/node-details/node-details.component.d.ts +4 -3
- package/lib/components/partial/node-tree/node-tree.component.d.ts +8 -8
- package/lib/components/partial/upload-dialog/upload-dialog.component.d.ts +1 -1
- package/lib/components/partial/upload-file/upload-file.component.d.ts +1 -1
- package/lib/components/ui/drag-to-resize/drag-to-resize.component.d.ts +1 -1
- package/lib/datasources/node-tree.datasource.d.ts +3 -2
- package/lib/services/asset.service.d.ts +2 -2
- package/lib/services/node-tree.service.d.ts +8 -7
- package/lib/services/upload-assets.service.d.ts +4 -4
- package/package.json +10 -11
- package/public-api.d.ts +6 -0
- package/rs-pk-asset-management.d.ts +2 -8
- package/rs-pk-asset-management.metadata.json +1 -1
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
(function (global, factory) {
|
|
2
|
-
typeof exports === 'object' && typeof module !== 'undefined' ? factory(exports, require('@angular/core'), require('@angular/common'), require('@angular/forms'), require('@angular/material/dialog'), require('@angular/material/button'), require('@angular/material/input'), require('@angular/material/icon'), require('@angular/material/tooltip'), require('@angular/material/tree'), require('@angular/material/paginator'), require('@angular/material/table'), require('@angular/material/progress-bar'), require('@angular/material/menu'), require('@angular/material/checkbox'), require('@angular/material/select'), require('@angular/material/progress-spinner'), require('@angular/common/http'), require('rxjs'), require('rxjs/
|
|
3
|
-
typeof define === 'function' && define.amd ? define('@rs-pk/asset-management', ['exports', '@angular/core', '@angular/common', '@angular/forms', '@angular/material/dialog', '@angular/material/button', '@angular/material/input', '@angular/material/icon', '@angular/material/tooltip', '@angular/material/tree', '@angular/material/paginator', '@angular/material/table', '@angular/material/progress-bar', '@angular/material/menu', '@angular/material/checkbox', '@angular/material/select', '@angular/material/progress-spinner', '@angular/common/http', 'rxjs', 'rxjs/
|
|
4
|
-
(global = global || self, factory((global['rs-pk'] = global['rs-pk'] || {}, global['rs-pk']['asset-management'] = {}), global.ng.core, global.ng.common, global.ng.forms, global.ng.material.dialog, global.ng.material.button, global.ng.material.input, global.ng.material.icon, global.ng.material.tooltip, global.ng.material.tree, global.ng.material.paginator, global.ng.material.table, global.ng.material
|
|
5
|
-
}(this, (function (exports, core, common, forms, dialog, button, input, icon, tooltip, tree, paginator, table, progressBar, menu, checkbox, select$1, progressSpinner, http, rxjs,
|
|
2
|
+
typeof exports === 'object' && typeof module !== 'undefined' ? factory(exports, require('@angular/core'), require('@angular/common'), require('@angular/forms'), require('@angular/material/dialog'), require('@angular/material/button'), require('@angular/material/input'), require('@angular/material/icon'), require('@angular/material/tooltip'), require('@angular/material/tree'), require('@angular/material/paginator'), require('@angular/material/table'), require('@angular/material/progress-bar'), require('@angular/material/menu'), require('@angular/material/checkbox'), require('@angular/material/select'), require('@angular/material/progress-spinner'), require('@angular/common/http'), require('rxjs'), require('rxjs/operators'), require('@angular/platform-browser'), require('@angular/cdk/tree'), require('moment')) :
|
|
3
|
+
typeof define === 'function' && define.amd ? define('@rs-pk/asset-management', ['exports', '@angular/core', '@angular/common', '@angular/forms', '@angular/material/dialog', '@angular/material/button', '@angular/material/input', '@angular/material/icon', '@angular/material/tooltip', '@angular/material/tree', '@angular/material/paginator', '@angular/material/table', '@angular/material/progress-bar', '@angular/material/menu', '@angular/material/checkbox', '@angular/material/select', '@angular/material/progress-spinner', '@angular/common/http', 'rxjs', 'rxjs/operators', '@angular/platform-browser', '@angular/cdk/tree', 'moment'], factory) :
|
|
4
|
+
(global = global || self, factory((global['rs-pk'] = global['rs-pk'] || {}, global['rs-pk']['asset-management'] = {}), global.ng.core, global.ng.common, global.ng.forms, global.ng.material.dialog, global.ng.material.button, global.ng.material.input, global.ng.material.icon, global.ng.material.tooltip, global.ng.material.tree, global.ng.material.paginator, global.ng.material.table, global.ng.material.progressBar, global.ng.material.menu, global.ng.material.checkbox, global.ng.material.select, global.ng.material.progressSpinner, global.ng.common.http, global.rxjs, global.rxjs.operators, global.ng.platformBrowser, global.ng.cdk.tree, global.moment_));
|
|
5
|
+
}(this, (function (exports, core, common, forms, dialog, button, input, icon, tooltip, tree, paginator, table, progressBar, menu, checkbox, select$1, progressSpinner, http, rxjs, operators, platformBrowser, tree$1, moment_) { 'use strict';
|
|
6
6
|
|
|
7
7
|
/*! *****************************************************************************
|
|
8
8
|
Copyright (c) Microsoft Corporation.
|
|
@@ -225,6 +225,7 @@
|
|
|
225
225
|
|
|
226
226
|
/**
|
|
227
227
|
* @fileoverview added by tsickle
|
|
228
|
+
* Generated from: lib/models/asset.model.ts
|
|
228
229
|
* @suppress {checkTypes,constantProperty,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
|
|
229
230
|
*/
|
|
230
231
|
/**
|
|
@@ -403,6 +404,7 @@
|
|
|
403
404
|
|
|
404
405
|
/**
|
|
405
406
|
* @fileoverview added by tsickle
|
|
407
|
+
* Generated from: lib/models/asset-file.model.ts
|
|
406
408
|
* @suppress {checkTypes,constantProperty,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
|
|
407
409
|
*/
|
|
408
410
|
var AssetFileUploadModel = /** @class */ (function () {
|
|
@@ -469,6 +471,7 @@
|
|
|
469
471
|
|
|
470
472
|
/**
|
|
471
473
|
* @fileoverview added by tsickle
|
|
474
|
+
* Generated from: lib/models/file.model.ts
|
|
472
475
|
* @suppress {checkTypes,constantProperty,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
|
|
473
476
|
*/
|
|
474
477
|
/**
|
|
@@ -566,6 +569,7 @@
|
|
|
566
569
|
|
|
567
570
|
/**
|
|
568
571
|
* @fileoverview added by tsickle
|
|
572
|
+
* Generated from: lib/models/node-tree.model.ts
|
|
569
573
|
* @suppress {checkTypes,constantProperty,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
|
|
570
574
|
*/
|
|
571
575
|
/**
|
|
@@ -599,16 +603,18 @@
|
|
|
599
603
|
|
|
600
604
|
/**
|
|
601
605
|
* @fileoverview added by tsickle
|
|
606
|
+
* Generated from: lib/models/file-type.enum.ts
|
|
602
607
|
* @suppress {checkTypes,constantProperty,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
|
|
603
608
|
*/
|
|
604
609
|
/** @enum {string} */
|
|
605
610
|
var FileTypeEnum = {
|
|
606
|
-
IMAGE:
|
|
607
|
-
DOCUMENT:
|
|
611
|
+
IMAGE: "Image",
|
|
612
|
+
DOCUMENT: "Document",
|
|
608
613
|
};
|
|
609
614
|
|
|
610
615
|
/**
|
|
611
616
|
* @fileoverview added by tsickle
|
|
617
|
+
* Generated from: lib/models/sort.enum.ts
|
|
612
618
|
* @suppress {checkTypes,constantProperty,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
|
|
613
619
|
*/
|
|
614
620
|
/** @enum {number} */
|
|
@@ -630,11 +636,13 @@
|
|
|
630
636
|
|
|
631
637
|
/**
|
|
632
638
|
* @fileoverview added by tsickle
|
|
639
|
+
* Generated from: lib/models/index.ts
|
|
633
640
|
* @suppress {checkTypes,constantProperty,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
|
|
634
641
|
*/
|
|
635
642
|
|
|
636
643
|
/**
|
|
637
644
|
* @fileoverview added by tsickle
|
|
645
|
+
* Generated from: lib/services/env-config.service.ts
|
|
638
646
|
* @suppress {checkTypes,constantProperty,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
|
|
639
647
|
*/
|
|
640
648
|
/**
|
|
@@ -654,6 +662,7 @@
|
|
|
654
662
|
|
|
655
663
|
/**
|
|
656
664
|
* @fileoverview added by tsickle
|
|
665
|
+
* Generated from: lib/services/base.service.ts
|
|
657
666
|
* @suppress {checkTypes,constantProperty,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
|
|
658
667
|
*/
|
|
659
668
|
var BaseHttpClient = /** @class */ (function (_super) {
|
|
@@ -706,6 +715,7 @@
|
|
|
706
715
|
|
|
707
716
|
/**
|
|
708
717
|
* @fileoverview added by tsickle
|
|
718
|
+
* Generated from: lib/services/asset.service.ts
|
|
709
719
|
* @suppress {checkTypes,constantProperty,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
|
|
710
720
|
*/
|
|
711
721
|
var AssetService = /** @class */ (function () {
|
|
@@ -809,15 +819,17 @@
|
|
|
809
819
|
/**
|
|
810
820
|
* @param {?} assets
|
|
811
821
|
* @param {?=} pagination
|
|
822
|
+
* @param {?=} totalFile
|
|
812
823
|
* @return {?}
|
|
813
824
|
*/
|
|
814
825
|
AssetService.prototype.setAssetList = /**
|
|
815
826
|
* @param {?} assets
|
|
816
827
|
* @param {?=} pagination
|
|
828
|
+
* @param {?=} totalFile
|
|
817
829
|
* @return {?}
|
|
818
830
|
*/
|
|
819
|
-
function (assets, pagination) {
|
|
820
|
-
this.setPagination(pagination);
|
|
831
|
+
function (assets, pagination, totalFile) {
|
|
832
|
+
this.setPagination(pagination, totalFile);
|
|
821
833
|
this.assetList$.next(assets);
|
|
822
834
|
};
|
|
823
835
|
/**
|
|
@@ -843,16 +855,18 @@
|
|
|
843
855
|
/**
|
|
844
856
|
* @private
|
|
845
857
|
* @param {?} pagination
|
|
858
|
+
* @param {?} totalFile
|
|
846
859
|
* @return {?}
|
|
847
860
|
*/
|
|
848
861
|
AssetService.prototype.setPagination = /**
|
|
849
862
|
* @private
|
|
850
863
|
* @param {?} pagination
|
|
864
|
+
* @param {?} totalFile
|
|
851
865
|
* @return {?}
|
|
852
866
|
*/
|
|
853
|
-
function (pagination) {
|
|
867
|
+
function (pagination, totalFile) {
|
|
854
868
|
if (pagination) {
|
|
855
|
-
this.fileTotal =
|
|
869
|
+
this.fileTotal = totalFile || 0;
|
|
856
870
|
this.pageIndex = pagination.PageIndex;
|
|
857
871
|
this.pageSize = pagination.PageSize;
|
|
858
872
|
}
|
|
@@ -1030,6 +1044,7 @@
|
|
|
1030
1044
|
|
|
1031
1045
|
/**
|
|
1032
1046
|
* @fileoverview added by tsickle
|
|
1047
|
+
* Generated from: lib/asset-management.service.ts
|
|
1033
1048
|
* @suppress {checkTypes,constantProperty,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
|
|
1034
1049
|
*/
|
|
1035
1050
|
/** @type {?} */
|
|
@@ -1067,7 +1082,7 @@
|
|
|
1067
1082
|
];
|
|
1068
1083
|
/** @nocollapse */
|
|
1069
1084
|
AssetManagementService.ctorParameters = function () { return []; };
|
|
1070
|
-
/** @nocollapse */ AssetManagementService
|
|
1085
|
+
/** @nocollapse */ AssetManagementService.ɵprov = core.ɵɵdefineInjectable({ factory: function AssetManagementService_Factory() { return new AssetManagementService(); }, token: AssetManagementService, providedIn: "root" });
|
|
1071
1086
|
return AssetManagementService;
|
|
1072
1087
|
}());
|
|
1073
1088
|
if (false) {
|
|
@@ -1080,6 +1095,7 @@
|
|
|
1080
1095
|
|
|
1081
1096
|
/**
|
|
1082
1097
|
* @fileoverview added by tsickle
|
|
1098
|
+
* Generated from: lib/store/actions.action.ts
|
|
1083
1099
|
* @suppress {checkTypes,constantProperty,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
|
|
1084
1100
|
*/
|
|
1085
1101
|
/**
|
|
@@ -1095,18 +1111,18 @@
|
|
|
1095
1111
|
/** @enum {string} */
|
|
1096
1112
|
var ActionTypes = {
|
|
1097
1113
|
// global loading
|
|
1098
|
-
SET_GLOBAL_LOADING:
|
|
1114
|
+
SET_GLOBAL_LOADING: "[LOADING] Set global loading state",
|
|
1099
1115
|
// asset area
|
|
1100
|
-
SET_SELECTED_ASSETS:
|
|
1101
|
-
RELOAD_CURRENT_ASSETS:
|
|
1102
|
-
DELETE_ASSET:
|
|
1116
|
+
SET_SELECTED_ASSETS: "[ASSET] Set selected assets",
|
|
1117
|
+
RELOAD_CURRENT_ASSETS: "[ASSET] reload current asset list ",
|
|
1118
|
+
DELETE_ASSET: "[ASSET] delete an asset ",
|
|
1103
1119
|
// folder area
|
|
1104
|
-
SET_CURRENT_FOLDER_ID:
|
|
1105
|
-
SET_CURRENT_FOLDER:
|
|
1106
|
-
RELOAD_CURRENT_FOLDER:
|
|
1107
|
-
SET_CURRENT_FOLDER_HIERARCHY:
|
|
1120
|
+
SET_CURRENT_FOLDER_ID: "[FOLDER] get current folder id",
|
|
1121
|
+
SET_CURRENT_FOLDER: "[FOLDER] set current folder ",
|
|
1122
|
+
RELOAD_CURRENT_FOLDER: "[FOLDER] reload current folder ",
|
|
1123
|
+
SET_CURRENT_FOLDER_HIERARCHY: "[FOLDER] set current folder hierarchy ",
|
|
1108
1124
|
// node area
|
|
1109
|
-
RELOAD_CURRENT_NODE:
|
|
1125
|
+
RELOAD_CURRENT_NODE: "[NODE] reload current node ",
|
|
1110
1126
|
};
|
|
1111
1127
|
var SetGlobalLoading = /** @class */ (function () {
|
|
1112
1128
|
function SetGlobalLoading() {
|
|
@@ -1213,6 +1229,7 @@
|
|
|
1213
1229
|
|
|
1214
1230
|
/**
|
|
1215
1231
|
* @fileoverview added by tsickle
|
|
1232
|
+
* Generated from: lib/store/reducer.ts
|
|
1216
1233
|
* @suppress {checkTypes,constantProperty,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
|
|
1217
1234
|
*/
|
|
1218
1235
|
/**
|
|
@@ -1270,39 +1287,39 @@
|
|
|
1270
1287
|
function (action) {
|
|
1271
1288
|
switch (action.type) {
|
|
1272
1289
|
case ActionTypes.SET_SELECTED_ASSETS:
|
|
1273
|
-
state = __assign({}, state, { selectedAssets: action.payload });
|
|
1290
|
+
state = __assign(__assign({}, state), { selectedAssets: action.payload });
|
|
1274
1291
|
store.next(state);
|
|
1275
1292
|
break;
|
|
1276
1293
|
case ActionTypes.SET_GLOBAL_LOADING:
|
|
1277
|
-
state = __assign({}, state, { globalLoading: action.payload });
|
|
1294
|
+
state = __assign(__assign({}, state), { globalLoading: action.payload });
|
|
1278
1295
|
store.next(state);
|
|
1279
1296
|
break;
|
|
1280
1297
|
case ActionTypes.SET_CURRENT_FOLDER:
|
|
1281
|
-
state = __assign({}, state, { currentFolder: __assign({}, action.payload) });
|
|
1298
|
+
state = __assign(__assign({}, state), { currentFolder: __assign({}, action.payload) });
|
|
1282
1299
|
store.next(state);
|
|
1283
1300
|
break;
|
|
1284
1301
|
case ActionTypes.RELOAD_CURRENT_FOLDER:
|
|
1285
|
-
state = __assign({}, state, { reloadCurrentFolder: !state.reloadCurrentFolder });
|
|
1302
|
+
state = __assign(__assign({}, state), { reloadCurrentFolder: !state.reloadCurrentFolder });
|
|
1286
1303
|
store.next(state);
|
|
1287
1304
|
break;
|
|
1288
1305
|
case ActionTypes.RELOAD_CURRENT_ASSETS:
|
|
1289
|
-
state = __assign({}, state, { reloadCurrentAssets: !state.reloadCurrentAssets });
|
|
1306
|
+
state = __assign(__assign({}, state), { reloadCurrentAssets: !state.reloadCurrentAssets });
|
|
1290
1307
|
store.next(state);
|
|
1291
1308
|
break;
|
|
1292
1309
|
case ActionTypes.RELOAD_CURRENT_NODE:
|
|
1293
|
-
state = __assign({}, state, { reloadCurrentNode: !state.reloadCurrentNode });
|
|
1310
|
+
state = __assign(__assign({}, state), { reloadCurrentNode: !state.reloadCurrentNode });
|
|
1294
1311
|
store.next(state);
|
|
1295
1312
|
break;
|
|
1296
1313
|
case ActionTypes.SET_CURRENT_FOLDER_HIERARCHY:
|
|
1297
|
-
state = __assign({}, state, { currentFolderHierarchy: __spread(action.payload) });
|
|
1314
|
+
state = __assign(__assign({}, state), { currentFolderHierarchy: __spread(action.payload) });
|
|
1298
1315
|
store.next(state);
|
|
1299
1316
|
break;
|
|
1300
1317
|
case ActionTypes.SET_CURRENT_FOLDER_ID:
|
|
1301
|
-
state = __assign({}, state, { currentFolderId: action.payload });
|
|
1318
|
+
state = __assign(__assign({}, state), { currentFolderId: action.payload });
|
|
1302
1319
|
store.next(state);
|
|
1303
1320
|
break;
|
|
1304
1321
|
case ActionTypes.DELETE_ASSET:
|
|
1305
|
-
state = __assign({}, state, { deletedAssetId: action.payload });
|
|
1322
|
+
state = __assign(__assign({}, state), { deletedAssetId: action.payload });
|
|
1306
1323
|
store.next(state);
|
|
1307
1324
|
break;
|
|
1308
1325
|
default:
|
|
@@ -1325,20 +1342,22 @@
|
|
|
1325
1342
|
|
|
1326
1343
|
/**
|
|
1327
1344
|
* @fileoverview added by tsickle
|
|
1345
|
+
* Generated from: lib/store/index.ts
|
|
1328
1346
|
* @suppress {checkTypes,constantProperty,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
|
|
1329
1347
|
*/
|
|
1330
1348
|
|
|
1331
1349
|
/**
|
|
1332
1350
|
* @fileoverview added by tsickle
|
|
1351
|
+
* Generated from: lib/services/node-tree.service.ts
|
|
1333
1352
|
* @suppress {checkTypes,constantProperty,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
|
|
1334
1353
|
*/
|
|
1335
1354
|
var NodeTreeService = /** @class */ (function () {
|
|
1336
1355
|
function NodeTreeService(assetService, svc) {
|
|
1337
1356
|
this.assetService = assetService;
|
|
1338
1357
|
this.svc = svc;
|
|
1339
|
-
this.storedData$ = new
|
|
1340
|
-
this.loading$ = new
|
|
1341
|
-
this.initialData$ = new
|
|
1358
|
+
this.storedData$ = new rxjs.BehaviorSubject([]);
|
|
1359
|
+
this.loading$ = new rxjs.BehaviorSubject(false);
|
|
1360
|
+
this.initialData$ = new rxjs.BehaviorSubject([]);
|
|
1342
1361
|
}
|
|
1343
1362
|
Object.defineProperty(NodeTreeService.prototype, "data", {
|
|
1344
1363
|
get: /**
|
|
@@ -1360,21 +1379,25 @@
|
|
|
1360
1379
|
/**
|
|
1361
1380
|
* @private
|
|
1362
1381
|
* @param {?} id
|
|
1382
|
+
* @param {?=} pageSize
|
|
1363
1383
|
* @return {?}
|
|
1364
1384
|
*/
|
|
1365
1385
|
NodeTreeService.prototype.fetchChildrenFolder = /**
|
|
1366
1386
|
* @private
|
|
1367
1387
|
* @param {?} id
|
|
1388
|
+
* @param {?=} pageSize
|
|
1368
1389
|
* @return {?}
|
|
1369
1390
|
*/
|
|
1370
|
-
function (id) {
|
|
1391
|
+
function (id, pageSize) {
|
|
1371
1392
|
return __awaiter(this, void 0, void 0, function () {
|
|
1372
1393
|
var result, err_1;
|
|
1373
1394
|
return __generator(this, function (_a) {
|
|
1374
1395
|
switch (_a.label) {
|
|
1375
1396
|
case 0:
|
|
1376
1397
|
_a.trys.push([0, 2, , 3]);
|
|
1377
|
-
return [4 /*yield*/, this.assetService
|
|
1398
|
+
return [4 /*yield*/, this.assetService
|
|
1399
|
+
.getChildrenFolders({ assetId: id, isFilter: false, pageSize: pageSize || this.assetService.AMConfig.pageFolderSize || MAX_FOLDER_TREE_SIZE })
|
|
1400
|
+
.toPromise()];
|
|
1378
1401
|
case 1:
|
|
1379
1402
|
result = _a.sent();
|
|
1380
1403
|
if (result) {
|
|
@@ -1458,17 +1481,19 @@
|
|
|
1458
1481
|
};
|
|
1459
1482
|
/**
|
|
1460
1483
|
* @param {?} node
|
|
1484
|
+
* @param {?=} pageSize
|
|
1461
1485
|
* @return {?}
|
|
1462
1486
|
*/
|
|
1463
1487
|
NodeTreeService.prototype.getChildren = /**
|
|
1464
1488
|
* @param {?} node
|
|
1489
|
+
* @param {?=} pageSize
|
|
1465
1490
|
* @return {?}
|
|
1466
1491
|
*/
|
|
1467
|
-
function (node) {
|
|
1492
|
+
function (node, pageSize) {
|
|
1468
1493
|
return __awaiter(this, void 0, void 0, function () {
|
|
1469
1494
|
return __generator(this, function (_a) {
|
|
1470
1495
|
switch (_a.label) {
|
|
1471
|
-
case 0: return [4 /*yield*/, this.fetchChildrenFolder(node.AssetId)];
|
|
1496
|
+
case 0: return [4 /*yield*/, this.fetchChildrenFolder(node.AssetId, pageSize)];
|
|
1472
1497
|
case 1: return [2 /*return*/, _a.sent()];
|
|
1473
1498
|
}
|
|
1474
1499
|
});
|
|
@@ -1508,7 +1533,7 @@
|
|
|
1508
1533
|
*/
|
|
1509
1534
|
function (node) { return node.AssetId === asset.AssetId; }));
|
|
1510
1535
|
if (index < 0) {
|
|
1511
|
-
data = __spread(data, [__assign({}, asset, { ParentId: parentId ? parentId : null })]);
|
|
1536
|
+
data = __spread(data, [__assign(__assign({}, asset), { ParentId: parentId ? parentId : null })]);
|
|
1512
1537
|
}
|
|
1513
1538
|
this.data = data;
|
|
1514
1539
|
};
|
|
@@ -1614,6 +1639,7 @@
|
|
|
1614
1639
|
|
|
1615
1640
|
/**
|
|
1616
1641
|
* @fileoverview added by tsickle
|
|
1642
|
+
* Generated from: lib/services/upload-assets.service.ts
|
|
1617
1643
|
* @suppress {checkTypes,constantProperty,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
|
|
1618
1644
|
*/
|
|
1619
1645
|
var UploadAssetsService = /** @class */ (function () {
|
|
@@ -1814,6 +1840,7 @@
|
|
|
1814
1840
|
|
|
1815
1841
|
/**
|
|
1816
1842
|
* @fileoverview added by tsickle
|
|
1843
|
+
* Generated from: lib/services/file.service.ts
|
|
1817
1844
|
* @suppress {checkTypes,constantProperty,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
|
|
1818
1845
|
*/
|
|
1819
1846
|
var FileService = /** @class */ (function () {
|
|
@@ -1936,11 +1963,13 @@
|
|
|
1936
1963
|
|
|
1937
1964
|
/**
|
|
1938
1965
|
* @fileoverview added by tsickle
|
|
1966
|
+
* Generated from: lib/services/index.ts
|
|
1939
1967
|
* @suppress {checkTypes,constantProperty,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
|
|
1940
1968
|
*/
|
|
1941
1969
|
|
|
1942
1970
|
/**
|
|
1943
1971
|
* @fileoverview added by tsickle
|
|
1972
|
+
* Generated from: lib/components/partial/asset-management-dialog/asset-management-dialog.component.ts
|
|
1944
1973
|
* @suppress {checkTypes,constantProperty,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
|
|
1945
1974
|
*/
|
|
1946
1975
|
var AssetManagementDialogComponent = /** @class */ (function () {
|
|
@@ -1948,7 +1977,7 @@
|
|
|
1948
1977
|
this.data = data;
|
|
1949
1978
|
this.dialogRef = dialogRef;
|
|
1950
1979
|
this.assetService = assetService;
|
|
1951
|
-
this.destroy$ = new
|
|
1980
|
+
this.destroy$ = new rxjs.Subject();
|
|
1952
1981
|
this.selectedAssets = [];
|
|
1953
1982
|
}
|
|
1954
1983
|
/**
|
|
@@ -2024,7 +2053,7 @@
|
|
|
2024
2053
|
AssetManagementDialogComponent.decorators = [
|
|
2025
2054
|
{ type: core.Component, args: [{
|
|
2026
2055
|
selector: 'lib-asset-management-dialog',
|
|
2027
|
-
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
|
|
2056
|
+
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>",
|
|
2028
2057
|
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}"]
|
|
2029
2058
|
}] }
|
|
2030
2059
|
];
|
|
@@ -2057,6 +2086,7 @@
|
|
|
2057
2086
|
|
|
2058
2087
|
/**
|
|
2059
2088
|
* @fileoverview added by tsickle
|
|
2089
|
+
* Generated from: lib/asset-management.component.ts
|
|
2060
2090
|
* @suppress {checkTypes,constantProperty,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
|
|
2061
2091
|
*/
|
|
2062
2092
|
var AssetManagementComponent = /** @class */ (function () {
|
|
@@ -2232,6 +2262,7 @@
|
|
|
2232
2262
|
|
|
2233
2263
|
/**
|
|
2234
2264
|
* @fileoverview added by tsickle
|
|
2265
|
+
* Generated from: lib/directives/dialogTrigger.directive.ts
|
|
2235
2266
|
* @suppress {checkTypes,constantProperty,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
|
|
2236
2267
|
*/
|
|
2237
2268
|
var DialogTriggerDirective = /** @class */ (function () {
|
|
@@ -2282,6 +2313,7 @@
|
|
|
2282
2313
|
|
|
2283
2314
|
/**
|
|
2284
2315
|
* @fileoverview added by tsickle
|
|
2316
|
+
* Generated from: lib/directives/dnd.directive.ts
|
|
2285
2317
|
* @suppress {checkTypes,constantProperty,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
|
|
2286
2318
|
*/
|
|
2287
2319
|
var DndDirective = /** @class */ (function () {
|
|
@@ -2360,6 +2392,7 @@
|
|
|
2360
2392
|
|
|
2361
2393
|
/**
|
|
2362
2394
|
* @fileoverview added by tsickle
|
|
2395
|
+
* Generated from: lib/directives/directives.module.ts
|
|
2363
2396
|
* @suppress {checkTypes,constantProperty,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
|
|
2364
2397
|
*/
|
|
2365
2398
|
/** @type {?} */
|
|
@@ -2379,6 +2412,7 @@
|
|
|
2379
2412
|
|
|
2380
2413
|
/**
|
|
2381
2414
|
* @fileoverview added by tsickle
|
|
2415
|
+
* Generated from: lib/components/ui/input-file/input-file.component.ts
|
|
2382
2416
|
* @suppress {checkTypes,constantProperty,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
|
|
2383
2417
|
*/
|
|
2384
2418
|
var InputFileComponent = /** @class */ (function () {
|
|
@@ -2432,6 +2466,7 @@
|
|
|
2432
2466
|
|
|
2433
2467
|
/**
|
|
2434
2468
|
* @fileoverview added by tsickle
|
|
2469
|
+
* Generated from: lib/components/ui/modal/modal.component.ts
|
|
2435
2470
|
* @suppress {checkTypes,constantProperty,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
|
|
2436
2471
|
*/
|
|
2437
2472
|
var ModalComponent = /** @class */ (function () {
|
|
@@ -2449,7 +2484,7 @@
|
|
|
2449
2484
|
{ type: core.Component, args: [{
|
|
2450
2485
|
selector: 'lib-modal',
|
|
2451
2486
|
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",
|
|
2452
|
-
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:-
|
|
2487
|
+
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}"]
|
|
2453
2488
|
}] }
|
|
2454
2489
|
];
|
|
2455
2490
|
/** @nocollapse */
|
|
@@ -2469,6 +2504,7 @@
|
|
|
2469
2504
|
|
|
2470
2505
|
/**
|
|
2471
2506
|
* @fileoverview added by tsickle
|
|
2507
|
+
* Generated from: lib/contanst/data-image.ts
|
|
2472
2508
|
* @suppress {checkTypes,constantProperty,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
|
|
2473
2509
|
*/
|
|
2474
2510
|
// tslint:disable:max-line-length
|
|
@@ -2489,11 +2525,13 @@
|
|
|
2489
2525
|
|
|
2490
2526
|
/**
|
|
2491
2527
|
* @fileoverview added by tsickle
|
|
2528
|
+
* Generated from: lib/contanst/index.ts
|
|
2492
2529
|
* @suppress {checkTypes,constantProperty,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
|
|
2493
2530
|
*/
|
|
2494
2531
|
|
|
2495
2532
|
/**
|
|
2496
2533
|
* @fileoverview added by tsickle
|
|
2534
|
+
* Generated from: lib/components/ui/search-not-found/search-not-found.component.ts
|
|
2497
2535
|
* @suppress {checkTypes,constantProperty,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
|
|
2498
2536
|
*/
|
|
2499
2537
|
var SearchNotFoundComponent = /** @class */ (function () {
|
|
@@ -2533,6 +2571,7 @@
|
|
|
2533
2571
|
|
|
2534
2572
|
/**
|
|
2535
2573
|
* @fileoverview added by tsickle
|
|
2574
|
+
* Generated from: lib/components/partial/file-item/file-item.component.ts
|
|
2536
2575
|
* @suppress {checkTypes,constantProperty,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
|
|
2537
2576
|
*/
|
|
2538
2577
|
var FileItemComponent = /** @class */ (function () {
|
|
@@ -2734,6 +2773,7 @@
|
|
|
2734
2773
|
|
|
2735
2774
|
/**
|
|
2736
2775
|
* @fileoverview added by tsickle
|
|
2776
|
+
* Generated from: lib/components/partial/file-list/file-list.component.ts
|
|
2737
2777
|
* @suppress {checkTypes,constantProperty,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
|
|
2738
2778
|
*/
|
|
2739
2779
|
var FileListComponent = /** @class */ (function () {
|
|
@@ -2802,7 +2842,7 @@
|
|
|
2802
2842
|
{ type: core.Component, args: [{
|
|
2803
2843
|
selector: 'lib-file-list',
|
|
2804
2844
|
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",
|
|
2805
|
-
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
|
|
2845
|
+
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}"]
|
|
2806
2846
|
}] }
|
|
2807
2847
|
];
|
|
2808
2848
|
/** @nocollapse */
|
|
@@ -2823,6 +2863,7 @@
|
|
|
2823
2863
|
|
|
2824
2864
|
/**
|
|
2825
2865
|
* @fileoverview added by tsickle
|
|
2866
|
+
* Generated from: lib/components/partial/upload-file/upload-file.component.ts
|
|
2826
2867
|
* @suppress {checkTypes,constantProperty,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
|
|
2827
2868
|
*/
|
|
2828
2869
|
var UploadFileComponent = /** @class */ (function () {
|
|
@@ -2919,6 +2960,7 @@
|
|
|
2919
2960
|
|
|
2920
2961
|
/**
|
|
2921
2962
|
* @fileoverview added by tsickle
|
|
2963
|
+
* Generated from: lib/components/partial/add-folder-dialog/add-folder-dialog.component.ts
|
|
2922
2964
|
* @suppress {checkTypes,constantProperty,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
|
|
2923
2965
|
*/
|
|
2924
2966
|
/**
|
|
@@ -3076,6 +3118,7 @@
|
|
|
3076
3118
|
|
|
3077
3119
|
/**
|
|
3078
3120
|
* @fileoverview added by tsickle
|
|
3121
|
+
* Generated from: lib/components/partial/edit-folder-dialog/edit-folder-dialog.component.ts
|
|
3079
3122
|
* @suppress {checkTypes,constantProperty,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
|
|
3080
3123
|
*/
|
|
3081
3124
|
/**
|
|
@@ -3238,6 +3281,7 @@
|
|
|
3238
3281
|
|
|
3239
3282
|
/**
|
|
3240
3283
|
* @fileoverview added by tsickle
|
|
3284
|
+
* Generated from: lib/components/partial/delete-dialog/delete-dialog.component.ts
|
|
3241
3285
|
* @suppress {checkTypes,constantProperty,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
|
|
3242
3286
|
*/
|
|
3243
3287
|
/**
|
|
@@ -3385,6 +3429,7 @@
|
|
|
3385
3429
|
|
|
3386
3430
|
/**
|
|
3387
3431
|
* @fileoverview added by tsickle
|
|
3432
|
+
* Generated from: lib/components/partial/upload-dialog/upload-dialog.component.ts
|
|
3388
3433
|
* @suppress {checkTypes,constantProperty,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
|
|
3389
3434
|
*/
|
|
3390
3435
|
/**
|
|
@@ -3501,8 +3546,8 @@
|
|
|
3501
3546
|
];
|
|
3502
3547
|
/** @nocollapse */
|
|
3503
3548
|
UploadDialogComponent.ctorParameters = function () { return [
|
|
3504
|
-
{ type: undefined, decorators: [{ type: core.Inject, args: [
|
|
3505
|
-
{ type:
|
|
3549
|
+
{ type: undefined, decorators: [{ type: core.Inject, args: [dialog.MAT_DIALOG_DATA,] }] },
|
|
3550
|
+
{ type: dialog.MatDialogRef },
|
|
3506
3551
|
{ type: core.ChangeDetectorRef },
|
|
3507
3552
|
{ type: UploadAssetsService }
|
|
3508
3553
|
]; };
|
|
@@ -3533,6 +3578,7 @@
|
|
|
3533
3578
|
|
|
3534
3579
|
/**
|
|
3535
3580
|
* @fileoverview added by tsickle
|
|
3581
|
+
* Generated from: lib/components/partial/folder-item/folder-item.component.ts
|
|
3536
3582
|
* @suppress {checkTypes,constantProperty,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
|
|
3537
3583
|
*/
|
|
3538
3584
|
var FolderItemComponent = /** @class */ (function () {
|
|
@@ -3663,6 +3709,7 @@
|
|
|
3663
3709
|
|
|
3664
3710
|
/**
|
|
3665
3711
|
* @fileoverview added by tsickle
|
|
3712
|
+
* Generated from: lib/components/partial/folder-list/folder-list.component.ts
|
|
3666
3713
|
* @suppress {checkTypes,constantProperty,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
|
|
3667
3714
|
*/
|
|
3668
3715
|
var FolderListComponent = /** @class */ (function () {
|
|
@@ -3672,7 +3719,7 @@
|
|
|
3672
3719
|
this.hasArchivePermission = true;
|
|
3673
3720
|
this.onPageChange = new core.EventEmitter();
|
|
3674
3721
|
this.loading = false;
|
|
3675
|
-
this.unsubscribe$ = new
|
|
3722
|
+
this.unsubscribe$ = new rxjs.Subject();
|
|
3676
3723
|
this.bindSubscriber();
|
|
3677
3724
|
}
|
|
3678
3725
|
/**
|
|
@@ -3753,7 +3800,7 @@
|
|
|
3753
3800
|
hasModifyPermission: [{ type: core.Input }],
|
|
3754
3801
|
hasAccessPermission: [{ type: core.Input }],
|
|
3755
3802
|
hasArchivePermission: [{ type: core.Input }],
|
|
3756
|
-
paginator: [{ type: core.ViewChild, args: [
|
|
3803
|
+
paginator: [{ type: core.ViewChild, args: [paginator.MatPaginator, { static: true },] }],
|
|
3757
3804
|
folders: [{ type: core.Input }],
|
|
3758
3805
|
pagination: [{ type: core.Input }],
|
|
3759
3806
|
onPageChange: [{ type: core.Output }]
|
|
@@ -3786,6 +3833,7 @@
|
|
|
3786
3833
|
|
|
3787
3834
|
/**
|
|
3788
3835
|
* @fileoverview added by tsickle
|
|
3836
|
+
* Generated from: lib/components/partial/asset-list/asset-list.component.ts
|
|
3789
3837
|
* @suppress {checkTypes,constantProperty,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
|
|
3790
3838
|
*/
|
|
3791
3839
|
var AssetListComponent = /** @class */ (function () {
|
|
@@ -3796,7 +3844,7 @@
|
|
|
3796
3844
|
this.hasAccessPermission = true;
|
|
3797
3845
|
this.hasArchivePermission = true;
|
|
3798
3846
|
this.backgroundProcessingNum = BackgroudProcessingStatus;
|
|
3799
|
-
this.unsubscribe$ = new
|
|
3847
|
+
this.unsubscribe$ = new rxjs.Subject();
|
|
3800
3848
|
this.selectedAssets = [];
|
|
3801
3849
|
}
|
|
3802
3850
|
/**
|
|
@@ -3935,7 +3983,7 @@
|
|
|
3935
3983
|
* @param {?} res
|
|
3936
3984
|
* @return {?}
|
|
3937
3985
|
*/
|
|
3938
|
-
function (res) { return
|
|
3986
|
+
function (res) { return rxjs.of(res); })))
|
|
3939
3987
|
.subscribe((/**
|
|
3940
3988
|
* @return {?}
|
|
3941
3989
|
*/
|
|
@@ -3981,9 +4029,14 @@
|
|
|
3981
4029
|
* @return {?}
|
|
3982
4030
|
*/
|
|
3983
4031
|
function (res) {
|
|
3984
|
-
|
|
3985
|
-
|
|
3986
|
-
|
|
4032
|
+
/** @type {?} */
|
|
4033
|
+
var pagination = res && res.Meta || {};
|
|
4034
|
+
/** @type {?} */
|
|
4035
|
+
var assets = res && res.Data && res.Data.Children || [];
|
|
4036
|
+
/** @type {?} */
|
|
4037
|
+
var totalFile = res && res.Data && res.Data.TotalFile || 0;
|
|
4038
|
+
_this.assetService.setAssetList(assets, pagination, totalFile);
|
|
4039
|
+
})).add((/**
|
|
3987
4040
|
* @return {?}
|
|
3988
4041
|
*/
|
|
3989
4042
|
function () {
|
|
@@ -4032,7 +4085,7 @@
|
|
|
4032
4085
|
AssetListComponent.decorators = [
|
|
4033
4086
|
{ type: core.Component, args: [{
|
|
4034
4087
|
selector: 'lib-asset-list',
|
|
4035
|
-
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",
|
|
4088
|
+
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",
|
|
4036
4089
|
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}"]
|
|
4037
4090
|
}] }
|
|
4038
4091
|
];
|
|
@@ -4042,6 +4095,7 @@
|
|
|
4042
4095
|
{ type: AssetManagementService }
|
|
4043
4096
|
]; };
|
|
4044
4097
|
AssetListComponent.propDecorators = {
|
|
4098
|
+
isDialog: [{ type: core.Input }],
|
|
4045
4099
|
hasModifyPermission: [{ type: core.Input }],
|
|
4046
4100
|
hasAccessPermission: [{ type: core.Input }],
|
|
4047
4101
|
hasArchivePermission: [{ type: core.Input }],
|
|
@@ -4051,6 +4105,8 @@
|
|
|
4051
4105
|
return AssetListComponent;
|
|
4052
4106
|
}());
|
|
4053
4107
|
if (false) {
|
|
4108
|
+
/** @type {?} */
|
|
4109
|
+
AssetListComponent.prototype.isDialog;
|
|
4054
4110
|
/** @type {?} */
|
|
4055
4111
|
AssetListComponent.prototype.hasModifyPermission;
|
|
4056
4112
|
/** @type {?} */
|
|
@@ -4092,6 +4148,7 @@
|
|
|
4092
4148
|
|
|
4093
4149
|
/**
|
|
4094
4150
|
* @fileoverview added by tsickle
|
|
4151
|
+
* Generated from: lib/pipes/file-size.pipe.ts
|
|
4095
4152
|
* @suppress {checkTypes,constantProperty,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
|
|
4096
4153
|
*/
|
|
4097
4154
|
/*
|
|
@@ -4153,6 +4210,7 @@
|
|
|
4153
4210
|
|
|
4154
4211
|
/**
|
|
4155
4212
|
* @fileoverview added by tsickle
|
|
4213
|
+
* Generated from: lib/components/partial/asset-dialog/asset-dialog.component.ts
|
|
4156
4214
|
* @suppress {checkTypes,constantProperty,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
|
|
4157
4215
|
*/
|
|
4158
4216
|
/**
|
|
@@ -4576,6 +4634,7 @@
|
|
|
4576
4634
|
|
|
4577
4635
|
/**
|
|
4578
4636
|
* @fileoverview added by tsickle
|
|
4637
|
+
* Generated from: lib/components/partial/asset-item/asset-item.component.ts
|
|
4579
4638
|
* @suppress {checkTypes,constantProperty,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
|
|
4580
4639
|
*/
|
|
4581
4640
|
var AssetItemComponent = /** @class */ (function () {
|
|
@@ -4837,8 +4896,8 @@
|
|
|
4837
4896
|
AssetItemComponent.decorators = [
|
|
4838
4897
|
{ type: core.Component, args: [{
|
|
4839
4898
|
selector: 'lib-asset-item',
|
|
4840
|
-
template: "<div class=\"asset-wrapper\">\n <div class=\"asset-content\">\n <div class=\"asset-content__header\" *ngIf=\"asset?.BackgroudProcessingStatus === backgroundProcessingNum.Processed
|
|
4841
|
-
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{
|
|
4899
|
+
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>",
|
|
4900
|
+
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}"]
|
|
4842
4901
|
}] }
|
|
4843
4902
|
];
|
|
4844
4903
|
/** @nocollapse */
|
|
@@ -4850,6 +4909,7 @@
|
|
|
4850
4909
|
{ type: core.ChangeDetectorRef }
|
|
4851
4910
|
]; };
|
|
4852
4911
|
AssetItemComponent.propDecorators = {
|
|
4912
|
+
isDialog: [{ type: core.Input }],
|
|
4853
4913
|
hasModifyPermission: [{ type: core.Input }],
|
|
4854
4914
|
hasAccessPermission: [{ type: core.Input }],
|
|
4855
4915
|
hasArchivePermission: [{ type: core.Input }],
|
|
@@ -4859,6 +4919,8 @@
|
|
|
4859
4919
|
return AssetItemComponent;
|
|
4860
4920
|
}());
|
|
4861
4921
|
if (false) {
|
|
4922
|
+
/** @type {?} */
|
|
4923
|
+
AssetItemComponent.prototype.isDialog;
|
|
4862
4924
|
/** @type {?} */
|
|
4863
4925
|
AssetItemComponent.prototype.hasModifyPermission;
|
|
4864
4926
|
/** @type {?} */
|
|
@@ -4912,6 +4974,7 @@
|
|
|
4912
4974
|
|
|
4913
4975
|
/**
|
|
4914
4976
|
* @fileoverview added by tsickle
|
|
4977
|
+
* Generated from: lib/datasources/node-tree.datasource.ts
|
|
4915
4978
|
* @suppress {checkTypes,constantProperty,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
|
|
4916
4979
|
*/
|
|
4917
4980
|
var NodeTreeDataSource = /** @class */ (function () {
|
|
@@ -5030,7 +5093,8 @@
|
|
|
5030
5093
|
*/
|
|
5031
5094
|
function (node, expand) {
|
|
5032
5095
|
return __awaiter(this, void 0, void 0, function () {
|
|
5033
|
-
var
|
|
5096
|
+
var index, newNode, nodes, count, i;
|
|
5097
|
+
var _a;
|
|
5034
5098
|
var _this = this;
|
|
5035
5099
|
return __generator(this, function (_b) {
|
|
5036
5100
|
switch (_b.label) {
|
|
@@ -5082,16 +5146,19 @@
|
|
|
5082
5146
|
/**
|
|
5083
5147
|
* Reload the node, remove from display list
|
|
5084
5148
|
* @param {?} node
|
|
5149
|
+
* @param {?=} pageSize
|
|
5085
5150
|
* @return {?}
|
|
5086
5151
|
*/
|
|
5087
5152
|
NodeTreeDataSource.prototype.reloadNode = /**
|
|
5088
5153
|
* Reload the node, remove from display list
|
|
5089
5154
|
* @param {?} node
|
|
5155
|
+
* @param {?=} pageSize
|
|
5090
5156
|
* @return {?}
|
|
5091
5157
|
*/
|
|
5092
|
-
function (node) {
|
|
5158
|
+
function (node, pageSize) {
|
|
5093
5159
|
return __awaiter(this, void 0, void 0, function () {
|
|
5094
|
-
var
|
|
5160
|
+
var newNode, index, count, i, nodes;
|
|
5161
|
+
var _a;
|
|
5095
5162
|
var _this = this;
|
|
5096
5163
|
return __generator(this, function (_b) {
|
|
5097
5164
|
switch (_b.label) {
|
|
@@ -5099,7 +5166,7 @@
|
|
|
5099
5166
|
if (!node) {
|
|
5100
5167
|
return [2 /*return*/];
|
|
5101
5168
|
}
|
|
5102
|
-
return [4 /*yield*/, this._database.getChildren(node.item)];
|
|
5169
|
+
return [4 /*yield*/, this._database.getChildren(node.item, pageSize)];
|
|
5103
5170
|
case 1:
|
|
5104
5171
|
newNode = _b.sent();
|
|
5105
5172
|
index = this.data.indexOf(node);
|
|
@@ -5146,11 +5213,13 @@
|
|
|
5146
5213
|
|
|
5147
5214
|
/**
|
|
5148
5215
|
* @fileoverview added by tsickle
|
|
5216
|
+
* Generated from: lib/datasources/index.ts
|
|
5149
5217
|
* @suppress {checkTypes,constantProperty,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
|
|
5150
5218
|
*/
|
|
5151
5219
|
|
|
5152
5220
|
/**
|
|
5153
5221
|
* @fileoverview added by tsickle
|
|
5222
|
+
* Generated from: lib/components/partial/node-tree/node-tree.component.ts
|
|
5154
5223
|
* @suppress {checkTypes,constantProperty,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
|
|
5155
5224
|
*/
|
|
5156
5225
|
var NodeTreeComponent = /** @class */ (function () {
|
|
@@ -5194,7 +5263,7 @@
|
|
|
5194
5263
|
var rootFolder = this.folderChildrenMap.get(ROOT_ASSET_ID);
|
|
5195
5264
|
return {
|
|
5196
5265
|
length: rootFolder ? rootFolder.size : 0,
|
|
5197
|
-
total: this.nodeTreeService.rootFolder ? this.nodeTreeService.rootFolder.TotalFolder ||
|
|
5266
|
+
total: this.nodeTreeService.rootFolder ? this.nodeTreeService.rootFolder.TotalFolder || "0" : 0,
|
|
5198
5267
|
};
|
|
5199
5268
|
},
|
|
5200
5269
|
enumerable: true,
|
|
@@ -5267,9 +5336,7 @@
|
|
|
5267
5336
|
*/
|
|
5268
5337
|
function () {
|
|
5269
5338
|
var _this = this;
|
|
5270
|
-
this.nodeTreeService.loading$
|
|
5271
|
-
.pipe(operators.takeUntil(this.unsubscribe$), operators.distinctUntilChanged())
|
|
5272
|
-
.subscribe((/**
|
|
5339
|
+
this.nodeTreeService.loading$.pipe(operators.takeUntil(this.unsubscribe$), operators.distinctUntilChanged()).subscribe((/**
|
|
5273
5340
|
* @param {?} loading
|
|
5274
5341
|
* @return {?}
|
|
5275
5342
|
*/
|
|
@@ -5277,9 +5344,7 @@
|
|
|
5277
5344
|
_this.homeLoading = loading;
|
|
5278
5345
|
_this.changeDetectorRef.detectChanges();
|
|
5279
5346
|
}));
|
|
5280
|
-
this.nodeTreeService.initialData$
|
|
5281
|
-
.pipe(operators.takeUntil(this.unsubscribe$), operators.distinctUntilChanged())
|
|
5282
|
-
.subscribe((/**
|
|
5347
|
+
this.nodeTreeService.initialData$.pipe(operators.takeUntil(this.unsubscribe$), operators.distinctUntilChanged()).subscribe((/**
|
|
5283
5348
|
* @param {?} data
|
|
5284
5349
|
* @return {?}
|
|
5285
5350
|
*/
|
|
@@ -5294,9 +5359,7 @@
|
|
|
5294
5359
|
function (node) { return _this.nodeTreeService.addNode(node.item, null); }));
|
|
5295
5360
|
_this.changeDetectorRef.detectChanges();
|
|
5296
5361
|
}));
|
|
5297
|
-
this.dataSource.dataChange
|
|
5298
|
-
.pipe(operators.takeUntil(this.unsubscribe$))
|
|
5299
|
-
.subscribe((/**
|
|
5362
|
+
this.dataSource.dataChange.pipe(operators.takeUntil(this.unsubscribe$)).subscribe((/**
|
|
5300
5363
|
* @param {?} data
|
|
5301
5364
|
* @return {?}
|
|
5302
5365
|
*/
|
|
@@ -5467,11 +5530,13 @@
|
|
|
5467
5530
|
this.setLoadingMore(id, true);
|
|
5468
5531
|
children = this.folderChildrenMap.get(id);
|
|
5469
5532
|
itemsPerPage = this.assetService.AMConfig.pageFolderSize || MAX_FOLDER_TREE_SIZE;
|
|
5470
|
-
return [4 /*yield*/, this.assetService
|
|
5533
|
+
return [4 /*yield*/, this.assetService
|
|
5534
|
+
.getChildrenFolders({
|
|
5471
5535
|
assetId: id === ROOT_ASSET_ID ? null : id,
|
|
5472
5536
|
isFilter: false,
|
|
5473
|
-
pageIndex: Math.round((children ? children.size : 0) / itemsPerPage)
|
|
5474
|
-
})
|
|
5537
|
+
pageIndex: Math.round((children ? children.size : 0) / itemsPerPage),
|
|
5538
|
+
})
|
|
5539
|
+
.toPromise()];
|
|
5475
5540
|
case 2:
|
|
5476
5541
|
result = _a.sent();
|
|
5477
5542
|
assetChildren = result.Data.Children || [];
|
|
@@ -5498,7 +5563,7 @@
|
|
|
5498
5563
|
return [3 /*break*/, 4];
|
|
5499
5564
|
case 3:
|
|
5500
5565
|
error_1 = _a.sent();
|
|
5501
|
-
console.log(
|
|
5566
|
+
console.log("Load more folder error", error_1);
|
|
5502
5567
|
this.setLoadingMore(id, false);
|
|
5503
5568
|
return [3 /*break*/, 4];
|
|
5504
5569
|
case 4: return [2 /*return*/];
|
|
@@ -5579,7 +5644,7 @@
|
|
|
5579
5644
|
*/
|
|
5580
5645
|
function (id) {
|
|
5581
5646
|
return __awaiter(this, void 0, void 0, function () {
|
|
5582
|
-
var node, parent_1, updatedNode;
|
|
5647
|
+
var node, parent_1, children, updatedNode, rootFolder, updatedNode;
|
|
5583
5648
|
return __generator(this, function (_a) {
|
|
5584
5649
|
switch (_a.label) {
|
|
5585
5650
|
case 0:
|
|
@@ -5588,30 +5653,45 @@
|
|
|
5588
5653
|
}
|
|
5589
5654
|
this.loading = true;
|
|
5590
5655
|
node = this.getNodeById(id);
|
|
5591
|
-
if (!node) return [3 /*break*/,
|
|
5656
|
+
if (!node) return [3 /*break*/, 8];
|
|
5592
5657
|
parent_1 = this.getParent(node);
|
|
5593
5658
|
if (!parent_1) return [3 /*break*/, 4];
|
|
5594
5659
|
// Reload parent folder (get children and expand it again)
|
|
5595
|
-
|
|
5660
|
+
children = this.folderChildrenMap.get(parent_1.item.AssetId);
|
|
5661
|
+
return [4 /*yield*/, this.dataSource.reloadNode(parent_1, children.size)];
|
|
5596
5662
|
case 1:
|
|
5597
|
-
// Reload parent folder (get children and expand it again)
|
|
5598
5663
|
_a.sent();
|
|
5599
5664
|
updatedNode = this.getNodeById(id);
|
|
5600
5665
|
if (!updatedNode) return [3 /*break*/, 3];
|
|
5666
|
+
// TODO
|
|
5601
5667
|
return [4 /*yield*/, this.treeControl.expand(updatedNode)];
|
|
5602
5668
|
case 2:
|
|
5669
|
+
// TODO
|
|
5603
5670
|
_a.sent();
|
|
5604
5671
|
_a.label = 3;
|
|
5605
|
-
case 3: return [3 /*break*/,
|
|
5606
|
-
case 4:
|
|
5607
|
-
|
|
5672
|
+
case 3: return [3 /*break*/, 7];
|
|
5673
|
+
case 4:
|
|
5674
|
+
rootFolder = this.folderChildrenMap.get(ROOT_ASSET_ID);
|
|
5675
|
+
return [4 /*yield*/, this.nodeTreeService.initialData({ dispatchRootId: false, pageSize: rootFolder.size })];
|
|
5676
|
+
case 5:
|
|
5677
|
+
_a.sent();
|
|
5678
|
+
updatedNode = this.getNodeById(id);
|
|
5679
|
+
if (!updatedNode) return [3 /*break*/, 7];
|
|
5680
|
+
// TODO
|
|
5681
|
+
return [4 /*yield*/, this.treeControl.expand(updatedNode)];
|
|
5682
|
+
case 6:
|
|
5683
|
+
// TODO
|
|
5684
|
+
_a.sent();
|
|
5685
|
+
_a.label = 7;
|
|
5686
|
+
case 7: return [3 /*break*/, 10];
|
|
5687
|
+
case 8:
|
|
5608
5688
|
// Reload root folder
|
|
5609
5689
|
return [4 /*yield*/, this.nodeTreeService.initialData({ dispatchRootId: false })];
|
|
5610
|
-
case
|
|
5690
|
+
case 9:
|
|
5611
5691
|
// Reload root folder
|
|
5612
5692
|
_a.sent();
|
|
5613
|
-
_a.label =
|
|
5614
|
-
case
|
|
5693
|
+
_a.label = 10;
|
|
5694
|
+
case 10:
|
|
5615
5695
|
this.loading = false;
|
|
5616
5696
|
return [2 /*return*/];
|
|
5617
5697
|
}
|
|
@@ -5647,9 +5727,9 @@
|
|
|
5647
5727
|
};
|
|
5648
5728
|
NodeTreeComponent.decorators = [
|
|
5649
5729
|
{ type: core.Component, args: [{
|
|
5650
|
-
selector:
|
|
5730
|
+
selector: "lib-node-tree",
|
|
5651
5731
|
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>",
|
|
5652
|
-
styles: [":host::ng-deep .node{overflow-x:hidden;height:100%;display
|
|
5732
|
+
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}"]
|
|
5653
5733
|
}] }
|
|
5654
5734
|
];
|
|
5655
5735
|
/** @nocollapse */
|
|
@@ -5717,6 +5797,7 @@
|
|
|
5717
5797
|
|
|
5718
5798
|
/**
|
|
5719
5799
|
* @fileoverview added by tsickle
|
|
5800
|
+
* Generated from: lib/components/partial/breadcrumb/breadcrumb.component.ts
|
|
5720
5801
|
* @suppress {checkTypes,constantProperty,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
|
|
5721
5802
|
*/
|
|
5722
5803
|
var BreadcrumbComponent = /** @class */ (function () {
|
|
@@ -5724,7 +5805,7 @@
|
|
|
5724
5805
|
this.nodeTreeService = nodeTreeService;
|
|
5725
5806
|
this.svc = svc;
|
|
5726
5807
|
this.changeDetectorRef = changeDetectorRef;
|
|
5727
|
-
this.unsubscribe$ = new
|
|
5808
|
+
this.unsubscribe$ = new rxjs.Subject();
|
|
5728
5809
|
this.currentFolderHierarchy = [];
|
|
5729
5810
|
this.maximumShownLevel = 3;
|
|
5730
5811
|
this.bindSubscriber();
|
|
@@ -5765,7 +5846,7 @@
|
|
|
5765
5846
|
* @param {?} res
|
|
5766
5847
|
* @return {?}
|
|
5767
5848
|
*/
|
|
5768
|
-
function (res) { return
|
|
5849
|
+
function (res) { return rxjs.of(res); })))
|
|
5769
5850
|
.subscribe((/**
|
|
5770
5851
|
* @param {?} currentFolderHierarchy
|
|
5771
5852
|
* @return {?}
|
|
@@ -5851,13 +5932,14 @@
|
|
|
5851
5932
|
|
|
5852
5933
|
/**
|
|
5853
5934
|
* @fileoverview added by tsickle
|
|
5935
|
+
* Generated from: lib/components/partial/search-box/search-box.component.ts
|
|
5854
5936
|
* @suppress {checkTypes,constantProperty,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
|
|
5855
5937
|
*/
|
|
5856
5938
|
var SearchBoxComponent = /** @class */ (function () {
|
|
5857
5939
|
function SearchBoxComponent(assetService, svc) {
|
|
5858
5940
|
this.assetService = assetService;
|
|
5859
5941
|
this.svc = svc;
|
|
5860
|
-
this.destroy$ = new
|
|
5942
|
+
this.destroy$ = new rxjs.Subject();
|
|
5861
5943
|
this.value = '';
|
|
5862
5944
|
this.folderId = '';
|
|
5863
5945
|
this.bindingSubscriber();
|
|
@@ -5888,7 +5970,7 @@
|
|
|
5888
5970
|
* @param {?} res
|
|
5889
5971
|
* @return {?}
|
|
5890
5972
|
*/
|
|
5891
|
-
function (res) { return
|
|
5973
|
+
function (res) { return rxjs.of(res); })))
|
|
5892
5974
|
.subscribe((/**
|
|
5893
5975
|
* @param {?} currentFolderId
|
|
5894
5976
|
* @return {?}
|
|
@@ -5950,7 +6032,7 @@
|
|
|
5950
6032
|
type: ActionTypes.SET_GLOBAL_LOADING,
|
|
5951
6033
|
payload: true,
|
|
5952
6034
|
});
|
|
5953
|
-
|
|
6035
|
+
rxjs.combineLatest([
|
|
5954
6036
|
this.assetService.getChildrenFolders({ assetId: this.folderId }),
|
|
5955
6037
|
this.assetService.getChildrenAssets({
|
|
5956
6038
|
assetId: this.folderId,
|
|
@@ -5963,11 +6045,16 @@
|
|
|
5963
6045
|
* @return {?}
|
|
5964
6046
|
*/
|
|
5965
6047
|
function (_a) {
|
|
5966
|
-
var _b = __read(_a, 2), folders = _b[0],
|
|
6048
|
+
var _b = __read(_a, 2), folders = _b[0], assetsRes = _b[1];
|
|
6049
|
+
/** @type {?} */
|
|
6050
|
+
var pagination = assetsRes && assetsRes.Meta || {};
|
|
6051
|
+
/** @type {?} */
|
|
6052
|
+
var assets = assetsRes && assetsRes.Data && assetsRes.Data.Children || [];
|
|
6053
|
+
/** @type {?} */
|
|
6054
|
+
var totalFile = assetsRes && assetsRes.Data && assetsRes.Data.TotalFile || 0;
|
|
5967
6055
|
_this.assetService.setFolderList(folders.Data, { Total: folders.Data.TotalFolder });
|
|
5968
|
-
_this.assetService.setAssetList(assets
|
|
5969
|
-
}))
|
|
5970
|
-
.add((/**
|
|
6056
|
+
_this.assetService.setAssetList(assets, pagination, totalFile);
|
|
6057
|
+
})).add((/**
|
|
5971
6058
|
* @return {?}
|
|
5972
6059
|
*/
|
|
5973
6060
|
function () {
|
|
@@ -6025,6 +6112,7 @@
|
|
|
6025
6112
|
|
|
6026
6113
|
/**
|
|
6027
6114
|
* @fileoverview added by tsickle
|
|
6115
|
+
* Generated from: lib/components/partial/sort-items/sort-items.component.ts
|
|
6028
6116
|
* @suppress {checkTypes,constantProperty,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
|
|
6029
6117
|
*/
|
|
6030
6118
|
var SortItemsComponent = /** @class */ (function () {
|
|
@@ -6126,6 +6214,7 @@
|
|
|
6126
6214
|
|
|
6127
6215
|
/**
|
|
6128
6216
|
* @fileoverview added by tsickle
|
|
6217
|
+
* Generated from: lib/components/partial/asset-wrapper/asset-wrapper.component.ts
|
|
6129
6218
|
* @suppress {checkTypes,constantProperty,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
|
|
6130
6219
|
*/
|
|
6131
6220
|
var AssetWrapperComponent = /** @class */ (function () {
|
|
@@ -6136,7 +6225,7 @@
|
|
|
6136
6225
|
this.hasAccessPermission = true;
|
|
6137
6226
|
this.hasArchivePermission = true;
|
|
6138
6227
|
this.assets = new core.EventEmitter();
|
|
6139
|
-
this.unsubscribe$ = new
|
|
6228
|
+
this.unsubscribe$ = new rxjs.Subject();
|
|
6140
6229
|
this.nodeTreeMinWidth = 300;
|
|
6141
6230
|
this.nodeTreeMaxWidth = 700;
|
|
6142
6231
|
}
|
|
@@ -6199,7 +6288,7 @@
|
|
|
6199
6288
|
AssetWrapperComponent.decorators = [
|
|
6200
6289
|
{ type: core.Component, args: [{
|
|
6201
6290
|
selector: 'lib-asset-wrapper',
|
|
6202
|
-
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\"
|
|
6291
|
+
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>",
|
|
6203
6292
|
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}"]
|
|
6204
6293
|
}] }
|
|
6205
6294
|
];
|
|
@@ -6209,6 +6298,7 @@
|
|
|
6209
6298
|
]; };
|
|
6210
6299
|
AssetWrapperComponent.propDecorators = {
|
|
6211
6300
|
header: [{ type: core.Input }],
|
|
6301
|
+
isDialog: [{ type: core.Input }],
|
|
6212
6302
|
hasModifyPermission: [{ type: core.Input }],
|
|
6213
6303
|
hasAccessPermission: [{ type: core.Input }],
|
|
6214
6304
|
hasArchivePermission: [{ type: core.Input }],
|
|
@@ -6220,6 +6310,8 @@
|
|
|
6220
6310
|
/** @type {?} */
|
|
6221
6311
|
AssetWrapperComponent.prototype.header;
|
|
6222
6312
|
/** @type {?} */
|
|
6313
|
+
AssetWrapperComponent.prototype.isDialog;
|
|
6314
|
+
/** @type {?} */
|
|
6223
6315
|
AssetWrapperComponent.prototype.hasModifyPermission;
|
|
6224
6316
|
/** @type {?} */
|
|
6225
6317
|
AssetWrapperComponent.prototype.hasAccessPermission;
|
|
@@ -6247,6 +6339,7 @@
|
|
|
6247
6339
|
|
|
6248
6340
|
/**
|
|
6249
6341
|
* @fileoverview added by tsickle
|
|
6342
|
+
* Generated from: lib/components/partial/node-details/node-details.component.ts
|
|
6250
6343
|
* @suppress {checkTypes,constantProperty,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
|
|
6251
6344
|
*/
|
|
6252
6345
|
var NodeDetailsComponent = /** @class */ (function () {
|
|
@@ -6259,9 +6352,9 @@
|
|
|
6259
6352
|
this.hasModifyPermission = true;
|
|
6260
6353
|
this.hasAccessPermission = true;
|
|
6261
6354
|
this.hasArchivePermission = true;
|
|
6262
|
-
this.unsubscribe$ = new
|
|
6355
|
+
this.unsubscribe$ = new rxjs.Subject();
|
|
6263
6356
|
this.selectedAssets = [];
|
|
6264
|
-
this.loading$ = new
|
|
6357
|
+
this.loading$ = new rxjs.BehaviorSubject(false);
|
|
6265
6358
|
this.bindSubscriber();
|
|
6266
6359
|
}
|
|
6267
6360
|
/**
|
|
@@ -6578,7 +6671,7 @@
|
|
|
6578
6671
|
payload: true,
|
|
6579
6672
|
});
|
|
6580
6673
|
var _a = this.getFolderPagePagination(), pageIndex = _a.pageIndex, pageSize = _a.pageSize;
|
|
6581
|
-
|
|
6674
|
+
rxjs.combineLatest([
|
|
6582
6675
|
this.assetService.getChildrenFolders({ assetId: id, pageIndex: pageIndex, pageSize: pageSize }),
|
|
6583
6676
|
this.assetService.getChildrenAssets({
|
|
6584
6677
|
assetId: id,
|
|
@@ -6591,8 +6684,14 @@
|
|
|
6591
6684
|
*/
|
|
6592
6685
|
function (_a) {
|
|
6593
6686
|
var _b = __read(_a, 2), foldersRes = _b[0], assetsRes = _b[1];
|
|
6687
|
+
/** @type {?} */
|
|
6688
|
+
var pagination = assetsRes && assetsRes.Meta || {};
|
|
6689
|
+
/** @type {?} */
|
|
6690
|
+
var assets = assetsRes && assetsRes.Data && assetsRes.Data.Children || [];
|
|
6691
|
+
/** @type {?} */
|
|
6692
|
+
var totalFile = assetsRes && assetsRes.Data && assetsRes.Data.TotalFile || 0;
|
|
6594
6693
|
_this.setFolderList(foldersRes);
|
|
6595
|
-
_this.assetService.setAssetList(
|
|
6694
|
+
_this.assetService.setAssetList(assets, pagination, totalFile);
|
|
6596
6695
|
if (foldersRes.Data && foldersRes.Data.Children) {
|
|
6597
6696
|
foldersRes.Data.Children.forEach((/**
|
|
6598
6697
|
* @param {?} node
|
|
@@ -6692,8 +6791,8 @@
|
|
|
6692
6791
|
NodeDetailsComponent.decorators = [
|
|
6693
6792
|
{ type: core.Component, args: [{
|
|
6694
6793
|
selector: 'lib-node-details',
|
|
6695
|
-
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>",
|
|
6696
|
-
styles: [":host::ng-deep .node-details{max-height:100%;overflow-y:auto}:host::ng-deep .node-details .node-header{position
|
|
6794
|
+
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>",
|
|
6795
|
+
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}"]
|
|
6697
6796
|
}] }
|
|
6698
6797
|
];
|
|
6699
6798
|
/** @nocollapse */
|
|
@@ -6705,6 +6804,7 @@
|
|
|
6705
6804
|
{ type: core.ChangeDetectorRef }
|
|
6706
6805
|
]; };
|
|
6707
6806
|
NodeDetailsComponent.propDecorators = {
|
|
6807
|
+
isDialog: [{ type: core.Input }],
|
|
6708
6808
|
hasModifyPermission: [{ type: core.Input }],
|
|
6709
6809
|
hasAccessPermission: [{ type: core.Input }],
|
|
6710
6810
|
hasArchivePermission: [{ type: core.Input }]
|
|
@@ -6712,6 +6812,8 @@
|
|
|
6712
6812
|
return NodeDetailsComponent;
|
|
6713
6813
|
}());
|
|
6714
6814
|
if (false) {
|
|
6815
|
+
/** @type {?} */
|
|
6816
|
+
NodeDetailsComponent.prototype.isDialog;
|
|
6715
6817
|
/** @type {?} */
|
|
6716
6818
|
NodeDetailsComponent.prototype.hasModifyPermission;
|
|
6717
6819
|
/** @type {?} */
|
|
@@ -6756,6 +6858,7 @@
|
|
|
6756
6858
|
|
|
6757
6859
|
/**
|
|
6758
6860
|
* @fileoverview added by tsickle
|
|
6861
|
+
* Generated from: lib/components/ui/drag-to-resize/drag-to-resize.component.ts
|
|
6759
6862
|
* @suppress {checkTypes,constantProperty,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
|
|
6760
6863
|
*/
|
|
6761
6864
|
var DragToResizeComponent = /** @class */ (function () {
|
|
@@ -6871,28 +6974,88 @@
|
|
|
6871
6974
|
|
|
6872
6975
|
/**
|
|
6873
6976
|
* @fileoverview added by tsickle
|
|
6977
|
+
* Generated from: lib/configs/admin.config.ts
|
|
6874
6978
|
* @suppress {checkTypes,constantProperty,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
|
|
6875
6979
|
*/
|
|
6876
6980
|
/** @type {?} */
|
|
6877
6981
|
var AdminConfig = {
|
|
6878
|
-
locale:
|
|
6879
|
-
|
|
6982
|
+
locale: "en-US",
|
|
6983
|
+
countryName: {
|
|
6984
|
+
US: "United States",
|
|
6985
|
+
CA: "Canada",
|
|
6986
|
+
},
|
|
6880
6987
|
format: {
|
|
6881
|
-
date:
|
|
6882
|
-
dayMonth:
|
|
6883
|
-
dateTime:
|
|
6884
|
-
fullDateTime:
|
|
6885
|
-
dateTimeAM:
|
|
6886
|
-
apiDate:
|
|
6887
|
-
apiDateTime:
|
|
6888
|
-
apiDateTimeNoZ:
|
|
6889
|
-
apiDateMonthYear:
|
|
6890
|
-
urlParam:
|
|
6988
|
+
date: "MM/DD/YYYY",
|
|
6989
|
+
dayMonth: "MMM DD",
|
|
6990
|
+
dateTime: "MM/DD/YYYY HH:mm",
|
|
6991
|
+
fullDateTime: "MM/DD/YYYY HH:mm:ss",
|
|
6992
|
+
dateTimeAM: "MM/DD/YYYY hh:mm A",
|
|
6993
|
+
apiDate: "YYYY/MM/DD",
|
|
6994
|
+
apiDateTime: "YYYY-MM-DD[T]HH:mm:ssZ",
|
|
6995
|
+
apiDateTimeNoZ: "YYYY-MM-DD[T]HH:mm:ss",
|
|
6996
|
+
apiDateMonthYear: "MMM DD YYYY",
|
|
6997
|
+
urlParam: "YYYY-MM-DD",
|
|
6891
6998
|
},
|
|
6999
|
+
mask: {
|
|
7000
|
+
phone: "(000) 000-0000",
|
|
7001
|
+
date: "M0/d0/0000",
|
|
7002
|
+
zipCode: {
|
|
7003
|
+
US: "00000",
|
|
7004
|
+
CA: "AAA AAA",
|
|
7005
|
+
},
|
|
7006
|
+
money: "0*.00",
|
|
7007
|
+
number: "0*.00",
|
|
7008
|
+
integer: "0*",
|
|
7009
|
+
tax: "00.0000",
|
|
7010
|
+
sku: "0000000000000",
|
|
7011
|
+
upca: "000000000000",
|
|
7012
|
+
pin: "000000",
|
|
7013
|
+
mi9ProductUpc: "00000000000000",
|
|
7014
|
+
},
|
|
7015
|
+
regex: {
|
|
7016
|
+
password: "^(?=.*[a-zA-Z])(?=.*[0-9]).{6,12}",
|
|
7017
|
+
bigyPassword: "^(?=.*[a-zA-Z])(?=.*[0-9]).{8,}$",
|
|
7018
|
+
url: /^(?:http(s)?:\/\/)?[\w.-]+(?:\.[\w\.-]+)+[\w\-\.%_~:/?#[\]@!\$&'\(\)\*\+,;=.]+$/,
|
|
7019
|
+
shortCode: "^[A-Z0-9_]{1,20}$",
|
|
7020
|
+
longCode: "^[A-Z0-9_]{1,100}$",
|
|
7021
|
+
email: /^[\w-\.]+@([\w]+[\.-])+[\w-]{2,}$/,
|
|
7022
|
+
textWithoutSpecialChars: /^[a-zA-Z0-9\. ]+$/,
|
|
7023
|
+
textWithSpecialChars: /^[a-zA-Z0-9_-]+$/,
|
|
7024
|
+
// Allow char '_ -'
|
|
7025
|
+
textWithSpaceAndSpecialChars: /^[a-zA-Z0-9\. /_-]+$/,
|
|
7026
|
+
// Allow space and char '_ - /'
|
|
7027
|
+
address: /^[a-zA-Z0-9][a-zA-Z0-9\_\/\. ]+$/,
|
|
7028
|
+
leadTimeKeyPress: /^[0-9mhdw ]+$/,
|
|
7029
|
+
leadTime: [
|
|
7030
|
+
/^(?:(?<minutes>\d{0,2})m\s*)?(?:(?<hours>\d{0,3})h\s*)?(?:(?<days>\d{0,2})d\s*)?(?:(?<weeks>\d{0,2})w\s*)?$/,
|
|
7031
|
+
/^(?:(?<weeks>\d{0,2})w\s*)?(?:(?<days>\d{0,2})d\s*)?(?:(?<hours>\d{0,3})h\s*)?(?:(?<minutes>\d{0,2})m\s*)?$/,
|
|
7032
|
+
],
|
|
7033
|
+
userPIN: /^[0-9]{6}$/,
|
|
7034
|
+
storeCode: /^[0-9]{1,10}$/,
|
|
7035
|
+
sku: /^[0-9]{1,14}$/,
|
|
7036
|
+
sku13: /^[0-9]{1,13}$/,
|
|
7037
|
+
keyConfigProvider: /^[a-zA-Z0-9!*()_+\-\[\]{}:\\|,.<>\/]*$/,
|
|
7038
|
+
//not allow character '?#%='
|
|
7039
|
+
textNoSpace: /^[a-zA-Z]+$/,
|
|
7040
|
+
textWithSpace: /^(\s+\S+\s*)*(?!\s).*$/,
|
|
7041
|
+
//not allow a string containing only white spaces
|
|
7042
|
+
slug: /^[A-Za-z0-9]+(?:-[A-Za-z0-9]+)*$/,
|
|
7043
|
+
tag: /^[a-zA-Z0-9](-?_?[a-zA-Z0-9])*$/,
|
|
7044
|
+
noSpace: /^[a-zA-Z0-9!*()_+\-\[\]{}:\\|,.<>\/\?\=\&\%\#\@]*$/,
|
|
7045
|
+
},
|
|
7046
|
+
pattern: {},
|
|
7047
|
+
pipe: {},
|
|
7048
|
+
pageSizeOptions: [5, 10, 25, 50, 100],
|
|
7049
|
+
maxOrderNumber: 99999,
|
|
7050
|
+
// TinyMCE
|
|
7051
|
+
tinyHeightDefault: "75vh",
|
|
7052
|
+
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",
|
|
7053
|
+
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",
|
|
6892
7054
|
};
|
|
6893
7055
|
|
|
6894
7056
|
/**
|
|
6895
7057
|
* @fileoverview added by tsickle
|
|
7058
|
+
* Generated from: lib/pipes/datetime.pipe.ts
|
|
6896
7059
|
* @suppress {checkTypes,constantProperty,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
|
|
6897
7060
|
*/
|
|
6898
7061
|
/** @type {?} */
|
|
@@ -6971,6 +7134,7 @@
|
|
|
6971
7134
|
|
|
6972
7135
|
/**
|
|
6973
7136
|
* @fileoverview added by tsickle
|
|
7137
|
+
* Generated from: lib/asset-management.module.ts
|
|
6974
7138
|
* @suppress {checkTypes,constantProperty,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
|
|
6975
7139
|
*/
|
|
6976
7140
|
// SERVICES
|
|
@@ -7010,16 +7174,6 @@
|
|
|
7010
7174
|
AssetWrapperComponent,
|
|
7011
7175
|
AssetManagementDialogComponent,
|
|
7012
7176
|
];
|
|
7013
|
-
/** @type {?} */
|
|
7014
|
-
var ENTRY_COMPONENTS = [
|
|
7015
|
-
ModalComponent,
|
|
7016
|
-
UploadDialogComponent,
|
|
7017
|
-
AddFolderDialogComponent,
|
|
7018
|
-
EditFolderDialogComponent,
|
|
7019
|
-
DeleteDialogComponent,
|
|
7020
|
-
AssetDialogComponent,
|
|
7021
|
-
AssetManagementDialogComponent,
|
|
7022
|
-
];
|
|
7023
7177
|
/**
|
|
7024
7178
|
* @param {?} config
|
|
7025
7179
|
* @return {?}
|
|
@@ -7091,7 +7245,6 @@
|
|
|
7091
7245
|
multi: true,
|
|
7092
7246
|
}
|
|
7093
7247
|
]),
|
|
7094
|
-
entryComponents: __spread(ENTRY_COMPONENTS),
|
|
7095
7248
|
},] }
|
|
7096
7249
|
];
|
|
7097
7250
|
/** @nocollapse */
|
|
@@ -7112,34 +7265,34 @@
|
|
|
7112
7265
|
exports.AssetWrapperComponent = AssetWrapperComponent;
|
|
7113
7266
|
exports.BaseHttpClient = BaseHttpClient;
|
|
7114
7267
|
exports.BreadcrumbComponent = BreadcrumbComponent;
|
|
7268
|
+
exports.DIRECTIVES = DIRECTIVES;
|
|
7115
7269
|
exports.DeleteDialogComponent = DeleteDialogComponent;
|
|
7116
7270
|
exports.DialogTriggerDirective = DialogTriggerDirective;
|
|
7271
|
+
exports.DirectivesModule = DirectivesModule;
|
|
7272
|
+
exports.DndDirective = DndDirective;
|
|
7273
|
+
exports.DragToResizeComponent = DragToResizeComponent;
|
|
7117
7274
|
exports.EditFolderDialogComponent = EditFolderDialogComponent;
|
|
7118
7275
|
exports.FileItemComponent = FileItemComponent;
|
|
7119
7276
|
exports.FileListComponent = FileListComponent;
|
|
7120
7277
|
exports.FileService = FileService;
|
|
7278
|
+
exports.FileSizePipe = FileSizePipe;
|
|
7121
7279
|
exports.FolderItemComponent = FolderItemComponent;
|
|
7122
7280
|
exports.FolderListComponent = FolderListComponent;
|
|
7123
7281
|
exports.InputFileComponent = InputFileComponent;
|
|
7282
|
+
exports.LocalDatePipe = LocalDatePipe;
|
|
7283
|
+
exports.LocalDateTimePipe = LocalDateTimePipe;
|
|
7124
7284
|
exports.ModalComponent = ModalComponent;
|
|
7125
7285
|
exports.NodeDetailsComponent = NodeDetailsComponent;
|
|
7126
7286
|
exports.NodeTreeComponent = NodeTreeComponent;
|
|
7127
7287
|
exports.NodeTreeService = NodeTreeService;
|
|
7128
7288
|
exports.SearchBoxComponent = SearchBoxComponent;
|
|
7129
7289
|
exports.SearchNotFoundComponent = SearchNotFoundComponent;
|
|
7290
|
+
exports.SortItemsComponent = SortItemsComponent;
|
|
7130
7291
|
exports.UploadAssetsService = UploadAssetsService;
|
|
7131
7292
|
exports.UploadDialogComponent = UploadDialogComponent;
|
|
7132
7293
|
exports.UploadFileComponent = UploadFileComponent;
|
|
7133
|
-
exports.ɵa =
|
|
7134
|
-
exports.ɵb =
|
|
7135
|
-
exports.ɵc = AssetManagementService;
|
|
7136
|
-
exports.ɵd = SortItemsComponent;
|
|
7137
|
-
exports.ɵe = DialogConfig;
|
|
7138
|
-
exports.ɵf = LocalDateTimePipe;
|
|
7139
|
-
exports.ɵg = LocalDatePipe;
|
|
7140
|
-
exports.ɵh = DIRECTIVES;
|
|
7141
|
-
exports.ɵi = DirectivesModule;
|
|
7142
|
-
exports.ɵj = DndDirective;
|
|
7294
|
+
exports.ɵa = AssetManagementService;
|
|
7295
|
+
exports.ɵb = DialogConfig;
|
|
7143
7296
|
|
|
7144
7297
|
Object.defineProperty(exports, '__esModule', { value: true });
|
|
7145
7298
|
|