@g9tm/lynxcontrols-barcode 2.2.1 → 2.4.0
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/catalog/cards/G9BarcodeTextEntry.md +17 -0
- package/catalog/cards/G9QrCode.md +17 -0
- package/catalog/cards/G9ScanCard.md +17 -0
- package/catalog/catalog.json +1805 -0
- package/catalog/index.md +7 -0
- package/dist/.tsbuildinfo +1 -1
- package/dist/scan-card.css +5 -2
- package/dist/scan-card.css.map +1 -1
- package/package.json +7 -5
|
@@ -0,0 +1,1805 @@
|
|
|
1
|
+
{
|
|
2
|
+
"catalogVersion": 1,
|
|
3
|
+
"package": "@g9tm/lynxcontrols-barcode",
|
|
4
|
+
"version": "2.4.0",
|
|
5
|
+
"generatedBy": "node scripts/check-docs.mjs --write",
|
|
6
|
+
"components": [
|
|
7
|
+
{
|
|
8
|
+
"id": "barcode.barcode.G9BarcodeTextEntry",
|
|
9
|
+
"export": "G9BarcodeTextEntry",
|
|
10
|
+
"from": "@g9tm/lynxcontrols-barcode",
|
|
11
|
+
"kind": "component",
|
|
12
|
+
"family": "barcode",
|
|
13
|
+
"summary": "A scanner-aware text field (MAUI `G9BarcodeTextEntry`) on `G9TextEntry`: a trailing scan affordance (pinned right, text pinned LTR), idle → spinner → ✓ / ⓘ states layered over your own field values, an acceptor for scanned codes, and single or multiple (comma-joined) collection. The camera is never this package's: either handle `onScanRequested`, or supply `services.scanner` and the field drives it (aborting on `stopScan` and on unmount).",
|
|
14
|
+
"since": null,
|
|
15
|
+
"props": [
|
|
16
|
+
{
|
|
17
|
+
"name": "acceptedCodeRegex",
|
|
18
|
+
"type": {
|
|
19
|
+
"kind": "union",
|
|
20
|
+
"of": [
|
|
21
|
+
{
|
|
22
|
+
"kind": "string"
|
|
23
|
+
},
|
|
24
|
+
{
|
|
25
|
+
"kind": "object",
|
|
26
|
+
"name": "RegExp"
|
|
27
|
+
},
|
|
28
|
+
{
|
|
29
|
+
"kind": "event",
|
|
30
|
+
"payload": "code: string",
|
|
31
|
+
"returns": "boolean"
|
|
32
|
+
}
|
|
33
|
+
]
|
|
34
|
+
},
|
|
35
|
+
"required": false,
|
|
36
|
+
"serializable": false,
|
|
37
|
+
"role": "behaviour",
|
|
38
|
+
"doc": "Codes must match before they are accepted (MAUI `AcceptedCodeRegex`): a pattern string, a `RegExp`, or a function. Unset accepts any code. A malformed pattern or a throwing function rejects the code."
|
|
39
|
+
},
|
|
40
|
+
{
|
|
41
|
+
"name": "allowedCharsPattern",
|
|
42
|
+
"type": {
|
|
43
|
+
"kind": "string"
|
|
44
|
+
},
|
|
45
|
+
"required": false,
|
|
46
|
+
"serializable": true,
|
|
47
|
+
"role": "behaviour",
|
|
48
|
+
"doc": "Per-character filter regex (a single character class) for `inputType: 'custom'`."
|
|
49
|
+
},
|
|
50
|
+
{
|
|
51
|
+
"name": "alwaysFloat",
|
|
52
|
+
"type": {
|
|
53
|
+
"kind": "boolean"
|
|
54
|
+
},
|
|
55
|
+
"required": false,
|
|
56
|
+
"default": false,
|
|
57
|
+
"serializable": true,
|
|
58
|
+
"role": "behaviour",
|
|
59
|
+
"doc": "Keep the label floated even when empty and unfocused. Default false. With a `label` AND a `placeholder` the placeholder is then drawn inside the empty box under the floated label (MAUI 1.4.9: «عنوان» floated with «عنوان کار را وارد کنید» inside)."
|
|
60
|
+
},
|
|
61
|
+
{
|
|
62
|
+
"name": "anchor",
|
|
63
|
+
"type": {
|
|
64
|
+
"kind": "object",
|
|
65
|
+
"fields": [
|
|
66
|
+
{
|
|
67
|
+
"name": "kind",
|
|
68
|
+
"required": true,
|
|
69
|
+
"type": {
|
|
70
|
+
"kind": "enum",
|
|
71
|
+
"values": [
|
|
72
|
+
"label",
|
|
73
|
+
"image",
|
|
74
|
+
"button",
|
|
75
|
+
"entry",
|
|
76
|
+
"toggle",
|
|
77
|
+
"picker",
|
|
78
|
+
"chips",
|
|
79
|
+
"tab",
|
|
80
|
+
"tab-view",
|
|
81
|
+
"list",
|
|
82
|
+
"scroll",
|
|
83
|
+
"item",
|
|
84
|
+
"card",
|
|
85
|
+
"map",
|
|
86
|
+
"view"
|
|
87
|
+
]
|
|
88
|
+
},
|
|
89
|
+
"serializable": true
|
|
90
|
+
},
|
|
91
|
+
{
|
|
92
|
+
"name": "label",
|
|
93
|
+
"required": false,
|
|
94
|
+
"type": {
|
|
95
|
+
"kind": "event",
|
|
96
|
+
"payload": null,
|
|
97
|
+
"returns": "string | null | undefined"
|
|
98
|
+
},
|
|
99
|
+
"serializable": false
|
|
100
|
+
},
|
|
101
|
+
{
|
|
102
|
+
"name": "enabled",
|
|
103
|
+
"required": false,
|
|
104
|
+
"type": {
|
|
105
|
+
"kind": "event",
|
|
106
|
+
"payload": null,
|
|
107
|
+
"returns": "boolean"
|
|
108
|
+
},
|
|
109
|
+
"serializable": false
|
|
110
|
+
},
|
|
111
|
+
{
|
|
112
|
+
"name": "risk",
|
|
113
|
+
"required": false,
|
|
114
|
+
"type": {
|
|
115
|
+
"kind": "enum",
|
|
116
|
+
"values": [
|
|
117
|
+
"none",
|
|
118
|
+
"commit",
|
|
119
|
+
"destructive"
|
|
120
|
+
]
|
|
121
|
+
},
|
|
122
|
+
"serializable": true
|
|
123
|
+
},
|
|
124
|
+
{
|
|
125
|
+
"name": "changes",
|
|
126
|
+
"required": false,
|
|
127
|
+
"type": {
|
|
128
|
+
"kind": "event",
|
|
129
|
+
"payload": null,
|
|
130
|
+
"returns": "readonly G9ChangeLine[]"
|
|
131
|
+
},
|
|
132
|
+
"serializable": false
|
|
133
|
+
},
|
|
134
|
+
{
|
|
135
|
+
"name": "capabilities",
|
|
136
|
+
"required": false,
|
|
137
|
+
"type": {
|
|
138
|
+
"kind": "object",
|
|
139
|
+
"fields": [
|
|
140
|
+
{
|
|
141
|
+
"name": "activate",
|
|
142
|
+
"required": false,
|
|
143
|
+
"type": {
|
|
144
|
+
"kind": "event",
|
|
145
|
+
"payload": null,
|
|
146
|
+
"returns": "void | Promise<void>"
|
|
147
|
+
},
|
|
148
|
+
"serializable": false
|
|
149
|
+
},
|
|
150
|
+
{
|
|
151
|
+
"name": "getValue",
|
|
152
|
+
"required": false,
|
|
153
|
+
"type": {
|
|
154
|
+
"kind": "event",
|
|
155
|
+
"payload": null,
|
|
156
|
+
"returns": "string | null | undefined"
|
|
157
|
+
},
|
|
158
|
+
"serializable": false
|
|
159
|
+
},
|
|
160
|
+
{
|
|
161
|
+
"name": "setValue",
|
|
162
|
+
"required": false,
|
|
163
|
+
"type": {
|
|
164
|
+
"kind": "event",
|
|
165
|
+
"payload": "value: string",
|
|
166
|
+
"returns": "unknown"
|
|
167
|
+
},
|
|
168
|
+
"serializable": false
|
|
169
|
+
},
|
|
170
|
+
{
|
|
171
|
+
"name": "focus",
|
|
172
|
+
"required": false,
|
|
173
|
+
"type": {
|
|
174
|
+
"kind": "event",
|
|
175
|
+
"payload": null,
|
|
176
|
+
"returns": "void | Promise<void>"
|
|
177
|
+
},
|
|
178
|
+
"serializable": false
|
|
179
|
+
},
|
|
180
|
+
{
|
|
181
|
+
"name": "itemKeys",
|
|
182
|
+
"required": false,
|
|
183
|
+
"type": {
|
|
184
|
+
"kind": "event",
|
|
185
|
+
"payload": null,
|
|
186
|
+
"returns": "readonly string[]"
|
|
187
|
+
},
|
|
188
|
+
"serializable": false
|
|
189
|
+
},
|
|
190
|
+
{
|
|
191
|
+
"name": "selectItem",
|
|
192
|
+
"required": false,
|
|
193
|
+
"type": {
|
|
194
|
+
"kind": "event",
|
|
195
|
+
"payload": "key: string",
|
|
196
|
+
"returns": "void | Promise<void>"
|
|
197
|
+
},
|
|
198
|
+
"serializable": false
|
|
199
|
+
},
|
|
200
|
+
{
|
|
201
|
+
"name": "expand",
|
|
202
|
+
"required": false,
|
|
203
|
+
"type": {
|
|
204
|
+
"kind": "event",
|
|
205
|
+
"payload": "open: boolean",
|
|
206
|
+
"returns": "void | Promise<void>"
|
|
207
|
+
},
|
|
208
|
+
"serializable": false
|
|
209
|
+
}
|
|
210
|
+
]
|
|
211
|
+
},
|
|
212
|
+
"serializable": false
|
|
213
|
+
},
|
|
214
|
+
{
|
|
215
|
+
"name": "secret",
|
|
216
|
+
"required": false,
|
|
217
|
+
"type": {
|
|
218
|
+
"kind": "boolean"
|
|
219
|
+
},
|
|
220
|
+
"serializable": true
|
|
221
|
+
}
|
|
222
|
+
]
|
|
223
|
+
},
|
|
224
|
+
"required": false,
|
|
225
|
+
"serializable": false,
|
|
226
|
+
"role": "behaviour",
|
|
227
|
+
"doc": "What the field is and can do as an anchor (`@g9tm/lynxcontrols/anchor`); the text inputs pass their value paths. Registered only with an `id`."
|
|
228
|
+
},
|
|
229
|
+
{
|
|
230
|
+
"name": "appearance",
|
|
231
|
+
"type": {
|
|
232
|
+
"kind": "enum",
|
|
233
|
+
"values": [
|
|
234
|
+
"outlined",
|
|
235
|
+
"filled"
|
|
236
|
+
]
|
|
237
|
+
},
|
|
238
|
+
"required": false,
|
|
239
|
+
"serializable": true,
|
|
240
|
+
"role": "appearance",
|
|
241
|
+
"doc": "`'outlined'` (default) a stroked box with a notched floating label; `'filled'` a sunken box without a stroke at rest (SAC/ShopManager/G9Hub plain fields), the focus colour as its stroke."
|
|
242
|
+
},
|
|
243
|
+
{
|
|
244
|
+
"name": "className",
|
|
245
|
+
"type": {
|
|
246
|
+
"kind": "string"
|
|
247
|
+
},
|
|
248
|
+
"required": false,
|
|
249
|
+
"serializable": true,
|
|
250
|
+
"role": "appearance",
|
|
251
|
+
"doc": "Class of the root element."
|
|
252
|
+
},
|
|
253
|
+
{
|
|
254
|
+
"name": "clearButton",
|
|
255
|
+
"type": {
|
|
256
|
+
"kind": "boolean"
|
|
257
|
+
},
|
|
258
|
+
"required": false,
|
|
259
|
+
"default": false,
|
|
260
|
+
"serializable": true,
|
|
261
|
+
"role": "behaviour",
|
|
262
|
+
"doc": "Clear (×) button in the trailing slot while there is a value. Default false."
|
|
263
|
+
},
|
|
264
|
+
{
|
|
265
|
+
"name": "confirmType",
|
|
266
|
+
"type": {
|
|
267
|
+
"kind": "enum",
|
|
268
|
+
"values": [
|
|
269
|
+
"search",
|
|
270
|
+
"done",
|
|
271
|
+
"send",
|
|
272
|
+
"go",
|
|
273
|
+
"next"
|
|
274
|
+
]
|
|
275
|
+
},
|
|
276
|
+
"required": false,
|
|
277
|
+
"default": "done",
|
|
278
|
+
"serializable": true,
|
|
279
|
+
"role": "behaviour",
|
|
280
|
+
"doc": "Keyboard confirm key. Default `'done'`."
|
|
281
|
+
},
|
|
282
|
+
{
|
|
283
|
+
"name": "customFont",
|
|
284
|
+
"type": {
|
|
285
|
+
"kind": "string"
|
|
286
|
+
},
|
|
287
|
+
"required": false,
|
|
288
|
+
"serializable": true,
|
|
289
|
+
"role": "appearance",
|
|
290
|
+
"doc": "Font family of the entered text; default the culture's font."
|
|
291
|
+
},
|
|
292
|
+
{
|
|
293
|
+
"name": "defaultScanState",
|
|
294
|
+
"type": {
|
|
295
|
+
"kind": "enum",
|
|
296
|
+
"values": [
|
|
297
|
+
"error",
|
|
298
|
+
"idle",
|
|
299
|
+
"scanBusy",
|
|
300
|
+
"accepted"
|
|
301
|
+
]
|
|
302
|
+
},
|
|
303
|
+
"required": false,
|
|
304
|
+
"serializable": true,
|
|
305
|
+
"role": "behaviour"
|
|
306
|
+
},
|
|
307
|
+
{
|
|
308
|
+
"name": "defaultValue",
|
|
309
|
+
"type": {
|
|
310
|
+
"kind": "string"
|
|
311
|
+
},
|
|
312
|
+
"required": false,
|
|
313
|
+
"default": "",
|
|
314
|
+
"serializable": true,
|
|
315
|
+
"role": "state",
|
|
316
|
+
"doc": "Initial text while uncontrolled. Default `''`."
|
|
317
|
+
},
|
|
318
|
+
{
|
|
319
|
+
"name": "disabled",
|
|
320
|
+
"type": {
|
|
321
|
+
"kind": "boolean"
|
|
322
|
+
},
|
|
323
|
+
"required": false,
|
|
324
|
+
"default": false,
|
|
325
|
+
"serializable": true,
|
|
326
|
+
"role": "state",
|
|
327
|
+
"doc": "Not interactive and dimmed (MAUI `IsEnabled = false`). Default false."
|
|
328
|
+
},
|
|
329
|
+
{
|
|
330
|
+
"name": "errorText",
|
|
331
|
+
"type": {
|
|
332
|
+
"kind": "string"
|
|
333
|
+
},
|
|
334
|
+
"required": false,
|
|
335
|
+
"serializable": true,
|
|
336
|
+
"role": "content",
|
|
337
|
+
"doc": "Error message, shown (in the error colour) while `hasError`."
|
|
338
|
+
},
|
|
339
|
+
{
|
|
340
|
+
"name": "fieldHeight",
|
|
341
|
+
"type": {
|
|
342
|
+
"kind": "number"
|
|
343
|
+
},
|
|
344
|
+
"required": false,
|
|
345
|
+
"serializable": true,
|
|
346
|
+
"role": "appearance",
|
|
347
|
+
"doc": "Box height; `0` (default) uses `G9Metrics.ControlHeight` (52)."
|
|
348
|
+
},
|
|
349
|
+
{
|
|
350
|
+
"name": "filledValueHighlight",
|
|
351
|
+
"type": {
|
|
352
|
+
"kind": "enum",
|
|
353
|
+
"values": [
|
|
354
|
+
"accent",
|
|
355
|
+
"inherit",
|
|
356
|
+
"neutral"
|
|
357
|
+
]
|
|
358
|
+
},
|
|
359
|
+
"required": false,
|
|
360
|
+
"serializable": true,
|
|
361
|
+
"role": "behaviour",
|
|
362
|
+
"doc": "Filled-value accent of this field; `'inherit'` (default) takes `settings.fields.highlightFilledValue`."
|
|
363
|
+
},
|
|
364
|
+
{
|
|
365
|
+
"name": "forceLeadingIconLeft",
|
|
366
|
+
"type": {
|
|
367
|
+
"kind": "boolean"
|
|
368
|
+
},
|
|
369
|
+
"required": false,
|
|
370
|
+
"default": false,
|
|
371
|
+
"serializable": true,
|
|
372
|
+
"role": "behaviour",
|
|
373
|
+
"doc": "Keep the leading icon on the physical left in RTL too. Default false."
|
|
374
|
+
},
|
|
375
|
+
{
|
|
376
|
+
"name": "forceTrailingIconRight",
|
|
377
|
+
"type": {
|
|
378
|
+
"kind": "boolean"
|
|
379
|
+
},
|
|
380
|
+
"required": false,
|
|
381
|
+
"default": false,
|
|
382
|
+
"serializable": true,
|
|
383
|
+
"role": "behaviour",
|
|
384
|
+
"doc": "Keep the trailing icon on the physical right in RTL too. Default false."
|
|
385
|
+
},
|
|
386
|
+
{
|
|
387
|
+
"name": "hasError",
|
|
388
|
+
"type": {
|
|
389
|
+
"kind": "boolean"
|
|
390
|
+
},
|
|
391
|
+
"required": false,
|
|
392
|
+
"default": false,
|
|
393
|
+
"serializable": true,
|
|
394
|
+
"role": "behaviour",
|
|
395
|
+
"doc": "Error state: error outline, label and helper colour. Validation can also set it (`validate()`). Default false."
|
|
396
|
+
},
|
|
397
|
+
{
|
|
398
|
+
"name": "helperText",
|
|
399
|
+
"type": {
|
|
400
|
+
"kind": "string"
|
|
401
|
+
},
|
|
402
|
+
"required": false,
|
|
403
|
+
"serializable": true,
|
|
404
|
+
"role": "content",
|
|
405
|
+
"doc": "Helper line under the field; replaced by `errorText` while the field has an error."
|
|
406
|
+
},
|
|
407
|
+
{
|
|
408
|
+
"name": "id",
|
|
409
|
+
"type": {
|
|
410
|
+
"kind": "string"
|
|
411
|
+
},
|
|
412
|
+
"required": false,
|
|
413
|
+
"serializable": true,
|
|
414
|
+
"role": "identity",
|
|
415
|
+
"doc": "Element `id` of the field root (MAUI `AutomationId`; automation taps its bounds to focus it). Used verbatim: keep it to `[A-Za-z0-9_-]`."
|
|
416
|
+
},
|
|
417
|
+
{
|
|
418
|
+
"name": "innerContentPadding",
|
|
419
|
+
"type": {
|
|
420
|
+
"kind": "object",
|
|
421
|
+
"fields": [
|
|
422
|
+
{
|
|
423
|
+
"name": "left",
|
|
424
|
+
"required": false,
|
|
425
|
+
"type": {
|
|
426
|
+
"kind": "number"
|
|
427
|
+
},
|
|
428
|
+
"serializable": true
|
|
429
|
+
},
|
|
430
|
+
{
|
|
431
|
+
"name": "top",
|
|
432
|
+
"required": false,
|
|
433
|
+
"type": {
|
|
434
|
+
"kind": "number"
|
|
435
|
+
},
|
|
436
|
+
"serializable": true
|
|
437
|
+
},
|
|
438
|
+
{
|
|
439
|
+
"name": "right",
|
|
440
|
+
"required": false,
|
|
441
|
+
"type": {
|
|
442
|
+
"kind": "number"
|
|
443
|
+
},
|
|
444
|
+
"serializable": true
|
|
445
|
+
},
|
|
446
|
+
{
|
|
447
|
+
"name": "bottom",
|
|
448
|
+
"required": false,
|
|
449
|
+
"type": {
|
|
450
|
+
"kind": "number"
|
|
451
|
+
},
|
|
452
|
+
"serializable": true
|
|
453
|
+
}
|
|
454
|
+
]
|
|
455
|
+
},
|
|
456
|
+
"required": false,
|
|
457
|
+
"serializable": true,
|
|
458
|
+
"role": "appearance",
|
|
459
|
+
"doc": "Extra padding of the inner content (MAUI `InnerContentPadding`), physical sides."
|
|
460
|
+
},
|
|
461
|
+
{
|
|
462
|
+
"name": "inputId",
|
|
463
|
+
"type": {
|
|
464
|
+
"kind": "string"
|
|
465
|
+
},
|
|
466
|
+
"required": false,
|
|
467
|
+
"serializable": true,
|
|
468
|
+
"role": "behaviour",
|
|
469
|
+
"doc": "Element id of the inner `<input>`/`<textarea>`."
|
|
470
|
+
},
|
|
471
|
+
{
|
|
472
|
+
"name": "inputTextDirection",
|
|
473
|
+
"type": {
|
|
474
|
+
"kind": "enum",
|
|
475
|
+
"values": [
|
|
476
|
+
"matchParent",
|
|
477
|
+
"leftToRight",
|
|
478
|
+
"rightToLeft"
|
|
479
|
+
]
|
|
480
|
+
},
|
|
481
|
+
"required": false,
|
|
482
|
+
"serializable": true,
|
|
483
|
+
"role": "behaviour",
|
|
484
|
+
"doc": "Direction of the entered text; `'matchParent'` (default) pins numbers, phone, email, URL and passwords LTR."
|
|
485
|
+
},
|
|
486
|
+
{
|
|
487
|
+
"name": "inputType",
|
|
488
|
+
"type": {
|
|
489
|
+
"kind": "enum",
|
|
490
|
+
"values": [
|
|
491
|
+
"number",
|
|
492
|
+
"default",
|
|
493
|
+
"email",
|
|
494
|
+
"phone",
|
|
495
|
+
"custom",
|
|
496
|
+
"url",
|
|
497
|
+
"letters",
|
|
498
|
+
"decimal",
|
|
499
|
+
"signedNumber",
|
|
500
|
+
"signedDecimal",
|
|
501
|
+
"lettersAndNumbers",
|
|
502
|
+
"lettersNumbersSpace",
|
|
503
|
+
"persianLetters",
|
|
504
|
+
"persianLettersAndNumbers",
|
|
505
|
+
"multilingualLettersAndNumbers",
|
|
506
|
+
"noSpecialChars"
|
|
507
|
+
]
|
|
508
|
+
},
|
|
509
|
+
"required": false,
|
|
510
|
+
"default": "default",
|
|
511
|
+
"serializable": true,
|
|
512
|
+
"role": "behaviour",
|
|
513
|
+
"doc": "Semantic input type: keyboard, live filter and blur validation. Default `'default'`."
|
|
514
|
+
},
|
|
515
|
+
{
|
|
516
|
+
"name": "isEditable",
|
|
517
|
+
"type": {
|
|
518
|
+
"kind": "boolean"
|
|
519
|
+
},
|
|
520
|
+
"required": false,
|
|
521
|
+
"default": false,
|
|
522
|
+
"serializable": true,
|
|
523
|
+
"role": "behaviour",
|
|
524
|
+
"doc": "Allow typing as well as scanning (MAUI `IsEditable`). Default false."
|
|
525
|
+
},
|
|
526
|
+
{
|
|
527
|
+
"name": "isPassword",
|
|
528
|
+
"type": {
|
|
529
|
+
"kind": "boolean"
|
|
530
|
+
},
|
|
531
|
+
"required": false,
|
|
532
|
+
"default": false,
|
|
533
|
+
"serializable": true,
|
|
534
|
+
"role": "behaviour",
|
|
535
|
+
"doc": "Mask the value (until the eye reveals it); the text is pinned LTR. Default false."
|
|
536
|
+
},
|
|
537
|
+
{
|
|
538
|
+
"name": "isSpellCheckEnabled",
|
|
539
|
+
"type": {
|
|
540
|
+
"kind": "boolean"
|
|
541
|
+
},
|
|
542
|
+
"required": false,
|
|
543
|
+
"default": true,
|
|
544
|
+
"serializable": true,
|
|
545
|
+
"role": "behaviour",
|
|
546
|
+
"doc": "iOS spell checking (`ios-spell-check`; Android has no attribute). Default true."
|
|
547
|
+
},
|
|
548
|
+
{
|
|
549
|
+
"name": "isTextPredictionEnabled",
|
|
550
|
+
"type": {
|
|
551
|
+
"kind": "boolean"
|
|
552
|
+
},
|
|
553
|
+
"required": false,
|
|
554
|
+
"default": true,
|
|
555
|
+
"serializable": true,
|
|
556
|
+
"role": "behaviour",
|
|
557
|
+
"doc": "iOS auto-correct / prediction (`ios-auto-correct`). Default true."
|
|
558
|
+
},
|
|
559
|
+
{
|
|
560
|
+
"name": "keyboardType",
|
|
561
|
+
"type": {
|
|
562
|
+
"kind": "enum",
|
|
563
|
+
"values": [
|
|
564
|
+
"number",
|
|
565
|
+
"default",
|
|
566
|
+
"email",
|
|
567
|
+
"phone",
|
|
568
|
+
"password",
|
|
569
|
+
"url"
|
|
570
|
+
]
|
|
571
|
+
},
|
|
572
|
+
"required": false,
|
|
573
|
+
"default": "default",
|
|
574
|
+
"serializable": true,
|
|
575
|
+
"role": "behaviour",
|
|
576
|
+
"doc": "On-screen keyboard; used when `inputType` is `'default'` (any other type picks its own). Default `'default'`."
|
|
577
|
+
},
|
|
578
|
+
{
|
|
579
|
+
"name": "label",
|
|
580
|
+
"type": {
|
|
581
|
+
"kind": "string"
|
|
582
|
+
},
|
|
583
|
+
"required": false,
|
|
584
|
+
"serializable": true,
|
|
585
|
+
"role": "content",
|
|
586
|
+
"doc": "Floating label. Without it the placeholder is the label (MAUI `Label ?? Placeholder`)."
|
|
587
|
+
},
|
|
588
|
+
{
|
|
589
|
+
"name": "leadingEmoji",
|
|
590
|
+
"type": {
|
|
591
|
+
"kind": "string"
|
|
592
|
+
},
|
|
593
|
+
"required": false,
|
|
594
|
+
"serializable": true,
|
|
595
|
+
"role": "appearance"
|
|
596
|
+
},
|
|
597
|
+
{
|
|
598
|
+
"name": "leadingIcon",
|
|
599
|
+
"type": {
|
|
600
|
+
"kind": "icon",
|
|
601
|
+
"text": "G9IconInput (a glyph name, «pack:icon», or an icon value)"
|
|
602
|
+
},
|
|
603
|
+
"required": false,
|
|
604
|
+
"serializable": true,
|
|
605
|
+
"role": "appearance"
|
|
606
|
+
},
|
|
607
|
+
{
|
|
608
|
+
"name": "leadingImage",
|
|
609
|
+
"type": {
|
|
610
|
+
"kind": "union",
|
|
611
|
+
"of": [
|
|
612
|
+
{
|
|
613
|
+
"kind": "object",
|
|
614
|
+
"fields": [
|
|
615
|
+
{
|
|
616
|
+
"name": "uri",
|
|
617
|
+
"required": true,
|
|
618
|
+
"type": {
|
|
619
|
+
"kind": "string"
|
|
620
|
+
},
|
|
621
|
+
"serializable": true
|
|
622
|
+
}
|
|
623
|
+
]
|
|
624
|
+
},
|
|
625
|
+
{
|
|
626
|
+
"kind": "object",
|
|
627
|
+
"fields": [
|
|
628
|
+
{
|
|
629
|
+
"name": "asset",
|
|
630
|
+
"required": true,
|
|
631
|
+
"type": {
|
|
632
|
+
"kind": "string"
|
|
633
|
+
},
|
|
634
|
+
"serializable": true
|
|
635
|
+
}
|
|
636
|
+
]
|
|
637
|
+
},
|
|
638
|
+
{
|
|
639
|
+
"kind": "object",
|
|
640
|
+
"fields": [
|
|
641
|
+
{
|
|
642
|
+
"name": "svg",
|
|
643
|
+
"required": true,
|
|
644
|
+
"type": {
|
|
645
|
+
"kind": "string"
|
|
646
|
+
},
|
|
647
|
+
"serializable": true
|
|
648
|
+
}
|
|
649
|
+
]
|
|
650
|
+
}
|
|
651
|
+
]
|
|
652
|
+
},
|
|
653
|
+
"required": false,
|
|
654
|
+
"serializable": true,
|
|
655
|
+
"role": "appearance"
|
|
656
|
+
},
|
|
657
|
+
{
|
|
658
|
+
"name": "leadingImagePath",
|
|
659
|
+
"type": {
|
|
660
|
+
"kind": "string"
|
|
661
|
+
},
|
|
662
|
+
"required": false,
|
|
663
|
+
"serializable": true,
|
|
664
|
+
"role": "appearance"
|
|
665
|
+
},
|
|
666
|
+
{
|
|
667
|
+
"name": "maxLength",
|
|
668
|
+
"type": {
|
|
669
|
+
"kind": "number"
|
|
670
|
+
},
|
|
671
|
+
"required": false,
|
|
672
|
+
"serializable": true,
|
|
673
|
+
"role": "behaviour",
|
|
674
|
+
"doc": "Maximum characters; `-1` (default) or `0` means unlimited."
|
|
675
|
+
},
|
|
676
|
+
{
|
|
677
|
+
"name": "onAccepted",
|
|
678
|
+
"type": {
|
|
679
|
+
"kind": "event",
|
|
680
|
+
"payload": "code: string"
|
|
681
|
+
},
|
|
682
|
+
"required": false,
|
|
683
|
+
"serializable": false,
|
|
684
|
+
"role": "event",
|
|
685
|
+
"doc": "A code passed the acceptor (MAUI `Accepted`); never fired for typed text."
|
|
686
|
+
},
|
|
687
|
+
{
|
|
688
|
+
"name": "onBlur",
|
|
689
|
+
"type": {
|
|
690
|
+
"kind": "event",
|
|
691
|
+
"payload": null
|
|
692
|
+
},
|
|
693
|
+
"required": false,
|
|
694
|
+
"serializable": false,
|
|
695
|
+
"role": "event"
|
|
696
|
+
},
|
|
697
|
+
{
|
|
698
|
+
"name": "onConfirm",
|
|
699
|
+
"type": {
|
|
700
|
+
"kind": "event",
|
|
701
|
+
"payload": "value: string"
|
|
702
|
+
},
|
|
703
|
+
"required": false,
|
|
704
|
+
"serializable": false,
|
|
705
|
+
"role": "event",
|
|
706
|
+
"doc": "The keyboard's confirm key was pressed."
|
|
707
|
+
},
|
|
708
|
+
{
|
|
709
|
+
"name": "onFocus",
|
|
710
|
+
"type": {
|
|
711
|
+
"kind": "event",
|
|
712
|
+
"payload": null
|
|
713
|
+
},
|
|
714
|
+
"required": false,
|
|
715
|
+
"serializable": false,
|
|
716
|
+
"role": "event"
|
|
717
|
+
},
|
|
718
|
+
{
|
|
719
|
+
"name": "onLeadingPress",
|
|
720
|
+
"type": {
|
|
721
|
+
"kind": "event",
|
|
722
|
+
"payload": null
|
|
723
|
+
},
|
|
724
|
+
"required": false,
|
|
725
|
+
"serializable": false,
|
|
726
|
+
"role": "event",
|
|
727
|
+
"doc": "Leading icon tap (MAUI `LeadingCommand` + `CommandParameter`). Makes the icon actionable."
|
|
728
|
+
},
|
|
729
|
+
{
|
|
730
|
+
"name": "onScanRequested",
|
|
731
|
+
"type": {
|
|
732
|
+
"kind": "event",
|
|
733
|
+
"payload": null
|
|
734
|
+
},
|
|
735
|
+
"required": false,
|
|
736
|
+
"serializable": false,
|
|
737
|
+
"role": "event",
|
|
738
|
+
"doc": "The scan icon was tapped (MAUI `ScanRequested`): you own the camera; call `startScan()`, then `acceptScannedCode(code)` and `stopScan()` on the handle. Without it, the field scans through `services.scanner`."
|
|
739
|
+
},
|
|
740
|
+
{
|
|
741
|
+
"name": "onScanStateChange",
|
|
742
|
+
"type": {
|
|
743
|
+
"kind": "event",
|
|
744
|
+
"payload": "state: G9BarcodeTextEntryState"
|
|
745
|
+
},
|
|
746
|
+
"required": false,
|
|
747
|
+
"serializable": false,
|
|
748
|
+
"role": "event"
|
|
749
|
+
},
|
|
750
|
+
{
|
|
751
|
+
"name": "onValidationChange",
|
|
752
|
+
"type": {
|
|
753
|
+
"kind": "event",
|
|
754
|
+
"payload": "message: string | null"
|
|
755
|
+
},
|
|
756
|
+
"required": false,
|
|
757
|
+
"serializable": false,
|
|
758
|
+
"role": "event",
|
|
759
|
+
"doc": "Validation ran (blur, `validateOnTextChanged` or `validate()`): the message, or `null` when valid."
|
|
760
|
+
},
|
|
761
|
+
{
|
|
762
|
+
"name": "onValueChange",
|
|
763
|
+
"type": {
|
|
764
|
+
"kind": "event",
|
|
765
|
+
"payload": "value: string, details: { readonly source: G9BarcodeValueSource; }"
|
|
766
|
+
},
|
|
767
|
+
"required": false,
|
|
768
|
+
"serializable": false,
|
|
769
|
+
"role": "event",
|
|
770
|
+
"doc": "One call per change; `source: 'scan'` for an accepted scanned code."
|
|
771
|
+
},
|
|
772
|
+
{
|
|
773
|
+
"name": "onVoiceFailed",
|
|
774
|
+
"type": {
|
|
775
|
+
"kind": "event",
|
|
776
|
+
"payload": "message: string"
|
|
777
|
+
},
|
|
778
|
+
"required": false,
|
|
779
|
+
"serializable": false,
|
|
780
|
+
"role": "event",
|
|
781
|
+
"doc": "Dictation could not run or finish; a localized message for a toast."
|
|
782
|
+
},
|
|
783
|
+
{
|
|
784
|
+
"name": "onVoiceListeningEnded",
|
|
785
|
+
"type": {
|
|
786
|
+
"kind": "event",
|
|
787
|
+
"payload": null
|
|
788
|
+
},
|
|
789
|
+
"required": false,
|
|
790
|
+
"serializable": false,
|
|
791
|
+
"role": "event"
|
|
792
|
+
},
|
|
793
|
+
{
|
|
794
|
+
"name": "onVoiceListeningStarted",
|
|
795
|
+
"type": {
|
|
796
|
+
"kind": "event",
|
|
797
|
+
"payload": null
|
|
798
|
+
},
|
|
799
|
+
"required": false,
|
|
800
|
+
"serializable": false,
|
|
801
|
+
"role": "event"
|
|
802
|
+
},
|
|
803
|
+
{
|
|
804
|
+
"name": "passwordToggle",
|
|
805
|
+
"type": {
|
|
806
|
+
"kind": "boolean"
|
|
807
|
+
},
|
|
808
|
+
"required": false,
|
|
809
|
+
"default": false,
|
|
810
|
+
"serializable": true,
|
|
811
|
+
"role": "behaviour",
|
|
812
|
+
"doc": "Eye toggle in the trailing slot while there is a value; pins the trailing icon right. Default false."
|
|
813
|
+
},
|
|
814
|
+
{
|
|
815
|
+
"name": "placeholder",
|
|
816
|
+
"type": {
|
|
817
|
+
"kind": "string"
|
|
818
|
+
},
|
|
819
|
+
"required": false,
|
|
820
|
+
"serializable": true,
|
|
821
|
+
"role": "content",
|
|
822
|
+
"doc": "Placeholder; shown as the label when `label` is not set."
|
|
823
|
+
},
|
|
824
|
+
{
|
|
825
|
+
"name": "placeholderInside",
|
|
826
|
+
"type": {
|
|
827
|
+
"kind": "boolean"
|
|
828
|
+
},
|
|
829
|
+
"required": false,
|
|
830
|
+
"default": false,
|
|
831
|
+
"serializable": true,
|
|
832
|
+
"role": "behaviour",
|
|
833
|
+
"doc": "The `placeholder` is the box's own hint (MAUI 1.4.9 `PlaceholderInside`): inside while the field is empty, gone with a value, never lifted into the notch as a label — a chat composer's «یادداشت خود را بنویسید...». A `label`, if set, still floats as usual. Default false: without a label the placeholder is the floating label's text."
|
|
834
|
+
},
|
|
835
|
+
{
|
|
836
|
+
"name": "readOnly",
|
|
837
|
+
"type": {
|
|
838
|
+
"kind": "boolean"
|
|
839
|
+
},
|
|
840
|
+
"required": false,
|
|
841
|
+
"default": false,
|
|
842
|
+
"serializable": true,
|
|
843
|
+
"role": "state",
|
|
844
|
+
"doc": "Value visible and selectable but not editable (MAUI `IsReadOnly`). Default false."
|
|
845
|
+
},
|
|
846
|
+
{
|
|
847
|
+
"name": "reserveFloatingLabelClearance",
|
|
848
|
+
"type": {
|
|
849
|
+
"kind": "boolean"
|
|
850
|
+
},
|
|
851
|
+
"required": false,
|
|
852
|
+
"default": false,
|
|
853
|
+
"serializable": true,
|
|
854
|
+
"role": "behaviour",
|
|
855
|
+
"doc": "Reserve the floated label's overhang above the box (MAUI `FloatingLabelClearance`, 6). Default false."
|
|
856
|
+
},
|
|
857
|
+
{
|
|
858
|
+
"name": "round",
|
|
859
|
+
"type": {
|
|
860
|
+
"kind": "boolean"
|
|
861
|
+
},
|
|
862
|
+
"required": false,
|
|
863
|
+
"serializable": true,
|
|
864
|
+
"role": "behaviour",
|
|
865
|
+
"doc": "Fully rounded ends (a search pill, G9Hub `round`)."
|
|
866
|
+
},
|
|
867
|
+
{
|
|
868
|
+
"name": "scanBusyText",
|
|
869
|
+
"type": {
|
|
870
|
+
"kind": "string"
|
|
871
|
+
},
|
|
872
|
+
"required": false,
|
|
873
|
+
"serializable": true,
|
|
874
|
+
"role": "content",
|
|
875
|
+
"doc": "Placeholder while scanning (MAUI `ScanBusyText`). Default: the `Scanning` string."
|
|
876
|
+
},
|
|
877
|
+
{
|
|
878
|
+
"name": "scanFormats",
|
|
879
|
+
"type": {
|
|
880
|
+
"kind": "array",
|
|
881
|
+
"items": {
|
|
882
|
+
"kind": "string"
|
|
883
|
+
}
|
|
884
|
+
},
|
|
885
|
+
"required": false,
|
|
886
|
+
"serializable": true,
|
|
887
|
+
"role": "behaviour",
|
|
888
|
+
"doc": "Symbologies passed to `services.scanner.scan` (e.g. `['qr', 'code128']`)."
|
|
889
|
+
},
|
|
890
|
+
{
|
|
891
|
+
"name": "scanMode",
|
|
892
|
+
"type": {
|
|
893
|
+
"kind": "enum",
|
|
894
|
+
"values": [
|
|
895
|
+
"single",
|
|
896
|
+
"multiple"
|
|
897
|
+
]
|
|
898
|
+
},
|
|
899
|
+
"required": false,
|
|
900
|
+
"serializable": true,
|
|
901
|
+
"role": "appearance",
|
|
902
|
+
"doc": "`'single'` (default) replaces the text; `'multiple'` appends `\", code\"` and keeps scanning."
|
|
903
|
+
},
|
|
904
|
+
{
|
|
905
|
+
"name": "scanState",
|
|
906
|
+
"type": {
|
|
907
|
+
"kind": "enum",
|
|
908
|
+
"values": [
|
|
909
|
+
"error",
|
|
910
|
+
"idle",
|
|
911
|
+
"scanBusy",
|
|
912
|
+
"accepted"
|
|
913
|
+
]
|
|
914
|
+
},
|
|
915
|
+
"required": false,
|
|
916
|
+
"serializable": true,
|
|
917
|
+
"role": "behaviour",
|
|
918
|
+
"doc": "Controlled scan state (MAUI `ScanState`)."
|
|
919
|
+
},
|
|
920
|
+
{
|
|
921
|
+
"name": "showCharacterCounter",
|
|
922
|
+
"type": {
|
|
923
|
+
"kind": "boolean"
|
|
924
|
+
},
|
|
925
|
+
"required": false,
|
|
926
|
+
"default": false,
|
|
927
|
+
"serializable": true,
|
|
928
|
+
"role": "behaviour",
|
|
929
|
+
"doc": "Show the `n / max` counter (only when `maxLength > 0`). Default false."
|
|
930
|
+
},
|
|
931
|
+
{
|
|
932
|
+
"name": "showFocusHalo",
|
|
933
|
+
"type": {
|
|
934
|
+
"kind": "boolean"
|
|
935
|
+
},
|
|
936
|
+
"required": false,
|
|
937
|
+
"default": false,
|
|
938
|
+
"serializable": true,
|
|
939
|
+
"role": "behaviour",
|
|
940
|
+
"doc": "Soft inner halo while focused (no error, no status colour). Default false."
|
|
941
|
+
},
|
|
942
|
+
{
|
|
943
|
+
"name": "statusColor",
|
|
944
|
+
"type": {
|
|
945
|
+
"kind": "color"
|
|
946
|
+
},
|
|
947
|
+
"required": false,
|
|
948
|
+
"serializable": true,
|
|
949
|
+
"role": "appearance",
|
|
950
|
+
"doc": "Status colour (any CSS colour or `g9Token(...)`); used while `useStatusColor`. Default the primary colour."
|
|
951
|
+
},
|
|
952
|
+
{
|
|
953
|
+
"name": "style",
|
|
954
|
+
"type": {
|
|
955
|
+
"kind": "object",
|
|
956
|
+
"name": "style",
|
|
957
|
+
"map": {
|
|
958
|
+
"kind": "union",
|
|
959
|
+
"of": [
|
|
960
|
+
{
|
|
961
|
+
"kind": "string"
|
|
962
|
+
},
|
|
963
|
+
{
|
|
964
|
+
"kind": "number"
|
|
965
|
+
}
|
|
966
|
+
]
|
|
967
|
+
}
|
|
968
|
+
},
|
|
969
|
+
"required": false,
|
|
970
|
+
"serializable": true,
|
|
971
|
+
"role": "appearance",
|
|
972
|
+
"doc": "Inline style on the field root."
|
|
973
|
+
},
|
|
974
|
+
{
|
|
975
|
+
"name": "trailingEmoji",
|
|
976
|
+
"type": {
|
|
977
|
+
"kind": "string"
|
|
978
|
+
},
|
|
979
|
+
"required": false,
|
|
980
|
+
"serializable": true,
|
|
981
|
+
"role": "appearance"
|
|
982
|
+
},
|
|
983
|
+
{
|
|
984
|
+
"name": "trailingIcon",
|
|
985
|
+
"type": {
|
|
986
|
+
"kind": "icon",
|
|
987
|
+
"text": "G9IconInput (a glyph name, «pack:icon», or an icon value)"
|
|
988
|
+
},
|
|
989
|
+
"required": false,
|
|
990
|
+
"serializable": true,
|
|
991
|
+
"role": "appearance"
|
|
992
|
+
},
|
|
993
|
+
{
|
|
994
|
+
"name": "trailingImage",
|
|
995
|
+
"type": {
|
|
996
|
+
"kind": "union",
|
|
997
|
+
"of": [
|
|
998
|
+
{
|
|
999
|
+
"kind": "object",
|
|
1000
|
+
"fields": [
|
|
1001
|
+
{
|
|
1002
|
+
"name": "uri",
|
|
1003
|
+
"required": true,
|
|
1004
|
+
"type": {
|
|
1005
|
+
"kind": "string"
|
|
1006
|
+
},
|
|
1007
|
+
"serializable": true
|
|
1008
|
+
}
|
|
1009
|
+
]
|
|
1010
|
+
},
|
|
1011
|
+
{
|
|
1012
|
+
"kind": "object",
|
|
1013
|
+
"fields": [
|
|
1014
|
+
{
|
|
1015
|
+
"name": "asset",
|
|
1016
|
+
"required": true,
|
|
1017
|
+
"type": {
|
|
1018
|
+
"kind": "string"
|
|
1019
|
+
},
|
|
1020
|
+
"serializable": true
|
|
1021
|
+
}
|
|
1022
|
+
]
|
|
1023
|
+
},
|
|
1024
|
+
{
|
|
1025
|
+
"kind": "object",
|
|
1026
|
+
"fields": [
|
|
1027
|
+
{
|
|
1028
|
+
"name": "svg",
|
|
1029
|
+
"required": true,
|
|
1030
|
+
"type": {
|
|
1031
|
+
"kind": "string"
|
|
1032
|
+
},
|
|
1033
|
+
"serializable": true
|
|
1034
|
+
}
|
|
1035
|
+
]
|
|
1036
|
+
}
|
|
1037
|
+
]
|
|
1038
|
+
},
|
|
1039
|
+
"required": false,
|
|
1040
|
+
"serializable": true,
|
|
1041
|
+
"role": "appearance"
|
|
1042
|
+
},
|
|
1043
|
+
{
|
|
1044
|
+
"name": "trailingImagePath",
|
|
1045
|
+
"type": {
|
|
1046
|
+
"kind": "string"
|
|
1047
|
+
},
|
|
1048
|
+
"required": false,
|
|
1049
|
+
"serializable": true,
|
|
1050
|
+
"role": "appearance"
|
|
1051
|
+
},
|
|
1052
|
+
{
|
|
1053
|
+
"name": "useStatusColor",
|
|
1054
|
+
"type": {
|
|
1055
|
+
"kind": "boolean"
|
|
1056
|
+
},
|
|
1057
|
+
"required": false,
|
|
1058
|
+
"default": false,
|
|
1059
|
+
"serializable": true,
|
|
1060
|
+
"role": "appearance",
|
|
1061
|
+
"doc": "Draw the outline in `statusColor` (emphasised) whatever the focus. Default false."
|
|
1062
|
+
},
|
|
1063
|
+
{
|
|
1064
|
+
"name": "validateOnTextChanged",
|
|
1065
|
+
"type": {
|
|
1066
|
+
"kind": "boolean"
|
|
1067
|
+
},
|
|
1068
|
+
"required": false,
|
|
1069
|
+
"default": false,
|
|
1070
|
+
"serializable": true,
|
|
1071
|
+
"role": "behaviour",
|
|
1072
|
+
"doc": "Validate on every change, not only on blur. Default false."
|
|
1073
|
+
},
|
|
1074
|
+
{
|
|
1075
|
+
"name": "validationErrorText",
|
|
1076
|
+
"type": {
|
|
1077
|
+
"kind": "string"
|
|
1078
|
+
},
|
|
1079
|
+
"required": false,
|
|
1080
|
+
"serializable": true,
|
|
1081
|
+
"role": "content",
|
|
1082
|
+
"doc": "Message for a failed type validation; default the culture's `invalidEmail` / `invalidUrl` / `invalidValue`."
|
|
1083
|
+
},
|
|
1084
|
+
{
|
|
1085
|
+
"name": "validationPattern",
|
|
1086
|
+
"type": {
|
|
1087
|
+
"kind": "string"
|
|
1088
|
+
},
|
|
1089
|
+
"required": false,
|
|
1090
|
+
"serializable": true,
|
|
1091
|
+
"role": "behaviour",
|
|
1092
|
+
"doc": "Blur validation regex for `inputType: 'custom'`. An invalid pattern fails closed."
|
|
1093
|
+
},
|
|
1094
|
+
{
|
|
1095
|
+
"name": "validator",
|
|
1096
|
+
"type": {
|
|
1097
|
+
"kind": "union",
|
|
1098
|
+
"of": [
|
|
1099
|
+
{
|
|
1100
|
+
"kind": "object",
|
|
1101
|
+
"fields": [
|
|
1102
|
+
{
|
|
1103
|
+
"name": "validate",
|
|
1104
|
+
"required": true,
|
|
1105
|
+
"type": {
|
|
1106
|
+
"kind": "event",
|
|
1107
|
+
"payload": "text: string | null",
|
|
1108
|
+
"returns": "string | null | undefined"
|
|
1109
|
+
},
|
|
1110
|
+
"serializable": false
|
|
1111
|
+
}
|
|
1112
|
+
]
|
|
1113
|
+
},
|
|
1114
|
+
{
|
|
1115
|
+
"kind": "event",
|
|
1116
|
+
"payload": "text: string | null",
|
|
1117
|
+
"returns": "string | null | undefined"
|
|
1118
|
+
}
|
|
1119
|
+
]
|
|
1120
|
+
},
|
|
1121
|
+
"required": false,
|
|
1122
|
+
"serializable": false,
|
|
1123
|
+
"role": "behaviour",
|
|
1124
|
+
"doc": "Extra validation, run before the input-type rule (on blur, `validateOnTextChanged`, `validate()`)."
|
|
1125
|
+
},
|
|
1126
|
+
{
|
|
1127
|
+
"name": "value",
|
|
1128
|
+
"type": {
|
|
1129
|
+
"kind": "string"
|
|
1130
|
+
},
|
|
1131
|
+
"required": false,
|
|
1132
|
+
"serializable": true,
|
|
1133
|
+
"role": "state",
|
|
1134
|
+
"doc": "The text (controlled; MAUI `Text`). Present, the caller owns it and must apply `onValueChange`."
|
|
1135
|
+
},
|
|
1136
|
+
{
|
|
1137
|
+
"name": "voiceEnabled",
|
|
1138
|
+
"type": {
|
|
1139
|
+
"kind": "boolean"
|
|
1140
|
+
},
|
|
1141
|
+
"required": false,
|
|
1142
|
+
"default": false,
|
|
1143
|
+
"serializable": true,
|
|
1144
|
+
"role": "behaviour",
|
|
1145
|
+
"doc": "Offer dictation through `services.speech` (hidden without the service or recogniser). Default false."
|
|
1146
|
+
},
|
|
1147
|
+
{
|
|
1148
|
+
"name": "voiceLocale",
|
|
1149
|
+
"type": {
|
|
1150
|
+
"kind": "string"
|
|
1151
|
+
},
|
|
1152
|
+
"required": false,
|
|
1153
|
+
"serializable": true,
|
|
1154
|
+
"role": "behaviour",
|
|
1155
|
+
"doc": "Locale to recognise (MAUI `VoiceCulture`); default the active culture."
|
|
1156
|
+
}
|
|
1157
|
+
],
|
|
1158
|
+
"anchor": null,
|
|
1159
|
+
"accessibility": {
|
|
1160
|
+
"labelFrom": [
|
|
1161
|
+
"label",
|
|
1162
|
+
"placeholder"
|
|
1163
|
+
],
|
|
1164
|
+
"labelRequired": false
|
|
1165
|
+
},
|
|
1166
|
+
"targets": {
|
|
1167
|
+
"android": "unmeasured",
|
|
1168
|
+
"ios": "unmeasured",
|
|
1169
|
+
"windows": "unmeasured",
|
|
1170
|
+
"macos": "unmeasured",
|
|
1171
|
+
"web": "verified"
|
|
1172
|
+
},
|
|
1173
|
+
"evidence": {
|
|
1174
|
+
"ledger": [
|
|
1175
|
+
"N-129",
|
|
1176
|
+
"N-134"
|
|
1177
|
+
]
|
|
1178
|
+
},
|
|
1179
|
+
"tokens": [],
|
|
1180
|
+
"example": {
|
|
1181
|
+
"line": "<G9BarcodeTextEntry />",
|
|
1182
|
+
"from": "generated"
|
|
1183
|
+
}
|
|
1184
|
+
},
|
|
1185
|
+
{
|
|
1186
|
+
"id": "barcode.qr.G9QrCode",
|
|
1187
|
+
"export": "G9QrCode",
|
|
1188
|
+
"from": "@g9tm/lynxcontrols-barcode/qr",
|
|
1189
|
+
"kind": "component",
|
|
1190
|
+
"family": "qr",
|
|
1191
|
+
"summary": "A QR code (SAC tickets, ShopManager courier code, G9Hub invite links): byte mode, level M, versions 1–10, encoded offline. The matrix is memoised by value, so a re-render costs nothing.",
|
|
1192
|
+
"since": null,
|
|
1193
|
+
"props": [
|
|
1194
|
+
{
|
|
1195
|
+
"name": "accessibilityLabel",
|
|
1196
|
+
"type": {
|
|
1197
|
+
"kind": "string"
|
|
1198
|
+
},
|
|
1199
|
+
"required": true,
|
|
1200
|
+
"serializable": true,
|
|
1201
|
+
"role": "identity",
|
|
1202
|
+
"doc": "Spoken label (what the code is for); the value itself is not read out."
|
|
1203
|
+
},
|
|
1204
|
+
{
|
|
1205
|
+
"name": "background",
|
|
1206
|
+
"type": {
|
|
1207
|
+
"kind": "color"
|
|
1208
|
+
},
|
|
1209
|
+
"required": false,
|
|
1210
|
+
"serializable": true,
|
|
1211
|
+
"role": "behaviour",
|
|
1212
|
+
"doc": "Default white; `null` transparent."
|
|
1213
|
+
},
|
|
1214
|
+
{
|
|
1215
|
+
"name": "className",
|
|
1216
|
+
"type": {
|
|
1217
|
+
"kind": "string"
|
|
1218
|
+
},
|
|
1219
|
+
"required": false,
|
|
1220
|
+
"serializable": true,
|
|
1221
|
+
"role": "appearance"
|
|
1222
|
+
},
|
|
1223
|
+
{
|
|
1224
|
+
"name": "color",
|
|
1225
|
+
"type": {
|
|
1226
|
+
"kind": "color"
|
|
1227
|
+
},
|
|
1228
|
+
"required": false,
|
|
1229
|
+
"serializable": true,
|
|
1230
|
+
"role": "behaviour",
|
|
1231
|
+
"doc": "Default black (a scanner reads dark on light; keep the contrast)."
|
|
1232
|
+
},
|
|
1233
|
+
{
|
|
1234
|
+
"name": "fallback",
|
|
1235
|
+
"type": {
|
|
1236
|
+
"kind": "slot",
|
|
1237
|
+
"accepts": "any"
|
|
1238
|
+
},
|
|
1239
|
+
"required": false,
|
|
1240
|
+
"serializable": false,
|
|
1241
|
+
"role": "slot",
|
|
1242
|
+
"doc": "Shown when the value is too long for a code (over ~200 bytes)."
|
|
1243
|
+
},
|
|
1244
|
+
{
|
|
1245
|
+
"name": "id",
|
|
1246
|
+
"type": {
|
|
1247
|
+
"kind": "string"
|
|
1248
|
+
},
|
|
1249
|
+
"required": false,
|
|
1250
|
+
"serializable": true,
|
|
1251
|
+
"role": "identity"
|
|
1252
|
+
},
|
|
1253
|
+
{
|
|
1254
|
+
"name": "quietZone",
|
|
1255
|
+
"type": {
|
|
1256
|
+
"kind": "number"
|
|
1257
|
+
},
|
|
1258
|
+
"required": false,
|
|
1259
|
+
"default": 4,
|
|
1260
|
+
"serializable": true,
|
|
1261
|
+
"role": "behaviour",
|
|
1262
|
+
"doc": "Quiet zone in modules. Default 4 (the standard)."
|
|
1263
|
+
},
|
|
1264
|
+
{
|
|
1265
|
+
"name": "renderer",
|
|
1266
|
+
"type": {
|
|
1267
|
+
"kind": "enum",
|
|
1268
|
+
"values": [
|
|
1269
|
+
"svg",
|
|
1270
|
+
"views",
|
|
1271
|
+
"png"
|
|
1272
|
+
]
|
|
1273
|
+
},
|
|
1274
|
+
"required": false,
|
|
1275
|
+
"serializable": true,
|
|
1276
|
+
"role": "behaviour",
|
|
1277
|
+
"doc": "`'svg'` (default, the lightest), `'views'`: drawn with views, one per run of dark modules (ShopManager's field app, where a host had no SVG element), or `'png'`: a 1-bit PNG at whole device pixels per module (G9Hub: where `<svg>` crashes the Android x86_64 emulator engine; ~40 KB of data URI for a 45-module code at 200 dp, encoded once)."
|
|
1278
|
+
},
|
|
1279
|
+
{
|
|
1280
|
+
"name": "size",
|
|
1281
|
+
"type": {
|
|
1282
|
+
"kind": "number"
|
|
1283
|
+
},
|
|
1284
|
+
"required": false,
|
|
1285
|
+
"default": 200,
|
|
1286
|
+
"serializable": true,
|
|
1287
|
+
"role": "appearance",
|
|
1288
|
+
"doc": "Side in dp. Default 200."
|
|
1289
|
+
},
|
|
1290
|
+
{
|
|
1291
|
+
"name": "value",
|
|
1292
|
+
"type": {
|
|
1293
|
+
"kind": "string"
|
|
1294
|
+
},
|
|
1295
|
+
"required": true,
|
|
1296
|
+
"serializable": true,
|
|
1297
|
+
"role": "state"
|
|
1298
|
+
}
|
|
1299
|
+
],
|
|
1300
|
+
"anchor": null,
|
|
1301
|
+
"accessibility": {
|
|
1302
|
+
"labelFrom": [
|
|
1303
|
+
"accessibilityLabel"
|
|
1304
|
+
],
|
|
1305
|
+
"labelRequired": false
|
|
1306
|
+
},
|
|
1307
|
+
"targets": {
|
|
1308
|
+
"android": "unmeasured",
|
|
1309
|
+
"ios": "unmeasured",
|
|
1310
|
+
"windows": "unmeasured",
|
|
1311
|
+
"macos": "unmeasured",
|
|
1312
|
+
"web": "verified"
|
|
1313
|
+
},
|
|
1314
|
+
"evidence": {
|
|
1315
|
+
"ledger": [
|
|
1316
|
+
"N-129"
|
|
1317
|
+
]
|
|
1318
|
+
},
|
|
1319
|
+
"tokens": [],
|
|
1320
|
+
"example": {
|
|
1321
|
+
"line": "<G9QrCode accessibilityLabel=\"accessibilityLabel\" value=\"value\" />",
|
|
1322
|
+
"from": "generated"
|
|
1323
|
+
}
|
|
1324
|
+
},
|
|
1325
|
+
{
|
|
1326
|
+
"id": "barcode.barcode.G9ScanCard",
|
|
1327
|
+
"export": "G9ScanCard",
|
|
1328
|
+
"from": "@g9tm/lynxcontrols-barcode",
|
|
1329
|
+
"kind": "component",
|
|
1330
|
+
"family": "barcode",
|
|
1331
|
+
"summary": "A camera card for a walk that scans one code after another (MAUI 6.2.52 TagScanCameraCard): a card of a FIXED height, pinned where the page puts it (the top), the camera's picture dimmed under its chrome, a status chip at the top, a bottom row for a «manual entry» button and the code being worked on, a scan line that sweeps once per awaited code, and a green ✓ / red ✕ for each answer — the phone buzzes too: the caller plays its haptic with the answer. Everything that moves is a CSS animation or transition; nothing runs per frame.",
|
|
1332
|
+
"since": null,
|
|
1333
|
+
"props": [
|
|
1334
|
+
{
|
|
1335
|
+
"name": "bottomEnd",
|
|
1336
|
+
"type": {
|
|
1337
|
+
"kind": "slot",
|
|
1338
|
+
"accepts": "any"
|
|
1339
|
+
},
|
|
1340
|
+
"required": false,
|
|
1341
|
+
"serializable": false,
|
|
1342
|
+
"role": "slot"
|
|
1343
|
+
},
|
|
1344
|
+
{
|
|
1345
|
+
"name": "bottomStart",
|
|
1346
|
+
"type": {
|
|
1347
|
+
"kind": "slot",
|
|
1348
|
+
"accepts": "any"
|
|
1349
|
+
},
|
|
1350
|
+
"required": false,
|
|
1351
|
+
"serializable": false,
|
|
1352
|
+
"role": "slot",
|
|
1353
|
+
"doc": "The bottom row: the start side (a «manual entry» button) and the end side (the tag's id)."
|
|
1354
|
+
},
|
|
1355
|
+
{
|
|
1356
|
+
"name": "camera",
|
|
1357
|
+
"type": {
|
|
1358
|
+
"kind": "slot",
|
|
1359
|
+
"accepts": "any"
|
|
1360
|
+
},
|
|
1361
|
+
"required": false,
|
|
1362
|
+
"serializable": false,
|
|
1363
|
+
"role": "slot",
|
|
1364
|
+
"doc": "The camera element (the app's scanner view) — drawn under everything at `pictureOpacity`. Absent: a neutral panel."
|
|
1365
|
+
},
|
|
1366
|
+
{
|
|
1367
|
+
"name": "children",
|
|
1368
|
+
"type": {
|
|
1369
|
+
"kind": "slot",
|
|
1370
|
+
"accepts": "any"
|
|
1371
|
+
},
|
|
1372
|
+
"required": false,
|
|
1373
|
+
"serializable": false,
|
|
1374
|
+
"role": "slot",
|
|
1375
|
+
"doc": "More overlay (a «try again» button)."
|
|
1376
|
+
},
|
|
1377
|
+
{
|
|
1378
|
+
"name": "className",
|
|
1379
|
+
"type": {
|
|
1380
|
+
"kind": "string"
|
|
1381
|
+
},
|
|
1382
|
+
"required": false,
|
|
1383
|
+
"serializable": true,
|
|
1384
|
+
"role": "appearance"
|
|
1385
|
+
},
|
|
1386
|
+
{
|
|
1387
|
+
"name": "detail",
|
|
1388
|
+
"type": {
|
|
1389
|
+
"kind": "string"
|
|
1390
|
+
},
|
|
1391
|
+
"required": false,
|
|
1392
|
+
"serializable": true,
|
|
1393
|
+
"role": "behaviour"
|
|
1394
|
+
},
|
|
1395
|
+
{
|
|
1396
|
+
"name": "detailLines",
|
|
1397
|
+
"type": {
|
|
1398
|
+
"kind": "number"
|
|
1399
|
+
},
|
|
1400
|
+
"required": false,
|
|
1401
|
+
"default": 3,
|
|
1402
|
+
"serializable": true,
|
|
1403
|
+
"role": "behaviour",
|
|
1404
|
+
"doc": "Default 3 (a refusal's reason must not be cut at two)."
|
|
1405
|
+
},
|
|
1406
|
+
{
|
|
1407
|
+
"name": "direction",
|
|
1408
|
+
"type": {
|
|
1409
|
+
"kind": "enum",
|
|
1410
|
+
"values": [
|
|
1411
|
+
"ltr",
|
|
1412
|
+
"rtl"
|
|
1413
|
+
]
|
|
1414
|
+
},
|
|
1415
|
+
"required": false,
|
|
1416
|
+
"serializable": true,
|
|
1417
|
+
"role": "behaviour"
|
|
1418
|
+
},
|
|
1419
|
+
{
|
|
1420
|
+
"name": "headline",
|
|
1421
|
+
"type": {
|
|
1422
|
+
"kind": "string"
|
|
1423
|
+
},
|
|
1424
|
+
"required": true,
|
|
1425
|
+
"serializable": true,
|
|
1426
|
+
"role": "behaviour",
|
|
1427
|
+
"doc": "The status chip: a headline, an optional detail (up to `detailLines`), its colour (null = a translucent dark chip)."
|
|
1428
|
+
},
|
|
1429
|
+
{
|
|
1430
|
+
"name": "height",
|
|
1431
|
+
"type": {
|
|
1432
|
+
"kind": "number"
|
|
1433
|
+
},
|
|
1434
|
+
"required": true,
|
|
1435
|
+
"serializable": true,
|
|
1436
|
+
"role": "behaviour",
|
|
1437
|
+
"doc": "The card's height in dp — FIXED by the caller when the page is built (a keyboard opening must not shrink it)."
|
|
1438
|
+
},
|
|
1439
|
+
{
|
|
1440
|
+
"name": "id",
|
|
1441
|
+
"type": {
|
|
1442
|
+
"kind": "string"
|
|
1443
|
+
},
|
|
1444
|
+
"required": false,
|
|
1445
|
+
"serializable": true,
|
|
1446
|
+
"role": "identity"
|
|
1447
|
+
},
|
|
1448
|
+
{
|
|
1449
|
+
"name": "pictureOpacity",
|
|
1450
|
+
"type": {
|
|
1451
|
+
"kind": "number"
|
|
1452
|
+
},
|
|
1453
|
+
"required": false,
|
|
1454
|
+
"default": 0.79,
|
|
1455
|
+
"serializable": true,
|
|
1456
|
+
"role": "appearance",
|
|
1457
|
+
"doc": "The picture's opacity (on the picture only, never a parent layer). Default 0.79."
|
|
1458
|
+
},
|
|
1459
|
+
{
|
|
1460
|
+
"name": "style",
|
|
1461
|
+
"type": {
|
|
1462
|
+
"kind": "object",
|
|
1463
|
+
"name": "style",
|
|
1464
|
+
"map": {
|
|
1465
|
+
"kind": "union",
|
|
1466
|
+
"of": [
|
|
1467
|
+
{
|
|
1468
|
+
"kind": "string"
|
|
1469
|
+
},
|
|
1470
|
+
{
|
|
1471
|
+
"kind": "number"
|
|
1472
|
+
}
|
|
1473
|
+
]
|
|
1474
|
+
}
|
|
1475
|
+
},
|
|
1476
|
+
"required": false,
|
|
1477
|
+
"serializable": true,
|
|
1478
|
+
"role": "appearance"
|
|
1479
|
+
},
|
|
1480
|
+
{
|
|
1481
|
+
"name": "sweepKey",
|
|
1482
|
+
"type": {
|
|
1483
|
+
"kind": "union",
|
|
1484
|
+
"of": [
|
|
1485
|
+
{
|
|
1486
|
+
"kind": "string"
|
|
1487
|
+
},
|
|
1488
|
+
{
|
|
1489
|
+
"kind": "number"
|
|
1490
|
+
}
|
|
1491
|
+
]
|
|
1492
|
+
},
|
|
1493
|
+
"required": false,
|
|
1494
|
+
"serializable": true,
|
|
1495
|
+
"role": "behaviour",
|
|
1496
|
+
"doc": "Sweeps the scan line once each time this changes (a new code is awaited)."
|
|
1497
|
+
},
|
|
1498
|
+
{
|
|
1499
|
+
"name": "tone",
|
|
1500
|
+
"type": {
|
|
1501
|
+
"kind": "string"
|
|
1502
|
+
},
|
|
1503
|
+
"required": false,
|
|
1504
|
+
"serializable": true,
|
|
1505
|
+
"role": "appearance"
|
|
1506
|
+
},
|
|
1507
|
+
{
|
|
1508
|
+
"name": "verdict",
|
|
1509
|
+
"type": {
|
|
1510
|
+
"kind": "enum",
|
|
1511
|
+
"values": [
|
|
1512
|
+
"accepted",
|
|
1513
|
+
"refused"
|
|
1514
|
+
]
|
|
1515
|
+
},
|
|
1516
|
+
"required": false,
|
|
1517
|
+
"serializable": true,
|
|
1518
|
+
"role": "behaviour",
|
|
1519
|
+
"doc": "The last answer and its key: a new key flashes the verdict (and replays nothing else)."
|
|
1520
|
+
},
|
|
1521
|
+
{
|
|
1522
|
+
"name": "verdictKey",
|
|
1523
|
+
"type": {
|
|
1524
|
+
"kind": "union",
|
|
1525
|
+
"of": [
|
|
1526
|
+
{
|
|
1527
|
+
"kind": "string"
|
|
1528
|
+
},
|
|
1529
|
+
{
|
|
1530
|
+
"kind": "number"
|
|
1531
|
+
}
|
|
1532
|
+
]
|
|
1533
|
+
},
|
|
1534
|
+
"required": false,
|
|
1535
|
+
"serializable": true,
|
|
1536
|
+
"role": "behaviour"
|
|
1537
|
+
},
|
|
1538
|
+
{
|
|
1539
|
+
"name": "verdictMs",
|
|
1540
|
+
"type": {
|
|
1541
|
+
"kind": "number"
|
|
1542
|
+
},
|
|
1543
|
+
"required": false,
|
|
1544
|
+
"default": 900,
|
|
1545
|
+
"serializable": true,
|
|
1546
|
+
"role": "behaviour",
|
|
1547
|
+
"doc": "How long the verdict stays, ms. Default 900."
|
|
1548
|
+
}
|
|
1549
|
+
],
|
|
1550
|
+
"anchor": null,
|
|
1551
|
+
"accessibility": {
|
|
1552
|
+
"labelFrom": [],
|
|
1553
|
+
"labelRequired": false
|
|
1554
|
+
},
|
|
1555
|
+
"targets": {
|
|
1556
|
+
"android": "unmeasured",
|
|
1557
|
+
"ios": "unmeasured",
|
|
1558
|
+
"windows": "unmeasured",
|
|
1559
|
+
"macos": "unmeasured",
|
|
1560
|
+
"web": "verified"
|
|
1561
|
+
},
|
|
1562
|
+
"evidence": {
|
|
1563
|
+
"ledger": [
|
|
1564
|
+
"N-129",
|
|
1565
|
+
"N-134"
|
|
1566
|
+
]
|
|
1567
|
+
},
|
|
1568
|
+
"tokens": [
|
|
1569
|
+
"Error",
|
|
1570
|
+
"Success",
|
|
1571
|
+
"SurfaceContainer"
|
|
1572
|
+
],
|
|
1573
|
+
"example": {
|
|
1574
|
+
"line": "<G9ScanCard headline=\"headline\" height={1} />",
|
|
1575
|
+
"from": "generated"
|
|
1576
|
+
}
|
|
1577
|
+
}
|
|
1578
|
+
],
|
|
1579
|
+
"exports": [
|
|
1580
|
+
{
|
|
1581
|
+
"id": "barcode.qr.adler32",
|
|
1582
|
+
"export": "adler32",
|
|
1583
|
+
"from": "@g9tm/lynxcontrols-barcode/qr",
|
|
1584
|
+
"kind": "function",
|
|
1585
|
+
"signature": "(bytes: Uint8Array<ArrayBufferLike>): number",
|
|
1586
|
+
"summary": "Adler-32 (zlib): `adler32(ascii('Wikipedia')) === 0x11e60398`."
|
|
1587
|
+
},
|
|
1588
|
+
{
|
|
1589
|
+
"id": "barcode.barcode.appendScannedCode",
|
|
1590
|
+
"export": "appendScannedCode",
|
|
1591
|
+
"from": "@g9tm/lynxcontrols-barcode",
|
|
1592
|
+
"kind": "function",
|
|
1593
|
+
"signature": "(text: string, code: string, mode: G9BarcodeScanMode): string",
|
|
1594
|
+
"summary": "The text after accepting `code` (MAUI: `Single` replaces, `Multiple` appends with `\", \"`)."
|
|
1595
|
+
},
|
|
1596
|
+
{
|
|
1597
|
+
"id": "barcode.barcode.barcodeFieldState",
|
|
1598
|
+
"export": "barcodeFieldState",
|
|
1599
|
+
"from": "@g9tm/lynxcontrols-barcode",
|
|
1600
|
+
"kind": "function",
|
|
1601
|
+
"signature": "(state: G9BarcodeTextEntryState, consumer: G9BarcodeConsumerField, scanBusyText: string): G9BarcodeFieldState",
|
|
1602
|
+
"summary": "Effective field values for a scan state (the MAUI table): error forces `hasError`; not editable or busy forces read-only; busy / accepted force the status colour (primary / success); busy swaps the placeholder for `scanBusyText` and shows a spinner; accepted / error swap the trailing glyph. Everything else is the consumer's."
|
|
1603
|
+
},
|
|
1604
|
+
{
|
|
1605
|
+
"id": "barcode.qr.crc32",
|
|
1606
|
+
"export": "crc32",
|
|
1607
|
+
"from": "@g9tm/lynxcontrols-barcode/qr",
|
|
1608
|
+
"kind": "function",
|
|
1609
|
+
"signature": "(bytes: Uint8Array<ArrayBufferLike>, start?: number, end?: number): number",
|
|
1610
|
+
"summary": "CRC-32 (the PNG/zlib one): `crc32(ascii('123456789')) === 0xcbf43926`."
|
|
1611
|
+
},
|
|
1612
|
+
{
|
|
1613
|
+
"id": "barcode.qr.encodeBitmapPng",
|
|
1614
|
+
"export": "encodeBitmapPng",
|
|
1615
|
+
"from": "@g9tm/lynxcontrols-barcode/qr",
|
|
1616
|
+
"kind": "function",
|
|
1617
|
+
"signature": "(width: number, height: number, pixel: (x: number, y: number) => number, colors: { readonly on: string; readonly off: string | null; }): Uint8Array<ArrayBufferLike>",
|
|
1618
|
+
"summary": "A 1-bit palette PNG: `pixel(x, y)` is 1 for the `on` colour, 0 for `off` (`off: null` = transparent)."
|
|
1619
|
+
},
|
|
1620
|
+
{
|
|
1621
|
+
"id": "barcode.barcode.G9BarcodeAcceptor",
|
|
1622
|
+
"export": "G9BarcodeAcceptor",
|
|
1623
|
+
"from": "@g9tm/lynxcontrols-barcode",
|
|
1624
|
+
"kind": "type",
|
|
1625
|
+
"signature": "G9BarcodeAcceptor",
|
|
1626
|
+
"summary": "A code acceptor: a pattern (string or `RegExp`), or a function the app supplies."
|
|
1627
|
+
},
|
|
1628
|
+
{
|
|
1629
|
+
"id": "barcode.barcode.G9BarcodeConsumerField",
|
|
1630
|
+
"export": "G9BarcodeConsumerField",
|
|
1631
|
+
"from": "@g9tm/lynxcontrols-barcode",
|
|
1632
|
+
"kind": "interface",
|
|
1633
|
+
"signature": "G9BarcodeConsumerField",
|
|
1634
|
+
"summary": "What the consumer set on the borrowed field properties."
|
|
1635
|
+
},
|
|
1636
|
+
{
|
|
1637
|
+
"id": "barcode.barcode.G9BarcodeFieldState",
|
|
1638
|
+
"export": "G9BarcodeFieldState",
|
|
1639
|
+
"from": "@g9tm/lynxcontrols-barcode",
|
|
1640
|
+
"kind": "interface",
|
|
1641
|
+
"signature": "G9BarcodeFieldState",
|
|
1642
|
+
"summary": "The field properties a scan state layers over the consumer's values (MAUI `ApplyBarcodeState`)."
|
|
1643
|
+
},
|
|
1644
|
+
{
|
|
1645
|
+
"id": "barcode.barcode.g9BarcodeMaxCodeLength",
|
|
1646
|
+
"export": "g9BarcodeMaxCodeLength",
|
|
1647
|
+
"from": "@g9tm/lynxcontrols-barcode",
|
|
1648
|
+
"kind": "constant",
|
|
1649
|
+
"signature": "4096",
|
|
1650
|
+
"summary": "Codes longer than this are rejected before any pattern runs, so a consumer pattern never sees unbounded input."
|
|
1651
|
+
},
|
|
1652
|
+
{
|
|
1653
|
+
"id": "barcode.barcode.G9BarcodeScanMode",
|
|
1654
|
+
"export": "G9BarcodeScanMode",
|
|
1655
|
+
"from": "@g9tm/lynxcontrols-barcode",
|
|
1656
|
+
"kind": "type",
|
|
1657
|
+
"signature": "G9BarcodeScanMode",
|
|
1658
|
+
"summary": "Whether the field keeps one code or collects many (MAUI `G9BarcodeScanMode`)."
|
|
1659
|
+
},
|
|
1660
|
+
{
|
|
1661
|
+
"id": "barcode.barcode.G9BarcodeTextEntryHandle",
|
|
1662
|
+
"export": "G9BarcodeTextEntryHandle",
|
|
1663
|
+
"from": "@g9tm/lynxcontrols-barcode",
|
|
1664
|
+
"kind": "interface",
|
|
1665
|
+
"signature": "G9BarcodeTextEntryHandle",
|
|
1666
|
+
"summary": "Imperative handle: the text-entry handle plus MAUI `StartScan` / `StopScan` / `AcceptScannedCode`."
|
|
1667
|
+
},
|
|
1668
|
+
{
|
|
1669
|
+
"id": "barcode.barcode.G9BarcodeTextEntryProps",
|
|
1670
|
+
"export": "G9BarcodeTextEntryProps",
|
|
1671
|
+
"from": "@g9tm/lynxcontrols-barcode",
|
|
1672
|
+
"kind": "interface",
|
|
1673
|
+
"signature": "G9BarcodeTextEntryProps",
|
|
1674
|
+
"summary": "Props of `G9BarcodeTextEntry`: every `G9TextEntry` prop plus the scan workflow."
|
|
1675
|
+
},
|
|
1676
|
+
{
|
|
1677
|
+
"id": "barcode.barcode.G9BarcodeTextEntryState",
|
|
1678
|
+
"export": "G9BarcodeTextEntryState",
|
|
1679
|
+
"from": "@g9tm/lynxcontrols-barcode",
|
|
1680
|
+
"kind": "type",
|
|
1681
|
+
"signature": "G9BarcodeTextEntryState",
|
|
1682
|
+
"summary": "The scan state, tracked apart from the field's own error (MAUI `G9BarcodeTextEntryState`)."
|
|
1683
|
+
},
|
|
1684
|
+
{
|
|
1685
|
+
"id": "barcode.barcode.G9BarcodeValueSource",
|
|
1686
|
+
"export": "G9BarcodeValueSource",
|
|
1687
|
+
"from": "@g9tm/lynxcontrols-barcode",
|
|
1688
|
+
"kind": "type",
|
|
1689
|
+
"signature": "G9BarcodeValueSource",
|
|
1690
|
+
"summary": "Where a barcode field's value change came from: the text-entry sources plus an accepted `'scan'`."
|
|
1691
|
+
},
|
|
1692
|
+
{
|
|
1693
|
+
"id": "barcode.qr.G9QrCodeProps",
|
|
1694
|
+
"export": "G9QrCodeProps",
|
|
1695
|
+
"from": "@g9tm/lynxcontrols-barcode/qr",
|
|
1696
|
+
"kind": "interface",
|
|
1697
|
+
"signature": "G9QrCodeProps",
|
|
1698
|
+
"summary": "Props of `G9QrCode`."
|
|
1699
|
+
},
|
|
1700
|
+
{
|
|
1701
|
+
"id": "barcode.qr.G9QrPngOptions",
|
|
1702
|
+
"export": "G9QrPngOptions",
|
|
1703
|
+
"from": "@g9tm/lynxcontrols-barcode/qr",
|
|
1704
|
+
"kind": "interface",
|
|
1705
|
+
"signature": "G9QrPngOptions",
|
|
1706
|
+
"summary": "Options of `qrPng`."
|
|
1707
|
+
},
|
|
1708
|
+
{
|
|
1709
|
+
"id": "barcode.barcode.g9ScanCardBottomBand",
|
|
1710
|
+
"export": "g9ScanCardBottomBand",
|
|
1711
|
+
"from": "@g9tm/lynxcontrols-barcode",
|
|
1712
|
+
"kind": "constant",
|
|
1713
|
+
"signature": "48",
|
|
1714
|
+
"summary": "The bottom row's band (manual entry, torch) from the bottom, in dp."
|
|
1715
|
+
},
|
|
1716
|
+
{
|
|
1717
|
+
"id": "barcode.barcode.g9ScanCardChipBand",
|
|
1718
|
+
"export": "g9ScanCardChipBand",
|
|
1719
|
+
"from": "@g9tm/lynxcontrols-barcode",
|
|
1720
|
+
"kind": "constant",
|
|
1721
|
+
"signature": "56",
|
|
1722
|
+
"summary": "The status chip's band from the top, in dp (the verdict sits between it and the bottom band)."
|
|
1723
|
+
},
|
|
1724
|
+
{
|
|
1725
|
+
"id": "barcode.barcode.G9ScanCardProps",
|
|
1726
|
+
"export": "G9ScanCardProps",
|
|
1727
|
+
"from": "@g9tm/lynxcontrols-barcode",
|
|
1728
|
+
"kind": "interface",
|
|
1729
|
+
"signature": "G9ScanCardProps",
|
|
1730
|
+
"summary": "Props of `G9ScanCard`."
|
|
1731
|
+
},
|
|
1732
|
+
{
|
|
1733
|
+
"id": "barcode.barcode.G9ScanVerdict",
|
|
1734
|
+
"export": "G9ScanVerdict",
|
|
1735
|
+
"from": "@g9tm/lynxcontrols-barcode",
|
|
1736
|
+
"kind": "type",
|
|
1737
|
+
"signature": "G9ScanVerdict",
|
|
1738
|
+
"summary": "The answer a scan card shows over its picture for a moment: ✓ accepted, ✕ refused."
|
|
1739
|
+
},
|
|
1740
|
+
{
|
|
1741
|
+
"id": "barcode.barcode.g9ScanVerdictSize",
|
|
1742
|
+
"export": "g9ScanVerdictSize",
|
|
1743
|
+
"from": "@g9tm/lynxcontrols-barcode",
|
|
1744
|
+
"kind": "function",
|
|
1745
|
+
"signature": "(height: number): number",
|
|
1746
|
+
"summary": "Where the verdict badge fits: the band between the status chip and the bottom row. A full badge (64 dp) when the band holds it, a smaller one (≥ 36 dp) when it is short, none at all below that (it lay under the chip's text on a short barcode card — MAUI 6.2.52)."
|
|
1747
|
+
},
|
|
1748
|
+
{
|
|
1749
|
+
"id": "barcode.barcode.isBarcodeAccepted",
|
|
1750
|
+
"export": "isBarcodeAccepted",
|
|
1751
|
+
"from": "@g9tm/lynxcontrols-barcode",
|
|
1752
|
+
"kind": "function",
|
|
1753
|
+
"signature": "(code: string, acceptor: G9BarcodeAcceptor): boolean",
|
|
1754
|
+
"summary": "Whether a scanned code is accepted (MAUI `IsCodeAccepted`): no acceptor accepts any code; a malformed pattern or a throwing function rejects it instead of throwing into the scan flow. A code over `g9BarcodeMaxCodeLength` characters is rejected (MAUI bounded the match with a 250 ms regex timeout, which JavaScript cannot do)."
|
|
1755
|
+
},
|
|
1756
|
+
{
|
|
1757
|
+
"id": "barcode.qr.qrMatrix",
|
|
1758
|
+
"export": "qrMatrix",
|
|
1759
|
+
"from": "@g9tm/lynxcontrols-barcode/qr",
|
|
1760
|
+
"kind": "function",
|
|
1761
|
+
"signature": "(text: string, mask?: number | undefined): boolean[][] | null",
|
|
1762
|
+
"summary": "The module matrix (true = dark) for `text`, or null when it is too long. `mask` forces a mask (tests)."
|
|
1763
|
+
},
|
|
1764
|
+
{
|
|
1765
|
+
"id": "barcode.qr.qrPng",
|
|
1766
|
+
"export": "qrPng",
|
|
1767
|
+
"from": "@g9tm/lynxcontrols-barcode/qr",
|
|
1768
|
+
"kind": "function",
|
|
1769
|
+
"signature": "(matrix: readonly (readonly boolean[])[], options?: G9QrPngOptions): { readonly bytes: Uint8Array<ArrayBufferLike>; readonly uri: string; readonly pixels: number; }",
|
|
1770
|
+
"summary": "A QR matrix as a PNG at whole device pixels per module: the bytes, the data URI and the image's edge."
|
|
1771
|
+
},
|
|
1772
|
+
{
|
|
1773
|
+
"id": "barcode.qr.qrRuns",
|
|
1774
|
+
"export": "qrRuns",
|
|
1775
|
+
"from": "@g9tm/lynxcontrols-barcode/qr",
|
|
1776
|
+
"kind": "function",
|
|
1777
|
+
"signature": "(matrix: readonly (readonly boolean[])[]): { readonly y: number; readonly x: number; readonly length: number; }[]",
|
|
1778
|
+
"summary": "Runs of dark modules per row (for the view renderer)."
|
|
1779
|
+
},
|
|
1780
|
+
{
|
|
1781
|
+
"id": "barcode.qr.qrSvg",
|
|
1782
|
+
"export": "qrSvg",
|
|
1783
|
+
"from": "@g9tm/lynxcontrols-barcode/qr",
|
|
1784
|
+
"kind": "function",
|
|
1785
|
+
"signature": "(text: string, dark?: string, light?: string): string",
|
|
1786
|
+
"summary": "The code as SVG text (for `<svg content=…>`), with the 4-module quiet zone."
|
|
1787
|
+
},
|
|
1788
|
+
{
|
|
1789
|
+
"id": "barcode.qr.qrSvgRuns",
|
|
1790
|
+
"export": "qrSvgRuns",
|
|
1791
|
+
"from": "@g9tm/lynxcontrols-barcode/qr",
|
|
1792
|
+
"kind": "function",
|
|
1793
|
+
"signature": "(matrix: readonly (readonly boolean[])[], dark: string, light: string | null, quiet?: number): string",
|
|
1794
|
+
"summary": "The matrix as SVG with horizontal runs merged into one rect each (far fewer nodes than one per module: a version-4 code is ~33×33 = 1089 modules but a few hundred runs), quiet zone included."
|
|
1795
|
+
},
|
|
1796
|
+
{
|
|
1797
|
+
"id": "barcode.qr.zlibStored",
|
|
1798
|
+
"export": "zlibStored",
|
|
1799
|
+
"from": "@g9tm/lynxcontrols-barcode/qr",
|
|
1800
|
+
"kind": "function",
|
|
1801
|
+
"signature": "(data: Uint8Array<ArrayBufferLike>): Uint8Array<ArrayBufferLike>",
|
|
1802
|
+
"summary": "A zlib stream of stored (uncompressed) deflate blocks."
|
|
1803
|
+
}
|
|
1804
|
+
]
|
|
1805
|
+
}
|