nuxeo-development-framework 5.0.7 → 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 +11 -8
- package/bundles/nuxeo-development-framework.umd.js.map +1 -1
- package/esm2015/lib/components/file-manger/file-manager.abstract.js +9 -7
- package/esm2015/lib/components/pdf-tron/pdftron/pdftron.component.js +3 -2
- package/fesm2015/nuxeo-development-framework.js +10 -7
- 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
|
@@ -27305,6 +27305,7 @@
|
|
|
27305
27305
|
var _this = this;
|
|
27306
27306
|
this.injectorObj = injectorObj;
|
|
27307
27307
|
_FileManagerAbstract_instances.add(this);
|
|
27308
|
+
this.ignoreBreadcrumbFolders = [];
|
|
27308
27309
|
_FileManagerAbstract_foldersSubscription$.set(this, void 0);
|
|
27309
27310
|
this.subscriptions = [];
|
|
27310
27311
|
this.contextMenuActions = [];
|
|
@@ -27708,7 +27709,7 @@
|
|
|
27708
27709
|
currentPageIndex: 0
|
|
27709
27710
|
};
|
|
27710
27711
|
if (breadcrumbs) {
|
|
27711
|
-
this.expandComp(this.getFolderChildren(id, payload), breadcrumbs
|
|
27712
|
+
this.expandComp(this.getFolderChildren(id, payload), breadcrumbs).subscribe(function (d) {
|
|
27712
27713
|
var _a, _b, _c;
|
|
27713
27714
|
var toSubstr;
|
|
27714
27715
|
if (_this.mainFolder === 'sharedDocumentsRoot') {
|
|
@@ -27778,17 +27779,14 @@
|
|
|
27778
27779
|
_this.cdRef.detectChanges();
|
|
27779
27780
|
}), operators.first());
|
|
27780
27781
|
};
|
|
27781
|
-
FileManagerAbstract.prototype.expandComp = function (entries, breadcrumbs
|
|
27782
|
+
FileManagerAbstract.prototype.expandComp = function (entries, breadcrumbs) {
|
|
27782
27783
|
var _this = this;
|
|
27783
|
-
if (indexNextNode === void 0) { indexNextNode = 1; }
|
|
27784
27784
|
var payload = {
|
|
27785
27785
|
currentPageIndex: 0
|
|
27786
27786
|
};
|
|
27787
27787
|
return entries.pipe(operators.mergeMap(function (entries) { return rxjs.from(entries).pipe(operators.mergeMap(function (entry) {
|
|
27788
|
-
var nextNode = entries.find(function (q) { return q.id == breadcrumbs[indexNextNode]; });
|
|
27789
|
-
// if not exist will loaded otherwise keep everyting as will
|
|
27790
27788
|
if (breadcrumbs.includes(entry.id)) {
|
|
27791
|
-
return rxjs.concat(rxjs.of(entry).pipe(operators.tap(function (ent) { return (ent['items'] = []); })), _this.expandComp(_this.getFolderChildren(entry.id, payload), breadcrumbs
|
|
27789
|
+
return rxjs.concat(rxjs.of(entry).pipe(operators.tap(function (ent) { return (ent['items'] = []); })), _this.expandComp(_this.getFolderChildren(entry.id, payload), breadcrumbs)).pipe(operators.reduce(function (parent, children) {
|
|
27792
27790
|
parent.items = children;
|
|
27793
27791
|
return parent;
|
|
27794
27792
|
}));
|
|
@@ -27888,12 +27886,16 @@
|
|
|
27888
27886
|
var _this = this;
|
|
27889
27887
|
this.fileManagerService.getFolder(id).subscribe(function (res) { return __awaiter(_this, void 0, void 0, function () {
|
|
27890
27888
|
var breadcrumbs;
|
|
27889
|
+
var _this = this;
|
|
27891
27890
|
return __generator(this, function (_q) {
|
|
27892
27891
|
if (this.myPageConfiguration.isStaticRoot) {
|
|
27893
27892
|
this.path = res.path;
|
|
27894
27893
|
}
|
|
27895
27894
|
else {
|
|
27896
|
-
this.path = res.contextParameters.breadcrumb.entries
|
|
27895
|
+
this.path = res.contextParameters.breadcrumb.entries
|
|
27896
|
+
.filter(function (q) { return !_this.ignoreBreadcrumbFolders.includes(q.title); })
|
|
27897
|
+
.map(function (item) { return item.title; })
|
|
27898
|
+
.join('/');
|
|
27897
27899
|
}
|
|
27898
27900
|
if (this.route.snapshot.queryParams['fromSharedDocument']) {
|
|
27899
27901
|
res.contextParameters.breadcrumb.entries = __spreadArray([
|
|
@@ -30856,9 +30858,10 @@
|
|
|
30856
30858
|
display: 'block'
|
|
30857
30859
|
});
|
|
30858
30860
|
}, _PdftronComponent_afterLoadWebViewer = function _PdftronComponent_afterLoadWebViewer(instance) {
|
|
30861
|
+
var _a, _b;
|
|
30859
30862
|
this.isArabic ? instance.setLanguage('ar') : instance.setLanguage('en');
|
|
30860
30863
|
this.pdftronService.instance = this.webViewerInstance = instance;
|
|
30861
|
-
if (this.correspondance.facets.indexOf('ctocr') > -1) {
|
|
30864
|
+
if (this.correspondance.facets.indexOf('ctocr') > -1 && ((_b = (_a = this.correspondance) === null || _a === void 0 ? void 0 : _a.properties) === null || _b === void 0 ? void 0 : _b['ctocr:recognizedJson'])) {
|
|
30862
30865
|
this.fileWithOcr = true;
|
|
30863
30866
|
this.pages = JSON.parse(this.correspondance.properties['ctocr:recognizedJson']);
|
|
30864
30867
|
// override search funtion to use our search in ocr not defult search
|