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,6 +1,5 @@
1
- import { h as p, R as i, b as d } from "./common-utils-Dq5TMP7t.js";
2
- import { d as l } from "./dayjs.min-D52_GdfV.js";
3
- const P = "/preferences/doctor", E = "/preferences/visitpad", u = "/preferences/branch", f = "patient/search", _ = "../api/modelGetAddPatientSuggestion.php", g = "appointments/get", h = "/v1/patient/add", A = "/v1/patients", w = "../api/modelSavePatientImage.php", D = "../api/modelDeletePatientImage.php", T = "/patient/detail", R = async (s = "", t = {}, e, o, r) => {
1
+ import { h as p, R as i, b as d, c as l } from "./common-utils-B6431-iN.js";
2
+ const P = "/preferences/doctor", E = "/preferences/visitpad", u = "/preferences/branch", _ = "patient/search", f = "../api/modelGetAddPatientSuggestion.php", g = "appointments/get", h = "/v1/patient/add", A = "/v1/patients", w = "../api/modelSavePatientImage.php", D = "../api/modelDeletePatientImage.php", T = "/patient/detail", y = async (s = "", t = {}, e, o, r) => {
4
3
  const { doc_rid: n = "" } = t;
5
4
  let a = "";
6
5
  Array.isArray(s) ? a = s.map((c) => `&fields_required=${encodeURIComponent(c)}`).join("") : s && (a = `&fields_required=${encodeURIComponent(s)}`);
@@ -12,7 +11,7 @@ const P = "/preferences/doctor", E = "/preferences/visitpad", u = "/preferences/
12
11
  } catch (c) {
13
12
  return console.error("Error fetching doctor preference:", c), Promise.reject(c);
14
13
  }
15
- }, v = async (s = "", t, e) => {
14
+ }, R = async (s = "", t, e) => {
16
15
  try {
17
16
  const o = await i(e.token, e.envName).get(
18
17
  `${u}/${t}?fields_required=${s}`
@@ -36,7 +35,7 @@ const P = "/preferences/doctor", E = "/preferences/visitpad", u = "/preferences/
36
35
  } catch (n) {
37
36
  return n instanceof Error && console.error("Error fetching appointments:", n.message), n?.response?.status === 401 && d(), Promise.reject(n);
38
37
  }
39
- }, Y = async (s, t) => {
38
+ }, v = async (s, t) => {
40
39
  let e = [];
41
40
  const o = await N(
42
41
  l().format("YYYY-MM-DD"),
@@ -48,17 +47,17 @@ const P = "/preferences/doctor", E = "/preferences/visitpad", u = "/preferences/
48
47
  o?.appointments?.length && (e = o.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 >= l(/* @__PURE__ */ 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 >= l(/* @__PURE__ */ new Date()).format("YYYY-MM-DD") && (r.remote_appnt_status === "CONFIRMED" || r.appnt_status === 0 || r.appnt_status === 3 || r.appnt_status === 5)));
49
48
  try {
50
49
  const r = await i(t.token, t.envName).post(
51
- f,
50
+ _,
52
51
  s
53
52
  ), { data: n } = r || {};
54
53
  return Promise.resolve(n);
55
54
  } catch (r) {
56
55
  return console.log(r), null;
57
56
  }
58
- }, j = async (s) => {
57
+ }, Y = async (s) => {
59
58
  try {
60
59
  const t = await p(s.token, s.envName).post(
61
- _
60
+ f
62
61
  ), { data: e } = t || {}, { apiError: o } = e || {};
63
62
  if (o)
64
63
  throw new Error(o);
@@ -66,7 +65,7 @@ const P = "/preferences/doctor", E = "/preferences/visitpad", u = "/preferences/
66
65
  } catch (t) {
67
66
  return t instanceof Error && console.error("Error fetching referred by list:", t.message), t?.response?.status === 401 && d(), Promise.reject(t);
68
67
  }
69
- }, C = async (s, t) => {
68
+ }, j = async (s, t) => {
70
69
  try {
71
70
  const e = await i(t.token, t.envName).post(h, {
72
71
  ...s,
@@ -76,7 +75,7 @@ const P = "/preferences/doctor", E = "/preferences/visitpad", u = "/preferences/
76
75
  } catch (e) {
77
76
  return Promise.reject(e);
78
77
  }
79
- }, G = async (s, t) => {
78
+ }, C = async (s, t) => {
80
79
  try {
81
80
  const e = await i(t.token, t.envName).put(
82
81
  A + "/" + s?.person_role_id,
@@ -88,7 +87,7 @@ const P = "/preferences/doctor", E = "/preferences/visitpad", u = "/preferences/
88
87
  } catch (e) {
89
88
  return console.log(e), Promise.reject(e);
90
89
  }
91
- }, M = async (s, t) => {
90
+ }, G = async (s, t) => {
92
91
  try {
93
92
  const e = await p(t.token, t.envName).post(
94
93
  w,
@@ -98,7 +97,7 @@ const P = "/preferences/doctor", E = "/preferences/visitpad", u = "/preferences/
98
97
  } catch (e) {
99
98
  return console.log(e), Promise.reject(e);
100
99
  }
101
- }, b = async (s, t) => {
100
+ }, M = async (s, t) => {
102
101
  try {
103
102
  const e = await p(t.token, t.envName).post(
104
103
  D,
@@ -108,7 +107,7 @@ const P = "/preferences/doctor", E = "/preferences/visitpad", u = "/preferences/
108
107
  } catch (e) {
109
108
  return console.log(e), Promise.reject(e);
110
109
  }
111
- }, L = async ({
110
+ }, b = async ({
112
111
  callback: s,
113
112
  payload: t,
114
113
  token_env: e,
@@ -131,7 +130,7 @@ const P = "/preferences/doctor", E = "/preferences/visitpad", u = "/preferences/
131
130
  } catch (r) {
132
131
  console.log(r);
133
132
  }
134
- }, S = async ({ doc_id: s = "", doc_rid: t = "" }, e, o, r, n) => {
133
+ }, L = async ({ doc_id: s = "", doc_rid: t = "" }, e, o, r, n) => {
135
134
  try {
136
135
  const a = {
137
136
  branch_id: o,
@@ -148,14 +147,14 @@ const P = "/preferences/doctor", E = "/preferences/visitpad", u = "/preferences/
148
147
  };
149
148
  export {
150
149
  T as G,
151
- v as a,
152
- j as b,
153
- L as c,
154
- C as d,
155
- M as e,
156
- b as f,
157
- Y as g,
158
- R as h,
159
- S as i,
160
- G as u
150
+ R as a,
151
+ Y as b,
152
+ b as c,
153
+ j as d,
154
+ G as e,
155
+ M as f,
156
+ v as g,
157
+ y as h,
158
+ L as i,
159
+ C as u
161
160
  };
@@ -0,0 +1 @@
1
+ "use strict";const o=require("./common-utils-DeErqLTB.cjs"),l="/preferences/doctor",m="/preferences/visitpad",d="/preferences/branch",E="patient/search",A="../api/modelGetAddPatientSuggestion.php",u="appointments/get",g="/v1/patient/add",h="/v1/patients",_="../api/modelSavePatientImage.php",f="../api/modelDeletePatientImage.php",P="/patient/detail",I=async(s="",t={},e,n,r)=>{const{doc_rid:a=""}=t;let c="";Array.isArray(s)?c=s.map(i=>`&fields_required=${encodeURIComponent(i)}`).join(""):s&&(c=`&fields_required=${encodeURIComponent(s)}`);try{const i=await o.hplxAPI(r?.token,r.envName).get(`${l}/${a||e}?branch_id=${n}`+c),{data:p}=i||{};return Promise.resolve(p)}catch(i){return console.error("Error fetching doctor preference:",i),Promise.reject(i)}},D=async(s="",t,e)=>{try{const n=await o.ReArchAPI(e.token,e.envName).get(`${d}/${t}?fields_required=${s}`),{data:r}=n||{};return Promise.resolve(r)}catch(n){return console.log(n),Promise.reject(n)}},T=async(s,t,e,n,r)=>{try{const a={appnt_date:s,doctor_role_id:t,doctor_id:n,org_branch_id:e},c=await o.ReArchAPI(r.token,r.envName).post(u,{...a}),{data:i}=c||{};return Promise.resolve(i)}catch(a){return a instanceof Error&&console.error("Error fetching appointments:",a.message),a?.response?.status===401&&o.handle401Status(),Promise.reject(a)}},w=async(s,t)=>{let e=[];const n=await T(o.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>=o.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>=o.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 o.ReArchAPI(t.token,t.envName).post(E,s),{data:a}=r||{};return Promise.resolve(a)}catch(r){return console.log(r),null}},y=async s=>{try{const t=await o.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&&o.handle401Status(),Promise.reject(t)}},N=async(s,t)=>{try{const e=await o.ReArchAPI(t.token,t.envName).post(g,{...s,token:t.token}),{data:n}=e||{};return Promise.resolve(n)}catch(e){return Promise.reject(e)}},R=async(s,t)=>{try{const e=await o.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 o.hplxAPI(t.token,t.envName).post(_,s),{data:n}=e||{};return Promise.resolve(n)}catch(e){return console.log(e),Promise.reject(e)}},j=async(s,t)=>{try{const e=await o.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({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 a=await o.ReArchAPI(e.token,e.envName).post(P,{...r}),{data:c}=a||{},{error:i}=c||{};if(i)throw new Error(i);if(n)s(c);else return c}catch(r){console.log(r)}},C=async({doc_id:s="",doc_rid:t=""},e,n,r,a)=>{try{const c={branch_id:n,doctor_id:s||r,doctor_role_id:t||a},i=await o.hplxAPI(e.token,e.envName).post(m,c),{data:p}=i||{};return Promise.resolve(p)}catch(c){return console.error("Error fetching visitpad preference:",c),Promise.reject(c)}};exports.GET_PATIENT_DETAILS=P;exports.addPatientDetails=N;exports.addPatientImage=v;exports.deletePatientImage=j;exports.getBranchPreferences=D;exports.getDoctorPreference=I;exports.getPatientDetails=Y;exports.getPatientList=w;exports.getReferredByList=y;exports.getVisitpadPreference=C;exports.updatePatientDetails=R;
@@ -1,4 +1,4 @@
1
- import { A as f } from "../Attachments-BzZHI8d3.js";
1
+ import { A as f } from "../Attachments-3UkuRnaT.js";
2
2
  export {
3
3
  f as default
4
4
  };