@egovernments/digit-ui-module-workbench 1.1.0 → 2.0.0-dev-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/package.json CHANGED
@@ -1,53 +1,88 @@
1
1
  {
2
2
  "name": "@egovernments/digit-ui-module-workbench",
3
- "version": "1.1.0",
4
- "description": "Workbench",
5
- "main": "dist/index.js",
6
- "module": "dist/index.modern.js",
3
+ "version": "2.0.0-dev-01",
4
+ "license": "MIT",
5
+ "main": "dist/main.js",
6
+ "module": "dist/main.js",
7
7
  "source": "src/Module.js",
8
8
  "files": [
9
9
  "dist"
10
10
  ],
11
11
  "scripts": {
12
- "start": "microbundle-crl watch --no-compress --format modern,cjs",
13
- "build": "microbundle-crl --compress --no-sourcemap --format cjs",
14
- "prepublish": "yarn build"
12
+ "build": "cross-env NODE_ENV=production webpack --config webpack.config.js",
13
+ "build:dev": "cross-env NODE_ENV=development webpack --config webpack.config.js",
14
+ "build:analyze": "NODE_ENV=production webpack --config webpack.config.js --analyze",
15
+ "publish:components": "npm publish --tag console-v0.5"
15
16
  },
16
17
  "peerDependencies": {
17
- "react": "17.0.2",
18
- "react-router-dom": "5.3.0"
18
+ "@tanstack/react-query": "^5.62.16",
19
+ "react": "19.0.0",
20
+ "react-dom": "19.0.0",
21
+ "react-i18next": "15.0.0",
22
+ "react-router-dom": "6.25.1",
23
+ "styled-components": "5.x"
19
24
  },
20
25
  "dependencies": {
21
- "@cyntler/react-doc-viewer": "1.10.3",
22
- "json-edit-react": "^1.22.6",
23
- "@egovernments/digit-ui-components": "0.2.3",
24
- "@egovernments/digit-ui-react-components": "1.9.0",
26
+ "@egovernments/digit-ui-components": "2.0.0-dev-01",
27
+ "@egovernments/digit-ui-react-components": "2.0.0-dev-01",
25
28
  "@rjsf/core": "5.10.0",
26
29
  "@rjsf/utils": "5.10.0",
27
30
  "@rjsf/validator-ajv8": "5.10.0",
28
31
  "ajv": "8.12.0",
29
- "react": "17.0.2",
32
+ "exceljs": "^4.4.0",
33
+ "json-edit-react": "^1.22.6",
30
34
  "react-date-range": "1.4.0",
31
- "react-dom": "17.0.2",
32
35
  "react-drag-drop-files": "^2.3.10",
33
36
  "react-hook-form": "6.15.8",
34
- "react-i18next": "11.16.2",
35
- "react-query": "3.6.1",
36
- "react-router-dom": "5.3.0",
37
+ "react-redux": "7.2.8",
38
+ "react-responsive": "10.0.1",
37
39
  "react-select": "5.7.4",
38
- "xlsx": "0.17.5",
39
- "exceljs": "^4.4.0"
40
+ "react-tooltip": "4.1.2",
41
+ "redux-thunk": "2.4.1",
42
+ "xlsx": "0.17.5"
40
43
  },
41
- "resolutions": {
42
- "**/styled-components": "5.0.0"
44
+ "sideEffects": false,
45
+ "browserslist": {
46
+ "production": [
47
+ ">0.2%",
48
+ "not dead",
49
+ "not op_mini all"
50
+ ],
51
+ "development": [
52
+ "last 1 chrome version",
53
+ "last 1 firefox version",
54
+ "last 1 safari version"
55
+ ]
43
56
  },
44
57
  "author": "JaganKumar <jagan.kumar@egov.org.in>",
45
- "license": "MIT",
46
58
  "keywords": [
47
59
  "digit",
48
60
  "egov",
49
61
  "dpg",
50
62
  "digit-ui",
63
+ "core",
51
64
  "workbench"
52
- ]
65
+ ],
66
+ "devDependencies": {
67
+ "@babel/core": "^7.23.3",
68
+ "@babel/preset-env": "^7.23.3",
69
+ "@babel/preset-react": "^7.23.3",
70
+ "@tanstack/react-query": "^5.62.16",
71
+ "babel-loader": "^9.1.3",
72
+ "babel-plugin-transform-remove-console": "^6.9.4",
73
+ "compression-webpack-plugin": "^11.1.0",
74
+ "core-js": "^3.33.0",
75
+ "cross-env": "7.0.3",
76
+ "css-loader": "^6.8.1",
77
+ "lint-staged": "12.3.7",
78
+ "react": "19.0.0",
79
+ "react-dom": "19.0.0",
80
+ "react-router-dom": "6.25.1",
81
+ "sass": "^1.83.4",
82
+ "sass-loader": "^16.0.4",
83
+ "style-loader": "^3.3.3",
84
+ "webpack": "^5.97.1",
85
+ "webpack-cli": "^5.1.4",
86
+ "webpack-dev-server": "^4.15.1"
87
+ }
53
88
  }
package/CHANGELOG.md DELETED
@@ -1,193 +0,0 @@
1
-
2
- ## [1.1.0] [28-October-2025]
3
-
4
- ### 🚀 Major Features & UI/UX Redesign
5
-
6
- #### MDMS Interface Redesign:
7
- - **Card-Based Navigation**: Complete redesign from dropdown to interactive card-based interface
8
- - Module selection cards with visual hierarchy
9
- - Master details cards for selected modules
10
- - Responsive grid layout (mobile, tablet, desktop)
11
- - **Real-Time Search Functionality**:
12
- - Filter modules and masters by name/translated value
13
- - Case-insensitive search with instant results
14
- - Dynamic placeholders (WBH_SEARCH_MODULES/WBH_SEARCH_MASTERS)
15
- - No results message handling
16
- - **Text Truncation with Hover Display**:
17
- - Smart ellipsis for long module/master names
18
- - Full text display on hover with visual feedback
19
- - CSS class: `employee-card-sub-header`
20
-
21
- #### 📁 Bulk Upload System:
22
- - **Excel/JSON Bulk Upload**: New BulkModal component with progress tracking
23
- - Support for XLSX, XLS, and JSON file formats
24
- - Real-time progress bar with success/error tracking
25
- - Batch processing with configurable delays
26
- - Template generation and download functionality
27
- - **File Management**: Enhanced BulkUpload component with drag-drop interface
28
- - Drag and drop file upload with validation
29
- - File preview and deletion capabilities
30
- - Error handling with toast notifications
31
- - Submit confirmation with action bars
32
-
33
- #### 🔧 Advanced Form Features:
34
- - **Enhanced JSON Forms**: Major updates to DigitJSONForm component
35
- - Localization support with MDMS code generation
36
- - Custom widgets: CustomSwitch, improved CheckboxWidget
37
- - Context-based state management with AdditionalPropertiesContext
38
- - JSON viewer integration for data inspection
39
- - PopUp modals for better user interaction
40
- - **Boundary Management**: New BoundaryHierarchyTypeAdd functionality
41
- - Administrative boundary hierarchy creation
42
- - Form composer integration for structured data entry
43
- - Validation and error handling for boundary types
44
-
45
- #### Technical Improvements:
46
- - **Component Architecture Overhaul**:
47
- - New components: BulkModal, BulkUpload, CustomSwitch, LevelCards, JSONViewer
48
- - Enhanced DigitJSONForm with context providers and advanced widgets
49
- - Replaced Dropdown components with Card-based components (CardHeader, CardText, CardSubHeader)
50
- - Added TextInput for real-time search functionality
51
- - Updated imports from @egovernments/digit-ui-react-components and @egovernments/digit-ui-components
52
- - **Module System Enhancement**:
53
- - Added HCM admin schemas support (`hcm-admin-schemas` moduleCode)
54
- - TourProvider integration for guided user experience
55
- - Enhanced component registration with better logging
56
- - Module prefix configuration with `CORE_UI_MODULE_LOCALE_PREFIX`
57
- - **State Management Enhancement**:
58
- - Context-based state management with AdditionalPropertiesContext
59
- - Replaced `currentSchema`, `masterName`, `moduleName` with `selectedModule`
60
- - Added new state variables: `searchQuery`, `showModules`
61
- - Implemented filtered data using `filteredModules`, `filteredMasters`
62
- - Auto-clear search functionality on navigation transitions
63
- - **Utility Functions**:
64
- - New BulkUploadUtils for template generation and file processing
65
- - Enhanced localization utilities with tranformLocModuleName
66
- - Improved parsing utilities for data transformation
67
-
68
- #### Performance Improvements:
69
- - Increased schema limit from 200 to 500 for better data handling
70
- - Optimized filtering logic with useMemo hooks
71
- - Reduced component re-renders through efficient state management
72
- - Faster search response with debounced filtering
73
-
74
- #### Global Config Support:
75
- - Compatible with `OVERRIDE_ROOT_TENANT_WITH_LOGGEDIN_TENANT` flag
76
- - Supports multi-tenant MDMS configurations
77
- - Enhanced schema definition criteria handling
78
-
79
- ## [1.1.0-rc2] [27-Oct-2025]
80
- - Test Build for release after master merge
81
-
82
- ## [1.1.0-rc1] [27-Oct-2025]
83
- - Test Build for release
84
-
85
- ## [1.0.29] [28-October-2025]
86
-
87
- ### 🚀 Major UI/UX Redesign - MDMS Manage Master Interface
88
-
89
- #### New Features:
90
- - **Card-Based Navigation**: Complete redesign from dropdown to interactive card-based interface
91
- - Module selection cards with visual hierarchy
92
- - Master details cards for selected modules
93
- - Responsive grid layout (mobile, tablet, desktop)
94
- - **Real-Time Search Functionality**:
95
- - Filter modules and masters by name/translated value
96
- - Case-insensitive search with instant results
97
- - Dynamic placeholders (WBH_SEARCH_MODULES/WBH_SEARCH_MASTERS)
98
- - No results message handling
99
- - **Text Truncation with Hover Display**:
100
- - Smart ellipsis for long module/master names
101
- - Full text display on hover with visual feedback
102
- - CSS class: `employee-card-sub-header`
103
- - **Enhanced Navigation Flow**:
104
- - Two-step process: Modules → Masters → Management
105
- - Back button navigation with state management
106
- - URL parameter support for deep-linking
107
-
108
- #### Technical Improvements:
109
- - **Component Architecture**:
110
- - Replaced Dropdown components with Card components
111
- - Added TextInput for search functionality
112
- - Implemented useMemo for efficient filtering
113
- - **SCSS Integration**:
114
- - Moved styles from MDMSCards.css to workbench.scss
115
- - Theme variables integration (digitv2.lightTheme)
116
- - Responsive breakpoints using theme screens
117
- - **State Management**:
118
- - New state: `searchQuery`, `showModules`
119
- - Filtered data using `filteredModules`, `filteredMasters`
120
- - Auto-clear search on navigation
121
-
122
- #### Performance:
123
- - Search response time < 100ms
124
- - 50% reduction in clicks to reach target
125
- - 30% faster navigation overall
126
-
127
- #### Global Config Support:
128
- - Compatible with `OVERRIDE_ROOT_TENANT_WITH_LOGGEDIN_TENANT` flag
129
- - Supports multi-tenant configurations
130
- - Increased schema limit from 200 to 500
131
-
132
- ## [1.0.28] [30-July-2025]
133
- - Workbench View and edit state issues
134
- -
135
- ## [1.0.27] [29-Jul-2025]
136
- - File Upload Issues Resolved & Edit MDMS view incorrect data fix
137
-
138
- ## [1.0.26] [18-Jun-2025]
139
- - Provided schema download & upload
140
-
141
- ## [1.0.25] [16-Jun-2025]
142
- - Set default download capability disabled 'ENABLE_MDMS_BULK_DOWNLOAD'
143
-
144
- ## [1.0.24] [16-Jun-2025]
145
- - provided download of all data per schema & enable based on flag
146
- - flag name 'ENABLE_MDMS_BULK_DOWNLOAD'
147
-
148
-
149
- ## [1.8.23] [10-Jun-2025]
150
- - integrated with updated version
151
-
152
- ## [1.0.22] [28-Apr-2025]
153
- - Localization Bulk Upload - Updated SheetName and Column Widths
154
-
155
- ## [1.0.21] [8-Apr-2025]
156
- - Manage Sidebars
157
-
158
- ## [1.0.20] [25-Mar-2025]
159
- - Enhancements in Localization Add Screen - Bulk Upload
160
-
161
- ## [1.0.19] [3-Mar-2025]
162
- - Disabled json-edit-react & enable based on flag
163
- - Introduced new Globalvariable to enable bulk upload of master dataa 'ENABLE_JSON_EDIT'
164
-
165
-
166
- ## [1.0.18] [25-Feb-2025]
167
- - Compilation issue fix
168
-
169
- ## [1.0.17] [25-Feb-2025]
170
- - Added json-edit-react to view and edit schema data
171
-
172
- ## [1.0.15] [21-Feb-2025]
173
- - Publishing a new version for more stability & as part of Components Release
174
-
175
- ## [1.0.13] [3-Feb-2025]
176
- - Updated some of the loader component
177
- - fixed the add master data issue
178
-
179
- ## [1.0.13] [1-Feb-2025]
180
- - FEATURE/HCMPRE-1425 : Added the workbench module patches and Updated localisation search screen, and core module #2181
181
- - Upgraded with new Components in core, workbench screens
182
- - Introduced new Globalvariable to enable bulk upload of master dataa 'ENABLE_MDMS_BULK_UPLOAD'
183
- - Localisation search introduced a search bar for better usablility
184
- - Enhanced support for Customisations
185
-
186
- ## [1.0.11]
187
- - added support for dynamic locale in workbench module with key CORE_UI_MODULE_LOCALE_PREFIX
188
-
189
- ## [1.0.3]
190
- - Fixed the module stablity & new components integrated
191
-
192
- ## [1.0.0]
193
- - Base version.