nuxeo-development-framework 5.6.1 → 5.6.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 +27 -3
- package/bundles/nuxeo-development-framework.umd.js.map +1 -1
- package/esm2015/lib/components/reports/ndf-reports/base/base-custom-report.js +10 -1
- package/esm2015/lib/components/reports/ndf-reports/charts-components/graph-chart/graph-chart.component.js +4 -1
- package/esm2015/lib/components/reports/ndf-reports/models/details.js +1 -1
- package/esm2015/lib/components/reports/ndf-reports/services/chart-data-transformers.service.js +11 -3
- package/esm2015/lib/components/reports/ndf-reports/services/chart-plugins-registry.service.js +6 -2
- package/esm2015/lib/components/spell-checker-field/spell-checker-field.module.js +1 -1
- package/esm2015/lib/components/tables/ndf-table/models/table-column.js +1 -1
- package/esm2015/lib/components/tables/ndf-table/models/table-config.js +1 -1
- package/esm2015/lib/components/tables/ndf-table/models/types.js +1 -1
- package/fesm2015/nuxeo-development-framework.js +27 -3
- package/fesm2015/nuxeo-development-framework.js.map +1 -1
- package/lib/components/reports/ndf-reports/base/base-custom-report.d.ts +1 -0
- package/lib/components/reports/ndf-reports/models/details.d.ts +1 -1
- package/lib/components/reports/ndf-reports/services/chart-plugins-registry.service.d.ts +1 -1
- package/lib/components/tables/ndf-table/models/table-column.d.ts +0 -4
- package/lib/components/tables/ndf-table/models/table-config.d.ts +1 -13
- package/lib/components/tables/ndf-table/models/types.d.ts +0 -11
- package/package.json +2 -2
- package/src/docs/ndf-reports.doc.md +1213 -0
- package/src/docs/ndf-table.doc.md +1 -1
|
@@ -45113,7 +45113,11 @@
|
|
|
45113
45113
|
* @returns The Transformer function or undefined if not found
|
|
45114
45114
|
*/
|
|
45115
45115
|
ChartDataTransformers.prototype.getGraphTransformer = function (key) {
|
|
45116
|
-
|
|
45116
|
+
var transformer = this.graphTransformers.get(key);
|
|
45117
|
+
if (!transformer) {
|
|
45118
|
+
console.error("Transformer '" + key + "' not registered ");
|
|
45119
|
+
}
|
|
45120
|
+
return transformer;
|
|
45117
45121
|
};
|
|
45118
45122
|
/**
|
|
45119
45123
|
* Registers a digits Transformer function with the specified key
|
|
@@ -45129,7 +45133,11 @@
|
|
|
45129
45133
|
* @returns The Transformer function or undefined if not found
|
|
45130
45134
|
*/
|
|
45131
45135
|
ChartDataTransformers.prototype.getDigitsTransformer = function (key) {
|
|
45132
|
-
|
|
45136
|
+
var transformer = this.digitsTransformers.get(key);
|
|
45137
|
+
if (!transformer) {
|
|
45138
|
+
console.error("Transformer '" + key + "' not registered ");
|
|
45139
|
+
}
|
|
45140
|
+
return transformer;
|
|
45133
45141
|
};
|
|
45134
45142
|
/**
|
|
45135
45143
|
* Registers multiple graph Transformers at once using a key-value object
|
|
@@ -45370,7 +45378,11 @@
|
|
|
45370
45378
|
* @returns The plugin instance or undefined if not found
|
|
45371
45379
|
*/
|
|
45372
45380
|
ChartPluginsRegistry.prototype.get = function (key) {
|
|
45373
|
-
|
|
45381
|
+
var plugin = this._plugins.get(key);
|
|
45382
|
+
if (!plugin) {
|
|
45383
|
+
console.error("Plugin with key '" + key + "' not found.");
|
|
45384
|
+
}
|
|
45385
|
+
return plugin;
|
|
45374
45386
|
};
|
|
45375
45387
|
/**
|
|
45376
45388
|
* Remove a plugin by its key
|
|
@@ -46119,6 +46131,9 @@
|
|
|
46119
46131
|
if (this.chart) {
|
|
46120
46132
|
this._chartHelperService.destroy(this.chart.id);
|
|
46121
46133
|
}
|
|
46134
|
+
if (this._printListener) {
|
|
46135
|
+
window.removeEventListener('beforeprint', this._printListener);
|
|
46136
|
+
}
|
|
46122
46137
|
};
|
|
46123
46138
|
return GraphChartComponent;
|
|
46124
46139
|
}(BaseChart));
|
|
@@ -46374,6 +46389,15 @@
|
|
|
46374
46389
|
_this.chart.resize();
|
|
46375
46390
|
});
|
|
46376
46391
|
};
|
|
46392
|
+
BaseCustomReport.prototype.ngOnDestroy = function () {
|
|
46393
|
+
if (this.chart) {
|
|
46394
|
+
this.chart.destroy();
|
|
46395
|
+
}
|
|
46396
|
+
if (this._printListener) {
|
|
46397
|
+
window.removeEventListener('beforeprint', this._printListener);
|
|
46398
|
+
}
|
|
46399
|
+
_super.prototype.ngOnDestroy.call(this);
|
|
46400
|
+
};
|
|
46377
46401
|
return BaseCustomReport;
|
|
46378
46402
|
}(DestroySubject));
|
|
46379
46403
|
BaseCustomReport.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0__namespace, type: BaseCustomReport, deps: [{ token: i0__namespace.Injector }], target: i0__namespace.ɵɵFactoryTarget.Directive });
|