@featherk/composables 0.12.2 → 0.12.4
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/docs-manifest.d.ts +28 -0
- package/dist/docs-manifest.js +45 -0
- package/dist/featherk-composables.es.js +142 -142
- package/dist/featherk-composables.es.js.map +1 -1
- package/dist/featherk-composables.umd.js +1 -1
- package/dist/featherk-composables.umd.js.map +1 -1
- package/dist/menu/usePopupMenu.d.ts +2 -0
- package/docs/menu/usePopupMenu.md +1 -1
- package/package.json +8 -2
|
@@ -2,27 +2,27 @@ import { ref as Y, onBeforeUnmount as Ve, nextTick as H, computed as h, watchEff
|
|
|
2
2
|
import { useFocusTrap as Ue } from "@vueuse/integrations/useFocusTrap";
|
|
3
3
|
const vt = (e, t) => {
|
|
4
4
|
const r = Y(null);
|
|
5
|
-
let g = !1,
|
|
5
|
+
let g = !1, s = null, f = null;
|
|
6
6
|
const A = [], I = ".k-table-row[data-grid-row-index] [tabindex]", F = () => {
|
|
7
|
-
const
|
|
8
|
-
return
|
|
9
|
-
}, N = (
|
|
7
|
+
const u = e?.value?.$el;
|
|
8
|
+
return u ? u.closest(".k-grid") : null;
|
|
9
|
+
}, N = (u) => {
|
|
10
10
|
const k = F();
|
|
11
11
|
if (!k) return !1;
|
|
12
|
-
const y =
|
|
12
|
+
const y = u.closest(".k-grid-aria-root");
|
|
13
13
|
if (y)
|
|
14
14
|
return k.contains(y);
|
|
15
|
-
const w =
|
|
15
|
+
const w = u.closest(
|
|
16
16
|
".k-grid-header, .k-grid-content, .k-grid-content-locked"
|
|
17
17
|
);
|
|
18
18
|
return w ? k.contains(w) : !1;
|
|
19
|
-
}, E = (
|
|
20
|
-
const k =
|
|
21
|
-
([" ", "Spacebar", "Space"].includes(k) || E(
|
|
22
|
-
}, D = (
|
|
19
|
+
}, E = (u) => u.key === "Enter" || u.code === "Enter" || u.code === "NumpadEnter", $ = () => e?.value?.columns, x = (u) => {
|
|
20
|
+
const k = u.key || u.code;
|
|
21
|
+
([" ", "Spacebar", "Space"].includes(k) || E(u)) && (u.preventDefault(), u.stopPropagation(), r.value = u.target, u.target.click());
|
|
22
|
+
}, D = (u) => {
|
|
23
23
|
if (!r.value) return;
|
|
24
|
-
if (
|
|
25
|
-
|
|
24
|
+
if (u.code === "Escape") {
|
|
25
|
+
u.stopPropagation(), r.value && r.value.focus();
|
|
26
26
|
return;
|
|
27
27
|
}
|
|
28
28
|
const k = Array.from(
|
|
@@ -33,7 +33,7 @@ const vt = (e, t) => {
|
|
|
33
33
|
".k-animation-container .k-popup .k-column-menu .k-filter-menu-container"
|
|
34
34
|
);
|
|
35
35
|
if (y) {
|
|
36
|
-
if (
|
|
36
|
+
if (u.code === "Tab") {
|
|
37
37
|
const w = [
|
|
38
38
|
// ".k-filter-menu-container .k-dropdownlist[tabindex='0']",
|
|
39
39
|
// ".k-filter-menu-container input.k-input-inner:not([tabindex='-1']):not([disabled])",
|
|
@@ -51,27 +51,27 @@ const vt = (e, t) => {
|
|
|
51
51
|
(U) => U === document.activeElement
|
|
52
52
|
);
|
|
53
53
|
let V;
|
|
54
|
-
p === -1 ? V = 0 :
|
|
54
|
+
p === -1 ? V = 0 : u.shiftKey ? V = (p - 1 + l.length) % l.length : V = (p + 1) % l.length, u.preventDefault(), u.stopPropagation(), l[V]?.focus();
|
|
55
55
|
}
|
|
56
|
-
} else if (
|
|
57
|
-
|
|
56
|
+
} else if (u.code === "ArrowUp" || u.code === "ArrowDown") {
|
|
57
|
+
u.preventDefault(), u.stopPropagation();
|
|
58
58
|
const w = k.findIndex(
|
|
59
59
|
(l) => l === document.activeElement
|
|
60
60
|
);
|
|
61
61
|
let T = w;
|
|
62
|
-
|
|
62
|
+
u.code === "ArrowUp" ? T = w > 0 ? w - 1 : k.length - 1 : u.code === "ArrowDown" && (T = w < k.length - 1 ? w + 1 : 0), k[T]?.focus();
|
|
63
63
|
return;
|
|
64
64
|
}
|
|
65
|
-
if (
|
|
66
|
-
|
|
65
|
+
if (u.code === "Tab") {
|
|
66
|
+
u.preventDefault(), u.stopPropagation();
|
|
67
67
|
const w = r.value?.parentElement;
|
|
68
|
-
(
|
|
68
|
+
(u.shiftKey ? w?.previousElementSibling : w?.nextElementSibling)?.querySelector(
|
|
69
69
|
"button, [role='button'], .k-link"
|
|
70
70
|
)?.focus();
|
|
71
71
|
}
|
|
72
72
|
}, C = () => {
|
|
73
|
-
|
|
74
|
-
|
|
73
|
+
s = new MutationObserver((u) => {
|
|
74
|
+
u.forEach((k) => {
|
|
75
75
|
k.addedNodes.forEach((y) => {
|
|
76
76
|
if (y.nodeType === Node.ELEMENT_NODE) {
|
|
77
77
|
const w = y;
|
|
@@ -130,19 +130,19 @@ const vt = (e, t) => {
|
|
|
130
130
|
}
|
|
131
131
|
});
|
|
132
132
|
});
|
|
133
|
-
}),
|
|
133
|
+
}), s.observe(document.body, {
|
|
134
134
|
childList: !0,
|
|
135
135
|
subtree: !0
|
|
136
136
|
});
|
|
137
|
-
}, c = (
|
|
138
|
-
const k =
|
|
139
|
-
return !!(["input", "textarea", "select", "button"].includes(k) ||
|
|
137
|
+
}, c = (u) => {
|
|
138
|
+
const k = u.tagName.toLowerCase();
|
|
139
|
+
return !!(["input", "textarea", "select", "button"].includes(k) || u.closest(
|
|
140
140
|
'.k-picker-wrap, .k-input-inner, .k-textbox, [role="combobox"]'
|
|
141
141
|
));
|
|
142
|
-
}, i = (
|
|
143
|
-
if (!
|
|
142
|
+
}, i = (u) => {
|
|
143
|
+
if (!u.type || !u)
|
|
144
144
|
return;
|
|
145
|
-
const k =
|
|
145
|
+
const k = u.target;
|
|
146
146
|
if (!k) return;
|
|
147
147
|
const y = k.closest(
|
|
148
148
|
".k-table-row[data-grid-row-index]"
|
|
@@ -150,13 +150,13 @@ const vt = (e, t) => {
|
|
|
150
150
|
if (!N(k))
|
|
151
151
|
return;
|
|
152
152
|
const w = ["ArrowLeft", "ArrowRight"].includes(
|
|
153
|
-
|
|
153
|
+
u.code
|
|
154
154
|
);
|
|
155
155
|
if (!(c(k) && !(y && w))) {
|
|
156
|
-
if (
|
|
156
|
+
if (u.code === "Escape") {
|
|
157
157
|
const T = document.activeElement?.closest(".k-table-row[data-grid-row-index]");
|
|
158
158
|
if (T) {
|
|
159
|
-
|
|
159
|
+
u.preventDefault(), u.stopPropagation();
|
|
160
160
|
try {
|
|
161
161
|
Array.from(
|
|
162
162
|
e?.value.$el.querySelectorAll(
|
|
@@ -177,14 +177,14 @@ const vt = (e, t) => {
|
|
|
177
177
|
"Enter",
|
|
178
178
|
"NumpadEnter",
|
|
179
179
|
"Space"
|
|
180
|
-
].includes(
|
|
180
|
+
].includes(u.code)) {
|
|
181
181
|
if (k.classList.contains("k-grid-header-menu") && k.classList.contains("k-grid-column-menu")) {
|
|
182
182
|
r.value = k;
|
|
183
183
|
return;
|
|
184
184
|
}
|
|
185
185
|
if (y) {
|
|
186
|
-
if (["ArrowDown", "ArrowUp"].includes(
|
|
187
|
-
|
|
186
|
+
if (["ArrowDown", "ArrowUp"].includes(u.code)) {
|
|
187
|
+
u.preventDefault(), u.stopPropagation();
|
|
188
188
|
const T = (p, V) => {
|
|
189
189
|
let U = V === "next" ? p.nextElementSibling : p.previousElementSibling;
|
|
190
190
|
for (; U; ) {
|
|
@@ -197,12 +197,12 @@ const vt = (e, t) => {
|
|
|
197
197
|
U = V === "next" ? U.nextElementSibling : U.previousElementSibling;
|
|
198
198
|
}
|
|
199
199
|
return null;
|
|
200
|
-
}, l =
|
|
200
|
+
}, l = u.code === "ArrowDown" ? T(y, "next") : T(y, "previous");
|
|
201
201
|
l && (y.setAttribute("tabindex", "-1"), l.setAttribute("tabindex", "0"), l.focus());
|
|
202
202
|
return;
|
|
203
203
|
}
|
|
204
|
-
if (["ArrowLeft", "ArrowRight"].includes(
|
|
205
|
-
|
|
204
|
+
if (["ArrowLeft", "ArrowRight"].includes(u.code)) {
|
|
205
|
+
u.preventDefault(), u.stopPropagation();
|
|
206
206
|
const T = y.querySelectorAll(
|
|
207
207
|
I
|
|
208
208
|
);
|
|
@@ -214,7 +214,7 @@ const vt = (e, t) => {
|
|
|
214
214
|
T[0].focus();
|
|
215
215
|
return;
|
|
216
216
|
}
|
|
217
|
-
|
|
217
|
+
u.code === "ArrowRight" ? l = l === T.length - 1 ? 0 : l + 1 : u.code === "ArrowLeft" && (l = l === 0 ? T.length - 1 : l - 1), T[l].focus();
|
|
218
218
|
return;
|
|
219
219
|
}
|
|
220
220
|
}
|
|
@@ -222,15 +222,15 @@ const vt = (e, t) => {
|
|
|
222
222
|
}
|
|
223
223
|
}, m = () => {
|
|
224
224
|
H(() => {
|
|
225
|
-
const
|
|
226
|
-
if (!
|
|
227
|
-
const k =
|
|
225
|
+
const u = e.value?.$el;
|
|
226
|
+
if (!u || typeof u.closest != "function") return;
|
|
227
|
+
const k = u.closest(".k-grid");
|
|
228
228
|
k && k.classList.add("fk-grid");
|
|
229
229
|
});
|
|
230
230
|
}, S = () => {
|
|
231
231
|
if (!f)
|
|
232
232
|
try {
|
|
233
|
-
const
|
|
233
|
+
const u = () => {
|
|
234
234
|
try {
|
|
235
235
|
const w = Array.from(
|
|
236
236
|
e.value.$el.querySelectorAll(
|
|
@@ -261,10 +261,10 @@ const vt = (e, t) => {
|
|
|
261
261
|
});
|
|
262
262
|
const y = e.value.$el.querySelector(".k-table-tbody");
|
|
263
263
|
y && (f = new MutationObserver(() => {
|
|
264
|
-
|
|
264
|
+
u();
|
|
265
265
|
}), f.observe(y, { childList: !0, subtree: !0 }));
|
|
266
|
-
} catch (
|
|
267
|
-
console.error("Error setting up row navigation:",
|
|
266
|
+
} catch (u) {
|
|
267
|
+
console.error("Error setting up row navigation:", u);
|
|
268
268
|
}
|
|
269
269
|
}, R = () => {
|
|
270
270
|
H(() => {
|
|
@@ -283,7 +283,7 @@ const vt = (e, t) => {
|
|
|
283
283
|
"keydown",
|
|
284
284
|
x
|
|
285
285
|
);
|
|
286
|
-
}),
|
|
286
|
+
}), s && (s.disconnect(), s = null), f && (f.disconnect(), f = null), A.forEach((y) => y()), A.length = 0;
|
|
287
287
|
}, q = () => {
|
|
288
288
|
document.querySelectorAll(
|
|
289
289
|
".k-grid-header .k-table-thead th"
|
|
@@ -354,19 +354,19 @@ const vt = (e, t) => {
|
|
|
354
354
|
);
|
|
355
355
|
}), k.dataset.featherKHeaderBound = "true";
|
|
356
356
|
}
|
|
357
|
-
}, X = function(
|
|
358
|
-
const y =
|
|
357
|
+
}, X = function(u, k) {
|
|
358
|
+
const y = u?.event?.event.target, w = $();
|
|
359
359
|
if (!y || !w) return;
|
|
360
|
-
const T = y.classList.contains("k-grid-header-menu"), l = y.classList.contains("k-columnmenu-item"), p = w.find((V) => V.field ===
|
|
360
|
+
const T = y.classList.contains("k-grid-header-menu"), l = y.classList.contains("k-columnmenu-item"), p = w.find((V) => V.field === u?.event?.field)?.sortable && !0;
|
|
361
361
|
if (!T) {
|
|
362
362
|
if (l && !p) {
|
|
363
|
-
|
|
364
|
-
(U) => U.field !==
|
|
363
|
+
u?.event?.sort?.filter(
|
|
364
|
+
(U) => U.field !== u?.event?.field
|
|
365
365
|
);
|
|
366
366
|
return;
|
|
367
367
|
}
|
|
368
368
|
typeof k == "function" && H(() => {
|
|
369
|
-
r.value && r.value.focus(), k(
|
|
369
|
+
r.value && r.value.focus(), k(u), H(() => {
|
|
370
370
|
q();
|
|
371
371
|
});
|
|
372
372
|
});
|
|
@@ -375,8 +375,8 @@ const vt = (e, t) => {
|
|
|
375
375
|
if (!g)
|
|
376
376
|
try {
|
|
377
377
|
m(), S(), R(), g = !0;
|
|
378
|
-
} catch (
|
|
379
|
-
console.error("initA11y failed:",
|
|
378
|
+
} catch (u) {
|
|
379
|
+
console.error("initA11y failed:", u), K();
|
|
380
380
|
}
|
|
381
381
|
};
|
|
382
382
|
return Ve(() => {
|
|
@@ -414,12 +414,12 @@ const vt = (e, t) => {
|
|
|
414
414
|
onRowAction: t,
|
|
415
415
|
gridRef: r,
|
|
416
416
|
dataItems: g,
|
|
417
|
-
ignoreSelectors:
|
|
417
|
+
ignoreSelectors: s = [],
|
|
418
418
|
shouldIgnoreTarget: f,
|
|
419
419
|
enableKeyboardAction: A = !0
|
|
420
420
|
} = e, I = [
|
|
421
421
|
...ze,
|
|
422
|
-
...
|
|
422
|
+
...s
|
|
423
423
|
], F = (c, i) => {
|
|
424
424
|
if (!c) return !1;
|
|
425
425
|
const m = I.join(",");
|
|
@@ -509,7 +509,7 @@ const vt = (e, t) => {
|
|
|
509
509
|
k && X !== void 0 && X >= 0 && X < k.length && (ee = k[X]);
|
|
510
510
|
}
|
|
511
511
|
if (ee === void 0) return;
|
|
512
|
-
const
|
|
512
|
+
const u = {
|
|
513
513
|
dataItem: ee,
|
|
514
514
|
rowIndex: X,
|
|
515
515
|
event: c,
|
|
@@ -520,7 +520,7 @@ const vt = (e, t) => {
|
|
|
520
520
|
altKey: !!c.altKey,
|
|
521
521
|
coordinates: $(K)
|
|
522
522
|
};
|
|
523
|
-
t(ee,
|
|
523
|
+
t(ee, u);
|
|
524
524
|
},
|
|
525
525
|
isIgnoredTarget: F
|
|
526
526
|
};
|
|
@@ -530,8 +530,8 @@ const vt = (e, t) => {
|
|
|
530
530
|
}, Xe = (e, t) => e.slice(0, Math.max(0, t)).replace(/\D/g, "").length, Ze = (e) => e <= 5 ? e : Math.min(e + 1, 10), We = (e) => {
|
|
531
531
|
const t = Y(Re(e.initialValue ?? "")), r = Y(!1), g = Y(
|
|
532
532
|
e.errorMessage?.trim() || He
|
|
533
|
-
),
|
|
534
|
-
const D =
|
|
533
|
+
), s = h(() => t.value.replace(/\D/g, "")), f = h(() => {
|
|
534
|
+
const D = s.value.length;
|
|
535
535
|
return D === 5 || D === 9;
|
|
536
536
|
}), A = h(() => r.value && !f.value), I = h(() => !r.value || f.value), F = h(() => r.value), N = (D, C) => {
|
|
537
537
|
const c = Ze(C);
|
|
@@ -547,7 +547,7 @@ const vt = (e, t) => {
|
|
|
547
547
|
// bindings
|
|
548
548
|
wrapperClass: "fk-zip-textbox",
|
|
549
549
|
// derived state
|
|
550
|
-
zipRaw:
|
|
550
|
+
zipRaw: s,
|
|
551
551
|
isZipValid: f,
|
|
552
552
|
showZipError: A,
|
|
553
553
|
textBoxValid: I,
|
|
@@ -569,7 +569,7 @@ const vt = (e, t) => {
|
|
|
569
569
|
)?.focus();
|
|
570
570
|
}), C;
|
|
571
571
|
},
|
|
572
|
-
buildPayload: () => ({ zip:
|
|
572
|
+
buildPayload: () => ({ zip: s.value })
|
|
573
573
|
};
|
|
574
574
|
};
|
|
575
575
|
function _e(e, t) {
|
|
@@ -581,19 +581,19 @@ function _e(e, t) {
|
|
|
581
581
|
const A = e.value ?? f.currentTarget, I = f.relatedTarget;
|
|
582
582
|
(!A || !A.contains(I)) && (r.value = !0);
|
|
583
583
|
}
|
|
584
|
-
function
|
|
584
|
+
function s() {
|
|
585
585
|
r.value = !1;
|
|
586
586
|
}
|
|
587
|
-
return { touched: r, onFocusout: g, reset:
|
|
587
|
+
return { touched: r, onFocusout: g, reset: s };
|
|
588
588
|
}
|
|
589
589
|
function je(e, t) {
|
|
590
|
-
const r = Y(!1), g = Y(!1),
|
|
590
|
+
const r = Y(!1), g = Y(!1), s = h(
|
|
591
591
|
() => re(t.submitted) || r.value
|
|
592
|
-
), f = h(() => !
|
|
592
|
+
), f = h(() => !s.value || t.isValid()), A = _e(e, {
|
|
593
593
|
isValid: () => f.value
|
|
594
594
|
});
|
|
595
595
|
function I(x) {
|
|
596
|
-
return h(() => !
|
|
596
|
+
return h(() => !s.value || re(x));
|
|
597
597
|
}
|
|
598
598
|
function F(x) {
|
|
599
599
|
return Object.fromEntries(
|
|
@@ -622,7 +622,7 @@ function je(e, t) {
|
|
|
622
622
|
}
|
|
623
623
|
return {
|
|
624
624
|
touched: r,
|
|
625
|
-
fieldsetValidate:
|
|
625
|
+
fieldsetValidate: s,
|
|
626
626
|
onFocusout: E,
|
|
627
627
|
reset: $,
|
|
628
628
|
createFieldValidity: I,
|
|
@@ -719,12 +719,12 @@ function Je() {
|
|
|
719
719
|
function Qe(e, t = "zip") {
|
|
720
720
|
const r = We({ id: t }), {
|
|
721
721
|
zipDisplay: g,
|
|
722
|
-
zipRaw:
|
|
722
|
+
zipRaw: s,
|
|
723
723
|
isZipValid: f,
|
|
724
724
|
wrapperClass: A,
|
|
725
725
|
handleZipInput: I
|
|
726
726
|
} = r;
|
|
727
|
-
return se(
|
|
727
|
+
return se(s, (N) => {
|
|
728
728
|
e.zip = N;
|
|
729
729
|
}), {
|
|
730
730
|
zipDisplay: g,
|
|
@@ -739,14 +739,14 @@ function Qe(e, t = "zip") {
|
|
|
739
739
|
function et(e) {
|
|
740
740
|
const t = h(
|
|
741
741
|
() => e.formData.address1.trim() !== ""
|
|
742
|
-
), r = h(() => e.formData.city.trim() !== ""), g = h(() => !!e.formData.state),
|
|
743
|
-
() => t.value && r.value && g.value &&
|
|
742
|
+
), r = h(() => e.formData.city.trim() !== ""), g = h(() => !!e.formData.state), s = h(() => re(e.isZipValid)), f = h(
|
|
743
|
+
() => t.value && r.value && g.value && s.value
|
|
744
744
|
);
|
|
745
745
|
return {
|
|
746
746
|
strictAddress1Valid: t,
|
|
747
747
|
strictCityValid: r,
|
|
748
748
|
strictStateValid: g,
|
|
749
|
-
strictZipValid:
|
|
749
|
+
strictZipValid: s,
|
|
750
750
|
strictAddressValid: f
|
|
751
751
|
};
|
|
752
752
|
}
|
|
@@ -767,7 +767,7 @@ function ht(e) {
|
|
|
767
767
|
Fe(() => {
|
|
768
768
|
t.value = re(e.fieldsetRef);
|
|
769
769
|
});
|
|
770
|
-
const r = Y(!1), g = Y(!1),
|
|
770
|
+
const r = Y(!1), g = Y(!1), s = h(() => re(e.required) ?? !0), {
|
|
771
771
|
formData: f,
|
|
772
772
|
onAddress1Input: A,
|
|
773
773
|
onAddress2Input: I,
|
|
@@ -786,7 +786,7 @@ function ht(e) {
|
|
|
786
786
|
}), X = je(t, {
|
|
787
787
|
submitted: r,
|
|
788
788
|
isValid: () => q.value
|
|
789
|
-
}), { touched: ee, fieldsetValidate:
|
|
789
|
+
}), { touched: ee, fieldsetValidate: u, onFocusout: k, reset: y } = X, w = X.createFieldValidationsMap({
|
|
790
790
|
address1: m,
|
|
791
791
|
city: S,
|
|
792
792
|
state: R,
|
|
@@ -799,17 +799,17 @@ function ht(e) {
|
|
|
799
799
|
zip: V,
|
|
800
800
|
address: U
|
|
801
801
|
} = w, ae = h(
|
|
802
|
-
() =>
|
|
802
|
+
() => s.value ? u.value : !1
|
|
803
803
|
), ne = h(
|
|
804
|
-
() =>
|
|
804
|
+
() => s.value ? T.value : !0
|
|
805
805
|
), a = h(
|
|
806
|
-
() =>
|
|
806
|
+
() => s.value ? l.value : !0
|
|
807
807
|
), b = h(
|
|
808
|
-
() =>
|
|
808
|
+
() => s.value ? p.value : !0
|
|
809
809
|
), L = h(
|
|
810
|
-
() =>
|
|
810
|
+
() => s.value ? V.value : !0
|
|
811
811
|
), Z = h(
|
|
812
|
-
() =>
|
|
812
|
+
() => s.value ? U.value : !0
|
|
813
813
|
), W = { value: null, label: "State" }, j = Ge.map(({ label: v, value: M }) => ({
|
|
814
814
|
label: v,
|
|
815
815
|
value: M
|
|
@@ -819,13 +819,13 @@ function ht(e) {
|
|
|
819
819
|
city: f.city.trim(),
|
|
820
820
|
state: (f.state ?? "").trim().toUpperCase(),
|
|
821
821
|
zip: f.zip.replace(/\D/g, "")
|
|
822
|
-
})), d = h(() => f.address1.trim() === "" && f.address2.trim() === "" && f.city.trim() === "" && (f.state ?? "").trim() === "" && f.zip.replace(/\D/g, "") === ""), P = h(() => !d.value), B = h(() => !
|
|
822
|
+
})), d = h(() => f.address1.trim() === "" && f.address2.trim() === "" && f.city.trim() === "" && (f.state ?? "").trim() === "" && f.zip.replace(/\D/g, "") === ""), P = h(() => !d.value), B = h(() => !s.value && P.value && (!m.value || !S.value || !R.value)), G = h(() => {
|
|
823
823
|
const v = f.zip.replace(/\D/g, "");
|
|
824
|
-
return !
|
|
825
|
-
}), te = h(() => !
|
|
824
|
+
return !s.value && P.value && v.length !== 5 && v.length !== 9;
|
|
825
|
+
}), te = h(() => !s.value && P.value && !q.value), z = h(() => !s.value && te.value && (g.value || r.value));
|
|
826
826
|
return se(n, () => {
|
|
827
|
-
|
|
828
|
-
}), se(
|
|
827
|
+
s.value || (g.value = !1);
|
|
828
|
+
}), se(s, (v) => {
|
|
829
829
|
v || (r.value = !1, g.value = !1, y());
|
|
830
830
|
}), {
|
|
831
831
|
formData: f,
|
|
@@ -852,10 +852,10 @@ function ht(e) {
|
|
|
852
852
|
onZipInput: c,
|
|
853
853
|
onFieldsetFocusout: (v) => {
|
|
854
854
|
const M = nt(t.value, v);
|
|
855
|
-
k(v), !
|
|
855
|
+
k(v), !s.value && M && (g.value = !0);
|
|
856
856
|
},
|
|
857
857
|
normalizedPayload: n,
|
|
858
|
-
validateForSubmit: async () =>
|
|
858
|
+
validateForSubmit: async () => s.value ? (r.value = !0, q.value ? {
|
|
859
859
|
isValid: !0,
|
|
860
860
|
payload: n.value
|
|
861
861
|
} : (await H(), tt(t.value), { isValid: !1, payload: null })) : d.value || q.value ? (r.value = !1, {
|
|
@@ -869,7 +869,7 @@ function ht(e) {
|
|
|
869
869
|
}
|
|
870
870
|
const bt = (e = "fkid") => {
|
|
871
871
|
const t = `${e}-${Oe()}`;
|
|
872
|
-
return { instanceId: t, compose: (...g) => [t, ...g].filter((
|
|
872
|
+
return { instanceId: t, compose: (...g) => [t, ...g].filter((s) => s != null).map(String).join("-") };
|
|
873
873
|
}, rt = typeof window < "u" && typeof document < "u";
|
|
874
874
|
typeof WorkerGlobalScope < "u" && globalThis instanceof WorkerGlobalScope;
|
|
875
875
|
const at = Object.prototype.toString, ot = (e) => at.call(e) === "[object Object]", we = () => {
|
|
@@ -890,35 +890,35 @@ function he(e) {
|
|
|
890
890
|
return (t = r?.$el) !== null && t !== void 0 ? t : r;
|
|
891
891
|
}
|
|
892
892
|
function Me(...e) {
|
|
893
|
-
const t = (g,
|
|
894
|
-
const g = xe(re(e[0])).filter((
|
|
895
|
-
return g.every((
|
|
893
|
+
const t = (g, s, f, A) => (g.addEventListener(s, f, A), () => g.removeEventListener(s, f, A)), r = h(() => {
|
|
894
|
+
const g = xe(re(e[0])).filter((s) => s != null);
|
|
895
|
+
return g.every((s) => typeof s != "string") ? g : void 0;
|
|
896
896
|
});
|
|
897
897
|
return lt(() => {
|
|
898
|
-
var g,
|
|
898
|
+
var g, s;
|
|
899
899
|
return [
|
|
900
|
-
(g = (
|
|
900
|
+
(g = (s = r.value) === null || s === void 0 ? void 0 : s.map((f) => he(f))) !== null && g !== void 0 ? g : [Pe].filter((f) => f != null),
|
|
901
901
|
xe(re(r.value ? e[1] : e[0])),
|
|
902
902
|
xe(Ke(r.value ? e[2] : e[1])),
|
|
903
903
|
re(r.value ? e[3] : e[2])
|
|
904
904
|
];
|
|
905
|
-
}, ([g,
|
|
906
|
-
if (!g?.length || !
|
|
907
|
-
const N = ot(A) ? { ...A } : A, E = g.flatMap(($) =>
|
|
905
|
+
}, ([g, s, f, A], I, F) => {
|
|
906
|
+
if (!g?.length || !s?.length || !f?.length) return;
|
|
907
|
+
const N = ot(A) ? { ...A } : A, E = g.flatMap(($) => s.flatMap((x) => f.map((D) => t($, x, D, N))));
|
|
908
908
|
F(() => {
|
|
909
909
|
E.forEach(($) => $());
|
|
910
910
|
});
|
|
911
911
|
}, { flush: "post" });
|
|
912
912
|
}
|
|
913
913
|
function Le(e, t, r = {}) {
|
|
914
|
-
const { window: g = Pe, ignore:
|
|
914
|
+
const { window: g = Pe, ignore: s = [], capture: f = !0, detectIframe: A = !1, controls: I = !1 } = r;
|
|
915
915
|
if (!g) return I ? {
|
|
916
916
|
stop: we,
|
|
917
917
|
cancel: we,
|
|
918
918
|
trigger: we
|
|
919
919
|
} : we;
|
|
920
920
|
let F = !0;
|
|
921
|
-
const N = (i) => re(
|
|
921
|
+
const N = (i) => re(s).some((m) => {
|
|
922
922
|
if (typeof m == "string") return Array.from(g.document.querySelectorAll(m)).some((S) => S === i.target || i.composedPath().includes(S));
|
|
923
923
|
{
|
|
924
924
|
const S = he(m);
|
|
@@ -983,13 +983,13 @@ const it = (e) => {
|
|
|
983
983
|
};
|
|
984
984
|
return typeof window < "u" && typeof window.IntersectionObserver == "function" && se(
|
|
985
985
|
[e.target, () => e.root()],
|
|
986
|
-
([
|
|
987
|
-
r(),
|
|
986
|
+
([s, f]) => {
|
|
987
|
+
r(), s && (t = new IntersectionObserver(
|
|
988
988
|
([A]) => {
|
|
989
989
|
A && e.onChange(A);
|
|
990
990
|
},
|
|
991
991
|
{ root: f, threshold: e.threshold ?? 1 }
|
|
992
|
-
), t.observe(
|
|
992
|
+
), t.observe(s));
|
|
993
993
|
},
|
|
994
994
|
{ immediate: !0 }
|
|
995
995
|
), Ce(r), { disconnect: r };
|
|
@@ -1004,8 +1004,8 @@ const it = (e) => {
|
|
|
1004
1004
|
}, dt = (e) => {
|
|
1005
1005
|
let t = e.parentElement;
|
|
1006
1006
|
for (; t; ) {
|
|
1007
|
-
const { overflow: r, overflowX: g, overflowY:
|
|
1008
|
-
if ([r, g,
|
|
1007
|
+
const { overflow: r, overflowX: g, overflowY: s } = window.getComputedStyle(t);
|
|
1008
|
+
if ([r, g, s].some(
|
|
1009
1009
|
(f) => /auto|scroll|overlay/.test(f)
|
|
1010
1010
|
))
|
|
1011
1011
|
return t;
|
|
@@ -1013,8 +1013,8 @@ const it = (e) => {
|
|
|
1013
1013
|
}
|
|
1014
1014
|
return null;
|
|
1015
1015
|
}, wt = (e) => {
|
|
1016
|
-
const t = Y(null), r = e.menuItemSelector ?? ".k-menu-item:not(.k-disabled)", g = e.triggerMode,
|
|
1017
|
-
() =>
|
|
1016
|
+
const t = Y(null), r = e.menuItemSelector ?? ".k-menu-item:not(.k-disabled)", g = e.triggerMode, s = e.anchor === !0 ? {} : e.anchor, f = Ae(null), A = () => Se(e.triggerRef.value), I = h(() => A()), F = h(
|
|
1017
|
+
() => s && s.hideWhenAnchorClipped !== !1 ? I.value : null
|
|
1018
1018
|
), N = h(() => {
|
|
1019
1019
|
const l = f.value;
|
|
1020
1020
|
return !e.isOpen.value || !l ? { left: 0, top: 0 } : {
|
|
@@ -1049,13 +1049,13 @@ const it = (e) => {
|
|
|
1049
1049
|
se(
|
|
1050
1050
|
I,
|
|
1051
1051
|
(l, p, V) => {
|
|
1052
|
-
if (!
|
|
1052
|
+
if (!s || !l) {
|
|
1053
1053
|
f.value = null;
|
|
1054
1054
|
return;
|
|
1055
1055
|
}
|
|
1056
1056
|
let U = null;
|
|
1057
1057
|
const ae = () => {
|
|
1058
|
-
U = null, f.value =
|
|
1058
|
+
U = null, f.value = s.getRect?.() ?? l.getBoundingClientRect();
|
|
1059
1059
|
}, ne = () => {
|
|
1060
1060
|
U === null && (U = window.requestAnimationFrame(ae));
|
|
1061
1061
|
}, a = typeof window.ResizeObserver == "function" ? new window.ResizeObserver(ne) : null;
|
|
@@ -1069,8 +1069,8 @@ const it = (e) => {
|
|
|
1069
1069
|
{ immediate: !0, flush: "post" }
|
|
1070
1070
|
), it({
|
|
1071
1071
|
target: F,
|
|
1072
|
-
root: () =>
|
|
1073
|
-
threshold:
|
|
1072
|
+
root: () => s?.clipRoot ? re(s.clipRoot) : I.value ? dt(I.value) : null,
|
|
1073
|
+
threshold: s?.intersectionThreshold ?? 0.5,
|
|
1074
1074
|
onChange: (l) => {
|
|
1075
1075
|
l.isIntersecting || S("anchor-hidden");
|
|
1076
1076
|
}
|
|
@@ -1113,7 +1113,7 @@ const it = (e) => {
|
|
|
1113
1113
|
},
|
|
1114
1114
|
{ flush: "post" }
|
|
1115
1115
|
);
|
|
1116
|
-
const
|
|
1116
|
+
const u = (...l) => {
|
|
1117
1117
|
const p = l[0];
|
|
1118
1118
|
if (i) {
|
|
1119
1119
|
i = !1;
|
|
@@ -1139,7 +1139,7 @@ const it = (e) => {
|
|
|
1139
1139
|
* Toggles the action menu. When opening, focuses the first enabled Kendo
|
|
1140
1140
|
* Menu item after Vue renders the popup.
|
|
1141
1141
|
*/
|
|
1142
|
-
handleActionButtonClick:
|
|
1142
|
+
handleActionButtonClick: u,
|
|
1143
1143
|
/**
|
|
1144
1144
|
* Handles trigger keyboard input: Enter and Space toggle the menu; Escape
|
|
1145
1145
|
* closes an open menu or focuses the configured target when already closed.
|
|
@@ -1147,7 +1147,7 @@ const it = (e) => {
|
|
|
1147
1147
|
handleActionButtonKeydown: (...l) => {
|
|
1148
1148
|
const p = l[0], V = l[1];
|
|
1149
1149
|
if (p.key === "Enter" || p.code === "Space") {
|
|
1150
|
-
p.preventDefault(),
|
|
1150
|
+
p.preventDefault(), u(V);
|
|
1151
1151
|
return;
|
|
1152
1152
|
}
|
|
1153
1153
|
if (p.key === "Escape") {
|
|
@@ -1175,14 +1175,14 @@ const it = (e) => {
|
|
|
1175
1175
|
};
|
|
1176
1176
|
}, St = () => {
|
|
1177
1177
|
const e = /* @__PURE__ */ new Set();
|
|
1178
|
-
return { register: (
|
|
1179
|
-
e.add(
|
|
1180
|
-
}, deactivateOthers: (
|
|
1178
|
+
return { register: (s) => {
|
|
1179
|
+
e.add(s), Ce(() => e.delete(s));
|
|
1180
|
+
}, deactivateOthers: (s) => {
|
|
1181
1181
|
e.forEach((f) => {
|
|
1182
|
-
f !==
|
|
1182
|
+
f !== s && f.deactivate();
|
|
1183
1183
|
});
|
|
1184
1184
|
}, deactivateAll: () => {
|
|
1185
|
-
e.forEach((
|
|
1185
|
+
e.forEach((s) => s.deactivate());
|
|
1186
1186
|
} };
|
|
1187
1187
|
}, ft = (e) => {
|
|
1188
1188
|
if (e instanceof HTMLElement) return e;
|
|
@@ -1192,7 +1192,7 @@ const it = (e) => {
|
|
|
1192
1192
|
const e = qe(/* @__PURE__ */ new Map()), t = Y(null), r = (I, F) => {
|
|
1193
1193
|
const N = ft(F);
|
|
1194
1194
|
N ? e.set(I, N) : e.delete(I);
|
|
1195
|
-
}, g = (I) => e.get(I) ?? null,
|
|
1195
|
+
}, g = (I) => e.get(I) ?? null, s = (I) => {
|
|
1196
1196
|
t.value = I;
|
|
1197
1197
|
}, f = () => {
|
|
1198
1198
|
t.value = null;
|
|
@@ -1205,13 +1205,13 @@ const it = (e) => {
|
|
|
1205
1205
|
),
|
|
1206
1206
|
register: r,
|
|
1207
1207
|
resolve: g,
|
|
1208
|
-
activate:
|
|
1208
|
+
activate: s,
|
|
1209
1209
|
deactivate: f,
|
|
1210
1210
|
isIdActive: A
|
|
1211
1211
|
};
|
|
1212
1212
|
};
|
|
1213
1213
|
function kt(e) {
|
|
1214
|
-
const t = Y(""), r = Y(void 0), g = Y(!!e.debug),
|
|
1214
|
+
const t = Y(""), r = Y(void 0), g = Y(!!e.debug), s = Y(e.dateFormat ?? "mm/dd/yyyy"), f = h(() => !!e.required), A = 1e3, I = Y(!1), F = ["ArrowUp", "ArrowDown"], N = ["ArrowLeft", "ArrowRight"], E = h(() => (t.value ?? "").replace(/\D/g, "")), $ = (a) => a <= 2 ? "mm" : a <= 5 ? "dd" : E.value.length <= 10 ? "yyyy" : "mm", x = h(() => {
|
|
1215
1215
|
const a = t.value && t.value.substring(0, 2).replace(/\D/g, "0") || "0";
|
|
1216
1216
|
return parseInt(a).toString().padStart(2, "0");
|
|
1217
1217
|
}), D = h(() => {
|
|
@@ -1256,7 +1256,7 @@ function kt(e) {
|
|
|
1256
1256
|
r.value = b?.selectionStart ?? 0, c(a);
|
|
1257
1257
|
}, ee = (a) => {
|
|
1258
1258
|
r.value = a.target.selectionStart ?? 0;
|
|
1259
|
-
},
|
|
1259
|
+
}, u = (a, b, L) => {
|
|
1260
1260
|
const Z = b?.selectionStart ?? r.value ?? 0;
|
|
1261
1261
|
r.value = Z;
|
|
1262
1262
|
let W = parseInt(x.value), j = parseInt(D.value), n = parseInt(C.value);
|
|
@@ -1303,13 +1303,13 @@ function kt(e) {
|
|
|
1303
1303
|
if (a.altKey) return;
|
|
1304
1304
|
a.preventDefault(), a.stopPropagation();
|
|
1305
1305
|
const b = a.target;
|
|
1306
|
-
|
|
1306
|
+
u(a.key, b, a);
|
|
1307
1307
|
return;
|
|
1308
1308
|
}
|
|
1309
1309
|
}, y = (a) => {
|
|
1310
1310
|
a.preventDefault();
|
|
1311
1311
|
const b = a.deltaY < 0 ? "ArrowUp" : "ArrowDown";
|
|
1312
|
-
|
|
1312
|
+
u(b, a.target, a);
|
|
1313
1313
|
}, w = (a) => {
|
|
1314
1314
|
const b = a.target;
|
|
1315
1315
|
if (N.includes(a.key)) {
|
|
@@ -1407,7 +1407,7 @@ function kt(e) {
|
|
|
1407
1407
|
if (a === "incomplete")
|
|
1408
1408
|
return "Required";
|
|
1409
1409
|
if (a === "invalid-date")
|
|
1410
|
-
return `Must be in ${
|
|
1410
|
+
return `Must be in ${s.value} format.`;
|
|
1411
1411
|
const b = e.min ? e.min.toLocaleDateString("en-US", {
|
|
1412
1412
|
year: "numeric",
|
|
1413
1413
|
month: "2-digit",
|
|
@@ -1455,7 +1455,7 @@ function kt(e) {
|
|
|
1455
1455
|
cursorPos: r,
|
|
1456
1456
|
debugEnabled: g,
|
|
1457
1457
|
debugLines: p,
|
|
1458
|
-
placeholder:
|
|
1458
|
+
placeholder: s,
|
|
1459
1459
|
isValid: V,
|
|
1460
1460
|
reason: Q(U),
|
|
1461
1461
|
validationMessage: ae,
|
|
@@ -1475,7 +1475,7 @@ function kt(e) {
|
|
|
1475
1475
|
};
|
|
1476
1476
|
}
|
|
1477
1477
|
function Dt(e) {
|
|
1478
|
-
const t = Y(""), r = Y(void 0), g = Y(!!e.debug),
|
|
1478
|
+
const t = Y(""), r = Y(void 0), g = Y(!!e.debug), s = Y(!1), f = 1440 * 60 * 1e3, A = 365 * f, I = /* @__PURE__ */ new Date(), F = new Date(I.getTime() - A), N = new Date(I.getTime() + A);
|
|
1479
1479
|
e.min = e.min ?? F, e.max = e.max ?? N;
|
|
1480
1480
|
const E = h(() => (t.value ?? "").replace(/\D/g, "")), $ = (o, v) => new Date(o, v, 0).getDate(), x = (o, v, M) => v >= 1 && v <= 12 && o >= 1e3 && M >= 1 && M <= $(o, v), D = (o) => Date.UTC(o.getFullYear(), o.getMonth(), o.getDate()), C = (o) => {
|
|
1481
1481
|
if (!o) return null;
|
|
@@ -1503,7 +1503,7 @@ function Dt(e) {
|
|
|
1503
1503
|
if (!K.value.start || !K.value.end) return "out-of-bounds";
|
|
1504
1504
|
const M = K.value.start, O = K.value.end;
|
|
1505
1505
|
return c(M, O) ? typeof e.maxSpanDays == "number" && q.value !== void 0 && q.value > e.maxSpanDays ? "span-exceeds-limit" : "valid" : "reversed-range";
|
|
1506
|
-
}),
|
|
1506
|
+
}), u = h(() => {
|
|
1507
1507
|
const o = ee.value;
|
|
1508
1508
|
return o === void 0 || o === "valid";
|
|
1509
1509
|
}), k = h(() => {
|
|
@@ -1624,7 +1624,7 @@ function Dt(e) {
|
|
|
1624
1624
|
r.value = v?.selectionStart ?? 0;
|
|
1625
1625
|
}
|
|
1626
1626
|
}, Z = () => {
|
|
1627
|
-
X.value = !0, (e.manageValid ?? !0) && (S.value =
|
|
1627
|
+
X.value = !0, (e.manageValid ?? !0) && (S.value = u.value);
|
|
1628
1628
|
}, W = (o) => {
|
|
1629
1629
|
Z();
|
|
1630
1630
|
}, j = (o) => {
|
|
@@ -1640,10 +1640,10 @@ function Dt(e) {
|
|
|
1640
1640
|
(o) => {
|
|
1641
1641
|
const v = o?.start ?? null, M = o?.end ?? null;
|
|
1642
1642
|
if (v && M) {
|
|
1643
|
-
if (t.value = `${l(v)} - ${l(M)}`, e.isOpen?.value &&
|
|
1643
|
+
if (t.value = `${l(v)} - ${l(M)}`, e.isOpen?.value && s.value && e.onRequestClose) {
|
|
1644
1644
|
const O = typeof e.closeDelay == "number" ? e.closeDelay : e.closeDelay?.value ?? 0;
|
|
1645
1645
|
setTimeout(() => {
|
|
1646
|
-
e.onRequestClose?.(),
|
|
1646
|
+
e.onRequestClose?.(), s.value = !1, Z();
|
|
1647
1647
|
}, O);
|
|
1648
1648
|
}
|
|
1649
1649
|
return;
|
|
@@ -1767,7 +1767,7 @@ function Dt(e) {
|
|
|
1767
1767
|
debugLines: z,
|
|
1768
1768
|
digitsOnly: E,
|
|
1769
1769
|
valid: S,
|
|
1770
|
-
validComputed: Q(
|
|
1770
|
+
validComputed: Q(u),
|
|
1771
1771
|
reason: Q(ee),
|
|
1772
1772
|
validationMessage: Q(k),
|
|
1773
1773
|
spanDays: Q(q),
|
|
@@ -1785,13 +1785,13 @@ function Dt(e) {
|
|
|
1785
1785
|
handleBlur: W,
|
|
1786
1786
|
handleClear: j,
|
|
1787
1787
|
onCalendarChange: () => {
|
|
1788
|
-
|
|
1788
|
+
s.value = !0;
|
|
1789
1789
|
},
|
|
1790
1790
|
initStyling: _
|
|
1791
1791
|
};
|
|
1792
1792
|
}
|
|
1793
1793
|
function Et(e) {
|
|
1794
|
-
const t = Y(""), r = Y(void 0), g = Y(!!e.debug),
|
|
1794
|
+
const t = Y(""), r = Y(void 0), g = Y(!!e.debug), s = Y(e.timeFormat ?? "hh:mm AM"), f = h(() => !!e.required), A = Y(!1), I = ["ArrowUp", "ArrowDown"], F = ["ArrowLeft", "ArrowRight"], N = h(() => (t.value ?? "").replace(/\D/g, "")), E = {
|
|
1795
1795
|
H: /[0-9]/,
|
|
1796
1796
|
h: /[0-9]/,
|
|
1797
1797
|
M: /[0-9]/,
|
|
@@ -1849,7 +1849,7 @@ function Et(e) {
|
|
|
1849
1849
|
}, ee = (n) => {
|
|
1850
1850
|
const d = n.getHours(), P = d >= 12 ? "PM" : "AM";
|
|
1851
1851
|
t.value = S(d, n.getMinutes(), P);
|
|
1852
|
-
},
|
|
1852
|
+
}, u = (n, d) => {
|
|
1853
1853
|
e.onChange({ value: n, event: d });
|
|
1854
1854
|
}, k = () => {
|
|
1855
1855
|
H(() => {
|
|
@@ -1870,7 +1870,7 @@ function Et(e) {
|
|
|
1870
1870
|
const d = n?.event?.target;
|
|
1871
1871
|
return d ? d.closest(".k-time-now") ? "now" : d.closest(".k-time-accept") ? "set" : null : null;
|
|
1872
1872
|
}, w = (n, d) => {
|
|
1873
|
-
n && X(n) ?
|
|
1873
|
+
n && X(n) ? u(n, d) : u(null, d);
|
|
1874
1874
|
}, T = (...n) => {
|
|
1875
1875
|
const d = n[0];
|
|
1876
1876
|
if (!d) return;
|
|
@@ -1886,7 +1886,7 @@ function Et(e) {
|
|
|
1886
1886
|
return;
|
|
1887
1887
|
}
|
|
1888
1888
|
if (d?.value === null) {
|
|
1889
|
-
t.value = "",
|
|
1889
|
+
t.value = "", u(null, d);
|
|
1890
1890
|
return;
|
|
1891
1891
|
}
|
|
1892
1892
|
t.value = d.value;
|
|
@@ -2076,7 +2076,7 @@ function Et(e) {
|
|
|
2076
2076
|
if (n === "incomplete")
|
|
2077
2077
|
return "Required";
|
|
2078
2078
|
if (n === "invalid-time")
|
|
2079
|
-
return `Must be in ${
|
|
2079
|
+
return `Must be in ${s.value} format.`;
|
|
2080
2080
|
const d = {
|
|
2081
2081
|
hour: "2-digit",
|
|
2082
2082
|
minute: "2-digit"
|
|
@@ -2118,7 +2118,7 @@ function Et(e) {
|
|
|
2118
2118
|
rules: E,
|
|
2119
2119
|
debugEnabled: g,
|
|
2120
2120
|
debugLines: a,
|
|
2121
|
-
placeholder:
|
|
2121
|
+
placeholder: s,
|
|
2122
2122
|
isValid: L,
|
|
2123
2123
|
reason: Q(Z),
|
|
2124
2124
|
validationMessage: W,
|
|
@@ -2147,13 +2147,13 @@ function It(e) {
|
|
|
2147
2147
|
".k-popup",
|
|
2148
2148
|
".k-timepicker-popup",
|
|
2149
2149
|
".k-menu-popup"
|
|
2150
|
-
], g = Array.isArray(e.popupSelector) ? e.popupSelector : [e.popupSelector ?? r].flat(),
|
|
2150
|
+
], g = Array.isArray(e.popupSelector) ? e.popupSelector : [e.popupSelector ?? r].flat(), s = (E) => E ? typeof e.initialFocus == "string" ? E.querySelector(e.initialFocus) ?? E : typeof e.initialFocus == "function" ? e.initialFocus(E) ?? E : E.querySelector(
|
|
2151
2151
|
'button, [href], input, select, textarea, [tabindex]:not([tabindex="-1"])'
|
|
2152
2152
|
) ?? E : null, { activate: f, deactivate: A } = Ue(t, {
|
|
2153
2153
|
escapeDeactivates: !1,
|
|
2154
2154
|
clickOutsideDeactivates: !1,
|
|
2155
2155
|
fallbackFocus: () => t.value,
|
|
2156
|
-
initialFocus: () =>
|
|
2156
|
+
initialFocus: () => s(t.value),
|
|
2157
2157
|
...e.focusTrapOptions ?? {}
|
|
2158
2158
|
});
|
|
2159
2159
|
let I = null, F = Y(null);
|