hplx-feature-library 1.0.308 → 1.0.310
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/{APIAction-BPjQvoDr.cjs → APIAction-BC572SUh.cjs} +1 -1
- package/dist/{APIAction-Cn6CnUPj.js → APIAction-Dh1jeN3Q.js} +2 -2
- package/dist/AllInvestigations/index.js +1 -1
- package/dist/{AllInvestigationsTable-o7sUrypz.js → AllInvestigationsTable-6WZYLxgn.js} +121 -121
- package/dist/AllInvestigationsTable-IN3Gv1wb.cjs +80 -0
- package/dist/Attachments/index.js +1 -1
- package/dist/Attachments-C5eZR_b9.cjs +186 -0
- package/dist/{Attachments-Bl0Bb93j.js → Attachments-Ddu-Ak3N.js} +36 -36
- package/dist/NineDots/index.js +1 -1
- package/dist/{NineDots-BenIdNn6.cjs → NineDots-CEKYCz_l.cjs} +1 -1
- package/dist/{NineDots-BovmR9lR.js → NineDots-CZxm95h0.js} +1 -1
- package/dist/PatientAddEdit/index.js +1 -1
- package/dist/{PatientAddEdit-BsvMkDPi.js → PatientAddEdit-Bsa6mPrj.js} +5 -5
- package/dist/{PatientAddEdit-CiUyGlRS.cjs → PatientAddEdit-CtM4xbMa.cjs} +1 -1
- package/dist/PatientPopup/index.js +1 -1
- package/dist/PatientPopupContainer-DOJniw5Q.cjs +36 -0
- package/dist/{PatientPopupContainer-BjejzoZp.js → PatientPopupContainer-VaUWBPAN.js} +512 -512
- package/dist/PediatricsCalculator/index.js +1 -1
- package/dist/{PediatricsCalculatorTable-CoHNZcKB.js → PediatricsCalculatorTable-Bsotwgba.js} +2 -2
- package/dist/{PediatricsCalculatorTable-Bfnfpscv.cjs → PediatricsCalculatorTable-C59lNMNS.cjs} +1 -1
- package/dist/{PrintModal-BYaI_gvN.cjs → PrintModal-D8CPsVQ6.cjs} +46 -46
- package/dist/{PrintModal-Dnu4I6Bq.js → PrintModal-DAhX2jNv.js} +587 -587
- package/dist/SearchPatients/index.js +1 -1
- package/dist/{SearchPatients-BURn-eU9.cjs → SearchPatients-1FVfZoeQ.cjs} +1 -1
- package/dist/{SearchPatients-BTmBvIpk.js → SearchPatients-tEIv_TBu.js} +3 -3
- package/dist/UserProfile/index.js +1 -1
- package/dist/{UserProfile-D9u7TGPM.js → UserProfile-CXotmcbO.js} +4 -4
- package/dist/{UserProfile-BcdsuEnn.cjs → UserProfile-DeVg1Gym.cjs} +1 -1
- package/dist/{common-utils-BmJs-CNu.cjs → common-utils-D1ID7-VY.cjs} +1 -1
- package/dist/{common-utils-fQX0KRKT.js → common-utils-P_6EPLut.js} +1 -1
- package/dist/{dayjs.min-Dx50Uhvr.js → dayjs.min-CI-igRZR.js} +15 -15
- package/dist/dayjs.min-Dq_-qqjW.cjs +1 -0
- package/dist/hplx-feature-library.css +1 -1
- package/dist/index-C8nmTIgQ.cjs +102 -0
- package/dist/{index-DPIXOYYJ.js → index-CJFGOBPb.js} +2 -2
- package/dist/{index-Cuk4eOa2.js → index-D9tHKxGo.js} +19 -19
- package/dist/index-DfcUmlge.cjs +17 -0
- package/dist/{index-D-5bovl6.js → index-Ku_Lrm51.js} +565 -565
- package/dist/index-fA2CtGkU.cjs +32 -0
- package/dist/index.js +9 -9
- package/dist/print-pdf/index.js +1 -1
- package/package.json +2 -2
- package/dist/AllInvestigationsTable-DKMxC37E.cjs +0 -80
- package/dist/Attachments-DP1L4bRq.cjs +0 -186
- package/dist/PatientPopupContainer-CNb0MKZc.cjs +0 -36
- package/dist/dayjs.min-QUFnA3Sz.cjs +0 -1
- package/dist/index-83gl7aAu.cjs +0 -32
- package/dist/index-D-bucTJp.cjs +0 -102
- package/dist/index-Dsi-BJd2.cjs +0 -17
package/dist/{PediatricsCalculatorTable-CoHNZcKB.js → PediatricsCalculatorTable-Bsotwgba.js}
RENAMED
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import { j as e, b as $, O as Ee, K as oe, N as Re, d as ue, g as We } from "./index-
|
|
1
|
+
import { j as e, b as $, O as Ee, K as oe, N as Re, d as ue, g as We } from "./index-Ku_Lrm51.js";
|
|
2
2
|
import be, { createContext as Ge, useContext as Ve, useState as G, useRef as pe, useMemo as re, useCallback as W, useEffect as Q, forwardRef as Pe, useImperativeHandle as Ke } from "react";
|
|
3
3
|
import { C_MedicineCalculatorList as _e, C_FrequencyDosageMap as Me, C_MedicineTypeList as we, C_MedicineFrequencyList as Se, C_DefaultMgKgFields as Je, C_DefaultMlKgFields as Ye, C_Table_Column_Name as Ue } from "./constants/PediatricsCalculatorConstants/index.js";
|
|
4
4
|
import { u as Xe } from "./useClickOutside-BjJyGTec.js";
|
|
5
5
|
import { u as Ze } from "./useOutsideClick-C4Q0aGuf.js";
|
|
6
|
-
import { M as Fe } from "./index-
|
|
6
|
+
import { M as Fe } from "./index-D9tHKxGo.js";
|
|
7
7
|
const Oe = Ge(null), $e = () => {
|
|
8
8
|
const a = Ve(Oe);
|
|
9
9
|
if (!a) throw new Error("usePediatricsCalculatorTableContext must be used inside a MedicineTableProvider");
|
package/dist/{PediatricsCalculatorTable-Bfnfpscv.cjs → PediatricsCalculatorTable-C59lNMNS.cjs}
RENAMED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
"use strict";const e=require("./index-
|
|
1
|
+
"use strict";const e=require("./index-C8nmTIgQ.cjs"),a=require("react"),A=require("./constants/PediatricsCalculatorConstants/index.js"),Me=require("./useClickOutside-DsVG12Cs.cjs"),Se=require("./useOutsideClick-CicUjzPP.cjs"),_e=require("./index-fA2CtGkU.cjs"),we=a.createContext(null),Ee=()=>{const s=a.useContext(we);if(!s)throw new Error("usePediatricsCalculatorTableContext must be used inside a MedicineTableProvider");return s},Te=({effectiveEditMode:s,rowData:l,isSavedToLibrary:g,onSave:_,onCancel:m,onEdit:v,onCheckboxToggle:r})=>{const{variant:C,externallyTriggeredEditMode:w,setRowToDelete:y,openPopupForRow:k}=Ee();return C==="standard"?s?e.jsxRuntimeExports.jsxs("div",{className:"hfl-grid hfl-grid-cols-[1fr_1fr] hfl-border-1 hfl-border-Gray-200 hfl-rounded-lg ",children:[e.jsxRuntimeExports.jsx("button",{className:"hfl-px-3 hfl-py-1 hfl-text-Blue_gray-800 hfl-border-r-1 hover:hfl-bg-Primary-50",onClick:_,children:e.jsxRuntimeExports.jsx(e.bi,{variant:"Medium",type:"Text xs",className:"hfl-text-Blue_gray-800",children:"Save"})}),e.jsxRuntimeExports.jsx("button",{className:"hfl-px-3 hfl-py-2 hfl-text-Error-600 hover:hfl-bg-Error-50",onClick:m,children:e.jsxRuntimeExports.jsx(e.bi,{variant:"Medium",type:"Text xs",className:"",children:"Cancel"})})]}):e.jsxRuntimeExports.jsxs("div",{className:"hfl-grid hfl-grid-cols-[1fr_1fr_1fr] hfl-border-1 hfl-border-Gray-200 hfl-rounded-lg",children:[e.jsxRuntimeExports.jsx("button",{className:"hfl-px-3 hfl-py-1 hfl-text-Blue_gray-800 hover:hfl-bg-Primary-50",onClick:v,children:e.jsxRuntimeExports.jsx(e.bi,{variant:"Medium",type:"Text xs",className:"",children:"Edit"})}),e.jsxRuntimeExports.jsx("button",{className:"hfl-px-3 hfl-py-2 hfl-text-Blue_gray-800 hfl-border-x-1 hover:hfl-bg-Primary-50",onClick:()=>k?.(l),children:e.jsxRuntimeExports.jsx(e.bi,{variant:"Medium",type:"Text xs",className:"",children:"Copy"})}),e.jsxRuntimeExports.jsx("button",{className:"hx_delete hfl-px-3 hfl-py-2 hfl-text-Error-500 hover:hfl-bg-Error-50",onClick:()=>y?.(l.rowId)})]}):e.jsxRuntimeExports.jsx(e.Oi,{disabled:!w,text:"Save this to Pediatric Calculator Library ",id:l.rowId,size:"md",onClick:r,isMarked:g??!1,checkboxClasses:"hfl-mt-2",checkBoxInnerDivClasses:"hfl-text-Blue-600 hfl-bg-Blue-50"},l.rowId)};function De(s){const{options:l,selectedOption:g,onChangeHandler:_}=s;return e.jsxRuntimeExports.jsx("div",{className:"hfl-flex hfl-gap-2 hfl-h-full hfl-items-center hfl-px-4 hfl-justify-center hfl-py-1",children:l?.map(m=>e.jsxRuntimeExports.jsx("div",{className:"hfl-bg-White hfl-rounded-lg",children:e.jsxRuntimeExports.jsx(e.Ku,{onClick:()=>_&&_(m),hierarchy:g?.label===m.label?"Primary":"Secondary-Grey",size:"sm",textField:m.label,className:g?.label===m.label?"hfl-bg-Blue-600":""})},m.label))})}const Fe="data:image/svg+xml,%3csvg%20width='10'%20height='6'%20viewBox='0%200%2010%206'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cpath%20fill-rule='evenodd'%20clip-rule='evenodd'%20d='M0.480062%200.819173C0.650418%200.648817%200.92662%200.648817%201.09698%200.819173L4.71454%204.43674L8.3321%200.819173C8.50246%200.648817%208.77866%200.648817%208.94902%200.819173C9.11937%200.98953%209.11937%201.26573%208.94902%201.43609L5.023%205.36211C4.85264%205.53246%204.57644%205.53246%204.40608%205.36211L0.480062%201.43609C0.309706%201.26573%200.309706%200.98953%200.480062%200.819173Z'%20fill='%23667085'/%3e%3c/svg%3e";function T(s){const{label:l,labelClassName:g,hideDropdownIcon:_,showClearOption:m,isRequiredField:v,btnClassName:r,placeholder:C,options:w,selectedOption:y,onChangeHandler:k,inputValue:b,inputChangeHandler:L,onInputFocusOutEvent:B,inputClassName:i,isSearchable:p,inputType:$,showInput:M,inputSuffix:S,selectedLabel:U,suffixPadding:W,disableInputAutoSize:o,selectedOptions:j,isMulti:f,dropDownItemClickHandler:x,showToggle:q,toggleChangeHandler:D,selectedToggleOption:c,toggleOptionsList:n,border:N,height:E,disabled:I,fieldColor:H,errorMsg:t,showErrorMsg:d,placeholderStyle:u,onInputKeyDown:F,showEmptyDropdownPopup:z=!0,isDropdownFixed:G=!1,dropdownClassName:ie="",wrapperClass:ae="",maxInputLength:re,alternateListBgStyle:ee,showLabelTooltip:R=!1,labelToolTipContent:K="",inputContainerClasses:X="",onInputFocus:Q}=s,[Z,te]=a.useState(!1),[le,Re]=a.useState(null),oe=a.useRef(null),ce=a.useRef(null),pe=a.useRef(null),ue=a.useRef([]),Ce=a.useMemo(()=>w?.filter(h=>h?h.label.toLowerCase().includes((b??"").toLowerCase()):void 0),[b,w]),[ve,de]=a.useState(!1),Ne=()=>{te(!1),f&&L&&L(""),Re(null)},me=a.useCallback(h=>{h.stopPropagation(),I||te(O=>!O)},[I]),ge=(b?.length||0)+2+Number(W||0);Se.useOutsideClick(oe,Ne),a.useEffect(()=>{le!==null&&ue.current[le]&&ue.current[le].scrollIntoView({block:"nearest"})},[le]);const se=a.useCallback(()=>{if(G&&Z){const h=M?ce.current:pe.current,O=oe.current;if(h&&O){const J=h.getBoundingClientRect();O.style.position="fixed",O.style.top=`${window.scrollY?J.bottom+window.scrollY:J.bottom}px`,O.style.left=`${J.left}px`,O.style.width=`${J.width}px`}}},[G,Z,M]);a.useEffect(()=>{if(G)return Z?(se(),window.addEventListener("scroll",se,!0)):window.removeEventListener("scroll",se,!0),()=>{window.removeEventListener("scroll",se,!0)}},[G,se,Z]),Me.useClickOutside(oe,()=>{ve&&B&&B()});const je=h=>{if(f&&x){const O=j?.some(J=>J.value===h.value);x(!!O,h)}},Ie=a.useCallback(async h=>{h.stopPropagation(),Z||te(!0),Q&&await Q()},[Q,Z]);return e.jsxRuntimeExports.jsxs("div",{className:`hfl-relative hfl-inline-block hfl-text-left ${ae||""}`,children:[!!l&&e.jsxRuntimeExports.jsxs("div",{className:"hfl-text-Gray-700 hfl-mb-1 hfl-flex",children:[e.jsxRuntimeExports.jsx(e.bi,{type:"Text sm",variant:"Medium",className:g||"",children:`${l}`}),v&&e.jsxRuntimeExports.jsx("span",{className:"hfl-ml-1 hfl-text-Error-600",children:"*"}),R&&e.jsxRuntimeExports.jsx(e.Nu,{variant:"Right",text:K,theme:"dark",children:e.jsxRuntimeExports.jsx("i",{className:"hx_info-filled"})})]}),M?e.jsxRuntimeExports.jsxs(e.jsxRuntimeExports.Fragment,{children:[e.jsxRuntimeExports.jsxs("div",{className:`hfl-flex hfl-items-center hfl-shadow-xs hfl-px-2 ${X||""} ${N||"hfl-border-1"} hfl-rounded-lg hfl-overflow-x-auto ${t?"hfl-border-Error-300":"hfl-border-Gray-300"} ${E||"hfl-h-10"} ${I?"!hfl-bg-Gray-50 !hfl-pointer-events-none":H||"hfl-bg-White"} hover:hfl-border-Primary-300 hover:hfl-shadow-xs-primary`,onClick:I?()=>{}:me,children:[j?.map((h,O)=>e.jsxRuntimeExports.jsxs("div",{className:"hfl-flex hfl-items-center hfl-bg-Blue-100 hfl-mr-2 hfl-py-1 hfl-px-2 hfl-rounded-sm hfl-font-inter-0 hfl-text-nowrap",children:[e.jsxRuntimeExports.jsx("span",{className:"hfl-pointer-events-none",children:h.label}),e.jsxRuntimeExports.jsx("span",{onClick:J=>{J.stopPropagation(),je(h)},className:"hx_close hfl-text-Gray-500 hfl-my-0 hfl-text-[14px] hfl-ml-[1px] hfl-cursor-pointer"})]},`${h.label}-${O}`)),Object.keys(u||{}).length>0&&e.jsxRuntimeExports.jsx("style",{children:`
|
|
2
2
|
input.input-placeholder::placeholder {
|
|
3
3
|
font-family: ${u?.fontFamily};
|
|
4
4
|
font-weight: ${u?.fontWeight};
|