hplx-feature-library 1.0.171 → 1.0.172
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/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-C3aTtdGN.cjs +79 -0
- package/dist/AllInvestigationsTable-C7jrmW8z.js +17354 -0
- package/dist/Attachments/index.js +6163 -6279
- package/dist/PediatricsCalculator/index.js +1 -1
- package/dist/{PediatricsCalculatorTable-Dwluo5W0.js → PediatricsCalculatorTable-Be2H_OXh.js} +203 -210
- package/dist/{PediatricsCalculatorTable-BglWcUGO.cjs → PediatricsCalculatorTable-fk_QinWG.cjs} +11 -11
- 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/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/constants/TrendGraphsConstants.d.ts +2 -0
- package/dist/hplx-feature-library.css +1 -1
- package/dist/{useOutsideClick-CYAjbj1N.js → index-4whwJbrk.js} +812 -823
- package/dist/{useOutsideClick-COATBT9j.cjs → index-C6KQLMQs.cjs} +23 -23
- package/dist/index-CJFGOBPb.js +122 -0
- package/dist/index-DfcUmlge.cjs +17 -0
- package/dist/index.d.ts +1 -0
- package/dist/index.js +4 -2
- package/dist/types/AllInvestigationTypes/index.js +4 -0
- package/dist/types/AllInvestigationTypes.d.ts +43 -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 +12 -1
|
@@ -0,0 +1,122 @@
|
|
|
1
|
+
import T from "react";
|
|
2
|
+
var l = { exports: {} }, y = {};
|
|
3
|
+
/**
|
|
4
|
+
* @license React
|
|
5
|
+
* use-sync-external-store-shim.production.js
|
|
6
|
+
*
|
|
7
|
+
* Copyright (c) Meta Platforms, Inc. and affiliates.
|
|
8
|
+
*
|
|
9
|
+
* This source code is licensed under the MIT license found in the
|
|
10
|
+
* LICENSE file in the root directory of this source tree.
|
|
11
|
+
*/
|
|
12
|
+
var L;
|
|
13
|
+
function A() {
|
|
14
|
+
if (L) return y;
|
|
15
|
+
L = 1;
|
|
16
|
+
var i = T;
|
|
17
|
+
function _(t, o) {
|
|
18
|
+
return t === o && (t !== 0 || 1 / t === 1 / o) || t !== t && o !== o;
|
|
19
|
+
}
|
|
20
|
+
var c = typeof Object.is == "function" ? Object.is : _, p = i.useState, u = i.useEffect, S = i.useLayoutEffect, E = i.useDebugValue;
|
|
21
|
+
function O(t, o) {
|
|
22
|
+
var e = o(), n = p({ inst: { value: e, getSnapshot: o } }), r = n[0].inst, a = n[1];
|
|
23
|
+
return S(
|
|
24
|
+
function() {
|
|
25
|
+
r.value = e, r.getSnapshot = o, f(r) && a({ inst: r });
|
|
26
|
+
},
|
|
27
|
+
[t, e, o]
|
|
28
|
+
), u(
|
|
29
|
+
function() {
|
|
30
|
+
return f(r) && a({ inst: r }), t(function() {
|
|
31
|
+
f(r) && a({ inst: r });
|
|
32
|
+
});
|
|
33
|
+
},
|
|
34
|
+
[t]
|
|
35
|
+
), E(e), e;
|
|
36
|
+
}
|
|
37
|
+
function f(t) {
|
|
38
|
+
var o = t.getSnapshot;
|
|
39
|
+
t = t.value;
|
|
40
|
+
try {
|
|
41
|
+
var e = o();
|
|
42
|
+
return !c(t, e);
|
|
43
|
+
} catch {
|
|
44
|
+
return !0;
|
|
45
|
+
}
|
|
46
|
+
}
|
|
47
|
+
function v(t, o) {
|
|
48
|
+
return o();
|
|
49
|
+
}
|
|
50
|
+
var d = typeof window > "u" || typeof window.document > "u" || typeof window.document.createElement > "u" ? v : O;
|
|
51
|
+
return y.useSyncExternalStore = i.useSyncExternalStore !== void 0 ? i.useSyncExternalStore : d, y;
|
|
52
|
+
}
|
|
53
|
+
var m = {};
|
|
54
|
+
/**
|
|
55
|
+
* @license React
|
|
56
|
+
* use-sync-external-store-shim.development.js
|
|
57
|
+
*
|
|
58
|
+
* Copyright (c) Meta Platforms, Inc. and affiliates.
|
|
59
|
+
*
|
|
60
|
+
* This source code is licensed under the MIT license found in the
|
|
61
|
+
* LICENSE file in the root directory of this source tree.
|
|
62
|
+
*/
|
|
63
|
+
var x;
|
|
64
|
+
function R() {
|
|
65
|
+
return x || (x = 1, process.env.NODE_ENV !== "production" && function() {
|
|
66
|
+
function i(e, n) {
|
|
67
|
+
return e === n && (e !== 0 || 1 / e === 1 / n) || e !== e && n !== n;
|
|
68
|
+
}
|
|
69
|
+
function _(e, n) {
|
|
70
|
+
d || u.startTransition === void 0 || (d = !0, console.error(
|
|
71
|
+
"You are using an outdated, pre-release alpha of React 18 that does not support useSyncExternalStore. The use-sync-external-store shim will not work correctly. Upgrade to a newer pre-release."
|
|
72
|
+
));
|
|
73
|
+
var r = n();
|
|
74
|
+
if (!t) {
|
|
75
|
+
var a = n();
|
|
76
|
+
S(r, a) || (console.error(
|
|
77
|
+
"The result of getSnapshot should be cached to avoid an infinite loop"
|
|
78
|
+
), t = !0);
|
|
79
|
+
}
|
|
80
|
+
a = E({
|
|
81
|
+
inst: { value: r, getSnapshot: n }
|
|
82
|
+
});
|
|
83
|
+
var s = a[0].inst, h = a[1];
|
|
84
|
+
return f(
|
|
85
|
+
function() {
|
|
86
|
+
s.value = r, s.getSnapshot = n, c(s) && h({ inst: s });
|
|
87
|
+
},
|
|
88
|
+
[e, r, n]
|
|
89
|
+
), O(
|
|
90
|
+
function() {
|
|
91
|
+
return c(s) && h({ inst: s }), e(function() {
|
|
92
|
+
c(s) && h({ inst: s });
|
|
93
|
+
});
|
|
94
|
+
},
|
|
95
|
+
[e]
|
|
96
|
+
), v(r), r;
|
|
97
|
+
}
|
|
98
|
+
function c(e) {
|
|
99
|
+
var n = e.getSnapshot;
|
|
100
|
+
e = e.value;
|
|
101
|
+
try {
|
|
102
|
+
var r = n();
|
|
103
|
+
return !S(e, r);
|
|
104
|
+
} catch {
|
|
105
|
+
return !0;
|
|
106
|
+
}
|
|
107
|
+
}
|
|
108
|
+
function p(e, n) {
|
|
109
|
+
return n();
|
|
110
|
+
}
|
|
111
|
+
typeof __REACT_DEVTOOLS_GLOBAL_HOOK__ < "u" && typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart == "function" && __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart(Error());
|
|
112
|
+
var u = T, S = typeof Object.is == "function" ? Object.is : i, E = u.useState, O = u.useEffect, f = u.useLayoutEffect, v = u.useDebugValue, d = !1, t = !1, o = typeof window > "u" || typeof window.document > "u" || typeof window.document.createElement > "u" ? p : _;
|
|
113
|
+
m.useSyncExternalStore = u.useSyncExternalStore !== void 0 ? u.useSyncExternalStore : o, typeof __REACT_DEVTOOLS_GLOBAL_HOOK__ < "u" && typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop == "function" && __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop(Error());
|
|
114
|
+
}()), m;
|
|
115
|
+
}
|
|
116
|
+
var w;
|
|
117
|
+
function D() {
|
|
118
|
+
return w || (w = 1, process.env.NODE_ENV === "production" ? l.exports = A() : l.exports = R()), l.exports;
|
|
119
|
+
}
|
|
120
|
+
export {
|
|
121
|
+
D as r
|
|
122
|
+
};
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
"use strict";const T=require("react");var l={exports:{}},y={};/**
|
|
2
|
+
* @license React
|
|
3
|
+
* use-sync-external-store-shim.production.js
|
|
4
|
+
*
|
|
5
|
+
* Copyright (c) Meta Platforms, Inc. and affiliates.
|
|
6
|
+
*
|
|
7
|
+
* This source code is licensed under the MIT license found in the
|
|
8
|
+
* LICENSE file in the root directory of this source tree.
|
|
9
|
+
*/var L;function A(){if(L)return y;L=1;var i=T;function _(t,o){return t===o&&(t!==0||1/t===1/o)||t!==t&&o!==o}var c=typeof Object.is=="function"?Object.is:_,E=i.useState,u=i.useEffect,S=i.useLayoutEffect,p=i.useDebugValue;function O(t,o){var e=o(),n=E({inst:{value:e,getSnapshot:o}}),r=n[0].inst,a=n[1];return S(function(){r.value=e,r.getSnapshot=o,f(r)&&a({inst:r})},[t,e,o]),u(function(){return f(r)&&a({inst:r}),t(function(){f(r)&&a({inst:r})})},[t]),p(e),e}function f(t){var o=t.getSnapshot;t=t.value;try{var e=o();return!c(t,e)}catch{return!0}}function v(t,o){return o()}var d=typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"?v:O;return y.useSyncExternalStore=i.useSyncExternalStore!==void 0?i.useSyncExternalStore:d,y}var m={};/**
|
|
10
|
+
* @license React
|
|
11
|
+
* use-sync-external-store-shim.development.js
|
|
12
|
+
*
|
|
13
|
+
* Copyright (c) Meta Platforms, Inc. and affiliates.
|
|
14
|
+
*
|
|
15
|
+
* This source code is licensed under the MIT license found in the
|
|
16
|
+
* LICENSE file in the root directory of this source tree.
|
|
17
|
+
*/var w;function R(){return w||(w=1,process.env.NODE_ENV!=="production"&&function(){function i(e,n){return e===n&&(e!==0||1/e===1/n)||e!==e&&n!==n}function _(e,n){d||u.startTransition===void 0||(d=!0,console.error("You are using an outdated, pre-release alpha of React 18 that does not support useSyncExternalStore. The use-sync-external-store shim will not work correctly. Upgrade to a newer pre-release."));var r=n();if(!t){var a=n();S(r,a)||(console.error("The result of getSnapshot should be cached to avoid an infinite loop"),t=!0)}a=p({inst:{value:r,getSnapshot:n}});var s=a[0].inst,h=a[1];return f(function(){s.value=r,s.getSnapshot=n,c(s)&&h({inst:s})},[e,r,n]),O(function(){return c(s)&&h({inst:s}),e(function(){c(s)&&h({inst:s})})},[e]),v(r),r}function c(e){var n=e.getSnapshot;e=e.value;try{var r=n();return!S(e,r)}catch{return!0}}function E(e,n){return n()}typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"&&typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart=="function"&&__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart(Error());var u=T,S=typeof Object.is=="function"?Object.is:i,p=u.useState,O=u.useEffect,f=u.useLayoutEffect,v=u.useDebugValue,d=!1,t=!1,o=typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"?E:_;m.useSyncExternalStore=u.useSyncExternalStore!==void 0?u.useSyncExternalStore:o,typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"&&typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop=="function"&&__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop(Error())}()),m}var x;function g(){return x||(x=1,process.env.NODE_ENV==="production"?l.exports=A():l.exports=R()),l.exports}exports.requireShim=g;
|
package/dist/index.d.ts
CHANGED
package/dist/index.js
CHANGED
|
@@ -1,4 +1,6 @@
|
|
|
1
|
-
import { P as
|
|
1
|
+
import { P as r } from "./PediatricsCalculatorTable-Be2H_OXh.js";
|
|
2
|
+
import { A as s } from "./AllInvestigationsTable-C7jrmW8z.js";
|
|
2
3
|
export {
|
|
3
|
-
|
|
4
|
+
s as AllInvestigations,
|
|
5
|
+
r as PediatricsCalculator
|
|
4
6
|
};
|
|
@@ -0,0 +1,43 @@
|
|
|
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
|
+
isEditPermitted?: boolean;
|
|
17
|
+
}
|
|
18
|
+
export interface I_InvestigationTestWithPrint extends I_InvestigationTest {
|
|
19
|
+
isPrintable?: boolean;
|
|
20
|
+
test_date: string;
|
|
21
|
+
}
|
|
22
|
+
export interface I_AllInvestigations {
|
|
23
|
+
isPrintable: boolean;
|
|
24
|
+
test_id: string;
|
|
25
|
+
test_name: string;
|
|
26
|
+
test_unit: string;
|
|
27
|
+
[key: string]: string | boolean | I_AllInvestigationsDateDetail;
|
|
28
|
+
}
|
|
29
|
+
export interface I_AllInvestigationsDateDetail {
|
|
30
|
+
test_value: string;
|
|
31
|
+
out_of_range: boolean;
|
|
32
|
+
created_on: string;
|
|
33
|
+
source_id: number;
|
|
34
|
+
source_type: E_INVESTIGATIONS_SOURCE;
|
|
35
|
+
isEditPermitted: boolean;
|
|
36
|
+
}
|
|
37
|
+
export interface I_TestRanges {
|
|
38
|
+
test_id: string;
|
|
39
|
+
test_names: string;
|
|
40
|
+
test_units: string;
|
|
41
|
+
test_range_text: string;
|
|
42
|
+
test_range_rule: string;
|
|
43
|
+
}
|
|
@@ -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.172",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"scripts": {
|
|
7
7
|
"dev": "npm i hplx-react-elements-dev@qa && vite",
|
|
@@ -62,10 +62,19 @@
|
|
|
62
62
|
"./Constants/AttachmentConstants": {
|
|
63
63
|
"import": "./dist/constants/AttachmentConstants/index.js",
|
|
64
64
|
"types": "./dist/constants/AttachmentConstants.d.ts"
|
|
65
|
+
},
|
|
66
|
+
"./AllInvestigations": {
|
|
67
|
+
"import": "./dist/AllInvestigations/index.js",
|
|
68
|
+
"types": "./dist/AllInvestigations/index.d.ts"
|
|
69
|
+
},
|
|
70
|
+
"./Types/AllInvestigationTypes": {
|
|
71
|
+
"import": "./dist/types/AllInvestigationTypes/index.js",
|
|
72
|
+
"types": "./dist/types/AllInvestigationTypes.d.ts"
|
|
65
73
|
}
|
|
66
74
|
},
|
|
67
75
|
"dependencies": {
|
|
68
76
|
"date-fns": "^4.1.0",
|
|
77
|
+
"dayjs": "^1.11.15",
|
|
69
78
|
"hplx-font-icons": "^2.20.0",
|
|
70
79
|
"hplx-react-elements-dev": "^1.3.121",
|
|
71
80
|
"konva": "^9.3.22",
|
|
@@ -74,6 +83,7 @@
|
|
|
74
83
|
"react": "^18.3.1",
|
|
75
84
|
"react-dom": "^18.3.1",
|
|
76
85
|
"react-konva": "^18.2.12",
|
|
86
|
+
"recharts": "^3.1.2",
|
|
77
87
|
"swr": "^2.3.4",
|
|
78
88
|
"zustand": "^5.0.6"
|
|
79
89
|
},
|
|
@@ -104,6 +114,7 @@
|
|
|
104
114
|
"husky": "^9.1.7",
|
|
105
115
|
"jsdom": "^26.1.0",
|
|
106
116
|
"lint-staged": "^16.1.2",
|
|
117
|
+
"node": "^24.6.0",
|
|
107
118
|
"postcss": "^8.5.6",
|
|
108
119
|
"prettier": "^3.6.2",
|
|
109
120
|
"tailwindcss": "^3.4.17",
|