@bahmni/home-app 0.0.1-dev.416 → 0.0.1-dev.418
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/{DocumentsTable-DB43_g0I-DVeXFUz-.js → DocumentsTable-BFjFkIDL-CEPxRXpK.js} +1 -1
- package/dist/{FormsTable-D3g1YlR1-CGrVhYk8.js → FormsTable-Daf5mako-Bhyinkwn.js} +55 -55
- package/dist/{LNWAZHJI-Ct4jdi7T.js → LNWAZHJI-tPeRWToE.js} +2 -2
- package/dist/{MWZ6AO7Z-DMGMtomX.js → MWZ6AO7Z-DZ_Q6dpm.js} +2 -2
- package/dist/{Observations-DrckbD6x-DtlIm_jz.js → Observations-Du-ru99Y-BYnJFA7X.js} +63 -63
- package/dist/{YPM2AS64-ClhJMvAj.js → YPM2AS64-CmAt8ZAq.js} +1 -1
- package/dist/{index-CEBQlhug.js → index-BQYW4q1k.js} +16893 -16893
- package/dist/{index-CACwfguy.js → index-DZccYhuY.js} +19 -19
- package/dist/index.js +1 -1
- package/package.json +1 -1
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
import { jsxs as c, jsx as e, Fragment as b } from "react/jsx-runtime";
|
|
2
|
-
import { u as m,
|
|
2
|
+
import { u as m, W as p, D as y, G as H, H as N, e as E, Z as P, I as G, K as v, M as f, Q as L, U as O, X as S } from "./index-BQYW4q1k.js";
|
|
3
3
|
import "react";
|
|
4
4
|
import { useQuery as T } from "@tanstack/react-query";
|
|
5
|
-
const C = "AppTile-module_tile__-CBFh", B = "AppTile-module_label__6vslD",
|
|
5
|
+
const C = "AppTile-module_tile__-CBFh", B = "AppTile-module_label__6vslD", M = "AppTile-module_bottom__lcJiG", d = {
|
|
6
6
|
tile: C,
|
|
7
7
|
label: B,
|
|
8
|
-
bottom:
|
|
9
|
-
},
|
|
8
|
+
bottom: M
|
|
9
|
+
}, A = ({ id: o, label: n, icon: s, url: l }) => {
|
|
10
10
|
const { t } = m(), i = t(n);
|
|
11
11
|
return /* @__PURE__ */ c(
|
|
12
12
|
p,
|
|
@@ -18,24 +18,24 @@ const C = "AppTile-module_tile__-CBFh", B = "AppTile-module_label__6vslD", A = "
|
|
|
18
18
|
children: [
|
|
19
19
|
/* @__PURE__ */ e("h2", { className: d.label, "aria-hidden": "true", children: i }),
|
|
20
20
|
/* @__PURE__ */ c("div", { className: d.bottom, children: [
|
|
21
|
-
/* @__PURE__ */ e(y, { name: s, id: o, size:
|
|
22
|
-
/* @__PURE__ */ e(
|
|
21
|
+
/* @__PURE__ */ e(y, { name: s, id: o, size: H.X2, "aria-hidden": "true" }),
|
|
22
|
+
/* @__PURE__ */ e(N, { size: 20, "aria-hidden": "true" })
|
|
23
23
|
] })
|
|
24
24
|
]
|
|
25
25
|
}
|
|
26
26
|
);
|
|
27
|
-
},
|
|
28
|
-
container:
|
|
29
|
-
tileGrid:
|
|
30
|
-
skeletonTile:
|
|
31
|
-
emptyState:
|
|
27
|
+
}, K = "HomePageGrid-module_container__Kxfim", k = "HomePageGrid-module_tileGrid__X6-Bm", x = "HomePageGrid-module_skeletonTile__U-1vu", F = "HomePageGrid-module_emptyState__xEwoK", I = "HomePageGrid-module_errorContainer__IKR3E", r = {
|
|
28
|
+
container: K,
|
|
29
|
+
tileGrid: k,
|
|
30
|
+
skeletonTile: x,
|
|
31
|
+
emptyState: F,
|
|
32
32
|
errorContainer: I
|
|
33
33
|
}, D = () => {
|
|
34
34
|
const { t: o } = m(), {
|
|
35
35
|
userPrivileges: n,
|
|
36
36
|
isLoading: s,
|
|
37
37
|
error: l
|
|
38
|
-
} =
|
|
38
|
+
} = E(), t = n?.map((a) => a.name) ?? null, {
|
|
39
39
|
data: i = [],
|
|
40
40
|
isLoading: _,
|
|
41
41
|
isError: u,
|
|
@@ -53,9 +53,9 @@ const C = "AppTile-module_tile__-CBFh", B = "AppTile-module_label__6vslD", A = "
|
|
|
53
53
|
"aria-label": o("HOME_LOADING_MODULES"),
|
|
54
54
|
"aria-busy": "true",
|
|
55
55
|
children: /* @__PURE__ */ e("div", { className: r.tileGrid, children: Array.from(
|
|
56
|
-
{ length:
|
|
56
|
+
{ length: G },
|
|
57
57
|
(a, g) => `skeleton-${g}`
|
|
58
|
-
).map((a) => /* @__PURE__ */ e(
|
|
58
|
+
).map((a) => /* @__PURE__ */ e(v, { className: r.skeletonTile }, a)) })
|
|
59
59
|
}
|
|
60
60
|
) : l || u ? /* @__PURE__ */ e(
|
|
61
61
|
"div",
|
|
@@ -75,7 +75,7 @@ const C = "AppTile-module_tile__-CBFh", B = "AppTile-module_label__6vslD", A = "
|
|
|
75
75
|
)
|
|
76
76
|
}
|
|
77
77
|
) : i.length === 0 ? /* @__PURE__ */ e("div", { className: r.emptyState, role: "status", children: o("HOME_NO_MODULES") }) : /* @__PURE__ */ e("div", { className: r.container, children: /* @__PURE__ */ e("div", { className: r.tileGrid, children: i.map((a) => /* @__PURE__ */ e(
|
|
78
|
-
|
|
78
|
+
A,
|
|
79
79
|
{
|
|
80
80
|
id: a.id,
|
|
81
81
|
label: a.translationKey ?? a.label,
|
|
@@ -100,12 +100,12 @@ const C = "AppTile-module_tile__-CBFh", B = "AppTile-module_label__6vslD", A = "
|
|
|
100
100
|
userMenu: /* @__PURE__ */ e(O, {})
|
|
101
101
|
}
|
|
102
102
|
);
|
|
103
|
-
},
|
|
104
|
-
homePageBody:
|
|
105
|
-
},
|
|
103
|
+
}, q = "HomePage-module_homePageBody__0qtrS", j = {
|
|
104
|
+
homePageBody: q
|
|
105
|
+
}, W = () => /* @__PURE__ */ c(b, { children: [
|
|
106
106
|
/* @__PURE__ */ e($, {}),
|
|
107
107
|
/* @__PURE__ */ e("main", { className: j.homePageBody, children: /* @__PURE__ */ e(D, {}) })
|
|
108
108
|
] });
|
|
109
109
|
export {
|
|
110
|
-
|
|
110
|
+
W as HomePage
|
|
111
111
|
};
|
package/dist/index.js
CHANGED