@bahmni/home-app 0.0.1-dev.405 → 0.0.1-dev.409
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-CIJwgXmb-D3Z-yefq.js → DocumentsTable-ju-Rev1y-CmExbPva.js} +11 -11
- package/dist/{FormsTable-DMPfuqmY-IDtATXYn.js → FormsTable-CTy4JTE8-CdzRZSET.js} +65 -65
- package/dist/{LNWAZHJI-ipM9wVpN.js → LNWAZHJI-CbrYKoIU.js} +2 -2
- package/dist/{MWZ6AO7Z-DvyQIXn6.js → MWZ6AO7Z-Db8ny3G-.js} +2 -2
- package/dist/Observations-GHKQrxHf-BFIAlfJv.js +246 -0
- package/dist/{YPM2AS64-CbaAOFUJ.js → YPM2AS64-CR6AklHE.js} +1 -1
- package/dist/{index-l85yN2dU.js → index-B_nmXRof.js} +18 -18
- package/dist/{index-CuC_lo4i.js → index-EBKKwOv_.js} +30688 -30632
- package/dist/index.css +1 -1
- package/dist/index.js +1 -1
- package/package.json +1 -1
- package/dist/Observations-BflI1_YX-BOSQX59a.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, N as y, H, I as N, a as E,
|
|
2
|
+
import { u as m, W as p, N as y, H, I as N, a as E, J as P, K as v, O as G, R as T, T as f, U as O, Z as L } from "./index-EBKKwOv_.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", 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,
|
|
@@ -24,12 +24,12 @@ const C = "AppTile-module_tile__-CBFh", B = "AppTile-module_label__6vslD", M = "
|
|
|
24
24
|
]
|
|
25
25
|
}
|
|
26
26
|
);
|
|
27
|
-
},
|
|
28
|
-
container:
|
|
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
29
|
tileGrid: k,
|
|
30
30
|
skeletonTile: x,
|
|
31
|
-
emptyState:
|
|
32
|
-
errorContainer:
|
|
31
|
+
emptyState: F,
|
|
32
|
+
errorContainer: I
|
|
33
33
|
}, R = () => {
|
|
34
34
|
const { t: o } = m(), {
|
|
35
35
|
userPrivileges: n,
|
|
@@ -40,7 +40,7 @@ const C = "AppTile-module_tile__-CBFh", B = "AppTile-module_label__6vslD", M = "
|
|
|
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
|
|
@@ -64,7 +64,7 @@ const C = "AppTile-module_tile__-CBFh", B = "AppTile-module_label__6vslD", M = "
|
|
|
64
64
|
"data-testid": "home-error",
|
|
65
65
|
role: "alert",
|
|
66
66
|
children: /* @__PURE__ */ e(
|
|
67
|
-
|
|
67
|
+
T,
|
|
68
68
|
{
|
|
69
69
|
kind: "error",
|
|
70
70
|
lowContrast: !0,
|
|
@@ -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,18 +84,18 @@ 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
|
+
}, U = "HomePageHeader-module_locationSelector__foYmn", $ = {
|
|
88
|
+
locationSelector: U
|
|
89
|
+
}, D = () => {
|
|
90
90
|
const { t: o } = m();
|
|
91
91
|
return /* @__PURE__ */ e(
|
|
92
|
-
|
|
92
|
+
f,
|
|
93
93
|
{
|
|
94
94
|
ariaLabel: "Bahmni",
|
|
95
95
|
brandPrefix: o("HOME_LABEL"),
|
|
96
96
|
brandHref: "/",
|
|
97
97
|
globalFeatures: [
|
|
98
|
-
/* @__PURE__ */ e("div", { className:
|
|
98
|
+
/* @__PURE__ */ e("div", { className: $.locationSelector, children: /* @__PURE__ */ e(L, {}) }, "location")
|
|
99
99
|
],
|
|
100
100
|
userMenu: /* @__PURE__ */ e(O, {})
|
|
101
101
|
}
|
|
@@ -103,7 +103,7 @@ const C = "AppTile-module_tile__-CBFh", B = "AppTile-module_label__6vslD", M = "
|
|
|
103
103
|
}, j = "HomePage-module_homePageBody__0qtrS", q = {
|
|
104
104
|
homePageBody: j
|
|
105
105
|
}, X = () => /* @__PURE__ */ c(b, { children: [
|
|
106
|
-
/* @__PURE__ */ e(
|
|
106
|
+
/* @__PURE__ */ e(D, {}),
|
|
107
107
|
/* @__PURE__ */ e("main", { className: q.homePageBody, children: /* @__PURE__ */ e(R, {}) })
|
|
108
108
|
] });
|
|
109
109
|
export {
|