argous 1.2.215 → 1.2.217

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (46) hide show
  1. package/dist/api/index.d.ts +2 -2
  2. package/dist/api/index.js +3 -3
  3. package/dist/components/Carousel/Carousel.d.ts +71 -0
  4. package/dist/components/Carousel/Carousel.js +225 -0
  5. package/dist/components/Carousel/index.d.ts +2 -0
  6. package/dist/components/Carousel/index.js +8 -0
  7. package/dist/components/TextToHtml/Cursor.d.ts +7 -0
  8. package/dist/components/TextToHtml/Cursor.js +39 -0
  9. package/dist/components/TextToHtml/TextStyles.d.ts +11 -0
  10. package/dist/components/TextToHtml/TextStyles.js +124 -0
  11. package/dist/components/TextToHtml/TextToHtml.d.ts +38 -0
  12. package/dist/components/TextToHtml/TextToHtml.js +484 -0
  13. package/dist/components/TextToHtml/index.d.ts +2 -0
  14. package/dist/components/TextToHtml/index.js +8 -0
  15. package/dist/components/TextToHtml/utils.d.ts +27 -0
  16. package/dist/components/TextToHtml/utils.js +798 -0
  17. package/dist/components/Zoom/Zoom.d.ts +11 -0
  18. package/dist/components/Zoom/Zoom.js +67 -0
  19. package/dist/components/Zoom/index.d.ts +2 -0
  20. package/dist/components/Zoom/index.js +8 -0
  21. package/dist/components/index.d.ts +10 -1
  22. package/dist/components/index.js +11 -1
  23. package/dist/utils/api.js +2 -3
  24. package/lib/api/index.js +3 -3
  25. package/lib/components/Carousel/Carousel.d.ts +71 -0
  26. package/lib/components/Carousel/Carousel.js +218 -0
  27. package/lib/components/Carousel/index.d.ts +2 -0
  28. package/lib/components/Carousel/index.js +1 -0
  29. package/lib/components/TextToHtml/Cursor.js +24 -0
  30. package/lib/components/TextToHtml/TextStyles.js +111 -0
  31. package/lib/components/TextToHtml/TextToHtml.d.ts +38 -0
  32. package/lib/components/TextToHtml/TextToHtml.js +463 -0
  33. package/lib/components/TextToHtml/icons/resize_area.svg +2 -0
  34. package/lib/components/TextToHtml/index.d.ts +2 -0
  35. package/lib/components/TextToHtml/index.js +1 -0
  36. package/lib/components/TextToHtml/style.css +40 -0
  37. package/lib/components/TextToHtml/utils.js +848 -0
  38. package/lib/components/Zoom/Zoom.d.ts +11 -0
  39. package/lib/components/Zoom/Zoom.js +56 -0
  40. package/lib/components/Zoom/index.d.ts +2 -0
  41. package/lib/components/Zoom/index.js +1 -0
  42. package/lib/components/Zoom/style.css +25 -0
  43. package/lib/components/index.d.ts +10 -1
  44. package/lib/components/index.js +11 -1
  45. package/lib/utils/api.ts +2 -3
  46. package/package.json +2 -1
@@ -0,0 +1,798 @@
1
+ "use strict";
2
+ var __assign = (this && this.__assign) || function () {
3
+ __assign = Object.assign || function(t) {
4
+ for (var s, i = 1, n = arguments.length; i < n; i++) {
5
+ s = arguments[i];
6
+ for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))
7
+ t[p] = s[p];
8
+ }
9
+ return t;
10
+ };
11
+ return __assign.apply(this, arguments);
12
+ };
13
+ Object.defineProperty(exports, "__esModule", { value: true });
14
+ exports.translateKey = exports.getCharacterElement = exports.createCharactersWithMark = exports.SEARCH_PEOPLE_SYMBOL = exports.DEAD_KEY = void 0;
15
+ var TextToHtml_1 = require("./TextToHtml");
16
+ exports.DEAD_KEY = 'Dead';
17
+ exports.SEARCH_PEOPLE_SYMBOL = '@';
18
+ var space = {
19
+ 'key': ' ',
20
+ 'keyCode': 32,
21
+ 'code': 'Space',
22
+ 'string': ' ',
23
+ 'dead': false,
24
+ 'shift': false
25
+ };
26
+ var createCharactersWithMark = function (string, mark) {
27
+ var characters = [];
28
+ for (var i = 0; i < (string === null || string === void 0 ? void 0 : string.length); i++) {
29
+ characters.push(__assign(__assign({}, TextToHtml_1.initialStateCharacter), { string: string[i], mark: mark }));
30
+ }
31
+ characters.push(space);
32
+ return { markedCharacters: characters };
33
+ };
34
+ exports.createCharactersWithMark = createCharactersWithMark;
35
+ var getCharacterElement = function (_a) {
36
+ var index = _a.index;
37
+ var response = {
38
+ nodeElement: undefined,
39
+ rect: undefined
40
+ };
41
+ var parentElement = document.getElementById(TextToHtml_1.TEXT_TO_HTML_ID);
42
+ if (parentElement) {
43
+ var childNodes = parentElement.childNodes[0].childNodes;
44
+ var targetElement = childNodes[index];
45
+ var targetElementRect = targetElement.getBoundingClientRect();
46
+ response = __assign(__assign({}, response), { nodeElement: targetElement, rect: targetElementRect });
47
+ }
48
+ return response;
49
+ };
50
+ exports.getCharacterElement = getCharacterElement;
51
+ var translateKey = function (_a) {
52
+ var _b, _c, _d;
53
+ var key = _a.key, keyCode = _a.keyCode, code = _a.code, shift = _a.shift, altGraph = _a.altGraph, capsLock = _a.capsLock, before = _a.before;
54
+ var response = {
55
+ string: '',
56
+ dead: false,
57
+ before: {
58
+ dead: false,
59
+ delete: false
60
+ }
61
+ };
62
+ if (key === exports.DEAD_KEY) {
63
+ if (code === 'BracketLeft') {
64
+ response.string = (shift) ? '`' : '´';
65
+ }
66
+ else if (code === 'Quote') {
67
+ response.string = (shift) ? '^' : '~';
68
+ }
69
+ else if (code === 'Digit6') {
70
+ response.string = (shift) ? '¨' : '';
71
+ }
72
+ response.before.dead = true;
73
+ }
74
+ else if (before === null || before === void 0 ? void 0 : before.dead) {
75
+ var targetKey = (_b = KEYS(shift, before === null || before === void 0 ? void 0 : before.shift, altGraph, capsLock).filter(function (keyItem) { return (((keyItem.key === key) || (keyItem.keyCode === keyCode)) && (keyItem.code === code)); })) === null || _b === void 0 ? void 0 : _b[0];
76
+ var specialKey = (_c = targetKey === null || targetKey === void 0 ? void 0 : targetKey.special.filter(function (special) { return special.string === (before === null || before === void 0 ? void 0 : before.string); })) === null || _c === void 0 ? void 0 : _c[0];
77
+ var special = specialKey === null || specialKey === void 0 ? void 0 : specialKey.value;
78
+ response.string = special ? special : targetKey === null || targetKey === void 0 ? void 0 : targetKey.key;
79
+ response.before.delete = special ? true : false;
80
+ response.before.dead = false;
81
+ }
82
+ else {
83
+ var targetKey = (_d = KEYS(shift, before === null || before === void 0 ? void 0 : before.shift, altGraph, capsLock).filter(function (keyItem) { return (((keyItem.key === key) || (keyItem.keyCode === keyCode)) && (keyItem.code === code)); })) === null || _d === void 0 ? void 0 : _d[0];
84
+ response.string = targetKey === null || targetKey === void 0 ? void 0 : targetKey.key;
85
+ }
86
+ return response;
87
+ };
88
+ exports.translateKey = translateKey;
89
+ var KEYS = function (shift, beforeShift, altGraph, capsLock) { return [
90
+ {
91
+ key: (shift || capsLock) ? 'W' : 'w',
92
+ keyCode: 87,
93
+ code: 'KeyW',
94
+ special: [
95
+ {
96
+ code: 'BracketLeft',
97
+ key: 'Dead',
98
+ keyCode: 219,
99
+ string: (beforeShift) ? '`' : '´',
100
+ value: (beforeShift) ? ((shift || capsLock) ? 'Ẁ' : 'ẁ') : ((shift || capsLock) ? 'Ẃ' : 'ẃ')
101
+ },
102
+ {
103
+ code: 'Quote',
104
+ key: 'Dead',
105
+ keyCode: 222,
106
+ string: (beforeShift) ? '^' : '~',
107
+ value: (beforeShift) ? ((shift || capsLock) ? 'Ŵ' : 'ŵ') : ((shift || capsLock) ? '' : '')
108
+ },
109
+ {
110
+ code: 'Digit6',
111
+ key: 'Dead',
112
+ keyCode: 54,
113
+ string: (beforeShift) ? '¨' : '',
114
+ value: (beforeShift) ? ((shift || capsLock) ? 'Ẅ' : 'ẅ') : ((shift || capsLock) ? '' : '')
115
+ }
116
+ ]
117
+ },
118
+ {
119
+ key: (shift || capsLock) ? 'E' : 'e',
120
+ keyCode: 69,
121
+ code: 'KeyE',
122
+ special: [
123
+ {
124
+ code: 'BracketLeft',
125
+ key: 'Dead',
126
+ keyCode: 219,
127
+ string: (beforeShift) ? '`' : '´',
128
+ value: (beforeShift) ? ((shift || capsLock) ? 'È' : 'è') : ((shift || capsLock) ? 'É' : 'é')
129
+ },
130
+ {
131
+ code: 'Quote',
132
+ key: 'Dead',
133
+ keyCode: 222,
134
+ string: (beforeShift) ? '^' : '~',
135
+ value: (beforeShift) ? ((shift || capsLock) ? 'Ê' : 'ê') : ((shift || capsLock) ? 'Ẽ' : 'ẽ')
136
+ },
137
+ {
138
+ code: 'Digit6',
139
+ key: 'Dead',
140
+ keyCode: 54,
141
+ string: (beforeShift) ? '¨' : '',
142
+ value: (beforeShift) ? ((shift || capsLock) ? 'Ë' : 'ë') : ((shift || capsLock) ? '' : '')
143
+ }
144
+ ]
145
+ },
146
+ {
147
+ key: (shift || capsLock) ? 'R' : 'r',
148
+ keyCode: 82,
149
+ code: 'KeyR',
150
+ special: [
151
+ {
152
+ code: 'BracketLeft',
153
+ key: 'Dead',
154
+ keyCode: 219,
155
+ string: '´',
156
+ value: (shift || capsLock) ? 'Ŕ' : 'ŕ'
157
+ }
158
+ ]
159
+ },
160
+ {
161
+ key: (shift || capsLock) ? 'Y' : 'y',
162
+ keyCode: 89,
163
+ code: 'KeyY',
164
+ special: [
165
+ {
166
+ code: 'BracketLeft',
167
+ key: 'Dead',
168
+ keyCode: 219,
169
+ string: (beforeShift) ? '`' : '´',
170
+ value: (beforeShift) ? ((shift || capsLock) ? 'Ỳ' : 'ỳ') : ((shift || capsLock) ? 'Ý' : 'ý')
171
+ },
172
+ {
173
+ code: 'Quote',
174
+ key: 'Dead',
175
+ keyCode: 222,
176
+ string: (beforeShift) ? '^' : '~',
177
+ value: (beforeShift) ? ((shift || capsLock) ? 'Ŷ' : 'ŷ') : ((shift || capsLock) ? 'Ỹ' : 'ỹ')
178
+ },
179
+ {
180
+ code: 'Digit6',
181
+ key: 'Dead',
182
+ keyCode: 54,
183
+ string: (beforeShift) ? '¨' : '',
184
+ value: (beforeShift) ? ((shift || capsLock) ? 'Ÿ' : 'ÿ') : ((shift || capsLock) ? '' : '')
185
+ }
186
+ ]
187
+ },
188
+ {
189
+ key: (shift || capsLock) ? 'U' : 'u',
190
+ keyCode: 85,
191
+ code: 'KeyU',
192
+ special: [
193
+ {
194
+ code: 'BracketLeft',
195
+ key: 'Dead',
196
+ keyCode: 219,
197
+ string: (beforeShift) ? '`' : '´',
198
+ value: (beforeShift) ? ((shift || capsLock) ? 'Ù' : 'ù') : ((shift || capsLock) ? 'Ú' : 'ú')
199
+ },
200
+ {
201
+ code: 'Quote',
202
+ key: 'Dead',
203
+ keyCode: 222,
204
+ string: (beforeShift) ? '^' : '~',
205
+ value: (beforeShift) ? ((shift || capsLock) ? 'Û' : 'û') : ((shift || capsLock) ? 'Ũ' : 'ũ')
206
+ },
207
+ {
208
+ code: 'Digit6',
209
+ key: 'Dead',
210
+ keyCode: 54,
211
+ string: (beforeShift) ? '¨' : '',
212
+ value: (beforeShift) ? ((shift || capsLock) ? 'Ü' : 'ü') : ((shift || capsLock) ? '' : '')
213
+ }
214
+ ]
215
+ },
216
+ {
217
+ key: (shift || capsLock) ? 'I' : 'i',
218
+ keyCode: 73,
219
+ code: 'KeyI',
220
+ special: [
221
+ {
222
+ code: 'BracketLeft',
223
+ key: 'Dead',
224
+ keyCode: 219,
225
+ string: (beforeShift) ? '`' : '´',
226
+ value: (beforeShift) ? ((shift || capsLock) ? 'Ì' : 'ì') : ((shift || capsLock) ? 'Í' : 'í')
227
+ },
228
+ {
229
+ code: 'Quote',
230
+ key: 'Dead',
231
+ keyCode: 222,
232
+ string: (beforeShift) ? '^' : '~',
233
+ value: (beforeShift) ? ((shift || capsLock) ? 'Î' : 'î') : ((shift || capsLock) ? 'Ĩ' : 'ĩ')
234
+ },
235
+ {
236
+ code: 'Digit6',
237
+ key: 'Dead',
238
+ keyCode: 54,
239
+ string: (beforeShift) ? '¨' : '',
240
+ value: (beforeShift) ? ((shift || capsLock) ? 'Ï' : 'ï') : ((shift || capsLock) ? '' : '')
241
+ }
242
+ ]
243
+ },
244
+ {
245
+ key: (shift || capsLock) ? 'O' : 'o',
246
+ keyCode: 79,
247
+ code: 'KeyO',
248
+ special: [
249
+ {
250
+ code: 'BracketLeft',
251
+ key: 'Dead',
252
+ keyCode: 219,
253
+ string: (beforeShift) ? '`' : '´',
254
+ value: (beforeShift) ? ((shift || capsLock) ? 'Ò' : 'ò') : ((shift || capsLock) ? 'Ó' : 'ó')
255
+ },
256
+ {
257
+ code: 'Quote',
258
+ key: 'Dead',
259
+ keyCode: 222,
260
+ string: (beforeShift) ? '^' : '~',
261
+ value: (beforeShift) ? ((shift || capsLock) ? 'Ô' : 'ô') : ((shift || capsLock) ? 'Õ' : 'õ')
262
+ },
263
+ {
264
+ code: 'Digit6',
265
+ key: 'Dead',
266
+ keyCode: 54,
267
+ string: (beforeShift) ? '¨' : '',
268
+ value: (beforeShift) ? ((shift || capsLock) ? 'Ö' : 'ö') : ((shift || capsLock) ? '' : '')
269
+ }
270
+ ]
271
+ },
272
+ {
273
+ key: (shift || capsLock) ? 'P' : 'p',
274
+ keyCode: 80,
275
+ code: 'KeyP',
276
+ special: [
277
+ {
278
+ code: 'BracketLeft',
279
+ key: 'Dead',
280
+ keyCode: 219,
281
+ string: '´',
282
+ value: (shift || capsLock) ? 'Ṕ' : 'ṕ'
283
+ }
284
+ ]
285
+ },
286
+ {
287
+ key: (shift || capsLock) ? 'A' : 'a',
288
+ keyCode: 65,
289
+ code: 'KeyA',
290
+ special: [
291
+ {
292
+ code: 'BracketLeft',
293
+ key: 'Dead',
294
+ keyCode: 219,
295
+ string: (beforeShift) ? '`' : '´',
296
+ value: (beforeShift) ? ((shift || capsLock) ? 'À' : 'à') : ((shift || capsLock) ? 'Á' : 'á')
297
+ },
298
+ {
299
+ code: 'Quote',
300
+ key: 'Dead',
301
+ keyCode: 222,
302
+ string: (beforeShift) ? '^' : '~',
303
+ value: (beforeShift) ? ((shift || capsLock) ? 'Â' : 'â') : ((shift || capsLock) ? 'Ã' : 'ã')
304
+ },
305
+ {
306
+ code: 'Digit6',
307
+ key: 'Dead',
308
+ keyCode: 54,
309
+ string: (beforeShift) ? '¨' : '',
310
+ value: (beforeShift) ? ((shift || capsLock) ? 'Ä' : 'ä') : ((shift || capsLock) ? '' : '')
311
+ }
312
+ ]
313
+ },
314
+ {
315
+ key: (shift || capsLock) ? 'S' : 's',
316
+ keyCode: 83,
317
+ code: 'KeyS',
318
+ special: [
319
+ {
320
+ code: 'BracketLeft',
321
+ key: 'Dead',
322
+ keyCode: 219,
323
+ string: '´',
324
+ value: (shift || capsLock) ? 'Ś' : 'ś'
325
+ },
326
+ {
327
+ code: 'Quote',
328
+ key: 'Dead',
329
+ keyCode: 222,
330
+ string: (beforeShift) ? '^' : '~',
331
+ value: (beforeShift) ? ((shift || capsLock) ? 'Ŝ' : 'ŝ') : ((shift || capsLock) ? '' : '')
332
+ }
333
+ ]
334
+ },
335
+ {
336
+ key: (shift || capsLock) ? 'G' : 'g',
337
+ keyCode: 71,
338
+ code: 'KeyG',
339
+ special: [
340
+ {
341
+ code: 'BracketLeft',
342
+ key: 'Dead',
343
+ keyCode: 219,
344
+ string: '´',
345
+ value: (shift || capsLock) ? 'Ǵ' : 'ǵ'
346
+ },
347
+ {
348
+ code: 'Quote',
349
+ key: 'Dead',
350
+ keyCode: 222,
351
+ string: (beforeShift) ? '^' : '~',
352
+ value: (beforeShift) ? ((shift || capsLock) ? 'Ĝ' : 'ĝ') : ((shift || capsLock) ? '' : '')
353
+ }
354
+ ]
355
+ },
356
+ {
357
+ key: (shift || capsLock) ? 'J' : 'j',
358
+ keyCode: 74,
359
+ code: 'KeyJ',
360
+ special: [
361
+ {
362
+ code: 'BracketLeft',
363
+ key: 'Dead',
364
+ keyCode: 219,
365
+ string: '´',
366
+ value: (shift || capsLock) ? 'J́' : 'j́'
367
+ },
368
+ {
369
+ code: 'Quote',
370
+ key: 'Dead',
371
+ keyCode: 222,
372
+ string: (beforeShift) ? '^' : '~',
373
+ value: (beforeShift) ? ((shift || capsLock) ? 'Ĵ' : 'ĵ') : ((shift || capsLock) ? '' : '')
374
+ }
375
+ ]
376
+ },
377
+ {
378
+ key: (shift || capsLock) ? 'K' : 'k',
379
+ keyCode: 75,
380
+ code: 'KeyK',
381
+ special: [
382
+ {
383
+ code: 'BracketLeft',
384
+ key: 'Dead',
385
+ keyCode: 219,
386
+ string: '´',
387
+ value: (shift || capsLock) ? 'Ḱ' : 'ḱ'
388
+ }
389
+ ]
390
+ },
391
+ {
392
+ key: (shift || capsLock) ? 'L' : 'l',
393
+ keyCode: 76,
394
+ code: 'KeyL',
395
+ special: [
396
+ {
397
+ code: 'BracketLeft',
398
+ key: 'Dead',
399
+ keyCode: 219,
400
+ string: '´',
401
+ value: (shift || capsLock) ? 'Ĺ' : 'ĺ'
402
+ }
403
+ ]
404
+ },
405
+ {
406
+ key: (shift || capsLock) ? 'Ç' : 'ç',
407
+ keyCode: 186,
408
+ code: 'Semicolon',
409
+ special: [
410
+ {
411
+ code: 'BracketLeft',
412
+ key: 'Dead',
413
+ keyCode: 219,
414
+ string: '´',
415
+ value: (shift || capsLock) ? 'Ḉ' : 'ḉ'
416
+ }
417
+ ]
418
+ },
419
+ {
420
+ key: (shift || capsLock) ? 'Z' : 'z',
421
+ keyCode: 90,
422
+ code: 'KeyZ',
423
+ special: [
424
+ {
425
+ code: 'BracketLeft',
426
+ key: 'Dead',
427
+ keyCode: 219,
428
+ string: '´',
429
+ value: (shift || capsLock) ? 'Ź' : 'ź'
430
+ },
431
+ {
432
+ code: 'Quote',
433
+ key: 'Dead',
434
+ keyCode: 222,
435
+ string: (beforeShift) ? '^' : '~',
436
+ value: (beforeShift) ? ((shift || capsLock) ? 'Ẑ' : 'ẑ') : ((shift || capsLock) ? '' : '')
437
+ }
438
+ ]
439
+ },
440
+ {
441
+ key: (shift || capsLock) ? 'C' : 'c',
442
+ keyCode: 67,
443
+ code: 'KeyC',
444
+ special: [
445
+ {
446
+ code: 'BracketLeft',
447
+ key: 'Dead',
448
+ keyCode: 219,
449
+ string: '´',
450
+ value: (shift || capsLock) ? 'Ć' : 'ć'
451
+ },
452
+ {
453
+ code: 'Quote',
454
+ key: 'Dead',
455
+ keyCode: 222,
456
+ string: (beforeShift) ? '^' : '~',
457
+ value: (beforeShift) ? ((shift || capsLock) ? 'Ĉ' : 'ĉ') : ((shift || capsLock) ? '' : '')
458
+ }
459
+ ]
460
+ },
461
+ {
462
+ key: (shift || capsLock) ? 'V' : 'v',
463
+ keyCode: 86,
464
+ code: 'KeyV',
465
+ special: [
466
+ {
467
+ code: 'BracketLeft',
468
+ key: 'Dead',
469
+ keyCode: 219,
470
+ string: (beforeShift) ? '`' : '´',
471
+ value: (beforeShift) ? ((shift || capsLock) ? 'Ǜ' : 'ǜ') : ((shift || capsLock) ? 'Ǘ' : 'ǘ')
472
+ },
473
+ {
474
+ code: 'Quote',
475
+ key: 'Dead',
476
+ keyCode: 222,
477
+ string: (beforeShift) ? '^' : '~',
478
+ value: (beforeShift) ? ((shift || capsLock) ? '' : '') : ((shift || capsLock) ? 'Ṽ' : 'ṽ')
479
+ }
480
+ ]
481
+ },
482
+ {
483
+ key: (shift || capsLock) ? 'N' : 'n',
484
+ keyCode: 78,
485
+ code: 'KeyN',
486
+ special: [
487
+ {
488
+ code: 'BracketLeft',
489
+ key: 'Dead',
490
+ keyCode: 219,
491
+ string: (beforeShift) ? '`' : '´',
492
+ value: (beforeShift) ? ((shift || capsLock) ? 'Ǹ' : 'ǹ') : ((shift || capsLock) ? 'Ń' : 'ń')
493
+ },
494
+ {
495
+ code: 'Quote',
496
+ key: 'Dead',
497
+ keyCode: 222,
498
+ string: (beforeShift) ? '^' : '~',
499
+ value: (beforeShift) ? ((shift || capsLock) ? '' : '') : ((shift || capsLock) ? 'Ñ' : 'ñ')
500
+ }
501
+ ]
502
+ },
503
+ {
504
+ key: (shift || capsLock) ? 'M' : 'm',
505
+ keyCode: 77,
506
+ code: 'KeyM',
507
+ special: [
508
+ {
509
+ code: 'BracketLeft',
510
+ key: 'Dead',
511
+ keyCode: 219,
512
+ string: (beforeShift) ? '`' : '´',
513
+ value: (beforeShift) ? ((shift || capsLock) ? 'M̀' : 'm̀') : ((shift || capsLock) ? 'Ḿ' : 'ḿ')
514
+ }
515
+ ]
516
+ },
517
+ {
518
+ key: (shift || capsLock) ? 'Q' : 'q',
519
+ keyCode: 81,
520
+ code: 'KeyQ',
521
+ special: []
522
+ },
523
+ {
524
+ key: (shift || capsLock) ? 'T' : 't',
525
+ keyCode: 84,
526
+ code: 'KeyT',
527
+ special: []
528
+ },
529
+ {
530
+ key: (shift || capsLock) ? 'D' : 'd',
531
+ keyCode: 68,
532
+ code: 'KeyD',
533
+ special: []
534
+ },
535
+ {
536
+ key: (shift || capsLock) ? 'F' : 'f',
537
+ keyCode: 70,
538
+ code: 'KeyF',
539
+ special: []
540
+ },
541
+ {
542
+ key: (shift || capsLock) ? 'H' : 'h',
543
+ keyCode: 72,
544
+ code: 'KeyH',
545
+ special: [
546
+ {
547
+ code: 'Quote',
548
+ key: 'Dead',
549
+ keyCode: 222,
550
+ string: (beforeShift) ? '^' : '~',
551
+ value: (beforeShift) ? ((shift || capsLock) ? 'Ĥ' : 'ĥ') : ((shift || capsLock) ? '' : '')
552
+ },
553
+ {
554
+ code: 'Digit6',
555
+ key: 'Dead',
556
+ keyCode: 54,
557
+ string: (beforeShift) ? '¨' : '',
558
+ value: (beforeShift) ? ((shift || capsLock) ? 'Ḧ' : 'ḧ') : ((shift || capsLock) ? '' : '')
559
+ }
560
+ ]
561
+ },
562
+ {
563
+ key: (shift || capsLock) ? 'X' : 'x',
564
+ keyCode: 88,
565
+ code: 'KeyX',
566
+ special: [
567
+ {
568
+ code: 'Digit6',
569
+ key: 'Dead',
570
+ keyCode: 54,
571
+ string: (beforeShift) ? '¨' : '',
572
+ value: (beforeShift) ? ((shift || capsLock) ? 'Ẍ' : 'ẍ') : ((shift || capsLock) ? '' : '')
573
+ }
574
+ ]
575
+ },
576
+ {
577
+ key: (shift || capsLock) ? 'B' : 'b',
578
+ keyCode: 66,
579
+ code: 'KeyB',
580
+ special: []
581
+ },
582
+ {
583
+ key: ' ',
584
+ keyCode: 32,
585
+ code: 'Space',
586
+ special: []
587
+ },
588
+ {
589
+ key: '1',
590
+ keyCode: 97,
591
+ code: 'Numpad1',
592
+ special: []
593
+ },
594
+ {
595
+ key: '2',
596
+ keyCode: 98,
597
+ code: 'Numpad2',
598
+ special: []
599
+ },
600
+ {
601
+ key: '3',
602
+ keyCode: 99,
603
+ code: 'Numpad3',
604
+ special: []
605
+ },
606
+ {
607
+ key: '4',
608
+ keyCode: 100,
609
+ code: 'Numpad4',
610
+ special: []
611
+ },
612
+ {
613
+ key: '5',
614
+ keyCode: 101,
615
+ code: 'Numpad5',
616
+ special: []
617
+ },
618
+ {
619
+ key: '6',
620
+ keyCode: 102,
621
+ code: 'Numpad6',
622
+ special: []
623
+ },
624
+ {
625
+ key: '7',
626
+ keyCode: 103,
627
+ code: 'Numpad7',
628
+ special: []
629
+ },
630
+ {
631
+ key: '8',
632
+ keyCode: 104,
633
+ code: 'Numpad8',
634
+ special: []
635
+ },
636
+ {
637
+ key: '9',
638
+ keyCode: 105,
639
+ code: 'Numpad9',
640
+ special: []
641
+ },
642
+ {
643
+ key: '0',
644
+ keyCode: 96,
645
+ code: 'Numpad0',
646
+ special: []
647
+ },
648
+ {
649
+ key: '/',
650
+ keyCode: 111,
651
+ code: 'NumpadDivide',
652
+ special: []
653
+ },
654
+ {
655
+ key: '*',
656
+ keyCode: 106,
657
+ code: 'NumpadMultiply',
658
+ special: []
659
+ },
660
+ {
661
+ key: '-',
662
+ keyCode: 109,
663
+ code: 'NumpadSubtract',
664
+ special: []
665
+ },
666
+ {
667
+ key: '+',
668
+ keyCode: 107,
669
+ code: 'NumpadAdd',
670
+ special: []
671
+ },
672
+ {
673
+ key: '.',
674
+ keyCode: 110,
675
+ code: 'NumpadComma',
676
+ special: []
677
+ },
678
+ {
679
+ key: ',',
680
+ keyCode: 108,
681
+ code: 'NumpadDecimal',
682
+ special: []
683
+ },
684
+ {
685
+ key: (shift) ? '"' : "'",
686
+ keyCode: 192,
687
+ code: 'Backquote',
688
+ special: []
689
+ },
690
+ {
691
+ key: (shift) ? '!' : '1',
692
+ keyCode: 49,
693
+ code: 'Digit1',
694
+ special: []
695
+ },
696
+ {
697
+ key: (shift) ? '@' : '2',
698
+ keyCode: 50,
699
+ code: 'Digit2',
700
+ special: []
701
+ },
702
+ {
703
+ key: (shift) ? '#' : '3',
704
+ keyCode: 51,
705
+ code: 'Digit3',
706
+ special: []
707
+ },
708
+ {
709
+ key: (shift) ? '$' : '4',
710
+ keyCode: 52,
711
+ code: 'Digit4',
712
+ special: []
713
+ },
714
+ {
715
+ key: (shift) ? '%' : '5',
716
+ keyCode: 53,
717
+ code: 'Digit5',
718
+ special: []
719
+ },
720
+ {
721
+ key: '6',
722
+ keyCode: 54,
723
+ code: 'Digit6',
724
+ special: []
725
+ },
726
+ {
727
+ key: (shift) ? '&' : '7',
728
+ keyCode: 55,
729
+ code: 'Digit7',
730
+ special: []
731
+ },
732
+ {
733
+ key: (shift) ? '*' : '8',
734
+ keyCode: 56,
735
+ code: 'Digit8',
736
+ special: []
737
+ },
738
+ {
739
+ key: (shift) ? '(' : '9',
740
+ keyCode: 57,
741
+ code: 'Digit9',
742
+ special: []
743
+ },
744
+ {
745
+ key: (shift) ? ')' : '0',
746
+ keyCode: 48,
747
+ code: 'Digit0',
748
+ special: []
749
+ },
750
+ {
751
+ key: (shift) ? '_' : '-',
752
+ keyCode: 189,
753
+ code: 'Minus',
754
+ special: []
755
+ },
756
+ {
757
+ key: (altGraph) ? '§' : ((shift) ? '+' : '='),
758
+ keyCode: 187,
759
+ code: 'Equal',
760
+ special: []
761
+ },
762
+ {
763
+ key: (shift) ? '<' : ',',
764
+ keyCode: 188,
765
+ code: 'Comma',
766
+ special: []
767
+ },
768
+ {
769
+ key: (shift) ? '>' : '.',
770
+ keyCode: 190,
771
+ code: 'Period',
772
+ special: []
773
+ },
774
+ {
775
+ key: (shift) ? ':' : ';',
776
+ keyCode: 191,
777
+ code: 'Slash',
778
+ special: []
779
+ },
780
+ {
781
+ key: (altGraph) ? '°' : ((shift) ? '?' : '/'),
782
+ keyCode: 191,
783
+ code: 'IntlRo',
784
+ special: []
785
+ },
786
+ {
787
+ key: (altGraph) ? 'º' : ((shift) ? '}' : ']'),
788
+ keyCode: 220,
789
+ code: 'Backslash',
790
+ special: []
791
+ },
792
+ {
793
+ key: (altGraph) ? 'ª' : ((shift) ? '{' : '['),
794
+ keyCode: 221,
795
+ code: 'BracketRight',
796
+ special: []
797
+ }
798
+ ]; };