Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

chronocraft-scroller-vue

Package Overview
Dependencies
Maintainers
1
Versions
52
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

chronocraft-scroller-vue - npm Package Compare versions

Comparing version 0.0.17 to 0.0.18

dist/cjs/Scroller-65b5d8a8.js

2

dist/chronoscrollervue-browser.min.js

@@ -1,1 +0,1 @@

var chronoscrollervue=function(e,t){"use strict";var l=t.defineComponent({name:"Scroller",components:{},props:{data:{type:Array,default:()=>[]},orientation:{type:String,default:"vertical"},height:{type:Number,default:400},numcols:{type:Number,default:4},numrows:{type:Number,default:4},gap:{type:Number,default:10},contentpadding:{type:Number,default:10},cellheight:{type:Number,default:100},cellwidth:{type:Number,default:100},cellsquared:{type:Boolean,default:!0},wheelscrollspeed:{type:Number,default:6},newcellslength:{type:Number,default:10}},setup(e,l){let n=t.ref(e.cellwidth+"px"),r=t.ref(e.cellheight+"px"),o=t.ref("100%"),a=null;const i=t.ref(null);let s,c,d,f=0,p=0,u=!1,h=!1,v=0,m=0,g=0,x=!1,w=200,b=!1,y=t.ref(!1),k=t.ref(""),L=t.ref(e.data);function T(){"vertical"===e.orientation?a.scrollTop+=f:a.scrollLeft+=f,f*=.97,Math.abs(f)>.5&&(p=requestAnimationFrame(T))}function S(){cancelAnimationFrame(p)}function E(){S(),p=requestAnimationFrame(T)}function z(){var e,t=z.width;return void 0===t&&((e=document.createElement("div")).innerHTML='<div style="width:50px;height:50px;position:absolute;left:-50px;top:-50px;overflow:auto;"><div style="width:1px;height:100px;"></div></div>',e=e.firstChild,document.body.appendChild(e),t=z.width=e.offsetWidth-e.clientWidth,document.body.removeChild(e)),t}function W(t){L.value=[...L.value,...t],L.value.splice(0,t.length);let l=document.querySelector(".scroller-cell");l.offsetHeight,e.gap;let n=l.offsetWidth+e.gap;var r=0;if("vertical"===e.orientation)parseInt(t.length/e.numcols),r=m,a.scrollTop=r,d=r-(m-d);else{var o=parseInt(t.length/e.numrows);r=m-n*o,a.scrollLeft=r,d=r-(m-d)}setTimeout((()=>{b=!1}),100)}function M(t){L.value=[...t,...L.value],L.value.splice(L.value.length-t.length,L.value.length-1);let l=document.querySelector(".scroller-cell");l.offsetHeight,e.gap;let n=l.offsetWidth+e.gap;var r=0;if("vertical"===e.orientation)parseInt(t.length/e.numcols),r=m,a.scrollTop=r,d=r-(m-d);else{var o=parseInt(t.length/e.numrows);r=m+n*o,a.scrollLeft=r,d=r-(m-d)}setTimeout((()=>{b=!1}),100)}async function N(t,n,r){1===t&&("vertical"===e.orientation?a.scrollTop+a.offsetHeight>=a.scrollHeight-w&&(b||(b=!0,l.emit("on-update-data-next",(e=>{W(e)})))):(a.scrollLeft+a.offsetWidth>=a.scrollWidth-w||a.scrollLeft===a.scrollWidth-a.clientWidth)&&(b||(b=!0,l.emit("on-update-data-next",(e=>{setTimeout((()=>{W(e)}),10)}))))),-1===t&&("vertical"===e.orientation?a.scrollTop<w&&(b||(b=!0,l.emit("on-update-data-previous",(e=>{M(e)})))):a.scrollLeft<w&&(b||(b=!0,l.emit("on-update-data-previous",(e=>{setTimeout((()=>{M(e)}),10)})))))}function C(){console.log("Initialize"),a=document.querySelector(".scroller"),g=z();var t=0,i=0,p=0;if("vertical"===e.orientation)t=(e.numcols-1)*e.gap+g,a.offsetWidth,i=(a.offsetWidth-t-2*e.contentpadding)/e.numcols,n.value=String(i+"%"),o.value=String(i+"px"),e.cellsquared&&(p=(a.clientWidth-t-2*e.contentpadding)/e.numcols,r.value=p+"px");else{t=(e.numrows-1)*e.gap+g,a.offsetHeight,p=(a.offsetHeight-t-2*e.contentpadding)/e.numrows;var x=(a.offsetHeight-t-2*e.contentpadding)/e.numrows;r.value=String(p+"px"),o.value=String(x+"px"),e.cellsquared&&(i=p,n.value=i+"px")}a.addEventListener("mousedown",(t=>{u=!0,a.classList.add("active"),"vertical"===e.orientation?(s=t.pageY-a.offsetTop,c=t.pageY,d=a.scrollTop,v=t.clientY):(s=t.pageX-a.offsetLeft,c=t.pageX,d=a.scrollLeft,v=t.clientX),S()})),a.addEventListener("mouseleave",(()=>{u=!1,a.classList.remove("active")})),a.addEventListener("mouseup",(t=>{u=!1,h=!1,a.classList.remove("active"),E();var n=0;n="vertical"===e.orientation?c-t.pageY:c-t.pageX,Math.abs(n)>10&&l.emit("on-scroll")})),a.addEventListener("mousemove",(t=>{if(u){t.preventDefault(),h=!0;var l=0,n=0;"vertical"===e.orientation?(l=2*(t.pageY-a.offsetTop-s),n=a.scrollTop,a.scrollTop=d-l,f=a.scrollTop-n,a.scrollTop=d-l):(l=2*(t.pageX-a.offsetLeft-s),n=a.scrollLeft,a.scrollLeft=d-l,f=a.scrollLeft-n,a.scrollLeft=d-l)}})),a.addEventListener("wheel",(t=>{if(S(),"vertical"===e.orientation){const l=Math.sign(t.deltaY)*e.wheelscrollspeed,n=a.scrollTop;a.scrollTop+=l,f=a.scrollTop-n}else{const l=Math.sign(t.deltaY)*e.wheelscrollspeed,n=a.scrollLeft;if(a.scrollLeft+=l,f=a.scrollLeft-n,a.scrollLeft===a.scrollWidth-a.clientWidth){console.log("detectScrollEdges");N(parseInt(0/Math.abs(0)))}}l.emit("on-scroll"),E()})),a.addEventListener("scroll",(t=>{var l=0;if("vertical"===e.orientation){let e=a.scrollTop;l=e-m,N(parseInt(l/Math.abs(l))),m=e}else{let e=a.scrollLeft;l=e-m,N(parseInt(l/Math.abs(l))),m=e}}))}function B(e){C()}return t.onMounted((()=>{window.addEventListener("resize",B),C()})),t.onUpdated((()=>{!function(){let t=document.querySelector(".scroller-cell"),l=t.offsetHeight+e.gap,n=t.offsetWidth+e.gap;a=document.querySelector(".scroller");var r=0;if("vertical"===e.orientation){var o=a.offsetHeight/l;r=parseInt(Math.round(o)*e.numcols)}else{var i=a.offsetWidth/n;r=parseInt(Math.round(i)*e.numrows)}var s=r+3*e.newcellslength;s>L.value.length&&(console.log("Error: Minimum Cells Required to load at start should be: ",s),y.value=!0,k.value="Error: Minimum Cells Required to load at start should be: "+s+". This value is relevant to the scroller width and to the number of new cells added each time.")}()})),{cellW:n,cellH:r,cellFlexBasis:o,scroller:a,cellRef:i,isMouseDown:u,startPos:s,startscrollPos:c,movescrollPos:d,scrollerMoving:h,previousPos:v,scrollbarWidth:g,justLoaded:x,scrollLoadingOffset:w,cellsdata:L,alertvisible:y,alerttext:k}}});const n={class:"cell-text"},r={key:0,class:"alert-overlay"};!function(e,t){void 0===t&&(t={});var l=t.insertAt;if(e&&"undefined"!=typeof document){var n=document.head||document.getElementsByTagName("head")[0],r=document.createElement("style");r.type="text/css","top"===l&&n.firstChild?n.insertBefore(r,n.firstChild):n.appendChild(r),r.styleSheet?r.styleSheet.cssText=e:r.appendChild(document.createTextNode(e))}}(".scroller-container[data-v-8c8d083e] {\r\n position: relative;\n}\n.alert-overlay[data-v-8c8d083e] {\r\n position: absolute;\r\n width: 100%;\r\n height: 100%;\r\n top: 0px;\r\n left: 0px;\r\n background: #555555bb;\r\n display: -webkit-flex;\r\n display: -ms-flexbox;\r\n display: flex;\r\n -webkit-justify-content: center;\r\n -ms-flex-pack: center;\r\n justify-content: center;\r\n -webkit-align-items: center;\r\n -ms-flex-align: center;\r\n align-items: center;\n}\n.alert-overlay h3[data-v-8c8d083e] {\r\n color: #fff;\r\n font-weight: 400;\n}\n.debugcellstyle[data-v-8c8d083e] {\r\n background-color: brown !important;\n}\n.scroller[data-v-8c8d083e] {\r\n background: #eaeaea;\r\n position: relative;\n}\n.vertical-scroller[data-v-8c8d083e] {\r\n overflow-y: auto;\r\n overflow-x: hidden;\n}\n.horizontal-scroller[data-v-8c8d083e] {\r\n overflow-y: hidden;\r\n overflow-x: auto;\n}\n.scroller-content[data-v-8c8d083e] {\r\n -ms-flex-line-pack: start;\r\n -webkit-align-content: flex-start;\r\n align-content: flex-start;\r\n -webkit-flex-direction: row;\r\n -ms-flex-direction: row;\r\n flex-direction: row;\r\n -webkit-flex-wrap: wrap;\r\n -ms-flex-wrap: wrap;\r\n flex-wrap: wrap;\n}\n.vertical-container[data-v-8c8d083e] {\r\n display: -webkit-flex;\r\n display: -ms-flexbox;\r\n display: flex;\n}\n.horizontal-container[data-v-8c8d083e] {\r\n display: -webkit-inline-flex;\r\n display: -ms-inline-flexbox;\r\n display: inline-flex;\r\n -webkit-flex-flow: column wrap !important;\r\n -ms-flex-flow: column wrap !important;\r\n flex-flow: column wrap !important;\r\n height: inherit !important;\r\n -ms-flex-line-pack: start;\r\n -webkit-align-content: flex-start;\r\n align-content: flex-start;\r\n width: 100%;\n}\n.scroller-cell[data-v-8c8d083e] {\r\n\r\n background: #b6b6b6;\r\n\r\n -webkit-flex: inherit;\r\n\r\n -ms-flex: inherit;\r\n\r\n flex: inherit;\r\n -webkit-flex-grow: 0;\r\n -ms-flex-positive: 0;\r\n flex-grow: 0;\r\n -ms-flex-negative: 0;\r\n -webkit-flex-shrink: 0;\r\n flex-shrink: 0;\r\n -ms-flex-preferred-size: 25%;\r\n -webkit-flex-basis: 25%;\r\n flex-basis: 25%;\r\n\r\n /* for theme */\r\n background: #ffffff;\r\n /* box-shadow: 2px 2px 2px 2px rgb(221 221 221 / 60%); */\r\n box-shadow: rgba(50, 50, 93, 0.25) 0px 2px 5px -1px, rgba(0, 0, 0, 0.3) 0px 1px 3px -1px;\r\n border-radius: 5px;\r\n\r\n -webkit-touch-callout: none;\r\n -webkit-user-select: none;\r\n -ms-user-select: none;\r\n user-select: none;\n}\n.vertical-cell[data-v-8c8d083e] {\r\n display: inline-block;\r\n height: 50px;\n}\n.horizontal-cell[data-v-8c8d083e] {\r\n display: -webkit-inline-flex;\r\n display: -ms-inline-flexbox;\r\n display: inline-flex;\r\n height: unset !important;\r\n width: 90px;\n}\n.dummycell[data-v-8c8d083e] {\r\n height: 20px;\n}\n.cell-text[data-v-8c8d083e] {\r\n width: 100%;\r\n text-align: center;\r\n font-size: 18pt;\r\n\r\n -webkit-touch-callout: none;\r\n -webkit-user-select: none;\r\n -ms-user-select: none;\r\n user-select: none;\n}\r\n"),l.render=function(e,l,o,a,i,s){return t.openBlock(),t.createElementBlock("div",{class:"scroller-container",style:t.normalizeStyle([{height:e.height+"px"}])},[t.createElementVNode("div",{class:t.normalizeClass(["scroller","vertical"===e.orientation?"vertical-scroller":"horizontal-scroller"]),style:t.normalizeStyle([{height:e.height+"px"}])},[t.createElementVNode("div",{class:t.normalizeClass(["scroller-content","vertical"===e.orientation?"vertical-container":"horizontal-container"]),style:t.normalizeStyle([{gap:e.gap+"px"},{padding:e.contentpadding+"px"}])},[t.renderSlot(e.$slots,"content",{},(()=>[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(e.cellsdata,(l=>(t.openBlock(),t.createElementBlock("div",{ref_for:!0,ref:"cellRef",key:l.id,class:t.normalizeClass(["scroller-cell","vertical"===e.orientation?"vertical-cell":"horizontal-cell",l.debug?"debugcellstyle":""]),style:t.normalizeStyle({"flex-basis":e.cellFlexBasis,height:e.cellH,width:e.cellW})},[t.renderSlot(e.$slots,"cell",{},(()=>[t.createElementVNode("span",n,t.toDisplayString(l.id),1)]))],6)))),128))]))],6)],6),e.alertvisible?(t.openBlock(),t.createElementBlock("div",r,[t.createElementVNode("h3",null,t.toDisplayString(e.alerttext),1)])):t.createCommentVNode("",!0)],4)},l.__scopeId="data-v-8c8d083e";var o=Object.freeze({__proto__:null,Scroller:l});const a={install(e){Object.entries(o).forEach((([t,l])=>{e.component(t,l)}))}};return e.Scroller=l,e.default=a,Object.defineProperty(e,"__esModule",{value:!0}),e}({},Vue);
var chronoscrollervue=function(e,t){"use strict";var l=t.defineComponent({name:"Scroller",components:{},props:{data:{type:Array,default:()=>[]},orientation:{type:String,default:"vertical"},height:{type:Number,default:400},numcols:{type:Number,default:4},numrows:{type:Number,default:4},gap:{type:Number,default:10},contentpadding:{type:Number,default:10},cellheight:{type:Number,default:100},cellwidth:{type:Number,default:100},cellsquared:{type:Boolean,default:!0},wheelscrollspeed:{type:Number,default:6},newcellslength:{type:Number,default:10}},setup(e,l){let n=t.ref(e.cellwidth+"px"),r=t.ref(e.cellheight+"px"),o=t.ref("100%"),a=null;const i=t.ref(null);let s,c,d,f=0,p=0,u=!1,h=!1,v=0,m=0,g=0,x=!1,w=200,b=!1,y=t.ref(!1),k=t.ref(""),L=t.ref(e.data);function T(){"vertical"===e.orientation?a.scrollTop+=f:a.scrollLeft+=f,f*=.97,Math.abs(f)>.5&&(p=requestAnimationFrame(T))}function S(){cancelAnimationFrame(p)}function E(){S(),p=requestAnimationFrame(T)}function z(){var e,t=z.width;return void 0===t&&((e=document.createElement("div")).innerHTML='<div style="width:50px;height:50px;position:absolute;left:-50px;top:-50px;overflow:auto;"><div style="width:1px;height:100px;"></div></div>',e=e.firstChild,document.body.appendChild(e),t=z.width=e.offsetWidth-e.clientWidth,document.body.removeChild(e)),t}function W(t){L.value=[...L.value,...t],L.value.splice(0,t.length);let l=document.querySelector(".scroller-cell");l.offsetHeight,e.gap;let n=l.offsetWidth+e.gap;var r=0;if("vertical"===e.orientation)parseInt(t.length/e.numcols),r=m,a.scrollTop=r,d=r-(m-d);else{var o=parseInt(t.length/e.numrows);r=m-n*o,a.scrollLeft=r,d=r-(m-d)}setTimeout((()=>{b=!1}),100)}function M(t){L.value=[...t,...L.value],L.value.splice(L.value.length-t.length,L.value.length-1);let l=document.querySelector(".scroller-cell");l.offsetHeight,e.gap;let n=l.offsetWidth+e.gap;var r=0;if("vertical"===e.orientation)parseInt(t.length/e.numcols),r=m,a.scrollTop=r,d=r-(m-d);else{var o=parseInt(t.length/e.numrows);r=m+n*o,a.scrollLeft=r,d=r-(m-d)}setTimeout((()=>{b=!1}),100)}async function N(t,n,r){1===t&&("vertical"===e.orientation?a.scrollTop+a.offsetHeight>=a.scrollHeight-w&&(b||(b=!0,l.emit("on-update-data-next",(e=>{W(e)})))):(a.scrollLeft+a.offsetWidth>=a.scrollWidth-w||a.scrollLeft===a.scrollWidth-a.clientWidth)&&(b||(b=!0,l.emit("on-update-data-next",(e=>{setTimeout((()=>{W(e)}),10)}))))),-1===t&&("vertical"===e.orientation?a.scrollTop<w&&(b||(b=!0,l.emit("on-update-data-previous",(e=>{M(e)})))):a.scrollLeft<w&&(b||(b=!0,l.emit("on-update-data-previous",(e=>{setTimeout((()=>{M(e)}),10)})))))}function C(){console.log("Initialize"),a=document.querySelector(".scroller"),g=z();var t=0,i=0,p=0;if("vertical"===e.orientation)t=(e.numcols-1)*e.gap+g,a.offsetWidth,i=(a.offsetWidth-t-2*e.contentpadding)/e.numcols,n.value=String(i+"%"),o.value=String(i+"px"),e.cellsquared&&(p=(a.clientWidth-t-2*e.contentpadding)/e.numcols,r.value=p+"px");else{t=(e.numrows-1)*e.gap+g,a.offsetHeight,p=(a.offsetHeight-t-2*e.contentpadding)/e.numrows;var x=(a.offsetHeight-t-2*e.contentpadding)/e.numrows;r.value=String(p+"px"),o.value=String(x+"px"),e.cellsquared&&(i=p,n.value=i+"px")}a.addEventListener("mousedown",(t=>{u=!0,a.classList.add("active"),"vertical"===e.orientation?(s=t.pageY-a.offsetTop,c=t.pageY,d=a.scrollTop,v=t.clientY):(s=t.pageX-a.offsetLeft,c=t.pageX,d=a.scrollLeft,v=t.clientX),S()})),a.addEventListener("mouseleave",(()=>{u=!1,a.classList.remove("active")})),a.addEventListener("mouseup",(t=>{u=!1,h=!1,a.classList.remove("active"),E();var n=0;n="vertical"===e.orientation?c-t.pageY:c-t.pageX,Math.abs(n)>10&&l.emit("on-scroll")})),a.addEventListener("mousemove",(t=>{if(u){t.preventDefault(),h=!0;var l=0,n=0;"vertical"===e.orientation?(l=2*(t.pageY-a.offsetTop-s),n=a.scrollTop,a.scrollTop=d-l,f=a.scrollTop-n,a.scrollTop=d-l):(l=2*(t.pageX-a.offsetLeft-s),n=a.scrollLeft,a.scrollLeft=d-l,f=a.scrollLeft-n,a.scrollLeft=d-l)}})),a.addEventListener("wheel",(t=>{if(S(),"vertical"===e.orientation){const l=Math.sign(t.deltaY)*e.wheelscrollspeed,n=a.scrollTop;a.scrollTop+=l,f=a.scrollTop-n}else{const l=Math.sign(t.deltaY)*e.wheelscrollspeed,n=a.scrollLeft;if(a.scrollLeft+=l,f=a.scrollLeft-n,a.scrollLeft===a.scrollWidth-a.clientWidth){console.log("detectScrollEdges");N(parseInt(0/Math.abs(0)))}}l.emit("on-scroll"),E()})),a.addEventListener("scroll",(t=>{var l=0;if("vertical"===e.orientation){let e=a.scrollTop;l=e-m,N(parseInt(l/Math.abs(l))),m=e}else{let e=a.scrollLeft;l=e-m,N(parseInt(l/Math.abs(l))),m=e}}))}function B(e){C()}return t.onMounted((()=>{window.addEventListener("resize",B),C()})),t.onUpdated((()=>{!function(){let t=document.querySelector(".scroller-cell"),l=t.offsetHeight+e.gap,n=t.offsetWidth+e.gap;a=document.querySelector(".scroller");var r=0;if("vertical"===e.orientation){var o=a.offsetHeight/l;r=parseInt(Math.round(o)*e.numcols)}else{var i=a.offsetWidth/n;r=parseInt(Math.round(i)*e.numrows)}var s=r+3*e.newcellslength;s>L.value.length&&(console.log("Error: Minimum Cells Required to load at start should be: ",s),y.value=!0,k.value="Error: Minimum Cells Required to load at start should be: "+s+". This value is relevant to the scroller width and to the number of new cells added each time.")}()})),{cellW:n,cellH:r,cellFlexBasis:o,scroller:a,cellRef:i,isMouseDown:u,startPos:s,startscrollPos:c,movescrollPos:d,scrollerMoving:h,previousPos:v,scrollbarWidth:g,justLoaded:x,scrollLoadingOffset:w,cellsdata:L,alertvisible:y,alerttext:k}}});const n={class:"cell-text"},r={key:0,class:"alert-overlay"};!function(e,t){void 0===t&&(t={});var l=t.insertAt;if(e&&"undefined"!=typeof document){var n=document.head||document.getElementsByTagName("head")[0],r=document.createElement("style");r.type="text/css","top"===l&&n.firstChild?n.insertBefore(r,n.firstChild):n.appendChild(r),r.styleSheet?r.styleSheet.cssText=e:r.appendChild(document.createTextNode(e))}}(".scroller-container[data-v-3e00ee98] {\r\n position: relative;\n}\n.alert-overlay[data-v-3e00ee98] {\r\n position: absolute;\r\n width: 100%;\r\n height: 100%;\r\n top: 0px;\r\n left: 0px;\r\n background: #555555bb;\r\n display: -webkit-flex;\r\n display: -ms-flexbox;\r\n display: flex;\r\n -webkit-justify-content: center;\r\n -ms-flex-pack: center;\r\n justify-content: center;\r\n -webkit-align-items: center;\r\n -ms-flex-align: center;\r\n align-items: center;\n}\n.alert-overlay h3[data-v-3e00ee98] {\r\n color: #fff;\r\n font-weight: 400;\n}\n.debugcellstyle[data-v-3e00ee98] {\r\n background-color: brown !important;\n}\n.scroller[data-v-3e00ee98] {\r\n background: #eaeaea;\r\n position: relative;\n}\n.vertical-scroller[data-v-3e00ee98] {\r\n overflow-y: auto;\r\n overflow-x: hidden;\n}\n.horizontal-scroller[data-v-3e00ee98] {\r\n overflow-y: hidden;\r\n overflow-x: auto;\n}\n.scroller-content[data-v-3e00ee98] {\r\n -ms-flex-line-pack: start;\r\n -webkit-align-content: flex-start;\r\n align-content: flex-start;\r\n -webkit-flex-direction: row;\r\n -ms-flex-direction: row;\r\n flex-direction: row;\r\n -webkit-flex-wrap: wrap;\r\n -ms-flex-wrap: wrap;\r\n flex-wrap: wrap;\n}\n.vertical-container[data-v-3e00ee98] {\r\n display: -webkit-flex;\r\n display: -ms-flexbox;\r\n display: flex;\n}\n.horizontal-container[data-v-3e00ee98] {\r\n display: -webkit-inline-flex;\r\n display: -ms-inline-flexbox;\r\n display: inline-flex;\r\n -webkit-flex-flow: column wrap !important;\r\n -ms-flex-flow: column wrap !important;\r\n flex-flow: column wrap !important;\r\n height: inherit !important;\r\n -ms-flex-line-pack: start;\r\n -webkit-align-content: flex-start;\r\n align-content: flex-start;\r\n width: 100%;\n}\n.scroller-cell[data-v-3e00ee98] {\r\n\r\n background: #b6b6b6;\r\n\r\n -webkit-flex: inherit;\r\n\r\n -ms-flex: inherit;\r\n\r\n flex: inherit;\r\n -webkit-flex-grow: 0;\r\n -ms-flex-positive: 0;\r\n flex-grow: 0;\r\n -ms-flex-negative: 0;\r\n -webkit-flex-shrink: 0;\r\n flex-shrink: 0;\r\n -ms-flex-preferred-size: 25%;\r\n -webkit-flex-basis: 25%;\r\n flex-basis: 25%;\r\n\r\n /* for theme */\r\n background: #ffffff;\r\n /* box-shadow: 2px 2px 2px 2px rgb(221 221 221 / 60%); */\r\n box-shadow: rgba(50, 50, 93, 0.25) 0px 2px 5px -1px, rgba(0, 0, 0, 0.3) 0px 1px 3px -1px;\r\n border-radius: 5px;\r\n\r\n -webkit-touch-callout: none;\r\n -webkit-user-select: none;\r\n -ms-user-select: none;\r\n user-select: none;\n}\n.vertical-cell[data-v-3e00ee98] {\r\n display: inline-block;\r\n height: 50px;\n}\n.horizontal-cell[data-v-3e00ee98] {\r\n display: -webkit-inline-flex;\r\n display: -ms-inline-flexbox;\r\n display: inline-flex;\r\n height: unset !important;\r\n width: 90px;\n}\n.dummycell[data-v-3e00ee98] {\r\n height: 20px;\n}\n.cell-text[data-v-3e00ee98] {\r\n width: 100%;\r\n text-align: center;\r\n font-size: 18pt;\r\n\r\n -webkit-touch-callout: none;\r\n -webkit-user-select: none;\r\n -ms-user-select: none;\r\n user-select: none;\n}\r\n"),l.render=function(e,l,o,a,i,s){return t.openBlock(),t.createElementBlock("div",{class:"scroller-container",style:t.normalizeStyle([{height:e.height+"px"}])},[t.createElementVNode("div",{class:t.normalizeClass(["scroller","vertical"===e.orientation?"vertical-scroller":"horizontal-scroller"]),style:t.normalizeStyle([{height:e.height+"px"}])},[t.createElementVNode("div",{class:t.normalizeClass(["scroller-content","vertical"===e.orientation?"vertical-container":"horizontal-container"]),style:t.normalizeStyle([{gap:e.gap+"px"},{padding:e.contentpadding+"px"}])},[t.renderSlot(e.$slots,"content",{},(()=>[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(e.cellsdata,(l=>(t.openBlock(),t.createElementBlock("div",{ref_for:!0,ref:"cellRef",key:l.id,class:t.normalizeClass(["scroller-cell","vertical"===e.orientation?"vertical-cell":"horizontal-cell",l.debug?"debugcellstyle":""]),style:t.normalizeStyle({"flex-basis":e.cellFlexBasis,height:e.cellH,width:e.cellW})},[t.renderSlot(e.$slots,"cell",{data:l},(()=>[t.createElementVNode("span",n,t.toDisplayString(l.id),1)]))],6)))),128))]))],6)],6),e.alertvisible?(t.openBlock(),t.createElementBlock("div",r,[t.createElementVNode("h3",null,t.toDisplayString(e.alerttext),1)])):t.createCommentVNode("",!0)],4)},l.__scopeId="data-v-3e00ee98";var o=Object.freeze({__proto__:null,Scroller:l});const a={install(e){Object.entries(o).forEach((([t,l])=>{e.component(t,l)}))}};return e.Scroller=l,e.default=a,Object.defineProperty(e,"__esModule",{value:!0}),e}({},Vue);

@@ -5,3 +5,3 @@

// https://github.com/yannisraft/chronocraft-scroller-vue.git
// v0.0.15
// v0.0.18
// MIT License

@@ -498,3 +498,5 @@

})
}, [renderSlot(_ctx.$slots, "cell", {}, () => [createElementVNode("span", _hoisted_1, toDisplayString(datacell.id), 1)])], 6);
}, [renderSlot(_ctx.$slots, "cell", {
data: datacell
}, () => [createElementVNode("span", _hoisted_1, toDisplayString(datacell.id), 1)])], 6);
}), 128))])], 6)], 6), _ctx.alertvisible ? (openBlock(), createElementBlock("div", _hoisted_2, [createElementVNode("h3", null, toDisplayString(_ctx.alerttext), 1)])) : createCommentVNode("", true)], 4);

@@ -530,7 +532,7 @@ }

var css_248z = ".scroller-container[data-v-8c8d083e] {\r\n position: relative;\n}\n.alert-overlay[data-v-8c8d083e] {\r\n position: absolute;\r\n width: 100%;\r\n height: 100%;\r\n top: 0px;\r\n left: 0px;\r\n background: #555555bb;\r\n display: -webkit-flex;\r\n display: -ms-flexbox;\r\n display: flex;\r\n -webkit-justify-content: center;\r\n -ms-flex-pack: center;\r\n justify-content: center;\r\n -webkit-align-items: center;\r\n -ms-flex-align: center;\r\n align-items: center;\n}\n.alert-overlay h3[data-v-8c8d083e] {\r\n color: #fff;\r\n font-weight: 400;\n}\n.debugcellstyle[data-v-8c8d083e] {\r\n background-color: brown !important;\n}\n.scroller[data-v-8c8d083e] {\r\n background: #eaeaea;\r\n position: relative;\n}\n.vertical-scroller[data-v-8c8d083e] {\r\n overflow-y: auto;\r\n overflow-x: hidden;\n}\n.horizontal-scroller[data-v-8c8d083e] {\r\n overflow-y: hidden;\r\n overflow-x: auto;\n}\n.scroller-content[data-v-8c8d083e] {\r\n -ms-flex-line-pack: start;\r\n -webkit-align-content: flex-start;\r\n align-content: flex-start;\r\n -webkit-flex-direction: row;\r\n -ms-flex-direction: row;\r\n flex-direction: row;\r\n -webkit-flex-wrap: wrap;\r\n -ms-flex-wrap: wrap;\r\n flex-wrap: wrap;\n}\n.vertical-container[data-v-8c8d083e] {\r\n display: -webkit-flex;\r\n display: -ms-flexbox;\r\n display: flex;\n}\n.horizontal-container[data-v-8c8d083e] {\r\n display: -webkit-inline-flex;\r\n display: -ms-inline-flexbox;\r\n display: inline-flex;\r\n -webkit-flex-flow: column wrap !important;\r\n -ms-flex-flow: column wrap !important;\r\n flex-flow: column wrap !important;\r\n height: inherit !important;\r\n -ms-flex-line-pack: start;\r\n -webkit-align-content: flex-start;\r\n align-content: flex-start;\r\n width: 100%;\n}\n.scroller-cell[data-v-8c8d083e] {\r\n\r\n background: #b6b6b6;\r\n\r\n -webkit-flex: inherit;\r\n\r\n -ms-flex: inherit;\r\n\r\n flex: inherit;\r\n -webkit-flex-grow: 0;\r\n -ms-flex-positive: 0;\r\n flex-grow: 0;\r\n -ms-flex-negative: 0;\r\n -webkit-flex-shrink: 0;\r\n flex-shrink: 0;\r\n -ms-flex-preferred-size: 25%;\r\n -webkit-flex-basis: 25%;\r\n flex-basis: 25%;\r\n\r\n /* for theme */\r\n background: #ffffff;\r\n /* box-shadow: 2px 2px 2px 2px rgb(221 221 221 / 60%); */\r\n box-shadow: rgba(50, 50, 93, 0.25) 0px 2px 5px -1px, rgba(0, 0, 0, 0.3) 0px 1px 3px -1px;\r\n border-radius: 5px;\r\n\r\n -webkit-touch-callout: none;\r\n -webkit-user-select: none;\r\n -ms-user-select: none;\r\n user-select: none;\n}\n.vertical-cell[data-v-8c8d083e] {\r\n display: inline-block;\r\n height: 50px;\n}\n.horizontal-cell[data-v-8c8d083e] {\r\n display: -webkit-inline-flex;\r\n display: -ms-inline-flexbox;\r\n display: inline-flex;\r\n height: unset !important;\r\n width: 90px;\n}\n.dummycell[data-v-8c8d083e] {\r\n height: 20px;\n}\n.cell-text[data-v-8c8d083e] {\r\n width: 100%;\r\n text-align: center;\r\n font-size: 18pt;\r\n\r\n -webkit-touch-callout: none;\r\n -webkit-user-select: none;\r\n -ms-user-select: none;\r\n user-select: none;\n}\r\n";
var css_248z = ".scroller-container[data-v-3e00ee98] {\r\n position: relative;\n}\n.alert-overlay[data-v-3e00ee98] {\r\n position: absolute;\r\n width: 100%;\r\n height: 100%;\r\n top: 0px;\r\n left: 0px;\r\n background: #555555bb;\r\n display: -webkit-flex;\r\n display: -ms-flexbox;\r\n display: flex;\r\n -webkit-justify-content: center;\r\n -ms-flex-pack: center;\r\n justify-content: center;\r\n -webkit-align-items: center;\r\n -ms-flex-align: center;\r\n align-items: center;\n}\n.alert-overlay h3[data-v-3e00ee98] {\r\n color: #fff;\r\n font-weight: 400;\n}\n.debugcellstyle[data-v-3e00ee98] {\r\n background-color: brown !important;\n}\n.scroller[data-v-3e00ee98] {\r\n background: #eaeaea;\r\n position: relative;\n}\n.vertical-scroller[data-v-3e00ee98] {\r\n overflow-y: auto;\r\n overflow-x: hidden;\n}\n.horizontal-scroller[data-v-3e00ee98] {\r\n overflow-y: hidden;\r\n overflow-x: auto;\n}\n.scroller-content[data-v-3e00ee98] {\r\n -ms-flex-line-pack: start;\r\n -webkit-align-content: flex-start;\r\n align-content: flex-start;\r\n -webkit-flex-direction: row;\r\n -ms-flex-direction: row;\r\n flex-direction: row;\r\n -webkit-flex-wrap: wrap;\r\n -ms-flex-wrap: wrap;\r\n flex-wrap: wrap;\n}\n.vertical-container[data-v-3e00ee98] {\r\n display: -webkit-flex;\r\n display: -ms-flexbox;\r\n display: flex;\n}\n.horizontal-container[data-v-3e00ee98] {\r\n display: -webkit-inline-flex;\r\n display: -ms-inline-flexbox;\r\n display: inline-flex;\r\n -webkit-flex-flow: column wrap !important;\r\n -ms-flex-flow: column wrap !important;\r\n flex-flow: column wrap !important;\r\n height: inherit !important;\r\n -ms-flex-line-pack: start;\r\n -webkit-align-content: flex-start;\r\n align-content: flex-start;\r\n width: 100%;\n}\n.scroller-cell[data-v-3e00ee98] {\r\n\r\n background: #b6b6b6;\r\n\r\n -webkit-flex: inherit;\r\n\r\n -ms-flex: inherit;\r\n\r\n flex: inherit;\r\n -webkit-flex-grow: 0;\r\n -ms-flex-positive: 0;\r\n flex-grow: 0;\r\n -ms-flex-negative: 0;\r\n -webkit-flex-shrink: 0;\r\n flex-shrink: 0;\r\n -ms-flex-preferred-size: 25%;\r\n -webkit-flex-basis: 25%;\r\n flex-basis: 25%;\r\n\r\n /* for theme */\r\n background: #ffffff;\r\n /* box-shadow: 2px 2px 2px 2px rgb(221 221 221 / 60%); */\r\n box-shadow: rgba(50, 50, 93, 0.25) 0px 2px 5px -1px, rgba(0, 0, 0, 0.3) 0px 1px 3px -1px;\r\n border-radius: 5px;\r\n\r\n -webkit-touch-callout: none;\r\n -webkit-user-select: none;\r\n -ms-user-select: none;\r\n user-select: none;\n}\n.vertical-cell[data-v-3e00ee98] {\r\n display: inline-block;\r\n height: 50px;\n}\n.horizontal-cell[data-v-3e00ee98] {\r\n display: -webkit-inline-flex;\r\n display: -ms-inline-flexbox;\r\n display: inline-flex;\r\n height: unset !important;\r\n width: 90px;\n}\n.dummycell[data-v-3e00ee98] {\r\n height: 20px;\n}\n.cell-text[data-v-3e00ee98] {\r\n width: 100%;\r\n text-align: center;\r\n font-size: 18pt;\r\n\r\n -webkit-touch-callout: none;\r\n -webkit-user-select: none;\r\n -ms-user-select: none;\r\n user-select: none;\n}\r\n";
styleInject(css_248z);
script.render = render;
script.__scopeId = "data-v-8c8d083e";
script.__scopeId = "data-v-3e00ee98";

@@ -537,0 +539,0 @@ var components = /*#__PURE__*/Object.freeze({

@@ -5,6 +5,6 @@

// https://github.com/yannisraft/chronocraft-scroller-vue.git
// v0.0.15
// v0.0.18
// MIT License
'use strict';Object.defineProperty(exports,'__esModule',{value:true});var Scroller=require('./Scroller-e1377699.js');require('vue');var components=/*#__PURE__*/Object.freeze({__proto__:null,Scroller:Scroller.s});const Plugin = {
'use strict';Object.defineProperty(exports,'__esModule',{value:true});var Scroller=require('./Scroller-65b5d8a8.js');require('vue');var components=/*#__PURE__*/Object.freeze({__proto__:null,Scroller:Scroller.s});const Plugin = {
install(app) {

@@ -11,0 +11,0 @@ Object.entries(components).forEach(([componentName, component]) => {

@@ -5,5 +5,5 @@

// https://github.com/yannisraft/chronocraft-scroller-vue.git
// v0.0.15
// v0.0.18
// MIT License
'use strict';Object.defineProperty(exports,'__esModule',{value:true});var Scroller=require('./Scroller-e1377699.js');require('vue');exports["default"]=Scroller.s;
'use strict';Object.defineProperty(exports,'__esModule',{value:true});var Scroller=require('./Scroller-65b5d8a8.js');require('vue');exports["default"]=Scroller.s;

@@ -5,3 +5,3 @@

// https://github.com/yannisraft/chronocraft-scroller-vue.git
// v0.0.15
// v0.0.18
// MIT License

@@ -502,3 +502,5 @@

})
}, [vue.renderSlot(_ctx.$slots, "cell", {}, () => [vue.createElementVNode("span", _hoisted_1, vue.toDisplayString(datacell.id), 1)])], 6);
}, [vue.renderSlot(_ctx.$slots, "cell", {
data: datacell
}, () => [vue.createElementVNode("span", _hoisted_1, vue.toDisplayString(datacell.id), 1)])], 6);
}), 128))])], 6)], 6), _ctx.alertvisible ? (vue.openBlock(), vue.createElementBlock("div", _hoisted_2, [vue.createElementVNode("h3", null, vue.toDisplayString(_ctx.alerttext), 1)])) : vue.createCommentVNode("", true)], 4);

@@ -534,7 +536,7 @@ }

var css_248z = ".scroller-container {\r\n position: relative;\r\n}\r\n\r\n.alert-overlay {\r\n position: absolute;\r\n width: 100%;\r\n height: 100%;\r\n top: 0px;\r\n left: 0px;\r\n background: #555555bb;\r\n display: -webkit-flex;\r\n display: -ms-flexbox;\r\n display: flex;\r\n -webkit-justify-content: center;\r\n -ms-flex-pack: center;\r\n justify-content: center;\r\n -webkit-align-items: center;\r\n -ms-flex-align: center;\r\n align-items: center;\r\n\r\n}\r\n\r\n.alert-overlay h3 {\r\n color: #fff;\r\n font-weight: 400;\r\n}\r\n\r\n.debugcellstyle {\r\n background-color: brown !important;\r\n}\r\n\r\n.scroller[data-v-8c8d083e] {\r\n background: #eaeaea;\r\n position: relative;\n}\r\n\r\n.vertical-scroller[data-v-8c8d083e] {\r\n overflow-y: auto;\r\n overflow-x: hidden;\n}\r\n\r\n.horizontal-scroller[data-v-8c8d083e] {\r\n overflow-y: hidden;\r\n overflow-x: auto;\n}\r\n\r\n.scroller-content[data-v-8c8d083e] {\r\n -ms-flex-line-pack: start;\r\n -webkit-align-content: flex-start;\r\n align-content: flex-start;\r\n -webkit-flex-direction: row;\r\n -ms-flex-direction: row;\r\n flex-direction: row;\r\n -webkit-flex-wrap: wrap;\r\n -ms-flex-wrap: wrap;\r\n flex-wrap: wrap;\n}\r\n\r\n.vertical-container[data-v-8c8d083e] {\r\n display: -webkit-flex;\r\n display: -ms-flexbox;\r\n display: flex;\n}\r\n\r\n.horizontal-container[data-v-8c8d083e] {\r\n display: -webkit-inline-flex;\r\n display: -ms-inline-flexbox;\r\n display: inline-flex;\r\n -webkit-flex-flow: column wrap !important;\r\n -ms-flex-flow: column wrap !important;\r\n flex-flow: column wrap !important;\r\n height: inherit !important;\r\n -ms-flex-line-pack: start;\r\n -webkit-align-content: flex-start;\r\n align-content: flex-start;\r\n width: 100%;\n}\r\n\r\n.scroller-cell[data-v-8c8d083e] {\r\n\r\n background: #b6b6b6;\r\n\r\n -webkit-flex: inherit;\r\n\r\n -ms-flex: inherit;\r\n\r\n flex: inherit;\r\n -webkit-flex-grow: 0;\r\n -ms-flex-positive: 0;\r\n flex-grow: 0;\r\n -ms-flex-negative: 0;\r\n -webkit-flex-shrink: 0;\r\n flex-shrink: 0;\r\n -ms-flex-preferred-size: 25%;\r\n -webkit-flex-basis: 25%;\r\n flex-basis: 25%;\r\n\r\n /* for theme */\r\n background: #ffffff;\r\n /* box-shadow: 2px 2px 2px 2px rgb(221 221 221 / 60%); */\r\n box-shadow: rgba(50, 50, 93, 0.25) 0px 2px 5px -1px, rgba(0, 0, 0, 0.3) 0px 1px 3px -1px;\r\n border-radius: 5px;\r\n\r\n -webkit-touch-callout: none;\r\n -webkit-user-select: none;\r\n -ms-user-select: none;\r\n user-select: none;\n}\r\n\r\n.vertical-cell[data-v-8c8d083e] {\r\n display: inline-block;\r\n height: 50px;\n}\r\n\r\n.horizontal-cell[data-v-8c8d083e] {\r\n display: -webkit-inline-flex;\r\n display: -ms-inline-flexbox;\r\n display: inline-flex;\r\n height: unset !important;\r\n width: 90px;\n}\r\n\r\n.dummycell[data-v-8c8d083e] {\r\n height: 20px;\n}\r\n\r\n.cell-text[data-v-8c8d083e] {\r\n width: 100%;\r\n text-align: center;\r\n font-size: 18pt;\r\n\r\n -webkit-touch-callout: none;\r\n -webkit-user-select: none;\r\n -ms-user-select: none;\r\n user-select: none;\n}\r\n";
var css_248z = ".scroller-container {\r\n position: relative;\r\n}\r\n\r\n.alert-overlay {\r\n position: absolute;\r\n width: 100%;\r\n height: 100%;\r\n top: 0px;\r\n left: 0px;\r\n background: #555555bb;\r\n display: -webkit-flex;\r\n display: -ms-flexbox;\r\n display: flex;\r\n -webkit-justify-content: center;\r\n -ms-flex-pack: center;\r\n justify-content: center;\r\n -webkit-align-items: center;\r\n -ms-flex-align: center;\r\n align-items: center;\r\n\r\n}\r\n\r\n.alert-overlay h3 {\r\n color: #fff;\r\n font-weight: 400;\r\n}\r\n\r\n.debugcellstyle {\r\n background-color: brown !important;\r\n}\r\n\r\n.scroller[data-v-3e00ee98] {\r\n background: #eaeaea;\r\n position: relative;\n}\r\n\r\n.vertical-scroller[data-v-3e00ee98] {\r\n overflow-y: auto;\r\n overflow-x: hidden;\n}\r\n\r\n.horizontal-scroller[data-v-3e00ee98] {\r\n overflow-y: hidden;\r\n overflow-x: auto;\n}\r\n\r\n.scroller-content[data-v-3e00ee98] {\r\n -ms-flex-line-pack: start;\r\n -webkit-align-content: flex-start;\r\n align-content: flex-start;\r\n -webkit-flex-direction: row;\r\n -ms-flex-direction: row;\r\n flex-direction: row;\r\n -webkit-flex-wrap: wrap;\r\n -ms-flex-wrap: wrap;\r\n flex-wrap: wrap;\n}\r\n\r\n.vertical-container[data-v-3e00ee98] {\r\n display: -webkit-flex;\r\n display: -ms-flexbox;\r\n display: flex;\n}\r\n\r\n.horizontal-container[data-v-3e00ee98] {\r\n display: -webkit-inline-flex;\r\n display: -ms-inline-flexbox;\r\n display: inline-flex;\r\n -webkit-flex-flow: column wrap !important;\r\n -ms-flex-flow: column wrap !important;\r\n flex-flow: column wrap !important;\r\n height: inherit !important;\r\n -ms-flex-line-pack: start;\r\n -webkit-align-content: flex-start;\r\n align-content: flex-start;\r\n width: 100%;\n}\r\n\r\n.scroller-cell[data-v-3e00ee98] {\r\n\r\n background: #b6b6b6;\r\n\r\n -webkit-flex: inherit;\r\n\r\n -ms-flex: inherit;\r\n\r\n flex: inherit;\r\n -webkit-flex-grow: 0;\r\n -ms-flex-positive: 0;\r\n flex-grow: 0;\r\n -ms-flex-negative: 0;\r\n -webkit-flex-shrink: 0;\r\n flex-shrink: 0;\r\n -ms-flex-preferred-size: 25%;\r\n -webkit-flex-basis: 25%;\r\n flex-basis: 25%;\r\n\r\n /* for theme */\r\n background: #ffffff;\r\n /* box-shadow: 2px 2px 2px 2px rgb(221 221 221 / 60%); */\r\n box-shadow: rgba(50, 50, 93, 0.25) 0px 2px 5px -1px, rgba(0, 0, 0, 0.3) 0px 1px 3px -1px;\r\n border-radius: 5px;\r\n\r\n -webkit-touch-callout: none;\r\n -webkit-user-select: none;\r\n -ms-user-select: none;\r\n user-select: none;\n}\r\n\r\n.vertical-cell[data-v-3e00ee98] {\r\n display: inline-block;\r\n height: 50px;\n}\r\n\r\n.horizontal-cell[data-v-3e00ee98] {\r\n display: -webkit-inline-flex;\r\n display: -ms-inline-flexbox;\r\n display: inline-flex;\r\n height: unset !important;\r\n width: 90px;\n}\r\n\r\n.dummycell[data-v-3e00ee98] {\r\n height: 20px;\n}\r\n\r\n.cell-text[data-v-3e00ee98] {\r\n width: 100%;\r\n text-align: center;\r\n font-size: 18pt;\r\n\r\n -webkit-touch-callout: none;\r\n -webkit-user-select: none;\r\n -ms-user-select: none;\r\n user-select: none;\n}\r\n";
styleInject(css_248z);
script.render = render;
script.__scopeId = "data-v-8c8d083e";
script.__scopeId = "data-v-3e00ee98";

@@ -541,0 +543,0 @@ exports["default"] = script;

@@ -5,7 +5,7 @@

// https://github.com/yannisraft/chronocraft-scroller-vue.git
// v0.0.15
// v0.0.18
// MIT License
import { s as script } from './Scroller-86e3ae02.js';
export { s as Scroller } from './Scroller-86e3ae02.js';
import { s as script } from './Scroller-b18b97b5.js';
export { s as Scroller } from './Scroller-b18b97b5.js';
import 'vue';

@@ -12,0 +12,0 @@

@@ -5,7 +5,7 @@

// https://github.com/yannisraft/chronocraft-scroller-vue.git
// v0.0.15
// v0.0.18
// MIT License
import { s as script } from './Scroller-86e3ae02.js';
export { s as default } from './Scroller-86e3ae02.js';
import { s as script } from './Scroller-b18b97b5.js';
export { s as default } from './Scroller-b18b97b5.js';
import 'vue';
{
"name": "chronocraft-scroller-vue",
"buildname": "chronoscrollervue",
"version": "0.0.17",
"version": "0.0.18",
"description": "A Vue 3 Dynamic and Versatile High Performance Infinite Scroller Component",

@@ -6,0 +6,0 @@ "main": "dist/cjs/index.js",

@@ -41,2 +41,17 @@ # A Vue 3 Dynamic and Versatile High Performance Infinite Scroller Component

#### Example of Component
```html
<Scroller orientation="horizontal" :cellwidth="200" :numcols="4" :numrows="4" :contentpadding="30" :wheelscrollspeed="20" :newcellslength="newcellslength" :data="scrollerdata" :cellsquared="true" @on-scroll="OnScroll" @on-update-data-next="onUpdateDataNext" @on-update-data-previous="onUpdateDataPrevious"/>
```
#### Example using Cell Slot
```html
<Scroller orientation="horizontal" :cellwidth="200" :numcols="4" :numrows="4" :contentpadding="30" :wheelscrollspeed="20" :newcellslength="newcellslength" :data="scrollerdata" :cellsquared="true" @on-scroll="OnScroll" @on-update-data-next="onUpdateDataNext" @on-update-data-previous="onUpdateDataPrevious">
<template v-slot:cell="slotProps">
<span>{{ slotProps.data.id }}</span>
</template>
</Scroller>
```
### Important Notice

@@ -43,0 +58,0 @@ To achive a smooth scrolling result without shaking or weird movement, the number of data cells loaded at initialization is relevant

Sorry, the diff of this file is not supported yet

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc