@acorex/components 6.5.39 → 6.5.41
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/esm2020/lib/query-builder/query-builder-rule.component.mjs +8 -2
- package/esm2020/lib/query-builder/query-builder.component.mjs +7 -2
- package/fesm2015/acorex-components.mjs +13 -2
- package/fesm2015/acorex-components.mjs.map +1 -1
- package/fesm2020/acorex-components.mjs +13 -2
- package/fesm2020/acorex-components.mjs.map +1 -1
- package/lib/query-builder/query-builder.component.d.ts +3 -1
- package/package.json +1 -1
@@ -8817,7 +8817,13 @@ class AXQueryBuilderRuleComponent {
|
|
8817
8817
|
}
|
8818
8818
|
};
|
8819
8819
|
}
|
8820
|
-
ngOnInit() {
|
8820
|
+
ngOnInit() {
|
8821
|
+
this.fields.forEach((field) => {
|
8822
|
+
if ((field.dataField == this.rule.dataField)) {
|
8823
|
+
this.rule.control.options = field.control.options;
|
8824
|
+
}
|
8825
|
+
});
|
8826
|
+
}
|
8821
8827
|
ngAfterViewInit() {
|
8822
8828
|
//Called after ngAfterContentInit when the component's view has been initialized. Applies to components only.
|
8823
8829
|
//Add 'implements AfterViewInit' to the class.
|
@@ -9456,7 +9462,6 @@ class AXQueryBuilderComponent extends AXBaseComponent {
|
|
9456
9462
|
this.toast = toast;
|
9457
9463
|
this.mode = 'new';
|
9458
9464
|
this.rootGroup = new AXQueryBuilderGroup();
|
9459
|
-
this.fields = [];
|
9460
9465
|
// @Input()
|
9461
9466
|
// mode: 'immediate' | 'click' = 'click';
|
9462
9467
|
this.onRuleChanged = new EventEmitter();
|
@@ -9466,6 +9471,12 @@ class AXQueryBuilderComponent extends AXBaseComponent {
|
|
9466
9471
|
this.rootGroup.condition = this.query.condition ? this.query.condition : 'AND';
|
9467
9472
|
this.rootGroup.items = this.query.items ? this.query.items : [];
|
9468
9473
|
}
|
9474
|
+
get fields() {
|
9475
|
+
return this._fields;
|
9476
|
+
}
|
9477
|
+
set fields(v) {
|
9478
|
+
this._fields = v;
|
9479
|
+
}
|
9469
9480
|
getQueryBuilder() {
|
9470
9481
|
return { groups: this.rootGroup };
|
9471
9482
|
}
|