diff --git a/dist/css/index.css b/dist/css/index.css new file mode 100644 index 000000000..fd2bd9237 --- /dev/null +++ b/dist/css/index.css @@ -0,0 +1,23 @@ +/*! + * + * react-simple-keyboard v1.7.4 + * https://github.com/hodgef/react-simple-keyboard + * + * Copyright (c) Francisco Hodge (https://github.com/hodgef) + * + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. + * + */ +/*! + * + * simple-keyboard v2.6.7 + * https://github.com/hodgef/simple-keyboard + * + * Copyright (c) Francisco Hodge (https://github.com/hodgef) + * + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. + * + */body,html{margin:0;padding:0}.simple-keyboard{font-family:HelveticaNeue-Light,Helvetica Neue Light,Helvetica Neue,Helvetica,Arial,Lucida Grande,sans-serif;width:100%;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;-webkit-box-sizing:border-box;box-sizing:border-box;overflow:hidden;-ms-touch-action:manipulation;touch-action:manipulation}.simple-keyboard .hg-row{display:-ms-flexbox;display:flex}.simple-keyboard .hg-row:not(:last-child){margin-bottom:5px}.simple-keyboard .hg-row .hg-button:not(:last-child){margin-right:5px}.simple-keyboard .hg-button{display:inline-block;-ms-flex-positive:1;flex-grow:1;cursor:pointer}.hg-standardBtn{max-width:100px}.simple-keyboard.hg-theme-default{background-color:rgba(0,0,0,.1);padding:5px;border-radius:5px}.simple-keyboard.hg-theme-default .hg-button{-webkit-box-shadow:0 0 3px -1px rgba(0,0,0,.3);box-shadow:0 0 3px -1px rgba(0,0,0,.3);height:40px;border-radius:5px;-webkit-box-sizing:border-box;box-sizing:border-box;padding:5px;background:#fff;border-bottom:1px solid #b5b5b5;cursor:pointer;display:-ms-flexbox;display:flex;-ms-flex-align:center;align-items:center;-ms-flex-pack:center;justify-content:center}.simple-keyboard.hg-theme-default .hg-button:active{background:#e4e4e4}.simple-keyboard.hg-theme-default.hg-layout-numeric .hg-button{width:33.3%;height:60px;-ms-flex-align:center;align-items:center;display:-ms-flexbox;display:flex;-ms-flex-pack:center;justify-content:center}.simple-keyboard.hg-theme-default .hg-button.hg-button-numpadadd,.simple-keyboard.hg-theme-default .hg-button.hg-button-numpadenter{height:85px}.simple-keyboard.hg-theme-default .hg-button.hg-button-numpad0{width:105px}.simple-keyboard.hg-theme-default .hg-button.hg-button-com{max-width:85px}.simple-keyboard.hg-theme-default .hg-button.hg-standardBtn.hg-button-at{max-width:45px}.simple-keyboard.hg-theme-default .hg-button.hg-selectedButton{background:rgba(5,25,70,.53);color:#fff}.simple-keyboard.hg-theme-default .hg-button.hg-standardBtn[data-skbtn=".com"]{max-width:82px}.simple-keyboard.hg-theme-default .hg-button.hg-standardBtn[data-skbtn="@"]{max-width:60px} +/*# sourceMappingURL=index.css.map*/ \ No newline at end of file diff --git a/dist/css/index.css.map b/dist/css/index.css.map new file mode 100644 index 000000000..d9abbad77 --- /dev/null +++ b/dist/css/index.css.map @@ -0,0 +1 @@ +{"version":3,"sources":["webpack:///./node_modules/simple-keyboard/build/css/index.css"],"names":[],"mappings":";;;;;;;;;;;AAAA;;;;;;;;;;GAWA,UAAU,SAAS,SAAS,CAAC,iBAAiB,6GAA6G,WAAW,yBAAyB,sBAAsB,qBAAqB,iBAAiB,8BAA8B,sBAAsB,gBAAgB,8BAA8B,yBAAyB,CAAC,yBAAyB,oBAAoB,YAAY,CAAC,0CAA0C,iBAAiB,CAAC,qDAAqD,gBAAgB,CAAC,4BAA4B,qBAAqB,oBAAoB,YAAY,cAAc,CAAC,gBAAgB,eAAe,CAAC,kCAAkC,gCAAgC,YAAY,iBAAiB,CAAC,6CAA6C,+CAA+C,uCAAuC,YAAY,kBAAkB,8BAA8B,sBAAsB,YAAY,gBAAgB,gCAAgC,eAAe,oBAAoB,aAAa,sBAAsB,mBAAmB,qBAAqB,sBAAsB,CAAC,oDAAoD,kBAAkB,CAAC,+DAA+D,YAAY,YAAY,sBAAsB,mBAAmB,oBAAoB,aAAa,qBAAqB,sBAAsB,CAAC,oIAAoI,WAAW,CAAC,+DAA+D,WAAW,CAAC,2DAA2D,cAAc,CAAC,yEAAyE,cAAc,CAAC,+DAA+D,6BAA6B,UAAU,CAAC,+EAA+E,cAAc,CAAC,4EAA4E,cAAc","file":"css/index.css","sourcesContent":["/*!\n * \n * simple-keyboard v2.6.7\n * https://github.com/hodgef/simple-keyboard\n * \n * Copyright (c) Francisco Hodge (https://github.com/hodgef)\n * \n * This source code is licensed under the MIT license found in the\n * LICENSE file in the root directory of this source tree.\n * \n */\nbody,html{margin:0;padding:0}.simple-keyboard{font-family:HelveticaNeue-Light,Helvetica Neue Light,Helvetica Neue,Helvetica,Arial,Lucida Grande,sans-serif;width:100%;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;-webkit-box-sizing:border-box;box-sizing:border-box;overflow:hidden;-ms-touch-action:manipulation;touch-action:manipulation}.simple-keyboard .hg-row{display:-ms-flexbox;display:flex}.simple-keyboard .hg-row:not(:last-child){margin-bottom:5px}.simple-keyboard .hg-row .hg-button:not(:last-child){margin-right:5px}.simple-keyboard .hg-button{display:inline-block;-ms-flex-positive:1;flex-grow:1;cursor:pointer}.hg-standardBtn{max-width:100px}.simple-keyboard.hg-theme-default{background-color:rgba(0,0,0,.1);padding:5px;border-radius:5px}.simple-keyboard.hg-theme-default .hg-button{-webkit-box-shadow:0 0 3px -1px rgba(0,0,0,.3);box-shadow:0 0 3px -1px rgba(0,0,0,.3);height:40px;border-radius:5px;-webkit-box-sizing:border-box;box-sizing:border-box;padding:5px;background:#fff;border-bottom:1px solid #b5b5b5;cursor:pointer;display:-ms-flexbox;display:flex;-ms-flex-align:center;align-items:center;-ms-flex-pack:center;justify-content:center}.simple-keyboard.hg-theme-default .hg-button:active{background:#e4e4e4}.simple-keyboard.hg-theme-default.hg-layout-numeric .hg-button{width:33.3%;height:60px;-ms-flex-align:center;align-items:center;display:-ms-flexbox;display:flex;-ms-flex-pack:center;justify-content:center}.simple-keyboard.hg-theme-default .hg-button.hg-button-numpadadd,.simple-keyboard.hg-theme-default .hg-button.hg-button-numpadenter{height:85px}.simple-keyboard.hg-theme-default .hg-button.hg-button-numpad0{width:105px}.simple-keyboard.hg-theme-default .hg-button.hg-button-com{max-width:85px}.simple-keyboard.hg-theme-default .hg-button.hg-standardBtn.hg-button-at{max-width:45px}.simple-keyboard.hg-theme-default .hg-button.hg-selectedButton{background:rgba(5,25,70,.53);color:#fff}.simple-keyboard.hg-theme-default .hg-button.hg-standardBtn[data-skbtn=\".com\"]{max-width:82px}.simple-keyboard.hg-theme-default .hg-button.hg-standardBtn[data-skbtn=\"@\"]{max-width:60px}\n\n\n// WEBPACK FOOTER //\n// ./node_modules/simple-keyboard/build/css/index.css"],"sourceRoot":""} \ No newline at end of file diff --git a/dist/index.js b/dist/index.js new file mode 100644 index 000000000..0ced455a8 --- /dev/null +++ b/dist/index.js @@ -0,0 +1,13 @@ +/*! + * + * react-simple-keyboard v1.7.4 + * https://github.com/hodgef/react-simple-keyboard + * + * Copyright (c) Francisco Hodge (https://github.com/hodgef) + * + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. + * + */ +!function(t,e){"object"===typeof exports&&"object"===typeof module?module.exports=e(require("react")):"function"===typeof define&&define.amd?define(["react"],e):"object"===typeof exports?exports.ReactSimpleKeyboard=e(require("react")):t.ReactSimpleKeyboard=e(t.react)}(this,function(t){return function(t){function e(o){if(n[o])return n[o].exports;var i=n[o]={i:o,l:!1,exports:{}};return t[o].call(i.exports,i,i.exports,e),i.l=!0,i.exports}var n={};return e.m=t,e.c=n,e.d=function(t,n,o){e.o(t,n)||Object.defineProperty(t,n,{configurable:!1,enumerable:!0,get:o})},e.n=function(t){var n=t&&t.__esModule?function(){return t.default}:function(){return t};return e.d(n,"a",n),n},e.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)},e.p="",e(e.s=0)}([function(t,e,n){t.exports=n(1)},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var o=n(2);e.default=o.a},function(t,e,n){"use strict";function o(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function i(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!==typeof e&&"function"!==typeof e?t:e}function a(t,e){if("function"!==typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}var s=n(3),r=n.n(s),u=n(4),c=n.n(u),p=n(9),l=n.n(p),d=n(10),f=n(11),h=(n.n(f),function(){function t(t,e){for(var n=0;n1?o:o[0]),n},this.handleCaret=function(){e.options.debug&&console.log("Caret handling started"),document.addEventListener("keyup",e.caretEventHandler),document.addEventListener("mouseup",e.caretEventHandler),document.addEventListener("touchend",e.caretEventHandler)},this.caretEventHandler=function(t){var n=t.target.tagName.toLowerCase();"textarea"!==n&&"input"!==n||(e.caretPosition=t.target.selectionStart,e.options.debug&&console.log("Caret at: ",t.target.selectionStart,t.target.tagName.toLowerCase()))},this.onInit=function(){e.options.debug&&console.log("Initialized"),e.handleCaret(),"function"===typeof e.options.onInit&&e.options.onInit()},this.onRender=function(){"function"===typeof e.options.onRender&&e.options.onRender()},this.render=function(){e.clear();var t=e.options.layout?"hg-layout-custom":"hg-layout-"+e.options.layoutName,n=e.options.layout||s.a.getDefaultLayout(),o={};Array.isArray(e.options.buttonTheme)&&e.options.buttonTheme.forEach(function(t){if(t.buttons&&t.class){var n=void 0;"string"===typeof t.buttons&&(n=t.buttons.split(" ")),n&&n.forEach(function(n){var i=o[n];i?e.utilities.countInArray(i.split(" "),t.class)||(o[n]=i+" "+t.class):o[n]=t.class})}else console.warn('buttonTheme row is missing the "buttons" or the "class". Please check the documentation.')}),e.keyboardDOM.className+=" "+e.options.theme+" "+t,n[e.options.layoutName].forEach(function(t,n){var i=t.split(" "),a=document.createElement("div");a.className+="hg-row",i.forEach(function(t,i){var s=e.utilities.getButtonClass(t),r=o[t],u=e.utilities.getButtonDisplayName(t,e.options.display,e.options.mergeDisplay),c=document.createElement("div");c.className+="hg-button "+s+(r?" "+r:""),c.onclick=function(){return e.handleButtonClicked(t)},c.setAttribute("data-skBtn",t);var p=e.options.layoutName+"-r"+n+"b"+i;c.setAttribute("data-skBtnUID",p),c.setAttribute("data-displayLabel",u);var l=document.createElement("span");l.innerHTML=u,c.appendChild(l),e.buttonElements[t]||(e.buttonElements[t]=[]),e.buttonElements[t].push(c),a.appendChild(c)}),e.keyboardDOM.appendChild(a)}),e.onRender(),e.initialized||(e.initialized=!0,e.onInit())};var n="string"===typeof(arguments.length<=0?void 0:arguments[0])?arguments.length<=0?void 0:arguments[0]:".simple-keyboard",i="object"===u(arguments.length<=0?void 0:arguments[0])?arguments.length<=0?void 0:arguments[0]:arguments.length<=1?void 0:arguments[1];if(i||(i={}),this.utilities=new r.a(this),this.keyboardDOM=document.querySelector(n),this.options=i,this.options.layoutName=this.options.layoutName||"default",this.options.theme=this.options.theme||"hg-theme-default",this.options.inputName=this.options.inputName||"default",this.input={},this.input[this.options.inputName]="",this.keyboardDOMClass=n.split(".").join(""),this.buttonElements={},!this.keyboardDOM)throw console.warn('"'+n+'" was not found in the DOM.'),new Error("KEYBOARD_DOM_ERROR");this.render(),window.SimpleKeyboardInstances||(window.SimpleKeyboardInstances={}),window.SimpleKeyboardInstances[this.utilities.camelCase(this.keyboardDOMClass)]=this,this.physicalKeyboardInterface=new a.a(this)};e.a=c},function(t,e){},function(t,e,n){"use strict";function o(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}var i=function t(e){var n=this;o(this,t),this.initKeyboardListener=function(){document.addEventListener("keydown",function(t){if(n.simpleKeyboardInstance.options.physicalKeyboardHighlight){var e=n.getSimpleKeyboardLayoutKey(t);n.simpleKeyboardInstance.dispatch(function(t){var o=t.getButtonElement(e)||t.getButtonElement("{"+e+"}");o&&(o.style.backgroundColor=n.simpleKeyboardInstance.options.physicalKeyboardHighlightBgColor||"#9ab4d0",o.style.color=n.simpleKeyboardInstance.options.physicalKeyboardHighlightTextColor||"white")})}}),document.addEventListener("keyup",function(t){if(n.simpleKeyboardInstance.options.physicalKeyboardHighlight){var e=n.getSimpleKeyboardLayoutKey(t);n.simpleKeyboardInstance.dispatch(function(t){var n=t.getButtonElement(e)||t.getButtonElement("{"+e+"}");n&&n.removeAttribute("style")})}})},this.getSimpleKeyboardLayoutKey=function(t){var e=void 0;return e=t.code.includes("Numpad")||t.code.includes("Shift")||t.code.includes("Space")||t.code.includes("Backspace")||t.code.includes("Control")||t.code.includes("Alt")||t.code.includes("Meta")?t.code:t.key,(e!==e.toUpperCase()||"F"===t.code[0]&&Number.isInteger(Number(t.code[1]))&&t.code.length<=3)&&(e=e.toLowerCase()),e},this.simpleKeyboardInstance=e,this.initKeyboardListener()};e.a=i},function(t,e,n){"use strict";function o(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}var i=function t(){o(this,t)};i.getDefaultLayout=function(){return{default:["` 1 2 3 4 5 6 7 8 9 0 - = {bksp}","{tab} q w e r t y u i o p [ ] \\","{lock} a s d f g h j k l ; ' {enter}","{shift} z x c v b n m , . / {shift}",".com @ {space}"],shift:["~ ! @ # $ % ^ & * ( ) _ + {bksp}","{tab} Q W E R T Y U I O P { } |",'{lock} A S D F G H J K L : " {enter}',"{shift} Z X C V B N M < > ? {shift}",".com @ {space}"]}},e.a=i},function(t,e,n){"use strict";function o(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}var i="function"===typeof Symbol&&"symbol"===typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"===typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},a=function(){function t(t,e){for(var n=0;n0?a=n.removeAt(a,i):"{space}"===t?a=n.addStringAt(a," ",i):"{tab}"!==t||"boolean"===typeof o.tabCharOnTab&&!1===o.tabCharOnTab?"{enter}"!==t&&"{numpadenter}"!==t||!o.newLineOnEnter?t.includes("numpad")&&Number.isInteger(Number(t[t.length-2]))?a=n.addStringAt(a,t[t.length-2],i):"{numpaddivide}"===t?a=n.addStringAt(a,"/",i):"{numpadmultiply}"===t?a=n.addStringAt(a,"*",i):"{numpadsubtract}"===t?a=n.addStringAt(a,"-",i):"{numpadadd}"===t?a=n.addStringAt(a,"+",i):"{numpaddecimal}"===t?a=n.addStringAt(a,".",i):"{"===t||"}"===t?a=n.addStringAt(a,t,i):t.includes("{")||t.includes("}")||(a=n.addStringAt(a,t,i)):a=n.addStringAt(a,"\n",i):a=n.addStringAt(a,"\t",i),a},this.updateCaretPos=function(t,e){e?n.simpleKeyboardInstance.caretPosition>0&&(n.simpleKeyboardInstance.caretPosition=n.simpleKeyboardInstance.caretPosition-t):n.simpleKeyboardInstance.caretPosition=n.simpleKeyboardInstance.caretPosition+t},this.isMaxLengthReached=function(){return Boolean(n.maxLengthReached)},this.camelCase=function(t){return t.toLowerCase().trim().split(/[.\-_\s]/g).reduce(function(t,e){return t+e[0].toUpperCase()+e.slice(1)})},this.countInArray=function(t,e){return t.reduce(function(t,n){return t+(n===e)},0)},this.simpleKeyboardInstance=e}return a(t,[{key:"getDefaultDiplay",value:function(){return{"{bksp}":"backspace","{backspace}":"backspace","{enter}":"< enter","{shift}":"shift","{shiftleft}":"shift","{shiftright}":"shift","{alt}":"alt","{s}":"shift","{tab}":"tab","{lock}":"caps","{capslock}":"caps","{accept}":"Submit","{space}":" ","{//}":" ","{esc}":"esc","{escape}":"esc","{f1}":"f1","{f2}":"f2","{f3}":"f3","{f4}":"f4","{f5}":"f5","{f6}":"f6","{f7}":"f7","{f8}":"f8","{f9}":"f9","{f10}":"f10","{f11}":"f11","{f12}":"f12","{numpaddivide}":"/","{numlock}":"lock","{arrowup}":"\u2191","{arrowleft}":"\u2190","{arrowdown}":"\u2193","{arrowright}":"\u2192","{prtscr}":"print","{scrolllock}":"scroll","{pause}":"pause","{insert}":"ins","{home}":"home","{pageup}":"up","{delete}":"del","{end}":"end","{pagedown}":"down","{numpadmultiply}":"*","{numpadsubtract}":"-","{numpadadd}":"+","{numpadenter}":"enter","{period}":".","{numpaddecimal}":".","{numpad0}":"0","{numpad1}":"1","{numpad2}":"2","{numpad3}":"3","{numpad4}":"4","{numpad5}":"5","{numpad6}":"6","{numpad7}":"7","{numpad8}":"8","{numpad9}":"9"}}},{key:"addStringAt",value:function(t,e,n){var o=void 0;return this.simpleKeyboardInstance.options.debug&&console.log("Caret at:",n),n||0===n?(o=[t.slice(0,n),e,t.slice(n)].join(""),this.isMaxLengthReached()||this.updateCaretPos(e.length)):o=t+e,o}},{key:"removeAt",value:function(t,e){if(0===this.simpleKeyboardInstance.caretPosition)return t;var n=void 0,o=void 0,i=void 0,a=/([\uD800-\uDBFF][\uDC00-\uDFFF])/g;return e&&e>=0?(o=t.substring(e-2,e),i=o.match(a),i?(n=t.substr(0,e-2)+t.substr(e),this.updateCaretPos(2,!0)):(n=t.substr(0,e-1)+t.substr(e),this.updateCaretPos(1,!0))):(o=t.slice(-2),i=o.match(a),i?(n=t.slice(0,-2),this.updateCaretPos(2,!0)):(n=t.slice(0,-1),this.updateCaretPos(1,!0))),n}},{key:"handleMaxLength",value:function(t,e,n){var o=e.maxLength,a=t[e.inputName],s=a.length===o;if(n.length<=a.length)return!1;if(Number.isInteger(o))return e.debug&&console.log("maxLength (num) reached:",s),s?(this.maxLengthReached=!0,!0):(this.maxLengthReached=!1,!1);if("object"===("undefined"===typeof o?"undefined":i(o))){var r=a.length===o[e.inputName];return e.debug&&console.log("maxLength (obj) reached:",r),r?(this.maxLengthReached=!0,!0):(this.maxLengthReached=!1,!1)}}}]),t}();e.a=s}])})},function(t,e,n){"use strict";function o(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}var i=function t(){o(this,t)};i.getRandomBaseClass=function(){return"simplekeyboard_id-"+Math.random().toString(36).substring(7)},i.parseProps=function(t){return Object.assign({},t,{theme:"simple-keyboard "+(t.theme||"hg-theme-default")})},e.a=i},function(t,e){}])}); +//# sourceMappingURL=index.js.map \ No newline at end of file diff --git a/dist/index.js.map b/dist/index.js.map new file mode 100644 index 000000000..3b0a57969 --- /dev/null +++ b/dist/index.js.map @@ -0,0 +1 @@ +{"version":3,"sources":["webpack:///webpack/universalModuleDefinition","webpack:///index.js","webpack:///webpack/bootstrap a08ccd3f039ae35ceccb","webpack:///./src/lib/index.js","webpack:///./src/lib/components/Keyboard.js","webpack:///external \"react\"","webpack:///./node_modules/prop-types/index.js","webpack:///./node_modules/prop-types/factoryWithThrowingShims.js","webpack:///./node_modules/fbjs/lib/emptyFunction.js","webpack:///./node_modules/fbjs/lib/invariant.js","webpack:///./node_modules/prop-types/lib/ReactPropTypesSecret.js","webpack:///./node_modules/simple-keyboard/build/index.js","webpack:///./src/lib/services/Utilities.js"],"names":["root","factory","exports","module","require","define","amd","this","__WEBPACK_EXTERNAL_MODULE_3__","modules","__webpack_require__","moduleId","installedModules","i","l","call","m","c","d","name","getter","o","Object","defineProperty","configurable","enumerable","get","n","__esModule","object","property","prototype","hasOwnProperty","p","s","__webpack_exports__","value","__WEBPACK_IMPORTED_MODULE_0__components_Keyboard__","_classCallCheck","instance","Constructor","TypeError","_possibleConstructorReturn","self","ReferenceError","_inherits","subClass","superClass","create","constructor","writable","setPrototypeOf","__proto__","__WEBPACK_IMPORTED_MODULE_0_react__","__WEBPACK_IMPORTED_MODULE_0_react___default","__WEBPACK_IMPORTED_MODULE_1_prop_types__","__WEBPACK_IMPORTED_MODULE_1_prop_types___default","__WEBPACK_IMPORTED_MODULE_2_simple_keyboard__","__WEBPACK_IMPORTED_MODULE_2_simple_keyboard___default","__WEBPACK_IMPORTED_MODULE_3__services_Utilities__","__WEBPACK_IMPORTED_MODULE_4_simple_keyboard_build_css_index_css__","_createClass","defineProperties","target","props","length","descriptor","key","protoProps","staticProps","KeyboardReact","_Component","_this","getPrototypeOf","_initialiseProps","baseClassDefault","getRandomBaseClass","initKeyboard","baseClass","a","createElement","className","_this2","state","input","componentWillReceiveProps","nextProps","keyboard","setOptions","parseProps","clearInput","inputName","setState","getInput","setInput","Promise","resolve","onKeyPress","button","debug","console","log","onChange","onChangeAll","assign","propTypes","layoutName","string","layout","theme","display","func","bool","emptyFunction","invariant","ReactPropTypesSecret","shim","propName","componentName","location","propFullName","secret","getShim","isRequired","ReactPropTypes","array","number","symbol","any","arrayOf","element","instanceOf","node","objectOf","oneOf","oneOfType","shape","exact","checkPropTypes","PropTypes","makeEmptyFunction","arg","thatReturns","thatReturnsFalse","thatReturnsTrue","thatReturnsNull","thatReturnsThis","thatReturnsArgument","condition","format","b","e","f","validateFormat","error","undefined","Error","args","argIndex","replace","framesToPop","t","default","r","u","Symbol","iterator","handleButtonClicked","options","utilities","getUpdatedInput","caretPosition","maxLength","handleMaxLength","syncInstanceInputs","dispatch","replaceInput","render","clear","keyboardDOM","innerHTML","keyboardDOMClass","buttonElements","window","SimpleKeyboardInstances","warn","keys","forEach","addButtonTheme","split","buttonTheme","map","class","includes","buttons","push","join","removeButtonTheme","Array","isArray","filter","splice","getButtonElement","handleCaret","document","addEventListener","caretEventHandler","tagName","toLowerCase","selectionStart","onInit","onRender","getDefaultLayout","countInArray","getButtonClass","getButtonDisplayName","mergeDisplay","onclick","setAttribute","appendChild","initialized","arguments","querySelector","camelCase","physicalKeyboardInterface","initKeyboardListener","simpleKeyboardInstance","physicalKeyboardHighlight","getSimpleKeyboardLayoutKey","style","backgroundColor","physicalKeyboardHighlightBgColor","color","physicalKeyboardHighlightTextColor","removeAttribute","code","toUpperCase","Number","isInteger","shift","getDefaultDiplay","removeAt","addStringAt","tabCharOnTab","newLineOnEnter","updateCaretPos","isMaxLengthReached","Boolean","maxLengthReached","trim","reduce","slice","{bksp}","{backspace}","{enter}","{shift}","{shiftleft}","{shiftright}","{alt}","{s}","{tab}","{lock}","{capslock}","{accept}","{space}","{//}","{esc}","{escape}","{f1}","{f2}","{f3}","{f4}","{f5}","{f6}","{f7}","{f8}","{f9}","{f10}","{f11}","{f12}","{numpaddivide}","{numlock}","{arrowup}","{arrowleft}","{arrowdown}","{arrowright}","{prtscr}","{scrolllock}","{pause}","{insert}","{home}","{pageup}","{delete}","{end}","{pagedown}","{numpadmultiply}","{numpadsubtract}","{numpadadd}","{numpadenter}","{period}","{numpaddecimal}","{numpad0}","{numpad1}","{numpad2}","{numpad3}","{numpad4}","{numpad5}","{numpad6}","{numpad7}","{numpad8}","{numpad9}","substring","match","substr","Utilities","Math","random","toString"],"mappings":";;;;;;;;;;;CAAA,SAAAA,EAAAC,GACA,iBAAAC,UAAA,iBAAAC,QACAA,OAAAD,QAAAD,EAAAG,QAAA,UACA,mBAAAC,gBAAAC,IACAD,QAAA,SAAAJ,GACA,iBAAAC,SACAA,QAAA,oBAAAD,EAAAG,QAAA,UAEAJ,EAAA,oBAAAC,EAAAD,EAAA,QACCO,KAAA,SAAAC,GACD,MCAgB,UAAUC,GCN1B,QAAAC,GAAAC,GAGA,GAAAC,EAAAD,GACA,MAAAC,GAAAD,GAAAT,OAGA,IAAAC,GAAAS,EAAAD,IACAE,EAAAF,EACAG,GAAA,EACAZ,WAUA,OANAO,GAAAE,GAAAI,KAAAZ,EAAAD,QAAAC,IAAAD,QAAAQ,GAGAP,EAAAW,GAAA,EAGAX,EAAAD,QAvBA,GAAAU,KA4DA,OAhCAF,GAAAM,EAAAP,EAGAC,EAAAO,EAAAL,EAGAF,EAAAQ,EAAA,SAAAhB,EAAAiB,EAAAC,GACAV,EAAAW,EAAAnB,EAAAiB,IACAG,OAAAC,eAAArB,EAAAiB,GACAK,cAAA,EACAC,YAAA,EACAC,IAAAN,KAMAV,EAAAiB,EAAA,SAAAxB,GACA,GAAAiB,GAAAjB,KAAAyB,WACA,WAA2B,MAAAzB,GAAA,SAC3B,WAAiC,MAAAA,GAEjC,OADAO,GAAAQ,EAAAE,EAAA,IAAAA,GACAA,GAIAV,EAAAW,EAAA,SAAAQ,EAAAC,GAAsD,MAAAR,QAAAS,UAAAC,eAAAjB,KAAAc,E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IAAA,kBAAA/B,MAAA,SAAA6H,EAAAV,EAAA5H,GAA4C,GAAAN,GAAAkI,EAAAqB,UAAA7F,EAAAkF,EAAAV,EAAA5D,WAAAzD,EAAA6C,EAAAd,SAAA5C,CAAkD,IAAAM,EAAAsC,QAAAc,EAAAd,OAAA,QAA+B,IAAA4K,OAAAC,UAAAzN,GAAA,MAAAkI,GAAApD,OAAAC,QAAAC,IAAA,2BAAAnE,MAAA3B,KAAAiP,kBAAA,OAAAjP,KAAAiP,kBAAA,KAA+I,oCAAAnO,GAAA,YAAAR,EAAAQ,IAAA,CAAyD,GAAA8I,GAAApF,EAAAd,SAAA5C,EAAAkI,EAAA5D,UAAgC,OAAA4D,GAAApD,OAAAC,QAAAC,IAAA,2BAAA8D,MAAA5J,KAAAiP,kBAAA,OAAAjP,KAAAiP,kBAAA,WAA0HvF,IAAQV,GAAAxE,EAAA7C,QV2V/sa,SAAU/B,EAAQgC,EAAqBzB,GAE7C,YACA,SAAS4B,GAAgBC,EAASC,GAAa,KAAKD,YAAoBC,IAAc,KAAM,IAAIC,WAAU,qCAAuC,GWzW3IiR,GXyWyJ,QAASA,KAAYpR,EAAgB/B,KAAKmT,GWzWnMA,GACK9O,mBAAqB,WAC1B,2BAA4B+O,KAAKC,SAASC,SAAS,IAAIN,UAAU,IAFjEG,EAKKjO,WAAa,SAACzB,GACnB,MAAO1C,QAAOkF,UAAWxC,GACvB6C,0BAA2B7C,EAAM6C,OAAS,uBAMlD1E,EAAA,KXgWM,SAAUhC,EAAQD","file":"index.js","sourcesContent":["(function webpackUniversalModuleDefinition(root, factory) {\n\tif(typeof exports === 'object' && typeof module === 'object')\n\t\tmodule.exports = factory(require(\"react\"));\n\telse if(typeof define === 'function' && define.amd)\n\t\tdefine([\"react\"], factory);\n\telse if(typeof exports === 'object')\n\t\texports[\"ReactSimpleKeyboard\"] = factory(require(\"react\"));\n\telse\n\t\troot[\"ReactSimpleKeyboard\"] = factory(root[\"react\"]);\n})(this, function(__WEBPACK_EXTERNAL_MODULE_3__) {\nreturn \n\n\n// WEBPACK FOOTER //\n// webpack/universalModuleDefinition","(function webpackUniversalModuleDefinition(root, factory) {\n\tif(typeof exports === 'object' && typeof module === 'object')\n\t\tmodule.exports = factory(require(\"react\"));\n\telse if(typeof define === 'function' && define.amd)\n\t\tdefine([\"react\"], factory);\n\telse if(typeof exports === 'object')\n\t\texports[\"ReactSimpleKeyboard\"] = factory(require(\"react\"));\n\telse\n\t\troot[\"ReactSimpleKeyboard\"] = factory(root[\"react\"]);\n})(this, function(__WEBPACK_EXTERNAL_MODULE_3__) {\nreturn /******/ (function(modules) { // webpackBootstrap\n/******/ \t// The module cache\n/******/ \tvar installedModules = {};\n/******/\n/******/ \t// The require function\n/******/ \tfunction __webpack_require__(moduleId) {\n/******/\n/******/ \t\t// Check if module is in cache\n/******/ \t\tif(installedModules[moduleId]) {\n/******/ \t\t\treturn installedModules[moduleId].exports;\n/******/ \t\t}\n/******/ \t\t// Create a new module (and put it into the cache)\n/******/ \t\tvar module = installedModules[moduleId] = {\n/******/ \t\t\ti: moduleId,\n/******/ \t\t\tl: false,\n/******/ \t\t\texports: {}\n/******/ \t\t};\n/******/\n/******/ \t\t// Execute the module function\n/******/ \t\tmodules[moduleId].call(module.exports, module, module.exports, __webpack_require__);\n/******/\n/******/ \t\t// Flag the module as loaded\n/******/ \t\tmodule.l = true;\n/******/\n/******/ \t\t// Return the exports of the module\n/******/ \t\treturn module.exports;\n/******/ \t}\n/******/\n/******/\n/******/ \t// expose the modules object (__webpack_modules__)\n/******/ \t__webpack_require__.m = modules;\n/******/\n/******/ \t// expose the module cache\n/******/ \t__webpack_require__.c = installedModules;\n/******/\n/******/ \t// define getter function for harmony exports\n/******/ \t__webpack_require__.d = function(exports, name, getter) {\n/******/ \t\tif(!__webpack_require__.o(exports, name)) {\n/******/ \t\t\tObject.defineProperty(exports, name, {\n/******/ \t\t\t\tconfigurable: false,\n/******/ \t\t\t\tenumerable: true,\n/******/ \t\t\t\tget: getter\n/******/ \t\t\t});\n/******/ \t\t}\n/******/ \t};\n/******/\n/******/ \t// getDefaultExport function for compatibility with non-harmony modules\n/******/ \t__webpack_require__.n = function(module) {\n/******/ \t\tvar getter = module && module.__esModule ?\n/******/ \t\t\tfunction getDefault() { return module['default']; } :\n/******/ \t\t\tfunction getModuleExports() { return module; };\n/******/ \t\t__webpack_require__.d(getter, 'a', getter);\n/******/ \t\treturn getter;\n/******/ \t};\n/******/\n/******/ \t// Object.prototype.hasOwnProperty.call\n/******/ \t__webpack_require__.o = function(object, property) { return Object.prototype.hasOwnProperty.call(object, property); };\n/******/\n/******/ \t// __webpack_public_path__\n/******/ \t__webpack_require__.p = \"\";\n/******/\n/******/ \t// Load entry module and return exports\n/******/ \treturn __webpack_require__(__webpack_require__.s = 0);\n/******/ })\n/************************************************************************/\n/******/ ([\n/* 0 */\n/***/ (function(module, exports, __webpack_require__) {\n\nmodule.exports = __webpack_require__(1);\n\n\n/***/ }),\n/* 1 */\n/***/ (function(module, __webpack_exports__, __webpack_require__) {\n\n\"use strict\";\nObject.defineProperty(__webpack_exports__, \"__esModule\", { value: true });\n/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__components_Keyboard__ = __webpack_require__(2);\n/* harmony default export */ __webpack_exports__[\"default\"] = (__WEBPACK_IMPORTED_MODULE_0__components_Keyboard__[\"a\" /* default */]);\n\n/***/ }),\n/* 2 */\n/***/ (function(module, __webpack_exports__, __webpack_require__) {\n\n\"use strict\";\n/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0_react__ = __webpack_require__(3);\n/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0_react___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_0_react__);\n/* harmony import */ var __WEBPACK_IMPORTED_MODULE_1_prop_types__ = __webpack_require__(4);\n/* harmony import */ var __WEBPACK_IMPORTED_MODULE_1_prop_types___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_1_prop_types__);\n/* harmony import */ var __WEBPACK_IMPORTED_MODULE_2_simple_keyboard__ = __webpack_require__(9);\n/* harmony import */ var __WEBPACK_IMPORTED_MODULE_2_simple_keyboard___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_2_simple_keyboard__);\n/* harmony import */ var __WEBPACK_IMPORTED_MODULE_3__services_Utilities__ = __webpack_require__(10);\n/* harmony import */ var __WEBPACK_IMPORTED_MODULE_4_simple_keyboard_build_css_index_css__ = __webpack_require__(11);\n/* harmony import */ var __WEBPACK_IMPORTED_MODULE_4_simple_keyboard_build_css_index_css___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_4_simple_keyboard_build_css_index_css__);\nvar _createClass=function(){function defineProperties(target,props){for(var i=0;i1?o:o[0]),n},this.handleCaret=function(){e.options.debug&&console.log(\"Caret handling started\"),document.addEventListener(\"keyup\",e.caretEventHandler),document.addEventListener(\"mouseup\",e.caretEventHandler),document.addEventListener(\"touchend\",e.caretEventHandler)},this.caretEventHandler=function(t){var n=t.target.tagName.toLowerCase();\"textarea\"!==n&&\"input\"!==n||(e.caretPosition=t.target.selectionStart,e.options.debug&&console.log(\"Caret at: \",t.target.selectionStart,t.target.tagName.toLowerCase()))},this.onInit=function(){e.options.debug&&console.log(\"Initialized\"),e.handleCaret(),\"function\"===typeof e.options.onInit&&e.options.onInit()},this.onRender=function(){\"function\"===typeof e.options.onRender&&e.options.onRender()},this.render=function(){e.clear();var t=e.options.layout?\"hg-layout-custom\":\"hg-layout-\"+e.options.layoutName,n=e.options.layout||s.a.getDefaultLayout(),o={};Array.isArray(e.options.buttonTheme)&&e.options.buttonTheme.forEach(function(t){if(t.buttons&&t.class){var n=void 0;\"string\"===typeof t.buttons&&(n=t.buttons.split(\" \")),n&&n.forEach(function(n){var i=o[n];i?e.utilities.countInArray(i.split(\" \"),t.class)||(o[n]=i+\" \"+t.class):o[n]=t.class})}else console.warn('buttonTheme row is missing the \"buttons\" or the \"class\". Please check the documentation.')}),e.keyboardDOM.className+=\" \"+e.options.theme+\" \"+t,n[e.options.layoutName].forEach(function(t,n){var i=t.split(\" \"),a=document.createElement(\"div\");a.className+=\"hg-row\",i.forEach(function(t,i){var s=e.utilities.getButtonClass(t),r=o[t],u=e.utilities.getButtonDisplayName(t,e.options.display,e.options.mergeDisplay),c=document.createElement(\"div\");c.className+=\"hg-button \"+s+(r?\" \"+r:\"\"),c.onclick=function(){return e.handleButtonClicked(t)},c.setAttribute(\"data-skBtn\",t);var p=e.options.layoutName+\"-r\"+n+\"b\"+i;c.setAttribute(\"data-skBtnUID\",p),c.setAttribute(\"data-displayLabel\",u);var l=document.createElement(\"span\");l.innerHTML=u,c.appendChild(l),e.buttonElements[t]||(e.buttonElements[t]=[]),e.buttonElements[t].push(c),a.appendChild(c)}),e.keyboardDOM.appendChild(a)}),e.onRender(),e.initialized||(e.initialized=!0,e.onInit())};var n=\"string\"===typeof(arguments.length<=0?void 0:arguments[0])?arguments.length<=0?void 0:arguments[0]:\".simple-keyboard\",i=\"object\"===u(arguments.length<=0?void 0:arguments[0])?arguments.length<=0?void 0:arguments[0]:arguments.length<=1?void 0:arguments[1];if(i||(i={}),this.utilities=new r.a(this),this.keyboardDOM=document.querySelector(n),this.options=i,this.options.layoutName=this.options.layoutName||\"default\",this.options.theme=this.options.theme||\"hg-theme-default\",this.options.inputName=this.options.inputName||\"default\",this.input={},this.input[this.options.inputName]=\"\",this.keyboardDOMClass=n.split(\".\").join(\"\"),this.buttonElements={},!this.keyboardDOM)throw console.warn('\"'+n+'\" was not found in the DOM.'),new Error(\"KEYBOARD_DOM_ERROR\");this.render(),window.SimpleKeyboardInstances||(window.SimpleKeyboardInstances={}),window.SimpleKeyboardInstances[this.utilities.camelCase(this.keyboardDOMClass)]=this,this.physicalKeyboardInterface=new a.a(this)};e.a=c},function(t,e){},function(t,e,n){\"use strict\";function o(t,e){if(!(t instanceof e))throw new TypeError(\"Cannot call a class as a function\")}var i=function t(e){var n=this;o(this,t),this.initKeyboardListener=function(){document.addEventListener(\"keydown\",function(t){if(n.simpleKeyboardInstance.options.physicalKeyboardHighlight){var e=n.getSimpleKeyboardLayoutKey(t);n.simpleKeyboardInstance.dispatch(function(t){var o=t.getButtonElement(e)||t.getButtonElement(\"{\"+e+\"}\");o&&(o.style.backgroundColor=n.simpleKeyboardInstance.options.physicalKeyboardHighlightBgColor||\"#9ab4d0\",o.style.color=n.simpleKeyboardInstance.options.physicalKeyboardHighlightTextColor||\"white\")})}}),document.addEventListener(\"keyup\",function(t){if(n.simpleKeyboardInstance.options.physicalKeyboardHighlight){var e=n.getSimpleKeyboardLayoutKey(t);n.simpleKeyboardInstance.dispatch(function(t){var n=t.getButtonElement(e)||t.getButtonElement(\"{\"+e+\"}\");n&&n.removeAttribute(\"style\")})}})},this.getSimpleKeyboardLayoutKey=function(t){var e=void 0;return e=t.code.includes(\"Numpad\")||t.code.includes(\"Shift\")||t.code.includes(\"Space\")||t.code.includes(\"Backspace\")||t.code.includes(\"Control\")||t.code.includes(\"Alt\")||t.code.includes(\"Meta\")?t.code:t.key,(e!==e.toUpperCase()||\"F\"===t.code[0]&&Number.isInteger(Number(t.code[1]))&&t.code.length<=3)&&(e=e.toLowerCase()),e},this.simpleKeyboardInstance=e,this.initKeyboardListener()};e.a=i},function(t,e,n){\"use strict\";function o(t,e){if(!(t instanceof e))throw new TypeError(\"Cannot call a class as a function\")}var i=function t(){o(this,t)};i.getDefaultLayout=function(){return{default:[\"` 1 2 3 4 5 6 7 8 9 0 - = {bksp}\",\"{tab} q w e r t y u i o p [ ] \\\\\",\"{lock} a s d f g h j k l ; ' {enter}\",\"{shift} z x c v b n m , . / {shift}\",\".com @ {space}\"],shift:[\"~ ! @ # $ % ^ & * ( ) _ + {bksp}\",\"{tab} Q W E R T Y U I O P { } |\",'{lock} A S D F G H J K L : \" {enter}',\"{shift} Z X C V B N M < > ? {shift}\",\".com @ {space}\"]}},e.a=i},function(t,e,n){\"use strict\";function o(t,e){if(!(t instanceof e))throw new TypeError(\"Cannot call a class as a function\")}var i=\"function\"===typeof Symbol&&\"symbol\"===typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&\"function\"===typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?\"symbol\":typeof t},a=function(){function t(t,e){for(var n=0;n0?a=n.removeAt(a,i):\"{space}\"===t?a=n.addStringAt(a,\" \",i):\"{tab}\"!==t||\"boolean\"===typeof o.tabCharOnTab&&!1===o.tabCharOnTab?\"{enter}\"!==t&&\"{numpadenter}\"!==t||!o.newLineOnEnter?t.includes(\"numpad\")&&Number.isInteger(Number(t[t.length-2]))?a=n.addStringAt(a,t[t.length-2],i):\"{numpaddivide}\"===t?a=n.addStringAt(a,\"/\",i):\"{numpadmultiply}\"===t?a=n.addStringAt(a,\"*\",i):\"{numpadsubtract}\"===t?a=n.addStringAt(a,\"-\",i):\"{numpadadd}\"===t?a=n.addStringAt(a,\"+\",i):\"{numpaddecimal}\"===t?a=n.addStringAt(a,\".\",i):\"{\"===t||\"}\"===t?a=n.addStringAt(a,t,i):t.includes(\"{\")||t.includes(\"}\")||(a=n.addStringAt(a,t,i)):a=n.addStringAt(a,\"\\n\",i):a=n.addStringAt(a,\"\\t\",i),a},this.updateCaretPos=function(t,e){e?n.simpleKeyboardInstance.caretPosition>0&&(n.simpleKeyboardInstance.caretPosition=n.simpleKeyboardInstance.caretPosition-t):n.simpleKeyboardInstance.caretPosition=n.simpleKeyboardInstance.caretPosition+t},this.isMaxLengthReached=function(){return Boolean(n.maxLengthReached)},this.camelCase=function(t){return t.toLowerCase().trim().split(/[.\\-_\\s]/g).reduce(function(t,e){return t+e[0].toUpperCase()+e.slice(1)})},this.countInArray=function(t,e){return t.reduce(function(t,n){return t+(n===e)},0)},this.simpleKeyboardInstance=e}return a(t,[{key:\"getDefaultDiplay\",value:function(){return{\"{bksp}\":\"backspace\",\"{backspace}\":\"backspace\",\"{enter}\":\"< enter\",\"{shift}\":\"shift\",\"{shiftleft}\":\"shift\",\"{shiftright}\":\"shift\",\"{alt}\":\"alt\",\"{s}\":\"shift\",\"{tab}\":\"tab\",\"{lock}\":\"caps\",\"{capslock}\":\"caps\",\"{accept}\":\"Submit\",\"{space}\":\" \",\"{//}\":\" \",\"{esc}\":\"esc\",\"{escape}\":\"esc\",\"{f1}\":\"f1\",\"{f2}\":\"f2\",\"{f3}\":\"f3\",\"{f4}\":\"f4\",\"{f5}\":\"f5\",\"{f6}\":\"f6\",\"{f7}\":\"f7\",\"{f8}\":\"f8\",\"{f9}\":\"f9\",\"{f10}\":\"f10\",\"{f11}\":\"f11\",\"{f12}\":\"f12\",\"{numpaddivide}\":\"/\",\"{numlock}\":\"lock\",\"{arrowup}\":\"\\u2191\",\"{arrowleft}\":\"\\u2190\",\"{arrowdown}\":\"\\u2193\",\"{arrowright}\":\"\\u2192\",\"{prtscr}\":\"print\",\"{scrolllock}\":\"scroll\",\"{pause}\":\"pause\",\"{insert}\":\"ins\",\"{home}\":\"home\",\"{pageup}\":\"up\",\"{delete}\":\"del\",\"{end}\":\"end\",\"{pagedown}\":\"down\",\"{numpadmultiply}\":\"*\",\"{numpadsubtract}\":\"-\",\"{numpadadd}\":\"+\",\"{numpadenter}\":\"enter\",\"{period}\":\".\",\"{numpaddecimal}\":\".\",\"{numpad0}\":\"0\",\"{numpad1}\":\"1\",\"{numpad2}\":\"2\",\"{numpad3}\":\"3\",\"{numpad4}\":\"4\",\"{numpad5}\":\"5\",\"{numpad6}\":\"6\",\"{numpad7}\":\"7\",\"{numpad8}\":\"8\",\"{numpad9}\":\"9\"}}},{key:\"addStringAt\",value:function(t,e,n){var o=void 0;return this.simpleKeyboardInstance.options.debug&&console.log(\"Caret at:\",n),n||0===n?(o=[t.slice(0,n),e,t.slice(n)].join(\"\"),this.isMaxLengthReached()||this.updateCaretPos(e.length)):o=t+e,o}},{key:\"removeAt\",value:function(t,e){if(0===this.simpleKeyboardInstance.caretPosition)return t;var n=void 0,o=void 0,i=void 0,a=/([\\uD800-\\uDBFF][\\uDC00-\\uDFFF])/g;return e&&e>=0?(o=t.substring(e-2,e),i=o.match(a),i?(n=t.substr(0,e-2)+t.substr(e),this.updateCaretPos(2,!0)):(n=t.substr(0,e-1)+t.substr(e),this.updateCaretPos(1,!0))):(o=t.slice(-2),i=o.match(a),i?(n=t.slice(0,-2),this.updateCaretPos(2,!0)):(n=t.slice(0,-1),this.updateCaretPos(1,!0))),n}},{key:\"handleMaxLength\",value:function(t,e,n){var o=e.maxLength,a=t[e.inputName],s=a.length===o;if(n.length<=a.length)return!1;if(Number.isInteger(o))return e.debug&&console.log(\"maxLength (num) reached:\",s),s?(this.maxLengthReached=!0,!0):(this.maxLengthReached=!1,!1);if(\"object\"===(\"undefined\"===typeof o?\"undefined\":i(o))){var r=a.length===o[e.inputName];return e.debug&&console.log(\"maxLength (obj) reached:\",r),r?(this.maxLengthReached=!0,!0):(this.maxLengthReached=!1,!1)}}}]),t}();e.a=s}])});\n//# sourceMappingURL=index.js.map\n\n/***/ }),\n/* 10 */\n/***/ (function(module, __webpack_exports__, __webpack_require__) {\n\n\"use strict\";\nfunction _classCallCheck(instance,Constructor){if(!(instance instanceof Constructor)){throw new TypeError(\"Cannot call a class as a function\");}}var Utilities=function Utilities(){_classCallCheck(this,Utilities);};Utilities.getRandomBaseClass=function(){return\"simplekeyboard_id-\"+Math.random().toString(36).substring(7);};Utilities.parseProps=function(props){return Object.assign({},props,{theme:\"simple-keyboard \"+(props.theme||\"hg-theme-default\")});};/* harmony default export */ __webpack_exports__[\"a\"] = (Utilities);\n\n/***/ }),\n/* 11 */\n/***/ (function(module, exports) {\n\n// removed by extract-text-webpack-plugin\n\n/***/ })\n/******/ ]);\n});\n\n\n// WEBPACK FOOTER //\n// index.js"," \t// The module cache\n \tvar installedModules = {};\n\n \t// The require function\n \tfunction __webpack_require__(moduleId) {\n\n \t\t// Check if module is in cache\n \t\tif(installedModules[moduleId]) {\n \t\t\treturn installedModules[moduleId].exports;\n \t\t}\n \t\t// Create a new module (and put it into the cache)\n \t\tvar module = installedModules[moduleId] = {\n \t\t\ti: moduleId,\n \t\t\tl: false,\n \t\t\texports: {}\n \t\t};\n\n \t\t// Execute the module function\n \t\tmodules[moduleId].call(module.exports, module, module.exports, __webpack_require__);\n\n \t\t// Flag the module as loaded\n \t\tmodule.l = true;\n\n \t\t// Return the exports of the module\n \t\treturn module.exports;\n \t}\n\n\n \t// expose the modules object (__webpack_modules__)\n \t__webpack_require__.m = modules;\n\n \t// expose the module cache\n \t__webpack_require__.c = installedModules;\n\n \t// define getter function for harmony exports\n \t__webpack_require__.d = function(exports, name, getter) {\n \t\tif(!__webpack_require__.o(exports, name)) {\n \t\t\tObject.defineProperty(exports, name, {\n \t\t\t\tconfigurable: false,\n \t\t\t\tenumerable: true,\n \t\t\t\tget: getter\n \t\t\t});\n \t\t}\n \t};\n\n \t// getDefaultExport function for compatibility with non-harmony modules\n \t__webpack_require__.n = function(module) {\n \t\tvar getter = module && module.__esModule ?\n \t\t\tfunction getDefault() { return module['default']; } :\n \t\t\tfunction getModuleExports() { return module; };\n \t\t__webpack_require__.d(getter, 'a', getter);\n \t\treturn getter;\n \t};\n\n \t// Object.prototype.hasOwnProperty.call\n \t__webpack_require__.o = function(object, property) { return Object.prototype.hasOwnProperty.call(object, property); };\n\n \t// __webpack_public_path__\n \t__webpack_require__.p = \"\";\n\n \t// Load entry module and return exports\n \treturn __webpack_require__(__webpack_require__.s = 0);\n\n\n\n// WEBPACK FOOTER //\n// webpack/bootstrap a08ccd3f039ae35ceccb","import Keyboard from './components/Keyboard';\r\nexport default Keyboard;\r\n\n\n\n// WEBPACK FOOTER //\n// ./src/lib/index.js","import React, { Component } from 'react';\r\nimport PropTypes from 'prop-types';\r\nimport Keyboard from 'simple-keyboard';\r\nimport Utilities from '../services/Utilities';\r\nimport 'simple-keyboard/build/css/index.css';\r\n\r\nclass KeyboardReact extends Component {\r\n state = {\r\n input: ''\r\n }\r\n\r\n constructor(props){\r\n super(props);\r\n this.baseClassDefault = Utilities.getRandomBaseClass();\r\n }\r\n\r\n componentDidMount(){\r\n this.initKeyboard(this.props);\r\n }\r\n\r\n componentWillReceiveProps = nextProps => {\r\n this.keyboard.setOptions(Utilities.parseProps(nextProps));\r\n }\r\n\r\n clearInput = (inputName) => {\r\n inputName = inputName || \"default\";\r\n\r\n this.setState({\r\n input: ''\r\n });\r\n\r\n this.keyboard.clearInput(inputName);\r\n }\r\n\r\n getInput = (inputName) => {\r\n return inputName ? this.keyboard.input[inputName] : this.state.input;\r\n }\r\n\r\n setInput = (input, inputName) => {\r\n return new Promise(resolve => {\r\n this.keyboard.setInput(input, inputName);\r\n this.setState({\r\n input: input\r\n }, () => {\r\n resolve(input);\r\n });\r\n })\r\n }\r\n\r\n onKeyPress = (button) => {\r\n let debug = this.props.debug;\r\n\r\n /**\r\n * Calling user onKeyPress\r\n */\r\n if(typeof this.props.onKeyPress === \"function\")\r\n this.props.onKeyPress(button);\r\n\r\n if(debug){\r\n console.log(\"Key pressed:\", button);\r\n }\r\n }\r\n\r\n onChange = (input) => {\r\n let debug = this.props.debug;\r\n\r\n this.setState({\r\n input: input\r\n }, () => {\r\n if(debug){\r\n console.log('Input changed:', this.state.input);\r\n }\r\n\r\n /**\r\n * Calling user onChange\r\n */\r\n if(typeof this.props.onChange === \"function\")\r\n this.props.onChange(this.state.input);\r\n\r\n /**\r\n * Calling user onChangeAll\r\n */\r\n if(typeof this.props.onChangeAll === \"function\")\r\n this.props.onChangeAll(this.keyboard.input);\r\n });\r\n }\r\n\r\n initKeyboard = (props) => {\r\n let baseClass = this.props.baseClass || this.baseClassDefault;\r\n\r\n this.keyboard = new Keyboard(`.${baseClass}`, {\r\n ...Utilities.parseProps(props),\r\n onKeyPress: button => this.onKeyPress(button),\r\n onChange: input => this.onChange(input),\r\n });\r\n }\r\n\r\n render() {\r\n let baseClass = this.props.baseClass || this.baseClassDefault;\r\n \r\n return (\r\n
\r\n );\r\n }\r\n}\r\n\r\nKeyboardReact.propTypes = {\r\n layoutName: PropTypes.string,\r\n layout: PropTypes.object,\r\n theme: PropTypes.string,\r\n display: PropTypes.object,\r\n onChange: PropTypes.func,\r\n onChangeAll: PropTypes.func,\r\n onKeyPress: PropTypes.func,\r\n debug: PropTypes.bool,\r\n baseClass: PropTypes.string\r\n};\r\n\r\nexport default KeyboardReact;\r\n\n\n\n// WEBPACK FOOTER //\n// ./src/lib/components/Keyboard.js","module.exports = __WEBPACK_EXTERNAL_MODULE_3__;\n\n\n//////////////////\n// WEBPACK FOOTER\n// external \"react\"\n// module id = 3\n// module chunks = 0","/**\n * Copyright (c) 2013-present, Facebook, Inc.\n *\n * This source code is licensed under the MIT license found in the\n * LICENSE file in the root directory of this source tree.\n */\n\nif (process.env.NODE_ENV !== 'production') {\n var REACT_ELEMENT_TYPE = (typeof Symbol === 'function' &&\n Symbol.for &&\n Symbol.for('react.element')) ||\n 0xeac7;\n\n var isValidElement = function(object) {\n return typeof object === 'object' &&\n object !== null &&\n object.$$typeof === REACT_ELEMENT_TYPE;\n };\n\n // By explicitly using `prop-types` you are opting into new development behavior.\n // http://fb.me/prop-types-in-prod\n var throwOnDirectAccess = true;\n module.exports = require('./factoryWithTypeCheckers')(isValidElement, throwOnDirectAccess);\n} else {\n // By explicitly using `prop-types` you are opting into new production behavior.\n // http://fb.me/prop-types-in-prod\n module.exports = require('./factoryWithThrowingShims')();\n}\n\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./node_modules/prop-types/index.js\n// module id = 4\n// module chunks = 0","/**\n * Copyright (c) 2013-present, Facebook, Inc.\n *\n * This source code is licensed under the MIT license found in the\n * LICENSE file in the root directory of this source tree.\n */\n\n'use strict';\n\nvar emptyFunction = require('fbjs/lib/emptyFunction');\nvar invariant = require('fbjs/lib/invariant');\nvar ReactPropTypesSecret = require('./lib/ReactPropTypesSecret');\n\nmodule.exports = function() {\n function shim(props, propName, componentName, location, propFullName, secret) {\n if (secret === ReactPropTypesSecret) {\n // It is still safe when called from React.\n return;\n }\n invariant(\n false,\n 'Calling PropTypes validators directly is not supported by the `prop-types` package. ' +\n 'Use PropTypes.checkPropTypes() to call them. ' +\n 'Read more at http://fb.me/use-check-prop-types'\n );\n };\n shim.isRequired = shim;\n function getShim() {\n return shim;\n };\n // Important!\n // Keep this list in sync with production version in `./factoryWithTypeCheckers.js`.\n var ReactPropTypes = {\n array: shim,\n bool: shim,\n func: shim,\n number: shim,\n object: shim,\n string: shim,\n symbol: shim,\n\n any: shim,\n arrayOf: getShim,\n element: shim,\n instanceOf: getShim,\n node: shim,\n objectOf: getShim,\n oneOf: getShim,\n oneOfType: getShim,\n shape: getShim,\n exact: getShim\n };\n\n ReactPropTypes.checkPropTypes = emptyFunction;\n ReactPropTypes.PropTypes = ReactPropTypes;\n\n return ReactPropTypes;\n};\n\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./node_modules/prop-types/factoryWithThrowingShims.js\n// module id = 5\n// module chunks = 0","\"use strict\";\n\n/**\n * Copyright (c) 2013-present, Facebook, Inc.\n *\n * This source code is licensed under the MIT license found in the\n * LICENSE file in the root directory of this source tree.\n *\n * \n */\n\nfunction makeEmptyFunction(arg) {\n return function () {\n return arg;\n };\n}\n\n/**\n * This function accepts and discards inputs; it has no side effects. This is\n * primarily useful idiomatically for overridable function endpoints which\n * always need to be callable, since JS lacks a null-call idiom ala Cocoa.\n */\nvar emptyFunction = function emptyFunction() {};\n\nemptyFunction.thatReturns = makeEmptyFunction;\nemptyFunction.thatReturnsFalse = makeEmptyFunction(false);\nemptyFunction.thatReturnsTrue = makeEmptyFunction(true);\nemptyFunction.thatReturnsNull = makeEmptyFunction(null);\nemptyFunction.thatReturnsThis = function () {\n return this;\n};\nemptyFunction.thatReturnsArgument = function (arg) {\n return arg;\n};\n\nmodule.exports = emptyFunction;\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./node_modules/fbjs/lib/emptyFunction.js\n// module id = 6\n// module chunks = 0","/**\n * Copyright (c) 2013-present, Facebook, Inc.\n *\n * This source code is licensed under the MIT license found in the\n * LICENSE file in the root directory of this source tree.\n *\n */\n\n'use strict';\n\n/**\n * Use invariant() to assert state which your program assumes to be true.\n *\n * Provide sprintf-style format (only %s is supported) and arguments\n * to provide information about what broke and what you were\n * expecting.\n *\n * The invariant message will be stripped in production, but the invariant\n * will remain to ensure logic does not differ in production.\n */\n\nvar validateFormat = function validateFormat(format) {};\n\nif (process.env.NODE_ENV !== 'production') {\n validateFormat = function validateFormat(format) {\n if (format === undefined) {\n throw new Error('invariant requires an error message argument');\n }\n };\n}\n\nfunction invariant(condition, format, a, b, c, d, e, f) {\n validateFormat(format);\n\n if (!condition) {\n var error;\n if (format === undefined) {\n error = new Error('Minified exception occurred; use the non-minified dev environment ' + 'for the full error message and additional helpful warnings.');\n } else {\n var args = [a, b, c, d, e, f];\n var argIndex = 0;\n error = new Error(format.replace(/%s/g, function () {\n return args[argIndex++];\n }));\n error.name = 'Invariant Violation';\n }\n\n error.framesToPop = 1; // we don't care about invariant's own frame\n throw error;\n }\n}\n\nmodule.exports = invariant;\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./node_modules/fbjs/lib/invariant.js\n// module id = 7\n// module chunks = 0","/**\n * Copyright (c) 2013-present, Facebook, Inc.\n *\n * This source code is licensed under the MIT license found in the\n * LICENSE file in the root directory of this source tree.\n */\n\n'use strict';\n\nvar ReactPropTypesSecret = 'SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED';\n\nmodule.exports = ReactPropTypesSecret;\n\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./node_modules/prop-types/lib/ReactPropTypesSecret.js\n// module id = 8\n// module chunks = 0","/*!\n * \n * simple-keyboard v2.6.7\n * https://github.com/hodgef/simple-keyboard\n * \n * Copyright (c) Francisco Hodge (https://github.com/hodgef)\n * \n * This source code is licensed under the MIT license found in the\n * LICENSE file in the root directory of this source tree.\n * \n */\n!function(t,e){\"object\"===typeof exports&&\"object\"===typeof module?module.exports=e():\"function\"===typeof define&&define.amd?define([],e):\"object\"===typeof exports?exports.SimpleKeyboard=e():t.SimpleKeyboard=e()}(this,function(){return function(t){function e(o){if(n[o])return n[o].exports;var i=n[o]={i:o,l:!1,exports:{}};return t[o].call(i.exports,i,i.exports,e),i.l=!0,i.exports}var n={};return e.m=t,e.c=n,e.d=function(t,n,o){e.o(t,n)||Object.defineProperty(t,n,{configurable:!1,enumerable:!0,get:o})},e.n=function(t){var n=t&&t.__esModule?function(){return t.default}:function(){return t};return e.d(n,\"a\",n),n},e.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)},e.p=\"\",e(e.s=0)}([function(t,e,n){t.exports=n(1)},function(t,e,n){\"use strict\";Object.defineProperty(e,\"__esModule\",{value:!0});var o=n(2);e.default=o.a},function(t,e,n){\"use strict\";function o(t,e){if(!(t instanceof e))throw new TypeError(\"Cannot call a class as a function\")}var i=n(3),a=(n.n(i),n(4)),s=n(5),r=n(6),u=\"function\"===typeof Symbol&&\"symbol\"===typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&\"function\"===typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?\"symbol\":typeof t},c=function t(){var e=this;o(this,t),this.handleButtonClicked=function(t){var n=e.options.debug;if(\"{//}\"===t)return!1;\"function\"===typeof e.options.onKeyPress&&e.options.onKeyPress(t),e.input[e.options.inputName]||(e.input[e.options.inputName]=\"\");var o=e.utilities.getUpdatedInput(t,e.input[e.options.inputName],e.options,e.caretPosition);if(e.input[e.options.inputName]!==o){if(e.options.maxLength&&e.utilities.handleMaxLength(e.input,e.options,o))return!1;e.input[e.options.inputName]=o,n&&console.log(\"Input changed:\",e.input),e.options.syncInstanceInputs&&e.syncInstanceInputs(e.input),\"function\"===typeof e.options.onChange&&e.options.onChange(e.input[e.options.inputName])}n&&console.log(\"Key pressed:\",t)},this.syncInstanceInputs=function(){e.dispatch(function(t){t.replaceInput(e.input)})},this.clearInput=function(t){t=t||e.options.inputName,e.input[e.options.inputName]=\"\",e.options.syncInstanceInputs&&e.syncInstanceInputs(e.input)},this.getInput=function(t){return t=t||e.options.inputName,e.options.syncInstanceInputs&&e.syncInstanceInputs(e.input),e.input[e.options.inputName]},this.setInput=function(t,n){n=n||e.options.inputName,e.input[n]=t,e.options.syncInstanceInputs&&e.syncInstanceInputs(e.input)},this.replaceInput=function(t){e.input=t},this.setOptions=function(t){t=t||{},e.options=Object.assign(e.options,t),e.render()},this.clear=function(){e.keyboardDOM.innerHTML=\"\",e.keyboardDOM.className=e.keyboardDOMClass,e.buttonElements={}},this.dispatch=function(t){if(!window.SimpleKeyboardInstances)throw console.warn(\"SimpleKeyboardInstances is not defined. Dispatch cannot be called.\"),new Error(\"INSTANCES_VAR_ERROR\");return Object.keys(window.SimpleKeyboardInstances).forEach(function(e){t(window.SimpleKeyboardInstances[e],e)})},this.addButtonTheme=function(t,n){if(!n||!t)return!1;t.split(\" \").forEach(function(o){n.split(\" \").forEach(function(n){e.options.buttonTheme||(e.options.buttonTheme=[]);var i=!1;e.options.buttonTheme.map(function(t){if(t.class.split(\" \").includes(n)){i=!0;var e=t.buttons.split(\" \");e.includes(o)||(i=!0,e.push(o),t.buttons=e.join(\" \"))}return t}),i||e.options.buttonTheme.push({class:n,buttons:t})})}),e.render()},this.removeButtonTheme=function(t,n){if(!t&&!n)return e.options.buttonTheme=[],e.render(),!1;if(t&&Array.isArray(e.options.buttonTheme)&&e.options.buttonTheme.length){t.split(\" \").forEach(function(t,o){e.options.buttonTheme.map(function(o,i){if(n&&n.includes(o.class)||!n){var a=o.buttons.split(\" \").filter(function(e){return e!==t});a.length?o.buttons=a.join(\" \"):(e.options.buttonTheme.splice(i,1),o=null)}return o})}),e.render()}},this.getButtonElement=function(t){var n=void 0,o=e.buttonElements[t];return o&&(n=o.length>1?o:o[0]),n},this.handleCaret=function(){e.options.debug&&console.log(\"Caret handling started\"),document.addEventListener(\"keyup\",e.caretEventHandler),document.addEventListener(\"mouseup\",e.caretEventHandler),document.addEventListener(\"touchend\",e.caretEventHandler)},this.caretEventHandler=function(t){var n=t.target.tagName.toLowerCase();\"textarea\"!==n&&\"input\"!==n||(e.caretPosition=t.target.selectionStart,e.options.debug&&console.log(\"Caret at: \",t.target.selectionStart,t.target.tagName.toLowerCase()))},this.onInit=function(){e.options.debug&&console.log(\"Initialized\"),e.handleCaret(),\"function\"===typeof e.options.onInit&&e.options.onInit()},this.onRender=function(){\"function\"===typeof e.options.onRender&&e.options.onRender()},this.render=function(){e.clear();var t=e.options.layout?\"hg-layout-custom\":\"hg-layout-\"+e.options.layoutName,n=e.options.layout||s.a.getDefaultLayout(),o={};Array.isArray(e.options.buttonTheme)&&e.options.buttonTheme.forEach(function(t){if(t.buttons&&t.class){var n=void 0;\"string\"===typeof t.buttons&&(n=t.buttons.split(\" \")),n&&n.forEach(function(n){var i=o[n];i?e.utilities.countInArray(i.split(\" \"),t.class)||(o[n]=i+\" \"+t.class):o[n]=t.class})}else console.warn('buttonTheme row is missing the \"buttons\" or the \"class\". Please check the documentation.')}),e.keyboardDOM.className+=\" \"+e.options.theme+\" \"+t,n[e.options.layoutName].forEach(function(t,n){var i=t.split(\" \"),a=document.createElement(\"div\");a.className+=\"hg-row\",i.forEach(function(t,i){var s=e.utilities.getButtonClass(t),r=o[t],u=e.utilities.getButtonDisplayName(t,e.options.display,e.options.mergeDisplay),c=document.createElement(\"div\");c.className+=\"hg-button \"+s+(r?\" \"+r:\"\"),c.onclick=function(){return e.handleButtonClicked(t)},c.setAttribute(\"data-skBtn\",t);var p=e.options.layoutName+\"-r\"+n+\"b\"+i;c.setAttribute(\"data-skBtnUID\",p),c.setAttribute(\"data-displayLabel\",u);var l=document.createElement(\"span\");l.innerHTML=u,c.appendChild(l),e.buttonElements[t]||(e.buttonElements[t]=[]),e.buttonElements[t].push(c),a.appendChild(c)}),e.keyboardDOM.appendChild(a)}),e.onRender(),e.initialized||(e.initialized=!0,e.onInit())};var n=\"string\"===typeof(arguments.length<=0?void 0:arguments[0])?arguments.length<=0?void 0:arguments[0]:\".simple-keyboard\",i=\"object\"===u(arguments.length<=0?void 0:arguments[0])?arguments.length<=0?void 0:arguments[0]:arguments.length<=1?void 0:arguments[1];if(i||(i={}),this.utilities=new r.a(this),this.keyboardDOM=document.querySelector(n),this.options=i,this.options.layoutName=this.options.layoutName||\"default\",this.options.theme=this.options.theme||\"hg-theme-default\",this.options.inputName=this.options.inputName||\"default\",this.input={},this.input[this.options.inputName]=\"\",this.keyboardDOMClass=n.split(\".\").join(\"\"),this.buttonElements={},!this.keyboardDOM)throw console.warn('\"'+n+'\" was not found in the DOM.'),new Error(\"KEYBOARD_DOM_ERROR\");this.render(),window.SimpleKeyboardInstances||(window.SimpleKeyboardInstances={}),window.SimpleKeyboardInstances[this.utilities.camelCase(this.keyboardDOMClass)]=this,this.physicalKeyboardInterface=new a.a(this)};e.a=c},function(t,e){},function(t,e,n){\"use strict\";function o(t,e){if(!(t instanceof e))throw new TypeError(\"Cannot call a class as a function\")}var i=function t(e){var n=this;o(this,t),this.initKeyboardListener=function(){document.addEventListener(\"keydown\",function(t){if(n.simpleKeyboardInstance.options.physicalKeyboardHighlight){var e=n.getSimpleKeyboardLayoutKey(t);n.simpleKeyboardInstance.dispatch(function(t){var o=t.getButtonElement(e)||t.getButtonElement(\"{\"+e+\"}\");o&&(o.style.backgroundColor=n.simpleKeyboardInstance.options.physicalKeyboardHighlightBgColor||\"#9ab4d0\",o.style.color=n.simpleKeyboardInstance.options.physicalKeyboardHighlightTextColor||\"white\")})}}),document.addEventListener(\"keyup\",function(t){if(n.simpleKeyboardInstance.options.physicalKeyboardHighlight){var e=n.getSimpleKeyboardLayoutKey(t);n.simpleKeyboardInstance.dispatch(function(t){var n=t.getButtonElement(e)||t.getButtonElement(\"{\"+e+\"}\");n&&n.removeAttribute(\"style\")})}})},this.getSimpleKeyboardLayoutKey=function(t){var e=void 0;return e=t.code.includes(\"Numpad\")||t.code.includes(\"Shift\")||t.code.includes(\"Space\")||t.code.includes(\"Backspace\")||t.code.includes(\"Control\")||t.code.includes(\"Alt\")||t.code.includes(\"Meta\")?t.code:t.key,(e!==e.toUpperCase()||\"F\"===t.code[0]&&Number.isInteger(Number(t.code[1]))&&t.code.length<=3)&&(e=e.toLowerCase()),e},this.simpleKeyboardInstance=e,this.initKeyboardListener()};e.a=i},function(t,e,n){\"use strict\";function o(t,e){if(!(t instanceof e))throw new TypeError(\"Cannot call a class as a function\")}var i=function t(){o(this,t)};i.getDefaultLayout=function(){return{default:[\"` 1 2 3 4 5 6 7 8 9 0 - = {bksp}\",\"{tab} q w e r t y u i o p [ ] \\\\\",\"{lock} a s d f g h j k l ; ' {enter}\",\"{shift} z x c v b n m , . / {shift}\",\".com @ {space}\"],shift:[\"~ ! @ # $ % ^ & * ( ) _ + {bksp}\",\"{tab} Q W E R T Y U I O P { } |\",'{lock} A S D F G H J K L : \" {enter}',\"{shift} Z X C V B N M < > ? {shift}\",\".com @ {space}\"]}},e.a=i},function(t,e,n){\"use strict\";function o(t,e){if(!(t instanceof e))throw new TypeError(\"Cannot call a class as a function\")}var i=\"function\"===typeof Symbol&&\"symbol\"===typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&\"function\"===typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?\"symbol\":typeof t},a=function(){function t(t,e){for(var n=0;n0?a=n.removeAt(a,i):\"{space}\"===t?a=n.addStringAt(a,\" \",i):\"{tab}\"!==t||\"boolean\"===typeof o.tabCharOnTab&&!1===o.tabCharOnTab?\"{enter}\"!==t&&\"{numpadenter}\"!==t||!o.newLineOnEnter?t.includes(\"numpad\")&&Number.isInteger(Number(t[t.length-2]))?a=n.addStringAt(a,t[t.length-2],i):\"{numpaddivide}\"===t?a=n.addStringAt(a,\"/\",i):\"{numpadmultiply}\"===t?a=n.addStringAt(a,\"*\",i):\"{numpadsubtract}\"===t?a=n.addStringAt(a,\"-\",i):\"{numpadadd}\"===t?a=n.addStringAt(a,\"+\",i):\"{numpaddecimal}\"===t?a=n.addStringAt(a,\".\",i):\"{\"===t||\"}\"===t?a=n.addStringAt(a,t,i):t.includes(\"{\")||t.includes(\"}\")||(a=n.addStringAt(a,t,i)):a=n.addStringAt(a,\"\\n\",i):a=n.addStringAt(a,\"\\t\",i),a},this.updateCaretPos=function(t,e){e?n.simpleKeyboardInstance.caretPosition>0&&(n.simpleKeyboardInstance.caretPosition=n.simpleKeyboardInstance.caretPosition-t):n.simpleKeyboardInstance.caretPosition=n.simpleKeyboardInstance.caretPosition+t},this.isMaxLengthReached=function(){return Boolean(n.maxLengthReached)},this.camelCase=function(t){return t.toLowerCase().trim().split(/[.\\-_\\s]/g).reduce(function(t,e){return t+e[0].toUpperCase()+e.slice(1)})},this.countInArray=function(t,e){return t.reduce(function(t,n){return t+(n===e)},0)},this.simpleKeyboardInstance=e}return a(t,[{key:\"getDefaultDiplay\",value:function(){return{\"{bksp}\":\"backspace\",\"{backspace}\":\"backspace\",\"{enter}\":\"< enter\",\"{shift}\":\"shift\",\"{shiftleft}\":\"shift\",\"{shiftright}\":\"shift\",\"{alt}\":\"alt\",\"{s}\":\"shift\",\"{tab}\":\"tab\",\"{lock}\":\"caps\",\"{capslock}\":\"caps\",\"{accept}\":\"Submit\",\"{space}\":\" \",\"{//}\":\" \",\"{esc}\":\"esc\",\"{escape}\":\"esc\",\"{f1}\":\"f1\",\"{f2}\":\"f2\",\"{f3}\":\"f3\",\"{f4}\":\"f4\",\"{f5}\":\"f5\",\"{f6}\":\"f6\",\"{f7}\":\"f7\",\"{f8}\":\"f8\",\"{f9}\":\"f9\",\"{f10}\":\"f10\",\"{f11}\":\"f11\",\"{f12}\":\"f12\",\"{numpaddivide}\":\"/\",\"{numlock}\":\"lock\",\"{arrowup}\":\"\\u2191\",\"{arrowleft}\":\"\\u2190\",\"{arrowdown}\":\"\\u2193\",\"{arrowright}\":\"\\u2192\",\"{prtscr}\":\"print\",\"{scrolllock}\":\"scroll\",\"{pause}\":\"pause\",\"{insert}\":\"ins\",\"{home}\":\"home\",\"{pageup}\":\"up\",\"{delete}\":\"del\",\"{end}\":\"end\",\"{pagedown}\":\"down\",\"{numpadmultiply}\":\"*\",\"{numpadsubtract}\":\"-\",\"{numpadadd}\":\"+\",\"{numpadenter}\":\"enter\",\"{period}\":\".\",\"{numpaddecimal}\":\".\",\"{numpad0}\":\"0\",\"{numpad1}\":\"1\",\"{numpad2}\":\"2\",\"{numpad3}\":\"3\",\"{numpad4}\":\"4\",\"{numpad5}\":\"5\",\"{numpad6}\":\"6\",\"{numpad7}\":\"7\",\"{numpad8}\":\"8\",\"{numpad9}\":\"9\"}}},{key:\"addStringAt\",value:function(t,e,n){var o=void 0;return this.simpleKeyboardInstance.options.debug&&console.log(\"Caret at:\",n),n||0===n?(o=[t.slice(0,n),e,t.slice(n)].join(\"\"),this.isMaxLengthReached()||this.updateCaretPos(e.length)):o=t+e,o}},{key:\"removeAt\",value:function(t,e){if(0===this.simpleKeyboardInstance.caretPosition)return t;var n=void 0,o=void 0,i=void 0,a=/([\\uD800-\\uDBFF][\\uDC00-\\uDFFF])/g;return e&&e>=0?(o=t.substring(e-2,e),i=o.match(a),i?(n=t.substr(0,e-2)+t.substr(e),this.updateCaretPos(2,!0)):(n=t.substr(0,e-1)+t.substr(e),this.updateCaretPos(1,!0))):(o=t.slice(-2),i=o.match(a),i?(n=t.slice(0,-2),this.updateCaretPos(2,!0)):(n=t.slice(0,-1),this.updateCaretPos(1,!0))),n}},{key:\"handleMaxLength\",value:function(t,e,n){var o=e.maxLength,a=t[e.inputName],s=a.length===o;if(n.length<=a.length)return!1;if(Number.isInteger(o))return e.debug&&console.log(\"maxLength (num) reached:\",s),s?(this.maxLengthReached=!0,!0):(this.maxLengthReached=!1,!1);if(\"object\"===(\"undefined\"===typeof o?\"undefined\":i(o))){var r=a.length===o[e.inputName];return e.debug&&console.log(\"maxLength (obj) reached:\",r),r?(this.maxLengthReached=!0,!0):(this.maxLengthReached=!1,!1)}}}]),t}();e.a=s}])});\n//# sourceMappingURL=index.js.map\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./node_modules/simple-keyboard/build/index.js\n// module id = 9\n// module chunks = 0","class Utilities {\r\n static getRandomBaseClass = () => {\r\n return `simplekeyboard_id-${Math.random().toString(36).substring(7)}`;\r\n }\r\n\r\n static parseProps = (props) => {\r\n return Object.assign({}, props, {\r\n theme: `simple-keyboard ${(props.theme || \"hg-theme-default\")}`\r\n });\r\n\r\n }\r\n}\r\n\r\nexport default Utilities;\n\n\n// WEBPACK FOOTER //\n// ./src/lib/services/Utilities.js"],"sourceRoot":""} \ No newline at end of file diff --git a/package-lock.json b/package-lock.json index 0d91cd760..58151fee6 100644 --- a/package-lock.json +++ b/package-lock.json @@ -1,6 +1,6 @@ { "name": "react-simple-keyboard", - "version": "1.7.2", + "version": "1.7.4", "lockfileVersion": 1, "requires": true, "dependencies": { @@ -11428,9 +11428,9 @@ "dev": true }, "simple-keyboard": { - "version": "2.6.7", - "resolved": "https://registry.npmjs.org/simple-keyboard/-/simple-keyboard-2.6.7.tgz", - "integrity": "sha512-2GiAasjDBlHEVmvyCbkrRoZ2WZd189tcjH4oPA/k1kAnHB+Ope/+7o7Zuf5SOu7StFje2z+4KryVyQQilN5pOw==" + "version": "2.7.5", + "resolved": "https://registry.npmjs.org/simple-keyboard/-/simple-keyboard-2.7.5.tgz", + "integrity": "sha512-G5XYSDZQr9VSjNO2snAGW0fwKdWKCMNk0oeWr499vEroWbtnADX2/1Het7wJ7mAUHPXub1S9XNQX2gsMp/FnNg==" }, "slash": { "version": "1.0.0", diff --git a/package.json b/package.json index e9194e5ca..95214816e 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "react-simple-keyboard", - "version": "1.7.4", + "version": "1.8.0", "description": "React.js Virtual Keyboard", "main": "dist/index.js", "scripts": { @@ -36,7 +36,7 @@ ], "license": "MIT", "dependencies": { - "simple-keyboard": "^2.6.7" + "simple-keyboard": "^2.7.5" }, "devDependencies": { "autoprefixer": "7.1.6",