@nice2dev/ui-platform 1.1.7 → 1.1.10
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/dist/index.cjs +9 -9
- package/dist/index.d.ts +526 -205
- package/dist/index.mjs +4221 -3781
- package/dist/ui-platform.css +1 -1
- package/package.json +2 -1
- package/dist/style.css +0 -1
package/dist/index.d.ts
CHANGED
|
@@ -1,8 +1,10 @@
|
|
|
1
|
+
import { ChangeEvent } from 'react';
|
|
1
2
|
import { CSSProperties } from 'react';
|
|
2
3
|
import { default as default_2 } from 'react';
|
|
4
|
+
import { FormEvent } from 'react';
|
|
3
5
|
import { ReactNode } from 'react';
|
|
4
6
|
|
|
5
|
-
declare interface AutoStartConfig {
|
|
7
|
+
export declare interface AutoStartConfig {
|
|
6
8
|
/** Show splash screen */
|
|
7
9
|
showSplash?: boolean;
|
|
8
10
|
/** Splash duration (ms, minimum display time) */
|
|
@@ -27,7 +29,13 @@ declare interface AutoStartConfig {
|
|
|
27
29
|
sendAnalytics?: boolean;
|
|
28
30
|
}
|
|
29
31
|
|
|
30
|
-
declare interface AutoStartState {
|
|
32
|
+
declare interface AutoStartContextValue extends AutoStartState {
|
|
33
|
+
restart: () => Promise<void>;
|
|
34
|
+
skip: () => void;
|
|
35
|
+
hideSplash: () => void;
|
|
36
|
+
}
|
|
37
|
+
|
|
38
|
+
export declare interface AutoStartState {
|
|
31
39
|
/** Current phase */
|
|
32
40
|
phase: StartupPhase;
|
|
33
41
|
/** Is loading */
|
|
@@ -54,7 +62,7 @@ declare interface AutoStartState {
|
|
|
54
62
|
totalDuration: number;
|
|
55
63
|
}
|
|
56
64
|
|
|
57
|
-
declare interface BackgroundSyncConfig {
|
|
65
|
+
export declare interface BackgroundSyncConfig {
|
|
58
66
|
/** IndexedDB database name for queue */
|
|
59
67
|
dbName?: string;
|
|
60
68
|
/** IndexedDB store name for queue */
|
|
@@ -73,7 +81,24 @@ declare interface BackgroundSyncConfig {
|
|
|
73
81
|
periodicSyncInterval?: number;
|
|
74
82
|
}
|
|
75
83
|
|
|
76
|
-
declare interface BackgroundSyncState {
|
|
84
|
+
declare interface BackgroundSyncContextValue extends BackgroundSyncState {
|
|
85
|
+
addTask: <T = unknown>(tag: string, data: T, options?: Partial<Pick<SyncTask, 'priority' | 'maxAttempts'>>) => Promise<string>;
|
|
86
|
+
removeTask: (taskId: string) => Promise<boolean>;
|
|
87
|
+
getTasks: (tag?: string) => Promise<SyncTask[]>;
|
|
88
|
+
getPendingTasks: (tag?: string) => Promise<SyncTask[]>;
|
|
89
|
+
getFailedTasks: (tag?: string) => Promise<SyncTask[]>;
|
|
90
|
+
retryTask: (taskId: string) => Promise<void>;
|
|
91
|
+
retryAllFailed: (tag?: string) => Promise<void>;
|
|
92
|
+
clearTasks: (tag?: string) => Promise<void>;
|
|
93
|
+
clearFailed: (tag?: string) => Promise<void>;
|
|
94
|
+
syncNow: (tag?: string) => Promise<{
|
|
95
|
+
success: number;
|
|
96
|
+
failed: number;
|
|
97
|
+
}>;
|
|
98
|
+
cancelSync: () => void;
|
|
99
|
+
}
|
|
100
|
+
|
|
101
|
+
export declare interface BackgroundSyncState {
|
|
77
102
|
/** Is online */
|
|
78
103
|
isOnline: boolean;
|
|
79
104
|
/** Is currently syncing */
|
|
@@ -90,13 +115,11 @@ declare interface BackgroundSyncState {
|
|
|
90
115
|
error?: string;
|
|
91
116
|
}
|
|
92
117
|
|
|
93
|
-
declare type BarcodeFormat = 'aztec' | 'code_128' | 'code_39' | 'code_93' | 'codabar' | 'data_matrix' | 'ean_13' | 'ean_8' | 'itf' | 'pdf417' | 'qr_code' | 'upc_a' | 'upc_e' | 'unknown';
|
|
94
|
-
|
|
95
|
-
declare type BarcodeFormat_2 = 'aztec' | 'code_128' | 'code_39' | 'code_93' | 'codabar' | 'data_matrix' | 'ean_13' | 'ean_8' | 'itf' | 'pdf417' | 'qr_code' | 'upc_a' | 'upc_e' | 'unknown';
|
|
118
|
+
export declare type BarcodeFormat = 'aztec' | 'code_128' | 'code_39' | 'code_93' | 'codabar' | 'data_matrix' | 'ean_13' | 'ean_8' | 'itf' | 'pdf417' | 'qr_code' | 'upc_a' | 'upc_e' | 'unknown';
|
|
96
119
|
|
|
97
|
-
declare type BarcodeGeneratorFormat = 'code128' | 'code39' | 'code93' | 'ean13' | 'ean8' | 'upc' | 'itf14' | 'msi' | 'pharmacode' | 'codabar';
|
|
120
|
+
export declare type BarcodeGeneratorFormat = 'code128' | 'code39' | 'code93' | 'ean13' | 'ean8' | 'upc' | 'itf14' | 'msi' | 'pharmacode' | 'codabar';
|
|
98
121
|
|
|
99
|
-
declare interface BarcodeGeneratorOptions {
|
|
122
|
+
export declare interface BarcodeGeneratorOptions {
|
|
100
123
|
/** Barcode format */
|
|
101
124
|
format?: BarcodeGeneratorFormat;
|
|
102
125
|
/** Bar width */
|
|
@@ -115,9 +138,9 @@ declare interface BarcodeGeneratorOptions {
|
|
|
115
138
|
textPosition?: 'top' | 'bottom';
|
|
116
139
|
/** Text margin */
|
|
117
140
|
textMargin?: number;
|
|
118
|
-
/** Background color */
|
|
141
|
+
/** Background color — a literal CSS colour (hex/rgb); canvas cannot resolve `var()`. */
|
|
119
142
|
background?: string;
|
|
120
|
-
/** Bar/line color */
|
|
143
|
+
/** Bar/line color — a literal CSS colour (hex/rgb); canvas cannot resolve `var()`. */
|
|
121
144
|
lineColor?: string;
|
|
122
145
|
/** Margin around barcode */
|
|
123
146
|
margin?: number;
|
|
@@ -133,7 +156,7 @@ declare interface BarcodeGeneratorOptions {
|
|
|
133
156
|
flat?: boolean;
|
|
134
157
|
}
|
|
135
158
|
|
|
136
|
-
declare interface BarcodeScannerConfig {
|
|
159
|
+
export declare interface BarcodeScannerConfig {
|
|
137
160
|
/** Formats to detect */
|
|
138
161
|
formats?: BarcodeFormat[];
|
|
139
162
|
/** Enable continuous scanning */
|
|
@@ -154,7 +177,7 @@ declare interface BarcodeScannerConfig {
|
|
|
154
177
|
resolution?: 'sd' | 'hd' | 'fhd';
|
|
155
178
|
}
|
|
156
179
|
|
|
157
|
-
declare interface BarcodeScannerState {
|
|
180
|
+
export declare interface BarcodeScannerState {
|
|
158
181
|
/** Is scanner active */
|
|
159
182
|
isScanning: boolean;
|
|
160
183
|
/** Is camera ready */
|
|
@@ -169,7 +192,7 @@ declare interface BarcodeScannerState {
|
|
|
169
192
|
hasPermission: boolean | null;
|
|
170
193
|
}
|
|
171
194
|
|
|
172
|
-
declare interface BarcodeScanResult {
|
|
195
|
+
export declare interface BarcodeScanResult {
|
|
173
196
|
/** Raw barcode value */
|
|
174
197
|
rawValue: string;
|
|
175
198
|
/** Detected format */
|
|
@@ -192,11 +215,24 @@ declare interface BarcodeScanResult {
|
|
|
192
215
|
confidence?: number;
|
|
193
216
|
}
|
|
194
217
|
|
|
195
|
-
declare type BarcodeSymbology = 'code128' | 'code128a' | 'code128b' | 'code128c' | 'code39' | 'code93' | 'codabar' | 'ean13' | 'ean8' | 'ean5' | 'ean2' | 'upc_a' | 'upc_e' | 'itf' | 'itf14' | 'msi' | 'pharmacode' | 'plessey' | 'telepen' | 'qr_code' | 'data_matrix' | 'aztec' | 'pdf417' | 'maxicode' | 'gs1_128' | 'gs1_databar';
|
|
218
|
+
export declare type BarcodeSymbology = 'code128' | 'code128a' | 'code128b' | 'code128c' | 'code39' | 'code93' | 'codabar' | 'ean13' | 'ean8' | 'ean5' | 'ean2' | 'upc_a' | 'upc_e' | 'itf' | 'itf14' | 'msi' | 'pharmacode' | 'plessey' | 'telepen' | 'qr_code' | 'data_matrix' | 'aztec' | 'pdf417' | 'maxicode' | 'gs1_128' | 'gs1_databar';
|
|
219
|
+
|
|
220
|
+
export declare type BatchBarcodeFormat = 'aztec' | 'code_128' | 'code_39' | 'code_93' | 'codabar' | 'data_matrix' | 'ean_13' | 'ean_8' | 'itf' | 'pdf417' | 'qr_code' | 'upc_a' | 'upc_e' | 'unknown';
|
|
221
|
+
|
|
222
|
+
declare interface BatchScannerContextValue {
|
|
223
|
+
items: ScannedItem[];
|
|
224
|
+
isScanning: boolean;
|
|
225
|
+
addItem: (value: string, format?: BatchBarcodeFormat) => void;
|
|
226
|
+
removeItem: (id: string) => void;
|
|
227
|
+
updateQuantity: (id: string, quantity: number) => void;
|
|
228
|
+
clearAll: () => void;
|
|
229
|
+
startScanning: () => Promise<void>;
|
|
230
|
+
stopScanning: () => void;
|
|
231
|
+
}
|
|
196
232
|
|
|
197
|
-
declare interface BatchScannerOptions {
|
|
233
|
+
export declare interface BatchScannerOptions {
|
|
198
234
|
/** Allowed formats */
|
|
199
|
-
formats?:
|
|
235
|
+
formats?: BatchBarcodeFormat[];
|
|
200
236
|
/** Auto-increment quantity on duplicate */
|
|
201
237
|
autoIncrementDuplicates?: boolean;
|
|
202
238
|
/** Max items in batch */
|
|
@@ -215,7 +251,7 @@ declare interface BatchScannerOptions {
|
|
|
215
251
|
minConfidence?: number;
|
|
216
252
|
}
|
|
217
253
|
|
|
218
|
-
declare interface CacheConfig {
|
|
254
|
+
export declare interface CacheConfig {
|
|
219
255
|
/** Cache name */
|
|
220
256
|
cacheName?: string;
|
|
221
257
|
/** Default TTL in ms */
|
|
@@ -232,7 +268,7 @@ declare interface CacheConfig {
|
|
|
232
268
|
staleThreshold?: number;
|
|
233
269
|
}
|
|
234
270
|
|
|
235
|
-
declare interface CachedMedia {
|
|
271
|
+
export declare interface CachedMedia {
|
|
236
272
|
/** Unique ID */
|
|
237
273
|
id: string;
|
|
238
274
|
/** Original URL */
|
|
@@ -278,7 +314,7 @@ declare interface CachedMedia {
|
|
|
278
314
|
priority?: number;
|
|
279
315
|
}
|
|
280
316
|
|
|
281
|
-
declare interface CacheEntry<T = unknown> {
|
|
317
|
+
export declare interface CacheEntry<T = unknown> {
|
|
282
318
|
/** Cached data */
|
|
283
319
|
data: T;
|
|
284
320
|
/** Cache timestamp */
|
|
@@ -297,14 +333,14 @@ declare interface CacheEntry<T = unknown> {
|
|
|
297
333
|
url?: string;
|
|
298
334
|
}
|
|
299
335
|
|
|
300
|
-
declare interface CacheInfo {
|
|
336
|
+
export declare interface CacheInfo {
|
|
301
337
|
name: string;
|
|
302
338
|
size: number;
|
|
303
339
|
itemCount: number;
|
|
304
340
|
lastUpdated?: Date;
|
|
305
341
|
}
|
|
306
342
|
|
|
307
|
-
declare interface CacheState {
|
|
343
|
+
export declare interface CacheState {
|
|
308
344
|
/** Is fetching */
|
|
309
345
|
isFetching: boolean;
|
|
310
346
|
/** Total cache size (bytes) */
|
|
@@ -319,9 +355,23 @@ declare interface CacheState {
|
|
|
319
355
|
strategy: CacheStrategy;
|
|
320
356
|
}
|
|
321
357
|
|
|
322
|
-
declare
|
|
358
|
+
declare interface CacheStrategiesContextValue extends CacheState {
|
|
359
|
+
fetch: <T = unknown>(url: string, options?: FetchOptions) => Promise<CacheEntry<T>>;
|
|
360
|
+
fetchJSON: <T = unknown>(url: string, options?: FetchOptions) => Promise<T>;
|
|
361
|
+
getFromCache: <T = unknown>(key: string) => Promise<CacheEntry<T> | undefined>;
|
|
362
|
+
addToCache: <T = unknown>(key: string, data: T, ttl?: number) => Promise<void>;
|
|
363
|
+
removeFromCache: (key: string) => Promise<boolean>;
|
|
364
|
+
clearCache: () => Promise<void>;
|
|
365
|
+
getCacheKeys: () => Promise<string[]>;
|
|
366
|
+
prefetch: (urls: string[], options?: FetchOptions) => Promise<void>;
|
|
367
|
+
isCached: (key: string) => Promise<boolean>;
|
|
368
|
+
setStrategy: (strategy: CacheStrategy) => void;
|
|
369
|
+
getStrategyForUrl: (url: string) => CacheStrategy;
|
|
370
|
+
}
|
|
323
371
|
|
|
324
|
-
declare
|
|
372
|
+
export declare type CacheStrategy = 'cache-first' | 'network-first' | 'cache-only' | 'network-only' | 'stale-while-revalidate';
|
|
373
|
+
|
|
374
|
+
export declare interface CalibrationConfig {
|
|
325
375
|
/** Number of calibration points */
|
|
326
376
|
pointCount?: 4 | 5 | 9;
|
|
327
377
|
/** Target size in pixels */
|
|
@@ -342,7 +392,7 @@ declare interface CalibrationConfig {
|
|
|
342
392
|
targetComponent?: ReactNode;
|
|
343
393
|
}
|
|
344
394
|
|
|
345
|
-
declare interface CalibrationMatrix {
|
|
395
|
+
export declare interface CalibrationMatrix {
|
|
346
396
|
/** Scale X */
|
|
347
397
|
scaleX: number;
|
|
348
398
|
/** Scale Y */
|
|
@@ -355,7 +405,7 @@ declare interface CalibrationMatrix {
|
|
|
355
405
|
rotation: number;
|
|
356
406
|
}
|
|
357
407
|
|
|
358
|
-
declare interface CalibrationPoint {
|
|
408
|
+
export declare interface CalibrationPoint {
|
|
359
409
|
/** Target X position (percentage 0-100) */
|
|
360
410
|
targetX: number;
|
|
361
411
|
/** Target Y position (percentage 0-100) */
|
|
@@ -368,7 +418,7 @@ declare interface CalibrationPoint {
|
|
|
368
418
|
calibrated: boolean;
|
|
369
419
|
}
|
|
370
420
|
|
|
371
|
-
declare interface CalibrationState {
|
|
421
|
+
export declare interface CalibrationState {
|
|
372
422
|
/** Is calibration active */
|
|
373
423
|
isActive: boolean;
|
|
374
424
|
/** Current point index */
|
|
@@ -387,7 +437,7 @@ declare interface CalibrationState {
|
|
|
387
437
|
averageError: number;
|
|
388
438
|
}
|
|
389
439
|
|
|
390
|
-
declare interface ColorCycleConfig {
|
|
440
|
+
export declare interface ColorCycleConfig {
|
|
391
441
|
/** Colors to cycle through */
|
|
392
442
|
colors: string[];
|
|
393
443
|
/** Cycle interval (ms) */
|
|
@@ -396,9 +446,9 @@ declare interface ColorCycleConfig {
|
|
|
396
446
|
transitionDuration: number;
|
|
397
447
|
}
|
|
398
448
|
|
|
399
|
-
declare type CommandType = 'restart' | 'shutdown' | 'update' | 'config' | 'screenshot' | 'logs' | 'custom';
|
|
449
|
+
export declare type CommandType = 'restart' | 'shutdown' | 'update' | 'config' | 'screenshot' | 'logs' | 'custom';
|
|
400
450
|
|
|
401
|
-
declare interface Conflict<T = unknown> {
|
|
451
|
+
export declare interface Conflict<T = unknown> {
|
|
402
452
|
/** Unique conflict ID */
|
|
403
453
|
id: string;
|
|
404
454
|
/** Entity type (e.g., 'user', 'document') */
|
|
@@ -429,7 +479,7 @@ declare interface Conflict<T = unknown> {
|
|
|
429
479
|
customData?: Record<string, unknown>;
|
|
430
480
|
}
|
|
431
481
|
|
|
432
|
-
declare interface ConflictHandlers<T = unknown> {
|
|
482
|
+
export declare interface ConflictHandlers<T = unknown> {
|
|
433
483
|
/** Auto-merge function */
|
|
434
484
|
merge?: MergeFunction<T>;
|
|
435
485
|
/** Compare values */
|
|
@@ -440,7 +490,7 @@ declare interface ConflictHandlers<T = unknown> {
|
|
|
440
490
|
getConflictingFields?: (client: T, server: T) => string[];
|
|
441
491
|
}
|
|
442
492
|
|
|
443
|
-
declare interface ConflictResolutionConfig {
|
|
493
|
+
export declare interface ConflictResolutionConfig {
|
|
444
494
|
/** Default resolution strategy */
|
|
445
495
|
defaultStrategy?: ConflictResolutionStrategy;
|
|
446
496
|
/** Auto-resolve when possible */
|
|
@@ -453,7 +503,20 @@ declare interface ConflictResolutionConfig {
|
|
|
453
503
|
storageKey?: string;
|
|
454
504
|
}
|
|
455
505
|
|
|
456
|
-
declare interface ConflictResolutionState {
|
|
506
|
+
declare interface ConflictResolutionContextValue extends ConflictResolutionState {
|
|
507
|
+
detectConflict: <T = unknown>(entityType: string, entityId: string, clientVersion: ConflictVersion<T>, serverVersion: ConflictVersion<T>, baseVersion?: ConflictVersion<T>) => Conflict<T> | null;
|
|
508
|
+
addConflict: <T = unknown>(conflict: Conflict<T>) => void;
|
|
509
|
+
resolveConflict: (conflictId: string, strategy: ConflictResolutionStrategy, mergedData?: unknown) => Promise<void>;
|
|
510
|
+
resolveAll: (strategy: ConflictResolutionStrategy) => Promise<void>;
|
|
511
|
+
getConflict: (conflictId: string) => Conflict | undefined;
|
|
512
|
+
getConflictsByEntity: (entityType: string, entityId?: string) => Conflict[];
|
|
513
|
+
getPendingConflicts: () => Conflict[];
|
|
514
|
+
dismissConflict: (conflictId: string) => void;
|
|
515
|
+
clearResolved: () => void;
|
|
516
|
+
clearAll: () => void;
|
|
517
|
+
}
|
|
518
|
+
|
|
519
|
+
export declare interface ConflictResolutionState {
|
|
457
520
|
/** Pending conflicts */
|
|
458
521
|
conflicts: Conflict[];
|
|
459
522
|
/** Is resolving */
|
|
@@ -467,11 +530,11 @@ declare interface ConflictResolutionState {
|
|
|
467
530
|
};
|
|
468
531
|
}
|
|
469
532
|
|
|
470
|
-
declare type ConflictResolutionStrategy = 'client-wins' | 'server-wins' | 'latest-wins' | 'merge' | 'manual';
|
|
533
|
+
export declare type ConflictResolutionStrategy = 'client-wins' | 'server-wins' | 'latest-wins' | 'merge' | 'manual';
|
|
471
534
|
|
|
472
|
-
declare type ConflictStatus = 'pending' | 'resolving' | 'resolved' | 'failed';
|
|
535
|
+
export declare type ConflictStatus = 'pending' | 'resolving' | 'resolved' | 'failed';
|
|
473
536
|
|
|
474
|
-
declare interface ConflictVersion<T = unknown> {
|
|
537
|
+
export declare interface ConflictVersion<T = unknown> {
|
|
475
538
|
/** Version data */
|
|
476
539
|
data: T;
|
|
477
540
|
/** Version timestamp */
|
|
@@ -486,7 +549,7 @@ declare interface ConflictVersion<T = unknown> {
|
|
|
486
549
|
metadata?: Record<string, unknown>;
|
|
487
550
|
}
|
|
488
551
|
|
|
489
|
-
declare interface ConnectionInfo {
|
|
552
|
+
export declare interface ConnectionInfo {
|
|
490
553
|
/** Is online */
|
|
491
554
|
isOnline: boolean;
|
|
492
555
|
/** Connection type (if available) */
|
|
@@ -507,11 +570,11 @@ declare interface ConnectionInfo {
|
|
|
507
570
|
offlineDuration?: number;
|
|
508
571
|
}
|
|
509
572
|
|
|
510
|
-
declare type ConnectionStatus = 'disconnected' | 'connecting' | 'connected' | 'error';
|
|
573
|
+
export declare type ConnectionStatus = 'disconnected' | 'connecting' | 'connected' | 'error';
|
|
511
574
|
|
|
512
|
-
declare type ConnectionType = 'bluetooth' | 'cellular' | 'ethernet' | 'wifi' | 'wimax' | 'other' | 'none' | 'unknown';
|
|
575
|
+
export declare type ConnectionType = 'bluetooth' | 'cellular' | 'ethernet' | 'wifi' | 'wimax' | 'other' | 'none' | 'unknown';
|
|
513
576
|
|
|
514
|
-
declare interface DeviceInfo {
|
|
577
|
+
export declare interface DeviceInfo {
|
|
515
578
|
/** Device ID */
|
|
516
579
|
deviceId: string;
|
|
517
580
|
/** Device name */
|
|
@@ -536,14 +599,14 @@ declare interface DeviceInfo {
|
|
|
536
599
|
metadata?: Record<string, unknown>;
|
|
537
600
|
}
|
|
538
601
|
|
|
539
|
-
declare interface DimmingConfig {
|
|
602
|
+
export declare interface DimmingConfig {
|
|
540
603
|
/** Dim level (0-1) */
|
|
541
604
|
level: number;
|
|
542
605
|
/** Fade duration (ms) */
|
|
543
606
|
fadeDuration: number;
|
|
544
607
|
}
|
|
545
608
|
|
|
546
|
-
declare interface DownloadOptions {
|
|
609
|
+
export declare interface DownloadOptions {
|
|
547
610
|
/** Media type (auto-detected if not provided) */
|
|
548
611
|
type?: MediaType;
|
|
549
612
|
/** Custom name */
|
|
@@ -560,13 +623,13 @@ declare interface DownloadOptions {
|
|
|
560
623
|
headers?: Record<string, string>;
|
|
561
624
|
}
|
|
562
625
|
|
|
563
|
-
declare type DownloadStatus = 'queued' | 'downloading' | 'paused' | 'completed' | 'failed' | 'cancelled';
|
|
626
|
+
export declare type DownloadStatus = 'queued' | 'downloading' | 'paused' | 'completed' | 'failed' | 'cancelled';
|
|
564
627
|
|
|
565
|
-
declare type EffectiveConnectionType = 'slow-2g' | '2g' | '3g' | '4g';
|
|
628
|
+
export declare type EffectiveConnectionType = 'slow-2g' | '2g' | '3g' | '4g';
|
|
566
629
|
|
|
567
|
-
declare type ExitMethod = 'keyboard' | 'pin' | 'gesture' | 'admin';
|
|
630
|
+
export declare type ExitMethod = 'keyboard' | 'pin' | 'gesture' | 'admin';
|
|
568
631
|
|
|
569
|
-
declare interface ExternalDisplayConfig {
|
|
632
|
+
export declare interface ExternalDisplayConfig {
|
|
570
633
|
/** Auto-detect screens */
|
|
571
634
|
autoDetect?: boolean;
|
|
572
635
|
/** Poll interval for screen changes (ms) */
|
|
@@ -579,7 +642,14 @@ declare interface ExternalDisplayConfig {
|
|
|
579
642
|
syncContent?: boolean;
|
|
580
643
|
}
|
|
581
644
|
|
|
582
|
-
declare interface ExternalDisplayState {
|
|
645
|
+
declare interface ExternalDisplayContextValue extends ExternalDisplayState {
|
|
646
|
+
requestPermission: () => Promise<boolean>;
|
|
647
|
+
openWindow: (screen: ScreenInfo, url?: string, features?: WindowFeatures) => Promise<WindowInfo | null>;
|
|
648
|
+
closeWindow: (windowId: string) => void;
|
|
649
|
+
moveWindowToScreen: (windowId: string, screen: ScreenInfo) => void;
|
|
650
|
+
}
|
|
651
|
+
|
|
652
|
+
export declare interface ExternalDisplayState {
|
|
583
653
|
/** Available screens */
|
|
584
654
|
screens: ScreenInfo[];
|
|
585
655
|
/** Primary screen */
|
|
@@ -594,7 +664,7 @@ declare interface ExternalDisplayState {
|
|
|
594
664
|
permissionState: 'prompt' | 'granted' | 'denied' | 'unknown';
|
|
595
665
|
}
|
|
596
666
|
|
|
597
|
-
declare interface FetchOptions extends RequestInit {
|
|
667
|
+
export declare interface FetchOptions extends RequestInit {
|
|
598
668
|
/** Override strategy for this request */
|
|
599
669
|
strategy?: CacheStrategy;
|
|
600
670
|
/** Override TTL for this request */
|
|
@@ -607,7 +677,7 @@ declare interface FetchOptions extends RequestInit {
|
|
|
607
677
|
timeout?: number;
|
|
608
678
|
}
|
|
609
679
|
|
|
610
|
-
declare interface FormDraft<T = Record<string, unknown>> {
|
|
680
|
+
export declare interface FormDraft<T = Record<string, unknown>> {
|
|
611
681
|
/** Draft ID */
|
|
612
682
|
id: string;
|
|
613
683
|
/** Form ID/name */
|
|
@@ -634,13 +704,21 @@ declare interface FormDraft<T = Record<string, unknown>> {
|
|
|
634
704
|
metadata?: Record<string, unknown>;
|
|
635
705
|
}
|
|
636
706
|
|
|
637
|
-
declare
|
|
707
|
+
export declare interface FormField {
|
|
708
|
+
name: string;
|
|
709
|
+
type: string;
|
|
710
|
+
value: unknown;
|
|
711
|
+
required?: boolean;
|
|
712
|
+
validation?: (value: unknown) => string | null;
|
|
713
|
+
}
|
|
714
|
+
|
|
715
|
+
export declare type FormStatus = 'draft' | 'pending' | 'syncing' | 'synced' | 'failed';
|
|
638
716
|
|
|
639
|
-
declare interface FormSubmitHandler<T = Record<string, unknown>> {
|
|
717
|
+
export declare interface FormSubmitHandler<T = Record<string, unknown>> {
|
|
640
718
|
(data: T, draft: FormDraft<T>): Promise<void>;
|
|
641
719
|
}
|
|
642
720
|
|
|
643
|
-
declare interface HealthMetrics {
|
|
721
|
+
export declare interface HealthMetrics {
|
|
644
722
|
/** CPU usage (0-100) */
|
|
645
723
|
cpu?: number;
|
|
646
724
|
/** Memory usage (0-100) */
|
|
@@ -659,7 +737,7 @@ declare interface HealthMetrics {
|
|
|
659
737
|
lastUpdated: Date;
|
|
660
738
|
}
|
|
661
739
|
|
|
662
|
-
declare interface IndexedDBConfig {
|
|
740
|
+
export declare interface IndexedDBConfig {
|
|
663
741
|
/** Database name */
|
|
664
742
|
dbName: string;
|
|
665
743
|
/** Database version (increment to trigger upgrade) */
|
|
@@ -672,13 +750,32 @@ declare interface IndexedDBConfig {
|
|
|
672
750
|
onBlocked?: () => void;
|
|
673
751
|
}
|
|
674
752
|
|
|
675
|
-
declare interface
|
|
753
|
+
declare interface IndexedDBContextValue extends IndexedDBState {
|
|
754
|
+
open: () => Promise<IDBDatabase>;
|
|
755
|
+
close: () => void;
|
|
756
|
+
deleteDatabase: () => Promise<void>;
|
|
757
|
+
get: <T = unknown>(storeName: string, key: IDBValidKey) => Promise<T | undefined>;
|
|
758
|
+
getAll: <T = unknown>(storeName: string, options?: QueryOptions) => Promise<T[]>;
|
|
759
|
+
getAllKeys: (storeName: string, options?: QueryOptions) => Promise<IDBValidKey[]>;
|
|
760
|
+
add: <T = unknown>(storeName: string, value: T, key?: IDBValidKey) => Promise<IDBValidKey>;
|
|
761
|
+
put: <T = unknown>(storeName: string, value: T, key?: IDBValidKey) => Promise<IDBValidKey>;
|
|
762
|
+
delete: (storeName: string, key: IDBValidKey) => Promise<void>;
|
|
763
|
+
clear: (storeName: string) => Promise<void>;
|
|
764
|
+
count: (storeName: string, key?: IDBValidKey | IDBKeyRange) => Promise<number>;
|
|
765
|
+
query: <T = unknown>(storeName: string, options: QueryOptions) => Promise<T[]>;
|
|
766
|
+
transaction: <T>(options: TransactionOptions, callback: (tx: IDBTransaction) => Promise<T>) => Promise<T>;
|
|
767
|
+
bulkAdd: <T = unknown>(storeName: string, items: T[]) => Promise<IDBValidKey[]>;
|
|
768
|
+
bulkPut: <T = unknown>(storeName: string, items: T[]) => Promise<IDBValidKey[]>;
|
|
769
|
+
bulkDelete: (storeName: string, keys: IDBValidKey[]) => Promise<void>;
|
|
770
|
+
}
|
|
771
|
+
|
|
772
|
+
export declare interface IndexedDBIndex {
|
|
676
773
|
name: string;
|
|
677
774
|
keyPath: string | string[];
|
|
678
775
|
options?: IDBIndexParameters;
|
|
679
776
|
}
|
|
680
777
|
|
|
681
|
-
declare interface IndexedDBState {
|
|
778
|
+
export declare interface IndexedDBState {
|
|
682
779
|
/** Database instance */
|
|
683
780
|
db?: IDBDatabase;
|
|
684
781
|
/** Is database open */
|
|
@@ -693,7 +790,7 @@ declare interface IndexedDBState {
|
|
|
693
790
|
storeNames: string[];
|
|
694
791
|
}
|
|
695
792
|
|
|
696
|
-
declare interface IndexedDBStoreConfig {
|
|
793
|
+
export declare interface IndexedDBStoreConfig {
|
|
697
794
|
/** Store name */
|
|
698
795
|
name: string;
|
|
699
796
|
/** Key path for objects */
|
|
@@ -704,11 +801,11 @@ declare interface IndexedDBStoreConfig {
|
|
|
704
801
|
indexes?: IndexedDBIndex[];
|
|
705
802
|
}
|
|
706
803
|
|
|
707
|
-
declare type IndicatorMode = 'banner' | 'badge' | 'toast' | 'minimal' | 'detailed' | 'icon-only';
|
|
804
|
+
export declare type IndicatorMode = 'banner' | 'badge' | 'toast' | 'minimal' | 'detailed' | 'icon-only';
|
|
708
805
|
|
|
709
|
-
declare type IndicatorPosition = 'top' | 'bottom' | 'top-left' | 'top-right' | 'bottom-left' | 'bottom-right' | 'inline';
|
|
806
|
+
export declare type IndicatorPosition = 'top' | 'bottom' | 'top-left' | 'top-right' | 'bottom-left' | 'bottom-right' | 'inline';
|
|
710
807
|
|
|
711
|
-
declare interface KioskConfig {
|
|
808
|
+
export declare interface KioskConfig {
|
|
712
809
|
/** Enable fullscreen on start */
|
|
713
810
|
autoFullscreen?: boolean;
|
|
714
811
|
/** Lock navigation (disable browser chrome) */
|
|
@@ -739,9 +836,20 @@ declare interface KioskConfig {
|
|
|
739
836
|
className?: string;
|
|
740
837
|
}
|
|
741
838
|
|
|
742
|
-
declare
|
|
839
|
+
declare interface KioskContextValue extends KioskState {
|
|
840
|
+
enterFullscreen: () => Promise<void>;
|
|
841
|
+
exitFullscreen: () => Promise<void>;
|
|
842
|
+
toggleFullscreen: () => Promise<void>;
|
|
843
|
+
lock: () => void;
|
|
844
|
+
unlock: (pin?: string) => boolean;
|
|
845
|
+
enterAdminMode: () => void;
|
|
846
|
+
exitAdminMode: () => void;
|
|
847
|
+
resetIdleTimer: () => void;
|
|
848
|
+
}
|
|
849
|
+
|
|
850
|
+
export declare type KioskMode = 'fullscreen' | 'windowed' | 'locked';
|
|
743
851
|
|
|
744
|
-
declare interface KioskState {
|
|
852
|
+
export declare interface KioskState {
|
|
745
853
|
/** Current mode */
|
|
746
854
|
mode: KioskMode;
|
|
747
855
|
/** Is fullscreen */
|
|
@@ -758,7 +866,7 @@ declare interface KioskState {
|
|
|
758
866
|
isPinDialogOpen: boolean;
|
|
759
867
|
}
|
|
760
868
|
|
|
761
|
-
declare interface LowPowerConfig {
|
|
869
|
+
export declare interface LowPowerConfig {
|
|
762
870
|
/** Power modes configuration */
|
|
763
871
|
modes?: Partial<Record<PowerMode, Partial<PowerModeConfig>>>;
|
|
764
872
|
/** Initial mode */
|
|
@@ -785,7 +893,15 @@ declare interface LowPowerConfig {
|
|
|
785
893
|
}>;
|
|
786
894
|
}
|
|
787
895
|
|
|
788
|
-
declare interface LowPowerState {
|
|
896
|
+
declare interface LowPowerContextValue extends LowPowerState {
|
|
897
|
+
setMode: (mode: PowerMode) => void;
|
|
898
|
+
setBrightness: (level: number) => void;
|
|
899
|
+
sleep: () => void;
|
|
900
|
+
wake: () => void;
|
|
901
|
+
resetIdleTimer: () => void;
|
|
902
|
+
}
|
|
903
|
+
|
|
904
|
+
export declare interface LowPowerState {
|
|
789
905
|
/** Current power mode */
|
|
790
906
|
currentMode: PowerMode;
|
|
791
907
|
/** Current brightness (0-1) */
|
|
@@ -806,15 +922,15 @@ declare interface LowPowerState {
|
|
|
806
922
|
scheduledModeActive?: PowerMode;
|
|
807
923
|
}
|
|
808
924
|
|
|
809
|
-
declare type MediaType = 'image' | 'video' | 'audio' | 'document' | 'other';
|
|
925
|
+
export declare type MediaType = 'image' | 'video' | 'audio' | 'document' | 'other';
|
|
810
926
|
|
|
811
|
-
declare interface MergeFunction<T = unknown> {
|
|
927
|
+
export declare interface MergeFunction<T = unknown> {
|
|
812
928
|
(client: T, server: T, base?: T): T | Promise<T>;
|
|
813
929
|
}
|
|
814
930
|
|
|
815
931
|
export declare const NiceAutoStart: default_2.ForwardRefExoticComponent<NiceAutoStartProps & default_2.RefAttributes<NiceAutoStartRef>>;
|
|
816
932
|
|
|
817
|
-
declare interface NiceAutoStartProps {
|
|
933
|
+
export declare interface NiceAutoStartProps {
|
|
818
934
|
/** Startup tasks */
|
|
819
935
|
tasks?: StartupTask[];
|
|
820
936
|
/** Configuration */
|
|
@@ -835,7 +951,9 @@ declare interface NiceAutoStartProps {
|
|
|
835
951
|
children?: ReactNode;
|
|
836
952
|
}
|
|
837
953
|
|
|
838
|
-
declare
|
|
954
|
+
export declare const NiceAutoStartProvider: default_2.ForwardRefExoticComponent<NiceAutoStartProps & default_2.RefAttributes<NiceAutoStartRef>>;
|
|
955
|
+
|
|
956
|
+
export declare interface NiceAutoStartRef {
|
|
839
957
|
/** Get current state */
|
|
840
958
|
getState: () => AutoStartState;
|
|
841
959
|
/** Restart startup */
|
|
@@ -856,7 +974,7 @@ declare interface NiceAutoStartRef {
|
|
|
856
974
|
|
|
857
975
|
export declare const NiceBackgroundSync: default_2.ForwardRefExoticComponent<NiceBackgroundSyncProps & default_2.RefAttributes<NiceBackgroundSyncRef>>;
|
|
858
976
|
|
|
859
|
-
declare interface NiceBackgroundSyncProps {
|
|
977
|
+
export declare interface NiceBackgroundSyncProps {
|
|
860
978
|
/** Configuration */
|
|
861
979
|
config?: BackgroundSyncConfig;
|
|
862
980
|
/** Sync handlers by tag */
|
|
@@ -878,7 +996,9 @@ declare interface NiceBackgroundSyncProps {
|
|
|
878
996
|
children?: ReactNode;
|
|
879
997
|
}
|
|
880
998
|
|
|
881
|
-
declare
|
|
999
|
+
export declare const NiceBackgroundSyncProvider: default_2.ForwardRefExoticComponent<NiceBackgroundSyncProps & default_2.RefAttributes<NiceBackgroundSyncRef>>;
|
|
1000
|
+
|
|
1001
|
+
export declare interface NiceBackgroundSyncRef {
|
|
882
1002
|
/** Get current state */
|
|
883
1003
|
getState: () => BackgroundSyncState;
|
|
884
1004
|
/** Add task to sync queue */
|
|
@@ -910,37 +1030,9 @@ declare interface NiceBackgroundSyncRef {
|
|
|
910
1030
|
registerBackgroundSync: (tag: string) => Promise<boolean>;
|
|
911
1031
|
}
|
|
912
1032
|
|
|
913
|
-
declare interface NiceBarcodeGeneratorProps {
|
|
914
|
-
/** Value to encode */
|
|
915
|
-
value: string;
|
|
916
|
-
/** Generator options */
|
|
917
|
-
options?: BarcodeGeneratorOptions;
|
|
918
|
-
/** On generation complete */
|
|
919
|
-
onGenerate?: (dataUrl: string) => void;
|
|
920
|
-
/** On error */
|
|
921
|
-
onError?: (error: Error) => void;
|
|
922
|
-
/** Show border */
|
|
923
|
-
showBorder?: boolean;
|
|
924
|
-
/** Additional class name */
|
|
925
|
-
className?: string;
|
|
926
|
-
}
|
|
927
|
-
|
|
928
|
-
declare interface NiceBarcodeGeneratorRef {
|
|
929
|
-
/** Get data URL */
|
|
930
|
-
toDataURL: (type?: string, quality?: number) => string | null;
|
|
931
|
-
/** Get SVG string */
|
|
932
|
-
toSVG: () => string | null;
|
|
933
|
-
/** Get canvas element */
|
|
934
|
-
getCanvas: () => HTMLCanvasElement | null;
|
|
935
|
-
/** Download barcode */
|
|
936
|
-
download: (filename?: string, type?: 'png' | 'svg') => void;
|
|
937
|
-
/** Regenerate barcode */
|
|
938
|
-
regenerate: () => void;
|
|
939
|
-
}
|
|
940
|
-
|
|
941
1033
|
export declare const NiceBarcodeScanner: default_2.ForwardRefExoticComponent<NiceBarcodeScannerProps & default_2.RefAttributes<NiceBarcodeScannerRef>>;
|
|
942
1034
|
|
|
943
|
-
declare interface NiceBarcodeScannerProps {
|
|
1035
|
+
export declare interface NiceBarcodeScannerProps {
|
|
944
1036
|
/** Configuration */
|
|
945
1037
|
config?: BarcodeScannerConfig;
|
|
946
1038
|
/** On successful scan */
|
|
@@ -963,7 +1055,7 @@ declare interface NiceBarcodeScannerProps {
|
|
|
963
1055
|
className?: string;
|
|
964
1056
|
}
|
|
965
1057
|
|
|
966
|
-
declare interface NiceBarcodeScannerRef {
|
|
1058
|
+
export declare interface NiceBarcodeScannerRef {
|
|
967
1059
|
/** Get current state */
|
|
968
1060
|
getState: () => BarcodeScannerState;
|
|
969
1061
|
/** Start scanning */
|
|
@@ -982,7 +1074,7 @@ declare interface NiceBarcodeScannerRef {
|
|
|
982
1074
|
|
|
983
1075
|
export declare const NiceBatchScanner: default_2.ForwardRefExoticComponent<NiceBatchScannerProps & default_2.RefAttributes<NiceBatchScannerRef>>;
|
|
984
1076
|
|
|
985
|
-
declare interface NiceBatchScannerProps {
|
|
1077
|
+
export declare interface NiceBatchScannerProps {
|
|
986
1078
|
/** Scanner options */
|
|
987
1079
|
options?: BatchScannerOptions;
|
|
988
1080
|
/** Initial items */
|
|
@@ -998,16 +1090,20 @@ declare interface NiceBatchScannerProps {
|
|
|
998
1090
|
/** On error */
|
|
999
1091
|
onError?: (error: Error) => void;
|
|
1000
1092
|
/** Validate scan */
|
|
1001
|
-
validateScan?: (value: string, format:
|
|
1093
|
+
validateScan?: (value: string, format: BatchBarcodeFormat) => boolean | Promise<boolean>;
|
|
1002
1094
|
/** Transform value */
|
|
1003
|
-
transformValue?: (value: string, format:
|
|
1095
|
+
transformValue?: (value: string, format: BatchBarcodeFormat) => string;
|
|
1004
1096
|
/** Class name */
|
|
1005
1097
|
className?: string;
|
|
1006
1098
|
/** Children */
|
|
1007
1099
|
children?: default_2.ReactNode;
|
|
1008
1100
|
}
|
|
1009
1101
|
|
|
1010
|
-
declare
|
|
1102
|
+
export declare const NiceBatchScannerProvider: default_2.FC<{
|
|
1103
|
+
children: default_2.ReactNode;
|
|
1104
|
+
}>;
|
|
1105
|
+
|
|
1106
|
+
export declare interface NiceBatchScannerRef {
|
|
1011
1107
|
/** Start scanning */
|
|
1012
1108
|
startScanning: () => Promise<void>;
|
|
1013
1109
|
/** Stop scanning */
|
|
@@ -1015,7 +1111,7 @@ declare interface NiceBatchScannerRef {
|
|
|
1015
1111
|
/** Get all items */
|
|
1016
1112
|
getItems: () => ScannedItem[];
|
|
1017
1113
|
/** Add item manually */
|
|
1018
|
-
addItem: (value: string, format?:
|
|
1114
|
+
addItem: (value: string, format?: BatchBarcodeFormat) => void;
|
|
1019
1115
|
/** Remove item */
|
|
1020
1116
|
removeItem: (id: string) => void;
|
|
1021
1117
|
/** Update quantity */
|
|
@@ -1032,7 +1128,7 @@ declare interface NiceBatchScannerRef {
|
|
|
1032
1128
|
|
|
1033
1129
|
export declare const NiceCacheStrategies: default_2.ForwardRefExoticComponent<NiceCacheStrategiesProps & default_2.RefAttributes<NiceCacheStrategiesRef>>;
|
|
1034
1130
|
|
|
1035
|
-
declare interface NiceCacheStrategiesProps {
|
|
1131
|
+
export declare interface NiceCacheStrategiesProps {
|
|
1036
1132
|
/** Configuration */
|
|
1037
1133
|
config?: CacheConfig;
|
|
1038
1134
|
/** Route-specific strategies */
|
|
@@ -1051,7 +1147,9 @@ declare interface NiceCacheStrategiesProps {
|
|
|
1051
1147
|
children?: ReactNode;
|
|
1052
1148
|
}
|
|
1053
1149
|
|
|
1054
|
-
declare
|
|
1150
|
+
export declare const NiceCacheStrategiesProvider: default_2.ForwardRefExoticComponent<NiceCacheStrategiesProps & default_2.RefAttributes<NiceCacheStrategiesRef>>;
|
|
1151
|
+
|
|
1152
|
+
export declare interface NiceCacheStrategiesRef {
|
|
1055
1153
|
/** Get current state */
|
|
1056
1154
|
getState: () => CacheState;
|
|
1057
1155
|
/** Fetch with caching */
|
|
@@ -1089,7 +1187,7 @@ declare interface NiceCacheStrategiesRef {
|
|
|
1089
1187
|
|
|
1090
1188
|
export declare const NiceConflictResolution: default_2.ForwardRefExoticComponent<NiceConflictResolutionProps & default_2.RefAttributes<NiceConflictResolutionRef>>;
|
|
1091
1189
|
|
|
1092
|
-
declare interface NiceConflictResolutionProps {
|
|
1190
|
+
export declare interface NiceConflictResolutionProps {
|
|
1093
1191
|
/** Configuration */
|
|
1094
1192
|
config?: ConflictResolutionConfig;
|
|
1095
1193
|
/** Handlers by entity type */
|
|
@@ -1122,7 +1220,9 @@ declare interface NiceConflictResolutionProps {
|
|
|
1122
1220
|
children?: ReactNode;
|
|
1123
1221
|
}
|
|
1124
1222
|
|
|
1125
|
-
declare
|
|
1223
|
+
export declare const NiceConflictResolutionProvider: default_2.ForwardRefExoticComponent<NiceConflictResolutionProps & default_2.RefAttributes<NiceConflictResolutionRef>>;
|
|
1224
|
+
|
|
1225
|
+
export declare interface NiceConflictResolutionRef {
|
|
1126
1226
|
/** Get current state */
|
|
1127
1227
|
getState: () => ConflictResolutionState;
|
|
1128
1228
|
/** Detect conflict */
|
|
@@ -1153,7 +1253,7 @@ declare interface NiceConflictResolutionRef {
|
|
|
1153
1253
|
|
|
1154
1254
|
export declare const NiceExternalDisplay: default_2.ForwardRefExoticComponent<NiceExternalDisplayProps & default_2.RefAttributes<NiceExternalDisplayRef>>;
|
|
1155
1255
|
|
|
1156
|
-
declare interface NiceExternalDisplayProps {
|
|
1256
|
+
export declare interface NiceExternalDisplayProps {
|
|
1157
1257
|
/** Configuration */
|
|
1158
1258
|
config?: ExternalDisplayConfig;
|
|
1159
1259
|
/** On screens change */
|
|
@@ -1168,7 +1268,9 @@ declare interface NiceExternalDisplayProps {
|
|
|
1168
1268
|
children?: ReactNode;
|
|
1169
1269
|
}
|
|
1170
1270
|
|
|
1171
|
-
declare
|
|
1271
|
+
export declare const NiceExternalDisplayProvider: default_2.ForwardRefExoticComponent<NiceExternalDisplayProps & default_2.RefAttributes<NiceExternalDisplayRef>>;
|
|
1272
|
+
|
|
1273
|
+
export declare interface NiceExternalDisplayRef {
|
|
1172
1274
|
/** Get current state */
|
|
1173
1275
|
getState: () => ExternalDisplayState;
|
|
1174
1276
|
/** Request screen permission */
|
|
@@ -1191,13 +1293,67 @@ declare interface NiceExternalDisplayRef {
|
|
|
1191
1293
|
broadcast: (message: unknown) => void;
|
|
1192
1294
|
}
|
|
1193
1295
|
|
|
1194
|
-
export declare const NiceHardwareBarcodeGenerator: default_2.ForwardRefExoticComponent<
|
|
1296
|
+
export declare const NiceHardwareBarcodeGenerator: default_2.ForwardRefExoticComponent<NiceHardwareBarcodeGeneratorProps & default_2.RefAttributes<NiceHardwareBarcodeGeneratorRef>>;
|
|
1297
|
+
|
|
1298
|
+
export declare interface NiceHardwareBarcodeGeneratorProps {
|
|
1299
|
+
/** Value to encode */
|
|
1300
|
+
value: string;
|
|
1301
|
+
/** Generator options */
|
|
1302
|
+
options?: BarcodeGeneratorOptions;
|
|
1303
|
+
/** On generation complete */
|
|
1304
|
+
onGenerate?: (dataUrl: string) => void;
|
|
1305
|
+
/** On error */
|
|
1306
|
+
onError?: (error: Error) => void;
|
|
1307
|
+
/** Show border */
|
|
1308
|
+
showBorder?: boolean;
|
|
1309
|
+
/** Additional class name */
|
|
1310
|
+
className?: string;
|
|
1311
|
+
}
|
|
1312
|
+
|
|
1313
|
+
export declare interface NiceHardwareBarcodeGeneratorRef {
|
|
1314
|
+
/** Get data URL */
|
|
1315
|
+
toDataURL: (type?: string, quality?: number) => string | null;
|
|
1316
|
+
/** Get SVG string */
|
|
1317
|
+
toSVG: () => string | null;
|
|
1318
|
+
/** Get canvas element */
|
|
1319
|
+
getCanvas: () => HTMLCanvasElement | null;
|
|
1320
|
+
/** Download barcode */
|
|
1321
|
+
download: (filename?: string, type?: 'png' | 'svg') => void;
|
|
1322
|
+
/** Regenerate barcode */
|
|
1323
|
+
regenerate: () => void;
|
|
1324
|
+
}
|
|
1325
|
+
|
|
1326
|
+
export declare const NiceHardwareQRGenerator: default_2.ForwardRefExoticComponent<NiceHardwareQRGeneratorProps & default_2.RefAttributes<NiceHardwareQRGeneratorRef>>;
|
|
1327
|
+
|
|
1328
|
+
export declare interface NiceHardwareQRGeneratorProps {
|
|
1329
|
+
/** Data to encode */
|
|
1330
|
+
value: string;
|
|
1331
|
+
/** Generator options */
|
|
1332
|
+
options?: QRGeneratorOptions;
|
|
1333
|
+
/** On generation complete */
|
|
1334
|
+
onGenerate?: (dataUrl: string) => void;
|
|
1335
|
+
/** On error */
|
|
1336
|
+
onError?: (error: Error) => void;
|
|
1337
|
+
/** Show border */
|
|
1338
|
+
showBorder?: boolean;
|
|
1339
|
+
/** Class name */
|
|
1340
|
+
className?: string;
|
|
1341
|
+
}
|
|
1195
1342
|
|
|
1196
|
-
export declare
|
|
1343
|
+
export declare interface NiceHardwareQRGeneratorRef {
|
|
1344
|
+
/** Get data URL */
|
|
1345
|
+
toDataURL: (type?: string, quality?: number) => string | null;
|
|
1346
|
+
/** Get SVG string */
|
|
1347
|
+
toSVG: () => string | null;
|
|
1348
|
+
/** Download QR code */
|
|
1349
|
+
download: (filename?: string, type?: 'png' | 'svg') => void;
|
|
1350
|
+
/** Regenerate */
|
|
1351
|
+
regenerate: () => void;
|
|
1352
|
+
}
|
|
1197
1353
|
|
|
1198
1354
|
export declare const NiceIndexedDB: default_2.ForwardRefExoticComponent<NiceIndexedDBProps & default_2.RefAttributes<NiceIndexedDBRef>>;
|
|
1199
1355
|
|
|
1200
|
-
declare interface NiceIndexedDBProps {
|
|
1356
|
+
export declare interface NiceIndexedDBProps {
|
|
1201
1357
|
/** Database configuration */
|
|
1202
1358
|
config: IndexedDBConfig;
|
|
1203
1359
|
/** Open database on mount */
|
|
@@ -1212,7 +1368,9 @@ declare interface NiceIndexedDBProps {
|
|
|
1212
1368
|
children?: ReactNode;
|
|
1213
1369
|
}
|
|
1214
1370
|
|
|
1215
|
-
declare
|
|
1371
|
+
export declare const NiceIndexedDBProvider: default_2.ForwardRefExoticComponent<NiceIndexedDBProps & default_2.RefAttributes<NiceIndexedDBRef>>;
|
|
1372
|
+
|
|
1373
|
+
export declare interface NiceIndexedDBRef {
|
|
1216
1374
|
/** Get current state */
|
|
1217
1375
|
getState: () => IndexedDBState;
|
|
1218
1376
|
/** Open database */
|
|
@@ -1262,7 +1420,7 @@ declare interface NiceIndexedDBRef {
|
|
|
1262
1420
|
|
|
1263
1421
|
export declare const NiceKioskMode: default_2.ForwardRefExoticComponent<NiceKioskModeProps & default_2.RefAttributes<NiceKioskModeRef>>;
|
|
1264
1422
|
|
|
1265
|
-
declare interface NiceKioskModeProps {
|
|
1423
|
+
export declare interface NiceKioskModeProps {
|
|
1266
1424
|
/** Configuration */
|
|
1267
1425
|
config?: KioskConfig;
|
|
1268
1426
|
/** Children content */
|
|
@@ -1285,7 +1443,9 @@ declare interface NiceKioskModeProps {
|
|
|
1285
1443
|
onExitRequest?: (method: ExitMethod) => boolean | Promise<boolean>;
|
|
1286
1444
|
}
|
|
1287
1445
|
|
|
1288
|
-
declare
|
|
1446
|
+
export declare const NiceKioskModeProvider: default_2.ForwardRefExoticComponent<NiceKioskModeProps & default_2.RefAttributes<NiceKioskModeRef>>;
|
|
1447
|
+
|
|
1448
|
+
export declare interface NiceKioskModeRef {
|
|
1289
1449
|
/** Get current state */
|
|
1290
1450
|
getState: () => KioskState;
|
|
1291
1451
|
/** Enter fullscreen */
|
|
@@ -1316,7 +1476,7 @@ declare interface NiceKioskModeRef {
|
|
|
1316
1476
|
|
|
1317
1477
|
export declare const NiceLowPowerMode: default_2.ForwardRefExoticComponent<NiceLowPowerModeProps & default_2.RefAttributes<NiceLowPowerModeRef>>;
|
|
1318
1478
|
|
|
1319
|
-
declare interface NiceLowPowerModeProps {
|
|
1479
|
+
export declare interface NiceLowPowerModeProps {
|
|
1320
1480
|
/** Configuration */
|
|
1321
1481
|
config?: LowPowerConfig;
|
|
1322
1482
|
/** On mode change */
|
|
@@ -1333,7 +1493,9 @@ declare interface NiceLowPowerModeProps {
|
|
|
1333
1493
|
children?: ReactNode;
|
|
1334
1494
|
}
|
|
1335
1495
|
|
|
1336
|
-
declare
|
|
1496
|
+
export declare const NiceLowPowerModeProvider: default_2.ForwardRefExoticComponent<NiceLowPowerModeProps & default_2.RefAttributes<NiceLowPowerModeRef>>;
|
|
1497
|
+
|
|
1498
|
+
export declare interface NiceLowPowerModeRef {
|
|
1337
1499
|
/** Get current state */
|
|
1338
1500
|
getState: () => LowPowerState;
|
|
1339
1501
|
/** Set power mode */
|
|
@@ -1357,7 +1519,7 @@ declare interface NiceLowPowerModeRef {
|
|
|
1357
1519
|
|
|
1358
1520
|
export declare const NiceOfflineForms: default_2.ForwardRefExoticComponent<NiceOfflineFormsProps & default_2.RefAttributes<NiceOfflineFormsRef>>;
|
|
1359
1521
|
|
|
1360
|
-
declare interface NiceOfflineFormsProps {
|
|
1522
|
+
export declare interface NiceOfflineFormsProps {
|
|
1361
1523
|
/** Configuration */
|
|
1362
1524
|
config?: OfflineFormsConfig;
|
|
1363
1525
|
/** Submit handlers by form ID */
|
|
@@ -1377,7 +1539,9 @@ declare interface NiceOfflineFormsProps {
|
|
|
1377
1539
|
children?: ReactNode;
|
|
1378
1540
|
}
|
|
1379
1541
|
|
|
1380
|
-
declare
|
|
1542
|
+
export declare const NiceOfflineFormsProvider: default_2.ForwardRefExoticComponent<NiceOfflineFormsProps & default_2.RefAttributes<NiceOfflineFormsRef>>;
|
|
1543
|
+
|
|
1544
|
+
export declare interface NiceOfflineFormsRef {
|
|
1381
1545
|
/** Get current state */
|
|
1382
1546
|
getState: () => OfflineFormsState;
|
|
1383
1547
|
/** Save form draft */
|
|
@@ -1411,7 +1575,7 @@ declare interface NiceOfflineFormsRef {
|
|
|
1411
1575
|
|
|
1412
1576
|
export declare const NiceOfflineIndicator: default_2.ForwardRefExoticComponent<NiceOfflineIndicatorProps & default_2.RefAttributes<NiceOfflineIndicatorRef>>;
|
|
1413
1577
|
|
|
1414
|
-
declare interface NiceOfflineIndicatorProps {
|
|
1578
|
+
export declare interface NiceOfflineIndicatorProps {
|
|
1415
1579
|
/** Display mode */
|
|
1416
1580
|
mode?: IndicatorMode;
|
|
1417
1581
|
/** Position (for fixed modes) */
|
|
@@ -1460,7 +1624,7 @@ declare interface NiceOfflineIndicatorProps {
|
|
|
1460
1624
|
style?: CSSProperties;
|
|
1461
1625
|
}
|
|
1462
1626
|
|
|
1463
|
-
declare interface NiceOfflineIndicatorRef {
|
|
1627
|
+
export declare interface NiceOfflineIndicatorRef {
|
|
1464
1628
|
/** Get current connection info */
|
|
1465
1629
|
getConnectionInfo: () => ConnectionInfo;
|
|
1466
1630
|
/** Check connection now */
|
|
@@ -1475,7 +1639,7 @@ declare interface NiceOfflineIndicatorRef {
|
|
|
1475
1639
|
|
|
1476
1640
|
export declare const NiceOfflineMedia: default_2.ForwardRefExoticComponent<NiceOfflineMediaProps & default_2.RefAttributes<NiceOfflineMediaRef>>;
|
|
1477
1641
|
|
|
1478
|
-
declare interface NiceOfflineMediaProps {
|
|
1642
|
+
export declare interface NiceOfflineMediaProps {
|
|
1479
1643
|
/** Configuration */
|
|
1480
1644
|
config?: OfflineMediaConfig;
|
|
1481
1645
|
/** Callback when download starts */
|
|
@@ -1492,7 +1656,9 @@ declare interface NiceOfflineMediaProps {
|
|
|
1492
1656
|
children?: ReactNode;
|
|
1493
1657
|
}
|
|
1494
1658
|
|
|
1495
|
-
declare
|
|
1659
|
+
export declare const NiceOfflineMediaProvider: default_2.ForwardRefExoticComponent<NiceOfflineMediaProps & default_2.RefAttributes<NiceOfflineMediaRef>>;
|
|
1660
|
+
|
|
1661
|
+
export declare interface NiceOfflineMediaRef {
|
|
1496
1662
|
/** Get current state */
|
|
1497
1663
|
getState: () => OfflineMediaState;
|
|
1498
1664
|
/** Download media */
|
|
@@ -1545,7 +1711,7 @@ declare interface NiceOfflineMediaRef {
|
|
|
1545
1711
|
|
|
1546
1712
|
export declare const NiceOrientationLock: default_2.ForwardRefExoticComponent<NiceOrientationLockProps & default_2.RefAttributes<NiceOrientationLockRef>>;
|
|
1547
1713
|
|
|
1548
|
-
declare interface NiceOrientationLockProps {
|
|
1714
|
+
export declare interface NiceOrientationLockProps {
|
|
1549
1715
|
/** Configuration */
|
|
1550
1716
|
config?: OrientationLockConfig;
|
|
1551
1717
|
/** On orientation change */
|
|
@@ -1562,7 +1728,9 @@ declare interface NiceOrientationLockProps {
|
|
|
1562
1728
|
className?: string;
|
|
1563
1729
|
}
|
|
1564
1730
|
|
|
1565
|
-
declare
|
|
1731
|
+
export declare const NiceOrientationLockProvider: default_2.ForwardRefExoticComponent<NiceOrientationLockProps & default_2.RefAttributes<NiceOrientationLockRef>>;
|
|
1732
|
+
|
|
1733
|
+
export declare interface NiceOrientationLockRef {
|
|
1566
1734
|
/** Get current state */
|
|
1567
1735
|
getState: () => OrientationState;
|
|
1568
1736
|
/** Lock to specific orientation */
|
|
@@ -1577,35 +1745,9 @@ declare interface NiceOrientationLockRef {
|
|
|
1577
1745
|
isOrientationSupported: (orientation: OrientationType_2) => boolean;
|
|
1578
1746
|
}
|
|
1579
1747
|
|
|
1580
|
-
declare interface NiceQRGeneratorProps {
|
|
1581
|
-
/** Data to encode */
|
|
1582
|
-
value: string;
|
|
1583
|
-
/** Generator options */
|
|
1584
|
-
options?: QRGeneratorOptions;
|
|
1585
|
-
/** On generation complete */
|
|
1586
|
-
onGenerate?: (dataUrl: string) => void;
|
|
1587
|
-
/** On error */
|
|
1588
|
-
onError?: (error: Error) => void;
|
|
1589
|
-
/** Show border */
|
|
1590
|
-
showBorder?: boolean;
|
|
1591
|
-
/** Class name */
|
|
1592
|
-
className?: string;
|
|
1593
|
-
}
|
|
1594
|
-
|
|
1595
|
-
declare interface NiceQRGeneratorRef {
|
|
1596
|
-
/** Get data URL */
|
|
1597
|
-
toDataURL: (type?: string, quality?: number) => string | null;
|
|
1598
|
-
/** Get SVG string */
|
|
1599
|
-
toSVG: () => string | null;
|
|
1600
|
-
/** Download QR code */
|
|
1601
|
-
download: (filename?: string, type?: 'png' | 'svg') => void;
|
|
1602
|
-
/** Regenerate */
|
|
1603
|
-
regenerate: () => void;
|
|
1604
|
-
}
|
|
1605
|
-
|
|
1606
1748
|
export declare const NiceQRScanner: default_2.ForwardRefExoticComponent<NiceQRScannerProps & default_2.RefAttributes<NiceQRScannerRef>>;
|
|
1607
1749
|
|
|
1608
|
-
declare interface NiceQRScannerProps {
|
|
1750
|
+
export declare interface NiceQRScannerProps {
|
|
1609
1751
|
/** Configuration */
|
|
1610
1752
|
config?: QRScannerConfig;
|
|
1611
1753
|
/** On scan */
|
|
@@ -1624,7 +1766,7 @@ declare interface NiceQRScannerProps {
|
|
|
1624
1766
|
className?: string;
|
|
1625
1767
|
}
|
|
1626
1768
|
|
|
1627
|
-
declare interface NiceQRScannerRef {
|
|
1769
|
+
export declare interface NiceQRScannerRef {
|
|
1628
1770
|
/** Get state */
|
|
1629
1771
|
getState: () => QRScannerState;
|
|
1630
1772
|
/** Start */
|
|
@@ -1645,7 +1787,7 @@ declare interface NiceQRScannerRef {
|
|
|
1645
1787
|
|
|
1646
1788
|
export declare const NiceRemoteManagement: default_2.ForwardRefExoticComponent<NiceRemoteManagementProps & default_2.RefAttributes<NiceRemoteManagementRef>>;
|
|
1647
1789
|
|
|
1648
|
-
declare interface NiceRemoteManagementProps {
|
|
1790
|
+
export declare interface NiceRemoteManagementProps {
|
|
1649
1791
|
/** Configuration */
|
|
1650
1792
|
config: RemoteManagementConfig;
|
|
1651
1793
|
/** On connection change */
|
|
@@ -1658,7 +1800,9 @@ declare interface NiceRemoteManagementProps {
|
|
|
1658
1800
|
children?: ReactNode;
|
|
1659
1801
|
}
|
|
1660
1802
|
|
|
1661
|
-
declare
|
|
1803
|
+
export declare const NiceRemoteManagementProvider: default_2.ForwardRefExoticComponent<NiceRemoteManagementProps & default_2.RefAttributes<NiceRemoteManagementRef>>;
|
|
1804
|
+
|
|
1805
|
+
export declare interface NiceRemoteManagementRef {
|
|
1662
1806
|
/** Get current state */
|
|
1663
1807
|
getState: () => RemoteManagementState;
|
|
1664
1808
|
/** Connect to server */
|
|
@@ -1681,7 +1825,7 @@ declare interface NiceRemoteManagementRef {
|
|
|
1681
1825
|
|
|
1682
1826
|
export declare const NiceScreenBurnPrevention: default_2.ForwardRefExoticComponent<NiceScreenBurnPreventionProps & default_2.RefAttributes<NiceScreenBurnPreventionRef>>;
|
|
1683
1827
|
|
|
1684
|
-
declare interface NiceScreenBurnPreventionProps {
|
|
1828
|
+
export declare interface NiceScreenBurnPreventionProps {
|
|
1685
1829
|
/** Configuration */
|
|
1686
1830
|
config?: Partial<ScreenBurnPreventionConfig>;
|
|
1687
1831
|
/** Enable/disable */
|
|
@@ -1696,7 +1840,7 @@ declare interface NiceScreenBurnPreventionProps {
|
|
|
1696
1840
|
children?: ReactNode;
|
|
1697
1841
|
}
|
|
1698
1842
|
|
|
1699
|
-
declare interface NiceScreenBurnPreventionRef {
|
|
1843
|
+
export declare interface NiceScreenBurnPreventionRef {
|
|
1700
1844
|
/** Get current state */
|
|
1701
1845
|
getState: () => ScreenBurnPreventionState;
|
|
1702
1846
|
/** Activate prevention */
|
|
@@ -1717,6 +1861,19 @@ declare interface NiceScreenBurnPreventionRef {
|
|
|
1717
1861
|
setDimLevel: (level: number) => void;
|
|
1718
1862
|
}
|
|
1719
1863
|
|
|
1864
|
+
export declare const NiceScreenSelector: default_2.FC<NiceScreenSelectorProps>;
|
|
1865
|
+
|
|
1866
|
+
export declare interface NiceScreenSelectorProps {
|
|
1867
|
+
/** On screen select */
|
|
1868
|
+
onSelect?: (screen: ScreenInfo) => void;
|
|
1869
|
+
/** Selected screen ID */
|
|
1870
|
+
selectedId?: string;
|
|
1871
|
+
/** Show preview */
|
|
1872
|
+
showPreview?: boolean;
|
|
1873
|
+
/** Additional class name */
|
|
1874
|
+
className?: string;
|
|
1875
|
+
}
|
|
1876
|
+
|
|
1720
1877
|
export declare const NiceServiceWorker: default_2.ForwardRefExoticComponent<NiceServiceWorkerProps & default_2.RefAttributes<NiceServiceWorkerRef>>;
|
|
1721
1878
|
|
|
1722
1879
|
export declare interface NiceServiceWorkerProps {
|
|
@@ -1791,7 +1948,7 @@ export declare interface NiceServiceWorkerRef {
|
|
|
1791
1948
|
|
|
1792
1949
|
export declare const NiceSymbologyConfig: default_2.ForwardRefExoticComponent<NiceSymbologyConfigProps & default_2.RefAttributes<NiceSymbologyConfigRef>>;
|
|
1793
1950
|
|
|
1794
|
-
declare interface NiceSymbologyConfigProps {
|
|
1951
|
+
export declare interface NiceSymbologyConfigProps {
|
|
1795
1952
|
/** Selected symbologies */
|
|
1796
1953
|
selected?: BarcodeSymbology[];
|
|
1797
1954
|
/** On selection change */
|
|
@@ -1812,7 +1969,7 @@ declare interface NiceSymbologyConfigProps {
|
|
|
1812
1969
|
className?: string;
|
|
1813
1970
|
}
|
|
1814
1971
|
|
|
1815
|
-
declare interface NiceSymbologyConfigRef {
|
|
1972
|
+
export declare interface NiceSymbologyConfigRef {
|
|
1816
1973
|
/** Get selected symbologies */
|
|
1817
1974
|
getSelected: () => BarcodeSymbology[];
|
|
1818
1975
|
/** Select symbology */
|
|
@@ -1831,9 +1988,13 @@ declare interface NiceSymbologyConfigRef {
|
|
|
1831
1988
|
getAll: () => SymbologyInfo[];
|
|
1832
1989
|
}
|
|
1833
1990
|
|
|
1991
|
+
export declare const NiceSymbologyProvider: default_2.FC<{
|
|
1992
|
+
children: default_2.ReactNode;
|
|
1993
|
+
}>;
|
|
1994
|
+
|
|
1834
1995
|
export declare const NiceTouchCalibration: default_2.ForwardRefExoticComponent<NiceTouchCalibrationProps & default_2.RefAttributes<NiceTouchCalibrationRef>>;
|
|
1835
1996
|
|
|
1836
|
-
declare interface NiceTouchCalibrationProps {
|
|
1997
|
+
export declare interface NiceTouchCalibrationProps {
|
|
1837
1998
|
/** Configuration */
|
|
1838
1999
|
config?: CalibrationConfig;
|
|
1839
2000
|
/** Auto-start calibration */
|
|
@@ -1850,7 +2011,7 @@ declare interface NiceTouchCalibrationProps {
|
|
|
1850
2011
|
children?: ReactNode;
|
|
1851
2012
|
}
|
|
1852
2013
|
|
|
1853
|
-
declare interface NiceTouchCalibrationRef {
|
|
2014
|
+
export declare interface NiceTouchCalibrationRef {
|
|
1854
2015
|
/** Get current state */
|
|
1855
2016
|
getState: () => CalibrationState;
|
|
1856
2017
|
/** Start calibration */
|
|
@@ -1872,7 +2033,7 @@ declare interface NiceTouchCalibrationRef {
|
|
|
1872
2033
|
clearCalibration: () => void;
|
|
1873
2034
|
}
|
|
1874
2035
|
|
|
1875
|
-
declare interface OfflineFormsConfig {
|
|
2036
|
+
export declare interface OfflineFormsConfig {
|
|
1876
2037
|
/** IndexedDB database name */
|
|
1877
2038
|
dbName?: string;
|
|
1878
2039
|
/** Auto-save interval in ms (0 = disabled) */
|
|
@@ -1889,7 +2050,25 @@ declare interface OfflineFormsConfig {
|
|
|
1889
2050
|
retryDelay?: number;
|
|
1890
2051
|
}
|
|
1891
2052
|
|
|
1892
|
-
declare interface OfflineFormsState {
|
|
2053
|
+
declare interface OfflineFormsContextValue extends OfflineFormsState {
|
|
2054
|
+
saveDraft: <T = Record<string, unknown>>(formId: string, data: T, metadata?: Record<string, unknown>) => Promise<string>;
|
|
2055
|
+
getDraft: <T = Record<string, unknown>>(draftId: string) => Promise<FormDraft<T> | undefined>;
|
|
2056
|
+
getDrafts: <T = Record<string, unknown>>(formId: string) => Promise<FormDraft<T>[]>;
|
|
2057
|
+
getPendingDrafts: <T = Record<string, unknown>>() => Promise<FormDraft<T>[]>;
|
|
2058
|
+
updateDraft: <T = Record<string, unknown>>(draftId: string, data: Partial<T>) => Promise<void>;
|
|
2059
|
+
deleteDraft: (draftId: string) => Promise<void>;
|
|
2060
|
+
submitDraft: (draftId: string) => Promise<void>;
|
|
2061
|
+
submitForm: <T = Record<string, unknown>>(formId: string, data: T) => Promise<void>;
|
|
2062
|
+
syncPending: () => Promise<{
|
|
2063
|
+
synced: number;
|
|
2064
|
+
failed: number;
|
|
2065
|
+
}>;
|
|
2066
|
+
retryFailed: () => Promise<void>;
|
|
2067
|
+
clearDrafts: (formId: string) => Promise<void>;
|
|
2068
|
+
registerHandler: <T = Record<string, unknown>>(formId: string, handler: FormSubmitHandler<T>) => void;
|
|
2069
|
+
}
|
|
2070
|
+
|
|
2071
|
+
export declare interface OfflineFormsState {
|
|
1893
2072
|
/** Is online */
|
|
1894
2073
|
isOnline: boolean;
|
|
1895
2074
|
/** Is syncing */
|
|
@@ -1904,7 +2083,7 @@ declare interface OfflineFormsState {
|
|
|
1904
2083
|
lastSyncAt?: Date;
|
|
1905
2084
|
}
|
|
1906
2085
|
|
|
1907
|
-
declare interface OfflineMediaConfig {
|
|
2086
|
+
export declare interface OfflineMediaConfig {
|
|
1908
2087
|
/** IndexedDB database name */
|
|
1909
2088
|
dbName?: string;
|
|
1910
2089
|
/** Max cache size in bytes */
|
|
@@ -1921,7 +2100,27 @@ declare interface OfflineMediaConfig {
|
|
|
1921
2100
|
cleanupInterval?: number;
|
|
1922
2101
|
}
|
|
1923
2102
|
|
|
1924
|
-
declare interface OfflineMediaState {
|
|
2103
|
+
declare interface OfflineMediaContextValue extends OfflineMediaState {
|
|
2104
|
+
download: (url: string, options?: DownloadOptions) => Promise<string>;
|
|
2105
|
+
downloadMultiple: (items: Array<{
|
|
2106
|
+
url: string;
|
|
2107
|
+
options?: DownloadOptions;
|
|
2108
|
+
}>) => Promise<string[]>;
|
|
2109
|
+
getCachedMedia: (mediaId: string) => Promise<CachedMedia | undefined>;
|
|
2110
|
+
getAllCachedMedia: () => Promise<CachedMedia[]>;
|
|
2111
|
+
getMediaByType: (type: MediaType) => Promise<CachedMedia[]>;
|
|
2112
|
+
getMediaByTag: (tag: string) => Promise<CachedMedia[]>;
|
|
2113
|
+
getBlobUrl: (mediaId: string) => Promise<string | undefined>;
|
|
2114
|
+
isCached: (url: string) => Promise<boolean>;
|
|
2115
|
+
pauseDownload: (mediaId: string) => void;
|
|
2116
|
+
resumeDownload: (mediaId: string) => Promise<void>;
|
|
2117
|
+
cancelDownload: (mediaId: string) => void;
|
|
2118
|
+
removeMedia: (mediaId: string) => Promise<void>;
|
|
2119
|
+
clearCache: () => Promise<void>;
|
|
2120
|
+
preload: (urls: string[]) => Promise<void>;
|
|
2121
|
+
}
|
|
2122
|
+
|
|
2123
|
+
export declare interface OfflineMediaState {
|
|
1925
2124
|
/** Is online */
|
|
1926
2125
|
isOnline: boolean;
|
|
1927
2126
|
/** Active downloads count */
|
|
@@ -1938,7 +2137,13 @@ declare interface OfflineMediaState {
|
|
|
1938
2137
|
isDownloading: boolean;
|
|
1939
2138
|
}
|
|
1940
2139
|
|
|
1941
|
-
declare interface
|
|
2140
|
+
declare interface OrientationContextValue extends OrientationState {
|
|
2141
|
+
lock: (orientation: OrientationType_2) => Promise<boolean>;
|
|
2142
|
+
unlock: () => Promise<boolean>;
|
|
2143
|
+
getOrientationInfo: () => OrientationInfo;
|
|
2144
|
+
}
|
|
2145
|
+
|
|
2146
|
+
export declare interface OrientationInfo {
|
|
1942
2147
|
/** Current orientation type */
|
|
1943
2148
|
type: OrientationType_2;
|
|
1944
2149
|
/** Rotation angle (0, 90, 180, 270) */
|
|
@@ -1955,7 +2160,7 @@ declare interface OrientationInfo {
|
|
|
1955
2160
|
aspectRatio: number;
|
|
1956
2161
|
}
|
|
1957
2162
|
|
|
1958
|
-
declare interface OrientationLockConfig {
|
|
2163
|
+
export declare interface OrientationLockConfig {
|
|
1959
2164
|
/** Preferred orientation */
|
|
1960
2165
|
preferredOrientation?: OrientationType_2;
|
|
1961
2166
|
/** Allow user to change orientation */
|
|
@@ -1970,7 +2175,7 @@ declare interface OrientationLockConfig {
|
|
|
1970
2175
|
supportedOrientations?: OrientationType_2[];
|
|
1971
2176
|
}
|
|
1972
2177
|
|
|
1973
|
-
declare interface OrientationState {
|
|
2178
|
+
export declare interface OrientationState {
|
|
1974
2179
|
/** Current orientation */
|
|
1975
2180
|
current: OrientationType_2;
|
|
1976
2181
|
/** Locked orientation (if any) */
|
|
@@ -1986,10 +2191,11 @@ declare interface OrientationState {
|
|
|
1986
2191
|
}
|
|
1987
2192
|
|
|
1988
2193
|
declare type OrientationType_2 = 'any' | 'natural' | 'portrait' | 'portrait-primary' | 'portrait-secondary' | 'landscape' | 'landscape-primary' | 'landscape-secondary';
|
|
2194
|
+
export { OrientationType_2 as OrientationType }
|
|
1989
2195
|
|
|
1990
|
-
declare type PowerMode = 'normal' | 'dim' | 'low' | 'sleep';
|
|
2196
|
+
export declare type PowerMode = 'normal' | 'dim' | 'low' | 'sleep';
|
|
1991
2197
|
|
|
1992
|
-
declare interface PowerModeConfig {
|
|
2198
|
+
export declare interface PowerModeConfig {
|
|
1993
2199
|
/** Mode name */
|
|
1994
2200
|
mode: PowerMode;
|
|
1995
2201
|
/** Brightness level (0-1) */
|
|
@@ -2008,22 +2214,22 @@ declare interface PowerModeConfig {
|
|
|
2008
2214
|
wakeOnMotion?: boolean;
|
|
2009
2215
|
}
|
|
2010
2216
|
|
|
2011
|
-
declare type PreventionMode = 'pixel-shift' | 'color-cycling' | 'screensaver' | 'dimming' | 'invert';
|
|
2217
|
+
export declare type PreventionMode = 'pixel-shift' | 'color-cycling' | 'screensaver' | 'dimming' | 'invert';
|
|
2012
2218
|
|
|
2013
|
-
declare type QRDataType = 'url' | 'email' | 'tel' | 'sms' | 'geo' | 'vcard' | 'vevent' | 'wifi' | 'text' | 'unknown';
|
|
2219
|
+
export declare type QRDataType = 'url' | 'email' | 'tel' | 'sms' | 'geo' | 'vcard' | 'vevent' | 'wifi' | 'text' | 'unknown';
|
|
2014
2220
|
|
|
2015
|
-
declare type QRErrorCorrectionLevel = 'L' | 'M' | 'Q' | 'H';
|
|
2221
|
+
export declare type QRErrorCorrectionLevel = 'L' | 'M' | 'Q' | 'H';
|
|
2016
2222
|
|
|
2017
|
-
declare interface QRGeneratorOptions {
|
|
2223
|
+
export declare interface QRGeneratorOptions {
|
|
2018
2224
|
/** Error correction level (L=7%, M=15%, Q=25%, H=30%) */
|
|
2019
2225
|
errorCorrection?: QRErrorCorrectionLevel;
|
|
2020
2226
|
/** Size (width/height in pixels) */
|
|
2021
2227
|
size?: number;
|
|
2022
2228
|
/** Margin (quiet zone modules) */
|
|
2023
2229
|
margin?: number;
|
|
2024
|
-
/** Dark module color */
|
|
2230
|
+
/** Dark module color — a literal CSS colour (hex/rgb); canvas cannot resolve `var()`. */
|
|
2025
2231
|
darkColor?: string;
|
|
2026
|
-
/** Light module color */
|
|
2232
|
+
/** Light module color — a literal CSS colour (hex/rgb); canvas cannot resolve `var()`. */
|
|
2027
2233
|
lightColor?: string;
|
|
2028
2234
|
/** Image to embed in center */
|
|
2029
2235
|
logo?: string;
|
|
@@ -2035,7 +2241,7 @@ declare interface QRGeneratorOptions {
|
|
|
2035
2241
|
cornerRadius?: number;
|
|
2036
2242
|
}
|
|
2037
2243
|
|
|
2038
|
-
declare interface QRScannerConfig {
|
|
2244
|
+
export declare interface QRScannerConfig {
|
|
2039
2245
|
/** Continuous scanning */
|
|
2040
2246
|
continuous?: boolean;
|
|
2041
2247
|
/** Scan interval (ms) */
|
|
@@ -2056,7 +2262,7 @@ declare interface QRScannerConfig {
|
|
|
2056
2262
|
highlightDetected?: boolean;
|
|
2057
2263
|
}
|
|
2058
2264
|
|
|
2059
|
-
declare interface QRScannerState {
|
|
2265
|
+
export declare interface QRScannerState {
|
|
2060
2266
|
/** Is scanning */
|
|
2061
2267
|
isScanning: boolean;
|
|
2062
2268
|
/** Camera ready */
|
|
@@ -2075,7 +2281,7 @@ declare interface QRScannerState {
|
|
|
2075
2281
|
torchOn: boolean;
|
|
2076
2282
|
}
|
|
2077
2283
|
|
|
2078
|
-
declare interface QRScanResult {
|
|
2284
|
+
export declare interface QRScanResult {
|
|
2079
2285
|
/** Decoded text */
|
|
2080
2286
|
text: string;
|
|
2081
2287
|
/** Raw bytes (if available) */
|
|
@@ -2104,7 +2310,7 @@ declare interface QRScanResult {
|
|
|
2104
2310
|
parsedData?: unknown;
|
|
2105
2311
|
}
|
|
2106
2312
|
|
|
2107
|
-
declare interface QueryOptions {
|
|
2313
|
+
export declare interface QueryOptions {
|
|
2108
2314
|
/** Index to use for query */
|
|
2109
2315
|
index?: string;
|
|
2110
2316
|
/** Key range */
|
|
@@ -2117,7 +2323,7 @@ declare interface QueryOptions {
|
|
|
2117
2323
|
offset?: number;
|
|
2118
2324
|
}
|
|
2119
2325
|
|
|
2120
|
-
declare interface RemoteCommand {
|
|
2326
|
+
export declare interface RemoteCommand {
|
|
2121
2327
|
/** Command ID */
|
|
2122
2328
|
id: string;
|
|
2123
2329
|
/** Command type */
|
|
@@ -2136,7 +2342,7 @@ declare interface RemoteCommand {
|
|
|
2136
2342
|
error?: string;
|
|
2137
2343
|
}
|
|
2138
2344
|
|
|
2139
|
-
declare interface RemoteManagementConfig {
|
|
2345
|
+
export declare interface RemoteManagementConfig {
|
|
2140
2346
|
/** Server URL */
|
|
2141
2347
|
serverUrl: string;
|
|
2142
2348
|
/** Device ID */
|
|
@@ -2163,7 +2369,14 @@ declare interface RemoteManagementConfig {
|
|
|
2163
2369
|
logBufferSize?: number;
|
|
2164
2370
|
}
|
|
2165
2371
|
|
|
2166
|
-
declare interface RemoteManagementState {
|
|
2372
|
+
declare interface RemoteManagementContextValue extends RemoteManagementState {
|
|
2373
|
+
deviceInfo: DeviceInfo;
|
|
2374
|
+
connect: () => Promise<void>;
|
|
2375
|
+
disconnect: () => void;
|
|
2376
|
+
sendLog: (level: string, message: string, data?: unknown) => void;
|
|
2377
|
+
}
|
|
2378
|
+
|
|
2379
|
+
export declare interface RemoteManagementState {
|
|
2167
2380
|
/** Connection status */
|
|
2168
2381
|
status: ConnectionStatus;
|
|
2169
2382
|
/** Is connected */
|
|
@@ -2182,13 +2395,13 @@ declare interface RemoteManagementState {
|
|
|
2182
2395
|
error?: string;
|
|
2183
2396
|
}
|
|
2184
2397
|
|
|
2185
|
-
declare interface ScannedItem {
|
|
2398
|
+
export declare interface ScannedItem {
|
|
2186
2399
|
/** Unique ID */
|
|
2187
2400
|
id: string;
|
|
2188
2401
|
/** Barcode/QR value */
|
|
2189
2402
|
value: string;
|
|
2190
2403
|
/** Barcode format */
|
|
2191
|
-
format:
|
|
2404
|
+
format: BatchBarcodeFormat;
|
|
2192
2405
|
/** Timestamp */
|
|
2193
2406
|
timestamp: number;
|
|
2194
2407
|
/** Raw data */
|
|
@@ -2201,7 +2414,7 @@ declare interface ScannedItem {
|
|
|
2201
2414
|
metadata?: Record<string, unknown>;
|
|
2202
2415
|
}
|
|
2203
2416
|
|
|
2204
|
-
declare interface ScreenBurnPreventionConfig {
|
|
2417
|
+
export declare interface ScreenBurnPreventionConfig {
|
|
2205
2418
|
/** Prevention modes to use */
|
|
2206
2419
|
modes: PreventionMode[];
|
|
2207
2420
|
/** Inactivity timeout before activation (ms) */
|
|
@@ -2220,7 +2433,7 @@ declare interface ScreenBurnPreventionConfig {
|
|
|
2220
2433
|
autoDetectStatic?: boolean;
|
|
2221
2434
|
}
|
|
2222
2435
|
|
|
2223
|
-
declare interface ScreenBurnPreventionState {
|
|
2436
|
+
export declare interface ScreenBurnPreventionState {
|
|
2224
2437
|
/** Is prevention active */
|
|
2225
2438
|
isActive: boolean;
|
|
2226
2439
|
/** Current active modes */
|
|
@@ -2237,7 +2450,7 @@ declare interface ScreenBurnPreventionState {
|
|
|
2237
2450
|
idleTime: number;
|
|
2238
2451
|
}
|
|
2239
2452
|
|
|
2240
|
-
declare interface ScreenInfo {
|
|
2453
|
+
export declare interface ScreenInfo {
|
|
2241
2454
|
/** Unique identifier */
|
|
2242
2455
|
id: string;
|
|
2243
2456
|
/** Screen label */
|
|
@@ -2266,14 +2479,14 @@ declare interface ScreenInfo {
|
|
|
2266
2479
|
colorDepth: number;
|
|
2267
2480
|
}
|
|
2268
2481
|
|
|
2269
|
-
declare interface ScreensaverConfig {
|
|
2482
|
+
export declare interface ScreensaverConfig {
|
|
2270
2483
|
/** Screensaver type */
|
|
2271
2484
|
type: 'blank' | 'bounce' | 'matrix' | 'noise' | 'custom';
|
|
2272
2485
|
/** Custom screensaver component */
|
|
2273
2486
|
component?: ReactNode;
|
|
2274
2487
|
}
|
|
2275
2488
|
|
|
2276
|
-
declare interface ServiceWorkerConfig {
|
|
2489
|
+
export declare interface ServiceWorkerConfig {
|
|
2277
2490
|
/** Path to service worker file */
|
|
2278
2491
|
swPath?: string;
|
|
2279
2492
|
/** Service worker scope */
|
|
@@ -2288,6 +2501,20 @@ declare interface ServiceWorkerConfig {
|
|
|
2288
2501
|
reloadOnActivation?: boolean;
|
|
2289
2502
|
}
|
|
2290
2503
|
|
|
2504
|
+
declare interface ServiceWorkerContextValue extends ServiceWorkerState_2 {
|
|
2505
|
+
register: () => Promise<ServiceWorkerRegistration | undefined>;
|
|
2506
|
+
unregister: () => Promise<boolean>;
|
|
2507
|
+
checkForUpdates: () => Promise<void>;
|
|
2508
|
+
applyUpdate: () => void;
|
|
2509
|
+
skipWaiting: () => void;
|
|
2510
|
+
getCachesInfo: () => Promise<CacheInfo[]>;
|
|
2511
|
+
clearCache: (cacheName: string) => Promise<boolean>;
|
|
2512
|
+
clearAllCaches: () => Promise<void>;
|
|
2513
|
+
addToCache: (cacheName: string, urls: string[]) => Promise<void>;
|
|
2514
|
+
removeFromCache: (cacheName: string, url: string) => Promise<boolean>;
|
|
2515
|
+
getCachedUrls: (cacheName: string) => Promise<string[]>;
|
|
2516
|
+
}
|
|
2517
|
+
|
|
2291
2518
|
declare interface ServiceWorkerState_2 {
|
|
2292
2519
|
/** Current status */
|
|
2293
2520
|
status: ServiceWorkerStatus;
|
|
@@ -2308,10 +2535,11 @@ declare interface ServiceWorkerState_2 {
|
|
|
2308
2535
|
/** Last sync time */
|
|
2309
2536
|
lastSyncTime?: Date;
|
|
2310
2537
|
}
|
|
2538
|
+
export { ServiceWorkerState_2 as ServiceWorkerState }
|
|
2311
2539
|
|
|
2312
|
-
declare type ServiceWorkerStatus = 'idle' | 'registering' | 'registered' | 'installing' | 'installed' | 'activating' | 'activated' | 'redundant' | 'error';
|
|
2540
|
+
export declare type ServiceWorkerStatus = 'idle' | 'registering' | 'registered' | 'installing' | 'installed' | 'activating' | 'activated' | 'redundant' | 'error';
|
|
2313
2541
|
|
|
2314
|
-
declare interface ShiftConfig {
|
|
2542
|
+
export declare interface ShiftConfig {
|
|
2315
2543
|
/** Maximum shift in pixels */
|
|
2316
2544
|
maxShift: number;
|
|
2317
2545
|
/** Shift interval (ms) */
|
|
@@ -2320,9 +2548,9 @@ declare interface ShiftConfig {
|
|
|
2320
2548
|
smooth: boolean;
|
|
2321
2549
|
}
|
|
2322
2550
|
|
|
2323
|
-
declare type StartupPhase = 'initializing' | 'loading' | 'ready' | 'error' | 'recovery';
|
|
2551
|
+
export declare type StartupPhase = 'initializing' | 'loading' | 'ready' | 'error' | 'recovery';
|
|
2324
2552
|
|
|
2325
|
-
declare interface StartupTask {
|
|
2553
|
+
export declare interface StartupTask {
|
|
2326
2554
|
/** Unique ID */
|
|
2327
2555
|
id: string;
|
|
2328
2556
|
/** Task name */
|
|
@@ -2343,7 +2571,7 @@ declare interface StartupTask {
|
|
|
2343
2571
|
execute: () => Promise<void>;
|
|
2344
2572
|
}
|
|
2345
2573
|
|
|
2346
|
-
declare interface StartupTaskResult {
|
|
2574
|
+
export declare interface StartupTaskResult {
|
|
2347
2575
|
/** Task ID */
|
|
2348
2576
|
taskId: string;
|
|
2349
2577
|
/** Success status */
|
|
@@ -2356,9 +2584,16 @@ declare interface StartupTaskResult {
|
|
|
2356
2584
|
retriesUsed: number;
|
|
2357
2585
|
}
|
|
2358
2586
|
|
|
2359
|
-
declare type SymbologyCategory = 'linear' | '2d' | 'postal' | 'gs1';
|
|
2587
|
+
export declare type SymbologyCategory = 'linear' | '2d' | 'postal' | 'gs1';
|
|
2588
|
+
|
|
2589
|
+
declare interface SymbologyContextValue {
|
|
2590
|
+
symbologies: SymbologyInfo[];
|
|
2591
|
+
selected: BarcodeSymbology[];
|
|
2592
|
+
validate: (value: string, symbology: BarcodeSymbology) => SymbologyValidationResult;
|
|
2593
|
+
getInfo: (symbology: BarcodeSymbology) => SymbologyInfo | undefined;
|
|
2594
|
+
}
|
|
2360
2595
|
|
|
2361
|
-
declare interface SymbologyInfo {
|
|
2596
|
+
export declare interface SymbologyInfo {
|
|
2362
2597
|
/** Symbology identifier */
|
|
2363
2598
|
id: BarcodeSymbology;
|
|
2364
2599
|
/** Display name */
|
|
@@ -2385,7 +2620,7 @@ declare interface SymbologyInfo {
|
|
|
2385
2620
|
detectorFormat?: string;
|
|
2386
2621
|
}
|
|
2387
2622
|
|
|
2388
|
-
declare interface SymbologyValidationResult {
|
|
2623
|
+
export declare interface SymbologyValidationResult {
|
|
2389
2624
|
/** Is valid for this symbology */
|
|
2390
2625
|
valid: boolean;
|
|
2391
2626
|
/** Validation errors */
|
|
@@ -2398,7 +2633,7 @@ declare interface SymbologyValidationResult {
|
|
|
2398
2633
|
formattedValue?: string;
|
|
2399
2634
|
}
|
|
2400
2635
|
|
|
2401
|
-
declare interface SyncHandler<T = unknown> {
|
|
2636
|
+
export declare interface SyncHandler<T = unknown> {
|
|
2402
2637
|
/** Handler for processing sync task */
|
|
2403
2638
|
handler: (task: SyncTask<T>) => Promise<void>;
|
|
2404
2639
|
/** Min time between syncs in ms */
|
|
@@ -2407,9 +2642,9 @@ declare interface SyncHandler<T = unknown> {
|
|
|
2407
2642
|
syncOnConnect?: boolean;
|
|
2408
2643
|
}
|
|
2409
2644
|
|
|
2410
|
-
declare type SyncStatus = 'pending' | 'syncing' | 'success' | 'failed' | 'cancelled';
|
|
2645
|
+
export declare type SyncStatus = 'pending' | 'syncing' | 'success' | 'failed' | 'cancelled';
|
|
2411
2646
|
|
|
2412
|
-
declare interface SyncTask<T = unknown> {
|
|
2647
|
+
export declare interface SyncTask<T = unknown> {
|
|
2413
2648
|
/** Unique task ID */
|
|
2414
2649
|
id: string;
|
|
2415
2650
|
/** Task tag for grouping */
|
|
@@ -2432,7 +2667,7 @@ declare interface SyncTask<T = unknown> {
|
|
|
2432
2667
|
priority: number;
|
|
2433
2668
|
}
|
|
2434
2669
|
|
|
2435
|
-
declare interface TransactionOptions {
|
|
2670
|
+
export declare interface TransactionOptions {
|
|
2436
2671
|
/** Store names to include */
|
|
2437
2672
|
stores: string[];
|
|
2438
2673
|
/** Transaction mode */
|
|
@@ -2441,7 +2676,93 @@ declare interface TransactionOptions {
|
|
|
2441
2676
|
durability?: 'default' | 'strict' | 'relaxed';
|
|
2442
2677
|
}
|
|
2443
2678
|
|
|
2444
|
-
declare
|
|
2679
|
+
export declare const useAutoStart: () => AutoStartContextValue;
|
|
2680
|
+
|
|
2681
|
+
export declare const useBackgroundSync: () => BackgroundSyncContextValue;
|
|
2682
|
+
|
|
2683
|
+
export declare const useBatchScanner: () => BatchScannerContextValue;
|
|
2684
|
+
|
|
2685
|
+
export declare function useCachedFetch<T = unknown>(url: string | null, options?: FetchOptions): {
|
|
2686
|
+
data: T | undefined;
|
|
2687
|
+
isLoading: boolean;
|
|
2688
|
+
error: Error | undefined;
|
|
2689
|
+
refetch: () => void;
|
|
2690
|
+
};
|
|
2691
|
+
|
|
2692
|
+
export declare const useCacheStrategies: () => CacheStrategiesContextValue;
|
|
2693
|
+
|
|
2694
|
+
export declare const useConflictResolution: () => ConflictResolutionContextValue;
|
|
2695
|
+
|
|
2696
|
+
export declare function useConnectionStatus(): ConnectionInfo;
|
|
2697
|
+
|
|
2698
|
+
export declare const useExternalDisplay: () => ExternalDisplayContextValue;
|
|
2699
|
+
|
|
2700
|
+
export declare const useIndexedDB: () => IndexedDBContextValue;
|
|
2701
|
+
|
|
2702
|
+
export declare function useIndexedDBStore<T = unknown>(storeName: string): {
|
|
2703
|
+
isOpen: boolean;
|
|
2704
|
+
isLoading: boolean;
|
|
2705
|
+
error: string | undefined;
|
|
2706
|
+
get: (key: IDBValidKey) => Promise<T | undefined>;
|
|
2707
|
+
getAll: (options?: QueryOptions) => Promise<T[]>;
|
|
2708
|
+
add: (value: T, key?: IDBValidKey) => Promise<IDBValidKey>;
|
|
2709
|
+
put: (value: T, key?: IDBValidKey) => Promise<IDBValidKey>;
|
|
2710
|
+
remove: (key: IDBValidKey) => Promise<void>;
|
|
2711
|
+
clear: () => Promise<void>;
|
|
2712
|
+
count: (key?: IDBValidKey | IDBKeyRange) => Promise<number>;
|
|
2713
|
+
query: (options: QueryOptions) => Promise<T[]>;
|
|
2714
|
+
bulkAdd: (items: T[]) => Promise<IDBValidKey[]>;
|
|
2715
|
+
bulkPut: (items: T[]) => Promise<IDBValidKey[]>;
|
|
2716
|
+
bulkDelete: (keys: IDBValidKey[]) => Promise<void>;
|
|
2717
|
+
};
|
|
2718
|
+
|
|
2719
|
+
export declare const useKioskMode: () => KioskContextValue;
|
|
2720
|
+
|
|
2721
|
+
export declare const useLowPowerMode: () => LowPowerContextValue;
|
|
2722
|
+
|
|
2723
|
+
export declare function useOfflineForm<T extends Record<string, unknown>>(options: UseOfflineFormOptions<T>): {
|
|
2724
|
+
data: T;
|
|
2725
|
+
setData: default_2.Dispatch<default_2.SetStateAction<T>>;
|
|
2726
|
+
draftId: string | undefined;
|
|
2727
|
+
isSubmitting: boolean;
|
|
2728
|
+
error: string | undefined;
|
|
2729
|
+
isOnline: boolean;
|
|
2730
|
+
isSyncing: boolean;
|
|
2731
|
+
pendingCount: number;
|
|
2732
|
+
handleChange: (e: ChangeEvent<HTMLInputElement | HTMLTextAreaElement | HTMLSelectElement>) => void;
|
|
2733
|
+
handleSubmit: (e?: FormEvent) => Promise<void>;
|
|
2734
|
+
reset: () => void;
|
|
2735
|
+
loadDraft: (id: string) => Promise<void>;
|
|
2736
|
+
};
|
|
2737
|
+
|
|
2738
|
+
export declare interface UseOfflineFormOptions<T> {
|
|
2739
|
+
formId: string;
|
|
2740
|
+
initialData?: T;
|
|
2741
|
+
autoSave?: boolean;
|
|
2742
|
+
autoSaveInterval?: number;
|
|
2743
|
+
onSubmit: (data: T) => Promise<void>;
|
|
2744
|
+
}
|
|
2745
|
+
|
|
2746
|
+
export declare const useOfflineForms: () => OfflineFormsContextValue;
|
|
2747
|
+
|
|
2748
|
+
export declare const useOfflineMedia: () => OfflineMediaContextValue;
|
|
2749
|
+
|
|
2750
|
+
export declare function useOfflineMediaItem(mediaId: string | undefined): {
|
|
2751
|
+
item: CachedMedia | undefined;
|
|
2752
|
+
blobUrl: string | undefined;
|
|
2753
|
+
isLoading: boolean;
|
|
2754
|
+
isOnline: boolean;
|
|
2755
|
+
};
|
|
2756
|
+
|
|
2757
|
+
export declare const useOrientationLock: () => OrientationContextValue;
|
|
2758
|
+
|
|
2759
|
+
export declare const useRemoteManagement: () => RemoteManagementContextValue;
|
|
2760
|
+
|
|
2761
|
+
export declare const useServiceWorker: () => ServiceWorkerContextValue;
|
|
2762
|
+
|
|
2763
|
+
export declare const useSymbology: () => SymbologyContextValue;
|
|
2764
|
+
|
|
2765
|
+
export declare interface WindowFeatures {
|
|
2445
2766
|
/** Width */
|
|
2446
2767
|
width?: number;
|
|
2447
2768
|
/** Height */
|
|
@@ -2466,7 +2787,7 @@ declare interface WindowFeatures {
|
|
|
2466
2787
|
fullscreen?: boolean;
|
|
2467
2788
|
}
|
|
2468
2789
|
|
|
2469
|
-
declare interface WindowInfo {
|
|
2790
|
+
export declare interface WindowInfo {
|
|
2470
2791
|
/** Window reference */
|
|
2471
2792
|
window: Window | null;
|
|
2472
2793
|
/** Target screen */
|