hplx-feature-library 1.0.159 → 1.0.161
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/AlertPopup/index.js +79 -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-9CE_uDGv.cjs +80 -0
- package/dist/AllInvestigationsTable-HC9dOdiS.js +16964 -0
- package/dist/Attachments/index.js +11153 -12657
- package/dist/CustomDropdown/index.js +256 -0
- package/dist/DateTimePicker/DateAndTimePicker/index.js +5908 -0
- package/dist/PatientAddEdit/index.js +5319 -0
- package/dist/PediatricsCalculator/index.js +1 -1
- package/dist/PediatricsCalculatorTable-CB1YOoVy.js +833 -0
- package/dist/PediatricsCalculatorTable-CPXBdrqk.cjs +1 -0
- 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/ToggleButtons/index.js +17 -0
- 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/clsx-C11secjj.cjs +1 -0
- package/dist/clsx-OuTLNxxd.js +16 -0
- package/dist/common/APIAction/APIAction.d.ts +55 -0
- package/dist/common/components/BorderFullWidth.d.ts +2 -0
- package/dist/common/components/table/ExistingPatients.d.ts +17 -0
- package/dist/common/editRibbon/EditRibbon.d.ts +9 -0
- package/dist/common/utils/NetworkInstance.d.ts +4 -0
- package/dist/common/utils/common-utils.d.ts +38 -0
- package/dist/components/Modal.d.ts +5 -0
- package/dist/components/PatientAddEdit.d.ts +3 -0
- package/dist/components/alertPopup/index.d.ts +1 -0
- package/dist/components/{CustomDropdown.d.ts → customDropdown/CustomDropdown.d.ts} +1 -1
- package/dist/components/customDropdown/index.d.ts +1 -0
- package/dist/components/dateTimePicker/DateAndTimePicker.d.ts +21 -0
- package/dist/components/dateTimePicker/index.d.ts +1 -0
- package/dist/components/{ToggleButtons.d.ts → toggleButtons/ToggleButtons.d.ts} +1 -1
- package/dist/components/toggleButtons/index.d.ts +1 -0
- package/dist/constants/CommonConstant.d.ts +58 -0
- package/dist/constants/TrendGraphsConstants.d.ts +2 -0
- package/dist/dayjs.min-D8X6dnmr.cjs +1 -0
- package/dist/dayjs.min-SMxpcMQi.js +284 -0
- package/dist/hplx-feature-library.css +1 -1
- package/dist/index-BFfWEART.js +995 -0
- package/dist/index-BVfQUI8j.cjs +98 -0
- package/dist/index-CHAEpyb1.cjs +32 -0
- package/dist/index-CJFGOBPb.js +122 -0
- package/dist/index-Cl3h7bnz.js +7118 -0
- package/dist/index-DfcUmlge.cjs +17 -0
- package/dist/index.d.ts +5 -0
- package/dist/index.js +12 -2
- package/dist/parseISO-AwyR5Nhg.cjs +1 -0
- package/dist/parseISO-Cso9HWPX.js +1414 -0
- package/dist/types/APIEndPoints.d.ts +11 -0
- package/dist/types/AllInvestigationTypes/index.js +4 -0
- package/dist/types/AllInvestigationTypes.d.ts +45 -0
- package/dist/types/ApiResponseTypes.d.ts +249 -0
- package/dist/types/CommonTypes.d.ts +228 -0
- package/dist/types/PatientAddEditTypes/index.js +1 -0
- package/dist/types/PatientAddEditTypes.d.ts +13 -0
- package/dist/types/TrendGraphTypes.d.ts +19 -0
- package/dist/useClickOutside-BjJyGTec.js +14 -0
- package/dist/useClickOutside-DsVG12Cs.cjs +1 -0
- package/dist/useOutsideClick-C4Q0aGuf.js +15 -0
- package/dist/useOutsideClick-CicUjzPP.cjs +1 -0
- package/package.json +41 -3
- package/dist/PediatricsCalculatorTable-BglWcUGO.cjs +0 -40
- package/dist/PediatricsCalculatorTable-Dwluo5W0.js +0 -2163
- package/dist/useOutsideClick-COATBT9j.cjs +0 -92
- package/dist/useOutsideClick-CYAjbj1N.js +0 -6878
- /package/dist/components/{AlertPopup.d.ts → alertPopup/AlertPopup.d.ts} +0 -0
|
@@ -0,0 +1,79 @@
|
|
|
1
|
+
import { j as e, b as o, K as r } from "../index-Cl3h7bnz.js";
|
|
2
|
+
import { M as p } from "../index-BFfWEART.js";
|
|
3
|
+
const y = (c) => {
|
|
4
|
+
const {
|
|
5
|
+
openState: t,
|
|
6
|
+
closePopupCallback: h,
|
|
7
|
+
headingIconFile: x,
|
|
8
|
+
headingText: d,
|
|
9
|
+
subHeadingText: a,
|
|
10
|
+
positiveButtonText: l,
|
|
11
|
+
negativeButtonText: n,
|
|
12
|
+
classNamePositiveBtn: i,
|
|
13
|
+
classNameNegativeBtn: s,
|
|
14
|
+
positiveActionCallback: f,
|
|
15
|
+
negativeActionCallback: m
|
|
16
|
+
} = c;
|
|
17
|
+
return /* @__PURE__ */ e.jsxs(
|
|
18
|
+
p,
|
|
19
|
+
{
|
|
20
|
+
isOpen: t,
|
|
21
|
+
onRequestClose: h,
|
|
22
|
+
shouldCloseOnOverlayClick: !1,
|
|
23
|
+
style: {
|
|
24
|
+
overlay: {
|
|
25
|
+
backgroundColor: "rgba(52, 64, 84, 0.5)",
|
|
26
|
+
position: "fixed",
|
|
27
|
+
alignContent: "center",
|
|
28
|
+
justifyContent: "center",
|
|
29
|
+
zIndex: 1030,
|
|
30
|
+
display: t ? "block" : "none"
|
|
31
|
+
},
|
|
32
|
+
content: {
|
|
33
|
+
zIndex: 1030,
|
|
34
|
+
padding: "24px",
|
|
35
|
+
maxWidth: "750px",
|
|
36
|
+
maxHeight: "600px",
|
|
37
|
+
width: "400px",
|
|
38
|
+
height: "fit-content",
|
|
39
|
+
margin: "auto",
|
|
40
|
+
borderRadius: "12px",
|
|
41
|
+
overflow: "unset",
|
|
42
|
+
display: t ? "block" : "none"
|
|
43
|
+
}
|
|
44
|
+
},
|
|
45
|
+
children: [
|
|
46
|
+
x == "warning" && /* @__PURE__ */ e.jsx("div", { className: "hfl-hx_warning hfl-mb-4 hfl-flex hfl-h-12 hfl-w-12 hfl-items-center hfl-justify-center hfl-rounded-full hfl-border-8 hfl-border-Warning-50 hfl-bg-Warning-100 hfl-text-Warning-600", children: /* @__PURE__ */ e.jsx("i", { className: "hx_warning hfl-text-5" }) }),
|
|
47
|
+
/* @__PURE__ */ e.jsx(o, { variant: "Medium", type: "Text xl", className: "hfl-mt-5 hfl-text-Gray-900", children: d }),
|
|
48
|
+
a && /* @__PURE__ */ e.jsx(o, { variant: "Regular", type: "Text sm", className: "hfl-mt-1 hfl-text-Gray-500 ", children: a }),
|
|
49
|
+
/* @__PURE__ */ e.jsxs("div", { className: "hfl-mt-4 hfl-flex hfl-items-center hfl-justify-center hfl-gap-4", children: [
|
|
50
|
+
n && /* @__PURE__ */ e.jsx(
|
|
51
|
+
r,
|
|
52
|
+
{
|
|
53
|
+
size: "md",
|
|
54
|
+
textField: n,
|
|
55
|
+
hierarchy: "Primary",
|
|
56
|
+
className: s || "",
|
|
57
|
+
onClick: m,
|
|
58
|
+
"data-qa": "negative-action"
|
|
59
|
+
}
|
|
60
|
+
),
|
|
61
|
+
l && /* @__PURE__ */ e.jsx(
|
|
62
|
+
r,
|
|
63
|
+
{
|
|
64
|
+
size: "md",
|
|
65
|
+
textField: l,
|
|
66
|
+
hierarchy: "Secondary",
|
|
67
|
+
className: i || "",
|
|
68
|
+
onClick: f,
|
|
69
|
+
"data-qa": "positive-action"
|
|
70
|
+
}
|
|
71
|
+
)
|
|
72
|
+
] })
|
|
73
|
+
]
|
|
74
|
+
}
|
|
75
|
+
);
|
|
76
|
+
};
|
|
77
|
+
export {
|
|
78
|
+
y as default
|
|
79
|
+
};
|
|
@@ -0,0 +1,19 @@
|
|
|
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;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { default } from './components/AllInvestigationsTable';
|
|
@@ -0,0 +1,8 @@
|
|
|
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;
|