@ishibashi0112/spreadsheet-grid-core 0.47.1 → 0.48.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -1 +1 @@
|
|
|
1
|
-
Object.defineProperty(exports,Symbol.toStringTag,{value:`Module`});const e=require("../logic/detailRow.cjs"),t=require("../logic/geometry.cjs"),n=require("../logic/autoScrollGeometry.cjs"),r=require("../logic/slotDom.cjs");function i(e,n,r,i){let a=e.find(e=>e.key===n);if(!a)return null;let o=t.getColumnPane(a),s={left:[],center:[],right:[]},c=new Map;for(let n of e)s[t.getColumnPane(n)].push(n.key),c.set(n.key,n.visible!==!1);let l=s[r].filter(e=>c.get(e)).indexOf(n),u=s[o].indexOf(n);if(u<0)return null;s[o].splice(u,1);let d=i;o===r&&l>=0&&d>l&&--d;let f=s[r].filter(e=>c.get(e));if(d=Math.max(0,Math.min(d,f.length)),o===r&&l>=0&&d===l)return null;let p;return p=d>=f.length?s[r].length:s[r].indexOf(f[d]),s[r].splice(p,0,n),[...s.left,...s.center,...s.right]}function a(n,r,i,a){let o=n.filter(e=>t.getColumnPane(e)===i&&e.visible!==!1).map(e=>e.key),{entries:s}=r;for(let t=Math.max(a,0);t<s.length;t+=1){let n=s[t].column.key;if(e.isSyntheticColumnKey(n))continue;let r=o.indexOf(n);return r<0?o.length:r}return o.length}var o=t=>{let n=0;for(;n<t.entries.length&&e.isSyntheticColumnKey(t.entries[n].column.key);)n+=1;return n},s=32,c=2,l=14,u=12,d=`<svg viewBox="0 0 24 24" width="14" height="14" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><polyline points="5 9 2 12 5 15"/><polyline points="9 5 12 2 15 5"/><polyline points="15 19 12 22 9 19"/><polyline points="19 9 22 12 19 15"/><line x1="2" y1="12" x2="22" y2="12"/><line x1="12" y1="2" x2="12" y2="22"/></svg>`,f=`<svg viewBox="0 0 24 24" width="14" height="14" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><line x1="12" y1="17" x2="12" y2="22"/><path d="M5 17h14v-1.76a2 2 0 0 0-1.11-1.79l-1.78-.9A2 2 0 0 1 15 10.76V6h1a2 2 0 0 0 0-4H8a2 2 0 0 0 0 4h1v4.76a2 2 0 0 1-1.11 1.79l-1.78.9A2 2 0 0 0 5 15.24Z"/></svg>`,p=`<svg viewBox="0 0 24 24" width="14" height="14" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><circle cx="12" cy="12" r="10"/><line x1="4.9" y1="4.9" x2="19.1" y2="19.1"/></svg>`,m=`0.5`,h=200,g=`cubic-bezier(0.2, 0.7, 0.3, 1)`,_=e=>e?.closest(`.ssg-motion-off`)!=null,v=`transform 160ms ${g}`,y=`data-ssg-col-dragging`,b=`4`,x=t=>{let n=[];return t.querySelectorAll(`[data-ssg-col-key]`).forEach(r=>{e.isInsideDetailCardOf(t,r)||n.push(r)}),n},S=t=>{if(!t)return null;let n=new Map;return t.querySelectorAll(`[data-ssg-col-key]`).forEach(r=>{if(e.isInsideDetailCardOf(t,r))return;let i=r.dataset.ssgColKey;i&&!n.has(i)&&n.set(i,r.getBoundingClientRect().left)}),n},C=()=>{let C=null,w=null,T=null,E=null,D={x:0,y:0},O=null,k=!1,A=null,j=null,M=null,N=null,P=null,F=null,I=0,L=null,R=null,z=``,B=()=>C?.motion===`live`,V=()=>({left:C?.leftIndicatorRef.current??null,center:C?.centerIndicatorRef.current??null,right:C?.rightIndicatorRef.current??null}),H=()=>{for(let e of Object.values(V()))e&&(e.style.display=`none`)},U=e=>{if(M)return;let t=document.createElement(`div`);t.setAttribute(`data-grid-drag-ghost`,``),C?.scrollContainerRef.current?.closest(`.ssg-theme-dark`)!=null&&t.classList.add(`ssg-theme-dark`),C?.scrollContainerRef.current?.closest(`.ssg-motion-off`)!=null&&t.classList.add(`ssg-motion-off`),t.style.cssText=[`position:fixed`,`top:0`,`left:0`,`display:inline-flex`,`align-items:center`,`gap:7px`,`padding:7px 12px 7px 10px`,`border-radius:9px`,`border:1px solid var(--ssg-ghost-border)`,`background:var(--ssg-ghost-bg)`,`color:var(--ssg-ghost-text)`,`font-size:12px`,`font-weight:600`,`line-height:1`,`white-space:nowrap`,`box-shadow:var(--ssg-ghost-shadow)`,`pointer-events:none`,`user-select:none`,`z-index:9999`,`will-change:transform`,`transform:translate(-9999px,-9999px)`].join(`;`),r.applySlotToElement(t,C?.ghostSlot);let n=document.createElement(`span`);n.style.cssText=`display:inline-flex;align-items:center;justify-content:center;width:14px;height:14px;flex:none`;let i=document.createElement(`span`);i.textContent=e,t.appendChild(n),t.appendChild(i),document.body.appendChild(t),M=t,N=n,P=null},W=e=>{let t=M;if(!t)return;t.style.transform=`translate(`+(D.x+l)+`px,`+(D.y+u)+`px)`;let n=e??`out`;if(P===n)return;P=n;let r=N;n===`out`?(t.style.opacity=m,r&&(r.innerHTML=p)):(t.style.opacity=`1`,r&&(r.innerHTML=n===`center`?d:f))},G=()=>{M&&M.parentNode&&M.parentNode.removeChild(M),M=null,N=null,P=null},K=(e,n)=>{if(C===null)return null;let{paneLayout:r,leftPaneScrollRef:i,rightPaneScrollRef:a,bodyScrollRef:l,scrollContainerRef:u,leftLeadingWidth:d,centerLeadingWidth:f,rightLeadingWidth:p}=C,m=u.current;if(m){let t=m.getBoundingClientRect();if(e<t.left||e>t.right||n<t.top||n>t.bottom)return null}let h=i.current,g=a.current;if(h&&r.left.entries.length===0&&e<=h.getBoundingClientRect().left+s)return{pane:`left`,slot:0,leftPx:c};if(h&&r.left.entries.length>0){let n=h.getBoundingClientRect();if(e<n.right){let i=e-n.left-d,a=Math.max(t.findPaneDropSlot(r.left,i),o(r.left));return{pane:`left`,slot:a,leftPx:d+t.paneDropSlotBoundaryX(r.left,a)}}}if(g&&r.right.entries.length===0&&e>=g.getBoundingClientRect().left-s)return{pane:`right`,slot:0,leftPx:-2};if(g&&r.right.entries.length>0){let n=g.getBoundingClientRect();if(e>=n.left){let i=e-n.left-p,a=Math.max(t.findPaneDropSlot(r.right,i),o(r.right));return{pane:`right`,slot:a,leftPx:p+t.paneDropSlotBoundaryX(r.right,a)}}}let _=l.current;if(_&&r.center.entries.length>0){let n=_.getBoundingClientRect(),i=_.scrollLeft+e-n.left-f,a=Math.max(t.findPaneDropSlot(r.center,Math.max(i,0)),o(r.center));return{pane:`center`,slot:a,leftPx:f+t.paneDropSlotBoundaryX(r.center,a)}}return null},q=e=>{let t=V();for(let n of[`left`,`center`,`right`]){let r=t[n];r&&(n===e.pane?(r.style.left=`${e.leftPx}px`,r.style.display=`block`):r.style.display=`none`)}},J=(e,t)=>{let n=R?.get(t);n!==void 0&&R?.delete(t),e.set(t,n??t.style.zIndex)},Y=(e,t)=>{let n=L,r=w,i=F;if(!n||r===null||i===null||C===null)return;let a=C.scrollContainerRef.current;if(!a)return;let o=C.paneLayout[i].entries,s=o.findIndex(e=>e.column.key===r);if(s<0)return;let c=o[s].paneLocalSize,l=!t||e===null?s:e>s?e-1:e,u=new Map;for(let e=Math.min(s,l);e<=Math.max(s,l);e+=1)e!==s&&u.set(o[e].column.key,e>s?-c:c);let d=i===`center`?a.scrollLeft-I:0,f=(O?D.x-O.x:0)+d;for(let e of x(a)){let i=e.dataset.ssgColKey;if(i===void 0)continue;if(i===r){n.has(e)||(J(n,e),e.style.zIndex=b,e.style.willChange=`transform`),t?(e.setAttribute(y,`live`),e.style.transition=`none`,e.style.transform=`translateX(${f}px)`):(e.removeAttribute(y),e.style.transition=v,e.style.transform=`translateX(0px)`);continue}let a=u.get(i)??0;if(a===0&&!n.has(e))continue;n.has(e)||J(n,e);let o=`translateX(${a}px)`;e.style.transform!==o&&(e.style.transition=v,e.style.transform=o)}},X=e=>{e.forEach((e,t)=>{t.style.transition=``,t.style.transform=``,t.style.willChange=``,t.style.zIndex=e,t.removeAttribute(y)})},Z=()=>{let e=K(D.x,D.y);if(B()){e&&(T={pane:e.pane,slot:e.slot});let t=T;if(t!==null&&t.pane!==F){U(z),W(t.pane),e&&q(e),Y(null,!1);return}G(),H(),Y(t===null?null:t.slot,!0);return}if(W(e?e.pane:null),!e){T=null,H();return}T={pane:e.pane,slot:e.slot},q(e)},Q=()=>{if(w===null){j=null;return}let e=C?.scrollContainerRef.current??null;if(e&&(k||(!O||n.hasPointerLeftActivationRadius(O,D,6))&&(k=!0),k)){let t=e.getBoundingClientRect(),r=n.resolveScrollContentBox({rectLeft:t.left,rectTop:t.top,clientLeft:e.clientLeft,clientTop:e.clientTop,clientWidth:e.clientWidth,clientHeight:e.clientHeight}),i=n.resolveAutoScrollAxisDirection(D.x,r.left,r.right,24),a=n.computeNextScrollPosition(e.scrollLeft,i,18,e.scrollWidth-e.clientWidth);a!==e.scrollLeft&&e.scrollTo({left:a,behavior:`auto`})}Z(),j=requestAnimationFrame(Q)},$=e=>{j!==null&&(cancelAnimationFrame(j),j=null),document.body.style.cursor=``,H(),G();let n=w,r=T;w=null,T=null,O=null;let o=L;L=null,F=null;let s=n!==null&&r!==null&&C!==null?C.paneLayout[r.pane].entries.findIndex(e=>e.column.key===n):-1,c=r!==null&&s>=0&&(r.slot===s||r.slot===s+1),l=e&&n&&r&&C!==null&&!c?i(C.columns,n,r.pane,a(C.columns,C.paneLayout[r.pane],r.pane,r.slot)):null;if(o&&!l&&(o.forEach((e,t)=>{t.isConnected&&(t.style.transition=v,t.style.transform=`translateX(0px)`)}),R=o,window.setTimeout(()=>{X(o),R===o&&(R=null)},200)),!l||!n||!r||C===null)return;let{columns:u,applyColumnOrderAndPin:d,scrollContainerRef:f}=C,p=u.find(e=>e.key===n),m=p?t.getColumnPane(p):null;E=m!==null&&m===r.pane&&!_(f.current)?S(f.current):null,o&&X(o),d(l,new Map([[n,r.pane===`center`?void 0:r.pane]]))};return{update:e=>{C=e},onColumnDragHandlePointerDown:(e,n)=>{if(C===null||!C.enabled||n.button!==0)return;n.stopPropagation(),n.preventDefault(),w=e.key,T=null,D={x:n.clientX,y:n.clientY},O={x:n.clientX,y:n.clientY},k=!1,document.body.style.cursor=`grabbing`,z=e.title||e.key,B()?(F=t.getColumnPane(e),I=C.scrollContainerRef.current?.scrollLeft??0,L=new Map):U(z);let r=n.currentTarget,i=n.pointerId;try{r.setPointerCapture(i)}catch{}let a=e=>{e.pointerId===i&&(D={x:e.clientX,y:e.clientY},Z())},o=()=>{window.removeEventListener(`pointermove`,a),window.removeEventListener(`pointerup`,s),window.removeEventListener(`pointercancel`,c),window.removeEventListener(`keydown`,l),A=null;try{r.releasePointerCapture(i)}catch{}};function s(e){e.pointerId===i&&(o(),$(!0))}function c(e){e.pointerId===i&&(o(),$(!1))}function l(e){e.key===`Escape`&&(o(),$(!1))}window.addEventListener(`pointermove`,a),window.addEventListener(`pointerup`,s),window.addEventListener(`pointercancel`,c),window.addEventListener(`keydown`,l),A=o,Z(),j=requestAnimationFrame(Q)},applyReorderSettle:()=>{let t=E;if(E=null,!t)return;let n=C?.scrollContainerRef.current??null;if(!n)return;let r=new Map,i=new Map;n.querySelectorAll(`[data-ssg-col-key]`).forEach(a=>{if(e.isInsideDetailCardOf(n,a))return;let o=a.dataset.ssgColKey;if(!o||!t.has(o))return;let s=r.get(o);s?s.push(a):(r.set(o,[a]),i.set(o,a.getBoundingClientRect().left))});let a=[];if(r.forEach((e,n)=>{let r=t.get(n),o=i.get(n);if(r===void 0||o===void 0)return;let s=r-o;if(!(Math.abs(s)<.5))for(let t of e)t.style.transition=`none`,t.style.transform=`translateX(${s}px)`,t.style.willChange=`transform`,a.push(t)}),a.length!==0){n.getBoundingClientRect();for(let e of a)e.style.transition=`transform ${h}ms ${g}`,e.style.transform=`translateX(0)`;window.setTimeout(()=>{for(let e of a)e.style.transition=``,e.style.transform=``,e.style.willChange=``},280)}},dispose:()=>{A?.(),A=null,j!==null&&(cancelAnimationFrame(j),j=null),w=null,T=null,document.body.style.cursor=``,G(),L&&X(L),L=null,F=null}}};exports.computeHeaderReorderedKeys=i,exports.createColumnHeaderDragController=C,exports.resolveConsumerDropSlot=a;
|
|
1
|
+
Object.defineProperty(exports,Symbol.toStringTag,{value:`Module`});const e=require("../logic/detailRow.cjs"),t=require("../logic/geometry.cjs"),n=require("../logic/autoScrollGeometry.cjs"),r=require("../logic/slotDom.cjs");function i(e,n,r,i){let a=e.find(e=>e.key===n);if(!a)return null;let o=t.getColumnPane(a),s={left:[],center:[],right:[]},c=new Map;for(let n of e)s[t.getColumnPane(n)].push(n.key),c.set(n.key,n.visible!==!1);let l=s[r].filter(e=>c.get(e)).indexOf(n),u=s[o].indexOf(n);if(u<0)return null;s[o].splice(u,1);let d=i;o===r&&l>=0&&d>l&&--d;let f=s[r].filter(e=>c.get(e));if(d=Math.max(0,Math.min(d,f.length)),o===r&&l>=0&&d===l)return null;let p;return p=d>=f.length?s[r].length:s[r].indexOf(f[d]),s[r].splice(p,0,n),[...s.left,...s.center,...s.right]}function a(n,r,i,a){let o=n.filter(e=>t.getColumnPane(e)===i&&e.visible!==!1).map(e=>e.key),{entries:s}=r;for(let t=Math.max(a,0);t<s.length;t+=1){let n=s[t].column.key;if(e.isSyntheticColumnKey(n))continue;let r=o.indexOf(n);return r<0?o.length:r}return o.length}var o=t=>{let n=0;for(;n<t.entries.length&&e.isSyntheticColumnKey(t.entries[n].column.key);)n+=1;return n},s=32,c=2,l=14,u=12,d=14,f=e=>`<svg viewBox="0 0 24 24" width="`+e+`" height="`+e+`" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><polyline points="5 9 2 12 5 15"/><polyline points="9 5 12 2 15 5"/><polyline points="15 19 12 22 9 19"/><polyline points="19 9 22 12 19 15"/><line x1="2" y1="12" x2="22" y2="12"/><line x1="12" y1="2" x2="12" y2="22"/></svg>`,p=e=>`<svg viewBox="0 0 24 24" width="`+e+`" height="`+e+`" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><line x1="12" y1="17" x2="12" y2="22"/><path d="M5 17h14v-1.76a2 2 0 0 0-1.11-1.79l-1.78-.9A2 2 0 0 1 15 10.76V6h1a2 2 0 0 0 0-4H8a2 2 0 0 0 0 4h1v4.76a2 2 0 0 1-1.11 1.79l-1.78.9A2 2 0 0 0 5 15.24Z"/></svg>`,m=f(d),h=p(d),g=`<svg viewBox="0 0 24 24" width="14" height="14" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><circle cx="12" cy="12" r="10"/><line x1="4.9" y1="4.9" x2="19.1" y2="19.1"/></svg>`,_=`0.5`,v=200,y=`cubic-bezier(0.2, 0.7, 0.3, 1)`,ee=e=>e?.closest(`.ssg-motion-off`)!=null,te=160,b=`transform ${te}ms ${y}`,x=`data-ssg-col-dragging`,ne=`4`,re=`9`,ie=`ssg-col-drag-float`,ae=`ssg-col-drag-pin`,oe=12,se=`ssg-col-drop-indicator`,ce=`ssg-header-cell`,le=[`data-ssg-col-key`,`data-ssg-tooltip`,`data-autoheight-cell`,`id`,`tabindex`],ue=180,de=400,S=t=>{let n=[];return t.querySelectorAll(`[data-ssg-col-key]`).forEach(r=>{e.isInsideDetailCardOf(t,r)||n.push(r)}),n},fe=t=>{if(!t)return null;let n=new Map;return t.querySelectorAll(`[data-ssg-col-key]`).forEach(r=>{if(e.isInsideDetailCardOf(t,r))return;let i=r.dataset.ssgColKey;i&&!n.has(i)&&n.set(i,r.getBoundingClientRect().left)}),n},pe=e=>{let t=getComputedStyle(e).transform,n=/^matrix(3d)?\(([^)]*)\)$/.exec(t);if(n===null)return 0;let r=Number(n[2].split(`,`)[n[1]===`3d`?12:4]);return Number.isFinite(r)?r:0},C=()=>{let d=null,C=null,w=null,T=null,E={x:0,y:0},D=null,O=!1,k=null,A=null,j=null,M=null,N=null,P=null,F=null,I=null,me=0,L=null,R=null,z=``,B=null,V=0,H=null,U=null,he=()=>d?.motion===`live`,W=()=>({left:d?.leftIndicatorRef.current??null,center:d?.centerIndicatorRef.current??null,right:d?.rightIndicatorRef.current??null}),G=()=>{for(let e of Object.values(W()))e&&(e.style.display=`none`)},ge=e=>{if(N)return;let t=document.createElement(`div`);t.setAttribute(`data-grid-drag-ghost`,``),d?.scrollContainerRef.current?.closest(`.ssg-theme-dark`)!=null&&t.classList.add(`ssg-theme-dark`),d?.scrollContainerRef.current?.closest(`.ssg-motion-off`)!=null&&t.classList.add(`ssg-motion-off`),t.style.cssText=[`position:fixed`,`top:0`,`left:0`,`display:inline-flex`,`align-items:center`,`gap:7px`,`padding:7px 12px 7px 10px`,`border-radius:9px`,`border:1px solid var(--ssg-ghost-border)`,`background:var(--ssg-ghost-bg)`,`color:var(--ssg-ghost-text)`,`font-size:12px`,`font-weight:600`,`line-height:1`,`white-space:nowrap`,`box-shadow:var(--ssg-ghost-shadow)`,`pointer-events:none`,`user-select:none`,`z-index:9999`,`will-change:transform`,`transform:translate(-9999px,-9999px)`].join(`;`),r.applySlotToElement(t,d?.ghostSlot);let n=document.createElement(`span`);n.style.cssText=`display:inline-flex;align-items:center;justify-content:center;width:14px;height:14px;flex:none`;let i=document.createElement(`span`);i.textContent=e,t.appendChild(n),t.appendChild(i),document.body.appendChild(t),N=t,P=n,F=null},_e=e=>{let t=N;if(!t)return;t.style.transform=`translate(`+(E.x+l)+`px,`+(E.y+u)+`px)`;let n=e??`out`;if(F===n)return;F=n;let r=P;n===`out`?(t.style.opacity=_,r&&(r.innerHTML=g)):(t.style.opacity=`1`,r&&(r.innerHTML=n===`center`?m:h))},K=()=>{N&&N.parentNode&&N.parentNode.removeChild(N),N=null,P=null,F=null},ve=(e,n)=>{if(d===null)return null;let{paneLayout:r,leftPaneScrollRef:i,rightPaneScrollRef:a,bodyScrollRef:l,scrollContainerRef:u,leftLeadingWidth:f,centerLeadingWidth:p,rightLeadingWidth:m}=d,h=u.current;if(h){let t=h.getBoundingClientRect();if(e<t.left||e>t.right||n<t.top||n>t.bottom)return null}let g=i.current,_=a.current;if(g&&r.left.entries.length===0&&e<=g.getBoundingClientRect().left+s)return{pane:`left`,slot:0,leftPx:c};if(g&&r.left.entries.length>0){let n=g.getBoundingClientRect();if(e<n.right){let i=e-n.left-f,a=Math.max(t.findPaneDropSlot(r.left,i),o(r.left));return{pane:`left`,slot:a,leftPx:f+t.paneDropSlotBoundaryX(r.left,a)}}}if(_&&r.right.entries.length===0&&e>=_.getBoundingClientRect().left-s)return{pane:`right`,slot:0,leftPx:-2};if(_&&r.right.entries.length>0){let n=_.getBoundingClientRect();if(e>=n.left){let i=e-n.left-m,a=Math.max(t.findPaneDropSlot(r.right,i),o(r.right));return{pane:`right`,slot:a,leftPx:m+t.paneDropSlotBoundaryX(r.right,a)}}}let v=l.current;if(v&&r.center.entries.length>0){let n=v.getBoundingClientRect(),i=v.scrollLeft+e-n.left-p,a=Math.max(t.findPaneDropSlot(r.center,Math.max(i,0)),o(r.center));return{pane:`center`,slot:a,leftPx:p+t.paneDropSlotBoundaryX(r.center,a)}}return null},ye=e=>{let t=W();for(let n of[`left`,`center`,`right`]){let r=t[n];r&&(n===e.pane?(r.style.left=`${e.leftPx}px`,r.style.display=`block`):r.style.display=`none`)}},be=(e,t)=>{let n=R?.get(t);n!==void 0&&R?.delete(t),e.set(t,n??{zIndex:t.style.zIndex,visibility:t.style.visibility})},q=(e,t)=>{let n=[],r=L,i=C,a=I;if(!r||i===null||a===null||d===null)return n;let o=d.scrollContainerRef.current;if(!o)return n;let s=d.paneLayout[a].entries,c=s.findIndex(e=>e.column.key===i);if(c<0)return n;let l=s[c].paneLocalSize,u=t===`lift-out`?s.length-1:t===`rest`||e===null?c:e>c?e-1:e,f=new Map;for(let e=Math.min(c,u);e<=Math.max(c,u);e+=1)e!==c&&f.set(s[e].column.key,e>c?-l:l);let p=a===`center`?o.scrollLeft-me:0,m=(D?E.x-D.x:0)+p,h=U,g=new WeakSet;U=g;for(let e of S(o)){let a=e.dataset.ssgColKey;if(a===void 0)continue;g.add(e);let o=h!==null&&!h.has(e)?`none`:b;if(a===i){n.push(e),r.has(e)||(be(r,e),e.style.zIndex=ne,e.style.willChange=`transform`);let i=r.get(e);t===`follow`?(e.style.visibility=i?.visibility??``,e.setAttribute(x,`live`),e.style.transition=`none`,e.style.transform=`translateX(${m}px)`):t===`lift-out`?(e.style.visibility=`hidden`,e.removeAttribute(x),e.style.transition=`none`,e.style.transform=`translateX(0px)`):(e.style.visibility=i?.visibility??``,e.removeAttribute(x),e.style.transition=o,e.style.transform=`translateX(0px)`);continue}let s=f.get(a)??0;if(s===0&&!r.has(e))continue;r.has(e)||be(r,e);let c=`translateX(${s}px)`;e.style.transform!==c&&(e.style.transition=o,e.style.transform=c)}return n},J=e=>{e.forEach((e,t)=>{t.style.transition=``,t.style.transform=``,t.style.willChange=``,t.style.zIndex=e.zIndex,t.style.visibility=e.visibility,t.removeAttribute(x)})},xe=e=>{let t=e=>{for(let t of le)e.removeAttribute(t)};t(e),e.querySelectorAll(`*`).forEach(t),e.querySelectorAll(`.ssg-header-actions`).forEach(e=>e.remove())},Se=(e,t,n)=>{let r=B;if(r===null){let e=document.createElement(`div`);e.className=ie,e.setAttribute(`aria-hidden`,`true`),e.setAttribute(`inert`,``);let n=document.createElement(`div`);n.style.cssText=`position:absolute;top:0;left:0;height:100%;will-change:transform`;let i=document.createElement(`div`);i.className=se,i.style.cssText=`position:absolute;display:none`,e.append(n,i),t.appendChild(e),r={layer:e,column:n,guide:i,badge:null,badgeKind:null,layerWidth:0,columnWidth:0,scrollTop:0,cellCount:0},B=r}let i=t.getBoundingClientRect(),a=e.getBoundingClientRect(),o=a.left+e.clientLeft,s=a.top+e.clientTop;r.layer.style.cssText=[`position:absolute`,`left:${o-i.left-t.clientLeft+t.scrollLeft}px`,`top:${s-i.top-t.clientTop+t.scrollTop}px`,`width:${e.clientWidth}px`,`height:${e.clientHeight}px`,`overflow:hidden`,`pointer-events:none`,`z-index:${re}`].join(`;`);let c=[],l=[],u=0;for(let e of n){let t=e.getBoundingClientRect(),n=e.cloneNode(!0);xe(n),n.setAttribute(x,`live`);let r=n.style;r.position=`absolute`,r.left=`0px`,r.top=`${t.top-s}px`,r.width=`${t.width}px`,r.minWidth=`${t.width}px`,r.height=`${t.height}px`,r.transform=``,r.transition=``,r.visibility=``,r.willChange=``,r.zIndex=``,u=Math.max(u,t.width),(n.classList.contains(ce)?l:c).push(n)}let d=null;for(let e of l)e.style.zIndex=`1`,d===null&&(d=document.createElement(`span`),d.className=ae,e.insertBefore(d,e.firstChild));return r.column.replaceChildren(...c,...l),r.column.style.width=`${u}px`,r.badge=d,r.badgeKind=null,r.layerWidth=e.clientWidth,r.columnWidth=u,r.scrollTop=e.scrollTop,r.cellCount=n.length,r},Ce=e=>{let t=d?.scrollContainerRef.current??null,n=t?.parentElement??null;return!t||!n?null:e.length===0||B!==null&&B.scrollTop===t.scrollTop&&B.cellCount===e.length?B:Se(t,n,e)},we=e=>{if(d===null)return!1;let t=d.leftPaneScrollRef.current;if(t&&d.paneLayout.left.entries.length>0&&e<t.getBoundingClientRect().right-.5)return!0;let n=d.rightPaneScrollRef.current;return!!(n&&d.paneLayout.right.entries.length>0&&e>n.getBoundingClientRect().left+.5)},Te=(e,t,n)=>{let r=e.guide,i=t===null?null:W()[t];if(!i||i.style.display!==`block`){r.style.display=`none`;return}let a=i.getBoundingClientRect();if(t===`center`&&we(a.left+a.width/2)){r.style.display=`none`;return}r.style.left=`${a.left-n.left}px`,r.style.top=`${a.top-n.top}px`,r.style.height=`${a.height}px`,r.style.display=`block`},Ee=(e,t)=>{let n=e.layer.getBoundingClientRect(),r=Math.max(e.layerWidth-e.columnWidth,0),i=Math.min(Math.max(E.x-V-n.left,0),r);e.column.style.transition=`none`,e.column.style.transform=`translateX(${i}px)`;let a=t===null?`none`:t===`center`?`move`:`pin`;e.badge!==null&&e.badgeKind!==a&&(e.badgeKind=a,e.badge.innerHTML=a===`none`?``:a===`move`?f(oe):p(oe),e.badge.style.display=a===`none`?`none`:``),Te(e,t,n)},Y=()=>{B?.layer.remove(),B=null},De=(e,t,n)=>{let r=e.layer.getBoundingClientRect();e.column.style.transition=`transform ${n}ms ${y}`,e.column.style.transform=`translateX(${t-r.left}px)`,e.badge?.remove(),e.guide.style.display=`none`},X=()=>{let e=H;if(H=null,e!==null){e.timer!==null&&window.clearTimeout(e.timer);for(let[t,n]of e.hiddenCells)t.style.visibility=n;e.float.layer.remove()}},Oe=()=>{let e=H;if(e===null||e.key===null)return;let t=e.key;if(e.pane!==null&&!d?.paneLayout[e.pane].entries.some(e=>e.column.key===t))return;e.key=null;let n=d?.scrollContainerRef.current??null,r=n?S(n).filter(e=>e.dataset.ssgColKey===t):[];if(r.length===0){X();return}let i=r[0].getBoundingClientRect().left;for(let t of r)e.hiddenCells.push([t,t.style.visibility]),t.style.visibility=`hidden`;De(e.float,i,ue),e.timer!==null&&window.clearTimeout(e.timer),e.timer=window.setTimeout(X,220)},Z=()=>{let e=ve(E.x,E.y);if(he()){e&&(w={pane:e.pane,slot:e.slot});let t=w;if(t!==null&&t.pane!==I){if(e&&ye(e),(d?.scrollContainerRef.current??null)?.parentElement!=null){let e=Ce(q(null,`lift-out`));if(e!==null){K(),Ee(e,t.pane);return}}Y(),ge(z),_e(t.pane),q(null,`rest`);return}if(K(),G(),q(t===null?null:t.slot,`follow`).length===0&&B!==null){Ee(B,null);return}Y();return}if(_e(e?e.pane:null),!e){w=null,G();return}w={pane:e.pane,slot:e.slot},ye(e)},Q=()=>{if(C===null){j=null;return}let e=d?.scrollContainerRef.current??null;if(e&&(O||(!D||n.hasPointerLeftActivationRadius(D,E,6))&&(O=!0),O)){let t=e.getBoundingClientRect(),r=n.resolveScrollContentBox({rectLeft:t.left,rectTop:t.top,clientLeft:e.clientLeft,clientTop:e.clientTop,clientWidth:e.clientWidth,clientHeight:e.clientHeight}),i=n.resolveAutoScrollAxisDirection(E.x,r.left,r.right,24),a=n.computeNextScrollPosition(e.scrollLeft,i,18,e.scrollWidth-e.clientWidth);a!==e.scrollLeft&&e.scrollTo({left:a,behavior:`auto`})}Z(),j=requestAnimationFrame(Q)},$=e=>{j!==null&&(cancelAnimationFrame(j),j=null),document.body.style.cursor=``,G(),K();let n=C,r=w;C=null,A=null,U=null,w=null,D=null;let o=L;L=null,I=null;let s=n!==null&&r!==null&&d!==null?d.paneLayout[r.pane].entries.findIndex(e=>e.column.key===n):-1,c=r!==null&&s>=0&&(r.slot===s||r.slot===s+1),l=e&&n&&r&&d!==null&&!c?i(d.columns,n,r.pane,a(d.columns,d.paneLayout[r.pane],r.pane,r.slot)):null,u=B;if(B=null,o&&!l){o.forEach((e,t)=>{t.isConnected&&(t.style.transition=b,t.style.transform=`translateX(0px)`)});let e=null;if(u!==null){let t=null;for(let e of o.keys())if(e.isConnected&&e.dataset.ssgColKey===n){t=e;break}t===null?u.layer.remove():(De(u,t.getBoundingClientRect().left,te),e={float:u,key:null,pane:null,timer:null,hiddenCells:[]},H=e)}R=o,window.setTimeout(()=>{J(o),R===o&&(R=null),e!==null&&H===e&&X()},200)}else u!==null&&!l&&u.layer.remove();if(!l||!n||!r||d===null)return;let{columns:f,applyColumnOrderAndPin:p,scrollContainerRef:m}=d,h=f.find(e=>e.key===n),g=h?t.getColumnPane(h):null;T=g!==null&&g===r.pane&&!ee(m.current)?fe(m.current):null,o&&J(o),u!==null&&(u.badge?.remove(),u.guide.style.display=`none`,H={float:u,key:n,pane:r.pane,timer:window.setTimeout(X,de),hiddenCells:[]}),p(l,new Map([[n,r.pane===`center`?void 0:r.pane]]))},ke=()=>{Oe();let t=T;if(T=null,!t)return;let n=d?.scrollContainerRef.current??null;if(!n)return;let r=new Map,i=new Map;n.querySelectorAll(`[data-ssg-col-key]`).forEach(a=>{if(e.isInsideDetailCardOf(n,a))return;let o=a.dataset.ssgColKey;if(!o||!t.has(o))return;let s=r.get(o);s?s.push(a):(r.set(o,[a]),i.set(o,a.getBoundingClientRect().left))});let a=[];if(r.forEach((e,n)=>{let r=t.get(n),o=i.get(n);if(r===void 0||o===void 0)return;let s=r-o;if(!(Math.abs(s)<.5))for(let t of e)t.style.transition=`none`,t.style.transform=`translateX(${s}px)`,t.style.willChange=`transform`,a.push(t)}),a.length===0)return;n.getBoundingClientRect();for(let e of a)e.style.transition=`transform ${v}ms ${y}`,e.style.transform=`translateX(0)`;Ae();let o=()=>{for(let e of a)e.style.transition=``,e.style.transform=``,e.style.willChange=``},s={run:o,timer:window.setTimeout(()=>{M===s&&(M=null),o()},280)};M=s},Ae=()=>{let e=M;M=null,e!==null&&(window.clearTimeout(e.timer),e.run())};return{update:e=>{d=e},onColumnDragHandlePointerDown:(e,n)=>{if(d===null||!d.enabled||n.button!==0)return;if(n.stopPropagation(),n.preventDefault(),C!==null){if(n.pointerId!==A)return;k?.(),$(!1)}if(Ae(),X(),Y(),R?.forEach((e,t)=>{t.style.visibility=e.visibility}),C=e.key,A=n.pointerId,w=null,U=null,E={x:n.clientX,y:n.clientY},D={x:n.clientX,y:n.clientY},O=!1,document.body.style.cursor=`grabbing`,z=e.title||e.key,he()){let r=d.scrollContainerRef.current;I=t.getColumnPane(e),me=r?.scrollLeft??0,L=new Map;let i=r?S(r).find(t=>t.dataset.ssgColKey===e.key):void 0;V=i?n.clientX-(i.getBoundingClientRect().left-pe(i)):(d.paneLayout[I].entries.find(t=>t.column.key===e.key)?.paneLocalSize??0)/2}else ge(z);let r=n.currentTarget,i=n.pointerId;try{r.setPointerCapture(i)}catch{}let a=e=>{e.pointerId===i&&(E={x:e.clientX,y:e.clientY},Z())},o=()=>{window.removeEventListener(`pointermove`,a),window.removeEventListener(`pointerup`,s),window.removeEventListener(`pointercancel`,c),window.removeEventListener(`keydown`,l),k=null;try{r.releasePointerCapture(i)}catch{}};function s(e){e.pointerId===i&&(o(),$(!0))}function c(e){e.pointerId===i&&(o(),$(!1))}function l(e){e.key===`Escape`&&(o(),$(!1))}window.addEventListener(`pointermove`,a),window.addEventListener(`pointerup`,s),window.addEventListener(`pointercancel`,c),window.addEventListener(`keydown`,l),k=o,Z(),j=requestAnimationFrame(Q)},applyReorderSettle:ke,dispose:()=>{k?.(),k=null,j!==null&&(cancelAnimationFrame(j),j=null),C=null,A=null,w=null,document.body.style.cursor=``,K(),L&&J(L),L=null,I=null,Y(),X()}}};exports.computeHeaderReorderedKeys=i,exports.createColumnHeaderDragController=C,exports.resolveConsumerDropSlot=a;
|
|
@@ -40,12 +40,18 @@ var f = (e) => {
|
|
|
40
40
|
let n = 0;
|
|
41
41
|
for (; n < e.entries.length && t(e.entries[n].column.key);) n += 1;
|
|
42
42
|
return n;
|
|
43
|
-
}, p = 32, m = 2, h = 14, g = 12, _ = "<svg viewBox=\"0 0 24 24\" width=\"
|
|
43
|
+
}, p = 32, m = 2, h = 14, g = 12, _ = 14, v = (e) => "<svg viewBox=\"0 0 24 24\" width=\"" + e + "\" height=\"" + e + "\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"2\" stroke-linecap=\"round\" stroke-linejoin=\"round\"><polyline points=\"5 9 2 12 5 15\"/><polyline points=\"9 5 12 2 15 5\"/><polyline points=\"15 19 12 22 9 19\"/><polyline points=\"19 9 22 12 19 15\"/><line x1=\"2\" y1=\"12\" x2=\"22\" y2=\"12\"/><line x1=\"12\" y1=\"2\" x2=\"12\" y2=\"22\"/></svg>", y = (e) => "<svg viewBox=\"0 0 24 24\" width=\"" + e + "\" height=\"" + e + "\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"2\" stroke-linecap=\"round\" stroke-linejoin=\"round\"><line x1=\"12\" y1=\"17\" x2=\"12\" y2=\"22\"/><path d=\"M5 17h14v-1.76a2 2 0 0 0-1.11-1.79l-1.78-.9A2 2 0 0 1 15 10.76V6h1a2 2 0 0 0 0-4H8a2 2 0 0 0 0 4h1v4.76a2 2 0 0 1-1.11 1.79l-1.78.9A2 2 0 0 0 5 15.24Z\"/></svg>", ee = v(_), te = y(_), ne = "<svg viewBox=\"0 0 24 24\" width=\"14\" height=\"14\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"2\" stroke-linecap=\"round\" stroke-linejoin=\"round\"><circle cx=\"12\" cy=\"12\" r=\"10\"/><line x1=\"4.9\" y1=\"4.9\" x2=\"19.1\" y2=\"19.1\"/></svg>", re = "0.5", ie = 200, b = "cubic-bezier(0.2, 0.7, 0.3, 1)", ae = (e) => e?.closest(".ssg-motion-off") != null, oe = 160, x = `transform ${oe}ms ${b}`, S = "data-ssg-col-dragging", se = "4", ce = "9", le = "ssg-col-drag-float", ue = "ssg-col-drag-pin", C = 12, de = "ssg-col-drop-indicator", fe = "ssg-header-cell", pe = [
|
|
44
|
+
"data-ssg-col-key",
|
|
45
|
+
"data-ssg-tooltip",
|
|
46
|
+
"data-autoheight-cell",
|
|
47
|
+
"id",
|
|
48
|
+
"tabindex"
|
|
49
|
+
], me = 180, he = 400, w = (t) => {
|
|
44
50
|
let n = [];
|
|
45
51
|
return t.querySelectorAll("[data-ssg-col-key]").forEach((r) => {
|
|
46
52
|
e(t, r) || n.push(r);
|
|
47
53
|
}), n;
|
|
48
|
-
},
|
|
54
|
+
}, ge = (t) => {
|
|
49
55
|
if (!t) return null;
|
|
50
56
|
let n = /* @__PURE__ */ new Map();
|
|
51
57
|
return t.querySelectorAll("[data-ssg-col-key]").forEach((r) => {
|
|
@@ -53,18 +59,23 @@ var f = (e) => {
|
|
|
53
59
|
let i = r.dataset.ssgColKey;
|
|
54
60
|
i && !n.has(i) && n.set(i, r.getBoundingClientRect().left);
|
|
55
61
|
}), n;
|
|
62
|
+
}, _e = (e) => {
|
|
63
|
+
let t = getComputedStyle(e).transform, n = /^matrix(3d)?\(([^)]*)\)$/.exec(t);
|
|
64
|
+
if (n === null) return 0;
|
|
65
|
+
let r = Number(n[2].split(",")[n[1] === "3d" ? 12 : 4]);
|
|
66
|
+
return Number.isFinite(r) ? r : 0;
|
|
56
67
|
}, T = () => {
|
|
57
|
-
let t = null,
|
|
68
|
+
let t = null, _ = null, T = null, E = null, D = {
|
|
58
69
|
x: 0,
|
|
59
70
|
y: 0
|
|
60
|
-
},
|
|
71
|
+
}, O = null, k = !1, A = null, j = null, M = null, N = null, P = null, F = null, I = null, L = null, ve = 0, R = null, z = null, B = "", V = null, ye = 0, H = null, U = null, be = () => t?.motion === "live", W = () => ({
|
|
61
72
|
left: t?.leftIndicatorRef.current ?? null,
|
|
62
73
|
center: t?.centerIndicatorRef.current ?? null,
|
|
63
74
|
right: t?.rightIndicatorRef.current ?? null
|
|
64
|
-
}),
|
|
65
|
-
for (let e of Object.values(
|
|
66
|
-
},
|
|
67
|
-
if (
|
|
75
|
+
}), G = () => {
|
|
76
|
+
for (let e of Object.values(W())) e && (e.style.display = "none");
|
|
77
|
+
}, xe = (e) => {
|
|
78
|
+
if (P) return;
|
|
68
79
|
let n = document.createElement("div");
|
|
69
80
|
n.setAttribute("data-grid-drag-ghost", ""), t?.scrollContainerRef.current?.closest(".ssg-theme-dark") != null && n.classList.add("ssg-theme-dark"), t?.scrollContainerRef.current?.closest(".ssg-motion-off") != null && n.classList.add("ssg-motion-off"), n.style.cssText = [
|
|
70
81
|
"position:fixed",
|
|
@@ -92,19 +103,19 @@ var f = (e) => {
|
|
|
92
103
|
let r = document.createElement("span");
|
|
93
104
|
r.style.cssText = "display:inline-flex;align-items:center;justify-content:center;width:14px;height:14px;flex:none";
|
|
94
105
|
let i = document.createElement("span");
|
|
95
|
-
i.textContent = e, n.appendChild(r), n.appendChild(i), document.body.appendChild(n),
|
|
96
|
-
},
|
|
97
|
-
let t =
|
|
106
|
+
i.textContent = e, n.appendChild(r), n.appendChild(i), document.body.appendChild(n), P = n, F = r, I = null;
|
|
107
|
+
}, Se = (e) => {
|
|
108
|
+
let t = P;
|
|
98
109
|
if (!t) return;
|
|
99
|
-
t.style.transform = "translate(" + (
|
|
110
|
+
t.style.transform = "translate(" + (D.x + h) + "px," + (D.y + g) + "px)";
|
|
100
111
|
let n = e ?? "out";
|
|
101
|
-
if (
|
|
102
|
-
|
|
103
|
-
let r =
|
|
104
|
-
n === "out" ? (t.style.opacity =
|
|
112
|
+
if (I === n) return;
|
|
113
|
+
I = n;
|
|
114
|
+
let r = F;
|
|
115
|
+
n === "out" ? (t.style.opacity = re, r && (r.innerHTML = ne)) : (t.style.opacity = "1", r && (r.innerHTML = n === "center" ? ee : te));
|
|
105
116
|
}, K = () => {
|
|
106
|
-
|
|
107
|
-
},
|
|
117
|
+
P && P.parentNode && P.parentNode.removeChild(P), P = null, F = null, I = null;
|
|
118
|
+
}, Ce = (e, r) => {
|
|
108
119
|
if (t === null) return null;
|
|
109
120
|
let { paneLayout: a, leftPaneScrollRef: o, rightPaneScrollRef: s, bodyScrollRef: c, scrollContainerRef: l, leftLeadingWidth: u, centerLeadingWidth: d, rightLeadingWidth: h } = t, g = l.current;
|
|
110
121
|
if (g) {
|
|
@@ -154,8 +165,8 @@ var f = (e) => {
|
|
|
154
165
|
};
|
|
155
166
|
}
|
|
156
167
|
return null;
|
|
157
|
-
},
|
|
158
|
-
let t =
|
|
168
|
+
}, we = (e) => {
|
|
169
|
+
let t = W();
|
|
159
170
|
for (let n of [
|
|
160
171
|
"left",
|
|
161
172
|
"center",
|
|
@@ -164,66 +175,184 @@ var f = (e) => {
|
|
|
164
175
|
let r = t[n];
|
|
165
176
|
r && (n === e.pane ? (r.style.left = `${e.leftPx}px`, r.style.display = "block") : r.style.display = "none");
|
|
166
177
|
}
|
|
167
|
-
},
|
|
178
|
+
}, Te = (e, t) => {
|
|
168
179
|
let n = z?.get(t);
|
|
169
|
-
n !== void 0 && z?.delete(t), e.set(t, n ??
|
|
170
|
-
|
|
171
|
-
|
|
172
|
-
|
|
173
|
-
|
|
174
|
-
|
|
175
|
-
|
|
176
|
-
|
|
177
|
-
|
|
178
|
-
|
|
179
|
-
|
|
180
|
-
|
|
180
|
+
n !== void 0 && z?.delete(t), e.set(t, n ?? {
|
|
181
|
+
zIndex: t.style.zIndex,
|
|
182
|
+
visibility: t.style.visibility
|
|
183
|
+
});
|
|
184
|
+
}, q = (e, n) => {
|
|
185
|
+
let r = [], i = R, a = _, o = L;
|
|
186
|
+
if (!i || a === null || o === null || t === null) return r;
|
|
187
|
+
let s = t.scrollContainerRef.current;
|
|
188
|
+
if (!s) return r;
|
|
189
|
+
let c = t.paneLayout[o].entries, l = c.findIndex((e) => e.column.key === a);
|
|
190
|
+
if (l < 0) return r;
|
|
191
|
+
let u = c[l].paneLocalSize, d = n === "lift-out" ? c.length - 1 : n === "rest" || e === null ? l : e > l ? e - 1 : e, f = /* @__PURE__ */ new Map();
|
|
192
|
+
for (let e = Math.min(l, d); e <= Math.max(l, d); e += 1) e !== l && f.set(c[e].column.key, e > l ? -u : u);
|
|
193
|
+
let p = o === "center" ? s.scrollLeft - ve : 0, m = (O ? D.x - O.x : 0) + p, h = U, g = /* @__PURE__ */ new WeakSet();
|
|
194
|
+
U = g;
|
|
195
|
+
for (let e of w(s)) {
|
|
181
196
|
let t = e.dataset.ssgColKey;
|
|
182
197
|
if (t === void 0) continue;
|
|
183
|
-
|
|
184
|
-
|
|
198
|
+
g.add(e);
|
|
199
|
+
let o = h !== null && !h.has(e) ? "none" : x;
|
|
200
|
+
if (t === a) {
|
|
201
|
+
r.push(e), i.has(e) || (Te(i, e), e.style.zIndex = se, e.style.willChange = "transform");
|
|
202
|
+
let t = i.get(e);
|
|
203
|
+
n === "follow" ? (e.style.visibility = t?.visibility ?? "", e.setAttribute(S, "live"), e.style.transition = "none", e.style.transform = `translateX(${m}px)`) : n === "lift-out" ? (e.style.visibility = "hidden", e.removeAttribute(S), e.style.transition = "none", e.style.transform = "translateX(0px)") : (e.style.visibility = t?.visibility ?? "", e.removeAttribute(S), e.style.transition = o, e.style.transform = "translateX(0px)");
|
|
185
204
|
continue;
|
|
186
205
|
}
|
|
187
|
-
let
|
|
188
|
-
if (
|
|
189
|
-
|
|
190
|
-
let
|
|
191
|
-
e.style.transform !==
|
|
206
|
+
let s = f.get(t) ?? 0;
|
|
207
|
+
if (s === 0 && !i.has(e)) continue;
|
|
208
|
+
i.has(e) || Te(i, e);
|
|
209
|
+
let c = `translateX(${s}px)`;
|
|
210
|
+
e.style.transform !== c && (e.style.transition = o, e.style.transform = c);
|
|
192
211
|
}
|
|
193
|
-
|
|
212
|
+
return r;
|
|
213
|
+
}, J = (e) => {
|
|
194
214
|
e.forEach((e, t) => {
|
|
195
|
-
t.style.transition = "", t.style.transform = "", t.style.willChange = "", t.style.zIndex = e, t.removeAttribute(
|
|
215
|
+
t.style.transition = "", t.style.transform = "", t.style.willChange = "", t.style.zIndex = e.zIndex, t.style.visibility = e.visibility, t.removeAttribute(S);
|
|
196
216
|
});
|
|
217
|
+
}, Ee = (e) => {
|
|
218
|
+
let t = (e) => {
|
|
219
|
+
for (let t of pe) e.removeAttribute(t);
|
|
220
|
+
};
|
|
221
|
+
t(e), e.querySelectorAll("*").forEach(t), e.querySelectorAll(".ssg-header-actions").forEach((e) => e.remove());
|
|
222
|
+
}, De = (e, t, n) => {
|
|
223
|
+
let r = V;
|
|
224
|
+
if (r === null) {
|
|
225
|
+
let e = document.createElement("div");
|
|
226
|
+
e.className = le, e.setAttribute("aria-hidden", "true"), e.setAttribute("inert", "");
|
|
227
|
+
let n = document.createElement("div");
|
|
228
|
+
n.style.cssText = "position:absolute;top:0;left:0;height:100%;will-change:transform";
|
|
229
|
+
let i = document.createElement("div");
|
|
230
|
+
i.className = de, i.style.cssText = "position:absolute;display:none", e.append(n, i), t.appendChild(e), r = {
|
|
231
|
+
layer: e,
|
|
232
|
+
column: n,
|
|
233
|
+
guide: i,
|
|
234
|
+
badge: null,
|
|
235
|
+
badgeKind: null,
|
|
236
|
+
layerWidth: 0,
|
|
237
|
+
columnWidth: 0,
|
|
238
|
+
scrollTop: 0,
|
|
239
|
+
cellCount: 0
|
|
240
|
+
}, V = r;
|
|
241
|
+
}
|
|
242
|
+
let i = t.getBoundingClientRect(), a = e.getBoundingClientRect(), o = a.left + e.clientLeft, s = a.top + e.clientTop;
|
|
243
|
+
r.layer.style.cssText = [
|
|
244
|
+
"position:absolute",
|
|
245
|
+
`left:${o - i.left - t.clientLeft + t.scrollLeft}px`,
|
|
246
|
+
`top:${s - i.top - t.clientTop + t.scrollTop}px`,
|
|
247
|
+
`width:${e.clientWidth}px`,
|
|
248
|
+
`height:${e.clientHeight}px`,
|
|
249
|
+
"overflow:hidden",
|
|
250
|
+
"pointer-events:none",
|
|
251
|
+
`z-index:${ce}`
|
|
252
|
+
].join(";");
|
|
253
|
+
let c = [], l = [], u = 0;
|
|
254
|
+
for (let e of n) {
|
|
255
|
+
let t = e.getBoundingClientRect(), n = e.cloneNode(!0);
|
|
256
|
+
Ee(n), n.setAttribute(S, "live");
|
|
257
|
+
let r = n.style;
|
|
258
|
+
r.position = "absolute", r.left = "0px", r.top = `${t.top - s}px`, r.width = `${t.width}px`, r.minWidth = `${t.width}px`, r.height = `${t.height}px`, r.transform = "", r.transition = "", r.visibility = "", r.willChange = "", r.zIndex = "", u = Math.max(u, t.width), (n.classList.contains(fe) ? l : c).push(n);
|
|
259
|
+
}
|
|
260
|
+
let d = null;
|
|
261
|
+
for (let e of l) e.style.zIndex = "1", d === null && (d = document.createElement("span"), d.className = ue, e.insertBefore(d, e.firstChild));
|
|
262
|
+
return r.column.replaceChildren(...c, ...l), r.column.style.width = `${u}px`, r.badge = d, r.badgeKind = null, r.layerWidth = e.clientWidth, r.columnWidth = u, r.scrollTop = e.scrollTop, r.cellCount = n.length, r;
|
|
263
|
+
}, Oe = (e) => {
|
|
264
|
+
let n = t?.scrollContainerRef.current ?? null, r = n?.parentElement ?? null;
|
|
265
|
+
return !n || !r ? null : e.length === 0 || V !== null && V.scrollTop === n.scrollTop && V.cellCount === e.length ? V : De(n, r, e);
|
|
266
|
+
}, ke = (e) => {
|
|
267
|
+
if (t === null) return !1;
|
|
268
|
+
let n = t.leftPaneScrollRef.current;
|
|
269
|
+
if (n && t.paneLayout.left.entries.length > 0 && e < n.getBoundingClientRect().right - .5) return !0;
|
|
270
|
+
let r = t.rightPaneScrollRef.current;
|
|
271
|
+
return !!(r && t.paneLayout.right.entries.length > 0 && e > r.getBoundingClientRect().left + .5);
|
|
272
|
+
}, Ae = (e, t, n) => {
|
|
273
|
+
let r = e.guide, i = t === null ? null : W()[t];
|
|
274
|
+
if (!i || i.style.display !== "block") {
|
|
275
|
+
r.style.display = "none";
|
|
276
|
+
return;
|
|
277
|
+
}
|
|
278
|
+
let a = i.getBoundingClientRect();
|
|
279
|
+
if (t === "center" && ke(a.left + a.width / 2)) {
|
|
280
|
+
r.style.display = "none";
|
|
281
|
+
return;
|
|
282
|
+
}
|
|
283
|
+
r.style.left = `${a.left - n.left}px`, r.style.top = `${a.top - n.top}px`, r.style.height = `${a.height}px`, r.style.display = "block";
|
|
284
|
+
}, je = (e, t) => {
|
|
285
|
+
let n = e.layer.getBoundingClientRect(), r = Math.max(e.layerWidth - e.columnWidth, 0), i = Math.min(Math.max(D.x - ye - n.left, 0), r);
|
|
286
|
+
e.column.style.transition = "none", e.column.style.transform = `translateX(${i}px)`;
|
|
287
|
+
let a = t === null ? "none" : t === "center" ? "move" : "pin";
|
|
288
|
+
e.badge !== null && e.badgeKind !== a && (e.badgeKind = a, e.badge.innerHTML = a === "none" ? "" : a === "move" ? v(C) : y(C), e.badge.style.display = a === "none" ? "none" : ""), Ae(e, t, n);
|
|
289
|
+
}, Y = () => {
|
|
290
|
+
V?.layer.remove(), V = null;
|
|
291
|
+
}, Me = (e, t, n) => {
|
|
292
|
+
let r = e.layer.getBoundingClientRect();
|
|
293
|
+
e.column.style.transition = `transform ${n}ms ${b}`, e.column.style.transform = `translateX(${t - r.left}px)`, e.badge?.remove(), e.guide.style.display = "none";
|
|
294
|
+
}, X = () => {
|
|
295
|
+
let e = H;
|
|
296
|
+
if (H = null, e !== null) {
|
|
297
|
+
e.timer !== null && window.clearTimeout(e.timer);
|
|
298
|
+
for (let [t, n] of e.hiddenCells) t.style.visibility = n;
|
|
299
|
+
e.float.layer.remove();
|
|
300
|
+
}
|
|
301
|
+
}, Ne = () => {
|
|
302
|
+
let e = H;
|
|
303
|
+
if (e === null || e.key === null) return;
|
|
304
|
+
let n = e.key;
|
|
305
|
+
if (e.pane !== null && !t?.paneLayout[e.pane].entries.some((e) => e.column.key === n)) return;
|
|
306
|
+
e.key = null;
|
|
307
|
+
let r = t?.scrollContainerRef.current ?? null, i = r ? w(r).filter((e) => e.dataset.ssgColKey === n) : [];
|
|
308
|
+
if (i.length === 0) {
|
|
309
|
+
X();
|
|
310
|
+
return;
|
|
311
|
+
}
|
|
312
|
+
let a = i[0].getBoundingClientRect().left;
|
|
313
|
+
for (let t of i) e.hiddenCells.push([t, t.style.visibility]), t.style.visibility = "hidden";
|
|
314
|
+
Me(e.float, a, me), e.timer !== null && window.clearTimeout(e.timer), e.timer = window.setTimeout(X, 220);
|
|
197
315
|
}, Z = () => {
|
|
198
|
-
let e =
|
|
199
|
-
if (
|
|
200
|
-
e && (
|
|
316
|
+
let e = Ce(D.x, D.y);
|
|
317
|
+
if (be()) {
|
|
318
|
+
e && (T = {
|
|
201
319
|
pane: e.pane,
|
|
202
320
|
slot: e.slot
|
|
203
321
|
});
|
|
204
|
-
let
|
|
205
|
-
if (
|
|
206
|
-
|
|
322
|
+
let n = T;
|
|
323
|
+
if (n !== null && n.pane !== L) {
|
|
324
|
+
if (e && we(e), (t?.scrollContainerRef.current ?? null)?.parentElement != null) {
|
|
325
|
+
let e = Oe(q(null, "lift-out"));
|
|
326
|
+
if (e !== null) {
|
|
327
|
+
K(), je(e, n.pane);
|
|
328
|
+
return;
|
|
329
|
+
}
|
|
330
|
+
}
|
|
331
|
+
Y(), xe(B), Se(n.pane), q(null, "rest");
|
|
332
|
+
return;
|
|
333
|
+
}
|
|
334
|
+
if (K(), G(), q(n === null ? null : n.slot, "follow").length === 0 && V !== null) {
|
|
335
|
+
je(V, null);
|
|
207
336
|
return;
|
|
208
337
|
}
|
|
209
|
-
|
|
338
|
+
Y();
|
|
210
339
|
return;
|
|
211
340
|
}
|
|
212
|
-
if (
|
|
213
|
-
|
|
341
|
+
if (Se(e ? e.pane : null), !e) {
|
|
342
|
+
T = null, G();
|
|
214
343
|
return;
|
|
215
344
|
}
|
|
216
|
-
|
|
345
|
+
T = {
|
|
217
346
|
pane: e.pane,
|
|
218
347
|
slot: e.slot
|
|
219
|
-
},
|
|
220
|
-
},
|
|
221
|
-
if (
|
|
348
|
+
}, we(e);
|
|
349
|
+
}, Pe = () => {
|
|
350
|
+
if (_ === null) {
|
|
222
351
|
M = null;
|
|
223
352
|
return;
|
|
224
353
|
}
|
|
225
354
|
let e = t?.scrollContainerRef.current ?? null;
|
|
226
|
-
if (e && (
|
|
355
|
+
if (e && (k || (!O || o(O, D, 6)) && (k = !0), k)) {
|
|
227
356
|
let t = e.getBoundingClientRect(), n = c({
|
|
228
357
|
rectLeft: t.left,
|
|
229
358
|
rectTop: t.top,
|
|
@@ -231,27 +360,88 @@ var f = (e) => {
|
|
|
231
360
|
clientTop: e.clientTop,
|
|
232
361
|
clientWidth: e.clientWidth,
|
|
233
362
|
clientHeight: e.clientHeight
|
|
234
|
-
}), r = s(
|
|
363
|
+
}), r = s(D.x, n.left, n.right, 24), i = a(e.scrollLeft, r, 18, e.scrollWidth - e.clientWidth);
|
|
235
364
|
i !== e.scrollLeft && e.scrollTo({
|
|
236
365
|
left: i,
|
|
237
366
|
behavior: "auto"
|
|
238
367
|
});
|
|
239
368
|
}
|
|
240
|
-
Z(), M = requestAnimationFrame(
|
|
241
|
-
},
|
|
242
|
-
M !== null && (cancelAnimationFrame(M), M = null), document.body.style.cursor = "",
|
|
243
|
-
let n =
|
|
244
|
-
|
|
369
|
+
Z(), M = requestAnimationFrame(Pe);
|
|
370
|
+
}, Q = (e) => {
|
|
371
|
+
M !== null && (cancelAnimationFrame(M), M = null), document.body.style.cursor = "", G(), K();
|
|
372
|
+
let n = _, i = T;
|
|
373
|
+
_ = null, j = null, U = null, T = null, O = null;
|
|
245
374
|
let a = R;
|
|
246
|
-
R = null,
|
|
247
|
-
let o = n !== null && i !== null && t !== null ? t.paneLayout[i.pane].entries.findIndex((e) => e.column.key === n) : -1, s = i !== null && o >= 0 && (i.slot === o || i.slot === o + 1), c = e && n && i && t !== null && !s ? u(t.columns, n, i.pane, d(t.columns, t.paneLayout[i.pane], i.pane, i.slot)) : null;
|
|
248
|
-
if (a && !c
|
|
249
|
-
|
|
250
|
-
|
|
251
|
-
|
|
252
|
-
|
|
253
|
-
|
|
254
|
-
|
|
375
|
+
R = null, L = null;
|
|
376
|
+
let o = n !== null && i !== null && t !== null ? t.paneLayout[i.pane].entries.findIndex((e) => e.column.key === n) : -1, s = i !== null && o >= 0 && (i.slot === o || i.slot === o + 1), c = e && n && i && t !== null && !s ? u(t.columns, n, i.pane, d(t.columns, t.paneLayout[i.pane], i.pane, i.slot)) : null, l = V;
|
|
377
|
+
if (V = null, a && !c) {
|
|
378
|
+
a.forEach((e, t) => {
|
|
379
|
+
t.isConnected && (t.style.transition = x, t.style.transform = "translateX(0px)");
|
|
380
|
+
});
|
|
381
|
+
let e = null;
|
|
382
|
+
if (l !== null) {
|
|
383
|
+
let t = null;
|
|
384
|
+
for (let e of a.keys()) if (e.isConnected && e.dataset.ssgColKey === n) {
|
|
385
|
+
t = e;
|
|
386
|
+
break;
|
|
387
|
+
}
|
|
388
|
+
t === null ? l.layer.remove() : (Me(l, t.getBoundingClientRect().left, oe), e = {
|
|
389
|
+
float: l,
|
|
390
|
+
key: null,
|
|
391
|
+
pane: null,
|
|
392
|
+
timer: null,
|
|
393
|
+
hiddenCells: []
|
|
394
|
+
}, H = e);
|
|
395
|
+
}
|
|
396
|
+
z = a, window.setTimeout(() => {
|
|
397
|
+
J(a), z === a && (z = null), e !== null && H === e && X();
|
|
398
|
+
}, 200);
|
|
399
|
+
} else l !== null && !c && l.layer.remove();
|
|
400
|
+
if (!c || !n || !i || t === null) return;
|
|
401
|
+
let { columns: f, applyColumnOrderAndPin: p, scrollContainerRef: m } = t, h = f.find((e) => e.key === n), g = h ? r(h) : null;
|
|
402
|
+
E = g !== null && g === i.pane && !ae(m.current) ? ge(m.current) : null, a && J(a), l !== null && (l.badge?.remove(), l.guide.style.display = "none", H = {
|
|
403
|
+
float: l,
|
|
404
|
+
key: n,
|
|
405
|
+
pane: i.pane,
|
|
406
|
+
timer: window.setTimeout(X, he),
|
|
407
|
+
hiddenCells: []
|
|
408
|
+
}), p(c, /* @__PURE__ */ new Map([[n, i.pane === "center" ? void 0 : i.pane]]));
|
|
409
|
+
}, Fe = () => {
|
|
410
|
+
Ne();
|
|
411
|
+
let n = E;
|
|
412
|
+
if (E = null, !n) return;
|
|
413
|
+
let r = t?.scrollContainerRef.current ?? null;
|
|
414
|
+
if (!r) return;
|
|
415
|
+
let i = /* @__PURE__ */ new Map(), a = /* @__PURE__ */ new Map();
|
|
416
|
+
r.querySelectorAll("[data-ssg-col-key]").forEach((t) => {
|
|
417
|
+
if (e(r, t)) return;
|
|
418
|
+
let o = t.dataset.ssgColKey;
|
|
419
|
+
if (!o || !n.has(o)) return;
|
|
420
|
+
let s = i.get(o);
|
|
421
|
+
s ? s.push(t) : (i.set(o, [t]), a.set(o, t.getBoundingClientRect().left));
|
|
422
|
+
});
|
|
423
|
+
let o = [];
|
|
424
|
+
if (i.forEach((e, t) => {
|
|
425
|
+
let r = n.get(t), i = a.get(t);
|
|
426
|
+
if (r === void 0 || i === void 0) return;
|
|
427
|
+
let s = r - i;
|
|
428
|
+
if (!(Math.abs(s) < .5)) for (let t of e) t.style.transition = "none", t.style.transform = `translateX(${s}px)`, t.style.willChange = "transform", o.push(t);
|
|
429
|
+
}), o.length === 0) return;
|
|
430
|
+
r.getBoundingClientRect();
|
|
431
|
+
for (let e of o) e.style.transition = `transform ${ie}ms ${b}`, e.style.transform = "translateX(0)";
|
|
432
|
+
$();
|
|
433
|
+
let s = () => {
|
|
434
|
+
for (let e of o) e.style.transition = "", e.style.transform = "", e.style.willChange = "";
|
|
435
|
+
}, c = {
|
|
436
|
+
run: s,
|
|
437
|
+
timer: window.setTimeout(() => {
|
|
438
|
+
N === c && (N = null), s();
|
|
439
|
+
}, 280)
|
|
440
|
+
};
|
|
441
|
+
N = c;
|
|
442
|
+
}, $ = () => {
|
|
443
|
+
let e = N;
|
|
444
|
+
N = null, e !== null && (window.clearTimeout(e.timer), e.run());
|
|
255
445
|
};
|
|
256
446
|
return {
|
|
257
447
|
update: (e) => {
|
|
@@ -259,68 +449,53 @@ var f = (e) => {
|
|
|
259
449
|
},
|
|
260
450
|
onColumnDragHandlePointerDown: (e, n) => {
|
|
261
451
|
if (t === null || !t.enabled || n.button !== 0) return;
|
|
262
|
-
n.stopPropagation(), n.preventDefault(),
|
|
452
|
+
if (n.stopPropagation(), n.preventDefault(), _ !== null) {
|
|
453
|
+
if (n.pointerId !== j) return;
|
|
454
|
+
A?.(), Q(!1);
|
|
455
|
+
}
|
|
456
|
+
if ($(), X(), Y(), z?.forEach((e, t) => {
|
|
457
|
+
t.style.visibility = e.visibility;
|
|
458
|
+
}), _ = e.key, j = n.pointerId, T = null, U = null, D = {
|
|
263
459
|
x: n.clientX,
|
|
264
460
|
y: n.clientY
|
|
265
|
-
},
|
|
461
|
+
}, O = {
|
|
266
462
|
x: n.clientX,
|
|
267
463
|
y: n.clientY
|
|
268
|
-
},
|
|
464
|
+
}, k = !1, document.body.style.cursor = "grabbing", B = e.title || e.key, be()) {
|
|
465
|
+
let i = t.scrollContainerRef.current;
|
|
466
|
+
L = r(e), ve = i?.scrollLeft ?? 0, R = /* @__PURE__ */ new Map();
|
|
467
|
+
let a = i ? w(i).find((t) => t.dataset.ssgColKey === e.key) : void 0;
|
|
468
|
+
ye = a ? n.clientX - (a.getBoundingClientRect().left - _e(a)) : (t.paneLayout[L].entries.find((t) => t.column.key === e.key)?.paneLocalSize ?? 0) / 2;
|
|
469
|
+
} else xe(B);
|
|
269
470
|
let i = n.currentTarget, a = n.pointerId;
|
|
270
471
|
try {
|
|
271
472
|
i.setPointerCapture(a);
|
|
272
473
|
} catch {}
|
|
273
474
|
let o = (e) => {
|
|
274
|
-
e.pointerId === a && (
|
|
475
|
+
e.pointerId === a && (D = {
|
|
275
476
|
x: e.clientX,
|
|
276
477
|
y: e.clientY
|
|
277
478
|
}, Z());
|
|
278
479
|
}, s = () => {
|
|
279
|
-
window.removeEventListener("pointermove", o), window.removeEventListener("pointerup", c), window.removeEventListener("pointercancel", l), window.removeEventListener("keydown", u),
|
|
480
|
+
window.removeEventListener("pointermove", o), window.removeEventListener("pointerup", c), window.removeEventListener("pointercancel", l), window.removeEventListener("keydown", u), A = null;
|
|
280
481
|
try {
|
|
281
482
|
i.releasePointerCapture(a);
|
|
282
483
|
} catch {}
|
|
283
484
|
};
|
|
284
485
|
function c(e) {
|
|
285
|
-
e.pointerId === a && (s(),
|
|
486
|
+
e.pointerId === a && (s(), Q(!0));
|
|
286
487
|
}
|
|
287
488
|
function l(e) {
|
|
288
|
-
e.pointerId === a && (s(),
|
|
489
|
+
e.pointerId === a && (s(), Q(!1));
|
|
289
490
|
}
|
|
290
491
|
function u(e) {
|
|
291
|
-
e.key === "Escape" && (s(),
|
|
292
|
-
}
|
|
293
|
-
window.addEventListener("pointermove", o), window.addEventListener("pointerup", c), window.addEventListener("pointercancel", l), window.addEventListener("keydown", u), j = s, Z(), M = requestAnimationFrame(Q);
|
|
294
|
-
},
|
|
295
|
-
applyReorderSettle: () => {
|
|
296
|
-
let n = D;
|
|
297
|
-
if (D = null, !n) return;
|
|
298
|
-
let r = t?.scrollContainerRef.current ?? null;
|
|
299
|
-
if (!r) return;
|
|
300
|
-
let i = /* @__PURE__ */ new Map(), a = /* @__PURE__ */ new Map();
|
|
301
|
-
r.querySelectorAll("[data-ssg-col-key]").forEach((t) => {
|
|
302
|
-
if (e(r, t)) return;
|
|
303
|
-
let o = t.dataset.ssgColKey;
|
|
304
|
-
if (!o || !n.has(o)) return;
|
|
305
|
-
let s = i.get(o);
|
|
306
|
-
s ? s.push(t) : (i.set(o, [t]), a.set(o, t.getBoundingClientRect().left));
|
|
307
|
-
});
|
|
308
|
-
let o = [];
|
|
309
|
-
if (i.forEach((e, t) => {
|
|
310
|
-
let r = n.get(t), i = a.get(t);
|
|
311
|
-
if (r === void 0 || i === void 0) return;
|
|
312
|
-
let s = r - i;
|
|
313
|
-
if (!(Math.abs(s) < .5)) for (let t of e) t.style.transition = "none", t.style.transform = `translateX(${s}px)`, t.style.willChange = "transform", o.push(t);
|
|
314
|
-
}), o.length !== 0) {
|
|
315
|
-
r.getBoundingClientRect();
|
|
316
|
-
for (let e of o) e.style.transition = `transform ${te}ms ${b}`, e.style.transform = "translateX(0)";
|
|
317
|
-
window.setTimeout(() => {
|
|
318
|
-
for (let e of o) e.style.transition = "", e.style.transform = "", e.style.willChange = "";
|
|
319
|
-
}, 280);
|
|
492
|
+
e.key === "Escape" && (s(), Q(!1));
|
|
320
493
|
}
|
|
494
|
+
window.addEventListener("pointermove", o), window.addEventListener("pointerup", c), window.addEventListener("pointercancel", l), window.addEventListener("keydown", u), A = s, Z(), M = requestAnimationFrame(Pe);
|
|
321
495
|
},
|
|
496
|
+
applyReorderSettle: Fe,
|
|
322
497
|
dispose: () => {
|
|
323
|
-
|
|
498
|
+
A?.(), A = null, M !== null && (cancelAnimationFrame(M), M = null), _ = null, j = null, T = null, document.body.style.cursor = "", K(), R && J(R), R = null, L = null, Y(), X();
|
|
324
499
|
}
|
|
325
500
|
};
|
|
326
501
|
};
|
|
@@ -1644,8 +1644,11 @@ export type SpreadsheetGridProps<T, F extends GridFrameworkTypes = GridFramework
|
|
|
1644
1644
|
* 縦線、ドロップ後に新しい位置へスライド)。`'live'` は同じペイン内では掴んだ列(ヘッダー +
|
|
1645
1645
|
* 描画中のセル)がポインタに追従し、通る先の列がその場で左右へ退避する(ドロップ先が「隙間」
|
|
1646
1646
|
* として見える。枠外で離しても直前の位置へ確定、`Esc` で元へ戻る)。
|
|
1647
|
-
* 固定列のペインをまたいで移す(固定の変更)
|
|
1648
|
-
*
|
|
1647
|
+
* 固定列のペインをまたいで移す(固定の変更)ときは、掴んだ列の複製(浮かぶ列)
|
|
1648
|
+
* がポインタに付いてきて元のペインは列が抜けた分だけ詰まり、
|
|
1649
|
+
* 移動先は縦線で示す(浮かぶ列の見出しに、固定ペインへはピン / 中央へは移動の矢印のアイコン。
|
|
1650
|
+
* 浮かぶ列は表の枠の内側に収まり、離すと新しい位置へ滑り込む)。`motion` が `'off'` のときは
|
|
1651
|
+
* `'ghost'` と同じ。
|
|
1649
1652
|
*
|
|
1650
1653
|
* @defaultValue `'ghost'`
|
|
1651
1654
|
*/
|
package/package.json
CHANGED