@bahmni/home-app 0.0.1-dev.385 → 0.0.1-dev.386
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-SqxTcjQX-BOqV_jZ5.js → DocumentsTable-Ce9p4WA6-Bp1qF5st.js} +21 -21
- package/dist/{FormsTable-fLpjpB_m-CD5BfMKk.js → FormsTable-BJBBdfzc-CS_2TX8e.js} +72 -72
- package/dist/{LNWAZHJI-DoCJ4uPN.js → LNWAZHJI-CVW346fV.js} +2 -2
- package/dist/{MWZ6AO7Z-gzTNDNc8.js → MWZ6AO7Z-C1WQZLVM.js} +2 -2
- package/dist/{Observations-c3MY7ts2-N08LGzeT.js → Observations-C3pfbHHQ-DCtdlVMK.js} +20 -20
- package/dist/{YPM2AS64-CBsfuLr7.js → YPM2AS64-BuDwVRGi.js} +138 -138
- package/dist/{index-TYOFs-NX.js → index-Bb6BpB8q.js} +16 -16
- package/dist/{index-DVf8ALSI.js → index-DZoI2hHO.js} +10145 -10145
- 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 p } from "react/jsx-runtime";
|
|
2
|
-
import { u as m, Z as b,
|
|
2
|
+
import { u as m, Z as b, r as y, s as H, t as N, Q as v, v as P, H as E, C as G, F as f, J as C, M as O, O as S } from "./index-DZoI2hHO.js";
|
|
3
3
|
import "react";
|
|
4
|
-
import { useQuery as
|
|
5
|
-
const L = "AppTile-module_tile__-CBFh", B = "AppTile-module_label__6vslD",
|
|
4
|
+
import { useQuery as T } from "@tanstack/react-query";
|
|
5
|
+
const L = "AppTile-module_tile__-CBFh", B = "AppTile-module_label__6vslD", F = "AppTile-module_bottom__lcJiG", d = {
|
|
6
6
|
tile: L,
|
|
7
7
|
label: B,
|
|
8
|
-
bottom:
|
|
9
|
-
},
|
|
8
|
+
bottom: F
|
|
9
|
+
}, M = ({ id: r, label: n, icon: s, url: l }) => {
|
|
10
10
|
const { t } = m(), i = t(n);
|
|
11
11
|
return /* @__PURE__ */ c(
|
|
12
12
|
b,
|
|
@@ -24,25 +24,25 @@ const L = "AppTile-module_tile__-CBFh", B = "AppTile-module_label__6vslD", A = "
|
|
|
24
24
|
]
|
|
25
25
|
}
|
|
26
26
|
);
|
|
27
|
-
},
|
|
28
|
-
container:
|
|
27
|
+
}, A = "HomePageGrid-module_container__Kxfim", k = "HomePageGrid-module_tileGrid__X6-Bm", x = "HomePageGrid-module_skeletonTile__U-1vu", D = "HomePageGrid-module_emptyState__xEwoK", K = "HomePageGrid-module_errorContainer__IKR3E", o = {
|
|
28
|
+
container: A,
|
|
29
29
|
tileGrid: k,
|
|
30
30
|
skeletonTile: x,
|
|
31
|
-
emptyState:
|
|
31
|
+
emptyState: D,
|
|
32
32
|
errorContainer: K
|
|
33
|
-
},
|
|
33
|
+
}, I = () => {
|
|
34
34
|
const { t: r } = m(), {
|
|
35
35
|
userPrivileges: n,
|
|
36
36
|
isLoading: s,
|
|
37
37
|
error: l
|
|
38
|
-
} =
|
|
38
|
+
} = v(), t = n?.map((a) => a.name) ?? null, {
|
|
39
39
|
data: i = [],
|
|
40
40
|
isLoading: _,
|
|
41
41
|
isError: u,
|
|
42
42
|
refetch: h
|
|
43
|
-
} =
|
|
43
|
+
} = T({
|
|
44
44
|
queryKey: ["home-modules", t],
|
|
45
|
-
queryFn: () =>
|
|
45
|
+
queryFn: () => P("org.bahmni.home.dashboard", t),
|
|
46
46
|
enabled: !s && l === null && t !== null
|
|
47
47
|
});
|
|
48
48
|
return s || _ || t === null && !l ? /* @__PURE__ */ e(
|
|
@@ -75,7 +75,7 @@ const L = "AppTile-module_tile__-CBFh", B = "AppTile-module_label__6vslD", A = "
|
|
|
75
75
|
)
|
|
76
76
|
}
|
|
77
77
|
) : i.length === 0 ? /* @__PURE__ */ e("div", { className: o.emptyState, role: "status", children: r("HOME_NO_MODULES") }) : /* @__PURE__ */ e("div", { className: o.container, children: /* @__PURE__ */ e("div", { className: o.tileGrid, children: i.map((a) => /* @__PURE__ */ e(
|
|
78
|
-
|
|
78
|
+
M,
|
|
79
79
|
{
|
|
80
80
|
id: a.id,
|
|
81
81
|
label: a.translationKey ?? a.label,
|
|
@@ -87,7 +87,7 @@ const L = "AppTile-module_tile__-CBFh", B = "AppTile-module_label__6vslD", A = "
|
|
|
87
87
|
}, $ = "HomePageHeader-module_locationSelector__foYmn", R = {
|
|
88
88
|
locationSelector: $
|
|
89
89
|
}, U = () => /* @__PURE__ */ e(
|
|
90
|
-
|
|
90
|
+
C,
|
|
91
91
|
{
|
|
92
92
|
ariaLabel: "Bahmni",
|
|
93
93
|
brandPrefix: "Home",
|
|
@@ -95,13 +95,13 @@ const L = "AppTile-module_tile__-CBFh", B = "AppTile-module_label__6vslD", A = "
|
|
|
95
95
|
globalFeatures: [
|
|
96
96
|
/* @__PURE__ */ e("div", { className: R.locationSelector, children: /* @__PURE__ */ e(S, {}) }, "location")
|
|
97
97
|
],
|
|
98
|
-
userMenu: /* @__PURE__ */ e(
|
|
98
|
+
userMenu: /* @__PURE__ */ e(O, {})
|
|
99
99
|
}
|
|
100
100
|
), q = "HomePage-module_homePageBody__0qtrS", z = {
|
|
101
101
|
homePageBody: q
|
|
102
102
|
}, X = () => /* @__PURE__ */ c(p, { children: [
|
|
103
103
|
/* @__PURE__ */ e(U, {}),
|
|
104
|
-
/* @__PURE__ */ e("main", { className: z.homePageBody, children: /* @__PURE__ */ e(
|
|
104
|
+
/* @__PURE__ */ e("main", { className: z.homePageBody, children: /* @__PURE__ */ e(I, {}) })
|
|
105
105
|
] });
|
|
106
106
|
export {
|
|
107
107
|
X as HomePage
|