@bahmni/home-app 0.0.1-dev.396 → 0.0.1-dev.397
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-BACwpRCF-DUp5jWaj.js → DocumentsTable-CyCmTrjB-wzauvZ7r.js} +1 -1
- package/dist/{FormsTable-CnCVkY6d-Cbeqby3l.js → FormsTable-CMtT3i5o-BG6NAXpa.js} +12 -12
- package/dist/{LNWAZHJI-CrVJ2XFJ.js → LNWAZHJI-ZuiXeFBX.js} +2 -2
- package/dist/{MWZ6AO7Z-ppc2KRhI.js → MWZ6AO7Z-8pHY9KaZ.js} +2 -2
- package/dist/{Observations-ZyRGglZf-B83q2NnF.js → Observations-Cco2HyR_-CjyZqsA-.js} +16 -16
- package/dist/{YPM2AS64-CzOB0PZl.js → YPM2AS64-DTGVvqL8.js} +1 -1
- package/dist/{index-tqtZGQtY.js → index-8fg6lvVf.js} +8816 -8799
- package/dist/{index-CTUz4Yua.js → index-CRre-IaF.js} +11 -11
- 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, t as b, x as y, z as H, D as N, e as P,
|
|
2
|
+
import { u as m, t as b, x as y, z as H, D as N, e as P, A as v, H as E, M as f, O as G, Q as S, R as O, S as T } from "./index-8fg6lvVf.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 C } from "@tanstack/react-query";
|
|
5
|
+
const L = "AppTile-module_tile__-CBFh", B = "AppTile-module_label__6vslD", A = "AppTile-module_bottom__lcJiG", d = {
|
|
6
6
|
tile: L,
|
|
7
7
|
label: B,
|
|
8
|
-
bottom:
|
|
9
|
-
},
|
|
8
|
+
bottom: A
|
|
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,8 +24,8 @@ const L = "AppTile-module_tile__-CBFh", B = "AppTile-module_label__6vslD", M = "
|
|
|
24
24
|
]
|
|
25
25
|
}
|
|
26
26
|
);
|
|
27
|
-
},
|
|
28
|
-
container:
|
|
27
|
+
}, x = "HomePageGrid-module_container__Kxfim", F = "HomePageGrid-module_tileGrid__X6-Bm", k = "HomePageGrid-module_skeletonTile__U-1vu", D = "HomePageGrid-module_emptyState__xEwoK", K = "HomePageGrid-module_errorContainer__IKR3E", o = {
|
|
28
|
+
container: x,
|
|
29
29
|
tileGrid: F,
|
|
30
30
|
skeletonTile: k,
|
|
31
31
|
emptyState: D,
|
|
@@ -40,7 +40,7 @@ const L = "AppTile-module_tile__-CBFh", B = "AppTile-module_label__6vslD", M = "
|
|
|
40
40
|
isLoading: _,
|
|
41
41
|
isError: u,
|
|
42
42
|
refetch: h
|
|
43
|
-
} =
|
|
43
|
+
} = C({
|
|
44
44
|
queryKey: ["home-modules", t],
|
|
45
45
|
queryFn: () => v("org.bahmni.home.dashboard", t),
|
|
46
46
|
enabled: !s && l === null && t !== null
|
|
@@ -75,7 +75,7 @@ const L = "AppTile-module_tile__-CBFh", B = "AppTile-module_label__6vslD", M = "
|
|
|
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,
|
|
@@ -93,9 +93,9 @@ const L = "AppTile-module_tile__-CBFh", B = "AppTile-module_label__6vslD", M = "
|
|
|
93
93
|
brandPrefix: "Home",
|
|
94
94
|
brandHref: "/",
|
|
95
95
|
globalFeatures: [
|
|
96
|
-
/* @__PURE__ */ e("div", { className: $.locationSelector, children: /* @__PURE__ */ e(
|
|
96
|
+
/* @__PURE__ */ e("div", { className: $.locationSelector, children: /* @__PURE__ */ e(T, {}) }, "location")
|
|
97
97
|
],
|
|
98
|
-
userMenu: /* @__PURE__ */ e(
|
|
98
|
+
userMenu: /* @__PURE__ */ e(O, {})
|
|
99
99
|
}
|
|
100
100
|
), U = "HomePage-module_homePageBody__0qtrS", q = {
|
|
101
101
|
homePageBody: U
|
package/dist/index.js
CHANGED