@firecms/core 3.0.0-canary.103 → 3.0.0-canary.104
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/index.es.js +5 -1
- package/dist/index.es.js.map +1 -1
- package/dist/index.umd.js +5 -1
- package/dist/index.umd.js.map +1 -1
- package/dist/types/collections.d.ts +6 -1
- package/dist/types/navigation.d.ts +1 -0
- package/package.json +5 -5
- package/src/form/field_bindings/ReferenceFieldBinding.tsx +5 -4
- package/src/types/collections.ts +7 -1
- package/src/types/navigation.ts +1 -0
- package/src/util/references.ts +3 -0
package/dist/index.umd.js
CHANGED
|
@@ -2885,6 +2885,9 @@
|
|
|
2885
2885
|
function getEntityPreviewKeys(targetCollection, fields, previewProperties, limit = 3) {
|
|
2886
2886
|
const allProperties = Object.keys(targetCollection.properties);
|
|
2887
2887
|
let listProperties = previewProperties?.filter((p) => allProperties.includes(p));
|
|
2888
|
+
if (!listProperties && targetCollection.previewProperties) {
|
|
2889
|
+
listProperties = targetCollection.previewProperties?.filter((p) => allProperties.includes(p));
|
|
2890
|
+
}
|
|
2888
2891
|
if (listProperties && listProperties.length > 0) {
|
|
2889
2892
|
return listProperties;
|
|
2890
2893
|
} else {
|
|
@@ -14779,6 +14782,7 @@
|
|
|
14779
14782
|
showError,
|
|
14780
14783
|
isSubmitting,
|
|
14781
14784
|
disabled,
|
|
14785
|
+
minimalistView,
|
|
14782
14786
|
touched,
|
|
14783
14787
|
autoFocus,
|
|
14784
14788
|
property,
|
|
@@ -14819,7 +14823,7 @@
|
|
|
14819
14823
|
referenceDialogController.open();
|
|
14820
14824
|
}, [referenceDialogController]);
|
|
14821
14825
|
return /* @__PURE__ */ jsxRuntime.jsxs(jsxRuntime.Fragment, { children: [
|
|
14822
|
-
/* @__PURE__ */ jsxRuntime.jsx(
|
|
14826
|
+
!minimalistView && /* @__PURE__ */ jsxRuntime.jsx(
|
|
14823
14827
|
LabelWithIcon,
|
|
14824
14828
|
{
|
|
14825
14829
|
icon: getIconForProperty(property, "small"),
|