hplx-feature-library 1.0.269 → 1.0.271

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.
@@ -120222,61 +120222,51 @@ const PrintPediaChartsPdf = memo(
120222
120222
  }, formatText = (N) => typeof N != "string" ? N?.toString() || "" : N.replace(/<br\s*\/?>/gi, `
120223
120223
  `), stripHtml = (N) => N ? N.replace(/<[^>]*>?/gm, "") : "", TableCell = ({
120224
120224
  children: N,
120225
- // Use children for more complex content
120226
120225
  width: W,
120227
- isHeader: M = !1,
120228
- align: Y = "left",
120229
- fontSize: X
120230
- }) => /* @__PURE__ */ jsxRuntimeExports.jsx(View, { style: { width: W, padding: "8px 5px", flexDirection: "row" }, children: /* @__PURE__ */ jsxRuntimeExports.jsx(
120231
- Text,
120232
- {
120233
- style: {
120234
- fontFamily: M ? FontFamily.Helvetica.bold : FontFamily.Helvetica.regular,
120235
- fontSize: X,
120236
- textAlign: Y
120237
- },
120238
- children: N
120239
- }
120240
- ) }), LabTestResultTable = ({ testTemplates: N, colors: W, fontSize: M }) => {
120226
+ align: M = "left"
120227
+ }) => /* @__PURE__ */ jsxRuntimeExports.jsx(View, { style: { width: W, padding: "8px 5px", flexDirection: "row", alignItems: "center", textAlign: M }, children: N }), LabTestResultTable = ({ testTemplates: N, colors: W, fontSize: M }) => {
120241
120228
  const Y = ["TEST PARAMETER", "RESULT", "BIOLOGICAL REF. INTERVAL"], X = ["45%", "25%", "30%"], I = StyleSheet.create({
120242
120229
  table: { marginBottom: 15, color: "#1D2939" },
120243
- tableRow: { flexDirection: "row", alignItems: "center" },
120244
- headerRow: { borderTop: `1px solid ${W.borderColor}` },
120230
+ tableRow: {
120231
+ flexDirection: "row",
120232
+ borderTop: `1px solid ${W.borderColor}`
120233
+ },
120234
+ headerRow: {
120235
+ backgroundColor: "#F8F9FC"
120236
+ },
120245
120237
  templateHeaderRow: {
120246
120238
  flexDirection: "row",
120247
120239
  backgroundColor: "#F8F9FC",
120248
120240
  padding: "8px 5px"
120249
120241
  },
120250
- templateHeaderText: {
120251
- fontFamily: FontFamily.Helvetica.bold,
120252
- fontSize: M
120253
- },
120242
+ templateHeaderText: { fontFamily: FontFamily.Helvetica.bold, fontSize: M },
120254
120243
  remarksRow: {
120255
120244
  flexDirection: "row",
120256
- padding: "8px 5px"
120245
+ padding: "8px 5px",
120246
+ borderTop: `1px solid ${W.borderColor}`
120257
120247
  },
120258
120248
  remarksText: { fontFamily: FontFamily.Helvetica.regular, fontSize: M },
120259
120249
  remarksLabel: { fontFamily: FontFamily.Helvetica.bold, fontSize: M },
120260
- boldText: { fontFamily: FontFamily.Helvetica.bold },
120261
- regularText: { fontFamily: FontFamily.Helvetica.regular }
120250
+ boldText: { fontFamily: FontFamily.Helvetica.bold, fontSize: M },
120251
+ regularText: { fontFamily: FontFamily.Helvetica.regular, fontSize: M }
120262
120252
  });
120263
120253
  return /* @__PURE__ */ jsxRuntimeExports.jsxs(View, { style: I.table, children: [
120264
- /* @__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)) }),
120254
+ /* @__PURE__ */ jsxRuntimeExports.jsx(View, { style: { ...I.tableRow, ...I.headerRow }, fixed: !0, children: Y.map((w, x) => /* @__PURE__ */ jsxRuntimeExports.jsx(TableCell, { width: X[x], children: /* @__PURE__ */ jsxRuntimeExports.jsx(Text, { style: I.boldText, children: w }) }, w)) }),
120265
120255
  N?.map((w) => {
120266
120256
  const x = stripHtml(w.remarks);
120267
120257
  return /* @__PURE__ */ jsxRuntimeExports.jsxs(React__default.Fragment, { children: [
120268
120258
  /* @__PURE__ */ jsxRuntimeExports.jsx(View, { style: I.templateHeaderRow, wrap: !1, children: /* @__PURE__ */ jsxRuntimeExports.jsx(Text, { style: I.templateHeaderText, children: w.template_name }) }),
120269
- w.tests.map((D) => /* @__PURE__ */ jsxRuntimeExports.jsxs(View, { style: I.tableRow, wrap: !1, children: [
120270
- /* @__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 }) }),
120271
- /* @__PURE__ */ jsxRuntimeExports.jsxs(TableCell, { width: X[1], fontSize: M, children: [
120259
+ w.tests.map((D) => /* @__PURE__ */ jsxRuntimeExports.jsxs(View, { style: I.tableRow, children: [
120260
+ /* @__PURE__ */ jsxRuntimeExports.jsx(TableCell, { width: X[0], children: /* @__PURE__ */ jsxRuntimeExports.jsx(Text, { style: D.out_of_range ? I.boldText : I.regularText, children: D.test_name }) }),
120261
+ /* @__PURE__ */ jsxRuntimeExports.jsxs(TableCell, { width: X[1], children: [
120272
120262
  /* @__PURE__ */ jsxRuntimeExports.jsx(Text, { style: D.out_of_range ? I.boldText : I.regularText, children: D.test_value }),
120273
120263
  /* @__PURE__ */ jsxRuntimeExports.jsx(Text, { style: I.regularText, children: ` ${formatText(D.test_units) || ""}` })
120274
120264
  ] }),
120275
- /* @__PURE__ */ jsxRuntimeExports.jsx(TableCell, { width: X[2], fontSize: M, children: /* @__PURE__ */ jsxRuntimeExports.jsx(Text, { style: I.regularText, children: D.test_range }) })
120265
+ /* @__PURE__ */ jsxRuntimeExports.jsx(TableCell, { width: X[2], children: /* @__PURE__ */ jsxRuntimeExports.jsx(Text, { style: I.regularText, children: D.test_range }) })
120276
120266
  ] }, D.test_id)),
120277
- x && /* @__PURE__ */ jsxRuntimeExports.jsxs(View, { style: I.remarksRow, wrap: !1, children: [
120267
+ x && /* @__PURE__ */ jsxRuntimeExports.jsxs(View, { style: I.remarksRow, children: [
120278
120268
  /* @__PURE__ */ jsxRuntimeExports.jsx(Text, { style: I.remarksLabel, children: "Remarks: " }),
120279
- /* @__PURE__ */ jsxRuntimeExports.jsx(Text, { style: I.remarksText, children: x })
120269
+ /* @__PURE__ */ jsxRuntimeExports.jsx(View, { style: { flex: 1, paddingLeft: 4 }, children: /* @__PURE__ */ jsxRuntimeExports.jsx(Text, { style: I.remarksText, children: x }) })
120280
120270
  ] })
120281
120271
  ] }, w.template_id);
120282
120272
  })