hplx-feature-library 1.0.200 → 1.0.202

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 (94) hide show
  1. package/dist/{APIAction-l6i46qgX.js → APIAction-BpUGTq-P.js} +23 -24
  2. package/dist/APIAction-Dh8yXpE0.cjs +1 -0
  3. package/dist/Attachments/index.js +1 -1
  4. package/dist/{Attachments-BzZHI8d3.js → Attachments-3UkuRnaT.js} +6297 -6180
  5. package/dist/Attachments-B9GrTokn.cjs +202 -0
  6. package/dist/PatientAddEdit/index.js +1 -1
  7. package/dist/PatientAddEdit-DKtOZH2N.cjs +7 -0
  8. package/dist/{PatientAddEdit-CPjv2_ZF.js → PatientAddEdit-DjNwzBQV.js} +18 -20
  9. package/dist/PatientPopup/index.js +1 -1
  10. package/dist/PatientPopupContainer-Bg9zUots.cjs +36 -0
  11. package/dist/{PatientPopupContainer-Bf80eZlB.js → PatientPopupContainer-RxozPrZy.js} +47 -49
  12. package/dist/PediatricsCalculator/index.js +1 -1
  13. package/dist/PediatricsCalculatorTable-bTvt7SWQ.cjs +9 -0
  14. package/dist/{PediatricsCalculatorTable-G0ttbDpi.js → PediatricsCalculatorTable-qu37FR7D.js} +236 -228
  15. package/dist/{PrintModal-ifEeax6V.js → PrintModal-D4AX-Rz-.js} +3203 -3215
  16. package/dist/{PrintModal-Db9_gQic.cjs → PrintModal-DYCkcIdD.cjs} +52 -50
  17. package/dist/{ReusableModal-CIgDYOWZ.cjs → ReusableModal-2GKjVVbf.cjs} +1 -1
  18. package/dist/{ReusableModal-CT4_gW1b.js → ReusableModal-BL_DwV8I.js} +1 -1
  19. package/dist/SearchPatients/index.js +1 -1
  20. package/dist/{SearchPatients-BYGGaUoD.js → SearchPatients-B34Jmyh7.js} +3 -3
  21. package/dist/{SearchPatients-BXNWucYz.cjs → SearchPatients-CKu0XGDw.cjs} +1 -1
  22. package/dist/common-utils-B6431-iN.js +2657 -0
  23. package/dist/common-utils-DeErqLTB.cjs +6 -0
  24. package/dist/hplx-feature-library.css +1 -1
  25. package/dist/{index-T1lUjzhG.js → index-BzwuwvT5.js} +1 -1
  26. package/dist/{index-DQlbIHh3.cjs → index-CJ2AKRoq.cjs} +26 -26
  27. package/dist/{index-DkA8S5IK.cjs → index-CRCsQdYf.cjs} +1 -1
  28. package/dist/{index-Bd0CDVpH.js → index-UPYT3B9g.js} +2 -3
  29. package/dist/index.d.ts +0 -3
  30. package/dist/index.js +12 -18
  31. package/dist/nineDots/index.d.ts +0 -1
  32. package/dist/print-pdf/index.js +1 -1
  33. package/dist/types/CommonTypes.d.ts +1 -1
  34. package/dist/userProfile/index.d.ts +0 -1
  35. package/package.json +9 -14
  36. package/dist/APIAction-5-3i1gGx.cjs +0 -1
  37. package/dist/AllInvestigations/components/AllInvestigationsTable.d.ts +0 -19
  38. package/dist/AllInvestigations/index.d.ts +0 -1
  39. package/dist/AllInvestigations/index.js +0 -4
  40. package/dist/AllInvestigations/utils/test-tange-util.d.ts +0 -8
  41. package/dist/AllInvestigationsTable-BDLPOHjr.cjs +0 -79
  42. package/dist/AllInvestigationsTable-Dg-YXASz.js +0 -17065
  43. package/dist/Attachments-CziD-_gm.cjs +0 -186
  44. package/dist/CommonConstant-Bj7SvPfU.js +0 -436
  45. package/dist/CommonConstant-COHqiSWL.cjs +0 -1
  46. package/dist/NineDots/index.js +0 -4
  47. package/dist/NineDots-BEzE3Pj8.cjs +0 -3
  48. package/dist/NineDots-CCtE2t9I.js +0 -1788
  49. package/dist/PatientAddEdit-UFho4sOA.cjs +0 -7
  50. package/dist/PatientPopupContainer-SfsdSNpR.cjs +0 -36
  51. package/dist/PediatricsCalculatorTable-B4fTy1J5.cjs +0 -9
  52. package/dist/ReusableTable/ReusableTable.d.ts +0 -3
  53. package/dist/ReusableTable/ReusableTableConstants.d.ts +0 -8
  54. package/dist/ReusableTable/ReusableTableTypes.d.ts +0 -96
  55. package/dist/ReusableTable/components/EmptyTableContainer.d.ts +0 -12
  56. package/dist/ReusableTable/components/FilterCheckbox.d.ts +0 -8
  57. package/dist/ReusableTable/components/FilterDropdown.d.ts +0 -17
  58. package/dist/ReusableTable/components/Pagination.d.ts +0 -2
  59. package/dist/ReusableTable/components/TableBody.d.ts +0 -2
  60. package/dist/ReusableTable/components/TableCell.d.ts +0 -3
  61. package/dist/ReusableTable/components/TableFilterSelect.d.ts +0 -12
  62. package/dist/ReusableTable/components/TableHead.d.ts +0 -2
  63. package/dist/ReusableTable/components/TableMain.d.ts +0 -2
  64. package/dist/ReusableTable/components/TableRow.d.ts +0 -3
  65. package/dist/ReusableTable/context/TableContext.d.ts +0 -21
  66. package/dist/ReusableTable/context/TableContextBase.d.ts +0 -26
  67. package/dist/ReusableTable/context/useTableContext.d.ts +0 -2
  68. package/dist/TrendGraphs/AreaChartComponent.d.ts +0 -9
  69. package/dist/TrendGraphs/LineChartComponent/DataPointToolTip.d.ts +0 -16
  70. package/dist/TrendGraphs/LineChartComponent/LineChartBody.d.ts +0 -2
  71. package/dist/TrendGraphs/LineChartComponent/LineChartHeader.d.ts +0 -2
  72. package/dist/TrendGraphs/LineChartComponent/index.d.ts +0 -2
  73. package/dist/TrendGraphs/context/index.d.ts +0 -2
  74. package/dist/TrendGraphs/hooks/useTrendGraphContext.d.ts +0 -2
  75. package/dist/TrendGraphs/utils/index.d.ts +0 -4
  76. package/dist/UserProfile/index.js +0 -4
  77. package/dist/UserProfile-CcEbhDhd.js +0 -1761
  78. package/dist/UserProfile-DkQgWGvV.cjs +0 -14
  79. package/dist/clsx-C11secjj.cjs +0 -1
  80. package/dist/clsx-OuTLNxxd.js +0 -16
  81. package/dist/common-utils-CJv4_aVl.cjs +0 -6
  82. package/dist/common-utils-Dq5TMP7t.js +0 -1952
  83. package/dist/components/Modal.d.ts +0 -5
  84. package/dist/constants/TrendGraphsConstants.d.ts +0 -2
  85. package/dist/dayjs.min-D52_GdfV.js +0 -284
  86. package/dist/dayjs.min-DXp74Ozx.cjs +0 -1
  87. package/dist/index-CJFGOBPb.js +0 -122
  88. package/dist/index-DfcUmlge.cjs +0 -17
  89. package/dist/types/AllInvestigationTypes/index.js +0 -4
  90. package/dist/types/AllInvestigationTypes.d.ts +0 -45
  91. package/dist/types/NineDotsTypes/index.js +0 -1
  92. package/dist/types/TrendGraphTypes.d.ts +0 -19
  93. package/dist/useClickOutside-BjJyGTec.js +0 -14
  94. package/dist/useClickOutside-DsVG12Cs.cjs +0 -1
@@ -1,4 +1,4 @@
1
- "use strict";const X=require("./index-DQlbIHh3.cjs"),pe=require("react"),Ee=require("react-dom"),Se=require("./warning-W0tkkrLJ.cjs");var Y={exports:{}},W={},G={exports:{}},T={},J={exports:{}},te;function ve(){return te||(te=1,function(p,s){Object.defineProperty(s,"__esModule",{value:!0}),s.default=a;/*!
1
+ "use strict";const X=require("./index-CJ2AKRoq.cjs"),pe=require("react"),Ee=require("react-dom"),Se=require("./warning-W0tkkrLJ.cjs");var Y={exports:{}},W={},G={exports:{}},T={},J={exports:{}},te;function ve(){return te||(te=1,function(p,s){Object.defineProperty(s,"__esModule",{value:!0}),s.default=a;/*!
2
2
  * Adapted from jQuery UI core
3
3
  *
4
4
  * http://jqueryui.com
@@ -7231,11 +7231,10 @@ export {
7231
7231
  nD as f,
7232
7232
  bp as g,
7233
7233
  cD as h,
7234
- Qc as i,
7234
+ Pp as i,
7235
7235
  aD as j,
7236
7236
  dr as k,
7237
- Pp as l,
7238
- ct as m,
7237
+ ct as l,
7239
7238
  fD as q,
7240
7239
  kp as r,
7241
7240
  lD as t
package/dist/index.d.ts CHANGED
@@ -1,9 +1,6 @@
1
1
  export { default as PediatricsCalculator } from './PediatricsCalculator';
2
- export { default as AllInvestigations } from './AllInvestigations';
3
2
  export { default as PatientPopup } from './PatientPopup';
4
3
  export { default as Attachments } from './Attachments';
5
4
  export { default as PatientAddEdit } from './PatientAddEdit';
6
5
  export { default as SearchPatients } from './SearchPatients';
7
- export { default as NineDots } from './nineDots';
8
- export { default as UserProfile } from './userProfile';
9
6
  export { default as PrintModal } from './print-pdf/index';
package/dist/index.js CHANGED
@@ -1,20 +1,14 @@
1
- import { P as r } from "./PediatricsCalculatorTable-G0ttbDpi.js";
2
- import { A as e } from "./AllInvestigationsTable-Dg-YXASz.js";
3
- import { P as i } from "./PatientPopupContainer-Bf80eZlB.js";
4
- import { A as P } from "./Attachments-BzZHI8d3.js";
5
- import { P as m } from "./PatientAddEdit-CPjv2_ZF.js";
6
- import { S as n } from "./SearchPatients-BYGGaUoD.js";
7
- import { N as d } from "./NineDots-CCtE2t9I.js";
8
- import { U as c } from "./UserProfile-CcEbhDhd.js";
9
- import { P as u } from "./PrintModal-ifEeax6V.js";
1
+ import { P as a } from "./PediatricsCalculatorTable-qu37FR7D.js";
2
+ import { P as e } from "./PatientPopupContainer-RxozPrZy.js";
3
+ import { A as s } from "./Attachments-3UkuRnaT.js";
4
+ import { P as i } from "./PatientAddEdit-DjNwzBQV.js";
5
+ import { S as f } from "./SearchPatients-B34Jmyh7.js";
6
+ import { P as d } from "./PrintModal-D4AX-Rz-.js";
10
7
  export {
11
- e as AllInvestigations,
12
- P as Attachments,
13
- d as NineDots,
14
- m as PatientAddEdit,
15
- i as PatientPopup,
16
- r as PediatricsCalculator,
17
- u as PrintModal,
18
- n as SearchPatients,
19
- c as UserProfile
8
+ s as Attachments,
9
+ i as PatientAddEdit,
10
+ e as PatientPopup,
11
+ a as PediatricsCalculator,
12
+ d as PrintModal,
13
+ f as SearchPatients
20
14
  };
@@ -1 +0,0 @@
1
- export { default } from './NineDots';
@@ -1,4 +1,4 @@
1
- import { P as f } from "../PrintModal-ifEeax6V.js";
1
+ import { P as f } from "../PrintModal-D4AX-Rz-.js";
2
2
  export {
3
3
  f as default
4
4
  };
@@ -139,7 +139,7 @@ export interface GlobalWindow {
139
139
  removeEventListener: (type: string, listener: (e: Event) => void) => void;
140
140
  user_id: string;
141
141
  orientation: number;
142
- _getTranslationTemp: (word: string, language: string) => Promise<string>;
142
+ _getTranslation: (word: string, language: string) => Promise<string>;
143
143
  }
144
144
  export interface I_PatientData {
145
145
  name: string;
@@ -1 +0,0 @@
1
- export { default } from './UserProfile';
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "hplx-feature-library",
3
3
  "private": false,
4
- "version": "1.0.200",
4
+ "version": "1.0.202",
5
5
  "type": "module",
6
6
  "scripts": {
7
7
  "dev": "npm i hplx-react-elements-dev@qa && vite",
@@ -63,14 +63,6 @@
63
63
  "import": "./dist/constants/AttachmentConstants/index.js",
64
64
  "types": "./dist/constants/AttachmentConstants.d.ts"
65
65
  },
66
- "./AllInvestigations": {
67
- "import": "./dist/AllInvestigations/index.js",
68
- "types": "./dist/AllInvestigations/index.d.ts"
69
- },
70
- "./Types/AllInvestigationTypes": {
71
- "import": "./dist/types/AllInvestigationTypes/index.js",
72
- "types": "./dist/types/AllInvestigationTypes.d.ts"
73
- },
74
66
  "./PatientAddEdit": {
75
67
  "import": "./dist/PatientAddEdit/index.js",
76
68
  "types": "./dist/PatientAddEdit/index.d.ts"
@@ -80,24 +72,28 @@
80
72
  "types": "./dist/types/PatientAddEditTypes.d.ts"
81
73
  },
82
74
  "./common/constants/CommonConstants": {
83
- "import": "./dist/common/constants/CommonConstants/index.js"
75
+ "import": "./dist/common/constants/CommonConstants/index.js",
76
+ "types": "./dist/common/constants/CommonConstants.d.ts"
84
77
  },
85
78
  "./PatientPopup": {
86
79
  "import": "./dist/PatientPopup/index.js",
87
80
  "types": "./dist/PatientPopup/index.d.ts"
88
81
  },
89
82
  "./print-pdf": {
90
- "import": "./dist/print-pdf/index.js"
83
+ "import": "./dist/print-pdf/index.js",
84
+ "types": "./dist/print-pdf/index.d.ts"
91
85
  },
92
86
  "./NineDots": {
93
87
  "import": "./dist/NineDots/index.js",
94
88
  "types": "./dist/NineDots/index.d.ts"
95
89
  },
96
90
  "./UserProfile": {
97
- "import": "./dist/UserProfile/index.js"
91
+ "import": "./dist/UserProfile/index.js",
92
+ "types": "./dist/UserProfile/index.d.ts"
98
93
  },
99
94
  "./SearchPatients": {
100
- "import": "./dist/SearchPatients/index.js"
95
+ "import": "./dist/SearchPatients/index.js",
96
+ "types": "./dist/SearchPatients/index.d.ts"
101
97
  }
102
98
  },
103
99
  "dependencies": {
@@ -115,7 +111,6 @@
115
111
  "react-konva": "^18.2.12",
116
112
  "react-router-dom": "^7.9.4",
117
113
  "react-table": "^7.8.0",
118
- "recharts": "^3.1.2",
119
114
  "swr": "^2.3.4",
120
115
  "to-words": "^4.7.0",
121
116
  "yup": "^1.7.1",
@@ -1 +0,0 @@
1
- "use strict";const i=require("./common-utils-CJv4_aVl.cjs"),P=require("./dayjs.min-DXp74Ozx.cjs"),m="/preferences/doctor",d="/preferences/visitpad",E="/preferences/branch",u="patient/search",A="../api/modelGetAddPatientSuggestion.php",g="appointments/get",_="/v1/patient/add",h="/v1/patients",f="../api/modelSavePatientImage.php",I="../api/modelDeletePatientImage.php",l="/patient/detail",D=async(s="",t={},e,n,r)=>{const{doc_rid:o=""}=t;let a="";Array.isArray(s)?a=s.map(c=>`&fields_required=${encodeURIComponent(c)}`).join(""):s&&(a=`&fields_required=${encodeURIComponent(s)}`);try{const c=await i.hplxAPI(r?.token,r.envName).get(`${m}/${o||e}?branch_id=${n}`+a),{data:p}=c||{};return Promise.resolve(p)}catch(c){return console.error("Error fetching doctor preference:",c),Promise.reject(c)}},T=async(s="",t,e)=>{try{const n=await i.ReArchAPI(e.token,e.envName).get(`${E}/${t}?fields_required=${s}`),{data:r}=n||{};return Promise.resolve(r)}catch(n){return console.log(n),Promise.reject(n)}},w=async(s,t,e,n,r)=>{try{const o={appnt_date:s,doctor_role_id:t,doctor_id:n,org_branch_id:e},a=await i.ReArchAPI(r.token,r.envName).post(g,{...o}),{data:c}=a||{};return Promise.resolve(c)}catch(o){return o instanceof Error&&console.error("Error fetching appointments:",o.message),o?.response?.status===401&&i.handle401Status(),Promise.reject(o)}},y=async(s,t)=>{let e=[];const n=await w(P.dayjs().format("YYYY-MM-DD"),s.doctor_role_id,s.branch_id,s.doctor_id,t);n?.appointments?.length&&(e=n.appointments),window.filteredUpcomingAppts=[],e.length&&(s.term?.length?window.filteredUpcomingAppts=e.filter(r=>r.org_person_name.length&&r.org_person_name.toLowerCase().includes(s.term.toLowerCase())&&r.appnt_date>=P.dayjs(new Date).format("YYYY-MM-DD")&&(r.remote_appnt_status==="CONFIRMED"||r.appnt_status===0||r.appnt_status===3||r.appnt_status===5)):window.filteredUpcomingAppts=e.filter(r=>r.appnt_date>=P.dayjs(new Date).format("YYYY-MM-DD")&&(r.remote_appnt_status==="CONFIRMED"||r.appnt_status===0||r.appnt_status===3||r.appnt_status===5)));try{const r=await i.ReArchAPI(t.token,t.envName).post(u,s),{data:o}=r||{};return Promise.resolve(o)}catch(r){return console.log(r),null}},N=async s=>{try{const t=await i.hplxAPI(s.token,s.envName).post(A),{data:e}=t||{},{apiError:n}=e||{};if(n)throw new Error(n);return Promise.resolve(e)}catch(t){return t instanceof Error&&console.error("Error fetching referred by list:",t.message),t?.response?.status===401&&i.handle401Status(),Promise.reject(t)}},R=async(s,t)=>{try{const e=await i.ReArchAPI(t.token,t.envName).post(_,{...s,token:t.token}),{data:n}=e||{};return Promise.resolve(n)}catch(e){return Promise.reject(e)}},j=async(s,t)=>{try{const e=await i.ReArchAPI(t.token,t.envName).put(h+"/"+s?.person_role_id,{...s}),{data:n}=e||{};return Promise.resolve(n)}catch(e){return console.log(e),Promise.reject(e)}},v=async(s,t)=>{try{const e=await i.hplxAPI(t.token,t.envName).post(f,s),{data:n}=e||{};return Promise.resolve(n)}catch(e){return console.log(e),Promise.reject(e)}},Y=async(s,t)=>{try{const e=await i.hplxAPI(t.token,t.envName).post(I,s),{data:n}=e||{};return Promise.resolve(n)}catch(e){return console.log(e),Promise.reject(e)}},C=async({callback:s,payload:t,token_env:e,isCallbackNeeded:n=!0})=>{try{const r=t;window?.partner_service_enabled==="1"&&(r.partner_service_enabled=!0);const o=await i.ReArchAPI(e.token,e.envName).post(l,{...r}),{data:a}=o||{},{error:c}=a||{};if(c)throw new Error(c);if(n)s(a);else return a}catch(r){console.log(r)}},G=async({doc_id:s="",doc_rid:t=""},e,n,r,o)=>{try{const a={branch_id:n,doctor_id:s||r,doctor_role_id:t||o},c=await i.hplxAPI(e.token,e.envName).post(d,a),{data:p}=c||{};return Promise.resolve(p)}catch(a){return console.error("Error fetching visitpad preference:",a),Promise.reject(a)}};exports.GET_PATIENT_DETAILS=l;exports.addPatientDetails=R;exports.addPatientImage=v;exports.deletePatientImage=Y;exports.getBranchPreferences=T;exports.getDoctorPreference=D;exports.getPatientDetails=C;exports.getPatientList=y;exports.getReferredByList=N;exports.getVisitpadPreference=G;exports.updatePatientDetails=j;
@@ -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-Dg-YXASz.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;