@bahmni/home-app 0.0.1-dev.383 → 0.0.1-dev.385

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 p } from "react/jsx-runtime";
2
- import { u as m, Z as b, s as y, v as H, D as N, Q as v, $ as P, x as E, C as G, F as f, I as S, J as C, S as T } from "./index-BOlq4Mlk.js";
2
+ import { u as m, Z as b, n as y, r as H, s as N, Q as P, I as v, H as E, t as G, v as f, C as T, J as C, T as S } from "./index-DVf8ALSI.js";
3
3
  import "react";
4
4
  import { useQuery as O } from "@tanstack/react-query";
5
- const L = "AppTile-module_tile__-CBFh", B = "AppTile-module_label__6vslD", x = "AppTile-module_bottom__lcJiG", d = {
5
+ const L = "AppTile-module_tile__-CBFh", B = "AppTile-module_label__6vslD", A = "AppTile-module_bottom__lcJiG", d = {
6
6
  tile: L,
7
7
  label: B,
8
- bottom: x
9
- }, A = ({ id: r, label: n, icon: s, url: l }) => {
8
+ bottom: A
9
+ }, I = ({ 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,25 +24,25 @@ const L = "AppTile-module_tile__-CBFh", B = "AppTile-module_label__6vslD", x = "
24
24
  ]
25
25
  }
26
26
  );
27
- }, F = "HomePageGrid-module_container__Kxfim", M = "HomePageGrid-module_tileGrid__X6-Bm", $ = "HomePageGrid-module_skeletonTile__U-1vu", k = "HomePageGrid-module_emptyState__xEwoK", D = "HomePageGrid-module_errorContainer__IKR3E", o = {
28
- container: F,
29
- tileGrid: M,
30
- skeletonTile: $,
31
- emptyState: k,
32
- errorContainer: D
33
- }, I = () => {
27
+ }, M = "HomePageGrid-module_container__Kxfim", k = "HomePageGrid-module_tileGrid__X6-Bm", x = "HomePageGrid-module_skeletonTile__U-1vu", F = "HomePageGrid-module_emptyState__xEwoK", K = "HomePageGrid-module_errorContainer__IKR3E", o = {
28
+ container: M,
29
+ tileGrid: k,
30
+ skeletonTile: x,
31
+ emptyState: F,
32
+ errorContainer: K
33
+ }, D = () => {
34
34
  const { t: r } = m(), {
35
35
  userPrivileges: n,
36
36
  isLoading: s,
37
37
  error: l
38
- } = v(), t = n?.map((a) => a.name) ?? null, {
38
+ } = P(), t = n?.map((a) => a.name) ?? null, {
39
39
  data: i = [],
40
40
  isLoading: _,
41
41
  isError: u,
42
42
  refetch: h
43
43
  } = O({
44
44
  queryKey: ["home-modules", t],
45
- queryFn: () => P("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(
@@ -75,7 +75,7 @@ const L = "AppTile-module_tile__-CBFh", B = "AppTile-module_label__6vslD", x = "
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
- A,
78
+ I,
79
79
  {
80
80
  id: a.id,
81
81
  label: a.translationKey ?? a.label,
@@ -84,25 +84,25 @@ const L = "AppTile-module_tile__-CBFh", B = "AppTile-module_label__6vslD", x = "
84
84
  },
85
85
  a.id
86
86
  )) }) });
87
- }, K = "HomePageHeader-module_locationSelector__foYmn", R = {
88
- locationSelector: K
87
+ }, $ = "HomePageHeader-module_locationSelector__foYmn", R = {
88
+ locationSelector: $
89
89
  }, U = () => /* @__PURE__ */ e(
90
- S,
90
+ T,
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(T, {}) }, "location")
96
+ /* @__PURE__ */ e("div", { className: R.locationSelector, children: /* @__PURE__ */ e(S, {}) }, "location")
97
97
  ],
98
98
  userMenu: /* @__PURE__ */ e(C, {})
99
99
  }
100
100
  ), q = "HomePage-module_homePageBody__0qtrS", z = {
101
101
  homePageBody: q
102
- }, w = () => /* @__PURE__ */ c(p, { children: [
102
+ }, X = () => /* @__PURE__ */ c(p, { children: [
103
103
  /* @__PURE__ */ e(U, {}),
104
- /* @__PURE__ */ e("main", { className: z.homePageBody, children: /* @__PURE__ */ e(I, {}) })
104
+ /* @__PURE__ */ e("main", { className: z.homePageBody, children: /* @__PURE__ */ e(D, {}) })
105
105
  ] });
106
106
  export {
107
- w as HomePage
107
+ X as HomePage
108
108
  };
package/dist/index.js CHANGED
@@ -1,4 +1,4 @@
1
- import { aK as a } from "./index-BOlq4Mlk.js";
1
+ import { aK as a } from "./index-DVf8ALSI.js";
2
2
  export {
3
3
  a as HomeApp
4
4
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@bahmni/home-app",
3
- "version": "0.0.1-dev.383",
3
+ "version": "0.0.1-dev.385",
4
4
  "type": "module",
5
5
  "main": "./dist/index.js",
6
6
  "module": "./dist/index.js",