@bahmni/home-app 0.0.1-dev.393 → 0.0.1-dev.395
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-ULtsCmIW-B61WoyMW.js → DocumentsTable-C1A0EhCk-fjS_8IXp.js} +19 -19
- package/dist/{FormsTable-DAFDPXnd-BZVyqZ8I.js → FormsTable-C2Gb9B6j-B6qIif61.js} +76 -76
- package/dist/{LNWAZHJI-DX7tyJnq.js → LNWAZHJI-DAntdNEy.js} +2 -2
- package/dist/{MWZ6AO7Z-CrJr551_.js → MWZ6AO7Z-B3xvVf5k.js} +2 -2
- package/dist/{Observations-DOZ-UiSs-CZznhV_1.js → Observations-Clr4S77q-D85eIArh.js} +40 -40
- package/dist/{YPM2AS64-BHOJDB_E.js → YPM2AS64-sh7zrpXR.js} +1 -1
- package/dist/{index-BUS7BPyU.js → index-CG3PuQaz.js} +10377 -10371
- package/dist/{index-BkUDWo_E.js → index-G1Hbn99D.js} +17 -17
- 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, n as b, r as y, s as H, v as N, e as v, x as P, H as E, z as G, C as f, J as C, M as O, O as S } from "./index-CG3PuQaz.js";
|
|
3
3
|
import "react";
|
|
4
|
-
import { useQuery as
|
|
4
|
+
import { useQuery as T } from "@tanstack/react-query";
|
|
5
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
8
|
bottom: M
|
|
9
|
-
},
|
|
9
|
+
}, x = ({ 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,13 +24,13 @@ const L = "AppTile-module_tile__-CBFh", B = "AppTile-module_label__6vslD", M = "
|
|
|
24
24
|
]
|
|
25
25
|
}
|
|
26
26
|
);
|
|
27
|
-
},
|
|
28
|
-
container:
|
|
29
|
-
tileGrid:
|
|
30
|
-
skeletonTile:
|
|
31
|
-
emptyState:
|
|
32
|
-
errorContainer:
|
|
33
|
-
},
|
|
27
|
+
}, A = "HomePageGrid-module_container__Kxfim", F = "HomePageGrid-module_tileGrid__X6-Bm", k = "HomePageGrid-module_skeletonTile__U-1vu", K = "HomePageGrid-module_emptyState__xEwoK", D = "HomePageGrid-module_errorContainer__IKR3E", o = {
|
|
28
|
+
container: A,
|
|
29
|
+
tileGrid: F,
|
|
30
|
+
skeletonTile: k,
|
|
31
|
+
emptyState: K,
|
|
32
|
+
errorContainer: D
|
|
33
|
+
}, I = () => {
|
|
34
34
|
const { t: r } = m(), {
|
|
35
35
|
userPrivileges: n,
|
|
36
36
|
isLoading: s,
|
|
@@ -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
|
+
} = 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 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
|
+
x,
|
|
79
79
|
{
|
|
80
80
|
id: a.id,
|
|
81
81
|
label: a.translationKey ?? a.label,
|
|
@@ -93,16 +93,16 @@ 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: z.locationSelector, children: /* @__PURE__ */ e(
|
|
96
|
+
/* @__PURE__ */ e("div", { className: z.locationSelector, children: /* @__PURE__ */ e(S, {}) }, "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
|
|
102
|
-
},
|
|
102
|
+
}, Q = () => /* @__PURE__ */ c(p, { children: [
|
|
103
103
|
/* @__PURE__ */ e(R, {}),
|
|
104
|
-
/* @__PURE__ */ e("main", { className: q.homePageBody, children: /* @__PURE__ */ e(
|
|
104
|
+
/* @__PURE__ */ e("main", { className: q.homePageBody, children: /* @__PURE__ */ e(I, {}) })
|
|
105
105
|
] });
|
|
106
106
|
export {
|
|
107
|
-
|
|
107
|
+
Q as HomePage
|
|
108
108
|
};
|
package/dist/index.js
CHANGED