@egovernments/digit-ui-module-core 0.0.1-sandbox → 0.1.0-rc-optim-01

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.
package/README.md CHANGED
@@ -1,3 +1,5 @@
1
+
2
+
1
3
  # digit-ui-module-core
2
4
 
3
5
  ## Install
@@ -9,7 +11,7 @@ npm install --save @egovernments/digit-ui-module-core
9
11
  ## Limitation
10
12
 
11
13
  ```bash
12
- This Package is more specific to Urban
14
+ This Package is more specific to DIGIT-UI's can be used across mission's
13
15
  ```
14
16
 
15
17
  ## Usage
@@ -20,12 +22,80 @@ After adding the dependency make sure you have this dependency in
20
22
  frontend/micro-ui/web/package.json
21
23
  ```
22
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
+ * Digit.Utils.getDefaultLanguage()
65
+
66
+ ```
67
+ from 1.8.0 beta version add the following utility method in micro-ui/web/micro-ui-internals/packages/libraries/src/utils/index.js
68
+
69
+ const getDefaultLanguage = () => {
70
+ return `${getLocaleDefault()}_${getLocaleRegion()}`;
71
+ };
72
+
73
+ and add its related functions
74
+
75
+ ```
76
+
23
77
  ## Changelog
24
78
 
25
- ### Summary for Version [1.7.35] - 2025-03-20
79
+ ### Summary for Version [1.8.2-beta.1] - 2024-06-05
80
+
81
+ For a detailed changelog, see the [CHANGELOG.md](./CHANGELOG.md) file.
26
82
 
27
- Corrected WhatsNewCard to handle when no data is coming from mdms
28
83
 
29
84
  ### Contributors
30
85
 
31
- [jagankumar-egov] [hari-egov] [mukund-egov]
86
+ [jagankumar-egov] [nipunarora-eGov] [Tulika-eGov] [Ramkrishna-egov] [nabeelmd-eGov] [anil-egov] [vamshikrishnakole-wtt-egov]
87
+
88
+ ## Documentation
89
+
90
+ Documentation Site (https://core.digit.org/guides/developer-guide/ui-developer-guide/digit-ui)
91
+
92
+ ## Maintainer
93
+
94
+ - [jagankumar-egov](https://www.github.com/jagankumar-egov)
95
+
96
+
97
+ ### Published from DIGIT Frontend
98
+ DIGIT Frontend Repo (https://github.com/egovernments/Digit-Frontend/tree/develop)
99
+
100
+
101
+ ![Logo](https://s3.ap-south-1.amazonaws.com/works-dev-asset/mseva-white-logo.png)