nuxeo-development-framework 5.4.6 → 5.4.7

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (52) hide show
  1. package/bundles/nuxeo-development-framework.umd.js +633 -346
  2. package/bundles/nuxeo-development-framework.umd.js.map +1 -1
  3. package/esm2015/lib/components/ndf-config-editor/services/dummy-data.js +2 -2
  4. package/esm2015/lib/components/ndf-filters/containers/filters-panel/filters-panel.component.js +62 -16
  5. package/esm2015/lib/components/ndf-filters/models/base-field-config.js +1 -1
  6. package/esm2015/lib/components/ndf-filters/pipes/check-condition.pipe.js +3 -3
  7. package/esm2015/lib/components/reports/ndf-reports/base/base-custom-report.js +41 -0
  8. package/esm2015/lib/components/reports/ndf-reports/base/base-report.js +3 -2
  9. package/esm2015/lib/components/reports/ndf-reports/base/index.js +5 -0
  10. package/esm2015/lib/components/reports/ndf-reports/charts-components/graph-chart/graph-chart.component.js +1 -1
  11. package/esm2015/lib/components/reports/ndf-reports/components/custom-report/custom-report.component.js +49 -0
  12. package/esm2015/lib/components/reports/ndf-reports/components/index.js +2 -1
  13. package/esm2015/lib/components/reports/ndf-reports/constants/charts-types.js +2 -1
  14. package/esm2015/lib/components/reports/ndf-reports/models/custom-definition.js +2 -0
  15. package/esm2015/lib/components/reports/ndf-reports/models/dialog-data.js +1 -1
  16. package/esm2015/lib/components/reports/ndf-reports/models/dynamic-line.js +1 -1
  17. package/esm2015/lib/components/reports/ndf-reports/models/graph-definition.js +2 -0
  18. package/esm2015/lib/components/reports/ndf-reports/models/index.js +3 -2
  19. package/esm2015/lib/components/reports/ndf-reports/models/report-config.js +1 -1
  20. package/esm2015/lib/components/reports/ndf-reports/ndf-reports.module.js +4 -3
  21. package/esm2015/lib/components/reports/ndf-reports/services/custom-reports-registry.service.js +132 -0
  22. package/esm2015/lib/components/reports/ndf-reports/services/index.js +2 -1
  23. package/esm2015/lib/components/reports/ndf-reports/services/report-config-mapper.service.js +8 -1
  24. package/esm2015/lib/components/spell-checker-field/spell-checker-field.module.js +1 -1
  25. package/esm2015/lib/shared/components/nuxeo-dialog/nuxeo.dialog.js +7 -6
  26. package/esm2015/lib/shared/evaluator/evaluator.js +3 -2
  27. package/esm2015/lib/shared/evaluator/types.js +1 -1
  28. package/fesm2015/nuxeo-development-framework.js +591 -324
  29. package/fesm2015/nuxeo-development-framework.js.map +1 -1
  30. package/lib/components/ndf-filters/containers/filters-panel/filters-panel.component.d.ts +10 -3
  31. package/lib/components/ndf-filters/models/base-field-config.d.ts +2 -2
  32. package/lib/components/ndf-filters/pipes/check-condition.pipe.d.ts +1 -1
  33. package/lib/components/reports/ndf-reports/base/base-custom-report.d.ts +38 -0
  34. package/lib/components/reports/ndf-reports/base/index.d.ts +4 -0
  35. package/lib/components/reports/ndf-reports/components/_parts/report-actions/report-actions.component.d.ts +1 -0
  36. package/lib/components/reports/ndf-reports/components/custom-report/custom-report.component.d.ts +14 -0
  37. package/lib/components/reports/ndf-reports/components/index.d.ts +1 -0
  38. package/lib/components/reports/ndf-reports/constants/charts-types.d.ts +1 -0
  39. package/lib/components/reports/ndf-reports/containers/ndf-report/ndf-report.component.d.ts +1 -0
  40. package/lib/components/reports/ndf-reports/models/custom-definition.d.ts +11 -0
  41. package/lib/components/reports/ndf-reports/models/dialog-data.d.ts +1 -1
  42. package/lib/components/reports/ndf-reports/models/dynamic-line.d.ts +1 -1
  43. package/lib/components/reports/ndf-reports/models/index.d.ts +2 -1
  44. package/lib/components/reports/ndf-reports/models/report-config.d.ts +3 -2
  45. package/lib/components/reports/ndf-reports/ndf-reports.module.d.ts +21 -20
  46. package/lib/components/reports/ndf-reports/services/custom-reports-registry.service.d.ts +83 -0
  47. package/lib/components/reports/ndf-reports/services/index.d.ts +1 -0
  48. package/lib/components/reports/ndf-reports/services/report-config-mapper.service.d.ts +6 -1
  49. package/lib/shared/evaluator/types.d.ts +1 -1
  50. package/package.json +1 -1
  51. package/esm2015/lib/components/reports/ndf-reports/models/graph.js +0 -2
  52. /package/lib/components/reports/ndf-reports/models/{graph.d.ts → graph-definition.d.ts} +0 -0
@@ -1,13 +1,15 @@
1
- import { EventEmitter, OnInit } from '@angular/core';
1
+ import { EventEmitter, OnChanges, OnInit, SimpleChanges } from '@angular/core';
2
2
  import { FormGroup } from '@angular/forms';
3
3
  import { Observable } from 'rxjs';
4
4
  import { AggregationResponse, FieldConfigModel, FormQueryModel } from '../../models';
5
5
  import { BaseFiltersPanel } from './base-filters-panel';
6
6
  import { Direction } from '@angular/cdk/bidi';
7
7
  import { TranslateService } from '@ngx-translate/core';
8
+ import { NuxeoService } from '../../../../core/services';
8
9
  import * as i0 from "@angular/core";
9
- export declare class FiltersPanelComponent extends BaseFiltersPanel implements OnInit {
10
+ export declare class FiltersPanelComponent extends BaseFiltersPanel implements OnInit, OnChanges {
10
11
  private _translateService;
12
+ nuxeoService: NuxeoService;
11
13
  currentLang: string;
12
14
  direction$: Observable<Direction>;
13
15
  aggregations: Record<string, AggregationResponse>;
@@ -32,10 +34,14 @@ export declare class FiltersPanelComponent extends BaseFiltersPanel implements O
32
34
  readonly custom: "custom";
33
35
  };
34
36
  formGroup: FormGroup;
35
- constructor(_translateService: TranslateService);
37
+ visibleFields: {
38
+ [key: string]: boolean;
39
+ };
40
+ constructor(_translateService: TranslateService, nuxeoService: NuxeoService);
36
41
  trackByFieldKey(_: number, field: FieldConfigModel): string;
37
42
  get hasValues(): boolean;
38
43
  ngOnInit(): void;
44
+ ngOnChanges(changes: SimpleChanges): void;
39
45
  resetFilters(): void;
40
46
  private _sortItems;
41
47
  private _initFormGroup;
@@ -44,6 +50,7 @@ export declare class FiltersPanelComponent extends BaseFiltersPanel implements O
44
50
  private _handleFormGroupChanges;
45
51
  private _removeControls;
46
52
  private _handelActiveQueryChange;
53
+ private _evaluateConditions;
47
54
  static ɵfac: i0.ɵɵFactoryDeclaration<FiltersPanelComponent, never>;
48
55
  static ɵcmp: i0.ɵɵComponentDeclaration<FiltersPanelComponent, "app-filters-panel", never, { "aggregations": "aggregations"; "fields": "fields"; "activeQuery": "activeQuery"; }, { "filterChanged": "filterChanged"; }, never, never>;
49
56
  }
@@ -1,4 +1,4 @@
1
- import { InterpolateString } from '../../../shared/evaluator';
1
+ import { EvaluatedString } from '../../../shared/evaluator';
2
2
  import { TranslateKey } from '../../../shared/models';
3
3
  import { ComparisonOperator } from './types-helper';
4
4
  export declare type BaseFieldConfig = {
@@ -12,5 +12,5 @@ export declare type BaseFieldConfig = {
12
12
  visible?: boolean;
13
13
  roles?: string[];
14
14
  permission?: string;
15
- condition?: InterpolateString;
15
+ condition?: EvaluatedString;
16
16
  };
@@ -6,7 +6,7 @@ export declare class CheckConditionPipe implements PipeTransform {
6
6
  nuxeoService: NuxeoService;
7
7
  user: Record<string, any>;
8
8
  constructor(nuxeoService: NuxeoService);
9
- transform(condition: string, aggregations: Record<string, any>, language: string): Evaluator;
9
+ transform(condition: string, aggregations: Record<string, any>, language: string, filterValues: Record<string, any>): Evaluator;
10
10
  static ɵfac: i0.ɵɵFactoryDeclaration<CheckConditionPipe, never>;
11
11
  static ɵpipe: i0.ɵɵPipeDeclaration<CheckConditionPipe, "checkCondition">;
12
12
  }
@@ -0,0 +1,38 @@
1
+ import { Direction } from '@angular/cdk/bidi';
2
+ import { BehaviorSubject, ReplaySubject } from 'rxjs';
3
+ import { DestroySubject } from '../../../../shared/components';
4
+ import { CriteriaModel, CustomChartConfig, ReportResponseModel } from '../models';
5
+ import * as i0 from "@angular/core";
6
+ export declare abstract class BaseCustomReport extends DestroySubject {
7
+ direction: Direction;
8
+ data: ReportResponseModel;
9
+ protected _criteriaSub: ReplaySubject<{
10
+ params?: Record<string, any>;
11
+ payload?: {
12
+ predicateList: import("nuxeo-development-framework").OperatorValueObject[];
13
+ aggregationNames?: {
14
+ name: string;
15
+ interval: import("../models").TimeGroups;
16
+ }[];
17
+ } & Record<string, any>;
18
+ }>;
19
+ criteria$: import("rxjs").Observable<{
20
+ params?: Record<string, any>;
21
+ payload?: {
22
+ predicateList: import("nuxeo-development-framework").OperatorValueObject[];
23
+ aggregationNames?: {
24
+ name: string;
25
+ interval: import("../models").TimeGroups;
26
+ }[];
27
+ } & Record<string, any>;
28
+ }>;
29
+ private _criteria;
30
+ set criteria(value: CriteriaModel);
31
+ protected _configSub: BehaviorSubject<import("../models").CustomChartDefinition>;
32
+ config$: import("rxjs").Observable<import("../models").CustomChartDefinition>;
33
+ set config(obj: CustomChartConfig);
34
+ get config(): CustomChartConfig;
35
+ ذ: any;
36
+ static ɵfac: i0.ɵɵFactoryDeclaration<BaseCustomReport, never>;
37
+ static ɵdir: i0.ɵɵDirectiveDeclaration<BaseCustomReport, never, never, { "direction": "direction"; "data": "data"; "criteria": "criteria"; "config": "config"; }, {}, never>;
38
+ }
@@ -0,0 +1,4 @@
1
+ export * from './base-chart';
2
+ export * from './base-report';
3
+ export * from './base-graph.report';
4
+ export * from './base-custom-report';
@@ -10,6 +10,7 @@ export declare class ReportActionsComponent {
10
10
  readonly graph: "graph";
11
11
  readonly digit: "digit";
12
12
  readonly dynamicLine: "dynamicLine";
13
+ readonly custom: "custom";
13
14
  };
14
15
  get isPrintAllowed(): boolean;
15
16
  static ɵfac: i0.ɵɵFactoryDeclaration<ReportActionsComponent, never>;
@@ -0,0 +1,14 @@
1
+ import { ComponentRef, OnChanges, OnInit, SimpleChanges, ViewContainerRef } from '@angular/core';
2
+ import { BaseReport } from '../../base';
3
+ import { CustomChartDefinition } from '../../models';
4
+ import * as i0 from "@angular/core";
5
+ export declare class CustomReportComponent extends BaseReport<CustomChartDefinition, any> implements OnInit, OnChanges {
6
+ private readonly _registeredComponents;
7
+ container: ViewContainerRef;
8
+ protected _componentRef: ComponentRef<any>;
9
+ ngOnInit(): void;
10
+ ngOnChanges(changes: SimpleChanges): void;
11
+ ngOnDestroy(): void;
12
+ static ɵfac: i0.ɵɵFactoryDeclaration<CustomReportComponent, never>;
13
+ static ɵcmp: i0.ɵɵComponentDeclaration<CustomReportComponent, "app-custom-report", never, {}, {}, never, never>;
14
+ }
@@ -2,3 +2,4 @@ export * from './digit-report/digit-report.component';
2
2
  export * from './graph-report/graph-report.component';
3
3
  export * from './dynamic-timeline-report/dynamic-timeline-report.component';
4
4
  export * from './_parts';
5
+ export * from './custom-report/custom-report.component';
@@ -9,4 +9,5 @@ export declare const REPORT_MODE: {
9
9
  readonly graph: "graph";
10
10
  readonly digit: "digit";
11
11
  readonly dynamicLine: "dynamicLine";
12
+ readonly custom: "custom";
12
13
  };
@@ -8,6 +8,7 @@ export declare class NdfReportComponent extends DestroySubject {
8
8
  readonly graph: "graph";
9
9
  readonly digit: "digit";
10
10
  readonly dynamicLine: "dynamicLine";
11
+ readonly custom: "custom";
11
12
  };
12
13
  config: ReportDefinitionModel;
13
14
  direction: Direction;
@@ -0,0 +1,11 @@
1
+ import { BaseReportConfig } from './base';
2
+ import { GraphDialogConfig } from './graph-definition';
3
+ import { ReportDataSource } from './report-data-source';
4
+ export interface CustomChartDefinition extends BaseReportConfig, GraphDialogConfig {
5
+ mode: 'custom';
6
+ prefix?: string;
7
+ print?: boolean;
8
+ datasource: ReportDataSource[];
9
+ options?: Record<string, any>;
10
+ }
11
+ export declare type CustomChartConfig = CustomChartDefinition;
@@ -1,7 +1,7 @@
1
1
  import { ReportResponseModel } from './report-response.model';
2
2
  import { Direction } from '@angular/cdk/bidi';
3
3
  import { CriteriaModel } from './common';
4
- import { GraphChart } from './graph';
4
+ import { GraphChart } from './graph-definition';
5
5
  import { DynamicLineChart } from './dynamic-line';
6
6
  export declare type GraphDialogData = {
7
7
  config: GraphChart | DynamicLineChart;
@@ -1,6 +1,6 @@
1
1
  import { ChartDataset, Plugin } from 'chart.js';
2
2
  import { BaseReportConfig } from './base';
3
- import { GraphDialogConfig } from './graph';
3
+ import { GraphDialogConfig } from './graph-definition';
4
4
  import { NdfReportsRequest } from './request';
5
5
  import { ReportDataSource } from './report-data-source';
6
6
  import { TimeGroups } from './common';
@@ -9,4 +9,5 @@ export * from './digit';
9
9
  export * from './dynamic-line';
10
10
  export * from './report-data-source';
11
11
  export * from './request';
12
- export * from './graph';
12
+ export * from './graph-definition';
13
+ export * from './custom-definition';
@@ -1,5 +1,6 @@
1
1
  import { DigitChart, DigitChartDefinition } from './digit';
2
- import { GraphChart, GraphChartDefinition } from './graph';
2
+ import { GraphChart, GraphChartDefinition } from './graph-definition';
3
3
  import { DynamicLineChart, DynamicLineChartDefinition } from './dynamic-line';
4
+ import { CustomChartDefinition } from './custom-definition';
4
5
  export declare type ReportConfigModel = DigitChart | GraphChart | DynamicLineChart;
5
- export declare type ReportDefinitionModel = DigitChartDefinition | GraphChartDefinition | DynamicLineChartDefinition;
6
+ export declare type ReportDefinitionModel = DigitChartDefinition | GraphChartDefinition | DynamicLineChartDefinition | CustomChartDefinition;
@@ -12,27 +12,28 @@ import * as i10 from "./directives/scrollable-div.directive";
12
12
  import * as i11 from "./charts-components/graph-chart/graph-chart.component";
13
13
  import * as i12 from "./charts-components/digit-chart/digit-chart.component";
14
14
  import * as i13 from "./components/_parts/report-actions/report-actions.component";
15
- import * as i14 from "@angular/common";
16
- import * as i15 from "@ngx-translate/core";
17
- import * as i16 from "@angular/material/menu";
18
- import * as i17 from "@angular/material/icon";
19
- import * as i18 from "@angular/material/button";
20
- import * as i19 from "../charts/charts.module";
21
- import * as i20 from "../../dynamic-form/dynamic-form.module";
22
- import * as i21 from "@angular/forms";
23
- import * as i22 from "@ng-select/ng-select";
24
- import * as i23 from "@angular/material/tooltip";
25
- import * as i24 from "../../../shared/directives/fluid-height.directive";
26
- import * as i25 from "../../ndf-filters/ndf-filters-panel.module";
27
- import * as i26 from "@angular/material/progress-spinner";
28
- import * as i27 from "../../../shared/components/nuxeo-dialog/nuxeo-dialog.module";
29
- import * as i28 from "../../tables/ndf-table/ndf-table.module";
30
- import * as i29 from "../../../directive/directive.module";
31
- import * as i30 from "../../ndf-config-editor/public/editor-navigate-button";
32
- import * as i31 from "../chart-panel";
33
- import * as i32 from "../../skeleton/skeleton.module";
15
+ import * as i14 from "./components/custom-report/custom-report.component";
16
+ import * as i15 from "@angular/common";
17
+ import * as i16 from "@ngx-translate/core";
18
+ import * as i17 from "@angular/material/menu";
19
+ import * as i18 from "@angular/material/icon";
20
+ import * as i19 from "@angular/material/button";
21
+ import * as i20 from "../charts/charts.module";
22
+ import * as i21 from "../../dynamic-form/dynamic-form.module";
23
+ import * as i22 from "@angular/forms";
24
+ import * as i23 from "@ng-select/ng-select";
25
+ import * as i24 from "@angular/material/tooltip";
26
+ import * as i25 from "../../../shared/directives/fluid-height.directive";
27
+ import * as i26 from "../../ndf-filters/ndf-filters-panel.module";
28
+ import * as i27 from "@angular/material/progress-spinner";
29
+ import * as i28 from "../../../shared/components/nuxeo-dialog/nuxeo-dialog.module";
30
+ import * as i29 from "../../tables/ndf-table/ndf-table.module";
31
+ import * as i30 from "../../../directive/directive.module";
32
+ import * as i31 from "../../ndf-config-editor/public/editor-navigate-button";
33
+ import * as i32 from "../chart-panel";
34
+ import * as i33 from "../../skeleton/skeleton.module";
34
35
  export declare class NdfReportsModule {
35
36
  static ɵfac: i0.ɵɵFactoryDeclaration<NdfReportsModule, never>;
36
- static ɵmod: i0.ɵɵNgModuleDeclaration<NdfReportsModule, [typeof i1.NdfReportsComponent, typeof i2.NdfReportComponent, typeof i3.ChartTypeSelectorComponent, typeof i4.DigitReportComponent, typeof i5.GraphReportComponent, typeof i6.DynamicTimelineReportComponent, typeof i7.TimeGroupSelectorComponent, typeof i8.GraphDialogComponent, typeof i9.TimelineDialogComponent, typeof i10.ScrollableDivDirective, typeof i11.GraphChartComponent, typeof i12.DigitChartComponent, typeof i13.ReportActionsComponent], [typeof i14.CommonModule, typeof i15.TranslateModule, typeof i16.MatMenuModule, typeof i17.MatIconModule, typeof i18.MatButtonModule, typeof i19.ChartsModule, typeof i20.DynamicFormModule, typeof i21.ReactiveFormsModule, typeof i21.FormsModule, typeof i22.NgSelectModule, typeof i23.MatTooltipModule, typeof i24.FluidHeightModule, typeof i25.NdfFiltersPanelModule, typeof i26.MatProgressSpinnerModule, typeof i27.NuxeoDialogModule, typeof i28.NdfTableModule, typeof i29.DirectiveModule, typeof i30.EditorNavigateButton, typeof i31.ChartPanelModule, typeof i32.SkeletonModule], [typeof i1.NdfReportsComponent, typeof i2.NdfReportComponent]>;
37
+ static ɵmod: i0.ɵɵNgModuleDeclaration<NdfReportsModule, [typeof i1.NdfReportsComponent, typeof i2.NdfReportComponent, typeof i3.ChartTypeSelectorComponent, typeof i4.DigitReportComponent, typeof i5.GraphReportComponent, typeof i6.DynamicTimelineReportComponent, typeof i7.TimeGroupSelectorComponent, typeof i8.GraphDialogComponent, typeof i9.TimelineDialogComponent, typeof i10.ScrollableDivDirective, typeof i11.GraphChartComponent, typeof i12.DigitChartComponent, typeof i13.ReportActionsComponent, typeof i14.CustomReportComponent], [typeof i15.CommonModule, typeof i16.TranslateModule, typeof i17.MatMenuModule, typeof i18.MatIconModule, typeof i19.MatButtonModule, typeof i20.ChartsModule, typeof i21.DynamicFormModule, typeof i22.ReactiveFormsModule, typeof i22.FormsModule, typeof i23.NgSelectModule, typeof i24.MatTooltipModule, typeof i25.FluidHeightModule, typeof i26.NdfFiltersPanelModule, typeof i27.MatProgressSpinnerModule, typeof i28.NuxeoDialogModule, typeof i29.NdfTableModule, typeof i30.DirectiveModule, typeof i31.EditorNavigateButton, typeof i32.ChartPanelModule, typeof i33.SkeletonModule], [typeof i1.NdfReportsComponent, typeof i2.NdfReportComponent]>;
37
38
  static ɵinj: i0.ɵɵInjectorDeclaration<NdfReportsModule>;
38
39
  }
@@ -0,0 +1,83 @@
1
+ import { ComponentFactoryResolver, Type, ViewContainerRef, ComponentRef } from '@angular/core';
2
+ import * as i0 from "@angular/core";
3
+ export interface CustomReportRegistryDefinition {
4
+ type: string;
5
+ component: Type<any>;
6
+ category?: string;
7
+ name?: string;
8
+ description?: string;
9
+ }
10
+ export declare class CustomReportsRegistry {
11
+ private _factoryResolver;
12
+ private readonly _components;
13
+ constructor(_factoryResolver: ComponentFactoryResolver);
14
+ /**
15
+ * Register a component with the registry
16
+ * @param config Component configuration
17
+ */
18
+ registerComponent(config: CustomReportRegistryDefinition): void;
19
+ /**
20
+ * Register multiple components at once
21
+ * @param configs Array of component configurations
22
+ */
23
+ registerComponents(configs: CustomReportRegistryDefinition[]): void;
24
+ /**
25
+ * Render a component by type into a ViewContainerRef
26
+ * @param type Component type identifier
27
+ * @param vcr ViewContainerRef to render into
28
+ */
29
+ renderComponent(type: string, vcr: ViewContainerRef): ComponentRef<any>;
30
+ /**
31
+ * Load a component into a ViewContainerRef
32
+ * @param config Component configuration
33
+ * @param vcr ViewContainerRef to render into
34
+ */
35
+ loadComponent(config: CustomReportRegistryDefinition, vcr: ViewContainerRef): ComponentRef<any>;
36
+ /**
37
+ * Check if a component is registered
38
+ * @param type Component type identifier
39
+ */
40
+ hasComponent(type: string): boolean;
41
+ /**
42
+ * Get component configuration by type
43
+ * @param type Component type identifier
44
+ */
45
+ getComponent(type: string): CustomReportRegistryDefinition | undefined;
46
+ /**
47
+ * Get all registered component types
48
+ */
49
+ getComponentTypes(): string[];
50
+ /**
51
+ * Get all registered components
52
+ */
53
+ getAllComponents(): CustomReportRegistryDefinition[];
54
+ /**
55
+ * Get components by category
56
+ * @param category Category to filter by
57
+ */
58
+ getComponentsByCategory(category: string): CustomReportRegistryDefinition[];
59
+ /**
60
+ * Get all unique categories
61
+ */
62
+ getCategories(): string[];
63
+ /**
64
+ * Unregister a component
65
+ * @param type Component type identifier
66
+ */
67
+ unregisterComponent(type: string): boolean;
68
+ /**
69
+ * Clear all registered components
70
+ */
71
+ clearComponents(): void;
72
+ /**
73
+ * Get the total number of registered components
74
+ */
75
+ getComponentCount(): number;
76
+ /**
77
+ * Search components by name or type
78
+ * @param searchTerm Search term
79
+ */
80
+ searchComponents(searchTerm: string): CustomReportRegistryDefinition[];
81
+ static ɵfac: i0.ɵɵFactoryDeclaration<CustomReportsRegistry, never>;
82
+ static ɵprov: i0.ɵɵInjectableDeclaration<CustomReportsRegistry>;
83
+ }
@@ -9,3 +9,4 @@ export * from './chart-data-transformers.service';
9
9
  export * from './chart-plugins-registry.service';
10
10
  export * from './report-config-mapper.service';
11
11
  export * from './reports-data-transformers.service';
12
+ export * from './custom-reports-registry.service';
@@ -1,4 +1,4 @@
1
- import { DigitChart, DigitChartDefinition, DynamicLineChart, DynamicLineChartDefinition, GraphChart, GraphChartDefinition } from '../models';
1
+ import { CustomChartConfig, CustomChartDefinition, DigitChart, DigitChartDefinition, DynamicLineChart, DynamicLineChartDefinition, GraphChart, GraphChartDefinition } from '../models';
2
2
  import { ChartPluginsRegistry } from './chart-plugins-registry.service';
3
3
  import * as i0 from "@angular/core";
4
4
  export declare class ReportConfigMapperService {
@@ -16,6 +16,11 @@ export declare class ReportConfigMapperService {
16
16
  * @returns The prepared dynamic line chart with plugin objects
17
17
  */
18
18
  prepareGraphLineConfig(config: DynamicLineChartDefinition): DynamicLineChart;
19
+ /**
20
+ * Prepares a custom chart configuration
21
+ * @param config
22
+ */
23
+ prepareCustomConfig(config: CustomChartDefinition): CustomChartConfig;
19
24
  /**
20
25
  * Prepares a digit chart configuration
21
26
  * @param config The digit chart definition
@@ -13,6 +13,6 @@ export declare type TemplateSettings = {
13
13
  escape: RegExp;
14
14
  };
15
15
  export declare type InterpolateString = `${string}{{${string | number}}}${string}`;
16
- export declare type EvaluatedString<VAR extends string = string> = `${string}${VAR}${Whitespace}=${Whitespace}${string}`;
16
+ export declare type EvaluatedString<VAR extends string = 'show'> = `${string}${VAR}${Whitespace}=${Whitespace}${string}`;
17
17
  declare type Whitespace = '' | ' ' | `${any}`;
18
18
  export {};
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "nuxeo-development-framework",
3
- "version": "5.4.6",
3
+ "version": "5.4.7",
4
4
  "peerDependencies": {
5
5
  "@angular/animations": "12.2.3",
6
6
  "@angular/common": "12.2.3",
@@ -1,2 +0,0 @@
1
- export {};
2
- //# sourceMappingURL=data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