@rangertechnologies/ngnxt 2.1.256 → 2.1.257
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.
|
@@ -60347,7 +60347,7 @@ const VERSION = {
|
|
|
60347
60347
|
"semver": null,
|
|
60348
60348
|
"suffix": "09440148-dirty",
|
|
60349
60349
|
"semverString": null,
|
|
60350
|
-
"version": "2.1.
|
|
60350
|
+
"version": "2.1.257"
|
|
60351
60351
|
};
|
|
60352
60352
|
/* tslint:enable */
|
|
60353
60353
|
|
|
@@ -63298,7 +63298,11 @@ class FormBuilderService {
|
|
|
63298
63298
|
stringArrayFields.forEach(key => {
|
|
63299
63299
|
const value = element.subText[key];
|
|
63300
63300
|
if (typeof value === 'string') {
|
|
63301
|
-
|
|
63301
|
+
const items = value.split(',').map(item => item.trim()).filter(item => item !== '');
|
|
63302
|
+
element.subText[key] = items.length > 0 ? items : null;
|
|
63303
|
+
}
|
|
63304
|
+
else if (Array.isArray(value)) {
|
|
63305
|
+
element.subText[key] = value.length > 0 ? value : null;
|
|
63302
63306
|
}
|
|
63303
63307
|
});
|
|
63304
63308
|
}
|
|
@@ -63308,7 +63312,11 @@ class FormBuilderService {
|
|
|
63308
63312
|
stringArrayFields.forEach(key => {
|
|
63309
63313
|
const value = field.question.subText[key];
|
|
63310
63314
|
if (typeof value === 'string') {
|
|
63311
|
-
|
|
63315
|
+
const items = value.split(',').map(item => item.trim()).filter(item => item !== '');
|
|
63316
|
+
field.question.subText[key] = items.length > 0 ? items : null;
|
|
63317
|
+
}
|
|
63318
|
+
else if (Array.isArray(value)) {
|
|
63319
|
+
field.question.subText[key] = value.length > 0 ? value : null;
|
|
63312
63320
|
}
|
|
63313
63321
|
});
|
|
63314
63322
|
}
|
|
@@ -63518,7 +63526,10 @@ class PropertiesComponent {
|
|
|
63518
63526
|
if (subText) {
|
|
63519
63527
|
arrayFields.forEach(key => {
|
|
63520
63528
|
if (Array.isArray(subText[key])) {
|
|
63521
|
-
|
|
63529
|
+
const trimmed = subText[key]
|
|
63530
|
+
.map(item => item?.toString().trim())
|
|
63531
|
+
.filter(item => item); // removes empty strings, null, undefined
|
|
63532
|
+
subText[key] = trimmed.length > 0 ? trimmed.join(', ') : null;
|
|
63522
63533
|
}
|
|
63523
63534
|
});
|
|
63524
63535
|
}
|
|
@@ -63527,7 +63538,10 @@ class PropertiesComponent {
|
|
|
63527
63538
|
if (field?.question?.subText) {
|
|
63528
63539
|
arrayFields.forEach(key => {
|
|
63529
63540
|
if (Array.isArray(field.question.subText[key])) {
|
|
63530
|
-
|
|
63541
|
+
const trimmed = field.question.subText[key]
|
|
63542
|
+
.map(item => item?.toString().trim())
|
|
63543
|
+
.filter(item => item); // removes empty strings, null, undefined
|
|
63544
|
+
field.question.subText[key] = trimmed.length > 0 ? trimmed.join(', ') : null;
|
|
63531
63545
|
}
|
|
63532
63546
|
});
|
|
63533
63547
|
}
|
|
@@ -64067,7 +64081,10 @@ class PropertiesComponent {
|
|
|
64067
64081
|
if (subText) {
|
|
64068
64082
|
arrayFields.forEach(key => {
|
|
64069
64083
|
if (Array.isArray(subText[key])) {
|
|
64070
|
-
|
|
64084
|
+
const trimmed = subText[key]
|
|
64085
|
+
.map(item => item?.toString().trim())
|
|
64086
|
+
.filter(item => item); // removes empty strings, null, undefined
|
|
64087
|
+
subText[key] = trimmed.length > 0 ? trimmed.join(', ') : null;
|
|
64071
64088
|
}
|
|
64072
64089
|
});
|
|
64073
64090
|
}
|
|
@@ -64076,7 +64093,10 @@ class PropertiesComponent {
|
|
|
64076
64093
|
if (field?.question?.subText) {
|
|
64077
64094
|
arrayFields.forEach(key => {
|
|
64078
64095
|
if (Array.isArray(field.question.subText[key])) {
|
|
64079
|
-
|
|
64096
|
+
const trimmed = field.question.subText[key]
|
|
64097
|
+
.map(item => item?.toString().trim())
|
|
64098
|
+
.filter(item => item); // removes empty strings, null, undefined
|
|
64099
|
+
field.question.subText[key] = trimmed.length > 0 ? trimmed.join(', ') : null;
|
|
64080
64100
|
}
|
|
64081
64101
|
});
|
|
64082
64102
|
}
|