@bahmni/appointments-app 0.0.1-dev.349 → 0.0.1-dev.350
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-CUERw540-SY-HkwCO.js → DocumentsTable-D07TTQvw-ByeeVPot.js} +37 -37
- package/dist/{FormsTable-BiSt9X9y-Bh2JJIvX.js → FormsTable-CPV7G3yP-BdX0SnTE.js} +80 -80
- package/dist/{LNWAZHJI-B1IpHNLD.js → LNWAZHJI-CA0bgE0D.js} +2 -2
- package/dist/{MWZ6AO7Z-CMruH-mJ.js → MWZ6AO7Z-CkMAQfxp.js} +2 -2
- package/dist/{Observations-DG-AmCpd-IRRpAj9z.js → Observations-tLsS82qM-w-cazCaH.js} +33 -33
- package/dist/{YPM2AS64-BwH28Rtu.js → YPM2AS64-C9pjqtgI.js} +1 -1
- package/dist/{index-CbMnOyPH.js → index-91D-Kwae.js} +58 -58
- package/dist/{index-SsKA_iq5.js → index-BQsaCb0S.js} +46 -46
- package/dist/{index-BrCO4FcB.js → index-DQV6fwds.js} +51 -51
- package/dist/index.js +1 -1
- package/package.json +1 -1
|
@@ -102916,15 +102916,15 @@ function Nzt(t, e, r) {
|
|
|
102916
102916
|
return o;
|
|
102917
102917
|
};
|
|
102918
102918
|
}
|
|
102919
|
-
const xo = (t, e, r, o, a) => ({ name: t, applicantId: e, birthdate: r,
|
|
102920
|
-
xo("John Doe", "APP-001", "1990-05-15", 34, "M"),
|
|
102921
|
-
xo("Jane Smith", "APP-002", "1985-11-22", 39, "F"),
|
|
102922
|
-
xo("Carlos Rivera", "APP-003", "1978-03-08", 46, "M"),
|
|
102923
|
-
xo("Amina Yusuf", "APP-004", "1995-07-30", 29, "F"),
|
|
102924
|
-
xo("Wei Zhang", "APP-005", "1982-12-01", 42, "M"),
|
|
102925
|
-
xo("Sara Petrov", "APP-006", "
|
|
102926
|
-
xo("James Okafor", "APP-007", "
|
|
102927
|
-
xo("Leila Mansouri", "APP-008", "1988-06-11", 36, "F")
|
|
102919
|
+
const xo = (t, e, r, o, a, c) => ({ name: t, applicantId: e, birthdate: r, country: o, age: a, sex: c }), v90 = [
|
|
102920
|
+
xo("John Doe", "APP-001", "1990-05-15", "US", 34, "M"),
|
|
102921
|
+
xo("Jane Smith", "APP-002", "1985-11-22", "UK", 39, "F"),
|
|
102922
|
+
xo("Carlos Rivera", "APP-003", "1978-03-08", "CA", 46, "M"),
|
|
102923
|
+
xo("Amina Yusuf", "APP-004", "1995-07-30", "CA", 29, "F"),
|
|
102924
|
+
xo("Wei Zhang", "APP-005", "1982-12-01", "CA", 42, "M"),
|
|
102925
|
+
xo("Sara Petrov", "APP-006", "2026-05-01", "CA", 31, "F"),
|
|
102926
|
+
xo("James Okafor", "APP-007", "2025-12-09", "CA", 49, "M"),
|
|
102927
|
+
xo("Leila Mansouri", "APP-008", "1988-06-11", "CA", 36, "F")
|
|
102928
102928
|
], E90 = [
|
|
102929
102929
|
{ phone: "+251911234567", email: "john.doe@example.com" },
|
|
102930
102930
|
{ phone: "+251922345678", email: "jane.smith@example.com" },
|
|
@@ -106666,7 +106666,7 @@ M90();
|
|
|
106666
106666
|
const y90 = [];
|
|
106667
106667
|
for (let t = 0; t < 256; ++t)
|
|
106668
106668
|
y90.push((t + 256).toString(16).slice(1));
|
|
106669
|
-
R0(() => Promise.resolve().then(() => D40)), R0(() => Promise.resolve().then(() => ia0)), R0(() => Promise.resolve().then(() => Ba0)), R0(() => Promise.resolve().then(() => Ka0)), R0(() => import("./DocumentsTable-
|
|
106669
|
+
R0(() => Promise.resolve().then(() => D40)), R0(() => Promise.resolve().then(() => ia0)), R0(() => Promise.resolve().then(() => Ba0)), R0(() => Promise.resolve().then(() => Ka0)), R0(() => import("./DocumentsTable-D07TTQvw-ByeeVPot.js")), R0(() => Promise.resolve().then(() => Wi0)), R0(() => import("./FormsTable-CPV7G3yP-BdX0SnTE.js")), R0(() => Promise.resolve().then(() => Ci0)), R0(() => import("./Observations-tLsS82qM-w-cazCaH.js")), R0(
|
|
106670
106670
|
() => Promise.resolve().then(() => _s0)
|
|
106671
106671
|
), R0(
|
|
106672
106672
|
() => Promise.resolve().then(() => Yl0)
|
|
@@ -194902,7 +194902,7 @@ var Zxt = (t, e = !1) => {
|
|
|
194902
194902
|
const e = Pa2(() => {
|
|
194903
194903
|
const r = this, [o] = this.#n, [a] = this.#o, [c] = this.#a, [l] = this.#c, [i] = this.#p, [s] = this.#e;
|
|
194904
194904
|
let d;
|
|
194905
|
-
return this.#l ? d = this.#l : (d = Ia2(() => import("./LNWAZHJI-
|
|
194905
|
+
return this.#l ? d = this.#l : (d = Ia2(() => import("./LNWAZHJI-CA0bgE0D.js")), this.#l = d), lc2(this.#h, this.#r), ka2(d, Za2({
|
|
194906
194906
|
get queryFlavor() {
|
|
194907
194907
|
return r.#d;
|
|
194908
194908
|
},
|
|
@@ -195000,7 +195000,7 @@ var Zxt = (t, e = !1) => {
|
|
|
195000
195000
|
const e = Pa2(() => {
|
|
195001
195001
|
const r = this, [o] = this.#n, [a] = this.#o, [c] = this.#a, [l] = this.#c, [i] = this.#p, [s] = this.#e, [d] = this.#l;
|
|
195002
195002
|
let u;
|
|
195003
|
-
return this.#i ? u = this.#i : (u = Ia2(() => import("./MWZ6AO7Z-
|
|
195003
|
+
return this.#i ? u = this.#i : (u = Ia2(() => import("./MWZ6AO7Z-CkMAQfxp.js")), this.#i = u), lc2(this.#h, this.#r), ka2(u, Za2({
|
|
195004
195004
|
get queryFlavor() {
|
|
195005
195005
|
return r.#d;
|
|
195006
195006
|
},
|
|
@@ -195160,11 +195160,11 @@ const wVt = {
|
|
|
195160
195160
|
}), AVt = R0(
|
|
195161
195161
|
() => import("./index-CFigb5vF.js").then((t) => ({ default: t.IndexPage }))
|
|
195162
195162
|
), LVt = R0(
|
|
195163
|
-
() => import("./index-
|
|
195163
|
+
() => import("./index-BQsaCb0S.js").then((t) => ({
|
|
195164
195164
|
default: t.default
|
|
195165
195165
|
}))
|
|
195166
195166
|
), _Vt = R0(
|
|
195167
|
-
() => import("./index-
|
|
195167
|
+
() => import("./index-DQV6fwds.js").then((t) => ({
|
|
195168
195168
|
default: t.default
|
|
195169
195169
|
}))
|
|
195170
195170
|
), TVt = [
|
|
@@ -195206,35 +195206,35 @@ function jxt() {
|
|
|
195206
195206
|
] }) }) }) }) }) : /* @__PURE__ */ de(qP1, {});
|
|
195207
195207
|
}
|
|
195208
195208
|
export {
|
|
195209
|
-
|
|
195210
|
-
|
|
195211
|
-
|
|
195212
|
-
|
|
195213
|
-
|
|
195209
|
+
GHt as $,
|
|
195210
|
+
MVt as A,
|
|
195211
|
+
Ezt as B,
|
|
195212
|
+
jHt as C,
|
|
195213
|
+
Gzt as D,
|
|
195214
195214
|
Yi as E,
|
|
195215
|
-
|
|
195215
|
+
yzt as F,
|
|
195216
195216
|
$r as G,
|
|
195217
|
-
|
|
195218
|
-
|
|
195219
|
-
|
|
195220
|
-
|
|
195221
|
-
|
|
195217
|
+
pxt as H,
|
|
195218
|
+
tj2 as I,
|
|
195219
|
+
ts as J,
|
|
195220
|
+
axt as K,
|
|
195221
|
+
fzt as L,
|
|
195222
195222
|
Bc as M,
|
|
195223
|
-
|
|
195224
|
-
|
|
195225
|
-
|
|
195223
|
+
DMt as N,
|
|
195224
|
+
pzt as O,
|
|
195225
|
+
Mzt as P,
|
|
195226
195226
|
ct as Q,
|
|
195227
|
-
|
|
195228
|
-
|
|
195227
|
+
mzt as R,
|
|
195228
|
+
N90 as S,
|
|
195229
195229
|
pM as T,
|
|
195230
|
-
|
|
195231
|
-
|
|
195232
|
-
|
|
195230
|
+
zzt as U,
|
|
195231
|
+
rxt as V,
|
|
195232
|
+
LB0 as W,
|
|
195233
195233
|
Zl as X,
|
|
195234
|
-
|
|
195235
|
-
|
|
195236
|
-
|
|
195237
|
-
|
|
195234
|
+
es as Y,
|
|
195235
|
+
aj2 as Z,
|
|
195236
|
+
qHt as _,
|
|
195237
|
+
xt as a,
|
|
195238
195238
|
Hxt as a$,
|
|
195239
195239
|
JHt as a0,
|
|
195240
195240
|
cf0 as a1,
|
|
@@ -195299,7 +195299,7 @@ export {
|
|
|
195299
195299
|
Axt as ax,
|
|
195300
195300
|
ug as ay,
|
|
195301
195301
|
l4 as az,
|
|
195302
|
-
|
|
195302
|
+
iM as b,
|
|
195303
195303
|
n8 as b0,
|
|
195304
195304
|
yyt as b1,
|
|
195305
195305
|
Oxt as b2,
|
|
@@ -195310,28 +195310,28 @@ export {
|
|
|
195310
195310
|
Txt as b7,
|
|
195311
195311
|
qMt as b8,
|
|
195312
195312
|
jxt as b9,
|
|
195313
|
-
|
|
195314
|
-
|
|
195313
|
+
cs as c,
|
|
195314
|
+
lY1 as d,
|
|
195315
195315
|
Vg as e,
|
|
195316
|
-
|
|
195317
|
-
|
|
195318
|
-
|
|
195319
|
-
|
|
195320
|
-
|
|
195321
|
-
|
|
195322
|
-
|
|
195323
|
-
|
|
195316
|
+
bzt as f,
|
|
195317
|
+
a2 as g,
|
|
195318
|
+
hzt as h,
|
|
195319
|
+
sE as i,
|
|
195320
|
+
Vzt as j,
|
|
195321
|
+
vzt as k,
|
|
195322
|
+
uJ2 as l,
|
|
195323
|
+
Kt as m,
|
|
195324
195324
|
Ut as n,
|
|
195325
195325
|
Dr as o,
|
|
195326
|
-
|
|
195327
|
-
|
|
195328
|
-
|
|
195329
|
-
|
|
195330
|
-
|
|
195326
|
+
FVt as p,
|
|
195327
|
+
rVe as q,
|
|
195328
|
+
NB2 as r,
|
|
195329
|
+
pj2 as s,
|
|
195330
|
+
Nzt as t,
|
|
195331
195331
|
E2 as u,
|
|
195332
|
-
|
|
195333
|
-
|
|
195334
|
-
|
|
195335
|
-
|
|
195336
|
-
|
|
195332
|
+
EJ2 as v,
|
|
195333
|
+
Iz as w,
|
|
195334
|
+
aHt as x,
|
|
195335
|
+
Mm0 as y,
|
|
195336
|
+
uzt as z
|
|
195337
195337
|
};
|
|
@@ -1,19 +1,19 @@
|
|
|
1
|
-
import { jsx as
|
|
2
|
-
import {
|
|
3
|
-
import { useState as I, useMemo as
|
|
4
|
-
import { useQueryClient as Q, useQuery as
|
|
5
|
-
const
|
|
1
|
+
import { jsx as a, jsxs as y } from "react/jsx-runtime";
|
|
2
|
+
import { t as V, A as O, u as C, w as P, x as h, o as B, M as G, y as L, C as x, D as U, H as q, K as H, N as F, S as W, V as j, W as k, _ as K } from "./index-91D-Kwae.js";
|
|
3
|
+
import { useState as I, useMemo as c } from "react";
|
|
4
|
+
import { useQueryClient as Q, useQuery as $ } from "@tanstack/react-query";
|
|
5
|
+
const w = V(
|
|
6
6
|
O,
|
|
7
7
|
"useAppointmentsConfig",
|
|
8
8
|
"AppointmentsConfigProvider"
|
|
9
|
-
),
|
|
9
|
+
), Y = ({
|
|
10
10
|
serviceName: e,
|
|
11
|
-
isDeleting:
|
|
11
|
+
isDeleting: i,
|
|
12
12
|
onConfirm: t,
|
|
13
13
|
onCancel: s
|
|
14
14
|
}) => {
|
|
15
15
|
const { t: n } = C();
|
|
16
|
-
return /* @__PURE__ */
|
|
16
|
+
return /* @__PURE__ */ a(
|
|
17
17
|
P,
|
|
18
18
|
{
|
|
19
19
|
id: "delete-service-modal",
|
|
@@ -25,7 +25,7 @@ const $ = V(
|
|
|
25
25
|
onRequestSubmit: t,
|
|
26
26
|
primaryButtonText: n("ADMIN_ALL_SERVICES_DELETE_BUTTON_LABEL"),
|
|
27
27
|
secondaryButtonText: n("ADMIN_ALL_SERVICES_DELETE_CANCEL"),
|
|
28
|
-
primaryButtonDisabled:
|
|
28
|
+
primaryButtonDisabled: i,
|
|
29
29
|
modalHeading: n("ADMIN_ALL_SERVICES_DELETE_MODAL_TITLE"),
|
|
30
30
|
children: n("ADMIN_ALL_SERVICES_DELETE_CONFIRM_BODY", { serviceName: e })
|
|
31
31
|
}
|
|
@@ -36,29 +36,29 @@ const $ = V(
|
|
|
36
36
|
"speciality",
|
|
37
37
|
"durationMins",
|
|
38
38
|
"description"
|
|
39
|
-
],
|
|
40
|
-
page:
|
|
41
|
-
noPrivilegeContainer:
|
|
39
|
+
], Z = "app:appointments:manageServices", z = "app:appointments:adminTab", X = "index-module_page__Gsfbu", J = "index-module_noPrivilegeContainer__Pu5WZ", ee = "index-module_table__GAPmb", d = {
|
|
40
|
+
page: X,
|
|
41
|
+
noPrivilegeContainer: J,
|
|
42
42
|
table: ee
|
|
43
43
|
};
|
|
44
44
|
function te(e) {
|
|
45
|
-
return e.filter((
|
|
45
|
+
return e.filter((i) => !u.includes(i));
|
|
46
46
|
}
|
|
47
|
-
function
|
|
47
|
+
function ie(e, i) {
|
|
48
48
|
return [
|
|
49
49
|
...e.map((t) => ({
|
|
50
50
|
key: t,
|
|
51
|
-
header:
|
|
51
|
+
header: i(
|
|
52
52
|
`ADMIN_ALL_SERVICES_COLUMN_${h(t)}`
|
|
53
53
|
)
|
|
54
54
|
})),
|
|
55
55
|
{
|
|
56
56
|
key: "actions",
|
|
57
|
-
header:
|
|
57
|
+
header: i("ADMIN_ALL_SERVICES_COLUMN_ACTIONS")
|
|
58
58
|
}
|
|
59
59
|
];
|
|
60
60
|
}
|
|
61
|
-
function
|
|
61
|
+
function ae(e, i) {
|
|
62
62
|
return e.map((t) => ({
|
|
63
63
|
id: t.uuid,
|
|
64
64
|
name: t.name,
|
|
@@ -67,7 +67,7 @@ function ie(e, a) {
|
|
|
67
67
|
durationMins: t.durationMins,
|
|
68
68
|
description: t.description,
|
|
69
69
|
attributes: Object.fromEntries(
|
|
70
|
-
|
|
70
|
+
i.map((s) => [
|
|
71
71
|
s,
|
|
72
72
|
t.attributes?.find((n) => n.attributeType === s)?.value ?? null
|
|
73
73
|
])
|
|
@@ -75,33 +75,33 @@ function ie(e, a) {
|
|
|
75
75
|
}));
|
|
76
76
|
}
|
|
77
77
|
const oe = () => {
|
|
78
|
-
const { t: e } = C(),
|
|
78
|
+
const { t: e } = C(), i = Q(), { addNotification: t } = B(), { userPrivileges: s } = G(), { appointmentsConfig: n } = w(), [E, _] = I(null), [M, p] = I(!1), l = n?.serviceTableFields ?? [
|
|
79
79
|
...u
|
|
80
|
-
],
|
|
80
|
+
], S = L(s, z), b = L(
|
|
81
81
|
s,
|
|
82
|
-
|
|
83
|
-
),
|
|
82
|
+
Z
|
|
83
|
+
), m = c(
|
|
84
84
|
() => te(l),
|
|
85
85
|
[l]
|
|
86
|
-
), { data: A, isLoading: v, isError: D } =
|
|
86
|
+
), { data: A, isLoading: v, isError: D } = $({
|
|
87
87
|
queryKey: ["allAppointmentServices"],
|
|
88
|
-
queryFn:
|
|
89
|
-
enabled:
|
|
90
|
-
}),
|
|
91
|
-
() =>
|
|
88
|
+
queryFn: x,
|
|
89
|
+
enabled: S
|
|
90
|
+
}), N = c(
|
|
91
|
+
() => ie(l, e),
|
|
92
92
|
[l]
|
|
93
|
-
),
|
|
94
|
-
() =>
|
|
95
|
-
[A,
|
|
93
|
+
), R = c(
|
|
94
|
+
() => ae(A ?? [], m),
|
|
95
|
+
[A, m]
|
|
96
96
|
), g = async () => {
|
|
97
97
|
p(!0);
|
|
98
98
|
try {
|
|
99
|
-
await
|
|
99
|
+
await K(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",
|
|
103
103
|
timeout: 5e3
|
|
104
|
-
}),
|
|
104
|
+
}), _(null), i.invalidateQueries({ queryKey: ["allAppointmentServices"] });
|
|
105
105
|
} catch {
|
|
106
106
|
t({
|
|
107
107
|
title: e("ADMIN_ALL_SERVICES_DELETE_ERROR_TITLE"),
|
|
@@ -111,7 +111,7 @@ const oe = () => {
|
|
|
111
111
|
} finally {
|
|
112
112
|
p(!1);
|
|
113
113
|
}
|
|
114
|
-
}, T = (r, o) => o === "actions" ? /* @__PURE__ */
|
|
114
|
+
}, T = (r, o) => o === "actions" ? /* @__PURE__ */ a(
|
|
115
115
|
j,
|
|
116
116
|
{
|
|
117
117
|
id: `delete-service-${r.id}-btn`,
|
|
@@ -120,18 +120,18 @@ const oe = () => {
|
|
|
120
120
|
kind: "ghost",
|
|
121
121
|
label: e("ADMIN_ALL_SERVICES_DELETE_ICON_LABEL"),
|
|
122
122
|
disabled: !b,
|
|
123
|
-
onClick: () =>
|
|
124
|
-
children: /* @__PURE__ */
|
|
123
|
+
onClick: () => _(r),
|
|
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 },
|
|
128
128
|
{ id: "admin", label: e("BREADCRUMB_ADMIN"), isCurrentPage: !0 }
|
|
129
129
|
];
|
|
130
|
-
return /* @__PURE__ */
|
|
130
|
+
return /* @__PURE__ */ a(
|
|
131
131
|
q,
|
|
132
132
|
{
|
|
133
|
-
header: /* @__PURE__ */
|
|
134
|
-
main:
|
|
133
|
+
header: /* @__PURE__ */ a(F, { breadcrumbItems: f, userMenu: /* @__PURE__ */ a(W, {}) }),
|
|
134
|
+
main: S ? /* @__PURE__ */ y(
|
|
135
135
|
"div",
|
|
136
136
|
{
|
|
137
137
|
id: "all-appointment-service-page",
|
|
@@ -139,13 +139,13 @@ const oe = () => {
|
|
|
139
139
|
"aria-label": "all-appointment-service-page-aria-label",
|
|
140
140
|
className: d.page,
|
|
141
141
|
children: [
|
|
142
|
-
/* @__PURE__ */
|
|
143
|
-
|
|
142
|
+
/* @__PURE__ */ a(
|
|
143
|
+
H,
|
|
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,
|
|
@@ -154,18 +154,18 @@ const oe = () => {
|
|
|
154
154
|
className: d.table
|
|
155
155
|
}
|
|
156
156
|
),
|
|
157
|
-
E && /* @__PURE__ */
|
|
158
|
-
|
|
157
|
+
E && /* @__PURE__ */ a(
|
|
158
|
+
Y,
|
|
159
159
|
{
|
|
160
160
|
serviceName: E.name,
|
|
161
161
|
isDeleting: M,
|
|
162
162
|
onConfirm: g,
|
|
163
|
-
onCancel: () =>
|
|
163
|
+
onCancel: () => _(null)
|
|
164
164
|
}
|
|
165
165
|
)
|
|
166
166
|
]
|
|
167
167
|
}
|
|
168
|
-
) : /* @__PURE__ */
|
|
168
|
+
) : /* @__PURE__ */ a(
|
|
169
169
|
"div",
|
|
170
170
|
{
|
|
171
171
|
id: "all-appointment-service-no-view-privilege",
|