nuxeo-development-framework 5.5.3 → 5.5.4
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 +257 -57
- package/bundles/nuxeo-development-framework.umd.js.map +1 -1
- package/esm2015/lib/components/reports/charts/plugins/data-labels.js +3 -3
- package/esm2015/lib/components/reports/charts/utility/css.js +3 -3
- package/esm2015/lib/components/reports/ndf-reports/base/base-graph.report.js +6 -3
- package/esm2015/lib/components/reports/ndf-reports/base/base-report.js +2 -1
- package/esm2015/lib/components/reports/ndf-reports/components/dynamic-timeline-report/dynamic-timeline-report.component.js +26 -4
- package/esm2015/lib/components/reports/ndf-reports/components/graph-report/graph-report.component.js +28 -4
- package/esm2015/lib/components/reports/ndf-reports/containers/ndf-report/ndf-report.component.js +7 -1
- package/esm2015/lib/components/reports/ndf-reports/services/chart-theme.service.js +54 -0
- package/esm2015/lib/components/reports/ndf-reports/services/dynamic-timeline-report.service.js +1 -1
- package/esm2015/lib/components/reports/ndf-reports/services/index.js +2 -1
- package/esm2015/lib/components/reports/ndf-reports/services/report-config-mapper.service.js +21 -4
- package/esm2015/lib/components/reports/ndf-reports/utilities/dataset-colors.js +51 -0
- package/esm2015/lib/components/reports/ndf-reports/utilities/index.js +2 -1
- package/fesm2015/nuxeo-development-framework.js +225 -56
- package/fesm2015/nuxeo-development-framework.js.map +1 -1
- package/lib/components/reports/ndf-reports/base/base-graph.report.d.ts +5 -2
- package/lib/components/reports/ndf-reports/base/base-report.d.ts +2 -1
- package/lib/components/reports/ndf-reports/components/dynamic-timeline-report/dynamic-timeline-report.component.d.ts +5 -2
- package/lib/components/reports/ndf-reports/components/graph-report/graph-report.component.d.ts +5 -1
- package/lib/components/reports/ndf-reports/containers/ndf-report/ndf-report.component.d.ts +3 -1
- package/lib/components/reports/ndf-reports/services/chart-theme.service.d.ts +14 -0
- package/lib/components/reports/ndf-reports/services/index.d.ts +1 -0
- package/lib/components/reports/ndf-reports/services/report-config-mapper.service.d.ts +1 -0
- package/lib/components/reports/ndf-reports/utilities/dataset-colors.d.ts +1 -0
- package/lib/components/reports/ndf-reports/utilities/index.d.ts +1 -0
- package/package.json +1 -1
|
@@ -43490,7 +43490,7 @@
|
|
|
43490
43490
|
* @returns {string | number} - The value of the CSS variable or the provided default value.
|
|
43491
43491
|
*/
|
|
43492
43492
|
function getCssVariable(key, defaultValue) {
|
|
43493
|
-
var root = document.documentElement;
|
|
43493
|
+
var root = document.querySelector('[data-theme]') || document.documentElement;
|
|
43494
43494
|
var computedStyle = getComputedStyle(root);
|
|
43495
43495
|
return computedStyle.getPropertyValue(key).trim() || defaultValue;
|
|
43496
43496
|
}
|
|
@@ -43547,7 +43547,7 @@
|
|
|
43547
43547
|
'#3c3cf0',
|
|
43548
43548
|
'#f17205' // Bright orange
|
|
43549
43549
|
]; }
|
|
43550
|
-
var root = document.documentElement;
|
|
43550
|
+
var root = document.querySelector('[data-theme]') || document.documentElement;
|
|
43551
43551
|
var computedStyle = getComputedStyle(root);
|
|
43552
43552
|
var colors = [];
|
|
43553
43553
|
for (var index = 0; index < length; index++) {
|
|
@@ -44210,7 +44210,7 @@
|
|
|
44210
44210
|
var fitsInside = textMetrics.width + textPadding * 2 <= dataPoint.width;
|
|
44211
44211
|
if (fitsInside) {
|
|
44212
44212
|
return {
|
|
44213
|
-
x: dataPoint.x + (isReversed ? textMetrics.width / 2 : -textMetrics.width / 2),
|
|
44213
|
+
x: dataPoint.x + (isReversed ? textMetrics.width / 2 + textPadding : -(textMetrics.width / 2 + textPadding)),
|
|
44214
44214
|
y: dataPoint.y,
|
|
44215
44215
|
color: getTextColor(backgroundColor)
|
|
44216
44216
|
};
|
|
@@ -44228,7 +44228,7 @@
|
|
|
44228
44228
|
if (fitsInside) {
|
|
44229
44229
|
return {
|
|
44230
44230
|
x: dataPoint.x,
|
|
44231
|
-
y: dataPoint.y,
|
|
44231
|
+
y: dataPoint.y + textPadding / 2 + textMetrics.height / 2,
|
|
44232
44232
|
color: getTextColor(backgroundColor)
|
|
44233
44233
|
};
|
|
44234
44234
|
}
|
|
@@ -45356,6 +45356,122 @@
|
|
|
45356
45356
|
};
|
|
45357
45357
|
}
|
|
45358
45358
|
|
|
45359
|
+
function mapToNdfTableConfig(report, details) {
|
|
45360
|
+
var _a, _b, _c, _d;
|
|
45361
|
+
var _request = report.request;
|
|
45362
|
+
var _detailsConfig = details.source;
|
|
45363
|
+
var customUrl = ___default["default"].merge({
|
|
45364
|
+
url: "/api/v1" + (_request === null || _request === void 0 ? void 0 : _request.customUrl.url),
|
|
45365
|
+
method: _request === null || _request === void 0 ? void 0 : _request.customUrl.method
|
|
45366
|
+
}, ((_a = _detailsConfig === null || _detailsConfig === void 0 ? void 0 : _detailsConfig.request) === null || _a === void 0 ? void 0 : _a.customUrl) || {});
|
|
45367
|
+
var _headers = ((_b = _detailsConfig.request) === null || _b === void 0 ? void 0 : _b.headers) || _request.headers || {};
|
|
45368
|
+
var _queryParam = ((_c = _detailsConfig.request) === null || _c === void 0 ? void 0 : _c.params) || _request.params || {};
|
|
45369
|
+
var _sortingBy = ___default["default"].merge({
|
|
45370
|
+
sortBy: 'dc:modified',
|
|
45371
|
+
sortOrder: 'desc'
|
|
45372
|
+
}, _detailsConfig.sortingBy || {});
|
|
45373
|
+
var data = {
|
|
45374
|
+
options: {
|
|
45375
|
+
columns: _detailsConfig.columnsOptions,
|
|
45376
|
+
filters: {
|
|
45377
|
+
mode: 'payload',
|
|
45378
|
+
fields: [],
|
|
45379
|
+
panel: {
|
|
45380
|
+
visible: false,
|
|
45381
|
+
toggleButton: false
|
|
45382
|
+
}
|
|
45383
|
+
},
|
|
45384
|
+
export: _detailsConfig === null || _detailsConfig === void 0 ? void 0 : _detailsConfig.export
|
|
45385
|
+
},
|
|
45386
|
+
pageNumber: 1,
|
|
45387
|
+
pageSize: 10,
|
|
45388
|
+
fullWidth: 'auto',
|
|
45389
|
+
prefix: _detailsConfig.prefix || '',
|
|
45390
|
+
fields: (_detailsConfig === null || _detailsConfig === void 0 ? void 0 : _detailsConfig.fields) || {},
|
|
45391
|
+
pageProvider: _request.pageProvider || _detailsConfig.request.pageProvider,
|
|
45392
|
+
columns: _detailsConfig.columns || [],
|
|
45393
|
+
customUrl: customUrl,
|
|
45394
|
+
headers: _headers,
|
|
45395
|
+
queryParam: _queryParam,
|
|
45396
|
+
quickFilters: _detailsConfig.quickFilters,
|
|
45397
|
+
sortingBy: _sortingBy,
|
|
45398
|
+
requestActions: (_d = _detailsConfig === null || _detailsConfig === void 0 ? void 0 : _detailsConfig.request) === null || _d === void 0 ? void 0 : _d.actions
|
|
45399
|
+
};
|
|
45400
|
+
return data;
|
|
45401
|
+
}
|
|
45402
|
+
|
|
45403
|
+
function replaceDatasetColors(datasets) {
|
|
45404
|
+
if (!Array.isArray(datasets)) {
|
|
45405
|
+
return datasets;
|
|
45406
|
+
}
|
|
45407
|
+
return datasets.map(function (dataset) {
|
|
45408
|
+
var e_1, _a;
|
|
45409
|
+
var newDataset = Object.assign({}, dataset);
|
|
45410
|
+
try {
|
|
45411
|
+
// Process each property that might contain colors
|
|
45412
|
+
for (var _b = __values(Object.entries(dataset)), _c = _b.next(); !_c.done; _c = _b.next()) {
|
|
45413
|
+
var _d = __read(_c.value, 2), key = _d[0], value = _d[1];
|
|
45414
|
+
if (isColorProperty(key)) {
|
|
45415
|
+
newDataset[key] = replaceColors(value);
|
|
45416
|
+
}
|
|
45417
|
+
}
|
|
45418
|
+
}
|
|
45419
|
+
catch (e_1_1) { e_1 = { error: e_1_1 }; }
|
|
45420
|
+
finally {
|
|
45421
|
+
try {
|
|
45422
|
+
if (_c && !_c.done && (_a = _b.return)) _a.call(_b);
|
|
45423
|
+
}
|
|
45424
|
+
finally { if (e_1) throw e_1.error; }
|
|
45425
|
+
}
|
|
45426
|
+
return newDataset;
|
|
45427
|
+
});
|
|
45428
|
+
}
|
|
45429
|
+
// Helper function to identify color-related properties
|
|
45430
|
+
function isColorProperty(propertyName) {
|
|
45431
|
+
var colorProperties = [
|
|
45432
|
+
'backgroundColor',
|
|
45433
|
+
'borderColor',
|
|
45434
|
+
'pointBackgroundColor',
|
|
45435
|
+
'pointBorderColor',
|
|
45436
|
+
'pointHoverBackgroundColor',
|
|
45437
|
+
'pointHoverBorderColor',
|
|
45438
|
+
'hoverBackgroundColor',
|
|
45439
|
+
'hoverBorderColor',
|
|
45440
|
+
'color'
|
|
45441
|
+
];
|
|
45442
|
+
return colorProperties.includes(propertyName) || propertyName.toLowerCase().includes('color');
|
|
45443
|
+
}
|
|
45444
|
+
// Keep the original replaceColors for processing individual values
|
|
45445
|
+
function replaceColors(data) {
|
|
45446
|
+
var e_2, _a;
|
|
45447
|
+
if (typeof data === 'string' && (data.startsWith('var') || data.startsWith('--'))) {
|
|
45448
|
+
var match = data.match(/var\((--[^)]+)\)/);
|
|
45449
|
+
var value = match ? match[1] : data;
|
|
45450
|
+
return getColor(value);
|
|
45451
|
+
}
|
|
45452
|
+
if (data === null || typeof data !== 'object') {
|
|
45453
|
+
return data;
|
|
45454
|
+
}
|
|
45455
|
+
if (Array.isArray(data)) {
|
|
45456
|
+
return data.map(function (item) { return replaceColors(item); });
|
|
45457
|
+
}
|
|
45458
|
+
var newObject = {};
|
|
45459
|
+
try {
|
|
45460
|
+
for (var _b = __values(Object.entries(data)), _c = _b.next(); !_c.done; _c = _b.next()) {
|
|
45461
|
+
var _d = __read(_c.value, 2), key = _d[0], value = _d[1];
|
|
45462
|
+
newObject[key] = replaceColors(value);
|
|
45463
|
+
}
|
|
45464
|
+
}
|
|
45465
|
+
catch (e_2_1) { e_2 = { error: e_2_1 }; }
|
|
45466
|
+
finally {
|
|
45467
|
+
try {
|
|
45468
|
+
if (_c && !_c.done && (_a = _b.return)) _a.call(_b);
|
|
45469
|
+
}
|
|
45470
|
+
finally { if (e_2) throw e_2.error; }
|
|
45471
|
+
}
|
|
45472
|
+
return newObject;
|
|
45473
|
+
}
|
|
45474
|
+
|
|
45359
45475
|
var ReportConfigMapperService = /** @class */ (function () {
|
|
45360
45476
|
function ReportConfigMapperService(_chartPluginsRegistry) {
|
|
45361
45477
|
this._chartPluginsRegistry = _chartPluginsRegistry;
|
|
@@ -45371,7 +45487,7 @@
|
|
|
45371
45487
|
if (Array.isArray(plugins) && plugins.length > 0) {
|
|
45372
45488
|
chart.plugins = this._preparePlugins(plugins);
|
|
45373
45489
|
}
|
|
45374
|
-
chart.colors =
|
|
45490
|
+
chart.colors = this._prepareColors(colors);
|
|
45375
45491
|
return Object.assign(Object.assign({}, config), { chart: chart });
|
|
45376
45492
|
};
|
|
45377
45493
|
/**
|
|
@@ -45382,11 +45498,13 @@
|
|
|
45382
45498
|
ReportConfigMapperService.prototype.prepareGraphLineConfig = function (config) {
|
|
45383
45499
|
var _a = config.chart, plugins = _a.plugins, options = _a.options, rest = __rest(_a, ["plugins", "options"]);
|
|
45384
45500
|
var chart = Object.assign(Object.assign({}, rest), { options: getLineOptions(options) });
|
|
45501
|
+
if (chart.datasets && !!chart.datasets.length) {
|
|
45502
|
+
chart.datasets = replaceDatasetColors(chart.datasets);
|
|
45503
|
+
}
|
|
45385
45504
|
if (Array.isArray(plugins) && plugins.length > 0) {
|
|
45386
45505
|
chart.plugins = this._preparePlugins(plugins);
|
|
45387
45506
|
}
|
|
45388
|
-
|
|
45389
|
-
return Object.assign(Object.assign({}, config), { colors: _colors, chart: chart });
|
|
45507
|
+
return Object.assign(Object.assign({}, config), { colors: this._prepareColors(config === null || config === void 0 ? void 0 : config.colors), chart: chart });
|
|
45390
45508
|
};
|
|
45391
45509
|
/**
|
|
45392
45510
|
* Prepares a custom chart configuration
|
|
@@ -45411,6 +45529,9 @@
|
|
|
45411
45529
|
ReportConfigMapperService.prototype._preparePlugins = function (plugins) {
|
|
45412
45530
|
var _this = this;
|
|
45413
45531
|
return plugins.reduce(function (acc, plgName) {
|
|
45532
|
+
if (!plgName || typeof plgName !== 'string') {
|
|
45533
|
+
return acc;
|
|
45534
|
+
}
|
|
45414
45535
|
var plugin = _this._chartPluginsRegistry.get(plgName);
|
|
45415
45536
|
if (plugin) {
|
|
45416
45537
|
return __spreadArray(__spreadArray([], __read(acc)), [plugin]);
|
|
@@ -45431,6 +45552,17 @@
|
|
|
45431
45552
|
var key = type === 'bar' ? direction + "Bar" : type;
|
|
45432
45553
|
return ((_a = _optionsMap[key]) === null || _a === void 0 ? void 0 : _a.call(_optionsMap, options)) || {};
|
|
45433
45554
|
};
|
|
45555
|
+
ReportConfigMapperService.prototype._prepareColors = function (colors) {
|
|
45556
|
+
var _colors = (colors || []).map(function (color) {
|
|
45557
|
+
var str = "" + color;
|
|
45558
|
+
if (str.startsWith('var(')) {
|
|
45559
|
+
var match = str.match(/^var\((--[^)]+)\)/);
|
|
45560
|
+
return match ? getColor(match[1]) : str;
|
|
45561
|
+
}
|
|
45562
|
+
return str.startsWith('--') ? getColor(str) : str;
|
|
45563
|
+
});
|
|
45564
|
+
return __spreadArray(__spreadArray([], __read(_colors)), __read(getColors()));
|
|
45565
|
+
};
|
|
45434
45566
|
return ReportConfigMapperService;
|
|
45435
45567
|
}());
|
|
45436
45568
|
ReportConfigMapperService.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0__namespace, type: ReportConfigMapperService, deps: [{ token: ChartPluginsRegistry }], target: i0__namespace.ɵɵFactoryTarget.Injectable });
|
|
@@ -45614,6 +45746,59 @@
|
|
|
45614
45746
|
args: [{ providedIn: 'root' }]
|
|
45615
45747
|
}], ctorParameters: function () { return [{ type: i0__namespace.Injector }]; } });
|
|
45616
45748
|
|
|
45749
|
+
var ChartThemeService = /** @class */ (function () {
|
|
45750
|
+
function ChartThemeService() {
|
|
45751
|
+
this.currentTheme = new rxjs.BehaviorSubject('light');
|
|
45752
|
+
this.theme$ = this.currentTheme.asObservable();
|
|
45753
|
+
this._initializeThemeDetection();
|
|
45754
|
+
}
|
|
45755
|
+
ChartThemeService.prototype.getCurrentTheme = function () {
|
|
45756
|
+
return this._getThemeFromBody();
|
|
45757
|
+
};
|
|
45758
|
+
ChartThemeService.prototype.destroy = function () {
|
|
45759
|
+
if (this.observer) {
|
|
45760
|
+
this.observer.disconnect();
|
|
45761
|
+
}
|
|
45762
|
+
};
|
|
45763
|
+
ChartThemeService.prototype._initializeThemeDetection = function () {
|
|
45764
|
+
var initialTheme = this._getThemeFromBody();
|
|
45765
|
+
if (initialTheme !== this.currentTheme.value) {
|
|
45766
|
+
this.currentTheme.next(initialTheme);
|
|
45767
|
+
}
|
|
45768
|
+
this._setupThemeWatcher();
|
|
45769
|
+
};
|
|
45770
|
+
ChartThemeService.prototype._getThemeFromBody = function () {
|
|
45771
|
+
var bodyTheme = document.body.getAttribute('data-theme');
|
|
45772
|
+
return bodyTheme === 'dark' || bodyTheme === 'light' ? bodyTheme : 'light';
|
|
45773
|
+
};
|
|
45774
|
+
ChartThemeService.prototype._setupThemeWatcher = function () {
|
|
45775
|
+
var _this = this;
|
|
45776
|
+
this.observer = new MutationObserver(function (mutations) {
|
|
45777
|
+
mutations.forEach(function (mutation) {
|
|
45778
|
+
if (mutation.type === 'attributes' && mutation.attributeName === 'data-theme') {
|
|
45779
|
+
var newTheme = _this._getThemeFromBody();
|
|
45780
|
+
if (newTheme !== _this.currentTheme.value) {
|
|
45781
|
+
_this.currentTheme.next(newTheme);
|
|
45782
|
+
}
|
|
45783
|
+
}
|
|
45784
|
+
});
|
|
45785
|
+
});
|
|
45786
|
+
this.observer.observe(document.body, {
|
|
45787
|
+
attributes: true,
|
|
45788
|
+
attributeFilter: ['data-theme']
|
|
45789
|
+
});
|
|
45790
|
+
};
|
|
45791
|
+
return ChartThemeService;
|
|
45792
|
+
}());
|
|
45793
|
+
ChartThemeService.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0__namespace, type: ChartThemeService, deps: [], target: i0__namespace.ɵɵFactoryTarget.Injectable });
|
|
45794
|
+
ChartThemeService.ɵprov = i0__namespace.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0__namespace, type: ChartThemeService, providedIn: 'root' });
|
|
45795
|
+
i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0__namespace, type: ChartThemeService, decorators: [{
|
|
45796
|
+
type: i0.Injectable,
|
|
45797
|
+
args: [{
|
|
45798
|
+
providedIn: 'root'
|
|
45799
|
+
}]
|
|
45800
|
+
}], ctorParameters: function () { return []; } });
|
|
45801
|
+
|
|
45617
45802
|
var DigitChartComponent = /** @class */ (function (_super) {
|
|
45618
45803
|
__extends(DigitChartComponent, _super);
|
|
45619
45804
|
function DigitChartComponent() {
|
|
@@ -45768,6 +45953,7 @@
|
|
|
45768
45953
|
}
|
|
45769
45954
|
Object.defineProperty(BaseReport.prototype, "definition", {
|
|
45770
45955
|
set: function (obj) {
|
|
45956
|
+
this._definition = ___default["default"].cloneDeep(obj);
|
|
45771
45957
|
if (obj) {
|
|
45772
45958
|
this._configSub.next(this._prepareConfig(obj));
|
|
45773
45959
|
}
|
|
@@ -45862,6 +46048,8 @@
|
|
|
45862
46048
|
function BaseGraphReport() {
|
|
45863
46049
|
var _this = _super.apply(this, __spreadArray([], __read(arguments))) || this;
|
|
45864
46050
|
_this._dialog = _this.injector.get(ReportsDialogService);
|
|
46051
|
+
_this._chartThemeService = _this.injector.get(ChartThemeService);
|
|
46052
|
+
_this._initialTheme = _this._chartThemeService.getCurrentTheme();
|
|
45865
46053
|
return _this;
|
|
45866
46054
|
}
|
|
45867
46055
|
BaseGraphReport.prototype.openGraphDialog = function (component) {
|
|
@@ -46264,6 +46452,13 @@
|
|
|
46264
46452
|
}));
|
|
46265
46453
|
return _this;
|
|
46266
46454
|
}
|
|
46455
|
+
GraphReportComponent.prototype.ngAfterViewInit = function () {
|
|
46456
|
+
this._setupThemeWatcher();
|
|
46457
|
+
};
|
|
46458
|
+
GraphReportComponent.prototype.ngOnDestroy = function () {
|
|
46459
|
+
_super.prototype.ngOnDestroy.call(this);
|
|
46460
|
+
this._chartThemeService.destroy();
|
|
46461
|
+
};
|
|
46267
46462
|
GraphReportComponent.prototype.changeChartType = function (type) {
|
|
46268
46463
|
var _d;
|
|
46269
46464
|
var _a, _b;
|
|
@@ -46284,10 +46479,25 @@
|
|
|
46284
46479
|
this.graphChartComponent.printChart();
|
|
46285
46480
|
}
|
|
46286
46481
|
};
|
|
46482
|
+
GraphReportComponent.prototype._setupThemeWatcher = function () {
|
|
46483
|
+
var _this = this;
|
|
46484
|
+
this._chartThemeService.theme$
|
|
46485
|
+
.pipe(operators.filter(function (value) { return value !== _this._initialTheme && !!_this._definition; }), operators.takeUntil(this.destroy$))
|
|
46486
|
+
.subscribe(function (theme) {
|
|
46487
|
+
_this._initialTheme = theme;
|
|
46488
|
+
var _a = _this._configSub.getValue(), chart = _a.chart, config = __rest(_a, ["chart"]);
|
|
46489
|
+
var data = ___default["default"].merge({}, _this._definition, {
|
|
46490
|
+
chart: {
|
|
46491
|
+
type: chart.type
|
|
46492
|
+
}
|
|
46493
|
+
});
|
|
46494
|
+
_this._configSub.next(_this._prepareConfig(data));
|
|
46495
|
+
});
|
|
46496
|
+
};
|
|
46287
46497
|
return GraphReportComponent;
|
|
46288
46498
|
}(BaseGraphReport));
|
|
46289
46499
|
GraphReportComponent.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0__namespace, type: GraphReportComponent, deps: null, target: i0__namespace.ɵɵFactoryTarget.Component });
|
|
46290
|
-
GraphReportComponent.ɵcmp = i0__namespace.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "12.2.17", type: GraphReportComponent, selector: "app-graph-report", host: { classAttribute: "graph-report flex flex-col flex-grow" }, viewQueries: [{ propertyName: "graphChartComponent", first: true, predicate: ["graphChart"], descendants: true }], usesInheritance: true, ngImport: i0__namespace, template: "<chart-panel *ngIf=\"config$ | async as config\" class=\"ndf-report chart-report\">\r\n\t<chart-panel-header class=\"ndf-report__header mb-3\">\r\n\t\t<span>\r\n\t\t\t{{ config.label | translate }}\r\n\t\t</span>\r\n\t\t<button\r\n\t\t\t*ngIf=\"config?.dialog?.active\"\r\n\t\t\tclass=\"dialog-button print:hidden\"\r\n\t\t\t(click)=\"openGraphDialog()\"\r\n\t\t\t[matTooltip]=\"'REPORTS.fullscreen' | translate\"\r\n\t\t>\r\n\t\t\t<mat-icon>fullscreen</mat-icon>\r\n\t\t</button>\r\n\t</chart-panel-header>\r\n\r\n\t<app-graph-chart\r\n\t\t#graphChart\r\n\t\tclass=\"ndf-report__content graph-chart\"\r\n\t\t[config]=\"config\"\r\n\t\t[data]=\"data\"\r\n\t></app-graph-chart>\r\n\r\n\t<chart-panel-footer class=\"ndf-report__footer flex-wrap\">\r\n\t\t<app-report-actions\r\n\t\t\t[config]=\"config\"\r\n\t\t\t(print)=\"printChart()\"\r\n\t\t\t(navigate)=\"navigate()\"\r\n\t\t\t(open)=\"onOpen.emit(null)\"\r\n\t\t></app-report-actions>\r\n\r\n\t\t<chart-type-selector\r\n [config]=\"config?.typeConfig\"\r\n\t\t\t[direction]=\"direction\"\r\n\t\t\t[type]=\"chartType$ | async\"\r\n\t\t\t(typeChange)=\"changeChartType($event)\"\r\n\t\t></chart-type-selector>\r\n\t</chart-panel-footer>\r\n</chart-panel>\r\n", styles: [".ndf-report{display:flex;flex-direction:column;min-width:0;max-width:100%;flex-grow:1}.ndf-report__content{position:relative;padding-block:.5rem;flex-grow:1;min-width:0;max-width:100%}.chart-actions{border:var(--chart-actions-border, 1px solid var(--border-color))}.chart-actions__item{background:var(--chart-actions-background, transparent);color:var(--chart-actions-color, currentColor);box-shadow:var(--chart-actions-shadow, unset);width:var(--chart-actions-width, 35px);height:var(--chart-actions-height, 35px);border-radius:var(--chart-actions-border-radius, 4px);flex-grow:1;display:grid;place-items:center}.chart-actions__item .mat-icon{color:var(--main-color, currentColor)}.chart-actions__item:hover{--chart-actions-shadow: var(--chart-actions-hover-shadow, 0 0 0 1px var(--main-color))}.chart-actions__item.selected{--chart-actions-background: var(--chart-actions-active-background, var(--main-color));--chart-actions-color: var(--chart-actions-active-color, var(--main-hover))}.chart-actions__item.selected .mat-icon{color:currentColor!important}@media print{.chart-actions{display:none}}:host{min-width:0;max-width:100%}\n"], components: [{ type: ChartPanel, selector: "chart-panel" }, { type: ChartPanelHeaderComponent, selector: "chart-panel-header" }, { type: i2__namespace$1.MatIcon, selector: "mat-icon", inputs: ["color", "inline", "svgIcon", "fontSet", "fontIcon"], exportAs: ["matIcon"] }, { type: GraphChartComponent, selector: "app-graph-chart" }, { type: ChartPanelFooterComponent, selector: "chart-panel-footer" }, { type: ReportActionsComponent, selector: "app-report-actions", inputs: ["config"], outputs: ["navigate", "open", "print"] }, { type: ChartTypeSelectorComponent, selector: "chart-type-selector", inputs: ["direction", "config", "type"], outputs: ["typeChange"] }], directives: [{ type: i4__namespace$1.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { type: i7__namespace.MatTooltip, selector: "[matTooltip]", inputs: ["matTooltipShowDelay", "matTooltipHideDelay", "matTooltipTouchGestures", "matTooltipPosition", "matTooltipDisabled", "matTooltip", "matTooltipClass"], exportAs: ["matTooltip"] }], pipes: { "async": i4__namespace$1.AsyncPipe, "translate": i1__namespace.TranslatePipe } });
|
|
46500
|
+
GraphReportComponent.ɵcmp = i0__namespace.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "12.2.17", type: GraphReportComponent, selector: "app-graph-report", host: { classAttribute: "graph-report flex flex-col flex-grow" }, providers: [ChartThemeService], viewQueries: [{ propertyName: "graphChartComponent", first: true, predicate: ["graphChart"], descendants: true }], usesInheritance: true, ngImport: i0__namespace, template: "<chart-panel *ngIf=\"config$ | async as config\" class=\"ndf-report chart-report\">\r\n\t<chart-panel-header class=\"ndf-report__header mb-3\">\r\n\t\t<span>\r\n\t\t\t{{ config.label | translate }}\r\n\t\t</span>\r\n\t\t<button\r\n\t\t\t*ngIf=\"config?.dialog?.active\"\r\n\t\t\tclass=\"dialog-button print:hidden\"\r\n\t\t\t(click)=\"openGraphDialog()\"\r\n\t\t\t[matTooltip]=\"'REPORTS.fullscreen' | translate\"\r\n\t\t>\r\n\t\t\t<mat-icon>fullscreen</mat-icon>\r\n\t\t</button>\r\n\t</chart-panel-header>\r\n\r\n\t<app-graph-chart\r\n\t\t#graphChart\r\n\t\tclass=\"ndf-report__content graph-chart\"\r\n\t\t[config]=\"config\"\r\n\t\t[data]=\"data\"\r\n\t></app-graph-chart>\r\n\r\n\t<chart-panel-footer class=\"ndf-report__footer flex-wrap\">\r\n\t\t<app-report-actions\r\n\t\t\t[config]=\"config\"\r\n\t\t\t(print)=\"printChart()\"\r\n\t\t\t(navigate)=\"navigate()\"\r\n\t\t\t(open)=\"onOpen.emit(null)\"\r\n\t\t></app-report-actions>\r\n\r\n\t\t<chart-type-selector\r\n [config]=\"config?.typeConfig\"\r\n\t\t\t[direction]=\"direction\"\r\n\t\t\t[type]=\"chartType$ | async\"\r\n\t\t\t(typeChange)=\"changeChartType($event)\"\r\n\t\t></chart-type-selector>\r\n\t</chart-panel-footer>\r\n</chart-panel>\r\n", styles: [".ndf-report{display:flex;flex-direction:column;min-width:0;max-width:100%;flex-grow:1}.ndf-report__content{position:relative;padding-block:.5rem;flex-grow:1;min-width:0;max-width:100%}.chart-actions{border:var(--chart-actions-border, 1px solid var(--border-color))}.chart-actions__item{background:var(--chart-actions-background, transparent);color:var(--chart-actions-color, currentColor);box-shadow:var(--chart-actions-shadow, unset);width:var(--chart-actions-width, 35px);height:var(--chart-actions-height, 35px);border-radius:var(--chart-actions-border-radius, 4px);flex-grow:1;display:grid;place-items:center}.chart-actions__item .mat-icon{color:var(--main-color, currentColor)}.chart-actions__item:hover{--chart-actions-shadow: var(--chart-actions-hover-shadow, 0 0 0 1px var(--main-color))}.chart-actions__item.selected{--chart-actions-background: var(--chart-actions-active-background, var(--main-color));--chart-actions-color: var(--chart-actions-active-color, var(--main-hover))}.chart-actions__item.selected .mat-icon{color:currentColor!important}@media print{.chart-actions{display:none}}:host{min-width:0;max-width:100%}\n"], components: [{ type: ChartPanel, selector: "chart-panel" }, { type: ChartPanelHeaderComponent, selector: "chart-panel-header" }, { type: i2__namespace$1.MatIcon, selector: "mat-icon", inputs: ["color", "inline", "svgIcon", "fontSet", "fontIcon"], exportAs: ["matIcon"] }, { type: GraphChartComponent, selector: "app-graph-chart" }, { type: ChartPanelFooterComponent, selector: "chart-panel-footer" }, { type: ReportActionsComponent, selector: "app-report-actions", inputs: ["config"], outputs: ["navigate", "open", "print"] }, { type: ChartTypeSelectorComponent, selector: "chart-type-selector", inputs: ["direction", "config", "type"], outputs: ["typeChange"] }], directives: [{ type: i4__namespace$1.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { type: i7__namespace.MatTooltip, selector: "[matTooltip]", inputs: ["matTooltipShowDelay", "matTooltipHideDelay", "matTooltipTouchGestures", "matTooltipPosition", "matTooltipDisabled", "matTooltip", "matTooltipClass"], exportAs: ["matTooltip"] }], pipes: { "async": i4__namespace$1.AsyncPipe, "translate": i1__namespace.TranslatePipe } });
|
|
46291
46501
|
i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0__namespace, type: GraphReportComponent, decorators: [{
|
|
46292
46502
|
type: i0.Component,
|
|
46293
46503
|
args: [{
|
|
@@ -46296,7 +46506,8 @@
|
|
|
46296
46506
|
styleUrls: ['./graph-report.component.scss'],
|
|
46297
46507
|
host: {
|
|
46298
46508
|
class: 'graph-report flex flex-col flex-grow'
|
|
46299
|
-
}
|
|
46509
|
+
},
|
|
46510
|
+
providers: [ChartThemeService]
|
|
46300
46511
|
}]
|
|
46301
46512
|
}], propDecorators: { graphChartComponent: [{
|
|
46302
46513
|
type: i0.ViewChild,
|
|
@@ -46499,14 +46710,21 @@
|
|
|
46499
46710
|
_this._timelineService = _this.injector.get(DynamicTimelineReportService);
|
|
46500
46711
|
_this._criteria$ = _this.criteria$.pipe(operators.distinctUntilChanged(function (a, b) { return ___default["default"].isEqual(a, b); }));
|
|
46501
46712
|
_this.selectedGroup$ = _this._timelineService.selectedGroup$;
|
|
46502
|
-
_this.filterCriteria$ = rxjs.combineLatest([_this._criteria$, _this._timelineService.selectedGroup$]).pipe(operators.map(function (
|
|
46503
|
-
var
|
|
46713
|
+
_this.filterCriteria$ = rxjs.combineLatest([_this._criteria$, _this._timelineService.selectedGroup$]).pipe(operators.map(function (_b) {
|
|
46714
|
+
var _c = __read(_b, 1), criteria = _c[0];
|
|
46504
46715
|
return ___default["default"].cloneDeep(___default["default"].merge(criteria || {}, _this._timelineService.prepareSelectedGroups(_this.config)));
|
|
46505
46716
|
}));
|
|
46506
46717
|
_this.report$ = rxjs.combineLatest([_this.config$, _this._criteria$, _this._timelineService.rebuild$]).pipe(_this._timelineService.prepareData());
|
|
46507
46718
|
_this._subscribeToLanguage();
|
|
46508
46719
|
return _this;
|
|
46509
46720
|
}
|
|
46721
|
+
DynamicTimelineReportComponent.prototype.ngAfterViewInit = function () {
|
|
46722
|
+
this._setupThemeWatcher();
|
|
46723
|
+
};
|
|
46724
|
+
DynamicTimelineReportComponent.prototype.ngOnDestroy = function () {
|
|
46725
|
+
_super.prototype.ngOnDestroy.call(this);
|
|
46726
|
+
this._chartThemeService.destroy();
|
|
46727
|
+
};
|
|
46510
46728
|
DynamicTimelineReportComponent.prototype._subscribeToLanguage = function () {
|
|
46511
46729
|
var _this = this;
|
|
46512
46730
|
this._translateService.onLangChange
|
|
@@ -46529,10 +46747,25 @@
|
|
|
46529
46747
|
DynamicTimelineReportComponent.prototype.openDetails = function () {
|
|
46530
46748
|
this.onOpen.emit(this._timelineService.payload);
|
|
46531
46749
|
};
|
|
46750
|
+
DynamicTimelineReportComponent.prototype._setupThemeWatcher = function () {
|
|
46751
|
+
var _this = this;
|
|
46752
|
+
this._chartThemeService.theme$
|
|
46753
|
+
.pipe(operators.filter(function (value) { return value !== _this._initialTheme && !!_this._definition; }), operators.takeUntil(this.destroy$))
|
|
46754
|
+
.subscribe(function (theme) {
|
|
46755
|
+
_this._initialTheme = theme;
|
|
46756
|
+
var _a = _this._configSub.getValue(), chart = _a.chart, config = __rest(_a, ["chart"]);
|
|
46757
|
+
var data = ___default["default"].merge({}, _this._definition, {
|
|
46758
|
+
chart: {
|
|
46759
|
+
type: chart.type
|
|
46760
|
+
}
|
|
46761
|
+
});
|
|
46762
|
+
_this._configSub.next(_this._prepareConfig(data));
|
|
46763
|
+
});
|
|
46764
|
+
};
|
|
46532
46765
|
return DynamicTimelineReportComponent;
|
|
46533
46766
|
}(BaseGraphReport));
|
|
46534
46767
|
DynamicTimelineReportComponent.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0__namespace, type: DynamicTimelineReportComponent, deps: [{ token: i0__namespace.Injector }], target: i0__namespace.ɵɵFactoryTarget.Component });
|
|
46535
|
-
DynamicTimelineReportComponent.ɵcmp = i0__namespace.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "12.2.17", type: DynamicTimelineReportComponent, selector: "app-dynamic-timeline-report", host: { classAttribute: "timeline-report flex flex-col flex-grow" }, providers: [DynamicTimelineReportService], viewQueries: [{ propertyName: "graphChartComponent", first: true, predicate: ["graphChart"], descendants: true }], usesInheritance: true, ngImport: i0__namespace, template: "<chart-panel *ngIf=\"report$ | async as report; else noData\" class=\"ndf-report\">\r\n\t<chart-panel-header class=\"ndf-report__header mb-3\">\r\n\t\t<span>\r\n\t\t\t{{ config.label | translate }}\r\n\t\t</span>\r\n\r\n\t\t<button\r\n\t\t\t*ngIf=\"config?.dialog?.active\"\r\n\t\t\tclass=\"dialog-button print:hidden\"\r\n\t\t\t(click)=\"openTimelineDialog()\"\r\n\t\t\t[matTooltip]=\"'REPORTS.fullscreen' | translate\"\r\n\t\t>\r\n\t\t\t<mat-icon>fullscreen</mat-icon>\r\n\t\t</button>\r\n\t</chart-panel-header>\r\n\r\n\t<app-graph-chart\r\n\t\t#graphChart\r\n\t\tclass=\"ndf-report__content ndf-report__content timeline-chart\"\r\n\t\t[config]=\"report.config\"\r\n\t\t[criteria]=\"filterCriteria$ | async\"\r\n\t\t[data]=\"report.data\"\r\n\t></app-graph-chart>\r\n\r\n\t<chart-panel-footer class=\"ndf-report__footer \">\r\n\t\t<div class=\"chart-actions flex items-center rounded-lg gap-2 flex-wrap p-1\">\r\n\t\t\t<button\r\n\t\t\t\tclass=\"print-button chart-actions__item\"\r\n\t\t\t\t(click)=\"printChart()\"\r\n\t\t\t\t[matTooltip]=\"'REPORTS.print' | translate\"\r\n\t\t\t\t*ngIf=\"config?.print\"\r\n\t\t\t>\r\n\t\t\t\t<mat-icon>print</mat-icon>\r\n\t\t\t</button>\r\n\t\t\t<button\r\n\t\t\t\tclass=\"navigate-button chart-actions__item\"\r\n\t\t\t\t(click)=\"navigate()\"\r\n\t\t\t\t*ngIf=\"config?.navigate?.enabled\"\r\n\t\t\t\t[matTooltip]=\"'REPORTS.enabled' | translate\"\r\n\t\t\t>\r\n\t\t\t\t<mat-icon>send</mat-icon>\r\n\t\t\t</button>\r\n\r\n\t\t\t<button\r\n\t\t\t\tclass=\"navigate-button chart-actions__item\"\r\n\t\t\t\t(click)=\"openDetails()\"\r\n\t\t\t\t*ngIf=\"config?.details?.enabled\"\r\n\t\t\t\t[matTooltip]=\"'REPORTS.details' | translate\"\r\n\t\t\t>\r\n\t\t\t\t<mat-icon>info</mat-icon>\r\n\t\t\t</button>\r\n\t\t</div>\r\n\t\t<time-group-selector\r\n\t\t\t*ngIf=\"config?.group?.active ?? true\"\r\n\t\t\t[group]=\"selectedGroup$ | async\"\r\n\t\t\t(groupChange)=\"changeGroup($event)\"\r\n\t\t></time-group-selector>\r\n\t</chart-panel-footer>\r\n</chart-panel>\r\n\r\n<ng-template #noData>\r\n\t<chart-panel class=\"ndf-report\">\r\n\t\t<chart-panel-header class=\"ndf-report__header mb-3\">\r\n\t\t\t{{ config.label | translate }}\r\n\t\t</chart-panel-header>\r\n\t\t<app-skeleton\r\n\t\t\tanimation=\"opacity\"\r\n\t\t\tclass=\"ndf-report__content ndf-report__content timeline-chart\"\r\n\t\t\theight=\"220px\"\r\n\t\t></app-skeleton>\r\n\t</chart-panel>\r\n</ng-template>\r\n", styles: [".ndf-report{display:flex;flex-direction:column;min-width:0;max-width:100%;flex-grow:1}.ndf-report__content{position:relative;padding-block:.5rem;flex-grow:1;min-width:0;max-width:100%}.chart-actions{border:var(--chart-actions-border, 1px solid var(--border-color))}.chart-actions__item{background:var(--chart-actions-background, transparent);color:var(--chart-actions-color, currentColor);box-shadow:var(--chart-actions-shadow, unset);width:var(--chart-actions-width, 35px);height:var(--chart-actions-height, 35px);border-radius:var(--chart-actions-border-radius, 4px);flex-grow:1;display:grid;place-items:center}.chart-actions__item .mat-icon{color:var(--main-color, currentColor)}.chart-actions__item:hover{--chart-actions-shadow: var(--chart-actions-hover-shadow, 0 0 0 1px var(--main-color))}.chart-actions__item.selected{--chart-actions-background: var(--chart-actions-active-background, var(--main-color));--chart-actions-color: var(--chart-actions-active-color, var(--main-hover))}.chart-actions__item.selected .mat-icon{color:currentColor!important}@media print{.chart-actions{display:none}}:host{min-width:0;max-width:100%}.timeline-chart{display:var(--ndf-report-display, flex);flex-direction:var(--ndf-report-direction, column);justify-content:var(--ndf-report-justify-content, center);align-items:var(--ndf-report-align-items, center)}\n"], components: [{ type: ChartPanel, selector: "chart-panel" }, { type: ChartPanelHeaderComponent, selector: "chart-panel-header" }, { type: i2__namespace$1.MatIcon, selector: "mat-icon", inputs: ["color", "inline", "svgIcon", "fontSet", "fontIcon"], exportAs: ["matIcon"] }, { type: GraphChartComponent, selector: "app-graph-chart" }, { type: ChartPanelFooterComponent, selector: "chart-panel-footer" }, { type: TimeGroupSelectorComponent, selector: "time-group-selector", inputs: ["direction", "group"], outputs: ["groupChange"] }, { type: SkeletonComponent, selector: "app-skeleton", inputs: ["styleClass", "style", "shape", "animation", "radius", "size", "width", "height", "randomWidth"] }], directives: [{ type: i4__namespace$1.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { type: i7__namespace.MatTooltip, selector: "[matTooltip]", inputs: ["matTooltipShowDelay", "matTooltipHideDelay", "matTooltipTouchGestures", "matTooltipPosition", "matTooltipDisabled", "matTooltip", "matTooltipClass"], exportAs: ["matTooltip"] }], pipes: { "async": i4__namespace$1.AsyncPipe, "translate": i1__namespace.TranslatePipe }, changeDetection: i0__namespace.ChangeDetectionStrategy.OnPush });
|
|
46768
|
+
DynamicTimelineReportComponent.ɵcmp = i0__namespace.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "12.2.17", type: DynamicTimelineReportComponent, selector: "app-dynamic-timeline-report", host: { classAttribute: "timeline-report flex flex-col flex-grow" }, providers: [DynamicTimelineReportService, ChartThemeService], viewQueries: [{ propertyName: "graphChartComponent", first: true, predicate: ["graphChart"], descendants: true }], usesInheritance: true, ngImport: i0__namespace, template: "<chart-panel *ngIf=\"report$ | async as report; else noData\" class=\"ndf-report\">\r\n\t<chart-panel-header class=\"ndf-report__header mb-3\">\r\n\t\t<span>\r\n\t\t\t{{ config.label | translate }}\r\n\t\t</span>\r\n\r\n\t\t<button\r\n\t\t\t*ngIf=\"config?.dialog?.active\"\r\n\t\t\tclass=\"dialog-button print:hidden\"\r\n\t\t\t(click)=\"openTimelineDialog()\"\r\n\t\t\t[matTooltip]=\"'REPORTS.fullscreen' | translate\"\r\n\t\t>\r\n\t\t\t<mat-icon>fullscreen</mat-icon>\r\n\t\t</button>\r\n\t</chart-panel-header>\r\n\r\n\t<app-graph-chart\r\n\t\t#graphChart\r\n\t\tclass=\"ndf-report__content ndf-report__content timeline-chart\"\r\n\t\t[config]=\"report.config\"\r\n\t\t[criteria]=\"filterCriteria$ | async\"\r\n\t\t[data]=\"report.data\"\r\n\t></app-graph-chart>\r\n\r\n\t<chart-panel-footer class=\"ndf-report__footer \">\r\n\t\t<div class=\"chart-actions flex items-center rounded-lg gap-2 flex-wrap p-1\">\r\n\t\t\t<button\r\n\t\t\t\tclass=\"print-button chart-actions__item\"\r\n\t\t\t\t(click)=\"printChart()\"\r\n\t\t\t\t[matTooltip]=\"'REPORTS.print' | translate\"\r\n\t\t\t\t*ngIf=\"config?.print\"\r\n\t\t\t>\r\n\t\t\t\t<mat-icon>print</mat-icon>\r\n\t\t\t</button>\r\n\t\t\t<button\r\n\t\t\t\tclass=\"navigate-button chart-actions__item\"\r\n\t\t\t\t(click)=\"navigate()\"\r\n\t\t\t\t*ngIf=\"config?.navigate?.enabled\"\r\n\t\t\t\t[matTooltip]=\"'REPORTS.enabled' | translate\"\r\n\t\t\t>\r\n\t\t\t\t<mat-icon>send</mat-icon>\r\n\t\t\t</button>\r\n\r\n\t\t\t<button\r\n\t\t\t\tclass=\"navigate-button chart-actions__item\"\r\n\t\t\t\t(click)=\"openDetails()\"\r\n\t\t\t\t*ngIf=\"config?.details?.enabled\"\r\n\t\t\t\t[matTooltip]=\"'REPORTS.details' | translate\"\r\n\t\t\t>\r\n\t\t\t\t<mat-icon>info</mat-icon>\r\n\t\t\t</button>\r\n\t\t</div>\r\n\t\t<time-group-selector\r\n\t\t\t*ngIf=\"config?.group?.active ?? true\"\r\n\t\t\t[group]=\"selectedGroup$ | async\"\r\n\t\t\t(groupChange)=\"changeGroup($event)\"\r\n\t\t></time-group-selector>\r\n\t</chart-panel-footer>\r\n</chart-panel>\r\n\r\n<ng-template #noData>\r\n\t<chart-panel class=\"ndf-report\">\r\n\t\t<chart-panel-header class=\"ndf-report__header mb-3\">\r\n\t\t\t{{ config.label | translate }}\r\n\t\t</chart-panel-header>\r\n\t\t<app-skeleton\r\n\t\t\tanimation=\"opacity\"\r\n\t\t\tclass=\"ndf-report__content ndf-report__content timeline-chart\"\r\n\t\t\theight=\"220px\"\r\n\t\t></app-skeleton>\r\n\t</chart-panel>\r\n</ng-template>\r\n", styles: [".ndf-report{display:flex;flex-direction:column;min-width:0;max-width:100%;flex-grow:1}.ndf-report__content{position:relative;padding-block:.5rem;flex-grow:1;min-width:0;max-width:100%}.chart-actions{border:var(--chart-actions-border, 1px solid var(--border-color))}.chart-actions__item{background:var(--chart-actions-background, transparent);color:var(--chart-actions-color, currentColor);box-shadow:var(--chart-actions-shadow, unset);width:var(--chart-actions-width, 35px);height:var(--chart-actions-height, 35px);border-radius:var(--chart-actions-border-radius, 4px);flex-grow:1;display:grid;place-items:center}.chart-actions__item .mat-icon{color:var(--main-color, currentColor)}.chart-actions__item:hover{--chart-actions-shadow: var(--chart-actions-hover-shadow, 0 0 0 1px var(--main-color))}.chart-actions__item.selected{--chart-actions-background: var(--chart-actions-active-background, var(--main-color));--chart-actions-color: var(--chart-actions-active-color, var(--main-hover))}.chart-actions__item.selected .mat-icon{color:currentColor!important}@media print{.chart-actions{display:none}}:host{min-width:0;max-width:100%}.timeline-chart{display:var(--ndf-report-display, flex);flex-direction:var(--ndf-report-direction, column);justify-content:var(--ndf-report-justify-content, center);align-items:var(--ndf-report-align-items, center)}\n"], components: [{ type: ChartPanel, selector: "chart-panel" }, { type: ChartPanelHeaderComponent, selector: "chart-panel-header" }, { type: i2__namespace$1.MatIcon, selector: "mat-icon", inputs: ["color", "inline", "svgIcon", "fontSet", "fontIcon"], exportAs: ["matIcon"] }, { type: GraphChartComponent, selector: "app-graph-chart" }, { type: ChartPanelFooterComponent, selector: "chart-panel-footer" }, { type: TimeGroupSelectorComponent, selector: "time-group-selector", inputs: ["direction", "group"], outputs: ["groupChange"] }, { type: SkeletonComponent, selector: "app-skeleton", inputs: ["styleClass", "style", "shape", "animation", "radius", "size", "width", "height", "randomWidth"] }], directives: [{ type: i4__namespace$1.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { type: i7__namespace.MatTooltip, selector: "[matTooltip]", inputs: ["matTooltipShowDelay", "matTooltipHideDelay", "matTooltipTouchGestures", "matTooltipPosition", "matTooltipDisabled", "matTooltip", "matTooltipClass"], exportAs: ["matTooltip"] }], pipes: { "async": i4__namespace$1.AsyncPipe, "translate": i1__namespace.TranslatePipe }, changeDetection: i0__namespace.ChangeDetectionStrategy.OnPush });
|
|
46536
46769
|
i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0__namespace, type: DynamicTimelineReportComponent, decorators: [{
|
|
46537
46770
|
type: i0.Component,
|
|
46538
46771
|
args: [{
|
|
@@ -46543,7 +46776,7 @@
|
|
|
46543
46776
|
host: {
|
|
46544
46777
|
class: 'timeline-report flex flex-col flex-grow'
|
|
46545
46778
|
},
|
|
46546
|
-
providers: [DynamicTimelineReportService]
|
|
46779
|
+
providers: [DynamicTimelineReportService, ChartThemeService]
|
|
46547
46780
|
}]
|
|
46548
46781
|
}], ctorParameters: function () { return [{ type: i0__namespace.Injector }]; }, propDecorators: { graphChartComponent: [{
|
|
46549
46782
|
type: i0.ViewChild,
|
|
@@ -46589,50 +46822,6 @@
|
|
|
46589
46822
|
args: ['customChart']
|
|
46590
46823
|
}] } });
|
|
46591
46824
|
|
|
46592
|
-
function mapToNdfTableConfig(report, details) {
|
|
46593
|
-
var _a, _b, _c, _d;
|
|
46594
|
-
var _request = report.request;
|
|
46595
|
-
var _detailsConfig = details.source;
|
|
46596
|
-
var customUrl = ___default["default"].merge({
|
|
46597
|
-
url: "/api/v1" + (_request === null || _request === void 0 ? void 0 : _request.customUrl.url),
|
|
46598
|
-
method: _request === null || _request === void 0 ? void 0 : _request.customUrl.method
|
|
46599
|
-
}, ((_a = _detailsConfig === null || _detailsConfig === void 0 ? void 0 : _detailsConfig.request) === null || _a === void 0 ? void 0 : _a.customUrl) || {});
|
|
46600
|
-
var _headers = ((_b = _detailsConfig.request) === null || _b === void 0 ? void 0 : _b.headers) || _request.headers || {};
|
|
46601
|
-
var _queryParam = ((_c = _detailsConfig.request) === null || _c === void 0 ? void 0 : _c.params) || _request.params || {};
|
|
46602
|
-
var _sortingBy = ___default["default"].merge({
|
|
46603
|
-
sortBy: 'dc:modified',
|
|
46604
|
-
sortOrder: 'desc'
|
|
46605
|
-
}, _detailsConfig.sortingBy || {});
|
|
46606
|
-
var data = {
|
|
46607
|
-
options: {
|
|
46608
|
-
columns: _detailsConfig.columnsOptions,
|
|
46609
|
-
filters: {
|
|
46610
|
-
mode: 'payload',
|
|
46611
|
-
fields: [],
|
|
46612
|
-
panel: {
|
|
46613
|
-
visible: false,
|
|
46614
|
-
toggleButton: false
|
|
46615
|
-
}
|
|
46616
|
-
},
|
|
46617
|
-
export: _detailsConfig === null || _detailsConfig === void 0 ? void 0 : _detailsConfig.export
|
|
46618
|
-
},
|
|
46619
|
-
pageNumber: 1,
|
|
46620
|
-
pageSize: 10,
|
|
46621
|
-
fullWidth: 'auto',
|
|
46622
|
-
prefix: _detailsConfig.prefix || '',
|
|
46623
|
-
fields: (_detailsConfig === null || _detailsConfig === void 0 ? void 0 : _detailsConfig.fields) || {},
|
|
46624
|
-
pageProvider: _request.pageProvider || _detailsConfig.request.pageProvider,
|
|
46625
|
-
columns: _detailsConfig.columns || [],
|
|
46626
|
-
customUrl: customUrl,
|
|
46627
|
-
headers: _headers,
|
|
46628
|
-
queryParam: _queryParam,
|
|
46629
|
-
quickFilters: _detailsConfig.quickFilters,
|
|
46630
|
-
sortingBy: _sortingBy,
|
|
46631
|
-
requestActions: (_d = _detailsConfig === null || _detailsConfig === void 0 ? void 0 : _detailsConfig.request) === null || _d === void 0 ? void 0 : _d.actions
|
|
46632
|
-
};
|
|
46633
|
-
return data;
|
|
46634
|
-
}
|
|
46635
|
-
|
|
46636
46825
|
var NdfReportComponent = /** @class */ (function (_super) {
|
|
46637
46826
|
__extends(NdfReportComponent, _super);
|
|
46638
46827
|
function NdfReportComponent() {
|
|
@@ -46643,6 +46832,16 @@
|
|
|
46643
46832
|
_this.onOpen = new i0.EventEmitter();
|
|
46644
46833
|
return _this;
|
|
46645
46834
|
}
|
|
46835
|
+
Object.defineProperty(NdfReportComponent.prototype, "config", {
|
|
46836
|
+
get: function () {
|
|
46837
|
+
return this._config;
|
|
46838
|
+
},
|
|
46839
|
+
set: function (value) {
|
|
46840
|
+
this._config = value;
|
|
46841
|
+
},
|
|
46842
|
+
enumerable: false,
|
|
46843
|
+
configurable: true
|
|
46844
|
+
});
|
|
46646
46845
|
return NdfReportComponent;
|
|
46647
46846
|
}(DestroySubject));
|
|
46648
46847
|
NdfReportComponent.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0__namespace, type: NdfReportComponent, deps: null, target: i0__namespace.ɵɵFactoryTarget.Component });
|
|
@@ -48005,6 +48204,7 @@
|
|
|
48005
48204
|
exports.ChartPanelModule = ChartPanelModule;
|
|
48006
48205
|
exports.ChartPlugins = index;
|
|
48007
48206
|
exports.ChartPluginsRegistry = ChartPluginsRegistry;
|
|
48207
|
+
exports.ChartThemeService = ChartThemeService;
|
|
48008
48208
|
exports.ChartUtils = index$2;
|
|
48009
48209
|
exports.ChartsModule = ChartsModule;
|
|
48010
48210
|
exports.CheckConditionPipe = CheckConditionPipe;
|