@uva-glass/component-library 3.55.2 → 3.55.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/{Lexical.prod-DCGjHGxG.js → Lexical.prod-DIglXatJ.js} +958 -947
- package/dist/Lexical.prod-DIglXatJ.js.map +1 -0
- package/dist/LexicalClipboard.prod-Bnzu0sh_.js +248 -0
- package/dist/{LexicalClipboard.prod-CGG14aoP.js.map → LexicalClipboard.prod-Bnzu0sh_.js.map} +1 -1
- package/dist/{LexicalExtension.prod-DWt1IjPF.js → LexicalExtension.prod-COPHoPpX.js} +320 -288
- package/dist/LexicalExtension.prod-COPHoPpX.js.map +1 -0
- package/dist/{LexicalLink.prod-Dy1gE75H.js → LexicalLink.prod-Bf9JUdMv.js} +216 -198
- package/dist/LexicalLink.prod-Bf9JUdMv.js.map +1 -0
- package/dist/{LexicalList.prod-D9R0L7cu.js → LexicalList.prod-DRz8vsM9.js} +247 -241
- package/dist/LexicalList.prod-DRz8vsM9.js.map +1 -0
- package/dist/{LexicalTable.prod-C2FP47Lm.js → LexicalTable.prod-D16GW-aZ.js} +741 -729
- package/dist/LexicalTable.prod-D16GW-aZ.js.map +1 -0
- package/dist/LexicalUtils.prod-BBTLliac.js +360 -0
- package/dist/LexicalUtils.prod-BBTLliac.js.map +1 -0
- package/dist/{LinkContextMenu-DZlKfbg1.js → LinkContextMenu-m_CGQEiX.js} +2 -2
- package/dist/{LinkContextMenu-DZlKfbg1.js.map → LinkContextMenu-m_CGQEiX.js.map} +1 -1
- package/dist/{PasteHandlerPlugin-DUdocSHB.js → PasteHandlerPlugin-DjD1wryY.js} +4 -4
- package/dist/{PasteHandlerPlugin-DUdocSHB.js.map → PasteHandlerPlugin-DjD1wryY.js.map} +1 -1
- package/dist/{TableCellResizerPlugin-BGolbi44.js → TableCellResizerPlugin-CgYsYsuY.js} +41 -41
- package/dist/{TableCellResizerPlugin-BGolbi44.js.map → TableCellResizerPlugin-CgYsYsuY.js.map} +1 -1
- package/dist/{chunk-OPOZOKLO-CXKdjnjn.js → chunk-SZQXB3JV-D0XG4Tlp.js} +5 -5
- package/dist/chunk-SZQXB3JV-D0XG4Tlp.js.map +1 -0
- package/dist/{client-C0JVBgoR.js → client-UU-mS47K.js} +6 -6
- package/dist/{client-C0JVBgoR.js.map → client-UU-mS47K.js.map} +1 -1
- package/dist/components/Accordion/Accordion.test.js +4 -4
- package/dist/components/AccordionCard/AccordionCard.test.js +4 -4
- package/dist/components/ActionList/ActionList.test.js +4 -4
- package/dist/components/AppStatusBar/AppStatusBar.test.js +3 -3
- package/dist/components/Attention/Attention.test.js +3 -3
- package/dist/components/Backdrop/Backdrop.test.js +3 -3
- package/dist/components/Buttons/Button.stories.js +1 -1
- package/dist/components/Buttons/Button.test.js +3 -3
- package/dist/components/Buttons/LinkButton.stories.js +1 -1
- package/dist/components/Buttons/LinkButton.test.js +3 -3
- package/dist/components/Buttons/MenuButton.stories.js +1 -1
- package/dist/components/Buttons/MenuButton.test.js +3 -3
- package/dist/components/Card/Card.test.js +3 -3
- package/dist/components/Checkbox/Checkbox.stories.js +1 -1
- package/dist/components/Checkbox/Checkbox.test.js +4 -4
- package/dist/components/CheckboxButtonBar/CheckboxButtonBar.stories.js +1 -1
- package/dist/components/CheckboxButtonBar/CheckboxButtonBar.test.js +3 -3
- package/dist/components/CheckboxTree/CheckboxTree.js +2 -2
- package/dist/components/CheckboxTree/CheckboxTree.stories.js +4 -4
- package/dist/components/CheckboxTree/index.js +2 -2
- package/dist/components/Chip/Chip.stories.js +1 -1
- package/dist/components/ControlsButton/ControlsButton.stories.js +1 -1
- package/dist/components/Drawer/Drawer.stories.js +1 -1
- package/dist/components/FeedbackBar/FeedbackBar.test.js +3 -3
- package/dist/components/FormInput/FormInput.js +2 -2
- package/dist/components/FormInput/FormInput.stories.js +3 -3
- package/dist/components/FormInput/index.js +2 -2
- package/dist/components/IconButton/IconButton.stories.js +1 -1
- package/dist/components/InputField/InputField.stories.js +3 -3
- package/dist/components/Label/Label.test.js +3 -3
- package/dist/components/MetaDataBar/MetaDataBar.test.js +2 -2
- package/dist/components/ModalDialog/ModalDialog.stories.js +1 -1
- package/dist/components/MultiSelect/MultiSelect.js +2 -2
- package/dist/components/MultiSelect/MultiSelect.stories.js +3 -3
- package/dist/components/MultiSelect/components/MultiSelectHeader.js +2 -2
- package/dist/components/MultiSelect/index.js +2 -2
- package/dist/components/MultiSelectBox/MultiSelectBox.stories.js +1 -1
- package/dist/components/MultiSelectBox/MultiSelectBox.test.js +3 -3
- package/dist/components/Notification/Notification.stories.js +1 -1
- package/dist/components/Notification/Notification.test.js +3 -3
- package/dist/components/OverlayCloseButton/OverlayCloseButton.stories.js +1 -1
- package/dist/components/PeriodSelector/PeriodSelector.js +2 -2
- package/dist/components/PeriodSelector/PeriodSelector.stories.js +3 -3
- package/dist/components/PeriodSelector/index.js +2 -2
- package/dist/components/ProgrammeCard/ProgrammeCard.stories.js +2 -2
- package/dist/components/RadioGroup/RadioGroup.stories.js +1 -1
- package/dist/components/RadioGroup/Radiogroup.test.js +3 -3
- package/dist/components/RadioTabSelector/RadioTabSelector.js +2 -2
- package/dist/components/RadioTabSelector/RadioTabSelector.stories.js +3 -3
- package/dist/components/RadioTabSelector/index.js +2 -2
- package/dist/components/RteEditor/EditorHeader/EditorHeader.js +2 -2
- package/dist/components/RteEditor/EditorHeader/index.js +2 -2
- package/dist/components/RteEditor/Plugins/BlockFormatPlugin/BlockFormatPlugin.js +3 -3
- package/dist/components/RteEditor/Plugins/CourseCataloguePlugin/CourseCataloguePlugin.js +32 -32
- package/dist/components/RteEditor/Plugins/HistoryPlugin/HistoryPlugin.js +2 -2
- package/dist/components/RteEditor/Plugins/HistoryPlugin/index.js +2 -2
- package/dist/components/RteEditor/Plugins/LinkPlugin/AddLinkForm/AddLinkFrom.js +2 -2
- package/dist/components/RteEditor/Plugins/LinkPlugin/LinkContextMenu/LinkContextMenu.js +1 -1
- package/dist/components/RteEditor/Plugins/LinkPlugin/LinkPlugin.js +2 -2
- package/dist/components/RteEditor/Plugins/LinkPlugin/helpers.js +1 -1
- package/dist/components/RteEditor/Plugins/LinkPlugin/index.js +2 -2
- package/dist/components/RteEditor/Plugins/ListPlugin/ListPlugin.js +15 -15
- package/dist/components/RteEditor/Plugins/PasteHandlerPlugin/PasteHandlerPlugin.js +1 -1
- package/dist/components/RteEditor/Plugins/PasteHandlerPlugin/index.js +1 -1
- package/dist/components/RteEditor/Plugins/TableCellResizerPlugin/TableCellResizerPlugin.js +1 -1
- package/dist/components/RteEditor/Plugins/TableCellResizerPlugin/index.js +1 -1
- package/dist/components/RteEditor/Plugins/TablePlugin/AddTableFrom.js +2 -2
- package/dist/components/RteEditor/Plugins/TablePlugin/TablePlugin.js +2 -2
- package/dist/components/RteEditor/Plugins/TablePlugin/helpers.js +32 -32
- package/dist/components/RteEditor/Plugins/TablePlugin/index.js +2 -2
- package/dist/components/RteEditor/Plugins/ToolbarPlugin/ToolbarPlugin.js +2 -2
- package/dist/components/RteEditor/Plugins/ToolbarPlugin/index.js +2 -2
- package/dist/components/RteEditor/Plugins/index.js +3 -3
- package/dist/components/RteEditor/RteEditor.js +2 -2
- package/dist/components/RteEditor/RteEditor.stories.js +2 -2
- package/dist/components/RteEditor/helpers.js +4 -4
- package/dist/components/RteEditor/index.js +2 -2
- package/dist/components/RteEditor/nodes/CourseCatalogueNode/CourseCatalogueNode.js +17 -17
- package/dist/components/RteEditor/nodes/TableWrapperNode/TableWrapperNode.js +13 -13
- package/dist/components/SelectListbox/SelectListBox.stories.js +1 -1
- package/dist/components/Sortable/Sortable.stories.js +1 -1
- package/dist/components/StatusBadge/StatusBadge.test.js +3 -3
- package/dist/components/TextArea/TextArea.stories.js +1 -1
- package/dist/components/TextArea/TextArea.test.js +4 -4
- package/dist/components/ToggleSwitch/ToggleSwitch.stories.js +1 -1
- package/dist/components/VarIndicator/VarIndicator.stories.js +1 -1
- package/dist/components/VarIndicator/VarIndicator.test.js +4 -4
- package/dist/components/index.js +2 -2
- package/dist/{components-DVUYdcHS.js → components-MNvdQLv1.js} +457 -454
- package/dist/components-MNvdQLv1.js.map +1 -0
- package/dist/{dist-D6qYwmKD.js → dist-2TKCXdYZ.js} +315 -315
- package/dist/{dist-D6qYwmKD.js.map → dist-2TKCXdYZ.js.map} +1 -1
- package/dist/{esm-Cmy7DlsJ.js → esm-UNe_gmRA.js} +2 -2
- package/dist/{esm-Cmy7DlsJ.js.map → esm-UNe_gmRA.js.map} +1 -1
- package/dist/{helpers-DcFTH1J1.js → helpers-BBSxTGRl.js} +7 -7
- package/dist/{helpers-DcFTH1J1.js.map → helpers-BBSxTGRl.js.map} +1 -1
- package/dist/index.js +2 -2
- package/dist/{react-18-PI4Gvl2f.js → react-18-CRbkdI-3.js} +2 -2
- package/dist/{react-18-PI4Gvl2f.js.map → react-18-CRbkdI-3.js.map} +1 -1
- package/dist/{react.esm-Cev8dB-E.js → react.esm-CzIhAqlo.js} +479 -479
- package/dist/{react.esm-Cev8dB-E.js.map → react.esm-CzIhAqlo.js.map} +1 -1
- package/dist/setupTests.js +1 -1
- package/dist/storybook__react.d.js +3 -3
- package/dist/{test-CPFNM-bL.js → test-DQruvi8i.js} +3704 -5824
- package/dist/test-DQruvi8i.js.map +1 -0
- package/package.json +17 -17
- package/dist/Lexical.prod-DCGjHGxG.js.map +0 -1
- package/dist/LexicalClipboard.prod-CGG14aoP.js +0 -248
- package/dist/LexicalExtension.prod-DWt1IjPF.js.map +0 -1
- package/dist/LexicalLink.prod-Dy1gE75H.js.map +0 -1
- package/dist/LexicalList.prod-D9R0L7cu.js.map +0 -1
- package/dist/LexicalTable.prod-C2FP47Lm.js.map +0 -1
- package/dist/LexicalUtils.prod-BzrjMu6t.js +0 -242
- package/dist/LexicalUtils.prod-BzrjMu6t.js.map +0 -1
- package/dist/chunk-OPOZOKLO-CXKdjnjn.js.map +0 -1
- package/dist/components-DVUYdcHS.js.map +0 -1
- package/dist/test-CPFNM-bL.js.map +0 -1
|
@@ -148,7 +148,7 @@ var h = (e, t) => {
|
|
|
148
148
|
}
|
|
149
149
|
function g() {
|
|
150
150
|
let t, n = [];
|
|
151
|
-
for (v(), y(n); e.length && e.charAt(0) !== "}" && (t =
|
|
151
|
+
for (v(), y(n); e.length && e.charAt(0) !== "}" && (t = ne() || D(), t);) n.push(t), y(n);
|
|
152
152
|
return n;
|
|
153
153
|
}
|
|
154
154
|
function _(t) {
|
|
@@ -229,8 +229,8 @@ var h = (e, t) => {
|
|
|
229
229
|
declarations: C() || []
|
|
230
230
|
});
|
|
231
231
|
}
|
|
232
|
-
let
|
|
233
|
-
function
|
|
232
|
+
let ee = E("import"), te = E("charset"), T = E("namespace");
|
|
233
|
+
function E(t) {
|
|
234
234
|
let n = RegExp("^@" + t + "\\s*((?::?[^;'\"]|\"(?:\\\\\"|[^\"])*?\"|'(?:\\\\'|[^'])*?')+)(?:;|$)");
|
|
235
235
|
return () => {
|
|
236
236
|
let r = i(), a = n.exec(e);
|
|
@@ -239,7 +239,7 @@ var h = (e, t) => {
|
|
|
239
239
|
return s[t] = o[1].trim(), r(s);
|
|
240
240
|
};
|
|
241
241
|
}
|
|
242
|
-
function
|
|
242
|
+
function ne() {
|
|
243
243
|
if (e[0] === "@") return function() {
|
|
244
244
|
let t = i(), n = /^@([-\w]+)?keyframes\s*/.exec(e);
|
|
245
245
|
if (!n) return;
|
|
@@ -286,7 +286,7 @@ var h = (e, t) => {
|
|
|
286
286
|
supports: r,
|
|
287
287
|
rules: a
|
|
288
288
|
}) : o("@supports missing '}'");
|
|
289
|
-
}() ||
|
|
289
|
+
}() || ee() || te() || T() || function() {
|
|
290
290
|
let t = i(), n = /^@([-\w]+)?document *([^{]+)/.exec(e);
|
|
291
291
|
if (!n) return;
|
|
292
292
|
let r = _(n), a = p(r[1]), s = p(r[2]);
|
|
@@ -369,7 +369,7 @@ var h = (e, t) => {
|
|
|
369
369
|
}) : o("@layer missing '}'");
|
|
370
370
|
}();
|
|
371
371
|
}
|
|
372
|
-
function
|
|
372
|
+
function D() {
|
|
373
373
|
let e = i(), t = x();
|
|
374
374
|
return t ? (y(), e({
|
|
375
375
|
type: l.rule,
|
|
@@ -424,25 +424,25 @@ function C(e, t) {
|
|
|
424
424
|
function w(e, t) {
|
|
425
425
|
for (var n = 0; n < t.length; n++) {
|
|
426
426
|
var r = t[n];
|
|
427
|
-
r.enumerable = r.enumerable || !1, r.configurable = !0, "value" in r && (r.writable = !0), Object.defineProperty(e,
|
|
427
|
+
r.enumerable = r.enumerable || !1, r.configurable = !0, "value" in r && (r.writable = !0), Object.defineProperty(e, T(r.key), r);
|
|
428
428
|
}
|
|
429
429
|
}
|
|
430
|
-
function
|
|
430
|
+
function ee(e, t, n) {
|
|
431
431
|
return t && w(e.prototype, t), n && w(e, n), Object.defineProperty(e, "prototype", { writable: !1 }), e;
|
|
432
432
|
}
|
|
433
|
-
function
|
|
434
|
-
return t =
|
|
433
|
+
function te(e, t, n) {
|
|
434
|
+
return t = T(t), t in e ? Object.defineProperty(e, t, {
|
|
435
435
|
value: n,
|
|
436
436
|
enumerable: !0,
|
|
437
437
|
configurable: !0,
|
|
438
438
|
writable: !0
|
|
439
439
|
}) : e[t] = n, e;
|
|
440
440
|
}
|
|
441
|
-
function
|
|
442
|
-
var t =
|
|
441
|
+
function T(e) {
|
|
442
|
+
var t = E(e, "string");
|
|
443
443
|
return S(t) === "symbol" ? t : String(t);
|
|
444
444
|
}
|
|
445
|
-
function
|
|
445
|
+
function E(e, t) {
|
|
446
446
|
if (S(e) !== "object" || e === null) return e;
|
|
447
447
|
var n = e[Symbol.toPrimitive];
|
|
448
448
|
if (n !== void 0) {
|
|
@@ -452,12 +452,12 @@ function D(e, t) {
|
|
|
452
452
|
}
|
|
453
453
|
return (t === "string" ? String : Number)(e);
|
|
454
454
|
}
|
|
455
|
-
var
|
|
455
|
+
var ne = typeof Set > "u" ? Set : /* @__PURE__ */ function() {
|
|
456
456
|
function e() {
|
|
457
457
|
var t = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : [];
|
|
458
|
-
C(this, e),
|
|
458
|
+
C(this, e), te(this, "items", void 0), this.items = t;
|
|
459
459
|
}
|
|
460
|
-
return
|
|
460
|
+
return ee(e, [
|
|
461
461
|
{
|
|
462
462
|
key: "add",
|
|
463
463
|
value: function(e) {
|
|
@@ -501,10 +501,10 @@ var te = /* @__PURE__ */ function() {
|
|
|
501
501
|
}
|
|
502
502
|
}
|
|
503
503
|
]), e;
|
|
504
|
-
}()
|
|
504
|
+
}();
|
|
505
505
|
//#endregion
|
|
506
506
|
//#region node_modules/@testing-library/jest-dom/node_modules/dom-accessibility-api/dist/getRole.mjs
|
|
507
|
-
function
|
|
507
|
+
function D(e) {
|
|
508
508
|
return e.localName ?? e.tagName.toLowerCase();
|
|
509
509
|
}
|
|
510
510
|
var re = {
|
|
@@ -599,16 +599,16 @@ function oe(e, t) {
|
|
|
599
599
|
}
|
|
600
600
|
function se(e) {
|
|
601
601
|
var t = le(e);
|
|
602
|
-
if (t === null ||
|
|
602
|
+
if (t === null || O.indexOf(t) !== -1) {
|
|
603
603
|
var n = ce(e);
|
|
604
|
-
if (
|
|
604
|
+
if (O.indexOf(t || "") === -1 || oe(e, n || "")) return n;
|
|
605
605
|
}
|
|
606
606
|
return t;
|
|
607
607
|
}
|
|
608
608
|
function ce(e) {
|
|
609
|
-
var t = re[
|
|
609
|
+
var t = re[D(e)];
|
|
610
610
|
if (t !== void 0) return t;
|
|
611
|
-
switch (
|
|
611
|
+
switch (D(e)) {
|
|
612
612
|
case "a":
|
|
613
613
|
case "area":
|
|
614
614
|
case "link":
|
|
@@ -647,27 +647,27 @@ function le(e) {
|
|
|
647
647
|
}
|
|
648
648
|
//#endregion
|
|
649
649
|
//#region node_modules/@testing-library/jest-dom/node_modules/dom-accessibility-api/dist/util.mjs
|
|
650
|
-
var
|
|
651
|
-
function
|
|
650
|
+
var O = ["presentation", "none"];
|
|
651
|
+
function k(e) {
|
|
652
652
|
return e !== null && e.nodeType === e.ELEMENT_NODE;
|
|
653
653
|
}
|
|
654
654
|
function ue(e) {
|
|
655
|
-
return
|
|
655
|
+
return k(e) && D(e) === "caption";
|
|
656
656
|
}
|
|
657
|
-
function
|
|
658
|
-
return
|
|
657
|
+
function A(e) {
|
|
658
|
+
return k(e) && D(e) === "input";
|
|
659
659
|
}
|
|
660
660
|
function de(e) {
|
|
661
|
-
return
|
|
661
|
+
return k(e) && D(e) === "optgroup";
|
|
662
662
|
}
|
|
663
663
|
function fe(e) {
|
|
664
|
-
return
|
|
664
|
+
return k(e) && D(e) === "select";
|
|
665
665
|
}
|
|
666
666
|
function pe(e) {
|
|
667
|
-
return
|
|
667
|
+
return k(e) && D(e) === "table";
|
|
668
668
|
}
|
|
669
669
|
function me(e) {
|
|
670
|
-
return
|
|
670
|
+
return k(e) && D(e) === "textarea";
|
|
671
671
|
}
|
|
672
672
|
function he(e) {
|
|
673
673
|
var t = (e.ownerDocument === null ? e : e.ownerDocument).defaultView;
|
|
@@ -675,25 +675,25 @@ function he(e) {
|
|
|
675
675
|
return t;
|
|
676
676
|
}
|
|
677
677
|
function ge(e) {
|
|
678
|
-
return
|
|
678
|
+
return k(e) && D(e) === "fieldset";
|
|
679
679
|
}
|
|
680
680
|
function _e(e) {
|
|
681
|
-
return
|
|
681
|
+
return k(e) && D(e) === "legend";
|
|
682
682
|
}
|
|
683
683
|
function ve(e) {
|
|
684
|
-
return
|
|
684
|
+
return k(e) && D(e) === "slot";
|
|
685
685
|
}
|
|
686
686
|
function ye(e) {
|
|
687
|
-
return
|
|
687
|
+
return k(e) && e.ownerSVGElement !== void 0;
|
|
688
688
|
}
|
|
689
689
|
function be(e) {
|
|
690
|
-
return
|
|
690
|
+
return k(e) && D(e) === "svg";
|
|
691
691
|
}
|
|
692
692
|
function xe(e) {
|
|
693
|
-
return ye(e) &&
|
|
693
|
+
return ye(e) && D(e) === "title";
|
|
694
694
|
}
|
|
695
|
-
function
|
|
696
|
-
if (
|
|
695
|
+
function j(e, t) {
|
|
696
|
+
if (k(e) && e.hasAttribute(t)) {
|
|
697
697
|
var n = e.getAttribute(t).split(" "), r = e.getRootNode ? e.getRootNode() : e.ownerDocument;
|
|
698
698
|
return n.map(function(e) {
|
|
699
699
|
return r.getElementById(e);
|
|
@@ -703,8 +703,8 @@ function M(e, t) {
|
|
|
703
703
|
}
|
|
704
704
|
return [];
|
|
705
705
|
}
|
|
706
|
-
function
|
|
707
|
-
return
|
|
706
|
+
function M(e, t) {
|
|
707
|
+
return k(e) ? t.indexOf(se(e)) !== -1 : !1;
|
|
708
708
|
}
|
|
709
709
|
//#endregion
|
|
710
710
|
//#region node_modules/@testing-library/jest-dom/node_modules/dom-accessibility-api/dist/accessible-name-and-description.mjs
|
|
@@ -712,23 +712,23 @@ function Se(e) {
|
|
|
712
712
|
return e.trim().replace(/\s\s+/g, " ");
|
|
713
713
|
}
|
|
714
714
|
function Ce(e, t) {
|
|
715
|
-
if (!
|
|
715
|
+
if (!k(e)) return !1;
|
|
716
716
|
if (e.hasAttribute("hidden") || e.getAttribute("aria-hidden") === "true") return !0;
|
|
717
717
|
var n = t(e);
|
|
718
718
|
return n.getPropertyValue("display") === "none" || n.getPropertyValue("visibility") === "hidden";
|
|
719
719
|
}
|
|
720
720
|
function we(e) {
|
|
721
|
-
return
|
|
721
|
+
return M(e, [
|
|
722
722
|
"button",
|
|
723
723
|
"combobox",
|
|
724
724
|
"listbox",
|
|
725
725
|
"textbox"
|
|
726
|
-
]) ||
|
|
726
|
+
]) || N(e, "range");
|
|
727
727
|
}
|
|
728
|
-
function
|
|
729
|
-
if (!
|
|
728
|
+
function N(e, t) {
|
|
729
|
+
if (!k(e)) return !1;
|
|
730
730
|
switch (t) {
|
|
731
|
-
case "range": return
|
|
731
|
+
case "range": return M(e, [
|
|
732
732
|
"meter",
|
|
733
733
|
"progressbar",
|
|
734
734
|
"scrollbar",
|
|
@@ -738,23 +738,23 @@ function P(e, t) {
|
|
|
738
738
|
default: throw TypeError(`No knowledge about abstract role '${t}'. This is likely a bug :(`);
|
|
739
739
|
}
|
|
740
740
|
}
|
|
741
|
-
function
|
|
741
|
+
function P(e, t) {
|
|
742
742
|
var n = x(e.querySelectorAll(t));
|
|
743
|
-
return
|
|
743
|
+
return j(e, "aria-owns").forEach(function(e) {
|
|
744
744
|
n.push.apply(n, x(e.querySelectorAll(t)));
|
|
745
745
|
}), n;
|
|
746
746
|
}
|
|
747
747
|
function Te(e) {
|
|
748
|
-
return fe(e) ? e.selectedOptions ||
|
|
748
|
+
return fe(e) ? e.selectedOptions || P(e, "[selected]") : P(e, "[aria-selected=\"true\"]");
|
|
749
749
|
}
|
|
750
750
|
function Ee(e) {
|
|
751
|
-
return
|
|
751
|
+
return M(e, O);
|
|
752
752
|
}
|
|
753
753
|
function De(e) {
|
|
754
754
|
return ue(e);
|
|
755
755
|
}
|
|
756
756
|
function Oe(e) {
|
|
757
|
-
return
|
|
757
|
+
return M(e, [
|
|
758
758
|
"button",
|
|
759
759
|
"cell",
|
|
760
760
|
"checkbox",
|
|
@@ -781,58 +781,58 @@ function ke(e) {
|
|
|
781
781
|
return !1;
|
|
782
782
|
}
|
|
783
783
|
function Ae(e) {
|
|
784
|
-
return
|
|
784
|
+
return A(e) || me(e) ? e.value : e.textContent || "";
|
|
785
785
|
}
|
|
786
|
-
function
|
|
786
|
+
function F(e) {
|
|
787
787
|
var t = e.getPropertyValue("content");
|
|
788
788
|
return /^["'].*["']$/.test(t) ? t.slice(1, -1) : "";
|
|
789
789
|
}
|
|
790
|
-
function
|
|
791
|
-
var t =
|
|
790
|
+
function I(e) {
|
|
791
|
+
var t = D(e);
|
|
792
792
|
return t === "button" || t === "input" && e.getAttribute("type") !== "hidden" || t === "meter" || t === "output" || t === "progress" || t === "select" || t === "textarea";
|
|
793
793
|
}
|
|
794
|
-
function
|
|
795
|
-
if (
|
|
794
|
+
function je(e) {
|
|
795
|
+
if (I(e)) return e;
|
|
796
796
|
var t = null;
|
|
797
797
|
return e.childNodes.forEach(function(e) {
|
|
798
|
-
if (t === null &&
|
|
799
|
-
var n =
|
|
798
|
+
if (t === null && k(e)) {
|
|
799
|
+
var n = je(e);
|
|
800
800
|
n !== null && (t = n);
|
|
801
801
|
}
|
|
802
802
|
}), t;
|
|
803
803
|
}
|
|
804
|
-
function
|
|
804
|
+
function Me(e) {
|
|
805
805
|
if (e.control !== void 0) return e.control;
|
|
806
806
|
var t = e.getAttribute("for");
|
|
807
|
-
return t === null ?
|
|
807
|
+
return t === null ? je(e) : e.ownerDocument.getElementById(t);
|
|
808
808
|
}
|
|
809
|
-
function
|
|
809
|
+
function Ne(e) {
|
|
810
810
|
var t = e.labels;
|
|
811
811
|
if (t === null) return t;
|
|
812
812
|
if (t !== void 0) return x(t);
|
|
813
|
-
if (!
|
|
813
|
+
if (!I(e)) return null;
|
|
814
814
|
var n = e.ownerDocument;
|
|
815
815
|
return x(n.querySelectorAll("label")).filter(function(t) {
|
|
816
|
-
return
|
|
816
|
+
return Me(t) === e;
|
|
817
817
|
});
|
|
818
818
|
}
|
|
819
|
-
function
|
|
819
|
+
function Pe(e) {
|
|
820
820
|
var t = e.assignedNodes();
|
|
821
821
|
return t.length === 0 ? x(e.childNodes) : t;
|
|
822
822
|
}
|
|
823
|
-
function
|
|
823
|
+
function Fe(e) {
|
|
824
824
|
var t = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {}, n = new ne(), r = he(e), i = t.compute, a = i === void 0 ? "name" : i, o = t.computedStyleSupportsPseudoElements, s = o === void 0 ? t.getComputedStyle !== void 0 : o, c = t.getComputedStyle, l = c === void 0 ? r.getComputedStyle.bind(r) : c, u = t.hidden, d = u === void 0 ? !1 : u;
|
|
825
825
|
function f(e, t) {
|
|
826
826
|
var n = "";
|
|
827
|
-
if (
|
|
827
|
+
if (k(e) && s && (n = `${F(l(e, "::before"))} ${n}`), (ve(e) ? Pe(e) : x(e.childNodes).concat(j(e, "aria-owns"))).forEach(function(e) {
|
|
828
828
|
var r = g(e, {
|
|
829
829
|
isEmbeddedInLabel: t.isEmbeddedInLabel,
|
|
830
830
|
isReferenced: !1,
|
|
831
831
|
recursion: !0
|
|
832
|
-
}), i = (
|
|
832
|
+
}), i = (k(e) ? l(e).getPropertyValue("display") : "inline") === "inline" ? "" : " ";
|
|
833
833
|
n += `${i}${r}${i}`;
|
|
834
|
-
}),
|
|
835
|
-
var r =
|
|
834
|
+
}), k(e) && s) {
|
|
835
|
+
var r = F(l(e, "::after"));
|
|
836
836
|
n = `${n} ${r}`;
|
|
837
837
|
}
|
|
838
838
|
return n.trim();
|
|
@@ -842,10 +842,10 @@ function Ie(e) {
|
|
|
842
842
|
return r !== null && !n.has(r) && r.value.trim() !== "" ? (n.add(r), r.value) : null;
|
|
843
843
|
}
|
|
844
844
|
function m(e) {
|
|
845
|
-
return
|
|
845
|
+
return k(e) ? p(e, "title") : null;
|
|
846
846
|
}
|
|
847
847
|
function h(e) {
|
|
848
|
-
if (!
|
|
848
|
+
if (!k(e)) return null;
|
|
849
849
|
if (ge(e)) {
|
|
850
850
|
n.add(e);
|
|
851
851
|
for (var t = x(e.childNodes), r = 0; r < t.length; r += 1) {
|
|
@@ -873,20 +873,20 @@ function Ie(e) {
|
|
|
873
873
|
if (xe(u)) return u.textContent;
|
|
874
874
|
}
|
|
875
875
|
return null;
|
|
876
|
-
} else if (
|
|
876
|
+
} else if (D(e) === "img" || D(e) === "area") {
|
|
877
877
|
var d = p(e, "alt");
|
|
878
878
|
if (d !== null) return d;
|
|
879
879
|
} else if (de(e)) {
|
|
880
880
|
var m = p(e, "label");
|
|
881
881
|
if (m !== null) return m;
|
|
882
882
|
}
|
|
883
|
-
if (
|
|
883
|
+
if (A(e) && (e.type === "button" || e.type === "submit" || e.type === "reset")) {
|
|
884
884
|
var h = p(e, "value");
|
|
885
885
|
if (h !== null) return h;
|
|
886
886
|
if (e.type === "submit") return "Submit";
|
|
887
887
|
if (e.type === "reset") return "Reset";
|
|
888
888
|
}
|
|
889
|
-
var _ =
|
|
889
|
+
var _ = Ne(e);
|
|
890
890
|
if (_ !== null && _.length !== 0) return n.add(e), x(_).map(function(e) {
|
|
891
891
|
return g(e, {
|
|
892
892
|
isEmbeddedInLabel: !0,
|
|
@@ -896,13 +896,13 @@ function Ie(e) {
|
|
|
896
896
|
}).filter(function(e) {
|
|
897
897
|
return e.length > 0;
|
|
898
898
|
}).join(" ");
|
|
899
|
-
if (
|
|
899
|
+
if (A(e) && e.type === "image") {
|
|
900
900
|
var v = p(e, "alt");
|
|
901
901
|
if (v !== null) return v;
|
|
902
902
|
var y = p(e, "title");
|
|
903
903
|
return y === null ? "Submit Query" : y;
|
|
904
904
|
}
|
|
905
|
-
if (
|
|
905
|
+
if (M(e, ["button"])) {
|
|
906
906
|
var b = f(e, {
|
|
907
907
|
isEmbeddedInLabel: !1,
|
|
908
908
|
isReferenced: !1
|
|
@@ -914,7 +914,7 @@ function Ie(e) {
|
|
|
914
914
|
function g(e, t) {
|
|
915
915
|
if (n.has(e)) return "";
|
|
916
916
|
if (!d && Ce(e, l) && !t.isReferenced) return n.add(e), "";
|
|
917
|
-
var r =
|
|
917
|
+
var r = k(e) ? e.getAttributeNode("aria-labelledby") : null, i = r !== null && !n.has(r) ? j(e, "aria-labelledby") : [];
|
|
918
918
|
if (a === "name" && !t.isReferenced && i.length > 0) return n.add(r), i.map(function(e) {
|
|
919
919
|
return g(e, {
|
|
920
920
|
isEmbeddedInLabel: t.isEmbeddedInLabel,
|
|
@@ -924,19 +924,19 @@ function Ie(e) {
|
|
|
924
924
|
}).join(" ");
|
|
925
925
|
var o = t.recursion && we(e) && a === "name";
|
|
926
926
|
if (!o) {
|
|
927
|
-
var s = (
|
|
927
|
+
var s = (k(e) && e.getAttribute("aria-label") || "").trim();
|
|
928
928
|
if (s !== "" && a === "name") return n.add(e), s;
|
|
929
929
|
if (!Ee(e)) {
|
|
930
930
|
var c = h(e);
|
|
931
931
|
if (c !== null) return n.add(e), c;
|
|
932
932
|
}
|
|
933
933
|
}
|
|
934
|
-
if (
|
|
934
|
+
if (M(e, ["menu"])) return n.add(e), "";
|
|
935
935
|
if (o || t.isEmbeddedInLabel || t.isReferenced) {
|
|
936
|
-
if (
|
|
936
|
+
if (M(e, ["combobox", "listbox"])) {
|
|
937
937
|
n.add(e);
|
|
938
938
|
var u = Te(e);
|
|
939
|
-
return u.length === 0 ?
|
|
939
|
+
return u.length === 0 ? A(e) ? e.value : "" : x(u).map(function(e) {
|
|
940
940
|
return g(e, {
|
|
941
941
|
isEmbeddedInLabel: t.isEmbeddedInLabel,
|
|
942
942
|
isReferenced: !1,
|
|
@@ -944,10 +944,10 @@ function Ie(e) {
|
|
|
944
944
|
});
|
|
945
945
|
}).join(" ");
|
|
946
946
|
}
|
|
947
|
-
if (
|
|
948
|
-
if (
|
|
947
|
+
if (N(e, "range")) return n.add(e), e.hasAttribute("aria-valuetext") ? e.getAttribute("aria-valuetext") : e.hasAttribute("aria-valuenow") ? e.getAttribute("aria-valuenow") : e.getAttribute("value") || "";
|
|
948
|
+
if (M(e, ["textbox"])) return n.add(e), Ae(e);
|
|
949
949
|
}
|
|
950
|
-
if (Oe(e) ||
|
|
950
|
+
if (Oe(e) || k(e) && t.isReferenced || De(e) || ke(e)) {
|
|
951
951
|
var p = f(e, {
|
|
952
952
|
isEmbeddedInLabel: t.isEmbeddedInLabel,
|
|
953
953
|
isReferenced: !1
|
|
@@ -978,7 +978,7 @@ function L(e) {
|
|
|
978
978
|
return e && typeof Symbol == "function" && e.constructor === Symbol && e !== Symbol.prototype ? "symbol" : typeof e;
|
|
979
979
|
}, L(e);
|
|
980
980
|
}
|
|
981
|
-
function
|
|
981
|
+
function Ie(e, t) {
|
|
982
982
|
var n = Object.keys(e);
|
|
983
983
|
if (Object.getOwnPropertySymbols) {
|
|
984
984
|
var r = Object.getOwnPropertySymbols(e);
|
|
@@ -988,30 +988,30 @@ function Le(e, t) {
|
|
|
988
988
|
}
|
|
989
989
|
return n;
|
|
990
990
|
}
|
|
991
|
-
function
|
|
991
|
+
function Le(e) {
|
|
992
992
|
for (var t = 1; t < arguments.length; t++) {
|
|
993
993
|
var n = arguments[t] == null ? {} : arguments[t];
|
|
994
|
-
t % 2 ?
|
|
995
|
-
|
|
996
|
-
}) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(n)) :
|
|
994
|
+
t % 2 ? Ie(Object(n), !0).forEach(function(t) {
|
|
995
|
+
Re(e, t, n[t]);
|
|
996
|
+
}) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(n)) : Ie(Object(n)).forEach(function(t) {
|
|
997
997
|
Object.defineProperty(e, t, Object.getOwnPropertyDescriptor(n, t));
|
|
998
998
|
});
|
|
999
999
|
}
|
|
1000
1000
|
return e;
|
|
1001
1001
|
}
|
|
1002
|
-
function
|
|
1003
|
-
return t =
|
|
1002
|
+
function Re(e, t, n) {
|
|
1003
|
+
return t = ze(t), t in e ? Object.defineProperty(e, t, {
|
|
1004
1004
|
value: n,
|
|
1005
1005
|
enumerable: !0,
|
|
1006
1006
|
configurable: !0,
|
|
1007
1007
|
writable: !0
|
|
1008
1008
|
}) : e[t] = n, e;
|
|
1009
1009
|
}
|
|
1010
|
-
function
|
|
1011
|
-
var t =
|
|
1010
|
+
function ze(e) {
|
|
1011
|
+
var t = Be(e, "string");
|
|
1012
1012
|
return L(t) === "symbol" ? t : String(t);
|
|
1013
1013
|
}
|
|
1014
|
-
function
|
|
1014
|
+
function Be(e, t) {
|
|
1015
1015
|
if (L(e) !== "object" || e === null) return e;
|
|
1016
1016
|
var n = e[Symbol.toPrimitive];
|
|
1017
1017
|
if (n !== void 0) {
|
|
@@ -1021,9 +1021,9 @@ function Ve(e, t) {
|
|
|
1021
1021
|
}
|
|
1022
1022
|
return (t === "string" ? String : Number)(e);
|
|
1023
1023
|
}
|
|
1024
|
-
function
|
|
1025
|
-
var t = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {}, n =
|
|
1026
|
-
return
|
|
1024
|
+
function Ve(e) {
|
|
1025
|
+
var t = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {}, n = j(e, "aria-describedby").map(function(e) {
|
|
1026
|
+
return Fe(e, Le(Le({}, t), {}, { compute: "description" }));
|
|
1027
1027
|
}).join(" ");
|
|
1028
1028
|
if (n === "") {
|
|
1029
1029
|
var r = e.getAttribute("aria-description");
|
|
@@ -1037,8 +1037,8 @@ function He(e) {
|
|
|
1037
1037
|
}
|
|
1038
1038
|
//#endregion
|
|
1039
1039
|
//#region node_modules/@testing-library/jest-dom/node_modules/dom-accessibility-api/dist/accessible-name.mjs
|
|
1040
|
-
function
|
|
1041
|
-
return
|
|
1040
|
+
function He(e) {
|
|
1041
|
+
return M(e, [
|
|
1042
1042
|
"caption",
|
|
1043
1043
|
"code",
|
|
1044
1044
|
"deletion",
|
|
@@ -1053,13 +1053,13 @@ function Ue(e) {
|
|
|
1053
1053
|
"superscript"
|
|
1054
1054
|
]);
|
|
1055
1055
|
}
|
|
1056
|
-
function
|
|
1056
|
+
function Ue(e) {
|
|
1057
1057
|
var t = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {};
|
|
1058
|
-
return
|
|
1058
|
+
return He(e) ? "" : Fe(e, t);
|
|
1059
1059
|
}
|
|
1060
1060
|
//#endregion
|
|
1061
1061
|
//#region node_modules/picocolors/picocolors.browser.js
|
|
1062
|
-
var
|
|
1062
|
+
var We = /* @__PURE__ */ t(((e, t) => {
|
|
1063
1063
|
var n = String, r = function() {
|
|
1064
1064
|
return {
|
|
1065
1065
|
isColorSupported: !1,
|
|
@@ -1107,7 +1107,7 @@ var Ge = /* @__PURE__ */ t(((e, t) => {
|
|
|
1107
1107
|
};
|
|
1108
1108
|
};
|
|
1109
1109
|
t.exports = r(), t.exports.createColors = r;
|
|
1110
|
-
})),
|
|
1110
|
+
})), Ge = /* @__PURE__ */ t(((e, t) => {
|
|
1111
1111
|
(function(n, r) {
|
|
1112
1112
|
typeof e == "object" ? t.exports = r(n) : typeof define == "function" && define.amd ? define([], r.bind(n, n)) : r(n);
|
|
1113
1113
|
})(typeof global < "u" ? global : e, function(e) {
|
|
@@ -1137,7 +1137,7 @@ var Ge = /* @__PURE__ */ t(((e, t) => {
|
|
|
1137
1137
|
};
|
|
1138
1138
|
return e.CSS ||= {}, e.CSS.escape = t, t;
|
|
1139
1139
|
});
|
|
1140
|
-
})),
|
|
1140
|
+
})), Ke = /* @__PURE__ */ e(o(), 1), R = n(), qe = /* @__PURE__ */ e(We(), 1), Je = /* @__PURE__ */ e(Ge(), 1), Ye = class extends Error {
|
|
1141
1141
|
constructor(e, t, n, r) {
|
|
1142
1142
|
/* istanbul ignore next */
|
|
1143
1143
|
super(), Error.captureStackTrace && Error.captureStackTrace(this, n);
|
|
@@ -1152,27 +1152,27 @@ var Ge = /* @__PURE__ */ t(((e, t) => {
|
|
|
1152
1152
|
i
|
|
1153
1153
|
].join("\n");
|
|
1154
1154
|
}
|
|
1155
|
-
},
|
|
1155
|
+
}, Xe = class extends Ye {
|
|
1156
1156
|
constructor(...e) {
|
|
1157
1157
|
super("be an HTMLElement or an SVGElement", ...e);
|
|
1158
1158
|
}
|
|
1159
|
-
},
|
|
1159
|
+
}, Ze = class extends Ye {
|
|
1160
1160
|
constructor(...e) {
|
|
1161
1161
|
super("be a Node", ...e);
|
|
1162
1162
|
}
|
|
1163
1163
|
};
|
|
1164
|
-
function
|
|
1164
|
+
function Qe(e, t, ...n) {
|
|
1165
1165
|
if (!e || !e.ownerDocument || !e.ownerDocument.defaultView) throw new t(e, ...n);
|
|
1166
1166
|
}
|
|
1167
|
-
function
|
|
1168
|
-
if (
|
|
1167
|
+
function $e(e, ...t) {
|
|
1168
|
+
if (Qe(e, Ze, ...t), !(e instanceof e.ownerDocument.defaultView.Node)) throw new Ze(e, ...t);
|
|
1169
1169
|
}
|
|
1170
1170
|
function z(e, ...t) {
|
|
1171
|
-
|
|
1171
|
+
Qe(e, Xe, ...t);
|
|
1172
1172
|
let n = e.ownerDocument.defaultView;
|
|
1173
|
-
if (!(e instanceof n.HTMLElement) && !(e instanceof n.SVGElement)) throw new
|
|
1173
|
+
if (!(e instanceof n.HTMLElement) && !(e instanceof n.SVGElement)) throw new Xe(e, ...t);
|
|
1174
1174
|
}
|
|
1175
|
-
var
|
|
1175
|
+
var et = class extends Error {
|
|
1176
1176
|
constructor(e, t, n) {
|
|
1177
1177
|
super(), Error.captureStackTrace && Error.captureStackTrace(this, t), this.message = [
|
|
1178
1178
|
e.message,
|
|
@@ -1182,28 +1182,28 @@ var tt = class extends Error {
|
|
|
1182
1182
|
].join("\n");
|
|
1183
1183
|
}
|
|
1184
1184
|
};
|
|
1185
|
-
function
|
|
1185
|
+
function tt(e, ...t) {
|
|
1186
1186
|
let n = h(`selector { ${e} }`, { silent: !0 }).stylesheet;
|
|
1187
1187
|
if (n.parsingErrors && n.parsingErrors.length > 0) {
|
|
1188
1188
|
let { reason: r, line: i } = n.parsingErrors[0];
|
|
1189
|
-
throw new
|
|
1189
|
+
throw new et({
|
|
1190
1190
|
css: e,
|
|
1191
1191
|
message: `Syntax error parsing expected css: ${r} on line: ${i}`
|
|
1192
1192
|
}, ...t);
|
|
1193
1193
|
}
|
|
1194
1194
|
return n.rules[0].declarations.filter((e) => e.type === "declaration").reduce((e, { property: t, value: n }) => Object.assign(e, { [t]: n }), {});
|
|
1195
1195
|
}
|
|
1196
|
-
function
|
|
1196
|
+
function nt(e, t) {
|
|
1197
1197
|
return typeof t == "string" ? t : e.utils.stringify(t);
|
|
1198
1198
|
}
|
|
1199
1199
|
function B(e, t, n, r, i, a) {
|
|
1200
1200
|
return [
|
|
1201
1201
|
`${t}\n`,
|
|
1202
|
-
`${n}:\n${e.utils.EXPECTED_COLOR((0,
|
|
1203
|
-
`${i}:\n${e.utils.RECEIVED_COLOR((0,
|
|
1202
|
+
`${n}:\n${e.utils.EXPECTED_COLOR((0, Ke.default)(nt(e, r), 2))}`,
|
|
1203
|
+
`${i}:\n${e.utils.RECEIVED_COLOR((0, Ke.default)(nt(e, a), 2))}`
|
|
1204
1204
|
].join("\n");
|
|
1205
1205
|
}
|
|
1206
|
-
function
|
|
1206
|
+
function rt(e, t) {
|
|
1207
1207
|
return t instanceof RegExp ? t.test(e) : e.includes(String(t));
|
|
1208
1208
|
}
|
|
1209
1209
|
function V(e, t) {
|
|
@@ -1215,35 +1215,35 @@ function H(e) {
|
|
|
1215
1215
|
function U(e) {
|
|
1216
1216
|
return e.tagName && e.tagName.toLowerCase();
|
|
1217
1217
|
}
|
|
1218
|
-
function
|
|
1218
|
+
function it({ multiple: e, options: t }) {
|
|
1219
1219
|
let n = [...t].filter((e) => e.selected);
|
|
1220
1220
|
if (e) return [...n].map((e) => e.value);
|
|
1221
1221
|
if (n.length !== 0) return n[0].value;
|
|
1222
1222
|
}
|
|
1223
|
-
function
|
|
1223
|
+
function at(e) {
|
|
1224
1224
|
switch (e.type) {
|
|
1225
1225
|
case "number": return e.value === "" ? null : Number(e.value);
|
|
1226
1226
|
case "checkbox": return e.checked;
|
|
1227
1227
|
default: return e.value;
|
|
1228
1228
|
}
|
|
1229
1229
|
}
|
|
1230
|
-
var
|
|
1230
|
+
var ot = [
|
|
1231
1231
|
"meter",
|
|
1232
1232
|
"progressbar",
|
|
1233
1233
|
"slider",
|
|
1234
1234
|
"spinbutton"
|
|
1235
1235
|
];
|
|
1236
|
-
function
|
|
1237
|
-
if (
|
|
1236
|
+
function st(e) {
|
|
1237
|
+
if (ot.includes(e.getAttribute("role"))) return Number(e.getAttribute("aria-valuenow"));
|
|
1238
1238
|
}
|
|
1239
|
-
function
|
|
1239
|
+
function ct(e) {
|
|
1240
1240
|
if (e) switch (e.tagName.toLowerCase()) {
|
|
1241
|
-
case "input": return
|
|
1242
|
-
case "select": return
|
|
1243
|
-
default: return e.value ??
|
|
1241
|
+
case "input": return at(e);
|
|
1242
|
+
case "select": return it(e);
|
|
1243
|
+
default: return e.value ?? st(e);
|
|
1244
1244
|
}
|
|
1245
1245
|
}
|
|
1246
|
-
function
|
|
1246
|
+
function lt(e, { wordConnector: t = ", ", lastWordConnector: n = " and " } = {}) {
|
|
1247
1247
|
return [e.slice(0, -1).join(t), e[e.length - 1]].join(e.length > 1 ? n : "");
|
|
1248
1248
|
}
|
|
1249
1249
|
function W(e, t) {
|
|
@@ -1260,8 +1260,8 @@ function G(e, t) {
|
|
|
1260
1260
|
].join("\n")
|
|
1261
1261
|
};
|
|
1262
1262
|
}
|
|
1263
|
-
function
|
|
1264
|
-
(e !== null || !this.isNot) && z(e,
|
|
1263
|
+
function ut(e) {
|
|
1264
|
+
(e !== null || !this.isNot) && z(e, ut, this);
|
|
1265
1265
|
let t = e === null ? !1 : e.ownerDocument === e.getRootNode({ composed: !0 }), n = () => `expected document not to contain element, found ${this.utils.stringify(e.cloneNode(!0))} instead`, r = () => "element could not be found in the document";
|
|
1266
1266
|
return {
|
|
1267
1267
|
pass: t,
|
|
@@ -1272,8 +1272,8 @@ function dt(e) {
|
|
|
1272
1272
|
].join("\n")
|
|
1273
1273
|
};
|
|
1274
1274
|
}
|
|
1275
|
-
function
|
|
1276
|
-
return V("toBeEmpty", "Please use instead toBeEmptyDOMElement for finding empty nodes in the DOM."), z(e,
|
|
1275
|
+
function dt(e) {
|
|
1276
|
+
return V("toBeEmpty", "Please use instead toBeEmptyDOMElement for finding empty nodes in the DOM."), z(e, dt, this), {
|
|
1277
1277
|
pass: e.innerHTML === "",
|
|
1278
1278
|
message: () => [
|
|
1279
1279
|
this.utils.matcherHint(`${this.isNot ? ".not" : ""}.toBeEmpty`, "element", ""),
|
|
@@ -1283,9 +1283,9 @@ function ft(e) {
|
|
|
1283
1283
|
].join("\n")
|
|
1284
1284
|
};
|
|
1285
1285
|
}
|
|
1286
|
-
function
|
|
1287
|
-
return z(e,
|
|
1288
|
-
pass:
|
|
1286
|
+
function ft(e) {
|
|
1287
|
+
return z(e, ft, this), {
|
|
1288
|
+
pass: pt(e),
|
|
1289
1289
|
message: () => [
|
|
1290
1290
|
this.utils.matcherHint(`${this.isNot ? ".not" : ""}.toBeEmptyDOMElement`, "element", ""),
|
|
1291
1291
|
"",
|
|
@@ -1294,7 +1294,7 @@ function pt(e) {
|
|
|
1294
1294
|
].join("\n")
|
|
1295
1295
|
};
|
|
1296
1296
|
}
|
|
1297
|
-
function
|
|
1297
|
+
function pt(e) {
|
|
1298
1298
|
return [...e.childNodes].filter((e) => e.nodeType !== 8).length === 0;
|
|
1299
1299
|
}
|
|
1300
1300
|
function K(e, t) {
|
|
@@ -1308,14 +1308,14 @@ function K(e, t) {
|
|
|
1308
1308
|
].join("\n")
|
|
1309
1309
|
};
|
|
1310
1310
|
}
|
|
1311
|
-
function
|
|
1311
|
+
function mt(e, t) {
|
|
1312
1312
|
let n = e.ownerDocument.createElement("div");
|
|
1313
1313
|
return n.innerHTML = t, n.innerHTML;
|
|
1314
1314
|
}
|
|
1315
|
-
function
|
|
1316
|
-
if (z(e,
|
|
1315
|
+
function ht(e, t) {
|
|
1316
|
+
if (z(e, ht, this), typeof t != "string") throw Error(`.toContainHTML() expects a string value, got ${t}`);
|
|
1317
1317
|
return {
|
|
1318
|
-
pass: e.outerHTML.includes(
|
|
1318
|
+
pass: e.outerHTML.includes(mt(e, t)),
|
|
1319
1319
|
message: () => [
|
|
1320
1320
|
this.utils.matcherHint(`${this.isNot ? ".not" : ""}.toContainHTML`, "element", ""),
|
|
1321
1321
|
"Expected:",
|
|
@@ -1325,11 +1325,11 @@ function gt(e, t) {
|
|
|
1325
1325
|
].join("\n")
|
|
1326
1326
|
};
|
|
1327
1327
|
}
|
|
1328
|
-
function
|
|
1329
|
-
|
|
1328
|
+
function gt(e, t, n = { normalizeWhitespace: !0 }) {
|
|
1329
|
+
$e(e, gt, this);
|
|
1330
1330
|
let r = n.normalizeWhitespace ? H(e.textContent) : e.textContent.replace(/\u00a0/g, " "), i = r !== "" && t === "";
|
|
1331
1331
|
return {
|
|
1332
|
-
pass: !i &&
|
|
1332
|
+
pass: !i && rt(r, t),
|
|
1333
1333
|
message: () => {
|
|
1334
1334
|
let e = this.isNot ? "not to" : "to";
|
|
1335
1335
|
return B(this, this.utils.matcherHint(`${this.isNot ? ".not" : ""}.toHaveTextContent`, "element", ""), i ? "Checking with empty string will always match, use .toBeEmptyDOMElement() instead" : `Expected element ${e} have text content`, t, "Received", r);
|
|
@@ -1338,7 +1338,7 @@ function _t(e, t, n = { normalizeWhitespace: !0 }) {
|
|
|
1338
1338
|
}
|
|
1339
1339
|
function q(e, t) {
|
|
1340
1340
|
z(e, q, this);
|
|
1341
|
-
let n =
|
|
1341
|
+
let n = Ve(e), r = arguments.length === 1, i = !1;
|
|
1342
1342
|
return i = r ? n !== "" : t instanceof RegExp ? t.test(n) : this.equals(n, t), {
|
|
1343
1343
|
pass: i,
|
|
1344
1344
|
message: () => {
|
|
@@ -1347,16 +1347,16 @@ function q(e, t) {
|
|
|
1347
1347
|
}
|
|
1348
1348
|
};
|
|
1349
1349
|
}
|
|
1350
|
-
var J = "aria-invalid",
|
|
1351
|
-
function
|
|
1352
|
-
z(e,
|
|
1350
|
+
var J = "aria-invalid", _t = ["false"];
|
|
1351
|
+
function vt(e, t) {
|
|
1352
|
+
z(e, vt, this);
|
|
1353
1353
|
let n = this.isNot ? "not to" : "to", r = this.isNot ? ".not.toHaveAccessibleErrorMessage" : ".toHaveAccessibleErrorMessage", i = e.getAttribute("aria-errormessage");
|
|
1354
1354
|
if (i && /\s+/.test(i)) return {
|
|
1355
1355
|
pass: !1,
|
|
1356
1356
|
message: () => B(this, this.utils.matcherHint(r, "element"), "Expected element's `aria-errormessage` attribute to be empty or a single, valid ID", "", "Received", `aria-errormessage="${i}"`)
|
|
1357
1357
|
};
|
|
1358
1358
|
let a = e.getAttribute(J);
|
|
1359
|
-
if (!e.hasAttribute(J) ||
|
|
1359
|
+
if (!e.hasAttribute(J) || _t.includes(a)) return {
|
|
1360
1360
|
pass: !1,
|
|
1361
1361
|
message: () => B(this, this.utils.matcherHint(r, "element"), "Expected element to be marked as invalid with attribute", `${J}="true"`, "Received", e.hasAttribute("aria-invalid") ? `${J}="${e.getAttribute(J)}` : null)
|
|
1362
1362
|
};
|
|
@@ -1366,10 +1366,10 @@ function yt(e, t) {
|
|
|
1366
1366
|
message: () => B(this, this.utils.matcherHint(r, "element"), `Expected element ${n} have accessible error message`, t ?? "", "Received", o)
|
|
1367
1367
|
};
|
|
1368
1368
|
}
|
|
1369
|
-
var
|
|
1369
|
+
var yt = St(R.elementRoles);
|
|
1370
1370
|
function Y(e, t) {
|
|
1371
1371
|
z(e, Y, this);
|
|
1372
|
-
let n =
|
|
1372
|
+
let n = bt(e);
|
|
1373
1373
|
return {
|
|
1374
1374
|
pass: n.some((e) => e === t),
|
|
1375
1375
|
message: () => {
|
|
@@ -1378,15 +1378,15 @@ function Y(e, t) {
|
|
|
1378
1378
|
}
|
|
1379
1379
|
};
|
|
1380
1380
|
}
|
|
1381
|
-
function
|
|
1382
|
-
return e.hasAttribute("role") ? e.getAttribute("role").split(" ").filter(Boolean) :
|
|
1381
|
+
function bt(e) {
|
|
1382
|
+
return e.hasAttribute("role") ? e.getAttribute("role").split(" ").filter(Boolean) : xt(e);
|
|
1383
1383
|
}
|
|
1384
|
-
function
|
|
1385
|
-
for (let { match: t, roles: n } of
|
|
1384
|
+
function xt(e) {
|
|
1385
|
+
for (let { match: t, roles: n } of yt) if (t(e)) return [...n];
|
|
1386
1386
|
/* istanbul ignore next */
|
|
1387
1387
|
return [];
|
|
1388
1388
|
}
|
|
1389
|
-
function
|
|
1389
|
+
function St(e) {
|
|
1390
1390
|
function t({ name: e, attributes: t }) {
|
|
1391
1391
|
return `${e}${t.map(({ name: e, value: t, constraints: n = [] }) => n.indexOf("undefined") === -1 ? t ? `[${e}="${t}"]` : `[${e}]` : `:not([${e}])`).join("")}`;
|
|
1392
1392
|
}
|
|
@@ -1415,7 +1415,7 @@ function Ct(e) {
|
|
|
1415
1415
|
}
|
|
1416
1416
|
function X(e, t) {
|
|
1417
1417
|
z(e, X, this);
|
|
1418
|
-
let n =
|
|
1418
|
+
let n = Ue(e), r = arguments.length === 1, i = !1;
|
|
1419
1419
|
return i = r ? n !== "" : t instanceof RegExp ? t.test(n) : this.equals(n, t), {
|
|
1420
1420
|
pass: i,
|
|
1421
1421
|
message: () => {
|
|
@@ -1424,51 +1424,51 @@ function X(e, t) {
|
|
|
1424
1424
|
}
|
|
1425
1425
|
};
|
|
1426
1426
|
}
|
|
1427
|
-
function
|
|
1427
|
+
function Ct(e, t, n) {
|
|
1428
1428
|
return n === void 0 ? t : `${t}=${e(n)}`;
|
|
1429
1429
|
}
|
|
1430
|
-
function
|
|
1430
|
+
function wt(e, t, n) {
|
|
1431
1431
|
return n === void 0 ? `element.hasAttribute(${e(t)})` : `element.getAttribute(${e(t)}) === ${e(n)}`;
|
|
1432
1432
|
}
|
|
1433
|
-
function
|
|
1434
|
-
z(e,
|
|
1433
|
+
function Tt(e, t, n) {
|
|
1434
|
+
z(e, Tt, this);
|
|
1435
1435
|
let r = n !== void 0, i = e.hasAttribute(t), a = e.getAttribute(t);
|
|
1436
1436
|
return {
|
|
1437
1437
|
pass: r ? i && this.equals(a, n) : i,
|
|
1438
1438
|
message: () => {
|
|
1439
|
-
let e = this.isNot ? "not to" : "to", o = i ?
|
|
1439
|
+
let e = this.isNot ? "not to" : "to", o = i ? Ct(this.utils.stringify, t, a) : null, s = this.utils.matcherHint(`${this.isNot ? ".not" : ""}.toHaveAttribute`, "element", this.utils.printExpected(t), {
|
|
1440
1440
|
secondArgument: r ? this.utils.printExpected(n) : void 0,
|
|
1441
|
-
comment:
|
|
1441
|
+
comment: wt(this.utils.stringify, t, n)
|
|
1442
1442
|
});
|
|
1443
|
-
return B(this, s, `Expected the element ${e} have attribute`,
|
|
1443
|
+
return B(this, s, `Expected the element ${e} have attribute`, Ct(this.utils.stringify, t, n), "Received", o);
|
|
1444
1444
|
}
|
|
1445
1445
|
};
|
|
1446
1446
|
}
|
|
1447
|
-
function
|
|
1447
|
+
function Et(e) {
|
|
1448
1448
|
let t = e.pop(), n, r;
|
|
1449
1449
|
return typeof t == "object" && !(t instanceof RegExp) ? (n = e, r = t) : (n = e.concat(t), r = { exact: !1 }), {
|
|
1450
1450
|
expectedClassNames: n,
|
|
1451
1451
|
options: r
|
|
1452
1452
|
};
|
|
1453
1453
|
}
|
|
1454
|
-
function
|
|
1454
|
+
function Dt(e) {
|
|
1455
1455
|
return e ? e.split(/\s+/).filter((e) => e.length > 0) : [];
|
|
1456
1456
|
}
|
|
1457
|
-
function
|
|
1457
|
+
function Ot(e, t) {
|
|
1458
1458
|
return e.every((e) => typeof e == "string" ? t.includes(e) : t.some((t) => e.test(t)));
|
|
1459
1459
|
}
|
|
1460
|
-
function
|
|
1461
|
-
z(e,
|
|
1462
|
-
let { expectedClassNames: n, options: r } =
|
|
1460
|
+
function kt(e, ...t) {
|
|
1461
|
+
z(e, kt, this);
|
|
1462
|
+
let { expectedClassNames: n, options: r } = Et(t), i = Dt(e.getAttribute("class")), a = n.reduce((e, t) => e.concat(typeof t == "string" || !t ? Dt(t) : t), []), o = a.some((e) => e instanceof RegExp);
|
|
1463
1463
|
if (r.exact && o) throw Error("Exact option does not support RegExp expected class names");
|
|
1464
1464
|
return r.exact ? {
|
|
1465
|
-
pass:
|
|
1465
|
+
pass: Ot(a, i) && a.length === i.length,
|
|
1466
1466
|
message: () => {
|
|
1467
1467
|
let e = this.isNot ? "not to" : "to";
|
|
1468
1468
|
return B(this, this.utils.matcherHint(`${this.isNot ? ".not" : ""}.toHaveClass`, "element", this.utils.printExpected(a.join(" "))), `Expected the element ${e} have EXACTLY defined classes`, a.join(" "), "Received", i.join(" "));
|
|
1469
1469
|
}
|
|
1470
1470
|
} : a.length > 0 ? {
|
|
1471
|
-
pass:
|
|
1471
|
+
pass: Ot(a, i),
|
|
1472
1472
|
message: () => {
|
|
1473
1473
|
let e = this.isNot ? "not to" : "to";
|
|
1474
1474
|
return B(this, this.utils.matcherHint(`${this.isNot ? ".not" : ""}.toHaveClass`, "element", this.utils.printExpected(a.join(" "))), `Expected the element ${e} have class`, a.join(" "), "Received", i.join(" "));
|
|
@@ -1478,38 +1478,38 @@ function At(e, ...t) {
|
|
|
1478
1478
|
message: () => this.isNot ? B(this, this.utils.matcherHint(".not.toHaveClass", "element", ""), "Expected the element to have classes", "(none)", "Received", i.join(" ")) : [this.utils.matcherHint(".toHaveClass", "element"), "At least one expected class must be provided."].join("\n")
|
|
1479
1479
|
};
|
|
1480
1480
|
}
|
|
1481
|
-
function
|
|
1481
|
+
function At(e, t) {
|
|
1482
1482
|
let n = {}, r = e.createElement("div");
|
|
1483
1483
|
return Object.keys(t).forEach((e) => {
|
|
1484
1484
|
r.style[e] = t[e], n[e] = r.style[e];
|
|
1485
1485
|
}), n;
|
|
1486
1486
|
}
|
|
1487
|
-
function
|
|
1487
|
+
function jt(e, t) {
|
|
1488
1488
|
return !!Object.keys(e).length && Object.entries(e).every(([e, n]) => {
|
|
1489
1489
|
let r = e.startsWith("--"), i = [e];
|
|
1490
1490
|
return r || i.push(e.toLowerCase()), i.some((e) => t[e] === n || t.getPropertyValue(e) === n);
|
|
1491
1491
|
});
|
|
1492
1492
|
}
|
|
1493
|
-
function
|
|
1493
|
+
function Mt(e) {
|
|
1494
1494
|
return Object.keys(e).sort().map((t) => `${t}: ${e[t]};`).join("\n");
|
|
1495
1495
|
}
|
|
1496
|
-
function
|
|
1496
|
+
function Nt(e, t, n) {
|
|
1497
1497
|
let r = Array.from(n).filter((e) => t[e] !== void 0).reduce((e, t) => Object.assign(e, { [t]: n.getPropertyValue(t) }), {});
|
|
1498
|
-
return e(
|
|
1498
|
+
return e(Mt(t), Mt(r)).replace(`${qe.default.red("+ Received")}\n`, "");
|
|
1499
1499
|
}
|
|
1500
1500
|
function Z(e, t) {
|
|
1501
1501
|
z(e, Z, this);
|
|
1502
|
-
let n = typeof t == "object" ? t :
|
|
1502
|
+
let n = typeof t == "object" ? t : tt(t, Z, this), { getComputedStyle: r } = e.ownerDocument.defaultView, i = At(e.ownerDocument, n), a = r(e);
|
|
1503
1503
|
return {
|
|
1504
|
-
pass:
|
|
1504
|
+
pass: jt(i, a),
|
|
1505
1505
|
message: () => {
|
|
1506
1506
|
let e = `${this.isNot ? ".not" : ""}.toHaveStyle`;
|
|
1507
|
-
return [this.utils.matcherHint(e, "element", ""),
|
|
1507
|
+
return [this.utils.matcherHint(e, "element", ""), Nt(this.utils.diff, i, a)].join("\n\n");
|
|
1508
1508
|
}
|
|
1509
1509
|
};
|
|
1510
1510
|
}
|
|
1511
|
-
function
|
|
1512
|
-
return z(e,
|
|
1511
|
+
function Pt(e) {
|
|
1512
|
+
return z(e, Pt, this), {
|
|
1513
1513
|
pass: e.ownerDocument.activeElement === e,
|
|
1514
1514
|
message: () => [
|
|
1515
1515
|
this.utils.matcherHint(`${this.isNot ? ".not" : ""}.toHaveFocus`, "element", ""),
|
|
@@ -1523,7 +1523,7 @@ function Ft(e) {
|
|
|
1523
1523
|
].join("\n")
|
|
1524
1524
|
};
|
|
1525
1525
|
}
|
|
1526
|
-
function
|
|
1526
|
+
function Ft(e) {
|
|
1527
1527
|
let t = [...new Set(e.map((e) => e.type))];
|
|
1528
1528
|
if (t.length !== 1) throw Error("Multiple form elements with the same name must be of the same type");
|
|
1529
1529
|
switch (t[0]) {
|
|
@@ -1535,25 +1535,25 @@ function It(e) {
|
|
|
1535
1535
|
default: return e.map((e) => e.value);
|
|
1536
1536
|
}
|
|
1537
1537
|
}
|
|
1538
|
-
function
|
|
1539
|
-
let n = [...e.querySelectorAll(`[name="${(0,
|
|
1538
|
+
function It(e, t) {
|
|
1539
|
+
let n = [...e.querySelectorAll(`[name="${(0, Je.default)(t)}"]`)];
|
|
1540
1540
|
if (n.length !== 0) switch (n.length) {
|
|
1541
|
-
case 1: return
|
|
1542
|
-
default: return
|
|
1541
|
+
case 1: return ct(n[0]);
|
|
1542
|
+
default: return Ft(n);
|
|
1543
1543
|
}
|
|
1544
1544
|
}
|
|
1545
|
-
function
|
|
1545
|
+
function Lt(e) {
|
|
1546
1546
|
return /\[\]$/.test(e) ? e.slice(0, -2) : e;
|
|
1547
1547
|
}
|
|
1548
|
-
function
|
|
1548
|
+
function Rt(e) {
|
|
1549
1549
|
return Array.from(e.elements).map((e) => e.name).reduce((t, n) => ({
|
|
1550
1550
|
...t,
|
|
1551
|
-
[
|
|
1551
|
+
[Lt(n)]: It(e, n)
|
|
1552
1552
|
}), {});
|
|
1553
1553
|
}
|
|
1554
|
-
function
|
|
1555
|
-
if (z(e,
|
|
1556
|
-
let n =
|
|
1554
|
+
function zt(e, t) {
|
|
1555
|
+
if (z(e, zt, this), !e.elements) throw Error("toHaveFormValues must be called on a form or a fieldset");
|
|
1556
|
+
let n = Rt(e);
|
|
1557
1557
|
return {
|
|
1558
1558
|
pass: Object.entries(t).every(([e, t]) => W(n[e], t)),
|
|
1559
1559
|
message: () => {
|
|
@@ -1569,20 +1569,20 @@ function Bt(e, t) {
|
|
|
1569
1569
|
}
|
|
1570
1570
|
};
|
|
1571
1571
|
}
|
|
1572
|
-
function
|
|
1572
|
+
function Bt(e) {
|
|
1573
1573
|
let { getComputedStyle: t } = e.ownerDocument.defaultView, { display: n, visibility: r, opacity: i } = t(e);
|
|
1574
1574
|
return n !== "none" && r !== "hidden" && r !== "collapse" && i !== "0" && i !== 0;
|
|
1575
1575
|
}
|
|
1576
|
-
function
|
|
1576
|
+
function Vt(e, t) {
|
|
1577
1577
|
let n;
|
|
1578
1578
|
return n = t ? e.nodeName === "DETAILS" && t.nodeName !== "SUMMARY" ? e.hasAttribute("open") : !0 : e.nodeName === "DETAILS" ? e.hasAttribute("open") : !0, !e.hasAttribute("hidden") && n;
|
|
1579
1579
|
}
|
|
1580
|
-
function
|
|
1581
|
-
return
|
|
1580
|
+
function Ht(e, t) {
|
|
1581
|
+
return Bt(e) && Vt(e, t) && (!e.parentElement || Ht(e.parentElement, e));
|
|
1582
1582
|
}
|
|
1583
|
-
function
|
|
1584
|
-
z(e,
|
|
1585
|
-
let t = e.ownerDocument === e.getRootNode({ composed: !0 }), n = t &&
|
|
1583
|
+
function Ut(e) {
|
|
1584
|
+
z(e, Ut, this);
|
|
1585
|
+
let t = e.ownerDocument === e.getRootNode({ composed: !0 }), n = t && Ht(e);
|
|
1586
1586
|
return {
|
|
1587
1587
|
pass: n,
|
|
1588
1588
|
message: () => {
|
|
@@ -1596,7 +1596,7 @@ function Wt(e) {
|
|
|
1596
1596
|
}
|
|
1597
1597
|
};
|
|
1598
1598
|
}
|
|
1599
|
-
var
|
|
1599
|
+
var Wt = [
|
|
1600
1600
|
"fieldset",
|
|
1601
1601
|
"input",
|
|
1602
1602
|
"select",
|
|
@@ -1605,32 +1605,32 @@ var Gt = [
|
|
|
1605
1605
|
"button",
|
|
1606
1606
|
"textarea"
|
|
1607
1607
|
];
|
|
1608
|
-
function
|
|
1608
|
+
function Gt(e, t) {
|
|
1609
1609
|
return U(e) === "legend" && U(t) === "fieldset" && e.isSameNode(Array.from(t.children).find((e) => U(e) === "legend"));
|
|
1610
1610
|
}
|
|
1611
|
-
function
|
|
1612
|
-
return
|
|
1611
|
+
function Kt(e, t) {
|
|
1612
|
+
return Yt(t) && !Gt(e, t);
|
|
1613
1613
|
}
|
|
1614
|
-
function
|
|
1614
|
+
function qt(e) {
|
|
1615
1615
|
return e.includes("-");
|
|
1616
1616
|
}
|
|
1617
|
-
function
|
|
1617
|
+
function Jt(e) {
|
|
1618
1618
|
let t = U(e);
|
|
1619
|
-
return
|
|
1619
|
+
return Wt.includes(t) || qt(t);
|
|
1620
|
+
}
|
|
1621
|
+
function Yt(e) {
|
|
1622
|
+
return Jt(e) && e.hasAttribute("disabled");
|
|
1620
1623
|
}
|
|
1621
1624
|
function Xt(e) {
|
|
1622
|
-
|
|
1625
|
+
let t = e.parentElement;
|
|
1626
|
+
return !!t && (Kt(e, t) || Xt(t));
|
|
1623
1627
|
}
|
|
1624
1628
|
function Zt(e) {
|
|
1625
|
-
|
|
1626
|
-
return !!t && (qt(e, t) || Zt(t));
|
|
1629
|
+
return Jt(e) && (Yt(e) || Xt(e));
|
|
1627
1630
|
}
|
|
1628
1631
|
function Qt(e) {
|
|
1629
|
-
|
|
1630
|
-
|
|
1631
|
-
function $t(e) {
|
|
1632
|
-
z(e, $t, this);
|
|
1633
|
-
let t = Qt(e);
|
|
1632
|
+
z(e, Qt, this);
|
|
1633
|
+
let t = Zt(e);
|
|
1634
1634
|
return {
|
|
1635
1635
|
pass: t,
|
|
1636
1636
|
message: () => {
|
|
@@ -1644,9 +1644,9 @@ function $t(e) {
|
|
|
1644
1644
|
}
|
|
1645
1645
|
};
|
|
1646
1646
|
}
|
|
1647
|
-
function
|
|
1648
|
-
z(e,
|
|
1649
|
-
let t = !
|
|
1647
|
+
function $t(e) {
|
|
1648
|
+
z(e, $t, this);
|
|
1649
|
+
let t = !Zt(e);
|
|
1650
1650
|
return {
|
|
1651
1651
|
pass: t,
|
|
1652
1652
|
message: () => {
|
|
@@ -1660,18 +1660,18 @@ function en(e) {
|
|
|
1660
1660
|
}
|
|
1661
1661
|
};
|
|
1662
1662
|
}
|
|
1663
|
-
var
|
|
1663
|
+
var en = ["select", "textarea"], tn = [
|
|
1664
1664
|
"input",
|
|
1665
1665
|
"select",
|
|
1666
1666
|
"textarea"
|
|
1667
|
-
],
|
|
1667
|
+
], nn = [
|
|
1668
1668
|
"color",
|
|
1669
1669
|
"hidden",
|
|
1670
1670
|
"range",
|
|
1671
1671
|
"submit",
|
|
1672
1672
|
"image",
|
|
1673
1673
|
"reset"
|
|
1674
|
-
],
|
|
1674
|
+
], rn = [
|
|
1675
1675
|
"checkbox",
|
|
1676
1676
|
"combobox",
|
|
1677
1677
|
"gridcell",
|
|
@@ -1681,18 +1681,18 @@ var tn = ["select", "textarea"], nn = [
|
|
|
1681
1681
|
"textbox",
|
|
1682
1682
|
"tree"
|
|
1683
1683
|
];
|
|
1684
|
+
function an(e) {
|
|
1685
|
+
return en.includes(U(e)) && e.hasAttribute("required");
|
|
1686
|
+
}
|
|
1684
1687
|
function on(e) {
|
|
1685
|
-
return
|
|
1688
|
+
return U(e) === "input" && e.hasAttribute("required") && (e.hasAttribute("type") && !nn.includes(e.getAttribute("type")) || !e.hasAttribute("type"));
|
|
1686
1689
|
}
|
|
1687
1690
|
function sn(e) {
|
|
1688
|
-
return
|
|
1691
|
+
return e.hasAttribute("aria-required") && e.getAttribute("aria-required") === "true" && (tn.includes(U(e)) || e.hasAttribute("role") && rn.includes(e.getAttribute("role")));
|
|
1689
1692
|
}
|
|
1690
1693
|
function cn(e) {
|
|
1691
|
-
|
|
1692
|
-
|
|
1693
|
-
function ln(e) {
|
|
1694
|
-
z(e, ln, this);
|
|
1695
|
-
let t = on(e) || sn(e) || cn(e);
|
|
1694
|
+
z(e, cn, this);
|
|
1695
|
+
let t = an(e) || on(e) || sn(e);
|
|
1696
1696
|
return {
|
|
1697
1697
|
pass: t,
|
|
1698
1698
|
message: () => {
|
|
@@ -1706,25 +1706,25 @@ function ln(e) {
|
|
|
1706
1706
|
}
|
|
1707
1707
|
};
|
|
1708
1708
|
}
|
|
1709
|
-
var
|
|
1709
|
+
var ln = [
|
|
1710
1710
|
"form",
|
|
1711
1711
|
"input",
|
|
1712
1712
|
"select",
|
|
1713
1713
|
"textarea"
|
|
1714
1714
|
];
|
|
1715
|
-
function
|
|
1715
|
+
function un(e) {
|
|
1716
1716
|
return e.hasAttribute("aria-invalid") && e.getAttribute("aria-invalid") !== "false";
|
|
1717
1717
|
}
|
|
1718
|
+
function dn(e) {
|
|
1719
|
+
return ln.includes(U(e));
|
|
1720
|
+
}
|
|
1718
1721
|
function fn(e) {
|
|
1719
|
-
|
|
1722
|
+
let t = un(e);
|
|
1723
|
+
return dn(e) ? t || !e.checkValidity() : t;
|
|
1720
1724
|
}
|
|
1721
1725
|
function pn(e) {
|
|
1722
|
-
|
|
1723
|
-
|
|
1724
|
-
}
|
|
1725
|
-
function mn(e) {
|
|
1726
|
-
z(e, mn, this);
|
|
1727
|
-
let t = pn(e);
|
|
1726
|
+
z(e, pn, this);
|
|
1727
|
+
let t = fn(e);
|
|
1728
1728
|
return {
|
|
1729
1729
|
pass: t,
|
|
1730
1730
|
message: () => {
|
|
@@ -1738,9 +1738,9 @@ function mn(e) {
|
|
|
1738
1738
|
}
|
|
1739
1739
|
};
|
|
1740
1740
|
}
|
|
1741
|
-
function
|
|
1742
|
-
z(e,
|
|
1743
|
-
let t = !
|
|
1741
|
+
function mn(e) {
|
|
1742
|
+
z(e, mn, this);
|
|
1743
|
+
let t = !fn(e);
|
|
1744
1744
|
return {
|
|
1745
1745
|
pass: t,
|
|
1746
1746
|
message: () => {
|
|
@@ -1754,9 +1754,9 @@ function hn(e) {
|
|
|
1754
1754
|
}
|
|
1755
1755
|
};
|
|
1756
1756
|
}
|
|
1757
|
-
function
|
|
1758
|
-
if (z(e,
|
|
1759
|
-
let n =
|
|
1757
|
+
function hn(e, t) {
|
|
1758
|
+
if (z(e, hn, this), e.tagName.toLowerCase() === "input" && ["checkbox", "radio"].includes(e.type)) throw Error("input with type=checkbox or type=radio cannot be used with .toHaveValue(). Use .toBeChecked() for type=checkbox or .toHaveFormValues() instead");
|
|
1759
|
+
let n = ct(e), r = t !== void 0, i = t, a = n;
|
|
1760
1760
|
return t == n && t !== n && (i = `${t} (${typeof t})`, a = `${n} (${typeof n})`), {
|
|
1761
1761
|
pass: r ? W(n, t) : !!n,
|
|
1762
1762
|
message: () => {
|
|
@@ -1765,8 +1765,8 @@ function gn(e, t) {
|
|
|
1765
1765
|
}
|
|
1766
1766
|
};
|
|
1767
1767
|
}
|
|
1768
|
-
function
|
|
1769
|
-
z(e,
|
|
1768
|
+
function Q(e, t) {
|
|
1769
|
+
z(e, Q, this);
|
|
1770
1770
|
let n = e.tagName.toLowerCase();
|
|
1771
1771
|
if (![
|
|
1772
1772
|
"select",
|
|
@@ -1774,24 +1774,24 @@ function _n(e, t) {
|
|
|
1774
1774
|
"textarea"
|
|
1775
1775
|
].includes(n)) throw Error(".toHaveDisplayValue() currently supports only input, textarea or select elements, try with another matcher instead.");
|
|
1776
1776
|
if (n === "input" && ["radio", "checkbox"].includes(e.type)) throw Error(`.toHaveDisplayValue() currently does not support input[type="${e.type}"], try with another matcher instead.`);
|
|
1777
|
-
let r =
|
|
1777
|
+
let r = gn(n, e), i = _n(t), a = i.filter((e) => r.some((t) => e instanceof RegExp ? e.test(t) : this.equals(t, String(e)))).length, o = a === r.length, s = a === i.length;
|
|
1778
1778
|
return {
|
|
1779
1779
|
pass: o && s,
|
|
1780
1780
|
message: () => B(this, this.utils.matcherHint(`${this.isNot ? ".not" : ""}.toHaveDisplayValue`, "element", ""), `Expected element ${this.isNot ? "not " : ""}to have display value`, t, "Received", r)
|
|
1781
1781
|
};
|
|
1782
1782
|
}
|
|
1783
|
-
function
|
|
1783
|
+
function gn(e, t) {
|
|
1784
1784
|
return e === "select" ? Array.from(t).filter((e) => e.selected).map((e) => e.textContent) : [t.value];
|
|
1785
1785
|
}
|
|
1786
|
-
function
|
|
1786
|
+
function _n(e) {
|
|
1787
1787
|
return e instanceof Array ? e : [e];
|
|
1788
1788
|
}
|
|
1789
|
-
function
|
|
1790
|
-
z(e,
|
|
1789
|
+
function vn(e) {
|
|
1790
|
+
z(e, vn, this);
|
|
1791
1791
|
let t = () => e.tagName.toLowerCase() === "input" && ["checkbox", "radio"].includes(e.type);
|
|
1792
|
-
if (!t() && !(
|
|
1792
|
+
if (!t() && !(xn(e.getAttribute("role")) && ["true", "false"].includes(e.getAttribute("aria-checked")))) return {
|
|
1793
1793
|
pass: !1,
|
|
1794
|
-
message: () => `only inputs with type="checkbox" or type="radio" or elements with ${
|
|
1794
|
+
message: () => `only inputs with type="checkbox" or type="radio" or elements with ${yn()} and a valid aria-checked attribute can be used with .toBeChecked(). Use .toHaveValue() instead`
|
|
1795
1795
|
};
|
|
1796
1796
|
let n = () => t() ? e.checked : e.getAttribute("aria-checked") === "true";
|
|
1797
1797
|
return {
|
|
@@ -1807,17 +1807,17 @@ function bn(e) {
|
|
|
1807
1807
|
}
|
|
1808
1808
|
};
|
|
1809
1809
|
}
|
|
1810
|
-
function
|
|
1811
|
-
return
|
|
1810
|
+
function yn() {
|
|
1811
|
+
return lt(bn().map((e) => `role="${e}"`), { lastWordConnector: " or " });
|
|
1812
1812
|
}
|
|
1813
|
-
function
|
|
1814
|
-
return R.roles.keys().filter(
|
|
1813
|
+
function bn() {
|
|
1814
|
+
return R.roles.keys().filter(xn);
|
|
1815
1815
|
}
|
|
1816
|
-
function
|
|
1816
|
+
function xn(e) {
|
|
1817
1817
|
return R.roles.get(e)?.props["aria-checked"] !== void 0;
|
|
1818
1818
|
}
|
|
1819
|
-
function
|
|
1820
|
-
z(e,
|
|
1819
|
+
function Sn(e) {
|
|
1820
|
+
z(e, Sn, this);
|
|
1821
1821
|
let t = () => e.tagName.toLowerCase() === "input" && e.type === "checkbox";
|
|
1822
1822
|
if (!t() && e.getAttribute("role") !== "checkbox") return {
|
|
1823
1823
|
pass: !1,
|
|
@@ -1840,8 +1840,8 @@ function wn(e) {
|
|
|
1840
1840
|
}
|
|
1841
1841
|
};
|
|
1842
1842
|
}
|
|
1843
|
-
function
|
|
1844
|
-
V("toHaveDescription", "Please use toHaveAccessibleDescription."), z(e,
|
|
1843
|
+
function Cn(e, t) {
|
|
1844
|
+
V("toHaveDescription", "Please use toHaveAccessibleDescription."), z(e, Cn, this);
|
|
1845
1845
|
let n = t !== void 0, r = (e.getAttribute("aria-describedby") || "").split(/\s+/).filter(Boolean), i = "";
|
|
1846
1846
|
if (r.length > 0) {
|
|
1847
1847
|
let t = e.ownerDocument;
|
|
@@ -1855,8 +1855,8 @@ function Tn(e, t) {
|
|
|
1855
1855
|
}
|
|
1856
1856
|
};
|
|
1857
1857
|
}
|
|
1858
|
-
function
|
|
1859
|
-
if (V("toHaveErrorMessage", "Please use toHaveAccessibleErrorMessage."), z(e,
|
|
1858
|
+
function wn(e, t) {
|
|
1859
|
+
if (V("toHaveErrorMessage", "Please use toHaveAccessibleErrorMessage."), z(e, wn, this), !e.hasAttribute("aria-invalid") || e.getAttribute("aria-invalid") === "false") {
|
|
1860
1860
|
let t = this.isNot ? ".not" : "";
|
|
1861
1861
|
return {
|
|
1862
1862
|
pass: !1,
|
|
@@ -1876,7 +1876,7 @@ function En(e, t) {
|
|
|
1876
1876
|
}
|
|
1877
1877
|
};
|
|
1878
1878
|
}
|
|
1879
|
-
function
|
|
1879
|
+
function Tn(e) {
|
|
1880
1880
|
let t = e.ownerDocument.getSelection();
|
|
1881
1881
|
if (["input", "textarea"].includes(e.tagName.toLowerCase())) return ["radio", "checkbox"].includes(e.type) ? "" : e.value.toString().substring(e.selectionStart, e.selectionEnd);
|
|
1882
1882
|
if (t.anchorNode === null || t.focusNode === null) return "";
|
|
@@ -1889,11 +1889,11 @@ function Dn(e) {
|
|
|
1889
1889
|
let i = t.toString();
|
|
1890
1890
|
return t.removeAllRanges(), t.addRange(n), i;
|
|
1891
1891
|
}
|
|
1892
|
-
function
|
|
1893
|
-
z(e,
|
|
1892
|
+
function En(e, t) {
|
|
1893
|
+
z(e, En, this);
|
|
1894
1894
|
let n = t !== void 0;
|
|
1895
1895
|
if (n && typeof t != "string") throw Error("expected selection must be a string or undefined");
|
|
1896
|
-
let r =
|
|
1896
|
+
let r = Tn(e);
|
|
1897
1897
|
return {
|
|
1898
1898
|
pass: n ? W(r, t) : !!r,
|
|
1899
1899
|
message: () => {
|
|
@@ -1902,8 +1902,8 @@ function Q(e, t) {
|
|
|
1902
1902
|
}
|
|
1903
1903
|
};
|
|
1904
1904
|
}
|
|
1905
|
-
function
|
|
1906
|
-
z(e,
|
|
1905
|
+
function Dn(e) {
|
|
1906
|
+
z(e, Dn, this);
|
|
1907
1907
|
let t = (e.getAttribute("role") || "").split(" ").map((e) => e.trim()), n = e.tagName.toLowerCase() === "button" || e.tagName.toLowerCase() === "input" && e.type === "button" || t.includes("button"), r = e.getAttribute("aria-pressed");
|
|
1908
1908
|
return !n || !(r === "true" || r === "false") ? {
|
|
1909
1909
|
pass: !1,
|
|
@@ -1916,8 +1916,8 @@ function On(e) {
|
|
|
1916
1916
|
}
|
|
1917
1917
|
};
|
|
1918
1918
|
}
|
|
1919
|
-
function
|
|
1920
|
-
z(e,
|
|
1919
|
+
function On(e) {
|
|
1920
|
+
z(e, On, this);
|
|
1921
1921
|
let t = (e.getAttribute("role") || "").split(" ").map((e) => e.trim()), n = e.tagName.toLowerCase() === "button" || e.tagName.toLowerCase() === "input" && e.type === "button" || t.includes("button"), r = e.getAttribute("aria-pressed");
|
|
1922
1922
|
return !n || !(r === "true" || r === "false" || r === "mixed") ? {
|
|
1923
1923
|
pass: !1,
|
|
@@ -1930,18 +1930,18 @@ function kn(e) {
|
|
|
1930
1930
|
}
|
|
1931
1931
|
};
|
|
1932
1932
|
}
|
|
1933
|
-
var
|
|
1934
|
-
[
|
|
1935
|
-
[
|
|
1936
|
-
[
|
|
1937
|
-
[
|
|
1938
|
-
[
|
|
1939
|
-
[
|
|
1933
|
+
var kn = 1, An = 2, jn = 4, Mn = 8, Nn = 16, Pn = 32, Fn = {
|
|
1934
|
+
[kn]: "Node.DOCUMENT_POSITION_DISCONNECTED",
|
|
1935
|
+
[An]: "Node.DOCUMENT_POSITION_PRECEDING",
|
|
1936
|
+
[jn]: "Node.DOCUMENT_POSITION_FOLLOWING",
|
|
1937
|
+
[Mn]: "Node.DOCUMENT_POSITION_CONTAINS",
|
|
1938
|
+
[Nn]: "Node.DOCUMENT_POSITION_CONTAINED_BY",
|
|
1939
|
+
[Pn]: "Node.DOCUMENT_POSITION_IMPLEMENTATION_SPECIFIC"
|
|
1940
1940
|
};
|
|
1941
|
-
function
|
|
1942
|
-
return e in
|
|
1941
|
+
function In(e) {
|
|
1942
|
+
return e in Fn ? `${Fn[e]} (${e})` : `Unknown document position (${e})`;
|
|
1943
1943
|
}
|
|
1944
|
-
function
|
|
1944
|
+
function Ln(e, t) {
|
|
1945
1945
|
return function(n, r) {
|
|
1946
1946
|
z(n, $, this), z(r, $, this);
|
|
1947
1947
|
let i = n.compareDocumentPosition(r);
|
|
@@ -1950,56 +1950,56 @@ function Rn(e, t) {
|
|
|
1950
1950
|
message: () => [
|
|
1951
1951
|
this.utils.matcherHint(`${this.isNot ? ".not" : ""}.${e}`, "element", "secondElement"),
|
|
1952
1952
|
"",
|
|
1953
|
-
`Received: ${
|
|
1953
|
+
`Received: ${In(i)}`
|
|
1954
1954
|
].join("\n")
|
|
1955
1955
|
};
|
|
1956
1956
|
};
|
|
1957
1957
|
}
|
|
1958
1958
|
function $(e, t) {
|
|
1959
|
-
return
|
|
1959
|
+
return Ln("toAppearBefore", jn).apply(this, [e, t]);
|
|
1960
1960
|
}
|
|
1961
|
-
function
|
|
1962
|
-
return
|
|
1961
|
+
function Rn(e, t) {
|
|
1962
|
+
return Ln("toAppearAfter", An).apply(this, [e, t]);
|
|
1963
1963
|
}
|
|
1964
|
-
var
|
|
1964
|
+
var zn = /* @__PURE__ */ Object.freeze({
|
|
1965
1965
|
__proto__: null,
|
|
1966
|
-
toAppearAfter:
|
|
1966
|
+
toAppearAfter: Rn,
|
|
1967
1967
|
toAppearBefore: $,
|
|
1968
|
-
toBeChecked:
|
|
1969
|
-
toBeDisabled:
|
|
1970
|
-
toBeEmpty:
|
|
1971
|
-
toBeEmptyDOMElement:
|
|
1972
|
-
toBeEnabled:
|
|
1968
|
+
toBeChecked: vn,
|
|
1969
|
+
toBeDisabled: Qt,
|
|
1970
|
+
toBeEmpty: dt,
|
|
1971
|
+
toBeEmptyDOMElement: ft,
|
|
1972
|
+
toBeEnabled: $t,
|
|
1973
1973
|
toBeInTheDOM: G,
|
|
1974
|
-
toBeInTheDocument:
|
|
1975
|
-
toBeInvalid:
|
|
1976
|
-
toBePartiallyChecked:
|
|
1977
|
-
toBePartiallyPressed:
|
|
1978
|
-
toBePressed:
|
|
1979
|
-
toBeRequired:
|
|
1980
|
-
toBeValid:
|
|
1981
|
-
toBeVisible:
|
|
1974
|
+
toBeInTheDocument: ut,
|
|
1975
|
+
toBeInvalid: pn,
|
|
1976
|
+
toBePartiallyChecked: Sn,
|
|
1977
|
+
toBePartiallyPressed: On,
|
|
1978
|
+
toBePressed: Dn,
|
|
1979
|
+
toBeRequired: cn,
|
|
1980
|
+
toBeValid: mn,
|
|
1981
|
+
toBeVisible: Ut,
|
|
1982
1982
|
toContainElement: K,
|
|
1983
|
-
toContainHTML:
|
|
1983
|
+
toContainHTML: ht,
|
|
1984
1984
|
toHaveAccessibleDescription: q,
|
|
1985
|
-
toHaveAccessibleErrorMessage:
|
|
1985
|
+
toHaveAccessibleErrorMessage: vt,
|
|
1986
1986
|
toHaveAccessibleName: X,
|
|
1987
|
-
toHaveAttribute:
|
|
1988
|
-
toHaveClass:
|
|
1989
|
-
toHaveDescription:
|
|
1990
|
-
toHaveDisplayValue:
|
|
1991
|
-
toHaveErrorMessage:
|
|
1992
|
-
toHaveFocus:
|
|
1993
|
-
toHaveFormValues:
|
|
1987
|
+
toHaveAttribute: Tt,
|
|
1988
|
+
toHaveClass: kt,
|
|
1989
|
+
toHaveDescription: Cn,
|
|
1990
|
+
toHaveDisplayValue: Q,
|
|
1991
|
+
toHaveErrorMessage: wn,
|
|
1992
|
+
toHaveFocus: Pt,
|
|
1993
|
+
toHaveFormValues: zt,
|
|
1994
1994
|
toHaveRole: Y,
|
|
1995
|
-
toHaveSelection:
|
|
1995
|
+
toHaveSelection: En,
|
|
1996
1996
|
toHaveStyle: Z,
|
|
1997
|
-
toHaveTextContent:
|
|
1998
|
-
toHaveValue:
|
|
1997
|
+
toHaveTextContent: gt,
|
|
1998
|
+
toHaveValue: hn
|
|
1999
1999
|
});
|
|
2000
2000
|
//#endregion
|
|
2001
2001
|
//#region node_modules/@testing-library/jest-dom/dist/index.mjs
|
|
2002
|
-
expect.extend(
|
|
2002
|
+
expect.extend(zn);
|
|
2003
2003
|
//#endregion
|
|
2004
2004
|
|
|
2005
|
-
//# sourceMappingURL=dist-
|
|
2005
|
+
//# sourceMappingURL=dist-2TKCXdYZ.js.map
|