@vention/machine-logic-ui-sdk 0.2.1 → 0.3.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/index.esm.js +178 -236
- package/package.json +2 -2
- package/src/index.d.ts +3 -3
- package/src/lib/components/virtual-keyboard/keyboard-layouts.d.ts +41 -41
- package/src/lib/components/virtual-keyboard/virtual-keyboard.d.ts +4 -4
- package/src/lib/mqtt-browser/mqtt-client.d.ts +12 -12
- package/src/lib/utils/machine-logic-ui-sdk-utils.d.ts +7 -7
package/index.esm.js
CHANGED
|
@@ -11,7 +11,7 @@ var check = function (it) {
|
|
|
11
11
|
};
|
|
12
12
|
|
|
13
13
|
// https://github.com/zloirock/core-js/issues/86#issuecomment-115759028
|
|
14
|
-
var
|
|
14
|
+
var globalThis_1 =
|
|
15
15
|
// eslint-disable-next-line es/no-global-this -- safe
|
|
16
16
|
check(typeof globalThis == 'object' && globalThis) ||
|
|
17
17
|
check(typeof window == 'object' && window) ||
|
|
@@ -24,7 +24,7 @@ var global$e =
|
|
|
24
24
|
|
|
25
25
|
var objectGetOwnPropertyDescriptor = {};
|
|
26
26
|
|
|
27
|
-
var fails$
|
|
27
|
+
var fails$g = function (exec) {
|
|
28
28
|
try {
|
|
29
29
|
return !!exec();
|
|
30
30
|
} catch (error) {
|
|
@@ -32,17 +32,17 @@ var fails$h = function (exec) {
|
|
|
32
32
|
}
|
|
33
33
|
};
|
|
34
34
|
|
|
35
|
-
var fails$
|
|
35
|
+
var fails$f = fails$g;
|
|
36
36
|
|
|
37
37
|
// Detect IE8's incomplete defineProperty implementation
|
|
38
|
-
var descriptors = !fails$
|
|
38
|
+
var descriptors = !fails$f(function () {
|
|
39
39
|
// eslint-disable-next-line es/no-object-defineproperty -- required for testing
|
|
40
40
|
return Object.defineProperty({}, 1, { get: function () { return 7; } })[1] !== 7;
|
|
41
41
|
});
|
|
42
42
|
|
|
43
|
-
var fails$
|
|
43
|
+
var fails$e = fails$g;
|
|
44
44
|
|
|
45
|
-
var functionBindNative = !fails$
|
|
45
|
+
var functionBindNative = !fails$e(function () {
|
|
46
46
|
// eslint-disable-next-line es/no-function-prototype-bind -- safe
|
|
47
47
|
var test = (function () { /* empty */ }).bind();
|
|
48
48
|
// eslint-disable-next-line no-prototype-builtins -- safe
|
|
@@ -51,10 +51,10 @@ var functionBindNative = !fails$f(function () {
|
|
|
51
51
|
|
|
52
52
|
var NATIVE_BIND$1 = functionBindNative;
|
|
53
53
|
|
|
54
|
-
var call$
|
|
54
|
+
var call$8 = Function.prototype.call;
|
|
55
55
|
|
|
56
|
-
var functionCall = NATIVE_BIND$1 ? call$
|
|
57
|
-
return call$
|
|
56
|
+
var functionCall = NATIVE_BIND$1 ? call$8.bind(call$8) : function () {
|
|
57
|
+
return call$8.apply(call$8, arguments);
|
|
58
58
|
};
|
|
59
59
|
|
|
60
60
|
var objectPropertyIsEnumerable = {};
|
|
@@ -85,33 +85,33 @@ var createPropertyDescriptor$3 = function (bitmap, value) {
|
|
|
85
85
|
var NATIVE_BIND = functionBindNative;
|
|
86
86
|
|
|
87
87
|
var FunctionPrototype$1 = Function.prototype;
|
|
88
|
-
var call$
|
|
89
|
-
var uncurryThisWithBind = NATIVE_BIND && FunctionPrototype$1.bind.bind(call$
|
|
88
|
+
var call$7 = FunctionPrototype$1.call;
|
|
89
|
+
var uncurryThisWithBind = NATIVE_BIND && FunctionPrototype$1.bind.bind(call$7, call$7);
|
|
90
90
|
|
|
91
91
|
var functionUncurryThis = NATIVE_BIND ? uncurryThisWithBind : function (fn) {
|
|
92
92
|
return function () {
|
|
93
|
-
return call$
|
|
93
|
+
return call$7.apply(fn, arguments);
|
|
94
94
|
};
|
|
95
95
|
};
|
|
96
96
|
|
|
97
|
-
var uncurryThis$
|
|
97
|
+
var uncurryThis$d = functionUncurryThis;
|
|
98
98
|
|
|
99
|
-
var toString$6 = uncurryThis$
|
|
100
|
-
var stringSlice$3 = uncurryThis$
|
|
99
|
+
var toString$6 = uncurryThis$d({}.toString);
|
|
100
|
+
var stringSlice$3 = uncurryThis$d(''.slice);
|
|
101
101
|
|
|
102
102
|
var classofRaw$2 = function (it) {
|
|
103
103
|
return stringSlice$3(toString$6(it), 8, -1);
|
|
104
104
|
};
|
|
105
105
|
|
|
106
|
-
var uncurryThis$
|
|
107
|
-
var fails$
|
|
106
|
+
var uncurryThis$c = functionUncurryThis;
|
|
107
|
+
var fails$d = fails$g;
|
|
108
108
|
var classof$4 = classofRaw$2;
|
|
109
109
|
|
|
110
110
|
var $Object$4 = Object;
|
|
111
|
-
var split = uncurryThis$
|
|
111
|
+
var split = uncurryThis$c(''.split);
|
|
112
112
|
|
|
113
113
|
// fallback for non-array-like ES3 and non-enumerable old V8 strings
|
|
114
|
-
var indexedObject = fails$
|
|
114
|
+
var indexedObject = fails$d(function () {
|
|
115
115
|
// throws an error in rhino, see https://github.com/mozilla/rhino/issues/346
|
|
116
116
|
// eslint-disable-next-line no-prototype-builtins -- safe
|
|
117
117
|
return !$Object$4('z').propertyIsEnumerable(0);
|
|
@@ -137,11 +137,11 @@ var requireObjectCoercible$5 = function (it) {
|
|
|
137
137
|
};
|
|
138
138
|
|
|
139
139
|
// toObject with fallback for non-array-like ES3 strings
|
|
140
|
-
var IndexedObject
|
|
140
|
+
var IndexedObject = indexedObject;
|
|
141
141
|
var requireObjectCoercible$4 = requireObjectCoercible$5;
|
|
142
142
|
|
|
143
143
|
var toIndexedObject$5 = function (it) {
|
|
144
|
-
return IndexedObject
|
|
144
|
+
return IndexedObject(requireObjectCoercible$4(it));
|
|
145
145
|
};
|
|
146
146
|
|
|
147
147
|
// https://tc39.es/ecma262/#sec-IsHTMLDDA-internal-slot
|
|
@@ -162,7 +162,7 @@ var isObject$9 = function (it) {
|
|
|
162
162
|
return typeof it == 'object' ? it !== null : isCallable$e(it);
|
|
163
163
|
};
|
|
164
164
|
|
|
165
|
-
var
|
|
165
|
+
var globalThis$f = globalThis_1;
|
|
166
166
|
var isCallable$d = isCallable$f;
|
|
167
167
|
|
|
168
168
|
var aFunction = function (argument) {
|
|
@@ -170,20 +170,25 @@ var aFunction = function (argument) {
|
|
|
170
170
|
};
|
|
171
171
|
|
|
172
172
|
var getBuiltIn$3 = function (namespace, method) {
|
|
173
|
-
return arguments.length < 2 ? aFunction(
|
|
173
|
+
return arguments.length < 2 ? aFunction(globalThis$f[namespace]) : globalThis$f[namespace] && globalThis$f[namespace][method];
|
|
174
174
|
};
|
|
175
175
|
|
|
176
|
-
var uncurryThis$
|
|
176
|
+
var uncurryThis$b = functionUncurryThis;
|
|
177
|
+
|
|
178
|
+
var objectIsPrototypeOf = uncurryThis$b({}.isPrototypeOf);
|
|
179
|
+
|
|
180
|
+
var globalThis$e = globalThis_1;
|
|
177
181
|
|
|
178
|
-
var
|
|
182
|
+
var navigator$1 = globalThis$e.navigator;
|
|
183
|
+
var userAgent$1 = navigator$1 && navigator$1.userAgent;
|
|
179
184
|
|
|
180
|
-
var
|
|
185
|
+
var environmentUserAgent = userAgent$1 ? String(userAgent$1) : '';
|
|
181
186
|
|
|
182
|
-
var
|
|
183
|
-
var userAgent =
|
|
187
|
+
var globalThis$d = globalThis_1;
|
|
188
|
+
var userAgent = environmentUserAgent;
|
|
184
189
|
|
|
185
|
-
var process =
|
|
186
|
-
var Deno =
|
|
190
|
+
var process = globalThis$d.process;
|
|
191
|
+
var Deno = globalThis$d.Deno;
|
|
187
192
|
var versions = process && process.versions || Deno && Deno.version;
|
|
188
193
|
var v8 = versions && versions.v8;
|
|
189
194
|
var match, version;
|
|
@@ -205,17 +210,17 @@ if (!version && userAgent) {
|
|
|
205
210
|
}
|
|
206
211
|
}
|
|
207
212
|
|
|
208
|
-
var
|
|
213
|
+
var environmentV8Version = version;
|
|
209
214
|
|
|
210
215
|
/* eslint-disable es/no-symbol -- required for testing */
|
|
211
|
-
var V8_VERSION =
|
|
212
|
-
var fails$
|
|
213
|
-
var
|
|
216
|
+
var V8_VERSION = environmentV8Version;
|
|
217
|
+
var fails$c = fails$g;
|
|
218
|
+
var globalThis$c = globalThis_1;
|
|
214
219
|
|
|
215
|
-
var $String$5 =
|
|
220
|
+
var $String$5 = globalThis$c.String;
|
|
216
221
|
|
|
217
222
|
// eslint-disable-next-line es/no-object-getownpropertysymbols -- required for testing
|
|
218
|
-
var symbolConstructorDetection = !!Object.getOwnPropertySymbols && !fails$
|
|
223
|
+
var symbolConstructorDetection = !!Object.getOwnPropertySymbols && !fails$c(function () {
|
|
219
224
|
var symbol = Symbol('symbol detection');
|
|
220
225
|
// Chrome 38 Symbol has incorrect toString conversion
|
|
221
226
|
// `get-own-property-symbols` polyfill symbols converted to object are not Symbol instances
|
|
@@ -278,7 +283,7 @@ var getMethod$1 = function (V, P) {
|
|
|
278
283
|
return isNullOrUndefined(func) ? undefined : aCallable$1(func);
|
|
279
284
|
};
|
|
280
285
|
|
|
281
|
-
var call$
|
|
286
|
+
var call$6 = functionCall;
|
|
282
287
|
var isCallable$a = isCallable$f;
|
|
283
288
|
var isObject$8 = isObject$9;
|
|
284
289
|
|
|
@@ -288,38 +293,38 @@ var $TypeError$7 = TypeError;
|
|
|
288
293
|
// https://tc39.es/ecma262/#sec-ordinarytoprimitive
|
|
289
294
|
var ordinaryToPrimitive$1 = function (input, pref) {
|
|
290
295
|
var fn, val;
|
|
291
|
-
if (pref === 'string' && isCallable$a(fn = input.toString) && !isObject$8(val = call$
|
|
292
|
-
if (isCallable$a(fn = input.valueOf) && !isObject$8(val = call$
|
|
293
|
-
if (pref !== 'string' && isCallable$a(fn = input.toString) && !isObject$8(val = call$
|
|
296
|
+
if (pref === 'string' && isCallable$a(fn = input.toString) && !isObject$8(val = call$6(fn, input))) return val;
|
|
297
|
+
if (isCallable$a(fn = input.valueOf) && !isObject$8(val = call$6(fn, input))) return val;
|
|
298
|
+
if (pref !== 'string' && isCallable$a(fn = input.toString) && !isObject$8(val = call$6(fn, input))) return val;
|
|
294
299
|
throw new $TypeError$7("Can't convert object to primitive value");
|
|
295
300
|
};
|
|
296
301
|
|
|
297
302
|
var sharedStore = {exports: {}};
|
|
298
303
|
|
|
299
|
-
var
|
|
304
|
+
var globalThis$b = globalThis_1;
|
|
300
305
|
|
|
301
306
|
// eslint-disable-next-line es/no-object-defineproperty -- safe
|
|
302
|
-
var defineProperty$
|
|
307
|
+
var defineProperty$4 = Object.defineProperty;
|
|
303
308
|
|
|
304
309
|
var defineGlobalProperty$3 = function (key, value) {
|
|
305
310
|
try {
|
|
306
|
-
defineProperty$
|
|
311
|
+
defineProperty$4(globalThis$b, key, { value: value, configurable: true, writable: true });
|
|
307
312
|
} catch (error) {
|
|
308
|
-
|
|
313
|
+
globalThis$b[key] = value;
|
|
309
314
|
} return value;
|
|
310
315
|
};
|
|
311
316
|
|
|
312
|
-
var globalThis$
|
|
317
|
+
var globalThis$a = globalThis_1;
|
|
313
318
|
var defineGlobalProperty$2 = defineGlobalProperty$3;
|
|
314
319
|
|
|
315
320
|
var SHARED = '__core-js_shared__';
|
|
316
|
-
var store$3 = sharedStore.exports = globalThis$
|
|
321
|
+
var store$3 = sharedStore.exports = globalThis$a[SHARED] || defineGlobalProperty$2(SHARED, {});
|
|
317
322
|
|
|
318
323
|
(store$3.versions || (store$3.versions = [])).push({
|
|
319
|
-
version: '3.
|
|
324
|
+
version: '3.38.1',
|
|
320
325
|
mode: 'global',
|
|
321
326
|
copyright: '© 2014-2024 Denis Pushkarev (zloirock.ru)',
|
|
322
|
-
license: 'https://github.com/zloirock/core-js/blob/v3.
|
|
327
|
+
license: 'https://github.com/zloirock/core-js/blob/v3.38.1/LICENSE',
|
|
323
328
|
source: 'https://github.com/zloirock/core-js'
|
|
324
329
|
});
|
|
325
330
|
|
|
@@ -337,40 +342,40 @@ var $Object$2 = Object;
|
|
|
337
342
|
|
|
338
343
|
// `ToObject` abstract operation
|
|
339
344
|
// https://tc39.es/ecma262/#sec-toobject
|
|
340
|
-
var toObject$
|
|
345
|
+
var toObject$3 = function (argument) {
|
|
341
346
|
return $Object$2(requireObjectCoercible$3(argument));
|
|
342
347
|
};
|
|
343
348
|
|
|
344
|
-
var uncurryThis$
|
|
345
|
-
var toObject$
|
|
349
|
+
var uncurryThis$a = functionUncurryThis;
|
|
350
|
+
var toObject$2 = toObject$3;
|
|
346
351
|
|
|
347
|
-
var hasOwnProperty = uncurryThis$
|
|
352
|
+
var hasOwnProperty = uncurryThis$a({}.hasOwnProperty);
|
|
348
353
|
|
|
349
354
|
// `HasOwnProperty` abstract operation
|
|
350
355
|
// https://tc39.es/ecma262/#sec-hasownproperty
|
|
351
356
|
// eslint-disable-next-line es/no-object-hasown -- safe
|
|
352
357
|
var hasOwnProperty_1 = Object.hasOwn || function hasOwn(it, key) {
|
|
353
|
-
return hasOwnProperty(toObject$
|
|
358
|
+
return hasOwnProperty(toObject$2(it), key);
|
|
354
359
|
};
|
|
355
360
|
|
|
356
|
-
var uncurryThis$
|
|
361
|
+
var uncurryThis$9 = functionUncurryThis;
|
|
357
362
|
|
|
358
363
|
var id = 0;
|
|
359
364
|
var postfix = Math.random();
|
|
360
|
-
var toString$5 = uncurryThis$
|
|
365
|
+
var toString$5 = uncurryThis$9(1.0.toString);
|
|
361
366
|
|
|
362
367
|
var uid$2 = function (key) {
|
|
363
368
|
return 'Symbol(' + (key === undefined ? '' : key) + ')_' + toString$5(++id + postfix, 36);
|
|
364
369
|
};
|
|
365
370
|
|
|
366
|
-
var
|
|
371
|
+
var globalThis$9 = globalThis_1;
|
|
367
372
|
var shared$3 = shared$4;
|
|
368
373
|
var hasOwn$9 = hasOwnProperty_1;
|
|
369
374
|
var uid$1 = uid$2;
|
|
370
375
|
var NATIVE_SYMBOL = symbolConstructorDetection;
|
|
371
376
|
var USE_SYMBOL_AS_UID = useSymbolAsUid;
|
|
372
377
|
|
|
373
|
-
var Symbol$1 =
|
|
378
|
+
var Symbol$1 = globalThis$9.Symbol;
|
|
374
379
|
var WellKnownSymbolsStore = shared$3('wks');
|
|
375
380
|
var createWellKnownSymbol = USE_SYMBOL_AS_UID ? Symbol$1['for'] || Symbol$1 : Symbol$1 && Symbol$1.withoutSetter || uid$1;
|
|
376
381
|
|
|
@@ -382,7 +387,7 @@ var wellKnownSymbol$a = function (name) {
|
|
|
382
387
|
} return WellKnownSymbolsStore[name];
|
|
383
388
|
};
|
|
384
389
|
|
|
385
|
-
var call$
|
|
390
|
+
var call$5 = functionCall;
|
|
386
391
|
var isObject$7 = isObject$9;
|
|
387
392
|
var isSymbol$1 = isSymbol$2;
|
|
388
393
|
var getMethod = getMethod$1;
|
|
@@ -400,7 +405,7 @@ var toPrimitive$1 = function (input, pref) {
|
|
|
400
405
|
var result;
|
|
401
406
|
if (exoticToPrim) {
|
|
402
407
|
if (pref === undefined) pref = 'default';
|
|
403
|
-
result = call$
|
|
408
|
+
result = call$5(exoticToPrim, input, pref);
|
|
404
409
|
if (!isObject$7(result) || isSymbol$1(result)) return result;
|
|
405
410
|
throw new $TypeError$6("Can't convert object to primitive value");
|
|
406
411
|
}
|
|
@@ -418,10 +423,10 @@ var toPropertyKey$2 = function (argument) {
|
|
|
418
423
|
return isSymbol(key) ? key : key + '';
|
|
419
424
|
};
|
|
420
425
|
|
|
421
|
-
var
|
|
426
|
+
var globalThis$8 = globalThis_1;
|
|
422
427
|
var isObject$6 = isObject$9;
|
|
423
428
|
|
|
424
|
-
var document$1 =
|
|
429
|
+
var document$1 = globalThis$8.document;
|
|
425
430
|
// typeof document.createElement is 'object' in old IE
|
|
426
431
|
var EXISTS$1 = isObject$6(document$1) && isObject$6(document$1.createElement);
|
|
427
432
|
|
|
@@ -429,21 +434,21 @@ var documentCreateElement$2 = function (it) {
|
|
|
429
434
|
return EXISTS$1 ? document$1.createElement(it) : {};
|
|
430
435
|
};
|
|
431
436
|
|
|
432
|
-
var DESCRIPTORS$
|
|
433
|
-
var fails$
|
|
437
|
+
var DESCRIPTORS$9 = descriptors;
|
|
438
|
+
var fails$b = fails$g;
|
|
434
439
|
var createElement = documentCreateElement$2;
|
|
435
440
|
|
|
436
441
|
// Thanks to IE8 for its funny defineProperty
|
|
437
|
-
var ie8DomDefine = !DESCRIPTORS$
|
|
442
|
+
var ie8DomDefine = !DESCRIPTORS$9 && !fails$b(function () {
|
|
438
443
|
// eslint-disable-next-line es/no-object-defineproperty -- required for testing
|
|
439
444
|
return Object.defineProperty(createElement('div'), 'a', {
|
|
440
445
|
get: function () { return 7; }
|
|
441
446
|
}).a !== 7;
|
|
442
447
|
});
|
|
443
448
|
|
|
444
|
-
var DESCRIPTORS$
|
|
445
|
-
var call$
|
|
446
|
-
var propertyIsEnumerableModule
|
|
449
|
+
var DESCRIPTORS$8 = descriptors;
|
|
450
|
+
var call$4 = functionCall;
|
|
451
|
+
var propertyIsEnumerableModule = objectPropertyIsEnumerable;
|
|
447
452
|
var createPropertyDescriptor$2 = createPropertyDescriptor$3;
|
|
448
453
|
var toIndexedObject$4 = toIndexedObject$5;
|
|
449
454
|
var toPropertyKey$1 = toPropertyKey$2;
|
|
@@ -455,23 +460,23 @@ var $getOwnPropertyDescriptor$1 = Object.getOwnPropertyDescriptor;
|
|
|
455
460
|
|
|
456
461
|
// `Object.getOwnPropertyDescriptor` method
|
|
457
462
|
// https://tc39.es/ecma262/#sec-object.getownpropertydescriptor
|
|
458
|
-
objectGetOwnPropertyDescriptor.f = DESCRIPTORS$
|
|
463
|
+
objectGetOwnPropertyDescriptor.f = DESCRIPTORS$8 ? $getOwnPropertyDescriptor$1 : function getOwnPropertyDescriptor(O, P) {
|
|
459
464
|
O = toIndexedObject$4(O);
|
|
460
465
|
P = toPropertyKey$1(P);
|
|
461
466
|
if (IE8_DOM_DEFINE$1) try {
|
|
462
467
|
return $getOwnPropertyDescriptor$1(O, P);
|
|
463
468
|
} catch (error) { /* empty */ }
|
|
464
|
-
if (hasOwn$8(O, P)) return createPropertyDescriptor$2(!call$
|
|
469
|
+
if (hasOwn$8(O, P)) return createPropertyDescriptor$2(!call$4(propertyIsEnumerableModule.f, O, P), O[P]);
|
|
465
470
|
};
|
|
466
471
|
|
|
467
472
|
var objectDefineProperty = {};
|
|
468
473
|
|
|
469
|
-
var DESCRIPTORS$
|
|
470
|
-
var fails$
|
|
474
|
+
var DESCRIPTORS$7 = descriptors;
|
|
475
|
+
var fails$a = fails$g;
|
|
471
476
|
|
|
472
477
|
// V8 ~ Chrome 36-
|
|
473
478
|
// https://bugs.chromium.org/p/v8/issues/detail?id=3334
|
|
474
|
-
var v8PrototypeDefineBug = DESCRIPTORS$
|
|
479
|
+
var v8PrototypeDefineBug = DESCRIPTORS$7 && fails$a(function () {
|
|
475
480
|
// eslint-disable-next-line es/no-object-defineproperty -- required for testing
|
|
476
481
|
return Object.defineProperty(function () { /* empty */ }, 'prototype', {
|
|
477
482
|
value: 42,
|
|
@@ -490,7 +495,7 @@ var anObject$7 = function (argument) {
|
|
|
490
495
|
throw new $TypeError$5($String$3(argument) + ' is not an object');
|
|
491
496
|
};
|
|
492
497
|
|
|
493
|
-
var DESCRIPTORS$
|
|
498
|
+
var DESCRIPTORS$6 = descriptors;
|
|
494
499
|
var IE8_DOM_DEFINE = ie8DomDefine;
|
|
495
500
|
var V8_PROTOTYPE_DEFINE_BUG$1 = v8PrototypeDefineBug;
|
|
496
501
|
var anObject$6 = anObject$7;
|
|
@@ -507,7 +512,7 @@ var WRITABLE = 'writable';
|
|
|
507
512
|
|
|
508
513
|
// `Object.defineProperty` method
|
|
509
514
|
// https://tc39.es/ecma262/#sec-object.defineproperty
|
|
510
|
-
objectDefineProperty.f = DESCRIPTORS$
|
|
515
|
+
objectDefineProperty.f = DESCRIPTORS$6 ? V8_PROTOTYPE_DEFINE_BUG$1 ? function defineProperty(O, P, Attributes) {
|
|
511
516
|
anObject$6(O);
|
|
512
517
|
P = toPropertyKey(P);
|
|
513
518
|
anObject$6(Attributes);
|
|
@@ -534,11 +539,11 @@ objectDefineProperty.f = DESCRIPTORS$7 ? V8_PROTOTYPE_DEFINE_BUG$1 ? function de
|
|
|
534
539
|
return O;
|
|
535
540
|
};
|
|
536
541
|
|
|
537
|
-
var DESCRIPTORS$
|
|
542
|
+
var DESCRIPTORS$5 = descriptors;
|
|
538
543
|
var definePropertyModule$3 = objectDefineProperty;
|
|
539
544
|
var createPropertyDescriptor$1 = createPropertyDescriptor$3;
|
|
540
545
|
|
|
541
|
-
var createNonEnumerableProperty$4 = DESCRIPTORS$
|
|
546
|
+
var createNonEnumerableProperty$4 = DESCRIPTORS$5 ? function (object, key, value) {
|
|
542
547
|
return definePropertyModule$3.f(object, key, createPropertyDescriptor$1(1, value));
|
|
543
548
|
} : function (object, key, value) {
|
|
544
549
|
object[key] = value;
|
|
@@ -547,17 +552,17 @@ var createNonEnumerableProperty$4 = DESCRIPTORS$6 ? function (object, key, value
|
|
|
547
552
|
|
|
548
553
|
var makeBuiltIn$2 = {exports: {}};
|
|
549
554
|
|
|
550
|
-
var DESCRIPTORS$
|
|
555
|
+
var DESCRIPTORS$4 = descriptors;
|
|
551
556
|
var hasOwn$7 = hasOwnProperty_1;
|
|
552
557
|
|
|
553
558
|
var FunctionPrototype = Function.prototype;
|
|
554
559
|
// eslint-disable-next-line es/no-object-getownpropertydescriptor -- safe
|
|
555
|
-
var getDescriptor = DESCRIPTORS$
|
|
560
|
+
var getDescriptor = DESCRIPTORS$4 && Object.getOwnPropertyDescriptor;
|
|
556
561
|
|
|
557
562
|
var EXISTS = hasOwn$7(FunctionPrototype, 'name');
|
|
558
563
|
// additional protection from minified / mangled / dropped function names
|
|
559
564
|
var PROPER = EXISTS && (function something() { /* empty */ }).name === 'something';
|
|
560
|
-
var CONFIGURABLE = EXISTS && (!DESCRIPTORS$
|
|
565
|
+
var CONFIGURABLE = EXISTS && (!DESCRIPTORS$4 || (DESCRIPTORS$4 && getDescriptor(FunctionPrototype, 'name').configurable));
|
|
561
566
|
|
|
562
567
|
var functionName = {
|
|
563
568
|
EXISTS: EXISTS,
|
|
@@ -565,11 +570,11 @@ var functionName = {
|
|
|
565
570
|
CONFIGURABLE: CONFIGURABLE
|
|
566
571
|
};
|
|
567
572
|
|
|
568
|
-
var uncurryThis$
|
|
573
|
+
var uncurryThis$8 = functionUncurryThis;
|
|
569
574
|
var isCallable$9 = isCallable$f;
|
|
570
575
|
var store$1 = sharedStoreExports;
|
|
571
576
|
|
|
572
|
-
var functionToString = uncurryThis$
|
|
577
|
+
var functionToString = uncurryThis$8(Function.toString);
|
|
573
578
|
|
|
574
579
|
// this helper broken in `core-js@3.4.1-3.4.4`, so we can't use `shared` helper
|
|
575
580
|
if (!isCallable$9(store$1.inspectSource)) {
|
|
@@ -580,10 +585,10 @@ if (!isCallable$9(store$1.inspectSource)) {
|
|
|
580
585
|
|
|
581
586
|
var inspectSource$1 = store$1.inspectSource;
|
|
582
587
|
|
|
583
|
-
var
|
|
588
|
+
var globalThis$7 = globalThis_1;
|
|
584
589
|
var isCallable$8 = isCallable$f;
|
|
585
590
|
|
|
586
|
-
var WeakMap$1 =
|
|
591
|
+
var WeakMap$1 = globalThis$7.WeakMap;
|
|
587
592
|
|
|
588
593
|
var weakMapBasicDetection = isCallable$8(WeakMap$1) && /native code/.test(String(WeakMap$1));
|
|
589
594
|
|
|
@@ -599,7 +604,7 @@ var sharedKey$3 = function (key) {
|
|
|
599
604
|
var hiddenKeys$4 = {};
|
|
600
605
|
|
|
601
606
|
var NATIVE_WEAK_MAP = weakMapBasicDetection;
|
|
602
|
-
var
|
|
607
|
+
var globalThis$6 = globalThis_1;
|
|
603
608
|
var isObject$4 = isObject$9;
|
|
604
609
|
var createNonEnumerableProperty$3 = createNonEnumerableProperty$4;
|
|
605
610
|
var hasOwn$6 = hasOwnProperty_1;
|
|
@@ -608,8 +613,8 @@ var sharedKey$2 = sharedKey$3;
|
|
|
608
613
|
var hiddenKeys$3 = hiddenKeys$4;
|
|
609
614
|
|
|
610
615
|
var OBJECT_ALREADY_INITIALIZED = 'Object already initialized';
|
|
611
|
-
var TypeError$1 =
|
|
612
|
-
var WeakMap =
|
|
616
|
+
var TypeError$1 = globalThis$6.TypeError;
|
|
617
|
+
var WeakMap = globalThis$6.WeakMap;
|
|
613
618
|
var set, get, has;
|
|
614
619
|
|
|
615
620
|
var enforce = function (it) {
|
|
@@ -669,11 +674,11 @@ var internalState = {
|
|
|
669
674
|
getterFor: getterFor
|
|
670
675
|
};
|
|
671
676
|
|
|
672
|
-
var uncurryThis$
|
|
673
|
-
var fails$
|
|
677
|
+
var uncurryThis$7 = functionUncurryThis;
|
|
678
|
+
var fails$9 = fails$g;
|
|
674
679
|
var isCallable$7 = isCallable$f;
|
|
675
680
|
var hasOwn$5 = hasOwnProperty_1;
|
|
676
|
-
var DESCRIPTORS$
|
|
681
|
+
var DESCRIPTORS$3 = descriptors;
|
|
677
682
|
var CONFIGURABLE_FUNCTION_NAME$1 = functionName.CONFIGURABLE;
|
|
678
683
|
var inspectSource = inspectSource$1;
|
|
679
684
|
var InternalStateModule$1 = internalState;
|
|
@@ -682,13 +687,13 @@ var enforceInternalState = InternalStateModule$1.enforce;
|
|
|
682
687
|
var getInternalState$2 = InternalStateModule$1.get;
|
|
683
688
|
var $String$2 = String;
|
|
684
689
|
// eslint-disable-next-line es/no-object-defineproperty -- safe
|
|
685
|
-
var defineProperty$
|
|
686
|
-
var stringSlice$2 = uncurryThis$
|
|
687
|
-
var replace$1 = uncurryThis$
|
|
688
|
-
var join = uncurryThis$
|
|
690
|
+
var defineProperty$3 = Object.defineProperty;
|
|
691
|
+
var stringSlice$2 = uncurryThis$7(''.slice);
|
|
692
|
+
var replace$1 = uncurryThis$7(''.replace);
|
|
693
|
+
var join = uncurryThis$7([].join);
|
|
689
694
|
|
|
690
|
-
var CONFIGURABLE_LENGTH = DESCRIPTORS$
|
|
691
|
-
return defineProperty$
|
|
695
|
+
var CONFIGURABLE_LENGTH = DESCRIPTORS$3 && !fails$9(function () {
|
|
696
|
+
return defineProperty$3(function () { /* empty */ }, 'length', { value: 8 }).length !== 8;
|
|
692
697
|
});
|
|
693
698
|
|
|
694
699
|
var TEMPLATE = String(String).split('String');
|
|
@@ -700,15 +705,15 @@ var makeBuiltIn$1 = makeBuiltIn$2.exports = function (value, name, options) {
|
|
|
700
705
|
if (options && options.getter) name = 'get ' + name;
|
|
701
706
|
if (options && options.setter) name = 'set ' + name;
|
|
702
707
|
if (!hasOwn$5(value, 'name') || (CONFIGURABLE_FUNCTION_NAME$1 && value.name !== name)) {
|
|
703
|
-
if (DESCRIPTORS$
|
|
708
|
+
if (DESCRIPTORS$3) defineProperty$3(value, 'name', { value: name, configurable: true });
|
|
704
709
|
else value.name = name;
|
|
705
710
|
}
|
|
706
711
|
if (CONFIGURABLE_LENGTH && options && hasOwn$5(options, 'arity') && value.length !== options.arity) {
|
|
707
|
-
defineProperty$
|
|
712
|
+
defineProperty$3(value, 'length', { value: options.arity });
|
|
708
713
|
}
|
|
709
714
|
try {
|
|
710
715
|
if (options && hasOwn$5(options, 'constructor') && options.constructor) {
|
|
711
|
-
if (DESCRIPTORS$
|
|
716
|
+
if (DESCRIPTORS$3) defineProperty$3(value, 'prototype', { writable: false });
|
|
712
717
|
// in V8 ~ Chrome 53, prototypes of some methods, like `Array.prototype.values`, are non-writable
|
|
713
718
|
} else if (value.prototype) value.prototype = undefined;
|
|
714
719
|
} catch (error) { /* empty */ }
|
|
@@ -843,13 +848,13 @@ var arrayIncludes = {
|
|
|
843
848
|
indexOf: createMethod(false)
|
|
844
849
|
};
|
|
845
850
|
|
|
846
|
-
var uncurryThis$
|
|
851
|
+
var uncurryThis$6 = functionUncurryThis;
|
|
847
852
|
var hasOwn$4 = hasOwnProperty_1;
|
|
848
853
|
var toIndexedObject$2 = toIndexedObject$5;
|
|
849
854
|
var indexOf$1 = arrayIncludes.indexOf;
|
|
850
855
|
var hiddenKeys$2 = hiddenKeys$4;
|
|
851
856
|
|
|
852
|
-
var push = uncurryThis$
|
|
857
|
+
var push = uncurryThis$6([].push);
|
|
853
858
|
|
|
854
859
|
var objectKeysInternal = function (object, names) {
|
|
855
860
|
var O = toIndexedObject$2(object);
|
|
@@ -893,18 +898,18 @@ var objectGetOwnPropertySymbols = {};
|
|
|
893
898
|
objectGetOwnPropertySymbols.f = Object.getOwnPropertySymbols;
|
|
894
899
|
|
|
895
900
|
var getBuiltIn$1 = getBuiltIn$3;
|
|
896
|
-
var uncurryThis$
|
|
901
|
+
var uncurryThis$5 = functionUncurryThis;
|
|
897
902
|
var getOwnPropertyNamesModule = objectGetOwnPropertyNames;
|
|
898
|
-
var getOwnPropertySymbolsModule
|
|
903
|
+
var getOwnPropertySymbolsModule = objectGetOwnPropertySymbols;
|
|
899
904
|
var anObject$5 = anObject$7;
|
|
900
905
|
|
|
901
|
-
var concat
|
|
906
|
+
var concat = uncurryThis$5([].concat);
|
|
902
907
|
|
|
903
908
|
// all object keys, includes non-enumerable and symbols
|
|
904
909
|
var ownKeys$1 = getBuiltIn$1('Reflect', 'ownKeys') || function ownKeys(it) {
|
|
905
910
|
var keys = getOwnPropertyNamesModule.f(anObject$5(it));
|
|
906
|
-
var getOwnPropertySymbols = getOwnPropertySymbolsModule
|
|
907
|
-
return getOwnPropertySymbols ? concat
|
|
911
|
+
var getOwnPropertySymbols = getOwnPropertySymbolsModule.f;
|
|
912
|
+
return getOwnPropertySymbols ? concat(keys, getOwnPropertySymbols(it)) : keys;
|
|
908
913
|
};
|
|
909
914
|
|
|
910
915
|
var hasOwn$3 = hasOwnProperty_1;
|
|
@@ -924,7 +929,7 @@ var copyConstructorProperties$1 = function (target, source, exceptions) {
|
|
|
924
929
|
}
|
|
925
930
|
};
|
|
926
931
|
|
|
927
|
-
var fails$
|
|
932
|
+
var fails$8 = fails$g;
|
|
928
933
|
var isCallable$5 = isCallable$f;
|
|
929
934
|
|
|
930
935
|
var replacement = /#|\.prototype\./;
|
|
@@ -933,7 +938,7 @@ var isForced$1 = function (feature, detection) {
|
|
|
933
938
|
var value = data[normalize(feature)];
|
|
934
939
|
return value === POLYFILL ? true
|
|
935
940
|
: value === NATIVE ? false
|
|
936
|
-
: isCallable$5(detection) ? fails$
|
|
941
|
+
: isCallable$5(detection) ? fails$8(detection)
|
|
937
942
|
: !!detection;
|
|
938
943
|
};
|
|
939
944
|
|
|
@@ -947,7 +952,7 @@ var POLYFILL = isForced$1.POLYFILL = 'P';
|
|
|
947
952
|
|
|
948
953
|
var isForced_1 = isForced$1;
|
|
949
954
|
|
|
950
|
-
var
|
|
955
|
+
var globalThis$5 = globalThis_1;
|
|
951
956
|
var getOwnPropertyDescriptor$2 = objectGetOwnPropertyDescriptor.f;
|
|
952
957
|
var createNonEnumerableProperty$2 = createNonEnumerableProperty$4;
|
|
953
958
|
var defineBuiltIn$3 = defineBuiltIn$4;
|
|
@@ -976,11 +981,11 @@ var _export = function (options, source) {
|
|
|
976
981
|
var STATIC = options.stat;
|
|
977
982
|
var FORCED, target, key, targetProperty, sourceProperty, descriptor;
|
|
978
983
|
if (GLOBAL) {
|
|
979
|
-
target =
|
|
984
|
+
target = globalThis$5;
|
|
980
985
|
} else if (STATIC) {
|
|
981
|
-
target =
|
|
986
|
+
target = globalThis$5[TARGET] || defineGlobalProperty(TARGET, {});
|
|
982
987
|
} else {
|
|
983
|
-
target =
|
|
988
|
+
target = globalThis$5[TARGET] && globalThis$5[TARGET].prototype;
|
|
984
989
|
}
|
|
985
990
|
if (target) for (key in source) {
|
|
986
991
|
sourceProperty = source[key];
|
|
@@ -1010,24 +1015,24 @@ var enumBugKeys$1 = enumBugKeys$3;
|
|
|
1010
1015
|
// `Object.keys` method
|
|
1011
1016
|
// https://tc39.es/ecma262/#sec-object.keys
|
|
1012
1017
|
// eslint-disable-next-line es/no-object-keys -- safe
|
|
1013
|
-
var objectKeys$
|
|
1018
|
+
var objectKeys$1 = Object.keys || function keys(O) {
|
|
1014
1019
|
return internalObjectKeys(O, enumBugKeys$1);
|
|
1015
1020
|
};
|
|
1016
1021
|
|
|
1017
|
-
var DESCRIPTORS$
|
|
1022
|
+
var DESCRIPTORS$2 = descriptors;
|
|
1018
1023
|
var V8_PROTOTYPE_DEFINE_BUG = v8PrototypeDefineBug;
|
|
1019
1024
|
var definePropertyModule = objectDefineProperty;
|
|
1020
1025
|
var anObject$4 = anObject$7;
|
|
1021
1026
|
var toIndexedObject$1 = toIndexedObject$5;
|
|
1022
|
-
var objectKeys
|
|
1027
|
+
var objectKeys = objectKeys$1;
|
|
1023
1028
|
|
|
1024
1029
|
// `Object.defineProperties` method
|
|
1025
1030
|
// https://tc39.es/ecma262/#sec-object.defineproperties
|
|
1026
1031
|
// eslint-disable-next-line es/no-object-defineproperties -- safe
|
|
1027
|
-
objectDefineProperties.f = DESCRIPTORS$
|
|
1032
|
+
objectDefineProperties.f = DESCRIPTORS$2 && !V8_PROTOTYPE_DEFINE_BUG ? Object.defineProperties : function defineProperties(O, Properties) {
|
|
1028
1033
|
anObject$4(O);
|
|
1029
1034
|
var props = toIndexedObject$1(Properties);
|
|
1030
|
-
var keys = objectKeys
|
|
1035
|
+
var keys = objectKeys(Properties);
|
|
1031
1036
|
var length = keys.length;
|
|
1032
1037
|
var index = 0;
|
|
1033
1038
|
var key;
|
|
@@ -1065,7 +1070,8 @@ var NullProtoObjectViaActiveX = function (activeXDocument) {
|
|
|
1065
1070
|
activeXDocument.write(scriptTag(''));
|
|
1066
1071
|
activeXDocument.close();
|
|
1067
1072
|
var temp = activeXDocument.parentWindow.Object;
|
|
1068
|
-
|
|
1073
|
+
// eslint-disable-next-line no-useless-assignment -- avoid memory leak
|
|
1074
|
+
activeXDocument = null;
|
|
1069
1075
|
return temp;
|
|
1070
1076
|
};
|
|
1071
1077
|
|
|
@@ -1125,7 +1131,7 @@ var objectCreate = Object.create || function create(O, Properties) {
|
|
|
1125
1131
|
|
|
1126
1132
|
var wellKnownSymbol$8 = wellKnownSymbol$a;
|
|
1127
1133
|
var create$2 = objectCreate;
|
|
1128
|
-
var defineProperty$
|
|
1134
|
+
var defineProperty$2 = objectDefineProperty.f;
|
|
1129
1135
|
|
|
1130
1136
|
var UNSCOPABLES = wellKnownSymbol$8('unscopables');
|
|
1131
1137
|
var ArrayPrototype = Array.prototype;
|
|
@@ -1133,7 +1139,7 @@ var ArrayPrototype = Array.prototype;
|
|
|
1133
1139
|
// Array.prototype[@@unscopables]
|
|
1134
1140
|
// https://tc39.es/ecma262/#sec-array.prototype-@@unscopables
|
|
1135
1141
|
if (ArrayPrototype[UNSCOPABLES] === undefined) {
|
|
1136
|
-
defineProperty$
|
|
1142
|
+
defineProperty$2(ArrayPrototype, UNSCOPABLES, {
|
|
1137
1143
|
configurable: true,
|
|
1138
1144
|
value: create$2(null)
|
|
1139
1145
|
});
|
|
@@ -1144,20 +1150,20 @@ var addToUnscopables$2 = function (key) {
|
|
|
1144
1150
|
ArrayPrototype[UNSCOPABLES][key] = true;
|
|
1145
1151
|
};
|
|
1146
1152
|
|
|
1147
|
-
var $$
|
|
1153
|
+
var $$6 = _export;
|
|
1148
1154
|
var $includes = arrayIncludes.includes;
|
|
1149
|
-
var fails$
|
|
1155
|
+
var fails$7 = fails$g;
|
|
1150
1156
|
var addToUnscopables$1 = addToUnscopables$2;
|
|
1151
1157
|
|
|
1152
1158
|
// FF99+ bug
|
|
1153
|
-
var BROKEN_ON_SPARSE = fails$
|
|
1159
|
+
var BROKEN_ON_SPARSE = fails$7(function () {
|
|
1154
1160
|
// eslint-disable-next-line es/no-array-prototype-includes -- detection
|
|
1155
1161
|
return !Array(1).includes();
|
|
1156
1162
|
});
|
|
1157
1163
|
|
|
1158
1164
|
// `Array.prototype.includes` method
|
|
1159
1165
|
// https://tc39.es/ecma262/#sec-array.prototype.includes
|
|
1160
|
-
$$
|
|
1166
|
+
$$6({ target: 'Array', proto: true, forced: BROKEN_ON_SPARSE }, {
|
|
1161
1167
|
includes: function includes(el /* , fromIndex = 0 */) {
|
|
1162
1168
|
return $includes(this, el, arguments.length > 1 ? arguments[1] : undefined);
|
|
1163
1169
|
}
|
|
@@ -1168,9 +1174,9 @@ addToUnscopables$1('includes');
|
|
|
1168
1174
|
|
|
1169
1175
|
var iterators = {};
|
|
1170
1176
|
|
|
1171
|
-
var fails$
|
|
1177
|
+
var fails$6 = fails$g;
|
|
1172
1178
|
|
|
1173
|
-
var correctPrototypeGetter = !fails$
|
|
1179
|
+
var correctPrototypeGetter = !fails$6(function () {
|
|
1174
1180
|
function F() { /* empty */ }
|
|
1175
1181
|
F.prototype.constructor = null;
|
|
1176
1182
|
// eslint-disable-next-line es/no-object-getprototypeof -- required for testing
|
|
@@ -1179,7 +1185,7 @@ var correctPrototypeGetter = !fails$7(function () {
|
|
|
1179
1185
|
|
|
1180
1186
|
var hasOwn$2 = hasOwnProperty_1;
|
|
1181
1187
|
var isCallable$4 = isCallable$f;
|
|
1182
|
-
var toObject$
|
|
1188
|
+
var toObject$1 = toObject$3;
|
|
1183
1189
|
var sharedKey = sharedKey$3;
|
|
1184
1190
|
var CORRECT_PROTOTYPE_GETTER = correctPrototypeGetter;
|
|
1185
1191
|
|
|
@@ -1191,7 +1197,7 @@ var ObjectPrototype = $Object$1.prototype;
|
|
|
1191
1197
|
// https://tc39.es/ecma262/#sec-object.getprototypeof
|
|
1192
1198
|
// eslint-disable-next-line es/no-object-getprototypeof -- safe
|
|
1193
1199
|
var objectGetPrototypeOf = CORRECT_PROTOTYPE_GETTER ? $Object$1.getPrototypeOf : function (O) {
|
|
1194
|
-
var object = toObject$
|
|
1200
|
+
var object = toObject$1(O);
|
|
1195
1201
|
if (hasOwn$2(object, IE_PROTO)) return object[IE_PROTO];
|
|
1196
1202
|
var constructor = object.constructor;
|
|
1197
1203
|
if (isCallable$4(constructor) && object instanceof constructor) {
|
|
@@ -1199,7 +1205,7 @@ var objectGetPrototypeOf = CORRECT_PROTOTYPE_GETTER ? $Object$1.getPrototypeOf :
|
|
|
1199
1205
|
} return object instanceof $Object$1 ? ObjectPrototype : null;
|
|
1200
1206
|
};
|
|
1201
1207
|
|
|
1202
|
-
var fails$
|
|
1208
|
+
var fails$5 = fails$g;
|
|
1203
1209
|
var isCallable$3 = isCallable$f;
|
|
1204
1210
|
var isObject$3 = isObject$9;
|
|
1205
1211
|
var getPrototypeOf$1 = objectGetPrototypeOf;
|
|
@@ -1224,7 +1230,7 @@ if ([].keys) {
|
|
|
1224
1230
|
}
|
|
1225
1231
|
}
|
|
1226
1232
|
|
|
1227
|
-
var NEW_ITERATOR_PROTOTYPE = !isObject$3(IteratorPrototype$2) || fails$
|
|
1233
|
+
var NEW_ITERATOR_PROTOTYPE = !isObject$3(IteratorPrototype$2) || fails$5(function () {
|
|
1228
1234
|
var test = {};
|
|
1229
1235
|
// FF44- legacy iterators case
|
|
1230
1236
|
return IteratorPrototype$2[ITERATOR$2].call(test) !== test;
|
|
@@ -1245,7 +1251,7 @@ var iteratorsCore = {
|
|
|
1245
1251
|
BUGGY_SAFARI_ITERATORS: BUGGY_SAFARI_ITERATORS$1
|
|
1246
1252
|
};
|
|
1247
1253
|
|
|
1248
|
-
var defineProperty$
|
|
1254
|
+
var defineProperty$1 = objectDefineProperty.f;
|
|
1249
1255
|
var hasOwn$1 = hasOwnProperty_1;
|
|
1250
1256
|
var wellKnownSymbol$6 = wellKnownSymbol$a;
|
|
1251
1257
|
|
|
@@ -1254,7 +1260,7 @@ var TO_STRING_TAG$2 = wellKnownSymbol$6('toStringTag');
|
|
|
1254
1260
|
var setToStringTag$3 = function (target, TAG, STATIC) {
|
|
1255
1261
|
if (target && !STATIC) target = target.prototype;
|
|
1256
1262
|
if (target && !hasOwn$1(target, TO_STRING_TAG$2)) {
|
|
1257
|
-
defineProperty$
|
|
1263
|
+
defineProperty$1(target, TO_STRING_TAG$2, { configurable: true, value: TAG });
|
|
1258
1264
|
}
|
|
1259
1265
|
};
|
|
1260
1266
|
|
|
@@ -1274,13 +1280,13 @@ var iteratorCreateConstructor = function (IteratorConstructor, NAME, next, ENUME
|
|
|
1274
1280
|
return IteratorConstructor;
|
|
1275
1281
|
};
|
|
1276
1282
|
|
|
1277
|
-
var uncurryThis$
|
|
1283
|
+
var uncurryThis$4 = functionUncurryThis;
|
|
1278
1284
|
var aCallable = aCallable$2;
|
|
1279
1285
|
|
|
1280
1286
|
var functionUncurryThisAccessor = function (object, key, method) {
|
|
1281
1287
|
try {
|
|
1282
1288
|
// eslint-disable-next-line es/no-object-getownpropertydescriptor -- safe
|
|
1283
|
-
return uncurryThis$
|
|
1289
|
+
return uncurryThis$4(aCallable(Object.getOwnPropertyDescriptor(object, key)[method]));
|
|
1284
1290
|
} catch (error) { /* empty */ }
|
|
1285
1291
|
};
|
|
1286
1292
|
|
|
@@ -1329,8 +1335,8 @@ var objectSetPrototypeOf = Object.setPrototypeOf || ('__proto__' in {} ? functio
|
|
|
1329
1335
|
};
|
|
1330
1336
|
}() : undefined);
|
|
1331
1337
|
|
|
1332
|
-
var $$
|
|
1333
|
-
var call$
|
|
1338
|
+
var $$5 = _export;
|
|
1339
|
+
var call$3 = functionCall;
|
|
1334
1340
|
var FunctionName = functionName;
|
|
1335
1341
|
var isCallable$2 = isCallable$f;
|
|
1336
1342
|
var createIteratorConstructor = iteratorCreateConstructor;
|
|
@@ -1402,7 +1408,7 @@ var iteratorDefine = function (Iterable, NAME, IteratorConstructor, next, DEFAUL
|
|
|
1402
1408
|
createNonEnumerableProperty$1(IterablePrototype, 'name', VALUES);
|
|
1403
1409
|
} else {
|
|
1404
1410
|
INCORRECT_VALUES_NAME = true;
|
|
1405
|
-
defaultIterator = function values() { return call$
|
|
1411
|
+
defaultIterator = function values() { return call$3(nativeIterator, this); };
|
|
1406
1412
|
}
|
|
1407
1413
|
}
|
|
1408
1414
|
|
|
@@ -1417,7 +1423,7 @@ var iteratorDefine = function (Iterable, NAME, IteratorConstructor, next, DEFAUL
|
|
|
1417
1423
|
if (BUGGY_SAFARI_ITERATORS || INCORRECT_VALUES_NAME || !(KEY in IterablePrototype)) {
|
|
1418
1424
|
defineBuiltIn$1(IterablePrototype, KEY, methods[KEY]);
|
|
1419
1425
|
}
|
|
1420
|
-
} else $$
|
|
1426
|
+
} else $$5({ target: NAME, proto: true, forced: BUGGY_SAFARI_ITERATORS || INCORRECT_VALUES_NAME }, methods);
|
|
1421
1427
|
}
|
|
1422
1428
|
|
|
1423
1429
|
// define iterator
|
|
@@ -1439,10 +1445,10 @@ var toIndexedObject = toIndexedObject$5;
|
|
|
1439
1445
|
var addToUnscopables = addToUnscopables$2;
|
|
1440
1446
|
var Iterators = iterators;
|
|
1441
1447
|
var InternalStateModule = internalState;
|
|
1442
|
-
var defineProperty
|
|
1448
|
+
var defineProperty = objectDefineProperty.f;
|
|
1443
1449
|
var defineIterator = iteratorDefine;
|
|
1444
1450
|
var createIterResultObject = createIterResultObject$1;
|
|
1445
|
-
var DESCRIPTORS$
|
|
1451
|
+
var DESCRIPTORS$1 = descriptors;
|
|
1446
1452
|
|
|
1447
1453
|
var ARRAY_ITERATOR = 'Array Iterator';
|
|
1448
1454
|
var setInternalState = InternalStateModule.set;
|
|
@@ -1472,7 +1478,7 @@ var es_array_iterator = defineIterator(Array, 'Array', function (iterated, kind)
|
|
|
1472
1478
|
var target = state.target;
|
|
1473
1479
|
var index = state.index++;
|
|
1474
1480
|
if (!target || index >= target.length) {
|
|
1475
|
-
state.target =
|
|
1481
|
+
state.target = null;
|
|
1476
1482
|
return createIterResultObject(undefined, true);
|
|
1477
1483
|
}
|
|
1478
1484
|
switch (state.kind) {
|
|
@@ -1492,77 +1498,10 @@ addToUnscopables('values');
|
|
|
1492
1498
|
addToUnscopables('entries');
|
|
1493
1499
|
|
|
1494
1500
|
// V8 ~ Chrome 45- bug
|
|
1495
|
-
if (DESCRIPTORS$
|
|
1496
|
-
defineProperty
|
|
1501
|
+
if (DESCRIPTORS$1 && values.name !== 'values') try {
|
|
1502
|
+
defineProperty(values, 'name', { value: 'values' });
|
|
1497
1503
|
} catch (error) { /* empty */ }
|
|
1498
1504
|
|
|
1499
|
-
var DESCRIPTORS$1 = descriptors;
|
|
1500
|
-
var uncurryThis$4 = functionUncurryThis;
|
|
1501
|
-
var call$3 = functionCall;
|
|
1502
|
-
var fails$5 = fails$h;
|
|
1503
|
-
var objectKeys = objectKeys$2;
|
|
1504
|
-
var getOwnPropertySymbolsModule = objectGetOwnPropertySymbols;
|
|
1505
|
-
var propertyIsEnumerableModule = objectPropertyIsEnumerable;
|
|
1506
|
-
var toObject$1 = toObject$4;
|
|
1507
|
-
var IndexedObject = indexedObject;
|
|
1508
|
-
|
|
1509
|
-
// eslint-disable-next-line es/no-object-assign -- safe
|
|
1510
|
-
var $assign = Object.assign;
|
|
1511
|
-
// eslint-disable-next-line es/no-object-defineproperty -- required for testing
|
|
1512
|
-
var defineProperty = Object.defineProperty;
|
|
1513
|
-
var concat = uncurryThis$4([].concat);
|
|
1514
|
-
|
|
1515
|
-
// `Object.assign` method
|
|
1516
|
-
// https://tc39.es/ecma262/#sec-object.assign
|
|
1517
|
-
var objectAssign = !$assign || fails$5(function () {
|
|
1518
|
-
// should have correct order of operations (Edge bug)
|
|
1519
|
-
if (DESCRIPTORS$1 && $assign({ b: 1 }, $assign(defineProperty({}, 'a', {
|
|
1520
|
-
enumerable: true,
|
|
1521
|
-
get: function () {
|
|
1522
|
-
defineProperty(this, 'b', {
|
|
1523
|
-
value: 3,
|
|
1524
|
-
enumerable: false
|
|
1525
|
-
});
|
|
1526
|
-
}
|
|
1527
|
-
}), { b: 2 })).b !== 1) return true;
|
|
1528
|
-
// should work with symbols and should have deterministic property order (V8 bug)
|
|
1529
|
-
var A = {};
|
|
1530
|
-
var B = {};
|
|
1531
|
-
// eslint-disable-next-line es/no-symbol -- safe
|
|
1532
|
-
var symbol = Symbol('assign detection');
|
|
1533
|
-
var alphabet = 'abcdefghijklmnopqrst';
|
|
1534
|
-
A[symbol] = 7;
|
|
1535
|
-
alphabet.split('').forEach(function (chr) { B[chr] = chr; });
|
|
1536
|
-
return $assign({}, A)[symbol] !== 7 || objectKeys($assign({}, B)).join('') !== alphabet;
|
|
1537
|
-
}) ? function assign(target, source) { // eslint-disable-line no-unused-vars -- required for `.length`
|
|
1538
|
-
var T = toObject$1(target);
|
|
1539
|
-
var argumentsLength = arguments.length;
|
|
1540
|
-
var index = 1;
|
|
1541
|
-
var getOwnPropertySymbols = getOwnPropertySymbolsModule.f;
|
|
1542
|
-
var propertyIsEnumerable = propertyIsEnumerableModule.f;
|
|
1543
|
-
while (argumentsLength > index) {
|
|
1544
|
-
var S = IndexedObject(arguments[index++]);
|
|
1545
|
-
var keys = getOwnPropertySymbols ? concat(objectKeys(S), getOwnPropertySymbols(S)) : objectKeys(S);
|
|
1546
|
-
var length = keys.length;
|
|
1547
|
-
var j = 0;
|
|
1548
|
-
var key;
|
|
1549
|
-
while (length > j) {
|
|
1550
|
-
key = keys[j++];
|
|
1551
|
-
if (!DESCRIPTORS$1 || call$3(propertyIsEnumerable, S, key)) T[key] = S[key];
|
|
1552
|
-
}
|
|
1553
|
-
} return T;
|
|
1554
|
-
} : $assign;
|
|
1555
|
-
|
|
1556
|
-
var $$5 = _export;
|
|
1557
|
-
var assign = objectAssign;
|
|
1558
|
-
|
|
1559
|
-
// `Object.assign` method
|
|
1560
|
-
// https://tc39.es/ecma262/#sec-object.assign
|
|
1561
|
-
// eslint-disable-next-line es/no-object-assign -- required for testing
|
|
1562
|
-
$$5({ target: 'Object', stat: true, arity: 2, forced: Object.assign !== assign }, {
|
|
1563
|
-
assign: assign
|
|
1564
|
-
});
|
|
1565
|
-
|
|
1566
1505
|
var wellKnownSymbol$4 = wellKnownSymbol$a;
|
|
1567
1506
|
|
|
1568
1507
|
var TO_STRING_TAG$1 = wellKnownSymbol$4('toStringTag');
|
|
@@ -1646,7 +1585,7 @@ var PROPER_FUNCTION_NAME = functionName.PROPER;
|
|
|
1646
1585
|
var defineBuiltIn = defineBuiltIn$4;
|
|
1647
1586
|
var anObject$1 = anObject$7;
|
|
1648
1587
|
var $toString = toString$4;
|
|
1649
|
-
var fails$4 = fails$
|
|
1588
|
+
var fails$4 = fails$g;
|
|
1650
1589
|
var getRegExpFlags = regexpGetFlags;
|
|
1651
1590
|
|
|
1652
1591
|
var TO_STRING = 'toString';
|
|
@@ -1772,7 +1711,7 @@ var DOMTokenListPrototype$1 = classList && classList.constructor && classList.co
|
|
|
1772
1711
|
|
|
1773
1712
|
var domTokenListPrototype = DOMTokenListPrototype$1 === Object.prototype ? undefined : DOMTokenListPrototype$1;
|
|
1774
1713
|
|
|
1775
|
-
var
|
|
1714
|
+
var globalThis$4 = globalThis_1;
|
|
1776
1715
|
var DOMIterables = domIterables;
|
|
1777
1716
|
var DOMTokenListPrototype = domTokenListPrototype;
|
|
1778
1717
|
var ArrayIteratorMethods = es_array_iterator;
|
|
@@ -1804,7 +1743,7 @@ var handlePrototype = function (CollectionPrototype, COLLECTION_NAME) {
|
|
|
1804
1743
|
};
|
|
1805
1744
|
|
|
1806
1745
|
for (var COLLECTION_NAME in DOMIterables) {
|
|
1807
|
-
handlePrototype(
|
|
1746
|
+
handlePrototype(globalThis$4[COLLECTION_NAME] && globalThis$4[COLLECTION_NAME].prototype, COLLECTION_NAME);
|
|
1808
1747
|
}
|
|
1809
1748
|
|
|
1810
1749
|
handlePrototype(DOMTokenListPrototype, 'DOMTokenList');
|
|
@@ -1851,12 +1790,17 @@ const KeyboardLayoutsByInputType = {
|
|
|
1851
1790
|
// number: KeyboardLayout.NUMERIC,
|
|
1852
1791
|
tel: KeyboardLayout.NUMERIC,
|
|
1853
1792
|
date: KeyboardLayout.NUMERIC,
|
|
1793
|
+
// Never tested, might not work very well
|
|
1854
1794
|
week: KeyboardLayout.NUMERIC,
|
|
1795
|
+
// Never tested, might not work very well
|
|
1855
1796
|
text: KeyboardLayout.TEXT,
|
|
1856
1797
|
password: KeyboardLayout.TEXT,
|
|
1857
1798
|
"datetime-local": KeyboardLayout.TEXT,
|
|
1799
|
+
// Never tested, might not work very well
|
|
1858
1800
|
month: KeyboardLayout.TEXT,
|
|
1801
|
+
// Never tested, might not work very well
|
|
1859
1802
|
time: KeyboardLayout.TEXT,
|
|
1803
|
+
// Never tested, might not work very well
|
|
1860
1804
|
email: KeyboardLayout.TEXT,
|
|
1861
1805
|
search: KeyboardLayout.TEXT,
|
|
1862
1806
|
url: KeyboardLayout.TEXT,
|
|
@@ -1957,7 +1901,7 @@ const VirtualKeyboard = () => {
|
|
|
1957
1901
|
(_a = virtualKeyboardRef.current) === null || _a === void 0 ? void 0 : _a.setInput(focusedTextInput.value);
|
|
1958
1902
|
(_b = virtualKeyboardRef.current) === null || _b === void 0 ? void 0 : _b.setCaretPosition(focusedTextInput.selectionStart, focusedTextInput.selectionEnd);
|
|
1959
1903
|
};
|
|
1960
|
-
/** Without adding a click event listener, moving the caret by tapping somewhere on your input does not work correctly with inputs in a shadow dom.
|
|
1904
|
+
/** Without adding a click event listener, moving the caret by tapping somewhere on your input does not work correctly with inputs in a shadow dom.
|
|
1961
1905
|
* the caret position needs to be explicitly set on click */
|
|
1962
1906
|
focusedTextInput.addEventListener("input", updateKeyboardInput, {
|
|
1963
1907
|
capture: true
|
|
@@ -1985,7 +1929,7 @@ const VirtualKeyboard = () => {
|
|
|
1985
1929
|
return;
|
|
1986
1930
|
}
|
|
1987
1931
|
if (String(focusedTextInput.className).includes("monaco")) {
|
|
1988
|
-
/* skip: MonacoEditor textarea input actions via VirtualKeyboard are
|
|
1932
|
+
/* skip: MonacoEditor textarea input actions via VirtualKeyboard are
|
|
1989
1933
|
* handled below using the monacoEventEmitter + editor.trigger(...) calls. */
|
|
1990
1934
|
return;
|
|
1991
1935
|
}
|
|
@@ -2015,9 +1959,8 @@ const VirtualKeyboard = () => {
|
|
|
2015
1959
|
if (!isKeyboardVisible) {
|
|
2016
1960
|
return null;
|
|
2017
1961
|
}
|
|
2018
|
-
return jsx("div",
|
|
2019
|
-
id: "virtual_keyboard"
|
|
2020
|
-
}, {
|
|
1962
|
+
return jsx("div", {
|
|
1963
|
+
id: "virtual_keyboard",
|
|
2021
1964
|
children: jsx(Keyboard, {
|
|
2022
1965
|
keyboardRef: ref => {
|
|
2023
1966
|
virtualKeyboardRef.current = ref;
|
|
@@ -2050,13 +1993,13 @@ const VirtualKeyboard = () => {
|
|
|
2050
1993
|
display: KeyboardDisplay,
|
|
2051
1994
|
newLineOnEnter: true
|
|
2052
1995
|
})
|
|
2053
|
-
})
|
|
1996
|
+
});
|
|
2054
1997
|
};
|
|
2055
|
-
/**
|
|
2056
|
-
* Sets the input value in a way that can be picked up by React if the element is managed by React.
|
|
2057
|
-
*
|
|
2058
|
-
* I don't understand any of this, but other people do
|
|
2059
|
-
* - https://stackoverflow.com/questions/42550341/react-trigger-onchange-if-input-value-is-changing-by-state/59939017#59939017
|
|
1998
|
+
/**
|
|
1999
|
+
* Sets the input value in a way that can be picked up by React if the element is managed by React.
|
|
2000
|
+
*
|
|
2001
|
+
* I don't understand any of this, but other people do
|
|
2002
|
+
* - https://stackoverflow.com/questions/42550341/react-trigger-onchange-if-input-value-is-changing-by-state/59939017#59939017
|
|
2060
2003
|
*/
|
|
2061
2004
|
function setInputValue(inputElement, inputValue, caretPosition) {
|
|
2062
2005
|
var _a, _b;
|
|
@@ -2208,11 +2151,11 @@ var doesNotExceedSafeInteger$1 = function (it) {
|
|
|
2208
2151
|
};
|
|
2209
2152
|
|
|
2210
2153
|
var $$2 = _export;
|
|
2211
|
-
var toObject = toObject$
|
|
2154
|
+
var toObject = toObject$3;
|
|
2212
2155
|
var lengthOfArrayLike = lengthOfArrayLike$2;
|
|
2213
2156
|
var setArrayLength = arraySetLength;
|
|
2214
2157
|
var doesNotExceedSafeInteger = doesNotExceedSafeInteger$1;
|
|
2215
|
-
var fails$3 = fails$
|
|
2158
|
+
var fails$3 = fails$g;
|
|
2216
2159
|
|
|
2217
2160
|
var INCORRECT_TO_LENGTH = fails$3(function () {
|
|
2218
2161
|
return [].push.call({ length: 0x100000000 }, 1) !== 4294967297;
|
|
@@ -2249,11 +2192,11 @@ $$2({ target: 'Array', proto: true, arity: 1, forced: FORCED }, {
|
|
|
2249
2192
|
}
|
|
2250
2193
|
});
|
|
2251
2194
|
|
|
2252
|
-
var fails$2 = fails$
|
|
2253
|
-
var
|
|
2195
|
+
var fails$2 = fails$g;
|
|
2196
|
+
var globalThis$3 = globalThis_1;
|
|
2254
2197
|
|
|
2255
2198
|
// babel-minify and Closure Compiler transpiles RegExp('a', 'y') -> /a/y and it causes SyntaxError
|
|
2256
|
-
var $RegExp$2 =
|
|
2199
|
+
var $RegExp$2 = globalThis$3.RegExp;
|
|
2257
2200
|
|
|
2258
2201
|
var UNSUPPORTED_Y$1 = fails$2(function () {
|
|
2259
2202
|
var re = $RegExp$2('a', 'y');
|
|
@@ -2280,22 +2223,22 @@ var regexpStickyHelpers = {
|
|
|
2280
2223
|
UNSUPPORTED_Y: UNSUPPORTED_Y$1
|
|
2281
2224
|
};
|
|
2282
2225
|
|
|
2283
|
-
var fails$1 = fails$
|
|
2284
|
-
var
|
|
2226
|
+
var fails$1 = fails$g;
|
|
2227
|
+
var globalThis$2 = globalThis_1;
|
|
2285
2228
|
|
|
2286
2229
|
// babel-minify and Closure Compiler transpiles RegExp('.', 's') -> /./s and it causes SyntaxError
|
|
2287
|
-
var $RegExp$1 =
|
|
2230
|
+
var $RegExp$1 = globalThis$2.RegExp;
|
|
2288
2231
|
|
|
2289
2232
|
var regexpUnsupportedDotAll = fails$1(function () {
|
|
2290
2233
|
var re = $RegExp$1('.', 's');
|
|
2291
2234
|
return !(re.dotAll && re.test('\n') && re.flags === 's');
|
|
2292
2235
|
});
|
|
2293
2236
|
|
|
2294
|
-
var fails = fails$
|
|
2295
|
-
var
|
|
2237
|
+
var fails = fails$g;
|
|
2238
|
+
var globalThis$1 = globalThis_1;
|
|
2296
2239
|
|
|
2297
2240
|
// babel-minify and Closure Compiler transpiles RegExp('(?<a>b)', 'g') -> /(?<a>b)/g and it causes SyntaxError
|
|
2298
|
-
var $RegExp =
|
|
2241
|
+
var $RegExp = globalThis$1.RegExp;
|
|
2299
2242
|
|
|
2300
2243
|
var regexpUnsupportedNcg = fails(function () {
|
|
2301
2244
|
var re = $RegExp('(?<a>b)', 'g');
|
|
@@ -2549,8 +2492,7 @@ const getMqttWsUrl = () => __awaiter(void 0, void 0, void 0, function* () {
|
|
|
2549
2492
|
});
|
|
2550
2493
|
const connectToMqttAndGetClient = () => __awaiter(void 0, void 0, void 0, function* () {
|
|
2551
2494
|
const websocketUrl = yield getMqttWsUrl();
|
|
2552
|
-
|
|
2553
|
-
return mqttClient;
|
|
2495
|
+
return new MqttClient(websocketUrl, () => console.log("Connected to MQTT Broker"));
|
|
2554
2496
|
});
|
|
2555
2497
|
const getMachineCodeProcessHttpUrl = processName => {
|
|
2556
2498
|
const executionEngineHttpUrl = getExecutionEngineHttpUrl();
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@vention/machine-logic-ui-sdk",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.3.0",
|
|
4
4
|
"repository": {
|
|
5
5
|
"type": "git",
|
|
6
6
|
"url": "https://github.com/VentionCo/machine-cloud.git"
|
|
@@ -11,7 +11,7 @@
|
|
|
11
11
|
},
|
|
12
12
|
"license": "MIT",
|
|
13
13
|
"dependencies": {
|
|
14
|
-
"react-simple-keyboard": "3.7.
|
|
14
|
+
"react-simple-keyboard": "3.7.153",
|
|
15
15
|
"mqtt": "5.10.1"
|
|
16
16
|
},
|
|
17
17
|
"peerDependencies": {
|
package/src/index.d.ts
CHANGED
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
export * from "./lib/components/virtual-keyboard/virtual-keyboard";
|
|
2
|
-
export * from "./lib/utils/machine-logic-ui-sdk-utils";
|
|
3
|
-
export * from "./lib/mqtt-browser/mqtt-client";
|
|
1
|
+
export * from "./lib/components/virtual-keyboard/virtual-keyboard";
|
|
2
|
+
export * from "./lib/utils/machine-logic-ui-sdk-utils";
|
|
3
|
+
export * from "./lib/mqtt-browser/mqtt-client";
|
|
@@ -1,41 +1,41 @@
|
|
|
1
|
-
import { KeyboardLayoutObject } from "react-simple-keyboard";
|
|
2
|
-
export declare enum KeyboardLayoutName {
|
|
3
|
-
DEFAULT = "default",
|
|
4
|
-
SHIFT = "shift"
|
|
5
|
-
}
|
|
6
|
-
export declare enum KeyboardKey {
|
|
7
|
-
SHIFT = "{shift}",
|
|
8
|
-
CAPS_LOCK = "{lock}",
|
|
9
|
-
BACKSPACE = "{bksp}",
|
|
10
|
-
ENTER = "{enter}",
|
|
11
|
-
SUBMIT = "{submit}",
|
|
12
|
-
TAB = "{tab}",
|
|
13
|
-
SPACE = "{space}"
|
|
14
|
-
}
|
|
15
|
-
export declare const KeyboardLayout: {
|
|
16
|
-
readonly TEXT: KeyboardLayoutObject;
|
|
17
|
-
readonly NUMERIC: KeyboardLayoutObject;
|
|
18
|
-
};
|
|
19
|
-
export declare const KeyboardDisplay: {
|
|
20
|
-
readonly "{shift}": "shift ⇧";
|
|
21
|
-
readonly "{lock}": "caps lock ⇪";
|
|
22
|
-
readonly "{bksp}": "backspace ⌫";
|
|
23
|
-
readonly "{enter}": "enter ↵";
|
|
24
|
-
readonly "{submit}": "submit ✓";
|
|
25
|
-
readonly "{tab}": "tab ⇥";
|
|
26
|
-
readonly "{space}": "space";
|
|
27
|
-
};
|
|
28
|
-
export declare const KeyboardLayoutsByInputType: {
|
|
29
|
-
readonly tel: KeyboardLayoutObject;
|
|
30
|
-
readonly date: KeyboardLayoutObject;
|
|
31
|
-
readonly week: KeyboardLayoutObject;
|
|
32
|
-
readonly text: KeyboardLayoutObject;
|
|
33
|
-
readonly password: KeyboardLayoutObject;
|
|
34
|
-
readonly "datetime-local": KeyboardLayoutObject;
|
|
35
|
-
readonly month: KeyboardLayoutObject;
|
|
36
|
-
readonly time: KeyboardLayoutObject;
|
|
37
|
-
readonly email: KeyboardLayoutObject;
|
|
38
|
-
readonly search: KeyboardLayoutObject;
|
|
39
|
-
readonly url: KeyboardLayoutObject;
|
|
40
|
-
readonly textarea: KeyboardLayoutObject;
|
|
41
|
-
};
|
|
1
|
+
import { KeyboardLayoutObject } from "react-simple-keyboard";
|
|
2
|
+
export declare enum KeyboardLayoutName {
|
|
3
|
+
DEFAULT = "default",
|
|
4
|
+
SHIFT = "shift"
|
|
5
|
+
}
|
|
6
|
+
export declare enum KeyboardKey {
|
|
7
|
+
SHIFT = "{shift}",
|
|
8
|
+
CAPS_LOCK = "{lock}",
|
|
9
|
+
BACKSPACE = "{bksp}",
|
|
10
|
+
ENTER = "{enter}",
|
|
11
|
+
SUBMIT = "{submit}",
|
|
12
|
+
TAB = "{tab}",
|
|
13
|
+
SPACE = "{space}"
|
|
14
|
+
}
|
|
15
|
+
export declare const KeyboardLayout: {
|
|
16
|
+
readonly TEXT: KeyboardLayoutObject;
|
|
17
|
+
readonly NUMERIC: KeyboardLayoutObject;
|
|
18
|
+
};
|
|
19
|
+
export declare const KeyboardDisplay: {
|
|
20
|
+
readonly "{shift}": "shift ⇧";
|
|
21
|
+
readonly "{lock}": "caps lock ⇪";
|
|
22
|
+
readonly "{bksp}": "backspace ⌫";
|
|
23
|
+
readonly "{enter}": "enter ↵";
|
|
24
|
+
readonly "{submit}": "submit ✓";
|
|
25
|
+
readonly "{tab}": "tab ⇥";
|
|
26
|
+
readonly "{space}": "space";
|
|
27
|
+
};
|
|
28
|
+
export declare const KeyboardLayoutsByInputType: {
|
|
29
|
+
readonly tel: KeyboardLayoutObject;
|
|
30
|
+
readonly date: KeyboardLayoutObject;
|
|
31
|
+
readonly week: KeyboardLayoutObject;
|
|
32
|
+
readonly text: KeyboardLayoutObject;
|
|
33
|
+
readonly password: KeyboardLayoutObject;
|
|
34
|
+
readonly "datetime-local": KeyboardLayoutObject;
|
|
35
|
+
readonly month: KeyboardLayoutObject;
|
|
36
|
+
readonly time: KeyboardLayoutObject;
|
|
37
|
+
readonly email: KeyboardLayoutObject;
|
|
38
|
+
readonly search: KeyboardLayoutObject;
|
|
39
|
+
readonly url: KeyboardLayoutObject;
|
|
40
|
+
readonly textarea: KeyboardLayoutObject;
|
|
41
|
+
};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/// <reference types="react" />
|
|
2
|
-
import "react-simple-keyboard/build/css/index.css";
|
|
3
|
-
import "./virtual-keyboard.css";
|
|
4
|
-
export declare const VirtualKeyboard: () => JSX.Element | null;
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
import "react-simple-keyboard/build/css/index.css";
|
|
3
|
+
import "./virtual-keyboard.css";
|
|
4
|
+
export declare const VirtualKeyboard: () => JSX.Element | null;
|
|
@@ -1,12 +1,12 @@
|
|
|
1
|
-
export interface Callback {
|
|
2
|
-
(topic: string, message: string): void;
|
|
3
|
-
}
|
|
4
|
-
export declare class MqttClient {
|
|
5
|
-
private mqttClient?;
|
|
6
|
-
private subscriptions;
|
|
7
|
-
constructor(url: string, connectCallback?: () => void);
|
|
8
|
-
connect(url: string, connectCallback?: () => void): void;
|
|
9
|
-
subscribe(topic: string, regex: RegExp, cb: Callback): void;
|
|
10
|
-
unsubscribe(topic: string, regex: RegExp, cb: Callback): void;
|
|
11
|
-
publish(topic: string, message: string, retain?: boolean): void;
|
|
12
|
-
}
|
|
1
|
+
export interface Callback {
|
|
2
|
+
(topic: string, message: string): void;
|
|
3
|
+
}
|
|
4
|
+
export declare class MqttClient {
|
|
5
|
+
private mqttClient?;
|
|
6
|
+
private subscriptions;
|
|
7
|
+
constructor(url: string, connectCallback?: () => void);
|
|
8
|
+
connect(url: string, connectCallback?: () => void): void;
|
|
9
|
+
subscribe(topic: string, regex: RegExp, cb: Callback): void;
|
|
10
|
+
unsubscribe(topic: string, regex: RegExp, cb: Callback): void;
|
|
11
|
+
publish(topic: string, message: string, retain?: boolean): void;
|
|
12
|
+
}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { MqttClient } from "../mqtt-browser/mqtt-client";
|
|
2
|
-
export declare const isTouchScreenDevice: () => boolean;
|
|
3
|
-
export declare const isOnEdge: () => boolean;
|
|
4
|
-
export declare const getExecutionEngineHttpUrl: () => string;
|
|
5
|
-
export declare const getMqttWsUrl: () => Promise<string>;
|
|
6
|
-
export declare const connectToMqttAndGetClient: () => Promise<MqttClient>;
|
|
7
|
-
export declare const getMachineCodeProcessHttpUrl: (processName: string) => string;
|
|
1
|
+
import { MqttClient } from "../mqtt-browser/mqtt-client";
|
|
2
|
+
export declare const isTouchScreenDevice: () => boolean;
|
|
3
|
+
export declare const isOnEdge: () => boolean;
|
|
4
|
+
export declare const getExecutionEngineHttpUrl: () => string;
|
|
5
|
+
export declare const getMqttWsUrl: () => Promise<string>;
|
|
6
|
+
export declare const connectToMqttAndGetClient: () => Promise<MqttClient>;
|
|
7
|
+
export declare const getMachineCodeProcessHttpUrl: (processName: string) => string;
|