amp-workflow-ui 0.1.14 → 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 +6 -6
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +6 -6
- package/dist/index.mjs.map +1 -1
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -1179,7 +1179,7 @@ function ApprovalWorkflow({
|
|
|
1179
1179
|
const filteredSelectedRequestArray = React7__default.default.useMemo(() => {
|
|
1180
1180
|
if (!debouncedSearchTerm) return selectedRequestArray;
|
|
1181
1181
|
const q = debouncedSearchTerm.toLowerCase();
|
|
1182
|
-
return selectedRequestArray.filter((item) => {
|
|
1182
|
+
return selectedRequestArray == null ? void 0 : selectedRequestArray.filter((item) => {
|
|
1183
1183
|
const name = ((item == null ? void 0 : item.activity_name) || "").toString().toLowerCase();
|
|
1184
1184
|
const desc = ((item == null ? void 0 : item.description_data) || "").toString().toLowerCase();
|
|
1185
1185
|
return name.includes(q) || desc.includes(q);
|
|
@@ -1188,7 +1188,7 @@ function ApprovalWorkflow({
|
|
|
1188
1188
|
const filteredAllRequestArray = React7__default.default.useMemo(() => {
|
|
1189
1189
|
if (!debouncedSearchTerm) return allRequestArray;
|
|
1190
1190
|
const q = debouncedSearchTerm.toLowerCase();
|
|
1191
|
-
return allRequestArray.filter((item) => {
|
|
1191
|
+
return allRequestArray == null ? void 0 : allRequestArray.filter((item) => {
|
|
1192
1192
|
const name = ((item == null ? void 0 : item.activity_name) || "").toString().toLowerCase();
|
|
1193
1193
|
const desc = ((item == null ? void 0 : item.description_data) || "").toString().toLowerCase();
|
|
1194
1194
|
return name.includes(q) || desc.includes(q);
|
|
@@ -1197,7 +1197,7 @@ function ApprovalWorkflow({
|
|
|
1197
1197
|
const filteredPendingRequestArray = React7__default.default.useMemo(() => {
|
|
1198
1198
|
if (!debouncedSearchTerm) return pendingRequestArray;
|
|
1199
1199
|
const q = debouncedSearchTerm.toLowerCase();
|
|
1200
|
-
return pendingRequestArray.filter((item) => {
|
|
1200
|
+
return pendingRequestArray == null ? void 0 : pendingRequestArray.filter((item) => {
|
|
1201
1201
|
const name = ((item == null ? void 0 : item.activity_name) || "").toString().toLowerCase();
|
|
1202
1202
|
const desc = ((item == null ? void 0 : item.description_data) || "").toString().toLowerCase();
|
|
1203
1203
|
return name.includes(q) || desc.includes(q);
|
|
@@ -1514,7 +1514,7 @@ function ApprovalWorkflow({
|
|
|
1514
1514
|
);
|
|
1515
1515
|
const filterRejectForLevelZero = (statusList2, info2) => {
|
|
1516
1516
|
if (!(info2 == null ? void 0 : info2.isLevelZero)) return statusList2;
|
|
1517
|
-
return statusList2.filter((item) => item.status !== 3);
|
|
1517
|
+
return statusList2 == null ? void 0 : statusList2.filter((item) => item.status !== 3);
|
|
1518
1518
|
};
|
|
1519
1519
|
const redir = buildRedirectionUrl(info);
|
|
1520
1520
|
const currentStatus = ((_c2 = (_b2 = (_a2 = info == null ? void 0 : info.levels) == null ? void 0 : _a2.find(
|
|
@@ -1841,7 +1841,7 @@ function ApprovalWorkflow({
|
|
|
1841
1841
|
);
|
|
1842
1842
|
const filterRejectForLevelZero = (statusList2, info2) => {
|
|
1843
1843
|
if (!(info2 == null ? void 0 : info2.isLevelZero)) return statusList2;
|
|
1844
|
-
return statusList2.filter((item) => item.status !== 3);
|
|
1844
|
+
return statusList2 == null ? void 0 : statusList2.filter((item) => item.status !== 3);
|
|
1845
1845
|
};
|
|
1846
1846
|
const redir = buildRedirectionUrl(info);
|
|
1847
1847
|
const currentStatus = ((_c2 = (_b2 = (_a2 = info == null ? void 0 : info.levels) == null ? void 0 : _a2.find(
|
|
@@ -2165,7 +2165,7 @@ function ApprovalWorkflow({
|
|
|
2165
2165
|
const statusList = currentLevel ? currentLevel.status_list : [];
|
|
2166
2166
|
const filterRejectForLevelZero = (statusList2, info2) => {
|
|
2167
2167
|
if (!(info2 == null ? void 0 : info2.isLevelZero)) return statusList2;
|
|
2168
|
-
return statusList2.filter((item) => item.status !== 3);
|
|
2168
|
+
return statusList2 == null ? void 0 : statusList2.filter((item) => item.status !== 3);
|
|
2169
2169
|
};
|
|
2170
2170
|
const redir = buildRedirectionUrl(info);
|
|
2171
2171
|
const currentStatus = ((_d2 = (_c2 = (_b2 = info == null ? void 0 : info.levels) == null ? void 0 : _b2.find(
|