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.
@@ -19133,9 +19133,9 @@ class AddToCollectionComponent extends BaseComponent {
19133
19133
  this.fileManagerService = fileManagerService;
19134
19134
  this.customToastrService = customToastrService;
19135
19135
  this.nuxeoDialogService = nuxeoDialogService;
19136
- this.createOperation = "Collection.Create";
19137
- this.addOperation = "Document.AddToCollection";
19138
- this.getCollectionPP = "PP_DMS_User_Collections";
19136
+ this.createOperation = 'Collection.Create';
19137
+ this.addOperation = 'Document.AddToCollection';
19138
+ this.getCollectionPP = 'PP_DMS_User_Collections';
19139
19139
  this.visibleChange = new EventEmitter();
19140
19140
  this.rtlEnabled = false;
19141
19141
  this.isSelected = true;
@@ -19145,17 +19145,15 @@ class AddToCollectionComponent extends BaseComponent {
19145
19145
  this.onFormCollectionSubmit = (e) => {
19146
19146
  e.preventDefault();
19147
19147
  this.loading = true;
19148
- return this.fileManagerService
19149
- .addToCollection(this.selectedItems, this.collectionid, this.addOperation)
19150
- .pipe(tap((res) => {
19148
+ return this.fileManagerService.addToCollection(this.selectedItems, this.collectionid, this.addOperation).pipe(tap((res) => {
19151
19149
  this.loading = false;
19152
19150
  this.form.instance.resetValues();
19153
19151
  this.selectedTags = null;
19154
19152
  this.visible = false;
19155
- this.customToastrService.show("success", "TOASTER.SUCCESS", "TOASTER.DOCUMENT_ADDED_TO_COLLECTION");
19153
+ this.customToastrService.show('success', 'TOASTER.SUCCESS', 'TOASTER.DOCUMENT_ADDED_TO_COLLECTION');
19156
19154
  }, (err) => {
19157
19155
  this.loading = false;
19158
- this.customToastrService.show("error", "TOASTER.ERROR", "TOASTER.DOCUMENT_ADDED_TO_COLLECTION_ERROR");
19156
+ this.customToastrService.show('error', 'TOASTER.ERROR', 'TOASTER.DOCUMENT_ADDED_TO_COLLECTION_ERROR');
19159
19157
  }));
19160
19158
  };
19161
19159
  }
@@ -19174,15 +19172,16 @@ class AddToCollectionComponent extends BaseComponent {
19174
19172
  }
19175
19173
  ngOnInit() { }
19176
19174
  openDialog() {
19175
+ this.loadItems();
19177
19176
  const options = {
19178
19177
  component: NdfNuxeoDialog,
19179
19178
  //TODO [Asem] how to put the wrapper ID
19180
- panelClass: "popUpParent",
19179
+ panelClass: 'popUpParent',
19181
19180
  config: {
19182
- title: this.translateService.instant("FILE_MANAGER.ADD_TO_COLLECTION"),
19181
+ title: this.translateService.instant('FILE_MANAGER.ADD_TO_COLLECTION'),
19183
19182
  contentTemplate: this.contentTemplate,
19184
- actionsTemplate: this.actionsTemplate,
19185
- },
19183
+ actionsTemplate: this.actionsTemplate
19184
+ }
19186
19185
  };
19187
19186
  this.nuxeoDialogService
19188
19187
  .open(options)
@@ -19193,9 +19192,7 @@ class AddToCollectionComponent extends BaseComponent {
19193
19192
  }
19194
19193
  emitSelection(event) {
19195
19194
  if (this.isSelected) {
19196
- this.fileManagerService
19197
- .createNewCollection(event.displayLabel, this.createOperation)
19198
- .subscribe((res) => {
19195
+ this.fileManagerService.createNewCollection(event.displayLabel, this.createOperation).subscribe((res) => {
19199
19196
  this.collectionid = res.uid;
19200
19197
  });
19201
19198
  }
@@ -19203,26 +19200,24 @@ class AddToCollectionComponent extends BaseComponent {
19203
19200
  this.collectionid = event.id;
19204
19201
  }
19205
19202
  loadItems() {
19206
- let searchterm = "";
19203
+ let searchterm = '';
19207
19204
  this.isSelected = false;
19208
19205
  let mycategories = [];
19209
- this.items$ = concat(this.fileManagerService
19210
- .getCollectionFromPP(searchterm, this.getCollectionPP)
19211
- .pipe(switchMap((res) => {
19206
+ this.items$ = concat(this.fileManagerService.getCollectionFromPP(searchterm, this.getCollectionPP).pipe(switchMap((res) => {
19212
19207
  res.entries.map((entry) => {
19213
- mycategories.push({
19214
- displayLabel: entry.title,
19215
- id: entry.uid,
19216
- path: entry.path,
19217
- icon: entry.properties["common:icon"],
19218
- });
19208
+ if (!this.enableMemberInCollections || !this.memberInCollections.includes(entry.id)) {
19209
+ mycategories.push({
19210
+ displayLabel: entry.title,
19211
+ id: entry.uid,
19212
+ path: entry.path,
19213
+ icon: entry.properties['common:icon']
19214
+ });
19215
+ }
19219
19216
  });
19220
19217
  return of(mycategories);
19221
19218
  })), // default items
19222
19219
  this.tagsInput$.pipe(debounceTime(200), distinctUntilChanged(), tap(() => (this.tagsLoading = true)), switchMap((searchterm) => {
19223
- return this.fileManagerService
19224
- .getCollectionFromPP(searchterm, this.getCollectionPP)
19225
- .pipe(catchError(() => of([])), // empty list on error
19220
+ return this.fileManagerService.getCollectionFromPP(searchterm, this.getCollectionPP).pipe(catchError(() => of([])), // empty list on error
19226
19221
  switchMap((searchCat) => {
19227
19222
  let myInerCateg = [];
19228
19223
  this.tagsLoading = false;
@@ -19232,7 +19227,7 @@ class AddToCollectionComponent extends BaseComponent {
19232
19227
  displayLabel: entry.title,
19233
19228
  id: entry.uid,
19234
19229
  path: entry.path,
19235
- icon: entry.properties["common:icon"],
19230
+ icon: entry.properties['common:icon']
19236
19231
  });
19237
19232
  });
19238
19233
  return of(myInerCateg);
@@ -19241,29 +19236,33 @@ class AddToCollectionComponent extends BaseComponent {
19241
19236
  }
19242
19237
  }
19243
19238
  AddToCollectionComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0, type: AddToCollectionComponent, deps: [{ token: FileManagerService }, { token: CustomToastrService }, { token: NuxeoDialogService }, { token: i0.Injector }], target: i0.ɵɵFactoryTarget.Component });
19244
- AddToCollectionComponent.ɵcmp = i0.ɵɵ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: DxFormComponent, descendants: true }, { propertyName: "contentTemplate", first: true, predicate: ["contentTemplate"], descendants: true }, { propertyName: "actionsTemplate", first: true, predicate: ["actionsTemplate"], descendants: true }], usesInheritance: true, ngImport: i0, 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$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$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$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$6.ɵNgNoValidate, selector: "form:not([ngNoForm]):not([ngNativeValidate])" }, { type: i2$6.NgControlStatusGroup, selector: "[formGroupName],[formArrayName],[ngModelGroup],[formGroup],form:not([ngNoForm]),[ngForm]" }, { type: i2$6.NgForm, selector: "form:not([ngNoForm]):not([formGroup]),ng-form,[ngForm]", inputs: ["ngFormOptions"], outputs: ["ngSubmit"], exportAs: ["ngForm"] }, { type: i2$6.RequiredValidator, selector: ":not([type=checkbox])[required][formControlName],:not([type=checkbox])[required][formControl],:not([type=checkbox])[required][ngModel]", inputs: ["required"] }, { type: i2$6.NgControlStatus, selector: "[formControlName],[ngModel],[formControl]" }, { type: i2$6.NgModel, selector: "[ngModel]:not([formControlName]):not([formControl])", inputs: ["name", "disabled", "ngModel", "ngModelOptions"], outputs: ["ngModelChange"], exportAs: ["ngModel"] }], pipes: { "async": i4$1.AsyncPipe, "translate": i1.TranslatePipe } });
19239
+ AddToCollectionComponent.ɵcmp = i0.ɵɵ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: DxFormComponent, descendants: true }, { propertyName: "contentTemplate", first: true, predicate: ["contentTemplate"], descendants: true }, { propertyName: "actionsTemplate", first: true, predicate: ["actionsTemplate"], descendants: true }], usesInheritance: true, ngImport: i0, 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$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$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$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$6.ɵNgNoValidate, selector: "form:not([ngNoForm]):not([ngNativeValidate])" }, { type: i2$6.NgControlStatusGroup, selector: "[formGroupName],[formArrayName],[ngModelGroup],[formGroup],form:not([ngNoForm]),[ngForm]" }, { type: i2$6.NgForm, selector: "form:not([ngNoForm]):not([formGroup]),ng-form,[ngForm]", inputs: ["ngFormOptions"], outputs: ["ngSubmit"], exportAs: ["ngForm"] }, { type: i2$6.RequiredValidator, selector: ":not([type=checkbox])[required][formControlName],:not([type=checkbox])[required][formControl],:not([type=checkbox])[required][ngModel]", inputs: ["required"] }, { type: i2$6.NgControlStatus, selector: "[formControlName],[ngModel],[formControl]" }, { type: i2$6.NgModel, selector: "[ngModel]:not([formControlName]):not([formControl])", inputs: ["name", "disabled", "ngModel", "ngModelOptions"], outputs: ["ngModelChange"], exportAs: ["ngModel"] }], pipes: { "async": i4$1.AsyncPipe, "translate": i1.TranslatePipe } });
19245
19240
  i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0, type: AddToCollectionComponent, decorators: [{
19246
19241
  type: Component,
19247
19242
  args: [{
19248
- selector: "app-add-to-collection",
19249
- templateUrl: "./add-to-collection.component.html",
19250
- styleUrls: ["./add-to-collection.component.scss"],
19243
+ selector: 'app-add-to-collection',
19244
+ templateUrl: './add-to-collection.component.html',
19245
+ styleUrls: ['./add-to-collection.component.scss']
19251
19246
  }]
19252
19247
  }], ctorParameters: function () { return [{ type: FileManagerService }, { type: CustomToastrService }, { type: NuxeoDialogService }, { type: i0.Injector }]; }, propDecorators: { form: [{
19253
19248
  type: ViewChild,
19254
19249
  args: [DxFormComponent, { static: false }]
19255
19250
  }], contentTemplate: [{
19256
19251
  type: ViewChild,
19257
- args: ["contentTemplate"]
19252
+ args: ['contentTemplate']
19258
19253
  }], actionsTemplate: [{
19259
19254
  type: ViewChild,
19260
- args: ["actionsTemplate"]
19255
+ args: ['actionsTemplate']
19261
19256
  }], createOperation: [{
19262
19257
  type: Input
19263
19258
  }], addOperation: [{
19264
19259
  type: Input
19265
19260
  }], getCollectionPP: [{
19266
19261
  type: Input
19262
+ }], memberInCollections: [{
19263
+ type: Input
19264
+ }], enableMemberInCollections: [{
19265
+ type: Input
19267
19266
  }], visible: [{
19268
19267
  type: Input
19269
19268
  }], visibleChange: [{
@@ -25301,8 +25300,7 @@ class FileManagerAbstract {
25301
25300
  }
25302
25301
  };
25303
25302
  this.refresh = () => {
25304
- if (this.myPageConfiguration.fileMangerObjectName ===
25305
- 'externalshareFileMangerObj') {
25303
+ if (this.myPageConfiguration.fileMangerObjectName === 'externalshareFileMangerObj') {
25306
25304
  this.fileManagerService.customEvent.emit('refresh');
25307
25305
  }
25308
25306
  else {
@@ -25376,8 +25374,7 @@ class FileManagerAbstract {
25376
25374
  ? (successMessage = 'unsubscribe_To_Item_success')
25377
25375
  : (successMessage = 'subscribe_To_Item_success');
25378
25376
  this.customToastrService.show('success', 'TOASTER.SUCCESS', `TOASTER.${successMessage}`);
25379
- this.selectedItem.isUserSubscriberToFile =
25380
- !this.selectedItem.isUserSubscriberToFile;
25377
+ this.selectedItem.isUserSubscriberToFile = !this.selectedItem.isUserSubscriberToFile;
25381
25378
  this.multiSelectedkeys = [''];
25382
25379
  }
25383
25380
  }, (err) => {
@@ -25414,10 +25411,7 @@ class FileManagerAbstract {
25414
25411
  });
25415
25412
  });
25416
25413
  newSelectedWithArrPrefix.map((item, index) => {
25417
- this.newSelectedWithIdPrefix +=
25418
- index == newSelectedWithArrPrefix.length - 1
25419
- ? item.id
25420
- : item.id + ',';
25414
+ this.newSelectedWithIdPrefix += index == newSelectedWithArrPrefix.length - 1 ? item.id : item.id + ',';
25421
25415
  item.type == 'Folder' ? (myType = 'Folder') : null;
25422
25416
  });
25423
25417
  }
@@ -25427,23 +25421,15 @@ class FileManagerAbstract {
25427
25421
  height: '400px',
25428
25422
  panelClass: 'watcher-dialog-container',
25429
25423
  data: {
25430
- id: this.multipleItems.length > 1
25431
- ? this.newSelectedWithIdPrefix
25432
- : this.selectedItem.id,
25433
- PublishType: this.multipleItems.length > 1
25434
- ? myType
25435
- : this.selectedItem.isDirectory
25436
- ? 'Folder'
25437
- : 'File'
25424
+ id: this.multipleItems.length > 1 ? this.newSelectedWithIdPrefix : this.selectedItem.id,
25425
+ PublishType: this.multipleItems.length > 1 ? myType : this.selectedItem.isDirectory ? 'Folder' : 'File'
25438
25426
  }
25439
25427
  });
25440
25428
  };
25441
25429
  this.addToClipboard = () => {
25442
25430
  let selectedItemsIds = this.selectedItems.split(',');
25443
25431
  let directory = this.getCurrentDirectory();
25444
- let id = directory.dataItem === undefined
25445
- ? this.mainFolder
25446
- : this.getCurrentFolderId(directory);
25432
+ let id = directory.dataItem === undefined ? this.mainFolder : this.getCurrentFolderId(directory);
25447
25433
  if (selectedItemsIds.length === 1 &&
25448
25434
  this.clipboardItems.length > 0 &&
25449
25435
  this.clipboardItems.indexOf(selectedItemsIds[0]) > -1) {
@@ -25496,8 +25482,7 @@ class FileManagerAbstract {
25496
25482
  this.nuxeoService = this.injectorObj.get(NuxeoService);
25497
25483
  this.nuxeoDialogService = this.injectorObj.get(NuxeoDialogService);
25498
25484
  this.multiSelectedkeys = [''];
25499
- this.myPageConfiguration =
25500
- this.appConfService.myConfiguration.fileManger[this.myPageConfName];
25485
+ this.myPageConfiguration = this.appConfService.myConfiguration.fileManger[this.myPageConfName];
25501
25486
  this.subscriptions.concat([
25502
25487
  this.router.events.subscribe((event) => {
25503
25488
  if (event.navigationTrigger === 'popstate') {
@@ -25538,9 +25523,7 @@ class FileManagerAbstract {
25538
25523
  this.subscriptions.concat([
25539
25524
  this.translationService.isArabic.subscribe((res) => {
25540
25525
  this.isArabic = res;
25541
- this.isArabic
25542
- ? (this.menuDirection = 'before')
25543
- : (this.menuDirection = 'after');
25526
+ this.isArabic ? (this.menuDirection = 'before') : (this.menuDirection = 'after');
25544
25527
  })
25545
25528
  ]);
25546
25529
  if (this.userPreferenceService) {
@@ -25587,18 +25570,14 @@ class FileManagerAbstract {
25587
25570
  ]);
25588
25571
  }
25589
25572
  ngAfterViewChecked() {
25590
- this.fileManager.instance._filesTreeView._filesTreeView._dataAdapter.options.onNodeChanged =
25591
- (node) => {
25592
- var _a;
25593
- if (!(node === null || node === void 0 ? void 0 : node.itemsLoaded)) {
25594
- this.reinitializeFolderTree((_a = node === null || node === void 0 ? void 0 : node.fileItem.dataItem) === null || _a === void 0 ? void 0 : _a.id, node.fileItem, node);
25595
- }
25596
- };
25597
- this.fileManager.instance._breadcrumbs._currentDirectory.fileItem
25598
- .path === ''
25599
- ? document
25600
- .getElementsByClassName('dx-menu-item-content')[0]
25601
- .classList.add('custom')
25573
+ this.fileManager.instance._filesTreeView._filesTreeView._dataAdapter.options.onNodeChanged = (node) => {
25574
+ var _a;
25575
+ if (!(node === null || node === void 0 ? void 0 : node.itemsLoaded)) {
25576
+ this.reinitializeFolderTree((_a = node === null || node === void 0 ? void 0 : node.fileItem.dataItem) === null || _a === void 0 ? void 0 : _a.id, node.fileItem, node);
25577
+ }
25578
+ };
25579
+ this.fileManager.instance._breadcrumbs._currentDirectory.fileItem.path === ''
25580
+ ? document.getElementsByClassName('dx-menu-item-content')[0].classList.add('custom')
25602
25581
  : '';
25603
25582
  }
25604
25583
  init(id, breadcrumbs = null, currentFolder = null) {
@@ -25610,9 +25589,7 @@ class FileManagerAbstract {
25610
25589
  var _a, _b, _c;
25611
25590
  let toSubstr;
25612
25591
  if (this.mainFolder === 'sharedDocumentsRoot') {
25613
- toSubstr = this.fileManagerService.sharedFiles.entries.filter((item) => this.path.includes(item.contextParameters.breadcrumb.entries
25614
- .map((item) => item.title)
25615
- .join('/')));
25592
+ toSubstr = this.fileManagerService.sharedFiles.entries.filter((item) => this.path.includes(item.contextParameters.breadcrumb.entries.map((item) => item.title).join('/')));
25616
25593
  const pathSplit = (_a = toSubstr[0]) === null || _a === void 0 ? void 0 : _a.contextParameters.breadcrumb.entries.map((item) => item.title);
25617
25594
  this.currentPath = pathSplit[pathSplit.length - 1];
25618
25595
  }
@@ -25624,14 +25601,11 @@ class FileManagerAbstract {
25624
25601
  else {
25625
25602
  // if not static root then there is multiple objects in storag
25626
25603
  // if user was admin then use the full path
25627
- if (this.nuxeoService.nuxeoClient.user.isAdministrator ||
25628
- this.myPageConfiguration.useFullPath) {
25604
+ if (this.nuxeoService.nuxeoClient.user.isAdministrator || this.myPageConfiguration.useFullPath) {
25629
25605
  this.currentPath = this.path;
25630
25606
  }
25631
25607
  else {
25632
- toSubstr = this.fileManagerObj.entries.filter((item) => this.path.includes(item.contextParameters.breadcrumb.entries
25633
- .map((item) => item.title)
25634
- .join('/')));
25608
+ toSubstr = this.fileManagerObj.entries.filter((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((item) => item.title)) === null || _d === void 0 ? void 0 : _d.join('/')); });
25635
25609
  const pathSplit = (_b = toSubstr[0]) === null || _b === void 0 ? void 0 : _b.contextParameters.breadcrumb.entries.map((item) => item.title);
25636
25610
  let x = pathSplit ? (_c = pathSplit[0]) === null || _c === void 0 ? void 0 : _c.length : 0;
25637
25611
  this.currentPath = this.path.substr(x);
@@ -25640,20 +25614,14 @@ class FileManagerAbstract {
25640
25614
  }
25641
25615
  this.fileItems = d;
25642
25616
  let directory = this.getCurrentDirectory();
25643
- this.currentFolder =
25644
- directory.dataItem === undefined
25645
- ? this.canCreate
25646
- : directory.dataItem.canCreate;
25617
+ this.currentFolder = directory.dataItem === undefined ? this.canCreate : directory.dataItem.canCreate;
25647
25618
  });
25648
25619
  }
25649
25620
  else {
25650
25621
  this.getFolderChildren(id, payload).subscribe((data) => {
25651
25622
  this.fileItems = data;
25652
25623
  let directory = this.getCurrentDirectory();
25653
- this.currentFolder =
25654
- directory.dataItem === undefined
25655
- ? this.canCreate
25656
- : directory.dataItem.canCreate;
25624
+ this.currentFolder = directory.dataItem === undefined ? this.canCreate : directory.dataItem.canCreate;
25657
25625
  // 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
25658
25626
  setTimeout(() => {
25659
25627
  this.fileItems = [...data];
@@ -25718,13 +25686,9 @@ class FileManagerAbstract {
25718
25686
  };
25719
25687
  if (directory.dataItem === undefined) {
25720
25688
  __classPrivateFieldGet(this, _FileManagerAbstract_instances, "m", _FileManagerAbstract_resetPagination).call(this, this.mainFolder);
25721
- this.fileManagerService
25722
- .refreshData(this.mainFolder, payload)
25723
- .subscribe((result) => {
25689
+ this.fileManagerService.refreshData(this.mainFolder, payload).subscribe((result) => {
25724
25690
  __classPrivateFieldGet(this, _FileManagerAbstract_instances, "m", _FileManagerAbstract_initPagination).call(this, this.mainFolder, result);
25725
- const data = payload && FileManagerPaginationConfig.Enable
25726
- ? result.data
25727
- : result;
25691
+ const data = payload && FileManagerPaginationConfig.Enable ? result.data : result;
25728
25692
  this.showNoDataImage(data);
25729
25693
  this.fileItems = data;
25730
25694
  this.clicked = false;
@@ -25738,9 +25702,7 @@ class FileManagerAbstract {
25738
25702
  .pipe(map((result) => {
25739
25703
  __classPrivateFieldGet(this, _FileManagerAbstract_instances, "m", _FileManagerAbstract_initPagination).call(this, id, result);
25740
25704
  this.startLoading({ directory });
25741
- const data = payload && FileManagerPaginationConfig.Enable
25742
- ? result.data
25743
- : result;
25705
+ const data = payload && FileManagerPaginationConfig.Enable ? result.data : result;
25744
25706
  this.showNoDataImage(data);
25745
25707
  this.clicked = false;
25746
25708
  return data;
@@ -25758,12 +25720,10 @@ class FileManagerAbstract {
25758
25720
  var _a, _b;
25759
25721
  if (this.itemListView) {
25760
25722
  if ((data === null || data === void 0 ? void 0 : data.length) === 0) {
25761
- (_a = document
25762
- .getElementsByClassName('dx-filemanager-thumbnails-view-port')[0]) === null || _a === void 0 ? void 0 : _a.classList.add('empty-collection');
25723
+ (_a = document.getElementsByClassName('dx-filemanager-thumbnails-view-port')[0]) === null || _a === void 0 ? void 0 : _a.classList.add('empty-collection');
25763
25724
  }
25764
25725
  else {
25765
- (_b = document
25766
- .getElementsByClassName('dx-filemanager-thumbnails-view-port')[0]) === null || _b === void 0 ? void 0 : _b.classList.remove('empty-collection');
25726
+ (_b = document.getElementsByClassName('dx-filemanager-thumbnails-view-port')[0]) === null || _b === void 0 ? void 0 : _b.classList.remove('empty-collection');
25767
25727
  }
25768
25728
  }
25769
25729
  else {
@@ -25790,9 +25750,7 @@ class FileManagerAbstract {
25790
25750
  this.path = res.path;
25791
25751
  }
25792
25752
  else {
25793
- this.path = res.contextParameters.breadcrumb.entries
25794
- .map((item) => item.title)
25795
- .join('/');
25753
+ this.path = res.contextParameters.breadcrumb.entries.map((item) => item.title).join('/');
25796
25754
  }
25797
25755
  if (this.route.snapshot.queryParams['fromSharedDocument']) {
25798
25756
  res.contextParameters.breadcrumb.entries = [
@@ -25833,16 +25791,13 @@ class FileManagerAbstract {
25833
25791
  });
25834
25792
  }
25835
25793
  getSelectedItem(directory) {
25836
- let selectedItem = (directory === null || directory === void 0 ? void 0 : directory.dataItem) && directory.dataItem.id
25837
- ? directory.dataItem.id
25838
- : this.mainFolder;
25794
+ let selectedItem = (directory === null || directory === void 0 ? void 0 : directory.dataItem) && directory.dataItem.id ? directory.dataItem.id : this.mainFolder;
25839
25795
  return selectedItem;
25840
25796
  }
25841
25797
  contextItemsParser(items = []) {
25842
25798
  return items.map((item) => {
25843
25799
  let parsed = Object.assign({}, item);
25844
- if (parsed.visibleEvaluator &&
25845
- typeof parsed.visibleEvaluator == 'function') {
25800
+ if (parsed.visibleEvaluator && typeof parsed.visibleEvaluator == 'function') {
25846
25801
  parsed.visible = parsed.visibleEvaluator();
25847
25802
  }
25848
25803
  return parsed;
@@ -25862,9 +25817,7 @@ class FileManagerAbstract {
25862
25817
  if (selectedItem.some((q) => { var _a; return !((_a = q === null || q === void 0 ? void 0 : q.dataItem) === null || _a === void 0 ? void 0 : _a.isReady); }))
25863
25818
  return;
25864
25819
  this.itemsSelected =
25865
- (e === null || e === void 0 ? void 0 : e.selectedItems.length) > 1
25866
- ? `${e === null || e === void 0 ? void 0 : e.selectedItems.length} items`
25867
- : (_a = e === null || e === void 0 ? void 0 : e.selectedItems[0]) === null || _a === void 0 ? void 0 : _a.dataItem.name;
25820
+ (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;
25868
25821
  this.isItemSelected = (e === null || e === void 0 ? void 0 : e.selectedItems.length) > 0 ? true : false;
25869
25822
  this.selectedItemLength = selectedItem.length > 1 ? false : true;
25870
25823
  if ((_b = e === null || e === void 0 ? void 0 : e.selectedItems[0]) === null || _b === void 0 ? void 0 : _b.dataItem) {
@@ -25898,9 +25851,7 @@ class FileManagerAbstract {
25898
25851
  text: this.isArabic ? 'مجلد جديد' : 'New Directory',
25899
25852
  action: this.createFolder,
25900
25853
  visibleEvaluator: () => {
25901
- return (this.selectedItem.isDirectory &&
25902
- this.selectedItemLength &&
25903
- this.selectedItem.canCreate);
25854
+ return this.selectedItem.isDirectory && this.selectedItemLength && this.selectedItem.canCreate;
25904
25855
  }
25905
25856
  }
25906
25857
  ]);
@@ -25921,10 +25872,7 @@ class FileManagerAbstract {
25921
25872
  onContextItemClick({ itemData, viewArea, fileSystemItem }) {
25922
25873
  var _a;
25923
25874
  let selectedItem = this.fileManager.instance.getSelectedItems();
25924
- this.itemToDisplay =
25925
- viewArea === 'navPane'
25926
- ? fileSystemItem.dataItem
25927
- : (_a = selectedItem[0]) === null || _a === void 0 ? void 0 : _a.dataItem;
25875
+ this.itemToDisplay = viewArea === 'navPane' ? fileSystemItem.dataItem : (_a = selectedItem[0]) === null || _a === void 0 ? void 0 : _a.dataItem;
25928
25876
  let directory = this.getCurrentDirectory();
25929
25877
  let id = this.getCurrentFolderId(directory);
25930
25878
  itemData.action();
@@ -25941,9 +25889,7 @@ class FileManagerAbstract {
25941
25889
  }
25942
25890
  getCurrentFolderId(directory) {
25943
25891
  var _a, _b;
25944
- let id = directory.dataItem === undefined
25945
- ? (_a = this.selectedItem) === null || _a === void 0 ? void 0 : _a.id
25946
- : (_b = directory.dataItem) === null || _b === void 0 ? void 0 : _b.id;
25892
+ let 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;
25947
25893
  return id;
25948
25894
  }
25949
25895
  // ------------------------------------------------------------
@@ -25960,18 +25906,14 @@ class FileManagerAbstract {
25960
25906
  this.selectedFolderPath = (_b = (_a = e.directory.dataItem) === null || _a === void 0 ? void 0 : _a.entity) === null || _b === void 0 ? void 0 : _b.path;
25961
25907
  if (((_c = e.directory.dataItem) === null || _c === void 0 ? void 0 : _c.id) === undefined) {
25962
25908
  if (this.mainFolder === 'sharedDocumentsRoot') {
25963
- this.fileManagerService
25964
- .getChildrenForSharedDocumentRoot(this.mainFolder)
25965
- .subscribe((data) => {
25909
+ this.fileManagerService.getChildrenForSharedDocumentRoot(this.mainFolder).subscribe((data) => {
25966
25910
  this.showNoDataImage(data);
25967
25911
  this.fileItems = data;
25968
25912
  return this.fileItems;
25969
25913
  });
25970
25914
  }
25971
25915
  else {
25972
- this.fileManagerService
25973
- .refreshData(this.mainFolder)
25974
- .subscribe((data) => {
25916
+ this.fileManagerService.refreshData(this.mainFolder).subscribe((data) => {
25975
25917
  this.showNoDataImage(data);
25976
25918
  this.fileItems = data;
25977
25919
  return this.fileItems;
@@ -26001,9 +25943,7 @@ class FileManagerAbstract {
26001
25943
  }
26002
25944
  this.itemListView = e.component._itemView._itemList;
26003
25945
  if (this.itemListView) {
26004
- document
26005
- .getElementsByClassName('dx-filemanager-thumbnails-view-port')[0]
26006
- .classList.remove('empty-collection');
25946
+ document.getElementsByClassName('dx-filemanager-thumbnails-view-port')[0].classList.remove('empty-collection');
26007
25947
  }
26008
25948
  else {
26009
25949
  let loadPanelElement = document.getElementsByClassName('dx-loadpanel-content')[0];
@@ -26014,19 +25954,15 @@ class FileManagerAbstract {
26014
25954
  }
26015
25955
  }
26016
25956
  var elem = ((_j = e === null || e === void 0 ? void 0 : e.directory) === null || _j === void 0 ? void 0 : _j.path) === ''
26017
- ? document
26018
- .getElementsByClassName('dx-menu-item-content')[0]
26019
- .classList.add('custom')
25957
+ ? document.getElementsByClassName('dx-menu-item-content')[0].classList.add('custom')
26020
25958
  : '';
26021
25959
  const 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;
26022
- this.fileManagerService.selectedFolderId =
26023
- (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;
25960
+ 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;
26024
25961
  const queryParams = {
26025
25962
  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
26026
25963
  };
26027
25964
  each(this.fileManager.instance._filesTreeView._filesTreeView._dataAdapter.getExpandedNodesKeys(), (key) => {
26028
- if (key.includes(e.directory.path) &&
26029
- key.replace('FIK_', '') !== e.directory.path) {
25965
+ if (key.includes(e.directory.path) && key.replace('FIK_', '') !== e.directory.path) {
26030
25966
  this.fileManager.instance._filesTreeView._filesTreeView._toggleExpandedState(key, false);
26031
25967
  }
26032
25968
  });
@@ -26052,9 +25988,7 @@ class FileManagerAbstract {
26052
25988
  currentPageIndex: 0
26053
25989
  };
26054
25990
  if (!e.directory.dataItem.isReady) {
26055
- const newDataItem = yield this.fileManagerService
26056
- .getMapedFolder(id)
26057
- .toPromise();
25991
+ const newDataItem = yield this.fileManagerService.getMapedFolder(id).toPromise();
26058
25992
  assign(e.directory.dataItem, newDataItem);
26059
25993
  }
26060
25994
  e.directory.dataItem.items = yield this.getFolderChildren(id, payload).toPromise();
@@ -26072,16 +26006,11 @@ class FileManagerAbstract {
26072
26006
  }
26073
26007
  catch (e) { }
26074
26008
  if (!this.itemListView) {
26075
- document
26076
- .getElementsByClassName('dx-loadpanel-content')[0]
26077
- .classList.remove('hide-loadpanel');
26009
+ document.getElementsByClassName('dx-loadpanel-content')[0].classList.remove('hide-loadpanel');
26078
26010
  }
26079
26011
  }
26080
26012
  let directory = this.getCurrentDirectory();
26081
- this.currentFolder =
26082
- directory.dataItem === undefined
26083
- ? this.canCreate
26084
- : directory.dataItem.canCreate;
26013
+ this.currentFolder = directory.dataItem === undefined ? this.canCreate : directory.dataItem.canCreate;
26085
26014
  });
26086
26015
  }
26087
26016
  //--------------------------------------------------------------
@@ -26101,15 +26030,11 @@ class FileManagerAbstract {
26101
26030
  dialogRef.afterClosed().subscribe((res) => {
26102
26031
  if (res) {
26103
26032
  if (this.dialogMangmentService.creationMode === 'upload') {
26104
- this.dialogMangmentService.openMinimzedModalV2(CreateModalComponent, '70%', '85%', !this.myPageConfiguration.isStaticRoot
26105
- ? this.selectedFolderPath
26106
- : '' // 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
26033
+ 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
26107
26034
  );
26108
26035
  }
26109
26036
  else if (this.dialogMangmentService.creationMode === 'scan') {
26110
- this.dialogMangmentService.openMinimzedModalV2(ScanModalComponent, '90%', '90%', !this.myPageConfiguration.isStaticRoot
26111
- ? this.selectedFolderPath
26112
- : '' // 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
26037
+ 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
26113
26038
  );
26114
26039
  }
26115
26040
  }
@@ -26182,15 +26107,11 @@ class FileManagerAbstract {
26182
26107
  dialogRef.afterClosed().subscribe((res) => {
26183
26108
  if (res) {
26184
26109
  if (this.dialogMangmentService.creationMode === 'upload') {
26185
- this.dialogMangmentService.openMinimzedModalV2(CreateModalComponent, '70%', '85%', !this.myPageConfiguration.isStaticRoot
26186
- ? this.selectedFolderPath
26187
- : '' // 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
26110
+ 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
26188
26111
  );
26189
26112
  }
26190
26113
  else if (this.dialogMangmentService.creationMode === 'scan') {
26191
- this.dialogMangmentService.openMinimzedModalV2(ScanModalComponent, '90%', '90%', !this.myPageConfiguration.isStaticRoot
26192
- ? this.selectedFolderPath
26193
- : '' // 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
26114
+ 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
26194
26115
  );
26195
26116
  }
26196
26117
  }
@@ -26226,12 +26147,7 @@ class FileManagerAbstract {
26226
26147
  }
26227
26148
  //--------------------------------- may be unused funtions -------------------
26228
26149
  checkForClass(className) {
26229
- let classes = [
26230
- 'detailed-menu',
26231
- 'ng-tag-label',
26232
- 'ng-option-label',
26233
- 'ng-star-inserted'
26234
- ];
26150
+ let classes = ['detailed-menu', 'ng-tag-label', 'ng-option-label', 'ng-star-inserted'];
26235
26151
  let classFounded = false;
26236
26152
  classes.map((item) => {
26237
26153
  if (className.includes(item)) {
@@ -26333,10 +26249,8 @@ _FileManagerAbstract_foldersSubscription$ = new WeakMap(), _FileManagerAbstract_
26333
26249
  };
26334
26250
  }, _FileManagerAbstract_getNode = function _FileManagerAbstract_getNode(id) {
26335
26251
  const fm = this.fileManager.instance;
26336
- const dataStructure = fm._filesTreeView._filesTreeView._dataAdapter
26337
- ._dataStructure;
26338
- const dataItem = dataStructure.find((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; }) ||
26339
- dataStructure[0];
26252
+ const dataStructure = fm._filesTreeView._filesTreeView._dataAdapter._dataStructure;
26253
+ const dataItem = dataStructure.find((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];
26340
26254
  return fm._filesTreeView._filesTreeView._getNode(dataItem.internalFields.key);
26341
26255
  }, _FileManagerAbstract_addOrReplace = function _FileManagerAbstract_addOrReplace(data, items) {
26342
26256
  let itemMap = keyBy(data, 'id');
@@ -28859,11 +28773,7 @@ class NuxeoCoreModule {
28859
28773
  }
28860
28774
  NuxeoCoreModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0, type: NuxeoCoreModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
28861
28775
  NuxeoCoreModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0, type: NuxeoCoreModule, imports: [CommonModule, i1$6.TreeviewModule, HttpClientModule, i1.TranslateModule, i1$1.ToastrModule, KeycloakAngularModule,
28862
- RxReactiveFormsModule], exports: [KeycloakAngularModule,
28863
- TranslateModule,
28864
- TreeviewModule,
28865
- ToastrModule,
28866
- RxReactiveFormsModule] });
28776
+ RxReactiveFormsModule], exports: [KeycloakAngularModule, TranslateModule, TreeviewModule, ToastrModule, RxReactiveFormsModule] });
28867
28777
  NuxeoCoreModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0, type: NuxeoCoreModule, providers: [
28868
28778
  TranslateStore,
28869
28779
  TranslateService,
@@ -28892,11 +28802,7 @@ NuxeoCoreModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version
28892
28802
  }),
28893
28803
  KeycloakAngularModule,
28894
28804
  RxReactiveFormsModule
28895
- ], KeycloakAngularModule,
28896
- TranslateModule,
28897
- TreeviewModule,
28898
- ToastrModule,
28899
- RxReactiveFormsModule] });
28805
+ ], KeycloakAngularModule, TranslateModule, TreeviewModule, ToastrModule, RxReactiveFormsModule] });
28900
28806
  i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0, type: NuxeoCoreModule, decorators: [{
28901
28807
  type: NgModule,
28902
28808
  args: [{
@@ -28912,13 +28818,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.17", ngImpo
28912
28818
  KeycloakAngularModule,
28913
28819
  RxReactiveFormsModule
28914
28820
  ],
28915
- exports: [
28916
- KeycloakAngularModule,
28917
- TranslateModule,
28918
- TreeviewModule,
28919
- ToastrModule,
28920
- RxReactiveFormsModule
28921
- ],
28821
+ exports: [KeycloakAngularModule, TranslateModule, TreeviewModule, ToastrModule, RxReactiveFormsModule],
28922
28822
  providers: [
28923
28823
  TranslateStore,
28924
28824
  TranslateService,