@bahmni/appointments-app 0.0.1-dev.326 → 0.0.1-dev.329
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-DEMSFjaR-B8EqUDcw.js → DocumentsTable-y7KKSEft-Bu2e155r.js} +14 -14
- package/dist/{FormsTable-DMc11j4e-B5rGamFZ.js → FormsTable-DWjxOeF0-BW0BApo4.js} +49 -49
- package/dist/{LNWAZHJI-D0uslb_d.js → LNWAZHJI-C9TP9MTc.js} +2 -2
- package/dist/{MWZ6AO7Z-BKPfZxbE.js → MWZ6AO7Z-tcjSIrcv.js} +2 -2
- package/dist/{Observations-Cy5krW_v-19CuO1Nm.js → Observations-BVrVtdFC-CBFpx7Yu.js} +36 -36
- package/dist/{YPM2AS64-CdcsUwMF.js → YPM2AS64-CdtvSJkL.js} +1 -1
- package/dist/{index-CL4z60eV.js → index-BP9aJpz3.js} +13 -13
- package/dist/{index-FpExOSHJ.js → index-Bjd0Amzt.js} +20582 -20486
- package/dist/{index-B2O-OqkN.js → index-DUl_sIXv.js} +13 -13
- package/dist/index.js +1 -1
- package/package.json +1 -1
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { jsx as r, jsxs as b } from "react/jsx-runtime";
|
|
2
|
-
import {
|
|
2
|
+
import { W as f, S as P, T as O, Y as V, X as Z, Z as ee, $ as te, a0 as ie, F 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, y as oe, o as de, z as $, ad as ce, B as me, ae as Ae, af as Ie, ag as ue, J as _e, K as Te } from "./index-Bjd0Amzt.js";
|
|
3
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 = () => {
|
|
@@ -47,9 +47,9 @@ const Ne = "Available for appointments", q = "Get Appointment Unavailability", p
|
|
|
47
47
|
}), Ue = (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 = P(
|
|
51
51
|
`${e.startTime} ${e.startTimePeriod}`
|
|
52
|
-
), c =
|
|
52
|
+
), c = P(
|
|
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,10 +137,10 @@ 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
|
-
}, he = "UnavailabilityForm-module_formContent__WmNHR",
|
|
140
|
+
}, he = "UnavailabilityForm-module_formContent__WmNHR", Be = "UnavailabilityForm-module_formField__8he7o", Pe = "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
141
|
formContent: he,
|
|
142
|
-
formField:
|
|
143
|
-
loading:
|
|
142
|
+
formField: Be,
|
|
143
|
+
loading: Pe,
|
|
144
144
|
error: Oe,
|
|
145
145
|
grid: Ve,
|
|
146
146
|
column: Fe,
|
|
@@ -564,15 +564,15 @@ const Ne = "Available for appointments", q = "Get Appointment Unavailability", p
|
|
|
564
564
|
if (!m.current) return;
|
|
565
565
|
const T = Ue(m.current, e);
|
|
566
566
|
s(T), !(Object.keys(T).length > 0) && await h(fe(m.current, e));
|
|
567
|
-
}, [e, h]),
|
|
567
|
+
}, [e, h]), W = U(
|
|
568
568
|
(T) => {
|
|
569
|
-
s((
|
|
570
|
-
const
|
|
571
|
-
return T.forEach((
|
|
569
|
+
s((z) => {
|
|
570
|
+
const B = { ...z };
|
|
571
|
+
return T.forEach((X) => delete B[X]), B;
|
|
572
572
|
});
|
|
573
573
|
},
|
|
574
574
|
[]
|
|
575
|
-
),
|
|
575
|
+
), J = 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: J,
|
|
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: W
|
|
630
630
|
}
|
|
631
631
|
)
|
|
632
632
|
}
|
package/dist/index.js
CHANGED