@everymatrix/general-input 1.22.0 → 1.22.1
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/cjs/checkbox-group-input_10.cjs.entry.js +27763 -17684
- package/dist/components/active-mixin.js +97 -7
- package/dist/components/checkbox-group-input2.js +2863 -390
- package/dist/components/date-input2.js +6683 -2984
- package/dist/components/field-mixin.js +2423 -3723
- package/dist/components/input-field-shared-styles.js +993 -242
- package/dist/components/password-input2.js +1870 -94
- package/dist/components/vaadin-button.js +1531 -157
- package/dist/components/vaadin-combo-box.js +2655 -783
- package/dist/components/virtual-keyboard-controller.js +1163 -1742
- package/dist/esm/checkbox-group-input_10.entry.js +27763 -17684
- package/dist/general-input/general-input.esm.js +1 -1
- package/dist/general-input/p-983d18d7.entry.js +4143 -0
- package/package.json +9 -6
- package/dist/components/pattern-mixin.js +0 -85
- package/dist/general-input/p-553c91f3.entry.js +0 -3583
- /package/dist/types/Users/{catalin.poclid/Documents/work → adrian.pripon/Documents/Work}/widgets-stencil/packages/general-input/.stencil/packages/general-input/stencil.config.d.ts +0 -0
|
@@ -1,4 +1,94 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { a as DisabledMixin, K as KeyboardMixin } from './field-mixin.js';
|
|
2
|
+
|
|
3
|
+
/**
|
|
4
|
+
* @license
|
|
5
|
+
* Copyright (c) 2017 The Polymer Project Authors. All rights reserved.
|
|
6
|
+
* This code may only be used under the BSD style license found at http://polymer.github.io/LICENSE.txt
|
|
7
|
+
* The complete set of authors may be found at http://polymer.github.io/AUTHORS.txt
|
|
8
|
+
* The complete set of contributors may be found at http://polymer.github.io/CONTRIBUTORS.txt
|
|
9
|
+
* Code distributed by Google as part of the polymer project is also
|
|
10
|
+
* subject to an additional IP rights grant found at http://polymer.github.io/PATENTS.txt
|
|
11
|
+
*/
|
|
12
|
+
|
|
13
|
+
/**
|
|
14
|
+
* @fileoverview
|
|
15
|
+
*
|
|
16
|
+
* This module provides a number of strategies for enqueuing asynchronous
|
|
17
|
+
* tasks. Each sub-module provides a standard `run(fn)` interface that returns a
|
|
18
|
+
* handle, and a `cancel(handle)` interface for canceling async tasks before
|
|
19
|
+
* they run.
|
|
20
|
+
*
|
|
21
|
+
* @summary Module that provides a number of strategies for enqueuing
|
|
22
|
+
* asynchronous tasks.
|
|
23
|
+
*/
|
|
24
|
+
|
|
25
|
+
let microtaskCurrHandle = 0;
|
|
26
|
+
let microtaskLastHandle = 0;
|
|
27
|
+
const microtaskCallbacks = [];
|
|
28
|
+
let microtaskScheduled = false;
|
|
29
|
+
|
|
30
|
+
function microtaskFlush() {
|
|
31
|
+
microtaskScheduled = false;
|
|
32
|
+
const len = microtaskCallbacks.length;
|
|
33
|
+
for (let i = 0; i < len; i++) {
|
|
34
|
+
const cb = microtaskCallbacks[i];
|
|
35
|
+
if (cb) {
|
|
36
|
+
try {
|
|
37
|
+
cb();
|
|
38
|
+
} catch (e) {
|
|
39
|
+
setTimeout(() => {
|
|
40
|
+
throw e;
|
|
41
|
+
});
|
|
42
|
+
}
|
|
43
|
+
}
|
|
44
|
+
}
|
|
45
|
+
microtaskCallbacks.splice(0, len);
|
|
46
|
+
microtaskLastHandle += len;
|
|
47
|
+
}
|
|
48
|
+
|
|
49
|
+
/**
|
|
50
|
+
* Async interface for enqueuing callbacks that run at microtask timing.
|
|
51
|
+
*
|
|
52
|
+
* @namespace
|
|
53
|
+
* @summary Async interface for enqueuing callbacks that run at microtask
|
|
54
|
+
* timing.
|
|
55
|
+
*/
|
|
56
|
+
const microTask = {
|
|
57
|
+
/**
|
|
58
|
+
* Enqueues a function called at microtask timing.
|
|
59
|
+
*
|
|
60
|
+
* @memberof microTask
|
|
61
|
+
* @param {!Function=} callback Callback to run
|
|
62
|
+
* @return {number} Handle used for canceling task
|
|
63
|
+
*/
|
|
64
|
+
run(callback) {
|
|
65
|
+
if (!microtaskScheduled) {
|
|
66
|
+
microtaskScheduled = true;
|
|
67
|
+
queueMicrotask(() => microtaskFlush());
|
|
68
|
+
}
|
|
69
|
+
microtaskCallbacks.push(callback);
|
|
70
|
+
const result = microtaskCurrHandle;
|
|
71
|
+
microtaskCurrHandle += 1;
|
|
72
|
+
return result;
|
|
73
|
+
},
|
|
74
|
+
|
|
75
|
+
/**
|
|
76
|
+
* Cancels a previously enqueued `microTask` callback.
|
|
77
|
+
*
|
|
78
|
+
* @memberof microTask
|
|
79
|
+
* @param {number} handle Handle returned from `run` of callback to cancel
|
|
80
|
+
* @return {void}
|
|
81
|
+
*/
|
|
82
|
+
cancel(handle) {
|
|
83
|
+
const idx = handle - microtaskLastHandle;
|
|
84
|
+
if (idx >= 0) {
|
|
85
|
+
if (!microtaskCallbacks[idx]) {
|
|
86
|
+
throw new Error(`invalid async handle: ${handle}`);
|
|
87
|
+
}
|
|
88
|
+
microtaskCallbacks[idx] = null;
|
|
89
|
+
}
|
|
90
|
+
},
|
|
91
|
+
};
|
|
2
92
|
|
|
3
93
|
/**
|
|
4
94
|
@license
|
|
@@ -77,7 +167,7 @@ function PASSIVE_TOUCH(eventName) {
|
|
|
77
167
|
}
|
|
78
168
|
|
|
79
169
|
// Check for touch-only devices
|
|
80
|
-
const IS_TOUCH_ONLY = navigator.userAgent.match(/iP(?:[oa]d|hone)|Android/);
|
|
170
|
+
const IS_TOUCH_ONLY = navigator.userAgent.match(/iP(?:[oa]d|hone)|Android/u);
|
|
81
171
|
|
|
82
172
|
// Defined at https://html.spec.whatwg.org/multipage/form-control-infrastructure.html#enabling-and-disabling-form-controls:-the-disabled-attribute
|
|
83
173
|
/** @type {!Object<boolean>} */
|
|
@@ -406,9 +496,9 @@ function _add(node, evType, handler) {
|
|
|
406
496
|
*/
|
|
407
497
|
function register(recog) {
|
|
408
498
|
recognizers.push(recog);
|
|
409
|
-
|
|
410
|
-
gestures[
|
|
411
|
-
}
|
|
499
|
+
recog.emits.forEach((emit) => {
|
|
500
|
+
gestures[emit] = recog;
|
|
501
|
+
});
|
|
412
502
|
}
|
|
413
503
|
|
|
414
504
|
/**
|
|
@@ -870,7 +960,7 @@ function trackForward(info, e, preventer) {
|
|
|
870
960
|
|
|
871
961
|
/**
|
|
872
962
|
* @license
|
|
873
|
-
* Copyright (c) 2021 -
|
|
963
|
+
* Copyright (c) 2021 - 2023 Vaadin Ltd.
|
|
874
964
|
* This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
|
|
875
965
|
*/
|
|
876
966
|
|
|
@@ -972,4 +1062,4 @@ const ActiveMixin = (superclass) =>
|
|
|
972
1062
|
}
|
|
973
1063
|
};
|
|
974
1064
|
|
|
975
|
-
export { ActiveMixin as A
|
|
1065
|
+
export { ActiveMixin as A };
|