ngx-wapp-components 3.3.3-alpha.2 → 3.3.3-alpha.4
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.
|
@@ -6273,7 +6273,8 @@ class WFilterPanelComponent {
|
|
|
6273
6273
|
field: r.field,
|
|
6274
6274
|
operator: r.operator,
|
|
6275
6275
|
value: r.value,
|
|
6276
|
-
entity: this.entities.find(e => e.fieldJsonName == r.field).entity
|
|
6276
|
+
entity: this.entities.find(e => e.fieldJsonName == r.field).entity,
|
|
6277
|
+
disabledControl: r.disabledControl ?? this.basicQueryConfig.fields[r.field]?.disabledControl ?? false
|
|
6277
6278
|
};
|
|
6278
6279
|
});
|
|
6279
6280
|
}
|
|
@@ -6450,7 +6451,7 @@ class WFilterPanelComponent {
|
|
|
6450
6451
|
const defaultValue = Object.prototype.hasOwnProperty.call(this.defaultFieldValues, filterField.jsonName)
|
|
6451
6452
|
? this.defaultFieldValues[filterField.jsonName]
|
|
6452
6453
|
: apiDefaultValue;
|
|
6453
|
-
console.log(
|
|
6454
|
+
console.log(defaultValue);
|
|
6454
6455
|
let field = {
|
|
6455
6456
|
id: filterField.id,
|
|
6456
6457
|
name: filterField.name,
|
|
@@ -6532,7 +6533,10 @@ class WFilterPanelComponent {
|
|
|
6532
6533
|
if (type == this.qbDataTypeEnum.BooleanSelect) {
|
|
6533
6534
|
return 1;
|
|
6534
6535
|
}
|
|
6535
|
-
if (type == this.qbDataTypeEnum.Multiselect && typeof value === 'string') {
|
|
6536
|
+
if (type == this.qbDataTypeEnum.Multiselect && (typeof value === 'string' || Array.isArray(value))) {
|
|
6537
|
+
if (Array.isArray(value)) {
|
|
6538
|
+
return value;
|
|
6539
|
+
}
|
|
6536
6540
|
return this.parseStringToNumberArray(value);
|
|
6537
6541
|
}
|
|
6538
6542
|
if (type == this.qbDataTypeEnum.TranslatedSelect) {
|