nuxeo-development-framework 5.4.5 → 5.4.6

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 (35) hide show
  1. package/bundles/nuxeo-development-framework.umd.js +56 -39
  2. package/bundles/nuxeo-development-framework.umd.js.map +1 -1
  3. package/esm2015/lib/components/dynamic-search/dynamic-search/dynamic-search.component.js +2 -2
  4. package/esm2015/lib/components/ndf-filters/containers/aggregation-field/aggregation-field.component.js +3 -17
  5. package/esm2015/lib/components/ndf-filters/custom-components/index.js +2 -1
  6. package/esm2015/lib/components/ndf-filters/ndf-filters-panel.module.js +8 -9
  7. package/esm2015/lib/components/ndf-filters/services/dynamic-component-loader.service.js +6 -1
  8. package/esm2015/lib/components/ndf-tabs/component/ndf-tabs.component.js +2 -2
  9. package/esm2015/lib/components/reports/ndf-reports/components/digit-report/digit-report.component.js +1 -1
  10. package/esm2015/lib/components/reports/ndf-reports/components/dynamic-timeline-report/dynamic-timeline-report.component.js +2 -2
  11. package/esm2015/lib/components/reports/ndf-reports/components/graph-report/graph-report.component.js +2 -2
  12. package/esm2015/lib/components/reports/ndf-reports/containers/ndf-report/ndf-report.component.js +1 -1
  13. package/esm2015/lib/components/reports/ndf-reports/containers/ndf-reports/ndf-reports.component.js +5 -2
  14. package/esm2015/lib/components/reports/ndf-reports/models/base.js +1 -1
  15. package/esm2015/lib/components/reports/ndf-reports/models/details.js +1 -1
  16. package/esm2015/lib/components/reports/ndf-reports/models/ndf-reports.config.js +1 -1
  17. package/esm2015/lib/components/reports/ndf-reports/utilities/reports-table.mapper.js +4 -3
  18. package/esm2015/lib/components/tables/dynamic-table/dynamic-table/dynamic-table.component.js +32 -8
  19. package/esm2015/lib/components/tables/ndf-table/containers/ndf-table/ndf-table.component.js +2 -2
  20. package/esm2015/lib/components/tables/ndf-table/models/table-config.js +1 -1
  21. package/esm2015/lib/shared/evaluator/types.js +1 -1
  22. package/fesm2015/nuxeo-development-framework.js +55 -36
  23. package/fesm2015/nuxeo-development-framework.js.map +1 -1
  24. package/lib/components/ndf-filters/containers/aggregation-field/aggregation-field.component.d.ts +0 -7
  25. package/lib/components/ndf-filters/custom-components/index.d.ts +1 -0
  26. package/lib/components/ndf-filters/ndf-filters-panel.module.d.ts +60 -60
  27. package/lib/components/ndf-filters/services/dynamic-component-loader.service.d.ts +1 -0
  28. package/lib/components/reports/ndf-reports/containers/ndf-reports/ndf-reports.component.d.ts +1 -0
  29. package/lib/components/reports/ndf-reports/models/base.d.ts +6 -4
  30. package/lib/components/reports/ndf-reports/models/details.d.ts +6 -1
  31. package/lib/components/reports/ndf-reports/models/ndf-reports.config.d.ts +3 -0
  32. package/lib/components/tables/dynamic-table/dynamic-table/dynamic-table.component.d.ts +5 -1
  33. package/lib/components/tables/ndf-table/models/table-config.d.ts +5 -0
  34. package/lib/shared/evaluator/types.d.ts +3 -1
  35. package/package.json +1 -1
@@ -2,8 +2,6 @@ import { TemplateRef } from '@angular/core';
2
2
  import { AggregationFieldConfig, AggregationResponse } from '../../models';
3
3
  import { BaseField } from '../base-field';
4
4
  import * as i0 from "@angular/core";
5
- import * as i1 from "@angular/common";
6
- import * as i2 from "@angular/forms";
7
5
  export declare class AggregationFieldComponent extends BaseField<AggregationFieldConfig> {
8
6
  aggregation: AggregationResponse;
9
7
  contentTemplate: TemplateRef<any> | undefined;
@@ -13,8 +11,3 @@ export declare class AggregationFieldComponent extends BaseField<AggregationFiel
13
11
  static ɵfac: i0.ɵɵFactoryDeclaration<AggregationFieldComponent, never>;
14
12
  static ɵcmp: i0.ɵɵComponentDeclaration<AggregationFieldComponent, "app-aggregation-field", never, { "aggregation": "aggregation"; "contentTemplate": "contentTemplate"; }, {}, never, never>;
15
13
  }
16
- export declare class AggregationFieldModule {
17
- static ɵfac: i0.ɵɵFactoryDeclaration<AggregationFieldModule, never>;
18
- static ɵmod: i0.ɵɵNgModuleDeclaration<AggregationFieldModule, [typeof AggregationFieldComponent], [typeof i1.CommonModule, typeof i2.FormsModule, typeof i2.ReactiveFormsModule], [typeof AggregationFieldComponent]>;
19
- static ɵinj: i0.ɵɵInjectorDeclaration<AggregationFieldModule>;
20
- }
@@ -1,2 +1,3 @@
1
1
  export * from './active-user-switch/active-user-switch.component';
2
2
  export * from './aggregation-group/map-aggregation-config';
3
+ export * from './aggregation-group/aggregation-group.component';
@@ -2,65 +2,65 @@ import { DynamicComponentLoaderService } from './services';
2
2
  import * as i0 from "@angular/core";
3
3
  import * as i1 from "./containers/filters-panel/filters-panel.component";
4
4
  import * as i2 from "./containers/predicate-field/predicate-field.component";
5
- import * as i3 from "./containers/custom-field/custom-field.component";
6
- import * as i4 from "./components/aggregation-autocomplete/aggregation-autocomplete.component";
7
- import * as i5 from "./components/aggregation-select/aggregation-select.component";
8
- import * as i6 from "./components/aggregation-checkbox/aggregation-checkbox.component";
9
- import * as i7 from "./components/aggregation-switch/aggregation-switch.component";
10
- import * as i8 from "./components/aggregation-radio/aggregation-radio.component";
11
- import * as i9 from "./components/aggregation-custom/aggregation-custom.component";
12
- import * as i10 from "./components/aggregation-date-list/aggregation-date-list.component";
13
- import * as i11 from "./components/predicate-text-input/predicate-text-input.component";
14
- import * as i12 from "./components/predicate-date-input/predicate-date-input.component";
15
- import * as i13 from "./custom-components/active-user-switch/active-user-switch.component";
16
- import * as i14 from "./custom-components/aggregation-group/aggregation-group.component";
17
- import * as i15 from "./custom-components/aggregation-group/map-aggregation-config";
18
- import * as i16 from "./directives/checkbox-template.directive";
19
- import * as i17 from "./directives/radio-template.directive";
20
- import * as i18 from "./directives/switch-template.directive";
21
- import * as i19 from "./directives/dropdown-template.directive";
22
- import * as i20 from "./directives/autocomplete-template.directive";
23
- import * as i21 from "./directives/custom-template.directive";
24
- import * as i22 from "./directives/dropdown-label-template.directive";
25
- import * as i23 from "./directives/date-template.directive";
26
- import * as i24 from "./pipes/autocomplete-filter.pipe";
27
- import * as i25 from "./pipes/filter.pipe";
28
- import * as i26 from "./pipes/localized-label.pipe";
29
- import * as i27 from "./pipes/hash-translate.pipe";
30
- import * as i28 from "./pipes/sanitizer.pipe";
31
- import * as i29 from "./pipes/sort.pipe";
32
- import * as i30 from "./pipes/tooltip.pipe";
33
- import * as i31 from "./pipes/roles-filters.pipe";
34
- import * as i32 from "./pipes/check-condition.pipe";
35
- import * as i33 from "./components/__parts/filter-option-text/filter-option-text.component";
36
- import * as i34 from "./components/__parts/filter-search-input/filter-search-input.component";
37
- import * as i35 from "./components/__parts/filter-collapse-control/filter-collapse-control.component";
38
- import * as i36 from "./components/__parts/field-header.component";
39
- import * as i37 from "./components/__parts/filter-empty-message.component";
40
- import * as i38 from "./components/__parts/filter-date-range/filter-date-range.component";
41
- import * as i39 from "./components/__parts/filter-autocomplete-input/filter-autocomplete-input.component";
42
- import * as i40 from "./components/__parts/filter-options-sort/filter-options-sort.component";
43
- import * as i41 from "./components/__parts/html-dialog/html-dialog.component";
44
- import * as i42 from "@angular/common";
45
- import * as i43 from "@angular/forms";
46
- import * as i44 from "@ng-select/ng-select";
47
- import * as i45 from "@angular/material/checkbox";
48
- import * as i46 from "@angular/material/button";
49
- import * as i47 from "@angular/material/icon";
50
- import * as i48 from "@angular/material/menu";
51
- import * as i49 from "@angular/material/slide-toggle";
52
- import * as i50 from "@angular/material/radio";
53
- import * as i51 from "@angular/material/input";
54
- import * as i52 from "@angular/material/autocomplete";
55
- import * as i53 from "@angular/material/tooltip";
56
- import * as i54 from "@angular/material/dialog";
57
- import * as i55 from "@angular/material/progress-spinner";
58
- import * as i56 from "@ngx-translate/core";
59
- import * as i57 from "../dynamic-form/dynamic-form.module";
60
- import * as i58 from "../../shared/components/nuxeo-dialog/nuxeo-dialog.module";
61
- import * as i59 from "../../directive/directive.module";
62
- import * as i60 from "../ndf-datepicker/ndf-datepicker.module";
63
- import * as i61 from "./containers/aggregation-field/aggregation-field.component";
5
+ import * as i3 from "./containers/aggregation-field/aggregation-field.component";
6
+ import * as i4 from "./containers/custom-field/custom-field.component";
7
+ import * as i5 from "./components/aggregation-autocomplete/aggregation-autocomplete.component";
8
+ import * as i6 from "./components/aggregation-select/aggregation-select.component";
9
+ import * as i7 from "./components/aggregation-checkbox/aggregation-checkbox.component";
10
+ import * as i8 from "./components/aggregation-switch/aggregation-switch.component";
11
+ import * as i9 from "./components/aggregation-radio/aggregation-radio.component";
12
+ import * as i10 from "./components/aggregation-custom/aggregation-custom.component";
13
+ import * as i11 from "./components/aggregation-date-list/aggregation-date-list.component";
14
+ import * as i12 from "./components/predicate-text-input/predicate-text-input.component";
15
+ import * as i13 from "./components/predicate-date-input/predicate-date-input.component";
16
+ import * as i14 from "./custom-components/active-user-switch/active-user-switch.component";
17
+ import * as i15 from "./custom-components/aggregation-group/aggregation-group.component";
18
+ import * as i16 from "./custom-components/aggregation-group/map-aggregation-config";
19
+ import * as i17 from "./directives/checkbox-template.directive";
20
+ import * as i18 from "./directives/radio-template.directive";
21
+ import * as i19 from "./directives/switch-template.directive";
22
+ import * as i20 from "./directives/dropdown-template.directive";
23
+ import * as i21 from "./directives/autocomplete-template.directive";
24
+ import * as i22 from "./directives/custom-template.directive";
25
+ import * as i23 from "./directives/dropdown-label-template.directive";
26
+ import * as i24 from "./directives/date-template.directive";
27
+ import * as i25 from "./pipes/autocomplete-filter.pipe";
28
+ import * as i26 from "./pipes/filter.pipe";
29
+ import * as i27 from "./pipes/localized-label.pipe";
30
+ import * as i28 from "./pipes/hash-translate.pipe";
31
+ import * as i29 from "./pipes/sanitizer.pipe";
32
+ import * as i30 from "./pipes/sort.pipe";
33
+ import * as i31 from "./pipes/tooltip.pipe";
34
+ import * as i32 from "./pipes/roles-filters.pipe";
35
+ import * as i33 from "./pipes/check-condition.pipe";
36
+ import * as i34 from "./components/__parts/filter-option-text/filter-option-text.component";
37
+ import * as i35 from "./components/__parts/filter-search-input/filter-search-input.component";
38
+ import * as i36 from "./components/__parts/filter-collapse-control/filter-collapse-control.component";
39
+ import * as i37 from "./components/__parts/field-header.component";
40
+ import * as i38 from "./components/__parts/filter-empty-message.component";
41
+ import * as i39 from "./components/__parts/filter-date-range/filter-date-range.component";
42
+ import * as i40 from "./components/__parts/filter-autocomplete-input/filter-autocomplete-input.component";
43
+ import * as i41 from "./components/__parts/filter-options-sort/filter-options-sort.component";
44
+ import * as i42 from "./components/__parts/html-dialog/html-dialog.component";
45
+ import * as i43 from "@angular/common";
46
+ import * as i44 from "@angular/forms";
47
+ import * as i45 from "@ng-select/ng-select";
48
+ import * as i46 from "@angular/material/checkbox";
49
+ import * as i47 from "@angular/material/button";
50
+ import * as i48 from "@angular/material/icon";
51
+ import * as i49 from "@angular/material/menu";
52
+ import * as i50 from "@angular/material/slide-toggle";
53
+ import * as i51 from "@angular/material/radio";
54
+ import * as i52 from "@angular/material/input";
55
+ import * as i53 from "@angular/material/autocomplete";
56
+ import * as i54 from "@angular/material/tooltip";
57
+ import * as i55 from "@angular/material/dialog";
58
+ import * as i56 from "@angular/material/progress-spinner";
59
+ import * as i57 from "@ngx-translate/core";
60
+ import * as i58 from "../dynamic-form/dynamic-form.module";
61
+ import * as i59 from "../../shared/components/nuxeo-dialog/nuxeo-dialog.module";
62
+ import * as i60 from "../../directive/directive.module";
63
+ import * as i61 from "../ndf-datepicker/ndf-datepicker.module";
64
64
  import * as i62 from "ngx-mask";
65
65
  export declare class NdfFiltersPanelModule {
66
66
  loaderService: DynamicComponentLoaderService;
@@ -72,6 +72,6 @@ export declare class NdfFiltersPanelModule {
72
72
  private _registerAggregationsComponents;
73
73
  private _registerPredicateComponents;
74
74
  static ɵfac: i0.ɵɵFactoryDeclaration<NdfFiltersPanelModule, never>;
75
- static ɵmod: i0.ɵɵNgModuleDeclaration<NdfFiltersPanelModule, [typeof i1.FiltersPanelComponent, typeof i2.PredicateFieldComponent, typeof i3.CustomFieldComponent, typeof i4.AggregationAutocompleteComponent, typeof i5.AggregationSelectComponent, typeof i6.AggregationCheckboxComponent, typeof i7.AggregationSwitchComponent, typeof i8.AggregationRadioComponent, typeof i9.AggregationCustomComponent, typeof i10.AggregationDateListComponent, typeof i11.PredicateTextInputComponent, typeof i12.PredicateDateInputComponent, typeof i13.ActiveUserSwitchComponent, typeof i14.AggregationGroupComponent, typeof i15.MapToAggregationConfigPipe, typeof i16.CheckboxTemplateDirective, typeof i17.RadioTemplateDirective, typeof i18.SwitchTemplateDirective, typeof i19.DropdownTemplateDirective, typeof i20.AutocompleteTemplateDirective, typeof i21.CustomTemplateDirective, typeof i22.DropdownLabelTemplateDirective, typeof i22.DropdownMultiLabelTemplateDirective, typeof i23.DateListTemplateDirective, typeof i24.AutocompleteFilterPipe, typeof i25.FilterPipe, typeof i26.LocalizedLabelPipe, typeof i27.HashTranslatePipe, typeof i27.HashTranslateAsyncPipe, typeof i28.SanitizerPipe, typeof i29.SortListPipe, typeof i30.TooltipPipe, typeof i31.FiltersByRolesPipe, typeof i32.CheckConditionPipe, typeof i33.FilterOptionTextComponent, typeof i34.FilterSearchInputComponent, typeof i35.FilterCollapseControlComponent, typeof i36.FieldHeaderComponent, typeof i37.FilterEmptyMessageComponent, typeof i38.FilterDateRangeComponent, typeof i39.FilterAutocompleteInputComponent, typeof i40.FilterOptionsSortComponent, typeof i41.HtmlDialogComponent], [typeof i42.CommonModule, typeof i43.FormsModule, typeof i43.ReactiveFormsModule, typeof i44.NgSelectModule, typeof i45.MatCheckboxModule, typeof i46.MatButtonModule, typeof i47.MatIconModule, typeof i48.MatMenuModule, typeof i49.MatSlideToggleModule, typeof i50.MatRadioModule, typeof i51.MatInputModule, typeof i52.MatAutocompleteModule, typeof i53.MatTooltipModule, typeof i54.MatDialogModule, typeof i55.MatProgressSpinnerModule, typeof i56.TranslateModule, typeof i57.DynamicFormModule, typeof i58.NuxeoDialogModule, typeof i59.DirectiveModule, typeof i60.NdfDatepickerModule, typeof i61.AggregationFieldModule, typeof i62.NgxMaskModule], [typeof i1.FiltersPanelComponent, typeof i2.PredicateFieldComponent, typeof i3.CustomFieldComponent, typeof i4.AggregationAutocompleteComponent, typeof i5.AggregationSelectComponent, typeof i6.AggregationCheckboxComponent, typeof i7.AggregationSwitchComponent, typeof i8.AggregationRadioComponent, typeof i9.AggregationCustomComponent, typeof i10.AggregationDateListComponent, typeof i11.PredicateTextInputComponent, typeof i12.PredicateDateInputComponent, typeof i13.ActiveUserSwitchComponent, typeof i14.AggregationGroupComponent, typeof i15.MapToAggregationConfigPipe, typeof i16.CheckboxTemplateDirective, typeof i17.RadioTemplateDirective, typeof i18.SwitchTemplateDirective, typeof i19.DropdownTemplateDirective, typeof i20.AutocompleteTemplateDirective, typeof i21.CustomTemplateDirective, typeof i22.DropdownLabelTemplateDirective, typeof i22.DropdownMultiLabelTemplateDirective, typeof i23.DateListTemplateDirective, typeof i41.HtmlDialogComponent]>;
75
+ static ɵmod: i0.ɵɵNgModuleDeclaration<NdfFiltersPanelModule, [typeof i1.FiltersPanelComponent, typeof i2.PredicateFieldComponent, typeof i3.AggregationFieldComponent, typeof i4.CustomFieldComponent, typeof i5.AggregationAutocompleteComponent, typeof i6.AggregationSelectComponent, typeof i7.AggregationCheckboxComponent, typeof i8.AggregationSwitchComponent, typeof i9.AggregationRadioComponent, typeof i10.AggregationCustomComponent, typeof i11.AggregationDateListComponent, typeof i12.PredicateTextInputComponent, typeof i13.PredicateDateInputComponent, typeof i14.ActiveUserSwitchComponent, typeof i15.AggregationGroupComponent, typeof i16.MapToAggregationConfigPipe, typeof i17.CheckboxTemplateDirective, typeof i18.RadioTemplateDirective, typeof i19.SwitchTemplateDirective, typeof i20.DropdownTemplateDirective, typeof i21.AutocompleteTemplateDirective, typeof i22.CustomTemplateDirective, typeof i23.DropdownLabelTemplateDirective, typeof i23.DropdownMultiLabelTemplateDirective, typeof i24.DateListTemplateDirective, typeof i25.AutocompleteFilterPipe, typeof i26.FilterPipe, typeof i27.LocalizedLabelPipe, typeof i28.HashTranslatePipe, typeof i28.HashTranslateAsyncPipe, typeof i29.SanitizerPipe, typeof i30.SortListPipe, typeof i31.TooltipPipe, typeof i32.FiltersByRolesPipe, typeof i33.CheckConditionPipe, typeof i34.FilterOptionTextComponent, typeof i35.FilterSearchInputComponent, typeof i36.FilterCollapseControlComponent, typeof i37.FieldHeaderComponent, typeof i38.FilterEmptyMessageComponent, typeof i39.FilterDateRangeComponent, typeof i40.FilterAutocompleteInputComponent, typeof i41.FilterOptionsSortComponent, typeof i42.HtmlDialogComponent], [typeof i43.CommonModule, typeof i44.FormsModule, typeof i44.ReactiveFormsModule, typeof i45.NgSelectModule, typeof i46.MatCheckboxModule, typeof i47.MatButtonModule, typeof i48.MatIconModule, typeof i49.MatMenuModule, typeof i50.MatSlideToggleModule, typeof i51.MatRadioModule, typeof i52.MatInputModule, typeof i53.MatAutocompleteModule, typeof i54.MatTooltipModule, typeof i55.MatDialogModule, typeof i56.MatProgressSpinnerModule, typeof i57.TranslateModule, typeof i58.DynamicFormModule, typeof i59.NuxeoDialogModule, typeof i60.DirectiveModule, typeof i61.NdfDatepickerModule, typeof i62.NgxMaskModule], [typeof i1.FiltersPanelComponent, typeof i2.PredicateFieldComponent, typeof i3.AggregationFieldComponent, typeof i4.CustomFieldComponent, typeof i5.AggregationAutocompleteComponent, typeof i6.AggregationSelectComponent, typeof i7.AggregationCheckboxComponent, typeof i8.AggregationSwitchComponent, typeof i9.AggregationRadioComponent, typeof i10.AggregationCustomComponent, typeof i11.AggregationDateListComponent, typeof i12.PredicateTextInputComponent, typeof i13.PredicateDateInputComponent, typeof i14.ActiveUserSwitchComponent, typeof i15.AggregationGroupComponent, typeof i16.MapToAggregationConfigPipe, typeof i17.CheckboxTemplateDirective, typeof i18.RadioTemplateDirective, typeof i19.SwitchTemplateDirective, typeof i20.DropdownTemplateDirective, typeof i21.AutocompleteTemplateDirective, typeof i22.CustomTemplateDirective, typeof i23.DropdownLabelTemplateDirective, typeof i23.DropdownMultiLabelTemplateDirective, typeof i24.DateListTemplateDirective, typeof i42.HtmlDialogComponent]>;
76
76
  static ɵinj: i0.ɵɵInjectorDeclaration<NdfFiltersPanelModule>;
77
77
  }
@@ -7,6 +7,7 @@ export declare class DynamicComponentLoaderService {
7
7
  private readonly _components;
8
8
  constructor(_factoryResolver: ComponentFactoryResolver);
9
9
  registerComponent<T>(key: ComponentType, component: Type<T>): void;
10
+ registerComponents<T>(components: Record<ComponentType | string, Type<any>>): void;
10
11
  renderComponent(key: ComponentType, vcr: ViewContainerRef): import("@angular/core").ComponentRef<any>;
11
12
  loadComponent<T>(componentAngularType: Type<T>, vcr: ViewContainerRef): import("@angular/core").ComponentRef<T>;
12
13
  static ɵfac: i0.ɵɵFactoryDeclaration<DynamicComponentLoaderService, never>;
@@ -82,6 +82,7 @@ export declare class NdfReportsComponent extends DestroySubject implements OnIni
82
82
  data: Record<string, any>;
83
83
  }): void;
84
84
  togglePanel(): void;
85
+ printAll(): void;
85
86
  filterChanged(criteria: Record<any, any>): void;
86
87
  onContentScroll(isScrolling: boolean): void;
87
88
  openReportDetails(_: CriteriaModel, rConfig: ReportConfigModel): void;
@@ -1,8 +1,8 @@
1
1
  import { REPORT_MODE } from '../constants';
2
2
  import { ReportDetailsConfig } from './details';
3
3
  export declare type ReportMode = (typeof REPORT_MODE)[keyof typeof REPORT_MODE];
4
- export declare type GridWidth = 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12;
5
- export declare type BaseReportConfig = {
4
+ export declare type GridWidth = 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 'auto';
5
+ export interface BaseReportConfig {
6
6
  id: string | number;
7
7
  label: string;
8
8
  mode: ReportMode;
@@ -14,7 +14,9 @@ export declare type BaseReportConfig = {
14
14
  details?: ReportDetailsConfig;
15
15
  layout?: {
16
16
  width?: GridWidth;
17
- startColumn?: 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11;
17
+ columnPosition?: GridWidth;
18
+ height?: number | 'auto';
19
+ rowPosition?: number | 'auto';
18
20
  styleClass?: string;
19
21
  };
20
- };
22
+ }
@@ -1,7 +1,12 @@
1
1
  import { TableColumnConfig, TableExportConfig, TableSortConfig, TableSortOptions } from '../../../tables/ndf-table';
2
2
  import { NdfReportsRequest } from './request';
3
+ import { EvaluatedString } from '../../../../shared';
3
4
  export declare type ReportDetailsConfig = {
4
- request?: Partial<NdfReportsRequest>;
5
+ request?: Partial<NdfReportsRequest> & {
6
+ actions?: {
7
+ beforeSubmit?: EvaluatedString<'payload'>;
8
+ };
9
+ };
5
10
  enabled: boolean;
6
11
  columns?: TableColumnConfig[];
7
12
  fields?: Record<string, string>;
@@ -14,6 +14,9 @@ declare type NdfReportsFilters = {
14
14
  export declare type NdfReportsConfig = {
15
15
  request: NdfReportsRequest;
16
16
  filters?: NdfReportsFilters;
17
+ options?: {
18
+ print?: boolean;
19
+ };
17
20
  reports: {
18
21
  details?: ReportDetailsConfig;
19
22
  items: ReportDefinitionModel[];
@@ -4,6 +4,7 @@ import { AdapterService } from '../../../../core/adapters/adapter.service';
4
4
  import { CallApiService } from '../../../../core/services/callApi/call-api.service';
5
5
  import { DynamicTableService } from '../services/dynamic-table.service';
6
6
  import { PageEvent } from '@angular/material/paginator/paginator';
7
+ import { EvaluatedString } from '../../../../shared';
7
8
  import * as i0 from "@angular/core";
8
9
  /**
9
10
  * this component is an additional layer that uses [Table Component]{@link TableComponent} internally,
@@ -120,6 +121,9 @@ export declare class DynamicTableComponent implements OnInit, OnDestroy {
120
121
  method: 'POST' | 'GET';
121
122
  };
122
123
  format: string;
124
+ requestActions?: {
125
+ beforeSubmit?: EvaluatedString<'payload'>;
126
+ };
123
127
  rows: any[];
124
128
  totalRecords: number;
125
129
  myDataSubscription: Subscription;
@@ -144,5 +148,5 @@ export declare class DynamicTableComponent implements OnInit, OnDestroy {
144
148
  paginationChange(event: any): void;
145
149
  onChangePageSize(pageSize: number): void;
146
150
  static ɵfac: i0.ɵɵFactoryDeclaration<DynamicTableComponent, never>;
147
- static ɵcmp: i0.ɵɵComponentDeclaration<DynamicTableComponent, "cts-dynamic-table", never, { "columns": "columns"; "responsiveColumns": "responsiveColumns"; "entityType": "entityType"; "prefix": "prefix"; "headers": "headers"; "fields": "fields"; "pageProvider": "pageProvider"; "pageSize": "pageSize"; "isLegacyMode": "isLegacyMode"; "showTotalRecord": "showTotalRecord"; "pageNumber": "pageNumber"; "sortingBy": "sortingBy"; "queryParam": "queryParam"; "customFilters": "customFilters"; "quickFilter": "quickFilter"; "report": "report"; "rowCursor": "rowCursor"; "fullWidth": "fullWidth"; "tableMode": "tableMode"; "componentName": "componentName"; "tableActions": "tableActions"; "defultSort": "defultSort"; "range": "range"; "isSearchPage": "isSearchPage"; "multiSelectRows": "multiSelectRows"; "customFirstRow": "customFirstRow"; "highlightSelectedCard": "highlightSelectedCard"; "showActionsAsMenu": "showActionsAsMenu"; "filterParams": "filterParams"; "skipAggregation": "skipAggregation"; "customUrl": "customUrl"; "format": "format"; "pageSizes": "pageSizes"; }, { "onRowSelected": "onRowSelected"; "onRowIndexSelected": "onRowIndexSelected"; "actionOnRow": "actionOnRow"; "onGettingData": "onGettingData"; "onMultiRowSelected": "onMultiRowSelected"; "onLoading": "onLoading"; "sortChanged": "sortChanged"; "onPageChange": "onPageChange"; "onPage": "onPage"; "onLoad": "onLoad"; "onInitialize": "onInitialize"; }, ["emptyTemplate"], never>;
151
+ static ɵcmp: i0.ɵɵComponentDeclaration<DynamicTableComponent, "cts-dynamic-table", never, { "columns": "columns"; "responsiveColumns": "responsiveColumns"; "entityType": "entityType"; "prefix": "prefix"; "headers": "headers"; "fields": "fields"; "pageProvider": "pageProvider"; "pageSize": "pageSize"; "isLegacyMode": "isLegacyMode"; "showTotalRecord": "showTotalRecord"; "pageNumber": "pageNumber"; "sortingBy": "sortingBy"; "queryParam": "queryParam"; "customFilters": "customFilters"; "quickFilter": "quickFilter"; "report": "report"; "rowCursor": "rowCursor"; "fullWidth": "fullWidth"; "tableMode": "tableMode"; "componentName": "componentName"; "tableActions": "tableActions"; "defultSort": "defultSort"; "range": "range"; "isSearchPage": "isSearchPage"; "multiSelectRows": "multiSelectRows"; "customFirstRow": "customFirstRow"; "highlightSelectedCard": "highlightSelectedCard"; "showActionsAsMenu": "showActionsAsMenu"; "filterParams": "filterParams"; "skipAggregation": "skipAggregation"; "customUrl": "customUrl"; "format": "format"; "requestActions": "requestActions"; "pageSizes": "pageSizes"; }, { "onRowSelected": "onRowSelected"; "onRowIndexSelected": "onRowIndexSelected"; "actionOnRow": "actionOnRow"; "onGettingData": "onGettingData"; "onMultiRowSelected": "onMultiRowSelected"; "onLoading": "onLoading"; "sortChanged": "sortChanged"; "onPageChange": "onPageChange"; "onPage": "onPage"; "onLoad": "onLoad"; "onInitialize": "onInitialize"; }, ["emptyTemplate"], never>;
148
152
  }
@@ -1,6 +1,7 @@
1
1
  import { TableColumnAction, TableColumnConfig } from './table-column';
2
2
  import { NdfTableOptions } from './table-options';
3
3
  import { TableDefaultSortModel, TablePaginationOptions, TableSortingArray, TableSortOptions, TableTab } from './types';
4
+ import { EvaluatedString } from '../../../../shared';
4
5
  /**
5
6
  * Configuration type for the NDF Table component.
6
7
  * Extends `TablePaginationOptions` and provides additional properties
@@ -27,6 +28,10 @@ export declare type NdfTableConfig = TablePaginationOptions & {
27
28
  payload?: Record<string, any>;
28
29
  predicateKey?: string;
29
30
  };
31
+ requestActions?: {
32
+ /** Action to be executed before submitting the request. */
33
+ beforeSubmit?: EvaluatedString<'payload'>;
34
+ };
30
35
  /** Quick filter identifier for the table. */
31
36
  quickFilters?: string;
32
37
  /** Configuration for table columns. */
@@ -13,4 +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}=${string | number}${string}`;
16
+ export declare type EvaluatedString<VAR extends string = string> = `${string}${VAR}${Whitespace}=${Whitespace}${string}`;
17
+ declare type Whitespace = '' | ' ' | `${any}`;
18
+ export {};
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "nuxeo-development-framework",
3
- "version": "5.4.5",
3
+ "version": "5.4.6",
4
4
  "peerDependencies": {
5
5
  "@angular/animations": "12.2.3",
6
6
  "@angular/common": "12.2.3",