@bahmni/appointments-app 0.0.1-dev.293 → 0.0.1-dev.295

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,9 +1,9 @@
1
- import { jsx as n, jsxs as f } from "react/jsx-runtime";
2
- import { o as V, A as O, a as C, p as h, r as P, h as B, s as G, t as L, y as x, x as U, B as q, C as w, E as F, F as k, G as K, J as $ } from "./index-Dy7BWvsq.js";
1
+ import { jsx as n, jsxs as y } from "react/jsx-runtime";
2
+ import { t as V, A as h, a as C, j as O, l as P, h as B, o as x, p as L, r as G, s as U, x as q, y as w, C as F, E as j, F as k, J as $ } from "./index-B_wLQqCf.js";
3
3
  import { useState as I, useMemo as _ } from "react";
4
- import { useQueryClient as j, useQuery as H } from "@tanstack/react-query";
4
+ import { useQueryClient as H, useQuery as K } from "@tanstack/react-query";
5
5
  const Q = V(
6
- O,
6
+ h,
7
7
  "useAppointmentsConfig",
8
8
  "AppointmentsConfigProvider"
9
9
  ), W = ({
@@ -14,7 +14,7 @@ const Q = V(
14
14
  }) => {
15
15
  const { t: i } = C();
16
16
  return /* @__PURE__ */ n(
17
- h,
17
+ O,
18
18
  {
19
19
  id: "delete-service-modal",
20
20
  testId: "delete-service-modal-test-id",
@@ -36,8 +36,8 @@ const Q = V(
36
36
  "speciality",
37
37
  "durationMins",
38
38
  "description"
39
- ], Y = "app:appointments:manageServices", J = "app:appointments:adminTab", Z = "index-module_page__Gsfbu", z = "index-module_noPrivilegeContainer__Pu5WZ", X = "index-module_table__GAPmb", d = {
40
- page: Z,
39
+ ], Y = "app:appointments:manageServices", Z = "app:appointments:adminTab", J = "index-module_page__Gsfbu", z = "index-module_noPrivilegeContainer__Pu5WZ", X = "index-module_table__GAPmb", d = {
40
+ page: J,
41
41
  noPrivilegeContainer: z,
42
42
  table: X
43
43
  };
@@ -75,17 +75,17 @@ function ae(e, a) {
75
75
  }));
76
76
  }
77
77
  const le = () => {
78
- const { t: e } = C(), a = j(), { addNotification: t } = B(), { userPrivileges: s } = G(), { appointmentsConfig: i } = Q(), [E, c] = I(null), [M, u] = I(!1), l = i?.serviceTableFields ?? [
78
+ const { t: e } = C(), a = H(), { addNotification: t } = B(), { userPrivileges: s } = x(), { appointmentsConfig: i } = Q(), [E, c] = I(null), [M, u] = I(!1), l = i?.serviceTableFields ?? [
79
79
  ...p
80
- ], m = L(s, J), b = L(
80
+ ], m = L(s, Z), b = L(
81
81
  s,
82
82
  Y
83
83
  ), S = _(
84
84
  () => ee(l),
85
85
  [l]
86
- ), { data: A, isLoading: v, isError: D } = H({
86
+ ), { data: A, isLoading: v, isError: D } = K({
87
87
  queryKey: ["allAppointmentServices"],
88
- queryFn: x,
88
+ queryFn: G,
89
89
  enabled: m
90
90
  }), R = _(
91
91
  () => te(l, e),
@@ -112,7 +112,7 @@ const le = () => {
112
112
  u(!1);
113
113
  }
114
114
  }, T = (r, o) => o === "actions" ? /* @__PURE__ */ n(
115
- k,
115
+ j,
116
116
  {
117
117
  id: `delete-service-${r.id}-btn`,
118
118
  testId: `delete-service-${r.id}-btn-test-id`,
@@ -121,17 +121,17 @@ const le = () => {
121
121
  label: e("ADMIN_ALL_SERVICES_DELETE_ICON_LABEL"),
122
122
  disabled: !b,
123
123
  onClick: () => c(r),
124
- children: /* @__PURE__ */ n(K, {})
124
+ children: /* @__PURE__ */ n(k, {})
125
125
  }
126
- ) : p.includes(o) ? r[o] ?? "-" : r.attributes[o] ?? "-", y = [
126
+ ) : p.includes(o) ? r[o] ?? "-" : r.attributes[o] ?? "-", f = [
127
127
  { id: "home", label: e("BREADCRUMB_HOME"), href: U },
128
128
  { id: "admin", label: e("BREADCRUMB_ADMIN"), isCurrentPage: !0 }
129
129
  ];
130
130
  return /* @__PURE__ */ n(
131
131
  q,
132
132
  {
133
- header: /* @__PURE__ */ n(F, { breadcrumbItems: y }),
134
- main: m ? /* @__PURE__ */ f(
133
+ header: /* @__PURE__ */ n(F, { breadcrumbItems: f }),
134
+ main: m ? /* @__PURE__ */ y(
135
135
  "div",
136
136
  {
137
137
  id: "all-appointment-service-page",
package/dist/index.js CHANGED
@@ -1,4 +1,4 @@
1
- import { b3 as t } from "./index-Dy7BWvsq.js";
1
+ import { b3 as t } from "./index-B_wLQqCf.js";
2
2
  export {
3
3
  t as AppointmentsApp
4
4
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@bahmni/appointments-app",
3
- "version": "0.0.1-dev.293",
3
+ "version": "0.0.1-dev.295",
4
4
  "type": "module",
5
5
  "main": "./dist/index.js",
6
6
  "module": "./dist/index.js",