@vicaniddouglas/js_aide 1.15.4 → 1.16.0

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.
@@ -956,22 +956,23 @@ var g1=Object.defineProperty;var f1=(N,A,I)=>A in N?g1(N,A,{enumerable:!0,config
956
956
  <svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24">
957
957
  <path fill="none" stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="m5 7l5 5l-5 5m8 0h6" />
958
958
  </svg>
959
- `,OA={historyIcon:a5,replayIcon:P5,forwardIcon:c5,forwardIcon2:l5,shareIcon2:h5,shareIcon3:J5,sendIcon:d5,sendIcon2:u5,galleryIcon:o5,galleryIcon2:H5,galleryIcon3:C5,phoneLockIcon:LI,phoneSMSicon:RI,phoneSMSicon2:MI,checkMarkIcon:D5,checkMarkIcon1:s5,checkMarkIcon3:r5,bulbIcon:e5,infoIcon:t5,privacyIcon:Y5,privacyIcon2:S5,walletIcon:sO,walletIcon2:rO,crashIcon:T5,networkErrorIcon:W5,smsIcon:R5,smsIcon2:M5,smsIcon3:L5,logsIcon:G5,institutionIcon:B5,medicalLabIcon:K5,firstAidIcon:E5,shieldIcon:zO,libraryIcon:A5,chatBubbleIcon:XO,exclamationIcon:QO,bellIcon:jO,computerIcon:$O,savingsPotIcon:hO,CalendarIcon:U5,collectionIcon:N5,userGroupIcon:O5,folderIcon:I5,pencilEditIcon:VO,identificationIcon:yO,usersIcon:vO,trendingUpIcon:qO,clockIcon:kO,eyeIcon:_O,inboxInIcon:bO,lightBulbIcon:FO,newsPaperIcon:xO,addUserIcon:pO,squarePlusIcon:mO,circlePlusIcon:gO,wrenchIcon:fO,pencilIcon:wO,reportDirectoryIcon:ZO,shareIcon:uO,trashIcon:dO,accountSettingsIcon:oO,calculatorIcon:nO,unitedIcon:iO,complianceIcon:JO,savingsIcon:HO,auditTrailIcon:lO,filledAddIcon:cO,backIcon:PO,schemeIcon:aO,sharesIcon:CO,cupCakeIcon:DO,swimmingIcon:tO,runningcon:eO,meditationIcon:RO,writeIcon:GO,codeIcon:TO,codeIcon2:WO,movieIcon:YO,movieIcon2:SO,plantIcon:MO,wheelbarrelIcon:LO,whistleIcon:UO,artPalleteIcon:EO,shoppingTrollyIcon:KO,danceIcon:BO,bookIcon3:NO,trainIcon:yI,suitCaseIcon:xI,strongArmIcon:qI,fitnessIcon:$I,dumbellIcon:zI,cheffIcon:kI,cookingIcon:FI,cookingIcon2:bI,planeIcon:VI,transportation:_I,gamingIcon:AO,gamingIcon2:IO,gamingIcon3:OO,musicIcon:jI,musicIcon2:QI,musicIcon3:XI,christianIcon:wI,islamIcon:vI,loveChatIcon:mI,chatIcon:gI,chatIcon2:fI,heartBrokenIcon:ZI,ringsIcon:pI,cupIcon:JI,cupIcon2:dI,cupIcon3:uI,heartsIcon:PI,heartsIcon2:cI,heartsIcon3:lI,inLoveIcon:hI,tickIcon:aI,addIcon2:H2,uploadIcon2:J2,downloadIcon2:l2,pauseIcon:k1,pauseIcon2:q1,cameraIcon:_1,cameraIcon2:b1,heartIcon:F1,viewIcon:HI,hideIcon:CI,successCheckIcon:i5,errorCircleIcon:n5,lockIcon:DI,lockIcon2:sI,leftArrowIcon:z1,toggleOffIcon:oI,toggleOnIcon:nI,messagesIcon:i2,messagesIcon2:n2,menuIcon:K2,locationIcon:rI,locationIcon2:iI,emailIcon:TI,outgoingEmailIcon:WI,incomingEmailIcon:YI,unsentMailIcon:SI,attachIcon:tI,attachIcon2:eI,phoneIcon:NI,phoneIcon2:UI,telephoneIcon:EI,telephoneIcon2:KI,failedCallsIcon:BI,contactIcon:GI,branchIcon:II,branchIcon2:OI,brightnessIcon:X2,brightnessIcon2:AI,certificateIcon:g2,certificateIcon2:V2,closeIcon:N2,closeIcon2:U2,closeIcon3:E2,csvIcon:q2,csvIcon2:z2,csvIcon3:$2,deleteIcon:a2,downloadIcon:c2,dashboardIcon:e2,dashboardIcon2:D2,editIcon:C2,excelIcon:F2,excelIcon2:b2,graduateIcon:d2,homeIcon:S2,homeIcon2:t2,languageIcon:w2,logoutIcon:T2,logoutIcon2:W2,logoutIcon3:Y2,notificationsIcon:r2,pdfIcon:_2,pdfIcon2:k2,profileIcon:s2,refreshIcon:j2,refreshIcon2:Q2,saveIcon:P2,schoolIcon:p2,uploadIcon:h2,userIcon:R2,userIcon2:M2,workIcon:u2,workIcon2:Z2,bookIcon:m2,bookIcon2:x2,skillsIcon:f2,addIcon:o2,awardIcon:v2,awardIcon2:y2,settingsIcon:L2,settingsIcon2:G2,searchIcon:B2,rightArrowIcon:Q1,rightArrowIcon2:X1,rightArrowIcon3:A2,leftArrowIcon2:$1,leftArrowIcon3:j1,playIcon:I2,playIcon2:O2,promptIcon:Z5};var Y1={success:{color:"#22c55e",duration:2500,getIcon:()=>OA.successCheckIcon()},error:{color:"#ef4444",duration:4e3,getIcon:()=>OA.errorCircleIcon()},info:{color:"#7c3aed",duration:3e3,getIcon:()=>OA.notificationsIcon()},confirm:{color:"#64748b",duration:0,getIcon:()=>OA.notificationsIcon()},prompt:{color:"#64748b",duration:0,getIcon:()=>OA.promptIcon()}},KA=null;function TA(N,A,I={}){KA&&KA.close();let O=Y1[N]||Y1.info,U={duration:I.duration||O.duration,icon:I.icon||O.getIcon(),color:I.color||O.color,closable:I.closable!==!1,persistent:I.persistent===!0};return(N==="confirm"||N==="prompt")&&(U.closable=!1),new Promise(E=>{let B=null,R=document.createElement("div");R.className="custom-popup-overlay",R.setAttribute("role","presentation"),Object.assign(R.style,{position:"fixed",top:"0",left:"0",width:"100vw",height:"100vh",backgroundColor:"rgba(0, 0, 0, 0.4)",backdropFilter:"blur(4px)",zIndex:"20000",display:"flex",alignItems:"center",justifyContent:"center",animation:"popupFadeIn 0.3s ease-out",opacity:"1",transition:"opacity 0.3s ease-out"});let K=document.createElement("div");K.setAttribute("role","alertdialog"),K.setAttribute("aria-modal","true"),K.setAttribute("tabindex","-1"),Object.assign(K.style,{backgroundColor:"#fff",width:"90%",maxWidth:"340px",borderRadius:"15px",padding:"36px 24px 32px 24px",boxShadow:"0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04)",textAlign:"center",position:"relative",display:"flex",flexDirection:"column",alignItems:"center",gap:"16px",transform:"scale(1)",transition:"transform 0.2s cubic-bezier(0.175, 0.885, 0.32, 1.275)"});let M=N==="confirm"||N==="prompt";if(K.innerHTML=`
959
+ `,OA={historyIcon:a5,replayIcon:P5,forwardIcon:c5,forwardIcon2:l5,shareIcon2:h5,shareIcon3:J5,sendIcon:d5,sendIcon2:u5,galleryIcon:o5,galleryIcon2:H5,galleryIcon3:C5,phoneLockIcon:LI,phoneSMSicon:RI,phoneSMSicon2:MI,checkMarkIcon:D5,checkMarkIcon1:s5,checkMarkIcon3:r5,bulbIcon:e5,infoIcon:t5,privacyIcon:Y5,privacyIcon2:S5,walletIcon:sO,walletIcon2:rO,crashIcon:T5,networkErrorIcon:W5,smsIcon:R5,smsIcon2:M5,smsIcon3:L5,logsIcon:G5,institutionIcon:B5,medicalLabIcon:K5,firstAidIcon:E5,shieldIcon:zO,libraryIcon:A5,chatBubbleIcon:XO,exclamationIcon:QO,bellIcon:jO,computerIcon:$O,savingsPotIcon:hO,CalendarIcon:U5,collectionIcon:N5,userGroupIcon:O5,folderIcon:I5,pencilEditIcon:VO,identificationIcon:yO,usersIcon:vO,trendingUpIcon:qO,clockIcon:kO,eyeIcon:_O,inboxInIcon:bO,lightBulbIcon:FO,newsPaperIcon:xO,addUserIcon:pO,squarePlusIcon:mO,circlePlusIcon:gO,wrenchIcon:fO,pencilIcon:wO,reportDirectoryIcon:ZO,shareIcon:uO,trashIcon:dO,accountSettingsIcon:oO,calculatorIcon:nO,unitedIcon:iO,complianceIcon:JO,savingsIcon:HO,auditTrailIcon:lO,filledAddIcon:cO,backIcon:PO,schemeIcon:aO,sharesIcon:CO,cupCakeIcon:DO,swimmingIcon:tO,runningcon:eO,meditationIcon:RO,writeIcon:GO,codeIcon:TO,codeIcon2:WO,movieIcon:YO,movieIcon2:SO,plantIcon:MO,wheelbarrelIcon:LO,whistleIcon:UO,artPalleteIcon:EO,shoppingTrollyIcon:KO,danceIcon:BO,bookIcon3:NO,trainIcon:yI,suitCaseIcon:xI,strongArmIcon:qI,fitnessIcon:$I,dumbellIcon:zI,cheffIcon:kI,cookingIcon:FI,cookingIcon2:bI,planeIcon:VI,transportation:_I,gamingIcon:AO,gamingIcon2:IO,gamingIcon3:OO,musicIcon:jI,musicIcon2:QI,musicIcon3:XI,christianIcon:wI,islamIcon:vI,loveChatIcon:mI,chatIcon:gI,chatIcon2:fI,heartBrokenIcon:ZI,ringsIcon:pI,cupIcon:JI,cupIcon2:dI,cupIcon3:uI,heartsIcon:PI,heartsIcon2:cI,heartsIcon3:lI,inLoveIcon:hI,tickIcon:aI,addIcon2:H2,uploadIcon2:J2,downloadIcon2:l2,pauseIcon:k1,pauseIcon2:q1,cameraIcon:_1,cameraIcon2:b1,heartIcon:F1,viewIcon:HI,hideIcon:CI,successCheckIcon:i5,errorCircleIcon:n5,lockIcon:DI,lockIcon2:sI,leftArrowIcon:z1,toggleOffIcon:oI,toggleOnIcon:nI,messagesIcon:i2,messagesIcon2:n2,menuIcon:K2,locationIcon:rI,locationIcon2:iI,emailIcon:TI,outgoingEmailIcon:WI,incomingEmailIcon:YI,unsentMailIcon:SI,attachIcon:tI,attachIcon2:eI,phoneIcon:NI,phoneIcon2:UI,telephoneIcon:EI,telephoneIcon2:KI,failedCallsIcon:BI,contactIcon:GI,branchIcon:II,branchIcon2:OI,brightnessIcon:X2,brightnessIcon2:AI,certificateIcon:g2,certificateIcon2:V2,closeIcon:N2,closeIcon2:U2,closeIcon3:E2,csvIcon:q2,csvIcon2:z2,csvIcon3:$2,deleteIcon:a2,downloadIcon:c2,dashboardIcon:e2,dashboardIcon2:D2,editIcon:C2,excelIcon:F2,excelIcon2:b2,graduateIcon:d2,homeIcon:S2,homeIcon2:t2,languageIcon:w2,logoutIcon:T2,logoutIcon2:W2,logoutIcon3:Y2,notificationsIcon:r2,pdfIcon:_2,pdfIcon2:k2,profileIcon:s2,refreshIcon:j2,refreshIcon2:Q2,saveIcon:P2,schoolIcon:p2,uploadIcon:h2,userIcon:R2,userIcon2:M2,workIcon:u2,workIcon2:Z2,bookIcon:m2,bookIcon2:x2,skillsIcon:f2,addIcon:o2,awardIcon:v2,awardIcon2:y2,settingsIcon:L2,settingsIcon2:G2,searchIcon:B2,rightArrowIcon:Q1,rightArrowIcon2:X1,rightArrowIcon3:A2,leftArrowIcon2:$1,leftArrowIcon3:j1,playIcon:I2,playIcon2:O2,promptIcon:Z5};var Y1={success:{color:"#22c55e",duration:2500,getIcon:()=>OA.successCheckIcon()},error:{color:"#ef4444",duration:4e3,getIcon:()=>OA.errorCircleIcon()},info:{color:"#7c3aed",duration:3e3,getIcon:()=>OA.notificationsIcon()},confirm:{color:"#64748b",duration:0,getIcon:()=>OA.notificationsIcon()},prompt:{color:"#64748b",duration:0,getIcon:()=>OA.promptIcon()}},KA=null;function TA(N,A,I={}){KA&&KA.close();let O=Y1[N]||Y1.info,U={duration:I.duration||O.duration,icon:I.icon||O.getIcon(),showIcon:I.showIcon!==!1,color:I.color||O.color,backgroundColor:I.backgroundColor||"#fff",width:I.width||"90%",maxWidth:I.maxWidth||"340px",textColor:I.textColor||"#1e293b",iconColor:I.iconColor||I.color||O.color,iconBgColor:I.iconBgColor||(I.color||O.color)+"15",confirmBgColor:I.confirmBgColor||I.color||O.color,confirmTextColor:I.confirmTextColor||"white",cancelBgColor:I.cancelBgColor||"#f1f5f9",cancelTextColor:I.cancelTextColor||"#475569",closable:I.closable!==!1,persistent:I.persistent===!0};return(N==="confirm"||N==="prompt")&&(U.closable=!1),new Promise(E=>{let B=null,R=document.createElement("div");R.className="custom-popup-overlay",R.setAttribute("role","presentation"),Object.assign(R.style,{position:"fixed",top:"0",left:"0",width:"100vw",height:"100vh",backgroundColor:"rgba(0, 0, 0, 0.4)",backdropFilter:"blur(4px)",zIndex:"20000",display:"flex",alignItems:"center",justifyContent:"center",animation:"popupFadeIn 0.3s ease-out",opacity:"1",transition:"opacity 0.3s ease-out"});let K=document.createElement("div");K.setAttribute("role","alertdialog"),K.setAttribute("aria-modal","true"),K.setAttribute("tabindex","-1"),Object.assign(K.style,{backgroundColor:U.backgroundColor,width:U.width,maxWidth:U.maxWidth,borderRadius:"15px",padding:"36px 24px 32px 24px",boxShadow:"0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04)",textAlign:"center",position:"relative",display:"flex",flexDirection:"column",alignItems:"center",gap:"16px",transform:"scale(1)",transition:"transform 0.2s cubic-bezier(0.175, 0.885, 0.32, 1.275)"});let M=N==="confirm"||N==="prompt";if(K.innerHTML=`
960
960
  ${U.closable?`
961
961
  <button id="modal-close-btn" aria-label="Close modal" style="position:absolute;top:12px;right:12px;background:none;border:none;color:#94a3b8;cursor:pointer;padding:4px;">
962
962
  <svg width="24" height="24" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2.5" stroke-linecap="round" stroke-linejoin="round"><line x1="18" y1="6" x2="6" y2="18"></line><line x1="6" y1="6" x2="18" y2="18"></line></svg>
963
963
  </button>`:""}
964
964
 
965
- <div class="popup-icon-container" style="color:${U.color}; background-color:${U.color}15; padding:${M?"16px":"24px"}; border-radius:50%; display:flex; align-items:center; justify-content:center; margin-bottom:${M?"0":"4px"};">
965
+ ${U.showIcon?`
966
+ <div class="popup-icon-container" style="color:${U.iconColor}; background-color:${U.iconBgColor}; padding:${M?"16px":"24px"}; border-radius:50%; display:flex; align-items:center; justify-content:center; margin-bottom:${M?"0":"4px"};">
966
967
  <div style="width:${M?"28px":"40px"}; height:${M?"28px":"40px"}; display:flex; align-items:center; justify-content:center;">
967
968
  ${U.icon}
968
969
  </div>
969
- </div>
970
+ </div>`:""}
970
971
 
971
- <div style="font-family:'Inter', system-ui, -apple-system, sans-serif; font-size:16px; line-height:1.5; color:#1e293b; font-weight:${M?"500":"600"};">
972
+ <div style="font-family:'Inter', system-ui, -apple-system, sans-serif; font-size:16px; line-height:1.5; color:${U.textColor}; font-weight:${M?"500":"600"};">
972
973
  ${A}
973
974
  </div>
974
- `,N==="prompt"){B=document.createElement("input");let S=I.inputType||"text";B.type=S==="password"?"password":"text",B.placeholder=I.placeholder||"Enter value...",B.value=I.defaultValue||"",Object.assign(B.style,{width:"100%",padding:"12px 16px",borderRadius:"8px",border:"2px solid #e2e8f0",fontSize:"15px",fontFamily:"inherit",outline:"none",transition:"border-color 0.2s",textAlign:S==="currency"?"right":"left"}),B.onfocus=()=>{B.style.borderColor=U.color},B.onblur=()=>{B.style.borderColor="#e2e8f0"},(S==="currency"||S==="number")&&B.addEventListener("input",Y=>{let e=Y.target.value.replace(/[^0-9.]/g,"");if(S==="currency"){let t=e.split(".");t[0]=t[0].replace(/\B(?=(\d{3})+(?!\d))/g,","),Y.target.value=t.join(".")}else Y.target.value=e.split(".")[0]}),K.appendChild(B)}if(R.appendChild(K),document.body.appendChild(R),B?setTimeout(()=>B.focus(),50):K.focus(),N==="confirm"||N==="prompt"){let S=document.createElement("div");Object.assign(S.style,{display:"flex",gap:"12px",marginTop:"8px",width:"100%"});let Y=document.createElement("button");Y.textContent=(N==="prompt"?I.submitText:I.confirmText)||(N==="prompt"?"Submit":"Confirm"),Object.assign(Y.style,{flex:"1",padding:"12px",backgroundColor:U.color,color:"white",border:"none",borderRadius:"8px",cursor:"pointer",fontWeight:"600",fontSize:"14px"});let e=document.createElement("button");e.textContent=I.cancelText||"Cancel",Object.assign(e.style,{flex:"1",padding:"12px",backgroundColor:"#f1f5f9",color:"#475569",border:"none",borderRadius:"8px",cursor:"pointer",fontWeight:"600",fontSize:"14px"}),Y.onclick=()=>{let t=B?B.value:!0;W(),E(t)},e.onclick=()=>{W(),E(null)},B&&(B.onkeydown=t=>{t.key==="Enter"&&Y.click()}),S.appendChild(e),S.appendChild(Y),K.appendChild(S)}let L=!1,G=null,T=S=>{S.key==="Escape"&&U.closable&&(W(),(N==="confirm"||N==="prompt")&&E(N==="confirm"?!1:null))},W=()=>{L||(L=!0,G&&clearTimeout(G),window.removeEventListener("keydown",T),KA=null,R.style.opacity="0",K.style.transform="scale(0.9)",setTimeout(()=>{R.remove(),N!=="confirm"&&N!=="prompt"&&E()},300))};if(KA={close:W},U.closable){window.addEventListener("keydown",T);let S=K.querySelector("#modal-close-btn");S&&(S.onclick=()=>{W(),(N==="confirm"||N==="prompt")&&E(N==="confirm"?!1:null)}),R.onclick=Y=>{Y.target===R&&(W(),(N==="confirm"||N==="prompt")&&E(N==="confirm"?!1:null))}}!U.persistent&&N!=="confirm"&&N!=="prompt"&&(G=setTimeout(W,U.duration))})}if(!document.getElementById("custom-modal-styles")){let N=document.createElement("style");N.id="custom-modal-styles",N.innerHTML=`
975
+ `,N==="prompt"){B=document.createElement("input");let S=I.inputType||"text";B.type=S==="password"?"password":"text",B.placeholder=I.placeholder||"Enter value...",B.value=I.defaultValue||"",Object.assign(B.style,{width:"100%",padding:"12px 16px",borderRadius:"8px",border:"2px solid #e2e8f0",fontSize:"15px",fontFamily:"inherit",outline:"none",transition:"border-color 0.2s",textAlign:S==="currency"?"right":"left"}),B.onfocus=()=>{B.style.borderColor=U.color},B.onblur=()=>{B.style.borderColor="#e2e8f0"},(S==="currency"||S==="number")&&B.addEventListener("input",Y=>{let e=Y.target.value.replace(/[^0-9.]/g,"");if(S==="currency"){let t=e.split(".");t[0]=t[0].replace(/\B(?=(\d{3})+(?!\d))/g,","),Y.target.value=t.join(".")}else Y.target.value=e.split(".")[0]}),K.appendChild(B)}if(R.appendChild(K),document.body.appendChild(R),B?setTimeout(()=>B.focus(),50):K.focus(),N==="confirm"||N==="prompt"){let S=document.createElement("div");Object.assign(S.style,{display:"flex",gap:"12px",marginTop:"8px",width:"100%"});let Y=document.createElement("button");Y.textContent=(N==="prompt"?I.submitText:I.confirmText)||(N==="prompt"?"Submit":"Confirm"),Object.assign(Y.style,{flex:"1",padding:"12px",backgroundColor:U.confirmBgColor,color:U.confirmTextColor,border:"none",borderRadius:"8px",cursor:"pointer",fontWeight:"600",fontSize:"14px"});let e=document.createElement("button");e.textContent=I.cancelText||"Cancel",Object.assign(e.style,{flex:"1",padding:"12px",backgroundColor:U.cancelBgColor,color:U.cancelTextColor,border:"none",borderRadius:"8px",cursor:"pointer",fontWeight:"600",fontSize:"14px"}),Y.onclick=()=>{let t=B?B.value:!0;W(),E(t)},e.onclick=()=>{W(),E(null)},B&&(B.onkeydown=t=>{t.key==="Enter"&&Y.click()}),S.appendChild(e),S.appendChild(Y),K.appendChild(S)}let L=!1,G=null,T=S=>{S.key==="Escape"&&U.closable&&(W(),(N==="confirm"||N==="prompt")&&E(N==="confirm"?!1:null))},W=()=>{L||(L=!0,G&&clearTimeout(G),window.removeEventListener("keydown",T),KA=null,R.style.opacity="0",K.style.transform="scale(0.9)",setTimeout(()=>{R.remove(),N!=="confirm"&&N!=="prompt"&&E()},300))};if(KA={close:W},U.closable){window.addEventListener("keydown",T);let S=K.querySelector("#modal-close-btn");S&&(S.onclick=()=>{W(),(N==="confirm"||N==="prompt")&&E(N==="confirm"?!1:null)}),R.onclick=Y=>{Y.target===R&&(W(),(N==="confirm"||N==="prompt")&&E(N==="confirm"?!1:null))}}!U.persistent&&N!=="confirm"&&N!=="prompt"&&(G=setTimeout(W,U.duration))})}if(!document.getElementById("custom-modal-styles")){let N=document.createElement("style");N.id="custom-modal-styles",N.innerHTML=`
975
976
  @keyframes popupFadeIn { from { opacity: 0; } to { opacity: 1; } }
976
977
  #modal-close-btn:hover { color: #475569 !important; }
977
978
  .custom-popup-overlay:focus-within { outline: none; }