hplx-feature-library 1.0.35 → 1.0.36
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/PediatricsCalculator/components/PediatricsCalculatorTable.d.ts +2 -2
- package/dist/PediatricsCalculator/components/PediatricsCalculatorTableContext.d.ts +1 -1
- package/dist/PediatricsCalculator/index.js +1 -1
- package/dist/{PediatricsCalculatorTable-C4pBDCW4.js → PediatricsCalculatorTable-BxcwUO0d.js} +3 -3
- package/dist/{PediatricsCalculatorTable-C4Xm6hDa.cjs → PediatricsCalculatorTable-TOAv6YDC.cjs} +25 -25
- package/dist/index.js +1 -1
- package/package.json +1 -1
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
import { IMedicineViewData, Medicine } from '../../types/PediatricsCalculatorTypes';
|
|
1
|
+
import { CalcFieldKeys, IMedicineViewData, Medicine } from '../../types/PediatricsCalculatorTypes';
|
|
2
2
|
interface PediatricsCalculatorTableProps {
|
|
3
3
|
data?: IMedicineViewData[];
|
|
4
4
|
variant: 'standard' | 'prescription';
|
|
5
5
|
externallyTriggeredEditRowIds?: string[];
|
|
6
6
|
externallyTriggeredEditMode?: boolean;
|
|
7
7
|
getMedicineOptions?: (searchTerm: string) => Promise<Medicine[]>;
|
|
8
|
-
onRowChange?: (updatedRow: IMedicineViewData, updatedKey?:
|
|
8
|
+
onRowChange?: (updatedRow: IMedicineViewData, updatedKey?: keyof IMedicineViewData | CalcFieldKeys) => void;
|
|
9
9
|
onRowDelete?: (rowId: string) => Promise<boolean>;
|
|
10
10
|
onRowCopy?: (clickedRow: IMedicineViewData, selectedMedicines: Medicine[]) => Promise<boolean>;
|
|
11
11
|
onSaveRow?: (row: IMedicineViewData[]) => Promise<boolean>;
|
|
@@ -4,7 +4,7 @@ export interface IPediatricsCalculatorTableContext {
|
|
|
4
4
|
externallyTriggeredEditMode: boolean;
|
|
5
5
|
externallyTriggeredEditRowIds?: string[];
|
|
6
6
|
getMedicineOptions?: (searchTerm: string) => Promise<Medicine[]>;
|
|
7
|
-
onRowChange?: (updatedRow: IMedicineViewData, updatedKey?: CalcFieldKeys) => void;
|
|
7
|
+
onRowChange?: (updatedRow: IMedicineViewData, updatedKey?: keyof IMedicineViewData | CalcFieldKeys) => void;
|
|
8
8
|
onRowDelete?: (rowId: string) => void;
|
|
9
9
|
onRowCopy?: (clickedRow: IMedicineViewData, selectedMedicines: Medicine[]) => void;
|
|
10
10
|
setRowToDelete?: (id: string | null) => void;
|
package/dist/{PediatricsCalculatorTable-C4pBDCW4.js → PediatricsCalculatorTable-BxcwUO0d.js}
RENAMED
|
@@ -9746,7 +9746,7 @@ const ej = /* @__PURE__ */ iu(Z1), Or = (t) => /^(\d+)?(\.)?(\d*)?$/.test(t), Xt
|
|
|
9746
9746
|
const m = async (w) => (await l?.(w))?.map((M) => ({
|
|
9747
9747
|
label: M.doctorMedicineName,
|
|
9748
9748
|
value: M
|
|
9749
|
-
})) || [], P = s || i?.includes(r.rowId) || a, j = ll(() => p.out_of_range, [p]), _ = Ve.useMemo(() => p.calculation_type === Xi[0] ? p.calculation_fields : null, [p.calculation_fields, p.calculation_type]), k = Ve.useMemo(() => p.calculation_type === Xi[1] ? p.calculation_fields : null, [p.calculation_fields, p.calculation_type]), b = (w, E) => {
|
|
9749
|
+
})) || [], P = s || i?.includes(r.rowId) || a, j = ll(() => p.out_of_range || r.out_of_range, [p.out_of_range, r.out_of_range]), _ = Ve.useMemo(() => p.calculation_type === Xi[0] ? p.calculation_fields : null, [p.calculation_fields, p.calculation_type]), k = Ve.useMemo(() => p.calculation_type === Xi[1] ? p.calculation_fields : null, [p.calculation_fields, p.calculation_type]), b = (w, E) => {
|
|
9750
9750
|
let M;
|
|
9751
9751
|
if (w === "calculation_type") {
|
|
9752
9752
|
const S = E, Y = {
|
|
@@ -9766,7 +9766,7 @@ const ej = /* @__PURE__ */ iu(Z1), Or = (t) => /^(\d+)?(\.)?(\d*)?$/.test(t), Xt
|
|
|
9766
9766
|
h(M), o === "prescription" && v(M, w);
|
|
9767
9767
|
}, v = ll(
|
|
9768
9768
|
() => ej((w, E) => {
|
|
9769
|
-
u?.(w, E ||
|
|
9769
|
+
u?.(w, E || void 0);
|
|
9770
9770
|
}, 500),
|
|
9771
9771
|
[u]
|
|
9772
9772
|
);
|
|
@@ -10095,7 +10095,7 @@ const ej = /* @__PURE__ */ iu(Z1), Or = (t) => /^(\d+)?(\.)?(\d*)?$/.test(t), Xt
|
|
|
10095
10095
|
/* @__PURE__ */ L.jsx(oa, { children: o === "prescription" ? r.pedia_dosage : r.calculation_fields.pedia_dosage }),
|
|
10096
10096
|
j && /* @__PURE__ */ L.jsxs("div", { className: "hfl-mb-1 hfl-flex hfl-w-max hfl-items-center hfl-rounded hfl-border-1 hfl-border-Warning-400 hfl-bg-Warning-50 hfl-p-1 hfl-px-2", children: [
|
|
10097
10097
|
/* @__PURE__ */ L.jsx("div", { className: "hx_warning hfl-text-Error-400" }),
|
|
10098
|
-
/* @__PURE__ */ L.jsx(ze, { variant: "Regular", type: "Text sm", className: "hfl-px-2 hfl-text-1 hfl-text-Error-500", children: "Dosage
|
|
10098
|
+
/* @__PURE__ */ L.jsx(ze, { variant: "Regular", type: "Text sm", className: "hfl-px-2 hfl-text-1 hfl-text-Error-500", children: "Dosage exceeds safety limits" })
|
|
10099
10099
|
] })
|
|
10100
10100
|
] }) }),
|
|
10101
10101
|
/* @__PURE__ */ L.jsx("div", { className: "hfl-w-full hfl-py-2.5 hfl-min-w-0", children: /* @__PURE__ */ L.jsx(
|