@bahmni/home-app 0.0.1-dev.411 → 0.0.1-dev.414
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-d1TJP4VT-C9TkFTYY.js → DocumentsTable-C_8zPark-BH65n_F7.js} +1 -1
- package/dist/{FormsTable-CieUtVH3-dBL4kvLS.js → FormsTable-XGVu_1HW-DPWCW7be.js} +61 -61
- package/dist/{LNWAZHJI-Q6camYAw.js → LNWAZHJI-KhAfet7k.js} +2 -2
- package/dist/{MWZ6AO7Z-tuOR5XdU.js → MWZ6AO7Z-CihfSgLp.js} +2 -2
- package/dist/Observations-CygRW6N8-CnR2xEa5.js +246 -0
- package/dist/{YPM2AS64-B_fCLwCP.js → YPM2AS64-0_UGaUB4.js} +1 -1
- package/dist/{index---UFZztp.js → index-BqD3QPAF.js} +25 -25
- package/dist/{index-BBLFn5Hb.js → index-OGYRfilO.js} +8010 -8003
- package/dist/index.css +1 -1
- package/dist/index.js +1 -1
- package/package.json +1 -1
- package/dist/Observations-ChKkOtyn-Bw_s1Kkf.js +0 -246
|
@@ -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, D as p, E as y, I as E, J as H, e as N, K as P, L as v, Q as G, R as f, U as L, X as O, Z as S } from "./index-OGYRfilO.js";
|
|
3
3
|
import "react";
|
|
4
|
-
import { useQuery as
|
|
5
|
-
const C = "AppTile-module_tile__-CBFh", B = "AppTile-module_label__6vslD",
|
|
4
|
+
import { useQuery as T } from "@tanstack/react-query";
|
|
5
|
+
const C = "AppTile-module_tile__-CBFh", B = "AppTile-module_label__6vslD", A = "AppTile-module_bottom__lcJiG", d = {
|
|
6
6
|
tile: C,
|
|
7
7
|
label: B,
|
|
8
|
-
bottom:
|
|
9
|
-
},
|
|
8
|
+
bottom: A
|
|
9
|
+
}, M = ({ 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,29 +18,29 @@ const C = "AppTile-module_tile__-CBFh", B = "AppTile-module_label__6vslD", M = "
|
|
|
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:
|
|
21
|
+
/* @__PURE__ */ e(y, { name: s, id: o, size: E.X2, "aria-hidden": "true" }),
|
|
22
22
|
/* @__PURE__ */ e(H, { size: 20, "aria-hidden": "true" })
|
|
23
23
|
] })
|
|
24
24
|
]
|
|
25
25
|
}
|
|
26
26
|
);
|
|
27
|
-
},
|
|
28
|
-
container:
|
|
29
|
-
tileGrid:
|
|
30
|
-
skeletonTile:
|
|
31
|
-
emptyState:
|
|
27
|
+
}, F = "HomePageGrid-module_container__Kxfim", K = "HomePageGrid-module_tileGrid__X6-Bm", k = "HomePageGrid-module_skeletonTile__U-1vu", x = "HomePageGrid-module_emptyState__xEwoK", I = "HomePageGrid-module_errorContainer__IKR3E", r = {
|
|
28
|
+
container: F,
|
|
29
|
+
tileGrid: K,
|
|
30
|
+
skeletonTile: k,
|
|
31
|
+
emptyState: x,
|
|
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
|
+
} = N(), 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
45
|
queryFn: () => P("org.bahmni.home.dashboard", t),
|
|
46
46
|
enabled: !s && l === null && t !== null
|
|
@@ -75,7 +75,7 @@ const C = "AppTile-module_tile__-CBFh", B = "AppTile-module_label__6vslD", M = "
|
|
|
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
|
+
M,
|
|
79
79
|
{
|
|
80
80
|
id: a.id,
|
|
81
81
|
label: a.translationKey ?? a.label,
|
|
@@ -84,9 +84,9 @@ const C = "AppTile-module_tile__-CBFh", B = "AppTile-module_label__6vslD", M = "
|
|
|
84
84
|
},
|
|
85
85
|
a.id
|
|
86
86
|
)) }) });
|
|
87
|
-
},
|
|
88
|
-
locationSelector:
|
|
89
|
-
},
|
|
87
|
+
}, R = "HomePageHeader-module_locationSelector__foYmn", U = {
|
|
88
|
+
locationSelector: R
|
|
89
|
+
}, $ = () => {
|
|
90
90
|
const { t: o } = m();
|
|
91
91
|
return /* @__PURE__ */ e(
|
|
92
92
|
L,
|
|
@@ -95,17 +95,17 @@ const C = "AppTile-module_tile__-CBFh", B = "AppTile-module_label__6vslD", M = "
|
|
|
95
95
|
brandPrefix: o("HOME_LABEL"),
|
|
96
96
|
brandHref: "/",
|
|
97
97
|
globalFeatures: [
|
|
98
|
-
/* @__PURE__ */ e("div", { className:
|
|
98
|
+
/* @__PURE__ */ e("div", { className: U.locationSelector, children: /* @__PURE__ */ e(S, {}) }, "location")
|
|
99
99
|
],
|
|
100
100
|
userMenu: /* @__PURE__ */ e(O, {})
|
|
101
101
|
}
|
|
102
102
|
);
|
|
103
|
-
},
|
|
104
|
-
homePageBody:
|
|
105
|
-
},
|
|
106
|
-
/* @__PURE__ */ e(
|
|
107
|
-
/* @__PURE__ */ e("main", { className:
|
|
103
|
+
}, z = "HomePage-module_homePageBody__0qtrS", j = {
|
|
104
|
+
homePageBody: z
|
|
105
|
+
}, Q = () => /* @__PURE__ */ c(b, { children: [
|
|
106
|
+
/* @__PURE__ */ e($, {}),
|
|
107
|
+
/* @__PURE__ */ e("main", { className: j.homePageBody, children: /* @__PURE__ */ e(D, {}) })
|
|
108
108
|
] });
|
|
109
109
|
export {
|
|
110
|
-
|
|
110
|
+
Q as HomePage
|
|
111
111
|
};
|