nuxeo-development-framework 0.9.6 → 0.9.7
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/bundles/nuxeo-development-framework.umd.js +3 -3
- package/bundles/nuxeo-development-framework.umd.js.map +1 -1
- package/esm2015/lib/components/dynamic-view/custom-pp-viewer/custom-pp-viewer.component.js +4 -4
- package/fesm2015/nuxeo-development-framework.js +3 -3
- package/fesm2015/nuxeo-development-framework.js.map +1 -1
- package/package.json +1 -1
|
@@ -13296,7 +13296,6 @@
|
|
|
13296
13296
|
propertyEn: 'dc:title',
|
|
13297
13297
|
filterParam: 'category_code'
|
|
13298
13298
|
};
|
|
13299
|
-
this.config = Object.assign(Object.assign({}, this.defaultConfig), (this.config ? this.config : {}));
|
|
13300
13299
|
}
|
|
13301
13300
|
CustomPpViewerComponent.prototype.ngOnInit = function () {
|
|
13302
13301
|
var _this = this;
|
|
@@ -13310,13 +13309,14 @@
|
|
|
13310
13309
|
CustomPpViewerComponent.prototype.getData = function () {
|
|
13311
13310
|
var _c;
|
|
13312
13311
|
var _this = this;
|
|
13312
|
+
var _a, _b;
|
|
13313
13313
|
if (this.dynamicViewService.getDataFromStoredAggregation(this.group.key)) {
|
|
13314
13314
|
var storedAggreg = this.dynamicViewService.getDataFromStoredAggregation(this.group.key);
|
|
13315
13315
|
this.data = storedAggreg ? storedAggreg['data'] : null;
|
|
13316
13316
|
}
|
|
13317
13317
|
else {
|
|
13318
13318
|
var params = (_c = {},
|
|
13319
|
-
_c[this.config.filterParam] = this.group.key,
|
|
13319
|
+
_c[((_a = this.config) === null || _a === void 0 ? void 0 : _a.filterParam) ? (_b = this.config) === null || _b === void 0 ? void 0 : _b.filterParam : this.defaultConfig.filterParam] = this.group.key,
|
|
13320
13320
|
_c);
|
|
13321
13321
|
this.callApi.query(Object.assign({ pageProvider: this.pageProvider }, params), {
|
|
13322
13322
|
headers: {
|
|
@@ -13335,7 +13335,7 @@
|
|
|
13335
13335
|
return CustomPpViewerComponent;
|
|
13336
13336
|
}());
|
|
13337
13337
|
CustomPpViewerComponent.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.4", ngImport: i0__namespace, type: CustomPpViewerComponent, deps: [{ token: DynamicVieweService }, { token: CallApiService }, { token: TranslationService$1 }], target: i0__namespace.ɵɵFactoryTarget.Component });
|
|
13338
|
-
CustomPpViewerComponent.ɵcmp = i0__namespace.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "12.2.4", type: CustomPpViewerComponent, selector: "lib-custom-pp-viewer", inputs: { pageProvider: "pageProvider", group: "group", config: "config" }, ngImport: i0__namespace, template: "<span *ngIf=\"data\">\r\n {{isArabic ? data[config.propertyAr] : data[config.propertyEn]}}\r\n</span>", styles: [""], directives: [{ type: i4__namespace.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }] });
|
|
13338
|
+
CustomPpViewerComponent.ɵcmp = i0__namespace.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "12.2.4", type: CustomPpViewerComponent, selector: "lib-custom-pp-viewer", inputs: { pageProvider: "pageProvider", group: "group", config: "config" }, ngImport: i0__namespace, template: "<span *ngIf=\"data\">\r\n {{isArabic ? data[config.propertyAr ? config.propertyAr : defaultConfig.propertyAr] : data[config.propertyEn ? config.propertyEn : defaultConfig.propertyEn]}}\r\n</span>", styles: [""], directives: [{ type: i4__namespace.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }] });
|
|
13339
13339
|
i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.4", ngImport: i0__namespace, type: CustomPpViewerComponent, decorators: [{
|
|
13340
13340
|
type: i0.Component,
|
|
13341
13341
|
args: [{
|