nuxeo-development-framework 5.6.8 → 5.7.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.
- package/bundles/nuxeo-development-framework.umd.js +82 -38
- package/bundles/nuxeo-development-framework.umd.js.map +1 -1
- package/esm2015/lib/components/ndf-config-editor/public/editor-navigate-button.js +11 -10
- package/esm2015/lib/components/ndf-filters/base/base-aggregation-field.component.js +2 -2
- package/esm2015/lib/components/ndf-filters/containers/aggregation-field/aggregation-field.component.js +16 -14
- package/esm2015/lib/components/ndf-filters/containers/base-field.js +4 -3
- package/esm2015/lib/components/reports/ndf-reports/containers/ndf-reports/ndf-reports.component.js +47 -6
- package/esm2015/lib/components/reports/ndf-reports/models/ndf-reports.config.js +1 -1
- package/esm2015/lib/components/spell-checker-field/spell-checker-field.module.js +1 -1
- package/esm2015/lib/components/tables/table/dynamic-column/dynamic-column.component.js +6 -3
- package/fesm2015/nuxeo-development-framework.js +78 -31
- package/fesm2015/nuxeo-development-framework.js.map +1 -1
- package/lib/components/ndf-config-editor/public/editor-navigate-button.d.ts +6 -5
- package/lib/components/ndf-filters/containers/aggregation-field/aggregation-field.component.d.ts +2 -1
- package/lib/components/reports/ndf-reports/containers/ndf-reports/ndf-reports.component.d.ts +6 -2
- package/lib/components/reports/ndf-reports/models/ndf-reports.config.d.ts +9 -1
- package/package.json +1 -1
|
@@ -43,7 +43,7 @@ export class DynamicColumnComponent {
|
|
|
43
43
|
}
|
|
44
44
|
}
|
|
45
45
|
DynamicColumnComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0, type: DynamicColumnComponent, deps: [{ token: i1.ExtensionService }, { token: i2.ColumnRendererRegistryService }, { token: i0.ComponentFactoryResolver }, { token: i0.ChangeDetectorRef }], target: i0.ɵɵFactoryTarget.Component });
|
|
46
|
-
DynamicColumnComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "12.2.17", type: DynamicColumnComponent, selector: "cts-dynamic-column", inputs: { id: "id", context: "context", column: "column" }, host: { classAttribute: "cts-dynamic-column" }, viewQueries: [{ propertyName: "content", first: true, predicate: ["content"], descendants: true, read: ViewContainerRef, static: true }], usesOnChanges: true, ngImport: i0, template: ` <ng-container #content></ng-container> `, isInline: true, styles: ["\n\t\t\t.cts-dynamic-column {\n\t\t\t\tdisplay: flex;\n\t\t\t\talign-items: center;\n\t\t\t}\n\t\t"], encapsulation: i0.ViewEncapsulation.None });
|
|
46
|
+
DynamicColumnComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "12.2.17", type: DynamicColumnComponent, selector: "cts-dynamic-column", inputs: { id: "id", context: "context", column: "column" }, host: { classAttribute: "cts-dynamic-column" }, viewQueries: [{ propertyName: "content", first: true, predicate: ["content"], descendants: true, read: ViewContainerRef, static: true }], usesOnChanges: true, ngImport: i0, template: ` <ng-container #content></ng-container> `, isInline: true, styles: ["\n\t\t\t.cts-dynamic-column {\n\t\t\t\tdisplay: flex;\n\t\t\t\talign-items: var(--dynamic-column-align, center);\n\t\t\t\tjustify-content: var(--dynamic-column-justity, flex-start);\n\t\t\t\twidth: var(--dynamic-column-width, 100%);\n\t\t\t\tpadding :var(--dynamic-column-padding, unset);\n\t\t\t}\n\t\t"], encapsulation: i0.ViewEncapsulation.None });
|
|
47
47
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0, type: DynamicColumnComponent, decorators: [{
|
|
48
48
|
type: Component,
|
|
49
49
|
args: [{
|
|
@@ -55,7 +55,10 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.17", ngImpo
|
|
|
55
55
|
`
|
|
56
56
|
.cts-dynamic-column {
|
|
57
57
|
display: flex;
|
|
58
|
-
align-items: center;
|
|
58
|
+
align-items: var(--dynamic-column-align, center);
|
|
59
|
+
justify-content: var(--dynamic-column-justity, flex-start);
|
|
60
|
+
width: var(--dynamic-column-width, 100%);
|
|
61
|
+
padding :var(--dynamic-column-padding, unset);
|
|
59
62
|
}
|
|
60
63
|
`
|
|
61
64
|
]
|
|
@@ -70,4 +73,4 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.17", ngImpo
|
|
|
70
73
|
}], column: [{
|
|
71
74
|
type: Input
|
|
72
75
|
}] } });
|
|
73
|
-
//# sourceMappingURL=data:application/json;base64,
|
|
76
|
+
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiZHluYW1pYy1jb2x1bW4uY29tcG9uZW50LmpzIiwic291cmNlUm9vdCI6IiIsInNvdXJjZXMiOlsiLi4vLi4vLi4vLi4vLi4vLi4vLi4vLi4vcHJvamVjdHMvbnV4ZW8tZGV2ZWxvcG1lbnQtZnJhbWV3b3JrL3NyYy9saWIvY29tcG9uZW50cy90YWJsZXMvdGFibGUvZHluYW1pYy1jb2x1bW4vZHluYW1pYy1jb2x1bW4uY29tcG9uZW50LnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQUFBLE9BQU8sRUFFTixTQUFTLEVBR1QsS0FBSyxFQUtMLFNBQVMsRUFDVCxnQkFBZ0IsRUFDaEIsaUJBQWlCLEVBQ2pCLE1BQU0sZUFBZSxDQUFDOzs7O0FBcUJ2QixNQUFNLE9BQU8sc0JBQXNCO0lBY2xDLFlBQ1MsVUFBNEIsRUFDNUIsZUFBOEMsRUFDOUMsd0JBQWtELEVBQ2xELEdBQXNCO1FBSHRCLGVBQVUsR0FBVixVQUFVLENBQWtCO1FBQzVCLG9CQUFlLEdBQWYsZUFBZSxDQUErQjtRQUM5Qyw2QkFBd0IsR0FBeEIsd0JBQXdCLENBQTBCO1FBQ2xELFFBQUcsR0FBSCxHQUFHLENBQW1CO0lBQzVCLENBQUM7SUFFSixRQUFRO1FBQ1AsTUFBTSxZQUFZLEdBQUcsSUFBSSxDQUFDLGVBQWUsQ0FBQyxHQUFHL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aXMuY29sdW1uO1xyXG5cdFx0XHRpZiAodGhpcy5jb21wb25lbnRSZWYuaW5zdGFuY2UudXBkYXRlKSB7XHJcblx0XHRcdFx0dGhpcy5jb21wb25lbnRSZWYuaW5zdGFuY2UudXBkYXRlKCk7XHJcblx0XHRcdH1cclxuXHRcdH1cclxuXHR9XHJcbn1cclxuIl19
|
|
@@ -13728,7 +13728,7 @@ class DynamicColumnComponent {
|
|
|
13728
13728
|
}
|
|
13729
13729
|
}
|
|
13730
13730
|
DynamicColumnComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0, type: DynamicColumnComponent, deps: [{ token: ExtensionService }, { token: ColumnRendererRegistryService }, { token: i0.ComponentFactoryResolver }, { token: i0.ChangeDetectorRef }], target: i0.ɵɵFactoryTarget.Component });
|
|
13731
|
-
DynamicColumnComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "12.2.17", type: DynamicColumnComponent, selector: "cts-dynamic-column", inputs: { id: "id", context: "context", column: "column" }, host: { classAttribute: "cts-dynamic-column" }, viewQueries: [{ propertyName: "content", first: true, predicate: ["content"], descendants: true, read: ViewContainerRef, static: true }], usesOnChanges: true, ngImport: i0, template: ` <ng-container #content></ng-container> `, isInline: true, styles: ["\n\t\t\t.cts-dynamic-column {\n\t\t\t\tdisplay: flex;\n\t\t\t\talign-items: center;\n\t\t\t}\n\t\t"], encapsulation: i0.ViewEncapsulation.None });
|
|
13731
|
+
DynamicColumnComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "12.2.17", type: DynamicColumnComponent, selector: "cts-dynamic-column", inputs: { id: "id", context: "context", column: "column" }, host: { classAttribute: "cts-dynamic-column" }, viewQueries: [{ propertyName: "content", first: true, predicate: ["content"], descendants: true, read: ViewContainerRef, static: true }], usesOnChanges: true, ngImport: i0, template: ` <ng-container #content></ng-container> `, isInline: true, styles: ["\n\t\t\t.cts-dynamic-column {\n\t\t\t\tdisplay: flex;\n\t\t\t\talign-items: var(--dynamic-column-align, center);\n\t\t\t\tjustify-content: var(--dynamic-column-justity, flex-start);\n\t\t\t\twidth: var(--dynamic-column-width, 100%);\n\t\t\t\tpadding :var(--dynamic-column-padding, unset);\n\t\t\t}\n\t\t"], encapsulation: i0.ViewEncapsulation.None });
|
|
13732
13732
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0, type: DynamicColumnComponent, decorators: [{
|
|
13733
13733
|
type: Component,
|
|
13734
13734
|
args: [{
|
|
@@ -13740,7 +13740,10 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.17", ngImpo
|
|
|
13740
13740
|
`
|
|
13741
13741
|
.cts-dynamic-column {
|
|
13742
13742
|
display: flex;
|
|
13743
|
-
align-items: center;
|
|
13743
|
+
align-items: var(--dynamic-column-align, center);
|
|
13744
|
+
justify-content: var(--dynamic-column-justity, flex-start);
|
|
13745
|
+
width: var(--dynamic-column-width, 100%);
|
|
13746
|
+
padding :var(--dynamic-column-padding, unset);
|
|
13744
13747
|
}
|
|
13745
13748
|
`
|
|
13746
13749
|
]
|
|
@@ -16950,7 +16953,7 @@ class BaseAggregationField extends BaseSelector {
|
|
|
16950
16953
|
this.sourceState$ = this._sourceState.asObservable().pipe(filter$1((data) => !!(data === null || data === void 0 ? void 0 : data.fieldConfig) && !!data.aggregation));
|
|
16951
16954
|
this.renderOptions$ = this.sourceState$.pipe(map((data) => { var _a, _b; return (_b = (_a = data.fieldConfig) === null || _a === void 0 ? void 0 : _a.render) === null || _b === void 0 ? void 0 : _b.options; }), filter$1(Boolean));
|
|
16952
16955
|
this._optionsSub = new BehaviorSubject([]);
|
|
16953
|
-
this.options$ = this.sourceState$.pipe(switchMap((res) => this._aggregationService.prepareAggregationFiled(res)),
|
|
16956
|
+
this.options$ = this.sourceState$.pipe(switchMap((res) => this._aggregationService.prepareAggregationFiled(res)), tap((options) => {
|
|
16954
16957
|
this._optionsSub.next(options);
|
|
16955
16958
|
}));
|
|
16956
16959
|
}
|
|
@@ -18758,9 +18761,9 @@ class BaseField extends BaseCustomValueAccessor {
|
|
|
18758
18761
|
return;
|
|
18759
18762
|
}
|
|
18760
18763
|
Object.keys(changes).forEach((key) => {
|
|
18761
|
-
this._componentRef.instance[key] = changes[key].currentValue;
|
|
18764
|
+
this._componentRef.instance[key] = ___default.cloneDeep(changes[key].currentValue);
|
|
18762
18765
|
});
|
|
18763
|
-
this._componentRef.changeDetectorRef.
|
|
18766
|
+
this._componentRef.changeDetectorRef.detectChanges();
|
|
18764
18767
|
}
|
|
18765
18768
|
ngOnDestroy() {
|
|
18766
18769
|
if (this._componentRef) {
|
|
@@ -18857,7 +18860,7 @@ class AggregationFieldComponent extends BaseField {
|
|
|
18857
18860
|
[AGGREGATION_FIELD_TYPES.switch]: this._prepareField.bind(this),
|
|
18858
18861
|
[AGGREGATION_FIELD_TYPES.autocomplete]: this._prepareField.bind(this),
|
|
18859
18862
|
[AGGREGATION_FIELD_TYPES.dateList]: this._prepareField.bind(this),
|
|
18860
|
-
[AGGREGATION_FIELD_TYPES.custom]: this._prepareField.bind(this)
|
|
18863
|
+
[AGGREGATION_FIELD_TYPES.custom]: this._prepareField.bind(this)
|
|
18861
18864
|
};
|
|
18862
18865
|
}
|
|
18863
18866
|
ngOnInit() {
|
|
@@ -18869,9 +18872,11 @@ class AggregationFieldComponent extends BaseField {
|
|
|
18869
18872
|
(_d = (_c = this.handlers)[componentType]) === null || _d === void 0 ? void 0 : _d.call(_c);
|
|
18870
18873
|
}
|
|
18871
18874
|
}
|
|
18875
|
+
ngOnChanges(changes) {
|
|
18876
|
+
super.ngOnChanges(changes);
|
|
18877
|
+
}
|
|
18872
18878
|
_prepareField() {
|
|
18873
|
-
const instance = this._componentRef
|
|
18874
|
-
.instance;
|
|
18879
|
+
const instance = this._componentRef.instance;
|
|
18875
18880
|
instance.aggregation = this.aggregation;
|
|
18876
18881
|
instance.fieldConfig = this.fieldConfig;
|
|
18877
18882
|
if (this.contentTemplate) {
|
|
@@ -18884,14 +18889,14 @@ AggregationFieldComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.
|
|
|
18884
18889
|
{
|
|
18885
18890
|
provide: NG_VALUE_ACCESSOR,
|
|
18886
18891
|
useExisting: forwardRef(() => AggregationFieldComponent),
|
|
18887
|
-
multi: true
|
|
18892
|
+
multi: true
|
|
18888
18893
|
},
|
|
18889
18894
|
{
|
|
18890
18895
|
provide: NG_VALIDATORS,
|
|
18891
18896
|
useExisting: forwardRef(() => AggregationFieldComponent),
|
|
18892
|
-
multi: true
|
|
18893
|
-
}
|
|
18894
|
-
], usesInheritance: true, ngImport: i0, template: '<ng-container #dynamicContainer></ng-container>', isInline: true, styles: [""], encapsulation: i0.ViewEncapsulation.None });
|
|
18897
|
+
multi: true
|
|
18898
|
+
}
|
|
18899
|
+
], usesInheritance: true, usesOnChanges: true, ngImport: i0, template: '<ng-container #dynamicContainer></ng-container>', isInline: true, styles: [""], encapsulation: i0.ViewEncapsulation.None });
|
|
18895
18900
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0, type: AggregationFieldComponent, decorators: [{
|
|
18896
18901
|
type: Component,
|
|
18897
18902
|
args: [{
|
|
@@ -18903,17 +18908,17 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.17", ngImpo
|
|
|
18903
18908
|
{
|
|
18904
18909
|
provide: NG_VALUE_ACCESSOR,
|
|
18905
18910
|
useExisting: forwardRef(() => AggregationFieldComponent),
|
|
18906
|
-
multi: true
|
|
18911
|
+
multi: true
|
|
18907
18912
|
},
|
|
18908
18913
|
{
|
|
18909
18914
|
provide: NG_VALIDATORS,
|
|
18910
18915
|
useExisting: forwardRef(() => AggregationFieldComponent),
|
|
18911
|
-
multi: true
|
|
18912
|
-
}
|
|
18916
|
+
multi: true
|
|
18917
|
+
}
|
|
18913
18918
|
],
|
|
18914
18919
|
host: {
|
|
18915
|
-
'[class]': "'aggregation-field' + ' aggregation-field__fieldConfig?.render?.type' "
|
|
18916
|
-
}
|
|
18920
|
+
'[class]': "'aggregation-field' + ' aggregation-field__fieldConfig?.render?.type' "
|
|
18921
|
+
}
|
|
18917
18922
|
}]
|
|
18918
18923
|
}], propDecorators: { aggregation: [{
|
|
18919
18924
|
type: Input
|
|
@@ -20629,14 +20634,15 @@ class EditorButtonComponent {
|
|
|
20629
20634
|
this.baseAppUrl = baseAppUrl;
|
|
20630
20635
|
this.configService = configService;
|
|
20631
20636
|
this.isFeatureEnabled = false;
|
|
20637
|
+
this.isEnabled = false;
|
|
20632
20638
|
this.editorConfig = (_a = this.configService.myConfiguration) === null || _a === void 0 ? void 0 : _a.configEditor;
|
|
20633
20639
|
this.isFeatureEnabled = environment.configEditor === 'YES';
|
|
20634
20640
|
}
|
|
20635
|
-
|
|
20641
|
+
ngOnChanges(changes) {
|
|
20636
20642
|
var _a, _b, _c, _d;
|
|
20637
|
-
|
|
20643
|
+
this.typeConfig = (_b = (_a = this.editorConfig) === null || _a === void 0 ? void 0 : _a.types) === null || _b === void 0 ? void 0 : _b[this.type];
|
|
20644
|
+
this.isEnabled = this.isFeatureEnabled && ((_c = this.editorConfig) === null || _c === void 0 ? void 0 : _c.enabled) && ((_d = this.typeConfig) === null || _d === void 0 ? void 0 : _d.enabled);
|
|
20638
20645
|
}
|
|
20639
|
-
ngOnInit() { }
|
|
20640
20646
|
navigate() {
|
|
20641
20647
|
var _a;
|
|
20642
20648
|
const config = (_a = this.editorConfig) === null || _a === void 0 ? void 0 : _a.types[this.type];
|
|
@@ -20651,19 +20657,19 @@ class EditorButtonComponent {
|
|
|
20651
20657
|
this.router.navigate([url], {
|
|
20652
20658
|
queryParams: {
|
|
20653
20659
|
[PARAMS_KEYS.TYPE]: this.type,
|
|
20654
|
-
[PARAMS_KEYS.KEY]: this.key
|
|
20660
|
+
[PARAMS_KEYS.KEY]: this.key
|
|
20655
20661
|
}
|
|
20656
20662
|
});
|
|
20657
20663
|
}
|
|
20658
20664
|
}
|
|
20659
20665
|
EditorButtonComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0, type: EditorButtonComponent, deps: [{ token: 'environment' }, { token: i1$5.Router }, { token: PROJECT_BASE_HREF }, { token: AppConfigService }], target: i0.ɵɵFactoryTarget.Component });
|
|
20660
|
-
EditorButtonComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "12.2.17", type: EditorButtonComponent, selector: "app-editor-button", inputs: { type: "type", key: "key" }, ngImport: i0, template: `
|
|
20661
|
-
<ng-container *ngIf="
|
|
20666
|
+
EditorButtonComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "12.2.17", type: EditorButtonComponent, selector: "app-editor-button", inputs: { type: "type", key: "key" }, usesOnChanges: true, ngImport: i0, template: `
|
|
20667
|
+
<ng-container *ngIf="isEnabled">
|
|
20662
20668
|
<button
|
|
20663
20669
|
mat-stroked-button
|
|
20664
20670
|
[matTooltip]="'JSON_EDITOR.navigateToEditor' | translate"
|
|
20665
20671
|
(click)="navigate()"
|
|
20666
|
-
*permission="{ name:
|
|
20672
|
+
*permission="{ name: typeConfig?.permission }"
|
|
20667
20673
|
>
|
|
20668
20674
|
<mat-icon>edit</mat-icon>
|
|
20669
20675
|
</button>
|
|
@@ -20674,12 +20680,12 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.17", ngImpo
|
|
|
20674
20680
|
args: [{
|
|
20675
20681
|
selector: 'app-editor-button',
|
|
20676
20682
|
template: `
|
|
20677
|
-
<ng-container *ngIf="
|
|
20683
|
+
<ng-container *ngIf="isEnabled">
|
|
20678
20684
|
<button
|
|
20679
20685
|
mat-stroked-button
|
|
20680
20686
|
[matTooltip]="'JSON_EDITOR.navigateToEditor' | translate"
|
|
20681
20687
|
(click)="navigate()"
|
|
20682
|
-
*permission="{ name:
|
|
20688
|
+
*permission="{ name: typeConfig?.permission }"
|
|
20683
20689
|
>
|
|
20684
20690
|
<mat-icon>edit</mat-icon>
|
|
20685
20691
|
</button>
|
|
@@ -44233,7 +44239,8 @@ class NdfReportsComponent extends DestroySubject {
|
|
|
44233
44239
|
this.isPanelOpened = false;
|
|
44234
44240
|
this.isLoadingResult = false;
|
|
44235
44241
|
this.isExpanded = false;
|
|
44236
|
-
|
|
44242
|
+
// activeQuery: Record<string, any> = {};
|
|
44243
|
+
this._activeQuerySub = new BehaviorSubject(null);
|
|
44237
44244
|
this._activeFiltersQuerySub = new ReplaySubject();
|
|
44238
44245
|
this.activeFiltersQuery$ = this._activeFiltersQuerySub.asObservable();
|
|
44239
44246
|
this._configSubject = new BehaviorSubject(null);
|
|
@@ -44255,6 +44262,10 @@ class NdfReportsComponent extends DestroySubject {
|
|
|
44255
44262
|
this.direction = res.lang === 'ar' ? 'rtl' : 'ltr';
|
|
44256
44263
|
});
|
|
44257
44264
|
}
|
|
44265
|
+
get activeQuery() {
|
|
44266
|
+
var _a;
|
|
44267
|
+
return (_a = this._activeQuerySub.getValue()) === null || _a === void 0 ? void 0 : _a.current;
|
|
44268
|
+
}
|
|
44258
44269
|
get showDetails() {
|
|
44259
44270
|
return !!this._reportDetailsSubject.getValue();
|
|
44260
44271
|
}
|
|
@@ -44436,23 +44447,59 @@ class NdfReportsComponent extends DestroySubject {
|
|
|
44436
44447
|
};
|
|
44437
44448
|
}
|
|
44438
44449
|
_updateActiveQuery(query) {
|
|
44439
|
-
this.
|
|
44450
|
+
this._activeQuerySub.next({
|
|
44451
|
+
previous: this.activeQuery,
|
|
44452
|
+
current: query
|
|
44453
|
+
});
|
|
44440
44454
|
this._activeFiltersQuerySub.next({
|
|
44441
44455
|
query,
|
|
44442
44456
|
emitEvent: false
|
|
44443
44457
|
});
|
|
44444
44458
|
}
|
|
44445
44459
|
_prepareAggregations(aggregations) {
|
|
44446
|
-
var _a;
|
|
44460
|
+
var _a, _b, _c;
|
|
44447
44461
|
if (this._isConfigChanged && this.aggregations) {
|
|
44448
44462
|
this.aggregations = null;
|
|
44449
44463
|
}
|
|
44450
|
-
|
|
44464
|
+
const reloadStrategy = (_c = (_b = (_a = this.config) === null || _a === void 0 ? void 0 : _a.filters) === null || _b === void 0 ? void 0 : _b.reload) === null || _c === void 0 ? void 0 : _c.strategy;
|
|
44465
|
+
if (this.aggregations && reloadStrategy === 'never') {
|
|
44466
|
+
return;
|
|
44467
|
+
}
|
|
44468
|
+
if (this.aggregations && reloadStrategy === 'onChange') {
|
|
44469
|
+
if (this._shouldReloadOnChange()) {
|
|
44470
|
+
this._updateAggregations(aggregations);
|
|
44471
|
+
}
|
|
44451
44472
|
return;
|
|
44452
44473
|
}
|
|
44453
|
-
this.aggregations
|
|
44474
|
+
this._updateAggregations(aggregations);
|
|
44454
44475
|
this._isConfigChanged = false;
|
|
44455
44476
|
}
|
|
44477
|
+
_shouldReloadOnChange() {
|
|
44478
|
+
var _a, _b, _c, _d, _e, _f;
|
|
44479
|
+
if (((_c = (_b = (_a = this.config) === null || _a === void 0 ? void 0 : _a.filters) === null || _b === void 0 ? void 0 : _b.reload) === null || _c === void 0 ? void 0 : _c.strategy) !== 'onChange') {
|
|
44480
|
+
return false;
|
|
44481
|
+
}
|
|
44482
|
+
const triggerFields = (_f = (_e = (_d = this.config) === null || _d === void 0 ? void 0 : _d.filters) === null || _e === void 0 ? void 0 : _e.reload) === null || _f === void 0 ? void 0 : _f.triggerFields;
|
|
44483
|
+
if (!Array.isArray(triggerFields)) {
|
|
44484
|
+
return false;
|
|
44485
|
+
}
|
|
44486
|
+
const validFields = triggerFields.filter(Boolean);
|
|
44487
|
+
if (!validFields.length) {
|
|
44488
|
+
return false;
|
|
44489
|
+
}
|
|
44490
|
+
const activatedQuery = this._activeQuerySub.getValue();
|
|
44491
|
+
const currentValue = (activatedQuery === null || activatedQuery === void 0 ? void 0 : activatedQuery.current) || {};
|
|
44492
|
+
const previousValue = (activatedQuery === null || activatedQuery === void 0 ? void 0 : activatedQuery.previous) || {};
|
|
44493
|
+
const changedKeys = this._getChangedKeys(previousValue, currentValue);
|
|
44494
|
+
return validFields.some((field) => changedKeys.includes(field));
|
|
44495
|
+
}
|
|
44496
|
+
_getChangedKeys(previous, current) {
|
|
44497
|
+
const allKeys = ___default.union(___default.keys(previous), ___default.keys(current));
|
|
44498
|
+
return allKeys.filter((key) => !___default.isEqual(previous[key], current[key]));
|
|
44499
|
+
}
|
|
44500
|
+
_updateAggregations(aggregations) {
|
|
44501
|
+
this.aggregations = ___default.cloneDeep(aggregations);
|
|
44502
|
+
}
|
|
44456
44503
|
_checkConfigChange(value) {
|
|
44457
44504
|
const { activeQuery } = value, config = __rest(value, ["activeQuery"]);
|
|
44458
44505
|
const _a = this._configSubject.getValue() || {}, { activeQuery: aq } = _a, currentConfig = __rest(_a, ["activeQuery"]);
|