@bahmni/appointments-app 0.0.1-dev.261 → 0.0.1-dev.264
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-BhndlDvB-BCySVSwG.js → DocumentsTable-BReXAZIp-CzVbtfG8.js} +24 -24
- package/dist/{FormsTable-BteyGmR--CndiEI59.js → FormsTable-C2TMKYSS-B_m3QC2T.js} +49 -49
- package/dist/{LNWAZHJI-BW5ZP73o.js → LNWAZHJI-DRgcOAER.js} +2 -2
- package/dist/{MWZ6AO7Z-CXzdGf5m.js → MWZ6AO7Z-Cicl0m02.js} +2 -2
- package/dist/{Observations-DpOkn2DY-DTv6VdA9.js → Observations-CicWM0Ea-CAZMXS9N.js} +49 -49
- package/dist/{YPM2AS64-5NZHFpxt.js → YPM2AS64-C5iXprY9.js} +1 -1
- package/dist/{index-BGsOPq88.js → index-C4PZwwNE.js} +24776 -24771
- package/dist/{index-wg_7cHHc.js → index-TAII9cTU.js} +21 -21
- package/dist/index.css +1 -1
- package/dist/index.js +1 -1
- package/package.json +1 -1
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import { jsx as n, jsxs as f } from "react/jsx-runtime";
|
|
2
|
-
import {
|
|
2
|
+
import { n as V, o as O, u as C, y as h, s as P, g as B, a as G, p as x, q as A, b as q, t as U, w as F, z as $, C as k, L as w, M as H, O as Q, Q as j } from "./index-C4PZwwNE.js";
|
|
3
3
|
import { useState as I, useMemo as _ } from "react";
|
|
4
|
-
const
|
|
4
|
+
const K = V(
|
|
5
5
|
O,
|
|
6
6
|
"useAppointmentsConfig",
|
|
7
7
|
"AppointmentsConfigProvider"
|
|
8
|
-
),
|
|
8
|
+
), W = ({
|
|
9
9
|
serviceName: e,
|
|
10
10
|
isDeleting: a,
|
|
11
11
|
onConfirm: t,
|
|
@@ -35,8 +35,8 @@ const W = V(
|
|
|
35
35
|
"speciality",
|
|
36
36
|
"durationMins",
|
|
37
37
|
"description"
|
|
38
|
-
],
|
|
39
|
-
page:
|
|
38
|
+
], Y = "app:appointments:manageServices", z = "app:appointments:adminTab", J = "_page_10v94_1", X = "_noPrivilegeContainer_10v94_1", Z = "_table_10v94_18", d = {
|
|
39
|
+
page: J,
|
|
40
40
|
noPrivilegeContainer: X,
|
|
41
41
|
table: Z
|
|
42
42
|
};
|
|
@@ -74,28 +74,28 @@ function ae(e, a) {
|
|
|
74
74
|
}));
|
|
75
75
|
}
|
|
76
76
|
const re = () => {
|
|
77
|
-
const { t: e } = C(), a = B(), { addNotification: t } = G(), { userPrivileges: s } =
|
|
77
|
+
const { t: e } = C(), a = B(), { addNotification: t } = G(), { userPrivileges: s } = x(), { appointmentsConfig: i } = K(), [E, c] = I(null), [v, u] = I(!1), l = i?.serviceTableFields ?? [
|
|
78
78
|
...p
|
|
79
|
-
], S =
|
|
79
|
+
], S = A(s, z), M = A(
|
|
80
80
|
s,
|
|
81
|
-
|
|
81
|
+
Y
|
|
82
82
|
), m = _(
|
|
83
83
|
() => ee(l),
|
|
84
84
|
[l]
|
|
85
|
-
), { data:
|
|
85
|
+
), { data: L, isLoading: b, isError: D } = q({
|
|
86
86
|
queryKey: ["allAppointmentServices"],
|
|
87
|
-
queryFn:
|
|
87
|
+
queryFn: j,
|
|
88
88
|
enabled: S
|
|
89
|
-
}),
|
|
89
|
+
}), N = _(
|
|
90
90
|
() => te(l, e),
|
|
91
91
|
[l]
|
|
92
|
-
),
|
|
93
|
-
() => ae(
|
|
94
|
-
[
|
|
92
|
+
), R = _(
|
|
93
|
+
() => ae(L ?? [], m),
|
|
94
|
+
[L, m]
|
|
95
95
|
), g = async () => {
|
|
96
96
|
u(!0);
|
|
97
97
|
try {
|
|
98
|
-
await
|
|
98
|
+
await Q(E.id), t({
|
|
99
99
|
title: e("ADMIN_ALL_SERVICES_DELETE_SUCCESS_TITLE"),
|
|
100
100
|
message: e("ADMIN_ALL_SERVICES_DELETE_SUCCESS_MESSAGE"),
|
|
101
101
|
type: "success",
|
|
@@ -129,7 +129,7 @@ const re = () => {
|
|
|
129
129
|
return /* @__PURE__ */ n(
|
|
130
130
|
F,
|
|
131
131
|
{
|
|
132
|
-
header: /* @__PURE__ */ n(
|
|
132
|
+
header: /* @__PURE__ */ n(k, { breadcrumbItems: y }),
|
|
133
133
|
main: S ? /* @__PURE__ */ f(
|
|
134
134
|
"div",
|
|
135
135
|
{
|
|
@@ -139,22 +139,22 @@ const re = () => {
|
|
|
139
139
|
className: d.page,
|
|
140
140
|
children: [
|
|
141
141
|
/* @__PURE__ */ n(
|
|
142
|
-
|
|
142
|
+
$,
|
|
143
143
|
{
|
|
144
144
|
id: "all-services",
|
|
145
145
|
title: e("ADMIN_ALL_SERVICES_TITLE"),
|
|
146
|
-
headers:
|
|
147
|
-
rows:
|
|
146
|
+
headers: N,
|
|
147
|
+
rows: R,
|
|
148
148
|
ariaLabel: "all-services-table",
|
|
149
149
|
loading: b,
|
|
150
|
-
errorStateMessage:
|
|
150
|
+
errorStateMessage: D ? e("ADMIN_ALL_SERVICES_ERROR_MESSAGE") : null,
|
|
151
151
|
emptyStateMessage: e("ADMIN_ALL_SERVICES_EMPTY_MESSAGE"),
|
|
152
152
|
renderCell: T,
|
|
153
153
|
className: d.table
|
|
154
154
|
}
|
|
155
155
|
),
|
|
156
156
|
E && /* @__PURE__ */ n(
|
|
157
|
-
|
|
157
|
+
W,
|
|
158
158
|
{
|
|
159
159
|
serviceName: E.name,
|
|
160
160
|
isDeleting: v,
|