@argusoft/medplat-core 1.0.14 → 1.0.16
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/AccessRights-Bvd5Bm5K.js +1259 -0
- package/dist/AccessRights-Bvd5Bm5K.js.map +1 -0
- package/dist/{AddEditQueryBuilder-7JRplV5J.js → AddEditQueryBuilder-Bcjl5mXE.js} +2 -2
- package/dist/{AddEditQueryBuilder-7JRplV5J.js.map → AddEditQueryBuilder-Bcjl5mXE.js.map} +1 -1
- package/dist/{AddFeatures-CkTu7sOI.js → AddFeatures-CE5rBxEG.js} +2 -2
- package/dist/{AddFeatures-CkTu7sOI.js.map → AddFeatures-CE5rBxEG.js.map} +1 -1
- package/dist/{AddLabelModal-DE3ploGD.js → AddLabelModal-CB8E8cYG.js} +2 -2
- package/dist/{AddLabelModal-DE3ploGD.js.map → AddLabelModal-CB8E8cYG.js.map} +1 -1
- package/dist/{AddRoleDrawer-ZK1eejxI.js → AddRoleDrawer-SvntLdRu.js} +44 -43
- package/dist/AddRoleDrawer-SvntLdRu.js.map +1 -0
- package/dist/{AppModal-BgZyfrd-.js → AppModal-BKgIwe1h.js} +2 -2
- package/dist/{AppModal-BgZyfrd-.js.map → AppModal-BKgIwe1h.js.map} +1 -1
- package/dist/{ChangePasswordModalCore-DIe4rzW-.js → ChangePasswordModalCore-ClND1mel.js} +67 -62
- package/dist/ChangePasswordModalCore-ClND1mel.js.map +1 -0
- package/dist/{ConditionConfig-GDCXIg3C.js → ConditionConfig-DB0FqwgG.js} +2 -2
- package/dist/{ConditionConfig-GDCXIg3C.js.map → ConditionConfig-DB0FqwgG.js.map} +1 -1
- package/dist/{EntityManagement-D-x6Qzal.js → EntityManagement-DQKXnEzz.js} +2 -2
- package/dist/{EntityManagement-D-x6Qzal.js.map → EntityManagement-DQKXnEzz.js.map} +1 -1
- package/dist/EventConfigurations-DZvSJ5EZ.js +395 -0
- package/dist/EventConfigurations-DZvSJ5EZ.js.map +1 -0
- package/dist/{EventsExceptionModal-BF6E1Np7.js → EventsExceptionModal-DsvngLi8.js} +2 -2
- package/dist/{EventsExceptionModal-BF6E1Np7.js.map → EventsExceptionModal-DsvngLi8.js.map} +1 -1
- package/dist/EventsSkeleton-DCXwwPbb.js +76 -0
- package/dist/EventsSkeleton-DCXwwPbb.js.map +1 -0
- package/dist/FeatureMenu-CLX8VNZ-.js +265 -0
- package/dist/FeatureMenu-CLX8VNZ-.js.map +1 -0
- package/dist/Features-Cpf1PDx0.js +13 -0
- package/dist/Features-Cpf1PDx0.js.map +1 -0
- package/dist/FileSaver.min-CN9EpL2h.js.map +1 -1
- package/dist/{ImmunizationConfigurationBase-DZ8EqXlF.js → ImmunizationConfigurationBase-VqVvVR57.js} +2095 -1872
- package/dist/ImmunizationConfigurationBase-VqVvVR57.js.map +1 -0
- package/dist/ImmunizationConfigurationsList-K2ddBpPJ.js +345 -0
- package/dist/ImmunizationConfigurationsList-K2ddBpPJ.js.map +1 -0
- package/dist/ImmunizationSkeleton-D2tdv5k-.js.map +1 -1
- package/dist/{LanguagesModal-rk6IGQwY.js → LanguagesModal-CX3oS8rk.js} +2 -2
- package/dist/{LanguagesModal-rk6IGQwY.js.map → LanguagesModal-CX3oS8rk.js.map} +1 -1
- package/dist/{ManageDynamicFeature-C2I7Ho7i.js → ManageDynamicFeature-CsIett5x.js} +2 -2
- package/dist/{ManageDynamicFeature-C2I7Ho7i.js.map → ManageDynamicFeature-CsIett5x.js.map} +1 -1
- package/dist/{ManageEventConfiguration-BJxS2Su0.js → ManageEventConfiguration-0YBDaxOI.js} +60 -60
- package/dist/ManageEventConfiguration-0YBDaxOI.js.map +1 -0
- package/dist/{ManageNotification-DMN2szWy.js → ManageNotification-BUAvg5Ge.js} +1797 -1705
- package/dist/ManageNotification-BUAvg5Ge.js.map +1 -0
- package/dist/{ManageRole-CuXmWQyp.js → ManageRole-Cbs9dUhc.js} +244 -191
- package/dist/ManageRole-Cbs9dUhc.js.map +1 -0
- package/dist/ManageTranslation-D9IScGhk.js +625 -0
- package/dist/ManageTranslation-D9IScGhk.js.map +1 -0
- package/dist/{ManageUser-Dr3ptCYp.js → ManageUser-eBS0yC5k.js} +754 -748
- package/dist/ManageUser-eBS0yC5k.js.map +1 -0
- package/dist/{MobileTypeEventConfigModal-ChhO_A4f.js → MobileTypeEventConfigModal-Ltm529jG.js} +2 -2
- package/dist/{MobileTypeEventConfigModal-ChhO_A4f.js.map → MobileTypeEventConfigModal-Ltm529jG.js.map} +1 -1
- package/dist/NotificationList-CUZSWp2J.js +402 -0
- package/dist/NotificationList-CUZSWp2J.js.map +1 -0
- package/dist/{OtherTypeEventConfigModal-ZnCGWm9v.js → OtherTypeEventConfigModal-dXt2qDg_.js} +2 -2
- package/dist/OtherTypeEventConfigModal-dXt2qDg_.js.map +1 -0
- package/dist/{QueryBuilder-BPfavHH9.js → QueryBuilder-DXexUIe8.js} +154 -148
- package/dist/QueryBuilder-DXexUIe8.js.map +1 -0
- package/dist/QueryManagement-B2y23kus.js +935 -0
- package/dist/QueryManagement-B2y23kus.js.map +1 -0
- package/dist/RoleManagement-BThAL5LO.js +422 -0
- package/dist/RoleManagement-BThAL5LO.js.map +1 -0
- package/dist/SubMenu-BGznOP2a.js +191 -0
- package/dist/SubMenu-BGznOP2a.js.map +1 -0
- package/dist/TableDetails-DztbjsIA.js +2069 -0
- package/dist/TableDetails-DztbjsIA.js.map +1 -0
- package/dist/TableList-DYwotUDO.js +1425 -0
- package/dist/TableList-DYwotUDO.js.map +1 -0
- package/dist/{TypeConfiguration-C-lk8Szs.js → TypeConfiguration-DYbBG_hZ.js} +2 -2
- package/dist/{TypeConfiguration-C-lk8Szs.js.map → TypeConfiguration-DYbBG_hZ.js.map} +1 -1
- package/dist/{UserList-S5Q76wO7.js → UserList-BAeAFeXZ.js} +410 -400
- package/dist/UserList-BAeAFeXZ.js.map +1 -0
- package/dist/{UserListSkeleton-cglK2SaU.js → UserListSkeleton-DhIJ5X3y.js} +10 -7
- package/dist/UserListSkeleton-DhIJ5X3y.js.map +1 -0
- package/dist/WidgetList-D-fIf3N2.js +200 -0
- package/dist/WidgetList-D-fIf3N2.js.map +1 -0
- package/dist/i18next-CTOWN_jH.js.map +1 -1
- package/dist/index.css +1 -1
- package/dist/index.js +64 -63
- package/dist/index.js.map +1 -1
- package/dist/xlsx.min-D1LFqt_b.js.map +1 -1
- package/package.json +1 -1
- package/dist/AccessRights-BMRM1u9S.js +0 -1228
- package/dist/AccessRights-BMRM1u9S.js.map +0 -1
- package/dist/AddRoleDrawer-ZK1eejxI.js.map +0 -1
- package/dist/ChangePasswordModalCore-DIe4rzW-.js.map +0 -1
- package/dist/EventConfigurations-jGCJ4LqP.js +0 -384
- package/dist/EventConfigurations-jGCJ4LqP.js.map +0 -1
- package/dist/EventsSkeleton-BN7_0IGs.js +0 -74
- package/dist/EventsSkeleton-BN7_0IGs.js.map +0 -1
- package/dist/FeatureMenu-Ds6lFg4w.js +0 -249
- package/dist/FeatureMenu-Ds6lFg4w.js.map +0 -1
- package/dist/Features-Cshdl06N.js +0 -12
- package/dist/Features-Cshdl06N.js.map +0 -1
- package/dist/ImmunizationConfigurationBase-DZ8EqXlF.js.map +0 -1
- package/dist/ImmunizationConfigurationsList-CQnxWa09.js +0 -335
- package/dist/ImmunizationConfigurationsList-CQnxWa09.js.map +0 -1
- package/dist/ManageEventConfiguration-BJxS2Su0.js.map +0 -1
- package/dist/ManageNotification-DMN2szWy.js.map +0 -1
- package/dist/ManageRole-CuXmWQyp.js.map +0 -1
- package/dist/ManageTranslation-BTxvSYKb.js +0 -616
- package/dist/ManageTranslation-BTxvSYKb.js.map +0 -1
- package/dist/ManageUser-Dr3ptCYp.js.map +0 -1
- package/dist/NotificationList-BqibwMaM.js +0 -400
- package/dist/NotificationList-BqibwMaM.js.map +0 -1
- package/dist/OtherTypeEventConfigModal-ZnCGWm9v.js.map +0 -1
- package/dist/QueryBuilder-BPfavHH9.js.map +0 -1
- package/dist/QueryManagement-DXA73N2j.js +0 -671
- package/dist/QueryManagement-DXA73N2j.js.map +0 -1
- package/dist/RoleManagement-C0feJCuq.js +0 -410
- package/dist/RoleManagement-C0feJCuq.js.map +0 -1
- package/dist/SubMenu-DAfZC9Xi.js +0 -188
- package/dist/SubMenu-DAfZC9Xi.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/UserList-S5Q76wO7.js.map +0 -1
- package/dist/UserListSkeleton-cglK2SaU.js.map +0 -1
- package/dist/WidgetList-BSApErov.js +0 -188
- package/dist/WidgetList-BSApErov.js.map +0 -1
|
@@ -0,0 +1,402 @@
|
|
|
1
|
+
import { jsxs as o, jsx as e } from "react/jsx-runtime";
|
|
2
|
+
import { useState as c, useRef as D, useEffect as I, useMemo as fe, useCallback as me, Suspense as Q, lazy as X } from "react";
|
|
3
|
+
import { useTranslateProvider as pe } from "@/common/languageTranslator/TranslationContext";
|
|
4
|
+
import { api as M } from "@/common/interceptors/AxiosInterceptor";
|
|
5
|
+
import h from "@/common/services/util/GeneralUtil";
|
|
6
|
+
import { getNotifications as G, getAllRoleList as he } from "@/common/services/GlobalApis";
|
|
7
|
+
import ge from "@/common/syncWithServer/SyncWithServerDialog";
|
|
8
|
+
import { showToast as S } from "@/common/toaster/toaster";
|
|
9
|
+
import ye from "@/views/custom-components/CustomConfirmationModal";
|
|
10
|
+
import { debounce as be, Card as xe, Typography as H, Box as A, FormControlLabel as J, Checkbox as q, TextField as Ne, Button as ve } from "@mui/material";
|
|
11
|
+
import { Grid as k } from "@mui/system";
|
|
12
|
+
import w from "prop-types";
|
|
13
|
+
import { useSelector as Y } from "react-redux";
|
|
14
|
+
import { getUseSkeleton as Z } from "@/store/reducers/SkeletonReducer";
|
|
15
|
+
import we from "@/hooks/useTrackEvent";
|
|
16
|
+
import Ce from "@/views/custom-components/CustomizedTable/CustomizedTableV2";
|
|
17
|
+
import { faPen as Te, faBars as Ie } from "@fortawesome/free-solid-svg-icons";
|
|
18
|
+
import { FontAwesomeIcon as K } from "@fortawesome/react-fontawesome";
|
|
19
|
+
import { getAssignedFeatures as Se } from "@/utils/feature";
|
|
20
|
+
const Ae = ({ id: s, state: r }) => M.put(
|
|
21
|
+
h.isTecho ? `notificationtype/toggleActive?id=${s}&is_active=${r === "INACTIVE" ? "true" : "false"}` : `notificationtype/${s}?is_active=${r === "INACTIVE" ? "true" : "false"}`
|
|
22
|
+
), Xe = (s) => M.post(h.isTecho ? "notificationtype/create" : "notificationtype", s), Ye = (s) => M.post(h.isTecho ? "notificationtype/update" : "notificationtype", s), ee = ({ children: s, isLoading: r }) => !Y(Z) || !r ? s : /* @__PURE__ */ o("div", { className: "flex flex-col gap-2", children: [
|
|
23
|
+
/* @__PURE__ */ o("div", { className: "flex space-between justify-between m-[0px]", children: [
|
|
24
|
+
/* @__PURE__ */ e("div", { className: "bg-gray-300 animate-pulse rounded-sm w-[130px] h-[40px]" }),
|
|
25
|
+
/* @__PURE__ */ o("div", { className: "flex", children: [
|
|
26
|
+
/* @__PURE__ */ e("div", { className: "bg-gray-300 animate-pulse rounded-sm w-[150px] h-[40px] mx-[5px]" }),
|
|
27
|
+
/* @__PURE__ */ e("div", { className: "bg-gray-300 animate-pulse rounded-sm w-[100px] h-[40px]" })
|
|
28
|
+
] })
|
|
29
|
+
] }),
|
|
30
|
+
/* @__PURE__ */ e("div", { className: "bg-gray-300 animate-pulse rounded-sm w-full h-100" })
|
|
31
|
+
] });
|
|
32
|
+
ee.propTypes = {
|
|
33
|
+
children: w.any,
|
|
34
|
+
isLoading: w.any
|
|
35
|
+
};
|
|
36
|
+
const ke = ({ children: s, isLoading: r }) => !Y(Z) || !r ? s : /* @__PURE__ */ o("div", { className: "flex flex-col w-full md:w-[650px] bg-white ", children: [
|
|
37
|
+
/* @__PURE__ */ e("div", { className: "px-2 py-2 flex items-center ", children: /* @__PURE__ */ e("div", { className: "bg-gray-300 animate-pulse rounded-sm w-60 h-10" }) }),
|
|
38
|
+
/* @__PURE__ */ e("hr", {}),
|
|
39
|
+
/* @__PURE__ */ o("div", { className: "flex flex-col w-full space-y-2 p-2", children: [
|
|
40
|
+
/* @__PURE__ */ o("div", { className: "flex flex-col space-y-2", children: [
|
|
41
|
+
/* @__PURE__ */ e("button", { className: "bg-gray-300 animate-pulse rounded-sm w-40 h-5 mr-[100px]" }),
|
|
42
|
+
/* @__PURE__ */ e("button", { className: "bg-gray-300 animate-pulse rounded-sm w-full h-10 " })
|
|
43
|
+
] }),
|
|
44
|
+
/* @__PURE__ */ o("div", { className: "flex flex-col space-y-2 ", children: [
|
|
45
|
+
/* @__PURE__ */ e("button", { className: "bg-gray-300 animate-pulse rounded-sm w-40 h-5 mr-[100px]" }),
|
|
46
|
+
/* @__PURE__ */ e("button", { className: "bg-gray-300 animate-pulse rounded-sm w-full h-10 " })
|
|
47
|
+
] }),
|
|
48
|
+
/* @__PURE__ */ o("div", { className: "flex flex-col space-y-2 ", children: [
|
|
49
|
+
/* @__PURE__ */ e("button", { className: "bg-gray-300 animate-pulse rounded-sm w-40 h-5 mr-[100px]" }),
|
|
50
|
+
/* @__PURE__ */ e("button", { className: "bg-gray-300 animate-pulse rounded-sm w-full h-10 " })
|
|
51
|
+
] }),
|
|
52
|
+
/* @__PURE__ */ o("div", { className: "flex flex-col space-y-2 ", children: [
|
|
53
|
+
/* @__PURE__ */ e("button", { className: "bg-gray-300 animate-pulse rounded-sm w-40 h-5 mr-[100px]" }),
|
|
54
|
+
/* @__PURE__ */ e("button", { className: "bg-gray-300 animate-pulse rounded-sm w-full h-10 " })
|
|
55
|
+
] }),
|
|
56
|
+
/* @__PURE__ */ o("div", { className: "flex flex-col space-y-2 ", children: [
|
|
57
|
+
/* @__PURE__ */ e("button", { className: "bg-gray-300 animate-pulse rounded-sm w-40 h-5 mr-[100px]" }),
|
|
58
|
+
/* @__PURE__ */ e("button", { className: "bg-gray-300 animate-pulse rounded-sm w-full h-10 " })
|
|
59
|
+
] })
|
|
60
|
+
] }),
|
|
61
|
+
/* @__PURE__ */ e("hr", {}),
|
|
62
|
+
/* @__PURE__ */ o("div", { className: "px-2 py-2 w-full flex space-x-3 items-center justify-end ", children: [
|
|
63
|
+
/* @__PURE__ */ e("div", { className: "bg-gray-300 animate-pulse rounded-sm w-20 h-10" }),
|
|
64
|
+
/* @__PURE__ */ e("div", { className: "bg-gray-300 animate-pulse rounded-sm w-20 h-10" })
|
|
65
|
+
] })
|
|
66
|
+
] });
|
|
67
|
+
ke.propTypes = {
|
|
68
|
+
children: w.any,
|
|
69
|
+
isLoading: w.any
|
|
70
|
+
};
|
|
71
|
+
const Me = X(() => import("./ManageNotification-BUAvg5Ge.js")), Ee = X(() => import("./NotificationFlywayQuery-BY8Zzml_.js"));
|
|
72
|
+
function Oe() {
|
|
73
|
+
const s = we(), [r, N] = c(""), [C, E] = c([]), [O, g] = c([]), [y, u] = c(""), [n, v] = c({}), [T, te] = c([]), { translate: f } = pe(), [L, _] = c(null), [B, p] = c(!1), [d, ae] = c({}), ie = [
|
|
74
|
+
{
|
|
75
|
+
field: "notificationName",
|
|
76
|
+
label: "Name",
|
|
77
|
+
sortable: !0,
|
|
78
|
+
sortOrder: "asc",
|
|
79
|
+
align: "left"
|
|
80
|
+
},
|
|
81
|
+
{
|
|
82
|
+
field: "code",
|
|
83
|
+
label: "Code",
|
|
84
|
+
sortable: !0,
|
|
85
|
+
sortOrder: "asc",
|
|
86
|
+
align: "left"
|
|
87
|
+
},
|
|
88
|
+
{
|
|
89
|
+
field: "notificationType",
|
|
90
|
+
label: "Type",
|
|
91
|
+
align: "left",
|
|
92
|
+
render: (t) => /* @__PURE__ */ e(H, { mt: 0.5, children: t.notificationType === "WEB" ? "WEB" : "MOBILE" })
|
|
93
|
+
},
|
|
94
|
+
{
|
|
95
|
+
field: "state",
|
|
96
|
+
label: "State",
|
|
97
|
+
sortable: !0,
|
|
98
|
+
sortOrder: "asc",
|
|
99
|
+
align: "left"
|
|
100
|
+
},
|
|
101
|
+
{ field: "Actions", label: "Actions", align: "left" }
|
|
102
|
+
], [oe, se] = c(ie), [b, ne] = c(!0), [x, le] = c(!0), F = D(b), V = D(x);
|
|
103
|
+
I(() => {
|
|
104
|
+
F.current = b;
|
|
105
|
+
}, [b]), I(() => {
|
|
106
|
+
V.current = x;
|
|
107
|
+
}, [x]);
|
|
108
|
+
const ce = async () => {
|
|
109
|
+
try {
|
|
110
|
+
p((i) => !i), await Ae({ id: n.id, state: n.state }), u("");
|
|
111
|
+
const { data: t } = await G();
|
|
112
|
+
E(t), g(t), S({
|
|
113
|
+
type: "success",
|
|
114
|
+
message: `State succesfully changed from ${(n == null ? void 0 : n.state) === "INACTIVE" ? "inactive" : "active"} to ${(n == null ? void 0 : n.state) === "INACTIVE" ? "active" : "inactive"}`
|
|
115
|
+
}), p((i) => !i);
|
|
116
|
+
} catch (t) {
|
|
117
|
+
S({
|
|
118
|
+
type: "error",
|
|
119
|
+
message: `Error ${t}`
|
|
120
|
+
}), p((i) => !i);
|
|
121
|
+
}
|
|
122
|
+
}, re = fe(() => (t) => {
|
|
123
|
+
const i = [];
|
|
124
|
+
(!h.isTecho || d != null && d["update.manage.notificationlist"]) && i.push({
|
|
125
|
+
label: "",
|
|
126
|
+
icon: /* @__PURE__ */ e(
|
|
127
|
+
K,
|
|
128
|
+
{
|
|
129
|
+
icon: Te,
|
|
130
|
+
"data-testid": "notificationlist-button-edit"
|
|
131
|
+
}
|
|
132
|
+
),
|
|
133
|
+
onClick: (a) => {
|
|
134
|
+
u(1), v(a);
|
|
135
|
+
}
|
|
136
|
+
});
|
|
137
|
+
const l = [];
|
|
138
|
+
return (!h.isTecho || d != null && d["update.manage.notificationlist"]) && (l.push({
|
|
139
|
+
label: f(
|
|
140
|
+
t.state === "ACTIVE" ? "Mark as Inactive" : "Mark as Active"
|
|
141
|
+
),
|
|
142
|
+
onClick: (a) => {
|
|
143
|
+
v(a), u(2);
|
|
144
|
+
}
|
|
145
|
+
}), l.push({
|
|
146
|
+
label: f("Sync With Server"),
|
|
147
|
+
onClick: (a) => {
|
|
148
|
+
if (!a.uuid) {
|
|
149
|
+
S({
|
|
150
|
+
type: "info",
|
|
151
|
+
message: "No configuration found. Please open the respective feature item and save it."
|
|
152
|
+
});
|
|
153
|
+
return;
|
|
154
|
+
}
|
|
155
|
+
u(4), _(a == null ? void 0 : a.uuid), v(a);
|
|
156
|
+
}
|
|
157
|
+
}), l.push({
|
|
158
|
+
label: f("Show Flyway Query"),
|
|
159
|
+
onClick: (a) => {
|
|
160
|
+
u(3), v(a);
|
|
161
|
+
}
|
|
162
|
+
})), l.length > 0 && i.push({
|
|
163
|
+
label: "",
|
|
164
|
+
icon: /* @__PURE__ */ e(
|
|
165
|
+
K,
|
|
166
|
+
{
|
|
167
|
+
icon: Ie,
|
|
168
|
+
"data-testid": "notificationlist-button-menu"
|
|
169
|
+
}
|
|
170
|
+
),
|
|
171
|
+
menuItems: l
|
|
172
|
+
}), i;
|
|
173
|
+
}, [d, f]), $ = me(
|
|
174
|
+
be((t) => {
|
|
175
|
+
const i = C.filter(
|
|
176
|
+
(l) => {
|
|
177
|
+
var a;
|
|
178
|
+
return ((a = l.notificationName) == null ? void 0 : a.toLowerCase().includes(t)) && l.state === (F.current ? "ACTIVE" : "INACTIVE") && l.notificationType === (V.current ? "MO" : "WEB");
|
|
179
|
+
}
|
|
180
|
+
);
|
|
181
|
+
s("search_tracking", {
|
|
182
|
+
searchTerm: t,
|
|
183
|
+
results_count: i.length,
|
|
184
|
+
search_type: "Page Search"
|
|
185
|
+
}), g(i);
|
|
186
|
+
}, 500),
|
|
187
|
+
[C, s]
|
|
188
|
+
), de = (t) => {
|
|
189
|
+
const i = t.target.value.toLowerCase();
|
|
190
|
+
N(i), $(i);
|
|
191
|
+
}, ue = (t) => {
|
|
192
|
+
const i = t.sortOrder === "asc" ? "desc" : "asc";
|
|
193
|
+
se(
|
|
194
|
+
(a) => a.map((m) => m.field === t.field ? { ...m, sortOrder: i } : m)
|
|
195
|
+
);
|
|
196
|
+
const l = [...O].sort((a, m) => {
|
|
197
|
+
var U, W;
|
|
198
|
+
const j = (U = a[t.field]) == null ? void 0 : U.toString().toLowerCase(), z = (W = m[t.field]) == null ? void 0 : W.toString().toLowerCase();
|
|
199
|
+
return j < z ? i === "asc" ? -1 : 1 : j > z ? i === "asc" ? 1 : -1 : 0;
|
|
200
|
+
});
|
|
201
|
+
g(l);
|
|
202
|
+
}, P = async () => {
|
|
203
|
+
try {
|
|
204
|
+
p((a) => !a);
|
|
205
|
+
const { data: t } = await G();
|
|
206
|
+
E(t);
|
|
207
|
+
const i = t.filter((a) => a.notificationType === "MO" && a.state === "ACTIVE");
|
|
208
|
+
if (g(i), !T.length) {
|
|
209
|
+
const { data: a } = await he();
|
|
210
|
+
te(a);
|
|
211
|
+
}
|
|
212
|
+
const { data: l } = await Se("techo.manage.notification");
|
|
213
|
+
ae(JSON.parse(l)), p((a) => !a), N("");
|
|
214
|
+
} catch (t) {
|
|
215
|
+
console.error("error", t), p((i) => !i);
|
|
216
|
+
}
|
|
217
|
+
};
|
|
218
|
+
I(() => {
|
|
219
|
+
P();
|
|
220
|
+
}, []);
|
|
221
|
+
const R = (t, i) => {
|
|
222
|
+
const l = i === "status" ? t : b, a = i === "notificationType" ? t : x;
|
|
223
|
+
ne(l), le(a), r ? $(r) : g(
|
|
224
|
+
C.filter(
|
|
225
|
+
(m) => m.state === (l ? "ACTIVE" : "INACTIVE") && m.notificationType === (a ? "MO" : "WEB")
|
|
226
|
+
)
|
|
227
|
+
);
|
|
228
|
+
};
|
|
229
|
+
return /* @__PURE__ */ o(
|
|
230
|
+
xe,
|
|
231
|
+
{
|
|
232
|
+
variant: "elevation",
|
|
233
|
+
container: !0,
|
|
234
|
+
className: "mt-6 p-3 flex flex-col space-y-3 shadow-xl",
|
|
235
|
+
children: [
|
|
236
|
+
/* @__PURE__ */ e(Q, { children: /* @__PURE__ */ e(
|
|
237
|
+
Me,
|
|
238
|
+
{
|
|
239
|
+
open: y === 1 || y === 5,
|
|
240
|
+
handleClose: () => u(""),
|
|
241
|
+
data: y === 1 ? n : null,
|
|
242
|
+
roleData: T,
|
|
243
|
+
setNotifications: P,
|
|
244
|
+
"data-testid": "notification-list-managenotification-dialog"
|
|
245
|
+
}
|
|
246
|
+
) }),
|
|
247
|
+
/* @__PURE__ */ e(Q, { children: /* @__PURE__ */ e(
|
|
248
|
+
Ee,
|
|
249
|
+
{
|
|
250
|
+
open: y === 3,
|
|
251
|
+
handleClose: () => u(""),
|
|
252
|
+
data: n,
|
|
253
|
+
roleData: T
|
|
254
|
+
}
|
|
255
|
+
) }),
|
|
256
|
+
/* @__PURE__ */ e(
|
|
257
|
+
ye,
|
|
258
|
+
{
|
|
259
|
+
title: "CONFIRM ACTION",
|
|
260
|
+
open: y === 2,
|
|
261
|
+
description: `Are you sure you want to change the state ${(n == null ? void 0 : n.state) === "INACTIVE" ? "inactive" : "active"} to ${(n == null ? void 0 : n.state) === "INACTIVE" ? "active" : "inactive"}`,
|
|
262
|
+
handleClick: ce,
|
|
263
|
+
handleClose: () => u(""),
|
|
264
|
+
dataTestId: "notification-list-customconfirmationmodal-dialog"
|
|
265
|
+
}
|
|
266
|
+
),
|
|
267
|
+
/* @__PURE__ */ e(
|
|
268
|
+
ge,
|
|
269
|
+
{
|
|
270
|
+
isOpen: !!L,
|
|
271
|
+
handleClose: () => _(() => null),
|
|
272
|
+
featureUUID: L,
|
|
273
|
+
dataTestId: "notification-list-syncwithserverdialog-dialog"
|
|
274
|
+
}
|
|
275
|
+
),
|
|
276
|
+
/* @__PURE__ */ o(ee, { isLoading: B, children: [
|
|
277
|
+
/* @__PURE__ */ o(k, { container: !0, className: "flex justify-between", children: [
|
|
278
|
+
/* @__PURE__ */ e(k, { children: /* @__PURE__ */ e(
|
|
279
|
+
H,
|
|
280
|
+
{
|
|
281
|
+
variant: "body2",
|
|
282
|
+
className: "font-bold font-sans text-lg text-customBlue uppercase",
|
|
283
|
+
"data-testid": "notification-list-typography-title",
|
|
284
|
+
children: f("Notification Configuration")
|
|
285
|
+
}
|
|
286
|
+
) }),
|
|
287
|
+
/* @__PURE__ */ o(A, { className: "flex flex-col sm:flex-row sm:items-center gap-3 w-full sm:w-auto", children: [
|
|
288
|
+
/* @__PURE__ */ o(A, { className: "flex items-center gap-3", children: [
|
|
289
|
+
/* @__PURE__ */ e(
|
|
290
|
+
J,
|
|
291
|
+
{
|
|
292
|
+
control: /* @__PURE__ */ e(
|
|
293
|
+
q,
|
|
294
|
+
{
|
|
295
|
+
checked: b,
|
|
296
|
+
onChange: (t) => R(t.target.checked, "status"),
|
|
297
|
+
"data-testid": "notifications-checkbox-include-active"
|
|
298
|
+
}
|
|
299
|
+
),
|
|
300
|
+
label: f("Active"),
|
|
301
|
+
slotProps: {
|
|
302
|
+
typography: {
|
|
303
|
+
className: "custom-label"
|
|
304
|
+
}
|
|
305
|
+
}
|
|
306
|
+
}
|
|
307
|
+
),
|
|
308
|
+
/* @__PURE__ */ e(
|
|
309
|
+
J,
|
|
310
|
+
{
|
|
311
|
+
control: /* @__PURE__ */ e(
|
|
312
|
+
q,
|
|
313
|
+
{
|
|
314
|
+
checked: x,
|
|
315
|
+
onChange: (t) => R(t.target.checked, "notificationType"),
|
|
316
|
+
"data-testid": "notifications-checkbox-include-mobile"
|
|
317
|
+
}
|
|
318
|
+
),
|
|
319
|
+
label: f("Mobile"),
|
|
320
|
+
slotProps: {
|
|
321
|
+
typography: {
|
|
322
|
+
className: "custom-label"
|
|
323
|
+
}
|
|
324
|
+
}
|
|
325
|
+
}
|
|
326
|
+
)
|
|
327
|
+
] }),
|
|
328
|
+
/* @__PURE__ */ o(A, { className: "flex items-center gap-3 w-full sm:w-auto", children: [
|
|
329
|
+
/* @__PURE__ */ e(
|
|
330
|
+
Ne,
|
|
331
|
+
{
|
|
332
|
+
id: "searchQuery",
|
|
333
|
+
placeholder: "Search Text",
|
|
334
|
+
size: "small",
|
|
335
|
+
onChange: de,
|
|
336
|
+
className: "m-0 p-0 bg-white",
|
|
337
|
+
value: r,
|
|
338
|
+
"data-testid": "notification-list-textfield-search",
|
|
339
|
+
sx: {
|
|
340
|
+
"& .MuiInputBase-root": {
|
|
341
|
+
height: "2.4em",
|
|
342
|
+
width: { xs: "100%", sm: "190px" }
|
|
343
|
+
},
|
|
344
|
+
flex: { xs: 1, sm: 1 }
|
|
345
|
+
}
|
|
346
|
+
}
|
|
347
|
+
),
|
|
348
|
+
(!h.isTecho || (d == null ? void 0 : d["create.manage.notificationlist"])) && /* @__PURE__ */ e(
|
|
349
|
+
ve,
|
|
350
|
+
{
|
|
351
|
+
size: "small",
|
|
352
|
+
variant: "contained",
|
|
353
|
+
onClick: () => {
|
|
354
|
+
s("button_click", {
|
|
355
|
+
button_name: "notification-list-add-button",
|
|
356
|
+
button_type: "navigate",
|
|
357
|
+
button_id: "notification-list-button-add"
|
|
358
|
+
}), u(5);
|
|
359
|
+
},
|
|
360
|
+
"data-testid": "notification-list-button-add",
|
|
361
|
+
sx: { whiteSpace: "nowrap" },
|
|
362
|
+
children: f("Add")
|
|
363
|
+
}
|
|
364
|
+
)
|
|
365
|
+
] })
|
|
366
|
+
] })
|
|
367
|
+
] }),
|
|
368
|
+
/* @__PURE__ */ e(k, { size: { xs: 12 }, children: /* @__PURE__ */ e(
|
|
369
|
+
Ce,
|
|
370
|
+
{
|
|
371
|
+
columns: oe,
|
|
372
|
+
actions: re,
|
|
373
|
+
tableData: O,
|
|
374
|
+
paginationConfig: {
|
|
375
|
+
pagination: !1
|
|
376
|
+
},
|
|
377
|
+
styleConfig: {
|
|
378
|
+
tableStyle: {
|
|
379
|
+
maxHeight: 40
|
|
380
|
+
}
|
|
381
|
+
},
|
|
382
|
+
handleSort: ue,
|
|
383
|
+
isLoading: B,
|
|
384
|
+
dataTestId: "notification-list-customizedtable"
|
|
385
|
+
}
|
|
386
|
+
) })
|
|
387
|
+
] })
|
|
388
|
+
]
|
|
389
|
+
}
|
|
390
|
+
);
|
|
391
|
+
}
|
|
392
|
+
const Ze = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
393
|
+
__proto__: null,
|
|
394
|
+
default: Oe
|
|
395
|
+
}, Symbol.toStringTag, { value: "Module" }));
|
|
396
|
+
export {
|
|
397
|
+
ke as M,
|
|
398
|
+
Ze as N,
|
|
399
|
+
Xe as c,
|
|
400
|
+
Ye as u
|
|
401
|
+
};
|
|
402
|
+
//# sourceMappingURL=NotificationList-CUZSWp2J.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"NotificationList-CUZSWp2J.js","sources":["../src/services/Notifications.js","../src/views/Notifications/Skeletons/NotificationsSkeletons.jsx","../src/views/Notifications/NotificationList.jsx"],"sourcesContent":["import { api } from \"@/common/interceptors/AxiosInterceptor\";\nimport GeneralUtil from \"@/common/services/util/GeneralUtil\";\nexport const toggleActiveState = ({ id, state }) =>\n api.put(\n GeneralUtil.isTecho ? `notificationtype/toggleActive?id=${id}&is_active=${state === \"INACTIVE\" ? \"true\" : \"false\"}` : `notificationtype/${id}?is_active=${state === \"INACTIVE\" ? \"true\" : \"false\"}`\n );\n \nexport const createNotification = (params) =>\n api.post(GeneralUtil.isTecho? \"notificationtype/create\" : \"notificationtype\", params);\n\nexport const updateNotification = (params) =>\n api.post(GeneralUtil.isTecho? \"notificationtype/update\" : \"notificationtype\", params);\n","import PropTypes from \"prop-types\";\nimport React from \"react\";\n\nimport { useSelector } from \"react-redux\";\nimport { getUseSkeleton } from \"@/store/reducers/SkeletonReducer\";\n\nexport const NotificationListSkeleton = ({ children, isLoading }) => {\n const useSkeleton = useSelector(getUseSkeleton);\n if (!useSkeleton) {\n return children;\n }\n if (!isLoading) {\n return children;\n }\n\n return (\n <div className=\"flex flex-col gap-2\">\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\nNotificationListSkeleton.propTypes = {\n children: PropTypes.any,\n isLoading: PropTypes.any,\n};\n\nexport const ManageNotificationSkeleton = ({ children, isLoading }) => {\n const useSkeleton = useSelector(getUseSkeleton);\n if (!useSkeleton) {\n return children;\n }\n if (!isLoading) {\n return children;\n }\n\n return (\n <div className=\"flex flex-col w-full md:w-[650px] bg-white \">\n <div className=\"px-2 py-2 flex items-center \">\n <div className=\"bg-gray-300 animate-pulse rounded-sm w-60 h-10\"></div>\n </div>\n <hr></hr>\n <div className=\"flex flex-col w-full space-y-2 p-2\">\n <div className=\"flex flex-col space-y-2\">\n <button className=\"bg-gray-300 animate-pulse rounded-sm w-40 h-5 mr-[100px]\"></button>\n <button className=\"bg-gray-300 animate-pulse rounded-sm w-full h-10 \"></button>\n </div>\n <div className=\"flex flex-col space-y-2 \">\n <button className=\"bg-gray-300 animate-pulse rounded-sm w-40 h-5 mr-[100px]\"></button>\n <button className=\"bg-gray-300 animate-pulse rounded-sm w-full h-10 \"></button>\n </div>\n <div className=\"flex flex-col space-y-2 \">\n <button className=\"bg-gray-300 animate-pulse rounded-sm w-40 h-5 mr-[100px]\"></button>\n <button className=\"bg-gray-300 animate-pulse rounded-sm w-full h-10 \"></button>\n </div>\n <div className=\"flex flex-col space-y-2 \">\n <button className=\"bg-gray-300 animate-pulse rounded-sm w-40 h-5 mr-[100px]\"></button>\n <button className=\"bg-gray-300 animate-pulse rounded-sm w-full h-10 \"></button>\n </div>\n <div className=\"flex flex-col space-y-2 \">\n <button className=\"bg-gray-300 animate-pulse rounded-sm w-40 h-5 mr-[100px]\"></button>\n <button className=\"bg-gray-300 animate-pulse rounded-sm w-full h-10 \"></button>\n </div>\n </div>\n <hr></hr>\n <div className=\"px-2 py-2 w-full flex space-x-3 items-center justify-end \">\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 </div>\n );\n};\n\nManageNotificationSkeleton.propTypes = {\n children: PropTypes.any,\n isLoading: PropTypes.any,\n};\n","import {\n lazy,\n default as React,\n Suspense,\n useCallback,\n useEffect,\n useMemo,\n useRef,\n useState,\n} from \"react\";\nimport { useTranslateProvider } from \"@/common/languageTranslator/TranslationContext\";\nimport { toggleActiveState } from \"../../services/Notifications\";\nimport { getAllRoleList, getNotifications } from \"@/common/services/GlobalApis\";\nimport SyncWithServerDialog from \"@/common/syncWithServer/SyncWithServerDialog\";\nimport { showToast } from \"@/common/toaster/toaster\";\nimport CustomConfirmationModal from \"@/views/custom-components/CustomConfirmationModal\";\nconst ManageNotification = lazy(() => import(\"./ManageNotification\"));\nconst NotificationFlywayQuery = lazy(() => import(\"./NotificationFlywayQuery\"));\nimport { Box, Button, Card, Checkbox, debounce, FormControlLabel, TextField, Typography } from \"@mui/material\";\nimport { Grid } from \"@mui/system\";\nimport { NotificationListSkeleton } from \"./Skeletons/NotificationsSkeletons\";\nimport useTrackEvent from \"@/hooks/useTrackEvent\";\nimport CustomizedTable from \"@/views/custom-components/CustomizedTable/CustomizedTableV2\";\nimport { faBars, faPen } from \"@fortawesome/free-solid-svg-icons\";\nimport { FontAwesomeIcon } from \"@fortawesome/react-fontawesome\";\nimport GeneralUtil from \"@/common/services/util/GeneralUtil\";\nimport { getAssignedFeatures } from \"@/utils/feature\";\n\n/**\n *\n * @module NotificationList\n * @returns {JSX.element}\n *\n */\nexport default function NotificationList() {\n const trackEvent = useTrackEvent();\n const [search, setSearch] = useState(\"\");\n const [notifications, setNotifications] = useState([]);\n const [filteredNotifications, setFilteredNotifications] = useState([]);\n const [openModal, setOpenModal] = useState(\"\");\n const [rowData, setRowData] = useState({});\n const [roleData, setRoleData] = useState([]);\n const { translate } = useTranslateProvider();\n const [featureUuid, setFeatureUuid] = useState(null);\n const [isLoading, setIsLoading] = useState(false);\n const [rights, setRights] = useState({});\n const defaultColumns = [\n {\n field: \"notificationName\",\n label: \"Name\",\n sortable: true,\n sortOrder: \"asc\",\n align: \"left\",\n },\n {\n field: \"code\",\n label: \"Code\",\n sortable: true,\n sortOrder: \"asc\",\n align: \"left\",\n },\n {\n field: \"notificationType\",\n label: \"Type\",\n align: \"left\",\n render: (row) => {\n return <Typography mt={0.5}>{row.notificationType === 'WEB' ? 'WEB' : 'MOBILE'}</Typography>;\n }\n },\n {\n field: \"state\",\n label: \"State\",\n sortable: true,\n sortOrder: \"asc\",\n align: \"left\",\n },\n { field: \"Actions\", label: \"Actions\", align: \"left\" },\n ];\n const [columns, setColumns] = useState(defaultColumns);\n const [isActive, setisActive] = useState(true);\n const [isMobile, setisMobile] = useState(true);\n\n const isActiveRef = useRef(isActive);\n const isMobileRef = useRef(isMobile);\n\n useEffect(() => {\n isActiveRef.current = isActive;\n }, [isActive]);\n\n useEffect(() => {\n isMobileRef.current = isMobile;\n }, [isMobile]);\n\n /**\n * Toggles the active/inactive status of a notification.\n * @async\n * @function toggleActiveStatus\n * @returns {Promise<void>} A promise that resolves when the active status has been toggled and notifications reloaded.\n */\n const toggleActiveStatus = async () => {\n try {\n setIsLoading((cur) => !cur);\n await toggleActiveState({ id: rowData.id, state: rowData.state });\n setOpenModal(\"\");\n const { data } = await getNotifications();\n setNotifications(data);\n setFilteredNotifications(data);\n showToast({\n type: \"success\",\n message: `State succesfully changed from ${rowData?.state === \"INACTIVE\" ? \"inactive\" : \"active\"} to ${rowData?.state === \"INACTIVE\" ? \"active\" : \"inactive\"}`,\n });\n setIsLoading((cur) => !cur);\n } catch (error) {\n showToast({\n type: \"error\",\n message: `Error ${error}`,\n });\n setIsLoading((cur) => !cur);\n }\n };\n\n const actions = useMemo(() => (row) => {\n const list = [];\n\n if (!GeneralUtil.isTecho || rights?.['update.manage.notificationlist']) {\n list.push({\n label: \"\",\n icon: (\n <FontAwesomeIcon\n icon={faPen}\n data-testid=\"notificationlist-button-edit\"\n />\n ),\n onClick: (e) => {\n setOpenModal(1);\n setRowData(e);\n },\n });\n }\n\n const currentMenuItems = [];\n if (!GeneralUtil.isTecho || rights?.['update.manage.notificationlist']) {\n currentMenuItems.push({\n label: translate(\n row.state === \"ACTIVE\" ? \"Mark as Inactive\" : \"Mark as Active\"\n ),\n onClick: (e) => {\n setRowData(e);\n setOpenModal(2);\n },\n });\n currentMenuItems.push({\n label: translate(\"Sync With Server\"),\n onClick: (e) => {\n if (!e.uuid) {\n showToast({\n type: \"info\",\n message: `No configuration found. Please open the respective feature item and save it.`,\n });\n return;\n }\n setOpenModal(4);\n setFeatureUuid(e?.uuid);\n setRowData(e);\n },\n });\n currentMenuItems.push({\n label: translate(\"Show Flyway Query\"),\n onClick: (e) => {\n setOpenModal(3);\n setRowData(e);\n },\n });\n }\n\n if (currentMenuItems.length > 0) {\n list.push({\n label: \"\",\n icon: (\n <FontAwesomeIcon\n icon={faBars}\n data-testid=\"notificationlist-button-menu\"\n />\n ),\n menuItems: currentMenuItems,\n });\n }\n\n return list;\n }, [rights, translate]);\n\n const debouncedFilter = useCallback(\n debounce((searchValue) => {\n const filteredData = notifications.filter(d =>\n d.notificationName?.toLowerCase().includes(searchValue) &&\n d.state === (isActiveRef.current ? 'ACTIVE' : 'INACTIVE') &&\n d.notificationType === (isMobileRef.current ? 'MO' : 'WEB')\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 /**\n * Handles the search input to filter notifications by name.\n * @function handleSearch\n * @param {Object} e - The event object from the input field.\n * @param {string} e.target.value - The current value in the search input field.\n */\n const handleSearch = (e) => {\n const searchValue = e.target.value.toLowerCase();\n setSearch(searchValue);\n debouncedFilter(searchValue);\n };\n\n /**\n * Handles sorting of the notification list based on the specified column.\n * @function handleSort\n */\n const handleSort = (column) => {\n const order = column.sortOrder === \"asc\" ? \"desc\" : \"asc\";\n setColumns((prev) =>\n prev.map((col) => {\n if (col.field === column.field) {\n return { ...col, sortOrder: order };\n }\n return col;\n })\n );\n\n const sortedData = [...filteredNotifications].sort((a, b) => {\n const valA = a[column.field]?.toString().toLowerCase();\n const valB = b[column.field]?.toString().toLowerCase();\n\n if (valA < valB) {\n return order === \"asc\" ? -1 : 1;\n }\n if (valA > valB) {\n return order === \"asc\" ? 1 : -1;\n }\n return 0;\n });\n\n setFilteredNotifications(sortedData);\n };\n\n /**\n * Loads initial data for notifications and roles when the component is mounted or when `openModal` changes.\n * @function useEffect\n * @param {boolean} openModal - The state that controls whether a modal is open. Triggers the hook to reload data when it changes.\n */\n\n const loadInitialData = async () => {\n try {\n setIsLoading((cur) => !cur);\n const { data } = await getNotifications();\n setNotifications(data);\n const filteredData = data.filter(d => d.notificationType === 'MO' && d.state === 'ACTIVE');\n setFilteredNotifications(filteredData);\n if (!roleData.length) {\n const { data: roleData } = await getAllRoleList();\n setRoleData(roleData);\n }\n const { data: assignedFeatures } = await getAssignedFeatures(\"techo.manage.notification\");\n setRights(JSON.parse(assignedFeatures));\n setIsLoading((cur) => !cur);\n setSearch('');\n } catch (error) {\n console.error(\"error\", error);\n setIsLoading((cur) => !cur);\n }\n };\n\n useEffect(() => {\n loadInitialData();\n }, []);\n\n const handleFilter = (value, filterType) => {\n const nextIsActive =\n filterType === 'status' ? value : isActive;\n\n const nextIsMobile =\n filterType === 'notificationType' ? value : isMobile;\n\n setisActive(nextIsActive);\n setisMobile(nextIsMobile);\n\n if (search) {\n debouncedFilter(search);\n } else {\n setFilteredNotifications(\n notifications.filter(d =>\n d.state === (nextIsActive ? 'ACTIVE' : 'INACTIVE') &&\n d.notificationType === (nextIsMobile ? 'MO' : 'WEB')\n )\n );\n }\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 <Suspense>\n <ManageNotification\n open={openModal === 1 || openModal === 5}\n handleClose={() => setOpenModal(\"\")}\n data={openModal === 1 ? rowData : null}\n roleData={roleData}\n setNotifications={loadInitialData}\n data-testid=\"notification-list-managenotification-dialog\"\n />\n </Suspense>\n <Suspense>\n <NotificationFlywayQuery\n open={openModal === 3}\n handleClose={() => setOpenModal(\"\")}\n data={rowData}\n roleData={roleData}\n />\n </Suspense>\n <CustomConfirmationModal\n title={\"CONFIRM ACTION\"}\n open={openModal === 2}\n description={`Are you sure you want to change the state ${rowData?.state === \"INACTIVE\" ? \"inactive\" : \"active\"} to ${rowData?.state === \"INACTIVE\" ? \"active\" : \"inactive\"}`}\n handleClick={toggleActiveStatus}\n handleClose={() => setOpenModal(\"\")}\n dataTestId=\"notification-list-customconfirmationmodal-dialog\"\n />\n <SyncWithServerDialog\n isOpen={Boolean(featureUuid)}\n handleClose={() => setFeatureUuid(() => null)}\n featureUUID={featureUuid}\n dataTestId=\"notification-list-syncwithserverdialog-dialog\"\n />\n <NotificationListSkeleton isLoading={isLoading}>\n <Grid container className=\"flex justify-between\">\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(\"Notification Configuration\")}\n </Typography>\n </Grid>\n <Box className=\"flex flex-col sm:flex-row sm:items-center gap-3 w-full sm:w-auto\">\n <Box className=\"flex items-center gap-3\">\n <FormControlLabel\n control={\n <Checkbox\n checked={isActive}\n onChange={(e) =>\n handleFilter(e.target.checked, 'status')\n }\n data-testid=\"notifications-checkbox-include-active\"\n />\n }\n label={translate(\"Active\")}\n slotProps={{\n typography: {\n className: \"custom-label\",\n },\n }}\n />\n <FormControlLabel\n control={\n <Checkbox\n checked={isMobile}\n onChange={(e) =>\n handleFilter(e.target.checked, 'notificationType')\n }\n data-testid=\"notifications-checkbox-include-mobile\"\n />\n }\n label={translate(\"Mobile\")}\n slotProps={{\n typography: {\n className: \"custom-label\",\n },\n }}\n />\n </Box>\n <Box className=\"flex items-center gap-3 w-full sm:w-auto\">\n <TextField\n id=\"searchQuery\"\n placeholder=\"Search Text\"\n size=\"small\"\n onChange={handleSearch}\n className=\"m-0 p-0 bg-white\"\n value={search}\n data-testid=\"notification-list-textfield-search\"\n sx={{\n \"& .MuiInputBase-root\": {\n height: \"2.4em\",\n width: { xs: \"100%\", sm: \"190px\" },\n },\n flex: { xs: 1, sm: 1 }\n }}\n />\n {(!GeneralUtil.isTecho || rights?.['create.manage.notificationlist']) && (\n <Button\n size=\"small\"\n variant=\"contained\"\n onClick={() => {\n trackEvent(\"button_click\", {\n button_name: \"notification-list-add-button\",\n button_type: \"navigate\",\n button_id: \"notification-list-button-add\",\n });\n setOpenModal(5);\n }}\n data-testid=\"notification-list-button-add\"\n sx={{ whiteSpace: 'nowrap' }}\n >\n {translate(\"Add\")}\n </Button>\n )}\n </Box>\n </Box>\n </Grid>\n <Grid size={{ xs: 12 }}>\n <CustomizedTable\n columns={columns}\n actions={actions}\n tableData={filteredNotifications}\n paginationConfig={{\n pagination: false,\n }}\n styleConfig={{\n tableStyle: {\n maxHeight: 40,\n },\n }}\n handleSort={handleSort}\n isLoading={isLoading}\n dataTestId=\"notification-list-customizedtable\"\n />\n </Grid>\n </NotificationListSkeleton>\n </Card>\n );\n}\n"],"names":["toggleActiveState","id","state","api","GeneralUtil","createNotification","params","updateNotification","NotificationListSkeleton","children","isLoading","useSelector","getUseSkeleton","jsxs","jsx","PropTypes","ManageNotificationSkeleton","ManageNotification","lazy","NotificationFlywayQuery","NotificationList","trackEvent","useTrackEvent","search","setSearch","useState","notifications","setNotifications","filteredNotifications","setFilteredNotifications","openModal","setOpenModal","rowData","setRowData","roleData","setRoleData","translate","useTranslateProvider","featureUuid","setFeatureUuid","setIsLoading","rights","setRights","defaultColumns","row","Typography","columns","setColumns","isActive","setisActive","isMobile","setisMobile","isActiveRef","useRef","isMobileRef","useEffect","toggleActiveStatus","cur","data","getNotifications","showToast","error","actions","useMemo","list","FontAwesomeIcon","faPen","e","currentMenuItems","faBars","debouncedFilter","useCallback","debounce","searchValue","filteredData","_a","d","handleSearch","handleSort","column","order","prev","col","sortedData","b","valA","valB","_b","loadInitialData","getAllRoleList","assignedFeatures","getAssignedFeatures","handleFilter","value","filterType","nextIsActive","nextIsMobile","Card","Suspense","CustomConfirmationModal","SyncWithServerDialog","Grid","Box","FormControlLabel","Checkbox","TextField","Button","CustomizedTable"],"mappings":";;;;;;;;;;;;;;;;;;;AAEO,MAAMA,KAAoB,CAAC,EAAE,IAAAC,GAAI,OAAAC,EAAK,MAC3CC,EAAI;AAAA,EACFC,EAAY,UAAU,oCAAoCH,CAAE,cAAcC,MAAU,aAAa,SAAS,OAAO,KAAK,oBAAoBD,CAAE,cAAcC,MAAU,aAAa,SAAS,OAAO;AACrM,GAEaG,KAAqB,CAACC,MACjCH,EAAI,KAAKC,EAAY,UAAS,4BAA4B,oBAAoBE,CAAM,GAEzEC,KAAqB,CAACD,MACjCH,EAAI,KAAKC,EAAY,UAAS,4BAA4B,oBAAoBE,CAAM,GCLzEE,KAA2B,CAAC,EAAE,UAAAC,GAAU,WAAAC,QAE/C,CADgBC,EAAYC,CAAc,KAI1C,CAACF,IACID,IAIP,gBAAAI,EAAC,OAAA,EAAI,WAAU,uBACb,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,gBAAAC,EAAC,OAAA,EAAI,WAAU,mEAAA,CAAmE;AAAA,MAClF,gBAAAA,EAAC,OAAA,EAAI,WAAU,0DAAA,CAA0D;AAAA,IAAA,EAAA,CAC3E;AAAA,EAAA,GACF;AAAA,EAEA,gBAAAA,EAAC,OAAA,EAAI,WAAU,oDA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AA,cAEd,aAAa;AAAA,gBACX,YAAY;AAAA,kBACV,WAAW;AAAA,gBAAA;AAAA,cACb;AAAA,cAEF,YAAAkD;AAAA,cACA,WAAApE;AAAA,cACA,YAAW;AAAA,YAAA;AAAA,UAAA,EACb,CACF;AAAA,QAAA,EAAA,CACF;AAAA,MAAA;AAAA,IAAA;AAAA,EAAA;AAGN;;;;;"}
|
package/dist/{OtherTypeEventConfigModal-ZnCGWm9v.js → OtherTypeEventConfigModal-dXt2qDg_.js}
RENAMED
|
@@ -11,7 +11,7 @@ import M from "@/views/custom-components/CustomTextField";
|
|
|
11
11
|
import { retrieveAllConfigured as De, execute as de, getNotificationTypeList as Ke } from "@/common/services/GlobalApis";
|
|
12
12
|
import { showToast as je } from "@/common/toaster/toaster";
|
|
13
13
|
import qe from "@/hooks/useTrackEvent";
|
|
14
|
-
import "./ManageEventConfiguration-
|
|
14
|
+
import "./ManageEventConfiguration-0YBDaxOI.js";
|
|
15
15
|
import { useTranslateProvider as Ye } from "@/common/languageTranslator/TranslationContext";
|
|
16
16
|
import { faXmark as Je } from "@fortawesome/free-solid-svg-icons";
|
|
17
17
|
import { FontAwesomeIcon as Be } from "@fortawesome/react-fontawesome";
|
|
@@ -1950,4 +1950,4 @@ bt.propTypes = {
|
|
|
1950
1950
|
export {
|
|
1951
1951
|
bt as default
|
|
1952
1952
|
};
|
|
1953
|
-
//# sourceMappingURL=OtherTypeEventConfigModal-
|
|
1953
|
+
//# sourceMappingURL=OtherTypeEventConfigModal-dXt2qDg_.js.map
|