@bahmni/appointments-app 0.0.1-dev.398 → 0.0.1-dev.401
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-CyCmTrjB-DB3bllk4.js → DocumentsTable-BYyXnEYb-DVvHlY_b.js} +23 -23
- package/dist/{FormsTable-CMtT3i5o-CMUc-_U8.js → FormsTable-lAAkDRQQ-DxDgcp86.js} +11 -11
- package/dist/{LNWAZHJI-Dj2t68TS.js → LNWAZHJI-2hNd5SEB.js} +2 -2
- package/dist/{MWZ6AO7Z-CVK0RtJg.js → MWZ6AO7Z-D4kHlEjD.js} +2 -2
- package/dist/{Observations-Cco2HyR_-BnfST746.js → Observations-DGEkuYFv-Cz4I1O7m.js} +14 -14
- package/dist/{YPM2AS64-B_E24tMN.js → YPM2AS64-PInLdgeX.js} +1 -1
- package/dist/{index-Cjx4xv_3.js → index-BtK4jcwc.js} +196 -178
- package/dist/{index-D_O_BwJy.js → index-Cg1sZ8wQ.js} +6 -6
- package/dist/{index-BOlu0-kU.js → index-DiUwH_qI.js} +23 -23
- package/dist/index.js +1 -1
- package/package.json +1 -1
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { jsx as i, jsxs as y } from "react/jsx-runtime";
|
|
2
|
-
import {
|
|
2
|
+
import { z as V, A as O, u as I, D as P, H as h, C as B, a as x, L, M as G, O as U, Q as q, R as F, S as k, T as H, U as Q, W, X as $ } from "./index-BtK4jcwc.js";
|
|
3
3
|
import { useState as C, useMemo as c } from "react";
|
|
4
4
|
import { useQueryClient as j, useQuery as w } from "@tanstack/react-query";
|
|
5
5
|
const K = V(
|
|
@@ -36,9 +36,9 @@ const K = V(
|
|
|
36
36
|
"speciality",
|
|
37
37
|
"durationMins",
|
|
38
38
|
"description"
|
|
39
|
-
], Y = "app:appointments:manageServices",
|
|
40
|
-
page:
|
|
41
|
-
noPrivilegeContainer:
|
|
39
|
+
], Y = "app:appointments:manageServices", X = "app:appointments:adminTab", Z = "index-module_page__Gsfbu", J = "index-module_noPrivilegeContainer__Pu5WZ", ee = "index-module_table__GAPmb", d = {
|
|
40
|
+
page: Z,
|
|
41
|
+
noPrivilegeContainer: J,
|
|
42
42
|
table: ee
|
|
43
43
|
};
|
|
44
44
|
function te(e) {
|
|
@@ -75,9 +75,9 @@ function ie(e, a) {
|
|
|
75
75
|
}));
|
|
76
76
|
}
|
|
77
77
|
const oe = () => {
|
|
78
|
-
const { t: e } = I(), a = j(), { addNotification: t } =
|
|
78
|
+
const { t: e } = I(), a = j(), { addNotification: t } = B(), { userPrivileges: s } = x(), { appointmentsConfig: n } = K(), [E, _] = C(null), [M, p] = C(!1), l = n?.serviceTableFields ?? [
|
|
79
79
|
...u
|
|
80
|
-
], m = L(s,
|
|
80
|
+
], m = L(s, X), b = L(
|
|
81
81
|
s,
|
|
82
82
|
Y
|
|
83
83
|
), S = c(
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { jsx as r, jsxs as p } from "react/jsx-runtime";
|
|
2
|
-
import {
|
|
2
|
+
import { _ as f, a0 as O, a1 as P, a2 as V, a3 as Z, a4 as ee, a5 as te, a6 as ie, M as ae, a7 as ne, u as j, a8 as R, a9 as le, aa as re, ab as se, ac as E, ad as C, ae as F, af as Y, ag as x, ah as k, ai as $, a as oe, C as de, L as q, aj as ce, O as me, ak as Ae, al as Ie, am as ue, R as _e, S as Te, T as Le } from "./index-BtK4jcwc.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 D, 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", Me = () => {
|
|
@@ -39,17 +39,17 @@ const be = "Available for appointments", G = "Get Appointment Unavailability", p
|
|
|
39
39
|
}, Ue = (e, a) => ({
|
|
40
40
|
locationUuid: e.locationUuid,
|
|
41
41
|
startDate: f(e.startDate, a, !1, V).formattedResult,
|
|
42
|
-
startTime:
|
|
42
|
+
startTime: P(
|
|
43
43
|
`${e.startTime} ${e.startTimePeriod}`
|
|
44
44
|
),
|
|
45
45
|
endDate: f(e.endDate, a, !1, V).formattedResult,
|
|
46
|
-
endTime:
|
|
46
|
+
endTime: P(`${e.endTime} ${e.endTimePeriod}`)
|
|
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 = O(
|
|
51
51
|
`${e.startTime} ${e.startTimePeriod}`
|
|
52
|
-
), c =
|
|
52
|
+
), c = O(
|
|
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,13 +137,13 @@ 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
|
-
}, Be = "UnavailabilityForm-module_formContent__WmNHR",
|
|
140
|
+
}, Be = "UnavailabilityForm-module_formContent__WmNHR", Oe = "UnavailabilityForm-module_formField__8he7o", Pe = "UnavailabilityForm-module_loading__IDEY6", Ve = "UnavailabilityForm-module_error__jDeOm", Ce = "UnavailabilityForm-module_grid__t6NKR", Fe = "UnavailabilityForm-module_column__QFdnQ", Ye = "UnavailabilityForm-module_dateTimeColumn__6bi0F", xe = "UnavailabilityForm-module_datePicker__6HgbO", ke = "UnavailabilityForm-module_timePicker__DHNpK", d = {
|
|
141
141
|
formContent: Be,
|
|
142
|
-
formField:
|
|
143
|
-
loading:
|
|
142
|
+
formField: Oe,
|
|
143
|
+
loading: Pe,
|
|
144
144
|
error: Ve,
|
|
145
|
-
grid:
|
|
146
|
-
column:
|
|
145
|
+
grid: Ce,
|
|
146
|
+
column: Fe,
|
|
147
147
|
dateTimeColumn: Ye,
|
|
148
148
|
datePicker: xe,
|
|
149
149
|
timePicker: ke
|
|
@@ -152,7 +152,7 @@ const be = "Available for appointments", G = "Get Appointment Unavailability", p
|
|
|
152
152
|
formDataRef: a,
|
|
153
153
|
onClearErrors: n
|
|
154
154
|
}) => {
|
|
155
|
-
const { t } =
|
|
155
|
+
const { t } = j(), { loginLocations: o, services: c, providers: A, isLoading: L, isError: m } = he(), [l, s] = g({
|
|
156
156
|
locationUuid: "",
|
|
157
157
|
selectedServiceItems: [],
|
|
158
158
|
selectedProviderItems: [],
|
|
@@ -301,10 +301,10 @@ const be = "Available for appointments", G = "Get Appointment Unavailability", p
|
|
|
301
301
|
className: `${d.column} ${d.dateTimeColumn}`,
|
|
302
302
|
children: [
|
|
303
303
|
/* @__PURE__ */ r(
|
|
304
|
-
|
|
304
|
+
C,
|
|
305
305
|
{
|
|
306
306
|
datePickerType: "single",
|
|
307
|
-
minDate:
|
|
307
|
+
minDate: F(),
|
|
308
308
|
value: l.startDate ?? void 0,
|
|
309
309
|
onChange: (i) => {
|
|
310
310
|
i[0] && (n(["startDate", "dateTime"]), s({
|
|
@@ -376,10 +376,10 @@ const be = "Available for appointments", G = "Get Appointment Unavailability", p
|
|
|
376
376
|
className: `${d.column} ${d.dateTimeColumn}`,
|
|
377
377
|
children: [
|
|
378
378
|
/* @__PURE__ */ r(
|
|
379
|
-
|
|
379
|
+
C,
|
|
380
380
|
{
|
|
381
381
|
datePickerType: "single",
|
|
382
|
-
minDate: l.startDate ??
|
|
382
|
+
minDate: l.startDate ?? F(),
|
|
383
383
|
value: l.endDate ?? void 0,
|
|
384
384
|
onChange: (i) => {
|
|
385
385
|
i[0] && (n(["endDate", "dateTime"]), s({
|
|
@@ -503,8 +503,8 @@ const be = "Available for appointments", G = "Get Appointment Unavailability", p
|
|
|
503
503
|
);
|
|
504
504
|
}, qe = "index-module_page__s2h2y", Ge = {
|
|
505
505
|
page: qe
|
|
506
|
-
},
|
|
507
|
-
const { t: e } =
|
|
506
|
+
}, Qe = () => {
|
|
507
|
+
const { t: e } = j(), a = Ne(), { userPrivileges: n } = oe(), { addNotification: t } = de(), [o, c] = g(!1), [A, L] = g(!1), m = ve(null), [l, s] = g({}), _ = q(
|
|
508
508
|
n,
|
|
509
509
|
G
|
|
510
510
|
), I = q(n, [
|
|
@@ -560,15 +560,15 @@ const be = "Available for appointments", G = "Get Appointment Unavailability", p
|
|
|
560
560
|
}
|
|
561
561
|
},
|
|
562
562
|
[t, a, e]
|
|
563
|
-
),
|
|
563
|
+
), Q = U(async () => {
|
|
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
567
|
}, [e, h]), W = U(
|
|
568
568
|
(T) => {
|
|
569
|
-
s((
|
|
570
|
-
const B = { ...
|
|
571
|
-
return T.forEach((
|
|
569
|
+
s((J) => {
|
|
570
|
+
const B = { ...J };
|
|
571
|
+
return T.forEach((X) => delete B[X]), B;
|
|
572
572
|
});
|
|
573
573
|
},
|
|
574
574
|
[]
|
|
@@ -616,7 +616,7 @@ const be = "Available for appointments", G = "Get Appointment Unavailability", p
|
|
|
616
616
|
"aria-label": "appointment-unavailability-form-panel-aria-label",
|
|
617
617
|
title: e("ADMIN_UNAVAILABILITY_FORM_TITLE"),
|
|
618
618
|
primaryButtonText: e("ADMIN_UNAVAILABILITY_FORM_ADD"),
|
|
619
|
-
onPrimaryButtonClick:
|
|
619
|
+
onPrimaryButtonClick: Q,
|
|
620
620
|
isPrimaryButtonDisabled: A,
|
|
621
621
|
secondaryButtonText: e("ADMIN_UNAVAILABILITY_FORM_CANCEL"),
|
|
622
622
|
onSecondaryButtonClick: z,
|
|
@@ -636,5 +636,5 @@ const be = "Available for appointments", G = "Get Appointment Unavailability", p
|
|
|
636
636
|
);
|
|
637
637
|
};
|
|
638
638
|
export {
|
|
639
|
-
|
|
639
|
+
Qe as default
|
|
640
640
|
};
|
package/dist/index.js
CHANGED