@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 CHANGED
@@ -2261,10 +2261,15 @@ const propertiesArrayToObject = (properties, isGlobalParameter) => {
2261
2261
  resultProperty['isViewableInList'] = property.isViewableInList;
2262
2262
  }
2263
2263
  if (uiSettings) {
2264
- try {
2265
- resultProperty.uiSettings = JSON.parse(uiSettings);
2266
- } catch (e) {
2267
- console.log(e);
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
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@dartech/arsenal-ui",
3
- "version": "1.4.55",
3
+ "version": "1.4.57",
4
4
  "author": "DAR",
5
5
  "publishConfig": {
6
6
  "registry": "https://registry.npmjs.org/"
@@ -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
- displayDependOn?: string;
48
+ showDependOn?: string;
49
+ hideDependOn?: string;
50
+ copyValueFrom?: string;
45
51
  };
46
52
  }
47
53
  export interface Property {