@ninebone/table 0.0.773 → 0.0.775
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/nine-table.js +928 -897
- package/dist/nine-table.js.map +1 -1
- package/dist/nine-table.umd.js +8 -8
- package/dist/nine-table.umd.js.map +1 -1
- package/package.json +1 -1
package/dist/nine-table.umd.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
(function(E,A){typeof exports=="object"&&typeof module<"u"?A(require("@ninebone/util")):typeof define=="function"&&define.amd?define(["@ninebone/util"],A):(E=typeof globalThis<"u"?globalThis:E||self,A(E.NineboneUtil))})(this,function(E){"use strict";var ps=Object.defineProperty;var ys=E=>{throw TypeError(E)};var vs=(E,A,m)=>A in E?ps(E,A,{enumerable:!0,configurable:!0,writable:!0,value:m}):E[A]=m;var h=(E,A)=>ps(E,"name",{value:A,configurable:!0});var T=(E,A,m)=>vs(E,typeof A!="symbol"?A+"":A,m),us=(E,A,m)=>A.has(E)||ys("Cannot "+m);var t=(E,A,m)=>(us(E,A,"read from private field"),m?m.call(E):A.get(E)),d=(E,A,m)=>A.has(E)?ys("Cannot add the same private member more than once"):A instanceof WeakSet?A.add(E):A.set(E,m),y=(E,A,m,G)=>(us(E,A,"write to private field"),G?G.call(E,m):A.set(E,m),m),yt=(E,A,m)=>(us(E,A,"access private method"),m);var ms=(E,A,m,G)=>({set _(Ct){y(E,A,Ct,m)},get _(){return t(E,A,G)}});var j,Z,C,et,st,nt,Qt,rt,te,ot,it,mt,I,Tt,kt,ee,V,q,at,Y,D,J,lt,It,Ue,Ve,se,ne,Lt,Mt,Ht,re,oe,$t,Xe,xt,Nt,ie,_,X,K,Zt,xs,U,ct,le,ce,_t,Ot,Dt,ht,Wt,he,ws,de,dt,ft,zt,Bt,fe,ue,wt,ge,be,pe,Ft,O,ye,jt,me,Yt,vt,W,L,z,St,xe,Q,we,ut,Ut,ve,Se,At,gt,Rt,H,Vt,Ae,bt,Re,Ee,M,Kt,v,rs,os,is,as,ls,Gt,pt,Et,qt,qe,tt,ds;const Fe=class Fe extends E.trace.constructor{constructor(){super(),this.init("nine-table","green")}};h(Fe,"Trace");let A=Fe;const m=new A,je=class je extends HTMLElement{constructor(){super();d(this,j);d(this,Z,!1);d(this,C);d(this,et);d(this,st);d(this,nt);d(this,Qt,h(()=>{if(!t(this,j))return;const e=t(this,j).querySelector(".ng-container-body .ng-part-body");e&&(y(this,nt,new ResizeObserver(()=>{this.refresh()})),t(this,nt).observe(e))},"#observeResize"));T(this,"refresh",h(()=>{if(!t(this,j)||!t(this,C)||t(this,Z))return;const e=t(this,C).container,s=e.querySelector("table");if(!s)return;const o=t(this,C).track,i=t(this,C).thumb,r=t(this,j).querySelector(".ng-container-bottom"),a=e.clientWidth,c=s.scrollWidth;if(a!==0&&c>a)r&&(r.style.display="flex");else{r&&(r.style.display="none");return}const l=o.clientWidth;if(l<=0)return;const g=Math.max(Math.min(l*(a/c),l),20);i.style.width=`${g}px`;const f=e.scrollLeft,b=c-a;let u=0;b>0&&(u=parseInt(f/b*(l-g),10)),u<0&&(u=0);const p=l-g;u>p&&(u=p),i.style.left=`${u}px`,t(this,C).left.disabled=u===0,t(this,C).right.disabled=u>=p-1},"refresh"));d(this,rt,h(e=>{if(!t(this,C))return!1;const s=t(this,C).container,o=s.querySelector("table");if(!o)return!1;const i=t(this,C).track.getBoundingClientRect(),r=t(this,C).thumb.clientWidth;let a=e;a<0&&(a=0);const c=i.width-r;a>c&&(a=c),a=parseInt(a,10),t(this,C).thumb.style.left=`${a}px`,t(this,C).left.disabled=a===0,t(this,C).right.disabled=a>=c-1;const l=s.clientWidth,f=o.scrollWidth-l;return c>0&&f>0&&(s.scrollLeft=a/c*f),a>0&&a<c-1},"#thumbMoveTo"));d(this,te,h(()=>{const e=h(o=>{clearInterval(t(this,et)),clearInterval(t(this,st));const i=parseInt(t(this,C).thumb.style.left||0,10);t(this,rt).call(this,i+o),y(this,et,setInterval(()=>{clearInterval(t(this,et)),y(this,st,setInterval(()=>{const r=parseInt(t(this,C).thumb.style.left||0,10);t(this,rt).call(this,r+o)||clearInterval(t(this,st))},50))},500))},"delayScroll"),s=h(()=>{clearInterval(t(this,et)),clearInterval(t(this,st))},"clearTimer");["mouseup","mouseleave","touchend"].forEach(o=>{t(this,C).left.addEventListener(o,s),t(this,C).right.addEventListener(o,s),t(this,C).track.addEventListener(o,s)}),t(this,C).left.addEventListener("mousedown",o=>{o.button===0&&e(-20)}),t(this,C).right.addEventListener("mousedown",o=>{o.button===0&&e(20)}),t(this,C).left.addEventListener("touchstart",()=>e(-20)),t(this,C).right.addEventListener("touchstart",()=>e(20)),t(this,C).track.addEventListener("mousedown",o=>{if(o.button!==0)return;o.preventDefault();const i=t(this,C).track.getBoundingClientRect(),r=t(this,C).thumb.clientWidth;t(this,rt).call(this,o.clientX-i.left-r/2)}),t(this,C).thumb.addEventListener("mousedown",o=>{if(o.button!==0)return;o.stopPropagation(),o.preventDefault(),y(this,Z,!0),this.shiftX=o.clientX-t(this,C).thumb.getBoundingClientRect().left;const i=h(a=>{if(!t(this,Z))return;const c=t(this,C).track.getBoundingClientRect();t(this,rt).call(this,a.clientX-c.left-this.shiftX)},"onMouseMove"),r=h(()=>{y(this,Z,!1),s(),document.removeEventListener("mousemove",i),document.removeEventListener("mouseup",r),this.refresh()},"onMouseUp");document.addEventListener("mousemove",i),document.addEventListener("mouseup",r)})},"#init"))}connectedCallback(){if(y(this,j,this.closest("nine-table-sheet")||this.getRootNode().host),!t(this,j))return;this.innerHTML=`
|
|
2
2
|
<style>
|
|
3
3
|
nine-table-hscrollbar {
|
|
4
4
|
display: flex;
|
|
@@ -60,7 +60,7 @@
|
|
|
60
60
|
<button class='ng-scroll-left' disabled><div class='ng-scroll-icon'></div></button>
|
|
61
61
|
<div class='ng-scroll-track'><div class='ng-scroll-thumb'></div></div>
|
|
62
62
|
<button class='ng-scroll-right' disabled><div class='ng-scroll-icon'></div></button>
|
|
63
|
-
`;const e=h(()=>{const s=t(this,
|
|
63
|
+
`;const e=h(()=>{const s=t(this,j).querySelector(".ng-container-body .ng-part-body");if(!s){setTimeout(e,10);return}y(this,C,{container:s,track:this.querySelector(".ng-scroll-track"),thumb:this.querySelector(".ng-scroll-thumb"),left:this.querySelector(".ng-scroll-left"),right:this.querySelector(".ng-scroll-right")}),s.addEventListener("scroll",()=>{t(this,Z)||this.refresh()}),t(this,te).call(this),t(this,Qt).call(this),this.refresh()},"initWhenReady");e()}disconnectedCallback(){t(this,nt)&&t(this,nt).disconnect()}};j=new WeakMap,Z=new WeakMap,C=new WeakMap,et=new WeakMap,st=new WeakMap,nt=new WeakMap,Qt=new WeakMap,rt=new WeakMap,te=new WeakMap,h(je,"NineTableHScrollBar");let G=je;customElements.get("nine-table-hscrollbar")||customElements.define("nine-table-hscrollbar",G);const Ye=class Ye extends HTMLElement{constructor(){super();d(this,ot);d(this,it);d(this,mt,!1);d(this,I);d(this,Tt,0);d(this,kt,0);T(this,"refresh",h(()=>{if(m.log("vscrollbar.refresh"),!t(this,ot)||!t(this,I))return;const e=t(this,I).container,s=t(this,I).track,o=t(this,I).thumb,i=e.clientHeight,r=t(this,ot).data.length,a=t(this,it).getRowHeight(),c=r*a;if(c<=i||r===0){this.style.display="none";return}else this.style.display="flex";const l=s.clientHeight;if(l<=0)return;const g=Math.max(Math.min(l*(i/c),l),20);o.style.height=`${g}px`;const f=e.scrollTop,b=Math.max(c-i,1);m.log(e,f,b);let u=0;b>0&&(u=f/b*(l-g));const p=l-g;u<0&&(u=0),u>p&&(u=p),o.style.top=`${u}px`,t(this,I).top.disabled=f<=0,t(this,I).bottom.disabled=f>=b-1},"refresh"));d(this,ee,h(()=>{m.log("nine-table-vscrollbar.#init");const e=t(this,I).container,s=h(()=>{const i=(t(this,ot).data.get()||[]).length,r=t(this,it).getRowHeight();return i*r},"getContentHeight");t(this,I).thumb.addEventListener("mousedown",o=>{if(o.button!==0)return;o.stopPropagation(),o.preventDefault(),y(this,mt,!0),y(this,Tt,o.clientY),y(this,kt,e.scrollTop);const i=h(a=>{if(!t(this,mt))return;const c=t(this,I).track.getBoundingClientRect(),l=t(this,I).thumb.clientHeight,f=c.height-l,b=a.clientY-t(this,Tt),u=e.clientHeight,p=s(),w=Math.max(p-u,1);if(f>0&&w>0){const S=b/f*w;let x=t(this,kt)+S;const k=Math.max(0,p-u);x<0&&(x=0),x>k&&(x=k),e.scrollTop=x}this.refresh()},"onMouseMove"),r=h(()=>{y(this,mt,!1),document.removeEventListener("mousemove",i),document.removeEventListener("mouseup",r),this.refresh()},"onMouseUp");document.addEventListener("mousemove",i),document.addEventListener("mouseup",r)}),t(this,I).track.addEventListener("mousedown",o=>{if(o.button!==0||o.target===t(this,I).thumb)return;const i=t(this,I).track.getBoundingClientRect(),r=t(this,I).thumb.clientHeight,a=o.clientY-i.top-r/2,l=i.height-r,g=e.clientHeight,f=s(),b=Math.max(f-g,1);if(l>0&&b>0){const u=Math.max(0,Math.min(1,a/l));e.scrollTop=u*b}this.refresh()}),t(this,I).top.addEventListener("click",()=>{e.scrollTop-=40}),t(this,I).bottom.addEventListener("click",()=>{e.scrollTop+=40})},"#init"))}connectedCallback(){y(this,ot,this.getRootNode().host),y(this,it,this.closest("nine-table-sheet")),this.innerHTML=`
|
|
64
64
|
<style>
|
|
65
65
|
nine-table-vscrollbar {
|
|
66
66
|
display: flex;
|
|
@@ -123,7 +123,7 @@
|
|
|
123
123
|
<button class='ng-scroll-top' disabled><div class='ng-scroll-icon'></div></button>
|
|
124
124
|
<div class='ng-scroll-track'><div class='ng-scroll-thumb'></div></div>
|
|
125
125
|
<button class='ng-scroll-bottom' disabled><div class='ng-scroll-icon'></div></button>
|
|
126
|
-
`;const e=h(()=>{const s=t(this,rt).querySelector(".ng-container-body .ng-part-body");if(!s){setTimeout(e,10);return}p(this,L,{container:s,track:this.querySelector(".ng-scroll-track"),thumb:this.querySelector(".ng-scroll-thumb"),top:this.querySelector(".ng-scroll-top"),bottom:this.querySelector(".ng-scroll-bottom")}),t(this,Qt).call(this),this.refresh()},"initWhenReady");e()}};nt=new WeakMap,rt=new WeakMap,bt=new WeakMap,L=new WeakMap,qt=new WeakMap,Tt=new WeakMap,Qt=new WeakMap,h(Pe,"NineTableVScrollBar");let Et=Pe;customElements.get("nine-table-vscrollbar")||customElements.define("nine-table-vscrollbar",Et);const Ue=class Ue{constructor(n){f(this,Y);f(this,E);f(this,ot);f(this,F,new Map);f(this,O,null);f(this,K,null);f(this,it,0);f(this,Ct,40);f(this,Fe,!1);f(this,je,!1);f(this,te,3);C(this,"refresh",h(()=>{var e;y.log("rowManager.refresh");const n=t(this,E).querySelector(".ng-container-body .ng-part-body");n&&(t(this,kt).call(this),t(this,Lt).call(this),t(this,pt).call(this,n.scrollTop),(e=t(this,E).querySelector("nine-table-vscrollbar"))==null||e.refresh())},"refresh"));C(this,"initialize",h(()=>{y.log("rowManager.initialize"),p(this,ot,{scrollTables:t(this,E).querySelectorAll(".ng-part-body table"),firstTr:t(this,E).querySelector(".ng-container-body .ng-part-body tbody.bindable-tbody tr:not(.nodata)")}),p(this,O,null),t(this,F).clear(),[".ng-container-body",".ng-container-left",".ng-container-right"].forEach(i=>{const a=t(this,E).querySelector(i);if(!a)return;const c=a.querySelector(".ng-part-body table");if(!c)return;const l=c.querySelector("tbody.bindable-tbody");if(!l)return;const u=Array.from(l.querySelectorAll("tr")).map(b=>b.cloneNode(!0));t(this,F).set(i,u)});const n=t(this,E).querySelector(".ng-container-body .ng-part-body"),e=t(this,E).querySelector(".ng-container-left .ng-part-body"),s=t(this,E).querySelector(".ng-container-right .ng-part-body"),r=t(this,E).querySelector(".ng-container-body .ng-part-header"),o=t(this,E).querySelector(".ng-container-body .ng-part-footer");if(n){t(this,kt).call(this),t(this,Ht).call(this),t(this,Lt).call(this),t(this,pt).call(this,n.scrollTop);let i=!1;const a=h(c=>{var u;if(i)return;i=!0;const l=c.scrollTop,d=c.scrollLeft;n&&n.scrollTop!==l&&(n.scrollTop=l),e&&e.scrollTop!==l&&(e.scrollTop=l),s&&s.scrollTop!==l&&(s.scrollTop=l),r&&r.scrollLeft!==d&&(r.scrollLeft=d),o&&o.scrollLeft!==d&&(o.scrollLeft=d),t(this,pt).call(this,l),(u=t(this,E).querySelector("nine-table-vscrollbar"))==null||u.refresh(),i=!1},"handleContainerScroll");[n,e,s].forEach(c=>{c==null||c.addEventListener("scroll",l=>{y.log(l),y.log("rowManager.scroll event"),a(c)})})}},"initialize"));f(this,ee,h((n,e)=>{y.log("rowManager.#renderRows");const s=t(this,F).get(e);if(!s||s.length===0)return;const r=n.querySelector(".ng-part-body tbody.bindable-tbody");if(!r)return;r.querySelectorAll("tr:not(.nodata)").forEach(a=>a.remove());const o=r.querySelector("tr.nodata"),i=document.createDocumentFragment();for(let a=0;a<t(this,Ct);a++)s.forEach(c=>{i.appendChild(c.cloneNode(!0))});o?o.before(i):r.appendChild(i),e===".ng-container-body"&&(t(this,ot).firstTr=r.querySelector("tr:not(.nodata)"))},"#renderRows"));f(this,kt,h(()=>{if(t(this,O)!==null&&t(this,O)>0)return t(this,O);const n=t(this,E).querySelector(".ng-container-body .ng-part-body");y.log("rowManager.#measureAndCacheHeight");const e=t(this,F).get(".ng-container-body");if(!e||e.length===0)throw new Error("invalid dom");const s=n.querySelector("tbody.bindable-tbody");if(y.log(s),!s)throw new Error("invalid dom");s.querySelectorAll("tr:not(.nodata)").forEach(b=>b.remove());const r=s.querySelector("tr.nodata"),o=document.createDocumentFragment();e.forEach(b=>{o.appendChild(b.cloneNode(!0))}),r?r.before(o):s.appendChild(o);const i=t(this,E),a=i.style.display,c=i.style.visibility,l=i.style.position;(a==="none"||window.getComputedStyle(i).display==="none")&&(i.style.display="block",i.style.visibility="hidden",i.style.position="absolute");let d=0;const u=s.querySelectorAll("tr");return u.forEach(b=>{let g=b.offsetHeight||b.getBoundingClientRect().height;if(g===0){const m=window.getComputedStyle(b);g=parseFloat(m.height)||parseFloat(m.minHeight)||0}d+=g}),u.forEach(b=>b.remove()),i.style.display=a,i.style.visibility=c,i.style.position=l,d<=0?-1:(p(this,O,d),t(this,It).call(this),t(this,O))},"#measureAndCacheHeight"));f(this,Lt,h(()=>{y.log("rowManager.#updateVirtualScrollHeight");const e=(t(this,Y).data.get()||[]).length,s=t(this,O),r=e*s;y.log("🔍 [VirtualHeight]",{totalCount:e,rowHeight:s,totalVirtualHeight:r}),[".ng-container-body",".ng-container-left",".ng-container-right"].forEach(o=>{const i=t(this,E).querySelector(o);if(!i)return;const a=i.querySelector(".ng-part-body .ng-virtual-spacer");a&&(a.style.height=`${r}px`)})},"#updateVirtualScrollHeight"));f(this,It,h(()=>{if(t(this,it)>0&&t(this,O)>0){const n=Math.ceil(t(this,it)/t(this,O));p(this,Ct,n+t(this,te))}},"#updateRowCount"));f(this,se,h(()=>{var a,c,l,d,u,b;const n=t(this,E).querySelector(".ng-container-left .ng-part-body table"),e=t(this,E).querySelector(".ng-container-body .ng-part-body table"),s=t(this,E).querySelector(".ng-container-right .ng-part-body table");if(e){const g=n?Array.from(n.querySelectorAll("tbody tr")):[],m=Array.from(e.querySelectorAll("tbody tr")),v=s?Array.from(s.querySelectorAll("tbody tr")):[],S=Math.max(g.length,m.length,v.length);for(let x=0;x<S;x++){const k=[((a=g[x])==null?void 0:a.getBoundingClientRect().height)||0,((c=m[x])==null?void 0:c.getBoundingClientRect().height)||0,((l=v[x])==null?void 0:l.getBoundingClientRect().height)||0],q=Math.max(...k);q>0&&(g[x]&&(g[x].style.height=`${q}px`),m[x]&&(m[x].style.height=`${q}px`),v[x]&&(v[x].style.height=`${q}px`))}}const r=t(this,E).querySelector(".ng-container-left .ng-part-footer table"),o=t(this,E).querySelector(".ng-container-body .ng-part-footer table"),i=t(this,E).querySelector(".ng-container-right .ng-part-footer table");if(o){const g=r?Array.from(r.querySelectorAll("tfoot tr")):[],m=Array.from(o.querySelectorAll("tfoot tr")),v=i?Array.from(i.querySelectorAll("tfoot tr")):[],S=Math.max(g.length,m.length,v.length);for(let x=0;x<S;x++){const k=[((d=g[x])==null?void 0:d.getBoundingClientRect().height)||0,((u=m[x])==null?void 0:u.getBoundingClientRect().height)||0,((b=v[x])==null?void 0:b.getBoundingClientRect().height)||0],q=Math.max(...k);q>0&&(g[x]&&(g[x].style.height=`${q}px`),m[x]&&(m[x].style.height=`${q}px`),v[x]&&(v[x].style.height=`${q}px`))}}},"#syncRowHeights"));f(this,ne,h(()=>{!t(this,E)||!(t(this,E)instanceof HTMLElement)||(p(this,K,new ResizeObserver(n=>{for(const e of n){const s=e.target;if(!s.classList.contains("active"))continue;const r=e.contentRect.height;if(r>0){let o=0;const i=s.querySelector(".ng-part-header"),a=s.querySelector(".ng-part-footer");i&&(o+=i.offsetHeight),a&&(o+=a.offsetHeight);const c=Math.max(r-o,100);t(this,it)!==c&&(p(this,it,c),t(this,It).call(this),t(this,O)!==null&&(t(this,Ht).call(this),this.refresh()))}}})),t(this,K).observe(t(this,E)))},"#initResizeObserver"));f(this,Ht,h(()=>{y.log("rowManager.#renderAllContainers"),[".ng-container-body",".ng-container-left",".ng-container-right"].forEach(n=>{const e=t(this,E).querySelector(n);e&&e.querySelector(".ng-part-body tbody.bindable-tbody")&&t(this,ee).call(this,e,n)}),t(this,re).call(this),t(this,se).call(this)},"#renderAllContainers"));f(this,Ye,h(n=>{[".ng-container-body",".ng-container-left",".ng-container-right"].forEach(e=>{var l;const s=t(this,E).querySelector(e);if(!s)return;const r=s.querySelector(".ng-part-body tbody.bindable-tbody");if(!r)return;const o=Array.from(r.querySelectorAll("tr:not(.nodata)")),i=((l=t(this,F).get(e))==null?void 0:l.length)||1,c=(t(this,Y).data.get()||[]).length;o.forEach((d,u)=>{const b=n+Math.floor(u/i);if(b>=c){d.style.visibility="hidden";return}const g=t(this,Y).data.get(b);d.style.display="",t(this,Mt).call(this,d,g,b)})})},"#adjustBufferRows"));f(this,pt,h(n=>{var u,b;const e=t(this,O);if(!e||e<=0)return;const s=t(this,Y).data.length;if(s===0)return;const r=((u=t(this,F).get(".ng-container-body"))==null?void 0:u.length)||1,o=t(this,E).querySelector(".ng-container-body .ng-part-body");y.log("bodyContainer.clientHeight",o.clientHeight);const i=Math.max(0,s-Math.floor(o.clientHeight/e)),a=Math.min(i,Math.max(0,Math.floor(n/e)));let c=Math.floor(a*e);y.log(`📜 [Scroll Calc] maxStartIndex: ${i}, startIndex: ${a}, offsetY: ${c}`),a===i&&y.log(`📜 [Scroll Inspect] scrollTop: ${n}, rowHeight: ${e}, maxStartIndex: ${i}, startIndex: ${a}, offsetY: ${c}`);const l=t(this,ot).firstTr,d=l&&l.dataset.row!==void 0?parseInt(l.dataset.row,10):-1;(b=t(this,ot))==null||b.scrollTables.forEach(g=>{g.style.transform=`translate3d(0, ${c}px, 0)`}),d!==a&&(y.log(`🔄 [Row Bind Trigger] currentStartIndex(${d}) !== startIndex(${a})`),[".ng-container-body",".ng-container-left",".ng-container-right"].forEach(g=>{const m=t(this,E).querySelector(g);if(!m)return;const v=m.querySelector(".ng-part-body tbody.bindable-tbody");if(!v)return;Array.from(v.querySelectorAll("tr:not(.nodata)")).forEach((x,k)=>{const q=a+Math.floor(k/r);if(q>=s){x.style.display="none";return}const N=t(this,Y).data.get(q);x.style.display="",t(this,Mt).call(this,x,N,q)})}))},"#handleScroll"));f(this,Mt,h((n,e,s)=>{n.dataset.row=s,n.data=e,Array.from(n.cells).forEach((r,o)=>{r.dataset.row=s;const i=Array.from(r.children).find(a=>a.tagName.toLowerCase().startsWith("cell-")||typeof a.refresh=="function");i&&typeof i.refresh=="function"&&i.refresh()})},"#bindRowData"));f(this,re,h(()=>{var c,l,d;y.log("rowManager.#syncHeaderHeights");const n=t(this,E).querySelector(".ng-container-left .ng-part-header table"),e=t(this,E).querySelector(".ng-container-body .ng-part-header table"),s=t(this,E).querySelector(".ng-container-right .ng-part-header table");if(!e)return;const r=n?Array.from(n.querySelectorAll("tr")):[],o=Array.from(e.querySelectorAll("tr")),i=s?Array.from(s.querySelectorAll("tr")):[],a=Math.max(r.length,o.length,i.length);for(let u=0;u<a;u++){const b=[((c=r[u])==null?void 0:c.getBoundingClientRect().height)||0,((l=o[u])==null?void 0:l.getBoundingClientRect().height)||0,((d=i[u])==null?void 0:d.getBoundingClientRect().height)||0],g=Math.max(...b);g>0&&(r[u]&&(r[u].style.height=`${g}px`),o[u]&&(o[u].style.height=`${g}px`),i[u]&&(i[u].style.height=`${g}px`))}},"#syncHeaderHeights"));C(this,"destroy",h(()=>{t(this,K)&&(t(this,K).disconnect(),p(this,K,null))},"destroy"));p(this,Y,n.getRootNode().host),p(this,E,n),t(this,ne).call(this)}getRowHeight(){return t(this,O)}templateLength(n=".ng-container-body"){var e;return((e=t(this,F).get(n))==null?void 0:e.length)||1}};Y=new WeakMap,E=new WeakMap,ot=new WeakMap,F=new WeakMap,O=new WeakMap,K=new WeakMap,it=new WeakMap,Ct=new WeakMap,Fe=new WeakMap,je=new WeakMap,te=new WeakMap,ee=new WeakMap,kt=new WeakMap,Lt=new WeakMap,It=new WeakMap,se=new WeakMap,ne=new WeakMap,Ht=new WeakMap,Ye=new WeakMap,pt=new WeakMap,Mt=new WeakMap,re=new WeakMap,h(Ue,"RowManager");let Ee=Ue;const oe=class oe{static compileAll(n){return Array.isArray(n)?n.map(e=>oe.compile(e)):[]}static compile(n){if(!n)return null;const e=h(a=>{a.querySelectorAll("tbody td, tbody th, tfoot td, tfoot th").forEach(l=>{const d=l.getAttribute("cell-type")||"renderer";if(l.children.length>0&&l.firstElementChild.tagName.includes("-"))return;let u=`cell-${d}`;const b=l.getAttribute("data-bind"),g=l.getAttribute("data-expr"),m=l.getAttribute("maxbyte"),v=l.getAttribute("type");let S=[];b&&S.push(`data-bind="${b}"`),g&&S.push(`data-expr="${g}"`),m&&S.push(`maxbyte="${m}"`),v&&S.push(`type="${v}"`),l.innerHTML=`<${u} ${S.join(" ")}></${u}>`}),a.querySelectorAll("tbody td, tfoot td").forEach(l=>{l.setAttribute("tabindex","0")})},"processCellTypes"),s=h(a=>{if(!a.querySelector("colgroup")){const c=a.querySelector("tbody tr")||a.querySelector("tr"),l=c?c.querySelectorAll("th, td").length:1,d=document.createElement("colgroup"),u=Math.max(Math.floor(a.clientWidth/l),100);for(let b=0;b<l;b++){const g=document.createElement("col");g.setAttribute("width",u),d.appendChild(g)}a.prepend(d)}if(!a.querySelector("thead")){const c=document.createElement("thead"),l=a.querySelector("colgroup");l?l.after(c):a.prepend(c)}a.classList.add("nine-table-element")},"ensureTableStructure"),r=h((a,c)=>{const l=Array.from(a.querySelectorAll(c+" tr")),d=Array.from(a.querySelectorAll(c+" th,"+c+" td")),u=l.length;if(u===0||d.length===0)return;let b=0;d.forEach(m=>{b+=m.colSpan||1});const g=Array.from(Array(u),()=>Array(b).fill(null));l.forEach(m=>{const v=m.sectionRowIndex;let S=0;Array.from(m.querySelectorAll("th,td")).forEach(x=>{for(let N=0;N<g[v].length;N++)if(g[v][N]===null){S=N;break}const k=x.rowSpan||1,q=x.colSpan||1;for(let N=0;N<k;N++)for(let Rt=0;Rt<q;Rt++)v+N<u&&S+Rt<b&&(g[v+N][S+Rt]=N===0&&Rt===0?"1":"0")})}),l.forEach(m=>{const v=m.sectionRowIndex;Array.from(m.querySelectorAll("th,td")).forEach(S=>{for(let x=0;x<g[v].length;x++)if(g[v][x]==="1"){S.dataset.col=x,g[v][x]="0";break}})})},"resetColIndex"),o=n.cloneNode(!0);return s(o),e(o),r(o,"thead"),r(o,"tbody"),r(o,"tfoot"),Array.from(o.querySelectorAll("colgroup col")).forEach((a,c)=>{const l=a.getAttribute("fixed");l&&o.querySelectorAll(`thead [data-col="${c}"], tbody [data-col="${c}"], tfoot [data-col="${c}"]`).forEach(d=>{d.setAttribute("fixed",l)})}),o}};h(oe,"TableCompiler");let qe=oe;const Ve=class Ve{constructor(n){f(this,V);f(this,_);f(this,U,{startRow:-1,startCol:-1,endRow:-1,endCol:-1});C(this,"render",h(()=>{const{startRow:n,startCol:e,endRow:s,endCol:r}=t(this,U);y.log("🎨 [CellSelection.render] Rendering range ->",t(this,U));const o=t(this,_).querySelectorAll(".ng-container-left .ng-part-body, .ng-container-body .ng-part-body, .ng-container-right .ng-part-body");if(o.forEach(a=>{a.querySelectorAll(".selected, .selected-top, .selected-bottom, .selected-left, .selected-right").forEach(c=>{c.classList.remove("selected","selected-top","selected-bottom","selected-left","selected-right")})}),n<0||e<0){y.log("⚠️ [CellSelection.render] Range is invalid (< 0), skipping render.");return}let i=0;o.forEach(a=>{a.querySelectorAll("tbody tr").forEach(c=>{const{matrixRow:l}=gt(this,V,Gt).call(this,c);l<0||c.querySelectorAll("td, th").forEach(d=>{const u=parseInt(d.dataset.col,10);if(isNaN(u))return;const b=parseInt(d.rowSpan||1,10),g=parseInt(d.colSpan||1,10),m=l+b-1,v=u+g-1;m>=n&&l<=s&&v>=e&&u<=r&&(i++,d.classList.add("selected"),y.log(d,n,e,s,r),l<=n&&d.classList.add("selected-top"),m>=s&&d.classList.add("selected-bottom"),u<=e&&d.classList.add("selected-left"),v>=r&&d.classList.add("selected-right"))})})}),y.log(`✨ [CellSelection.render] Total rendered cells marked: ${i}`)},"render"));p(this,_,n),gt(this,V,ms).call(this),t(this,_).querySelectorAll(".ng-container-left .ng-part-body, .ng-container-body .ng-part-body, .ng-container-right .ng-part-body").forEach(s=>{s.addEventListener("scroll",()=>{t(this,U).startRow>=0&&t(this,U).startCol>=0&&this.render()})}),y.log("🎯 [CellSelection] Initialized")}setRange(n,e,s,r){y.log(`🔍 [CellSelection.setRange] Input -> startRow: ${n}, startCol: ${e}, endRow: ${s}, endCol: ${r}`);let o=Math.min(n,s),i=Math.max(n,s),a=Math.min(e,r),c=Math.max(e,r);const l=t(this,_).querySelectorAll(".ng-container-left .ng-part-body, .ng-container-body .ng-part-body, .ng-container-right .ng-part-body");let d=!0,u=0;for(;d&&u<5;)d=!1,u++,l.forEach(b=>{b.querySelectorAll("tbody tr").forEach(g=>{if(g.classList.contains("nodata"))return;const{matrixRow:m}=gt(this,V,Gt).call(this,g);m<0||g.querySelectorAll("td, th").forEach(v=>{const S=parseInt(v.dataset.col,10);if(isNaN(S))return;const x=parseInt(v.rowSpan||1,10),k=parseInt(v.colSpan||1,10),q=m+x-1,N=S+k-1;if(q>=o&&m<=i&&N>=a&&S<=c){const ds=Math.min(o,m),fs=Math.max(i,q),us=Math.min(a,S),gs=Math.max(c,N);(ds!==o||fs!==i||us!==a||gs!==c)&&(o=ds,i=fs,a=us,c=gs,d=!0)}})})});p(this,U,{startRow:o,startCol:a,endRow:i,endCol:c}),y.log("📦 [CellSelection.setRange] Final Range ->",t(this,U)),this.render()}};_=new WeakMap,U=new WeakMap,V=new WeakSet,Gt=h(function(n){if(!n||n.classList.contains("nodata"))return{dataRow:-1,subRowIndex:-1,matrixRow:-1};const e=parseInt(n.dataset.row,10);if(isNaN(e))return{dataRow:-1,subRowIndex:-1,matrixRow:-1};const s=n.closest("tbody"),o=Array.from(s.querySelectorAll("tr:not(.nodata)")).filter(l=>parseInt(l.dataset.row,10)===e),i=o.indexOf(n),a=o.length>0?o.length:1,c=e*a+(i>=0?i:n.sectionRowIndex%a);return{dataRow:e,subRowIndex:i,matrixRow:c}},"#getMatrixRow"),ms=h(function(){const n=t(this,_).querySelector(".ng-container-top");if(!n){y.log("❌ [CellSelection] .ng-container-top not found!");return}n.addEventListener("mousedown",e=>{if(e.button!==0)return;const s=e.target.closest("td, th");if(!s||s.dataset.row===void 0||s.dataset.col===void 0||s.closest("tr").classList.contains("nodata"))return;t(this,_).style.userSelect="none",t(this,_).style.webkitUserSelect="none";const r=s.closest("tr"),{matrixRow:o}=gt(this,V,Gt).call(this,r),i=parseInt(s.dataset.col,10);if(o<0){t(this,_).style.userSelect="",t(this,_).style.webkitUserSelect="";return}y.log(`🖱️ [MouseDown Success] startRow: ${o}, startCol: ${i}`),t(this,_).navigation.currentCell=s;let a=o,c=i;const l=h(u=>{const b=document.elementFromPoint(u.clientX,u.clientY);let g=b==null?void 0:b.closest("td, th");if(!g||!t(this,_).contains(g)){const x=t(this,_).querySelectorAll(".ng-part-body tbody tr:not(.nodata) td, .ng-part-body tbody tr:not(.nodata) th");for(const k of x){const q=k.getBoundingClientRect();if(u.clientX>=q.left&&u.clientX<=q.right&&u.clientY>=q.top&&u.clientY<=q.bottom){g=k;break}}}if(!g||g.dataset.row===void 0||g.dataset.col===void 0||g.closest("tr").classList.contains("nodata"))return;const m=g.closest("tr"),{matrixRow:v}=gt(this,V,Gt).call(this,m),S=parseInt(g.dataset.col,10);v<0||a===v&&c===S||(a=v,c=S,this.setRange(o,i,v,S))},"onMouseMove"),d=h(()=>{y.log("🖱️ [MouseUp] Drag ended."),t(this,_).style.userSelect="",t(this,_).style.webkitUserSelect="",document.removeEventListener("mousemove",l),document.removeEventListener("mouseup",d)},"onMouseUp");document.addEventListener("mousemove",l),document.addEventListener("mouseup",d)})},"#initEvents"),h(Ve,"CellSelection");let Te=Ve;const Xe=class Xe{constructor(n){f(this,le);f(this,j);f(this,at,null);f(this,ie,-1);f(this,ae,-1);f(this,$t,h((n,e,s)=>{const r=t(this,_t).call(this,n,e);if(!r)return s+1;let o=s+1;const i=Array.from(r.querySelectorAll("td"));for(const a of i){const c=parseInt(a.dataset.col,10),l=parseInt(a.colSpan||1,10);if(s>=c&&s<c+l){o=c+l;break}}return o},"#getNextCol"));f(this,Nt,h((n,e,s)=>{const r=t(this,_t).call(this,n,e);if(!r)return Math.max(0,s-1);let o=Math.max(0,s-1);const i=Array.from(r.querySelectorAll("td"));for(const a of i){const c=parseInt(a.dataset.col,10);if(c<s)o=c;else break}return o},"#getPreviousCol"));f(this,_t,h((n,e)=>{const s=t(this,j).querySelectorAll(".ng-container-left .ng-part-body, .ng-container-body .ng-part-body, .ng-container-right .ng-part-body");for(const r of s){const i=Array.from(r.querySelectorAll("tbody tr:not(.nodata)")).filter(a=>parseInt(a.dataset.row,10)===n);if(i[e])return i[e]}return null},"#findTargetTr"));f(this,Dt,h((n,e,s)=>{const r=t(this,j).querySelectorAll(".ng-container-left .ng-part-body, .ng-container-body .ng-part-body, .ng-container-right .ng-part-body");for(const o of r){const c=Array.from(o.querySelectorAll("tbody tr:not(.nodata)")).filter(l=>parseInt(l.dataset.row,10)===n)[e];if(c){const l=Array.from(c.querySelectorAll("td"));for(const d of l){const u=parseInt(d.dataset.col,10),b=parseInt(d.colSpan||1,10);if(!isNaN(u)&&s>=u&&s<u+b&&window.getComputedStyle(d).display!=="none")return d}}}return null},"#getNearElement"));p(this,j,n),gt(this,le,xs).call(this),y.log("🎯 [CellNavigation] Initialized")}get currentCell(){return t(this,at)}set currentCell(n){if(!n)return;p(this,at,n),n.focus({preventScroll:!0});const e=parseInt(n.dataset.row,10),s=parseInt(n.dataset.col,10);if(!isNaN(e)&&!isNaN(s)){p(this,ie,e),p(this,ae,s);const r=n.closest("tr"),o=r==null?void 0:r.closest("tbody");if(o){const a=Array.from(o.querySelectorAll("tr:not(.nodata)")).filter(u=>parseInt(u.dataset.row,10)===e),c=a.length>0?a.length:1,l=a.indexOf(r),d=e*c+(l>=0?l:0);t(this,j).selection.setRange(d,s,d,s)}}}moveCell(n){var v,S,x,k;if(!t(this,at))return;const e=t(this,at),s=e.closest("tr"),r=parseInt(e.dataset.row,10),o=parseInt(e.dataset.col,10),i=s==null?void 0:s.closest("tbody");if(!i)return;const c=Array.from(i.querySelectorAll("tr:not(.nodata)")).filter(q=>parseInt(q.dataset.row,10)===r),l=c.length>0?c.length:1,d=c.indexOf(s);let u=r,b=d,g=o;switch(n.code){case"Tab":n.preventDefault(),g=n.shiftKey?t(this,Nt).call(this,r,d,o):t(this,$t).call(this,r,d,o);break;case"ArrowRight":g=t(this,$t).call(this,r,d,o);break;case"ArrowLeft":g=t(this,Nt).call(this,r,d,o);break;case"ArrowDown":n.preventDefault(),d<l-1?b=d+1:(u=r+1,b=0);break;case"ArrowUp":n.preventDefault(),d>0?b=d-1:(u=r-1,b=l-1);break}let m=t(this,Dt).call(this,u,b,g);if(m)this.currentCell=m;else if(u!==r&&u>=0){const q=((S=(v=t(this,j)).getRowHeight)==null?void 0:S.call(v))||40;(k=(x=t(this,j)).scrollToY)==null||k.call(x,u*q),setTimeout(()=>{const N=t(this,Dt).call(this,u,b,g);N&&(this.currentCell=N)},0)}}};j=new WeakMap,at=new WeakMap,ie=new WeakMap,ae=new WeakMap,$t=new WeakMap,Nt=new WeakMap,_t=new WeakMap,Dt=new WeakMap,le=new WeakSet,xs=h(function(){t(this,j).addEventListener("keydown",n=>{["Tab","ArrowUp","ArrowDown","ArrowLeft","ArrowRight"].includes(n.code)&&this.moveCell(n)})},"#initEvents"),h(Xe,"CellNavigation");let Ce=Xe;const zt=class zt extends HTMLElement{constructor(){super();f(this,ce);f(this,lt,null);f(this,ct);f(this,Ot);f(this,Wt);C(this,"invalidate",h(()=>{y.log("sheet.invalidate()"),t(this,ct).refresh()},"invalidate"));C(this,"generate",h(e=>{if(y.log("sheet.generate()"),!e)return;p(this,lt,qe.compile(e)),t(this,he).call(this),t(this,de).call(this);const s=this.querySelector(".ng-container-body .ng-part-header"),r=this.querySelector(".ng-container-body .ng-part-footer"),o=this.querySelector(".ng-nodata-overlay");s&&o&&(o.style.top=`${s.offsetHeight}px`),r&&o&&(o.style.bottom=`${r.offsetHeight}px`),t(this,ct).initialize(),setTimeout(()=>{var i;(i=this.querySelector("nine-table-hscrollbar"))==null||i.refresh()},0)},"generate"));f(this,he,h(()=>{[{selector:".ng-container-body",type:null},{selector:".ng-container-left",type:"left"},{selector:".ng-container-right",type:"right"}].forEach(({selector:s,type:r})=>{var o,i,a;(o=this.querySelector(`${s} .ng-part-header`))==null||o.appendChild(t(this,yt).call(this,t(this,lt),r,"header")),(i=this.querySelector(`${s} .ng-virtual-spacer`))==null||i.before(t(this,yt).call(this,t(this,lt),r,"body")),(a=this.querySelector(`${s} .ng-part-footer`))==null||a.appendChild(t(this,yt).call(this,t(this,lt),r,"footer"))})},"#renderSplitContainers"));f(this,de,h(()=>{["left","right","body"].forEach(e=>{const s=this.querySelector(`.ng-container-${e}`),r=s==null?void 0:s.querySelectorAll("table");if(!s||!r||r.length===0)return;let o=0;r[0].querySelectorAll("col").forEach(i=>{const a=parseInt(i.getAttribute("width"),10);isNaN(a)||(o+=a)}),e==="body"?(s.style.flex="1",r.forEach(i=>{i.style.width=`${o}px`,i.style.minWidth=`${o}px`})):(s.style.flex=`0 0 ${o}px`,s.style.width=`${o}px`,r.forEach(i=>{i.style.width=`${o}px`,i.style.minWidth=`${o}px`}))})},"#updateContainerWidths"));f(this,yt,h((e,s,r)=>{const o=e.cloneNode(!0),i=o.querySelector("thead"),a=o.querySelector("tbody"),c=o.querySelector("tfoot");if(r==="header"){if(a&&a.remove(),c&&c.remove(),e.querySelector("tbody")){const d=document.createElement("tbody");d.className="fixed-tbody",o.appendChild(d)}}else r==="body"?(i&&i.remove(),c&&c.remove(),a&&(a.className="bindable-tbody")):r==="footer"&&(i&&i.remove(),a&&a.remove());return s==="left"?o.querySelectorAll("col, th, td, tfoot td, tfoot th").forEach(l=>{l.getAttribute("fixed")!=="left"&&l.remove()}):s==="right"?o.querySelectorAll("col, th, td, tfoot td, tfoot th").forEach(l=>{l.getAttribute("fixed")!=="right"&&l.remove()}):o.querySelectorAll("[fixed=left], [fixed=right]").forEach(l=>{l.remove()}),o},"#createSplitTable"));C(this,"getRowHeight",h(()=>t(this,ct).getRowHeight(),"getRowHeight"));C(this,"scrollToX",h(e=>{const s=this.querySelector(".ng-container-body .ng-part-body");s&&(s.scrollLeft=e)},"scrollToX"));C(this,"scrollToY",h(e=>{const s=this.querySelector(".ng-container-body .ng-part-body");s&&(s.scrollTop=e)},"scrollToY"));f(this,fe,h(()=>{t(this,ue).call(this),p(this,Ot,new Te(this)),p(this,Wt,new Ce(this))},"#init"));f(this,ue,h(()=>{const e=zt.SCROLLBAR_SIZE;this.innerHTML=`
|
|
126
|
+
`;const e=h(()=>{const s=t(this,it).querySelector(".ng-container-body .ng-part-body");if(!s){setTimeout(e,10);return}y(this,I,{container:s,track:this.querySelector(".ng-scroll-track"),thumb:this.querySelector(".ng-scroll-thumb"),top:this.querySelector(".ng-scroll-top"),bottom:this.querySelector(".ng-scroll-bottom")}),t(this,ee).call(this),this.refresh()},"initWhenReady");e()}};ot=new WeakMap,it=new WeakMap,mt=new WeakMap,I=new WeakMap,Tt=new WeakMap,kt=new WeakMap,ee=new WeakMap,h(Ye,"NineTableVScrollBar");let Ct=Ye;customElements.get("nine-table-vscrollbar")||customElements.define("nine-table-vscrollbar",Ct);const Ke=class Ke{constructor(n){d(this,V);d(this,q);d(this,at);d(this,Y,new Map);d(this,D,null);d(this,J,null);d(this,lt,0);d(this,It,40);d(this,Ue,!1);d(this,Ve,!1);d(this,se,3);T(this,"refresh",h(()=>{var e;m.log("rowManager.refresh");const n=t(this,q).querySelector(".ng-container-body .ng-part-body");n&&(t(this,Lt).call(this),t(this,Mt).call(this),t(this,xt).call(this,n.scrollTop),(e=t(this,q).querySelector("nine-table-vscrollbar"))==null||e.refresh())},"refresh"));T(this,"initialize",h(()=>{m.log("rowManager.initialize"),y(this,at,{scrollTables:t(this,q).querySelectorAll(".ng-part-body table"),firstTr:t(this,q).querySelector(".ng-container-body .ng-part-body tbody.bindable-tbody tr:not(.nodata)")}),y(this,D,null),t(this,Y).clear(),[".ng-container-body",".ng-container-left",".ng-container-right"].forEach(r=>{const a=t(this,q).querySelector(r);if(!a)return;const c=a.querySelector(".ng-part-body table");if(!c)return;const l=c.querySelector("tbody.bindable-tbody");if(!l)return;const f=Array.from(l.querySelectorAll("tr")).map(b=>b.cloneNode(!0));t(this,Y).set(r,f)});const n=t(this,q).querySelector(".ng-container-body .ng-part-body"),e=t(this,q).querySelector(".ng-container-left .ng-part-body"),s=t(this,q).querySelector(".ng-container-right .ng-part-body"),o=t(this,q).querySelector(".ng-container-body .ng-part-header"),i=t(this,q).querySelector(".ng-container-body .ng-part-footer");if(n){t(this,Lt).call(this),t(this,$t).call(this),t(this,Mt).call(this),t(this,xt).call(this,n.scrollTop);let r=!1;const a=h(c=>{var f;if(r)return;r=!0;const l=c.scrollTop,g=c.scrollLeft;n&&n.scrollTop!==l&&(n.scrollTop=l),e&&e.scrollTop!==l&&(e.scrollTop=l),s&&s.scrollTop!==l&&(s.scrollTop=l),o&&o.scrollLeft!==g&&(o.scrollLeft=g),i&&i.scrollLeft!==g&&(i.scrollLeft=g),t(this,xt).call(this,l),(f=t(this,q).querySelector("nine-table-vscrollbar"))==null||f.refresh(),r=!1},"handleContainerScroll");[n,e,s].forEach(c=>{c==null||c.addEventListener("scroll",l=>{m.log(l),m.log("rowManager.scroll event"),a(c)})})}},"initialize"));d(this,ne,h((n,e)=>{m.log("rowManager.#renderRows");const s=t(this,Y).get(e);if(!s||s.length===0)return;const o=n.querySelector(".ng-part-body tbody.bindable-tbody");if(!o)return;o.querySelectorAll("tr:not(.nodata)").forEach(a=>a.remove());const i=o.querySelector("tr.nodata"),r=document.createDocumentFragment();for(let a=0;a<t(this,It);a++)s.forEach(c=>{r.appendChild(c.cloneNode(!0))});i?i.before(r):o.appendChild(r),e===".ng-container-body"&&(t(this,at).firstTr=o.querySelector("tr:not(.nodata)"))},"#renderRows"));d(this,Lt,h(()=>{if(t(this,D)!==null&&t(this,D)>0)return t(this,D);const n=t(this,q).querySelector(".ng-container-body .ng-part-body");m.log("rowManager.#measureAndCacheHeight");const e=t(this,Y).get(".ng-container-body");if(!e||e.length===0)throw new Error("invalid dom");const s=n.querySelector("tbody.bindable-tbody");if(m.log(s),!s)throw new Error("invalid dom");s.querySelectorAll("tr:not(.nodata)").forEach(b=>b.remove());const o=s.querySelector("tr.nodata"),i=document.createDocumentFragment();e.forEach(b=>{i.appendChild(b.cloneNode(!0))}),o?o.before(i):s.appendChild(i);const r=t(this,q),a=r.style.display,c=r.style.visibility,l=r.style.position;(a==="none"||window.getComputedStyle(r).display==="none")&&(r.style.display="block",r.style.visibility="hidden",r.style.position="absolute");let g=0;const f=s.querySelectorAll("tr");return f.forEach(b=>{let u=b.offsetHeight||b.getBoundingClientRect().height;if(u===0){const p=window.getComputedStyle(b);u=parseFloat(p.height)||parseFloat(p.minHeight)||0}g+=u}),f.forEach(b=>b.remove()),r.style.display=a,r.style.visibility=c,r.style.position=l,g<=0?-1:(y(this,D,g),t(this,Ht).call(this),t(this,D))},"#measureAndCacheHeight"));d(this,Mt,h(()=>{m.log("rowManager.#updateVirtualScrollHeight");const e=(t(this,V).data.get()||[]).length,s=t(this,D),o=e*s;m.log("🔍 [VirtualHeight]",{totalCount:e,rowHeight:s,totalVirtualHeight:o}),[".ng-container-body",".ng-container-left",".ng-container-right"].forEach(i=>{const r=t(this,q).querySelector(i);if(!r)return;const a=r.querySelector(".ng-part-body .ng-virtual-spacer");a&&(a.style.height=`${o}px`)})},"#updateVirtualScrollHeight"));d(this,Ht,h(()=>{if(t(this,lt)>0&&t(this,D)>0){const n=Math.ceil(t(this,lt)/t(this,D));y(this,It,n+t(this,se))}},"#updateRowCount"));d(this,re,h(()=>{var a,c,l,g,f,b;const n=t(this,q).querySelector(".ng-container-left .ng-part-body table"),e=t(this,q).querySelector(".ng-container-body .ng-part-body table"),s=t(this,q).querySelector(".ng-container-right .ng-part-body table");if(e){const u=n?Array.from(n.querySelectorAll("tbody tr")):[],p=Array.from(e.querySelectorAll("tbody tr")),w=s?Array.from(s.querySelectorAll("tbody tr")):[],S=Math.max(u.length,p.length,w.length);for(let x=0;x<S;x++){const k=[((a=u[x])==null?void 0:a.getBoundingClientRect().height)||0,((c=p[x])==null?void 0:c.getBoundingClientRect().height)||0,((l=w[x])==null?void 0:l.getBoundingClientRect().height)||0],R=Math.max(...k);R>0&&(u[x]&&(u[x].style.height=`${R}px`),p[x]&&(p[x].style.height=`${R}px`),w[x]&&(w[x].style.height=`${R}px`))}}const o=t(this,q).querySelector(".ng-container-left .ng-part-footer table"),i=t(this,q).querySelector(".ng-container-body .ng-part-footer table"),r=t(this,q).querySelector(".ng-container-right .ng-part-footer table");if(i){const u=o?Array.from(o.querySelectorAll("tfoot tr")):[],p=Array.from(i.querySelectorAll("tfoot tr")),w=r?Array.from(r.querySelectorAll("tfoot tr")):[],S=Math.max(u.length,p.length,w.length);for(let x=0;x<S;x++){const k=[((g=u[x])==null?void 0:g.getBoundingClientRect().height)||0,((f=p[x])==null?void 0:f.getBoundingClientRect().height)||0,((b=w[x])==null?void 0:b.getBoundingClientRect().height)||0],R=Math.max(...k);R>0&&(u[x]&&(u[x].style.height=`${R}px`),p[x]&&(p[x].style.height=`${R}px`),w[x]&&(w[x].style.height=`${R}px`))}}},"#syncRowHeights"));d(this,oe,h(()=>{!t(this,q)||!(t(this,q)instanceof HTMLElement)||(y(this,J,new ResizeObserver(n=>{for(const e of n){const s=e.target;if(!s.classList.contains("active"))continue;const o=e.contentRect.height;if(o>0){let i=0;const r=s.querySelector(".ng-part-header"),a=s.querySelector(".ng-part-footer");r&&(i+=r.offsetHeight),a&&(i+=a.offsetHeight);const c=Math.max(o-i,100);t(this,lt)!==c&&(y(this,lt,c),t(this,Ht).call(this),t(this,D)!==null&&(t(this,$t).call(this),this.refresh()))}}})),t(this,J).observe(t(this,q)))},"#initResizeObserver"));d(this,$t,h(()=>{m.log("rowManager.#renderAllContainers"),[".ng-container-body",".ng-container-left",".ng-container-right"].forEach(n=>{const e=t(this,q).querySelector(n);e&&e.querySelector(".ng-part-body tbody.bindable-tbody")&&t(this,ne).call(this,e,n)}),t(this,ie).call(this),t(this,re).call(this)},"#renderAllContainers"));d(this,Xe,h(n=>{[".ng-container-body",".ng-container-left",".ng-container-right"].forEach(e=>{var l;const s=t(this,q).querySelector(e);if(!s)return;const o=s.querySelector(".ng-part-body tbody.bindable-tbody");if(!o)return;const i=Array.from(o.querySelectorAll("tr:not(.nodata)")),r=((l=t(this,Y).get(e))==null?void 0:l.length)||1,c=(t(this,V).data.get()||[]).length;i.forEach((g,f)=>{const b=n+Math.floor(f/r);if(b>=c){g.style.visibility="hidden";return}const u=t(this,V).data.get(b);g.style.display="",t(this,Nt).call(this,g,u,b)})})},"#adjustBufferRows"));d(this,xt,h(n=>{var f,b;const e=t(this,D);if(!e||e<=0)return;const s=t(this,V).data.length;if(s===0)return;const o=((f=t(this,Y).get(".ng-container-body"))==null?void 0:f.length)||1,i=t(this,q).querySelector(".ng-container-body .ng-part-body");m.log("bodyContainer.clientHeight",i.clientHeight);const r=Math.max(0,s-Math.floor(i.clientHeight/e)),a=Math.min(r,Math.max(0,Math.floor(n/e)));let c=Math.floor(a*e);m.log(`📜 [Scroll Calc] maxStartIndex: ${r}, startIndex: ${a}, offsetY: ${c}`),a===r&&m.log(`📜 [Scroll Inspect] scrollTop: ${n}, rowHeight: ${e}, maxStartIndex: ${r}, startIndex: ${a}, offsetY: ${c}`);const l=t(this,at).firstTr,g=l&&l.dataset.row!==void 0?parseInt(l.dataset.row,10):-1;(b=t(this,at))==null||b.scrollTables.forEach(u=>{u.style.transform=`translate3d(0, ${c}px, 0)`}),g!==a&&(m.log(`🔄 [Row Bind Trigger] currentStartIndex(${g}) !== startIndex(${a})`),[".ng-container-body",".ng-container-left",".ng-container-right"].forEach(u=>{const p=t(this,q).querySelector(u);if(!p)return;const w=p.querySelector(".ng-part-body tbody.bindable-tbody");if(!w)return;Array.from(w.querySelectorAll("tr:not(.nodata)")).forEach((x,k)=>{const R=a+Math.floor(k/o);if(R>=s){x.style.display="none";return}const N=t(this,V).data.get(R);x.style.display="",t(this,Nt).call(this,x,N,R)})}))},"#handleScroll"));d(this,Nt,h((n,e,s)=>{n.dataset.row=s,n.data=e,Array.from(n.cells).forEach((o,i)=>{o.dataset.row=s;const r=Array.from(o.children).find(a=>a.tagName.toLowerCase().startsWith("cell-")||typeof a.refresh=="function");r&&typeof r.refresh=="function"&&r.refresh()})},"#bindRowData"));d(this,ie,h(()=>{var c,l,g;m.log("rowManager.#syncHeaderHeights");const n=t(this,q).querySelector(".ng-container-left .ng-part-header table"),e=t(this,q).querySelector(".ng-container-body .ng-part-header table"),s=t(this,q).querySelector(".ng-container-right .ng-part-header table");if(!e)return;const o=n?Array.from(n.querySelectorAll("tr")):[],i=Array.from(e.querySelectorAll("tr")),r=s?Array.from(s.querySelectorAll("tr")):[],a=Math.max(o.length,i.length,r.length);for(let f=0;f<a;f++){const b=[((c=o[f])==null?void 0:c.getBoundingClientRect().height)||0,((l=i[f])==null?void 0:l.getBoundingClientRect().height)||0,((g=r[f])==null?void 0:g.getBoundingClientRect().height)||0],u=Math.max(...b);u>0&&(o[f]&&(o[f].style.height=`${u}px`),i[f]&&(i[f].style.height=`${u}px`),r[f]&&(r[f].style.height=`${u}px`))}},"#syncHeaderHeights"));T(this,"destroy",h(()=>{t(this,J)&&(t(this,J).disconnect(),y(this,J,null))},"destroy"));y(this,V,n.getRootNode().host),y(this,q,n),t(this,oe).call(this)}getRowHeight(){return t(this,D)}templateLength(n=".ng-container-body"){var e;return((e=t(this,Y).get(n))==null?void 0:e.length)||1}};V=new WeakMap,q=new WeakMap,at=new WeakMap,Y=new WeakMap,D=new WeakMap,J=new WeakMap,lt=new WeakMap,It=new WeakMap,Ue=new WeakMap,Ve=new WeakMap,se=new WeakMap,ne=new WeakMap,Lt=new WeakMap,Mt=new WeakMap,Ht=new WeakMap,re=new WeakMap,oe=new WeakMap,$t=new WeakMap,Xe=new WeakMap,xt=new WeakMap,Nt=new WeakMap,ie=new WeakMap,h(Ke,"RowManager");let Te=Ke;const ae=class ae{static compileAll(n){return Array.isArray(n)?n.map(e=>ae.compile(e)):[]}static compile(n){if(!n)return null;const e=h(a=>{a.querySelectorAll("tbody td, tbody th, tfoot td, tfoot th").forEach(l=>{const g=l.getAttribute("cell-type")||"renderer";if(l.children.length>0&&l.firstElementChild.tagName.includes("-"))return;let f=`cell-${g}`;const b=l.getAttribute("data-bind"),u=l.getAttribute("data-expr"),p=l.getAttribute("maxbyte"),w=l.getAttribute("type");let S=[];b&&S.push(`data-bind="${b}"`),u&&S.push(`data-expr="${u}"`),p&&S.push(`maxbyte="${p}"`),w&&S.push(`type="${w}"`),l.innerHTML=`<${f} ${S.join(" ")}></${f}>`}),a.querySelectorAll("tbody td, tfoot td").forEach(l=>{l.setAttribute("tabindex","0")})},"processCellTypes"),s=h(a=>{if(!a.querySelector("colgroup")){const c=a.querySelector("tbody tr")||a.querySelector("tr"),l=c?c.querySelectorAll("th, td").length:1,g=document.createElement("colgroup"),f=Math.max(Math.floor(a.clientWidth/l),100);for(let b=0;b<l;b++){const u=document.createElement("col");u.setAttribute("width",f),g.appendChild(u)}a.prepend(g)}if(!a.querySelector("thead")){const c=document.createElement("thead"),l=a.querySelector("colgroup");l?l.after(c):a.prepend(c)}a.classList.add("nine-table-element")},"ensureTableStructure"),o=h((a,c)=>{const l=Array.from(a.querySelectorAll(c+" tr")),g=Array.from(a.querySelectorAll(c+" th,"+c+" td")),f=l.length;if(f===0||g.length===0)return;let b=0;g.forEach(p=>{b+=p.colSpan||1});const u=Array.from(Array(f),()=>Array(b).fill(null));l.forEach(p=>{const w=p.sectionRowIndex;let S=0;Array.from(p.querySelectorAll("th,td")).forEach(x=>{for(let N=0;N<u[w].length;N++)if(u[w][N]===null){S=N;break}const k=x.rowSpan||1,R=x.colSpan||1;for(let N=0;N<k;N++)for(let B=0;B<R;B++)w+N<f&&S+B<b&&(u[w+N][S+B]=N===0&&B===0?"1":"0")})}),l.forEach(p=>{const w=p.sectionRowIndex;Array.from(p.querySelectorAll("th,td")).forEach(S=>{for(let x=0;x<u[w].length;x++)if(u[w][x]==="1"){S.dataset.col=x,u[w][x]="0";break}})})},"resetColIndex"),i=n.cloneNode(!0);return s(i),e(i),o(i,"thead"),o(i,"tbody"),o(i,"tfoot"),Array.from(i.querySelectorAll("colgroup col")).forEach((a,c)=>{const l=a.getAttribute("fixed");l&&i.querySelectorAll(`thead [data-col="${c}"], tbody [data-col="${c}"], tfoot [data-col="${c}"]`).forEach(g=>{g.setAttribute("fixed",l)})}),i}};h(ae,"TableCompiler");let ke=ae;const Ge=class Ge{constructor(n){d(this,K);d(this,_);d(this,X,{startRow:-1,startCol:-1,endRow:-1,endCol:-1});T(this,"render",h(()=>{const{startRow:n,startCol:e,endRow:s,endCol:o}=t(this,X);m.log("🎨 [CellSelection.render] Rendering range ->",t(this,X));const i=t(this,_).querySelectorAll(".ng-container-left .ng-part-body, .ng-container-body .ng-part-body, .ng-container-right .ng-part-body");if(i.forEach(a=>{a.querySelectorAll(".selected, .selected-top, .selected-bottom, .selected-left, .selected-right").forEach(c=>{c.classList.remove("selected","selected-top","selected-bottom","selected-left","selected-right")})}),n<0||e<0){m.log("⚠️ [CellSelection.render] Range is invalid (< 0), skipping render.");return}let r=0;i.forEach(a=>{a.querySelectorAll("tbody tr").forEach(c=>{const{matrixRow:l}=yt(this,K,Zt).call(this,c);l<0||c.querySelectorAll("td, th").forEach(g=>{const f=parseInt(g.dataset.col,10);if(isNaN(f))return;const b=parseInt(g.rowSpan||1,10),u=parseInt(g.colSpan||1,10),p=l+b-1,w=f+u-1;p>=n&&l<=s&&w>=e&&f<=o&&(r++,g.classList.add("selected"),m.log(g,n,e,s,o),l<=n&&g.classList.add("selected-top"),p>=s&&g.classList.add("selected-bottom"),f<=e&&g.classList.add("selected-left"),w>=o&&g.classList.add("selected-right"))})})}),m.log(`✨ [CellSelection.render] Total rendered cells marked: ${r}`)},"render"));y(this,_,n),yt(this,K,xs).call(this),t(this,_).querySelectorAll(".ng-container-left .ng-part-body, .ng-container-body .ng-part-body, .ng-container-right .ng-part-body").forEach(s=>{s.addEventListener("scroll",()=>{t(this,X).startRow>=0&&t(this,X).startCol>=0&&this.render()})}),m.log("🎯 [CellSelection] Initialized")}setRange(n,e,s,o){m.log(`🔍 [CellSelection.setRange] Input -> startRow: ${n}, startCol: ${e}, endRow: ${s}, endCol: ${o}`);let i=Math.min(n,s),r=Math.max(n,s),a=Math.min(e,o),c=Math.max(e,o);const l=t(this,_).querySelectorAll(".ng-container-left .ng-part-body, .ng-container-body .ng-part-body, .ng-container-right .ng-part-body");let g=!0,f=0;for(;g&&f<5;)g=!1,f++,l.forEach(b=>{b.querySelectorAll("tbody tr").forEach(u=>{if(u.classList.contains("nodata"))return;const{matrixRow:p}=yt(this,K,Zt).call(this,u);p<0||u.querySelectorAll("td, th").forEach(w=>{const S=parseInt(w.dataset.col,10);if(isNaN(S))return;const x=parseInt(w.rowSpan||1,10),k=parseInt(w.colSpan||1,10),R=p+x-1,N=S+k-1;if(R>=i&&p<=r&&N>=a&&S<=c){const F=Math.min(i,p),Ce=Math.max(r,R),gs=Math.min(a,S),bs=Math.max(c,N);(F!==i||Ce!==r||gs!==a||bs!==c)&&(i=F,r=Ce,a=gs,c=bs,g=!0)}})})});y(this,X,{startRow:i,startCol:a,endRow:r,endCol:c}),m.log("📦 [CellSelection.setRange] Final Range ->",t(this,X)),this.render()}};_=new WeakMap,X=new WeakMap,K=new WeakSet,Zt=h(function(n){if(!n||n.classList.contains("nodata"))return{dataRow:-1,subRowIndex:-1,matrixRow:-1};const e=parseInt(n.dataset.row,10);if(isNaN(e))return{dataRow:-1,subRowIndex:-1,matrixRow:-1};const s=n.closest("tbody"),i=Array.from(s.querySelectorAll("tr:not(.nodata)")).filter(l=>parseInt(l.dataset.row,10)===e),r=i.indexOf(n),a=i.length>0?i.length:1,c=e*a+(r>=0?r:n.sectionRowIndex%a);return{dataRow:e,subRowIndex:r,matrixRow:c}},"#getMatrixRow"),xs=h(function(){const n=t(this,_).querySelector(".ng-container-top");if(!n){m.log("❌ [CellSelection] .ng-container-top not found!");return}n.addEventListener("mousedown",e=>{if(e.button!==0)return;const s=e.target.closest("td, th");if(!s||s.dataset.row===void 0||s.dataset.col===void 0||s.closest("tr").classList.contains("nodata"))return;t(this,_).style.userSelect="none",t(this,_).style.webkitUserSelect="none";const o=s.closest("tr"),{matrixRow:i}=yt(this,K,Zt).call(this,o),r=parseInt(s.dataset.col,10);if(i<0){t(this,_).style.userSelect="",t(this,_).style.webkitUserSelect="";return}m.log(`🖱️ [MouseDown Success] startRow: ${i}, startCol: ${r}`),t(this,_).navigation.currentCell=s;let a=i,c=r;const l=h(f=>{const b=document.elementFromPoint(f.clientX,f.clientY);let u=b==null?void 0:b.closest("td, th");if(!u||!t(this,_).contains(u)){const x=t(this,_).querySelectorAll(".ng-part-body tbody tr:not(.nodata) td, .ng-part-body tbody tr:not(.nodata) th");for(const k of x){const R=k.getBoundingClientRect();if(f.clientX>=R.left&&f.clientX<=R.right&&f.clientY>=R.top&&f.clientY<=R.bottom){u=k;break}}}if(!u||u.dataset.row===void 0||u.dataset.col===void 0||u.closest("tr").classList.contains("nodata"))return;const p=u.closest("tr"),{matrixRow:w}=yt(this,K,Zt).call(this,p),S=parseInt(u.dataset.col,10);w<0||a===w&&c===S||(a=w,c=S,this.setRange(i,r,w,S))},"onMouseMove"),g=h(()=>{m.log("🖱️ [MouseUp] Drag ended."),t(this,_).style.userSelect="",t(this,_).style.webkitUserSelect="",document.removeEventListener("mousemove",l),document.removeEventListener("mouseup",g)},"onMouseUp");document.addEventListener("mousemove",l),document.addEventListener("mouseup",g)})},"#initEvents"),h(Ge,"CellSelection");let Ie=Ge;const Ze=class Ze{constructor(n){d(this,he);d(this,U);d(this,ct,null);d(this,le,-1);d(this,ce,-1);d(this,_t,h(n=>{const e=[];return n.forEach(s=>e.push(...Array.from(s.querySelectorAll("td")))),e.length===0?null:(e.sort((s,o)=>parseInt(s.dataset.col,10)-parseInt(o.dataset.col,10)),e[e.length-1])},"#getMaxColCell"));d(this,Ot,h((n,e)=>{const s=t(this,ht).call(this,n);if(s.length===0)return e+1;let o=e+1;const i=[];s.forEach(r=>i.push(...Array.from(r.querySelectorAll("td")))),i.sort((r,a)=>parseInt(r.dataset.col,10)-parseInt(a.dataset.col,10));for(const r of i){const a=parseInt(r.dataset.col,10),c=parseInt(r.colSpan||1,10);if(e>=a&&e<a+c){o=a+c;break}}return o},"#getNextCol"));d(this,Dt,h((n,e)=>{const s=t(this,ht).call(this,n);if(s.length===0)return Math.max(0,e-1);let o=-1;const i=[];s.forEach(r=>i.push(...Array.from(r.querySelectorAll("td")))),i.sort((r,a)=>parseInt(r.dataset.col,10)-parseInt(a.dataset.col,10));for(const r of i){const a=parseInt(r.dataset.col,10);if(a<e)o=a;else break}return o},"#getPreviousCol"));d(this,ht,h(n=>{const e=t(this,U).querySelectorAll(".ng-container-left .ng-part-body, .ng-container-body .ng-part-body, .ng-container-right .ng-part-body"),s=[];return e.forEach(o=>{const i=Array.from(o.querySelectorAll("tbody tr:not(.nodata)"));for(const r of i){const a=parseInt(r.dataset.row,10),c=i.filter(p=>parseInt(p.dataset.row,10)===a),l=c.length>0?c.length:1,g=c.indexOf(r),f=a*l+(g>=0?g:0);if(f===n){s.push(r);break}const b=Array.from(r.querySelectorAll("td"));let u=!1;for(const p of b){const w=parseInt(p.rowSpan||1,10);if(w>1&&n>=f&&n<f+w){s.push(r),u=!0;break}}if(u)break}}),s},"#findTargetTrsByMatrix"));d(this,Wt,h((n,e,s,o)=>{const i=t(this,U).querySelectorAll(".ng-container-left .ng-part-body, .ng-container-body .ng-part-body, .ng-container-right .ng-part-body"),r=o!==void 0?o:n*1+e;for(const a of i){const c=Array.from(a.querySelectorAll("tbody tr:not(.nodata)"));for(const l of c){const g=parseInt(l.dataset.row,10),f=c.filter(S=>parseInt(S.dataset.row,10)===g),b=f.length>0?f.length:1,u=f.indexOf(l),p=g*b+(u>=0?u:0),w=Array.from(l.querySelectorAll("td"));for(const S of w){const x=parseInt(S.dataset.col,10),k=parseInt(S.colSpan||1,10),R=parseInt(S.rowSpan||1,10);if(!isNaN(x)&&s>=x&&s<x+k&&r>=p&&r<p+R&&window.getComputedStyle(S).display!=="none")return S}}}return null},"#getNearElement"));y(this,U,n),yt(this,he,ws).call(this),m.log("🎯 [CellNavigation] Initialized")}get currentCell(){return t(this,ct)}set currentCell(n){if(!n)return;y(this,ct,n),n.focus({preventScroll:!0});const e=parseInt(n.dataset.row,10),s=parseInt(n.dataset.col,10);if(!isNaN(e)&&!isNaN(s)){y(this,le,e),y(this,ce,s);const o=n.closest("tr"),i=o==null?void 0:o.closest("tbody");if(i){const a=Array.from(i.querySelectorAll("tr:not(.nodata)")).filter(f=>parseInt(f.dataset.row,10)===e),c=a.length>0?a.length:1,l=a.indexOf(o),g=e*c+(l>=0?l:0);t(this,U).selection.setRange(g,s,g,s)}}}moveCell(n){var x,k,R,N;if(!t(this,ct))return;const e=t(this,ct),s=e.closest("tr"),o=parseInt(e.dataset.row,10),i=parseInt(e.dataset.col,10),r=s==null?void 0:s.closest("tbody");if(!r)return;const c=Array.from(r.querySelectorAll("tr:not(.nodata)")).filter(B=>parseInt(B.dataset.row,10)===o),l=c.length>0?c.length:1,g=c.indexOf(s),f=o*l+(g>=0?g:0);let b=f,u=i;switch(n.code){case"Tab":if(n.preventDefault(),n.shiftKey){if(u=t(this,Dt).call(this,f,i),u<0&&f>0){b=f-1;const B=t(this,ht).call(this,b),F=t(this,_t).call(this,B);u=F?parseInt(F.dataset.col,10):0}}else{u=t(this,Ot).call(this,f,i);const B=t(this,ht).call(this,f),F=t(this,_t).call(this,B),Ce=F?parseInt(F.dataset.col,10)+parseInt(F.colSpan||1,10):0;u>=Ce&&(b=f+1,u=0)}break;case"ArrowRight":u=t(this,Ot).call(this,f,i);break;case"ArrowLeft":u=t(this,Dt).call(this,f,i);break;case"ArrowDown":n.preventDefault(),b=f+(e.rowSpan||1);break;case"ArrowUp":n.preventDefault(),b=Math.max(0,f-(e.rowSpan||1));break}const p=Math.floor(b/l),w=b%l;let S=t(this,Wt).call(this,p,w,u,b);if(S)this.currentCell=S;else if(p!==o&&p>=0){const B=((k=(x=t(this,U)).getRowHeight)==null?void 0:k.call(x))||40;(N=(R=t(this,U)).scrollToY)==null||N.call(R,p*B),setTimeout(()=>{const F=t(this,Wt).call(this,p,w,u,b);F&&(this.currentCell=F)},0)}}};U=new WeakMap,ct=new WeakMap,le=new WeakMap,ce=new WeakMap,_t=new WeakMap,Ot=new WeakMap,Dt=new WeakMap,ht=new WeakMap,Wt=new WeakMap,he=new WeakSet,ws=h(function(){t(this,U).addEventListener("keydown",n=>{["Tab","ArrowUp","ArrowDown","ArrowLeft","ArrowRight"].includes(n.code)&&this.moveCell(n)})},"#initEvents"),h(Ze,"CellNavigation");let Le=Ze;const Pt=class Pt extends HTMLElement{constructor(){super();d(this,de);d(this,dt,null);d(this,ft);d(this,zt);d(this,Bt);T(this,"invalidate",h(()=>{m.log("sheet.invalidate()"),t(this,ft).refresh()},"invalidate"));T(this,"generate",h(e=>{if(m.log("sheet.generate()"),!e)return;y(this,dt,ke.compile(e)),t(this,fe).call(this),t(this,ue).call(this);const s=this.querySelector(".ng-container-body .ng-part-header"),o=this.querySelector(".ng-container-body .ng-part-footer"),i=this.querySelector(".ng-nodata-overlay");s&&i&&(i.style.top=`${s.offsetHeight}px`),o&&i&&(i.style.bottom=`${o.offsetHeight}px`),t(this,ft).initialize(),setTimeout(()=>{var r;(r=this.querySelector("nine-table-hscrollbar"))==null||r.refresh()},0)},"generate"));d(this,fe,h(()=>{[{selector:".ng-container-body",type:null},{selector:".ng-container-left",type:"left"},{selector:".ng-container-right",type:"right"}].forEach(({selector:s,type:o})=>{var i,r,a;(i=this.querySelector(`${s} .ng-part-header`))==null||i.appendChild(t(this,wt).call(this,t(this,dt),o,"header")),(r=this.querySelector(`${s} .ng-virtual-spacer`))==null||r.before(t(this,wt).call(this,t(this,dt),o,"body")),(a=this.querySelector(`${s} .ng-part-footer`))==null||a.appendChild(t(this,wt).call(this,t(this,dt),o,"footer"))})},"#renderSplitContainers"));d(this,ue,h(()=>{["left","right","body"].forEach(e=>{const s=this.querySelector(`.ng-container-${e}`),o=s==null?void 0:s.querySelectorAll("table");if(!s||!o||o.length===0)return;let i=0;o[0].querySelectorAll("col").forEach(r=>{const a=parseInt(r.getAttribute("width"),10);isNaN(a)||(i+=a)}),e==="body"?(s.style.flex="1",o.forEach(r=>{r.style.width=`${i}px`,r.style.minWidth=`${i}px`})):(s.style.flex=`0 0 ${i}px`,s.style.width=`${i}px`,o.forEach(r=>{r.style.width=`${i}px`,r.style.minWidth=`${i}px`}))})},"#updateContainerWidths"));d(this,wt,h((e,s,o)=>{const i=e.cloneNode(!0),r=i.querySelector("thead"),a=i.querySelector("tbody"),c=i.querySelector("tfoot");if(o==="header"){if(a&&a.remove(),c&&c.remove(),e.querySelector("tbody")){const g=document.createElement("tbody");g.className="fixed-tbody",i.appendChild(g)}}else o==="body"?(r&&r.remove(),c&&c.remove(),a&&(a.className="bindable-tbody")):o==="footer"&&(r&&r.remove(),a&&a.remove());return s==="left"?i.querySelectorAll("col, th, td, tfoot td, tfoot th").forEach(l=>{l.getAttribute("fixed")!=="left"&&l.remove()}):s==="right"?i.querySelectorAll("col, th, td, tfoot td, tfoot th").forEach(l=>{l.getAttribute("fixed")!=="right"&&l.remove()}):i.querySelectorAll("[fixed=left], [fixed=right]").forEach(l=>{l.remove()}),i},"#createSplitTable"));T(this,"getRowHeight",h(()=>t(this,ft).getRowHeight(),"getRowHeight"));T(this,"scrollToX",h(e=>{const s=this.querySelector(".ng-container-body .ng-part-body");s&&(s.scrollLeft=e)},"scrollToX"));T(this,"scrollToY",h(e=>{const s=this.querySelector(".ng-container-body .ng-part-body");s&&(s.scrollTop=e)},"scrollToY"));d(this,ge,h(()=>{t(this,be).call(this),y(this,zt,new Ie(this)),y(this,Bt,new Le(this))},"#init"));d(this,be,h(()=>{const e=Pt.SCROLLBAR_SIZE;this.innerHTML=`
|
|
127
127
|
<style>
|
|
128
128
|
nine-table-sheet {
|
|
129
129
|
display: none;
|
|
@@ -321,7 +321,7 @@
|
|
|
321
321
|
<nine-table-hscrollbar></nine-table-hscrollbar>
|
|
322
322
|
<div class='ng-scroll-edge'></div>
|
|
323
323
|
</div>
|
|
324
|
-
`},"#render"));
|
|
324
|
+
`},"#render"));y(this,ft,new Te(this)),y(this,de,this.getRootNode().host)}connectedCallback(){t(this,ge).call(this)}get selection(){return t(this,zt)}get navigation(){return t(this,Bt)}disconnectedCallback(){this.innerHTML="",m.log("NineTableSheet destroyed.")}};de=new WeakMap,dt=new WeakMap,ft=new WeakMap,zt=new WeakMap,Bt=new WeakMap,fe=new WeakMap,ue=new WeakMap,wt=new WeakMap,ge=new WeakMap,be=new WeakMap,h(Pt,"NineTableSheet"),T(Pt,"SCROLLBAR_SIZE",16);let Jt=Pt;customElements.get("nine-table-sheet")||customElements.define("nine-table-sheet",Jt);const Je=class Je extends HTMLElement{constructor(){super();d(this,pe,h(()=>{var e;(e=this.querySelector(".nine-tab-bar"))==null||e.addEventListener("click",s=>{var r;const o=s.ctrlKey||s.metaKey||s.shiftKey,i=parseInt((r=s.target.closest(".nine-tab-item"))==null?void 0:r.dataset.index,10);t(this,Ft).call(this,i,o)}),t(this,Ft).call(this,0,!1)},"#init"));d(this,Ft,h((e,s=!1)=>{const o=h(()=>{const g=Array.from(this.querySelectorAll("nine-table-sheet"));Array.from(this.querySelectorAll("nine-splitter")).forEach(u=>u.style.setProperty("display","none"));const b=g.filter(u=>u.classList.contains("active"));b.length<2||b.forEach(u=>{const p=parseInt(u.getAttribute("data-index"),10),w=this.querySelector(`nine-splitter[data-split-index="${p}"]`),S=g[p+1];w&&S&&S.classList.contains("active")&&w.style.setProperty("display","flex")})},"updateSplitters"),i=this.querySelector(".nine-tab-bar"),r=this.querySelector("nine-table-sheets-body"),a=i.querySelectorAll(".nine-tab-item"),c=r.querySelectorAll("nine-table-sheet");if(!a[e])return;if(!s)a.forEach((g,f)=>{g.classList.toggle("active",f===e)}),c.forEach((g,f)=>{const b=f===e;g.classList.toggle("active",b),g.style.flex=b?"1 1 100%":""});else{const g=a[e],f=i.querySelectorAll(".nine-tab-item.active");if(g.classList.contains("active")&&f.length<=1)return;g.classList.toggle("active");const b=r.querySelector(`nine-table-sheet[data-index="${e}"]`);b&&(b.classList.toggle("active"),b.classList.contains("active")||(b.style.flex=""))}const l=r.querySelectorAll("nine-table-sheet.active");l==null||l.forEach(g=>{g.style.flex=l.length>1?"1 1 0%":"1 1 100%"}),o()},"#switchSheet"))}connectedCallback(){t(this,pe).call(this)}};pe=new WeakMap,Ft=new WeakMap,h(Je,"NineTableSheets");let Me=Je;customElements.get("nine-table-sheets")||customElements.define("nine-table-sheets",Me);const Qe=class Qe{constructor(n){d(this,O);d(this,ye,h(()=>{t(this,me).call(this),new ResizeObserver(n=>{for(let e of n)t(this,O).getAttribute("auto-height")==="true"&&t(this,jt).call(this)}).observe(t(this,O))},"#init"));d(this,jt,h(()=>{var c,l;const n=Array.from(t(this,O).shadowRoot.querySelectorAll("nine-table-sheet.active"));if(n.length===0)return;const e=parseInt(t(this,O).getAttribute("max-display-row"),10)||10,s=Math.max(...n.map(g=>g.getRowHeight())),o=(c=t(this,O).shadowRoot.querySelector("nine-table-header"))==null?void 0:c.getBoundingClientRect().height,i=(l=t(this,O).shadowRoot.querySelector("nine-table-sheets-footer"))==null?void 0:l.getBoundingClientRect().height,r=Jt.SCROLLBAR_SIZE,a=e*s+o+i+r;t(this,O).style.height=`${a}px`},"#applyAutoHeight"));d(this,me,h(()=>{const e=Array.from(t(this,O).children).filter(c=>c.tagName==="TABLE"),s=t(this,O).getAttribute("auto-height")==="true",o=e.length,i=e.map((c,l)=>{const f=`<nine-table-sheet class="${l===0?"active":""}" data-index="${l}"></nine-table-sheet>`,b=l<o-1?`<nine-splitter class="h" data-split-index="${l}"></nine-splitter>`:"";return f+b}).join(""),r=e.map((c,l)=>`<div class="nine-tab-item ${l===0?"active":""}" data-index="${l}">Sheet ${l+1}</div>`).join("");t(this,O).shadowRoot.innerHTML=`
|
|
325
325
|
<style>
|
|
326
326
|
:host {
|
|
327
327
|
display: flex;
|
|
@@ -432,19 +432,19 @@
|
|
|
432
432
|
<nine-table-body>
|
|
433
433
|
<nine-table-summary></nine-table-summary>
|
|
434
434
|
<nine-table-sheets>
|
|
435
|
-
<nine-table-sheets-body>${
|
|
435
|
+
<nine-table-sheets-body>${i}</nine-table-sheets-body>
|
|
436
436
|
<nine-table-sheets-footer>
|
|
437
|
-
<div class="nine-tab-bar">${
|
|
437
|
+
<div class="nine-tab-bar">${r}</div>
|
|
438
438
|
<div class="sheets-counter">Total : <span id="row-count">0</span></div>
|
|
439
439
|
</nine-table-sheets-footer>
|
|
440
440
|
</nine-table-sheets>
|
|
441
441
|
<nine-table-analysis></nine-table-analysis>
|
|
442
442
|
</nine-table-body>
|
|
443
443
|
<nine-table-footer></nine-table-footer>
|
|
444
|
-
`,t(this,D).shadowRoot.querySelector("nine-table-sheets").classList.add("nodata");const a=t(this,D).shadowRoot.querySelectorAll("nine-table-sheet");a==null||a.forEach((c,l)=>{e[l]&&setTimeout(()=>{c.generate(e[l]),s&&t(this,Pt).call(this)})})},"#render"));p(this,D,n),t(this,be).call(this)}};D=new WeakMap,be=new WeakMap,Pt=new WeakMap,pe=new WeakMap,h(Ke,"LayoutManager");let Le=Ke;const Ze=class Ze{constructor(n){f(this,Ft);f(this,mt,-1);C(this,"count",h(()=>t(this,Ft).rawRecords.length,"count"));p(this,Ft,n)}get at(){return t(this,mt)}set at(n){p(this,mt,parseInt(n,10)),body&&!body.querySelector(`tbody.bindable tr[data-row="${t(this,mt)}"]`)&&setTimeout(()=>{})}};Ft=new WeakMap,mt=new WeakMap,h(Ze,"ngRow");let Ie=Ze;const B=class B{constructor(n,e){f(this,W);f(this,I);f(this,z,[]);f(this,xt,[]);f(this,ye,0);f(this,Z,[]);f(this,me,h(()=>{p(this,Z,[]);const n=t(this,W).template||[];Array.from(n).forEach(e=>{var s;t(this,Z).push(((s=e.getBoundingClientRect)==null?void 0:s.call(e).height)||24)}),(t(this,I).rawRecords||[]).forEach(e=>{e.__ng||(e.__ng=t(this,jt).call(this)),e.__ng.height=t(this,Z).slice()})},"#initialize"));f(this,ht,h(()=>{const n=t(this,W).shadowRoot.querySelector("nine-table-sheets");n==null||n.classList.toggle("nodata",this.length===0),t(this,W).shadowRoot.querySelectorAll("nine-table-sheet").forEach(e=>{e.invalidate()})},"#invalidate"));C(this,"get",h((n,e)=>{var o;const s=this.getValidData();if(!s||s.length<=0)return;if(n==null)return t(this,wt).call(this,s);if(n<0||n>=s.length)return null;const r=typeof((o=t(this,W).fields)==null?void 0:o.get)=="function"?t(this,W).fields.get():[];if(e!=null){const i=r.indexOf(e);return i>=0?s[n].v[i]:null}return t(this,wt).call(this,s[n])},"get"));C(this,"set",h(n=>{this.clear(),this.add(n,!1),t(this,ht).call(this)},"set"));f(this,jt,h(()=>({rowState:B.ROW_STATE.EMPTY,deleted:!1,filtered:!1,height:t(this,Z).slice(),o:{},c:{},_:[0,0,0,0,B.ROW_STATE.EMPTY,!1,!1,!0,!1,!0,!0,!1,t(this,Z).slice(),-1,{},{}]}),"#getDefaultMeta"));C(this,"reset",h(()=>{p(this,z,[]),p(this,xt,[]),t(this,ht).call(this)},"reset"));C(this,"clear",h(()=>{var n;t(this,I).rawRecords=[],p(this,z,[]),p(this,xt,[]),(n=t(this,I).viewRecords)!=null&&n.reset&&t(this,I).viewRecords.reset()},"clear"));f(this,xe,h(n=>{var r;Array.isArray(n)||(n=[n]);const e=typeof((r=t(this,W).fields)==null?void 0:r.get)=="function"?t(this,W).fields.get():Object.keys(n[0]||{}),s=[];return n.forEach(o=>{const i={v:[]};e.forEach(a=>{i.v.push(o[a]!==void 0&&o[a]!==null?o[a]:"")}),s.push(i)}),s},"#json2Array"));f(this,we,h(n=>(Array.isArray(n)||(n=[n]),n.forEach(e=>{e.__ng=t(this,jt).call(this),e.__ng.rowid=this.nextId,e.__ng.rowState=B.ROW_STATE.INSERT,e.__ng._[0]=e.__ng.rowid}),n),"#defaultInsert"));C(this,"add",h((n,e=!0)=>{n===void 0&&(n={});const s=t(this,xe).call(this,n);t(this,I).rawRecords=t(this,I).rawRecords.concat(t(this,we).call(this,s)),this.resetRecords();const r=this.count()-1;return e||s.forEach((o,i)=>{const a=t(this,I).rawRecords[r-i];a&&(a.__ng.rowState=B.ROW_STATE.EMPTY)}),t(this,ht).call(this),r},"add"));C(this,"delete",h(n=>{let e=[];Array.isArray(n)?e=n:typeof n>"u"?e=[t(this,I).host.row.at]:e=[parseInt(n,10)],e.sort((s,r)=>r-s).forEach(s=>{if(t(this,z)[s]){const r=t(this,z)[s].__ng.rowid;t(this,z)[s].__ng.rowState===B.ROW_STATE.INSERT?t(this,I).rawRecords=t(this,I).rawRecords.filter(o=>o.__ng.rowid!==r):t(this,I).rawRecords.forEach(o=>{o.__ng.rowid===r&&(o.__ng.deleted=!0,o.__ng.rowState=B.ROW_STATE.DELETE)})}}),this.resetRecords(),t(this,ht).call(this)},"delete"));C(this,"setValue",h((n,e,s)=>{var c;n=parseInt(n,10);const o=(typeof((c=t(this,W).fields)==null?void 0:c.get)=="function"?t(this,W).fields.get():[]).indexOf(e);if(o<0)return;const i=this.getValidData()[n];if(!i)return;const a=i.v[o];a!==s&&i.__ng.rowState!==B.ROW_STATE.INSERT&&(i.__ng.o.hasOwnProperty(e)||(i.__ng.o[e]=a),i.__ng.rowState=B.ROW_STATE.UPDATE),i.v[o]=s},"setValue"));C(this,"resetRecords",h(()=>{p(this,xt,t(this,I).rawRecords.filter(n=>!n.__ng.deleted)),p(this,z,t(this,I).rawRecords.filter(n=>!n.__ng.deleted&&!n.__ng.filtered)),t(this,I).rawRecords.forEach((n,e)=>{n.__ng.rowidx=e}),t(this,z).forEach((n,e)=>{n.__ng.i=e})},"resetRecords"));C(this,"getValidData",h(()=>(t(this,z).length===0&&t(this,I).rawRecords.length>0&&this.resetRecords(),t(this,z)),"getValidData"));f(this,wt,h(n=>{var i;if(!n)return n;const e=!Array.isArray(n),s=e?[n]:n,r=typeof((i=t(this,W).fields)==null?void 0:i.get)=="function"?t(this,W).fields.get():[],o=s.filter(a=>!a.__ng.deleted).map(a=>{const c={};return r.forEach((l,d)=>{c[l]=a.v?a.v[d]:a[l]}),c.__ng=a.__ng,c});return e?o[0]:o},"#conv"));C(this,"count",h(()=>this.getValidData().length,"count"));p(this,W,n),p(this,I,e),t(this,me).call(this)}get source(){return t(this,wt).call(this,t(this,I).rawRecords)}set source(n){this.clear(),this.add(n,!1)}get nextId(){return++ys(this,ye)._}get count(){return t(this,z).length}get length(){return t(this,z).length}getRowCount(){return this.length}};W=new WeakMap,I=new WeakMap,z=new WeakMap,xt=new WeakMap,ye=new WeakMap,Z=new WeakMap,me=new WeakMap,ht=new WeakMap,jt=new WeakMap,xe=new WeakMap,we=new WeakMap,wt=new WeakMap,h(B,"ngData"),C(B,"ROW_STATE",{EMPTY:"EMPTY",NORMAL:"NORMAL",INSERT:"INSERT",UPDATE:"UPDATE",DELETE:"DELETE"});let He=B;const Je=class Je{constructor(n){f(this,dt);p(this,dt,n),this.row=new Ie(this),this.data=new He(t(this,dt),this),this.rawRecords=[],this.viewRecords=[],this.delRecords=[],this.pageCnt=25,this.viewRecords.reset=()=>{var e;(e=t(this,dt).view)!=null&&e.redraw&&t(this,dt).view.redraw()},this.setDataSource=e=>{this.data&&this.data.reset(),this.rawRecords=[],this.viewRecords=[],this.delRecords=[],this.data.set(e||[])},this.getRowState=e=>{var r,o;const s=parseInt(e,10);if(!(s>=this.data.count()))return(o=(r=this.data.getValidData()[s])==null?void 0:r.__ng)==null?void 0:o.rowState},this.getRowPosition=()=>this.row.at,this.setRowPosition=e=>{this.row.at=e},this.scrollTo_V1=e=>(e<0&&(e=0),e>=this.rawRecords.length&&(e=this.rawRecords.length-1),this.viewRecords.rawIndex=e,this.viewRecords.reset&&this.viewRecords.reset(),!(e<=0||e>=this.rawRecords.length-1)),this.getColumn=(e,s)=>this.data.get(e,s),this.setColumn=(e,s,r)=>{e=parseInt(e,10),this.data.setValue(e,s,r)},this.setDataSource([])}};dt=new WeakMap,h(Je,"ngDataManager");let Me=Je;const Qe=class Qe{constructor(n){f(this,vt);f(this,M,[]);C(this,"add",h((n,e="string")=>{n.forEach(s=>{t(this,M).some(r=>r.name===s)||t(this,M).push({name:s,type:e})}),t(this,Yt).call(this)},"add"));f(this,Yt,h(()=>{const n=new Map;t(this,M).forEach(e=>{n.set(e.name,e.type)}),p(this,M,Array.from(n,([e,s])=>({name:e,type:s}))),p(this,M,t(this,M).filter(e=>e.name!==""&&e.name!=="__ng")),t(this,M).sort((e,s)=>e.name.length<s.name.length?1:-1)},"#adjust"));f(this,ve,h(()=>{p(this,M,[]),y.log(t(this,vt).querySelectorAll("table"));const n=Array.from(t(this,vt).querySelectorAll("table"));if(!(!n||n.length===0)){for(const e of n)y.log(e),$("[data-bind]",e).each((s,r)=>{const o=r.dataset.bind,i=r.getAttribute("data-type")||"string";o&&t(this,M).push({name:o,type:i})}),["data-expr","background-color","color","tooltip","visible","readonly","enable-button","enable-check","class-expr","icon-color","icon-src"].forEach(s=>{$(`[${s}]`,e).each((r,o)=>{var i=o.getAttribute(s);if(i.indexOf("data.")<0){const a=i.search(/[(]/g);if(a>0)try{i=String(window[i.substring(0,a).trim()])}catch{i=""}}i.split("data.").forEach(a=>{if(a.trim()!=""){const c=a.search(/[^_A-Za-z0-9]/g);let l="";c>=0?l=a.substring(0,c):i.startsWith("data.")&&(l=a.replace("data.","")),l&&t(this,M).push({name:l,type:"string"})}})})});t(this,Yt).call(this)}},"#init"));p(this,vt,n),t(this,ve).call(this)}get(){return t(this,M).map(n=>n.name)}getFields(){return t(this,M)}getType(n){const e=t(this,M).find(s=>s.name===n);return e?e.type:"string"}indexOf(n){return t(this,M).findIndex(e=>e.name===n)}includes(n){return t(this,M).some(e=>e.name===n)}};vt=new WeakMap,M=new WeakMap,Yt=new WeakMap,ve=new WeakMap,h(Qe,"ngFields");let $e=Qe;const ts=class ts extends HTMLElement{constructor(){super();f(this,ft);f(this,Se);f(this,Ae,h(()=>{this.fields=new $e(this),p(this,Se,new Le(this)),y.log("NineTable connected."),this.dispatchEvent(new CustomEvent("load",{bubbles:!0,detail:{target:this}}))},"#init"));this.attachShadow({mode:"open"}),p(this,ft,new Me(this))}connectedCallback(){t(this,Ae).call(this)}disconnectedCallback(){y.log("NineTable disconnected.")}get data(){return t(this,ft).data}get row(){return t(this,ft).row}get dataManager(){return t(this,ft)}};ft=new WeakMap,Se=new WeakMap,Ae=new WeakMap,h(ts,"NineTable");let Ne=ts;customElements.get("nine-table")||customElements.define("nine-table",Ne);const Ut=class Ut extends HTMLElement{constructor(){super()}applyBaseStyle(){this.constructor.name}connectedCallback(){}};h(Ut,"BasicCellElement"),C(Ut,"_styleCache",new Map),C(Ut,"_customStyleCache",new Map);let _e=Ut;const is=class is extends _e{constructor(){super();f(this,H);f(this,Vt);f(this,w);f(this,es);f(this,ss);f(this,ns);f(this,rs);C(this,"getDisplayText",h(e=>{if(t(this,w))if(t(this,w).closest("tbody")){const s=t(this,w).closest("tr").data,r=parseInt(t(this,w).dataset.row);if(!s)return"";if(ninegrid.isNull(t(this,w).dataset.expr)){if(!ninegrid.isNull(t(this,w).dataset.bind))return s[t(this,w).dataset.bind]||ninegrid.nvl(e,"")}else try{return this.getExprValue(t(this,w).dataset.expr,s,r,t(this,w))}catch{console.error(t(this,w).dataset.expr,s,t(this,w).dataset.row)}return ninegrid.nvl(e,"")}else try{return t(this,H).exprFunction(t(this,w).dataset.expr).call(this,null,-1,t(this,H).data)}catch{}},"getDisplayText"));f(this,os,h(()=>{if(!(!t(this,H)||!t(this,H).template||!t(this,w).closest("tbody.bindable"))){var e=ninegrid.j.querySelectorAll(t(this,w)).attr("suppress");if(e&&(e=parseInt(e)),e&&!isNaN(e)){var s=t(this,w).closest("tr"),r=[];$("th,td",s).each((x,k)=>{var q=ninegrid.j.querySelectorAll(k).attr("suppress");q&&k.dataset.row&&(q=parseInt(q),!isNaN(q)&&q<=e&&r.push(q))}),r.sort();var o=!1;if(parseInt(s.sectionRowIndex/t(this,H).template.length)>0)for(var i of r){if(i>e)break;var a=parseInt(t(this,w).dataset.row),c=a-1,l=t(this,w).closest("tr").data,d=t(this,H).data.get(c);t(this,w).dataset.matrixRow;var u=t(this,H).body.querySelector(`tbody.bindable [suppress="${i}"][data-matrix-row="${t(this,w).dataset.matrixRow}"]`),b=u.dataset.expr?this.getExprValue(u.dataset.expr,l,a):l[u.dataset.bind],g=u.dataset.expr?this.getExprValue(u.dataset.expr,d,c):d[u.dataset.bind];if(b!=g){o=!0;break}}else o=!0;o?ninegrid.j.querySelectorAll(t(this,w)).removeClass("suppress"):ninegrid.j.querySelectorAll(t(this,w)).addClass("suppress"),ninegrid.j.querySelectorAll(t(this,w)).hasClass("hidden")||(o?ninegrid.j.querySelectorAll(t(this,w)).removeClass("hidden"):ninegrid.j.querySelectorAll(t(this,w)).addClass("hidden"));var m=parseInt(t(this,w).dataset.matrixRow),v=m-1,S=t(this,H).body.querySelector(`tbody.bindable [data-col="${t(this,w).dataset.col}"][data-matrix-row="${v}"]`);$(S).hasClass("suppress")&&!ninegrid.j.querySelectorAll(t(this,w)).hasClass("suppress")?ninegrid.j.querySelectorAll(S).removeClass("last-none-suppress").addClass("last-suppress"):!$(S).hasClass("suppress")&&ninegrid.j.querySelectorAll(t(this,w)).hasClass("suppress")?ninegrid.j.querySelectorAll(S).removeClass("last-suppress").addClass("last-none-suppress"):ninegrid.j.querySelectorAll(S).removeClass("last-none-suppress").removeClass("last-suppress")}}},"#resetSuppress"));C(this,"getExprValue",h((e,s,r,o)=>{if(typeof e<"u")try{r=parseInt(r);const i=e.replace("()","");return t(this,H)[i]?t(this,H)[i].call(this,s,r,t(this,w)):t(this,H).exprFunction(e).call(this,s,r,t(this,H).data)}catch{return["NG-COMBO"].includes(this.tagName)?"":e}else return e},"getExprValue"))}connectedCallback(){super.connectedCallback(),p(this,H,this.getRootNode().host),p(this,w,this.closest("th,td")),p(this,Vt,t(this,w).closest("tr"))}get value(){var e=!t(this,H)||!t(this,H).dataManager||!t(this,w)||!t(this,w).dataset||!t(this,w).dataset.row||!t(this,w).dataset.bind?"":t(this,w).closest("tr").data[t(this,w).dataset.bind];return e??""}set value(e){var s=parseInt(t(this,w).dataset.row);const r=this.getAttribute("update-row-state")!="false";s<0?t(this,H).data.setValueNF(parseInt(t(this,w).dataset.index),t(this,w).dataset.bind,e,r):t(this,H).data.setValue(s,t(this,w).dataset.bind,e,r)}get row(){return parseInt(t(this,w).dataset.row)}get data(){return t(this,w).closest("tr").data}refresh(){const e=t(this,w).dataset.bind;return parseInt(t(this,w).dataset.row),t(this,Vt).data[e]}};H=new WeakMap,Vt=new WeakMap,w=new WeakMap,es=new WeakMap,ss=new WeakMap,ns=new WeakMap,rs=new WeakMap,os=new WeakMap,h(is,"CellElement");let De=is;const as=class as extends De{constructor(){super()}connectedCallback(){super.connectedCallback()}refresh(){return super.refresh()}};h(as,"EditableCellElement");let Oe=as;const cs=class cs extends Oe{constructor(){super();f(this,Xt);f(this,ut);f(this,St);f(this,At);f(this,Re);f(this,J);C(this,"refresh",h(()=>{const e=super.refresh();t(this,Xt).value=e},"refresh"));f(this,ls,h(e=>{if(!["Escape","Enter","Tab","Home","End","ArrowLeft","ArrowRight","PageUp","PageDown","Backspace","Delete"].includes(e.code)){if(t(this,ut)=="number"){let o=[];if(t(this,J)&&Number(t(this,J))>0&&o.push("."),t(this,At)&&Number(t(this,At))>=0&&o.push("-"),!(e.keyCode>=48&&e.keyCode<=57||e.keyCode>=96&&e.keyCode<=105)&&!o.includes(e.key)&&e.preventDefault(),t(this,J)&&(e.keyCode>=48&&e.keyCode<=57||e.keyCode>=96&&e.keyCode<=105)&&e.target.selectionStart==e.target.selectionEnd){var s=e.target.value,r=s.indexOf(".");if(r>=0){var s=s.substr(r+1,s.length);s.length>=Number(t(this,J))&&e.preventDefault()}}}t(this,St)&&ninegrid.getByteLength(e.target.value)>=Number(t(this,St))&&e.target.selectionStart==e.target.selectionEnd&&e.preventDefault()}},"#onKeyDown"));if(this.applyBaseStyle(),p(this,ut,this.getAttribute("type")||"text"),p(this,St,this.getAttribute("maxbyte")),p(this,At,this.getAttribute("min")),p(this,Re,this.getAttribute("max")),p(this,J,this.getAttribute("scale")),!["text","number"].includes(t(this,ut)))throw`invalid type : ${t(this,ut)}`}connectedCallback(){for(var e=[],s=0;s<this.attributes.length;s++)["type","maxlength","maxbyte","min","max","step","scale","text-align"].includes(this.attributes[s].name)&&e.push(`${this.attributes[s].name}="${this.attributes[s].value}"`);this.innerHTML=`
|
|
444
|
+
`,t(this,O).shadowRoot.querySelector("nine-table-sheets").classList.add("nodata");const a=t(this,O).shadowRoot.querySelectorAll("nine-table-sheet");a==null||a.forEach((c,l)=>{e[l]&&setTimeout(()=>{c.generate(e[l]),s&&t(this,jt).call(this)})})},"#render"));y(this,O,n),t(this,ye).call(this)}};O=new WeakMap,ye=new WeakMap,jt=new WeakMap,me=new WeakMap,h(Qe,"LayoutManager");let He=Qe;const ts=class ts{constructor(n){d(this,Yt);d(this,vt,-1);T(this,"count",h(()=>t(this,Yt).rawRecords.length,"count"));y(this,Yt,n)}get at(){return t(this,vt)}set at(n){y(this,vt,parseInt(n,10)),body&&!body.querySelector(`tbody.bindable tr[data-row="${t(this,vt)}"]`)&&setTimeout(()=>{})}};Yt=new WeakMap,vt=new WeakMap,h(ts,"ngRow");let $e=ts;const P=class P{constructor(n,e){d(this,W);d(this,L);d(this,z,[]);d(this,St,[]);d(this,xe,0);d(this,Q,[]);d(this,we,h(()=>{y(this,Q,[]);const n=t(this,W).template||[];Array.from(n).forEach(e=>{var s;t(this,Q).push(((s=e.getBoundingClientRect)==null?void 0:s.call(e).height)||24)}),(t(this,L).rawRecords||[]).forEach(e=>{e.__ng||(e.__ng=t(this,Ut).call(this)),e.__ng.height=t(this,Q).slice()})},"#initialize"));d(this,ut,h(()=>{const n=t(this,W).shadowRoot.querySelector("nine-table-sheets");n==null||n.classList.toggle("nodata",this.length===0),t(this,W).shadowRoot.querySelectorAll("nine-table-sheet").forEach(e=>{e.invalidate()})},"#invalidate"));T(this,"get",h((n,e)=>{var i;const s=this.getValidData();if(!s||s.length<=0)return;if(n==null)return t(this,At).call(this,s);if(n<0||n>=s.length)return null;const o=typeof((i=t(this,W).fields)==null?void 0:i.get)=="function"?t(this,W).fields.get():[];if(e!=null){const r=o.indexOf(e);return r>=0?s[n].v[r]:null}return t(this,At).call(this,s[n])},"get"));T(this,"set",h(n=>{this.clear(),this.add(n,!1),t(this,ut).call(this)},"set"));d(this,Ut,h(()=>({rowState:P.ROW_STATE.EMPTY,deleted:!1,filtered:!1,height:t(this,Q).slice(),o:{},c:{},_:[0,0,0,0,P.ROW_STATE.EMPTY,!1,!1,!0,!1,!0,!0,!1,t(this,Q).slice(),-1,{},{}]}),"#getDefaultMeta"));T(this,"reset",h(()=>{y(this,z,[]),y(this,St,[]),t(this,ut).call(this)},"reset"));T(this,"clear",h(()=>{var n;t(this,L).rawRecords=[],y(this,z,[]),y(this,St,[]),(n=t(this,L).viewRecords)!=null&&n.reset&&t(this,L).viewRecords.reset()},"clear"));d(this,ve,h(n=>{var o;Array.isArray(n)||(n=[n]);const e=typeof((o=t(this,W).fields)==null?void 0:o.get)=="function"?t(this,W).fields.get():Object.keys(n[0]||{}),s=[];return n.forEach(i=>{const r={v:[]};e.forEach(a=>{r.v.push(i[a]!==void 0&&i[a]!==null?i[a]:"")}),s.push(r)}),s},"#json2Array"));d(this,Se,h(n=>(Array.isArray(n)||(n=[n]),n.forEach(e=>{e.__ng=t(this,Ut).call(this),e.__ng.rowid=this.nextId,e.__ng.rowState=P.ROW_STATE.INSERT,e.__ng._[0]=e.__ng.rowid}),n),"#defaultInsert"));T(this,"add",h((n,e=!0)=>{n===void 0&&(n={});const s=t(this,ve).call(this,n);t(this,L).rawRecords=t(this,L).rawRecords.concat(t(this,Se).call(this,s)),this.resetRecords();const o=this.count()-1;return e||s.forEach((i,r)=>{const a=t(this,L).rawRecords[o-r];a&&(a.__ng.rowState=P.ROW_STATE.EMPTY)}),t(this,ut).call(this),o},"add"));T(this,"delete",h(n=>{let e=[];Array.isArray(n)?e=n:typeof n>"u"?e=[t(this,L).host.row.at]:e=[parseInt(n,10)],e.sort((s,o)=>o-s).forEach(s=>{if(t(this,z)[s]){const o=t(this,z)[s].__ng.rowid;t(this,z)[s].__ng.rowState===P.ROW_STATE.INSERT?t(this,L).rawRecords=t(this,L).rawRecords.filter(i=>i.__ng.rowid!==o):t(this,L).rawRecords.forEach(i=>{i.__ng.rowid===o&&(i.__ng.deleted=!0,i.__ng.rowState=P.ROW_STATE.DELETE)})}}),this.resetRecords(),t(this,ut).call(this)},"delete"));T(this,"setValue",h((n,e,s)=>{var c;n=parseInt(n,10);const i=(typeof((c=t(this,W).fields)==null?void 0:c.get)=="function"?t(this,W).fields.get():[]).indexOf(e);if(i<0)return;const r=this.getValidData()[n];if(!r)return;const a=r.v[i];a!==s&&r.__ng.rowState!==P.ROW_STATE.INSERT&&(r.__ng.o.hasOwnProperty(e)||(r.__ng.o[e]=a),r.__ng.rowState=P.ROW_STATE.UPDATE),r.v[i]=s},"setValue"));T(this,"resetRecords",h(()=>{y(this,St,t(this,L).rawRecords.filter(n=>!n.__ng.deleted)),y(this,z,t(this,L).rawRecords.filter(n=>!n.__ng.deleted&&!n.__ng.filtered)),t(this,L).rawRecords.forEach((n,e)=>{n.__ng.rowidx=e}),t(this,z).forEach((n,e)=>{n.__ng.i=e})},"resetRecords"));T(this,"getValidData",h(()=>(t(this,z).length===0&&t(this,L).rawRecords.length>0&&this.resetRecords(),t(this,z)),"getValidData"));d(this,At,h(n=>{var r;if(!n)return n;const e=!Array.isArray(n),s=e?[n]:n,o=typeof((r=t(this,W).fields)==null?void 0:r.get)=="function"?t(this,W).fields.get():[],i=s.filter(a=>!a.__ng.deleted).map(a=>{const c={};return o.forEach((l,g)=>{c[l]=a.v?a.v[g]:a[l]}),c.__ng=a.__ng,c});return e?i[0]:i},"#conv"));T(this,"count",h(()=>this.getValidData().length,"count"));y(this,W,n),y(this,L,e),t(this,we).call(this)}get source(){return t(this,At).call(this,t(this,L).rawRecords)}set source(n){this.clear(),this.add(n,!1)}get nextId(){return++ms(this,xe)._}get count(){return t(this,z).length}get length(){return t(this,z).length}getRowCount(){return this.length}};W=new WeakMap,L=new WeakMap,z=new WeakMap,St=new WeakMap,xe=new WeakMap,Q=new WeakMap,we=new WeakMap,ut=new WeakMap,Ut=new WeakMap,ve=new WeakMap,Se=new WeakMap,At=new WeakMap,h(P,"ngData"),T(P,"ROW_STATE",{EMPTY:"EMPTY",NORMAL:"NORMAL",INSERT:"INSERT",UPDATE:"UPDATE",DELETE:"DELETE"});let Ne=P;const es=class es{constructor(n){d(this,gt);y(this,gt,n),this.row=new $e(this),this.data=new Ne(t(this,gt),this),this.rawRecords=[],this.viewRecords=[],this.delRecords=[],this.pageCnt=25,this.viewRecords.reset=()=>{var e;(e=t(this,gt).view)!=null&&e.redraw&&t(this,gt).view.redraw()},this.setDataSource=e=>{this.data&&this.data.reset(),this.rawRecords=[],this.viewRecords=[],this.delRecords=[],this.data.set(e||[])},this.getRowState=e=>{var o,i;const s=parseInt(e,10);if(!(s>=this.data.count()))return(i=(o=this.data.getValidData()[s])==null?void 0:o.__ng)==null?void 0:i.rowState},this.getRowPosition=()=>this.row.at,this.setRowPosition=e=>{this.row.at=e},this.scrollTo_V1=e=>(e<0&&(e=0),e>=this.rawRecords.length&&(e=this.rawRecords.length-1),this.viewRecords.rawIndex=e,this.viewRecords.reset&&this.viewRecords.reset(),!(e<=0||e>=this.rawRecords.length-1)),this.getColumn=(e,s)=>this.data.get(e,s),this.setColumn=(e,s,o)=>{e=parseInt(e,10),this.data.setValue(e,s,o)},this.setDataSource([])}};gt=new WeakMap,h(es,"ngDataManager");let _e=es;const ss=class ss{constructor(n){d(this,Rt);d(this,H,[]);T(this,"add",h((n,e="string")=>{n.forEach(s=>{t(this,H).some(o=>o.name===s)||t(this,H).push({name:s,type:e})}),t(this,Vt).call(this)},"add"));d(this,Vt,h(()=>{const n=new Map;t(this,H).forEach(e=>{n.set(e.name,e.type)}),y(this,H,Array.from(n,([e,s])=>({name:e,type:s}))),y(this,H,t(this,H).filter(e=>e.name!==""&&e.name!=="__ng")),t(this,H).sort((e,s)=>e.name.length<s.name.length?1:-1)},"#adjust"));d(this,Ae,h(()=>{y(this,H,[]),m.log(t(this,Rt).querySelectorAll("table"));const n=Array.from(t(this,Rt).querySelectorAll("table"));if(!(!n||n.length===0)){for(const e of n)m.log(e),$("[data-bind]",e).each((s,o)=>{const i=o.dataset.bind,r=o.getAttribute("data-type")||"string";i&&t(this,H).push({name:i,type:r})}),["data-expr","background-color","color","tooltip","visible","readonly","enable-button","enable-check","class-expr","icon-color","icon-src"].forEach(s=>{$(`[${s}]`,e).each((o,i)=>{var r=i.getAttribute(s);if(r.indexOf("data.")<0){const a=r.search(/[(]/g);if(a>0)try{r=String(window[r.substring(0,a).trim()])}catch{r=""}}r.split("data.").forEach(a=>{if(a.trim()!=""){const c=a.search(/[^_A-Za-z0-9]/g);let l="";c>=0?l=a.substring(0,c):r.startsWith("data.")&&(l=a.replace("data.","")),l&&t(this,H).push({name:l,type:"string"})}})})});t(this,Vt).call(this)}},"#init"));y(this,Rt,n),t(this,Ae).call(this)}get(){return t(this,H).map(n=>n.name)}getFields(){return t(this,H)}getType(n){const e=t(this,H).find(s=>s.name===n);return e?e.type:"string"}indexOf(n){return t(this,H).findIndex(e=>e.name===n)}includes(n){return t(this,H).some(e=>e.name===n)}};Rt=new WeakMap,H=new WeakMap,Vt=new WeakMap,Ae=new WeakMap,h(ss,"ngFields");let Oe=ss;const ns=class ns extends HTMLElement{constructor(){super();d(this,bt);d(this,Re);d(this,Ee,h(()=>{this.fields=new Oe(this),y(this,Re,new He(this)),m.log("NineTable connected."),this.dispatchEvent(new CustomEvent("load",{bubbles:!0,detail:{target:this}}))},"#init"));this.attachShadow({mode:"open"}),y(this,bt,new _e(this))}connectedCallback(){t(this,Ee).call(this)}disconnectedCallback(){m.log("NineTable disconnected.")}get data(){return t(this,bt).data}get row(){return t(this,bt).row}get dataManager(){return t(this,bt)}};bt=new WeakMap,Re=new WeakMap,Ee=new WeakMap,h(ns,"NineTable");let De=ns;customElements.get("nine-table")||customElements.define("nine-table",De);const Xt=class Xt extends HTMLElement{constructor(){super()}applyBaseStyle(){this.constructor.name}connectedCallback(){}};h(Xt,"BasicCellElement"),T(Xt,"_styleCache",new Map),T(Xt,"_customStyleCache",new Map);let We=Xt;const cs=class cs extends We{constructor(){super();d(this,M);d(this,Kt);d(this,v);d(this,rs);d(this,os);d(this,is);d(this,as);T(this,"getDisplayText",h(e=>{if(t(this,v))if(t(this,v).closest("tbody")){const s=t(this,v).closest("tr").data,o=parseInt(t(this,v).dataset.row);if(!s)return"";if(ninegrid.isNull(t(this,v).dataset.expr)){if(!ninegrid.isNull(t(this,v).dataset.bind))return s[t(this,v).dataset.bind]||ninegrid.nvl(e,"")}else try{return this.getExprValue(t(this,v).dataset.expr,s,o,t(this,v))}catch{console.error(t(this,v).dataset.expr,s,t(this,v).dataset.row)}return ninegrid.nvl(e,"")}else try{return t(this,M).exprFunction(t(this,v).dataset.expr).call(this,null,-1,t(this,M).data)}catch{}},"getDisplayText"));d(this,ls,h(()=>{if(!(!t(this,M)||!t(this,M).template||!t(this,v).closest("tbody.bindable"))){var e=ninegrid.j.querySelectorAll(t(this,v)).attr("suppress");if(e&&(e=parseInt(e)),e&&!isNaN(e)){var s=t(this,v).closest("tr"),o=[];$("th,td",s).each((x,k)=>{var R=ninegrid.j.querySelectorAll(k).attr("suppress");R&&k.dataset.row&&(R=parseInt(R),!isNaN(R)&&R<=e&&o.push(R))}),o.sort();var i=!1;if(parseInt(s.sectionRowIndex/t(this,M).template.length)>0)for(var r of o){if(r>e)break;var a=parseInt(t(this,v).dataset.row),c=a-1,l=t(this,v).closest("tr").data,g=t(this,M).data.get(c);t(this,v).dataset.matrixRow;var f=t(this,M).body.querySelector(`tbody.bindable [suppress="${r}"][data-matrix-row="${t(this,v).dataset.matrixRow}"]`),b=f.dataset.expr?this.getExprValue(f.dataset.expr,l,a):l[f.dataset.bind],u=f.dataset.expr?this.getExprValue(f.dataset.expr,g,c):g[f.dataset.bind];if(b!=u){i=!0;break}}else i=!0;i?ninegrid.j.querySelectorAll(t(this,v)).removeClass("suppress"):ninegrid.j.querySelectorAll(t(this,v)).addClass("suppress"),ninegrid.j.querySelectorAll(t(this,v)).hasClass("hidden")||(i?ninegrid.j.querySelectorAll(t(this,v)).removeClass("hidden"):ninegrid.j.querySelectorAll(t(this,v)).addClass("hidden"));var p=parseInt(t(this,v).dataset.matrixRow),w=p-1,S=t(this,M).body.querySelector(`tbody.bindable [data-col="${t(this,v).dataset.col}"][data-matrix-row="${w}"]`);$(S).hasClass("suppress")&&!ninegrid.j.querySelectorAll(t(this,v)).hasClass("suppress")?ninegrid.j.querySelectorAll(S).removeClass("last-none-suppress").addClass("last-suppress"):!$(S).hasClass("suppress")&&ninegrid.j.querySelectorAll(t(this,v)).hasClass("suppress")?ninegrid.j.querySelectorAll(S).removeClass("last-suppress").addClass("last-none-suppress"):ninegrid.j.querySelectorAll(S).removeClass("last-none-suppress").removeClass("last-suppress")}}},"#resetSuppress"));T(this,"getExprValue",h((e,s,o,i)=>{if(typeof e<"u")try{o=parseInt(o);const r=e.replace("()","");return t(this,M)[r]?t(this,M)[r].call(this,s,o,t(this,v)):t(this,M).exprFunction(e).call(this,s,o,t(this,M).data)}catch{return["NG-COMBO"].includes(this.tagName)?"":e}else return e},"getExprValue"))}connectedCallback(){super.connectedCallback(),y(this,M,this.getRootNode().host),y(this,v,this.closest("th,td")),y(this,Kt,t(this,v).closest("tr"))}get value(){var e=!t(this,M)||!t(this,M).dataManager||!t(this,v)||!t(this,v).dataset||!t(this,v).dataset.row||!t(this,v).dataset.bind?"":t(this,v).closest("tr").data[t(this,v).dataset.bind];return e??""}set value(e){var s=parseInt(t(this,v).dataset.row);const o=this.getAttribute("update-row-state")!="false";s<0?t(this,M).data.setValueNF(parseInt(t(this,v).dataset.index),t(this,v).dataset.bind,e,o):t(this,M).data.setValue(s,t(this,v).dataset.bind,e,o)}get row(){return parseInt(t(this,v).dataset.row)}get data(){return t(this,v).closest("tr").data}refresh(){const e=t(this,v).dataset.bind;return parseInt(t(this,v).dataset.row),t(this,Kt).data[e]}};M=new WeakMap,Kt=new WeakMap,v=new WeakMap,rs=new WeakMap,os=new WeakMap,is=new WeakMap,as=new WeakMap,ls=new WeakMap,h(cs,"CellElement");let ze=cs;const hs=class hs extends ze{constructor(){super()}connectedCallback(){super.connectedCallback()}refresh(){return super.refresh()}};h(hs,"EditableCellElement");let Be=hs;const fs=class fs extends Be{constructor(){super();d(this,Gt);d(this,pt);d(this,Et);d(this,qt);d(this,qe);d(this,tt);T(this,"refresh",h(()=>{const e=super.refresh();t(this,Gt).value=e},"refresh"));d(this,ds,h(e=>{if(!["Escape","Enter","Tab","Home","End","ArrowLeft","ArrowRight","PageUp","PageDown","Backspace","Delete"].includes(e.code)){if(t(this,pt)=="number"){let i=[];if(t(this,tt)&&Number(t(this,tt))>0&&i.push("."),t(this,qt)&&Number(t(this,qt))>=0&&i.push("-"),!(e.keyCode>=48&&e.keyCode<=57||e.keyCode>=96&&e.keyCode<=105)&&!i.includes(e.key)&&e.preventDefault(),t(this,tt)&&(e.keyCode>=48&&e.keyCode<=57||e.keyCode>=96&&e.keyCode<=105)&&e.target.selectionStart==e.target.selectionEnd){var s=e.target.value,o=s.indexOf(".");if(o>=0){var s=s.substr(o+1,s.length);s.length>=Number(t(this,tt))&&e.preventDefault()}}}t(this,Et)&&ninegrid.getByteLength(e.target.value)>=Number(t(this,Et))&&e.target.selectionStart==e.target.selectionEnd&&e.preventDefault()}},"#onKeyDown"));if(this.applyBaseStyle(),y(this,pt,this.getAttribute("type")||"text"),y(this,Et,this.getAttribute("maxbyte")),y(this,qt,this.getAttribute("min")),y(this,qe,this.getAttribute("max")),y(this,tt,this.getAttribute("scale")),!["text","number"].includes(t(this,pt)))throw`invalid type : ${t(this,pt)}`}connectedCallback(){for(var e=[],s=0;s<this.attributes.length;s++)["type","maxlength","maxbyte","min","max","step","scale","text-align"].includes(this.attributes[s].name)&&e.push(`${this.attributes[s].name}="${this.attributes[s].value}"`);this.innerHTML=`
|
|
445
445
|
<input type="text"
|
|
446
446
|
${e.join(" ")}
|
|
447
447
|
ondragstart="return false;"
|
|
448
448
|
>
|
|
449
|
-
`,super.connectedCallback(),
|
|
449
|
+
`,super.connectedCallback(),y(this,Gt,this.querySelector("input"))}};Gt=new WeakMap,pt=new WeakMap,Et=new WeakMap,qt=new WeakMap,qe=new WeakMap,tt=new WeakMap,ds=new WeakMap,h(fs,"CellInputText");let Pe=fs;customElements.get("cell-input-text"),customElements.get("cell-input")||customElements.define("cell-input",Pe)});
|
|
450
450
|
//# sourceMappingURL=nine-table.umd.js.map
|