@rs-pk/asset-management 1.0.30 → 1.0.31
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/bundles/rs-pk-asset-management.umd.js +327 -158
- 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 +1 -2
- package/esm2015/lib/asset-management.module.js +12 -2
- package/esm2015/lib/asset-management.service.js +2 -3
- package/esm2015/lib/components/partial/add-folder-dialog/add-folder-dialog.component.js +1 -2
- package/esm2015/lib/components/partial/asset-dialog/asset-dialog.component.js +1 -2
- package/esm2015/lib/components/partial/asset-item/asset-item.component.js +1 -2
- package/esm2015/lib/components/partial/asset-list/asset-list.component.js +76 -33
- package/esm2015/lib/components/partial/asset-management-dialog/asset-management-dialog.component.js +2 -3
- package/esm2015/lib/components/partial/asset-wrapper/asset-wrapper.component.js +2 -3
- package/esm2015/lib/components/partial/breadcrumb/breadcrumb.component.js +5 -5
- package/esm2015/lib/components/partial/delete-dialog/delete-dialog.component.js +1 -2
- package/esm2015/lib/components/partial/edit-folder-dialog/edit-folder-dialog.component.js +1 -2
- package/esm2015/lib/components/partial/file-item/file-item.component.js +9 -4
- package/esm2015/lib/components/partial/file-list/file-list.component.js +1 -2
- package/esm2015/lib/components/partial/folder-item/folder-item.component.js +1 -2
- package/esm2015/lib/components/partial/folder-list/folder-list.component.js +3 -4
- package/esm2015/lib/components/partial/node-details/node-details.component.js +5 -3
- package/esm2015/lib/components/partial/node-tree/node-tree.component.js +8 -9
- package/esm2015/lib/components/partial/search-box/search-box.component.js +4 -3
- package/esm2015/lib/components/partial/sort-items/sort-items.component.js +1 -2
- package/esm2015/lib/components/partial/upload-dialog/upload-dialog.component.js +111 -5
- package/esm2015/lib/components/partial/upload-file/upload-file.component.js +1 -2
- package/esm2015/lib/components/ui/drag-to-resize/drag-to-resize.component.js +1 -2
- package/esm2015/lib/components/ui/input-file/input-file.component.js +1 -2
- package/esm2015/lib/components/ui/modal/modal.component.js +1 -2
- package/esm2015/lib/components/ui/search-not-found/search-not-found.component.js +1 -2
- package/esm2015/lib/configs/admin.config.js +1 -2
- package/esm2015/lib/contanst/data-image.js +1 -2
- package/esm2015/lib/contanst/index.js +1 -2
- package/esm2015/lib/datasources/index.js +1 -2
- package/esm2015/lib/datasources/node-tree.datasource.js +6 -7
- package/esm2015/lib/directives/dialogTrigger.directive.js +1 -2
- package/esm2015/lib/directives/directives.module.js +1 -2
- package/esm2015/lib/directives/dnd.directive.js +1 -2
- package/esm2015/lib/models/asset-file.model.js +1 -2
- package/esm2015/lib/models/asset.model.js +1 -2
- package/esm2015/lib/models/file-type.enum.js +3 -4
- package/esm2015/lib/models/file.model.js +1 -2
- package/esm2015/lib/models/index.js +1 -2
- package/esm2015/lib/models/node-tree.model.js +1 -2
- package/esm2015/lib/models/sort.enum.js +1 -2
- package/esm2015/lib/pipes/datetime.pipe.js +1 -2
- package/esm2015/lib/pipes/file-size.pipe.js +1 -2
- package/esm2015/lib/services/asset.service.js +1 -2
- package/esm2015/lib/services/base.service.js +1 -2
- package/esm2015/lib/services/env-config.service.js +1 -2
- package/esm2015/lib/services/file.service.js +1 -2
- package/esm2015/lib/services/index.js +1 -2
- package/esm2015/lib/services/node-tree.service.js +8 -9
- package/esm2015/lib/services/upload-assets.service.js +17 -13
- package/esm2015/lib/store/actions.action.js +10 -11
- package/esm2015/lib/store/index.js +1 -2
- package/esm2015/lib/store/reducer.js +10 -11
- package/esm2015/public-api.js +1 -8
- package/esm2015/rs-pk-asset-management.js +10 -5
- package/esm5/lib/asset-management.component.js +1 -2
- package/esm5/lib/asset-management.module.js +16 -6
- package/esm5/lib/asset-management.service.js +2 -3
- package/esm5/lib/components/partial/add-folder-dialog/add-folder-dialog.component.js +1 -2
- package/esm5/lib/components/partial/asset-dialog/asset-dialog.component.js +1 -2
- package/esm5/lib/components/partial/asset-item/asset-item.component.js +1 -2
- package/esm5/lib/components/partial/asset-list/asset-list.component.js +100 -36
- package/esm5/lib/components/partial/asset-management-dialog/asset-management-dialog.component.js +2 -3
- package/esm5/lib/components/partial/asset-wrapper/asset-wrapper.component.js +2 -3
- package/esm5/lib/components/partial/breadcrumb/breadcrumb.component.js +6 -6
- package/esm5/lib/components/partial/delete-dialog/delete-dialog.component.js +1 -2
- package/esm5/lib/components/partial/edit-folder-dialog/edit-folder-dialog.component.js +1 -2
- package/esm5/lib/components/partial/file-item/file-item.component.js +13 -4
- package/esm5/lib/components/partial/file-list/file-list.component.js +3 -4
- package/esm5/lib/components/partial/folder-item/folder-item.component.js +1 -2
- package/esm5/lib/components/partial/folder-list/folder-list.component.js +3 -4
- package/esm5/lib/components/partial/node-details/node-details.component.js +7 -5
- package/esm5/lib/components/partial/node-tree/node-tree.component.js +16 -17
- package/esm5/lib/components/partial/search-box/search-box.component.js +6 -5
- package/esm5/lib/components/partial/sort-items/sort-items.component.js +1 -2
- package/esm5/lib/components/partial/upload-dialog/upload-dialog.component.js +136 -7
- package/esm5/lib/components/partial/upload-file/upload-file.component.js +3 -4
- package/esm5/lib/components/ui/drag-to-resize/drag-to-resize.component.js +1 -2
- package/esm5/lib/components/ui/input-file/input-file.component.js +1 -2
- package/esm5/lib/components/ui/modal/modal.component.js +1 -2
- package/esm5/lib/components/ui/search-not-found/search-not-found.component.js +1 -2
- package/esm5/lib/configs/admin.config.js +1 -2
- package/esm5/lib/contanst/data-image.js +1 -2
- package/esm5/lib/contanst/index.js +1 -2
- package/esm5/lib/datasources/index.js +1 -2
- package/esm5/lib/datasources/node-tree.datasource.js +12 -15
- package/esm5/lib/directives/dialogTrigger.directive.js +1 -2
- package/esm5/lib/directives/directives.module.js +4 -5
- package/esm5/lib/directives/dnd.directive.js +1 -2
- package/esm5/lib/models/asset-file.model.js +1 -2
- package/esm5/lib/models/asset.model.js +3 -4
- package/esm5/lib/models/file-type.enum.js +3 -4
- package/esm5/lib/models/file.model.js +1 -2
- package/esm5/lib/models/index.js +1 -2
- package/esm5/lib/models/node-tree.model.js +1 -2
- package/esm5/lib/models/sort.enum.js +1 -2
- package/esm5/lib/pipes/datetime.pipe.js +1 -2
- package/esm5/lib/pipes/file-size.pipe.js +1 -2
- package/esm5/lib/services/asset.service.js +1 -2
- package/esm5/lib/services/base.service.js +3 -4
- package/esm5/lib/services/env-config.service.js +1 -2
- package/esm5/lib/services/file.service.js +1 -2
- package/esm5/lib/services/index.js +1 -2
- package/esm5/lib/services/node-tree.service.js +15 -16
- package/esm5/lib/services/upload-assets.service.js +23 -15
- package/esm5/lib/store/actions.action.js +10 -11
- package/esm5/lib/store/index.js +1 -2
- package/esm5/lib/store/reducer.js +11 -12
- package/esm5/public-api.js +1 -8
- package/esm5/rs-pk-asset-management.js +10 -5
- package/fesm2015/rs-pk-asset-management.js +266 -144
- package/fesm2015/rs-pk-asset-management.js.map +1 -1
- package/fesm5/rs-pk-asset-management.js +321 -149
- 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 +1 -1
- package/lib/components/partial/asset-list/asset-list.component.d.ts +7 -1
- 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 +1 -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 +4 -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 +3 -3
- package/lib/components/partial/node-tree/node-tree.component.d.ts +1 -1
- package/lib/components/partial/upload-dialog/upload-dialog.component.d.ts +7 -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 +1 -2
- package/lib/services/asset.service.d.ts +1 -1
- package/lib/services/node-tree.service.d.ts +2 -3
- package/lib/services/upload-assets.service.d.ts +6 -4
- package/package.json +9 -9
- package/public-api.d.ts +0 -6
- package/rs-pk-asset-management.d.ts +8 -2
- 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/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';
|
|
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/internal/BehaviorSubject'), require('rxjs/operators'), require('rxjs/internal/Subject'), require('@angular/platform-browser'), require('@angular/material'), require('rxjs/internal/observable/of'), require('@angular/cdk/tree'), require('rxjs/internal/observable/combineLatest'), 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/internal/BehaviorSubject', 'rxjs/operators', 'rxjs/internal/Subject', '@angular/platform-browser', '@angular/material', 'rxjs/internal/observable/of', '@angular/cdk/tree', 'rxjs/internal/observable/combineLatest', '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['internal/BehaviorSubject'], global.rxjs.operators, global.rxjs['internal/Subject'], global.ng.platformBrowser, global.ng.material, global.rxjs['internal/observable/of'], global.ng.cdk.tree, global.rxjs['internal/observable/combineLatest'], 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, BehaviorSubject, operators, Subject, platformBrowser, material, of, tree$1, combineLatest, moment_) { 'use strict';
|
|
6
6
|
|
|
7
7
|
/*! *****************************************************************************
|
|
8
8
|
Copyright (c) Microsoft Corporation.
|
|
@@ -225,7 +225,6 @@
|
|
|
225
225
|
|
|
226
226
|
/**
|
|
227
227
|
* @fileoverview added by tsickle
|
|
228
|
-
* Generated from: lib/models/asset.model.ts
|
|
229
228
|
* @suppress {checkTypes,constantProperty,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
|
|
230
229
|
*/
|
|
231
230
|
/**
|
|
@@ -404,7 +403,6 @@
|
|
|
404
403
|
|
|
405
404
|
/**
|
|
406
405
|
* @fileoverview added by tsickle
|
|
407
|
-
* Generated from: lib/models/asset-file.model.ts
|
|
408
406
|
* @suppress {checkTypes,constantProperty,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
|
|
409
407
|
*/
|
|
410
408
|
var AssetFileUploadModel = /** @class */ (function () {
|
|
@@ -471,7 +469,6 @@
|
|
|
471
469
|
|
|
472
470
|
/**
|
|
473
471
|
* @fileoverview added by tsickle
|
|
474
|
-
* Generated from: lib/models/file.model.ts
|
|
475
472
|
* @suppress {checkTypes,constantProperty,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
|
|
476
473
|
*/
|
|
477
474
|
/**
|
|
@@ -569,7 +566,6 @@
|
|
|
569
566
|
|
|
570
567
|
/**
|
|
571
568
|
* @fileoverview added by tsickle
|
|
572
|
-
* Generated from: lib/models/node-tree.model.ts
|
|
573
569
|
* @suppress {checkTypes,constantProperty,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
|
|
574
570
|
*/
|
|
575
571
|
/**
|
|
@@ -603,18 +599,16 @@
|
|
|
603
599
|
|
|
604
600
|
/**
|
|
605
601
|
* @fileoverview added by tsickle
|
|
606
|
-
* Generated from: lib/models/file-type.enum.ts
|
|
607
602
|
* @suppress {checkTypes,constantProperty,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
|
|
608
603
|
*/
|
|
609
604
|
/** @enum {string} */
|
|
610
605
|
var FileTypeEnum = {
|
|
611
|
-
IMAGE:
|
|
612
|
-
DOCUMENT:
|
|
606
|
+
IMAGE: 'Image',
|
|
607
|
+
DOCUMENT: 'Document',
|
|
613
608
|
};
|
|
614
609
|
|
|
615
610
|
/**
|
|
616
611
|
* @fileoverview added by tsickle
|
|
617
|
-
* Generated from: lib/models/sort.enum.ts
|
|
618
612
|
* @suppress {checkTypes,constantProperty,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
|
|
619
613
|
*/
|
|
620
614
|
/** @enum {number} */
|
|
@@ -636,13 +630,11 @@
|
|
|
636
630
|
|
|
637
631
|
/**
|
|
638
632
|
* @fileoverview added by tsickle
|
|
639
|
-
* Generated from: lib/models/index.ts
|
|
640
633
|
* @suppress {checkTypes,constantProperty,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
|
|
641
634
|
*/
|
|
642
635
|
|
|
643
636
|
/**
|
|
644
637
|
* @fileoverview added by tsickle
|
|
645
|
-
* Generated from: lib/services/env-config.service.ts
|
|
646
638
|
* @suppress {checkTypes,constantProperty,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
|
|
647
639
|
*/
|
|
648
640
|
/**
|
|
@@ -662,7 +654,6 @@
|
|
|
662
654
|
|
|
663
655
|
/**
|
|
664
656
|
* @fileoverview added by tsickle
|
|
665
|
-
* Generated from: lib/services/base.service.ts
|
|
666
657
|
* @suppress {checkTypes,constantProperty,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
|
|
667
658
|
*/
|
|
668
659
|
var BaseHttpClient = /** @class */ (function (_super) {
|
|
@@ -715,7 +706,6 @@
|
|
|
715
706
|
|
|
716
707
|
/**
|
|
717
708
|
* @fileoverview added by tsickle
|
|
718
|
-
* Generated from: lib/services/asset.service.ts
|
|
719
709
|
* @suppress {checkTypes,constantProperty,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
|
|
720
710
|
*/
|
|
721
711
|
var AssetService = /** @class */ (function () {
|
|
@@ -1044,7 +1034,6 @@
|
|
|
1044
1034
|
|
|
1045
1035
|
/**
|
|
1046
1036
|
* @fileoverview added by tsickle
|
|
1047
|
-
* Generated from: lib/asset-management.service.ts
|
|
1048
1037
|
* @suppress {checkTypes,constantProperty,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
|
|
1049
1038
|
*/
|
|
1050
1039
|
/** @type {?} */
|
|
@@ -1082,7 +1071,7 @@
|
|
|
1082
1071
|
];
|
|
1083
1072
|
/** @nocollapse */
|
|
1084
1073
|
AssetManagementService.ctorParameters = function () { return []; };
|
|
1085
|
-
/** @nocollapse */ AssetManagementService
|
|
1074
|
+
/** @nocollapse */ AssetManagementService.ngInjectableDef = core.ɵɵdefineInjectable({ factory: function AssetManagementService_Factory() { return new AssetManagementService(); }, token: AssetManagementService, providedIn: "root" });
|
|
1086
1075
|
return AssetManagementService;
|
|
1087
1076
|
}());
|
|
1088
1077
|
if (false) {
|
|
@@ -1095,7 +1084,6 @@
|
|
|
1095
1084
|
|
|
1096
1085
|
/**
|
|
1097
1086
|
* @fileoverview added by tsickle
|
|
1098
|
-
* Generated from: lib/store/actions.action.ts
|
|
1099
1087
|
* @suppress {checkTypes,constantProperty,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
|
|
1100
1088
|
*/
|
|
1101
1089
|
/**
|
|
@@ -1111,18 +1099,18 @@
|
|
|
1111
1099
|
/** @enum {string} */
|
|
1112
1100
|
var ActionTypes = {
|
|
1113
1101
|
// global loading
|
|
1114
|
-
SET_GLOBAL_LOADING:
|
|
1102
|
+
SET_GLOBAL_LOADING: '[LOADING] Set global loading state',
|
|
1115
1103
|
// asset area
|
|
1116
|
-
SET_SELECTED_ASSETS:
|
|
1117
|
-
RELOAD_CURRENT_ASSETS:
|
|
1118
|
-
DELETE_ASSET:
|
|
1104
|
+
SET_SELECTED_ASSETS: '[ASSET] Set selected assets',
|
|
1105
|
+
RELOAD_CURRENT_ASSETS: '[ASSET] reload current asset list ',
|
|
1106
|
+
DELETE_ASSET: '[ASSET] delete an asset ',
|
|
1119
1107
|
// folder area
|
|
1120
|
-
SET_CURRENT_FOLDER_ID:
|
|
1121
|
-
SET_CURRENT_FOLDER:
|
|
1122
|
-
RELOAD_CURRENT_FOLDER:
|
|
1123
|
-
SET_CURRENT_FOLDER_HIERARCHY:
|
|
1108
|
+
SET_CURRENT_FOLDER_ID: '[FOLDER] get current folder id',
|
|
1109
|
+
SET_CURRENT_FOLDER: '[FOLDER] set current folder ',
|
|
1110
|
+
RELOAD_CURRENT_FOLDER: '[FOLDER] reload current folder ',
|
|
1111
|
+
SET_CURRENT_FOLDER_HIERARCHY: '[FOLDER] set current folder hierarchy ',
|
|
1124
1112
|
// node area
|
|
1125
|
-
RELOAD_CURRENT_NODE:
|
|
1113
|
+
RELOAD_CURRENT_NODE: '[NODE] reload current node ',
|
|
1126
1114
|
};
|
|
1127
1115
|
var SetGlobalLoading = /** @class */ (function () {
|
|
1128
1116
|
function SetGlobalLoading() {
|
|
@@ -1229,7 +1217,6 @@
|
|
|
1229
1217
|
|
|
1230
1218
|
/**
|
|
1231
1219
|
* @fileoverview added by tsickle
|
|
1232
|
-
* Generated from: lib/store/reducer.ts
|
|
1233
1220
|
* @suppress {checkTypes,constantProperty,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
|
|
1234
1221
|
*/
|
|
1235
1222
|
/**
|
|
@@ -1287,39 +1274,39 @@
|
|
|
1287
1274
|
function (action) {
|
|
1288
1275
|
switch (action.type) {
|
|
1289
1276
|
case ActionTypes.SET_SELECTED_ASSETS:
|
|
1290
|
-
state = __assign(
|
|
1277
|
+
state = __assign({}, state, { selectedAssets: action.payload });
|
|
1291
1278
|
store.next(state);
|
|
1292
1279
|
break;
|
|
1293
1280
|
case ActionTypes.SET_GLOBAL_LOADING:
|
|
1294
|
-
state = __assign(
|
|
1281
|
+
state = __assign({}, state, { globalLoading: action.payload });
|
|
1295
1282
|
store.next(state);
|
|
1296
1283
|
break;
|
|
1297
1284
|
case ActionTypes.SET_CURRENT_FOLDER:
|
|
1298
|
-
state = __assign(
|
|
1285
|
+
state = __assign({}, state, { currentFolder: __assign({}, action.payload) });
|
|
1299
1286
|
store.next(state);
|
|
1300
1287
|
break;
|
|
1301
1288
|
case ActionTypes.RELOAD_CURRENT_FOLDER:
|
|
1302
|
-
state = __assign(
|
|
1289
|
+
state = __assign({}, state, { reloadCurrentFolder: !state.reloadCurrentFolder });
|
|
1303
1290
|
store.next(state);
|
|
1304
1291
|
break;
|
|
1305
1292
|
case ActionTypes.RELOAD_CURRENT_ASSETS:
|
|
1306
|
-
state = __assign(
|
|
1293
|
+
state = __assign({}, state, { reloadCurrentAssets: !state.reloadCurrentAssets });
|
|
1307
1294
|
store.next(state);
|
|
1308
1295
|
break;
|
|
1309
1296
|
case ActionTypes.RELOAD_CURRENT_NODE:
|
|
1310
|
-
state = __assign(
|
|
1297
|
+
state = __assign({}, state, { reloadCurrentNode: !state.reloadCurrentNode });
|
|
1311
1298
|
store.next(state);
|
|
1312
1299
|
break;
|
|
1313
1300
|
case ActionTypes.SET_CURRENT_FOLDER_HIERARCHY:
|
|
1314
|
-
state = __assign(
|
|
1301
|
+
state = __assign({}, state, { currentFolderHierarchy: __spread(action.payload) });
|
|
1315
1302
|
store.next(state);
|
|
1316
1303
|
break;
|
|
1317
1304
|
case ActionTypes.SET_CURRENT_FOLDER_ID:
|
|
1318
|
-
state = __assign(
|
|
1305
|
+
state = __assign({}, state, { currentFolderId: action.payload });
|
|
1319
1306
|
store.next(state);
|
|
1320
1307
|
break;
|
|
1321
1308
|
case ActionTypes.DELETE_ASSET:
|
|
1322
|
-
state = __assign(
|
|
1309
|
+
state = __assign({}, state, { deletedAssetId: action.payload });
|
|
1323
1310
|
store.next(state);
|
|
1324
1311
|
break;
|
|
1325
1312
|
default:
|
|
@@ -1342,22 +1329,20 @@
|
|
|
1342
1329
|
|
|
1343
1330
|
/**
|
|
1344
1331
|
* @fileoverview added by tsickle
|
|
1345
|
-
* Generated from: lib/store/index.ts
|
|
1346
1332
|
* @suppress {checkTypes,constantProperty,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
|
|
1347
1333
|
*/
|
|
1348
1334
|
|
|
1349
1335
|
/**
|
|
1350
1336
|
* @fileoverview added by tsickle
|
|
1351
|
-
* Generated from: lib/services/node-tree.service.ts
|
|
1352
1337
|
* @suppress {checkTypes,constantProperty,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
|
|
1353
1338
|
*/
|
|
1354
1339
|
var NodeTreeService = /** @class */ (function () {
|
|
1355
1340
|
function NodeTreeService(assetService, svc) {
|
|
1356
1341
|
this.assetService = assetService;
|
|
1357
1342
|
this.svc = svc;
|
|
1358
|
-
this.storedData$ = new
|
|
1359
|
-
this.loading$ = new
|
|
1360
|
-
this.initialData$ = new
|
|
1343
|
+
this.storedData$ = new BehaviorSubject.BehaviorSubject([]);
|
|
1344
|
+
this.loading$ = new BehaviorSubject.BehaviorSubject(false);
|
|
1345
|
+
this.initialData$ = new BehaviorSubject.BehaviorSubject([]);
|
|
1361
1346
|
}
|
|
1362
1347
|
Object.defineProperty(NodeTreeService.prototype, "data", {
|
|
1363
1348
|
get: /**
|
|
@@ -1533,7 +1518,7 @@
|
|
|
1533
1518
|
*/
|
|
1534
1519
|
function (node) { return node.AssetId === asset.AssetId; }));
|
|
1535
1520
|
if (index < 0) {
|
|
1536
|
-
data = __spread(data, [__assign(
|
|
1521
|
+
data = __spread(data, [__assign({}, asset, { ParentId: parentId ? parentId : null })]);
|
|
1537
1522
|
}
|
|
1538
1523
|
this.data = data;
|
|
1539
1524
|
};
|
|
@@ -1639,7 +1624,6 @@
|
|
|
1639
1624
|
|
|
1640
1625
|
/**
|
|
1641
1626
|
* @fileoverview added by tsickle
|
|
1642
|
-
* Generated from: lib/services/upload-assets.service.ts
|
|
1643
1627
|
* @suppress {checkTypes,constantProperty,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
|
|
1644
1628
|
*/
|
|
1645
1629
|
var UploadAssetsService = /** @class */ (function () {
|
|
@@ -1649,6 +1633,7 @@
|
|
|
1649
1633
|
this._api = _api;
|
|
1650
1634
|
this.files = [];
|
|
1651
1635
|
this.fileNames = [];
|
|
1636
|
+
this.uploadErrors = new Map();
|
|
1652
1637
|
this.supportedSize = 10 * 1024 * 1024; // 10MB
|
|
1653
1638
|
// 10MB
|
|
1654
1639
|
this.documentExtension = ['.pdf', '.csv'];
|
|
@@ -1751,9 +1736,25 @@
|
|
|
1751
1736
|
* @return {?}
|
|
1752
1737
|
*/
|
|
1753
1738
|
function (index) {
|
|
1739
|
+
this.uploadErrors.delete(this.files[index]);
|
|
1754
1740
|
this.files.splice(index, 1);
|
|
1755
1741
|
this.fileNames.splice(index, 1);
|
|
1756
1742
|
};
|
|
1743
|
+
/**
|
|
1744
|
+
* @param {?} index
|
|
1745
|
+
* @return {?}
|
|
1746
|
+
*/
|
|
1747
|
+
UploadAssetsService.prototype.getUploadName = /**
|
|
1748
|
+
* @param {?} index
|
|
1749
|
+
* @return {?}
|
|
1750
|
+
*/
|
|
1751
|
+
function (index) {
|
|
1752
|
+
/** @type {?} */
|
|
1753
|
+
var nameSplit = this.files[index].name.split('.');
|
|
1754
|
+
/** @type {?} */
|
|
1755
|
+
var ext = "." + nameSplit.splice(nameSplit.length - 1, 1)[0];
|
|
1756
|
+
return "" + this.fileNames[index].name + ext;
|
|
1757
|
+
};
|
|
1757
1758
|
/**
|
|
1758
1759
|
* @param {?} parentAssetId
|
|
1759
1760
|
* @return {?}
|
|
@@ -1765,21 +1766,11 @@
|
|
|
1765
1766
|
function (parentAssetId) {
|
|
1766
1767
|
var files = this.files;
|
|
1767
1768
|
/** @type {?} */
|
|
1768
|
-
var fileNames = this.fileNames.map((/**
|
|
1769
|
-
* @param {?} file
|
|
1770
|
-
* @return {?}
|
|
1771
|
-
*/
|
|
1772
|
-
function (file) { return file.name; }));
|
|
1773
|
-
/** @type {?} */
|
|
1774
1769
|
var formData = new FormData();
|
|
1775
1770
|
formData.append('parentAssetId', parentAssetId);
|
|
1776
1771
|
formData.append('companyId', '732DA8D2-04EC-4BE0-A168-63EE0DCF50D8');
|
|
1777
1772
|
for (var i = 0; i < files.length; i++) {
|
|
1778
|
-
|
|
1779
|
-
var nameSplit = files[i].name.split('.');
|
|
1780
|
-
/** @type {?} */
|
|
1781
|
-
var ext = "." + nameSplit.splice(nameSplit.length - 1, 1)[0];
|
|
1782
|
-
formData.append('files', files[i], "" + fileNames[i] + ext);
|
|
1773
|
+
formData.append('files', files[i], this.getUploadName(i));
|
|
1783
1774
|
}
|
|
1784
1775
|
return this._api.post(this.baseUrl + "/File/Upload", formData);
|
|
1785
1776
|
};
|
|
@@ -1803,6 +1794,8 @@
|
|
|
1803
1794
|
/** @type {?} */
|
|
1804
1795
|
UploadAssetsService.prototype.fileNames;
|
|
1805
1796
|
/** @type {?} */
|
|
1797
|
+
UploadAssetsService.prototype.uploadErrors;
|
|
1798
|
+
/** @type {?} */
|
|
1806
1799
|
UploadAssetsService.prototype.supportedSize;
|
|
1807
1800
|
/** @type {?} */
|
|
1808
1801
|
UploadAssetsService.prototype.documentExtension;
|
|
@@ -1840,7 +1833,6 @@
|
|
|
1840
1833
|
|
|
1841
1834
|
/**
|
|
1842
1835
|
* @fileoverview added by tsickle
|
|
1843
|
-
* Generated from: lib/services/file.service.ts
|
|
1844
1836
|
* @suppress {checkTypes,constantProperty,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
|
|
1845
1837
|
*/
|
|
1846
1838
|
var FileService = /** @class */ (function () {
|
|
@@ -1963,13 +1955,11 @@
|
|
|
1963
1955
|
|
|
1964
1956
|
/**
|
|
1965
1957
|
* @fileoverview added by tsickle
|
|
1966
|
-
* Generated from: lib/services/index.ts
|
|
1967
1958
|
* @suppress {checkTypes,constantProperty,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
|
|
1968
1959
|
*/
|
|
1969
1960
|
|
|
1970
1961
|
/**
|
|
1971
1962
|
* @fileoverview added by tsickle
|
|
1972
|
-
* Generated from: lib/components/partial/asset-management-dialog/asset-management-dialog.component.ts
|
|
1973
1963
|
* @suppress {checkTypes,constantProperty,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
|
|
1974
1964
|
*/
|
|
1975
1965
|
var AssetManagementDialogComponent = /** @class */ (function () {
|
|
@@ -1977,7 +1967,7 @@
|
|
|
1977
1967
|
this.data = data;
|
|
1978
1968
|
this.dialogRef = dialogRef;
|
|
1979
1969
|
this.assetService = assetService;
|
|
1980
|
-
this.destroy$ = new
|
|
1970
|
+
this.destroy$ = new Subject.Subject();
|
|
1981
1971
|
this.selectedAssets = [];
|
|
1982
1972
|
}
|
|
1983
1973
|
/**
|
|
@@ -2086,7 +2076,6 @@
|
|
|
2086
2076
|
|
|
2087
2077
|
/**
|
|
2088
2078
|
* @fileoverview added by tsickle
|
|
2089
|
-
* Generated from: lib/asset-management.component.ts
|
|
2090
2079
|
* @suppress {checkTypes,constantProperty,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
|
|
2091
2080
|
*/
|
|
2092
2081
|
var AssetManagementComponent = /** @class */ (function () {
|
|
@@ -2262,7 +2251,6 @@
|
|
|
2262
2251
|
|
|
2263
2252
|
/**
|
|
2264
2253
|
* @fileoverview added by tsickle
|
|
2265
|
-
* Generated from: lib/directives/dialogTrigger.directive.ts
|
|
2266
2254
|
* @suppress {checkTypes,constantProperty,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
|
|
2267
2255
|
*/
|
|
2268
2256
|
var DialogTriggerDirective = /** @class */ (function () {
|
|
@@ -2313,7 +2301,6 @@
|
|
|
2313
2301
|
|
|
2314
2302
|
/**
|
|
2315
2303
|
* @fileoverview added by tsickle
|
|
2316
|
-
* Generated from: lib/directives/dnd.directive.ts
|
|
2317
2304
|
* @suppress {checkTypes,constantProperty,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
|
|
2318
2305
|
*/
|
|
2319
2306
|
var DndDirective = /** @class */ (function () {
|
|
@@ -2392,7 +2379,6 @@
|
|
|
2392
2379
|
|
|
2393
2380
|
/**
|
|
2394
2381
|
* @fileoverview added by tsickle
|
|
2395
|
-
* Generated from: lib/directives/directives.module.ts
|
|
2396
2382
|
* @suppress {checkTypes,constantProperty,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
|
|
2397
2383
|
*/
|
|
2398
2384
|
/** @type {?} */
|
|
@@ -2412,7 +2398,6 @@
|
|
|
2412
2398
|
|
|
2413
2399
|
/**
|
|
2414
2400
|
* @fileoverview added by tsickle
|
|
2415
|
-
* Generated from: lib/components/ui/input-file/input-file.component.ts
|
|
2416
2401
|
* @suppress {checkTypes,constantProperty,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
|
|
2417
2402
|
*/
|
|
2418
2403
|
var InputFileComponent = /** @class */ (function () {
|
|
@@ -2466,7 +2451,6 @@
|
|
|
2466
2451
|
|
|
2467
2452
|
/**
|
|
2468
2453
|
* @fileoverview added by tsickle
|
|
2469
|
-
* Generated from: lib/components/ui/modal/modal.component.ts
|
|
2470
2454
|
* @suppress {checkTypes,constantProperty,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
|
|
2471
2455
|
*/
|
|
2472
2456
|
var ModalComponent = /** @class */ (function () {
|
|
@@ -2504,7 +2488,6 @@
|
|
|
2504
2488
|
|
|
2505
2489
|
/**
|
|
2506
2490
|
* @fileoverview added by tsickle
|
|
2507
|
-
* Generated from: lib/contanst/data-image.ts
|
|
2508
2491
|
* @suppress {checkTypes,constantProperty,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
|
|
2509
2492
|
*/
|
|
2510
2493
|
// tslint:disable:max-line-length
|
|
@@ -2525,13 +2508,11 @@
|
|
|
2525
2508
|
|
|
2526
2509
|
/**
|
|
2527
2510
|
* @fileoverview added by tsickle
|
|
2528
|
-
* Generated from: lib/contanst/index.ts
|
|
2529
2511
|
* @suppress {checkTypes,constantProperty,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
|
|
2530
2512
|
*/
|
|
2531
2513
|
|
|
2532
2514
|
/**
|
|
2533
2515
|
* @fileoverview added by tsickle
|
|
2534
|
-
* Generated from: lib/components/ui/search-not-found/search-not-found.component.ts
|
|
2535
2516
|
* @suppress {checkTypes,constantProperty,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
|
|
2536
2517
|
*/
|
|
2537
2518
|
var SearchNotFoundComponent = /** @class */ (function () {
|
|
@@ -2571,7 +2552,6 @@
|
|
|
2571
2552
|
|
|
2572
2553
|
/**
|
|
2573
2554
|
* @fileoverview added by tsickle
|
|
2574
|
-
* Generated from: lib/components/partial/file-item/file-item.component.ts
|
|
2575
2555
|
* @suppress {checkTypes,constantProperty,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
|
|
2576
2556
|
*/
|
|
2577
2557
|
var FileItemComponent = /** @class */ (function () {
|
|
@@ -2608,6 +2588,16 @@
|
|
|
2608
2588
|
function () {
|
|
2609
2589
|
this.initDataFile();
|
|
2610
2590
|
};
|
|
2591
|
+
Object.defineProperty(FileItemComponent.prototype, "uploadErrors", {
|
|
2592
|
+
get: /**
|
|
2593
|
+
* @return {?}
|
|
2594
|
+
*/
|
|
2595
|
+
function () {
|
|
2596
|
+
return this.uploadAssetService.uploadErrors.get(this.file);
|
|
2597
|
+
},
|
|
2598
|
+
enumerable: true,
|
|
2599
|
+
configurable: true
|
|
2600
|
+
});
|
|
2611
2601
|
/**
|
|
2612
2602
|
* @private
|
|
2613
2603
|
* @return {?}
|
|
@@ -2730,8 +2720,8 @@
|
|
|
2730
2720
|
FileItemComponent.decorators = [
|
|
2731
2721
|
{ type: core.Component, args: [{
|
|
2732
2722
|
selector: 'lib-file-item',
|
|
2733
|
-
template: "<div class=\"file-item__img\">\n <ng-container\n *ngIf=\"\n file.type.indexOf('image') > -1 || documentExts.indexOf(dataFile.ext) > -1;\n else defaultFile\n \"\n >\n <img\n [class.image]=\"file.type.indexOf('image') > -1\"\n *ngIf=\"documentExts.indexOf(dataFile.ext) > -1 || dataFile.data\"\n [src]=\"documentExts.indexOf(dataFile.ext) > -1 ? base64PNG[dataFile.ext] : dataFile.data\"\n />\n </ng-container>\n <ng-template #defaultFile>\n <mat-icon>attach_file</mat-icon>\n </ng-template>\n</div>\n<div class=\"file-item__content\">\n <input\n class=\"file-item__content--name\"\n matInput\n placeholder=\"Enter file name\"\n [value]=\"dataFile.name\"\n required\n (input)=\"onChange($event)\"\n />\n <div class=\"file-item__content--info\">\n <div class=\"file-item__content--info__item\">\n Extension: <span>{{ dataFile.ext }}</span>\n </div>\n <div class=\"file-item__content--info__item\">\n Size: <span>{{ dataFile.size | fileSize }}</span>\n </div>\n </div>\n <div *ngIf=\"dataFile.errors.ext\" class=\"file-item__error\">\n {{ uploadAssetService.messageErrors['ext'] }}\n
|
|
2734
|
-
styles: [":host::ng-deep{padding:10px 5%;display:flex;justify-content:space-between;align-items:center;background-color:#f9f9f9;border-radius:10px}:host::ng-deep .file-item__img{display:flex;justify-content:center;align-items:center;width:250px;height:150px;border-radius:10px}:host::ng-deep .file-item__img img{max-width:100%;max-height:100%;-o-object-fit:contain;object-fit:contain}:host::ng-deep .file-item__img img.image{background-image:url(data:image/jpeg;base64,/9j/4AAQSkZJRgABAQEBLAEsAAD/2wBDAAEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQH/2wBDAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQH/wAARCAAUABQDASIAAhEBAxEB/8QAHwAAAQUBAQEBAQEAAAAAAAAAAAECAwQFBgcICQoL/8QAtRAAAgEDAwIEAwUFBAQAAAF9AQIDAAQRBRIhMUEGE1FhByJxFDKBkaEII0KxwRVS0fAkM2JyggkKFhcYGRolJicoKSo0NTY3ODk6Q0RFRkdISUpTVFVWV1hZWmNkZWZnaGlqc3R1dnd4eXqDhIWGh4iJipKTlJWWl5iZmqKjpKWmp6ipqrKztLW2t7i5usLDxMXGx8jJytLT1NXW19jZ2uHi4+Tl5ufo6erx8vP09fb3+Pn6/8QAHwEAAwEBAQEBAQEBAQAAAAAAAAECAwQFBgcICQoL/8QAtREAAgECBAQDBAcFBAQAAQJ3AAECAxEEBSExBhJBUQdhcRMiMoEIFEKRobHBCSMzUvAVYnLRChYkNOEl8RcYGRomJygpKjU2Nzg5OkNERUZHSElKU1RVVldYWVpjZGVmZ2hpanN0dXZ3eHl6goOEhYaHiImKkpOUlZaXmJmaoqOkpaanqKmqsrO0tba3uLm6wsPExcbHyMnK0tPU1dbX2Nna4uPk5ebn6Onq8vP09fb3+Pn6/9oADAMBAAIRAxEAPwD+/ivFPFOf+EjvxzjbBgdv+PeDp+OfxzSt4q18AkageASB9ntu3OM+Vn8c5rsdG0fT9d06DVdUgN1f3XmefP5ksO/ypXhj/dwvHGu2ONF+VF3bQSM0AeYUV7IPCWgjgWRA/wCvi4P85SaKAPGm5Vh7H+VeyeERjQLEDoPP/WeQ/wAzRRQB0tFFFAH/2Q==)}:host::ng-deep .file-item__img mat-icon{font-size:100px;width:auto;height:auto}:host::ng-deep .file-item__content{flex:1;padding-left:5%;padding-right:5%}:host::ng-deep .file-item__content--name{width:100%;padding:10px;border:1px solid #d8d8d8;border-radius:5px}:host::ng-deep .file-item__content--info{margin-top:10px;display:flex}:host::ng-deep .file-item__content--info__item:not(:last-child){margin-right:50px}:host::ng-deep .file-item__content--info__item span{color:#000;text-transform:uppercase}:host::ng-deep .file-item__error{margin-top:10px;color:#
|
|
2723
|
+
template: "<div class=\"file-item__img\">\n <ng-container\n *ngIf=\"\n file.type.indexOf('image') > -1 || documentExts.indexOf(dataFile.ext) > -1;\n else defaultFile\n \"\n >\n <img\n [class.image]=\"file.type.indexOf('image') > -1\"\n *ngIf=\"documentExts.indexOf(dataFile.ext) > -1 || dataFile.data\"\n [src]=\"documentExts.indexOf(dataFile.ext) > -1 ? base64PNG[dataFile.ext] : dataFile.data\"\n />\n </ng-container>\n <ng-template #defaultFile>\n <mat-icon>attach_file</mat-icon>\n </ng-template>\n</div>\n<div class=\"file-item__content\">\n <input\n class=\"file-item__content--name\"\n matInput\n placeholder=\"Enter file name\"\n [value]=\"dataFile.name\"\n required\n (input)=\"onChange($event)\"\n />\n <div class=\"file-item__content--info\">\n <div class=\"file-item__content--info__item\">\n Extension: <span>{{ dataFile.ext }}</span>\n </div>\n <div class=\"file-item__content--info__item\">\n Size: <span>{{ dataFile.size | fileSize }}</span>\n </div>\n </div>\n <div *ngIf=\"dataFile.errors.ext\" class=\"file-item__error\">\n <mat-icon class=\"file-item__error--icon\">error_outline</mat-icon>\n <span>\n {{ uploadAssetService.messageErrors['ext'] }}\n {{ uploadAssetService.supportedTypes.join(', ') }}\n </span>\n </div>\n <div *ngIf=\"dataFile.errors.size\" class=\"file-item__error\">\n <mat-icon class=\"file-item__error--icon\">error_outline</mat-icon>\n <span>\n {{ uploadAssetService.messageErrors['size'] }}\n {{ uploadAssetService.supportedSize | fileSize: 0 }}\n </span>\n </div>\n <div *ngIf=\"dataFile.errors.maxLength\" class=\"file-item__error\">\n <mat-icon class=\"file-item__error--icon\">error_outline</mat-icon>\n <span>{{ uploadAssetService.messageErrors['maxLength'] }}</span>\n </div>\n <div *ngFor=\"let message of uploadErrors\" class=\"file-item__error\" role=\"alert\">\n <mat-icon class=\"file-item__error--icon\">error_outline</mat-icon>\n <span>{{ message }}</span>\n </div>\n</div>\n<div class=\"file-item__action\">\n <mat-icon (click)=\"onRemove()\">delete_outline</mat-icon>\n</div>\n",
|
|
2724
|
+
styles: [":host::ng-deep{padding:10px 5%;display:flex;justify-content:space-between;align-items:center;background-color:#f9f9f9;border-radius:10px}:host::ng-deep .file-item__img{display:flex;justify-content:center;align-items:center;width:250px;height:150px;border-radius:10px}:host::ng-deep .file-item__img img{max-width:100%;max-height:100%;-o-object-fit:contain;object-fit:contain}:host::ng-deep .file-item__img img.image{background-image:url(data:image/jpeg;base64,/9j/4AAQSkZJRgABAQEBLAEsAAD/2wBDAAEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQH/2wBDAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQH/wAARCAAUABQDASIAAhEBAxEB/8QAHwAAAQUBAQEBAQEAAAAAAAAAAAECAwQFBgcICQoL/8QAtRAAAgEDAwIEAwUFBAQAAAF9AQIDAAQRBRIhMUEGE1FhByJxFDKBkaEII0KxwRVS0fAkM2JyggkKFhcYGRolJicoKSo0NTY3ODk6Q0RFRkdISUpTVFVWV1hZWmNkZWZnaGlqc3R1dnd4eXqDhIWGh4iJipKTlJWWl5iZmqKjpKWmp6ipqrKztLW2t7i5usLDxMXGx8jJytLT1NXW19jZ2uHi4+Tl5ufo6erx8vP09fb3+Pn6/8QAHwEAAwEBAQEBAQEBAQAAAAAAAAECAwQFBgcICQoL/8QAtREAAgECBAQDBAcFBAQAAQJ3AAECAxEEBSExBhJBUQdhcRMiMoEIFEKRobHBCSMzUvAVYnLRChYkNOEl8RcYGRomJygpKjU2Nzg5OkNERUZHSElKU1RVVldYWVpjZGVmZ2hpanN0dXZ3eHl6goOEhYaHiImKkpOUlZaXmJmaoqOkpaanqKmqsrO0tba3uLm6wsPExcbHyMnK0tPU1dbX2Nna4uPk5ebn6Onq8vP09fb3+Pn6/9oADAMBAAIRAxEAPwD+/ivFPFOf+EjvxzjbBgdv+PeDp+OfxzSt4q18AkageASB9ntu3OM+Vn8c5rsdG0fT9d06DVdUgN1f3XmefP5ksO/ypXhj/dwvHGu2ONF+VF3bQSM0AeYUV7IPCWgjgWRA/wCvi4P85SaKAPGm5Vh7H+VeyeERjQLEDoPP/WeQ/wAzRRQB0tFFFAH/2Q==)}:host::ng-deep .file-item__img mat-icon{font-size:100px;width:auto;height:auto}:host::ng-deep .file-item__content{flex:1;padding-left:5%;padding-right:5%}:host::ng-deep .file-item__content--name{width:100%;padding:10px;border:1px solid #d8d8d8;border-radius:5px}:host::ng-deep .file-item__content--info{margin-top:10px;display:flex}:host::ng-deep .file-item__content--info__item:not(:last-child){margin-right:50px}:host::ng-deep .file-item__content--info__item span{color:#000;text-transform:uppercase}:host::ng-deep .file-item__error{display:flex;align-items:center;width:-moz-fit-content;width:fit-content;max-width:100%;margin-top:8px;padding:4px 10px;border-radius:6px;background-color:#fdecea;color:#d32f2f;font-size:13px;line-height:18px;word-break:break-word}:host::ng-deep .file-item__error--icon{flex-shrink:0;margin-right:6px;font-size:16px;width:16px;height:16px}:host::ng-deep .file-item__action{color:#f44336;cursor:pointer}"]
|
|
2735
2725
|
}] }
|
|
2736
2726
|
];
|
|
2737
2727
|
/** @nocollapse */
|
|
@@ -2773,7 +2763,6 @@
|
|
|
2773
2763
|
|
|
2774
2764
|
/**
|
|
2775
2765
|
* @fileoverview added by tsickle
|
|
2776
|
-
* Generated from: lib/components/partial/file-list/file-list.component.ts
|
|
2777
2766
|
* @suppress {checkTypes,constantProperty,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
|
|
2778
2767
|
*/
|
|
2779
2768
|
var FileListComponent = /** @class */ (function () {
|
|
@@ -2863,7 +2852,6 @@
|
|
|
2863
2852
|
|
|
2864
2853
|
/**
|
|
2865
2854
|
* @fileoverview added by tsickle
|
|
2866
|
-
* Generated from: lib/components/partial/upload-file/upload-file.component.ts
|
|
2867
2855
|
* @suppress {checkTypes,constantProperty,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
|
|
2868
2856
|
*/
|
|
2869
2857
|
var UploadFileComponent = /** @class */ (function () {
|
|
@@ -2960,7 +2948,6 @@
|
|
|
2960
2948
|
|
|
2961
2949
|
/**
|
|
2962
2950
|
* @fileoverview added by tsickle
|
|
2963
|
-
* Generated from: lib/components/partial/add-folder-dialog/add-folder-dialog.component.ts
|
|
2964
2951
|
* @suppress {checkTypes,constantProperty,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
|
|
2965
2952
|
*/
|
|
2966
2953
|
/**
|
|
@@ -3118,7 +3105,6 @@
|
|
|
3118
3105
|
|
|
3119
3106
|
/**
|
|
3120
3107
|
* @fileoverview added by tsickle
|
|
3121
|
-
* Generated from: lib/components/partial/edit-folder-dialog/edit-folder-dialog.component.ts
|
|
3122
3108
|
* @suppress {checkTypes,constantProperty,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
|
|
3123
3109
|
*/
|
|
3124
3110
|
/**
|
|
@@ -3281,7 +3267,6 @@
|
|
|
3281
3267
|
|
|
3282
3268
|
/**
|
|
3283
3269
|
* @fileoverview added by tsickle
|
|
3284
|
-
* Generated from: lib/components/partial/delete-dialog/delete-dialog.component.ts
|
|
3285
3270
|
* @suppress {checkTypes,constantProperty,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
|
|
3286
3271
|
*/
|
|
3287
3272
|
/**
|
|
@@ -3429,7 +3414,6 @@
|
|
|
3429
3414
|
|
|
3430
3415
|
/**
|
|
3431
3416
|
* @fileoverview added by tsickle
|
|
3432
|
-
* Generated from: lib/components/partial/upload-dialog/upload-dialog.component.ts
|
|
3433
3417
|
* @suppress {checkTypes,constantProperty,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
|
|
3434
3418
|
*/
|
|
3435
3419
|
/**
|
|
@@ -3452,6 +3436,8 @@
|
|
|
3452
3436
|
this.uploadAssetsService = uploadAssetsService;
|
|
3453
3437
|
this.isLoading = false;
|
|
3454
3438
|
this.disabled = true;
|
|
3439
|
+
this.errorMessages = [];
|
|
3440
|
+
this.defaultErrorMessage = 'Something went wrong while uploading. Please try again.';
|
|
3455
3441
|
this.destroy$ = new rxjs.Subject();
|
|
3456
3442
|
if (this.data.fileType) {
|
|
3457
3443
|
this.uploadAssetsService.supportedTypes =
|
|
@@ -3479,6 +3465,7 @@
|
|
|
3479
3465
|
*/
|
|
3480
3466
|
function (error) {
|
|
3481
3467
|
_this.disabled = error;
|
|
3468
|
+
_this.clearErrors();
|
|
3482
3469
|
_this.changeDetectorRef.detectChanges();
|
|
3483
3470
|
}));
|
|
3484
3471
|
};
|
|
@@ -3492,6 +3479,7 @@
|
|
|
3492
3479
|
*/
|
|
3493
3480
|
function (hasError) {
|
|
3494
3481
|
this.disabled = hasError;
|
|
3482
|
+
this.clearErrors();
|
|
3495
3483
|
};
|
|
3496
3484
|
/**
|
|
3497
3485
|
* @return {?}
|
|
@@ -3502,6 +3490,8 @@
|
|
|
3502
3490
|
function () {
|
|
3503
3491
|
var _this = this;
|
|
3504
3492
|
this.isLoading = true;
|
|
3493
|
+
this.clearErrors();
|
|
3494
|
+
this.dialogRef.disableClose = true;
|
|
3505
3495
|
this.uploadAssetsService
|
|
3506
3496
|
.uploadMultipleAssets(this.data.currentAssetId)
|
|
3507
3497
|
.pipe(operators.takeUntil(this.destroy$))
|
|
@@ -3513,8 +3503,125 @@
|
|
|
3513
3503
|
if (res) {
|
|
3514
3504
|
_this.closeDialog(true);
|
|
3515
3505
|
}
|
|
3506
|
+
}), (/**
|
|
3507
|
+
* @param {?} err
|
|
3508
|
+
* @return {?}
|
|
3509
|
+
*/
|
|
3510
|
+
function (err) {
|
|
3511
|
+
_this.setUploadErrors(_this.getErrorMessages(err));
|
|
3512
|
+
_this.stopLoading();
|
|
3513
|
+
}), (
|
|
3514
|
+
// the request can complete without a truthy response (or be swallowed by an interceptor)
|
|
3515
|
+
// the request can complete without a truthy response (or be swallowed by an interceptor)
|
|
3516
|
+
/**
|
|
3517
|
+
* @return {?}
|
|
3518
|
+
*/
|
|
3519
|
+
function () { return _this.stopLoading(); }));
|
|
3520
|
+
};
|
|
3521
|
+
/**
|
|
3522
|
+
* @private
|
|
3523
|
+
* @return {?}
|
|
3524
|
+
*/
|
|
3525
|
+
UploadDialogComponent.prototype.stopLoading = /**
|
|
3526
|
+
* @private
|
|
3527
|
+
* @return {?}
|
|
3528
|
+
*/
|
|
3529
|
+
function () {
|
|
3530
|
+
this.isLoading = false;
|
|
3531
|
+
this.dialogRef.disableClose = false;
|
|
3532
|
+
this.changeDetectorRef.detectChanges();
|
|
3533
|
+
};
|
|
3534
|
+
/**
|
|
3535
|
+
* @private
|
|
3536
|
+
* @return {?}
|
|
3537
|
+
*/
|
|
3538
|
+
UploadDialogComponent.prototype.clearErrors = /**
|
|
3539
|
+
* @private
|
|
3540
|
+
* @return {?}
|
|
3541
|
+
*/
|
|
3542
|
+
function () {
|
|
3543
|
+
this.errorMessages = [];
|
|
3544
|
+
this.uploadAssetsService.uploadErrors.clear();
|
|
3545
|
+
};
|
|
3546
|
+
// show each message on the file it mentions, the rest stay under the list
|
|
3547
|
+
// show each message on the file it mentions, the rest stay under the list
|
|
3548
|
+
/**
|
|
3549
|
+
* @private
|
|
3550
|
+
* @param {?} messages
|
|
3551
|
+
* @return {?}
|
|
3552
|
+
*/
|
|
3553
|
+
UploadDialogComponent.prototype.setUploadErrors =
|
|
3554
|
+
// show each message on the file it mentions, the rest stay under the list
|
|
3555
|
+
/**
|
|
3556
|
+
* @private
|
|
3557
|
+
* @param {?} messages
|
|
3558
|
+
* @return {?}
|
|
3559
|
+
*/
|
|
3560
|
+
function (messages) {
|
|
3561
|
+
var _this = this;
|
|
3562
|
+
var _a = this.uploadAssetsService, files = _a.getFiles, uploadErrors = _a.uploadErrors;
|
|
3563
|
+
/** @type {?} */
|
|
3564
|
+
var uploadNames = files.map((/**
|
|
3565
|
+
* @param {?} file
|
|
3566
|
+
* @param {?} index
|
|
3567
|
+
* @return {?}
|
|
3568
|
+
*/
|
|
3569
|
+
function (file, index) { return _this.uploadAssetsService.getUploadName(index); }));
|
|
3570
|
+
this.errorMessages = messages.filter((/**
|
|
3571
|
+
* @param {?} message
|
|
3572
|
+
* @return {?}
|
|
3573
|
+
*/
|
|
3574
|
+
function (message) {
|
|
3575
|
+
/** @type {?} */
|
|
3576
|
+
var index = uploadNames.findIndex((/**
|
|
3577
|
+
* @param {?} name
|
|
3578
|
+
* @return {?}
|
|
3579
|
+
*/
|
|
3580
|
+
function (name) { return message.indexOf(name) > -1; }));
|
|
3581
|
+
if (index < 0 && files.length === 1) {
|
|
3582
|
+
index = 0;
|
|
3583
|
+
}
|
|
3584
|
+
if (index < 0) {
|
|
3585
|
+
return true;
|
|
3586
|
+
}
|
|
3587
|
+
uploadErrors.set(files[index], __spread((uploadErrors.get(files[index]) || []), [message]));
|
|
3588
|
+
return false;
|
|
3516
3589
|
}));
|
|
3517
3590
|
};
|
|
3591
|
+
/**
|
|
3592
|
+
* @private
|
|
3593
|
+
* @param {?} err
|
|
3594
|
+
* @return {?}
|
|
3595
|
+
*/
|
|
3596
|
+
UploadDialogComponent.prototype.getErrorMessages = /**
|
|
3597
|
+
* @private
|
|
3598
|
+
* @param {?} err
|
|
3599
|
+
* @return {?}
|
|
3600
|
+
*/
|
|
3601
|
+
function (err) {
|
|
3602
|
+
// HttpErrorResponse keeps the API body in `error`, an interceptor may already unwrap it
|
|
3603
|
+
/** @type {?} */
|
|
3604
|
+
var body = err && err.error && typeof err.error === 'object' ? err.error : err || {};
|
|
3605
|
+
/** @type {?} */
|
|
3606
|
+
var messages = (body.Messages || [])
|
|
3607
|
+
.map((/**
|
|
3608
|
+
* @param {?} message
|
|
3609
|
+
* @return {?}
|
|
3610
|
+
*/
|
|
3611
|
+
function (message) { return (typeof message === 'string' ? message : message && message.Text); }))
|
|
3612
|
+
.filter(Boolean);
|
|
3613
|
+
if (!messages.length && body.ResponseMessage) {
|
|
3614
|
+
messages.push(body.ResponseMessage);
|
|
3615
|
+
}
|
|
3616
|
+
return messages.length
|
|
3617
|
+
? messages.filter((/**
|
|
3618
|
+
* @param {?} message
|
|
3619
|
+
* @param {?} index
|
|
3620
|
+
* @return {?}
|
|
3621
|
+
*/
|
|
3622
|
+
function (message, index) { return messages.indexOf(message) === index; }))
|
|
3623
|
+
: [this.defaultErrorMessage];
|
|
3624
|
+
};
|
|
3518
3625
|
/**
|
|
3519
3626
|
* @param {?=} res
|
|
3520
3627
|
* @return {?}
|
|
@@ -3539,15 +3646,15 @@
|
|
|
3539
3646
|
UploadDialogComponent.decorators = [
|
|
3540
3647
|
{ type: core.Component, args: [{
|
|
3541
3648
|
selector: 'lib-upload-dialog',
|
|
3542
|
-
template: "<lib-modal heading=\"Add new assets\">\n <ng-container content>\n <lib-upload-file\n *ngIf=\"!uploadAssetsService?.getFiles?.length\"\n (revalidate)=\"onValidate($event)\"\n ></lib-upload-file>\n <lib-file-list\n *ngIf=\"uploadAssetsService?.getFiles?.length\"\n (revalidate)=\"onValidate($event)\"\n ></lib-file-list>\n </ng-container>\n <ng-container actions>\n <button mat-raised-button mat-dialog-close>Cancel</button>\n <button\n class=\"upload__action\"\n [class.loading]=\"isLoading\"\n mat-raised-button\n color=\"primary\"\n (click)=\"uploadFiles()\"\n [disabled]=\"disabled || isLoading\"\n >\n <ng-container *ngIf=\"isLoading\">\n <mat-spinner [diameter]=\"20\"></mat-spinner>\n </ng-container>\n <span>Upload</span>\n </button>\n </ng-container>\n</lib-modal>\n",
|
|
3649
|
+
template: "<lib-modal heading=\"Add new assets\">\n <ng-container content>\n <lib-upload-file\n *ngIf=\"!uploadAssetsService?.getFiles?.length\"\n (revalidate)=\"onValidate($event)\"\n ></lib-upload-file>\n <lib-file-list\n *ngIf=\"uploadAssetsService?.getFiles?.length\"\n (revalidate)=\"onValidate($event)\"\n ></lib-file-list>\n <div *ngFor=\"let message of errorMessages\" class=\"upload__error\" role=\"alert\">\n <mat-icon class=\"upload__error--icon\">error_outline</mat-icon>\n <span>{{ message }}</span>\n </div>\n </ng-container>\n <ng-container actions>\n <button mat-raised-button mat-dialog-close [disabled]=\"isLoading\">Cancel</button>\n <button\n class=\"upload__action\"\n [class.loading]=\"isLoading\"\n mat-raised-button\n color=\"primary\"\n (click)=\"uploadFiles()\"\n [disabled]=\"disabled || isLoading\"\n >\n <ng-container *ngIf=\"isLoading\">\n <mat-spinner [diameter]=\"20\"></mat-spinner>\n </ng-container>\n <span>Upload</span>\n </button>\n </ng-container>\n</lib-modal>\n",
|
|
3543
3650
|
providers: [UploadAssetsService],
|
|
3544
|
-
styles: [":host::ng-deep{display:block;width:1200px;max-width:100%;font-size:14px;line-height:16px;color:#979797;letter-spacing:.15px}:host::ng-deep .mat-dialog-title{position:relative;margin-bottom:0;padding-bottom:24px;color:#000}:host::ng-deep .mat-dialog-actions{justify-content:flex-end;padding:24px 0 0}:host::ng-deep .upload__action{min-width:100px}:host::ng-deep .upload__action.loading{padding:0 5px}:host::ng-deep .upload__action.loading .mat-button-wrapper{display:flex;width:100%;justify-content:center;align-items:center}:host::ng-deep .upload__action.loading .mat-spinner{margin-right:10px}"]
|
|
3651
|
+
styles: [":host::ng-deep{display:block;width:1200px;max-width:100%;font-size:14px;line-height:16px;color:#979797;letter-spacing:.15px}:host::ng-deep .mat-dialog-title{position:relative;margin-bottom:0;padding-bottom:24px;color:#000}:host::ng-deep .mat-dialog-actions{justify-content:flex-end;padding:24px 0 0}:host::ng-deep .upload__error{display:flex;align-items:center;width:-moz-fit-content;width:fit-content;max-width:100%;margin-top:8px;padding:4px 10px;border-radius:6px;background-color:#fdecea;color:#d32f2f;font-size:13px;line-height:18px;word-break:break-word}:host::ng-deep .upload__error--icon{flex-shrink:0;margin-right:6px;font-size:16px;width:16px;height:16px}:host::ng-deep .upload__action{min-width:100px}:host::ng-deep .upload__action.loading{padding:0 5px}:host::ng-deep .upload__action.loading .mat-button-wrapper{display:flex;width:100%;justify-content:center;align-items:center}:host::ng-deep .upload__action.loading .mat-spinner{margin-right:10px}"]
|
|
3545
3652
|
}] }
|
|
3546
3653
|
];
|
|
3547
3654
|
/** @nocollapse */
|
|
3548
3655
|
UploadDialogComponent.ctorParameters = function () { return [
|
|
3549
|
-
{ type: undefined, decorators: [{ type: core.Inject, args: [
|
|
3550
|
-
{ type:
|
|
3656
|
+
{ type: undefined, decorators: [{ type: core.Inject, args: [material.MAT_DIALOG_DATA,] }] },
|
|
3657
|
+
{ type: material.MatDialogRef },
|
|
3551
3658
|
{ type: core.ChangeDetectorRef },
|
|
3552
3659
|
{ type: UploadAssetsService }
|
|
3553
3660
|
]; };
|
|
@@ -3558,6 +3665,13 @@
|
|
|
3558
3665
|
UploadDialogComponent.prototype.isLoading;
|
|
3559
3666
|
/** @type {?} */
|
|
3560
3667
|
UploadDialogComponent.prototype.disabled;
|
|
3668
|
+
/** @type {?} */
|
|
3669
|
+
UploadDialogComponent.prototype.errorMessages;
|
|
3670
|
+
/**
|
|
3671
|
+
* @type {?}
|
|
3672
|
+
* @private
|
|
3673
|
+
*/
|
|
3674
|
+
UploadDialogComponent.prototype.defaultErrorMessage;
|
|
3561
3675
|
/**
|
|
3562
3676
|
* @type {?}
|
|
3563
3677
|
* @private
|
|
@@ -3578,7 +3692,6 @@
|
|
|
3578
3692
|
|
|
3579
3693
|
/**
|
|
3580
3694
|
* @fileoverview added by tsickle
|
|
3581
|
-
* Generated from: lib/components/partial/folder-item/folder-item.component.ts
|
|
3582
3695
|
* @suppress {checkTypes,constantProperty,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
|
|
3583
3696
|
*/
|
|
3584
3697
|
var FolderItemComponent = /** @class */ (function () {
|
|
@@ -3709,7 +3822,6 @@
|
|
|
3709
3822
|
|
|
3710
3823
|
/**
|
|
3711
3824
|
* @fileoverview added by tsickle
|
|
3712
|
-
* Generated from: lib/components/partial/folder-list/folder-list.component.ts
|
|
3713
3825
|
* @suppress {checkTypes,constantProperty,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
|
|
3714
3826
|
*/
|
|
3715
3827
|
var FolderListComponent = /** @class */ (function () {
|
|
@@ -3719,7 +3831,7 @@
|
|
|
3719
3831
|
this.hasArchivePermission = true;
|
|
3720
3832
|
this.onPageChange = new core.EventEmitter();
|
|
3721
3833
|
this.loading = false;
|
|
3722
|
-
this.unsubscribe$ = new
|
|
3834
|
+
this.unsubscribe$ = new Subject.Subject();
|
|
3723
3835
|
this.bindSubscriber();
|
|
3724
3836
|
}
|
|
3725
3837
|
/**
|
|
@@ -3800,7 +3912,7 @@
|
|
|
3800
3912
|
hasModifyPermission: [{ type: core.Input }],
|
|
3801
3913
|
hasAccessPermission: [{ type: core.Input }],
|
|
3802
3914
|
hasArchivePermission: [{ type: core.Input }],
|
|
3803
|
-
paginator: [{ type: core.ViewChild, args: [
|
|
3915
|
+
paginator: [{ type: core.ViewChild, args: [material.MatPaginator, { static: true },] }],
|
|
3804
3916
|
folders: [{ type: core.Input }],
|
|
3805
3917
|
pagination: [{ type: core.Input }],
|
|
3806
3918
|
onPageChange: [{ type: core.Output }]
|
|
@@ -3833,7 +3945,6 @@
|
|
|
3833
3945
|
|
|
3834
3946
|
/**
|
|
3835
3947
|
* @fileoverview added by tsickle
|
|
3836
|
-
* Generated from: lib/components/partial/asset-list/asset-list.component.ts
|
|
3837
3948
|
* @suppress {checkTypes,constantProperty,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
|
|
3838
3949
|
*/
|
|
3839
3950
|
var AssetListComponent = /** @class */ (function () {
|
|
@@ -3844,7 +3955,8 @@
|
|
|
3844
3955
|
this.hasAccessPermission = true;
|
|
3845
3956
|
this.hasArchivePermission = true;
|
|
3846
3957
|
this.backgroundProcessingNum = BackgroudProcessingStatus;
|
|
3847
|
-
this.
|
|
3958
|
+
this.processingCheckDelay = 5000;
|
|
3959
|
+
this.unsubscribe$ = new Subject.Subject();
|
|
3848
3960
|
this.selectedAssets = [];
|
|
3849
3961
|
}
|
|
3850
3962
|
/**
|
|
@@ -3865,17 +3977,8 @@
|
|
|
3865
3977
|
* @return {?}
|
|
3866
3978
|
*/
|
|
3867
3979
|
function (changes) {
|
|
3868
|
-
var _this = this;
|
|
3869
3980
|
if (changes.assets) {
|
|
3870
|
-
|
|
3871
|
-
if (this.assets && this.assets.find((/**
|
|
3872
|
-
* @param {?} x
|
|
3873
|
-
* @return {?}
|
|
3874
|
-
*/
|
|
3875
|
-
function (x) { return x.BackgroudProcessingStatus === _this.backgroundProcessingNum.InProcessing; }))) {
|
|
3876
|
-
this._resetUploadingAssets();
|
|
3877
|
-
}
|
|
3878
|
-
;
|
|
3981
|
+
this.checkProcessingAssets();
|
|
3879
3982
|
this.paginator.pageIndex = this.assetService.pageIndex;
|
|
3880
3983
|
this.paginator.pageSize = this.assetService.pageSize;
|
|
3881
3984
|
this.paginator.length = this.assetService.fileTotal;
|
|
@@ -3983,7 +4086,7 @@
|
|
|
3983
4086
|
* @param {?} res
|
|
3984
4087
|
* @return {?}
|
|
3985
4088
|
*/
|
|
3986
|
-
function (res) { return
|
|
4089
|
+
function (res) { return of.of(res); })))
|
|
3987
4090
|
.subscribe((/**
|
|
3988
4091
|
* @return {?}
|
|
3989
4092
|
*/
|
|
@@ -4028,15 +4131,8 @@
|
|
|
4028
4131
|
* @param {?} res
|
|
4029
4132
|
* @return {?}
|
|
4030
4133
|
*/
|
|
4031
|
-
function (res) {
|
|
4032
|
-
/**
|
|
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((/**
|
|
4134
|
+
function (res) { return _this.setAssetList(res); }))
|
|
4135
|
+
.add((/**
|
|
4040
4136
|
* @return {?}
|
|
4041
4137
|
*/
|
|
4042
4138
|
function () {
|
|
@@ -4048,29 +4144,92 @@
|
|
|
4048
4144
|
};
|
|
4049
4145
|
/**
|
|
4050
4146
|
* @private
|
|
4147
|
+
* @param {?} res
|
|
4051
4148
|
* @return {?}
|
|
4052
4149
|
*/
|
|
4053
|
-
AssetListComponent.prototype.
|
|
4150
|
+
AssetListComponent.prototype.setAssetList = /**
|
|
4151
|
+
* @private
|
|
4152
|
+
* @param {?} res
|
|
4153
|
+
* @return {?}
|
|
4154
|
+
*/
|
|
4155
|
+
function (res) {
|
|
4156
|
+
/** @type {?} */
|
|
4157
|
+
var pagination = res && res.Meta || {};
|
|
4158
|
+
/** @type {?} */
|
|
4159
|
+
var assets = res && res.Data && res.Data.Children || [];
|
|
4160
|
+
/** @type {?} */
|
|
4161
|
+
var totalFile = res && res.Data && res.Data.TotalFile || 0;
|
|
4162
|
+
this.assetService.setAssetList(assets, pagination, totalFile);
|
|
4163
|
+
};
|
|
4164
|
+
// Called on every new asset list: while some files are still processed in the background,
|
|
4165
|
+
// reload the list once after a delay. The reloaded list calls this again, until nothing is processing.
|
|
4166
|
+
// Called on every new asset list: while some files are still processed in the background,
|
|
4167
|
+
// reload the list once after a delay. The reloaded list calls this again, until nothing is processing.
|
|
4168
|
+
/**
|
|
4169
|
+
* @private
|
|
4170
|
+
* @return {?}
|
|
4171
|
+
*/
|
|
4172
|
+
AssetListComponent.prototype.checkProcessingAssets =
|
|
4173
|
+
// Called on every new asset list: while some files are still processed in the background,
|
|
4174
|
+
// reload the list once after a delay. The reloaded list calls this again, until nothing is processing.
|
|
4175
|
+
/**
|
|
4054
4176
|
* @private
|
|
4055
4177
|
* @return {?}
|
|
4056
4178
|
*/
|
|
4057
4179
|
function () {
|
|
4058
4180
|
var _this = this;
|
|
4181
|
+
this.stopProcessingCheck();
|
|
4059
4182
|
/** @type {?} */
|
|
4060
|
-
var
|
|
4183
|
+
var hasProcessingAssets = this.assets && this.assets.some((/**
|
|
4184
|
+
* @param {?} asset
|
|
4061
4185
|
* @return {?}
|
|
4062
4186
|
*/
|
|
4063
|
-
function () {
|
|
4064
|
-
|
|
4065
|
-
|
|
4066
|
-
* @param {?} x
|
|
4187
|
+
function (asset) { return asset.BackgroudProcessingStatus === _this.backgroundProcessingNum.InProcessing; }));
|
|
4188
|
+
if (hasProcessingAssets) {
|
|
4189
|
+
this.processingCheckTimer = setTimeout((/**
|
|
4067
4190
|
* @return {?}
|
|
4068
4191
|
*/
|
|
4069
|
-
function (
|
|
4070
|
-
|
|
4071
|
-
|
|
4072
|
-
|
|
4073
|
-
|
|
4192
|
+
function () { return _this.reloadProcessingAssets(); }), this.processingCheckDelay);
|
|
4193
|
+
}
|
|
4194
|
+
};
|
|
4195
|
+
// Silent reload, without the global loading bar
|
|
4196
|
+
// Silent reload, without the global loading bar
|
|
4197
|
+
/**
|
|
4198
|
+
* @private
|
|
4199
|
+
* @return {?}
|
|
4200
|
+
*/
|
|
4201
|
+
AssetListComponent.prototype.reloadProcessingAssets =
|
|
4202
|
+
// Silent reload, without the global loading bar
|
|
4203
|
+
/**
|
|
4204
|
+
* @private
|
|
4205
|
+
* @return {?}
|
|
4206
|
+
*/
|
|
4207
|
+
function () {
|
|
4208
|
+
var _this = this;
|
|
4209
|
+
if (!this.currentFolderId) {
|
|
4210
|
+
return;
|
|
4211
|
+
}
|
|
4212
|
+
this.processingCheckRequest = this.assetService
|
|
4213
|
+
.getChildrenAssets({ assetId: this.currentFolderId })
|
|
4214
|
+
.subscribe((/**
|
|
4215
|
+
* @param {?} res
|
|
4216
|
+
* @return {?}
|
|
4217
|
+
*/
|
|
4218
|
+
function (res) { return _this.setAssetList(res); }));
|
|
4219
|
+
};
|
|
4220
|
+
/**
|
|
4221
|
+
* @private
|
|
4222
|
+
* @return {?}
|
|
4223
|
+
*/
|
|
4224
|
+
AssetListComponent.prototype.stopProcessingCheck = /**
|
|
4225
|
+
* @private
|
|
4226
|
+
* @return {?}
|
|
4227
|
+
*/
|
|
4228
|
+
function () {
|
|
4229
|
+
clearTimeout(this.processingCheckTimer);
|
|
4230
|
+
if (this.processingCheckRequest) {
|
|
4231
|
+
this.processingCheckRequest.unsubscribe();
|
|
4232
|
+
}
|
|
4074
4233
|
};
|
|
4075
4234
|
/**
|
|
4076
4235
|
* @return {?}
|
|
@@ -4079,6 +4238,7 @@
|
|
|
4079
4238
|
* @return {?}
|
|
4080
4239
|
*/
|
|
4081
4240
|
function () {
|
|
4241
|
+
this.stopProcessingCheck();
|
|
4082
4242
|
this.unsubscribe$.next();
|
|
4083
4243
|
this.unsubscribe$.complete();
|
|
4084
4244
|
};
|
|
@@ -4086,7 +4246,7 @@
|
|
|
4086
4246
|
{ type: core.Component, args: [{
|
|
4087
4247
|
selector: 'lib-asset-list',
|
|
4088
4248
|
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",
|
|
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:
|
|
4249
|
+
styles: [":host::ng-deep .asset-container .asset-heading{display:flex;justify-content:space-between;align-items:center;margin-bottom:.5rem}:host::ng-deep .asset-container .asset-heading__title{margin-bottom:0;color:#979797}:host::ng-deep .asset-container .asset-list{display:flex;flex-wrap:wrap;justify-content:flex-start;align-items:stretch;margin:0 -5px}:host::ng-deep .asset-container .asset-list__item{width:25%}@media only screen and (max-width:1200px){:host::ng-deep .asset-container .asset-list__item{width:33.3333333333%}}@media only screen and (max-width:960px){:host::ng-deep .asset-container .asset-list__item{width:50%}}:host::ng-deep .asset-container .asset-empty{text-align:center;color:#979797;font-size:14px}"]
|
|
4090
4250
|
}] }
|
|
4091
4251
|
];
|
|
4092
4252
|
/** @nocollapse */
|
|
@@ -4119,6 +4279,21 @@
|
|
|
4119
4279
|
AssetListComponent.prototype.assets;
|
|
4120
4280
|
/** @type {?} */
|
|
4121
4281
|
AssetListComponent.prototype.backgroundProcessingNum;
|
|
4282
|
+
/**
|
|
4283
|
+
* @type {?}
|
|
4284
|
+
* @private
|
|
4285
|
+
*/
|
|
4286
|
+
AssetListComponent.prototype.processingCheckDelay;
|
|
4287
|
+
/**
|
|
4288
|
+
* @type {?}
|
|
4289
|
+
* @private
|
|
4290
|
+
*/
|
|
4291
|
+
AssetListComponent.prototype.processingCheckTimer;
|
|
4292
|
+
/**
|
|
4293
|
+
* @type {?}
|
|
4294
|
+
* @private
|
|
4295
|
+
*/
|
|
4296
|
+
AssetListComponent.prototype.processingCheckRequest;
|
|
4122
4297
|
/**
|
|
4123
4298
|
* @type {?}
|
|
4124
4299
|
* @private
|
|
@@ -4148,7 +4323,6 @@
|
|
|
4148
4323
|
|
|
4149
4324
|
/**
|
|
4150
4325
|
* @fileoverview added by tsickle
|
|
4151
|
-
* Generated from: lib/pipes/file-size.pipe.ts
|
|
4152
4326
|
* @suppress {checkTypes,constantProperty,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
|
|
4153
4327
|
*/
|
|
4154
4328
|
/*
|
|
@@ -4210,7 +4384,6 @@
|
|
|
4210
4384
|
|
|
4211
4385
|
/**
|
|
4212
4386
|
* @fileoverview added by tsickle
|
|
4213
|
-
* Generated from: lib/components/partial/asset-dialog/asset-dialog.component.ts
|
|
4214
4387
|
* @suppress {checkTypes,constantProperty,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
|
|
4215
4388
|
*/
|
|
4216
4389
|
/**
|
|
@@ -4634,7 +4807,6 @@
|
|
|
4634
4807
|
|
|
4635
4808
|
/**
|
|
4636
4809
|
* @fileoverview added by tsickle
|
|
4637
|
-
* Generated from: lib/components/partial/asset-item/asset-item.component.ts
|
|
4638
4810
|
* @suppress {checkTypes,constantProperty,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
|
|
4639
4811
|
*/
|
|
4640
4812
|
var AssetItemComponent = /** @class */ (function () {
|
|
@@ -4974,7 +5146,6 @@
|
|
|
4974
5146
|
|
|
4975
5147
|
/**
|
|
4976
5148
|
* @fileoverview added by tsickle
|
|
4977
|
-
* Generated from: lib/datasources/node-tree.datasource.ts
|
|
4978
5149
|
* @suppress {checkTypes,constantProperty,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
|
|
4979
5150
|
*/
|
|
4980
5151
|
var NodeTreeDataSource = /** @class */ (function () {
|
|
@@ -5093,8 +5264,7 @@
|
|
|
5093
5264
|
*/
|
|
5094
5265
|
function (node, expand) {
|
|
5095
5266
|
return __awaiter(this, void 0, void 0, function () {
|
|
5096
|
-
var index, newNode, nodes, count, i;
|
|
5097
|
-
var _a;
|
|
5267
|
+
var _a, index, newNode, nodes, count, i;
|
|
5098
5268
|
var _this = this;
|
|
5099
5269
|
return __generator(this, function (_b) {
|
|
5100
5270
|
switch (_b.label) {
|
|
@@ -5157,8 +5327,7 @@
|
|
|
5157
5327
|
*/
|
|
5158
5328
|
function (node, pageSize) {
|
|
5159
5329
|
return __awaiter(this, void 0, void 0, function () {
|
|
5160
|
-
var newNode, index, count, i, nodes;
|
|
5161
|
-
var _a;
|
|
5330
|
+
var _a, newNode, index, count, i, nodes;
|
|
5162
5331
|
var _this = this;
|
|
5163
5332
|
return __generator(this, function (_b) {
|
|
5164
5333
|
switch (_b.label) {
|
|
@@ -5213,13 +5382,11 @@
|
|
|
5213
5382
|
|
|
5214
5383
|
/**
|
|
5215
5384
|
* @fileoverview added by tsickle
|
|
5216
|
-
* Generated from: lib/datasources/index.ts
|
|
5217
5385
|
* @suppress {checkTypes,constantProperty,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
|
|
5218
5386
|
*/
|
|
5219
5387
|
|
|
5220
5388
|
/**
|
|
5221
5389
|
* @fileoverview added by tsickle
|
|
5222
|
-
* Generated from: lib/components/partial/node-tree/node-tree.component.ts
|
|
5223
5390
|
* @suppress {checkTypes,constantProperty,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
|
|
5224
5391
|
*/
|
|
5225
5392
|
var NodeTreeComponent = /** @class */ (function () {
|
|
@@ -5797,7 +5964,6 @@
|
|
|
5797
5964
|
|
|
5798
5965
|
/**
|
|
5799
5966
|
* @fileoverview added by tsickle
|
|
5800
|
-
* Generated from: lib/components/partial/breadcrumb/breadcrumb.component.ts
|
|
5801
5967
|
* @suppress {checkTypes,constantProperty,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
|
|
5802
5968
|
*/
|
|
5803
5969
|
var BreadcrumbComponent = /** @class */ (function () {
|
|
@@ -5805,7 +5971,7 @@
|
|
|
5805
5971
|
this.nodeTreeService = nodeTreeService;
|
|
5806
5972
|
this.svc = svc;
|
|
5807
5973
|
this.changeDetectorRef = changeDetectorRef;
|
|
5808
|
-
this.unsubscribe$ = new
|
|
5974
|
+
this.unsubscribe$ = new Subject.Subject();
|
|
5809
5975
|
this.currentFolderHierarchy = [];
|
|
5810
5976
|
this.maximumShownLevel = 3;
|
|
5811
5977
|
this.bindSubscriber();
|
|
@@ -5846,7 +6012,7 @@
|
|
|
5846
6012
|
* @param {?} res
|
|
5847
6013
|
* @return {?}
|
|
5848
6014
|
*/
|
|
5849
|
-
function (res) { return
|
|
6015
|
+
function (res) { return of.of(res); })))
|
|
5850
6016
|
.subscribe((/**
|
|
5851
6017
|
* @param {?} currentFolderHierarchy
|
|
5852
6018
|
* @return {?}
|
|
@@ -5932,14 +6098,13 @@
|
|
|
5932
6098
|
|
|
5933
6099
|
/**
|
|
5934
6100
|
* @fileoverview added by tsickle
|
|
5935
|
-
* Generated from: lib/components/partial/search-box/search-box.component.ts
|
|
5936
6101
|
* @suppress {checkTypes,constantProperty,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
|
|
5937
6102
|
*/
|
|
5938
6103
|
var SearchBoxComponent = /** @class */ (function () {
|
|
5939
6104
|
function SearchBoxComponent(assetService, svc) {
|
|
5940
6105
|
this.assetService = assetService;
|
|
5941
6106
|
this.svc = svc;
|
|
5942
|
-
this.destroy$ = new
|
|
6107
|
+
this.destroy$ = new Subject.Subject();
|
|
5943
6108
|
this.value = '';
|
|
5944
6109
|
this.folderId = '';
|
|
5945
6110
|
this.bindingSubscriber();
|
|
@@ -5970,7 +6135,7 @@
|
|
|
5970
6135
|
* @param {?} res
|
|
5971
6136
|
* @return {?}
|
|
5972
6137
|
*/
|
|
5973
|
-
function (res) { return
|
|
6138
|
+
function (res) { return of.of(res); })))
|
|
5974
6139
|
.subscribe((/**
|
|
5975
6140
|
* @param {?} currentFolderId
|
|
5976
6141
|
* @return {?}
|
|
@@ -6032,7 +6197,7 @@
|
|
|
6032
6197
|
type: ActionTypes.SET_GLOBAL_LOADING,
|
|
6033
6198
|
payload: true,
|
|
6034
6199
|
});
|
|
6035
|
-
|
|
6200
|
+
combineLatest.combineLatest([
|
|
6036
6201
|
this.assetService.getChildrenFolders({ assetId: this.folderId }),
|
|
6037
6202
|
this.assetService.getChildrenAssets({
|
|
6038
6203
|
assetId: this.folderId,
|
|
@@ -6112,7 +6277,6 @@
|
|
|
6112
6277
|
|
|
6113
6278
|
/**
|
|
6114
6279
|
* @fileoverview added by tsickle
|
|
6115
|
-
* Generated from: lib/components/partial/sort-items/sort-items.component.ts
|
|
6116
6280
|
* @suppress {checkTypes,constantProperty,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
|
|
6117
6281
|
*/
|
|
6118
6282
|
var SortItemsComponent = /** @class */ (function () {
|
|
@@ -6214,7 +6378,6 @@
|
|
|
6214
6378
|
|
|
6215
6379
|
/**
|
|
6216
6380
|
* @fileoverview added by tsickle
|
|
6217
|
-
* Generated from: lib/components/partial/asset-wrapper/asset-wrapper.component.ts
|
|
6218
6381
|
* @suppress {checkTypes,constantProperty,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
|
|
6219
6382
|
*/
|
|
6220
6383
|
var AssetWrapperComponent = /** @class */ (function () {
|
|
@@ -6225,7 +6388,7 @@
|
|
|
6225
6388
|
this.hasAccessPermission = true;
|
|
6226
6389
|
this.hasArchivePermission = true;
|
|
6227
6390
|
this.assets = new core.EventEmitter();
|
|
6228
|
-
this.unsubscribe$ = new
|
|
6391
|
+
this.unsubscribe$ = new Subject.Subject();
|
|
6229
6392
|
this.nodeTreeMinWidth = 300;
|
|
6230
6393
|
this.nodeTreeMaxWidth = 700;
|
|
6231
6394
|
}
|
|
@@ -6339,7 +6502,6 @@
|
|
|
6339
6502
|
|
|
6340
6503
|
/**
|
|
6341
6504
|
* @fileoverview added by tsickle
|
|
6342
|
-
* Generated from: lib/components/partial/node-details/node-details.component.ts
|
|
6343
6505
|
* @suppress {checkTypes,constantProperty,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
|
|
6344
6506
|
*/
|
|
6345
6507
|
var NodeDetailsComponent = /** @class */ (function () {
|
|
@@ -6352,9 +6514,9 @@
|
|
|
6352
6514
|
this.hasModifyPermission = true;
|
|
6353
6515
|
this.hasAccessPermission = true;
|
|
6354
6516
|
this.hasArchivePermission = true;
|
|
6355
|
-
this.unsubscribe$ = new
|
|
6517
|
+
this.unsubscribe$ = new Subject.Subject();
|
|
6356
6518
|
this.selectedAssets = [];
|
|
6357
|
-
this.loading$ = new
|
|
6519
|
+
this.loading$ = new BehaviorSubject.BehaviorSubject(false);
|
|
6358
6520
|
this.bindSubscriber();
|
|
6359
6521
|
}
|
|
6360
6522
|
/**
|
|
@@ -6671,7 +6833,7 @@
|
|
|
6671
6833
|
payload: true,
|
|
6672
6834
|
});
|
|
6673
6835
|
var _a = this.getFolderPagePagination(), pageIndex = _a.pageIndex, pageSize = _a.pageSize;
|
|
6674
|
-
|
|
6836
|
+
combineLatest.combineLatest([
|
|
6675
6837
|
this.assetService.getChildrenFolders({ assetId: id, pageIndex: pageIndex, pageSize: pageSize }),
|
|
6676
6838
|
this.assetService.getChildrenAssets({
|
|
6677
6839
|
assetId: id,
|
|
@@ -6858,7 +7020,6 @@
|
|
|
6858
7020
|
|
|
6859
7021
|
/**
|
|
6860
7022
|
* @fileoverview added by tsickle
|
|
6861
|
-
* Generated from: lib/components/ui/drag-to-resize/drag-to-resize.component.ts
|
|
6862
7023
|
* @suppress {checkTypes,constantProperty,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
|
|
6863
7024
|
*/
|
|
6864
7025
|
var DragToResizeComponent = /** @class */ (function () {
|
|
@@ -6974,7 +7135,6 @@
|
|
|
6974
7135
|
|
|
6975
7136
|
/**
|
|
6976
7137
|
* @fileoverview added by tsickle
|
|
6977
|
-
* Generated from: lib/configs/admin.config.ts
|
|
6978
7138
|
* @suppress {checkTypes,constantProperty,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
|
|
6979
7139
|
*/
|
|
6980
7140
|
/** @type {?} */
|
|
@@ -7055,7 +7215,6 @@
|
|
|
7055
7215
|
|
|
7056
7216
|
/**
|
|
7057
7217
|
* @fileoverview added by tsickle
|
|
7058
|
-
* Generated from: lib/pipes/datetime.pipe.ts
|
|
7059
7218
|
* @suppress {checkTypes,constantProperty,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
|
|
7060
7219
|
*/
|
|
7061
7220
|
/** @type {?} */
|
|
@@ -7134,7 +7293,6 @@
|
|
|
7134
7293
|
|
|
7135
7294
|
/**
|
|
7136
7295
|
* @fileoverview added by tsickle
|
|
7137
|
-
* Generated from: lib/asset-management.module.ts
|
|
7138
7296
|
* @suppress {checkTypes,constantProperty,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
|
|
7139
7297
|
*/
|
|
7140
7298
|
// SERVICES
|
|
@@ -7174,6 +7332,16 @@
|
|
|
7174
7332
|
AssetWrapperComponent,
|
|
7175
7333
|
AssetManagementDialogComponent,
|
|
7176
7334
|
];
|
|
7335
|
+
/** @type {?} */
|
|
7336
|
+
var ENTRY_COMPONENTS = [
|
|
7337
|
+
ModalComponent,
|
|
7338
|
+
UploadDialogComponent,
|
|
7339
|
+
AddFolderDialogComponent,
|
|
7340
|
+
EditFolderDialogComponent,
|
|
7341
|
+
DeleteDialogComponent,
|
|
7342
|
+
AssetDialogComponent,
|
|
7343
|
+
AssetManagementDialogComponent,
|
|
7344
|
+
];
|
|
7177
7345
|
/**
|
|
7178
7346
|
* @param {?} config
|
|
7179
7347
|
* @return {?}
|
|
@@ -7245,6 +7413,7 @@
|
|
|
7245
7413
|
multi: true,
|
|
7246
7414
|
}
|
|
7247
7415
|
]),
|
|
7416
|
+
entryComponents: __spread(ENTRY_COMPONENTS),
|
|
7248
7417
|
},] }
|
|
7249
7418
|
];
|
|
7250
7419
|
/** @nocollapse */
|
|
@@ -7265,34 +7434,34 @@
|
|
|
7265
7434
|
exports.AssetWrapperComponent = AssetWrapperComponent;
|
|
7266
7435
|
exports.BaseHttpClient = BaseHttpClient;
|
|
7267
7436
|
exports.BreadcrumbComponent = BreadcrumbComponent;
|
|
7268
|
-
exports.DIRECTIVES = DIRECTIVES;
|
|
7269
7437
|
exports.DeleteDialogComponent = DeleteDialogComponent;
|
|
7270
7438
|
exports.DialogTriggerDirective = DialogTriggerDirective;
|
|
7271
|
-
exports.DirectivesModule = DirectivesModule;
|
|
7272
|
-
exports.DndDirective = DndDirective;
|
|
7273
|
-
exports.DragToResizeComponent = DragToResizeComponent;
|
|
7274
7439
|
exports.EditFolderDialogComponent = EditFolderDialogComponent;
|
|
7275
7440
|
exports.FileItemComponent = FileItemComponent;
|
|
7276
7441
|
exports.FileListComponent = FileListComponent;
|
|
7277
7442
|
exports.FileService = FileService;
|
|
7278
|
-
exports.FileSizePipe = FileSizePipe;
|
|
7279
7443
|
exports.FolderItemComponent = FolderItemComponent;
|
|
7280
7444
|
exports.FolderListComponent = FolderListComponent;
|
|
7281
7445
|
exports.InputFileComponent = InputFileComponent;
|
|
7282
|
-
exports.LocalDatePipe = LocalDatePipe;
|
|
7283
|
-
exports.LocalDateTimePipe = LocalDateTimePipe;
|
|
7284
7446
|
exports.ModalComponent = ModalComponent;
|
|
7285
7447
|
exports.NodeDetailsComponent = NodeDetailsComponent;
|
|
7286
7448
|
exports.NodeTreeComponent = NodeTreeComponent;
|
|
7287
7449
|
exports.NodeTreeService = NodeTreeService;
|
|
7288
7450
|
exports.SearchBoxComponent = SearchBoxComponent;
|
|
7289
7451
|
exports.SearchNotFoundComponent = SearchNotFoundComponent;
|
|
7290
|
-
exports.SortItemsComponent = SortItemsComponent;
|
|
7291
7452
|
exports.UploadAssetsService = UploadAssetsService;
|
|
7292
7453
|
exports.UploadDialogComponent = UploadDialogComponent;
|
|
7293
7454
|
exports.UploadFileComponent = UploadFileComponent;
|
|
7294
|
-
exports.ɵa =
|
|
7295
|
-
exports.ɵb =
|
|
7455
|
+
exports.ɵa = DragToResizeComponent;
|
|
7456
|
+
exports.ɵb = FileSizePipe;
|
|
7457
|
+
exports.ɵc = AssetManagementService;
|
|
7458
|
+
exports.ɵd = SortItemsComponent;
|
|
7459
|
+
exports.ɵe = DialogConfig;
|
|
7460
|
+
exports.ɵf = LocalDateTimePipe;
|
|
7461
|
+
exports.ɵg = LocalDatePipe;
|
|
7462
|
+
exports.ɵh = DIRECTIVES;
|
|
7463
|
+
exports.ɵi = DirectivesModule;
|
|
7464
|
+
exports.ɵj = DndDirective;
|
|
7296
7465
|
|
|
7297
7466
|
Object.defineProperty(exports, '__esModule', { value: true });
|
|
7298
7467
|
|