@argusoft/medplat-core 1.0.10 → 1.0.12
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/index-D6bNg8bx.js +66 -0
- package/dist/index-D6bNg8bx.js.map +1 -0
- package/dist/index.css +1 -1
- package/dist/index.js +99455 -445
- package/dist/index.js.map +1 -1
- package/package.json +4 -1
- package/dist/AccessRights-sgIhYR30.js +0 -1238
- package/dist/AccessRights-sgIhYR30.js.map +0 -1
- package/dist/AddEditQueryBuilder-BaZxS2Cm.js +0 -289
- package/dist/AddEditQueryBuilder-BaZxS2Cm.js.map +0 -1
- package/dist/AddEditQueryBuilder.css +0 -1
- package/dist/AddFeatures-DLbjDGei.js +0 -212
- package/dist/AddFeatures-DLbjDGei.js.map +0 -1
- package/dist/AddLabelModal-DE3ploGD.js +0 -734
- package/dist/AddLabelModal-DE3ploGD.js.map +0 -1
- package/dist/AddMenuConfiguration-QWfpcnuP.js +0 -2237
- package/dist/AddMenuConfiguration-QWfpcnuP.js.map +0 -1
- package/dist/AddMenuConfiguration.css +0 -1
- package/dist/AddRoleDrawer-ZK1eejxI.js +0 -453
- package/dist/AddRoleDrawer-ZK1eejxI.js.map +0 -1
- package/dist/AppModal-BgZyfrd-.js +0 -428
- package/dist/AppModal-BgZyfrd-.js.map +0 -1
- package/dist/ChangePasswordModal-MV7g8tkA.js +0 -176
- package/dist/ChangePasswordModal-MV7g8tkA.js.map +0 -1
- package/dist/ConditionConfig-GDCXIg3C.js +0 -395
- package/dist/ConditionConfig-GDCXIg3C.js.map +0 -1
- package/dist/ConditionConfig.css +0 -1
- package/dist/EntityManagement-D-x6Qzal.js +0 -50
- package/dist/EntityManagement-D-x6Qzal.js.map +0 -1
- package/dist/EventConfigurations-jGCJ4LqP.js +0 -384
- package/dist/EventConfigurations-jGCJ4LqP.js.map +0 -1
- package/dist/EventConfigurations.css +0 -1
- package/dist/EventsExceptionModal-BF6E1Np7.js +0 -200
- package/dist/EventsExceptionModal-BF6E1Np7.js.map +0 -1
- package/dist/EventsSkeleton-BN7_0IGs.js +0 -74
- package/dist/EventsSkeleton-BN7_0IGs.js.map +0 -1
- package/dist/FeatureMenu-BYSRoNm0.js +0 -249
- package/dist/FeatureMenu-BYSRoNm0.js.map +0 -1
- package/dist/Features-CKMmuqcs.js +0 -11
- package/dist/Features-CKMmuqcs.js.map +0 -1
- package/dist/FlywayQuery-Cx2sly6g.js +0 -169
- package/dist/FlywayQuery-Cx2sly6g.js.map +0 -1
- package/dist/ImmunizationConfigurationBase-DZ8EqXlF.js +0 -5166
- package/dist/ImmunizationConfigurationBase-DZ8EqXlF.js.map +0 -1
- package/dist/ImmunizationConfigurationBase.css +0 -1
- package/dist/ImmunizationConfigurationsList-CQnxWa09.js +0 -335
- package/dist/ImmunizationConfigurationsList-CQnxWa09.js.map +0 -1
- package/dist/ImmunizationSkeleton-D2tdv5k-.js +0 -186
- package/dist/ImmunizationSkeleton-D2tdv5k-.js.map +0 -1
- package/dist/LanguagesModal-rk6IGQwY.js +0 -394
- package/dist/LanguagesModal-rk6IGQwY.js.map +0 -1
- package/dist/ManageDynamicFeature-BKkCnQvF.js +0 -4189
- package/dist/ManageDynamicFeature-BKkCnQvF.js.map +0 -1
- package/dist/ManageEventConfiguration-BJxS2Su0.js +0 -1017
- package/dist/ManageEventConfiguration-BJxS2Su0.js.map +0 -1
- package/dist/ManageEventConfiguration.css +0 -1
- package/dist/ManageNotification-B4prX-9Z.js +0 -6819
- package/dist/ManageNotification-B4prX-9Z.js.map +0 -1
- package/dist/ManageRole-BjIIXAlK.js +0 -728
- package/dist/ManageRole-BjIIXAlK.js.map +0 -1
- package/dist/ManageTranslation-BTxvSYKb.js +0 -616
- package/dist/ManageTranslation-BTxvSYKb.js.map +0 -1
- package/dist/ManageTranslation.css +0 -1
- package/dist/ManageUser-PHiTNyF8.js +0 -2160
- package/dist/ManageUser-PHiTNyF8.js.map +0 -1
- package/dist/ManageUser.css +0 -1
- package/dist/MobileMenuManagement-DmQU5TTo.js +0 -108
- package/dist/MobileMenuManagement-DmQU5TTo.js.map +0 -1
- package/dist/MobileTypeEventConfigModal-ChhO_A4f.js +0 -783
- package/dist/MobileTypeEventConfigModal-ChhO_A4f.js.map +0 -1
- package/dist/NewServerManagement-5YcAtF-g.js +0 -1002
- package/dist/NewServerManagement-5YcAtF-g.js.map +0 -1
- package/dist/NotificationFlywayQuery-BY8Zzml_.js +0 -244
- package/dist/NotificationFlywayQuery-BY8Zzml_.js.map +0 -1
- package/dist/NotificationList-BkpOrCpM.js +0 -400
- package/dist/NotificationList-BkpOrCpM.js.map +0 -1
- package/dist/OtherTypeEventConfigModal-ZnCGWm9v.js +0 -1953
- package/dist/OtherTypeEventConfigModal-ZnCGWm9v.js.map +0 -1
- package/dist/QueryBuilder-Cus_mRwZ.js +0 -378
- package/dist/QueryBuilder-Cus_mRwZ.js.map +0 -1
- package/dist/QueryBuilder.css +0 -1
- package/dist/QueryManagement-DXA73N2j.js +0 -671
- package/dist/QueryManagement-DXA73N2j.js.map +0 -1
- package/dist/QueryManagement.css +0 -1
- package/dist/RoleManagement-v5Nyp1vr.js +0 -416
- package/dist/RoleManagement-v5Nyp1vr.js.map +0 -1
- package/dist/ServerSyncModal-uNjGCQJz.js +0 -869
- package/dist/ServerSyncModal-uNjGCQJz.js.map +0 -1
- package/dist/ShowFlywayQuery-DMsAbtOW.js +0 -130
- package/dist/ShowFlywayQuery-DMsAbtOW.js.map +0 -1
- package/dist/ShowFlywayQuery-DVRCd384.js +0 -259
- package/dist/ShowFlywayQuery-DVRCd384.js.map +0 -1
- package/dist/ShowQueryHistory-BDN0tzHg.js +0 -190
- package/dist/ShowQueryHistory-BDN0tzHg.js.map +0 -1
- package/dist/SubMenu-BHcSNSUF.js +0 -187
- package/dist/SubMenu-BHcSNSUF.js.map +0 -1
- package/dist/TableDetails-DzREeJkm.js +0 -1508
- package/dist/TableDetails-DzREeJkm.js.map +0 -1
- package/dist/TableList-B9hr05Hs.js +0 -428
- package/dist/TableList-B9hr05Hs.js.map +0 -1
- package/dist/TypeConfiguration-C-lk8Szs.js +0 -117
- package/dist/TypeConfiguration-C-lk8Szs.js.map +0 -1
- package/dist/UserList-BxB1tCwM.js +0 -13042
- package/dist/UserList-BxB1tCwM.js.map +0 -1
- package/dist/UserList.css +0 -1
- package/dist/UserListSkeleton-cglK2SaU.js +0 -184
- package/dist/UserListSkeleton-cglK2SaU.js.map +0 -1
- package/dist/WidgetList-BSApErov.js +0 -188
- package/dist/WidgetList-BSApErov.js.map +0 -1
- package/dist/_commonjsHelpers-BItOPCY9.js +0 -29
- package/dist/_commonjsHelpers-BItOPCY9.js.map +0 -1
- package/dist/i18next-CTOWN_jH.js +0 -1394
- package/dist/i18next-CTOWN_jH.js.map +0 -1
- package/dist/manageImmunization-B4swS745.js +0 -1204
- package/dist/manageImmunization-B4swS745.js.map +0 -1
- package/dist/manageImmunization.css +0 -1
package/dist/UserList.css
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
.gray-row{background-color:#f0f0f0}.white-row{background-color:#fff}.filter-form{margin:.625rem}.button{color:#fff!important;margin:.5rem!important}.close{background-color:gray!important}.search{background-color:#4caf50!important}
|
|
@@ -1,184 +0,0 @@
|
|
|
1
|
-
import { api as r } from "@/common/interceptors/AxiosInterceptor";
|
|
2
|
-
import { jsxs as s, jsx as e, Fragment as m } from "react/jsx-runtime";
|
|
3
|
-
import n from "prop-types";
|
|
4
|
-
import "react";
|
|
5
|
-
import { useSelector as d } from "react-redux";
|
|
6
|
-
import { getUseSkeleton as o } from "@/store/reducers/SkeletonReducer";
|
|
7
|
-
const v = (a) => r.get("user/retrievebycriteria", { params: a, showLoader: !1 }), S = (a, l) => r.put("user/toggle", a, { params: l }), k = (a) => r.post("user", a), j = (a) => r.get("user/generateLoginCode", { params: a }), L = (a, l) => r.get("role/byroleid", { params: a, ...l }), U = (a, l) => r.get("location/byroleid", { params: a, ...l }), $ = (a) => r.get(`user?userId=${a}`), T = (a) => r.get("translation/activeLanguages", { params: a }), I = (a) => r.get("location/locationtypes", { params: a }), D = ({ action: a, ...l }) => r.get(`user/${a}`, { params: { ...l }, showLoader: !1 }), F = (a) => r.put("user/changepassword", a, {
|
|
8
|
-
withCredentials: !0
|
|
9
|
-
// Important!
|
|
10
|
-
}), C = ({ locationIds: a, roleId: l, toBeAdded: t }) => a ? r.get(
|
|
11
|
-
`user/validateaoi?locationIds=${a}&roleId=${l}&toBeAdded=${t}`
|
|
12
|
-
) : r.get(`user/validateaoi?roleId=${l}&toBeAdded=${t}`), A = (a, l) => r.get(
|
|
13
|
-
`user/validateHealthInfra?healthInfraIds=${a}&toBeRemoved=${l}`
|
|
14
|
-
), B = (a, l) => {
|
|
15
|
-
const t = new FormData();
|
|
16
|
-
return t.append("userName", a), t.append("file", l), r.post("/doctors/signature", t, {
|
|
17
|
-
headers: {
|
|
18
|
-
"Content-Type": "multipart/form-data"
|
|
19
|
-
}
|
|
20
|
-
}).then((i) => i.data);
|
|
21
|
-
}, H = (a) => r.get(`/doctors/signature?doctorId=${a}`, {
|
|
22
|
-
responseType: "arraybuffer"
|
|
23
|
-
// <-- important
|
|
24
|
-
}).then((l) => l.data), c = ({ children: a, isLoading: l = !0 }) => !d(o) || !l ? a : /* @__PURE__ */ s("div", { className: "flex justify-between space-x-2 mb-4 mt-4", children: [
|
|
25
|
-
/* @__PURE__ */ e("div", { children: /* @__PURE__ */ e("div", { className: "w-40 h-10 bg-gray-300 animate-pulse rounded-md" }) }),
|
|
26
|
-
/* @__PURE__ */ s("div", { className: "flex space-x-4", children: [
|
|
27
|
-
/* @__PURE__ */ e("div", { className: "w-60 h-10 bg-gray-300 animate-pulse rounded-md" }),
|
|
28
|
-
/* @__PURE__ */ e("div", { className: "w-20 h-10 bg-gray-300 animate-pulse rounded-full" }),
|
|
29
|
-
/* @__PURE__ */ e("div", { className: "w-20 h-10 bg-gray-300 animate-pulse rounded-md" })
|
|
30
|
-
] })
|
|
31
|
-
] });
|
|
32
|
-
c.propTypes = {
|
|
33
|
-
children: n.any,
|
|
34
|
-
isLoading: n.any
|
|
35
|
-
};
|
|
36
|
-
const u = ({ children: a, isLoading: l = !0 }) => !d(o) || !l ? a : /* @__PURE__ */ e(m, { children: /* @__PURE__ */ e("div", { className: "flex flex-row", children: /* @__PURE__ */ s("div", { className: "flex flex-col space-y-4 p-6 overflow-y-auto w-full", children: [
|
|
37
|
-
/* @__PURE__ */ s("div", { className: "px-4 py-2 flex space-x-3 items-center justify-between ", children: [
|
|
38
|
-
/* @__PURE__ */ e("div", { className: "bg-gray-300 animate-pulse rounded-sm w-20 h-10" }),
|
|
39
|
-
/* @__PURE__ */ s("div", { className: "flex space-x-3", children: [
|
|
40
|
-
/* @__PURE__ */ e("div", { className: "bg-gray-300 animate-pulse rounded-sm w-40 h-10" }),
|
|
41
|
-
/* @__PURE__ */ e("div", { className: "bg-gray-300 animate-pulse rounded-sm w-40 h-10" })
|
|
42
|
-
] })
|
|
43
|
-
] }),
|
|
44
|
-
/* @__PURE__ */ s("div", { className: "flex flex-row justify-between space-x-4", children: [
|
|
45
|
-
/* @__PURE__ */ s("div", { className: "flex flex-row space-x-4 w-[50%]", children: [
|
|
46
|
-
/* @__PURE__ */ e("button", { className: "bg-gray-300 animate-pulse rounded-sm w-[50%] h-10 " }),
|
|
47
|
-
/* @__PURE__ */ e("button", { className: "bg-gray-300 animate-pulse rounded-sm w-[50%] h-10 " })
|
|
48
|
-
] }),
|
|
49
|
-
/* @__PURE__ */ e("button", { className: "bg-gray-300 animate-pulse rounded-sm w-[50%] h-10 " })
|
|
50
|
-
] }),
|
|
51
|
-
/* @__PURE__ */ s("div", { className: "flex flex-row justify-between space-x-4", children: [
|
|
52
|
-
/* @__PURE__ */ s("div", { className: "flex flex-row space-x-4 w-[50%]", children: [
|
|
53
|
-
/* @__PURE__ */ e("button", { className: "bg-gray-300 animate-pulse rounded-sm w-[33%] h-10 " }),
|
|
54
|
-
/* @__PURE__ */ e("button", { className: "bg-gray-300 animate-pulse rounded-sm w-[33%] h-10 " }),
|
|
55
|
-
/* @__PURE__ */ e("button", { className: "bg-gray-300 animate-pulse rounded-sm w-[33%] h-10 " })
|
|
56
|
-
] }),
|
|
57
|
-
/* @__PURE__ */ e("button", { className: "bg-gray-300 animate-pulse rounded-sm w-[50%] h-10 " })
|
|
58
|
-
] }),
|
|
59
|
-
/* @__PURE__ */ s("div", { className: "flex flex-row justify-between space-x-4", children: [
|
|
60
|
-
/* @__PURE__ */ s("div", { className: "flex flex-row space-x-4 w-[50%]", children: [
|
|
61
|
-
/* @__PURE__ */ e("button", { className: "bg-gray-300 animate-pulse rounded-sm w-[50%] h-10 " }),
|
|
62
|
-
/* @__PURE__ */ e("button", { className: "bg-gray-300 animate-pulse rounded-sm w-[50%] h-10 " })
|
|
63
|
-
] }),
|
|
64
|
-
/* @__PURE__ */ s("div", { className: "flex flex-row space-x-4 w-[50%]", children: [
|
|
65
|
-
/* @__PURE__ */ e("button", { className: "bg-gray-300 animate-pulse rounded-sm w-[50%] h-10 " }),
|
|
66
|
-
/* @__PURE__ */ e("button", { className: "bg-gray-300 animate-pulse rounded-sm w-[50%] h-10 " })
|
|
67
|
-
] }),
|
|
68
|
-
" "
|
|
69
|
-
] }),
|
|
70
|
-
/* @__PURE__ */ s("div", { className: "flex flex-row justify-between space-x-4", children: [
|
|
71
|
-
/* @__PURE__ */ s("div", { className: "flex flex-row space-x-4 w-[50%]", children: [
|
|
72
|
-
/* @__PURE__ */ e("button", { className: "bg-gray-300 animate-pulse rounded-sm w-[50%] h-10 " }),
|
|
73
|
-
/* @__PURE__ */ e("button", { className: "bg-gray-300 animate-pulse rounded-sm w-[50%] h-10 " })
|
|
74
|
-
] }),
|
|
75
|
-
/* @__PURE__ */ s("div", { className: "flex flex-row space-x-4 w-[50%]", children: [
|
|
76
|
-
/* @__PURE__ */ e("button", { className: "bg-gray-300 animate-pulse rounded-sm w-[50%] h-10 " }),
|
|
77
|
-
/* @__PURE__ */ e("button", { className: "bg-gray-300 animate-pulse rounded-sm w-[50%] h-10 " })
|
|
78
|
-
] }),
|
|
79
|
-
" "
|
|
80
|
-
] }),
|
|
81
|
-
/* @__PURE__ */ s("div", { className: "flex flex-row justify-between space-x-4", children: [
|
|
82
|
-
/* @__PURE__ */ s("div", { className: "flex flex-row space-x-4 w-[50%]", children: [
|
|
83
|
-
/* @__PURE__ */ e("button", { className: "bg-gray-300 animate-pulse rounded-sm w-[50%] h-10 " }),
|
|
84
|
-
/* @__PURE__ */ e("button", { className: "bg-gray-300 animate-pulse rounded-sm w-[50%] h-10 " })
|
|
85
|
-
] }),
|
|
86
|
-
/* @__PURE__ */ s("div", { className: "flex flex-row space-x-4 w-[50%]", children: [
|
|
87
|
-
/* @__PURE__ */ e("button", { className: "bg-gray-300 animate-pulse rounded-sm w-[50%] h-10 " }),
|
|
88
|
-
/* @__PURE__ */ e("button", { className: "bg-gray-300 animate-pulse rounded-sm w-[50%] h-10 " })
|
|
89
|
-
] }),
|
|
90
|
-
" "
|
|
91
|
-
] }),
|
|
92
|
-
/* @__PURE__ */ s("div", { className: "flex flex-row justify-between space-x-4", children: [
|
|
93
|
-
/* @__PURE__ */ s("div", { className: "flex flex-row space-x-4 w-[50%]", children: [
|
|
94
|
-
/* @__PURE__ */ e("button", { className: "bg-gray-300 animate-pulse rounded-sm w-[50%] h-10 " }),
|
|
95
|
-
/* @__PURE__ */ e("button", { className: "bg-gray-300 animate-pulse rounded-sm w-[50%] h-10 " })
|
|
96
|
-
] }),
|
|
97
|
-
/* @__PURE__ */ s("div", { className: "flex flex-row space-x-4 w-[50%]", children: [
|
|
98
|
-
/* @__PURE__ */ e("button", { className: "bg-gray-300 animate-pulse rounded-sm w-[50%] h-10 " }),
|
|
99
|
-
/* @__PURE__ */ e("button", { className: "bg-gray-300 animate-pulse rounded-sm w-[50%] h-10 " })
|
|
100
|
-
] }),
|
|
101
|
-
" "
|
|
102
|
-
] }),
|
|
103
|
-
/* @__PURE__ */ s("div", { className: "flex flex-col space-y-2", children: [
|
|
104
|
-
/* @__PURE__ */ e("div", { className: "bg-gray-300 animate-pulse rounded-sm w-40 h-10 " }),
|
|
105
|
-
/* @__PURE__ */ e("div", { className: "bg-gray-300 animate-pulse rounded-sm w-100 h-10 " })
|
|
106
|
-
] }),
|
|
107
|
-
/* @__PURE__ */ s("div", { className: "flex flex-row w-full justify-end space-x-3 p-3 ", children: [
|
|
108
|
-
/* @__PURE__ */ e("div", { className: "bg-gray-300 animate-pulse rounded-sm w-20 h-10 " }),
|
|
109
|
-
/* @__PURE__ */ e("div", { className: "bg-gray-300 animate-pulse rounded-sm w-20 h-10 " })
|
|
110
|
-
] })
|
|
111
|
-
] }) }) });
|
|
112
|
-
u.propTypes = {
|
|
113
|
-
children: n.any,
|
|
114
|
-
isLoading: n.any
|
|
115
|
-
};
|
|
116
|
-
const g = ({ children: a, isLoading: l = !0 }) => !d(o) || !l ? a : /* @__PURE__ */ s("div", { className: "grid grid-cols-1 sm:grid-cols-2 lg:grid-cols-4 gap-4 mt-4 mb-4", children: [
|
|
117
|
-
/* @__PURE__ */ e("div", { className: "h-20 bg-gray-300 animate-pulse rounded-md" }),
|
|
118
|
-
/* @__PURE__ */ e("div", { className: "h-20 bg-gray-300 animate-pulse rounded-md" }),
|
|
119
|
-
/* @__PURE__ */ e("div", { className: "h-20 bg-gray-300 animate-pulse rounded-md" }),
|
|
120
|
-
/* @__PURE__ */ e("div", { className: "h-20 bg-gray-300 animate-pulse rounded-md" })
|
|
121
|
-
] });
|
|
122
|
-
g.propTypes = {
|
|
123
|
-
children: n.any,
|
|
124
|
-
isLoading: n.any
|
|
125
|
-
};
|
|
126
|
-
const p = ({ children: a, isLoading: l = !0 }) => !d(o) || !l ? a : /* @__PURE__ */ s("div", { className: "flex flex-col space-y-3", children: [
|
|
127
|
-
/* @__PURE__ */ s("div", { className: "flex flex-col space-y-1", children: [
|
|
128
|
-
/* @__PURE__ */ e("div", { className: "animate-pulse bg-gray-300 rounded-sm w-40 h-10" }),
|
|
129
|
-
/* @__PURE__ */ e("div", { className: "animate-pulse bg-gray-300 rounded-sm w-full h-10" })
|
|
130
|
-
] }),
|
|
131
|
-
/* @__PURE__ */ s("div", { className: "flex flex-col space-y-1", children: [
|
|
132
|
-
/* @__PURE__ */ e("div", { className: "animate-pulse bg-gray-300 rounded-sm w-40 h-10" }),
|
|
133
|
-
/* @__PURE__ */ e("div", { className: "animate-pulse bg-gray-300 rounded-sm w-full h-10" })
|
|
134
|
-
] }),
|
|
135
|
-
/* @__PURE__ */ s("div", { className: "flex flex-row space-x-1 justify-end", children: [
|
|
136
|
-
/* @__PURE__ */ e("div", { className: "animate-pulse bg-gray-300 rounded-sm w-20 h-10" }),
|
|
137
|
-
/* @__PURE__ */ e("div", { className: "animate-pulse bg-gray-300 rounded-sm w-20 h-10" })
|
|
138
|
-
] })
|
|
139
|
-
] });
|
|
140
|
-
p.propTypes = {
|
|
141
|
-
children: n.any,
|
|
142
|
-
isLoading: n.any
|
|
143
|
-
};
|
|
144
|
-
const f = ({ children: a, isLoading: l = !0 }) => !d(o) || !l ? a : /* @__PURE__ */ s("div", { className: "flex flex-col space-y-3", children: [
|
|
145
|
-
/* @__PURE__ */ s("div", { className: "flex flex-col space-y-1", children: [
|
|
146
|
-
/* @__PURE__ */ e("div", { className: "animate-pulse bg-gray-300 rounded-sm w-40 h-10" }),
|
|
147
|
-
/* @__PURE__ */ e("div", { className: "animate-pulse bg-gray-300 rounded-sm w-full h-10" })
|
|
148
|
-
] }),
|
|
149
|
-
/* @__PURE__ */ s("div", { className: "flex flex-col space-y-1", children: [
|
|
150
|
-
/* @__PURE__ */ e("div", { className: "animate-pulse bg-gray-300 rounded-sm w-40 h-10" }),
|
|
151
|
-
/* @__PURE__ */ e("div", { className: "animate-pulse bg-gray-300 rounded-sm w-full h-10" })
|
|
152
|
-
] }),
|
|
153
|
-
/* @__PURE__ */ s("div", { className: "flex flex-row space-x-1 justify-end", children: [
|
|
154
|
-
/* @__PURE__ */ e("div", { className: "animate-pulse bg-gray-300 rounded-sm w-20 h-10" }),
|
|
155
|
-
/* @__PURE__ */ e("div", { className: "animate-pulse bg-gray-300 rounded-sm w-20 h-10" })
|
|
156
|
-
] })
|
|
157
|
-
] });
|
|
158
|
-
f.propTypes = {
|
|
159
|
-
children: n.any,
|
|
160
|
-
isLoading: n.any
|
|
161
|
-
};
|
|
162
|
-
export {
|
|
163
|
-
u as M,
|
|
164
|
-
f as U,
|
|
165
|
-
p as a,
|
|
166
|
-
c as b,
|
|
167
|
-
g as c,
|
|
168
|
-
j as d,
|
|
169
|
-
v as e,
|
|
170
|
-
T as f,
|
|
171
|
-
L as g,
|
|
172
|
-
$ as h,
|
|
173
|
-
U as i,
|
|
174
|
-
H as j,
|
|
175
|
-
D as k,
|
|
176
|
-
I as l,
|
|
177
|
-
A as m,
|
|
178
|
-
B as n,
|
|
179
|
-
F as o,
|
|
180
|
-
S as t,
|
|
181
|
-
k as u,
|
|
182
|
-
C as v
|
|
183
|
-
};
|
|
184
|
-
//# sourceMappingURL=UserListSkeleton-cglK2SaU.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"UserListSkeleton-cglK2SaU.js","sources":["../src/services/Users.js","../src/views/Users/Skeletons/UserListSkeleton.jsx"],"sourcesContent":["import { api } from \"@/common/interceptors/AxiosInterceptor\";\n\nexport const getUsersList = (params) =>\n api.get(\"user/retrievebycriteria\", { params, showLoader: false });\n\nexport const toggleUserStatus = (data, params) =>\n api.put(\"user/toggle\", data, { params });\n\nexport const updateUser = (data) => api.post(\"user\", data);\n\nexport const generateSOHCode = (params) =>\n api.get(\"user/generateLoginCode\", { params });\n\nexport const getRoles = (params, config) =>\n api.get(\"role/byroleid\", { params, ...config });\n\nexport const getRoleDetails = (params, config) =>\n api.get(\"location/byroleid\", { params, ...config });\nexport const getUserDetails = (params) => api.get(`user?userId=${params}`);\n\nexport const getPreferredLanguage = (params) =>\n api.get(\"translation/activeLanguages\", { params });\n\nexport const getBankNamesForPBI = (params) =>\n api.post(\"resource/getdatabycode\", params);\n\nexport const getLocationTypes = (params) =>\n api.get(\"location/locationtypes\", { params });\n\nexport const getLocation = (params) =>\n api.get(\"location/hierarchy\", { params });\n\nexport const checkBankAccountNumberExist = (params) =>\n api.post(\"resource/getdatabycode\", {\n params: { ...params },\n showLoader: false,\n });\n\n// export const retrieveInfraByRoleLocation = (params) =>\n// api.post(\"resource/getdatabycode\", params);\n\nexport const checkUserAction = ({ action, ...params }) =>\n api.get(`user/${action}`, { params: { ...params }, showLoader: false });\n\n// export const getResource = (params) => api.post(`resource/getdatabycode`, params, { showLoader: false });\n\nexport const changePassword = (params) =>\n api.put(\"user/changepassword\", params, {\n withCredentials: true, // Important!\n });\n\nexport const validateAOI = ({ locationIds, roleId, toBeAdded }) => {\n if (locationIds)\n return api.get(\n `user/validateaoi?locationIds=${locationIds}&roleId=${roleId}&toBeAdded=${toBeAdded}`\n );\n else\n return api.get(`user/validateaoi?roleId=${roleId}&toBeAdded=${toBeAdded}`);\n};\n\nexport const validateHealthInfra = (infraid, id) =>\n api.get(\n `user/validateHealthInfra?healthInfraIds=${infraid}&toBeRemoved=${id}`\n );\n\nexport const retrieveById = (userId) => api.get(`user/${userId}`);\n\nexport const retrieveByUserId = (userId) => api.get(`user/${userId}`);\n\nexport const uploadDoctorSignature = (userName, file) => {\n const formData = new FormData();\n formData.append(\"userName\", userName);\n formData.append(\"file\", file);\n\n return api\n .post(\"/doctors/signature\", formData, {\n headers: {\n \"Content-Type\": \"multipart/form-data\",\n },\n })\n .then((res) => res.data);\n};\n\nexport const getDoctorSignature = (id) => {\n return api\n .get(`/doctors/signature?doctorId=${id}`, {\n responseType: \"arraybuffer\", // <-- important\n })\n .then((res) => res.data);\n};\n","import PropTypes from \"prop-types\";\nimport React from \"react\";\nimport { useSelector } from \"react-redux\";\nimport { getUseSkeleton } from \"@/store/reducers/SkeletonReducer\";\n\nexport const UserListSkeleton = ({ children, isLoading = true }) => {\n const useSkeleton = useSelector(getUseSkeleton);\n if (!useSkeleton) {\n return children;\n }\n if (!isLoading) {\n return children;\n }\n return (\n <div className=\"flex justify-between space-x-2 mb-4 mt-4\">\n <div>\n <div className=\"w-40 h-10 bg-gray-300 animate-pulse rounded-md\"></div>\n </div>\n <div className=\"flex space-x-4\">\n <div className=\"w-60 h-10 bg-gray-300 animate-pulse rounded-md\"></div>\n {/* <div className=\"w-20 h-10 bg-gray-300 animate-pulse rounded-md\"></div> */}\n <div className=\"w-20 h-10 bg-gray-300 animate-pulse rounded-full\"></div>\n <div className=\"w-20 h-10 bg-gray-300 animate-pulse rounded-md\"></div>\n </div>\n </div>\n );\n};\n\nUserListSkeleton.propTypes = {\n children: PropTypes.any,\n isLoading: PropTypes.any,\n};\n\nexport const ManageUserSkeleton = ({ children, isLoading = true }) => {\n const useSkeleton = useSelector(getUseSkeleton);\n if (!useSkeleton) {\n return children;\n }\n if (!isLoading) {\n return children;\n }\n return (\n <>\n \n <div className=\"flex flex-row\">\n <div className=\"flex flex-col space-y-4 p-6 overflow-y-auto w-full\">\n <div className=\"px-4 py-2 flex space-x-3 items-center justify-between \">\n <div className=\"bg-gray-300 animate-pulse rounded-sm w-20 h-10\"></div>\n <div className=\"flex space-x-3\">\n <div className=\"bg-gray-300 animate-pulse rounded-sm w-40 h-10\"></div>\n <div className=\"bg-gray-300 animate-pulse rounded-sm w-40 h-10\"></div>\n </div>\n </div>\n <div className=\"flex flex-row justify-between space-x-4\">\n <div className=\"flex flex-row space-x-4 w-[50%]\">\n <button className=\"bg-gray-300 animate-pulse rounded-sm w-[50%] h-10 \"></button>\n <button className=\"bg-gray-300 animate-pulse rounded-sm w-[50%] h-10 \"></button>\n </div>\n\n <button className=\"bg-gray-300 animate-pulse rounded-sm w-[50%] h-10 \"></button>\n </div>\n <div className=\"flex flex-row justify-between space-x-4\">\n <div className=\"flex flex-row space-x-4 w-[50%]\">\n <button className=\"bg-gray-300 animate-pulse rounded-sm w-[33%] h-10 \"></button>\n <button className=\"bg-gray-300 animate-pulse rounded-sm w-[33%] h-10 \"></button>\n <button className=\"bg-gray-300 animate-pulse rounded-sm w-[33%] h-10 \"></button>\n </div>\n <button className=\"bg-gray-300 animate-pulse rounded-sm w-[50%] h-10 \"></button>\n </div>\n <div className=\"flex flex-row justify-between space-x-4\">\n <div className=\"flex flex-row space-x-4 w-[50%]\">\n <button className=\"bg-gray-300 animate-pulse rounded-sm w-[50%] h-10 \"></button>\n <button className=\"bg-gray-300 animate-pulse rounded-sm w-[50%] h-10 \"></button>\n </div>\n <div className=\"flex flex-row space-x-4 w-[50%]\">\n <button className=\"bg-gray-300 animate-pulse rounded-sm w-[50%] h-10 \"></button>\n <button className=\"bg-gray-300 animate-pulse rounded-sm w-[50%] h-10 \"></button>\n </div>{\" \"}\n </div>\n <div className=\"flex flex-row justify-between space-x-4\">\n <div className=\"flex flex-row space-x-4 w-[50%]\">\n <button className=\"bg-gray-300 animate-pulse rounded-sm w-[50%] h-10 \"></button>\n <button className=\"bg-gray-300 animate-pulse rounded-sm w-[50%] h-10 \"></button>\n </div>\n <div className=\"flex flex-row space-x-4 w-[50%]\">\n <button className=\"bg-gray-300 animate-pulse rounded-sm w-[50%] h-10 \"></button>\n <button className=\"bg-gray-300 animate-pulse rounded-sm w-[50%] h-10 \"></button>\n </div>{\" \"}\n </div>\n <div className=\"flex flex-row justify-between space-x-4\">\n <div className=\"flex flex-row space-x-4 w-[50%]\">\n <button className=\"bg-gray-300 animate-pulse rounded-sm w-[50%] h-10 \"></button>\n <button className=\"bg-gray-300 animate-pulse rounded-sm w-[50%] h-10 \"></button>\n </div>\n <div className=\"flex flex-row space-x-4 w-[50%]\">\n <button className=\"bg-gray-300 animate-pulse rounded-sm w-[50%] h-10 \"></button>\n <button className=\"bg-gray-300 animate-pulse rounded-sm w-[50%] h-10 \"></button>\n </div>{\" \"}\n </div>\n <div className=\"flex flex-row justify-between space-x-4\">\n <div className=\"flex flex-row space-x-4 w-[50%]\">\n <button className=\"bg-gray-300 animate-pulse rounded-sm w-[50%] h-10 \"></button>\n <button className=\"bg-gray-300 animate-pulse rounded-sm w-[50%] h-10 \"></button>\n </div>\n <div className=\"flex flex-row space-x-4 w-[50%]\">\n <button className=\"bg-gray-300 animate-pulse rounded-sm w-[50%] h-10 \"></button>\n <button className=\"bg-gray-300 animate-pulse rounded-sm w-[50%] h-10 \"></button>\n </div>{\" \"}\n </div>\n <div className=\"flex flex-col space-y-2\">\n <div className=\"bg-gray-300 animate-pulse rounded-sm w-40 h-10 \"></div>\n <div className=\"bg-gray-300 animate-pulse rounded-sm w-100 h-10 \"></div>\n </div>\n <div className=\"flex flex-row w-full justify-end space-x-3 p-3 \">\n <div className=\"bg-gray-300 animate-pulse rounded-sm w-20 h-10 \"></div>\n <div className=\"bg-gray-300 animate-pulse rounded-sm w-20 h-10 \"></div>\n </div>\n \n </div>\n </div>\n </>\n );\n};\n\nManageUserSkeleton.propTypes = {\n children: PropTypes.any,\n isLoading: PropTypes.any,\n};\n\nexport const UserStatsSkeleton = ({ children, isLoading = true }) => {\n const useSkeleton = useSelector(getUseSkeleton);\n if (!useSkeleton) {\n return children;\n }\n if (!isLoading) {\n return children;\n }\n return (\n <div className=\"grid grid-cols-1 sm:grid-cols-2 lg:grid-cols-4 gap-4 mt-4 mb-4\">\n <div className=\"h-20 bg-gray-300 animate-pulse rounded-md\"></div>\n <div className=\"h-20 bg-gray-300 animate-pulse rounded-md\"></div>\n <div className=\"h-20 bg-gray-300 animate-pulse rounded-md\"></div>\n <div className=\"h-20 bg-gray-300 animate-pulse rounded-md\"></div>\n </div>\n );\n};\n\nUserStatsSkeleton.propTypes = {\n children: PropTypes.any,\n isLoading: PropTypes.any,\n};\n\n\nexport const UserFilterFormSkeleton = ({ children, isLoading = true }) => {\n const useSkeleton = useSelector(getUseSkeleton);\n if (!useSkeleton) {\n return children;\n }\n if (!isLoading) {\n return children;\n }\n return (\n <div className=\"flex flex-col space-y-3\">\n <div className=\"flex flex-col space-y-1\">\n <div className=\"animate-pulse bg-gray-300 rounded-sm w-40 h-10\" />\n <div className=\"animate-pulse bg-gray-300 rounded-sm w-full h-10\" />\n </div>\n <div className=\"flex flex-col space-y-1\">\n <div className=\"animate-pulse bg-gray-300 rounded-sm w-40 h-10\" />\n <div className=\"animate-pulse bg-gray-300 rounded-sm w-full h-10\" />\n </div>\n <div className=\"flex flex-row space-x-1 justify-end\">\n <div className=\"animate-pulse bg-gray-300 rounded-sm w-20 h-10\" />\n <div className=\"animate-pulse bg-gray-300 rounded-sm w-20 h-10\" />\n </div>\n </div>\n );\n};\n\nUserFilterFormSkeleton.propTypes = {\n children: PropTypes.any,\n isLoading: PropTypes.any,\n};\n\nexport const UserFilterFormSwitchButtonSkeleton = ({ children, isLoading = true }) => {\n const useSkeleton = useSelector(getUseSkeleton);\n if (!useSkeleton) {\n return children;\n }\n if (!isLoading) {\n return children;\n }\n return (\n <div className=\"flex flex-col space-y-3\">\n <div className=\"flex flex-col space-y-1\">\n <div className=\"animate-pulse bg-gray-300 rounded-sm w-40 h-10\" />\n <div className=\"animate-pulse bg-gray-300 rounded-sm w-full h-10\" />\n </div>\n <div className=\"flex flex-col space-y-1\">\n <div className=\"animate-pulse bg-gray-300 rounded-sm w-40 h-10\" />\n <div className=\"animate-pulse bg-gray-300 rounded-sm w-full h-10\" />\n </div>\n <div className=\"flex flex-row space-x-1 justify-end\">\n <div className=\"animate-pulse bg-gray-300 rounded-sm w-20 h-10\" />\n <div className=\"animate-pulse bg-gray-300 rounded-sm w-20 h-10\" />\n </div>\n </div>\n );\n};\n\nUserFilterFormSwitchButtonSkeleton.propTypes = {\n children: PropTypes.any,\n isLoading: PropTypes.any,\n};\n"],"names":["getUsersList","params","api","toggleUserStatus","data","updateUser","generateSOHCode","getRoles","config","getRoleDetails","getUserDetails","getPreferredLanguage","getLocationTypes","checkUserAction","action","changePassword","validateAOI","locationIds","roleId","toBeAdded","validateHealthInfra","infraid","id","uploadDoctorSignature","userName","file","formData","res","getDoctorSignature","UserListSkeleton","children","isLoading","useSelector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KAI1C,CAACF,IACID,IAGP,gBAAAI,EAAC,OAAA,EAAI,WAAU,2BACb,UAAA;AAAA,EAAA,gBAAAA,EAAC,OAAA,EAAI,WAAU,2BACb,UAAA;AAAA,IAAA,gBAAAC,EAAC,OAAA,EAAI,WAAU,iDAAA,CAAiD;AAAA,IAChE,gBAAAA,EAAC,OAAA,EAAI,WAAU,mDAAA,CAAmD;AAAA,EAAA,GACpE;AAAA,EACA,gBAAAD,EAAC,OAAA,EAAI,WAAU,2BACb,UAAA;AAAA,IAAA,gBAAAC,EAAC,OAAA,EAAI,WAAU,iDAAA,CAAiD;AAAA,IAChE,gBAAAA,EAAC,OAAA,EAAI,WAAU,mDAAA,CAAmD;AAAA,EAAA,GACpE;AAAA,EACA,gBAAAD,EAAC,OAAA,EAAI,WAAU,uCACb,UAAA;AAAA,IAAA,gBAAAC,EAAC,OAAA,EAAI,WAAU,iDAAA,CAAiD;AAAA,IAChE,gBAAAA,EAAC,OAAA,EAAI,WAAU,iDAAA,CAAiD;AAAA,EAAA,EAAA,CAClE;AAAA,GACF;AAIJM,EAAmC,YAAY;AAAA,EAC7C,UAAUL,EAAU;AAAA,EACpB,WAAWA,EAAU;AACvB;"}
|
|
@@ -1,188 +0,0 @@
|
|
|
1
|
-
import { jsxs as n, jsx as a, Fragment as R } from "react/jsx-runtime";
|
|
2
|
-
import { Button as W, debounce as j, Card as F, Typography as I, TextField as P, TableContainer as _ } from "@mui/material";
|
|
3
|
-
import { Grid as r } from "@mui/system";
|
|
4
|
-
import { useTranslateProvider as H } from "@/common/languageTranslator/TranslationContext";
|
|
5
|
-
import { getNotifications as M, getRoleList as Q } from "@/common/services/GlobalApis.js";
|
|
6
|
-
import { useState as s, useCallback as G, useEffect as O, Suspense as U, lazy as q } from "react";
|
|
7
|
-
import J from "@/hooks/useTrackEvent";
|
|
8
|
-
import K from "@/views/custom-components/CustomizedTable/CustomizedTableV2";
|
|
9
|
-
import { useSelector as V } from "react-redux";
|
|
10
|
-
import { getUseSkeleton as X } from "@/store/reducers/SkeletonReducer";
|
|
11
|
-
const Y = () => V(X) ? /* @__PURE__ */ n("div", { className: "flex flex-col gap-2 mt-6 w-full", children: [
|
|
12
|
-
/* @__PURE__ */ n("div", { className: "flex space-between justify-between m-[0px]", children: [
|
|
13
|
-
/* @__PURE__ */ a("div", { className: "bg-gray-300 animate-pulse rounded-sm w-[130px] h-[40px]" }),
|
|
14
|
-
/* @__PURE__ */ n("div", { className: "flex", children: [
|
|
15
|
-
/* @__PURE__ */ a("div", { className: "bg-gray-300 animate-pulse rounded-sm w-[150px] h-[40px] mx-[5px]" }),
|
|
16
|
-
/* @__PURE__ */ a("div", { className: "bg-gray-300 animate-pulse rounded-sm w-[100px] h-[40px]" })
|
|
17
|
-
] })
|
|
18
|
-
] }),
|
|
19
|
-
/* @__PURE__ */ a("div", { className: "bg-gray-300 animate-pulse rounded-sm w-full h-100" })
|
|
20
|
-
] }) : null, Z = q(() => import("./AddRoleDrawer-ZK1eejxI.js"));
|
|
21
|
-
function de() {
|
|
22
|
-
const [f, w] = s(""), [m, N] = s({}), [v, C] = s([]), [c, k] = s({}), { translate: p } = H(), u = J(), [S, g] = s([]), [h, d] = s(!1), [x, b] = s(!1), T = [
|
|
23
|
-
{ field: "notificationName", label: "Name", align: "left" },
|
|
24
|
-
{ field: "roles", label: "Action By", align: "left" },
|
|
25
|
-
{
|
|
26
|
-
field: "Actions",
|
|
27
|
-
label: "Actions",
|
|
28
|
-
align: "left"
|
|
29
|
-
}
|
|
30
|
-
], D = (t) => {
|
|
31
|
-
b(!0), C(t);
|
|
32
|
-
}, z = [
|
|
33
|
-
{
|
|
34
|
-
label: "",
|
|
35
|
-
icon: /* @__PURE__ */ a(
|
|
36
|
-
W,
|
|
37
|
-
{
|
|
38
|
-
size: "small",
|
|
39
|
-
variant: "contained",
|
|
40
|
-
className: "text-[10px]",
|
|
41
|
-
"data-testid": "widgetlist-button-assign",
|
|
42
|
-
children: p("Assign")
|
|
43
|
-
}
|
|
44
|
-
),
|
|
45
|
-
onClick: D
|
|
46
|
-
}
|
|
47
|
-
], L = G(
|
|
48
|
-
j((t) => {
|
|
49
|
-
const i = m.filter(
|
|
50
|
-
(l) => {
|
|
51
|
-
var e;
|
|
52
|
-
return (e = l.notificationName) == null ? void 0 : e.toLowerCase().includes(t);
|
|
53
|
-
}
|
|
54
|
-
);
|
|
55
|
-
u("search_tracking", {
|
|
56
|
-
searchTerm: t,
|
|
57
|
-
results_count: i.length,
|
|
58
|
-
search_type: "Page Search"
|
|
59
|
-
}), g(i);
|
|
60
|
-
}, 500),
|
|
61
|
-
[m, u]
|
|
62
|
-
), B = (t) => {
|
|
63
|
-
const i = t.target.value.toLowerCase();
|
|
64
|
-
w(i), L(i);
|
|
65
|
-
}, y = async () => {
|
|
66
|
-
try {
|
|
67
|
-
d((e) => !e);
|
|
68
|
-
let t = c;
|
|
69
|
-
const { data: i } = await M();
|
|
70
|
-
if (!c.length) {
|
|
71
|
-
const { data: e } = await Q();
|
|
72
|
-
t = e, k(e);
|
|
73
|
-
}
|
|
74
|
-
const l = i.map((e) => {
|
|
75
|
-
const A = e == null ? void 0 : e.roles.map((o) => t.find((E) => E.id === o)).filter((o) => o !== void 0).map((o) => o.name);
|
|
76
|
-
return {
|
|
77
|
-
...e,
|
|
78
|
-
roles: A
|
|
79
|
-
};
|
|
80
|
-
});
|
|
81
|
-
N(
|
|
82
|
-
l.filter((e) => e.notificationType === "WEB")
|
|
83
|
-
), g(
|
|
84
|
-
l.filter((e) => e.notificationType === "WEB")
|
|
85
|
-
), d((e) => !e);
|
|
86
|
-
} catch (t) {
|
|
87
|
-
console.error(t), d((i) => !i);
|
|
88
|
-
}
|
|
89
|
-
};
|
|
90
|
-
return O(() => {
|
|
91
|
-
y();
|
|
92
|
-
}, []), /* @__PURE__ */ a(
|
|
93
|
-
F,
|
|
94
|
-
{
|
|
95
|
-
variant: "elevation",
|
|
96
|
-
container: !0,
|
|
97
|
-
className: "mt-6 p-3 flex flex-col space-y-3 shadow-xl",
|
|
98
|
-
children: /* @__PURE__ */ n(r, { container: !0, "data-testid": "widgetlist-container", children: [
|
|
99
|
-
/* @__PURE__ */ a(U, { children: x && /* @__PURE__ */ a(
|
|
100
|
-
Z,
|
|
101
|
-
{
|
|
102
|
-
open: x,
|
|
103
|
-
handleClose: async (t) => {
|
|
104
|
-
b(!1), t && y();
|
|
105
|
-
},
|
|
106
|
-
data: v,
|
|
107
|
-
roleData: c
|
|
108
|
-
}
|
|
109
|
-
) }),
|
|
110
|
-
h ? /* @__PURE__ */ a(Y, {}) : /* @__PURE__ */ n(R, { children: [
|
|
111
|
-
/* @__PURE__ */ n(
|
|
112
|
-
r,
|
|
113
|
-
{
|
|
114
|
-
container: !0,
|
|
115
|
-
size: { xs: 12 },
|
|
116
|
-
className: "flex justify-between items-center",
|
|
117
|
-
children: [
|
|
118
|
-
/* @__PURE__ */ a(r, { children: /* @__PURE__ */ a(
|
|
119
|
-
I,
|
|
120
|
-
{
|
|
121
|
-
variant: "body2",
|
|
122
|
-
className: "font-bold font-sans text-lg text-customBlue uppercase",
|
|
123
|
-
"data-testid": "notification-list-typography-title",
|
|
124
|
-
children: p("Widget Management")
|
|
125
|
-
}
|
|
126
|
-
) }),
|
|
127
|
-
/* @__PURE__ */ a(
|
|
128
|
-
P,
|
|
129
|
-
{
|
|
130
|
-
name: "searchQuery",
|
|
131
|
-
id: "searchQuery",
|
|
132
|
-
placeholder: "Search Text",
|
|
133
|
-
size: "small",
|
|
134
|
-
onChange: B,
|
|
135
|
-
value: f,
|
|
136
|
-
"data-testid": "widgetlist-textfield-search",
|
|
137
|
-
slotProps: {
|
|
138
|
-
input: {
|
|
139
|
-
className: "custom-input-root"
|
|
140
|
-
}
|
|
141
|
-
},
|
|
142
|
-
sx: {
|
|
143
|
-
"& .MuiInputBase-root": {
|
|
144
|
-
backgroundColor: (t) => t.palette.background.paper
|
|
145
|
-
}
|
|
146
|
-
}
|
|
147
|
-
}
|
|
148
|
-
)
|
|
149
|
-
]
|
|
150
|
-
}
|
|
151
|
-
),
|
|
152
|
-
/* @__PURE__ */ a(
|
|
153
|
-
r,
|
|
154
|
-
{
|
|
155
|
-
size: { xs: 12 },
|
|
156
|
-
mt: 2,
|
|
157
|
-
"data-testid": "widgetlist-table-container",
|
|
158
|
-
children: /* @__PURE__ */ a(
|
|
159
|
-
_,
|
|
160
|
-
{
|
|
161
|
-
component: "paper",
|
|
162
|
-
sx: { borderRadius: "12px" },
|
|
163
|
-
"data-testid": "widgetlist-table-paper",
|
|
164
|
-
children: /* @__PURE__ */ a(
|
|
165
|
-
K,
|
|
166
|
-
{
|
|
167
|
-
columns: T,
|
|
168
|
-
actions: z,
|
|
169
|
-
tableData: S,
|
|
170
|
-
paginationConfig: { pagination: !1 },
|
|
171
|
-
dataTestId: "widgetlist-table-customized",
|
|
172
|
-
isLoading: h,
|
|
173
|
-
styleConfig: { tableStyle: { maxHeight: 55 } }
|
|
174
|
-
}
|
|
175
|
-
)
|
|
176
|
-
}
|
|
177
|
-
)
|
|
178
|
-
}
|
|
179
|
-
)
|
|
180
|
-
] })
|
|
181
|
-
] })
|
|
182
|
-
}
|
|
183
|
-
);
|
|
184
|
-
}
|
|
185
|
-
export {
|
|
186
|
-
de as default
|
|
187
|
-
};
|
|
188
|
-
//# sourceMappingURL=WidgetList-BSApErov.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"WidgetList-BSApErov.js","sources":["../src/views/Widgets/Skeletons/WidgetListSkeleton.jsx","../src/views/Widgets/WidgetList.jsx"],"sourcesContent":["import React from \"react\";\nimport { useSelector } from \"react-redux\";\nimport { getUseSkeleton } from \"@/store/reducers/SkeletonReducer\";\n\nexport const WidgetListSkeleton = () => {\n const useSkeleton = useSelector(getUseSkeleton);\n if (!useSkeleton) {\n return null;\n }\n return (\n <div className=\"flex flex-col gap-2 mt-6 w-full\">\n <div className=\"flex space-between justify-between m-[0px]\">\n <div className=\"bg-gray-300 animate-pulse rounded-sm w-[130px] h-[40px]\"></div>\n <div className=\"flex\">\n <div className=\"bg-gray-300 animate-pulse rounded-sm w-[150px] h-[40px] mx-[5px]\"></div>\n <div className=\"bg-gray-300 animate-pulse rounded-sm w-[100px] h-[40px]\"></div>\n </div>\n </div>\n\n <div className=\"bg-gray-300 animate-pulse rounded-sm w-full h-100\"></div>\n </div>\n );\n};\n","import {\n Button,\n Card,\n debounce,\n TableContainer,\n TextField,\n Typography,\n} from \"@mui/material\";\nimport { Grid } from \"@mui/system\";\n\nimport { useTranslateProvider } from \"@/common/languageTranslator/TranslationContext\";\nimport { getRoleList, getNotifications } from \"@/common/services/GlobalApis.js\";\nimport React, { lazy, Suspense, useCallback, useEffect, useState } from \"react\";\nconst AddRoleDrawer = lazy(() => import(\"./AddRoleDrawer.jsx\"));\n\nimport useTrackEvent from \"@/hooks/useTrackEvent\";\nimport CustomizedTable from \"@/views/custom-components/CustomizedTable/CustomizedTableV2\";\nimport { WidgetListSkeleton } from \"./Skeletons/WidgetListSkeleton\";\n\nexport default function WidgetList() {\n const [search, setSearch] = useState(\"\");\n const [notifications, setNotifications] = useState({});\n const [notificationData, setNotificationData] = useState([]);\n const [roleData, setRoleData] = useState({});\n const { translate } = useTranslateProvider();\n const trackEvent = useTrackEvent();\n const [filteredNotifications, setFilteredNotifications] = useState([]);\n const [isLoading, setIsLoading] = useState(false);\n\n const [open, setOpen] = useState(false);\n const columns = [\n { field: \"notificationName\", label: \"Name\", align: \"left\" },\n { field: \"roles\", label: \"Action By\", align: \"left\" },\n {\n field: \"Actions\",\n label: \"Actions\",\n align: \"left\",\n },\n ];\n\n const assignRole = (e) => {\n setOpen(true);\n setNotificationData(e);\n };\n\n const actions = [\n {\n label: \"\",\n icon: (\n <Button\n size=\"small\"\n variant=\"contained\"\n className=\"text-[10px]\"\n data-testid=\"widgetlist-button-assign\"\n >\n {translate(\"Assign\")}\n </Button>\n ),\n onClick: assignRole,\n },\n ];\n const debouncedFilter = useCallback(\n debounce((searchValue) => {\n const filteredData = notifications.filter((notification) =>\n notification.notificationName?.toLowerCase().includes(searchValue)\n );\n trackEvent(\"search_tracking\", {\n searchTerm: searchValue,\n results_count: filteredData.length,\n search_type: \"Page Search\",\n });\n setFilteredNotifications(filteredData);\n }, 500),\n [notifications, trackEvent]\n );\n\n const onChangeHandler = (e) => {\n const searchValue = e.target.value.toLowerCase();\n setSearch(searchValue);\n debouncedFilter(searchValue);\n };\n\n const loadInitialData = async () => {\n try {\n setIsLoading((cur) => !cur);\n let roleDetails = roleData;\n const { data: widgets } = await getNotifications();\n if (!roleData.length) {\n const { data } = await getRoleList();\n roleDetails = data;\n setRoleData(data);\n }\n const updatedData = widgets.map((item) => {\n const roles = item?.roles\n .map((id) => roleDetails.find((role) => role.id === id))\n .filter((role) => role !== undefined)\n .map((role) => role.name);\n return {\n ...item,\n roles: roles,\n };\n });\n setNotifications(\n updatedData.filter((item) => item.notificationType === \"WEB\")\n );\n setFilteredNotifications(\n updatedData.filter((item) => item.notificationType === \"WEB\")\n );\n setIsLoading((cur) => !cur);\n } catch (error) {\n console.error(error);\n setIsLoading((cur) => !cur);\n }\n };\n useEffect(() => {\n loadInitialData();\n }, []);\n\n const handleClose = async (isUpdate) => {\n setOpen(false);\n if (isUpdate) loadInitialData();\n };\n\n return (\n <Card\n variant=\"elevation\"\n container\n className=\"mt-6 p-3 flex flex-col space-y-3 shadow-xl\"\n >\n <Grid container data-testid=\"widgetlist-container\">\n <Suspense>\n {open && (\n <AddRoleDrawer\n open={open}\n handleClose={handleClose}\n data={notificationData}\n roleData={roleData}\n />\n )}\n </Suspense>\n {isLoading ? (\n <WidgetListSkeleton />\n ) : (\n <>\n <Grid\n container\n size={{ xs: 12 }}\n className=\"flex justify-between items-center\"\n >\n <Grid>\n <Typography\n variant=\"body2\"\n className=\"font-bold font-sans text-lg text-customBlue uppercase\"\n data-testid=\"notification-list-typography-title\"\n >\n {translate(\"Widget Management\")}\n </Typography>\n </Grid>\n <TextField\n name=\"searchQuery\"\n id=\"searchQuery\"\n placeholder=\"Search Text\"\n size=\"small\"\n onChange={onChangeHandler}\n value={search}\n data-testid=\"widgetlist-textfield-search\"\n slotProps={{\n input: {\n className: \"custom-input-root\",\n },\n }}\n sx={{\n \"& .MuiInputBase-root\": {\n backgroundColor: (theme) => theme.palette.background.paper,\n },\n }}\n />\n </Grid>\n <Grid\n size={{ xs: 12 }}\n mt={2}\n data-testid=\"widgetlist-table-container\"\n >\n <TableContainer\n component={\"paper\"}\n sx={{ borderRadius: \"12px\" }}\n data-testid=\"widgetlist-table-paper\"\n >\n <CustomizedTable\n columns={columns}\n actions={actions}\n tableData={filteredNotifications}\n paginationConfig={{ pagination: false }}\n dataTestId=\"widgetlist-table-customized\"\n isLoading={isLoading}\n styleConfig={{ tableStyle: { maxHeight: 55 } }}\n />\n </TableContainer>\n </Grid>\n </>\n )}\n </Grid>\n </Card>\n );\n}\n"],"names":["WidgetListSkeleton","useSelector","getUseSkeleton","jsxs","jsx","AddRoleDrawer","lazy","WidgetList","search","setSearch","useState","notifications","setNotifications","notificationData","setNotificationData","roleData","setRoleData","translate","useTranslateProvider","trackEvent","useTrackEvent","filteredNotifications","setFilteredNotifications","isLoading","setIsLoading","open","setOpen","columns","assignRole","e","actions","Button","debouncedFilter","useCallback","debounce","searchValue","filteredData","notification","_a","onChangeHandler","loadInitialData","cur","roleDetails","widgets","getNotifications","data","getRoleList","updatedData","item","roles","id","role","error","useEffect","Card","Grid","Suspense","isUpdate","Fragment","Typography","TextField","theme","TableContainer","CustomizedTable"],"mappings":";;;;;;;;;;AAIO,MAAMA,IAAqB,MACZC,EAAYC,CAAc,IAK5C,gBAAAC,EAAC,OAAA,EAAI,WAAU,mCACb,UAAA;AAAA,EAAA,gBAAAA,EAAC,OAAA,EAAI,WAAU,8CACb,UAAA;AAAA,IAAA,gBAAAC,EAAC,OAAA,EAAI,WAAU,0DAAA,CAA0D;AAAA,IACzE,gBAAAD,EAAC,OAAA,EAAI,WAAU,QACb,UAAA;AAAA,MAAA,gBAAA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,oBACH,aAAY;AAAA,oBACZ,MAAK;AAAA,oBACL,UAAUrB;AAAA,oBACV,OAAO/B;AAAA,oBACP,eAAY;AAAA,oBACZ,WAAW;AAAA,sBACT,OAAO;AAAA,wBACL,WAAW;AAAA,sBAAA;AAAA,oBACb;AAAA,oBAEF,IAAI;AAAA,sBACF,wBAAwB;AAAA,wBACtB,iBAAiB,CAACqD,MAAUA,EAAM,QAAQ,WAAW;AAAA,sBAAA;AAAA,oBACvD;AAAA,kBACF;AAAA,gBAAA;AAAA,cACF;AAAA,YAAA;AAAA,UAAA;AAAA,UAEF,gBAAAzD;AAAA,YAACmD;AAAA,YAAA;AAAA,cACC,MAAM,EAAE,IAAI,GAAA;AAAA,cACZ,IAAI;AAAA,cACJ,eAAY;AAAA,cAEZ,UAAA,gBAAAnD;AAAA,gBAAC0D;AAAA,gBAAA;AAAA,kBACC,WAAW;AAAA,kBACX,IAAI,EAAE,cAAc,OAAA;AAAA,kBACpB,eAAY;AAAA,kBAEZ,UAAA,gBAAA1D;AAAA,oBAAC2D;AAAA,oBAAA;AAAA,sBACC,SAAApC;AAAA,sBACA,SAAAG;AAAA,sBACA,WAAWT;AAAA,sBACX,kBAAkB,EAAE,YAAY,GAAA;AAAA,sBAChC,YAAW;AAAA,sBACX,WAAAE;AAAA,sBACA,aAAa,EAAE,YAAY,EAAE,WAAW,KAAG;AAAA,oBAAE;AAAA,kBAAA;AAAA,gBAC/C;AAAA,cAAA;AAAA,YACF;AAAA,UAAA;AAAA,QACF,EAAA,CACF;AAAA,MAAA,EAAA,CAEJ;AAAA,IAAA;AAAA,EAAA;AAGN;"}
|
|
@@ -1,29 +0,0 @@
|
|
|
1
|
-
var u = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : typeof global < "u" ? global : typeof self < "u" ? self : {};
|
|
2
|
-
function f(e) {
|
|
3
|
-
return e && e.__esModule && Object.prototype.hasOwnProperty.call(e, "default") ? e.default : e;
|
|
4
|
-
}
|
|
5
|
-
function l(e) {
|
|
6
|
-
if (Object.prototype.hasOwnProperty.call(e, "__esModule")) return e;
|
|
7
|
-
var r = e.default;
|
|
8
|
-
if (typeof r == "function") {
|
|
9
|
-
var t = function o() {
|
|
10
|
-
return this instanceof o ? Reflect.construct(r, arguments, this.constructor) : r.apply(this, arguments);
|
|
11
|
-
};
|
|
12
|
-
t.prototype = r.prototype;
|
|
13
|
-
} else t = {};
|
|
14
|
-
return Object.defineProperty(t, "__esModule", { value: !0 }), Object.keys(e).forEach(function(o) {
|
|
15
|
-
var n = Object.getOwnPropertyDescriptor(e, o);
|
|
16
|
-
Object.defineProperty(t, o, n.get ? n : {
|
|
17
|
-
enumerable: !0,
|
|
18
|
-
get: function() {
|
|
19
|
-
return e[o];
|
|
20
|
-
}
|
|
21
|
-
});
|
|
22
|
-
}), t;
|
|
23
|
-
}
|
|
24
|
-
export {
|
|
25
|
-
f as a,
|
|
26
|
-
u as c,
|
|
27
|
-
l as g
|
|
28
|
-
};
|
|
29
|
-
//# sourceMappingURL=_commonjsHelpers-BItOPCY9.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"_commonjsHelpers-BItOPCY9.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;"}
|