@bahmni/home-app 0.0.1-dev.411 → 0.0.1-dev.414

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, K as y, L as N, M as H, e as E, O as P, Q as v, R as G, T as f, U as L, X as O, Z as T } from "./index-BBLFn5Hb.js";
2
+ import { u as m, D as p, E as y, I as E, J as H, e as N, K as P, L as v, Q as G, R as f, U as L, X as O, Z as S } from "./index-OGYRfilO.js";
3
3
  import "react";
4
- import { useQuery as S } 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 T } 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,
@@ -18,29 +18,29 @@ const C = "AppTile-module_tile__-CBFh", B = "AppTile-module_label__6vslD", M = "
18
18
  children: [
19
19
  /* @__PURE__ */ e("h2", { className: d.label, "aria-hidden": "true", children: i }),
20
20
  /* @__PURE__ */ c("div", { className: d.bottom, children: [
21
- /* @__PURE__ */ e(y, { name: s, id: o, size: N.X2, "aria-hidden": "true" }),
21
+ /* @__PURE__ */ e(y, { name: s, id: o, size: E.X2, "aria-hidden": "true" }),
22
22
  /* @__PURE__ */ e(H, { size: 20, "aria-hidden": "true" })
23
23
  ] })
24
24
  ]
25
25
  }
26
26
  );
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
- tileGrid: k,
30
- skeletonTile: x,
31
- emptyState: F,
27
+ }, F = "HomePageGrid-module_container__Kxfim", K = "HomePageGrid-module_tileGrid__X6-Bm", k = "HomePageGrid-module_skeletonTile__U-1vu", x = "HomePageGrid-module_emptyState__xEwoK", I = "HomePageGrid-module_errorContainer__IKR3E", r = {
28
+ container: F,
29
+ tileGrid: K,
30
+ skeletonTile: k,
31
+ emptyState: x,
32
32
  errorContainer: I
33
- }, R = () => {
33
+ }, D = () => {
34
34
  const { t: o } = m(), {
35
35
  userPrivileges: n,
36
36
  isLoading: s,
37
37
  error: l
38
- } = E(), t = n?.map((a) => a.name) ?? null, {
38
+ } = N(), t = n?.map((a) => a.name) ?? null, {
39
39
  data: i = [],
40
40
  isLoading: _,
41
41
  isError: u,
42
42
  refetch: h
43
- } = S({
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 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,9 +84,9 @@ const C = "AppTile-module_tile__-CBFh", B = "AppTile-module_label__6vslD", M = "
84
84
  },
85
85
  a.id
86
86
  )) }) });
87
- }, U = "HomePageHeader-module_locationSelector__foYmn", $ = {
88
- locationSelector: U
89
- }, D = () => {
87
+ }, R = "HomePageHeader-module_locationSelector__foYmn", U = {
88
+ locationSelector: R
89
+ }, $ = () => {
90
90
  const { t: o } = m();
91
91
  return /* @__PURE__ */ e(
92
92
  L,
@@ -95,17 +95,17 @@ const C = "AppTile-module_tile__-CBFh", B = "AppTile-module_label__6vslD", M = "
95
95
  brandPrefix: o("HOME_LABEL"),
96
96
  brandHref: "/",
97
97
  globalFeatures: [
98
- /* @__PURE__ */ e("div", { className: $.locationSelector, children: /* @__PURE__ */ e(T, {}) }, "location")
98
+ /* @__PURE__ */ e("div", { className: U.locationSelector, children: /* @__PURE__ */ e(S, {}) }, "location")
99
99
  ],
100
100
  userMenu: /* @__PURE__ */ e(O, {})
101
101
  }
102
102
  );
103
- }, j = "HomePage-module_homePageBody__0qtrS", q = {
104
- homePageBody: j
105
- }, W = () => /* @__PURE__ */ c(b, { children: [
106
- /* @__PURE__ */ e(D, {}),
107
- /* @__PURE__ */ e("main", { className: q.homePageBody, children: /* @__PURE__ */ e(R, {}) })
103
+ }, z = "HomePage-module_homePageBody__0qtrS", j = {
104
+ homePageBody: z
105
+ }, Q = () => /* @__PURE__ */ c(b, { children: [
106
+ /* @__PURE__ */ e($, {}),
107
+ /* @__PURE__ */ e("main", { className: j.homePageBody, children: /* @__PURE__ */ e(D, {}) })
108
108
  ] });
109
109
  export {
110
- W as HomePage
110
+ Q as HomePage
111
111
  };