nuxeo-development-framework 4.4.5 → 4.4.7
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 +88 -187
- package/bundles/nuxeo-development-framework.umd.js.map +1 -1
- package/esm2015/lib/components/file-manger/components/add-to-collection/add-to-collection.component.js +41 -42
- package/esm2015/lib/components/file-manger/file-manager.abstract.js +50 -135
- package/esm2015/lib/components/latest-activity/components/single-activity/single-activity.component.js +3 -2
- package/esm2015/lib/core/core.module.js +4 -18
- package/fesm2015/nuxeo-development-framework.js +88 -187
- package/fesm2015/nuxeo-development-framework.js.map +1 -1
- package/lib/components/file-manger/components/add-to-collection/add-to-collection.component.d.ts +11 -9
- package/lib/components/latest-activity/components/single-activity/single-activity.component.d.ts +1 -0
- package/package.json +1 -1
|
@@ -20674,9 +20674,9 @@
|
|
|
20674
20674
|
_this.fileManagerService = fileManagerService;
|
|
20675
20675
|
_this.customToastrService = customToastrService;
|
|
20676
20676
|
_this.nuxeoDialogService = nuxeoDialogService;
|
|
20677
|
-
_this.createOperation =
|
|
20678
|
-
_this.addOperation =
|
|
20679
|
-
_this.getCollectionPP =
|
|
20677
|
+
_this.createOperation = 'Collection.Create';
|
|
20678
|
+
_this.addOperation = 'Document.AddToCollection';
|
|
20679
|
+
_this.getCollectionPP = 'PP_DMS_User_Collections';
|
|
20680
20680
|
_this.visibleChange = new i0.EventEmitter();
|
|
20681
20681
|
_this.rtlEnabled = false;
|
|
20682
20682
|
_this.isSelected = true;
|
|
@@ -20686,17 +20686,15 @@
|
|
|
20686
20686
|
_this.onFormCollectionSubmit = function (e) {
|
|
20687
20687
|
e.preventDefault();
|
|
20688
20688
|
_this.loading = true;
|
|
20689
|
-
return _this.fileManagerService
|
|
20690
|
-
.addToCollection(_this.selectedItems, _this.collectionid, _this.addOperation)
|
|
20691
|
-
.pipe(operators.tap(function (res) {
|
|
20689
|
+
return _this.fileManagerService.addToCollection(_this.selectedItems, _this.collectionid, _this.addOperation).pipe(operators.tap(function (res) {
|
|
20692
20690
|
_this.loading = false;
|
|
20693
20691
|
_this.form.instance.resetValues();
|
|
20694
20692
|
_this.selectedTags = null;
|
|
20695
20693
|
_this.visible = false;
|
|
20696
|
-
_this.customToastrService.show(
|
|
20694
|
+
_this.customToastrService.show('success', 'TOASTER.SUCCESS', 'TOASTER.DOCUMENT_ADDED_TO_COLLECTION');
|
|
20697
20695
|
}, function (err) {
|
|
20698
20696
|
_this.loading = false;
|
|
20699
|
-
_this.customToastrService.show(
|
|
20697
|
+
_this.customToastrService.show('error', 'TOASTER.ERROR', 'TOASTER.DOCUMENT_ADDED_TO_COLLECTION_ERROR');
|
|
20700
20698
|
}));
|
|
20701
20699
|
};
|
|
20702
20700
|
return _this;
|
|
@@ -20721,15 +20719,16 @@
|
|
|
20721
20719
|
AddToCollectionComponent.prototype.ngOnInit = function () { };
|
|
20722
20720
|
AddToCollectionComponent.prototype.openDialog = function () {
|
|
20723
20721
|
var _this = this;
|
|
20722
|
+
this.loadItems();
|
|
20724
20723
|
var options = {
|
|
20725
20724
|
component: NdfNuxeoDialog,
|
|
20726
20725
|
//TODO [Asem] how to put the wrapper ID
|
|
20727
|
-
panelClass:
|
|
20726
|
+
panelClass: 'popUpParent',
|
|
20728
20727
|
config: {
|
|
20729
|
-
title: this.translateService.instant(
|
|
20728
|
+
title: this.translateService.instant('FILE_MANAGER.ADD_TO_COLLECTION'),
|
|
20730
20729
|
contentTemplate: this.contentTemplate,
|
|
20731
|
-
actionsTemplate: this.actionsTemplate
|
|
20732
|
-
}
|
|
20730
|
+
actionsTemplate: this.actionsTemplate
|
|
20731
|
+
}
|
|
20733
20732
|
};
|
|
20734
20733
|
this.nuxeoDialogService
|
|
20735
20734
|
.open(options)
|
|
@@ -20741,9 +20740,7 @@
|
|
|
20741
20740
|
AddToCollectionComponent.prototype.emitSelection = function (event) {
|
|
20742
20741
|
var _this = this;
|
|
20743
20742
|
if (this.isSelected) {
|
|
20744
|
-
this.fileManagerService
|
|
20745
|
-
.createNewCollection(event.displayLabel, this.createOperation)
|
|
20746
|
-
.subscribe(function (res) {
|
|
20743
|
+
this.fileManagerService.createNewCollection(event.displayLabel, this.createOperation).subscribe(function (res) {
|
|
20747
20744
|
_this.collectionid = res.uid;
|
|
20748
20745
|
});
|
|
20749
20746
|
}
|
|
@@ -20752,26 +20749,24 @@
|
|
|
20752
20749
|
};
|
|
20753
20750
|
AddToCollectionComponent.prototype.loadItems = function () {
|
|
20754
20751
|
var _this = this;
|
|
20755
|
-
var searchterm =
|
|
20752
|
+
var searchterm = '';
|
|
20756
20753
|
this.isSelected = false;
|
|
20757
20754
|
var mycategories = [];
|
|
20758
|
-
this.items$ = rxjs.concat(this.fileManagerService
|
|
20759
|
-
.getCollectionFromPP(searchterm, this.getCollectionPP)
|
|
20760
|
-
.pipe(operators.switchMap(function (res) {
|
|
20755
|
+
this.items$ = rxjs.concat(this.fileManagerService.getCollectionFromPP(searchterm, this.getCollectionPP).pipe(operators.switchMap(function (res) {
|
|
20761
20756
|
res.entries.map(function (entry) {
|
|
20762
|
-
|
|
20763
|
-
|
|
20764
|
-
|
|
20765
|
-
|
|
20766
|
-
|
|
20767
|
-
|
|
20757
|
+
if (!_this.enableMemberInCollections || !_this.memberInCollections.includes(entry.id)) {
|
|
20758
|
+
mycategories.push({
|
|
20759
|
+
displayLabel: entry.title,
|
|
20760
|
+
id: entry.uid,
|
|
20761
|
+
path: entry.path,
|
|
20762
|
+
icon: entry.properties['common:icon']
|
|
20763
|
+
});
|
|
20764
|
+
}
|
|
20768
20765
|
});
|
|
20769
20766
|
return rxjs.of(mycategories);
|
|
20770
20767
|
})), // default items
|
|
20771
20768
|
this.tagsInput$.pipe(operators.debounceTime(200), operators.distinctUntilChanged(), operators.tap(function () { return (_this.tagsLoading = true); }), operators.switchMap(function (searchterm) {
|
|
20772
|
-
return _this.fileManagerService
|
|
20773
|
-
.getCollectionFromPP(searchterm, _this.getCollectionPP)
|
|
20774
|
-
.pipe(operators.catchError(function () { return rxjs.of([]); }), // empty list on error
|
|
20769
|
+
return _this.fileManagerService.getCollectionFromPP(searchterm, _this.getCollectionPP).pipe(operators.catchError(function () { return rxjs.of([]); }), // empty list on error
|
|
20775
20770
|
operators.switchMap(function (searchCat) {
|
|
20776
20771
|
var myInerCateg = [];
|
|
20777
20772
|
_this.tagsLoading = false;
|
|
@@ -20781,7 +20776,7 @@
|
|
|
20781
20776
|
displayLabel: entry.title,
|
|
20782
20777
|
id: entry.uid,
|
|
20783
20778
|
path: entry.path,
|
|
20784
|
-
icon: entry.properties[
|
|
20779
|
+
icon: entry.properties['common:icon']
|
|
20785
20780
|
});
|
|
20786
20781
|
});
|
|
20787
20782
|
return rxjs.of(myInerCateg);
|
|
@@ -20791,29 +20786,33 @@
|
|
|
20791
20786
|
return AddToCollectionComponent;
|
|
20792
20787
|
}(BaseComponent));
|
|
20793
20788
|
AddToCollectionComponent.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0__namespace, type: AddToCollectionComponent, deps: [{ token: FileManagerService }, { token: CustomToastrService }, { token: NuxeoDialogService }, { token: i0__namespace.Injector }], target: i0__namespace.ɵɵFactoryTarget.Component });
|
|
20794
|
-
AddToCollectionComponent.ɵcmp = i0__namespace.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "12.2.17", type: AddToCollectionComponent, selector: "app-add-to-collection", inputs: { createOperation: "createOperation", addOperation: "addOperation", getCollectionPP: "getCollectionPP", visible: "visible", rtlEnabled: "rtlEnabled", selectedItems: "selectedItems" }, outputs: { visibleChange: "visibleChange" }, viewQueries: [{ propertyName: "form", first: true, predicate: i4$4.DxFormComponent, descendants: true }, { propertyName: "contentTemplate", first: true, predicate: ["contentTemplate"], descendants: true }, { propertyName: "actionsTemplate", first: true, predicate: ["actionsTemplate"], descendants: true }], usesInheritance: true, ngImport: i0__namespace, template: "<ng-template #contentTemplate>\r\n\t<form>\r\n\t\t<dx-form
|
|
20789
|
+
AddToCollectionComponent.ɵcmp = i0__namespace.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "12.2.17", type: AddToCollectionComponent, selector: "app-add-to-collection", inputs: { createOperation: "createOperation", addOperation: "addOperation", getCollectionPP: "getCollectionPP", memberInCollections: "memberInCollections", enableMemberInCollections: "enableMemberInCollections", visible: "visible", rtlEnabled: "rtlEnabled", selectedItems: "selectedItems" }, outputs: { visibleChange: "visibleChange" }, viewQueries: [{ propertyName: "form", first: true, predicate: i4$4.DxFormComponent, descendants: true }, { propertyName: "contentTemplate", first: true, predicate: ["contentTemplate"], descendants: true }, { propertyName: "actionsTemplate", first: true, predicate: ["actionsTemplate"], descendants: true }], usesInheritance: true, ngImport: i0__namespace, template: "<ng-template #contentTemplate>\r\n\t<form>\r\n\t\t<dx-form class=\"collection-form-wrapper\" #createForm [formData]=\"formData\" [disabled]=\"loading\">\r\n\t\t\t<dxi-item editorType=\"dxTextBox\">\r\n\t\t\t\t<ng-select\r\n\t\t\t\t\t[items]=\"items$ | async\"\r\n\t\t\t\t\tbindLabel=\"displayLabel\"\r\n\t\t\t\t\t[addTag]=\"true\"\r\n\t\t\t\t\taddTagText=\"Add collection\"\r\n\t\t\t\t\t[multiple]=\"false\"\r\n\t\t\t\t\t[hideSelected]=\"true\"\r\n\t\t\t\t\t[minTermLength]=\"0\"\r\n\t\t\t\t\t[loading]=\"tagsLoading\"\r\n\t\t\t\t\ttypeToSearchText=\"search\"\r\n\t\t\t\t\t[typeahead]=\"tagsInput$\"\r\n\t\t\t\t\t[(ngModel)]=\"selectedTags\"\r\n\t\t\t\t\trequired\r\n\t\t\t\t\tplaceholder=\"{{ 'VOCABULARY.SELECT_ITEM' | translate }}\"\r\n\t\t\t\t\tname=\"selectedItem\"\r\n\t\t\t\t\t(change)=\"emitSelection($event)\"\r\n\t\t\t\t>\r\n\t\t\t\t</ng-select>\r\n\t\t\t</dxi-item>\r\n\t\t</dx-form>\r\n\t</form>\r\n</ng-template>\r\n\r\n<ng-template #actionsTemplate let-dialog=\"dialog\">\r\n\t<span class=\"submission-button px-5\" (click)=\"dialog.executeAction(onFormCollectionSubmit, [$event])\">\r\n\t\t{{ 'FILE_MANAGER.ADD' | translate }}\r\n\t</span>\r\n</ng-template>\r\n", styles: [""], components: [{ type: i4__namespace$4.DxFormComponent, selector: "dx-form", inputs: ["accessKey", "activeStateEnabled", "alignItemLabels", "alignItemLabelsInAllGroups", "colCount", "colCountByScreen", "customizeItem", "disabled", "elementAttr", "focusStateEnabled", "formData", "height", "hint", "hoverStateEnabled", "items", "labelLocation", "labelMode", "minColWidth", "optionalMark", "readOnly", "requiredMark", "requiredMessage", "rtlEnabled", "screenByWidth", "scrollingEnabled", "showColonAfterLabel", "showOptionalMark", "showRequiredMark", "showValidationSummary", "tabIndex", "validationGroup", "visible", "width"], outputs: ["onContentReady", "onDisposing", "onEditorEnterKey", "onFieldDataChanged", "onInitialized", "onOptionChanged", "accessKeyChange", "activeStateEnabledChange", "alignItemLabelsChange", "alignItemLabelsInAllGroupsChange", "colCountChange", "colCountByScreenChange", "customizeItemChange", "disabledChange", "elementAttrChange", "focusStateEnabledChange", "formDataChange", "heightChange", "hintChange", "hoverStateEnabledChange", "itemsChange", "labelLocationChange", "labelModeChange", "minColWidthChange", "optionalMarkChange", "readOnlyChange", "requiredMarkChange", "requiredMessageChange", "rtlEnabledChange", "screenByWidthChange", "scrollingEnabledChange", "showColonAfterLabelChange", "showOptionalMarkChange", "showRequiredMarkChange", "showValidationSummaryChange", "tabIndexChange", "validationGroupChange", "visibleChange", "widthChange"] }, { type: i5__namespace$2.DxiItemComponent, selector: "dxi-item", inputs: ["disabled", "html", "icon", "template", "text", "title", "titleTemplate", "visible", "onClick", "stylingMode", "type", "baseSize", "box", "ratio", "shrink", "elementAttr", "hint", "beginGroup", "closeMenuOnClick", "items", "selectable", "selected", "colSpan", "cssClass", "dataField", "editorOptions", "editorType", "helpText", "isRequired", "itemType", "label", "name", "validationRules", "visibleIndex", "alignItemLabels", "caption", "colCount", "colCountByScreen", "tabPanelOptions", "tabs", "badge", "tabTemplate", "buttonOptions", "horizontalAlignment", "verticalAlignment", "locateInMenu", "location", "menuItemTemplate", "options", "showText", "widget", "height", "width", "imageAlt", "imageSrc", "acceptedValues", "formatName", "formatValues", "key", "showChevron", "linkAttr", "url", "heightRatio", "widthRatio", "expanded", "hasItems", "id", "parentId"] }, { type: i3__namespace$3.NgSelectComponent, selector: "ng-select", inputs: ["markFirst", "dropdownPosition", "loading", "closeOnSelect", "hideSelected", "selectOnTab", "bufferAmount", "selectableGroup", "selectableGroupAsModel", "searchFn", "trackByFn", "clearOnBackspace", "labelForId", "inputAttrs", "readonly", "searchWhileComposing", "minTermLength", "editableSearchTerm", "keyDownFn", "multiple", "addTag", "searchable", "clearable", "isOpen", "items", "compareWith", "clearSearchOnAdd", "bindLabel", "placeholder", "notFoundText", "typeToSearchText", "addTagText", "loadingText", "clearAllText", "virtualScroll", "openOnEnter", "appendTo", "bindValue", "appearance", "maxSelectedItems", "groupBy", "groupValue", "tabIndex", "typeahead"], outputs: ["blur", "focus", "change", "open", "close", "search", "clear", "add", "remove", "scroll", "scrollToEnd"] }], directives: [{ type: i2__namespace$6.ɵNgNoValidate, selector: "form:not([ngNoForm]):not([ngNativeValidate])" }, { type: i2__namespace$6.NgControlStatusGroup, selector: "[formGroupName],[formArrayName],[ngModelGroup],[formGroup],form:not([ngNoForm]),[ngForm]" }, { type: i2__namespace$6.NgForm, selector: "form:not([ngNoForm]):not([formGroup]),ng-form,[ngForm]", inputs: ["ngFormOptions"], outputs: ["ngSubmit"], exportAs: ["ngForm"] }, { type: i2__namespace$6.RequiredValidator, selector: ":not([type=checkbox])[required][formControlName],:not([type=checkbox])[required][formControl],:not([type=checkbox])[required][ngModel]", inputs: ["required"] }, { type: i2__namespace$6.NgControlStatus, selector: "[formControlName],[ngModel],[formControl]" }, { type: i2__namespace$6.NgModel, selector: "[ngModel]:not([formControlName]):not([formControl])", inputs: ["name", "disabled", "ngModel", "ngModelOptions"], outputs: ["ngModelChange"], exportAs: ["ngModel"] }], pipes: { "async": i4__namespace$1.AsyncPipe, "translate": i1__namespace.TranslatePipe } });
|
|
20795
20790
|
i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0__namespace, type: AddToCollectionComponent, decorators: [{
|
|
20796
20791
|
type: i0.Component,
|
|
20797
20792
|
args: [{
|
|
20798
|
-
selector:
|
|
20799
|
-
templateUrl:
|
|
20800
|
-
styleUrls: [
|
|
20793
|
+
selector: 'app-add-to-collection',
|
|
20794
|
+
templateUrl: './add-to-collection.component.html',
|
|
20795
|
+
styleUrls: ['./add-to-collection.component.scss']
|
|
20801
20796
|
}]
|
|
20802
20797
|
}], ctorParameters: function () { return [{ type: FileManagerService }, { type: CustomToastrService }, { type: NuxeoDialogService }, { type: i0__namespace.Injector }]; }, propDecorators: { form: [{
|
|
20803
20798
|
type: i0.ViewChild,
|
|
20804
20799
|
args: [i4$4.DxFormComponent, { static: false }]
|
|
20805
20800
|
}], contentTemplate: [{
|
|
20806
20801
|
type: i0.ViewChild,
|
|
20807
|
-
args: [
|
|
20802
|
+
args: ['contentTemplate']
|
|
20808
20803
|
}], actionsTemplate: [{
|
|
20809
20804
|
type: i0.ViewChild,
|
|
20810
|
-
args: [
|
|
20805
|
+
args: ['actionsTemplate']
|
|
20811
20806
|
}], createOperation: [{
|
|
20812
20807
|
type: i0.Input
|
|
20813
20808
|
}], addOperation: [{
|
|
20814
20809
|
type: i0.Input
|
|
20815
20810
|
}], getCollectionPP: [{
|
|
20816
20811
|
type: i0.Input
|
|
20812
|
+
}], memberInCollections: [{
|
|
20813
|
+
type: i0.Input
|
|
20814
|
+
}], enableMemberInCollections: [{
|
|
20815
|
+
type: i0.Input
|
|
20817
20816
|
}], visible: [{
|
|
20818
20817
|
type: i0.Input
|
|
20819
20818
|
}], visibleChange: [{
|
|
@@ -25585,6 +25584,7 @@
|
|
|
25585
25584
|
this.stateIcons = {};
|
|
25586
25585
|
if (this.configService.myConfiguration.activityLogIcons) {
|
|
25587
25586
|
this.stateIcons = Object.assign(Object.assign({}, this.stateIcons), this.configService.myConfiguration.activityLogIcons);
|
|
25587
|
+
this.defultDateFormate = this.configService.myConfiguration.dateFormate;
|
|
25588
25588
|
}
|
|
25589
25589
|
}
|
|
25590
25590
|
SingleActivityComponent.prototype.ngOnInit = function () {
|
|
@@ -25592,7 +25592,7 @@
|
|
|
25592
25592
|
return SingleActivityComponent;
|
|
25593
25593
|
}());
|
|
25594
25594
|
SingleActivityComponent.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0__namespace, type: SingleActivityComponent, deps: [{ token: AppConfigService }], target: i0__namespace.ɵɵFactoryTarget.Component });
|
|
25595
|
-
SingleActivityComponent.ɵcmp = i0__namespace.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "12.2.17", type: SingleActivityComponent, selector: "cts-single-activity", inputs: { item: "item", documentTitle: "documentTitle", newLogActor: "newLogActor", isArabic: "isArabic" }, ngImport: i0__namespace, template: "<ng-container *ngIf=\"item\">\r\n <div class=\"avtivity-wrapper\">\r\n <div class=\"avtivity-point border-primary {{ item.documentLifecycle }}\">\r\n <span class=\"{{stateIcons[item.eventName]}} new-icon-section\"></span>\r\n </div>\r\n <div class=\"avtivity-panal border-primary {{ item.documentLifecycle }}\">\r\n <div class=\"avtivity-corr-status border-primary {{ item.documentLifecycle }}\">\r\n {{ \"STATS.\" + item.documentLifecycle | translate }}\r\n </div>\r\n <div class=\"avtivity-heading\">\r\n <div class=\"avtivity-title\">\r\n <div class=\"status\">{{ \"ACTIVITY_LOG.status.\" + item.eventName | translate }}</div>\r\n <div class=\"\">\r\n {{ item.creator.id === 'system' ? ('SYSTEM_ADMIN' | translate) : item.creator.properties.firstName + \" \" +item.creator.properties.lastName }}\r\n </div>\r\n </div>\r\n <div class=\"avtivity-date\">\r\n <div>{{ item.eventDate | localizedDate: \"M/d/y\" }}</div>\r\n <div>{{ item.eventDate | localizedDate: \"h:mm a\" }}</div>\r\n </div>\r\n </div>\r\n <div class=\"avtivity-body\">\r\n <cts-activity-line\r\n [newLogActor]=\"newLogActor\"\r\n [item]=\"item\"\r\n [isArabic]=\"isArabic\"\r\n [documentTitle]=\"item.documentName\"\r\n ></cts-activity-line>\r\n </div>\r\n </div>\r\n </div>\r\n</ng-container>\r\n\r\n<!-- <div class=\"d-flex\">\r\n <div class=\"myLink link creator\" id=\"parent3\">{{ creator }}</div>\r\n <div class=\"mx-1\">send the correspondence</div>\r\n <div class=\"myLink link\" id=\"child3\">{{ param2 }}</div>\r\n <div class=\"myLink to\" id=\"child3\">to</div>\r\n <div class=\"myLink link\" id=\"child3\">{{corr:to}}</div>\r\n <div class=\"myLink link\" id=\"child3\">and assigned it to</div>\r\n <div class=\"myLink link\" id=\"child3\">{{corr:owner}}</div>\r\n</div> -->\r\n", styles: [".bi{margin:0!important}.memo-sorting-wrapper{width:265px;margin:0 10px;height:100%;display:flex}.memo-sorting-wrapper .sorting-direction{width:65px;height:40px;background-color:#465573;color:#fff;font-size:20px;display:flex;justify-content:center;align-items:center;cursor:pointer}.memo-sorting-wrapper .memo-sorting-trigger{width:calc(100% - 65px);height:100%;background-color:transparent;border:1px solid lightgrey;display:flex;justify-content:space-between;align-items:center;padding:0 15px;font-size:14px}.memo-sorting-wrapper .memo-sorting-trigger i{font-size:16px;color:gray}.memo-sorting-menu{width:200px}.my-button{border:1px solid #465573;color:#465573;border-radius:5px;background-color:transparent;font-weight:bold;min-width:80px;height:40px}.my-button.reset{border:none}.my-button:hover{color:#fff;background-color:#465573}.my-button:hover.reset{color:#465573;border:1px solid #465573;background-color:#fff}.app-property-value .app-input-wrapper label{color:#646f85;font-size:13px;margin-bottom:5px}.app-property-value .app-input-wrapper label .text-danger{font-size:16px;line-height:14px;margin:0 5px!important}.app-property-value .app-input-wrapper .form-control{border:1px solid #ccc;border-radius:5px;background-color:#8f98aa1a;height:40px}.app-property-value .app-input-wrapper .form-control:disabled{background-color:#e9ecef!important}.app-property-value .app-input-wrapper .form-control:focus{border:1px solid #1a96c6;box-shadow:0 0 4px #79c3c26b!important}.app-property-value .app-input-wrapper .app-textitem-editable-error .error-containers{list-style:none;padding:0;margin:0;font-size:14px}.app-property-value .app-input-wrapper .app-textitem-editable-error .error-containers .error{margin-top:5px}.autocomplete-container .input-container input:focus,hijri-gregorian-datepicker .form-group .input-group .form-control:focus,.ng-select.ng-select-focused .ng-select-container{border:1px solid #1a96c6!important;box-shadow:0 0 4px #79c3c26b!important}input::placeholder{font-size:12px}.form-control:focus{box-shadow:none!important}.mat-stepper-horizontal{margin-top:-25px}.mat-stepper-horizontal .mat-horizontal-stepper-header-container .mat-step-header.cdk-program-focused{background-color:transparent}.mat-stepper-horizontal .mat-horizontal-stepper-header-container .mat-step-header .mat-step-icon-selected{background-color:transparent;color:#fff;background-image:linear-gradient(to right,#0dbab5,#1a96c6)}@media only screen and (max-width: 576px){.mat-stepper-horizontal .mat-horizontal-stepper-header-container .mat-step-header .mat-step-label .mat-step-text-label{white-space:pre-wrap;overflow:visible}}.mat-stepper-horizontal .mat-horizontal-content-container{overflow:visible}@media only screen and (max-width: 768px){.mat-stepper-horizontal .mat-horizontal-content-container{padding:0 0 24px}}.mat-stepper-horizontal.rtl .mat-horizontal-stepper-header:first-child:after,.mat-stepper-horizontal.rtl .mat-horizontal-stepper-header:last-child:before{display:none}.mat-stepper-horizontal.rtl .mat-horizontal-stepper-header:first-child:before{border-top-width:1px;border-top-style:solid;content:\"\";display:inline-block;height:0;position:absolute;width:calc(50% - 20px);left:0}.mat-stepper-horizontal.rtl .mat-horizontal-stepper-header:last-child:after{border-top-width:1px;border-top-style:solid;content:\"\";display:inline-block;height:0;position:absolute;width:calc(50% - 20px);right:0}.form-wrapper{padding:30px 15px;border:1px solid #dde0e2}.form-wrapper .buttons-wrapper{display:flex;justify-content:space-between}.form-wrapper .buttons-wrapper .action-buttons-wrapper{display:flex}.form-wrapper .buttons-wrapper button{background-image:linear-gradient(to right,#0dbab5,#1a96c6);height:40px;color:#fff;border:none;width:125px;margin-top:20px;border-radius:5px}.form-wrapper .buttons-wrapper button:disabled{opacity:.4;cursor:not-allowed}.form-wrapper .buttons-wrapper button:hover{opacity:.7}.form-wrapper .upload-wrapper{display:flex;flex-direction:column;justify-content:flex-end}.form-wrapper .upload-wrapper label{color:#8f98aa;font-size:14px}.form-wrapper .upload-wrapper button{padding:10px;border:1px solid lightgray}.form-wrapper .upload-wrapper button span{margin:0 10px}.renameFileComponent .form-wrapper{padding:30px 15px;border:none!important}.renameFileComponent .form-wrapper .buttons-wrapper{display:flex;justify-content:space-between}.renameFileComponent .form-wrapper .buttons-wrapper .action-buttons-wrapper{display:flex}.renameFileComponent .form-wrapper .buttons-wrapper button{background-image:linear-gradient(to right,#0dbab5,#1a96c6);height:40px;color:#fff;border:none;width:125px;margin-top:20px;border-radius:5px}.renameFileComponent .form-wrapper .buttons-wrapper button:disabled{opacity:.4;cursor:not-allowed}.renameFileComponent .form-wrapper .buttons-wrapper button:hover{opacity:.7}.renameFileComponent .form-wrapper .upload-wrapper{display:flex;flex-direction:column;justify-content:flex-end}.renameFileComponent .form-wrapper .upload-wrapper label{color:#8f98aa;font-size:14px}.renameFileComponent .form-wrapper .upload-wrapper button{padding:10px;border:1px solid lightgray}.renameFileComponent .form-wrapper .upload-wrapper button span{margin:0 10px}.my-dynamic-viewer{display:flex;align-items:center;font-size:12px;min-height:30px}.my-dynamic-viewer .my-label{font-size:12px;font-weight:500;width:150px;word-break:break-word}@media (max-width: 992px){.my-dynamic-viewer .my-label{width:50%}}.my-dynamic-viewer .my-value{width:calc(100% - 150px);word-break:break-word}@media (max-width: 992px){.my-dynamic-viewer .my-value{width:50%}}.my-dynamic-viewer .direction-img{font-size:14px}.my-dynamic-viewer .direction-img .incoming{display:none}.my-dynamic-viewer .direction-img .outgoing{display:none}.my-dynamic-viewer .direction-img .internal{display:none}.my-dynamic-viewer.draft .my-value{color:#596973}.my-dynamic-viewer.inProgress .my-value{color:#3c3cf0}.my-dynamic-viewer.registered .my-value{color:#4f008c}.my-dynamic-viewer.archived .my-value{color:#fbb62c}.my-dynamic-viewer.closed .my-value{color:#00dca5}.my-dynamic-viewer.approved .my-value{color:#06a57e}.my-dynamic-viewer.assigned .my-value{color:#fd6670}.my-dynamic-viewer.sent .my-value{color:#3c3cf0}.my-dynamic-viewer.published .my-value{color:#00dca5}.my-dynamic-viewer.Outgoing .my-value{display:flex}.my-dynamic-viewer.Outgoing .my-value .direction-img .outgoing{color:#fbb62c;margin:1px 5px;display:flex}.my-dynamic-viewer.Outgoing .my-value .text{margin:0 5px}.my-dynamic-viewer.Internal .my-value{display:flex}.my-dynamic-viewer.Internal .my-value .direction-img .internal{color:#3c3cf0;margin:1px 5px;display:flex}.my-dynamic-viewer.Internal .my-value .text{margin:0 5px}.my-dynamic-viewer.Incoming .my-value{display:flex}.my-dynamic-viewer.Incoming .my-value .direction-img .incoming{color:#00dca5;display:flex}.my-dynamic-viewer.Incoming .my-value .text{margin:-3px 5px 0}.my-dynamic-viewer.vertical{display:block}.my-dynamic-viewer.vertical .my-label{width:auto}.my-dynamic-viewer.vertical .my-value{width:auto}.my-dynamic-viewer.with-out-label{width:100%!important}.avtivity-wrapper{margin-bottom:36px;background:#fff;display:flex;position:relative}.avtivity-wrapper .avtivity-point{display:block;width:14px;height:14px;border-radius:50%;border:4px solid #0dbab5;background-color:#fff;position:absolute;top:0px;left:-28px}.avtivity-wrapper .avtivity-point .new-icon-section{display:none}.avtivity-wrapper .avtivity-point.draft{border-color:#596973!important}.avtivity-wrapper .avtivity-point.registered{border-color:#5a1496!important}.avtivity-wrapper .avtivity-point.closed{border-color:#00dca5!important}.avtivity-wrapper .avtivity-point.inProgress{border-color:#3c3cf0!important}.avtivity-wrapper .avtivity-point.archived{border-color:#fbb62c!important}.avtivity-wrapper .avtivity-panal{width:100%;border-radius:8px;border-inline-start:8px solid #0dbab5;padding:20px;position:relative;box-shadow:0 0 25px #0000001a}.avtivity-wrapper .avtivity-panal.draft{border-color:#596973!important}.avtivity-wrapper .avtivity-panal.registered{border-color:#5a1496!important}.avtivity-wrapper .avtivity-panal.inProgress{border-color:#3c3cf0!important}.avtivity-wrapper .avtivity-panal.closed{border-color:#00dca5!important}.avtivity-wrapper .avtivity-panal.archived{border-color:#fbb62c!important}.avtivity-wrapper .avtivity-panal.meeting_created{border-color:#3c3cf0!important}.avtivity-wrapper .avtivity-panal .avtivity-corr-status{position:absolute;background:#ffffff;font-size:11px;width:100px;height:24px;border:1px solid #0dbab5;border-radius:5px;left:11px;top:-13px;text-align:center;display:flex;align-items:center;justify-content:center}.avtivity-wrapper .avtivity-panal .avtivity-corr-status.draft{border-color:#596973!important}.avtivity-wrapper .avtivity-panal .avtivity-corr-status.registered{border-color:#5a1496!important}.avtivity-wrapper .avtivity-panal .avtivity-corr-status.inProgress{border-color:#3c3cf0!important}.avtivity-wrapper .avtivity-panal .avtivity-corr-status.closed{border-color:#00dca5!important}.avtivity-wrapper .avtivity-panal .avtivity-corr-status.archived{border-color:#fbb62c!important}.avtivity-wrapper .avtivity-panal .avtivity-corr-status.meeting_created{border-color:#3c3cf0!important}.avtivity-wrapper .avtivity-panal .avtivity-heading{display:flex;justify-content:space-between;margin-bottom:10px;border-bottom:2px solid #f5f6f8}.avtivity-wrapper .avtivity-panal .avtivity-heading .avtivity-date{font-size:12px;color:#6a768e}.avtivity-wrapper .avtivity-panal .avtivity-heading .avtivity-title{margin-bottom:8px;font-size:14px;color:#6a768e}.avtivity-wrapper .avtivity-panal .avtivity-heading .avtivity-title .status{font-weight:400;font-size:16px;color:#465573!important}.rtl .avtivity-corr-status{left:unset;right:11px}.rtl .avtivity-point{left:unset;right:-28px}\n"], components: [{ type: ActivityLineComponent, selector: "cts-activity-line", inputs: ["item", "documentTitle", "newLogActor", "isArabic"] }], directives: [{ type: i4__namespace$1.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }], pipes: { "translate": i1__namespace.TranslatePipe, "localizedDate": LocalizedDatePipe }, encapsulation: i0__namespace.ViewEncapsulation.None });
|
|
25595
|
+
SingleActivityComponent.ɵcmp = i0__namespace.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "12.2.17", type: SingleActivityComponent, selector: "cts-single-activity", inputs: { item: "item", documentTitle: "documentTitle", newLogActor: "newLogActor", isArabic: "isArabic" }, ngImport: i0__namespace, template: "<ng-container *ngIf=\"item\">\r\n <div class=\"avtivity-wrapper\">\r\n <div class=\"avtivity-point border-primary {{ item.documentLifecycle }}\">\r\n <span class=\"{{stateIcons[item.eventName]}} new-icon-section\"></span>\r\n </div>\r\n <div class=\"avtivity-panal border-primary {{ item.documentLifecycle }}\">\r\n <div class=\"avtivity-corr-status border-primary {{ item.documentLifecycle }}\">\r\n {{ \"STATS.\" + item.documentLifecycle | translate }}\r\n </div>\r\n <div class=\"avtivity-heading\">\r\n <div class=\"avtivity-title\">\r\n <div class=\"status\">{{ \"ACTIVITY_LOG.status.\" + item.eventName | translate }}</div>\r\n <div class=\"\">\r\n {{ item.creator.id === 'system' ? ('SYSTEM_ADMIN' | translate) : item.creator.properties.firstName + \" \" +item.creator.properties.lastName }}\r\n </div>\r\n </div>\r\n <div class=\"avtivity-date\">\r\n <div>{{ item.eventDate | localizedDate: \"M/d/y\" }}</div>\r\n <div>{{ item.eventDate | localizedDate: \"h:mm a\" }}</div>\r\n </div>\r\n <div class=\"defult-avtivity-date\">\r\n <div>{{ item.eventDate | localizedDate: defultDateFormate :(isArabic? 'ar-AR' : 'en-US') }}</div>\r\n </div>\r\n </div>\r\n <div class=\"avtivity-body\">\r\n <cts-activity-line\r\n [newLogActor]=\"newLogActor\"\r\n [item]=\"item\"\r\n [isArabic]=\"isArabic\"\r\n [documentTitle]=\"item.documentName\"\r\n ></cts-activity-line>\r\n </div>\r\n </div>\r\n </div>\r\n</ng-container>\r\n\r\n<!-- <div class=\"d-flex\">\r\n <div class=\"myLink link creator\" id=\"parent3\">{{ creator }}</div>\r\n <div class=\"mx-1\">send the correspondence</div>\r\n <div class=\"myLink link\" id=\"child3\">{{ param2 }}</div>\r\n <div class=\"myLink to\" id=\"child3\">to</div>\r\n <div class=\"myLink link\" id=\"child3\">{{corr:to}}</div>\r\n <div class=\"myLink link\" id=\"child3\">and assigned it to</div>\r\n <div class=\"myLink link\" id=\"child3\">{{corr:owner}}</div>\r\n</div> -->\r\n", styles: [".bi{margin:0!important}.memo-sorting-wrapper{width:265px;margin:0 10px;height:100%;display:flex}.memo-sorting-wrapper .sorting-direction{width:65px;height:40px;background-color:#465573;color:#fff;font-size:20px;display:flex;justify-content:center;align-items:center;cursor:pointer}.memo-sorting-wrapper .memo-sorting-trigger{width:calc(100% - 65px);height:100%;background-color:transparent;border:1px solid lightgrey;display:flex;justify-content:space-between;align-items:center;padding:0 15px;font-size:14px}.memo-sorting-wrapper .memo-sorting-trigger i{font-size:16px;color:gray}.memo-sorting-menu{width:200px}.my-button{border:1px solid #465573;color:#465573;border-radius:5px;background-color:transparent;font-weight:bold;min-width:80px;height:40px}.my-button.reset{border:none}.my-button:hover{color:#fff;background-color:#465573}.my-button:hover.reset{color:#465573;border:1px solid #465573;background-color:#fff}.app-property-value .app-input-wrapper label{color:#646f85;font-size:13px;margin-bottom:5px}.app-property-value .app-input-wrapper label .text-danger{font-size:16px;line-height:14px;margin:0 5px!important}.app-property-value .app-input-wrapper .form-control{border:1px solid #ccc;border-radius:5px;background-color:#8f98aa1a;height:40px}.app-property-value .app-input-wrapper .form-control:disabled{background-color:#e9ecef!important}.app-property-value .app-input-wrapper .form-control:focus{border:1px solid #1a96c6;box-shadow:0 0 4px #79c3c26b!important}.app-property-value .app-input-wrapper .app-textitem-editable-error .error-containers{list-style:none;padding:0;margin:0;font-size:14px}.app-property-value .app-input-wrapper .app-textitem-editable-error .error-containers .error{margin-top:5px}.autocomplete-container .input-container input:focus,hijri-gregorian-datepicker .form-group .input-group .form-control:focus,.ng-select.ng-select-focused .ng-select-container{border:1px solid #1a96c6!important;box-shadow:0 0 4px #79c3c26b!important}input::placeholder{font-size:12px}.form-control:focus{box-shadow:none!important}.mat-stepper-horizontal{margin-top:-25px}.mat-stepper-horizontal .mat-horizontal-stepper-header-container .mat-step-header.cdk-program-focused{background-color:transparent}.mat-stepper-horizontal .mat-horizontal-stepper-header-container .mat-step-header .mat-step-icon-selected{background-color:transparent;color:#fff;background-image:linear-gradient(to right,#0dbab5,#1a96c6)}@media only screen and (max-width: 576px){.mat-stepper-horizontal .mat-horizontal-stepper-header-container .mat-step-header .mat-step-label .mat-step-text-label{white-space:pre-wrap;overflow:visible}}.mat-stepper-horizontal .mat-horizontal-content-container{overflow:visible}@media only screen and (max-width: 768px){.mat-stepper-horizontal .mat-horizontal-content-container{padding:0 0 24px}}.mat-stepper-horizontal.rtl .mat-horizontal-stepper-header:first-child:after,.mat-stepper-horizontal.rtl .mat-horizontal-stepper-header:last-child:before{display:none}.mat-stepper-horizontal.rtl .mat-horizontal-stepper-header:first-child:before{border-top-width:1px;border-top-style:solid;content:\"\";display:inline-block;height:0;position:absolute;width:calc(50% - 20px);left:0}.mat-stepper-horizontal.rtl .mat-horizontal-stepper-header:last-child:after{border-top-width:1px;border-top-style:solid;content:\"\";display:inline-block;height:0;position:absolute;width:calc(50% - 20px);right:0}.form-wrapper{padding:30px 15px;border:1px solid #dde0e2}.form-wrapper .buttons-wrapper{display:flex;justify-content:space-between}.form-wrapper .buttons-wrapper .action-buttons-wrapper{display:flex}.form-wrapper .buttons-wrapper button{background-image:linear-gradient(to right,#0dbab5,#1a96c6);height:40px;color:#fff;border:none;width:125px;margin-top:20px;border-radius:5px}.form-wrapper .buttons-wrapper button:disabled{opacity:.4;cursor:not-allowed}.form-wrapper .buttons-wrapper button:hover{opacity:.7}.form-wrapper .upload-wrapper{display:flex;flex-direction:column;justify-content:flex-end}.form-wrapper .upload-wrapper label{color:#8f98aa;font-size:14px}.form-wrapper .upload-wrapper button{padding:10px;border:1px solid lightgray}.form-wrapper .upload-wrapper button span{margin:0 10px}.renameFileComponent .form-wrapper{padding:30px 15px;border:none!important}.renameFileComponent .form-wrapper .buttons-wrapper{display:flex;justify-content:space-between}.renameFileComponent .form-wrapper .buttons-wrapper .action-buttons-wrapper{display:flex}.renameFileComponent .form-wrapper .buttons-wrapper button{background-image:linear-gradient(to right,#0dbab5,#1a96c6);height:40px;color:#fff;border:none;width:125px;margin-top:20px;border-radius:5px}.renameFileComponent .form-wrapper .buttons-wrapper button:disabled{opacity:.4;cursor:not-allowed}.renameFileComponent .form-wrapper .buttons-wrapper button:hover{opacity:.7}.renameFileComponent .form-wrapper .upload-wrapper{display:flex;flex-direction:column;justify-content:flex-end}.renameFileComponent .form-wrapper .upload-wrapper label{color:#8f98aa;font-size:14px}.renameFileComponent .form-wrapper .upload-wrapper button{padding:10px;border:1px solid lightgray}.renameFileComponent .form-wrapper .upload-wrapper button span{margin:0 10px}.my-dynamic-viewer{display:flex;align-items:center;font-size:12px;min-height:30px}.my-dynamic-viewer .my-label{font-size:12px;font-weight:500;width:150px;word-break:break-word}@media (max-width: 992px){.my-dynamic-viewer .my-label{width:50%}}.my-dynamic-viewer .my-value{width:calc(100% - 150px);word-break:break-word}@media (max-width: 992px){.my-dynamic-viewer .my-value{width:50%}}.my-dynamic-viewer .direction-img{font-size:14px}.my-dynamic-viewer .direction-img .incoming{display:none}.my-dynamic-viewer .direction-img .outgoing{display:none}.my-dynamic-viewer .direction-img .internal{display:none}.my-dynamic-viewer.draft .my-value{color:#596973}.my-dynamic-viewer.inProgress .my-value{color:#3c3cf0}.my-dynamic-viewer.registered .my-value{color:#4f008c}.my-dynamic-viewer.archived .my-value{color:#fbb62c}.my-dynamic-viewer.closed .my-value{color:#00dca5}.my-dynamic-viewer.approved .my-value{color:#06a57e}.my-dynamic-viewer.assigned .my-value{color:#fd6670}.my-dynamic-viewer.sent .my-value{color:#3c3cf0}.my-dynamic-viewer.published .my-value{color:#00dca5}.my-dynamic-viewer.Outgoing .my-value{display:flex}.my-dynamic-viewer.Outgoing .my-value .direction-img .outgoing{color:#fbb62c;margin:1px 5px;display:flex}.my-dynamic-viewer.Outgoing .my-value .text{margin:0 5px}.my-dynamic-viewer.Internal .my-value{display:flex}.my-dynamic-viewer.Internal .my-value .direction-img .internal{color:#3c3cf0;margin:1px 5px;display:flex}.my-dynamic-viewer.Internal .my-value .text{margin:0 5px}.my-dynamic-viewer.Incoming .my-value{display:flex}.my-dynamic-viewer.Incoming .my-value .direction-img .incoming{color:#00dca5;display:flex}.my-dynamic-viewer.Incoming .my-value .text{margin:-3px 5px 0}.my-dynamic-viewer.vertical{display:block}.my-dynamic-viewer.vertical .my-label{width:auto}.my-dynamic-viewer.vertical .my-value{width:auto}.my-dynamic-viewer.with-out-label{width:100%!important}.avtivity-wrapper{margin-bottom:36px;background:#fff;display:flex;position:relative}.avtivity-wrapper .avtivity-point{display:block;width:14px;height:14px;border-radius:50%;border:4px solid #0dbab5;background-color:#fff;position:absolute;top:0px;left:-28px}.avtivity-wrapper .avtivity-point .new-icon-section{display:none}.avtivity-wrapper .avtivity-point.draft{border-color:#596973!important}.avtivity-wrapper .avtivity-point.registered{border-color:#5a1496!important}.avtivity-wrapper .avtivity-point.closed{border-color:#00dca5!important}.avtivity-wrapper .avtivity-point.inProgress{border-color:#3c3cf0!important}.avtivity-wrapper .avtivity-point.archived{border-color:#fbb62c!important}.avtivity-wrapper .avtivity-panal{width:100%;border-radius:8px;border-inline-start:8px solid #0dbab5;padding:20px;position:relative;box-shadow:0 0 25px #0000001a}.avtivity-wrapper .avtivity-panal.draft{border-color:#596973!important}.avtivity-wrapper .avtivity-panal.registered{border-color:#5a1496!important}.avtivity-wrapper .avtivity-panal.inProgress{border-color:#3c3cf0!important}.avtivity-wrapper .avtivity-panal.closed{border-color:#00dca5!important}.avtivity-wrapper .avtivity-panal.archived{border-color:#fbb62c!important}.avtivity-wrapper .avtivity-panal.meeting_created{border-color:#3c3cf0!important}.avtivity-wrapper .avtivity-panal .avtivity-corr-status{position:absolute;background:#ffffff;font-size:11px;width:100px;height:24px;border:1px solid #0dbab5;border-radius:5px;left:11px;top:-13px;text-align:center;display:flex;align-items:center;justify-content:center}.avtivity-wrapper .avtivity-panal .avtivity-corr-status.draft{border-color:#596973!important}.avtivity-wrapper .avtivity-panal .avtivity-corr-status.registered{border-color:#5a1496!important}.avtivity-wrapper .avtivity-panal .avtivity-corr-status.inProgress{border-color:#3c3cf0!important}.avtivity-wrapper .avtivity-panal .avtivity-corr-status.closed{border-color:#00dca5!important}.avtivity-wrapper .avtivity-panal .avtivity-corr-status.archived{border-color:#fbb62c!important}.avtivity-wrapper .avtivity-panal .avtivity-corr-status.meeting_created{border-color:#3c3cf0!important}.avtivity-wrapper .avtivity-panal .avtivity-heading{display:flex;justify-content:space-between;margin-bottom:10px;border-bottom:2px solid #f5f6f8}.avtivity-wrapper .avtivity-panal .avtivity-heading .avtivity-date{font-size:12px;color:#6a768e}.avtivity-wrapper .avtivity-panal .avtivity-heading .defult-avtivity-date{font-size:12px;color:#6a768e;display:none}.avtivity-wrapper .avtivity-panal .avtivity-heading .avtivity-title{margin-bottom:8px;font-size:14px;color:#6a768e}.avtivity-wrapper .avtivity-panal .avtivity-heading .avtivity-title .status{font-weight:400;font-size:16px;color:#465573!important}.rtl .avtivity-corr-status{left:unset;right:11px}.rtl .avtivity-point{left:unset;right:-28px}\n"], components: [{ type: ActivityLineComponent, selector: "cts-activity-line", inputs: ["item", "documentTitle", "newLogActor", "isArabic"] }], directives: [{ type: i4__namespace$1.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }], pipes: { "translate": i1__namespace.TranslatePipe, "localizedDate": LocalizedDatePipe }, encapsulation: i0__namespace.ViewEncapsulation.None });
|
|
25596
25596
|
i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0__namespace, type: SingleActivityComponent, decorators: [{
|
|
25597
25597
|
type: i0.Component,
|
|
25598
25598
|
args: [{
|
|
@@ -27104,8 +27104,7 @@
|
|
|
27104
27104
|
}
|
|
27105
27105
|
};
|
|
27106
27106
|
this.refresh = function () {
|
|
27107
|
-
if (_this.myPageConfiguration.fileMangerObjectName ===
|
|
27108
|
-
'externalshareFileMangerObj') {
|
|
27107
|
+
if (_this.myPageConfiguration.fileMangerObjectName === 'externalshareFileMangerObj') {
|
|
27109
27108
|
_this.fileManagerService.customEvent.emit('refresh');
|
|
27110
27109
|
}
|
|
27111
27110
|
else {
|
|
@@ -27197,8 +27196,7 @@
|
|
|
27197
27196
|
? (successMessage = 'unsubscribe_To_Item_success')
|
|
27198
27197
|
: (successMessage = 'subscribe_To_Item_success');
|
|
27199
27198
|
_this.customToastrService.show('success', 'TOASTER.SUCCESS', "TOASTER." + successMessage);
|
|
27200
|
-
_this.selectedItem.isUserSubscriberToFile =
|
|
27201
|
-
!_this.selectedItem.isUserSubscriberToFile;
|
|
27199
|
+
_this.selectedItem.isUserSubscriberToFile = !_this.selectedItem.isUserSubscriberToFile;
|
|
27202
27200
|
_this.multiSelectedkeys = [''];
|
|
27203
27201
|
}
|
|
27204
27202
|
}, function (err) {
|
|
@@ -27235,10 +27233,7 @@
|
|
|
27235
27233
|
});
|
|
27236
27234
|
});
|
|
27237
27235
|
newSelectedWithArrPrefix_1.map(function (item, index) {
|
|
27238
|
-
_this.newSelectedWithIdPrefix +=
|
|
27239
|
-
index == newSelectedWithArrPrefix_1.length - 1
|
|
27240
|
-
? item.id
|
|
27241
|
-
: item.id + ',';
|
|
27236
|
+
_this.newSelectedWithIdPrefix += index == newSelectedWithArrPrefix_1.length - 1 ? item.id : item.id + ',';
|
|
27242
27237
|
item.type == 'Folder' ? (myType = 'Folder') : null;
|
|
27243
27238
|
});
|
|
27244
27239
|
}
|
|
@@ -27248,23 +27243,15 @@
|
|
|
27248
27243
|
height: '400px',
|
|
27249
27244
|
panelClass: 'watcher-dialog-container',
|
|
27250
27245
|
data: {
|
|
27251
|
-
id: _this.multipleItems.length > 1
|
|
27252
|
-
|
|
27253
|
-
: _this.selectedItem.id,
|
|
27254
|
-
PublishType: _this.multipleItems.length > 1
|
|
27255
|
-
? myType
|
|
27256
|
-
: _this.selectedItem.isDirectory
|
|
27257
|
-
? 'Folder'
|
|
27258
|
-
: 'File'
|
|
27246
|
+
id: _this.multipleItems.length > 1 ? _this.newSelectedWithIdPrefix : _this.selectedItem.id,
|
|
27247
|
+
PublishType: _this.multipleItems.length > 1 ? myType : _this.selectedItem.isDirectory ? 'Folder' : 'File'
|
|
27259
27248
|
}
|
|
27260
27249
|
});
|
|
27261
27250
|
};
|
|
27262
27251
|
this.addToClipboard = function () {
|
|
27263
27252
|
var selectedItemsIds = _this.selectedItems.split(',');
|
|
27264
27253
|
var directory = _this.getCurrentDirectory();
|
|
27265
|
-
var id = directory.dataItem === undefined
|
|
27266
|
-
? _this.mainFolder
|
|
27267
|
-
: _this.getCurrentFolderId(directory);
|
|
27254
|
+
var id = directory.dataItem === undefined ? _this.mainFolder : _this.getCurrentFolderId(directory);
|
|
27268
27255
|
if (selectedItemsIds.length === 1 &&
|
|
27269
27256
|
_this.clipboardItems.length > 0 &&
|
|
27270
27257
|
_this.clipboardItems.indexOf(selectedItemsIds[0]) > -1) {
|
|
@@ -27317,8 +27304,7 @@
|
|
|
27317
27304
|
this.nuxeoService = this.injectorObj.get(NuxeoService);
|
|
27318
27305
|
this.nuxeoDialogService = this.injectorObj.get(NuxeoDialogService);
|
|
27319
27306
|
this.multiSelectedkeys = [''];
|
|
27320
|
-
this.myPageConfiguration =
|
|
27321
|
-
this.appConfService.myConfiguration.fileManger[this.myPageConfName];
|
|
27307
|
+
this.myPageConfiguration = this.appConfService.myConfiguration.fileManger[this.myPageConfName];
|
|
27322
27308
|
this.subscriptions.concat([
|
|
27323
27309
|
this.router.events.subscribe(function (event) {
|
|
27324
27310
|
if (event.navigationTrigger === 'popstate') {
|
|
@@ -27360,9 +27346,7 @@
|
|
|
27360
27346
|
this.subscriptions.concat([
|
|
27361
27347
|
this.translationService.isArabic.subscribe(function (res) {
|
|
27362
27348
|
_this.isArabic = res;
|
|
27363
|
-
_this.isArabic
|
|
27364
|
-
? (_this.menuDirection = 'before')
|
|
27365
|
-
: (_this.menuDirection = 'after');
|
|
27349
|
+
_this.isArabic ? (_this.menuDirection = 'before') : (_this.menuDirection = 'after');
|
|
27366
27350
|
})
|
|
27367
27351
|
]);
|
|
27368
27352
|
if (this.userPreferenceService) {
|
|
@@ -27410,18 +27394,14 @@
|
|
|
27410
27394
|
};
|
|
27411
27395
|
FileManagerAbstract.prototype.ngAfterViewChecked = function () {
|
|
27412
27396
|
var _this = this;
|
|
27413
|
-
this.fileManager.instance._filesTreeView._filesTreeView._dataAdapter.options.onNodeChanged =
|
|
27414
|
-
|
|
27415
|
-
|
|
27416
|
-
|
|
27417
|
-
|
|
27418
|
-
|
|
27419
|
-
|
|
27420
|
-
|
|
27421
|
-
.path === ''
|
|
27422
|
-
? document
|
|
27423
|
-
.getElementsByClassName('dx-menu-item-content')[0]
|
|
27424
|
-
.classList.add('custom')
|
|
27397
|
+
this.fileManager.instance._filesTreeView._filesTreeView._dataAdapter.options.onNodeChanged = function (node) {
|
|
27398
|
+
var _a;
|
|
27399
|
+
if (!(node === null || node === void 0 ? void 0 : node.itemsLoaded)) {
|
|
27400
|
+
_this.reinitializeFolderTree((_a = node === null || node === void 0 ? void 0 : node.fileItem.dataItem) === null || _a === void 0 ? void 0 : _a.id, node.fileItem, node);
|
|
27401
|
+
}
|
|
27402
|
+
};
|
|
27403
|
+
this.fileManager.instance._breadcrumbs._currentDirectory.fileItem.path === ''
|
|
27404
|
+
? document.getElementsByClassName('dx-menu-item-content')[0].classList.add('custom')
|
|
27425
27405
|
: '';
|
|
27426
27406
|
};
|
|
27427
27407
|
FileManagerAbstract.prototype.init = function (id, breadcrumbs, currentFolder) {
|
|
@@ -27436,9 +27416,7 @@
|
|
|
27436
27416
|
var _a, _b, _c;
|
|
27437
27417
|
var toSubstr;
|
|
27438
27418
|
if (_this.mainFolder === 'sharedDocumentsRoot') {
|
|
27439
|
-
toSubstr = _this.fileManagerService.sharedFiles.entries.filter(function (item) { return _this.path.includes(item.contextParameters.breadcrumb.entries
|
|
27440
|
-
.map(function (item) { return item.title; })
|
|
27441
|
-
.join('/')); });
|
|
27419
|
+
toSubstr = _this.fileManagerService.sharedFiles.entries.filter(function (item) { return _this.path.includes(item.contextParameters.breadcrumb.entries.map(function (item) { return item.title; }).join('/')); });
|
|
27442
27420
|
var pathSplit = (_a = toSubstr[0]) === null || _a === void 0 ? void 0 : _a.contextParameters.breadcrumb.entries.map(function (item) { return item.title; });
|
|
27443
27421
|
_this.currentPath = pathSplit[pathSplit.length - 1];
|
|
27444
27422
|
}
|
|
@@ -27450,14 +27428,11 @@
|
|
|
27450
27428
|
else {
|
|
27451
27429
|
// if not static root then there is multiple objects in storag
|
|
27452
27430
|
// if user was admin then use the full path
|
|
27453
|
-
if (_this.nuxeoService.nuxeoClient.user.isAdministrator ||
|
|
27454
|
-
_this.myPageConfiguration.useFullPath) {
|
|
27431
|
+
if (_this.nuxeoService.nuxeoClient.user.isAdministrator || _this.myPageConfiguration.useFullPath) {
|
|
27455
27432
|
_this.currentPath = _this.path;
|
|
27456
27433
|
}
|
|
27457
27434
|
else {
|
|
27458
|
-
toSubstr = _this.fileManagerObj.entries.filter(function (item) { return _this.path.includes(item.contextParameters.breadcrumb.entries
|
|
27459
|
-
.map(function (item) { return item.title; })
|
|
27460
|
-
.join('/')); });
|
|
27435
|
+
toSubstr = _this.fileManagerObj.entries.filter(function (item) { var _a, _b, _c, _d; return _this.path.includes((_d = (_c = (_b = (_a = item.contextParameters) === null || _a === void 0 ? void 0 : _a.breadcrumb) === null || _b === void 0 ? void 0 : _b.entries) === null || _c === void 0 ? void 0 : _c.map(function (item) { return item.title; })) === null || _d === void 0 ? void 0 : _d.join('/')); });
|
|
27461
27436
|
var pathSplit = (_b = toSubstr[0]) === null || _b === void 0 ? void 0 : _b.contextParameters.breadcrumb.entries.map(function (item) { return item.title; });
|
|
27462
27437
|
var x = pathSplit ? (_c = pathSplit[0]) === null || _c === void 0 ? void 0 : _c.length : 0;
|
|
27463
27438
|
_this.currentPath = _this.path.substr(x);
|
|
@@ -27466,20 +27441,14 @@
|
|
|
27466
27441
|
}
|
|
27467
27442
|
_this.fileItems = d;
|
|
27468
27443
|
var directory = _this.getCurrentDirectory();
|
|
27469
|
-
_this.currentFolder =
|
|
27470
|
-
directory.dataItem === undefined
|
|
27471
|
-
? _this.canCreate
|
|
27472
|
-
: directory.dataItem.canCreate;
|
|
27444
|
+
_this.currentFolder = directory.dataItem === undefined ? _this.canCreate : directory.dataItem.canCreate;
|
|
27473
27445
|
});
|
|
27474
27446
|
}
|
|
27475
27447
|
else {
|
|
27476
27448
|
this.getFolderChildren(id, payload).subscribe(function (data) {
|
|
27477
27449
|
_this.fileItems = data;
|
|
27478
27450
|
var directory = _this.getCurrentDirectory();
|
|
27479
|
-
_this.currentFolder =
|
|
27480
|
-
directory.dataItem === undefined
|
|
27481
|
-
? _this.canCreate
|
|
27482
|
-
: directory.dataItem.canCreate;
|
|
27451
|
+
_this.currentFolder = directory.dataItem === undefined ? _this.canCreate : directory.dataItem.canCreate;
|
|
27483
27452
|
// this is required to redraw the tree to make it show up to solve issue with the tree not showing in the first time load
|
|
27484
27453
|
setTimeout(function () {
|
|
27485
27454
|
_this.fileItems = __spreadArray([], __read(data));
|
|
@@ -27556,13 +27525,9 @@
|
|
|
27556
27525
|
};
|
|
27557
27526
|
if (!(directory.dataItem === undefined)) return [3 /*break*/, 1];
|
|
27558
27527
|
__classPrivateFieldGet(this, _FileManagerAbstract_instances, "m", _FileManagerAbstract_resetPagination).call(this, this.mainFolder);
|
|
27559
|
-
this.fileManagerService
|
|
27560
|
-
.refreshData(this.mainFolder, payload)
|
|
27561
|
-
.subscribe(function (result) {
|
|
27528
|
+
this.fileManagerService.refreshData(this.mainFolder, payload).subscribe(function (result) {
|
|
27562
27529
|
__classPrivateFieldGet(_this, _FileManagerAbstract_instances, "m", _FileManagerAbstract_initPagination).call(_this, _this.mainFolder, result);
|
|
27563
|
-
var data = payload && FileManagerPaginationConfig.Enable
|
|
27564
|
-
? result.data
|
|
27565
|
-
: result;
|
|
27530
|
+
var data = payload && FileManagerPaginationConfig.Enable ? result.data : result;
|
|
27566
27531
|
_this.showNoDataImage(data);
|
|
27567
27532
|
_this.fileItems = data;
|
|
27568
27533
|
_this.clicked = false;
|
|
@@ -27576,9 +27541,7 @@
|
|
|
27576
27541
|
.pipe(operators.map(function (result) {
|
|
27577
27542
|
__classPrivateFieldGet(_this, _FileManagerAbstract_instances, "m", _FileManagerAbstract_initPagination).call(_this, id, result);
|
|
27578
27543
|
_this.startLoading({ directory: directory });
|
|
27579
|
-
var data = payload && FileManagerPaginationConfig.Enable
|
|
27580
|
-
? result.data
|
|
27581
|
-
: result;
|
|
27544
|
+
var data = payload && FileManagerPaginationConfig.Enable ? result.data : result;
|
|
27582
27545
|
_this.showNoDataImage(data);
|
|
27583
27546
|
_this.clicked = false;
|
|
27584
27547
|
return data;
|
|
@@ -27601,12 +27564,10 @@
|
|
|
27601
27564
|
var _a, _b;
|
|
27602
27565
|
if (this.itemListView) {
|
|
27603
27566
|
if ((data === null || data === void 0 ? void 0 : data.length) === 0) {
|
|
27604
|
-
(_a = document
|
|
27605
|
-
.getElementsByClassName('dx-filemanager-thumbnails-view-port')[0]) === null || _a === void 0 ? void 0 : _a.classList.add('empty-collection');
|
|
27567
|
+
(_a = document.getElementsByClassName('dx-filemanager-thumbnails-view-port')[0]) === null || _a === void 0 ? void 0 : _a.classList.add('empty-collection');
|
|
27606
27568
|
}
|
|
27607
27569
|
else {
|
|
27608
|
-
(_b = document
|
|
27609
|
-
.getElementsByClassName('dx-filemanager-thumbnails-view-port')[0]) === null || _b === void 0 ? void 0 : _b.classList.remove('empty-collection');
|
|
27570
|
+
(_b = document.getElementsByClassName('dx-filemanager-thumbnails-view-port')[0]) === null || _b === void 0 ? void 0 : _b.classList.remove('empty-collection');
|
|
27610
27571
|
}
|
|
27611
27572
|
}
|
|
27612
27573
|
else {
|
|
@@ -27636,9 +27597,7 @@
|
|
|
27636
27597
|
this.path = res.path;
|
|
27637
27598
|
}
|
|
27638
27599
|
else {
|
|
27639
|
-
this.path = res.contextParameters.breadcrumb.entries
|
|
27640
|
-
.map(function (item) { return item.title; })
|
|
27641
|
-
.join('/');
|
|
27600
|
+
this.path = res.contextParameters.breadcrumb.entries.map(function (item) { return item.title; }).join('/');
|
|
27642
27601
|
}
|
|
27643
27602
|
if (this.route.snapshot.queryParams['fromSharedDocument']) {
|
|
27644
27603
|
res.contextParameters.breadcrumb.entries = __spreadArray([
|
|
@@ -27679,17 +27638,14 @@
|
|
|
27679
27638
|
});
|
|
27680
27639
|
};
|
|
27681
27640
|
FileManagerAbstract.prototype.getSelectedItem = function (directory) {
|
|
27682
|
-
var selectedItem = (directory === null || directory === void 0 ? void 0 : directory.dataItem) && directory.dataItem.id
|
|
27683
|
-
? directory.dataItem.id
|
|
27684
|
-
: this.mainFolder;
|
|
27641
|
+
var selectedItem = (directory === null || directory === void 0 ? void 0 : directory.dataItem) && directory.dataItem.id ? directory.dataItem.id : this.mainFolder;
|
|
27685
27642
|
return selectedItem;
|
|
27686
27643
|
};
|
|
27687
27644
|
FileManagerAbstract.prototype.contextItemsParser = function (items) {
|
|
27688
27645
|
if (items === void 0) { items = []; }
|
|
27689
27646
|
return items.map(function (item) {
|
|
27690
27647
|
var parsed = Object.assign({}, item);
|
|
27691
|
-
if (parsed.visibleEvaluator &&
|
|
27692
|
-
typeof parsed.visibleEvaluator == 'function') {
|
|
27648
|
+
if (parsed.visibleEvaluator && typeof parsed.visibleEvaluator == 'function') {
|
|
27693
27649
|
parsed.visible = parsed.visibleEvaluator();
|
|
27694
27650
|
}
|
|
27695
27651
|
return parsed;
|
|
@@ -27709,9 +27665,7 @@
|
|
|
27709
27665
|
if (selectedItem.some(function (q) { var _a; return !((_a = q === null || q === void 0 ? void 0 : q.dataItem) === null || _a === void 0 ? void 0 : _a.isReady); }))
|
|
27710
27666
|
return;
|
|
27711
27667
|
this.itemsSelected =
|
|
27712
|
-
(e === null || e === void 0 ? void 0 : e.selectedItems.length) > 1
|
|
27713
|
-
? (e === null || e === void 0 ? void 0 : e.selectedItems.length) + " items"
|
|
27714
|
-
: (_a = e === null || e === void 0 ? void 0 : e.selectedItems[0]) === null || _a === void 0 ? void 0 : _a.dataItem.name;
|
|
27668
|
+
(e === null || e === void 0 ? void 0 : e.selectedItems.length) > 1 ? (e === null || e === void 0 ? void 0 : e.selectedItems.length) + " items" : (_a = e === null || e === void 0 ? void 0 : e.selectedItems[0]) === null || _a === void 0 ? void 0 : _a.dataItem.name;
|
|
27715
27669
|
this.isItemSelected = (e === null || e === void 0 ? void 0 : e.selectedItems.length) > 0 ? true : false;
|
|
27716
27670
|
this.selectedItemLength = selectedItem.length > 1 ? false : true;
|
|
27717
27671
|
if ((_b = e === null || e === void 0 ? void 0 : e.selectedItems[0]) === null || _b === void 0 ? void 0 : _b.dataItem) {
|
|
@@ -27746,9 +27700,7 @@
|
|
|
27746
27700
|
text: this.isArabic ? 'مجلد جديد' : 'New Directory',
|
|
27747
27701
|
action: this.createFolder,
|
|
27748
27702
|
visibleEvaluator: function () {
|
|
27749
|
-
return
|
|
27750
|
-
_this.selectedItemLength &&
|
|
27751
|
-
_this.selectedItem.canCreate);
|
|
27703
|
+
return _this.selectedItem.isDirectory && _this.selectedItemLength && _this.selectedItem.canCreate;
|
|
27752
27704
|
}
|
|
27753
27705
|
}
|
|
27754
27706
|
]);
|
|
@@ -27770,10 +27722,7 @@
|
|
|
27770
27722
|
var itemData = _q.itemData, viewArea = _q.viewArea, fileSystemItem = _q.fileSystemItem;
|
|
27771
27723
|
var _a;
|
|
27772
27724
|
var selectedItem = this.fileManager.instance.getSelectedItems();
|
|
27773
|
-
this.itemToDisplay =
|
|
27774
|
-
viewArea === 'navPane'
|
|
27775
|
-
? fileSystemItem.dataItem
|
|
27776
|
-
: (_a = selectedItem[0]) === null || _a === void 0 ? void 0 : _a.dataItem;
|
|
27725
|
+
this.itemToDisplay = viewArea === 'navPane' ? fileSystemItem.dataItem : (_a = selectedItem[0]) === null || _a === void 0 ? void 0 : _a.dataItem;
|
|
27777
27726
|
var directory = this.getCurrentDirectory();
|
|
27778
27727
|
var id = this.getCurrentFolderId(directory);
|
|
27779
27728
|
itemData.action();
|
|
@@ -27790,9 +27739,7 @@
|
|
|
27790
27739
|
};
|
|
27791
27740
|
FileManagerAbstract.prototype.getCurrentFolderId = function (directory) {
|
|
27792
27741
|
var _a, _b;
|
|
27793
|
-
var id = directory.dataItem === undefined
|
|
27794
|
-
? (_a = this.selectedItem) === null || _a === void 0 ? void 0 : _a.id
|
|
27795
|
-
: (_b = directory.dataItem) === null || _b === void 0 ? void 0 : _b.id;
|
|
27742
|
+
var id = directory.dataItem === undefined ? (_a = this.selectedItem) === null || _a === void 0 ? void 0 : _a.id : (_b = directory.dataItem) === null || _b === void 0 ? void 0 : _b.id;
|
|
27796
27743
|
return id;
|
|
27797
27744
|
};
|
|
27798
27745
|
// ------------------------------------------------------------
|
|
@@ -27814,18 +27761,14 @@
|
|
|
27814
27761
|
this.selectedFolderPath = (_b = (_a = e.directory.dataItem) === null || _a === void 0 ? void 0 : _a.entity) === null || _b === void 0 ? void 0 : _b.path;
|
|
27815
27762
|
if (((_c = e.directory.dataItem) === null || _c === void 0 ? void 0 : _c.id) === undefined) {
|
|
27816
27763
|
if (this.mainFolder === 'sharedDocumentsRoot') {
|
|
27817
|
-
this.fileManagerService
|
|
27818
|
-
.getChildrenForSharedDocumentRoot(this.mainFolder)
|
|
27819
|
-
.subscribe(function (data) {
|
|
27764
|
+
this.fileManagerService.getChildrenForSharedDocumentRoot(this.mainFolder).subscribe(function (data) {
|
|
27820
27765
|
_this.showNoDataImage(data);
|
|
27821
27766
|
_this.fileItems = data;
|
|
27822
27767
|
return _this.fileItems;
|
|
27823
27768
|
});
|
|
27824
27769
|
}
|
|
27825
27770
|
else {
|
|
27826
|
-
this.fileManagerService
|
|
27827
|
-
.refreshData(this.mainFolder)
|
|
27828
|
-
.subscribe(function (data) {
|
|
27771
|
+
this.fileManagerService.refreshData(this.mainFolder).subscribe(function (data) {
|
|
27829
27772
|
_this.showNoDataImage(data);
|
|
27830
27773
|
_this.fileItems = data;
|
|
27831
27774
|
return _this.fileItems;
|
|
@@ -27855,9 +27798,7 @@
|
|
|
27855
27798
|
}
|
|
27856
27799
|
this.itemListView = e.component._itemView._itemList;
|
|
27857
27800
|
if (this.itemListView) {
|
|
27858
|
-
document
|
|
27859
|
-
.getElementsByClassName('dx-filemanager-thumbnails-view-port')[0]
|
|
27860
|
-
.classList.remove('empty-collection');
|
|
27801
|
+
document.getElementsByClassName('dx-filemanager-thumbnails-view-port')[0].classList.remove('empty-collection');
|
|
27861
27802
|
}
|
|
27862
27803
|
else {
|
|
27863
27804
|
loadPanelElement = document.getElementsByClassName('dx-loadpanel-content')[0];
|
|
@@ -27868,19 +27809,15 @@
|
|
|
27868
27809
|
}
|
|
27869
27810
|
}
|
|
27870
27811
|
elem = ((_j = e === null || e === void 0 ? void 0 : e.directory) === null || _j === void 0 ? void 0 : _j.path) === ''
|
|
27871
|
-
? document
|
|
27872
|
-
.getElementsByClassName('dx-menu-item-content')[0]
|
|
27873
|
-
.classList.add('custom')
|
|
27812
|
+
? document.getElementsByClassName('dx-menu-item-content')[0].classList.add('custom')
|
|
27874
27813
|
: '';
|
|
27875
27814
|
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;
|
|
27876
|
-
this.fileManagerService.selectedFolderId =
|
|
27877
|
-
(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;
|
|
27815
|
+
this.fileManagerService.selectedFolderId = (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;
|
|
27878
27816
|
queryParams = {
|
|
27879
27817
|
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
|
|
27880
27818
|
};
|
|
27881
27819
|
_.each(this.fileManager.instance._filesTreeView._filesTreeView._dataAdapter.getExpandedNodesKeys(), function (key) {
|
|
27882
|
-
if (key.includes(e.directory.path) &&
|
|
27883
|
-
key.replace('FIK_', '') !== e.directory.path) {
|
|
27820
|
+
if (key.includes(e.directory.path) && key.replace('FIK_', '') !== e.directory.path) {
|
|
27884
27821
|
_this.fileManager.instance._filesTreeView._filesTreeView._toggleExpandedState(key, false);
|
|
27885
27822
|
}
|
|
27886
27823
|
});
|
|
@@ -27905,9 +27842,7 @@
|
|
|
27905
27842
|
currentPageIndex: 0
|
|
27906
27843
|
};
|
|
27907
27844
|
if (!!e.directory.dataItem.isReady) return [3 /*break*/, 2];
|
|
27908
|
-
return [4 /*yield*/, this.fileManagerService
|
|
27909
|
-
.getMapedFolder(id)
|
|
27910
|
-
.toPromise()];
|
|
27845
|
+
return [4 /*yield*/, this.fileManagerService.getMapedFolder(id).toPromise()];
|
|
27911
27846
|
case 1:
|
|
27912
27847
|
newDataItem = _r.sent();
|
|
27913
27848
|
_.assign(e.directory.dataItem, newDataItem);
|
|
@@ -27931,17 +27866,12 @@
|
|
|
27931
27866
|
}
|
|
27932
27867
|
catch (e) { }
|
|
27933
27868
|
if (!this.itemListView) {
|
|
27934
|
-
document
|
|
27935
|
-
.getElementsByClassName('dx-loadpanel-content')[0]
|
|
27936
|
-
.classList.remove('hide-loadpanel');
|
|
27869
|
+
document.getElementsByClassName('dx-loadpanel-content')[0].classList.remove('hide-loadpanel');
|
|
27937
27870
|
}
|
|
27938
27871
|
_r.label = 4;
|
|
27939
27872
|
case 4:
|
|
27940
27873
|
directory = this.getCurrentDirectory();
|
|
27941
|
-
this.currentFolder =
|
|
27942
|
-
directory.dataItem === undefined
|
|
27943
|
-
? this.canCreate
|
|
27944
|
-
: directory.dataItem.canCreate;
|
|
27874
|
+
this.currentFolder = directory.dataItem === undefined ? this.canCreate : directory.dataItem.canCreate;
|
|
27945
27875
|
return [2 /*return*/];
|
|
27946
27876
|
}
|
|
27947
27877
|
});
|
|
@@ -27965,15 +27895,11 @@
|
|
|
27965
27895
|
dialogRef.afterClosed().subscribe(function (res) {
|
|
27966
27896
|
if (res) {
|
|
27967
27897
|
if (_this.dialogMangmentService.creationMode === 'upload') {
|
|
27968
|
-
_this.dialogMangmentService.openMinimzedModalV2(CreateModalComponent, '70%', '85%', !_this.myPageConfiguration.isStaticRoot
|
|
27969
|
-
? _this.selectedFolderPath
|
|
27970
|
-
: '' // 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
|
|
27898
|
+
_this.dialogMangmentService.openMinimzedModalV2(CreateModalComponent, '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
|
|
27971
27899
|
);
|
|
27972
27900
|
}
|
|
27973
27901
|
else if (_this.dialogMangmentService.creationMode === 'scan') {
|
|
27974
|
-
_this.dialogMangmentService.openMinimzedModalV2(ScanModalComponent, '90%', '90%', !_this.myPageConfiguration.isStaticRoot
|
|
27975
|
-
? _this.selectedFolderPath
|
|
27976
|
-
: '' // 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
|
|
27902
|
+
_this.dialogMangmentService.openMinimzedModalV2(ScanModalComponent, '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
|
|
27977
27903
|
);
|
|
27978
27904
|
}
|
|
27979
27905
|
}
|
|
@@ -28048,15 +27974,11 @@
|
|
|
28048
27974
|
dialogRef.afterClosed().subscribe(function (res) {
|
|
28049
27975
|
if (res) {
|
|
28050
27976
|
if (_this.dialogMangmentService.creationMode === 'upload') {
|
|
28051
|
-
_this.dialogMangmentService.openMinimzedModalV2(CreateModalComponent, '70%', '85%', !_this.myPageConfiguration.isStaticRoot
|
|
28052
|
-
? _this.selectedFolderPath
|
|
28053
|
-
: '' // 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
|
|
27977
|
+
_this.dialogMangmentService.openMinimzedModalV2(CreateModalComponent, '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
|
|
28054
27978
|
);
|
|
28055
27979
|
}
|
|
28056
27980
|
else if (_this.dialogMangmentService.creationMode === 'scan') {
|
|
28057
|
-
_this.dialogMangmentService.openMinimzedModalV2(ScanModalComponent, '90%', '90%', !_this.myPageConfiguration.isStaticRoot
|
|
28058
|
-
? _this.selectedFolderPath
|
|
28059
|
-
: '' // 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
|
|
27981
|
+
_this.dialogMangmentService.openMinimzedModalV2(ScanModalComponent, '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
|
|
28060
27982
|
);
|
|
28061
27983
|
}
|
|
28062
27984
|
}
|
|
@@ -28093,12 +28015,7 @@
|
|
|
28093
28015
|
};
|
|
28094
28016
|
//--------------------------------- may be unused funtions -------------------
|
|
28095
28017
|
FileManagerAbstract.prototype.checkForClass = function (className) {
|
|
28096
|
-
var classes = [
|
|
28097
|
-
'detailed-menu',
|
|
28098
|
-
'ng-tag-label',
|
|
28099
|
-
'ng-option-label',
|
|
28100
|
-
'ng-star-inserted'
|
|
28101
|
-
];
|
|
28018
|
+
var classes = ['detailed-menu', 'ng-tag-label', 'ng-option-label', 'ng-star-inserted'];
|
|
28102
28019
|
var classFounded = false;
|
|
28103
28020
|
classes.map(function (item) {
|
|
28104
28021
|
if (className.includes(item)) {
|
|
@@ -28207,10 +28124,8 @@
|
|
|
28207
28124
|
};
|
|
28208
28125
|
}, _FileManagerAbstract_getNode = function _FileManagerAbstract_getNode(id) {
|
|
28209
28126
|
var fm = this.fileManager.instance;
|
|
28210
|
-
var dataStructure = fm._filesTreeView._filesTreeView._dataAdapter
|
|
28211
|
-
|
|
28212
|
-
var dataItem = dataStructure.find(function (q) { var _a, _b; return ((_b = (_a = q.fileItem) === null || _a === void 0 ? void 0 : _a.dataItem) === null || _b === void 0 ? void 0 : _b.id) == id; }) ||
|
|
28213
|
-
dataStructure[0];
|
|
28127
|
+
var dataStructure = fm._filesTreeView._filesTreeView._dataAdapter._dataStructure;
|
|
28128
|
+
var dataItem = dataStructure.find(function (q) { var _a, _b; return ((_b = (_a = q.fileItem) === null || _a === void 0 ? void 0 : _a.dataItem) === null || _b === void 0 ? void 0 : _b.id) == id; }) || dataStructure[0];
|
|
28214
28129
|
return fm._filesTreeView._filesTreeView._getNode(dataItem.internalFields.key);
|
|
28215
28130
|
}, _FileManagerAbstract_addOrReplace = function _FileManagerAbstract_addOrReplace(data, items) {
|
|
28216
28131
|
var itemMap = _.keyBy(data, 'id');
|
|
@@ -30882,11 +30797,7 @@
|
|
|
30882
30797
|
}());
|
|
30883
30798
|
NuxeoCoreModule.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0__namespace, type: NuxeoCoreModule, deps: [], target: i0__namespace.ɵɵFactoryTarget.NgModule });
|
|
30884
30799
|
NuxeoCoreModule.ɵmod = i0__namespace.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0__namespace, type: NuxeoCoreModule, imports: [i4.CommonModule, i1__namespace$6.TreeviewModule, i1.HttpClientModule, i1__namespace.TranslateModule, i1__namespace$1.ToastrModule, i2$1.KeycloakAngularModule,
|
|
30885
|
-
reactiveFormValidators.RxReactiveFormsModule], exports: [i2$1.KeycloakAngularModule,
|
|
30886
|
-
i1$1.TranslateModule,
|
|
30887
|
-
i1$6.TreeviewModule,
|
|
30888
|
-
i1$2.ToastrModule,
|
|
30889
|
-
reactiveFormValidators.RxReactiveFormsModule] });
|
|
30800
|
+
reactiveFormValidators.RxReactiveFormsModule], exports: [i2$1.KeycloakAngularModule, i1$1.TranslateModule, i1$6.TreeviewModule, i1$2.ToastrModule, reactiveFormValidators.RxReactiveFormsModule] });
|
|
30890
30801
|
NuxeoCoreModule.ɵinj = i0__namespace.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0__namespace, type: NuxeoCoreModule, providers: [
|
|
30891
30802
|
i1$1.TranslateStore,
|
|
30892
30803
|
i1$1.TranslateService,
|
|
@@ -30915,11 +30826,7 @@
|
|
|
30915
30826
|
}),
|
|
30916
30827
|
i2$1.KeycloakAngularModule,
|
|
30917
30828
|
reactiveFormValidators.RxReactiveFormsModule
|
|
30918
|
-
], i2$1.KeycloakAngularModule,
|
|
30919
|
-
i1$1.TranslateModule,
|
|
30920
|
-
i1$6.TreeviewModule,
|
|
30921
|
-
i1$2.ToastrModule,
|
|
30922
|
-
reactiveFormValidators.RxReactiveFormsModule] });
|
|
30829
|
+
], i2$1.KeycloakAngularModule, i1$1.TranslateModule, i1$6.TreeviewModule, i1$2.ToastrModule, reactiveFormValidators.RxReactiveFormsModule] });
|
|
30923
30830
|
i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0__namespace, type: NuxeoCoreModule, decorators: [{
|
|
30924
30831
|
type: i0.NgModule,
|
|
30925
30832
|
args: [{
|
|
@@ -30935,13 +30842,7 @@
|
|
|
30935
30842
|
i2$1.KeycloakAngularModule,
|
|
30936
30843
|
reactiveFormValidators.RxReactiveFormsModule
|
|
30937
30844
|
],
|
|
30938
|
-
exports: [
|
|
30939
|
-
i2$1.KeycloakAngularModule,
|
|
30940
|
-
i1$1.TranslateModule,
|
|
30941
|
-
i1$6.TreeviewModule,
|
|
30942
|
-
i1$2.ToastrModule,
|
|
30943
|
-
reactiveFormValidators.RxReactiveFormsModule
|
|
30944
|
-
],
|
|
30845
|
+
exports: [i2$1.KeycloakAngularModule, i1$1.TranslateModule, i1$6.TreeviewModule, i1$2.ToastrModule, reactiveFormValidators.RxReactiveFormsModule],
|
|
30945
30846
|
providers: [
|
|
30946
30847
|
i1$1.TranslateStore,
|
|
30947
30848
|
i1$1.TranslateService,
|