@quidgest/ui 0.16.49 → 0.16.50
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/json/api.json +220 -5
- package/dist/manifest/components.json +1 -0
- package/dist/ui.css +9 -0
- package/dist/ui.esm.js +7048 -7703
- package/dist/ui.js +27 -38
- package/dist/ui.min.css +1 -1
- package/dist/ui.min.js +1026 -1148
- package/dist/ui.scss +9 -1
- package/esm/components/QDialog/QDialog.d.ts +3 -2
- package/esm/components/QDialog/QDialog.d.ts.map +1 -1
- package/esm/components/QDialog/QDialog.vue.js +83 -77
- package/esm/components/QDialog/index.d.ts +21 -9
- package/esm/components/QDialog/index.d.ts.map +1 -1
- package/esm/components/QDialog/types.d.ts +24 -3
- package/esm/components/QDialog/types.d.ts.map +1 -1
- package/esm/components/QFocusWrap/QFocusWrap.d.ts +26 -0
- package/esm/components/QFocusWrap/QFocusWrap.d.ts.map +1 -0
- package/esm/components/QFocusWrap/QFocusWrap.vue.js +119 -0
- package/esm/components/QFocusWrap/QFocusWrap.vue2.js +4 -0
- package/esm/components/QFocusWrap/index.d.ts +31 -0
- package/esm/components/QFocusWrap/index.d.ts.map +1 -0
- package/esm/components/QFocusWrap/index.js +6 -0
- package/esm/components/QFocusWrap/types.d.ts +42 -0
- package/esm/components/QFocusWrap/types.d.ts.map +1 -0
- package/esm/components/QOverlay/QOverlay.d.ts +2 -1
- package/esm/components/QOverlay/QOverlay.d.ts.map +1 -1
- package/esm/components/QOverlay/QOverlay.vue.js +126 -120
- package/esm/components/QOverlay/index.d.ts +18 -6
- package/esm/components/QOverlay/index.d.ts.map +1 -1
- package/esm/components/QOverlay/types.d.ts +24 -3
- package/esm/components/QOverlay/types.d.ts.map +1 -1
- package/esm/components/QPasswordField/QPasswordFieldMeterOverlay.vue.js +17 -14
- package/esm/components/QPopover/QPopover.d.ts.map +1 -1
- package/esm/components/QPopover/QPopover.vue.js +13 -14
- package/esm/components/QSelect/QSelect.d.ts +8 -8
- package/esm/components/QSelect/QSelect.d.ts.map +1 -1
- package/esm/components/QSelect/QSelect.vue.js +79 -77
- package/esm/components/QSelect/constants.d.ts +1 -0
- package/esm/components/QSelect/constants.d.ts.map +1 -1
- package/esm/components/QSelect/constants.js +10 -8
- package/esm/components/index.d.ts +1 -0
- package/esm/components/index.d.ts.map +1 -1
- package/esm/components/index.js +76 -74
- package/esm/composables/useDialog/index.d.ts +4 -1
- package/esm/composables/useDialog/index.d.ts.map +1 -1
- package/esm/index.d.ts +1 -0
- package/package.json +1 -1
- package/esm/vendors/focus-trap/dist/focus-trap.esm.js +0 -473
- package/esm/vendors/focus-trap-vue/dist/focus-trap-vue.esm-browser.js +0 -104
- package/esm/vendors/tabbable/dist/index.esm.js +0 -202
|
@@ -1,202 +0,0 @@
|
|
|
1
|
-
/*!
|
|
2
|
-
* tabbable 6.2.0
|
|
3
|
-
* @license MIT, https://github.com/focus-trap/tabbable/blob/master/LICENSE
|
|
4
|
-
*/
|
|
5
|
-
var w = ["input:not([inert])", "select:not([inert])", "textarea:not([inert])", "a[href]:not([inert])", "button:not([inert])", "[tabindex]:not(slot):not([inert])", "audio[controls]:not([inert])", "video[controls]:not([inert])", '[contenteditable]:not([contenteditable="false"]):not([inert])', "details>summary:first-of-type:not([inert])", "details:not([inert])"], b = /* @__PURE__ */ w.join(","), T = typeof Element > "u", s = T ? function() {
|
|
6
|
-
} : Element.prototype.matches || Element.prototype.msMatchesSelector || Element.prototype.webkitMatchesSelector, v = !T && Element.prototype.getRootNode ? function(i) {
|
|
7
|
-
var e;
|
|
8
|
-
return i == null || (e = i.getRootNode) === null || e === void 0 ? void 0 : e.call(i);
|
|
9
|
-
} : function(i) {
|
|
10
|
-
return i == null ? void 0 : i.ownerDocument;
|
|
11
|
-
}, h = function i(e, t) {
|
|
12
|
-
var r;
|
|
13
|
-
t === void 0 && (t = !0);
|
|
14
|
-
var a = e == null || (r = e.getAttribute) === null || r === void 0 ? void 0 : r.call(e, "inert"), u = a === "" || a === "true", n = u || t && e && i(e.parentNode);
|
|
15
|
-
return n;
|
|
16
|
-
}, A = function(e) {
|
|
17
|
-
var t, r = e == null || (t = e.getAttribute) === null || t === void 0 ? void 0 : t.call(e, "contenteditable");
|
|
18
|
-
return r === "" || r === "true";
|
|
19
|
-
}, I = function(e, t, r) {
|
|
20
|
-
if (h(e))
|
|
21
|
-
return [];
|
|
22
|
-
var a = Array.prototype.slice.apply(e.querySelectorAll(b));
|
|
23
|
-
return t && s.call(e, b) && a.unshift(e), a = a.filter(r), a;
|
|
24
|
-
}, m = function i(e, t, r) {
|
|
25
|
-
for (var a = [], u = Array.from(e); u.length; ) {
|
|
26
|
-
var n = u.shift();
|
|
27
|
-
if (!h(n, !1))
|
|
28
|
-
if (n.tagName === "SLOT") {
|
|
29
|
-
var l = n.assignedElements(), d = l.length ? l : n.children, f = i(d, !0, r);
|
|
30
|
-
r.flatten ? a.push.apply(a, f) : a.push({
|
|
31
|
-
scopeParent: n,
|
|
32
|
-
candidates: f
|
|
33
|
-
});
|
|
34
|
-
} else {
|
|
35
|
-
var o = s.call(n, b);
|
|
36
|
-
o && r.filter(n) && (t || !e.includes(n)) && a.push(n);
|
|
37
|
-
var c = n.shadowRoot || // check for an undisclosed shadow
|
|
38
|
-
typeof r.getShadowRoot == "function" && r.getShadowRoot(n), E = !h(c, !1) && (!r.shadowRootFilter || r.shadowRootFilter(n));
|
|
39
|
-
if (c && E) {
|
|
40
|
-
var y = i(c === !0 ? n.children : c.children, !0, r);
|
|
41
|
-
r.flatten ? a.push.apply(a, y) : a.push({
|
|
42
|
-
scopeParent: n,
|
|
43
|
-
candidates: y
|
|
44
|
-
});
|
|
45
|
-
} else
|
|
46
|
-
u.unshift.apply(u, n.children);
|
|
47
|
-
}
|
|
48
|
-
}
|
|
49
|
-
return a;
|
|
50
|
-
}, N = function(e) {
|
|
51
|
-
return !isNaN(parseInt(e.getAttribute("tabindex"), 10));
|
|
52
|
-
}, R = function(e) {
|
|
53
|
-
if (!e)
|
|
54
|
-
throw new Error("No node provided");
|
|
55
|
-
return e.tabIndex < 0 && (/^(AUDIO|VIDEO|DETAILS)$/.test(e.tagName) || A(e)) && !N(e) ? 0 : e.tabIndex;
|
|
56
|
-
}, x = function(e, t) {
|
|
57
|
-
var r = R(e);
|
|
58
|
-
return r < 0 && t && !N(e) ? 0 : r;
|
|
59
|
-
}, O = function(e, t) {
|
|
60
|
-
return e.tabIndex === t.tabIndex ? e.documentOrder - t.documentOrder : e.tabIndex - t.tabIndex;
|
|
61
|
-
}, C = function(e) {
|
|
62
|
-
return e.tagName === "INPUT";
|
|
63
|
-
}, F = function(e) {
|
|
64
|
-
return C(e) && e.type === "hidden";
|
|
65
|
-
}, D = function(e) {
|
|
66
|
-
var t = e.tagName === "DETAILS" && Array.prototype.slice.apply(e.children).some(function(r) {
|
|
67
|
-
return r.tagName === "SUMMARY";
|
|
68
|
-
});
|
|
69
|
-
return t;
|
|
70
|
-
}, k = function(e, t) {
|
|
71
|
-
for (var r = 0; r < e.length; r++)
|
|
72
|
-
if (e[r].checked && e[r].form === t)
|
|
73
|
-
return e[r];
|
|
74
|
-
}, M = function(e) {
|
|
75
|
-
if (!e.name)
|
|
76
|
-
return !0;
|
|
77
|
-
var t = e.form || v(e), r = function(l) {
|
|
78
|
-
return t.querySelectorAll('input[type="radio"][name="' + l + '"]');
|
|
79
|
-
}, a;
|
|
80
|
-
if (typeof window < "u" && typeof window.CSS < "u" && typeof window.CSS.escape == "function")
|
|
81
|
-
a = r(window.CSS.escape(e.name));
|
|
82
|
-
else
|
|
83
|
-
try {
|
|
84
|
-
a = r(e.name);
|
|
85
|
-
} catch (n) {
|
|
86
|
-
return console.error("Looks like you have a radio button with a name attribute containing invalid CSS selector characters and need the CSS.escape polyfill: %s", n.message), !1;
|
|
87
|
-
}
|
|
88
|
-
var u = k(a, e.form);
|
|
89
|
-
return !u || u === e;
|
|
90
|
-
}, L = function(e) {
|
|
91
|
-
return C(e) && e.type === "radio";
|
|
92
|
-
}, P = function(e) {
|
|
93
|
-
return L(e) && !M(e);
|
|
94
|
-
}, B = function(e) {
|
|
95
|
-
var t, r = e && v(e), a = (t = r) === null || t === void 0 ? void 0 : t.host, u = !1;
|
|
96
|
-
if (r && r !== e) {
|
|
97
|
-
var n, l, d;
|
|
98
|
-
for (u = !!((n = a) !== null && n !== void 0 && (l = n.ownerDocument) !== null && l !== void 0 && l.contains(a) || e != null && (d = e.ownerDocument) !== null && d !== void 0 && d.contains(e)); !u && a; ) {
|
|
99
|
-
var f, o, c;
|
|
100
|
-
r = v(a), a = (f = r) === null || f === void 0 ? void 0 : f.host, u = !!((o = a) !== null && o !== void 0 && (c = o.ownerDocument) !== null && c !== void 0 && c.contains(a));
|
|
101
|
-
}
|
|
102
|
-
}
|
|
103
|
-
return u;
|
|
104
|
-
}, p = function(e) {
|
|
105
|
-
var t = e.getBoundingClientRect(), r = t.width, a = t.height;
|
|
106
|
-
return r === 0 && a === 0;
|
|
107
|
-
}, q = function(e, t) {
|
|
108
|
-
var r = t.displayCheck, a = t.getShadowRoot;
|
|
109
|
-
if (getComputedStyle(e).visibility === "hidden")
|
|
110
|
-
return !0;
|
|
111
|
-
var u = s.call(e, "details>summary:first-of-type"), n = u ? e.parentElement : e;
|
|
112
|
-
if (s.call(n, "details:not([open]) *"))
|
|
113
|
-
return !0;
|
|
114
|
-
if (!r || r === "full" || r === "legacy-full") {
|
|
115
|
-
if (typeof a == "function") {
|
|
116
|
-
for (var l = e; e; ) {
|
|
117
|
-
var d = e.parentElement, f = v(e);
|
|
118
|
-
if (d && !d.shadowRoot && a(d) === !0)
|
|
119
|
-
return p(e);
|
|
120
|
-
e.assignedSlot ? e = e.assignedSlot : !d && f !== e.ownerDocument ? e = f.host : e = d;
|
|
121
|
-
}
|
|
122
|
-
e = l;
|
|
123
|
-
}
|
|
124
|
-
if (B(e))
|
|
125
|
-
return !e.getClientRects().length;
|
|
126
|
-
if (r !== "legacy-full")
|
|
127
|
-
return !0;
|
|
128
|
-
} else if (r === "non-zero-area")
|
|
129
|
-
return p(e);
|
|
130
|
-
return !1;
|
|
131
|
-
}, U = function(e) {
|
|
132
|
-
if (/^(INPUT|BUTTON|SELECT|TEXTAREA)$/.test(e.tagName))
|
|
133
|
-
for (var t = e.parentElement; t; ) {
|
|
134
|
-
if (t.tagName === "FIELDSET" && t.disabled) {
|
|
135
|
-
for (var r = 0; r < t.children.length; r++) {
|
|
136
|
-
var a = t.children.item(r);
|
|
137
|
-
if (a.tagName === "LEGEND")
|
|
138
|
-
return s.call(t, "fieldset[disabled] *") ? !0 : !a.contains(e);
|
|
139
|
-
}
|
|
140
|
-
return !0;
|
|
141
|
-
}
|
|
142
|
-
t = t.parentElement;
|
|
143
|
-
}
|
|
144
|
-
return !1;
|
|
145
|
-
}, g = function(e, t) {
|
|
146
|
-
return !(t.disabled || // we must do an inert look up to filter out any elements inside an inert ancestor
|
|
147
|
-
// because we're limited in the type of selectors we can use in JSDom (see related
|
|
148
|
-
// note related to `candidateSelectors`)
|
|
149
|
-
h(t) || F(t) || q(t, e) || // For a details element with a summary, the summary element gets the focus
|
|
150
|
-
D(t) || U(t));
|
|
151
|
-
}, S = function(e, t) {
|
|
152
|
-
return !(P(t) || R(t) < 0 || !g(e, t));
|
|
153
|
-
}, V = function(e) {
|
|
154
|
-
var t = parseInt(e.getAttribute("tabindex"), 10);
|
|
155
|
-
return !!(isNaN(t) || t >= 0);
|
|
156
|
-
}, j = function i(e) {
|
|
157
|
-
var t = [], r = [];
|
|
158
|
-
return e.forEach(function(a, u) {
|
|
159
|
-
var n = !!a.scopeParent, l = n ? a.scopeParent : a, d = x(l, n), f = n ? i(a.candidates) : l;
|
|
160
|
-
d === 0 ? n ? t.push.apply(t, f) : t.push(l) : r.push({
|
|
161
|
-
documentOrder: u,
|
|
162
|
-
tabIndex: d,
|
|
163
|
-
item: a,
|
|
164
|
-
isScope: n,
|
|
165
|
-
content: f
|
|
166
|
-
});
|
|
167
|
-
}), r.sort(O).reduce(function(a, u) {
|
|
168
|
-
return u.isScope ? a.push.apply(a, u.content) : a.push(u.content), a;
|
|
169
|
-
}, []).concat(t);
|
|
170
|
-
}, Z = function(e, t) {
|
|
171
|
-
t = t || {};
|
|
172
|
-
var r;
|
|
173
|
-
return t.getShadowRoot ? r = m([e], t.includeContainer, {
|
|
174
|
-
filter: S.bind(null, t),
|
|
175
|
-
flatten: !1,
|
|
176
|
-
getShadowRoot: t.getShadowRoot,
|
|
177
|
-
shadowRootFilter: V
|
|
178
|
-
}) : r = I(e, t.includeContainer, S.bind(null, t)), j(r);
|
|
179
|
-
}, z = function(e, t) {
|
|
180
|
-
t = t || {};
|
|
181
|
-
var r;
|
|
182
|
-
return t.getShadowRoot ? r = m([e], t.includeContainer, {
|
|
183
|
-
filter: g.bind(null, t),
|
|
184
|
-
flatten: !0,
|
|
185
|
-
getShadowRoot: t.getShadowRoot
|
|
186
|
-
}) : r = I(e, t.includeContainer, g.bind(null, t)), r;
|
|
187
|
-
}, G = function(e, t) {
|
|
188
|
-
if (t = t || {}, !e)
|
|
189
|
-
throw new Error("No node provided");
|
|
190
|
-
return s.call(e, b) === !1 ? !1 : S(t, e);
|
|
191
|
-
}, W = /* @__PURE__ */ w.concat("iframe").join(","), X = function(e, t) {
|
|
192
|
-
if (t = t || {}, !e)
|
|
193
|
-
throw new Error("No node provided");
|
|
194
|
-
return s.call(e, W) === !1 ? !1 : g(t, e);
|
|
195
|
-
};
|
|
196
|
-
export {
|
|
197
|
-
z as focusable,
|
|
198
|
-
R as getTabIndex,
|
|
199
|
-
X as isFocusable,
|
|
200
|
-
G as isTabbable,
|
|
201
|
-
Z as tabbable
|
|
202
|
-
};
|