@bahmni/appointments-app 0.0.1-dev.401 → 0.0.1-dev.405
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-BYyXnEYb-DVvHlY_b.js → DocumentsTable-CIJwgXmb-D1TQHecI.js} +37 -37
- package/dist/{FormsTable-lAAkDRQQ-DxDgcp86.js → FormsTable-DMPfuqmY-CPlSuZtA.js} +61 -61
- package/dist/{LNWAZHJI-2hNd5SEB.js → LNWAZHJI-yNLSiU7P.js} +2 -2
- package/dist/{MWZ6AO7Z-D4kHlEjD.js → MWZ6AO7Z-1OLYoGcm.js} +2 -2
- package/dist/Observations-BflI1_YX-Cp-d90I-.js +213 -0
- package/dist/{YPM2AS64-PInLdgeX.js → YPM2AS64-BSMOwRa0.js} +1 -1
- package/dist/{index-Cg1sZ8wQ.js → index-C5qmSsJM.js} +18 -18
- package/dist/{index-BtK4jcwc.js → index-CDAgqrus.js} +26609 -26457
- package/dist/{index-DiUwH_qI.js → index-Cl8zGTvc.js} +26 -26
- package/dist/index.css +1 -1
- package/dist/index.js +1 -1
- package/package.json +1 -1
- package/dist/Observations-DGEkuYFv-Cz4I1O7m.js +0 -213
|
@@ -1,18 +1,18 @@
|
|
|
1
1
|
import { jsx as i, jsxs as y } from "react/jsx-runtime";
|
|
2
|
-
import {
|
|
3
|
-
import { useState as
|
|
2
|
+
import { H as V, I as O, u as C, L as P, M as h, z as x, a as B, N as L, O as G, Q as U, R as q, S as F, T as k, U as H, W as Q, X as W, Z as $ } from "./index-CDAgqrus.js";
|
|
3
|
+
import { useState as I, useMemo as c } from "react";
|
|
4
4
|
import { useQueryClient as j, useQuery as w } from "@tanstack/react-query";
|
|
5
|
-
const
|
|
5
|
+
const z = V(
|
|
6
6
|
O,
|
|
7
7
|
"useAppointmentsConfig",
|
|
8
8
|
"AppointmentsConfigProvider"
|
|
9
|
-
),
|
|
9
|
+
), K = ({
|
|
10
10
|
serviceName: e,
|
|
11
11
|
isDeleting: a,
|
|
12
12
|
onConfirm: t,
|
|
13
13
|
onCancel: s
|
|
14
14
|
}) => {
|
|
15
|
-
const { t: n } =
|
|
15
|
+
const { t: n } = C();
|
|
16
16
|
return /* @__PURE__ */ i(
|
|
17
17
|
P,
|
|
18
18
|
{
|
|
@@ -36,8 +36,8 @@ const K = V(
|
|
|
36
36
|
"speciality",
|
|
37
37
|
"durationMins",
|
|
38
38
|
"description"
|
|
39
|
-
], Y = "app:appointments:manageServices",
|
|
40
|
-
page:
|
|
39
|
+
], Y = "app:appointments:manageServices", Z = "app:appointments:adminTab", X = "index-module_page__Gsfbu", J = "index-module_noPrivilegeContainer__Pu5WZ", ee = "index-module_table__GAPmb", d = {
|
|
40
|
+
page: X,
|
|
41
41
|
noPrivilegeContainer: J,
|
|
42
42
|
table: ee
|
|
43
43
|
};
|
|
@@ -75,26 +75,26 @@ function ie(e, a) {
|
|
|
75
75
|
}));
|
|
76
76
|
}
|
|
77
77
|
const oe = () => {
|
|
78
|
-
const { t: e } =
|
|
78
|
+
const { t: e } = C(), a = j(), { addNotification: t } = x(), { userPrivileges: s } = B(), { appointmentsConfig: n } = z(), [E, _] = I(null), [M, m] = I(!1), l = n?.serviceTableFields ?? [
|
|
79
79
|
...u
|
|
80
|
-
],
|
|
80
|
+
], p = L(s, Z), b = L(
|
|
81
81
|
s,
|
|
82
82
|
Y
|
|
83
83
|
), S = c(
|
|
84
84
|
() => te(l),
|
|
85
85
|
[l]
|
|
86
|
-
), { data: A, isLoading: v, isError:
|
|
86
|
+
), { data: A, isLoading: v, isError: R } = w({
|
|
87
87
|
queryKey: ["allAppointmentServices"],
|
|
88
88
|
queryFn: G,
|
|
89
|
-
enabled:
|
|
90
|
-
}),
|
|
89
|
+
enabled: p
|
|
90
|
+
}), D = c(
|
|
91
91
|
() => ae(l, e),
|
|
92
92
|
[l]
|
|
93
93
|
), N = c(
|
|
94
94
|
() => ie(A ?? [], S),
|
|
95
95
|
[A, S]
|
|
96
96
|
), g = async () => {
|
|
97
|
-
|
|
97
|
+
m(!0);
|
|
98
98
|
try {
|
|
99
99
|
await $(E.id), t({
|
|
100
100
|
title: e("ADMIN_ALL_SERVICES_DELETE_SUCCESS_TITLE"),
|
|
@@ -109,7 +109,7 @@ const oe = () => {
|
|
|
109
109
|
type: "error"
|
|
110
110
|
});
|
|
111
111
|
} finally {
|
|
112
|
-
|
|
112
|
+
m(!1);
|
|
113
113
|
}
|
|
114
114
|
}, T = (r, o) => o === "actions" ? /* @__PURE__ */ i(
|
|
115
115
|
Q,
|
|
@@ -131,7 +131,7 @@ const oe = () => {
|
|
|
131
131
|
q,
|
|
132
132
|
{
|
|
133
133
|
header: /* @__PURE__ */ i(k, { breadcrumbItems: f, userMenu: /* @__PURE__ */ i(H, {}) }),
|
|
134
|
-
main:
|
|
134
|
+
main: p ? /* @__PURE__ */ y(
|
|
135
135
|
"div",
|
|
136
136
|
{
|
|
137
137
|
id: "all-appointment-service-page",
|
|
@@ -144,18 +144,18 @@ const oe = () => {
|
|
|
144
144
|
{
|
|
145
145
|
id: "all-services",
|
|
146
146
|
title: e("ADMIN_ALL_SERVICES_TITLE"),
|
|
147
|
-
headers:
|
|
147
|
+
headers: D,
|
|
148
148
|
rows: N,
|
|
149
149
|
ariaLabel: "all-services-table",
|
|
150
150
|
loading: v,
|
|
151
|
-
errorStateMessage:
|
|
151
|
+
errorStateMessage: R ? e("ADMIN_ALL_SERVICES_ERROR_MESSAGE") : null,
|
|
152
152
|
emptyStateMessage: e("ADMIN_ALL_SERVICES_EMPTY_MESSAGE"),
|
|
153
153
|
renderCell: T,
|
|
154
154
|
className: d.table
|
|
155
155
|
}
|
|
156
156
|
),
|
|
157
157
|
E && /* @__PURE__ */ i(
|
|
158
|
-
|
|
158
|
+
K,
|
|
159
159
|
{
|
|
160
160
|
serviceName: E.name,
|
|
161
161
|
isDeleting: M,
|