hplx-feature-library 1.0.224 → 1.0.225
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-DLCcL2Li.js → APIAction-CTNOzVOC.js} +24 -23
- package/dist/APIAction-DB6Ulkss.cjs +1 -0
- package/dist/AllInvestigations/components/AllInvestigationsTable.d.ts +19 -0
- package/dist/AllInvestigations/index.d.ts +1 -0
- package/dist/AllInvestigations/index.js +4 -0
- package/dist/AllInvestigations/utils/test-tange-util.d.ts +8 -0
- package/dist/AllInvestigationsTable-BDLPOHjr.cjs +79 -0
- package/dist/AllInvestigationsTable-Dg-YXASz.js +17065 -0
- package/dist/Attachments/index.js +1 -1
- package/dist/{Attachments-Bf4IIvHa.js → Attachments-4FIsCWlc.js} +6179 -6296
- package/dist/Attachments-Dr6yedl9.cjs +186 -0
- package/dist/NineDots/index.js +1 -1
- package/dist/{NineDots-q--wtv3_.cjs → NineDots-BEzE3Pj8.cjs} +1 -1
- package/dist/{NineDots-gflwjmeo.js → NineDots-CCtE2t9I.js} +1 -1
- package/dist/PatientAddEdit/index.js +1 -1
- package/dist/{PatientAddEdit-DRQcxWYN.js → PatientAddEdit-9W7ONHSd.js} +7 -6
- package/dist/PatientAddEdit-DmpV8z5a.cjs +7 -0
- package/dist/PatientPopup/index.js +1 -1
- package/dist/PatientPopupContainer-B9Ev8xjs.cjs +36 -0
- package/dist/{PatientPopupContainer-B283bpwr.js → PatientPopupContainer-DpCBNO2c.js} +8 -7
- package/dist/PediatricsCalculator/index.js +1 -1
- package/dist/PediatricsCalculatorTable-B4fTy1J5.cjs +9 -0
- package/dist/{PediatricsCalculatorTable-qu37FR7D.js → PediatricsCalculatorTable-G0ttbDpi.js} +228 -236
- package/dist/{PrintModal-Bum6_fNo.js → PrintModal-BF2-PDRX.js} +9 -20
- package/dist/{PrintModal-tamolKuC.cjs → PrintModal-mNA_qJpW.cjs} +11 -11
- package/dist/{ReusableModal-2GKjVVbf.cjs → ReusableModal-CIgDYOWZ.cjs} +1 -1
- package/dist/{ReusableModal-BL_DwV8I.js → ReusableModal-CT4_gW1b.js} +1 -1
- package/dist/ReusableTable/ReusableTable.d.ts +3 -0
- package/dist/ReusableTable/ReusableTableConstants.d.ts +8 -0
- package/dist/ReusableTable/ReusableTableTypes.d.ts +96 -0
- package/dist/ReusableTable/components/EmptyTableContainer.d.ts +12 -0
- package/dist/ReusableTable/components/FilterCheckbox.d.ts +8 -0
- package/dist/ReusableTable/components/FilterDropdown.d.ts +17 -0
- package/dist/ReusableTable/components/Pagination.d.ts +2 -0
- package/dist/ReusableTable/components/TableBody.d.ts +2 -0
- package/dist/ReusableTable/components/TableCell.d.ts +3 -0
- package/dist/ReusableTable/components/TableFilterSelect.d.ts +12 -0
- package/dist/ReusableTable/components/TableHead.d.ts +2 -0
- package/dist/ReusableTable/components/TableMain.d.ts +2 -0
- package/dist/ReusableTable/components/TableRow.d.ts +3 -0
- package/dist/ReusableTable/context/TableContext.d.ts +21 -0
- package/dist/ReusableTable/context/TableContextBase.d.ts +26 -0
- package/dist/ReusableTable/context/useTableContext.d.ts +2 -0
- package/dist/SearchPatients/index.js +1 -1
- package/dist/{SearchPatients-DbYAGumB.cjs → SearchPatients-6D7IL_wj.cjs} +1 -1
- package/dist/{SearchPatients-BbtytMYS.js → SearchPatients-D7cCFV9o.js} +3 -3
- package/dist/TrendGraphs/AreaChartComponent.d.ts +9 -0
- package/dist/TrendGraphs/LineChartComponent/DataPointToolTip.d.ts +16 -0
- package/dist/TrendGraphs/LineChartComponent/LineChartBody.d.ts +2 -0
- package/dist/TrendGraphs/LineChartComponent/LineChartHeader.d.ts +2 -0
- package/dist/TrendGraphs/LineChartComponent/index.d.ts +2 -0
- package/dist/TrendGraphs/context/index.d.ts +2 -0
- package/dist/TrendGraphs/hooks/useTrendGraphContext.d.ts +2 -0
- package/dist/TrendGraphs/utils/index.d.ts +4 -0
- package/dist/UserProfile/index.js +1 -1
- package/dist/{UserProfile-D3Rhhuj9.cjs → UserProfile-4L3aOHNv.cjs} +4 -4
- package/dist/{UserProfile-jDWt9g20.js → UserProfile-D3cCwQxw.js} +9 -8
- package/dist/clsx-C11secjj.cjs +1 -0
- package/dist/clsx-OuTLNxxd.js +16 -0
- package/dist/common-utils-CprPMjtz.js +1952 -0
- package/dist/common-utils-DrDXKNhv.cjs +6 -0
- package/dist/components/Modal.d.ts +5 -0
- package/dist/constants/TrendGraphsConstants.d.ts +2 -0
- package/dist/dayjs.min-D52_GdfV.js +284 -0
- package/dist/dayjs.min-DXp74Ozx.cjs +1 -0
- package/dist/hplx-feature-library.css +1 -1
- package/dist/{index-UPYT3B9g.js → index-Bd0CDVpH.js} +3 -2
- package/dist/index-CJFGOBPb.js +122 -0
- package/dist/{index-CJ2AKRoq.cjs → index-DQlbIHh3.cjs} +26 -26
- package/dist/index-DfcUmlge.cjs +17 -0
- package/dist/{index-CRCsQdYf.cjs → index-DkA8S5IK.cjs} +1 -1
- package/dist/{index-BzwuwvT5.js → index-T1lUjzhG.js} +1 -1
- package/dist/index.d.ts +1 -0
- package/dist/index.js +15 -13
- package/dist/print-pdf/index.js +1 -1
- package/dist/types/AllInvestigationTypes/index.js +4 -0
- package/dist/types/AllInvestigationTypes.d.ts +45 -0
- package/dist/types/TrendGraphTypes.d.ts +19 -0
- package/dist/useClickOutside-BjJyGTec.js +14 -0
- package/dist/useClickOutside-DsVG12Cs.cjs +1 -0
- package/package.json +11 -1
- package/dist/APIAction-Bev2spv1.cjs +0 -1
- package/dist/Attachments-BIIHwdo1.cjs +0 -202
- package/dist/PatientAddEdit-DtcwFtoA.cjs +0 -7
- package/dist/PatientPopupContainer-CRyDfB0s.cjs +0 -36
- package/dist/PediatricsCalculatorTable-bTvt7SWQ.cjs +0 -9
- package/dist/common-utils-BNaPcohw.cjs +0 -6
- package/dist/common-utils-BidUvSFN.js +0 -2233
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";const n=require("./index-
|
|
1
|
+
"use strict";const n=require("./index-DQlbIHh3.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;
|
|
@@ -0,0 +1,96 @@
|
|
|
1
|
+
import { I_TableFilterProps } from './components/TableFilterSelect';
|
|
2
|
+
import { PinnableValues } from './ReusableTableConstants';
|
|
3
|
+
export interface IPaginationProps {
|
|
4
|
+
activePage: number;
|
|
5
|
+
pageSize: number;
|
|
6
|
+
currentPageRowCount: number;
|
|
7
|
+
totalRecords: number;
|
|
8
|
+
}
|
|
9
|
+
export interface ResuableTableNoDataProps {
|
|
10
|
+
title: string;
|
|
11
|
+
description: string;
|
|
12
|
+
onPageReload: () => void;
|
|
13
|
+
titleClassName?: string;
|
|
14
|
+
descriptionClassName?: string;
|
|
15
|
+
containerClassName?: string;
|
|
16
|
+
buttonClassName?: string;
|
|
17
|
+
imageClassName?: string;
|
|
18
|
+
}
|
|
19
|
+
export interface ReusableTableProps<T> {
|
|
20
|
+
tableRef: React.RefObject<HTMLDivElement>;
|
|
21
|
+
tableMainParentDivRef?: React.RefObject<HTMLDivElement>;
|
|
22
|
+
tableBodyParentDivRef?: React.RefObject<HTMLDivElement>;
|
|
23
|
+
columns: ITableColDef<T>[];
|
|
24
|
+
tableName: string;
|
|
25
|
+
rows: Array<T>;
|
|
26
|
+
paginationProps?: IPaginationProps;
|
|
27
|
+
showPagination?: boolean;
|
|
28
|
+
onPaginationClick?: ((activePage: number) => void) | undefined;
|
|
29
|
+
displayHeaderName?: string;
|
|
30
|
+
tableClassesToOverride?: string;
|
|
31
|
+
headerRowClasses?: string;
|
|
32
|
+
rowClassesForSpecificIndex?: {
|
|
33
|
+
index: number;
|
|
34
|
+
rowClasses: string;
|
|
35
|
+
};
|
|
36
|
+
tableBodyClassesToOverride?: string;
|
|
37
|
+
hideHeader?: boolean;
|
|
38
|
+
displayHeaderClassesToOverride?: string;
|
|
39
|
+
displayPaginationClassesToOverride?: string;
|
|
40
|
+
displayNoDataFoundProps?: ResuableTableNoDataProps;
|
|
41
|
+
enableTableFilter?: boolean;
|
|
42
|
+
tableFilterProps?: I_TableFilterProps;
|
|
43
|
+
headerAndPaginationDivClasses?: string;
|
|
44
|
+
tableMainParentDivClasses?: string;
|
|
45
|
+
tableMainDivClasses?: string;
|
|
46
|
+
}
|
|
47
|
+
export interface ITableColDef<T> {
|
|
48
|
+
field: string;
|
|
49
|
+
headerCellClasses?: string;
|
|
50
|
+
cellClasses?: string;
|
|
51
|
+
description?: string;
|
|
52
|
+
fieldHeaderName: string;
|
|
53
|
+
width?: string;
|
|
54
|
+
maxWidth?: string;
|
|
55
|
+
minWidth?: string;
|
|
56
|
+
pinned?: (typeof PinnableValues)[keyof typeof PinnableValues];
|
|
57
|
+
renderHeaderCell?: (column: ITableColDef<T>) => React.ReactNode;
|
|
58
|
+
renderCell?: (value: unknown, row: T, column: ITableColDef<T>, rowIndex: number) => React.ReactNode;
|
|
59
|
+
valueFormatter?: (value: unknown, row: T, column: ITableColDef<T>, rowIndex: number) => React.ReactNode;
|
|
60
|
+
enableFilter?: boolean;
|
|
61
|
+
enableColumnCheckbox?: boolean;
|
|
62
|
+
isCheckBoxMarked?: boolean;
|
|
63
|
+
onColumnCheckboxClick?: (isMarked: boolean) => void;
|
|
64
|
+
filterValues?: ITableDropdown[];
|
|
65
|
+
onFilterCheck?: (value: string) => void;
|
|
66
|
+
filterClassName?: string;
|
|
67
|
+
filterButtonClassName?: string;
|
|
68
|
+
showApplyFilter?: boolean;
|
|
69
|
+
onApplyFilter?: (field: string) => void;
|
|
70
|
+
resetFilterData?: (field: string) => void;
|
|
71
|
+
showSearch?: boolean;
|
|
72
|
+
searchQuery?: string;
|
|
73
|
+
setSearchQuery?: (value: string) => void;
|
|
74
|
+
dropdownCloseEventOnClickOutside?: () => void;
|
|
75
|
+
}
|
|
76
|
+
export interface ITableCellProps<T> {
|
|
77
|
+
children: React.ReactNode;
|
|
78
|
+
isHeaderCell?: boolean;
|
|
79
|
+
column: ITableColDef<T>;
|
|
80
|
+
colIndex: number;
|
|
81
|
+
rowIndex?: number;
|
|
82
|
+
}
|
|
83
|
+
export interface ITableRowProps {
|
|
84
|
+
children: React.ReactNode;
|
|
85
|
+
isHeaderRow: boolean;
|
|
86
|
+
classes?: string;
|
|
87
|
+
}
|
|
88
|
+
export interface ITableHeadProps<T> {
|
|
89
|
+
columns: ITableColDef<T>[];
|
|
90
|
+
}
|
|
91
|
+
export interface ITableDropdown {
|
|
92
|
+
key?: string;
|
|
93
|
+
name: string;
|
|
94
|
+
isSelected: boolean;
|
|
95
|
+
isDisabled?: boolean;
|
|
96
|
+
}
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
interface EmptyTableProps {
|
|
2
|
+
title: string;
|
|
3
|
+
description: string;
|
|
4
|
+
onPageRefresh: () => void;
|
|
5
|
+
buttonClassName: string;
|
|
6
|
+
titleClassName: string;
|
|
7
|
+
descriptionClassName: string;
|
|
8
|
+
containerClassName: string;
|
|
9
|
+
imageClassName: string;
|
|
10
|
+
}
|
|
11
|
+
declare function EmptyTableContainer(props: EmptyTableProps): import("react/jsx-runtime").JSX.Element;
|
|
12
|
+
export default EmptyTableContainer;
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
interface FilterCheckboxProps {
|
|
2
|
+
label: string;
|
|
3
|
+
onCheck: (value: string) => void;
|
|
4
|
+
isSelected: boolean;
|
|
5
|
+
isDisabled: boolean;
|
|
6
|
+
}
|
|
7
|
+
declare function FilterCheckbox(props: FilterCheckboxProps): import("react/jsx-runtime").JSX.Element;
|
|
8
|
+
export default FilterCheckbox;
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import { ITableDropdown } from '../ReusableTableTypes';
|
|
2
|
+
interface FilterDropdownProps {
|
|
3
|
+
options: ITableDropdown[];
|
|
4
|
+
onCheck: (name: string) => void;
|
|
5
|
+
showSearch: boolean;
|
|
6
|
+
searchQuery?: string;
|
|
7
|
+
setSearchQuery?: (query: string) => void;
|
|
8
|
+
filterclassname: string;
|
|
9
|
+
filterButtonStyles?: string;
|
|
10
|
+
showApplyFilter: boolean;
|
|
11
|
+
onApplyFilter?: (field: string) => void;
|
|
12
|
+
field: string;
|
|
13
|
+
resetDropDownData?: (field: string) => void;
|
|
14
|
+
dropdownCloseEventOnClickOutside?: () => void;
|
|
15
|
+
}
|
|
16
|
+
declare const FilterDropdown: <T>(props: FilterDropdownProps) => import("react/jsx-runtime").JSX.Element;
|
|
17
|
+
export default FilterDropdown;
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import { ITableDropdown } from '../ReusableTableTypes';
|
|
2
|
+
export interface I_TableFilterProps {
|
|
3
|
+
options: ITableDropdown[];
|
|
4
|
+
filterclassname: string;
|
|
5
|
+
filterButtonStyles: string;
|
|
6
|
+
clearFilterButtonStyles: string;
|
|
7
|
+
showApplyFilter: boolean;
|
|
8
|
+
onApplyFilter: (filterOptions: ITableDropdown[]) => void;
|
|
9
|
+
onClearFilter: () => void;
|
|
10
|
+
}
|
|
11
|
+
declare const TableFilterSelect: (props: I_TableFilterProps) => import("react/jsx-runtime").JSX.Element;
|
|
12
|
+
export default TableFilterSelect;
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
import { default as React } from 'react';
|
|
2
|
+
import { ITableColDef, ResuableTableNoDataProps, IPaginationProps } from '../ReusableTableTypes';
|
|
3
|
+
export declare const TableProvider: <T>({ children, initialColumns, rowData, headerRowClasses, rowClassesForSpecificIndex, tableBodyClassesToOverride, hideHeader, paginationProps, onPaginationClick, displayPaginationClassesToOverride, displayNoDataFoundProps, enableTableFilter, tableBodyParentDivRef, tableMainDivClasses, }: {
|
|
4
|
+
children: React.ReactNode;
|
|
5
|
+
initialColumns: Array<ITableColDef<T>>;
|
|
6
|
+
rowData: Array<T>;
|
|
7
|
+
headerRowClasses: string;
|
|
8
|
+
rowClassesForSpecificIndex: {
|
|
9
|
+
index: number;
|
|
10
|
+
rowClasses: string;
|
|
11
|
+
};
|
|
12
|
+
tableBodyClassesToOverride: string;
|
|
13
|
+
hideHeader: boolean;
|
|
14
|
+
paginationProps: IPaginationProps;
|
|
15
|
+
onPaginationClick: ((activePage: number) => void) | undefined;
|
|
16
|
+
displayPaginationClassesToOverride: string;
|
|
17
|
+
displayNoDataFoundProps: ResuableTableNoDataProps | undefined;
|
|
18
|
+
enableTableFilter: boolean;
|
|
19
|
+
tableBodyParentDivRef?: React.RefObject<HTMLDivElement>;
|
|
20
|
+
tableMainDivClasses?: string;
|
|
21
|
+
}) => import("react/jsx-runtime").JSX.Element;
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
import { default as React, SetStateAction } from 'react';
|
|
2
|
+
import { IPaginationProps, ITableColDef, ResuableTableNoDataProps } from '../ReusableTableTypes';
|
|
3
|
+
export interface TableContextProps<T> {
|
|
4
|
+
rowsData: Array<T>;
|
|
5
|
+
allColumns: ITableColDef<T>[];
|
|
6
|
+
headerRowClasses: string;
|
|
7
|
+
rowClassesForSpecificIndex: {
|
|
8
|
+
index: number;
|
|
9
|
+
rowClasses: string;
|
|
10
|
+
};
|
|
11
|
+
tableBodyClassesToOverride: string;
|
|
12
|
+
hideHeader: boolean;
|
|
13
|
+
leftPinnedColumns: ITableColDef<T>[];
|
|
14
|
+
rightPinnedColumns: ITableColDef<T>[];
|
|
15
|
+
nonPinnedColumns: ITableColDef<T>[];
|
|
16
|
+
paginationProps: IPaginationProps;
|
|
17
|
+
onPaginationClick: ((activePage: number) => void) | undefined;
|
|
18
|
+
showDropdown: string | null;
|
|
19
|
+
setShowDropdown: React.Dispatch<SetStateAction<string | null>>;
|
|
20
|
+
displayPaginationClassesToOverride: string;
|
|
21
|
+
displayNoDataFoundProps: ResuableTableNoDataProps | undefined;
|
|
22
|
+
enableTableFilter: boolean;
|
|
23
|
+
tableBodyParentDivRef?: React.RefObject<HTMLDivElement>;
|
|
24
|
+
tableMainDivClasses?: string;
|
|
25
|
+
}
|
|
26
|
+
export declare const TableContext: React.Context<TableContextProps<any>>;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";const t=require("./index-
|
|
1
|
+
"use strict";const t=require("./index-DQlbIHh3.cjs"),n=require("react"),W=require("./APIAction-DB6Ulkss.cjs"),J=require("./useMediaQuery-D4SIgdMW.cjs"),p=require("./common-utils-DrDXKNhv.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;
|
|
@@ -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-Bd0CDVpH.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-CTNOzVOC.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-CprPMjtz.js";
|
|
6
6
|
const oe = Math.abs(window.orientation || 0) === 90, de = (G) => {
|
|
7
7
|
const {
|
|
8
8
|
addPatientHandler: R,
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { TrendGraphData } from '../types/TrendGraphTypes';
|
|
2
|
+
interface AreaChartProps {
|
|
3
|
+
trendData: TrendGraphData;
|
|
4
|
+
containerWidth: number;
|
|
5
|
+
containerHeight: number;
|
|
6
|
+
showError?: (message: string) => void;
|
|
7
|
+
}
|
|
8
|
+
declare function AreaChartComponent(props: AreaChartProps): import("react/jsx-runtime").JSX.Element;
|
|
9
|
+
export default AreaChartComponent;
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
interface PayloadItem {
|
|
2
|
+
value: number;
|
|
3
|
+
payload: {
|
|
4
|
+
date: string;
|
|
5
|
+
value: number;
|
|
6
|
+
};
|
|
7
|
+
dataKey: string;
|
|
8
|
+
name: string;
|
|
9
|
+
}
|
|
10
|
+
interface DataPointTooltipProps {
|
|
11
|
+
active?: boolean;
|
|
12
|
+
payload?: PayloadItem[];
|
|
13
|
+
label?: string | number;
|
|
14
|
+
}
|
|
15
|
+
declare const DataPointTooltip: React.FC<DataPointTooltipProps>;
|
|
16
|
+
export default DataPointTooltip;
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
import { I_AllInvestigations } from '../../types/AllInvestigationTypes';
|
|
2
|
+
import { TrendGraphData, TrendGraphDataPoint } from '../../types/TrendGraphTypes';
|
|
3
|
+
export declare function isValidTrendGraphData(data: TrendGraphData): boolean;
|
|
4
|
+
export declare const convertRowToTrendGraphData: (row: I_AllInvestigations) => TrendGraphDataPoint[];
|