@bahmni/clinical-app 0.0.1-dev.393 → 0.0.1-dev.395

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.
Files changed (30) hide show
  1. package/dist/{ConsultationPage-C-_ZfjpU.js → ConsultationPage-COghgi2o.js} +3255 -3224
  2. package/dist/{DocumentsTable-ULtsCmIW-CZMWHk-T.js → DocumentsTable-C1A0EhCk-Dcg_k1NV.js} +19 -19
  3. package/dist/{FormsTable-DAFDPXnd-CLk-i2f_.js → FormsTable-C2Gb9B6j-D75NB2JN.js} +76 -76
  4. package/dist/{LNWAZHJI-Du5pLAOf.js → LNWAZHJI-DgoaSbxQ.js} +2 -2
  5. package/dist/{MWZ6AO7Z-1Thy25SD.js → MWZ6AO7Z-nfqenvHr.js} +2 -2
  6. package/dist/{Observations-DOZ-UiSs-DUk-XWd0.js → Observations-Clr4S77q-Cf6fX8wH.js} +40 -40
  7. package/dist/{YPM2AS64-Br1DwSze.js → YPM2AS64-B68tFm35.js} +1 -1
  8. package/dist/{hook-Bq8pNgjT.js → hook-DZc1STZs.js} +1 -1
  9. package/dist/{index-Ci4kz6CI.js → index-BstPgq-n.js} +20735 -20732
  10. package/dist/{index-CAfJdVBo.js → index-CMCgtwD7.js} +30 -25
  11. package/dist/{index-Cn1-Xb0Z.js → index-DHqBRCLG.js} +9 -9
  12. package/dist/index.css +1 -1
  13. package/dist/index.js +1 -1
  14. package/dist/locales/locale_en.json +2 -0
  15. package/dist/locales/locale_es.json +2 -0
  16. package/dist/pages/ConsultationPage.d.ts.map +1 -1
  17. package/dist/pages/list/__tests__/__mocks__/listMocks.d.ts.map +1 -1
  18. package/dist/pages/list/constants.d.ts +4 -2
  19. package/dist/pages/list/constants.d.ts.map +1 -1
  20. package/dist/pages/list/extensions/{searchHandler/__tests__/__mocks__/searchHandlerMocks.d.ts → searchView/__tests__/__mocks__/searchViewMocks.d.ts} +1 -1
  21. package/dist/pages/list/extensions/searchView/__tests__/__mocks__/searchViewMocks.d.ts.map +1 -0
  22. package/dist/pages/list/extensions/searchView/index.d.ts +6 -0
  23. package/dist/pages/list/extensions/searchView/index.d.ts.map +1 -0
  24. package/dist/pages/list/index.d.ts.map +1 -1
  25. package/dist/pages/util.d.ts +1 -0
  26. package/dist/pages/util.d.ts.map +1 -1
  27. package/package.json +1 -1
  28. package/dist/pages/list/extensions/searchHandler/__tests__/__mocks__/searchHandlerMocks.d.ts.map +0 -1
  29. package/dist/pages/list/extensions/searchHandler/index.d.ts +0 -4
  30. package/dist/pages/list/extensions/searchHandler/index.d.ts.map +0 -1
@@ -1,46 +1,51 @@
1
1
  import { jsx as s } from "react/jsx-runtime";
2
- import { u as g, e as u, bG as b, bQ as f, bR as p, bS as _, aG as x, bM as N } from "./index-Ci4kz6CI.js";
3
- import { lazy as h, useMemo as n, Suspense as C } from "react";
2
+ import { u as g, e as u, bH as b, bR as f, bS as p, bT as x, aG as N, bN as _ } from "./index-BstPgq-n.js";
3
+ import { lazy as h, useMemo as t, Suspense as C } from "react";
4
4
  import "@tanstack/react-query";
5
- import { u as E } from "./hook-Bq8pNgjT.js";
5
+ import { u as E } from "./hook-DZc1STZs.js";
6
6
  const L = {
7
7
  "org.bahmni.clinical.v2.search": h(
8
- () => import("./index-Cn1-Xb0Z.js")
8
+ () => import("./index-DHqBRCLG.js")
9
9
  )
10
- }, v = "index-module_page__16xxw", I = "index-module_loading__wNI-4", S = "index-module_message__Ib5Iw", t = {
10
+ }, v = "index-module_page__16xxw", H = "index-module_loading__wNI-4", I = "index-module_message__Ib5Iw", l = {
11
11
  page: v,
12
- loading: I,
13
- message: S
14
- }, M = () => {
15
- const { t: a } = g(), { clinicalConfig: l } = E(), { userPrivileges: o } = u(), d = n(
12
+ loading: H,
13
+ message: I
14
+ }, T = () => {
15
+ const { t: a } = g(), { clinicalConfig: o } = E(), { userPrivileges: r } = u(), m = t(
16
16
  () => [
17
17
  { id: "home", label: a("HOME_LABEL"), href: b },
18
18
  { id: "clinical", label: a("CLINICAL_LABEL"), isCurrentPage: !0 }
19
19
  ],
20
20
  [a]
21
- ), r = n(
22
- () => f(l?.extensions ?? []),
23
- [l]
24
- ), c = n(
25
- () => Array.from(r.entries()).map(([e, i]) => ({
21
+ ), c = t(
22
+ () => f(o?.extensions ?? []),
23
+ [o]
24
+ ), d = t(
25
+ () => Array.from(c.entries()).map(([e, i]) => ({
26
26
  pointId: e,
27
27
  Handler: L[e],
28
- filtered: p(i, o)
28
+ filtered: p(
29
+ i,
30
+ r
31
+ ).filter(
32
+ (n) => !!n.extensionParams && "searchHandler" in n.extensionParams
33
+ )
29
34
  })).filter(({ Handler: e, filtered: i }) => !!e && i.length > 0),
30
- [r, o]
35
+ [c, r]
31
36
  );
32
37
  return /* @__PURE__ */ s(
33
- _,
38
+ x,
34
39
  {
35
- header: /* @__PURE__ */ s(N, { breadcrumbItems: d }),
40
+ header: /* @__PURE__ */ s(_, { breadcrumbItems: m }),
36
41
  main: /* @__PURE__ */ s(
37
42
  "div",
38
43
  {
39
44
  id: "clinical-list-page",
40
45
  "data-testid": "clinical-list-page-test-id",
41
46
  "aria-label": "Clinical List Page",
42
- className: t.page,
43
- children: c.length > 0 ? c.map(({ pointId: e, Handler: i, filtered: m }) => /* @__PURE__ */ s(
47
+ className: l.page,
48
+ children: d.length > 0 ? d.map(({ pointId: e, Handler: i, filtered: n }) => /* @__PURE__ */ s(
44
49
  "div",
45
50
  {
46
51
  id: e,
@@ -49,13 +54,13 @@ const L = {
49
54
  C,
50
55
  {
51
56
  fallback: /* @__PURE__ */ s(
52
- x,
57
+ N,
53
58
  {
54
59
  type: "multi",
55
- className: t.loading
60
+ className: l.loading
56
61
  }
57
62
  ),
58
- children: /* @__PURE__ */ s(i, { extensions: m })
63
+ children: /* @__PURE__ */ s(i, { extensions: n })
59
64
  }
60
65
  )
61
66
  },
@@ -66,7 +71,7 @@ const L = {
66
71
  id: "no-extensions-configured",
67
72
  "data-testid": "no-extensions-configured-test-id",
68
73
  "aria-label": "No extensions configured",
69
- className: t.message,
74
+ className: l.message,
70
75
  children: a("NO_EXTENSIONS_CONFIGURED")
71
76
  }
72
77
  )
@@ -76,5 +81,5 @@ const L = {
76
81
  );
77
82
  };
78
83
  export {
79
- M as default
84
+ T as default
80
85
  };
@@ -1,12 +1,12 @@
1
1
  import { jsxs as d, jsx as e } from "react/jsx-runtime";
2
- import { u as r, cH as l, cI as o, cJ as c, b7 as m, b8 as g, cK as p, cL as h, cM as b, aG as u } from "./index-Ci4kz6CI.js";
2
+ import { u as r, cI as l, cJ as o, cK as c, b7 as m, b8 as g, cL as h, cM as p, cN as b, aG as u } from "./index-BstPgq-n.js";
3
3
  import { Suspense as _ } from "react";
4
4
  import "@tanstack/react-query";
5
- const $ = "index-module_loading__FAL7n", y = "index-module_message__KjCnF", E = "index-module_panel__j5vTu", s = {
6
- loading: $,
7
- message: y,
8
- panel: E
9
- }, j = ({ extensions: i }) => {
5
+ const y = "index-module_loading__eyE2k", E = "index-module_message__95HmH", $ = "index-module_panel__8VJh2", s = {
6
+ loading: y,
7
+ message: E,
8
+ panel: $
9
+ }, w = ({ extensions: i }) => {
10
10
  const { t: n } = r();
11
11
  return i.length === 0 ? null : /* @__PURE__ */ d(l, { children: [
12
12
  /* @__PURE__ */ e(
@@ -37,8 +37,8 @@ const $ = "index-module_loading__FAL7n", y = "index-module_message__KjCnF", E =
37
37
  ))
38
38
  }
39
39
  ),
40
- /* @__PURE__ */ e(p, { children: i.map((a) => {
41
- const t = h(
40
+ /* @__PURE__ */ e(h, { children: i.map((a) => {
41
+ const t = p(
42
42
  a.extensionParams?.searchHandler ?? ""
43
43
  )?.component;
44
44
  return /* @__PURE__ */ e(
@@ -77,5 +77,5 @@ const $ = "index-module_loading__FAL7n", y = "index-module_message__KjCnF", E =
77
77
  ] });
78
78
  };
79
79
  export {
80
- j as default
80
+ w as default
81
81
  };