hplx-feature-library 1.0.6 → 1.0.8
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/index.js +1 -1
- package/dist/{PediatricsCalculatorTable-Ci3-BQrw.js → PediatricsCalculatorTable-BUQjfCpw.js} +3726 -3646
- package/dist/{PediatricsCalculatorTable-DvdiJ_M8.cjs → PediatricsCalculatorTable-CeMPKcdc.cjs} +33 -33
- package/dist/constants/PediatricsCalculatorConstants/index.js +8 -8
- package/dist/index.js +1 -1
- package/dist/lib/PediatricsCalculator/components/CopyPopup.d.ts +3 -3
- package/dist/lib/PediatricsCalculator/components/MedicineRow.d.ts +5 -1
- package/dist/lib/PediatricsCalculator/components/PediatricsCalculatorTable.d.ts +6 -4
- package/dist/lib/PediatricsCalculator/components/PediatricsCalculatorTableContext.d.ts +2 -2
- package/dist/lib/types/PediatricsCalculatorTypes.d.ts +8 -8
- package/package.json +1 -1
|
@@ -37,18 +37,18 @@ const a = [
|
|
|
37
37
|
"mL/kg"
|
|
38
38
|
/* MlKg */
|
|
39
39
|
], d = {
|
|
40
|
-
drug_strength:
|
|
41
|
-
dose_mg_kg:
|
|
40
|
+
drug_strength: "",
|
|
41
|
+
dose_mg_kg: "",
|
|
42
42
|
frequency: "",
|
|
43
|
-
max_mg_dose:
|
|
44
|
-
max_mg_day:
|
|
43
|
+
max_mg_dose: "",
|
|
44
|
+
max_mg_day: "",
|
|
45
45
|
pedia_dosage: ""
|
|
46
46
|
}, i = {
|
|
47
|
-
multiplier:
|
|
48
|
-
dose_ml_kg:
|
|
47
|
+
multiplier: "",
|
|
48
|
+
dose_ml_kg: "",
|
|
49
49
|
frequency: "",
|
|
50
|
-
max_ml_dose:
|
|
51
|
-
max_ml_day:
|
|
50
|
+
max_ml_dose: "",
|
|
51
|
+
max_ml_day: "",
|
|
52
52
|
pedia_dosage: ""
|
|
53
53
|
};
|
|
54
54
|
export {
|
package/dist/index.js
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import { I_Medicine } from '../../types/PediatricsCalculatorTypes';
|
|
1
|
+
import { I_Medicine, IMedicineViewData } from '../../types/PediatricsCalculatorTypes';
|
|
2
2
|
interface CopyPopupProps {
|
|
3
3
|
open: boolean;
|
|
4
4
|
onCancel: () => void;
|
|
5
|
-
onSave: (row:
|
|
6
|
-
rowMedicineData:
|
|
5
|
+
onSave: (row: IMedicineViewData, selectedMedicines: I_Medicine[]) => void;
|
|
6
|
+
rowMedicineData: IMedicineViewData;
|
|
7
7
|
getMedicineOptions: (searchTerm: string) => Promise<I_Medicine[]>;
|
|
8
8
|
}
|
|
9
9
|
declare const CopyPopup: ({ open, onCancel, onSave, rowMedicineData, getMedicineOptions }: CopyPopupProps) => import("react/jsx-runtime").JSX.Element;
|
|
@@ -1,6 +1,10 @@
|
|
|
1
1
|
import { IMedicineViewData } from '../../types/PediatricsCalculatorTypes';
|
|
2
2
|
interface MedicineRowProps {
|
|
3
3
|
rowData: IMedicineViewData;
|
|
4
|
+
isEditing: boolean;
|
|
5
|
+
setIsEditing: (value: boolean) => void;
|
|
6
|
+
setFormData: (newData: Partial<IMedicineViewData>) => void;
|
|
7
|
+
onSaveRow: (row: IMedicineViewData) => Promise<void>;
|
|
4
8
|
}
|
|
5
|
-
export declare const MedicineRow: ({ rowData }: MedicineRowProps) => import("react/jsx-runtime").JSX.Element;
|
|
9
|
+
export declare const MedicineRow: ({ rowData, isEditing, setIsEditing, setFormData, onSaveRow }: MedicineRowProps) => import("react/jsx-runtime").JSX.Element;
|
|
6
10
|
export {};
|
|
@@ -6,10 +6,12 @@ interface PediatricsCalculatorTableProps {
|
|
|
6
6
|
externallyTriggeredEditMode?: boolean;
|
|
7
7
|
getMedicineOptions: (searchTerm: string) => Promise<I_Medicine[]>;
|
|
8
8
|
onRowChange: (updatedRow: IMedicineViewData) => void;
|
|
9
|
-
onRowDelete
|
|
10
|
-
onRowCopy
|
|
9
|
+
onRowDelete?: (rowId: string) => void;
|
|
10
|
+
onRowCopy?: (clickedRow: IMedicineViewData, selectedMedicines: I_Medicine[]) => void;
|
|
11
11
|
onPrescriptionAction: (rowId: string, action: string) => void;
|
|
12
|
-
|
|
12
|
+
onSaveRow?: (row: IMedicineViewData[]) => Promise<void>;
|
|
13
|
+
externalSaveTrigger?: boolean;
|
|
14
|
+
setSearchDisabled?: (disabled: boolean) => void;
|
|
13
15
|
}
|
|
14
|
-
declare const PediatricsCalculatorTable: ({ data, variant, externallyTriggeredEditRowIds, externallyTriggeredEditMode, getMedicineOptions, onRowChange, onRowDelete, onRowCopy, onPrescriptionAction,
|
|
16
|
+
declare const PediatricsCalculatorTable: ({ data, variant, externallyTriggeredEditRowIds, externallyTriggeredEditMode, getMedicineOptions, onRowChange, onRowDelete, onRowCopy, onPrescriptionAction, onSaveRow, externalSaveTrigger, setSearchDisabled, }: PediatricsCalculatorTableProps) => import("react/jsx-runtime").JSX.Element;
|
|
15
17
|
export default PediatricsCalculatorTable;
|
|
@@ -5,8 +5,8 @@ export interface IPediatricsCalculatorTableContext {
|
|
|
5
5
|
externallyTriggeredEditRowIds: string[];
|
|
6
6
|
getMedicineOptions: (searchTerm: string) => Promise<I_Medicine[]>;
|
|
7
7
|
onRowChange: (updatedRow: IMedicineViewData) => void;
|
|
8
|
-
onRowDelete
|
|
9
|
-
onRowCopy
|
|
8
|
+
onRowDelete?: (rowId: string) => void;
|
|
9
|
+
onRowCopy?: (clickedRow: IMedicineViewData, selectedMedicines: I_Medicine[]) => void;
|
|
10
10
|
onPrescriptionAction: (rowId: string, action: string) => void;
|
|
11
11
|
setRowToDelete?: (id: string | null) => void;
|
|
12
12
|
openPopupForRow?: (row: IMedicineViewData) => void;
|
|
@@ -5,19 +5,19 @@ export interface I_ApiResponseType<T> {
|
|
|
5
5
|
data: T;
|
|
6
6
|
}
|
|
7
7
|
export interface I_CalcFields_MgKg {
|
|
8
|
-
drug_strength: number;
|
|
9
|
-
dose_mg_kg: number;
|
|
8
|
+
drug_strength: number | '';
|
|
9
|
+
dose_mg_kg: number | '';
|
|
10
10
|
frequency: string;
|
|
11
11
|
pedia_dosage: string;
|
|
12
|
-
max_mg_dose: number;
|
|
13
|
-
max_mg_day: number;
|
|
12
|
+
max_mg_dose: number | '';
|
|
13
|
+
max_mg_day: number | '';
|
|
14
14
|
}
|
|
15
15
|
export interface I_CalcFields_MlKg {
|
|
16
|
-
multiplier: number;
|
|
17
|
-
dose_ml_kg: number;
|
|
16
|
+
multiplier: number | '';
|
|
17
|
+
dose_ml_kg: number | '';
|
|
18
18
|
frequency: string;
|
|
19
|
-
max_ml_dose: number;
|
|
20
|
-
max_ml_day: number;
|
|
19
|
+
max_ml_dose: number | '';
|
|
20
|
+
max_ml_day: number | '';
|
|
21
21
|
pedia_dosage: string;
|
|
22
22
|
}
|
|
23
23
|
export interface I_Medicine {
|