@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.
Files changed (61) hide show
  1. package/dist/{AddFeatures-CTVs_Gr9.js → AddFeatures-CqE3v0BN.js} +2 -2
  2. package/dist/{AddFeatures-CTVs_Gr9.js.map → AddFeatures-CqE3v0BN.js.map} +1 -1
  3. package/dist/AddMenuConfiguration-BSQLl88V.js +6570 -0
  4. package/dist/AddMenuConfiguration-BSQLl88V.js.map +1 -0
  5. package/dist/AddMenuConfiguration.css +1 -1
  6. package/dist/{ChangePasswordModalCore-DONyFFlx.js → ChangePasswordModalCore-DTYWRTa-.js} +955 -952
  7. package/dist/ChangePasswordModalCore-DTYWRTa-.js.map +1 -0
  8. package/dist/{ConditionConfig-C3rF2wXU.js → ConditionConfig-DSsgGEXS.js} +2 -2
  9. package/dist/{ConditionConfig-C3rF2wXU.js.map → ConditionConfig-DSsgGEXS.js.map} +1 -1
  10. package/dist/FhirRawResourceList-ZZFd7gTX.js +550 -0
  11. package/dist/FhirRawResourceList-ZZFd7gTX.js.map +1 -0
  12. package/dist/FhirServerList-Dkq7Kbes.js +116 -0
  13. package/dist/FhirServerList-Dkq7Kbes.js.map +1 -0
  14. package/dist/FhirServerProfile-CUOwC6Wb.js +253 -0
  15. package/dist/FhirServerProfile-CUOwC6Wb.js.map +1 -0
  16. package/dist/FhirServerWizard-Db6Hm4bQ.js +161 -0
  17. package/dist/FhirServerWizard-Db6Hm4bQ.js.map +1 -0
  18. package/dist/{ImmunizationConfigurationBase-CTBoSuSz.js → ImmunizationConfigurationBase-BevKZx_l.js} +386 -302
  19. package/dist/ImmunizationConfigurationBase-BevKZx_l.js.map +1 -0
  20. package/dist/{ManageEventConfiguration-BntUc_YI.js → ManageEventConfiguration-DV3I5POA.js} +4 -4
  21. package/dist/{ManageEventConfiguration-BntUc_YI.js.map → ManageEventConfiguration-DV3I5POA.js.map} +1 -1
  22. package/dist/{ManageRole-CZAk-IlM.js → ManageRole-B9bs_T00.js} +116 -116
  23. package/dist/ManageRole-B9bs_T00.js.map +1 -0
  24. package/dist/{ManageUser-Gv38VHMu.js → ManageUser-AB3_Vfp_.js} +85 -84
  25. package/dist/{ManageUser-Gv38VHMu.js.map → ManageUser-AB3_Vfp_.js.map} +1 -1
  26. package/dist/{MobileMenuManagement-CV6QCeos.js → MobileMenuManagement-CVAKyKDa.js} +33 -32
  27. package/dist/MobileMenuManagement-CVAKyKDa.js.map +1 -0
  28. package/dist/{MobileTypeEventConfigModal-BNjZ8pnq.js → MobileTypeEventConfigModal-BxLympIO.js} +2 -2
  29. package/dist/{MobileTypeEventConfigModal-BNjZ8pnq.js.map → MobileTypeEventConfigModal-BxLympIO.js.map} +1 -1
  30. package/dist/{OtherTypeEventConfigModal-DiVhWDpG.js → OtherTypeEventConfigModal-BeG1GrUi.js} +94 -93
  31. package/dist/OtherTypeEventConfigModal-BeG1GrUi.js.map +1 -0
  32. package/dist/{RoleManagement-B9WgZGEj.js → RoleManagement-BIiW9uTq.js} +2 -2
  33. package/dist/{RoleManagement-B9WgZGEj.js.map → RoleManagement-BIiW9uTq.js.map} +1 -1
  34. package/dist/ServerFormFields-SLghoZ2z.js +136 -0
  35. package/dist/ServerFormFields-SLghoZ2z.js.map +1 -0
  36. package/dist/SyncDialog-BRGpHOE4.js +130 -0
  37. package/dist/SyncDialog-BRGpHOE4.js.map +1 -0
  38. package/dist/{TypeConfiguration-CupQxH9Y.js → TypeConfiguration-37wp-gsl.js} +2 -2
  39. package/dist/{TypeConfiguration-CupQxH9Y.js.map → TypeConfiguration-37wp-gsl.js.map} +1 -1
  40. package/dist/{UserList-BzHsbYel.js → UserList-2gGuDgNa.js} +38 -37
  41. package/dist/{UserList-BzHsbYel.js.map → UserList-2gGuDgNa.js.map} +1 -1
  42. package/dist/{UserListSkeleton-DhIJ5X3y.js → UserListSkeleton-BMKANCtW.js} +57 -93
  43. package/dist/UserListSkeleton-BMKANCtW.js.map +1 -0
  44. package/dist/Users-CsJ08Kjm.js +40 -0
  45. package/dist/Users-CsJ08Kjm.js.map +1 -0
  46. package/dist/dashboardLayoutUtils-Bt5HA96J.js +265 -0
  47. package/dist/dashboardLayoutUtils-Bt5HA96J.js.map +1 -0
  48. package/dist/index.css +1 -1
  49. package/dist/index.js +190 -134
  50. package/dist/index.js.map +1 -1
  51. package/dist/permissions-DEWACxJN.js +308 -0
  52. package/dist/permissions-DEWACxJN.js.map +1 -0
  53. package/package.json +1 -1
  54. package/dist/AddMenuConfiguration-DsnY0Rws.js +0 -2237
  55. package/dist/AddMenuConfiguration-DsnY0Rws.js.map +0 -1
  56. package/dist/ChangePasswordModalCore-DONyFFlx.js.map +0 -1
  57. package/dist/ImmunizationConfigurationBase-CTBoSuSz.js.map +0 -1
  58. package/dist/ManageRole-CZAk-IlM.js.map +0 -1
  59. package/dist/MobileMenuManagement-CV6QCeos.js.map +0 -1
  60. package/dist/OtherTypeEventConfigModal-DiVhWDpG.js.map +0 -1
  61. 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 { U as _t, a as wt, g as st, b as Bt, c as Lt, t as Mt, d as Rt, e as We } from "./UserListSkeleton-DhIJ5X3y.js";
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 $t from "@/hooks/usePagination.js";
6
- import { getAssignedFeatures as Ht } from "@/utils/feature.js";
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 Ft from "@/views/custom-components/CustomizedTable/CustomizedTableV2";
9
- import Vt from "@/views/custom-components/SideOverlay.jsx";
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 jt, lazy as Dt, useRef as Ze, useMemo as zt, useCallback as Yt } from "react";
12
- import { InputLabel as ke, Switch as qt, Button as Ue, Box as E, Card as Gt, Typography as et, TextField as Jt, CircularProgress as tt, Tooltip as Qt } from "@mui/material";
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 Kt, FormProvider as Pt } from "react-hook-form";
15
+ import { useForm as qt, FormProvider as Gt } from "react-hook-form";
16
16
  import rt from "@/hooks/useTrackEvent";
17
- import { showToast as Wt } from "@/common/toaster/toaster";
18
- import { useDispatch as it, useSelector as Xt } from "react-redux";
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 Zt } from "react-router";
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 = Dt(
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 = Kt({ mode: "onChange" }), ae = it(), u = ct(), {
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
- Wt({ message: `error : ${S == null ? void 0 : S.message}`, type: "error" }), M((g) => !g);
108
+ Jt({ message: `error : ${S == null ? void 0 : S.message}`, type: "error" }), M((g) => !g);
108
109
  }
109
110
  };
110
- return /* @__PURE__ */ a(Pt, { ...de, children: /* @__PURE__ */ p(
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(_t, { isLoading: X, children: /* @__PURE__ */ p(_, { className: "flex items-center", children: [
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
- qt,
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(jt, { children: /* @__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(wt, { isLoading: X, children: /* @__PURE__ */ p(_, { children: [
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 Ya() {
248
+ function qa() {
248
249
  var ze, Ye, qe, Ge, Je, Qe;
249
- const W = Zt(), M = rt(), [X, re] = d([]);
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 } = Xt((e) => e == null ? void 0 : e.Authenticate), [mt, we] = d(
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 = zt(() => $ == null ? void 0 : $.map((e, o) => {
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
- Qt,
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 Mt(u, { is_active: e }), B(0), F((c) => !c), T({
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 Rt({
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 = Yt(
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
- } = $t({
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 Ht("techo.manage.users");
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
- Gt,
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(Bt, { isLoading: ue, children: /* @__PURE__ */ p(
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
- Jt,
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(Lt, { 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
+ /* @__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
- Ft,
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
- Vt,
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
- Ya as default
1113
+ qa as default
1113
1114
  };
1114
- //# sourceMappingURL=UserList-BzHsbYel.js.map
1115
+ //# sourceMappingURL=UserList-2gGuDgNa.js.map