@lanaco/lnc-react-ui 4.0.25 → 4.0.26
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/Kanban.cjs +2 -2
- package/dist/Kanban.js +81 -83
- package/dist/index-BlV3tdJ8.cjs +87 -0
- package/dist/index-DGl-lSfF.js +122 -0
- package/dist/index.cjs +1 -1
- package/dist/index.js +100 -92
- package/dist/index10.cjs +64 -91
- package/dist/index10.js +104 -161
- package/dist/index11.cjs +62 -112
- package/dist/index11.js +101 -1510
- package/dist/index12.cjs +194 -0
- package/dist/index12.js +312 -0
- package/dist/index13.cjs +98 -0
- package/dist/index13.js +221 -0
- package/dist/index14.cjs +161 -0
- package/dist/index14.js +254 -0
- package/dist/index15.cjs +135 -0
- package/dist/index15.js +1534 -0
- package/dist/index3.cjs +19 -56
- package/dist/index3.js +72 -113
- package/dist/index4.cjs +54 -34
- package/dist/index4.js +112 -77
- package/dist/index5.cjs +33 -66
- package/dist/index5.js +80 -124
- package/dist/index6.cjs +60 -44
- package/dist/index6.js +119 -79
- package/dist/index7.cjs +26 -43
- package/dist/index7.js +60 -94
- package/dist/index8.cjs +56 -124
- package/dist/index8.js +110 -194
- package/dist/index9.cjs +127 -67
- package/dist/index9.js +193 -123
- package/dist/useEffectOnce-DFrzfNzT.cjs +1 -0
- package/dist/useEffectOnce-guOKBPuL.js +7 -0
- package/package.json +6 -2
- package/vite.config.js +16 -0
package/dist/Kanban.cjs
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
"use strict";const oe=require("react/jsx-runtime"),d=require("react"),Vt=require("./index-Ct1N7fF4.cjs"),Q=require("./index-BPVoEhTF.cjs"),we=require("./utils-CE6bljYe.cjs"),Zr=require("./index-gY9e_8LL.cjs"),en=require("./emotion-styled.browser.esm-Cbp_XsK4.cjs"),zr=require("./emotion-element-5486c51c.browser.esm-QRQ5FSjv.cjs"),bo=require("./KanbanCard-CofqdTrO.cjs"),Dt=require("./_commonjsHelpers-DKOUU3wS.cjs"),ii=require("./KanbanHeader.cjs"),si=require("./
|
|
1
|
+
"use strict";const oe=require("react/jsx-runtime"),d=require("react"),Vt=require("./index-Ct1N7fF4.cjs"),Q=require("./index-BPVoEhTF.cjs"),we=require("./utils-CE6bljYe.cjs"),Zr=require("./index-gY9e_8LL.cjs"),en=require("./emotion-styled.browser.esm-Cbp_XsK4.cjs"),zr=require("./emotion-element-5486c51c.browser.esm-QRQ5FSjv.cjs"),bo=require("./KanbanCard-CofqdTrO.cjs"),Dt=require("./_commonjsHelpers-DKOUU3wS.cjs"),ii=require("./KanbanHeader.cjs"),si=require("./useEffectOnce-DFrzfNzT.cjs"),ai=require("./useUpdateEffect-BtMgpgIV.cjs");function ci(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return d.useMemo(()=>o=>{t.forEach(s=>s(o))},t)}const Un=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u";function tn(e){const t=Object.prototype.toString.call(e);return t==="[object Window]"||t==="[object global]"}function Hr(e){return"nodeType"in e}function Ke(e){var t,n;return e?tn(e)?e:Hr(e)&&(t=(n=e.ownerDocument)==null?void 0:n.defaultView)!=null?t:window:window}function Kr(e){const{Document:t}=Ke(e);return e instanceof t}function hn(e){return tn(e)?!1:e instanceof Ke(e).HTMLElement}function yo(e){return e instanceof Ke(e).SVGElement}function nn(e){return e?tn(e)?e.document:Hr(e)?Kr(e)?e:hn(e)||yo(e)?e.ownerDocument:document:document:document}const bt=Un?d.useLayoutEffect:d.useEffect;function kn(e){const t=d.useRef(e);return bt(()=>{t.current=e}),d.useCallback(function(){for(var n=arguments.length,o=new Array(n),s=0;s<n;s++)o[s]=arguments[s];return t.current==null?void 0:t.current(...o)},[])}function li(){const e=d.useRef(null),t=d.useCallback((o,s)=>{e.current=setInterval(o,s)},[]),n=d.useCallback(()=>{e.current!==null&&(clearInterval(e.current),e.current=null)},[]);return[t,n]}function gn(e,t){t===void 0&&(t=[e]);const n=d.useRef(e);return bt(()=>{n.current!==e&&(n.current=e)},t),n}function pn(e,t){const n=d.useRef();return d.useMemo(()=>{const o=e(n.current);return n.current=o,o},[...t])}function jn(e){const t=kn(e),n=d.useRef(null),o=d.useCallback(s=>{s!==n.current&&(t==null||t(s,n.current)),n.current=s},[]);return[n,o]}function $n(e){const t=d.useRef();return d.useEffect(()=>{t.current=e},[e]),t.current}let Tr={};function vn(e,t){return d.useMemo(()=>{if(t)return t;const n=Tr[e]==null?0:Tr[e]+1;return Tr[e]=n,e+"-"+n},[e,t])}function mo(e){return function(t){for(var n=arguments.length,o=new Array(n>1?n-1:0),s=1;s<n;s++)o[s-1]=arguments[s];return o.reduce((c,l)=>{const u=Object.entries(l);for(const[h,f]of u){const b=c[h];b!=null&&(c[h]=b+e*f)}return c},{...t})}}const Zt=mo(1),Bn=mo(-1);function ui(e){return"clientX"in e&&"clientY"in e}function Xn(e){if(!e)return!1;const{KeyboardEvent:t}=Ke(e.target);return t&&e instanceof t}function di(e){if(!e)return!1;const{TouchEvent:t}=Ke(e.target);return t&&e instanceof t}function Fn(e){if(di(e)){if(e.touches&&e.touches.length){const{clientX:t,clientY:n}=e.touches[0];return{x:t,y:n}}else if(e.changedTouches&&e.changedTouches.length){const{clientX:t,clientY:n}=e.changedTouches[0];return{x:t,y:n}}}return ui(e)?{x:e.clientX,y:e.clientY}:null}const Gt=Object.freeze({Translate:{toString(e){if(!e)return;const{x:t,y:n}=e;return"translate3d("+(t?Math.round(t):0)+"px, "+(n?Math.round(n):0)+"px, 0)"}},Scale:{toString(e){if(!e)return;const{scaleX:t,scaleY:n}=e;return"scaleX("+t+") scaleY("+n+")"}},Transform:{toString(e){if(e)return[Gt.Translate.toString(e),Gt.Scale.toString(e)].join(" ")}},Transition:{toString(e){let{property:t,duration:n,easing:o}=e;return t+" "+n+"ms "+o}}}),Qr="a,frame,iframe,input:not([type=hidden]):not(:disabled),select:not(:disabled),textarea:not(:disabled),button:not(:disabled),*[tabindex]";function fi(e){return e.matches(Qr)?e:e.querySelector(Qr)}const gi={display:"none"};function hi(e){let{id:t,value:n}=e;return d.createElement("div",{id:t,style:gi},n)}function pi(e){let{id:t,announcement:n,ariaLiveType:o="assertive"}=e;const s={position:"fixed",top:0,left:0,width:1,height:1,margin:-1,border:0,padding:0,overflow:"hidden",clip:"rect(0 0 0 0)",clipPath:"inset(100%)",whiteSpace:"nowrap"};return d.createElement("div",{id:t,style:s,role:"status","aria-live":o,"aria-atomic":!0},n)}function vi(){const[e,t]=d.useState("");return{announce:d.useCallback(o=>{o!=null&&t(o)},[]),announcement:e}}const xo=d.createContext(null);function bi(e){const t=d.useContext(xo);d.useEffect(()=>{if(!t)throw new Error("useDndMonitor must be used within a children of <DndContext>");return t(e)},[e,t])}function yi(){const[e]=d.useState(()=>new Set),t=d.useCallback(o=>(e.add(o),()=>e.delete(o)),[e]);return[d.useCallback(o=>{let{type:s,event:c}=o;e.forEach(l=>{var u;return(u=l[s])==null?void 0:u.call(l,c)})},[e]),t]}const mi={draggable:`
|
|
2
2
|
To pick up a draggable item, press the space bar.
|
|
3
3
|
While dragging, use the arrow keys to move the item.
|
|
4
4
|
Press space again to drop the item in its new position, or press escape to cancel.
|
|
@@ -82,4 +82,4 @@
|
|
|
82
82
|
flex-direction: ${e=>e.verticalDisplay?"column":"row"};
|
|
83
83
|
${e=>e.horizontalDisplay==!1&&"flex-wrap: wrap;"}
|
|
84
84
|
overflow: auto;
|
|
85
|
-
`,ya=e=>ko({...e,wasDragging:!0}),ma={sideEffects:Ho({styles:{active:{opacity:"0.5"}}})},xa=()=>{const[e,t]=d.useState(!1);return d.useEffect(()=>{const n=setTimeout(()=>t(!0),500);return()=>clearTimeout(n)},[]),e},Fr=(e,t)=>{if(e)return we.getColorRgbaValue(t,"KanbanCard",e,"enabled","highlight")},wa=({children:e,containerId:t,columns:n=1,disabled:o,id:s,items:c,className:l,renderFooterContent:u,maxContainerHeight:h,style:f,...b})=>{var O;const{active:v,attributes:_,isDragging:w,listeners:I,over:x,setNodeRef:D,transition:A,transform:M}=Yo({id:s,data:{type:"container",children:c},animateLayoutChanges:ya}),T=x?s===x.id&&((O=v==null?void 0:v.data.current)==null?void 0:O.type)!=="container"||c.includes(x.id):!1;return oe.jsx(Wo,{ref:o?void 0:D,style:{...f,transition:A,transform:Gt.Translate.toString(M),opacity:w?.5:void 0},className:l,hover:T,handleProps:{..._,...I},containerId:t,renderFooterContent:u,maxContainerHeight:h,...b,children:e})},Ca=({disabled:e,id:t,item:n,index:o,renderItem:s,style:c={},containerId:l,getIndex:u,wrapperStyle:h,cardProps:f,theme:b,renderContent:v,color:_})=>{const{setNodeRef:w,setActivatorNodeRef:I,listeners:x,isDragging:D,isSorting:A,over:M,overIndex:T,transform:O,transition:L,attributes:N}=Yo({id:t}),P=xa(),$=D&&!P;return oe.jsx(Br,{ref:e?void 0:w,cardProps:f,value:t,dragging:D,sorting:A,handle:(f==null?void 0:f.handle)!==!1,handleProps:{...N,...x},index:o,wrapperStyle:h({index:o}),style:{...c,index:o,value:t,isDragging:D,isSorting:A,overIndex:M?u(M.id):T,containerId:l},color:Fr(n==null?void 0:n.color,b),transition:L,transform:O,fadeIn:$,listeners:x,renderItem:s,children:v(n==null?void 0:n.content,t,{...f,handleProps:{...N,...x},item:n,containerId:l})})},qo=d.forwardRef((e,t)=>{const{horizontalDisplay:n=!1,verticalDisplay:o=!1,adjustScale:s=!1,itemCount:c=5,cancelDrop:l,columns:u,handle:h=!1,containerStyle:f,coordinateGetter:b=Vs,getItemStyles:v=m=>({...m}),wrapperStyle:_=m=>({...m}),minimal:w=!1,modifiers:I,renderItem:x,strategy:D=ho,scrollable:A,maxContainerHeight:M,cardProps:T,headerProps:O,footerProps:L,data:N=[],columnInfo:P={},onColumnMoved:$=()=>{},onCardMoved:Y=()=>{},onCardChangedColumns:W=()=>{},color:K="primary",size:ie="small",children:ee,...Se}=e,Ge=zr.useTheme(),[k,te]=d.useState(()=>N??{A:vo(c,m=>`A${m+1}`),B:vo(c,m=>`B${m+1}`)}),[Ue,_e]=d.useState(Object.keys(N)),[B,ke]=d.useState(null),ne=d.useRef(null),Z=d.useRef(!1),Xe=B?Ue.includes(B):!1,nt=d.useCallback(m=>{var U;if(B&&B in k)return to({...m,droppableContainers:m.droppableContainers.filter(re=>re.id in k)});const C=Ai(m),F=C.length>0?C:wo(m);let V=kr(F,"id");if(V!=null){if(V in k){const re=k[V];re.length>0&&(V=(U=to({...m,droppableContainers:m.droppableContainers.filter(ae=>ae.id!==V&&re.map(ce=>ce.id).includes(ae.id))})[0])==null?void 0:U.id)}return ne.current=V,[{id:V}]}return Z.current&&(ne.current=B),ne.current?[{id:ne.current}]:[]},[B,k]),[se,dt]=d.useState([]),Ye=Ci(Or(No),Or(Po),Or(Wr,{coordinateGetter:b}));
|
|
85
|
+
`,ya=e=>ko({...e,wasDragging:!0}),ma={sideEffects:Ho({styles:{active:{opacity:"0.5"}}})},xa=()=>{const[e,t]=d.useState(!1);return d.useEffect(()=>{const n=setTimeout(()=>t(!0),500);return()=>clearTimeout(n)},[]),e},Fr=(e,t)=>{if(e)return we.getColorRgbaValue(t,"KanbanCard",e,"enabled","highlight")},wa=({children:e,containerId:t,columns:n=1,disabled:o,id:s,items:c,className:l,renderFooterContent:u,maxContainerHeight:h,style:f,...b})=>{var O;const{active:v,attributes:_,isDragging:w,listeners:I,over:x,setNodeRef:D,transition:A,transform:M}=Yo({id:s,data:{type:"container",children:c},animateLayoutChanges:ya}),T=x?s===x.id&&((O=v==null?void 0:v.data.current)==null?void 0:O.type)!=="container"||c.includes(x.id):!1;return oe.jsx(Wo,{ref:o?void 0:D,style:{...f,transition:A,transform:Gt.Translate.toString(M),opacity:w?.5:void 0},className:l,hover:T,handleProps:{..._,...I},containerId:t,renderFooterContent:u,maxContainerHeight:h,...b,children:e})},Ca=({disabled:e,id:t,item:n,index:o,renderItem:s,style:c={},containerId:l,getIndex:u,wrapperStyle:h,cardProps:f,theme:b,renderContent:v,color:_})=>{const{setNodeRef:w,setActivatorNodeRef:I,listeners:x,isDragging:D,isSorting:A,over:M,overIndex:T,transform:O,transition:L,attributes:N}=Yo({id:t}),P=xa(),$=D&&!P;return oe.jsx(Br,{ref:e?void 0:w,cardProps:f,value:t,dragging:D,sorting:A,handle:(f==null?void 0:f.handle)!==!1,handleProps:{...N,...x},index:o,wrapperStyle:h({index:o}),style:{...c,index:o,value:t,isDragging:D,isSorting:A,overIndex:M?u(M.id):T,containerId:l},color:Fr(n==null?void 0:n.color,b),transition:L,transform:O,fadeIn:$,listeners:x,renderItem:s,children:v(n==null?void 0:n.content,t,{...f,handleProps:{...N,...x},item:n,containerId:l})})},qo=d.forwardRef((e,t)=>{const{horizontalDisplay:n=!1,verticalDisplay:o=!1,adjustScale:s=!1,itemCount:c=5,cancelDrop:l,columns:u,handle:h=!1,containerStyle:f,coordinateGetter:b=Vs,getItemStyles:v=m=>({...m}),wrapperStyle:_=m=>({...m}),minimal:w=!1,modifiers:I,renderItem:x,strategy:D=ho,scrollable:A,maxContainerHeight:M,cardProps:T,headerProps:O,footerProps:L,data:N=[],columnInfo:P={},onColumnMoved:$=()=>{},onCardMoved:Y=()=>{},onCardChangedColumns:W=()=>{},color:K="primary",size:ie="small",children:ee,...Se}=e,Ge=zr.useTheme(),[k,te]=d.useState(()=>N??{A:vo(c,m=>`A${m+1}`),B:vo(c,m=>`B${m+1}`)}),[Ue,_e]=d.useState(Object.keys(N)),[B,ke]=d.useState(null),ne=d.useRef(null),Z=d.useRef(!1),Xe=B?Ue.includes(B):!1,nt=d.useCallback(m=>{var U;if(B&&B in k)return to({...m,droppableContainers:m.droppableContainers.filter(re=>re.id in k)});const C=Ai(m),F=C.length>0?C:wo(m);let V=kr(F,"id");if(V!=null){if(V in k){const re=k[V];re.length>0&&(V=(U=to({...m,droppableContainers:m.droppableContainers.filter(ae=>ae.id!==V&&re.map(ce=>ce.id).includes(ae.id))})[0])==null?void 0:U.id)}return ne.current=V,[{id:V}]}return Z.current&&(ne.current=B),ne.current?[{id:ne.current}]:[]},[B,k]),[se,dt]=d.useState([]),Ye=Ci(Or(No),Or(Po),Or(Wr,{coordinateGetter:b}));si.useEffectOnce(()=>{te(N),_e(Object.keys(N))}),ai.useUpdateEffect(()=>{te(N),_e(Object.keys(N))},[N]),d.useEffect(()=>{requestAnimationFrame(()=>{Z.current=!1})},[k]);const fe=m=>m in k?m:Object.keys(k).find(C=>k[C].map(F=>F.id).includes(m)),G=m=>{const C=fe(m);return C?Xt(k[C],F=>F.id==m):-1},rt=()=>{se&&te(se),ke(null),dt(null)},Te=m=>{ke(m.active.id),dt(k)},ot=m=>{const{active:C,over:F}=m,V=F==null?void 0:F.id;if(V==null||C.id in k)return;const U=fe(V),re=fe(C.id);!U||!re||re!==U&&te(ae=>{const ce=ae[re],ge=ae[U],pe=Xt(ge,je=>je.id==V),ft=Xt(ce,je=>je.id==C.id);let le;if(V in ae)le=ge.length+1;else{const Rt=F&&C.rect.current.translated&&C.rect.current.translated.top>F.rect.top+F.rect.height?1:0;le=pe>=0?pe+Rt:ge.length+1}return W(C.id),Z.current=!0,{...ae,[re]:ae[re].filter(je=>je.id!=C.id),[U]:[...ae[U].slice(0,le),ae[re][ft],...ae[U].slice(le,ae[U].length)]}})},z=m=>{const{active:C,over:F}=m;var V=!1,U=ha(k);C.id in k&&(F!=null&&F.id)&&_e(ue=>{V=!0;const de=ue.indexOf(C.id),$e=ue.indexOf(F.id);var Ze=fn(ue,de,$e);return C.id!==F.id&&$(m,Ze),Ze});const re=fe(C.id);if(!re){ke(null);return}const ae=F==null?void 0:F.id;if(ae==null){ke(null);return}const ce=fe(ae);if(ce){const ue=Xt(k[re],$e=>$e.id==C.id),de=Xt(k[ce],$e=>$e.id==ae);ue!==de&&(U={...U,[ce]:fn(U[ce],ue,de)},te($e=>({...$e,[ce]:fn($e[ce],ue,de)})))}if(!V){var ge,pe=null,ft,le=-1,je=Object.keys(se),Rt=Object.keys(U);je.forEach(ue=>{if(se[ue].map(de=>de.id.toString()).includes(C.id.toString())){ge=ue,ft=Xt(se[ue],de=>de.id==C.id);return}}),Rt.forEach(ue=>{if(U[ue].map(de=>de.id.toString()).includes(C.id.toString())){pe=ue,le=Xt(U[ue],de=>de.id==C.id);return}}),ge===pe&&ft!==le&&Y(m,U,pe),ge!==pe&&W(m,U,pe,ge)}ke(null)},Ve=m=>{var C=null;return Ue.forEach(F=>{k[F].forEach(V=>{if(V.id==m){C=V;return}})}),oe.jsx(Br,{value:m,handle:h,cardProps:T,style:v({containerId:fe(m),overIndex:-1,index:G(m),value:m,isSorting:!0,isDragging:!0,isDragOverlay:!0}),color:Fr(C==null?void 0:C.color,Ge),wrapperStyle:_({index:0}),renderItem:x,dragOverlay:!0,children:it(C==null?void 0:C.content,m,{...T,item:C})||{name:m}})},Le=m=>oe.jsx(Wo,{label:mt(m),columns:u,style:{height:"100%"},shadow:!0,unstyled:!1,containerId:m,renderFooterContent:Oe,children:k[m].map((C,F)=>oe.jsx(Br,{cardProps:T,value:C.id,handle:h,style:v({containerId:m,overIndex:-1,index:G(C),value:C,isDragging:!1,isSorting:!1,isDragOverlay:!1}),color:Fr(C==null?void 0:C.color,Ge),wrapperStyle:_({index:F}),renderItem:x,children:it(C==null?void 0:C.content,C==null?void 0:C.id,{...T,item:C,containerId:m})},C.id))}),mt=m=>{let C=u==null?void 0:u.find(F=>F.id==(m==null?void 0:m.toString()));return we.renderCustomElement(we.getCustomRenderById("KANBAN_HEADER",m,ee),{...O,item:{[m]:k[m]},column:C},C==null?void 0:C.header,!0)||we.renderCustomElement(we.getCustomRenderById("KANBAN_HEADER",null,ee),{...O,item:{[m]:k[m]},column:C},C==null?void 0:C.header,!0)||oe.jsx(ii,{id:m,color:K,size:ie,item:{[m]:k[m]},column:C,...O,children:C==null?void 0:C.header})},Oe=m=>we.renderCustomElement(we.getCustomRenderById("KANBAN_FOOTER",m,ee),{...L,id:m},null)||we.renderCustomElement(we.getCustomRenderById("KANBAN_FOOTER",null,ee),{...L,id:m},null),it=(m,C,F)=>we.renderCustomElement(we.getCustomRenderById("KANBAN_CARD",C,ee),{...F},m,!0)||we.renderCustomElement(we.getCustomRenderById("KANBAN_CARD",null,ee),{...F},m,!0)||oe.jsx(bo.KanbanCard,{color:K,size:ie,...F,children:m});return oe.jsx(va,{ref:t,...Se,children:oe.jsxs(ys,{measuring:{droppable:{strategy:Qt.Always}},sensors:Ye,collisionDetection:nt,modifiers:I,cancelDrop:l,onDragCancel:rt,onDragStart:Te,onDragOver:ot,onDragEnd:z,children:[oe.jsx(ba,{horizontalDisplay:n,verticalDisplay:o,children:oe.jsx(po,{items:[...Ue],strategy:o?ho:zs,children:Ue.map(m=>oe.jsx(wa,{id:m,label:w?void 0:mt(m),items:k[m],color:K,scrollable:A,style:f,unstyled:w,containerId:m,renderFooterContent:Oe,maxContainerHeight:M,...O,children:oe.jsx(po,{items:k[m],strategy:D,children:k[m].map((C,F)=>oe.jsx(Ca,{disabled:Xe||(C==null?void 0:C.disabled),id:C.id,item:C,index:F,style:v,wrapperStyle:_,renderItem:x,containerId:m,getIndex:G,cardProps:T,theme:Ge,renderContent:it},C.id))})},m))})}),Vt.reactDomExports.createPortal(oe.jsx(js,{adjustScale:s,dropAnimation:ma,children:B?Ue.includes(B)?Le(B):Ve(B):null}),document.body)]})})});qo.propTypes={horizontalDisplay:Q.PropTypes.bool,verticalDisplay:Q.PropTypes.bool,adjustScale:Q.PropTypes.bool,itemCount:Q.PropTypes.bool,cancelDrop:Q.PropTypes.func,columns:Q.PropTypes.array,handle:Q.PropTypes.bool,getItemStyles:Q.PropTypes.func,wrapperStyle:Q.PropTypes.func,minimal:Q.PropTypes.bool,renderItem:Q.PropTypes.func,scrollable:Q.PropTypes.bool,cardProps:Q.PropTypes.any,headerProps:Q.PropTypes.any,footerProps:Q.PropTypes.any,data:Q.PropTypes.object,columnInfo:Q.PropTypes.object,onColumnMoved:Q.PropTypes.func,onCardMoved:Q.PropTypes.func,onCardChangedColumns:Q.PropTypes.func,maxContainerHeight:Q.PropTypes.string,className:Q.PropTypes.string,style:Q.PropTypes.object,color:Q.PropTypes.oneOf(["primary","secondary","success","warning","danger","information","neutral","gray"]),size:Q.PropTypes.oneOf(["small","medium","large"])};module.exports=qo;
|
package/dist/Kanban.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { jsx as xe, jsxs as Xn } from "react/jsx-runtime";
|
|
2
|
-
import ae, {
|
|
2
|
+
import ae, { useLayoutEffect as vi, useEffect as J, useRef as V, useMemo as Q, useCallback as Ne, useState as be, createContext as Cn, memo as Oo, useReducer as bi, useContext as Wt, cloneElement as yi, forwardRef as er } from "react";
|
|
3
3
|
import { r as on } from "./index--Kmch3aI.js";
|
|
4
4
|
import { P as te } from "./index-S5Cd7WrG.js";
|
|
5
5
|
import { a as sn, r as nn, s as rn } from "./utils-DtEdJZWa.js";
|
|
@@ -9,10 +9,8 @@ import { u as Vr } from "./emotion-element-5486c51c.browser.esm-Bb4VkP8U.js";
|
|
|
9
9
|
import { H as mi, K as wi } from "./KanbanCard-BDyFaKYd.js";
|
|
10
10
|
import { c as Yt, g as Eo } from "./_commonjsHelpers-DaMA6jEr.js";
|
|
11
11
|
import xi from "./KanbanHeader.js";
|
|
12
|
-
import { u as Ci } from "./
|
|
13
|
-
|
|
14
|
-
k(e, []);
|
|
15
|
-
};
|
|
12
|
+
import { u as Ci } from "./useEffectOnce-guOKBPuL.js";
|
|
13
|
+
import { u as _i } from "./useUpdateEffect-CuYWz7EA.js";
|
|
16
14
|
function Si() {
|
|
17
15
|
for (var e = arguments.length, t = new Array(e), n = 0; n < e; n++)
|
|
18
16
|
t[n] = arguments[n];
|
|
@@ -52,7 +50,7 @@ function To(e) {
|
|
|
52
50
|
function dn(e) {
|
|
53
51
|
return e ? un(e) ? e.document : Zr(e) ? Qr(e) ? e : _n(e) || To(e) ? e.ownerDocument : document : document : document;
|
|
54
52
|
}
|
|
55
|
-
const xt = tr ? vi :
|
|
53
|
+
const xt = tr ? vi : J;
|
|
56
54
|
function nr(e) {
|
|
57
55
|
const t = V(e);
|
|
58
56
|
return xt(() => {
|
|
@@ -101,7 +99,7 @@ function Yn(e) {
|
|
|
101
99
|
}
|
|
102
100
|
function Wn(e) {
|
|
103
101
|
const t = V();
|
|
104
|
-
return
|
|
102
|
+
return J(() => {
|
|
105
103
|
t.current = e;
|
|
106
104
|
}, [e]), t.current;
|
|
107
105
|
}
|
|
@@ -273,7 +271,7 @@ function Ni() {
|
|
|
273
271
|
const No = /* @__PURE__ */ Cn(null);
|
|
274
272
|
function Mi(e) {
|
|
275
273
|
const t = Wt(No);
|
|
276
|
-
|
|
274
|
+
J(() => {
|
|
277
275
|
if (!t)
|
|
278
276
|
throw new Error("useDndMonitor must be used within a children of <DndContext>");
|
|
279
277
|
return t(e);
|
|
@@ -337,7 +335,7 @@ function Bi(e) {
|
|
|
337
335
|
announce: c,
|
|
338
336
|
announcement: l
|
|
339
337
|
} = Ni(), u = Dn("DndLiveRegion"), [g, d] = be(!1);
|
|
340
|
-
if (
|
|
338
|
+
if (J(() => {
|
|
341
339
|
d(!0);
|
|
342
340
|
}, []), Mi(Q(() => ({
|
|
343
341
|
onDragStart(p) {
|
|
@@ -1398,7 +1396,7 @@ function ua(e) {
|
|
|
1398
1396
|
const M = S.current.x * R.current.x, $ = S.current.y * R.current.y;
|
|
1399
1397
|
N.scrollBy(M, $);
|
|
1400
1398
|
}, []), P = Q(() => u === Vn.TreeOrder ? [...d].reverse() : d, [u, d]);
|
|
1401
|
-
|
|
1399
|
+
J(
|
|
1402
1400
|
() => {
|
|
1403
1401
|
if (!c || !d.length || !I) {
|
|
1404
1402
|
m();
|
|
@@ -1543,21 +1541,21 @@ function pa(e, t) {
|
|
|
1543
1541
|
}
|
|
1544
1542
|
return R;
|
|
1545
1543
|
}, [e, c, n, p, g]);
|
|
1546
|
-
return
|
|
1544
|
+
return J(() => {
|
|
1547
1545
|
v.current = e;
|
|
1548
|
-
}, [e]),
|
|
1546
|
+
}, [e]), J(
|
|
1549
1547
|
() => {
|
|
1550
1548
|
p || w();
|
|
1551
1549
|
},
|
|
1552
1550
|
// eslint-disable-next-line react-hooks/exhaustive-deps
|
|
1553
1551
|
[n, p]
|
|
1554
|
-
),
|
|
1552
|
+
), J(
|
|
1555
1553
|
() => {
|
|
1556
1554
|
c && c.length > 0 && l(null);
|
|
1557
1555
|
},
|
|
1558
1556
|
//eslint-disable-next-line react-hooks/exhaustive-deps
|
|
1559
1557
|
[JSON.stringify(c)]
|
|
1560
|
-
),
|
|
1558
|
+
), J(
|
|
1561
1559
|
() => {
|
|
1562
1560
|
p || typeof u != "number" || T.current !== null || (T.current = setTimeout(() => {
|
|
1563
1561
|
w(), T.current = null;
|
|
@@ -1600,7 +1598,7 @@ function ba(e) {
|
|
|
1600
1598
|
} = window;
|
|
1601
1599
|
return new c(o);
|
|
1602
1600
|
}, [o, n]);
|
|
1603
|
-
return
|
|
1601
|
+
return J(() => () => a == null ? void 0 : a.disconnect(), [a]), a;
|
|
1604
1602
|
}
|
|
1605
1603
|
function or(e) {
|
|
1606
1604
|
let {
|
|
@@ -1619,7 +1617,7 @@ function or(e) {
|
|
|
1619
1617
|
// eslint-disable-next-line react-hooks/exhaustive-deps
|
|
1620
1618
|
[n]
|
|
1621
1619
|
);
|
|
1622
|
-
return
|
|
1620
|
+
return J(() => () => a == null ? void 0 : a.disconnect(), [a]), a;
|
|
1623
1621
|
}
|
|
1624
1622
|
function ya(e) {
|
|
1625
1623
|
return new oo(fn(e), e);
|
|
@@ -1670,7 +1668,7 @@ function ma(e) {
|
|
|
1670
1668
|
const wo = [];
|
|
1671
1669
|
function wa(e) {
|
|
1672
1670
|
const t = V(e), n = Sn((o) => e ? o && o !== wo && e && t.current && e.parentNode === t.current.parentNode ? o : ro(e) : wo, [e]);
|
|
1673
|
-
return
|
|
1671
|
+
return J(() => {
|
|
1674
1672
|
t.current = e;
|
|
1675
1673
|
}, [e]), n;
|
|
1676
1674
|
}
|
|
@@ -1679,7 +1677,7 @@ function xa(e) {
|
|
|
1679
1677
|
const l = Kr(c.target);
|
|
1680
1678
|
l && n((u) => u ? (u.set(l, Yr(l)), new Map(u)) : null);
|
|
1681
1679
|
}, []);
|
|
1682
|
-
return
|
|
1680
|
+
return J(() => {
|
|
1683
1681
|
const c = o.current;
|
|
1684
1682
|
if (e !== c) {
|
|
1685
1683
|
l(c);
|
|
@@ -1705,19 +1703,19 @@ function xa(e) {
|
|
|
1705
1703
|
function xo(e, t) {
|
|
1706
1704
|
t === void 0 && (t = []);
|
|
1707
1705
|
const n = V(null);
|
|
1708
|
-
return
|
|
1706
|
+
return J(
|
|
1709
1707
|
() => {
|
|
1710
1708
|
n.current = null;
|
|
1711
1709
|
},
|
|
1712
1710
|
// eslint-disable-next-line react-hooks/exhaustive-deps
|
|
1713
1711
|
t
|
|
1714
|
-
),
|
|
1712
|
+
), J(() => {
|
|
1715
1713
|
const o = e !== Ct;
|
|
1716
1714
|
o && !n.current && (n.current = e), !o && n.current && (n.current = null);
|
|
1717
1715
|
}, [e]), n.current ? kn(e, n.current) : Ct;
|
|
1718
1716
|
}
|
|
1719
1717
|
function Ca(e) {
|
|
1720
|
-
|
|
1718
|
+
J(
|
|
1721
1719
|
() => {
|
|
1722
1720
|
if (!tr)
|
|
1723
1721
|
return;
|
|
@@ -2009,7 +2007,7 @@ function Ia(e) {
|
|
|
2009
2007
|
activatorEvent: o,
|
|
2010
2008
|
draggableNodes: a
|
|
2011
2009
|
} = Wt(An), c = Wn(o), l = Wn(n == null ? void 0 : n.id);
|
|
2012
|
-
return
|
|
2010
|
+
return J(() => {
|
|
2013
2011
|
if (!t && !o && c && l != null) {
|
|
2014
2012
|
if (!rr(c) || document.activeElement === c.target)
|
|
2015
2013
|
return;
|
|
@@ -2135,11 +2133,11 @@ const Pa = /* @__PURE__ */ Oo(function(t) {
|
|
|
2135
2133
|
initial: null,
|
|
2136
2134
|
translated: null
|
|
2137
2135
|
}), ne = Q(() => {
|
|
2138
|
-
var
|
|
2136
|
+
var k;
|
|
2139
2137
|
return M != null ? {
|
|
2140
2138
|
id: M,
|
|
2141
2139
|
// It's possible for the active node to unmount while dragging
|
|
2142
|
-
data: (
|
|
2140
|
+
data: (k = H == null ? void 0 : H.data) != null ? k : Ra,
|
|
2143
2141
|
rect: se
|
|
2144
2142
|
} : null;
|
|
2145
2143
|
}, [M, H]), Ae = V(null), [We, G] = be(null), [re, ke] = be(null), Re = xn(T, Object.values(T)), B = Dn("DndDescribedBy", l), qe = Q(() => W.getEnabled(), [W]), oe = Na(_), {
|
|
@@ -2197,7 +2195,7 @@ const Pa = /* @__PURE__ */ Oo(function(t) {
|
|
|
2197
2195
|
droppableContainers: qe,
|
|
2198
2196
|
pointerCoordinates: Z
|
|
2199
2197
|
}) : null, vt = no(ye, "id"), [de, ze] = be(null), Et = _t ? j : an(j, le), fe = Xi(Et, (c = de == null ? void 0 : de.rect) != null ? c : null, K), ge = V(null), He = Ne(
|
|
2200
|
-
(
|
|
2198
|
+
(k, Oe) => {
|
|
2201
2199
|
let {
|
|
2202
2200
|
sensor: _e,
|
|
2203
2201
|
options: rt
|
|
@@ -2207,7 +2205,7 @@ const Pa = /* @__PURE__ */ Oo(function(t) {
|
|
|
2207
2205
|
const Le = $.get(Ae.current);
|
|
2208
2206
|
if (!Le)
|
|
2209
2207
|
return;
|
|
2210
|
-
const Ee =
|
|
2208
|
+
const Ee = k.nativeEvent, Ue = new _e({
|
|
2211
2209
|
active: Ae.current,
|
|
2212
2210
|
activeNode: Le,
|
|
2213
2211
|
event: Ee,
|
|
@@ -2215,26 +2213,26 @@ const Pa = /* @__PURE__ */ Oo(function(t) {
|
|
|
2215
2213
|
// Sensors need to be instantiated with refs for arguments that change over time
|
|
2216
2214
|
// otherwise they are frozen in time with the stale arguments
|
|
2217
2215
|
context: Me,
|
|
2218
|
-
onAbort(
|
|
2219
|
-
if (!$.get(
|
|
2216
|
+
onAbort(q) {
|
|
2217
|
+
if (!$.get(q))
|
|
2220
2218
|
return;
|
|
2221
2219
|
const {
|
|
2222
2220
|
onDragAbort: Be
|
|
2223
2221
|
} = Re.current, Ge = {
|
|
2224
|
-
id:
|
|
2222
|
+
id: q
|
|
2225
2223
|
};
|
|
2226
2224
|
Be == null || Be(Ge), I({
|
|
2227
2225
|
type: "onDragAbort",
|
|
2228
2226
|
event: Ge
|
|
2229
2227
|
});
|
|
2230
2228
|
},
|
|
2231
|
-
onPending(
|
|
2232
|
-
if (!$.get(
|
|
2229
|
+
onPending(q, $e, Be, Ge) {
|
|
2230
|
+
if (!$.get(q))
|
|
2233
2231
|
return;
|
|
2234
2232
|
const {
|
|
2235
2233
|
onDragPending: ot
|
|
2236
2234
|
} = Re.current, ve = {
|
|
2237
|
-
id:
|
|
2235
|
+
id: q,
|
|
2238
2236
|
constraint: $e,
|
|
2239
2237
|
initialCoordinates: Be,
|
|
2240
2238
|
offset: Ge
|
|
@@ -2244,7 +2242,7 @@ const Pa = /* @__PURE__ */ Oo(function(t) {
|
|
|
2244
2242
|
event: ve
|
|
2245
2243
|
});
|
|
2246
2244
|
},
|
|
2247
|
-
onStart(
|
|
2245
|
+
onStart(q) {
|
|
2248
2246
|
const $e = Ae.current;
|
|
2249
2247
|
if ($e == null)
|
|
2250
2248
|
return;
|
|
@@ -2264,7 +2262,7 @@ const Pa = /* @__PURE__ */ Oo(function(t) {
|
|
|
2264
2262
|
on.unstable_batchedUpdates(() => {
|
|
2265
2263
|
Ge == null || Ge(yt), P(Xt.Initializing), R({
|
|
2266
2264
|
type: Ce.DragStart,
|
|
2267
|
-
initialCoordinates:
|
|
2265
|
+
initialCoordinates: q,
|
|
2268
2266
|
active: $e
|
|
2269
2267
|
}), I({
|
|
2270
2268
|
type: "onDragStart",
|
|
@@ -2272,17 +2270,17 @@ const Pa = /* @__PURE__ */ Oo(function(t) {
|
|
|
2272
2270
|
}), G(ge.current), ke(Ee);
|
|
2273
2271
|
});
|
|
2274
2272
|
},
|
|
2275
|
-
onMove(
|
|
2273
|
+
onMove(q) {
|
|
2276
2274
|
R({
|
|
2277
2275
|
type: Ce.DragMove,
|
|
2278
|
-
coordinates:
|
|
2276
|
+
coordinates: q
|
|
2279
2277
|
});
|
|
2280
2278
|
},
|
|
2281
2279
|
onEnd: bt(Ce.DragEnd),
|
|
2282
2280
|
onCancel: bt(Ce.DragCancel)
|
|
2283
2281
|
});
|
|
2284
2282
|
ge.current = Ue;
|
|
2285
|
-
function bt(
|
|
2283
|
+
function bt(q) {
|
|
2286
2284
|
return async function() {
|
|
2287
2285
|
const {
|
|
2288
2286
|
active: Be,
|
|
@@ -2301,13 +2299,13 @@ const Pa = /* @__PURE__ */ Oo(function(t) {
|
|
|
2301
2299
|
collisions: Ge,
|
|
2302
2300
|
delta: ot,
|
|
2303
2301
|
over: yt
|
|
2304
|
-
},
|
|
2302
|
+
}, q === Ce.DragEnd && typeof Tt == "function" && await Promise.resolve(Tt(ve)) && (q = Ce.DragCancel);
|
|
2305
2303
|
}
|
|
2306
2304
|
Ae.current = null, on.unstable_batchedUpdates(() => {
|
|
2307
2305
|
R({
|
|
2308
|
-
type:
|
|
2306
|
+
type: q
|
|
2309
2307
|
}), P(Xt.Uninitialized), ze(null), G(null), ke(null), ge.current = null;
|
|
2310
|
-
const Tt =
|
|
2308
|
+
const Tt = q === Ce.DragEnd ? "onDragEnd" : "onDragCancel";
|
|
2311
2309
|
if (ve) {
|
|
2312
2310
|
const qt = Re.current[Tt];
|
|
2313
2311
|
qt == null || qt(ve), I({
|
|
@@ -2321,7 +2319,7 @@ const Pa = /* @__PURE__ */ Oo(function(t) {
|
|
|
2321
2319
|
},
|
|
2322
2320
|
// eslint-disable-next-line react-hooks/exhaustive-deps
|
|
2323
2321
|
[$]
|
|
2324
|
-
), nt = Ne((
|
|
2322
|
+
), nt = Ne((k, Oe) => (_e, rt) => {
|
|
2325
2323
|
const Le = _e.nativeEvent, Ee = $.get(rt);
|
|
2326
2324
|
if (
|
|
2327
2325
|
// Another sensor is already instantiating
|
|
@@ -2333,16 +2331,16 @@ const Pa = /* @__PURE__ */ Oo(function(t) {
|
|
|
2333
2331
|
const Ue = {
|
|
2334
2332
|
active: Ee
|
|
2335
2333
|
};
|
|
2336
|
-
|
|
2334
|
+
k(_e, Oe.options, Ue) === !0 && (Le.dndKit = {
|
|
2337
2335
|
capturedBy: Oe.sensor
|
|
2338
2336
|
}, Ae.current = rt, He(_e, Oe));
|
|
2339
2337
|
}, [$, He]), ut = ha(v, nt);
|
|
2340
2338
|
Ca(v), xt(() => {
|
|
2341
2339
|
K && E === Xt.Initializing && P(Xt.Initialized);
|
|
2342
|
-
}, [K, E]),
|
|
2340
|
+
}, [K, E]), J(
|
|
2343
2341
|
() => {
|
|
2344
2342
|
const {
|
|
2345
|
-
onDragMove:
|
|
2343
|
+
onDragMove: k
|
|
2346
2344
|
} = Re.current, {
|
|
2347
2345
|
active: Oe,
|
|
2348
2346
|
activatorEvent: _e,
|
|
@@ -2362,7 +2360,7 @@ const Pa = /* @__PURE__ */ Oo(function(t) {
|
|
|
2362
2360
|
over: Le
|
|
2363
2361
|
};
|
|
2364
2362
|
on.unstable_batchedUpdates(() => {
|
|
2365
|
-
|
|
2363
|
+
k == null || k(Ee), I({
|
|
2366
2364
|
type: "onDragMove",
|
|
2367
2365
|
event: Ee
|
|
2368
2366
|
});
|
|
@@ -2370,16 +2368,16 @@ const Pa = /* @__PURE__ */ Oo(function(t) {
|
|
|
2370
2368
|
},
|
|
2371
2369
|
// eslint-disable-next-line react-hooks/exhaustive-deps
|
|
2372
2370
|
[ue.x, ue.y]
|
|
2373
|
-
),
|
|
2371
|
+
), J(
|
|
2374
2372
|
() => {
|
|
2375
2373
|
const {
|
|
2376
|
-
active:
|
|
2374
|
+
active: k,
|
|
2377
2375
|
activatorEvent: Oe,
|
|
2378
2376
|
collisions: _e,
|
|
2379
2377
|
droppableContainers: rt,
|
|
2380
2378
|
scrollAdjustedTranslate: Le
|
|
2381
2379
|
} = Me.current;
|
|
2382
|
-
if (!
|
|
2380
|
+
if (!k || Ae.current == null || !Oe || !Le)
|
|
2383
2381
|
return;
|
|
2384
2382
|
const {
|
|
2385
2383
|
onDragOver: Ee
|
|
@@ -2388,8 +2386,8 @@ const Pa = /* @__PURE__ */ Oo(function(t) {
|
|
|
2388
2386
|
rect: Ue.rect.current,
|
|
2389
2387
|
data: Ue.data,
|
|
2390
2388
|
disabled: Ue.disabled
|
|
2391
|
-
} : null,
|
|
2392
|
-
active:
|
|
2389
|
+
} : null, q = {
|
|
2390
|
+
active: k,
|
|
2393
2391
|
activatorEvent: Oe,
|
|
2394
2392
|
collisions: _e,
|
|
2395
2393
|
delta: {
|
|
@@ -2399,9 +2397,9 @@ const Pa = /* @__PURE__ */ Oo(function(t) {
|
|
|
2399
2397
|
over: bt
|
|
2400
2398
|
};
|
|
2401
2399
|
on.unstable_batchedUpdates(() => {
|
|
2402
|
-
ze(bt), Ee == null || Ee(
|
|
2400
|
+
ze(bt), Ee == null || Ee(q), I({
|
|
2403
2401
|
type: "onDragOver",
|
|
2404
|
-
event:
|
|
2402
|
+
event: q
|
|
2405
2403
|
});
|
|
2406
2404
|
});
|
|
2407
2405
|
},
|
|
@@ -2480,7 +2478,7 @@ const Pa = /* @__PURE__ */ Oo(function(t) {
|
|
|
2480
2478
|
hiddenTextDescribedById: B
|
|
2481
2479
|
}));
|
|
2482
2480
|
function Ke() {
|
|
2483
|
-
const
|
|
2481
|
+
const k = (We == null ? void 0 : We.autoScrollEnabled) === !1, Oe = typeof g == "object" ? g.enabled === !1 : g === !1, _e = N && !k && !Oe;
|
|
2484
2482
|
return typeof g == "object" ? {
|
|
2485
2483
|
...g,
|
|
2486
2484
|
enabled: _e
|
|
@@ -2590,9 +2588,9 @@ function za(e) {
|
|
|
2590
2588
|
}), E = Ne(($, Y) => {
|
|
2591
2589
|
O && (Y && (O.unobserve(Y), p.current = !1), $ && O.observe($));
|
|
2592
2590
|
}, [O]), [P, N] = Yn(E), M = xn(t);
|
|
2593
|
-
return
|
|
2591
|
+
return J(() => {
|
|
2594
2592
|
!O || !P.current || (O.disconnect(), p.current = !1, O.observe(P.current));
|
|
2595
|
-
}, [P, O]),
|
|
2593
|
+
}, [P, O]), J(
|
|
2596
2594
|
() => (u({
|
|
2597
2595
|
type: Ce.RegisterDroppable,
|
|
2598
2596
|
element: {
|
|
@@ -2610,7 +2608,7 @@ function za(e) {
|
|
|
2610
2608
|
})),
|
|
2611
2609
|
// eslint-disable-next-line react-hooks/exhaustive-deps
|
|
2612
2610
|
[o]
|
|
2613
|
-
),
|
|
2611
|
+
), J(() => {
|
|
2614
2612
|
n !== v.current.disabled && (u({
|
|
2615
2613
|
type: Ce.SetDroppableDisabled,
|
|
2616
2614
|
id: o,
|
|
@@ -3070,7 +3068,7 @@ function Ao(e) {
|
|
|
3070
3068
|
} = Zo(), p = Dn(ti, n), _ = u.rect !== null, w = Q(() => o.map((N) => typeof N == "object" && "id" in N ? N.id : N), [o]), T = l != null, m = l ? w.indexOf(l.id) : -1, S = d ? w.indexOf(d.id) : -1, R = V(w), I = !es(w, R.current), O = S !== -1 && m === -1 || I, E = ts(c);
|
|
3071
3069
|
xt(() => {
|
|
3072
3070
|
I && T && v(w);
|
|
3073
|
-
}, [I, w, T, v]),
|
|
3071
|
+
}, [I, w, T, v]), J(() => {
|
|
3074
3072
|
R.current = w;
|
|
3075
3073
|
}, [w]);
|
|
3076
3074
|
const P = Q(
|
|
@@ -3147,7 +3145,7 @@ function ls(e) {
|
|
|
3147
3145
|
}
|
|
3148
3146
|
}
|
|
3149
3147
|
n !== u.current && (u.current = n);
|
|
3150
|
-
}, [t, n, o, a]),
|
|
3148
|
+
}, [t, n, o, a]), J(() => {
|
|
3151
3149
|
c && l(null);
|
|
3152
3150
|
}, [c]), c;
|
|
3153
3151
|
}
|
|
@@ -3247,9 +3245,9 @@ function ii(e) {
|
|
|
3247
3245
|
node: $,
|
|
3248
3246
|
rect: M
|
|
3249
3247
|
});
|
|
3250
|
-
return
|
|
3248
|
+
return J(() => {
|
|
3251
3249
|
oe && K.current.newIndex !== Ve && (K.current.newIndex = Ve), p !== K.current.containerId && (K.current.containerId = p), v !== K.current.items && (K.current.items = v);
|
|
3252
|
-
}, [oe, Ve, p, v]),
|
|
3250
|
+
}, [oe, Ve, p, v]), J(() => {
|
|
3253
3251
|
if (he === K.current.activeId)
|
|
3254
3252
|
return;
|
|
3255
3253
|
if (he && !K.current.activeId) {
|
|
@@ -3435,7 +3433,7 @@ const fs = [
|
|
|
3435
3433
|
...P
|
|
3436
3434
|
}, N) => {
|
|
3437
3435
|
const M = Vr();
|
|
3438
|
-
return
|
|
3436
|
+
return J(() => {
|
|
3439
3437
|
if (n)
|
|
3440
3438
|
return document.body.style.cursor = "grabbing", () => {
|
|
3441
3439
|
document.body.style.cursor = "";
|
|
@@ -3703,8 +3701,8 @@ Zn.exports;
|
|
|
3703
3701
|
return i ? "Symbol(src)_1." + i : "";
|
|
3704
3702
|
}(), Z = lt.toString, U = y.hasOwnProperty, ie = y.toString, le = RegExp(
|
|
3705
3703
|
"^" + Z.call(U).replace(G, "\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g, "$1.*?") + "$"
|
|
3706
|
-
), ue = ce ? ee.Buffer : void 0, pe = ee.Symbol, ye = ee.Uint8Array, vt = Fe(Object.getPrototypeOf, Object), de = Object.create, ze = y.propertyIsEnumerable, Et = Pe.splice, fe = Object.getOwnPropertySymbols, ge = ue ? ue.isBuffer : void 0, He = Fe(Object.keys, Object), nt = Ht(ee, "DataView"), ut = Ht(ee, "Map"), Bt = Ht(ee, "Promise"), jt = Ht(ee, "Set"), Ke = Ht(ee, "WeakMap"),
|
|
3707
|
-
function
|
|
3704
|
+
), ue = ce ? ee.Buffer : void 0, pe = ee.Symbol, ye = ee.Uint8Array, vt = Fe(Object.getPrototypeOf, Object), de = Object.create, ze = y.propertyIsEnumerable, Et = Pe.splice, fe = Object.getOwnPropertySymbols, ge = ue ? ue.isBuffer : void 0, He = Fe(Object.keys, Object), nt = Ht(ee, "DataView"), ut = Ht(ee, "Map"), Bt = Ht(ee, "Promise"), jt = Ht(ee, "Set"), Ke = Ht(ee, "WeakMap"), k = Ht(Object, "create"), Oe = Dt(nt), _e = Dt(ut), rt = Dt(Bt), Le = Dt(jt), Ee = Dt(Ke), Ue = pe ? pe.prototype : void 0, bt = Ue ? Ue.valueOf : void 0;
|
|
3705
|
+
function q(i) {
|
|
3708
3706
|
var f = -1, b = i ? i.length : 0;
|
|
3709
3707
|
for (this.clear(); ++f < b; ) {
|
|
3710
3708
|
var D = i[f];
|
|
@@ -3712,14 +3710,14 @@ Zn.exports;
|
|
|
3712
3710
|
}
|
|
3713
3711
|
}
|
|
3714
3712
|
function $e() {
|
|
3715
|
-
this.__data__ =
|
|
3713
|
+
this.__data__ = k ? k(null) : {};
|
|
3716
3714
|
}
|
|
3717
3715
|
function Be(i) {
|
|
3718
3716
|
return this.has(i) && delete this.__data__[i];
|
|
3719
3717
|
}
|
|
3720
3718
|
function Ge(i) {
|
|
3721
3719
|
var f = this.__data__;
|
|
3722
|
-
if (
|
|
3720
|
+
if (k) {
|
|
3723
3721
|
var b = f[i];
|
|
3724
3722
|
return b === o ? void 0 : b;
|
|
3725
3723
|
}
|
|
@@ -3727,13 +3725,13 @@ Zn.exports;
|
|
|
3727
3725
|
}
|
|
3728
3726
|
function yt(i) {
|
|
3729
3727
|
var f = this.__data__;
|
|
3730
|
-
return
|
|
3728
|
+
return k ? f[i] !== void 0 : U.call(f, i);
|
|
3731
3729
|
}
|
|
3732
3730
|
function ot(i, f) {
|
|
3733
3731
|
var b = this.__data__;
|
|
3734
|
-
return b[i] =
|
|
3732
|
+
return b[i] = k && f === void 0 ? o : f, this;
|
|
3735
3733
|
}
|
|
3736
|
-
|
|
3734
|
+
q.prototype.clear = $e, q.prototype.delete = Be, q.prototype.get = Ge, q.prototype.has = yt, q.prototype.set = ot;
|
|
3737
3735
|
function ve(i) {
|
|
3738
3736
|
var f = -1, b = i ? i.length : 0;
|
|
3739
3737
|
for (this.clear(); ++f < b; ) {
|
|
@@ -3772,9 +3770,9 @@ Zn.exports;
|
|
|
3772
3770
|
}
|
|
3773
3771
|
function Rn() {
|
|
3774
3772
|
this.__data__ = {
|
|
3775
|
-
hash: new
|
|
3773
|
+
hash: new q(),
|
|
3776
3774
|
map: new (ut || ve)(),
|
|
3777
|
-
string: new
|
|
3775
|
+
string: new q()
|
|
3778
3776
|
};
|
|
3779
3777
|
}
|
|
3780
3778
|
function It(i) {
|
|
@@ -4154,9 +4152,9 @@ Qn.exports;
|
|
|
4154
4152
|
var ge = Array.prototype, He = Function.prototype, nt = Object.prototype, ut = Pe["__core-js_shared__"], Bt = function() {
|
|
4155
4153
|
var r = /[^.]+$/.exec(ut && ut.keys && ut.keys.IE_PROTO || "");
|
|
4156
4154
|
return r ? "Symbol(src)_1." + r : "";
|
|
4157
|
-
}(), jt = He.toString, Ke = nt.hasOwnProperty,
|
|
4155
|
+
}(), jt = He.toString, Ke = nt.hasOwnProperty, k = nt.toString, Oe = RegExp(
|
|
4158
4156
|
"^" + jt.call(Ke).replace(ce, "\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g, "$1.*?") + "$"
|
|
4159
|
-
), _e = Pe.Symbol, rt = Pe.Uint8Array, Le = nt.propertyIsEnumerable, Ee = ge.splice, Ue = Et(Object.keys, Object), bt = Math.max,
|
|
4157
|
+
), _e = Pe.Symbol, rt = Pe.Uint8Array, Le = nt.propertyIsEnumerable, Ee = ge.splice, Ue = Et(Object.keys, Object), bt = Math.max, q = Ut(Pe, "DataView"), $e = Ut(Pe, "Map"), Be = Ut(Pe, "Promise"), Ge = Ut(Pe, "Set"), yt = Ut(Pe, "WeakMap"), ot = Ut(Object, "create"), ve = D(q), Tt = D($e), qt = D(Be), ar = D(Ge), sr = D(yt), Zt = _e ? _e.prototype : void 0, St = Zt ? Zt.valueOf : void 0, Rn = Zt ? Zt.toString : void 0;
|
|
4160
4158
|
function It(r) {
|
|
4161
4159
|
var s = -1, h = r ? r.length : 0;
|
|
4162
4160
|
for (this.clear(); ++s < h; ) {
|
|
@@ -4300,7 +4298,7 @@ Qn.exports;
|
|
|
4300
4298
|
return h && h == C ? r : void 0;
|
|
4301
4299
|
}
|
|
4302
4300
|
function Or(r) {
|
|
4303
|
-
return
|
|
4301
|
+
return k.call(r);
|
|
4304
4302
|
}
|
|
4305
4303
|
function Er(r, s) {
|
|
4306
4304
|
return r != null && s in Object(r);
|
|
@@ -4353,7 +4351,7 @@ Qn.exports;
|
|
|
4353
4351
|
return s.test(D(r));
|
|
4354
4352
|
}
|
|
4355
4353
|
function Tr(r) {
|
|
4356
|
-
return Lt(r) && tn(r.length) && !!F[
|
|
4354
|
+
return Lt(r) && tn(r.length) && !!F[k.call(r)];
|
|
4357
4355
|
}
|
|
4358
4356
|
function Ir(r) {
|
|
4359
4357
|
return typeof r == "function" ? r : r == null ? hi : typeof r == "object" ? Rt(r) ? Pr(r[0], r[1]) : Mr(r) : pi(r);
|
|
@@ -4509,8 +4507,8 @@ Qn.exports;
|
|
|
4509
4507
|
return Nt(h) ? h : void 0;
|
|
4510
4508
|
}
|
|
4511
4509
|
var At = Or;
|
|
4512
|
-
(
|
|
4513
|
-
var s =
|
|
4510
|
+
(q && At(new q(new ArrayBuffer(1))) != se || $e && At(new $e()) != I || Be && At(Be.resolve()) != P || Ge && At(new Ge()) != M || yt && At(new yt()) != W) && (At = function(r) {
|
|
4511
|
+
var s = k.call(r), h = s == E ? r.constructor : void 0, C = h ? D(h) : void 0;
|
|
4514
4512
|
if (C)
|
|
4515
4513
|
switch (C) {
|
|
4516
4514
|
case ve:
|
|
@@ -4617,7 +4615,7 @@ Qn.exports;
|
|
|
4617
4615
|
return r === s || r !== r && s !== s;
|
|
4618
4616
|
}
|
|
4619
4617
|
function Te(r) {
|
|
4620
|
-
return Bn(r) && Ke.call(r, "callee") && (!Le.call(r, "callee") ||
|
|
4618
|
+
return Bn(r) && Ke.call(r, "callee") && (!Le.call(r, "callee") || k.call(r) == p);
|
|
4621
4619
|
}
|
|
4622
4620
|
var Rt = Array.isArray;
|
|
4623
4621
|
function Pt(r) {
|
|
@@ -4627,7 +4625,7 @@ Qn.exports;
|
|
|
4627
4625
|
return Lt(r) && Pt(r);
|
|
4628
4626
|
}
|
|
4629
4627
|
function vn(r) {
|
|
4630
|
-
var s = Ot(r) ?
|
|
4628
|
+
var s = Ot(r) ? k.call(r) : "";
|
|
4631
4629
|
return s == S || s == R;
|
|
4632
4630
|
}
|
|
4633
4631
|
function tn(r) {
|
|
@@ -4641,7 +4639,7 @@ Qn.exports;
|
|
|
4641
4639
|
return !!r && typeof r == "object";
|
|
4642
4640
|
}
|
|
4643
4641
|
function jn(r) {
|
|
4644
|
-
return typeof r == "symbol" || Lt(r) &&
|
|
4642
|
+
return typeof r == "symbol" || Lt(r) && k.call(r) == Y;
|
|
4645
4643
|
}
|
|
4646
4644
|
var si = U ? ye(U) : Tr;
|
|
4647
4645
|
function ci(r) {
|
|
@@ -4710,7 +4708,7 @@ const Vt = /* @__PURE__ */ Eo(Is), Ns = ln.div``, Ms = ln.div`
|
|
|
4710
4708
|
})
|
|
4711
4709
|
}, $s = () => {
|
|
4712
4710
|
const [e, t] = be(!1);
|
|
4713
|
-
return
|
|
4711
|
+
return J(() => {
|
|
4714
4712
|
const n = setTimeout(() => t(!0), 500);
|
|
4715
4713
|
return () => clearTimeout(n);
|
|
4716
4714
|
}, []), e;
|
|
@@ -4922,11 +4920,11 @@ const Vt = /* @__PURE__ */ Eo(Is), Ns = ln.div``, Ms = ln.div`
|
|
|
4922
4920
|
coordinateGetter: v
|
|
4923
4921
|
})
|
|
4924
4922
|
);
|
|
4925
|
-
|
|
4923
|
+
Ci(() => {
|
|
4926
4924
|
re(N), Re(Object.keys(N));
|
|
4927
|
-
}),
|
|
4925
|
+
}), _i(() => {
|
|
4928
4926
|
re(N), Re(Object.keys(N));
|
|
4929
|
-
}, [N]),
|
|
4927
|
+
}, [N]), J(() => {
|
|
4930
4928
|
requestAnimationFrame(() => {
|
|
4931
4929
|
ee.current = !1;
|
|
4932
4930
|
});
|