@keymanapp/common-types 17.0.154-alpha → 17.0.156-alpha

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 (246) hide show
  1. package/build/src/consts/virtual-key-constants.d.ts +144 -138
  2. package/build/src/consts/virtual-key-constants.d.ts.map +1 -1
  3. package/build/src/consts/virtual-key-constants.js +258 -252
  4. package/build/src/consts/virtual-key-constants.js.map +1 -1
  5. package/build/src/keyman-touch-layout/keyman-touch-layout-file-reader.d.ts +8 -7
  6. package/build/src/keyman-touch-layout/keyman-touch-layout-file-reader.d.ts.map +1 -1
  7. package/build/src/keyman-touch-layout/keyman-touch-layout-file-reader.js +76 -74
  8. package/build/src/keyman-touch-layout/keyman-touch-layout-file-reader.js.map +1 -1
  9. package/build/src/keyman-touch-layout/keyman-touch-layout-file-writer.d.ts +31 -24
  10. package/build/src/keyman-touch-layout/keyman-touch-layout-file-writer.d.ts.map +1 -1
  11. package/build/src/keyman-touch-layout/keyman-touch-layout-file-writer.js +119 -75
  12. package/build/src/keyman-touch-layout/keyman-touch-layout-file-writer.js.map +1 -1
  13. package/build/src/keyman-touch-layout/keyman-touch-layout-file.d.ts +78 -76
  14. package/build/src/keyman-touch-layout/keyman-touch-layout-file.d.ts.map +1 -1
  15. package/build/src/keyman-touch-layout/keyman-touch-layout-file.js +28 -26
  16. package/build/src/keyman-touch-layout/keyman-touch-layout-file.js.map +1 -1
  17. package/build/src/kmx/element-string.d.ts +26 -24
  18. package/build/src/kmx/element-string.d.ts.map +1 -1
  19. package/build/src/kmx/element-string.js +121 -119
  20. package/build/src/kmx/element-string.js.map +1 -1
  21. package/build/src/kmx/keyman-targets.d.ts +23 -0
  22. package/build/src/kmx/keyman-targets.d.ts.map +1 -0
  23. package/build/src/kmx/keyman-targets.js +80 -0
  24. package/build/src/kmx/keyman-targets.js.map +1 -0
  25. package/build/src/kmx/kmx-builder.d.ts +35 -33
  26. package/build/src/kmx/kmx-builder.d.ts.map +1 -1
  27. package/build/src/kmx/kmx-builder.js +190 -188
  28. package/build/src/kmx/kmx-builder.js.map +1 -1
  29. package/build/src/kmx/kmx-file-reader.d.ts +16 -7
  30. package/build/src/kmx/kmx-file-reader.d.ts.map +1 -1
  31. package/build/src/kmx/kmx-file-reader.js +135 -38
  32. package/build/src/kmx/kmx-file-reader.js.map +1 -1
  33. package/build/src/kmx/kmx-plus-builder/build-disp.d.ts +20 -18
  34. package/build/src/kmx/kmx-plus-builder/build-disp.d.ts.map +1 -1
  35. package/build/src/kmx/kmx-plus-builder/build-disp.js +27 -25
  36. package/build/src/kmx/kmx-plus-builder/build-disp.js.map +1 -1
  37. package/build/src/kmx/kmx-plus-builder/build-elem.d.ts +31 -29
  38. package/build/src/kmx/kmx-plus-builder/build-elem.d.ts.map +1 -1
  39. package/build/src/kmx/kmx-plus-builder/build-elem.js +90 -88
  40. package/build/src/kmx/kmx-plus-builder/build-elem.js.map +1 -1
  41. package/build/src/kmx/kmx-plus-builder/build-keys.d.ts +60 -58
  42. package/build/src/kmx/kmx-plus-builder/build-keys.d.ts.map +1 -1
  43. package/build/src/kmx/kmx-plus-builder/build-keys.js +109 -107
  44. package/build/src/kmx/kmx-plus-builder/build-keys.js.map +1 -1
  45. package/build/src/kmx/kmx-plus-builder/build-layr.d.ts +56 -54
  46. package/build/src/kmx/kmx-plus-builder/build-layr.d.ts.map +1 -1
  47. package/build/src/kmx/kmx-plus-builder/build-layr.js +101 -99
  48. package/build/src/kmx/kmx-plus-builder/build-layr.js.map +1 -1
  49. package/build/src/kmx/kmx-plus-builder/build-list.d.ts +38 -36
  50. package/build/src/kmx/kmx-plus-builder/build-list.d.ts.map +1 -1
  51. package/build/src/kmx/kmx-plus-builder/build-list.js +67 -65
  52. package/build/src/kmx/kmx-plus-builder/build-list.js.map +1 -1
  53. package/build/src/kmx/kmx-plus-builder/build-loca.d.ts +14 -12
  54. package/build/src/kmx/kmx-plus-builder/build-loca.d.ts.map +1 -1
  55. package/build/src/kmx/kmx-plus-builder/build-loca.js +22 -20
  56. package/build/src/kmx/kmx-plus-builder/build-loca.js.map +1 -1
  57. package/build/src/kmx/kmx-plus-builder/build-meta.d.ts +19 -17
  58. package/build/src/kmx/kmx-plus-builder/build-meta.d.ts.map +1 -1
  59. package/build/src/kmx/kmx-plus-builder/build-meta.js +23 -21
  60. package/build/src/kmx/kmx-plus-builder/build-meta.js.map +1 -1
  61. package/build/src/kmx/kmx-plus-builder/build-name.d.ts +14 -12
  62. package/build/src/kmx/kmx-plus-builder/build-name.d.ts.map +1 -1
  63. package/build/src/kmx/kmx-plus-builder/build-name.js +25 -23
  64. package/build/src/kmx/kmx-plus-builder/build-name.js.map +1 -1
  65. package/build/src/kmx/kmx-plus-builder/build-sect.d.ts +18 -16
  66. package/build/src/kmx/kmx-plus-builder/build-sect.d.ts.map +1 -1
  67. package/build/src/kmx/kmx-plus-builder/build-sect.js +16 -14
  68. package/build/src/kmx/kmx-plus-builder/build-sect.js.map +1 -1
  69. package/build/src/kmx/kmx-plus-builder/build-strs.d.ts +25 -23
  70. package/build/src/kmx/kmx-plus-builder/build-strs.d.ts.map +1 -1
  71. package/build/src/kmx/kmx-plus-builder/build-strs.js +47 -45
  72. package/build/src/kmx/kmx-plus-builder/build-strs.js.map +1 -1
  73. package/build/src/kmx/kmx-plus-builder/build-tran.d.ts +35 -33
  74. package/build/src/kmx/kmx-plus-builder/build-tran.d.ts.map +1 -1
  75. package/build/src/kmx/kmx-plus-builder/build-tran.js +70 -68
  76. package/build/src/kmx/kmx-plus-builder/build-tran.js.map +1 -1
  77. package/build/src/kmx/kmx-plus-builder/build-uset.d.ts +33 -31
  78. package/build/src/kmx/kmx-plus-builder/build-uset.d.ts.map +1 -1
  79. package/build/src/kmx/kmx-plus-builder/build-uset.js +61 -59
  80. package/build/src/kmx/kmx-plus-builder/build-uset.js.map +1 -1
  81. package/build/src/kmx/kmx-plus-builder/build-vars.d.ts +24 -22
  82. package/build/src/kmx/kmx-plus-builder/build-vars.d.ts.map +1 -1
  83. package/build/src/kmx/kmx-plus-builder/build-vars.js +49 -47
  84. package/build/src/kmx/kmx-plus-builder/build-vars.js.map +1 -1
  85. package/build/src/kmx/kmx-plus-builder/build-vkey.d.ts +18 -16
  86. package/build/src/kmx/kmx-plus-builder/build-vkey.d.ts.map +1 -1
  87. package/build/src/kmx/kmx-plus-builder/build-vkey.js +25 -23
  88. package/build/src/kmx/kmx-plus-builder/build-vkey.js.map +1 -1
  89. package/build/src/kmx/kmx-plus-builder/builder-section.d.ts +12 -10
  90. package/build/src/kmx/kmx-plus-builder/builder-section.d.ts.map +1 -1
  91. package/build/src/kmx/kmx-plus-builder/builder-section.js +5 -3
  92. package/build/src/kmx/kmx-plus-builder/builder-section.js.map +1 -1
  93. package/build/src/kmx/kmx-plus-builder/kmx-plus-builder.d.ts +49 -47
  94. package/build/src/kmx/kmx-plus-builder/kmx-plus-builder.d.ts.map +1 -1
  95. package/build/src/kmx/kmx-plus-builder/kmx-plus-builder.js +146 -144
  96. package/build/src/kmx/kmx-plus-builder/kmx-plus-builder.js.map +1 -1
  97. package/build/src/kmx/kmx-plus.d.ts +331 -329
  98. package/build/src/kmx/kmx-plus.d.ts.map +1 -1
  99. package/build/src/kmx/kmx-plus.js +835 -833
  100. package/build/src/kmx/kmx-plus.js.map +1 -1
  101. package/build/src/kmx/kmx.d.ts +235 -209
  102. package/build/src/kmx/kmx.d.ts.map +1 -1
  103. package/build/src/kmx/kmx.js +299 -276
  104. package/build/src/kmx/kmx.js.map +1 -1
  105. package/build/src/kmx/string-list.d.ts +36 -34
  106. package/build/src/kmx/string-list.d.ts.map +1 -1
  107. package/build/src/kmx/string-list.js +85 -83
  108. package/build/src/kmx/string-list.js.map +1 -1
  109. package/build/src/kpj/keyman-developer-project.d.ts +74 -63
  110. package/build/src/kpj/keyman-developer-project.d.ts.map +1 -1
  111. package/build/src/kpj/keyman-developer-project.js +165 -146
  112. package/build/src/kpj/keyman-developer-project.js.map +1 -1
  113. package/build/src/kpj/kpj-file-reader.d.ts +21 -19
  114. package/build/src/kpj/kpj-file-reader.d.ts.map +1 -1
  115. package/build/src/kpj/kpj-file-reader.js +110 -96
  116. package/build/src/kpj/kpj-file-reader.js.map +1 -1
  117. package/build/src/kpj/kpj-file.d.ts +41 -39
  118. package/build/src/kpj/kpj-file.d.ts.map +1 -1
  119. package/build/src/kpj/kpj-file.js +13 -11
  120. package/build/src/kpj/kpj-file.js.map +1 -1
  121. package/build/src/kvk/kvk-file-reader.d.ts +7 -5
  122. package/build/src/kvk/kvk-file-reader.d.ts.map +1 -1
  123. package/build/src/kvk/kvk-file-reader.js +38 -35
  124. package/build/src/kvk/kvk-file-reader.js.map +1 -1
  125. package/build/src/kvk/kvk-file-writer.d.ts +22 -20
  126. package/build/src/kvk/kvk-file-writer.d.ts.map +1 -1
  127. package/build/src/kvk/kvk-file-writer.js +78 -67
  128. package/build/src/kvk/kvk-file-writer.js.map +1 -1
  129. package/build/src/kvk/kvk-file.d.ts +68 -65
  130. package/build/src/kvk/kvk-file.d.ts.map +1 -1
  131. package/build/src/kvk/kvk-file.js +67 -64
  132. package/build/src/kvk/kvk-file.js.map +1 -1
  133. package/build/src/kvk/kvks-file-reader.d.ts +26 -23
  134. package/build/src/kvk/kvks-file-reader.d.ts.map +1 -1
  135. package/build/src/kvk/kvks-file-reader.js +179 -151
  136. package/build/src/kvk/kvks-file-reader.js.map +1 -1
  137. package/build/src/kvk/kvks-file-writer.d.ts +9 -6
  138. package/build/src/kvk/kvks-file-writer.d.ts.map +1 -1
  139. package/build/src/kvk/kvks-file-writer.js +107 -98
  140. package/build/src/kvk/kvks-file-writer.js.map +1 -1
  141. package/build/src/kvk/kvks-file.d.ts +46 -44
  142. package/build/src/kvk/kvks-file.d.ts.map +1 -1
  143. package/build/src/kvk/kvks-file.js +12 -10
  144. package/build/src/kvk/kvks-file.js.map +1 -1
  145. package/build/src/kvk/visual-keyboard.d.ts +47 -35
  146. package/build/src/kvk/visual-keyboard.d.ts.map +1 -1
  147. package/build/src/kvk/visual-keyboard.js +73 -61
  148. package/build/src/kvk/visual-keyboard.js.map +1 -1
  149. package/build/src/ldml-keyboard/ldml-keyboard-testdata-xml.d.ts +58 -56
  150. package/build/src/ldml-keyboard/ldml-keyboard-testdata-xml.d.ts.map +1 -1
  151. package/build/src/ldml-keyboard/ldml-keyboard-testdata-xml.js +22 -20
  152. package/build/src/ldml-keyboard/ldml-keyboard-testdata-xml.js.map +1 -1
  153. package/build/src/ldml-keyboard/ldml-keyboard-xml-reader.d.ts +97 -95
  154. package/build/src/ldml-keyboard/ldml-keyboard-xml-reader.d.ts.map +1 -1
  155. package/build/src/ldml-keyboard/ldml-keyboard-xml-reader.js +387 -385
  156. package/build/src/ldml-keyboard/ldml-keyboard-xml-reader.js.map +1 -1
  157. package/build/src/ldml-keyboard/ldml-keyboard-xml.d.ts +163 -161
  158. package/build/src/ldml-keyboard/ldml-keyboard-xml.d.ts.map +1 -1
  159. package/build/src/ldml-keyboard/ldml-keyboard-xml.js +41 -39
  160. package/build/src/ldml-keyboard/ldml-keyboard-xml.js.map +1 -1
  161. package/build/src/ldml-keyboard/pattern-parser.d.ts +138 -136
  162. package/build/src/ldml-keyboard/pattern-parser.d.ts.map +1 -1
  163. package/build/src/ldml-keyboard/pattern-parser.js +245 -243
  164. package/build/src/ldml-keyboard/pattern-parser.js.map +1 -1
  165. package/build/src/ldml-keyboard/unicodeset-parser-api.d.ts +40 -38
  166. package/build/src/ldml-keyboard/unicodeset-parser-api.d.ts.map +1 -1
  167. package/build/src/ldml-keyboard/unicodeset-parser-api.js +30 -28
  168. package/build/src/ldml-keyboard/unicodeset-parser-api.js.map +1 -1
  169. package/build/src/main.d.ts +36 -29
  170. package/build/src/main.d.ts.map +1 -1
  171. package/build/src/main.js +35 -28
  172. package/build/src/main.js.map +1 -1
  173. package/build/src/osk/osk.d.ts +25 -0
  174. package/build/src/osk/osk.d.ts.map +1 -0
  175. package/build/src/osk/osk.js +89 -0
  176. package/build/src/osk/osk.js.map +1 -0
  177. package/build/src/package/kmp-json-file.d.ts +69 -68
  178. package/build/src/package/kmp-json-file.d.ts.map +1 -1
  179. package/build/src/package/kmp-json-file.js +4 -2
  180. package/build/src/package/kmp-json-file.js.map +1 -1
  181. package/build/src/package/kps-file.d.ts +100 -98
  182. package/build/src/package/kps-file.d.ts.map +1 -1
  183. package/build/src/package/kps-file.js +18 -16
  184. package/build/src/package/kps-file.js.map +1 -1
  185. package/build/src/schemas/displaymap.schema.d.ts +60 -0
  186. package/build/src/schemas/displaymap.schema.d.ts.map +1 -0
  187. package/build/src/schemas/displaymap.schema.js +38 -0
  188. package/build/src/schemas/displaymap.schema.js.map +1 -0
  189. package/build/src/schemas/keyman-touch-layout.clean.spec.d.ts +230 -0
  190. package/build/src/schemas/keyman-touch-layout.clean.spec.d.ts.map +1 -0
  191. package/build/src/schemas/keyman-touch-layout.clean.spec.js +154 -0
  192. package/build/src/schemas/keyman-touch-layout.clean.spec.js.map +1 -0
  193. package/build/src/schemas/keyman-touch-layout.spec.d.ts +229 -0
  194. package/build/src/schemas/keyman-touch-layout.spec.d.ts.map +1 -0
  195. package/build/src/schemas/keyman-touch-layout.spec.js +142 -0
  196. package/build/src/schemas/keyman-touch-layout.spec.js.map +1 -0
  197. package/build/src/schemas/kpj-9.0.schema.d.ts +155 -0
  198. package/build/src/schemas/kpj-9.0.schema.d.ts.map +1 -0
  199. package/build/src/schemas/kpj-9.0.schema.js +134 -0
  200. package/build/src/schemas/kpj-9.0.schema.js.map +1 -0
  201. package/build/src/schemas/kpj.schema.d.ts +121 -0
  202. package/build/src/schemas/kpj.schema.d.ts.map +1 -0
  203. package/build/src/schemas/kpj.schema.js +128 -0
  204. package/build/src/schemas/kpj.schema.js.map +1 -0
  205. package/build/src/schemas/kvks.schema.d.ts +163 -0
  206. package/build/src/schemas/kvks.schema.d.ts.map +1 -0
  207. package/build/src/schemas/kvks.schema.js +185 -0
  208. package/build/src/schemas/kvks.schema.js.map +1 -0
  209. package/build/src/schemas/ldml-keyboard.schema.d.ts +634 -0
  210. package/build/src/schemas/ldml-keyboard.schema.d.ts.map +1 -0
  211. package/build/src/schemas/ldml-keyboard.schema.js +705 -0
  212. package/build/src/schemas/ldml-keyboard.schema.js.map +1 -0
  213. package/build/src/schemas/ldml-keyboardtest.schema.d.ts +191 -0
  214. package/build/src/schemas/ldml-keyboardtest.schema.d.ts.map +1 -0
  215. package/build/src/schemas/ldml-keyboardtest.schema.js +224 -0
  216. package/build/src/schemas/ldml-keyboardtest.schema.js.map +1 -0
  217. package/build/src/schemas.d.ts +1757 -0
  218. package/build/src/schemas.d.ts.map +1 -0
  219. package/build/src/schemas.js +22 -0
  220. package/build/src/schemas.js.map +1 -0
  221. package/build/src/util/common-events.d.ts +51 -49
  222. package/build/src/util/common-events.d.ts.map +1 -1
  223. package/build/src/util/common-events.js +31 -29
  224. package/build/src/util/common-events.js.map +1 -1
  225. package/build/src/util/compiler-interfaces.d.ts +296 -136
  226. package/build/src/util/compiler-interfaces.d.ts.map +1 -1
  227. package/build/src/util/compiler-interfaces.js +294 -104
  228. package/build/src/util/compiler-interfaces.js.map +1 -1
  229. package/build/src/util/errors.d.ts +8 -0
  230. package/build/src/util/errors.d.ts.map +1 -0
  231. package/build/src/util/errors.js +8 -0
  232. package/build/src/util/errors.js.map +1 -0
  233. package/build/src/util/file-types.d.ts +98 -0
  234. package/build/src/util/file-types.d.ts.map +1 -0
  235. package/build/src/util/file-types.js +117 -0
  236. package/build/src/util/file-types.js.map +1 -0
  237. package/build/src/util/util.d.ts +32 -30
  238. package/build/src/util/util.d.ts.map +1 -1
  239. package/build/src/util/util.js +98 -96
  240. package/build/src/util/util.js.map +1 -1
  241. package/package.json +23 -4
  242. package/build/src/keyman-touch-layout.clean.spec.json +0 -170
  243. package/build/src/kpj.schema.json +0 -127
  244. package/build/src/kvks.schema.json +0 -182
  245. package/build/src/ldml-keyboard.schema.json +0 -702
  246. package/build/src/ldml-keyboardtest.schema.json +0 -221
@@ -1,26 +1,28 @@
1
- //
2
- // .keyman-touch-layout JSON format
3
- //
4
- // Follows /common/schemas/keyman-touch-layout/keyman-touch-layout.spec.json for
5
- // reading and
6
- // /common/schemas/keyman-touch-layout/keyman-touch-layout.clean.spec.json for
7
- // writing
8
- //
9
- ;
10
- ;
11
- ;
12
- ;
13
- ;
14
- export var TouchLayoutKeySp;
15
- (function (TouchLayoutKeySp) {
16
- TouchLayoutKeySp[TouchLayoutKeySp["normal"] = 0] = "normal";
17
- TouchLayoutKeySp[TouchLayoutKeySp["special"] = 1] = "special";
18
- TouchLayoutKeySp[TouchLayoutKeySp["specialActive"] = 2] = "specialActive";
19
- TouchLayoutKeySp[TouchLayoutKeySp["deadkey"] = 8] = "deadkey";
20
- TouchLayoutKeySp[TouchLayoutKeySp["blank"] = 9] = "blank";
21
- TouchLayoutKeySp[TouchLayoutKeySp["spacer"] = 10] = "spacer";
22
- })(TouchLayoutKeySp || (TouchLayoutKeySp = {}));
23
- ;
24
- ;
25
- ;
26
- //# sourceMappingURL=keyman-touch-layout-file.js.map
1
+ //
2
+ // .keyman-touch-layout JSON format
3
+ //
4
+ // Follows /common/schemas/keyman-touch-layout/keyman-touch-layout.spec.json for
5
+ // reading and
6
+ // /common/schemas/keyman-touch-layout/keyman-touch-layout.clean.spec.json for
7
+ // writing
8
+ //
9
+ !function(){try{var e="undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{},n=(new Error).stack;n&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[n]="571883b2-c184-5ecc-ae68-6487ae6dfa63")}catch(e){}}();
10
+ ;
11
+ ;
12
+ ;
13
+ ;
14
+ ;
15
+ export var TouchLayoutKeySp;
16
+ (function (TouchLayoutKeySp) {
17
+ TouchLayoutKeySp[TouchLayoutKeySp["normal"] = 0] = "normal";
18
+ TouchLayoutKeySp[TouchLayoutKeySp["special"] = 1] = "special";
19
+ TouchLayoutKeySp[TouchLayoutKeySp["specialActive"] = 2] = "specialActive";
20
+ TouchLayoutKeySp[TouchLayoutKeySp["deadkey"] = 8] = "deadkey";
21
+ TouchLayoutKeySp[TouchLayoutKeySp["blank"] = 9] = "blank";
22
+ TouchLayoutKeySp[TouchLayoutKeySp["spacer"] = 10] = "spacer";
23
+ })(TouchLayoutKeySp || (TouchLayoutKeySp = {}));
24
+ ;
25
+ ;
26
+ ;
27
+ //# debugId=571883b2-c184-5ecc-ae68-6487ae6dfa63
28
+ //# sourceMappingURL=keyman-touch-layout-file.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"keyman-touch-layout-file.js","sourceRoot":"","sources":["../../../src/keyman-touch-layout/keyman-touch-layout-file.ts"],"names":[],"mappings":"AAAA,EAAE;AACF,mCAAmC;AACnC,EAAE;AACF,gFAAgF;AAChF,cAAc;AACd,8EAA8E;AAC9E,UAAU;AACV,EAAE;AAMD,CAAC;AAYD,CAAC;AAOD,CAAC;AAOD,CAAC;AAoBD,CAAC;AAEF,MAAM,CAAN,IAAY,gBAAwF;AAApG,WAAY,gBAAgB;IAAG,2DAAQ,CAAA;IAAE,6DAAS,CAAA;IAAE,yEAAe,CAAA;IAAE,6DAAS,CAAA;IAAE,yDAAO,CAAA;IAAE,4DAAS,CAAA;AAAC,CAAC,EAAxF,gBAAgB,KAAhB,gBAAgB,QAAwE;AAAA,CAAC;AAcpG,CAAC;AAWD,CAAC"}
1
+ {"debug_id":"571883b2-c184-5ecc-ae68-6487ae6dfa63","file":"keyman-touch-layout-file.js","mappings":";AAAA,EAAE;AACF,mCAAmC;AACnC,EAAE;AACF,gFAAgF;AAChF,cAAc;AACd,8EAA8E;AAC9E,UAAU;AACV,EAAE;AAMD,CAAC;AAYD,CAAC;AAOD,CAAC;AAOD,CAAC;AAoBD,CAAC;AAEF,MAAM,CAAN,IAAY,gBAAwF;AAApG,WAAY,gBAAgB;IAAG,2DAAQ,CAAA;IAAE,6DAAS,CAAA;IAAE,yEAAe,CAAA;IAAE,6DAAS,CAAA;IAAE,yDAAO,CAAA;IAAE,4DAAS,CAAA;AAAC,CAAC,EAAxF,gBAAgB,KAAhB,gBAAgB,QAAwE;AAAA,CAAC;AAcpG,CAAC;AAWD,CAAC","names":[],"sourceRoot":"","sources":["../../../src/keyman-touch-layout/keyman-touch-layout-file.ts"],"version":3}
@@ -1,24 +1,26 @@
1
- import { DependencySections, StrsItem, UsetItem } from './kmx-plus.js';
2
- export declare enum ElemElementFlags {
3
- none = 0,
4
- type,
5
- tertiary_base,
6
- prebase
7
- }
8
- export declare class ElemElement {
9
- value?: StrsItem;
10
- uset?: UsetItem;
11
- order: number;
12
- tertiary: number;
13
- flags: ElemElementFlags;
14
- isEqual(a: ElemElement): boolean;
15
- }
16
- export declare class ElementString extends Array<ElemElement> {
17
- /**
18
- * @param source if a string array, does not get reinterpreted as UnicodeSet. This is used with vars, etc. Or pass `["str"]` for an explicit 1-element elem.
19
- * If it is a string, will be interpreted per reorder element rules.
20
- */
21
- constructor(sections: DependencySections, source: string | string[], order?: string, tertiary?: string, tertiary_base?: string, prebase?: string);
22
- isEqual(a: ElementString): boolean;
23
- }
24
- //# sourceMappingURL=element-string.d.ts.map
1
+ !function(){try{var e="undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{},n=(new Error).stack;n&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[n]="e1e6c8e0-d2d9-5477-8cc3-f0e295dbf819")}catch(e){}}();
2
+ import { DependencySections, StrsItem, UsetItem } from './kmx-plus.js';
3
+ export declare enum ElemElementFlags {
4
+ none = 0,
5
+ type,
6
+ tertiary_base,
7
+ prebase
8
+ }
9
+ export declare class ElemElement {
10
+ value?: StrsItem;
11
+ uset?: UsetItem;
12
+ order: number;
13
+ tertiary: number;
14
+ flags: ElemElementFlags;
15
+ isEqual(a: ElemElement): boolean;
16
+ }
17
+ export declare class ElementString extends Array<ElemElement> {
18
+ /**
19
+ * @param source if a string array, does not get reinterpreted as UnicodeSet. This is used with vars, etc. Or pass `["str"]` for an explicit 1-element elem.
20
+ * If it is a string, will be interpreted per reorder element rules.
21
+ */
22
+ constructor(sections: DependencySections, source: string | string[], order?: string, tertiary?: string, tertiary_base?: string, prebase?: string);
23
+ isEqual(a: ElementString): boolean;
24
+ }
25
+ //# debugId=e1e6c8e0-d2d9-5477-8cc3-f0e295dbf819
26
+ //# sourceMappingURL=element-string.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"element-string.d.ts","sourceRoot":"","sources":["../../../src/kmx/element-string.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,kBAAkB,EAAE,QAAQ,EAAE,QAAQ,EAAE,MAAM,eAAe,CAAC;AAIvE,oBAAY,gBAAgB;IAC1B,IAAI,IAAI;IACR,IAAgC;IAChC,aAAkD;IAClD,OAAsC;CACvC;AAGD,qBAAa,WAAW;IACtB,KAAK,CAAC,EAAE,QAAQ,CAAC;IACjB,IAAI,CAAC,EAAE,QAAQ,CAAC;IAChB,KAAK,EAAE,MAAM,CAAC;IACd,QAAQ,EAAE,MAAM,CAAC;IACjB,KAAK,EAAE,gBAAgB,CAAC;IACxB,OAAO,CAAC,CAAC,EAAE,WAAW;CAMvB;AAGD,qBAAa,aAAc,SAAQ,KAAK,CAAC,WAAW,CAAC;IACnD;;;OAGG;gBACS,QAAQ,EAAE,kBAAkB,EAAE,MAAM,EAAE,MAAM,GAAG,MAAM,EAAE,EAAE,KAAK,CAAC,EAAE,MAAM,EAAE,QAAQ,CAAC,EAAE,MAAM,EAAE,aAAa,CAAC,EAAE,MAAM,EAAE,OAAO,CAAC,EAAE,MAAM;IA4EhJ,OAAO,CAAC,CAAC,EAAE,aAAa,GAAG,OAAO;CAWnC"}
1
+ {"debug_id":"e1e6c8e0-d2d9-5477-8cc3-f0e295dbf819","file":"element-string.d.ts","mappings":";AACA,OAAO,EAAE,kBAAkB,EAAE,QAAQ,EAAE,QAAQ,EAAE,MAAM,eAAe,CAAC;AAIvE,oBAAY,gBAAgB;IAC1B,IAAI,IAAI;IACR,IAAgC;IAChC,aAAkD;IAClD,OAAsC;CACvC;AAGD,qBAAa,WAAW;IACtB,KAAK,CAAC,EAAE,QAAQ,CAAC;IACjB,IAAI,CAAC,EAAE,QAAQ,CAAC;IAChB,KAAK,EAAE,MAAM,CAAC;IACd,QAAQ,EAAE,MAAM,CAAC;IACjB,KAAK,EAAE,gBAAgB,CAAC;IACxB,OAAO,CAAC,CAAC,EAAE,WAAW;CAMvB;AAGD,qBAAa,aAAc,SAAQ,KAAK,CAAC,WAAW,CAAC;IACnD;;;OAGG;gBACS,QAAQ,EAAE,kBAAkB,EAAE,MAAM,EAAE,MAAM,GAAG,MAAM,EAAE,EAAE,KAAK,CAAC,EAAE,MAAM,EAAE,QAAQ,CAAC,EAAE,MAAM,EAAE,aAAa,CAAC,EAAE,MAAM,EAAE,OAAO,CAAC,EAAE,MAAM;IA4EhJ,OAAO,CAAC,CAAC,EAAE,aAAa,GAAG,OAAO;CAWnC","names":[],"sourceRoot":"","sources":["../../../src/kmx/element-string.ts"],"version":3}
@@ -1,119 +1,121 @@
1
- import { constants } from '@keymanapp/ldml-keyboard-constants';
2
- import { ElementParser, ElementSegment, ElementType } from '../ldml-keyboard/pattern-parser.js';
3
- import { MATCH_HEX_ESCAPE, unescapeOneQuadString } from '../util/util.js';
4
- export var ElemElementFlags;
5
- (function (ElemElementFlags) {
6
- ElemElementFlags[ElemElementFlags["none"] = 0] = "none";
7
- ElemElementFlags[ElemElementFlags["type"] = constants.elem_flags_type] = "type";
8
- ElemElementFlags[ElemElementFlags["tertiary_base"] = constants.elem_flags_tertiary_base] = "tertiary_base";
9
- ElemElementFlags[ElemElementFlags["prebase"] = constants.elem_flags_prebase] = "prebase";
10
- })(ElemElementFlags || (ElemElementFlags = {}));
11
- ;
12
- export class ElemElement {
13
- value; // UnicodeSet or UCS32LE character
14
- uset;
15
- order; // -128 to +127; used only by reorder element values
16
- tertiary; // -128 to +127; used only by reorder element values
17
- flags;
18
- isEqual(a) {
19
- return a.value === this.value &&
20
- a.order === this.order &&
21
- a.tertiary === this.tertiary &&
22
- a.flags === this.flags;
23
- }
24
- }
25
- ;
26
- export class ElementString extends Array {
27
- /**
28
- * @param source if a string array, does not get reinterpreted as UnicodeSet. This is used with vars, etc. Or pass `["str"]` for an explicit 1-element elem.
29
- * If it is a string, will be interpreted per reorder element rules.
30
- */
31
- constructor(sections, source, order, tertiary, tertiary_base, prebase) {
32
- super();
33
- //TODO-LDML: full UnicodeSet and parsing
34
- if (!source) {
35
- return;
36
- }
37
- let items;
38
- if (Array.isArray(source)) {
39
- items = source.map(segment => new ElementSegment(segment, ElementType.string));
40
- }
41
- else {
42
- // use segmenter to analyze each part
43
- items = ElementParser.segment(source);
44
- }
45
- let orders = order ? order.split(" ") : [];
46
- if (orders.length == 1) {
47
- orders = Array(items.length).fill(orders[0]);
48
- }
49
- let tertiaries = tertiary ? tertiary.split(" ") : [];
50
- if (tertiaries.length == 1) {
51
- tertiaries = Array(items.length).fill(tertiaries[0]);
52
- }
53
- let tertiary_bases = tertiary_base ? tertiary_base.split(" ") : [];
54
- if (tertiary_bases.length == 1) {
55
- tertiary_bases = Array(items.length).fill(tertiary_bases[0]);
56
- }
57
- let prebases = prebase ? prebase.split(" ") : [];
58
- if (prebases.length == 1) {
59
- prebases = Array(items.length).fill(prebases[0]);
60
- }
61
- for (let i = 0; i < items.length; i++) {
62
- let elem = new ElemElement();
63
- const item = items[i];
64
- let typeFlag = 0;
65
- if (item.type === ElementType.uset) {
66
- typeFlag |= constants.elem_flags_type_uset;
67
- // TODO-LDML: err on max buffer size
68
- const needRanges = sections.usetparser.sizeUnicodeSet(item.segment);
69
- const uset = sections.usetparser.parseUnicodeSet(item.segment, needRanges);
70
- if (!uset) {
71
- // TODO-LDML - error callback
72
- throw Error(`Could not parse uset ${item.segment}`);
73
- }
74
- elem.uset = sections.uset.allocUset(uset, sections);
75
- elem.value = sections.strs.allocString('', true); // no string
76
- }
77
- else if (item.type === ElementType.codepoint || item.type === ElementType.escaped || item.type === ElementType.string) {
78
- // some kind of a string
79
- let str = item.segment;
80
- if (item.type === ElementType.escaped && !MATCH_HEX_ESCAPE.test(str)) {
81
- str = unescapeOneQuadString(str);
82
- // TODO-LDML: any other escape forms here?
83
- elem.value = sections.strs.allocString(str, true);
84
- }
85
- else {
86
- elem.value = sections.strs.allocAndUnescapeString(str, true);
87
- }
88
- // Now did we end up with one char or no?
89
- if (elem.value.isOneChar) {
90
- typeFlag |= constants.elem_flags_type_char;
91
- }
92
- else {
93
- typeFlag |= constants.elem_flags_type_str;
94
- }
95
- }
96
- elem.order = orders.length ? parseInt(orders[i], 10) : 0;
97
- elem.tertiary = tertiaries.length ? parseInt(tertiaries[i], 10) : 0;
98
- elem.flags = ElemElementFlags.none |
99
- (ElemElementFlags.type & typeFlag) |
100
- (tertiary_bases?.[i] == '1' /* TODO-LDML: or 'true'? */ ? ElemElementFlags.tertiary_base : 0) |
101
- (prebases?.[i] == '1' /* TODO-LDML: or 'true'? */ ? ElemElementFlags.prebase : 0);
102
- this.push(elem);
103
- }
104
- ;
105
- }
106
- isEqual(a) {
107
- if (a.length != this.length) {
108
- return false;
109
- }
110
- for (let i = 0; i < a.length; i++) {
111
- if (!this[i].isEqual(a[i])) {
112
- return false;
113
- }
114
- }
115
- return true;
116
- }
117
- }
118
- ;
119
- //# sourceMappingURL=element-string.js.map
1
+ !function(){try{var e="undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{},n=(new Error).stack;n&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[n]="4ecc1bab-9598-583d-b091-0668dac37d71")}catch(e){}}();
2
+ import { constants } from '@keymanapp/ldml-keyboard-constants';
3
+ import { ElementParser, ElementSegment, ElementType } from '../ldml-keyboard/pattern-parser.js';
4
+ import { MATCH_HEX_ESCAPE, unescapeOneQuadString } from '../util/util.js';
5
+ export var ElemElementFlags;
6
+ (function (ElemElementFlags) {
7
+ ElemElementFlags[ElemElementFlags["none"] = 0] = "none";
8
+ ElemElementFlags[ElemElementFlags["type"] = constants.elem_flags_type] = "type";
9
+ ElemElementFlags[ElemElementFlags["tertiary_base"] = constants.elem_flags_tertiary_base] = "tertiary_base";
10
+ ElemElementFlags[ElemElementFlags["prebase"] = constants.elem_flags_prebase] = "prebase";
11
+ })(ElemElementFlags || (ElemElementFlags = {}));
12
+ ;
13
+ export class ElemElement {
14
+ value; // UnicodeSet or UCS32LE character
15
+ uset;
16
+ order; // -128 to +127; used only by reorder element values
17
+ tertiary; // -128 to +127; used only by reorder element values
18
+ flags;
19
+ isEqual(a) {
20
+ return a.value === this.value &&
21
+ a.order === this.order &&
22
+ a.tertiary === this.tertiary &&
23
+ a.flags === this.flags;
24
+ }
25
+ }
26
+ ;
27
+ export class ElementString extends Array {
28
+ /**
29
+ * @param source if a string array, does not get reinterpreted as UnicodeSet. This is used with vars, etc. Or pass `["str"]` for an explicit 1-element elem.
30
+ * If it is a string, will be interpreted per reorder element rules.
31
+ */
32
+ constructor(sections, source, order, tertiary, tertiary_base, prebase) {
33
+ super();
34
+ //TODO-LDML: full UnicodeSet and parsing
35
+ if (!source) {
36
+ return;
37
+ }
38
+ let items;
39
+ if (Array.isArray(source)) {
40
+ items = source.map(segment => new ElementSegment(segment, ElementType.string));
41
+ }
42
+ else {
43
+ // use segmenter to analyze each part
44
+ items = ElementParser.segment(source);
45
+ }
46
+ let orders = order ? order.split(" ") : [];
47
+ if (orders.length == 1) {
48
+ orders = Array(items.length).fill(orders[0]);
49
+ }
50
+ let tertiaries = tertiary ? tertiary.split(" ") : [];
51
+ if (tertiaries.length == 1) {
52
+ tertiaries = Array(items.length).fill(tertiaries[0]);
53
+ }
54
+ let tertiary_bases = tertiary_base ? tertiary_base.split(" ") : [];
55
+ if (tertiary_bases.length == 1) {
56
+ tertiary_bases = Array(items.length).fill(tertiary_bases[0]);
57
+ }
58
+ let prebases = prebase ? prebase.split(" ") : [];
59
+ if (prebases.length == 1) {
60
+ prebases = Array(items.length).fill(prebases[0]);
61
+ }
62
+ for (let i = 0; i < items.length; i++) {
63
+ let elem = new ElemElement();
64
+ const item = items[i];
65
+ let typeFlag = 0;
66
+ if (item.type === ElementType.uset) {
67
+ typeFlag |= constants.elem_flags_type_uset;
68
+ // TODO-LDML: err on max buffer size
69
+ const needRanges = sections.usetparser.sizeUnicodeSet(item.segment);
70
+ const uset = sections.usetparser.parseUnicodeSet(item.segment, needRanges);
71
+ if (!uset) {
72
+ // TODO-LDML - error callback
73
+ throw Error(`Could not parse uset ${item.segment}`);
74
+ }
75
+ elem.uset = sections.uset.allocUset(uset, sections);
76
+ elem.value = sections.strs.allocString('', true); // no string
77
+ }
78
+ else if (item.type === ElementType.codepoint || item.type === ElementType.escaped || item.type === ElementType.string) {
79
+ // some kind of a string
80
+ let str = item.segment;
81
+ if (item.type === ElementType.escaped && !MATCH_HEX_ESCAPE.test(str)) {
82
+ str = unescapeOneQuadString(str);
83
+ // TODO-LDML: any other escape forms here?
84
+ elem.value = sections.strs.allocString(str, true);
85
+ }
86
+ else {
87
+ elem.value = sections.strs.allocAndUnescapeString(str, true);
88
+ }
89
+ // Now did we end up with one char or no?
90
+ if (elem.value.isOneChar) {
91
+ typeFlag |= constants.elem_flags_type_char;
92
+ }
93
+ else {
94
+ typeFlag |= constants.elem_flags_type_str;
95
+ }
96
+ }
97
+ elem.order = orders.length ? parseInt(orders[i], 10) : 0;
98
+ elem.tertiary = tertiaries.length ? parseInt(tertiaries[i], 10) : 0;
99
+ elem.flags = ElemElementFlags.none |
100
+ (ElemElementFlags.type & typeFlag) |
101
+ (tertiary_bases?.[i] == '1' /* TODO-LDML: or 'true'? */ ? ElemElementFlags.tertiary_base : 0) |
102
+ (prebases?.[i] == '1' /* TODO-LDML: or 'true'? */ ? ElemElementFlags.prebase : 0);
103
+ this.push(elem);
104
+ }
105
+ ;
106
+ }
107
+ isEqual(a) {
108
+ if (a.length != this.length) {
109
+ return false;
110
+ }
111
+ for (let i = 0; i < a.length; i++) {
112
+ if (!this[i].isEqual(a[i])) {
113
+ return false;
114
+ }
115
+ }
116
+ return true;
117
+ }
118
+ }
119
+ ;
120
+ //# debugId=4ecc1bab-9598-583d-b091-0668dac37d71
121
+ //# sourceMappingURL=element-string.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"element-string.js","sourceRoot":"","sources":["../../../src/kmx/element-string.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,MAAM,oCAAoC,CAAC;AAE/D,OAAO,EAAE,aAAa,EAAE,cAAc,EAAE,WAAW,EAAE,MAAM,oCAAoC,CAAC;AAChG,OAAO,EAAE,gBAAgB,EAAE,qBAAqB,EAAE,MAAM,iBAAiB,CAAC;AAE1E,MAAM,CAAN,IAAY,gBAKX;AALD,WAAY,gBAAgB;IAC1B,uDAAQ,CAAA;IACR,4CAAO,SAAS,CAAC,eAAe,UAAA,CAAA;IAChC,qDAAgB,SAAS,CAAC,wBAAwB,mBAAA,CAAA;IAClD,+CAAU,SAAS,CAAC,kBAAkB,aAAA,CAAA;AACxC,CAAC,EALW,gBAAgB,KAAhB,gBAAgB,QAK3B;AACD,CAAC;AAED,MAAM,OAAO,WAAW;IACtB,KAAK,CAAY,CAAC,kCAAkC;IACpD,IAAI,CAAY;IAChB,KAAK,CAAS,CAAC,oDAAoD;IACnE,QAAQ,CAAS,CAAC,oDAAoD;IACtE,KAAK,CAAmB;IACxB,OAAO,CAAC,CAAc;QACpB,OAAO,CAAC,CAAC,KAAK,KAAK,IAAI,CAAC,KAAK;YAC3B,CAAC,CAAC,KAAK,KAAK,IAAI,CAAC,KAAK;YACtB,CAAC,CAAC,QAAQ,KAAK,IAAI,CAAC,QAAQ;YAC5B,CAAC,CAAC,KAAK,KAAK,IAAI,CAAC,KAAK,CAAC;IAC3B,CAAC;CACF;AACD,CAAC;AAED,MAAM,OAAO,aAAc,SAAQ,KAAkB;IACnD;;;OAGG;IACH,YAAY,QAA4B,EAAE,MAAyB,EAAE,KAAc,EAAE,QAAiB,EAAE,aAAsB,EAAE,OAAgB;QAC9I,KAAK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string.ts"],"version":3}
@@ -0,0 +1,23 @@
1
+ !function(){try{var e="undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{},n=(new Error).stack;n&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[n]="892af43a-9bba-596f-b501-92ee787f7fc0")}catch(e){}}();
2
+ export declare enum KeymanTarget {
3
+ any = "any",
4
+ windows = "windows",
5
+ macosx = "macosx",
6
+ linux = "linux",
7
+ web = "web",
8
+ iphone = "iphone",
9
+ ipad = "ipad",
10
+ androidphone = "androidphone",
11
+ androidtablet = "androidtablet",
12
+ mobile = "mobile",
13
+ desktop = "desktop",
14
+ tablet = "tablet"
15
+ }
16
+ export declare const AllKeymanTargets: KeymanTarget[], TouchKeymanTargets: KeymanTarget[], KMXKeymanTargets: KeymanTarget[], KMWKeymanTargets: KeymanTarget[], KeymanTargetsUsingKVK: KeymanTarget[], SKeymanTargetNames: {
17
+ [index: string]: string;
18
+ };
19
+ export declare function keymanTargetsFromString(targets: string, options?: {
20
+ expandTargets?: boolean;
21
+ }): KeymanTarget[];
22
+ //# debugId=892af43a-9bba-596f-b501-92ee787f7fc0
23
+ //# sourceMappingURL=keyman-targets.d.ts.map
@@ -0,0 +1 @@
1
+ {"debug_id":"892af43a-9bba-596f-b501-92ee787f7fc0","file":"keyman-targets.d.ts","mappings":";AAKA,oBACE,YAAY;IACV,GAAG,QAAQ;IACX,OAAO,YAAY;IAAE,MAAM,WAAW;IAAE,KAAK,UAAU;IACvD,GAAG,QAAQ;IAAE,MAAM,WAAW;IAAE,IAAI,SAAS;IAAE,YAAY,iBAAiB;IAAE,aAAa,kBAAkB;IAC7G,MAAM,WAAW;IAAE,OAAO,YAAY;IAAE,MAAM,WAAW;CAC1D;AAEH,eAAO,MAEL,gBAAgB,EAAE,YAAY,EAK7B,EAED,kBAAkB,EAAE,YAAY,EAG/B,EAGD,gBAAgB,EAAE,YAAY,EAE7B,EAGD,gBAAgB,EAAE,YAAY,EAG7B,EAGD,qBAAqB,EAAE,YAAY,EAElC,EAID,kBAAkB,EAAE;IAAE,CAAC,KAAK,EAAE,MAAM,GAAG,MAAM,CAAA;CAO5C,CAAC;AAGF,wBAAgB,uBAAuB,CAAC,OAAO,EAAE,MAAM,EAAE,OAAO,CAAC,EAAE;IAAC,aAAa,CAAC,EAAE,OAAO,CAAA;CAAC,GAAG,YAAY,EAAE,CAwB5G","names":[],"sourceRoot":"","sources":["../../../src/kmx/keyman-targets.ts"],"version":3}
@@ -0,0 +1,80 @@
1
+ //
2
+ // This mirrors UKeymanTargets.pas
3
+ //
4
+ !function(){try{var e="undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{},n=(new Error).stack;n&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[n]="237f6738-2464-56d0-979b-740e5918b11f")}catch(e){}}();
5
+ export var KeymanTarget;
6
+ (function (KeymanTarget) {
7
+ KeymanTarget["any"] = "any";
8
+ KeymanTarget["windows"] = "windows";
9
+ KeymanTarget["macosx"] = "macosx";
10
+ KeymanTarget["linux"] = "linux";
11
+ KeymanTarget["web"] = "web";
12
+ KeymanTarget["iphone"] = "iphone";
13
+ KeymanTarget["ipad"] = "ipad";
14
+ KeymanTarget["androidphone"] = "androidphone";
15
+ KeymanTarget["androidtablet"] = "androidtablet";
16
+ KeymanTarget["mobile"] = "mobile";
17
+ KeymanTarget["desktop"] = "desktop";
18
+ KeymanTarget["tablet"] = "tablet";
19
+ })(KeymanTarget || (KeymanTarget = {}));
20
+ ;
21
+ export const
22
+ // Note: if these change, update the copied values in KeyboardParser.pas accordingly
23
+ AllKeymanTargets = [
24
+ KeymanTarget.any,
25
+ KeymanTarget.windows, KeymanTarget.macosx, KeymanTarget.linux,
26
+ KeymanTarget.web, KeymanTarget.iphone, KeymanTarget.ipad, KeymanTarget.androidphone, KeymanTarget.androidtablet,
27
+ KeymanTarget.mobile, KeymanTarget.desktop, KeymanTarget.tablet
28
+ ], TouchKeymanTargets = [
29
+ KeymanTarget.iphone, KeymanTarget.ipad, KeymanTarget.androidphone, KeymanTarget.androidtablet,
30
+ KeymanTarget.mobile, KeymanTarget.tablet
31
+ ],
32
+ // Compile to .kmx
33
+ KMXKeymanTargets = [
34
+ KeymanTarget.windows, KeymanTarget.macosx, KeymanTarget.linux, KeymanTarget.desktop
35
+ ],
36
+ // Compile to .js
37
+ KMWKeymanTargets = [
38
+ KeymanTarget.web, KeymanTarget.iphone, KeymanTarget.ipad, KeymanTarget.androidphone, KeymanTarget.androidtablet,
39
+ KeymanTarget.mobile, KeymanTarget.tablet
40
+ ],
41
+ // Supports .kvks
42
+ KeymanTargetsUsingKVK = [
43
+ KeymanTarget.windows, KeymanTarget.macosx, KeymanTarget.linux, KeymanTarget.desktop, KeymanTarget.web
44
+ ],
45
+ // Friendly names for targets, e.g. for documentation
46
+ SKeymanTargetNames = {
47
+ [KeymanTarget.any]: 'All',
48
+ [KeymanTarget.windows]: 'Windows', [KeymanTarget.macosx]: 'macOS', [KeymanTarget.linux]: 'Linux',
49
+ [KeymanTarget.web]: 'Web', [KeymanTarget.iphone]: 'iPhone', [KeymanTarget.ipad]: 'iPad',
50
+ [KeymanTarget.androidphone]: 'Android phone', [KeymanTarget.androidtablet]: 'Android tablet',
51
+ [KeymanTarget.mobile]: 'Mobile devices', [KeymanTarget.desktop]: 'Desktop devices',
52
+ [KeymanTarget.tablet]: 'Tablet devices'
53
+ };
54
+ export function keymanTargetsFromString(targets, options) {
55
+ let result = new Set(targets.split(/ +/));
56
+ if (options?.expandTargets) {
57
+ if (result.has(KeymanTarget.any)) {
58
+ return AllKeymanTargets;
59
+ }
60
+ if (result.has(KeymanTarget.mobile)) {
61
+ result.delete(KeymanTarget.mobile);
62
+ result.add(KeymanTarget.androidphone);
63
+ result.add(KeymanTarget.iphone);
64
+ }
65
+ if (result.has(KeymanTarget.tablet)) {
66
+ result.delete(KeymanTarget.tablet);
67
+ result.add(KeymanTarget.androidtablet);
68
+ result.add(KeymanTarget.ipad);
69
+ }
70
+ if (result.has(KeymanTarget.desktop)) {
71
+ result.delete(KeymanTarget.desktop);
72
+ result.add(KeymanTarget.linux);
73
+ result.add(KeymanTarget.macosx);
74
+ result.add(KeymanTarget.windows);
75
+ }
76
+ }
77
+ return [...result];
78
+ }
79
+ //# debugId=237f6738-2464-56d0-979b-740e5918b11f
80
+ //# sourceMappingURL=keyman-targets.js.map
@@ -0,0 +1 @@
1
+ {"debug_id":"237f6738-2464-56d0-979b-740e5918b11f","file":"keyman-targets.js","mappings":";AACA,EAAE;AACF,kCAAkC;AAClC,EAAE;AAEF,MAAM,CAAN,IACE,YAKC;AANH,WACE,YAAY;IACV,2BAAW,CAAA;IACX,mCAAmB,CAAA;IAAE,iCAAiB,CAAA;IAAE,+BAAe,CAAA;IACvD,2BAAW,CAAA;IAAE,iCAAiB,CAAA;IAAE,6BAAa,CAAA;IAAE,6CAA6B,CAAA;IAAE,+CAA+B,CAAA;IAC7G,iCAAiB,CAAA;IAAE,mCAAmB,CAAA;IAAE,iCAAiB,CAAA;AAC3D,CAAC,EALD,YAAY,KAAZ,YAAY,QAKX;AAAA,CAAC;AAEJ,MAAM,CAAC;AACL,oFAAoF;AACpF,gBAAgB,GAAmB;IACjC,YAAY,CAAC,GAAG;IAChB,YAAY,CAAC,OAAO,EAAE,YAAY,CAAC,MAAM,EAAE,YAAY,CAAC,KAAK;IAC7D,YAAY,CAAC,GAAG,EAAE,YAAY,CAAC,MAAM,EAAE,YAAY,CAAC,IAAI,EAAE,YAAY,CAAC,YAAY,EAAE,YAAY,CAAC,aAAa;IAC/G,YAAY,CAAC,MAAM,EAAE,YAAY,CAAC,OAAO,EAAE,YAAY,CAAC,MAAM;CAC/D,EAED,kBAAkB,GAAmB;IACnC,YAAY,CAAC,MAAM,EAAE,YAAY,CAAC,IAAI,EAAE,YAAY,CAAC,YAAY,EAAE,YAAY,CAAC,aAAa;IAC7F,YAAY,CAAC,MAAM,EAAE,YAAY,CAAC,MAAM;CACzC;AA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COMP_STORE, BUILDER_COMP_GROUP, BUILDER_COMP_KEY } from './kmx.js';
2
- export default class KMXBuilder {
3
- file: KMXFile;
4
- base_keyboard: number;
5
- base_kmxplus: number;
6
- comp_header: BUILDER_COMP_KEYBOARD;
7
- comp_kmxplus: BUILDER_COMP_KEYBOARD_KMXPLUSINFO;
8
- comp_stores: {
9
- base: number;
10
- store: STORE;
11
- obj: BUILDER_COMP_STORE;
12
- }[];
13
- comp_groups: {
14
- base: number;
15
- group: GROUP;
16
- obj: BUILDER_COMP_GROUP;
17
- keys: {
18
- base: number;
19
- key: KEY;
20
- obj: BUILDER_COMP_KEY;
21
- }[];
22
- }[];
23
- comp_kmxplus_data: Uint8Array;
24
- writeDebug: boolean;
25
- constructor(file: KMXFile, writeDebug: boolean);
26
- calculateStringOffsetAndSize(string: string, base: number, requireString?: boolean): number[];
27
- private build;
28
- buildBitmap(): number;
29
- buildKMXPlus(base: number): number;
30
- setString(file: Uint8Array, pos: number, str: string, requireString?: boolean): void;
31
- compile(): Uint8Array;
32
- }
33
- //# sourceMappingURL=kmx-builder.d.ts.map
1
+ !function(){try{var e="undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{},n=(new Error).stack;n&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[n]="6d3b1e77-d9d4-5942-92d7-f715dbc6ce07")}catch(e){}}();
2
+ import { KMXFile, GROUP, KEY, STORE, BUILDER_COMP_KEYBOARD, BUILDER_COMP_KEYBOARD_KMXPLUSINFO, BUILDER_COMP_STORE, BUILDER_COMP_GROUP, BUILDER_COMP_KEY } from './kmx.js';
3
+ export default class KMXBuilder {
4
+ file: KMXFile;
5
+ base_keyboard: number;
6
+ base_kmxplus: number;
7
+ comp_header: BUILDER_COMP_KEYBOARD;
8
+ comp_kmxplus: BUILDER_COMP_KEYBOARD_KMXPLUSINFO;
9
+ comp_stores: {
10
+ base: number;
11
+ store: STORE;
12
+ obj: BUILDER_COMP_STORE;
13
+ }[];
14
+ comp_groups: {
15
+ base: number;
16
+ group: GROUP;
17
+ obj: BUILDER_COMP_GROUP;
18
+ keys: {
19
+ base: number;
20
+ key: KEY;
21
+ obj: BUILDER_COMP_KEY;
22
+ }[];
23
+ }[];
24
+ comp_kmxplus_data: Uint8Array;
25
+ writeDebug: boolean;
26
+ constructor(file: KMXFile, writeDebug: boolean);
27
+ calculateStringOffsetAndSize(string: string, base: number, requireString?: boolean): number[];
28
+ private build;
29
+ buildBitmap(): number;
30
+ buildKMXPlus(base: number): number;
31
+ setString(file: Uint8Array, pos: number, str: string, requireString?: boolean): void;
32
+ compile(): Uint8Array;
33
+ }
34
+ //# debugId=6d3b1e77-d9d4-5942-92d7-f715dbc6ce07
35
+ //# sourceMappingURL=kmx-builder.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"kmx-builder.d.ts","sourceRoot":"","sources":["../../../src/kmx/kmx-builder.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,OAAO,EAAE,KAAK,EAAE,GAAG,EAAE,KAAK,EAAE,qBAAqB,EAAE,iCAAiC,EAAE,kBAAkB,EAAE,kBAAkB,EAAE,gBAAgB,EAAE,MAAM,UAAU,CAAC;AAI1K,MAAM,CAAC,OAAO,OAAO,UAAU;IAC7B,IAAI,EAAE,OAAO,CAAC;IACd,aAAa,EAAE,MAAM,CAAK;IAC1B,YAAY,EAAE,MAAM,CAAK;IACzB,WAAW,EAAE,qBAAqB,CAAC;IACnC,YAAY,EAAE,iCAAiC,CAAC;IAChD,WAAW,EAAE;QAAC,IAAI,EAAE,MAAM,CAAC;QAAC,KAAK,EAAE,KAAK,CAAC;QAAC,GAAG,EAAE,kBAAkB,CAAA;KAAC,EAAE,CAAM;IAC1E,WAAW,EAAE;QAAC,IAAI,EAAE,MAAM,CAAC;QAAC,KAAK,EAAE,KAAK,CAAC;QAAC,GAAG,EAAE,kBAAkB,CAAC;QAAC,IAAI,EAAE;YAAC,IAAI,EAAE,MAAM,CAAC;YAAC,GAAG,EAA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