ui-core-abv 0.6.66 → 0.6.68
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/fesm2022/ui-core-abv.mjs
CHANGED
|
@@ -9072,7 +9072,7 @@ class RuleDefinirionComponent {
|
|
|
9072
9072
|
this.trackingField = fcode;
|
|
9073
9073
|
this.initialValues = { ...fr, value: '' };
|
|
9074
9074
|
const field = this.mainConditionFieldsData.find(f => f.id === fcode);
|
|
9075
|
-
this.fields = [...this.buildFields(field?.type, field?.options)];
|
|
9075
|
+
this.fields = [...this.buildFields(field?.type || 'text', field?.options)];
|
|
9076
9076
|
}
|
|
9077
9077
|
get filteredConditions() {
|
|
9078
9078
|
const normalizedSearch = this.normalizeText(this.searchTerm);
|
|
@@ -9150,7 +9150,7 @@ class RuleDefinirionComponent {
|
|
|
9150
9150
|
const regex = new RegExp(`(${escapedQuery})`, 'gi');
|
|
9151
9151
|
return this.escapeHtml(text).replace(regex, '<mark>$1</mark>');
|
|
9152
9152
|
}
|
|
9153
|
-
buildFields(type = '
|
|
9153
|
+
buildFields(type = 'text', options) {
|
|
9154
9154
|
const fields = [
|
|
9155
9155
|
{
|
|
9156
9156
|
name: 'fieldCode',
|
|
@@ -9187,7 +9187,7 @@ class RuleDefinirionComponent {
|
|
|
9187
9187
|
required: true
|
|
9188
9188
|
});
|
|
9189
9189
|
}
|
|
9190
|
-
else
|
|
9190
|
+
else {
|
|
9191
9191
|
fields.push({
|
|
9192
9192
|
name: 'value',
|
|
9193
9193
|
label: this.translate.translate('rule_builder.definition.form.value'),
|