nuxeo-development-framework 5.5.3 → 5.5.5

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.
Files changed (30) hide show
  1. package/bundles/nuxeo-development-framework.umd.js +259 -58
  2. package/bundles/nuxeo-development-framework.umd.js.map +1 -1
  3. package/esm2015/lib/components/dynamic-form/components/dynamic-form-select-users/dynamic-form-select-users.component.js +3 -2
  4. package/esm2015/lib/components/reports/charts/plugins/data-labels.js +3 -3
  5. package/esm2015/lib/components/reports/charts/utility/css.js +3 -3
  6. package/esm2015/lib/components/reports/ndf-reports/base/base-graph.report.js +6 -3
  7. package/esm2015/lib/components/reports/ndf-reports/base/base-report.js +2 -1
  8. package/esm2015/lib/components/reports/ndf-reports/components/dynamic-timeline-report/dynamic-timeline-report.component.js +26 -4
  9. package/esm2015/lib/components/reports/ndf-reports/components/graph-report/graph-report.component.js +28 -4
  10. package/esm2015/lib/components/reports/ndf-reports/containers/ndf-report/ndf-report.component.js +7 -1
  11. package/esm2015/lib/components/reports/ndf-reports/services/chart-theme.service.js +54 -0
  12. package/esm2015/lib/components/reports/ndf-reports/services/dynamic-timeline-report.service.js +1 -1
  13. package/esm2015/lib/components/reports/ndf-reports/services/index.js +2 -1
  14. package/esm2015/lib/components/reports/ndf-reports/services/report-config-mapper.service.js +21 -4
  15. package/esm2015/lib/components/reports/ndf-reports/utilities/dataset-colors.js +51 -0
  16. package/esm2015/lib/components/reports/ndf-reports/utilities/index.js +2 -1
  17. package/esm2015/lib/components/spell-checker-field/spell-checker-field.module.js +1 -1
  18. package/fesm2015/nuxeo-development-framework.js +227 -57
  19. package/fesm2015/nuxeo-development-framework.js.map +1 -1
  20. package/lib/components/reports/ndf-reports/base/base-graph.report.d.ts +5 -2
  21. package/lib/components/reports/ndf-reports/base/base-report.d.ts +2 -1
  22. package/lib/components/reports/ndf-reports/components/dynamic-timeline-report/dynamic-timeline-report.component.d.ts +5 -2
  23. package/lib/components/reports/ndf-reports/components/graph-report/graph-report.component.d.ts +5 -1
  24. package/lib/components/reports/ndf-reports/containers/ndf-report/ndf-report.component.d.ts +3 -1
  25. package/lib/components/reports/ndf-reports/services/chart-theme.service.d.ts +14 -0
  26. package/lib/components/reports/ndf-reports/services/index.d.ts +1 -0
  27. package/lib/components/reports/ndf-reports/services/report-config-mapper.service.d.ts +1 -0
  28. package/lib/components/reports/ndf-reports/utilities/dataset-colors.d.ts +1 -0
  29. package/lib/components/reports/ndf-reports/utilities/index.d.ts +1 -0
  30. package/package.json +1 -1
@@ -12337,8 +12337,9 @@
12337
12337
  };
12338
12338
  DynamicFormSelectUsersComponent.prototype.ngOnInit = function () {
12339
12339
  var _this = this;
12340
+ var _a;
12340
12341
  this.allUsers = this.deptTitle === 'all' ? true : false;
12341
- this.selection = this.multiple ? [] : undefined;
12342
+ this.selection = (_a = this.selection) !== null && _a !== void 0 ? _a : (this.multiple ? [] : undefined);
12342
12343
  if (this.allUsers) {
12343
12344
  this.loadUsers();
12344
12345
  }
@@ -43490,7 +43491,7 @@
43490
43491
  * @returns {string | number} - The value of the CSS variable or the provided default value.
43491
43492
  */
43492
43493
  function getCssVariable(key, defaultValue) {
43493
- var root = document.documentElement;
43494
+ var root = document.querySelector('[data-theme]') || document.documentElement;
43494
43495
  var computedStyle = getComputedStyle(root);
43495
43496
  return computedStyle.getPropertyValue(key).trim() || defaultValue;
43496
43497
  }
@@ -43547,7 +43548,7 @@
43547
43548
  '#3c3cf0',
43548
43549
  '#f17205' // Bright orange
43549
43550
  ]; }
43550
- var root = document.documentElement;
43551
+ var root = document.querySelector('[data-theme]') || document.documentElement;
43551
43552
  var computedStyle = getComputedStyle(root);
43552
43553
  var colors = [];
43553
43554
  for (var index = 0; index < length; index++) {
@@ -44210,7 +44211,7 @@
44210
44211
  var fitsInside = textMetrics.width + textPadding * 2 <= dataPoint.width;
44211
44212
  if (fitsInside) {
44212
44213
  return {
44213
- x: dataPoint.x + (isReversed ? textMetrics.width / 2 : -textMetrics.width / 2),
44214
+ x: dataPoint.x + (isReversed ? textMetrics.width / 2 + textPadding : -(textMetrics.width / 2 + textPadding)),
44214
44215
  y: dataPoint.y,
44215
44216
  color: getTextColor(backgroundColor)
44216
44217
  };
@@ -44228,7 +44229,7 @@
44228
44229
  if (fitsInside) {
44229
44230
  return {
44230
44231
  x: dataPoint.x,
44231
- y: dataPoint.y,
44232
+ y: dataPoint.y + textPadding / 2 + textMetrics.height / 2,
44232
44233
  color: getTextColor(backgroundColor)
44233
44234
  };
44234
44235
  }
@@ -45356,6 +45357,122 @@
45356
45357
  };
45357
45358
  }
45358
45359
 
45360
+ function mapToNdfTableConfig(report, details) {
45361
+ var _a, _b, _c, _d;
45362
+ var _request = report.request;
45363
+ var _detailsConfig = details.source;
45364
+ var customUrl = ___default["default"].merge({
45365
+ url: "/api/v1" + (_request === null || _request === void 0 ? void 0 : _request.customUrl.url),
45366
+ method: _request === null || _request === void 0 ? void 0 : _request.customUrl.method
45367
+ }, ((_a = _detailsConfig === null || _detailsConfig === void 0 ? void 0 : _detailsConfig.request) === null || _a === void 0 ? void 0 : _a.customUrl) || {});
45368
+ var _headers = ((_b = _detailsConfig.request) === null || _b === void 0 ? void 0 : _b.headers) || _request.headers || {};
45369
+ var _queryParam = ((_c = _detailsConfig.request) === null || _c === void 0 ? void 0 : _c.params) || _request.params || {};
45370
+ var _sortingBy = ___default["default"].merge({
45371
+ sortBy: 'dc:modified',
45372
+ sortOrder: 'desc'
45373
+ }, _detailsConfig.sortingBy || {});
45374
+ var data = {
45375
+ options: {
45376
+ columns: _detailsConfig.columnsOptions,
45377
+ filters: {
45378
+ mode: 'payload',
45379
+ fields: [],
45380
+ panel: {
45381
+ visible: false,
45382
+ toggleButton: false
45383
+ }
45384
+ },
45385
+ export: _detailsConfig === null || _detailsConfig === void 0 ? void 0 : _detailsConfig.export
45386
+ },
45387
+ pageNumber: 1,
45388
+ pageSize: 10,
45389
+ fullWidth: 'auto',
45390
+ prefix: _detailsConfig.prefix || '',
45391
+ fields: (_detailsConfig === null || _detailsConfig === void 0 ? void 0 : _detailsConfig.fields) || {},
45392
+ pageProvider: _request.pageProvider || _detailsConfig.request.pageProvider,
45393
+ columns: _detailsConfig.columns || [],
45394
+ customUrl: customUrl,
45395
+ headers: _headers,
45396
+ queryParam: _queryParam,
45397
+ quickFilters: _detailsConfig.quickFilters,
45398
+ sortingBy: _sortingBy,
45399
+ requestActions: (_d = _detailsConfig === null || _detailsConfig === void 0 ? void 0 : _detailsConfig.request) === null || _d === void 0 ? void 0 : _d.actions
45400
+ };
45401
+ return data;
45402
+ }
45403
+
45404
+ function replaceDatasetColors(datasets) {
45405
+ if (!Array.isArray(datasets)) {
45406
+ return datasets;
45407
+ }
45408
+ return datasets.map(function (dataset) {
45409
+ var e_1, _a;
45410
+ var newDataset = Object.assign({}, dataset);
45411
+ try {
45412
+ // Process each property that might contain colors
45413
+ for (var _b = __values(Object.entries(dataset)), _c = _b.next(); !_c.done; _c = _b.next()) {
45414
+ var _d = __read(_c.value, 2), key = _d[0], value = _d[1];
45415
+ if (isColorProperty(key)) {
45416
+ newDataset[key] = replaceColors(value);
45417
+ }
45418
+ }
45419
+ }
45420
+ catch (e_1_1) { e_1 = { error: e_1_1 }; }
45421
+ finally {
45422
+ try {
45423
+ if (_c && !_c.done && (_a = _b.return)) _a.call(_b);
45424
+ }
45425
+ finally { if (e_1) throw e_1.error; }
45426
+ }
45427
+ return newDataset;
45428
+ });
45429
+ }
45430
+ // Helper function to identify color-related properties
45431
+ function isColorProperty(propertyName) {
45432
+ var colorProperties = [
45433
+ 'backgroundColor',
45434
+ 'borderColor',
45435
+ 'pointBackgroundColor',
45436
+ 'pointBorderColor',
45437
+ 'pointHoverBackgroundColor',
45438
+ 'pointHoverBorderColor',
45439
+ 'hoverBackgroundColor',
45440
+ 'hoverBorderColor',
45441
+ 'color'
45442
+ ];
45443
+ return colorProperties.includes(propertyName) || propertyName.toLowerCase().includes('color');
45444
+ }
45445
+ // Keep the original replaceColors for processing individual values
45446
+ function replaceColors(data) {
45447
+ var e_2, _a;
45448
+ if (typeof data === 'string' && (data.startsWith('var') || data.startsWith('--'))) {
45449
+ var match = data.match(/var\((--[^)]+)\)/);
45450
+ var value = match ? match[1] : data;
45451
+ return getColor(value);
45452
+ }
45453
+ if (data === null || typeof data !== 'object') {
45454
+ return data;
45455
+ }
45456
+ if (Array.isArray(data)) {
45457
+ return data.map(function (item) { return replaceColors(item); });
45458
+ }
45459
+ var newObject = {};
45460
+ try {
45461
+ for (var _b = __values(Object.entries(data)), _c = _b.next(); !_c.done; _c = _b.next()) {
45462
+ var _d = __read(_c.value, 2), key = _d[0], value = _d[1];
45463
+ newObject[key] = replaceColors(value);
45464
+ }
45465
+ }
45466
+ catch (e_2_1) { e_2 = { error: e_2_1 }; }
45467
+ finally {
45468
+ try {
45469
+ if (_c && !_c.done && (_a = _b.return)) _a.call(_b);
45470
+ }
45471
+ finally { if (e_2) throw e_2.error; }
45472
+ }
45473
+ return newObject;
45474
+ }
45475
+
45359
45476
  var ReportConfigMapperService = /** @class */ (function () {
45360
45477
  function ReportConfigMapperService(_chartPluginsRegistry) {
45361
45478
  this._chartPluginsRegistry = _chartPluginsRegistry;
@@ -45371,7 +45488,7 @@
45371
45488
  if (Array.isArray(plugins) && plugins.length > 0) {
45372
45489
  chart.plugins = this._preparePlugins(plugins);
45373
45490
  }
45374
- chart.colors = __spreadArray(__spreadArray([], __read((colors || []))), __read(getColors()));
45491
+ chart.colors = this._prepareColors(colors);
45375
45492
  return Object.assign(Object.assign({}, config), { chart: chart });
45376
45493
  };
45377
45494
  /**
@@ -45382,11 +45499,13 @@
45382
45499
  ReportConfigMapperService.prototype.prepareGraphLineConfig = function (config) {
45383
45500
  var _a = config.chart, plugins = _a.plugins, options = _a.options, rest = __rest(_a, ["plugins", "options"]);
45384
45501
  var chart = Object.assign(Object.assign({}, rest), { options: getLineOptions(options) });
45502
+ if (chart.datasets && !!chart.datasets.length) {
45503
+ chart.datasets = replaceDatasetColors(chart.datasets);
45504
+ }
45385
45505
  if (Array.isArray(plugins) && plugins.length > 0) {
45386
45506
  chart.plugins = this._preparePlugins(plugins);
45387
45507
  }
45388
- var _colors = __spreadArray(__spreadArray([], __read(((config === null || config === void 0 ? void 0 : config.colors) || []))), __read(getColors()));
45389
- return Object.assign(Object.assign({}, config), { colors: _colors, chart: chart });
45508
+ return Object.assign(Object.assign({}, config), { colors: this._prepareColors(config === null || config === void 0 ? void 0 : config.colors), chart: chart });
45390
45509
  };
45391
45510
  /**
45392
45511
  * Prepares a custom chart configuration
@@ -45411,6 +45530,9 @@
45411
45530
  ReportConfigMapperService.prototype._preparePlugins = function (plugins) {
45412
45531
  var _this = this;
45413
45532
  return plugins.reduce(function (acc, plgName) {
45533
+ if (!plgName || typeof plgName !== 'string') {
45534
+ return acc;
45535
+ }
45414
45536
  var plugin = _this._chartPluginsRegistry.get(plgName);
45415
45537
  if (plugin) {
45416
45538
  return __spreadArray(__spreadArray([], __read(acc)), [plugin]);
@@ -45431,6 +45553,17 @@
45431
45553
  var key = type === 'bar' ? direction + "Bar" : type;
45432
45554
  return ((_a = _optionsMap[key]) === null || _a === void 0 ? void 0 : _a.call(_optionsMap, options)) || {};
45433
45555
  };
45556
+ ReportConfigMapperService.prototype._prepareColors = function (colors) {
45557
+ var _colors = (colors || []).map(function (color) {
45558
+ var str = "" + color;
45559
+ if (str.startsWith('var(')) {
45560
+ var match = str.match(/^var\((--[^)]+)\)/);
45561
+ return match ? getColor(match[1]) : str;
45562
+ }
45563
+ return str.startsWith('--') ? getColor(str) : str;
45564
+ });
45565
+ return __spreadArray(__spreadArray([], __read(_colors)), __read(getColors()));
45566
+ };
45434
45567
  return ReportConfigMapperService;
45435
45568
  }());
45436
45569
  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 +45747,59 @@
45614
45747
  args: [{ providedIn: 'root' }]
45615
45748
  }], ctorParameters: function () { return [{ type: i0__namespace.Injector }]; } });
45616
45749
 
45750
+ var ChartThemeService = /** @class */ (function () {
45751
+ function ChartThemeService() {
45752
+ this.currentTheme = new rxjs.BehaviorSubject('light');
45753
+ this.theme$ = this.currentTheme.asObservable();
45754
+ this._initializeThemeDetection();
45755
+ }
45756
+ ChartThemeService.prototype.getCurrentTheme = function () {
45757
+ return this._getThemeFromBody();
45758
+ };
45759
+ ChartThemeService.prototype.destroy = function () {
45760
+ if (this.observer) {
45761
+ this.observer.disconnect();
45762
+ }
45763
+ };
45764
+ ChartThemeService.prototype._initializeThemeDetection = function () {
45765
+ var initialTheme = this._getThemeFromBody();
45766
+ if (initialTheme !== this.currentTheme.value) {
45767
+ this.currentTheme.next(initialTheme);
45768
+ }
45769
+ this._setupThemeWatcher();
45770
+ };
45771
+ ChartThemeService.prototype._getThemeFromBody = function () {
45772
+ var bodyTheme = document.body.getAttribute('data-theme');
45773
+ return bodyTheme === 'dark' || bodyTheme === 'light' ? bodyTheme : 'light';
45774
+ };
45775
+ ChartThemeService.prototype._setupThemeWatcher = function () {
45776
+ var _this = this;
45777
+ this.observer = new MutationObserver(function (mutations) {
45778
+ mutations.forEach(function (mutation) {
45779
+ if (mutation.type === 'attributes' && mutation.attributeName === 'data-theme') {
45780
+ var newTheme = _this._getThemeFromBody();
45781
+ if (newTheme !== _this.currentTheme.value) {
45782
+ _this.currentTheme.next(newTheme);
45783
+ }
45784
+ }
45785
+ });
45786
+ });
45787
+ this.observer.observe(document.body, {
45788
+ attributes: true,
45789
+ attributeFilter: ['data-theme']
45790
+ });
45791
+ };
45792
+ return ChartThemeService;
45793
+ }());
45794
+ ChartThemeService.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0__namespace, type: ChartThemeService, deps: [], target: i0__namespace.ɵɵFactoryTarget.Injectable });
45795
+ ChartThemeService.ɵprov = i0__namespace.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0__namespace, type: ChartThemeService, providedIn: 'root' });
45796
+ i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0__namespace, type: ChartThemeService, decorators: [{
45797
+ type: i0.Injectable,
45798
+ args: [{
45799
+ providedIn: 'root'
45800
+ }]
45801
+ }], ctorParameters: function () { return []; } });
45802
+
45617
45803
  var DigitChartComponent = /** @class */ (function (_super) {
45618
45804
  __extends(DigitChartComponent, _super);
45619
45805
  function DigitChartComponent() {
@@ -45768,6 +45954,7 @@
45768
45954
  }
45769
45955
  Object.defineProperty(BaseReport.prototype, "definition", {
45770
45956
  set: function (obj) {
45957
+ this._definition = ___default["default"].cloneDeep(obj);
45771
45958
  if (obj) {
45772
45959
  this._configSub.next(this._prepareConfig(obj));
45773
45960
  }
@@ -45862,6 +46049,8 @@
45862
46049
  function BaseGraphReport() {
45863
46050
  var _this = _super.apply(this, __spreadArray([], __read(arguments))) || this;
45864
46051
  _this._dialog = _this.injector.get(ReportsDialogService);
46052
+ _this._chartThemeService = _this.injector.get(ChartThemeService);
46053
+ _this._initialTheme = _this._chartThemeService.getCurrentTheme();
45865
46054
  return _this;
45866
46055
  }
45867
46056
  BaseGraphReport.prototype.openGraphDialog = function (component) {
@@ -46264,6 +46453,13 @@
46264
46453
  }));
46265
46454
  return _this;
46266
46455
  }
46456
+ GraphReportComponent.prototype.ngAfterViewInit = function () {
46457
+ this._setupThemeWatcher();
46458
+ };
46459
+ GraphReportComponent.prototype.ngOnDestroy = function () {
46460
+ _super.prototype.ngOnDestroy.call(this);
46461
+ this._chartThemeService.destroy();
46462
+ };
46267
46463
  GraphReportComponent.prototype.changeChartType = function (type) {
46268
46464
  var _d;
46269
46465
  var _a, _b;
@@ -46284,10 +46480,25 @@
46284
46480
  this.graphChartComponent.printChart();
46285
46481
  }
46286
46482
  };
46483
+ GraphReportComponent.prototype._setupThemeWatcher = function () {
46484
+ var _this = this;
46485
+ this._chartThemeService.theme$
46486
+ .pipe(operators.filter(function (value) { return value !== _this._initialTheme && !!_this._definition; }), operators.takeUntil(this.destroy$))
46487
+ .subscribe(function (theme) {
46488
+ _this._initialTheme = theme;
46489
+ var _a = _this._configSub.getValue(), chart = _a.chart, config = __rest(_a, ["chart"]);
46490
+ var data = ___default["default"].merge({}, _this._definition, {
46491
+ chart: {
46492
+ type: chart.type
46493
+ }
46494
+ });
46495
+ _this._configSub.next(_this._prepareConfig(data));
46496
+ });
46497
+ };
46287
46498
  return GraphReportComponent;
46288
46499
  }(BaseGraphReport));
46289
46500
  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 } });
46501
+ 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
46502
  i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0__namespace, type: GraphReportComponent, decorators: [{
46292
46503
  type: i0.Component,
46293
46504
  args: [{
@@ -46296,7 +46507,8 @@
46296
46507
  styleUrls: ['./graph-report.component.scss'],
46297
46508
  host: {
46298
46509
  class: 'graph-report flex flex-col flex-grow'
46299
- }
46510
+ },
46511
+ providers: [ChartThemeService]
46300
46512
  }]
46301
46513
  }], propDecorators: { graphChartComponent: [{
46302
46514
  type: i0.ViewChild,
@@ -46499,14 +46711,21 @@
46499
46711
  _this._timelineService = _this.injector.get(DynamicTimelineReportService);
46500
46712
  _this._criteria$ = _this.criteria$.pipe(operators.distinctUntilChanged(function (a, b) { return ___default["default"].isEqual(a, b); }));
46501
46713
  _this.selectedGroup$ = _this._timelineService.selectedGroup$;
46502
- _this.filterCriteria$ = rxjs.combineLatest([_this._criteria$, _this._timelineService.selectedGroup$]).pipe(operators.map(function (_a) {
46503
- var _b = __read(_a, 1), criteria = _b[0];
46714
+ _this.filterCriteria$ = rxjs.combineLatest([_this._criteria$, _this._timelineService.selectedGroup$]).pipe(operators.map(function (_b) {
46715
+ var _c = __read(_b, 1), criteria = _c[0];
46504
46716
  return ___default["default"].cloneDeep(___default["default"].merge(criteria || {}, _this._timelineService.prepareSelectedGroups(_this.config)));
46505
46717
  }));
46506
46718
  _this.report$ = rxjs.combineLatest([_this.config$, _this._criteria$, _this._timelineService.rebuild$]).pipe(_this._timelineService.prepareData());
46507
46719
  _this._subscribeToLanguage();
46508
46720
  return _this;
46509
46721
  }
46722
+ DynamicTimelineReportComponent.prototype.ngAfterViewInit = function () {
46723
+ this._setupThemeWatcher();
46724
+ };
46725
+ DynamicTimelineReportComponent.prototype.ngOnDestroy = function () {
46726
+ _super.prototype.ngOnDestroy.call(this);
46727
+ this._chartThemeService.destroy();
46728
+ };
46510
46729
  DynamicTimelineReportComponent.prototype._subscribeToLanguage = function () {
46511
46730
  var _this = this;
46512
46731
  this._translateService.onLangChange
@@ -46529,10 +46748,25 @@
46529
46748
  DynamicTimelineReportComponent.prototype.openDetails = function () {
46530
46749
  this.onOpen.emit(this._timelineService.payload);
46531
46750
  };
46751
+ DynamicTimelineReportComponent.prototype._setupThemeWatcher = function () {
46752
+ var _this = this;
46753
+ this._chartThemeService.theme$
46754
+ .pipe(operators.filter(function (value) { return value !== _this._initialTheme && !!_this._definition; }), operators.takeUntil(this.destroy$))
46755
+ .subscribe(function (theme) {
46756
+ _this._initialTheme = theme;
46757
+ var _a = _this._configSub.getValue(), chart = _a.chart, config = __rest(_a, ["chart"]);
46758
+ var data = ___default["default"].merge({}, _this._definition, {
46759
+ chart: {
46760
+ type: chart.type
46761
+ }
46762
+ });
46763
+ _this._configSub.next(_this._prepareConfig(data));
46764
+ });
46765
+ };
46532
46766
  return DynamicTimelineReportComponent;
46533
46767
  }(BaseGraphReport));
46534
46768
  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 });
46769
+ 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
46770
  i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0__namespace, type: DynamicTimelineReportComponent, decorators: [{
46537
46771
  type: i0.Component,
46538
46772
  args: [{
@@ -46543,7 +46777,7 @@
46543
46777
  host: {
46544
46778
  class: 'timeline-report flex flex-col flex-grow'
46545
46779
  },
46546
- providers: [DynamicTimelineReportService]
46780
+ providers: [DynamicTimelineReportService, ChartThemeService]
46547
46781
  }]
46548
46782
  }], ctorParameters: function () { return [{ type: i0__namespace.Injector }]; }, propDecorators: { graphChartComponent: [{
46549
46783
  type: i0.ViewChild,
@@ -46589,50 +46823,6 @@
46589
46823
  args: ['customChart']
46590
46824
  }] } });
46591
46825
 
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
46826
  var NdfReportComponent = /** @class */ (function (_super) {
46637
46827
  __extends(NdfReportComponent, _super);
46638
46828
  function NdfReportComponent() {
@@ -46643,6 +46833,16 @@
46643
46833
  _this.onOpen = new i0.EventEmitter();
46644
46834
  return _this;
46645
46835
  }
46836
+ Object.defineProperty(NdfReportComponent.prototype, "config", {
46837
+ get: function () {
46838
+ return this._config;
46839
+ },
46840
+ set: function (value) {
46841
+ this._config = value;
46842
+ },
46843
+ enumerable: false,
46844
+ configurable: true
46845
+ });
46646
46846
  return NdfReportComponent;
46647
46847
  }(DestroySubject));
46648
46848
  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 +48205,7 @@
48005
48205
  exports.ChartPanelModule = ChartPanelModule;
48006
48206
  exports.ChartPlugins = index;
48007
48207
  exports.ChartPluginsRegistry = ChartPluginsRegistry;
48208
+ exports.ChartThemeService = ChartThemeService;
48008
48209
  exports.ChartUtils = index$2;
48009
48210
  exports.ChartsModule = ChartsModule;
48010
48211
  exports.CheckConditionPipe = CheckConditionPipe;