@adyen/bento-vue2 1.79.1 → 1.80.0
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/@types/index.d.ts +399 -920
- package/dist/action-bar.js +1 -1
- package/dist/assets/accordion-item.css +1 -1
- package/dist/assets/action-bar.css +1 -1
- package/dist/assets/base-modal.css +1 -1
- package/dist/assets/button-actions.css +1 -1
- package/dist/assets/card.css +1 -1
- package/dist/assets/data-grid.css +1 -1
- package/dist/assets/date-picker.css +1 -1
- package/dist/assets/dialog-page.css +1 -1
- package/dist/assets/file-uploader.css +1 -1
- package/dist/assets/filter-bar.css +1 -1
- package/dist/assets/focus-trap.css +1 -1
- package/dist/assets/inspector.css +1 -1
- package/dist/assets/modal-fullscreen.css +1 -1
- package/dist/assets/sidepanel.css +1 -1
- package/dist/assets/timeline-item.css +1 -1
- package/dist/button.js +1 -1
- package/dist/card.js +1 -1
- package/dist/checkbox.js +3 -3
- package/dist/chunks/{action-bar.DOaFj-A2.js → action-bar.DYH79CCh.js} +3 -3
- package/dist/chunks/{action-bar.DOaFj-A2.js.map → action-bar.DYH79CCh.js.map} +1 -1
- package/dist/chunks/{base-modal.BJ6315kP.js → base-modal.MpaQpAHB.js} +3 -3
- package/dist/chunks/{base-modal.BJ6315kP.js.map → base-modal.MpaQpAHB.js.map} +1 -1
- package/dist/chunks/{button-actions-with-menu.DPKvfKJY.js → button-actions-with-menu.ouuwtS1H.js} +2 -2
- package/dist/chunks/{button-actions-with-menu.DPKvfKJY.js.map → button-actions-with-menu.ouuwtS1H.js.map} +1 -1
- package/dist/chunks/{button-actions.C3cP-anb.js → button-actions.BoZOEVZi.js} +2 -2
- package/dist/chunks/{button-actions.C3cP-anb.js.map → button-actions.BoZOEVZi.js.map} +1 -1
- package/dist/chunks/{card.XfRuWGfC.js → card.BEM0inJ6.js} +2 -2
- package/dist/chunks/{card.XfRuWGfC.js.map → card.BEM0inJ6.js.map} +1 -1
- package/dist/chunks/{checkbox-group.h4OYdn9w.js → checkbox-group.CIIa-cYP.js} +25 -25
- package/dist/chunks/{checkbox-group.h4OYdn9w.js.map → checkbox-group.CIIa-cYP.js.map} +1 -1
- package/dist/chunks/{checkbox.CwOK7ss2.js → checkbox.CiWvdg8S.js} +3 -3
- package/dist/chunks/{checkbox.CwOK7ss2.js.map → checkbox.CiWvdg8S.js.map} +1 -1
- package/dist/chunks/{code-snippet.bzFOFUj4.js → code-snippet.CL3-Y8Az.js} +4 -4
- package/dist/chunks/{code-snippet.bzFOFUj4.js.map → code-snippet.CL3-Y8Az.js.map} +1 -1
- package/dist/chunks/{controls-group.D62vSDSk.js → controls-group.GchVWe7h.js} +2 -2
- package/dist/chunks/{controls-group.D62vSDSk.js.map → controls-group.GchVWe7h.js.map} +1 -1
- package/dist/chunks/{copy.Hu3DFJwv.js → copy.DauzzgJV.js} +3 -3
- package/dist/chunks/{copy.Hu3DFJwv.js.map → copy.DauzzgJV.js.map} +1 -1
- package/dist/chunks/{dashboard-section.BvGMr9Vl.js → dashboard-section.DiCeWZh1.js} +2 -2
- package/dist/chunks/{dashboard-section.BvGMr9Vl.js.map → dashboard-section.DiCeWZh1.js.map} +1 -1
- package/dist/chunks/{dashed-underline.D107w00E.js → dashed-underline.BfQuyT28.js} +3 -3
- package/dist/chunks/{dashed-underline.D107w00E.js.map → dashed-underline.BfQuyT28.js.map} +1 -1
- package/dist/chunks/{data-grid-template.DShJunDa.js → data-grid-template.Co0jg7Gj.js} +3 -3
- package/dist/chunks/{data-grid-template.DShJunDa.js.map → data-grid-template.Co0jg7Gj.js.map} +1 -1
- package/dist/chunks/{data-grid.C8gSMQ0A.js → data-grid.CcddqHWZ.js} +238 -226
- package/dist/chunks/data-grid.CcddqHWZ.js.map +1 -0
- package/dist/chunks/{date-picker.Dvx50znw.js → date-picker.D-7m8ONP.js} +71 -70
- package/dist/chunks/date-picker.D-7m8ONP.js.map +1 -0
- package/dist/chunks/{date-range-picker.DYYyE_e2.js → date-range-picker.CvxP8n0I.js} +6 -6
- package/dist/chunks/{date-range-picker.DYYyE_e2.js.map → date-range-picker.CvxP8n0I.js.map} +1 -1
- package/dist/chunks/{dropdown-tag.Ctn5KMFU.js → dropdown-tag.B2Ot75dU.js} +3 -3
- package/dist/chunks/{dropdown-tag.Ctn5KMFU.js.map → dropdown-tag.B2Ot75dU.js.map} +1 -1
- package/dist/chunks/{dropdown.BpT6ct8O.js → dropdown.BLgcbjv8.js} +5 -5
- package/dist/chunks/{dropdown.BpT6ct8O.js.map → dropdown.BLgcbjv8.js.map} +1 -1
- package/dist/chunks/es6.MoTTyETW.js.map +1 -1
- package/dist/chunks/{field-label.C3h8Q8Xd.js → field-label.DHGAa4cq.js} +2 -2
- package/dist/chunks/{field-label.C3h8Q8Xd.js.map → field-label.DHGAa4cq.js.map} +1 -1
- package/dist/chunks/{file-uploader.CK6dhx8T.js → file-uploader.QLtB254W.js} +3 -3
- package/dist/chunks/{file-uploader.CK6dhx8T.js.map → file-uploader.QLtB254W.js.map} +1 -1
- package/dist/chunks/filter-bar.DLAT3ops.js +2461 -0
- package/dist/chunks/filter-bar.DLAT3ops.js.map +1 -0
- package/dist/chunks/{focus-trap.BJfpIboH.js → focus-trap.CNIU5jOz.js} +53 -50
- package/dist/chunks/focus-trap.CNIU5jOz.js.map +1 -0
- package/dist/chunks/{footer-actions.DPjWGWhJ.js → footer-actions.BA1gX7_s.js} +2 -2
- package/dist/chunks/{footer-actions.DPjWGWhJ.js.map → footer-actions.BA1gX7_s.js.map} +1 -1
- package/dist/chunks/{header-meta.qT3_T35I.js → header-meta.B0KYY5s_.js} +3 -3
- package/dist/chunks/{header-meta.qT3_T35I.js.map → header-meta.B0KYY5s_.js.map} +1 -1
- package/dist/chunks/{header-with-views.DnGWHrWw.js → header-with-views.D0zXZ9Jh.js} +8 -8
- package/dist/chunks/{header-with-views.DnGWHrWw.js.map → header-with-views.D0zXZ9Jh.js.map} +1 -1
- package/dist/chunks/{header.CLDtv3Ir.js → header.BwS-1scb.js} +3 -3
- package/dist/chunks/{header.CLDtv3Ir.js.map → header.BwS-1scb.js.map} +1 -1
- package/dist/chunks/{info-icon.DGrrXpIY.js → info-icon.iKLaNff6.js} +3 -3
- package/dist/chunks/{info-icon.DGrrXpIY.js.map → info-icon.iKLaNff6.js.map} +1 -1
- package/dist/chunks/{input-field-password.uhQuUzyj.js → input-field-password.DVC_KSqj.js} +5 -5
- package/dist/chunks/{input-field-password.uhQuUzyj.js.map → input-field-password.DVC_KSqj.js.map} +1 -1
- package/dist/chunks/{input-field-phone-number.BdbaTJwH.js → input-field-phone-number.DcY0wFJH.js} +3 -3
- package/dist/chunks/{input-field-phone-number.BdbaTJwH.js.map → input-field-phone-number.DcY0wFJH.js.map} +1 -1
- package/dist/chunks/{input-field.C4XJ53Cn.js → input-field.MpAZisFn.js} +3 -3
- package/dist/chunks/{input-field.C4XJ53Cn.js.map → input-field.MpAZisFn.js.map} +1 -1
- package/dist/chunks/{inspector.pmpheRch.js → inspector.C6bbjQC0.js} +2 -2
- package/dist/chunks/{inspector.pmpheRch.js.map → inspector.C6bbjQC0.js.map} +1 -1
- package/dist/chunks/{listbox-option-tag.B94BtpSU.js → listbox-option-tag.CK628fjn.js} +2 -2
- package/dist/chunks/{listbox-option-tag.B94BtpSU.js.map → listbox-option-tag.CK628fjn.js.map} +1 -1
- package/dist/chunks/{modal-fullscreen.B3Xx-Hoc.js → modal-fullscreen.B9onBrN-.js} +3 -3
- package/dist/chunks/{modal-fullscreen.B3Xx-Hoc.js.map → modal-fullscreen.B9onBrN-.js.map} +1 -1
- package/dist/chunks/{modal.D3OSxMF6.js → modal.BgimE0kj.js} +4 -4
- package/dist/chunks/{modal.D3OSxMF6.js.map → modal.BgimE0kj.js.map} +1 -1
- package/dist/chunks/{pagination.Bvhpu21H.js → pagination.DcTUYJsK.js} +2 -2
- package/dist/chunks/{pagination.Bvhpu21H.js.map → pagination.DcTUYJsK.js.map} +1 -1
- package/dist/chunks/popover.types.WDh5ggr3.js +6 -0
- package/dist/chunks/{popover.types.DK6opPkz.js.map → popover.types.WDh5ggr3.js.map} +1 -1
- package/dist/chunks/{popper-container.agLYtGwv.js → popper-container.Cdokz_NE.js} +2 -2
- package/dist/chunks/{popper-container.agLYtGwv.js.map → popper-container.Cdokz_NE.js.map} +1 -1
- package/dist/chunks/{radio-group.BTu23ZgN.js → radio-group.Cr7UcYij.js} +4 -4
- package/dist/chunks/{radio-group.BTu23ZgN.js.map → radio-group.Cr7UcYij.js.map} +1 -1
- package/dist/chunks/{rich-text-editor.xXfZRlsV.js → rich-text-editor.Bu4pffp2.js} +4 -4
- package/dist/chunks/{rich-text-editor.xXfZRlsV.js.map → rich-text-editor.Bu4pffp2.js.map} +1 -1
- package/dist/chunks/{search-bar.BcHoTrjP.js → search-bar.C41ZmlHr.js} +3 -3
- package/dist/chunks/{search-bar.BcHoTrjP.js.map → search-bar.C41ZmlHr.js.map} +1 -1
- package/dist/chunks/{secondary-nav.DEThy9WH.js → secondary-nav.R6nXAdRN.js} +2 -2
- package/dist/chunks/{secondary-nav.DEThy9WH.js.map → secondary-nav.R6nXAdRN.js.map} +1 -1
- package/dist/chunks/{segmented-control.Dj_ZKhmU.js → segmented-control._CuB62pG.js} +2 -2
- package/dist/chunks/{segmented-control.Dj_ZKhmU.js.map → segmented-control._CuB62pG.js.map} +1 -1
- package/dist/chunks/{selection-card-group.cD72SQlR.js → selection-card-group.jykyd9iE.js} +3 -3
- package/dist/chunks/{selection-card-group.cD72SQlR.js.map → selection-card-group.jykyd9iE.js.map} +1 -1
- package/dist/chunks/{sidepanel.ClG3dhHf.js → sidepanel.ztFrPPdy.js} +3 -3
- package/dist/chunks/{sidepanel.ClG3dhHf.js.map → sidepanel.ztFrPPdy.js.map} +1 -1
- package/dist/chunks/{structured-list-item.zoY-ATTu.js → structured-list-item.BLJabJwA.js} +4 -4
- package/dist/chunks/{structured-list-item.zoY-ATTu.js.map → structured-list-item.BLJabJwA.js.map} +1 -1
- package/dist/chunks/{summary-grid.types.BA0XCVKK.js → summary-grid.types.C2LMzLj-.js} +5 -5
- package/dist/chunks/{summary-grid.types.BA0XCVKK.js.map → summary-grid.types.C2LMzLj-.js.map} +1 -1
- package/dist/chunks/{tag.BdCP2CN_.js → tag.7fp_M9Au.js} +2 -2
- package/dist/chunks/{tag.BdCP2CN_.js.map → tag.7fp_M9Au.js.map} +1 -1
- package/dist/chunks/{textarea.DaNiOOJ7.js → textarea.Ci9sKDFy.js} +2 -2
- package/dist/chunks/{textarea.DaNiOOJ7.js.map → textarea.Ci9sKDFy.js.map} +1 -1
- package/dist/chunks/timeline-item.DRA5mfHH.js +255 -0
- package/dist/chunks/timeline-item.DRA5mfHH.js.map +1 -0
- package/dist/chunks/{tooltip.Dt87KVh2.js → tooltip.BcQ24pKP.js} +2 -2
- package/dist/chunks/{tooltip.Dt87KVh2.js.map → tooltip.BcQ24pKP.js.map} +1 -1
- package/dist/chunks/{tutorial.C-q4mxUb.js → tutorial.DVGxYGkx.js} +4 -4
- package/dist/chunks/{tutorial.C-q4mxUb.js.map → tutorial.DVGxYGkx.js.map} +1 -1
- package/dist/chunks/{use-cached-selected-values.FoXcm49J.js → use-cached-selected-values.nu4EL9kL.js} +2 -2
- package/dist/chunks/{use-cached-selected-values.FoXcm49J.js.map → use-cached-selected-values.nu4EL9kL.js.map} +1 -1
- package/dist/code-snippet.js +1 -1
- package/dist/dashboard-template.js +1 -1
- package/dist/dashed-underline.js +1 -1
- package/dist/data-grid-template.js +1 -1
- package/dist/data-grid.js +1 -1
- package/dist/date-picker.js +1 -1
- package/dist/date-range-picker.js +1 -1
- package/dist/dropdown.js +3 -3
- package/dist/file-uploader.js +1 -1
- package/dist/filter-bar.js +1 -1
- package/dist/focus-trap.js +1 -1
- package/dist/header-with-views.js +1 -1
- package/dist/header.js +1 -1
- package/dist/index.js +359 -396
- package/dist/index.js.map +1 -1
- package/dist/info-icon.js +1 -1
- package/dist/input-field-password.js +1 -1
- package/dist/input-field-phone-number.js +1 -1
- package/dist/input-field.js +1 -1
- package/dist/inspector.js +1 -1
- package/dist/internal.js +9 -9
- package/dist/menu.js +1 -1
- package/dist/modal-fullscreen.js +1 -1
- package/dist/modal.js +2 -2
- package/dist/pagination.js +1 -1
- package/dist/popover.js +2 -2
- package/dist/popper-container.js +1 -1
- package/dist/radio-group.js +1 -1
- package/dist/rich-text-editor.js +1 -1
- package/dist/search-bar.js +2 -2
- package/dist/secondary-nav.js +1 -1
- package/dist/segmented-control.js +1 -1
- package/dist/selection-card.js +1 -1
- package/dist/sidepanel.js +1 -1
- package/dist/structured-list.js +1 -1
- package/dist/styles/bento-dark.css +4 -0
- package/dist/styles/bento-light.css +4 -0
- package/dist/styles/bento.css +4 -0
- package/dist/styles/legacy.css +4 -0
- package/dist/styles/styleguide.css +4 -0
- package/dist/summary-grid.js +1 -1
- package/dist/tag.js +1 -1
- package/dist/textarea.js +1 -1
- package/dist/timeline.js +1 -1
- package/dist/tutorial.js +1 -1
- package/dist/web-types.json +362 -145
- package/package.json +3 -3
- package/dist/chunks/data-grid.C8gSMQ0A.js.map +0 -1
- package/dist/chunks/date-picker.Dvx50znw.js.map +0 -1
- package/dist/chunks/filter-bar.DpjD5bZe.js +0 -2277
- package/dist/chunks/filter-bar.DpjD5bZe.js.map +0 -1
- package/dist/chunks/focus-trap.BJfpIboH.js.map +0 -1
- package/dist/chunks/popover.types.DK6opPkz.js +0 -6
- package/dist/chunks/timeline-item.D2HsuNh-.js +0 -375
- package/dist/chunks/timeline-item.D2HsuNh-.js.map +0 -1
|
@@ -36,7 +36,7 @@ const vt = (t) => {
|
|
|
36
36
|
for (const l of i.composedPath()) {
|
|
37
37
|
if (!(l instanceof HTMLElement))
|
|
38
38
|
return;
|
|
39
|
-
const d = l,
|
|
39
|
+
const d = l, h = d.tagName, v = d.getAttribute("role"), p = h === "DIALOG", w = u.includes(v), g = a.includes(v), F = s.includes(h), S = rt(t) ? t.value === d : t === d;
|
|
40
40
|
if (p || S)
|
|
41
41
|
return;
|
|
42
42
|
if (g && e.value || (w || F) || !p && v === "dialog") {
|
|
@@ -83,8 +83,8 @@ var Re = ["input:not([inert])", "select:not([inert])", "textarea:not([inert])",
|
|
|
83
83
|
candidates: d
|
|
84
84
|
});
|
|
85
85
|
} else {
|
|
86
|
-
var
|
|
87
|
-
|
|
86
|
+
var h = P.call(a, V);
|
|
87
|
+
h && n.filter(a) && (r || !e.includes(a)) && i.push(a);
|
|
88
88
|
var v = a.shadowRoot || // check for an undisclosed shadow
|
|
89
89
|
typeof n.getShadowRoot == "function" && n.getShadowRoot(a), p = !H(v, !1) && (!n.shadowRootFilter || n.shadowRootFilter(a));
|
|
90
90
|
if (v && p) {
|
|
@@ -147,8 +147,8 @@ var Re = ["input:not([inert])", "select:not([inert])", "textarea:not([inert])",
|
|
|
147
147
|
if (n && n !== e) {
|
|
148
148
|
var a, s, l;
|
|
149
149
|
for (u = !!((a = i) !== null && a !== void 0 && (s = a.ownerDocument) !== null && s !== void 0 && s.contains(i) || e != null && (l = e.ownerDocument) !== null && l !== void 0 && l.contains(e)); !u && i; ) {
|
|
150
|
-
var d,
|
|
151
|
-
n = G(i), i = (d = n) === null || d === void 0 ? void 0 : d.host, u = !!((
|
|
150
|
+
var d, h, v;
|
|
151
|
+
n = G(i), i = (d = n) === null || d === void 0 ? void 0 : d.host, u = !!((h = i) !== null && h !== void 0 && (v = h.ownerDocument) !== null && v !== void 0 && v.contains(i));
|
|
152
152
|
}
|
|
153
153
|
}
|
|
154
154
|
return u;
|
|
@@ -396,17 +396,17 @@ var Fe = {
|
|
|
396
396
|
}, d = function(o, c) {
|
|
397
397
|
var f = typeof (c == null ? void 0 : c.composedPath) == "function" ? c.composedPath() : void 0;
|
|
398
398
|
return a.containerGroups.findIndex(function(m) {
|
|
399
|
-
var
|
|
400
|
-
return
|
|
399
|
+
var y = m.container, N = m.tabbableNodes;
|
|
400
|
+
return y.contains(o) || // fall back to explicit tabbable search which will take into consideration any
|
|
401
401
|
// web components if the `tabbableOptions.getShadowRoot` option was used for
|
|
402
402
|
// the trap, enabling shadow DOM support in tabbable (`Node.contains()` doesn't
|
|
403
403
|
// look inside web components even if open)
|
|
404
|
-
(f == null ? void 0 : f.includes(
|
|
404
|
+
(f == null ? void 0 : f.includes(y)) || N.find(function(b) {
|
|
405
405
|
return b === o;
|
|
406
406
|
});
|
|
407
407
|
});
|
|
408
|
-
},
|
|
409
|
-
var c = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {}, f = c.hasFallback, m = f === void 0 ? !1 : f,
|
|
408
|
+
}, h = function(o) {
|
|
409
|
+
var c = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {}, f = c.hasFallback, m = f === void 0 ? !1 : f, y = c.params, N = y === void 0 ? [] : y, b = u[o];
|
|
410
410
|
if (typeof b == "function" && (b = b.apply(void 0, _t(N))), b === !0 && (b = void 0), !b) {
|
|
411
411
|
if (b === void 0 || b === !1)
|
|
412
412
|
return b;
|
|
@@ -424,7 +424,7 @@ var Fe = {
|
|
|
424
424
|
}
|
|
425
425
|
return T;
|
|
426
426
|
}, v = function() {
|
|
427
|
-
var o =
|
|
427
|
+
var o = h("initialFocus", {
|
|
428
428
|
hasFallback: !0
|
|
429
429
|
});
|
|
430
430
|
if (o === !1)
|
|
@@ -434,15 +434,15 @@ var Fe = {
|
|
|
434
434
|
o = n.activeElement;
|
|
435
435
|
else {
|
|
436
436
|
var c = a.tabbableGroups[0], f = c && c.firstTabbableNode;
|
|
437
|
-
o = f ||
|
|
437
|
+
o = f || h("fallbackFocus");
|
|
438
438
|
}
|
|
439
|
-
else o === null && (o =
|
|
439
|
+
else o === null && (o = h("fallbackFocus"));
|
|
440
440
|
if (!o)
|
|
441
441
|
throw new Error("Your focus-trap needs to have at least one focusable element");
|
|
442
442
|
return o;
|
|
443
443
|
}, p = function() {
|
|
444
444
|
if (a.containerGroups = a.containers.map(function(o) {
|
|
445
|
-
var c = It(o, u.tabbableOptions), f = xt(o, u.tabbableOptions), m = c.length > 0 ? c[0] : void 0,
|
|
445
|
+
var c = It(o, u.tabbableOptions), f = xt(o, u.tabbableOptions), m = c.length > 0 ? c[0] : void 0, y = c.length > 0 ? c[c.length - 1] : void 0, N = f.find(function(O) {
|
|
446
446
|
return R(O);
|
|
447
447
|
}), b = f.slice().reverse().find(function(O) {
|
|
448
448
|
return R(O);
|
|
@@ -458,7 +458,7 @@ var Fe = {
|
|
|
458
458
|
/** First tabbable node in container, __tabindex__ order; `undefined` if none. */
|
|
459
459
|
firstTabbableNode: m,
|
|
460
460
|
/** Last tabbable node in container, __tabindex__ order; `undefined` if none. */
|
|
461
|
-
lastTabbableNode:
|
|
461
|
+
lastTabbableNode: y,
|
|
462
462
|
// NOTE: DOM order is NOT NECESSARILY "document position" order, but figuring that out
|
|
463
463
|
// would require more than just https://developer.mozilla.org/en-US/docs/Web/API/Node/compareDocumentPosition
|
|
464
464
|
// because that API doesn't work with Shadow DOM as well as it should (@see
|
|
@@ -489,7 +489,7 @@ var Fe = {
|
|
|
489
489
|
};
|
|
490
490
|
}), a.tabbableGroups = a.containerGroups.filter(function(o) {
|
|
491
491
|
return o.tabbableNodes.length > 0;
|
|
492
|
-
}), a.tabbableGroups.length <= 0 && !
|
|
492
|
+
}), a.tabbableGroups.length <= 0 && !h("fallbackFocus"))
|
|
493
493
|
throw new Error("Your focus-trap must have at least one container with at least one tabbable node in it at all times");
|
|
494
494
|
if (a.containerGroups.find(function(o) {
|
|
495
495
|
return o.posTabIndexesFound;
|
|
@@ -510,19 +510,19 @@ var Fe = {
|
|
|
510
510
|
}), a.mostRecentlyFocusedNode = o, Kt(o) && o.select();
|
|
511
511
|
}
|
|
512
512
|
}, F = function(o) {
|
|
513
|
-
var c =
|
|
513
|
+
var c = h("setReturnFocus", {
|
|
514
514
|
params: [o]
|
|
515
515
|
});
|
|
516
516
|
return c || (c === !1 ? !1 : o);
|
|
517
517
|
}, S = function(o) {
|
|
518
|
-
var c = o.target, f = o.event, m = o.isBackward,
|
|
518
|
+
var c = o.target, f = o.event, m = o.isBackward, y = m === void 0 ? !1 : m;
|
|
519
519
|
c = c || W(f), p();
|
|
520
520
|
var N = null;
|
|
521
521
|
if (a.tabbableGroups.length > 0) {
|
|
522
522
|
var b = d(c, f), T = b >= 0 ? a.containerGroups[b] : void 0;
|
|
523
523
|
if (b < 0)
|
|
524
|
-
|
|
525
|
-
else if (
|
|
524
|
+
y ? N = a.tabbableGroups[a.tabbableGroups.length - 1].lastTabbableNode : N = a.tabbableGroups[0].firstTabbableNode;
|
|
525
|
+
else if (y) {
|
|
526
526
|
var O = a.tabbableGroups.findIndex(function(X) {
|
|
527
527
|
var J = X.firstTabbableNode;
|
|
528
528
|
return c === J;
|
|
@@ -542,7 +542,7 @@ var Fe = {
|
|
|
542
542
|
} else U(f) || (N = T.nextTabbableNode(c));
|
|
543
543
|
}
|
|
544
544
|
} else
|
|
545
|
-
N =
|
|
545
|
+
N = h("fallbackFocus");
|
|
546
546
|
return N;
|
|
547
547
|
}, I = function(o) {
|
|
548
548
|
var c = W(o);
|
|
@@ -567,7 +567,7 @@ var Fe = {
|
|
|
567
567
|
f && (a.mostRecentlyFocusedNode = c);
|
|
568
568
|
else {
|
|
569
569
|
o.stopImmediatePropagation();
|
|
570
|
-
var m,
|
|
570
|
+
var m, y = !0;
|
|
571
571
|
if (a.mostRecentlyFocusedNode)
|
|
572
572
|
if (C(a.mostRecentlyFocusedNode) > 0) {
|
|
573
573
|
var N = d(a.mostRecentlyFocusedNode), b = a.containerGroups[N].tabbableNodes;
|
|
@@ -575,17 +575,17 @@ var Fe = {
|
|
|
575
575
|
var T = b.findIndex(function(O) {
|
|
576
576
|
return O === a.mostRecentlyFocusedNode;
|
|
577
577
|
});
|
|
578
|
-
T >= 0 && (u.isKeyForward(a.recentNavEvent) ? T + 1 < b.length && (m = b[T + 1],
|
|
578
|
+
T >= 0 && (u.isKeyForward(a.recentNavEvent) ? T + 1 < b.length && (m = b[T + 1], y = !1) : T - 1 >= 0 && (m = b[T - 1], y = !1));
|
|
579
579
|
}
|
|
580
580
|
} else
|
|
581
581
|
a.containerGroups.some(function(O) {
|
|
582
582
|
return O.tabbableNodes.some(function(k) {
|
|
583
583
|
return C(k) > 0;
|
|
584
584
|
});
|
|
585
|
-
}) || (
|
|
585
|
+
}) || (y = !1);
|
|
586
586
|
else
|
|
587
|
-
|
|
588
|
-
|
|
587
|
+
y = !1;
|
|
588
|
+
y && (m = S({
|
|
589
589
|
// move FROM the MRU node, not event-related node (which will be the node that is
|
|
590
590
|
// outside the trap causing the focus escape we're trying to fix)
|
|
591
591
|
target: a.mostRecentlyFocusedNode,
|
|
@@ -631,8 +631,8 @@ var Fe = {
|
|
|
631
631
|
}, tt = function(o) {
|
|
632
632
|
var c = o.some(function(f) {
|
|
633
633
|
var m = Array.from(f.removedNodes);
|
|
634
|
-
return m.some(function(
|
|
635
|
-
return
|
|
634
|
+
return m.some(function(y) {
|
|
635
|
+
return y === a.mostRecentlyFocusedNode;
|
|
636
636
|
});
|
|
637
637
|
});
|
|
638
638
|
c && g(v());
|
|
@@ -656,10 +656,10 @@ var Fe = {
|
|
|
656
656
|
return this;
|
|
657
657
|
var c = l(o, "onActivate"), f = l(o, "onPostActivate"), m = l(o, "checkCanFocusTrap");
|
|
658
658
|
m || p(), a.active = !0, a.paused = !1, a.nodeFocusedBeforeActivation = n.activeElement, c == null || c();
|
|
659
|
-
var
|
|
659
|
+
var y = function() {
|
|
660
660
|
m && p(), ge(), _(), f == null || f();
|
|
661
661
|
};
|
|
662
|
-
return m ? (m(a.containers.concat()).then(
|
|
662
|
+
return m ? (m(a.containers.concat()).then(y, y), this) : (y(), this);
|
|
663
663
|
},
|
|
664
664
|
deactivate: function(o) {
|
|
665
665
|
if (!a.active)
|
|
@@ -670,14 +670,14 @@ var Fe = {
|
|
|
670
670
|
checkCanReturnFocus: u.checkCanReturnFocus
|
|
671
671
|
}, o);
|
|
672
672
|
clearTimeout(a.delayInitialFocusTimer), a.delayInitialFocusTimer = void 0, we(), a.active = !1, a.paused = !1, _(), Fe.deactivateTrap(i, s);
|
|
673
|
-
var f = l(c, "onDeactivate"), m = l(c, "onPostDeactivate"),
|
|
673
|
+
var f = l(c, "onDeactivate"), m = l(c, "onPostDeactivate"), y = l(c, "checkCanReturnFocus"), N = l(c, "returnFocus", "returnFocusOnDeactivate");
|
|
674
674
|
f == null || f();
|
|
675
675
|
var b = function() {
|
|
676
676
|
Ae(function() {
|
|
677
677
|
N && g(F(a.nodeFocusedBeforeActivation)), m == null || m();
|
|
678
678
|
});
|
|
679
679
|
};
|
|
680
|
-
return N &&
|
|
680
|
+
return N && y ? (y(F(a.nodeFocusedBeforeActivation)).then(b, b), this) : (b(), this);
|
|
681
681
|
},
|
|
682
682
|
pause: function(o) {
|
|
683
683
|
return a.active ? (a.manuallyPaused = !0, this._setPausedState(!0, o)) : this;
|
|
@@ -705,8 +705,8 @@ var Fe = {
|
|
|
705
705
|
var f = l(c, "onPause"), m = l(c, "onPostPause");
|
|
706
706
|
f == null || f(), we(), _(), m == null || m();
|
|
707
707
|
} else {
|
|
708
|
-
var
|
|
709
|
-
|
|
708
|
+
var y = l(c, "onUnpause"), N = l(c, "onPostUnpause");
|
|
709
|
+
y == null || y(), p(), ge(), _(), N == null || N();
|
|
710
710
|
}
|
|
711
711
|
return this;
|
|
712
712
|
}
|
|
@@ -718,11 +718,14 @@ const Ht = (t, e, r) => {
|
|
|
718
718
|
De(
|
|
719
719
|
[() => ft(t), () => e.value, i, r],
|
|
720
720
|
([u, a, s, l]) => {
|
|
721
|
-
!u || !a || !s
|
|
721
|
+
if (!u || !a || !s)
|
|
722
|
+
return;
|
|
723
|
+
const { additionalContainers: d, ...h } = l ?? {}, v = [u, ...d ?? []];
|
|
724
|
+
n.value ? (n.value.updateContainerElements(v), n.value.active || n.value.activate()) : (n.value = Gt(v, {
|
|
722
725
|
delayInitialFocus: !1,
|
|
723
726
|
fallbackFocus: u,
|
|
724
|
-
...
|
|
725
|
-
}), n.value.activate())
|
|
727
|
+
...h
|
|
728
|
+
}), n.value.activate());
|
|
726
729
|
},
|
|
727
730
|
{ flush: "post" }
|
|
728
731
|
), Pe(() => {
|
|
@@ -923,23 +926,23 @@ var Se = "data-focus-lock", qt = "data-focus-lock-disabled", Yt = "data-no-focus
|
|
|
923
926
|
}, Xe = "NEW_FOCUS", pr = function(t, e, r, n) {
|
|
924
927
|
var i = t.length, u = t[0], a = t[i - 1], s = ce(r);
|
|
925
928
|
if (!(r && t.indexOf(r) >= 0)) {
|
|
926
|
-
var l = r !== void 0 ? e.indexOf(r) : -1, d = n ? e.indexOf(n) : l,
|
|
927
|
-
if (l === -1 ||
|
|
929
|
+
var l = r !== void 0 ? e.indexOf(r) : -1, d = n ? e.indexOf(n) : l, h = n ? t.indexOf(n) : -1, v = l - d, p = e.indexOf(u), w = e.indexOf(a), g = br(e), F = r !== void 0 ? g.indexOf(r) : -1, S = F - (n ? g.indexOf(n) : l), I = Ce(t, 0), D = Ce(t, i - 1);
|
|
930
|
+
if (l === -1 || h === -1)
|
|
928
931
|
return Xe;
|
|
929
|
-
if (!v &&
|
|
930
|
-
return
|
|
932
|
+
if (!v && h >= 0)
|
|
933
|
+
return h;
|
|
931
934
|
if (l <= p && s && Math.abs(v) > 1)
|
|
932
935
|
return D;
|
|
933
936
|
if (l >= w && s && Math.abs(v) > 1)
|
|
934
937
|
return I;
|
|
935
938
|
if (v && Math.abs(S) > 1)
|
|
936
|
-
return
|
|
939
|
+
return h;
|
|
937
940
|
if (l <= p)
|
|
938
941
|
return D;
|
|
939
942
|
if (l > w)
|
|
940
943
|
return I;
|
|
941
944
|
if (v)
|
|
942
|
-
return Math.abs(v) > 1 ?
|
|
945
|
+
return Math.abs(v) > 1 ? h : (i + h + v) % i;
|
|
943
946
|
}
|
|
944
947
|
}, ue = function(t, e) {
|
|
945
948
|
return e === void 0 && (e = []), e.push(t), t.parentNode && ue(t.parentNode.host || t.parentNode, e), e;
|
|
@@ -983,17 +986,17 @@ var Se = "data-focus-lock", qt = "data-focus-lock-disabled", Yt = "data-no-focus
|
|
|
983
986
|
var l = xe([i], u).map(function(w) {
|
|
984
987
|
var g = w.node;
|
|
985
988
|
return g;
|
|
986
|
-
}), d = yr(l, s),
|
|
989
|
+
}), d = yr(l, s), h = d.map(function(w) {
|
|
987
990
|
var g = w.node;
|
|
988
991
|
return g;
|
|
989
|
-
}), v = pr(
|
|
992
|
+
}), v = pr(h, l, r, e);
|
|
990
993
|
if (v === Xe) {
|
|
991
994
|
var p = Ie(a.map(function(w) {
|
|
992
995
|
var g = w.node;
|
|
993
996
|
return g;
|
|
994
997
|
})).filter(hr(mr(n, u)));
|
|
995
998
|
return {
|
|
996
|
-
node: p && p.length ? ke(p) : ke(Ie(
|
|
999
|
+
node: p && p.length ? ke(p) : ke(Ie(h))
|
|
997
1000
|
};
|
|
998
1001
|
}
|
|
999
1002
|
return v === void 0 ? v : d[v];
|
|
@@ -1066,14 +1069,14 @@ const xr = (t, e, r) => {
|
|
|
1066
1069
|
p && p.focus();
|
|
1067
1070
|
}, d = () => {
|
|
1068
1071
|
e.value && Or(s);
|
|
1069
|
-
},
|
|
1072
|
+
}, h = () => {
|
|
1070
1073
|
var g;
|
|
1071
1074
|
if (!u.value && !i.value)
|
|
1072
1075
|
return !1;
|
|
1073
1076
|
const p = (g = document.activeElement) == null ? void 0 : g.tagName.toLowerCase(), w = u.value ? ["textarea", "select"] : ["input", "textarea"];
|
|
1074
1077
|
return p ? w.includes(p) : !1;
|
|
1075
1078
|
}, v = (p) => {
|
|
1076
|
-
if (!e.value || document.activeElement.isContentEditable ||
|
|
1079
|
+
if (!e.value || document.activeElement.isContentEditable || h())
|
|
1077
1080
|
return;
|
|
1078
1081
|
const { isArrowNext: w, isArrowPrev: g } = Sr(p, a.value);
|
|
1079
1082
|
if ((g || w) && (p.preventDefault(), p.stopPropagation(), t.value)) {
|
|
@@ -1151,7 +1154,7 @@ var Pr = function() {
|
|
|
1151
1154
|
Dr,
|
|
1152
1155
|
!1,
|
|
1153
1156
|
null,
|
|
1154
|
-
"
|
|
1157
|
+
"dc7173b4"
|
|
1155
1158
|
);
|
|
1156
1159
|
const Kr = Rr.exports;
|
|
1157
1160
|
export {
|
|
@@ -1162,4 +1165,4 @@ export {
|
|
|
1162
1165
|
Ar as g,
|
|
1163
1166
|
Tr as s
|
|
1164
1167
|
};
|
|
1165
|
-
//# sourceMappingURL=focus-trap.
|
|
1168
|
+
//# sourceMappingURL=focus-trap.CNIU5jOz.js.map
|