@covalent/components 8.4.0-beta.3 → 8.5.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/action-ribbon.js +3 -3
- package/action-ribbon.mjs +25 -24
- package/alert.js +2 -2
- package/alert.mjs +21 -20
- package/{chip-d6f5c2bb.js → chip-21138b58.js} +53 -95
- package/{chip-9c846d01.mjs → chip-eb043df9.mjs} +1139 -1326
- package/chip-set.js +8 -8
- package/chip-set.mjs +17 -15
- package/chip.js +1 -1
- package/chip.mjs +5 -3
- package/foundation-2334d146.mjs +60 -0
- package/{foundation-eff81c1e.mjs → foundation-b3e4efcd.mjs} +22 -78
- package/foundation-e830bd94.js +22 -0
- package/{foundation-786bf879.js → foundation-e980aa3d.js} +3 -24
- package/index.d.ts +4 -1
- package/index.d.ts.map +1 -1
- package/index.js +1 -1
- package/index.mjs +99 -91
- package/keyboard-39125691.js +43 -0
- package/keyboard-983b121c.mjs +159 -0
- package/package.json +1 -1
- package/style.css +1 -1
- package/tooltip.js +10 -73
- package/tooltip.mjs +385 -590
package/index.mjs
CHANGED
@@ -1,53 +1,57 @@
|
|
1
|
-
import { CovalentActionRibbon as
|
2
|
-
import { CovalentAlert as
|
3
|
-
import { CovalentAppShell as
|
4
|
-
import { CovalentButton as
|
5
|
-
import { CovalentCheckbox as
|
6
|
-
import { CovalentCard as
|
7
|
-
import { C as
|
8
|
-
import { CovalentChipSet as
|
9
|
-
import { CovalentCircularProgress as
|
10
|
-
import { CovalentCodeSnippet as
|
11
|
-
import { C as
|
12
|
-
import { CovalentDrawer as
|
13
|
-
import { CovalentEmptyState as
|
14
|
-
import {
|
15
|
-
import {
|
16
|
-
import {
|
17
|
-
import {
|
18
|
-
import {
|
19
|
-
import {
|
20
|
-
import {
|
21
|
-
import {
|
22
|
-
import {
|
23
|
-
import {
|
24
|
-
import {
|
25
|
-
import {
|
26
|
-
import {
|
27
|
-
import {
|
28
|
-
import {
|
29
|
-
import {
|
30
|
-
import {
|
31
|
-
import {
|
32
|
-
import {
|
33
|
-
import {
|
34
|
-
import {
|
35
|
-
import {
|
36
|
-
import {
|
37
|
-
import {
|
38
|
-
import {
|
39
|
-
import {
|
40
|
-
import {
|
41
|
-
import {
|
42
|
-
import {
|
43
|
-
import {
|
44
|
-
import {
|
45
|
-
import {
|
1
|
+
import { CovalentActionRibbon as z } from "./action-ribbon.mjs";
|
2
|
+
import { CovalentAlert as J } from "./alert.mjs";
|
3
|
+
import { CovalentAppShell as O } from "./app-shell.mjs";
|
4
|
+
import { CovalentButton as U } from "./button.mjs";
|
5
|
+
import { CovalentCheckbox as W } from "./checkbox.mjs";
|
6
|
+
import { CovalentCard as Y } from "./card.mjs";
|
7
|
+
import { C as _ } from "./chip-eb043df9.mjs";
|
8
|
+
import { CovalentChipSet as oo } from "./chip-set.mjs";
|
9
|
+
import { CovalentCircularProgress as ro } from "./circular-progress.mjs";
|
10
|
+
import { CovalentCodeSnippet as po } from "./code-snippet.mjs";
|
11
|
+
import { C as ao } from "./dialog-3444dd4d.mjs";
|
12
|
+
import { CovalentDrawer as io } from "./drawer.mjs";
|
13
|
+
import { CovalentEmptyState as Co } from "./empty-state.mjs";
|
14
|
+
import { CovalentExpansionPanel as fo } from "./expansion-panel.mjs";
|
15
|
+
import { CovalentExpansionPanelItem as so } from "./expansion-panel-item.mjs";
|
16
|
+
import { CovalentFormfield as To } from "./formfield.mjs";
|
17
|
+
import { CovalentIcon as Io } from "./icon.mjs";
|
18
|
+
import { CovalentIconButton as ho } from "./icon-button.mjs";
|
19
|
+
import { CovalentIconCheckToggle as bo } from "./icon-check-toggle.mjs";
|
20
|
+
import { CovalentIconRadioToggle as Ao } from "./icon-radio-toggle.mjs";
|
21
|
+
import { CovalentLinearProgress as ko } from "./linear-progress.mjs";
|
22
|
+
import { CovalentCheckListItem as Po } from "./check-list-item.mjs";
|
23
|
+
import { CovalentList as Eo } from "./list.mjs";
|
24
|
+
import { CovalentListItem as wo } from "./list-item.mjs";
|
25
|
+
import { CovalentNavRailListItem as Ho } from "./nav-list-item.mjs";
|
26
|
+
import { CovalentRadioListItem as No } from "./radio-list-item.mjs";
|
27
|
+
import { CovalentMenu as qo } from "./menu.mjs";
|
28
|
+
import { CovalentRadio as Go } from "./radio.mjs";
|
29
|
+
import { CovalentSelect as Ko } from "./select.mjs";
|
30
|
+
import { CovalentSideSheet as Qo } from "./side-sheet.mjs";
|
31
|
+
import { CovalentSlider as Vo } from "./slider.mjs";
|
32
|
+
import { CovalentSliderRange as Xo } from "./slider-range.mjs";
|
33
|
+
import { CovalentSnackbar as Zo } from "./snackbar.mjs";
|
34
|
+
import { CovalentStatusHeader as $o } from "./status-header.mjs";
|
35
|
+
import { CovalentStatusHeaderItem as tt } from "./status-header-item.mjs";
|
36
|
+
import { CovalentSwitch as et } from "./switch.mjs";
|
37
|
+
import { CovalentTab as mt } from "./tab.mjs";
|
38
|
+
import { CovalentTabBar as nt } from "./tab-bar.mjs";
|
39
|
+
import { CovalentTextArea as lt } from "./textarea.mjs";
|
40
|
+
import { CovalentTextField as xt } from "./textfield.mjs";
|
41
|
+
import { CovalentTextLockup as vt } from "./text-lockup.mjs";
|
42
|
+
import { CovalentToolbar as ct } from "./toolbar.mjs";
|
43
|
+
import { CovalentTooltip as Tt } from "./tooltip.mjs";
|
44
|
+
import { CovalentTopAppBar as It } from "./top-app-bar.mjs";
|
45
|
+
import { CovalentTopAppBarFixed as ht } from "./top-app-bar-fixed.mjs";
|
46
|
+
import { CovalentTreeList as bt } from "./tree-list.mjs";
|
47
|
+
import { CovalentTreeListItem as At } from "./tree-list-item.mjs";
|
48
|
+
import { CovalentTypography as kt } from "./typography.mjs";
|
46
49
|
import "./query-assigned-elements-4a39219d.mjs";
|
47
50
|
import "./utils-2932417c.mjs";
|
48
51
|
import "./observer-be7b92e2.mjs";
|
49
|
-
import "./foundation-
|
52
|
+
import "./foundation-b3e4efcd.mjs";
|
50
53
|
import "./tslib.es6-226581a4.mjs";
|
54
|
+
import "./foundation-2334d146.mjs";
|
51
55
|
import "./class-map-4b94b017.mjs";
|
52
56
|
import "./property-9b6ea53b.mjs";
|
53
57
|
import "./query-d843aa92.mjs";
|
@@ -64,6 +68,7 @@ import "./if-defined-c367f208.mjs";
|
|
64
68
|
import "./mwc-checkbox-base-afeeff16.mjs";
|
65
69
|
import "./form-element-7353b3c4.mjs";
|
66
70
|
import "./mwc-checkbox.css-8f4f1a9b.mjs";
|
71
|
+
import "./keyboard-983b121c.mjs";
|
67
72
|
import "./_commonjsHelpers-de2741aa.mjs";
|
68
73
|
import "./query-assigned-nodes-df691e78.mjs";
|
69
74
|
import "./mwc-radio-base-18a887dd.mjs";
|
@@ -80,49 +85,52 @@ import "./textfield-1792a6a8.mjs";
|
|
80
85
|
import "./mwc-top-app-bar-base-c7380903.mjs";
|
81
86
|
import "./top-app-bar-f83386e0.mjs";
|
82
87
|
export {
|
83
|
-
|
84
|
-
|
85
|
-
|
86
|
-
|
87
|
-
|
88
|
-
|
89
|
-
|
90
|
-
|
91
|
-
|
92
|
-
|
93
|
-
|
94
|
-
|
95
|
-
|
96
|
-
|
97
|
-
|
98
|
-
|
99
|
-
|
100
|
-
|
101
|
-
ho as
|
102
|
-
bo as
|
103
|
-
Ao as
|
104
|
-
|
105
|
-
|
106
|
-
|
107
|
-
|
108
|
-
|
109
|
-
|
110
|
-
|
111
|
-
|
112
|
-
|
113
|
-
|
114
|
-
|
115
|
-
|
116
|
-
|
117
|
-
|
118
|
-
|
119
|
-
|
120
|
-
|
121
|
-
|
122
|
-
|
123
|
-
|
124
|
-
|
125
|
-
|
126
|
-
|
127
|
-
ht as
|
88
|
+
z as CovalentActionRibbon,
|
89
|
+
J as CovalentAlert,
|
90
|
+
O as CovalentAppShell,
|
91
|
+
U as CovalentButton,
|
92
|
+
Y as CovalentCard,
|
93
|
+
Po as CovalentCheckListItem,
|
94
|
+
W as CovalentCheckbox,
|
95
|
+
_ as CovalentChip,
|
96
|
+
oo as CovalentChipSet,
|
97
|
+
ro as CovalentCircularProgress,
|
98
|
+
po as CovalentCodeSnippet,
|
99
|
+
ao as CovalentDialog,
|
100
|
+
io as CovalentDrawer,
|
101
|
+
Co as CovalentEmptyState,
|
102
|
+
fo as CovalentExpansionPanel,
|
103
|
+
so as CovalentExpansionPanelItem,
|
104
|
+
To as CovalentFormfield,
|
105
|
+
Io as CovalentIcon,
|
106
|
+
ho as CovalentIconButton,
|
107
|
+
bo as CovalentIconCheckToggle,
|
108
|
+
Ao as CovalentIconRadioToggle,
|
109
|
+
ko as CovalentLinearProgress,
|
110
|
+
Eo as CovalentList,
|
111
|
+
wo as CovalentListItem,
|
112
|
+
qo as CovalentMenu,
|
113
|
+
Ho as CovalentNavRailListItem,
|
114
|
+
Go as CovalentRadio,
|
115
|
+
No as CovalentRadioListItem,
|
116
|
+
Ko as CovalentSelect,
|
117
|
+
Qo as CovalentSideSheet,
|
118
|
+
Vo as CovalentSlider,
|
119
|
+
Xo as CovalentSliderRange,
|
120
|
+
Zo as CovalentSnackbar,
|
121
|
+
$o as CovalentStatusHeader,
|
122
|
+
tt as CovalentStatusHeaderItem,
|
123
|
+
et as CovalentSwitch,
|
124
|
+
mt as CovalentTab,
|
125
|
+
nt as CovalentTabBar,
|
126
|
+
lt as CovalentTextArea,
|
127
|
+
xt as CovalentTextField,
|
128
|
+
vt as CovalentTextLockup,
|
129
|
+
ct as CovalentToolbar,
|
130
|
+
Tt as CovalentTooltip,
|
131
|
+
It as CovalentTopAppBar,
|
132
|
+
ht as CovalentTopAppBarFixed,
|
133
|
+
bt as CovalentTreeList,
|
134
|
+
At as CovalentTreeListItem,
|
135
|
+
kt as CovalentTypography
|
128
136
|
};
|
@@ -0,0 +1,43 @@
|
|
1
|
+
"use strict";/**
|
2
|
+
* @license
|
3
|
+
* Copyright 2020 Google Inc.
|
4
|
+
*
|
5
|
+
* Permission is hereby granted, free of charge, to any person obtaining a copy
|
6
|
+
* of this software and associated documentation files (the "Software"), to deal
|
7
|
+
* in the Software without restriction, including without limitation the rights
|
8
|
+
* to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
9
|
+
* copies of the Software, and to permit persons to whom the Software is
|
10
|
+
* furnished to do so, subject to the following conditions:
|
11
|
+
*
|
12
|
+
* The above copyright notice and this permission notice shall be included in
|
13
|
+
* all copies or substantial portions of the Software.
|
14
|
+
*
|
15
|
+
* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
16
|
+
* IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
17
|
+
* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
18
|
+
* AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
19
|
+
* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
20
|
+
* OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
|
21
|
+
* THE SOFTWARE.
|
22
|
+
*/var o=function(){function R(){this.rafIDs=new Map}return R.prototype.request=function(A,n){var d=this;this.cancel(A);var s=requestAnimationFrame(function(O){d.rafIDs.delete(A),n(O)});this.rafIDs.set(A,s)},R.prototype.cancel=function(A){var n=this.rafIDs.get(A);n&&(cancelAnimationFrame(n),this.rafIDs.delete(A))},R.prototype.cancelAll=function(){var A=this;this.rafIDs.forEach(function(n,d){A.cancel(d)})},R.prototype.getQueue=function(){var A=[];return this.rafIDs.forEach(function(n,d){A.push(d)}),A},R}();/**
|
23
|
+
* @license
|
24
|
+
* Copyright 2020 Google Inc.
|
25
|
+
*
|
26
|
+
* Permission is hereby granted, free of charge, to any person obtaining a copy
|
27
|
+
* of this software and associated documentation files (the "Software"), to deal
|
28
|
+
* in the Software without restriction, including without limitation the rights
|
29
|
+
* to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
30
|
+
* copies of the Software, and to permit persons to whom the Software is
|
31
|
+
* furnished to do so, subject to the following conditions:
|
32
|
+
*
|
33
|
+
* The above copyright notice and this permission notice shall be included in
|
34
|
+
* all copies or substantial portions of the Software.
|
35
|
+
*
|
36
|
+
* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
37
|
+
* IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
38
|
+
* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
39
|
+
* AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
40
|
+
* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
41
|
+
* OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
|
42
|
+
* THE SOFTWARE.
|
43
|
+
*/var E={UNKNOWN:"Unknown",BACKSPACE:"Backspace",ENTER:"Enter",SPACEBAR:"Spacebar",PAGE_UP:"PageUp",PAGE_DOWN:"PageDown",END:"End",HOME:"Home",ARROW_LEFT:"ArrowLeft",ARROW_UP:"ArrowUp",ARROW_RIGHT:"ArrowRight",ARROW_DOWN:"ArrowDown",DELETE:"Delete",ESCAPE:"Escape",TAB:"Tab"},a=new Set;a.add(E.BACKSPACE);a.add(E.ENTER);a.add(E.SPACEBAR);a.add(E.PAGE_UP);a.add(E.PAGE_DOWN);a.add(E.END);a.add(E.HOME);a.add(E.ARROW_LEFT);a.add(E.ARROW_UP);a.add(E.ARROW_RIGHT);a.add(E.ARROW_DOWN);a.add(E.DELETE);a.add(E.ESCAPE);a.add(E.TAB);var t={BACKSPACE:8,ENTER:13,SPACEBAR:32,PAGE_UP:33,PAGE_DOWN:34,END:35,HOME:36,ARROW_LEFT:37,ARROW_UP:38,ARROW_RIGHT:39,ARROW_DOWN:40,DELETE:46,ESCAPE:27,TAB:9},e=new Map;e.set(t.BACKSPACE,E.BACKSPACE);e.set(t.ENTER,E.ENTER);e.set(t.SPACEBAR,E.SPACEBAR);e.set(t.PAGE_UP,E.PAGE_UP);e.set(t.PAGE_DOWN,E.PAGE_DOWN);e.set(t.END,E.END);e.set(t.HOME,E.HOME);e.set(t.ARROW_LEFT,E.ARROW_LEFT);e.set(t.ARROW_UP,E.ARROW_UP);e.set(t.ARROW_RIGHT,E.ARROW_RIGHT);e.set(t.ARROW_DOWN,E.ARROW_DOWN);e.set(t.DELETE,E.DELETE);e.set(t.ESCAPE,E.ESCAPE);e.set(t.TAB,E.TAB);var r=new Set;r.add(E.PAGE_UP);r.add(E.PAGE_DOWN);r.add(E.END);r.add(E.HOME);r.add(E.ARROW_LEFT);r.add(E.ARROW_UP);r.add(E.ARROW_RIGHT);r.add(E.ARROW_DOWN);function i(R){var A=R.key;if(a.has(A))return A;var n=e.get(R.keyCode);return n||E.UNKNOWN}function P(R){return r.has(i(R))}exports.AnimationFrame=o;exports.KEY=E;exports.isNavigationEvent=P;exports.normalizeKey=i;
|
@@ -0,0 +1,159 @@
|
|
1
|
+
/**
|
2
|
+
* @license
|
3
|
+
* Copyright 2020 Google Inc.
|
4
|
+
*
|
5
|
+
* Permission is hereby granted, free of charge, to any person obtaining a copy
|
6
|
+
* of this software and associated documentation files (the "Software"), to deal
|
7
|
+
* in the Software without restriction, including without limitation the rights
|
8
|
+
* to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
9
|
+
* copies of the Software, and to permit persons to whom the Software is
|
10
|
+
* furnished to do so, subject to the following conditions:
|
11
|
+
*
|
12
|
+
* The above copyright notice and this permission notice shall be included in
|
13
|
+
* all copies or substantial portions of the Software.
|
14
|
+
*
|
15
|
+
* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
16
|
+
* IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
17
|
+
* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
18
|
+
* AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
19
|
+
* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
20
|
+
* OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
|
21
|
+
* THE SOFTWARE.
|
22
|
+
*/
|
23
|
+
var P = (
|
24
|
+
/** @class */
|
25
|
+
function() {
|
26
|
+
function R() {
|
27
|
+
this.rafIDs = /* @__PURE__ */ new Map();
|
28
|
+
}
|
29
|
+
return R.prototype.request = function(A, r) {
|
30
|
+
var d = this;
|
31
|
+
this.cancel(A);
|
32
|
+
var s = requestAnimationFrame(function(O) {
|
33
|
+
d.rafIDs.delete(A), r(O);
|
34
|
+
});
|
35
|
+
this.rafIDs.set(A, s);
|
36
|
+
}, R.prototype.cancel = function(A) {
|
37
|
+
var r = this.rafIDs.get(A);
|
38
|
+
r && (cancelAnimationFrame(r), this.rafIDs.delete(A));
|
39
|
+
}, R.prototype.cancelAll = function() {
|
40
|
+
var A = this;
|
41
|
+
this.rafIDs.forEach(function(r, d) {
|
42
|
+
A.cancel(d);
|
43
|
+
});
|
44
|
+
}, R.prototype.getQueue = function() {
|
45
|
+
var A = [];
|
46
|
+
return this.rafIDs.forEach(function(r, d) {
|
47
|
+
A.push(d);
|
48
|
+
}), A;
|
49
|
+
}, R;
|
50
|
+
}()
|
51
|
+
);
|
52
|
+
/**
|
53
|
+
* @license
|
54
|
+
* Copyright 2020 Google Inc.
|
55
|
+
*
|
56
|
+
* Permission is hereby granted, free of charge, to any person obtaining a copy
|
57
|
+
* of this software and associated documentation files (the "Software"), to deal
|
58
|
+
* in the Software without restriction, including without limitation the rights
|
59
|
+
* to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
60
|
+
* copies of the Software, and to permit persons to whom the Software is
|
61
|
+
* furnished to do so, subject to the following conditions:
|
62
|
+
*
|
63
|
+
* The above copyright notice and this permission notice shall be included in
|
64
|
+
* all copies or substantial portions of the Software.
|
65
|
+
*
|
66
|
+
* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
67
|
+
* IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
68
|
+
* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
69
|
+
* AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
70
|
+
* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
71
|
+
* OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
|
72
|
+
* THE SOFTWARE.
|
73
|
+
*/
|
74
|
+
var E = {
|
75
|
+
UNKNOWN: "Unknown",
|
76
|
+
BACKSPACE: "Backspace",
|
77
|
+
ENTER: "Enter",
|
78
|
+
SPACEBAR: "Spacebar",
|
79
|
+
PAGE_UP: "PageUp",
|
80
|
+
PAGE_DOWN: "PageDown",
|
81
|
+
END: "End",
|
82
|
+
HOME: "Home",
|
83
|
+
ARROW_LEFT: "ArrowLeft",
|
84
|
+
ARROW_UP: "ArrowUp",
|
85
|
+
ARROW_RIGHT: "ArrowRight",
|
86
|
+
ARROW_DOWN: "ArrowDown",
|
87
|
+
DELETE: "Delete",
|
88
|
+
ESCAPE: "Escape",
|
89
|
+
TAB: "Tab"
|
90
|
+
}, a = /* @__PURE__ */ new Set();
|
91
|
+
a.add(E.BACKSPACE);
|
92
|
+
a.add(E.ENTER);
|
93
|
+
a.add(E.SPACEBAR);
|
94
|
+
a.add(E.PAGE_UP);
|
95
|
+
a.add(E.PAGE_DOWN);
|
96
|
+
a.add(E.END);
|
97
|
+
a.add(E.HOME);
|
98
|
+
a.add(E.ARROW_LEFT);
|
99
|
+
a.add(E.ARROW_UP);
|
100
|
+
a.add(E.ARROW_RIGHT);
|
101
|
+
a.add(E.ARROW_DOWN);
|
102
|
+
a.add(E.DELETE);
|
103
|
+
a.add(E.ESCAPE);
|
104
|
+
a.add(E.TAB);
|
105
|
+
var t = {
|
106
|
+
BACKSPACE: 8,
|
107
|
+
ENTER: 13,
|
108
|
+
SPACEBAR: 32,
|
109
|
+
PAGE_UP: 33,
|
110
|
+
PAGE_DOWN: 34,
|
111
|
+
END: 35,
|
112
|
+
HOME: 36,
|
113
|
+
ARROW_LEFT: 37,
|
114
|
+
ARROW_UP: 38,
|
115
|
+
ARROW_RIGHT: 39,
|
116
|
+
ARROW_DOWN: 40,
|
117
|
+
DELETE: 46,
|
118
|
+
ESCAPE: 27,
|
119
|
+
TAB: 9
|
120
|
+
}, e = /* @__PURE__ */ new Map();
|
121
|
+
e.set(t.BACKSPACE, E.BACKSPACE);
|
122
|
+
e.set(t.ENTER, E.ENTER);
|
123
|
+
e.set(t.SPACEBAR, E.SPACEBAR);
|
124
|
+
e.set(t.PAGE_UP, E.PAGE_UP);
|
125
|
+
e.set(t.PAGE_DOWN, E.PAGE_DOWN);
|
126
|
+
e.set(t.END, E.END);
|
127
|
+
e.set(t.HOME, E.HOME);
|
128
|
+
e.set(t.ARROW_LEFT, E.ARROW_LEFT);
|
129
|
+
e.set(t.ARROW_UP, E.ARROW_UP);
|
130
|
+
e.set(t.ARROW_RIGHT, E.ARROW_RIGHT);
|
131
|
+
e.set(t.ARROW_DOWN, E.ARROW_DOWN);
|
132
|
+
e.set(t.DELETE, E.DELETE);
|
133
|
+
e.set(t.ESCAPE, E.ESCAPE);
|
134
|
+
e.set(t.TAB, E.TAB);
|
135
|
+
var n = /* @__PURE__ */ new Set();
|
136
|
+
n.add(E.PAGE_UP);
|
137
|
+
n.add(E.PAGE_DOWN);
|
138
|
+
n.add(E.END);
|
139
|
+
n.add(E.HOME);
|
140
|
+
n.add(E.ARROW_LEFT);
|
141
|
+
n.add(E.ARROW_UP);
|
142
|
+
n.add(E.ARROW_RIGHT);
|
143
|
+
n.add(E.ARROW_DOWN);
|
144
|
+
function i(R) {
|
145
|
+
var A = R.key;
|
146
|
+
if (a.has(A))
|
147
|
+
return A;
|
148
|
+
var r = e.get(R.keyCode);
|
149
|
+
return r || E.UNKNOWN;
|
150
|
+
}
|
151
|
+
function _(R) {
|
152
|
+
return n.has(i(R));
|
153
|
+
}
|
154
|
+
export {
|
155
|
+
P as A,
|
156
|
+
E as K,
|
157
|
+
_ as i,
|
158
|
+
i as n
|
159
|
+
};
|