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.
- package/dist/AlertPopup/index.js +5 -0
- package/dist/AlertPopup-CPKIp-41.cjs +32 -0
- package/dist/AlertPopup-CrMI2BnN.js +1069 -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-BR_3XYSv.cjs +80 -0
- package/dist/AllInvestigationsTable-Dpzrxna6.js +16960 -0
- package/dist/Attachments/index.js +11153 -12657
- package/dist/CustomDropdown/index.js +256 -0
- package/dist/DateTimePicker/DateAndTimePicker/index.js +5907 -0
- package/dist/PediatricsCalculator/index.js +1 -1
- package/dist/PediatricsCalculatorTable-CnrU0s8_.cjs +1 -0
- package/dist/PediatricsCalculatorTable-DEwcZURh.js +832 -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/components/Modal.d.ts +5 -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/TrendGraphsConstants.d.ts +2 -0
- package/dist/dayjs.min-BZVOTRKJ.cjs +1 -0
- package/dist/dayjs.min-qi3CdtFF.js +298 -0
- package/dist/hplx-feature-library.css +1 -1
- package/dist/{useOutsideClick-DZMg69d8.cjs → index-C3v1d6Xc.cjs} +23 -23
- package/dist/{useOutsideClick-CaFo7m8E.js → index-C5JVupKG.js} +755 -766
- package/dist/index-CJFGOBPb.js +122 -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/AllInvestigationTypes/index.js +4 -0
- package/dist/types/AllInvestigationTypes.d.ts +41 -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 +33 -1
- package/dist/PediatricsCalculatorTable-69FLIWBN.js +0 -2163
- package/dist/PediatricsCalculatorTable-tPFxz3NE.cjs +0 -40
- /package/dist/components/{AlertPopup.d.ts → alertPopup/AlertPopup.d.ts} +0 -0
|
@@ -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.
|
|
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
|
},
|