@progress/kendo-react-listbox
Advanced tools
Comparing version 4.4.0-dev.202102150904 to 4.4.0-dev.202102160821
@@ -1,1 +0,1 @@ | ||
!function(e,t){"object"==typeof exports&&"object"==typeof module?module.exports=t(require("react"),require("prop-types"),require("@progress/kendo-react-intl")):"function"==typeof define&&define.amd?define(["react","prop-types","@progress/kendo-react-intl"],t):"object"==typeof exports?exports.KendoReactListbox=t(require("react"),require("prop-types"),require("@progress/kendo-react-intl")):e.KendoReactListbox=t(e.React,e.PropTypes,e.KendoReactIntl)}(window,(function(e,t,n){return function(e){var t={};function n(r){if(t[r])return t[r].exports;var o=t[r]={i:r,l:!1,exports:{}};return e[r].call(o.exports,o,o.exports,n),o.l=!0,o.exports}return n.m=e,n.c=t,n.d=function(e,t,r){n.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:r})},n.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},n.t=function(e,t){if(1&t&&(e=n(e)),8&t)return e;if(4&t&&"object"==typeof e&&e&&e.__esModule)return e;var r=Object.create(null);if(n.r(r),Object.defineProperty(r,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var o in e)n.d(r,o,function(t){return e[t]}.bind(null,o));return r},n.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return n.d(t,"a",t),t},n.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},n.p="",n(n.s=3)}([function(t,n){t.exports=e},function(e,n){e.exports=t},function(e,t,n){"use strict";n.r(t),n.d(t,"mapTree",(function(){return te})),n.d(t,"mapTreeItem",(function(){return ne})),n.d(t,"extendDataItem",(function(){return re})),n.d(t,"getItemPath",(function(){return oe})),n.d(t,"classNames",(function(){return r})),n.d(t,"useAsyncFocusBlur",(function(){return C})),n.d(t,"guid",(function(){return o})),n.d(t,"Keys",(function(){return i})),n.d(t,"noop",(function(){return a})),n.d(t,"FormComponent",(function(){return s})),n.d(t,"dispatchEvent",(function(){return u})),n.d(t,"canUseDOM",(function(){return c})),n.d(t,"Draggable",(function(){return D})),n.d(t,"focusFirstFocusableChild",(function(){return O})),n.d(t,"useDir",(function(){return k})),n.d(t,"useRtl",(function(){return B})),n.d(t,"useDraggable",(function(){return T})),n.d(t,"getter",(function(){return N})),n.d(t,"setter",(function(){return L})),n.d(t,"clone",(function(){return I})),n.d(t,"cloneArray",(function(){return U})),n.d(t,"cloneValue",(function(){return F})),n.d(t,"cloneObject",(function(){return S})),n.d(t,"cloneDate",(function(){return A})),n.d(t,"getTabIndex",(function(){return K})),n.d(t,"Icon",(function(){return q})),n.d(t,"SvgIcon",(function(){return J})),n.d(t,"BrowserSupportService",(function(){return Q}));var r=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return e.filter((function(e){return!0!==e&&!!e})).map((function(e){return Array.isArray(e)?r.apply(void 0,e):"object"==typeof e?Object.keys(e).map((function(t,n){return e[n]||e[t]&&t||null})).filter((function(e){return null!==e})).join(" "):e})).filter((function(e){return!!e})).join(" ")},o=function(){var e,t,n="";for(e=0;e<32;e++)t=16*Math.random()|0,8!==e&&12!==e&&16!==e&&20!==e||(n+="-"),n+=(12===e?4:16===e?3&t|8:t).toString(16);return n},i={backspace:8,tab:9,enter:13,shift:16,esc:27,space:32,pageUp:33,pageDown:34,end:35,home:36,left:37,up:38,right:39,down:40,delete:46},a=function(){},s=function(){};function u(e,t,n,r){if(e){var o={syntheticEvent:t,nativeEvent:t.nativeEvent,target:n};e.call(void 0,Object.assign(o,r))}}var c=Boolean("undefined"!=typeof window&&window.document&&window.document.createElement),l=n(0),f=n(1),p=function(e,t){return function(n){return t(e(n))}},d=function(e,t,n){return e.addEventListener&&e.addEventListener(t,n)},m=function(e,t,n){return e&&e.removeEventListener&&e.removeEventListener(t,n)},v=function(){},h=function(e){return e.preventDefault()},g=/touch/;function x(e){return e.type.match(g)?{pageX:e.changedTouches[0].pageX,pageY:e.changedTouches[0].pageY,clientX:e.changedTouches[0].clientX,clientY:e.changedTouches[0].clientY,type:e.type,originalEvent:e,isTouch:!0}:{pageX:e.pageX,pageY:e.pageY,clientX:e.clientX,clientY:e.clientY,offsetX:e.offsetX,offsetY:e.offsetY,type:e.type,ctrlKey:e.ctrlKey,shiftKey:e.shiftKey,altKey:e.altKey,originalEvent:e}}var y=function(e){var t=this,n=e.press;void 0===n&&(n=v);var r=e.drag;void 0===r&&(r=v);var o=e.release;void 0===o&&(o=v);var i=e.mouseOnly;void 0===i&&(i=!1),this._pressHandler=p(x,n),this._dragHandler=p(x,r),this._releaseHandler=p(x,o),this._ignoreMouse=!1,this._mouseOnly=i,this._touchstart=function(e){1===e.touches.length&&t._pressHandler(e)},this._touchmove=function(e){1===e.touches.length&&t._dragHandler(e)},this._touchend=function(e){0===e.touches.length&&1===e.changedTouches.length&&(t._releaseHandler(e),t._ignoreMouse=!0,setTimeout(t._restoreMouse,2e3))},this._restoreMouse=function(){t._ignoreMouse=!1},this._mousedown=function(e){var n=e.which;n&&n>1||t._ignoreMouse||(d(document,"mousemove",t._mousemove),d(document,"mouseup",t._mouseup),t._pressHandler(e))},this._mousemove=function(e){t._dragHandler(e)},this._mouseup=function(e){m(document,"mousemove",t._mousemove),m(document,"mouseup",t._mouseup),t._releaseHandler(e)},this._pointerdown=function(e){e.isPrimary&&0===e.button&&(d(document,"pointermove",t._pointermove),d(document,"pointerup",t._pointerup),d(document,"pointercancel",t._pointerup),d(document,"contextmenu",h),t._pressHandler(e))},this._pointermove=function(e){e.isPrimary&&t._dragHandler(e)},this._pointerup=function(e){e.isPrimary&&(m(document,"pointermove",t._pointermove),m(document,"pointerup",t._pointerup),m(document,"pointercancel",t._pointerup),m(document,"contextmenu",h),t._releaseHandler(e))}};y.supportPointerEvent=function(){return"undefined"!=typeof window&&window.PointerEvent},y.prototype.bindTo=function(e){e!==this._element&&(this._element&&this._unbindFromCurrent(),this._element=e,this._bindToCurrent())},y.prototype._bindToCurrent=function(){var e=this._element;this._usePointers()?d(e,"pointerdown",this._pointerdown):(d(e,"mousedown",this._mousedown),this._mouseOnly||(d(e,"touchstart",this._touchstart),d(e,"touchmove",this._touchmove),d(e,"touchend",this._touchend)))},y.prototype._unbindFromCurrent=function(){var e=this._element;if(this._usePointers())return m(e,"pointerdown",this._pointerdown),m(document,"pointermove",this._pointermove),m(document,"pointerup",this._pointerup),m(document,"contextmenu",h),void m(document,"pointercancel",this._pointerup);m(e,"mousedown",this._mousedown),this._mouseOnly||(m(e,"touchstart",this._touchstart),m(e,"touchmove",this._touchmove),m(e,"touchend",this._touchend))},y.prototype._usePointers=function(){return!this._mouseOnly&&y.supportPointerEvent()},y.prototype.update=function(e){var t=e.press;void 0===t&&(t=v);var n=e.drag;void 0===n&&(n=v);var r=e.release;void 0===r&&(r=v);var o=e.mouseOnly;void 0===o&&(o=!1),this._pressHandler=p(x,t),this._dragHandler=p(x,n),this._releaseHandler=p(x,r),this._mouseOnly=o},y.prototype.destroy=function(){this._unbindFromCurrent(),this._element=null},y.default=y;var b,w=y,_=(b=function(e,t){return(b=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])})(e,t)},function(e,t){function n(){this.constructor=e}b(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),D=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.element=null,t.draggable=new w({press:function(e){t.element&&t.props.onPress&&t.props.onPress.call(void 0,{target:t,event:e,element:t.element})},drag:function(e){t.element&&t.props.onDrag&&t.props.onDrag.call(void 0,{target:t,event:e,element:t.element})},release:function(e){t.element&&t.props.onRelease&&t.props.onRelease.call(void 0,{target:t,event:e})}}),t.assingRef=function(e){t.element=e},t}return _(t,e),t.prototype.componentDidMount=function(){this.element&&this.draggable.bindTo(this.element)},t.prototype.componentWillUnmount=function(){this.draggable.destroy()},t.prototype.render=function(){return l.cloneElement(l.Children.only(this.props.children),{ref:this.assingRef})},t.propTypes={children:f.element.isRequired},t}(l.Component),O=function(e){if(e){if((e instanceof HTMLInputElement||-1!==e.tabIndex)&&e.focus)return void e.focus();var t=e.querySelector('input, [tabindex]:not([tabindex="-1"])');t&&t.focus&&t.focus()}};function k(e,t,n){var r=l.useState(t),o=r[0],i=r[1];return l.useEffect((function(){if(!o&&window&&e.current){var t=window.getComputedStyle(e.current).direction;t&&i(t)}}),n),o}function C(e){var t=e.onFocus,n=e.onBlur,r=l.useRef(0),o=l.useCallback((function(e){clearTimeout(r.current),r.current=setTimeout((function(){return e()}))}),[r]);return{onFocus:l.useCallback((function(){for(var e=[],n=0;n<arguments.length;n++)e[n]=arguments[n];clearTimeout(r.current),t&&t.call.apply(t,[void 0].concat(e))}),[t,r]),onBlur:l.useCallback((function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];o((function(){n&&n.call.apply(n,[void 0].concat(e))}))}),[o])}}function T(e,t){var n=t.onPress,r=t.onDrag,o=t.onRelease,i=l.useMemo((function(){return new w({press:n,drag:r,release:o})}),[]);l.useEffect((function(){var t=e.current;if(t)return i.bindTo(t),function(){i.destroy()}}),[]),l.useEffect((function(){i.update({press:n,drag:r,release:o})}),[n,r,o])}function B(e,t,n){var r=l.useState(t),o=r[0],i=r[1];return l.useEffect((function(){if(!o&&window&&e.current){var t=window.getComputedStyle(e.current).direction;t&&i(t)}}),n),o}var E=/\[(?:(\d+)|['"](.*?)['"])\]|((?:(?!\[.*?\]|\.).)+)/g;function P(e){var t=[];return e.replace(E,(function(e,n,r,o){t.push(void 0!==n?n:r||o)})),t}var z={};function N(e){if(z[e])return z[e];var t=P(e);return z[e]=function(e){for(var n=e,r=0;r<t.length&&n;r++)n=n[t[r]];return n},z[e]}z.undefined=function(){};var M={undefined:function(e){return e}},j=function(e,t){return t&&t.arrays&&!isNaN(Number(e))?[]:{}};function L(e){if(M[e])return M[e];var t=P(e);return M[e]=function(e,n,r){for(var o=e,i=t.length-1,a=0;a<i&&o;a++)o=o[t[a]]=o[t[a]]||j(t[a+1],r);o[t[i]]=n},M[e]}var A=function(e){return e?new Date(e.getTime()):null};function I(e){var t={};return S(e,t),t}function S(e,t){for(var n in e)if(e.hasOwnProperty(n)){var r=e[n];t[n]=F(r,t[n])}}function F(e,t){if(Array.isArray(e))return U(e);if(e instanceof Date)return A(e);if(e&&"object"==typeof e){var n=t||{};return S(e,n),n}return e}function U(e){return e.map((function(e){return F(e,void 0)}))}var K=function(e,t,n){var r="string"==typeof e?parseInt(e,void 0):e;if(NaN!==r)return void 0!==r?r:t?n?void 0:-1:0},H={default:"",xsmall:"k-icon-xs",small:"k-icon-sm",medium:"k-icon-md",large:"k-icon-lg",xlarge:"k-icon-xl"},R=function(){return(R=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e}).apply(this,arguments)},Y=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&(n[r[o]]=e[r[o]])}return n},q=l.forwardRef((function(e,t){var n=e.className,o=e.name,i=e.themeColor,a=e.size,s=e.flip,u=e.style,c=Y(e,["className","name","themeColor","size","flip","style"]),f=l.useRef(null);l.useImperativeHandle(t,(function(){return{element:f.current}}));var p=l.useMemo((function(){return i||G.themeColor}),[i]),d=l.useMemo((function(){return a||G.size}),[a]),m=l.useMemo((function(){return s||G.flip}),[s]),v=l.useMemo((function(){return r("k-icon","k-i-"+o,"k-color-"+p,{"k-flip-h":"horizontal"===m||"both"===m,"k-flip-v":"vertical"===m||"both"===m},H[d],n)}),[o,p,d,m,n]);return l.createElement("span",R({className:v,style:u,ref:f,role:"presentation"},c))}));q.propTypes={style:f.object,classNames:f.string,name:f.string,themeColor:f.oneOf(["inherit","primary","secondary","tertiary","info","success","error","warning","dark","light","inverse"]),size:f.oneOf(["default","xsmall","small","medium","large","xlarge"]),flip:f.oneOf(["default","horizontal","vertical","both"])};var G={size:"default",themeColor:"inherit",flip:"default"};q.displayName="KendoIcon";var X=function(){return(X=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e}).apply(this,arguments)},V=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&(n[r[o]]=e[r[o]])}return n},J=l.forwardRef((function(e,t){var n=e.children,o=e.className,i=e.svgClassName,a=e.icon,s=e.flip,u=e.size,c=e.style,f=e.svgStyle,p=e.themeColor,d=e.viewBox,m=V(e,["children","className","svgClassName","icon","flip","size","style","svgStyle","themeColor","viewBox"]),v=l.useRef(null);l.useImperativeHandle(t,(function(){return{element:v.current}}));var h=l.useMemo((function(){return a?a.name:Z.icon}),[a]),g=l.useMemo((function(){return p||Z.themeColor}),[p]),x=l.useMemo((function(){return u||Z.size}),[u]),y=l.useMemo((function(){return s||Z.flip}),[s]),b=l.useMemo((function(){return d||Z.viewBox}),[d]),w=l.useMemo((function(){return r("k-svg-icon","k-color-"+g,"k-svg-i-"+h,{"k-flip-h":"horizontal"===y||"both"===y,"k-flip-v":"vertical"===y||"both"===y},H[x],o)}),[h,g,x,y,o]),_=l.useMemo((function(){return e.width&&e.height?X({width:e.width,height:e.height},c):e.width?X({width:e.width,height:e.width},c):e.height?X({width:e.height,height:e.height},c):X({},c)}),[e.width,e.height,c]);return l.createElement("span",{className:w,style:_,ref:v},l.createElement("svg",X({className:i,style:f,"aria-hidden":!0,focusable:"false",xmlns:"http://www.w3.org/2000/svg",viewBox:a?a.viewBox:b,dangerouslySetInnerHTML:a?{__html:a.content}:void 0},m),a?void 0:n))}));J.propTypes={style:f.object,classNames:f.string,children:f.any,icon:f.object,themeColor:f.oneOf(["inherit","primary","secondary","tertiary","info","success","error","warning","dark","light","inverse"]),size:f.oneOf(["default","xsmall","small","medium","large","xlarge"]),flip:f.oneOf(["default","horizontal","vertical","both"])};var Z={size:"default",themeColor:"inherit",flip:"default",icon:"",viewBox:"0 0 24 24"};J.displayName="KendoSvgIcon";var W=function(){return"undefined"!=typeof document?document:{}},Q=function(){function e(){}return Object.defineProperty(e.prototype,"scrollbarWidth",{get:function(){var e=W();if(!this.scrollbar&&e&&e.createElement){var t=e.createElement("div");t.style.cssText="overflow:scroll;overflow-x:hidden;zoom:1;clear:both;display:block",t.innerHTML=" ",e.body.appendChild(t),this.scrollbar=t.offsetWidth-t.scrollWidth,e.body.removeChild(t)}return this.scrollbar},enumerable:!0,configurable:!0}),e}(),$=function(){return($=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e}).apply(this,arguments)};function ee(e,t,n){var r;return n?$({},e,((r={})[t]=n.length?n.slice():void 0,r)):e&&e[t]?e[t].slice():[]}var te=function(e,t,n){return e.map((function(e){return function e(t,n,r){if(t[n]){var o=ee(t,n).map((function(t){return e(t,n,r)}));return r(ee(t,n,o))}return r(t)}(e,t,n)})).slice()},ne=function(e,t,n,r){for(var o=e,i=[],a=0;a<t.length;a++)o=o[t[a]],o=Array.isArray(o)?o:o[n],i.push(o);var s=i.length>1?i[i.length-2]:e,u=t[t.length-1],c=r(s[u]);s.splice(u,1,c)},re=function(e,t,n){var r;return Object.assign({},e,e[t]?((r={})[t]=e[t].slice(),r):{},n||{})},oe=function(e,t,n){var r=[],o=t.slice();if(o.length){var i=e[o.shift()||0];for(r.push(i);o.length&&n;)i=i[n][o.shift()||0],r.push(i)}return r}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(4);t.ListBox=r.ListBox;var o=n(8);t.ListBoxToolbar=o.ListBoxToolbar;var i=n(11);t.processListBoxData=i.processListBoxData,t.moveItem=i.moveItem,t.processListBoxDragAndDrop=i.processListBoxDragAndDrop},function(e,t,n){"use strict";var r,o=this&&this.__extends||(r=function(e,t){return(r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])})(e,t)},function(e,t){function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),i=this&&this.__assign||function(){return(i=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e}).apply(this,arguments)};Object.defineProperty(t,"__esModule",{value:!0});var a=n(0),s=n(1),u=n(2),c=n(5),l=n(6),f=n(7),p=function(e){function t(t){var n=e.call(this,t)||this;return n.setSelected=function(e){if(n.props.selectedField)return!!e[n.props.selectedField]},n.renderItem=function(e){return n.props.textField?e[n.props.textField]:e.toString()},n.handleKeyDown=function(e){u.dispatchEvent(n.props.onKeyDown,e,n,void 0)},n.handleContainerDrop=function(e){e.target.classList.contains("k-list-scroller")&&(n.props.data.length>0?u.dispatchEvent(n.props.onDrop,e,n,{dataItem:n.props.data[n.props.data.length-1]}):u.dispatchEvent(n.props.onDrop,e,n,{dataItem:null}))},n.setToolbarPosition=function(){return n.props.toolbarPosition===c.toolbarPosition.NONE||void 0===n.props.toolbar?"":"k-listbox-toolbar-"+n.props.toolbarPosition},l.validatePackage(f.packageMetadata),n}return o(t,e),t.prototype.render=function(){var e=this;return a.createElement("div",{className:u.classNames(this.props.className,"k-listbox",this.setToolbarPosition()),style:this.props.style,unselectable:"on"},this.props.toolbar&&a.createElement(this.props.toolbar,null),a.createElement("div",{className:"k-list-scroller k-selectable","data-role":"selectable",onDragOver:function(e){return e.preventDefault()},onDrop:this.handleContainerDrop},a.createElement("ul",{className:"k-reset k-list",role:"listbox",tabIndex:0,onKeyDown:this.handleKeyDown},this.props.data.map((function(t,n){var r=e.setSelected(t),o=u.guid(),s={className:u.classNames("k-item",{"k-state-selected":r}),role:"option","aria-selected":r,key:n,id:o+n,"data-uid":o+n,draggable:e.props.draggable,onDragStart:function(n){return u.dispatchEvent(e.props.onDragStart,n,e,{dataItem:t})},onDragOver:function(n){n.preventDefault(),u.dispatchEvent(e.props.onDragOver,n,e,{dataItem:t})},onDrop:function(n){return u.dispatchEvent(e.props.onDrop,n,e,{dataItem:t})},onClick:function(n){return u.dispatchEvent(e.props.onItemClick,n,e,{dataItem:t})}};return e.props.item?a.createElement(e.props.item,i({selected:r,dataItem:t},s)):a.createElement("li",i({},s),e.renderItem(t))})))),a.createElement("select",{style:{display:"none"},multiple:!0,"data-role":"listbox"},this.props.data.map((function(t,n){var r=t[e.props.valueField||e.props.textField];return a.createElement("option",{key:n,value:r,selected:!0},r)}))))},t.propTypes={toolbarPosition:s.oneOf(["none","top","bottom","left","right"]),textField:s.string,valueField:s.string,selectedField:s.string,data:s.array},t.defaultProps={toolbarPosition:c.toolbarPosition.RIGHT,draggable:!0},t}(a.PureComponent);t.ListBox=p},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),function(e){e.TOP="top",e.BOTTOM="bottom",e.LEFT="left",e.RIGHT="right",e.NONE="none"}(t.toolbarPosition||(t.toolbarPosition={}))},function(e,t,n){"use strict";n.r(t),n.d(t,"validatePackage",(function(){return c}));var r,o,i=["z3jVDxbfBMq=","y29Kzq==","CgfJA2fNzu5HBwu=","CgfYC2u=","lcb0AguGCgfJA2fNzsb3yxmGChvIBgLZAgvKig9Uia==","shjZu2W=","BgLJzw5ZAw5Nrg9JC1vYBa==","ChjVzhvJDe5HBwu=","zNvUy3rPB24=","tgLJzw5ZzsbHy3rPDMf0Aw9UigzHAwXLzcbMB3iG","z3jVDxa=","teXTvKe=","igzVCIbTB3jLigLUzM9YBwf0Aw9UlGO=","BKDMyxi=","ENn3DM4=","wMzZB1C=","BgvUz3rO","z2v0","DgLTzxn0yw1W","C2v0","zxHWAxj5rgf0zq==","uhjVz3jLC3mG","zhryDgu=","DfLTzMy=","B2jQzwn0","qNLIEK4=","tM8GBgLJzw5ZzsbMB3vUzc4k","tM9huLm=","quTytxO=","BgLJzw5Zzuv4CgLYyxrPB25eyxrL","ww91CIbSAwnLBNnLigv4CgLYzwqGB24G","CxnxEeu=","zMLUza==","svz2Cwe=","zg9JC1vYBa==","A0XhrMK=","r3bYz0W=","AgfZ","Dg9mB2nHBgvtDhjPBMC=","vgHLihbYB2r1y3qGAxmGBM90igLUy2X1zgvKigLUihrOzsbSAwnLBNnLlGO=","ChjVzhvJDenVzgvZ","u2vLia==","tMTLBLy=","A2vAA3K=","CuTVsMS=","zKfsC0K=","DMvYC2LVBG==","C2niDxq=","ChjVzhvJDhm=","DefZzLi=","EgXUs2y=","BMfTzq==","DenrDei=","ChvIBgLZAerHDgu=","DhLWzq==","zgf0yq==","yurcAfO=","D2fYBG==","AMHmveW="];r=i,o=415,function(e){for(;--e;)r.push(r.shift())}(++o);var a=function(e,t){var n=i[e-=0];if(void 0===a.Pfhzuz){a.owSrkg=function(e){for(var t=function(e){for(var t,n,r=String(e).replace(/=+$/,""),o="",i=0,a=0;n=r.charAt(a++);~n&&(t=i%4?64*t+n:n,i++%4)?o+=String.fromCharCode(255&t>>(-2*i&6)):0)n="abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789+/=".indexOf(n);return o}(e),n=[],r=0,o=t.length;r<o;r++)n+="%"+("00"+t.charCodeAt(r).toString(16)).slice(-2);return decodeURIComponent(n)},a.xlBApk={},a.Pfhzuz=!0}var r=a.xlBApk[e];return void 0===r?(n=a.owSrkg(n),a.xlBApk[e]=n):n=r,n},s={data:' {"timestamp":1596721452,"products":[{"code":"KENDOUIREACT","licenseExpirationDate":1616180400},{"code":"KENDOUICOMPLETE","licenseExpirationDate":1616180400},{"code":"KENDOUIVUE","licenseExpirationDate":1616180400},{"code":"KENDOUIANGULAR","licenseExpirationDate":1616180400}],"integrity":"/qVwMAOukL1DbjVfafCA3yOTdtY="} '},u=new Map;function c(e){if(u[a("0x23")](e[a("0x31")])){if(a("0x29")==a("0x29"))return u[a("0xf")](e[a("0x31")])}var t,n=e[a("0x2c")]?" v"+e[a("0x2c")]:"",r=e[a("0x31")]+n,o=JSON[a("0x1")](s[a("0x35")]),i=!o[a("0x10")],c=function(e,t){var n=e[a("0x2e")];if(!n||!n[a("0xe")]){if(a("0x2a")!==a("0x2d"))return null}var r=new Set(t);return n[a("0x1e")]((function(e){if(a("0x2f")==a("0x2f"))return r[a("0x23")](e[a("0x3a")])}))}(o,e[a("0x26")]);if(i)if(a("0x21")===a("0x9")){}else t={type:0,packageName:r,docsUrl:e[a("0x4")]};else if(a("0x14")!=a("0x14")){}else if(c){if(a("0x38")===a("0x22")){}else if(c[a("0x1b")]<e[a("0x33")])if(a("0x17")!=a("0x17")){}else t={type:2,packageName:r,publishDate:f(e[a("0x33")]),expiryDate:f(c[a("0x1b")]),docsUrl:e[a("0x4")]}}else if(a("0x36")!==a("0x1f"))t={type:1,packageName:r,docsUrl:e[a("0x4")]};else{}if(t&&typeof console===a("0x16"))if(a("0x28")!==a("0xd")){var p=a("0x13")+e[a("0x5")],d=typeof console[a("0x8")]===a("0x6");if(d)if(a("0x2b")!=a("0x2b")){}else console[a("0x8")](p);else if(a("0x3")!==a("0x1d"))console[a("0x37")](p);else{}if(console[a("0x37")](l(t)),d)if(a("0x32")!=a("0x32")){}else console[a("0x39")]()}else{}var m=!t;return u[a("0x11")](e[a("0x31")],m),m}function l(e){var t=a("0x7")+e[a("0x0")]+"\n";if(2===e[a("0x34")])if(a("0x19")===a("0x1a")){}else t+=a("0x1c")+e[a("0x12")][a("0x24")]()+a("0x2")+e[a("0x33")][a("0x24")]()+".\n";else if(0===e[a("0x34")])if(a("0xc")===a("0x15")){}else t+=a("0x18");else if(1===e[a("0x34")])if(a("0x30")===a("0xb")){}else t+=a("0x25");return t+=a("0x27")+e[a("0x20")]+a("0xa")}function f(e){return new Date(1e3*e)}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.packageMetadata={name:"@progress/kendo-react-listbox",productName:"KendoReact",productCodes:["KENDOUIREACT","KENDOUICOMPLETE"],publishDate:1613377418,version:"",licensingDocsUrl:"https://www.telerik.com/kendo-react-ui/my-license/?utm_medium=product&utm_source=kendoreact&utm_campaign=kendo-ui-react-purchase-license-keys-warning"}},function(e,t,n){"use strict";var r,o=this&&this.__extends||(r=function(e,t){return(r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])})(e,t)},function(e,t){function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)});Object.defineProperty(t,"__esModule",{value:!0});var i=n(0),a=n(2),s=n(9),u=n(10),c=n(1),l=[{name:"moveUp",iconClassName:"k-icon k-i-arrow-60-up"},{name:"moveDown",iconClassName:"k-icon k-i-arrow-60-down"},{name:"transferTo",iconClassName:"k-icon k-i-arrow-60-right"},{name:"transferFrom",iconClassName:"k-icon k-i-arrow-60-left"},{name:"transferAllTo",iconClassName:"k-icon k-i-arrow-double-60-right"},{name:"transferAllFrom",iconClassName:"k-icon k-i-arrow-double-60-left"},{name:"remove",iconClassName:"k-icon k-i-x"}],f=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.handleToolClick=function(e,n){a.dispatchEvent(t.props.onToolClick,e,t,{toolName:n})},t.isItemDisabled=function(e){var n=!0,r=t.props.data.length,o=t.props.dataConnected.length,i=t.props.data.findIndex((function(e){return!0===e.selected}))>=0,a=t.props.dataConnected.findIndex((function(e){return!0===e.selected}))>=0;switch(e){case"moveUp":n=i?!(t.props.data.length>0)||t.props.data[0].selected:!a||(!(t.props.dataConnected.length>0)||t.props.dataConnected[0].selected);break;case"moveDown":n=i?!t.props.data[r-1]||t.props.data[r-1].selected:!a||(!(t.props.dataConnected.length>0)||t.props.dataConnected[o-1].selected);break;case"transferTo":n=!(t.props.dataConnected&&i);break;case"transferFrom":n=!t.props.dataConnected||!(t.props.dataConnected&&a);break;case"transferAllTo":n=!(t.props.dataConnected&&t.props.data.length>0);break;case"transferAllFrom":n=!(t.props.dataConnected&&t.props.dataConnected.length>0);break;case"remove":n=!(i||a)}return n},t}return o(t,e),t.prototype.render=function(){var e=this,t=s.provideLocalizationService(this);return i.createElement("div",{className:a.classNames("k-listbox-toolbar")},i.createElement("ul",{className:"k-reset"},this.props.tools&&this.props.tools.map((function(n,r){var o=l.findIndex((function(e){return e.name===n})),s=l[o],c=e.isItemDisabled(s.name),f="listbox."+s.name;return i.createElement("li",{key:r},i.createElement("a",{href:"#",className:a.classNames("k-button","k-button-icon",{"k-state-disabled":c}),"data-command":s.name,title:t.toLanguageString(f,u.messages[f]),"aria-label":t.toLanguageString(f,u.messages[f]),role:"button",onClick:function(t){t.preventDefault(),e.handleToolClick(t,s.name||null)}},i.createElement("span",{className:s.iconClassName})))}))))},t.propTypes={data:c.array,dataConnected:c.array,tools:c.array},t.defaultProps={data:[],dataConnected:[]},t}(i.PureComponent);t.ListBoxToolbar=f,s.registerForLocalization(f)},function(e,t){e.exports=n},function(e,t,n){"use strict";var r;Object.defineProperty(t,"__esModule",{value:!0}),t.moveUp="listbox.moveUp",t.moveDown="listbox.moveDown",t.transferTo="listbox.transferTo",t.transferFrom="listbox.transferFrom",t.transferAllTo="listbox.transferAllTo",t.transferAllFrom="listbox.transferAllFrom",t.remove="listbox.remove",t.messages=((r={})[t.moveUp]="Move Up",r[t.moveDown]="Move Down",r[t.transferTo]="Transfer To",r[t.transferFrom]="Transfer From",r[t.transferAllTo]="Transfer All To",r[t.transferAllFrom]="Transfer All From",r[t.remove]="Delete",r)},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.processListBoxData=function(e,n,r,o){void 0===e&&(e=[]),void 0===n&&(n=[]);var i=[],a=[],s=[],u={listBoxOneData:e,listBoxTwoData:n};switch(r){case"moveUp":(i=e.slice()).forEach((function(e,n){e[o]&&(i=t.moveItem(n,n-1,i))})),(s=n.slice()).forEach((function(e,n){e[o]&&(s=t.moveItem(n,n-1,s))})),u.listBoxOneData=i,u.listBoxTwoData=s;break;case"moveDown":(i=e.reverse()).forEach((function(e,n){e[o]&&(i=t.moveItem(n,n-1,i))})),(s=n.reverse()).forEach((function(e,n){e[o]&&(s=t.moveItem(n,n-1,s))})),u.listBoxOneData=i.slice().reverse(),u.listBoxTwoData=s.slice().reverse();break;case"transferTo":i=e.filter((function(e){return!e[o]})),a=e.filter((function(e){return e[o]})),s=n.concat(a),u.listBoxOneData=i,u.listBoxTwoData=s;break;case"transferFrom":s=n.filter((function(e){return!e[o]})),a=n.filter((function(e){return e[o]})),i=e.concat(a),u.listBoxOneData=i,u.listBoxTwoData=s;break;case"transferAllTo":u.listBoxOneData=[],u.listBoxTwoData=n.concat(e);break;case"transferAllFrom":u.listBoxOneData=n.concat(e),u.listBoxTwoData=[];break;case"remove":s=n.filter((function(e){return!e[o]})),i=e.filter((function(e){return!e[o]})),u.listBoxOneData=i,u.listBoxTwoData=s}return u},t.moveItem=function(e,t,n){var r=n.splice(e,1)[0];return n.splice(t,0,r),n},t.processListBoxDragAndDrop=function(e,n,r,o,i){void 0===e&&(e=[]),void 0===n&&(n=[]);var a=e.findIndex((function(e){return e[i]===r[i]})),s=n.findIndex((function(e){return e[i]===r[i]})),u=null!==o?e.findIndex((function(e){return e[i]===o[i]})):-1,c=null!==o?n.findIndex((function(e){return e[i]===o[i]})):-1,l=a>=0,f=s>=0,p=u>=0,d=c>=0,m=e.slice(),v=n.slice();return l&&p?{listBoxOneData:t.moveItem(a,u,e),listBoxTwoData:n}:f&&d?{listBoxOneData:e,listBoxTwoData:t.moveItem(s,c,n)}:l&&(d||null===o)?(null===o?v.push(e[a]):v.splice(c+1,0,e[a]),m.splice(a,1),{listBoxOneData:m,listBoxTwoData:v}):f&&(p||null===o)?(null===o?m.push(n[s]):m.splice(u+1,0,n[s]),v.splice(s,1),{listBoxOneData:m,listBoxTwoData:v}):{listBoxOneData:e,listBoxTwoData:n}}}])})); | ||
!function(e,t){"object"==typeof exports&&"object"==typeof module?module.exports=t(require("react"),require("prop-types"),require("@progress/kendo-react-intl")):"function"==typeof define&&define.amd?define(["react","prop-types","@progress/kendo-react-intl"],t):"object"==typeof exports?exports.KendoReactListbox=t(require("react"),require("prop-types"),require("@progress/kendo-react-intl")):e.KendoReactListbox=t(e.React,e.PropTypes,e.KendoReactIntl)}(window,(function(e,t,n){return function(e){var t={};function n(r){if(t[r])return t[r].exports;var o=t[r]={i:r,l:!1,exports:{}};return e[r].call(o.exports,o,o.exports,n),o.l=!0,o.exports}return n.m=e,n.c=t,n.d=function(e,t,r){n.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:r})},n.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},n.t=function(e,t){if(1&t&&(e=n(e)),8&t)return e;if(4&t&&"object"==typeof e&&e&&e.__esModule)return e;var r=Object.create(null);if(n.r(r),Object.defineProperty(r,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var o in e)n.d(r,o,function(t){return e[t]}.bind(null,o));return r},n.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return n.d(t,"a",t),t},n.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},n.p="",n(n.s=3)}([function(t,n){t.exports=e},function(e,n){e.exports=t},function(e,t,n){"use strict";n.r(t),n.d(t,"mapTree",(function(){return te})),n.d(t,"mapTreeItem",(function(){return ne})),n.d(t,"extendDataItem",(function(){return re})),n.d(t,"getItemPath",(function(){return oe})),n.d(t,"classNames",(function(){return r})),n.d(t,"useAsyncFocusBlur",(function(){return C})),n.d(t,"guid",(function(){return o})),n.d(t,"Keys",(function(){return i})),n.d(t,"noop",(function(){return a})),n.d(t,"FormComponent",(function(){return s})),n.d(t,"dispatchEvent",(function(){return u})),n.d(t,"canUseDOM",(function(){return c})),n.d(t,"Draggable",(function(){return D})),n.d(t,"focusFirstFocusableChild",(function(){return O})),n.d(t,"useDir",(function(){return k})),n.d(t,"useRtl",(function(){return B})),n.d(t,"useDraggable",(function(){return T})),n.d(t,"getter",(function(){return N})),n.d(t,"setter",(function(){return L})),n.d(t,"clone",(function(){return I})),n.d(t,"cloneArray",(function(){return U})),n.d(t,"cloneValue",(function(){return F})),n.d(t,"cloneObject",(function(){return S})),n.d(t,"cloneDate",(function(){return A})),n.d(t,"getTabIndex",(function(){return K})),n.d(t,"Icon",(function(){return q})),n.d(t,"SvgIcon",(function(){return J})),n.d(t,"BrowserSupportService",(function(){return Q}));var r=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return e.filter((function(e){return!0!==e&&!!e})).map((function(e){return Array.isArray(e)?r.apply(void 0,e):"object"==typeof e?Object.keys(e).map((function(t,n){return e[n]||e[t]&&t||null})).filter((function(e){return null!==e})).join(" "):e})).filter((function(e){return!!e})).join(" ")},o=function(){var e,t,n="";for(e=0;e<32;e++)t=16*Math.random()|0,8!==e&&12!==e&&16!==e&&20!==e||(n+="-"),n+=(12===e?4:16===e?3&t|8:t).toString(16);return n},i={backspace:8,tab:9,enter:13,shift:16,esc:27,space:32,pageUp:33,pageDown:34,end:35,home:36,left:37,up:38,right:39,down:40,delete:46},a=function(){},s=function(){};function u(e,t,n,r){if(e){var o={syntheticEvent:t,nativeEvent:t.nativeEvent,target:n};e.call(void 0,Object.assign(o,r))}}var c=Boolean("undefined"!=typeof window&&window.document&&window.document.createElement),l=n(0),f=n(1),p=function(e,t){return function(n){return t(e(n))}},d=function(e,t,n){return e.addEventListener&&e.addEventListener(t,n)},m=function(e,t,n){return e&&e.removeEventListener&&e.removeEventListener(t,n)},v=function(){},h=function(e){return e.preventDefault()},g=/touch/;function x(e){return e.type.match(g)?{pageX:e.changedTouches[0].pageX,pageY:e.changedTouches[0].pageY,clientX:e.changedTouches[0].clientX,clientY:e.changedTouches[0].clientY,type:e.type,originalEvent:e,isTouch:!0}:{pageX:e.pageX,pageY:e.pageY,clientX:e.clientX,clientY:e.clientY,offsetX:e.offsetX,offsetY:e.offsetY,type:e.type,ctrlKey:e.ctrlKey,shiftKey:e.shiftKey,altKey:e.altKey,originalEvent:e}}var y=function(e){var t=this,n=e.press;void 0===n&&(n=v);var r=e.drag;void 0===r&&(r=v);var o=e.release;void 0===o&&(o=v);var i=e.mouseOnly;void 0===i&&(i=!1),this._pressHandler=p(x,n),this._dragHandler=p(x,r),this._releaseHandler=p(x,o),this._ignoreMouse=!1,this._mouseOnly=i,this._touchstart=function(e){1===e.touches.length&&t._pressHandler(e)},this._touchmove=function(e){1===e.touches.length&&t._dragHandler(e)},this._touchend=function(e){0===e.touches.length&&1===e.changedTouches.length&&(t._releaseHandler(e),t._ignoreMouse=!0,setTimeout(t._restoreMouse,2e3))},this._restoreMouse=function(){t._ignoreMouse=!1},this._mousedown=function(e){var n=e.which;n&&n>1||t._ignoreMouse||(d(document,"mousemove",t._mousemove),d(document,"mouseup",t._mouseup),t._pressHandler(e))},this._mousemove=function(e){t._dragHandler(e)},this._mouseup=function(e){m(document,"mousemove",t._mousemove),m(document,"mouseup",t._mouseup),t._releaseHandler(e)},this._pointerdown=function(e){e.isPrimary&&0===e.button&&(d(document,"pointermove",t._pointermove),d(document,"pointerup",t._pointerup),d(document,"pointercancel",t._pointerup),d(document,"contextmenu",h),t._pressHandler(e))},this._pointermove=function(e){e.isPrimary&&t._dragHandler(e)},this._pointerup=function(e){e.isPrimary&&(m(document,"pointermove",t._pointermove),m(document,"pointerup",t._pointerup),m(document,"pointercancel",t._pointerup),m(document,"contextmenu",h),t._releaseHandler(e))}};y.supportPointerEvent=function(){return"undefined"!=typeof window&&window.PointerEvent},y.prototype.bindTo=function(e){e!==this._element&&(this._element&&this._unbindFromCurrent(),this._element=e,this._bindToCurrent())},y.prototype._bindToCurrent=function(){var e=this._element;this._usePointers()?d(e,"pointerdown",this._pointerdown):(d(e,"mousedown",this._mousedown),this._mouseOnly||(d(e,"touchstart",this._touchstart),d(e,"touchmove",this._touchmove),d(e,"touchend",this._touchend)))},y.prototype._unbindFromCurrent=function(){var e=this._element;if(this._usePointers())return m(e,"pointerdown",this._pointerdown),m(document,"pointermove",this._pointermove),m(document,"pointerup",this._pointerup),m(document,"contextmenu",h),void m(document,"pointercancel",this._pointerup);m(e,"mousedown",this._mousedown),this._mouseOnly||(m(e,"touchstart",this._touchstart),m(e,"touchmove",this._touchmove),m(e,"touchend",this._touchend))},y.prototype._usePointers=function(){return!this._mouseOnly&&y.supportPointerEvent()},y.prototype.update=function(e){var t=e.press;void 0===t&&(t=v);var n=e.drag;void 0===n&&(n=v);var r=e.release;void 0===r&&(r=v);var o=e.mouseOnly;void 0===o&&(o=!1),this._pressHandler=p(x,t),this._dragHandler=p(x,n),this._releaseHandler=p(x,r),this._mouseOnly=o},y.prototype.destroy=function(){this._unbindFromCurrent(),this._element=null},y.default=y;var b,w=y,_=(b=function(e,t){return(b=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])})(e,t)},function(e,t){function n(){this.constructor=e}b(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),D=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.element=null,t.draggable=new w({press:function(e){t.element&&t.props.onPress&&t.props.onPress.call(void 0,{target:t,event:e,element:t.element})},drag:function(e){t.element&&t.props.onDrag&&t.props.onDrag.call(void 0,{target:t,event:e,element:t.element})},release:function(e){t.element&&t.props.onRelease&&t.props.onRelease.call(void 0,{target:t,event:e})}}),t.assingRef=function(e){t.element=e},t}return _(t,e),t.prototype.componentDidMount=function(){this.element&&this.draggable.bindTo(this.element)},t.prototype.componentWillUnmount=function(){this.draggable.destroy()},t.prototype.render=function(){return l.cloneElement(l.Children.only(this.props.children),{ref:this.assingRef})},t.propTypes={children:f.element.isRequired},t}(l.Component),O=function(e){if(e){if((e instanceof HTMLInputElement||-1!==e.tabIndex)&&e.focus)return void e.focus();var t=e.querySelector('input, [tabindex]:not([tabindex="-1"])');t&&t.focus&&t.focus()}};function k(e,t,n){var r=l.useState(t),o=r[0],i=r[1];return l.useEffect((function(){if(!o&&window&&e.current){var t=window.getComputedStyle(e.current).direction;t&&i(t)}}),n),o}function C(e){var t=e.onFocus,n=e.onBlur,r=l.useRef(0),o=l.useCallback((function(e){clearTimeout(r.current),r.current=setTimeout((function(){return e()}))}),[r]);return{onFocus:l.useCallback((function(){for(var e=[],n=0;n<arguments.length;n++)e[n]=arguments[n];clearTimeout(r.current),t&&t.call.apply(t,[void 0].concat(e))}),[t,r]),onBlur:l.useCallback((function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];o((function(){n&&n.call.apply(n,[void 0].concat(e))}))}),[o])}}function T(e,t){var n=t.onPress,r=t.onDrag,o=t.onRelease,i=l.useMemo((function(){return new w({press:n,drag:r,release:o})}),[]);l.useEffect((function(){var t=e.current;if(t)return i.bindTo(t),function(){i.destroy()}}),[]),l.useEffect((function(){i.update({press:n,drag:r,release:o})}),[n,r,o])}function B(e,t,n){var r=l.useState(t),o=r[0],i=r[1];return l.useEffect((function(){if(!o&&window&&e.current){var t=window.getComputedStyle(e.current).direction;t&&i(t)}}),n),o}var E=/\[(?:(\d+)|['"](.*?)['"])\]|((?:(?!\[.*?\]|\.).)+)/g;function P(e){var t=[];return e.replace(E,(function(e,n,r,o){t.push(void 0!==n?n:r||o)})),t}var z={};function N(e){if(z[e])return z[e];var t=P(e);return z[e]=function(e){for(var n=e,r=0;r<t.length&&n;r++)n=n[t[r]];return n},z[e]}z.undefined=function(){};var M={undefined:function(e){return e}},j=function(e,t){return t&&t.arrays&&!isNaN(Number(e))?[]:{}};function L(e){if(M[e])return M[e];var t=P(e);return M[e]=function(e,n,r){for(var o=e,i=t.length-1,a=0;a<i&&o;a++)o=o[t[a]]=o[t[a]]||j(t[a+1],r);o[t[i]]=n},M[e]}var A=function(e){return e?new Date(e.getTime()):null};function I(e){var t={};return S(e,t),t}function S(e,t){for(var n in e)if(e.hasOwnProperty(n)){var r=e[n];t[n]=F(r,t[n])}}function F(e,t){if(Array.isArray(e))return U(e);if(e instanceof Date)return A(e);if(e&&"object"==typeof e){var n=t||{};return S(e,n),n}return e}function U(e){return e.map((function(e){return F(e,void 0)}))}var K=function(e,t,n){var r="string"==typeof e?parseInt(e,void 0):e;if(NaN!==r)return void 0!==r?r:t?n?void 0:-1:0},H={default:"",xsmall:"k-icon-xs",small:"k-icon-sm",medium:"k-icon-md",large:"k-icon-lg",xlarge:"k-icon-xl"},R=function(){return(R=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e}).apply(this,arguments)},Y=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&(n[r[o]]=e[r[o]])}return n},q=l.forwardRef((function(e,t){var n=e.className,o=e.name,i=e.themeColor,a=e.size,s=e.flip,u=e.style,c=Y(e,["className","name","themeColor","size","flip","style"]),f=l.useRef(null);l.useImperativeHandle(t,(function(){return{element:f.current}}));var p=l.useMemo((function(){return i||G.themeColor}),[i]),d=l.useMemo((function(){return a||G.size}),[a]),m=l.useMemo((function(){return s||G.flip}),[s]),v=l.useMemo((function(){return r("k-icon","k-i-"+o,"k-color-"+p,{"k-flip-h":"horizontal"===m||"both"===m,"k-flip-v":"vertical"===m||"both"===m},H[d],n)}),[o,p,d,m,n]);return l.createElement("span",R({className:v,style:u,ref:f,role:"presentation"},c))}));q.propTypes={style:f.object,classNames:f.string,name:f.string,themeColor:f.oneOf(["inherit","primary","secondary","tertiary","info","success","error","warning","dark","light","inverse"]),size:f.oneOf(["default","xsmall","small","medium","large","xlarge"]),flip:f.oneOf(["default","horizontal","vertical","both"])};var G={size:"default",themeColor:"inherit",flip:"default"};q.displayName="KendoIcon";var X=function(){return(X=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e}).apply(this,arguments)},V=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&(n[r[o]]=e[r[o]])}return n},J=l.forwardRef((function(e,t){var n=e.children,o=e.className,i=e.svgClassName,a=e.icon,s=e.flip,u=e.size,c=e.style,f=e.svgStyle,p=e.themeColor,d=e.viewBox,m=V(e,["children","className","svgClassName","icon","flip","size","style","svgStyle","themeColor","viewBox"]),v=l.useRef(null);l.useImperativeHandle(t,(function(){return{element:v.current}}));var h=l.useMemo((function(){return a?a.name:Z.icon}),[a]),g=l.useMemo((function(){return p||Z.themeColor}),[p]),x=l.useMemo((function(){return u||Z.size}),[u]),y=l.useMemo((function(){return s||Z.flip}),[s]),b=l.useMemo((function(){return d||Z.viewBox}),[d]),w=l.useMemo((function(){return r("k-svg-icon","k-color-"+g,"k-svg-i-"+h,{"k-flip-h":"horizontal"===y||"both"===y,"k-flip-v":"vertical"===y||"both"===y},H[x],o)}),[h,g,x,y,o]),_=l.useMemo((function(){return e.width&&e.height?X({width:e.width,height:e.height},c):e.width?X({width:e.width,height:e.width},c):e.height?X({width:e.height,height:e.height},c):X({},c)}),[e.width,e.height,c]);return l.createElement("span",{className:w,style:_,ref:v},l.createElement("svg",X({className:i,style:f,"aria-hidden":!0,focusable:"false",xmlns:"http://www.w3.org/2000/svg",viewBox:a?a.viewBox:b,dangerouslySetInnerHTML:a?{__html:a.content}:void 0},m),a?void 0:n))}));J.propTypes={style:f.object,classNames:f.string,children:f.any,icon:f.object,themeColor:f.oneOf(["inherit","primary","secondary","tertiary","info","success","error","warning","dark","light","inverse"]),size:f.oneOf(["default","xsmall","small","medium","large","xlarge"]),flip:f.oneOf(["default","horizontal","vertical","both"])};var Z={size:"default",themeColor:"inherit",flip:"default",icon:"",viewBox:"0 0 24 24"};J.displayName="KendoSvgIcon";var W=function(){return"undefined"!=typeof document?document:{}},Q=function(){function e(){}return Object.defineProperty(e.prototype,"scrollbarWidth",{get:function(){var e=W();if(!this.scrollbar&&e&&e.createElement){var t=e.createElement("div");t.style.cssText="overflow:scroll;overflow-x:hidden;zoom:1;clear:both;display:block",t.innerHTML=" ",e.body.appendChild(t),this.scrollbar=t.offsetWidth-t.scrollWidth,e.body.removeChild(t)}return this.scrollbar},enumerable:!0,configurable:!0}),e}(),$=function(){return($=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e}).apply(this,arguments)};function ee(e,t,n){var r;return n?$({},e,((r={})[t]=n.length?n.slice():void 0,r)):e&&e[t]?e[t].slice():[]}var te=function(e,t,n){return e.map((function(e){return function e(t,n,r){if(t[n]){var o=ee(t,n).map((function(t){return e(t,n,r)}));return r(ee(t,n,o))}return r(t)}(e,t,n)})).slice()},ne=function(e,t,n,r){for(var o=e,i=[],a=0;a<t.length;a++)o=o[t[a]],o=Array.isArray(o)?o:o[n],i.push(o);var s=i.length>1?i[i.length-2]:e,u=t[t.length-1],c=r(s[u]);s.splice(u,1,c)},re=function(e,t,n){var r;return Object.assign({},e,e[t]?((r={})[t]=e[t].slice(),r):{},n||{})},oe=function(e,t,n){var r=[],o=t.slice();if(o.length){var i=e[o.shift()||0];for(r.push(i);o.length&&n;)i=i[n][o.shift()||0],r.push(i)}return r}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(4);t.ListBox=r.ListBox;var o=n(8);t.ListBoxToolbar=o.ListBoxToolbar;var i=n(11);t.processListBoxData=i.processListBoxData,t.moveItem=i.moveItem,t.processListBoxDragAndDrop=i.processListBoxDragAndDrop},function(e,t,n){"use strict";var r,o=this&&this.__extends||(r=function(e,t){return(r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])})(e,t)},function(e,t){function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),i=this&&this.__assign||function(){return(i=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e}).apply(this,arguments)};Object.defineProperty(t,"__esModule",{value:!0});var a=n(0),s=n(1),u=n(2),c=n(5),l=n(6),f=n(7),p=function(e){function t(t){var n=e.call(this,t)||this;return n.setSelected=function(e){if(n.props.selectedField)return!!e[n.props.selectedField]},n.renderItem=function(e){return n.props.textField?e[n.props.textField]:e.toString()},n.handleKeyDown=function(e){u.dispatchEvent(n.props.onKeyDown,e,n,void 0)},n.handleContainerDrop=function(e){e.target.classList.contains("k-list-scroller")&&(n.props.data.length>0?u.dispatchEvent(n.props.onDrop,e,n,{dataItem:n.props.data[n.props.data.length-1]}):u.dispatchEvent(n.props.onDrop,e,n,{dataItem:null}))},n.setToolbarPosition=function(){return n.props.toolbarPosition===c.toolbarPosition.NONE||void 0===n.props.toolbar?"":"k-listbox-toolbar-"+n.props.toolbarPosition},l.validatePackage(f.packageMetadata),n}return o(t,e),t.prototype.render=function(){var e=this;return a.createElement("div",{className:u.classNames(this.props.className,"k-listbox",this.setToolbarPosition()),style:this.props.style,unselectable:"on"},this.props.toolbar&&a.createElement(this.props.toolbar,null),a.createElement("div",{className:"k-list-scroller k-selectable","data-role":"selectable",onDragOver:function(e){return e.preventDefault()},onDrop:this.handleContainerDrop},a.createElement("ul",{className:"k-reset k-list",role:"listbox",tabIndex:0,onKeyDown:this.handleKeyDown},this.props.data.map((function(t,n){var r=e.setSelected(t),o=u.guid(),s={className:u.classNames("k-item",{"k-state-selected":r}),role:"option","aria-selected":r,key:n,id:o+n,"data-uid":o+n,draggable:e.props.draggable,onDragStart:function(n){return u.dispatchEvent(e.props.onDragStart,n,e,{dataItem:t})},onDragOver:function(n){n.preventDefault(),u.dispatchEvent(e.props.onDragOver,n,e,{dataItem:t})},onDrop:function(n){return u.dispatchEvent(e.props.onDrop,n,e,{dataItem:t})},onClick:function(n){return u.dispatchEvent(e.props.onItemClick,n,e,{dataItem:t})}};return e.props.item?a.createElement(e.props.item,i({selected:r,dataItem:t},s)):a.createElement("li",i({},s),e.renderItem(t))})))),a.createElement("select",{style:{display:"none"},multiple:!0,"data-role":"listbox"},this.props.data.map((function(t,n){var r=t[e.props.valueField||e.props.textField];return a.createElement("option",{key:n,value:r,selected:!0},r)}))))},t.propTypes={toolbarPosition:s.oneOf(["none","top","bottom","left","right"]),textField:s.string,valueField:s.string,selectedField:s.string,data:s.array},t.defaultProps={toolbarPosition:c.toolbarPosition.RIGHT,draggable:!0},t}(a.PureComponent);t.ListBox=p},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),function(e){e.TOP="top",e.BOTTOM="bottom",e.LEFT="left",e.RIGHT="right",e.NONE="none"}(t.toolbarPosition||(t.toolbarPosition={}))},function(e,t,n){"use strict";n.r(t),n.d(t,"validatePackage",(function(){return c}));var r,o,i=["z3jVDxbfBMq=","y29Kzq==","CgfJA2fNzu5HBwu=","CgfYC2u=","lcb0AguGCgfJA2fNzsb3yxmGChvIBgLZAgvKig9Uia==","shjZu2W=","BgLJzw5ZAw5Nrg9JC1vYBa==","ChjVzhvJDe5HBwu=","zNvUy3rPB24=","tgLJzw5ZzsbHy3rPDMf0Aw9UigzHAwXLzcbMB3iG","z3jVDxa=","teXTvKe=","igzVCIbTB3jLigLUzM9YBwf0Aw9UlGO=","BKDMyxi=","ENn3DM4=","wMzZB1C=","BgvUz3rO","z2v0","DgLTzxn0yw1W","C2v0","zxHWAxj5rgf0zq==","uhjVz3jLC3mG","zhryDgu=","DfLTzMy=","B2jQzwn0","qNLIEK4=","tM8GBgLJzw5ZzsbMB3vUzc4k","tM9huLm=","quTytxO=","BgLJzw5Zzuv4CgLYyxrPB25eyxrL","ww91CIbSAwnLBNnLigv4CgLYzwqGB24G","CxnxEeu=","zMLUza==","svz2Cwe=","zg9JC1vYBa==","A0XhrMK=","r3bYz0W=","AgfZ","Dg9mB2nHBgvtDhjPBMC=","vgHLihbYB2r1y3qGAxmGBM90igLUy2X1zgvKigLUihrOzsbSAwnLBNnLlGO=","ChjVzhvJDenVzgvZ","u2vLia==","tMTLBLy=","A2vAA3K=","CuTVsMS=","zKfsC0K=","DMvYC2LVBG==","C2niDxq=","ChjVzhvJDhm=","DefZzLi=","EgXUs2y=","BMfTzq==","DenrDei=","ChvIBgLZAerHDgu=","DhLWzq==","zgf0yq==","yurcAfO=","D2fYBG==","AMHmveW="];r=i,o=415,function(e){for(;--e;)r.push(r.shift())}(++o);var a=function(e,t){var n=i[e-=0];if(void 0===a.Pfhzuz){a.owSrkg=function(e){for(var t=function(e){for(var t,n,r=String(e).replace(/=+$/,""),o="",i=0,a=0;n=r.charAt(a++);~n&&(t=i%4?64*t+n:n,i++%4)?o+=String.fromCharCode(255&t>>(-2*i&6)):0)n="abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789+/=".indexOf(n);return o}(e),n=[],r=0,o=t.length;r<o;r++)n+="%"+("00"+t.charCodeAt(r).toString(16)).slice(-2);return decodeURIComponent(n)},a.xlBApk={},a.Pfhzuz=!0}var r=a.xlBApk[e];return void 0===r?(n=a.owSrkg(n),a.xlBApk[e]=n):n=r,n},s={data:' {"timestamp":1596721452,"products":[{"code":"KENDOUIREACT","licenseExpirationDate":1616180400},{"code":"KENDOUICOMPLETE","licenseExpirationDate":1616180400},{"code":"KENDOUIVUE","licenseExpirationDate":1616180400},{"code":"KENDOUIANGULAR","licenseExpirationDate":1616180400}],"integrity":"/qVwMAOukL1DbjVfafCA3yOTdtY="} '},u=new Map;function c(e){if(u[a("0x23")](e[a("0x31")])){if(a("0x29")==a("0x29"))return u[a("0xf")](e[a("0x31")])}var t,n=e[a("0x2c")]?" v"+e[a("0x2c")]:"",r=e[a("0x31")]+n,o=JSON[a("0x1")](s[a("0x35")]),i=!o[a("0x10")],c=function(e,t){var n=e[a("0x2e")];if(!n||!n[a("0xe")]){if(a("0x2a")!==a("0x2d"))return null}var r=new Set(t);return n[a("0x1e")]((function(e){if(a("0x2f")==a("0x2f"))return r[a("0x23")](e[a("0x3a")])}))}(o,e[a("0x26")]);if(i)if(a("0x21")===a("0x9")){}else t={type:0,packageName:r,docsUrl:e[a("0x4")]};else if(a("0x14")!=a("0x14")){}else if(c){if(a("0x38")===a("0x22")){}else if(c[a("0x1b")]<e[a("0x33")])if(a("0x17")!=a("0x17")){}else t={type:2,packageName:r,publishDate:f(e[a("0x33")]),expiryDate:f(c[a("0x1b")]),docsUrl:e[a("0x4")]}}else if(a("0x36")!==a("0x1f"))t={type:1,packageName:r,docsUrl:e[a("0x4")]};else{}if(t&&typeof console===a("0x16"))if(a("0x28")!==a("0xd")){var p=a("0x13")+e[a("0x5")],d=typeof console[a("0x8")]===a("0x6");if(d)if(a("0x2b")!=a("0x2b")){}else console[a("0x8")](p);else if(a("0x3")!==a("0x1d"))console[a("0x37")](p);else{}if(console[a("0x37")](l(t)),d)if(a("0x32")!=a("0x32")){}else console[a("0x39")]()}else{}var m=!t;return u[a("0x11")](e[a("0x31")],m),m}function l(e){var t=a("0x7")+e[a("0x0")]+"\n";if(2===e[a("0x34")])if(a("0x19")===a("0x1a")){}else t+=a("0x1c")+e[a("0x12")][a("0x24")]()+a("0x2")+e[a("0x33")][a("0x24")]()+".\n";else if(0===e[a("0x34")])if(a("0xc")===a("0x15")){}else t+=a("0x18");else if(1===e[a("0x34")])if(a("0x30")===a("0xb")){}else t+=a("0x25");return t+=a("0x27")+e[a("0x20")]+a("0xa")}function f(e){return new Date(1e3*e)}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.packageMetadata={name:"@progress/kendo-react-listbox",productName:"KendoReact",productCodes:["KENDOUIREACT","KENDOUICOMPLETE"],publishDate:1613461194,version:"",licensingDocsUrl:"https://www.telerik.com/kendo-react-ui/my-license/?utm_medium=product&utm_source=kendoreact&utm_campaign=kendo-ui-react-purchase-license-keys-warning"}},function(e,t,n){"use strict";var r,o=this&&this.__extends||(r=function(e,t){return(r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])})(e,t)},function(e,t){function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)});Object.defineProperty(t,"__esModule",{value:!0});var i=n(0),a=n(2),s=n(9),u=n(10),c=n(1),l=[{name:"moveUp",iconClassName:"k-icon k-i-arrow-60-up"},{name:"moveDown",iconClassName:"k-icon k-i-arrow-60-down"},{name:"transferTo",iconClassName:"k-icon k-i-arrow-60-right"},{name:"transferFrom",iconClassName:"k-icon k-i-arrow-60-left"},{name:"transferAllTo",iconClassName:"k-icon k-i-arrow-double-60-right"},{name:"transferAllFrom",iconClassName:"k-icon k-i-arrow-double-60-left"},{name:"remove",iconClassName:"k-icon k-i-x"}],f=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.handleToolClick=function(e,n){a.dispatchEvent(t.props.onToolClick,e,t,{toolName:n})},t.isItemDisabled=function(e){var n=!0,r=t.props.data.length,o=t.props.dataConnected.length,i=t.props.data.findIndex((function(e){return!0===e.selected}))>=0,a=t.props.dataConnected.findIndex((function(e){return!0===e.selected}))>=0;switch(e){case"moveUp":n=i?!(t.props.data.length>0)||t.props.data[0].selected:!a||(!(t.props.dataConnected.length>0)||t.props.dataConnected[0].selected);break;case"moveDown":n=i?!t.props.data[r-1]||t.props.data[r-1].selected:!a||(!(t.props.dataConnected.length>0)||t.props.dataConnected[o-1].selected);break;case"transferTo":n=!(t.props.dataConnected&&i);break;case"transferFrom":n=!t.props.dataConnected||!(t.props.dataConnected&&a);break;case"transferAllTo":n=!(t.props.dataConnected&&t.props.data.length>0);break;case"transferAllFrom":n=!(t.props.dataConnected&&t.props.dataConnected.length>0);break;case"remove":n=!(i||a)}return n},t}return o(t,e),t.prototype.render=function(){var e=this,t=s.provideLocalizationService(this);return i.createElement("div",{className:a.classNames("k-listbox-toolbar")},i.createElement("ul",{className:"k-reset"},this.props.tools&&this.props.tools.map((function(n,r){var o=l.findIndex((function(e){return e.name===n})),s=l[o],c=e.isItemDisabled(s.name),f="listbox."+s.name;return i.createElement("li",{key:r},i.createElement("a",{href:"#",className:a.classNames("k-button","k-button-icon",{"k-state-disabled":c}),"data-command":s.name,title:t.toLanguageString(f,u.messages[f]),"aria-label":t.toLanguageString(f,u.messages[f]),role:"button",onClick:function(t){t.preventDefault(),e.handleToolClick(t,s.name||null)}},i.createElement("span",{className:s.iconClassName})))}))))},t.propTypes={data:c.array,dataConnected:c.array,tools:c.array},t.defaultProps={data:[],dataConnected:[]},t}(i.PureComponent);t.ListBoxToolbar=f,s.registerForLocalization(f)},function(e,t){e.exports=n},function(e,t,n){"use strict";var r;Object.defineProperty(t,"__esModule",{value:!0}),t.moveUp="listbox.moveUp",t.moveDown="listbox.moveDown",t.transferTo="listbox.transferTo",t.transferFrom="listbox.transferFrom",t.transferAllTo="listbox.transferAllTo",t.transferAllFrom="listbox.transferAllFrom",t.remove="listbox.remove",t.messages=((r={})[t.moveUp]="Move Up",r[t.moveDown]="Move Down",r[t.transferTo]="Transfer To",r[t.transferFrom]="Transfer From",r[t.transferAllTo]="Transfer All To",r[t.transferAllFrom]="Transfer All From",r[t.remove]="Delete",r)},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.processListBoxData=function(e,n,r,o){void 0===e&&(e=[]),void 0===n&&(n=[]);var i=[],a=[],s=[],u={listBoxOneData:e,listBoxTwoData:n};switch(r){case"moveUp":(i=e.slice()).forEach((function(e,n){e[o]&&(i=t.moveItem(n,n-1,i))})),(s=n.slice()).forEach((function(e,n){e[o]&&(s=t.moveItem(n,n-1,s))})),u.listBoxOneData=i,u.listBoxTwoData=s;break;case"moveDown":(i=e.reverse()).forEach((function(e,n){e[o]&&(i=t.moveItem(n,n-1,i))})),(s=n.reverse()).forEach((function(e,n){e[o]&&(s=t.moveItem(n,n-1,s))})),u.listBoxOneData=i.slice().reverse(),u.listBoxTwoData=s.slice().reverse();break;case"transferTo":i=e.filter((function(e){return!e[o]})),a=e.filter((function(e){return e[o]})),s=n.concat(a),u.listBoxOneData=i,u.listBoxTwoData=s;break;case"transferFrom":s=n.filter((function(e){return!e[o]})),a=n.filter((function(e){return e[o]})),i=e.concat(a),u.listBoxOneData=i,u.listBoxTwoData=s;break;case"transferAllTo":u.listBoxOneData=[],u.listBoxTwoData=n.concat(e);break;case"transferAllFrom":u.listBoxOneData=n.concat(e),u.listBoxTwoData=[];break;case"remove":s=n.filter((function(e){return!e[o]})),i=e.filter((function(e){return!e[o]})),u.listBoxOneData=i,u.listBoxTwoData=s}return u},t.moveItem=function(e,t,n){var r=n.splice(e,1)[0];return n.splice(t,0,r),n},t.processListBoxDragAndDrop=function(e,n,r,o,i){void 0===e&&(e=[]),void 0===n&&(n=[]);var a=e.findIndex((function(e){return e[i]===r[i]})),s=n.findIndex((function(e){return e[i]===r[i]})),u=null!==o?e.findIndex((function(e){return e[i]===o[i]})):-1,c=null!==o?n.findIndex((function(e){return e[i]===o[i]})):-1,l=a>=0,f=s>=0,p=u>=0,d=c>=0,m=e.slice(),v=n.slice();return l&&p?{listBoxOneData:t.moveItem(a,u,e),listBoxTwoData:n}:f&&d?{listBoxOneData:e,listBoxTwoData:t.moveItem(s,c,n)}:l&&(d||null===o)?(null===o?v.push(e[a]):v.splice(c+1,0,e[a]),m.splice(a,1),{listBoxOneData:m,listBoxTwoData:v}):f&&(p||null===o)?(null===o?m.push(n[s]):m.splice(u+1,0,n[s]),v.splice(s,1),{listBoxOneData:m,listBoxTwoData:v}):{listBoxOneData:e,listBoxTwoData:n}}}])})); |
@@ -8,3 +8,3 @@ /** | ||
productCodes: ['KENDOUIREACT', 'KENDOUICOMPLETE'], | ||
publishDate: 1613377418, | ||
publishDate: 1613461194, | ||
version: '', | ||
@@ -11,0 +11,0 @@ licensingDocsUrl: 'https://www.telerik.com/kendo-react-ui/my-license/?utm_medium=product&utm_source=kendoreact&utm_campaign=kendo-ui-react-purchase-license-keys-warning' |
@@ -10,3 +10,3 @@ "use strict"; | ||
productCodes: ['KENDOUIREACT', 'KENDOUICOMPLETE'], | ||
publishDate: 1613377418, | ||
publishDate: 1613461194, | ||
version: '', | ||
@@ -13,0 +13,0 @@ licensingDocsUrl: 'https://www.telerik.com/kendo-react-ui/my-license/?utm_medium=product&utm_source=kendoreact&utm_campaign=kendo-ui-react-purchase-license-keys-warning' |
@@ -1,1 +0,1 @@ | ||
System.register("@progress/kendo-react-listbox",["react","prop-types","@progress/kendo-react-common","@progress/kendo-licensing","@progress/kendo-react-intl"],function(a){var s,i,l,c,p;function t(e){return e.__useDefault?e.default:e}return{setters:[function(e){s=t(e)},function(e){i=t(e)},function(e){l=t(e)},function(e){c=t(e)},function(e){p=t(e)}],execute:function(){function n(e){if(r[e])return r[e].exports;var t=r[e]={i:e,l:!1,exports:{}};return o[e].call(t.exports,t,t.exports,n),t.l=!0,t.exports}var o,r;r={},n.m=o=[function(e,t){e.exports=s},function(e,t){e.exports=i},function(e,t){e.exports=l},function(e,t,o){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=o(4);t.ListBox=r.ListBox;r=o(8);t.ListBoxToolbar=r.ListBoxToolbar;o=o(11);t.processListBoxData=o.processListBoxData,t.moveItem=o.moveItem,t.processListBoxDragAndDrop=o.processListBoxDragAndDrop,function(e){for(var t in e)a(t,e[t])}(t)},function(e,t,o){"use strict";var r,n=this&&this.__extends||(r=function(e,t){return(r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var o in t)t.hasOwnProperty(o)&&(e[o]=t[o])})(e,t)},function(e,t){function o(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(o.prototype=t.prototype,new o)}),a=this&&this.__assign||function(){return(a=Object.assign||function(e){for(var t,o=1,r=arguments.length;o<r;o++)for(var n in t=arguments[o])Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n]);return e}).apply(this,arguments)};Object.defineProperty(t,"__esModule",{value:!0});var s,i=o(0),l=o(1),c=o(2),p=o(5),u=o(6),d=o(7),l=(s=i.PureComponent,n(f,s),f.prototype.render=function(){var n=this;return i.createElement("div",{className:c.classNames(this.props.className,"k-listbox",this.setToolbarPosition()),style:this.props.style,unselectable:"on"},this.props.toolbar&&i.createElement(this.props.toolbar,null),i.createElement("div",{className:"k-list-scroller k-selectable","data-role":"selectable",onDragOver:function(e){return e.preventDefault()},onDrop:this.handleContainerDrop},i.createElement("ul",{className:"k-reset k-list",role:"listbox",tabIndex:0,onKeyDown:this.handleKeyDown},this.props.data.map(function(t,e){var o=n.setSelected(t),r=c.guid(),e={className:c.classNames("k-item",{"k-state-selected":o}),role:"option","aria-selected":o,key:e,id:r+e,"data-uid":r+e,draggable:n.props.draggable,onDragStart:function(e){return c.dispatchEvent(n.props.onDragStart,e,n,{dataItem:t})},onDragOver:function(e){e.preventDefault(),c.dispatchEvent(n.props.onDragOver,e,n,{dataItem:t})},onDrop:function(e){return c.dispatchEvent(n.props.onDrop,e,n,{dataItem:t})},onClick:function(e){return c.dispatchEvent(n.props.onItemClick,e,n,{dataItem:t})}};return n.props.item?i.createElement(n.props.item,a({selected:o,dataItem:t},e)):i.createElement("li",a({},e),n.renderItem(t))}))),i.createElement("select",{style:{display:"none"},multiple:!0,"data-role":"listbox"},this.props.data.map(function(e,t){e=e[n.props.valueField||n.props.textField];return i.createElement("option",{key:t,value:e,selected:!0},e)})))},f.propTypes={toolbarPosition:l.oneOf(["none","top","bottom","left","right"]),textField:l.string,valueField:l.string,selectedField:l.string,data:l.array},f.defaultProps={toolbarPosition:p.toolbarPosition.RIGHT,draggable:!0},f);function f(e){var t=s.call(this,e)||this;return t.setSelected=function(e){if(t.props.selectedField)return!!e[t.props.selectedField]},t.renderItem=function(e){return t.props.textField?e[t.props.textField]:e.toString()},t.handleKeyDown=function(e){c.dispatchEvent(t.props.onKeyDown,e,t,void 0)},t.handleContainerDrop=function(e){e.target.classList.contains("k-list-scroller")&&(0<t.props.data.length?c.dispatchEvent(t.props.onDrop,e,t,{dataItem:t.props.data[t.props.data.length-1]}):c.dispatchEvent(t.props.onDrop,e,t,{dataItem:null}))},t.setToolbarPosition=function(){return t.props.toolbarPosition===p.toolbarPosition.NONE||void 0===t.props.toolbar?"":"k-listbox-toolbar-"+t.props.toolbarPosition},u.validatePackage(d.packageMetadata),t}t.ListBox=l},function(e,t,o){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),(t=t.toolbarPosition||(t.toolbarPosition={})).TOP="top",t.BOTTOM="bottom",t.LEFT="left",t.RIGHT="right",t.NONE="none"},function(e,t){e.exports=c},function(e,t,o){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.packageMetadata={name:"@progress/kendo-react-listbox",productName:"KendoReact",productCodes:["KENDOUIREACT","KENDOUICOMPLETE"],publishDate:1613377418,version:"",licensingDocsUrl:"https://www.telerik.com/kendo-react-ui/my-license/?utm_medium=product&utm_source=kendoreact&utm_campaign=kendo-ui-react-purchase-license-keys-warning"}},function(e,t,o){"use strict";var r,n=this&&this.__extends||(r=function(e,t){return(r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var o in t)t.hasOwnProperty(o)&&(e[o]=t[o])})(e,t)},function(e,t){function o(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(o.prototype=t.prototype,new o)});Object.defineProperty(t,"__esModule",{value:!0});var a,i=o(0),l=o(2),c=o(9),p=o(10),o=o(1),u=[{name:"moveUp",iconClassName:"k-icon k-i-arrow-60-up"},{name:"moveDown",iconClassName:"k-icon k-i-arrow-60-down"},{name:"transferTo",iconClassName:"k-icon k-i-arrow-60-right"},{name:"transferFrom",iconClassName:"k-icon k-i-arrow-60-left"},{name:"transferAllTo",iconClassName:"k-icon k-i-arrow-double-60-right"},{name:"transferAllFrom",iconClassName:"k-icon k-i-arrow-double-60-left"},{name:"remove",iconClassName:"k-icon k-i-x"}],o=(a=i.PureComponent,n(s,a),s.prototype.render=function(){var a=this,s=c.provideLocalizationService(this);return i.createElement("div",{className:l.classNames("k-listbox-toolbar")},i.createElement("ul",{className:"k-reset"},this.props.tools&&this.props.tools.map(function(t,e){var o=u.findIndex(function(e){return e.name===t}),r=u[o],n=a.isItemDisabled(r.name),o="listbox."+r.name;return i.createElement("li",{key:e},i.createElement("a",{href:"#",className:l.classNames("k-button","k-button-icon",{"k-state-disabled":n}),"data-command":r.name,title:s.toLanguageString(o,p.messages[o]),"aria-label":s.toLanguageString(o,p.messages[o]),role:"button",onClick:function(e){e.preventDefault(),a.handleToolClick(e,r.name||null)}},i.createElement("span",{className:r.iconClassName})))})))},s.propTypes={data:o.array,dataConnected:o.array,tools:o.array},s.defaultProps={data:[],dataConnected:[]},s);function s(){var s=null!==a&&a.apply(this,arguments)||this;return s.handleToolClick=function(e,t){l.dispatchEvent(s.props.onToolClick,e,s,{toolName:t})},s.isItemDisabled=function(e){var t=!0,o=s.props.data.length,r=s.props.dataConnected.length,n=0<=s.props.data.findIndex(function(e){return!0===e.selected}),a=0<=s.props.dataConnected.findIndex(function(e){return!0===e.selected});switch(e){case"moveUp":t=n?!(0<s.props.data.length)||s.props.data[0].selected:!a||!(0<s.props.dataConnected.length)||s.props.dataConnected[0].selected;break;case"moveDown":t=n?!s.props.data[o-1]||s.props.data[o-1].selected:!a||!(0<s.props.dataConnected.length)||s.props.dataConnected[r-1].selected;break;case"transferTo":t=!(s.props.dataConnected&&n);break;case"transferFrom":t=!s.props.dataConnected||!(s.props.dataConnected&&a);break;case"transferAllTo":t=!(s.props.dataConnected&&0<s.props.data.length);break;case"transferAllFrom":t=!(s.props.dataConnected&&0<s.props.dataConnected.length);break;case"remove":t=!(n||a)}return t},s}t.ListBoxToolbar=o,c.registerForLocalization(o)},function(e,t){e.exports=p},function(e,t,o){"use strict";var r;Object.defineProperty(t,"__esModule",{value:!0}),t.moveUp="listbox.moveUp",t.moveDown="listbox.moveDown",t.transferTo="listbox.transferTo",t.transferFrom="listbox.transferFrom",t.transferAllTo="listbox.transferAllTo",t.transferAllFrom="listbox.transferAllFrom",t.remove="listbox.remove",t.messages=((r={})[t.moveUp]="Move Up",r[t.moveDown]="Move Down",r[t.transferTo]="Transfer To",r[t.transferFrom]="Transfer From",r[t.transferAllTo]="Transfer All To",r[t.transferAllFrom]="Transfer All From",r[t.remove]="Delete",r)},function(e,v,t){"use strict";Object.defineProperty(v,"__esModule",{value:!0}),v.processListBoxData=function(e,t,o,r){var n=[],a=[],s=[],i={listBoxOneData:e=void 0===e?[]:e,listBoxTwoData:t=void 0===t?[]:t};switch(o){case"moveUp":(n=e.slice()).forEach(function(e,t){e[r]&&(n=v.moveItem(t,t-1,n))}),(s=t.slice()).forEach(function(e,t){e[r]&&(s=v.moveItem(t,t-1,s))}),i.listBoxOneData=n,i.listBoxTwoData=s;break;case"moveDown":(n=e.reverse()).forEach(function(e,t){e[r]&&(n=v.moveItem(t,t-1,n))}),(s=t.reverse()).forEach(function(e,t){e[r]&&(s=v.moveItem(t,t-1,s))}),i.listBoxOneData=n.slice().reverse(),i.listBoxTwoData=s.slice().reverse();break;case"transferTo":n=e.filter(function(e){return!e[r]}),a=e.filter(function(e){return e[r]}),s=t.concat(a),i.listBoxOneData=n,i.listBoxTwoData=s;break;case"transferFrom":s=t.filter(function(e){return!e[r]}),a=t.filter(function(e){return e[r]}),n=e.concat(a),i.listBoxOneData=n,i.listBoxTwoData=s;break;case"transferAllTo":i.listBoxOneData=[],i.listBoxTwoData=t.concat(e);break;case"transferAllFrom":i.listBoxOneData=t.concat(e),i.listBoxTwoData=[];break;case"remove":s=t.filter(function(e){return!e[r]}),n=e.filter(function(e){return!e[r]}),i.listBoxOneData=n,i.listBoxTwoData=s}return i},v.moveItem=function(e,t,o){e=o.splice(e,1)[0];return o.splice(t,0,e),o},v.processListBoxDragAndDrop=function(e,t,o,r,n){void 0===t&&(t=[]);var a=(e=void 0===e?[]:e).findIndex(function(e){return e[n]===o[n]}),s=t.findIndex(function(e){return e[n]===o[n]}),i=null!==r?e.findIndex(function(e){return e[n]===r[n]}):-1,l=null!==r?t.findIndex(function(e){return e[n]===r[n]}):-1,c=0<=a,p=0<=s,u=0<=i,d=0<=l,f=e.slice(),m=t.slice();return c&&u?{listBoxOneData:v.moveItem(a,i,e),listBoxTwoData:t}:p&&d?{listBoxOneData:e,listBoxTwoData:v.moveItem(s,l,t)}:c&&(d||null===r)?(null===r?m.push(e[a]):m.splice(l+1,0,e[a]),f.splice(a,1),{listBoxOneData:f,listBoxTwoData:m}):p&&(u||null===r)?(null===r?f.push(t[s]):f.splice(i+1,0,t[s]),m.splice(s,1),{listBoxOneData:f,listBoxTwoData:m}):{listBoxOneData:e,listBoxTwoData:t}}}],n.c=r,n.d=function(e,t,o){n.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:o})},n.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},n.t=function(t,e){if(1&e&&(t=n(t)),8&e)return t;if(4&e&&"object"==typeof t&&t&&t.__esModule)return t;var o=Object.create(null);if(n.r(o),Object.defineProperty(o,"default",{enumerable:!0,value:t}),2&e&&"string"!=typeof t)for(var r in t)n.d(o,r,function(e){return t[e]}.bind(null,r));return o},n.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return n.d(t,"a",t),t},n.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},n.p="",n(n.s=3)}}}); | ||
System.register("@progress/kendo-react-listbox",["react","prop-types","@progress/kendo-react-common","@progress/kendo-licensing","@progress/kendo-react-intl"],function(a){var s,i,l,c,p;function t(e){return e.__useDefault?e.default:e}return{setters:[function(e){s=t(e)},function(e){i=t(e)},function(e){l=t(e)},function(e){c=t(e)},function(e){p=t(e)}],execute:function(){function n(e){if(r[e])return r[e].exports;var t=r[e]={i:e,l:!1,exports:{}};return o[e].call(t.exports,t,t.exports,n),t.l=!0,t.exports}var o,r;r={},n.m=o=[function(e,t){e.exports=s},function(e,t){e.exports=i},function(e,t){e.exports=l},function(e,t,o){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=o(4);t.ListBox=r.ListBox;r=o(8);t.ListBoxToolbar=r.ListBoxToolbar;o=o(11);t.processListBoxData=o.processListBoxData,t.moveItem=o.moveItem,t.processListBoxDragAndDrop=o.processListBoxDragAndDrop,function(e){for(var t in e)a(t,e[t])}(t)},function(e,t,o){"use strict";var r,n=this&&this.__extends||(r=function(e,t){return(r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var o in t)t.hasOwnProperty(o)&&(e[o]=t[o])})(e,t)},function(e,t){function o(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(o.prototype=t.prototype,new o)}),a=this&&this.__assign||function(){return(a=Object.assign||function(e){for(var t,o=1,r=arguments.length;o<r;o++)for(var n in t=arguments[o])Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n]);return e}).apply(this,arguments)};Object.defineProperty(t,"__esModule",{value:!0});var s,i=o(0),l=o(1),c=o(2),p=o(5),u=o(6),d=o(7),l=(s=i.PureComponent,n(f,s),f.prototype.render=function(){var n=this;return i.createElement("div",{className:c.classNames(this.props.className,"k-listbox",this.setToolbarPosition()),style:this.props.style,unselectable:"on"},this.props.toolbar&&i.createElement(this.props.toolbar,null),i.createElement("div",{className:"k-list-scroller k-selectable","data-role":"selectable",onDragOver:function(e){return e.preventDefault()},onDrop:this.handleContainerDrop},i.createElement("ul",{className:"k-reset k-list",role:"listbox",tabIndex:0,onKeyDown:this.handleKeyDown},this.props.data.map(function(t,e){var o=n.setSelected(t),r=c.guid(),e={className:c.classNames("k-item",{"k-state-selected":o}),role:"option","aria-selected":o,key:e,id:r+e,"data-uid":r+e,draggable:n.props.draggable,onDragStart:function(e){return c.dispatchEvent(n.props.onDragStart,e,n,{dataItem:t})},onDragOver:function(e){e.preventDefault(),c.dispatchEvent(n.props.onDragOver,e,n,{dataItem:t})},onDrop:function(e){return c.dispatchEvent(n.props.onDrop,e,n,{dataItem:t})},onClick:function(e){return c.dispatchEvent(n.props.onItemClick,e,n,{dataItem:t})}};return n.props.item?i.createElement(n.props.item,a({selected:o,dataItem:t},e)):i.createElement("li",a({},e),n.renderItem(t))}))),i.createElement("select",{style:{display:"none"},multiple:!0,"data-role":"listbox"},this.props.data.map(function(e,t){e=e[n.props.valueField||n.props.textField];return i.createElement("option",{key:t,value:e,selected:!0},e)})))},f.propTypes={toolbarPosition:l.oneOf(["none","top","bottom","left","right"]),textField:l.string,valueField:l.string,selectedField:l.string,data:l.array},f.defaultProps={toolbarPosition:p.toolbarPosition.RIGHT,draggable:!0},f);function f(e){var t=s.call(this,e)||this;return t.setSelected=function(e){if(t.props.selectedField)return!!e[t.props.selectedField]},t.renderItem=function(e){return t.props.textField?e[t.props.textField]:e.toString()},t.handleKeyDown=function(e){c.dispatchEvent(t.props.onKeyDown,e,t,void 0)},t.handleContainerDrop=function(e){e.target.classList.contains("k-list-scroller")&&(0<t.props.data.length?c.dispatchEvent(t.props.onDrop,e,t,{dataItem:t.props.data[t.props.data.length-1]}):c.dispatchEvent(t.props.onDrop,e,t,{dataItem:null}))},t.setToolbarPosition=function(){return t.props.toolbarPosition===p.toolbarPosition.NONE||void 0===t.props.toolbar?"":"k-listbox-toolbar-"+t.props.toolbarPosition},u.validatePackage(d.packageMetadata),t}t.ListBox=l},function(e,t,o){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),(t=t.toolbarPosition||(t.toolbarPosition={})).TOP="top",t.BOTTOM="bottom",t.LEFT="left",t.RIGHT="right",t.NONE="none"},function(e,t){e.exports=c},function(e,t,o){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.packageMetadata={name:"@progress/kendo-react-listbox",productName:"KendoReact",productCodes:["KENDOUIREACT","KENDOUICOMPLETE"],publishDate:1613461194,version:"",licensingDocsUrl:"https://www.telerik.com/kendo-react-ui/my-license/?utm_medium=product&utm_source=kendoreact&utm_campaign=kendo-ui-react-purchase-license-keys-warning"}},function(e,t,o){"use strict";var r,n=this&&this.__extends||(r=function(e,t){return(r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var o in t)t.hasOwnProperty(o)&&(e[o]=t[o])})(e,t)},function(e,t){function o(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(o.prototype=t.prototype,new o)});Object.defineProperty(t,"__esModule",{value:!0});var a,i=o(0),l=o(2),c=o(9),p=o(10),o=o(1),u=[{name:"moveUp",iconClassName:"k-icon k-i-arrow-60-up"},{name:"moveDown",iconClassName:"k-icon k-i-arrow-60-down"},{name:"transferTo",iconClassName:"k-icon k-i-arrow-60-right"},{name:"transferFrom",iconClassName:"k-icon k-i-arrow-60-left"},{name:"transferAllTo",iconClassName:"k-icon k-i-arrow-double-60-right"},{name:"transferAllFrom",iconClassName:"k-icon k-i-arrow-double-60-left"},{name:"remove",iconClassName:"k-icon k-i-x"}],o=(a=i.PureComponent,n(s,a),s.prototype.render=function(){var a=this,s=c.provideLocalizationService(this);return i.createElement("div",{className:l.classNames("k-listbox-toolbar")},i.createElement("ul",{className:"k-reset"},this.props.tools&&this.props.tools.map(function(t,e){var o=u.findIndex(function(e){return e.name===t}),r=u[o],n=a.isItemDisabled(r.name),o="listbox."+r.name;return i.createElement("li",{key:e},i.createElement("a",{href:"#",className:l.classNames("k-button","k-button-icon",{"k-state-disabled":n}),"data-command":r.name,title:s.toLanguageString(o,p.messages[o]),"aria-label":s.toLanguageString(o,p.messages[o]),role:"button",onClick:function(e){e.preventDefault(),a.handleToolClick(e,r.name||null)}},i.createElement("span",{className:r.iconClassName})))})))},s.propTypes={data:o.array,dataConnected:o.array,tools:o.array},s.defaultProps={data:[],dataConnected:[]},s);function s(){var s=null!==a&&a.apply(this,arguments)||this;return s.handleToolClick=function(e,t){l.dispatchEvent(s.props.onToolClick,e,s,{toolName:t})},s.isItemDisabled=function(e){var t=!0,o=s.props.data.length,r=s.props.dataConnected.length,n=0<=s.props.data.findIndex(function(e){return!0===e.selected}),a=0<=s.props.dataConnected.findIndex(function(e){return!0===e.selected});switch(e){case"moveUp":t=n?!(0<s.props.data.length)||s.props.data[0].selected:!a||!(0<s.props.dataConnected.length)||s.props.dataConnected[0].selected;break;case"moveDown":t=n?!s.props.data[o-1]||s.props.data[o-1].selected:!a||!(0<s.props.dataConnected.length)||s.props.dataConnected[r-1].selected;break;case"transferTo":t=!(s.props.dataConnected&&n);break;case"transferFrom":t=!s.props.dataConnected||!(s.props.dataConnected&&a);break;case"transferAllTo":t=!(s.props.dataConnected&&0<s.props.data.length);break;case"transferAllFrom":t=!(s.props.dataConnected&&0<s.props.dataConnected.length);break;case"remove":t=!(n||a)}return t},s}t.ListBoxToolbar=o,c.registerForLocalization(o)},function(e,t){e.exports=p},function(e,t,o){"use strict";var r;Object.defineProperty(t,"__esModule",{value:!0}),t.moveUp="listbox.moveUp",t.moveDown="listbox.moveDown",t.transferTo="listbox.transferTo",t.transferFrom="listbox.transferFrom",t.transferAllTo="listbox.transferAllTo",t.transferAllFrom="listbox.transferAllFrom",t.remove="listbox.remove",t.messages=((r={})[t.moveUp]="Move Up",r[t.moveDown]="Move Down",r[t.transferTo]="Transfer To",r[t.transferFrom]="Transfer From",r[t.transferAllTo]="Transfer All To",r[t.transferAllFrom]="Transfer All From",r[t.remove]="Delete",r)},function(e,v,t){"use strict";Object.defineProperty(v,"__esModule",{value:!0}),v.processListBoxData=function(e,t,o,r){var n=[],a=[],s=[],i={listBoxOneData:e=void 0===e?[]:e,listBoxTwoData:t=void 0===t?[]:t};switch(o){case"moveUp":(n=e.slice()).forEach(function(e,t){e[r]&&(n=v.moveItem(t,t-1,n))}),(s=t.slice()).forEach(function(e,t){e[r]&&(s=v.moveItem(t,t-1,s))}),i.listBoxOneData=n,i.listBoxTwoData=s;break;case"moveDown":(n=e.reverse()).forEach(function(e,t){e[r]&&(n=v.moveItem(t,t-1,n))}),(s=t.reverse()).forEach(function(e,t){e[r]&&(s=v.moveItem(t,t-1,s))}),i.listBoxOneData=n.slice().reverse(),i.listBoxTwoData=s.slice().reverse();break;case"transferTo":n=e.filter(function(e){return!e[r]}),a=e.filter(function(e){return e[r]}),s=t.concat(a),i.listBoxOneData=n,i.listBoxTwoData=s;break;case"transferFrom":s=t.filter(function(e){return!e[r]}),a=t.filter(function(e){return e[r]}),n=e.concat(a),i.listBoxOneData=n,i.listBoxTwoData=s;break;case"transferAllTo":i.listBoxOneData=[],i.listBoxTwoData=t.concat(e);break;case"transferAllFrom":i.listBoxOneData=t.concat(e),i.listBoxTwoData=[];break;case"remove":s=t.filter(function(e){return!e[r]}),n=e.filter(function(e){return!e[r]}),i.listBoxOneData=n,i.listBoxTwoData=s}return i},v.moveItem=function(e,t,o){e=o.splice(e,1)[0];return o.splice(t,0,e),o},v.processListBoxDragAndDrop=function(e,t,o,r,n){void 0===t&&(t=[]);var a=(e=void 0===e?[]:e).findIndex(function(e){return e[n]===o[n]}),s=t.findIndex(function(e){return e[n]===o[n]}),i=null!==r?e.findIndex(function(e){return e[n]===r[n]}):-1,l=null!==r?t.findIndex(function(e){return e[n]===r[n]}):-1,c=0<=a,p=0<=s,u=0<=i,d=0<=l,f=e.slice(),m=t.slice();return c&&u?{listBoxOneData:v.moveItem(a,i,e),listBoxTwoData:t}:p&&d?{listBoxOneData:e,listBoxTwoData:v.moveItem(s,l,t)}:c&&(d||null===r)?(null===r?m.push(e[a]):m.splice(l+1,0,e[a]),f.splice(a,1),{listBoxOneData:f,listBoxTwoData:m}):p&&(u||null===r)?(null===r?f.push(t[s]):f.splice(i+1,0,t[s]),m.splice(s,1),{listBoxOneData:f,listBoxTwoData:m}):{listBoxOneData:e,listBoxTwoData:t}}}],n.c=r,n.d=function(e,t,o){n.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:o})},n.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},n.t=function(t,e){if(1&e&&(t=n(t)),8&e)return t;if(4&e&&"object"==typeof t&&t&&t.__esModule)return t;var o=Object.create(null);if(n.r(o),Object.defineProperty(o,"default",{enumerable:!0,value:t}),2&e&&"string"!=typeof t)for(var r in t)n.d(o,r,function(e){return t[e]}.bind(null,r));return o},n.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return n.d(t,"a",t),t},n.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},n.p="",n(n.s=3)}}}); |
{ | ||
"name": "@progress/kendo-react-listbox", | ||
"version": "4.4.0-dev.202102150904", | ||
"version": "4.4.0-dev.202102160821", | ||
"description": "KendoReact ListBox package", | ||
@@ -39,4 +39,4 @@ "repository": { | ||
"@progress/kendo-licensing": "^1.0.1", | ||
"@progress/kendo-react-common": "4.4.0-dev.202102150904", | ||
"@progress/kendo-react-intl": "4.4.0-dev.202102150904", | ||
"@progress/kendo-react-common": "4.4.0-dev.202102160821", | ||
"@progress/kendo-react-intl": "4.4.0-dev.202102160821", | ||
"prop-types": "^15.6.0" | ||
@@ -43,0 +43,0 @@ }, |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
+ Added@progress/kendo-react-common@4.4.0-dev.202102160821(transitive)
+ Added@progress/kendo-react-intl@4.4.0-dev.202102160821(transitive)
- Removed@progress/kendo-react-common@4.4.0-dev.202102150904(transitive)
- Removed@progress/kendo-react-intl@4.4.0-dev.202102150904(transitive)