@boxcustodia/library 1.3.5 → 1.4.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.
- package/dist/index.d.ts +7 -14
- package/dist/index.es100.js +1 -1
- package/dist/index.es101.js +10 -14
- package/dist/index.es102.js +12 -2495
- package/dist/index.es103.js +2497 -10
- package/dist/index.es104.js +3 -3
- package/dist/index.es105.js +5 -5
- package/dist/index.es106.js +1 -1
- package/dist/index.es108.js +55 -41
- package/dist/index.es109.js +54 -41
- package/dist/index.es11.js +1 -1
- package/dist/index.es110.js +92 -18
- package/dist/index.es111.js +35 -39
- package/dist/index.es112.js +23 -54
- package/dist/index.es113.js +29 -54
- package/dist/index.es114.js +40 -91
- package/dist/index.es115.js +42 -37
- package/dist/index.es116.js +17 -23
- package/dist/index.es117.js +39 -28
- package/dist/index.es118.js +1 -1
- package/dist/index.es119.js +1 -1
- package/dist/index.es122.js +1 -1
- package/dist/index.es124.js +7 -7
- package/dist/index.es125.js +257 -18
- package/dist/index.es126.js +13 -259
- package/dist/index.es127.js +39 -13
- package/dist/index.es128.js +14 -39
- package/dist/index.es129.js +12 -6
- package/dist/index.es136.js +1 -1
- package/dist/index.es137.js +3 -3
- package/dist/index.es138.js +1 -1
- package/dist/index.es139.js +1 -1
- package/dist/index.es141.js +17 -18
- package/dist/index.es142.js +42 -25
- package/dist/index.es143.js +10 -18
- package/dist/index.es144.js +10 -44
- package/dist/index.es145.js +21 -10
- package/dist/index.es146.js +7 -4
- package/dist/index.es147.js +10 -848
- package/dist/index.es148.js +13 -240
- package/dist/index.es149.js +19 -4
- package/dist/index.es150.js +25 -67
- package/dist/index.es151.js +238 -19
- package/dist/index.es152.js +69 -13
- package/dist/index.es153.js +848 -10
- package/dist/index.es154.js +4 -13
- package/dist/index.es156.js +1 -1
- package/dist/index.es158.js +2 -2
- package/dist/index.es159.js +1 -1
- package/dist/index.es160.js +1 -1
- package/dist/index.es161.js +1 -1
- package/dist/index.es162.js +9 -9
- package/dist/index.es163.js +3 -3
- package/dist/index.es164.js +14 -14
- package/dist/index.es165.js +2 -2
- package/dist/index.es166.js +7 -215
- package/dist/index.es167.js +2 -8
- package/dist/index.es168.js +33 -2
- package/dist/index.es169.js +396 -23
- package/dist/index.es170.js +14 -405
- package/dist/index.es171.js +32 -14
- package/dist/index.es172.js +10 -32
- package/dist/index.es173.js +6 -11
- package/dist/index.es174.js +19 -6
- package/dist/index.es175.js +34 -17
- package/dist/index.es176.js +210 -30
- package/dist/index.es177.js +19 -25
- package/dist/index.es178.js +37 -205
- package/dist/index.es179.js +7 -17
- package/dist/index.es180.js +25 -35
- package/dist/index.es181.js +205 -11
- package/dist/index.es186.js +4 -4
- package/dist/index.es187.js +3 -3
- package/dist/index.es188.js +2 -2
- package/dist/index.es192.js +1 -1
- package/dist/index.es193.js +9 -9
- package/dist/index.es194.js +8 -8
- package/dist/index.es195.js +4 -4
- package/dist/index.es196.js +3 -45
- package/dist/index.es197.js +45 -7
- package/dist/index.es198.js +8 -4
- package/dist/index.es200.js +1 -1
- package/dist/index.es201.js +26 -35
- package/dist/index.es202.js +2286 -113
- package/dist/index.es203.js +34 -15
- package/dist/index.es204.js +118 -8
- package/dist/index.es205.js +16 -2
- package/dist/index.es206.js +8 -2
- package/dist/index.es207.js +2 -26
- package/dist/index.es208.js +2 -2291
- package/dist/index.es209.js +2 -6
- package/dist/index.es210.js +51 -10
- package/dist/index.es211.js +59 -2048
- package/dist/index.es212.js +21 -2
- package/dist/index.es213.js +6 -50
- package/dist/index.es214.js +35 -62
- package/dist/index.es215.js +11 -14
- package/dist/index.es216.js +6 -9
- package/dist/index.es217.js +14 -40
- package/dist/index.es218.js +2053 -17
- package/dist/index.es219.js +19 -8
- package/dist/index.es220.js +13 -5
- package/dist/index.es221.js +6 -4
- package/dist/index.es222.js +6 -17
- package/dist/index.es223.js +52 -6
- package/dist/index.es224.js +6 -5
- package/dist/index.es225.js +6 -8
- package/dist/index.es226.js +7 -6
- package/dist/index.es227.js +7 -6
- package/dist/index.es228.js +16 -16
- package/dist/index.es229.js +6 -13
- package/dist/index.es230.js +6 -13
- package/dist/index.es231.js +8 -6
- package/dist/index.es232.js +13 -6
- package/dist/index.es233.js +9 -5
- package/dist/index.es234.js +5 -4
- package/dist/index.es235.js +81 -510
- package/dist/index.es236.js +6 -50
- package/dist/index.es237.js +17 -17
- package/dist/index.es238.js +9 -9
- package/dist/index.es239.js +7 -19
- package/dist/index.es240.js +6 -8
- package/dist/index.es241.js +6 -7
- package/dist/index.es242.js +7 -7
- package/dist/index.es243.js +5 -5
- package/dist/index.es244.js +4 -6
- package/dist/index.es245.js +5 -9
- package/dist/index.es246.js +8 -5
- package/dist/index.es247.js +6 -9
- package/dist/index.es248.js +15 -12
- package/dist/index.es249.js +4 -9
- package/dist/index.es250.js +513 -8
- package/dist/index.es251.js +50 -11
- package/dist/index.es252.js +17 -14
- package/dist/index.es253.js +9 -6
- package/dist/index.es254.js +19 -7
- package/dist/index.es255.js +8 -6
- package/dist/index.es256.js +7 -6
- package/dist/index.es257.js +7 -6
- package/dist/index.es258.js +5 -9
- package/dist/index.es259.js +6 -84
- package/dist/index.es26.js +2 -2
- package/dist/index.es260.js +10 -65
- package/dist/index.es261.js +5 -37
- package/dist/index.es262.js +8 -9
- package/dist/index.es263.js +12 -8
- package/dist/index.es264.js +9 -7
- package/dist/index.es265.js +10 -10
- package/dist/index.es266.js +14 -7
- package/dist/index.es267.js +65 -8
- package/dist/index.es268.js +37 -6
- package/dist/index.es269.js +9 -5
- package/dist/index.es270.js +8 -15
- package/dist/index.es271.js +7 -11
- package/dist/index.es272.js +8 -25
- package/dist/index.es273.js +16 -19
- package/dist/index.es274.js +12 -52
- package/dist/index.es275.js +176 -14
- package/dist/index.es276.js +24 -177
- package/dist/index.es277.js +2 -205
- package/dist/index.es278.js +2 -22
- package/dist/index.es279.js +204 -24
- package/dist/index.es280.js +21 -392
- package/dist/index.es281.js +25 -8
- package/dist/index.es282.js +393 -3
- package/dist/index.es283.js +8 -45
- package/dist/index.es284.js +3 -32
- package/dist/index.es285.js +43 -50
- package/dist/index.es286.js +30 -18
- package/dist/index.es287.js +51 -21
- package/dist/index.es288.js +18 -61
- package/dist/index.es289.js +21 -31
- package/dist/index.es290.js +61 -75
- package/dist/index.es291.js +30 -5
- package/dist/index.es292.js +74 -12
- package/dist/index.es293.js +6 -43
- package/dist/index.es294.js +13 -32
- package/dist/index.es295.js +43 -7
- package/dist/index.es296.js +33 -21
- package/dist/index.es297.js +7 -27
- package/dist/index.es298.js +19 -425
- package/dist/index.es299.js +27 -12
- package/dist/index.es300.js +423 -30
- package/dist/index.es301.js +13 -2
- package/dist/index.es302.js +34 -22
- package/dist/index.es303.js +2 -23
- package/dist/index.es304.js +51 -9246
- package/dist/index.es305.js +51 -15094
- package/dist/index.es306.js +2 -283
- package/dist/index.es307.js +22 -60
- package/dist/index.es308.js +22 -9
- package/dist/index.es309.js +9258 -28
- package/dist/index.es310.js +15090 -180
- package/dist/index.es311.js +283 -2
- package/dist/index.es312.js +59 -62
- package/dist/index.es313.js +9 -64
- package/dist/index.es314.js +29 -2
- package/dist/index.es315.js +198 -2
- package/dist/index.es32.js +7 -8
- package/dist/index.es320.js +1 -1
- package/dist/index.es321.js +2 -2
- package/dist/index.es322.js +4 -4
- package/dist/index.es323.js +4 -4
- package/dist/index.es324.js +2 -2
- package/dist/index.es325.js +2 -2
- package/dist/index.es326.js +2 -2
- package/dist/index.es327.js +3 -3
- package/dist/index.es328.js +3 -3
- package/dist/index.es329.js +5 -5
- package/dist/index.es33.js +18 -19
- package/dist/index.es330.js +5 -5
- package/dist/index.es331.js +3 -3
- package/dist/index.es332.js +3 -3
- package/dist/index.es333.js +2 -2
- package/dist/index.es334.js +3 -3
- package/dist/index.es335.js +3 -3
- package/dist/index.es336.js +3 -3
- package/dist/index.es337.js +2 -2
- package/dist/index.es338.js +2 -2
- package/dist/index.es339.js +2 -2
- package/dist/index.es34.js +6 -6
- package/dist/index.es340.js +3 -3
- package/dist/index.es341.js +3 -3
- package/dist/index.es342.js +3 -3
- package/dist/index.es343.js +3 -3
- package/dist/index.es344.js +3 -3
- package/dist/index.es345.js +3 -3
- package/dist/index.es346.js +2 -2
- package/dist/index.es347.js +5 -5
- package/dist/index.es348.js +5 -5
- package/dist/index.es349.js +3 -3
- package/dist/index.es350.js +3 -3
- package/dist/index.es352.js +3 -3
- package/dist/index.es353.js +3 -3
- package/dist/index.es371.js +2 -2
- package/dist/index.es373.js +2 -2
- package/dist/index.es374.js +2 -8
- package/dist/index.es375.js +2 -2
- package/dist/index.es376.js +8 -2
- package/dist/index.es378.js +68 -2
- package/dist/index.es379.js +31 -106
- package/dist/index.es380.js +9 -76
- package/dist/index.es381.js +153 -35
- package/dist/index.es382.js +108 -63
- package/dist/index.es383.js +68 -33
- package/dist/index.es384.js +31 -65
- package/dist/index.es385.js +17 -113
- package/dist/index.es386.js +141 -93
- package/dist/index.es387.js +115 -43
- package/dist/index.es388.js +2 -2
- package/dist/index.es389.js +106 -2
- package/dist/index.es390.js +76 -2
- package/dist/index.es391.js +36 -3
- package/dist/index.es392.js +64 -3
- package/dist/index.es393.js +34 -3
- package/dist/index.es394.js +66 -3
- package/dist/index.es395.js +113 -3
- package/dist/index.es396.js +94 -3
- package/dist/index.es397.js +42 -239
- package/dist/index.es398.js +4 -384
- package/dist/index.es399.js +4 -169
- package/dist/index.es400.js +4 -153
- package/dist/index.es401.js +4 -142
- package/dist/index.es402.js +2 -2
- package/dist/index.es404.js +2 -2
- package/dist/index.es406.js +2 -2
- package/dist/index.es407.js +241 -4
- package/dist/index.es408.js +378 -64
- package/dist/index.es409.js +169 -33
- package/dist/index.es41.js +2 -2
- package/dist/index.es410.js +153 -11
- package/dist/index.es411.js +137 -150
- package/dist/index.es412.js +2 -108
- package/dist/index.es413.js +2 -20
- package/dist/index.es414.js +2 -101
- package/dist/index.es415.js +2 -47
- package/dist/index.es416.js +2 -5
- package/dist/index.es417.js +2 -3
- package/dist/index.es418.js +19 -23
- package/dist/index.es419.js +98 -107
- package/dist/index.es420.js +46 -15
- package/dist/index.es421.js +5 -68
- package/dist/index.es422.js +3 -31
- package/dist/index.es423.js +24 -16
- package/dist/index.es424.js +110 -141
- package/dist/index.es425.js +15 -113
- package/dist/index.es428.js +3 -3
- package/dist/index.es429.js +4 -4
- package/dist/index.es430.js +1 -1
- package/dist/index.es44.js +3 -3
- package/dist/index.es45.js +1 -1
- package/dist/index.es459.js +1 -1
- package/dist/index.es463.js +1 -1
- package/dist/index.es466.js +1 -1
- package/dist/index.es47.js +1 -1
- package/dist/index.es472.js +1 -1
- package/dist/index.es473.js +1 -1
- package/dist/index.es477.js +3 -3
- package/dist/index.es479.js +3 -3
- package/dist/index.es488.js +1 -1
- package/dist/index.es49.js +1 -1
- package/dist/index.es490.js +2 -2
- package/dist/index.es491.js +1 -1
- package/dist/index.es492.js +2 -2
- package/dist/index.es497.js +21 -2
- package/dist/index.es498.js +156 -226
- package/dist/index.es499.js +49 -240
- package/dist/index.es500.js +2 -21
- package/dist/index.es501.js +226 -156
- package/dist/index.es502.js +240 -49
- package/dist/index.es503.js +16 -2
- package/dist/index.es504.js +29 -8
- package/dist/index.es505.js +12 -45
- package/dist/index.es506.js +7 -2
- package/dist/index.es507.js +2 -6
- package/dist/index.es508.js +10 -24
- package/dist/index.es509.js +46 -2
- package/dist/index.es510.js +4 -35
- package/dist/index.es511.js +8 -177
- package/dist/index.es512.js +21 -86
- package/dist/index.es513.js +4 -17
- package/dist/index.es514.js +35 -4
- package/dist/index.es515.js +177 -4
- package/dist/index.es516.js +89 -4
- package/dist/index.es517.js +17 -4
- package/dist/index.es518.js +2 -24
- package/dist/index.es519.js +2 -2
- package/dist/index.es520.js +2 -272
- package/dist/index.es521.js +2 -80
- package/dist/index.es522.js +21 -163
- package/dist/index.es523.js +2 -7
- package/dist/index.es524.js +271 -15
- package/dist/index.es525.js +78 -27
- package/dist/index.es526.js +165 -12
- package/dist/index.es527.js +2 -65
- package/dist/index.es528.js +74 -67
- package/dist/index.es529.js +93 -9
- package/dist/index.es53.js +6 -7
- package/dist/index.es530.js +51 -13
- package/dist/index.es531.js +8 -62
- package/dist/index.es532.js +5 -2
- package/dist/index.es533.js +48 -72
- package/dist/index.es534.js +61 -89
- package/dist/index.es535.js +67 -50
- package/dist/index.es536.js +9 -8
- package/dist/index.es537.js +14 -5
- package/dist/index.es538.js +61 -51
- package/dist/index.es59.js +3 -3
- package/dist/index.es60.js +2 -2
- package/dist/index.es61.js +4 -4
- package/dist/index.es62.js +2 -2
- package/dist/index.es63.js +1 -1
- package/dist/index.es66.js +3 -3
- package/dist/index.es67.js +2 -2
- package/dist/index.es70.js +1 -1
- package/dist/index.es74.js +1 -1
- package/dist/index.es76.js +71 -55
- package/dist/index.es77.js +1 -1
- package/dist/index.es81.js +1 -1
- package/dist/index.es82.js +2 -2
- package/dist/index.es86.js +2 -2
- package/dist/index.es862.js +2 -22
- package/dist/index.es863.js +2 -83
- package/dist/index.es864.js +21 -3
- package/dist/index.es865.js +82 -22
- package/dist/index.es866.js +4 -2
- package/dist/index.es867.js +23 -2
- package/dist/index.es88.js +3 -3
- package/dist/index.es90.js +1 -1
- package/dist/index.es91.js +2 -2
- package/dist/index.es99.js +1 -1
- package/package.json +1 -1
package/dist/index.es524.js
CHANGED
|
@@ -1,18 +1,274 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
1
|
+
import u from "./index.es864.js";
|
|
2
|
+
import J from "./index.es865.js";
|
|
3
|
+
import { safeWindow as K, isElement as l, queryIdRefs as w, hasAnyConcreteRoles as b, isHTMLInputElement as A, isHTMLFieldSetElement as U, isHTMLLegendElement as Y, isHTMLTableElement as Z, isHTMLTableCaptionElement as G, isSVGSVGElement as F, isSVGTitleElement as _, isHTMLOptGroupElement as ee, isHTMLSelectElement as te, isHTMLTextAreaElement as re, isHTMLSlotElement as ie } from "./index.es525.js";
|
|
4
|
+
import { getLocalName as C } from "./index.es526.js";
|
|
5
|
+
function ne(t) {
|
|
6
|
+
return t.trim().replace(/\s\s+/g, " ");
|
|
7
|
+
}
|
|
8
|
+
function ae(t, r) {
|
|
9
|
+
if (!l(t))
|
|
10
|
+
return !1;
|
|
11
|
+
if (t.hasAttribute("hidden") || t.getAttribute("aria-hidden") === "true")
|
|
12
|
+
return !0;
|
|
13
|
+
var i = r(t);
|
|
14
|
+
return i.getPropertyValue("display") === "none" || i.getPropertyValue("visibility") === "hidden";
|
|
15
|
+
}
|
|
16
|
+
function le(t) {
|
|
17
|
+
return b(t, ["button", "combobox", "listbox", "textbox"]) || j(t, "range");
|
|
18
|
+
}
|
|
19
|
+
function j(t, r) {
|
|
20
|
+
if (!l(t))
|
|
21
|
+
return !1;
|
|
22
|
+
switch (r) {
|
|
23
|
+
case "range":
|
|
24
|
+
return b(t, ["meter", "progressbar", "scrollbar", "slider", "spinbutton"]);
|
|
25
|
+
default:
|
|
26
|
+
throw new TypeError("No knowledge about abstract role '".concat(r, "'. This is likely a bug :("));
|
|
27
|
+
}
|
|
28
|
+
}
|
|
29
|
+
function $(t, r) {
|
|
30
|
+
var i = u(t.querySelectorAll(r));
|
|
31
|
+
return w(t, "aria-owns").forEach(function(o) {
|
|
32
|
+
i.push.apply(i, u(o.querySelectorAll(r)));
|
|
33
|
+
}), i;
|
|
34
|
+
}
|
|
35
|
+
function ue(t) {
|
|
36
|
+
return te(t) ? t.selectedOptions || $(t, "[selected]") : $(t, '[aria-selected="true"]');
|
|
37
|
+
}
|
|
38
|
+
function se(t) {
|
|
39
|
+
return b(t, ["none", "presentation"]);
|
|
40
|
+
}
|
|
41
|
+
function oe(t) {
|
|
42
|
+
return G(t);
|
|
43
|
+
}
|
|
44
|
+
function fe(t) {
|
|
45
|
+
return b(t, ["button", "cell", "checkbox", "columnheader", "gridcell", "heading", "label", "legend", "link", "menuitem", "menuitemcheckbox", "menuitemradio", "option", "radio", "row", "rowheader", "switch", "tab", "tooltip", "treeitem"]);
|
|
46
|
+
}
|
|
47
|
+
function de(t) {
|
|
48
|
+
return !1;
|
|
49
|
+
}
|
|
50
|
+
function be(t) {
|
|
51
|
+
return A(t) || re(t) ? t.value : t.textContent || "";
|
|
52
|
+
}
|
|
53
|
+
function D(t) {
|
|
54
|
+
var r = t.getPropertyValue("content");
|
|
55
|
+
return /^["'].*["']$/.test(r) ? r.slice(1, -1) : "";
|
|
56
|
+
}
|
|
57
|
+
function B(t) {
|
|
58
|
+
var r = C(t);
|
|
59
|
+
return r === "button" || r === "input" && t.getAttribute("type") !== "hidden" || r === "meter" || r === "output" || r === "progress" || r === "select" || r === "textarea";
|
|
60
|
+
}
|
|
61
|
+
function Q(t) {
|
|
62
|
+
if (B(t))
|
|
63
|
+
return t;
|
|
64
|
+
var r = null;
|
|
65
|
+
return t.childNodes.forEach(function(i) {
|
|
66
|
+
if (r === null && l(i)) {
|
|
67
|
+
var o = Q(i);
|
|
68
|
+
o !== null && (r = o);
|
|
69
|
+
}
|
|
70
|
+
}), r;
|
|
71
|
+
}
|
|
72
|
+
function me(t) {
|
|
73
|
+
if (t.control !== void 0)
|
|
74
|
+
return t.control;
|
|
75
|
+
var r = t.getAttribute("for");
|
|
76
|
+
return r !== null ? t.ownerDocument.getElementById(r) : Q(t);
|
|
77
|
+
}
|
|
78
|
+
function pe(t) {
|
|
79
|
+
var r = t.labels;
|
|
80
|
+
if (r === null)
|
|
81
|
+
return r;
|
|
82
|
+
if (r !== void 0)
|
|
83
|
+
return u(r);
|
|
84
|
+
if (!B(t))
|
|
85
|
+
return null;
|
|
86
|
+
var i = t.ownerDocument;
|
|
87
|
+
return u(i.querySelectorAll("label")).filter(function(o) {
|
|
88
|
+
return me(o) === t;
|
|
89
|
+
});
|
|
90
|
+
}
|
|
91
|
+
function ve(t) {
|
|
92
|
+
var r = t.assignedNodes();
|
|
93
|
+
return r.length === 0 ? u(t.childNodes) : r;
|
|
94
|
+
}
|
|
95
|
+
function he(t) {
|
|
96
|
+
var r = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {}, i = new J(), o = K(t), R = r.compute, L = R === void 0 ? "name" : R, x = r.computedStyleSupportsPseudoElements, H = x === void 0 ? r.getComputedStyle !== void 0 : x, M = r.getComputedStyle, S = M === void 0 ? o.getComputedStyle.bind(o) : M, V = r.hidden, W = V === void 0 ? !1 : V;
|
|
97
|
+
function T(e, a) {
|
|
98
|
+
var n = "";
|
|
99
|
+
if (l(e) && H) {
|
|
100
|
+
var p = S(e, "::before"), v = D(p);
|
|
101
|
+
n = "".concat(v, " ").concat(n);
|
|
102
|
+
}
|
|
103
|
+
var f = ie(e) ? ve(e) : u(e.childNodes).concat(w(e, "aria-owns"));
|
|
104
|
+
if (f.forEach(function(s) {
|
|
105
|
+
var E = m(s, {
|
|
106
|
+
isEmbeddedInLabel: a.isEmbeddedInLabel,
|
|
107
|
+
isReferenced: !1,
|
|
108
|
+
recursion: !0
|
|
109
|
+
}), d = l(s) ? S(s).getPropertyValue("display") : "inline", h = d !== "inline" ? " " : "";
|
|
110
|
+
n += "".concat(h).concat(E).concat(h);
|
|
111
|
+
}), l(e) && H) {
|
|
112
|
+
var c = S(e, "::after"), g = D(c);
|
|
113
|
+
n = "".concat(n, " ").concat(g);
|
|
114
|
+
}
|
|
115
|
+
return n.trim();
|
|
116
|
+
}
|
|
117
|
+
function y(e, a) {
|
|
118
|
+
var n = e.getAttributeNode(a);
|
|
119
|
+
return n !== null && !i.has(n) && n.value.trim() !== "" ? (i.add(n), n.value) : null;
|
|
120
|
+
}
|
|
121
|
+
function X(e) {
|
|
122
|
+
return l(e) ? y(e, "title") : null;
|
|
123
|
+
}
|
|
124
|
+
function z(e) {
|
|
125
|
+
if (!l(e))
|
|
126
|
+
return null;
|
|
127
|
+
if (U(e)) {
|
|
128
|
+
i.add(e);
|
|
129
|
+
for (var a = u(e.childNodes), n = 0; n < a.length; n += 1) {
|
|
130
|
+
var p = a[n];
|
|
131
|
+
if (Y(p))
|
|
132
|
+
return m(p, {
|
|
133
|
+
isEmbeddedInLabel: !1,
|
|
134
|
+
isReferenced: !1,
|
|
135
|
+
recursion: !1
|
|
136
|
+
});
|
|
137
|
+
}
|
|
138
|
+
} else if (Z(e)) {
|
|
139
|
+
i.add(e);
|
|
140
|
+
for (var v = u(e.childNodes), f = 0; f < v.length; f += 1) {
|
|
141
|
+
var c = v[f];
|
|
142
|
+
if (G(c))
|
|
143
|
+
return m(c, {
|
|
144
|
+
isEmbeddedInLabel: !1,
|
|
145
|
+
isReferenced: !1,
|
|
146
|
+
recursion: !1
|
|
147
|
+
});
|
|
148
|
+
}
|
|
149
|
+
} else if (F(e)) {
|
|
150
|
+
i.add(e);
|
|
151
|
+
for (var g = u(e.childNodes), s = 0; s < g.length; s += 1) {
|
|
152
|
+
var E = g[s];
|
|
153
|
+
if (_(E))
|
|
154
|
+
return E.textContent;
|
|
155
|
+
}
|
|
156
|
+
return null;
|
|
157
|
+
} else if (C(e) === "img" || C(e) === "area") {
|
|
158
|
+
var d = y(e, "alt");
|
|
159
|
+
if (d !== null)
|
|
160
|
+
return d;
|
|
161
|
+
} else if (ee(e)) {
|
|
162
|
+
var h = y(e, "label");
|
|
163
|
+
if (h !== null)
|
|
164
|
+
return h;
|
|
165
|
+
}
|
|
166
|
+
if (A(e) && (e.type === "button" || e.type === "submit" || e.type === "reset")) {
|
|
167
|
+
var k = y(e, "value");
|
|
168
|
+
if (k !== null)
|
|
169
|
+
return k;
|
|
170
|
+
if (e.type === "submit")
|
|
171
|
+
return "Submit";
|
|
172
|
+
if (e.type === "reset")
|
|
173
|
+
return "Reset";
|
|
174
|
+
}
|
|
175
|
+
var I = pe(e);
|
|
176
|
+
if (I !== null && I.length !== 0)
|
|
177
|
+
return i.add(e), u(I).map(function(N) {
|
|
178
|
+
return m(N, {
|
|
179
|
+
isEmbeddedInLabel: !0,
|
|
180
|
+
isReferenced: !1,
|
|
181
|
+
recursion: !0
|
|
182
|
+
});
|
|
183
|
+
}).filter(function(N) {
|
|
184
|
+
return N.length > 0;
|
|
185
|
+
}).join(" ");
|
|
186
|
+
if (A(e) && e.type === "image") {
|
|
187
|
+
var P = y(e, "alt");
|
|
188
|
+
if (P !== null)
|
|
189
|
+
return P;
|
|
190
|
+
var q = y(e, "title");
|
|
191
|
+
return q !== null ? q : "Submit Query";
|
|
192
|
+
}
|
|
193
|
+
if (b(e, ["button"])) {
|
|
194
|
+
var O = T(e, {
|
|
195
|
+
isEmbeddedInLabel: !1
|
|
196
|
+
});
|
|
197
|
+
if (O !== "")
|
|
198
|
+
return O;
|
|
199
|
+
}
|
|
200
|
+
return null;
|
|
201
|
+
}
|
|
202
|
+
function m(e, a) {
|
|
203
|
+
if (i.has(e))
|
|
204
|
+
return "";
|
|
205
|
+
if (!W && ae(e, S) && !a.isReferenced)
|
|
206
|
+
return i.add(e), "";
|
|
207
|
+
var n = l(e) ? e.getAttributeNode("aria-labelledby") : null, p = n !== null && !i.has(n) ? w(e, "aria-labelledby") : [];
|
|
208
|
+
if (L === "name" && !a.isReferenced && p.length > 0)
|
|
209
|
+
return i.add(n), p.map(function(d) {
|
|
210
|
+
return m(d, {
|
|
211
|
+
isEmbeddedInLabel: a.isEmbeddedInLabel,
|
|
212
|
+
isReferenced: !0,
|
|
213
|
+
// this isn't recursion as specified, otherwise we would skip
|
|
214
|
+
// `aria-label` in
|
|
215
|
+
// <input id="myself" aria-label="foo" aria-labelledby="myself"
|
|
216
|
+
recursion: !1
|
|
217
|
+
});
|
|
218
|
+
}).join(" ");
|
|
219
|
+
var v = a.recursion && le(e) && L === "name";
|
|
220
|
+
if (!v) {
|
|
221
|
+
var f = (l(e) && e.getAttribute("aria-label") || "").trim();
|
|
222
|
+
if (f !== "" && L === "name")
|
|
223
|
+
return i.add(e), f;
|
|
224
|
+
if (!se(e)) {
|
|
225
|
+
var c = z(e);
|
|
226
|
+
if (c !== null)
|
|
227
|
+
return i.add(e), c;
|
|
228
|
+
}
|
|
229
|
+
}
|
|
230
|
+
if (b(e, ["menu"]))
|
|
231
|
+
return i.add(e), "";
|
|
232
|
+
if (v || a.isEmbeddedInLabel || a.isReferenced) {
|
|
233
|
+
if (b(e, ["combobox", "listbox"])) {
|
|
234
|
+
i.add(e);
|
|
235
|
+
var g = ue(e);
|
|
236
|
+
return g.length === 0 ? A(e) ? e.value : "" : u(g).map(function(d) {
|
|
237
|
+
return m(d, {
|
|
238
|
+
isEmbeddedInLabel: a.isEmbeddedInLabel,
|
|
239
|
+
isReferenced: !1,
|
|
240
|
+
recursion: !0
|
|
241
|
+
});
|
|
242
|
+
}).join(" ");
|
|
243
|
+
}
|
|
244
|
+
if (j(e, "range"))
|
|
245
|
+
return i.add(e), e.hasAttribute("aria-valuetext") ? e.getAttribute("aria-valuetext") : e.hasAttribute("aria-valuenow") ? e.getAttribute("aria-valuenow") : e.getAttribute("value") || "";
|
|
246
|
+
if (b(e, ["textbox"]))
|
|
247
|
+
return i.add(e), be(e);
|
|
248
|
+
}
|
|
249
|
+
if (fe(e) || l(e) && a.isReferenced || oe(e) || de()) {
|
|
250
|
+
var s = T(e, {
|
|
251
|
+
isEmbeddedInLabel: a.isEmbeddedInLabel
|
|
252
|
+
});
|
|
253
|
+
if (s !== "")
|
|
254
|
+
return i.add(e), s;
|
|
255
|
+
}
|
|
256
|
+
if (e.nodeType === e.TEXT_NODE)
|
|
257
|
+
return i.add(e), e.textContent || "";
|
|
258
|
+
if (a.recursion)
|
|
259
|
+
return i.add(e), T(e, {
|
|
260
|
+
isEmbeddedInLabel: a.isEmbeddedInLabel
|
|
261
|
+
});
|
|
262
|
+
var E = X(e);
|
|
263
|
+
return E !== null ? (i.add(e), E) : (i.add(e), "");
|
|
264
|
+
}
|
|
265
|
+
return ne(m(t, {
|
|
266
|
+
isEmbeddedInLabel: !1,
|
|
267
|
+
// by spec computeAccessibleDescription starts with the referenced elements as roots
|
|
268
|
+
isReferenced: L === "description",
|
|
269
|
+
recursion: !1
|
|
270
|
+
}));
|
|
15
271
|
}
|
|
16
272
|
export {
|
|
17
|
-
|
|
273
|
+
he as computeTextAlternative
|
|
18
274
|
};
|
package/dist/index.es525.js
CHANGED
|
@@ -1,31 +1,82 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
1
|
+
import f, { getLocalName as n } from "./index.es526.js";
|
|
2
|
+
function e(t) {
|
|
3
|
+
return t !== null && t.nodeType === t.ELEMENT_NODE;
|
|
4
|
+
}
|
|
5
|
+
function s(t) {
|
|
6
|
+
return e(t) && n(t) === "caption";
|
|
7
|
+
}
|
|
8
|
+
function a(t) {
|
|
9
|
+
return e(t) && n(t) === "input";
|
|
10
|
+
}
|
|
11
|
+
function m(t) {
|
|
12
|
+
return e(t) && n(t) === "optgroup";
|
|
13
|
+
}
|
|
14
|
+
function E(t) {
|
|
15
|
+
return e(t) && n(t) === "select";
|
|
16
|
+
}
|
|
17
|
+
function T(t) {
|
|
18
|
+
return e(t) && n(t) === "table";
|
|
19
|
+
}
|
|
20
|
+
function p(t) {
|
|
21
|
+
return e(t) && n(t) === "textarea";
|
|
22
|
+
}
|
|
23
|
+
function L(t) {
|
|
24
|
+
var r = t.ownerDocument === null ? t : t.ownerDocument, u = r.defaultView;
|
|
25
|
+
if (u === null)
|
|
26
|
+
throw new TypeError("no window available");
|
|
27
|
+
return u;
|
|
28
|
+
}
|
|
29
|
+
function w(t) {
|
|
30
|
+
return e(t) && n(t) === "fieldset";
|
|
31
|
+
}
|
|
32
|
+
function g(t) {
|
|
33
|
+
return e(t) && n(t) === "legend";
|
|
34
|
+
}
|
|
35
|
+
function M(t) {
|
|
36
|
+
return e(t) && n(t) === "slot";
|
|
37
|
+
}
|
|
38
|
+
function o(t) {
|
|
39
|
+
return e(t) && t.ownerSVGElement !== void 0;
|
|
40
|
+
}
|
|
41
|
+
function H(t) {
|
|
42
|
+
return e(t) && n(t) === "svg";
|
|
43
|
+
}
|
|
44
|
+
function S(t) {
|
|
45
|
+
return o(t) && n(t) === "title";
|
|
46
|
+
}
|
|
47
|
+
function V(t, r) {
|
|
48
|
+
if (e(t) && t.hasAttribute(r)) {
|
|
49
|
+
var u = t.getAttribute(r).split(" "), l = t.getRootNode ? t.getRootNode() : t.ownerDocument;
|
|
50
|
+
return u.map(function(i) {
|
|
51
|
+
return l.getElementById(i);
|
|
52
|
+
}).filter(
|
|
53
|
+
function(i) {
|
|
54
|
+
return i !== null;
|
|
55
|
+
}
|
|
56
|
+
// TODO: why does this not narrow?
|
|
9
57
|
);
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
const f = n.slice(r.length);
|
|
16
|
-
return { value: a, rest: f };
|
|
17
|
-
};
|
|
18
|
-
}
|
|
19
|
-
function s(t, n) {
|
|
20
|
-
for (const e in t)
|
|
21
|
-
if (Object.prototype.hasOwnProperty.call(t, e) && n(t[e]))
|
|
22
|
-
return e;
|
|
23
|
-
}
|
|
24
|
-
function o(t, n) {
|
|
25
|
-
for (let e = 0; e < t.length; e++)
|
|
26
|
-
if (n(t[e]))
|
|
27
|
-
return e;
|
|
58
|
+
}
|
|
59
|
+
return [];
|
|
60
|
+
}
|
|
61
|
+
function G(t, r) {
|
|
62
|
+
return e(t) ? r.indexOf(f(t)) !== -1 : !1;
|
|
28
63
|
}
|
|
29
64
|
export {
|
|
30
|
-
|
|
65
|
+
n as getLocalName,
|
|
66
|
+
G as hasAnyConcreteRoles,
|
|
67
|
+
e as isElement,
|
|
68
|
+
w as isHTMLFieldSetElement,
|
|
69
|
+
a as isHTMLInputElement,
|
|
70
|
+
g as isHTMLLegendElement,
|
|
71
|
+
m as isHTMLOptGroupElement,
|
|
72
|
+
E as isHTMLSelectElement,
|
|
73
|
+
M as isHTMLSlotElement,
|
|
74
|
+
s as isHTMLTableCaptionElement,
|
|
75
|
+
T as isHTMLTableElement,
|
|
76
|
+
p as isHTMLTextAreaElement,
|
|
77
|
+
o as isSVGElement,
|
|
78
|
+
H as isSVGSVGElement,
|
|
79
|
+
S as isSVGTitleElement,
|
|
80
|
+
V as queryIdRefs,
|
|
81
|
+
L as safeWindow
|
|
31
82
|
};
|
package/dist/index.es526.js
CHANGED
|
@@ -1,15 +1,168 @@
|
|
|
1
|
-
function
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
1
|
+
function i(a) {
|
|
2
|
+
var e;
|
|
3
|
+
return (
|
|
4
|
+
// eslint-disable-next-line no-restricted-properties -- actual guard for environments without localName
|
|
5
|
+
(e = a.localName) !== null && e !== void 0 ? e : (
|
|
6
|
+
// eslint-disable-next-line no-restricted-properties -- required for the fallback
|
|
7
|
+
a.tagName.toLowerCase()
|
|
8
|
+
)
|
|
9
|
+
);
|
|
10
|
+
}
|
|
11
|
+
var n = {
|
|
12
|
+
article: "article",
|
|
13
|
+
aside: "complementary",
|
|
14
|
+
button: "button",
|
|
15
|
+
datalist: "listbox",
|
|
16
|
+
dd: "definition",
|
|
17
|
+
details: "group",
|
|
18
|
+
dialog: "dialog",
|
|
19
|
+
dt: "term",
|
|
20
|
+
fieldset: "group",
|
|
21
|
+
figure: "figure",
|
|
22
|
+
// WARNING: Only with an accessible name
|
|
23
|
+
form: "form",
|
|
24
|
+
footer: "contentinfo",
|
|
25
|
+
h1: "heading",
|
|
26
|
+
h2: "heading",
|
|
27
|
+
h3: "heading",
|
|
28
|
+
h4: "heading",
|
|
29
|
+
h5: "heading",
|
|
30
|
+
h6: "heading",
|
|
31
|
+
header: "banner",
|
|
32
|
+
hr: "separator",
|
|
33
|
+
html: "document",
|
|
34
|
+
legend: "legend",
|
|
35
|
+
li: "listitem",
|
|
36
|
+
math: "math",
|
|
37
|
+
main: "main",
|
|
38
|
+
menu: "list",
|
|
39
|
+
nav: "navigation",
|
|
40
|
+
ol: "list",
|
|
41
|
+
optgroup: "group",
|
|
42
|
+
// WARNING: Only in certain context
|
|
43
|
+
option: "option",
|
|
44
|
+
output: "status",
|
|
45
|
+
progress: "progressbar",
|
|
46
|
+
// WARNING: Only with an accessible name
|
|
47
|
+
section: "region",
|
|
48
|
+
summary: "button",
|
|
49
|
+
table: "table",
|
|
50
|
+
tbody: "rowgroup",
|
|
51
|
+
textarea: "textbox",
|
|
52
|
+
tfoot: "rowgroup",
|
|
53
|
+
// WARNING: Only in certain context
|
|
54
|
+
td: "cell",
|
|
55
|
+
th: "columnheader",
|
|
56
|
+
thead: "rowgroup",
|
|
57
|
+
tr: "row",
|
|
58
|
+
ul: "list"
|
|
59
|
+
}, o = {
|
|
60
|
+
caption: /* @__PURE__ */ new Set(["aria-label", "aria-labelledby"]),
|
|
61
|
+
code: /* @__PURE__ */ new Set(["aria-label", "aria-labelledby"]),
|
|
62
|
+
deletion: /* @__PURE__ */ new Set(["aria-label", "aria-labelledby"]),
|
|
63
|
+
emphasis: /* @__PURE__ */ new Set(["aria-label", "aria-labelledby"]),
|
|
64
|
+
generic: /* @__PURE__ */ new Set(["aria-label", "aria-labelledby", "aria-roledescription"]),
|
|
65
|
+
insertion: /* @__PURE__ */ new Set(["aria-label", "aria-labelledby"]),
|
|
66
|
+
paragraph: /* @__PURE__ */ new Set(["aria-label", "aria-labelledby"]),
|
|
67
|
+
presentation: /* @__PURE__ */ new Set(["aria-label", "aria-labelledby"]),
|
|
68
|
+
strong: /* @__PURE__ */ new Set(["aria-label", "aria-labelledby"]),
|
|
69
|
+
subscript: /* @__PURE__ */ new Set(["aria-label", "aria-labelledby"]),
|
|
70
|
+
superscript: /* @__PURE__ */ new Set(["aria-label", "aria-labelledby"])
|
|
71
|
+
};
|
|
72
|
+
function s(a, e) {
|
|
73
|
+
return [
|
|
74
|
+
"aria-atomic",
|
|
75
|
+
"aria-busy",
|
|
76
|
+
"aria-controls",
|
|
77
|
+
"aria-current",
|
|
78
|
+
"aria-describedby",
|
|
79
|
+
"aria-details",
|
|
80
|
+
// "disabled",
|
|
81
|
+
"aria-dropeffect",
|
|
82
|
+
// "errormessage",
|
|
83
|
+
"aria-flowto",
|
|
84
|
+
"aria-grabbed",
|
|
85
|
+
// "haspopup",
|
|
86
|
+
"aria-hidden",
|
|
87
|
+
// "invalid",
|
|
88
|
+
"aria-keyshortcuts",
|
|
89
|
+
"aria-label",
|
|
90
|
+
"aria-labelledby",
|
|
91
|
+
"aria-live",
|
|
92
|
+
"aria-owns",
|
|
93
|
+
"aria-relevant",
|
|
94
|
+
"aria-roledescription"
|
|
95
|
+
].some(function(r) {
|
|
96
|
+
var t;
|
|
97
|
+
return a.hasAttribute(r) && !((t = o[e]) !== null && t !== void 0 && t.has(r));
|
|
98
|
+
});
|
|
99
|
+
}
|
|
100
|
+
function l(a, e) {
|
|
101
|
+
return s(a, e);
|
|
102
|
+
}
|
|
103
|
+
function c(a) {
|
|
104
|
+
var e = b(a);
|
|
105
|
+
if (e === null || e === "presentation") {
|
|
106
|
+
var r = u(a);
|
|
107
|
+
if (e !== "presentation" || l(a, r || ""))
|
|
108
|
+
return r;
|
|
109
|
+
}
|
|
110
|
+
return e;
|
|
111
|
+
}
|
|
112
|
+
function u(a) {
|
|
113
|
+
var e = n[i(a)];
|
|
114
|
+
if (e !== void 0)
|
|
115
|
+
return e;
|
|
116
|
+
switch (i(a)) {
|
|
117
|
+
case "a":
|
|
118
|
+
case "area":
|
|
119
|
+
case "link":
|
|
120
|
+
if (a.hasAttribute("href"))
|
|
121
|
+
return "link";
|
|
122
|
+
break;
|
|
123
|
+
case "img":
|
|
124
|
+
return a.getAttribute("alt") === "" && !l(a, "img") ? "presentation" : "img";
|
|
125
|
+
case "input": {
|
|
126
|
+
var r = a, t = r.type;
|
|
127
|
+
switch (t) {
|
|
128
|
+
case "button":
|
|
129
|
+
case "image":
|
|
130
|
+
case "reset":
|
|
131
|
+
case "submit":
|
|
132
|
+
return "button";
|
|
133
|
+
case "checkbox":
|
|
134
|
+
case "radio":
|
|
135
|
+
return t;
|
|
136
|
+
case "range":
|
|
137
|
+
return "slider";
|
|
138
|
+
case "email":
|
|
139
|
+
case "tel":
|
|
140
|
+
case "text":
|
|
141
|
+
case "url":
|
|
142
|
+
return a.hasAttribute("list") ? "combobox" : "textbox";
|
|
143
|
+
case "search":
|
|
144
|
+
return a.hasAttribute("list") ? "combobox" : "searchbox";
|
|
145
|
+
case "number":
|
|
146
|
+
return "spinbutton";
|
|
147
|
+
default:
|
|
148
|
+
return null;
|
|
149
|
+
}
|
|
150
|
+
}
|
|
151
|
+
case "select":
|
|
152
|
+
return a.hasAttribute("multiple") || a.size > 1 ? "listbox" : "combobox";
|
|
153
|
+
}
|
|
154
|
+
return null;
|
|
155
|
+
}
|
|
156
|
+
function b(a) {
|
|
157
|
+
var e = a.getAttribute("role");
|
|
158
|
+
if (e !== null) {
|
|
159
|
+
var r = e.trim().split(" ")[0];
|
|
160
|
+
if (r.length > 0)
|
|
161
|
+
return r;
|
|
162
|
+
}
|
|
163
|
+
return null;
|
|
12
164
|
}
|
|
13
165
|
export {
|
|
14
|
-
|
|
166
|
+
c as default,
|
|
167
|
+
i as getLocalName
|
|
15
168
|
};
|
package/dist/index.es527.js
CHANGED
|
@@ -1,67 +1,4 @@
|
|
|
1
|
-
|
|
2
|
-
function l(r) {
|
|
3
|
-
return r;
|
|
4
|
-
}
|
|
5
|
-
function h(r, t) {
|
|
6
|
-
t === void 0 && (t = l);
|
|
7
|
-
var e = [], o = !1, c = {
|
|
8
|
-
read: function() {
|
|
9
|
-
if (o)
|
|
10
|
-
throw new Error("Sidecar: could not `read` from an `assigned` medium. `read` could be used only with `useMedium`.");
|
|
11
|
-
return e.length ? e[e.length - 1] : r;
|
|
12
|
-
},
|
|
13
|
-
useMedium: function(u) {
|
|
14
|
-
var n = t(u, o);
|
|
15
|
-
return e.push(n), function() {
|
|
16
|
-
e = e.filter(function(i) {
|
|
17
|
-
return i !== n;
|
|
18
|
-
});
|
|
19
|
-
};
|
|
20
|
-
},
|
|
21
|
-
assignSyncMedium: function(u) {
|
|
22
|
-
for (o = !0; e.length; ) {
|
|
23
|
-
var n = e;
|
|
24
|
-
e = [], n.forEach(u);
|
|
25
|
-
}
|
|
26
|
-
e = {
|
|
27
|
-
push: function(i) {
|
|
28
|
-
return u(i);
|
|
29
|
-
},
|
|
30
|
-
filter: function() {
|
|
31
|
-
return e;
|
|
32
|
-
}
|
|
33
|
-
};
|
|
34
|
-
},
|
|
35
|
-
assignMedium: function(u) {
|
|
36
|
-
o = !0;
|
|
37
|
-
var n = [];
|
|
38
|
-
if (e.length) {
|
|
39
|
-
var i = e;
|
|
40
|
-
e = [], i.forEach(u), n = e;
|
|
41
|
-
}
|
|
42
|
-
var s = function() {
|
|
43
|
-
var f = n;
|
|
44
|
-
n = [], f.forEach(u);
|
|
45
|
-
}, a = function() {
|
|
46
|
-
return Promise.resolve().then(s);
|
|
47
|
-
};
|
|
48
|
-
a(), e = {
|
|
49
|
-
push: function(f) {
|
|
50
|
-
n.push(f), a();
|
|
51
|
-
},
|
|
52
|
-
filter: function(f) {
|
|
53
|
-
return n = n.filter(f), e;
|
|
54
|
-
}
|
|
55
|
-
};
|
|
56
|
-
}
|
|
57
|
-
};
|
|
58
|
-
return c;
|
|
59
|
-
}
|
|
60
|
-
function v(r) {
|
|
61
|
-
r === void 0 && (r = {});
|
|
62
|
-
var t = h(null);
|
|
63
|
-
return t.options = d({ async: !0, ssr: !1 }, r), t;
|
|
64
|
-
}
|
|
1
|
+
var e = { exports: {} };
|
|
65
2
|
export {
|
|
66
|
-
|
|
3
|
+
e as __module
|
|
67
4
|
};
|