@djb25/digit-ui-module-ekyc 1.0.30 → 1.0.32

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 (63) hide show
  1. package/dist/index.js +8911 -1
  2. package/dist/index.js.map +1 -1
  3. package/dist/index.modern.js +3295 -2039
  4. package/dist/index.modern.js.map +1 -1
  5. package/package.json +4 -1
  6. package/dist/index.css +0 -54
  7. package/src/Module.js +0 -78
  8. package/src/components/AadhaarVerification.js +0 -315
  9. package/src/components/AssignEkyc.js +0 -236
  10. package/src/components/AssignEkycModal.js +0 -446
  11. package/src/components/CeoDashboard.js +0 -264
  12. package/src/components/CeoDashboard.jsx +0 -334
  13. package/src/components/ConnectionDetailsView.js +0 -241
  14. package/src/components/Dashboard.js +0 -43
  15. package/src/components/DesktopInbox.js +0 -176
  16. package/src/components/EKYCCard.js +0 -53
  17. package/src/components/Filter.js +0 -55
  18. package/src/components/MeterDetails.js +0 -336
  19. package/src/components/MobileInbox.js +0 -73
  20. package/src/components/PropertyInfo.js +0 -264
  21. package/src/components/Review.js +0 -696
  22. package/src/components/SearchConsumer.js +0 -142
  23. package/src/components/SearchFormFieldsComponent.js +0 -67
  24. package/src/components/SelectEkycZones.js +0 -71
  25. package/src/components/StatusCards.js +0 -148
  26. package/src/components/SurveyorDetailsCard.js +0 -512
  27. package/src/components/VendorDetails.jsx +0 -230
  28. package/src/components/analytics/charts/ClusterHeatmap.js +0 -88
  29. package/src/components/analytics/charts/ExecutiveBarChart.jsx +0 -30
  30. package/src/components/analytics/charts/ExecutiveLineChart.jsx +0 -159
  31. package/src/components/analytics/charts/ExecutivePieChart.jsx +0 -24
  32. package/src/components/analytics/charts/TaskStatusChart.js +0 -90
  33. package/src/components/analytics/components/AnalyticsTable.js +0 -106
  34. package/src/components/analytics/components/DashboardLayout.js +0 -52
  35. package/src/components/analytics/components/EmptyState.js +0 -27
  36. package/src/components/analytics/components/ErrorBoundary.js +0 -27
  37. package/src/components/analytics/components/FilterBar.js +0 -73
  38. package/src/components/analytics/components/NotificationPanel.js +0 -77
  39. package/src/components/analytics/components/SLAWidget.js +0 -56
  40. package/src/components/analytics/components/SkeletonLoader.js +0 -53
  41. package/src/components/analytics/components/SummaryCard.js +0 -74
  42. package/src/components/analytics/components/WorkflowTimeline.js +0 -55
  43. package/src/components/analytics/utils/exportUtils.js +0 -64
  44. package/src/components/analytics/utils/filterSerializer.js +0 -50
  45. package/src/components/mockData.js +0 -772
  46. package/src/config/AadhaarVerificationConfig.js +0 -367
  47. package/src/config/MeterDetailsConfig.js +0 -297
  48. package/src/config/PropertyInfoConfig.js +0 -145
  49. package/src/config/config.js +0 -70
  50. package/src/hook/SupervisorInboxTableConfig.js +0 -80
  51. package/src/hook/useInboxTableConfig.js +0 -131
  52. package/src/pages/citizen/Home.js +0 -54
  53. package/src/pages/citizen/Inbox.js +0 -265
  54. package/src/pages/citizen/index.js +0 -199
  55. package/src/pages/employee/ConsumerDetails.js +0 -299
  56. package/src/pages/employee/Create.js +0 -94
  57. package/src/pages/employee/EKYCForm.js +0 -118
  58. package/src/pages/employee/Inbox.js +0 -266
  59. package/src/pages/employee/Mapping.js +0 -358
  60. package/src/pages/employee/Update.js +0 -9
  61. package/src/pages/employee/index.js +0 -184
  62. package/src/utils/index.js +0 -46
  63. package/src/utils/reportDownloader.js +0 -90
@@ -1,64 +0,0 @@
1
- /**
2
- * @file exportUtils.js
3
- * @description Provides utilities to export dashboard table analytics to CSV/Excel formats and invoke native printing layouts.
4
- */
5
-
6
- export const ExportUtils = {
7
- /**
8
- * Generates and triggers download of a client-side CSV file from array records
9
- */
10
- exportToCsv: (data, filename = "dashboard_export.csv", columns = []) => {
11
- if (!data || !data.length) return;
12
-
13
- // Determine column keys if not provided explicitly
14
- const keys = columns.length ? columns.map(c => c.id) : Object.keys(data[0]);
15
- const headers = columns.length ? columns.map(c => c.label) : keys;
16
-
17
- const csvRows = [];
18
- // Header row
19
- csvRows.push(headers.map(h => `"${String(h).replace(/"/g, '""')}"`).join(","));
20
-
21
- // Data rows
22
- data.forEach(row => {
23
- const values = keys.map(k => {
24
- const val = row[k] !== undefined && row[k] !== null ? row[k] : "";
25
- return `"${String(val).replace(/"/g, '""')}"`;
26
- });
27
- csvRows.push(values.join(","));
28
- });
29
-
30
- const csvString = csvRows.join("\n");
31
- const blob = new Blob([csvString], { type: "text/csv;charset=utf-8;" });
32
-
33
- // Trigger download anchor
34
- const link = document.createElement("a");
35
- if (link.download !== undefined) {
36
- const url = URL.createObjectURL(blob);
37
- link.setAttribute("href", url);
38
- link.setAttribute("download", filename);
39
- link.style.visibility = "hidden";
40
- document.body.appendChild(link);
41
- link.click();
42
- document.body.removeChild(link);
43
- }
44
- },
45
-
46
- /**
47
- * Triggers an Excel formatted download simulation
48
- */
49
- exportToExcel: (data, filename = "dashboard_report.xlsx", columns = []) => {
50
- // Uses standard CSV export format mapped to an excel extension compatible layer
51
- ExportUtils.exportToCsv(data, filename.replace(".xlsx", ".csv"), columns);
52
- },
53
-
54
- /**
55
- * Optimizes current interface display rules and opens native browser print dialogue
56
- */
57
- printDashboard: () => {
58
- if (typeof window !== "undefined") {
59
- window.print();
60
- }
61
- }
62
- };
63
-
64
- export default ExportUtils;
@@ -1,50 +0,0 @@
1
- /**
2
- * @file filterSerializer.js
3
- * @description Translates dashboard state criteria into encoded URL search parameters and deserializes query params back to state objects.
4
- */
5
-
6
- export const FilterSerializer = {
7
- /**
8
- * Serializes a plain filter state object into a URL query parameter string
9
- */
10
- serialize: (filters) => {
11
- if (!filters || typeof filters !== "object") return "";
12
- const params = new URLSearchParams();
13
-
14
- Object.entries(filters).forEach(([key, value]) => {
15
- if (value !== undefined && value !== null && value !== "" && value !== "ALL") {
16
- params.append(key, String(value));
17
- }
18
- });
19
-
20
- const queryString = params.toString();
21
- return queryString ? `?${queryString}` : "";
22
- },
23
-
24
- /**
25
- * Deserializes current window search string parameters back into a flat state object
26
- */
27
- deserialize: (searchString, defaultFilters = {}) => {
28
- if (!searchString) return { ...defaultFilters };
29
- const params = new URLSearchParams(searchString);
30
- const filters = { ...defaultFilters };
31
-
32
- params.forEach((value, key) => {
33
- filters[key] = value;
34
- });
35
-
36
- return filters;
37
- },
38
-
39
- /**
40
- * Updates browser history state smoothly without triggering full reload navigations
41
- */
42
- persistToUrl: (filters) => {
43
- if (typeof window === "undefined") return;
44
- const serialized = FilterSerializer.serialize(filters);
45
- const newUrl = `${window.location.pathname}${serialized}`;
46
- window.history.replaceState({ path: newUrl }, "", newUrl);
47
- }
48
- };
49
-
50
- export default FilterSerializer;