@bahmni/home-app 0.0.1-dev.413 → 0.0.1-dev.415

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,7 +1,7 @@
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 H, O as N, e as E, Q as P, R as v, T as G, U as f, X as L, Z as O, _ as T } from "./index-58kY8i4d.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";
4
+ import { useQuery as T } from "@tanstack/react-query";
5
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,
@@ -18,29 +18,29 @@ const C = "AppTile-module_tile__-CBFh", B = "AppTile-module_label__6vslD", A = "
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: H.X2, "aria-hidden": "true" }),
22
- /* @__PURE__ */ e(N, { size: 20, "aria-hidden": "true" })
21
+ /* @__PURE__ */ e(y, { name: s, id: o, size: E.X2, "aria-hidden": "true" }),
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,
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
29
  tileGrid: K,
30
- skeletonTile: x,
31
- emptyState: F,
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
@@ -84,9 +84,9 @@ const C = "AppTile-module_tile__-CBFh", B = "AppTile-module_label__6vslD", A = "
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", A = "
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
  };
@@ -113765,7 +113765,7 @@ S02({
113765
113765
  key: "commonSearch",
113766
113766
  component: KV0
113767
113767
  });
113768
- X0(() => Promise.resolve().then(() => _70)), X0(() => Promise.resolve().then(() => od0)), X0(() => Promise.resolve().then(() => Sd0)), X0(() => Promise.resolve().then(() => jd0)), X0(() => import("./DocumentsTable-CMaU8zGA-DdgAfM3o.js")), X0(() => Promise.resolve().then(() => Km0)), X0(() => import("./FormsTable-CXDYWNj6-Ced7qV0T.js")), X0(() => Promise.resolve().then(() => If0)), X0(() => import("./Observations-DH0ifLsl-BWt_tzCn.js")), X0(
113768
+ X0(() => Promise.resolve().then(() => _70)), X0(() => Promise.resolve().then(() => od0)), X0(() => Promise.resolve().then(() => Sd0)), X0(() => Promise.resolve().then(() => jd0)), X0(() => import("./DocumentsTable-C_8zPark-BH65n_F7.js")), X0(() => Promise.resolve().then(() => Km0)), X0(() => import("./FormsTable-XGVu_1HW-DPWCW7be.js")), X0(() => Promise.resolve().then(() => If0)), X0(() => import("./Observations-CygRW6N8-CnR2xEa5.js")), X0(
113769
113769
  () => Promise.resolve().then(() => Sw0)
113770
113770
  ), X0(
113771
113771
  () => Promise.resolve().then(() => sf0)
@@ -198855,7 +198855,7 @@ var eSt = (t, e = !1) => {
198855
198855
  const e = z82(() => {
198856
198856
  const r = this, [o] = this.#n, [a] = this.#o, [c] = this.#a, [l] = this.#c, [i] = this.#p, [s] = this.#t;
198857
198857
  let d;
198858
- return this.#l ? d = this.#l : (d = V82(() => import("./LNWAZHJI-T09Aneeq.js")), this.#l = d), P82(this.#h, this.#r), E82(d, M82({
198858
+ return this.#l ? d = this.#l : (d = V82(() => import("./LNWAZHJI-KhAfet7k.js")), this.#l = d), P82(this.#h, this.#r), E82(d, M82({
198859
198859
  get queryFlavor() {
198860
198860
  return r.#d;
198861
198861
  },
@@ -198953,7 +198953,7 @@ var eSt = (t, e = !1) => {
198953
198953
  const e = z82(() => {
198954
198954
  const r = this, [o] = this.#n, [a] = this.#o, [c] = this.#a, [l] = this.#c, [i] = this.#p, [s] = this.#t, [d] = this.#l;
198955
198955
  let u;
198956
- return this.#i ? u = this.#i : (u = V82(() => import("./MWZ6AO7Z-CIWptg56.js")), this.#i = u), P82(this.#h, this.#r), E82(u, M82({
198956
+ return this.#i ? u = this.#i : (u = V82(() => import("./MWZ6AO7Z-CihfSgLp.js")), this.#i = u), P82(this.#h, this.#r), E82(u, M82({
198957
198957
  get queryFlavor() {
198958
198958
  return r.#d;
198959
198959
  },
@@ -199083,7 +199083,7 @@ const Y$t = {
199083
199083
  }
199084
199084
  }
199085
199085
  }, J$t = "home", aSt = 6, X$t = X0(
199086
- () => import("./index-CTR2Tvfi.js").then((t) => ({
199086
+ () => import("./index-BqD3QPAF.js").then((t) => ({
199087
199087
  default: t.HomePage
199088
199088
  }))
199089
199089
  ), Q$t = [
@@ -199115,32 +199115,32 @@ function cSt() {
199115
199115
  export {
199116
199116
  oSt as $,
199117
199117
  xi as A,
199118
- dDt as B,
199119
- WDt as C,
199120
- _x1 as D,
199121
- BDt as E,
199118
+ rQ2 as B,
199119
+ fQ2 as C,
199120
+ CRt as D,
199121
+ Ost as E,
199122
199122
  uc as F,
199123
- xY2 as G,
199124
- FDt as H,
199125
- rQ2 as I,
199126
- fQ2 as J,
199127
- Ost as K,
199128
- vy as L,
199129
- jDt as M,
199130
- cQ2 as N,
199131
- bRt as O,
199123
+ E22 as G,
199124
+ u30 as H,
199125
+ vy as I,
199126
+ bRt as J,
199127
+ xRt as K,
199128
+ aSt as L,
199129
+ IDt as M,
199130
+ jDt as N,
199131
+ WDt as O,
199132
199132
  dc as P,
199133
- xRt as Q,
199134
- aSt as R,
199133
+ ARt as Q,
199134
+ LRt as R,
199135
199135
  W0 as S,
199136
- ARt as T,
199137
- LRt as U,
199136
+ xY2 as T,
199137
+ yOt as U,
199138
199138
  a7 as V,
199139
- CRt as W,
199140
- yOt as X,
199139
+ dDt as W,
199140
+ iy0 as X,
199141
199141
  q0 as Y,
199142
- iy0 as Z,
199143
- KDt as _,
199142
+ KDt as Z,
199143
+ cQ2 as _,
199144
199144
  Oi as a,
199145
199145
  O0 as a0,
199146
199146
  E82 as a1,
@@ -199192,29 +199192,29 @@ export {
199192
199192
  s82 as ax,
199193
199193
  $Rt as ay,
199194
199194
  o$t as az,
199195
- DDt as b,
199196
- E22 as c,
199197
- Gn0 as d,
199195
+ Jr as b,
199196
+ A02 as c,
199197
+ up0 as d,
199198
199198
  c4 as e,
199199
- hp0 as f,
199200
- up0 as g,
199201
- RDt as h,
199202
- A02 as i,
199203
- $Dt as j,
199204
- ODt as k,
199205
- TDt as l,
199206
- Jr as m,
199207
- IDt as n,
199208
- PDt as o,
199199
+ DDt as f,
199200
+ hp0 as g,
199201
+ TDt as h,
199202
+ $Dt as i,
199203
+ ODt as j,
199204
+ PDt as k,
199205
+ tM as l,
199206
+ RDt as m,
199207
+ I7 as n,
199208
+ kDt as o,
199209
199209
  Vt as p,
199210
199210
  L3 as q,
199211
- I7 as r,
199212
- tM as s,
199213
- GE as t,
199211
+ GE as r,
199212
+ Gn0 as s,
199213
+ BDt as t,
199214
199214
  Ke as u,
199215
199215
  It as v,
199216
199216
  t2 as w,
199217
- kDt as x,
199218
- u30 as y,
199217
+ FDt as x,
199218
+ _x1 as y,
199219
199219
  dt as z
199220
199220
  };