nuxeo-development-framework 5.4.3 → 5.4.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.
- package/bundles/nuxeo-development-framework.umd.js +731 -427
- package/bundles/nuxeo-development-framework.umd.js.map +1 -1
- package/esm2015/lib/components/ndf-filters/base/base-checkbox-radio.component.js +18 -7
- package/esm2015/lib/components/ndf-filters/components/predicate-text-input/predicate-text-input.component.js +2 -2
- package/esm2015/lib/components/ndf-filters/constants/type.js +3 -2
- package/esm2015/lib/components/ndf-filters/containers/aggregation-field/aggregation-field.component.js +29 -14
- package/esm2015/lib/components/ndf-filters/containers/base-field.js +1 -1
- package/esm2015/lib/components/ndf-filters/containers/custom-field/custom-field.component.js +3 -2
- package/esm2015/lib/components/ndf-filters/containers/filters-panel/filters-panel.component.js +5 -3
- package/esm2015/lib/components/ndf-filters/custom-components/aggregation-group/aggregation-group.component.js +87 -0
- package/esm2015/lib/components/ndf-filters/custom-components/aggregation-group/map-aggregation-config.js +20 -0
- package/esm2015/lib/components/ndf-filters/custom-components/index.js +2 -1
- package/esm2015/lib/components/ndf-filters/models/custom-field-config.js +1 -1
- package/esm2015/lib/components/ndf-filters/models/field-options/custom-fields-options.js +1 -1
- package/esm2015/lib/components/ndf-filters/ndf-filters-panel.module.js +98 -28
- package/esm2015/lib/components/ndf-filters/public-api.js +4 -3
- package/esm2015/lib/components/ndf-filters/services/dynamic-component-loader.service.js +2 -33
- package/esm2015/lib/components/ndf-filters/utility/nxql-query.js +4 -4
- package/esm2015/lib/components/reports/ndf-reports/base/base-chart.js +10 -2
- package/esm2015/lib/components/reports/ndf-reports/charts-components/digit-chart/digit-chart.component.js +2 -2
- package/esm2015/lib/components/reports/ndf-reports/charts-components/graph-chart/graph-chart.component.js +2 -2
- package/esm2015/lib/components/reports/ndf-reports/components/_parts/timeline-dialog/timeline-dialog.component.js +12 -4
- package/esm2015/lib/components/reports/ndf-reports/components/dynamic-timeline-report/dynamic-timeline-report.component.js +8 -8
- package/esm2015/lib/components/reports/ndf-reports/containers/ndf-reports/ndf-reports.component.js +24 -3
- package/esm2015/lib/components/reports/ndf-reports/models/base.js +1 -1
- package/esm2015/lib/components/reports/ndf-reports/models/dynamic-line.js +1 -1
- package/esm2015/lib/components/reports/ndf-reports/models/ndf-reports.config.js +1 -1
- package/esm2015/lib/components/reports/ndf-reports/models/request.js +1 -1
- package/esm2015/lib/components/reports/ndf-reports/services/base-chart-builder.service.js +5 -5
- package/esm2015/lib/components/reports/ndf-reports/services/chart-data-transformers.service.js +1 -1
- package/esm2015/lib/components/reports/ndf-reports/services/digit-chart.service.js +3 -3
- package/esm2015/lib/components/reports/ndf-reports/services/dynamic-timeline-report.service.js +34 -29
- package/esm2015/lib/components/reports/ndf-reports/services/index.js +2 -1
- package/esm2015/lib/components/reports/ndf-reports/services/ndf-reports.service.js +12 -5
- package/esm2015/lib/components/reports/ndf-reports/services/reports-data-transformers.service.js +70 -0
- package/esm2015/lib/components/reports/ndf-reports/utilities/reports-table.mapper.js +3 -3
- package/esm2015/lib/components/skeleton/skeleton.component.js +1 -1
- package/esm2015/lib/shared/evaluator/types.js +1 -1
- package/fesm2015/nuxeo-development-framework.js +650 -379
- package/fesm2015/nuxeo-development-framework.js.map +1 -1
- package/lib/components/ndf-filters/base/base-checkbox-radio.component.d.ts +1 -0
- package/lib/components/ndf-filters/constants/type.d.ts +1 -0
- package/lib/components/ndf-filters/containers/aggregation-field/aggregation-field.component.d.ts +7 -0
- package/lib/components/ndf-filters/custom-components/aggregation-group/aggregation-group.component.d.ts +26 -0
- package/lib/components/ndf-filters/custom-components/aggregation-group/map-aggregation-config.d.ts +9 -0
- package/lib/components/ndf-filters/custom-components/index.d.ts +1 -0
- package/lib/components/ndf-filters/models/custom-field-config.d.ts +2 -2
- package/lib/components/ndf-filters/models/field-options/custom-fields-options.d.ts +14 -0
- package/lib/components/ndf-filters/ndf-filters-panel.module.d.ts +70 -59
- package/lib/components/ndf-filters/public-api.d.ts +3 -2
- package/lib/components/ndf-filters/services/dynamic-component-loader.service.d.ts +0 -3
- package/lib/components/reports/ndf-reports/base/base-chart.d.ts +5 -2
- package/lib/components/reports/ndf-reports/components/_parts/timeline-dialog/timeline-dialog.component.d.ts +2 -0
- package/lib/components/reports/ndf-reports/components/dynamic-timeline-report/dynamic-timeline-report.component.d.ts +4 -2
- package/lib/components/reports/ndf-reports/containers/ndf-reports/ndf-reports.component.d.ts +7 -2
- package/lib/components/reports/ndf-reports/models/base.d.ts +3 -1
- package/lib/components/reports/ndf-reports/models/dynamic-line.d.ts +6 -1
- package/lib/components/reports/ndf-reports/models/ndf-reports.config.d.ts +1 -0
- package/lib/components/reports/ndf-reports/models/request.d.ts +1 -0
- package/lib/components/reports/ndf-reports/services/base-chart-builder.service.d.ts +3 -3
- package/lib/components/reports/ndf-reports/services/chart-data-transformers.service.d.ts +9 -2
- package/lib/components/reports/ndf-reports/services/digit-chart.service.d.ts +2 -2
- package/lib/components/reports/ndf-reports/services/dynamic-timeline-report.service.d.ts +10 -15
- package/lib/components/reports/ndf-reports/services/index.d.ts +1 -0
- package/lib/components/reports/ndf-reports/services/ndf-reports.service.d.ts +5 -1
- package/lib/components/reports/ndf-reports/services/reports-data-transformers.service.d.ts +48 -0
- package/lib/shared/evaluator/types.d.ts +1 -1
- package/package.json +1 -1
- package/src/docs/ndf-table.doc.md +4 -5
|
@@ -17,6 +17,7 @@ export declare abstract class AggregationBaseSelectionComponent<OptType extends
|
|
|
17
17
|
updateValue(): void;
|
|
18
18
|
emitValue(value: string[]): void;
|
|
19
19
|
sortChange(event: SortModel): void;
|
|
20
|
+
private _getValues;
|
|
20
21
|
static ɵfac: i0.ɵɵFactoryDeclaration<AggregationBaseSelectionComponent<any>, never>;
|
|
21
22
|
static ɵdir: i0.ɵɵDirectiveDeclaration<AggregationBaseSelectionComponent<any>, never, never, {}, {}, never>;
|
|
22
23
|
}
|
package/lib/components/ndf-filters/containers/aggregation-field/aggregation-field.component.d.ts
CHANGED
|
@@ -2,6 +2,8 @@ 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";
|
|
5
7
|
export declare class AggregationFieldComponent extends BaseField<AggregationFieldConfig> {
|
|
6
8
|
aggregation: AggregationResponse;
|
|
7
9
|
contentTemplate: TemplateRef<any> | undefined;
|
|
@@ -11,3 +13,8 @@ export declare class AggregationFieldComponent extends BaseField<AggregationFiel
|
|
|
11
13
|
static ɵfac: i0.ɵɵFactoryDeclaration<AggregationFieldComponent, never>;
|
|
12
14
|
static ɵcmp: i0.ɵɵComponentDeclaration<AggregationFieldComponent, "app-aggregation-field", never, { "aggregation": "aggregation"; "contentTemplate": "contentTemplate"; }, {}, never, never>;
|
|
13
15
|
}
|
|
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
|
+
}
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
import { OnInit } from '@angular/core';
|
|
2
|
+
import { BaseCustomField } from '../../base/base-custom-field.component';
|
|
3
|
+
import { FormArray, FormGroup } from '@angular/forms';
|
|
4
|
+
import { AggregationGroupItem, AggregationGroupOptions } from '../../models/field-options/custom-fields-options';
|
|
5
|
+
import { FieldValueObject } from '../../models';
|
|
6
|
+
import * as i0 from "@angular/core";
|
|
7
|
+
export declare class AggregationGroupComponent extends BaseCustomField<'aggregationGroup', string[]> implements OnInit {
|
|
8
|
+
formItems: FormArray;
|
|
9
|
+
formGroup: FormGroup;
|
|
10
|
+
internalValue: string[];
|
|
11
|
+
get options(): AggregationGroupOptions['options'];
|
|
12
|
+
trackByFieldKey(_: number, field: AggregationGroupItem): string;
|
|
13
|
+
writeValue(value: string[] | FieldValueObject): void;
|
|
14
|
+
ngOnInit(): void;
|
|
15
|
+
private _listenToChanges;
|
|
16
|
+
private _prepareFormFields;
|
|
17
|
+
private emitValue;
|
|
18
|
+
private _getValues;
|
|
19
|
+
protected readonly fieldTypes: {
|
|
20
|
+
readonly aggregation: "aggregation";
|
|
21
|
+
readonly predicate: "predicate";
|
|
22
|
+
readonly custom: "custom";
|
|
23
|
+
};
|
|
24
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<AggregationGroupComponent, never>;
|
|
25
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<AggregationGroupComponent, "app-aggregation-group", never, {}, {}, never, never>;
|
|
26
|
+
}
|
package/lib/components/ndf-filters/custom-components/aggregation-group/map-aggregation-config.d.ts
ADDED
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { PipeTransform } from '@angular/core';
|
|
2
|
+
import { AggregationFieldConfig } from '../../models';
|
|
3
|
+
import { AggregationGroupItem } from '../../models/field-options/custom-fields-options';
|
|
4
|
+
import * as i0 from "@angular/core";
|
|
5
|
+
export declare class MapToAggregationConfigPipe implements PipeTransform {
|
|
6
|
+
transform(config: AggregationGroupItem): AggregationFieldConfig;
|
|
7
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<MapToAggregationConfigPipe, never>;
|
|
8
|
+
static ɵpipe: i0.ɵɵPipeDeclaration<MapToAggregationConfigPipe, "mapToAggregationConfig">;
|
|
9
|
+
}
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { FieldSendModeType } from './types-helper';
|
|
2
2
|
import { BaseFieldConfig } from './base-field-config';
|
|
3
|
-
import { ActiveUserSwitcherOptions } from './field-options/custom-fields-options';
|
|
3
|
+
import { ActiveUserSwitcherOptions, AggregationGroupOptions } from './field-options/custom-fields-options';
|
|
4
4
|
import { Prettify } from '../../../shared/models';
|
|
5
5
|
export declare type CustomFieldConfig = Prettify<BaseFieldConfig & {
|
|
6
6
|
sendMode: Exclude<FieldSendModeType, 'custom'>;
|
|
7
|
-
render: ActiveUserSwitcherOptions;
|
|
7
|
+
render: ActiveUserSwitcherOptions | AggregationGroupOptions;
|
|
8
8
|
}>;
|
|
@@ -1,5 +1,10 @@
|
|
|
1
1
|
import { Prettify } from '../../../../shared/models';
|
|
2
2
|
import { HideLabel } from './common-utils';
|
|
3
|
+
import { AggregationFieldConfig } from '../aggregation-field-config';
|
|
4
|
+
import { CheckboxOptions } from './checkbox-options';
|
|
5
|
+
import { SwitchOptions } from './switch-options';
|
|
6
|
+
import { RadioOptions } from './radio-options';
|
|
7
|
+
import { DropdownOptions } from './dropdown-options';
|
|
3
8
|
export declare type ActiveUserSwitcherOptions = {
|
|
4
9
|
type: 'activeUser';
|
|
5
10
|
options?: Prettify<HideLabel & {
|
|
@@ -7,3 +12,12 @@ export declare type ActiveUserSwitcherOptions = {
|
|
|
7
12
|
text?: string;
|
|
8
13
|
}>;
|
|
9
14
|
};
|
|
15
|
+
export interface AggregationGroupItem extends Omit<AggregationFieldConfig, 'render' | 'valueType' | 'sendMode'> {
|
|
16
|
+
render: CheckboxOptions | SwitchOptions | RadioOptions | DropdownOptions;
|
|
17
|
+
}
|
|
18
|
+
export declare type AggregationGroupOptions = {
|
|
19
|
+
type: 'aggregationGroup';
|
|
20
|
+
options?: {
|
|
21
|
+
aggregations: AggregationGroupItem[];
|
|
22
|
+
};
|
|
23
|
+
};
|
|
@@ -1,66 +1,77 @@
|
|
|
1
|
+
import { DynamicComponentLoaderService } from './services';
|
|
1
2
|
import * as i0 from "@angular/core";
|
|
2
3
|
import * as i1 from "./containers/filters-panel/filters-panel.component";
|
|
3
4
|
import * as i2 from "./containers/predicate-field/predicate-field.component";
|
|
4
|
-
import * as i3 from "./containers/
|
|
5
|
-
import * as i4 from "./
|
|
6
|
-
import * as i5 from "./components/aggregation-
|
|
7
|
-
import * as i6 from "./components/aggregation-
|
|
8
|
-
import * as i7 from "./components/aggregation-
|
|
9
|
-
import * as i8 from "./components/aggregation-
|
|
10
|
-
import * as i9 from "./components/aggregation-
|
|
11
|
-
import * as i10 from "./components/aggregation-
|
|
12
|
-
import * as i11 from "./components/
|
|
13
|
-
import * as i12 from "./components/predicate-
|
|
14
|
-
import * as i13 from "./components/
|
|
15
|
-
import * as i14 from "./custom-components/
|
|
16
|
-
import * as i15 from "./
|
|
17
|
-
import * as i16 from "./directives/
|
|
18
|
-
import * as i17 from "./directives/
|
|
19
|
-
import * as i18 from "./directives/
|
|
20
|
-
import * as i19 from "./directives/
|
|
21
|
-
import * as i20 from "./directives/
|
|
22
|
-
import * as i21 from "./directives/
|
|
23
|
-
import * as i22 from "./directives/
|
|
24
|
-
import * as i23 from "./
|
|
25
|
-
import * as i24 from "./pipes/filter.pipe";
|
|
26
|
-
import * as i25 from "./pipes/
|
|
27
|
-
import * as i26 from "./pipes/
|
|
28
|
-
import * as i27 from "./pipes/
|
|
29
|
-
import * as i28 from "./pipes/
|
|
30
|
-
import * as i29 from "./pipes/
|
|
31
|
-
import * as i30 from "./pipes/
|
|
32
|
-
import * as i31 from "./pipes/
|
|
33
|
-
import * as i32 from "./
|
|
34
|
-
import * as i33 from "./components/__parts/filter-
|
|
35
|
-
import * as i34 from "./components/__parts/filter-
|
|
36
|
-
import * as i35 from "./components/__parts/
|
|
37
|
-
import * as i36 from "./components/__parts/
|
|
38
|
-
import * as i37 from "./components/__parts/filter-
|
|
39
|
-
import * as i38 from "./components/__parts/filter-
|
|
40
|
-
import * as i39 from "./components/__parts/filter-
|
|
41
|
-
import * as i40 from "./components/__parts/
|
|
42
|
-
import * as i41 from "
|
|
43
|
-
import * as i42 from "@angular/
|
|
44
|
-
import * as i43 from "@
|
|
45
|
-
import * as i44 from "@
|
|
46
|
-
import * as i45 from "@angular/material/
|
|
47
|
-
import * as i46 from "@angular/material/
|
|
48
|
-
import * as i47 from "@angular/material/
|
|
49
|
-
import * as i48 from "@angular/material/
|
|
50
|
-
import * as i49 from "@angular/material/
|
|
51
|
-
import * as i50 from "@angular/material/
|
|
52
|
-
import * as i51 from "@angular/material/
|
|
53
|
-
import * as i52 from "@angular/material/
|
|
54
|
-
import * as i53 from "@angular/material/
|
|
55
|
-
import * as i54 from "@angular/material/
|
|
56
|
-
import * as i55 from "@
|
|
57
|
-
import * as i56 from "
|
|
58
|
-
import * as i57 from "
|
|
59
|
-
import * as i58 from "../../
|
|
60
|
-
import * as i59 from "
|
|
61
|
-
import * as i60 from "
|
|
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";
|
|
64
|
+
import * as i62 from "ngx-mask";
|
|
62
65
|
export declare class NdfFiltersPanelModule {
|
|
66
|
+
loaderService: DynamicComponentLoaderService;
|
|
67
|
+
/**
|
|
68
|
+
*
|
|
69
|
+
*/
|
|
70
|
+
constructor(loaderService: DynamicComponentLoaderService);
|
|
71
|
+
private _registerCustomComponent;
|
|
72
|
+
private _registerAggregationsComponents;
|
|
73
|
+
private _registerPredicateComponents;
|
|
63
74
|
static ɵfac: i0.ɵɵFactoryDeclaration<NdfFiltersPanelModule, never>;
|
|
64
|
-
static ɵmod: i0.ɵɵNgModuleDeclaration<NdfFiltersPanelModule, [typeof i1.FiltersPanelComponent, typeof i2.PredicateFieldComponent, typeof i3.
|
|
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]>;
|
|
65
76
|
static ɵinj: i0.ɵɵInjectorDeclaration<NdfFiltersPanelModule>;
|
|
66
77
|
}
|
|
@@ -2,10 +2,11 @@ export * from './components';
|
|
|
2
2
|
export * from './constants';
|
|
3
3
|
export * from './containers';
|
|
4
4
|
export * from './custom-components';
|
|
5
|
+
export * from './custom-components/aggregation-group/aggregation-group.component';
|
|
5
6
|
export * from './directives';
|
|
6
|
-
export * from './ndf-filters-panel.module';
|
|
7
7
|
export * from './models';
|
|
8
|
+
export * from './ndf-filters-panel.module';
|
|
8
9
|
export * from './pipes';
|
|
9
|
-
export * from './services/filters-query.service';
|
|
10
10
|
export * from './services/filters-mapper.service';
|
|
11
|
+
export * from './services/filters-query.service';
|
|
11
12
|
export * from './utility';
|
|
@@ -9,9 +9,6 @@ export declare class DynamicComponentLoaderService {
|
|
|
9
9
|
registerComponent<T>(key: ComponentType, component: Type<T>): void;
|
|
10
10
|
renderComponent(key: ComponentType, vcr: ViewContainerRef): import("@angular/core").ComponentRef<any>;
|
|
11
11
|
loadComponent<T>(componentAngularType: Type<T>, vcr: ViewContainerRef): import("@angular/core").ComponentRef<T>;
|
|
12
|
-
private _registerCustomComponent;
|
|
13
|
-
private _registerAggregationsComponents;
|
|
14
|
-
private _registerPredicateComponents;
|
|
15
12
|
static ɵfac: i0.ɵɵFactoryDeclaration<DynamicComponentLoaderService, never>;
|
|
16
13
|
static ɵprov: i0.ɵɵInjectableDeclaration<DynamicComponentLoaderService>;
|
|
17
14
|
}
|
|
@@ -3,7 +3,7 @@ import { DestroySubject } from '../../../../shared/components';
|
|
|
3
3
|
import { BehaviorSubject, Observable, ReplaySubject } from 'rxjs';
|
|
4
4
|
import Chart from 'chart.js/auto';
|
|
5
5
|
import { TranslateService } from '@ngx-translate/core';
|
|
6
|
-
import { ReportResponseModel } from '../models';
|
|
6
|
+
import { CriteriaModel, ReportResponseModel } from '../models';
|
|
7
7
|
import * as i0 from "@angular/core";
|
|
8
8
|
export declare abstract class BaseChart<T> extends DestroySubject {
|
|
9
9
|
injector: Injector;
|
|
@@ -19,9 +19,12 @@ export declare abstract class BaseChart<T> extends DestroySubject {
|
|
|
19
19
|
private _config;
|
|
20
20
|
set config(config: T);
|
|
21
21
|
get config(): T;
|
|
22
|
+
private _criteria;
|
|
23
|
+
set criteria(value: CriteriaModel);
|
|
24
|
+
get criteria(): CriteriaModel;
|
|
22
25
|
onReady: EventEmitter<Chart<keyof import("chart.js/auto").ChartTypeRegistry, (number | [number, number] | import("chart.js/auto").Point | import("chart.js/auto").BubbleDataPoint)[], unknown>>;
|
|
23
26
|
constructor(injector: Injector);
|
|
24
27
|
protected _subscribeToLanguage(): void;
|
|
25
28
|
static ɵfac: i0.ɵɵFactoryDeclaration<BaseChart<any>, never>;
|
|
26
|
-
static ɵdir: i0.ɵɵDirectiveDeclaration<BaseChart<any>, never, never, { "data": "data"; "config": "config"; }, { "onReady": "onReady"; }, never>;
|
|
29
|
+
static ɵdir: i0.ɵɵDirectiveDeclaration<BaseChart<any>, never, never, { "data": "data"; "config": "config"; "criteria": "criteria"; }, { "onReady": "onReady"; }, never>;
|
|
27
30
|
}
|
|
@@ -10,6 +10,8 @@ export declare class TimelineDialogComponent {
|
|
|
10
10
|
private _timelineService;
|
|
11
11
|
graphChartComponent: GraphChartComponent;
|
|
12
12
|
report$: Observable<any>;
|
|
13
|
+
filterCriteria$: Observable<any>;
|
|
14
|
+
private readonly _rebuildTriggerSub;
|
|
13
15
|
selectedGroup$: Observable<TimeGroups>;
|
|
14
16
|
constructor(dialogRef: MatDialogRef<TimelineDialogComponent, any>, chart: GraphDialogData, _timelineService: DynamicTimelineReportService);
|
|
15
17
|
changeGroup(group: TimeGroups): void;
|
|
@@ -5,10 +5,12 @@ import { DynamicLineChart, DynamicLineChartDefinition, TimeGroups } from '../../
|
|
|
5
5
|
import * as i0 from "@angular/core";
|
|
6
6
|
export declare class DynamicTimelineReportComponent extends BaseGraphReport<DynamicLineChartDefinition, DynamicLineChart> {
|
|
7
7
|
injector: Injector;
|
|
8
|
-
private _timelineService;
|
|
8
|
+
private readonly _timelineService;
|
|
9
9
|
graphChartComponent: GraphChartComponent;
|
|
10
|
-
|
|
10
|
+
private _criteria$;
|
|
11
11
|
selectedGroup$: import("rxjs").Observable<TimeGroups>;
|
|
12
|
+
filterCriteria$: import("rxjs").Observable<any>;
|
|
13
|
+
report$: import("rxjs").Observable<any>;
|
|
12
14
|
constructor(injector: Injector);
|
|
13
15
|
_subscribeToLanguage(): void;
|
|
14
16
|
printChart(): void;
|
package/lib/components/reports/ndf-reports/containers/ndf-reports/ndf-reports.component.d.ts
CHANGED
|
@@ -6,7 +6,7 @@ import { TranslateService } from '@ngx-translate/core';
|
|
|
6
6
|
import { DestroySubject, FluidHeightDirective } from '../../../../../shared';
|
|
7
7
|
import { Observable } from 'rxjs';
|
|
8
8
|
import { NdfTableConfig } from '../../../../tables';
|
|
9
|
-
import { FieldConfigModel, FilterQueryService, FiltersMapperService, FormQueryModel } from '../../../../ndf-filters';
|
|
9
|
+
import { AggregationResponse, FieldConfigModel, FilterQueryService, FiltersMapperService, FormQueryModel } from '../../../../ndf-filters';
|
|
10
10
|
import { CriteriaModel, NdfReportsConfig, ReportConfigModel } from '../../models';
|
|
11
11
|
import { ChartManagerService, NdfReportsService, ReportsStateService, ReportTransformService } from '../../services';
|
|
12
12
|
import * as i0 from "@angular/core";
|
|
@@ -50,6 +50,7 @@ export declare class NdfReportsComponent extends DestroySubject implements OnIni
|
|
|
50
50
|
label?: string;
|
|
51
51
|
config: NdfTableConfig;
|
|
52
52
|
}>;
|
|
53
|
+
aggregations: Record<string, AggregationResponse>;
|
|
53
54
|
get showDetails(): boolean;
|
|
54
55
|
isDetailsOpened: boolean;
|
|
55
56
|
get config(): NdfReportsConfig;
|
|
@@ -60,6 +61,7 @@ export declare class NdfReportsComponent extends DestroySubject implements OnIni
|
|
|
60
61
|
fields: FieldConfigModel[];
|
|
61
62
|
visible?: boolean;
|
|
62
63
|
togglePanel?: boolean;
|
|
64
|
+
reloadStrategy?: "never" | "always";
|
|
63
65
|
};
|
|
64
66
|
get reportConfig(): {
|
|
65
67
|
details?: import("../../models").ReportDetailsConfig;
|
|
@@ -69,7 +71,8 @@ export declare class NdfReportsComponent extends DestroySubject implements OnIni
|
|
|
69
71
|
reportsKey: string;
|
|
70
72
|
editorType: "reports";
|
|
71
73
|
navigateRoute: string[];
|
|
72
|
-
|
|
74
|
+
private _isConfigChanged;
|
|
75
|
+
set config(config: NdfReportsConfig);
|
|
73
76
|
onQueryChange: EventEmitter<any>;
|
|
74
77
|
trackByFn: (_: number, report: ReportConfigModel) => string | number;
|
|
75
78
|
constructor(_translateService: TranslateService, _filtersMapper: FiltersMapperService, _ndfReportsService: NdfReportsService, _chartHelperService: ChartManagerService, _transformService: ReportTransformService, _cdr: ChangeDetectorRef, _filterQueryService: FilterQueryService, _stateService: ReportsStateService, _router: Router, _ngZone: NgZone);
|
|
@@ -91,6 +94,8 @@ export declare class NdfReportsComponent extends DestroySubject implements OnIni
|
|
|
91
94
|
private _handleKeyboardEvent;
|
|
92
95
|
private _prepareMappedQuery;
|
|
93
96
|
private _updateActiveQuery;
|
|
97
|
+
private _prepareAggregations;
|
|
98
|
+
private _checkConfigChange;
|
|
94
99
|
static ɵfac: i0.ɵɵFactoryDeclaration<NdfReportsComponent, never>;
|
|
95
100
|
static ɵcmp: i0.ɵɵComponentDeclaration<NdfReportsComponent, "app-ndf-reports", never, { "jsonEditorEnabled": "jsonEditorEnabled"; "reportsKey": "reportsKey"; "navigateRoute": "navigateRoute"; "config": "config"; }, { "onQueryChange": "onQueryChange"; }, never, never>;
|
|
96
101
|
}
|
|
@@ -1,6 +1,7 @@
|
|
|
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;
|
|
4
5
|
export declare type BaseReportConfig = {
|
|
5
6
|
id: string | number;
|
|
6
7
|
label: string;
|
|
@@ -12,7 +13,8 @@ export declare type BaseReportConfig = {
|
|
|
12
13
|
};
|
|
13
14
|
details?: ReportDetailsConfig;
|
|
14
15
|
layout?: {
|
|
15
|
-
width?:
|
|
16
|
+
width?: GridWidth;
|
|
17
|
+
startColumn?: 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11;
|
|
16
18
|
styleClass?: string;
|
|
17
19
|
};
|
|
18
20
|
};
|
|
@@ -5,6 +5,7 @@ import { NdfReportsRequest } from './request';
|
|
|
5
5
|
import { ReportDataSource } from './report-data-source';
|
|
6
6
|
import { TimeGroups } from './common';
|
|
7
7
|
import { CustomChartOptions } from '../../charts';
|
|
8
|
+
import { EvaluatedString } from '../../../../shared';
|
|
8
9
|
/**
|
|
9
10
|
* Base configuration for chart reports that include dialog options
|
|
10
11
|
*/
|
|
@@ -33,7 +34,11 @@ export declare type DynamicLineChartDefinition = ReportChartConfig & {
|
|
|
33
34
|
prefix?: string;
|
|
34
35
|
colors?: string[];
|
|
35
36
|
print?: boolean;
|
|
36
|
-
request: NdfReportsRequest
|
|
37
|
+
request: NdfReportsRequest & {
|
|
38
|
+
actions?: {
|
|
39
|
+
beforeSubmit?: EvaluatedString<'payload'>;
|
|
40
|
+
};
|
|
41
|
+
};
|
|
37
42
|
datasource: ({
|
|
38
43
|
aggregation: string;
|
|
39
44
|
} & ReportDataSource)[];
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { Observable } from 'rxjs';
|
|
2
2
|
import { ChartDataset } from 'chart.js';
|
|
3
3
|
import { TranslateService } from '@ngx-translate/core';
|
|
4
|
-
import { DynamicLineChart, DynamicLineChartOptions, GraphChart, GraphChartOptions, ReportDataSource, ReportResponseModel } from '../models';
|
|
4
|
+
import { CriteriaModel, DynamicLineChart, DynamicLineChartOptions, GraphChart, GraphChartOptions, ReportDataSource, ReportResponseModel } from '../models';
|
|
5
5
|
import { StatisticBucket } from '../../charts';
|
|
6
6
|
import { ChartDataTransformers } from './chart-data-transformers.service';
|
|
7
7
|
import * as i0 from "@angular/core";
|
|
@@ -10,11 +10,11 @@ export declare class BaseChartBuilderService<TConfig extends DynamicLineChart |
|
|
|
10
10
|
private readonly _dataTransformers;
|
|
11
11
|
protected _translatePrefix: string;
|
|
12
12
|
constructor(_translateService: TranslateService, _dataTransformers: ChartDataTransformers);
|
|
13
|
-
prepareChart(response: ReportResponseModel, config: TConfig): Observable<{
|
|
13
|
+
prepareChart(response: ReportResponseModel, config: TConfig, filterCriteria?: CriteriaModel): Observable<{
|
|
14
14
|
data: any;
|
|
15
15
|
config: GraphChartOptions | DynamicLineChartOptions;
|
|
16
16
|
}>;
|
|
17
|
-
protected _prepareDataSource(sourceConfig: ReportDataSource, response: ReportResponseModel): Observable<any>;
|
|
17
|
+
protected _prepareDataSource(sourceConfig: ReportDataSource, response: ReportResponseModel, filterCriteria?: CriteriaModel): Observable<any>;
|
|
18
18
|
protected _getLabel(item: StatisticBucket, config: ReportDataSource): string;
|
|
19
19
|
protected _getValue(item: StatisticBucket, source: ReportDataSource): number;
|
|
20
20
|
protected _prepareChartData(results: StatisticBucket[][], config: TConfig): {
|
|
@@ -1,7 +1,14 @@
|
|
|
1
1
|
import { StatisticBucket } from '../../charts';
|
|
2
|
+
import { CriteriaModel } from '../models';
|
|
2
3
|
import * as i0 from "@angular/core";
|
|
3
|
-
|
|
4
|
-
|
|
4
|
+
/**
|
|
5
|
+
*
|
|
6
|
+
*/
|
|
7
|
+
export declare type DigitTransformer = (data: any, response?: any, filterCriteria?: CriteriaModel) => number;
|
|
8
|
+
/**
|
|
9
|
+
*
|
|
10
|
+
*/
|
|
11
|
+
export declare type GraphTransformer = (data: any, response?: any, filterCriteria?: CriteriaModel, currentLanguage?: string) => StatisticBucket[];
|
|
5
12
|
export declare class ChartDataTransformers {
|
|
6
13
|
private readonly graphTransformers;
|
|
7
14
|
private readonly digitsTransformers;
|
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
import { DigitChart, ReportResponseModel } from '../models';
|
|
1
|
+
import { CriteriaModel, DigitChart, ReportResponseModel } from '../models';
|
|
2
2
|
import { Observable } from 'rxjs';
|
|
3
3
|
import { ChartDataTransformers } from './chart-data-transformers.service';
|
|
4
4
|
import * as i0 from "@angular/core";
|
|
5
5
|
export declare class DigitChartService {
|
|
6
6
|
private readonly _dataTransformers;
|
|
7
7
|
constructor(_dataTransformers: ChartDataTransformers);
|
|
8
|
-
prepareChart(response: ReportResponseModel, config: DigitChart): Observable<any>;
|
|
8
|
+
prepareChart(response: ReportResponseModel, config: DigitChart, filterCriteria?: CriteriaModel): Observable<any>;
|
|
9
9
|
static ɵfac: i0.ɵɵFactoryDeclaration<DigitChartService, never>;
|
|
10
10
|
static ɵprov: i0.ɵɵInjectableDeclaration<DigitChartService>;
|
|
11
11
|
}
|
|
@@ -1,32 +1,27 @@
|
|
|
1
|
-
import { BehaviorSubject } from 'rxjs';
|
|
2
1
|
import { CriteriaModel, DynamicLineChart, TimeGroups } from '../models';
|
|
3
2
|
import { NdfReportsService } from './index';
|
|
4
3
|
import * as i0 from "@angular/core";
|
|
5
4
|
export declare class DynamicTimelineReportService {
|
|
6
5
|
private _ndfReportsService;
|
|
7
|
-
readonly _rebuildTriggerSub: BehaviorSubject<boolean>;
|
|
8
|
-
readonly rebuild$: import("rxjs").Observable<boolean>;
|
|
9
6
|
_isInitialized: boolean;
|
|
10
7
|
isLoadingResult: boolean;
|
|
11
|
-
|
|
12
|
-
private _selectedGroupSub;
|
|
13
|
-
private _selectedGroup;
|
|
8
|
+
private readonly _selectedGroupSub;
|
|
14
9
|
selectedGroup$: import("rxjs").Observable<TimeGroups>;
|
|
10
|
+
private readonly _rebuildTriggerSub;
|
|
11
|
+
rebuild$: import("rxjs").Observable<boolean>;
|
|
12
|
+
constructor(_ndfReportsService: NdfReportsService);
|
|
15
13
|
payload: CriteriaModel;
|
|
16
|
-
updateSelectedGroup(selected?: TimeGroups): void;
|
|
17
14
|
changeGroup(group: TimeGroups): void;
|
|
18
15
|
rebuild(): void;
|
|
19
|
-
prepareData(): import("rxjs").UnaryFunction<import("rxjs").Observable<
|
|
20
|
-
|
|
21
|
-
payload
|
|
22
|
-
|
|
23
|
-
aggregationNames?: {
|
|
16
|
+
prepareData(): import("rxjs").UnaryFunction<import("rxjs").Observable<unknown>, import("rxjs").Observable<any>>;
|
|
17
|
+
prepareSelectedGroups(config: DynamicLineChart): {
|
|
18
|
+
payload: {
|
|
19
|
+
aggregationNames: {
|
|
24
20
|
name: string;
|
|
25
21
|
interval: TimeGroups;
|
|
26
22
|
}[];
|
|
27
|
-
}
|
|
28
|
-
}
|
|
29
|
-
private _prepareSelectedGroups;
|
|
23
|
+
};
|
|
24
|
+
};
|
|
30
25
|
static ɵfac: i0.ɵɵFactoryDeclaration<DynamicTimelineReportService, never>;
|
|
31
26
|
static ɵprov: i0.ɵɵInjectableDeclaration<DynamicTimelineReportService>;
|
|
32
27
|
}
|
|
@@ -1,6 +1,8 @@
|
|
|
1
|
+
import { Injector } from '@angular/core';
|
|
1
2
|
import { ApiResponseModel } from '../../../../core/models';
|
|
2
3
|
import { BaseService } from '../../../../shared/services';
|
|
3
4
|
import { NdfReportsRequest } from '../models';
|
|
5
|
+
import { ReportsDataTransformers } from './reports-data-transformers.service';
|
|
4
6
|
import * as i0 from "@angular/core";
|
|
5
7
|
declare type CriteriaType = {
|
|
6
8
|
params?: Record<string, any>;
|
|
@@ -9,7 +11,9 @@ declare type CriteriaType = {
|
|
|
9
11
|
} & Record<string, any>;
|
|
10
12
|
};
|
|
11
13
|
export declare class NdfReportsService extends BaseService {
|
|
12
|
-
|
|
14
|
+
private _reportsDataTransformers;
|
|
15
|
+
constructor(injector: Injector, _reportsDataTransformers: ReportsDataTransformers);
|
|
16
|
+
getData(request: NdfReportsRequest, criteria?: CriteriaType): import("rxjs").Observable<ApiResponseModel<Record<string, any>>>;
|
|
13
17
|
private _query;
|
|
14
18
|
private _customQuery;
|
|
15
19
|
private _prepareRequest;
|