@quoreadmin/ui 1.10.13 → 1.10.14
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/index147.js +2 -2
- package/dist/index149.js +1 -1
- package/dist/index151.js +4 -4
- package/dist/index165.js +1 -1
- package/dist/index169.js +7 -7
- package/dist/index193.js +8 -8
- package/dist/index194.js +3 -3
- package/dist/index195.js +8 -8
- package/dist/index197.js +36 -1228
- package/dist/index198.js +46 -0
- package/dist/index199.js +1106 -5816
- package/dist/index201.js +5922 -19
- package/dist/index202.js +199 -10
- package/dist/index203.js +33 -76
- package/dist/index204.js +14 -249
- package/dist/index205.js +72 -13678
- package/dist/index206.js +253 -27
- package/dist/index207.js +13669 -48
- package/dist/index208.js +25 -236
- package/dist/index209.js +45 -293
- package/dist/index210.js +179 -236
- package/dist/index211.js +311 -36
- package/dist/index212.js +294 -43
- package/dist/index234.js +149 -3624
- package/dist/index235.js +20 -55
- package/dist/index236.js +20 -77
- package/dist/index237.js +22 -52
- package/dist/index238.js +188 -204
- package/dist/index239.js +70 -10
- package/dist/index240.js +31 -54
- package/dist/index241.js +36 -57
- package/dist/index242.js +121 -48
- package/dist/index243.js +32 -69
- package/dist/index244.js +79 -725
- package/dist/index245.js +20 -42
- package/dist/index246.js +20 -64
- package/dist/index247.js +20 -11
- package/dist/index248.js +20 -705
- package/dist/index249.js +22 -820
- package/dist/index250.js +21 -160
- package/dist/index251.js +9 -9
- package/dist/index252.js +836 -20
- package/dist/index253.js +701 -21
- package/dist/index254.js +168 -191
- package/dist/index255.js +21 -69
- package/dist/index256.js +20 -34
- package/dist/index257.js +19 -39
- package/dist/index258.js +3 -22
- package/dist/index259.js +186 -21
- package/dist/index260.js +132 -19
- package/dist/index261.js +1131 -744
- package/dist/index262.js +19 -701
- package/dist/index263.js +22 -176
- package/dist/index264.js +15 -13
- package/dist/index265.js +22 -13
- package/dist/index266.js +13 -15
- package/dist/index267.js +12 -12
- package/dist/index268.js +2 -20
- package/dist/index269.js +1 -2
- package/dist/index270.js +3615 -166
- package/dist/index271.js +50 -128
- package/dist/index272.js +68 -1214
- package/dist/index273.js +47 -122
- package/dist/index274.js +215 -20
- package/dist/index275.js +10 -22
- package/dist/index276.js +57 -22
- package/dist/index277.js +55 -32
- package/dist/index278.js +54 -29
- package/dist/index279.js +75 -20
- package/dist/index280.js +725 -19
- package/dist/index281.js +42 -2
- package/dist/index282.js +64 -2
- package/dist/index283.js +10 -79
- package/dist/index284.js +705 -20
- package/dist/index285.js +820 -20
- package/dist/index292.js +54 -1534
- package/dist/index293.js +67 -374
- package/dist/index294.js +26 -2731
- package/dist/index295.js +21 -85
- package/dist/index296.js +22 -3792
- package/dist/index297.js +16 -60
- package/dist/index298.js +17 -15
- package/dist/index299.js +23 -84
- package/dist/index300.js +2 -202
- package/dist/index301.js +1508 -220
- package/dist/index302.js +386 -54
- package/dist/index303.js +2724 -72
- package/dist/index304.js +85 -25
- package/dist/index305.js +3792 -22
- package/dist/index306.js +59 -21
- package/dist/index307.js +77 -14
- package/dist/index308.js +22 -17
- package/dist/index309.js +934 -22
- package/dist/index310.js +21 -261
- package/dist/index311.js +19 -5
- package/dist/index312.js +19 -139
- package/dist/index313.js +67 -71
- package/dist/index314.js +17 -85
- package/dist/index315.js +19 -29
- package/dist/index316.js +21 -15
- package/dist/index317.js +21 -74
- package/dist/index318.js +63 -4
- package/dist/index319.js +84 -2
- package/dist/index320.js +193 -74
- package/dist/index321.js +246 -53
- package/dist/index322.js +15 -6
- package/dist/index323.js +261 -4
- package/dist/index324.js +5 -178
- package/dist/index325.js +133 -56
- package/dist/index326.js +73 -75
- package/dist/index327.js +83 -75
- package/dist/index328.js +28 -21
- package/dist/index329.js +14 -933
- package/dist/index330.js +74 -21
- package/dist/index331.js +3 -19
- package/dist/index332.js +2 -20
- package/dist/index333.js +80 -66
- package/dist/index334.js +53 -19
- package/dist/index335.js +6 -19
- package/dist/index336.js +4 -21
- package/dist/index337.js +178 -21
- package/dist/index338.js +62 -62
- package/dist/index339.js +75 -2
- package/dist/index364.js +19 -18
- package/dist/index365.js +19 -56
- package/dist/index366.js +63 -28
- package/dist/index367.js +37 -7
- package/dist/index368.js +16 -49
- package/dist/index369.js +57 -7
- package/dist/index370.js +27 -10
- package/dist/index371.js +7 -7
- package/dist/index372.js +51 -27
- package/dist/index373.js +7 -2
- package/dist/index374.js +11 -69
- package/dist/index375.js +6 -166
- package/dist/index376.js +28 -20
- package/dist/index377.js +2 -20
- package/dist/index378.js +67 -61
- package/dist/index379.js +166 -36
- package/dist/index381.js +17 -91
- package/dist/index382.js +91 -98
- package/dist/index383.js +97 -30
- package/dist/index384.js +30 -10
- package/dist/index385.js +10 -3
- package/dist/index386.js +3 -3
- package/dist/index387.js +4 -13
- package/dist/index388.js +13 -7
- package/dist/index389.js +7 -12
- package/dist/index390.js +11 -4
- package/dist/index391.js +5 -33
- package/dist/index392.js +33 -31
- package/dist/index393.js +29 -26
- package/dist/index394.js +26 -59
- package/dist/index395.js +60 -16
- package/dist/index396.js +1 -1
- package/dist/index401.js +1 -1
- package/dist/index402.js +2 -2
- package/dist/index45.js +1 -1
- package/package.json +1 -1
- package/dist/index200.js +0 -209
package/dist/index379.js
CHANGED
|
@@ -1,39 +1,169 @@
|
|
|
1
|
-
import
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
}
|
|
20
|
-
|
|
21
|
-
incrementButton: function(t) {
|
|
22
|
-
var u = t.instance, n = t.props;
|
|
23
|
-
return ["p-inputnumber-button p-inputnumber-button-up", {
|
|
24
|
-
"p-disabled": n.showButtons && n.max !== null && u.maxBoundry()
|
|
25
|
-
}];
|
|
26
|
-
},
|
|
27
|
-
decrementButton: function(t) {
|
|
28
|
-
var u = t.instance, n = t.props;
|
|
29
|
-
return ["p-inputnumber-button p-inputnumber-button-down", {
|
|
30
|
-
"p-disabled": n.showButtons && n.min !== null && u.minBoundry()
|
|
31
|
-
}];
|
|
1
|
+
import K from "./index375.js";
|
|
2
|
+
import t from "./index323.js";
|
|
3
|
+
import b from "./index334.js";
|
|
4
|
+
import ee from "./index394.js";
|
|
5
|
+
import { trackStream as z } from "./index395.js";
|
|
6
|
+
import te from "./index337.js";
|
|
7
|
+
import { progressEventDecorator as I, progressEventReducer as M, asyncDecorator as j } from "./index392.js";
|
|
8
|
+
import se from "./index393.js";
|
|
9
|
+
import re from "./index390.js";
|
|
10
|
+
const J = 64 * 1024, { isFunction: P } = t, ne = (({ Request: n, Response: o }) => ({
|
|
11
|
+
Request: n,
|
|
12
|
+
Response: o
|
|
13
|
+
}))(t.global), {
|
|
14
|
+
ReadableStream: V,
|
|
15
|
+
TextEncoder: W
|
|
16
|
+
} = t.global, Z = (n, ...o) => {
|
|
17
|
+
try {
|
|
18
|
+
return !!n(...o);
|
|
19
|
+
} catch {
|
|
20
|
+
return !1;
|
|
32
21
|
}
|
|
33
|
-
},
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
});
|
|
22
|
+
}, oe = (n) => {
|
|
23
|
+
n = t.merge.call({
|
|
24
|
+
skipUndefined: !0
|
|
25
|
+
}, ne, n);
|
|
26
|
+
const { fetch: o, Request: a, Response: y } = n, g = o ? P(o) : typeof fetch == "function", f = P(a), F = P(y);
|
|
27
|
+
if (!g)
|
|
28
|
+
return !1;
|
|
29
|
+
const w = g && P(V), R = g && (typeof W == "function" ? /* @__PURE__ */ ((e) => (s) => e.encode(s))(new W()) : async (e) => new Uint8Array(await new a(e).arrayBuffer())), d = f && w && Z(() => {
|
|
30
|
+
let e = !1;
|
|
31
|
+
const s = new a(K.origin, {
|
|
32
|
+
body: new V(),
|
|
33
|
+
method: "POST",
|
|
34
|
+
get duplex() {
|
|
35
|
+
return e = !0, "half";
|
|
36
|
+
}
|
|
37
|
+
}).headers.has("Content-Type");
|
|
38
|
+
return e && !s;
|
|
39
|
+
}), h = F && w && Z(() => t.isReadableStream(new y("").body)), x = {
|
|
40
|
+
stream: h && ((e) => e.body)
|
|
41
|
+
};
|
|
42
|
+
g && ["text", "arrayBuffer", "blob", "formData", "stream"].forEach((e) => {
|
|
43
|
+
!x[e] && (x[e] = (s, i) => {
|
|
44
|
+
let c = s && s[e];
|
|
45
|
+
if (c)
|
|
46
|
+
return c.call(s);
|
|
47
|
+
throw new b(`Response type '${e}' is not supported`, b.ERR_NOT_SUPPORT, i);
|
|
48
|
+
});
|
|
49
|
+
});
|
|
50
|
+
const $ = async (e) => {
|
|
51
|
+
if (e == null)
|
|
52
|
+
return 0;
|
|
53
|
+
if (t.isBlob(e))
|
|
54
|
+
return e.size;
|
|
55
|
+
if (t.isSpecCompliantForm(e))
|
|
56
|
+
return (await new a(K.origin, {
|
|
57
|
+
method: "POST",
|
|
58
|
+
body: e
|
|
59
|
+
}).arrayBuffer()).byteLength;
|
|
60
|
+
if (t.isArrayBufferView(e) || t.isArrayBuffer(e))
|
|
61
|
+
return e.byteLength;
|
|
62
|
+
if (t.isURLSearchParams(e) && (e = e + ""), t.isString(e))
|
|
63
|
+
return (await R(e)).byteLength;
|
|
64
|
+
}, G = async (e, s) => {
|
|
65
|
+
const i = t.toFiniteNumber(e.getContentLength());
|
|
66
|
+
return i ?? $(s);
|
|
67
|
+
};
|
|
68
|
+
return async (e) => {
|
|
69
|
+
let {
|
|
70
|
+
url: s,
|
|
71
|
+
method: i,
|
|
72
|
+
data: c,
|
|
73
|
+
signal: Q,
|
|
74
|
+
cancelToken: _,
|
|
75
|
+
timeout: X,
|
|
76
|
+
onDownloadProgress: O,
|
|
77
|
+
onUploadProgress: B,
|
|
78
|
+
responseType: l,
|
|
79
|
+
headers: q,
|
|
80
|
+
withCredentials: C = "same-origin",
|
|
81
|
+
fetchOptions: U
|
|
82
|
+
} = se(e), v = o || fetch;
|
|
83
|
+
l = l ? (l + "").toLowerCase() : "text";
|
|
84
|
+
let E = ee([Q, _ && _.toAbortSignal()], X), T = null;
|
|
85
|
+
const m = E && E.unsubscribe && (() => {
|
|
86
|
+
E.unsubscribe();
|
|
87
|
+
});
|
|
88
|
+
let D;
|
|
89
|
+
try {
|
|
90
|
+
if (B && d && i !== "get" && i !== "head" && (D = await G(q, c)) !== 0) {
|
|
91
|
+
let p = new a(s, {
|
|
92
|
+
method: "POST",
|
|
93
|
+
body: c,
|
|
94
|
+
duplex: "half"
|
|
95
|
+
}), S;
|
|
96
|
+
if (t.isFormData(c) && (S = p.headers.get("content-type")) && q.setContentType(S), p.body) {
|
|
97
|
+
const [A, L] = I(
|
|
98
|
+
D,
|
|
99
|
+
M(j(B))
|
|
100
|
+
);
|
|
101
|
+
c = z(p.body, J, A, L);
|
|
102
|
+
}
|
|
103
|
+
}
|
|
104
|
+
t.isString(C) || (C = C ? "include" : "omit");
|
|
105
|
+
const r = f && "credentials" in a.prototype, N = {
|
|
106
|
+
...U,
|
|
107
|
+
signal: E,
|
|
108
|
+
method: i.toUpperCase(),
|
|
109
|
+
headers: q.normalize().toJSON(),
|
|
110
|
+
body: c,
|
|
111
|
+
duplex: "half",
|
|
112
|
+
credentials: r ? C : void 0
|
|
113
|
+
};
|
|
114
|
+
T = f && new a(s, N);
|
|
115
|
+
let u = await (f ? v(T, U) : v(s, N));
|
|
116
|
+
const k = h && (l === "stream" || l === "response");
|
|
117
|
+
if (h && (O || k && m)) {
|
|
118
|
+
const p = {};
|
|
119
|
+
["status", "statusText", "headers"].forEach((H) => {
|
|
120
|
+
p[H] = u[H];
|
|
121
|
+
});
|
|
122
|
+
const S = t.toFiniteNumber(u.headers.get("content-length")), [A, L] = O && I(
|
|
123
|
+
S,
|
|
124
|
+
M(j(O), !0)
|
|
125
|
+
) || [];
|
|
126
|
+
u = new y(
|
|
127
|
+
z(u.body, J, A, () => {
|
|
128
|
+
L && L(), m && m();
|
|
129
|
+
}),
|
|
130
|
+
p
|
|
131
|
+
);
|
|
132
|
+
}
|
|
133
|
+
l = l || "text";
|
|
134
|
+
let Y = await x[t.findKey(x, l) || "text"](u, e);
|
|
135
|
+
return !k && m && m(), await new Promise((p, S) => {
|
|
136
|
+
re(p, S, {
|
|
137
|
+
data: Y,
|
|
138
|
+
headers: te.from(u.headers),
|
|
139
|
+
status: u.status,
|
|
140
|
+
statusText: u.statusText,
|
|
141
|
+
config: e,
|
|
142
|
+
request: T
|
|
143
|
+
});
|
|
144
|
+
});
|
|
145
|
+
} catch (r) {
|
|
146
|
+
throw m && m(), r && r.name === "TypeError" && /Load failed|fetch/i.test(r.message) ? Object.assign(
|
|
147
|
+
new b("Network Error", b.ERR_NETWORK, e, T, r && r.response),
|
|
148
|
+
{
|
|
149
|
+
cause: r.cause || r
|
|
150
|
+
}
|
|
151
|
+
) : b.from(r, r && r.code, e, T, r && r.response);
|
|
152
|
+
}
|
|
153
|
+
};
|
|
154
|
+
}, ae = /* @__PURE__ */ new Map(), ie = (n) => {
|
|
155
|
+
let o = n && n.env || {};
|
|
156
|
+
const { fetch: a, Request: y, Response: g } = o, f = [
|
|
157
|
+
y,
|
|
158
|
+
g,
|
|
159
|
+
a
|
|
160
|
+
];
|
|
161
|
+
let F = f.length, w = F, R, d, h = ae;
|
|
162
|
+
for (; w--; )
|
|
163
|
+
R = f[w], d = h.get(R), d === void 0 && h.set(R, d = w ? /* @__PURE__ */ new Map() : oe(o)), h = d;
|
|
164
|
+
return d;
|
|
165
|
+
};
|
|
166
|
+
ie();
|
|
37
167
|
export {
|
|
38
|
-
|
|
168
|
+
ie as getFetch
|
|
39
169
|
};
|
package/dist/index381.js
CHANGED
|
@@ -1,93 +1,19 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
37: "ArrowLeft",
|
|
18
|
-
38: "ArrowUp",
|
|
19
|
-
39: "ArrowRight",
|
|
20
|
-
40: "ArrowDown",
|
|
21
|
-
44: "PrintScreen",
|
|
22
|
-
45: "Insert",
|
|
23
|
-
46: "Delete",
|
|
24
|
-
59: ";",
|
|
25
|
-
61: "=",
|
|
26
|
-
91: "Meta",
|
|
27
|
-
92: "Meta",
|
|
28
|
-
106: "*",
|
|
29
|
-
107: "+",
|
|
30
|
-
108: ",",
|
|
31
|
-
109: "-",
|
|
32
|
-
110: ".",
|
|
33
|
-
111: "/",
|
|
34
|
-
144: "NumLock",
|
|
35
|
-
145: "ScrollLock",
|
|
36
|
-
160: "Shift",
|
|
37
|
-
161: "Shift",
|
|
38
|
-
162: "Control",
|
|
39
|
-
163: "Control",
|
|
40
|
-
164: "Alt",
|
|
41
|
-
165: "Alt",
|
|
42
|
-
173: "-",
|
|
43
|
-
186: ";",
|
|
44
|
-
187: "=",
|
|
45
|
-
188: ",",
|
|
46
|
-
189: "-",
|
|
47
|
-
190: ".",
|
|
48
|
-
191: "/",
|
|
49
|
-
192: "`",
|
|
50
|
-
219: "[",
|
|
51
|
-
220: "\\",
|
|
52
|
-
221: "]",
|
|
53
|
-
222: "'"
|
|
54
|
-
}, a = {
|
|
55
|
-
48: ")",
|
|
56
|
-
49: "!",
|
|
57
|
-
50: "@",
|
|
58
|
-
51: "#",
|
|
59
|
-
52: "$",
|
|
60
|
-
53: "%",
|
|
61
|
-
54: "^",
|
|
62
|
-
55: "&",
|
|
63
|
-
56: "*",
|
|
64
|
-
57: "(",
|
|
65
|
-
59: ":",
|
|
66
|
-
61: "+",
|
|
67
|
-
173: "_",
|
|
68
|
-
186: ":",
|
|
69
|
-
187: "+",
|
|
70
|
-
188: "<",
|
|
71
|
-
189: "_",
|
|
72
|
-
190: ">",
|
|
73
|
-
191: "?",
|
|
74
|
-
192: "~",
|
|
75
|
-
219: "{",
|
|
76
|
-
220: "|",
|
|
77
|
-
221: "}",
|
|
78
|
-
222: '"'
|
|
79
|
-
}, n = typeof navigator < "u" && /Mac/.test(navigator.platform), y = typeof navigator < "u" && /MSIE \d|Trident\/(?:[7-9]|\d{2,})\..*rv:(\d+)/.exec(navigator.userAgent);
|
|
80
|
-
for (var r = 0; r < 10; r++) t[48 + r] = t[96 + r] = String(r);
|
|
81
|
-
for (var r = 1; r <= 24; r++) t[r + 111] = "F" + r;
|
|
82
|
-
for (var r = 65; r <= 90; r++)
|
|
83
|
-
t[r] = String.fromCharCode(r + 32), a[r] = String.fromCharCode(r);
|
|
84
|
-
for (var i in t) a.hasOwnProperty(i) || (a[i] = t[i]);
|
|
85
|
-
function g(o) {
|
|
86
|
-
var f = n && o.metaKey && o.shiftKey && !o.ctrlKey && !o.altKey || y && o.shiftKey && o.key && o.key.length == 1 || o.key == "Unidentified", e = !f && o.key || (o.shiftKey ? a : t)[o.keyCode] || o.key || "Unidentified";
|
|
87
|
-
return e == "Esc" && (e = "Escape"), e == "Del" && (e = "Delete"), e == "Left" && (e = "ArrowLeft"), e == "Up" && (e = "ArrowUp"), e == "Right" && (e = "ArrowRight"), e == "Down" && (e = "ArrowDown"), e;
|
|
88
|
-
}
|
|
1
|
+
import n from "./index288.js";
|
|
2
|
+
var l = {
|
|
3
|
+
root: function(e) {
|
|
4
|
+
var i = e.instance, t = e.props;
|
|
5
|
+
return ["p-inputtext p-component", {
|
|
6
|
+
"p-filled": i.filled,
|
|
7
|
+
"p-inputtext-sm": t.size === "small",
|
|
8
|
+
"p-inputtext-lg": t.size === "large",
|
|
9
|
+
"p-invalid": t.invalid,
|
|
10
|
+
"p-variant-filled": t.variant ? t.variant === "filled" : i.$primevue.config.inputStyle === "filled"
|
|
11
|
+
}];
|
|
12
|
+
}
|
|
13
|
+
}, r = n.extend({
|
|
14
|
+
name: "inputtext",
|
|
15
|
+
classes: l
|
|
16
|
+
});
|
|
89
17
|
export {
|
|
90
|
-
|
|
91
|
-
g as keyName,
|
|
92
|
-
a as shift
|
|
18
|
+
r as default
|
|
93
19
|
};
|
package/dist/index382.js
CHANGED
|
@@ -1,100 +1,93 @@
|
|
|
1
|
-
var
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
},
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
return new t(this.left, n);
|
|
90
|
-
}, t.prototype.leafPrepend = function(e) {
|
|
91
|
-
var n = this.left.leafPrepend(e);
|
|
92
|
-
if (n)
|
|
93
|
-
return new t(n, this.right);
|
|
94
|
-
}, t.prototype.appendInner = function(e) {
|
|
95
|
-
return this.left.depth >= Math.max(this.right.depth, e.depth) + 1 ? new t(this.left, new t(this.right, e)) : new t(this, e);
|
|
96
|
-
}, t;
|
|
97
|
-
})(p);
|
|
1
|
+
var t = {
|
|
2
|
+
8: "Backspace",
|
|
3
|
+
9: "Tab",
|
|
4
|
+
10: "Enter",
|
|
5
|
+
12: "NumLock",
|
|
6
|
+
13: "Enter",
|
|
7
|
+
16: "Shift",
|
|
8
|
+
17: "Control",
|
|
9
|
+
18: "Alt",
|
|
10
|
+
20: "CapsLock",
|
|
11
|
+
27: "Escape",
|
|
12
|
+
32: " ",
|
|
13
|
+
33: "PageUp",
|
|
14
|
+
34: "PageDown",
|
|
15
|
+
35: "End",
|
|
16
|
+
36: "Home",
|
|
17
|
+
37: "ArrowLeft",
|
|
18
|
+
38: "ArrowUp",
|
|
19
|
+
39: "ArrowRight",
|
|
20
|
+
40: "ArrowDown",
|
|
21
|
+
44: "PrintScreen",
|
|
22
|
+
45: "Insert",
|
|
23
|
+
46: "Delete",
|
|
24
|
+
59: ";",
|
|
25
|
+
61: "=",
|
|
26
|
+
91: "Meta",
|
|
27
|
+
92: "Meta",
|
|
28
|
+
106: "*",
|
|
29
|
+
107: "+",
|
|
30
|
+
108: ",",
|
|
31
|
+
109: "-",
|
|
32
|
+
110: ".",
|
|
33
|
+
111: "/",
|
|
34
|
+
144: "NumLock",
|
|
35
|
+
145: "ScrollLock",
|
|
36
|
+
160: "Shift",
|
|
37
|
+
161: "Shift",
|
|
38
|
+
162: "Control",
|
|
39
|
+
163: "Control",
|
|
40
|
+
164: "Alt",
|
|
41
|
+
165: "Alt",
|
|
42
|
+
173: "-",
|
|
43
|
+
186: ";",
|
|
44
|
+
187: "=",
|
|
45
|
+
188: ",",
|
|
46
|
+
189: "-",
|
|
47
|
+
190: ".",
|
|
48
|
+
191: "/",
|
|
49
|
+
192: "`",
|
|
50
|
+
219: "[",
|
|
51
|
+
220: "\\",
|
|
52
|
+
221: "]",
|
|
53
|
+
222: "'"
|
|
54
|
+
}, a = {
|
|
55
|
+
48: ")",
|
|
56
|
+
49: "!",
|
|
57
|
+
50: "@",
|
|
58
|
+
51: "#",
|
|
59
|
+
52: "$",
|
|
60
|
+
53: "%",
|
|
61
|
+
54: "^",
|
|
62
|
+
55: "&",
|
|
63
|
+
56: "*",
|
|
64
|
+
57: "(",
|
|
65
|
+
59: ":",
|
|
66
|
+
61: "+",
|
|
67
|
+
173: "_",
|
|
68
|
+
186: ":",
|
|
69
|
+
187: "+",
|
|
70
|
+
188: "<",
|
|
71
|
+
189: "_",
|
|
72
|
+
190: ">",
|
|
73
|
+
191: "?",
|
|
74
|
+
192: "~",
|
|
75
|
+
219: "{",
|
|
76
|
+
220: "|",
|
|
77
|
+
221: "}",
|
|
78
|
+
222: '"'
|
|
79
|
+
}, n = typeof navigator < "u" && /Mac/.test(navigator.platform), y = typeof navigator < "u" && /MSIE \d|Trident\/(?:[7-9]|\d{2,})\..*rv:(\d+)/.exec(navigator.userAgent);
|
|
80
|
+
for (var r = 0; r < 10; r++) t[48 + r] = t[96 + r] = String(r);
|
|
81
|
+
for (var r = 1; r <= 24; r++) t[r + 111] = "F" + r;
|
|
82
|
+
for (var r = 65; r <= 90; r++)
|
|
83
|
+
t[r] = String.fromCharCode(r + 32), a[r] = String.fromCharCode(r);
|
|
84
|
+
for (var i in t) a.hasOwnProperty(i) || (a[i] = t[i]);
|
|
85
|
+
function g(o) {
|
|
86
|
+
var f = n && o.metaKey && o.shiftKey && !o.ctrlKey && !o.altKey || y && o.shiftKey && o.key && o.key.length == 1 || o.key == "Unidentified", e = !f && o.key || (o.shiftKey ? a : t)[o.keyCode] || o.key || "Unidentified";
|
|
87
|
+
return e == "Esc" && (e = "Escape"), e == "Del" && (e = "Delete"), e == "Left" && (e = "ArrowLeft"), e == "Up" && (e = "ArrowUp"), e == "Right" && (e = "ArrowRight"), e == "Down" && (e = "ArrowDown"), e;
|
|
88
|
+
}
|
|
98
89
|
export {
|
|
99
|
-
|
|
90
|
+
t as base,
|
|
91
|
+
g as keyName,
|
|
92
|
+
a as shift
|
|
100
93
|
};
|
package/dist/index383.js
CHANGED
|
@@ -1,33 +1,100 @@
|
|
|
1
|
-
|
|
2
|
-
function i(n) {
|
|
3
|
-
const t = {
|
|
4
|
-
"!": "%21",
|
|
5
|
-
"'": "%27",
|
|
6
|
-
"(": "%28",
|
|
7
|
-
")": "%29",
|
|
8
|
-
"~": "%7E",
|
|
9
|
-
"%20": "+",
|
|
10
|
-
"%00": "\0"
|
|
11
|
-
};
|
|
12
|
-
return encodeURIComponent(n).replace(/[!'()~]|%20|%00/g, function(r) {
|
|
13
|
-
return t[r];
|
|
14
|
-
});
|
|
15
|
-
}
|
|
16
|
-
function a(n, t) {
|
|
17
|
-
this._pairs = [], n && p(n, this, t);
|
|
18
|
-
}
|
|
19
|
-
const c = a.prototype;
|
|
20
|
-
c.append = function(t, o) {
|
|
21
|
-
this._pairs.push([t, o]);
|
|
22
|
-
};
|
|
23
|
-
c.toString = function(t) {
|
|
24
|
-
const o = t ? function(r) {
|
|
25
|
-
return t.call(this, r, i);
|
|
26
|
-
} : i;
|
|
27
|
-
return this._pairs.map(function(e) {
|
|
28
|
-
return o(e[0]) + "=" + o(e[1]);
|
|
29
|
-
}, "").join("&");
|
|
1
|
+
var l = 200, p = function() {
|
|
30
2
|
};
|
|
3
|
+
p.prototype.append = function(t) {
|
|
4
|
+
return t.length ? (t = p.from(t), !this.length && t || t.length < l && this.leafAppend(t) || this.length < l && t.leafPrepend(this) || this.appendInner(t)) : this;
|
|
5
|
+
};
|
|
6
|
+
p.prototype.prepend = function(t) {
|
|
7
|
+
return t.length ? p.from(t).append(this) : this;
|
|
8
|
+
};
|
|
9
|
+
p.prototype.appendInner = function(t) {
|
|
10
|
+
return new u(this, t);
|
|
11
|
+
};
|
|
12
|
+
p.prototype.slice = function(t, r) {
|
|
13
|
+
return t === void 0 && (t = 0), r === void 0 && (r = this.length), t >= r ? p.empty : this.sliceInner(Math.max(0, t), Math.min(this.length, r));
|
|
14
|
+
};
|
|
15
|
+
p.prototype.get = function(t) {
|
|
16
|
+
if (!(t < 0 || t >= this.length))
|
|
17
|
+
return this.getInner(t);
|
|
18
|
+
};
|
|
19
|
+
p.prototype.forEach = function(t, r, e) {
|
|
20
|
+
r === void 0 && (r = 0), e === void 0 && (e = this.length), r <= e ? this.forEachInner(t, r, e, 0) : this.forEachInvertedInner(t, r, e, 0);
|
|
21
|
+
};
|
|
22
|
+
p.prototype.map = function(t, r, e) {
|
|
23
|
+
r === void 0 && (r = 0), e === void 0 && (e = this.length);
|
|
24
|
+
var n = [];
|
|
25
|
+
return this.forEach(function(i, s) {
|
|
26
|
+
return n.push(t(i, s));
|
|
27
|
+
}, r, e), n;
|
|
28
|
+
};
|
|
29
|
+
p.from = function(t) {
|
|
30
|
+
return t instanceof p ? t : t && t.length ? new o(t) : p.empty;
|
|
31
|
+
};
|
|
32
|
+
var o = /* @__PURE__ */ (function(h) {
|
|
33
|
+
function t(e) {
|
|
34
|
+
h.call(this), this.values = e;
|
|
35
|
+
}
|
|
36
|
+
h && (t.__proto__ = h), t.prototype = Object.create(h && h.prototype), t.prototype.constructor = t;
|
|
37
|
+
var r = { length: { configurable: !0 }, depth: { configurable: !0 } };
|
|
38
|
+
return t.prototype.flatten = function() {
|
|
39
|
+
return this.values;
|
|
40
|
+
}, t.prototype.sliceInner = function(n, i) {
|
|
41
|
+
return n == 0 && i == this.length ? this : new t(this.values.slice(n, i));
|
|
42
|
+
}, t.prototype.getInner = function(n) {
|
|
43
|
+
return this.values[n];
|
|
44
|
+
}, t.prototype.forEachInner = function(n, i, s, f) {
|
|
45
|
+
for (var a = i; a < s; a++)
|
|
46
|
+
if (n(this.values[a], f + a) === !1)
|
|
47
|
+
return !1;
|
|
48
|
+
}, t.prototype.forEachInvertedInner = function(n, i, s, f) {
|
|
49
|
+
for (var a = i - 1; a >= s; a--)
|
|
50
|
+
if (n(this.values[a], f + a) === !1)
|
|
51
|
+
return !1;
|
|
52
|
+
}, t.prototype.leafAppend = function(n) {
|
|
53
|
+
if (this.length + n.length <= l)
|
|
54
|
+
return new t(this.values.concat(n.flatten()));
|
|
55
|
+
}, t.prototype.leafPrepend = function(n) {
|
|
56
|
+
if (this.length + n.length <= l)
|
|
57
|
+
return new t(n.flatten().concat(this.values));
|
|
58
|
+
}, r.length.get = function() {
|
|
59
|
+
return this.values.length;
|
|
60
|
+
}, r.depth.get = function() {
|
|
61
|
+
return 0;
|
|
62
|
+
}, Object.defineProperties(t.prototype, r), t;
|
|
63
|
+
})(p);
|
|
64
|
+
p.empty = new o([]);
|
|
65
|
+
var u = /* @__PURE__ */ (function(h) {
|
|
66
|
+
function t(r, e) {
|
|
67
|
+
h.call(this), this.left = r, this.right = e, this.length = r.length + e.length, this.depth = Math.max(r.depth, e.depth) + 1;
|
|
68
|
+
}
|
|
69
|
+
return h && (t.__proto__ = h), t.prototype = Object.create(h && h.prototype), t.prototype.constructor = t, t.prototype.flatten = function() {
|
|
70
|
+
return this.left.flatten().concat(this.right.flatten());
|
|
71
|
+
}, t.prototype.getInner = function(e) {
|
|
72
|
+
return e < this.left.length ? this.left.get(e) : this.right.get(e - this.left.length);
|
|
73
|
+
}, t.prototype.forEachInner = function(e, n, i, s) {
|
|
74
|
+
var f = this.left.length;
|
|
75
|
+
if (n < f && this.left.forEachInner(e, n, Math.min(i, f), s) === !1 || i > f && this.right.forEachInner(e, Math.max(n - f, 0), Math.min(this.length, i) - f, s + f) === !1)
|
|
76
|
+
return !1;
|
|
77
|
+
}, t.prototype.forEachInvertedInner = function(e, n, i, s) {
|
|
78
|
+
var f = this.left.length;
|
|
79
|
+
if (n > f && this.right.forEachInvertedInner(e, n - f, Math.max(i, f) - f, s + f) === !1 || i < f && this.left.forEachInvertedInner(e, Math.min(n, f), i, s) === !1)
|
|
80
|
+
return !1;
|
|
81
|
+
}, t.prototype.sliceInner = function(e, n) {
|
|
82
|
+
if (e == 0 && n == this.length)
|
|
83
|
+
return this;
|
|
84
|
+
var i = this.left.length;
|
|
85
|
+
return n <= i ? this.left.slice(e, n) : e >= i ? this.right.slice(e - i, n - i) : this.left.slice(e, i).append(this.right.slice(0, n - i));
|
|
86
|
+
}, t.prototype.leafAppend = function(e) {
|
|
87
|
+
var n = this.right.leafAppend(e);
|
|
88
|
+
if (n)
|
|
89
|
+
return new t(this.left, n);
|
|
90
|
+
}, t.prototype.leafPrepend = function(e) {
|
|
91
|
+
var n = this.left.leafPrepend(e);
|
|
92
|
+
if (n)
|
|
93
|
+
return new t(n, this.right);
|
|
94
|
+
}, t.prototype.appendInner = function(e) {
|
|
95
|
+
return this.left.depth >= Math.max(this.right.depth, e.depth) + 1 ? new t(this.left, new t(this.right, e)) : new t(this, e);
|
|
96
|
+
}, t;
|
|
97
|
+
})(p);
|
|
31
98
|
export {
|
|
32
|
-
|
|
99
|
+
p as default
|
|
33
100
|
};
|