@acorex/platform 20.8.14 → 20.8.15
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.
|
@@ -6925,22 +6925,22 @@ class AXPSelectBoxWidgetEditComponent extends AXPDataListWidgetComponent {
|
|
|
6925
6925
|
this.contextService.patch(itemToExpose, true);
|
|
6926
6926
|
}
|
|
6927
6927
|
//#endregion
|
|
6928
|
+
//#region ---- Set Value Based on Mode ----
|
|
6929
|
+
// Apply strategy even when the value comes from outside (isUserInteraction=false).
|
|
6930
|
+
if (this.filterMode()) {
|
|
6931
|
+
// Filter mode: set value with operation structure
|
|
6932
|
+
const newValue = e.value;
|
|
6933
|
+
const text = this.selectedItems().map((item) => get(item, this.textField()));
|
|
6934
|
+
this.setValue({
|
|
6935
|
+
value: newValue,
|
|
6936
|
+
displayText: text,
|
|
6937
|
+
operation: {
|
|
6938
|
+
type: this.multiple() ? 'in' : 'equal',
|
|
6939
|
+
},
|
|
6940
|
+
});
|
|
6941
|
+
}
|
|
6928
6942
|
}
|
|
6929
|
-
|
|
6930
|
-
// Apply strategy even when the value comes from outside (isUserInteraction=false).
|
|
6931
|
-
if (this.filterMode()) {
|
|
6932
|
-
// Filter mode: set value with operation structure
|
|
6933
|
-
const newValue = e.value;
|
|
6934
|
-
const text = this.selectedItems().map((item) => get(item, this.textField()));
|
|
6935
|
-
this.setValue({
|
|
6936
|
-
value: newValue,
|
|
6937
|
-
displayText: text,
|
|
6938
|
-
operation: {
|
|
6939
|
-
type: this.multiple() ? 'in' : 'equal',
|
|
6940
|
-
},
|
|
6941
|
-
});
|
|
6942
|
-
}
|
|
6943
|
-
else {
|
|
6943
|
+
if (!this.filterMode()) {
|
|
6944
6944
|
// Normal mode: set value directly
|
|
6945
6945
|
if (this.widgetsConfigs.selectValueStrategy === 'valueField') {
|
|
6946
6946
|
this.setValue(e.value);
|