nuxeo-development-framework 4.2.3 → 4.2.4
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/nuxeo-development-framework.umd.js +217 -217
- package/bundles/nuxeo-development-framework.umd.js.map +1 -1
- package/esm2015/lib/components/file-manger/file-manager.abstract.js +254 -254
- package/fesm2015/nuxeo-development-framework.js +219 -219
- package/fesm2015/nuxeo-development-framework.js.map +1 -1
- package/lib/components/file-manger/file-manager.abstract.d.ts +25 -25
- package/package.json +1 -1
|
@@ -26400,10 +26400,9 @@
|
|
|
26400
26400
|
var _FileManagerAbstract_instances, _FileManagerAbstract_foldersSubscription$, _FileManagerAbstract_loadMore, _FileManagerAbstract_resetPagination, _FileManagerAbstract_initPagination, _FileManagerAbstract_getNode, _FileManagerAbstract_addOrReplace;
|
|
26401
26401
|
//
|
|
26402
26402
|
var FileManagerAbstract = /** @class */ (function () {
|
|
26403
|
-
function FileManagerAbstract(injectorObj, myPageConfigurationName, environment
|
|
26403
|
+
function FileManagerAbstract(injectorObj, myPageConfigurationName, environment) {
|
|
26404
26404
|
var _this = this;
|
|
26405
26405
|
this.injectorObj = injectorObj;
|
|
26406
|
-
this.nuxeoDialogService = nuxeoDialogService;
|
|
26407
26406
|
_FileManagerAbstract_instances.add(this);
|
|
26408
26407
|
_FileManagerAbstract_foldersSubscription$.set(this, void 0);
|
|
26409
26408
|
this.subscriptions = [];
|
|
@@ -26411,13 +26410,13 @@
|
|
|
26411
26410
|
this.nodesPagination = {};
|
|
26412
26411
|
this.isItemSelected = false;
|
|
26413
26412
|
this.clicked = false;
|
|
26414
|
-
this.currentPath =
|
|
26415
|
-
this.configKey =
|
|
26413
|
+
this.currentPath = "";
|
|
26414
|
+
this.configKey = "allFiles";
|
|
26416
26415
|
this.onDestroy$ = new rxjs.Subject();
|
|
26417
26416
|
this.loading = false;
|
|
26418
26417
|
this.rtlEnabled = false;
|
|
26419
26418
|
this.isArabic = true;
|
|
26420
|
-
this.menuDirection =
|
|
26419
|
+
this.menuDirection = "before";
|
|
26421
26420
|
this.showDetails = false;
|
|
26422
26421
|
this.sideMenuLoading = false;
|
|
26423
26422
|
this.disable = true;
|
|
@@ -26431,7 +26430,7 @@
|
|
|
26431
26430
|
copyPopupVisible: false,
|
|
26432
26431
|
transferPopupVisible: false,
|
|
26433
26432
|
loanPopupVisible: false,
|
|
26434
|
-
createPopupVisible: false
|
|
26433
|
+
createPopupVisible: false,
|
|
26435
26434
|
};
|
|
26436
26435
|
this.showfolderTemplates = false;
|
|
26437
26436
|
this.contextMenuItems = [];
|
|
@@ -26442,35 +26441,35 @@
|
|
|
26442
26441
|
this.showClipboard = false;
|
|
26443
26442
|
this.showDgdaClipboard = false; // flage related to dgda clipboard
|
|
26444
26443
|
this.cancelButton = {
|
|
26445
|
-
text: this.isArabic ?
|
|
26444
|
+
text: this.isArabic ? "إلغاء" : "Cancel",
|
|
26446
26445
|
onClick: function () {
|
|
26447
26446
|
Object.keys(_this.cancelableOperations).forEach(function (key) {
|
|
26448
26447
|
_this.cancelableOperations[key] = false;
|
|
26449
26448
|
});
|
|
26450
|
-
}
|
|
26449
|
+
},
|
|
26451
26450
|
};
|
|
26452
26451
|
this.moveTo = function () {
|
|
26453
26452
|
if (_this.treeView !== undefined && _this.treeView.instance !== null) {
|
|
26454
26453
|
var mytreeInstance = _this.treeView.instance;
|
|
26455
|
-
mytreeInstance.option(
|
|
26454
|
+
mytreeInstance.option("dataSource", []);
|
|
26456
26455
|
}
|
|
26457
|
-
_this.cancelableOperations[
|
|
26456
|
+
_this.cancelableOperations["movePopupVisible"] = true;
|
|
26458
26457
|
};
|
|
26459
26458
|
this.copyTo = function () {
|
|
26460
26459
|
if (_this.treeView !== undefined && _this.treeView.instance !== null) {
|
|
26461
26460
|
var mytreeInstance = _this.treeView.instance;
|
|
26462
|
-
mytreeInstance.option(
|
|
26461
|
+
mytreeInstance.option("dataSource", []);
|
|
26463
26462
|
}
|
|
26464
|
-
_this.cancelableOperations[
|
|
26463
|
+
_this.cancelableOperations["copyPopupVisible"] = true;
|
|
26465
26464
|
};
|
|
26466
26465
|
this.delete = function () {
|
|
26467
|
-
_this.cancelableOperations[
|
|
26466
|
+
_this.cancelableOperations["deletePopupVisible"] = true;
|
|
26468
26467
|
};
|
|
26469
26468
|
this.transferTo = function () {
|
|
26470
|
-
_this.cancelableOperations[
|
|
26469
|
+
_this.cancelableOperations["transferPopupVisible"] = true;
|
|
26471
26470
|
};
|
|
26472
26471
|
this.loanRequest = function () {
|
|
26473
|
-
_this.cancelableOperations[
|
|
26472
|
+
_this.cancelableOperations["loanPopupVisible"] = true;
|
|
26474
26473
|
};
|
|
26475
26474
|
this.createFolder = function () {
|
|
26476
26475
|
// this.selectedItem =
|
|
@@ -26480,29 +26479,29 @@
|
|
|
26480
26479
|
// ? this.mainFolder
|
|
26481
26480
|
// : directory?.dataItem?.id;
|
|
26482
26481
|
// this.selectedObject = fileSystemItem?.dataItem;
|
|
26483
|
-
_this.cancelableOperations[
|
|
26482
|
+
_this.cancelableOperations["createPopupVisible"] = true;
|
|
26484
26483
|
};
|
|
26485
26484
|
this.downloadFile = function () {
|
|
26486
26485
|
var _a, _b;
|
|
26487
26486
|
if (_this.multipleItems.length === 1) {
|
|
26488
|
-
window.open((_b = (_a = _this.multipleItems[0].dataItem) === null || _a === void 0 ? void 0 : _a.entity) === null || _b === void 0 ? void 0 : _b.properties[
|
|
26487
|
+
window.open((_b = (_a = _this.multipleItems[0].dataItem) === null || _a === void 0 ? void 0 : _a.entity) === null || _b === void 0 ? void 0 : _b.properties["file:content"].data, "blank");
|
|
26489
26488
|
}
|
|
26490
26489
|
else {
|
|
26491
26490
|
_this.multipleItems.forEach(function (item) {
|
|
26492
26491
|
var _a, _b;
|
|
26493
|
-
fetch((_b = (_a = item.dataItem) === null || _a === void 0 ? void 0 : _a.entity) === null || _b === void 0 ? void 0 : _b.properties[
|
|
26492
|
+
fetch((_b = (_a = item.dataItem) === null || _a === void 0 ? void 0 : _a.entity) === null || _b === void 0 ? void 0 : _b.properties["file:content"].data)
|
|
26494
26493
|
.then(function (res) { return res.blob(); })
|
|
26495
26494
|
.then(function (blob) {
|
|
26496
26495
|
FileSaver__namespace.saveAs(blob, item.name);
|
|
26497
26496
|
})
|
|
26498
|
-
.catch(function (err) { return _this.customToastrService.show(
|
|
26497
|
+
.catch(function (err) { return _this.customToastrService.show("error", "TOASTER.ERROR", "TOASTER.IMAGE_NOT_FOUND"); });
|
|
26499
26498
|
});
|
|
26500
26499
|
}
|
|
26501
26500
|
};
|
|
26502
26501
|
this.refresh = function () {
|
|
26503
26502
|
if (_this.myPageConfiguration.fileMangerObjectName ===
|
|
26504
|
-
|
|
26505
|
-
_this.fileManagerService.customEvent.emit(
|
|
26503
|
+
"externalshareFileMangerObj") {
|
|
26504
|
+
_this.fileManagerService.customEvent.emit("refresh");
|
|
26506
26505
|
}
|
|
26507
26506
|
else {
|
|
26508
26507
|
_this.reinitializeFolderTree(_this.getCurrentFolderId(_this.getCurrentDirectory()), _this.getCurrentDirectory());
|
|
@@ -26512,102 +26511,102 @@
|
|
|
26512
26511
|
_this.fileManagerService.addToQuickAccess(_this.selectedItems).subscribe(function (res) { return __awaiter(_this, void 0, void 0, function () {
|
|
26513
26512
|
return __generator(this, function (_q) {
|
|
26514
26513
|
this.reinitializeFolderTree(this.getCurrentFolderId(this.getCurrentDirectory()), this.getCurrentDirectory());
|
|
26515
|
-
this.myFileMangerInstance.option(
|
|
26516
|
-
this.customToastrService.show(
|
|
26514
|
+
this.myFileMangerInstance.option("toolbar.fileSelectionItems", []);
|
|
26515
|
+
this.customToastrService.show("success", "TOASTER.SUCCESS", "TOASTER.DOCUMENT_ADDED_TO_QUICK_ACCESS");
|
|
26517
26516
|
return [2 /*return*/];
|
|
26518
26517
|
});
|
|
26519
26518
|
}); }, function (err) {
|
|
26520
|
-
_this.customToastrService.show(
|
|
26519
|
+
_this.customToastrService.show("error", "TOASTER.ERROR", "TOASTER.DOCUMENT_ADDED_TO_QUICK_ACCESS_ERROR");
|
|
26521
26520
|
});
|
|
26522
26521
|
};
|
|
26523
26522
|
this.removeFromQuickAccess = function () {
|
|
26524
26523
|
_this.fileManagerService.removeFromQuickAccess(_this.selectedItems).subscribe(function (res) { return __awaiter(_this, void 0, void 0, function () {
|
|
26525
26524
|
return __generator(this, function (_q) {
|
|
26526
26525
|
this.reinitializeFolderTree(this.getCurrentFolderId(this.getCurrentDirectory()), this.getCurrentDirectory());
|
|
26527
|
-
this.myFileMangerInstance.option(
|
|
26528
|
-
this.customToastrService.show(
|
|
26526
|
+
this.myFileMangerInstance.option("toolbar.fileSelectionItems", []);
|
|
26527
|
+
this.customToastrService.show("success", "TOASTER.SUCCESS", "TOASTER.DOCUMENT_REMOVED_FROM_QUICK_ACCESS");
|
|
26529
26528
|
return [2 /*return*/];
|
|
26530
26529
|
});
|
|
26531
26530
|
}); }, function (err) {
|
|
26532
|
-
_this.customToastrService.show(
|
|
26531
|
+
_this.customToastrService.show("error", "TOASTER.ERROR", "TOASTER.DOCUMENT_REMOVED_FROM_QUICK_ACCESS_ERROR");
|
|
26533
26532
|
});
|
|
26534
26533
|
};
|
|
26535
26534
|
this.addToFavorites = function () {
|
|
26536
26535
|
_this.fileManagerService.addToFavorites(_this.selectedItems).subscribe(function (res) { return __awaiter(_this, void 0, void 0, function () {
|
|
26537
26536
|
return __generator(this, function (_q) {
|
|
26538
|
-
this.multiSelectedkeys = [
|
|
26537
|
+
this.multiSelectedkeys = [""];
|
|
26539
26538
|
this.reinitializeFolderTree(this.getCurrentFolderId(this.getCurrentDirectory()), this.getCurrentDirectory());
|
|
26540
|
-
this.customToastrService.show(
|
|
26539
|
+
this.customToastrService.show("success", "TOASTER.SUCCESS", "TOASTER.DOCUMENT_ADDED_TO_FAVORITES");
|
|
26541
26540
|
return [2 /*return*/];
|
|
26542
26541
|
});
|
|
26543
26542
|
}); }, function (err) {
|
|
26544
|
-
_this.customToastrService.show(
|
|
26543
|
+
_this.customToastrService.show("error", "TOASTER.ERROR", "TOASTER.DOCUMENT_ADDED_TO_FAVORITES_ERROR");
|
|
26545
26544
|
});
|
|
26546
26545
|
};
|
|
26547
26546
|
this.removeFromFavorites = function () {
|
|
26548
26547
|
_this.fileManagerService.removeFromFavorites(_this.selectedItems).subscribe(function (res) { return __awaiter(_this, void 0, void 0, function () {
|
|
26549
26548
|
return __generator(this, function (_q) {
|
|
26550
|
-
this.multiSelectedkeys = [
|
|
26549
|
+
this.multiSelectedkeys = [""];
|
|
26551
26550
|
this.reinitializeFolderTree(this.getCurrentFolderId(this.getCurrentDirectory()), this.getCurrentDirectory());
|
|
26552
|
-
this.customToastrService.show(
|
|
26551
|
+
this.customToastrService.show("success", "TOASTER.SUCCESS", "TOASTER.DOCUMENT_REMOVED_FROM_FAVORITES");
|
|
26553
26552
|
return [2 /*return*/];
|
|
26554
26553
|
});
|
|
26555
26554
|
}); }, function (err) {
|
|
26556
|
-
_this.customToastrService.show(
|
|
26555
|
+
_this.customToastrService.show("error", "TOASTER.ERROR", "TOASTER.DOCUMENT_REMOVED_FROM_FAVORITES_ERROR");
|
|
26557
26556
|
});
|
|
26558
26557
|
};
|
|
26559
26558
|
this.setSync = function () {
|
|
26560
26559
|
_this.fileManagerService.setSync(_this.selectedItems).subscribe(function (res) { return __awaiter(_this, void 0, void 0, function () {
|
|
26561
26560
|
return __generator(this, function (_q) {
|
|
26562
26561
|
this.reinitializeFolderTree(this.getCurrentFolderId(this.getCurrentDirectory()), this.getCurrentDirectory());
|
|
26563
|
-
this.myFileMangerInstance.option(
|
|
26564
|
-
this.customToastrService.show(
|
|
26562
|
+
this.myFileMangerInstance.option("toolbar.fileSelectionItems", []);
|
|
26563
|
+
this.customToastrService.show("success", "TOASTER.SUCCESS", "TOASTER.DOCUMENT_SYNCED");
|
|
26565
26564
|
return [2 /*return*/];
|
|
26566
26565
|
});
|
|
26567
26566
|
}); }, function (err) {
|
|
26568
|
-
_this.customToastrService.show(
|
|
26567
|
+
_this.customToastrService.show("error", "TOASTER.ERROR", "TOASTER.DOCUMENT_SYNCED_ERROR");
|
|
26569
26568
|
});
|
|
26570
26569
|
};
|
|
26571
26570
|
this.unsetSync = function () {
|
|
26572
26571
|
_this.fileManagerService.unSetSync(_this.selectedItems).subscribe(function (res) { return __awaiter(_this, void 0, void 0, function () {
|
|
26573
26572
|
return __generator(this, function (_q) {
|
|
26574
26573
|
this.reinitializeFolderTree(this.getCurrentFolderId(this.getCurrentDirectory()), this.getCurrentDirectory());
|
|
26575
|
-
this.myFileMangerInstance.option(
|
|
26576
|
-
this.customToastrService.show(
|
|
26574
|
+
this.myFileMangerInstance.option("toolbar.fileSelectionItems", []);
|
|
26575
|
+
this.customToastrService.show("success", "TOASTER.SUCCESS", "TOASTER.DOCUMENT_UNSYNCED");
|
|
26577
26576
|
return [2 /*return*/];
|
|
26578
26577
|
});
|
|
26579
26578
|
}); }, function (err) {
|
|
26580
|
-
_this.customToastrService.show(
|
|
26579
|
+
_this.customToastrService.show("error", "TOASTER.ERROR", "TOASTER.DOCUMENT_UNSYNCED_ERROR");
|
|
26581
26580
|
});
|
|
26582
26581
|
};
|
|
26583
26582
|
this.addToCollection = function () {
|
|
26584
|
-
_this.cancelableOperations[
|
|
26583
|
+
_this.cancelableOperations["addToCollectionPopupVisible"] = true;
|
|
26585
26584
|
};
|
|
26586
26585
|
this.subscribe_OR_unSubscribeToFile = function () {
|
|
26587
26586
|
_this.fileManagerService
|
|
26588
26587
|
.subscribe_OR_unSubscribeToItem(_this.selectedItem.entity, _this.selectedItem.isUserSubscriberToFile)
|
|
26589
26588
|
.subscribe(function (res) {
|
|
26590
26589
|
if (res) {
|
|
26591
|
-
var successMessage =
|
|
26590
|
+
var successMessage = "";
|
|
26592
26591
|
_this.selectedItem.isUserSubscriberToFile
|
|
26593
|
-
? (successMessage =
|
|
26594
|
-
: (successMessage =
|
|
26595
|
-
_this.customToastrService.show(
|
|
26592
|
+
? (successMessage = "unsubscribe_To_Item_success")
|
|
26593
|
+
: (successMessage = "subscribe_To_Item_success");
|
|
26594
|
+
_this.customToastrService.show("success", "TOASTER.SUCCESS", "TOASTER." + successMessage);
|
|
26596
26595
|
_this.selectedItem.isUserSubscriberToFile =
|
|
26597
26596
|
!_this.selectedItem.isUserSubscriberToFile;
|
|
26598
|
-
_this.multiSelectedkeys = [
|
|
26597
|
+
_this.multiSelectedkeys = [""];
|
|
26599
26598
|
}
|
|
26600
26599
|
}, function (err) {
|
|
26601
|
-
var failMessage =
|
|
26600
|
+
var failMessage = "";
|
|
26602
26601
|
_this.selectedItem.isUserSubscriberToFile
|
|
26603
|
-
? (failMessage =
|
|
26604
|
-
: (failMessage =
|
|
26605
|
-
_this.customToastrService.show(
|
|
26602
|
+
? (failMessage = "unsubscribe_To_Item_fail")
|
|
26603
|
+
: (failMessage = "subscribe_To_Item_fail");
|
|
26604
|
+
_this.customToastrService.show("error", "TOASTER.ERROR", "TOASTER." + failMessage);
|
|
26606
26605
|
});
|
|
26607
26606
|
};
|
|
26608
26607
|
this.downloadAsZip = function () {
|
|
26609
|
-
var arr = _this.selectedItems.split(
|
|
26610
|
-
var title =
|
|
26608
|
+
var arr = _this.selectedItems.split(",");
|
|
26609
|
+
var title = "";
|
|
26611
26610
|
if (arr.length === 1) {
|
|
26612
26611
|
title = _this.selectedItem.name;
|
|
26613
26612
|
}
|
|
@@ -26615,34 +26614,34 @@
|
|
|
26615
26614
|
};
|
|
26616
26615
|
this.moreDataForCreateModal = {};
|
|
26617
26616
|
this.openPublishModal = function () {
|
|
26618
|
-
var myType =
|
|
26617
|
+
var myType = "File";
|
|
26619
26618
|
if (_this.multipleItems.length > 1) {
|
|
26620
26619
|
var newSelectedWithArrPrefix_1 = [];
|
|
26621
|
-
_this.newSelectedWithIdPrefix =
|
|
26620
|
+
_this.newSelectedWithIdPrefix = "";
|
|
26622
26621
|
_this.multipleItems.map(function (item, index) {
|
|
26623
26622
|
index == 0
|
|
26624
26623
|
? newSelectedWithArrPrefix_1.push({
|
|
26625
|
-
type: item.isDirectory ?
|
|
26626
|
-
id:
|
|
26624
|
+
type: item.isDirectory ? "Folder" : "File",
|
|
26625
|
+
id: "docs:" + item.dataItem.id.toString(),
|
|
26627
26626
|
})
|
|
26628
26627
|
: newSelectedWithArrPrefix_1.push({
|
|
26629
|
-
type: item.isDirectory ?
|
|
26630
|
-
id: item.dataItem.id.toString()
|
|
26628
|
+
type: item.isDirectory ? "Folder" : "File",
|
|
26629
|
+
id: item.dataItem.id.toString(),
|
|
26631
26630
|
});
|
|
26632
26631
|
});
|
|
26633
26632
|
newSelectedWithArrPrefix_1.map(function (item, index) {
|
|
26634
26633
|
_this.newSelectedWithIdPrefix +=
|
|
26635
26634
|
index == newSelectedWithArrPrefix_1.length - 1
|
|
26636
26635
|
? item.id
|
|
26637
|
-
: item.id +
|
|
26638
|
-
item.type ==
|
|
26636
|
+
: item.id + ",";
|
|
26637
|
+
item.type == "Folder" ? (myType = "Folder") : null;
|
|
26639
26638
|
});
|
|
26640
26639
|
}
|
|
26641
26640
|
_this.nuxeoDialogService.open({
|
|
26642
26641
|
component: PublishDialogComponent,
|
|
26643
|
-
width:
|
|
26644
|
-
height:
|
|
26645
|
-
panelClass:
|
|
26642
|
+
width: "500px",
|
|
26643
|
+
height: "400px",
|
|
26644
|
+
panelClass: "watcher-dialog-container",
|
|
26646
26645
|
data: {
|
|
26647
26646
|
id: _this.multipleItems.length > 1
|
|
26648
26647
|
? _this.newSelectedWithIdPrefix
|
|
@@ -26650,13 +26649,13 @@
|
|
|
26650
26649
|
PublishType: _this.multipleItems.length > 1
|
|
26651
26650
|
? myType
|
|
26652
26651
|
: _this.selectedItem.isDirectory
|
|
26653
|
-
?
|
|
26654
|
-
:
|
|
26655
|
-
}
|
|
26652
|
+
? "Folder"
|
|
26653
|
+
: "File",
|
|
26654
|
+
},
|
|
26656
26655
|
});
|
|
26657
26656
|
};
|
|
26658
26657
|
this.addToClipboard = function () {
|
|
26659
|
-
var selectedItemsIds = _this.selectedItems.split(
|
|
26658
|
+
var selectedItemsIds = _this.selectedItems.split(",");
|
|
26660
26659
|
var directory = _this.getCurrentDirectory();
|
|
26661
26660
|
var id = directory.dataItem === undefined
|
|
26662
26661
|
? _this.mainFolder
|
|
@@ -26664,12 +26663,12 @@
|
|
|
26664
26663
|
if (selectedItemsIds.length === 1 &&
|
|
26665
26664
|
_this.clipboardItems.length > 0 &&
|
|
26666
26665
|
_this.clipboardItems.indexOf(selectedItemsIds[0]) > -1) {
|
|
26667
|
-
_this.customToastrService.show(
|
|
26666
|
+
_this.customToastrService.show("error", "TOASTER.ERROR", "TOASTER.item_already_added");
|
|
26668
26667
|
}
|
|
26669
26668
|
else {
|
|
26670
26669
|
_this.clipboardItems = _.union(_this.clipboardItems, selectedItemsIds);
|
|
26671
|
-
_this.userPreferenceService.set(
|
|
26672
|
-
_this.customToastrService.show(
|
|
26670
|
+
_this.userPreferenceService.set("clipboardItems", JSON.stringify(_this.clipboardItems));
|
|
26671
|
+
_this.customToastrService.show("success", "TOASTER.SUCCESS", "TOASTER.added_to_clipboard");
|
|
26673
26672
|
_this.reinitializeFolderTree(id, directory);
|
|
26674
26673
|
_this.fileManagerService.onRefreshClipboard.emit();
|
|
26675
26674
|
_this.showClipboard = true;
|
|
@@ -26679,18 +26678,18 @@
|
|
|
26679
26678
|
// -------------------------------------------------------------------------------------------------------------------------------------
|
|
26680
26679
|
this.customizeIcon = function (fileSystemItem) {
|
|
26681
26680
|
var _a, _b, _c;
|
|
26682
|
-
var thumb = _this.iconService.getFileIcon(fileSystemItem.dataItem.entity,
|
|
26681
|
+
var thumb = _this.iconService.getFileIcon(fileSystemItem.dataItem.entity, "document");
|
|
26683
26682
|
var isFavorite = (_a = fileSystemItem === null || fileSystemItem === void 0 ? void 0 : fileSystemItem.dataItem) === null || _a === void 0 ? void 0 : _a.isFavorite;
|
|
26684
|
-
var face = (_c = (_b = fileSystemItem === null || fileSystemItem === void 0 ? void 0 : fileSystemItem.dataItem) === null || _b === void 0 ? void 0 : _b.entity) === null || _c === void 0 ? void 0 : _c.properties[
|
|
26683
|
+
var face = (_c = (_b = fileSystemItem === null || fileSystemItem === void 0 ? void 0 : fileSystemItem.dataItem) === null || _b === void 0 ? void 0 : _b.entity) === null || _c === void 0 ? void 0 : _c.properties["ctimagga:faces"];
|
|
26685
26684
|
var isImaggaProccessed = !!(face && face.length);
|
|
26686
26685
|
return isFavorite
|
|
26687
|
-
? thumb + "?fav=1" + (isImaggaProccessed ?
|
|
26686
|
+
? thumb + "?fav=1" + (isImaggaProccessed ? "&imagga=1" : "")
|
|
26688
26687
|
: isImaggaProccessed
|
|
26689
26688
|
? thumb + "?imagga=1"
|
|
26690
26689
|
: thumb;
|
|
26691
26690
|
};
|
|
26692
26691
|
this.myPageConfName = myPageConfigurationName;
|
|
26693
|
-
this.mainFolder = environment[
|
|
26692
|
+
this.mainFolder = environment["mainFolder"];
|
|
26694
26693
|
this.cdRef = this.injectorObj.get(i0.ChangeDetectorRef);
|
|
26695
26694
|
this.permissionEvaluatorService = this.injectorObj.get(EvaluatorsService);
|
|
26696
26695
|
this.fileManagerService = this.injectorObj.get(FileManagerService);
|
|
@@ -26711,26 +26710,27 @@
|
|
|
26711
26710
|
this.route = this.injectorObj.get(i1$3.ActivatedRoute);
|
|
26712
26711
|
this.iconService = this.injectorObj.get(IconService);
|
|
26713
26712
|
this.nuxeoService = this.injectorObj.get(NuxeoService);
|
|
26714
|
-
this.
|
|
26713
|
+
this.nuxeoDialogService = this.injectorObj.get(NuxeoDialogService);
|
|
26714
|
+
this.multiSelectedkeys = [""];
|
|
26715
26715
|
this.myPageConfiguration =
|
|
26716
26716
|
this.appConfService.myConfiguration.fileManger[this.myPageConfName];
|
|
26717
26717
|
this.subscriptions.concat([
|
|
26718
26718
|
this.router.events.subscribe(function (event) {
|
|
26719
|
-
if (event.navigationTrigger ===
|
|
26720
|
-
var id = event.url.split(
|
|
26721
|
-
if (id && id.includes(
|
|
26722
|
-
id = id.split(
|
|
26719
|
+
if (event.navigationTrigger === "popstate") {
|
|
26720
|
+
var id = event.url.split("id=")[1];
|
|
26721
|
+
if (id && id.includes("fromSharedDocument")) {
|
|
26722
|
+
id = id.split("&")[0];
|
|
26723
26723
|
}
|
|
26724
26724
|
_this.getSelectedFolderTree(id);
|
|
26725
26725
|
}
|
|
26726
|
-
})
|
|
26726
|
+
}),
|
|
26727
26727
|
]);
|
|
26728
26728
|
}
|
|
26729
26729
|
FileManagerAbstract.prototype.clickout = function (event) {
|
|
26730
|
-
if ((event.srcElement.className ===
|
|
26731
|
-
event.srcElement.className ===
|
|
26730
|
+
if ((event.srcElement.className === "dx-scrollable-content" ||
|
|
26731
|
+
event.srcElement.className === "dx-scrollview-content") &&
|
|
26732
26732
|
this.isItemSelected) {
|
|
26733
|
-
this.multiSelectedkeys = [
|
|
26733
|
+
this.multiSelectedkeys = [""];
|
|
26734
26734
|
}
|
|
26735
26735
|
};
|
|
26736
26736
|
FileManagerAbstract.prototype.ngOnInit = function () {
|
|
@@ -26747,8 +26747,8 @@
|
|
|
26747
26747
|
else {
|
|
26748
26748
|
this.directory = {
|
|
26749
26749
|
contextParameters: {
|
|
26750
|
-
permissions: []
|
|
26751
|
-
}
|
|
26750
|
+
permissions: [],
|
|
26751
|
+
},
|
|
26752
26752
|
};
|
|
26753
26753
|
this.canCreate = this.myPageConfiguration.canCreatePermission.some(function (per) { return _this.directory.contextParameters.permissions.includes(per); });
|
|
26754
26754
|
}
|
|
@@ -26756,31 +26756,31 @@
|
|
|
26756
26756
|
this.translationService.isArabic.subscribe(function (res) {
|
|
26757
26757
|
_this.isArabic = res;
|
|
26758
26758
|
_this.isArabic
|
|
26759
|
-
? (_this.menuDirection =
|
|
26760
|
-
: (_this.menuDirection =
|
|
26761
|
-
})
|
|
26759
|
+
? (_this.menuDirection = "before")
|
|
26760
|
+
: (_this.menuDirection = "after");
|
|
26761
|
+
}),
|
|
26762
26762
|
]);
|
|
26763
26763
|
if (this.userPreferenceService) {
|
|
26764
26764
|
this.userPreferenceService
|
|
26765
26765
|
.select(exports.UserPreferenceValues.Locale)
|
|
26766
26766
|
.pipe(operators.takeUntil(this.onDestroy$))
|
|
26767
26767
|
.subscribe(function (locale) {
|
|
26768
|
-
_this.rtlEnabled = locale ===
|
|
26768
|
+
_this.rtlEnabled = locale === "ar" ? true : false;
|
|
26769
26769
|
});
|
|
26770
26770
|
}
|
|
26771
|
-
if (this.route.snapshot.queryParams[
|
|
26772
|
-
if (this.route.snapshot.queryParams[
|
|
26771
|
+
if (this.route.snapshot.queryParams["fromSharedDocument"]) {
|
|
26772
|
+
if (this.route.snapshot.queryParams["id"] === "sharedDocumentsRoot") {
|
|
26773
26773
|
this.init(this.mainFolder);
|
|
26774
26774
|
}
|
|
26775
26775
|
else {
|
|
26776
|
-
this.getSelectedFolderTree(this.route.snapshot.queryParams[
|
|
26776
|
+
this.getSelectedFolderTree(this.route.snapshot.queryParams["id"]);
|
|
26777
26777
|
}
|
|
26778
26778
|
}
|
|
26779
26779
|
else {
|
|
26780
26780
|
var URL_ID = void 0;
|
|
26781
26781
|
try {
|
|
26782
|
-
URL_ID = this.route.snapshot.queryParams[
|
|
26783
|
-
? this.route.snapshot.queryParams[
|
|
26782
|
+
URL_ID = this.route.snapshot.queryParams["id"]
|
|
26783
|
+
? this.route.snapshot.queryParams["id"]
|
|
26784
26784
|
: this.userPreferenceService.hasItem(this.myPageConfiguration.trackedIdPropertyName)
|
|
26785
26785
|
? JSON.parse(this.userPreferenceService.get(this.myPageConfiguration.trackedIdPropertyName))
|
|
26786
26786
|
: null;
|
|
@@ -26800,7 +26800,7 @@
|
|
|
26800
26800
|
this.fileManagerService.onRefreshingFileManger.subscribe(function (res) {
|
|
26801
26801
|
var directory = _this.getCurrentDirectory();
|
|
26802
26802
|
_this.reinitializeFolderTree(_this.fileManagerService.selectedFolderId, directory);
|
|
26803
|
-
})
|
|
26803
|
+
}),
|
|
26804
26804
|
]);
|
|
26805
26805
|
};
|
|
26806
26806
|
FileManagerAbstract.prototype.ngAfterViewChecked = function () {
|
|
@@ -26813,27 +26813,27 @@
|
|
|
26813
26813
|
}
|
|
26814
26814
|
};
|
|
26815
26815
|
this.fileManager.instance._breadcrumbs._currentDirectory.fileItem
|
|
26816
|
-
.path ===
|
|
26816
|
+
.path === ""
|
|
26817
26817
|
? document
|
|
26818
|
-
.getElementsByClassName(
|
|
26819
|
-
.classList.add(
|
|
26820
|
-
:
|
|
26818
|
+
.getElementsByClassName("dx-menu-item-content")[0]
|
|
26819
|
+
.classList.add("custom")
|
|
26820
|
+
: "";
|
|
26821
26821
|
};
|
|
26822
26822
|
FileManagerAbstract.prototype.init = function (id, breadcrumbs, currentFolder) {
|
|
26823
26823
|
var _this = this;
|
|
26824
26824
|
if (breadcrumbs === void 0) { breadcrumbs = null; }
|
|
26825
26825
|
if (currentFolder === void 0) { currentFolder = null; }
|
|
26826
26826
|
var payload = {
|
|
26827
|
-
currentPageIndex: 0
|
|
26827
|
+
currentPageIndex: 0,
|
|
26828
26828
|
};
|
|
26829
26829
|
if (breadcrumbs) {
|
|
26830
26830
|
this.expandComp(this.getFolderChildren(id, payload), breadcrumbs, currentFolder).subscribe(function (d) {
|
|
26831
26831
|
var _a, _b, _c;
|
|
26832
26832
|
var toSubstr;
|
|
26833
|
-
if (_this.mainFolder ===
|
|
26833
|
+
if (_this.mainFolder === "sharedDocumentsRoot") {
|
|
26834
26834
|
toSubstr = _this.fileManagerService.sharedFiles.entries.filter(function (item) { return _this.path.includes(item.contextParameters.breadcrumb.entries
|
|
26835
26835
|
.map(function (item) { return item.title; })
|
|
26836
|
-
.join(
|
|
26836
|
+
.join("/")); });
|
|
26837
26837
|
var pathSplit = (_a = toSubstr[0]) === null || _a === void 0 ? void 0 : _a.contextParameters.breadcrumb.entries.map(function (item) { return item.title; });
|
|
26838
26838
|
_this.currentPath = pathSplit[pathSplit.length - 1];
|
|
26839
26839
|
}
|
|
@@ -26852,7 +26852,7 @@
|
|
|
26852
26852
|
else {
|
|
26853
26853
|
toSubstr = _this.fileManagerObj.entries.filter(function (item) { return _this.path.includes(item.contextParameters.breadcrumb.entries
|
|
26854
26854
|
.map(function (item) { return item.title; })
|
|
26855
|
-
.join(
|
|
26855
|
+
.join("/")); });
|
|
26856
26856
|
var pathSplit = (_b = toSubstr[0]) === null || _b === void 0 ? void 0 : _b.contextParameters.breadcrumb.entries.map(function (item) { return item.title; });
|
|
26857
26857
|
var x = pathSplit ? (_c = pathSplit[0]) === null || _c === void 0 ? void 0 : _c.length : 0;
|
|
26858
26858
|
_this.currentPath = _this.path.substr(x);
|
|
@@ -26892,11 +26892,11 @@
|
|
|
26892
26892
|
if (!payload)
|
|
26893
26893
|
__classPrivateFieldGet(this, _FileManagerAbstract_instances, "m", _FileManagerAbstract_resetPagination).call(this, id);
|
|
26894
26894
|
if (!showLoading) {
|
|
26895
|
-
(_a = document.querySelector(
|
|
26895
|
+
(_a = document.querySelector(".dx-loadpanel-wrapper")) === null || _a === void 0 ? void 0 : _a.remove();
|
|
26896
26896
|
}
|
|
26897
26897
|
this.clicked = showLoading;
|
|
26898
26898
|
this.cdRef.detectChanges();
|
|
26899
|
-
return (id ==
|
|
26899
|
+
return (id == "sharedDocumentsRoot"
|
|
26900
26900
|
? this.fileManagerService.getChildrenForSharedDocumentRoot(id, payload, loadFolders)
|
|
26901
26901
|
: this.fileManagerService.getChildren(id, payload, loadFolders)).pipe(operators.map(function (result) {
|
|
26902
26902
|
__classPrivateFieldGet(_this, _FileManagerAbstract_instances, "m", _FileManagerAbstract_initPagination).call(_this, id, result);
|
|
@@ -26912,13 +26912,13 @@
|
|
|
26912
26912
|
var _this = this;
|
|
26913
26913
|
if (indexNextNode === void 0) { indexNextNode = 1; }
|
|
26914
26914
|
var payload = {
|
|
26915
|
-
currentPageIndex: 0
|
|
26915
|
+
currentPageIndex: 0,
|
|
26916
26916
|
};
|
|
26917
26917
|
return entries.pipe(operators.mergeMap(function (entries) { return rxjs.from(entries).pipe(operators.mergeMap(function (entry) {
|
|
26918
26918
|
var nextNode = entries.find(function (q) { return q.id == breadcrumbs[indexNextNode]; });
|
|
26919
26919
|
// if not exist will loaded otherwise keep everyting as will
|
|
26920
26920
|
if (breadcrumbs.includes(entry.id)) {
|
|
26921
|
-
return rxjs.concat(rxjs.of(entry).pipe(operators.tap(function (ent) { return (ent[
|
|
26921
|
+
return rxjs.concat(rxjs.of(entry).pipe(operators.tap(function (ent) { return (ent["items"] = []); })), _this.expandComp(_this.getFolderChildren(entry.id, payload), breadcrumbs, indexNextNode++)).pipe(operators.reduce(function (parent, children) {
|
|
26922
26922
|
parent.items = children;
|
|
26923
26923
|
return parent;
|
|
26924
26924
|
}));
|
|
@@ -26947,7 +26947,7 @@
|
|
|
26947
26947
|
this.fileManager.instance._filesTreeView._filesTreeView._createLoadIndicator($node);
|
|
26948
26948
|
}
|
|
26949
26949
|
payload = {
|
|
26950
|
-
currentPageIndex: 0
|
|
26950
|
+
currentPageIndex: 0,
|
|
26951
26951
|
};
|
|
26952
26952
|
if (!(directory.dataItem === undefined)) return [3 /*break*/, 1];
|
|
26953
26953
|
__classPrivateFieldGet(this, _FileManagerAbstract_instances, "m", _FileManagerAbstract_resetPagination).call(this, this.mainFolder);
|
|
@@ -26997,18 +26997,18 @@
|
|
|
26997
26997
|
if (this.itemListView) {
|
|
26998
26998
|
if ((data === null || data === void 0 ? void 0 : data.length) === 0) {
|
|
26999
26999
|
(_a = document
|
|
27000
|
-
.getElementsByClassName(
|
|
27000
|
+
.getElementsByClassName("dx-filemanager-thumbnails-view-port")[0]) === null || _a === void 0 ? void 0 : _a.classList.add("empty-collection");
|
|
27001
27001
|
}
|
|
27002
27002
|
else {
|
|
27003
27003
|
(_b = document
|
|
27004
|
-
.getElementsByClassName(
|
|
27004
|
+
.getElementsByClassName("dx-filemanager-thumbnails-view-port")[0]) === null || _b === void 0 ? void 0 : _b.classList.remove("empty-collection");
|
|
27005
27005
|
}
|
|
27006
27006
|
}
|
|
27007
27007
|
else {
|
|
27008
27008
|
if ((data === null || data === void 0 ? void 0 : data.length) === 0) {
|
|
27009
|
-
var dataGridElement = document.getElementsByClassName(
|
|
27009
|
+
var dataGridElement = document.getElementsByClassName("dx-datagrid-nodata")[0];
|
|
27010
27010
|
if (dataGridElement)
|
|
27011
|
-
dataGridElement.classList.remove(
|
|
27011
|
+
dataGridElement.classList.remove("empty");
|
|
27012
27012
|
}
|
|
27013
27013
|
}
|
|
27014
27014
|
};
|
|
@@ -27033,11 +27033,11 @@
|
|
|
27033
27033
|
else {
|
|
27034
27034
|
this.path = res.contextParameters.breadcrumb.entries
|
|
27035
27035
|
.map(function (item) { return item.title; })
|
|
27036
|
-
.join(
|
|
27036
|
+
.join("/");
|
|
27037
27037
|
}
|
|
27038
|
-
if (this.route.snapshot.queryParams[
|
|
27038
|
+
if (this.route.snapshot.queryParams["fromSharedDocument"]) {
|
|
27039
27039
|
res.contextParameters.breadcrumb.entries = __spreadArray([
|
|
27040
|
-
{ uid:
|
|
27040
|
+
{ uid: "sharedDocumentsRoot" }
|
|
27041
27041
|
], __read(res.contextParameters.breadcrumb.entries));
|
|
27042
27042
|
}
|
|
27043
27043
|
else {
|
|
@@ -27049,7 +27049,7 @@
|
|
|
27049
27049
|
}
|
|
27050
27050
|
}
|
|
27051
27051
|
breadcrumbs = res.contextParameters.breadcrumb.entries.map(function (item) { return item.uid; });
|
|
27052
|
-
if (this.mainFolder !==
|
|
27052
|
+
if (this.mainFolder !== "sharedDocumentsRoot") {
|
|
27053
27053
|
breadcrumbs.splice(breadcrumbs.indexOf(id), 1);
|
|
27054
27054
|
}
|
|
27055
27055
|
this.init(this.mainFolder, breadcrumbs, res);
|
|
@@ -27060,17 +27060,17 @@
|
|
|
27060
27060
|
FileManagerAbstract.prototype.openUpdateModal = function () {
|
|
27061
27061
|
this.nuxeoDialogService.open({
|
|
27062
27062
|
component: UpdateModalComponent,
|
|
27063
|
-
width:
|
|
27064
|
-
height:
|
|
27065
|
-
panelClass:
|
|
27063
|
+
width: "40%",
|
|
27064
|
+
height: "70%",
|
|
27065
|
+
panelClass: "watcher-dialog-container",
|
|
27066
27066
|
data: {
|
|
27067
27067
|
id: this.selectedItem.id,
|
|
27068
27068
|
type: this.selectedItem.entity.type,
|
|
27069
|
-
code: this.selectedItem.entity.properties[
|
|
27070
|
-
? this.selectedItem.entity.properties[
|
|
27069
|
+
code: this.selectedItem.entity.properties["gdoc:documentTypeCode"]
|
|
27070
|
+
? this.selectedItem.entity.properties["gdoc:documentTypeCode"]
|
|
27071
27071
|
: this.selectedItem.entity.type,
|
|
27072
|
-
isDirectory: this.selectedItem.isDirectory
|
|
27073
|
-
}
|
|
27072
|
+
isDirectory: this.selectedItem.isDirectory,
|
|
27073
|
+
},
|
|
27074
27074
|
});
|
|
27075
27075
|
};
|
|
27076
27076
|
FileManagerAbstract.prototype.getSelectedItem = function (directory) {
|
|
@@ -27084,7 +27084,7 @@
|
|
|
27084
27084
|
return items.map(function (item) {
|
|
27085
27085
|
var parsed = Object.assign({}, item);
|
|
27086
27086
|
if (parsed.visibleEvaluator &&
|
|
27087
|
-
typeof parsed.visibleEvaluator ==
|
|
27087
|
+
typeof parsed.visibleEvaluator == "function") {
|
|
27088
27088
|
parsed.visible = parsed.visibleEvaluator();
|
|
27089
27089
|
}
|
|
27090
27090
|
return parsed;
|
|
@@ -27117,8 +27117,8 @@
|
|
|
27117
27117
|
this.selectedItemsObjects = this.fileManager.instance.getSelectedItems();
|
|
27118
27118
|
if (this.selectedItem) {
|
|
27119
27119
|
e.component._filesTreeView.refresh();
|
|
27120
|
-
this.myFileMangerInstance.option(
|
|
27121
|
-
this.myFileMangerInstance.option(
|
|
27120
|
+
this.myFileMangerInstance.option("contextMenu.items", this.contextItemsParser(this.contextMenuItems));
|
|
27121
|
+
this.myFileMangerInstance.option("toolbar.fileSelectionItems", this.contextItemsParser(this.toolbarItems));
|
|
27122
27122
|
if (this.showDetails) {
|
|
27123
27123
|
this.openSideMenuDetails();
|
|
27124
27124
|
}
|
|
@@ -27133,31 +27133,31 @@
|
|
|
27133
27133
|
var _this = this;
|
|
27134
27134
|
// this.showDetails = false; // hide side menu details when right click
|
|
27135
27135
|
var directory = this.getCurrentDirectory();
|
|
27136
|
-
if (e.viewArea ===
|
|
27136
|
+
if (e.viewArea === "itemView" && !this.isItemSelected) {
|
|
27137
27137
|
if (this.myPageConfiguration.showAddFolderInContextMenu) {
|
|
27138
|
-
this.myFileMangerInstance.option(
|
|
27138
|
+
this.myFileMangerInstance.option("contextMenu.items", [
|
|
27139
27139
|
{
|
|
27140
|
-
name:
|
|
27141
|
-
text: this.isArabic ?
|
|
27140
|
+
name: "create_folder",
|
|
27141
|
+
text: this.isArabic ? "مجلد جديد" : "New Directory",
|
|
27142
27142
|
action: this.createFolder,
|
|
27143
27143
|
visibleEvaluator: function () {
|
|
27144
27144
|
return (_this.selectedItem.isDirectory &&
|
|
27145
27145
|
_this.selectedItemLength &&
|
|
27146
27146
|
_this.selectedItem.canCreate);
|
|
27147
|
-
}
|
|
27148
|
-
}
|
|
27147
|
+
},
|
|
27148
|
+
},
|
|
27149
27149
|
]);
|
|
27150
27150
|
}
|
|
27151
|
-
this.myFileMangerInstance.option(
|
|
27151
|
+
this.myFileMangerInstance.option("contextMenu.items", [
|
|
27152
27152
|
{
|
|
27153
|
-
name:
|
|
27153
|
+
name: "refresh",
|
|
27154
27154
|
action: this.refresh,
|
|
27155
|
-
text: this.isArabic ?
|
|
27156
|
-
icon:
|
|
27157
|
-
}
|
|
27155
|
+
text: this.isArabic ? "تحديث" : "Refresh",
|
|
27156
|
+
icon: "",
|
|
27157
|
+
},
|
|
27158
27158
|
]);
|
|
27159
27159
|
}
|
|
27160
|
-
if (e.viewArea ===
|
|
27160
|
+
if (e.viewArea === "navPane") {
|
|
27161
27161
|
e.cancel = true;
|
|
27162
27162
|
}
|
|
27163
27163
|
};
|
|
@@ -27166,7 +27166,7 @@
|
|
|
27166
27166
|
var _a;
|
|
27167
27167
|
var selectedItem = this.fileManager.instance.getSelectedItems();
|
|
27168
27168
|
this.itemToDisplay =
|
|
27169
|
-
viewArea ===
|
|
27169
|
+
viewArea === "navPane"
|
|
27170
27170
|
? fileSystemItem.dataItem
|
|
27171
27171
|
: (_a = selectedItem[0]) === null || _a === void 0 ? void 0 : _a.dataItem;
|
|
27172
27172
|
var directory = this.getCurrentDirectory();
|
|
@@ -27200,7 +27200,7 @@
|
|
|
27200
27200
|
return __generator(this, function (_r) {
|
|
27201
27201
|
switch (_r.label) {
|
|
27202
27202
|
case 0:
|
|
27203
|
-
console.log(
|
|
27203
|
+
console.log("onItemClicked");
|
|
27204
27204
|
this.clicked = true;
|
|
27205
27205
|
this.cdRef.detectChanges();
|
|
27206
27206
|
this.resetFoldersSubscription();
|
|
@@ -27208,7 +27208,7 @@
|
|
|
27208
27208
|
this.showDgdaClipboard = false;
|
|
27209
27209
|
this.selectedFolderPath = (_b = (_a = e.directory.dataItem) === null || _a === void 0 ? void 0 : _a.entity) === null || _b === void 0 ? void 0 : _b.path;
|
|
27210
27210
|
if (((_c = e.directory.dataItem) === null || _c === void 0 ? void 0 : _c.id) === undefined) {
|
|
27211
|
-
if (this.mainFolder ===
|
|
27211
|
+
if (this.mainFolder === "sharedDocumentsRoot") {
|
|
27212
27212
|
this.fileManagerService
|
|
27213
27213
|
.getChildrenForSharedDocumentRoot(this.mainFolder)
|
|
27214
27214
|
.subscribe(function (data) {
|
|
@@ -27229,18 +27229,18 @@
|
|
|
27229
27229
|
}
|
|
27230
27230
|
this.myCurrecntFolderData = ((_d = e.directory.dataItem) === null || _d === void 0 ? void 0 : _d.id)
|
|
27231
27231
|
? e.directory.dataItem
|
|
27232
|
-
: this.mainFolder ===
|
|
27233
|
-
?
|
|
27232
|
+
: this.mainFolder === "sharedDocumentsRoot"
|
|
27233
|
+
? "sharedDocumentsRoot"
|
|
27234
27234
|
: this.myPageConfiguration.rootName;
|
|
27235
27235
|
this.permissionEvaluatorService
|
|
27236
|
-
.evaluateRule(
|
|
27237
|
-
entity: this.myCurrecntFolderData.entity
|
|
27236
|
+
.evaluateRule("canCreateNewFolderTemplates", {
|
|
27237
|
+
entity: this.myCurrecntFolderData.entity,
|
|
27238
27238
|
})
|
|
27239
27239
|
.then(function (res) {
|
|
27240
27240
|
_this.showfolderTemplates = res;
|
|
27241
27241
|
});
|
|
27242
27242
|
// if not coming from shared document then save the id to track it
|
|
27243
|
-
if (this.mainFolder !==
|
|
27243
|
+
if (this.mainFolder !== "sharedDocumentsRoot") {
|
|
27244
27244
|
if ((_f = (_e = e.directory) === null || _e === void 0 ? void 0 : _e.dataItem) === null || _f === void 0 ? void 0 : _f.id) {
|
|
27245
27245
|
this.userPreferenceService.set(this.myPageConfiguration.trackedIdPropertyName, JSON.stringify((_h = (_g = e.directory) === null || _g === void 0 ? void 0 : _g.dataItem) === null || _h === void 0 ? void 0 : _h.id));
|
|
27246
27246
|
}
|
|
@@ -27251,38 +27251,38 @@
|
|
|
27251
27251
|
this.itemListView = e.component._itemView._itemList;
|
|
27252
27252
|
if (this.itemListView) {
|
|
27253
27253
|
document
|
|
27254
|
-
.getElementsByClassName(
|
|
27255
|
-
.classList.remove(
|
|
27254
|
+
.getElementsByClassName("dx-filemanager-thumbnails-view-port")[0]
|
|
27255
|
+
.classList.remove("empty-collection");
|
|
27256
27256
|
}
|
|
27257
27257
|
else {
|
|
27258
|
-
loadPanelElement = document.getElementsByClassName(
|
|
27259
|
-
dataGridElement = document.getElementsByClassName(
|
|
27258
|
+
loadPanelElement = document.getElementsByClassName("dx-loadpanel-content")[0];
|
|
27259
|
+
dataGridElement = document.getElementsByClassName("dx-datagrid-nodata")[0];
|
|
27260
27260
|
if (loadPanelElement && dataGridElement) {
|
|
27261
|
-
loadPanelElement.classList.add(
|
|
27262
|
-
dataGridElement.classList.add(
|
|
27261
|
+
loadPanelElement.classList.add("hide-loadpanel");
|
|
27262
|
+
dataGridElement.classList.add("empty");
|
|
27263
27263
|
}
|
|
27264
27264
|
}
|
|
27265
|
-
elem = ((_j = e === null || e === void 0 ? void 0 : e.directory) === null || _j === void 0 ? void 0 : _j.path) ===
|
|
27265
|
+
elem = ((_j = e === null || e === void 0 ? void 0 : e.directory) === null || _j === void 0 ? void 0 : _j.path) === ""
|
|
27266
27266
|
? document
|
|
27267
|
-
.getElementsByClassName(
|
|
27268
|
-
.classList.add(
|
|
27269
|
-
:
|
|
27267
|
+
.getElementsByClassName("dx-menu-item-content")[0]
|
|
27268
|
+
.classList.add("custom")
|
|
27269
|
+
: "";
|
|
27270
27270
|
id = (_l = (_k = e === null || e === void 0 ? void 0 : e.directory) === null || _k === void 0 ? void 0 : _k.dataItem) === null || _l === void 0 ? void 0 : _l.id;
|
|
27271
27271
|
this.fileManagerService.selectedFolderId =
|
|
27272
27272
|
(e === null || e === void 0 ? void 0 : e.directory) && ((_m = e === null || e === void 0 ? void 0 : e.directory) === null || _m === void 0 ? void 0 : _m.dataItem) ? id : this.mainFolder;
|
|
27273
27273
|
queryParams = {
|
|
27274
|
-
id: (e === null || e === void 0 ? void 0 : e.directory) && ((_o = e === null || e === void 0 ? void 0 : e.directory) === null || _o === void 0 ? void 0 : _o.dataItem) ? id : this.mainFolder
|
|
27274
|
+
id: (e === null || e === void 0 ? void 0 : e.directory) && ((_o = e === null || e === void 0 ? void 0 : e.directory) === null || _o === void 0 ? void 0 : _o.dataItem) ? id : this.mainFolder,
|
|
27275
27275
|
};
|
|
27276
27276
|
_.each(this.fileManager.instance._filesTreeView._filesTreeView._dataAdapter.getExpandedNodesKeys(), function (key) {
|
|
27277
27277
|
if (key.includes(e.directory.path) &&
|
|
27278
|
-
key.replace(
|
|
27278
|
+
key.replace("FIK_", "") !== e.directory.path) {
|
|
27279
27279
|
_this.fileManager.instance._filesTreeView._filesTreeView._toggleExpandedState(key, false);
|
|
27280
27280
|
}
|
|
27281
27281
|
});
|
|
27282
27282
|
this.router.navigate([], {
|
|
27283
27283
|
relativeTo: this.route,
|
|
27284
27284
|
queryParams: queryParams,
|
|
27285
|
-
queryParamsHandling:
|
|
27285
|
+
queryParamsHandling: "merge", // remove to replace all query params by provided
|
|
27286
27286
|
});
|
|
27287
27287
|
if (!(id !== undefined && e && ((_p = e === null || e === void 0 ? void 0 : e.directory) === null || _p === void 0 ? void 0 : _p.dataItem))) return [3 /*break*/, 4];
|
|
27288
27288
|
try {
|
|
@@ -27293,11 +27293,11 @@
|
|
|
27293
27293
|
// )}"]`
|
|
27294
27294
|
// ) as HTMLElement
|
|
27295
27295
|
// ).style.pointerEvents = 'none';
|
|
27296
|
-
document.querySelector("[data-item-id=\"FIK_" + encodeURI(e.directory.path) + "\"]").style.pointerEvents =
|
|
27296
|
+
document.querySelector("[data-item-id=\"FIK_" + encodeURI(e.directory.path) + "\"]").style.pointerEvents = "none";
|
|
27297
27297
|
}
|
|
27298
27298
|
catch (e) { }
|
|
27299
27299
|
payload = {
|
|
27300
|
-
currentPageIndex: 0
|
|
27300
|
+
currentPageIndex: 0,
|
|
27301
27301
|
};
|
|
27302
27302
|
if (!!e.directory.dataItem.isReady) return [3 /*break*/, 2];
|
|
27303
27303
|
return [4 /*yield*/, this.fileManagerService
|
|
@@ -27322,13 +27322,13 @@
|
|
|
27322
27322
|
// )}"]`
|
|
27323
27323
|
// ) as HTMLElement
|
|
27324
27324
|
// ).style.pointerEvents = 'all';
|
|
27325
|
-
document.querySelector("[data-item-id=\"FIK_" + encodeURI(e.directory.path) + "\"]").style.pointerEvents =
|
|
27325
|
+
document.querySelector("[data-item-id=\"FIK_" + encodeURI(e.directory.path) + "\"]").style.pointerEvents = "all";
|
|
27326
27326
|
}
|
|
27327
27327
|
catch (e) { }
|
|
27328
27328
|
if (!this.itemListView) {
|
|
27329
27329
|
document
|
|
27330
|
-
.getElementsByClassName(
|
|
27331
|
-
.classList.remove(
|
|
27330
|
+
.getElementsByClassName("dx-loadpanel-content")[0]
|
|
27331
|
+
.classList.remove("hide-loadpanel");
|
|
27332
27332
|
}
|
|
27333
27333
|
_r.label = 4;
|
|
27334
27334
|
case 4:
|
|
@@ -27349,26 +27349,26 @@
|
|
|
27349
27349
|
if (this.dialogMangmentService.minizedModal) {
|
|
27350
27350
|
var dialogRef = this.nuxeoDialogService.open({
|
|
27351
27351
|
component: ConfirmationDialogComponent,
|
|
27352
|
-
width:
|
|
27352
|
+
width: "510px",
|
|
27353
27353
|
data: {
|
|
27354
|
-
title:
|
|
27355
|
-
message:
|
|
27354
|
+
title: "createFileInProgressTitle",
|
|
27355
|
+
message: "createFileInProgress",
|
|
27356
27356
|
confirmButton: "BUTTONS.Yes",
|
|
27357
|
-
cancelButton:
|
|
27358
|
-
}
|
|
27357
|
+
cancelButton: "BUTTONS.No",
|
|
27358
|
+
},
|
|
27359
27359
|
});
|
|
27360
27360
|
dialogRef.afterClosed().subscribe(function (res) {
|
|
27361
27361
|
if (res) {
|
|
27362
|
-
if (_this.dialogMangmentService.creationMode ===
|
|
27363
|
-
_this.dialogMangmentService.openMinimzedModal(CreateModalComponent,
|
|
27362
|
+
if (_this.dialogMangmentService.creationMode === "upload") {
|
|
27363
|
+
_this.dialogMangmentService.openMinimzedModal(CreateModalComponent, "70%", "85%", !_this.myPageConfiguration.isStaticRoot
|
|
27364
27364
|
? _this.selectedFolderPath
|
|
27365
|
-
:
|
|
27365
|
+
: "" // send path in case of file list or other page with none static root and not send it in case of my files or any other page with static root
|
|
27366
27366
|
);
|
|
27367
27367
|
}
|
|
27368
|
-
else if (_this.dialogMangmentService.creationMode ===
|
|
27369
|
-
_this.dialogMangmentService.openMinimzedModal(ScanModalComponent,
|
|
27368
|
+
else if (_this.dialogMangmentService.creationMode === "scan") {
|
|
27369
|
+
_this.dialogMangmentService.openMinimzedModal(ScanModalComponent, "90%", "90%", !_this.myPageConfiguration.isStaticRoot
|
|
27370
27370
|
? _this.selectedFolderPath
|
|
27371
|
-
:
|
|
27371
|
+
: "" // send path in case of file list or other page with none static root and not send it in case of my files or any other page with static root
|
|
27372
27372
|
);
|
|
27373
27373
|
}
|
|
27374
27374
|
}
|
|
@@ -27388,7 +27388,7 @@
|
|
|
27388
27388
|
_this.openCreationTypeDialog(fileType);
|
|
27389
27389
|
}
|
|
27390
27390
|
else {
|
|
27391
|
-
_this.customToastrService.show(
|
|
27391
|
+
_this.customToastrService.show("notification", "No Form", "Administrator Must Set File Form First");
|
|
27392
27392
|
}
|
|
27393
27393
|
});
|
|
27394
27394
|
}
|
|
@@ -27397,61 +27397,61 @@
|
|
|
27397
27397
|
var _this = this;
|
|
27398
27398
|
var creationDialogRef = this.nuxeoDialogService.open({
|
|
27399
27399
|
component: CreationTypeComponent,
|
|
27400
|
-
width:
|
|
27401
|
-
height:
|
|
27402
|
-
panelClass:
|
|
27403
|
-
data: {}
|
|
27400
|
+
width: "500px",
|
|
27401
|
+
height: "300px",
|
|
27402
|
+
panelClass: "watcher-dialog-container",
|
|
27403
|
+
data: {},
|
|
27404
27404
|
//TODO
|
|
27405
27405
|
//disableClose: true
|
|
27406
27406
|
});
|
|
27407
27407
|
creationDialogRef.afterClosed().subscribe(function (res) {
|
|
27408
27408
|
// if there was a minimied scan modal and he want to open another modal then reset for saved scanned modal
|
|
27409
|
-
if (_this.documentScanService.storedFile && res !==
|
|
27409
|
+
if (_this.documentScanService.storedFile && res !== "") {
|
|
27410
27410
|
_this.documentScanService.storedFile = {};
|
|
27411
27411
|
}
|
|
27412
|
-
if (res ===
|
|
27413
|
-
_this.openDialog(CreateModalComponent, fileType,
|
|
27412
|
+
if (res === "upload") {
|
|
27413
|
+
_this.openDialog(CreateModalComponent, fileType, "upload", "70%", "85%", !_this.myPageConfiguration.isStaticRoot ? _this.selectedFolderPath : "" // send path in case of file list or other page with none static root and not send it in case of my files or any other page with static root
|
|
27414
27414
|
);
|
|
27415
27415
|
}
|
|
27416
|
-
else if (res ===
|
|
27417
|
-
_this.openDialog(ScanModalComponent, fileType,
|
|
27416
|
+
else if (res === "scan") {
|
|
27417
|
+
_this.openDialog(ScanModalComponent, fileType, "scan", "90%", "90%", !_this.myPageConfiguration.isStaticRoot ? _this.selectedFolderPath : "" // send path in case of file list or other page with none static root and not send it in case of my files or any other page with static root
|
|
27418
27418
|
);
|
|
27419
27419
|
}
|
|
27420
|
-
else if (res ===
|
|
27421
|
-
_this.openDialog(TemplateModalComponent, fileType.type,
|
|
27420
|
+
else if (res === "template") {
|
|
27421
|
+
_this.openDialog(TemplateModalComponent, fileType.type, "scan", "70%", "85%");
|
|
27422
27422
|
}
|
|
27423
27423
|
});
|
|
27424
27424
|
};
|
|
27425
27425
|
FileManagerAbstract.prototype.openDialog = function (component, fileType, creationMode, width, height, path) {
|
|
27426
|
-
var obj = Object.assign(Object.assign({}, this.moreDataForCreateModal), { path: path ||
|
|
27426
|
+
var obj = Object.assign(Object.assign({}, this.moreDataForCreateModal), { path: path || "" });
|
|
27427
27427
|
this.uploadMangmentService.resetStatus();
|
|
27428
|
-
this.dialogMangmentService.openModal(component, fileType, creationMode,
|
|
27428
|
+
this.dialogMangmentService.openModal(component, fileType, creationMode, "fileManger", width, height, obj);
|
|
27429
27429
|
};
|
|
27430
27430
|
FileManagerAbstract.prototype.checkForCreateNewFolder = function (folderType) {
|
|
27431
27431
|
var _this = this;
|
|
27432
27432
|
if (this.dialogMangmentService.minizedModal) {
|
|
27433
27433
|
var dialogRef = this.nuxeoDialogService.open({
|
|
27434
27434
|
component: ConfirmationDialogComponent,
|
|
27435
|
-
width:
|
|
27435
|
+
width: "510px",
|
|
27436
27436
|
data: {
|
|
27437
|
-
title:
|
|
27438
|
-
message:
|
|
27437
|
+
title: "createFileInProgressTitle",
|
|
27438
|
+
message: "createFileInProgress",
|
|
27439
27439
|
confirmButton: "BUTTONS.Yes",
|
|
27440
|
-
cancelButton:
|
|
27441
|
-
}
|
|
27440
|
+
cancelButton: "BUTTONS.No",
|
|
27441
|
+
},
|
|
27442
27442
|
});
|
|
27443
27443
|
dialogRef.afterClosed().subscribe(function (res) {
|
|
27444
27444
|
if (res) {
|
|
27445
|
-
if (_this.dialogMangmentService.creationMode ===
|
|
27446
|
-
_this.dialogMangmentService.openMinimzedModal(CreateModalComponent,
|
|
27445
|
+
if (_this.dialogMangmentService.creationMode === "upload") {
|
|
27446
|
+
_this.dialogMangmentService.openMinimzedModal(CreateModalComponent, "70%", "85%", !_this.myPageConfiguration.isStaticRoot
|
|
27447
27447
|
? _this.selectedFolderPath
|
|
27448
|
-
:
|
|
27448
|
+
: "" // send path in case of file list or other page with none static root and not send it in case of my files or any other page with static root
|
|
27449
27449
|
);
|
|
27450
27450
|
}
|
|
27451
|
-
else if (_this.dialogMangmentService.creationMode ===
|
|
27452
|
-
_this.dialogMangmentService.openMinimzedModal(ScanModalComponent,
|
|
27451
|
+
else if (_this.dialogMangmentService.creationMode === "scan") {
|
|
27452
|
+
_this.dialogMangmentService.openMinimzedModal(ScanModalComponent, "90%", "90%", !_this.myPageConfiguration.isStaticRoot
|
|
27453
27453
|
? _this.selectedFolderPath
|
|
27454
|
-
:
|
|
27454
|
+
: "" // send path in case of file list or other page with none static root and not send it in case of my files or any other page with static root
|
|
27455
27455
|
);
|
|
27456
27456
|
}
|
|
27457
27457
|
}
|
|
@@ -27472,27 +27472,27 @@
|
|
|
27472
27472
|
_this.openCreateFolderDialog(folderType, res);
|
|
27473
27473
|
}
|
|
27474
27474
|
else {
|
|
27475
|
-
_this.customToastrService.show(
|
|
27475
|
+
_this.customToastrService.show("notification", "No Form", "Administrator Must Set Folder Form First");
|
|
27476
27476
|
}
|
|
27477
27477
|
});
|
|
27478
27478
|
};
|
|
27479
27479
|
FileManagerAbstract.prototype.openCreateFolderDialog = function (folderType, dynamicform) {
|
|
27480
27480
|
this.nuxeoDialogService.open({
|
|
27481
27481
|
component: FolderModalComponent,
|
|
27482
|
-
width:
|
|
27483
|
-
height:
|
|
27484
|
-
panelClass:
|
|
27485
|
-
data: { folderType: folderType, dynamicForm: dynamicform }
|
|
27482
|
+
width: "40%",
|
|
27483
|
+
height: "70%",
|
|
27484
|
+
panelClass: "watcher-dialog-container",
|
|
27485
|
+
data: { folderType: folderType, dynamicForm: dynamicform },
|
|
27486
27486
|
//disableClose: true,
|
|
27487
27487
|
});
|
|
27488
27488
|
};
|
|
27489
27489
|
//--------------------------------- may be unused funtions -------------------
|
|
27490
27490
|
FileManagerAbstract.prototype.checkForClass = function (className) {
|
|
27491
27491
|
var classes = [
|
|
27492
|
-
|
|
27493
|
-
|
|
27494
|
-
|
|
27495
|
-
|
|
27492
|
+
"detailed-menu",
|
|
27493
|
+
"ng-tag-label",
|
|
27494
|
+
"ng-option-label",
|
|
27495
|
+
"ng-star-inserted",
|
|
27496
27496
|
];
|
|
27497
27497
|
var classFounded = false;
|
|
27498
27498
|
classes.map(function (item) {
|
|
@@ -27536,7 +27536,7 @@
|
|
|
27536
27536
|
return;
|
|
27537
27537
|
var startLoading$ = rxjs.of(event).pipe(operators.switchMap(function (ev) {
|
|
27538
27538
|
var _a, _b;
|
|
27539
|
-
var id = ((_b = (_a = event === null || event === void 0 ? void 0 : event.directory) === null || _a === void 0 ? void 0 : _a.dataItem) === null || _b === void 0 ? void 0 : _b.id) ||
|
|
27539
|
+
var id = ((_b = (_a = event === null || event === void 0 ? void 0 : event.directory) === null || _a === void 0 ? void 0 : _a.dataItem) === null || _b === void 0 ? void 0 : _b.id) || "";
|
|
27540
27540
|
var hasUnreadyItems = ev.directory.dataItem.items.some(function (q) { return !q.isReady; });
|
|
27541
27541
|
if (hasUnreadyItems) {
|
|
27542
27542
|
// Start loading automatically to ensure all folders has the right actions
|
|
@@ -27569,7 +27569,7 @@
|
|
|
27569
27569
|
if (this.nodesPagination[id].isNextPageAvailable) {
|
|
27570
27570
|
this.nodesPagination[id].currentPageIndex++;
|
|
27571
27571
|
var payload = {
|
|
27572
|
-
currentPageIndex: this.nodesPagination[id].currentPageIndex
|
|
27572
|
+
currentPageIndex: this.nodesPagination[id].currentPageIndex,
|
|
27573
27573
|
};
|
|
27574
27574
|
return this.getFolderChildren(id, payload, showLoading, false).pipe(operators.tap(function (data) {
|
|
27575
27575
|
var _a, _b;
|
|
@@ -27598,7 +27598,7 @@
|
|
|
27598
27598
|
this.nodesPagination[id] = {
|
|
27599
27599
|
isNextPageAvailable: result === null || result === void 0 ? void 0 : result.isNextPageAvailable,
|
|
27600
27600
|
currentPageIndex: result === null || result === void 0 ? void 0 : result.currentPageIndex,
|
|
27601
|
-
foldersCount: result === null || result === void 0 ? void 0 : result.foldersCount
|
|
27601
|
+
foldersCount: result === null || result === void 0 ? void 0 : result.foldersCount,
|
|
27602
27602
|
};
|
|
27603
27603
|
}, _FileManagerAbstract_getNode = function _FileManagerAbstract_getNode(id) {
|
|
27604
27604
|
var fm = this.fileManager.instance;
|
|
@@ -27608,20 +27608,20 @@
|
|
|
27608
27608
|
dataStructure[0];
|
|
27609
27609
|
return fm._filesTreeView._filesTreeView._getNode(dataItem.internalFields.key);
|
|
27610
27610
|
}, _FileManagerAbstract_addOrReplace = function _FileManagerAbstract_addOrReplace(data, items) {
|
|
27611
|
-
var itemMap = _.keyBy(data,
|
|
27611
|
+
var itemMap = _.keyBy(data, "id");
|
|
27612
27612
|
items.forEach(function (item) {
|
|
27613
27613
|
itemMap[item.id] = item;
|
|
27614
27614
|
});
|
|
27615
27615
|
return _.values(itemMap);
|
|
27616
27616
|
};
|
|
27617
|
-
FileManagerAbstract.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0__namespace, type: FileManagerAbstract, deps: [{ token: i0__namespace.Injector }, { token: String }, { token: Object }
|
|
27618
|
-
FileManagerAbstract.ɵcmp = i0__namespace.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "12.2.17", type: FileManagerAbstract, selector: "ng-component", host: { listeners: { "document:click": "clickout($event)" } }, viewQueries: [{ propertyName: "fileManager", first: true, predicate: i4$4.DxFileManagerComponent, descendants: true }, { propertyName: "form", first: true, predicate: i4$4.DxFormComponent, descendants: true }, { propertyName: "treeView", first: true, predicate: i4$4.DxTreeViewComponent, descendants: true }], ngImport: i0__namespace, template:
|
|
27617
|
+
FileManagerAbstract.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0__namespace, type: FileManagerAbstract, deps: [{ token: i0__namespace.Injector }, { token: String }, { token: Object }], target: i0__namespace.ɵɵFactoryTarget.Component });
|
|
27618
|
+
FileManagerAbstract.ɵcmp = i0__namespace.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "12.2.17", type: FileManagerAbstract, selector: "ng-component", host: { listeners: { "document:click": "clickout($event)" } }, viewQueries: [{ propertyName: "fileManager", first: true, predicate: i4$4.DxFileManagerComponent, descendants: true }, { propertyName: "form", first: true, predicate: i4$4.DxFormComponent, descendants: true }, { propertyName: "treeView", first: true, predicate: i4$4.DxTreeViewComponent, descendants: true }], ngImport: i0__namespace, template: "", isInline: true });
|
|
27619
27619
|
i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0__namespace, type: FileManagerAbstract, decorators: [{
|
|
27620
27620
|
type: i0.Component,
|
|
27621
27621
|
args: [{
|
|
27622
|
-
template:
|
|
27622
|
+
template: "",
|
|
27623
27623
|
}]
|
|
27624
|
-
}], ctorParameters: function () { return [{ type: i0__namespace.Injector }, { type: String }, { type: Object }
|
|
27624
|
+
}], ctorParameters: function () { return [{ type: i0__namespace.Injector }, { type: String }, { type: Object }]; }, propDecorators: { fileManager: [{
|
|
27625
27625
|
type: i0.ViewChild,
|
|
27626
27626
|
args: [i4$4.DxFileManagerComponent, { static: false }]
|
|
27627
27627
|
}], form: [{
|
|
@@ -27632,7 +27632,7 @@
|
|
|
27632
27632
|
args: [i4$4.DxTreeViewComponent, { static: false }]
|
|
27633
27633
|
}], clickout: [{
|
|
27634
27634
|
type: i0.HostListener,
|
|
27635
|
-
args: [
|
|
27635
|
+
args: ["document:click", ["$event"]]
|
|
27636
27636
|
}] } });
|
|
27637
27637
|
|
|
27638
27638
|
var ActivityComponent = /** @class */ (function () {
|