nuxeo-development-framework 5.5.9 → 5.6.0

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.
@@ -63,9 +63,7 @@ export declare class NdfReportsComponent extends DestroySubject implements OnIni
63
63
  togglePanel?: boolean;
64
64
  reloadStrategy?: "never" | "always";
65
65
  };
66
- get reportConfig(): {
67
- items: import("../../models").ReportDefinitionModel[];
68
- };
66
+ get reportConfig(): import("../../models").ReportsDefinition;
69
67
  jsonEditorEnabled: boolean;
70
68
  reportsKey: string;
71
69
  editorType: "report";
@@ -1,12 +1,13 @@
1
1
  import { BaseReportConfig } from './base';
2
2
  import { GraphDialogConfig } from './graph-definition';
3
3
  import { ReportDataSource } from './report-data-source';
4
- export interface CustomChartDefinition extends BaseReportConfig, GraphDialogConfig {
4
+ export interface CustomChartDefinition extends BaseReportConfig {
5
5
  mode: 'custom';
6
6
  type: string;
7
7
  prefix?: string;
8
8
  print?: boolean;
9
9
  datasource?: ReportDataSource[];
10
10
  options?: Record<string, any>;
11
+ dialog?: GraphDialogConfig;
11
12
  }
12
13
  export declare type CustomChart = CustomChartDefinition;
@@ -9,7 +9,9 @@ import { EvaluatedString } from '../../../../shared';
9
9
  /**
10
10
  * Base configuration for chart reports that include dialog options
11
11
  */
12
- declare type ReportChartConfig = BaseReportConfig & GraphDialogConfig;
12
+ declare type ReportChartConfig = BaseReportConfig & {
13
+ dialog?: GraphDialogConfig;
14
+ };
13
15
  /**
14
16
  * Definition of dynamic line chart options with plugins as strings (used in configuration)
15
17
  */
@@ -15,17 +15,15 @@ export interface ChartTypeConfig {
15
15
  * Configuration for dialog display in graph reports
16
16
  */
17
17
  export declare type GraphDialogConfig = {
18
- dialog?: {
19
- active: boolean;
20
- panelClass?: string | string[];
21
- width?: string;
22
- height?: string;
23
- minWidth?: number | string;
24
- minHeight?: number | string;
25
- maxWidth?: number | string;
26
- maxHeight?: number | string;
27
- position?: DialogPosition;
28
- };
18
+ active: boolean;
19
+ panelClass?: string | string[];
20
+ width?: string;
21
+ height?: string;
22
+ minWidth?: number | string;
23
+ minHeight?: number | string;
24
+ maxWidth?: number | string;
25
+ maxHeight?: number | string;
26
+ position?: DialogPosition;
29
27
  };
30
28
  /**
31
29
  * Definition of chart options with plugins as strings (used in configuration)
@@ -48,13 +46,14 @@ export declare type GraphChartOptions<TType extends ChartType = ChartType> = Omi
48
46
  /**
49
47
  * Complete definition of a graph chart (used in configuration)
50
48
  */
51
- export declare type GraphChartDefinition<TType extends ChartType = ChartType> = BaseReportConfig & GraphDialogConfig & {
49
+ export declare type GraphChartDefinition<TType extends ChartType = ChartType> = BaseReportConfig & {
52
50
  mode: 'graph';
53
51
  datasource: ReportDataSource[];
54
52
  chart: GraphChartOptionsDefinition<TType>;
55
53
  prefix?: string;
56
54
  print?: boolean;
57
55
  typeConfig?: ChartTypeConfig;
56
+ dialog?: GraphDialogConfig;
58
57
  };
59
58
  /**
60
59
  * Complete graph chart with processed plugins (used in implementation)
@@ -10,15 +10,16 @@ declare type NdfReportsFilters = {
10
10
  togglePanel?: boolean;
11
11
  reloadStrategy?: 'always' | 'never';
12
12
  };
13
+ export declare type ReportsDefinition = {
14
+ items: ReportDefinitionModel[];
15
+ };
13
16
  export declare type NdfReportsConfig = {
14
17
  request: NdfReportsRequest;
15
18
  filters?: NdfReportsFilters;
16
19
  options?: {
17
20
  print?: boolean;
18
21
  };
19
- reports: {
20
- items: ReportDefinitionModel[];
21
- };
22
+ reports: ReportsDefinition;
22
23
  activeQuery?: Record<string, any>;
23
24
  };
24
25
  export {};
@@ -1,3 +1,12 @@
1
+ /**
2
+ * Represents a data source for a report.
3
+ * @typedef {Object} ReportDataSource
4
+ * @property {string} propertyPath - The path to the property in the data source.
5
+ * @property {string} [bindLabel] - Optional label to bind.
6
+ * @property {string} [bindValue] - Optional value to bind.
7
+ * @property {string} [dataFormat] - Optional format for the data.
8
+ * @property {string} [transformer] - Optional transformer to apply to the data.
9
+ */
1
10
  export declare type ReportDataSource = {
2
11
  propertyPath: string;
3
12
  bindLabel?: string;
@@ -45,7 +45,7 @@ export declare type CustomCriteriaModel = {
45
45
  export declare type TableExportConfig = {
46
46
  enabled: boolean;
47
47
  request: NdfRequestConfig;
48
- docTypeName: 'task' | 'request' | 'record' | 'nonDocUsage' | 'document' | 'docUsage';
48
+ docTypeName: 'task' | 'request' | 'record' | 'nonDocUsage' | 'document' | 'docUsage' | 'box';
49
49
  blobName: string;
50
50
  defaultType: 'excel' | 'docx' | 'pdf';
51
51
  allowedTypes?: LabelValue<string, 'excel' | 'docx' | 'pdf'>[];
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "nuxeo-development-framework",
3
- "version": "5.5.9",
3
+ "version": "5.6.0",
4
4
  "peerDependencies": {
5
5
  "@angular/animations": "12.2.3",
6
6
  "@angular/common": "12.2.3",
@@ -83,4 +83,4 @@
83
83
  "fesm2015": "fesm2015/nuxeo-development-framework.js",
84
84
  "typings": "nuxeo-development-framework.d.ts",
85
85
  "sideEffects": false
86
- }
86
+ }