@bahmni/home-app 0.0.1-dev.408 → 0.0.1-dev.410
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-BSBWfrYe-K4-fp7cB.js → DocumentsTable-DYaZZTBA-BGIdX9z8.js} +1 -1
- package/dist/FormsTable-m3xk-F34-w7lp3V8x.js +272 -0
- package/dist/{LNWAZHJI-FNLuNz1A.js → LNWAZHJI-COuCx9k4.js} +2 -2
- package/dist/{MWZ6AO7Z-C25CIsAn.js → MWZ6AO7Z-Dc6UU3Iv.js} +2 -2
- package/dist/Observations-BjPcu9m0-DOXG3rEE.js +246 -0
- package/dist/{YPM2AS64-DJb3J_xq.js → YPM2AS64-VlHi9vm1.js} +138 -138
- package/dist/{index-CiNLyZ2s.js → index-D_JDMbG9.js} +18 -18
- package/dist/{index-BLBZZpTy.js → index-xbJFIh8C.js} +34008 -33927
- package/dist/index.css +1 -1
- package/dist/index.js +1 -1
- package/package.json +1 -1
- package/dist/FormsTable-D8eS1feV-DEOnth-4.js +0 -305
- package/dist/Observations-CbJng7Yn-MIVn1nyY.js +0 -213
|
@@ -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, W as p,
|
|
2
|
+
import { u as m, W as p, K as y, L as N, M as H, e as E, O as P, Q as v, R as G, T as f, U as L, X as O, Z as T } from "./index-xbJFIh8C.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 S } from "@tanstack/react-query";
|
|
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,8 +18,8 @@ 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: N.X2, "aria-hidden": "true" }),
|
|
22
|
+
/* @__PURE__ */ e(H, { size: 20, "aria-hidden": "true" })
|
|
23
23
|
] })
|
|
24
24
|
]
|
|
25
25
|
}
|
|
@@ -30,7 +30,7 @@ const C = "AppTile-module_tile__-CBFh", B = "AppTile-module_label__6vslD", A = "
|
|
|
30
30
|
skeletonTile: x,
|
|
31
31
|
emptyState: F,
|
|
32
32
|
errorContainer: I
|
|
33
|
-
},
|
|
33
|
+
}, R = () => {
|
|
34
34
|
const { t: o } = m(), {
|
|
35
35
|
userPrivileges: n,
|
|
36
36
|
isLoading: s,
|
|
@@ -40,7 +40,7 @@ const C = "AppTile-module_tile__-CBFh", B = "AppTile-module_label__6vslD", A = "
|
|
|
40
40
|
isLoading: _,
|
|
41
41
|
isError: u,
|
|
42
42
|
refetch: h
|
|
43
|
-
} =
|
|
43
|
+
} = S({
|
|
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", 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,
|
|
@@ -84,9 +84,9 @@ const C = "AppTile-module_tile__-CBFh", B = "AppTile-module_label__6vslD", A = "
|
|
|
84
84
|
},
|
|
85
85
|
a.id
|
|
86
86
|
)) }) });
|
|
87
|
-
},
|
|
88
|
-
locationSelector:
|
|
89
|
-
},
|
|
87
|
+
}, U = "HomePageHeader-module_locationSelector__foYmn", $ = {
|
|
88
|
+
locationSelector: U
|
|
89
|
+
}, D = () => {
|
|
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", A = "
|
|
|
95
95
|
brandPrefix: o("HOME_LABEL"),
|
|
96
96
|
brandHref: "/",
|
|
97
97
|
globalFeatures: [
|
|
98
|
-
/* @__PURE__ */ e("div", { className: $.locationSelector, children: /* @__PURE__ */ e(
|
|
98
|
+
/* @__PURE__ */ e("div", { className: $.locationSelector, children: /* @__PURE__ */ e(T, {}) }, "location")
|
|
99
99
|
],
|
|
100
100
|
userMenu: /* @__PURE__ */ e(O, {})
|
|
101
101
|
}
|
|
102
102
|
);
|
|
103
103
|
}, j = "HomePage-module_homePageBody__0qtrS", q = {
|
|
104
104
|
homePageBody: j
|
|
105
|
-
},
|
|
106
|
-
/* @__PURE__ */ e(
|
|
107
|
-
/* @__PURE__ */ e("main", { className: q.homePageBody, children: /* @__PURE__ */ e(
|
|
105
|
+
}, W = () => /* @__PURE__ */ c(b, { children: [
|
|
106
|
+
/* @__PURE__ */ e(D, {}),
|
|
107
|
+
/* @__PURE__ */ e("main", { className: q.homePageBody, children: /* @__PURE__ */ e(R, {}) })
|
|
108
108
|
] });
|
|
109
109
|
export {
|
|
110
|
-
|
|
110
|
+
W as HomePage
|
|
111
111
|
};
|