hplx-feature-library 1.0.91 → 1.0.93
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 +2 -2
- package/dist/{AlertPopup-CyDKrt43.cjs → AlertPopup-YRZevy6k.cjs} +1 -1
- package/dist/{AlertPopup-BNDuLUqA.js → AlertPopup-uWZvzfJe.js} +1 -1
- package/dist/AllInvestigations/components/AllInvestigationsTable.d.ts +2 -2
- package/dist/AllInvestigations/index.js +1 -1
- package/dist/AllInvestigationsTable-DYTMjKMc.js +647 -0
- package/dist/AllInvestigationsTable-D_1jhjwA.cjs +1 -0
- package/dist/Attachments/index.js +9 -7
- package/dist/CustomDropdown/index.js +1 -1
- package/dist/DateTimePicker/DateAndTimePicker/index.js +1 -1
- package/dist/PediatricsCalculator/index.js +1 -1
- package/dist/{PediatricsCalculatorTable-DelYgJEq.js → PediatricsCalculatorTable-C4XUtgZs.js} +2 -2
- package/dist/{PediatricsCalculatorTable-CGrZz303.cjs → PediatricsCalculatorTable-KQWP0317.cjs} +1 -1
- package/dist/ReusableTable/ReusableTable.d.ts +3 -0
- package/dist/ReusableTable/ReusableTableConstants.d.ts +8 -0
- package/dist/ReusableTable/ReusableTableTypes.d.ts +94 -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 +20 -0
- package/dist/ReusableTable/context/TableContextBase.d.ts +25 -0
- package/dist/ReusableTable/context/useTableContext.d.ts +2 -0
- package/dist/ToggleButtons/index.js +1 -1
- package/dist/hplx-feature-library.css +1 -1
- package/dist/index-B1oZkAWG.cjs +84 -0
- package/dist/index-Bs8a30WQ.js +6672 -0
- package/dist/index.js +3 -3
- package/package.json +1 -1
- package/dist/AllInvestigationsTable-CZToe0yL.js +0 -96
- package/dist/AllInvestigationsTable-CufAOpeZ.cjs +0 -1
- package/dist/index-D-wXK-PO.cjs +0 -84
- package/dist/index-D6vi5Sgs.js +0 -6768
package/dist/index.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { P as r } from "./PediatricsCalculatorTable-
|
|
2
|
-
import { A as a } from "./AllInvestigationsTable-
|
|
3
|
-
import { A as f } from "./AlertPopup-
|
|
1
|
+
import { P as r } from "./PediatricsCalculatorTable-C4XUtgZs.js";
|
|
2
|
+
import { A as a } from "./AllInvestigationsTable-DYTMjKMc.js";
|
|
3
|
+
import { A as f } from "./AlertPopup-uWZvzfJe.js";
|
|
4
4
|
import { default as p } from "./CustomDropdown/index.js";
|
|
5
5
|
import { default as u } from "./DateTimePicker/DateAndTimePicker/index.js";
|
|
6
6
|
import { default as i } from "./ToggleButtons/index.js";
|
package/package.json
CHANGED
|
@@ -1,96 +0,0 @@
|
|
|
1
|
-
import { j as l, u as R } from "./index-D6vi5Sgs.js";
|
|
2
|
-
import { memo as $, useState as m, useRef as j, useEffect as x, useMemo as D } from "react";
|
|
3
|
-
const A = ({
|
|
4
|
-
data: n = [],
|
|
5
|
-
testDetails: c = [],
|
|
6
|
-
enableColumnCheckbox: i = !1,
|
|
7
|
-
tableHeaderRowClasses: u,
|
|
8
|
-
investigationCheckBoxMap: o,
|
|
9
|
-
onColumnCheckboxClickHandler: d
|
|
10
|
-
}) => {
|
|
11
|
-
const [g, v] = m([]), [h, w] = m([]), [p, C] = m([]), N = j(null);
|
|
12
|
-
x(() => {
|
|
13
|
-
if (!n.length) return;
|
|
14
|
-
const r = [...new Set(n.map((e) => e.test_date))];
|
|
15
|
-
w(r);
|
|
16
|
-
const s = /* @__PURE__ */ new Map();
|
|
17
|
-
n.forEach((e) => {
|
|
18
|
-
const _ = c.find((I) => I?.test_id?.toString() === e?.test_id?.toString());
|
|
19
|
-
s.has(e.test_id) || s.set(e.test_id, {
|
|
20
|
-
created_on: e.created_on,
|
|
21
|
-
out_of_range: e.out_of_range,
|
|
22
|
-
test_date: e.test_date,
|
|
23
|
-
test_id: e.test_id,
|
|
24
|
-
test_name: _?.test_names || e.test_name,
|
|
25
|
-
test_value: e.test_value,
|
|
26
|
-
test_unit: _?.test_units || e.test_unit
|
|
27
|
-
});
|
|
28
|
-
const f = s.get(e.test_id);
|
|
29
|
-
f[e.test_date] = e.test_value;
|
|
30
|
-
});
|
|
31
|
-
const t = Array.from(s.values());
|
|
32
|
-
v(t);
|
|
33
|
-
}, [n, c]);
|
|
34
|
-
const a = "hfl-text-1";
|
|
35
|
-
x(() => {
|
|
36
|
-
console.log(i);
|
|
37
|
-
const r = [
|
|
38
|
-
{
|
|
39
|
-
field: "#",
|
|
40
|
-
fieldHeaderName: "No.",
|
|
41
|
-
renderCell: (t, e, _, f) => /* @__PURE__ */ l.jsx(l.Fragment, { children: f + 1 }),
|
|
42
|
-
pinned: "left",
|
|
43
|
-
width: "60px",
|
|
44
|
-
minWidth: "60px",
|
|
45
|
-
cellClasses: `${a}`
|
|
46
|
-
},
|
|
47
|
-
{
|
|
48
|
-
field: "test_name",
|
|
49
|
-
fieldHeaderName: "Tests / Investigations",
|
|
50
|
-
pinned: "left",
|
|
51
|
-
width: "250px",
|
|
52
|
-
minWidth: "250px",
|
|
53
|
-
cellClasses: `${a}`,
|
|
54
|
-
enabledColumnCheckbox: i,
|
|
55
|
-
isCheckboxMarked: o.get("test_name"),
|
|
56
|
-
onColumnCheckboxClick: (t) => {
|
|
57
|
-
d("test_name", t);
|
|
58
|
-
}
|
|
59
|
-
},
|
|
60
|
-
{
|
|
61
|
-
field: "test_unit",
|
|
62
|
-
fieldHeaderName: "Units",
|
|
63
|
-
pinned: "left",
|
|
64
|
-
width: "80px",
|
|
65
|
-
minWidth: "80px",
|
|
66
|
-
cellClasses: `${a}`
|
|
67
|
-
}
|
|
68
|
-
], s = h.map((t) => ({
|
|
69
|
-
field: t,
|
|
70
|
-
fieldHeaderName: t,
|
|
71
|
-
width: "150px",
|
|
72
|
-
minWidth: "150px",
|
|
73
|
-
cellClasses: `${a}`,
|
|
74
|
-
enabledColumnCheckbox: i,
|
|
75
|
-
isCheckboxMarked: o.get(t),
|
|
76
|
-
onColumnCheckboxClick: (e) => {
|
|
77
|
-
d(t, e);
|
|
78
|
-
}
|
|
79
|
-
}));
|
|
80
|
-
C([...r, ...s]);
|
|
81
|
-
}, [h, i, o, d]);
|
|
82
|
-
const b = D(() => /* @__PURE__ */ l.jsx(
|
|
83
|
-
R,
|
|
84
|
-
{
|
|
85
|
-
headerRowClasses: `hfl-bg-Blue_gray-50 hfl-text-Indigo-500 hfl-text-1 hfl-border ${u}`,
|
|
86
|
-
tableRef: N,
|
|
87
|
-
columns: p,
|
|
88
|
-
tableName: "Investigations",
|
|
89
|
-
rows: g
|
|
90
|
-
}
|
|
91
|
-
), [p, g, u]);
|
|
92
|
-
return /* @__PURE__ */ l.jsx("div", { className: "", children: b });
|
|
93
|
-
}, E = $(A);
|
|
94
|
-
export {
|
|
95
|
-
E as A
|
|
96
|
-
};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
"use strict";const i=require("./index-D-wXK-PO.cjs"),s=require("react"),C=({data:a=[],testDetails:f=[],enableColumnCheckbox:l=!1,tableHeaderRowClasses:m,investigationCheckBoxMap:d,onColumnCheckboxClickHandler:r})=>{const[x,p]=s.useState([]),[g,v]=s.useState([]),[h,w]=s.useState([]),R=s.useRef(null);s.useEffect(()=>{if(!a.length)return;const u=[...new Set(a.map(e=>e.test_date))];v(u);const n=new Map;a.forEach(e=>{const c=f.find(j=>j?.test_id?.toString()===e?.test_id?.toString());n.has(e.test_id)||n.set(e.test_id,{created_on:e.created_on,out_of_range:e.out_of_range,test_date:e.test_date,test_id:e.test_id,test_name:c?.test_names||e.test_name,test_value:e.test_value,test_unit:c?.test_units||e.test_unit});const _=n.get(e.test_id);_[e.test_date]=e.test_value});const t=Array.from(n.values());p(t)},[a,f]);const o="hfl-text-1";s.useEffect(()=>{console.log(l);const u=[{field:"#",fieldHeaderName:"No.",renderCell:(t,e,c,_)=>i.jsxRuntimeExports.jsx(i.jsxRuntimeExports.Fragment,{children:_+1}),pinned:"left",width:"60px",minWidth:"60px",cellClasses:`${o}`},{field:"test_name",fieldHeaderName:"Tests / Investigations",pinned:"left",width:"250px",minWidth:"250px",cellClasses:`${o}`,enabledColumnCheckbox:l,isCheckboxMarked:d.get("test_name"),onColumnCheckboxClick:t=>{r("test_name",t)}},{field:"test_unit",fieldHeaderName:"Units",pinned:"left",width:"80px",minWidth:"80px",cellClasses:`${o}`}],n=g.map(t=>({field:t,fieldHeaderName:t,width:"150px",minWidth:"150px",cellClasses:`${o}`,enabledColumnCheckbox:l,isCheckboxMarked:d.get(t),onColumnCheckboxClick:e=>{r(t,e)}}));w([...u,...n])},[g,l,d,r]);const b=s.useMemo(()=>i.jsxRuntimeExports.jsx(i.uO,{headerRowClasses:`hfl-bg-Blue_gray-50 hfl-text-Indigo-500 hfl-text-1 hfl-border ${m}`,tableRef:R,columns:h,tableName:"Investigations",rows:x}),[h,x,m]);return i.jsxRuntimeExports.jsx("div",{className:"",children:b})},E=s.memo(C);exports.AllInvestigationsTable=E;
|