kdpa-components 1.39.3 → 1.39.4
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/index.js +1 -1
- package/dist/types/components/AdvancedList/KdpaAdvancedList.d.ts +13 -0
- package/dist/types/components/AdvancedList/KdpaAdvancedList.d.ts.map +1 -0
- package/dist/types/components/AdvancedList/KdpaAdvancedList.stories.d.ts +7 -0
- package/dist/types/components/AdvancedList/KdpaAdvancedList.stories.d.ts.map +1 -0
- package/dist/types/components/AdvancedList/index.d.ts +2 -0
- package/dist/types/components/AdvancedList/index.d.ts.map +1 -0
- package/dist/types/components/CodeEditor/KdpaCodeEditor.d.ts +5 -0
- package/dist/types/components/CodeEditor/KdpaCodeEditor.d.ts.map +1 -0
- package/dist/types/components/CodeEditor/KdpaCodeEditor.stories.d.ts +8 -0
- package/dist/types/components/CodeEditor/KdpaCodeEditor.stories.d.ts.map +1 -0
- package/dist/types/components/CodeEditor/index.d.ts +3 -0
- package/dist/types/components/CodeEditor/index.d.ts.map +1 -0
- package/dist/types/components/DataGrid/KdpaDataGrid.d.ts +4 -0
- package/dist/types/components/DataGrid/KdpaDataGrid.d.ts.map +1 -0
- package/dist/types/components/DataGrid/KdpaDataGrid.stories.d.ts +7 -0
- package/dist/types/components/DataGrid/KdpaDataGrid.stories.d.ts.map +1 -0
- package/dist/types/components/DataGrid/index.d.ts +2 -0
- package/dist/types/components/DataGrid/index.d.ts.map +1 -0
- package/dist/types/designerKit/components/Alert/Temp.d.ts +3 -0
- package/dist/types/designerKit/components/Alert/Temp.d.ts.map +1 -0
- package/dist/types/designerKit/components/Form/KdFormField/KdpaFormField.d.ts +12 -0
- package/dist/types/designerKit/components/Form/KdFormField/KdpaFormField.d.ts.map +1 -0
- package/dist/types/designerKit/components/GridPanel/PanelWrapper.d.ts +1 -1
- package/dist/types/designerKit/components/GridPanel/PanelWrapper.d.ts.map +1 -1
- package/dist/types/designerKit/components/Modal/KdModal.d.ts +2 -1
- package/dist/types/designerKit/components/Modal/KdModal.d.ts.map +1 -1
- package/dist/types/designerKit/components/Tree/useKdTreeHelper.d.ts +5 -0
- package/dist/types/designerKit/components/Tree/useKdTreeHelper.d.ts.map +1 -0
- package/dist/types/designerKit/components/Uploader/KdAdvanceFileUploader/DroppedFiles.d.ts.map +1 -1
- package/dist/types/designerKit/components/Uploader/KdAdvanceFileUploader/DroppingFiles.d.ts +9 -0
- package/dist/types/designerKit/components/Uploader/KdAdvanceFileUploader/DroppingFiles.d.ts.map +1 -0
- package/dist/types/designerKit/components/Uploader/KdFileUploader/UploadedItems.d.ts.map +1 -1
- package/dist/types/designerKit/components/Uploader/KdUseFileUpload/KdUseFileUpload.d.ts +53 -0
- package/dist/types/designerKit/components/Uploader/KdUseFileUpload/KdUseFileUpload.d.ts.map +1 -0
- package/dist/types/designerKit/utils/useTreeHelper.d.ts +17 -0
- package/dist/types/designerKit/utils/useTreeHelper.d.ts.map +1 -0
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -1427,7 +1427,7 @@ Message: ${e}`),e}}const pu=e=>typeof e=="string",O_e=e=>typeof e=="function",SH
|
|
|
1427
1427
|
color: ${e=>e?.activeColor??"#7367aa"};
|
|
1428
1428
|
border-bottom: 3px solid ${e=>e?.activeColor??"#7367aa"};
|
|
1429
1429
|
}
|
|
1430
|
-
`;function YWe({children:e,...t}){const r=Er()?.palette?.primary?.main;return W(WWe,{className:"KdTabsTrigger",activeColor:r,...t,children:e})}const UWe=Gi("div")();function KWe({currentStep:e,setCurrentStep:t,defaultValue:n,children:r,orientation:o="horizontal",clickSteps:i=!1,showConnector:a=!0,...s}){return vn(()=>{n&&t(typeof n=="string"?parseInt(n):n)},[n]),W(UWe,{...s,className:`${s.className} KdStepRoot ${o==="vertical"?"KdStepRoot_vertical":"KdStepRoot_horizontal"}`,children:r.map((c,f)=>Dt.isValidElement(c)?Dt.cloneElement(c,{orientation:o,currentStep:e,setCurrentStep:t,clickSteps:i,showConnector:a,key:f}):c)})}function XWe({children:e,currentStep:t,setCurrentStep:n,orientation:r="horizontal",clickSteps:o=!0,showConnector:i=!0,...a}){return W(Rse,{activeStep:t,orientation:r,...a,connector:W(wL,{sx:{visibility:i?"visible":"hidden"}}),sx:{...a.sx,".MuiStepConnector-lineVertical":{height:"100%"}},className:`${a.className} ${r==="vertical"?"KdStepper_vertical":"KdStepper_horizontal"}`,children:e.map((s,c)=>{if(s)return W(ase,{active:t===c,completed:t!==void 0?t>c:!1,children:Dt.isValidElement(s)?Dt.cloneElement(s,{orientation:r,currentStep:t,setCurrentStep:n,clickSteps:o,key:c}):s})})})}const GWe=Gi("div")();function qWe({children:e,footer:t=!1,backButtonText:n="\u0642\u0628\u0644\u06CC",nextButtonText:r="\u0628\u0639\u062F\u06CC",index:o,currentStep:i,setCurrentStep:a,onPrev:s,onNext:c,orientation:f="horizontal",...p}){const m=()=>{a&&i!==void 0&&a(i+1)},b=()=>{a&&i!==void 0&&a(i-1)};return i===o?wt(GWe,{className:f==="horizontal"?"KdStepContent_horizontal":"KdStepContent_vertical",...p,children:[W("div",{children:e}),t&&wt("div",{className:"KdStepContent_Buttons",children:[W(ax,{disabled:i===0,onClick:()=>{s?s():b()},children:n}),W(ax,{variant:"contained",onClick:()=>{c?c():m()},children:r})]})]}):W(Zr,{})}function ZWe({children:e,index:t,currentStep:n=0,setCurrentStep:r,clickSteps:o=!0,icon:i,completedIcon:a,activeIcon:s,...c}){const f=b=>{r&&r(b)},p=Er();function m(){return n===t?s??a??i:n>t?a??i:i}return W(Cse,{onClick:()=>{o&&f(t)},...c,icon:m(),className:"KdStepLabel",style:{...c?.style,"--primary-main":p.palette.primary.main},children:e})}const JWe=rr(function(t,n){const r={success:"bg-light-success",info:"bg-light-info",warning:"bg-light-warning",error:"bg-light-danger"}[t.severity??"info"],o=t.className??"d-flex align-items-center mb-50",i=L2.sanitize(t.title??"",{USE_PROFILES:{html:!0}}),a=L2.sanitize(t.children??"",{USE_PROFILES:{html:!0}});return wt(VN,{ref:n,severity:t.severity,className:`${o} ${r}`,children:[t.title&&W(YN,{children:W("div",{dangerouslySetInnerHTML:{__html:i}})}),W("div",{dangerouslySetInnerHTML:{__html:a}})]})});function I7({title:e,children:t,onClose:n,isOpen:r,fullWidth:o=!0,hasHeader:i=!0,...
|
|
1430
|
+
`;function YWe({children:e,...t}){const r=Er()?.palette?.primary?.main;return W(WWe,{className:"KdTabsTrigger",activeColor:r,...t,children:e})}const UWe=Gi("div")();function KWe({currentStep:e,setCurrentStep:t,defaultValue:n,children:r,orientation:o="horizontal",clickSteps:i=!1,showConnector:a=!0,...s}){return vn(()=>{n&&t(typeof n=="string"?parseInt(n):n)},[n]),W(UWe,{...s,className:`${s.className} KdStepRoot ${o==="vertical"?"KdStepRoot_vertical":"KdStepRoot_horizontal"}`,children:r.map((c,f)=>Dt.isValidElement(c)?Dt.cloneElement(c,{orientation:o,currentStep:e,setCurrentStep:t,clickSteps:i,showConnector:a,key:f}):c)})}function XWe({children:e,currentStep:t,setCurrentStep:n,orientation:r="horizontal",clickSteps:o=!0,showConnector:i=!0,...a}){return W(Rse,{activeStep:t,orientation:r,...a,connector:W(wL,{sx:{visibility:i?"visible":"hidden"}}),sx:{...a.sx,".MuiStepConnector-lineVertical":{height:"100%"}},className:`${a.className} ${r==="vertical"?"KdStepper_vertical":"KdStepper_horizontal"}`,children:e.map((s,c)=>{if(s)return W(ase,{active:t===c,completed:t!==void 0?t>c:!1,children:Dt.isValidElement(s)?Dt.cloneElement(s,{orientation:r,currentStep:t,setCurrentStep:n,clickSteps:o,key:c}):s})})})}const GWe=Gi("div")();function qWe({children:e,footer:t=!1,backButtonText:n="\u0642\u0628\u0644\u06CC",nextButtonText:r="\u0628\u0639\u062F\u06CC",index:o,currentStep:i,setCurrentStep:a,onPrev:s,onNext:c,orientation:f="horizontal",...p}){const m=()=>{a&&i!==void 0&&a(i+1)},b=()=>{a&&i!==void 0&&a(i-1)};return i===o?wt(GWe,{className:f==="horizontal"?"KdStepContent_horizontal":"KdStepContent_vertical",...p,children:[W("div",{children:e}),t&&wt("div",{className:"KdStepContent_Buttons",children:[W(ax,{disabled:i===0,onClick:()=>{s?s():b()},children:n}),W(ax,{variant:"contained",onClick:()=>{c?c():m()},children:r})]})]}):W(Zr,{})}function ZWe({children:e,index:t,currentStep:n=0,setCurrentStep:r,clickSteps:o=!0,icon:i,completedIcon:a,activeIcon:s,...c}){const f=b=>{r&&r(b)},p=Er();function m(){return n===t?s??a??i:n>t?a??i:i}return W(Cse,{onClick:()=>{o&&f(t)},...c,icon:m(),className:"KdStepLabel",style:{...c?.style,"--primary-main":p.palette.primary.main},children:e})}const JWe=rr(function(t,n){const r={success:"bg-light-success",info:"bg-light-info",warning:"bg-light-warning",error:"bg-light-danger"}[t.severity??"info"],o=t.className??"d-flex align-items-center mb-50",i=L2.sanitize(t.title??"",{USE_PROFILES:{html:!0}}),a=L2.sanitize(t.children??"",{USE_PROFILES:{html:!0}});return wt(VN,{ref:n,severity:t.severity,className:`${o} ${r}`,children:[t.title&&W(YN,{children:W("div",{dangerouslySetInnerHTML:{__html:i}})}),W("div",{dangerouslySetInnerHTML:{__html:a}})]})});function I7({title:e,children:t,onClose:n,isOpen:r,fullWidth:o=!0,hasHeader:i=!0,backdropClick:a=!0,...s}){return wt(Am,{open:r,onClose:(c,f)=>{f==="backdropClick"&&!a||n?.()},fullWidth:o,"aria-labelledby":"alert-dialog-title","aria-describedby":"alert-dialog-description",...s,sx:{"& .MuiDialog-paper":{padding:"20px",...s?.sx}},children:[i&&wt(RR,{id:"alert-dialog-title",variant:"body1",sx:{display:"flex",padding:"0px !important",paddingBottom:"20px !important",fontSize:"16px",fontWeight:600,paddingLeft:"16px",alignItems:"center",justifyContent:"space-between"},children:[W("span",{children:e}),W(Va,{onClick:n,children:W(dFe,{})})]}),W(Sk,{sx:{padding:"1px"},children:t})]})}function L7({type:e="inline",...t}){const n=Jr(()=>e==="inline"?({children:r,isOpen:o,...i})=>W(Zr,{children:o&&W(Zr,{children:W("div",{...i,children:r})})}):({children:r,isOpen:o,label:i,...a})=>W(I7,{...a,title:i,isOpen:o,hasHeader:!1,sx:{padding:"0px",...a?.sx},children:r}),[e]);return W(n,{...t})}function QWe({isOpen:e=!1,children:t,onClose:n,label:r,loading:o=!1,onSubmit:i,...a}){return W(L7,{isOpen:!!e,onClose:n,label:r,...a,children:W(u6,{onSubmit:i,loading:o,formState:a.formState,...a,children:wt("div",{children:[W("header",{style:{padding:"12px",borderBottom:"1px solid #eee"},children:W(Ya,{variant:"h6",fontSize:"16px",children:r})}),t]})})})}var e7e=X9(QWe);function t7e({title:e,children:t}){return wt("div",{style:{display:"flex",alignItems:"center",justifyContent:"space-between",marginBottom:"8px"},children:[W(Ya,{variant:"h6",children:e}),W("div",{style:{display:"flex",flexDirection:"row",gap:"4px"},children:t})]})}function n7e(e){return Zt("MuiTreeView",e)}Gt("MuiTreeView",["root"]);const $7={instance:null,multiSelect:!1,disabledItemsFocusable:!1,treeId:void 0,icons:{defaultCollapseIcon:null,defaultExpandIcon:null,defaultParentIcon:null,defaultEndIcon:null}},CP=M.createContext($7);process.env.NODE_ENV!=="production"&&(CP.displayName="TreeViewContext");const r7e=(e,t)=>{const n=M.useRef({}),[r,o]=M.useState(()=>{const a={};return e.forEach(s=>{s.models&&Object.entries(s.models).forEach(([c,f])=>{n.current[c]={controlledProp:f.controlledProp,defaultProp:f.defaultProp,isControlled:t[f.controlledProp]!==void 0},a[c]=t[f.defaultProp]})}),a}),i=Object.fromEntries(Object.entries(n.current).map(([a,s])=>{const c=s.isControlled?t[s.controlledProp]:r[a];return[a,{value:c,setValue:f=>{s.isControlled||o(p=>j({},p,{[a]:f}))}}]}));return process.env.NODE_ENV!=="production"&&Object.entries(n.current).forEach(([a,s])=>{const c=t[s.controlledProp],f=t[s.defaultProp];M.useEffect(()=>{s.isControlled!==(c!==void 0)&&console.error([`MUI: A component is changing the ${s.isControlled?"":"un"}controlled ${a} state of TreeView to be ${s.isControlled?"un":""}controlled.`,"Elements should not switch from uncontrolled to controlled (or vice versa).",`Decide between using a controlled or uncontrolled ${a} element for the lifetime of the component.`,"The nature of the state is determined during the first render. It's considered controlled if the value is not `undefined`.","More info: https://fb.me/react-controlled-components"].join(`
|
|
1431
1431
|
`))},[c]);const{current:p}=M.useRef(f);M.useEffect(()=>{!s.isControlled&&p!==f&&console.error([`MUI: A component is changing the default ${a} state of an uncontrolled TreeView after being initialized. To suppress this warning opt to use a controlled TreeView.`].join(`
|
|
1432
1432
|
`))},[JSON.stringify(p)])}),i};class o7e{constructor(){this.maxListeners=20,this.warnOnce=!1,this.events={}}on(t,n,r={}){let o=this.events[t];if(o||(o={highPriority:new Map,regular:new Map},this.events[t]=o),r.isFirst?o.highPriority.set(n,!0):o.regular.set(n,!0),process.env.NODE_ENV!=="production"){const i=o.highPriority.size+o.regular.size;i>this.maxListeners&&!this.warnOnce&&(this.warnOnce=!0,console.warn([`Possible EventEmitter memory leak detected. ${i} ${t} listeners added.`].join(`
|
|
1433
1433
|
`)))}}removeListener(t,n){this.events[t]&&(this.events[t].regular.delete(n),this.events[t].highPriority.delete(n))}removeAllListeners(){this.events={}}emit(t,...n){const r=this.events[t];if(!r)return;const o=Array.from(r.highPriority.keys()),i=Array.from(r.regular.keys());for(let a=o.length-1;a>=0;a-=1){const s=o[a];r.highPriority.has(s)&&s.apply(this,n)}for(let a=0;a<i.length;a+=1){const s=i[a];r.regular.has(s)&&s.apply(this,n)}}once(t,n){const r=this;this.on(t,function o(...i){r.removeListener(t,o),n.apply(r,i)})}}const kP=(e,t)=>{const n=e.getNode(t),r=e.getNavigableChildrenIds(n.parentId),o=r.indexOf(t);if(o===0)return n.parentId;let i=r[o-1];for(;e.isNodeExpanded(i)&&e.getNavigableChildrenIds(i).length>0;)i=e.getNavigableChildrenIds(i).pop();return i},nb=(e,t)=>{if(e.isNodeExpanded(t)&&e.getNavigableChildrenIds(t).length>0)return e.getNavigableChildrenIds(t)[0];let n=e.getNode(t);for(;n!=null;){const r=e.getNavigableChildrenIds(n.parentId),o=r[r.indexOf(n.id)+1];if(o)return o;n=e.getNode(n.parentId)}return null},EP=e=>{let t=e.getNavigableChildrenIds(null).pop();for(;e.isNodeExpanded(t);)t=e.getNavigableChildrenIds(t).pop();return t},TP=e=>e.getNavigableChildrenIds(null)[0],Mp=(e,t)=>{Object.assign(e,t)},i7e=e=>e.isPropagationStopped!==void 0,a7e=({instance:e})=>{const[t]=M.useState(()=>new o7e),n=M.useCallback((...o)=>{const[i,a,s={}]=o;s.defaultMuiPrevented=!1,!(i7e(s)&&s.isPropagationStopped())&&t.emit(i,a,s)},[t]),r=M.useCallback((o,i)=>(t.on(o,i),()=>{t.removeListener(o,i)}),[t]);Mp(e,{$$publishEvent:n,$$subscribeEvent:r})},s7e=[a7e],l7e=e=>{const t=[...s7e,...e.plugins],n=t.reduce((w,S)=>S.getDefaultizedParams?S.getDefaultizedParams(w):w,e),r=r7e(t,n),i=M.useRef({}).current,a=M.useRef(null),s=nr(a,e.rootRef),[c,f]=M.useState(()=>{const w={};return t.forEach(S=>{S.getInitialState&&Object.assign(w,S.getInitialState(n))}),w}),p=[];let m=$7;const b=w=>{const S=w({instance:i,params:n,state:c,setState:f,rootRef:a,models:r})||{};S.getRootProps&&p.push(S.getRootProps),S.contextValue&&(m=S.contextValue)};return t.forEach(b),{getRootProps:(w={})=>{const S=j({role:"tree",tabIndex:0},w,{ref:s});return p.forEach(k=>{Object.assign(S,k(w))}),S},rootRef:s,contextValue:m}},c7e=["element"];function u7e(e,t){for(let n=0;n<e.length;n+=1)if(t(e[n]))return n;return-1}function d7e(e,t){let n=0,r=e.length-1;for(;n<=r;){const o=Math.floor((n+r)/2);if(e[o].element===t)return o;e[o].element.compareDocumentPosition(t)&Node.DOCUMENT_POSITION_PRECEDING?r=o-1:n=o+1}return n}const OP=M.createContext({});process.env.NODE_ENV!=="production"&&(OP.displayName="DescendantContext");function f7e(e){const t=M.useRef(null);return M.useEffect(()=>{t.current=e},[e]),t.current}const F7=()=>{};function h7e(e){const[,t]=M.useState(),{registerDescendant:n=F7,unregisterDescendant:r=F7,descendants:o=[],parentId:i=null}=M.useContext(OP),a=u7e(o,f=>f.element===e.element),s=f7e(o),c=o.some((f,p)=>s&&s[p]&&s[p].element!==f.element);return Do(()=>{if(e.element)return n(j({},e,{index:a})),()=>{r(e.element)};t({})},[n,r,a,c,e]),{parentId:i,index:a}}function MP(e){const{children:t,id:n}=e,[r,o]=M.useState([]),i=M.useCallback(c=>{let{element:f}=c,p=vt(c,c7e);o(m=>{if(m.length===0)return[j({},p,{element:f,index:0})];const b=d7e(m,f);let y;if(m[b]&&m[b].element===f)y=m;else{const w=j({},p,{element:f,index:b});y=m.slice(),y.splice(b,0,w)}return y.forEach((w,S)=>{w.index=S}),y})},[]),a=M.useCallback(c=>{o(f=>f.filter(p=>c!==p.element))},[]),s=M.useMemo(()=>({descendants:r,registerDescendant:i,unregisterDescendant:a,parentId:n}),[r,i,a,n]);return W(OP.Provider,{value:s,children:t})}process.env.NODE_ENV!=="production"&&(MP.propTypes={children:u.node,id:u.string});function p7e(e){const{value:t,children:n}=e;return W(CP.Provider,{value:t,children:W(MP,{children:n})})}const m7e=(e,t,n)=>{e.$$publishEvent(t,n)},g7e=({instance:e,params:t})=>{const n=M.useRef({}),r=M.useCallback(f=>n.current[f],[]),o=M.useCallback(f=>{n.current[f.id]=f},[]),i=M.useCallback(f=>{const p=j({},n.current);delete p[f],n.current=p,m7e(e,"removeNode",{id:f})},[e]),a=M.useCallback(f=>{if(f==null)return!1;let p=e.getNode(f);if(!p)return!1;if(p.disabled)return!0;for(;p.parentId!=null;)if(p=e.getNode(p.parentId),p.disabled)return!0;return!1},[e]),s=hn(f=>Object.values(n.current).filter(p=>p.parentId===f).sort((p,m)=>p.index-m.index).map(p=>p.id));Mp(e,{getNode:r,updateNode:o,removeNode:i,getChildrenIds:s,getNavigableChildrenIds:f=>{let p=e.getChildrenIds(f);return t.disabledItemsFocusable||(p=p.filter(m=>!e.isNodeDisabled(m))),p},isNodeDisabled:a})},PP=({instance:e,params:t,models:n})=>{const r=M.useCallback(s=>Array.isArray(n.expanded.value)?n.expanded.value.indexOf(s)!==-1:!1,[n.expanded.value]),o=M.useCallback(s=>{var c;return!!((c=e.getNode(s))!=null&&c.expandable)},[e]),i=hn((s,c)=>{if(c==null)return;let f;n.expanded.value.indexOf(c)!==-1?f=n.expanded.value.filter(p=>p!==c):f=[c].concat(n.expanded.value),t.onNodeToggle&&t.onNodeToggle(s,f),n.expanded.setValue(f)});Mp(e,{isNodeExpanded:r,isNodeExpandable:o,toggleNodeExpansion:i,expandAllSiblings:(s,c)=>{const f=e.getNode(c),m=e.getChildrenIds(f.parentId).filter(y=>e.isNodeExpandable(y)&&!e.isNodeExpanded(y)),b=n.expanded.value.concat(m);m.length>0&&(n.expanded.setValue(b),t.onNodeToggle&&t.onNodeToggle(s,b))}})};PP.models={expanded:{controlledProp:"expanded",defaultProp:"defaultExpanded"}};const v7e=[];PP.getDefaultizedParams=e=>{var t;return j({},e,{defaultExpanded:(t=e.defaultExpanded)!=null?t:v7e})};const b7e=(e,t,n)=>{if(t===n)return[t,n];const r=e.getNode(t),o=e.getNode(n);if(r.parentId===o.id||o.parentId===r.id)return o.parentId===r.id?[r.id,o.id]:[o.id,r.id];const i=[r.id],a=[o.id];let s=r.parentId,c=o.parentId,f=a.indexOf(s)!==-1,p=i.indexOf(c)!==-1,m=!0,b=!0;for(;!p&&!f;)m&&(i.push(s),f=a.indexOf(s)!==-1,m=s!==null,!f&&m&&(s=e.getNode(s).parentId)),b&&!f&&(a.push(c),p=i.indexOf(c)!==-1,b=c!==null,!p&&b&&(c=e.getNode(c).parentId));const y=f?s:c,w=e.getChildrenIds(y),S=i[i.indexOf(y)-1],k=a[a.indexOf(y)-1];return w.indexOf(S)<w.indexOf(k)?[t,n]:[n,t]},AP=({instance:e,params:t,models:n})=>{const r=M.useRef(null),o=M.useRef(!1),i=M.useRef([]),a=w=>Array.isArray(n.selected.value)?n.selected.value.indexOf(w)!==-1:n.selected.value===w,s=(w,S,k=!1)=>{if(!t.disableSelection){if(k){if(Array.isArray(n.selected.value)){let T;n.selected.value.indexOf(S)!==-1?T=n.selected.value.filter(E=>E!==S):T=[S].concat(n.selected.value),t.onNodeSelect&&t.onNodeSelect(w,T),n.selected.setValue(T)}}else{const T=t.multiSelect?[S]:S;t.onNodeSelect&&t.onNodeSelect(w,T),n.selected.setValue(T)}r.current=S,o.current=!1,i.current=[]}},c=(w,S)=>{const[k,T]=b7e(e,w,S),E=[k];let _=k;for(;_!==T;)_=nb(e,_),E.push(_);return E},f=(w,S)=>{let k=n.selected.value.slice();const{start:T,next:E,current:_}=S;!E||!_||(i.current.indexOf(_)===-1&&(i.current=[]),o.current?i.current.indexOf(E)!==-1?(k=k.filter(R=>R===T||R!==_),i.current=i.current.filter(R=>R===T||R!==_)):(k.push(E),i.current.push(E)):(k.push(E),i.current.push(_,E)),t.onNodeSelect&&t.onNodeSelect(w,k),n.selected.setValue(k))},p=(w,S)=>{let k=n.selected.value.slice();const{start:T,end:E}=S;o.current&&(k=k.filter(N=>i.current.indexOf(N)===-1));let _=c(T,E);_=_.filter(N=>!e.isNodeDisabled(N)),i.current=_;let R=k.concat(_);R=R.filter((N,F)=>R.indexOf(N)===F),t.onNodeSelect&&t.onNodeSelect(w,R),n.selected.setValue(R)};return Mp(e,{isNodeSelected:a,selectNode:s,selectRange:(w,S,k=!1)=>{if(t.disableSelection)return;const{start:T=r.current,end:E,current:_}=S;k?f(w,{start:T,next:E,current:_}):T!=null&&E!=null&&p(w,{start:T,end:E}),o.current=!0},rangeSelectToLast:(w,S)=>{r.current||(r.current=S);const k=o.current?r.current:S;e.selectRange(w,{start:k,end:EP(e)})},rangeSelectToFirst:(w,S)=>{r.current||(r.current=S);const k=o.current?r.current:S;e.selectRange(w,{start:k,end:TP(e)})}}),{getRootProps:()=>({"aria-multiselectable":t.multiSelect})}};AP.models={selected:{controlledProp:"selected",defaultProp:"defaultSelected"}};const y7e=[];AP.getDefaultizedParams=e=>{var t,n,r;return j({},e,{disableSelection:(t=e.disableSelection)!=null?t:!1,multiSelect:(n=e.multiSelect)!=null?n:!1,defaultSelected:(r=e.defaultSelected)!=null?r:e.multiSelect?y7e:null})};const z7=1e3;class x7e{constructor(t=z7){this.timeouts=new Map,this.cleanupTimeout=z7,this.cleanupTimeout=t}register(t,n,r){this.timeouts||(this.timeouts=new Map);const o=setTimeout(()=>{typeof n=="function"&&n(),this.timeouts.delete(r.cleanupToken)},this.cleanupTimeout);this.timeouts.set(r.cleanupToken,o)}unregister(t){const n=this.timeouts.get(t.cleanupToken);n&&(this.timeouts.delete(t.cleanupToken),clearTimeout(n))}reset(){this.timeouts&&(this.timeouts.forEach((t,n)=>{this.unregister({cleanupToken:n})}),this.timeouts=void 0)}}class w7e{constructor(){this.registry=new FinalizationRegistry(t=>{typeof t=="function"&&t()})}register(t,n,r){this.registry.register(t,n,r)}unregister(t){this.registry.unregister(t)}reset(){}}class S7e{}function C7e(e){let t=0;return function(r,o,i){e.registry===null&&(e.registry=typeof FinalizationRegistry<"u"?new w7e:new x7e);const[a]=M.useState(new S7e),s=M.useRef(null),c=M.useRef();c.current=i;const f=M.useRef(null);if(!s.current&&c.current){const p=(m,b)=>{if(!b.defaultMuiPrevented){var y;(y=c.current)==null||y.call(c,m,b)}};s.current=r.$$subscribeEvent(o,p),t+=1,f.current={cleanupToken:t},e.registry.register(a,()=>{var m;(m=s.current)==null||m.call(s),s.current=null,f.current=null},f.current)}else!c.current&&s.current&&(s.current(),s.current=null,f.current&&(e.registry.unregister(f.current),f.current=null));M.useEffect(()=>{if(!s.current&&c.current){const p=(m,b)=>{if(!b.defaultMuiPrevented){var y;(y=c.current)==null||y.call(c,m,b)}};s.current=r.$$subscribeEvent(o,p)}return f.current&&e.registry&&(e.registry.unregister(f.current),f.current=null),()=>{var p;(p=s.current)==null||p.call(s),s.current=null}},[r,o])}}const k7e={registry:null},E7e=C7e(k7e),DP=({instance:e,params:t,state:n,setState:r,models:o,rootRef:i})=>{const a=hn(y=>{const w=typeof y=="function"?y(n.focusedNodeId):y;r(S=>j({},S,{focusedNodeId:w}))}),s=M.useCallback(y=>n.focusedNodeId===y,[n.focusedNodeId]),c=hn((y,w)=>{w&&(a(w),t.onNodeFocus&&t.onNodeFocus(y,w))});Mp(e,{isNodeFocused:s,focusNode:c}),E7e(e,"removeNode",({id:y})=>{a(w=>w===y&&i.current===oo(i.current).activeElement?e.getChildrenIds(null)[0]:w)});const f=y=>w=>{var S;if((S=y.onFocus)==null||S.call(y,w),w.target===w.currentTarget){const k=E=>{const _=e.getNode(E);return _&&(_.parentId==null||e.isNodeExpanded(_.parentId))};let T;Array.isArray(o.selected.value)?T=o.selected.value.find(k):o.selected.value!=null&&k(o.selected.value)&&(T=o.selected.value),T==null&&(T=e.getNavigableChildrenIds(null)[0]),e.focusNode(w,T)}},p=y=>w=>{var S;(S=y.onBlur)==null||S.call(y,w),a(null)},m=e.getNode(n.focusedNodeId),b=m?m.idAttribute:null;return{getRootProps:y=>({onFocus:f(y),onBlur:p(y),"aria-activedescendant":b??void 0})}};DP.getInitialState=()=>({focusedNodeId:null}),DP.getDefaultizedParams=e=>{var t;return j({},e,{disabledItemsFocusable:(t=e.disabledItemsFocusable)!=null?t:!1})};function T7e(e){return e&&e.length===1&&e.match(/\S/)}function B7(e,t,n){for(let r=t;r<e.length;r+=1)if(n===e[r])return r;return-1}const O7e=({instance:e,params:t,state:n})=>{const o=Er().direction==="rtl",i=M.useRef({}),a=hn((y,w)=>(i.current[y]=w,()=>{const S=j({},i.current);delete S[y],i.current=S}));Mp(e,{mapFirstChar:a});const s=y=>(n.focusedNodeId!=null&&e.isNodeExpandable(n.focusedNodeId)&&(e.isNodeExpanded(n.focusedNodeId)?e.focusNode(y,nb(e,n.focusedNodeId)):e.isNodeDisabled(n.focusedNodeId)||e.toggleNodeExpansion(y,n.focusedNodeId)),!0),c=y=>{if(n.focusedNodeId==null)return!1;if(e.isNodeExpanded(n.focusedNodeId)&&!e.isNodeDisabled(n.focusedNodeId))return e.toggleNodeExpansion(y,n.focusedNodeId),!0;const w=e.getNode(n.focusedNodeId).parentId;return w?(e.focusNode(y,w),!0):!1},f=(y,w,S)=>{let k,T;const E=S.toLowerCase(),_=[],R=[];Object.keys(i.current).forEach(N=>{const F=e.getNode(N),V=F.parentId?e.isNodeExpanded(F.parentId):!0,K=t.disabledItemsFocusable?!1:e.isNodeDisabled(N);V&&!K&&(_.push(N),R.push(i.current[N]))}),k=_.indexOf(w)+1,k>=_.length&&(k=0),T=B7(R,k,E),T===-1&&(T=B7(R,0,E)),T>-1&&e.focusNode(y,_[T])},p=(y,w)=>{e.isNodeDisabled(nb(e,w))||e.selectRange(y,{end:nb(e,w),current:w},!0)},m=(y,w)=>{e.isNodeDisabled(kP(e,w))||e.selectRange(y,{end:kP(e,w),current:w},!0)},b=y=>w=>{var S;(S=y.onKeyDown)==null||S.call(y,w);let k=!1;const T=w.key;if(w.altKey||w.currentTarget!==w.target||n.focusedNodeId==null)return;const E=w.ctrlKey||w.metaKey;switch(T){case" ":!t.disableSelection&&!e.isNodeDisabled(n.focusedNodeId)&&(k=!0,t.multiSelect&&w.shiftKey?e.selectRange(w,{end:n.focusedNodeId}):t.multiSelect?e.selectNode(w,n.focusedNodeId,!0):e.selectNode(w,n.focusedNodeId)),w.stopPropagation();break;case"Enter":e.isNodeDisabled(n.focusedNodeId)||(e.isNodeExpandable(n.focusedNodeId)?(e.toggleNodeExpansion(w,n.focusedNodeId),k=!0):t.disableSelection||(k=!0,t.multiSelect?e.selectNode(w,n.focusedNodeId,!0):e.selectNode(w,n.focusedNodeId))),w.stopPropagation();break;case"ArrowDown":t.multiSelect&&w.shiftKey&&!t.disableSelection&&p(w,n.focusedNodeId),e.focusNode(w,nb(e,n.focusedNodeId)),k=!0;break;case"ArrowUp":t.multiSelect&&w.shiftKey&&!t.disableSelection&&m(w,n.focusedNodeId),e.focusNode(w,kP(e,n.focusedNodeId)),k=!0;break;case"ArrowRight":o?k=c(w):k=s(w);break;case"ArrowLeft":o?k=s(w):k=c(w);break;case"Home":t.multiSelect&&E&&w.shiftKey&&!t.disableSelection&&!e.isNodeDisabled(n.focusedNodeId)&&e.rangeSelectToFirst(w,n.focusedNodeId),e.focusNode(w,TP(e)),k=!0;break;case"End":t.multiSelect&&E&&w.shiftKey&&!t.disableSelection&&!e.isNodeDisabled(n.focusedNodeId)&&e.rangeSelectToLast(w,n.focusedNodeId),e.focusNode(w,EP(e)),k=!0;break;default:T==="*"?(e.expandAllSiblings(w,n.focusedNodeId),k=!0):t.multiSelect&&E&&T.toLowerCase()==="a"&&!t.disableSelection?(e.selectRange(w,{start:TP(e),end:EP(e)}),k=!0):!E&&!w.shiftKey&&T7e(T)&&(f(w,n.focusedNodeId,T),k=!0)}k&&(w.preventDefault(),w.stopPropagation())};return{getRootProps:y=>({onKeyDown:b(y)})}},M7e=({instance:e,params:t})=>{const n=Us(t.id);return{getRootProps:()=>({id:n}),contextValue:{treeId:n,instance:e,multiSelect:t.multiSelect,disabledItemsFocusable:t.disabledItemsFocusable,icons:{defaultCollapseIcon:t.defaultCollapseIcon,defaultEndIcon:t.defaultEndIcon,defaultExpandIcon:t.defaultExpandIcon,defaultParentIcon:t.defaultParentIcon}}}},P7e=[g7e,PP,AP,DP,O7e,M7e],A7e=["disabledItemsFocusable","expanded","defaultExpanded","onNodeToggle","onNodeFocus","disableSelection","defaultSelected","selected","multiSelect","onNodeSelect","id","defaultCollapseIcon","defaultEndIcon","defaultExpandIcon","defaultParentIcon","children"],D7e=e=>{const{classes:t}=e;return qt({root:["root"]},n7e,t)},V7=et("ul",{name:"MuiTreeView",slot:"Root",overridesResolver:(e,t)=>t.root})({padding:0,margin:0,listStyle:"none",outline:0}),j7=M.forwardRef(function(t,n){const r=Yt({props:t,name:"MuiTreeView"}),o=r,i=r,{disabledItemsFocusable:a,expanded:s,defaultExpanded:c,onNodeToggle:f,onNodeFocus:p,disableSelection:m,defaultSelected:b,selected:y,multiSelect:w,onNodeSelect:S,id:k,defaultCollapseIcon:T,defaultEndIcon:E,defaultExpandIcon:_,defaultParentIcon:R,children:N}=i,F=vt(i,A7e),{getRootProps:V,contextValue:K}=l7e({disabledItemsFocusable:a,expanded:s,defaultExpanded:c,onNodeToggle:f,onNodeFocus:p,disableSelection:m,defaultSelected:b,selected:y,multiSelect:w,onNodeSelect:S,id:k,defaultCollapseIcon:T,defaultEndIcon:E,defaultExpandIcon:_,defaultParentIcon:R,plugins:P7e,rootRef:n}),Y=D7e(r),J=Kn({elementType:V7,externalSlotProps:{},externalForwardedProps:F,className:Y.root,getSlotProps:V,ownerState:o});return W(p7e,{value:K,children:W(V7,j({},J,{children:N}))})});process.env.NODE_ENV!=="production"&&(j7.propTypes={children:u.node,classes:u.object,className:u.string,defaultCollapseIcon:u.node,defaultEndIcon:u.node,defaultExpanded:u.arrayOf(u.string),defaultExpandIcon:u.node,defaultParentIcon:u.node,defaultSelected:u.oneOfType([u.arrayOf(u.string),u.string]),disabledItemsFocusable:u.bool,disableSelection:u.bool,expanded:u.arrayOf(u.string),id:u.string,multiSelect:u.bool,onNodeFocus:u.func,onNodeSelect:u.func,onNodeToggle:u.func,selected:u.any,sx:u.oneOfType([u.arrayOf(u.oneOfType([u.func,u.object,u.bool])),u.func,u.object])});const H7=()=>M.useContext(CP);function _7e(e){const{instance:t,multiSelect:n}=H7(),r=t?t.isNodeExpandable(e):!1,o=t?t.isNodeExpanded(e):!1,i=t?t.isNodeFocused(e):!1,a=t?t.isNodeSelected(e):!1,s=t?t.isNodeDisabled(e):!1;return{disabled:s,expanded:o,selected:a,focused:i,handleExpansion:m=>{if(t&&!s){i||t.focusNode(m,e);const b=n&&(m.shiftKey||m.ctrlKey||m.metaKey);r&&!(b&&t.isNodeExpanded(e))&&t.toggleNodeExpansion(m,e)}},handleSelection:m=>{t&&!s&&(i||t.focusNode(m,e),n&&(m.shiftKey||m.ctrlKey||m.metaKey)?m.shiftKey?t.selectRange(m,{end:e}):t.selectNode(m,e,!0):t.selectNode(m,e))},preventSelection:m=>{(m.shiftKey||m.ctrlKey||m.metaKey||s)&&m.preventDefault()}}}const N7e=["classes","className","displayIcon","expansionIcon","icon","label","nodeId","onClick","onMouseDown"],_P=M.forwardRef(function(t,n){const{classes:r,className:o,displayIcon:i,expansionIcon:a,icon:s,label:c,nodeId:f,onClick:p,onMouseDown:m}=t,b=vt(t,N7e),{disabled:y,expanded:w,selected:S,focused:k,handleExpansion:T,handleSelection:E,preventSelection:_}=_7e(f),R=s||a||i,N=V=>{_(V),m&&m(V)},F=V=>{T(V),E(V),p&&p(V)};return wt("div",j({},b,{className:At(o,r.root,w&&r.expanded,S&&r.selected,k&&r.focused,y&&r.disabled),onClick:F,onMouseDown:N,ref:n,children:[W("div",{className:r.iconContainer,children:R}),W("div",{className:r.label,children:c})]}))});process.env.NODE_ENV!=="production"&&(_P.propTypes={classes:u.object.isRequired,className:u.string,displayIcon:u.node,expansionIcon:u.node,icon:u.node,label:u.node,nodeId:u.string.isRequired});function R7e(e){return Zt("MuiTreeItem",e)}const Eu=Gt("MuiTreeItem",["root","group","content","expanded","selected","focused","disabled","iconContainer","label"]),I7e=["children","className","collapseIcon","ContentComponent","ContentProps","endIcon","expandIcon","disabled","icon","id","label","nodeId","onClick","onMouseDown","TransitionComponent","TransitionProps"],L7e=e=>{const{classes:t}=e;return qt({root:["root"],content:["content"],expanded:["expanded"],selected:["selected"],focused:["focused"],disabled:["disabled"],iconContainer:["iconContainer"],label:["label"],group:["group"]},R7e,t)},$7e=et("li",{name:"MuiTreeItem",slot:"Root",overridesResolver:(e,t)=>t.root})({listStyle:"none",margin:0,padding:0,outline:0}),F7e=et(_P,{name:"MuiTreeItem",slot:"Content",overridesResolver:(e,t)=>[t.content,t.iconContainer&&{[`& .${Eu.iconContainer}`]:t.iconContainer},t.label&&{[`& .${Eu.label}`]:t.label}]})(({theme:e})=>({padding:"0 8px",width:"100%",boxSizing:"border-box",display:"flex",alignItems:"center",cursor:"pointer",WebkitTapHighlightColor:"transparent","&:hover":{backgroundColor:(e.vars||e).palette.action.hover,"@media (hover: none)":{backgroundColor:"transparent"}},[`&.${Eu.disabled}`]:{opacity:(e.vars||e).palette.action.disabledOpacity,backgroundColor:"transparent"},[`&.${Eu.focused}`]:{backgroundColor:(e.vars||e).palette.action.focus},[`&.${Eu.selected}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / ${e.vars.palette.action.selectedOpacity})`:Di(e.palette.primary.main,e.palette.action.selectedOpacity),"&:hover":{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.hoverOpacity}))`:Di(e.palette.primary.main,e.palette.action.selectedOpacity+e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / ${e.vars.palette.action.selectedOpacity})`:Di(e.palette.primary.main,e.palette.action.selectedOpacity)}},[`&.${Eu.focused}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.focusOpacity}))`:Di(e.palette.primary.main,e.palette.action.selectedOpacity+e.palette.action.focusOpacity)}},[`& .${Eu.iconContainer}`]:{marginRight:4,width:15,display:"flex",flexShrink:0,justifyContent:"center","& svg":{fontSize:18}},[`& .${Eu.label}`]:j({paddingLeft:4,width:"100%",boxSizing:"border-box",minWidth:0,position:"relative"},e.typography.body1)})),z7e=et(pm,{name:"MuiTreeItem",slot:"Group",overridesResolver:(e,t)=>t.group})({margin:0,padding:0,marginLeft:17}),W7=M.forwardRef(function(t,n){const r=Yt({props:t,name:"MuiTreeItem"}),{children:o,className:i,collapseIcon:a,ContentComponent:s=_P,ContentProps:c,endIcon:f,expandIcon:p,disabled:m,icon:b,id:y,label:w,nodeId:S,onClick:k,onMouseDown:T,TransitionComponent:E=pm,TransitionProps:_}=r,R=vt(r,I7e),{icons:N,multiSelect:F,disabledItemsFocusable:V,treeId:K,instance:Y}=H7();let J;y!=null?J=y:K&&S&&(J=`${K}-${S}`);const[X,ne]=M.useState(null),ie=M.useRef(null),te=nr(ne,n),re=M.useMemo(()=>({element:X,id:S}),[S,X]),{index:de,parentId:le}=h7e(re),ce=!!(Array.isArray(o)?o.length:o),ve=Y?Y.isNodeExpanded(S):!1,fe=Y?Y.isNodeFocused(S):!1,Te=Y?Y.isNodeSelected(S):!1,Re=Y?Y.isNodeDisabled(S):!1,je=j({},r,{expanded:ve,focused:fe,selected:Te,disabled:Re}),ke=L7e(je);let me,Pe;ce&&(ve?Pe=a||N.defaultCollapseIcon:Pe=p||N.defaultExpandIcon),ce?me=N.defaultParentIcon:me=f||N.defaultEndIcon,M.useEffect(()=>{if(Y&&de!==-1)return Y.updateNode({id:S,idAttribute:J,index:de,parentId:le,expandable:ce,disabled:m}),()=>Y.removeNode(S)},[Y,le,de,S,ce,m,J]),M.useEffect(()=>{if(Y&&w){var Be,Le;return Y.mapFirstChar(S,((Be=(Le=ie.current)==null?void 0:Le.textContent)!=null?Be:"").substring(0,1).toLowerCase())}},[Y,S,w]);let Me;F?Me=Te:Te&&(Me=!0);function _e(Be){if(Be.target===Be.currentTarget){let Ne;typeof Be.target.getRootNode=="function"?Ne=Be.target.getRootNode():Ne=oo(Be.target),Ne.getElementById(K).focus({preventScroll:!0})}const Le=!V&ℜY&&!fe&&Be.currentTarget===Be.target&&!Le&&Y.focusNode(Be,S)}return wt($7e,j({className:At(ke.root,i),role:"treeitem","aria-expanded":ce?ve:void 0,"aria-selected":Me,"aria-disabled":Re||void 0,id:J,tabIndex:-1},R,{ownerState:je,onFocus:_e,ref:te,children:[W(F7e,j({as:s,ref:ie,classes:{root:ke.content,expanded:ke.expanded,selected:ke.selected,focused:ke.focused,disabled:ke.disabled,iconContainer:ke.iconContainer,label:ke.label},label:w,nodeId:S,onClick:k,onMouseDown:T,icon:b,expansionIcon:Pe,displayIcon:me,ownerState:je},c)),o&&W(MP,{id:S,children:W(z7e,j({as:E,unmountOnExit:!0,className:ke.group,in:ve,component:"ul",role:"group"},_,{children:o}))})]}))});process.env.NODE_ENV!=="production"&&(W7.propTypes={children:u.node,classes:u.object,className:u.string,collapseIcon:u.node,ContentComponent:Rf,ContentProps:u.object,disabled:u.bool,endIcon:u.node,expandIcon:u.node,icon:u.node,label:u.node,nodeId:u.string.isRequired,onFocus:kC,sx:u.oneOfType([u.arrayOf(u.oneOfType([u.func,u.object,u.bool])),u.func,u.object]),TransitionComponent:u.elementType,TransitionProps:u.object});const B7e=()=>{const e=({data:r,getOptionLabel:o=p=>p.label,getOptionIcon:i=p=>p.icon,getOptionValue:a=p=>p.value,getOptionParent:s=p=>p.parent,getOptionNavlink:c=p=>p.navlink,getOptionExternalLink:f=p=>p.externalLink})=>{const p=[];return r?.forEach(m=>{a(m)&&p.push({value:a(m),label:wt(Zr,{children:[i(m),o(m)]}),parent:s(m),externalLink:f(m),navlink:c(m)})}),p},t=(r=[],o)=>{const i=[];for(const a of r){const s=a;if(!o&&!s?.parent||s?.parent===o){const c=t(r,s.value);c.length>0&&(s.children=c),i.push(s)}}return i},n=(r,o)=>{const i=[];if(!o)return[];const a=r.find(s=>s.value===o);return a&&(i.push(a.value),i.push(...n(r,a.parent))),i};return{renderTreeToSpecificFieldName:e,buildTree:t,findAllExpanded:n}};function V7e({data:e,onClick:t,getOptionValue:n,getOptionIcon:r,getOptionLabel:o,getOptionParent:i,getOptionNavlink:a,getOptionExternalLink:s,noDataText:c="no data",...f}){const{buildTree:p,renderTreeToSpecificFieldName:m}=B7e(),b=p(m({data:e,getOptionLabel:o,getOptionIcon:r,getOptionValue:n,getOptionParent:i,getOptionNavlink:a,getOptionExternalLink:s})),y=({data:S,children:k,isLeaf:T})=>{if(!T)return W(Zr,{children:k});const E=t||!S.navlink?"span":(S.externalLink,"a"),_=t?{onClick:()=>{t(S)}}:S.externalLink?{href:S.navlink}:{href:S.navlink};return W(E,{..._,style:{textDecoration:"none",color:"inherit"},children:k})},w=S=>S.map(k=>W(y,{isLeaf:!(k.children&&k.children.length>0),data:k,children:W(W7,{nodeId:k.value,label:k.label,sx:{"& .MuiTreeItem-content":{flexDirection:"row-reverse",padding:"10px 15px",...f.treeItemContentStyle??{}},"& .MuiTreeItem-label":{display:"flex",flexDirection:"row",alignItems:"center",gap:"4px",...f.treeItemLabelStyle??{}}},children:k.children&&k.children.length>0&&w(k?.children)},k.value)}));return W(Zr,{children:b.length>0?W(j7,{defaultCollapseIcon:W(cxe,{}),defaultExpanded:[b[0].value],defaultExpandIcon:W(lxe,{}),disableSelection:!0,...f,children:w(b)}):W("div",{style:{width:"100%",textAlign:"center"},children:c})})}function j7e(e){return hr({tag:"svg",attr:{viewBox:"0 0 24 24"},child:[{tag:"path",attr:{d:"M10.25 2a8.25 8.25 0 0 1 6.34 13.53l5.69 5.69a.749.749 0 0 1-.326 1.275.749.749 0 0 1-.734-.215l-5.69-5.69A8.25 8.25 0 1 1 10.25 2ZM3.5 10.25a6.75 6.75 0 1 0 13.5 0 6.75 6.75 0 0 0-13.5 0Z"}}]})(e)}function Y7(e){let t;const n=(...r)=>{clearTimeout(t),t=setTimeout(()=>{e.onInputChange&&(!e.minLength||!r[1]||r[1].length>=e.minLength)&&e.onInputChange(...r)},300)};return W(pg,{popupIcon:W(j7e,{size:"20px"}),...e,sx:{...e.sx,"& .MuiAutocomplete-popupIndicator":{transform:"none"}},onFocus:n,onInputChange:n,renderOption:(r,o)=>wt("div",{...r,className:"KdSearchableInput_options",children:[W("div",{className:"KdSearchableInput_option_icon",children:e.getOptionIcon?e.getOptionIcon(o):o?.icon}),wt("div",{children:[W("div",{className:"KdSearchableInput_option_label",children:e.getOptionLabel?e.getOptionLabel(o):o?.label}),W("div",{className:"KdSearchableInput_option_value",children:e.getOptionValue?e.getOptionValue(o):o?.id})]})]}),PaperComponent:r=>W("div",{...r,children:r.children}),ListboxComponent:r=>W(bT,{...r,style:{maxHeight:"40vh"},children:r.children}),PopperComponent:r=>r.open?wt("div",{...r,className:"KdSearchableInput_popper_component",children:[e.optionsLabel&&wt(Zr,{children:[W("label",{className:"KdSearchableInput_popper_component_label",children:e.optionsLabel}),W(N4,{})]}),e.loading?W("div",{className:"KdSearchableInput_popper_component_loading",children:W(fs,{size:"20px"})}):W(Zr,{children:r.children})]}):null,filterOptions:r=>r,renderInput:e.renderInput?e.renderInput:r=>W(Hm,{...r,size:"small",required:!!e?.required,variant:e?.variant,label:e?.label,helperText:e?.error?void 0:e?.helperText,error:!!e?.error})})}function H7e(e,t=globalThis?.document){const n=Ns(e);vn(()=>{const r=o=>{o.key==="Escape"&&n(o)};return t.addEventListener("keydown",r),()=>t.removeEventListener("keydown",r)},[n,t])}const NP="dismissableLayer.update",W7e="dismissableLayer.pointerDownOutside",Y7e="dismissableLayer.focusOutside";let U7;const U7e=xf({layers:new Set,layersWithOutsidePointerEventsDisabled:new Set,branches:new Set}),K7e=rr((e,t)=>{var n;const{disableOutsidePointerEvents:r=!1,onEscapeKeyDown:o,onPointerDownOutside:i,onFocusOutside:a,onInteractOutside:s,onDismiss:c,...f}=e,p=yf(U7e),[m,b]=Mn(null),y=(n=m?.ownerDocument)!==null&&n!==void 0?n:globalThis?.document,[,w]=Mn({}),S=Ta(t,K=>b(K)),k=Array.from(p.layers),[T]=[...p.layersWithOutsidePointerEventsDisabled].slice(-1),E=k.indexOf(T),_=m?k.indexOf(m):-1,R=p.layersWithOutsidePointerEventsDisabled.size>0,N=_>=E,F=X7e(K=>{const Y=K.target,J=[...p.branches].some(X=>X.contains(Y));!N||J||(i?.(K),s?.(K),K.defaultPrevented||c?.())},y),V=G7e(K=>{const Y=K.target;[...p.branches].some(X=>X.contains(Y))||(a?.(K),s?.(K),K.defaultPrevented||c?.())},y);return H7e(K=>{_===p.layers.size-1&&(o?.(K),!K.defaultPrevented&&c&&(K.preventDefault(),c()))},y),vn(()=>{if(m)return r&&(p.layersWithOutsidePointerEventsDisabled.size===0&&(U7=y.body.style.pointerEvents,y.body.style.pointerEvents="none"),p.layersWithOutsidePointerEventsDisabled.add(m)),p.layers.add(m),K7(),()=>{r&&p.layersWithOutsidePointerEventsDisabled.size===1&&(y.body.style.pointerEvents=U7)}},[m,y,r,p]),vn(()=>()=>{m&&(p.layers.delete(m),p.layersWithOutsidePointerEventsDisabled.delete(m),K7())},[m,p]),vn(()=>{const K=()=>w({});return document.addEventListener(NP,K),()=>document.removeEventListener(NP,K)},[]),cn(Wi.div,j({},f,{ref:S,style:{pointerEvents:R?N?"auto":"none":void 0,...e.style},onFocusCapture:fr(e.onFocusCapture,V.onFocusCapture),onBlurCapture:fr(e.onBlurCapture,V.onBlurCapture),onPointerDownCapture:fr(e.onPointerDownCapture,F.onPointerDownCapture)}))});function X7e(e,t=globalThis?.document){const n=Ns(e),r=Wt(!1),o=Wt(()=>{});return vn(()=>{const i=s=>{if(s.target&&!r.current){let f=function(){X7(W7e,n,c,{discrete:!0})};const c={originalEvent:s};s.pointerType==="touch"?(t.removeEventListener("click",o.current),o.current=f,t.addEventListener("click",o.current,{once:!0})):f()}else t.removeEventListener("click",o.current);r.current=!1},a=window.setTimeout(()=>{t.addEventListener("pointerdown",i)},0);return()=>{window.clearTimeout(a),t.removeEventListener("pointerdown",i),t.removeEventListener("click",o.current)}},[t,n]),{onPointerDownCapture:()=>r.current=!0}}function G7e(e,t=globalThis?.document){const n=Ns(e),r=Wt(!1);return vn(()=>{const o=i=>{i.target&&!r.current&&X7(Y7e,n,{originalEvent:i},{discrete:!1})};return t.addEventListener("focusin",o),()=>t.removeEventListener("focusin",o)},[t,n]),{onFocusCapture:()=>r.current=!0,onBlurCapture:()=>r.current=!1}}function K7(){const e=new CustomEvent(NP);document.dispatchEvent(e)}function X7(e,t,n,{discrete:r}){const o=n.originalEvent.target,i=new CustomEvent(e,{bubbles:!1,cancelable:!0,detail:n});t&&o.addEventListener(e,t,{once:!0}),r?sWe(o,i):o.dispatchEvent(i)}let RP=0;function q7e(){vn(()=>{var e,t;const n=document.querySelectorAll("[data-radix-focus-guard]");return document.body.insertAdjacentElement("afterbegin",(e=n[0])!==null&&e!==void 0?e:G7()),document.body.insertAdjacentElement("beforeend",(t=n[1])!==null&&t!==void 0?t:G7()),RP++,()=>{RP===1&&document.querySelectorAll("[data-radix-focus-guard]").forEach(r=>r.remove()),RP--}},[])}function G7(){const e=document.createElement("span");return e.setAttribute("data-radix-focus-guard",""),e.tabIndex=0,e.style.cssText="outline: none; opacity: 0; position: fixed; pointer-events: none",e}const IP="focusScope.autoFocusOnMount",LP="focusScope.autoFocusOnUnmount",q7={bubbles:!1,cancelable:!0},Z7e=rr((e,t)=>{const{loop:n=!1,trapped:r=!1,onMountAutoFocus:o,onUnmountAutoFocus:i,...a}=e,[s,c]=Mn(null),f=Ns(o),p=Ns(i),m=Wt(null),b=Ta(t,S=>c(S)),y=Wt({paused:!1,pause(){this.paused=!0},resume(){this.paused=!1}}).current;vn(()=>{if(r){let S=function(_){if(y.paused||!s)return;const R=_.target;s.contains(R)?m.current=R:Tu(m.current,{select:!0})},k=function(_){if(y.paused||!s)return;const R=_.relatedTarget;R!==null&&(s.contains(R)||Tu(m.current,{select:!0}))},T=function(_){if(document.activeElement===document.body)for(const N of _)N.removedNodes.length>0&&Tu(s)};document.addEventListener("focusin",S),document.addEventListener("focusout",k);const E=new MutationObserver(T);return s&&E.observe(s,{childList:!0,subtree:!0}),()=>{document.removeEventListener("focusin",S),document.removeEventListener("focusout",k),E.disconnect()}}},[r,s,y.paused]),vn(()=>{if(s){Q7.add(y);const S=document.activeElement;if(!s.contains(S)){const T=new CustomEvent(IP,q7);s.addEventListener(IP,f),s.dispatchEvent(T),T.defaultPrevented||(J7e(r8e(Z7(s)),{select:!0}),document.activeElement===S&&Tu(s))}return()=>{s.removeEventListener(IP,f),setTimeout(()=>{const T=new CustomEvent(LP,q7);s.addEventListener(LP,p),s.dispatchEvent(T),T.defaultPrevented||Tu(S??document.body,{select:!0}),s.removeEventListener(LP,p),Q7.remove(y)},0)}}},[s,f,p,y]);const w=Zn(S=>{if(!n&&!r||y.paused)return;const k=S.key==="Tab"&&!S.altKey&&!S.ctrlKey&&!S.metaKey,T=document.activeElement;if(k&&T){const E=S.currentTarget,[_,R]=Q7e(E);_&&R?!S.shiftKey&&T===R?(S.preventDefault(),n&&Tu(_,{select:!0})):S.shiftKey&&T===_&&(S.preventDefault(),n&&Tu(R,{select:!0})):T===E&&S.preventDefault()}},[n,r,y.paused]);return cn(Wi.div,j({tabIndex:-1},a,{ref:b,onKeyDown:w}))});function J7e(e,{select:t=!1}={}){const n=document.activeElement;for(const r of e)if(Tu(r,{select:t}),document.activeElement!==n)return}function Q7e(e){const t=Z7(e),n=J7(t,e),r=J7(t.reverse(),e);return[n,r]}function Z7(e){const t=[],n=document.createTreeWalker(e,NodeFilter.SHOW_ELEMENT,{acceptNode:r=>{const o=r.tagName==="INPUT"&&r.type==="hidden";return r.disabled||r.hidden||o?NodeFilter.FILTER_SKIP:r.tabIndex>=0?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_SKIP}});for(;n.nextNode();)t.push(n.currentNode);return t}function J7(e,t){for(const n of e)if(!e8e(n,{upTo:t}))return n}function e8e(e,{upTo:t}){if(getComputedStyle(e).visibility==="hidden")return!0;for(;e;){if(t!==void 0&&e===t)return!1;if(getComputedStyle(e).display==="none")return!0;e=e.parentElement}return!1}function t8e(e){return e instanceof HTMLInputElement&&"select"in e}function Tu(e,{select:t=!1}={}){if(e&&e.focus){const n=document.activeElement;e.focus({preventScroll:!0}),e!==n&&t8e(e)&&t&&e.select()}}const Q7=n8e();function n8e(){let e=[];return{add(t){const n=e[0];t!==n&&n?.pause(),e=e8(e,t),e.unshift(t)},remove(t){var n;e=e8(e,t),(n=e[0])===null||n===void 0||n.resume()}}}function e8(e,t){const n=[...e],r=n.indexOf(t);return r!==-1&&n.splice(r,1),n}function r8e(e){return e.filter(t=>t.tagName!=="A")}const o8e=rr((e,t)=>{const{children:n,width:r=10,height:o=5,...i}=e;return cn(Wi.svg,j({},i,{ref:t,width:r,height:o,viewBox:"0 0 30 10",preserveAspectRatio:"none"}),e.asChild?n:cn("polygon",{points:"0,0 30,0 15,10"}))}),i8e=o8e;function a8e(e){const[t,n]=Mn(void 0);return Tp(()=>{if(e){n({width:e.offsetWidth,height:e.offsetHeight});const r=new ResizeObserver(o=>{if(!Array.isArray(o)||!o.length)return;const i=o[0];let a,s;if("borderBoxSize"in i){const c=i.borderBoxSize,f=Array.isArray(c)?c[0]:c;a=f.inlineSize,s=f.blockSize}else a=e.offsetWidth,s=e.offsetHeight;n({width:a,height:s})});return r.observe(e,{box:"border-box"}),()=>r.unobserve(e)}else n(void 0)},[e]),t}const t8="Popper",[n8,r8]=Ep(t8),[s8e,o8]=n8(t8),l8e=e=>{const{__scopePopper:t,children:n}=e,[r,o]=Mn(null);return cn(s8e,{scope:t,anchor:r,onAnchorChange:o},n)},c8e="PopperAnchor",u8e=rr((e,t)=>{const{__scopePopper:n,virtualRef:r,...o}=e,i=o8(c8e,n),a=Wt(null),s=Ta(t,a);return vn(()=>{i.onAnchorChange(r?.current||a.current)}),r?null:cn(Wi.div,j({},o,{ref:s}))}),i8="PopperContent",[d8e,f8e]=n8(i8),h8e=rr((e,t)=>{var n,r,o,i,a,s,c,f;const{__scopePopper:p,side:m="bottom",sideOffset:b=0,align:y="center",alignOffset:w=0,arrowPadding:S=0,avoidCollisions:k=!0,collisionBoundary:T=[],collisionPadding:E=0,sticky:_="partial",hideWhenDetached:R=!1,updatePositionStrategy:N="optimized",onPlaced:F,...V}=e,K=o8(i8,p),[Y,J]=Mn(null),X=Ta(t,Qe=>J(Qe)),[ne,ie]=Mn(null),te=a8e(ne),re=(n=te?.width)!==null&&n!==void 0?n:0,de=(r=te?.height)!==null&&r!==void 0?r:0,le=m+(y!=="center"?"-"+y:""),ce=typeof E=="number"?E:{top:0,right:0,bottom:0,left:0,...E},ve=Array.isArray(T)?T:[T],fe=ve.length>0,Te={padding:ce,boundary:ve.filter(g8e),altBoundary:fe},{refs:Re,floatingStyles:je,placement:ke,isPositioned:me,middlewareData:Pe}=ZZ({strategy:"fixed",placement:le,whileElementsMounted:(...Qe)=>HZ(...Qe,{animationFrame:N==="always"}),elements:{reference:K.anchor},middleware:[wZ({mainAxis:b+de,alignmentAxis:w}),k&&WZ({mainAxis:!0,crossAxis:!1,limiter:_==="partial"?XZ():void 0,...Te}),k&&YZ({...Te}),UZ({...Te,apply:({elements:Qe,rects:tt,availableWidth:ot,availableHeight:ze})=>{const{width:$e,height:Ce}=tt.reference,Oe=Qe.floating.style;Oe.setProperty("--radix-popper-available-width",`${ot}px`),Oe.setProperty("--radix-popper-available-height",`${ze}px`),Oe.setProperty("--radix-popper-anchor-width",`${$e}px`),Oe.setProperty("--radix-popper-anchor-height",`${Ce}px`)}}),ne&&qZ({element:ne,padding:S}),v8e({arrowWidth:re,arrowHeight:de}),R&&KZ({strategy:"referenceHidden",...Te})]}),[Me,_e]=s8(ke),Be=Ns(F);Tp(()=>{me&&Be?.()},[me,Be]);const Le=(o=Pe.arrow)===null||o===void 0?void 0:o.x,Ne=(i=Pe.arrow)===null||i===void 0?void 0:i.y,Ee=((a=Pe.arrow)===null||a===void 0?void 0:a.centerOffset)!==0,[He,Ie]=Mn();return Tp(()=>{Y&&Ie(window.getComputedStyle(Y).zIndex)},[Y]),cn("div",{ref:Re.setFloating,"data-radix-popper-content-wrapper":"",style:{...je,transform:me?je.transform:"translate(0, -200%)",minWidth:"max-content",zIndex:He,"--radix-popper-transform-origin":[(s=Pe.transformOrigin)===null||s===void 0?void 0:s.x,(c=Pe.transformOrigin)===null||c===void 0?void 0:c.y].join(" ")},dir:e.dir},cn(d8e,{scope:p,placedSide:Me,onArrowChange:ie,arrowX:Le,arrowY:Ne,shouldHideArrow:Ee},cn(Wi.div,j({"data-side":Me,"data-align":_e},V,{ref:X,style:{...V.style,animation:me?void 0:"none",opacity:(f=Pe.hide)!==null&&f!==void 0&&f.referenceHidden?0:void 0}}))))}),a8="PopperArrow",p8e={top:"bottom",right:"left",bottom:"top",left:"right"},m8e=rr(function(t,n){const{__scopePopper:r,...o}=t,i=f8e(a8,r),a=p8e[i.placedSide];return cn("span",{ref:i.onArrowChange,style:{position:"absolute",left:i.arrowX,top:i.arrowY,[a]:0,transformOrigin:{top:"",right:"0 0",bottom:"center 0",left:"100% 0"}[i.placedSide],transform:{top:"translateY(100%)",right:"translateY(50%) rotate(90deg) translateX(-50%)",bottom:"rotate(180deg)",left:"translateY(50%) rotate(-90deg) translateX(50%)"}[i.placedSide],visibility:i.shouldHideArrow?"hidden":void 0}},cn(i8e,j({},o,{ref:n,style:{...o.style,display:"block"}})))});function g8e(e){return e!==null}const v8e=e=>({name:"transformOrigin",options:e,fn(t){var n,r,o,i,a;const{placement:s,rects:c,middlewareData:f}=t,m=((n=f.arrow)===null||n===void 0?void 0:n.centerOffset)!==0,b=m?0:e.arrowWidth,y=m?0:e.arrowHeight,[w,S]=s8(s),k={start:"0%",center:"50%",end:"100%"}[S],T=((r=(o=f.arrow)===null||o===void 0?void 0:o.x)!==null&&r!==void 0?r:0)+b/2,E=((i=(a=f.arrow)===null||a===void 0?void 0:a.y)!==null&&i!==void 0?i:0)+y/2;let _="",R="";return w==="bottom"?(_=m?k:`${T}px`,R=`${-y}px`):w==="top"?(_=m?k:`${T}px`,R=`${c.floating.height+y}px`):w==="right"?(_=`${-y}px`,R=m?k:`${E}px`):w==="left"&&(_=`${c.floating.width+y}px`,R=m?k:`${E}px`),{data:{x:_,y:R}}}});function s8(e){const[t,n="center"]=e.split("-");return[t,n]}const l8=l8e,b8e=u8e,y8e=h8e,x8e=rr((e,t)=>{var n;const{container:r=globalThis==null||(n=globalThis.document)===null||n===void 0?void 0:n.body,...o}=e;return r?wf.createPortal(cn(Wi.div,j({},o,{ref:t})),r):null});var Ew="right-scroll-bar-position",Tw="width-before-scroll-bar",w8e="with-scroll-bars-hidden",S8e="--removed-body-scroll-bar-size";function $P(e,t){return typeof e=="function"?e(t):e&&(e.current=t),e}function C8e(e,t){var n=Mn(function(){return{value:e,callback:t,facade:{get current(){return n.value},set current(r){var o=n.value;o!==r&&(n.value=r,n.callback(r,o))}}}})[0];return n.callback=t,n.facade}var c8=new WeakMap;function k8e(e,t){var n=C8e(t||null,function(r){return e.forEach(function(o){return $P(o,r)})});return M.useLayoutEffect(function(){var r=c8.get(n);if(r){var o=new Set(r),i=new Set(e),a=n.current;o.forEach(function(s){i.has(s)||$P(s,null)}),i.forEach(function(s){o.has(s)||$P(s,a)})}c8.set(n,e)},[e]),n}function E8e(e){return e}function T8e(e,t){t===void 0&&(t=E8e);var n=[],r=!1,o={read:function(){if(r)throw new Error("Sidecar: could not `read` from an `assigned` medium. `read` could be used only with `useMedium`.");return n.length?n[n.length-1]:e},useMedium:function(i){var a=t(i,r);return n.push(a),function(){n=n.filter(function(s){return s!==a})}},assignSyncMedium:function(i){for(r=!0;n.length;){var a=n;n=[],a.forEach(i)}n={push:function(s){return i(s)},filter:function(){return n}}},assignMedium:function(i){r=!0;var a=[];if(n.length){var s=n;n=[],s.forEach(i),a=n}var c=function(){var p=a;a=[],p.forEach(i)},f=function(){return Promise.resolve().then(c)};f(),n={push:function(p){a.push(p),f()},filter:function(p){return a=a.filter(p),n}}}};return o}function O8e(e){e===void 0&&(e={});var t=T8e(null);return t.options=ul({async:!0,ssr:!1},e),t}var u8=function(e){var t=e.sideCar,n=R4(e,["sideCar"]);if(!t)throw new Error("Sidecar: please provide `sideCar` property to import the right car");var r=t.read();if(!r)throw new Error("Sidecar medium not found");return M.createElement(r,ul({},n))};u8.isSideCarExport=!0;function M8e(e,t){return e.useMedium(t),u8}var d8=O8e(),FP=function(){},Ow=M.forwardRef(function(e,t){var n=M.useRef(null),r=M.useState({onScrollCapture:FP,onWheelCapture:FP,onTouchMoveCapture:FP}),o=r[0],i=r[1],a=e.forwardProps,s=e.children,c=e.className,f=e.removeScrollBar,p=e.enabled,m=e.shards,b=e.sideCar,y=e.noIsolation,w=e.inert,S=e.allowPinchZoom,k=e.as,T=k===void 0?"div":k,E=R4(e,["forwardProps","children","className","removeScrollBar","enabled","shards","sideCar","noIsolation","inert","allowPinchZoom","as"]),_=b,R=k8e([n,t]),N=ul(ul({},E),o);return M.createElement(M.Fragment,null,p&&M.createElement(_,{sideCar:d8,removeScrollBar:f,shards:m,noIsolation:y,inert:w,setCallbacks:i,allowPinchZoom:!!S,lockRef:n}),a?M.cloneElement(M.Children.only(s),ul(ul({},N),{ref:R})):M.createElement(T,ul({},N,{className:c,ref:R}),s))});Ow.defaultProps={enabled:!0,removeScrollBar:!0,inert:!1},Ow.classNames={fullWidth:Tw,zeroRight:Ew};var P8e=function(){if(typeof __webpack_nonce__<"u")return __webpack_nonce__};function A8e(){if(!document)return null;var e=document.createElement("style");e.type="text/css";var t=P8e();return t&&e.setAttribute("nonce",t),e}function D8e(e,t){e.styleSheet?e.styleSheet.cssText=t:e.appendChild(document.createTextNode(t))}function _8e(e){var t=document.head||document.getElementsByTagName("head")[0];t.appendChild(e)}var N8e=function(){var e=0,t=null;return{add:function(n){e==0&&(t=A8e())&&(D8e(t,n),_8e(t)),e++},remove:function(){e--,!e&&t&&(t.parentNode&&t.parentNode.removeChild(t),t=null)}}},R8e=function(){var e=N8e();return function(t,n){M.useEffect(function(){return e.add(t),function(){e.remove()}},[t&&n])}},f8=function(){var e=R8e(),t=function(n){var r=n.styles,o=n.dynamic;return e(r,o),null};return t},I8e={left:0,top:0,right:0,gap:0},zP=function(e){return parseInt(e||"",10)||0},L8e=function(e){var t=window.getComputedStyle(document.body),n=t[e==="padding"?"paddingLeft":"marginLeft"],r=t[e==="padding"?"paddingTop":"marginTop"],o=t[e==="padding"?"paddingRight":"marginRight"];return[zP(n),zP(r),zP(o)]},$8e=function(e){if(e===void 0&&(e="margin"),typeof window>"u")return I8e;var t=L8e(e),n=document.documentElement.clientWidth,r=window.innerWidth;return{left:t[0],top:t[1],right:t[2],gap:Math.max(0,r-n+t[2]-t[0])}},F8e=f8(),Mw="data-scroll-locked",z8e=function(e,t,n,r){var o=e.left,i=e.top,a=e.right,s=e.gap;return n===void 0&&(n="margin"),`
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import "./kdpaAdvancedList.scss";
|
|
2
|
+
interface KdpaAdvancedListProps {
|
|
3
|
+
components: any;
|
|
4
|
+
pagination: any;
|
|
5
|
+
loading?: boolean;
|
|
6
|
+
selection: any;
|
|
7
|
+
ordering: any;
|
|
8
|
+
columns: any;
|
|
9
|
+
rows: any;
|
|
10
|
+
}
|
|
11
|
+
declare const KdpaAdvancedList: ({ components, pagination, selection, ordering, loading, columns, rows, ...rest }: KdpaAdvancedListProps) => import("react/jsx-runtime").JSX.Element;
|
|
12
|
+
export default KdpaAdvancedList;
|
|
13
|
+
//# sourceMappingURL=KdpaAdvancedList.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"KdpaAdvancedList.d.ts","sourceRoot":"","sources":["../../../../src/components/AdvancedList/KdpaAdvancedList.tsx"],"names":[],"mappings":"AAOA,OAAO,yBAAyB,CAAC;AAsCjC,UAAU,qBAAqB;IAC7B,UAAU,EAAE,GAAG,CAAC;IAChB,UAAU,EAAE,GAAG,CAAC;IAChB,OAAO,CAAC,EAAE,OAAO,CAAC;IAClB,SAAS,EAAE,GAAG,CAAC;IACf,QAAQ,EAAE,GAAG,CAAC;IACd,OAAO,EAAE,GAAG,CAAC;IACb,IAAI,EAAE,GAAG,CAAC;CACX;AAED,QAAA,MAAM,gBAAgB,qFASnB,qBAAqB,4CAoEvB,CAAC;AAEF,eAAe,gBAAgB,CAAC"}
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import { Meta, StoryObj } from "@storybook/react";
|
|
2
|
+
import KdpaAdvancedList from "./KdpaAdvancedList";
|
|
3
|
+
declare const meta: Meta<typeof KdpaAdvancedList>;
|
|
4
|
+
export default meta;
|
|
5
|
+
type Story = StoryObj<typeof KdpaAdvancedList>;
|
|
6
|
+
export declare const Primary: Story;
|
|
7
|
+
//# sourceMappingURL=KdpaAdvancedList.stories.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"KdpaAdvancedList.stories.d.ts","sourceRoot":"","sources":["../../../../src/components/AdvancedList/KdpaAdvancedList.stories.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,IAAI,EAAE,QAAQ,EAAE,MAAM,kBAAkB,CAAC;AAClD,OAAO,gBAAgB,MAAM,oBAAoB,CAAC;AAIlD,QAAA,MAAM,IAAI,EAAE,IAAI,CAAC,OAAO,gBAAgB,CAGvC,CAAC;AAEF,eAAe,IAAI,CAAC;AACpB,KAAK,KAAK,GAAG,QAAQ,CAAC,OAAO,gBAAgB,CAAC,CAAC;AA0D/C,eAAO,MAAM,OAAO,EAAE,KAwBrB,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/components/AdvancedList/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,IAAI,gBAAgB,EAAE,MAAM,oBAAoB,CAAC"}
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
import { EditorProps } from "@monaco-editor/react";
|
|
2
|
+
export type KdpaCodeEditorProps = EditorProps;
|
|
3
|
+
declare function KdpaCodeEditor(props: KdpaCodeEditorProps): import("react/jsx-runtime").JSX.Element;
|
|
4
|
+
export default KdpaCodeEditor;
|
|
5
|
+
//# sourceMappingURL=KdpaCodeEditor.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"KdpaCodeEditor.d.ts","sourceRoot":"","sources":["../../../../src/components/CodeEditor/KdpaCodeEditor.tsx"],"names":[],"mappings":"AAAA,OAAe,EAAE,WAAW,EAAE,MAAM,sBAAsB,CAAC;AAE3D,MAAM,MAAM,mBAAmB,GAAG,WAAW,CAAC;AAE9C,iBAAS,cAAc,CAAC,KAAK,EAAE,mBAAmB,2CAMjD;AAED,eAAe,cAAc,CAAC"}
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { Meta, StoryObj } from "@storybook/react";
|
|
2
|
+
import KdpaCodeEditor from "./KdpaCodeEditor";
|
|
3
|
+
declare const meta: Meta<typeof KdpaCodeEditor>;
|
|
4
|
+
export default meta;
|
|
5
|
+
type Story = StoryObj<typeof KdpaCodeEditor>;
|
|
6
|
+
export declare const Primary: Story;
|
|
7
|
+
export declare const Secondary: Story;
|
|
8
|
+
//# sourceMappingURL=KdpaCodeEditor.stories.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"KdpaCodeEditor.stories.d.ts","sourceRoot":"","sources":["../../../../src/components/CodeEditor/KdpaCodeEditor.stories.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,IAAI,EAAE,QAAQ,EAAE,MAAM,kBAAkB,CAAC;AAClD,OAAO,cAAc,MAAM,kBAAkB,CAAC;AAE9C,QAAA,MAAM,IAAI,EAAE,IAAI,CAAC,OAAO,cAAc,CAGrC,CAAC;AAEF,eAAe,IAAI,CAAC;AACpB,KAAK,KAAK,GAAG,QAAQ,CAAC,OAAO,cAAc,CAAC,CAAC;AAE7C,eAAO,MAAM,OAAO,EAAE,KAgBrB,CAAC;AAEF,eAAO,MAAM,SAAS,EAAE,KAavB,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/components/CodeEditor/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,IAAI,cAAc,EAAE,MAAM,kBAAkB,CAAC;AAC7D,YAAY,EAAE,mBAAmB,EAAE,MAAM,kBAAkB,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"KdpaDataGrid.d.ts","sourceRoot":"","sources":["../../../../src/components/DataGrid/KdpaDataGrid.tsx"],"names":[],"mappings":"AAEA,OAAO,iBAAiB,CAAC;AAEzB,iBAAS,YAAY,CAAC,KAAK,EAAE,GAAG,2CAE/B;AAED,eAAe,YAAY,CAAC"}
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import { Meta, StoryObj } from "@storybook/react";
|
|
2
|
+
import KdpaDataGrid from "./KdpaDataGrid";
|
|
3
|
+
declare const meta: Meta<typeof KdpaDataGrid>;
|
|
4
|
+
export default meta;
|
|
5
|
+
type Story = StoryObj<typeof KdpaDataGrid>;
|
|
6
|
+
export declare const Primary: Story;
|
|
7
|
+
//# sourceMappingURL=KdpaDataGrid.stories.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"KdpaDataGrid.stories.d.ts","sourceRoot":"","sources":["../../../../src/components/DataGrid/KdpaDataGrid.stories.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,IAAI,EAAE,QAAQ,EAAE,MAAM,kBAAkB,CAAC;AAClD,OAAO,YAAY,MAAM,gBAAgB,CAAC;AAE1C,QAAA,MAAM,IAAI,EAAE,IAAI,CAAC,OAAO,YAAY,CAInC,CAAC;AAEF,eAAe,IAAI,CAAC;AACpB,KAAK,KAAK,GAAG,QAAQ,CAAC,OAAO,YAAY,CAAC,CAAC;AAwE3C,eAAO,MAAM,OAAO,EAAE,KAyBrB,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/components/DataGrid/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,IAAI,YAAY,EAAE,MAAM,gBAAgB,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Temp.d.ts","sourceRoot":"","sources":["../../../../../src/designerKit/components/Alert/Temp.tsx"],"names":[],"mappings":"AAMA,QAAA,MAAM,UAAU,yDA2Gf,CAAC;AACF,eAAe,UAAU,CAAC"}
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import React from "react";
|
|
2
|
+
export interface KdFormFieldProps {
|
|
3
|
+
name: string;
|
|
4
|
+
rules?: any;
|
|
5
|
+
Component: React.ElementType;
|
|
6
|
+
autoComplete?: boolean;
|
|
7
|
+
onChange?: (e: unknown) => void;
|
|
8
|
+
[x: string]: any;
|
|
9
|
+
}
|
|
10
|
+
declare function KdpaFormField({ name, rules, Component, ...props }: KdFormFieldProps): import("react/jsx-runtime").JSX.Element;
|
|
11
|
+
export default KdpaFormField;
|
|
12
|
+
//# sourceMappingURL=KdpaFormField.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"KdpaFormField.d.ts","sourceRoot":"","sources":["../../../../../../src/designerKit/components/Form/KdFormField/KdpaFormField.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAI1B,MAAM,WAAW,gBAAgB;IAC/B,IAAI,EAAE,MAAM,CAAC;IACb,KAAK,CAAC,EAAE,GAAG,CAAC;IACZ,SAAS,EAAE,KAAK,CAAC,WAAW,CAAC;IAC7B,YAAY,CAAC,EAAE,OAAO,CAAC;IACvB,QAAQ,CAAC,EAAE,CAAC,CAAC,EAAE,OAAO,KAAK,IAAI,CAAC;IAChC,CAAC,CAAC,EAAE,MAAM,GAAI,GAAG,CAAA;CAClB;AAED,iBAAS,aAAa,CAAC,EACrB,IAAS,EACT,KAAU,EACV,SAAS,EACT,GAAG,KAAK,EACT,EAAE,gBAAgB,2CA6BlB;AAED,eAAe,aAAa,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"PanelWrapper.d.ts","sourceRoot":"","sources":["../../../../../src/designerKit/components/GridPanel/PanelWrapper.tsx"],"names":[],"mappings":";AAGA,
|
|
1
|
+
{"version":3,"file":"PanelWrapper.d.ts","sourceRoot":"","sources":["../../../../../src/designerKit/components/GridPanel/PanelWrapper.tsx"],"names":[],"mappings":";AAGA,MAAM,WAAW,iBAAiB;IAChC,MAAM,CAAC,EAAE,OAAO,CAAC;IACjB,QAAQ,EAAE,KAAK,CAAC,SAAS,CAAC;IAC1B,OAAO,EAAE,MAAM,IAAI,CAAC;IACpB,CAAC,CAAC,EAAE,MAAM,GAAG,GAAG,CAAC;CAClB;AAED,iBAAS,YAAY,CAAC,EAAE,IAAe,EAAE,MAAM,EAAE,QAAQ,EAAE,OAAO,EAAE,GAAG,KAAK,EAAE,EAAE,iBAAiB,2CAehG;AAED,eAAe,YAAY,CAAC"}
|
|
@@ -6,8 +6,9 @@ export interface KdModalProps extends Omit<DialogProps, "open"> {
|
|
|
6
6
|
onClose: () => void;
|
|
7
7
|
isOpen: boolean;
|
|
8
8
|
hasHeader?: boolean;
|
|
9
|
+
backdropClick?: boolean;
|
|
9
10
|
[x: string]: any;
|
|
10
11
|
}
|
|
11
|
-
declare function KdModal({ title, children, onClose, isOpen, fullWidth, hasHeader, ...props }: KdModalProps): import("react/jsx-runtime").JSX.Element;
|
|
12
|
+
declare function KdModal({ title, children, onClose, isOpen, fullWidth, hasHeader, backdropClick, ...props }: KdModalProps): import("react/jsx-runtime").JSX.Element;
|
|
12
13
|
export default KdModal;
|
|
13
14
|
//# sourceMappingURL=KdModal.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"KdModal.d.ts","sourceRoot":"","sources":["../../../../../src/designerKit/components/Modal/KdModal.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAI1B,OAAe,EAAE,WAAW,EAAE,MAAM,sBAAsB,CAAC;AAG3D,MAAM,WAAW,YAAa,SAAQ,IAAI,CAAC,WAAW,EAAE,MAAM,CAAC;IAC7D,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,QAAQ,EAAE,KAAK,CAAC,SAAS,CAAC;IAC1B,OAAO,EAAE,MAAM,IAAI,CAAC;IACpB,MAAM,EAAE,OAAO,CAAC;IAChB,SAAS,CAAC,EAAE,OAAO,CAAC;IACpB,CAAC,CAAC,EAAE,MAAM,GAAG,GAAG,CAAC;CAClB;AAED,iBAAS,OAAO,CAAC,EACf,KAAK,EACL,QAAQ,EACR,OAAO,EACP,MAAM,EACN,SAAgB,EAChB,SAAgB,EAChB,GAAG,KAAK,EACT,EAAE,YAAY,
|
|
1
|
+
{"version":3,"file":"KdModal.d.ts","sourceRoot":"","sources":["../../../../../src/designerKit/components/Modal/KdModal.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAI1B,OAAe,EAAE,WAAW,EAAE,MAAM,sBAAsB,CAAC;AAG3D,MAAM,WAAW,YAAa,SAAQ,IAAI,CAAC,WAAW,EAAE,MAAM,CAAC;IAC7D,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,QAAQ,EAAE,KAAK,CAAC,SAAS,CAAC;IAC1B,OAAO,EAAE,MAAM,IAAI,CAAC;IACpB,MAAM,EAAE,OAAO,CAAC;IAChB,SAAS,CAAC,EAAE,OAAO,CAAC;IACpB,aAAa,CAAC,EAAE,OAAO,CAAC;IACxB,CAAC,CAAC,EAAE,MAAM,GAAG,GAAG,CAAC;CAClB;AAED,iBAAS,OAAO,CAAC,EACf,KAAK,EACL,QAAQ,EACR,OAAO,EACP,MAAM,EACN,SAAgB,EAChB,SAAgB,EAChB,aAAoB,EACpB,GAAG,KAAK,EACT,EAAE,YAAY,2CA+Cd;AAED,eAAe,OAAO,CAAC"}
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
export declare const useKdTreeHelper: () => {
|
|
2
|
+
renderTreeCheckBox: (data: unknown[], valueField: string, labelField: string, parentField: string, iconField?: string) => any[];
|
|
3
|
+
buildTree: (flatTree?: never[], parent?: undefined) => any[];
|
|
4
|
+
};
|
|
5
|
+
//# sourceMappingURL=useKdTreeHelper.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"useKdTreeHelper.d.ts","sourceRoot":"","sources":["../../../../../src/designerKit/components/Tree/useKdTreeHelper.tsx"],"names":[],"mappings":"AAAA,eAAO,MAAM,eAAe;+BAElB,OAAO,EAAE,cACH,MAAM,cACN,MAAM,eACL,MAAM,cACP,MAAM;;CAmCrB,CAAC"}
|
package/dist/types/designerKit/components/Uploader/KdAdvanceFileUploader/DroppedFiles.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"DroppedFiles.d.ts","sourceRoot":"","sources":["../../../../../../src/designerKit/components/Uploader/KdAdvanceFileUploader/DroppedFiles.tsx"],"names":[],"mappings":"AAEA,OAAO,EAAE,iBAAiB,EAAE,MAAM,kCAAkC,CAAC;AAErE,UAAU,iBAAiB;IACzB,IAAI,EAAE,MAAM,CAAC;IACb,QAAQ,EAAE,CAAC,IAAI,EAAE,MAAM,KAAK,IAAI,CAAC;IACjC,aAAa,CAAC,EAAE,iBAAiB,CAAC;CACnC;AAED,MAAM,CAAC,OAAO,UAAU,YAAY,CAAC,EACnC,IAAI,EACJ,QAAQ,EACR,aAAa,GACd,EAAE,iBAAiB,
|
|
1
|
+
{"version":3,"file":"DroppedFiles.d.ts","sourceRoot":"","sources":["../../../../../../src/designerKit/components/Uploader/KdAdvanceFileUploader/DroppedFiles.tsx"],"names":[],"mappings":"AAEA,OAAO,EAAE,iBAAiB,EAAE,MAAM,kCAAkC,CAAC;AAErE,UAAU,iBAAiB;IACzB,IAAI,EAAE,MAAM,CAAC;IACb,QAAQ,EAAE,CAAC,IAAI,EAAE,MAAM,KAAK,IAAI,CAAC;IACjC,aAAa,CAAC,EAAE,iBAAiB,CAAC;CACnC;AAED,MAAM,CAAC,OAAO,UAAU,YAAY,CAAC,EACnC,IAAI,EACJ,QAAQ,EACR,aAAa,GACd,EAAE,iBAAiB,2CA8DnB"}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { TypeUploadHandler } from "../KdFileUploader/KdFileUploader";
|
|
2
|
+
interface DroppedFilesProps {
|
|
3
|
+
item: any;
|
|
4
|
+
uploadHandler?: TypeUploadHandler;
|
|
5
|
+
}
|
|
6
|
+
export declare function CircularProgressWithLabel(props: any): import("react/jsx-runtime").JSX.Element;
|
|
7
|
+
export default function DroppingFiles({ item }: DroppedFilesProps): import("react/jsx-runtime").JSX.Element;
|
|
8
|
+
export {};
|
|
9
|
+
//# sourceMappingURL=DroppingFiles.d.ts.map
|
package/dist/types/designerKit/components/Uploader/KdAdvanceFileUploader/DroppingFiles.d.ts.map
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"DroppingFiles.d.ts","sourceRoot":"","sources":["../../../../../../src/designerKit/components/Uploader/KdAdvanceFileUploader/DroppingFiles.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,iBAAiB,EAAE,MAAM,kCAAkC,CAAC;AAIrE,UAAU,iBAAiB;IACzB,IAAI,EAAE,GAAG,CAAC;IACV,aAAa,CAAC,EAAE,iBAAiB,CAAC;CACnC;AAED,wBAAgB,yBAAyB,CAAC,KAAK,EAAE,GAAG,2CAsBnD;AACD,MAAM,CAAC,OAAO,UAAU,aAAa,CAAC,EAAE,IAAI,EAAE,EAAE,iBAAiB,2CA2ChE"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"UploadedItems.d.ts","sourceRoot":"","sources":["../../../../../../src/designerKit/components/Uploader/KdFileUploader/UploadedItems.tsx"],"names":[],"mappings":"AAGA,OAAO,EAAE,iBAAiB,EAAE,MAAM,kBAAkB,CAAC;AAErD,UAAU,kBAAkB;IAC1B,IAAI,EAAE,MAAM,CAAC;IACb,QAAQ,EAAE,CAAC,IAAI,EAAE,MAAM,KAAK,IAAI,CAAC;IACjC,aAAa,CAAC,EAAE,iBAAiB,CAAC;CACnC;AAED,iBAAS,aAAa,CAAC,EAAE,IAAI,EAAE,aAAa,EAAE,QAAQ,EAAE,EAAE,kBAAkB,
|
|
1
|
+
{"version":3,"file":"UploadedItems.d.ts","sourceRoot":"","sources":["../../../../../../src/designerKit/components/Uploader/KdFileUploader/UploadedItems.tsx"],"names":[],"mappings":"AAGA,OAAO,EAAE,iBAAiB,EAAE,MAAM,kBAAkB,CAAC;AAErD,UAAU,kBAAkB;IAC1B,IAAI,EAAE,MAAM,CAAC;IACb,QAAQ,EAAE,CAAC,IAAI,EAAE,MAAM,KAAK,IAAI,CAAC;IACjC,aAAa,CAAC,EAAE,iBAAiB,CAAC;CACnC;AAED,iBAAS,aAAa,CAAC,EAAE,IAAI,EAAE,aAAa,EAAE,QAAQ,EAAE,EAAE,kBAAkB,2CA8D3E;AAED,eAAe,aAAa,CAAC"}
|
|
@@ -0,0 +1,53 @@
|
|
|
1
|
+
export type TypeAcceptUploader = {
|
|
2
|
+
image?: string[] | "ALL";
|
|
3
|
+
video?: string[] | "ALL";
|
|
4
|
+
text?: string[] | "ALL";
|
|
5
|
+
compress?: string[] | "ALL";
|
|
6
|
+
};
|
|
7
|
+
export declare const fileExtension: {
|
|
8
|
+
image: string[];
|
|
9
|
+
text: string[];
|
|
10
|
+
video: string[];
|
|
11
|
+
compress: string[];
|
|
12
|
+
};
|
|
13
|
+
export declare const pathFile: {
|
|
14
|
+
streamPath: string;
|
|
15
|
+
thumbnailstreamPath: string;
|
|
16
|
+
tempPath: string;
|
|
17
|
+
thumbnailTempPath: string;
|
|
18
|
+
};
|
|
19
|
+
export interface KdUseFileUploadType {
|
|
20
|
+
APIURL?: string;
|
|
21
|
+
UPLOAD_REST_URL?: string;
|
|
22
|
+
sessionId?: string;
|
|
23
|
+
fileSizeLimit: number;
|
|
24
|
+
fileCountLimit: number;
|
|
25
|
+
validUploadType: string[];
|
|
26
|
+
}
|
|
27
|
+
declare function KdUseFileUpload({ APIURL, UPLOAD_REST_URL, sessionId, fileSizeLimit, fileCountLimit, validUploadType, }: KdUseFileUploadType): {
|
|
28
|
+
APIURL: string;
|
|
29
|
+
UPLOAD_REST_URL: string;
|
|
30
|
+
uploadingFiles: {
|
|
31
|
+
session?: string | undefined;
|
|
32
|
+
progress: number;
|
|
33
|
+
type: string;
|
|
34
|
+
file: File;
|
|
35
|
+
}[];
|
|
36
|
+
files: {
|
|
37
|
+
session: string;
|
|
38
|
+
progress?: number | undefined;
|
|
39
|
+
type?: string | undefined;
|
|
40
|
+
fileURL?: string | undefined;
|
|
41
|
+
file?: File | undefined;
|
|
42
|
+
}[];
|
|
43
|
+
removeFile: (session: string) => void;
|
|
44
|
+
handleFileChange: (e: React.ChangeEvent<HTMLInputElement>, internalValidUploadType: TypeAcceptUploader) => Promise<void>;
|
|
45
|
+
fileExtension: {
|
|
46
|
+
image: string[];
|
|
47
|
+
text: string[];
|
|
48
|
+
video: string[];
|
|
49
|
+
compress: string[];
|
|
50
|
+
};
|
|
51
|
+
};
|
|
52
|
+
export default KdUseFileUpload;
|
|
53
|
+
//# sourceMappingURL=KdUseFileUpload.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"KdUseFileUpload.d.ts","sourceRoot":"","sources":["../../../../../../src/designerKit/components/Uploader/KdUseFileUpload/KdUseFileUpload.ts"],"names":[],"mappings":"AAGA,MAAM,MAAM,kBAAkB,GAAG;IAC/B,KAAK,CAAC,EAAE,MAAM,EAAE,GAAG,KAAK,CAAC;IACzB,KAAK,CAAC,EAAE,MAAM,EAAE,GAAG,KAAK,CAAC;IACzB,IAAI,CAAC,EAAE,MAAM,EAAE,GAAG,KAAK,CAAC;IACxB,QAAQ,CAAC,EAAE,MAAM,EAAE,GAAG,KAAK,CAAC;CAC7B,CAAC;AAEF,eAAO,MAAM,aAAa;;;;;CAoCzB,CAAC;AAEF,eAAO,MAAM,QAAQ;;;;;CAKpB,CAAC;AAsCF,MAAM,WAAW,mBAAmB;IAClC,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,eAAe,CAAC,EAAE,MAAM,CAAC;IACzB,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,aAAa,EAAE,MAAM,CAAC;IACtB,cAAc,EAAE,MAAM,CAAC;IACvB,eAAe,EAAE,MAAM,EAAE,CAAC;CAC3B;AAED,iBAAS,eAAe,CAAC,EACvB,MAA2C,EAC3C,eAAyD,EACzD,SAAmD,EACnD,aAAiB,EACjB,cAAmB,EACnB,eAAsD,GACvD,EAAE,mBAAmB;;;;;kBAaN,MAAM;cACV,MAAM;cACN,IAAI;;;iBAZD,MAAM;;;;;;0BAqBU,MAAM;0BAe9B,MAAM,WAAW,CAAC,gBAAgB,CAAC,2BACb,kBAAkB;;;;;;;EA6O9C;AAED,eAAe,eAAe,CAAC"}
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
export interface RenderTreeType {
|
|
2
|
+
label: JSX.Element;
|
|
3
|
+
value: string;
|
|
4
|
+
parent?: string;
|
|
5
|
+
}
|
|
6
|
+
export interface BuildTreeType {
|
|
7
|
+
label: JSX.Element;
|
|
8
|
+
value: string;
|
|
9
|
+
parent?: string;
|
|
10
|
+
children?: RenderTreeType[];
|
|
11
|
+
}
|
|
12
|
+
export declare const useTreeHelper: () => {
|
|
13
|
+
renderTreeToSpecificFieldName: (data: unknown[], valueField: string, labelField: string, parentField: string, iconField?: string) => RenderTreeType[];
|
|
14
|
+
buildTree: (flatTree?: RenderTreeType[], parent?: undefined) => BuildTreeType[];
|
|
15
|
+
findAllExpanded: (nodes: RenderTreeType[], nodeValue?: string) => string[];
|
|
16
|
+
};
|
|
17
|
+
//# sourceMappingURL=useTreeHelper.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"useTreeHelper.d.ts","sourceRoot":"","sources":["../../../../src/designerKit/utils/useTreeHelper.tsx"],"names":[],"mappings":"AAAA,MAAM,WAAW,cAAc;IAC7B,KAAK,EAAE,GAAG,CAAC,OAAO,CAAC;IACnB,KAAK,EAAE,MAAM,CAAC;IACd,MAAM,CAAC,EAAE,MAAM,CAAC;CACjB;AAED,MAAM,WAAW,aAAa;IAC5B,KAAK,EAAE,GAAG,CAAC,OAAO,CAAC;IACnB,KAAK,EAAE,MAAM,CAAC;IACd,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,QAAQ,CAAC,EAAE,cAAc,EAAE,CAAC;CAC7B;AAED,eAAO,MAAM,aAAa;0CAEhB,OAAO,EAAE,cACH,MAAM,cACN,MAAM,eACL,MAAM,cACP,MAAM;2BAmBS,cAAc,EAAE;6BAgBb,cAAc,EAAE,cAAc,MAAM;CAYrE,CAAC"}
|