@integry/sdk 4.5.33 → 4.5.35
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/package.json
CHANGED
|
@@ -181,7 +181,9 @@ class FunctionForm extends Component<
|
|
|
181
181
|
value === 1;
|
|
182
182
|
break;
|
|
183
183
|
case 'number':
|
|
184
|
-
|
|
184
|
+
if (value) {
|
|
185
|
+
value = Number(value);
|
|
186
|
+
}
|
|
185
187
|
break;
|
|
186
188
|
case 'string':
|
|
187
189
|
value = String(value);
|
|
@@ -215,7 +217,9 @@ class FunctionForm extends Component<
|
|
|
215
217
|
}
|
|
216
218
|
|
|
217
219
|
// Assign the correctly cast value to args
|
|
218
|
-
|
|
220
|
+
if (value) {
|
|
221
|
+
args[key] = value;
|
|
222
|
+
}
|
|
219
223
|
});
|
|
220
224
|
|
|
221
225
|
this.props.onClose(args);
|
|
@@ -481,6 +485,7 @@ class FunctionForm extends Component<
|
|
|
481
485
|
? fieldDetails.items.properties || {}
|
|
482
486
|
: fieldDetails.properties || {},
|
|
483
487
|
dependsOn: fieldDetails.meta.ui?.depends_on || [],
|
|
488
|
+
isVisible: fieldDetails.meta.ui?.is_visible,
|
|
484
489
|
}),
|
|
485
490
|
);
|
|
486
491
|
|
|
@@ -497,6 +502,10 @@ class FunctionForm extends Component<
|
|
|
497
502
|
value: option.value,
|
|
498
503
|
}));
|
|
499
504
|
|
|
505
|
+
if (!field.isVisible) {
|
|
506
|
+
return null;
|
|
507
|
+
}
|
|
508
|
+
|
|
500
509
|
switch (field.type) {
|
|
501
510
|
case 'TEXTFIELD':
|
|
502
511
|
fieldElement = html`
|