@keymanapp/common-types 18.0.41-alpha → 18.0.46-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.
- package/build/src/consts/virtual-key-constants.d.ts +191 -191
- package/build/src/consts/virtual-key-constants.js +221 -221
- package/build/src/consts/virtual-key-constants.js.map +1 -1
- package/build/src/keyman-touch-layout/keyman-touch-layout-file-reader.d.ts +5 -5
- package/build/src/keyman-touch-layout/keyman-touch-layout-file-reader.js +72 -72
- package/build/src/keyman-touch-layout/keyman-touch-layout-file-reader.js.map +1 -1
- package/build/src/keyman-touch-layout/keyman-touch-layout-file-writer.d.ts +28 -28
- package/build/src/keyman-touch-layout/keyman-touch-layout-file-writer.js +120 -120
- package/build/src/keyman-touch-layout/keyman-touch-layout-file-writer.js.map +1 -1
- package/build/src/keyman-touch-layout/keyman-touch-layout-file.d.ts +95 -95
- package/build/src/keyman-touch-layout/keyman-touch-layout-file.js +52 -52
- package/build/src/kmx/element-string.d.ts +23 -23
- package/build/src/kmx/element-string.js +125 -125
- package/build/src/kmx/element-string.js.map +1 -1
- package/build/src/kmx/keyman-targets.d.ts +20 -20
- package/build/src/kmx/keyman-targets.js +79 -79
- package/build/src/kmx/keyman-targets.js.map +1 -1
- package/build/src/kmx/kmx-builder.d.ts +32 -32
- package/build/src/kmx/kmx-builder.js +189 -189
- package/build/src/kmx/kmx-builder.js.map +1 -1
- package/build/src/kmx/kmx-file-reader.d.ts +13 -13
- package/build/src/kmx/kmx-file-reader.js +134 -134
- package/build/src/kmx/kmx-file-reader.js.map +1 -1
- package/build/src/kmx/kmx-plus-builder/build-disp.d.ts +18 -18
- package/build/src/kmx/kmx-plus-builder/build-disp.js +27 -27
- package/build/src/kmx/kmx-plus-builder/build-disp.js.map +1 -1
- package/build/src/kmx/kmx-plus-builder/build-elem.d.ts +28 -28
- package/build/src/kmx/kmx-plus-builder/build-elem.js +89 -89
- package/build/src/kmx/kmx-plus-builder/build-elem.js.map +1 -1
- package/build/src/kmx/kmx-plus-builder/build-keys.d.ts +56 -56
- package/build/src/kmx/kmx-plus-builder/build-keys.js +107 -107
- package/build/src/kmx/kmx-plus-builder/build-keys.js.map +1 -1
- package/build/src/kmx/kmx-plus-builder/build-layr.d.ts +53 -53
- package/build/src/kmx/kmx-plus-builder/build-layr.js +101 -101
- package/build/src/kmx/kmx-plus-builder/build-layr.js.map +1 -1
- package/build/src/kmx/kmx-plus-builder/build-list.d.ts +35 -35
- package/build/src/kmx/kmx-plus-builder/build-list.js +66 -66
- package/build/src/kmx/kmx-plus-builder/build-list.js.map +1 -1
- package/build/src/kmx/kmx-plus-builder/build-loca.d.ts +11 -11
- package/build/src/kmx/kmx-plus-builder/build-loca.js +21 -21
- package/build/src/kmx/kmx-plus-builder/build-loca.js.map +1 -1
- package/build/src/kmx/kmx-plus-builder/build-meta.d.ts +16 -16
- package/build/src/kmx/kmx-plus-builder/build-meta.js +20 -20
- package/build/src/kmx/kmx-plus-builder/build-sect.d.ts +15 -15
- package/build/src/kmx/kmx-plus-builder/build-sect.js +15 -15
- package/build/src/kmx/kmx-plus-builder/build-sect.js.map +1 -1
- package/build/src/kmx/kmx-plus-builder/build-strs.d.ts +22 -22
- package/build/src/kmx/kmx-plus-builder/build-strs.js +46 -46
- package/build/src/kmx/kmx-plus-builder/build-strs.js.map +1 -1
- package/build/src/kmx/kmx-plus-builder/build-tran.d.ts +32 -32
- package/build/src/kmx/kmx-plus-builder/build-tran.js +69 -69
- package/build/src/kmx/kmx-plus-builder/build-tran.js.map +1 -1
- package/build/src/kmx/kmx-plus-builder/build-uset.d.ts +30 -30
- package/build/src/kmx/kmx-plus-builder/build-uset.js +60 -60
- package/build/src/kmx/kmx-plus-builder/build-uset.js.map +1 -1
- package/build/src/kmx/kmx-plus-builder/build-vars.d.ts +21 -21
- package/build/src/kmx/kmx-plus-builder/build-vars.js +48 -48
- package/build/src/kmx/kmx-plus-builder/build-vars.js.map +1 -1
- package/build/src/kmx/kmx-plus-builder/builder-section.d.ts +9 -9
- package/build/src/kmx/kmx-plus-builder/builder-section.js +2 -2
- package/build/src/kmx/kmx-plus-builder/kmx-plus-builder.d.ts +42 -42
- package/build/src/kmx/kmx-plus-builder/kmx-plus-builder.js +137 -137
- package/build/src/kmx/kmx-plus-builder/kmx-plus-builder.js.map +1 -1
- package/build/src/kmx/kmx-plus.d.ts +322 -322
- package/build/src/kmx/kmx-plus.js +830 -830
- package/build/src/kmx/kmx-plus.js.map +1 -1
- package/build/src/kmx/kmx.d.ts +233 -233
- package/build/src/kmx/kmx.js +302 -302
- package/build/src/kmx/kmx.js.map +1 -1
- package/build/src/kmx/string-list.d.ts +35 -35
- package/build/src/kmx/string-list.js +88 -88
- package/build/src/kmx/string-list.js.map +1 -1
- package/build/src/kpj/keyman-developer-project.d.ts +78 -78
- package/build/src/kpj/keyman-developer-project.js +195 -195
- package/build/src/kpj/keyman-developer-project.js.map +1 -1
- package/build/src/kpj/kpj-file-reader.d.ts +18 -18
- package/build/src/kpj/kpj-file-reader.js +119 -119
- package/build/src/kpj/kpj-file-reader.js.map +1 -1
- package/build/src/kpj/kpj-file.d.ts +39 -39
- package/build/src/kpj/kpj-file.js +10 -10
- package/build/src/kvk/kvk-file-reader.d.ts +4 -4
- package/build/src/kvk/kvk-file-reader.js +37 -37
- package/build/src/kvk/kvk-file-reader.js.map +1 -1
- package/build/src/kvk/kvk-file-writer.d.ts +19 -19
- package/build/src/kvk/kvk-file-writer.js +77 -77
- package/build/src/kvk/kvk-file-writer.js.map +1 -1
- package/build/src/kvk/kvk-file.d.ts +66 -66
- package/build/src/kvk/kvk-file.d.ts.map +1 -1
- package/build/src/kvk/kvk-file.js +90 -90
- package/build/src/kvk/kvk-file.js.map +1 -1
- package/build/src/kvk/kvks-file-reader.d.ts +23 -23
- package/build/src/kvk/kvks-file-reader.js +175 -175
- package/build/src/kvk/kvks-file-reader.js.map +1 -1
- package/build/src/kvk/kvks-file-writer.d.ts +6 -6
- package/build/src/kvk/kvks-file-writer.js +106 -106
- package/build/src/kvk/kvks-file-writer.js.map +1 -1
- package/build/src/kvk/kvks-file.d.ts +43 -43
- package/build/src/kvk/kvks-file.js +9 -9
- package/build/src/kvk/visual-keyboard.d.ts +44 -44
- package/build/src/kvk/visual-keyboard.js +75 -75
- package/build/src/kvk/visual-keyboard.js.map +1 -1
- package/build/src/ldml-keyboard/ldml-keyboard-testdata-xml.d.ts +60 -60
- package/build/src/ldml-keyboard/ldml-keyboard-testdata-xml.js +19 -19
- package/build/src/ldml-keyboard/ldml-keyboard-xml-reader.d.ts +95 -95
- package/build/src/ldml-keyboard/ldml-keyboard-xml-reader.js +409 -409
- package/build/src/ldml-keyboard/ldml-keyboard-xml-reader.js.map +1 -1
- package/build/src/ldml-keyboard/ldml-keyboard-xml.d.ts +170 -170
- package/build/src/ldml-keyboard/ldml-keyboard-xml.js +55 -55
- package/build/src/ldml-keyboard/pattern-parser.d.ts +201 -201
- package/build/src/ldml-keyboard/pattern-parser.js +490 -490
- package/build/src/ldml-keyboard/pattern-parser.js.map +1 -1
- package/build/src/ldml-keyboard/unicodeset-parser-api.d.ts +37 -37
- package/build/src/ldml-keyboard/unicodeset-parser-api.js +27 -27
- package/build/src/main.d.ts +33 -33
- package/build/src/main.js +32 -32
- package/build/src/package/kmp-json-file.d.ts +115 -115
- package/build/src/package/kmp-json-file.js +1 -1
- package/build/src/package/kps-file.d.ts +175 -175
- package/build/src/package/kps-file.js +15 -15
- package/build/src/schema-validators.d.ts +13 -13
- package/build/src/schema-validators.js +25 -25
- package/build/src/schemas/displaymap.schema.d.ts +57 -57
- package/build/src/schemas/displaymap.schema.js +35 -35
- package/build/src/schemas/displaymap.schema.validator.d.mts +2 -2
- package/build/src/schemas/displaymap.schema.validator.mjs +266 -266
- package/build/src/schemas/displaymap.schema.validator.mjs.map +1 -1
- package/build/src/schemas/keyboard_info.schema.d.ts +209 -209
- package/build/src/schemas/keyboard_info.schema.js +98 -98
- package/build/src/schemas/keyboard_info.schema.validator.d.mts +2 -2
- package/build/src/schemas/keyboard_info.schema.validator.mjs +1160 -1160
- package/build/src/schemas/keyboard_info.schema.validator.mjs.map +1 -1
- package/build/src/schemas/keyman-touch-layout.clean.spec.d.ts +227 -227
- package/build/src/schemas/keyman-touch-layout.clean.spec.js +151 -151
- package/build/src/schemas/keyman-touch-layout.clean.spec.validator.d.mts +2 -2
- package/build/src/schemas/keyman-touch-layout.clean.spec.validator.mjs +1094 -1094
- package/build/src/schemas/keyman-touch-layout.clean.spec.validator.mjs.map +1 -1
- package/build/src/schemas/keyman-touch-layout.spec.d.ts +229 -229
- package/build/src/schemas/keyman-touch-layout.spec.js +140 -140
- package/build/src/schemas/keyman-touch-layout.spec.validator.d.mts +2 -2
- package/build/src/schemas/keyman-touch-layout.spec.validator.mjs +1436 -1436
- package/build/src/schemas/keyman-touch-layout.spec.validator.mjs.map +1 -1
- package/build/src/schemas/kmp.schema.d.ts +324 -324
- package/build/src/schemas/kmp.schema.js +353 -353
- package/build/src/schemas/kmp.schema.validator.d.mts +2 -2
- package/build/src/schemas/kmp.schema.validator.mjs +1627 -1627
- package/build/src/schemas/kmp.schema.validator.mjs.map +1 -1
- package/build/src/schemas/kpj-9.0.schema.d.ts +152 -152
- package/build/src/schemas/kpj-9.0.schema.js +131 -131
- package/build/src/schemas/kpj-9.0.schema.validator.d.mts +2 -2
- package/build/src/schemas/kpj-9.0.schema.validator.mjs +655 -655
- package/build/src/schemas/kpj-9.0.schema.validator.mjs.map +1 -1
- package/build/src/schemas/kpj.schema.d.ts +122 -122
- package/build/src/schemas/kpj.schema.js +129 -129
- package/build/src/schemas/kpj.schema.validator.d.mts +2 -2
- package/build/src/schemas/kpj.schema.validator.mjs +515 -515
- package/build/src/schemas/kpj.schema.validator.mjs.map +1 -1
- package/build/src/schemas/kvks.schema.d.ts +160 -160
- package/build/src/schemas/kvks.schema.js +182 -182
- package/build/src/schemas/kvks.schema.validator.d.mts +2 -2
- package/build/src/schemas/kvks.schema.validator.mjs +625 -625
- package/build/src/schemas/kvks.schema.validator.mjs.map +1 -1
- package/build/src/schemas/ldml-keyboard3.schema.d.ts +635 -635
- package/build/src/schemas/ldml-keyboard3.schema.js +696 -696
- package/build/src/schemas/ldml-keyboard3.schema.validator.d.mts +2 -2
- package/build/src/schemas/ldml-keyboard3.schema.validator.mjs +3117 -3117
- package/build/src/schemas/ldml-keyboard3.schema.validator.mjs.map +1 -1
- package/build/src/schemas/ldml-keyboardtest3.schema.d.ts +192 -192
- package/build/src/schemas/ldml-keyboardtest3.schema.js +225 -225
- package/build/src/schemas/ldml-keyboardtest3.schema.validator.d.mts +2 -2
- package/build/src/schemas/ldml-keyboardtest3.schema.validator.mjs +744 -744
- package/build/src/schemas/ldml-keyboardtest3.schema.validator.mjs.map +1 -1
- package/build/src/schemas.d.ts +2300 -2300
- package/build/src/schemas.js +23 -23
- package/build/src/util/common-events.d.ts +44 -44
- package/build/src/util/common-events.js +26 -26
- package/build/src/util/compiler-interfaces.d.ts +371 -371
- package/build/src/util/compiler-interfaces.d.ts.map +1 -1
- package/build/src/util/compiler-interfaces.js +380 -380
- package/build/src/util/compiler-interfaces.js.map +1 -1
- package/build/src/util/errors.d.ts +5 -5
- package/build/src/util/errors.js +5 -5
- package/build/src/util/file-types.d.ts +93 -93
- package/build/src/util/file-types.d.ts.map +1 -1
- package/build/src/util/file-types.js +142 -142
- package/build/src/util/file-types.js.map +1 -1
- package/build/src/util/util.d.ts +98 -98
- package/build/src/util/util.js +368 -368
- package/build/src/util/util.js.map +1 -1
- package/package.json +3 -3
|
@@ -1,155 +1,155 @@
|
|
|
1
1
|
|
|
2
2
|
!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]="c0ee1d31-3b4a-53f9-ab97-fe35a93a172a")}catch(e){}}();
|
|
3
|
-
export default {
|
|
4
|
-
"$schema": "http://json-schema.org/schema#",
|
|
5
|
-
"$ref": "#/definitions/touch-layout",
|
|
6
|
-
"$comment": "Version: 16.0",
|
|
7
|
-
"description": "A Keyman Touch Layout file, per version 16.0, clean spec, no legacy data or types",
|
|
8
|
-
"definitions": {
|
|
9
|
-
"touch-layout": {
|
|
10
|
-
"type": "object",
|
|
11
|
-
"properties": {
|
|
12
|
-
"tablet": { "$ref": "#/definitions/platform" },
|
|
13
|
-
"phone": { "$ref": "#/definitions/platform" },
|
|
14
|
-
"desktop": { "$ref": "#/definitions/platform" }
|
|
15
|
-
},
|
|
16
|
-
"minProperties": 1,
|
|
17
|
-
"additionalProperties": false
|
|
18
|
-
},
|
|
19
|
-
"platform": {
|
|
20
|
-
"type": "object",
|
|
21
|
-
"properties": {
|
|
22
|
-
"font": { "$ref": "#/definitions/font-spec" },
|
|
23
|
-
"fontsize": { "$ref": "#/definitions/fontsize-spec" },
|
|
24
|
-
"layer": { "$ref": "#/definitions/layers" },
|
|
25
|
-
"displayUnderlying": { "type": "boolean" },
|
|
26
|
-
"defaultHint": { "type": "string", "enum": ["none", "dot", "longpress", "multitap", "flick", "flick-n", "flick-ne", "flick-e", "flick-se", "flick-s", "flick-sw", "flick-w", "flick-nw"] }
|
|
27
|
-
},
|
|
28
|
-
"required": ["layer"],
|
|
29
|
-
"additionalProperties": false
|
|
30
|
-
},
|
|
31
|
-
"layers": {
|
|
32
|
-
"type": "array",
|
|
33
|
-
"items": { "$ref": "#/definitions/layer" },
|
|
34
|
-
"minItems": 1
|
|
35
|
-
},
|
|
36
|
-
"layer": {
|
|
37
|
-
"type": "object",
|
|
38
|
-
"properties": {
|
|
39
|
-
"id": { "$ref": "#/definitions/layer-id" },
|
|
40
|
-
"row": { "$ref": "#/definitions/rows" }
|
|
41
|
-
},
|
|
42
|
-
"required": ["id", "row"],
|
|
43
|
-
"additionalProperties": false
|
|
44
|
-
},
|
|
45
|
-
"layer-id": {
|
|
46
|
-
"type": "string",
|
|
47
|
-
"pattern": "^[a-zA-Z0-9_-]+$"
|
|
48
|
-
},
|
|
49
|
-
"rows": {
|
|
50
|
-
"type": "array",
|
|
51
|
-
"items": { "$ref": "#/definitions/row" },
|
|
52
|
-
"minItems": 1
|
|
53
|
-
},
|
|
54
|
-
"row": {
|
|
55
|
-
"type": "object",
|
|
56
|
-
"properties": {
|
|
57
|
-
"id": { "$ref": "#/definitions/row-id" },
|
|
58
|
-
"key": { "$ref": "#/definitions/keys" }
|
|
59
|
-
},
|
|
60
|
-
"required": ["id", "key"],
|
|
61
|
-
"additionalProperties": false
|
|
62
|
-
},
|
|
63
|
-
"row-id": {
|
|
64
|
-
"type": "integer",
|
|
65
|
-
"minimum": 0,
|
|
66
|
-
"maximum": 100
|
|
67
|
-
},
|
|
68
|
-
"keys": {
|
|
69
|
-
"type": "array",
|
|
70
|
-
"items": { "$ref": "#/definitions/key" },
|
|
71
|
-
"minItems": 1
|
|
72
|
-
},
|
|
73
|
-
"key": {
|
|
74
|
-
"type": "object",
|
|
75
|
-
"properties": {
|
|
76
|
-
"id": { "$ref": "#/definitions/key-id" },
|
|
77
|
-
"text": { "type": "string" },
|
|
78
|
-
"layer": { "$ref": "#/definitions/layer-id" },
|
|
79
|
-
"nextlayer": { "$ref": "#/definitions/layer-id" },
|
|
80
|
-
"font": { "$ref": "#/definitions/font-spec" },
|
|
81
|
-
"fontsize": { "$ref": "#/definitions/fontsize-spec" },
|
|
82
|
-
"sp": { "$ref": "#/definitions/key-sp" },
|
|
83
|
-
"pad": { "$ref": "#/definitions/key-pad" },
|
|
84
|
-
"width": { "$ref": "#/definitions/key-width" },
|
|
85
|
-
"sk": { "$ref": "#/definitions/subkeys" },
|
|
86
|
-
"flick": { "$ref": "#/definitions/flick" },
|
|
87
|
-
"multitap": { "$ref": "#/definitions/subkeys" },
|
|
88
|
-
"hint": { "type": "string" }
|
|
89
|
-
},
|
|
90
|
-
"anyOf": [
|
|
91
|
-
{ "required": ["id"] },
|
|
92
|
-
{ "required": ["sp"] },
|
|
93
|
-
{ "required": ["sk"] },
|
|
94
|
-
{ "required": ["flick"] },
|
|
95
|
-
{ "required": ["multitap"] }
|
|
96
|
-
],
|
|
97
|
-
"additionalProperties": false
|
|
98
|
-
},
|
|
99
|
-
"key-id": {
|
|
100
|
-
"type": "string",
|
|
101
|
-
"pattern": "^[TKUtku]_[a-zA-Z0-9_]+$"
|
|
102
|
-
},
|
|
103
|
-
"key-sp": {
|
|
104
|
-
"type": "integer",
|
|
105
|
-
"enum": [0, 1, 2, 8, 9, 10]
|
|
106
|
-
},
|
|
107
|
-
"key-pad": {
|
|
108
|
-
"type": "number",
|
|
109
|
-
"minimum": 0,
|
|
110
|
-
"maximum": 100000
|
|
111
|
-
},
|
|
112
|
-
"key-width": {
|
|
113
|
-
"type": "number",
|
|
114
|
-
"minimum": 0,
|
|
115
|
-
"maximum": 100000
|
|
116
|
-
},
|
|
117
|
-
"subkeys": {
|
|
118
|
-
"type": "array",
|
|
119
|
-
"items": { "$ref": "#/definitions/subkey" },
|
|
120
|
-
"minItems": 1
|
|
121
|
-
},
|
|
122
|
-
"subkey": {
|
|
123
|
-
"type": "object",
|
|
124
|
-
"properties": {
|
|
125
|
-
"id": { "$ref": "#/definitions/key-id" },
|
|
126
|
-
"text": { "type": "string" },
|
|
127
|
-
"layer": { "$ref": "#/definitions/layer-id" },
|
|
128
|
-
"nextlayer": { "$ref": "#/definitions/layer-id" },
|
|
129
|
-
"font": { "$ref": "#/definitions/font-spec" },
|
|
130
|
-
"fontsize": { "$ref": "#/definitions/fontsize-spec" },
|
|
131
|
-
"sp": { "$ref": "#/definitions/key-sp" },
|
|
132
|
-
"pad": { "$ref": "#/definitions/key-pad" },
|
|
133
|
-
"width": { "$ref": "#/definitions/key-width" }
|
|
134
|
-
},
|
|
135
|
-
"required": ["id"],
|
|
136
|
-
"additionalProperties": false
|
|
137
|
-
},
|
|
138
|
-
"flick": {
|
|
139
|
-
"type": "object",
|
|
140
|
-
"patternProperties": {
|
|
141
|
-
"^(n|s|e|w|ne|nw|se|sw)$": { "$ref": "#/definitions/subkey" }
|
|
142
|
-
},
|
|
143
|
-
"minProperties": 1,
|
|
144
|
-
"additionalProperties": false
|
|
145
|
-
},
|
|
146
|
-
"font-spec": {
|
|
147
|
-
"type": "string"
|
|
148
|
-
},
|
|
149
|
-
"fontsize-spec": {
|
|
150
|
-
"type": "string"
|
|
151
|
-
}
|
|
152
|
-
}
|
|
153
|
-
};
|
|
3
|
+
export default {
|
|
4
|
+
"$schema": "http://json-schema.org/schema#",
|
|
5
|
+
"$ref": "#/definitions/touch-layout",
|
|
6
|
+
"$comment": "Version: 16.0",
|
|
7
|
+
"description": "A Keyman Touch Layout file, per version 16.0, clean spec, no legacy data or types",
|
|
8
|
+
"definitions": {
|
|
9
|
+
"touch-layout": {
|
|
10
|
+
"type": "object",
|
|
11
|
+
"properties": {
|
|
12
|
+
"tablet": { "$ref": "#/definitions/platform" },
|
|
13
|
+
"phone": { "$ref": "#/definitions/platform" },
|
|
14
|
+
"desktop": { "$ref": "#/definitions/platform" }
|
|
15
|
+
},
|
|
16
|
+
"minProperties": 1,
|
|
17
|
+
"additionalProperties": false
|
|
18
|
+
},
|
|
19
|
+
"platform": {
|
|
20
|
+
"type": "object",
|
|
21
|
+
"properties": {
|
|
22
|
+
"font": { "$ref": "#/definitions/font-spec" },
|
|
23
|
+
"fontsize": { "$ref": "#/definitions/fontsize-spec" },
|
|
24
|
+
"layer": { "$ref": "#/definitions/layers" },
|
|
25
|
+
"displayUnderlying": { "type": "boolean" },
|
|
26
|
+
"defaultHint": { "type": "string", "enum": ["none", "dot", "longpress", "multitap", "flick", "flick-n", "flick-ne", "flick-e", "flick-se", "flick-s", "flick-sw", "flick-w", "flick-nw"] }
|
|
27
|
+
},
|
|
28
|
+
"required": ["layer"],
|
|
29
|
+
"additionalProperties": false
|
|
30
|
+
},
|
|
31
|
+
"layers": {
|
|
32
|
+
"type": "array",
|
|
33
|
+
"items": { "$ref": "#/definitions/layer" },
|
|
34
|
+
"minItems": 1
|
|
35
|
+
},
|
|
36
|
+
"layer": {
|
|
37
|
+
"type": "object",
|
|
38
|
+
"properties": {
|
|
39
|
+
"id": { "$ref": "#/definitions/layer-id" },
|
|
40
|
+
"row": { "$ref": "#/definitions/rows" }
|
|
41
|
+
},
|
|
42
|
+
"required": ["id", "row"],
|
|
43
|
+
"additionalProperties": false
|
|
44
|
+
},
|
|
45
|
+
"layer-id": {
|
|
46
|
+
"type": "string",
|
|
47
|
+
"pattern": "^[a-zA-Z0-9_-]+$"
|
|
48
|
+
},
|
|
49
|
+
"rows": {
|
|
50
|
+
"type": "array",
|
|
51
|
+
"items": { "$ref": "#/definitions/row" },
|
|
52
|
+
"minItems": 1
|
|
53
|
+
},
|
|
54
|
+
"row": {
|
|
55
|
+
"type": "object",
|
|
56
|
+
"properties": {
|
|
57
|
+
"id": { "$ref": "#/definitions/row-id" },
|
|
58
|
+
"key": { "$ref": "#/definitions/keys" }
|
|
59
|
+
},
|
|
60
|
+
"required": ["id", "key"],
|
|
61
|
+
"additionalProperties": false
|
|
62
|
+
},
|
|
63
|
+
"row-id": {
|
|
64
|
+
"type": "integer",
|
|
65
|
+
"minimum": 0,
|
|
66
|
+
"maximum": 100
|
|
67
|
+
},
|
|
68
|
+
"keys": {
|
|
69
|
+
"type": "array",
|
|
70
|
+
"items": { "$ref": "#/definitions/key" },
|
|
71
|
+
"minItems": 1
|
|
72
|
+
},
|
|
73
|
+
"key": {
|
|
74
|
+
"type": "object",
|
|
75
|
+
"properties": {
|
|
76
|
+
"id": { "$ref": "#/definitions/key-id" },
|
|
77
|
+
"text": { "type": "string" },
|
|
78
|
+
"layer": { "$ref": "#/definitions/layer-id" },
|
|
79
|
+
"nextlayer": { "$ref": "#/definitions/layer-id" },
|
|
80
|
+
"font": { "$ref": "#/definitions/font-spec" },
|
|
81
|
+
"fontsize": { "$ref": "#/definitions/fontsize-spec" },
|
|
82
|
+
"sp": { "$ref": "#/definitions/key-sp" },
|
|
83
|
+
"pad": { "$ref": "#/definitions/key-pad" },
|
|
84
|
+
"width": { "$ref": "#/definitions/key-width" },
|
|
85
|
+
"sk": { "$ref": "#/definitions/subkeys" },
|
|
86
|
+
"flick": { "$ref": "#/definitions/flick" },
|
|
87
|
+
"multitap": { "$ref": "#/definitions/subkeys" },
|
|
88
|
+
"hint": { "type": "string" }
|
|
89
|
+
},
|
|
90
|
+
"anyOf": [
|
|
91
|
+
{ "required": ["id"] },
|
|
92
|
+
{ "required": ["sp"] },
|
|
93
|
+
{ "required": ["sk"] },
|
|
94
|
+
{ "required": ["flick"] },
|
|
95
|
+
{ "required": ["multitap"] }
|
|
96
|
+
],
|
|
97
|
+
"additionalProperties": false
|
|
98
|
+
},
|
|
99
|
+
"key-id": {
|
|
100
|
+
"type": "string",
|
|
101
|
+
"pattern": "^[TKUtku]_[a-zA-Z0-9_]+$"
|
|
102
|
+
},
|
|
103
|
+
"key-sp": {
|
|
104
|
+
"type": "integer",
|
|
105
|
+
"enum": [0, 1, 2, 8, 9, 10]
|
|
106
|
+
},
|
|
107
|
+
"key-pad": {
|
|
108
|
+
"type": "number",
|
|
109
|
+
"minimum": 0,
|
|
110
|
+
"maximum": 100000
|
|
111
|
+
},
|
|
112
|
+
"key-width": {
|
|
113
|
+
"type": "number",
|
|
114
|
+
"minimum": 0,
|
|
115
|
+
"maximum": 100000
|
|
116
|
+
},
|
|
117
|
+
"subkeys": {
|
|
118
|
+
"type": "array",
|
|
119
|
+
"items": { "$ref": "#/definitions/subkey" },
|
|
120
|
+
"minItems": 1
|
|
121
|
+
},
|
|
122
|
+
"subkey": {
|
|
123
|
+
"type": "object",
|
|
124
|
+
"properties": {
|
|
125
|
+
"id": { "$ref": "#/definitions/key-id" },
|
|
126
|
+
"text": { "type": "string" },
|
|
127
|
+
"layer": { "$ref": "#/definitions/layer-id" },
|
|
128
|
+
"nextlayer": { "$ref": "#/definitions/layer-id" },
|
|
129
|
+
"font": { "$ref": "#/definitions/font-spec" },
|
|
130
|
+
"fontsize": { "$ref": "#/definitions/fontsize-spec" },
|
|
131
|
+
"sp": { "$ref": "#/definitions/key-sp" },
|
|
132
|
+
"pad": { "$ref": "#/definitions/key-pad" },
|
|
133
|
+
"width": { "$ref": "#/definitions/key-width" }
|
|
134
|
+
},
|
|
135
|
+
"required": ["id"],
|
|
136
|
+
"additionalProperties": false
|
|
137
|
+
},
|
|
138
|
+
"flick": {
|
|
139
|
+
"type": "object",
|
|
140
|
+
"patternProperties": {
|
|
141
|
+
"^(n|s|e|w|ne|nw|se|sw)$": { "$ref": "#/definitions/subkey" }
|
|
142
|
+
},
|
|
143
|
+
"minProperties": 1,
|
|
144
|
+
"additionalProperties": false
|
|
145
|
+
},
|
|
146
|
+
"font-spec": {
|
|
147
|
+
"type": "string"
|
|
148
|
+
},
|
|
149
|
+
"fontsize-spec": {
|
|
150
|
+
"type": "string"
|
|
151
|
+
}
|
|
152
|
+
}
|
|
153
|
+
};
|
|
154
154
|
//# sourceMappingURL=keyman-touch-layout.clean.spec.js.map
|
|
155
155
|
//# debugId=c0ee1d31-3b4a-53f9-ab97-fe35a93a172a
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
declare const _default: any;
|
|
2
|
-
export default _default;
|
|
1
|
+
declare const _default: any;
|
|
2
|
+
export default _default;
|
|
3
3
|
//# sourceMappingURL=keyman-touch-layout.clean.spec.validator.d.mts.map
|