npm package: @sujog/sujog-ui-module-core
Description: <!-- TODO: update this -->
Author: JaganKumar
Latest version: 1.8.3

<!-- TODO: update this -->

# sujog-ui-module-core

## Install

```bash
npm install --save @egovernments/sujog-ui-module-core
```

## Limitation

```bash
This Package is more specific to sujog-ui's can be used across mission's
```

## Usage

After adding the dependency make sure you have this dependency in

```bash
frontend/micro-ui/web/package.json
```

```json
"@egovernments/sujog-ui-module-core":"^1.5.0",
```

then navigate to App.js

```bash
 frontend/micro-ui/web/src/App.js
```

```jsx
/** add this import **/

import { DigitUI } from "@egovernments/sujog-ui-module-core";


/** inside render Function add  the import for the component **/

  ReactDOM.render(<DigitUI stateCode={stateCode} enabledModules={enabledModules} moduleReducers={moduleReducers} />, document.getElementById("root"));

```

# Mandatory changes to use following version

```
from 1.5.38 add the following utility method in micro-ui-internals/packages/libraries/src/utils/index.js

const createFunction = (functionAsString) => {
  return Function("return " + functionAsString)();
};

export as createFunction;

similarly update line 76 of react-components/src/molecules/CustomDropdown.js

with  
 .filter((opt) => (opt?.hasOwnProperty("active") ? opt.active : true))

```

### Changelog

```bash
1.8.2 build issue fix due to ajv library
1.8.1 sidebar null check fixes
1.8.0 workbench v1.0
1.8.0-beta.5 fix for login screen alignments
1.8.0-beta.4 made the default localisation in globalconfig
1.8.0-beta workbench base version beta release
1.7.0 urban 2.9
1.6.0 urban 2.8
1.5.43 redirection issue fix incase of no roles in selected city
1.5.46 added classname for topbar options dropdown.
1.5.45 aligment issue in edit and logout
1.5.44 updated login scss and alignment issues
1.5.42 fixed the mdms call in login component for dynamic updating
1.5.41 updated the readme content
1.5.40 Updated the login componenet to handle mdms config, which can be accessed from master - commonUiConfig and module - LoginConfig
1.5.39 Show the Toast when password changed and need to logout from profile page
1.5.38 enabled the admin mode for employee login which can be accessed through route employee/user/login?mode=admin and updated to use formcomposerv2
1.5.37 fixed hiding upload drawer icons.
1.5.36 fixed after clicking on change password and then try to save profile without changing password showing error.
1.5.35 fixed user profile email was prefilled when clicking on change password
1.5.34 fixed module not found redirection issue
1.5.33 fixed payment not throwing error page for sanitation
1.5.32 fixed the localisation issue by adding translation to the keys and fixed payment response issue for  sanitation UI
1.5.31 fixed the allservices screen back button for sanitation UI
1.5.30 fixed the home routing issue in error screen
1.5.29 added the readme file
1.5.28 fixed the route issue for profile screen
```

### Contributors

[jagankumar-egov] [nipunarora-eGov] [Tulika-eGov] [Ramkrishna-egov] [nabeelmd-eGov] [anil-egov] [vamshikrishnakole-wtt-egov] 

## Documentation

Documentation Site (https://core.digit.org/guides/developer-guide/ui-developer-guide/sujog-ui)

## Maintainer

- [jagankumar-egov](https://www.github.com/jagankumar-egov)


### Published from DIGIT Frontend 
DIGIT Frontend Repo (https://github.com/egovernments/Digit-Frontend/tree/master)


![Logo](https://s3.ap-south-1.amazonaws.com/works-dev-asset/mseva-white-logo.png)