hplx-feature-library 1.0.266 → 1.0.267
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/PatientPopup/index.js +1 -1
- package/dist/{PatientPopupContainer-jziNx9fL.cjs → PatientPopupContainer-BMdOkFGy.cjs} +1 -1
- package/dist/{PatientPopupContainer-CoQAfVfh.js → PatientPopupContainer-IVkvc-mI.js} +1 -1
- package/dist/{PrintModal-XftkGmpT.cjs → PrintModal-C2HyzEHf.cjs} +81 -81
- package/dist/{PrintModal-CZLAbzJu.js → PrintModal-C_iNYkAo.js} +41 -48
- package/dist/index.js +2 -2
- package/dist/print-pdf/index.js +1 -1
- package/package.json +1 -1
|
@@ -120219,38 +120219,29 @@ const PrintPediaChartsPdf = memo(
|
|
|
120219
120219
|
regular: "Helvetica",
|
|
120220
120220
|
bold: "Helvetica-Bold"
|
|
120221
120221
|
}
|
|
120222
|
-
}, formatText = (N) => typeof N != "string" ? N : N.replace(/<br\s*\/?>/gi, `
|
|
120223
|
-
`), TableCell = ({
|
|
120224
|
-
|
|
120222
|
+
}, formatText = (N) => typeof N != "string" ? N?.toString() || "" : N.replace(/<br\s*\/?>/gi, `
|
|
120223
|
+
`), stripHtml = (N) => N ? N.replace(/<[^>]*>?/gm, "") : "", TableCell = ({
|
|
120224
|
+
children: N,
|
|
120225
|
+
// Use children for more complex content
|
|
120225
120226
|
width: W,
|
|
120226
120227
|
isHeader: M = !1,
|
|
120227
120228
|
align: Y = "left",
|
|
120228
|
-
fontSize: X
|
|
120229
|
-
|
|
120230
|
-
}) => /* @__PURE__ */ jsxRuntimeExports.jsx(View, { style: { width: W, padding: "8px 5px" }, children: /* @__PURE__ */ jsxRuntimeExports.jsx(
|
|
120229
|
+
fontSize: X
|
|
120230
|
+
}) => /* @__PURE__ */ jsxRuntimeExports.jsx(View, { style: { width: W, padding: "8px 5px", flexDirection: "row" }, children: /* @__PURE__ */ jsxRuntimeExports.jsx(
|
|
120231
120231
|
Text,
|
|
120232
120232
|
{
|
|
120233
120233
|
style: {
|
|
120234
|
-
fontFamily: M
|
|
120234
|
+
fontFamily: M ? FontFamily.Helvetica.bold : FontFamily.Helvetica.regular,
|
|
120235
120235
|
fontSize: X,
|
|
120236
120236
|
textAlign: Y
|
|
120237
|
-
// whiteSpace: 'pre-line', // ✅ ensures \n creates new lines
|
|
120238
120237
|
},
|
|
120239
|
-
children:
|
|
120238
|
+
children: N
|
|
120240
120239
|
}
|
|
120241
120240
|
) }), LabTestResultTable = ({ testTemplates: N, colors: W, fontSize: M }) => {
|
|
120242
120241
|
const Y = ["TEST PARAMETER", "RESULT", "BIOLOGICAL REF. INTERVAL"], X = ["45%", "25%", "30%"], I = StyleSheet.create({
|
|
120243
|
-
table: {
|
|
120244
|
-
|
|
120245
|
-
|
|
120246
|
-
},
|
|
120247
|
-
tableRow: {
|
|
120248
|
-
flexDirection: "row",
|
|
120249
|
-
alignItems: "center"
|
|
120250
|
-
},
|
|
120251
|
-
headerRow: {
|
|
120252
|
-
borderTop: `1px solid ${W.borderColor}`
|
|
120253
|
-
},
|
|
120242
|
+
table: { marginBottom: 15, color: "#1D2939" },
|
|
120243
|
+
tableRow: { flexDirection: "row", alignItems: "center" },
|
|
120244
|
+
headerRow: { borderTop: `1px solid ${W.borderColor}` },
|
|
120254
120245
|
templateHeaderRow: {
|
|
120255
120246
|
flexDirection: "row",
|
|
120256
120247
|
backgroundColor: "#F8F9FC",
|
|
@@ -120258,36 +120249,38 @@ const PrintPediaChartsPdf = memo(
|
|
|
120258
120249
|
},
|
|
120259
120250
|
templateHeaderText: {
|
|
120260
120251
|
fontFamily: FontFamily.Helvetica.bold,
|
|
120261
|
-
fontSize: M
|
|
120262
|
-
|
|
120263
|
-
|
|
120252
|
+
fontSize: M
|
|
120253
|
+
},
|
|
120254
|
+
remarksRow: {
|
|
120255
|
+
flexDirection: "row",
|
|
120256
|
+
padding: "8px 5px",
|
|
120257
|
+
borderTop: `1px solid ${W.borderColor}`
|
|
120258
|
+
},
|
|
120259
|
+
remarksText: { fontFamily: FontFamily.Helvetica.regular, fontSize: M },
|
|
120260
|
+
remarksLabel: { fontFamily: FontFamily.Helvetica.bold, fontSize: M },
|
|
120261
|
+
boldText: { fontFamily: FontFamily.Helvetica.bold },
|
|
120262
|
+
regularText: { fontFamily: FontFamily.Helvetica.regular }
|
|
120264
120263
|
});
|
|
120265
120264
|
return /* @__PURE__ */ jsxRuntimeExports.jsxs(View, { style: I.table, children: [
|
|
120266
|
-
/* @__PURE__ */ jsxRuntimeExports.jsx(View, { style: { ...I.tableRow, ...I.headerRow }, fixed: !0, children: Y.map((w, x) => /* @__PURE__ */ jsxRuntimeExports.jsx(TableCell, {
|
|
120267
|
-
N?.map((w) =>
|
|
120268
|
-
|
|
120269
|
-
|
|
120270
|
-
/* @__PURE__ */ jsxRuntimeExports.jsx(
|
|
120271
|
-
|
|
120272
|
-
{
|
|
120273
|
-
|
|
120274
|
-
|
|
120275
|
-
|
|
120276
|
-
|
|
120277
|
-
}
|
|
120278
|
-
),
|
|
120279
|
-
/* @__PURE__ */ jsxRuntimeExports.
|
|
120280
|
-
|
|
120281
|
-
{
|
|
120282
|
-
|
|
120283
|
-
|
|
120284
|
-
|
|
120285
|
-
isBold: !!x.out_of_range
|
|
120286
|
-
}
|
|
120287
|
-
),
|
|
120288
|
-
/* @__PURE__ */ jsxRuntimeExports.jsx(TableCell, { text: x.test_range, width: X[2], fontSize: M })
|
|
120289
|
-
] }, x.test_id))
|
|
120290
|
-
] }, w.template_id))
|
|
120265
|
+
/* @__PURE__ */ jsxRuntimeExports.jsx(View, { style: { ...I.tableRow, ...I.headerRow }, fixed: !0, children: Y.map((w, x) => /* @__PURE__ */ jsxRuntimeExports.jsx(TableCell, { width: X[x], isHeader: !0, fontSize: M, children: /* @__PURE__ */ jsxRuntimeExports.jsx(Text, { children: w }) }, w)) }),
|
|
120266
|
+
N?.map((w) => {
|
|
120267
|
+
const x = stripHtml(w.remarks);
|
|
120268
|
+
return /* @__PURE__ */ jsxRuntimeExports.jsxs(React__default.Fragment, { children: [
|
|
120269
|
+
/* @__PURE__ */ jsxRuntimeExports.jsx(View, { style: I.templateHeaderRow, wrap: !1, children: /* @__PURE__ */ jsxRuntimeExports.jsx(Text, { style: I.templateHeaderText, children: w.template_name }) }),
|
|
120270
|
+
w.tests.map((D) => /* @__PURE__ */ jsxRuntimeExports.jsxs(View, { style: I.tableRow, wrap: !1, children: [
|
|
120271
|
+
/* @__PURE__ */ jsxRuntimeExports.jsx(TableCell, { width: X[0], fontSize: M, children: /* @__PURE__ */ jsxRuntimeExports.jsx(Text, { style: D.out_of_range ? I.boldText : I.regularText, children: D.test_name }) }),
|
|
120272
|
+
/* @__PURE__ */ jsxRuntimeExports.jsxs(TableCell, { width: X[1], fontSize: M, children: [
|
|
120273
|
+
/* @__PURE__ */ jsxRuntimeExports.jsx(Text, { style: D.out_of_range ? I.boldText : I.regularText, children: D.test_value }),
|
|
120274
|
+
/* @__PURE__ */ jsxRuntimeExports.jsx(Text, { style: I.regularText, children: ` ${formatText(D.test_units) || ""}` })
|
|
120275
|
+
] }),
|
|
120276
|
+
/* @__PURE__ */ jsxRuntimeExports.jsx(TableCell, { width: X[2], fontSize: M, children: /* @__PURE__ */ jsxRuntimeExports.jsx(Text, { style: I.regularText, children: D.test_range }) })
|
|
120277
|
+
] }, D.test_id)),
|
|
120278
|
+
x && /* @__PURE__ */ jsxRuntimeExports.jsxs(View, { style: I.remarksRow, wrap: !1, children: [
|
|
120279
|
+
/* @__PURE__ */ jsxRuntimeExports.jsx(Text, { style: I.remarksLabel, children: "Remarks: " }),
|
|
120280
|
+
/* @__PURE__ */ jsxRuntimeExports.jsx(Text, { style: I.remarksText, children: x })
|
|
120281
|
+
] })
|
|
120282
|
+
] }, w.template_id);
|
|
120283
|
+
})
|
|
120291
120284
|
] });
|
|
120292
120285
|
}, PrintLabReport = ({
|
|
120293
120286
|
preferences: N,
|
package/dist/index.js
CHANGED
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import { P as r } from "./PediatricsCalculatorTable-C4TFowA1.js";
|
|
2
|
-
import { P as e } from "./PatientPopupContainer-
|
|
2
|
+
import { P as e } from "./PatientPopupContainer-IVkvc-mI.js";
|
|
3
3
|
import { A as i } from "./Attachments-C00pNXTg.js";
|
|
4
4
|
import { P } from "./PatientAddEdit-CZ3E3jmH.js";
|
|
5
5
|
import { S as m } from "./SearchPatients-iXzHKZpb.js";
|
|
6
6
|
import { N as n } from "./NineDots-DknhZch4.js";
|
|
7
7
|
import { U as d } from "./UserProfile-CgS-SMLa.js";
|
|
8
|
-
import { P as c } from "./PrintModal-
|
|
8
|
+
import { P as c } from "./PrintModal-C_iNYkAo.js";
|
|
9
9
|
import { A as u } from "./AllInvestigationsTable-DIp4FtG4.js";
|
|
10
10
|
export {
|
|
11
11
|
u as AllInvestigations,
|
package/dist/print-pdf/index.js
CHANGED