hplx-feature-library 1.0.145 → 1.0.147

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 (71) hide show
  1. package/dist/AlertPopup/index.js +5 -0
  2. package/dist/AlertPopup-CPKIp-41.cjs +32 -0
  3. package/dist/AlertPopup-CrMI2BnN.js +1069 -0
  4. package/dist/AllInvestigations/components/AllInvestigationsTable.d.ts +19 -0
  5. package/dist/AllInvestigations/index.d.ts +1 -0
  6. package/dist/AllInvestigations/index.js +4 -0
  7. package/dist/AllInvestigations/utils/test-tange-util.d.ts +8 -0
  8. package/dist/AllInvestigationsTable-BR_3XYSv.cjs +80 -0
  9. package/dist/AllInvestigationsTable-Dpzrxna6.js +16960 -0
  10. package/dist/Attachments/index.js +11153 -12657
  11. package/dist/CustomDropdown/index.js +256 -0
  12. package/dist/DateTimePicker/DateAndTimePicker/index.js +5907 -0
  13. package/dist/PediatricsCalculator/index.js +1 -1
  14. package/dist/PediatricsCalculatorTable-CnrU0s8_.cjs +1 -0
  15. package/dist/PediatricsCalculatorTable-DEwcZURh.js +832 -0
  16. package/dist/ReusableTable/ReusableTable.d.ts +3 -0
  17. package/dist/ReusableTable/ReusableTableConstants.d.ts +8 -0
  18. package/dist/ReusableTable/ReusableTableTypes.d.ts +96 -0
  19. package/dist/ReusableTable/components/EmptyTableContainer.d.ts +12 -0
  20. package/dist/ReusableTable/components/FilterCheckbox.d.ts +8 -0
  21. package/dist/ReusableTable/components/FilterDropdown.d.ts +17 -0
  22. package/dist/ReusableTable/components/Pagination.d.ts +2 -0
  23. package/dist/ReusableTable/components/TableBody.d.ts +2 -0
  24. package/dist/ReusableTable/components/TableCell.d.ts +3 -0
  25. package/dist/ReusableTable/components/TableFilterSelect.d.ts +12 -0
  26. package/dist/ReusableTable/components/TableHead.d.ts +2 -0
  27. package/dist/ReusableTable/components/TableMain.d.ts +2 -0
  28. package/dist/ReusableTable/components/TableRow.d.ts +3 -0
  29. package/dist/ReusableTable/context/TableContext.d.ts +21 -0
  30. package/dist/ReusableTable/context/TableContextBase.d.ts +26 -0
  31. package/dist/ReusableTable/context/useTableContext.d.ts +2 -0
  32. package/dist/ToggleButtons/index.js +17 -0
  33. package/dist/TrendGraphs/AreaChartComponent.d.ts +9 -0
  34. package/dist/TrendGraphs/LineChartComponent/DataPointToolTip.d.ts +16 -0
  35. package/dist/TrendGraphs/LineChartComponent/LineChartBody.d.ts +2 -0
  36. package/dist/TrendGraphs/LineChartComponent/LineChartHeader.d.ts +2 -0
  37. package/dist/TrendGraphs/LineChartComponent/index.d.ts +2 -0
  38. package/dist/TrendGraphs/context/index.d.ts +2 -0
  39. package/dist/TrendGraphs/hooks/useTrendGraphContext.d.ts +2 -0
  40. package/dist/TrendGraphs/utils/index.d.ts +4 -0
  41. package/dist/components/Modal.d.ts +5 -0
  42. package/dist/components/alertPopup/index.d.ts +1 -0
  43. package/dist/components/{CustomDropdown.d.ts → customDropdown/CustomDropdown.d.ts} +1 -1
  44. package/dist/components/customDropdown/index.d.ts +1 -0
  45. package/dist/components/dateTimePicker/DateAndTimePicker.d.ts +21 -0
  46. package/dist/components/dateTimePicker/index.d.ts +1 -0
  47. package/dist/components/{ToggleButtons.d.ts → toggleButtons/ToggleButtons.d.ts} +1 -1
  48. package/dist/components/toggleButtons/index.d.ts +1 -0
  49. package/dist/constants/TrendGraphsConstants.d.ts +2 -0
  50. package/dist/dayjs.min-BZVOTRKJ.cjs +1 -0
  51. package/dist/dayjs.min-qi3CdtFF.js +298 -0
  52. package/dist/hplx-feature-library.css +1 -1
  53. package/dist/{useOutsideClick-DZMg69d8.cjs → index-C3v1d6Xc.cjs} +23 -23
  54. package/dist/{useOutsideClick-CaFo7m8E.js → index-C5JVupKG.js} +755 -766
  55. package/dist/index-CJFGOBPb.js +122 -0
  56. package/dist/index-DfcUmlge.cjs +17 -0
  57. package/dist/index.d.ts +5 -0
  58. package/dist/index.js +12 -2
  59. package/dist/parseISO-AwyR5Nhg.cjs +1 -0
  60. package/dist/parseISO-Cso9HWPX.js +1414 -0
  61. package/dist/types/AllInvestigationTypes/index.js +4 -0
  62. package/dist/types/AllInvestigationTypes.d.ts +41 -0
  63. package/dist/types/TrendGraphTypes.d.ts +19 -0
  64. package/dist/useClickOutside-BjJyGTec.js +14 -0
  65. package/dist/useClickOutside-DsVG12Cs.cjs +1 -0
  66. package/dist/useOutsideClick-C4Q0aGuf.js +15 -0
  67. package/dist/useOutsideClick-CicUjzPP.cjs +1 -0
  68. package/package.json +33 -1
  69. package/dist/PediatricsCalculatorTable-69FLIWBN.js +0 -2163
  70. package/dist/PediatricsCalculatorTable-tPFxz3NE.cjs +0 -40
  71. /package/dist/components/{AlertPopup.d.ts → alertPopup/AlertPopup.d.ts} +0 -0
@@ -0,0 +1,4 @@
1
+ var I = /* @__PURE__ */ ((A) => (A.CLINICAL_NOTES = "CLINICAL_NOTES", A.DISCHARGE_SUMMARY = "DISCHARGE_SUMMARY", A.INVESTIGATIONS = "INVESTIGATIONS", A))(I || {});
2
+ export {
3
+ I as E_INVESTIGATIONS_SOURCE
4
+ };
@@ -0,0 +1,41 @@
1
+ export declare enum E_INVESTIGATIONS_SOURCE {
2
+ CLINICAL_NOTES = "CLINICAL_NOTES",
3
+ DISCHARGE_SUMMARY = "DISCHARGE_SUMMARY",
4
+ INVESTIGATIONS = "INVESTIGATIONS"
5
+ }
6
+ export interface I_InvestigationTest {
7
+ test_id: string;
8
+ test_value: string;
9
+ out_of_range: boolean;
10
+ watermelon_id?: string;
11
+ created_on: string;
12
+ test_name?: string;
13
+ test_unit?: string;
14
+ source_id: number;
15
+ source_type: E_INVESTIGATIONS_SOURCE;
16
+ }
17
+ export interface I_InvestigationTestWithPrint extends I_InvestigationTest {
18
+ isPrintable?: boolean;
19
+ test_date: string;
20
+ }
21
+ export interface I_AllInvestigations {
22
+ isPrintable: boolean;
23
+ test_id: string;
24
+ test_name: string;
25
+ test_unit: string;
26
+ [key: string]: string | boolean | I_AllInvestigationsDateDetail;
27
+ }
28
+ export interface I_AllInvestigationsDateDetail {
29
+ test_value: string;
30
+ out_of_range: boolean;
31
+ created_on: string;
32
+ source_id: number;
33
+ source_type: E_INVESTIGATIONS_SOURCE;
34
+ }
35
+ export interface I_TestRanges {
36
+ test_id: string;
37
+ test_names: string;
38
+ test_units: string;
39
+ test_range_text: string;
40
+ test_range_rule: string;
41
+ }
@@ -0,0 +1,19 @@
1
+ import { Dispatch, SetStateAction } from 'react';
2
+ export interface TrendGraphDataPoint {
3
+ date: string;
4
+ value: number;
5
+ }
6
+ export interface TrendGraphData {
7
+ unit: string;
8
+ data: TrendGraphDataPoint[];
9
+ testName: string;
10
+ color: AreaGraphColor;
11
+ }
12
+ export interface AreaGraphColor {
13
+ lineColor: string;
14
+ areaColor: string;
15
+ }
16
+ export interface TrendGraphContextType {
17
+ data: TrendGraphData;
18
+ setShowLineChart: Dispatch<SetStateAction<boolean>>;
19
+ }
@@ -0,0 +1,14 @@
1
+ import { useEffect as s } from "react";
2
+ const r = (e, t) => {
3
+ s(() => {
4
+ const n = (o) => {
5
+ e.current && !e.current.contains(o.target) && t();
6
+ };
7
+ return document.addEventListener("mousedown", n), () => {
8
+ document.removeEventListener("mousedown", n);
9
+ };
10
+ }, [e, t]);
11
+ };
12
+ export {
13
+ r as u
14
+ };
@@ -0,0 +1 @@
1
+ "use strict";const u=require("react"),c=(e,t)=>{u.useEffect(()=>{const n=s=>{e.current&&!e.current.contains(s.target)&&t()};return document.addEventListener("mousedown",n),()=>{document.removeEventListener("mousedown",n)}},[e,t])};exports.useClickOutside=c;
@@ -0,0 +1,15 @@
1
+ import { useCallback as s, useEffect as o } from "react";
2
+ const c = (e, u) => {
3
+ const t = s(
4
+ (n) => {
5
+ e.current && !e.current.contains(n.target) && u();
6
+ },
7
+ [e, u]
8
+ );
9
+ o(() => (document.addEventListener("mouseup", t), () => {
10
+ document.removeEventListener("mouseup", t);
11
+ }), [t]);
12
+ };
13
+ export {
14
+ c as u
15
+ };
@@ -0,0 +1 @@
1
+ "use strict";const s=require("react"),c=(e,u)=>{const t=s.useCallback(n=>{e.current&&!e.current.contains(n.target)&&u()},[e,u]);s.useEffect(()=>(document.addEventListener("mouseup",t),()=>{document.removeEventListener("mouseup",t)}),[t])};exports.useOutsideClick=c;
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "hplx-feature-library",
3
3
  "private": false,
4
- "version": "1.0.145",
4
+ "version": "1.0.147",
5
5
  "type": "module",
6
6
  "scripts": {
7
7
  "dev": "npm i hplx-react-elements-dev@qa && vite",
@@ -39,6 +39,25 @@
39
39
  "types": "dist/index.d.ts",
40
40
  "exports": {
41
41
  "./style.css": "./dist/hplx-feature-library.css",
42
+ "./AlertPopup": {
43
+ "import": "./dist/components/AlertPopup.js",
44
+ "types": "./dist/components/AlertPopup.d.ts"
45
+ },
46
+ "./CustomDropdown": {
47
+ "import": "./dist/components/CustomDropdown.js",
48
+ "types": "./dist/components/CustomDropdown.d.ts"
49
+ },
50
+ "./ToggleButtons": {
51
+ "import": "./dist/components/toggleButtons/index.js",
52
+ "types": "./dist/components/toggleButtons/index.d.ts"
53
+ },
54
+ "./DateTimePicker/DateAndTimePicker.css": {
55
+ "import": "./dist/DateAndTimePicker.css"
56
+ },
57
+ "./DateTimePicker/DateAndTimePicker": {
58
+ "import": "./dist/DateTimePicker/DateAndTimePicker/index.js",
59
+ "types": "./dist/components/dateTimePicker/DateAndTimePicker.d.ts"
60
+ },
42
61
  "./PediatricsCalculator": {
43
62
  "import": "./dist/PediatricsCalculator/index.js",
44
63
  "types": "./dist/PediatricsCalculator/index.d.ts"
@@ -62,18 +81,31 @@
62
81
  "./Constants/AttachmentConstants": {
63
82
  "import": "./dist/constants/AttachmentConstants/index.js",
64
83
  "types": "./dist/constants/AttachmentConstants.d.ts"
84
+ },
85
+ "./AllInvestigations": {
86
+ "import": "./dist/AllInvestigations/index.js",
87
+ "types": "./dist/AllInvestigations/index.d.ts"
88
+ },
89
+ "./Types/AllInvestigationTypes": {
90
+ "import": "./dist/types/AllInvestigationTypes/index.js",
91
+ "types": "./dist/types/AllInvestigationTypes.d.ts"
65
92
  }
66
93
  },
67
94
  "dependencies": {
68
95
  "date-fns": "^4.1.0",
96
+ "dayjs": "^1.11.13",
69
97
  "hplx-font-icons": "^2.20.0",
70
98
  "hplx-react-elements-dev": "^1.3.105",
71
99
  "konva": "^9.3.22",
72
100
  "lodash.debounce": "^4.0.8",
73
101
  "nanoid": "^5.1.5",
102
+ "node": "^24.6.0",
74
103
  "react": "^18.3.1",
104
+ "react-datepicker": "^8.5.0",
75
105
  "react-dom": "^18.3.1",
76
106
  "react-konva": "^18.2.12",
107
+ "react-modal": "^3.16.3",
108
+ "recharts": "^3.1.2",
77
109
  "swr": "^2.3.4",
78
110
  "zustand": "^5.0.6"
79
111
  },