@bahmni/clinical-app 0.0.1-dev.441 → 0.0.1-dev.443

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,18 +1,18 @@
1
1
  import { jsx as s } from "react/jsx-runtime";
2
- import { u as g, k as u, bQ as b, b_ as f, b$ as x, c0 as _, aO as p, bW as N } from "./index-CXVD8oVf.js";
3
- import { lazy as h, useMemo as t, Suspense as C } from "react";
2
+ import { u as g, k as u, bQ as b, b_ as f, b$ as _, c0 as p, aO as x, bW as N } from "./index-D9IwfHx_.js";
3
+ import { lazy as h, useMemo as t, Suspense as E } from "react";
4
4
  import "@tanstack/react-query";
5
- import { u as E } from "./hook-CTrQG8ZB.js";
5
+ import { u as C } from "./hook-CdnuMa2Z.js";
6
6
  const L = {
7
7
  "org.bahmni.clinical.v2.search": h(
8
- () => import("./index-Da-7cqE_.js")
8
+ () => import("./index-LSVmX4V0.js")
9
9
  )
10
- }, v = "index-module_page__16xxw", I = "index-module_loading__wNI-4", O = "index-module_message__Ib5Iw", l = {
11
- page: v,
12
- loading: I,
13
- message: O
14
- }, k = () => {
15
- const { t: i } = g(), { clinicalConfig: o } = E(), { userPrivileges: r } = u(), m = t(
10
+ }, I = "index-module_page__16xxw", O = "index-module_loading__wNI-4", P = "index-module_message__Ib5Iw", l = {
11
+ page: I,
12
+ loading: O,
13
+ message: P
14
+ }, T = () => {
15
+ const { t: i } = g(), { clinicalConfig: o } = C(), { userPrivileges: r } = u(), m = t(
16
16
  () => [
17
17
  { id: "home", label: i("HOME_LABEL"), href: b },
18
18
  { id: "clinical", label: i("CLINICAL_LABEL"), isCurrentPage: !0 }
@@ -25,7 +25,7 @@ const L = {
25
25
  () => Array.from(c.entries()).map(([e, a]) => ({
26
26
  pointId: e,
27
27
  Handler: L[e],
28
- filtered: x(
28
+ filtered: _(
29
29
  a,
30
30
  r
31
31
  ).filter(
@@ -35,7 +35,7 @@ const L = {
35
35
  [c, r]
36
36
  );
37
37
  return /* @__PURE__ */ s(
38
- _,
38
+ p,
39
39
  {
40
40
  header: /* @__PURE__ */ s(N, { breadcrumbItems: m }),
41
41
  main: /* @__PURE__ */ s(
@@ -51,10 +51,10 @@ const L = {
51
51
  id: e,
52
52
  "data-testid": `${e}-test-id`,
53
53
  children: /* @__PURE__ */ s(
54
- C,
54
+ E,
55
55
  {
56
56
  fallback: /* @__PURE__ */ s(
57
- p,
57
+ x,
58
58
  {
59
59
  type: "multi",
60
60
  className: l.loading
@@ -81,5 +81,5 @@ const L = {
81
81
  );
82
82
  };
83
83
  export {
84
- k as default
84
+ T as default
85
85
  };
@@ -1,66 +1,66 @@
1
- import { jsxs as d, jsx as a } from "react/jsx-runtime";
2
- import { u as r, cR as l, cS as o, cT as c, bg as m, bh as g, cU as h, cV as p, cW as b, aO as u } from "./index-CXVD8oVf.js";
1
+ import { jsxs as d, jsx as e } from "react/jsx-runtime";
2
+ import { u as r, cR as l, cS as o, cT as c, bg as m, bh as g, cU as b, cV as h, cW as p, aO as u } from "./index-D9IwfHx_.js";
3
3
  import { Suspense as _ } from "react";
4
4
  import "@tanstack/react-query";
5
- const E = "index-module_loading__eyE2k", $ = "index-module_message__95HmH", y = "index-module_panel__8VJh2", s = {
5
+ const E = "index-module_loading__eyE2k", $ = "index-module_message__95HmH", S = "index-module_panel__8VJh2", s = {
6
6
  loading: E,
7
7
  message: $,
8
- panel: y
9
- }, w = ({ extensions: i }) => {
8
+ panel: S
9
+ }, y = ({ extensions: i }) => {
10
10
  const { t: n } = r();
11
11
  return i.length === 0 ? null : /* @__PURE__ */ d(l, { children: [
12
- /* @__PURE__ */ a(
12
+ /* @__PURE__ */ e(
13
13
  o,
14
14
  {
15
15
  id: "search-extension-tab-list",
16
16
  "data-testid": "search-extension-tab-list-test-id",
17
17
  "aria-label": "Search Extensions",
18
- children: i.map((e) => /* @__PURE__ */ a(
18
+ children: i.map((a) => /* @__PURE__ */ e(
19
19
  c,
20
20
  {
21
- id: `search-tab-${e.id}`,
22
- "data-testid": `search-tab-${e.id}-test-id`,
23
- "aria-label": `Search Tab ${e.id}`,
24
- renderIcon: e.icon ? () => /* @__PURE__ */ a(
21
+ id: `search-tab-${a.id}`,
22
+ "data-testid": `search-tab-${a.id}-test-id`,
23
+ "aria-label": `Search Tab ${a.id}`,
24
+ renderIcon: a.icon ? () => /* @__PURE__ */ e(
25
25
  m,
26
26
  {
27
- id: `${e.id}-icon`,
28
- testId: `${e.id}-icon-test-id`,
29
- ariaLabel: `Icon ${e.id}`,
30
- name: e.icon,
27
+ id: `${a.id}-icon`,
28
+ testId: `${a.id}-icon-test-id`,
29
+ ariaLabel: `Icon ${a.id}`,
30
+ name: a.icon,
31
31
  size: g.SM
32
32
  }
33
33
  ) : void 0,
34
- children: n(e.translationKey)
34
+ children: n(a.translationKey)
35
35
  },
36
- e.id
36
+ a.id
37
37
  ))
38
38
  }
39
39
  ),
40
- /* @__PURE__ */ a(h, { children: i.map((e) => {
41
- const t = p(
42
- e.extensionParams?.searchHandler ?? ""
40
+ /* @__PURE__ */ e(b, { children: i.map((a) => {
41
+ const t = h(
42
+ a.extensionParams?.searchHandler ?? ""
43
43
  )?.component;
44
- return /* @__PURE__ */ a(
45
- b,
44
+ return /* @__PURE__ */ e(
45
+ p,
46
46
  {
47
- id: `${e.id}-panel`,
47
+ id: `${a.id}-panel`,
48
48
  className: s.panel,
49
- "data-testid": `${e.id}-panel-test-id`,
50
- "aria-label": `Panel ${e.id}`,
51
- children: t && e.extensionParams ? /* @__PURE__ */ a(
49
+ "data-testid": `${a.id}-panel-test-id`,
50
+ "aria-label": `Panel ${a.id}`,
51
+ children: t && a.extensionParams ? /* @__PURE__ */ e(
52
52
  _,
53
53
  {
54
- fallback: /* @__PURE__ */ a(
54
+ fallback: /* @__PURE__ */ e(
55
55
  u,
56
56
  {
57
57
  type: "multi",
58
58
  className: s.loading
59
59
  }
60
60
  ),
61
- children: /* @__PURE__ */ a(t, { extensionParams: e.extensionParams })
61
+ children: /* @__PURE__ */ e(t, { extensionParams: a.extensionParams })
62
62
  }
63
- ) : /* @__PURE__ */ a(
63
+ ) : /* @__PURE__ */ e(
64
64
  "p",
65
65
  {
66
66
  id: "extension-widget-not-registered",
@@ -71,11 +71,11 @@ const E = "index-module_loading__eyE2k", $ = "index-module_message__95HmH", y =
71
71
  }
72
72
  )
73
73
  },
74
- e.id
74
+ a.id
75
75
  );
76
76
  }) })
77
77
  ] });
78
78
  };
79
79
  export {
80
- w as default
80
+ y as default
81
81
  };