@bahmni/appointments-app 0.0.1-dev.408 → 0.0.1-dev.409
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-BSBWfrYe-7sT9K9jA.js → DocumentsTable-ju-Rev1y-Dk2ESvXf.js} +1 -1
- package/dist/{FormsTable-D8eS1feV-CIT_9HX0.js → FormsTable-CTy4JTE8-Cn7OXlPy.js} +46 -46
- package/dist/{LNWAZHJI-Dzu6p6g6.js → LNWAZHJI-DHAhIGpP.js} +7 -7
- package/dist/{MWZ6AO7Z-CO-OnM_M.js → MWZ6AO7Z-BoGt41p_.js} +2 -2
- package/dist/Observations-GHKQrxHf-C5n95y1v.js +246 -0
- package/dist/{YPM2AS64-CBzS55qv.js → YPM2AS64-DO638Kn-.js} +1 -1
- package/dist/{index-CnBnwkoy.js → index-5kVVG9ro.js} +12 -12
- package/dist/{index-BzoSgaWK.js → index-CrHWa1Oc.js} +14 -14
- package/dist/{index-SYnmvoqG.js → index-DqgfD6Rf.js} +13334 -13301
- package/dist/index.css +1 -1
- package/dist/index.js +1 -1
- package/package.json +1 -1
- package/dist/Observations-CbJng7Yn-CZ5BTdqm.js +0 -213
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import { jsx as r, jsxs as p } from "react/jsx-runtime";
|
|
2
|
-
import {
|
|
2
|
+
import { a1 as f, a2 as B, a3 as P, a4 as V, a5 as J, a6 as ee, a7 as te, a8 as ie, O as ae, a9 as ne, u as Q, aa as R, ab as le, ac as re, ad as se, ae as E, af as F, ag as C, ah as Y, ai as x, aj as k, ak as $, a as oe, z as de, N as q, al as ce, _ as me, am as Ae, an as Ie, ao as ue, T as _e, U as Te, W as Le } from "./index-DqgfD6Rf.js";
|
|
3
3
|
import { useState as g, useMemo as N, useEffect as S, useRef as ve, useCallback as U } from "react";
|
|
4
4
|
import { useQuery as M, useQueryClient as Ne } from "@tanstack/react-query";
|
|
5
5
|
const be = "Available for appointments", G = "Get Appointment Unavailability", pe = "Add Appointment Unavailability", w = "Appointment Location", ye = () => {
|
|
6
6
|
try {
|
|
7
|
-
return
|
|
7
|
+
return J().uuid;
|
|
8
8
|
} catch {
|
|
9
9
|
return "";
|
|
10
10
|
}
|
|
@@ -47,9 +47,9 @@ const be = "Available for appointments", G = "Get Appointment Unavailability", p
|
|
|
47
47
|
}), ge = (e, a) => {
|
|
48
48
|
const n = {}, t = a("ADMIN_UNAVAILABILITY_FORM_REQUIRED");
|
|
49
49
|
if (e.locationUuid || (n.location = t), e.startDate || (n.startDate = t), e.startTime || (n.startTime = t), e.endDate || (n.endDate = t), e.endTime || (n.endTime = t), e.startDate && e.startTime && e.endDate && e.endTime && e.startDate.toDateString() === e.endDate.toDateString()) {
|
|
50
|
-
const o =
|
|
50
|
+
const o = B(
|
|
51
51
|
`${e.startTime} ${e.startTimePeriod}`
|
|
52
|
-
), c =
|
|
52
|
+
), c = B(
|
|
53
53
|
`${e.endTime} ${e.endTimePeriod}`
|
|
54
54
|
);
|
|
55
55
|
o !== null && c !== null && c <= o && (n.dateTime = a("ADMIN_UNAVAILABILITY_DATETIME_ERROR_MESSAGE"));
|
|
@@ -137,9 +137,9 @@ const be = "Available for appointments", G = "Get Appointment Unavailability", p
|
|
|
137
137
|
isLoading: a || o || L || s,
|
|
138
138
|
isError: n || c || m || _
|
|
139
139
|
};
|
|
140
|
-
},
|
|
141
|
-
formContent:
|
|
142
|
-
formField:
|
|
140
|
+
}, Oe = "UnavailabilityForm-module_formContent__WmNHR", Be = "UnavailabilityForm-module_formField__8he7o", Pe = "UnavailabilityForm-module_loading__IDEY6", Ve = "UnavailabilityForm-module_error__jDeOm", Fe = "UnavailabilityForm-module_grid__t6NKR", Ce = "UnavailabilityForm-module_column__QFdnQ", Ye = "UnavailabilityForm-module_dateTimeColumn__6bi0F", xe = "UnavailabilityForm-module_datePicker__6HgbO", ke = "UnavailabilityForm-module_timePicker__DHNpK", d = {
|
|
141
|
+
formContent: Oe,
|
|
142
|
+
formField: Be,
|
|
143
143
|
loading: Pe,
|
|
144
144
|
error: Ve,
|
|
145
145
|
grid: Fe,
|
|
@@ -564,15 +564,15 @@ const be = "Available for appointments", G = "Get Appointment Unavailability", p
|
|
|
564
564
|
if (!m.current) return;
|
|
565
565
|
const T = ge(m.current, e);
|
|
566
566
|
s(T), !(Object.keys(T).length > 0) && await h(Re(m.current, e));
|
|
567
|
-
}, [e, h]),
|
|
567
|
+
}, [e, h]), W = U(
|
|
568
568
|
(T) => {
|
|
569
|
-
s((
|
|
570
|
-
const
|
|
571
|
-
return T.forEach((
|
|
569
|
+
s((X) => {
|
|
570
|
+
const O = { ...X };
|
|
571
|
+
return T.forEach((Z) => delete O[Z]), O;
|
|
572
572
|
});
|
|
573
573
|
},
|
|
574
574
|
[]
|
|
575
|
-
),
|
|
575
|
+
), z = U(() => {
|
|
576
576
|
c(!1), m.current = null, s({});
|
|
577
577
|
}, []);
|
|
578
578
|
return /* @__PURE__ */ r(
|
|
@@ -619,14 +619,14 @@ const be = "Available for appointments", G = "Get Appointment Unavailability", p
|
|
|
619
619
|
onPrimaryButtonClick: j,
|
|
620
620
|
isPrimaryButtonDisabled: A,
|
|
621
621
|
secondaryButtonText: e("ADMIN_UNAVAILABILITY_FORM_CANCEL"),
|
|
622
|
-
onSecondaryButtonClick:
|
|
622
|
+
onSecondaryButtonClick: z,
|
|
623
623
|
isSecondaryButtonDisabled: A,
|
|
624
624
|
content: /* @__PURE__ */ r(
|
|
625
625
|
$e,
|
|
626
626
|
{
|
|
627
627
|
errors: l,
|
|
628
628
|
formDataRef: m,
|
|
629
|
-
onClearErrors:
|
|
629
|
+
onClearErrors: W
|
|
630
630
|
}
|
|
631
631
|
)
|
|
632
632
|
}
|