@egovernments/digit-ui-module-workbench 1.1.1 → 2.0.0-dev-02

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