@bahmni/appointments-app 0.0.1-dev.366 → 0.0.1-dev.368
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-gaNpd5Oz-CTCqDf5n.js → DocumentsTable-CHqKtoG4-TVNgZWt9.js} +8 -8
- package/dist/{FormsTable-D4dXAIbr-D_LTX3bd.js → FormsTable-Crz5nzU3-Dbpsv60C.js} +69 -69
- package/dist/{LNWAZHJI-DHqYNoHL.js → LNWAZHJI-BDHWcl0N.js} +2 -2
- package/dist/{MWZ6AO7Z-BtPN0axu.js → MWZ6AO7Z-BSs-P-OB.js} +2 -2
- package/dist/{Observations-DA1z7g3V-DjRioyaG.js → Observations-CHjSKw9X-DCtceCpI.js} +30 -30
- package/dist/{YPM2AS64-CEh8M9KD.js → YPM2AS64-u0K5Mm6A.js} +1 -1
- package/dist/{index-BTbPRgCo.js → index-C9Y39EYu.js} +11666 -11650
- package/dist/{index-Dm0m9h95.js → index-DAXJhipW.js} +1 -1
- package/dist/{index-1Z6BAYr6.js → index-DC5e3wD2.js} +15 -15
- package/dist/index.js +1 -1
- package/package.json +1 -1
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { jsx as r, jsxs as p } from "react/jsx-runtime";
|
|
2
|
-
import { Z as f, a0 as B, a1 as O, a2 as V, a3 as X, a4 as ee, a5 as te, a6 as ie,
|
|
2
|
+
import { Z as f, a0 as B, a1 as O, a2 as V, a3 as X, a4 as ee, a5 as te, a6 as ie, _ as ae, a7 as ne, u as Q, a8 as R, a9 as le, aa as re, ab as se, ac as E, ad as F, ae as C, af as Y, ag as k, ah as x, ai as H, J as oe, K as de, z as $, aj as ce, B as me, ak as Ae, al as Ie, am as ue, G as _e, I as Te, N as Le } from "./index-C9Y39EYu.js";
|
|
3
3
|
import { useState as g, useMemo as N, useEffect as h, 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", q = "Get Appointment Unavailability", pe = "Add Appointment Unavailability", G = "Appointment Location", De = () => {
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { jsx as a, jsxs as y } from "react/jsx-runtime";
|
|
2
|
-
import {
|
|
2
|
+
import { L as V, y as O, u as I, F as P, C as h, K as B, J as G, z as A, _ as x, B as U, D as F, G as H, I as q, N as K, O as j, P as k, X as Q } from "./index-C9Y39EYu.js";
|
|
3
3
|
import { useState as C, useMemo as c } from "react";
|
|
4
|
-
import { useQueryClient as
|
|
5
|
-
const
|
|
4
|
+
import { useQueryClient as $, useQuery as W } from "@tanstack/react-query";
|
|
5
|
+
const Y = V(
|
|
6
6
|
O,
|
|
7
7
|
"useAppointmentsConfig",
|
|
8
8
|
"AppointmentsConfigProvider"
|
|
@@ -75,28 +75,28 @@ function ae(e, i) {
|
|
|
75
75
|
}));
|
|
76
76
|
}
|
|
77
77
|
const oe = () => {
|
|
78
|
-
const { t: e } = I(), i =
|
|
78
|
+
const { t: e } = I(), i = $(), { addNotification: t } = B(), { userPrivileges: s } = G(), { appointmentsConfig: n } = Y(), [E, _] = C(null), [b, p] = C(!1), l = n?.serviceTableFields ?? [
|
|
79
79
|
...u
|
|
80
|
-
], m =
|
|
80
|
+
], m = A(s, J), M = A(
|
|
81
81
|
s,
|
|
82
82
|
z
|
|
83
83
|
), S = c(
|
|
84
84
|
() => te(l),
|
|
85
85
|
[l]
|
|
86
|
-
), { data:
|
|
86
|
+
), { data: L, isLoading: v, isError: D } = W({
|
|
87
87
|
queryKey: ["allAppointmentServices"],
|
|
88
88
|
queryFn: x,
|
|
89
89
|
enabled: m
|
|
90
|
-
}),
|
|
90
|
+
}), N = c(
|
|
91
91
|
() => ie(l, e),
|
|
92
92
|
[l]
|
|
93
|
-
),
|
|
94
|
-
() => ae(
|
|
95
|
-
[
|
|
93
|
+
), R = c(
|
|
94
|
+
() => ae(L ?? [], S),
|
|
95
|
+
[L, S]
|
|
96
96
|
), g = async () => {
|
|
97
97
|
p(!0);
|
|
98
98
|
try {
|
|
99
|
-
await
|
|
99
|
+
await Q(E.id), t({
|
|
100
100
|
title: e("ADMIN_ALL_SERVICES_DELETE_SUCCESS_TITLE"),
|
|
101
101
|
message: e("ADMIN_ALL_SERVICES_DELETE_SUCCESS_MESSAGE"),
|
|
102
102
|
type: "success",
|
|
@@ -112,7 +112,7 @@ const oe = () => {
|
|
|
112
112
|
p(!1);
|
|
113
113
|
}
|
|
114
114
|
}, T = (r, o) => o === "actions" ? /* @__PURE__ */ a(
|
|
115
|
-
|
|
115
|
+
j,
|
|
116
116
|
{
|
|
117
117
|
id: `delete-service-${r.id}-btn`,
|
|
118
118
|
testId: `delete-service-${r.id}-btn-test-id`,
|
|
@@ -121,7 +121,7 @@ const oe = () => {
|
|
|
121
121
|
label: e("ADMIN_ALL_SERVICES_DELETE_ICON_LABEL"),
|
|
122
122
|
disabled: !M,
|
|
123
123
|
onClick: () => _(r),
|
|
124
|
-
children: /* @__PURE__ */ a(
|
|
124
|
+
children: /* @__PURE__ */ a(k, {})
|
|
125
125
|
}
|
|
126
126
|
) : u.includes(o) ? r[o] ?? "-" : r.attributes[o] ?? "-", f = [
|
|
127
127
|
{ id: "home", label: e("BREADCRUMB_HOME"), href: U },
|
|
@@ -144,8 +144,8 @@ const oe = () => {
|
|
|
144
144
|
{
|
|
145
145
|
id: "all-services",
|
|
146
146
|
title: e("ADMIN_ALL_SERVICES_TITLE"),
|
|
147
|
-
headers:
|
|
148
|
-
rows:
|
|
147
|
+
headers: N,
|
|
148
|
+
rows: R,
|
|
149
149
|
ariaLabel: "all-services-table",
|
|
150
150
|
loading: v,
|
|
151
151
|
errorStateMessage: D ? e("ADMIN_ALL_SERVICES_ERROR_MESSAGE") : null,
|
package/dist/index.js
CHANGED