@egovernments/digit-ui-module-workbench v1.0.1
digit-ui-module-workbench
Install
npm install --save digit-ui-module-workbench
Limitation
This Package is more specific to DIGIT-UI's can be used across mission's
Usage
After adding the dependency make sure you have this dependency in
frontend/micro-ui/web/package.json
"@egovernments/digit-ui-module-workbench":"0.1.0",
then navigate to App.js
frontend/micro-ui/web/src/App.js
/** add this import **/
import { initWorkbenchComponents } from "@egovernments/digit-ui-module-workbench";
/** inside enabledModules add this new module key **/
const enabledModules = ["workbench"];
/** inside init Function call this function **/
const initDigitUI = () => {
initWorkbenchComponents();
};
In MDMS
Add this configuration to enable this module MDMS Enabling Workbench Module
List of Screens available in this versions were as follows
- Search Master Data // TODO Add more information
- Add Master Data based on selected schema // TODO Add more information
- Update Master data for selected data. // TODO Add more information
Localisation screens
MDMS UI Schema
Data push for any API based on schema
Mandatory changes to use Workbench module
Assuming core module is already updated with 1.5.38+ and related changes were taken
add the following hook method in micro-ui-internals/packages/libraries/src/hooks/useCustomAPIMutationHook.js
- add the following utility method in micro-ui-internals/packages/libraries/src/utils/index.js
didEmployeeHasAtleastOneRole
const didEmployeeHasAtleastOneRole = (roles = []) => {
return roles.some((role) => didEmployeeHasRole(role));
};
- stylesheet link has to be added
<link rel="stylesheet" href="https://unpkg.com/@egovernments/digit-ui-css@1.2.114/dist/index.css" />
Reference commit for the enabling workbench https://github.com/egovernments/DIGIT-OSS/pull/99/commits/6e711bdc005c226c7debd533209681fc77078a3e
Changelog
1.0.0-beta workbench base version beta release
0.0.3 readme updated
0.0.2 readme updated
0.0.1 base version
Contributors
Published from DIGIT Core
Digit Dev Repo (https://github.com/egovernments/Digit-Core/tree/digit-ui-core)
License
MIT © jagankumar-egov
3 days ago
8 days ago
16 days ago
16 days ago
19 days ago
1 month ago
1 month ago
1 month ago
1 month ago
1 month ago
1 month ago
2 months ago
2 months ago
2 months ago
2 months ago
4 months ago
4 months ago
4 months ago
4 months ago
4 months ago
5 months ago
5 months ago
5 months ago
5 months ago
5 months ago
5 months ago
6 months ago
6 months ago
6 months ago
6 months ago
6 months ago
6 months ago
9 months ago
9 months ago
9 months ago
9 months ago