@bahmni/appointments-app 0.0.1-dev.355 → 0.0.1-dev.357

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
1
  import { jsx as i, jsxs as y } from "react/jsx-runtime";
2
- import { r as V, s as O, u as C, B as P, D as h, a as B, x as G, G as L, _ as x, K as U, M as H, P as q, R as F, S as k, U as K, Y as j, Z as Q } from "./index-Ux2KguE2.js";
2
+ import { P as V, B as P, u as C, C as O, E as h, a as B, x as G, G as L, I as x, J as U, K as H, N as q, Q as F, S as K, U as Q, Y as j, Z as k } from "./index-CTQF7H5n.js";
3
3
  import { useState as I, useMemo as c } from "react";
4
4
  import { useQueryClient as $, useQuery as W } from "@tanstack/react-query";
5
5
  const Y = V(
6
- O,
6
+ P,
7
7
  "useAppointmentsConfig",
8
8
  "AppointmentsConfigProvider"
9
9
  ), Z = ({
@@ -14,7 +14,7 @@ const Y = V(
14
14
  }) => {
15
15
  const { t: n } = C();
16
16
  return /* @__PURE__ */ i(
17
- P,
17
+ O,
18
18
  {
19
19
  id: "delete-service-modal",
20
20
  testId: "delete-service-modal-test-id",
@@ -75,9 +75,9 @@ function ie(e, a) {
75
75
  }));
76
76
  }
77
77
  const oe = () => {
78
- const { t: e } = C(), a = $(), { addNotification: t } = B(), { userPrivileges: s } = G(), { appointmentsConfig: n } = Y(), [E, _] = I(null), [M, p] = I(!1), l = n?.serviceTableFields ?? [
78
+ const { t: e } = C(), a = $(), { addNotification: t } = B(), { userPrivileges: s } = G(), { appointmentsConfig: n } = Y(), [E, _] = I(null), [b, p] = I(!1), l = n?.serviceTableFields ?? [
79
79
  ...u
80
- ], S = L(s, z), b = L(
80
+ ], S = L(s, z), M = L(
81
81
  s,
82
82
  w
83
83
  ), m = c(
@@ -87,16 +87,16 @@ const oe = () => {
87
87
  queryKey: ["allAppointmentServices"],
88
88
  queryFn: x,
89
89
  enabled: S
90
- }), R = c(
90
+ }), N = c(
91
91
  () => ae(l, e),
92
92
  [l]
93
- ), N = c(
93
+ ), R = c(
94
94
  () => ie(A ?? [], m),
95
95
  [A, m]
96
96
  ), g = async () => {
97
97
  p(!0);
98
98
  try {
99
- await Q(E.id), t({
99
+ await k(E.id), t({
100
100
  title: e("ADMIN_ALL_SERVICES_DELETE_SUCCESS_TITLE"),
101
101
  message: e("ADMIN_ALL_SERVICES_DELETE_SUCCESS_MESSAGE"),
102
102
  type: "success",
@@ -112,14 +112,14 @@ const oe = () => {
112
112
  p(!1);
113
113
  }
114
114
  }, T = (r, o) => o === "actions" ? /* @__PURE__ */ i(
115
- K,
115
+ Q,
116
116
  {
117
117
  id: `delete-service-${r.id}-btn`,
118
118
  testId: `delete-service-${r.id}-btn-test-id`,
119
119
  "aria-label": `delete-service-${r.id}-btn-aria-label`,
120
120
  kind: "ghost",
121
121
  label: e("ADMIN_ALL_SERVICES_DELETE_ICON_LABEL"),
122
- disabled: !b,
122
+ disabled: !M,
123
123
  onClick: () => _(r),
124
124
  children: /* @__PURE__ */ i(j, {})
125
125
  }
@@ -130,7 +130,7 @@ const oe = () => {
130
130
  return /* @__PURE__ */ i(
131
131
  H,
132
132
  {
133
- header: /* @__PURE__ */ i(F, { breadcrumbItems: f, userMenu: /* @__PURE__ */ i(k, {}) }),
133
+ header: /* @__PURE__ */ i(F, { breadcrumbItems: f, userMenu: /* @__PURE__ */ i(K, {}) }),
134
134
  main: S ? /* @__PURE__ */ y(
135
135
  "div",
136
136
  {
@@ -144,8 +144,8 @@ const oe = () => {
144
144
  {
145
145
  id: "all-services",
146
146
  title: e("ADMIN_ALL_SERVICES_TITLE"),
147
- headers: R,
148
- rows: N,
147
+ headers: N,
148
+ rows: R,
149
149
  ariaLabel: "all-services-table",
150
150
  loading: v,
151
151
  errorStateMessage: D ? e("ADMIN_ALL_SERVICES_ERROR_MESSAGE") : null,
@@ -158,7 +158,7 @@ const oe = () => {
158
158
  Z,
159
159
  {
160
160
  serviceName: E.name,
161
- isDeleting: M,
161
+ isDeleting: b,
162
162
  onConfirm: g,
163
163
  onCancel: () => _(null)
164
164
  }
package/dist/index.js CHANGED
@@ -1,4 +1,4 @@
1
- import { b9 as t } from "./index-Ux2KguE2.js";
1
+ import { b9 as t } from "./index-CTQF7H5n.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.355",
3
+ "version": "0.0.1-dev.357",
4
4
  "type": "module",
5
5
  "main": "./dist/index.js",
6
6
  "module": "./dist/index.js",