@bahmni/appointments-app 0.0.1-dev.275 → 0.0.1-dev.280
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.
- package/dist/{DocumentsTable-CQlB57O3-BA-yMCl2.js → DocumentsTable-BKZD_mfe-Bx_dYGc1.js} +44 -44
- package/dist/{FormsTable-ByelMt32-B0_6mOWo.js → FormsTable-f2R_SktG-BbBKJHoC.js} +41 -41
- package/dist/{LNWAZHJI-DeuHN6li.js → LNWAZHJI-Bdz5TBqR.js} +2 -2
- package/dist/{MWZ6AO7Z-WqKqBCZm.js → MWZ6AO7Z-BClhjlwI.js} +2 -2
- package/dist/{Observations-C-8hfaLy-DuzVkPME.js → Observations-DeYdVNE_-j3RJWbRd.js} +24 -24
- package/dist/{YPM2AS64-VFsL6J2W.js → YPM2AS64-DuMknZb4.js} +1 -1
- package/dist/{index-CTpOugVw.js → index-2z0gvRxU.js} +18 -18
- package/dist/{index-BhSIQgVe.js → index-C-vyEqrT.js} +20 -20
- package/dist/{index-DsIJbVEt.js → index-CaUizC9n.js} +8534 -8529
- package/dist/index.css +1 -1
- package/dist/index.js +1 -1
- package/package.json +1 -1
|
@@ -1,12 +1,12 @@
|
|
|
1
|
-
import { jsx as n, jsxs as
|
|
2
|
-
import {
|
|
1
|
+
import { jsx as n, jsxs as y } from "react/jsx-runtime";
|
|
2
|
+
import { r as V, A as O, a as C, I as h, D as P, h as B, F as G, Y as L, G as x, H as U, J as q, O as F, K as w, M as k, N as H, Q as K } from "./index-CaUizC9n.js";
|
|
3
3
|
import { useState as I, useMemo as _ } from "react";
|
|
4
|
-
import { useQueryClient as
|
|
5
|
-
const
|
|
6
|
-
|
|
4
|
+
import { useQueryClient as Q, useQuery as Y } from "@tanstack/react-query";
|
|
5
|
+
const $ = V(
|
|
6
|
+
O,
|
|
7
7
|
"useAppointmentsConfig",
|
|
8
8
|
"AppointmentsConfigProvider"
|
|
9
|
-
),
|
|
9
|
+
), j = ({
|
|
10
10
|
serviceName: e,
|
|
11
11
|
isDeleting: a,
|
|
12
12
|
onConfirm: t,
|
|
@@ -14,7 +14,7 @@ const j = V(
|
|
|
14
14
|
}) => {
|
|
15
15
|
const { t: i } = C();
|
|
16
16
|
return /* @__PURE__ */ n(
|
|
17
|
-
|
|
17
|
+
h,
|
|
18
18
|
{
|
|
19
19
|
id: "delete-service-modal",
|
|
20
20
|
testId: "delete-service-modal-test-id",
|
|
@@ -36,9 +36,9 @@ const j = V(
|
|
|
36
36
|
"speciality",
|
|
37
37
|
"durationMins",
|
|
38
38
|
"description"
|
|
39
|
-
], W = "app:appointments:manageServices",
|
|
40
|
-
page:
|
|
41
|
-
noPrivilegeContainer:
|
|
39
|
+
], W = "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,
|
|
41
|
+
noPrivilegeContainer: z,
|
|
42
42
|
table: X
|
|
43
43
|
};
|
|
44
44
|
function ee(e) {
|
|
@@ -75,15 +75,15 @@ function ae(e, a) {
|
|
|
75
75
|
}));
|
|
76
76
|
}
|
|
77
77
|
const le = () => {
|
|
78
|
-
const { t: e } = C(), a =
|
|
78
|
+
const { t: e } = C(), a = Q(), { addNotification: t } = B(), { userPrivileges: s } = G(), { appointmentsConfig: i } = $(), [E, c] = I(null), [M, u] = I(!1), l = i?.serviceTableFields ?? [
|
|
79
79
|
...p
|
|
80
|
-
], m = L(s,
|
|
80
|
+
], m = L(s, J), b = L(
|
|
81
81
|
s,
|
|
82
82
|
W
|
|
83
83
|
), S = _(
|
|
84
84
|
() => ee(l),
|
|
85
85
|
[l]
|
|
86
|
-
), { data: A, isLoading: v, isError: D } =
|
|
86
|
+
), { data: A, isLoading: v, isError: D } = Y({
|
|
87
87
|
queryKey: ["allAppointmentServices"],
|
|
88
88
|
queryFn: x,
|
|
89
89
|
enabled: m
|
|
@@ -96,7 +96,7 @@ const le = () => {
|
|
|
96
96
|
), g = async () => {
|
|
97
97
|
u(!0);
|
|
98
98
|
try {
|
|
99
|
-
await
|
|
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,7 +112,7 @@ const le = () => {
|
|
|
112
112
|
u(!1);
|
|
113
113
|
}
|
|
114
114
|
}, T = (r, o) => o === "actions" ? /* @__PURE__ */ n(
|
|
115
|
-
|
|
115
|
+
k,
|
|
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(
|
|
124
|
+
children: /* @__PURE__ */ n(H, {})
|
|
125
125
|
}
|
|
126
|
-
) : p.includes(o) ? r[o] ?? "-" : r.attributes[o] ?? "-",
|
|
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(w, { breadcrumbItems:
|
|
134
|
-
main: m ? /* @__PURE__ */
|
|
133
|
+
header: /* @__PURE__ */ n(w, { breadcrumbItems: f }),
|
|
134
|
+
main: m ? /* @__PURE__ */ y(
|
|
135
135
|
"div",
|
|
136
136
|
{
|
|
137
137
|
id: "all-appointment-service-page",
|
|
@@ -155,7 +155,7 @@ const le = () => {
|
|
|
155
155
|
}
|
|
156
156
|
),
|
|
157
157
|
E && /* @__PURE__ */ n(
|
|
158
|
-
|
|
158
|
+
j,
|
|
159
159
|
{
|
|
160
160
|
serviceName: E.name,
|
|
161
161
|
isDeleting: M,
|