@bahmni/appointments-app 0.0.1-dev.214 → 0.0.1-dev.216
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-E_qtt95j-DVI1RI20.js → DocumentsTable-D50V1AD8-C3_DvMLV.js} +34 -34
- package/dist/FormsTable-EzH-Rlao-EiZAtxG3.js +196 -0
- package/dist/{LNWAZHJI-Bks2qUO9.js → LNWAZHJI-CJraoryj.js} +2 -2
- package/dist/{MWZ6AO7Z-Bglnv64k.js → MWZ6AO7Z-CPbDdbjM.js} +2 -2
- package/dist/{Observations-MHo-cJ_h-CQO-BUev.js → Observations-CL78DUzD-CguULqBm.js} +47 -47
- package/dist/{YPM2AS64-DAECvXSV.js → YPM2AS64-B-ZpyorD.js} +1 -1
- package/dist/{index-CYfTbWhQ.js → index-B1RcPdJt.js} +34837 -34493
- package/dist/{index-CefYeYSW.js → index-BkDdzYW6.js} +19 -19
- package/dist/index.css +1 -1
- package/dist/index.js +1 -1
- package/package.json +1 -1
- package/dist/FormsTable-BrfHufyk-FFsPIdO8.js +0 -434
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import { jsx as n, jsxs as f } from "react/jsx-runtime";
|
|
2
|
-
import {
|
|
2
|
+
import { D as V, B as O, a as C, C as h, F as P, f as B, e as G, H as x, I as A, b as F, J as U, K as q, L as k, P as $, Q as H, S as K, W as Q, X as j } from "./index-B1RcPdJt.js";
|
|
3
3
|
import { useState as I, useMemo as _ } from "react";
|
|
4
|
-
const
|
|
4
|
+
const w = V(
|
|
5
5
|
O,
|
|
6
6
|
"useAppointmentsConfig",
|
|
7
7
|
"AppointmentsConfigProvider"
|
|
8
|
-
),
|
|
8
|
+
), W = ({
|
|
9
9
|
serviceName: e,
|
|
10
10
|
isDeleting: a,
|
|
11
11
|
onConfirm: t,
|
|
@@ -35,7 +35,7 @@ const W = V(
|
|
|
35
35
|
"speciality",
|
|
36
36
|
"durationMins",
|
|
37
37
|
"description"
|
|
38
|
-
],
|
|
38
|
+
], Y = "app:appointments:manageServices", J = "app:appointments:adminTab", X = "_page_10v94_1", z = "_noPrivilegeContainer_10v94_1", Z = "_table_10v94_18", d = {
|
|
39
39
|
page: X,
|
|
40
40
|
noPrivilegeContainer: z,
|
|
41
41
|
table: Z
|
|
@@ -74,25 +74,25 @@ function ae(e, a) {
|
|
|
74
74
|
}));
|
|
75
75
|
}
|
|
76
76
|
const re = () => {
|
|
77
|
-
const { t: e } = C(), a = B(), { addNotification: t } = G(), { userPrivileges: s } = x(), { appointmentsConfig: i } =
|
|
77
|
+
const { t: e } = C(), a = B(), { addNotification: t } = G(), { userPrivileges: s } = x(), { appointmentsConfig: i } = w(), [E, c] = I(null), [v, S] = I(!1), l = i?.serviceTableFields ?? [
|
|
78
78
|
...p
|
|
79
79
|
], u = A(s, J), M = A(
|
|
80
80
|
s,
|
|
81
|
-
|
|
81
|
+
Y
|
|
82
82
|
), m = _(
|
|
83
83
|
() => ee(l),
|
|
84
84
|
[l]
|
|
85
|
-
), { data: L, isLoading:
|
|
85
|
+
), { data: L, isLoading: D, isError: b } = F({
|
|
86
86
|
queryKey: ["allAppointmentServices"],
|
|
87
87
|
queryFn: j,
|
|
88
88
|
enabled: u
|
|
89
|
-
}),
|
|
89
|
+
}), g = _(
|
|
90
90
|
() => te(l, e),
|
|
91
91
|
[l]
|
|
92
|
-
),
|
|
92
|
+
), R = _(
|
|
93
93
|
() => ae(L ?? [], m),
|
|
94
94
|
[L, m]
|
|
95
|
-
),
|
|
95
|
+
), N = async () => {
|
|
96
96
|
S(!0);
|
|
97
97
|
try {
|
|
98
98
|
await Q(E.id), t({
|
|
@@ -123,13 +123,13 @@ const re = () => {
|
|
|
123
123
|
children: /* @__PURE__ */ n(K, {})
|
|
124
124
|
}
|
|
125
125
|
) : p.includes(o) ? r[o] ?? "-" : r.attributes[o] ?? "-", y = [
|
|
126
|
-
{ id: "home", label: e("BREADCRUMB_HOME"), href:
|
|
126
|
+
{ id: "home", label: e("BREADCRUMB_HOME"), href: U },
|
|
127
127
|
{ id: "admin", label: e("BREADCRUMB_ADMIN"), isCurrentPage: !0 }
|
|
128
128
|
];
|
|
129
129
|
return /* @__PURE__ */ n(
|
|
130
|
-
|
|
130
|
+
q,
|
|
131
131
|
{
|
|
132
|
-
header: /* @__PURE__ */ n(
|
|
132
|
+
header: /* @__PURE__ */ n($, { breadcrumbItems: y }),
|
|
133
133
|
main: u ? /* @__PURE__ */ f(
|
|
134
134
|
"div",
|
|
135
135
|
{
|
|
@@ -139,14 +139,14 @@ const re = () => {
|
|
|
139
139
|
className: d.page,
|
|
140
140
|
children: [
|
|
141
141
|
/* @__PURE__ */ n(
|
|
142
|
-
|
|
142
|
+
k,
|
|
143
143
|
{
|
|
144
144
|
id: "all-services",
|
|
145
145
|
title: e("ADMIN_ALL_SERVICES_TITLE"),
|
|
146
|
-
headers:
|
|
147
|
-
rows:
|
|
146
|
+
headers: g,
|
|
147
|
+
rows: R,
|
|
148
148
|
ariaLabel: "all-services-table",
|
|
149
|
-
loading:
|
|
149
|
+
loading: D,
|
|
150
150
|
errorStateMessage: b ? e("ADMIN_ALL_SERVICES_ERROR_MESSAGE") : null,
|
|
151
151
|
emptyStateMessage: e("ADMIN_ALL_SERVICES_EMPTY_MESSAGE"),
|
|
152
152
|
renderCell: T,
|
|
@@ -154,11 +154,11 @@ const re = () => {
|
|
|
154
154
|
}
|
|
155
155
|
),
|
|
156
156
|
E && /* @__PURE__ */ n(
|
|
157
|
-
|
|
157
|
+
W,
|
|
158
158
|
{
|
|
159
159
|
serviceName: E.name,
|
|
160
160
|
isDeleting: v,
|
|
161
|
-
onConfirm:
|
|
161
|
+
onConfirm: N,
|
|
162
162
|
onCancel: () => c(null)
|
|
163
163
|
}
|
|
164
164
|
)
|