hplx-feature-library 1.0.220 → 1.0.222
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/dist/APIAction-Bev2spv1.cjs +1 -0
- package/dist/{APIAction-CTNOzVOC.js → APIAction-DLCcL2Li.js} +23 -24
- package/dist/Attachments/index.js +1 -1
- package/dist/{Attachments-BzZHI8d3.js → Attachments-3UkuRnaT.js} +6297 -6180
- package/dist/Attachments-B9GrTokn.cjs +202 -0
- package/dist/NineDots/index.js +1 -1
- package/dist/{NineDots-CCtE2t9I.js → NineDots-gflwjmeo.js} +1 -1
- package/dist/{NineDots-BEzE3Pj8.cjs → NineDots-q--wtv3_.cjs} +1 -1
- package/dist/PatientAddEdit/index.js +1 -1
- package/dist/{PatientAddEdit-9W7ONHSd.js → PatientAddEdit-DRQcxWYN.js} +6 -7
- package/dist/PatientAddEdit-DtcwFtoA.cjs +7 -0
- package/dist/PatientPopup/index.js +1 -1
- package/dist/PatientPopupContainer-BA2JxU5G.cjs +36 -0
- package/dist/{PatientPopupContainer-BpqwmITO.js → PatientPopupContainer-Bk00pVxe.js} +3402 -3376
- package/dist/PediatricsCalculator/index.js +1 -1
- package/dist/PediatricsCalculatorTable-bTvt7SWQ.cjs +9 -0
- package/dist/{PediatricsCalculatorTable-G0ttbDpi.js → PediatricsCalculatorTable-qu37FR7D.js} +236 -228
- package/dist/{PrintModal-DJrnqOVW.js → PrintModal-4jT2v6c1.js} +75 -53
- package/dist/{PrintModal-DpJ3WZlU.cjs → PrintModal-DOzge7E-.cjs} +13 -13
- package/dist/{ReusableModal-CIgDYOWZ.cjs → ReusableModal-2GKjVVbf.cjs} +1 -1
- package/dist/{ReusableModal-CT4_gW1b.js → ReusableModal-BL_DwV8I.js} +1 -1
- package/dist/SearchPatients/index.js +1 -1
- package/dist/{SearchPatients-D7cCFV9o.js → SearchPatients-BbtytMYS.js} +3 -3
- package/dist/{SearchPatients-6D7IL_wj.cjs → SearchPatients-DbYAGumB.cjs} +1 -1
- package/dist/UserProfile/index.js +1 -1
- package/dist/{UserProfile-4L3aOHNv.cjs → UserProfile-D3Rhhuj9.cjs} +4 -4
- package/dist/{UserProfile-D3cCwQxw.js → UserProfile-jDWt9g20.js} +8 -9
- package/dist/common-utils-BNaPcohw.cjs +6 -0
- package/dist/common-utils-BidUvSFN.js +2233 -0
- package/dist/hplx-feature-library.css +1 -1
- package/dist/{index-T1lUjzhG.js → index-BzwuwvT5.js} +1 -1
- package/dist/{index-DQlbIHh3.cjs → index-CJ2AKRoq.cjs} +26 -26
- package/dist/{index-DkA8S5IK.cjs → index-CRCsQdYf.cjs} +1 -1
- package/dist/{index-Bd0CDVpH.js → index-UPYT3B9g.js} +2 -3
- package/dist/index.d.ts +0 -1
- package/dist/index.js +14 -16
- package/dist/print-pdf/index.js +1 -1
- package/package.json +9 -14
- package/dist/APIAction-DB6Ulkss.cjs +0 -1
- package/dist/AllInvestigations/components/AllInvestigationsTable.d.ts +0 -19
- package/dist/AllInvestigations/index.d.ts +0 -1
- package/dist/AllInvestigations/index.js +0 -4
- package/dist/AllInvestigations/utils/test-tange-util.d.ts +0 -8
- package/dist/AllInvestigationsTable-BDLPOHjr.cjs +0 -79
- package/dist/AllInvestigationsTable-Dg-YXASz.js +0 -17065
- package/dist/Attachments-CziD-_gm.cjs +0 -186
- package/dist/PatientAddEdit-DmpV8z5a.cjs +0 -7
- package/dist/PatientPopupContainer-D4Me6ygu.cjs +0 -36
- package/dist/PediatricsCalculatorTable-B4fTy1J5.cjs +0 -9
- package/dist/ReusableTable/ReusableTable.d.ts +0 -3
- package/dist/ReusableTable/ReusableTableConstants.d.ts +0 -8
- package/dist/ReusableTable/ReusableTableTypes.d.ts +0 -96
- package/dist/ReusableTable/components/EmptyTableContainer.d.ts +0 -12
- package/dist/ReusableTable/components/FilterCheckbox.d.ts +0 -8
- package/dist/ReusableTable/components/FilterDropdown.d.ts +0 -17
- package/dist/ReusableTable/components/Pagination.d.ts +0 -2
- package/dist/ReusableTable/components/TableBody.d.ts +0 -2
- package/dist/ReusableTable/components/TableCell.d.ts +0 -3
- package/dist/ReusableTable/components/TableFilterSelect.d.ts +0 -12
- package/dist/ReusableTable/components/TableHead.d.ts +0 -2
- package/dist/ReusableTable/components/TableMain.d.ts +0 -2
- package/dist/ReusableTable/components/TableRow.d.ts +0 -3
- package/dist/ReusableTable/context/TableContext.d.ts +0 -21
- package/dist/ReusableTable/context/TableContextBase.d.ts +0 -26
- package/dist/ReusableTable/context/useTableContext.d.ts +0 -2
- package/dist/TrendGraphs/AreaChartComponent.d.ts +0 -9
- package/dist/TrendGraphs/LineChartComponent/DataPointToolTip.d.ts +0 -16
- package/dist/TrendGraphs/LineChartComponent/LineChartBody.d.ts +0 -2
- package/dist/TrendGraphs/LineChartComponent/LineChartHeader.d.ts +0 -2
- package/dist/TrendGraphs/LineChartComponent/index.d.ts +0 -2
- package/dist/TrendGraphs/context/index.d.ts +0 -2
- package/dist/TrendGraphs/hooks/useTrendGraphContext.d.ts +0 -2
- package/dist/TrendGraphs/utils/index.d.ts +0 -4
- package/dist/clsx-C11secjj.cjs +0 -1
- package/dist/clsx-OuTLNxxd.js +0 -16
- package/dist/common-utils-CprPMjtz.js +0 -1952
- package/dist/common-utils-DrDXKNhv.cjs +0 -6
- package/dist/components/Modal.d.ts +0 -5
- package/dist/constants/TrendGraphsConstants.d.ts +0 -2
- package/dist/dayjs.min-D52_GdfV.js +0 -284
- package/dist/dayjs.min-DXp74Ozx.cjs +0 -1
- package/dist/index-CJFGOBPb.js +0 -122
- package/dist/index-DfcUmlge.cjs +0 -17
- package/dist/types/AllInvestigationTypes/index.js +0 -4
- package/dist/types/AllInvestigationTypes.d.ts +0 -45
- package/dist/types/NineDotsTypes/index.js +0 -1
- package/dist/types/TrendGraphTypes.d.ts +0 -19
- package/dist/useClickOutside-BjJyGTec.js +0 -14
- package/dist/useClickOutside-DsVG12Cs.cjs +0 -1
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";const n=require("./index-
|
|
1
|
+
"use strict";const n=require("./index-CJ2AKRoq.cjs"),c=require("react"),h=({childModalRef:e,children:u,hideBackDrop:f=!1,backdropClasses:o="",modalClasses:i="",closeOnClickOutside:t,clickOutsideHandler:r,position:l="hfl-inset-0"})=>(c.useEffect(()=>{if(!t)return;const s=a=>{e.current&&!e.current.contains(a.target)&&r()};return document.addEventListener("mousedown",s),()=>{document.removeEventListener("mousedown",s)}},[r,e,t]),n.jsxRuntimeExports.jsx("div",{className:`hfl-fixed ${l} hfl-z-50 hfl-flex hfl-items-center hfl-justify-center ${o} ${f?"":"hfl-bg-Gray-750 hfl-backdrop-blur-sm"}`,children:n.jsxRuntimeExports.jsx("div",{ref:e,className:`hfl-rounded-lg hfl-shadow-md hfl-bg-White ${i??""}`,children:u})}));exports.ReusableModal=h;
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import { j as t, b as r, q as Y, K as Z } from "./index-
|
|
1
|
+
import { j as t, b as r, q as Y, K as Z } from "./index-UPYT3B9g.js";
|
|
2
2
|
import { useState as o, useRef as C, useCallback as y, useMemo as ee, useEffect as D } from "react";
|
|
3
|
-
import { g as te } from "./APIAction-
|
|
3
|
+
import { g as te } from "./APIAction-DLCcL2Li.js";
|
|
4
4
|
import { u as ne } from "./useMediaQuery-CZAbdJzN.js";
|
|
5
|
-
import { d as re, g as le, a as T, E as se } from "./common-utils-
|
|
5
|
+
import { d as re, g as le, a as T, E as se } from "./common-utils-BidUvSFN.js";
|
|
6
6
|
const oe = Math.abs(window.orientation || 0) === 90, de = (G) => {
|
|
7
7
|
const {
|
|
8
8
|
addPatientHandler: R,
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";const t=require("./index-
|
|
1
|
+
"use strict";const t=require("./index-CJ2AKRoq.cjs"),n=require("react"),W=require("./APIAction-Bev2spv1.cjs"),J=require("./useMediaQuery-D4SIgdMW.cjs"),p=require("./common-utils-BNaPcohw.cjs"),V=Math.abs(window.orientation||0)===90,X=P=>{const{addPatientHandler:k,disabled:x,manipulateExistingDOM:C,onPatientSelect:w,showSearchBar:D,setShowSearchBar:a,variable:T}=P,{window_var:o,token:y,envName:v}=T,[c,f]=n.useState(!1),d=n.useRef(null),u=n.useRef(null),[A,G]=n.useState(0),[L,l]=n.useState([]),U=6,[E,b]=n.useState(""),[F,B]=n.useState([]),[$,R]=n.useState(!0),[q,S]=n.useState([]),h=J.useMediaQuery("(max-width: 1024px)"),m=(e,s,r,i)=>{B([{id:1,title:e,description:s,type:r,duration:i}])},_=n.useCallback(async e=>{try{const s={branch_id:o?.org_branch_id_for_seg||"",doctor_id:o?.person_id_for_seg||"",doctor_role_id:o?.doctor_role_id_for_seg||"",term:encodeURIComponent(e),limit:30},r=await W.getPatientList(s,{envName:v,token:y});if(!r){l([]),m("Error","No response received from server","Error",3e3);return}const i=r,N=window.filteredUpcomingAppts||[];if(i.apiError){l([]),m("Error",i.apiError,"Error",3e3);return}i?.persons?.length?(l(i.persons),f(!0),G(Number(i.total_persons))):l([]),N?.length?(R(!1),S(N.slice(0,5))):(R(!0),S([]))}catch(s){console.error(s),m("Error","Something went wrong while fetching patients","Error",3e3)}},[v,y,o?.doctor_role_id_for_seg,o?.org_branch_id_for_seg,o?.person_id_for_seg]),z=n.useMemo(()=>p.debounceFn(e=>{_(e)},500),[_]),H=e=>{const s=e.currentTarget.value.trim();(!isNaN(Number(s.charAt(0)))||s.length>=2)&&z(s)},M=()=>{c||_(E)},O=()=>{x||f(e=>!e)},g=n.useCallback(e=>{u.current&&c&&!u.current.contains(e.target)&&(f(!1),l([]))},[c]);n.useEffect(()=>(document.addEventListener("mousedown",g),()=>document.removeEventListener("mousedown",g)),[g,c]);const Q=e=>{window.location.href.includes("/frontdesk")?window.patientPopupHandlerFromFD(e.patient_role_id,e.patient_person_id):p.goToPage(`viewPatientDashboard.php?pid=${e.patient_role_id}`)},I=async e=>{let s=!0;if(typeof window.beforePatientChange=="function"&&window.location.pathname==p.EAPP_ROUTES.visitpad&&(s=window.beforePatientChange()),f(!1),l([]),!s)return;if(w){w(e);return}window.patient_role_id=e.person_role_id!=="0"?e.person_role_id.toString():"0",window.patient_person_id=e.person_id!=="0"?e.person_id.toString():"0";const r=(e.person_role_id==="0",e.person_role_id);if(r&&(C?.(),window.location.href.includes("/frontdesk"))){window.patientPopupHandlerFromFD(r,e.person_id);return}p.goToPage(`viewPatientDashboard.php?pid=${r}`)},K=()=>{O(),k(),b("")},j=n.useCallback(e=>{d.current&&!d.current.contains(e.target)&&h&&a(!1)},[h,a]);return n.useEffect(()=>(document.addEventListener("mousedown",j),()=>document.removeEventListener("mousedown",j)),[j]),t.jsxRuntimeExports.jsxs(t.jsxRuntimeExports.Fragment,{children:[D?t.jsxRuntimeExports.jsxs("div",{className:`hfl-flex hfl-items-center hfl-justify-center hfl-rounded-full hfl-bg-Blue-900 hfl-text-White ${x?"hfl-pointer-events-none hfl-opacity-60":""}`,title:x?"Low internet speed. Feature available only in online mode":"Search Patient",children:[t.jsxRuntimeExports.jsx("input",{ref:d,type:"text",placeholder:"Search Patient 🔍",className:`hfl-rounded-full hfl-border-none hfl-bg-Blue-900 hfl-py-2 hfl-pl-4 ${h&&!V?"xxs:hfl-w-[400px]":"hfl-min-w-[150px]"} sm:hfl-w-full`,"data-qa":"testid_patientSearch",value:E,onKeyUp:H,onChange:e=>b(e.target.value),onClick:M,onBlur:()=>h&&a(!1)}),h&&t.jsxRuntimeExports.jsx("div",{className:"hx_close hfl-cursor-pointer hfl-pr-4",onClick:()=>a(e=>!e)})]}):t.jsxRuntimeExports.jsxs("div",{onClick:()=>a(e=>!e),className:"hfl-flex hfl-cursor-pointer hfl-flex-col hfl-items-center xs:hfl-mr-1 md:hfl-mr-0",children:[t.jsxRuntimeExports.jsx("i",{className:"hx_search",style:{fontSize:"18px"}}),t.jsxRuntimeExports.jsx(t.bs,{variant:"Regular",type:"Text md",children:"Search"})]}),t.jsxRuntimeExports.jsx(t.qh,{toastList:F}),t.jsxRuntimeExports.jsxs("div",{ref:u,className:`hfl-absolute hfl-right-[255px] hfl-top-[50px] hfl-max-h-[400px] hfl-w-[430px] hfl-overflow-y-auto hfl-rounded-lg hfl-border hfl-border-Gray-300 hfl-bg-White hfl-shadow-md ${c?"hfl-block":"hfl-hidden"}`,children:[!$&&t.jsxRuntimeExports.jsxs("div",{className:"hfl-flex hfl-flex-col",children:[t.jsxRuntimeExports.jsxs("div",{className:"hfl-flex hfl-items-center hfl-py-[10px] ",children:[t.jsxRuntimeExports.jsx(t.bs,{className:"hfl-px-[12px] hfl-text-Gray-400",variant:"Semibold",type:"Text xs",children:"Upcoming Appointments"}),t.jsxRuntimeExports.jsx("a",{href:"viewPatientAppointments.php",children:t.jsxRuntimeExports.jsx("i",{className:"hx_r-open hfl-text-Primary-700"})})]}),q.map((e,s)=>t.jsxRuntimeExports.jsxs("div",{className:`hfl-flex hfl-cursor-pointer hfl-justify-between hfl-px-[12px] hfl-py-[4px] hover:hfl-bg-Blue_gray-200 ${s%2===1?"":"hfl-bg-Gray-100"}`,onClick:()=>Q(e),children:[t.jsxRuntimeExports.jsx("div",{className:"hfl-flex hfl-min-w-[92px] hfl-items-center hfl-justify-center hfl-rounded-lg hfl-border hfl-border-Gray-100 hfl-bg-White_20 hfl-p-2",children:t.jsxRuntimeExports.jsx(t.bs,{className:"hfl-whitespace-nowrap hfl-text-Gray-500",variant:"Regular",type:"Text lg",children:e.appnt_time})}),t.jsxRuntimeExports.jsxs("div",{className:"hfl-flex hfl-w-full hfl-flex-col hfl-px-3",children:[t.jsxRuntimeExports.jsx(t.bs,{variant:"Regular",type:"Text md",className:"hfl-text-Gray-700",children:e.org_person_name}),t.jsxRuntimeExports.jsx(t.bs,{variant:"Regular",type:"Text sm",className:"hfl-text-Gray-500",children:e.org_person_phone})]}),t.jsxRuntimeExports.jsx("div",{className:"hfl-flex hfl-items-center",children:t.jsxRuntimeExports.jsx("i",{className:"hx_play-filled hfl-text-Gray-300"})})]},e.patient_role_id))]}),t.jsxRuntimeExports.jsxs("div",{className:"hfl-flex hfl-flex-col",children:[t.jsxRuntimeExports.jsx(t.bs,{style:{fontSize:"14px"},variant:"Semibold",type:"Text sm",className:"hfl-px-[12px] hfl-py-[8px] hfl-text-Primary-600",children:"Patients List"}),t.jsxRuntimeExports.jsx("div",{className:"hfl-max-h-[40vh] hfl-overflow-y-auto scrollbar-hide",children:L.map((e,s)=>t.jsxRuntimeExports.jsxs("div",{className:`hfl-cursor-pointer hfl-px-[11px] hfl-py-[12px] hfl-leading-9 hover:hfl-bg-Blue_gray-200 ${s%2===1?"":"hfl-bg-Gray-100"}`,onClick:()=>I(e),children:[t.jsxRuntimeExports.jsx(t.bs,{variant:"Regular",type:"Text sm",className:"hfl-inline hfl-uppercase hfl-text-Gray-700",style:{fontSize:"14px"},children:e.org_person_bid_str?e.org_person_bid_str+": ":""}),t.jsxRuntimeExports.jsxs(t.bs,{variant:"Medium",type:"Text sm",className:" hfl-inline hfl-capitalize hfl-text-Gray-700",style:{fontSize:"14px"},children:[e.org_person_name," ",t.jsxRuntimeExports.jsxs("div",{className:"hfl-inline-block",children:["(",e.ageStr.split(" ")[0],", ",p.getGender(Number(e.org_person_gender)),")"]})," "]}),t.jsxRuntimeExports.jsx(t.bs,{variant:"Regular",type:"Text sm",className:"hfl-inline-block hfl-text-Gray-700",style:{fontSize:"14px"},children:e.org_person_phone?`Ph: ${e.org_person_phone}`:""})]},e.person_role_id))})]}),A<U&&t.jsxRuntimeExports.jsx("div",{className:"hfl-flex hfl-justify-center",id:"newPatientAdd",children:t.jsxRuntimeExports.jsx(t.Ku,{hierarchy:"Secondary",icon:"Left",iconFile:"hx_add",onClick:K,size:"lg",textField:"Create New Patient",className:"hfl-flex hfl-w-full hfl-justify-center"})})]})]})};exports.SearchPatients=X;
|