nuxeo-development-framework 4.4.5 → 4.4.6

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.
@@ -20674,9 +20674,9 @@
20674
20674
  _this.fileManagerService = fileManagerService;
20675
20675
  _this.customToastrService = customToastrService;
20676
20676
  _this.nuxeoDialogService = nuxeoDialogService;
20677
- _this.createOperation = "Collection.Create";
20678
- _this.addOperation = "Document.AddToCollection";
20679
- _this.getCollectionPP = "PP_DMS_User_Collections";
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("success", "TOASTER.SUCCESS", "TOASTER.DOCUMENT_ADDED_TO_COLLECTION");
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("error", "TOASTER.ERROR", "TOASTER.DOCUMENT_ADDED_TO_COLLECTION_ERROR");
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: "popUpParent",
20726
+ panelClass: 'popUpParent',
20728
20727
  config: {
20729
- title: this.translateService.instant("FILE_MANAGER.ADD_TO_COLLECTION"),
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
- mycategories.push({
20763
- displayLabel: entry.title,
20764
- id: entry.uid,
20765
- path: entry.path,
20766
- icon: entry.properties["common:icon"],
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["common:icon"],
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\r\n\t\t\tclass=\"collection-form-wrapper\"\r\n\t\t\t#createForm\r\n\t\t\t[formData]=\"formData\"\r\n\t\t\t[disabled]=\"loading\"\r\n\t\t>\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\r\n\t\tclass=\"dx-button-text\"\r\n\t\t(click)=\"dialog.executeAction(onFormCollectionSubmit, [$event])\"\r\n\t>\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 } });
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: "app-add-to-collection",
20799
- templateUrl: "./add-to-collection.component.html",
20800
- styleUrls: ["./add-to-collection.component.scss"],
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: ["contentTemplate"]
20802
+ args: ['contentTemplate']
20808
20803
  }], actionsTemplate: [{
20809
20804
  type: i0.ViewChild,
20810
- args: ["actionsTemplate"]
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: [{
@@ -27104,8 +27103,7 @@
27104
27103
  }
27105
27104
  };
27106
27105
  this.refresh = function () {
27107
- if (_this.myPageConfiguration.fileMangerObjectName ===
27108
- 'externalshareFileMangerObj') {
27106
+ if (_this.myPageConfiguration.fileMangerObjectName === 'externalshareFileMangerObj') {
27109
27107
  _this.fileManagerService.customEvent.emit('refresh');
27110
27108
  }
27111
27109
  else {
@@ -27197,8 +27195,7 @@
27197
27195
  ? (successMessage = 'unsubscribe_To_Item_success')
27198
27196
  : (successMessage = 'subscribe_To_Item_success');
27199
27197
  _this.customToastrService.show('success', 'TOASTER.SUCCESS', "TOASTER." + successMessage);
27200
- _this.selectedItem.isUserSubscriberToFile =
27201
- !_this.selectedItem.isUserSubscriberToFile;
27198
+ _this.selectedItem.isUserSubscriberToFile = !_this.selectedItem.isUserSubscriberToFile;
27202
27199
  _this.multiSelectedkeys = [''];
27203
27200
  }
27204
27201
  }, function (err) {
@@ -27235,10 +27232,7 @@
27235
27232
  });
27236
27233
  });
27237
27234
  newSelectedWithArrPrefix_1.map(function (item, index) {
27238
- _this.newSelectedWithIdPrefix +=
27239
- index == newSelectedWithArrPrefix_1.length - 1
27240
- ? item.id
27241
- : item.id + ',';
27235
+ _this.newSelectedWithIdPrefix += index == newSelectedWithArrPrefix_1.length - 1 ? item.id : item.id + ',';
27242
27236
  item.type == 'Folder' ? (myType = 'Folder') : null;
27243
27237
  });
27244
27238
  }
@@ -27248,23 +27242,15 @@
27248
27242
  height: '400px',
27249
27243
  panelClass: 'watcher-dialog-container',
27250
27244
  data: {
27251
- id: _this.multipleItems.length > 1
27252
- ? _this.newSelectedWithIdPrefix
27253
- : _this.selectedItem.id,
27254
- PublishType: _this.multipleItems.length > 1
27255
- ? myType
27256
- : _this.selectedItem.isDirectory
27257
- ? 'Folder'
27258
- : 'File'
27245
+ id: _this.multipleItems.length > 1 ? _this.newSelectedWithIdPrefix : _this.selectedItem.id,
27246
+ PublishType: _this.multipleItems.length > 1 ? myType : _this.selectedItem.isDirectory ? 'Folder' : 'File'
27259
27247
  }
27260
27248
  });
27261
27249
  };
27262
27250
  this.addToClipboard = function () {
27263
27251
  var selectedItemsIds = _this.selectedItems.split(',');
27264
27252
  var directory = _this.getCurrentDirectory();
27265
- var id = directory.dataItem === undefined
27266
- ? _this.mainFolder
27267
- : _this.getCurrentFolderId(directory);
27253
+ var id = directory.dataItem === undefined ? _this.mainFolder : _this.getCurrentFolderId(directory);
27268
27254
  if (selectedItemsIds.length === 1 &&
27269
27255
  _this.clipboardItems.length > 0 &&
27270
27256
  _this.clipboardItems.indexOf(selectedItemsIds[0]) > -1) {
@@ -27317,8 +27303,7 @@
27317
27303
  this.nuxeoService = this.injectorObj.get(NuxeoService);
27318
27304
  this.nuxeoDialogService = this.injectorObj.get(NuxeoDialogService);
27319
27305
  this.multiSelectedkeys = [''];
27320
- this.myPageConfiguration =
27321
- this.appConfService.myConfiguration.fileManger[this.myPageConfName];
27306
+ this.myPageConfiguration = this.appConfService.myConfiguration.fileManger[this.myPageConfName];
27322
27307
  this.subscriptions.concat([
27323
27308
  this.router.events.subscribe(function (event) {
27324
27309
  if (event.navigationTrigger === 'popstate') {
@@ -27360,9 +27345,7 @@
27360
27345
  this.subscriptions.concat([
27361
27346
  this.translationService.isArabic.subscribe(function (res) {
27362
27347
  _this.isArabic = res;
27363
- _this.isArabic
27364
- ? (_this.menuDirection = 'before')
27365
- : (_this.menuDirection = 'after');
27348
+ _this.isArabic ? (_this.menuDirection = 'before') : (_this.menuDirection = 'after');
27366
27349
  })
27367
27350
  ]);
27368
27351
  if (this.userPreferenceService) {
@@ -27410,18 +27393,14 @@
27410
27393
  };
27411
27394
  FileManagerAbstract.prototype.ngAfterViewChecked = function () {
27412
27395
  var _this = this;
27413
- this.fileManager.instance._filesTreeView._filesTreeView._dataAdapter.options.onNodeChanged =
27414
- function (node) {
27415
- var _a;
27416
- if (!(node === null || node === void 0 ? void 0 : node.itemsLoaded)) {
27417
- _this.reinitializeFolderTree((_a = node === null || node === void 0 ? void 0 : node.fileItem.dataItem) === null || _a === void 0 ? void 0 : _a.id, node.fileItem, node);
27418
- }
27419
- };
27420
- this.fileManager.instance._breadcrumbs._currentDirectory.fileItem
27421
- .path === ''
27422
- ? document
27423
- .getElementsByClassName('dx-menu-item-content')[0]
27424
- .classList.add('custom')
27396
+ this.fileManager.instance._filesTreeView._filesTreeView._dataAdapter.options.onNodeChanged = function (node) {
27397
+ var _a;
27398
+ if (!(node === null || node === void 0 ? void 0 : node.itemsLoaded)) {
27399
+ _this.reinitializeFolderTree((_a = node === null || node === void 0 ? void 0 : node.fileItem.dataItem) === null || _a === void 0 ? void 0 : _a.id, node.fileItem, node);
27400
+ }
27401
+ };
27402
+ this.fileManager.instance._breadcrumbs._currentDirectory.fileItem.path === ''
27403
+ ? document.getElementsByClassName('dx-menu-item-content')[0].classList.add('custom')
27425
27404
  : '';
27426
27405
  };
27427
27406
  FileManagerAbstract.prototype.init = function (id, breadcrumbs, currentFolder) {
@@ -27436,9 +27415,7 @@
27436
27415
  var _a, _b, _c;
27437
27416
  var toSubstr;
27438
27417
  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('/')); });
27418
+ toSubstr = _this.fileManagerService.sharedFiles.entries.filter(function (item) { return _this.path.includes(item.contextParameters.breadcrumb.entries.map(function (item) { return item.title; }).join('/')); });
27442
27419
  var pathSplit = (_a = toSubstr[0]) === null || _a === void 0 ? void 0 : _a.contextParameters.breadcrumb.entries.map(function (item) { return item.title; });
27443
27420
  _this.currentPath = pathSplit[pathSplit.length - 1];
27444
27421
  }
@@ -27450,14 +27427,11 @@
27450
27427
  else {
27451
27428
  // if not static root then there is multiple objects in storag
27452
27429
  // if user was admin then use the full path
27453
- if (_this.nuxeoService.nuxeoClient.user.isAdministrator ||
27454
- _this.myPageConfiguration.useFullPath) {
27430
+ if (_this.nuxeoService.nuxeoClient.user.isAdministrator || _this.myPageConfiguration.useFullPath) {
27455
27431
  _this.currentPath = _this.path;
27456
27432
  }
27457
27433
  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('/')); });
27434
+ 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
27435
  var pathSplit = (_b = toSubstr[0]) === null || _b === void 0 ? void 0 : _b.contextParameters.breadcrumb.entries.map(function (item) { return item.title; });
27462
27436
  var x = pathSplit ? (_c = pathSplit[0]) === null || _c === void 0 ? void 0 : _c.length : 0;
27463
27437
  _this.currentPath = _this.path.substr(x);
@@ -27466,20 +27440,14 @@
27466
27440
  }
27467
27441
  _this.fileItems = d;
27468
27442
  var directory = _this.getCurrentDirectory();
27469
- _this.currentFolder =
27470
- directory.dataItem === undefined
27471
- ? _this.canCreate
27472
- : directory.dataItem.canCreate;
27443
+ _this.currentFolder = directory.dataItem === undefined ? _this.canCreate : directory.dataItem.canCreate;
27473
27444
  });
27474
27445
  }
27475
27446
  else {
27476
27447
  this.getFolderChildren(id, payload).subscribe(function (data) {
27477
27448
  _this.fileItems = data;
27478
27449
  var directory = _this.getCurrentDirectory();
27479
- _this.currentFolder =
27480
- directory.dataItem === undefined
27481
- ? _this.canCreate
27482
- : directory.dataItem.canCreate;
27450
+ _this.currentFolder = directory.dataItem === undefined ? _this.canCreate : directory.dataItem.canCreate;
27483
27451
  // 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
27452
  setTimeout(function () {
27485
27453
  _this.fileItems = __spreadArray([], __read(data));
@@ -27556,13 +27524,9 @@
27556
27524
  };
27557
27525
  if (!(directory.dataItem === undefined)) return [3 /*break*/, 1];
27558
27526
  __classPrivateFieldGet(this, _FileManagerAbstract_instances, "m", _FileManagerAbstract_resetPagination).call(this, this.mainFolder);
27559
- this.fileManagerService
27560
- .refreshData(this.mainFolder, payload)
27561
- .subscribe(function (result) {
27527
+ this.fileManagerService.refreshData(this.mainFolder, payload).subscribe(function (result) {
27562
27528
  __classPrivateFieldGet(_this, _FileManagerAbstract_instances, "m", _FileManagerAbstract_initPagination).call(_this, _this.mainFolder, result);
27563
- var data = payload && FileManagerPaginationConfig.Enable
27564
- ? result.data
27565
- : result;
27529
+ var data = payload && FileManagerPaginationConfig.Enable ? result.data : result;
27566
27530
  _this.showNoDataImage(data);
27567
27531
  _this.fileItems = data;
27568
27532
  _this.clicked = false;
@@ -27576,9 +27540,7 @@
27576
27540
  .pipe(operators.map(function (result) {
27577
27541
  __classPrivateFieldGet(_this, _FileManagerAbstract_instances, "m", _FileManagerAbstract_initPagination).call(_this, id, result);
27578
27542
  _this.startLoading({ directory: directory });
27579
- var data = payload && FileManagerPaginationConfig.Enable
27580
- ? result.data
27581
- : result;
27543
+ var data = payload && FileManagerPaginationConfig.Enable ? result.data : result;
27582
27544
  _this.showNoDataImage(data);
27583
27545
  _this.clicked = false;
27584
27546
  return data;
@@ -27601,12 +27563,10 @@
27601
27563
  var _a, _b;
27602
27564
  if (this.itemListView) {
27603
27565
  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');
27566
+ (_a = document.getElementsByClassName('dx-filemanager-thumbnails-view-port')[0]) === null || _a === void 0 ? void 0 : _a.classList.add('empty-collection');
27606
27567
  }
27607
27568
  else {
27608
- (_b = document
27609
- .getElementsByClassName('dx-filemanager-thumbnails-view-port')[0]) === null || _b === void 0 ? void 0 : _b.classList.remove('empty-collection');
27569
+ (_b = document.getElementsByClassName('dx-filemanager-thumbnails-view-port')[0]) === null || _b === void 0 ? void 0 : _b.classList.remove('empty-collection');
27610
27570
  }
27611
27571
  }
27612
27572
  else {
@@ -27636,9 +27596,7 @@
27636
27596
  this.path = res.path;
27637
27597
  }
27638
27598
  else {
27639
- this.path = res.contextParameters.breadcrumb.entries
27640
- .map(function (item) { return item.title; })
27641
- .join('/');
27599
+ this.path = res.contextParameters.breadcrumb.entries.map(function (item) { return item.title; }).join('/');
27642
27600
  }
27643
27601
  if (this.route.snapshot.queryParams['fromSharedDocument']) {
27644
27602
  res.contextParameters.breadcrumb.entries = __spreadArray([
@@ -27679,17 +27637,14 @@
27679
27637
  });
27680
27638
  };
27681
27639
  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;
27640
+ var selectedItem = (directory === null || directory === void 0 ? void 0 : directory.dataItem) && directory.dataItem.id ? directory.dataItem.id : this.mainFolder;
27685
27641
  return selectedItem;
27686
27642
  };
27687
27643
  FileManagerAbstract.prototype.contextItemsParser = function (items) {
27688
27644
  if (items === void 0) { items = []; }
27689
27645
  return items.map(function (item) {
27690
27646
  var parsed = Object.assign({}, item);
27691
- if (parsed.visibleEvaluator &&
27692
- typeof parsed.visibleEvaluator == 'function') {
27647
+ if (parsed.visibleEvaluator && typeof parsed.visibleEvaluator == 'function') {
27693
27648
  parsed.visible = parsed.visibleEvaluator();
27694
27649
  }
27695
27650
  return parsed;
@@ -27709,9 +27664,7 @@
27709
27664
  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
27665
  return;
27711
27666
  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;
27667
+ (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
27668
  this.isItemSelected = (e === null || e === void 0 ? void 0 : e.selectedItems.length) > 0 ? true : false;
27716
27669
  this.selectedItemLength = selectedItem.length > 1 ? false : true;
27717
27670
  if ((_b = e === null || e === void 0 ? void 0 : e.selectedItems[0]) === null || _b === void 0 ? void 0 : _b.dataItem) {
@@ -27746,9 +27699,7 @@
27746
27699
  text: this.isArabic ? 'مجلد جديد' : 'New Directory',
27747
27700
  action: this.createFolder,
27748
27701
  visibleEvaluator: function () {
27749
- return (_this.selectedItem.isDirectory &&
27750
- _this.selectedItemLength &&
27751
- _this.selectedItem.canCreate);
27702
+ return _this.selectedItem.isDirectory && _this.selectedItemLength && _this.selectedItem.canCreate;
27752
27703
  }
27753
27704
  }
27754
27705
  ]);
@@ -27770,10 +27721,7 @@
27770
27721
  var itemData = _q.itemData, viewArea = _q.viewArea, fileSystemItem = _q.fileSystemItem;
27771
27722
  var _a;
27772
27723
  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;
27724
+ this.itemToDisplay = viewArea === 'navPane' ? fileSystemItem.dataItem : (_a = selectedItem[0]) === null || _a === void 0 ? void 0 : _a.dataItem;
27777
27725
  var directory = this.getCurrentDirectory();
27778
27726
  var id = this.getCurrentFolderId(directory);
27779
27727
  itemData.action();
@@ -27790,9 +27738,7 @@
27790
27738
  };
27791
27739
  FileManagerAbstract.prototype.getCurrentFolderId = function (directory) {
27792
27740
  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;
27741
+ 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
27742
  return id;
27797
27743
  };
27798
27744
  // ------------------------------------------------------------
@@ -27814,18 +27760,14 @@
27814
27760
  this.selectedFolderPath = (_b = (_a = e.directory.dataItem) === null || _a === void 0 ? void 0 : _a.entity) === null || _b === void 0 ? void 0 : _b.path;
27815
27761
  if (((_c = e.directory.dataItem) === null || _c === void 0 ? void 0 : _c.id) === undefined) {
27816
27762
  if (this.mainFolder === 'sharedDocumentsRoot') {
27817
- this.fileManagerService
27818
- .getChildrenForSharedDocumentRoot(this.mainFolder)
27819
- .subscribe(function (data) {
27763
+ this.fileManagerService.getChildrenForSharedDocumentRoot(this.mainFolder).subscribe(function (data) {
27820
27764
  _this.showNoDataImage(data);
27821
27765
  _this.fileItems = data;
27822
27766
  return _this.fileItems;
27823
27767
  });
27824
27768
  }
27825
27769
  else {
27826
- this.fileManagerService
27827
- .refreshData(this.mainFolder)
27828
- .subscribe(function (data) {
27770
+ this.fileManagerService.refreshData(this.mainFolder).subscribe(function (data) {
27829
27771
  _this.showNoDataImage(data);
27830
27772
  _this.fileItems = data;
27831
27773
  return _this.fileItems;
@@ -27855,9 +27797,7 @@
27855
27797
  }
27856
27798
  this.itemListView = e.component._itemView._itemList;
27857
27799
  if (this.itemListView) {
27858
- document
27859
- .getElementsByClassName('dx-filemanager-thumbnails-view-port')[0]
27860
- .classList.remove('empty-collection');
27800
+ document.getElementsByClassName('dx-filemanager-thumbnails-view-port')[0].classList.remove('empty-collection');
27861
27801
  }
27862
27802
  else {
27863
27803
  loadPanelElement = document.getElementsByClassName('dx-loadpanel-content')[0];
@@ -27868,19 +27808,15 @@
27868
27808
  }
27869
27809
  }
27870
27810
  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')
27811
+ ? document.getElementsByClassName('dx-menu-item-content')[0].classList.add('custom')
27874
27812
  : '';
27875
27813
  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;
27814
+ 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
27815
  queryParams = {
27879
27816
  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
27817
  };
27881
27818
  _.each(this.fileManager.instance._filesTreeView._filesTreeView._dataAdapter.getExpandedNodesKeys(), function (key) {
27882
- if (key.includes(e.directory.path) &&
27883
- key.replace('FIK_', '') !== e.directory.path) {
27819
+ if (key.includes(e.directory.path) && key.replace('FIK_', '') !== e.directory.path) {
27884
27820
  _this.fileManager.instance._filesTreeView._filesTreeView._toggleExpandedState(key, false);
27885
27821
  }
27886
27822
  });
@@ -27905,9 +27841,7 @@
27905
27841
  currentPageIndex: 0
27906
27842
  };
27907
27843
  if (!!e.directory.dataItem.isReady) return [3 /*break*/, 2];
27908
- return [4 /*yield*/, this.fileManagerService
27909
- .getMapedFolder(id)
27910
- .toPromise()];
27844
+ return [4 /*yield*/, this.fileManagerService.getMapedFolder(id).toPromise()];
27911
27845
  case 1:
27912
27846
  newDataItem = _r.sent();
27913
27847
  _.assign(e.directory.dataItem, newDataItem);
@@ -27931,17 +27865,12 @@
27931
27865
  }
27932
27866
  catch (e) { }
27933
27867
  if (!this.itemListView) {
27934
- document
27935
- .getElementsByClassName('dx-loadpanel-content')[0]
27936
- .classList.remove('hide-loadpanel');
27868
+ document.getElementsByClassName('dx-loadpanel-content')[0].classList.remove('hide-loadpanel');
27937
27869
  }
27938
27870
  _r.label = 4;
27939
27871
  case 4:
27940
27872
  directory = this.getCurrentDirectory();
27941
- this.currentFolder =
27942
- directory.dataItem === undefined
27943
- ? this.canCreate
27944
- : directory.dataItem.canCreate;
27873
+ this.currentFolder = directory.dataItem === undefined ? this.canCreate : directory.dataItem.canCreate;
27945
27874
  return [2 /*return*/];
27946
27875
  }
27947
27876
  });
@@ -27965,15 +27894,11 @@
27965
27894
  dialogRef.afterClosed().subscribe(function (res) {
27966
27895
  if (res) {
27967
27896
  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
27897
+ _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
27898
  );
27972
27899
  }
27973
27900
  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
27901
+ _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
27902
  );
27978
27903
  }
27979
27904
  }
@@ -28048,15 +27973,11 @@
28048
27973
  dialogRef.afterClosed().subscribe(function (res) {
28049
27974
  if (res) {
28050
27975
  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
27976
+ _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
27977
  );
28055
27978
  }
28056
27979
  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
27980
+ _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
27981
  );
28061
27982
  }
28062
27983
  }
@@ -28093,12 +28014,7 @@
28093
28014
  };
28094
28015
  //--------------------------------- may be unused funtions -------------------
28095
28016
  FileManagerAbstract.prototype.checkForClass = function (className) {
28096
- var classes = [
28097
- 'detailed-menu',
28098
- 'ng-tag-label',
28099
- 'ng-option-label',
28100
- 'ng-star-inserted'
28101
- ];
28017
+ var classes = ['detailed-menu', 'ng-tag-label', 'ng-option-label', 'ng-star-inserted'];
28102
28018
  var classFounded = false;
28103
28019
  classes.map(function (item) {
28104
28020
  if (className.includes(item)) {
@@ -28207,10 +28123,8 @@
28207
28123
  };
28208
28124
  }, _FileManagerAbstract_getNode = function _FileManagerAbstract_getNode(id) {
28209
28125
  var fm = this.fileManager.instance;
28210
- var dataStructure = fm._filesTreeView._filesTreeView._dataAdapter
28211
- ._dataStructure;
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];
28126
+ var dataStructure = fm._filesTreeView._filesTreeView._dataAdapter._dataStructure;
28127
+ 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
28128
  return fm._filesTreeView._filesTreeView._getNode(dataItem.internalFields.key);
28215
28129
  }, _FileManagerAbstract_addOrReplace = function _FileManagerAbstract_addOrReplace(data, items) {
28216
28130
  var itemMap = _.keyBy(data, 'id');
@@ -30882,11 +30796,7 @@
30882
30796
  }());
30883
30797
  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
30798
  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] });
30799
+ reactiveFormValidators.RxReactiveFormsModule], exports: [i2$1.KeycloakAngularModule, i1$1.TranslateModule, i1$6.TreeviewModule, i1$2.ToastrModule, reactiveFormValidators.RxReactiveFormsModule] });
30890
30800
  NuxeoCoreModule.ɵinj = i0__namespace.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0__namespace, type: NuxeoCoreModule, providers: [
30891
30801
  i1$1.TranslateStore,
30892
30802
  i1$1.TranslateService,
@@ -30915,11 +30825,7 @@
30915
30825
  }),
30916
30826
  i2$1.KeycloakAngularModule,
30917
30827
  reactiveFormValidators.RxReactiveFormsModule
30918
- ], i2$1.KeycloakAngularModule,
30919
- i1$1.TranslateModule,
30920
- i1$6.TreeviewModule,
30921
- i1$2.ToastrModule,
30922
- reactiveFormValidators.RxReactiveFormsModule] });
30828
+ ], i2$1.KeycloakAngularModule, i1$1.TranslateModule, i1$6.TreeviewModule, i1$2.ToastrModule, reactiveFormValidators.RxReactiveFormsModule] });
30923
30829
  i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0__namespace, type: NuxeoCoreModule, decorators: [{
30924
30830
  type: i0.NgModule,
30925
30831
  args: [{
@@ -30935,13 +30841,7 @@
30935
30841
  i2$1.KeycloakAngularModule,
30936
30842
  reactiveFormValidators.RxReactiveFormsModule
30937
30843
  ],
30938
- exports: [
30939
- i2$1.KeycloakAngularModule,
30940
- i1$1.TranslateModule,
30941
- i1$6.TreeviewModule,
30942
- i1$2.ToastrModule,
30943
- reactiveFormValidators.RxReactiveFormsModule
30944
- ],
30844
+ exports: [i2$1.KeycloakAngularModule, i1$1.TranslateModule, i1$6.TreeviewModule, i1$2.ToastrModule, reactiveFormValidators.RxReactiveFormsModule],
30945
30845
  providers: [
30946
30846
  i1$1.TranslateStore,
30947
30847
  i1$1.TranslateService,