@uva-glass/component-library 3.55.4 → 3.55.5
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/{Accordion-BpnBHYIx.js → Accordion-DvblEUVu.js} +16 -17
- package/dist/{Accordion-BpnBHYIx.js.map → Accordion-DvblEUVu.js.map} +1 -1
- package/dist/{AddCatalogueLinkForm-Cy6fPNvN.js → AddCatalogueLinkForm-rph4K9P0.js} +24 -25
- package/dist/{AddCatalogueLinkForm-Cy6fPNvN.js.map → AddCatalogueLinkForm-rph4K9P0.js.map} +1 -1
- package/dist/{CheckboxButtonBar-CalU0IYK.js → CheckboxButtonBar-5UMIFMKH.js} +2 -2
- package/dist/{CheckboxButtonBar-CalU0IYK.js.map → CheckboxButtonBar-5UMIFMKH.js.map} +1 -1
- package/dist/{ControlsButton-zemVxTlg.js → ControlsButton-B1XRpMUM.js} +15 -16
- package/dist/{ControlsButton-zemVxTlg.js.map → ControlsButton-B1XRpMUM.js.map} +1 -1
- package/dist/{Drawer-Ggofac6y.js → Drawer-e7UFHVg9.js} +29 -30
- package/dist/{Drawer-Ggofac6y.js.map → Drawer-e7UFHVg9.js.map} +1 -1
- package/dist/{FieldHint-D0HtbTnt.js → FieldHint-fxnEOsVZ.js} +2 -2
- package/dist/{FieldHint-D0HtbTnt.js.map → FieldHint-fxnEOsVZ.js.map} +1 -1
- package/dist/Fieldset-0LFsZ3Mz.js +22 -0
- package/dist/{Fieldset-CoNu_Owa.js.map → Fieldset-0LFsZ3Mz.js.map} +1 -1
- package/dist/{Lexical.prod-DIglXatJ.js → Lexical.prod-sbwgNRjw.js} +575 -568
- package/dist/Lexical.prod-sbwgNRjw.js.map +1 -0
- package/dist/{LexicalClipboard.prod-Bnzu0sh_.js → LexicalClipboard.prod-DdImsyd1.js} +82 -82
- package/dist/{LexicalClipboard.prod-Bnzu0sh_.js.map → LexicalClipboard.prod-DdImsyd1.js.map} +1 -1
- package/dist/{LexicalExtension.prod-COPHoPpX.js → LexicalExtension.prod-jTSDl1mh.js} +208 -198
- package/dist/LexicalExtension.prod-jTSDl1mh.js.map +1 -0
- package/dist/{LexicalLink.prod-Bf9JUdMv.js → LexicalLink.prod-BKLNLyu8.js} +155 -149
- package/dist/LexicalLink.prod-BKLNLyu8.js.map +1 -0
- package/dist/{LexicalList.prod-DRz8vsM9.js → LexicalList.prod-DEtc4lSr.js} +222 -222
- package/dist/{LexicalList.prod-DRz8vsM9.js.map → LexicalList.prod-DEtc4lSr.js.map} +1 -1
- package/dist/{LexicalTable.prod-D16GW-aZ.js → LexicalTable.prod-CpIPDW6z.js} +436 -428
- package/dist/LexicalTable.prod-CpIPDW6z.js.map +1 -0
- package/dist/LexicalUtils.prod-DjjGkphN.js +360 -0
- package/dist/LexicalUtils.prod-DjjGkphN.js.map +1 -0
- package/dist/{LinkContextMenu-m_CGQEiX.js → LinkContextMenu-CTkNPiIW.js} +2 -2
- package/dist/{LinkContextMenu-m_CGQEiX.js.map → LinkContextMenu-CTkNPiIW.js.map} +1 -1
- package/dist/{ModalDialog-HUkDdAJ-.js → ModalDialog-N50NGnd4.js} +2 -2
- package/dist/{ModalDialog-HUkDdAJ-.js.map → ModalDialog-N50NGnd4.js.map} +1 -1
- package/dist/{PageOverlay-D_wG2oie.js → PageOverlay-S4xsqJha.js} +2 -2
- package/dist/{PageOverlay-D_wG2oie.js.map → PageOverlay-S4xsqJha.js.map} +1 -1
- package/dist/{PasteHandlerPlugin-DjD1wryY.js → PasteHandlerPlugin-YpQruA-w.js} +4 -4
- package/dist/{PasteHandlerPlugin-DjD1wryY.js.map → PasteHandlerPlugin-YpQruA-w.js.map} +1 -1
- package/dist/{RteEditor.module-Jk80F1FA.js → RteEditor.module-BJLUYSpf.js} +9 -10
- package/dist/{RteEditor.module-Jk80F1FA.js.map → RteEditor.module-BJLUYSpf.js.map} +1 -1
- package/dist/{Sortable.module-BTUOSbOU.js → Sortable.module-8SoaHfuE.js} +6 -7
- package/dist/{Sortable.module-BTUOSbOU.js.map → Sortable.module-8SoaHfuE.js.map} +1 -1
- package/dist/{SortableProvider-Dc7hwkb5.js → SortableProvider-8HYiBXJS.js} +2 -2
- package/dist/{SortableProvider-Dc7hwkb5.js.map → SortableProvider-8HYiBXJS.js.map} +1 -1
- package/dist/Spinner-BpElTDIu.js +30 -0
- package/dist/{Spinner-D8tWqg9j.js.map → Spinner-BpElTDIu.js.map} +1 -1
- package/dist/{TableCellResizerPlugin-CgYsYsuY.js → TableCellResizerPlugin-Ceof6StD.js} +17 -17
- package/dist/{TableCellResizerPlugin-CgYsYsuY.js.map → TableCellResizerPlugin-Ceof6StD.js.map} +1 -1
- package/dist/{TextArea-DqKIpOfT.js → TextArea-CuASC9bX.js} +16 -17
- package/dist/{TextArea-DqKIpOfT.js.map → TextArea-CuASC9bX.js.map} +1 -1
- package/dist/{Tooltip-BzB3jznk.js → Tooltip-D27p9kh4.js} +13 -14
- package/dist/{Tooltip-BzB3jznk.js.map → Tooltip-D27p9kh4.js.map} +1 -1
- package/dist/{chunk-SZQXB3JV-D0XG4Tlp.js → chunk-SZQXB3JV-KiB8lSa9.js} +5 -5
- package/dist/{chunk-SZQXB3JV-D0XG4Tlp.js.map → chunk-SZQXB3JV-KiB8lSa9.js.map} +1 -1
- package/dist/{client-UU-mS47K.js → client-CHQ7u_QI.js} +9 -9
- package/dist/{client-UU-mS47K.js.map → client-CHQ7u_QI.js.map} +1 -1
- package/dist/components/Accordion/Accordion.js +1 -1
- package/dist/components/Accordion/Accordion.stories.js +1 -1
- package/dist/components/Accordion/Accordion.test.js +4 -7
- package/dist/components/Accordion/Accordion.test.js.map +1 -1
- package/dist/components/Accordion/index.js +1 -1
- package/dist/components/AccordionCard/AccordionCard.test.js +3 -6
- package/dist/components/AccordionCard/AccordionCard.test.js.map +1 -1
- package/dist/components/ActionList/ActionList.test.js +3 -6
- package/dist/components/ActionList/ActionList.test.js.map +1 -1
- package/dist/components/AppStatusBar/AppStatusBar.test.js +2 -5
- package/dist/components/AppStatusBar/AppStatusBar.test.js.map +1 -1
- package/dist/components/Attention/Attention.test.js +2 -5
- package/dist/components/Attention/Attention.test.js.map +1 -1
- package/dist/components/Backdrop/Backdrop.test.js +2 -5
- package/dist/components/Backdrop/Backdrop.test.js.map +1 -1
- package/dist/components/Buttons/Button.stories.js +1 -1
- package/dist/components/Buttons/Button.test.js +2 -5
- package/dist/components/Buttons/Button.test.js.map +1 -1
- package/dist/components/Buttons/LinkButton.stories.js +1 -1
- package/dist/components/Buttons/LinkButton.test.js +2 -5
- package/dist/components/Buttons/LinkButton.test.js.map +1 -1
- package/dist/components/Buttons/MenuButton.stories.js +1 -1
- package/dist/components/Buttons/MenuButton.test.js +2 -5
- package/dist/components/Buttons/MenuButton.test.js.map +1 -1
- package/dist/components/Card/Card.test.js +2 -5
- package/dist/components/Card/Card.test.js.map +1 -1
- package/dist/components/Checkbox/Checkbox.stories.js +1 -1
- package/dist/components/Checkbox/Checkbox.test.js +3 -6
- package/dist/components/Checkbox/Checkbox.test.js.map +1 -1
- package/dist/components/CheckboxButtonBar/CheckboxButtonBar.js +1 -1
- package/dist/components/CheckboxButtonBar/CheckboxButtonBar.stories.js +2 -2
- package/dist/components/CheckboxButtonBar/CheckboxButtonBar.test.js +3 -6
- package/dist/components/CheckboxButtonBar/CheckboxButtonBar.test.js.map +1 -1
- package/dist/components/CheckboxButtonBar/index.js +1 -1
- package/dist/components/CheckboxTree/CheckboxTree.js +1 -2
- package/dist/components/CheckboxTree/CheckboxTree.stories.js +3 -4
- package/dist/components/CheckboxTree/CheckboxTree.stories.js.map +1 -1
- package/dist/components/CheckboxTree/index.js +1 -2
- package/dist/components/Chip/Chip.stories.js +1 -1
- package/dist/components/ControlsButton/ControlsButton.js +1 -1
- package/dist/components/ControlsButton/ControlsButton.stories.js +2 -2
- package/dist/components/ControlsButton/index.js +1 -1
- package/dist/components/Drawer/Drawer.js +1 -1
- package/dist/components/Drawer/Drawer.stories.js +2 -2
- package/dist/components/Drawer/index.js +1 -1
- package/dist/components/FeedbackBar/FeedbackBar.test.js +2 -5
- package/dist/components/FeedbackBar/FeedbackBar.test.js.map +1 -1
- package/dist/components/FieldHint/FieldHint.js +1 -1
- package/dist/components/FieldHint/FieldHint.stories.js +1 -1
- package/dist/components/FieldHint/index.js +1 -1
- package/dist/components/Fieldset/Fieldset.js +1 -1
- package/dist/components/Fieldset/Fieldset.stories.js +1 -1
- package/dist/components/Fieldset/index.js +1 -1
- package/dist/components/FormInput/FormInput.js +1 -2
- package/dist/components/FormInput/FormInput.stories.js +2 -3
- package/dist/components/FormInput/FormInput.stories.js.map +1 -1
- package/dist/components/FormInput/index.js +1 -2
- package/dist/components/IconButton/IconButton.stories.js +6 -7
- package/dist/components/IconButton/IconButton.stories.js.map +1 -1
- package/dist/components/InputField/InputField.stories.js +1 -3
- package/dist/components/InputField/InputField.stories.js.map +1 -1
- package/dist/components/Label/Label.test.js +2 -5
- package/dist/components/Label/Label.test.js.map +1 -1
- package/dist/components/MetaDataBar/MetaDataBar.test.js +1 -4
- package/dist/components/MetaDataBar/MetaDataBar.test.js.map +1 -1
- package/dist/components/ModalDialog/ModalDialog.js +1 -1
- package/dist/components/ModalDialog/ModalDialog.stories.js +2 -2
- package/dist/components/ModalDialog/index.js +1 -1
- package/dist/components/MultiSelect/MultiSelect.js +1 -2
- package/dist/components/MultiSelect/MultiSelect.stories.js +2 -3
- package/dist/components/MultiSelect/MultiSelect.stories.js.map +1 -1
- package/dist/components/MultiSelect/components/MultiSelectHeader.js +1 -2
- package/dist/components/MultiSelect/index.js +1 -2
- package/dist/components/MultiSelectBox/MultiSelectBox.stories.js +1 -1
- package/dist/components/MultiSelectBox/MultiSelectBox.test.js +2 -5
- package/dist/components/MultiSelectBox/MultiSelectBox.test.js.map +1 -1
- package/dist/components/Notification/Notification.stories.js +1 -1
- package/dist/components/Notification/Notification.test.js +2 -5
- package/dist/components/Notification/Notification.test.js.map +1 -1
- package/dist/components/OverlayCloseButton/OverlayCloseButton.stories.js +6 -7
- package/dist/components/OverlayCloseButton/OverlayCloseButton.stories.js.map +1 -1
- package/dist/components/PageOverlay/PageOverlay.js +1 -1
- package/dist/components/PageOverlay/PageOverlay.stories.js +1 -1
- package/dist/components/PageOverlay/index.js +1 -1
- package/dist/components/PeriodSelector/PeriodSelector.js +1 -2
- package/dist/components/PeriodSelector/PeriodSelector.stories.js +2 -3
- package/dist/components/PeriodSelector/PeriodSelector.stories.js.map +1 -1
- package/dist/components/PeriodSelector/index.js +1 -2
- package/dist/components/ProgrammeCard/ProgrammeCard.stories.js +0 -2
- package/dist/components/ProgrammeCard/ProgrammeCard.stories.js.map +1 -1
- package/dist/components/RadioGroup/RadioGroup.stories.js +1 -1
- package/dist/components/RadioGroup/Radiogroup.test.js +2 -5
- package/dist/components/RadioGroup/Radiogroup.test.js.map +1 -1
- package/dist/components/RadioTabSelector/RadioTabSelector.js +1 -2
- package/dist/components/RadioTabSelector/RadioTabSelector.stories.js +2 -3
- package/dist/components/RadioTabSelector/RadioTabSelector.stories.js.map +1 -1
- package/dist/components/RadioTabSelector/index.js +1 -2
- package/dist/components/RteEditor/EditorHeader/EditorHeader.js +1 -2
- package/dist/components/RteEditor/EditorHeader/index.js +1 -2
- package/dist/components/RteEditor/Plugins/BlockFormatPlugin/BlockFormatPlugin.js +2 -2
- package/dist/components/RteEditor/Plugins/CourseCataloguePlugin/AddCatalogueLinkForm/AddCatalogueLinkForm.js +1 -1
- package/dist/components/RteEditor/Plugins/CourseCataloguePlugin/AddCatalogueLinkForm/index.js +1 -1
- package/dist/components/RteEditor/Plugins/CourseCataloguePlugin/CourseCataloguePlugin.js +30 -30
- package/dist/components/RteEditor/Plugins/HistoryPlugin/HistoryPlugin.js +1 -2
- package/dist/components/RteEditor/Plugins/HistoryPlugin/index.js +1 -2
- package/dist/components/RteEditor/Plugins/LinkPlugin/AddLinkForm/AddLinkFrom.js +1 -2
- package/dist/components/RteEditor/Plugins/LinkPlugin/LinkContextMenu/LinkContextMenu.js +1 -1
- package/dist/components/RteEditor/Plugins/LinkPlugin/LinkPlugin.js +1 -2
- package/dist/components/RteEditor/Plugins/LinkPlugin/helpers.js +1 -1
- package/dist/components/RteEditor/Plugins/LinkPlugin/index.js +1 -2
- package/dist/components/RteEditor/Plugins/ListPlugin/ListPlugin.js +6 -6
- 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 +1 -2
- package/dist/components/RteEditor/Plugins/TablePlugin/TablePlugin.js +1 -2
- package/dist/components/RteEditor/Plugins/TablePlugin/helpers.js +16 -16
- package/dist/components/RteEditor/Plugins/TablePlugin/index.js +1 -2
- package/dist/components/RteEditor/Plugins/ToolbarPlugin/ToolbarPlugin.js +1 -2
- package/dist/components/RteEditor/Plugins/ToolbarPlugin/index.js +1 -2
- package/dist/components/RteEditor/Plugins/index.js +3 -3
- package/dist/components/RteEditor/RteEditor.js +1 -2
- package/dist/components/RteEditor/RteEditor.stories.js +1 -2
- package/dist/components/RteEditor/RteEditor.stories.js.map +1 -1
- package/dist/components/RteEditor/UvaTheme/UvaTheme.js +1 -1
- package/dist/components/RteEditor/helpers.js +5 -5
- package/dist/components/RteEditor/index.js +1 -2
- package/dist/components/RteEditor/nodes/CourseCatalogueNode/CourseCatalogueNode.js +14 -14
- package/dist/components/RteEditor/nodes/TableWrapperNode/TableWrapperNode.js +19 -19
- package/dist/components/SelectListbox/SelectListBox.stories.js +1 -1
- package/dist/components/Sortable/Sortable.js +1 -1
- package/dist/components/Sortable/Sortable.stories.js +1 -1
- package/dist/components/Sortable/SortableProvider.js +1 -1
- package/dist/components/Sortable/components/SortableContainer.js +1 -1
- package/dist/components/Sortable/components/SortableHandle.js +1 -1
- package/dist/components/Sortable/components/SortableItem.js +2 -2
- package/dist/components/Spinner/Spinner.js +1 -1
- package/dist/components/Spinner/Spinner.stories.js +1 -1
- package/dist/components/Spinner/index.js +1 -1
- package/dist/components/StatusBadge/StatusBadge.test.js +2 -5
- package/dist/components/StatusBadge/StatusBadge.test.js.map +1 -1
- package/dist/components/TextArea/TextArea.js +1 -1
- package/dist/components/TextArea/TextArea.stories.js +2 -2
- package/dist/components/TextArea/TextArea.test.js +4 -7
- package/dist/components/TextArea/TextArea.test.js.map +1 -1
- package/dist/components/TextArea/index.js +1 -1
- package/dist/components/ToggleSwitch/ToggleSwitch.stories.js +1 -1
- package/dist/components/Tooltip/Tooltip.js +1 -1
- package/dist/components/Tooltip/Tooltip.stories.js +1 -1
- package/dist/components/Tooltip/index.js +1 -1
- package/dist/components/VarIndicator/VarIndicator.stories.js +1 -1
- package/dist/components/VarIndicator/VarIndicator.test.js +3 -6
- package/dist/components/VarIndicator/VarIndicator.test.js.map +1 -1
- package/dist/components/index.js +12 -13
- package/dist/{components-MNvdQLv1.js → components-DAwjkky5.js} +436 -436
- package/dist/components-DAwjkky5.js.map +1 -0
- package/dist/{dist-2TKCXdYZ.js → dist-BIkFjHck.js} +181 -181
- package/dist/{dist-2TKCXdYZ.js.map → dist-BIkFjHck.js.map} +1 -1
- package/dist/{esm-UNe_gmRA.js → esm-ipAmzhQq.js} +4 -4
- package/dist/{esm-UNe_gmRA.js.map → esm-ipAmzhQq.js.map} +1 -1
- package/dist/{helpers-BBSxTGRl.js → helpers-MNJmfDe_.js} +7 -7
- package/dist/{helpers-BBSxTGRl.js.map → helpers-MNJmfDe_.js.map} +1 -1
- package/dist/index.js +12 -13
- package/dist/{react-18-CRbkdI-3.js → react-18-Dwpebadr.js} +2 -2
- package/dist/{react-18-CRbkdI-3.js.map → react-18-Dwpebadr.js.map} +1 -1
- package/dist/{react.esm-CzIhAqlo.js → react.esm-R7eBXTUI.js} +587 -587
- package/dist/{react.esm-CzIhAqlo.js.map → react.esm-R7eBXTUI.js.map} +1 -1
- package/dist/setupTests.js +1 -2
- package/dist/setupTests.js.map +1 -1
- package/dist/storybook__react.d.js +97 -97
- package/dist/storybook__react.d.js.map +1 -1
- package/dist/{test-DQruvi8i.js → test-Cr_l59hN.js} +12 -10
- package/dist/{test-DQruvi8i.js.map → test-Cr_l59hN.js.map} +1 -1
- package/package.json +27 -27
- package/dist/Fieldset-CoNu_Owa.js +0 -23
- package/dist/Lexical.prod-DIglXatJ.js.map +0 -1
- package/dist/LexicalExtension.prod-COPHoPpX.js.map +0 -1
- package/dist/LexicalLink.prod-Bf9JUdMv.js.map +0 -1
- package/dist/LexicalTable.prod-D16GW-aZ.js.map +0 -1
- package/dist/LexicalUtils.prod-BBTLliac.js +0 -360
- package/dist/LexicalUtils.prod-BBTLliac.js.map +0 -1
- package/dist/Spinner-D8tWqg9j.js +0 -31
- package/dist/components-MNvdQLv1.js.map +0 -1
- /package/dist/assets/favicon/{android-chrome-192x192.png → src/assets/favicon/android-chrome-192x192.png} +0 -0
- /package/dist/assets/favicon/{android-chrome-512x512.png → src/assets/favicon/android-chrome-512x512.png} +0 -0
- /package/dist/assets/favicon/{apple-touch-icon.png → src/assets/favicon/apple-touch-icon.png} +0 -0
- /package/dist/assets/favicon/{favicon-16x16.png → src/assets/favicon/favicon-16x16.png} +0 -0
- /package/dist/assets/favicon/{favicon-32x32.png → src/assets/favicon/favicon-32x32.png} +0 -0
- /package/dist/assets/favicon/{favicon.ico → src/assets/favicon/favicon.ico} +0 -0
- /package/dist/assets/favicon/{favicon.svg → src/assets/favicon/favicon.svg} +0 -0
- /package/dist/assets/favicon/{site.webmanifest → src/assets/favicon/site.webmanifest} +0 -0
- /package/dist/assets/fonts/{SourceSans3-Regular.otf.woff → src/assets/fonts/SourceSans3-Regular.otf.woff} +0 -0
- /package/dist/assets/fonts/{SourceSans3-Regular.otf.woff2 → src/assets/fonts/SourceSans3-Regular.otf.woff2} +0 -0
- /package/dist/assets/fonts/{SourceSans3-Semibold.otf.woff → src/assets/fonts/SourceSans3-Semibold.otf.woff} +0 -0
- /package/dist/assets/fonts/{SourceSans3-Semibold.otf.woff2 → src/assets/fonts/SourceSans3-Semibold.otf.woff2} +0 -0
- /package/dist/assets/{fonts.css → src/css/fonts.css} +0 -0
- /package/dist/assets/{globals.css → src/css/globals.css} +0 -0
- /package/dist/assets/{variables.css → src/css/variables.css} +0 -0
|
@@ -27,10 +27,10 @@ var r = /* @__PURE__ */ t(((e, t) => {
|
|
|
27
27
|
let r = n.includeEmptyLines ? /^/gm : /^(?!\s*$)/gm;
|
|
28
28
|
return e.replace(r, n.indent.repeat(t));
|
|
29
29
|
};
|
|
30
|
-
})), o = /* @__PURE__ */ t(((e, t) => {
|
|
30
|
+
})), o = /* @__PURE__ */ e((/* @__PURE__ */ t(((e, t) => {
|
|
31
31
|
var n = i(), r = a();
|
|
32
32
|
t.exports = (e, t = 0, i) => r(n(e), t, i);
|
|
33
|
-
})), s = class extends Error {
|
|
33
|
+
})))(), 1), s = class extends Error {
|
|
34
34
|
reason;
|
|
35
35
|
filename;
|
|
36
36
|
line;
|
|
@@ -1137,7 +1137,7 @@ var We = /* @__PURE__ */ t(((e, t) => {
|
|
|
1137
1137
|
};
|
|
1138
1138
|
return e.CSS ||= {}, e.CSS.escape = t, t;
|
|
1139
1139
|
});
|
|
1140
|
-
})),
|
|
1140
|
+
})), R = n(), Ke = /* @__PURE__ */ e(We(), 1), qe = /* @__PURE__ */ e(Ge(), 1), Je = 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 We = /* @__PURE__ */ t(((e, t) => {
|
|
|
1152
1152
|
i
|
|
1153
1153
|
].join("\n");
|
|
1154
1154
|
}
|
|
1155
|
-
},
|
|
1155
|
+
}, Ye = class extends Je {
|
|
1156
1156
|
constructor(...e) {
|
|
1157
1157
|
super("be an HTMLElement or an SVGElement", ...e);
|
|
1158
1158
|
}
|
|
1159
|
-
},
|
|
1159
|
+
}, Xe = class extends Je {
|
|
1160
1160
|
constructor(...e) {
|
|
1161
1161
|
super("be a Node", ...e);
|
|
1162
1162
|
}
|
|
1163
1163
|
};
|
|
1164
|
-
function
|
|
1164
|
+
function Ze(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 Qe(e, ...t) {
|
|
1168
|
+
if (Ze(e, Xe, ...t), !(e instanceof e.ownerDocument.defaultView.Node)) throw new Xe(e, ...t);
|
|
1169
1169
|
}
|
|
1170
1170
|
function z(e, ...t) {
|
|
1171
|
-
|
|
1171
|
+
Ze(e, Ye, ...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 Ye(e, ...t);
|
|
1174
1174
|
}
|
|
1175
|
-
var
|
|
1175
|
+
var $e = 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 et = class extends Error {
|
|
|
1182
1182
|
].join("\n");
|
|
1183
1183
|
}
|
|
1184
1184
|
};
|
|
1185
|
-
function
|
|
1185
|
+
function et(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 $e({
|
|
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 tt(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, o.default)(tt(e, r), 2))}`,
|
|
1203
|
+
`${i}:\n${e.utils.RECEIVED_COLOR((0, o.default)(tt(e, a), 2))}`
|
|
1204
1204
|
].join("\n");
|
|
1205
1205
|
}
|
|
1206
|
-
function
|
|
1206
|
+
function nt(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 rt({ 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 it(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 at = [
|
|
1231
1231
|
"meter",
|
|
1232
1232
|
"progressbar",
|
|
1233
1233
|
"slider",
|
|
1234
1234
|
"spinbutton"
|
|
1235
1235
|
];
|
|
1236
|
-
function
|
|
1237
|
-
if (
|
|
1236
|
+
function ot(e) {
|
|
1237
|
+
if (at.includes(e.getAttribute("role"))) return Number(e.getAttribute("aria-valuenow"));
|
|
1238
1238
|
}
|
|
1239
|
-
function
|
|
1239
|
+
function st(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 it(e);
|
|
1242
|
+
case "select": return rt(e);
|
|
1243
|
+
default: return e.value ?? ot(e);
|
|
1244
1244
|
}
|
|
1245
1245
|
}
|
|
1246
|
-
function
|
|
1246
|
+
function ct(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 lt(e) {
|
|
1264
|
+
(e !== null || !this.isNot) && z(e, lt, 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 ut(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 ut(e) {
|
|
1276
|
+
return V("toBeEmpty", "Please use instead toBeEmptyDOMElement for finding empty nodes in the DOM."), z(e, ut, this), {
|
|
1277
1277
|
pass: e.innerHTML === "",
|
|
1278
1278
|
message: () => [
|
|
1279
1279
|
this.utils.matcherHint(`${this.isNot ? ".not" : ""}.toBeEmpty`, "element", ""),
|
|
@@ -1283,9 +1283,9 @@ function dt(e) {
|
|
|
1283
1283
|
].join("\n")
|
|
1284
1284
|
};
|
|
1285
1285
|
}
|
|
1286
|
-
function
|
|
1287
|
-
return z(e,
|
|
1288
|
-
pass:
|
|
1286
|
+
function dt(e) {
|
|
1287
|
+
return z(e, dt, this), {
|
|
1288
|
+
pass: ft(e),
|
|
1289
1289
|
message: () => [
|
|
1290
1290
|
this.utils.matcherHint(`${this.isNot ? ".not" : ""}.toBeEmptyDOMElement`, "element", ""),
|
|
1291
1291
|
"",
|
|
@@ -1294,7 +1294,7 @@ function ft(e) {
|
|
|
1294
1294
|
].join("\n")
|
|
1295
1295
|
};
|
|
1296
1296
|
}
|
|
1297
|
-
function
|
|
1297
|
+
function ft(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 pt(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 mt(e, t) {
|
|
1316
|
+
if (z(e, mt, 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(pt(e, t)),
|
|
1319
1319
|
message: () => [
|
|
1320
1320
|
this.utils.matcherHint(`${this.isNot ? ".not" : ""}.toContainHTML`, "element", ""),
|
|
1321
1321
|
"Expected:",
|
|
@@ -1325,11 +1325,11 @@ function ht(e, t) {
|
|
|
1325
1325
|
].join("\n")
|
|
1326
1326
|
};
|
|
1327
1327
|
}
|
|
1328
|
-
function
|
|
1329
|
-
|
|
1328
|
+
function ht(e, t, n = { normalizeWhitespace: !0 }) {
|
|
1329
|
+
Qe(e, ht, 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 && nt(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);
|
|
@@ -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", gt = ["false"];
|
|
1351
|
+
function _t(e, t) {
|
|
1352
|
+
z(e, _t, 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) || gt.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 vt(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 vt = xt(R.elementRoles);
|
|
1370
1370
|
function Y(e, t) {
|
|
1371
1371
|
z(e, Y, this);
|
|
1372
|
-
let n =
|
|
1372
|
+
let n = yt(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 yt(e) {
|
|
1382
|
+
return e.hasAttribute("role") ? e.getAttribute("role").split(" ").filter(Boolean) : bt(e);
|
|
1383
1383
|
}
|
|
1384
|
-
function
|
|
1385
|
-
for (let { match: t, roles: n } of
|
|
1384
|
+
function bt(e) {
|
|
1385
|
+
for (let { match: t, roles: n } of vt) if (t(e)) return [...n];
|
|
1386
1386
|
/* istanbul ignore next */
|
|
1387
1387
|
return [];
|
|
1388
1388
|
}
|
|
1389
|
-
function
|
|
1389
|
+
function xt(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
|
}
|
|
@@ -1424,51 +1424,51 @@ function X(e, t) {
|
|
|
1424
1424
|
}
|
|
1425
1425
|
};
|
|
1426
1426
|
}
|
|
1427
|
-
function
|
|
1427
|
+
function St(e, t, n) {
|
|
1428
1428
|
return n === void 0 ? t : `${t}=${e(n)}`;
|
|
1429
1429
|
}
|
|
1430
|
-
function
|
|
1430
|
+
function Ct(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 wt(e, t, n) {
|
|
1434
|
+
z(e, wt, 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 ? St(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: Ct(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`, St(this.utils.stringify, t, n), "Received", o);
|
|
1444
1444
|
}
|
|
1445
1445
|
};
|
|
1446
1446
|
}
|
|
1447
|
-
function
|
|
1447
|
+
function Tt(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 Et(e) {
|
|
1455
1455
|
return e ? e.split(/\s+/).filter((e) => e.length > 0) : [];
|
|
1456
1456
|
}
|
|
1457
|
-
function
|
|
1457
|
+
function Dt(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 Ot(e, ...t) {
|
|
1461
|
+
z(e, Ot, this);
|
|
1462
|
+
let { expectedClassNames: n, options: r } = Tt(t), i = Et(e.getAttribute("class")), a = n.reduce((e, t) => e.concat(typeof t == "string" || !t ? Et(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: Dt(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: Dt(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 kt(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 kt(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 At(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 jt(e) {
|
|
1494
1494
|
return Object.keys(e).sort().map((t) => `${t}: ${e[t]};`).join("\n");
|
|
1495
1495
|
}
|
|
1496
|
-
function
|
|
1496
|
+
function Mt(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(jt(t), jt(r)).replace(`${Ke.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 : et(t, Z, this), { getComputedStyle: r } = e.ownerDocument.defaultView, i = kt(e.ownerDocument, n), a = r(e);
|
|
1503
1503
|
return {
|
|
1504
|
-
pass:
|
|
1504
|
+
pass: At(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", ""), Mt(this.utils.diff, i, a)].join("\n\n");
|
|
1508
1508
|
}
|
|
1509
1509
|
};
|
|
1510
1510
|
}
|
|
1511
|
-
function
|
|
1512
|
-
return z(e,
|
|
1511
|
+
function Nt(e) {
|
|
1512
|
+
return z(e, Nt, 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 Pt(e) {
|
|
|
1523
1523
|
].join("\n")
|
|
1524
1524
|
};
|
|
1525
1525
|
}
|
|
1526
|
-
function
|
|
1526
|
+
function Pt(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 Ft(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 Ft(e, t) {
|
|
1539
|
+
let n = [...e.querySelectorAll(`[name="${(0, qe.default)(t)}"]`)];
|
|
1540
1540
|
if (n.length !== 0) switch (n.length) {
|
|
1541
|
-
case 1: return
|
|
1542
|
-
default: return
|
|
1541
|
+
case 1: return st(n[0]);
|
|
1542
|
+
default: return Pt(n);
|
|
1543
1543
|
}
|
|
1544
1544
|
}
|
|
1545
|
-
function
|
|
1545
|
+
function It(e) {
|
|
1546
1546
|
return /\[\]$/.test(e) ? e.slice(0, -2) : e;
|
|
1547
1547
|
}
|
|
1548
|
-
function
|
|
1548
|
+
function Lt(e) {
|
|
1549
1549
|
return Array.from(e.elements).map((e) => e.name).reduce((t, n) => ({
|
|
1550
1550
|
...t,
|
|
1551
|
-
[
|
|
1551
|
+
[It(n)]: Ft(e, n)
|
|
1552
1552
|
}), {});
|
|
1553
1553
|
}
|
|
1554
|
-
function
|
|
1555
|
-
if (z(e,
|
|
1556
|
-
let n =
|
|
1554
|
+
function Rt(e, t) {
|
|
1555
|
+
if (z(e, Rt, this), !e.elements) throw Error("toHaveFormValues must be called on a form or a fieldset");
|
|
1556
|
+
let n = Lt(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 zt(e, t) {
|
|
|
1569
1569
|
}
|
|
1570
1570
|
};
|
|
1571
1571
|
}
|
|
1572
|
-
function
|
|
1572
|
+
function zt(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 Bt(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 Vt(e, t) {
|
|
1581
|
+
return zt(e) && Bt(e, t) && (!e.parentElement || Vt(e.parentElement, e));
|
|
1582
1582
|
}
|
|
1583
|
-
function
|
|
1584
|
-
z(e,
|
|
1585
|
-
let t = e.ownerDocument === e.getRootNode({ composed: !0 }), n = t &&
|
|
1583
|
+
function Ht(e) {
|
|
1584
|
+
z(e, Ht, this);
|
|
1585
|
+
let t = e.ownerDocument === e.getRootNode({ composed: !0 }), n = t && Vt(e);
|
|
1586
1586
|
return {
|
|
1587
1587
|
pass: n,
|
|
1588
1588
|
message: () => {
|
|
@@ -1596,7 +1596,7 @@ function Ut(e) {
|
|
|
1596
1596
|
}
|
|
1597
1597
|
};
|
|
1598
1598
|
}
|
|
1599
|
-
var
|
|
1599
|
+
var Ut = [
|
|
1600
1600
|
"fieldset",
|
|
1601
1601
|
"input",
|
|
1602
1602
|
"select",
|
|
@@ -1605,32 +1605,32 @@ var Wt = [
|
|
|
1605
1605
|
"button",
|
|
1606
1606
|
"textarea"
|
|
1607
1607
|
];
|
|
1608
|
-
function
|
|
1608
|
+
function Wt(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 Gt(e, t) {
|
|
1612
|
+
return Jt(t) && !Wt(e, t);
|
|
1613
1613
|
}
|
|
1614
|
-
function
|
|
1614
|
+
function Kt(e) {
|
|
1615
1615
|
return e.includes("-");
|
|
1616
1616
|
}
|
|
1617
|
-
function
|
|
1617
|
+
function qt(e) {
|
|
1618
1618
|
let t = U(e);
|
|
1619
|
-
return
|
|
1619
|
+
return Ut.includes(t) || Kt(t);
|
|
1620
|
+
}
|
|
1621
|
+
function Jt(e) {
|
|
1622
|
+
return qt(e) && e.hasAttribute("disabled");
|
|
1620
1623
|
}
|
|
1621
1624
|
function Yt(e) {
|
|
1622
|
-
|
|
1625
|
+
let t = e.parentElement;
|
|
1626
|
+
return !!t && (Gt(e, t) || Yt(t));
|
|
1623
1627
|
}
|
|
1624
1628
|
function Xt(e) {
|
|
1625
|
-
|
|
1626
|
-
return !!t && (Kt(e, t) || Xt(t));
|
|
1629
|
+
return qt(e) && (Jt(e) || Yt(e));
|
|
1627
1630
|
}
|
|
1628
1631
|
function Zt(e) {
|
|
1629
|
-
|
|
1630
|
-
|
|
1631
|
-
function Qt(e) {
|
|
1632
|
-
z(e, Qt, this);
|
|
1633
|
-
let t = Zt(e);
|
|
1632
|
+
z(e, Zt, this);
|
|
1633
|
+
let t = Xt(e);
|
|
1634
1634
|
return {
|
|
1635
1635
|
pass: t,
|
|
1636
1636
|
message: () => {
|
|
@@ -1644,9 +1644,9 @@ function Qt(e) {
|
|
|
1644
1644
|
}
|
|
1645
1645
|
};
|
|
1646
1646
|
}
|
|
1647
|
-
function
|
|
1648
|
-
z(e,
|
|
1649
|
-
let t = !
|
|
1647
|
+
function Qt(e) {
|
|
1648
|
+
z(e, Qt, this);
|
|
1649
|
+
let t = !Xt(e);
|
|
1650
1650
|
return {
|
|
1651
1651
|
pass: t,
|
|
1652
1652
|
message: () => {
|
|
@@ -1660,18 +1660,18 @@ function $t(e) {
|
|
|
1660
1660
|
}
|
|
1661
1661
|
};
|
|
1662
1662
|
}
|
|
1663
|
-
var
|
|
1663
|
+
var $t = ["select", "textarea"], en = [
|
|
1664
1664
|
"input",
|
|
1665
1665
|
"select",
|
|
1666
1666
|
"textarea"
|
|
1667
|
-
],
|
|
1667
|
+
], tn = [
|
|
1668
1668
|
"color",
|
|
1669
1669
|
"hidden",
|
|
1670
1670
|
"range",
|
|
1671
1671
|
"submit",
|
|
1672
1672
|
"image",
|
|
1673
1673
|
"reset"
|
|
1674
|
-
],
|
|
1674
|
+
], nn = [
|
|
1675
1675
|
"checkbox",
|
|
1676
1676
|
"combobox",
|
|
1677
1677
|
"gridcell",
|
|
@@ -1681,18 +1681,18 @@ var en = ["select", "textarea"], tn = [
|
|
|
1681
1681
|
"textbox",
|
|
1682
1682
|
"tree"
|
|
1683
1683
|
];
|
|
1684
|
+
function rn(e) {
|
|
1685
|
+
return $t.includes(U(e)) && e.hasAttribute("required");
|
|
1686
|
+
}
|
|
1684
1687
|
function an(e) {
|
|
1685
|
-
return
|
|
1688
|
+
return U(e) === "input" && e.hasAttribute("required") && (e.hasAttribute("type") && !tn.includes(e.getAttribute("type")) || !e.hasAttribute("type"));
|
|
1686
1689
|
}
|
|
1687
1690
|
function on(e) {
|
|
1688
|
-
return
|
|
1691
|
+
return e.hasAttribute("aria-required") && e.getAttribute("aria-required") === "true" && (en.includes(U(e)) || e.hasAttribute("role") && nn.includes(e.getAttribute("role")));
|
|
1689
1692
|
}
|
|
1690
1693
|
function sn(e) {
|
|
1691
|
-
|
|
1692
|
-
|
|
1693
|
-
function cn(e) {
|
|
1694
|
-
z(e, cn, this);
|
|
1695
|
-
let t = an(e) || on(e) || sn(e);
|
|
1694
|
+
z(e, sn, this);
|
|
1695
|
+
let t = rn(e) || an(e) || on(e);
|
|
1696
1696
|
return {
|
|
1697
1697
|
pass: t,
|
|
1698
1698
|
message: () => {
|
|
@@ -1706,25 +1706,25 @@ function cn(e) {
|
|
|
1706
1706
|
}
|
|
1707
1707
|
};
|
|
1708
1708
|
}
|
|
1709
|
-
var
|
|
1709
|
+
var cn = [
|
|
1710
1710
|
"form",
|
|
1711
1711
|
"input",
|
|
1712
1712
|
"select",
|
|
1713
1713
|
"textarea"
|
|
1714
1714
|
];
|
|
1715
|
-
function
|
|
1715
|
+
function ln(e) {
|
|
1716
1716
|
return e.hasAttribute("aria-invalid") && e.getAttribute("aria-invalid") !== "false";
|
|
1717
1717
|
}
|
|
1718
|
+
function un(e) {
|
|
1719
|
+
return cn.includes(U(e));
|
|
1720
|
+
}
|
|
1718
1721
|
function dn(e) {
|
|
1719
|
-
|
|
1722
|
+
let t = ln(e);
|
|
1723
|
+
return un(e) ? t || !e.checkValidity() : t;
|
|
1720
1724
|
}
|
|
1721
1725
|
function fn(e) {
|
|
1722
|
-
|
|
1723
|
-
|
|
1724
|
-
}
|
|
1725
|
-
function pn(e) {
|
|
1726
|
-
z(e, pn, this);
|
|
1727
|
-
let t = fn(e);
|
|
1726
|
+
z(e, fn, this);
|
|
1727
|
+
let t = dn(e);
|
|
1728
1728
|
return {
|
|
1729
1729
|
pass: t,
|
|
1730
1730
|
message: () => {
|
|
@@ -1738,9 +1738,9 @@ function pn(e) {
|
|
|
1738
1738
|
}
|
|
1739
1739
|
};
|
|
1740
1740
|
}
|
|
1741
|
-
function
|
|
1742
|
-
z(e,
|
|
1743
|
-
let t = !
|
|
1741
|
+
function pn(e) {
|
|
1742
|
+
z(e, pn, this);
|
|
1743
|
+
let t = !dn(e);
|
|
1744
1744
|
return {
|
|
1745
1745
|
pass: t,
|
|
1746
1746
|
message: () => {
|
|
@@ -1754,9 +1754,9 @@ function mn(e) {
|
|
|
1754
1754
|
}
|
|
1755
1755
|
};
|
|
1756
1756
|
}
|
|
1757
|
-
function
|
|
1758
|
-
if (z(e,
|
|
1759
|
-
let n =
|
|
1757
|
+
function mn(e, t) {
|
|
1758
|
+
if (z(e, mn, 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 = st(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 hn(e, t) {
|
|
|
1765
1765
|
}
|
|
1766
1766
|
};
|
|
1767
1767
|
}
|
|
1768
|
-
function
|
|
1769
|
-
z(e,
|
|
1768
|
+
function hn(e, t) {
|
|
1769
|
+
z(e, hn, this);
|
|
1770
1770
|
let n = e.tagName.toLowerCase();
|
|
1771
1771
|
if (![
|
|
1772
1772
|
"select",
|
|
@@ -1808,7 +1808,7 @@ function vn(e) {
|
|
|
1808
1808
|
};
|
|
1809
1809
|
}
|
|
1810
1810
|
function yn() {
|
|
1811
|
-
return
|
|
1811
|
+
return ct(bn().map((e) => `role="${e}"`), { lastWordConnector: " or " });
|
|
1812
1812
|
}
|
|
1813
1813
|
function bn() {
|
|
1814
1814
|
return R.roles.keys().filter(xn);
|
|
@@ -1916,8 +1916,8 @@ function Dn(e) {
|
|
|
1916
1916
|
}
|
|
1917
1917
|
};
|
|
1918
1918
|
}
|
|
1919
|
-
function
|
|
1920
|
-
z(e,
|
|
1919
|
+
function Q(e) {
|
|
1920
|
+
z(e, Q, 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 On(e) {
|
|
|
1930
1930
|
}
|
|
1931
1931
|
};
|
|
1932
1932
|
}
|
|
1933
|
-
var
|
|
1934
|
-
[
|
|
1935
|
-
[
|
|
1936
|
-
[
|
|
1937
|
-
[
|
|
1938
|
-
[
|
|
1939
|
-
[
|
|
1933
|
+
var On = 1, kn = 2, An = 4, jn = 8, Mn = 16, Nn = 32, Pn = {
|
|
1934
|
+
[On]: "Node.DOCUMENT_POSITION_DISCONNECTED",
|
|
1935
|
+
[kn]: "Node.DOCUMENT_POSITION_PRECEDING",
|
|
1936
|
+
[An]: "Node.DOCUMENT_POSITION_FOLLOWING",
|
|
1937
|
+
[jn]: "Node.DOCUMENT_POSITION_CONTAINS",
|
|
1938
|
+
[Mn]: "Node.DOCUMENT_POSITION_CONTAINED_BY",
|
|
1939
|
+
[Nn]: "Node.DOCUMENT_POSITION_IMPLEMENTATION_SPECIFIC"
|
|
1940
1940
|
};
|
|
1941
|
-
function
|
|
1942
|
-
return e in
|
|
1941
|
+
function Fn(e) {
|
|
1942
|
+
return e in Pn ? `${Pn[e]} (${e})` : `Unknown document position (${e})`;
|
|
1943
1943
|
}
|
|
1944
|
-
function
|
|
1944
|
+
function In(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 Ln(e, t) {
|
|
|
1950
1950
|
message: () => [
|
|
1951
1951
|
this.utils.matcherHint(`${this.isNot ? ".not" : ""}.${e}`, "element", "secondElement"),
|
|
1952
1952
|
"",
|
|
1953
|
-
`Received: ${
|
|
1953
|
+
`Received: ${Fn(i)}`
|
|
1954
1954
|
].join("\n")
|
|
1955
1955
|
};
|
|
1956
1956
|
};
|
|
1957
1957
|
}
|
|
1958
1958
|
function $(e, t) {
|
|
1959
|
-
return
|
|
1959
|
+
return In("toAppearBefore", An).apply(this, [e, t]);
|
|
1960
1960
|
}
|
|
1961
|
-
function
|
|
1962
|
-
return
|
|
1961
|
+
function Ln(e, t) {
|
|
1962
|
+
return In("toAppearAfter", kn).apply(this, [e, t]);
|
|
1963
1963
|
}
|
|
1964
|
-
var
|
|
1964
|
+
var Rn = /* @__PURE__ */ Object.freeze({
|
|
1965
1965
|
__proto__: null,
|
|
1966
|
-
toAppearAfter:
|
|
1966
|
+
toAppearAfter: Ln,
|
|
1967
1967
|
toAppearBefore: $,
|
|
1968
1968
|
toBeChecked: vn,
|
|
1969
|
-
toBeDisabled:
|
|
1970
|
-
toBeEmpty:
|
|
1971
|
-
toBeEmptyDOMElement:
|
|
1972
|
-
toBeEnabled:
|
|
1969
|
+
toBeDisabled: Zt,
|
|
1970
|
+
toBeEmpty: ut,
|
|
1971
|
+
toBeEmptyDOMElement: dt,
|
|
1972
|
+
toBeEnabled: Qt,
|
|
1973
1973
|
toBeInTheDOM: G,
|
|
1974
|
-
toBeInTheDocument:
|
|
1975
|
-
toBeInvalid:
|
|
1974
|
+
toBeInTheDocument: lt,
|
|
1975
|
+
toBeInvalid: fn,
|
|
1976
1976
|
toBePartiallyChecked: Sn,
|
|
1977
|
-
toBePartiallyPressed:
|
|
1977
|
+
toBePartiallyPressed: Q,
|
|
1978
1978
|
toBePressed: Dn,
|
|
1979
|
-
toBeRequired:
|
|
1980
|
-
toBeValid:
|
|
1981
|
-
toBeVisible:
|
|
1979
|
+
toBeRequired: sn,
|
|
1980
|
+
toBeValid: pn,
|
|
1981
|
+
toBeVisible: Ht,
|
|
1982
1982
|
toContainElement: K,
|
|
1983
|
-
toContainHTML:
|
|
1983
|
+
toContainHTML: mt,
|
|
1984
1984
|
toHaveAccessibleDescription: q,
|
|
1985
|
-
toHaveAccessibleErrorMessage:
|
|
1985
|
+
toHaveAccessibleErrorMessage: _t,
|
|
1986
1986
|
toHaveAccessibleName: X,
|
|
1987
|
-
toHaveAttribute:
|
|
1988
|
-
toHaveClass:
|
|
1987
|
+
toHaveAttribute: wt,
|
|
1988
|
+
toHaveClass: Ot,
|
|
1989
1989
|
toHaveDescription: Cn,
|
|
1990
|
-
toHaveDisplayValue:
|
|
1990
|
+
toHaveDisplayValue: hn,
|
|
1991
1991
|
toHaveErrorMessage: wn,
|
|
1992
|
-
toHaveFocus:
|
|
1993
|
-
toHaveFormValues:
|
|
1992
|
+
toHaveFocus: Nt,
|
|
1993
|
+
toHaveFormValues: Rt,
|
|
1994
1994
|
toHaveRole: Y,
|
|
1995
1995
|
toHaveSelection: En,
|
|
1996
1996
|
toHaveStyle: Z,
|
|
1997
|
-
toHaveTextContent:
|
|
1998
|
-
toHaveValue:
|
|
1997
|
+
toHaveTextContent: ht,
|
|
1998
|
+
toHaveValue: mn
|
|
1999
1999
|
});
|
|
2000
2000
|
//#endregion
|
|
2001
2001
|
//#region node_modules/@testing-library/jest-dom/dist/index.mjs
|
|
2002
|
-
expect.extend(
|
|
2002
|
+
expect.extend(Rn);
|
|
2003
2003
|
//#endregion
|
|
2004
2004
|
|
|
2005
|
-
//# sourceMappingURL=dist-
|
|
2005
|
+
//# sourceMappingURL=dist-BIkFjHck.js.map
|