hplx-feature-library 1.0.158 → 1.0.159

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 (84) hide show
  1. package/dist/Attachments/index.js +12657 -11153
  2. package/dist/PediatricsCalculator/index.js +1 -1
  3. package/dist/PediatricsCalculatorTable-BglWcUGO.cjs +40 -0
  4. package/dist/PediatricsCalculatorTable-Dwluo5W0.js +2163 -0
  5. package/dist/components/{customDropdown/CustomDropdown.d.ts → CustomDropdown.d.ts} +1 -1
  6. package/dist/components/{toggleButtons/ToggleButtons.d.ts → ToggleButtons.d.ts} +1 -1
  7. package/dist/hplx-feature-library.css +1 -1
  8. package/dist/index.d.ts +0 -5
  9. package/dist/index.js +2 -12
  10. package/dist/useOutsideClick-COATBT9j.cjs +92 -0
  11. package/dist/{index-C5JVupKG.js → useOutsideClick-CYAjbj1N.js} +2493 -2353
  12. package/package.json +4 -46
  13. package/dist/AlertPopup/index.js +0 -5
  14. package/dist/AlertPopup-CPKIp-41.cjs +0 -32
  15. package/dist/AlertPopup-CrMI2BnN.js +0 -1069
  16. package/dist/AllInvestigations/components/AllInvestigationsTable.d.ts +0 -19
  17. package/dist/AllInvestigations/index.d.ts +0 -1
  18. package/dist/AllInvestigations/index.js +0 -4
  19. package/dist/AllInvestigations/utils/test-tange-util.d.ts +0 -8
  20. package/dist/AllInvestigationsTable-ChSzwZCN.js +0 -16962
  21. package/dist/AllInvestigationsTable-gBuj3nBC.cjs +0 -80
  22. package/dist/CustomDropdown/index.js +0 -256
  23. package/dist/DateTimePicker/DateAndTimePicker/index.js +0 -5907
  24. package/dist/PediatricsCalculatorTable-CnrU0s8_.cjs +0 -1
  25. package/dist/PediatricsCalculatorTable-DEwcZURh.js +0 -832
  26. package/dist/ReusableTable/ReusableTable.d.ts +0 -3
  27. package/dist/ReusableTable/ReusableTableConstants.d.ts +0 -8
  28. package/dist/ReusableTable/ReusableTableTypes.d.ts +0 -96
  29. package/dist/ReusableTable/components/EmptyTableContainer.d.ts +0 -12
  30. package/dist/ReusableTable/components/FilterCheckbox.d.ts +0 -8
  31. package/dist/ReusableTable/components/FilterDropdown.d.ts +0 -17
  32. package/dist/ReusableTable/components/Pagination.d.ts +0 -2
  33. package/dist/ReusableTable/components/TableBody.d.ts +0 -2
  34. package/dist/ReusableTable/components/TableCell.d.ts +0 -3
  35. package/dist/ReusableTable/components/TableFilterSelect.d.ts +0 -12
  36. package/dist/ReusableTable/components/TableHead.d.ts +0 -2
  37. package/dist/ReusableTable/components/TableMain.d.ts +0 -2
  38. package/dist/ReusableTable/components/TableRow.d.ts +0 -3
  39. package/dist/ReusableTable/context/TableContext.d.ts +0 -21
  40. package/dist/ReusableTable/context/TableContextBase.d.ts +0 -26
  41. package/dist/ReusableTable/context/useTableContext.d.ts +0 -2
  42. package/dist/ToggleButtons/index.js +0 -17
  43. package/dist/TrendGraphs/AreaChartComponent.d.ts +0 -9
  44. package/dist/TrendGraphs/LineChartComponent/DataPointToolTip.d.ts +0 -16
  45. package/dist/TrendGraphs/LineChartComponent/LineChartBody.d.ts +0 -2
  46. package/dist/TrendGraphs/LineChartComponent/LineChartHeader.d.ts +0 -2
  47. package/dist/TrendGraphs/LineChartComponent/index.d.ts +0 -2
  48. package/dist/TrendGraphs/context/index.d.ts +0 -2
  49. package/dist/TrendGraphs/hooks/useTrendGraphContext.d.ts +0 -2
  50. package/dist/TrendGraphs/utils/index.d.ts +0 -4
  51. package/dist/common/APIAction/APIAction.d.ts +0 -55
  52. package/dist/common/components/BorderFullWidth.d.ts +0 -2
  53. package/dist/common/components/table/ExistingPatients.d.ts +0 -17
  54. package/dist/common/editRibbon/EditRibbon.d.ts +0 -9
  55. package/dist/common/utils/NetworkInstance.d.ts +0 -4
  56. package/dist/common/utils/common-utils.d.ts +0 -38
  57. package/dist/components/Modal.d.ts +0 -5
  58. package/dist/components/PatientAddEdit.d.ts +0 -3
  59. package/dist/components/alertPopup/index.d.ts +0 -1
  60. package/dist/components/customDropdown/index.d.ts +0 -1
  61. package/dist/components/dateTimePicker/DateAndTimePicker.d.ts +0 -21
  62. package/dist/components/dateTimePicker/index.d.ts +0 -1
  63. package/dist/components/toggleButtons/index.d.ts +0 -1
  64. package/dist/constants/CommonConstant.d.ts +0 -58
  65. package/dist/constants/TrendGraphsConstants.d.ts +0 -2
  66. package/dist/dayjs.min-BZVOTRKJ.cjs +0 -1
  67. package/dist/dayjs.min-qi3CdtFF.js +0 -298
  68. package/dist/index-C3v1d6Xc.cjs +0 -92
  69. package/dist/index-CJFGOBPb.js +0 -122
  70. package/dist/index-DfcUmlge.cjs +0 -17
  71. package/dist/parseISO-AwyR5Nhg.cjs +0 -1
  72. package/dist/parseISO-Cso9HWPX.js +0 -1414
  73. package/dist/types/APIEndPoints.d.ts +0 -11
  74. package/dist/types/AllInvestigationTypes/index.js +0 -4
  75. package/dist/types/AllInvestigationTypes.d.ts +0 -45
  76. package/dist/types/ApiResponseTypes.d.ts +0 -249
  77. package/dist/types/CommonTypes.d.ts +0 -228
  78. package/dist/types/PatientAddEditTypes.d.ts +0 -13
  79. package/dist/types/TrendGraphTypes.d.ts +0 -19
  80. package/dist/useClickOutside-BjJyGTec.js +0 -14
  81. package/dist/useClickOutside-DsVG12Cs.cjs +0 -1
  82. package/dist/useOutsideClick-C4Q0aGuf.js +0 -15
  83. package/dist/useOutsideClick-CicUjzPP.cjs +0 -1
  84. /package/dist/components/{alertPopup/AlertPopup.d.ts → AlertPopup.d.ts} +0 -0
@@ -1,3 +0,0 @@
1
- import { ReusableTableProps } from './ReusableTableTypes';
2
- declare const ReusableTable: <T>(props: ReusableTableProps<T>) => import("react/jsx-runtime").JSX.Element;
3
- export default ReusableTable;
@@ -1,8 +0,0 @@
1
- export declare const PaginationClickTypes: {
2
- NEXT_PAGE: string;
3
- PREV_PAGE: string;
4
- };
5
- export declare const PinnableValues: {
6
- Left: string;
7
- Right: string;
8
- };
@@ -1,96 +0,0 @@
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
- }
@@ -1,12 +0,0 @@
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;
@@ -1,8 +0,0 @@
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;
@@ -1,17 +0,0 @@
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;
@@ -1,2 +0,0 @@
1
- declare const Pagination: () => import("react/jsx-runtime").JSX.Element;
2
- export default Pagination;
@@ -1,2 +0,0 @@
1
- declare const TableBody: <T>() => import("react/jsx-runtime").JSX.Element;
2
- export default TableBody;
@@ -1,3 +0,0 @@
1
- import { ITableCellProps } from '../ReusableTableTypes';
2
- declare const TableCell: <T>({ children, column, isHeaderCell }: ITableCellProps<T>) => import("react/jsx-runtime").JSX.Element;
3
- export default TableCell;
@@ -1,12 +0,0 @@
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;
@@ -1,2 +0,0 @@
1
- declare const TableHead: <T>() => import("react/jsx-runtime").JSX.Element;
2
- export default TableHead;
@@ -1,2 +0,0 @@
1
- declare const TableMain: <T>() => import("react/jsx-runtime").JSX.Element;
2
- export default TableMain;
@@ -1,3 +0,0 @@
1
- import { ITableRowProps } from '../ReusableTableTypes';
2
- declare const TableRow: ({ children, isHeaderRow, classes }: ITableRowProps) => import("react/jsx-runtime").JSX.Element;
3
- export default TableRow;
@@ -1,21 +0,0 @@
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;
@@ -1,26 +0,0 @@
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> | undefined>;
@@ -1,2 +0,0 @@
1
- import { TableContextProps } from './TableContextBase';
2
- export declare const useTableContext: <T>() => TableContextProps<T>;
@@ -1,17 +0,0 @@
1
- import { j as e, Y as f } from "../index-C5JVupKG.js";
2
- function n(r) {
3
- const { options: h, selectedOption: a, onChangeHandler: s } = r;
4
- return /* @__PURE__ */ e.jsx("div", { className: "hfl-flex hfl-gap-2 hfl-h-full hfl-items-center hfl-px-4 hfl-justify-center hfl-py-1", children: h?.map((l) => /* @__PURE__ */ e.jsx("div", { className: "hfl-bg-White hfl-rounded-lg", children: /* @__PURE__ */ e.jsx(
5
- f,
6
- {
7
- onClick: () => s && s(l),
8
- hierarchy: a?.label === l.label ? "Primary" : "Secondary-Grey",
9
- size: "sm",
10
- textField: l.label,
11
- className: a?.label === l.label ? "hfl-bg-Blue-600" : ""
12
- }
13
- ) }, l.label)) });
14
- }
15
- export {
16
- n as default
17
- };
@@ -1,9 +0,0 @@
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;
@@ -1,16 +0,0 @@
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;
@@ -1,2 +0,0 @@
1
- declare function LineChartBody(): import("react/jsx-runtime").JSX.Element;
2
- export default LineChartBody;
@@ -1,2 +0,0 @@
1
- declare function LineChartHeader(): import("react/jsx-runtime").JSX.Element;
2
- export default LineChartHeader;
@@ -1,2 +0,0 @@
1
- declare function LineChartComponent(): import("react/jsx-runtime").JSX.Element;
2
- export default LineChartComponent;
@@ -1,2 +0,0 @@
1
- import { TrendGraphContextType } from '../../types/TrendGraphTypes';
2
- export declare const TrendGraphContext: import('react').Context<TrendGraphContextType | undefined>;
@@ -1,2 +0,0 @@
1
- declare function useTrendGraphContext(): import('../../types/TrendGraphTypes').TrendGraphContextType;
2
- export default useTrendGraphContext;
@@ -1,4 +0,0 @@
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[];
@@ -1,55 +0,0 @@
1
- import { ADD_PATIENT_IMAGE_RESPONSE, ADD_PATIENT_RESPONSE, DELETE_PATIENT_IMAGE_RESPONSE, GET_APPOINTMENTS_RESPONSE, GET_BRANCH_PREFERENCE_RESPONSE, GET_PATIENT_DETAILS_RESPONSE, GET_REFERRED_BY_LISTS_RESPONSE, IAddPatientPayload, IGetPatientListPayload, IGetPatientListResponse, IUpdatePatientPayload, UPDATE_PATIENT_RESPONSE } from '../../types/ApiResponseTypes';
2
- import { E_ENVIRONMENT } from '../../types/CommonTypes';
3
- export declare const getDoctorPreference: (fields_required: string | string[] | undefined, data: {
4
- doc_rid?: string;
5
- } | undefined, doctor_role_id: string, org_branch_id: string, token_env: {
6
- token: string;
7
- env: E_ENVIRONMENT;
8
- }) => Promise<GET_BRANCH_PREFERENCE_RESPONSE>;
9
- export declare const getBranchPreferences: (fields_required: string | undefined, org_branch_id: string, token_env: {
10
- token: string;
11
- env: E_ENVIRONMENT;
12
- }) => Promise<GET_BRANCH_PREFERENCE_RESPONSE>;
13
- export declare const getAppointments: (appnt_date: string, doctor_role_id: string, org_branch_id: string, person_id: string, token_env: {
14
- token: string;
15
- env: E_ENVIRONMENT;
16
- }) => Promise<GET_APPOINTMENTS_RESPONSE>;
17
- export declare const getPatientList: (payload: IGetPatientListPayload, token_env: {
18
- token: string;
19
- env: E_ENVIRONMENT;
20
- }) => Promise<IGetPatientListResponse | null>;
21
- export declare const getReferredByList: (token_env: {
22
- token: string;
23
- env: E_ENVIRONMENT;
24
- }) => Promise<GET_REFERRED_BY_LISTS_RESPONSE>;
25
- export declare const addPatientDetails: (payload: IAddPatientPayload, token_env: {
26
- token: string;
27
- env: E_ENVIRONMENT;
28
- }) => Promise<ADD_PATIENT_RESPONSE>;
29
- export declare const updatePatientDetails: (payload: IUpdatePatientPayload, token_env: {
30
- token: string;
31
- env: E_ENVIRONMENT;
32
- }) => Promise<UPDATE_PATIENT_RESPONSE>;
33
- export declare const addPatientImage: (payload: FormData, token_env: {
34
- token: string;
35
- env: E_ENVIRONMENT;
36
- }) => Promise<ADD_PATIENT_IMAGE_RESPONSE>;
37
- export declare const deletePatientImage: (payload: FormData, token_env: {
38
- token: string;
39
- env: E_ENVIRONMENT;
40
- }) => Promise<DELETE_PATIENT_IMAGE_RESPONSE>;
41
- export declare const getPatientDetails: ({ callback, payload, token_env, isCallbackNeeded, }: {
42
- callback: (data: GET_PATIENT_DETAILS_RESPONSE) => void;
43
- payload: {
44
- branch_id: string;
45
- person_id: string;
46
- person_role_id: string;
47
- patient_role_id: string;
48
- partner_service_enabled?: boolean;
49
- };
50
- token_env: {
51
- token: string;
52
- env: E_ENVIRONMENT;
53
- };
54
- isCallbackNeeded?: boolean;
55
- }) => Promise<GET_PATIENT_DETAILS_RESPONSE | undefined>;
@@ -1,2 +0,0 @@
1
- declare const BorderFullWidth: () => import("react/jsx-runtime").JSX.Element;
2
- export default BorderFullWidth;
@@ -1,17 +0,0 @@
1
- interface Patient {
2
- org_person_name?: string;
3
- name?: string;
4
- org_person_phone?: string;
5
- phone?: string;
6
- org_person_email?: string;
7
- email?: string;
8
- person_role_id?: string | number;
9
- }
10
- interface ExistingPatientsProps {
11
- conflicts: Patient[];
12
- handleAddPatient: (isNew: boolean, redirectAction: string) => void;
13
- redirectAction: string;
14
- manipulateExistingDOM?: () => void;
15
- }
16
- declare const ExistingPatients: ({ conflicts, handleAddPatient, redirectAction }: ExistingPatientsProps) => import("react/jsx-runtime").JSX.Element;
17
- export default ExistingPatients;
@@ -1,9 +0,0 @@
1
- interface Props {
2
- editPatient: boolean;
3
- setEditPatient: (value: boolean) => void;
4
- createAsNew: boolean;
5
- setCreateAsNew: (value: boolean) => void;
6
- showEditPrompt?: boolean;
7
- }
8
- declare function EditRibbon(props: Props): import("react/jsx-runtime").JSX.Element;
9
- export default EditRibbon;
@@ -1,4 +0,0 @@
1
- import { E_ENVIRONMENT } from '../../types/CommonTypes';
2
- export declare const hplxAPI: (token: string | undefined, env: E_ENVIRONMENT) => import('axios').AxiosInstance;
3
- export declare const externalAPI: () => import('axios').AxiosInstance;
4
- export declare const ReArchAPI: (token: string | undefined, env: E_ENVIRONMENT) => import('axios').AxiosInstance;
@@ -1,38 +0,0 @@
1
- export declare const getCookie: (cname: string) => string;
2
- export declare const goToPage: (params: string) => void;
3
- export declare const parseThroughChannelList: (channelList: string[]) => {
4
- title: string;
5
- value: string;
6
- }[];
7
- export declare const parseReferredByDocList: (referredList: Array<{
8
- doctor_id: string;
9
- doctor_name: string;
10
- specialist: string;
11
- }>) => {
12
- doctor_id: string;
13
- doctor_name: string;
14
- label: string;
15
- specialist: string;
16
- }[];
17
- export declare const parseReferredByList: (referredList: Array<{
18
- doctor_id: string;
19
- doctor_name: string;
20
- specialist: string;
21
- }>) => Record<string, {
22
- doctor_id: string;
23
- doctor_name: string;
24
- specialist: string;
25
- }>;
26
- export declare const isJson: (str: string) => boolean;
27
- export declare const calculateDate: (value: string, unitVal: string) => string | null;
28
- export declare const getGenderKey: (gender: string) => "M" | "F" | "O";
29
- export declare const getGender: (gender: number) => string;
30
- export declare const validateMobileNo: (value: string) => {
31
- isError: boolean;
32
- msg: string;
33
- };
34
- export declare const isValidDate: (dateObject: string | Date) => boolean;
35
- export declare function calculateAge(pat_dob: string): string;
36
- export declare const debounceFn: <T extends (...args: unknown[]) => void>(func: T, timing?: number) => ((...args: Parameters<T>) => void);
37
- export declare const calculateDOB: (value: string, unitVal: string) => string | null;
38
- export declare const handle401Status: () => void;
@@ -1,5 +0,0 @@
1
- interface ModalProps {
2
- children: React.ReactNode;
3
- }
4
- declare function Modal({ children }: ModalProps): import('react').ReactPortal;
5
- export default Modal;
@@ -1,3 +0,0 @@
1
- import { PatientAddEditProps } from '../types/PatientAddEditTypes';
2
- declare const PatientAddEdit: (props: PatientAddEditProps) => import("react/jsx-runtime").JSX.Element;
3
- export default PatientAddEdit;
@@ -1 +0,0 @@
1
- export { default as AlertPopup } from './AlertPopup';
@@ -1 +0,0 @@
1
- export { default as CustomDropdown } from './CustomDropdown';
@@ -1,21 +0,0 @@
1
- import { RefObject } from 'react';
2
- interface DateAndTimePickerProps {
3
- inputDate: Date;
4
- triggerType?: 'button' | 'input';
5
- placeholderCTA?: string;
6
- placeholderCTAStyles?: string;
7
- inputPlaceholder?: string;
8
- inputFieldClassName?: string;
9
- displayDateFormat?: string;
10
- minDate?: Date | null;
11
- maxDate?: Date | null;
12
- applyChanges: (selectedDate: Date) => void;
13
- datePickerAbsoluteClasses: string;
14
- highlightClickedCell?: boolean;
15
- sectionRef?: RefObject<HTMLDivElement>;
16
- inputIcon?: string;
17
- inputIconClasses?: string;
18
- datePickerMainDivClasses?: string;
19
- }
20
- declare const DateAndTimePicker: ({ inputDate, placeholderCTA, placeholderCTAStyles, minDate, maxDate, applyChanges, datePickerAbsoluteClasses, triggerType, inputPlaceholder, inputFieldClassName, displayDateFormat, sectionRef, highlightClickedCell, inputIcon, inputIconClasses, datePickerMainDivClasses, }: DateAndTimePickerProps) => import("react/jsx-runtime").JSX.Element;
21
- export default DateAndTimePicker;
@@ -1 +0,0 @@
1
- export { default as DateAndTimePicker } from './DateAndTimePicker';
@@ -1 +0,0 @@
1
- export { default } from './ToggleButtons';
@@ -1,58 +0,0 @@
1
- import { EAPP_ROUTES } from '../types/CommonTypes';
2
- export declare const OccupationList: string[];
3
- export declare const CityList: string[];
4
- export declare const HonorificList: {
5
- label: string;
6
- value: string;
7
- gender: string;
8
- }[];
9
- export declare const bloodGroups: {
10
- value: string;
11
- label: string;
12
- }[];
13
- export declare const DefinedLanguages: {
14
- en: string;
15
- hi: string;
16
- kn: string;
17
- ml: string;
18
- te: string;
19
- gu: string;
20
- mr: string;
21
- ta: string;
22
- bn: string;
23
- ur: string;
24
- pa: string;
25
- od: string;
26
- ar: string;
27
- asa: string;
28
- };
29
- export declare const SpecialityList: {
30
- label: string;
31
- value: string;
32
- }[];
33
- export declare const genderList: {
34
- value: number;
35
- text: string;
36
- }[];
37
- export declare const MARITAL_STATUS: string[];
38
- export declare const C_ALL_APP_ROUTES: EAPP_ROUTES[];
39
- export declare const UnauthorizedAccessMessage: {
40
- title: string;
41
- subTitle: string;
42
- type: string;
43
- time: number;
44
- };
45
- export declare const BASE_URLS: {
46
- STAGING: {
47
- php_url: string;
48
- rearch_url: string;
49
- };
50
- DEVELOPMENT: {
51
- php_url: string;
52
- rearch_url: string;
53
- };
54
- PRODUCTION: {
55
- php_url: string;
56
- rearch_url: string;
57
- };
58
- };
@@ -1,2 +0,0 @@
1
- import { AreaGraphColor } from '../types/TrendGraphTypes';
2
- export declare const AREA_GRAPH_COLORS: AreaGraphColor[];
@@ -1 +0,0 @@
1
- "use strict";const X=require("./index-C3v1d6Xc.cjs");function P($){var g,y,f="";if(typeof $=="string"||typeof $=="number")f+=$;else if(typeof $=="object")if(Array.isArray($)){var b=$.length;for(g=0;g<b;g++)$[g]&&(y=P($[g]))&&(f&&(f+=" "),f+=y)}else for(y in $)$[y]&&(f&&(f+=" "),f+=y);return f}function tt(){for(var $,g,y=0,f="",b=arguments.length;y<b;y++)($=arguments[y])&&(g=P($))&&(f&&(f+=" "),f+=g);return f}var N={exports:{}},et=N.exports,B;function rt(){return B||(B=1,function($,g){(function(y,f){$.exports=f()})(et,function(){var y=1e3,f=6e4,b=36e5,U="millisecond",x="second",k="minute",j="hour",D="day",L="week",M="month",Z="quarter",p="year",Y="date",z="Invalid Date",Q=/^(\d{4})[-/]?(\d{1,2})?[-/]?(\d{0,2})[Tt\s]*(\d{1,2})?:?(\d{1,2})?:?(\d{1,2})?[.:]?(\d+)?$/,R=/\[([^\]]+)]|Y{1,4}|M{1,4}|D{1,2}|d{1,4}|H{1,2}|h{1,2}|a|A|m{1,2}|s{1,2}|Z{1,2}|SSS/g,G={name:"en",weekdays:"Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),months:"January_February_March_April_May_June_July_August_September_October_November_December".split("_"),ordinal:function(s){var r=["th","st","nd","rd"],t=s%100;return"["+s+(r[(t-20)%10]||r[t]||r[0])+"]"}},q=function(s,r,t){var n=String(s);return!n||n.length>=r?s:""+Array(r+1-n.length).join(t)+s},K={s:q,z:function(s){var r=-s.utcOffset(),t=Math.abs(r),n=Math.floor(t/60),e=t%60;return(r<=0?"+":"-")+q(n,2,"0")+":"+q(e,2,"0")},m:function s(r,t){if(r.date()<t.date())return-s(t,r);var n=12*(t.year()-r.year())+(t.month()-r.month()),e=r.clone().add(n,M),i=t-e<0,u=r.clone().add(n+(i?-1:1),M);return+(-(n+(t-e)/(i?e-u:u-e))||0)},a:function(s){return s<0?Math.ceil(s)||0:Math.floor(s)},p:function(s){return{M,y:p,w:L,d:D,D:Y,h:j,m:k,s:x,ms:U,Q:Z}[s]||String(s||"").toLowerCase().replace(/s$/,"")},u:function(s){return s===void 0}},T="en",w={};w[T]=G;var E="$isDayjsObject",J=function(s){return s instanceof I||!(!s||!s[E])},W=function s(r,t,n){var e;if(!r)return T;if(typeof r=="string"){var i=r.toLowerCase();w[i]&&(e=i),t&&(w[i]=t,e=i);var u=r.split("-");if(!e&&u.length>1)return s(u[0])}else{var o=r.name;w[o]=r,e=o}return!n&&e&&(T=e),e||!n&&T},h=function(s,r){if(J(s))return s.clone();var t=typeof r=="object"?r:{};return t.date=s,t.args=arguments,new I(t)},a=K;a.l=W,a.i=J,a.w=function(s,r){return h(s,{locale:r.$L,utc:r.$u,x:r.$x,$offset:r.$offset})};var I=function(){function s(t){this.$L=W(t.locale,null,!0),this.parse(t),this.$x=this.$x||t.x||{},this[E]=!0}var r=s.prototype;return r.parse=function(t){this.$d=function(n){var e=n.date,i=n.utc;if(e===null)return new Date(NaN);if(a.u(e))return new Date;if(e instanceof Date)return new Date(e);if(typeof e=="string"&&!/Z$/i.test(e)){var u=e.match(Q);if(u){var o=u[2]-1||0,c=(u[7]||"0").substring(0,3);return i?new Date(Date.UTC(u[1],o,u[3]||1,u[4]||0,u[5]||0,u[6]||0,c)):new Date(u[1],o,u[3]||1,u[4]||0,u[5]||0,u[6]||0,c)}}return new Date(e)}(t),this.init()},r.init=function(){var t=this.$d;this.$y=t.getFullYear(),this.$M=t.getMonth(),this.$D=t.getDate(),this.$W=t.getDay(),this.$H=t.getHours(),this.$m=t.getMinutes(),this.$s=t.getSeconds(),this.$ms=t.getMilliseconds()},r.$utils=function(){return a},r.isValid=function(){return this.$d.toString()!==z},r.isSame=function(t,n){var e=h(t);return this.startOf(n)<=e&&e<=this.endOf(n)},r.isAfter=function(t,n){return h(t)<this.startOf(n)},r.isBefore=function(t,n){return this.endOf(n)<h(t)},r.$g=function(t,n,e){return a.u(t)?this[n]:this.set(e,t)},r.unix=function(){return Math.floor(this.valueOf()/1e3)},r.valueOf=function(){return this.$d.getTime()},r.startOf=function(t,n){var e=this,i=!!a.u(n)||n,u=a.p(t),o=function(O,m){var S=a.w(e.$u?Date.UTC(e.$y,m,O):new Date(e.$y,m,O),e);return i?S:S.endOf(D)},c=function(O,m){return a.w(e.toDate()[O].apply(e.toDate("s"),(i?[0,0,0,0]:[23,59,59,999]).slice(m)),e)},d=this.$W,l=this.$M,v=this.$D,H="set"+(this.$u?"UTC":"");switch(u){case p:return i?o(1,0):o(31,11);case M:return i?o(1,l):o(0,l+1);case L:var _=this.$locale().weekStart||0,A=(d<_?d+7:d)-_;return o(i?v-A:v+(6-A),l);case D:case Y:return c(H+"Hours",0);case j:return c(H+"Minutes",1);case k:return c(H+"Seconds",2);case x:return c(H+"Milliseconds",3);default:return this.clone()}},r.endOf=function(t){return this.startOf(t,!1)},r.$set=function(t,n){var e,i=a.p(t),u="set"+(this.$u?"UTC":""),o=(e={},e[D]=u+"Date",e[Y]=u+"Date",e[M]=u+"Month",e[p]=u+"FullYear",e[j]=u+"Hours",e[k]=u+"Minutes",e[x]=u+"Seconds",e[U]=u+"Milliseconds",e)[i],c=i===D?this.$D+(n-this.$W):n;if(i===M||i===p){var d=this.clone().set(Y,1);d.$d[o](c),d.init(),this.$d=d.set(Y,Math.min(this.$D,d.daysInMonth())).$d}else o&&this.$d[o](c);return this.init(),this},r.set=function(t,n){return this.clone().$set(t,n)},r.get=function(t){return this[a.p(t)]()},r.add=function(t,n){var e,i=this;t=Number(t);var u=a.p(n),o=function(l){var v=h(i);return a.w(v.date(v.date()+Math.round(l*t)),i)};if(u===M)return this.set(M,this.$M+t);if(u===p)return this.set(p,this.$y+t);if(u===D)return o(1);if(u===L)return o(7);var c=(e={},e[k]=f,e[j]=b,e[x]=y,e)[u]||1,d=this.$d.getTime()+t*c;return a.w(d,this)},r.subtract=function(t,n){return this.add(-1*t,n)},r.format=function(t){var n=this,e=this.$locale();if(!this.isValid())return e.invalidDate||z;var i=t||"YYYY-MM-DDTHH:mm:ssZ",u=a.z(this),o=this.$H,c=this.$m,d=this.$M,l=e.weekdays,v=e.months,H=e.meridiem,_=function(m,S,C,F){return m&&(m[S]||m(n,i))||C[S].slice(0,F)},A=function(m){return a.s(o%12||12,m,"0")},O=H||function(m,S,C){var F=m<12?"AM":"PM";return C?F.toLowerCase():F};return i.replace(R,function(m,S){return S||function(C){switch(C){case"YY":return String(n.$y).slice(-2);case"YYYY":return a.s(n.$y,4,"0");case"M":return d+1;case"MM":return a.s(d+1,2,"0");case"MMM":return _(e.monthsShort,d,v,3);case"MMMM":return _(v,d);case"D":return n.$D;case"DD":return a.s(n.$D,2,"0");case"d":return String(n.$W);case"dd":return _(e.weekdaysMin,n.$W,l,2);case"ddd":return _(e.weekdaysShort,n.$W,l,3);case"dddd":return l[n.$W];case"H":return String(o);case"HH":return a.s(o,2,"0");case"h":return A(1);case"hh":return A(2);case"a":return O(o,c,!0);case"A":return O(o,c,!1);case"m":return String(c);case"mm":return a.s(c,2,"0");case"s":return String(n.$s);case"ss":return a.s(n.$s,2,"0");case"SSS":return a.s(n.$ms,3,"0");case"Z":return u}return null}(m)||u.replace(":","")})},r.utcOffset=function(){return 15*-Math.round(this.$d.getTimezoneOffset()/15)},r.diff=function(t,n,e){var i,u=this,o=a.p(n),c=h(t),d=(c.utcOffset()-this.utcOffset())*f,l=this-c,v=function(){return a.m(u,c)};switch(o){case p:i=v()/12;break;case M:i=v();break;case Z:i=v()/3;break;case L:i=(l-d)/6048e5;break;case D:i=(l-d)/864e5;break;case j:i=l/b;break;case k:i=l/f;break;case x:i=l/y;break;default:i=l}return e?i:a.a(i)},r.daysInMonth=function(){return this.endOf(M).$D},r.$locale=function(){return w[this.$L]},r.locale=function(t,n){if(!t)return this.$L;var e=this.clone(),i=W(t,n,!0);return i&&(e.$L=i),e},r.clone=function(){return a.w(this.$d,this)},r.toDate=function(){return new Date(this.valueOf())},r.toJSON=function(){return this.isValid()?this.toISOString():null},r.toISOString=function(){return this.$d.toISOString()},r.toString=function(){return this.$d.toUTCString()},s}(),V=I.prototype;return h.prototype=V,[["$ms",U],["$s",x],["$m",k],["$H",j],["$W",D],["$M",M],["$y",p],["$D",Y]].forEach(function(s){V[s[1]]=function(r){return this.$g(r,s[0],s[1])}}),h.extend=function(s,r){return s.$i||(s(r,I,h),s.$i=!0),h},h.locale=W,h.isDayjs=J,h.unix=function(s){return h(1e3*s)},h.en=w[T],h.Ls=w,h.p={},h})}(N)),N.exports}var nt=rt();const st=X.getDefaultExportFromCjs(nt);exports.clsx=tt;exports.dayjs=st;