nuxeo-development-framework 5.5.1 → 5.5.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (34) hide show
  1. package/bundles/nuxeo-development-framework.umd.js +52 -22
  2. package/bundles/nuxeo-development-framework.umd.js.map +1 -1
  3. package/esm2015/lib/components/ndf-config-editor/constants/index.js +2 -2
  4. package/esm2015/lib/components/reports/ndf-reports/models/details.js +1 -1
  5. package/esm2015/lib/components/reports/ndf-reports/models/ndf-reports.config.js +1 -1
  6. package/esm2015/lib/components/reports/ndf-reports/services/index.js +2 -1
  7. package/esm2015/lib/components/reports/ndf-reports/services/report-details.service.js +29 -0
  8. package/esm2015/lib/components/reports/ndf-reports/utilities/reports-table.mapper.js +3 -2
  9. package/esm2015/lib/components/tables/ndf-table/containers/ndf-table/ndf-table.component.js +7 -7
  10. package/esm2015/lib/components/tables/ndf-table/models/table-column.js +1 -1
  11. package/esm2015/lib/components/tables/ndf-table/models/table-options.js +1 -1
  12. package/esm2015/lib/components/tables/ndf-table/services/ndf-table.service.js +2 -2
  13. package/esm2015/lib/shared/constants/editor-config-type.js +5 -0
  14. package/esm2015/lib/shared/constants/index.js +2 -0
  15. package/esm2015/lib/shared/index.js +2 -1
  16. package/esm2015/lib/shared/services/base/base-editor-config.service.js +1 -1
  17. package/esm2015/public-api.js +2 -1
  18. package/fesm2015/nuxeo-development-framework.js +49 -23
  19. package/fesm2015/nuxeo-development-framework.js.map +1 -1
  20. package/lib/components/ndf-config-editor/constants/index.d.ts +1 -1
  21. package/lib/components/reports/ndf-reports/containers/ndf-reports/ndf-reports.component.d.ts +1 -1
  22. package/lib/components/reports/ndf-reports/models/details.d.ts +5 -1
  23. package/lib/components/reports/ndf-reports/models/ndf-reports.config.d.ts +1 -1
  24. package/lib/components/reports/ndf-reports/services/index.d.ts +1 -0
  25. package/lib/components/reports/ndf-reports/services/report-details.service.d.ts +12 -0
  26. package/lib/components/tables/ndf-table/models/table-column.d.ts +1 -0
  27. package/lib/components/tables/ndf-table/models/table-options.d.ts +1 -1
  28. package/lib/shared/constants/index.d.ts +1 -0
  29. package/lib/shared/index.d.ts +1 -0
  30. package/lib/shared/services/base/base-editor-config.service.d.ts +3 -1
  31. package/package.json +1 -1
  32. package/public-api.d.ts +1 -0
  33. package/esm2015/lib/components/ndf-config-editor/constants/type.js +0 -5
  34. /package/lib/{components/ndf-config-editor/constants/type.d.ts → shared/constants/editor-config-type.d.ts} +0 -0
@@ -1,3 +1,3 @@
1
1
  export * from './mode';
2
- export * from './type';
3
2
  export * from './query';
3
+ export * from '../../../shared/constants/editor-config-type';
@@ -64,7 +64,7 @@ export declare class NdfReportsComponent extends DestroySubject implements OnIni
64
64
  reloadStrategy?: "never" | "always";
65
65
  };
66
66
  get reportConfig(): {
67
- details?: import("../../models").ReportDetailsConfig;
67
+ details?: Required<import("../../models").ReportDetailsConfig>;
68
68
  items: import("../../models").ReportDefinitionModel[];
69
69
  };
70
70
  jsonEditorEnabled: boolean;
@@ -2,12 +2,16 @@ import { TableColumnConfig, TableExportConfig, TableSortConfig, TableSortOptions
2
2
  import { NdfReportsRequest } from './request';
3
3
  import { EvaluatedString } from '../../../../shared';
4
4
  export declare type ReportDetailsConfig = {
5
+ enabled: boolean;
6
+ source?: ReportDetailsKey | ReportConfigOptions;
7
+ };
8
+ export declare type ReportDetailsKey = string;
9
+ export declare type ReportConfigOptions = {
5
10
  request?: Partial<NdfReportsRequest> & {
6
11
  actions?: {
7
12
  beforeSubmit?: EvaluatedString<'payload'>;
8
13
  };
9
14
  };
10
- enabled: boolean;
11
15
  columns?: TableColumnConfig[];
12
16
  fields?: Record<string, string>;
13
17
  prefix?: string;
@@ -18,7 +18,7 @@ export declare type NdfReportsConfig = {
18
18
  print?: boolean;
19
19
  };
20
20
  reports: {
21
- details?: ReportDetailsConfig;
21
+ details?: Required<ReportDetailsConfig>;
22
22
  items: ReportDefinitionModel[];
23
23
  };
24
24
  activeQuery?: Record<string, any>;
@@ -10,3 +10,4 @@ export * from './chart-plugins-registry.service';
10
10
  export * from './report-config-mapper.service';
11
11
  export * from './reports-data-transformers.service';
12
12
  export * from './custom-reports-registry.service';
13
+ export * from './report-details.service';
@@ -0,0 +1,12 @@
1
+ import { Injector } from '@angular/core';
2
+ import { BaseEditorConfigService } from '../../../../shared';
3
+ import { Observable } from 'rxjs';
4
+ import { NdfTableConfig } from '../../../tables';
5
+ import * as i0 from "@angular/core";
6
+ export declare class ReportDetailsService extends BaseEditorConfigService {
7
+ readonly injector: Injector;
8
+ constructor(injector: Injector);
9
+ getTableConfiguration(key: string, localPath?: string): Observable<NdfTableConfig>;
10
+ static ɵfac: i0.ɵɵFactoryDeclaration<ReportDetailsService, never>;
11
+ static ɵprov: i0.ɵɵInjectableDeclaration<ReportDetailsService>;
12
+ }
@@ -31,4 +31,5 @@ export interface TableColumnConfig {
31
31
  order?: number;
32
32
  defaultVisible?: boolean;
33
33
  options?: Record<string, any>;
34
+ filedKey?: string;
34
35
  }
@@ -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';
48
+ docTypeName: 'task' | 'request' | 'record' | 'nonDocUsage' | 'document' | 'docUsage';
49
49
  blobName: string;
50
50
  defaultType: 'excel' | 'docx' | 'pdf';
51
51
  allowedTypes?: LabelValue<string, 'excel' | 'docx' | 'pdf'>[];
@@ -0,0 +1 @@
1
+ export * from './editor-config-type';
@@ -4,3 +4,4 @@ export * from './components';
4
4
  export * from './models';
5
5
  export * from './libraryShared.module';
6
6
  export * from './evaluator';
7
+ export * from './constants';
@@ -2,7 +2,9 @@ import { BaseService } from './base.service';
2
2
  import { AppConfigService } from '../../../configuration/app-config.service';
3
3
  import { Observable } from 'rxjs';
4
4
  import { Injector } from '@angular/core';
5
+ import { NDF_EDITOR_TYPE } from '../../constants';
5
6
  import * as i0 from "@angular/core";
7
+ export declare type ConfigType = (typeof NDF_EDITOR_TYPE)[keyof typeof NDF_EDITOR_TYPE];
6
8
  export interface ConfigResponseModel {
7
9
  submitted: boolean;
8
10
  uid?: string;
@@ -15,7 +17,7 @@ export interface ConfigResponseModel {
15
17
  }
16
18
  export interface ConfigRequestModel {
17
19
  key: string;
18
- type: string;
20
+ type: ConfigType;
19
21
  app?: string;
20
22
  localPath?: string;
21
23
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "nuxeo-development-framework",
3
- "version": "5.5.1",
3
+ "version": "5.5.2",
4
4
  "peerDependencies": {
5
5
  "@angular/animations": "12.2.3",
6
6
  "@angular/common": "12.2.3",
package/public-api.d.ts CHANGED
@@ -242,3 +242,4 @@ export * from './lib/components/tables';
242
242
  export * from './lib/components/ndf-config-editor';
243
243
  export * from './lib/components/ndf-filters';
244
244
  export * from './lib/shared/evaluator';
245
+ export * from './lib/shared/constants';
@@ -1,5 +0,0 @@
1
- export const NDF_EDITOR_TYPE = {
2
- REPORTS: 'report',
3
- TABLES: 'table'
4
- };
5
- //# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoidHlwZS5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbIi4uLy4uLy4uLy4uLy4uLy4uLy4uL3Byb2plY3RzL251eGVvLWRldmVsb3BtZW50LWZyYW1ld29yay9zcmMvbGliL2NvbXBvbmVudHMvbmRmLWNvbmZpZy1lZGl0b3IvY29uc3RhbnRzL3R5cGUudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IkFBQUEsTUFBTSxDQUFDLE1BQU0sZUFBZSxHQUFHO0lBQzlCLE9BQU8sRUFBRSxRQUFRO0lBQ2pCLE1BQU0sRUFBRSxPQUFPO0NBQ04sQ0FBQyIsInNvdXJjZXNDb250ZW50IjpbImV4cG9ydCBjb25zdCBOREZfRURJVE9SX1RZUEUgPSB7XHJcblx0UkVQT1JUUzogJ3JlcG9ydCcsXHJcblx0VEFCTEVTOiAndGFibGUnXHJcbn0gYXMgY29uc3Q7XHJcbiJdfQ==