@argusoft/medplat-core 1.0.23 → 1.0.25
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/{AddFeatures-CTVs_Gr9.js → AddFeatures-CqE3v0BN.js} +2 -2
- package/dist/{AddFeatures-CTVs_Gr9.js.map → AddFeatures-CqE3v0BN.js.map} +1 -1
- package/dist/AddMenuConfiguration-BSQLl88V.js +6570 -0
- package/dist/AddMenuConfiguration-BSQLl88V.js.map +1 -0
- package/dist/AddMenuConfiguration.css +1 -1
- package/dist/{ChangePasswordModalCore-DONyFFlx.js → ChangePasswordModalCore-DTYWRTa-.js} +955 -952
- package/dist/ChangePasswordModalCore-DTYWRTa-.js.map +1 -0
- package/dist/{ConditionConfig-C3rF2wXU.js → ConditionConfig-DSsgGEXS.js} +2 -2
- package/dist/{ConditionConfig-C3rF2wXU.js.map → ConditionConfig-DSsgGEXS.js.map} +1 -1
- package/dist/FhirRawResourceList-ZZFd7gTX.js +550 -0
- package/dist/FhirRawResourceList-ZZFd7gTX.js.map +1 -0
- package/dist/FhirServerList-Dkq7Kbes.js +116 -0
- package/dist/FhirServerList-Dkq7Kbes.js.map +1 -0
- package/dist/FhirServerProfile-CUOwC6Wb.js +253 -0
- package/dist/FhirServerProfile-CUOwC6Wb.js.map +1 -0
- package/dist/FhirServerWizard-Db6Hm4bQ.js +161 -0
- package/dist/FhirServerWizard-Db6Hm4bQ.js.map +1 -0
- package/dist/{ImmunizationConfigurationBase-CTBoSuSz.js → ImmunizationConfigurationBase-BevKZx_l.js} +386 -302
- package/dist/ImmunizationConfigurationBase-BevKZx_l.js.map +1 -0
- package/dist/{ManageEventConfiguration-BntUc_YI.js → ManageEventConfiguration-DV3I5POA.js} +4 -4
- package/dist/{ManageEventConfiguration-BntUc_YI.js.map → ManageEventConfiguration-DV3I5POA.js.map} +1 -1
- package/dist/{ManageRole-CZAk-IlM.js → ManageRole-B9bs_T00.js} +116 -116
- package/dist/ManageRole-B9bs_T00.js.map +1 -0
- package/dist/{ManageUser-Gv38VHMu.js → ManageUser-AB3_Vfp_.js} +85 -84
- package/dist/{ManageUser-Gv38VHMu.js.map → ManageUser-AB3_Vfp_.js.map} +1 -1
- package/dist/{MobileMenuManagement-CV6QCeos.js → MobileMenuManagement-CVAKyKDa.js} +33 -32
- package/dist/MobileMenuManagement-CVAKyKDa.js.map +1 -0
- package/dist/{MobileTypeEventConfigModal-BNjZ8pnq.js → MobileTypeEventConfigModal-BxLympIO.js} +2 -2
- package/dist/{MobileTypeEventConfigModal-BNjZ8pnq.js.map → MobileTypeEventConfigModal-BxLympIO.js.map} +1 -1
- package/dist/{OtherTypeEventConfigModal-DiVhWDpG.js → OtherTypeEventConfigModal-BeG1GrUi.js} +94 -93
- package/dist/OtherTypeEventConfigModal-BeG1GrUi.js.map +1 -0
- package/dist/{RoleManagement-B9WgZGEj.js → RoleManagement-BIiW9uTq.js} +2 -2
- package/dist/{RoleManagement-B9WgZGEj.js.map → RoleManagement-BIiW9uTq.js.map} +1 -1
- package/dist/ServerFormFields-SLghoZ2z.js +136 -0
- package/dist/ServerFormFields-SLghoZ2z.js.map +1 -0
- package/dist/SyncDialog-BRGpHOE4.js +130 -0
- package/dist/SyncDialog-BRGpHOE4.js.map +1 -0
- package/dist/{TypeConfiguration-CupQxH9Y.js → TypeConfiguration-37wp-gsl.js} +2 -2
- package/dist/{TypeConfiguration-CupQxH9Y.js.map → TypeConfiguration-37wp-gsl.js.map} +1 -1
- package/dist/{UserList-BzHsbYel.js → UserList-2gGuDgNa.js} +38 -37
- package/dist/{UserList-BzHsbYel.js.map → UserList-2gGuDgNa.js.map} +1 -1
- package/dist/{UserListSkeleton-DhIJ5X3y.js → UserListSkeleton-BMKANCtW.js} +57 -93
- package/dist/UserListSkeleton-BMKANCtW.js.map +1 -0
- package/dist/Users-CsJ08Kjm.js +40 -0
- package/dist/Users-CsJ08Kjm.js.map +1 -0
- package/dist/dashboardLayoutUtils-Bt5HA96J.js +265 -0
- package/dist/dashboardLayoutUtils-Bt5HA96J.js.map +1 -0
- package/dist/index.css +1 -1
- package/dist/index.js +190 -134
- package/dist/index.js.map +1 -1
- package/dist/permissions-DEWACxJN.js +308 -0
- package/dist/permissions-DEWACxJN.js.map +1 -0
- package/package.json +1 -1
- package/dist/AddMenuConfiguration-DsnY0Rws.js +0 -2237
- package/dist/AddMenuConfiguration-DsnY0Rws.js.map +0 -1
- package/dist/ChangePasswordModalCore-DONyFFlx.js.map +0 -1
- package/dist/ImmunizationConfigurationBase-CTBoSuSz.js.map +0 -1
- package/dist/ManageRole-CZAk-IlM.js.map +0 -1
- package/dist/MobileMenuManagement-CV6QCeos.js.map +0 -1
- package/dist/OtherTypeEventConfigModal-DiVhWDpG.js.map +0 -1
- package/dist/UserListSkeleton-DhIJ5X3y.js.map +0 -1
|
@@ -1,23 +1,24 @@
|
|
|
1
1
|
import { jsx as a, jsxs as p, Fragment as ye } from "react/jsx-runtime";
|
|
2
2
|
import { useTranslateProvider as nt } from "@/common/languageTranslator/TranslationContext";
|
|
3
|
-
import {
|
|
3
|
+
import { g as st, t as _t, a as wt, b as We } from "./Users-CsJ08Kjm.js";
|
|
4
4
|
import { showToast as T } from "@/common/toaster/toaster.jsx";
|
|
5
|
-
import
|
|
6
|
-
import { getAssignedFeatures as
|
|
5
|
+
import Bt from "@/hooks/usePagination.js";
|
|
6
|
+
import { getAssignedFeatures as Lt } from "@/utils/feature.js";
|
|
7
7
|
import Xe from "@/views/custom-components/CustomConfirmationModal.jsx";
|
|
8
|
-
import
|
|
9
|
-
import
|
|
8
|
+
import Mt from "@/views/custom-components/CustomizedTable/CustomizedTableV2";
|
|
9
|
+
import Rt from "@/views/custom-components/SideOverlay.jsx";
|
|
10
10
|
import f from "prop-types";
|
|
11
|
-
import { useState as d, useEffect as G, Suspense as
|
|
12
|
-
import { InputLabel as ke, Switch as
|
|
11
|
+
import { useState as d, useEffect as G, Suspense as $t, lazy as Ht, useRef as Ze, useMemo as Ft, useCallback as Vt } from "react";
|
|
12
|
+
import { InputLabel as ke, Switch as jt, Button as Ue, Box as E, Card as Dt, Typography as et, TextField as zt, CircularProgress as tt, Tooltip as Yt } from "@mui/material";
|
|
13
13
|
import _ from "@mui/material/Grid2";
|
|
14
14
|
import at from "@/views/custom-components/CustomDropdown";
|
|
15
|
-
import { useForm as
|
|
15
|
+
import { useForm as qt, FormProvider as Gt } from "react-hook-form";
|
|
16
16
|
import rt from "@/hooks/useTrackEvent";
|
|
17
|
-
import { showToast as
|
|
18
|
-
import { useDispatch as it, useSelector as
|
|
17
|
+
import { showToast as Jt } from "@/common/toaster/toaster";
|
|
18
|
+
import { useDispatch as it, useSelector as Qt } from "react-redux";
|
|
19
19
|
import { setUserDetails as Se } from "@/store/reducers/AuthenticationReducer";
|
|
20
|
-
import { useLocation as ct, useNavigate as
|
|
20
|
+
import { useLocation as ct, useNavigate as Kt } from "react-router";
|
|
21
|
+
import { U as Pt, a as Wt, b as Xt, c as Zt } from "./UserListSkeleton-BMKANCtW.js";
|
|
21
22
|
import ea from "@/common/config/implementationConfig";
|
|
22
23
|
import { useTheme as ta, alpha as k } from "@mui/material/styles";
|
|
23
24
|
import { execute as aa } from "@/common/services/QueryBuilder";
|
|
@@ -28,7 +29,7 @@ import { x as P } from "./xlsx.min-D1LFqt_b.js";
|
|
|
28
29
|
import fa from "@/hooks/useDownloadPdf.js";
|
|
29
30
|
import be from "@/views/custom-components/CustomStatsComponent.jsx";
|
|
30
31
|
import "@/common/services/util/GeneralUtil.js";
|
|
31
|
-
import './UserList.css';const pa =
|
|
32
|
+
import './UserList.css';const pa = Ht(
|
|
32
33
|
() => import("@/views/feature-components/LocationDirective/LocationDirectiveV2")
|
|
33
34
|
), dt = ({
|
|
34
35
|
handleOverlayState: W,
|
|
@@ -50,7 +51,7 @@ import './UserList.css';const pa = Dt(
|
|
|
50
51
|
setLocations: te,
|
|
51
52
|
setAdminRoleIdsStats: n
|
|
52
53
|
}) => {
|
|
53
|
-
const [R, ce] = d([]), B = rt(), { translate: y } = nt(), de =
|
|
54
|
+
const [R, ce] = d([]), B = rt(), { translate: y } = nt(), de = qt({ mode: "onChange" }), ae = it(), u = ct(), {
|
|
54
55
|
control: oe,
|
|
55
56
|
handleSubmit: O,
|
|
56
57
|
formState: { errors: le },
|
|
@@ -104,10 +105,10 @@ import './UserList.css';const pa = Dt(
|
|
|
104
105
|
...g
|
|
105
106
|
}), M((F) => !F), W();
|
|
106
107
|
} catch (S) {
|
|
107
|
-
|
|
108
|
+
Jt({ message: `error : ${S == null ? void 0 : S.message}`, type: "error" }), M((g) => !g);
|
|
108
109
|
}
|
|
109
110
|
};
|
|
110
|
-
return /* @__PURE__ */ a(
|
|
111
|
+
return /* @__PURE__ */ a(Gt, { ...de, children: /* @__PURE__ */ p(
|
|
111
112
|
_,
|
|
112
113
|
{
|
|
113
114
|
className: "m-[1rem]",
|
|
@@ -122,13 +123,13 @@ import './UserList.css';const pa = Dt(
|
|
|
122
123
|
"data-testid": "userfilterform-container-grid",
|
|
123
124
|
noValidate: !0,
|
|
124
125
|
children: [
|
|
125
|
-
/* @__PURE__ */ a(
|
|
126
|
+
/* @__PURE__ */ a(Pt, { isLoading: X, children: /* @__PURE__ */ p(_, { className: "flex items-center", children: [
|
|
126
127
|
/* @__PURE__ */ p(ke, { children: [
|
|
127
128
|
y("Location Filter Required"),
|
|
128
129
|
" :"
|
|
129
130
|
] }),
|
|
130
131
|
/* @__PURE__ */ a(
|
|
131
|
-
|
|
132
|
+
jt,
|
|
132
133
|
{
|
|
133
134
|
defaultChecked: !0,
|
|
134
135
|
checked: w,
|
|
@@ -138,7 +139,7 @@ import './UserList.css';const pa = Dt(
|
|
|
138
139
|
}
|
|
139
140
|
)
|
|
140
141
|
] }) }),
|
|
141
|
-
w === !0 && /* @__PURE__ */ a(
|
|
142
|
+
w === !0 && /* @__PURE__ */ a($t, { children: /* @__PURE__ */ a(
|
|
142
143
|
pa,
|
|
143
144
|
{
|
|
144
145
|
childForm: !0,
|
|
@@ -151,7 +152,7 @@ import './UserList.css';const pa = Dt(
|
|
|
151
152
|
fetchAccordingToUserAoi: ea.user.filterLocationsByUserAoi
|
|
152
153
|
}
|
|
153
154
|
) }),
|
|
154
|
-
/* @__PURE__ */ a(
|
|
155
|
+
/* @__PURE__ */ a(Wt, { isLoading: X, children: /* @__PURE__ */ p(_, { children: [
|
|
155
156
|
/* @__PURE__ */ a(ke, { "data-testid": "userfilterform-role-label", children: y("Role") }),
|
|
156
157
|
/* @__PURE__ */ a(
|
|
157
158
|
at,
|
|
@@ -244,9 +245,9 @@ dt.propTypes = {
|
|
|
244
245
|
setLocations: f.any,
|
|
245
246
|
setAdminRoleIdsStats: f.any
|
|
246
247
|
};
|
|
247
|
-
function
|
|
248
|
+
function qa() {
|
|
248
249
|
var ze, Ye, qe, Ge, Je, Qe;
|
|
249
|
-
const W =
|
|
250
|
+
const W = Kt(), M = rt(), [X, re] = d([]);
|
|
250
251
|
let Z = "#8688ecff", j = "#10b981", ee = "#f43f5e", ie = "#f59e0b", C = "#ffffffff";
|
|
251
252
|
const [v, w] = d([]), [D, U] = d([]), [m, xe] = d(null), [Ne, te] = d(!1), n = ta(), R = n.palette.mode === "dark", [ce, B] = d(0), [y, de] = d({}), ae = Ze(y);
|
|
252
253
|
G(() => {
|
|
@@ -255,7 +256,7 @@ function Ya() {
|
|
|
255
256
|
const [u, oe] = d(null), [O, le] = d(""), [me, J] = d(""), [$, fe] = d([]), [pe, I] = d(!0), [H, S] = d(!1), [g, L] = d({
|
|
256
257
|
sortColumn: "userName",
|
|
257
258
|
sortOrder: "asc"
|
|
258
|
-
}), [z, F] = d(!1), Ae = 50, { translate: ne } = nt(), [ue, Y] = d(!1), [he, Ee] = d(null), [b, Oe] = d(null), [q, Q] = d(null), A = ct(), _e = it(), { user: x } =
|
|
259
|
+
}), [z, F] = d(!1), Ae = 50, { translate: ne } = nt(), [ue, Y] = d(!1), [he, Ee] = d(null), [b, Oe] = d(null), [q, Q] = d(null), A = ct(), _e = it(), { user: x } = Qt((e) => e == null ? void 0 : e.Authenticate), [mt, we] = d(
|
|
259
260
|
((ze = x == null ? void 0 : x.userFilterPreference) == null ? void 0 : ze.locationId) || null
|
|
260
261
|
), Be = Ze(mt), [ft, Le] = d(
|
|
261
262
|
((Ye = A == null ? void 0 : A.state) == null ? void 0 : Ye.fromManageUser) === !0 && ((qe = x == null ? void 0 : x.userFilterPreference) == null ? void 0 : qe.selectedLocation) || {},
|
|
@@ -264,7 +265,7 @@ function Ya() {
|
|
|
264
265
|
((Ge = A == null ? void 0 : A.state) == null ? void 0 : Ge.fromManageUser) === !0 && ((Je = x == null ? void 0 : x.userFilterPreference) == null ? void 0 : Je.filterRequired) || !1
|
|
265
266
|
), [s, K] = d(
|
|
266
267
|
((Qe = A == null ? void 0 : A.state) == null ? void 0 : Qe.fromManageUser) === !0 && (x == null ? void 0 : x.userFilterPreference) || {}
|
|
267
|
-
), [ut, Re] = d(0), [ht, $e] = d([]), gt =
|
|
268
|
+
), [ut, Re] = d(0), [ht, $e] = d([]), gt = Ft(() => $ == null ? void 0 : $.map((e, o) => {
|
|
268
269
|
let t = "";
|
|
269
270
|
return e != null && e.title && (t += e.title + " "), e != null && e.firstName && (t += e.firstName + " "), e != null && e.lastName && (t += e.lastName), {
|
|
270
271
|
...e,
|
|
@@ -438,7 +439,7 @@ function Ya() {
|
|
|
438
439
|
className: "flex items-center text-md pl-2",
|
|
439
440
|
sx: { color: n.palette.text.primary },
|
|
440
441
|
children: /* @__PURE__ */ a(
|
|
441
|
-
|
|
442
|
+
Yt,
|
|
442
443
|
{
|
|
443
444
|
arrow: !0,
|
|
444
445
|
placement: "top",
|
|
@@ -545,7 +546,7 @@ function Ya() {
|
|
|
545
546
|
var o, t, r, i;
|
|
546
547
|
const e = u.displayState !== "ACTIVE";
|
|
547
548
|
try {
|
|
548
|
-
await
|
|
549
|
+
await _t(u, { is_active: e }), B(0), F((c) => !c), T({
|
|
549
550
|
message: "User State Updated Successfully",
|
|
550
551
|
type: "success"
|
|
551
552
|
});
|
|
@@ -562,7 +563,7 @@ function Ya() {
|
|
|
562
563
|
}
|
|
563
564
|
}, xt = async () => {
|
|
564
565
|
try {
|
|
565
|
-
const e = await
|
|
566
|
+
const e = await wt({
|
|
566
567
|
userId: (u == null ? void 0 : u.userId) ?? (u == null ? void 0 : u.id)
|
|
567
568
|
});
|
|
568
569
|
e && (fe((o) => o.map((t) => (t == null ? void 0 : t.userId) === ((u == null ? void 0 : u.userId) ?? (u == null ? void 0 : u.id)) ? { ...t, loginCode: e.data } : t)), T({
|
|
@@ -574,7 +575,7 @@ function Ya() {
|
|
|
574
575
|
} finally {
|
|
575
576
|
B(0);
|
|
576
577
|
}
|
|
577
|
-
}, Nt = (e) => W(`/ui/medplat/manage/user/${(e == null ? void 0 : e.userId) ?? (e == null ? void 0 : e.id)}`), Ct =
|
|
578
|
+
}, Nt = (e) => W(`/ui/medplat/manage/user/${(e == null ? void 0 : e.userId) ?? (e == null ? void 0 : e.id)}`), Ct = Vt(
|
|
578
579
|
(e) => {
|
|
579
580
|
var o;
|
|
580
581
|
return [
|
|
@@ -667,7 +668,7 @@ function Ya() {
|
|
|
667
668
|
data: ge,
|
|
668
669
|
fetchNextPage: Tt,
|
|
669
670
|
hasNextPage: kt
|
|
670
|
-
} =
|
|
671
|
+
} = Bt({
|
|
671
672
|
key: [
|
|
672
673
|
"users",
|
|
673
674
|
me,
|
|
@@ -697,7 +698,7 @@ function Ya() {
|
|
|
697
698
|
re(r);
|
|
698
699
|
const i = t == null ? void 0 : t.map((l) => l.id);
|
|
699
700
|
U(i), Y(!0);
|
|
700
|
-
const { data: c } = await
|
|
701
|
+
const { data: c } = await Lt("techo.manage.users");
|
|
701
702
|
c && de(JSON.parse(c)), (o = A == null ? void 0 : A.state) != null && o.fromManageUser || _e(Se({ ...x, userFilterPreference: {} })), Y(!1);
|
|
702
703
|
} catch (t) {
|
|
703
704
|
Y(!1), console.error("Error loading initial data:", t);
|
|
@@ -836,7 +837,7 @@ function Ya() {
|
|
|
836
837
|
Ee(null), Oe(null), Q("BOTH"), K({}), Me(!1), $e([]), w([]), _e(Se({ ...x, userFilterPreference: {} })), we(null), Le({}), Re((e) => e + 1), Be.current = null, Fe();
|
|
837
838
|
};
|
|
838
839
|
return !ue && !(y != null && y["view.manage.users"]) ? /* @__PURE__ */ a(E, { className: "flex justify-center items-center w-full h-[80vh]", children: /* @__PURE__ */ a(
|
|
839
|
-
|
|
840
|
+
Dt,
|
|
840
841
|
{
|
|
841
842
|
className: "h-80 w-150 flex justify-center items-center",
|
|
842
843
|
"data-testid": "userlist-no-permission",
|
|
@@ -865,7 +866,7 @@ function Ya() {
|
|
|
865
866
|
dataTestId: "userlist-modal-generate-soh-confirmation"
|
|
866
867
|
}
|
|
867
868
|
),
|
|
868
|
-
/* @__PURE__ */ a(
|
|
869
|
+
/* @__PURE__ */ a(Xt, { isLoading: ue, children: /* @__PURE__ */ p(
|
|
869
870
|
_,
|
|
870
871
|
{
|
|
871
872
|
container: !0,
|
|
@@ -882,7 +883,7 @@ function Ya() {
|
|
|
882
883
|
) }),
|
|
883
884
|
/* @__PURE__ */ p(_, { className: "flex flex-col md:flex-row w-full md:w-auto space-y-2 md:space-y-0 md:space-x-3", children: [
|
|
884
885
|
/* @__PURE__ */ a(_, { className: "w-full md:w-auto", children: /* @__PURE__ */ a(
|
|
885
|
-
|
|
886
|
+
zt,
|
|
886
887
|
{
|
|
887
888
|
name: "searchQuery",
|
|
888
889
|
id: "searchQuery",
|
|
@@ -965,7 +966,7 @@ function Ya() {
|
|
|
965
966
|
]
|
|
966
967
|
}
|
|
967
968
|
) }),
|
|
968
|
-
/* @__PURE__ */ a(
|
|
969
|
+
/* @__PURE__ */ a(Zt, { isLoading: Ne, children: m && /* @__PURE__ */ p("div", { className: "grid grid-cols-1 sm:grid-cols-2 lg:grid-cols-4 gap-4 mt-4 mb-4", children: [
|
|
969
970
|
/* @__PURE__ */ a(
|
|
970
971
|
be,
|
|
971
972
|
{
|
|
@@ -1053,7 +1054,7 @@ function Ya() {
|
|
|
1053
1054
|
)
|
|
1054
1055
|
] }) }),
|
|
1055
1056
|
/* @__PURE__ */ a(
|
|
1056
|
-
|
|
1057
|
+
Mt,
|
|
1057
1058
|
{
|
|
1058
1059
|
columns: yt,
|
|
1059
1060
|
tableData: gt,
|
|
@@ -1072,7 +1073,7 @@ function Ya() {
|
|
|
1072
1073
|
}
|
|
1073
1074
|
),
|
|
1074
1075
|
/* @__PURE__ */ a(
|
|
1075
|
-
|
|
1076
|
+
Rt,
|
|
1076
1077
|
{
|
|
1077
1078
|
title: "User Filter",
|
|
1078
1079
|
resetButtonLabel: "Reset",
|
|
@@ -1109,6 +1110,6 @@ function Ya() {
|
|
|
1109
1110
|
] });
|
|
1110
1111
|
}
|
|
1111
1112
|
export {
|
|
1112
|
-
|
|
1113
|
+
qa as default
|
|
1113
1114
|
};
|
|
1114
|
-
//# sourceMappingURL=UserList-
|
|
1115
|
+
//# sourceMappingURL=UserList-2gGuDgNa.js.map
|