@dartech/arsenal-ui 1.4.56 → 1.4.57
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/index.js +16 -11
- package/package.json +1 -1
package/index.js
CHANGED
@@ -2261,10 +2261,15 @@ const propertiesArrayToObject = (properties, isGlobalParameter) => {
|
|
2261
2261
|
resultProperty['isViewableInList'] = property.isViewableInList;
|
2262
2262
|
}
|
2263
2263
|
if (uiSettings) {
|
2264
|
-
|
2265
|
-
|
2266
|
-
|
2267
|
-
|
2264
|
+
if (typeof uiSettings === 'string') {
|
2265
|
+
try {
|
2266
|
+
resultProperty.uiSettings = JSON.parse(uiSettings);
|
2267
|
+
} catch (e) {
|
2268
|
+
console.log(e);
|
2269
|
+
resultProperty.uiSettings = uiSettings;
|
2270
|
+
}
|
2271
|
+
} else {
|
2272
|
+
resultProperty.uiSettings = uiSettings;
|
2268
2273
|
}
|
2269
2274
|
} else {
|
2270
2275
|
resultProperty.uiSettings = null;
|
@@ -2312,13 +2317,13 @@ function propertiesObjectToArray(properties, fields) {
|
|
2312
2317
|
propObj.defaultValue = '';
|
2313
2318
|
}
|
2314
2319
|
}
|
2315
|
-
if (propObj['uiSettings']) {
|
2316
|
-
|
2317
|
-
|
2318
|
-
|
2319
|
-
|
2320
|
-
|
2321
|
-
}
|
2320
|
+
// if (propObj['uiSettings']) {
|
2321
|
+
// try {
|
2322
|
+
// propObj.uiSettings = JSON.stringify(propObj.uiSettings, null, 2);
|
2323
|
+
// } catch (error) {
|
2324
|
+
// propObj.uiSettings = '';
|
2325
|
+
// }
|
2326
|
+
// }
|
2322
2327
|
if (propObj['isMultiple']) {
|
2323
2328
|
if ('defaultValues' in propObj) {
|
2324
2329
|
propObj['defaultValue'] = propObj.defaultValues;
|