hplx-feature-library 1.0.161 → 1.0.163

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 (195) hide show
  1. package/dist/APIAction-Dwk0qXbN.cjs +9 -0
  2. package/dist/APIAction-Zpy6wLQC.js +4033 -0
  3. package/dist/Attachments/components/document-canvas/document-pen-tool.d.ts +1 -1
  4. package/dist/Attachments/components/drag-drop-overlay.d.ts +1 -1
  5. package/dist/Attachments/components/edit-document-modal.d.ts +1 -1
  6. package/dist/Attachments/components/uploading-toast.d.ts +1 -1
  7. package/dist/Attachments/context/index.d.ts +2 -2
  8. package/dist/Attachments/hooks/useDropdownPosition.d.ts +1 -1
  9. package/dist/Attachments/index.js +12640 -11157
  10. package/dist/CameraCapture/index.d.ts +1 -1
  11. package/dist/PatientAddEdit/index.js +665 -4323
  12. package/dist/PatientPopup/action/APIAction.d.ts +65 -0
  13. package/dist/PatientPopup/app/PatientPopupContainer.d.ts +6 -0
  14. package/dist/PatientPopup/app/PatientPopupContext.d.ts +30 -0
  15. package/dist/PatientPopup/common/common.d.ts +14 -0
  16. package/dist/PatientPopup/components/Lab/HPLXLab.d.ts +8 -0
  17. package/dist/PatientPopup/components/Lab/LISLab.d.ts +8 -0
  18. package/dist/PatientPopup/components/Lab/LabTable.d.ts +5 -0
  19. package/dist/PatientPopup/components/Lab/index.d.ts +5 -0
  20. package/dist/PatientPopup/components/Loader/Loader.d.ts +2 -0
  21. package/dist/PatientPopup/components/Pagination.d.ts +9 -0
  22. package/dist/PatientPopup/components/Profile/Abha.d.ts +11 -0
  23. package/dist/PatientPopup/components/Profile/PatientDetailsModal.d.ts +1 -0
  24. package/dist/PatientPopup/components/Profile/Profile.d.ts +11 -0
  25. package/dist/PatientPopup/components/Profile/Sms.d.ts +2 -0
  26. package/dist/PatientPopup/components/Visits/Table.d.ts +11 -0
  27. package/dist/PatientPopup/components/Visits/index.d.ts +15 -0
  28. package/dist/PatientPopup/components/addBills/AddBillFooter.d.ts +2 -0
  29. package/dist/PatientPopup/components/addBills/AddBills.d.ts +5 -0
  30. package/dist/PatientPopup/components/addBills/AddBillsTable.d.ts +17 -0
  31. package/dist/PatientPopup/components/addBills/DropDown.d.ts +15 -0
  32. package/dist/PatientPopup/components/appointment/AllAppts.d.ts +8 -0
  33. package/dist/PatientPopup/components/appointment/Appointment.d.ts +2 -0
  34. package/dist/PatientPopup/components/appointment/AppointmentsTable.d.ts +10 -0
  35. package/dist/PatientPopup/components/bills/Bills.d.ts +6 -0
  36. package/dist/PatientPopup/components/bills/BillsTable.d.ts +11 -0
  37. package/dist/PatientPopup/components/deposit/DepositSection.d.ts +9 -0
  38. package/dist/PatientPopup/components/mainNavItem/MainNavItem.d.ts +13 -0
  39. package/dist/PatientPopup/components/patientPopupBody/PatientPopupBody.d.ts +8 -0
  40. package/dist/PatientPopup/components/patientPopupHeader/PatientPopupHeader.d.ts +10 -0
  41. package/dist/PatientPopup/components/patientPopupSummary/BillSummary.d.ts +19 -0
  42. package/dist/PatientPopup/components/patientPopupSummary/ConsultationDetails.d.ts +14 -0
  43. package/dist/PatientPopup/components/patientPopupSummary/DeleteItem.d.ts +11 -0
  44. package/dist/PatientPopup/components/patientPopupSummary/DepositRefundSummary.d.ts +8 -0
  45. package/dist/PatientPopup/components/patientPopupSummary/LabServiceDetails.d.ts +13 -0
  46. package/dist/PatientPopup/components/patientPopupSummary/OtherServiceDetails.d.ts +13 -0
  47. package/dist/PatientPopup/components/patientPopupSummary/PatientPopupSummary.d.ts +8 -0
  48. package/dist/PatientPopup/components/patientPopupSummary/PaymentCard.d.ts +25 -0
  49. package/dist/PatientPopup/components/patientPopupSummary/ServiceLevelBillSummary.d.ts +18 -0
  50. package/dist/PatientPopup/components/payments/DepositRefundTable.d.ts +14 -0
  51. package/dist/PatientPopup/components/payments/OtherServicesTable.d.ts +16 -0
  52. package/dist/PatientPopup/components/payments/PaymentEditModal.d.ts +15 -0
  53. package/dist/PatientPopup/components/payments/PaymentHeader.d.ts +7 -0
  54. package/dist/PatientPopup/components/payments/Payments.d.ts +5 -0
  55. package/dist/PatientPopup/components/payments/PaymentsTable.d.ts +14 -0
  56. package/dist/PatientPopup/constants/AppConstants.d.ts +123 -0
  57. package/dist/PatientPopup/index.d.ts +1 -0
  58. package/dist/PatientPopup/index.js +135387 -0
  59. package/dist/PatientPopup/types/hplxAPITypes.d.ts +37 -0
  60. package/dist/PatientPopup/utils/PrintFontLoader.d.ts +4 -0
  61. package/dist/PatientPopup/utils/helperFunctions.d.ts +3 -0
  62. package/dist/PediatricsCalculator/components/PediatricsCalculatorTableContext.d.ts +1 -1
  63. package/dist/PediatricsCalculator/index.js +1 -1
  64. package/dist/PediatricsCalculatorTable-bTvt7SWQ.cjs +9 -0
  65. package/dist/PediatricsCalculatorTable-qu37FR7D.js +1175 -0
  66. package/dist/ReusableModal-2GKjVVbf.cjs +1 -0
  67. package/dist/ReusableModal-BL_DwV8I.js +29 -0
  68. package/dist/Subscription/components/SubscriptionBadge.d.ts +2 -0
  69. package/dist/changePasswordModal/APIAction/APIActions.d.ts +8 -0
  70. package/dist/changePasswordModal/component/ChangePasswordModal.d.ts +14 -0
  71. package/dist/common/APIAction/APIAction.d.ts +17 -44
  72. package/dist/common/utils/NetworkInstance.d.ts +2 -2
  73. package/dist/common/utils/common-utils.d.ts +10 -12
  74. package/dist/components/{customDropdown/CustomDropdown.d.ts → CustomDropdown.d.ts} +2 -2
  75. package/dist/components/{toggleButtons/ToggleButtons.d.ts → ToggleButtons.d.ts} +1 -1
  76. package/dist/constants/CommonConstant.d.ts +13 -1
  77. package/dist/fonts/AnekMalayalam-Bold.ttf +0 -0
  78. package/dist/fonts/AnekMalayalam-Regular.ttf +0 -0
  79. package/dist/fonts/Arial-Bold-Italic.ttf +0 -0
  80. package/dist/fonts/Arial-Bold.ttf +0 -0
  81. package/dist/fonts/Arial-Italic.ttf +0 -0
  82. package/dist/fonts/Arial.ttf +0 -0
  83. package/dist/fonts/IndianRupee.ttf +0 -0
  84. package/dist/fonts/MuktaMaheePunjabi-Bold.ttf +0 -0
  85. package/dist/fonts/MuktaMaheePunjabi-Regular.ttf +0 -0
  86. package/dist/fonts/Noto-Sans-Telugu-Bold.ttf +0 -0
  87. package/dist/fonts/Noto-Sans-Telugu-Regular.ttf +0 -0
  88. package/dist/fonts/NotoNastaliqUrdu-Bold.ttf +0 -0
  89. package/dist/fonts/NotoNastaliqUrdu-Regular.ttf +0 -0
  90. package/dist/fonts/NotoSansArabic-Bold.ttf +0 -0
  91. package/dist/fonts/NotoSansArabic.ttf +0 -0
  92. package/dist/fonts/NotoSansHindi-Bold.ttf +0 -0
  93. package/dist/fonts/NotoSansHindi.ttf +0 -0
  94. package/dist/fonts/NotoSansKannada-Bold.ttf +0 -0
  95. package/dist/fonts/NotoSansKannada.ttf +0 -0
  96. package/dist/fonts/NotoSansOriya-Bold.ttf +0 -0
  97. package/dist/fonts/NotoSansOriya.ttf +0 -0
  98. package/dist/fonts/NotoSansTamil-Bold.ttf +0 -0
  99. package/dist/fonts/NotoSansTamil.ttf +0 -0
  100. package/dist/fonts/NotoSerifGujarati-Bold.ttf +0 -0
  101. package/dist/fonts/NotoSerifGujarati-Regular.ttf +0 -0
  102. package/dist/fonts/Roboto-Regular.ttf +0 -0
  103. package/dist/fonts/Times-Bold-Italic.ttf +0 -0
  104. package/dist/fonts/Times-Bold.ttf +0 -0
  105. package/dist/fonts/Times-Italic.ttf +0 -0
  106. package/dist/fonts/Times.ttf +0 -0
  107. package/dist/fonts/TiroBangla-Bold.ttf +0 -0
  108. package/dist/fonts/TiroBangla-Regular.ttf +0 -0
  109. package/dist/fonts/Verdana-Bold-Italic.ttf +0 -0
  110. package/dist/fonts/Verdana-Bold.ttf +0 -0
  111. package/dist/fonts/Verdana-Italic.ttf +0 -0
  112. package/dist/fonts/Verdana.ttf +0 -0
  113. package/dist/hooks/useMediaQuery.d.ts +1 -0
  114. package/dist/hplx-feature-library.css +1 -1
  115. package/dist/index-BzwuwvT5.js +961 -0
  116. package/dist/index-CJ2AKRoq.cjs +102 -0
  117. package/dist/index-CRCsQdYf.cjs +32 -0
  118. package/dist/{index-Cl3h7bnz.js → index-UPYT3B9g.js} +2823 -2700
  119. package/dist/index.d.ts +0 -5
  120. package/dist/index.js +2 -12
  121. package/dist/nineDots/NineDotsTypes.d.ts +22 -0
  122. package/dist/nineDots/NineDotsUtils.d.ts +3 -0
  123. package/dist/nineDots/nineDots.d.ts +3 -0
  124. package/dist/searchPatients/SearchPatients.d.ts +11 -0
  125. package/dist/types/ApiResponseTypes.d.ts +49 -8
  126. package/dist/types/CommonTypes.d.ts +37 -10
  127. package/dist/types/PatientAddEditTypes.d.ts +2 -8
  128. package/dist/types/PatientPopupTypes/index.js +1 -0
  129. package/dist/types/PatientPopupTypes.d.ts +836 -0
  130. package/dist/userProfile/APIAction/APIActions.d.ts +18 -0
  131. package/dist/userProfile/UserProfile.d.ts +18 -0
  132. package/dist/userProfile/UserProfileItem.d.ts +7 -0
  133. package/dist/warning-BozzKWdr.js +38 -0
  134. package/dist/warning-W0tkkrLJ.cjs +1 -0
  135. package/package.json +22 -33
  136. package/dist/AlertPopup/index.js +0 -79
  137. package/dist/AllInvestigations/components/AllInvestigationsTable.d.ts +0 -19
  138. package/dist/AllInvestigations/index.d.ts +0 -1
  139. package/dist/AllInvestigations/index.js +0 -4
  140. package/dist/AllInvestigations/utils/test-tange-util.d.ts +0 -8
  141. package/dist/AllInvestigationsTable-9CE_uDGv.cjs +0 -80
  142. package/dist/AllInvestigationsTable-HC9dOdiS.js +0 -16964
  143. package/dist/CustomDropdown/index.js +0 -256
  144. package/dist/DateTimePicker/DateAndTimePicker/index.js +0 -5908
  145. package/dist/PediatricsCalculatorTable-CB1YOoVy.js +0 -833
  146. package/dist/PediatricsCalculatorTable-CPXBdrqk.cjs +0 -1
  147. package/dist/ReusableTable/ReusableTable.d.ts +0 -3
  148. package/dist/ReusableTable/ReusableTableConstants.d.ts +0 -8
  149. package/dist/ReusableTable/ReusableTableTypes.d.ts +0 -96
  150. package/dist/ReusableTable/components/EmptyTableContainer.d.ts +0 -12
  151. package/dist/ReusableTable/components/FilterCheckbox.d.ts +0 -8
  152. package/dist/ReusableTable/components/FilterDropdown.d.ts +0 -17
  153. package/dist/ReusableTable/components/Pagination.d.ts +0 -2
  154. package/dist/ReusableTable/components/TableBody.d.ts +0 -2
  155. package/dist/ReusableTable/components/TableCell.d.ts +0 -3
  156. package/dist/ReusableTable/components/TableFilterSelect.d.ts +0 -12
  157. package/dist/ReusableTable/components/TableHead.d.ts +0 -2
  158. package/dist/ReusableTable/components/TableMain.d.ts +0 -2
  159. package/dist/ReusableTable/components/TableRow.d.ts +0 -3
  160. package/dist/ReusableTable/context/TableContext.d.ts +0 -21
  161. package/dist/ReusableTable/context/TableContextBase.d.ts +0 -26
  162. package/dist/ReusableTable/context/useTableContext.d.ts +0 -2
  163. package/dist/ToggleButtons/index.js +0 -17
  164. package/dist/TrendGraphs/AreaChartComponent.d.ts +0 -9
  165. package/dist/TrendGraphs/LineChartComponent/DataPointToolTip.d.ts +0 -16
  166. package/dist/TrendGraphs/LineChartComponent/LineChartBody.d.ts +0 -2
  167. package/dist/TrendGraphs/LineChartComponent/LineChartHeader.d.ts +0 -2
  168. package/dist/TrendGraphs/LineChartComponent/index.d.ts +0 -2
  169. package/dist/TrendGraphs/context/index.d.ts +0 -2
  170. package/dist/TrendGraphs/hooks/useTrendGraphContext.d.ts +0 -2
  171. package/dist/TrendGraphs/utils/index.d.ts +0 -4
  172. package/dist/clsx-C11secjj.cjs +0 -1
  173. package/dist/clsx-OuTLNxxd.js +0 -16
  174. package/dist/components/Modal.d.ts +0 -5
  175. package/dist/components/alertPopup/index.d.ts +0 -1
  176. package/dist/components/customDropdown/index.d.ts +0 -1
  177. package/dist/components/dateTimePicker/DateAndTimePicker.d.ts +0 -21
  178. package/dist/components/dateTimePicker/index.d.ts +0 -1
  179. package/dist/components/toggleButtons/index.d.ts +0 -1
  180. package/dist/constants/TrendGraphsConstants.d.ts +0 -2
  181. package/dist/dayjs.min-D8X6dnmr.cjs +0 -1
  182. package/dist/dayjs.min-SMxpcMQi.js +0 -284
  183. package/dist/index-BFfWEART.js +0 -995
  184. package/dist/index-BVfQUI8j.cjs +0 -98
  185. package/dist/index-CHAEpyb1.cjs +0 -32
  186. package/dist/index-CJFGOBPb.js +0 -122
  187. package/dist/index-DfcUmlge.cjs +0 -17
  188. package/dist/parseISO-AwyR5Nhg.cjs +0 -1
  189. package/dist/parseISO-Cso9HWPX.js +0 -1414
  190. package/dist/types/AllInvestigationTypes/index.js +0 -4
  191. package/dist/types/AllInvestigationTypes.d.ts +0 -45
  192. package/dist/types/TrendGraphTypes.d.ts +0 -19
  193. package/dist/useClickOutside-BjJyGTec.js +0 -14
  194. package/dist/useClickOutside-DsVG12Cs.cjs +0 -1
  195. /package/dist/components/{alertPopup/AlertPopup.d.ts → AlertPopup.d.ts} +0 -0
@@ -0,0 +1,18 @@
1
+ import { GlobalWindow, E_ENVIRONMENT } from '../../types/CommonTypes';
2
+ export declare const ActiveBranchsType = "user/branches";
3
+ export interface GET_ActiveBranches_RESPONSE {
4
+ switch_branches: Array<{
5
+ person_role_id: string;
6
+ org_branch_id: string;
7
+ role_name: string;
8
+ branch_name: string;
9
+ role_id: number;
10
+ }>;
11
+ error: string;
12
+ }
13
+ export declare const getAllActiveDoctorBranches: (variable: {
14
+ env: E_ENVIRONMENT;
15
+ token: string;
16
+ enc_token?: string;
17
+ window_var: Partial<GlobalWindow>;
18
+ }) => Promise<GET_ActiveBranches_RESPONSE>;
@@ -0,0 +1,18 @@
1
+ import { E_ENVIRONMENT, GlobalWindow } from '../types/CommonTypes';
2
+ interface UserProfileProps {
3
+ showToast: (title: string, description: string, type: string, duration: number) => void;
4
+ showPrivateDbInSidebar: boolean;
5
+ syncAndLogOutHandler: (url: string) => void;
6
+ setPrivateDbModal: (str: string) => void;
7
+ handleSendOtp: () => void;
8
+ UserProfileDisabled?: boolean;
9
+ preloadPathModule?: (path: string) => void;
10
+ variable: {
11
+ env: E_ENVIRONMENT;
12
+ token: string;
13
+ enc_token?: string | undefined;
14
+ window_var: Partial<GlobalWindow>;
15
+ };
16
+ }
17
+ declare const UserProfile: ({ showToast, showPrivateDbInSidebar, syncAndLogOutHandler, setPrivateDbModal, handleSendOtp, UserProfileDisabled, preloadPathModule, variable, }: UserProfileProps) => import("react/jsx-runtime").JSX.Element;
18
+ export default UserProfile;
@@ -0,0 +1,7 @@
1
+ interface UserProfileItemProps {
2
+ branch_name: string;
3
+ role_name: string;
4
+ org_branch_id: string;
5
+ }
6
+ declare const UserProfileItem: ({ branch_name, role_name, org_branch_id }: UserProfileItemProps) => import("react/jsx-runtime").JSX.Element;
7
+ export default UserProfileItem;
@@ -0,0 +1,38 @@
1
+ var i, g;
2
+ function l() {
3
+ if (g) return i;
4
+ g = 1;
5
+ var c = process.env.NODE_ENV !== "production", t = function() {
6
+ };
7
+ if (c) {
8
+ var f = function(a, n) {
9
+ var e = arguments.length;
10
+ n = new Array(e > 1 ? e - 1 : 0);
11
+ for (var r = 1; r < e; r++)
12
+ n[r - 1] = arguments[r];
13
+ var s = 0, u = "Warning: " + a.replace(/%s/g, function() {
14
+ return n[s++];
15
+ });
16
+ typeof console < "u" && console.error(u);
17
+ try {
18
+ throw new Error(u);
19
+ } catch {
20
+ }
21
+ };
22
+ t = function(o, a, n) {
23
+ var e = arguments.length;
24
+ n = new Array(e > 2 ? e - 2 : 0);
25
+ for (var r = 2; r < e; r++)
26
+ n[r - 2] = arguments[r];
27
+ if (a === void 0)
28
+ throw new Error(
29
+ "`warning(condition, format, ...args)` requires a warning message argument"
30
+ );
31
+ o || f.apply(null, [a].concat(n));
32
+ };
33
+ }
34
+ return i = t, i;
35
+ }
36
+ export {
37
+ l as r
38
+ };
@@ -0,0 +1 @@
1
+ "use strict";var i,g;function v(){if(g)return i;g=1;var c=process.env.NODE_ENV!=="production",t=function(){};if(c){var f=function(a,n){var e=arguments.length;n=new Array(e>1?e-1:0);for(var r=1;r<e;r++)n[r-1]=arguments[r];var s=0,u="Warning: "+a.replace(/%s/g,function(){return n[s++]});typeof console<"u"&&console.error(u);try{throw new Error(u)}catch{}};t=function(o,a,n){var e=arguments.length;n=new Array(e>2?e-2:0);for(var r=2;r<e;r++)n[r-2]=arguments[r];if(a===void 0)throw new Error("`warning(condition, format, ...args)` requires a warning message argument");o||f.apply(null,[a].concat(n))}}return i=t,i}exports.requireWarning=v;
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "hplx-feature-library",
3
3
  "private": false,
4
- "version": "1.0.161",
4
+ "version": "1.0.163",
5
5
  "type": "module",
6
6
  "scripts": {
7
7
  "dev": "npm i hplx-react-elements-dev@qa && vite",
@@ -39,25 +39,6 @@
39
39
  "types": "dist/index.d.ts",
40
40
  "exports": {
41
41
  "./style.css": "./dist/hplx-feature-library.css",
42
- "./AlertPopup": {
43
- "import": "./dist/components/AlertPopup.js",
44
- "types": "./dist/components/AlertPopup.d.ts"
45
- },
46
- "./CustomDropdown": {
47
- "import": "./dist/components/CustomDropdown.js",
48
- "types": "./dist/components/CustomDropdown.d.ts"
49
- },
50
- "./ToggleButtons": {
51
- "import": "./dist/components/toggleButtons/index.js",
52
- "types": "./dist/components/toggleButtons/index.d.ts"
53
- },
54
- "./DateTimePicker/DateAndTimePicker.css": {
55
- "import": "./dist/DateAndTimePicker.css"
56
- },
57
- "./DateTimePicker/DateAndTimePicker": {
58
- "import": "./dist/DateTimePicker/DateAndTimePicker/index.js",
59
- "types": "./dist/components/dateTimePicker/DateAndTimePicker.d.ts"
60
- },
61
42
  "./PediatricsCalculator": {
62
43
  "import": "./dist/PediatricsCalculator/index.js",
63
44
  "types": "./dist/PediatricsCalculator/index.d.ts"
@@ -82,40 +63,48 @@
82
63
  "import": "./dist/constants/AttachmentConstants/index.js",
83
64
  "types": "./dist/constants/AttachmentConstants.d.ts"
84
65
  },
85
- "./AllInvestigations": {
86
- "import": "./dist/AllInvestigations/index.js",
87
- "types": "./dist/AllInvestigations/index.d.ts"
88
- },
89
- "./Types/AllInvestigationTypes": {
90
- "import": "./dist/types/AllInvestigationTypes/index.js",
91
- "types": "./dist/types/AllInvestigationTypes.d.ts"
92
- },
93
66
  "./PatientAddEdit": {
94
67
  "import": "./dist/PatientAddEdit/index.js",
95
- "types": "./dist/PatientAddEdit/index.d.ts"
68
+ "types": "./dist/PatientAddEdit.d.ts"
96
69
  },
97
70
  "./Types/PatientAddEditTypes": {
98
71
  "import": "./dist/types/PatientAddEditTypes/index.js",
99
72
  "types": "./dist/types/PatientAddEditTypes.d.ts"
73
+ },
74
+ "./common/constants/CommonConstants": {
75
+ "import": "./dist/common/constants/CommonConstants/index.js",
76
+ "types": "./dist/common/constants/CommonConstants.d.ts"
77
+ },
78
+ "./PatientPopup": {
79
+ "import": "./dist/PatientPopup/index.js",
80
+ "types": "./dist/PatientPopup/index.d.ts"
81
+ },
82
+ "./print-pdf": {
83
+ "import": "./dist/print-pdf/index.js",
84
+ "types": "./dist/print-pdf/index.d.ts"
100
85
  }
101
86
  },
102
87
  "dependencies": {
88
+ "@react-pdf/renderer": "^4.3.1",
103
89
  "date-fns": "^4.1.0",
104
90
  "dayjs": "^1.11.18",
91
+ "franc": "^6.2.0",
105
92
  "hplx-font-icons": "^2.20.0",
106
93
  "hplx-react-elements-dev": "^1.3.121",
94
+ "html2canvas": "^1.4.1",
107
95
  "konva": "^9.3.22",
108
96
  "lodash.debounce": "^4.0.8",
109
97
  "nanoid": "^5.1.5",
110
- "react-datepicker": "^8.5.0",
98
+ "react-device-detect": "^2.2.3",
111
99
  "react-konva": "^18.2.12",
112
- "recharts": "^3.1.2",
100
+ "react-router-dom": "^7.9.4",
101
+ "react-table": "^7.8.0",
113
102
  "swr": "^2.3.4",
103
+ "to-words": "^4.7.0",
114
104
  "yup": "^1.7.1",
115
105
  "zustand": "^5.0.6"
116
106
  },
117
107
  "peerDependencies": {
118
- "hplx-font-icons": "^2.20.0",
119
108
  "react": "^18.3.1",
120
109
  "react-dom": "^18.3.1",
121
110
  "react-modal": "^3.16.3",
@@ -127,6 +116,7 @@
127
116
  "@types/react": "^18.3.23",
128
117
  "@types/react-dom": "^18.3.7",
129
118
  "@types/react-modal": "^3.16.3",
119
+ "@types/react-table": "^7.7.20",
130
120
  "@vitejs/plugin-react": "^4.5.2",
131
121
  "autoprefixer": "^10.4.21",
132
122
  "axios": "^1.11.0",
@@ -141,7 +131,6 @@
141
131
  "husky": "^9.1.7",
142
132
  "jsdom": "^26.1.0",
143
133
  "lint-staged": "^16.1.2",
144
- "node": "^24.6.0",
145
134
  "postcss": "^8.5.6",
146
135
  "prettier": "^3.6.2",
147
136
  "tailwindcss": "^3.4.17",
@@ -1,79 +0,0 @@
1
- import { j as e, b as o, K as r } from "../index-Cl3h7bnz.js";
2
- import { M as p } from "../index-BFfWEART.js";
3
- const y = (c) => {
4
- const {
5
- openState: t,
6
- closePopupCallback: h,
7
- headingIconFile: x,
8
- headingText: d,
9
- subHeadingText: a,
10
- positiveButtonText: l,
11
- negativeButtonText: n,
12
- classNamePositiveBtn: i,
13
- classNameNegativeBtn: s,
14
- positiveActionCallback: f,
15
- negativeActionCallback: m
16
- } = c;
17
- return /* @__PURE__ */ e.jsxs(
18
- p,
19
- {
20
- isOpen: t,
21
- onRequestClose: h,
22
- shouldCloseOnOverlayClick: !1,
23
- style: {
24
- overlay: {
25
- backgroundColor: "rgba(52, 64, 84, 0.5)",
26
- position: "fixed",
27
- alignContent: "center",
28
- justifyContent: "center",
29
- zIndex: 1030,
30
- display: t ? "block" : "none"
31
- },
32
- content: {
33
- zIndex: 1030,
34
- padding: "24px",
35
- maxWidth: "750px",
36
- maxHeight: "600px",
37
- width: "400px",
38
- height: "fit-content",
39
- margin: "auto",
40
- borderRadius: "12px",
41
- overflow: "unset",
42
- display: t ? "block" : "none"
43
- }
44
- },
45
- children: [
46
- x == "warning" && /* @__PURE__ */ e.jsx("div", { className: "hfl-hx_warning hfl-mb-4 hfl-flex hfl-h-12 hfl-w-12 hfl-items-center hfl-justify-center hfl-rounded-full hfl-border-8 hfl-border-Warning-50 hfl-bg-Warning-100 hfl-text-Warning-600", children: /* @__PURE__ */ e.jsx("i", { className: "hx_warning hfl-text-5" }) }),
47
- /* @__PURE__ */ e.jsx(o, { variant: "Medium", type: "Text xl", className: "hfl-mt-5 hfl-text-Gray-900", children: d }),
48
- a && /* @__PURE__ */ e.jsx(o, { variant: "Regular", type: "Text sm", className: "hfl-mt-1 hfl-text-Gray-500 ", children: a }),
49
- /* @__PURE__ */ e.jsxs("div", { className: "hfl-mt-4 hfl-flex hfl-items-center hfl-justify-center hfl-gap-4", children: [
50
- n && /* @__PURE__ */ e.jsx(
51
- r,
52
- {
53
- size: "md",
54
- textField: n,
55
- hierarchy: "Primary",
56
- className: s || "",
57
- onClick: m,
58
- "data-qa": "negative-action"
59
- }
60
- ),
61
- l && /* @__PURE__ */ e.jsx(
62
- r,
63
- {
64
- size: "md",
65
- textField: l,
66
- hierarchy: "Secondary",
67
- className: i || "",
68
- onClick: f,
69
- "data-qa": "positive-action"
70
- }
71
- )
72
- ] })
73
- ]
74
- }
75
- );
76
- };
77
- export {
78
- y as default
79
- };
@@ -1,19 +0,0 @@
1
- import { I_InvestigationTestWithPrint, I_TestRanges } from '../../types/AllInvestigationTypes';
2
- interface InvestigationsTableProps {
3
- patientAge: number;
4
- patientGender: string;
5
- data: I_InvestigationTestWithPrint[];
6
- testDetails: I_TestRanges[];
7
- enableCheckboxesToSelect: boolean;
8
- tableHeaderRowClasses?: string;
9
- investigationCheckBoxMap: Map<string, boolean>;
10
- onColumnCheckboxClickHandler: (key: string, isClicked: boolean) => void;
11
- onRowCheckboxClickHandler: (testId: string) => void;
12
- onRefresh: () => void;
13
- scrollOverflowXToEnd?: boolean;
14
- displayOutOfRangeStyles: boolean;
15
- enableDateColsEditing?: boolean;
16
- onInvValueCellSave?: (updatedData: I_InvestigationTestWithPrint) => Promise<boolean>;
17
- }
18
- declare const AllInvestigationsTable: ({ patientAge, patientGender, data, testDetails, enableCheckboxesToSelect, tableHeaderRowClasses, investigationCheckBoxMap, onColumnCheckboxClickHandler, onRowCheckboxClickHandler, onRefresh, scrollOverflowXToEnd, displayOutOfRangeStyles, enableDateColsEditing, onInvValueCellSave, }: InvestigationsTableProps) => import("react/jsx-runtime").JSX.Element;
19
- export default AllInvestigationsTable;
@@ -1 +0,0 @@
1
- export { default } from './components/AllInvestigationsTable';
@@ -1,4 +0,0 @@
1
- import { A as f } from "../AllInvestigationsTable-HC9dOdiS.js";
2
- export {
3
- f as default
4
- };
@@ -1,8 +0,0 @@
1
- export declare const getRangeForTest: (age: number, gender: string, test_id: string, value: string, rulesWDB?: string) => {
2
- isOutOfRange: boolean;
3
- rule: any;
4
- };
5
- export declare const CheckValidation: (rule: {
6
- min: any;
7
- max: any;
8
- }, value: string | any[]) => boolean;