@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.
@@ -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, L as P, M as v, O as G, Q as f, R as L, S as O, T as S } from "./index-CuC_lo4i.js";
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 T } from "@tanstack/react-query";
5
- const C = "AppTile-module_tile__-CBFh", B = "AppTile-module_label__6vslD", M = "AppTile-module_bottom__lcJiG", d = {
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: M
9
- }, A = ({ id: o, label: n, icon: s, url: l }) => {
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
- }, F = "HomePageGrid-module_container__Kxfim", k = "HomePageGrid-module_tileGrid__X6-Bm", x = "HomePageGrid-module_skeletonTile__U-1vu", I = "HomePageGrid-module_emptyState__xEwoK", K = "HomePageGrid-module_errorContainer__IKR3E", r = {
28
- container: F,
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: I,
32
- errorContainer: K
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
- } = T({
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
- f,
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
- A,
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
- }, $ = "HomePageHeader-module_locationSelector__foYmn", D = {
88
- locationSelector: $
89
- }, U = () => {
87
+ }, U = "HomePageHeader-module_locationSelector__foYmn", $ = {
88
+ locationSelector: U
89
+ }, D = () => {
90
90
  const { t: o } = m();
91
91
  return /* @__PURE__ */ e(
92
- L,
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: D.locationSelector, children: /* @__PURE__ */ e(S, {}) }, "location")
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(U, {}),
106
+ /* @__PURE__ */ e(D, {}),
107
107
  /* @__PURE__ */ e("main", { className: q.homePageBody, children: /* @__PURE__ */ e(R, {}) })
108
108
  ] });
109
109
  export {