nuxeo-development-framework 5.5.1 → 5.5.2
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 +52 -22
- package/bundles/nuxeo-development-framework.umd.js.map +1 -1
- package/esm2015/lib/components/ndf-config-editor/constants/index.js +2 -2
- package/esm2015/lib/components/reports/ndf-reports/models/details.js +1 -1
- package/esm2015/lib/components/reports/ndf-reports/models/ndf-reports.config.js +1 -1
- package/esm2015/lib/components/reports/ndf-reports/services/index.js +2 -1
- package/esm2015/lib/components/reports/ndf-reports/services/report-details.service.js +29 -0
- package/esm2015/lib/components/reports/ndf-reports/utilities/reports-table.mapper.js +3 -2
- package/esm2015/lib/components/tables/ndf-table/containers/ndf-table/ndf-table.component.js +7 -7
- package/esm2015/lib/components/tables/ndf-table/models/table-column.js +1 -1
- package/esm2015/lib/components/tables/ndf-table/models/table-options.js +1 -1
- package/esm2015/lib/components/tables/ndf-table/services/ndf-table.service.js +2 -2
- package/esm2015/lib/shared/constants/editor-config-type.js +5 -0
- package/esm2015/lib/shared/constants/index.js +2 -0
- package/esm2015/lib/shared/index.js +2 -1
- package/esm2015/lib/shared/services/base/base-editor-config.service.js +1 -1
- package/esm2015/public-api.js +2 -1
- package/fesm2015/nuxeo-development-framework.js +49 -23
- package/fesm2015/nuxeo-development-framework.js.map +1 -1
- package/lib/components/ndf-config-editor/constants/index.d.ts +1 -1
- package/lib/components/reports/ndf-reports/containers/ndf-reports/ndf-reports.component.d.ts +1 -1
- package/lib/components/reports/ndf-reports/models/details.d.ts +5 -1
- package/lib/components/reports/ndf-reports/models/ndf-reports.config.d.ts +1 -1
- package/lib/components/reports/ndf-reports/services/index.d.ts +1 -0
- package/lib/components/reports/ndf-reports/services/report-details.service.d.ts +12 -0
- package/lib/components/tables/ndf-table/models/table-column.d.ts +1 -0
- package/lib/components/tables/ndf-table/models/table-options.d.ts +1 -1
- package/lib/shared/constants/index.d.ts +1 -0
- package/lib/shared/index.d.ts +1 -0
- package/lib/shared/services/base/base-editor-config.service.d.ts +3 -1
- package/package.json +1 -1
- package/public-api.d.ts +1 -0
- package/esm2015/lib/components/ndf-config-editor/constants/type.js +0 -5
- /package/lib/{components/ndf-config-editor/constants/type.d.ts → shared/constants/editor-config-type.d.ts} +0 -0
|
@@ -20335,6 +20335,11 @@
|
|
|
20335
20335
|
escape: /\{\{\{([\s\S]+?)\}\}\}/g
|
|
20336
20336
|
};
|
|
20337
20337
|
|
|
20338
|
+
var NDF_EDITOR_TYPE = {
|
|
20339
|
+
REPORTS: 'report',
|
|
20340
|
+
TABLES: 'table'
|
|
20341
|
+
};
|
|
20342
|
+
|
|
20338
20343
|
var BaseField = /** @class */ (function (_super) {
|
|
20339
20344
|
__extends(BaseField, _super);
|
|
20340
20345
|
function BaseField() {
|
|
@@ -21521,21 +21526,6 @@
|
|
|
21521
21526
|
}
|
|
21522
21527
|
];
|
|
21523
21528
|
|
|
21524
|
-
var CONFIG_EDITOR_MODE = {
|
|
21525
|
-
EDIT: 'edit',
|
|
21526
|
-
PREVIEW: 'preview'
|
|
21527
|
-
};
|
|
21528
|
-
|
|
21529
|
-
var NDF_EDITOR_TYPE = {
|
|
21530
|
-
REPORTS: 'report',
|
|
21531
|
-
TABLES: 'table'
|
|
21532
|
-
};
|
|
21533
|
-
|
|
21534
|
-
var PARAMS_KEYS = {
|
|
21535
|
-
TYPE: 'type',
|
|
21536
|
-
KEY: 'key',
|
|
21537
|
-
};
|
|
21538
|
-
|
|
21539
21529
|
var DynamicTableService = /** @class */ (function () {
|
|
21540
21530
|
function DynamicTableService() {
|
|
21541
21531
|
this.refreshData = new i0.EventEmitter();
|
|
@@ -22284,7 +22274,7 @@
|
|
|
22284
22274
|
headers: request === null || request === void 0 ? void 0 : request.headers,
|
|
22285
22275
|
queryParams: request === null || request === void 0 ? void 0 : request.params,
|
|
22286
22276
|
payload: payload
|
|
22287
|
-
}).pipe(operators.map(function (res) { return ("" + (res === null || res === void 0 ? void 0 : res.
|
|
22277
|
+
}).pipe(operators.map(function (res) { return ("" + (res === null || res === void 0 ? void 0 : res.Status)).toLowerCase() === 'success'; }));
|
|
22288
22278
|
};
|
|
22289
22279
|
return NdfTableService;
|
|
22290
22280
|
}(BaseService));
|
|
@@ -22332,6 +22322,16 @@
|
|
|
22332
22322
|
|
|
22333
22323
|
var PROJECT_BASE_HREF = new i0.InjectionToken('PROJECT_BASE_HREF');
|
|
22334
22324
|
|
|
22325
|
+
var CONFIG_EDITOR_MODE = {
|
|
22326
|
+
EDIT: 'edit',
|
|
22327
|
+
PREVIEW: 'preview'
|
|
22328
|
+
};
|
|
22329
|
+
|
|
22330
|
+
var PARAMS_KEYS = {
|
|
22331
|
+
TYPE: 'type',
|
|
22332
|
+
KEY: 'key',
|
|
22333
|
+
};
|
|
22334
|
+
|
|
22335
22335
|
var EditorButtonComponent = /** @class */ (function () {
|
|
22336
22336
|
function EditorButtonComponent(environment, router, baseAppUrl, configService) {
|
|
22337
22337
|
var _a;
|
|
@@ -22698,7 +22698,7 @@
|
|
|
22698
22698
|
return;
|
|
22699
22699
|
}
|
|
22700
22700
|
var columns = this._displayedColumnsSub.getValue();
|
|
22701
|
-
var fields = columns.map(function (col) { return col.headerClass; });
|
|
22701
|
+
var fields = columns.map(function (col) { return col.headerClass || (col === null || col === void 0 ? void 0 : col.filedKey); });
|
|
22702
22702
|
var headers = columns.map(function (col) { return (_this.tableConfig.prefix || '') + col.name; });
|
|
22703
22703
|
var criteria = this._customCriteriaSub.getValue();
|
|
22704
22704
|
request.params = Object.assign({}, criteria.params, this._sortValue || {}, ((_b = this.tableConfig) === null || _b === void 0 ? void 0 : _b.quickFilters) ? { quickFilters: this.tableConfig.quickFilters } : {}, request.params);
|
|
@@ -22723,10 +22723,10 @@
|
|
|
22723
22723
|
payload.reportMetaData.headers = headers.map(function (col) { return ___default["default"].get(currentTranslations, col); });
|
|
22724
22724
|
payload.reportMetaData.blobName = ___default["default"].get(translations['ar'], blobNameKey);
|
|
22725
22725
|
payload.reportMetaData.blobNameEn = ___default["default"].get(translations['en'], blobNameKey);
|
|
22726
|
-
return _this._ngTableService.exportTable(request, payload)
|
|
22727
|
-
|
|
22728
|
-
|
|
22729
|
-
|
|
22726
|
+
return _this._ngTableService.exportTable(request, payload).pipe(operators.catchError(function (_) {
|
|
22727
|
+
_this._toastrService.error('TABLE.EXPORT.RequestError');
|
|
22728
|
+
return rxjs.of(false);
|
|
22729
|
+
}));
|
|
22730
22730
|
}), operators.filter(Boolean), operators.takeUntil(this.destroy$))
|
|
22731
22731
|
.subscribe(function (res) {
|
|
22732
22732
|
if (res) {
|
|
@@ -45574,6 +45574,34 @@
|
|
|
45574
45574
|
}]
|
|
45575
45575
|
}], ctorParameters: function () { return [{ type: i0__namespace.ComponentFactoryResolver }]; } });
|
|
45576
45576
|
|
|
45577
|
+
var ReportDetailsService = /** @class */ (function (_super) {
|
|
45578
|
+
__extends(ReportDetailsService, _super);
|
|
45579
|
+
function ReportDetailsService(injector) {
|
|
45580
|
+
var _this = _super.call(this, injector) || this;
|
|
45581
|
+
_this.injector = injector;
|
|
45582
|
+
return _this;
|
|
45583
|
+
}
|
|
45584
|
+
ReportDetailsService.prototype.getTableConfiguration = function (key, localPath) {
|
|
45585
|
+
var _a;
|
|
45586
|
+
return this.fetchData({
|
|
45587
|
+
key: key,
|
|
45588
|
+
type: NDF_EDITOR_TYPE.REPORTS,
|
|
45589
|
+
app: (_a = this.environment) === null || _a === void 0 ? void 0 : _a.appKey,
|
|
45590
|
+
localPath: localPath
|
|
45591
|
+
}).pipe(operators.map(function (res) {
|
|
45592
|
+
var _a;
|
|
45593
|
+
return (_a = res === null || res === void 0 ? void 0 : res.data) === null || _a === void 0 ? void 0 : _a.config;
|
|
45594
|
+
}));
|
|
45595
|
+
};
|
|
45596
|
+
return ReportDetailsService;
|
|
45597
|
+
}(BaseEditorConfigService));
|
|
45598
|
+
ReportDetailsService.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0__namespace, type: ReportDetailsService, deps: [{ token: i0__namespace.Injector }], target: i0__namespace.ɵɵFactoryTarget.Injectable });
|
|
45599
|
+
ReportDetailsService.ɵprov = i0__namespace.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0__namespace, type: ReportDetailsService, providedIn: 'root' });
|
|
45600
|
+
i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0__namespace, type: ReportDetailsService, decorators: [{
|
|
45601
|
+
type: i0.Injectable,
|
|
45602
|
+
args: [{ providedIn: 'root' }]
|
|
45603
|
+
}], ctorParameters: function () { return [{ type: i0__namespace.Injector }]; } });
|
|
45604
|
+
|
|
45577
45605
|
var DigitChartComponent = /** @class */ (function (_super) {
|
|
45578
45606
|
__extends(DigitChartComponent, _super);
|
|
45579
45607
|
function DigitChartComponent() {
|
|
@@ -46552,7 +46580,8 @@
|
|
|
46552
46580
|
function mapToNdfTableConfig(report, details) {
|
|
46553
46581
|
var _a, _b, _c, _d, _e;
|
|
46554
46582
|
var _request = report.request;
|
|
46555
|
-
var
|
|
46583
|
+
var source = ___default["default"].merge((_a = report.reports) === null || _a === void 0 ? void 0 : _a.details, details).source;
|
|
46584
|
+
var _detailsConfig = source;
|
|
46556
46585
|
var customUrl = ___default["default"].merge({
|
|
46557
46586
|
url: "/api/v1" + (_request === null || _request === void 0 ? void 0 : _request.customUrl.url),
|
|
46558
46587
|
method: _request === null || _request === void 0 ? void 0 : _request.customUrl.method
|
|
@@ -48228,6 +48257,7 @@
|
|
|
48228
48257
|
exports.RemoveButtonComponent = RemoveButtonComponent;
|
|
48229
48258
|
exports.RenameComponent = RenameComponent;
|
|
48230
48259
|
exports.ReportConfigMapperService = ReportConfigMapperService;
|
|
48260
|
+
exports.ReportDetailsService = ReportDetailsService;
|
|
48231
48261
|
exports.ReportTransformService = ReportTransformService;
|
|
48232
48262
|
exports.ReportsDataTransformers = ReportsDataTransformers;
|
|
48233
48263
|
exports.ReportsStateService = ReportsStateService;
|