master-components-react 3.5.33 → 3.5.34

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.
@@ -325,7 +325,7 @@ Valid keys: `+JSON.stringify(Object.keys(J),null," "));var ne=ge(G,ce,S,R,P+"."
325
325
  ${["delete"].includes(p.type)?Xa.staticColor:""}
326
326
  ${Xa.actionIcon}
327
327
  ${f(p)&&f(p)!=="no_icon"?Xa.defaultIcons:""}
328
- `,children:f(p)&&f(p)!=="no_icon"?f(p):p==null?void 0:p.icon()}),T.jsx("div",{className:Xa.actionLabel,children:T.jsx("span",{style:{...p==null?void 0:p.style},children:p==null?void 0:p.label})})]},m))})]})},Ble="DeleteAll-module__deleteAllWrapper",Lle="DeleteAll-module__iconContainer",Ple="DeleteAll-module__deleteItemsCountLabel",Fle="DeleteAll-module__dark",Mle="DeleteAll-module__datagridDeleteAllAction",Fl={deleteAllWrapper:Ble,iconContainer:Lle,deleteItemsCountLabel:Ple,dark:Fle,datagridDeleteAllAction:Mle},Vle=le.forwardRef((e,t)=>{const[i,n]=le.useState(0),r=o=>{n(o)};le.useImperativeHandle(t,()=>({setValue:r}));const a=()=>{e.onDeleteAll&&typeof e.onDeleteAll=="function"&&e.onDeleteAll()};return T.jsxs("div",{ref:t,className:`${(e==null?void 0:e.theme)==="dark"?Fl.dark:""} ${Fl.datagridDeleteAllAction} ${Fl.deleteAllWrapper}`,children:[T.jsx("div",{className:Fl.iconContainer,onClick:a,children:T.jsx(Xk,{})}),T.jsx("div",{className:Fl.deleteItemsCountLabel,children:T.jsxs("span",{children:["Delete ",i," Checked Item"]})})]})}),Nle=({data:e,customColumns:t,summary:i,keyExpr:n,theme:r,height:a,focusedRowEnabled:o=!0,rowAlternationEnabled:s,columnAutoWidth:l=!0,withCustomStore:u,withGrouping:d,groupDefaultCollapsed:c,storeKey:h,loadFunction:f,updateFunction:p,insertFunction:m,removeFunction:g,withColumnConfigure:y,withDeleteAll:b,withMasterDetail:A,detailTemplate:B,editingOptions:D,scrollMode:K,pagerOptions:H,selection:W,filterOptions:U,defaultPageIndex:j,searchPanel:Q,onEvent:$,onPageChange:X,selectionChanged:x,focusedRowChanging:z,focusedRowChanged:ie,onRowClick:te,onWheelClick:fe,showPagination:de=!0,refresh:J,diselectAll:N,customActions:C,onColumnConfigure:I,onDeleteAll:S,onDelete:R,onEdit:P,withCustomActions:G,multiExpand:V,onFilterValueChange:ee,onRowExpand:ce,onRowCollaps:ge,onOptionChanged:ne,onRowPrepared:Se,onFocusedCellChanged:w,ShowLoader:re=!0,noDataText:oe,onLoading:F,hideActions:L,allowColumnResizing:Z=!0,disableOverflow:ve,onActionExpand:me})=>{const[ue,we]=le.useState(!1),ke=le.useRef(t),Ae=le.useRef(null),[Ne,ut]=le.useState(""),et=le.useRef({Refresh:()=>Ae.current.instance.getDataSource().reload(),SelectedRowKeys:()=>Ae.current.instance.getSelectedRowKeys(),DeselectAll:()=>{var q;return(q=Ae.current)==null?void 0:q.instance.deselectAll()}}),[Ze,li]=le.useState([{label:"Edit",type:"edit",event:(q,Te)=>Ko(q,Te)},{label:"Delete",type:"delete",event:(q,Te)=>Ma(q,Te)}]),jt=le.useRef(null),Ht=q=>{Ze&&Ze.length&&Bi()},_t=()=>{Ze&&Ze.length&&Bi()},Bi=()=>{document.querySelectorAll(".datagrid_action_data_controller > ul").forEach(Te=>{Te.style.display="none",Te.style.pointerEvents="none"})},Li=new Ws({key:h??"id",load:f,update:p,insert:m,remove:g,onLoading:F}),wt=(q,Te)=>{if($&&typeof $=="function"&&$(Te,q),Te==="onContentReady"){const Y=document.querySelector(".dx-widget"),Ee=document.querySelector("#pagination-container"),Pe=!Y||Y.classList.contains("dx-hidden");Ee.style.display=Pe?"block":"none"}},je=q=>{o&&(W==null?void 0:W.mode)==="multiple"&&b&&jt.current.setValue(q.selectedRowKeys.length),x&&typeof x=="function"&&x(q)},ct=q=>{z&&typeof z=="function"&&z(q)},mi=q=>{ie&&typeof ie=="function"&&ie(q)},Pi=q=>{w&&typeof w=="function"&&w(q)},We=q=>{te&&typeof te=="function"&&te(q.data)},ht=(q,Te)=>{q.button===1&&(fe&&typeof fe=="function"&&fe(Te.data),q.preventDefault())},Zt=q=>{q.rowElement&&q.data&&q.rowElement.addEventListener("mousedown",Te=>ht(Te,q)),Se&&typeof Se=="function"&&Se(q)},mt=()=>{S&&typeof S=="function"&&S(et.current.SelectedRowKeys())},Wt=q=>{ne&&typeof ne=="function"&&ne(q),q.fullName==="paging.pageIndex"&&X&&typeof X=="function"&&X(q.value+1)},yr=q=>{let Y=document.querySelector(`#datagrid_action_data_id_${q[n]}`),Ee=document.querySelectorAll(".datagrid_action_data_controller > ul"),Pe=Y.querySelector("ul");const Je=document.querySelectorAll(".dx-datagrid-rowsview .dx-row > td");Je&&Je.forEach(st=>{st.querySelector("ul")?st.style.overflow="unset":st.style.overflow="hidden"});const It=Y.getBoundingClientRect(),Ft=document.querySelector(".gridWrapper").getBoundingClientRect();let ft={display:"block",position:"absolute",pointerEvents:"all",top:"20px",left:"-70px"};It.bottom>Ft.bottom-150&&(ft.top="unset",ft.bottom="100%",ft.left="-100px"),Ee.forEach(st=>{st.style.display="none",st.style.pointerEvents="none"}),Object.assign(Pe.style,ft)},xr=q=>{ke.current=q,we(Te=>!Te),I&&typeof I=="function"&&I(ke.current)},zo=q=>{V||q.component.collapseAll(-1),ce&&typeof ce=="function"&&ce(q)},Go=q=>{ge&&typeof ge=="function"&&ge(q)},Uo=q=>{q.parentType==="filterRow"&&(q.editorElement.onchange=Te=>{const Y={columnKey:q.dataField,columnName:q.caption,filterValue:Te.target.value};ee&&typeof ee=="function"&&ee(Y)})},Ma=(q,Te)=>{R&&typeof R=="function"&&R(Te)},Ko=(q,Te)=>{P&&typeof P=="function"&&P(Te)};le.useEffect(()=>{C&&C.length&&li(q=>{const Te=q;return C.forEach(Y=>{Te.some(Ee=>Ee.type===Y.type)||Te.push(Y)}),Te})},[C]),le.useEffect(()=>{J&&(et.current.Refresh(),console.info("DataSource Refresh....."))},[J]),le.useEffect(()=>{N&&et.current.DeselectAll()},[N]),le.useEffect(()=>{if(Array.isArray(ve)&&ve.length>0){const q=()=>{ve.forEach(Ee=>{document.querySelectorAll(`.dx-datagrid-rowsview .dx-row td:nth-child(${Ee})`).forEach(Je=>{Je.style.overflow="unset"})})};q();const Te=new MutationObserver(()=>{q()}),Y=document.querySelector(".dx-datagrid-rowsview");return Y&&Te.observe(Y,{childList:!0,subtree:!0}),()=>Te.disconnect()}},[ve]);const il=()=>{const q=Ae.current.instance,Te=q.pageIndex();Te>0&&q.pageIndex(Te-1)},Va=()=>{const q=Ae.current.instance,Te=q.pageIndex(),Y=q.pageCount();Te<Y-1&&q.pageIndex(Te+1)};return le.useEffect(()=>{ke.current=t,we(q=>!q)},[t]),le.useEffect(()=>(document.addEventListener("click",Ht),document.addEventListener("wheel",_t),()=>{document.removeEventListener("click",Ht),document.removeEventListener("wheel",_t)}),[]),le.useEffect(()=>{const q=document.querySelector(".dx-widget"),Te=document.querySelector("#pagination-container"),Y=!q||q.classList.contains("dx-hidden");Te.style.display=Y?"none":"block"},[e,Li,J]),T.jsxs(T.Fragment,{children:[T.jsx("div",{className:r==="dark"?"dark":"","data-grid-confirm-delete":!0,style:{display:"none"}}),T.jsxs("div",{style:{height:"100%",position:"relative"},className:`gridWrapper __dx_DataGrid_Component__ light ${r&&!["dark","light"].includes(r)?"light":r}`,children:[(y||b&&(W==null?void 0:W.mode)==="multiple")&&T.jsxs("div",{className:"__dx_DataGrid_Toolbar",children:[T.jsx("div",{className:"__dx_DataGrid_Toolbar_Leftside",children:b&&(W==null?void 0:W.mode)==="multiple"&&T.jsx(Vle,{theme:r,ref:jt,onDeleteAll:mt})}),T.jsx("div",{className:"__dx_DataGrid_Toolbar_Righttside",children:y&&T.jsx("div",{className:"column_configure_wrapper",children:T.jsx(Ele,{theme:r,items:ke.current.sort((q,Te)=>q.orderIndex-Te.orderIndex),change:q=>xr(q)})})})]}),T.jsxs("div",{id:"pagination-container",children:[T.jsx("div",{className:"custom-pagination-controls",style:{position:"absolute",bottom:"18px",right:"24px",zIndex:"100"},children:T.jsxs("button",{className:"custom-pagination-button",onClick:Va,size:"sm",style:{backgroundColor:"transparent",border:"1px solid #D5D7DA",borderRadius:"8px",height:"32px",padding:"16px 12px",color:"#414651",fontFamily:"Inter-SemiBold",fontSize:"14px",cursor:"pointer",display:"flex",alignItems:"center",gap:"4px"},children:["Next"," ",T.jsx("svg",{width:"20",height:"21",viewBox:"0 0 20 21",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:T.jsx("path",{d:"M4.1665 10.5001H15.8332M15.8332 10.5001L9.99984 4.66675M15.8332 10.5001L9.99984 16.3334",stroke:"#414651",strokeWidth:"1.66667",strokeLinecap:"round",strokeLinejoin:"round"})})]})}),T.jsx("div",{className:"custom-pagination-controls",style:{position:"absolute",bottom:"18px",left:"24px",zIndex:"100"},children:T.jsxs("button",{className:"custom-pagination-button",onClick:il,size:"sm",style:{backgroundColor:"transparent",border:"1px solid #D5D7DA",borderRadius:"8px",height:"32px",padding:"16px 12px",color:"#414651",fontSize:"14px",cursor:"pointer",display:"flex",alignItems:"center",gap:"4px",fontFamily:"Inter-SemiBold"},children:[T.jsx("svg",{width:"20",height:"21",viewBox:"0 0 20 21",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:T.jsx("path",{d:"M15.8334 10.5001H4.16675M4.16675 10.5001L10.0001 16.3334M4.16675 10.5001L10.0001 4.66675",stroke:"#414651",strokeWidth:"1.66667",strokeLinecap:"round",strokeLinejoin:"round"})})," ","Previous"]})})]}),T.jsxs(Vk,{height:a||"100%",ref:Ae,onRowPrepared:Zt,onFocusedCellChanged:Pi,dataSource:u?Li:e,remoteOperations:!0,keyExpr:n??"id",allowColumnReordering:!1,allowColumnResizing:Z,columnAutoWidth:l,noDataText:oe??"No Data",showColumnLines:!1,showRowLines:!0,rowAlternationEnabled:s,showBorders:!1,hoverStateEnabled:!0,onEditorPreparing:Uo,onEditingStart:q=>wt(q,"onEditingStart"),onInitNewRow:q=>wt(q,"onInitNewRow"),onRowInserting:q=>wt(q,"onRowInserting"),onRowInserted:q=>wt(q,"onRowInserted"),onRowUpdating:q=>wt(q,"onRowUpdating"),onRowUpdated:q=>wt(q,"onRowUpdated"),onRowRemoving:q=>wt(q,"onRowRemoving"),onRowRemoved:q=>wt(q,"onRowRemoved"),onSaving:q=>wt(q,"onSaving"),onSaved:q=>wt(q,"onSaved"),onEditCanceling:q=>wt(q,"onEditCanceling"),onEditCanceled:q=>wt(q,"onEditCanceled"),onContentReady:q=>wt(q,"onContentReady"),onOptionChanged:q=>Wt(q),focusedRowEnabled:o,autoNavigateToFocusedRow:!1,onFocusedRowChanging:ct,onFocusedRowChanged:mi,onRowClick:We,onRowExpanding:zo,onRowCollapsed:Go,onSelectionChanged:je,children:[d&&T.jsx(Hk,{autoExpandAll:c}),T.jsx(Yk,{mode:(W==null?void 0:W.mode)??"single",selectAllMode:(W==null?void 0:W.selectAllMode)??["allPages","page"][0],showCheckBoxesMode:"always"}),D&&T.jsx(Nk,{mode:(D==null?void 0:D.mode)??"row",allowUpdating:(D==null?void 0:D.allowUpdating)??!1,allowDeleting:(D==null?void 0:D.allowDeleting)??!1,allowAdding:!1}),T.jsx($k,{visible:(U==null?void 0:U.filterRow)??!1,applyFilter:"auto"}),T.jsx(qk,{visible:(Q==null?void 0:Q.visible)??!1,width:(Q==null?void 0:Q.width)??256,placeholder:(Q==null?void 0:Q.placeholder)??"Search..."}),T.jsx(Wk,{allowSearch:!0,visible:(U==null?void 0:U.headerFilter)??!1}),ke&&ke.current.map((q,Te)=>q.group?T.jsx(Kc,{groupIndex:0,dataField:q.columnKey},Te):T.jsx(Kc,{dataField:q.columnKey,caption:q.columnName,alignment:q.alignment?q.alignment:q.dataType==="number"?"right":"left",width:q.width,visible:q.visible,dataType:q.dataType,format:q.format==="date"?"M/d/yyyy, HH:mm":q.dataType==="number"&&q.fixedNumber?{type:"fixedPoint",precision:2}:q.format,fixed:q.fixed,cellRender:q.template,selectedFilterOperation:q.defaultFilterOperation,allowFiltering:q.allowFiltering,allowHeaderFiltering:q.allowHeaderFiltering,allowSorting:q.allowSorting,allowEditing:q.allowEditing,visibleIndex:q.orderIndex,defaultSortOrder:q.sortOrderType},Te)),i&&i.length&&!u&&T.jsx(Nm,{children:i&&i.map((q,Te)=>T.jsx($m,{column:q.column,summaryType:"custom",customizeText:q.total},Te))}),i&&i.length&&u&&T.jsx(Nm,{children:i.map((q,Te)=>T.jsx($m,{column:q.column,summaryType:q.summaryType,displayFormat:q.displayFormat}))}),!!G&&Ze&&Ze.length&&T.jsx(Kc,{dataField:null,caption:"Actions",alignment:"left",width:100,fixed:!1,fixedPosition:"right",allowFiltering:!1,allowSorting:!1,cellRender:q=>{if(!L||L.length===0||L&&L.length>0&&!L.includes(q.data[n]))return T.jsx(kle,{theme:r,rowData:q.data,rowID:q.data[n],actions:Ze.filter(Te=>Te.disabledForKeys&&Te.disabledForKeys.length?!Te.disabledForKeys.includes(q.data[n]):Te),hiddenActionTypes:[R?"":"delete",P?"":"edit"],onExpand:Te=>{yr(q.data),me&&typeof me=="function"&&me(q.data)}})}}),A&&T.jsx(Gk,{enabled:!0,component:B}),T.jsx(zk,{enabled:re}),T.jsx(jk,{useNative:!0,mode:K??"none"}),T.jsx(Kk,{defaultPageIndex:j?j-1:null,defaultPageSize:H==null?void 0:H.defaultPageSize}),T.jsx(Uk,{visible:H==null?void 0:H.visible,allowedPageSizes:H==null?void 0:H.allowedPageSizes,showPageSizeSelector:H==null?void 0:H.showPageSizeSelector,showInfo:H==null?void 0:H.showInfo,showNavigationButtons:H==null?void 0:H.showNavigationButtons})]})]})]})},$le="Tabs-module__tabContainer",Hle="Tabs-module__vertical",Wle="Tabs-module__underline",zle="Tabs-module__singleTab",Gle="Tabs-module__active",Ule="Tabs-module__button",Kle="Tabs-module__buttonBorder",jle="Tabs-module__buttonMinimal",qle="Tabs-module__dark",Yle="Tabs-module__underLine",gs={tabContainer:$le,vertical:Hle,underline:Wle,singleTab:zle,active:Gle,button:Ule,buttonBorder:Kle,buttonMinimal:jle,dark:qle,underLine:Yle},Xle=({tabsData:e,type:t="underline",vertical:i=!1,onItemClick:n,tabContainerStyle:r,singleTabStyle:a,theme:o})=>{const[s,l]=le.useState(!1),u=d=>{d.active=!0,e.forEach(c=>{c.id===d.id?c.active=!0:c.active=!1}),n&&typeof n=="function"&&n(d),l(c=>!c)};return T.jsx("div",{style:r??{},className:`${o==="dark"?gs.dark:""} ${gs.tabContainer} ${gs[t]} ${i?gs.vertical:""}`,children:e.map(d=>T.jsx("p",{style:a??{},className:`${gs.singleTab} ${d.active?gs.active:""}`,onClick:()=>u(d),children:d.label?typeof d.label=="function"?d.label():d.label:""},d.id))})},Zle="FileBlock-module__fileBlockWrapper",Jle="FileBlock-module__fileName",Qle="FileBlock-module__texts",eue="FileBlock-module__deleteFile",tue="FileBlock-module__dark",Cs={fileBlockWrapper:Zle,fileName:Jle,texts:Qle,deleteFile:eue,dark:tue},iue=()=>T.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",width:"16",height:"20",viewBox:"0 0 16 20",fill:"none",children:T.jsx("path",{d:"M9.66665 1.89118V5.33329C9.66665 5.8 9.66665 6.03336 9.75747 6.21162C9.83737 6.36842 9.96485 6.4959 10.1217 6.5758C10.2999 6.66663 10.5333 6.66663 11 6.66663H14.4421M14.6666 8.32348V14.3333C14.6666 15.7334 14.6666 16.4335 14.3942 16.9683C14.1545 17.4387 13.772 17.8211 13.3016 18.0608C12.7668 18.3333 12.0668 18.3333 10.6666 18.3333H5.33331C3.93318 18.3333 3.23312 18.3333 2.69834 18.0608C2.22793 17.8211 1.84548 17.4387 1.6058 16.9683C1.33331 16.4335 1.33331 15.7334 1.33331 14.3333V5.66663C1.33331 4.26649 1.33331 3.56643 1.6058 3.03165C1.84548 2.56124 2.22793 2.17879 2.69834 1.93911C3.23312 1.66663 3.93318 1.66663 5.33331 1.66663H8.00979C8.62127 1.66663 8.92701 1.66663 9.21473 1.7357C9.46982 1.79694 9.71368 1.89795 9.93736 2.03503C10.1897 2.18963 10.4058 2.40582 10.8382 2.8382L13.4951 5.49505C13.9275 5.92743 14.1436 6.14362 14.2982 6.39591C14.4353 6.61959 14.5363 6.86346 14.5976 7.11855C14.6666 7.40627 14.6666 7.712 14.6666 8.32348Z",stroke:"#A4A7AE",strokeWidth:"1.66667",strokeLinecap:"round",strokeLinejoin:"round"})}),nue=({theme:e,file:t,onDelete:i,fileBlockWrapperStyle:n,fileNameStyle:r,textsStyle:a,nameStyle:o,sizeStyle:s,clearIcon:l,fileIcon:u})=>{const d=()=>{i&&typeof i=="function"&&i(t)};return T.jsx("div",{className:`${e==="dark"?Cs.dark:""} ${Cs.fileBlockWrapper}`,style:n??{},children:T.jsxs("div",{className:Cs.fileName,style:r??{},children:[T.jsx("div",{style:{display:"flex",alignItems:"center"},children:u??T.jsx(iue,{})}),T.jsxs("div",{className:Cs.texts,style:a??{},children:[T.jsx("span",{title:t&&(t!=null&&t.fileName)?t.fileName:"-",style:o??{},children:t&&(t!=null&&t.fileName)?t.fileName:"-"}),T.jsx("span",{style:s??{},className:Cs.size,children:t&&(t!=null&&t.unitSize)?t==null?void 0:t.unitSize:""})]}),T.jsx("div",{className:Cs.deleteFile,onClick:d,children:l??T.jsx(zm,{width:16,color:"#A4A7AE"})})]})})},rue="FileUploader-module__fileUploaderWrapper",aue="FileUploader-module__fileUploaderContent",oue="FileUploader-module__draganddrop",sue="FileUploader-module__uploadSvg",lue="FileUploader-module__labels",uue="FileUploader-module__title",due="FileUploader-module__subTitle",cue="FileUploader-module__uploadAction",hue="FileUploader-module__dark",Dr={fileUploaderWrapper:rue,fileUploaderContent:aue,draganddrop:oue,uploadSvg:sue,labels:lue,title:uue,subTitle:due,uploadAction:cue,dark:hue},fue=e=>T.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",width:"21",height:"20",viewBox:"0 0 21 20",fill:"none",children:T.jsx("path",{d:"M7.16675 13.3333L10.5001 10M10.5001 10L13.8334 13.3333M10.5001 10V17.5M17.1667 13.9524C18.1847 13.1117 18.8334 11.8399 18.8334 10.4167C18.8334 7.88536 16.7814 5.83333 14.2501 5.83333C14.068 5.83333 13.8976 5.73833 13.8052 5.58145C12.7185 3.73736 10.7121 2.5 8.41675 2.5C4.96497 2.5 2.16675 5.29822 2.16675 8.75C2.16675 10.4718 2.86295 12.0309 3.98921 13.1613",stroke:"#A4A7AE",strokeWidth:"1.66667",strokeLinecap:"round",strokeLinejoin:"round"})}),pue=({multiple:e=!0,onChange:t,maxSize:i,withFileValidation:n,acceptedFileFormats:r,title:a,subTitle:o,withResults:s=!0,onFormatError:l,onMaxSizeError:u,withIcon:d=!0,uploadIcon:c,fileUploaderWrapperStyle:h,fileUploaderContentStyle:f,draganddropStyle:p,labelsStyle:m,titleStyle:g,clickToUploadStyle:y,subTitleStyle:b,fileBlockWrapperStyle:A,fileNameStyle:B,textsStyle:D,nameStyle:K,sizeStyle:H,clearIcon:W,theme:U})=>{const j=le.useRef(crypto.randomUUID()),[Q,$]=le.useState(!1),[X,x]=le.useState(!1),z=le.useRef([]),ie=R=>{x(R)},te=R=>{R.preventDefault(),ie(!0)},fe=R=>{R.preventDefault(),ie(!1)},de=R=>{R.preventDefault(),ie(!0)},J=R=>{R.preventDefault(),S(R.dataTransfer.files),ie(!1)},N=R=>{z.current=z.current.filter((P,G)=>P.fileID!==R.fileID),$(P=>!P),I()},C=R=>{S(R.target.files)},I=()=>{t&&typeof t=="function"&&t(z.current)},S=async R=>{let P=R,G=[];for(let V=0;V<P.length;V++){let ee={fileName:P[V].name,size:P[V].size,unitSize:wP(P[V].size),type:P[V].type,format:IP(P[V].name),base64:await TP(P[V]),fileID:crypto.randomUUID()};if(n&&r&&!r.includes(ee.format.toLowerCase())){l&&typeof l=="function"&&l(ee.format.toLowerCase());return}i&&P[V].size>i?u&&typeof u=="function"&&u({Error:"Max_Size_Error",MaxSize:i}):G.push(ee)}e?z.current=[...z.current,...G]:(G=G.slice(-1),z.current=G),$(V=>!V),I()};return T.jsxs("div",{className:`${U==="dark"?Dr.dark:""} ${Dr.fileUploaderWrapper}`,style:h??{},children:[T.jsxs("div",{style:f??{},className:`${Dr.fileUploaderContent} `,onDragEnter:te,onDragLeave:fe,onDragOver:de,onDrop:J,children:[T.jsxs("div",{className:Dr.draganddrop,style:p??{},children:[d&&T.jsx("div",{className:Dr.uploadSvg,children:c||T.jsx(fue,{})}),T.jsxs("div",{className:`${Dr.labels} `,style:m??{},htmlFor:j.current,children:[a&&typeof a=="function"?a():T.jsx("p",{style:g??{},className:Dr.title,children:a||T.jsxs("div",{children:[T.jsx("span",{style:y??{},children:"Click to upload"})," or drag and drop"]})}),o&&typeof o=="function"?o():T.jsx("p",{style:b??{},className:Dr.subTitle,children:o??""})]})]}),T.jsx("div",{className:Dr.uploadAction,children:T.jsx("input",{type:"file",name:"",id:j.current,multiple:!!e,onChange:C,accept:""})})]}),z&&z.current&&z.current.length&&s?z.current.map((R,P)=>T.jsx(nue,{theme:U,fileBlockWrapperStyle:A,fileNameStyle:B,textsStyle:D,nameStyle:K,sizeStyle:H,clearIcon:W,file:R,onDelete:N},P)):""]})},vue=()=>{const e=document.createElement("style");e.setAttribute("id","toast_notification_style_key"),e.innerHTML=`
328
+ `,children:f(p)&&f(p)!=="no_icon"?f(p):p==null?void 0:p.icon()}),T.jsx("div",{className:Xa.actionLabel,children:T.jsx("span",{style:{...p==null?void 0:p.style},children:p==null?void 0:p.label})})]},m))})]})},Ble="DeleteAll-module__deleteAllWrapper",Lle="DeleteAll-module__iconContainer",Ple="DeleteAll-module__deleteItemsCountLabel",Fle="DeleteAll-module__dark",Mle="DeleteAll-module__datagridDeleteAllAction",Fl={deleteAllWrapper:Ble,iconContainer:Lle,deleteItemsCountLabel:Ple,dark:Fle,datagridDeleteAllAction:Mle},Vle=le.forwardRef((e,t)=>{const[i,n]=le.useState(0),r=o=>{n(o)};le.useImperativeHandle(t,()=>({setValue:r}));const a=()=>{e.onDeleteAll&&typeof e.onDeleteAll=="function"&&e.onDeleteAll()};return T.jsxs("div",{ref:t,className:`${(e==null?void 0:e.theme)==="dark"?Fl.dark:""} ${Fl.datagridDeleteAllAction} ${Fl.deleteAllWrapper}`,children:[T.jsx("div",{className:Fl.iconContainer,onClick:a,children:T.jsx(Xk,{})}),T.jsx("div",{className:Fl.deleteItemsCountLabel,children:T.jsxs("span",{children:["Delete ",i," Checked Item"]})})]})}),Nle=({data:e,customColumns:t,summary:i,keyExpr:n,theme:r,height:a,focusedRowEnabled:o=!0,rowAlternationEnabled:s,columnAutoWidth:l=!0,withCustomStore:u,withGrouping:d,groupDefaultCollapsed:c,storeKey:h,loadFunction:f,updateFunction:p,insertFunction:m,removeFunction:g,withColumnConfigure:y,withDeleteAll:b,withMasterDetail:A,detailTemplate:B,editingOptions:D,scrollMode:K,pagerOptions:H,selection:W,filterOptions:U,defaultPageIndex:j,searchPanel:Q,onEvent:$,onPageChange:X,selectionChanged:x,focusedRowChanging:z,focusedRowChanged:ie,onRowClick:te,onWheelClick:fe,showPagination:de=!0,refresh:J,diselectAll:N,customActions:C,onColumnConfigure:I,onDeleteAll:S,onDelete:R,onEdit:P,withCustomActions:G,multiExpand:V,onFilterValueChange:ee,onRowExpand:ce,onRowCollaps:ge,onOptionChanged:ne,onRowPrepared:Se,onFocusedCellChanged:w,ShowLoader:re=!0,noDataText:oe,onLoading:F,hideActions:L,allowColumnResizing:Z=!0,disableOverflow:ve,onActionExpand:me})=>{const[ue,we]=le.useState(!1),ke=le.useRef(t),Ae=le.useRef(null),[Ne,ut]=le.useState(""),et=le.useRef({Refresh:()=>Ae.current.instance.getDataSource().reload(),SelectedRowKeys:()=>Ae.current.instance.getSelectedRowKeys(),DeselectAll:()=>{var q;return(q=Ae.current)==null?void 0:q.instance.deselectAll()}}),[Ze,li]=le.useState([{label:"Edit",type:"edit",event:(q,Te)=>Ko(q,Te)},{label:"Delete",type:"delete",event:(q,Te)=>Ma(q,Te)}]),jt=le.useRef(null),Ht=q=>{Ze&&Ze.length&&Bi()},_t=()=>{Ze&&Ze.length&&Bi()},Bi=()=>{document.querySelectorAll(".datagrid_action_data_controller > ul").forEach(Te=>{Te.style.display="none",Te.style.pointerEvents="none"})},Li=new Ws({key:h??"id",load:f,update:p,insert:m,remove:g,onLoading:F}),wt=(q,Te)=>{if($&&typeof $=="function"&&$(Te,q),Te==="onContentReady"){const Y=document.querySelector(".dx-widget"),Ee=document.querySelector("#pagination-container"),Pe=!Y||Y.classList.contains("dx-hidden");Ee.style.display=Pe?"none":"block"}},je=q=>{o&&(W==null?void 0:W.mode)==="multiple"&&b&&jt.current.setValue(q.selectedRowKeys.length),x&&typeof x=="function"&&x(q)},ct=q=>{z&&typeof z=="function"&&z(q)},mi=q=>{ie&&typeof ie=="function"&&ie(q)},Pi=q=>{w&&typeof w=="function"&&w(q)},We=q=>{te&&typeof te=="function"&&te(q.data)},ht=(q,Te)=>{q.button===1&&(fe&&typeof fe=="function"&&fe(Te.data),q.preventDefault())},Zt=q=>{q.rowElement&&q.data&&q.rowElement.addEventListener("mousedown",Te=>ht(Te,q)),Se&&typeof Se=="function"&&Se(q)},mt=()=>{S&&typeof S=="function"&&S(et.current.SelectedRowKeys())},Wt=q=>{ne&&typeof ne=="function"&&ne(q),q.fullName==="paging.pageIndex"&&X&&typeof X=="function"&&X(q.value+1)},yr=q=>{let Y=document.querySelector(`#datagrid_action_data_id_${q[n]}`),Ee=document.querySelectorAll(".datagrid_action_data_controller > ul"),Pe=Y.querySelector("ul");const Je=document.querySelectorAll(".dx-datagrid-rowsview .dx-row > td");Je&&Je.forEach(st=>{st.querySelector("ul")?st.style.overflow="unset":st.style.overflow="hidden"});const It=Y.getBoundingClientRect(),Ft=document.querySelector(".gridWrapper").getBoundingClientRect();let ft={display:"block",position:"absolute",pointerEvents:"all",top:"20px",left:"-70px"};It.bottom>Ft.bottom-150&&(ft.top="unset",ft.bottom="100%",ft.left="-100px"),Ee.forEach(st=>{st.style.display="none",st.style.pointerEvents="none"}),Object.assign(Pe.style,ft)},xr=q=>{ke.current=q,we(Te=>!Te),I&&typeof I=="function"&&I(ke.current)},zo=q=>{V||q.component.collapseAll(-1),ce&&typeof ce=="function"&&ce(q)},Go=q=>{ge&&typeof ge=="function"&&ge(q)},Uo=q=>{q.parentType==="filterRow"&&(q.editorElement.onchange=Te=>{const Y={columnKey:q.dataField,columnName:q.caption,filterValue:Te.target.value};ee&&typeof ee=="function"&&ee(Y)})},Ma=(q,Te)=>{R&&typeof R=="function"&&R(Te)},Ko=(q,Te)=>{P&&typeof P=="function"&&P(Te)};le.useEffect(()=>{C&&C.length&&li(q=>{const Te=q;return C.forEach(Y=>{Te.some(Ee=>Ee.type===Y.type)||Te.push(Y)}),Te})},[C]),le.useEffect(()=>{J&&(et.current.Refresh(),console.info("DataSource Refresh....."))},[J]),le.useEffect(()=>{N&&et.current.DeselectAll()},[N]),le.useEffect(()=>{if(Array.isArray(ve)&&ve.length>0){const q=()=>{ve.forEach(Ee=>{document.querySelectorAll(`.dx-datagrid-rowsview .dx-row td:nth-child(${Ee})`).forEach(Je=>{Je.style.overflow="unset"})})};q();const Te=new MutationObserver(()=>{q()}),Y=document.querySelector(".dx-datagrid-rowsview");return Y&&Te.observe(Y,{childList:!0,subtree:!0}),()=>Te.disconnect()}},[ve]);const il=()=>{const q=Ae.current.instance,Te=q.pageIndex();Te>0&&q.pageIndex(Te-1)},Va=()=>{const q=Ae.current.instance,Te=q.pageIndex(),Y=q.pageCount();Te<Y-1&&q.pageIndex(Te+1)};return le.useEffect(()=>{ke.current=t,we(q=>!q)},[t]),le.useEffect(()=>(document.addEventListener("click",Ht),document.addEventListener("wheel",_t),()=>{document.removeEventListener("click",Ht),document.removeEventListener("wheel",_t)}),[]),le.useEffect(()=>{const q=document.querySelector(".dx-widget"),Te=document.querySelector("#pagination-container"),Y=!q||q.classList.contains("dx-hidden");Te.style.display=Y?"none":"block"},[e,Li,J]),T.jsxs(T.Fragment,{children:[T.jsx("div",{className:r==="dark"?"dark":"","data-grid-confirm-delete":!0,style:{display:"none"}}),T.jsxs("div",{style:{height:"100%",position:"relative"},className:`gridWrapper __dx_DataGrid_Component__ light ${r&&!["dark","light"].includes(r)?"light":r}`,children:[(y||b&&(W==null?void 0:W.mode)==="multiple")&&T.jsxs("div",{className:"__dx_DataGrid_Toolbar",children:[T.jsx("div",{className:"__dx_DataGrid_Toolbar_Leftside",children:b&&(W==null?void 0:W.mode)==="multiple"&&T.jsx(Vle,{theme:r,ref:jt,onDeleteAll:mt})}),T.jsx("div",{className:"__dx_DataGrid_Toolbar_Righttside",children:y&&T.jsx("div",{className:"column_configure_wrapper",children:T.jsx(Ele,{theme:r,items:ke.current.sort((q,Te)=>q.orderIndex-Te.orderIndex),change:q=>xr(q)})})})]}),T.jsxs("div",{id:"pagination-container",children:[T.jsx("div",{className:"custom-pagination-controls",style:{position:"absolute",bottom:"18px",right:"24px",zIndex:"100"},children:T.jsxs("button",{className:"custom-pagination-button",onClick:Va,size:"sm",style:{backgroundColor:"transparent",border:"1px solid #D5D7DA",borderRadius:"8px",height:"32px",padding:"16px 12px",color:"#414651",fontFamily:"Inter-SemiBold",fontSize:"14px",cursor:"pointer",display:"flex",alignItems:"center",gap:"4px"},children:["Next"," ",T.jsx("svg",{width:"20",height:"21",viewBox:"0 0 20 21",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:T.jsx("path",{d:"M4.1665 10.5001H15.8332M15.8332 10.5001L9.99984 4.66675M15.8332 10.5001L9.99984 16.3334",stroke:"#414651",strokeWidth:"1.66667",strokeLinecap:"round",strokeLinejoin:"round"})})]})}),T.jsx("div",{className:"custom-pagination-controls",style:{position:"absolute",bottom:"18px",left:"24px",zIndex:"100"},children:T.jsxs("button",{className:"custom-pagination-button",onClick:il,size:"sm",style:{backgroundColor:"transparent",border:"1px solid #D5D7DA",borderRadius:"8px",height:"32px",padding:"16px 12px",color:"#414651",fontSize:"14px",cursor:"pointer",display:"flex",alignItems:"center",gap:"4px",fontFamily:"Inter-SemiBold"},children:[T.jsx("svg",{width:"20",height:"21",viewBox:"0 0 20 21",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:T.jsx("path",{d:"M15.8334 10.5001H4.16675M4.16675 10.5001L10.0001 16.3334M4.16675 10.5001L10.0001 4.66675",stroke:"#414651",strokeWidth:"1.66667",strokeLinecap:"round",strokeLinejoin:"round"})})," ","Previous"]})})]}),T.jsxs(Vk,{height:a||"100%",ref:Ae,onRowPrepared:Zt,onFocusedCellChanged:Pi,dataSource:u?Li:e,remoteOperations:!0,keyExpr:n??"id",allowColumnReordering:!1,allowColumnResizing:Z,columnAutoWidth:l,noDataText:oe??"No Data",showColumnLines:!1,showRowLines:!0,rowAlternationEnabled:s,showBorders:!1,hoverStateEnabled:!0,onEditorPreparing:Uo,onEditingStart:q=>wt(q,"onEditingStart"),onInitNewRow:q=>wt(q,"onInitNewRow"),onRowInserting:q=>wt(q,"onRowInserting"),onRowInserted:q=>wt(q,"onRowInserted"),onRowUpdating:q=>wt(q,"onRowUpdating"),onRowUpdated:q=>wt(q,"onRowUpdated"),onRowRemoving:q=>wt(q,"onRowRemoving"),onRowRemoved:q=>wt(q,"onRowRemoved"),onSaving:q=>wt(q,"onSaving"),onSaved:q=>wt(q,"onSaved"),onEditCanceling:q=>wt(q,"onEditCanceling"),onEditCanceled:q=>wt(q,"onEditCanceled"),onContentReady:q=>wt(q,"onContentReady"),onOptionChanged:q=>Wt(q),focusedRowEnabled:o,autoNavigateToFocusedRow:!1,onFocusedRowChanging:ct,onFocusedRowChanged:mi,onRowClick:We,onRowExpanding:zo,onRowCollapsed:Go,onSelectionChanged:je,children:[d&&T.jsx(Hk,{autoExpandAll:c}),T.jsx(Yk,{mode:(W==null?void 0:W.mode)??"single",selectAllMode:(W==null?void 0:W.selectAllMode)??["allPages","page"][0],showCheckBoxesMode:"always"}),D&&T.jsx(Nk,{mode:(D==null?void 0:D.mode)??"row",allowUpdating:(D==null?void 0:D.allowUpdating)??!1,allowDeleting:(D==null?void 0:D.allowDeleting)??!1,allowAdding:!1}),T.jsx($k,{visible:(U==null?void 0:U.filterRow)??!1,applyFilter:"auto"}),T.jsx(qk,{visible:(Q==null?void 0:Q.visible)??!1,width:(Q==null?void 0:Q.width)??256,placeholder:(Q==null?void 0:Q.placeholder)??"Search..."}),T.jsx(Wk,{allowSearch:!0,visible:(U==null?void 0:U.headerFilter)??!1}),ke&&ke.current.map((q,Te)=>q.group?T.jsx(Kc,{groupIndex:0,dataField:q.columnKey},Te):T.jsx(Kc,{dataField:q.columnKey,caption:q.columnName,alignment:q.alignment?q.alignment:q.dataType==="number"?"right":"left",width:q.width,visible:q.visible,dataType:q.dataType,format:q.format==="date"?"M/d/yyyy, HH:mm":q.dataType==="number"&&q.fixedNumber?{type:"fixedPoint",precision:2}:q.format,fixed:q.fixed,cellRender:q.template,selectedFilterOperation:q.defaultFilterOperation,allowFiltering:q.allowFiltering,allowHeaderFiltering:q.allowHeaderFiltering,allowSorting:q.allowSorting,allowEditing:q.allowEditing,visibleIndex:q.orderIndex,defaultSortOrder:q.sortOrderType},Te)),i&&i.length&&!u&&T.jsx(Nm,{children:i&&i.map((q,Te)=>T.jsx($m,{column:q.column,summaryType:"custom",customizeText:q.total},Te))}),i&&i.length&&u&&T.jsx(Nm,{children:i.map((q,Te)=>T.jsx($m,{column:q.column,summaryType:q.summaryType,displayFormat:q.displayFormat}))}),!!G&&Ze&&Ze.length&&T.jsx(Kc,{dataField:null,caption:"Actions",alignment:"left",width:100,fixed:!1,fixedPosition:"right",allowFiltering:!1,allowSorting:!1,cellRender:q=>{if(!L||L.length===0||L&&L.length>0&&!L.includes(q.data[n]))return T.jsx(kle,{theme:r,rowData:q.data,rowID:q.data[n],actions:Ze.filter(Te=>Te.disabledForKeys&&Te.disabledForKeys.length?!Te.disabledForKeys.includes(q.data[n]):Te),hiddenActionTypes:[R?"":"delete",P?"":"edit"],onExpand:Te=>{yr(q.data),me&&typeof me=="function"&&me(q.data)}})}}),A&&T.jsx(Gk,{enabled:!0,component:B}),T.jsx(zk,{enabled:re}),T.jsx(jk,{useNative:!0,mode:K??"none"}),T.jsx(Kk,{defaultPageIndex:j?j-1:null,defaultPageSize:H==null?void 0:H.defaultPageSize}),T.jsx(Uk,{visible:H==null?void 0:H.visible,allowedPageSizes:H==null?void 0:H.allowedPageSizes,showPageSizeSelector:H==null?void 0:H.showPageSizeSelector,showInfo:H==null?void 0:H.showInfo,showNavigationButtons:H==null?void 0:H.showNavigationButtons})]})]})]})},$le="Tabs-module__tabContainer",Hle="Tabs-module__vertical",Wle="Tabs-module__underline",zle="Tabs-module__singleTab",Gle="Tabs-module__active",Ule="Tabs-module__button",Kle="Tabs-module__buttonBorder",jle="Tabs-module__buttonMinimal",qle="Tabs-module__dark",Yle="Tabs-module__underLine",gs={tabContainer:$le,vertical:Hle,underline:Wle,singleTab:zle,active:Gle,button:Ule,buttonBorder:Kle,buttonMinimal:jle,dark:qle,underLine:Yle},Xle=({tabsData:e,type:t="underline",vertical:i=!1,onItemClick:n,tabContainerStyle:r,singleTabStyle:a,theme:o})=>{const[s,l]=le.useState(!1),u=d=>{d.active=!0,e.forEach(c=>{c.id===d.id?c.active=!0:c.active=!1}),n&&typeof n=="function"&&n(d),l(c=>!c)};return T.jsx("div",{style:r??{},className:`${o==="dark"?gs.dark:""} ${gs.tabContainer} ${gs[t]} ${i?gs.vertical:""}`,children:e.map(d=>T.jsx("p",{style:a??{},className:`${gs.singleTab} ${d.active?gs.active:""}`,onClick:()=>u(d),children:d.label?typeof d.label=="function"?d.label():d.label:""},d.id))})},Zle="FileBlock-module__fileBlockWrapper",Jle="FileBlock-module__fileName",Qle="FileBlock-module__texts",eue="FileBlock-module__deleteFile",tue="FileBlock-module__dark",Cs={fileBlockWrapper:Zle,fileName:Jle,texts:Qle,deleteFile:eue,dark:tue},iue=()=>T.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",width:"16",height:"20",viewBox:"0 0 16 20",fill:"none",children:T.jsx("path",{d:"M9.66665 1.89118V5.33329C9.66665 5.8 9.66665 6.03336 9.75747 6.21162C9.83737 6.36842 9.96485 6.4959 10.1217 6.5758C10.2999 6.66663 10.5333 6.66663 11 6.66663H14.4421M14.6666 8.32348V14.3333C14.6666 15.7334 14.6666 16.4335 14.3942 16.9683C14.1545 17.4387 13.772 17.8211 13.3016 18.0608C12.7668 18.3333 12.0668 18.3333 10.6666 18.3333H5.33331C3.93318 18.3333 3.23312 18.3333 2.69834 18.0608C2.22793 17.8211 1.84548 17.4387 1.6058 16.9683C1.33331 16.4335 1.33331 15.7334 1.33331 14.3333V5.66663C1.33331 4.26649 1.33331 3.56643 1.6058 3.03165C1.84548 2.56124 2.22793 2.17879 2.69834 1.93911C3.23312 1.66663 3.93318 1.66663 5.33331 1.66663H8.00979C8.62127 1.66663 8.92701 1.66663 9.21473 1.7357C9.46982 1.79694 9.71368 1.89795 9.93736 2.03503C10.1897 2.18963 10.4058 2.40582 10.8382 2.8382L13.4951 5.49505C13.9275 5.92743 14.1436 6.14362 14.2982 6.39591C14.4353 6.61959 14.5363 6.86346 14.5976 7.11855C14.6666 7.40627 14.6666 7.712 14.6666 8.32348Z",stroke:"#A4A7AE",strokeWidth:"1.66667",strokeLinecap:"round",strokeLinejoin:"round"})}),nue=({theme:e,file:t,onDelete:i,fileBlockWrapperStyle:n,fileNameStyle:r,textsStyle:a,nameStyle:o,sizeStyle:s,clearIcon:l,fileIcon:u})=>{const d=()=>{i&&typeof i=="function"&&i(t)};return T.jsx("div",{className:`${e==="dark"?Cs.dark:""} ${Cs.fileBlockWrapper}`,style:n??{},children:T.jsxs("div",{className:Cs.fileName,style:r??{},children:[T.jsx("div",{style:{display:"flex",alignItems:"center"},children:u??T.jsx(iue,{})}),T.jsxs("div",{className:Cs.texts,style:a??{},children:[T.jsx("span",{title:t&&(t!=null&&t.fileName)?t.fileName:"-",style:o??{},children:t&&(t!=null&&t.fileName)?t.fileName:"-"}),T.jsx("span",{style:s??{},className:Cs.size,children:t&&(t!=null&&t.unitSize)?t==null?void 0:t.unitSize:""})]}),T.jsx("div",{className:Cs.deleteFile,onClick:d,children:l??T.jsx(zm,{width:16,color:"#A4A7AE"})})]})})},rue="FileUploader-module__fileUploaderWrapper",aue="FileUploader-module__fileUploaderContent",oue="FileUploader-module__draganddrop",sue="FileUploader-module__uploadSvg",lue="FileUploader-module__labels",uue="FileUploader-module__title",due="FileUploader-module__subTitle",cue="FileUploader-module__uploadAction",hue="FileUploader-module__dark",Dr={fileUploaderWrapper:rue,fileUploaderContent:aue,draganddrop:oue,uploadSvg:sue,labels:lue,title:uue,subTitle:due,uploadAction:cue,dark:hue},fue=e=>T.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",width:"21",height:"20",viewBox:"0 0 21 20",fill:"none",children:T.jsx("path",{d:"M7.16675 13.3333L10.5001 10M10.5001 10L13.8334 13.3333M10.5001 10V17.5M17.1667 13.9524C18.1847 13.1117 18.8334 11.8399 18.8334 10.4167C18.8334 7.88536 16.7814 5.83333 14.2501 5.83333C14.068 5.83333 13.8976 5.73833 13.8052 5.58145C12.7185 3.73736 10.7121 2.5 8.41675 2.5C4.96497 2.5 2.16675 5.29822 2.16675 8.75C2.16675 10.4718 2.86295 12.0309 3.98921 13.1613",stroke:"#A4A7AE",strokeWidth:"1.66667",strokeLinecap:"round",strokeLinejoin:"round"})}),pue=({multiple:e=!0,onChange:t,maxSize:i,withFileValidation:n,acceptedFileFormats:r,title:a,subTitle:o,withResults:s=!0,onFormatError:l,onMaxSizeError:u,withIcon:d=!0,uploadIcon:c,fileUploaderWrapperStyle:h,fileUploaderContentStyle:f,draganddropStyle:p,labelsStyle:m,titleStyle:g,clickToUploadStyle:y,subTitleStyle:b,fileBlockWrapperStyle:A,fileNameStyle:B,textsStyle:D,nameStyle:K,sizeStyle:H,clearIcon:W,theme:U})=>{const j=le.useRef(crypto.randomUUID()),[Q,$]=le.useState(!1),[X,x]=le.useState(!1),z=le.useRef([]),ie=R=>{x(R)},te=R=>{R.preventDefault(),ie(!0)},fe=R=>{R.preventDefault(),ie(!1)},de=R=>{R.preventDefault(),ie(!0)},J=R=>{R.preventDefault(),S(R.dataTransfer.files),ie(!1)},N=R=>{z.current=z.current.filter((P,G)=>P.fileID!==R.fileID),$(P=>!P),I()},C=R=>{S(R.target.files)},I=()=>{t&&typeof t=="function"&&t(z.current)},S=async R=>{let P=R,G=[];for(let V=0;V<P.length;V++){let ee={fileName:P[V].name,size:P[V].size,unitSize:wP(P[V].size),type:P[V].type,format:IP(P[V].name),base64:await TP(P[V]),fileID:crypto.randomUUID()};if(n&&r&&!r.includes(ee.format.toLowerCase())){l&&typeof l=="function"&&l(ee.format.toLowerCase());return}i&&P[V].size>i?u&&typeof u=="function"&&u({Error:"Max_Size_Error",MaxSize:i}):G.push(ee)}e?z.current=[...z.current,...G]:(G=G.slice(-1),z.current=G),$(V=>!V),I()};return T.jsxs("div",{className:`${U==="dark"?Dr.dark:""} ${Dr.fileUploaderWrapper}`,style:h??{},children:[T.jsxs("div",{style:f??{},className:`${Dr.fileUploaderContent} `,onDragEnter:te,onDragLeave:fe,onDragOver:de,onDrop:J,children:[T.jsxs("div",{className:Dr.draganddrop,style:p??{},children:[d&&T.jsx("div",{className:Dr.uploadSvg,children:c||T.jsx(fue,{})}),T.jsxs("div",{className:`${Dr.labels} `,style:m??{},htmlFor:j.current,children:[a&&typeof a=="function"?a():T.jsx("p",{style:g??{},className:Dr.title,children:a||T.jsxs("div",{children:[T.jsx("span",{style:y??{},children:"Click to upload"})," or drag and drop"]})}),o&&typeof o=="function"?o():T.jsx("p",{style:b??{},className:Dr.subTitle,children:o??""})]})]}),T.jsx("div",{className:Dr.uploadAction,children:T.jsx("input",{type:"file",name:"",id:j.current,multiple:!!e,onChange:C,accept:""})})]}),z&&z.current&&z.current.length&&s?z.current.map((R,P)=>T.jsx(nue,{theme:U,fileBlockWrapperStyle:A,fileNameStyle:B,textsStyle:D,nameStyle:K,sizeStyle:H,clearIcon:W,file:R,onDelete:N},P)):""]})},vue=()=>{const e=document.createElement("style");e.setAttribute("id","toast_notification_style_key"),e.innerHTML=`
329
329
  .notifications_wrapper{
330
330
  position: fixed;
331
331
  z-index: 9999999;
@@ -72391,7 +72391,7 @@ const yle = "ColumnConfigure-module__configureWrapper", xle = "ColumnConfigure-m
72391
72391
  }), Tt = (q, Ie) => {
72392
72392
  if ($ && typeof $ == "function" && $(Ie, q), Ie === "onContentReady") {
72393
72393
  const Y = document.querySelector(".dx-widget"), Se = document.querySelector("#pagination-container"), Le = !Y || Y.classList.contains("dx-hidden");
72394
- Se.style.display = Le ? "block" : "none";
72394
+ Se.style.display = Le ? "none" : "block";
72395
72395
  }
72396
72396
  }, je = (q) => {
72397
72397
  o && (W == null ? void 0 : W.mode) === "multiple" && b && Yt.current.setValue(q.selectedRowKeys.length), x && typeof x == "function" && x(q);
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "master-components-react",
3
3
  "private": false,
4
- "version": "3.5.33",
4
+ "version": "3.5.34",
5
5
  "type": "module",
6
6
  "main": "dist/master-components-react.cjs.js",
7
7
  "module": "dist/master-components-react.es.js",