ngx-touch-keyboard-pn
Version:
Virtual Keyboard for Angular applications
1 lines • 143 kB
Source Map (JSON)
{"version":3,"file":"ngx-touch-keyboard-pn.mjs","sources":["../../../projects/ngx-touch-keyboard/src/lib/Locale/constants.ts","../../../projects/ngx-touch-keyboard/src/lib/Locale/en-GB/index.ts","../../../projects/ngx-touch-keyboard/src/lib/Locale/en-US/index.ts","../../../projects/ngx-touch-keyboard/src/lib/Locale/fa-IR/index.ts","../../../projects/ngx-touch-keyboard/src/lib/Locale/he-IL/index.ts","../../../projects/ngx-touch-keyboard/src/lib/Locale/ka-GE/index.ts","../../../projects/ngx-touch-keyboard/src/lib/Locale/ru-RU/index.ts","../../../projects/ngx-touch-keyboard/src/lib/Locale/sv-SE/index.ts","../../../projects/ngx-touch-keyboard/src/lib/ngx-touch-keyboard.constants.ts","../../../projects/ngx-touch-keyboard/src/lib/ngx-touch-keyboard.component.ts","../../../projects/ngx-touch-keyboard/src/lib/ngx-touch-keyboard.component.html","../../../projects/ngx-touch-keyboard/src/lib/ngx-touch-keyboard.directive.ts","../../../projects/ngx-touch-keyboard/src/lib/ngx-touch-keyboard.module.ts","../../../projects/ngx-touch-keyboard/src/public-api.ts","../../../projects/ngx-touch-keyboard/src/ngx-touch-keyboard-pn.ts"],"sourcesContent":["/**\n * A collection of constants representing special function buttons for a touch keyboard.\n * Each constant is a string that corresponds to a specific keyboard action.\n */\nexport const fnButton = {\n DONE: `{done}`,\n ENTER: `{enter}`,\n SHIFT: `{shift}`,\n BACKSPACE: `{backspace}`,\n LANGUAGE: `{language}`,\n SPACE: `{space}`,\n TAB: `{tab}`,\n};\n\n/**\n * An object containing SVG icons for various keyboard functions.\n */\nexport const fnDisplay = {\n DONE: `<svg xmlns=\"http://www.w3.org/2000/svg\" height=\"20\" width=\"20\" viewBox=\"0 0 24 24\"><path d=\"m12 15-5-5h10Z\"/></svg>`,\n ENTER: `<svg xmlns=\"http://www.w3.org/2000/svg\" height=\"20\" width=\"20\" viewBox=\"0 0 24 24\"><path d=\"m9 18-6-6 6-6 1.4 1.4L6.8 11H19V7h2v6H6.8l3.6 3.6Z\"/></svg>`,\n SHIFT: `<svg xmlns=\"http://www.w3.org/2000/svg\" height=\"20\" width=\"20\" viewBox=\"0 0 24 24\"><path d=\"M10.8796773,2.4676627 C10.7983669,2.53542133 10.7233714,2.61041687 10.6556128,2.69172724 L2.79065437,12.1296773 C2.17191723,12.8721619 2.27223434,13.9756501 3.01471891,14.5943872 L3.15432027,14.6993778 C3.44275103,14.8945506 3.78413686,15 4.13504161,15 L6.999,15 L7,20.25 C7,21.2164983 7.78350169,22 8.75,22 L15.25,22 L15.3935272,21.9941988 C16.2928897,21.9211923 17,21.1681734 17,20.25 L16.999,15 L19.8649584,15 C20.8314567,15 21.6149584,14.2164983 21.6149584,13.25 C21.6149584,12.8406111 21.47143,12.4441786 21.2093456,12.1296773 L13.3443872,2.69172724 C12.7600244,1.99049181 11.7432755,1.8620539 11.0066223,2.37118457 L10.8796773,2.4676627 Z M12.1920553,3.65200384 L20.0570137,13.0899539 C20.0944543,13.1348827 20.1149584,13.1915159 20.1149584,13.25 C20.1149584,13.3880712 20.0030296,13.5 19.8649584,13.5 L16.25,13.5 C15.8357864,13.5 15.5,13.8357864 15.5,14.25 L15.5,20.25 C15.5,20.3880712 15.3880712,20.5 15.25,20.5 L8.75,20.5 C8.61192881,20.5 8.5,20.3880712 8.5,20.25 L8.5,14.25 C8.5,13.8357864 8.16421356,13.5 7.75,13.5 L4.13504161,13.5 C4.07655749,13.5 4.01992426,13.4794959 3.97499551,13.4420553 C3.86892629,13.3536643 3.85459527,13.1960231 3.94298629,13.0899539 L11.8079447,3.65200384 C11.8176245,3.64038807 11.8283381,3.62967442 11.8399539,3.61999462 C11.9460231,3.5316036 12.1036643,3.54593461 12.1920553,3.65200384 Z\"></path></svg>`,\n BACKSPACE: `<svg xmlns=\"http://www.w3.org/2000/svg\" height=\"20\" width=\"20\" viewBox=\"0 0 24 24\"><path d=\"M18.75,4 C20.4830315,4 21.8992459,5.35645477 21.9948552,7.06557609 L22,7.25 L22,16.75 C22,18.4830315 20.6435452,19.8992459 18.9344239,19.9948552 L18.75,20 L10.2488122,20 C9.48467584,20 8.74731983,19.7308489 8.16441163,19.243553 L8.00936186,19.1052839 L3.01367221,14.3552839 C1.71288481,13.1184697 1.66102433,11.0613371 2.89783857,9.76054971 L3.01367221,9.64471607 L8.00936186,4.89471607 C8.56313355,4.36817906 9.28295917,4.05514987 10.0411712,4.00663485 L10.2488122,4 L18.75,4 Z M18.75,5.5 L10.2488122,5.5 C9.85605678,5.5 9.47644043,5.63205173 9.16975262,5.87226779 L9.04295431,5.98177019 L4.04726465,10.7317702 L3.98489269,10.7941421 C3.3580909,11.4533647 3.34595643,12.473346 3.93064574,13.1462921 L4.04726465,13.2682298 L9.04295431,18.0182298 C9.32758521,18.2888625 9.69368599,18.4547433 10.0814672,18.4919848 L10.2488122,18.5 L18.75,18.5 C19.6681734,18.5 20.4211923,17.7928897 20.4941988,16.8935272 L20.5,16.75 L20.5,7.25 C20.5,6.3318266 19.7928897,5.57880766 18.8935272,5.5058012 L18.75,5.5 Z M11.4462117,8.39705176 L11.5303301,8.46966991 L14.000116,10.939 L16.4696699,8.46966991 C16.7625631,8.1767767 17.2374369,8.1767767 17.5303301,8.46966991 C17.7965966,8.73593648 17.8208027,9.15260016 17.6029482,9.44621165 L17.5303301,9.53033009 L15.061116,12 L17.5303301,14.4696699 C17.8232233,14.7625631 17.8232233,15.2374369 17.5303301,15.5303301 C17.2640635,15.7965966 16.8473998,15.8208027 16.5537883,15.6029482 L16.4696699,15.5303301 L14.000116,13.061 L11.5303301,15.5303301 C11.2374369,15.8232233 10.7625631,15.8232233 10.4696699,15.5303301 C10.2034034,15.2640635 10.1791973,14.8473998 10.3970518,14.5537883 L10.4696699,14.4696699 L12.939116,12 L10.4696699,9.53033009 C10.1767767,9.23743687 10.1767767,8.76256313 10.4696699,8.46966991 C10.7359365,8.20340335 11.1526002,8.1791973 11.4462117,8.39705176 Z\"></path></svg>`,\n LANGUAGE: `<svg xmlns=\"http://www.w3.org/2000/svg\" height=\"20\" width=\"20\" viewBox=\"0 0 24 24\"><path d=\"M12 22q-2.05 0-3.875-.788-1.825-.787-3.187-2.15-1.363-1.362-2.15-3.187Q2 14.05 2 12q0-2.075.788-3.887.787-1.813 2.15-3.175Q6.3 3.575 8.125 2.787 9.95 2 12 2q2.075 0 3.887.787 1.813.788 3.175 2.151 1.363 1.362 2.15 3.175Q22 9.925 22 12q0 2.05-.788 3.875-.787 1.825-2.15 3.187-1.362 1.363-3.175 2.15Q14.075 22 12 22Zm0-2.05q.65-.9 1.125-1.875T13.9 16h-3.8q.3 1.1.775 2.075.475.975 1.125 1.875Zm-2.6-.4q-.45-.825-.787-1.713Q8.275 16.95 8.05 16H5.1q.725 1.25 1.812 2.175Q8 19.1 9.4 19.55Zm5.2 0q1.4-.45 2.487-1.375Q18.175 17.25 18.9 16h-2.95q-.225.95-.562 1.837-.338.888-.788 1.713ZM4.25 14h3.4q-.075-.5-.113-.988Q7.5 12.525 7.5 12t.037-1.012q.038-.488.113-.988h-3.4q-.125.5-.188.988Q4 11.475 4 12t.062 1.012q.063.488.188.988Zm5.4 0h4.7q.075-.5.113-.988.037-.487.037-1.012t-.037-1.012q-.038-.488-.113-.988h-4.7q-.075.5-.112.988Q9.5 11.475 9.5 12t.038 1.012q.037.488.112.988Zm6.7 0h3.4q.125-.5.188-.988Q20 12.525 20 12t-.062-1.012q-.063-.488-.188-.988h-3.4q.075.5.112.988.038.487.038 1.012t-.038 1.012q-.037.488-.112.988Zm-.4-6h2.95q-.725-1.25-1.813-2.175Q16 4.9 14.6 4.45q.45.825.788 1.712.337.888.562 1.838ZM10.1 8h3.8q-.3-1.1-.775-2.075Q12.65 4.95 12 4.05q-.65.9-1.125 1.875T10.1 8Zm-5 0h2.95q.225-.95.563-1.838.337-.887.787-1.712Q8 4.9 6.912 5.825 5.825 6.75 5.1 8Z\"/></svg>`,\n SPACE: ` `,\n TAB: `<svg xmlns=\"http://www.w3.org/2000/svg\" height=\"20\" width=\"20\" viewBox=\"0 0 24 24\"><path d=\"m12 18-1.425-1.4 3.6-3.6H2v-2h12.175L10.6 7.4 12 6l6 6Zm8 0V6h2v12Z\"/></svg>`,\n};\n","import { Layout, Display, Locale } from '../type';\nimport { fnDisplay } from '../constants';\n\nconst layouts: Layout = {\n text_alphabetic: [\n ['q', 'w', 'e', 'r', 't', 'y', 'u', 'i', 'o', 'p'],\n ['a', 's', 'd', 'f', 'g', 'h', 'j', 'k', 'l'],\n ['{shift}', 'z', 'x', 'c', 'v', 'b', 'n', 'm', '{backspace}'],\n ['{numeric}', '{space}', '{done}'],\n ],\n text_shift: [\n ['Q', 'W', 'E', 'R', 'T', 'Y', 'U', 'I', 'O', 'P'],\n ['A', 'S', 'D', 'F', 'G', 'H', 'J', 'K', 'L'],\n ['{shift}', 'Z', 'X', 'C', 'V', 'B', 'N', 'M', '{backspace}'],\n ['{numeric}', '{space}', '{done}'],\n ],\n text_numeric: [\n ['1', '2', '3', '4', '5', '6', '7', '8', '9', '0'],\n ['-', '/', ':', ';', '(', ')', '$', '&', '@', '\"'],\n ['{symbolic}', '.', ',', '?', '!', \"'\", '{backspace}'],\n ['{alphabetic}', '{space}', '{done}'],\n ],\n text_symbolic: [\n ['[', ']', '{', '}', '#', '%', '^', '*', '+', '='],\n ['_', '\\\\', '|', '~', '<', '>', '€', '£', '¥', '•'],\n ['{numeric}', '.', ',', '?', '!', \"'\", '{backspace}'],\n ['{alphabetic}', '{space}', '{done}'],\n ],\n search_alphabetic: [\n ['q', 'w', 'e', 'r', 't', 'y', 'u', 'i', 'o', 'p'],\n ['a', 's', 'd', 'f', 'g', 'h', 'j', 'k', 'l'],\n ['{shift}', 'z', 'x', 'c', 'v', 'b', 'n', 'm', '{backspace}'],\n ['{numeric}', '{space}', '{done}'],\n ],\n search_shift: [\n ['Q', 'W', 'E', 'R', 'T', 'Y', 'U', 'I', 'O', 'P'],\n ['A', 'S', 'D', 'F', 'G', 'H', 'J', 'K', 'L'],\n ['{shift}', 'Z', 'X', 'C', 'V', 'B', 'N', 'M', '{backspace}'],\n ['{numeric}', '{space}', '{done}'],\n ],\n search_numeric: [\n ['1', '2', '3', '4', '5', '6', '7', '8', '9', '0'],\n ['-', '/', ':', ';', '(', ')', '$', '&', '@', '\"'],\n ['{symbolic}', '.', ',', '?', '!', \"'\", '{backspace}'],\n ['{alphabetic}', '{space}', '{done}'],\n ],\n search_symbolic: [\n ['[', ']', '{', '}', '#', '%', '^', '*', '+', '='],\n ['_', '\\\\', '|', '~', '<', '>', '€', '£', '¥', '•'],\n ['{numeric}', '.', ',', '?', '!', \"'\", '{backspace}'],\n ['{alphabetic}', '{space}', '{done}'],\n ],\n email_alphabetic: [\n ['q', 'w', 'e', 'r', 't', 'y', 'u', 'i', 'o', 'p'],\n ['a', 's', 'd', 'f', 'g', 'h', 'j', 'k', 'l'],\n ['{shift}', 'z', 'x', 'c', 'v', 'b', 'n', 'm', '{backspace}'],\n ['{numeric}', '@', '{space}', '.', '{done}'],\n ],\n email_shift: [\n ['Q', 'W', 'E', 'R', 'T', 'Y', 'U', 'I', 'O', 'P'],\n ['A', 'S', 'D', 'F', 'G', 'H', 'J', 'K', 'L'],\n ['{shift}', 'Z', 'X', 'C', 'V', 'B', 'N', 'M', '{backspace}'],\n ['{numeric}', '@', '{space}', '.', '{done}'],\n ],\n email_numeric: [\n ['1', '2', '3', '4', '5', '6', '7', '8', '9', '0'],\n ['$', '!', '~', '&', '=', '#', '[', ']'],\n ['{symbolic}', '.', '_', '-', '+', '{backspace}'],\n ['{alphabetic}', '@', '{space}', '.', '{done}'],\n ],\n email_symbolic: [\n ['`', '|', '{', '}', '?', '%', '^', '*', '/', \"'\"],\n ['$', '!', '~', '&', '=', '#', '[', ']'],\n ['{numeric}', '.', '_', '-', '+', '{backspace}'],\n ['{alphabetic}', '@', '{space}', '.', '{done}'],\n ],\n url_alphabetic: [\n ['q', 'w', 'e', 'r', 't', 'y', 'u', 'i', 'o', 'p'],\n ['a', 's', 'd', 'f', 'g', 'h', 'j', 'k', 'l'],\n ['{shift}', 'z', 'x', 'c', 'v', 'b', 'n', 'm', '{backspace}'],\n ['{numeric}', '/', '.com', '.', '{done}'],\n ],\n url_shift: [\n ['Q', 'W', 'E', 'R', 'T', 'Y', 'U', 'I', 'O', 'P'],\n ['A', 'S', 'D', 'F', 'G', 'H', 'J', 'K', 'L'],\n ['{shift}', 'Z', 'X', 'C', 'V', 'B', 'N', 'M', '{backspace}'],\n ['{numeric}', '/', '.com', '.', '{done}'],\n ],\n url_numeric: [\n ['1', '2', '3', '4', '5', '6', '7', '8', '9', '0'],\n ['@', '&', '%', '?', ',', '=', '[', ']'],\n ['{symbolic}', '_', ':', '-', '+', '{backspace}'],\n ['{alphabetic}', '/', '.com', '.', '{done}'],\n ],\n url_symbolic: [\n ['1', '2', '3', '4', '5', '6', '7', '8', '9', '0'],\n ['*', '$', '#', '!', \"'\", '^', '[', ']'],\n ['{numeric}', '~', ';', '(', ')', '{backspace}'],\n ['{alphabetic}', '/', '.com', '.', '{done}'],\n ],\n numeric_default: [\n ['1', '2', '3'],\n ['4', '5', '6'],\n ['7', '8', '9'],\n ['0', '{backspace}'],\n ],\n decimal_default: [\n ['1', '2', '3'],\n ['4', '5', '6'],\n ['7', '8', '9'],\n ['.', '0', '{backspace}'],\n ],\n tel_default: [\n ['1', '2', '3', '*'],\n ['4', '5', '6', '#'],\n ['7', '8', '9', '+'],\n ['0', '{backspace}'],\n ],\n};\n\nconst display: Display = {\n '{done}': fnDisplay.DONE,\n '{shift}': fnDisplay.SHIFT,\n '{backspace}': fnDisplay.BACKSPACE,\n '{space}': fnDisplay.SPACE,\n '{alphabetic}': 'ABC',\n '{numeric}': '123',\n '{symbolic}': '#+=',\n};\n\nconst locale: Locale = {\n code: 'en-GB',\n dir: 'ltr',\n layouts: layouts,\n display: display,\n};\n\nexport default locale;\n","import { Layout, Display, Locale } from '../type';\nimport { fnDisplay } from '../constants';\n\nconst layouts: Layout = {\n text_alphabetic: [\n ['q', 'w', 'e', 'r', 't', 'y', 'u', 'i', 'o', 'p'],\n ['a', 's', 'd', 'f', 'g', 'h', 'j', 'k', 'l'],\n ['{shift}', 'z', 'x', 'c', 'v', 'b', 'n', 'm', '{backspace}'],\n ['{numeric}', '{space}', '{done}', '{enter}'],\n ],\n text_shift: [\n ['Q', 'W', 'E', 'R', 'T', 'Y', 'U', 'I', 'O', 'P'],\n ['A', 'S', 'D', 'F', 'G', 'H', 'J', 'K', 'L'],\n ['{shift}', 'Z', 'X', 'C', 'V', 'B', 'N', 'M', '{backspace}'],\n ['{numeric}', '{space}', '{done}', '{enter}'],\n ],\n text_numeric: [\n ['1', '2', '3', '4', '5', '6', '7', '8', '9', '0'],\n ['-', '/', ':', ';', '(', ')', '$', '&', '@', '\"'],\n ['{symbolic}', '.', ',', '?', '!', \"'\", '{backspace}'],\n ['{alphabetic}', '{space}', '{done}', '{enter}'],\n ],\n text_symbolic: [\n ['[', ']', '{', '}', '#', '%', '^', '*', '+', '='],\n ['_', '\\\\', '|', '~', '<', '>', '€', '£', '¥', '•'],\n ['{numeric}', '.', ',', '?', '!', \"'\", '{backspace}'],\n ['{alphabetic}', '{space}', '{done}', '{enter}'],\n ],\n search_alphabetic: [\n ['q', 'w', 'e', 'r', 't', 'y', 'u', 'i', 'o', 'p'],\n ['a', 's', 'd', 'f', 'g', 'h', 'j', 'k', 'l'],\n ['{shift}', 'z', 'x', 'c', 'v', 'b', 'n', 'm', '{backspace}'],\n ['{numeric}', '{space}', '{done}', '{enter}'],\n ],\n search_shift: [\n ['Q', 'W', 'E', 'R', 'T', 'Y', 'U', 'I', 'O', 'P'],\n ['A', 'S', 'D', 'F', 'G', 'H', 'J', 'K', 'L'],\n ['{shift}', 'Z', 'X', 'C', 'V', 'B', 'N', 'M', '{backspace}'],\n ['{numeric}', '{space}', '{done}', '{enter}'],\n ],\n search_numeric: [\n ['1', '2', '3', '4', '5', '6', '7', '8', '9', '0'],\n ['-', '/', ':', ';', '(', ')', '$', '&', '@', '\"'],\n ['{symbolic}', '.', ',', '?', '!', \"'\", '{backspace}'],\n ['{alphabetic}', '{space}', '{done}', '{enter}'],\n ],\n search_symbolic: [\n ['[', ']', '{', '}', '#', '%', '^', '*', '+', '='],\n ['_', '\\\\', '|', '~', '<', '>', '€', '£', '¥', '•'],\n ['{numeric}', '.', ',', '?', '!', \"'\", '{backspace}'],\n ['{alphabetic}', '{space}', '{done}', '{enter}'],\n ],\n email_alphabetic: [\n ['q', 'w', 'e', 'r', 't', 'y', 'u', 'i', 'o', 'p'],\n ['a', 's', 'd', 'f', 'g', 'h', 'j', 'k', 'l'],\n ['{shift}', 'z', 'x', 'c', 'v', 'b', 'n', 'm', '{backspace}'],\n ['{numeric}', '@', '{space}', '.', '{done}', '{enter}'],\n ],\n email_shift: [\n ['Q', 'W', 'E', 'R', 'T', 'Y', 'U', 'I', 'O', 'P'],\n ['A', 'S', 'D', 'F', 'G', 'H', 'J', 'K', 'L'],\n ['{shift}', 'Z', 'X', 'C', 'V', 'B', 'N', 'M', '{backspace}'],\n ['{numeric}', '@', '{space}', '.', '{done}', '{enter}'],\n ],\n email_numeric: [\n ['1', '2', '3', '4', '5', '6', '7', '8', '9', '0'],\n ['$', '!', '~', '&', '=', '#', '[', ']'],\n ['{symbolic}', '.', '_', '-', '+', '{backspace}'],\n ['{alphabetic}', '@', '{space}', '.', '{done}', '{enter}'],\n ],\n email_symbolic: [\n ['`', '|', '{', '}', '?', '%', '^', '*', '/', \"'\"],\n ['$', '!', '~', '&', '=', '#', '[', ']'],\n ['{numeric}', '.', '_', '-', '+', '{backspace}'],\n ['{alphabetic}', '@', '{space}', '.', '{done}', '{enter}'],\n ],\n url_alphabetic: [\n ['q', 'w', 'e', 'r', 't', 'y', 'u', 'i', 'o', 'p'],\n ['a', 's', 'd', 'f', 'g', 'h', 'j', 'k', 'l'],\n ['{shift}', 'z', 'x', 'c', 'v', 'b', 'n', 'm', '{backspace}'],\n ['{numeric}', '/', '.com', '.', '{done}', '{enter}'],\n ],\n url_shift: [\n ['Q', 'W', 'E', 'R', 'T', 'Y', 'U', 'I', 'O', 'P'],\n ['A', 'S', 'D', 'F', 'G', 'H', 'J', 'K', 'L'],\n ['{shift}', 'Z', 'X', 'C', 'V', 'B', 'N', 'M', '{backspace}'],\n ['{numeric}', '/', '.com', '.', '{done}', '{enter}'],\n ],\n url_numeric: [\n ['1', '2', '3', '4', '5', '6', '7', '8', '9', '0'],\n ['@', '&', '%', '?', ',', '=', '[', ']'],\n ['{symbolic}', '_', ':', '-', '+', '{backspace}'],\n ['{alphabetic}', '/', '.com', '.', '{done}', '{enter}'],\n ],\n url_symbolic: [\n ['1', '2', '3', '4', '5', '6', '7', '8', '9', '0'],\n ['*', '$', '#', '!', \"'\", '^', '[', ']'],\n ['{numeric}', '~', ';', '(', ')', '{backspace}'],\n ['{alphabetic}', '/', '.com', '.', '{done}', '{enter}'],\n ],\n numeric_default: [\n ['1', '2', '3'],\n ['4', '5', '6'],\n ['7', '8', '9'],\n ['0', '{backspace}', '{enter}'],\n ],\n decimal_default: [\n ['1', '2', '3'],\n ['4', '5', '6'],\n ['7', '8', '9'],\n ['.', '0', '{backspace}', '{enter}'],\n ],\n tel_default: [\n ['1', '2', '3', '*'],\n ['4', '5', '6', '#'],\n ['7', '8', '9', '+'],\n ['0', '{backspace}', '{enter}'],\n ],\n};\n\nconst display: Display = {\n '{enter}': fnDisplay.ENTER,\n '{done}': fnDisplay.DONE,\n '{shift}': fnDisplay.SHIFT,\n '{backspace}': fnDisplay.BACKSPACE,\n '{space}': fnDisplay.SPACE,\n '{alphabetic}': 'ABC',\n '{numeric}': '123',\n '{symbolic}': '#+=',\n};\n\nconst locale: Locale = {\n code: 'en-US',\n dir: 'ltr',\n layouts: layouts,\n display: display,\n};\n\nexport default locale;\n","import { Layout, Display, Locale } from '../type';\nimport { fnDisplay } from '../constants';\n\nconst layouts: Layout = {\n text_alphabetic: [\n ['ض', 'ص', 'ق', 'ف', 'غ', 'ع', 'ه', 'خ', 'ح', 'ج', 'چ'],\n ['ش', 'س', 'ی', 'ب', 'ل', 'ا', 'ت', 'ن', 'م', 'ک', 'گ'],\n ['ظ', 'ط', 'ژ', 'ز', 'ر', 'ذ', 'د', 'پ', 'و', 'ث', '{backspace}'],\n ['{numeric}', '{space}', '{done}'],\n ],\n text_numeric: [\n ['۱', '۲', '۳', '۴', '۵', '۶', '۷', '۸', '۹', '۰'],\n ['-', '/', ':', '؛', ')', '(', '$', '@', '»', '«'],\n ['{symbolic}', '.', '،', '؟', '!', '٫', '{backspace}'],\n ['{alphabetic}', '{space}', '{done}'],\n ],\n text_symbolic: [\n [']', '[', '}', '{', '#', '%', '^', '*', '+', '='],\n ['_', '\\\\', '|', '~', '>', '<', '&', '•', '‘', '“'],\n ['{numeric}', '.', '،', '؟', '!', '٬', '{backspace}'],\n ['{alphabetic}', '{space}', '{done}'],\n ],\n search_alphabetic: [\n ['ض', 'ص', 'ق', 'ف', 'غ', 'ع', 'ه', 'خ', 'ح', 'ج', 'چ'],\n ['ش', 'س', 'ی', 'ب', 'ل', 'ا', 'ت', 'ن', 'م', 'ک', 'گ'],\n ['ظ', 'ط', 'ژ', 'ز', 'ر', 'ذ', 'د', 'پ', 'و', 'ث', '{backspace}'],\n ['{numeric}', '{space}', '{done}'],\n ],\n search_numeric: [\n ['۱', '۲', '۳', '۴', '۵', '۶', '۷', '۸', '۹', '۰'],\n ['-', '/', ':', '؛', ')', '(', '$', '@', '»', '«'],\n ['{symbolic}', '.', '،', '؟', '!', '٫', '{backspace}'],\n ['{alphabetic}', '{space}', '{done}'],\n ],\n search_symbolic: [\n [']', '[', '}', '{', '#', '%', '^', '*', '+', '='],\n ['_', '\\\\', '|', '~', '>', '<', '&', '•', '‘', '“'],\n ['{numeric}', '.', '،', '؟', '!', '٬', '{backspace}'],\n ['{alphabetic}', '{space}', '{done}'],\n ],\n email_alphabetic: [\n ['ض', 'ص', 'ق', 'ف', 'غ', 'ع', 'ه', 'خ', 'ح', 'ج', 'چ'],\n ['ش', 'س', 'ی', 'ب', 'ل', 'ا', 'ت', 'ن', 'م', 'ک', 'گ'],\n ['ظ', 'ط', 'ژ', 'ز', 'ر', 'ذ', 'د', 'پ', 'و', 'ث', '{backspace}'],\n ['{numeric}', '@', '{space}', '.', '{done}'],\n ],\n email_numeric: [\n ['۱', '۲', '۳', '۴', '۵', '۶', '۷', '۸', '۹', '۰'],\n ['$', '!', '~', '&', '=', '#', ']', '['],\n ['{symbolic}', '.', '_', '-', '+', '{backspace}'],\n ['{alphabetic}', '@', '{space}', '.', '{done}'],\n ],\n email_symbolic: [\n ['`', '|', '{', '}', '?', '%', '^', '*', '/', \"'\"],\n ['$', '!', '~', '&', '=', '#', ']', '['],\n ['{numeric}', '.', '_', '-', '+', '{backspace}'],\n ['{alphabetic}', '@', '{space}', '.', '{done}'],\n ],\n url_alphabetic: [\n ['ض', 'ص', 'ق', 'ف', 'غ', 'ع', 'ه', 'خ', 'ح', 'ج', 'چ'],\n ['ش', 'س', 'ی', 'ب', 'ل', 'ا', 'ت', 'ن', 'م', 'ک', 'گ'],\n ['ظ', 'ط', 'ژ', 'ز', 'ر', 'ذ', 'د', 'پ', 'و', 'ث', '{backspace}'],\n ['{numeric}', '/', '.com', '.', '{done}'],\n ],\n url_numeric: [\n ['۱', '۲', '۳', '۴', '۵', '۶', '۷', '۸', '۹', '۰'],\n ['@', '&', '%', '?', ',', '=', ']', '['],\n ['{symbolic}', '_', ':', '-', '+', '{backspace}'],\n ['{alphabetic}', '/', '.com', '.', '{done}'],\n ],\n url_symbolic: [\n ['۱', '۲', '۳', '۴', '۵', '۶', '۷', '۸', '۹', '۰'],\n ['*', '$', '#', '!', \"'\", '^', ']', '['],\n ['{numeric}', '~', ';', ')', '(', '{backspace}'],\n ['{alphabetic}', '/', '.com', '.', '{done}'],\n ],\n numeric_default: [\n ['۱', '۲', '۳'],\n ['۴', '۵', '۶'],\n ['۷', '۸', '۹'],\n ['۰', '{backspace}'],\n ],\n decimal_default: [\n ['۱', '۲', '۳'],\n ['۴', '۵', '۶'],\n ['۷', '۸', '۹'],\n ['٫', '۰', '{backspace}'],\n ],\n tel_default: [\n ['۱', '۲', '۳', '*'],\n ['۴', '۵', '۶', '#'],\n ['۷', '۸', '۹', '+'],\n ['۰', '{backspace}'],\n ],\n};\n\nconst display: Display = {\n '{done}': fnDisplay.DONE,\n '{backspace}': fnDisplay.BACKSPACE,\n '{space}': fnDisplay.SPACE,\n '{alphabetic}': 'ابپ',\n '{numeric}': '۱۲۳',\n '{symbolic}': '=+#',\n};\n\nconst locale: Locale = {\n code: 'fa-IR',\n dir: 'rtl',\n layouts: layouts,\n display: display,\n};\n\nexport default locale;\n","import { Layout, Display, Locale } from '../type';\nimport { fnDisplay } from '../constants';\n\nconst layouts: Layout = {\n text_alphabetic: [\n ['ק', 'ר', 'א', 'ט', 'ו', 'ן', 'ם', 'פ'],\n ['ש', 'ד', 'ג', 'כ', 'ע', 'י', 'ח', 'ל', 'ך', 'ף'],\n ['ז', 'ס', 'ב', 'ה', 'נ', 'מ', 'צ', 'ת', 'ץ', '{backspace}'],\n ['{numeric}', '{space}', '{done}'],\n ],\n text_numeric: [\n ['1', '2', '3', '4', '5', '6', '7', '8', '9', '0'],\n ['-', '/', ':', ';', '(', ')', '₪', '@', '\"', \"'\"],\n ['{symbolic}', '.', ',', '?', '!', '{backspace}'],\n ['{alphabetic}', '{space}', '{done}'],\n ],\n text_symbolic: [\n ['[', ']', '{', '}', '#', '%', '^', '*', '+', '='],\n ['_', '\\\\', '|', '~', '<', '>', '€', '$', '&', '•'],\n ['{numeric}', '.', ',', '?', '!', '{backspace}'],\n ['{alphabetic}', '{space}', '{done}'],\n ],\n search_alphabetic: [\n ['ק', 'ר', 'א', 'ט', 'ו', 'ן', 'ם', 'פ'],\n ['ש', 'ד', 'ג', 'כ', 'ע', 'י', 'ח', 'ל', 'ך', 'ף'],\n ['ז', 'ס', 'ב', 'ה', 'נ', 'מ', 'צ', 'ת', 'ץ', '{backspace}'],\n ['{numeric}', '{space}', '{done}'],\n ],\n search_numeric: [\n ['1', '2', '3', '4', '5', '6', '7', '8', '9', '0'],\n ['-', '/', ':', ';', '(', ')', '₪', '@', '\"', \"'\"],\n ['{symbolic}', '.', ',', '?', '!', '{backspace}'],\n ['{alphabetic}', '{space}', '{done}'],\n ],\n search_symbolic: [\n ['[', ']', '{', '}', '#', '%', '^', '*', '+', '='],\n ['_', '\\\\', '|', '~', '<', '>', '€', '$', '&', '•'],\n ['{numeric}', '.', ',', '?', '!', '{backspace}'],\n ['{alphabetic}', '{space}', '{done}'],\n ],\n email_alphabetic: [\n ['ק', 'ר', 'א', 'ט', 'ו', 'ן', 'ם', 'פ'],\n ['ש', 'ד', 'ג', 'כ', 'ע', 'י', 'ח', 'ל', 'ך', 'ף'],\n ['ז', 'ס', 'ב', 'ה', 'נ', 'מ', 'צ', 'ת', 'ץ', '{backspace}'],\n ['{numeric}', '@', '{space}', '.', '{done}'],\n ],\n email_numeric: [\n ['1', '2', '3', '4', '5', '6', '7', '8', '9', '0'],\n ['₪', '!', '~', '&', '=', '#', ']', '['],\n ['{symbolic}', '.', '_', '-', '+', '{backspace}'],\n ['{alphabetic}', '@', '{space}', '.', '{done}'],\n ],\n email_symbolic: [\n ['`', '|', '{', '}', '?', '%', '^', '*', '/', \"'\"],\n ['₪', '!', '~', '&', '=', '#', ']', '['],\n ['{numeric}', '.', '_', '-', '+', '{backspace}'],\n ['{alphabetic}', '@', '{space}', '.', '{done}'],\n ],\n url_alphabetic: [\n ['ק', 'ר', 'א', 'ט', 'ו', 'ן', 'ם', 'פ'],\n ['ש', 'ד', 'ג', 'כ', 'ע', 'י', 'ח', 'ל', 'ך', 'ף'],\n ['ז', 'ס', 'ב', 'ה', 'נ', 'מ', 'צ', 'ת', 'ץ', '{backspace}'],\n ['{numeric}', '/', '.com', '.', '{done}'],\n ],\n url_numeric: [\n ['1', '2', '3', '4', '5', '6', '7', '8', '9', '0'],\n ['@', '&', '%', '?', ',', '=', ']', '['],\n ['{symbolic}', '_', ':', '-', '+', '{backspace}'],\n ['{alphabetic}', '/', '.com', '.', '{done}'],\n ],\n url_symbolic: [\n ['1', '2', '3', '4', '5', '6', '7', '8', '9', '0'],\n ['*', '₪', '#', '!', \"'\", '^', ']', '['],\n ['{numeric}', '~', ';', ')', '(', '{backspace}'],\n ['{alphabetic}', '/', '.com', '.', '{done}'],\n ],\n numeric_default: [\n ['1', '2', '3'],\n ['4', '5', '6'],\n ['7', '8', '9'],\n ['0', '{backspace}'],\n ],\n decimal_default: [\n ['1', '2', '3'],\n ['4', '5', '6'],\n ['7', '8', '9'],\n ['.', '0', '{backspace}'],\n ],\n tel_default: [\n ['1', '2', '3', '*'],\n ['4', '5', '6', '#'],\n ['7', '8', '9', '+'],\n ['0', '{backspace}'],\n ],\n};\n\nconst display: Display = {\n '{done}': fnDisplay.DONE,\n '{backspace}': fnDisplay.BACKSPACE,\n '{space}': fnDisplay.SPACE,\n '{alphabetic}': 'אבג',\n '{numeric}': '123',\n '{symbolic}': '=+#',\n};\n\nconst locale: Locale = {\n code: 'he-IL',\n dir: 'rtl',\n layouts: layouts,\n display: display,\n};\n\nexport default locale;","import { Layout, Display, Locale } from '../type';\nimport { fnDisplay } from '../constants';\n\nconst layouts: Layout = {\n text_alphabetic: [\n ['ქ', 'წ', 'ე', 'რ', 'ტ', 'ყ', 'უ', 'ი', 'ო', 'პ'],\n ['ა', 'ს', 'დ', 'ფ', 'გ', 'ჰ', 'ჯ', 'კ', 'ლ'],\n ['{shift}', 'ზ', 'ხ', 'ც', 'ვ', 'ბ', 'ნ', 'მ', '{backspace}'],\n ['{numeric}', '{space}', '{done}'],\n ],\n text_shift: [\n ['ქ', 'ჭ', 'ე', 'ღ', 'თ', 'ყ', 'უ', 'ი', 'ო', 'პ'],\n ['ა', 'შ', 'დ', 'ფ', 'გ', 'ჰ', 'ჟ', 'კ', '₾'],\n ['{shift}', 'ძ', 'ხ', 'ჩ', 'ვ', 'ბ', 'ნ', 'მ', '{backspace}'],\n ['{numeric}', '{space}', '{done}'],\n ],\n text_numeric: [\n ['1', '2', '3', '4', '5', '6', '7', '8', '9', '0'],\n ['-', '/', ':', ';', '(', ')', '$', '&', '@', '\"'],\n ['{symbolic}', '.', ',', '?', '!', \"'\", '{backspace}'],\n ['{alphabetic}', '{space}', '{done}'],\n ],\n text_symbolic: [\n ['[', ']', '{', '}', '#', '%', '^', '*', '+', '='],\n ['_', '\\\\', '|', '~', '<', '>', '€', '£', '¥', '•'],\n ['{numeric}', '.', ',', '?', '!', \"'\", '{backspace}'],\n ['{alphabetic}', '{space}', '{done}'],\n ],\n search_alphabetic: [\n ['ქ', 'წ', 'ე', 'რ', 'ტ', 'ყ', 'უ', 'ი', 'ო', 'პ'],\n ['ა', 'ს', 'დ', 'ფ', 'გ', 'ჰ', 'ჯ', 'კ', 'ლ'],\n ['{shift}', 'ზ', 'ხ', 'ც', 'ვ', 'ბ', 'ნ', 'მ', '{backspace}'],\n ['{numeric}', '{space}', '{done}'],\n ],\n search_shift: [\n ['ქ', 'ჭ', 'ე', 'ღ', 'თ', 'ყ', 'უ', 'ი', 'ო', 'პ'],\n ['ა', 'შ', 'დ', 'ფ', 'გ', 'ჰ', 'ჟ', 'კ', '₾'],\n ['{shift}', 'ძ', 'ხ', 'ჩ', 'ვ', 'ბ', 'ნ', 'მ', '{backspace}'],\n ['{numeric}', '{space}', '{done}'],\n ],\n search_numeric: [\n ['1', '2', '3', '4', '5', '6', '7', '8', '9', '0'],\n ['-', '/', ':', ';', '(', ')', '$', '&', '@', '\"'],\n ['{symbolic}', '.', ',', '?', '!', \"'\", '{backspace}'],\n ['{alphabetic}', '{space}', '{done}'],\n ],\n search_symbolic: [\n ['[', ']', '{', '}', '#', '%', '^', '*', '+', '='],\n ['_', '\\\\', '|', '~', '<', '>', '€', '£', '¥', '•'],\n ['{numeric}', '.', ',', '?', '!', \"'\", '{backspace}'],\n ['{alphabetic}', '{space}', '{done}'],\n ],\n email_alphabetic: [\n ['ქ', 'წ', 'ე', 'რ', 'ტ', 'ყ', 'უ', 'ი', 'ო', 'პ'],\n ['ა', 'ს', 'დ', 'ფ', 'გ', 'ჰ', 'ჯ', 'კ', 'ლ'],\n ['{shift}', 'ზ', 'ხ', 'ც', 'ვ', 'ბ', 'ნ', 'მ', '{backspace}'],\n ['{numeric}', '@', '{space}', '.', '{done}'],\n ],\n email_shift: [\n ['ქ', 'ჭ', 'ე', 'ღ', 'თ', 'ყ', 'უ', 'ი', 'ო', 'პ'],\n ['ა', 'შ', 'დ', 'ფ', 'გ', 'ჰ', 'ჟ', 'კ', '₾'],\n ['{shift}', 'ძ', 'ხ', 'ჩ', 'ვ', 'ბ', 'ნ', 'მ', '{backspace}'],\n ['{numeric}', '@', '{space}', '.', '{done}'],\n ],\n email_numeric: [\n ['1', '2', '3', '4', '5', '6', '7', '8', '9', '0'],\n ['$', '!', '~', '&', '=', '#', '[', ']'],\n ['{symbolic}', '.', '_', '-', '+', '{backspace}'],\n ['{alphabetic}', '@', '{space}', '.', '{done}'],\n ],\n email_symbolic: [\n ['`', '|', '{', '}', '?', '%', '^', '*', '/', \"'\"],\n ['$', '!', '~', '&', '=', '#', '[', ']'],\n ['{numeric}', '.', '_', '-', '+', '{backspace}'],\n ['{alphabetic}', '@', '{space}', '.', '{done}'],\n ],\n url_alphabetic: [\n ['ქ', 'წ', 'ე', 'რ', 'ტ', 'ყ', 'უ', 'ი', 'ო', 'პ'],\n ['ა', 'ს', 'დ', 'ფ', 'გ', 'ჰ', 'ჯ', 'კ', 'ლ'],\n ['{shift}', 'ზ', 'ხ', 'ც', 'ვ', 'ბ', 'ნ', 'მ', '{backspace}'],\n ['{numeric}', '/', '.com', '.', '{done}'],\n ],\n url_shift: [\n ['ქ', 'ჭ', 'ე', 'ღ', 'თ', 'ყ', 'უ', 'ი', 'ო', 'პ'],\n ['ა', 'შ', 'დ', 'ფ', 'გ', 'ჰ', 'ჟ', 'კ', '₾'],\n ['{shift}', 'ძ', 'ხ', 'ჩ', 'ვ', 'ბ', 'ნ', 'მ', '{backspace}'],\n ['{numeric}', '/', '.com', '.', '{done}'],\n ],\n url_numeric: [\n ['1', '2', '3', '4', '5', '6', '7', '8', '9', '0'],\n ['@', '&', '%', '?', ',', '=', '[', ']'],\n ['{symbolic}', '_', ':', '-', '+', '{backspace}'],\n ['{alphabetic}', '/', '.com', '.', '{done}'],\n ],\n url_symbolic: [\n ['1', '2', '3', '4', '5', '6', '7', '8', '9', '0'],\n ['*', '$', '#', '!', \"'\", '^', '[', ']'],\n ['{numeric}', '~', ';', '(', ')', '{backspace}'],\n ['{alphabetic}', '/', '.com', '.', '{done}'],\n ],\n numeric_default: [\n ['1', '2', '3'],\n ['4', '5', '6'],\n ['7', '8', '9'],\n ['0', '{backspace}'],\n ],\n decimal_default: [\n ['1', '2', '3'],\n ['4', '5', '6'],\n ['7', '8', '9'],\n ['.', '0', '{backspace}'],\n ],\n tel_default: [\n ['1', '2', '3', '*'],\n ['4', '5', '6', '#'],\n ['7', '8', '9', '+'],\n ['0', '{backspace}'],\n ],\n};\n\nconst display: Display = {\n '{done}': fnDisplay.DONE,\n '{shift}': fnDisplay.SHIFT,\n '{backspace}': fnDisplay.BACKSPACE,\n '{space}': fnDisplay.SPACE,\n '{alphabetic}': 'აბგ',\n '{numeric}': '123',\n '{symbolic}': '#+=',\n};\n\nconst locale: Locale = {\n code: 'ka-GE',\n dir: 'ltr',\n layouts: layouts,\n display: display,\n};\n\nexport default locale;\n","import { Layout, Display, Locale } from '../type';\nimport { fnDisplay } from '../constants';\n\nconst layouts: Layout = {\n text_alphabetic: [\n ['й', 'ц', 'у', 'к', 'е', 'н', 'г', 'ш', 'щ', 'з', 'х', 'ъ'],\n ['ф', 'ы', 'в', 'а', 'п', 'р', 'о', 'л', 'д', 'ж', 'э'],\n ['{shift}', 'я', 'ч', 'с', 'м', 'и', 'т', 'ь', 'б', 'ю', '{backspace}'],\n ['{numeric}', '{space}', '{done}'],\n ],\n text_shift: [\n ['Й', 'Ц', 'У', 'К', 'Е', 'Н', 'Г', 'Ш', 'Щ', 'З', 'Х', 'Ъ'],\n ['Ф', 'Ы', 'В', 'А', 'П', 'Р', 'О', 'Л', 'Д', 'Ж', 'З'],\n ['{shift}', 'Я', 'Ч', 'С', 'М', 'И', 'Т', 'Ь', 'Б', 'Ю', '{backspace}'],\n ['{numeric}', '{space}', '{done}'],\n ],\n text_numeric: [\n ['1', '2', '3', '4', '5', '6', '7', '8', '9', '0'],\n ['-', '/', ':', ';', '(', ')', '$', '&', '@', '\"'],\n ['{symbolic}', '.', ',', '?', '!', \"'\", '{backspace}'],\n ['{alphabetic}', '{space}', '{done}'],\n ],\n text_symbolic: [\n ['[', ']', '{', '}', '#', '%', '^', '*', '+', '='],\n ['_', '\\\\', '|', '~', '<', '>', '€', '£', '¥', '•'],\n ['{numeric}', '.', ',', '?', '!', \"'\", '{backspace}'],\n ['{alphabetic}', '{space}', '{done}'],\n ],\n search_alphabetic: [\n ['й', 'ц', 'у', 'к', 'е', 'н', 'г', 'ш', 'щ', 'з', 'х', 'ъ'],\n ['ф', 'ы', 'в', 'а', 'п', 'р', 'о', 'л', 'д', 'ж', 'э'],\n ['{shift}', 'я', 'ч', 'с', 'м', 'и', 'т', 'ь', 'б', 'ю', '{backspace}'],\n ['{numeric}', '{space}', '{done}'],\n ],\n search_shift: [\n ['Й', 'Ц', 'У', 'К', 'Е', 'Н', 'Г', 'Ш', 'Щ', 'З', 'Х', 'Ъ'],\n ['Ф', 'Ы', 'В', 'А', 'П', 'Р', 'О', 'Л', 'Д', 'Ж', 'З'],\n ['{shift}', 'Я', 'Ч', 'С', 'М', 'И', 'Т', 'Ь', 'Б', 'Ю', '{backspace}'],\n ['{numeric}', '{space}', '{done}'],\n ],\n search_numeric: [\n ['1', '2', '3', '4', '5', '6', '7', '8', '9', '0'],\n ['-', '/', ':', ';', '(', ')', '$', '&', '@', '\"'],\n ['{symbolic}', '.', ',', '?', '!', \"'\", '{backspace}'],\n ['{alphabetic}', '{space}', '{done}'],\n ],\n search_symbolic: [\n ['[', ']', '{', '}', '#', '%', '^', '*', '+', '='],\n ['_', '\\\\', '|', '~', '<', '>', '€', '£', '¥', '•'],\n ['{numeric}', '.', ',', '?', '!', \"'\", '{backspace}'],\n ['{alphabetic}', '{space}', '{done}'],\n ],\n email_alphabetic: [\n ['й', 'ц', 'у', 'к', 'е', 'н', 'г', 'ш', 'щ', 'з', 'х', 'ъ'],\n ['ф', 'ы', 'в', 'а', 'п', 'р', 'о', 'л', 'д', 'ж', 'э'],\n ['{shift}', 'я', 'ч', 'с', 'м', 'и', 'т', 'ь', 'б', 'ю', '{backspace}'],\n ['{numeric}', '@', '{space}', '.', '{done}'],\n ],\n email_shift: [\n ['Й', 'Ц', 'У', 'К', 'Е', 'Н', 'Г', 'Ш', 'Щ', 'З', 'Х', 'Ъ'],\n ['Ф', 'Ы', 'В', 'А', 'П', 'Р', 'О', 'Л', 'Д', 'Ж', 'З'],\n ['{shift}', 'Я', 'Ч', 'С', 'М', 'И', 'Т', 'Ь', 'Б', 'Ю', '{backspace}'],\n ['{numeric}', '@', '{space}', '.', '{done}'],\n ],\n email_numeric: [\n ['1', '2', '3', '4', '5', '6', '7', '8', '9', '0'],\n ['$', '!', '~', '&', '=', '#', '[', ']'],\n ['{symbolic}', '.', '_', '-', '+', '{backspace}'],\n ['{alphabetic}', '@', '{space}', '.', '{done}'],\n ],\n email_symbolic: [\n ['`', '|', '{', '}', '?', '%', '^', '*', '/', \"'\"],\n ['$', '!', '~', '&', '=', '#', '[', ']'],\n ['{numeric}', '.', '_', '-', '+', '{backspace}'],\n ['{alphabetic}', '@', '{space}', '.', '{done}'],\n ],\n url_alphabetic: [\n ['й', 'ц', 'у', 'к', 'е', 'н', 'г', 'ш', 'щ', 'з', 'х', 'ъ'],\n ['ф', 'ы', 'в', 'а', 'п', 'р', 'о', 'л', 'д', 'ж', 'э'],\n ['{shift}', 'я', 'ч', 'с', 'м', 'и', 'т', 'ь', 'б', 'ю', '{backspace}'],\n ['{numeric}', '/', '.ru', '.', '{done}'],\n ],\n url_shift: [\n ['Й', 'Ц', 'У', 'К', 'Е', 'Н', 'Г', 'Ш', 'Щ', 'З', 'Х', 'Ъ'],\n ['Ф', 'Ы', 'В', 'А', 'П', 'Р', 'О', 'Л', 'Д', 'Ж', 'З'],\n ['{shift}', 'Я', 'Ч', 'С', 'М', 'И', 'Т', 'Ь', 'Б', 'Ю', '{backspace}'],\n ['{numeric}', '/', '.ru', '.', '{done}'],\n ],\n url_numeric: [\n ['1', '2', '3', '4', '5', '6', '7', '8', '9', '0'],\n ['@', '&', '%', '?', ',', '=', '[', ']'],\n ['{symbolic}', '_', ':', '-', '+', '{backspace}'],\n ['{alphabetic}', '/', '.ru', '.', '{done}'],\n ],\n url_symbolic: [\n ['1', '2', '3', '4', '5', '6', '7', '8', '9', '0'],\n ['*', '$', '#', '!', \"'\", '^', '[', ']'],\n ['{numeric}', '~', ';', '(', ')', '{backspace}'],\n ['{alphabetic}', '/', '.ru', '.', '{done}'],\n ],\n numeric_default: [\n ['1', '2', '3'],\n ['4', '5', '6'],\n ['7', '8', '9'],\n ['0', '{backspace}'],\n ],\n decimal_default: [\n ['1', '2', '3'],\n ['4', '5', '6'],\n ['7', '8', '9'],\n ['.', '0', '{backspace}'],\n ],\n tel_default: [\n ['1', '2', '3', '*'],\n ['4', '5', '6', '#'],\n ['7', '8', '9', '+'],\n ['0', '{backspace}'],\n ],\n};\n\nconst display: Display = {\n '{done}': fnDisplay.DONE,\n '{shift}': fnDisplay.SHIFT,\n '{backspace}': fnDisplay.BACKSPACE,\n '{space}': fnDisplay.SPACE,\n '{alphabetic}': 'АБВ',\n '{numeric}': '123',\n '{symbolic}': '#+=',\n};\n\nconst locale: Locale = {\n code: 'ru-RU',\n dir: 'ltr',\n layouts: layouts,\n display: display,\n};\n\nexport default locale;\n","import { Layout, Display, Locale } from '../type';\nimport { fnDisplay } from '../constants';\n\nconst layouts: Layout = {\n text_alphabetic: [\n ['q', 'w', 'e', 'r', 't', 'y', 'u', 'i', 'o', 'p', 'å'],\n ['a', 's', 'd', 'f', 'g', 'h', 'j', 'k', 'l', 'ö', 'ä'],\n ['{shift}', 'z', 'x', 'c', 'v', 'b', 'n', 'm', '{backspace}'],\n ['{numeric}', '{space}', '{done}'],\n ],\n text_shift: [\n ['Q', 'W', 'E', 'R', 'T', 'Y', 'U', 'I', 'O', 'P', 'Å'],\n ['A', 'S', 'D', 'F', 'G', 'H', 'J', 'K', 'L', 'Ö', 'Ä'],\n ['{shift}', 'Z', 'X', 'C', 'V', 'B', 'N', 'M', '{backspace}'],\n ['{numeric}', '{space}', '{done}'],\n ],\n text_numeric: [\n ['1', '2', '3', '4', '5', '6', '7', '8', '9', '0'],\n ['-', '/', ':', ';', '(', ')', '$', '&', '@', '\"'],\n ['{symbolic}', '.', ',', '?', '!', \"'\", '{backspace}'],\n ['{alphabetic}', '{space}', '{done}'],\n ],\n text_symbolic: [\n ['[', ']', '{', '}', '#', '%', '^', '*', '+', '='],\n ['_', '\\\\', '|', '~', '<', '>', '€', '£', '¥', '•'],\n ['{numeric}', '.', ',', '?', '!', \"'\", '{backspace}'],\n ['{alphabetic}', '{space}', '{done}'],\n ],\n search_alphabetic: [\n ['q', 'w', 'e', 'r', 't', 'y', 'u', 'i', 'o', 'p', 'å'],\n ['a', 's', 'd', 'f', 'g', 'h', 'j', 'k', 'l', 'ö', 'ä'],\n ['{shift}', 'z', 'x', 'c', 'v', 'b', 'n', 'm', '{backspace}'],\n ['{numeric}', '{space}', '{done}'],\n ],\n search_shift: [\n ['Q', 'W', 'E', 'R', 'T', 'Y', 'U', 'I', 'O', 'P', 'Å'],\n ['A', 'S', 'D', 'F', 'G', 'H', 'J', 'K', 'L', 'Ö', 'Ä'],\n ['{shift}', 'Z', 'X', 'C', 'V', 'B', 'N', 'M', '{backspace}'],\n ['{numeric}', '{space}', '{done}'],\n ],\n search_numeric: [\n ['1', '2', '3', '4', '5', '6', '7', '8', '9', '0'],\n ['-', '/', ':', ';', '(', ')', '$', '&', '@', '\"'],\n ['{symbolic}', '.', ',', '?', '!', \"'\", '{backspace}'],\n ['{alphabetic}', '{space}', '{done}'],\n ],\n search_symbolic: [\n ['[', ']', '{', '}', '#', '%', '^', '*', '+', '='],\n ['_', '\\\\', '|', '~', '<', '>', '€', '£', '¥', '•'],\n ['{numeric}', '.', ',', '?', '!', \"'\", '{backspace}'],\n ['{alphabetic}', '{space}', '{done}'],\n ],\n email_alphabetic: [\n ['q', 'w', 'e', 'r', 't', 'y', 'u', 'i', 'o', 'p', 'å'],\n ['a', 's', 'd', 'f', 'g', 'h', 'j', 'k', 'l', 'ö', 'ä'],\n ['{shift}', 'z', 'x', 'c', 'v', 'b', 'n', 'm', '{backspace}'],\n ['{numeric}', '@', '{space}', '.', '{done}'],\n ],\n email_shift: [\n ['Q', 'W', 'E', 'R', 'T', 'Y', 'U', 'I', 'O', 'P', 'Å'],\n ['A', 'S', 'D', 'F', 'G', 'H', 'J', 'K', 'L', 'Ö', 'Ä'],\n ['{shift}', 'Z', 'X', 'C', 'V', 'B', 'N', 'M', '{backspace}'],\n ['{numeric}', '@', '{space}', '.', '{done}'],\n ],\n email_numeric: [\n ['1', '2', '3', '4', '5', '6', '7', '8', '9', '0'],\n ['$', '!', '~', '&', '=', '#', '[', ']'],\n ['{symbolic}', '.', '_', '-', '+', '{backspace}'],\n ['{alphabetic}', '@', '{space}', '.', '{done}'],\n ],\n email_symbolic: [\n ['`', '|', '{', '}', '?', '%', '^', '*', '/', \"'\"],\n ['$', '!', '~', '&', '=', '#', '[', ']'],\n ['{numeric}', '.', '_', '-', '+', '{backspace}'],\n ['{alphabetic}', '@', '{space}', '.', '{done}'],\n ],\n url_alphabetic: [\n ['q', 'w', 'e', 'r', 't', 'y', 'u', 'i', 'o', 'p', 'å'],\n ['a', 's', 'd', 'f', 'g', 'h', 'j', 'k', 'l', 'ö', 'ä'],\n ['{shift}', 'z', 'x', 'c', 'v', 'b', 'n', 'm', '{backspace}'],\n ['{numeric}', '/', '.com', '.', '{done}'],\n ],\n url_shift: [\n ['Q', 'W', 'E', 'R', 'T', 'Y', 'U', 'I', 'O', 'P', 'Å'],\n ['A', 'S', 'D', 'F', 'G', 'H', 'J', 'K', 'L', 'Ö', 'Ä'],\n ['{shift}', 'Z', 'X', 'C', 'V', 'B', 'N', 'M', '{backspace}'],\n ['{numeric}', '/', '.com', '.', '{done}'],\n ],\n url_numeric: [\n ['1', '2', '3', '4', '5', '6', '7', '8', '9', '0'],\n ['@', '&', '%', '?', ',', '=', '[', ']'],\n ['{symbolic}', '_', ':', '-', '+', '{backspace}'],\n ['{alphabetic}', '/', '.com', '.', '{done}'],\n ],\n url_symbolic: [\n ['1', '2', '3', '4', '5', '6', '7', '8', '9', '0'],\n ['*', '$', '#', '!', \"'\", '^', '[', ']'],\n ['{numeric}', '~', ';', '(', ')', '{backspace}'],\n ['{alphabetic}', '/', '.com', '.', '{done}'],\n ],\n numeric_default: [\n ['1', '2', '3'],\n ['4', '5', '6'],\n ['7', '8', '9'],\n ['0', '{backspace}'],\n ],\n decimal_default: [\n ['1', '2', '3'],\n ['4', '5', '6'],\n ['7', '8', '9'],\n ['.', '0', '{backspace}'],\n ],\n tel_default: [\n ['1', '2', '3', '*'],\n ['4', '5', '6', '#'],\n ['7', '8', '9', '+'],\n ['0', '{backspace}'],\n ],\n};\n\nconst display: Display = {\n '{done}': fnDisplay.DONE,\n '{shift}': fnDisplay.SHIFT,\n '{backspace}': fnDisplay.BACKSPACE,\n '{space}': fnDisplay.SPACE,\n '{alphabetic}': 'ABC',\n '{numeric}': '123',\n '{symbolic}': '#+=',\n};\n\nconst locale: Locale = {\n code: 'sv-SE',\n dir: 'ltr',\n layouts: layouts,\n display: display,\n};\n\nexport default locale;\n","import { InjectionToken } from '@angular/core';\nimport { Locale } from './Locale/type';\nimport { enUS } from './Locale/index';\n\n/** Injection token that can be used to specify the locale data for the keyboard. */\nexport const NGX_TOUCH_KEYBOARD_LOCALE = new InjectionToken<Locale>('NGX_TOUCH_KEYBOARD_LOCALE', {\n providedIn: 'root',\n factory: NGX_TOUCH_KEYBOARD_LOCALE_FACTORY,\n});\n\n/** @docs-private */\nexport function NGX_TOUCH_KEYBOARD_LOCALE_FACTORY(): Locale {\n return enUS;\n}\n","import {\n ChangeDetectionStrategy,\n Component,\n ElementRef,\n HostListener,\n inject,\n output,\n ViewEncapsulation,\n} from '@angular/core';\nimport { DomSanitizer, SafeHtml } from '@angular/platform-browser';\n\nimport { NGX_TOUCH_KEYBOARD_LOCALE } from './ngx-touch-keyboard.constants';\nimport { fnButton } from './Locale/constants';\nimport { Locale } from './Locale/type';\n\n@Component({\n selector: 'ngx-touch-keyboard',\n templateUrl: './ngx-touch-keyboard.component.html',\n styleUrls: ['./ngx-touch-keyboard.component.scss'],\n encapsulation: ViewEncapsulation.None,\n changeDetection: ChangeDetectionStrategy.OnPush,\n})\nexport class NgxTouchKeyboardComponent {\n private _sanitizer = inject(DomSanitizer);\n private _elementRef = inject(ElementRef<HTMLInputElement>);\n private _defaultLocale = inject(NGX_TOUCH_KEYBOARD_LOCALE);\n\n locale: Locale = this._defaultLocale;\n layoutMode = 'text';\n layoutName = 'alphabetic';\n debug = false;\n\n closePanel = output<void>();\n\n private _activeButtonClass = 'active';\n private _holdInteractionTimeout!: number;\n private _holdTimeout!: number;\n private _isMouseHold!: boolean;\n private _caretPosition: number | null = null;\n private _caretPositionEnd: number | null = null;\n private _activeInputElement!: HTMLInputElement | HTMLTextAreaElement | null;\n\n // -----------------------------------------------------------------------------------------------------\n // @ Accessors\n // -----------------------------------------------------------------------------------------------------\n\n /**\n * Getter for maxLength\n */\n get maxLength(): number {\n return this._activeInputElement?.maxLength ?? -1;\n }\n\n /**\n * Getter for type of input\n */\n get isTextarea(): boolean {\n return this._activeInputElement?.type === 'textarea';\n }\n\n // -----------------------------------------------------------------------------------------------------\n // @ Decorated methods\n // -----------------------------------------------------------------------------------------------------\n\n /**\n * On keyup\n */\n @HostListener('window:keyup', ['$event'])\n handleKeyUp(event: KeyboardEvent): void {\n if (event.isTrusted) {\n this._caretEventHandler(event);\n this._handleHighlightKeyUp(event);\n }\n }\n\n /**\n * On keydown\n */\n @HostListener('window:keydown', ['$event'])\n handleKeyDown(event: KeyboardEvent): void {\n if (event.isTrusted) {\n this._handleHighlightKeyDown(event);\n }\n }\n\n /**\n * On pointerup (mouseup or touchend)\n */\n @HostListener('window:pointerup', ['$event'])\n handleMouseUp(event: PointerEvent): void {\n this._caretEventHandler(event);\n }\n\n /**\n * On select\n */\n @HostListener('window:select', ['$event'])\n handleSelect(event: Event): void {\n this._caretEventHandler(event);\n }\n\n /**\n * On selectionchange\n */\n @HostListener('window:selectionchange', ['$event'])\n handleSelectionChange(event: Event): void {\n this._caretEventHandler(event);\n }\n\n // -----------------------------------------------------------------------------------------------------\n // @ Public methods\n // -----------------------------------------------------------------------------------------------------\n\n /**\n * Set locale\n *\n * @param value Locale\n */\n setLocale(value: Locale = this._defaultLocale): void {\n if (!(value && value.layouts)) {\n throw new Error('Locale is not defined');\n }\n\n this.locale = value;\n }\n\n /**\n * Set active input\n *\n * @param input Input native element\n */\n setActiveInput(input: HTMLInputElement | HTMLTextAreaElement): void {\n this._activeInputElement = input;\n\n /**\n * Tracking keyboard layout\n */\n const inputMode = this._activeInputElement?.inputMode;\n if (inputMode && ['text', 'search', 'email', 'url', 'numeric', 'decimal', 'tel'].some((i) => i === inputMode)) {\n this.layoutMode = inputMode;\n } else {\n this.layoutMode = 'text';\n }\n\n if (inputMode && ['numeric', 'decimal', 'tel'].some((i) => i === inputMode)) {\n this.layoutName = 'default';\n } else {\n this.layoutName = 'alphabetic';\n }\n\n if (this.debug) {\n console.log('Locale:', `${this.locale.code}`);\n console.log('Layout:', `${this.layoutMode}_${this.layoutName}`);\n }\n\n /**\n * we must ensure caretPosition doesn't persist once reactivated.\n */\n this._setCaretPosition(this._activeInputElement.selectionStart, this._activeInputElement.selectionEnd);\n\n if (this.debug) {\n console.log('Caret start at:', this._caretPosition, this._caretPositionEnd);\n }\n\n // And set focus to input\n this._focusActiveInput();\n }\n\n /**\n * Check whether the button is a standard button\n */\n isStandardButton = (button: string) => button && !(button[0] === '{' && button[button.length - 1] === '}');\n\n /**\n * Retrieve button type\n *\n * @param button The button's layout name\n * @return The button type\n */\n getButtonType(button: string): 'standard-key' | 'function-key' {\n return this.isStandardButton(button) ? 'standard-key' : 'function-key';\n }\n\n /**\n * Adds default classes to a given button\n *\n * @param button The button's layout name\n * @return The classes to be added to the button\n */\n getButtonClass(button: string): string {\n const buttonTypeClass = this.getButtonType(button);\n const buttonWithoutBraces = button.replace('{', '').replace('}', '');\n let buttonNormalized = '';\n\n if (buttonTypeClass !== 'standard-key') buttonNormalized = `${buttonWithoutBraces}-key`;\n\n return `${buttonTypeClass} ${buttonNormalized}`;\n }\n\n /**\n * Returns the display (label) name for a given button\n *\n * @param button The button's layout name\n * @return The display name to be show to the button\n */\n getButtonDisplayName(button: string): SafeHtml {\n return this._sanitizer.bypassSecurityTrustHtml(this.locale.display[button] || button);\n }\n\n /**\n * Handles clicks made to keyboard buttons\n *\n * @param button The button layout name.\n * @param event The button event.\n */\n handleButtonPress(button: string, e?: Event): void {\n if (this.debug) {\n console.log('Key press:', button);\n }\n\n if (button === fnButton.SHIFT) {\n this.layoutName = this.layoutName === 'alphabetic' ? 'shift' : 'alphabetic';\n return;\n } else if (button === fnButton.DONE) {\n this.closePanel.emit();\n return;\n }\n\n const commonParams: [number, number, boolean] = [this._caretPosition || 0, this._caretPositionEnd || 0, true];\n let output = this._activeInputElement?.value || '';\n\n // Handel functional button\n if (!this.isStandardButton(button)) {\n // Handel BACKSPACE\n if (button === fnButton.BACKSPACE) {\n output = this._removeAt(output, ...commonParams);\n }\n // Handel SPACE\n else if (button === fnButton.SPACE) {\n output = this._addStringAt(output, ' ', ...commonParams);\n }\n // Handel TAB\n else if (button === fnButton.TAB) {\n output = this._addStringAt(output, '\\t', ...commonParams);\n }\n // Handel ENTER\n else if (button === fnButton.ENTER) {\n if (this.isTextarea) {\n output = this._addStringAt(output, '\\n', ...commonParams);\n }\n }\n // Handel LAYOUT\n else {\n this.layoutName = button.substring(1, button.length - 1);\n return;\n }\n }\n // Handel standard button\n else {\n output = this._addStringAt(output, button, ...commonParams);\n }\n\n if (this._activeInputElement) {\n this._activeInputElement.value = output;\n\n if (this.debug) {\n console.log('Caret at:', this._caretPosition, this._caretPositionEnd, 'Button', e);\n }\n }\n\n this._dispatchEvents(button);\n }\n\n /**\n * Handles button down\n *\n * @param button The button layout name.\n * @param event The button event.\n */\n handleButtonDown(button: string, e?: Event): void {\n if (this.debug) {\n console.log('Key down:', button);\n }\n\n if (e) {\n /**\n * Handle event options\n */\n e.preventDefault();\n e.stopPropagation();\n }\n\n /**\n * Add active class\n */\n this._setActiveButton(button);\n\n if (this._holdInteractionTimeout) clearTimeout(this._holdInteractionTimeout);\n if (this._holdTimeout) clearTimeout(this._holdTimeout);\n this._isMouseHold = true;\n\n /**\n * Time to wait until a key hold is detected\n */\n this._holdTimeout = window.setTimeout(() => {\n if (\n this._isMouseHold &&\n ((!button.includes('{') && !button.includes('}')) || button === fnButton.BACKSPACE || button === fnButton.SPACE)\n ) {\n if (this.debug) {\n console.log('Button hold:', button);\n }\n this.handleButtonHold(button);\n }\n clearTimeout(this._holdTimeout);\n }, 500);\n\n /**\n * Handel button Click after button down\n */\n this.handleButtonPress(button, e);\n }\n\n /**\n * Handles button up\n *\n * @param button The button layout name.\n * @param event The button event.\n */\n handleButtonUp(button: string, e?: Event): void {\n if (this.debug) {\n console.log('Key up:', button);\n }\n\n if (e) {\n /**\n * Handle event options\n */\n e.preventDefault();\n e.stopPropagation();\n }\n\n /**\n * Remove active class\n */\n this._removeActiveButton();\n\n this._isMouseHold = false;\n if (this._holdInteractionTimeout) clearTimeout(this._holdInteractionTimeout);\n }\n\n /**\n * Handles button hold\n */\n handleButtonHold(button: string): void {\n if (this._holdInteractionTimeout) clearTimeout(this._holdInteractionTimeout);\n\n /**\n * Timeout dictating the speed of key hold iterations\n */\n this._holdInteractionTimeout = window.setTimeout(() => {\n if (this._isMouseHold) {\n this.handleButtonPress(button);\n this.hand