2018-10-25 06:18:24 +08:00
[
{
"__docId__" : 1 ,
"kind" : "external" ,
"name" : "Infinity" ,
"externalLink" : "https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Infinity" ,
"memberof" : "src/.external-ecmascript.js" ,
"static" : true ,
"longname" : "src/.external-ecmascript.js~Infinity" ,
"access" : "public" ,
"description" : "" ,
"builtinExternal" : true
} ,
{
"__docId__" : 2 ,
"kind" : "external" ,
"name" : "NaN" ,
"externalLink" : "https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/NaN" ,
"memberof" : "src/.external-ecmascript.js" ,
"static" : true ,
"longname" : "src/.external-ecmascript.js~NaN" ,
"access" : "public" ,
"description" : "" ,
"builtinExternal" : true
} ,
{
"__docId__" : 3 ,
"kind" : "external" ,
"name" : "undefined" ,
"externalLink" : "https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/undefined" ,
"memberof" : "src/.external-ecmascript.js" ,
"static" : true ,
"longname" : "src/.external-ecmascript.js~undefined" ,
"access" : "public" ,
"description" : "" ,
"builtinExternal" : true
} ,
{
"__docId__" : 4 ,
"kind" : "external" ,
"name" : "null" ,
"externalLink" : "https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/null" ,
"memberof" : "src/.external-ecmascript.js" ,
"static" : true ,
"longname" : "src/.external-ecmascript.js~null" ,
"access" : "public" ,
"description" : "" ,
"builtinExternal" : true
} ,
{
"__docId__" : 5 ,
"kind" : "external" ,
"name" : "Object" ,
"externalLink" : "https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Object" ,
"memberof" : "src/.external-ecmascript.js" ,
"static" : true ,
"longname" : "src/.external-ecmascript.js~Object" ,
"access" : "public" ,
"description" : "" ,
"builtinExternal" : true
} ,
{
"__docId__" : 6 ,
"kind" : "external" ,
"name" : "object" ,
"externalLink" : "https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Object" ,
"memberof" : "src/.external-ecmascript.js" ,
"static" : true ,
"longname" : "src/.external-ecmascript.js~object" ,
"access" : "public" ,
"description" : "" ,
"builtinExternal" : true
} ,
{
"__docId__" : 7 ,
"kind" : "external" ,
"name" : "Function" ,
"externalLink" : "https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Function" ,
"memberof" : "src/.external-ecmascript.js" ,
"static" : true ,
"longname" : "src/.external-ecmascript.js~Function" ,
"access" : "public" ,
"description" : "" ,
"builtinExternal" : true
} ,
{
"__docId__" : 8 ,
"kind" : "external" ,
"name" : "function" ,
"externalLink" : "https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Function" ,
"memberof" : "src/.external-ecmascript.js" ,
"static" : true ,
"longname" : "src/.external-ecmascript.js~function" ,
"access" : "public" ,
"description" : "" ,
"builtinExternal" : true
} ,
{
"__docId__" : 9 ,
"kind" : "external" ,
"name" : "Boolean" ,
"externalLink" : "https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Boolean" ,
"memberof" : "src/.external-ecmascript.js" ,
"static" : true ,
"longname" : "src/.external-ecmascript.js~Boolean" ,
"access" : "public" ,
"description" : "" ,
"builtinExternal" : true
} ,
{
"__docId__" : 10 ,
"kind" : "external" ,
"name" : "boolean" ,
"externalLink" : "https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Boolean" ,
"memberof" : "src/.external-ecmascript.js" ,
"static" : true ,
"longname" : "src/.external-ecmascript.js~boolean" ,
"access" : "public" ,
"description" : "" ,
"builtinExternal" : true
} ,
{
"__docId__" : 11 ,
"kind" : "external" ,
"name" : "Symbol" ,
"externalLink" : "https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Symbol" ,
"memberof" : "src/.external-ecmascript.js" ,
"static" : true ,
"longname" : "src/.external-ecmascript.js~Symbol" ,
"access" : "public" ,
"description" : "" ,
"builtinExternal" : true
} ,
{
"__docId__" : 12 ,
"kind" : "external" ,
"name" : "Error" ,
"externalLink" : "https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Error" ,
"memberof" : "src/.external-ecmascript.js" ,
"static" : true ,
"longname" : "src/.external-ecmascript.js~Error" ,
"access" : "public" ,
"description" : "" ,
"builtinExternal" : true
} ,
{
"__docId__" : 13 ,
"kind" : "external" ,
"name" : "EvalError" ,
"externalLink" : "https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/EvalError" ,
"memberof" : "src/.external-ecmascript.js" ,
"static" : true ,
"longname" : "src/.external-ecmascript.js~EvalError" ,
"access" : "public" ,
"description" : "" ,
"builtinExternal" : true
} ,
{
"__docId__" : 14 ,
"kind" : "external" ,
"name" : "InternalError" ,
"externalLink" : "https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/InternalError" ,
"memberof" : "src/.external-ecmascript.js" ,
"static" : true ,
"longname" : "src/.external-ecmascript.js~InternalError" ,
"access" : "public" ,
"description" : "" ,
"builtinExternal" : true
} ,
{
"__docId__" : 15 ,
"kind" : "external" ,
"name" : "RangeError" ,
"externalLink" : "https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/RangeError" ,
"memberof" : "src/.external-ecmascript.js" ,
"static" : true ,
"longname" : "src/.external-ecmascript.js~RangeError" ,
"access" : "public" ,
"description" : "" ,
"builtinExternal" : true
} ,
{
"__docId__" : 16 ,
"kind" : "external" ,
"name" : "ReferenceError" ,
"externalLink" : "https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/ReferenceError" ,
"memberof" : "src/.external-ecmascript.js" ,
"static" : true ,
"longname" : "src/.external-ecmascript.js~ReferenceError" ,
"access" : "public" ,
"description" : "" ,
"builtinExternal" : true
} ,
{
"__docId__" : 17 ,
"kind" : "external" ,
"name" : "SyntaxError" ,
"externalLink" : "https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/SyntaxError" ,
"memberof" : "src/.external-ecmascript.js" ,
"static" : true ,
"longname" : "src/.external-ecmascript.js~SyntaxError" ,
"access" : "public" ,
"description" : "" ,
"builtinExternal" : true
} ,
{
"__docId__" : 18 ,
"kind" : "external" ,
"name" : "TypeError" ,
"externalLink" : "https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/TypeError" ,
"memberof" : "src/.external-ecmascript.js" ,
"static" : true ,
"longname" : "src/.external-ecmascript.js~TypeError" ,
"access" : "public" ,
"description" : "" ,
"builtinExternal" : true
} ,
{
"__docId__" : 19 ,
"kind" : "external" ,
"name" : "URIError" ,
"externalLink" : "https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/URIError" ,
"memberof" : "src/.external-ecmascript.js" ,
"static" : true ,
"longname" : "src/.external-ecmascript.js~URIError" ,
"access" : "public" ,
"description" : "" ,
"builtinExternal" : true
} ,
{
"__docId__" : 20 ,
"kind" : "external" ,
"name" : "Number" ,
"externalLink" : "https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Number" ,
"memberof" : "src/.external-ecmascript.js" ,
"static" : true ,
"longname" : "src/.external-ecmascript.js~Number" ,
"access" : "public" ,
"description" : "" ,
"builtinExternal" : true
} ,
{
"__docId__" : 21 ,
"kind" : "external" ,
"name" : "number" ,
"externalLink" : "https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Number" ,
"memberof" : "src/.external-ecmascript.js" ,
"static" : true ,
"longname" : "src/.external-ecmascript.js~number" ,
"access" : "public" ,
"description" : "" ,
"builtinExternal" : true
} ,
{
"__docId__" : 22 ,
"kind" : "external" ,
"name" : "Date" ,
"externalLink" : "https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Date" ,
"memberof" : "src/.external-ecmascript.js" ,
"static" : true ,
"longname" : "src/.external-ecmascript.js~Date" ,
"access" : "public" ,
"description" : "" ,
"builtinExternal" : true
} ,
{
"__docId__" : 23 ,
"kind" : "external" ,
"name" : "String" ,
"externalLink" : "https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/String" ,
"memberof" : "src/.external-ecmascript.js" ,
"static" : true ,
"longname" : "src/.external-ecmascript.js~String" ,
"access" : "public" ,
"description" : "" ,
"builtinExternal" : true
} ,
{
"__docId__" : 24 ,
"kind" : "external" ,
"name" : "string" ,
"externalLink" : "https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/String" ,
"memberof" : "src/.external-ecmascript.js" ,
"static" : true ,
"longname" : "src/.external-ecmascript.js~string" ,
"access" : "public" ,
"description" : "" ,
"builtinExternal" : true
} ,
{
"__docId__" : 25 ,
"kind" : "external" ,
"name" : "RegExp" ,
"externalLink" : "https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/RegExp" ,
"memberof" : "src/.external-ecmascript.js" ,
"static" : true ,
"longname" : "src/.external-ecmascript.js~RegExp" ,
"access" : "public" ,
"description" : "" ,
"builtinExternal" : true
} ,
{
"__docId__" : 26 ,
"kind" : "external" ,
"name" : "Array" ,
"externalLink" : "https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Array" ,
"memberof" : "src/.external-ecmascript.js" ,
"static" : true ,
"longname" : "src/.external-ecmascript.js~Array" ,
"access" : "public" ,
"description" : "" ,
"builtinExternal" : true
} ,
{
"__docId__" : 27 ,
"kind" : "external" ,
"name" : "Int8Array" ,
"externalLink" : "https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Int8Array" ,
"memberof" : "src/.external-ecmascript.js" ,
"static" : true ,
"longname" : "src/.external-ecmascript.js~Int8Array" ,
"access" : "public" ,
"description" : "" ,
"builtinExternal" : true
} ,
{
"__docId__" : 28 ,
"kind" : "external" ,
"name" : "Uint8Array" ,
"externalLink" : "https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Uint8Array" ,
"memberof" : "src/.external-ecmascript.js" ,
"static" : true ,
"longname" : "src/.external-ecmascript.js~Uint8Array" ,
"access" : "public" ,
"description" : "" ,
"builtinExternal" : true
} ,
{
"__docId__" : 29 ,
"kind" : "external" ,
"name" : "Uint8ClampedArray" ,
"externalLink" : "https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Uint8ClampedArray" ,
"memberof" : "src/.external-ecmascript.js" ,
"static" : true ,
"longname" : "src/.external-ecmascript.js~Uint8ClampedArray" ,
"access" : "public" ,
"description" : "" ,
"builtinExternal" : true
} ,
{
"__docId__" : 30 ,
"kind" : "external" ,
"name" : "Int16Array" ,
"externalLink" : "https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Int16Array" ,
"memberof" : "src/.external-ecmascript.js" ,
"static" : true ,
"longname" : "src/.external-ecmascript.js~Int16Array" ,
"access" : "public" ,
"description" : "" ,
"builtinExternal" : true
} ,
{
"__docId__" : 31 ,
"kind" : "external" ,
"name" : "Uint16Array" ,
"externalLink" : "https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Uint16Array" ,
"memberof" : "src/.external-ecmascript.js" ,
"static" : true ,
"longname" : "src/.external-ecmascript.js~Uint16Array" ,
"access" : "public" ,
"description" : "" ,
"builtinExternal" : true
} ,
{
"__docId__" : 32 ,
"kind" : "external" ,
"name" : "Int32Array" ,
"externalLink" : "https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Int32Array" ,
"memberof" : "src/.external-ecmascript.js" ,
"static" : true ,
"longname" : "src/.external-ecmascript.js~Int32Array" ,
"access" : "public" ,
"description" : "" ,
"builtinExternal" : true
} ,
{
"__docId__" : 33 ,
"kind" : "external" ,
"name" : "Uint32Array" ,
"externalLink" : "https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Uint32Array" ,
"memberof" : "src/.external-ecmascript.js" ,
"static" : true ,
"longname" : "src/.external-ecmascript.js~Uint32Array" ,
"access" : "public" ,
"description" : "" ,
"builtinExternal" : true
} ,
{
"__docId__" : 34 ,
"kind" : "external" ,
"name" : "Float32Array" ,
"externalLink" : "https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Float32Array" ,
"memberof" : "src/.external-ecmascript.js" ,
"static" : true ,
"longname" : "src/.external-ecmascript.js~Float32Array" ,
"access" : "public" ,
"description" : "" ,
"builtinExternal" : true
} ,
{
"__docId__" : 35 ,
"kind" : "external" ,
"name" : "Float64Array" ,
"externalLink" : "https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Float64Array" ,
"memberof" : "src/.external-ecmascript.js" ,
"static" : true ,
"longname" : "src/.external-ecmascript.js~Float64Array" ,
"access" : "public" ,
"description" : "" ,
"builtinExternal" : true
} ,
{
"__docId__" : 36 ,
"kind" : "external" ,
"name" : "Map" ,
"externalLink" : "https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Map" ,
"memberof" : "src/.external-ecmascript.js" ,
"static" : true ,
"longname" : "src/.external-ecmascript.js~Map" ,
"access" : "public" ,
"description" : "" ,
"builtinExternal" : true
} ,
{
"__docId__" : 37 ,
"kind" : "external" ,
"name" : "Set" ,
"externalLink" : "https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Set" ,
"memberof" : "src/.external-ecmascript.js" ,
"static" : true ,
"longname" : "src/.external-ecmascript.js~Set" ,
"access" : "public" ,
"description" : "" ,
"builtinExternal" : true
} ,
{
"__docId__" : 38 ,
"kind" : "external" ,
"name" : "WeakMap" ,
"externalLink" : "https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/WeakMap" ,
"memberof" : "src/.external-ecmascript.js" ,
"static" : true ,
"longname" : "src/.external-ecmascript.js~WeakMap" ,
"access" : "public" ,
"description" : "" ,
"builtinExternal" : true
} ,
{
"__docId__" : 39 ,
"kind" : "external" ,
"name" : "WeakSet" ,
"externalLink" : "https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/WeakSet" ,
"memberof" : "src/.external-ecmascript.js" ,
"static" : true ,
"longname" : "src/.external-ecmascript.js~WeakSet" ,
"access" : "public" ,
"description" : "" ,
"builtinExternal" : true
} ,
{
"__docId__" : 40 ,
"kind" : "external" ,
"name" : "ArrayBuffer" ,
"externalLink" : "https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/ArrayBuffer" ,
"memberof" : "src/.external-ecmascript.js" ,
"static" : true ,
"longname" : "src/.external-ecmascript.js~ArrayBuffer" ,
"access" : "public" ,
"description" : "" ,
"builtinExternal" : true
} ,
{
"__docId__" : 41 ,
"kind" : "external" ,
"name" : "DataView" ,
"externalLink" : "https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/DataView" ,
"memberof" : "src/.external-ecmascript.js" ,
"static" : true ,
"longname" : "src/.external-ecmascript.js~DataView" ,
"access" : "public" ,
"description" : "" ,
"builtinExternal" : true
} ,
{
"__docId__" : 42 ,
"kind" : "external" ,
"name" : "JSON" ,
"externalLink" : "https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/JSON" ,
"memberof" : "src/.external-ecmascript.js" ,
"static" : true ,
"longname" : "src/.external-ecmascript.js~JSON" ,
"access" : "public" ,
"description" : "" ,
"builtinExternal" : true
} ,
{
"__docId__" : 43 ,
"kind" : "external" ,
"name" : "Promise" ,
"externalLink" : "https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Promise" ,
"memberof" : "src/.external-ecmascript.js" ,
"static" : true ,
"longname" : "src/.external-ecmascript.js~Promise" ,
"access" : "public" ,
"description" : "" ,
"builtinExternal" : true
} ,
{
"__docId__" : 44 ,
"kind" : "external" ,
"name" : "Generator" ,
"externalLink" : "https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Generator" ,
"memberof" : "src/.external-ecmascript.js" ,
"static" : true ,
"longname" : "src/.external-ecmascript.js~Generator" ,
"access" : "public" ,
"description" : "" ,
"builtinExternal" : true
} ,
{
"__docId__" : 45 ,
"kind" : "external" ,
"name" : "GeneratorFunction" ,
"externalLink" : "https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/GeneratorFunction" ,
"memberof" : "src/.external-ecmascript.js" ,
"static" : true ,
"longname" : "src/.external-ecmascript.js~GeneratorFunction" ,
"access" : "public" ,
"description" : "" ,
"builtinExternal" : true
} ,
{
"__docId__" : 46 ,
"kind" : "external" ,
"name" : "Reflect" ,
"externalLink" : "https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Reflect" ,
"memberof" : "src/.external-ecmascript.js" ,
"static" : true ,
"longname" : "src/.external-ecmascript.js~Reflect" ,
"access" : "public" ,
"description" : "" ,
"builtinExternal" : true
} ,
{
"__docId__" : 47 ,
"kind" : "external" ,
"name" : "Proxy" ,
"externalLink" : "https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Proxy" ,
"memberof" : "src/.external-ecmascript.js" ,
"static" : true ,
"longname" : "src/.external-ecmascript.js~Proxy" ,
"access" : "public" ,
"description" : "" ,
"builtinExternal" : true
} ,
{
"__docId__" : 48 ,
"kind" : "file" ,
"name" : "src/demo/App.js" ,
2018-11-06 06:31:11 +08:00
"content" : "import Keyboard from '../lib';\r\nimport './css/App.css';\r\n\r\n/**\r\n * simple-keyboard demo\r\n */\r\nclass App {\r\n /**\r\n * Instantiates the demo class\r\n */\r\n constructor(){\r\n document.addEventListener('DOMContentLoaded', this.onDOMLoaded);\r\n\r\n /**\r\n * Default input name\r\n * @type {string}\r\n */\r\n this.layoutName = \"default\";\r\n }\r\n\r\n /**\r\n * Executed when the DOM is ready\r\n */\r\n onDOMLoaded = () => {\r\n /**\r\n * Creates a new simple-keyboard instance\r\n */\r\n this.keyboard = new Keyboard({\r\n debug: true,\r\n layoutName: this.layoutName,\r\n onChange: input => this.onChange(input),\r\n onKeyPress: button => this.onKeyPress(button),\r\n newLineOnEnter: true,\r\n physicalKeyboardHighlight: true,\r\n inputName: \"inputPhone\",\r\n maxLength: {\r\n inputPhone: 11\r\n }\r\n });\r\n \r\n /**\r\n * Adding preview (demo only)\r\n */\r\n document.querySelector('.simple-keyboard').insertAdjacentHTML('beforebegin', `\r\n <div class=\"simple-keyboard-preview\">\r\n <textarea class=\"input\" maxlength=\"11\"></textarea>\r\n </div>\r\n `);\r\n \r\n document.querySelector('.input').addEventListener('change', (event) => {\r\n this.keyboard.setInput(event.target.value);\r\n });\r\n }\r\n\r\n /**\r\n * Handles shift functionality\r\n */\r\n handleShiftButton = () => {\r\n let layoutName = this.layoutName;\r\n let shiftToggle = this.layoutName = layoutName === \"default\" ? \"shift\" : \"default\";\r\n \r\n this.keyboard.setOptions({\r\n layoutName: shiftToggle\r\n });\r\n }\r\n\r\n /**\r\n * Called when simple-keyboard input has changed\r\n */\r\n onChange = input => {\r\n document.querySelector('.input').value = input;\r\n }\r\n\r\n /**\r\n * Called when a simple-keyboard key is pressed\r\n */\r\n onKeyPress = button => {\r\n console.log(\"Button pressed\", button);\r\n \r\n /**\r\n * Shift functionality\r\n */\r\n if(button === \"{lock}\" || button === \"{shift}\")\r\n this.handleShiftButton();\r\n }\r\n\r\n}\r\n\r\nexport default App;" ,
2018-10-25 06:18:24 +08:00
"static" : true ,
"longname" : "X:/Dev/simple-keyboard/src/demo/App.js" ,
"access" : "public" ,
"description" : null ,
"lineNumber" : 1
} ,
{
"__docId__" : 49 ,
"kind" : "class" ,
"name" : "App" ,
"memberof" : "src/demo/App.js" ,
"static" : true ,
"longname" : "src/demo/App.js~App" ,
"access" : "public" ,
"export" : true ,
"importPath" : "simple-keyboard/src/demo/App.js" ,
"importStyle" : "App" ,
"description" : "simple-keyboard demo" ,
"lineNumber" : 7 ,
"interface" : false
} ,
{
"__docId__" : 50 ,
"kind" : "constructor" ,
"name" : "constructor" ,
"memberof" : "src/demo/App.js~App" ,
"generator" : false ,
"async" : false ,
"static" : false ,
"longname" : "src/demo/App.js~App#constructor" ,
"access" : "public" ,
"description" : "Instantiates the demo class" ,
"lineNumber" : 11
} ,
{
"__docId__" : 51 ,
"kind" : "member" ,
"name" : "layoutName" ,
"memberof" : "src/demo/App.js~App" ,
"static" : false ,
"longname" : "src/demo/App.js~App#layoutName" ,
"access" : "public" ,
"description" : "Default input name" ,
"lineNumber" : 18 ,
"type" : {
"nullable" : null ,
"types" : [
"string"
] ,
"spread" : false ,
"description" : null
}
} ,
{
"__docId__" : 52 ,
"kind" : "member" ,
"name" : "onDOMLoaded" ,
"memberof" : "src/demo/App.js~App" ,
"static" : false ,
"longname" : "src/demo/App.js~App#onDOMLoaded" ,
"access" : "public" ,
"description" : "Executed when the DOM is ready" ,
"lineNumber" : 24 ,
"type" : {
"types" : [
"*"
]
}
} ,
{
"__docId__" : 53 ,
"kind" : "member" ,
"name" : "keyboard" ,
"memberof" : "src/demo/App.js~App" ,
"longname" : "src/demo/App.js~App#keyboard" ,
"access" : "public" ,
"description" : "Creates a new simple-keyboard instance" ,
"lineNumber" : 28 ,
"type" : {
"types" : [
"*"
]
}
} ,
{
"__docId__" : 54 ,
"kind" : "member" ,
"name" : "handleShiftButton" ,
"memberof" : "src/demo/App.js~App" ,
"static" : false ,
"longname" : "src/demo/App.js~App#handleShiftButton" ,
"access" : "public" ,
2018-10-25 08:20:28 +08:00
"description" : "Handles shift functionality" ,
2018-11-06 06:31:11 +08:00
"lineNumber" : 58 ,
2018-10-25 06:18:24 +08:00
"type" : {
"types" : [
"*"
]
}
} ,
{
"__docId__" : 55 ,
"kind" : "member" ,
"name" : "onChange" ,
"memberof" : "src/demo/App.js~App" ,
"static" : false ,
"longname" : "src/demo/App.js~App#onChange" ,
"access" : "public" ,
"description" : "Called when simple-keyboard input has changed" ,
2018-11-06 06:31:11 +08:00
"lineNumber" : 70 ,
2018-10-25 06:18:24 +08:00
"type" : {
"types" : [
"*"
]
}
} ,
{
"__docId__" : 56 ,
"kind" : "member" ,
"name" : "onKeyPress" ,
"memberof" : "src/demo/App.js~App" ,
"static" : false ,
"longname" : "src/demo/App.js~App#onKeyPress" ,
"access" : "public" ,
"description" : "Called when a simple-keyboard key is pressed" ,
2018-11-06 06:31:11 +08:00
"lineNumber" : 77 ,
2018-10-25 06:18:24 +08:00
"type" : {
"types" : [
"*"
]
}
} ,
{
"__docId__" : 57 ,
"kind" : "file" ,
"name" : "src/demo/index.js" ,
"content" : "import App from './App';\r\n\r\n/**\r\n * Initializing demo\r\n */\r\nnew App();" ,
"static" : true ,
"longname" : "X:/Dev/simple-keyboard/src/demo/index.js" ,
"access" : "public" ,
"description" : null ,
"lineNumber" : 1
} ,
{
"__docId__" : 58 ,
"kind" : "file" ,
"name" : "src/lib/components/Keyboard.js" ,
2018-11-06 06:31:11 +08:00
"content" : "import './Keyboard.css';\r\n\r\n// Services\r\nimport PhysicalKeyboard from '../services/PhysicalKeyboard';\r\nimport KeyboardLayout from '../services/KeyboardLayout';\r\nimport Utilities from '../services/Utilities';\r\n\r\n/**\r\n * Root class for simple-keyboard\r\n * This class:\r\n * - Parses the options\r\n * - Renders the rows and buttons\r\n * - Handles button functionality\r\n */\r\nclass SimpleKeyboard {\r\n /**\r\n * Creates an instance of SimpleKeyboard\r\n * @param {Array} params If first parameter is a string, it is considered the container class. The second parameter is then considered the options object. If first parameter is an object, it is considered the options object.\r\n */\r\n constructor(...params){\r\n let keyboardDOMQuery = typeof params[0] === \"string\" ? params[0] : '.simple-keyboard';\r\n let options = typeof params[0] === \"object\" ? p a r a m s [ 0 ] : p a r a m s [ 1 ] ; \ r \ n \ r \ n i f ( ! o p t i o n s ) \ r \ n o p t i o n s = { } ; \ r \ n \ r \ n / * * \ r \ n * I n i t i a l i z i n g U t i l i t i e s \ r \ n * / \ r \ n t h i s . u t i l i t i e s = n e w U t i l i t i e s ( t h i s ) ; \ r \ n \ r \ n / * * \ r \ n * P r o c e s s i n g o p t i o n s \ r \ n * / \ r \ n t h i s . k e y b o a r d D O M = d o c u m e n t . q u e r y S e l e c t o r ( k e y b o a r d D O M Q u e r y ) ; \ r \ n \ r \ n / * * \ r \ n * @ t y p e { o b j e c t } \ r \ n * @ p r o p e r t y { o b j e c t } l a y o u t M o d i f y t h e k e y b o a r d l a y o u t . \ r \ n * @ p r o p e r t y { s t r i n g } l a y o u t N a m e S p e c i f i e s w h i c h l a y o u t s h o u l d b e u s e d . \ r \ n * @ p r o p e r t y { o b j e c t } d i s p l a y R e p l a c e s v a r i a b l e b u t t o n s ( s u c h a s { b k s p } ) w i t h a h u m a n - f r i e n d l y n a m e ( e . g . : “ b a c k s p a c e ” ) . \ r \ n * @ p r o p e r t y { b o o l e a n } m e r g e D i s p l a y B y d e f a u l t , w h e n y o u s e t t h e d i s p l a y p r o p e r t y , y o u r e p l a c e t h e d e f a u l t o n e . T h i s s e t t i n g m e r g e s t h e m i n s t e a d . \ r \ n * @ p r o p e r t y { s t r i n g } t h e m e A p r o p t o a d d y o u r o w n c s s c l a s s e s t o t h e k e y b o a r d w r a p p e r . Y o u c a n a d d m u l t i p l e c l a s s e s s e p a r a t e d b y a s p a c e . \ r \ n * @ p r o p e r t y { A r r a y } b u t t o n T h e m e A p r o p t o a d d y o u r o w n c s s c l a s s e s t o o n e o r s e v e r a l b u t t o n s . \ r \ n * @ p r o p e r t y { b o o l e a n } d e b u g R u n s a c o n s o l e . l o g e v e r y t i m e a k e y i s p r e s s e d . D i s p l a y s t h e b u t t o n s p r e s s e d a n d t h e c u r r e n t i n p u t . \ r \ n * @ p r o p e r t y { b o o l e a n } n e w L i n e O n E n t e r S p e c i f i e s w h e t h e r c l i c k i n g t h e “ E N T E R ” b u t t o n w i l l i n p u t a n e w l i n e ( \ \ n ) o r n o t . \ r \ n * @ p r o p e r t y { b o o l e a n } t a b C h a r O n T a b S p e c i f i e s w h e t h e r c l i c k i n g t h e “ T A B ” b u t t o n w i l l i n p u t a t a b c h a r a c t e r ( \ \ t ) o r n o t . \ r \ n * @ p r o p e r t y { s t r i n g } i n p u t N a m e A l l o w s y o u t o u s e a s i n g l e s i m p l e - k e y b o a r d i n s t a n c e f o r s e v e r a l i n p u t s . \ r \ n * @ p r o p e r t y { n u m b e r } m a x L e n g t h R e s t r a i n s a l l o f s i m p l e - k e y b o a r d i n p u t s t o a c e r t a i n l e n g t h . T h i s s h o u l d b e u s e d i n a d d i t i o n t o t h e i n p u t e l e m e n t ’ s m a x l e n g t h a t t r i b u t e . \ r \ n * @ p r o p e r t y { o b j e c t } m a x L e n g t h R e s t r a i n s s i m p l e - k e y b o a r d ’ s i n d i v i d u a l i n p u t s t o a c e r t a i n l e n g t h . T h i s s h o u l d b e u s e d i n a d d i t i o n t o t h e i n p u t e l e m e n t ’ s m a x l e n g t h a t t r i b u t e . \ r \ n * @ p r o p e r t y { b o o l e a n } s y n c I n s t a n c e I n p u t s W h e n s e t t o true , t h i s o p t i o n s y n c h r o n i z e s t h e i n t e r n a l i n p u t o f e v e r y s i m p l e - k e y b o a r d i n s t a n c e . \ r \ n * @ p r o p e r t y { b o o l e a n } p h y s i c a l K e y b o a r d H i g h l i g h t E n a b l e h i g h l i g h t i n g o f k e y s p r e s s e d o n p h y s i c a l k e y b o a r d . \ r \ n * @ p r o p e r t y { s t r i n g } p h y s i c a l K e y b o a r d H i g h l i g h t T e x t C o l o r D e f i n e t h e t e x t c o l o r t h a t t h e p h y s i c a l k e y b o a r d h i g h l i g h t e d k e y s h o u l d h a v e . \ r \ n * @ p r o p e r t y { s t r i n g } p h y s i c a l K e y b o a r d H i g h l i g h t B g C o l o r D e f i n e t h e b a c k g r o u n d c o l o r t h a t t h e p h y s i c a l k e y b o a r d h i g h l i g h t e d k e y s h o u l d h a v e . \ r \ n * @ p r o p e r t y { f u n c t i o n ( b u t t o n : s t r i n g ) : s t r i n g } o n K e y P r e s s E x e c u t e s t h e c a l l b a c k f u n c t i o n o n k e y p r e s s . R e t u r n s b u t t o n l a y o u t n a m e ( i . e . : “ { s h i f t } ” ) . \ r \ n * @ p r o p e r t y { f u n c t i o n ( i n p u t : s t r i n g ) : s t r i n g } o n C h a n g e E x e c u t e s t h e c a l l b a c k f u n c t i o n o n i n p u t c h a n g e . R e t u r n s t h e c u r r e n t i n p u t ’ s s t r i n g . \ r \ n * @ p r o p e r t y { f u n c t i o n } o n R e n d e r E x e c u t e s t h e c a l l b a c k f u n c t i o n e v e r y t i m e s i m p l e - k e y b o a r d i s r e n d e r e d ( e . g : w h e n y o u c h a n g e l a y o u t s ) . \ r \ n * @ p r o p e r t y { f u n c t i o n } o n I n i t E x e c u t e s t h e c a l l b a c k f u n c t i o n o n c e s i m p l e - k e y b o a r d i s r e n d e r e d f o r t h e f i r s t t i m e ( o n i n i t i a l i z a t i o n ) . \ r \ n * @ p r o p e r t y { f u n c t i o n ( i n p u t s : o b j e c t ) : o b j e c t } o n C h a n g e A l l E x e c u t e s t h e c a l l b a c k f u n c t i o n o n i n p u t c h a n g e . R e t u r n s t h e i n p u t o b j e c t w i t h a l l d e f i n e d i n p u t s
2018-10-25 06:18:24 +08:00
"static" : true ,
"longname" : "X:/Dev/simple-keyboard/src/lib/components/Keyboard.js" ,
"access" : "public" ,
"description" : null ,
"lineNumber" : 1
} ,
{
"__docId__" : 59 ,
"kind" : "class" ,
"name" : "SimpleKeyboard" ,
"memberof" : "src/lib/components/Keyboard.js" ,
"static" : true ,
"longname" : "src/lib/components/Keyboard.js~SimpleKeyboard" ,
"access" : "public" ,
"export" : true ,
"importPath" : "simple-keyboard/src/lib/components/Keyboard.js" ,
"importStyle" : "SimpleKeyboard" ,
"description" : "Root class for simple-keyboard\nThis class:\n- Parses the options\n- Renders the rows and buttons\n- Handles button functionality" ,
"lineNumber" : 15 ,
"interface" : false
} ,
{
"__docId__" : 60 ,
"kind" : "constructor" ,
"name" : "constructor" ,
"memberof" : "src/lib/components/Keyboard.js~SimpleKeyboard" ,
"generator" : false ,
"async" : false ,
"static" : false ,
"longname" : "src/lib/components/Keyboard.js~SimpleKeyboard#constructor" ,
"access" : "public" ,
"description" : "Creates an instance of SimpleKeyboard" ,
"lineNumber" : 20 ,
"params" : [
{
"nullable" : null ,
"types" : [
"Array"
] ,
"spread" : false ,
"optional" : false ,
"name" : "params" ,
"description" : "If first parameter is a string, it is considered the container class. The second parameter is then considered the options object. If first parameter is an object, it is considered the options object."
}
]
} ,
{
"__docId__" : 61 ,
"kind" : "member" ,
"name" : "utilities" ,
"memberof" : "src/lib/components/Keyboard.js~SimpleKeyboard" ,
"static" : false ,
"longname" : "src/lib/components/Keyboard.js~SimpleKeyboard#utilities" ,
"access" : "public" ,
"description" : "Initializing Utilities" ,
"lineNumber" : 30 ,
"type" : {
"types" : [
"*"
]
}
} ,
{
"__docId__" : 62 ,
"kind" : "member" ,
"name" : "keyboardDOM" ,
"memberof" : "src/lib/components/Keyboard.js~SimpleKeyboard" ,
"static" : false ,
"longname" : "src/lib/components/Keyboard.js~SimpleKeyboard#keyboardDOM" ,
"access" : "public" ,
"description" : "Processing options" ,
"lineNumber" : 35 ,
"type" : {
"types" : [
"*"
]
}
} ,
{
"__docId__" : 63 ,
"kind" : "member" ,
"name" : "options" ,
"memberof" : "src/lib/components/Keyboard.js~SimpleKeyboard" ,
"static" : false ,
"longname" : "src/lib/components/Keyboard.js~SimpleKeyboard#options" ,
"access" : "public" ,
"description" : "" ,
"lineNumber" : 61 ,
"properties" : [
{
"nullable" : null ,
"types" : [
"object"
] ,
"spread" : false ,
"optional" : false ,
"name" : "layout" ,
"description" : "Modify the keyboard layout."
} ,
{
"nullable" : null ,
"types" : [
"string"
] ,
"spread" : false ,
"optional" : false ,
"name" : "layoutName" ,
"description" : "Specifies which layout should be used."
} ,
{
"nullable" : null ,
"types" : [
"object"
] ,
"spread" : false ,
"optional" : false ,
"name" : "display" ,
"description" : "Replaces variable buttons (such as {bksp}) with a human-friendly name (e.g.: “backspace”)."
} ,
{
"nullable" : null ,
"types" : [
"boolean"
] ,
"spread" : false ,
"optional" : false ,
"name" : "mergeDisplay" ,
"description" : "By default, when you set the display property, you replace the default one. This setting merges them instead."
} ,
{
"nullable" : null ,
"types" : [
"string"
] ,
"spread" : false ,
"optional" : false ,
"name" : "theme" ,
"description" : "A prop to add your own css classes to the keyboard wrapper. You can add multiple classes separated by a space."
} ,
{
"nullable" : null ,
"types" : [
"Array"
] ,
"spread" : false ,
"optional" : false ,
"name" : "buttonTheme" ,
"description" : "A prop to add your own css classes to one or several buttons."
} ,
{
"nullable" : null ,
"types" : [
"boolean"
] ,
"spread" : false ,
"optional" : false ,
"name" : "debug" ,
"description" : "Runs a console.log every time a key is pressed. Displays the buttons pressed and the current input."
} ,
{
"nullable" : null ,
"types" : [
"boolean"
] ,
"spread" : false ,
"optional" : false ,
"name" : "newLineOnEnter" ,
"description" : "Specifies whether clicking the “ENTER” button will input a newline (\\n) or not."
} ,
{
"nullable" : null ,
"types" : [
"boolean"
] ,
"spread" : false ,
"optional" : false ,
"name" : "tabCharOnTab" ,
"description" : "Specifies whether clicking the “TAB” button will input a tab character (\\t) or not."
} ,
{
"nullable" : null ,
"types" : [
"string"
] ,
"spread" : false ,
"optional" : false ,
"name" : "inputName" ,
"description" : "Allows you to use a single simple-keyboard instance for several inputs."
} ,
{
"nullable" : null ,
"types" : [
"number"
] ,
"spread" : false ,
"optional" : false ,
"name" : "maxLength" ,
"description" : "Restrains all of simple-keyboard inputs to a certain length. This should be used in addition to the input element’ s maxlengthattribute."
} ,
{
"nullable" : null ,
"types" : [
"object"
] ,
"spread" : false ,
"optional" : false ,
"name" : "maxLength" ,
"description" : "Restrains simple-keyboard’ s individual inputs to a certain length. This should be used in addition to the input element’ s maxlengthattribute."
} ,
{
"nullable" : null ,
"types" : [
"boolean"
] ,
"spread" : false ,
"optional" : false ,
"name" : "syncInstanceInputs" ,
"description" : "When set to true, this option synchronizes the internal input of every simple-keyboard instance."
} ,
{
"nullable" : null ,
"types" : [
"boolean"
] ,
"spread" : false ,
"optional" : false ,
"name" : "physicalKeyboardHighlight" ,
"description" : "Enable highlighting of keys pressed on physical keyboard."
} ,
{
"nullable" : null ,
"types" : [
"string"
] ,
"spread" : false ,
"optional" : false ,
"name" : "physicalKeyboardHighlightTextColor" ,
"description" : "Define the text color that the physical keyboard highlighted key should have."
} ,
{
"nullable" : null ,
"types" : [
"string"
] ,
"spread" : false ,
"optional" : false ,
"name" : "physicalKeyboardHighlightBgColor" ,
"description" : "Define the background color that the physical keyboard highlighted key should have."
} ,
{
"nullable" : null ,
"types" : [
"function(button: string):string"
] ,
"spread" : false ,
"optional" : false ,
"name" : "onKeyPress" ,
"description" : "Executes the callback function on key press. Returns button layout name (i.e.: “{shift}”)."
} ,
{
"nullable" : null ,
"types" : [
"function(input: string):string"
] ,
"spread" : false ,
"optional" : false ,
"name" : "onChange" ,
"description" : "Executes the callback function on input change. Returns the current input’ s string."
} ,
{
"nullable" : null ,
"types" : [
"function"
] ,
"spread" : false ,
"optional" : false ,
"name" : "onRender" ,
"description" : "Executes the callback function every time simple-keyboard is rendered (e.g: when you change layouts)."
} ,
{
"nullable" : null ,
"types" : [
"function"
] ,
"spread" : false ,
"optional" : false ,
"name" : "onInit" ,
"description" : "Executes the callback function once simple-keyboard is rendered for the first time (on initialization)."
} ,
{
"nullable" : null ,
"types" : [
"function(inputs: object):object"
] ,
"spread" : false ,
"optional" : false ,
"name" : "onChangeAll" ,
"description" : "Executes the callback function on input change. Returns the input object with all defined inputs."
}
] ,
"type" : {
"nullable" : null ,
"types" : [
"object"
] ,
"spread" : false ,
"description" : null
}
} ,
{
2018-11-01 07:47:03 +08:00
"__docId__" : 64 ,
"kind" : "member" ,
"name" : "keyboardPluginClasses" ,
"memberof" : "src/lib/components/Keyboard.js~SimpleKeyboard" ,
"static" : false ,
"longname" : "src/lib/components/Keyboard.js~SimpleKeyboard#keyboardPluginClasses" ,
"access" : "public" ,
"description" : "" ,
"lineNumber" : 69 ,
"type" : {
"nullable" : null ,
"types" : [
"object"
] ,
"spread" : false ,
"description" : null
}
} ,
{
2018-11-01 12:14:02 +08:00
"__docId__" : 86 ,
2018-10-31 11:33:29 +08:00
"kind" : "member" ,
2018-10-25 06:18:24 +08:00
"name" : "input" ,
"memberof" : "src/lib/components/Keyboard.js~SimpleKeyboard" ,
"static" : false ,
"longname" : "src/lib/components/Keyboard.js~SimpleKeyboard#input" ,
"access" : "public" ,
"description" : "simple-keyboard uses a non-persistent internal input to keep track of the entered string (the variable `keyboard.input`).\nThis removes any dependency to input DOM elements. You can type and directly display the value in a div element, for example." ,
"examples" : [
"// To get entered input\nlet input = keyboard.getInput();\n\n// To clear entered input.\nkeyboard.clearInput();"
] ,
2018-11-01 12:14:02 +08:00
"lineNumber" : 110 ,
2018-10-25 06:18:24 +08:00
"properties" : [
{
"nullable" : null ,
"types" : [
"object"
] ,
"spread" : false ,
"optional" : false ,
"name" : "default" ,
"description" : "Default SimpleKeyboard internal input."
} ,
{
"nullable" : null ,
"types" : [
"object"
] ,
"spread" : false ,
"optional" : false ,
"name" : "myInputName" ,
"description" : "Example input that can be set through `options.inputName:\"myInputName\"`."
}
] ,
"type" : {
"nullable" : null ,
"types" : [
"object"
] ,
"spread" : false ,
"description" : null
}
} ,
{
2018-11-01 12:14:02 +08:00
"__docId__" : 87 ,
2018-10-25 06:18:24 +08:00
"kind" : "member" ,
"name" : "keyboardDOMClass" ,
"memberof" : "src/lib/components/Keyboard.js~SimpleKeyboard" ,
"static" : false ,
"longname" : "src/lib/components/Keyboard.js~SimpleKeyboard#keyboardDOMClass" ,
"access" : "public" ,
"description" : "" ,
2018-11-01 12:14:02 +08:00
"lineNumber" : 116 ,
2018-10-25 06:18:24 +08:00
"type" : {
"nullable" : null ,
"types" : [
"string"
] ,
"spread" : false ,
"description" : null
}
} ,
{
2018-11-01 12:14:02 +08:00
"__docId__" : 88 ,
2018-10-25 06:18:24 +08:00
"kind" : "member" ,
"name" : "buttonElements" ,
"memberof" : "src/lib/components/Keyboard.js~SimpleKeyboard" ,
"static" : false ,
"longname" : "src/lib/components/Keyboard.js~SimpleKeyboard#buttonElements" ,
"access" : "public" ,
"description" : "" ,
2018-11-01 12:14:02 +08:00
"lineNumber" : 121 ,
2018-10-25 06:18:24 +08:00
"type" : {
"nullable" : null ,
"types" : [
"object"
] ,
"spread" : false ,
"description" : null
}
} ,
{
2018-11-01 12:14:02 +08:00
"__docId__" : 89 ,
2018-10-25 06:18:24 +08:00
"kind" : "member" ,
"name" : "physicalKeyboardInterface" ,
"memberof" : "src/lib/components/Keyboard.js~SimpleKeyboard" ,
"static" : false ,
"longname" : "src/lib/components/Keyboard.js~SimpleKeyboard#physicalKeyboardInterface" ,
"access" : "public" ,
"description" : "Physical Keyboard support" ,
2018-11-01 12:14:02 +08:00
"lineNumber" : 145 ,
2018-10-25 06:18:24 +08:00
"type" : {
"types" : [
"*"
]
}
} ,
{
2018-11-01 12:14:02 +08:00
"__docId__" : 90 ,
2018-11-01 05:56:32 +08:00
"kind" : "member" ,
"name" : "modules" ,
"memberof" : "src/lib/components/Keyboard.js~SimpleKeyboard" ,
"static" : false ,
"longname" : "src/lib/components/Keyboard.js~SimpleKeyboard#modules" ,
"access" : "public" ,
"description" : "Modules" ,
2018-11-01 12:14:02 +08:00
"lineNumber" : 150 ,
2018-11-01 05:56:32 +08:00
"type" : {
"types" : [
"{}"
]
}
} ,
{
2018-11-01 12:14:02 +08:00
"__docId__" : 91 ,
2018-10-31 11:33:29 +08:00
"kind" : "method" ,
2018-10-25 06:18:24 +08:00
"name" : "handleButtonClicked" ,
"memberof" : "src/lib/components/Keyboard.js~SimpleKeyboard" ,
2018-10-31 11:33:29 +08:00
"generator" : false ,
"async" : false ,
2018-10-25 06:18:24 +08:00
"static" : false ,
"longname" : "src/lib/components/Keyboard.js~SimpleKeyboard#handleButtonClicked" ,
"access" : "public" ,
"description" : "Handles clicks made to keyboard buttons" ,
2018-11-01 12:14:02 +08:00
"lineNumber" : 158 ,
2018-10-25 06:18:24 +08:00
"params" : [
{
"nullable" : null ,
"types" : [
"string"
] ,
"spread" : false ,
"optional" : false ,
"name" : "button" ,
"description" : "The button's layout name."
}
] ,
2018-10-31 11:33:29 +08:00
"return" : {
2018-10-25 06:18:24 +08:00
"types" : [
2018-10-31 11:33:29 +08:00
"boolean"
2018-10-25 06:18:24 +08:00
]
}
} ,
{
2018-11-01 12:14:02 +08:00
"__docId__" : 92 ,
2018-11-01 05:56:32 +08:00
"kind" : "method" ,
"name" : "handleButtonMouseDown" ,
"memberof" : "src/lib/components/Keyboard.js~SimpleKeyboard" ,
"generator" : false ,
"async" : false ,
"static" : false ,
"longname" : "src/lib/components/Keyboard.js~SimpleKeyboard#handleButtonMouseDown" ,
"access" : "public" ,
"description" : "Handles button mousedown" ,
2018-11-06 06:31:11 +08:00
"lineNumber" : 218 ,
2018-11-01 05:56:32 +08:00
"params" : [
{
"name" : "button" ,
"types" : [
"*"
]
} ,
{
"name" : "e" ,
"types" : [
"*"
]
}
] ,
"return" : null
} ,
{
2018-11-01 12:14:02 +08:00
"__docId__" : 93 ,
2018-11-01 05:56:32 +08:00
"kind" : "member" ,
"name" : "isMouseHold" ,
"memberof" : "src/lib/components/Keyboard.js~SimpleKeyboard" ,
"static" : false ,
"longname" : "src/lib/components/Keyboard.js~SimpleKeyboard#isMouseHold" ,
"access" : "public" ,
"description" : "" ,
2018-11-06 06:31:11 +08:00
"lineNumber" : 222 ,
2018-11-01 05:56:32 +08:00
"type" : {
"nullable" : null ,
"types" : [
"boolean"
] ,
"spread" : false ,
"description" : null
}
} ,
{
2018-11-01 12:14:02 +08:00
"__docId__" : 94 ,
2018-11-01 05:56:32 +08:00
"kind" : "member" ,
"name" : "holdTimeout" ,
"memberof" : "src/lib/components/Keyboard.js~SimpleKeyboard" ,
"static" : false ,
"longname" : "src/lib/components/Keyboard.js~SimpleKeyboard#holdTimeout" ,
"access" : "public" ,
"description" : "" ,
2018-11-06 06:31:11 +08:00
"lineNumber" : 233 ,
2018-11-01 05:56:32 +08:00
"type" : {
"nullable" : null ,
"types" : [
"object"
] ,
"spread" : false ,
"description" : null
}
} ,
{
2018-11-01 12:14:02 +08:00
"__docId__" : 95 ,
2018-11-01 05:56:32 +08:00
"kind" : "method" ,
"name" : "handleButtonMouseUp" ,
"memberof" : "src/lib/components/Keyboard.js~SimpleKeyboard" ,
"generator" : false ,
"async" : false ,
"static" : false ,
"longname" : "src/lib/components/Keyboard.js~SimpleKeyboard#handleButtonMouseUp" ,
"access" : "public" ,
"description" : "Handles button mouseup" ,
2018-11-06 06:31:11 +08:00
"lineNumber" : 255 ,
2018-11-01 05:56:32 +08:00
"params" : [ ] ,
"return" : null
} ,
{
2018-11-01 12:14:02 +08:00
"__docId__" : 97 ,
2018-11-01 05:56:32 +08:00
"kind" : "method" ,
"name" : "handleButtonHold" ,
"memberof" : "src/lib/components/Keyboard.js~SimpleKeyboard" ,
"generator" : false ,
"async" : false ,
"static" : false ,
"longname" : "src/lib/components/Keyboard.js~SimpleKeyboard#handleButtonHold" ,
"access" : "public" ,
"description" : "Handles button hold" ,
2018-11-06 06:31:11 +08:00
"lineNumber" : 265 ,
2018-11-01 05:56:32 +08:00
"params" : [
{
"name" : "button" ,
"types" : [
"*"
]
}
] ,
"return" : null
} ,
{
2018-11-01 12:14:02 +08:00
"__docId__" : 98 ,
2018-11-01 05:56:32 +08:00
"kind" : "member" ,
"name" : "holdInteractionTimeout" ,
"memberof" : "src/lib/components/Keyboard.js~SimpleKeyboard" ,
"static" : false ,
"longname" : "src/lib/components/Keyboard.js~SimpleKeyboard#holdInteractionTimeout" ,
"access" : "public" ,
"description" : "" ,
2018-11-06 06:31:11 +08:00
"lineNumber" : 272 ,
2018-11-01 05:56:32 +08:00
"type" : {
"nullable" : null ,
"types" : [
"object"
] ,
"spread" : false ,
"description" : null
}
} ,
{
2018-11-01 12:14:02 +08:00
"__docId__" : 99 ,
2018-10-31 11:33:29 +08:00
"kind" : "method" ,
2018-10-25 06:18:24 +08:00
"name" : "syncInstanceInputs" ,
"memberof" : "src/lib/components/Keyboard.js~SimpleKeyboard" ,
2018-10-31 11:33:29 +08:00
"generator" : false ,
"async" : false ,
2018-10-25 06:18:24 +08:00
"static" : false ,
"longname" : "src/lib/components/Keyboard.js~SimpleKeyboard#syncInstanceInputs" ,
"access" : "public" ,
"description" : "Send a command to all simple-keyboard instances (if you have several instances)." ,
2018-11-06 06:31:11 +08:00
"lineNumber" : 285 ,
2018-10-31 11:33:29 +08:00
"params" : [ ] ,
"return" : null
2018-10-25 06:18:24 +08:00
} ,
{
2018-11-01 12:14:02 +08:00
"__docId__" : 100 ,
2018-10-31 11:33:29 +08:00
"kind" : "method" ,
2018-10-25 06:18:24 +08:00
"name" : "clearInput" ,
"memberof" : "src/lib/components/Keyboard.js~SimpleKeyboard" ,
2018-10-31 11:33:29 +08:00
"generator" : false ,
"async" : false ,
2018-10-25 06:18:24 +08:00
"static" : false ,
"longname" : "src/lib/components/Keyboard.js~SimpleKeyboard#clearInput" ,
"access" : "public" ,
"description" : "Clear the keyboard’ s input." ,
2018-11-06 06:31:11 +08:00
"lineNumber" : 295 ,
2018-10-25 06:18:24 +08:00
"params" : [
{
"nullable" : null ,
"types" : [
"string"
] ,
"spread" : false ,
"optional" : true ,
"name" : "inputName" ,
"description" : "optional - the internal input to select"
}
] ,
2018-10-31 11:33:29 +08:00
"return" : null
2018-10-25 06:18:24 +08:00
} ,
{
2018-11-01 12:14:02 +08:00
"__docId__" : 101 ,
2018-10-31 11:33:29 +08:00
"kind" : "method" ,
2018-10-25 06:18:24 +08:00
"name" : "getInput" ,
"memberof" : "src/lib/components/Keyboard.js~SimpleKeyboard" ,
2018-10-31 11:33:29 +08:00
"generator" : false ,
"async" : false ,
2018-10-25 06:18:24 +08:00
"static" : false ,
"longname" : "src/lib/components/Keyboard.js~SimpleKeyboard#getInput" ,
"access" : "public" ,
"description" : "Get the keyboard’ s input (You can also get it from the onChange prop)." ,
2018-11-06 06:31:11 +08:00
"lineNumber" : 310 ,
2018-10-25 06:18:24 +08:00
"params" : [
{
"nullable" : null ,
"types" : [
"string"
] ,
"spread" : false ,
"optional" : true ,
"name" : "inputName" ,
"description" : "optional - the internal input to select"
}
] ,
2018-10-31 11:33:29 +08:00
"return" : {
2018-10-25 06:18:24 +08:00
"types" : [
"*"
]
}
} ,
{
2018-11-01 12:14:02 +08:00
"__docId__" : 102 ,
2018-10-31 11:33:29 +08:00
"kind" : "method" ,
2018-10-25 06:18:24 +08:00
"name" : "setInput" ,
"memberof" : "src/lib/components/Keyboard.js~SimpleKeyboard" ,
2018-10-31 11:33:29 +08:00
"generator" : false ,
"async" : false ,
2018-10-25 06:18:24 +08:00
"static" : false ,
"longname" : "src/lib/components/Keyboard.js~SimpleKeyboard#setInput" ,
"access" : "public" ,
"description" : "Set the keyboard’ s input." ,
2018-11-06 06:31:11 +08:00
"lineNumber" : 327 ,
2018-10-25 06:18:24 +08:00
"params" : [
{
"nullable" : null ,
"types" : [
"string"
] ,
"spread" : false ,
"optional" : false ,
"name" : "input" ,
"description" : "the input value"
} ,
{
"nullable" : null ,
"types" : [
"string"
] ,
"spread" : false ,
"optional" : false ,
"name" : "inputName" ,
"description" : "optional - the internal input to select"
}
] ,
2018-10-31 11:33:29 +08:00
"return" : null
2018-10-25 06:18:24 +08:00
} ,
{
2018-11-01 12:14:02 +08:00
"__docId__" : 103 ,
2018-10-31 11:33:29 +08:00
"kind" : "method" ,
2018-10-25 06:18:24 +08:00
"name" : "replaceInput" ,
"memberof" : "src/lib/components/Keyboard.js~SimpleKeyboard" ,
2018-10-31 11:33:29 +08:00
"generator" : false ,
"async" : false ,
2018-10-25 06:18:24 +08:00
"static" : false ,
"longname" : "src/lib/components/Keyboard.js~SimpleKeyboard#replaceInput" ,
"access" : "public" ,
"description" : "Replace the input object (`keyboard.input`)" ,
2018-11-06 06:31:11 +08:00
"lineNumber" : 342 ,
2018-10-25 06:18:24 +08:00
"params" : [
{
"nullable" : null ,
"types" : [
"object"
] ,
"spread" : false ,
"optional" : false ,
"name" : "inputObj" ,
"description" : "The input object"
}
] ,
2018-10-31 11:33:29 +08:00
"return" : null
2018-10-25 06:18:24 +08:00
} ,
{
2018-11-01 12:14:02 +08:00
"__docId__" : 105 ,
2018-10-25 06:18:24 +08:00
"kind" : "member" ,
"name" : "setOptions" ,
"memberof" : "src/lib/components/Keyboard.js~SimpleKeyboard" ,
"static" : false ,
"longname" : "src/lib/components/Keyboard.js~SimpleKeyboard#setOptions" ,
"access" : "public" ,
"description" : "Set new option or modify existing ones after initialization. " ,
2018-11-06 06:31:11 +08:00
"lineNumber" : 350 ,
2018-10-25 06:18:24 +08:00
"params" : [
{
"nullable" : null ,
"types" : [
"object"
] ,
"spread" : false ,
"optional" : false ,
"name" : "option" ,
"description" : "The option to set"
}
] ,
"type" : {
"types" : [
"*"
]
}
} ,
{
2018-11-01 12:14:02 +08:00
"__docId__" : 107 ,
2018-10-31 11:33:29 +08:00
"kind" : "method" ,
2018-10-25 06:18:24 +08:00
"name" : "clear" ,
"memberof" : "src/lib/components/Keyboard.js~SimpleKeyboard" ,
2018-10-31 11:33:29 +08:00
"generator" : false ,
"async" : false ,
2018-10-25 06:18:24 +08:00
"static" : false ,
"longname" : "src/lib/components/Keyboard.js~SimpleKeyboard#clear" ,
"access" : "public" ,
"description" : "Remove all keyboard rows and reset keyboard values.\nUsed interally between re-renders." ,
2018-11-06 06:31:11 +08:00
"lineNumber" : 360 ,
2018-10-31 11:33:29 +08:00
"params" : [ ] ,
"return" : null
2018-10-25 06:18:24 +08:00
} ,
{
2018-11-01 12:14:02 +08:00
"__docId__" : 109 ,
2018-10-31 11:33:29 +08:00
"kind" : "method" ,
2018-10-25 06:18:24 +08:00
"name" : "dispatch" ,
"memberof" : "src/lib/components/Keyboard.js~SimpleKeyboard" ,
2018-10-31 11:33:29 +08:00
"generator" : false ,
"async" : false ,
2018-10-25 06:18:24 +08:00
"static" : false ,
"longname" : "src/lib/components/Keyboard.js~SimpleKeyboard#dispatch" ,
"access" : "public" ,
"description" : "Send a command to all simple-keyboard instances at once (if you have multiple instances)." ,
2018-11-06 06:31:11 +08:00
"lineNumber" : 370 ,
2018-10-25 06:18:24 +08:00
"params" : [
{
"nullable" : null ,
"types" : [
"function(instance: object, key: string)"
] ,
"spread" : false ,
"optional" : false ,
"name" : "callback" ,
"description" : "Function to run on every instance"
}
] ,
2018-10-31 11:33:29 +08:00
"return" : {
2018-10-25 06:18:24 +08:00
"types" : [
"*"
]
}
} ,
{
2018-11-01 12:14:02 +08:00
"__docId__" : 110 ,
2018-10-31 11:33:29 +08:00
"kind" : "method" ,
2018-10-25 06:18:24 +08:00
"name" : "addButtonTheme" ,
"memberof" : "src/lib/components/Keyboard.js~SimpleKeyboard" ,
2018-10-31 11:33:29 +08:00
"generator" : false ,
"async" : false ,
2018-10-25 06:18:24 +08:00
"static" : false ,
"longname" : "src/lib/components/Keyboard.js~SimpleKeyboard#addButtonTheme" ,
"access" : "public" ,
"description" : "Adds/Modifies an entry to the `buttonTheme`. Basically a way to add a class to a button." ,
2018-11-06 06:31:11 +08:00
"lineNumber" : 386 ,
2018-10-25 06:18:24 +08:00
"params" : [
{
"nullable" : null ,
"types" : [
"string"
] ,
"spread" : false ,
"optional" : false ,
"name" : "buttons" ,
"description" : "List of buttons to select (separated by a space)."
} ,
{
"nullable" : null ,
"types" : [
"string"
] ,
"spread" : false ,
"optional" : false ,
"name" : "className" ,
"description" : "Classes to give to the selected buttons (separated by space)."
}
] ,
2018-10-31 11:33:29 +08:00
"return" : {
2018-10-25 06:18:24 +08:00
"types" : [
2018-10-31 11:33:29 +08:00
"boolean"
2018-10-25 06:18:24 +08:00
]
}
} ,
{
2018-11-01 12:14:02 +08:00
"__docId__" : 111 ,
2018-10-31 11:33:29 +08:00
"kind" : "method" ,
2018-10-25 06:18:24 +08:00
"name" : "removeButtonTheme" ,
"memberof" : "src/lib/components/Keyboard.js~SimpleKeyboard" ,
2018-10-31 11:33:29 +08:00
"generator" : false ,
"async" : false ,
2018-10-25 06:18:24 +08:00
"static" : false ,
"longname" : "src/lib/components/Keyboard.js~SimpleKeyboard#removeButtonTheme" ,
"access" : "public" ,
"description" : "Removes/Amends an entry to the `buttonTheme`. Basically a way to remove a class previously added to a button through buttonTheme or addButtonTheme." ,
2018-11-06 06:31:11 +08:00
"lineNumber" : 436 ,
2018-10-25 06:18:24 +08:00
"params" : [
{
"nullable" : null ,
"types" : [
"string"
] ,
"spread" : false ,
"optional" : false ,
"name" : "buttons" ,
"description" : "List of buttons to select (separated by a space)."
} ,
{
"nullable" : null ,
"types" : [
"string"
] ,
"spread" : false ,
"optional" : false ,
"name" : "className" ,
"description" : "Classes to give to the selected buttons (separated by space)."
}
] ,
2018-10-31 11:33:29 +08:00
"return" : {
2018-10-25 06:18:24 +08:00
"types" : [
2018-10-31 11:33:29 +08:00
"boolean"
2018-10-25 06:18:24 +08:00
]
}
} ,
{
2018-11-01 12:14:02 +08:00
"__docId__" : 112 ,
2018-10-31 11:33:29 +08:00
"kind" : "method" ,
2018-10-25 06:18:24 +08:00
"name" : "getButtonElement" ,
"memberof" : "src/lib/components/Keyboard.js~SimpleKeyboard" ,
2018-10-31 11:33:29 +08:00
"generator" : false ,
"async" : false ,
2018-10-25 06:18:24 +08:00
"static" : false ,
"longname" : "src/lib/components/Keyboard.js~SimpleKeyboard#getButtonElement" ,
"access" : "public" ,
"description" : "Get the DOM Element of a button. If there are several buttons with the same name, an array of the DOM Elements is returned." ,
2018-11-06 06:31:11 +08:00
"lineNumber" : 488 ,
2018-10-25 06:18:24 +08:00
"params" : [
{
"nullable" : null ,
"types" : [
"string"
] ,
"spread" : false ,
"optional" : false ,
"name" : "button" ,
"description" : "The button layout name to select"
}
] ,
2018-10-31 11:33:29 +08:00
"return" : {
2018-10-25 06:18:24 +08:00
"types" : [
"*"
]
}
} ,
{
2018-11-01 12:14:02 +08:00
"__docId__" : 113 ,
2018-10-31 11:33:29 +08:00
"kind" : "method" ,
2018-10-25 06:18:24 +08:00
"name" : "handleCaret" ,
"memberof" : "src/lib/components/Keyboard.js~SimpleKeyboard" ,
2018-10-31 11:33:29 +08:00
"generator" : false ,
"async" : false ,
2018-10-25 06:18:24 +08:00
"static" : false ,
"longname" : "src/lib/components/Keyboard.js~SimpleKeyboard#handleCaret" ,
"access" : "public" ,
"description" : "Retrieves the current cursor position within a input or textarea (if any)" ,
2018-11-06 06:31:11 +08:00
"lineNumber" : 506 ,
2018-10-31 11:33:29 +08:00
"params" : [ ] ,
"return" : null
2018-10-25 06:18:24 +08:00
} ,
{
2018-11-01 12:14:02 +08:00
"__docId__" : 114 ,
2018-10-31 11:33:29 +08:00
"kind" : "method" ,
2018-10-25 06:18:24 +08:00
"name" : "caretEventHandler" ,
"memberof" : "src/lib/components/Keyboard.js~SimpleKeyboard" ,
2018-10-31 11:33:29 +08:00
"generator" : false ,
"async" : false ,
2018-10-25 06:18:24 +08:00
"static" : false ,
"longname" : "src/lib/components/Keyboard.js~SimpleKeyboard#caretEventHandler" ,
"access" : "public" ,
"description" : "Called by {@link handleCaret} when an event that warrants a cursor position update is triggered" ,
2018-11-06 06:31:11 +08:00
"lineNumber" : 519 ,
2018-10-31 11:33:29 +08:00
"params" : [
{
"name" : "event" ,
"types" : [
"*"
]
}
] ,
"return" : null
2018-10-25 06:18:24 +08:00
} ,
{
2018-11-01 12:14:02 +08:00
"__docId__" : 115 ,
2018-10-25 06:18:24 +08:00
"kind" : "member" ,
"name" : "caretPosition" ,
"memberof" : "src/lib/components/Keyboard.js~SimpleKeyboard" ,
2018-10-31 11:33:29 +08:00
"static" : false ,
2018-10-25 06:18:24 +08:00
"longname" : "src/lib/components/Keyboard.js~SimpleKeyboard#caretPosition" ,
"access" : "public" ,
"description" : "Tracks current cursor position\nAs keys are pressed, text will be added/removed at that position within the input." ,
2018-11-06 06:31:11 +08:00
"lineNumber" : 531 ,
2018-10-25 06:18:24 +08:00
"type" : {
"types" : [
"*"
]
}
} ,
{
2018-11-01 12:14:02 +08:00
"__docId__" : 116 ,
2018-10-31 11:33:29 +08:00
"kind" : "method" ,
2018-10-25 06:18:24 +08:00
"name" : "onInit" ,
"memberof" : "src/lib/components/Keyboard.js~SimpleKeyboard" ,
2018-10-31 11:33:29 +08:00
"generator" : false ,
"async" : false ,
2018-10-25 06:18:24 +08:00
"static" : false ,
"longname" : "src/lib/components/Keyboard.js~SimpleKeyboard#onInit" ,
"access" : "public" ,
"description" : "Executes the callback function once simple-keyboard is rendered for the first time (on initialization)." ,
2018-11-06 06:31:11 +08:00
"lineNumber" : 542 ,
2018-10-31 11:33:29 +08:00
"params" : [ ] ,
"return" : null
} ,
{
2018-11-01 12:14:02 +08:00
"__docId__" : 117 ,
2018-10-31 11:33:29 +08:00
"kind" : "method" ,
"name" : "onRender" ,
"memberof" : "src/lib/components/Keyboard.js~SimpleKeyboard" ,
"generator" : false ,
"async" : false ,
"static" : false ,
"longname" : "src/lib/components/Keyboard.js~SimpleKeyboard#onRender" ,
"access" : "public" ,
"description" : "Executes the callback function every time simple-keyboard is rendered (e.g: when you change layouts)." ,
2018-11-06 06:31:11 +08:00
"lineNumber" : 559 ,
2018-10-31 11:33:29 +08:00
"params" : [ ] ,
"return" : null
} ,
{
2018-11-01 12:14:02 +08:00
"__docId__" : 118 ,
"kind" : "method" ,
"name" : "onModulesLoaded" ,
"memberof" : "src/lib/components/Keyboard.js~SimpleKeyboard" ,
"generator" : false ,
"async" : false ,
"static" : false ,
"longname" : "src/lib/components/Keyboard.js~SimpleKeyboard#onModulesLoaded" ,
"access" : "public" ,
"description" : "Executes the callback function once all modules have been loaded" ,
2018-11-06 06:31:11 +08:00
"lineNumber" : 567 ,
2018-11-01 12:14:02 +08:00
"params" : [ ] ,
"return" : null
} ,
{
"__docId__" : 119 ,
2018-10-31 11:33:29 +08:00
"kind" : "member" ,
"name" : "registerModule" ,
"memberof" : "src/lib/components/Keyboard.js~SimpleKeyboard" ,
"static" : false ,
"longname" : "src/lib/components/Keyboard.js~SimpleKeyboard#registerModule" ,
"access" : "public" ,
"description" : "Register module" ,
2018-11-06 06:31:11 +08:00
"lineNumber" : 575 ,
2018-10-25 06:18:24 +08:00
"type" : {
"types" : [
"*"
]
}
} ,
{
2018-11-01 12:14:02 +08:00
"__docId__" : 120 ,
2018-11-01 05:56:32 +08:00
"kind" : "method" ,
"name" : "loadModules" ,
"memberof" : "src/lib/components/Keyboard.js~SimpleKeyboard" ,
"generator" : false ,
"async" : false ,
"static" : false ,
"longname" : "src/lib/components/Keyboard.js~SimpleKeyboard#loadModules" ,
"access" : "public" ,
"description" : "Load modules" ,
2018-11-06 06:31:11 +08:00
"lineNumber" : 585 ,
2018-11-01 05:56:32 +08:00
"params" : [ ] ,
"return" : null
} ,
{
2018-11-01 12:14:02 +08:00
"__docId__" : 123 ,
2018-10-25 06:18:24 +08:00
"kind" : "member" ,
2018-10-31 11:33:29 +08:00
"name" : "getModuleProp" ,
2018-10-25 06:18:24 +08:00
"memberof" : "src/lib/components/Keyboard.js~SimpleKeyboard" ,
"static" : false ,
2018-10-31 11:33:29 +08:00
"longname" : "src/lib/components/Keyboard.js~SimpleKeyboard#getModuleProp" ,
2018-10-25 06:18:24 +08:00
"access" : "public" ,
2018-10-31 11:33:29 +08:00
"description" : "Get module prop" ,
2018-11-06 06:31:11 +08:00
"lineNumber" : 609 ,
2018-10-25 06:18:24 +08:00
"type" : {
"types" : [
"*"
]
}
} ,
{
2018-11-01 12:14:02 +08:00
"__docId__" : 124 ,
2018-10-25 06:18:24 +08:00
"kind" : "member" ,
2018-10-31 11:33:29 +08:00
"name" : "getModulesList" ,
2018-10-25 06:18:24 +08:00
"memberof" : "src/lib/components/Keyboard.js~SimpleKeyboard" ,
"static" : false ,
2018-10-31 11:33:29 +08:00
"longname" : "src/lib/components/Keyboard.js~SimpleKeyboard#getModulesList" ,
2018-10-25 06:18:24 +08:00
"access" : "public" ,
2018-10-31 11:33:29 +08:00
"description" : "getModulesList" ,
2018-11-06 06:31:11 +08:00
"lineNumber" : 619 ,
2018-10-25 06:18:24 +08:00
"type" : {
"types" : [
"*"
]
}
} ,
{
2018-11-01 12:14:02 +08:00
"__docId__" : 125 ,
2018-10-31 11:33:29 +08:00
"kind" : "method" ,
"name" : "render" ,
"memberof" : "src/lib/components/Keyboard.js~SimpleKeyboard" ,
"generator" : false ,
"async" : false ,
"static" : false ,
"longname" : "src/lib/components/Keyboard.js~SimpleKeyboard#render" ,
"access" : "public" ,
"description" : "Renders rows and buttons as per options" ,
2018-11-06 06:31:11 +08:00
"lineNumber" : 626 ,
2018-10-31 11:33:29 +08:00
"params" : [ ] ,
"return" : null
} ,
{
2018-11-06 06:31:11 +08:00
"__docId__" : 127 ,
2018-10-25 06:18:24 +08:00
"kind" : "member" ,
"name" : "initialized" ,
"memberof" : "src/lib/components/Keyboard.js~SimpleKeyboard" ,
2018-10-31 11:33:29 +08:00
"static" : false ,
2018-10-25 06:18:24 +08:00
"longname" : "src/lib/components/Keyboard.js~SimpleKeyboard#initialized" ,
"access" : "public" ,
"description" : "Ensures that onInit is only called once per instantiation" ,
2018-11-06 06:31:11 +08:00
"lineNumber" : 764 ,
2018-10-25 06:18:24 +08:00
"type" : {
"types" : [
"boolean"
]
}
} ,
{
2018-11-06 06:31:11 +08:00
"__docId__" : 128 ,
2018-10-25 06:18:24 +08:00
"kind" : "file" ,
"name" : "src/lib/index.js" ,
"content" : "import SimpleKeyboard from './components/Keyboard';\r\nexport default SimpleKeyboard;\r\n" ,
"static" : true ,
"longname" : "X:/Dev/simple-keyboard/src/lib/index.js" ,
"access" : "public" ,
"description" : null ,
"lineNumber" : 1
} ,
{
2018-11-06 06:31:11 +08:00
"__docId__" : 129 ,
2018-10-25 06:18:24 +08:00
"kind" : "file" ,
"name" : "src/lib/services/KeyboardLayout.js" ,
2018-10-31 11:33:29 +08:00
"content" : "/**\r\n * Keyboard Layout Service\r\n */\r\nclass KeyboardLayout {\r\n /**\r\n * Get default simple-keyboard layout\r\n * @return {object} The default layout (US-QWERTY)\r\n */\r\n static getDefaultLayout(){\r\n return {\r\n 'default': [\r\n '` 1 2 3 4 5 6 7 8 9 0 - = {bksp}',\r\n '{tab} q w e r t y u i o p [ ] \\\\',\r\n '{lock} a s d f g h j k l ; \\' {enter}',\r\n '{shift} z x c v b n m , . / {shift}',\r\n '.com @ {space}'\r\n ],\r\n 'shift': [\r\n '~ ! @ # $ % ^ & * ( ) _ + {bksp}',\r\n '{tab} Q W E R T Y U I O P { } |',\r\n '{lock} A S D F G H J K L : \" {enter}',\r\n '{shift} Z X C V B N M < > ? {shift}',\r\n '.com @ {space}'\r\n ]\r\n } \r\n }\r\n}\r\n\r\nexport default KeyboardLayout;" ,
2018-10-25 06:18:24 +08:00
"static" : true ,
"longname" : "X:/Dev/simple-keyboard/src/lib/services/KeyboardLayout.js" ,
"access" : "public" ,
"description" : null ,
"lineNumber" : 1
} ,
{
2018-11-06 06:31:11 +08:00
"__docId__" : 130 ,
2018-10-25 06:18:24 +08:00
"kind" : "class" ,
"name" : "KeyboardLayout" ,
"memberof" : "src/lib/services/KeyboardLayout.js" ,
"static" : true ,
"longname" : "src/lib/services/KeyboardLayout.js~KeyboardLayout" ,
"access" : "public" ,
"export" : true ,
"importPath" : "simple-keyboard/src/lib/services/KeyboardLayout.js" ,
"importStyle" : "KeyboardLayout" ,
"description" : "Keyboard Layout Service" ,
"lineNumber" : 4 ,
"interface" : false
} ,
{
2018-11-06 06:31:11 +08:00
"__docId__" : 131 ,
2018-10-31 11:33:29 +08:00
"kind" : "method" ,
2018-10-25 06:18:24 +08:00
"name" : "getDefaultLayout" ,
"memberof" : "src/lib/services/KeyboardLayout.js~KeyboardLayout" ,
2018-10-31 11:33:29 +08:00
"generator" : false ,
"async" : false ,
2018-10-25 06:18:24 +08:00
"static" : true ,
"longname" : "src/lib/services/KeyboardLayout.js~KeyboardLayout.getDefaultLayout" ,
"access" : "public" ,
"description" : "Get default simple-keyboard layout" ,
2018-10-31 11:33:29 +08:00
"lineNumber" : 9 ,
2018-10-25 06:18:24 +08:00
"return" : {
"nullable" : null ,
"types" : [
"object"
] ,
"spread" : false ,
"description" : "The default layout (US-QWERTY)"
} ,
2018-10-31 11:33:29 +08:00
"params" : [ ]
2018-10-25 06:18:24 +08:00
} ,
{
2018-11-06 06:31:11 +08:00
"__docId__" : 132 ,
2018-10-25 06:18:24 +08:00
"kind" : "file" ,
"name" : "src/lib/services/PhysicalKeyboard.js" ,
2018-10-31 11:33:29 +08:00
"content" : "/**\r\n * Physical Keyboard Service\r\n */\r\nclass PhysicalKeyboard {\r\n /**\r\n * Creates an instance of the PhysicalKeyboard service\r\n */\r\n constructor(simpleKeyboardInstance){\r\n /**\r\n * @type {object} A simple-keyboard instance\r\n */\r\n this.simpleKeyboardInstance = simpleKeyboardInstance;\r\n\r\n /**\r\n * Bindings\r\n */\r\n this.initKeyboardListener = this.initKeyboardListener.bind(this);\r\n this.getSimpleKeyboardLayoutKey = this.getSimpleKeyboardLayoutKey.bind(this);\r\n\r\n /**\r\n * Initialize key listeners\r\n */\r\n this.initKeyboardListener();\r\n }\r\n\r\n /**\r\n * Initializes key event listeners\r\n */\r\n initKeyboardListener(){\r\n // Adding button style on keydown\r\n document.addEventListener(\"keydown\", (event) => {\r\n if(this.simpleKeyboardInstance.options.physicalKeyboardHighlight){\r\n let buttonPressed = this.getSimpleKeyboardLayoutKey(event);\r\n\r\n this.simpleKeyboardInstance.dispatch(instance => {\r\n let buttonDOM = instance.getButtonElement(buttonPressed) || instance.getButtonElement(`{${buttonPressed}}`);\r\n\r\n if(buttonDOM){\r\n buttonDOM.style.backgroundColor = this.simpleKeyboardInstance.options.physicalKeyboardHighlightBgColor || \"#9ab4d0\";\r\n buttonDOM.style.color = this.simpleKeyboardInstance.options.physicalKeyboardHighlightTextColor || \"white\";\r\n }\r\n });\r\n }\r\n });\r\n\r\n // Removing button style on keyup\r\n document.addEventListener(\"keyup\", (event) => {\r\n if(this.simpleKeyboardInstance.options.physicalKeyboardHighlight){\r\n let buttonPressed = this.getSimpleKeyboardLayoutKey(event);\r\n\r\n this.simpleKeyboardInstance.dispatch(instance => {\r\n let buttonDOM = instance.getButtonElement(buttonPressed) || instance.getButtonElement(`{${buttonPressed}}`);\r\n\r\n if(buttonDOM){\r\n buttonDOM.removeAttribute(\"style\");\r\n }\r\n });\r\n }\r\n });\r\n }\r\n\r\n /**\r\n * Transforms a KeyboardEvent's \"key.code\" string into a simple-keyboard layout format\r\n * @param {object} event The KeyboardEvent\r\n */\r\n getSimpleKeyboardLayoutKey(event){\r\n let output;\r\n\r\n if(\r\n event.code.includes(\"Numpad\") ||\r\n event.code.includes(\"Shift\") ||\r\n event.code.includes(\"Space\") ||\r\n event.code.includes(\"Backspace\") ||\r\n event.code.includes(\"Control\") ||\r\n event.code.includes(\"Alt\") ||\r\n event.code.includes(\"Meta\")\r\n ){\r\n output = event.code;\r\n } else {\r\n output = event.key;\r\n }\r\n\r\n /**\r\n * If button is not uppercase, casting to lowercase\r\n */\r\n if (\r\n output !== output.toUpperCase() ||\r\n (event.code[0] === \"F\" && Number.isInteger(Number(event.code[1])) && event.code.length <= 3)\r\n ) {\r\n output = output.toLowerCase();\r\n }\r\n\r\n return output;\r\n }\r\n}\r\n\r\nexport default PhysicalKeyboard;" ,
2018-10-25 06:18:24 +08:00
"static" : true ,
"longname" : "X:/Dev/simple-keyboard/src/lib/services/PhysicalKeyboard.js" ,
"access" : "public" ,
"description" : null ,
"lineNumber" : 1
} ,
{
2018-11-06 06:31:11 +08:00
"__docId__" : 133 ,
2018-10-25 06:18:24 +08:00
"kind" : "class" ,
"name" : "PhysicalKeyboard" ,
"memberof" : "src/lib/services/PhysicalKeyboard.js" ,
"static" : true ,
"longname" : "src/lib/services/PhysicalKeyboard.js~PhysicalKeyboard" ,
"access" : "public" ,
"export" : true ,
"importPath" : "simple-keyboard/src/lib/services/PhysicalKeyboard.js" ,
"importStyle" : "PhysicalKeyboard" ,
"description" : "Physical Keyboard Service" ,
"lineNumber" : 4 ,
"interface" : false
} ,
{
2018-11-06 06:31:11 +08:00
"__docId__" : 134 ,
2018-10-25 06:18:24 +08:00
"kind" : "constructor" ,
"name" : "constructor" ,
"memberof" : "src/lib/services/PhysicalKeyboard.js~PhysicalKeyboard" ,
"generator" : false ,
"async" : false ,
"static" : false ,
"longname" : "src/lib/services/PhysicalKeyboard.js~PhysicalKeyboard#constructor" ,
"access" : "public" ,
"description" : "Creates an instance of the PhysicalKeyboard service" ,
"lineNumber" : 8
} ,
{
2018-11-06 06:31:11 +08:00
"__docId__" : 135 ,
2018-10-25 06:18:24 +08:00
"kind" : "member" ,
"name" : "simpleKeyboardInstance" ,
"memberof" : "src/lib/services/PhysicalKeyboard.js~PhysicalKeyboard" ,
"static" : false ,
"longname" : "src/lib/services/PhysicalKeyboard.js~PhysicalKeyboard#simpleKeyboardInstance" ,
"access" : "public" ,
"description" : "" ,
"lineNumber" : 12 ,
"type" : {
"nullable" : null ,
"types" : [
"object"
] ,
"spread" : false ,
"description" : null
}
} ,
{
2018-11-06 06:31:11 +08:00
"__docId__" : 138 ,
2018-10-31 11:33:29 +08:00
"kind" : "method" ,
2018-10-25 06:18:24 +08:00
"name" : "initKeyboardListener" ,
"memberof" : "src/lib/services/PhysicalKeyboard.js~PhysicalKeyboard" ,
2018-10-31 11:33:29 +08:00
"generator" : false ,
"async" : false ,
2018-10-25 06:18:24 +08:00
"static" : false ,
"longname" : "src/lib/services/PhysicalKeyboard.js~PhysicalKeyboard#initKeyboardListener" ,
"access" : "public" ,
"description" : "Initializes key event listeners" ,
2018-10-31 11:33:29 +08:00
"lineNumber" : 29 ,
"params" : [ ] ,
"return" : null
2018-10-25 06:18:24 +08:00
} ,
{
2018-11-06 06:31:11 +08:00
"__docId__" : 139 ,
2018-10-31 11:33:29 +08:00
"kind" : "method" ,
2018-10-25 06:18:24 +08:00
"name" : "getSimpleKeyboardLayoutKey" ,
"memberof" : "src/lib/services/PhysicalKeyboard.js~PhysicalKeyboard" ,
2018-10-31 11:33:29 +08:00
"generator" : false ,
"async" : false ,
2018-10-25 06:18:24 +08:00
"static" : false ,
"longname" : "src/lib/services/PhysicalKeyboard.js~PhysicalKeyboard#getSimpleKeyboardLayoutKey" ,
"access" : "public" ,
"description" : "Transforms a KeyboardEvent's \"key.code\" string into a simple-keyboard layout format" ,
2018-10-31 11:33:29 +08:00
"lineNumber" : 66 ,
2018-10-25 06:18:24 +08:00
"params" : [
{
"nullable" : null ,
"types" : [
"object"
] ,
"spread" : false ,
"optional" : false ,
"name" : "event" ,
"description" : "The KeyboardEvent"
}
] ,
2018-10-31 11:33:29 +08:00
"return" : {
2018-10-25 06:18:24 +08:00
"types" : [
"*"
]
}
} ,
{
2018-11-06 06:31:11 +08:00
"__docId__" : 140 ,
2018-10-25 06:18:24 +08:00
"kind" : "file" ,
"name" : "src/lib/services/Utilities.js" ,
2018-11-06 06:31:11 +08:00
"content" : "/**\r\n * Utility Service\r\n */\r\nclass Utilities {\r\n /**\r\n * Creates an instance of the Utility service\r\n */\r\n constructor(simpleKeyboardInstance){\r\n /**\r\n * @type {object} A simple-keyboard instance\r\n */\r\n this.simpleKeyboardInstance = simpleKeyboardInstance;\r\n\r\n /**\r\n * Bindings\r\n */\r\n this.getButtonClass = this.getButtonClass.bind(this);\r\n this.getButtonDisplayName = this.getButtonDisplayName.bind(this);\r\n this.getUpdatedInput = this.getUpdatedInput.bind(this);\r\n this.updateCaretPos = this.updateCaretPos.bind(this);\r\n this.isMaxLengthReached = this.isMaxLengthReached.bind(this);\r\n this.camelCase = this.camelCase.bind(this);\r\n this.countInArray = this.countInArray.bind(this);\r\n }\r\n\r\n /**\r\n * Adds default classes to a given button\r\n * \r\n * @param {string} button The button's layout name\r\n * @return {string} The classes to be added to the button\r\n */\r\n getButtonClass(button){\r\n let buttonTypeClass = (button.includes(\"{\") && button.includes(\"}\") && button !== '{//}') ? \"functionBtn\" : \"standardBtn\";\r\n let buttonWithoutBraces = button.replace(\"{\", \"\").replace(\"}\", \"\");\r\n let buttonNormalized = '';\r\n\r\n if(buttonTypeClass !== \"standardBtn\")\r\n buttonNormalized = ` hg-button-${buttonWithoutBraces}`;\r\n\r\n return `hg-${buttonTypeClass}${buttonNormalized}`;\r\n }\r\n\r\n /**\r\n * Default button display labels\r\n */\r\n getDefaultDiplay(){\r\n return {\r\n '{bksp}': 'backspace',\r\n '{backspace}': 'backspace',\r\n '{enter}': '< enter',\r\n '{shift}': 'shift',\r\n '{shiftleft}': 'shift',\r\n '{shiftright}': 'shift',\r\n '{alt}': 'alt',\r\n '{s}': 'shift',\r\n '{tab}': 'tab',\r\n '{lock}': 'caps',\r\n '{capslock}': 'caps',\r\n '{accept}': 'Submit',\r\n '{space}': ' ',\r\n '{//}': ' ',\r\n \"{esc}\": \"esc\",\r\n \"{escape}\": \"esc\",\r\n \"{f1}\": \"f1\",\r\n \"{f2}\": \"f2\",\r\n \"{f3}\": \"f3\",\r\n \"{f4}\": \"f4\",\r\n \"{f5}\": \"f5\",\r\n \"{f6}\": \"f6\",\r\n \"{f7}\": \"f7\",\r\n \"{f8}\": \"f8\",\r\n \"{f9}\": \"f9\",\r\n \"{f10}\": \"f10\",\r\n \"{f11}\": \"f11\",\r\n \"{f12}\": \"f12\",\r\n '{numpaddivide}': '/',\r\n '{numlock}': 'lock',\r\n \"{arrowup}\": \"↑\",\r\n \"{arrowleft}\": \"←\",\r\n \"{arrowdown}\": \"↓\",\r\n \"{arrowright}\": \"→\",\r\n \"{prtscr}\": \"print\",\r\n \"{scrolllock}\": \"scroll\",\r\n \"{pause}\": \"pause\",\r\n \"{insert}\": \"ins\",\r\n \"{home}\": \"home\",\r\n \"{pageup}\": \"up\",\r\n \"{delete}\": \"del\",\r\n \"{end}\": \"end\",\r\n \"{pagedown}\": \"down\",\r\n \"{numpadmultiply}\": \"*\",\r\n \"{numpadsubtract}\": \"-\",\r\n \"{numpadadd}\": \"+\",\r\n \"{numpadenter}\": \"enter\",\r\n \"{period}\": \".\",\r\n \"{numpaddecimal}\": \".\",\r\n \"{numpad0}\": \"0\",\r\n \"{numpad1}\": \"1\",\r\n \"{numpad2}\": \"2\",\r\n \"{numpad3}\": \"3\",\r\n \"{numpad4}\": \"4\",\r\n \"{numpad5}\": \"5\",\r\n \"{numpad6}\": \"6\",\r\n \"{numpad7}\": \"7\",\r\n \"{numpad8}\": \"8\",\r\n \"{numpad9}\": \"9\" , \ r \ n } ; \ r \ n } \ r \ n / * * \ r \ n * R e t u r n s t h e d i s p l a y ( l a b e l ) n a m e f o r a g i v e n b u t t o n \ r \ n * \ r \ n * @ p a r a m { s t r i n g } b u t t o n T h e b u t t o n ' s l a y o u t n a m e \ r \ n * @ p a r a m { o b j e c t } d i s p l a y T h e p r o v i d e d d i s p l a y o p t i o n \ r \ n * @ p a r a m { b o o l e a n } m e r g e D i s p l a y W h e t h e r t h e p r o v i d e d p a r a m v a l u e s h o u l d b e m e r g e d w i t h t h e d e f a u l t o n e . \ r \ n * / \ r \ n g e t B u t t o n D i s p l a y N a m e ( b u t t o n , d i s p l a y , m e r g e D i s p l a y ) { \ r \ n i f ( m e r g e D i s p l a y ) { \ r \ n d i s p l a y = O b j e c t . a s s i g n ( { } , t h i s . g e t D e f a u l t D i p l a y ( ) , d i s p l a y ) ; \ r \ n } e l s e { \ r \ n d i s p l a y = d i s p l a y | | t h i s . g e t D e f a u l t D i p l a y ( ) ; \ r \ n } \ r \ n \ r \ n r e t u r n d i s p l a y [ b u t t o n ] | | b u t t o n ; \ r \ n } \ r \ n \ r \ n \ r \ n / * * \ r \ n * R e t u r n s t h e u p d a t e d i n p u t r e s u l t i n g f r o m c l i c k i n g a g i v e n
2018-10-25 06:18:24 +08:00
"static" : true ,
"longname" : "X:/Dev/simple-keyboard/src/lib/services/Utilities.js" ,
"access" : "public" ,
"description" : null ,
"lineNumber" : 1
} ,
{
2018-11-06 06:31:11 +08:00
"__docId__" : 141 ,
2018-10-25 06:18:24 +08:00
"kind" : "class" ,
"name" : "Utilities" ,
"memberof" : "src/lib/services/Utilities.js" ,
"static" : true ,
"longname" : "src/lib/services/Utilities.js~Utilities" ,
"access" : "public" ,
"export" : true ,
"importPath" : "simple-keyboard/src/lib/services/Utilities.js" ,
"importStyle" : "Utilities" ,
"description" : "Utility Service" ,
"lineNumber" : 4 ,
"interface" : false
} ,
{
2018-11-06 06:31:11 +08:00
"__docId__" : 142 ,
2018-10-25 06:18:24 +08:00
"kind" : "constructor" ,
"name" : "constructor" ,
"memberof" : "src/lib/services/Utilities.js~Utilities" ,
"generator" : false ,
"async" : false ,
"static" : false ,
"longname" : "src/lib/services/Utilities.js~Utilities#constructor" ,
"access" : "public" ,
"description" : "Creates an instance of the Utility service" ,
"lineNumber" : 8
} ,
{
2018-11-06 06:31:11 +08:00
"__docId__" : 143 ,
2018-10-25 06:18:24 +08:00
"kind" : "member" ,
"name" : "simpleKeyboardInstance" ,
"memberof" : "src/lib/services/Utilities.js~Utilities" ,
"static" : false ,
"longname" : "src/lib/services/Utilities.js~Utilities#simpleKeyboardInstance" ,
"access" : "public" ,
"description" : "" ,
"lineNumber" : 12 ,
"type" : {
"nullable" : null ,
"types" : [
"object"
] ,
"spread" : false ,
"description" : null
}
} ,
{
2018-11-06 06:31:11 +08:00
"__docId__" : 151 ,
2018-10-31 11:33:29 +08:00
"kind" : "method" ,
2018-10-25 06:18:24 +08:00
"name" : "getButtonClass" ,
"memberof" : "src/lib/services/Utilities.js~Utilities" ,
2018-10-31 11:33:29 +08:00
"generator" : false ,
"async" : false ,
2018-10-25 06:18:24 +08:00
"static" : false ,
"longname" : "src/lib/services/Utilities.js~Utilities#getButtonClass" ,
"access" : "public" ,
"description" : "Adds default classes to a given button" ,
2018-10-31 11:33:29 +08:00
"lineNumber" : 32 ,
2018-10-25 06:18:24 +08:00
"params" : [
{
"nullable" : null ,
"types" : [
"string"
] ,
"spread" : false ,
"optional" : false ,
"name" : "button" ,
"description" : "The button's layout name"
}
] ,
"return" : {
"nullable" : null ,
"types" : [
"string"
] ,
"spread" : false ,
"description" : "The classes to be added to the button"
}
} ,
{
2018-11-06 06:31:11 +08:00
"__docId__" : 152 ,
2018-10-25 06:18:24 +08:00
"kind" : "method" ,
"name" : "getDefaultDiplay" ,
"memberof" : "src/lib/services/Utilities.js~Utilities" ,
"generator" : false ,
"async" : false ,
"static" : false ,
"longname" : "src/lib/services/Utilities.js~Utilities#getDefaultDiplay" ,
"access" : "public" ,
"description" : "Default button display labels" ,
2018-10-31 11:33:29 +08:00
"lineNumber" : 46 ,
2018-10-25 06:18:24 +08:00
"params" : [ ] ,
"return" : {
"types" : [
"{\"{bksp}\": string, \"{backspace}\": string, \"{enter}\": string, \"{shift}\": string, \"{shiftleft}\": string, \"{shiftright}\": string, \"{alt}\": string, \"{s}\": string, \"{tab}\": string, \"{lock}\": string, \"{capslock}\": string, \"{accept}\": string, \"{space}\": string, \"{//}\": string, \"{esc}\": string, \"{escape}\": string, \"{f1}\": string, \"{f2}\": string, \"{f3}\": string, \"{f4}\": string, \"{f5}\": string, \"{f6}\": string, \"{f7}\": string, \"{f8}\": string, \"{f9}\": string, \"{f10}\": string, \"{f11}\": string, \"{f12}\": string, \"{numpaddivide}\": string, \"{numlock}\": string, \"{arrowup}\": string, \"{arrowleft}\": string, \"{arrowdown}\": string, \"{arrowright}\": string, \"{prtscr}\": string, \"{scrolllock}\": string, \"{pause}\": string, \"{insert}\": string, \"{home}\": string, \"{pageup}\": string, \"{delete}\": string, \"{end}\": string, \"{pagedown}\": string, \"{numpadmultiply}\": string, \"{numpadsubtract}\": string, \"{numpadadd}\": string, \"{numpadenter}\": string, \"{period}\": string, \"{numpaddecimal}\": string, \"{numpad0}\": string, \"{numpad1}\": string, \"{numpad2}\": string, \"{numpad3}\": string, \"{numpad4}\": string, \"{numpad5}\": string, \"{numpad6}\": string, \"{numpad7}\": string, \"{numpad8}\": string, \"{numpad9}\": string}"
]
}
} ,
{
2018-11-06 06:31:11 +08:00
"__docId__" : 153 ,
2018-10-31 11:33:29 +08:00
"kind" : "method" ,
2018-10-25 06:18:24 +08:00
"name" : "getButtonDisplayName" ,
"memberof" : "src/lib/services/Utilities.js~Utilities" ,
2018-10-31 11:33:29 +08:00
"generator" : false ,
"async" : false ,
2018-10-25 06:18:24 +08:00
"static" : false ,
"longname" : "src/lib/services/Utilities.js~Utilities#getButtonDisplayName" ,
"access" : "public" ,
"description" : "Returns the display (label) name for a given button" ,
2018-10-31 11:33:29 +08:00
"lineNumber" : 116 ,
2018-10-25 06:18:24 +08:00
"params" : [
{
"nullable" : null ,
"types" : [
"string"
] ,
"spread" : false ,
"optional" : false ,
"name" : "button" ,
"description" : "The button's layout name"
} ,
{
"nullable" : null ,
"types" : [
"object"
] ,
"spread" : false ,
"optional" : false ,
"name" : "display" ,
"description" : "The provided display option"
} ,
{
"nullable" : null ,
"types" : [
"boolean"
] ,
"spread" : false ,
"optional" : false ,
"name" : "mergeDisplay" ,
"description" : "Whether the provided param value should be merged with the default one."
}
] ,
2018-10-31 11:33:29 +08:00
"return" : {
2018-10-25 06:18:24 +08:00
"types" : [
"*"
]
}
} ,
{
2018-11-06 06:31:11 +08:00
"__docId__" : 154 ,
2018-10-31 11:33:29 +08:00
"kind" : "method" ,
2018-10-25 06:18:24 +08:00
"name" : "getUpdatedInput" ,
"memberof" : "src/lib/services/Utilities.js~Utilities" ,
2018-10-31 11:33:29 +08:00
"generator" : false ,
"async" : false ,
2018-10-25 06:18:24 +08:00
"static" : false ,
"longname" : "src/lib/services/Utilities.js~Utilities#getUpdatedInput" ,
"access" : "public" ,
"description" : "Returns the updated input resulting from clicking a given button" ,
2018-11-06 06:31:11 +08:00
"lineNumber" : 136 ,
2018-10-25 06:18:24 +08:00
"params" : [
{
"nullable" : null ,
"types" : [
"string"
] ,
"spread" : false ,
"optional" : false ,
"name" : "button" ,
"description" : "The button's layout name"
} ,
{
"nullable" : null ,
"types" : [
"string"
] ,
"spread" : false ,
"optional" : false ,
"name" : "input" ,
"description" : "The input string"
} ,
{
"nullable" : null ,
"types" : [
"object"
] ,
"spread" : false ,
"optional" : false ,
"name" : "options" ,
"description" : "The simple-keyboard options object"
} ,
{
"nullable" : null ,
"types" : [
"number"
] ,
"spread" : false ,
"optional" : false ,
"name" : "caretPos" ,
"description" : "The cursor's current position"
2018-11-06 06:31:11 +08:00
} ,
{
"nullable" : null ,
"types" : [
"boolean"
] ,
"spread" : false ,
"optional" : false ,
"name" : "moveCaret" ,
"description" : "Whether to update simple-keyboard's cursor"
2018-10-25 06:18:24 +08:00
}
] ,
2018-10-31 11:33:29 +08:00
"return" : {
2018-10-25 06:18:24 +08:00
"types" : [
"*"
]
}
} ,
{
2018-11-06 06:31:11 +08:00
"__docId__" : 155 ,
2018-10-31 11:33:29 +08:00
"kind" : "method" ,
2018-10-25 06:18:24 +08:00
"name" : "updateCaretPos" ,
"memberof" : "src/lib/services/Utilities.js~Utilities" ,
2018-10-31 11:33:29 +08:00
"generator" : false ,
"async" : false ,
2018-10-25 06:18:24 +08:00
"static" : false ,
"longname" : "src/lib/services/Utilities.js~Utilities#updateCaretPos" ,
"access" : "public" ,
"description" : "Moves the cursor position by a given amount" ,
2018-11-06 06:31:11 +08:00
"lineNumber" : 185 ,
2018-10-25 06:18:24 +08:00
"params" : [
{
"nullable" : null ,
"types" : [
"number"
] ,
"spread" : false ,
"optional" : false ,
"name" : "length" ,
"description" : "Represents by how many characters the input should be moved"
} ,
{
"nullable" : null ,
"types" : [
"boolean"
] ,
"spread" : false ,
"optional" : false ,
"name" : "minus" ,
"description" : "Whether the cursor should be moved to the left or not."
}
] ,
2018-10-31 11:33:29 +08:00
"return" : null
2018-10-25 06:18:24 +08:00
} ,
{
2018-11-06 06:31:11 +08:00
"__docId__" : 156 ,
2018-10-25 06:18:24 +08:00
"kind" : "method" ,
"name" : "addStringAt" ,
"memberof" : "src/lib/services/Utilities.js~Utilities" ,
"generator" : false ,
"async" : false ,
"static" : false ,
"longname" : "src/lib/services/Utilities.js~Utilities#addStringAt" ,
"access" : "public" ,
"description" : "Adds a string to the input at a given position" ,
2018-11-06 06:31:11 +08:00
"lineNumber" : 202 ,
2018-10-25 06:18:24 +08:00
"params" : [
{
"nullable" : null ,
"types" : [
"string"
] ,
"spread" : false ,
"optional" : false ,
"name" : "source" ,
"description" : "The source input"
} ,
{
"nullable" : null ,
"types" : [
"string"
] ,
"spread" : false ,
"optional" : false ,
"name" : "string" ,
"description" : "The string to add"
} ,
{
"nullable" : null ,
"types" : [
"number"
] ,
"spread" : false ,
"optional" : false ,
"name" : "position" ,
"description" : "The (cursor) position where the string should be added"
2018-11-06 06:31:11 +08:00
} ,
{
"nullable" : null ,
"types" : [
"boolean"
] ,
"spread" : false ,
"optional" : false ,
"name" : "moveCaret" ,
"description" : "Whether to update simple-keyboard's cursor"
2018-10-25 06:18:24 +08:00
}
] ,
"return" : {
"types" : [
"*"
]
}
} ,
{
2018-11-06 06:31:11 +08:00
"__docId__" : 157 ,
2018-10-25 06:18:24 +08:00
"kind" : "method" ,
"name" : "removeAt" ,
"memberof" : "src/lib/services/Utilities.js~Utilities" ,
"generator" : false ,
"async" : false ,
"static" : false ,
"longname" : "src/lib/services/Utilities.js~Utilities#removeAt" ,
"access" : "public" ,
"description" : "Removes an amount of characters at a given position" ,
2018-11-06 06:31:11 +08:00
"lineNumber" : 233 ,
2018-10-25 06:18:24 +08:00
"params" : [
{
"nullable" : null ,
"types" : [
"string"
] ,
"spread" : false ,
"optional" : false ,
"name" : "source" ,
"description" : "The source input"
} ,
{
"nullable" : null ,
"types" : [
"number"
] ,
"spread" : false ,
"optional" : false ,
"name" : "position" ,
"description" : "The (cursor) position from where the characters should be removed"
2018-11-06 06:31:11 +08:00
} ,
{
"nullable" : null ,
"types" : [
"boolean"
] ,
"spread" : false ,
"optional" : false ,
"name" : "moveCaret" ,
"description" : "Whether to update simple-keyboard's cursor"
2018-10-25 06:18:24 +08:00
}
] ,
"return" : {
"types" : [
"*"
]
}
} ,
{
2018-11-06 06:31:11 +08:00
"__docId__" : 158 ,
2018-10-25 06:18:24 +08:00
"kind" : "method" ,
"name" : "handleMaxLength" ,
"memberof" : "src/lib/services/Utilities.js~Utilities" ,
"generator" : false ,
"async" : false ,
"static" : false ,
"longname" : "src/lib/services/Utilities.js~Utilities#handleMaxLength" ,
"access" : "public" ,
"description" : "Determines whether the maxLength has been reached. This function is called when the maxLength option it set." ,
2018-11-06 06:31:11 +08:00
"lineNumber" : 284 ,
2018-10-25 06:18:24 +08:00
"params" : [
{
"nullable" : null ,
"types" : [
"object"
] ,
"spread" : false ,
"optional" : false ,
"name" : "inputObj" ,
"description" : ""
} ,
{
"nullable" : null ,
"types" : [
"object"
] ,
"spread" : false ,
"optional" : false ,
"name" : "options" ,
"description" : ""
} ,
{
"nullable" : null ,
"types" : [
"string"
] ,
"spread" : false ,
"optional" : false ,
"name" : "updatedInput" ,
"description" : ""
}
] ,
"return" : {
"types" : [
"boolean"
]
}
} ,
{
2018-11-06 06:31:11 +08:00
"__docId__" : 159 ,
2018-10-25 06:18:24 +08:00
"kind" : "member" ,
"name" : "maxLengthReached" ,
"memberof" : "src/lib/services/Utilities.js~Utilities" ,
"static" : false ,
"longname" : "src/lib/services/Utilities.js~Utilities#maxLengthReached" ,
"access" : "public" ,
"description" : "" ,
2018-11-06 06:31:11 +08:00
"lineNumber" : 308 ,
2018-10-25 06:18:24 +08:00
"type" : {
"nullable" : null ,
"types" : [
"boolean"
] ,
"spread" : false ,
"description" : null
}
} ,
{
2018-11-06 06:31:11 +08:00
"__docId__" : 163 ,
2018-10-31 11:33:29 +08:00
"kind" : "method" ,
2018-10-25 06:18:24 +08:00
"name" : "isMaxLengthReached" ,
"memberof" : "src/lib/services/Utilities.js~Utilities" ,
2018-10-31 11:33:29 +08:00
"generator" : false ,
"async" : false ,
2018-10-25 06:18:24 +08:00
"static" : false ,
"longname" : "src/lib/services/Utilities.js~Utilities#isMaxLengthReached" ,
"access" : "public" ,
"description" : "Gets the current value of maxLengthReached" ,
2018-11-06 06:31:11 +08:00
"lineNumber" : 336 ,
2018-10-31 11:33:29 +08:00
"params" : [ ] ,
"return" : {
2018-10-25 06:18:24 +08:00
"types" : [
"*"
]
}
} ,
{
2018-11-06 06:31:11 +08:00
"__docId__" : 164 ,
2018-10-31 11:33:29 +08:00
"kind" : "method" ,
2018-10-25 06:18:24 +08:00
"name" : "camelCase" ,
"memberof" : "src/lib/services/Utilities.js~Utilities" ,
2018-10-31 11:33:29 +08:00
"generator" : false ,
"async" : false ,
2018-10-25 06:18:24 +08:00
"static" : false ,
"longname" : "src/lib/services/Utilities.js~Utilities#camelCase" ,
"access" : "public" ,
"description" : "Transforms an arbitrary string to camelCase" ,
2018-11-06 06:31:11 +08:00
"lineNumber" : 345 ,
2018-10-25 06:18:24 +08:00
"params" : [
{
"nullable" : null ,
"types" : [
"string"
] ,
"spread" : false ,
"optional" : false ,
"name" : "string" ,
"description" : "The string to transform."
}
] ,
2018-10-31 11:33:29 +08:00
"return" : {
2018-10-25 06:18:24 +08:00
"types" : [
"*"
]
}
} ,
{
2018-11-06 06:31:11 +08:00
"__docId__" : 165 ,
2018-10-31 11:33:29 +08:00
"kind" : "method" ,
2018-10-25 06:18:24 +08:00
"name" : "countInArray" ,
"memberof" : "src/lib/services/Utilities.js~Utilities" ,
2018-10-31 11:33:29 +08:00
"generator" : false ,
"async" : false ,
2018-10-25 06:18:24 +08:00
"static" : false ,
"longname" : "src/lib/services/Utilities.js~Utilities#countInArray" ,
"access" : "public" ,
"description" : "Counts the number of duplicates in a given array" ,
2018-11-06 06:31:11 +08:00
"lineNumber" : 355 ,
2018-10-25 06:18:24 +08:00
"params" : [
{
"nullable" : null ,
"types" : [
"Array"
] ,
"spread" : false ,
"optional" : false ,
"name" : "array" ,
"description" : "The haystack to search in"
} ,
{
"nullable" : null ,
"types" : [
"string"
] ,
"spread" : false ,
"optional" : false ,
"name" : "value" ,
"description" : "The needle to search for"
}
] ,
2018-10-31 11:33:29 +08:00
"return" : {
2018-10-25 06:18:24 +08:00
"types" : [
"*"
]
}
} ,
{
2018-11-06 06:31:11 +08:00
"__docId__" : 166 ,
2018-10-25 06:18:24 +08:00
"kind" : "file" ,
"name" : "src/lib/tests/TestUtility.js" ,
"content" : "/**\r\n * Test Utility Functions\r\n */\r\nexport default class TestUtility {\r\n /**\r\n * Set's a basic DOM structure to test in\r\n */\r\n setDOM = (divClass) => {\r\n this.clear();\r\n const div = document.createElement('div');\r\n div.className += divClass || \"simple-keyboard\";\r\n document.body.appendChild(div);\r\n }\r\n\r\n /**\r\n * Clears DOM structure\r\n */\r\n clear = () => {\r\n document.body.innerHTML = \"\";\r\n }\r\n\r\n /**\r\n * Test if standard buttons respect maxLength and do input a value\r\n */\r\n testLayoutStdButtons = (keyboard) => {\r\n let stdBtnCount = 0;\r\n let fullInput = '';\r\n\r\n this.iterateButtons((button) => {\r\n let label = button.getAttribute(\"data-skbtn\");\r\n\r\n if(label.includes(\"{\"))\r\n return false;\r\n\r\n // Click all standard buttons, respects maxLength\r\n button.onclick();\r\n\r\n // Recording fullInput, bypasses maxLength\r\n fullInput = keyboard.utilities.getUpdatedInput(label, fullInput, keyboard.options, null);\r\n\r\n stdBtnCount += label.length;\r\n });\r\n\r\n /**\r\n * Check if maxLength is respected\r\n */\r\n if(\r\n (\r\n typeof keyboard.options.maxLength === \"object\" &&\r\n keyboard.getInput().length !== keyboard.options.maxLength[keyboard.options.layoutName]\r\n ) ||\r\n (\r\n typeof keyboard.options.maxLength !== \"object\" &&\r\n keyboard.getInput().length !== keyboard.options.maxLength\r\n )\r\n )\r\n throw new Error(\"MAX_LENGTH_ISSUE\");\r\n else\r\n console.log(\"MAX_LENGTH PASSED:\", keyboard.options.layoutName, keyboard.getInput().length, keyboard.options.maxLength);\r\n\r\n /**\r\n * Check if all standard buttons are inputting something\r\n * (Regardless of maxLength)\r\n */\r\n if(stdBtnCount !== fullInput.length)\r\n throw new Error(\"STANDARD_BUTTONS_ISSUE\");\r\n else\r\n console.log(\"STANDARD_BUTTONS PASSED:\", keyboard.options.layoutName, stdBtnCount, fullInput.length);\r\n }\r\n\r\n /**\r\n * Test if function buttons are interactive (have an onclick)\r\n */\r\n testLayoutFctButtons = (callback) => {\r\n let fctBtnCount = 0;\r\n let fctBtnHasOnclickCount = 0;\r\n\r\n this.iterateButtons((button) => {\r\n let label = button.getAttribute(\"data-skbtn\");\r\n\r\n if(!label.includes(\"{\") && !label.includes(\"}\"))\r\n return false;\r\n\r\n fctBtnCount++;\r\n\r\n if(button.onclick){\r\n button.onclick();\r\n fctBtnHasOnclickCount++;\r\n }\r\n\r\n callback(fctBtnCount, fctBtnHasOnclickCount);\r\n });\r\n }\r\n\r\n /**\r\n * Iterates on the keyboard buttons\r\n */\r\n iterateButtons = (callback, selector) => {\r\n let rows = document.body.querySelector(selector || '.simple-keyboard').children;\r\n\r\n Array.from(rows).forEach(row => {\r\n Array.from(row.children).forEach((button) => {\r\n callback(button);\r\n });\r\n });\r\n }\r\n}" ,
"static" : true ,
"longname" : "X:/Dev/simple-keyboard/src/lib/tests/TestUtility.js" ,
"access" : "public" ,
"description" : null ,
"lineNumber" : 1
} ,
{
2018-11-06 06:31:11 +08:00
"__docId__" : 167 ,
2018-10-25 06:18:24 +08:00
"kind" : "class" ,
"name" : "TestUtility" ,
"memberof" : "src/lib/tests/TestUtility.js" ,
"static" : true ,
"longname" : "src/lib/tests/TestUtility.js~TestUtility" ,
"access" : "public" ,
"export" : true ,
"importPath" : "simple-keyboard/src/lib/tests/TestUtility.js" ,
"importStyle" : "TestUtility" ,
"description" : "Test Utility Functions" ,
"lineNumber" : 4 ,
"interface" : false
} ,
{
2018-11-06 06:31:11 +08:00
"__docId__" : 168 ,
2018-10-25 06:18:24 +08:00
"kind" : "member" ,
"name" : "setDOM" ,
"memberof" : "src/lib/tests/TestUtility.js~TestUtility" ,
"static" : false ,
"longname" : "src/lib/tests/TestUtility.js~TestUtility#setDOM" ,
"access" : "public" ,
"description" : "Set's a basic DOM structure to test in" ,
"lineNumber" : 8 ,
"type" : {
"types" : [
"*"
]
}
} ,
{
2018-11-06 06:31:11 +08:00
"__docId__" : 169 ,
2018-10-25 06:18:24 +08:00
"kind" : "member" ,
"name" : "clear" ,
"memberof" : "src/lib/tests/TestUtility.js~TestUtility" ,
"static" : false ,
"longname" : "src/lib/tests/TestUtility.js~TestUtility#clear" ,
"access" : "public" ,
"description" : "Clears DOM structure" ,
"lineNumber" : 18 ,
"type" : {
"types" : [
"*"
]
}
} ,
{
2018-11-06 06:31:11 +08:00
"__docId__" : 170 ,
2018-10-25 06:18:24 +08:00
"kind" : "member" ,
"name" : "testLayoutStdButtons" ,
"memberof" : "src/lib/tests/TestUtility.js~TestUtility" ,
"static" : false ,
"longname" : "src/lib/tests/TestUtility.js~TestUtility#testLayoutStdButtons" ,
"access" : "public" ,
"description" : "Test if standard buttons respect maxLength and do input a value" ,
"lineNumber" : 25 ,
"type" : {
"types" : [
"*"
]
}
} ,
{
2018-11-06 06:31:11 +08:00
"__docId__" : 171 ,
2018-10-25 06:18:24 +08:00
"kind" : "member" ,
"name" : "testLayoutFctButtons" ,
"memberof" : "src/lib/tests/TestUtility.js~TestUtility" ,
"static" : false ,
"longname" : "src/lib/tests/TestUtility.js~TestUtility#testLayoutFctButtons" ,
"access" : "public" ,
"description" : "Test if function buttons are interactive (have an onclick)" ,
"lineNumber" : 74 ,
"type" : {
"types" : [
"*"
]
}
} ,
{
2018-11-06 06:31:11 +08:00
"__docId__" : 172 ,
2018-10-25 06:18:24 +08:00
"kind" : "member" ,
"name" : "iterateButtons" ,
"memberof" : "src/lib/tests/TestUtility.js~TestUtility" ,
"static" : false ,
"longname" : "src/lib/tests/TestUtility.js~TestUtility#iterateButtons" ,
"access" : "public" ,
"description" : "Iterates on the keyboard buttons" ,
"lineNumber" : 98 ,
"type" : {
"types" : [
"*"
]
}
} ,
{
"kind" : "index" ,
2018-10-29 23:47:56 +08:00
"content" : "<div align=\"center\">\r\n <a href=\"https://simple-keyboard.com/demo\" title=\"View Demo\" target=\"_blank\"><img src=\"https://franciscohodge.com/project-pages/simple-keyboard/images/simplekeyboard-banner_B.png\" align=\"center\" width=\"100%\"></a>\r\n <a href=\"https://simple-keyboard.com/demo\" title=\"View Demo\" target=\"_blank\"><img src=\"https://franciscohodge.com/project-pages/simple-keyboard/images/simple-keyboard-10172018.gif\" align=\"center\" width=\"100%\"></a>\r\n <blockquote>The easily customisable and responsive on-screen virtual keyboard for Javascript projects.</blockquote>\r\n <p><a href=\"https://github.com/hodgef/simple-keyboard/blob/master/LICENSE\" target=\"_blank\"><img src=\"https://img.shields.io/badge/license-MIT-blue.svg\" alt=\"License\"></a>\r\n <a href=\"https://www.npmjs.com/package/simple-keyboard\" target=\"_blank\"><img src=\"https://img.shields.io/npm/v/simple-keyboard.svg?style=flat\" alt=\"npm version\"></a>\r\n <a href=\"https://travis-ci.org/hodgef/simple-keyboard\" target=\"_blank\"><img src=\"https://travis-ci.org/hodgef/simple-keyboard.svg?branch=master\" alt=\"Build Status\"></a>\r\n <a href=\"https://codecov.io/gh/hodgef/simple-keyboard\" target=\"_blank\"><img src=\"https://img.shields.io/codecov/c/github/hodgef/simple-keyboard/master.svg?style=flat\" alt=\"Coverage Status\"></a>\r\n <a href=\"https://doc.esdoc.org/github.com/hodgef/simple-keyboard\" target=\"_blank\"><img src=\"https://doc.esdoc.org/github.com/hodgef/simple-keyboard/badge.svg\" alt=\"Documentation Status\"></a>\r\n </p>\r\n</div>\r\n\r\n## 📦 Installation & Usage\r\nYou can use simple-keyboard as a `<script>` tag from a CDN, or install it from npm.\r\n \r\nCheck out the [Getting Started](https://simple-keyboard.com/getting-started) docs to begin.\r\n\r\n## 📖 Documentation\r\nCheck out the [simple-keyboard documentation](https://simple-keyboard.com/documentation) site.\r\n\r\nFeel free to browse the [Q&A / Use-cases](https://simple-keyboard.com/qa-use-cases/) page for advanced use-cases.\r\n\r\n## 🚀 Demo\r\n\r\n[https://simple-keyboard.com/demo](https://simple-keyboard.com/demo)\r\n\r\n\r\n### To run demo on your own computer\r\n\r\n* Clone this repository\r\n* `npm install`\r\n* `npm start`\r\n* Visit [http://localhost:3000/](http://localhost:3000/)\r\n\r\n### Other versions\r\n\r\n* ReactJS - [react-simple-keyboard](https://github.com/hodgef/react-simple-keyboard)\r\n\r\n### Questions?\r\n\r\n<a href=\"http://franciscohodge.com/simple-keyboard/chat/join\" title=\"Join our Discord chat\" target=\"_blank\"><img src=\"https://franciscohodge.com/project-pages/simple-keyboard/images/discord.png\" align=\"center\" width=\"200\"></a>\r\n\r\n## ✅ Contributing\r\n\r\nPR's and issues are welcome. Feel free to submit any issues you have at:\r\n[https://github.com/hodgef/simple-keyboard/issues](https://github.com/hodgef/simple-keyboard/issues)\r\n" ,
2018-10-25 06:18:24 +08:00
"longname" : "X:\\Dev\\simple-keyboard\\README.md" ,
"name" : "./README.md" ,
"static" : true ,
"access" : "public"
} ,
{
"kind" : "packageJSON" ,
2018-11-06 06:31:11 +08:00
"content" : "{\r\n \"name\": \"simple-keyboard\",\r\n \"version\": \"2.7.11\",\r\n \"description\": \"On-screen Javascript Virtual Keyboard\",\r\n \"main\": \"build/index.js\",\r\n \"scripts\": {\r\n \"start\": \"node scripts/start.js\",\r\n \"build\": \"node scripts/build.js\",\r\n \"demo\": \"node scripts/demo.js\",\r\n \"test\": \"node scripts/test.js --env=jsdom\",\r\n \"postinstall\": \"node bin/postinstall\",\r\n \"prepublish\": \"npm run build\",\r\n \"docs\": \"esdoc\"\r\n },\r\n \"repository\": {\r\n \"type\": \"git\",\r\n \"url\": \"https://github.com/hodgef/simple-keyboard\"\r\n },\r\n \"author\": \"Francisco Hodge <hello@franciscohodge.com> (https://github.com/hodgef)\",\r\n \"bugs\": {\r\n \"url\": \"https://github.com/hodgef/simple-keyboard/issues\"\r\n },\r\n \"homepage\": \"https://virtual-keyboard.js.org/\",\r\n \"keywords\": [\r\n \"javascript\",\r\n \"es6\",\r\n \"digital\",\r\n \"keyboard\",\r\n \"onscreen\",\r\n \"virtual\",\r\n \"screen-keyboard\",\r\n \"component\",\r\n \"virtual-keyboard\",\r\n \"touchscreen\",\r\n \"touch-screen\",\r\n \"kiosk\",\r\n \"osk\"\r\n ],\r\n \"license\": \"MIT\",\r\n \"dependencies\": {},\r\n \"devDependencies\": {\r\n \"autoprefixer\": \"9.3.1\",\r\n \"babel-core\": \"^6.26.3\",\r\n \"babel-eslint\": \"7.2.3\",\r\n \"babel-jest\": \"20.0.3\",\r\n \"babel-loader\": \"7.1.2\",\r\n \"babel-preset-react-app\": \"^3.1.2\",\r\n \"babel-runtime\": \"6.26.0\",\r\n \"case-sensitive-paths-webpack-plugin\": \"2.1.1\",\r\n \"chalk\": \"1.1.3\",\r\n \"copy-webpack-plugin\": \"^4.3.1\",\r\n \"css-loader\": \"0.28.7\",\r\n \"dotenv\": \"4.0.0\",\r\n \"esdoc\": \"^1.1.0\",\r\n \"esdoc-ecmascript-proposal-plugin\": \"^1.0.0\",\r\n \"esdoc-standard-plugin\": \"^1.0.0\",\r\n \"eslint\": \"4.10.0\",\r\n \"eslint-config-react-app\": \"^2.0.1\",\r\n \"eslint-loader\": \"1.9.0\",\r\n \"eslint-plugin-flowtype\": \"2.39.1\",\r\n \"eslint-plugin-import\": \"2.8.0\",\r\n \"eslint-plugin-jsx-a11y\": \"5.1.1\",\r\n \"eslint-plugin-react\": \"7.4.0\",\r\n \"extract-text-webpack-plugin\": \"3.0.2\",\r\n \"file-loader\": \"1.1.5\",\r\n \"fs-extra\": \"3.0.1\",\r\n \"html-webpack-plugin\": \"2.29.0\",\r\n \"istanbul\": \"^0.4.5\",\r\n \"istanbul-api\": \"^2.0.6\",\r\n \"istanbul-reports\": \"^2.0.1\",\r\n \"jest\": \"20.0.4\",\r\n \"object-assign\": \"4.1.1\",\r\n \"postcss-flexbugs-fixes\": \"3.2.0\",\r\n \"postcss-loader\": \"2.0.8\",\r\n \"promise\": \"8.0.1\",\r\n \"prop-types\": \"^15.6.1\",\r\n \"raf\": \"3.4.0\",\r\n \"react\": \"^16.2.0\",\r\n \"react-dev-utils\": \"^4.2.2\",\r\n \"react-dom\": \"^16.2.0\",\r\n \"style-loader\": \"0.19.0\",\r\n \"sw-precache-webpack-plugin\": \"0.11.5\",\r\n \"url-loader\": \"0.6.2\",\r\n \"webpack\": \"3.8.1\",\r\n \"webpack-dev-server\": \"2.9.4\",\r\n \"webpack-manifest-plugin\": \"1.3.2\",\r\n \"whatwg-fetch\": \"2.0.3\"\r\n },\r\n \"jest\": {\r\n \"collectCoverageFrom\": [\r\n \"src/**/*.{js,jsx,mjs}\",\r\n \"!**/tests/**\"\r\n ],\r\n \"setupFiles\": [\r\n \"<rootDir>/config/polyfills.js\"\r\n ],\r\n \"testMatch\": [\r\n \"<rootDir>/src/**/__tests__/**/*.{js,jsx,mjs}\",\r\n \"<rootDir>/src/**/?(*.)(spec|test).{js,jsx,mjs}\"\r\n ],\r\n \"testEnvironment\": \"node\",\r\n \"testURL\": \"http://localhost\",\r\n \"transform\": {\r\n \"^.+\\\\.(js|jsx|mjs)$\": \"<rootDir>/node_modules/babel-jest\",\r\n \"^.+\\\\.css$\": \"<rootDir>/config/jest/cssTransform.js\",\r\n \"^(?!.*\\\\.(js|jsx|mjs|css|json)$)\": \"<rootDir>/config/jest/fileTransform.js\"\r\n },\r\n \"transformIgnorePatterns\": [\r\n \"[/\\\\\\\\]node_modules[/\\\\\\\\].+\\\\.(js|jsx|mjs)$\"\r\n ],\r\n \"moduleNameMapper\": {\r\n \"^react-native$\": \"react-native-web\"\r\n },\r\n \"moduleFileExtensions\": [\r\n \"web.js\",\r\n \"mjs\",\r\n \"js\",\r\n \"json\" , \
2018-10-25 06:18:24 +08:00
"longname" : "X:\\Dev\\simple-keyboard\\package.json" ,
"name" : "package.json" ,
"static" : true ,
"access" : "public"
}
]