@bahmni/appointments-app 0.0.1-dev.318 → 0.0.1-dev.325
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-N3KZd9ZV-Bx1G4QJt.js → DocumentsTable-DEMSFjaR-CR8iux68.js} +28 -28
- package/dist/{FormsTable-F1FaoFiu-COUNSfBa.js → FormsTable-DMc11j4e-PtSKJD8G.js} +60 -60
- package/dist/{LNWAZHJI-C75miInF.js → LNWAZHJI-BL8iqUPy.js} +2 -2
- package/dist/{MWZ6AO7Z-BfH0CTwE.js → MWZ6AO7Z-D4e5WiQJ.js} +2 -2
- package/dist/{Observations-HyR2_B59-DICEoprT.js → Observations-Cy5krW_v-8dN0aDyQ.js} +32 -32
- package/dist/{YPM2AS64-PBuOFH88.js → YPM2AS64-D9ar4QEG.js} +1 -1
- package/dist/{index-BgjGSUEu.js → index-8qgDEEj1.js} +18 -18
- package/dist/{index-CdVMN1nw.js → index-Bcu5U065.js} +5338 -5332
- package/dist/{index-DK_CNSnQ.js → index-V8NVlVYG.js} +17 -17
- package/dist/index.css +1 -1
- package/dist/index.js +1 -1
- package/package.json +1 -1
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { jsx as r, jsxs as b } from "react/jsx-runtime";
|
|
2
|
-
import {
|
|
3
|
-
import { useState as g, useMemo as N, useEffect as
|
|
2
|
+
import { S as f, T as B, V as O, W as V, X as Z, Y as ee, _ as te, a0 as ie, U as ae, a1 as ne, u as Q, a2 as R, a3 as le, a4 as re, a5 as se, a6 as E, a7 as F, a8 as C, a9 as Y, aa as x, ab as k, ac as H, $ as oe, o as de, H as $, ad as ce, J as me, ae as Ae, af as Ie, ag as ue, L as _e, M as Te } from "./index-Bcu5U065.js";
|
|
3
|
+
import { useState as g, useMemo as N, useEffect as S, useRef as Le, useCallback as U } from "react";
|
|
4
4
|
import { useQuery as M, useQueryClient as ve } from "@tanstack/react-query";
|
|
5
5
|
const Ne = "Available for appointments", q = "Get Appointment Unavailability", pe = "Add Appointment Unavailability", w = "Appointment Location", be = () => {
|
|
6
6
|
try {
|
|
@@ -86,7 +86,7 @@ const Ne = "Available for appointments", q = "Get Appointment Unavailability", p
|
|
|
86
86
|
uuid: a.resource?.id ?? "",
|
|
87
87
|
display: a.resource?.name ?? "",
|
|
88
88
|
childLocations: []
|
|
89
|
-
})),
|
|
89
|
+
})), Se = () => {
|
|
90
90
|
const {
|
|
91
91
|
data: e,
|
|
92
92
|
isLoading: a,
|
|
@@ -137,8 +137,8 @@ const Ne = "Available for appointments", q = "Get Appointment Unavailability", p
|
|
|
137
137
|
isLoading: a || o || L || s,
|
|
138
138
|
isError: n || c || m || _
|
|
139
139
|
};
|
|
140
|
-
},
|
|
141
|
-
formContent:
|
|
140
|
+
}, he = "UnavailabilityForm-module_formContent__WmNHR", Pe = "UnavailabilityForm-module_formField__8he7o", Be = "UnavailabilityForm-module_loading__IDEY6", Oe = "UnavailabilityForm-module_error__jDeOm", Ve = "UnavailabilityForm-module_grid__t6NKR", Fe = "UnavailabilityForm-module_column__QFdnQ", Ce = "UnavailabilityForm-module_dateTimeColumn__6bi0F", Ye = "UnavailabilityForm-module_datePicker__6HgbO", xe = "UnavailabilityForm-module_timePicker__DHNpK", d = {
|
|
141
|
+
formContent: he,
|
|
142
142
|
formField: Pe,
|
|
143
143
|
loading: Be,
|
|
144
144
|
error: Oe,
|
|
@@ -152,7 +152,7 @@ const Ne = "Available for appointments", q = "Get Appointment Unavailability", p
|
|
|
152
152
|
formDataRef: a,
|
|
153
153
|
onClearErrors: n
|
|
154
154
|
}) => {
|
|
155
|
-
const { t } = Q(), { loginLocations: o, services: c, providers: A, isLoading: L, isError: m } =
|
|
155
|
+
const { t } = Q(), { loginLocations: o, services: c, providers: A, isLoading: L, isError: m } = Se(), [l, s] = g({
|
|
156
156
|
locationUuid: "",
|
|
157
157
|
selectedServiceItems: [],
|
|
158
158
|
selectedProviderItems: [],
|
|
@@ -212,7 +212,7 @@ const Ne = "Available for appointments", q = "Get Appointment Unavailability", p
|
|
|
212
212
|
),
|
|
213
213
|
[I]
|
|
214
214
|
);
|
|
215
|
-
return
|
|
215
|
+
return S(() => {
|
|
216
216
|
if (o.length === 0) return;
|
|
217
217
|
const i = be(), p = o.some(
|
|
218
218
|
(D) => D.uuid === i
|
|
@@ -221,12 +221,12 @@ const Ne = "Available for appointments", q = "Get Appointment Unavailability", p
|
|
|
221
221
|
...D,
|
|
222
222
|
locationUuid: p ? i : ""
|
|
223
223
|
}));
|
|
224
|
-
}, [o]),
|
|
224
|
+
}, [o]), S(() => {
|
|
225
225
|
_.length > 0 && s((i) => ({
|
|
226
226
|
...i,
|
|
227
227
|
selectedServiceItems: v
|
|
228
228
|
}));
|
|
229
|
-
}, [v]),
|
|
229
|
+
}, [v]), S(() => {
|
|
230
230
|
I.length > 0 && s((i) => ({
|
|
231
231
|
...i,
|
|
232
232
|
selectedProviderItems: y
|
|
@@ -537,7 +537,7 @@ const Ne = "Available for appointments", q = "Get Appointment Unavailability", p
|
|
|
537
537
|
key: "providerName",
|
|
538
538
|
header: e("ADMIN_UNAVAILABILITY_COLUMN_PROVIDER")
|
|
539
539
|
}
|
|
540
|
-
], [e]), D = N(() => u ? u.map((T) => ge(T, e)) : [], [u, e]),
|
|
540
|
+
], [e]), D = N(() => u ? u.map((T) => ge(T, e)) : [], [u, e]), h = U(
|
|
541
541
|
async (T) => {
|
|
542
542
|
L(!0);
|
|
543
543
|
try {
|
|
@@ -563,16 +563,16 @@ const Ne = "Available for appointments", q = "Get Appointment Unavailability", p
|
|
|
563
563
|
), j = U(async () => {
|
|
564
564
|
if (!m.current) return;
|
|
565
565
|
const T = Ue(m.current, e);
|
|
566
|
-
s(T), !(Object.keys(T).length > 0) && await
|
|
567
|
-
}, [e,
|
|
566
|
+
s(T), !(Object.keys(T).length > 0) && await h(fe(m.current, e));
|
|
567
|
+
}, [e, h]), J = U(
|
|
568
568
|
(T) => {
|
|
569
|
-
s((
|
|
570
|
-
const P = { ...
|
|
571
|
-
return T.forEach((
|
|
569
|
+
s((X) => {
|
|
570
|
+
const P = { ...X };
|
|
571
|
+
return T.forEach((z) => delete P[z]), P;
|
|
572
572
|
});
|
|
573
573
|
},
|
|
574
574
|
[]
|
|
575
|
-
),
|
|
575
|
+
), W = U(() => {
|
|
576
576
|
c(!1), m.current = null, s({});
|
|
577
577
|
}, []);
|
|
578
578
|
return /* @__PURE__ */ r(
|
|
@@ -619,14 +619,14 @@ const Ne = "Available for appointments", q = "Get Appointment Unavailability", p
|
|
|
619
619
|
onPrimaryButtonClick: j,
|
|
620
620
|
isPrimaryButtonDisabled: A,
|
|
621
621
|
secondaryButtonText: e("ADMIN_UNAVAILABILITY_FORM_CANCEL"),
|
|
622
|
-
onSecondaryButtonClick:
|
|
622
|
+
onSecondaryButtonClick: W,
|
|
623
623
|
isSecondaryButtonDisabled: A,
|
|
624
624
|
content: /* @__PURE__ */ r(
|
|
625
625
|
ke,
|
|
626
626
|
{
|
|
627
627
|
errors: l,
|
|
628
628
|
formDataRef: m,
|
|
629
|
-
onClearErrors:
|
|
629
|
+
onClearErrors: J
|
|
630
630
|
}
|
|
631
631
|
)
|
|
632
632
|
}
|