@everymatrix/general-input 1.22.1 → 1.22.2

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.
@@ -1,94 +1,4 @@
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
- };
1
+ import { n as microTask, a as DisabledMixin, K as KeyboardMixin } from './field-mixin.js';
92
2
 
93
3
  /**
94
4
  @license
@@ -1062,4 +972,4 @@ const ActiveMixin = (superclass) =>
1062
972
  }
1063
973
  };
1064
974
 
1065
- export { ActiveMixin as A };
975
+ export { ActiveMixin as A, addListener as a, setTouchAction as s };