@mseva/digit-ui-module-ptr 1.1.94 → 1.1.95
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 +1 -1
- package/dist/index.js.map +1 -1
- package/dist/index.modern.js +7 -5
- package/dist/index.modern.js.map +1 -1
- package/package.json +2 -2
package/dist/index.modern.js
CHANGED
|
@@ -18521,7 +18521,7 @@ function NewApplicationTimeline({
|
|
|
18521
18521
|
return normalized.reverse();
|
|
18522
18522
|
};
|
|
18523
18523
|
const data = useMemo(() => normalizeTimeline(workflowDetails), [workflowDetails]);
|
|
18524
|
-
const sortedData = data || [];
|
|
18524
|
+
const sortedData = (data === null || data === void 0 ? void 0 : data.filter(val => !((val === null || val === void 0 ? void 0 : val.performedAction) === "SAVE_AS_DRAFT"))) || [];
|
|
18525
18525
|
console.log("sortedData", sortedData);
|
|
18526
18526
|
return /*#__PURE__*/React.createElement(React.Fragment, null, /*#__PURE__*/React.createElement("div", {
|
|
18527
18527
|
className: "custom-timeline-container"
|
|
@@ -23787,6 +23787,7 @@ const StatusCount = ({
|
|
|
23787
23787
|
const {
|
|
23788
23788
|
t
|
|
23789
23789
|
} = useTranslation();
|
|
23790
|
+
console.log("status===", status);
|
|
23790
23791
|
return /*#__PURE__*/React.createElement(CheckBox, {
|
|
23791
23792
|
styles: {
|
|
23792
23793
|
height: "unset"
|
|
@@ -23798,7 +23799,8 @@ const StatusCount = ({
|
|
|
23798
23799
|
checked: (_searchParams$applica => {
|
|
23799
23800
|
return searchParams === null || searchParams === void 0 ? void 0 : (_searchParams$applica = searchParams.applicationStatus) === null || _searchParams$applica === void 0 ? void 0 : _searchParams$applica.some(e => e.uuid === status.uuid);
|
|
23800
23801
|
})(),
|
|
23801
|
-
label: `${status.name}
|
|
23802
|
+
label: `${status.name}
|
|
23803
|
+
(${(statusMap === null || statusMap === void 0 ? void 0 : (_statusMap$find = statusMap.find(e => e.statusid === status.uuid)) === null || _statusMap$find === void 0 ? void 0 : _statusMap$find.count) || "-"})`
|
|
23802
23804
|
});
|
|
23803
23805
|
};
|
|
23804
23806
|
|
|
@@ -23820,17 +23822,17 @@ const Status = ({
|
|
|
23820
23822
|
} = Digit.Hooks.useApplicationStatusGeneral({
|
|
23821
23823
|
businessServices
|
|
23822
23824
|
}, {});
|
|
23823
|
-
console.log(
|
|
23825
|
+
console.log("statusData", statusData);
|
|
23824
23826
|
const {
|
|
23825
23827
|
userRoleStates
|
|
23826
23828
|
} = statusData || {};
|
|
23827
23829
|
const translateState = (state, t) => {
|
|
23828
|
-
return
|
|
23830
|
+
return t(`ES_PTR_COMMON_STATUS_${state.state || "CREATED"}`);
|
|
23829
23831
|
};
|
|
23830
23832
|
if (isLoading) {
|
|
23831
23833
|
return /*#__PURE__*/React.createElement(Loader$1, null);
|
|
23832
23834
|
}
|
|
23833
|
-
console.log(
|
|
23835
|
+
console.log("userRoleStates", userRoleStates);
|
|
23834
23836
|
return userRoleStates !== null && userRoleStates !== void 0 && userRoleStates.filter(e => !e.isTerminateState).length || true ? /*#__PURE__*/React.createElement("div", {
|
|
23835
23837
|
className: "status-container"
|
|
23836
23838
|
}, /*#__PURE__*/React.createElement("div", {
|