-
Notifications
You must be signed in to change notification settings - Fork 22
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'console' into abi1-28-11
- Loading branch information
Showing
19 changed files
with
522 additions
and
59 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -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].46/dist/index.css" /> | ||
<link rel="stylesheet" href="https://unpkg.com/@egovernments/[email protected].49/dist/index.css" /> | ||
|
||
<!-- added below css for hcm-workbench module inclusion--> | ||
<!-- <link rel="stylesheet" href="https://unpkg.com/@egovernments/[email protected]/dist/index.css" /> --> | ||
|
2 changes: 1 addition & 1 deletion
2
health/micro-ui/web/micro-ui-internals/packages/css/package.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,6 @@ | ||
{ | ||
"name": "@egovernments/digit-ui-health-css", | ||
"version": "0.1.46", | ||
"version": "0.1.49", | ||
"license": "MIT", | ||
"main": "dist/index.css", | ||
"author": "Jagankumar <[email protected]>", | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
28 changes: 28 additions & 0 deletions
28
...h/micro-ui/web/micro-ui-internals/packages/css/src/pages/employee/fetchFromMicroplan.scss
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,28 @@ | ||
.fetch-from-microplan{ | ||
.h1{ | ||
font-size: 32px; | ||
} | ||
.sandbox-loader-screen{ | ||
height: 100%; | ||
.sandbox-installation-steps{ | ||
margin: 1rem; | ||
} | ||
} | ||
|
||
.digit-infobanner-wrap.info{ | ||
margin: 1rem 0rem; | ||
max-width: 100%; | ||
} | ||
.bg-loader-with-gap-container{ | ||
background: none!important; | ||
|
||
.bg-loader{ | ||
border: .5rem solid theme(digitv2.lightTheme.primary) !important; | ||
border-top-color: white !important; | ||
} | ||
.bg-loader-text{ | ||
color: theme(digitv2.lightTheme.primary) !important; | ||
} | ||
|
||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
57 changes: 57 additions & 0 deletions
57
...-ui/web/micro-ui-internals/packages/modules/microplan/src/components/GenericKpiFromDSS.js
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,57 @@ | ||
import React from 'react'; | ||
import { Card } from '@egovernments/digit-ui-components'; | ||
import { Loader } from '@egovernments/digit-ui-react-components'; | ||
import { useTranslation } from 'react-i18next'; | ||
import useKpiDssSearch from '../hooks/useKpiDssSearch'; | ||
|
||
const GenericKpiFromDSS = (props) => { | ||
const { module, planId, campaignType, planEmployee={}, boundariesForKpi=[] } = props; | ||
|
||
// Create a copy of the boundariesForKpi array | ||
const localBoundariesForKpi = [...boundariesForKpi]; | ||
|
||
|
||
if (localBoundariesForKpi.length === 0) { | ||
const hierarchyLevel = planEmployee?.planData?.[0]?.hierarchyLevel; | ||
const jurisdictionCodes = planEmployee?.planData?.[0]?.jurisdiction; | ||
if(jurisdictionCodes?.length > 0 && hierarchyLevel){ | ||
for (const code of jurisdictionCodes) { | ||
localBoundariesForKpi.push({ | ||
type: hierarchyLevel, | ||
code: code | ||
}); | ||
} | ||
} | ||
} | ||
|
||
const { t } = useTranslation(); | ||
|
||
const { data, loader } = useKpiDssSearch({ | ||
module, | ||
planId, | ||
campaignType, | ||
boundariesForKpi: localBoundariesForKpi | ||
}); | ||
|
||
if (loader) { | ||
return <Loader /> | ||
} | ||
|
||
return ( | ||
data ? ( | ||
<Card> | ||
<div className="kpi-container"> | ||
{Object.keys(data || {}).map((key) => ( | ||
<div key={key} className="kpi-card"> | ||
<h2>{String(data[key] || 0).padStart(2, '0')}</h2> | ||
<p className="kpi-text">{t(key)}</p> | ||
</div> | ||
))} | ||
</div> | ||
</Card> | ||
) : null | ||
); | ||
|
||
}; | ||
|
||
export default GenericKpiFromDSS; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.