@guiexpert/svelte-table 4.0.24 → 4.1.56

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.
Files changed (3) hide show
  1. package/index.cjs +1 -1
  2. package/index.js +15 -27
  3. package/package.json +4 -4
package/index.cjs CHANGED
@@ -1,4 +1,4 @@
1
- "use strict";var ye=Object.defineProperty;var xe=(n,e,t)=>e in n?ye(n,e,{enumerable:!0,configurable:!0,writable:!0,value:t}):n[e]=t;var z=(n,e,t)=>(xe(n,typeof e!="symbol"?e+"":e,t),t);Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const ie=require("svelte");function O(){}function de(n){return n()}function ae(){return Object.create(null)}function G(n){n.forEach(de)}function he(n){return typeof n=="function"}function ve(n,e){return n!=n?e==e:n!==e||n&&typeof n=="object"||typeof n=="function"}function Ce(n){return Object.keys(n).length===0}function we(n,e,t){n.insertBefore(e,t||null)}function pe(n){n.parentNode&&n.parentNode.removeChild(n)}function Ee(n){return document.createElement(n)}function Ae(n,e,t){t==null?n.removeAttribute(e):n.getAttribute(e)!==t&&n.setAttribute(e,t)}function Me(n){return Array.from(n.childNodes)}function P(n,e,t,s){t==null?n.style.removeProperty(e):n.style.setProperty(e,t,s?"important":"")}let J;function $(n){J=n}const I=[],j=[];let B=[];const re=[],Te=Promise.resolve();let X=!1;function Re(){X||(X=!0,Te.then(ge))}function K(n){B.push(n)}const U=new Set;let F=0;function ge(){if(F!==0)return;const n=J;do{try{for(;F<I.length;){const e=I[F];F++,$(e),De(e.$$)}}catch(e){throw I.length=0,F=0,e}for($(null),I.length=0,F=0;j.length;)j.pop()();for(let e=0;e<B.length;e+=1){const t=B[e];U.has(t)||(U.add(t),t())}B.length=0}while(I.length);for(;re.length;)re.pop()();X=!1,U.clear(),$(n)}function De(n){if(n.fragment!==null){n.update(),G(n.before_update);const e=n.dirty;n.dirty=[-1],n.fragment&&n.fragment.p(n.ctx,e),n.after_update.forEach(K)}}function ke(n){const e=[],t=[];B.forEach(s=>n.indexOf(s)===-1?e.push(s):t.push(s)),t.forEach(s=>s()),B=e}const Fe=new Set;function Ie(n,e){n&&n.i&&(Fe.delete(n),n.i(e))}function Le(n,e,t){const{fragment:s,after_update:o}=n.$$;s&&s.m(e,t),K(()=>{const i=n.$$.on_mount.map(de).filter(he);n.$$.on_destroy?n.$$.on_destroy.push(...i):G(i),n.$$.on_mount=[]}),o.forEach(K)}function Oe(n,e){const t=n.$$;t.fragment!==null&&(ke(t.after_update),G(t.on_destroy),t.fragment&&t.fragment.d(e),t.on_destroy=t.fragment=null,t.ctx=[])}function Be(n,e){n.$$.dirty[0]===-1&&(I.push(n),Re(),n.$$.dirty.fill(0)),n.$$.dirty[e/31|0]|=1<<e%31}function Pe(n,e,t,s,o,i,a=null,l=[-1]){const r=J;$(n);const c=n.$$={fragment:null,ctx:[],props:i,update:O,not_equal:o,bound:ae(),on_mount:[],on_destroy:[],on_disconnect:[],before_update:[],after_update:[],context:new Map(e.context||(r?r.$$.context:[])),callbacks:ae(),dirty:l,skip_bound:!1,root:e.target||r.$$.root};a&&a(c.root);let h=!1;if(c.ctx=t?t(n,e.props||{},(d,p,...u)=>{const g=u.length?u[0]:p;return c.ctx&&o(c.ctx[d],c.ctx[d]=g)&&(!c.skip_bound&&c.bound[d]&&c.bound[d](g),h&&Be(n,d)),p}):[],c.update(),h=!0,G(c.before_update),c.fragment=s?s(c.ctx):!1,e.target){if(e.hydrate){const d=Me(e.target);c.fragment&&c.fragment.l(d),d.forEach(pe)}else c.fragment&&c.fragment.c();e.intro&&Ie(n.$$.fragment),Le(n,e.target,e.anchor),ge()}$(r)}class $e{constructor(){z(this,"$$");z(this,"$$set")}$destroy(){Oe(this,1),this.$destroy=O}$on(e,t){if(!he(t))return O;const s=this.$$.callbacks[e]||(this.$$.callbacks[e]=[]);return s.push(t),()=>{const o=s.indexOf(t);o!==-1&&s.splice(o,1)}}$set(e){this.$$set&&!Ce(e)&&(this.$$.skip_bound=!0,this.$$set(e),this.$$.skip_bound=!1)}}const We="4";typeof window<"u"&&(window.__svelte||(window.__svelte={v:new Set})).v.add(We);function He(n,e=500){let t=null;return function(...s){t&&window.clearTimeout(t),t=window.setTimeout(()=>{n.apply(this,s),t=null},e)}}class k{constructor(){this.alreadySet=!1}static getInstance(){return k.instance||(k.instance=new k),k.instance}setLicenseKey(e){if(e&&!this.alreadySet){const t=document.createElement("meta");t.content="license="+e,t.name="guiexperttable",document.getElementsByTagName("head")[0].appendChild(t),this.alreadySet=!0}}}function Y(n){return n&&n.type==="TreeRow"}function q(n){return n&&n.type==="AreaModelTree"}class Z{constructor(e=-1,t=-1,s=-1,o=-1,i,a,l,r=0,c=0,h=0,d=""){this.rowIndex=e,this.rowTop=t,this.columnIndex=s,this.columnLeft=o,this.areaIdent=i,this.sideIdent=a,this.originalEvent=l,this.clickCount=r,this.draggingX=c,this.draggingY=h,this.action=d}clone(){return new Z(this.rowIndex,this.rowTop,this.columnIndex,this.columnLeft,this.areaIdent,this.sideIdent,this.originalEvent,this.clickCount,this.draggingX,this.draggingY,this.action)}}class D{constructor(e=">",t="",s=[]){this.content=e,this.style=t,this.classes=s}}class fe{constructor(e=new D(">","transform: rotate(90deg) translate(66%, -66%); transform-origin: 0 0;",["gt-table-tree-arrow-expanded"]),t=new D(">","",["ge-table-tree-arrow-collapsed"]),s=new D(">","color:transparent;",["gt-table-tree-arrow-hidden"]),o=new D("↕","",["gt-table-tree-arrow-expanded-all"])){this.arrowExpanded=e,this.arrowCollapsed=t,this.arrowPlaceholder=s,this.arrowExpandCollapseAll=o}}class ue{constructor(e=new D("↑","",["ge-header-sorted-asc"]),t=new D("↓","",["ge-header-sorted-desc"]),s=new D("↑","color:transparent;",[])){this.iconAsc=e,this.iconDesc=t,this.iconPlaceholder=s}}class _e{constructor(e){this.domService=e}setStyle(e,t,s){return this.domService.setStyle(e,t,s),e}applyStyle(e,t){for(const s in t)this.domService.setStyle(e,s,t[s]);return e}applyDisplayNoneStyle(e){return this.domService.setStyle(e,"display","none"),e}applyDisplayBlockStyle(e){return this.domService.setStyle(e,"display","block"),e}applyStyleInPx(e,t){return Object.entries(t).forEach(([s,o])=>this.domService.setStyle(e,s,o+"px")),e}applyStylePosistionRelative(e){return this.domService.setStyle(e,"position","relative"),this.domService.setStyle(e,"overflow","clip"),e}applyStylePosistionAbsolute(e){return this.domService.setStyle(e,"position","absolute"),e}applyStyleFullSize(e){return this.domService.setStyle(e,"width","100%"),this.domService.setStyle(e,"height","100%"),e}applyStyleOverflowAuto(e="auto",t="auto",s){return this.domService.setStyle(s,"overflow-x",e),this.domService.setStyle(s,"overflow-y",t),s}applyStyleNoPadding(e){return this.domService.setStyle(e,"padding","0"),this.domService.setStyle(e,"margin","0"),this.domService.setStyle(e,"border","0"),e}appendRelativeChildDiv(e){const t=this.applyStylePosistionRelative(this.applyStyleFullSize(this.applyStyleNoPadding(this.domService.createElement("div"))));return this.domService.appendChild(e,t),this.applyStylePosistionAbsolute(e),{parent:e,child:t,cache:{}}}appendText(e,t){const s=this.domService.createText(t);return this.domService.appendChild(e,s),s}addClass(e,t){return e.includes(" ")?e.split(" ").forEach(s=>this.domService.addClass(t,s)):this.domService.addClass(t,e),t}removeClass(e,t){return e.includes(" ")?e.split(" ").forEach(s=>this.domService.removeClass(t,s)):this.domService.removeClass(t,e),t}addClasses(e,t){if(e)for(const s of e)this.domService.addClass(t,s);return t}setAttribute(e,t,s){return t&&s&&this.domService.setAttribute(e,t,s),e}createAreaDivWithClass(e,t,s,o){const i=this.domService.createElement("div");return this.addClass(e,i),this.domService.setAttribute(i,"data-area",s),this.domService.setAttribute(i,"data-side",o),this.domService.appendChild(t,i),i}createDivWithClass(e,t){const s=this.domService.createElement("div");return this.addClass(e,s),this.domService.appendChild(t,s),s}addRowDiv(e,t,s=-1,o,i,a=""){const l=t.index??-1,r=this.getDivOrCreateDiv(l,e);if(this.domService.addClass(r,"ge-table-row-div"),this.domService.addClass(r,`ge-table-row-div-${t.index}`),o==="body"&&i==="center"){const c=((t==null?void 0:t.index)??0)%2===0?"even":"odd";this.domService.addClass(r,`ge-table-row-${c}`)}if(this.domService.setStyle(r,"display","clip"),this.domService.setStyle(r,"position","absolute"),this.domService.setStyle(r,"left",`${t.left}px`),this.domService.setStyle(r,"top",`${t.top}px`),this.domService.setStyle(r,"width",`${t.width}px`),this.domService.setStyle(r,"height",`${t.height}px`),this.domService.setAttribute(r,"data-row-index",`${s}`),this.domService.setAttribute(r,"data-area",`${o}`),a){const c=this.domService.createText(a);this.domService.appendChild(r,c)}return this.domService.appendChild(e.child,r),r}addColumnDiv(e){const{parent:t,geo:s,rowIndex:o=-1,columnIndex:i=-1,areaIdent:a,sideIdent:l,text:r="",treeArrow:c,tableOptions:h,checkedType:d=void 0,sortState:p}=e,u=h==null?void 0:h.treeOptions,g=h==null?void 0:h.showCheckboxWihoutExtraColumn,b=this.domService.createElement("div");this.domService.addClass(b,"ge-table-col-div"),g&&this.domService.addClass(b,"ge-with-checkbox"),this.domService.addClass(b,`ge-table-col-div-${s.index}`),this.domService.setAttribute(b,"data-col-index",`${s.index}`),this.domService.setAttribute(b,"data-row-index",`${o}`),this.domService.setAttribute(b,"data-area",`${a}`);const f=((s==null?void 0:s.index)??0)%2===0?"even":"odd";if(a==="body"&&l==="center"&&this.domService.addClass(b,`ge-table-column-${f}`),this.domService.setStyle(b,"display","clip"),this.domService.setStyle(b,"position","absolute"),this.domService.setStyle(b,"left",`${s.left}px`),this.domService.setStyle(b,"top",`${s.top}px`),this.domService.setStyle(b,"width",`${s.width}px`),this.domService.setStyle(b,"height",`${s.height}px`),c&&c!=="none"&&(this.domService.addClass(b,"ge-table-col-tree"),this.addArrowDiv(b,c,u,o,i,a)),g&&i===0&&d&&this.addCheckboxToDiv(b,d,a,o),r){const m=c!=="none"&&i===0;this.addLabelDiv(b,r,m,o,i,a)}return p&&this.addSortedIcon(b,p,h==null?void 0:h.sortedOptions,i),this.domService.appendChild(t,b),b}addCheckboxToDiv(e,t,s,o){const i=this.domService.createElement("div"),a=t==="full"?"checked":"";return i.innerHTML=`
1
+ "use strict";var ye=Object.defineProperty;var xe=(n,e,t)=>e in n?ye(n,e,{enumerable:!0,configurable:!0,writable:!0,value:t}):n[e]=t;var z=(n,e,t)=>xe(n,typeof e!="symbol"?e+"":e,t);Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const ie=require("svelte");function O(){}function de(n){return n()}function ae(){return Object.create(null)}function G(n){n.forEach(de)}function he(n){return typeof n=="function"}function ve(n,e){return n!=n?e==e:n!==e||n&&typeof n=="object"||typeof n=="function"}function Ce(n){return Object.keys(n).length===0}function we(n,e,t){n.insertBefore(e,t||null)}function pe(n){n.parentNode&&n.parentNode.removeChild(n)}function Ee(n){return document.createElement(n)}function Ae(n,e,t){n.getAttribute(e)!==t&&n.setAttribute(e,t)}function Me(n){return Array.from(n.childNodes)}function P(n,e,t,s){t==null?n.style.removeProperty(e):n.style.setProperty(e,t,"")}let J;function $(n){J=n}const I=[],j=[];let B=[];const re=[],Te=Promise.resolve();let X=!1;function Re(){X||(X=!0,Te.then(ge))}function K(n){B.push(n)}const U=new Set;let F=0;function ge(){if(F!==0)return;const n=J;do{try{for(;F<I.length;){const e=I[F];F++,$(e),De(e.$$)}}catch(e){throw I.length=0,F=0,e}for($(null),I.length=0,F=0;j.length;)j.pop()();for(let e=0;e<B.length;e+=1){const t=B[e];U.has(t)||(U.add(t),t())}B.length=0}while(I.length);for(;re.length;)re.pop()();X=!1,U.clear(),$(n)}function De(n){if(n.fragment!==null){n.update(),G(n.before_update);const e=n.dirty;n.dirty=[-1],n.fragment&&n.fragment.p(n.ctx,e),n.after_update.forEach(K)}}function ke(n){const e=[],t=[];B.forEach(s=>n.indexOf(s)===-1?e.push(s):t.push(s)),t.forEach(s=>s()),B=e}const Fe=new Set;function Ie(n,e){n&&n.i&&(Fe.delete(n),n.i(e))}function Le(n,e,t){const{fragment:s,after_update:o}=n.$$;s&&s.m(e,t),K(()=>{const i=n.$$.on_mount.map(de).filter(he);n.$$.on_destroy?n.$$.on_destroy.push(...i):G(i),n.$$.on_mount=[]}),o.forEach(K)}function Oe(n,e){const t=n.$$;t.fragment!==null&&(ke(t.after_update),G(t.on_destroy),t.fragment&&t.fragment.d(e),t.on_destroy=t.fragment=null,t.ctx=[])}function Be(n,e){n.$$.dirty[0]===-1&&(I.push(n),Re(),n.$$.dirty.fill(0)),n.$$.dirty[e/31|0]|=1<<e%31}function Pe(n,e,t,s,o,i,a=null,l=[-1]){const r=J;$(n);const c=n.$$={fragment:null,ctx:[],props:i,update:O,not_equal:o,bound:ae(),on_mount:[],on_destroy:[],on_disconnect:[],before_update:[],after_update:[],context:new Map(e.context||(r?r.$$.context:[])),callbacks:ae(),dirty:l,skip_bound:!1,root:e.target||r.$$.root};a&&a(c.root);let h=!1;if(c.ctx=t?t(n,e.props||{},(d,p,...u)=>{const g=u.length?u[0]:p;return c.ctx&&o(c.ctx[d],c.ctx[d]=g)&&(!c.skip_bound&&c.bound[d]&&c.bound[d](g),h&&Be(n,d)),p}):[],c.update(),h=!0,G(c.before_update),c.fragment=s?s(c.ctx):!1,e.target){if(e.hydrate){const d=Me(e.target);c.fragment&&c.fragment.l(d),d.forEach(pe)}else c.fragment&&c.fragment.c();e.intro&&Ie(n.$$.fragment),Le(n,e.target,e.anchor),ge()}$(r)}class $e{constructor(){z(this,"$$");z(this,"$$set")}$destroy(){Oe(this,1),this.$destroy=O}$on(e,t){if(!he(t))return O;const s=this.$$.callbacks[e]||(this.$$.callbacks[e]=[]);return s.push(t),()=>{const o=s.indexOf(t);o!==-1&&s.splice(o,1)}}$set(e){this.$$set&&!Ce(e)&&(this.$$.skip_bound=!0,this.$$set(e),this.$$.skip_bound=!1)}}const We="4";typeof window<"u"&&(window.__svelte||(window.__svelte={v:new Set})).v.add(We);function He(n,e=500){let t=null;return function(...s){t&&window.clearTimeout(t),t=window.setTimeout(()=>{n.apply(this,s),t=null},e)}}class k{constructor(){this.alreadySet=!1}static getInstance(){return k.instance||(k.instance=new k),k.instance}setLicenseKey(e){if(e&&!this.alreadySet){const t=document.createElement("meta");t.content="license="+e,t.name="guiexperttable",document.getElementsByTagName("head")[0].appendChild(t),this.alreadySet=!0}}}function Y(n){return n&&n.type==="TreeRow"}function q(n){return n&&n.type==="AreaModelTree"}class Z{constructor(e=-1,t=-1,s=-1,o=-1,i,a,l,r=0,c=0,h=0,d=""){this.rowIndex=e,this.rowTop=t,this.columnIndex=s,this.columnLeft=o,this.areaIdent=i,this.sideIdent=a,this.originalEvent=l,this.clickCount=r,this.draggingX=c,this.draggingY=h,this.action=d}clone(){return new Z(this.rowIndex,this.rowTop,this.columnIndex,this.columnLeft,this.areaIdent,this.sideIdent,this.originalEvent,this.clickCount,this.draggingX,this.draggingY,this.action)}}class D{constructor(e=">",t="",s=[]){this.content=e,this.style=t,this.classes=s}}class fe{constructor(e=new D(">","transform: rotate(90deg) translate(66%, -66%); transform-origin: 0 0;",["gt-table-tree-arrow-expanded"]),t=new D(">","",["ge-table-tree-arrow-collapsed"]),s=new D(">","color:transparent;",["gt-table-tree-arrow-hidden"]),o=new D("↕","",["gt-table-tree-arrow-expanded-all"])){this.arrowExpanded=e,this.arrowCollapsed=t,this.arrowPlaceholder=s,this.arrowExpandCollapseAll=o}}class ue{constructor(e=new D("↑","",["ge-header-sorted-asc"]),t=new D("↓","",["ge-header-sorted-desc"]),s=new D("↑","color:transparent;",[])){this.iconAsc=e,this.iconDesc=t,this.iconPlaceholder=s}}class _e{constructor(e){this.domService=e}setStyle(e,t,s){return this.domService.setStyle(e,t,s),e}applyStyle(e,t){for(const s in t)this.domService.setStyle(e,s,t[s]);return e}applyDisplayNoneStyle(e){return this.domService.setStyle(e,"display","none"),e}applyDisplayBlockStyle(e){return this.domService.setStyle(e,"display","block"),e}applyStyleInPx(e,t){return Object.entries(t).forEach(([s,o])=>this.domService.setStyle(e,s,o+"px")),e}applyStylePosistionRelative(e){return this.domService.setStyle(e,"position","relative"),this.domService.setStyle(e,"overflow","clip"),e}applyStylePosistionAbsolute(e){return this.domService.setStyle(e,"position","absolute"),e}applyStyleFullSize(e){return this.domService.setStyle(e,"width","100%"),this.domService.setStyle(e,"height","100%"),e}applyStyleOverflowAuto(e="auto",t="auto",s){return this.domService.setStyle(s,"overflow-x",e),this.domService.setStyle(s,"overflow-y",t),s}applyStyleNoPadding(e){return this.domService.setStyle(e,"padding","0"),this.domService.setStyle(e,"margin","0"),this.domService.setStyle(e,"border","0"),e}appendRelativeChildDiv(e){const t=this.applyStylePosistionRelative(this.applyStyleFullSize(this.applyStyleNoPadding(this.domService.createElement("div"))));return this.domService.appendChild(e,t),this.applyStylePosistionAbsolute(e),{parent:e,child:t,cache:{}}}appendText(e,t){const s=this.domService.createText(t);return this.domService.appendChild(e,s),s}addClass(e,t){return e.includes(" ")?e.split(" ").forEach(s=>this.domService.addClass(t,s)):this.domService.addClass(t,e),t}removeClass(e,t){return e.includes(" ")?e.split(" ").forEach(s=>this.domService.removeClass(t,s)):this.domService.removeClass(t,e),t}addClasses(e,t){if(e)for(const s of e)this.domService.addClass(t,s);return t}setAttribute(e,t,s){return t&&s&&this.domService.setAttribute(e,t,s),e}createAreaDivWithClass(e,t,s,o){const i=this.domService.createElement("div");return this.addClass(e,i),this.domService.setAttribute(i,"data-area",s),this.domService.setAttribute(i,"data-side",o),this.domService.appendChild(t,i),i}createDivWithClass(e,t){const s=this.domService.createElement("div");return this.addClass(e,s),this.domService.appendChild(t,s),s}addRowDiv(e,t,s=-1,o,i,a=""){const l=t.index??-1,r=this.getDivOrCreateDiv(l,e);if(this.domService.addClass(r,"ge-table-row-div"),this.domService.addClass(r,`ge-table-row-div-${t.index}`),o==="body"&&i==="center"){const c=((t==null?void 0:t.index)??0)%2===0?"even":"odd";this.domService.addClass(r,`ge-table-row-${c}`)}if(this.domService.setStyle(r,"display","clip"),this.domService.setStyle(r,"position","absolute"),this.domService.setStyle(r,"left",`${t.left}px`),this.domService.setStyle(r,"top",`${t.top}px`),this.domService.setStyle(r,"width",`${t.width}px`),this.domService.setStyle(r,"height",`${t.height}px`),this.domService.setAttribute(r,"data-row-index",`${s}`),this.domService.setAttribute(r,"data-area",`${o}`),a){const c=this.domService.createText(a);this.domService.appendChild(r,c)}return this.domService.appendChild(e.child,r),r}addColumnDiv(e){const{parent:t,geo:s,rowIndex:o=-1,columnIndex:i=-1,areaIdent:a,sideIdent:l,text:r="",treeArrow:c,tableOptions:h,checkedType:d=void 0,sortState:p}=e,u=h==null?void 0:h.treeOptions,g=h==null?void 0:h.showCheckboxWihoutExtraColumn,b=this.domService.createElement("div");this.domService.addClass(b,"ge-table-col-div"),g&&this.domService.addClass(b,"ge-with-checkbox"),this.domService.addClass(b,`ge-table-col-div-${s.index}`),this.domService.setAttribute(b,"data-col-index",`${s.index}`),this.domService.setAttribute(b,"data-row-index",`${o}`),this.domService.setAttribute(b,"data-area",`${a}`);const f=((s==null?void 0:s.index)??0)%2===0?"even":"odd";if(a==="body"&&l==="center"&&this.domService.addClass(b,`ge-table-column-${f}`),this.domService.setStyle(b,"display","clip"),this.domService.setStyle(b,"position","absolute"),this.domService.setStyle(b,"left",`${s.left}px`),this.domService.setStyle(b,"top",`${s.top}px`),this.domService.setStyle(b,"width",`${s.width}px`),this.domService.setStyle(b,"height",`${s.height}px`),c&&c!=="none"&&(this.domService.addClass(b,"ge-table-col-tree"),this.addArrowDiv(b,c,u,o,i,a)),g&&i===0&&d&&this.addCheckboxToDiv(b,d,a,o),r){const m=c!=="none"&&i===0;this.addLabelDiv(b,r,m,o,i,a)}return p&&this.addSortedIcon(b,p,h==null?void 0:h.sortedOptions,i),this.domService.appendChild(t,b),b}addCheckboxToDiv(e,t,s,o){const i=this.domService.createElement("div"),a=t==="full"?"checked":"";return i.innerHTML=`
2
2
  <input
3
3
  type="checkbox"
4
4
  data-area="${s}"
package/index.js CHANGED
@@ -1,6 +1,6 @@
1
1
  var Se = Object.defineProperty;
2
2
  var ye = (n, e, t) => e in n ? Se(n, e, { enumerable: !0, configurable: !0, writable: !0, value: t }) : n[e] = t;
3
- var z = (n, e, t) => (ye(n, typeof e != "symbol" ? e + "" : e, t), t);
3
+ var z = (n, e, t) => ye(n, typeof e != "symbol" ? e + "" : e, t);
4
4
  import { createEventDispatcher as xe, onMount as ve } from "svelte";
5
5
  function O() {
6
6
  }
@@ -32,13 +32,13 @@ function Ae(n) {
32
32
  return document.createElement(n);
33
33
  }
34
34
  function Me(n, e, t) {
35
- t == null ? n.removeAttribute(e) : n.getAttribute(e) !== t && n.setAttribute(e, t);
35
+ n.getAttribute(e) !== t && n.setAttribute(e, t);
36
36
  }
37
37
  function Te(n) {
38
38
  return Array.from(n.childNodes);
39
39
  }
40
40
  function P(n, e, t, s) {
41
- t == null ? n.style.removeProperty(e) : n.style.setProperty(e, t, s ? "important" : "");
41
+ t == null ? n.style.removeProperty(e) : n.style.setProperty(e, t, "");
42
42
  }
43
43
  let q;
44
44
  function $(n) {
@@ -69,8 +69,7 @@ function pe() {
69
69
  } catch (e) {
70
70
  throw I.length = 0, F = 0, e;
71
71
  }
72
- for ($(null), I.length = 0, F = 0; j.length; )
73
- j.pop()();
72
+ for ($(null), I.length = 0, F = 0; j.length; ) j.pop()();
74
73
  for (let e = 0; e < B.length; e += 1) {
75
74
  const t = B[e];
76
75
  U.has(t) || (U.add(t), t());
@@ -1435,26 +1434,17 @@ class Ze extends Ye {
1435
1434
  */
1436
1435
  getArea(e, t) {
1437
1436
  if (e === "header") {
1438
- if (t === "west")
1439
- return this.areaHeaderWest;
1440
- if (t === "center")
1441
- return this.areaHeaderCenter;
1442
- if (t === "east")
1443
- return this.areaHeaderEast;
1437
+ if (t === "west") return this.areaHeaderWest;
1438
+ if (t === "center") return this.areaHeaderCenter;
1439
+ if (t === "east") return this.areaHeaderEast;
1444
1440
  } else if (e === "body") {
1445
- if (t === "west")
1446
- return this.areaBodyWest;
1447
- if (t === "center")
1448
- return this.areaBodyCenter;
1449
- if (t === "east")
1450
- return this.areaBodyEast;
1441
+ if (t === "west") return this.areaBodyWest;
1442
+ if (t === "center") return this.areaBodyCenter;
1443
+ if (t === "east") return this.areaBodyEast;
1451
1444
  } else if (e === "footer") {
1452
- if (t === "west")
1453
- return this.areaFooterWest;
1454
- if (t === "center")
1455
- return this.areaFooterCenter;
1456
- if (t === "east")
1457
- return this.areaFooterEast;
1445
+ if (t === "west") return this.areaFooterWest;
1446
+ if (t === "center") return this.areaFooterCenter;
1447
+ if (t === "east") return this.areaFooterEast;
1458
1448
  }
1459
1449
  throw Error(`Wrong area identifier: row:${e}, col:${t}`);
1460
1450
  }
@@ -1480,8 +1470,7 @@ class Ze extends Ye {
1480
1470
  var s;
1481
1471
  if (e) {
1482
1472
  const o = (s = e.closest("[" + t + "]")) == null ? void 0 : s.getAttribute(t);
1483
- if (o)
1484
- return Number(o);
1473
+ if (o) return Number(o);
1485
1474
  }
1486
1475
  return -1;
1487
1476
  }
@@ -1497,8 +1486,7 @@ class Ze extends Ye {
1497
1486
  var s;
1498
1487
  if (e) {
1499
1488
  const o = (s = e.closest("[" + t + "]")) == null ? void 0 : s.getAttribute(t);
1500
- if (o)
1501
- return o;
1489
+ if (o) return o;
1502
1490
  }
1503
1491
  return "";
1504
1492
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@guiexpert/svelte-table",
3
- "version": "4.0.24",
3
+ "version": "4.1.56",
4
4
  "type": "module",
5
5
  "main": "./index.js",
6
6
  "types": "./index.d.ts",
@@ -19,10 +19,10 @@
19
19
  "dependencies": {
20
20
  "tslib": "^2.3.0",
21
21
  "preact": "^10.19.4",
22
- "@guiexpert/table": "^1.1.51"
22
+ "@guiexpert/table": "^1.1.56"
23
23
  },
24
24
  "devDependencies": {
25
- "svelte": "^4.2.1",
25
+ "svelte": "4.2.19",
26
26
  "svelte-check": "^2.10.2",
27
27
  "svelte-jester": "^2.3.2",
28
28
  "svelte-preprocess": "^5.0.4",
@@ -33,7 +33,7 @@
33
33
  "@types/react": "^18.2.37",
34
34
  "@types/react-dom": "^18.2.15",
35
35
  "@types/node": "^20.11.17",
36
- "vite": "^5.1.1",
36
+ "vite": "6.3.4",
37
37
  "vite-plugin-dts": "^3.7.2",
38
38
  "vite-plugin-eslint": "^1.8.1",
39
39
  "vite-plugin-static-copy": "^0.17.0",