@bahmni/home-app 0.0.1-dev.380 → 0.0.1-dev.381
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-HfGisLvD-BATt5uV9.js → DocumentsTable-D61lXj3C-BKuR7L6Y.js} +1 -1
- package/dist/{FormsTable-DKPMJeXX-Brn3kiuk.js → FormsTable-DSdtlBnm-BLcOrpKr.js} +48 -48
- package/dist/{LNWAZHJI-LpdCosgu.js → LNWAZHJI-BfKbbDMU.js} +2 -2
- package/dist/{MWZ6AO7Z-B74vx-rW.js → MWZ6AO7Z-CLQXX4xC.js} +2 -2
- package/dist/{Observations-DdMzfzAg-CTmVBmot.js → Observations-BiXeD58c-DE0UbUGi.js} +26 -26
- package/dist/{YPM2AS64-BZsW-6Ci.js → YPM2AS64-CkqKg1x_.js} +138 -138
- package/dist/{index-BOrC-IKV.js → index-B2x7C0NT.js} +17 -17
- package/dist/{index-GASoF6qD.js → index-BLp21c20.js} +10090 -10077
- 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,
|
|
2
|
+
import { u as m, r as b, t as y, D as H, F as N, J as P, $ as v, I as E, M as G, O as f, P as O, R as S, Q as T } from "./index-BLp21c20.js";
|
|
3
3
|
import "react";
|
|
4
4
|
import { useQuery as C } from "@tanstack/react-query";
|
|
5
|
-
const L = "AppTile-module_tile__-CBFh", B = "AppTile-module_label__6vslD",
|
|
5
|
+
const L = "AppTile-module_tile__-CBFh", B = "AppTile-module_label__6vslD", M = "AppTile-module_bottom__lcJiG", d = {
|
|
6
6
|
tile: L,
|
|
7
7
|
label: B,
|
|
8
|
-
bottom:
|
|
9
|
-
},
|
|
8
|
+
bottom: M
|
|
9
|
+
}, A = ({ 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", A = "
|
|
|
24
24
|
]
|
|
25
25
|
}
|
|
26
26
|
);
|
|
27
|
-
},
|
|
28
|
-
container:
|
|
27
|
+
}, F = "HomePageGrid-module_container__Kxfim", $ = "HomePageGrid-module_tileGrid__X6-Bm", k = "HomePageGrid-module_skeletonTile__U-1vu", x = "HomePageGrid-module_emptyState__xEwoK", D = "HomePageGrid-module_errorContainer__IKR3E", o = {
|
|
28
|
+
container: F,
|
|
29
29
|
tileGrid: $,
|
|
30
30
|
skeletonTile: k,
|
|
31
31
|
emptyState: x,
|
|
@@ -42,7 +42,7 @@ const L = "AppTile-module_tile__-CBFh", B = "AppTile-module_label__6vslD", A = "
|
|
|
42
42
|
refetch: h
|
|
43
43
|
} = C({
|
|
44
44
|
queryKey: ["home-modules", t],
|
|
45
|
-
queryFn: () =>
|
|
45
|
+
queryFn: () => v("org.bahmni.home.dashboard", t),
|
|
46
46
|
enabled: !s && l === null && t !== null
|
|
47
47
|
});
|
|
48
48
|
return s || _ || t === null && !l ? /* @__PURE__ */ e(
|
|
@@ -53,7 +53,7 @@ const L = "AppTile-module_tile__-CBFh", B = "AppTile-module_label__6vslD", A = "
|
|
|
53
53
|
"aria-label": r("HOME_LOADING_MODULES"),
|
|
54
54
|
"aria-busy": "true",
|
|
55
55
|
children: /* @__PURE__ */ e("div", { className: o.tileGrid, children: Array.from(
|
|
56
|
-
{ length:
|
|
56
|
+
{ length: E },
|
|
57
57
|
(a, g) => `skeleton-${g}`
|
|
58
58
|
).map((a) => /* @__PURE__ */ e(G, { className: o.skeletonTile }, a)) })
|
|
59
59
|
}
|
|
@@ -64,7 +64,7 @@ const L = "AppTile-module_tile__-CBFh", B = "AppTile-module_label__6vslD", A = "
|
|
|
64
64
|
"data-testid": "home-error",
|
|
65
65
|
role: "alert",
|
|
66
66
|
children: /* @__PURE__ */ e(
|
|
67
|
-
|
|
67
|
+
f,
|
|
68
68
|
{
|
|
69
69
|
kind: "error",
|
|
70
70
|
lowContrast: !0,
|
|
@@ -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
|
+
A,
|
|
79
79
|
{
|
|
80
80
|
id: a.id,
|
|
81
81
|
label: a.translationKey ?? a.label,
|
|
@@ -86,22 +86,22 @@ const L = "AppTile-module_tile__-CBFh", B = "AppTile-module_label__6vslD", A = "
|
|
|
86
86
|
)) }) });
|
|
87
87
|
}, K = "HomePageHeader-module_locationSelector__foYmn", R = {
|
|
88
88
|
locationSelector: K
|
|
89
|
-
},
|
|
90
|
-
|
|
89
|
+
}, q = () => /* @__PURE__ */ e(
|
|
90
|
+
O,
|
|
91
91
|
{
|
|
92
92
|
ariaLabel: "Bahmni",
|
|
93
93
|
brandPrefix: "Home",
|
|
94
94
|
brandHref: "/",
|
|
95
95
|
globalFeatures: [
|
|
96
|
-
/* @__PURE__ */ e("div", { className: R.locationSelector, children: /* @__PURE__ */ e(
|
|
96
|
+
/* @__PURE__ */ e("div", { className: R.locationSelector, children: /* @__PURE__ */ e(T, {}) }, "location")
|
|
97
97
|
],
|
|
98
98
|
userMenu: /* @__PURE__ */ e(S, {})
|
|
99
99
|
}
|
|
100
|
-
),
|
|
101
|
-
homePageBody:
|
|
100
|
+
), U = "HomePage-module_homePageBody__0qtrS", z = {
|
|
101
|
+
homePageBody: U
|
|
102
102
|
}, X = () => /* @__PURE__ */ c(p, { children: [
|
|
103
|
-
/* @__PURE__ */ e(
|
|
104
|
-
/* @__PURE__ */ e("main", { className:
|
|
103
|
+
/* @__PURE__ */ e(q, {}),
|
|
104
|
+
/* @__PURE__ */ e("main", { className: z.homePageBody, children: /* @__PURE__ */ e(I, {}) })
|
|
105
105
|
] });
|
|
106
106
|
export {
|
|
107
107
|
X as HomePage
|