@bahmni/home-app 0.0.1-dev.379 → 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.
@@ -1,11 +1,11 @@
1
1
  import { jsxs as c, jsx as e, Fragment as p } from "react/jsx-runtime";
2
- import { u as m, Z as b, D as y, E as H, F as N, J as P, $ as E, K as v, P as G, Q as f, R as S, S as T, T as C } from "./index-BF2fsrIb.js";
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
- import { useQuery as O } from "@tanstack/react-query";
5
- const L = "AppTile-module_tile__-CBFh", B = "AppTile-module_label__6vslD", F = "AppTile-module_bottom__lcJiG", d = {
4
+ import { useQuery as C } from "@tanstack/react-query";
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: F
8
+ bottom: M
9
9
  }, A = ({ id: r, label: n, icon: s, url: l }) => {
10
10
  const { t } = m(), i = t(n);
11
11
  return /* @__PURE__ */ c(
@@ -24,13 +24,13 @@ const L = "AppTile-module_tile__-CBFh", B = "AppTile-module_label__6vslD", F = "
24
24
  ]
25
25
  }
26
26
  );
27
- }, K = "HomePageGrid-module_container__Kxfim", M = "HomePageGrid-module_tileGrid__X6-Bm", $ = "HomePageGrid-module_skeletonTile__U-1vu", k = "HomePageGrid-module_emptyState__xEwoK", x = "HomePageGrid-module_errorContainer__IKR3E", o = {
28
- container: K,
29
- tileGrid: M,
30
- skeletonTile: $,
31
- emptyState: k,
32
- errorContainer: x
33
- }, D = () => {
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
+ tileGrid: $,
30
+ skeletonTile: k,
31
+ emptyState: x,
32
+ errorContainer: D
33
+ }, I = () => {
34
34
  const { t: r } = m(), {
35
35
  userPrivileges: n,
36
36
  isLoading: s,
@@ -40,9 +40,9 @@ const L = "AppTile-module_tile__-CBFh", B = "AppTile-module_label__6vslD", F = "
40
40
  isLoading: _,
41
41
  isError: u,
42
42
  refetch: h
43
- } = O({
43
+ } = C({
44
44
  queryKey: ["home-modules", t],
45
- queryFn: () => E("org.bahmni.home.dashboard", t),
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", F = "
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: v },
56
+ { length: E },
57
57
  (a, g) => `skeleton-${g}`
58
58
  ).map((a) => /* @__PURE__ */ e(G, { className: o.skeletonTile }, a)) })
59
59
  }
@@ -84,24 +84,24 @@ const L = "AppTile-module_tile__-CBFh", B = "AppTile-module_label__6vslD", F = "
84
84
  },
85
85
  a.id
86
86
  )) }) });
87
- }, I = "HomePageHeader-module_locationSelector__foYmn", R = {
88
- locationSelector: I
89
- }, z = () => /* @__PURE__ */ e(
90
- S,
87
+ }, K = "HomePageHeader-module_locationSelector__foYmn", R = {
88
+ locationSelector: K
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(C, {}) }, "location")
96
+ /* @__PURE__ */ e("div", { className: R.locationSelector, children: /* @__PURE__ */ e(T, {}) }, "location")
97
97
  ],
98
- userMenu: /* @__PURE__ */ e(T, {})
98
+ userMenu: /* @__PURE__ */ e(S, {})
99
99
  }
100
- ), U = "HomePage-module_homePageBody__0qtrS", q = {
100
+ ), U = "HomePage-module_homePageBody__0qtrS", z = {
101
101
  homePageBody: U
102
102
  }, X = () => /* @__PURE__ */ c(p, { children: [
103
- /* @__PURE__ */ e(z, {}),
104
- /* @__PURE__ */ e("main", { className: q.homePageBody, children: /* @__PURE__ */ e(D, {}) })
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