amp-workflow-ui 0.1.13 → 0.1.15
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.js +14 -6
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +14 -6
- package/dist/index.mjs.map +1 -1
- package/package.json +1 -1
package/dist/index.mjs
CHANGED
|
@@ -308,9 +308,11 @@ function SendBackDialog({
|
|
|
308
308
|
autoHideDuration: 3e3,
|
|
309
309
|
onClose: handleCloseSnackbar,
|
|
310
310
|
anchorOrigin: { vertical: "top", horizontal: "right" },
|
|
311
|
+
sx: { zIndex: 9999999 },
|
|
311
312
|
children: /* @__PURE__ */ jsx(
|
|
312
313
|
Alert,
|
|
313
314
|
{
|
|
315
|
+
variant: "filled",
|
|
314
316
|
onClose: handleCloseSnackbar,
|
|
315
317
|
severity: snackbar.severity,
|
|
316
318
|
sx: {
|
|
@@ -466,9 +468,11 @@ function ApproveDialog({
|
|
|
466
468
|
autoHideDuration: 3e3,
|
|
467
469
|
onClose: handleCloseSnackbar,
|
|
468
470
|
anchorOrigin: { vertical: "top", horizontal: "right" },
|
|
471
|
+
sx: { zIndex: 9999999 },
|
|
469
472
|
children: /* @__PURE__ */ jsx(
|
|
470
473
|
Alert,
|
|
471
474
|
{
|
|
475
|
+
variant: "filled",
|
|
472
476
|
onClose: handleCloseSnackbar,
|
|
473
477
|
severity: snackbar.severity,
|
|
474
478
|
sx: {
|
|
@@ -683,9 +687,11 @@ function RejectDialog({
|
|
|
683
687
|
autoHideDuration: 3e3,
|
|
684
688
|
onClose: handleCloseSnackbar,
|
|
685
689
|
anchorOrigin: { vertical: "top", horizontal: "right" },
|
|
690
|
+
sx: { zIndex: 9999999 },
|
|
686
691
|
children: /* @__PURE__ */ jsx(
|
|
687
692
|
Alert,
|
|
688
693
|
{
|
|
694
|
+
variant: "filled",
|
|
689
695
|
onClose: handleCloseSnackbar,
|
|
690
696
|
severity: snackbar.severity,
|
|
691
697
|
sx: {
|
|
@@ -841,9 +847,11 @@ function OnHoldDialog({
|
|
|
841
847
|
autoHideDuration: 3e3,
|
|
842
848
|
onClose: handleCloseSnackbar,
|
|
843
849
|
anchorOrigin: { vertical: "top", horizontal: "right" },
|
|
850
|
+
sx: { zIndex: 9999999 },
|
|
844
851
|
children: /* @__PURE__ */ jsx(
|
|
845
852
|
Alert,
|
|
846
853
|
{
|
|
854
|
+
variant: "filled",
|
|
847
855
|
onClose: handleCloseSnackbar,
|
|
848
856
|
severity: snackbar.severity,
|
|
849
857
|
sx: {
|
|
@@ -1158,7 +1166,7 @@ function ApprovalWorkflow({
|
|
|
1158
1166
|
const filteredSelectedRequestArray = React7.useMemo(() => {
|
|
1159
1167
|
if (!debouncedSearchTerm) return selectedRequestArray;
|
|
1160
1168
|
const q = debouncedSearchTerm.toLowerCase();
|
|
1161
|
-
return selectedRequestArray.filter((item) => {
|
|
1169
|
+
return selectedRequestArray == null ? void 0 : selectedRequestArray.filter((item) => {
|
|
1162
1170
|
const name = ((item == null ? void 0 : item.activity_name) || "").toString().toLowerCase();
|
|
1163
1171
|
const desc = ((item == null ? void 0 : item.description_data) || "").toString().toLowerCase();
|
|
1164
1172
|
return name.includes(q) || desc.includes(q);
|
|
@@ -1167,7 +1175,7 @@ function ApprovalWorkflow({
|
|
|
1167
1175
|
const filteredAllRequestArray = React7.useMemo(() => {
|
|
1168
1176
|
if (!debouncedSearchTerm) return allRequestArray;
|
|
1169
1177
|
const q = debouncedSearchTerm.toLowerCase();
|
|
1170
|
-
return allRequestArray.filter((item) => {
|
|
1178
|
+
return allRequestArray == null ? void 0 : allRequestArray.filter((item) => {
|
|
1171
1179
|
const name = ((item == null ? void 0 : item.activity_name) || "").toString().toLowerCase();
|
|
1172
1180
|
const desc = ((item == null ? void 0 : item.description_data) || "").toString().toLowerCase();
|
|
1173
1181
|
return name.includes(q) || desc.includes(q);
|
|
@@ -1176,7 +1184,7 @@ function ApprovalWorkflow({
|
|
|
1176
1184
|
const filteredPendingRequestArray = React7.useMemo(() => {
|
|
1177
1185
|
if (!debouncedSearchTerm) return pendingRequestArray;
|
|
1178
1186
|
const q = debouncedSearchTerm.toLowerCase();
|
|
1179
|
-
return pendingRequestArray.filter((item) => {
|
|
1187
|
+
return pendingRequestArray == null ? void 0 : pendingRequestArray.filter((item) => {
|
|
1180
1188
|
const name = ((item == null ? void 0 : item.activity_name) || "").toString().toLowerCase();
|
|
1181
1189
|
const desc = ((item == null ? void 0 : item.description_data) || "").toString().toLowerCase();
|
|
1182
1190
|
return name.includes(q) || desc.includes(q);
|
|
@@ -1493,7 +1501,7 @@ function ApprovalWorkflow({
|
|
|
1493
1501
|
);
|
|
1494
1502
|
const filterRejectForLevelZero = (statusList2, info2) => {
|
|
1495
1503
|
if (!(info2 == null ? void 0 : info2.isLevelZero)) return statusList2;
|
|
1496
|
-
return statusList2.filter((item) => item.status !== 3);
|
|
1504
|
+
return statusList2 == null ? void 0 : statusList2.filter((item) => item.status !== 3);
|
|
1497
1505
|
};
|
|
1498
1506
|
const redir = buildRedirectionUrl(info);
|
|
1499
1507
|
const currentStatus = ((_c2 = (_b2 = (_a2 = info == null ? void 0 : info.levels) == null ? void 0 : _a2.find(
|
|
@@ -1820,7 +1828,7 @@ function ApprovalWorkflow({
|
|
|
1820
1828
|
);
|
|
1821
1829
|
const filterRejectForLevelZero = (statusList2, info2) => {
|
|
1822
1830
|
if (!(info2 == null ? void 0 : info2.isLevelZero)) return statusList2;
|
|
1823
|
-
return statusList2.filter((item) => item.status !== 3);
|
|
1831
|
+
return statusList2 == null ? void 0 : statusList2.filter((item) => item.status !== 3);
|
|
1824
1832
|
};
|
|
1825
1833
|
const redir = buildRedirectionUrl(info);
|
|
1826
1834
|
const currentStatus = ((_c2 = (_b2 = (_a2 = info == null ? void 0 : info.levels) == null ? void 0 : _a2.find(
|
|
@@ -2144,7 +2152,7 @@ function ApprovalWorkflow({
|
|
|
2144
2152
|
const statusList = currentLevel ? currentLevel.status_list : [];
|
|
2145
2153
|
const filterRejectForLevelZero = (statusList2, info2) => {
|
|
2146
2154
|
if (!(info2 == null ? void 0 : info2.isLevelZero)) return statusList2;
|
|
2147
|
-
return statusList2.filter((item) => item.status !== 3);
|
|
2155
|
+
return statusList2 == null ? void 0 : statusList2.filter((item) => item.status !== 3);
|
|
2148
2156
|
};
|
|
2149
2157
|
const redir = buildRedirectionUrl(info);
|
|
2150
2158
|
const currentStatus = ((_d2 = (_c2 = (_b2 = info == null ? void 0 : info.levels) == null ? void 0 : _b2.find(
|