@acvl/frontend-components 0.0.22 → 0.0.23
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/dist/cjs/index.js +2 -2
- package/dist/cjs/index.js.map +1 -1
- package/dist/esm/index.js +2 -2
- package/dist/esm/index.js.map +1 -1
- package/package.json +1 -1
package/dist/cjs/index.js
CHANGED
|
@@ -27944,7 +27944,7 @@ const DetailField = (props) => {
|
|
|
27944
27944
|
}
|
|
27945
27945
|
}
|
|
27946
27946
|
return 'N/A';
|
|
27947
|
-
}, [props.detail_name, props.fieldData, props.type.
|
|
27947
|
+
}, [props.detail_name, props.fieldData, props.type.displayName]);
|
|
27948
27948
|
const content = `${props.detailFieldProps?.preValue ? props.detailFieldProps.preValue : ''} ${value()} ${props.detailFieldProps?.postValue ? props.detailFieldProps.postValue : ''}`;
|
|
27949
27949
|
if (props.navigation && hasLinkToViewPermission && props.fieldData && typeof props.fieldData == 'object') {
|
|
27950
27950
|
if (Array.isArray(props.fieldData)) {
|
|
@@ -27952,7 +27952,7 @@ const DetailField = (props) => {
|
|
|
27952
27952
|
}
|
|
27953
27953
|
return (jsxRuntime.jsx(LinkField, { url: props.navigation.url, value: lodash.get(props.fieldData, 'value'), text: content }));
|
|
27954
27954
|
}
|
|
27955
|
-
else if (props.type.
|
|
27955
|
+
else if (props.type.displayName == 'ControlledPhotoField') {
|
|
27956
27956
|
return (jsxRuntime.jsx(material.Link, { href: props.fieldData, download: "filename.pdf", children: content }));
|
|
27957
27957
|
}
|
|
27958
27958
|
else {
|