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 CHANGED
@@ -321,9 +321,11 @@ function SendBackDialog({
321
321
  autoHideDuration: 3e3,
322
322
  onClose: handleCloseSnackbar,
323
323
  anchorOrigin: { vertical: "top", horizontal: "right" },
324
+ sx: { zIndex: 9999999 },
324
325
  children: /* @__PURE__ */ jsxRuntime.jsx(
325
326
  material.Alert,
326
327
  {
328
+ variant: "filled",
327
329
  onClose: handleCloseSnackbar,
328
330
  severity: snackbar.severity,
329
331
  sx: {
@@ -479,9 +481,11 @@ function ApproveDialog({
479
481
  autoHideDuration: 3e3,
480
482
  onClose: handleCloseSnackbar,
481
483
  anchorOrigin: { vertical: "top", horizontal: "right" },
484
+ sx: { zIndex: 9999999 },
482
485
  children: /* @__PURE__ */ jsxRuntime.jsx(
483
486
  material.Alert,
484
487
  {
488
+ variant: "filled",
485
489
  onClose: handleCloseSnackbar,
486
490
  severity: snackbar.severity,
487
491
  sx: {
@@ -696,9 +700,11 @@ function RejectDialog({
696
700
  autoHideDuration: 3e3,
697
701
  onClose: handleCloseSnackbar,
698
702
  anchorOrigin: { vertical: "top", horizontal: "right" },
703
+ sx: { zIndex: 9999999 },
699
704
  children: /* @__PURE__ */ jsxRuntime.jsx(
700
705
  material.Alert,
701
706
  {
707
+ variant: "filled",
702
708
  onClose: handleCloseSnackbar,
703
709
  severity: snackbar.severity,
704
710
  sx: {
@@ -854,9 +860,11 @@ function OnHoldDialog({
854
860
  autoHideDuration: 3e3,
855
861
  onClose: handleCloseSnackbar,
856
862
  anchorOrigin: { vertical: "top", horizontal: "right" },
863
+ sx: { zIndex: 9999999 },
857
864
  children: /* @__PURE__ */ jsxRuntime.jsx(
858
865
  material.Alert,
859
866
  {
867
+ variant: "filled",
860
868
  onClose: handleCloseSnackbar,
861
869
  severity: snackbar.severity,
862
870
  sx: {
@@ -1171,7 +1179,7 @@ function ApprovalWorkflow({
1171
1179
  const filteredSelectedRequestArray = React7__default.default.useMemo(() => {
1172
1180
  if (!debouncedSearchTerm) return selectedRequestArray;
1173
1181
  const q = debouncedSearchTerm.toLowerCase();
1174
- return selectedRequestArray.filter((item) => {
1182
+ return selectedRequestArray == null ? void 0 : selectedRequestArray.filter((item) => {
1175
1183
  const name = ((item == null ? void 0 : item.activity_name) || "").toString().toLowerCase();
1176
1184
  const desc = ((item == null ? void 0 : item.description_data) || "").toString().toLowerCase();
1177
1185
  return name.includes(q) || desc.includes(q);
@@ -1180,7 +1188,7 @@ function ApprovalWorkflow({
1180
1188
  const filteredAllRequestArray = React7__default.default.useMemo(() => {
1181
1189
  if (!debouncedSearchTerm) return allRequestArray;
1182
1190
  const q = debouncedSearchTerm.toLowerCase();
1183
- return allRequestArray.filter((item) => {
1191
+ return allRequestArray == null ? void 0 : allRequestArray.filter((item) => {
1184
1192
  const name = ((item == null ? void 0 : item.activity_name) || "").toString().toLowerCase();
1185
1193
  const desc = ((item == null ? void 0 : item.description_data) || "").toString().toLowerCase();
1186
1194
  return name.includes(q) || desc.includes(q);
@@ -1189,7 +1197,7 @@ function ApprovalWorkflow({
1189
1197
  const filteredPendingRequestArray = React7__default.default.useMemo(() => {
1190
1198
  if (!debouncedSearchTerm) return pendingRequestArray;
1191
1199
  const q = debouncedSearchTerm.toLowerCase();
1192
- return pendingRequestArray.filter((item) => {
1200
+ return pendingRequestArray == null ? void 0 : pendingRequestArray.filter((item) => {
1193
1201
  const name = ((item == null ? void 0 : item.activity_name) || "").toString().toLowerCase();
1194
1202
  const desc = ((item == null ? void 0 : item.description_data) || "").toString().toLowerCase();
1195
1203
  return name.includes(q) || desc.includes(q);
@@ -1506,7 +1514,7 @@ function ApprovalWorkflow({
1506
1514
  );
1507
1515
  const filterRejectForLevelZero = (statusList2, info2) => {
1508
1516
  if (!(info2 == null ? void 0 : info2.isLevelZero)) return statusList2;
1509
- return statusList2.filter((item) => item.status !== 3);
1517
+ return statusList2 == null ? void 0 : statusList2.filter((item) => item.status !== 3);
1510
1518
  };
1511
1519
  const redir = buildRedirectionUrl(info);
1512
1520
  const currentStatus = ((_c2 = (_b2 = (_a2 = info == null ? void 0 : info.levels) == null ? void 0 : _a2.find(
@@ -1833,7 +1841,7 @@ function ApprovalWorkflow({
1833
1841
  );
1834
1842
  const filterRejectForLevelZero = (statusList2, info2) => {
1835
1843
  if (!(info2 == null ? void 0 : info2.isLevelZero)) return statusList2;
1836
- return statusList2.filter((item) => item.status !== 3);
1844
+ return statusList2 == null ? void 0 : statusList2.filter((item) => item.status !== 3);
1837
1845
  };
1838
1846
  const redir = buildRedirectionUrl(info);
1839
1847
  const currentStatus = ((_c2 = (_b2 = (_a2 = info == null ? void 0 : info.levels) == null ? void 0 : _a2.find(
@@ -2157,7 +2165,7 @@ function ApprovalWorkflow({
2157
2165
  const statusList = currentLevel ? currentLevel.status_list : [];
2158
2166
  const filterRejectForLevelZero = (statusList2, info2) => {
2159
2167
  if (!(info2 == null ? void 0 : info2.isLevelZero)) return statusList2;
2160
- return statusList2.filter((item) => item.status !== 3);
2168
+ return statusList2 == null ? void 0 : statusList2.filter((item) => item.status !== 3);
2161
2169
  };
2162
2170
  const redir = buildRedirectionUrl(info);
2163
2171
  const currentStatus = ((_d2 = (_c2 = (_b2 = info == null ? void 0 : info.levels) == null ? void 0 : _b2.find(