lizaui 9.0.45 → 9.0.46
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/autocomplete/index.cjs.js.map +1 -1
- package/dist/autocomplete/index.es.js.map +1 -1
- package/dist/chunks/createLucideIcon-Bxsl-Fn_.js.map +1 -1
- package/dist/chunks/createLucideIcon-C5oU6LEj.js.map +1 -1
- package/dist/chunks/index--Lp5VMoT.js.map +1 -1
- package/dist/chunks/index-xVewW5kR.js.map +1 -1
- package/dist/chunks/scroll-area-C-TOj3zQ.js.map +1 -1
- package/dist/chunks/scroll-area-CLk54_91.js.map +1 -1
- package/dist/chunks/select-B6phC9mi.js.map +1 -1
- package/dist/chunks/select-DVjRpYfX.js.map +1 -1
- package/dist/chunks/{tooltip-BVHPsFJx.js → tooltip-BVafMD5T.js} +37 -17
- package/dist/chunks/tooltip-BVafMD5T.js.map +1 -0
- package/dist/chunks/{tooltip-BT4TzSeu.js → tooltip-hhxclHkr.js} +37 -17
- package/dist/chunks/tooltip-hhxclHkr.js.map +1 -0
- package/dist/table/index.cjs.js +1 -1
- package/dist/table/index.es.js +1 -1
- package/dist/time-input/index.cjs.js +34 -9
- package/dist/time-input/index.cjs.js.map +1 -1
- package/dist/time-input/index.es.js +34 -9
- package/dist/time-input/index.es.js.map +1 -1
- package/dist/tooltip/index.cjs.js +1 -1
- package/dist/tooltip/index.es.js +1 -1
- package/dist/ui/index.cjs.js.map +1 -1
- package/dist/ui/index.es.js.map +1 -1
- package/package.json +10 -10
- package/dist/chunks/tooltip-BT4TzSeu.js.map +0 -1
- package/dist/chunks/tooltip-BVHPsFJx.js.map +0 -1
|
@@ -17,14 +17,14 @@ var getRootNode = !NoElement && Element.prototype.getRootNode ? function(element
|
|
|
17
17
|
} : function(element) {
|
|
18
18
|
return element === null || element === void 0 ? void 0 : element.ownerDocument;
|
|
19
19
|
};
|
|
20
|
-
var
|
|
20
|
+
var _isInert = function isInert(node, lookUp) {
|
|
21
21
|
var _node$getAttribute;
|
|
22
22
|
if (lookUp === void 0) {
|
|
23
23
|
lookUp = true;
|
|
24
24
|
}
|
|
25
25
|
var inertAtt = node === null || node === void 0 ? void 0 : (_node$getAttribute = node.getAttribute) === null || _node$getAttribute === void 0 ? void 0 : _node$getAttribute.call(node, "inert");
|
|
26
26
|
var inert = inertAtt === "" || inertAtt === "true";
|
|
27
|
-
var result = inert || lookUp && node &&
|
|
27
|
+
var result = inert || lookUp && node && _isInert(node.parentNode);
|
|
28
28
|
return result;
|
|
29
29
|
};
|
|
30
30
|
var isContentEditable = function isContentEditable2(node) {
|
|
@@ -33,7 +33,7 @@ var isContentEditable = function isContentEditable2(node) {
|
|
|
33
33
|
return attValue === "" || attValue === "true";
|
|
34
34
|
};
|
|
35
35
|
var getCandidates = function getCandidates2(el, includeContainer, filter) {
|
|
36
|
-
if (
|
|
36
|
+
if (_isInert(el)) {
|
|
37
37
|
return [];
|
|
38
38
|
}
|
|
39
39
|
var candidates = Array.prototype.slice.apply(el.querySelectorAll(candidateSelector));
|
|
@@ -43,18 +43,18 @@ var getCandidates = function getCandidates2(el, includeContainer, filter) {
|
|
|
43
43
|
candidates = candidates.filter(filter);
|
|
44
44
|
return candidates;
|
|
45
45
|
};
|
|
46
|
-
var
|
|
46
|
+
var _getCandidatesIteratively = function getCandidatesIteratively(elements, includeContainer, options) {
|
|
47
47
|
var candidates = [];
|
|
48
48
|
var elementsToCheck = Array.from(elements);
|
|
49
49
|
while (elementsToCheck.length) {
|
|
50
50
|
var element = elementsToCheck.shift();
|
|
51
|
-
if (
|
|
51
|
+
if (_isInert(element, false)) {
|
|
52
52
|
continue;
|
|
53
53
|
}
|
|
54
54
|
if (element.tagName === "SLOT") {
|
|
55
55
|
var assigned = element.assignedElements();
|
|
56
56
|
var content = assigned.length ? assigned : element.children;
|
|
57
|
-
var nestedCandidates =
|
|
57
|
+
var nestedCandidates = _getCandidatesIteratively(content, true, options);
|
|
58
58
|
if (options.flatten) {
|
|
59
59
|
candidates.push.apply(candidates, nestedCandidates);
|
|
60
60
|
} else {
|
|
@@ -70,9 +70,9 @@ var getCandidatesIteratively = function getCandidatesIteratively2(elements, incl
|
|
|
70
70
|
}
|
|
71
71
|
var shadowRoot = element.shadowRoot || // check for an undisclosed shadow
|
|
72
72
|
typeof options.getShadowRoot === "function" && options.getShadowRoot(element);
|
|
73
|
-
var validShadowRoot = !
|
|
73
|
+
var validShadowRoot = !_isInert(shadowRoot, false) && (!options.shadowRootFilter || options.shadowRootFilter(element));
|
|
74
74
|
if (shadowRoot && validShadowRoot) {
|
|
75
|
-
var _nestedCandidates =
|
|
75
|
+
var _nestedCandidates = _getCandidatesIteratively(shadowRoot === true ? element.children : shadowRoot.children, true, options);
|
|
76
76
|
if (options.flatten) {
|
|
77
77
|
candidates.push.apply(candidates, _nestedCandidates);
|
|
78
78
|
} else {
|
|
@@ -181,6 +181,24 @@ var isZeroArea = function isZeroArea2(node) {
|
|
|
181
181
|
};
|
|
182
182
|
var isHidden = function isHidden2(node, _ref) {
|
|
183
183
|
var displayCheck = _ref.displayCheck, getShadowRoot = _ref.getShadowRoot;
|
|
184
|
+
if (displayCheck === "full-native") {
|
|
185
|
+
if ("checkVisibility" in node) {
|
|
186
|
+
var visible = node.checkVisibility({
|
|
187
|
+
// Checking opacity might be desirable for some use cases, but natively,
|
|
188
|
+
// opacity zero elements _are_ focusable and tabbable.
|
|
189
|
+
checkOpacity: false,
|
|
190
|
+
opacityProperty: false,
|
|
191
|
+
contentVisibilityAuto: true,
|
|
192
|
+
visibilityProperty: true,
|
|
193
|
+
// This is an alias for `visibilityProperty`. Contemporary browsers
|
|
194
|
+
// support both. However, this alias has wider browser support (Chrome
|
|
195
|
+
// >= 105 and Firefox >= 106, vs. Chrome >= 121 and Firefox >= 122), so
|
|
196
|
+
// we include it anyway.
|
|
197
|
+
checkVisibilityCSS: true
|
|
198
|
+
});
|
|
199
|
+
return !visible;
|
|
200
|
+
}
|
|
201
|
+
}
|
|
184
202
|
if (getComputedStyle(node).visibility === "hidden") {
|
|
185
203
|
return true;
|
|
186
204
|
}
|
|
@@ -189,7 +207,9 @@ var isHidden = function isHidden2(node, _ref) {
|
|
|
189
207
|
if (matches.call(nodeUnderDetails, "details:not([open]) *")) {
|
|
190
208
|
return true;
|
|
191
209
|
}
|
|
192
|
-
if (!displayCheck || displayCheck === "full" ||
|
|
210
|
+
if (!displayCheck || displayCheck === "full" || // full-native can run this branch when it falls through in case
|
|
211
|
+
// Element#checkVisibility is unsupported
|
|
212
|
+
displayCheck === "full-native" || displayCheck === "legacy-full") {
|
|
193
213
|
if (typeof getShadowRoot === "function") {
|
|
194
214
|
var originalNode = node;
|
|
195
215
|
while (node) {
|
|
@@ -240,7 +260,7 @@ var isNodeMatchingSelectorFocusable = function isNodeMatchingSelectorFocusable2(
|
|
|
240
260
|
if (node.disabled || // we must do an inert look up to filter out any elements inside an inert ancestor
|
|
241
261
|
// because we're limited in the type of selectors we can use in JSDom (see related
|
|
242
262
|
// note related to `candidateSelectors`)
|
|
243
|
-
|
|
263
|
+
_isInert(node) || isHiddenInput(node) || isHidden(node, options) || // For a details element with a summary, the summary element gets the focus
|
|
244
264
|
isDetailsWithSummary(node) || isDisabledFromFieldset(node)) {
|
|
245
265
|
return false;
|
|
246
266
|
}
|
|
@@ -252,21 +272,21 @@ var isNodeMatchingSelectorTabbable = function isNodeMatchingSelectorTabbable2(op
|
|
|
252
272
|
}
|
|
253
273
|
return true;
|
|
254
274
|
};
|
|
255
|
-
var
|
|
275
|
+
var isShadowRootTabbable = function isShadowRootTabbable2(shadowHostNode) {
|
|
256
276
|
var tabIndex = parseInt(shadowHostNode.getAttribute("tabindex"), 10);
|
|
257
277
|
if (isNaN(tabIndex) || tabIndex >= 0) {
|
|
258
278
|
return true;
|
|
259
279
|
}
|
|
260
280
|
return false;
|
|
261
281
|
};
|
|
262
|
-
var
|
|
282
|
+
var _sortByOrder = function sortByOrder(candidates) {
|
|
263
283
|
var regularTabbables = [];
|
|
264
284
|
var orderedTabbables = [];
|
|
265
285
|
candidates.forEach(function(item, i) {
|
|
266
286
|
var isScope = !!item.scopeParent;
|
|
267
287
|
var element = isScope ? item.scopeParent : item;
|
|
268
288
|
var candidateTabindex = getSortOrderTabIndex(element, isScope);
|
|
269
|
-
var elements = isScope ?
|
|
289
|
+
var elements = isScope ? _sortByOrder(item.candidates) : element;
|
|
270
290
|
if (candidateTabindex === 0) {
|
|
271
291
|
isScope ? regularTabbables.push.apply(regularTabbables, elements) : regularTabbables.push(element);
|
|
272
292
|
} else {
|
|
@@ -288,16 +308,16 @@ var tabbable = function tabbable2(container, options) {
|
|
|
288
308
|
options = options || {};
|
|
289
309
|
var candidates;
|
|
290
310
|
if (options.getShadowRoot) {
|
|
291
|
-
candidates =
|
|
311
|
+
candidates = _getCandidatesIteratively([container], options.includeContainer, {
|
|
292
312
|
filter: isNodeMatchingSelectorTabbable.bind(null, options),
|
|
293
313
|
flatten: false,
|
|
294
314
|
getShadowRoot: options.getShadowRoot,
|
|
295
|
-
shadowRootFilter:
|
|
315
|
+
shadowRootFilter: isShadowRootTabbable
|
|
296
316
|
});
|
|
297
317
|
} else {
|
|
298
318
|
candidates = getCandidates(container, options.includeContainer, isNodeMatchingSelectorTabbable.bind(null, options));
|
|
299
319
|
}
|
|
300
|
-
return
|
|
320
|
+
return _sortByOrder(candidates);
|
|
301
321
|
};
|
|
302
322
|
function getPlatform() {
|
|
303
323
|
const uaData = navigator.userAgentData;
|
|
@@ -1922,4 +1942,4 @@ const Tooltip = ({
|
|
|
1922
1942
|
export {
|
|
1923
1943
|
Tooltip as T
|
|
1924
1944
|
};
|
|
1925
|
-
//# sourceMappingURL=tooltip-
|
|
1945
|
+
//# sourceMappingURL=tooltip-BVafMD5T.js.map
|