@bahmni/appointments-app 0.0.1-dev.217 → 0.0.1-dev.218
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-DGp_CqcQ-D-BLc2Nz.js → DocumentsTable-DGCf8sB7-D_32SHlC.js} +6 -6
- package/dist/{FormsTable-C1opmUvf-D2FsTOrx.js → FormsTable-Cngf3xjx-0wFCwAHv.js} +18 -18
- package/dist/{LNWAZHJI-DXRrdHVE.js → LNWAZHJI-BHBYbr4x.js} +2 -2
- package/dist/{MWZ6AO7Z-CihlOsvX.js → MWZ6AO7Z-BCLa9RiI.js} +2 -2
- package/dist/{Observations-DoglMWsy-BC0QHWgk.js → Observations-BTspCmvP-BzasI_nV.js} +54 -54
- package/dist/{YPM2AS64-D8cIIvPg.js → YPM2AS64-CmBNedrD.js} +1 -1
- package/dist/{index-B7yw-zcZ.js → index-BIUXeehZ.js} +8772 -8770
- package/dist/{index-DQq8gS1R.js → index-DjuvkH8B.js} +16 -16
- package/dist/index.js +1 -1
- package/dist/providers/appointmentsConfig/schema.json.d.ts +1 -1
- package/package.json +1 -1
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import { jsx as n, jsxs as f } from "react/jsx-runtime";
|
|
2
|
-
import {
|
|
2
|
+
import { R as V, t as O, a as C, B as h, D as P, f as B, e as G, F as x, G as L, b as U, H as q, I as F, W as $, K as k, O as H, P as K, Q, X as W } from "./index-BIUXeehZ.js";
|
|
3
3
|
import { useState as I, useMemo as _ } from "react";
|
|
4
|
-
const
|
|
4
|
+
const j = 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,9 +35,9 @@ const w = V(
|
|
|
35
35
|
"speciality",
|
|
36
36
|
"durationMins",
|
|
37
37
|
"description"
|
|
38
|
-
], Y = "app:appointments:manageServices",
|
|
39
|
-
page:
|
|
40
|
-
noPrivilegeContainer:
|
|
38
|
+
], Y = "app:appointments:manageServices", z = "app:appointments:adminTab", X = "_page_10v94_1", J = "_noPrivilegeContainer_10v94_1", Z = "_table_10v94_18", d = {
|
|
39
|
+
page: X,
|
|
40
|
+
noPrivilegeContainer: J,
|
|
41
41
|
table: Z
|
|
42
42
|
};
|
|
43
43
|
function ee(e) {
|
|
@@ -74,19 +74,19 @@ 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 } = j(), [E, c] = I(null), [v, S] = I(!1), l = i?.serviceTableFields ?? [
|
|
78
78
|
...p
|
|
79
|
-
], u = L(s,
|
|
79
|
+
], u = L(s, z), M = L(
|
|
80
80
|
s,
|
|
81
81
|
Y
|
|
82
82
|
), m = _(
|
|
83
83
|
() => ee(l),
|
|
84
84
|
[l]
|
|
85
|
-
), { data: A, isLoading:
|
|
85
|
+
), { data: A, isLoading: R, isError: b } = U({
|
|
86
86
|
queryKey: ["allAppointmentServices"],
|
|
87
|
-
queryFn:
|
|
87
|
+
queryFn: W,
|
|
88
88
|
enabled: u
|
|
89
|
-
}),
|
|
89
|
+
}), D = _(
|
|
90
90
|
() => te(l, e),
|
|
91
91
|
[l]
|
|
92
92
|
), g = _(
|
|
@@ -123,11 +123,11 @@ 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: q },
|
|
127
127
|
{ id: "admin", label: e("BREADCRUMB_ADMIN"), isCurrentPage: !0 }
|
|
128
128
|
];
|
|
129
129
|
return /* @__PURE__ */ n(
|
|
130
|
-
|
|
130
|
+
F,
|
|
131
131
|
{
|
|
132
132
|
header: /* @__PURE__ */ n(k, { breadcrumbItems: y }),
|
|
133
133
|
main: u ? /* @__PURE__ */ f(
|
|
@@ -143,10 +143,10 @@ const re = () => {
|
|
|
143
143
|
{
|
|
144
144
|
id: "all-services",
|
|
145
145
|
title: e("ADMIN_ALL_SERVICES_TITLE"),
|
|
146
|
-
headers:
|
|
146
|
+
headers: D,
|
|
147
147
|
rows: g,
|
|
148
148
|
ariaLabel: "all-services-table",
|
|
149
|
-
loading:
|
|
149
|
+
loading: R,
|
|
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,7 +154,7 @@ 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,
|
package/dist/index.js
CHANGED
|
@@ -3,7 +3,7 @@ declare const _default: {
|
|
|
3
3
|
"title": "Appointments App Configuration Schema",
|
|
4
4
|
"description": "Schema for global appointments app configuration",
|
|
5
5
|
"type": "object",
|
|
6
|
-
"additionalProperties":
|
|
6
|
+
"additionalProperties": true,
|
|
7
7
|
"properties": {
|
|
8
8
|
"serviceTableFields": {
|
|
9
9
|
"type": "array",
|