Skip to content

Commit

Permalink
added checkbox in approved microplan
Browse files Browse the repository at this point in the history
  • Loading branch information
Bhavya-egov committed Dec 6, 2024
1 parent 9f8fb7d commit 68c96f3
Show file tree
Hide file tree
Showing 7 changed files with 37 additions and 10 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
<title>DIGIT</title>
<link rel="stylesheet" href="https://unpkg.com/@egovernments/[email protected]/dist/index.css" />
<link rel="stylesheet" href="https://unpkg.com/@egovernments/[email protected]/dist/index.css" />
<link rel="stylesheet" href="https://unpkg.com/@egovernments/[email protected].1/dist/index.css" />
<link rel="stylesheet" href="https://unpkg.com/@egovernments/[email protected].2/dist/index.css" />


<!-- added below css for hcm-workbench module inclusion-->
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@egovernments/digit-ui-health-css",
"version": "0.2.1",
"version": "0.2.2",
"license": "MIT",
"main": "dist/index.css",
"author": "Jagankumar <[email protected]>",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -199,8 +199,12 @@ header {
.digit-popup-overlay .digit-popup-wrapper {
z-index: 10000;
}
.action-bar-wrap .actionBarClass {
z-index: 10;
.actionBarWrapper {
display: flex ;
justify-content: space-between;
.search-instruction-header{
margin: 0rem;
}
}
.campaign-flow-stepper{
margin-left: -5.625rem;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -356,6 +356,27 @@ export const UICustomizations = {
return null; // Handle any unexpected keys here if needed
}
},
selectionHandler: (e) => {
const ids = e.map((item) => item.original?.id).filter(Boolean).join(',');
const microPlanNames = e
.map((item) => item.original?.name.replace(/&/g, "and"))
.filter(Boolean)
.join(',');
const campaignIds = e.map((item) => item.original?.campaignId).filter(Boolean).join(',');
const updatedName = e?.[0]?.original?.name.replace(/&/g, "and");
window.history.pushState(
{
microName: microPlanNames,
ids: ids,
campaignID: campaignIds,
},
"",
`/${window.contextPath}/employee/campaign/fetch-from-microplan?id=${e?.[0]?.original?.campaignId}&draft=true&fetchBoundary=true&draftBoundary=true&source=microplan&microName=${updatedName}&planConfigurationId=${e?.[0]?.original?.id}`
);
const navEvent = new PopStateEvent("popstate");
window.dispatchEvent(navEvent);

},
},
MyCampaignConfigOngoing: {
preProcess: (data, additionalDetails) => {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -89,6 +89,8 @@
resultsJsonPath: "PlanConfiguration",

enableColumnSort: true,
showCheckBox: true,
checkBoxActionLabel: "HCM_REDIRECT_CAMPAIGN",
tableClassName: "table campaign-table",
},
show: true,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -20,11 +20,11 @@ const ApprovedMicroplans = () => {
<div className="inbox-search-wrapper">
<InboxSearchComposer
configs={MicroplanCampaignSearchConfig?.[0]}
additionalConfig={{
resultsTable: {
onClickRow,
},
}}
// additionalConfig={{
// resultsTable: {
// onClickRow,
// },
// }}
></InboxSearchComposer>
</div>
</React.Fragment>
Expand Down
2 changes: 1 addition & 1 deletion health/micro-ui/web/public/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
<link rel="stylesheet" href="https://unpkg.com/@egovernments/[email protected]/dist/index.css" />
<link rel="stylesheet" href="https://unpkg.com/@egovernments/[email protected]/dist/index.css" />
<!-- added below css for hcm-workbench module inclusion-->
<link rel="stylesheet" href="https://unpkg.com/@egovernments/[email protected].1/dist/index.css" />
<link rel="stylesheet" href="https://unpkg.com/@egovernments/[email protected].2/dist/index.css" />
<meta name="viewport" content="width=device-width, initial-scale=1" />
<meta name="theme-color" content="#00bcd1" />
<title>DIGIT HCM</title>
Expand Down

0 comments on commit 68c96f3

Please sign in to comment.