reactive-route 0.0.1-alpha.26 → 0.0.1-alpha.28
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/LICENSE +1 -1
- package/dist/cjs/adapters/vue/index.js +39 -0
- package/dist/cjs/adapters/vue/package.json +1 -0
- package/dist/cjs/vue/index.js +0 -0
- package/dist/cjs/vue/package.json +1 -0
- package/dist/esm/adapters/vue/index.js +18 -0
- package/dist/esm/adapters/vue/package.json +1 -0
- package/dist/esm/vue/index.js +0 -0
- package/dist/esm/vue/package.json +1 -0
- package/dist/tsconfig.types.react.tsbuildinfo +1 -1
- package/dist/vue/index.d.ts +1 -1
- package/dist/vue/index.d.ts.map +1 -1
- package/e2e/app.test.ts +130 -0
- package/e2e/teardown.ts +12 -0
- package/package.json +25 -9
- package/playwright.config.ts +54 -0
- package/vitepress/.vitepress/cache/deps/_metadata.json +52 -0
- package/vitepress/.vitepress/cache/deps/chunk-FL23S3EK.js +12705 -0
- package/vitepress/.vitepress/cache/deps/chunk-FL23S3EK.js.map +7 -0
- package/vitepress/.vitepress/cache/deps/chunk-VGAXUAUJ.js +9952 -0
- package/vitepress/.vitepress/cache/deps/chunk-VGAXUAUJ.js.map +7 -0
- package/vitepress/.vitepress/cache/deps/package.json +3 -0
- package/vitepress/.vitepress/cache/deps/vitepress___@vue_devtools-api.js +3844 -0
- package/vitepress/.vitepress/cache/deps/vitepress___@vue_devtools-api.js.map +7 -0
- package/vitepress/.vitepress/cache/deps/vitepress___@vueuse_core.js +588 -0
- package/vitepress/.vitepress/cache/deps/vitepress___@vueuse_core.js.map +7 -0
- package/vitepress/.vitepress/cache/deps/vitepress___@vueuse_integrations_useFocusTrap.js +1153 -0
- package/vitepress/.vitepress/cache/deps/vitepress___@vueuse_integrations_useFocusTrap.js.map +7 -0
- package/vitepress/.vitepress/cache/deps/vitepress___mark__js_src_vanilla__js.js +1665 -0
- package/vitepress/.vitepress/cache/deps/vitepress___mark__js_src_vanilla__js.js.map +7 -0
- package/vitepress/.vitepress/cache/deps/vitepress___minisearch.js +1812 -0
- package/vitepress/.vitepress/cache/deps/vitepress___minisearch.js.map +7 -0
- package/vitepress/.vitepress/cache/deps/vue.js +342 -0
- package/vitepress/.vitepress/cache/deps/vue.js.map +7 -0
- package/vitepress/.vitepress/config.mts +72 -0
- package/vitepress/.vitepress/theme/custom.css +9 -0
- package/vitepress/.vitepress/theme/index.ts +5 -0
- package/vitepress/examples/preact.md +22 -0
- package/vitepress/examples/react.md +22 -0
- package/vitepress/examples/solid.md +21 -0
- package/vitepress/file.svg +79 -0
- package/vitepress/guide/advanced.md +131 -0
- package/vitepress/guide/getting-started.md +139 -0
- package/vitepress/guide/index.md +44 -0
- package/vitepress/guide/preact.md +33 -0
- package/vitepress/guide/react.md +33 -0
- package/vitepress/guide/router-component.md +67 -0
- package/vitepress/guide/router-configuration.md +185 -0
- package/vitepress/guide/routes-configuration.md +191 -0
- package/vitepress/guide/solid.md +68 -0
- package/vitepress/guide/ssr.md +70 -0
- package/vitepress/index.md +29 -0
- package/vitest.vue.config.mjs +23 -0
- package/dist/vue/Router.d.ts +0 -4
- package/dist/vue/Router.d.ts.map +0 -1
|
@@ -0,0 +1,1153 @@
|
|
|
1
|
+
import {
|
|
2
|
+
notNullish,
|
|
3
|
+
toArray,
|
|
4
|
+
tryOnScopeDispose,
|
|
5
|
+
unrefElement
|
|
6
|
+
} from "./chunk-VGAXUAUJ.js";
|
|
7
|
+
import {
|
|
8
|
+
computed,
|
|
9
|
+
shallowRef,
|
|
10
|
+
toValue,
|
|
11
|
+
watch
|
|
12
|
+
} from "./chunk-FL23S3EK.js";
|
|
13
|
+
|
|
14
|
+
// node_modules/.pnpm/tabbable@6.2.0/node_modules/tabbable/dist/index.esm.js
|
|
15
|
+
var candidateSelectors = ["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])"];
|
|
16
|
+
var candidateSelector = candidateSelectors.join(",");
|
|
17
|
+
var NoElement = typeof Element === "undefined";
|
|
18
|
+
var matches = NoElement ? function() {
|
|
19
|
+
} : Element.prototype.matches || Element.prototype.msMatchesSelector || Element.prototype.webkitMatchesSelector;
|
|
20
|
+
var getRootNode = !NoElement && Element.prototype.getRootNode ? function(element) {
|
|
21
|
+
var _element$getRootNode;
|
|
22
|
+
return element === null || element === void 0 ? void 0 : (_element$getRootNode = element.getRootNode) === null || _element$getRootNode === void 0 ? void 0 : _element$getRootNode.call(element);
|
|
23
|
+
} : function(element) {
|
|
24
|
+
return element === null || element === void 0 ? void 0 : element.ownerDocument;
|
|
25
|
+
};
|
|
26
|
+
var isInert = function isInert2(node, lookUp) {
|
|
27
|
+
var _node$getAttribute;
|
|
28
|
+
if (lookUp === void 0) {
|
|
29
|
+
lookUp = true;
|
|
30
|
+
}
|
|
31
|
+
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");
|
|
32
|
+
var inert = inertAtt === "" || inertAtt === "true";
|
|
33
|
+
var result = inert || lookUp && node && isInert2(node.parentNode);
|
|
34
|
+
return result;
|
|
35
|
+
};
|
|
36
|
+
var isContentEditable = function isContentEditable2(node) {
|
|
37
|
+
var _node$getAttribute2;
|
|
38
|
+
var attValue = node === null || node === void 0 ? void 0 : (_node$getAttribute2 = node.getAttribute) === null || _node$getAttribute2 === void 0 ? void 0 : _node$getAttribute2.call(node, "contenteditable");
|
|
39
|
+
return attValue === "" || attValue === "true";
|
|
40
|
+
};
|
|
41
|
+
var getCandidates = function getCandidates2(el, includeContainer, filter) {
|
|
42
|
+
if (isInert(el)) {
|
|
43
|
+
return [];
|
|
44
|
+
}
|
|
45
|
+
var candidates = Array.prototype.slice.apply(el.querySelectorAll(candidateSelector));
|
|
46
|
+
if (includeContainer && matches.call(el, candidateSelector)) {
|
|
47
|
+
candidates.unshift(el);
|
|
48
|
+
}
|
|
49
|
+
candidates = candidates.filter(filter);
|
|
50
|
+
return candidates;
|
|
51
|
+
};
|
|
52
|
+
var getCandidatesIteratively = function getCandidatesIteratively2(elements, includeContainer, options) {
|
|
53
|
+
var candidates = [];
|
|
54
|
+
var elementsToCheck = Array.from(elements);
|
|
55
|
+
while (elementsToCheck.length) {
|
|
56
|
+
var element = elementsToCheck.shift();
|
|
57
|
+
if (isInert(element, false)) {
|
|
58
|
+
continue;
|
|
59
|
+
}
|
|
60
|
+
if (element.tagName === "SLOT") {
|
|
61
|
+
var assigned = element.assignedElements();
|
|
62
|
+
var content = assigned.length ? assigned : element.children;
|
|
63
|
+
var nestedCandidates = getCandidatesIteratively2(content, true, options);
|
|
64
|
+
if (options.flatten) {
|
|
65
|
+
candidates.push.apply(candidates, nestedCandidates);
|
|
66
|
+
} else {
|
|
67
|
+
candidates.push({
|
|
68
|
+
scopeParent: element,
|
|
69
|
+
candidates: nestedCandidates
|
|
70
|
+
});
|
|
71
|
+
}
|
|
72
|
+
} else {
|
|
73
|
+
var validCandidate = matches.call(element, candidateSelector);
|
|
74
|
+
if (validCandidate && options.filter(element) && (includeContainer || !elements.includes(element))) {
|
|
75
|
+
candidates.push(element);
|
|
76
|
+
}
|
|
77
|
+
var shadowRoot = element.shadowRoot || // check for an undisclosed shadow
|
|
78
|
+
typeof options.getShadowRoot === "function" && options.getShadowRoot(element);
|
|
79
|
+
var validShadowRoot = !isInert(shadowRoot, false) && (!options.shadowRootFilter || options.shadowRootFilter(element));
|
|
80
|
+
if (shadowRoot && validShadowRoot) {
|
|
81
|
+
var _nestedCandidates = getCandidatesIteratively2(shadowRoot === true ? element.children : shadowRoot.children, true, options);
|
|
82
|
+
if (options.flatten) {
|
|
83
|
+
candidates.push.apply(candidates, _nestedCandidates);
|
|
84
|
+
} else {
|
|
85
|
+
candidates.push({
|
|
86
|
+
scopeParent: element,
|
|
87
|
+
candidates: _nestedCandidates
|
|
88
|
+
});
|
|
89
|
+
}
|
|
90
|
+
} else {
|
|
91
|
+
elementsToCheck.unshift.apply(elementsToCheck, element.children);
|
|
92
|
+
}
|
|
93
|
+
}
|
|
94
|
+
}
|
|
95
|
+
return candidates;
|
|
96
|
+
};
|
|
97
|
+
var hasTabIndex = function hasTabIndex2(node) {
|
|
98
|
+
return !isNaN(parseInt(node.getAttribute("tabindex"), 10));
|
|
99
|
+
};
|
|
100
|
+
var getTabIndex = function getTabIndex2(node) {
|
|
101
|
+
if (!node) {
|
|
102
|
+
throw new Error("No node provided");
|
|
103
|
+
}
|
|
104
|
+
if (node.tabIndex < 0) {
|
|
105
|
+
if ((/^(AUDIO|VIDEO|DETAILS)$/.test(node.tagName) || isContentEditable(node)) && !hasTabIndex(node)) {
|
|
106
|
+
return 0;
|
|
107
|
+
}
|
|
108
|
+
}
|
|
109
|
+
return node.tabIndex;
|
|
110
|
+
};
|
|
111
|
+
var getSortOrderTabIndex = function getSortOrderTabIndex2(node, isScope) {
|
|
112
|
+
var tabIndex = getTabIndex(node);
|
|
113
|
+
if (tabIndex < 0 && isScope && !hasTabIndex(node)) {
|
|
114
|
+
return 0;
|
|
115
|
+
}
|
|
116
|
+
return tabIndex;
|
|
117
|
+
};
|
|
118
|
+
var sortOrderedTabbables = function sortOrderedTabbables2(a, b) {
|
|
119
|
+
return a.tabIndex === b.tabIndex ? a.documentOrder - b.documentOrder : a.tabIndex - b.tabIndex;
|
|
120
|
+
};
|
|
121
|
+
var isInput = function isInput2(node) {
|
|
122
|
+
return node.tagName === "INPUT";
|
|
123
|
+
};
|
|
124
|
+
var isHiddenInput = function isHiddenInput2(node) {
|
|
125
|
+
return isInput(node) && node.type === "hidden";
|
|
126
|
+
};
|
|
127
|
+
var isDetailsWithSummary = function isDetailsWithSummary2(node) {
|
|
128
|
+
var r = node.tagName === "DETAILS" && Array.prototype.slice.apply(node.children).some(function(child) {
|
|
129
|
+
return child.tagName === "SUMMARY";
|
|
130
|
+
});
|
|
131
|
+
return r;
|
|
132
|
+
};
|
|
133
|
+
var getCheckedRadio = function getCheckedRadio2(nodes, form) {
|
|
134
|
+
for (var i = 0; i < nodes.length; i++) {
|
|
135
|
+
if (nodes[i].checked && nodes[i].form === form) {
|
|
136
|
+
return nodes[i];
|
|
137
|
+
}
|
|
138
|
+
}
|
|
139
|
+
};
|
|
140
|
+
var isTabbableRadio = function isTabbableRadio2(node) {
|
|
141
|
+
if (!node.name) {
|
|
142
|
+
return true;
|
|
143
|
+
}
|
|
144
|
+
var radioScope = node.form || getRootNode(node);
|
|
145
|
+
var queryRadios = function queryRadios2(name) {
|
|
146
|
+
return radioScope.querySelectorAll('input[type="radio"][name="' + name + '"]');
|
|
147
|
+
};
|
|
148
|
+
var radioSet;
|
|
149
|
+
if (typeof window !== "undefined" && typeof window.CSS !== "undefined" && typeof window.CSS.escape === "function") {
|
|
150
|
+
radioSet = queryRadios(window.CSS.escape(node.name));
|
|
151
|
+
} else {
|
|
152
|
+
try {
|
|
153
|
+
radioSet = queryRadios(node.name);
|
|
154
|
+
} catch (err) {
|
|
155
|
+
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", err.message);
|
|
156
|
+
return false;
|
|
157
|
+
}
|
|
158
|
+
}
|
|
159
|
+
var checked = getCheckedRadio(radioSet, node.form);
|
|
160
|
+
return !checked || checked === node;
|
|
161
|
+
};
|
|
162
|
+
var isRadio = function isRadio2(node) {
|
|
163
|
+
return isInput(node) && node.type === "radio";
|
|
164
|
+
};
|
|
165
|
+
var isNonTabbableRadio = function isNonTabbableRadio2(node) {
|
|
166
|
+
return isRadio(node) && !isTabbableRadio(node);
|
|
167
|
+
};
|
|
168
|
+
var isNodeAttached = function isNodeAttached2(node) {
|
|
169
|
+
var _nodeRoot;
|
|
170
|
+
var nodeRoot = node && getRootNode(node);
|
|
171
|
+
var nodeRootHost = (_nodeRoot = nodeRoot) === null || _nodeRoot === void 0 ? void 0 : _nodeRoot.host;
|
|
172
|
+
var attached = false;
|
|
173
|
+
if (nodeRoot && nodeRoot !== node) {
|
|
174
|
+
var _nodeRootHost, _nodeRootHost$ownerDo, _node$ownerDocument;
|
|
175
|
+
attached = !!((_nodeRootHost = nodeRootHost) !== null && _nodeRootHost !== void 0 && (_nodeRootHost$ownerDo = _nodeRootHost.ownerDocument) !== null && _nodeRootHost$ownerDo !== void 0 && _nodeRootHost$ownerDo.contains(nodeRootHost) || node !== null && node !== void 0 && (_node$ownerDocument = node.ownerDocument) !== null && _node$ownerDocument !== void 0 && _node$ownerDocument.contains(node));
|
|
176
|
+
while (!attached && nodeRootHost) {
|
|
177
|
+
var _nodeRoot2, _nodeRootHost2, _nodeRootHost2$ownerD;
|
|
178
|
+
nodeRoot = getRootNode(nodeRootHost);
|
|
179
|
+
nodeRootHost = (_nodeRoot2 = nodeRoot) === null || _nodeRoot2 === void 0 ? void 0 : _nodeRoot2.host;
|
|
180
|
+
attached = !!((_nodeRootHost2 = nodeRootHost) !== null && _nodeRootHost2 !== void 0 && (_nodeRootHost2$ownerD = _nodeRootHost2.ownerDocument) !== null && _nodeRootHost2$ownerD !== void 0 && _nodeRootHost2$ownerD.contains(nodeRootHost));
|
|
181
|
+
}
|
|
182
|
+
}
|
|
183
|
+
return attached;
|
|
184
|
+
};
|
|
185
|
+
var isZeroArea = function isZeroArea2(node) {
|
|
186
|
+
var _node$getBoundingClie = node.getBoundingClientRect(), width = _node$getBoundingClie.width, height = _node$getBoundingClie.height;
|
|
187
|
+
return width === 0 && height === 0;
|
|
188
|
+
};
|
|
189
|
+
var isHidden = function isHidden2(node, _ref) {
|
|
190
|
+
var displayCheck = _ref.displayCheck, getShadowRoot = _ref.getShadowRoot;
|
|
191
|
+
if (getComputedStyle(node).visibility === "hidden") {
|
|
192
|
+
return true;
|
|
193
|
+
}
|
|
194
|
+
var isDirectSummary = matches.call(node, "details>summary:first-of-type");
|
|
195
|
+
var nodeUnderDetails = isDirectSummary ? node.parentElement : node;
|
|
196
|
+
if (matches.call(nodeUnderDetails, "details:not([open]) *")) {
|
|
197
|
+
return true;
|
|
198
|
+
}
|
|
199
|
+
if (!displayCheck || displayCheck === "full" || displayCheck === "legacy-full") {
|
|
200
|
+
if (typeof getShadowRoot === "function") {
|
|
201
|
+
var originalNode = node;
|
|
202
|
+
while (node) {
|
|
203
|
+
var parentElement = node.parentElement;
|
|
204
|
+
var rootNode = getRootNode(node);
|
|
205
|
+
if (parentElement && !parentElement.shadowRoot && getShadowRoot(parentElement) === true) {
|
|
206
|
+
return isZeroArea(node);
|
|
207
|
+
} else if (node.assignedSlot) {
|
|
208
|
+
node = node.assignedSlot;
|
|
209
|
+
} else if (!parentElement && rootNode !== node.ownerDocument) {
|
|
210
|
+
node = rootNode.host;
|
|
211
|
+
} else {
|
|
212
|
+
node = parentElement;
|
|
213
|
+
}
|
|
214
|
+
}
|
|
215
|
+
node = originalNode;
|
|
216
|
+
}
|
|
217
|
+
if (isNodeAttached(node)) {
|
|
218
|
+
return !node.getClientRects().length;
|
|
219
|
+
}
|
|
220
|
+
if (displayCheck !== "legacy-full") {
|
|
221
|
+
return true;
|
|
222
|
+
}
|
|
223
|
+
} else if (displayCheck === "non-zero-area") {
|
|
224
|
+
return isZeroArea(node);
|
|
225
|
+
}
|
|
226
|
+
return false;
|
|
227
|
+
};
|
|
228
|
+
var isDisabledFromFieldset = function isDisabledFromFieldset2(node) {
|
|
229
|
+
if (/^(INPUT|BUTTON|SELECT|TEXTAREA)$/.test(node.tagName)) {
|
|
230
|
+
var parentNode = node.parentElement;
|
|
231
|
+
while (parentNode) {
|
|
232
|
+
if (parentNode.tagName === "FIELDSET" && parentNode.disabled) {
|
|
233
|
+
for (var i = 0; i < parentNode.children.length; i++) {
|
|
234
|
+
var child = parentNode.children.item(i);
|
|
235
|
+
if (child.tagName === "LEGEND") {
|
|
236
|
+
return matches.call(parentNode, "fieldset[disabled] *") ? true : !child.contains(node);
|
|
237
|
+
}
|
|
238
|
+
}
|
|
239
|
+
return true;
|
|
240
|
+
}
|
|
241
|
+
parentNode = parentNode.parentElement;
|
|
242
|
+
}
|
|
243
|
+
}
|
|
244
|
+
return false;
|
|
245
|
+
};
|
|
246
|
+
var isNodeMatchingSelectorFocusable = function isNodeMatchingSelectorFocusable2(options, node) {
|
|
247
|
+
if (node.disabled || // we must do an inert look up to filter out any elements inside an inert ancestor
|
|
248
|
+
// because we're limited in the type of selectors we can use in JSDom (see related
|
|
249
|
+
// note related to `candidateSelectors`)
|
|
250
|
+
isInert(node) || isHiddenInput(node) || isHidden(node, options) || // For a details element with a summary, the summary element gets the focus
|
|
251
|
+
isDetailsWithSummary(node) || isDisabledFromFieldset(node)) {
|
|
252
|
+
return false;
|
|
253
|
+
}
|
|
254
|
+
return true;
|
|
255
|
+
};
|
|
256
|
+
var isNodeMatchingSelectorTabbable = function isNodeMatchingSelectorTabbable2(options, node) {
|
|
257
|
+
if (isNonTabbableRadio(node) || getTabIndex(node) < 0 || !isNodeMatchingSelectorFocusable(options, node)) {
|
|
258
|
+
return false;
|
|
259
|
+
}
|
|
260
|
+
return true;
|
|
261
|
+
};
|
|
262
|
+
var isValidShadowRootTabbable = function isValidShadowRootTabbable2(shadowHostNode) {
|
|
263
|
+
var tabIndex = parseInt(shadowHostNode.getAttribute("tabindex"), 10);
|
|
264
|
+
if (isNaN(tabIndex) || tabIndex >= 0) {
|
|
265
|
+
return true;
|
|
266
|
+
}
|
|
267
|
+
return false;
|
|
268
|
+
};
|
|
269
|
+
var sortByOrder = function sortByOrder2(candidates) {
|
|
270
|
+
var regularTabbables = [];
|
|
271
|
+
var orderedTabbables = [];
|
|
272
|
+
candidates.forEach(function(item, i) {
|
|
273
|
+
var isScope = !!item.scopeParent;
|
|
274
|
+
var element = isScope ? item.scopeParent : item;
|
|
275
|
+
var candidateTabindex = getSortOrderTabIndex(element, isScope);
|
|
276
|
+
var elements = isScope ? sortByOrder2(item.candidates) : element;
|
|
277
|
+
if (candidateTabindex === 0) {
|
|
278
|
+
isScope ? regularTabbables.push.apply(regularTabbables, elements) : regularTabbables.push(element);
|
|
279
|
+
} else {
|
|
280
|
+
orderedTabbables.push({
|
|
281
|
+
documentOrder: i,
|
|
282
|
+
tabIndex: candidateTabindex,
|
|
283
|
+
item,
|
|
284
|
+
isScope,
|
|
285
|
+
content: elements
|
|
286
|
+
});
|
|
287
|
+
}
|
|
288
|
+
});
|
|
289
|
+
return orderedTabbables.sort(sortOrderedTabbables).reduce(function(acc, sortable) {
|
|
290
|
+
sortable.isScope ? acc.push.apply(acc, sortable.content) : acc.push(sortable.content);
|
|
291
|
+
return acc;
|
|
292
|
+
}, []).concat(regularTabbables);
|
|
293
|
+
};
|
|
294
|
+
var tabbable = function tabbable2(container, options) {
|
|
295
|
+
options = options || {};
|
|
296
|
+
var candidates;
|
|
297
|
+
if (options.getShadowRoot) {
|
|
298
|
+
candidates = getCandidatesIteratively([container], options.includeContainer, {
|
|
299
|
+
filter: isNodeMatchingSelectorTabbable.bind(null, options),
|
|
300
|
+
flatten: false,
|
|
301
|
+
getShadowRoot: options.getShadowRoot,
|
|
302
|
+
shadowRootFilter: isValidShadowRootTabbable
|
|
303
|
+
});
|
|
304
|
+
} else {
|
|
305
|
+
candidates = getCandidates(container, options.includeContainer, isNodeMatchingSelectorTabbable.bind(null, options));
|
|
306
|
+
}
|
|
307
|
+
return sortByOrder(candidates);
|
|
308
|
+
};
|
|
309
|
+
var focusable = function focusable2(container, options) {
|
|
310
|
+
options = options || {};
|
|
311
|
+
var candidates;
|
|
312
|
+
if (options.getShadowRoot) {
|
|
313
|
+
candidates = getCandidatesIteratively([container], options.includeContainer, {
|
|
314
|
+
filter: isNodeMatchingSelectorFocusable.bind(null, options),
|
|
315
|
+
flatten: true,
|
|
316
|
+
getShadowRoot: options.getShadowRoot
|
|
317
|
+
});
|
|
318
|
+
} else {
|
|
319
|
+
candidates = getCandidates(container, options.includeContainer, isNodeMatchingSelectorFocusable.bind(null, options));
|
|
320
|
+
}
|
|
321
|
+
return candidates;
|
|
322
|
+
};
|
|
323
|
+
var isTabbable = function isTabbable2(node, options) {
|
|
324
|
+
options = options || {};
|
|
325
|
+
if (!node) {
|
|
326
|
+
throw new Error("No node provided");
|
|
327
|
+
}
|
|
328
|
+
if (matches.call(node, candidateSelector) === false) {
|
|
329
|
+
return false;
|
|
330
|
+
}
|
|
331
|
+
return isNodeMatchingSelectorTabbable(options, node);
|
|
332
|
+
};
|
|
333
|
+
var focusableCandidateSelector = candidateSelectors.concat("iframe").join(",");
|
|
334
|
+
var isFocusable = function isFocusable2(node, options) {
|
|
335
|
+
options = options || {};
|
|
336
|
+
if (!node) {
|
|
337
|
+
throw new Error("No node provided");
|
|
338
|
+
}
|
|
339
|
+
if (matches.call(node, focusableCandidateSelector) === false) {
|
|
340
|
+
return false;
|
|
341
|
+
}
|
|
342
|
+
return isNodeMatchingSelectorFocusable(options, node);
|
|
343
|
+
};
|
|
344
|
+
|
|
345
|
+
// node_modules/.pnpm/focus-trap@7.6.5/node_modules/focus-trap/dist/focus-trap.esm.js
|
|
346
|
+
function _arrayLikeToArray(r, a) {
|
|
347
|
+
(null == a || a > r.length) && (a = r.length);
|
|
348
|
+
for (var e = 0, n = Array(a); e < a; e++) n[e] = r[e];
|
|
349
|
+
return n;
|
|
350
|
+
}
|
|
351
|
+
function _arrayWithoutHoles(r) {
|
|
352
|
+
if (Array.isArray(r)) return _arrayLikeToArray(r);
|
|
353
|
+
}
|
|
354
|
+
function _defineProperty(e, r, t) {
|
|
355
|
+
return (r = _toPropertyKey(r)) in e ? Object.defineProperty(e, r, {
|
|
356
|
+
value: t,
|
|
357
|
+
enumerable: true,
|
|
358
|
+
configurable: true,
|
|
359
|
+
writable: true
|
|
360
|
+
}) : e[r] = t, e;
|
|
361
|
+
}
|
|
362
|
+
function _iterableToArray(r) {
|
|
363
|
+
if ("undefined" != typeof Symbol && null != r[Symbol.iterator] || null != r["@@iterator"]) return Array.from(r);
|
|
364
|
+
}
|
|
365
|
+
function _nonIterableSpread() {
|
|
366
|
+
throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
|
|
367
|
+
}
|
|
368
|
+
function ownKeys(e, r) {
|
|
369
|
+
var t = Object.keys(e);
|
|
370
|
+
if (Object.getOwnPropertySymbols) {
|
|
371
|
+
var o = Object.getOwnPropertySymbols(e);
|
|
372
|
+
r && (o = o.filter(function(r2) {
|
|
373
|
+
return Object.getOwnPropertyDescriptor(e, r2).enumerable;
|
|
374
|
+
})), t.push.apply(t, o);
|
|
375
|
+
}
|
|
376
|
+
return t;
|
|
377
|
+
}
|
|
378
|
+
function _objectSpread2(e) {
|
|
379
|
+
for (var r = 1; r < arguments.length; r++) {
|
|
380
|
+
var t = null != arguments[r] ? arguments[r] : {};
|
|
381
|
+
r % 2 ? ownKeys(Object(t), true).forEach(function(r2) {
|
|
382
|
+
_defineProperty(e, r2, t[r2]);
|
|
383
|
+
}) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function(r2) {
|
|
384
|
+
Object.defineProperty(e, r2, Object.getOwnPropertyDescriptor(t, r2));
|
|
385
|
+
});
|
|
386
|
+
}
|
|
387
|
+
return e;
|
|
388
|
+
}
|
|
389
|
+
function _toConsumableArray(r) {
|
|
390
|
+
return _arrayWithoutHoles(r) || _iterableToArray(r) || _unsupportedIterableToArray(r) || _nonIterableSpread();
|
|
391
|
+
}
|
|
392
|
+
function _toPrimitive(t, r) {
|
|
393
|
+
if ("object" != typeof t || !t) return t;
|
|
394
|
+
var e = t[Symbol.toPrimitive];
|
|
395
|
+
if (void 0 !== e) {
|
|
396
|
+
var i = e.call(t, r);
|
|
397
|
+
if ("object" != typeof i) return i;
|
|
398
|
+
throw new TypeError("@@toPrimitive must return a primitive value.");
|
|
399
|
+
}
|
|
400
|
+
return ("string" === r ? String : Number)(t);
|
|
401
|
+
}
|
|
402
|
+
function _toPropertyKey(t) {
|
|
403
|
+
var i = _toPrimitive(t, "string");
|
|
404
|
+
return "symbol" == typeof i ? i : i + "";
|
|
405
|
+
}
|
|
406
|
+
function _unsupportedIterableToArray(r, a) {
|
|
407
|
+
if (r) {
|
|
408
|
+
if ("string" == typeof r) return _arrayLikeToArray(r, a);
|
|
409
|
+
var t = {}.toString.call(r).slice(8, -1);
|
|
410
|
+
return "Object" === t && r.constructor && (t = r.constructor.name), "Map" === t || "Set" === t ? Array.from(r) : "Arguments" === t || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t) ? _arrayLikeToArray(r, a) : void 0;
|
|
411
|
+
}
|
|
412
|
+
}
|
|
413
|
+
var activeFocusTraps = {
|
|
414
|
+
activateTrap: function activateTrap(trapStack, trap) {
|
|
415
|
+
if (trapStack.length > 0) {
|
|
416
|
+
var activeTrap = trapStack[trapStack.length - 1];
|
|
417
|
+
if (activeTrap !== trap) {
|
|
418
|
+
activeTrap._setPausedState(true);
|
|
419
|
+
}
|
|
420
|
+
}
|
|
421
|
+
var trapIndex = trapStack.indexOf(trap);
|
|
422
|
+
if (trapIndex === -1) {
|
|
423
|
+
trapStack.push(trap);
|
|
424
|
+
} else {
|
|
425
|
+
trapStack.splice(trapIndex, 1);
|
|
426
|
+
trapStack.push(trap);
|
|
427
|
+
}
|
|
428
|
+
},
|
|
429
|
+
deactivateTrap: function deactivateTrap(trapStack, trap) {
|
|
430
|
+
var trapIndex = trapStack.indexOf(trap);
|
|
431
|
+
if (trapIndex !== -1) {
|
|
432
|
+
trapStack.splice(trapIndex, 1);
|
|
433
|
+
}
|
|
434
|
+
if (trapStack.length > 0 && !trapStack[trapStack.length - 1]._isManuallyPaused()) {
|
|
435
|
+
trapStack[trapStack.length - 1]._setPausedState(false);
|
|
436
|
+
}
|
|
437
|
+
}
|
|
438
|
+
};
|
|
439
|
+
var isSelectableInput = function isSelectableInput2(node) {
|
|
440
|
+
return node.tagName && node.tagName.toLowerCase() === "input" && typeof node.select === "function";
|
|
441
|
+
};
|
|
442
|
+
var isEscapeEvent = function isEscapeEvent2(e) {
|
|
443
|
+
return (e === null || e === void 0 ? void 0 : e.key) === "Escape" || (e === null || e === void 0 ? void 0 : e.key) === "Esc" || (e === null || e === void 0 ? void 0 : e.keyCode) === 27;
|
|
444
|
+
};
|
|
445
|
+
var isTabEvent = function isTabEvent2(e) {
|
|
446
|
+
return (e === null || e === void 0 ? void 0 : e.key) === "Tab" || (e === null || e === void 0 ? void 0 : e.keyCode) === 9;
|
|
447
|
+
};
|
|
448
|
+
var isKeyForward = function isKeyForward2(e) {
|
|
449
|
+
return isTabEvent(e) && !e.shiftKey;
|
|
450
|
+
};
|
|
451
|
+
var isKeyBackward = function isKeyBackward2(e) {
|
|
452
|
+
return isTabEvent(e) && e.shiftKey;
|
|
453
|
+
};
|
|
454
|
+
var delay = function delay2(fn) {
|
|
455
|
+
return setTimeout(fn, 0);
|
|
456
|
+
};
|
|
457
|
+
var valueOrHandler = function valueOrHandler2(value) {
|
|
458
|
+
for (var _len = arguments.length, params = new Array(_len > 1 ? _len - 1 : 0), _key = 1; _key < _len; _key++) {
|
|
459
|
+
params[_key - 1] = arguments[_key];
|
|
460
|
+
}
|
|
461
|
+
return typeof value === "function" ? value.apply(void 0, params) : value;
|
|
462
|
+
};
|
|
463
|
+
var getActualTarget = function getActualTarget2(event) {
|
|
464
|
+
return event.target.shadowRoot && typeof event.composedPath === "function" ? event.composedPath()[0] : event.target;
|
|
465
|
+
};
|
|
466
|
+
var internalTrapStack = [];
|
|
467
|
+
var createFocusTrap = function createFocusTrap2(elements, userOptions) {
|
|
468
|
+
var doc = (userOptions === null || userOptions === void 0 ? void 0 : userOptions.document) || document;
|
|
469
|
+
var trapStack = (userOptions === null || userOptions === void 0 ? void 0 : userOptions.trapStack) || internalTrapStack;
|
|
470
|
+
var config = _objectSpread2({
|
|
471
|
+
returnFocusOnDeactivate: true,
|
|
472
|
+
escapeDeactivates: true,
|
|
473
|
+
delayInitialFocus: true,
|
|
474
|
+
isKeyForward,
|
|
475
|
+
isKeyBackward
|
|
476
|
+
}, userOptions);
|
|
477
|
+
var state = {
|
|
478
|
+
// containers given to createFocusTrap()
|
|
479
|
+
// @type {Array<HTMLElement>}
|
|
480
|
+
containers: [],
|
|
481
|
+
// list of objects identifying tabbable nodes in `containers` in the trap
|
|
482
|
+
// NOTE: it's possible that a group has no tabbable nodes if nodes get removed while the trap
|
|
483
|
+
// is active, but the trap should never get to a state where there isn't at least one group
|
|
484
|
+
// with at least one tabbable node in it (that would lead to an error condition that would
|
|
485
|
+
// result in an error being thrown)
|
|
486
|
+
// @type {Array<{
|
|
487
|
+
// container: HTMLElement,
|
|
488
|
+
// tabbableNodes: Array<HTMLElement>, // empty if none
|
|
489
|
+
// focusableNodes: Array<HTMLElement>, // empty if none
|
|
490
|
+
// posTabIndexesFound: boolean,
|
|
491
|
+
// firstTabbableNode: HTMLElement|undefined,
|
|
492
|
+
// lastTabbableNode: HTMLElement|undefined,
|
|
493
|
+
// firstDomTabbableNode: HTMLElement|undefined,
|
|
494
|
+
// lastDomTabbableNode: HTMLElement|undefined,
|
|
495
|
+
// nextTabbableNode: (node: HTMLElement, forward: boolean) => HTMLElement|undefined
|
|
496
|
+
// }>}
|
|
497
|
+
containerGroups: [],
|
|
498
|
+
// same order/length as `containers` list
|
|
499
|
+
// references to objects in `containerGroups`, but only those that actually have
|
|
500
|
+
// tabbable nodes in them
|
|
501
|
+
// NOTE: same order as `containers` and `containerGroups`, but __not necessarily__
|
|
502
|
+
// the same length
|
|
503
|
+
tabbableGroups: [],
|
|
504
|
+
nodeFocusedBeforeActivation: null,
|
|
505
|
+
mostRecentlyFocusedNode: null,
|
|
506
|
+
active: false,
|
|
507
|
+
paused: false,
|
|
508
|
+
manuallyPaused: false,
|
|
509
|
+
// timer ID for when delayInitialFocus is true and initial focus in this trap
|
|
510
|
+
// has been delayed during activation
|
|
511
|
+
delayInitialFocusTimer: void 0,
|
|
512
|
+
// the most recent KeyboardEvent for the configured nav key (typically [SHIFT+]TAB), if any
|
|
513
|
+
recentNavEvent: void 0
|
|
514
|
+
};
|
|
515
|
+
var trap;
|
|
516
|
+
var getOption = function getOption2(configOverrideOptions, optionName, configOptionName) {
|
|
517
|
+
return configOverrideOptions && configOverrideOptions[optionName] !== void 0 ? configOverrideOptions[optionName] : config[configOptionName || optionName];
|
|
518
|
+
};
|
|
519
|
+
var findContainerIndex = function findContainerIndex2(element, event) {
|
|
520
|
+
var composedPath = typeof (event === null || event === void 0 ? void 0 : event.composedPath) === "function" ? event.composedPath() : void 0;
|
|
521
|
+
return state.containerGroups.findIndex(function(_ref) {
|
|
522
|
+
var container = _ref.container, tabbableNodes = _ref.tabbableNodes;
|
|
523
|
+
return container.contains(element) || // fall back to explicit tabbable search which will take into consideration any
|
|
524
|
+
// web components if the `tabbableOptions.getShadowRoot` option was used for
|
|
525
|
+
// the trap, enabling shadow DOM support in tabbable (`Node.contains()` doesn't
|
|
526
|
+
// look inside web components even if open)
|
|
527
|
+
(composedPath === null || composedPath === void 0 ? void 0 : composedPath.includes(container)) || tabbableNodes.find(function(node) {
|
|
528
|
+
return node === element;
|
|
529
|
+
});
|
|
530
|
+
});
|
|
531
|
+
};
|
|
532
|
+
var getNodeForOption = function getNodeForOption2(optionName) {
|
|
533
|
+
var _ref2 = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {}, _ref2$hasFallback = _ref2.hasFallback, hasFallback = _ref2$hasFallback === void 0 ? false : _ref2$hasFallback, _ref2$params = _ref2.params, params = _ref2$params === void 0 ? [] : _ref2$params;
|
|
534
|
+
var optionValue = config[optionName];
|
|
535
|
+
if (typeof optionValue === "function") {
|
|
536
|
+
optionValue = optionValue.apply(void 0, _toConsumableArray(params));
|
|
537
|
+
}
|
|
538
|
+
if (optionValue === true) {
|
|
539
|
+
optionValue = void 0;
|
|
540
|
+
}
|
|
541
|
+
if (!optionValue) {
|
|
542
|
+
if (optionValue === void 0 || optionValue === false) {
|
|
543
|
+
return optionValue;
|
|
544
|
+
}
|
|
545
|
+
throw new Error("`".concat(optionName, "` was specified but was not a node, or did not return a node"));
|
|
546
|
+
}
|
|
547
|
+
var node = optionValue;
|
|
548
|
+
if (typeof optionValue === "string") {
|
|
549
|
+
try {
|
|
550
|
+
node = doc.querySelector(optionValue);
|
|
551
|
+
} catch (err) {
|
|
552
|
+
throw new Error("`".concat(optionName, '` appears to be an invalid selector; error="').concat(err.message, '"'));
|
|
553
|
+
}
|
|
554
|
+
if (!node) {
|
|
555
|
+
if (!hasFallback) {
|
|
556
|
+
throw new Error("`".concat(optionName, "` as selector refers to no known node"));
|
|
557
|
+
}
|
|
558
|
+
}
|
|
559
|
+
}
|
|
560
|
+
return node;
|
|
561
|
+
};
|
|
562
|
+
var getInitialFocusNode = function getInitialFocusNode2() {
|
|
563
|
+
var node = getNodeForOption("initialFocus", {
|
|
564
|
+
hasFallback: true
|
|
565
|
+
});
|
|
566
|
+
if (node === false) {
|
|
567
|
+
return false;
|
|
568
|
+
}
|
|
569
|
+
if (node === void 0 || node && !isFocusable(node, config.tabbableOptions)) {
|
|
570
|
+
if (findContainerIndex(doc.activeElement) >= 0) {
|
|
571
|
+
node = doc.activeElement;
|
|
572
|
+
} else {
|
|
573
|
+
var firstTabbableGroup = state.tabbableGroups[0];
|
|
574
|
+
var firstTabbableNode = firstTabbableGroup && firstTabbableGroup.firstTabbableNode;
|
|
575
|
+
node = firstTabbableNode || getNodeForOption("fallbackFocus");
|
|
576
|
+
}
|
|
577
|
+
} else if (node === null) {
|
|
578
|
+
node = getNodeForOption("fallbackFocus");
|
|
579
|
+
}
|
|
580
|
+
if (!node) {
|
|
581
|
+
throw new Error("Your focus-trap needs to have at least one focusable element");
|
|
582
|
+
}
|
|
583
|
+
return node;
|
|
584
|
+
};
|
|
585
|
+
var updateTabbableNodes = function updateTabbableNodes2() {
|
|
586
|
+
state.containerGroups = state.containers.map(function(container) {
|
|
587
|
+
var tabbableNodes = tabbable(container, config.tabbableOptions);
|
|
588
|
+
var focusableNodes = focusable(container, config.tabbableOptions);
|
|
589
|
+
var firstTabbableNode = tabbableNodes.length > 0 ? tabbableNodes[0] : void 0;
|
|
590
|
+
var lastTabbableNode = tabbableNodes.length > 0 ? tabbableNodes[tabbableNodes.length - 1] : void 0;
|
|
591
|
+
var firstDomTabbableNode = focusableNodes.find(function(node) {
|
|
592
|
+
return isTabbable(node);
|
|
593
|
+
});
|
|
594
|
+
var lastDomTabbableNode = focusableNodes.slice().reverse().find(function(node) {
|
|
595
|
+
return isTabbable(node);
|
|
596
|
+
});
|
|
597
|
+
var posTabIndexesFound = !!tabbableNodes.find(function(node) {
|
|
598
|
+
return getTabIndex(node) > 0;
|
|
599
|
+
});
|
|
600
|
+
return {
|
|
601
|
+
container,
|
|
602
|
+
tabbableNodes,
|
|
603
|
+
focusableNodes,
|
|
604
|
+
/** True if at least one node with positive `tabindex` was found in this container. */
|
|
605
|
+
posTabIndexesFound,
|
|
606
|
+
/** First tabbable node in container, __tabindex__ order; `undefined` if none. */
|
|
607
|
+
firstTabbableNode,
|
|
608
|
+
/** Last tabbable node in container, __tabindex__ order; `undefined` if none. */
|
|
609
|
+
lastTabbableNode,
|
|
610
|
+
// NOTE: DOM order is NOT NECESSARILY "document position" order, but figuring that out
|
|
611
|
+
// would require more than just https://developer.mozilla.org/en-US/docs/Web/API/Node/compareDocumentPosition
|
|
612
|
+
// because that API doesn't work with Shadow DOM as well as it should (@see
|
|
613
|
+
// https://github.com/whatwg/dom/issues/320) and since this first/last is only needed, so far,
|
|
614
|
+
// to address an edge case related to positive tabindex support, this seems like a much easier,
|
|
615
|
+
// "close enough most of the time" alternative for positive tabindexes which should generally
|
|
616
|
+
// be avoided anyway...
|
|
617
|
+
/** First tabbable node in container, __DOM__ order; `undefined` if none. */
|
|
618
|
+
firstDomTabbableNode,
|
|
619
|
+
/** Last tabbable node in container, __DOM__ order; `undefined` if none. */
|
|
620
|
+
lastDomTabbableNode,
|
|
621
|
+
/**
|
|
622
|
+
* Finds the __tabbable__ node that follows the given node in the specified direction,
|
|
623
|
+
* in this container, if any.
|
|
624
|
+
* @param {HTMLElement} node
|
|
625
|
+
* @param {boolean} [forward] True if going in forward tab order; false if going
|
|
626
|
+
* in reverse.
|
|
627
|
+
* @returns {HTMLElement|undefined} The next tabbable node, if any.
|
|
628
|
+
*/
|
|
629
|
+
nextTabbableNode: function nextTabbableNode(node) {
|
|
630
|
+
var forward = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : true;
|
|
631
|
+
var nodeIdx = tabbableNodes.indexOf(node);
|
|
632
|
+
if (nodeIdx < 0) {
|
|
633
|
+
if (forward) {
|
|
634
|
+
return focusableNodes.slice(focusableNodes.indexOf(node) + 1).find(function(el) {
|
|
635
|
+
return isTabbable(el);
|
|
636
|
+
});
|
|
637
|
+
}
|
|
638
|
+
return focusableNodes.slice(0, focusableNodes.indexOf(node)).reverse().find(function(el) {
|
|
639
|
+
return isTabbable(el);
|
|
640
|
+
});
|
|
641
|
+
}
|
|
642
|
+
return tabbableNodes[nodeIdx + (forward ? 1 : -1)];
|
|
643
|
+
}
|
|
644
|
+
};
|
|
645
|
+
});
|
|
646
|
+
state.tabbableGroups = state.containerGroups.filter(function(group) {
|
|
647
|
+
return group.tabbableNodes.length > 0;
|
|
648
|
+
});
|
|
649
|
+
if (state.tabbableGroups.length <= 0 && !getNodeForOption("fallbackFocus")) {
|
|
650
|
+
throw new Error("Your focus-trap must have at least one container with at least one tabbable node in it at all times");
|
|
651
|
+
}
|
|
652
|
+
if (state.containerGroups.find(function(g) {
|
|
653
|
+
return g.posTabIndexesFound;
|
|
654
|
+
}) && state.containerGroups.length > 1) {
|
|
655
|
+
throw new Error("At least one node with a positive tabindex was found in one of your focus-trap's multiple containers. Positive tabindexes are only supported in single-container focus-traps.");
|
|
656
|
+
}
|
|
657
|
+
};
|
|
658
|
+
var _getActiveElement = function getActiveElement(el) {
|
|
659
|
+
var activeElement = el.activeElement;
|
|
660
|
+
if (!activeElement) {
|
|
661
|
+
return;
|
|
662
|
+
}
|
|
663
|
+
if (activeElement.shadowRoot && activeElement.shadowRoot.activeElement !== null) {
|
|
664
|
+
return _getActiveElement(activeElement.shadowRoot);
|
|
665
|
+
}
|
|
666
|
+
return activeElement;
|
|
667
|
+
};
|
|
668
|
+
var _tryFocus = function tryFocus(node) {
|
|
669
|
+
if (node === false) {
|
|
670
|
+
return;
|
|
671
|
+
}
|
|
672
|
+
if (node === _getActiveElement(document)) {
|
|
673
|
+
return;
|
|
674
|
+
}
|
|
675
|
+
if (!node || !node.focus) {
|
|
676
|
+
_tryFocus(getInitialFocusNode());
|
|
677
|
+
return;
|
|
678
|
+
}
|
|
679
|
+
node.focus({
|
|
680
|
+
preventScroll: !!config.preventScroll
|
|
681
|
+
});
|
|
682
|
+
state.mostRecentlyFocusedNode = node;
|
|
683
|
+
if (isSelectableInput(node)) {
|
|
684
|
+
node.select();
|
|
685
|
+
}
|
|
686
|
+
};
|
|
687
|
+
var getReturnFocusNode = function getReturnFocusNode2(previousActiveElement) {
|
|
688
|
+
var node = getNodeForOption("setReturnFocus", {
|
|
689
|
+
params: [previousActiveElement]
|
|
690
|
+
});
|
|
691
|
+
return node ? node : node === false ? false : previousActiveElement;
|
|
692
|
+
};
|
|
693
|
+
var findNextNavNode = function findNextNavNode2(_ref3) {
|
|
694
|
+
var target = _ref3.target, event = _ref3.event, _ref3$isBackward = _ref3.isBackward, isBackward = _ref3$isBackward === void 0 ? false : _ref3$isBackward;
|
|
695
|
+
target = target || getActualTarget(event);
|
|
696
|
+
updateTabbableNodes();
|
|
697
|
+
var destinationNode = null;
|
|
698
|
+
if (state.tabbableGroups.length > 0) {
|
|
699
|
+
var containerIndex = findContainerIndex(target, event);
|
|
700
|
+
var containerGroup = containerIndex >= 0 ? state.containerGroups[containerIndex] : void 0;
|
|
701
|
+
if (containerIndex < 0) {
|
|
702
|
+
if (isBackward) {
|
|
703
|
+
destinationNode = state.tabbableGroups[state.tabbableGroups.length - 1].lastTabbableNode;
|
|
704
|
+
} else {
|
|
705
|
+
destinationNode = state.tabbableGroups[0].firstTabbableNode;
|
|
706
|
+
}
|
|
707
|
+
} else if (isBackward) {
|
|
708
|
+
var startOfGroupIndex = state.tabbableGroups.findIndex(function(_ref4) {
|
|
709
|
+
var firstTabbableNode = _ref4.firstTabbableNode;
|
|
710
|
+
return target === firstTabbableNode;
|
|
711
|
+
});
|
|
712
|
+
if (startOfGroupIndex < 0 && (containerGroup.container === target || isFocusable(target, config.tabbableOptions) && !isTabbable(target, config.tabbableOptions) && !containerGroup.nextTabbableNode(target, false))) {
|
|
713
|
+
startOfGroupIndex = containerIndex;
|
|
714
|
+
}
|
|
715
|
+
if (startOfGroupIndex >= 0) {
|
|
716
|
+
var destinationGroupIndex = startOfGroupIndex === 0 ? state.tabbableGroups.length - 1 : startOfGroupIndex - 1;
|
|
717
|
+
var destinationGroup = state.tabbableGroups[destinationGroupIndex];
|
|
718
|
+
destinationNode = getTabIndex(target) >= 0 ? destinationGroup.lastTabbableNode : destinationGroup.lastDomTabbableNode;
|
|
719
|
+
} else if (!isTabEvent(event)) {
|
|
720
|
+
destinationNode = containerGroup.nextTabbableNode(target, false);
|
|
721
|
+
}
|
|
722
|
+
} else {
|
|
723
|
+
var lastOfGroupIndex = state.tabbableGroups.findIndex(function(_ref5) {
|
|
724
|
+
var lastTabbableNode = _ref5.lastTabbableNode;
|
|
725
|
+
return target === lastTabbableNode;
|
|
726
|
+
});
|
|
727
|
+
if (lastOfGroupIndex < 0 && (containerGroup.container === target || isFocusable(target, config.tabbableOptions) && !isTabbable(target, config.tabbableOptions) && !containerGroup.nextTabbableNode(target))) {
|
|
728
|
+
lastOfGroupIndex = containerIndex;
|
|
729
|
+
}
|
|
730
|
+
if (lastOfGroupIndex >= 0) {
|
|
731
|
+
var _destinationGroupIndex = lastOfGroupIndex === state.tabbableGroups.length - 1 ? 0 : lastOfGroupIndex + 1;
|
|
732
|
+
var _destinationGroup = state.tabbableGroups[_destinationGroupIndex];
|
|
733
|
+
destinationNode = getTabIndex(target) >= 0 ? _destinationGroup.firstTabbableNode : _destinationGroup.firstDomTabbableNode;
|
|
734
|
+
} else if (!isTabEvent(event)) {
|
|
735
|
+
destinationNode = containerGroup.nextTabbableNode(target);
|
|
736
|
+
}
|
|
737
|
+
}
|
|
738
|
+
} else {
|
|
739
|
+
destinationNode = getNodeForOption("fallbackFocus");
|
|
740
|
+
}
|
|
741
|
+
return destinationNode;
|
|
742
|
+
};
|
|
743
|
+
var checkPointerDown = function checkPointerDown2(e) {
|
|
744
|
+
var target = getActualTarget(e);
|
|
745
|
+
if (findContainerIndex(target, e) >= 0) {
|
|
746
|
+
return;
|
|
747
|
+
}
|
|
748
|
+
if (valueOrHandler(config.clickOutsideDeactivates, e)) {
|
|
749
|
+
trap.deactivate({
|
|
750
|
+
// NOTE: by setting `returnFocus: false`, deactivate() will do nothing,
|
|
751
|
+
// which will result in the outside click setting focus to the node
|
|
752
|
+
// that was clicked (and if not focusable, to "nothing"); by setting
|
|
753
|
+
// `returnFocus: true`, we'll attempt to re-focus the node originally-focused
|
|
754
|
+
// on activation (or the configured `setReturnFocus` node), whether the
|
|
755
|
+
// outside click was on a focusable node or not
|
|
756
|
+
returnFocus: config.returnFocusOnDeactivate
|
|
757
|
+
});
|
|
758
|
+
return;
|
|
759
|
+
}
|
|
760
|
+
if (valueOrHandler(config.allowOutsideClick, e)) {
|
|
761
|
+
return;
|
|
762
|
+
}
|
|
763
|
+
e.preventDefault();
|
|
764
|
+
};
|
|
765
|
+
var checkFocusIn = function checkFocusIn2(event) {
|
|
766
|
+
var target = getActualTarget(event);
|
|
767
|
+
var targetContained = findContainerIndex(target, event) >= 0;
|
|
768
|
+
if (targetContained || target instanceof Document) {
|
|
769
|
+
if (targetContained) {
|
|
770
|
+
state.mostRecentlyFocusedNode = target;
|
|
771
|
+
}
|
|
772
|
+
} else {
|
|
773
|
+
event.stopImmediatePropagation();
|
|
774
|
+
var nextNode;
|
|
775
|
+
var navAcrossContainers = true;
|
|
776
|
+
if (state.mostRecentlyFocusedNode) {
|
|
777
|
+
if (getTabIndex(state.mostRecentlyFocusedNode) > 0) {
|
|
778
|
+
var mruContainerIdx = findContainerIndex(state.mostRecentlyFocusedNode);
|
|
779
|
+
var tabbableNodes = state.containerGroups[mruContainerIdx].tabbableNodes;
|
|
780
|
+
if (tabbableNodes.length > 0) {
|
|
781
|
+
var mruTabIdx = tabbableNodes.findIndex(function(node) {
|
|
782
|
+
return node === state.mostRecentlyFocusedNode;
|
|
783
|
+
});
|
|
784
|
+
if (mruTabIdx >= 0) {
|
|
785
|
+
if (config.isKeyForward(state.recentNavEvent)) {
|
|
786
|
+
if (mruTabIdx + 1 < tabbableNodes.length) {
|
|
787
|
+
nextNode = tabbableNodes[mruTabIdx + 1];
|
|
788
|
+
navAcrossContainers = false;
|
|
789
|
+
}
|
|
790
|
+
} else {
|
|
791
|
+
if (mruTabIdx - 1 >= 0) {
|
|
792
|
+
nextNode = tabbableNodes[mruTabIdx - 1];
|
|
793
|
+
navAcrossContainers = false;
|
|
794
|
+
}
|
|
795
|
+
}
|
|
796
|
+
}
|
|
797
|
+
}
|
|
798
|
+
} else {
|
|
799
|
+
if (!state.containerGroups.some(function(g) {
|
|
800
|
+
return g.tabbableNodes.some(function(n) {
|
|
801
|
+
return getTabIndex(n) > 0;
|
|
802
|
+
});
|
|
803
|
+
})) {
|
|
804
|
+
navAcrossContainers = false;
|
|
805
|
+
}
|
|
806
|
+
}
|
|
807
|
+
} else {
|
|
808
|
+
navAcrossContainers = false;
|
|
809
|
+
}
|
|
810
|
+
if (navAcrossContainers) {
|
|
811
|
+
nextNode = findNextNavNode({
|
|
812
|
+
// move FROM the MRU node, not event-related node (which will be the node that is
|
|
813
|
+
// outside the trap causing the focus escape we're trying to fix)
|
|
814
|
+
target: state.mostRecentlyFocusedNode,
|
|
815
|
+
isBackward: config.isKeyBackward(state.recentNavEvent)
|
|
816
|
+
});
|
|
817
|
+
}
|
|
818
|
+
if (nextNode) {
|
|
819
|
+
_tryFocus(nextNode);
|
|
820
|
+
} else {
|
|
821
|
+
_tryFocus(state.mostRecentlyFocusedNode || getInitialFocusNode());
|
|
822
|
+
}
|
|
823
|
+
}
|
|
824
|
+
state.recentNavEvent = void 0;
|
|
825
|
+
};
|
|
826
|
+
var checkKeyNav = function checkKeyNav2(event) {
|
|
827
|
+
var isBackward = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : false;
|
|
828
|
+
state.recentNavEvent = event;
|
|
829
|
+
var destinationNode = findNextNavNode({
|
|
830
|
+
event,
|
|
831
|
+
isBackward
|
|
832
|
+
});
|
|
833
|
+
if (destinationNode) {
|
|
834
|
+
if (isTabEvent(event)) {
|
|
835
|
+
event.preventDefault();
|
|
836
|
+
}
|
|
837
|
+
_tryFocus(destinationNode);
|
|
838
|
+
}
|
|
839
|
+
};
|
|
840
|
+
var checkTabKey = function checkTabKey2(event) {
|
|
841
|
+
if (config.isKeyForward(event) || config.isKeyBackward(event)) {
|
|
842
|
+
checkKeyNav(event, config.isKeyBackward(event));
|
|
843
|
+
}
|
|
844
|
+
};
|
|
845
|
+
var checkEscapeKey = function checkEscapeKey2(event) {
|
|
846
|
+
if (isEscapeEvent(event) && valueOrHandler(config.escapeDeactivates, event) !== false) {
|
|
847
|
+
event.preventDefault();
|
|
848
|
+
trap.deactivate();
|
|
849
|
+
}
|
|
850
|
+
};
|
|
851
|
+
var checkClick = function checkClick2(e) {
|
|
852
|
+
var target = getActualTarget(e);
|
|
853
|
+
if (findContainerIndex(target, e) >= 0) {
|
|
854
|
+
return;
|
|
855
|
+
}
|
|
856
|
+
if (valueOrHandler(config.clickOutsideDeactivates, e)) {
|
|
857
|
+
return;
|
|
858
|
+
}
|
|
859
|
+
if (valueOrHandler(config.allowOutsideClick, e)) {
|
|
860
|
+
return;
|
|
861
|
+
}
|
|
862
|
+
e.preventDefault();
|
|
863
|
+
e.stopImmediatePropagation();
|
|
864
|
+
};
|
|
865
|
+
var addListeners = function addListeners2() {
|
|
866
|
+
if (!state.active) {
|
|
867
|
+
return;
|
|
868
|
+
}
|
|
869
|
+
activeFocusTraps.activateTrap(trapStack, trap);
|
|
870
|
+
state.delayInitialFocusTimer = config.delayInitialFocus ? delay(function() {
|
|
871
|
+
_tryFocus(getInitialFocusNode());
|
|
872
|
+
}) : _tryFocus(getInitialFocusNode());
|
|
873
|
+
doc.addEventListener("focusin", checkFocusIn, true);
|
|
874
|
+
doc.addEventListener("mousedown", checkPointerDown, {
|
|
875
|
+
capture: true,
|
|
876
|
+
passive: false
|
|
877
|
+
});
|
|
878
|
+
doc.addEventListener("touchstart", checkPointerDown, {
|
|
879
|
+
capture: true,
|
|
880
|
+
passive: false
|
|
881
|
+
});
|
|
882
|
+
doc.addEventListener("click", checkClick, {
|
|
883
|
+
capture: true,
|
|
884
|
+
passive: false
|
|
885
|
+
});
|
|
886
|
+
doc.addEventListener("keydown", checkTabKey, {
|
|
887
|
+
capture: true,
|
|
888
|
+
passive: false
|
|
889
|
+
});
|
|
890
|
+
doc.addEventListener("keydown", checkEscapeKey);
|
|
891
|
+
return trap;
|
|
892
|
+
};
|
|
893
|
+
var removeListeners = function removeListeners2() {
|
|
894
|
+
if (!state.active) {
|
|
895
|
+
return;
|
|
896
|
+
}
|
|
897
|
+
doc.removeEventListener("focusin", checkFocusIn, true);
|
|
898
|
+
doc.removeEventListener("mousedown", checkPointerDown, true);
|
|
899
|
+
doc.removeEventListener("touchstart", checkPointerDown, true);
|
|
900
|
+
doc.removeEventListener("click", checkClick, true);
|
|
901
|
+
doc.removeEventListener("keydown", checkTabKey, true);
|
|
902
|
+
doc.removeEventListener("keydown", checkEscapeKey);
|
|
903
|
+
return trap;
|
|
904
|
+
};
|
|
905
|
+
var checkDomRemoval = function checkDomRemoval2(mutations) {
|
|
906
|
+
var isFocusedNodeRemoved = mutations.some(function(mutation) {
|
|
907
|
+
var removedNodes = Array.from(mutation.removedNodes);
|
|
908
|
+
return removedNodes.some(function(node) {
|
|
909
|
+
return node === state.mostRecentlyFocusedNode;
|
|
910
|
+
});
|
|
911
|
+
});
|
|
912
|
+
if (isFocusedNodeRemoved) {
|
|
913
|
+
_tryFocus(getInitialFocusNode());
|
|
914
|
+
}
|
|
915
|
+
};
|
|
916
|
+
var mutationObserver = typeof window !== "undefined" && "MutationObserver" in window ? new MutationObserver(checkDomRemoval) : void 0;
|
|
917
|
+
var updateObservedNodes = function updateObservedNodes2() {
|
|
918
|
+
if (!mutationObserver) {
|
|
919
|
+
return;
|
|
920
|
+
}
|
|
921
|
+
mutationObserver.disconnect();
|
|
922
|
+
if (state.active && !state.paused) {
|
|
923
|
+
state.containers.map(function(container) {
|
|
924
|
+
mutationObserver.observe(container, {
|
|
925
|
+
subtree: true,
|
|
926
|
+
childList: true
|
|
927
|
+
});
|
|
928
|
+
});
|
|
929
|
+
}
|
|
930
|
+
};
|
|
931
|
+
trap = {
|
|
932
|
+
get active() {
|
|
933
|
+
return state.active;
|
|
934
|
+
},
|
|
935
|
+
get paused() {
|
|
936
|
+
return state.paused;
|
|
937
|
+
},
|
|
938
|
+
activate: function activate(activateOptions) {
|
|
939
|
+
if (state.active) {
|
|
940
|
+
return this;
|
|
941
|
+
}
|
|
942
|
+
var onActivate = getOption(activateOptions, "onActivate");
|
|
943
|
+
var onPostActivate = getOption(activateOptions, "onPostActivate");
|
|
944
|
+
var checkCanFocusTrap = getOption(activateOptions, "checkCanFocusTrap");
|
|
945
|
+
if (!checkCanFocusTrap) {
|
|
946
|
+
updateTabbableNodes();
|
|
947
|
+
}
|
|
948
|
+
state.active = true;
|
|
949
|
+
state.paused = false;
|
|
950
|
+
state.nodeFocusedBeforeActivation = _getActiveElement(doc);
|
|
951
|
+
onActivate === null || onActivate === void 0 || onActivate();
|
|
952
|
+
var finishActivation = function finishActivation2() {
|
|
953
|
+
if (checkCanFocusTrap) {
|
|
954
|
+
updateTabbableNodes();
|
|
955
|
+
}
|
|
956
|
+
addListeners();
|
|
957
|
+
updateObservedNodes();
|
|
958
|
+
onPostActivate === null || onPostActivate === void 0 || onPostActivate();
|
|
959
|
+
};
|
|
960
|
+
if (checkCanFocusTrap) {
|
|
961
|
+
checkCanFocusTrap(state.containers.concat()).then(finishActivation, finishActivation);
|
|
962
|
+
return this;
|
|
963
|
+
}
|
|
964
|
+
finishActivation();
|
|
965
|
+
return this;
|
|
966
|
+
},
|
|
967
|
+
deactivate: function deactivate(deactivateOptions) {
|
|
968
|
+
if (!state.active) {
|
|
969
|
+
return this;
|
|
970
|
+
}
|
|
971
|
+
var options = _objectSpread2({
|
|
972
|
+
onDeactivate: config.onDeactivate,
|
|
973
|
+
onPostDeactivate: config.onPostDeactivate,
|
|
974
|
+
checkCanReturnFocus: config.checkCanReturnFocus
|
|
975
|
+
}, deactivateOptions);
|
|
976
|
+
clearTimeout(state.delayInitialFocusTimer);
|
|
977
|
+
state.delayInitialFocusTimer = void 0;
|
|
978
|
+
removeListeners();
|
|
979
|
+
state.active = false;
|
|
980
|
+
state.paused = false;
|
|
981
|
+
updateObservedNodes();
|
|
982
|
+
activeFocusTraps.deactivateTrap(trapStack, trap);
|
|
983
|
+
var onDeactivate = getOption(options, "onDeactivate");
|
|
984
|
+
var onPostDeactivate = getOption(options, "onPostDeactivate");
|
|
985
|
+
var checkCanReturnFocus = getOption(options, "checkCanReturnFocus");
|
|
986
|
+
var returnFocus = getOption(options, "returnFocus", "returnFocusOnDeactivate");
|
|
987
|
+
onDeactivate === null || onDeactivate === void 0 || onDeactivate();
|
|
988
|
+
var finishDeactivation = function finishDeactivation2() {
|
|
989
|
+
delay(function() {
|
|
990
|
+
if (returnFocus) {
|
|
991
|
+
_tryFocus(getReturnFocusNode(state.nodeFocusedBeforeActivation));
|
|
992
|
+
}
|
|
993
|
+
onPostDeactivate === null || onPostDeactivate === void 0 || onPostDeactivate();
|
|
994
|
+
});
|
|
995
|
+
};
|
|
996
|
+
if (returnFocus && checkCanReturnFocus) {
|
|
997
|
+
checkCanReturnFocus(getReturnFocusNode(state.nodeFocusedBeforeActivation)).then(finishDeactivation, finishDeactivation);
|
|
998
|
+
return this;
|
|
999
|
+
}
|
|
1000
|
+
finishDeactivation();
|
|
1001
|
+
return this;
|
|
1002
|
+
},
|
|
1003
|
+
pause: function pause(pauseOptions) {
|
|
1004
|
+
if (!state.active) {
|
|
1005
|
+
return this;
|
|
1006
|
+
}
|
|
1007
|
+
state.manuallyPaused = true;
|
|
1008
|
+
return this._setPausedState(true, pauseOptions);
|
|
1009
|
+
},
|
|
1010
|
+
unpause: function unpause(unpauseOptions) {
|
|
1011
|
+
if (!state.active) {
|
|
1012
|
+
return this;
|
|
1013
|
+
}
|
|
1014
|
+
state.manuallyPaused = false;
|
|
1015
|
+
if (trapStack[trapStack.length - 1] !== this) {
|
|
1016
|
+
return this;
|
|
1017
|
+
}
|
|
1018
|
+
return this._setPausedState(false, unpauseOptions);
|
|
1019
|
+
},
|
|
1020
|
+
updateContainerElements: function updateContainerElements(containerElements) {
|
|
1021
|
+
var elementsAsArray = [].concat(containerElements).filter(Boolean);
|
|
1022
|
+
state.containers = elementsAsArray.map(function(element) {
|
|
1023
|
+
return typeof element === "string" ? doc.querySelector(element) : element;
|
|
1024
|
+
});
|
|
1025
|
+
if (state.active) {
|
|
1026
|
+
updateTabbableNodes();
|
|
1027
|
+
}
|
|
1028
|
+
updateObservedNodes();
|
|
1029
|
+
return this;
|
|
1030
|
+
}
|
|
1031
|
+
};
|
|
1032
|
+
Object.defineProperties(trap, {
|
|
1033
|
+
_isManuallyPaused: {
|
|
1034
|
+
value: function value() {
|
|
1035
|
+
return state.manuallyPaused;
|
|
1036
|
+
}
|
|
1037
|
+
},
|
|
1038
|
+
_setPausedState: {
|
|
1039
|
+
value: function value(paused, options) {
|
|
1040
|
+
if (state.paused === paused) {
|
|
1041
|
+
return this;
|
|
1042
|
+
}
|
|
1043
|
+
state.paused = paused;
|
|
1044
|
+
if (paused) {
|
|
1045
|
+
var onPause = getOption(options, "onPause");
|
|
1046
|
+
var onPostPause = getOption(options, "onPostPause");
|
|
1047
|
+
onPause === null || onPause === void 0 || onPause();
|
|
1048
|
+
removeListeners();
|
|
1049
|
+
updateObservedNodes();
|
|
1050
|
+
onPostPause === null || onPostPause === void 0 || onPostPause();
|
|
1051
|
+
} else {
|
|
1052
|
+
var onUnpause = getOption(options, "onUnpause");
|
|
1053
|
+
var onPostUnpause = getOption(options, "onPostUnpause");
|
|
1054
|
+
onUnpause === null || onUnpause === void 0 || onUnpause();
|
|
1055
|
+
updateTabbableNodes();
|
|
1056
|
+
addListeners();
|
|
1057
|
+
updateObservedNodes();
|
|
1058
|
+
onPostUnpause === null || onPostUnpause === void 0 || onPostUnpause();
|
|
1059
|
+
}
|
|
1060
|
+
return this;
|
|
1061
|
+
}
|
|
1062
|
+
}
|
|
1063
|
+
});
|
|
1064
|
+
trap.updateContainerElements(elements);
|
|
1065
|
+
return trap;
|
|
1066
|
+
};
|
|
1067
|
+
|
|
1068
|
+
// node_modules/.pnpm/@vueuse+integrations@13.9.0_focus-trap@7.6.5_vue@3.5.22_typescript@5.9.2_/node_modules/@vueuse/integrations/useFocusTrap.mjs
|
|
1069
|
+
function useFocusTrap(target, options = {}) {
|
|
1070
|
+
let trap;
|
|
1071
|
+
const { immediate, ...focusTrapOptions } = options;
|
|
1072
|
+
const hasFocus = shallowRef(false);
|
|
1073
|
+
const isPaused = shallowRef(false);
|
|
1074
|
+
const activate = (opts) => trap && trap.activate(opts);
|
|
1075
|
+
const deactivate = (opts) => trap && trap.deactivate(opts);
|
|
1076
|
+
const pause = () => {
|
|
1077
|
+
if (trap) {
|
|
1078
|
+
trap.pause();
|
|
1079
|
+
isPaused.value = true;
|
|
1080
|
+
}
|
|
1081
|
+
};
|
|
1082
|
+
const unpause = () => {
|
|
1083
|
+
if (trap) {
|
|
1084
|
+
trap.unpause();
|
|
1085
|
+
isPaused.value = false;
|
|
1086
|
+
}
|
|
1087
|
+
};
|
|
1088
|
+
const targets = computed(() => {
|
|
1089
|
+
const _targets = toValue(target);
|
|
1090
|
+
return toArray(_targets).map((el) => {
|
|
1091
|
+
const _el = toValue(el);
|
|
1092
|
+
return typeof _el === "string" ? _el : unrefElement(_el);
|
|
1093
|
+
}).filter(notNullish);
|
|
1094
|
+
});
|
|
1095
|
+
watch(
|
|
1096
|
+
targets,
|
|
1097
|
+
(els) => {
|
|
1098
|
+
if (!els.length)
|
|
1099
|
+
return;
|
|
1100
|
+
if (!trap) {
|
|
1101
|
+
trap = createFocusTrap(els, {
|
|
1102
|
+
...focusTrapOptions,
|
|
1103
|
+
onActivate() {
|
|
1104
|
+
hasFocus.value = true;
|
|
1105
|
+
if (options.onActivate)
|
|
1106
|
+
options.onActivate();
|
|
1107
|
+
},
|
|
1108
|
+
onDeactivate() {
|
|
1109
|
+
hasFocus.value = false;
|
|
1110
|
+
if (options.onDeactivate)
|
|
1111
|
+
options.onDeactivate();
|
|
1112
|
+
}
|
|
1113
|
+
});
|
|
1114
|
+
if (immediate)
|
|
1115
|
+
activate();
|
|
1116
|
+
} else {
|
|
1117
|
+
const isActive = trap == null ? void 0 : trap.active;
|
|
1118
|
+
trap == null ? void 0 : trap.updateContainerElements(els);
|
|
1119
|
+
if (!isActive && immediate) {
|
|
1120
|
+
activate();
|
|
1121
|
+
}
|
|
1122
|
+
}
|
|
1123
|
+
},
|
|
1124
|
+
{ flush: "post" }
|
|
1125
|
+
);
|
|
1126
|
+
tryOnScopeDispose(() => deactivate());
|
|
1127
|
+
return {
|
|
1128
|
+
hasFocus,
|
|
1129
|
+
isPaused,
|
|
1130
|
+
activate,
|
|
1131
|
+
deactivate,
|
|
1132
|
+
pause,
|
|
1133
|
+
unpause
|
|
1134
|
+
};
|
|
1135
|
+
}
|
|
1136
|
+
export {
|
|
1137
|
+
useFocusTrap
|
|
1138
|
+
};
|
|
1139
|
+
/*! Bundled license information:
|
|
1140
|
+
|
|
1141
|
+
tabbable/dist/index.esm.js:
|
|
1142
|
+
(*!
|
|
1143
|
+
* tabbable 6.2.0
|
|
1144
|
+
* @license MIT, https://github.com/focus-trap/tabbable/blob/master/LICENSE
|
|
1145
|
+
*)
|
|
1146
|
+
|
|
1147
|
+
focus-trap/dist/focus-trap.esm.js:
|
|
1148
|
+
(*!
|
|
1149
|
+
* focus-trap 7.6.5
|
|
1150
|
+
* @license MIT, https://github.com/focus-trap/focus-trap/blob/master/LICENSE
|
|
1151
|
+
*)
|
|
1152
|
+
*/
|
|
1153
|
+
//# sourceMappingURL=vitepress___@vueuse_integrations_useFocusTrap.js.map
|