@applica-software-guru/react-admin 1.0.31 → 1.0.32
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/react-admin.es.js
CHANGED
|
@@ -21999,7 +21999,7 @@ const tz = "RaApplicaBaseAttachmentField", RC = ie("div", {
|
|
|
21999
21999
|
const [r, s] = At(null), a = jt(n), l = Zu(), u = Pn(), g = xt(
|
|
22000
22000
|
async (E) => {
|
|
22001
22001
|
E.preventDefault(), E.stopPropagation();
|
|
22002
|
-
const h = ft.get(a, n == null ? void 0 : n.source), I = u.replace("
|
|
22002
|
+
const h = ft.get(a, n == null ? void 0 : n.source), I = u.replace("entities/", ""), B = await l.getFile(
|
|
22003
22003
|
`/attachments/${I}/${e || (a == null ? void 0 : a.id)}/${t || (n == null ? void 0 : n.source)}/${(h == null ? void 0 : h.id) || (a == null ? void 0 : a.id)}`
|
|
22004
22004
|
), Q = document.createElement("a");
|
|
22005
22005
|
Q.href = B, Q.download = ft.get(a, (n == null ? void 0 : n.title) || (n == null ? void 0 : n.source)), Q.click();
|
|
@@ -22014,7 +22014,7 @@ const tz = "RaApplicaBaseAttachmentField", RC = ie("div", {
|
|
|
22014
22014
|
[a, n == null ? void 0 : n.source, n == null ? void 0 : n.title]
|
|
22015
22015
|
), p = Xn();
|
|
22016
22016
|
return kt(() => {
|
|
22017
|
-
!a || !(a != null && a.userId) || l.getOne("
|
|
22017
|
+
!a || !(a != null && a.userId) || l.getOne("entities/user", { id: a == null ? void 0 : a.userId }).then(({ data: E }) => s(E));
|
|
22018
22018
|
}, [a, l]), /* @__PURE__ */ C(
|
|
22019
22019
|
kQ,
|
|
22020
22020
|
{
|