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.
Files changed (89) hide show
  1. package/dist/AlertPopup/index.js +79 -0
  2. package/dist/AllInvestigations/components/AllInvestigationsTable.d.ts +19 -0
  3. package/dist/AllInvestigations/index.d.ts +1 -0
  4. package/dist/AllInvestigations/index.js +4 -0
  5. package/dist/AllInvestigations/utils/test-tange-util.d.ts +8 -0
  6. package/dist/AllInvestigationsTable-9CE_uDGv.cjs +80 -0
  7. package/dist/AllInvestigationsTable-HC9dOdiS.js +16964 -0
  8. package/dist/Attachments/index.js +11153 -12657
  9. package/dist/CustomDropdown/index.js +256 -0
  10. package/dist/DateTimePicker/DateAndTimePicker/index.js +5908 -0
  11. package/dist/PatientAddEdit/index.js +5319 -0
  12. package/dist/PediatricsCalculator/index.js +1 -1
  13. package/dist/PediatricsCalculatorTable-CB1YOoVy.js +833 -0
  14. package/dist/PediatricsCalculatorTable-CPXBdrqk.cjs +1 -0
  15. package/dist/ReusableTable/ReusableTable.d.ts +3 -0
  16. package/dist/ReusableTable/ReusableTableConstants.d.ts +8 -0
  17. package/dist/ReusableTable/ReusableTableTypes.d.ts +96 -0
  18. package/dist/ReusableTable/components/EmptyTableContainer.d.ts +12 -0
  19. package/dist/ReusableTable/components/FilterCheckbox.d.ts +8 -0
  20. package/dist/ReusableTable/components/FilterDropdown.d.ts +17 -0
  21. package/dist/ReusableTable/components/Pagination.d.ts +2 -0
  22. package/dist/ReusableTable/components/TableBody.d.ts +2 -0
  23. package/dist/ReusableTable/components/TableCell.d.ts +3 -0
  24. package/dist/ReusableTable/components/TableFilterSelect.d.ts +12 -0
  25. package/dist/ReusableTable/components/TableHead.d.ts +2 -0
  26. package/dist/ReusableTable/components/TableMain.d.ts +2 -0
  27. package/dist/ReusableTable/components/TableRow.d.ts +3 -0
  28. package/dist/ReusableTable/context/TableContext.d.ts +21 -0
  29. package/dist/ReusableTable/context/TableContextBase.d.ts +26 -0
  30. package/dist/ReusableTable/context/useTableContext.d.ts +2 -0
  31. package/dist/ToggleButtons/index.js +17 -0
  32. package/dist/TrendGraphs/AreaChartComponent.d.ts +9 -0
  33. package/dist/TrendGraphs/LineChartComponent/DataPointToolTip.d.ts +16 -0
  34. package/dist/TrendGraphs/LineChartComponent/LineChartBody.d.ts +2 -0
  35. package/dist/TrendGraphs/LineChartComponent/LineChartHeader.d.ts +2 -0
  36. package/dist/TrendGraphs/LineChartComponent/index.d.ts +2 -0
  37. package/dist/TrendGraphs/context/index.d.ts +2 -0
  38. package/dist/TrendGraphs/hooks/useTrendGraphContext.d.ts +2 -0
  39. package/dist/TrendGraphs/utils/index.d.ts +4 -0
  40. package/dist/clsx-C11secjj.cjs +1 -0
  41. package/dist/clsx-OuTLNxxd.js +16 -0
  42. package/dist/common/APIAction/APIAction.d.ts +55 -0
  43. package/dist/common/components/BorderFullWidth.d.ts +2 -0
  44. package/dist/common/components/table/ExistingPatients.d.ts +17 -0
  45. package/dist/common/editRibbon/EditRibbon.d.ts +9 -0
  46. package/dist/common/utils/NetworkInstance.d.ts +4 -0
  47. package/dist/common/utils/common-utils.d.ts +38 -0
  48. package/dist/components/Modal.d.ts +5 -0
  49. package/dist/components/PatientAddEdit.d.ts +3 -0
  50. package/dist/components/alertPopup/index.d.ts +1 -0
  51. package/dist/components/{CustomDropdown.d.ts → customDropdown/CustomDropdown.d.ts} +1 -1
  52. package/dist/components/customDropdown/index.d.ts +1 -0
  53. package/dist/components/dateTimePicker/DateAndTimePicker.d.ts +21 -0
  54. package/dist/components/dateTimePicker/index.d.ts +1 -0
  55. package/dist/components/{ToggleButtons.d.ts → toggleButtons/ToggleButtons.d.ts} +1 -1
  56. package/dist/components/toggleButtons/index.d.ts +1 -0
  57. package/dist/constants/CommonConstant.d.ts +58 -0
  58. package/dist/constants/TrendGraphsConstants.d.ts +2 -0
  59. package/dist/dayjs.min-D8X6dnmr.cjs +1 -0
  60. package/dist/dayjs.min-SMxpcMQi.js +284 -0
  61. package/dist/hplx-feature-library.css +1 -1
  62. package/dist/index-BFfWEART.js +995 -0
  63. package/dist/index-BVfQUI8j.cjs +98 -0
  64. package/dist/index-CHAEpyb1.cjs +32 -0
  65. package/dist/index-CJFGOBPb.js +122 -0
  66. package/dist/index-Cl3h7bnz.js +7118 -0
  67. package/dist/index-DfcUmlge.cjs +17 -0
  68. package/dist/index.d.ts +5 -0
  69. package/dist/index.js +12 -2
  70. package/dist/parseISO-AwyR5Nhg.cjs +1 -0
  71. package/dist/parseISO-Cso9HWPX.js +1414 -0
  72. package/dist/types/APIEndPoints.d.ts +11 -0
  73. package/dist/types/AllInvestigationTypes/index.js +4 -0
  74. package/dist/types/AllInvestigationTypes.d.ts +45 -0
  75. package/dist/types/ApiResponseTypes.d.ts +249 -0
  76. package/dist/types/CommonTypes.d.ts +228 -0
  77. package/dist/types/PatientAddEditTypes/index.js +1 -0
  78. package/dist/types/PatientAddEditTypes.d.ts +13 -0
  79. package/dist/types/TrendGraphTypes.d.ts +19 -0
  80. package/dist/useClickOutside-BjJyGTec.js +14 -0
  81. package/dist/useClickOutside-DsVG12Cs.cjs +1 -0
  82. package/dist/useOutsideClick-C4Q0aGuf.js +15 -0
  83. package/dist/useOutsideClick-CicUjzPP.cjs +1 -0
  84. package/package.json +41 -3
  85. package/dist/PediatricsCalculatorTable-BglWcUGO.cjs +0 -40
  86. package/dist/PediatricsCalculatorTable-Dwluo5W0.js +0 -2163
  87. package/dist/useOutsideClick-COATBT9j.cjs +0 -92
  88. package/dist/useOutsideClick-CYAjbj1N.js +0 -6878
  89. /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,4 @@
1
+ import { A as f } from "../AllInvestigationsTable-HC9dOdiS.js";
2
+ export {
3
+ f as default
4
+ };
@@ -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;