nuxeo-development-framework 5.0.8 → 5.0.9
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/bundles/nuxeo-development-framework.umd.js +9 -7
- package/bundles/nuxeo-development-framework.umd.js.map +1 -1
- package/esm2015/lib/components/file-manger/file-manager.abstract.js +9 -7
- package/fesm2015/nuxeo-development-framework.js +8 -6
- package/fesm2015/nuxeo-development-framework.js.map +1 -1
- package/lib/components/file-manger/file-manager.abstract.d.ts +2 -1
- package/package.json +1 -1
|
@@ -25471,6 +25471,7 @@ class FileManagerAbstract {
|
|
|
25471
25471
|
constructor(injectorObj, myPageConfigurationName, environment) {
|
|
25472
25472
|
this.injectorObj = injectorObj;
|
|
25473
25473
|
_FileManagerAbstract_instances.add(this);
|
|
25474
|
+
this.ignoreBreadcrumbFolders = [];
|
|
25474
25475
|
_FileManagerAbstract_foldersSubscription$.set(this, void 0);
|
|
25475
25476
|
this.subscriptions = [];
|
|
25476
25477
|
this.contextMenuActions = [];
|
|
@@ -25851,7 +25852,7 @@ class FileManagerAbstract {
|
|
|
25851
25852
|
currentPageIndex: 0
|
|
25852
25853
|
};
|
|
25853
25854
|
if (breadcrumbs) {
|
|
25854
|
-
this.expandComp(this.getFolderChildren(id, payload), breadcrumbs
|
|
25855
|
+
this.expandComp(this.getFolderChildren(id, payload), breadcrumbs).subscribe((d) => {
|
|
25855
25856
|
var _a, _b, _c;
|
|
25856
25857
|
let toSubstr;
|
|
25857
25858
|
if (this.mainFolder === 'sharedDocumentsRoot') {
|
|
@@ -25917,15 +25918,13 @@ class FileManagerAbstract {
|
|
|
25917
25918
|
this.cdRef.detectChanges();
|
|
25918
25919
|
}), first());
|
|
25919
25920
|
}
|
|
25920
|
-
expandComp(entries, breadcrumbs
|
|
25921
|
+
expandComp(entries, breadcrumbs) {
|
|
25921
25922
|
const payload = {
|
|
25922
25923
|
currentPageIndex: 0
|
|
25923
25924
|
};
|
|
25924
25925
|
return entries.pipe(mergeMap((entries) => from(entries).pipe(mergeMap((entry) => {
|
|
25925
|
-
const nextNode = entries.find((q) => q.id == breadcrumbs[indexNextNode]);
|
|
25926
|
-
// if not exist will loaded otherwise keep everyting as will
|
|
25927
25926
|
if (breadcrumbs.includes(entry.id)) {
|
|
25928
|
-
return concat(of(entry).pipe(tap((ent) => (ent['items'] = []))), this.expandComp(this.getFolderChildren(entry.id, payload), breadcrumbs
|
|
25927
|
+
return concat(of(entry).pipe(tap((ent) => (ent['items'] = []))), this.expandComp(this.getFolderChildren(entry.id, payload), breadcrumbs)).pipe(reduce((parent, children) => {
|
|
25929
25928
|
parent.items = children;
|
|
25930
25929
|
return parent;
|
|
25931
25930
|
}));
|
|
@@ -26016,7 +26015,10 @@ class FileManagerAbstract {
|
|
|
26016
26015
|
this.path = res.path;
|
|
26017
26016
|
}
|
|
26018
26017
|
else {
|
|
26019
|
-
this.path = res.contextParameters.breadcrumb.entries
|
|
26018
|
+
this.path = res.contextParameters.breadcrumb.entries
|
|
26019
|
+
.filter((q) => !this.ignoreBreadcrumbFolders.includes(q.title))
|
|
26020
|
+
.map((item) => item.title)
|
|
26021
|
+
.join('/');
|
|
26020
26022
|
}
|
|
26021
26023
|
if (this.route.snapshot.queryParams['fromSharedDocument']) {
|
|
26022
26024
|
res.contextParameters.breadcrumb.entries = [
|