@argusoft/medplat-core 1.0.24 → 1.0.26
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/{ChangePasswordModalCore-Czu7OZe6.js → ChangePasswordModalCore-DTYWRTa-.js} +3 -3
- package/dist/{ChangePasswordModalCore-Czu7OZe6.js.map → ChangePasswordModalCore-DTYWRTa-.js.map} +1 -1
- package/dist/{ConditionConfig-BECSbvY2.js → ConditionConfig-DSsgGEXS.js} +2 -2
- package/dist/{ConditionConfig-BECSbvY2.js.map → ConditionConfig-DSsgGEXS.js.map} +1 -1
- package/dist/{ManageEventConfiguration-CBi2KMB1.js → ManageEventConfiguration-DV3I5POA.js} +4 -4
- package/dist/{ManageEventConfiguration-CBi2KMB1.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-BnEPFSPT.js → ManageUser-AB3_Vfp_.js} +34 -33
- package/dist/{ManageUser-BnEPFSPT.js.map → ManageUser-AB3_Vfp_.js.map} +1 -1
- package/dist/{MobileTypeEventConfigModal-C34AN-IJ.js → MobileTypeEventConfigModal-BxLympIO.js} +2 -2
- package/dist/{MobileTypeEventConfigModal-C34AN-IJ.js.map → MobileTypeEventConfigModal-BxLympIO.js.map} +1 -1
- package/dist/{OtherTypeEventConfigModal-BYjMFl0-.js → OtherTypeEventConfigModal-BeG1GrUi.js} +3 -2
- package/dist/{OtherTypeEventConfigModal-BYjMFl0-.js.map → OtherTypeEventConfigModal-BeG1GrUi.js.map} +1 -1
- package/dist/{RoleManagement-B9WgZGEj.js → RoleManagement-BIiW9uTq.js} +2 -2
- package/dist/{RoleManagement-B9WgZGEj.js.map → RoleManagement-BIiW9uTq.js.map} +1 -1
- package/dist/{TypeConfiguration-Bs5WkIa2.js → TypeConfiguration-37wp-gsl.js} +2 -2
- package/dist/{TypeConfiguration-Bs5WkIa2.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/index.js +4 -4
- package/package.json +1 -1
- package/dist/AddMenuConfiguration-m3R8FDhj.js +0 -5570
- package/dist/AddMenuConfiguration-m3R8FDhj.js.map +0 -1
- package/dist/ManageRole-CZAk-IlM.js.map +0 -1
- package/dist/UserListSkeleton-DhIJ5X3y.js.map +0 -1
|
@@ -1,187 +1,151 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import
|
|
3
|
-
import n from "prop-types";
|
|
1
|
+
import { jsxs as a, jsx as e, Fragment as i } from "react/jsx-runtime";
|
|
2
|
+
import l from "prop-types";
|
|
4
3
|
import "react";
|
|
5
|
-
import { useSelector as
|
|
6
|
-
import { getUseSkeleton as
|
|
7
|
-
const
|
|
8
|
-
const l = {
|
|
9
|
-
withCredentials: !0,
|
|
10
|
-
headers: { "X-Key-Token": sessionStorage.getItem("keyToken") || "" }
|
|
11
|
-
};
|
|
12
|
-
return r.put("user/changepassword", a, l);
|
|
13
|
-
}, C = ({ locationIds: a, roleId: l, toBeAdded: t }) => a ? r.get(
|
|
14
|
-
`user/validateaoi?locationIds=${a}&roleId=${l}&toBeAdded=${t}`
|
|
15
|
-
) : r.get(`user/validateaoi?roleId=${l}&toBeAdded=${t}`), A = (a, l) => r.get(
|
|
16
|
-
`user/validateHealthInfra?healthInfraIds=${a}&toBeRemoved=${l}`
|
|
17
|
-
), B = (a, l) => {
|
|
18
|
-
const t = new FormData();
|
|
19
|
-
return t.append("userName", a), t.append("file", l), r.post("/doctors/signature", t, {
|
|
20
|
-
headers: {
|
|
21
|
-
"Content-Type": "multipart/form-data"
|
|
22
|
-
}
|
|
23
|
-
}).then((i) => i.data);
|
|
24
|
-
}, H = (a) => r.get(`/doctors/signature?doctorId=${a}`, {
|
|
25
|
-
responseType: "arraybuffer"
|
|
26
|
-
// <-- important
|
|
27
|
-
}).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: [
|
|
4
|
+
import { useSelector as r } from "react-redux";
|
|
5
|
+
import { getUseSkeleton as d } from "@/store/reducers/SkeletonReducer";
|
|
6
|
+
const t = ({ children: s, isLoading: n = !0 }) => !r(d) || !n ? s : /* @__PURE__ */ a("div", { className: "flex justify-between space-x-2 mb-4 mt-4", children: [
|
|
28
7
|
/* @__PURE__ */ e("div", { children: /* @__PURE__ */ e("div", { className: "w-40 h-10 bg-gray-300 animate-pulse rounded-md" }) }),
|
|
29
|
-
/* @__PURE__ */
|
|
8
|
+
/* @__PURE__ */ a("div", { className: "flex space-x-4", children: [
|
|
30
9
|
/* @__PURE__ */ e("div", { className: "w-60 h-10 bg-gray-300 animate-pulse rounded-md" }),
|
|
31
10
|
/* @__PURE__ */ e("div", { className: "w-20 h-10 bg-gray-300 animate-pulse rounded-full" }),
|
|
32
11
|
/* @__PURE__ */ e("div", { className: "w-20 h-10 bg-gray-300 animate-pulse rounded-md" })
|
|
33
12
|
] })
|
|
34
13
|
] });
|
|
35
|
-
|
|
36
|
-
children:
|
|
37
|
-
isLoading:
|
|
14
|
+
t.propTypes = {
|
|
15
|
+
children: l.any,
|
|
16
|
+
isLoading: l.any
|
|
38
17
|
};
|
|
39
|
-
const
|
|
40
|
-
/* @__PURE__ */
|
|
18
|
+
const c = ({ children: s, isLoading: n = !0 }) => !r(d) || !n ? s : /* @__PURE__ */ e(i, { children: /* @__PURE__ */ e("div", { className: "flex flex-row", children: /* @__PURE__ */ a("div", { className: "flex flex-col space-y-4 p-6 overflow-y-auto w-full", children: [
|
|
19
|
+
/* @__PURE__ */ a("div", { className: "px-4 py-2 flex space-x-3 items-center justify-between ", children: [
|
|
41
20
|
/* @__PURE__ */ e("div", { className: "bg-gray-300 animate-pulse rounded-sm w-20 h-10" }),
|
|
42
|
-
/* @__PURE__ */
|
|
21
|
+
/* @__PURE__ */ a("div", { className: "flex space-x-3", children: [
|
|
43
22
|
/* @__PURE__ */ e("div", { className: "bg-gray-300 animate-pulse rounded-sm w-40 h-10" }),
|
|
44
23
|
/* @__PURE__ */ e("div", { className: "bg-gray-300 animate-pulse rounded-sm w-40 h-10" })
|
|
45
24
|
] })
|
|
46
25
|
] }),
|
|
47
|
-
/* @__PURE__ */
|
|
48
|
-
/* @__PURE__ */
|
|
26
|
+
/* @__PURE__ */ a("div", { className: "flex flex-row justify-between space-x-4", children: [
|
|
27
|
+
/* @__PURE__ */ a("div", { className: "flex flex-row space-x-4 w-[50%]", children: [
|
|
49
28
|
/* @__PURE__ */ e("button", { className: "bg-gray-300 animate-pulse rounded-sm w-[50%] h-10 " }),
|
|
50
29
|
/* @__PURE__ */ e("button", { className: "bg-gray-300 animate-pulse rounded-sm w-[50%] h-10 " })
|
|
51
30
|
] }),
|
|
52
31
|
/* @__PURE__ */ e("button", { className: "bg-gray-300 animate-pulse rounded-sm w-[50%] h-10 " })
|
|
53
32
|
] }),
|
|
54
|
-
/* @__PURE__ */
|
|
55
|
-
/* @__PURE__ */
|
|
33
|
+
/* @__PURE__ */ a("div", { className: "flex flex-row justify-between space-x-4", children: [
|
|
34
|
+
/* @__PURE__ */ a("div", { className: "flex flex-row space-x-4 w-[50%]", children: [
|
|
56
35
|
/* @__PURE__ */ e("button", { className: "bg-gray-300 animate-pulse rounded-sm w-[33%] h-10 " }),
|
|
57
36
|
/* @__PURE__ */ e("button", { className: "bg-gray-300 animate-pulse rounded-sm w-[33%] h-10 " }),
|
|
58
37
|
/* @__PURE__ */ e("button", { className: "bg-gray-300 animate-pulse rounded-sm w-[33%] h-10 " })
|
|
59
38
|
] }),
|
|
60
39
|
/* @__PURE__ */ e("button", { className: "bg-gray-300 animate-pulse rounded-sm w-[50%] h-10 " })
|
|
61
40
|
] }),
|
|
62
|
-
/* @__PURE__ */
|
|
63
|
-
/* @__PURE__ */
|
|
41
|
+
/* @__PURE__ */ a("div", { className: "flex flex-row justify-between space-x-4", children: [
|
|
42
|
+
/* @__PURE__ */ a("div", { className: "flex flex-row space-x-4 w-[50%]", children: [
|
|
64
43
|
/* @__PURE__ */ e("button", { className: "bg-gray-300 animate-pulse rounded-sm w-[50%] h-10 " }),
|
|
65
44
|
/* @__PURE__ */ e("button", { className: "bg-gray-300 animate-pulse rounded-sm w-[50%] h-10 " })
|
|
66
45
|
] }),
|
|
67
|
-
/* @__PURE__ */
|
|
46
|
+
/* @__PURE__ */ a("div", { className: "flex flex-row space-x-4 w-[50%]", children: [
|
|
68
47
|
/* @__PURE__ */ e("button", { className: "bg-gray-300 animate-pulse rounded-sm w-[50%] h-10 " }),
|
|
69
48
|
/* @__PURE__ */ e("button", { className: "bg-gray-300 animate-pulse rounded-sm w-[50%] h-10 " })
|
|
70
49
|
] }),
|
|
71
50
|
" "
|
|
72
51
|
] }),
|
|
73
|
-
/* @__PURE__ */
|
|
74
|
-
/* @__PURE__ */
|
|
52
|
+
/* @__PURE__ */ a("div", { className: "flex flex-row justify-between space-x-4", children: [
|
|
53
|
+
/* @__PURE__ */ a("div", { className: "flex flex-row space-x-4 w-[50%]", children: [
|
|
75
54
|
/* @__PURE__ */ e("button", { className: "bg-gray-300 animate-pulse rounded-sm w-[50%] h-10 " }),
|
|
76
55
|
/* @__PURE__ */ e("button", { className: "bg-gray-300 animate-pulse rounded-sm w-[50%] h-10 " })
|
|
77
56
|
] }),
|
|
78
|
-
/* @__PURE__ */
|
|
57
|
+
/* @__PURE__ */ a("div", { className: "flex flex-row space-x-4 w-[50%]", children: [
|
|
79
58
|
/* @__PURE__ */ e("button", { className: "bg-gray-300 animate-pulse rounded-sm w-[50%] h-10 " }),
|
|
80
59
|
/* @__PURE__ */ e("button", { className: "bg-gray-300 animate-pulse rounded-sm w-[50%] h-10 " })
|
|
81
60
|
] }),
|
|
82
61
|
" "
|
|
83
62
|
] }),
|
|
84
|
-
/* @__PURE__ */
|
|
85
|
-
/* @__PURE__ */
|
|
63
|
+
/* @__PURE__ */ a("div", { className: "flex flex-row justify-between space-x-4", children: [
|
|
64
|
+
/* @__PURE__ */ a("div", { className: "flex flex-row space-x-4 w-[50%]", children: [
|
|
86
65
|
/* @__PURE__ */ e("button", { className: "bg-gray-300 animate-pulse rounded-sm w-[50%] h-10 " }),
|
|
87
66
|
/* @__PURE__ */ e("button", { className: "bg-gray-300 animate-pulse rounded-sm w-[50%] h-10 " })
|
|
88
67
|
] }),
|
|
89
|
-
/* @__PURE__ */
|
|
68
|
+
/* @__PURE__ */ a("div", { className: "flex flex-row space-x-4 w-[50%]", children: [
|
|
90
69
|
/* @__PURE__ */ e("button", { className: "bg-gray-300 animate-pulse rounded-sm w-[50%] h-10 " }),
|
|
91
70
|
/* @__PURE__ */ e("button", { className: "bg-gray-300 animate-pulse rounded-sm w-[50%] h-10 " })
|
|
92
71
|
] }),
|
|
93
72
|
" "
|
|
94
73
|
] }),
|
|
95
|
-
/* @__PURE__ */
|
|
96
|
-
/* @__PURE__ */
|
|
74
|
+
/* @__PURE__ */ a("div", { className: "flex flex-row justify-between space-x-4", children: [
|
|
75
|
+
/* @__PURE__ */ a("div", { className: "flex flex-row space-x-4 w-[50%]", children: [
|
|
97
76
|
/* @__PURE__ */ e("button", { className: "bg-gray-300 animate-pulse rounded-sm w-[50%] h-10 " }),
|
|
98
77
|
/* @__PURE__ */ e("button", { className: "bg-gray-300 animate-pulse rounded-sm w-[50%] h-10 " })
|
|
99
78
|
] }),
|
|
100
|
-
/* @__PURE__ */
|
|
79
|
+
/* @__PURE__ */ a("div", { className: "flex flex-row space-x-4 w-[50%]", children: [
|
|
101
80
|
/* @__PURE__ */ e("button", { className: "bg-gray-300 animate-pulse rounded-sm w-[50%] h-10 " }),
|
|
102
81
|
/* @__PURE__ */ e("button", { className: "bg-gray-300 animate-pulse rounded-sm w-[50%] h-10 " })
|
|
103
82
|
] }),
|
|
104
83
|
" "
|
|
105
84
|
] }),
|
|
106
|
-
/* @__PURE__ */
|
|
85
|
+
/* @__PURE__ */ a("div", { className: "flex flex-col space-y-2", children: [
|
|
107
86
|
/* @__PURE__ */ e("div", { className: "bg-gray-300 animate-pulse rounded-sm w-40 h-10 " }),
|
|
108
87
|
/* @__PURE__ */ e("div", { className: "bg-gray-300 animate-pulse rounded-sm w-100 h-10 " })
|
|
109
88
|
] }),
|
|
110
|
-
/* @__PURE__ */
|
|
89
|
+
/* @__PURE__ */ a("div", { className: "flex flex-row w-full justify-end space-x-3 p-3 ", children: [
|
|
111
90
|
/* @__PURE__ */ e("div", { className: "bg-gray-300 animate-pulse rounded-sm w-20 h-10 " }),
|
|
112
91
|
/* @__PURE__ */ e("div", { className: "bg-gray-300 animate-pulse rounded-sm w-20 h-10 " })
|
|
113
92
|
] })
|
|
114
93
|
] }) }) });
|
|
115
|
-
|
|
116
|
-
children:
|
|
117
|
-
isLoading:
|
|
94
|
+
c.propTypes = {
|
|
95
|
+
children: l.any,
|
|
96
|
+
isLoading: l.any
|
|
118
97
|
};
|
|
119
|
-
const
|
|
98
|
+
const u = ({ children: s, isLoading: n = !0 }) => !r(d) || !n ? s : /* @__PURE__ */ a("div", { className: "grid grid-cols-1 sm:grid-cols-2 lg:grid-cols-4 gap-4 mt-4 mb-4", children: [
|
|
120
99
|
/* @__PURE__ */ e("div", { className: "h-20 bg-gray-300 animate-pulse rounded-md" }),
|
|
121
100
|
/* @__PURE__ */ e("div", { className: "h-20 bg-gray-300 animate-pulse rounded-md" }),
|
|
122
101
|
/* @__PURE__ */ e("div", { className: "h-20 bg-gray-300 animate-pulse rounded-md" }),
|
|
123
102
|
/* @__PURE__ */ e("div", { className: "h-20 bg-gray-300 animate-pulse rounded-md" })
|
|
124
103
|
] });
|
|
125
|
-
|
|
126
|
-
children:
|
|
127
|
-
isLoading:
|
|
104
|
+
u.propTypes = {
|
|
105
|
+
children: l.any,
|
|
106
|
+
isLoading: l.any
|
|
128
107
|
};
|
|
129
|
-
const
|
|
130
|
-
/* @__PURE__ */
|
|
108
|
+
const o = ({ children: s, isLoading: n = !0 }) => !r(d) || !n ? s : /* @__PURE__ */ a("div", { className: "flex flex-col space-y-3", children: [
|
|
109
|
+
/* @__PURE__ */ a("div", { className: "flex flex-col space-y-1", children: [
|
|
131
110
|
/* @__PURE__ */ e("div", { className: "animate-pulse bg-gray-300 rounded-sm w-40 h-10" }),
|
|
132
111
|
/* @__PURE__ */ e("div", { className: "animate-pulse bg-gray-300 rounded-sm w-full h-10" })
|
|
133
112
|
] }),
|
|
134
|
-
/* @__PURE__ */
|
|
113
|
+
/* @__PURE__ */ a("div", { className: "flex flex-col space-y-1", children: [
|
|
135
114
|
/* @__PURE__ */ e("div", { className: "animate-pulse bg-gray-300 rounded-sm w-40 h-10" }),
|
|
136
115
|
/* @__PURE__ */ e("div", { className: "animate-pulse bg-gray-300 rounded-sm w-full h-10" })
|
|
137
116
|
] }),
|
|
138
|
-
/* @__PURE__ */
|
|
117
|
+
/* @__PURE__ */ a("div", { className: "flex flex-row space-x-1 justify-end", children: [
|
|
139
118
|
/* @__PURE__ */ e("div", { className: "animate-pulse bg-gray-300 rounded-sm w-20 h-10" }),
|
|
140
119
|
/* @__PURE__ */ e("div", { className: "animate-pulse bg-gray-300 rounded-sm w-20 h-10" })
|
|
141
120
|
] })
|
|
142
121
|
] });
|
|
143
|
-
|
|
144
|
-
children:
|
|
145
|
-
isLoading:
|
|
122
|
+
o.propTypes = {
|
|
123
|
+
children: l.any,
|
|
124
|
+
isLoading: l.any
|
|
146
125
|
};
|
|
147
|
-
const
|
|
148
|
-
/* @__PURE__ */
|
|
126
|
+
const g = ({ children: s, isLoading: n = !0 }) => !r(d) || !n ? s : /* @__PURE__ */ a("div", { className: "flex flex-col space-y-3", children: [
|
|
127
|
+
/* @__PURE__ */ a("div", { className: "flex flex-col space-y-1", children: [
|
|
149
128
|
/* @__PURE__ */ e("div", { className: "animate-pulse bg-gray-300 rounded-sm w-40 h-10" }),
|
|
150
129
|
/* @__PURE__ */ e("div", { className: "animate-pulse bg-gray-300 rounded-sm w-full h-10" })
|
|
151
130
|
] }),
|
|
152
|
-
/* @__PURE__ */
|
|
131
|
+
/* @__PURE__ */ a("div", { className: "flex flex-col space-y-1", children: [
|
|
153
132
|
/* @__PURE__ */ e("div", { className: "animate-pulse bg-gray-300 rounded-sm w-40 h-10" }),
|
|
154
133
|
/* @__PURE__ */ e("div", { className: "animate-pulse bg-gray-300 rounded-sm w-full h-10" })
|
|
155
134
|
] }),
|
|
156
|
-
/* @__PURE__ */
|
|
135
|
+
/* @__PURE__ */ a("div", { className: "flex flex-row space-x-1 justify-end", children: [
|
|
157
136
|
/* @__PURE__ */ e("div", { className: "animate-pulse bg-gray-300 rounded-sm w-20 h-10" }),
|
|
158
137
|
/* @__PURE__ */ e("div", { className: "animate-pulse bg-gray-300 rounded-sm w-20 h-10" })
|
|
159
138
|
] })
|
|
160
139
|
] });
|
|
161
|
-
|
|
162
|
-
children:
|
|
163
|
-
isLoading:
|
|
140
|
+
g.propTypes = {
|
|
141
|
+
children: l.any,
|
|
142
|
+
isLoading: l.any
|
|
164
143
|
};
|
|
165
144
|
export {
|
|
166
|
-
|
|
167
|
-
|
|
168
|
-
|
|
169
|
-
|
|
170
|
-
|
|
171
|
-
j as d,
|
|
172
|
-
v as e,
|
|
173
|
-
$ as f,
|
|
174
|
-
L as g,
|
|
175
|
-
T as h,
|
|
176
|
-
U as i,
|
|
177
|
-
H as j,
|
|
178
|
-
D as k,
|
|
179
|
-
I as l,
|
|
180
|
-
A as m,
|
|
181
|
-
B as n,
|
|
182
|
-
F as o,
|
|
183
|
-
S as t,
|
|
184
|
-
k as u,
|
|
185
|
-
C as v
|
|
145
|
+
c as M,
|
|
146
|
+
g as U,
|
|
147
|
+
o as a,
|
|
148
|
+
t as b,
|
|
149
|
+
u as c
|
|
186
150
|
};
|
|
187
|
-
//# sourceMappingURL=UserListSkeleton-
|
|
151
|
+
//# sourceMappingURL=UserListSkeleton-BMKANCtW.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"UserListSkeleton-BMKANCtW.js","sources":["../src/views/Users/Skeletons/UserListSkeleton.jsx"],"sourcesContent":["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":["UserListSkeleton","children","isLoading","useSelector","getUseSkeleton","jsxs","jsx","PropTypes","ManageUserSkeleton","Fragment","UserStatsSkeleton","UserFilterFormSkeleton","UserFilterFormSwitchButtonSkeleton"],"mappings":";;;;;AAKO,MAAMA,IAAmB,CAAC,EAAE,UAAAC,GAAU,WAAAC,IAAY,SAEnD,CADgBC,EAAYC,CAAc,KAI1C,CAACF,IACID,IAGP,gBAAAI,EAAC,OAAA,EAAI,WAAU,4CACb,UAAA;AAAA,EAAA,gBAAAC,EAAC,OAAA,EACC,UAAA,gBAAAA,EAAC,OAAA,EAAI,WAAU,kDAAiD,GAClE;AAAA,EACA,gBAAAD,EAAC,OAAA,EAAI,WAAU,kBACb,UAAA;AAAA,IAAA,gBAAAC,EAAC,OAAA,EAAI,WAAU,iDAAA,CAAiD;AAAA,IAEhE,gBAAAA,EAAC,OAAA,EAAI,WAAU,mDAAA,CAAmD;AAAA,IAClE,gBAAAA,EAAC,OAAA,EAAI,WAAU,iDAAA,CAAiD;AAAA,EAAA,EAAA,CAClE;AAAA,GACF;AAIJN,EAAiB,YAAY;AAAA,EAC3B,UAAUO,EAAU;AAAA,EACpB,WAAWA,EAAU;AACvB;AAEO,MAAMC,IAAqB,CAAC,EAAE,U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,EAAE,UAAAX,GAAU,WAAAC,IAAY,SAErE,CADgBC,EAAYC,CAAc,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;"}
|
|
@@ -0,0 +1,40 @@
|
|
|
1
|
+
import { api as a } from "@/common/interceptors/AxiosInterceptor";
|
|
2
|
+
const n = (e) => a.get("user/retrievebycriteria", { params: e, showLoader: !1 }), g = (e, t) => a.put("user/toggle", e, { params: t }), i = (e) => a.post("user", e), d = (e) => a.get("user/generateLoginCode", { params: e }), c = (e, t) => a.get("role/byroleid", { params: e, ...t }), u = (e, t) => a.get("location/byroleid", { params: e, ...t }), l = (e) => a.get(`user?userId=${e}`), p = (e) => a.get("translation/activeLanguages", { params: e }), f = (e) => a.get("location/locationtypes", { params: e }), h = ({ action: e, ...t }) => a.get(`user/${e}`, { params: { ...t }, showLoader: !1 }), m = (e) => {
|
|
3
|
+
const t = {
|
|
4
|
+
withCredentials: !0,
|
|
5
|
+
headers: { "X-Key-Token": sessionStorage.getItem("keyToken") || "" }
|
|
6
|
+
};
|
|
7
|
+
return a.put("user/changepassword", e, t);
|
|
8
|
+
}, y = ({ locationIds: e, roleId: t, toBeAdded: s }) => e ? a.get(
|
|
9
|
+
`user/validateaoi?locationIds=${e}&roleId=${t}&toBeAdded=${s}`
|
|
10
|
+
) : a.get(`user/validateaoi?roleId=${t}&toBeAdded=${s}`), $ = (e, t) => a.get(
|
|
11
|
+
`user/validateHealthInfra?healthInfraIds=${e}&toBeRemoved=${t}`
|
|
12
|
+
), v = (e, t) => {
|
|
13
|
+
const s = new FormData();
|
|
14
|
+
return s.append("userName", e), s.append("file", t), a.post("/doctors/signature", s, {
|
|
15
|
+
headers: {
|
|
16
|
+
"Content-Type": "multipart/form-data"
|
|
17
|
+
}
|
|
18
|
+
}).then((o) => o.data);
|
|
19
|
+
}, I = (e) => a.get(`/doctors/signature?doctorId=${e}`, {
|
|
20
|
+
responseType: "arraybuffer"
|
|
21
|
+
// <-- important
|
|
22
|
+
}).then((t) => t.data);
|
|
23
|
+
export {
|
|
24
|
+
d as a,
|
|
25
|
+
n as b,
|
|
26
|
+
p as c,
|
|
27
|
+
l as d,
|
|
28
|
+
u as e,
|
|
29
|
+
I as f,
|
|
30
|
+
c as g,
|
|
31
|
+
h,
|
|
32
|
+
f as i,
|
|
33
|
+
$ as j,
|
|
34
|
+
v as k,
|
|
35
|
+
m as l,
|
|
36
|
+
g as t,
|
|
37
|
+
i as u,
|
|
38
|
+
y as v
|
|
39
|
+
};
|
|
40
|
+
//# sourceMappingURL=Users-CsJ08Kjm.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Users-CsJ08Kjm.js","sources":["../src/services/Users.js"],"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 const config = { \n withCredentials: true,\n headers: { 'X-Key-Token': sessionStorage.getItem('keyToken') || '' }\n };\n return api.put('user/changepassword', params, config);\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"],"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"],"mappings":";AAEY,MAACA,IAAe,CAACC,MAC3BC,EAAI,IAAI,2BAA2B,EAAE,QAAAD,GAAQ,YAAY,GAAK,CAAE,GAErDE,IAAmB,CAACC,GAAMH,MACrCC,EAAI,IAAI,eAAeE,GAAM,EAAE,QAAAH,EAAM,CAAE,GAE5BI,IAAa,CAACD,MAASF,EAAI,KAAK,QAAQE,CAAI,GAE5CE,IAAkB,CAACL,MAC9BC,EAAI,IAAI,0BAA0B,EAAE,QAAAD,EAAM,CAAE,GAEjCM,IAAW,CAACN,GAAQO,MAC/BN,EAAI,IAAI,iBAAiB,EAAE,QAAAD,GAAQ,GAAGO,EAAM,CAAE,GAEnCC,IAAiB,CAACR,GAAQO,MACrCN,EAAI,IAAI,qBAAqB,EAAE,QAAAD,GAAQ,GAAGO,EAAM,CAAE,GACvCE,IAAiB,CAACT,MAAWC,EAAI,IAAI,eAAeD,CAAM,EAAE,GAE5DU,IAAuB,CAACV,MACnCC,EAAI,IAAI,+BAA+B,EAAE,QAAAD,EAAM,CAAE,GAKtCW,IAAmB,CAACX,MAC/BC,EAAI,IAAI,0BAA0B,EAAE,QAAAD,EAAM,CAAE,GAcjCY,IAAkB,CAAC,EAAE,QAAAC,GAAQ,GAAGb,EAAM,MACjDC,EAAI,IAAI,QAAQY,CAAM,IAAI,EAAE,QAAQ,EAAE,GAAGb,KAAU,YAAY,GAAK,CAAE,GAI3Dc,IAAiB,CAACd,MAAW;AACxC,QAAMO,IAAS;AAAA,IACb,iBAAiB;AAAA,IACjB,SAAS,EAAE,eAAe,eAAe,QAAQ,UAAU,KAAK,GAAE;AAAA,EACtE;AACE,SAAON,EAAI,IAAI,uBAAuBD,GAAQO,CAAM;AACtD,GAEaQ,IAAc,CAAC,EAAE,aAAAC,GAAa,QAAAC,GAAQ,WAAAC,EAAS,MACtDF,IACKf,EAAI;AAAA,EACT,gCAAgCe,CAAW,WAAWC,CAAM,cAAcC,CAAS;AACzF,IAEWjB,EAAI,IAAI,2BAA2BgB,CAAM,cAAcC,CAAS,EAAE,GAGhEC,IAAsB,CAACC,GAASC,MAC3CpB,EAAI;AAAA,EACF,2CAA2CmB,CAAO,gBAAgBC,CAAE;AACxE,GAMaC,IAAwB,CAACC,GAAUC,MAAS;AACvD,QAAMC,IAAW,IAAI,SAAQ;AAC7B,SAAAA,EAAS,OAAO,YAAYF,CAAQ,GACpCE,EAAS,OAAO,QAAQD,CAAI,GAErBvB,EACJ,KAAK,sBAAsBwB,GAAU;AAAA,IACpC,SAAS;AAAA,MACP,gBAAgB;AAAA,IACxB;AAAA,EACA,CAAK,EACA,KAAK,CAACC,MAAQA,EAAI,IAAI;AAC3B,GAEaC,IAAqB,CAACN,MAC1BpB,EACJ,IAAI,+BAA+BoB,CAAE,IAAI;AAAA,EACxC,cAAc;AAAA;AACpB,CAAK,EACA,KAAK,CAACK,MAAQA,EAAI,IAAI;"}
|
package/dist/index.js
CHANGED
|
@@ -5,9 +5,9 @@ import { execute as d, executeAll as O } from "@/common/services/GlobalApis";
|
|
|
5
5
|
import { api as F } from "@/common/interceptors/AxiosInterceptor";
|
|
6
6
|
import './index.css';const o = s(
|
|
7
7
|
() => import("@/views/feature-components/VerifyRoute.jsx")
|
|
8
|
-
), G = s(() => import("./RoleManagement-
|
|
8
|
+
), G = s(() => import("./RoleManagement-BIiW9uTq.js").then((e) => e.R)), z = s(
|
|
9
9
|
() => import("./QueryBuilder-DI0wCJbz.js").then((e) => e.Q)
|
|
10
|
-
), x = s(() => import("./UserList-
|
|
10
|
+
), x = s(() => import("./UserList-2gGuDgNa.js")), S = s(() => import("./ManageUser-AB3_Vfp_.js").then((e) => e.M)), B = s(
|
|
11
11
|
() => import("./QueryManagement-CRykYGum.js")
|
|
12
12
|
), w = s(() => import("./FeatureMenu-DUZL32RI.js").then((e) => e.F)), P = s(() => import("./index-D9YNFPn9.js")), $ = s(
|
|
13
13
|
() => import("./NewServerManagement-Cxe0dV0O.js")
|
|
@@ -18,13 +18,13 @@ import './index.css';const o = s(
|
|
|
18
18
|
), H = s(
|
|
19
19
|
() => import("./EventConfigurations-lPcZGpLi.js")
|
|
20
20
|
), b = s(
|
|
21
|
-
() => import("./ManageEventConfiguration-
|
|
21
|
+
() => import("./ManageEventConfiguration-DV3I5POA.js")
|
|
22
22
|
), Z = s(
|
|
23
23
|
() => import("./EntityManagement-GaYsBTvf.js")
|
|
24
24
|
), Q = s(
|
|
25
25
|
() => import("./MobileMenuManagement-CVAKyKDa.js")
|
|
26
26
|
), W = s(
|
|
27
|
-
() => import("./AddMenuConfiguration-
|
|
27
|
+
() => import("./AddMenuConfiguration-BSQLl88V.js")
|
|
28
28
|
), X = s(
|
|
29
29
|
() => import("./ManageTranslation-D9IScGhk.js").then((e) => e.M)
|
|
30
30
|
), j = s(
|