@dartech/arsenal-ui 1.4.55 → 1.4.57
Sign up to get free protection for your applications and to get access to all the features.
- package/index.js +9 -4
- package/package.json +1 -1
- package/src/interfaces/definition.d.ts +8 -2
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;
|
package/package.json
CHANGED
@@ -37,11 +37,17 @@ export interface UiSettings {
|
|
37
37
|
name?: string;
|
38
38
|
paramJson?: {
|
39
39
|
size?: number;
|
40
|
-
type?: 'email' | 'phone' | 'iin' | 'currency' | 'iban';
|
40
|
+
type?: 'email' | 'phone' | 'iin' | 'currency' | 'iban' | 'radio';
|
41
|
+
radioValues?: string[] | {
|
42
|
+
value: string | boolean;
|
43
|
+
label: string;
|
44
|
+
}[];
|
41
45
|
maxLength?: number;
|
42
46
|
};
|
43
47
|
behaviorJson: {
|
44
|
-
|
48
|
+
showDependOn?: string;
|
49
|
+
hideDependOn?: string;
|
50
|
+
copyValueFrom?: string;
|
45
51
|
};
|
46
52
|
}
|
47
53
|
export interface Property {
|