@bahmni/appointments-app 0.0.1-dev.386 → 0.0.1-dev.388
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-Ce9p4WA6-DYRTNwME.js → DocumentsTable-B6QJvL1z-5nvinl9D.js} +35 -35
- package/dist/{FormsTable-BJBBdfzc-BiGm9mDO.js → FormsTable-wkhnMFX5-DAko76Bm.js} +47 -47
- package/dist/{LNWAZHJI-T9x4Qj1f.js → LNWAZHJI-DwaeUf8E.js} +2 -2
- package/dist/{MWZ6AO7Z-B0GIY9ln.js → MWZ6AO7Z-M6gmzZZX.js} +2 -2
- package/dist/{Observations-C3pfbHHQ-D7u1t3t1.js → Observations-1fPoIit0-DzuE0qjd.js} +37 -37
- package/dist/{YPM2AS64-CT4lMk0z.js → YPM2AS64-B5T9uSJn.js} +1 -1
- package/dist/{index-DNVeXR6m.js → index-D0E_rIyB.js} +12 -12
- package/dist/{index-TJNrEGTS.js → index-D1vGVC2R.js} +17 -17
- package/dist/{index-BYUNYfJ9.js → index-Dj5FQIcI.js} +37806 -37720
- package/dist/index.js +1 -1
- package/package.json +1 -1
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { jsx as a, jsxs as y } from "react/jsx-runtime";
|
|
2
|
-
import {
|
|
2
|
+
import { o as V, r as O, u as I, F as P, s as h, L as B, e as x, t as A, $ as G, x as U, M as q, D as F, H as $, Q as k, R as H, U as Q, W } from "./index-Dj5FQIcI.js";
|
|
3
3
|
import { useState as C, useMemo as _ } 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
|
-
], z = "app:appointments:manageServices",
|
|
40
|
-
page:
|
|
41
|
-
noPrivilegeContainer:
|
|
39
|
+
], z = "app:appointments:manageServices", Z = "app:appointments:adminTab", J = "index-module_page__Gsfbu", X = "index-module_noPrivilegeContainer__Pu5WZ", ee = "index-module_table__GAPmb", d = {
|
|
40
|
+
page: J,
|
|
41
|
+
noPrivilegeContainer: X,
|
|
42
42
|
table: ee
|
|
43
43
|
};
|
|
44
44
|
function te(e) {
|
|
@@ -75,9 +75,9 @@ function ae(e, i) {
|
|
|
75
75
|
}));
|
|
76
76
|
}
|
|
77
77
|
const oe = () => {
|
|
78
|
-
const { t: e } = I(), i = j(), { addNotification: t } = B(), { userPrivileges: s } =
|
|
78
|
+
const { t: e } = I(), i = j(), { addNotification: t } = B(), { userPrivileges: s } = x(), { appointmentsConfig: n } = K(), [E, c] = C(null), [M, p] = C(!1), l = n?.serviceTableFields ?? [
|
|
79
79
|
...u
|
|
80
|
-
], m = A(s,
|
|
80
|
+
], m = A(s, Z), b = A(
|
|
81
81
|
s,
|
|
82
82
|
z
|
|
83
83
|
), S = _(
|
|
@@ -85,18 +85,18 @@ const oe = () => {
|
|
|
85
85
|
[l]
|
|
86
86
|
), { data: L, isLoading: v, isError: D } = w({
|
|
87
87
|
queryKey: ["allAppointmentServices"],
|
|
88
|
-
queryFn:
|
|
88
|
+
queryFn: G,
|
|
89
89
|
enabled: m
|
|
90
|
-
}),
|
|
90
|
+
}), R = _(
|
|
91
91
|
() => ie(l, e),
|
|
92
92
|
[l]
|
|
93
|
-
),
|
|
93
|
+
), N = _(
|
|
94
94
|
() => ae(L ?? [], S),
|
|
95
95
|
[L, S]
|
|
96
96
|
), g = async () => {
|
|
97
97
|
p(!0);
|
|
98
98
|
try {
|
|
99
|
-
await
|
|
99
|
+
await W(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
|
+
H,
|
|
116
116
|
{
|
|
117
117
|
id: `delete-service-${r.id}-btn`,
|
|
118
118
|
testId: `delete-service-${r.id}-btn-test-id`,
|
|
@@ -121,16 +121,16 @@ const oe = () => {
|
|
|
121
121
|
label: e("ADMIN_ALL_SERVICES_DELETE_ICON_LABEL"),
|
|
122
122
|
disabled: !b,
|
|
123
123
|
onClick: () => c(r),
|
|
124
|
-
children: /* @__PURE__ */ a(
|
|
124
|
+
children: /* @__PURE__ */ a(Q, {})
|
|
125
125
|
}
|
|
126
126
|
) : u.includes(o) ? r[o] ?? "-" : r.attributes[o] ?? "-", f = [
|
|
127
127
|
{ id: "home", label: e("BREADCRUMB_HOME"), href: U },
|
|
128
128
|
{ id: "admin", label: e("BREADCRUMB_ADMIN"), isCurrentPage: !0 }
|
|
129
129
|
];
|
|
130
130
|
return /* @__PURE__ */ a(
|
|
131
|
-
|
|
131
|
+
q,
|
|
132
132
|
{
|
|
133
|
-
header: /* @__PURE__ */ a(
|
|
133
|
+
header: /* @__PURE__ */ a($, { breadcrumbItems: f, userMenu: /* @__PURE__ */ a(k, {}) }),
|
|
134
134
|
main: m ? /* @__PURE__ */ y(
|
|
135
135
|
"div",
|
|
136
136
|
{
|
|
@@ -140,12 +140,12 @@ const oe = () => {
|
|
|
140
140
|
className: d.page,
|
|
141
141
|
children: [
|
|
142
142
|
/* @__PURE__ */ a(
|
|
143
|
-
|
|
143
|
+
F,
|
|
144
144
|
{
|
|
145
145
|
id: "all-services",
|
|
146
146
|
title: e("ADMIN_ALL_SERVICES_TITLE"),
|
|
147
|
-
headers:
|
|
148
|
-
rows:
|
|
147
|
+
headers: R,
|
|
148
|
+
rows: N,
|
|
149
149
|
ariaLabel: "all-services-table",
|
|
150
150
|
loading: v,
|
|
151
151
|
errorStateMessage: D ? e("ADMIN_ALL_SERVICES_ERROR_MESSAGE") : null,
|