primereact 9.3.0 → 9.3.1
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/README.md +5 -9
- package/accordion/accordion.js +1 -1
- package/accordion/accordion.min.js +1 -1
- package/api/api.cjs.js +1 -0
- package/api/api.cjs.min.js +1 -1
- package/api/api.esm.js +1 -0
- package/api/api.esm.min.js +1 -1
- package/api/api.js +1 -0
- package/api/api.min.js +1 -1
- package/autocomplete/autocomplete.js +1 -1
- package/autocomplete/autocomplete.min.js +1 -1
- package/breadcrumb/breadcrumb.js +1 -1
- package/breadcrumb/breadcrumb.min.js +1 -1
- package/button/button.js +1 -1
- package/button/button.min.js +1 -1
- package/calendar/calendar.cjs.js +2 -1
- package/calendar/calendar.cjs.min.js +1 -1
- package/calendar/calendar.d.ts +1 -1
- package/calendar/calendar.esm.js +2 -1
- package/calendar/calendar.esm.min.js +1 -1
- package/calendar/calendar.js +3 -2
- package/calendar/calendar.min.js +1 -1
- package/carousel/carousel.d.ts +2 -2
- package/carousel/carousel.js +1 -1
- package/carousel/carousel.min.js +1 -1
- package/cascadeselect/cascadeselect.js +1 -1
- package/cascadeselect/cascadeselect.min.js +1 -1
- package/checkbox/checkbox.js +1 -1
- package/checkbox/checkbox.min.js +1 -1
- package/chip/chip.js +1 -1
- package/chip/chip.min.js +1 -1
- package/chips/chips.js +1 -1
- package/chips/chips.min.js +1 -1
- package/contextmenu/contextmenu.js +1 -1
- package/contextmenu/contextmenu.min.js +1 -1
- package/core/core.js +64 -52
- package/core/core.min.js +10 -10
- package/datatable/datatable.cjs.js +12 -8
- package/datatable/datatable.cjs.min.js +1 -1
- package/datatable/datatable.d.ts +19 -3
- package/datatable/datatable.esm.js +12 -8
- package/datatable/datatable.esm.min.js +1 -1
- package/datatable/datatable.js +11 -7
- package/datatable/datatable.min.js +1 -1
- package/dataview/dataview.js +1 -1
- package/dataview/dataview.min.js +1 -1
- package/dialog/dialog.js +1 -1
- package/dialog/dialog.min.js +1 -1
- package/dropdown/dropdown.js +1 -1
- package/dropdown/dropdown.min.js +1 -1
- package/fieldset/fieldset.js +1 -1
- package/fieldset/fieldset.min.js +1 -1
- package/fileupload/fileupload.js +1 -1
- package/fileupload/fileupload.min.js +1 -1
- package/galleria/galleria.d.ts +4 -4
- package/galleria/galleria.js +1 -1
- package/galleria/galleria.min.js +1 -1
- package/image/image.cjs.js +22 -9
- package/image/image.cjs.min.js +1 -1
- package/image/image.d.ts +22 -6
- package/image/image.esm.js +22 -9
- package/image/image.esm.min.js +1 -1
- package/image/image.js +23 -10
- package/image/image.min.js +1 -1
- package/inplace/inplace.js +1 -1
- package/inplace/inplace.min.js +1 -1
- package/inputmask/inputmask.d.ts +1 -1
- package/inputnumber/inputnumber.js +1 -1
- package/inputnumber/inputnumber.min.js +1 -1
- package/inputtextarea/inputtextarea.cjs.js +2 -2
- package/inputtextarea/inputtextarea.cjs.min.js +1 -1
- package/inputtextarea/inputtextarea.esm.js +2 -2
- package/inputtextarea/inputtextarea.esm.min.js +1 -1
- package/inputtextarea/inputtextarea.js +2 -2
- package/inputtextarea/inputtextarea.min.js +1 -1
- package/listbox/listbox.js +1 -1
- package/listbox/listbox.min.js +1 -1
- package/megamenu/megamenu.js +1 -1
- package/megamenu/megamenu.min.js +1 -1
- package/mention/mention.cjs.js +3 -2
- package/mention/mention.cjs.min.js +1 -1
- package/mention/mention.esm.js +3 -2
- package/mention/mention.esm.min.js +1 -1
- package/mention/mention.js +3 -2
- package/mention/mention.min.js +1 -1
- package/menubar/menubar.js +1 -1
- package/menubar/menubar.min.js +1 -1
- package/message/message.d.ts +1 -1
- package/message/message.js +1 -1
- package/message/message.min.js +1 -1
- package/messages/messages.cjs.js +56 -45
- package/messages/messages.cjs.min.js +1 -1
- package/messages/messages.d.ts +5 -0
- package/messages/messages.esm.js +56 -45
- package/messages/messages.esm.min.js +1 -1
- package/messages/messages.js +54 -43
- package/messages/messages.min.js +1 -1
- package/multiselect/multiselect.js +1 -1
- package/multiselect/multiselect.min.js +1 -1
- package/orderlist/orderlist.js +1 -1
- package/orderlist/orderlist.min.js +1 -1
- package/organizationchart/organizationchart.js +1 -1
- package/organizationchart/organizationchart.min.js +1 -1
- package/overlaypanel/overlaypanel.js +1 -1
- package/overlaypanel/overlaypanel.min.js +1 -1
- package/package.json +1 -1
- package/paginator/paginator.cjs.js +1 -1
- package/paginator/paginator.cjs.min.js +1 -1
- package/paginator/paginator.esm.js +1 -1
- package/paginator/paginator.esm.min.js +1 -1
- package/paginator/paginator.js +2 -2
- package/paginator/paginator.min.js +1 -1
- package/panel/panel.js +1 -1
- package/panel/panel.min.js +1 -1
- package/panelmenu/panelmenu.js +1 -1
- package/panelmenu/panelmenu.min.js +1 -1
- package/password/password.cjs.js +3 -9
- package/password/password.cjs.min.js +1 -1
- package/password/password.d.ts +1 -1
- package/password/password.esm.js +3 -9
- package/password/password.esm.min.js +1 -1
- package/password/password.js +4 -10
- package/password/password.min.js +1 -1
- package/picklist/picklist.cjs.js +2 -2
- package/picklist/picklist.cjs.min.js +1 -1
- package/picklist/picklist.esm.js +2 -2
- package/picklist/picklist.esm.min.js +1 -1
- package/picklist/picklist.js +3 -3
- package/picklist/picklist.min.js +1 -1
- package/primereact.all.cjs.js +97 -72
- package/primereact.all.cjs.min.js +1 -1
- package/primereact.all.esm.js +97 -72
- package/primereact.all.esm.min.js +1 -1
- package/primereact.all.js +97 -72
- package/primereact.all.min.js +1 -1
- package/rating/rating.js +1 -1
- package/rating/rating.min.js +1 -1
- package/resources/primereact.css +482 -482
- package/resources/primereact.min.css +1 -1
- package/scrolltop/scrolltop.js +1 -1
- package/scrolltop/scrolltop.min.js +1 -1
- package/sidebar/sidebar.js +1 -1
- package/sidebar/sidebar.min.js +1 -1
- package/slidemenu/slidemenu.js +1 -1
- package/slidemenu/slidemenu.min.js +1 -1
- package/speeddial/speeddial.js +1 -1
- package/speeddial/speeddial.min.js +1 -1
- package/splitbutton/splitbutton.js +1 -1
- package/splitbutton/splitbutton.min.js +1 -1
- package/tabview/tabview.cjs.js +1 -1
- package/tabview/tabview.cjs.min.js +1 -1
- package/tabview/tabview.d.ts +3 -3
- package/tabview/tabview.esm.js +1 -1
- package/tabview/tabview.esm.min.js +1 -1
- package/tabview/tabview.js +2 -2
- package/tabview/tabview.min.js +1 -1
- package/tieredmenu/tieredmenu.cjs.js +1 -1
- package/tieredmenu/tieredmenu.cjs.min.js +1 -1
- package/tieredmenu/tieredmenu.esm.js +1 -1
- package/tieredmenu/tieredmenu.esm.min.js +1 -1
- package/tieredmenu/tieredmenu.js +2 -2
- package/tieredmenu/tieredmenu.min.js +1 -1
- package/toast/toast.js +1 -1
- package/toast/toast.min.js +1 -1
- package/tree/tree.js +1 -1
- package/tree/tree.min.js +1 -1
- package/treeselect/treeselect.js +1 -1
- package/treeselect/treeselect.min.js +1 -1
- package/treetable/treetable.js +1 -1
- package/treetable/treetable.min.js +1 -1
- package/tristatecheckbox/tristatecheckbox.js +1 -1
- package/tristatecheckbox/tristatecheckbox.min.js +1 -1
- package/virtualscroller/virtualscroller.js +1 -1
- package/virtualscroller/virtualscroller.min.js +1 -1
- package/web-types.json +5 -199
|
@@ -1 +1 @@
|
|
|
1
|
-
this.primereact=this.primereact||{},this.primereact.virtualscroller=function(e,t,r,n,o){"use strict";function l(e){if(e&&e.__esModule)return e;var t=Object.create(null);return e&&Object.keys(e).forEach((function(r){if("default"!==r){var n=Object.getOwnPropertyDescriptor(e,r);Object.defineProperty(t,r,n.get?n:{enumerable:!0,get:function(){return e[r]}})}})),t.default=e,Object.freeze(t)}var i=l(t);function s(){return s=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},s.apply(this,arguments)}function c(e){return c="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},c(e)}function a(e,t){if("object"!==c(e)||null===e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var n=r.call(e,t||"default");if("object"!==c(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}function u(e){var t=a(e,"string");return"symbol"===c(t)?t:String(t)}function f(e,t,r){return(t=u(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function m(e){if(Array.isArray(e))return e}function p(e,t){var r=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=r){var n,o,l,i,s=[],c=!0,a=!1;try{if(l=(r=r.call(e)).next,0===t){if(Object(r)!==r)return;c=!1}else for(;!(c=(n=l.call(r)).done)&&(s.push(n.value),s.length!==t);c=!0);}catch(e){a=!0,o=e}finally{try{if(!c&&null!=r.return&&(i=r.return(),Object(i)!==i))return}finally{if(a)throw o}}return s}}function d(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}function g(e,t){if(e){if("string"==typeof e)return d(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);return"Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r?Array.from(e):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?d(e,t):void 0}}function h(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function v(e,t){return m(e)||p(e,t)||g(e,t)||h()}var y={defaultProps:{__TYPE:"VirtualScroller",id:null,style:null,className:null,tabIndex:0,items:null,itemSize:0,scrollHeight:null,scrollWidth:null,orientation:"vertical",step:0,numToleratedItems:null,delay:0,resizeDelay:10,appendOnly:!1,inline:!1,lazy:!1,disabled:!1,loaderDisabled:!1,loadingIcon:null,columns:null,loading:void 0,autoSize:!1,showSpacer:!0,showLoader:!1,loadingTemplate:null,loaderIconTemplate:null,itemTemplate:null,contentTemplate:null,onScroll:null,onScrollIndexChange:null,onLazyLoad:null,children:void 0},getProps:function(e){return n.ObjectUtils.getMergedProps(e,y.defaultProps)},getOtherProps:function(e){return n.ObjectUtils.getDiffProps(e,y.defaultProps)}};function w(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function b(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?w(Object(r),!0).forEach((function(t){f(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):w(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}var S=i.memo(i.forwardRef((function(e,t){var l=y.getProps(e),c=r.usePrevious(e)||{},a="vertical"===l.orientation,u="horizontal"===l.orientation,m="both"===l.orientation,p=v(i.useState(m?{rows:0,cols:0}:0),2),d=p[0],g=p[1],h=v(i.useState(m?{rows:0,cols:0}:0),2),w=h[0],S=h[1],O=v(i.useState(0),2),z=O[0],j=O[1],T=v(i.useState(m?{rows:0,cols:0}:0),2),I=T[0],E=T[1],R=v(i.useState(l.numToleratedItems),2),P=R[0],x=R[1],H=v(i.useState(l.loading||!1),2),D=H[0],L=H[1],M=v(i.useState([]),2),U=M[0],N=M[1],W=i.useRef(null),F=i.useRef(null),C=i.useRef(null),A=i.useRef(null),V=i.useRef(m?{top:0,left:0}:0),k=i.useRef(null),J=i.useRef(null),X=i.useRef({}),_=i.useRef({}),B=i.useRef(null),Y=i.useRef(null),$=i.useRef(null),q=i.useRef(null),G=i.useRef(!1),K=i.useRef(null),Q=v(r.useResizeListener({listener:function(e){return he()},when:!l.disabled}),1)[0],Z=v(r.useEventListener({target:"window",type:"orientationchange",listener:function(e){return he()},when:!l.disabled}),1)[0],ee=function(){return W},te=function(e){return Math.floor((e+4*P)/(l.step||1))},re=function(e){return!l.step||z!==te(e)},ne=function(e){V.current=m?{top:0,left:0}:0,W.current&&W.current.scrollTo(e)},oe=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"auto",r=se().numToleratedItems,n=ue(),o=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0;return e<=(arguments.length>1?arguments[1]:void 0)?0:e},i=function(e,t,r){return e*t+r},s=function(){return ne({left:arguments.length>0&&void 0!==arguments[0]?arguments[0]:0,top:arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,behavior:t})},c=m?{rows:0,cols:0}:0,a=!1;m?(s(i((c={rows:o(e[0],r[0]),cols:o(e[1],r[1])}).cols,l.itemSize[1],n.left),i(c.rows,l.itemSize[0],n.top)),a=d.rows!==c.rows||d.cols!==c.cols):(c=o(e,r),u?s(i(c,l.itemSize,n.left),0):s(0,i(c,l.itemSize,n.top)),a=d!==c),G.current=a,g(c)},le=function(e,t){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"auto";if(t){var n=ie(),o=n.first,i=n.viewport,s=function(){return ne({left:arguments.length>0&&void 0!==arguments[0]?arguments[0]:0,top:arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,behavior:r})},c="to-end"===t;if("to-start"===t){if(m)i.first.rows-o.rows>e[0]?s(i.first.cols*l.itemSize[1],(i.first.rows-1)*l.itemSize[0]):i.first.cols-o.cols>e[1]&&s((i.first.cols-1)*l.itemSize[1],i.first.rows*l.itemSize[0]);else if(i.first-o>e){var a=(i.first-1)*l.itemSize;u?s(a,0):s(0,a)}}else if(c)if(m)i.last.rows-o.rows<=e[0]+1?s(i.first.cols*l.itemSize[1],(i.first.rows+1)*l.itemSize[0]):i.last.cols-o.cols<=e[1]+1&&s((i.first.cols+1)*l.itemSize[1],i.first.rows*l.itemSize[0]);else if(i.last-o<=e+1){var f=(i.first+1)*l.itemSize;u?s(f,0):s(0,f)}}else oe(e,r)},ie=function(){var e=function(e,t){return Math.floor(e/(t||e))},t=d,r=0;if(W.current){var n=W.current,o=n.scrollTop,i=n.scrollLeft;if(m)r={rows:(t={rows:e(o,l.itemSize[0]),cols:e(i,l.itemSize[1])}).rows+I.rows,cols:t.cols+I.cols};else r=(t=e(u?i:o,l.itemSize))+I}return{first:d,last:w,viewport:{first:t,last:r}}},se=function(){var e=ue(),t=W.current?W.current.offsetWidth-e.left:0,r=W.current?W.current.offsetHeight-e.top:0,n=function(e,t){return Math.ceil(e/(t||e))},o=function(e){return Math.ceil(e/2)},i=m?{rows:n(r,l.itemSize[0]),cols:n(t,l.itemSize[1])}:n(u?t:r,l.itemSize);return{numItemsInViewport:i,numToleratedItems:P||(m?[o(i.rows),o(i.cols)]:o(i))}},ce=function(e){l.autoSize&&!e&&Promise.resolve().then((function(){if(F.current){F.current.style.minHeight=F.current.style.minWidth="auto",F.current.style.position="relative",W.current.style.contain="none";var e=[n.DomHandler.getWidth(W.current),n.DomHandler.getHeight(W.current)],t=e[0],r=e[1];(m||u)&&(W.current.style.width=(t<B.current?t:l.scrollWidth||B.current)+"px"),(m||a)&&(W.current.style.height=(r<Y.current?r:l.scrollHeight||Y.current)+"px"),F.current.style.minHeight=F.current.style.minWidth="",F.current.style.position="",W.current.style.contain=""}}))},ae=function(){return l.items?Math.min((arguments.length>1?arguments[1]:void 0)?(l.columns||l.items[0]).length:l.items.length,arguments.length>0&&void 0!==arguments[0]?arguments[0]:0):0},ue=function(){if(F.current){var e=getComputedStyle(F.current),t=parseFloat(e.paddingLeft)+Math.max(parseFloat(e.left)||0,0),r=parseFloat(e.paddingRight)+Math.max(parseFloat(e.right)||0,0),n=parseFloat(e.paddingTop)+Math.max(parseFloat(e.top)||0,0),o=parseFloat(e.paddingBottom)+Math.max(parseFloat(e.bottom)||0,0);return{left:t,right:r,top:n,bottom:o,x:t+r,y:n+o}}return{left:0,right:0,top:0,bottom:0,x:0,y:0}},fe=function(){if(W.current){var e=W.current.parentElement,t=l.scrollWidth||"".concat(W.current.offsetWidth||e.offsetWidth,"px"),r=l.scrollHeight||"".concat(W.current.offsetHeight||e.offsetHeight,"px"),n=function(e,t){return W.current.style[e]=t};m||u?(n("height",r),n("width",t)):n("height",r)}},me=function(){var e=l.items;if(e){var t=ue(),r=function(e,t,r){var n=arguments.length>3&&void 0!==arguments[3]?arguments[3]:0;return _.current=b(b({},_.current),f({},"".concat(e),(t||[]).length*r+n+"px"))};m?(r("height",e,l.itemSize[0],t.y),r("width",l.columns||e[1],l.itemSize[1],t.x)):u?r("width",l.columns||e,l.itemSize,t.x):r("height",e,l.itemSize,t.y)}},pe=function(e){if(F.current&&!l.appendOnly){var t=e?e.first:d,r=function(e,t){return e*t},n=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0,t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;A.current&&(A.current.style.top="-".concat(t,"px")),X.current=b(b({},X.current),{transform:"translate3d(".concat(e,"px, ").concat(t,"px, 0)")})};if(m)n(r(t.cols,l.itemSize[1]),r(t.rows,l.itemSize[0]));else{var o=r(t,l.itemSize);u?n(o,0):n(0,o)}}},de=function(e){var t=e.target,r=ue(),n=function(e,t){return e?e>t?e-t:e:0},o=function(e,t){return Math.floor(e/(t||e))},i=function(e,t,r,n,o,l){return e<=o?o:l?r-n-o:t+o-1},s=function(e,t,r,n,o,l,i){return e<=l?0:Math.max(0,i?e<t?r:e-l:e>t?r:e-2*l)},c=function(e,t,r,n,o,l){var i=t+n+2*o;return e>=o&&(i+=o+1),ae(i,l)},a=n(t.scrollTop,r.top),f=n(t.scrollLeft,r.left),p=m?{rows:0,cols:0}:0,g=w,h=!1,v=V.current;if(m){var y=V.current.top<=a,b=V.current.left<=f;if(!l.appendOnly||l.appendOnly&&(y||b)){var S={rows:o(a,l.itemSize[0]),cols:o(f,l.itemSize[1])},O={rows:i(S.rows,d.rows,w.rows,I.rows,P[0],y),cols:i(S.cols,d.cols,w.cols,I.cols,P[1],b)};p={rows:s(S.rows,O.rows,d.rows,0,0,P[0],y),cols:s(S.cols,O.cols,d.cols,0,0,P[1],b)},g={rows:c(S.rows,p.rows,0,I.rows,P[0]),cols:c(S.cols,p.cols,0,I.cols,P[1],!0)},h=p.rows!==d.rows||g.rows!==w.rows||p.cols!==d.cols||g.cols!==w.cols||G.current,v={top:a,left:f}}}else{var z=u?f:a,j=V.current<=z;if(!l.appendOnly||l.appendOnly&&j){var T=o(z,l.itemSize);g=c(T,p=s(T,i(T,d,w,I,P,j),d,0,0,P,j),0,I,P),h=p!==d||g!==w||G.current,v=z}}return{first:p,last:g,isRangeChanged:h,scrollPos:v}},ge=function(e){var t=de(e),r=t.first,n=t.last,o=t.scrollPos;if(t.isRangeChanged){var i={first:r,last:n};if(pe(i),g(r),S(n),V.current=o,l.onScrollIndexChange&&l.onScrollIndexChange(i),l.lazy&&re(r)){var s={first:l.step?Math.min(te(r)*l.step,l.items.length-l.step):r,last:Math.min(l.step?(te(r)+1)*l.step:n,l.items.length)};(!K.current||K.current.first!==s.first||K.current.last!==s.last)&&l.onLazyLoad&&l.onLazyLoad(s),K.current=s}}},he=function(){J.current&&clearTimeout(J.current),J.current=setTimeout((function(){if(W.current){var e=[n.DomHandler.getWidth(W.current),n.DomHandler.getHeight(W.current)],t=e[0],r=e[1],o=t!==B.current,i=r!==Y.current;(m?o||i:u?o:!!a&&i)&&(x(l.numToleratedItems),B.current=t,Y.current=r,$.current=n.DomHandler.getWidth(F.current),q.current=n.DomHandler.getHeight(F.current))}}),l.resizeDelay)},ve=function(e){var t=(l.items||[]).length,r=m?d.rows+e:d+e;return{index:r,count:t,first:0===r,last:r===t-1,even:r%2==0,odd:r%2!=0,props:l}},ye=function(e,t){var r=U.length;return b({index:e,count:r,first:0===e,last:e===r-1,even:e%2==0,odd:e%2!=0,props:l},t)},we=function(){var e=l.items;return e&&!D?m?e.slice(l.appendOnly?0:d.rows,w.rows).map((function(e){return l.columns?e:e.slice(l.appendOnly?0:d.cols,w.cols)})):u&&l.columns?e:e.slice(l.appendOnly?0:d,w):[]},be=function(){var e,t,r,n,o;l.disabled||(fe(),e=se(),t=e.numItemsInViewport,r=e.numToleratedItems,n=function(e,t,r){return ae(e+t+(e<r?2:3)*r,arguments.length>3&&void 0!==arguments[3]&&arguments[3])},o=m?{rows:n(d.rows,t.rows,r[0]),cols:n(d.cols,t.cols,r[1],!0)}:n(d,t,r),E(t),x(r),S(o),l.showLoader&&N(m?Array.from({length:t.rows}).map((function(){return Array.from({length:t.cols})})):Array.from({length:t})),l.lazy&&Promise.resolve().then((function(){K.current={first:l.step?m?{rows:0,cols:d.cols}:0:d,last:Math.min(l.step?l.step:o,l.items.length)},l.onLazyLoad&&l.onLazyLoad(K.current)})),me())};r.useMountEffect((function(){W.current&&n.DomHandler.isVisible(W.current)&&(F.current=F.current||F.current||n.DomHandler.findSingle(W.current,".p-virtualscroller-content"),be(),Q(),Z(),B.current=n.DomHandler.getWidth(W.current),Y.current=n.DomHandler.getHeight(W.current),$.current=n.DomHandler.getWidth(F.current),q.current=n.DomHandler.getHeight(F.current))})),r.useUpdateEffect((function(){be()}),[l.itemSize,l.scrollHeight,l.scrollWidth]),r.useUpdateEffect((function(){l.numToleratedItems!==P&&x(l.numToleratedItems)}),[l.numToleratedItems]),r.useUpdateEffect((function(){l.numToleratedItems===P&&be()}),[P]),r.useUpdateEffect((function(){c.items&&c.items.length===(l.items||[]).length||be();var e=D;l.lazy&&c.loading!==l.loading&&l.loading!==D&&(L(l.loading),e=l.loading),ce(e)})),r.useUpdateEffect((function(){V.current=m?{top:0,left:0}:0}),[l.orientation]),i.useImperativeHandle(t,(function(){return{props:l,getElementRef:ee,scrollTo:ne,scrollToIndex:oe,scrollInView:le,getRenderedRange:ie}}));var Se=function(e){var t=ye(e,arguments.length>1&&void 0!==arguments[1]?arguments[1]:{}),r=n.ObjectUtils.getJSXElement(l.loadingTemplate,t);return i.createElement(i.Fragment,{key:e},r)},Oe=function(e,t){var r=ve(t),o=n.ObjectUtils.getJSXElement(l.itemTemplate,e,r);return i.createElement(i.Fragment,{key:r.index},o)};if(l.disabled){var ze=n.ObjectUtils.getJSXElement(l.contentTemplate,{items:l.items,rows:l.items,columns:l.columns});return i.createElement(i.Fragment,null,l.children,ze)}var je=y.getOtherProps(l),Te=n.classNames("p-virtualscroller",{"p-virtualscroller-inline":l.inline,"p-virtualscroller-both p-both-scroll":m,"p-virtualscroller-horizontal p-horizontal-scroll":u},l.className),Ie=function(){var e="p-virtualscroller-loading-icon",t=n.IconUtils.getJSXIcon(l.loadingIcon||i.createElement(o.SpinnerIcon,{className:e,spin:!0}),{className:e},{props:l});if(!l.loaderDisabled&&l.showLoader&&D){var r=n.classNames("p-virtualscroller-loader",{"p-component-overlay":!l.loadingTemplate}),s=t;return l.loadingTemplate?s=U.map((function(e,t){return Se(t,m&&{numCols:I.cols})})):l.loaderIconTemplate&&(s=n.ObjectUtils.getJSXElement(l.loaderIconTemplate,{iconClassName:e,element:s,props:l})),i.createElement("div",{className:r},s)}return null}(),Ee=function(){var e=we().map(Oe),t=n.classNames("p-virtualscroller-content",{"p-virtualscroller-loading":D}),r=i.createElement("div",{ref:F,style:X.current,className:t},e);if(l.contentTemplate){var o={style:X.current,className:t,spacerStyle:_.current,contentRef:function(e){return F.current=n.ObjectUtils.getRefElement(e)},spacerRef:function(e){return C.current=n.ObjectUtils.getRefElement(e)},stickyRef:function(e){return A.current=n.ObjectUtils.getRefElement(e)},items:we(),getItemOptions:function(e){return ve(e)},children:e,element:r,props:l,loading:D,getLoaderOptions:function(e,t){return ye(e,t)},loadingTemplate:l.loadingTemplate,itemSize:l.itemSize,rows:D?l.loaderDisabled?U:[]:we(),columns:l.columns&&m||u?D&&l.loaderDisabled?m?U[0]:U:l.columns.slice(m?d.cols:d,m?w.cols:w):l.columns,vertical:a,horizontal:u,both:m};return n.ObjectUtils.getJSXElement(l.contentTemplate,o)}return r}(),Re=l.showSpacer?i.createElement("div",{ref:C,style:_.current,className:"p-virtualscroller-spacer"}):null;return i.createElement("div",s({ref:W,className:Te,tabIndex:l.tabIndex,style:l.style},je,{onScroll:function(e){l.onScroll&&l.onScroll(e),l.delay?(k.current&&clearTimeout(k.current),re(d)&&(!D&&l.showLoader&&(de(e).isRangeChanged||l.step&&re(d))&&L(!0),k.current=setTimeout((function(){ge(e),!D||!l.showLoader||l.lazy&&void 0!==l.loading||(L(!1),j(te(d)))}),l.delay))):ge(e)}}),Ee,Re,Ie)})));return S.displayName="VirtualScroller",e.VirtualScroller=S,Object.defineProperty(e,"__esModule",{value:!0}),e}({},React,primereact.hooks,primereact.utils,primereact.icons/spinner);
|
|
1
|
+
this.primereact=this.primereact||{},this.primereact.virtualscroller=function(e,t,r,n,o){"use strict";function l(e){if(e&&e.__esModule)return e;var t=Object.create(null);return e&&Object.keys(e).forEach((function(r){if("default"!==r){var n=Object.getOwnPropertyDescriptor(e,r);Object.defineProperty(t,r,n.get?n:{enumerable:!0,get:function(){return e[r]}})}})),t.default=e,Object.freeze(t)}var i=l(t);function s(){return s=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},s.apply(this,arguments)}function c(e){return c="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},c(e)}function a(e,t){if("object"!==c(e)||null===e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var n=r.call(e,t||"default");if("object"!==c(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}function u(e){var t=a(e,"string");return"symbol"===c(t)?t:String(t)}function f(e,t,r){return(t=u(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function m(e){if(Array.isArray(e))return e}function p(e,t){var r=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=r){var n,o,l,i,s=[],c=!0,a=!1;try{if(l=(r=r.call(e)).next,0===t){if(Object(r)!==r)return;c=!1}else for(;!(c=(n=l.call(r)).done)&&(s.push(n.value),s.length!==t);c=!0);}catch(e){a=!0,o=e}finally{try{if(!c&&null!=r.return&&(i=r.return(),Object(i)!==i))return}finally{if(a)throw o}}return s}}function d(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}function g(e,t){if(e){if("string"==typeof e)return d(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);return"Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r?Array.from(e):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?d(e,t):void 0}}function h(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function v(e,t){return m(e)||p(e,t)||g(e,t)||h()}var y={defaultProps:{__TYPE:"VirtualScroller",id:null,style:null,className:null,tabIndex:0,items:null,itemSize:0,scrollHeight:null,scrollWidth:null,orientation:"vertical",step:0,numToleratedItems:null,delay:0,resizeDelay:10,appendOnly:!1,inline:!1,lazy:!1,disabled:!1,loaderDisabled:!1,loadingIcon:null,columns:null,loading:void 0,autoSize:!1,showSpacer:!0,showLoader:!1,loadingTemplate:null,loaderIconTemplate:null,itemTemplate:null,contentTemplate:null,onScroll:null,onScrollIndexChange:null,onLazyLoad:null,children:void 0},getProps:function(e){return n.ObjectUtils.getMergedProps(e,y.defaultProps)},getOtherProps:function(e){return n.ObjectUtils.getDiffProps(e,y.defaultProps)}};function w(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function b(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?w(Object(r),!0).forEach((function(t){f(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):w(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}var S=i.memo(i.forwardRef((function(e,t){var l=y.getProps(e),c=r.usePrevious(e)||{},a="vertical"===l.orientation,u="horizontal"===l.orientation,m="both"===l.orientation,p=v(i.useState(m?{rows:0,cols:0}:0),2),d=p[0],g=p[1],h=v(i.useState(m?{rows:0,cols:0}:0),2),w=h[0],S=h[1],O=v(i.useState(0),2),z=O[0],j=O[1],T=v(i.useState(m?{rows:0,cols:0}:0),2),I=T[0],E=T[1],R=v(i.useState(l.numToleratedItems),2),P=R[0],x=R[1],H=v(i.useState(l.loading||!1),2),D=H[0],L=H[1],M=v(i.useState([]),2),U=M[0],N=M[1],W=i.useRef(null),F=i.useRef(null),C=i.useRef(null),A=i.useRef(null),V=i.useRef(m?{top:0,left:0}:0),k=i.useRef(null),J=i.useRef(null),X=i.useRef({}),_=i.useRef({}),B=i.useRef(null),Y=i.useRef(null),$=i.useRef(null),q=i.useRef(null),G=i.useRef(!1),K=i.useRef(null),Q=v(r.useResizeListener({listener:function(e){return he()},when:!l.disabled}),1)[0],Z=v(r.useEventListener({target:"window",type:"orientationchange",listener:function(e){return he()},when:!l.disabled}),1)[0],ee=function(){return W},te=function(e){return Math.floor((e+4*P)/(l.step||1))},re=function(e){return!l.step||z!==te(e)},ne=function(e){V.current=m?{top:0,left:0}:0,W.current&&W.current.scrollTo(e)},oe=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"auto",r=se().numToleratedItems,n=ue(),o=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0;return e<=(arguments.length>1?arguments[1]:void 0)?0:e},i=function(e,t,r){return e*t+r},s=function(){return ne({left:arguments.length>0&&void 0!==arguments[0]?arguments[0]:0,top:arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,behavior:t})},c=m?{rows:0,cols:0}:0,a=!1;m?(s(i((c={rows:o(e[0],r[0]),cols:o(e[1],r[1])}).cols,l.itemSize[1],n.left),i(c.rows,l.itemSize[0],n.top)),a=d.rows!==c.rows||d.cols!==c.cols):(c=o(e,r),u?s(i(c,l.itemSize,n.left),0):s(0,i(c,l.itemSize,n.top)),a=d!==c),G.current=a,g(c)},le=function(e,t){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"auto";if(t){var n=ie(),o=n.first,i=n.viewport,s=function(){return ne({left:arguments.length>0&&void 0!==arguments[0]?arguments[0]:0,top:arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,behavior:r})},c="to-end"===t;if("to-start"===t){if(m)i.first.rows-o.rows>e[0]?s(i.first.cols*l.itemSize[1],(i.first.rows-1)*l.itemSize[0]):i.first.cols-o.cols>e[1]&&s((i.first.cols-1)*l.itemSize[1],i.first.rows*l.itemSize[0]);else if(i.first-o>e){var a=(i.first-1)*l.itemSize;u?s(a,0):s(0,a)}}else if(c)if(m)i.last.rows-o.rows<=e[0]+1?s(i.first.cols*l.itemSize[1],(i.first.rows+1)*l.itemSize[0]):i.last.cols-o.cols<=e[1]+1&&s((i.first.cols+1)*l.itemSize[1],i.first.rows*l.itemSize[0]);else if(i.last-o<=e+1){var f=(i.first+1)*l.itemSize;u?s(f,0):s(0,f)}}else oe(e,r)},ie=function(){var e=function(e,t){return Math.floor(e/(t||e))},t=d,r=0;if(W.current){var n=W.current,o=n.scrollTop,i=n.scrollLeft;if(m)r={rows:(t={rows:e(o,l.itemSize[0]),cols:e(i,l.itemSize[1])}).rows+I.rows,cols:t.cols+I.cols};else r=(t=e(u?i:o,l.itemSize))+I}return{first:d,last:w,viewport:{first:t,last:r}}},se=function(){var e=ue(),t=W.current?W.current.offsetWidth-e.left:0,r=W.current?W.current.offsetHeight-e.top:0,n=function(e,t){return Math.ceil(e/(t||e))},o=function(e){return Math.ceil(e/2)},i=m?{rows:n(r,l.itemSize[0]),cols:n(t,l.itemSize[1])}:n(u?t:r,l.itemSize);return{numItemsInViewport:i,numToleratedItems:P||(m?[o(i.rows),o(i.cols)]:o(i))}},ce=function(e){l.autoSize&&!e&&Promise.resolve().then((function(){if(F.current){F.current.style.minHeight=F.current.style.minWidth="auto",F.current.style.position="relative",W.current.style.contain="none";var e=[n.DomHandler.getWidth(W.current),n.DomHandler.getHeight(W.current)],t=e[0],r=e[1];(m||u)&&(W.current.style.width=(t<B.current?t:l.scrollWidth||B.current)+"px"),(m||a)&&(W.current.style.height=(r<Y.current?r:l.scrollHeight||Y.current)+"px"),F.current.style.minHeight=F.current.style.minWidth="",F.current.style.position="",W.current.style.contain=""}}))},ae=function(){return l.items?Math.min((arguments.length>1?arguments[1]:void 0)?(l.columns||l.items[0]).length:l.items.length,arguments.length>0&&void 0!==arguments[0]?arguments[0]:0):0},ue=function(){if(F.current){var e=getComputedStyle(F.current),t=parseFloat(e.paddingLeft)+Math.max(parseFloat(e.left)||0,0),r=parseFloat(e.paddingRight)+Math.max(parseFloat(e.right)||0,0),n=parseFloat(e.paddingTop)+Math.max(parseFloat(e.top)||0,0),o=parseFloat(e.paddingBottom)+Math.max(parseFloat(e.bottom)||0,0);return{left:t,right:r,top:n,bottom:o,x:t+r,y:n+o}}return{left:0,right:0,top:0,bottom:0,x:0,y:0}},fe=function(){if(W.current){var e=W.current.parentElement,t=l.scrollWidth||"".concat(W.current.offsetWidth||e.offsetWidth,"px"),r=l.scrollHeight||"".concat(W.current.offsetHeight||e.offsetHeight,"px"),n=function(e,t){return W.current.style[e]=t};m||u?(n("height",r),n("width",t)):n("height",r)}},me=function(){var e=l.items;if(e){var t=ue(),r=function(e,t,r){var n=arguments.length>3&&void 0!==arguments[3]?arguments[3]:0;return _.current=b(b({},_.current),f({},"".concat(e),(t||[]).length*r+n+"px"))};m?(r("height",e,l.itemSize[0],t.y),r("width",l.columns||e[1],l.itemSize[1],t.x)):u?r("width",l.columns||e,l.itemSize,t.x):r("height",e,l.itemSize,t.y)}},pe=function(e){if(F.current&&!l.appendOnly){var t=e?e.first:d,r=function(e,t){return e*t},n=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0,t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;A.current&&(A.current.style.top="-".concat(t,"px")),X.current=b(b({},X.current),{transform:"translate3d(".concat(e,"px, ").concat(t,"px, 0)")})};if(m)n(r(t.cols,l.itemSize[1]),r(t.rows,l.itemSize[0]));else{var o=r(t,l.itemSize);u?n(o,0):n(0,o)}}},de=function(e){var t=e.target,r=ue(),n=function(e,t){return e?e>t?e-t:e:0},o=function(e,t){return Math.floor(e/(t||e))},i=function(e,t,r,n,o,l){return e<=o?o:l?r-n-o:t+o-1},s=function(e,t,r,n,o,l,i){return e<=l?0:Math.max(0,i?e<t?r:e-l:e>t?r:e-2*l)},c=function(e,t,r,n,o,l){var i=t+n+2*o;return e>=o&&(i+=o+1),ae(i,l)},a=n(t.scrollTop,r.top),f=n(t.scrollLeft,r.left),p=m?{rows:0,cols:0}:0,g=w,h=!1,v=V.current;if(m){var y=V.current.top<=a,b=V.current.left<=f;if(!l.appendOnly||l.appendOnly&&(y||b)){var S={rows:o(a,l.itemSize[0]),cols:o(f,l.itemSize[1])},O={rows:i(S.rows,d.rows,w.rows,I.rows,P[0],y),cols:i(S.cols,d.cols,w.cols,I.cols,P[1],b)};p={rows:s(S.rows,O.rows,d.rows,0,0,P[0],y),cols:s(S.cols,O.cols,d.cols,0,0,P[1],b)},g={rows:c(S.rows,p.rows,0,I.rows,P[0]),cols:c(S.cols,p.cols,0,I.cols,P[1],!0)},h=p.rows!==d.rows||g.rows!==w.rows||p.cols!==d.cols||g.cols!==w.cols||G.current,v={top:a,left:f}}}else{var z=u?f:a,j=V.current<=z;if(!l.appendOnly||l.appendOnly&&j){var T=o(z,l.itemSize);g=c(T,p=s(T,i(T,d,w,I,P,j),d,0,0,P,j),0,I,P),h=p!==d||g!==w||G.current,v=z}}return{first:p,last:g,isRangeChanged:h,scrollPos:v}},ge=function(e){var t=de(e),r=t.first,n=t.last,o=t.scrollPos;if(t.isRangeChanged){var i={first:r,last:n};if(pe(i),g(r),S(n),V.current=o,l.onScrollIndexChange&&l.onScrollIndexChange(i),l.lazy&&re(r)){var s={first:l.step?Math.min(te(r)*l.step,l.items.length-l.step):r,last:Math.min(l.step?(te(r)+1)*l.step:n,l.items.length)};(!K.current||K.current.first!==s.first||K.current.last!==s.last)&&l.onLazyLoad&&l.onLazyLoad(s),K.current=s}}},he=function(){J.current&&clearTimeout(J.current),J.current=setTimeout((function(){if(W.current){var e=[n.DomHandler.getWidth(W.current),n.DomHandler.getHeight(W.current)],t=e[0],r=e[1],o=t!==B.current,i=r!==Y.current;(m?o||i:u?o:!!a&&i)&&(x(l.numToleratedItems),B.current=t,Y.current=r,$.current=n.DomHandler.getWidth(F.current),q.current=n.DomHandler.getHeight(F.current))}}),l.resizeDelay)},ve=function(e){var t=(l.items||[]).length,r=m?d.rows+e:d+e;return{index:r,count:t,first:0===r,last:r===t-1,even:r%2==0,odd:r%2!=0,props:l}},ye=function(e,t){var r=U.length;return b({index:e,count:r,first:0===e,last:e===r-1,even:e%2==0,odd:e%2!=0,props:l},t)},we=function(){var e=l.items;return e&&!D?m?e.slice(l.appendOnly?0:d.rows,w.rows).map((function(e){return l.columns?e:e.slice(l.appendOnly?0:d.cols,w.cols)})):u&&l.columns?e:e.slice(l.appendOnly?0:d,w):[]},be=function(){var e,t,r,n,o;l.disabled||(fe(),e=se(),t=e.numItemsInViewport,r=e.numToleratedItems,n=function(e,t,r){return ae(e+t+(e<r?2:3)*r,arguments.length>3&&void 0!==arguments[3]&&arguments[3])},o=m?{rows:n(d.rows,t.rows,r[0]),cols:n(d.cols,t.cols,r[1],!0)}:n(d,t,r),E(t),x(r),S(o),l.showLoader&&N(m?Array.from({length:t.rows}).map((function(){return Array.from({length:t.cols})})):Array.from({length:t})),l.lazy&&Promise.resolve().then((function(){K.current={first:l.step?m?{rows:0,cols:d.cols}:0:d,last:Math.min(l.step?l.step:o,l.items.length)},l.onLazyLoad&&l.onLazyLoad(K.current)})),me())};r.useMountEffect((function(){W.current&&n.DomHandler.isVisible(W.current)&&(F.current=F.current||F.current||n.DomHandler.findSingle(W.current,".p-virtualscroller-content"),be(),Q(),Z(),B.current=n.DomHandler.getWidth(W.current),Y.current=n.DomHandler.getHeight(W.current),$.current=n.DomHandler.getWidth(F.current),q.current=n.DomHandler.getHeight(F.current))})),r.useUpdateEffect((function(){be()}),[l.itemSize,l.scrollHeight,l.scrollWidth]),r.useUpdateEffect((function(){l.numToleratedItems!==P&&x(l.numToleratedItems)}),[l.numToleratedItems]),r.useUpdateEffect((function(){l.numToleratedItems===P&&be()}),[P]),r.useUpdateEffect((function(){c.items&&c.items.length===(l.items||[]).length||be();var e=D;l.lazy&&c.loading!==l.loading&&l.loading!==D&&(L(l.loading),e=l.loading),ce(e)})),r.useUpdateEffect((function(){V.current=m?{top:0,left:0}:0}),[l.orientation]),i.useImperativeHandle(t,(function(){return{props:l,getElementRef:ee,scrollTo:ne,scrollToIndex:oe,scrollInView:le,getRenderedRange:ie}}));var Se=function(e){var t=ye(e,arguments.length>1&&void 0!==arguments[1]?arguments[1]:{}),r=n.ObjectUtils.getJSXElement(l.loadingTemplate,t);return i.createElement(i.Fragment,{key:e},r)},Oe=function(e,t){var r=ve(t),o=n.ObjectUtils.getJSXElement(l.itemTemplate,e,r);return i.createElement(i.Fragment,{key:r.index},o)};if(l.disabled){var ze=n.ObjectUtils.getJSXElement(l.contentTemplate,{items:l.items,rows:l.items,columns:l.columns});return i.createElement(i.Fragment,null,l.children,ze)}var je=y.getOtherProps(l),Te=n.classNames("p-virtualscroller",{"p-virtualscroller-inline":l.inline,"p-virtualscroller-both p-both-scroll":m,"p-virtualscroller-horizontal p-horizontal-scroll":u},l.className),Ie=function(){var e="p-virtualscroller-loading-icon",t=n.IconUtils.getJSXIcon(l.loadingIcon||i.createElement(o.SpinnerIcon,{className:e,spin:!0}),{className:e},{props:l});if(!l.loaderDisabled&&l.showLoader&&D){var r=n.classNames("p-virtualscroller-loader",{"p-component-overlay":!l.loadingTemplate}),s=t;return l.loadingTemplate?s=U.map((function(e,t){return Se(t,m&&{numCols:I.cols})})):l.loaderIconTemplate&&(s=n.ObjectUtils.getJSXElement(l.loaderIconTemplate,{iconClassName:e,element:s,props:l})),i.createElement("div",{className:r},s)}return null}(),Ee=function(){var e=we().map(Oe),t=n.classNames("p-virtualscroller-content",{"p-virtualscroller-loading":D}),r=i.createElement("div",{ref:F,style:X.current,className:t},e);if(l.contentTemplate){var o={style:X.current,className:t,spacerStyle:_.current,contentRef:function(e){return F.current=n.ObjectUtils.getRefElement(e)},spacerRef:function(e){return C.current=n.ObjectUtils.getRefElement(e)},stickyRef:function(e){return A.current=n.ObjectUtils.getRefElement(e)},items:we(),getItemOptions:function(e){return ve(e)},children:e,element:r,props:l,loading:D,getLoaderOptions:function(e,t){return ye(e,t)},loadingTemplate:l.loadingTemplate,itemSize:l.itemSize,rows:D?l.loaderDisabled?U:[]:we(),columns:l.columns&&m||u?D&&l.loaderDisabled?m?U[0]:U:l.columns.slice(m?d.cols:d,m?w.cols:w):l.columns,vertical:a,horizontal:u,both:m};return n.ObjectUtils.getJSXElement(l.contentTemplate,o)}return r}(),Re=l.showSpacer?i.createElement("div",{ref:C,style:_.current,className:"p-virtualscroller-spacer"}):null;return i.createElement("div",s({ref:W,className:Te,tabIndex:l.tabIndex,style:l.style},je,{onScroll:function(e){l.onScroll&&l.onScroll(e),l.delay?(k.current&&clearTimeout(k.current),re(d)&&(!D&&l.showLoader&&(de(e).isRangeChanged||l.step&&re(d))&&L(!0),k.current=setTimeout((function(){ge(e),!D||!l.showLoader||l.lazy&&void 0!==l.loading||(L(!1),j(te(d)))}),l.delay))):ge(e)}}),Ee,Re,Ie)})));return S.displayName="VirtualScroller",e.VirtualScroller=S,Object.defineProperty(e,"__esModule",{value:!0}),e}({},React,primereact.hooks,primereact.utils,primereact.icons.spinner);
|
package/web-types.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"framework": "React",
|
|
3
3
|
"name": "PrimeReact",
|
|
4
|
-
"version": "9.3.
|
|
4
|
+
"version": "9.3.1",
|
|
5
5
|
"tags": [
|
|
6
6
|
{
|
|
7
7
|
"name": "Accordion",
|
|
@@ -1356,7 +1356,7 @@
|
|
|
1356
1356
|
"events": [
|
|
1357
1357
|
{
|
|
1358
1358
|
"name": "onFocus",
|
|
1359
|
-
"description": "
|
|
1359
|
+
"description": "Callback to invoke on focus event of input field.",
|
|
1360
1360
|
"arguments": [
|
|
1361
1361
|
{
|
|
1362
1362
|
"name": "event",
|
|
@@ -1490,77 +1490,6 @@
|
|
|
1490
1490
|
}
|
|
1491
1491
|
]
|
|
1492
1492
|
},
|
|
1493
|
-
{
|
|
1494
|
-
"name": "Captcha",
|
|
1495
|
-
"source": {
|
|
1496
|
-
"module": "PrimeReact",
|
|
1497
|
-
"symbol": "Captcha"
|
|
1498
|
-
},
|
|
1499
|
-
"description": "Captcha is a form validation component based on Recaptcha.",
|
|
1500
|
-
"doc-url": "https://primefaces.org/primereact/showcase/#/captcha",
|
|
1501
|
-
"props": [
|
|
1502
|
-
{
|
|
1503
|
-
"name": "id",
|
|
1504
|
-
"type": "string",
|
|
1505
|
-
"default": "null",
|
|
1506
|
-
"description": "Unique identifier of the element."
|
|
1507
|
-
},
|
|
1508
|
-
{
|
|
1509
|
-
"name": "siteKey",
|
|
1510
|
-
"type": "string",
|
|
1511
|
-
"default": "null",
|
|
1512
|
-
"description": "Public sitekey."
|
|
1513
|
-
},
|
|
1514
|
-
{
|
|
1515
|
-
"name": "theme",
|
|
1516
|
-
"type": "string",
|
|
1517
|
-
"default": "light",
|
|
1518
|
-
"description": "The color scheme of the widget."
|
|
1519
|
-
},
|
|
1520
|
-
{
|
|
1521
|
-
"name": "type",
|
|
1522
|
-
"type": "string",
|
|
1523
|
-
"default": "image",
|
|
1524
|
-
"description": "The type of CAPTCHA to serve."
|
|
1525
|
-
},
|
|
1526
|
-
{
|
|
1527
|
-
"name": "size",
|
|
1528
|
-
"type": "string",
|
|
1529
|
-
"default": "normal",
|
|
1530
|
-
"description": "The size of the widget."
|
|
1531
|
-
},
|
|
1532
|
-
{
|
|
1533
|
-
"name": "tabIndex",
|
|
1534
|
-
"type": "number",
|
|
1535
|
-
"default": "0",
|
|
1536
|
-
"description": "The tabIndex of the widget and challenge."
|
|
1537
|
-
},
|
|
1538
|
-
{
|
|
1539
|
-
"name": "language",
|
|
1540
|
-
"type": "string",
|
|
1541
|
-
"default": "en",
|
|
1542
|
-
"description": "Language of the widget."
|
|
1543
|
-
}
|
|
1544
|
-
],
|
|
1545
|
-
"events": [
|
|
1546
|
-
{
|
|
1547
|
-
"name": "onResponse",
|
|
1548
|
-
"description": "The callback function to be executed when the user submits a successful CAPTCHA response.",
|
|
1549
|
-
"arguments": [
|
|
1550
|
-
{
|
|
1551
|
-
"name": "event.response",
|
|
1552
|
-
"type": "any",
|
|
1553
|
-
"description": "The user response token."
|
|
1554
|
-
}
|
|
1555
|
-
]
|
|
1556
|
-
},
|
|
1557
|
-
{
|
|
1558
|
-
"name": "onExpire",
|
|
1559
|
-
"description": "The callback function to be executed when the recaptcha response expires and the user needs to solve a new CAPTCHA.",
|
|
1560
|
-
"arguments": []
|
|
1561
|
-
}
|
|
1562
|
-
]
|
|
1563
|
-
},
|
|
1564
1493
|
{
|
|
1565
1494
|
"name": "Card",
|
|
1566
1495
|
"source": {
|
|
@@ -1760,12 +1689,12 @@
|
|
|
1760
1689
|
]
|
|
1761
1690
|
},
|
|
1762
1691
|
{
|
|
1763
|
-
"name": "CascadeSelect
|
|
1692
|
+
"name": "CascadeSelect",
|
|
1764
1693
|
"source": {
|
|
1765
1694
|
"module": "PrimeReact",
|
|
1766
|
-
"symbol": "CascadeSelect
|
|
1695
|
+
"symbol": "CascadeSelect"
|
|
1767
1696
|
},
|
|
1768
|
-
"description": "
|
|
1697
|
+
"description": "CascadeSelect displays a nested structure of options.",
|
|
1769
1698
|
"doc-url": "https://primefaces.org/primereact/showcase/#/cascadeselect",
|
|
1770
1699
|
"props": [
|
|
1771
1700
|
{
|
|
@@ -6335,129 +6264,6 @@
|
|
|
6335
6264
|
}
|
|
6336
6265
|
]
|
|
6337
6266
|
},
|
|
6338
|
-
{
|
|
6339
|
-
"name": "GMap",
|
|
6340
|
-
"source": {
|
|
6341
|
-
"module": "PrimeReact",
|
|
6342
|
-
"symbol": "GMap"
|
|
6343
|
-
},
|
|
6344
|
-
"description": "GMap component provides integration with Google Maps API.",
|
|
6345
|
-
"doc-url": "https://primefaces.org/primereact/showcase/#/gmap",
|
|
6346
|
-
"props": [
|
|
6347
|
-
{
|
|
6348
|
-
"name": "options",
|
|
6349
|
-
"type": "object",
|
|
6350
|
-
"default": "null",
|
|
6351
|
-
"description": "Google Maps API configuration object."
|
|
6352
|
-
},
|
|
6353
|
-
{
|
|
6354
|
-
"name": "overlays",
|
|
6355
|
-
"type": "array",
|
|
6356
|
-
"default": "null",
|
|
6357
|
-
"description": "An array of overlays to display."
|
|
6358
|
-
},
|
|
6359
|
-
{
|
|
6360
|
-
"name": "style",
|
|
6361
|
-
"type": "string",
|
|
6362
|
-
"default": "null",
|
|
6363
|
-
"description": "Inline style of the component."
|
|
6364
|
-
},
|
|
6365
|
-
{
|
|
6366
|
-
"name": "className",
|
|
6367
|
-
"type": "string",
|
|
6368
|
-
"default": "null",
|
|
6369
|
-
"description": "Style class of the component."
|
|
6370
|
-
}
|
|
6371
|
-
],
|
|
6372
|
-
"events": [
|
|
6373
|
-
{
|
|
6374
|
-
"name": "onMapClick",
|
|
6375
|
-
"description": "Callback to invoke when map is clicked except markers.",
|
|
6376
|
-
"arguments": [
|
|
6377
|
-
{
|
|
6378
|
-
"name": "event",
|
|
6379
|
-
"type": "object",
|
|
6380
|
-
"description": "Google Maps MouseEvent"
|
|
6381
|
-
}
|
|
6382
|
-
]
|
|
6383
|
-
},
|
|
6384
|
-
{
|
|
6385
|
-
"name": "onMapDragEnd",
|
|
6386
|
-
"description": "Callback to invoke when map drag (i.e. pan) has ended.",
|
|
6387
|
-
"arguments": []
|
|
6388
|
-
},
|
|
6389
|
-
{
|
|
6390
|
-
"name": "onMapReady",
|
|
6391
|
-
"description": "Callback to invoke when the map is ready to be used.",
|
|
6392
|
-
"arguments": [
|
|
6393
|
-
{
|
|
6394
|
-
"name": "event.map",
|
|
6395
|
-
"type": "any",
|
|
6396
|
-
"description": "Google Maps Instance"
|
|
6397
|
-
}
|
|
6398
|
-
]
|
|
6399
|
-
},
|
|
6400
|
-
{
|
|
6401
|
-
"name": "onOverlayClick",
|
|
6402
|
-
"description": "Callback to invoke when an overlay is clicked.",
|
|
6403
|
-
"arguments": [
|
|
6404
|
-
{
|
|
6405
|
-
"name": "originalEvent",
|
|
6406
|
-
"type": "object",
|
|
6407
|
-
"description": "Google Maps MouseEvent"
|
|
6408
|
-
},
|
|
6409
|
-
{
|
|
6410
|
-
"name": "overlay",
|
|
6411
|
-
"type": "any",
|
|
6412
|
-
"description": "Clicked overlay"
|
|
6413
|
-
},
|
|
6414
|
-
{
|
|
6415
|
-
"name": "map",
|
|
6416
|
-
"type": "any",
|
|
6417
|
-
"description": "Map instance"
|
|
6418
|
-
}
|
|
6419
|
-
]
|
|
6420
|
-
},
|
|
6421
|
-
{
|
|
6422
|
-
"name": "onOverlayDragStart",
|
|
6423
|
-
"description": "Callback to invoke when an overlay drag starts.",
|
|
6424
|
-
"arguments": [
|
|
6425
|
-
{
|
|
6426
|
-
"name": "event",
|
|
6427
|
-
"type": "object",
|
|
6428
|
-
"description": "Google Maps MouseEvent"
|
|
6429
|
-
}
|
|
6430
|
-
]
|
|
6431
|
-
},
|
|
6432
|
-
{
|
|
6433
|
-
"name": "onOverlayDrag",
|
|
6434
|
-
"description": "Callback to invoke when an overlay is being dragged.",
|
|
6435
|
-
"arguments": [
|
|
6436
|
-
{
|
|
6437
|
-
"name": "event",
|
|
6438
|
-
"type": "object",
|
|
6439
|
-
"description": "Google Maps MouseEvent"
|
|
6440
|
-
}
|
|
6441
|
-
]
|
|
6442
|
-
},
|
|
6443
|
-
{
|
|
6444
|
-
"name": "onOverlayDragEnd",
|
|
6445
|
-
"description": "Callback to invoke when an overlay drag ends.",
|
|
6446
|
-
"arguments": [
|
|
6447
|
-
{
|
|
6448
|
-
"name": "event",
|
|
6449
|
-
"type": "object",
|
|
6450
|
-
"description": "Google Maps MouseEvent"
|
|
6451
|
-
}
|
|
6452
|
-
]
|
|
6453
|
-
},
|
|
6454
|
-
{
|
|
6455
|
-
"name": "onZoomChanged",
|
|
6456
|
-
"description": "Callback to invoke when zoom level has changed.",
|
|
6457
|
-
"arguments": []
|
|
6458
|
-
}
|
|
6459
|
-
]
|
|
6460
|
-
},
|
|
6461
6267
|
{
|
|
6462
6268
|
"name": "Image",
|
|
6463
6269
|
"source": {
|