@dartech/arsenal-ui 1.4.14 → 1.4.16
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 +1 -7
- package/package.json +1 -1
package/index.js
CHANGED
@@ -1530,6 +1530,7 @@ const formatPropertyValue = (propertyType, value, params) => {
|
|
1530
1530
|
if (value === null || value === undefined) {
|
1531
1531
|
return null;
|
1532
1532
|
}
|
1533
|
+
if (isExpression(value)) return value;
|
1533
1534
|
let parsedValue = value;
|
1534
1535
|
// console.log(value);
|
1535
1536
|
switch (propertyType) {
|
@@ -5967,7 +5968,6 @@ const PropertyFiller = ({
|
|
5967
5968
|
useEffect(() => {
|
5968
5969
|
var _a;
|
5969
5970
|
if (!isDirty && isPropertyValueEmpty(value)) {
|
5970
|
-
console.log('setDefaultValue');
|
5971
5971
|
if (property.isRequired && (property.defaultValue === null || property.value === null)) {
|
5972
5972
|
setValue(name, (_a = prevValueRef.current[fillOption]) !== null && _a !== void 0 ? _a : defaultProperyValue, {
|
5973
5973
|
shouldDirty: true
|
@@ -5979,12 +5979,6 @@ const PropertyFiller = ({
|
|
5979
5979
|
}
|
5980
5980
|
}
|
5981
5981
|
}, [value, property, name, fillOption, isDirty, setValue, defaultProperyValue]);
|
5982
|
-
useEffect(() => {
|
5983
|
-
if (!isPropertyValueEmpty(value) && property.propertyType !== PropertyType.JSON) {
|
5984
|
-
console.log('setValue');
|
5985
|
-
setValue(name, value);
|
5986
|
-
}
|
5987
|
-
}, [name, setValue, value, property]);
|
5988
5982
|
return jsxs(Grid, Object.assign({
|
5989
5983
|
xs: 12
|
5990
5984
|
}, {
|