@egovernments/digit-ui-module-core 1.7.0-beta.2 → 1.7.10

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.
Files changed (3) hide show
  1. package/README.md +104 -0
  2. package/dist/index.js +1 -1
  3. package/package.json +13 -5
package/README.md ADDED
@@ -0,0 +1,104 @@
1
+ <!-- TODO: update this -->
2
+
3
+ # digit-ui-module-core
4
+
5
+ ## Install
6
+
7
+ ```bash
8
+ npm install --save @egovernments/digit-ui-module-core
9
+ ```
10
+
11
+ ## Limitation
12
+
13
+ ```bash
14
+ This Package is more specific to DIGIT-UI's can be used across mission's
15
+ ```
16
+
17
+ ## Usage
18
+
19
+ After adding the dependency make sure you have this dependency in
20
+
21
+ ```bash
22
+ frontend/micro-ui/web/package.json
23
+ ```
24
+
25
+ ```json
26
+ "@egovernments/digit-ui-module-core":"^1.5.0",
27
+ ```
28
+
29
+ then navigate to App.js
30
+
31
+ ```bash
32
+ frontend/micro-ui/web/src/App.js
33
+ ```
34
+
35
+ ```jsx
36
+ /** add this import **/
37
+
38
+ import { DigitUI } from "@egovernments/digit-ui-module-core";
39
+
40
+
41
+ /** inside render Function add the import for the component **/
42
+
43
+ ReactDOM.render(<DigitUI stateCode={stateCode} enabledModules={enabledModules} moduleReducers={moduleReducers} />, document.getElementById("root"));
44
+
45
+ ```
46
+
47
+ # Mandatory changes to use following version
48
+
49
+ ```
50
+ from 1.5.38 add the following utility method in micro-ui-internals/packages/libraries/src/utils/index.js
51
+
52
+ const createFunction = (functionAsString) => {
53
+ return Function("return " + functionAsString)();
54
+ };
55
+
56
+ export as createFunction;
57
+
58
+ similarly update line 76 of react-components/src/molecules/CustomDropdown.js
59
+
60
+ with
61
+ .filter((opt) => (opt?.hasOwnProperty("active") ? opt.active : true))
62
+
63
+ ```
64
+
65
+ # Changelog
66
+
67
+ ```bash
68
+ 1.8.0-beta.5 fix for login screen alignments
69
+ 1.8.0-beta.4 made the default localisation in globalconfig
70
+ 1.8.0-beta workbench base version beta release
71
+ 1.7.0 urban 2.9
72
+ 1.6.0 urban 2.8
73
+ 1.5.43 redirection issue fix incase of no roles in selected city
74
+ 1.5.46 added classname for topbar options dropdown.
75
+ 1.5.45 aligment issue in edit and logout
76
+ 1.5.44 updated login scss and alignment issues
77
+ 1.5.42 fixed the mdms call in login component for dynamic updating
78
+ 1.5.41 updated the readme content
79
+ 1.5.40 Updated the login componenet to handle mdms config, which can be accessed from master - commonUiConfig and module - LoginConfig
80
+ 1.5.39 Show the Toast when password changed and need to logout from profile page
81
+ 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
82
+ 1.5.37 fixed hiding upload drawer icons.
83
+ 1.5.36 fixed after clicking on change password and then try to save profile without changing password showing error.
84
+ 1.5.35 fixed user profile email was prefilled when clicking on change password
85
+ 1.5.34 fixed module not found redirection issue
86
+ 1.5.33 fixed payment not throwing error page for sanitation
87
+ 1.5.32 fixed the localisation issue by adding translation to the keys and fixed payment response issue for sanitation UI
88
+ 1.5.31 fixed the allservices screen back button for sanitation UI
89
+ 1.5.30 fixed the home routing issue in error screen
90
+ 1.5.29 added the readme file
91
+ 1.5.28 fixed the route issue for profile screen
92
+ ```
93
+
94
+ # Contributors
95
+
96
+ [jagankumar-egov] [nipunarora-eGov] [Tulika-eGov] [Ramkrishna-egov] [nabeelmd-eGov] [anil-egov] [vamshikrishnakole-wtt-egov]
97
+
98
+ ## Published from DIGIT Core
99
+
100
+ Digit Dev Repo (<https://github.com/egovernments/Digit-Core/tree/digit-ui-core>)
101
+
102
+ ## License
103
+
104
+ MIT © [jagankumar-egov](https://github.com/jagankumar-egov)