hplx-feature-library 1.0.2 → 1.0.4

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.
@@ -1,4 +1,4 @@
1
- import { P as f } from "../PediatricsCalculatorTable-CDQN-vtQ.js";
1
+ import { P as f } from "../PediatricsCalculatorTable-BLyiO-qw.js";
2
2
  export {
3
3
  f as default
4
4
  };
@@ -1,11 +1,12 @@
1
1
  import * as Ie from "react";
2
2
  import et, { createContext as hh, useEffect as ca, useCallback as mo, useState as Sn, useRef as Wa, useMemo as Sy, useContext as _y } from "react";
3
- import * as ky from "react-dom";
3
+ import { C_MedicineCalculatorList as Js, C_MedicineFrequencyList as ky, C_MedicineTypeList as Cy, C_DefaultMgKgFields as Py, C_DefaultMlKgFields as Ey, C_Table_Column_Name as My } from "./constants/PediatricsCalculatorConstants/index.js";
4
+ import * as Ty from "react-dom";
4
5
  import gi from "react-dom";
5
6
  function mh(t) {
6
7
  return t && t.__esModule && Object.prototype.hasOwnProperty.call(t, "default") ? t.default : t;
7
8
  }
8
- function Cy(t) {
9
+ function Ry(t) {
9
10
  if (Object.prototype.hasOwnProperty.call(t, "__esModule")) return t;
10
11
  var r = t.default;
11
12
  if (typeof r == "function") {
@@ -40,7 +41,7 @@ var Ya = { exports: {} }, Fn = {};
40
41
  * LICENSE file in the root directory of this source tree.
41
42
  */
42
43
  var ic;
43
- function Py() {
44
+ function jy() {
44
45
  if (ic) return Fn;
45
46
  ic = 1;
46
47
  var t = et, r = Symbol.for("react.element"), a = Symbol.for("react.fragment"), e = Object.prototype.hasOwnProperty, n = t.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner, o = { key: !0, ref: !0, __self: !0, __source: !0 };
@@ -64,7 +65,7 @@ var Ln = {};
64
65
  * LICENSE file in the root directory of this source tree.
65
66
  */
66
67
  var sc;
67
- function Ey() {
68
+ function Ny() {
68
69
  return sc || (sc = 1, process.env.NODE_ENV !== "production" && function() {
69
70
  var t = et, r = Symbol.for("react.element"), a = Symbol.for("react.portal"), e = Symbol.for("react.fragment"), n = Symbol.for("react.strict_mode"), o = Symbol.for("react.profiler"), s = Symbol.for("react.provider"), i = Symbol.for("react.context"), l = Symbol.for("react.forward_ref"), u = Symbol.for("react.suspense"), c = Symbol.for("react.suspense_list"), f = Symbol.for("react.memo"), d = Symbol.for("react.lazy"), p = Symbol.for("react.offscreen"), h = Symbol.iterator, m = "@@iterator";
70
71
  function g(x) {
@@ -654,62 +655,10 @@ React keys must be passed directly to JSX without using spread:
654
655
  }()), Ln;
655
656
  }
656
657
  var lc;
657
- function My() {
658
- return lc || (lc = 1, process.env.NODE_ENV === "production" ? Ya.exports = Py() : Ya.exports = Ey()), Ya.exports;
659
- }
660
- var B = My();
661
- const Ty = [
662
- "Medicine Name",
663
- "Generic Name",
664
- "Type",
665
- "Calculator",
666
- "Additional Info",
667
- "Dosage",
668
- "Options"
669
- ], Ry = [
670
- "TAB.",
671
- "SYP.",
672
- "CRM.",
673
- "POW.",
674
- "INJ.",
675
- "CAP.",
676
- "DRP.",
677
- "SUS.",
678
- "LIQ.",
679
- "SAC.",
680
- "EXP.",
681
- "OIN.",
682
- "GEN.",
683
- "LOT.",
684
- "GEL.",
685
- "GRA.",
686
- "SOAP.",
687
- "SOL.",
688
- "VAC.",
689
- "PAS.",
690
- "INH.",
691
- "OTH.",
692
- "SPR."
693
- ], jy = ["1(OD)", "2(BD)", "3(TDS)", "4(QID)", "6(Q4H)"], Js = [
694
- "mg/kg/dose",
695
- "mL/kg"
696
- /* MlKg */
697
- ], Ny = {
698
- drug_strength: 0,
699
- dose_mg_kg: 0,
700
- frequency: "",
701
- max_mg_dose: 0,
702
- max_mg_day: 0,
703
- pedia_dosage: ""
704
- }, Ay = {
705
- multiplier: 0,
706
- dose_ml_kg: 0,
707
- frequency: "",
708
- max_ml_dose: 0,
709
- max_ml_day: 0,
710
- pedia_dosage: ""
711
- };
712
- var Ua = { exports: {} }, Ha = { exports: {} }, ke = {};
658
+ function Ay() {
659
+ return lc || (lc = 1, process.env.NODE_ENV === "production" ? Ya.exports = jy() : Ya.exports = Ny()), Ya.exports;
660
+ }
661
+ var B = Ay(), Ua = { exports: {} }, Ha = { exports: {} }, ke = {};
713
662
  /** @license React v16.13.1
714
663
  * react-is.production.min.js
715
664
  *
@@ -7554,7 +7503,7 @@ var PM = function(t, r) {
7554
7503
  var e = Ie.useRef(null), n = { onFirstUpdate: a.onFirstUpdate, placement: a.placement || "bottom", strategy: a.strategy || "absolute", modifiers: a.modifiers || EM }, o = Ie.useState({ styles: { popper: { position: n.strategy, left: "0", top: "0" }, arrow: { position: "absolute" } }, attributes: {} }), s = o[0], i = o[1], l = Ie.useMemo(function() {
7555
7504
  return { name: "updateState", enabled: !0, phase: "write", fn: function(f) {
7556
7505
  var d = f.state, p = Object.keys(d.elements);
7557
- ky.flushSync(function() {
7506
+ Ty.flushSync(function() {
7558
7507
  i({ styles: gp(p.map(function(h) {
7559
7508
  return [h, d.styles[h] || {}];
7560
7509
  })), attributes: gp(p.map(function(h) {
@@ -9751,7 +9700,7 @@ const Y1 = ({ isEditable: t, rowData: r, handleCalcFieldChange: a }) => {
9751
9700
  placeholder: "Frequency",
9752
9701
  showInput: !1,
9753
9702
  selectedOption: r.calc_fields.frequency ? { label: r.calc_fields.frequency, value: r.calc_fields.frequency } : void 0,
9754
- options: jy.map((i) => ({ label: i, value: i })),
9703
+ options: ky.map((i) => ({ label: i, value: i })),
9755
9704
  onChangeHandler: (i) => a("frequency", i.value)
9756
9705
  }
9757
9706
  ) })
@@ -9839,7 +9788,7 @@ const Y1 = ({ isEditable: t, rowData: r, handleCalcFieldChange: a }) => {
9839
9788
  return {
9840
9789
  ...w,
9841
9790
  calculation_type: S,
9842
- calc_fields: S === "mg/kg/dose" ? { ...Ny, ...y } : { ...Ay, ...y }
9791
+ calc_fields: S === "mg/kg/dose" ? { ...Py, ...y } : { ...Ey, ...y }
9843
9792
  };
9844
9793
  });
9845
9794
  } else
@@ -9918,7 +9867,7 @@ const Y1 = ({ isEditable: t, rowData: r, handleCalcFieldChange: a }) => {
9918
9867
  showInput: !1,
9919
9868
  disableInputAutoSize: !0,
9920
9869
  selectedOption: { label: l.type, value: l.type },
9921
- options: Ry.map((_) => ({ label: _, value: _ })),
9870
+ options: Cy.map((_) => ({ label: _, value: _ })),
9922
9871
  onChangeHandler: (_) => d("type", _.value)
9923
9872
  }
9924
9873
  ) : /* @__PURE__ */ B.jsx(He, { variant: "Regular", type: "Text sm", className: "hfl-text-Blue_gray-800 hfl-px-2", children: t.type }) }),
@@ -10721,7 +10670,7 @@ https://fb.me/react-async-component-lifecycle-hooks`
10721
10670
  const X1 = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
10722
10671
  __proto__: null,
10723
10672
  polyfill: Q1
10724
- }, Symbol.toStringTag, { value: "Module" })), J1 = /* @__PURE__ */ Cy(X1);
10673
+ }, Symbol.toStringTag, { value: "Module" })), J1 = /* @__PURE__ */ Ry(X1);
10725
10674
  var dh;
10726
10675
  function Z1() {
10727
10676
  if (dh) return yr;
@@ -11034,7 +10983,7 @@ const rR = /* @__PURE__ */ mh(tR), nR = (t) => {
11034
10983
  ]
11035
10984
  }
11036
10985
  );
11037
- }, iR = ({
10986
+ }, sR = ({
11038
10987
  data: t,
11039
10988
  variant: r,
11040
10989
  externallyTriggeredEditRowIds: a = [],
@@ -11068,7 +11017,7 @@ const rR = /* @__PURE__ */ mh(tR), nR = (t) => {
11068
11017
  c(null);
11069
11018
  };
11070
11019
  return /* @__PURE__ */ B.jsxs("div", { className: "hfl-border-1 hfl-border-Gray-200", children: [
11071
- /* @__PURE__ */ B.jsx("div", { className: "table-header hfl-grid hfl-grid-cols-[1.36fr_1.36fr_1.02fr_1.25fr_2.27fr_1.36fr_1.36fr] hfl-gap-2 hfl-py-2 hfl-px-2 hfl-font-bold hfl-border-b-1 hfl-border-Gray-200 hfl-bg-Blue_gray-50", children: Ty.map((h) => /* @__PURE__ */ B.jsx(He, { variant: "Medium", type: "Text sm", className: "hfl-text-Blue_gray-600", children: h }, h)) }),
11020
+ /* @__PURE__ */ B.jsx("div", { className: "table-header hfl-grid hfl-grid-cols-[1.36fr_1.36fr_1.02fr_1.25fr_2.27fr_1.36fr_1.36fr] hfl-gap-2 hfl-py-2 hfl-px-2 hfl-font-bold hfl-border-b-1 hfl-border-Gray-200 hfl-bg-Blue_gray-50", children: My.map((h) => /* @__PURE__ */ B.jsx(He, { variant: "Medium", type: "Text sm", className: "hfl-text-Blue_gray-600", children: h }, h)) }),
11072
11021
  /* @__PURE__ */ B.jsxs(ty.Provider, { value: f, children: [
11073
11022
  /* @__PURE__ */ B.jsx("div", { className: "table-body", children: t.length === 0 ? /* @__PURE__ */ B.jsx(He, { variant: "Medium", type: "Text sm", className: "hfl-text-Blue_gray-600 hfl-px-2 hfl-py-3", children: "No medicines added" }) : t.map((h) => /* @__PURE__ */ B.jsx(H1, { rowData: h }, h.rowId)) }),
11074
11023
  /* @__PURE__ */ B.jsx(
@@ -11090,5 +11039,5 @@ const rR = /* @__PURE__ */ mh(tR), nR = (t) => {
11090
11039
  ] });
11091
11040
  };
11092
11041
  export {
11093
- iR as P
11042
+ sR as P
11094
11043
  };