@applica-software-guru/react-admin 1.5.258 → 1.5.259
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/components/ra-fields/AttachmentField.d.ts +2 -2
- package/dist/react-admin.cjs.js +1 -1
- package/dist/react-admin.cjs.js.map +1 -1
- package/dist/react-admin.es.js +2 -2
- package/dist/react-admin.es.js.map +1 -1
- package/dist/react-admin.umd.js +1 -1
- package/dist/react-admin.umd.js.map +1 -1
- package/package.json +1 -1
- package/src/components/ra-fields/AttachmentField.tsx +3 -3
- package/src/components/ra-inputs/AttachmentInput.tsx +1 -1
package/dist/react-admin.es.js
CHANGED
|
@@ -23640,7 +23640,7 @@ function kne({
|
|
|
23640
23640
|
async (C) => {
|
|
23641
23641
|
C.preventDefault(), C.stopPropagation();
|
|
23642
23642
|
const w = yt.get(d, s == null ? void 0 : s.source), I = a || h.replace("entities/", ""), M = e || (d == null ? void 0 : d.id), S = await p.getFile(
|
|
23643
|
-
`/attachments/${I}/${M
|
|
23643
|
+
`/attachments/${I}/${M}/${t || (s == null ? void 0 : s.source)}/${(w == null ? void 0 : w.id) || (d == null ? void 0 : d.id)}`
|
|
23644
23644
|
), P = document.createElement("a");
|
|
23645
23645
|
P.href = S, P.download = yt.get(d, (s == null ? void 0 : s.title) || (s == null ? void 0 : s.source)), P.click();
|
|
23646
23646
|
},
|
|
@@ -24064,7 +24064,7 @@ function wce({
|
|
|
24064
24064
|
}) {
|
|
24065
24065
|
const a = sn(o), s = o == null ? void 0 : o.source, c = a == null ? void 0 : a.id;
|
|
24066
24066
|
return Vm({ source: `__${r}__${o == null ? void 0 : o.source}`, defaultValue: o == null ? void 0 : o.source }), /** @ts-ignore */
|
|
24067
|
-
/* @__PURE__ */ m(Nn, { ...o, disabled: n, children: /* @__PURE__ */ m(ere, { type: r, multiple: t, disabled: n, children: Fe.cloneElement(e, {
|
|
24067
|
+
/* @__PURE__ */ m(Nn, { ...o, disabled: n, children: /* @__PURE__ */ m(ere, { type: r, multiple: t, disabled: n, children: Fe.cloneElement(e, { entityId: c, property: s, ...e.props }) }) });
|
|
24068
24068
|
}
|
|
24069
24069
|
const tre = ce(B8, {
|
|
24070
24070
|
name: "StyledAutocompleteInput",
|