hplx-feature-library 1.0.249 → 1.0.251

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.
@@ -120359,17 +120359,19 @@ const PrintPediaChartsPdf = memo(
120359
120359
  setPrintPageCount: w,
120360
120360
  printEmailClick: x
120361
120361
  }) => {
120362
- const D = useRef(null);
120363
- return D.current = debounceFn(async (R) => {
120364
- if (R)
120365
- try {
120366
- setTimeout(() => {
120367
- W || (M(R), X() || I());
120368
- }, 0);
120369
- } catch (C) {
120370
- console.log("error", C);
120362
+ const D = (C, J) => {
120363
+ const B = document.createElement("a");
120364
+ B.href = URL.createObjectURL(C), B.download = J, document.body.appendChild(B), B.click(), document.body.removeChild(B), URL.revokeObjectURL(B.href), I();
120365
+ }, R = (C) => {
120366
+ if (C)
120367
+ if (X())
120368
+ W || M(C);
120369
+ else {
120370
+ const J = N?.patientDetails?.name || "patient", B = N?.labOrderData?.lab_id || Date.now(), H = `Lab-Report-${J.replace(/\s+/g, "_")}-${B}.pdf`;
120371
+ D(C, H);
120371
120372
  }
120372
- }, 400), /* @__PURE__ */ jsxRuntimeExports.jsx(jsxRuntimeExports.Fragment, { children: N && /* @__PURE__ */ jsxRuntimeExports.jsx("div", { className: "hfl-h-[85vh] hfl-w-[210mm] xxs:max-md:hfl-h-[70vh] xxs:max-sm:hfl-w-[150mm] md:hfl-w-[180mm]", children: /* @__PURE__ */ jsxRuntimeExports.jsx(
120373
+ };
120374
+ return /* @__PURE__ */ jsxRuntimeExports.jsx(jsxRuntimeExports.Fragment, { children: N && /* @__PURE__ */ jsxRuntimeExports.jsx("div", { className: "hfl-h-[85vh] hfl-w-[210mm] xxs:max-md:hfl-h-[70vh] xxs:max-sm:hfl-w-[150mm] md:hfl-w-[180mm]", children: /* @__PURE__ */ jsxRuntimeExports.jsx(
120373
120375
  PDFViewer,
120374
120376
  {
120375
120377
  className: "hfl-h-[85vh] hfl-w-[210mm] xxs:max-md:hfl-h-[70vh] xxs:max-sm:hfl-w-[150mm] md:hfl-w-[180mm]",
@@ -120379,9 +120381,10 @@ const PrintPediaChartsPdf = memo(
120379
120381
  PrintLabReport,
120380
120382
  {
120381
120383
  preferences: N?.preferences,
120384
+ branch_preference: N?.branch_preference,
120382
120385
  labReportData: N?.labReportData,
120383
120386
  labOrderData: N?.labOrderData,
120384
- onRenderCallback: D.current,
120387
+ onRenderCallback: R,
120385
120388
  setPrintPageCount: w,
120386
120389
  printEmailClick: x
120387
120390
  }
package/dist/index.js CHANGED
@@ -1,11 +1,11 @@
1
1
  import { P as r } from "./PediatricsCalculatorTable-G0ttbDpi.js";
2
- import { P as e } from "./PatientPopupContainer-GY1cLpXZ.js";
2
+ import { P as e } from "./PatientPopupContainer-BRMq_V37.js";
3
3
  import { A as i } from "./Attachments-CARL1R9N.js";
4
4
  import { P } from "./PatientAddEdit-C5MnysOS.js";
5
5
  import { S as m } from "./SearchPatients-B91CFBhq.js";
6
6
  import { N as n } from "./NineDots-B3ZRumoi.js";
7
7
  import { U as d } from "./UserProfile-1Pll0yKL.js";
8
- import { P as c } from "./PrintModal-DgfHsX9T.js";
8
+ import { P as c } from "./PrintModal-D5fLJZS8.js";
9
9
  import { A as u } from "./AllInvestigationsTable-Dg-YXASz.js";
10
10
  export {
11
11
  u as AllInvestigations,
@@ -1,4 +1,4 @@
1
- import { P as f } from "../PrintModal-DgfHsX9T.js";
1
+ import { P as f } from "../PrintModal-D5fLJZS8.js";
2
2
  export {
3
3
  f as default
4
4
  };
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "hplx-feature-library",
3
3
  "private": false,
4
- "version": "1.0.249",
4
+ "version": "1.0.251",
5
5
  "type": "module",
6
6
  "scripts": {
7
7
  "dev": "npm i hplx-react-elements-dev@qa && vite",