@uva-glass/component-library 3.55.9 → 3.57.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/{Accordion-DaCqVof1.js → Accordion-DQNoRsg_.js} +2 -2
- package/dist/{Accordion-DaCqVof1.js.map → Accordion-DQNoRsg_.js.map} +1 -1
- package/dist/{AccordionCard-CD5H9gR1.js → AccordionCard-C4k8EI39.js} +2 -2
- package/dist/{AccordionCard-CD5H9gR1.js.map → AccordionCard-C4k8EI39.js.map} +1 -1
- package/dist/{ActionList-C0hD9noC.js → ActionList-D2GC2qPX.js} +2 -2
- package/dist/{ActionList-C0hD9noC.js.map → ActionList-D2GC2qPX.js.map} +1 -1
- package/dist/{AddCatalogueLinkForm-DNv2tEdF.js → AddCatalogueLinkForm-Di0xm7Ep.js} +5 -5
- package/dist/{AddCatalogueLinkForm-DNv2tEdF.js.map → AddCatalogueLinkForm-Di0xm7Ep.js.map} +1 -1
- package/dist/{AppStatusBar-BK0yaC4G.js → AppStatusBar-DW-w7Nzp.js} +2 -2
- package/dist/{AppStatusBar-BK0yaC4G.js.map → AppStatusBar-DW-w7Nzp.js.map} +1 -1
- package/dist/{ButtonGroup-ZqGGZ1rz.js → ButtonGroup-D2z5UWTR.js} +2 -2
- package/dist/{ButtonGroup-ZqGGZ1rz.js.map → ButtonGroup-D2z5UWTR.js.map} +1 -1
- package/dist/{Card-BH1ySOiP.js → Card-DENYj3eR.js} +3 -3
- package/dist/{Card-BH1ySOiP.js.map → Card-DENYj3eR.js.map} +1 -1
- package/dist/{CheckboxButtonBar-DpNnwLzI.js → CheckboxButtonBar-OrJSqUTN.js} +5 -5
- package/dist/{CheckboxButtonBar-DpNnwLzI.js.map → CheckboxButtonBar-OrJSqUTN.js.map} +1 -1
- package/dist/{Column-BwCVSZrG.js → Column-jJBZgP8m.js} +2 -2
- package/dist/{Column-BwCVSZrG.js.map → Column-jJBZgP8m.js.map} +1 -1
- package/dist/{Container-DK25h_-f.js → Container-DOcrVe7u.js} +2 -2
- package/dist/{Container-DK25h_-f.js.map → Container-DOcrVe7u.js.map} +1 -1
- package/dist/{ControlsButton-9uR_zW_F.js → ControlsButton-Byx4XQtB.js} +2 -2
- package/dist/{ControlsButton-9uR_zW_F.js.map → ControlsButton-Byx4XQtB.js.map} +1 -1
- package/dist/{CopyableText-hSqhyUWx.js → CopyableText-BKsM-TuS.js} +2 -2
- package/dist/{CopyableText-hSqhyUWx.js.map → CopyableText-BKsM-TuS.js.map} +1 -1
- package/dist/DataTable-Cgn_RKTA.js +154 -0
- package/dist/DataTable-Cgn_RKTA.js.map +1 -0
- package/dist/{Drawer-BbVJqFQI.js → Drawer-fUw0LEuj.js} +3 -3
- package/dist/{Drawer-BbVJqFQI.js.map → Drawer-fUw0LEuj.js.map} +1 -1
- package/dist/{EmptyStateDataDisplay-IT2P3ius.js → EmptyStateDataDisplay-FBDAGO88.js} +2 -2
- package/dist/{EmptyStateDataDisplay-IT2P3ius.js.map → EmptyStateDataDisplay-FBDAGO88.js.map} +1 -1
- package/dist/{ExpandableInfoPanel-DMfcJFP3.js → ExpandableInfoPanel-BmbgbAjf.js} +2 -2
- package/dist/{ExpandableInfoPanel-DMfcJFP3.js.map → ExpandableInfoPanel-BmbgbAjf.js.map} +1 -1
- package/dist/{FeedbackBar-DRbJVniP.js → FeedbackBar-DEDpoNy7.js} +3 -3
- package/dist/{FeedbackBar-DRbJVniP.js.map → FeedbackBar-DEDpoNy7.js.map} +1 -1
- package/dist/{FeedbackBox-CaSxB4uc.js → FeedbackBox-BpOf_dxg.js} +2 -2
- package/dist/{FeedbackBox-CaSxB4uc.js.map → FeedbackBox-BpOf_dxg.js.map} +1 -1
- package/dist/{Fieldset-D01_rj_p.js → Fieldset-CgnLyAyS.js} +2 -2
- package/dist/{Fieldset-D01_rj_p.js.map → Fieldset-CgnLyAyS.js.map} +1 -1
- package/dist/{FormField-CcV84TfI.js → FormField-ByjTkKKq.js} +2 -2
- package/dist/{FormField-CcV84TfI.js.map → FormField-ByjTkKKq.js.map} +1 -1
- package/dist/{IconButton-CSNMVEG1.js → IconButton-BZVNomru.js} +2 -2
- package/dist/{IconButton-CSNMVEG1.js.map → IconButton-BZVNomru.js.map} +1 -1
- package/dist/{InfoMessage-COywXu4O.js → InfoMessage-CCEg222m.js} +2 -2
- package/dist/{InfoMessage-COywXu4O.js.map → InfoMessage-CCEg222m.js.map} +1 -1
- package/dist/{Input-BzKvzbzP.js → Input-CF3dxqTC.js} +2 -2
- package/dist/{Input-BzKvzbzP.js.map → Input-CF3dxqTC.js.map} +1 -1
- package/dist/{InputField-T01uazlI.js → InputField-asFsxHvx.js} +2 -2
- package/dist/{InputField-T01uazlI.js.map → InputField-asFsxHvx.js.map} +1 -1
- package/dist/{Label-D0ACrYG3.js → Label-52ny6d06.js} +2 -2
- package/dist/{Label-D0ACrYG3.js.map → Label-52ny6d06.js.map} +1 -1
- package/dist/{Lexical.prod-8zZnpGo4.js → Lexical.prod-DApSVwEN.js} +2 -2
- package/dist/Lexical.prod-DApSVwEN.js.map +1 -0
- package/dist/{LexicalClipboard.prod-hbxbsROy.js → LexicalClipboard.prod--xxt8Vi4.js} +6 -6
- package/dist/LexicalClipboard.prod--xxt8Vi4.js.map +1 -0
- package/dist/{LexicalComposerContext.prod-y_BRxu3Z.js → LexicalComposerContext.prod-o3ynMZsi.js} +2 -2
- package/dist/LexicalComposerContext.prod-o3ynMZsi.js.map +1 -0
- package/dist/{LexicalExtension.prod-v8IpET5E.js → LexicalExtension.prod-efmFsltb.js} +4 -4
- package/dist/LexicalExtension.prod-efmFsltb.js.map +1 -0
- package/dist/{LexicalLink.prod-BVUv9-sZ.js → LexicalLink.prod-DCBvBDd1.js} +5 -5
- package/dist/LexicalLink.prod-DCBvBDd1.js.map +1 -0
- package/dist/{LexicalList.prod-CCPDDafy.js → LexicalList.prod-DA6gHLh6.js} +5 -5
- package/dist/LexicalList.prod-DA6gHLh6.js.map +1 -0
- package/dist/{LexicalTable.prod-D_9Dr3kL.js → LexicalTable.prod-Dw8vTvL0.js} +6 -6
- package/dist/LexicalTable.prod-Dw8vTvL0.js.map +1 -0
- package/dist/{LexicalUtils.prod-BWhWP8es.js → LexicalUtils.prod-DRNc5TMZ.js} +4 -4
- package/dist/LexicalUtils.prod-DRNc5TMZ.js.map +1 -0
- package/dist/{LinkContextMenu-CTu2nP2j.js → LinkContextMenu-Jna2w4Ob.js} +2 -2
- package/dist/{LinkContextMenu-CTu2nP2j.js.map → LinkContextMenu-Jna2w4Ob.js.map} +1 -1
- package/dist/{MenuLink-La_3ANEL.js → MenuLink-sK2_W2zs.js} +2 -2
- package/dist/{MenuLink-La_3ANEL.js.map → MenuLink-sK2_W2zs.js.map} +1 -1
- package/dist/{ModalDialog-J7xcPcnS.js → ModalDialog-4V70sxK_.js} +3 -3
- package/dist/{ModalDialog-J7xcPcnS.js.map → ModalDialog-4V70sxK_.js.map} +1 -1
- package/dist/{MultiSelectBox-BmBxa6PH.js → MultiSelectBox-D34qAgzc.js} +2 -2
- package/dist/{MultiSelectBox-BmBxa6PH.js.map → MultiSelectBox-D34qAgzc.js.map} +1 -1
- package/dist/{MultiSelectItem-6d8kQgFs.js → MultiSelectItem-hx3Y4Lmk.js} +2 -2
- package/dist/{MultiSelectItem-6d8kQgFs.js.map → MultiSelectItem-hx3Y4Lmk.js.map} +1 -1
- package/dist/{Notification-BAqCenxt.js → Notification-BhqWENfu.js} +2 -2
- package/dist/{Notification-BAqCenxt.js.map → Notification-BhqWENfu.js.map} +1 -1
- package/dist/{OverlayCloseButton-j-7mC4Zz.js → OverlayCloseButton-Dt6Yec8G.js} +2 -2
- package/dist/{OverlayCloseButton-j-7mC4Zz.js.map → OverlayCloseButton-Dt6Yec8G.js.map} +1 -1
- package/dist/{OverlayStepBar-Cj_-0waE.js → OverlayStepBar-BiC06Itd.js} +2 -2
- package/dist/{OverlayStepBar-Cj_-0waE.js.map → OverlayStepBar-BiC06Itd.js.map} +1 -1
- package/dist/{PageOverlay-DqwdG5ve.js → PageOverlay-BR9ypiar.js} +3 -3
- package/dist/{PageOverlay-DqwdG5ve.js.map → PageOverlay-BR9ypiar.js.map} +1 -1
- package/dist/{PasteHandlerPlugin-Bc6n-G35.js → PasteHandlerPlugin-IsbHaMUu.js} +6 -6
- package/dist/{PasteHandlerPlugin-Bc6n-G35.js.map → PasteHandlerPlugin-IsbHaMUu.js.map} +1 -1
- package/dist/{Periods-C5cxLlWt.js → Periods-B4ms3N24.js} +2 -2
- package/dist/{Periods-C5cxLlWt.js.map → Periods-B4ms3N24.js.map} +1 -1
- package/dist/{ProgrammeCard-CAAOSWKa.js → ProgrammeCard-DdCFNx0d.js} +2 -2
- package/dist/{ProgrammeCard-CAAOSWKa.js.map → ProgrammeCard-DdCFNx0d.js.map} +1 -1
- package/dist/{RadioButton-CKALsbBb.js → RadioButton-DmBpXwIS.js} +2 -2
- package/dist/{RadioButton-CKALsbBb.js.map → RadioButton-DmBpXwIS.js.map} +1 -1
- package/dist/{RadioGroup-DhnnBRJu.js → RadioGroup-DlQjMmpa.js} +3 -3
- package/dist/{RadioGroup-DhnnBRJu.js.map → RadioGroup-DlQjMmpa.js.map} +1 -1
- package/dist/{Repeater-Bnoqqz0X.js → Repeater-BAEfOMZI.js} +2 -2
- package/dist/{Repeater-Bnoqqz0X.js.map → Repeater-BAEfOMZI.js.map} +1 -1
- package/dist/{SectionNotification-BT0Z2edJ.js → SectionNotification-CN-NdGL8.js} +2 -2
- package/dist/{SectionNotification-BT0Z2edJ.js.map → SectionNotification-CN-NdGL8.js.map} +1 -1
- package/dist/{Slider-dCmT0VM2.js → Slider-Czd2xAGf.js} +2 -2
- package/dist/{Slider-dCmT0VM2.js.map → Slider-Czd2xAGf.js.map} +1 -1
- package/dist/{SortableProvider-DV6gWmq_.js → SortableProvider-D-6Ttz0h.js} +2 -2
- package/dist/{SortableProvider-DV6gWmq_.js.map → SortableProvider-D-6Ttz0h.js.map} +1 -1
- package/dist/{StatusBage-CfEIuIPa.js → StatusBage-hJmNPqtk.js} +2 -2
- package/dist/{StatusBage-CfEIuIPa.js.map → StatusBage-hJmNPqtk.js.map} +1 -1
- package/dist/{StatusPill-CbJV4t-V.js → StatusPill-vdqU92pW.js} +2 -2
- package/dist/{StatusPill-CbJV4t-V.js.map → StatusPill-vdqU92pW.js.map} +1 -1
- package/dist/{TableCellContextMenu-9V8mnPmU.js → TableCellContextMenu-Dm-UNfH8.js} +3 -3
- package/dist/{TableCellContextMenu-9V8mnPmU.js.map → TableCellContextMenu-Dm-UNfH8.js.map} +1 -1
- package/dist/{TableCellResizerPlugin-Djym940U.js → TableCellResizerPlugin-OgsG5jSq.js} +6 -6
- package/dist/TableCellResizerPlugin-OgsG5jSq.js.map +1 -0
- package/dist/{TextArea-GR2ZWwLh.js → TextArea-D_VoyGIO.js} +2 -2
- package/dist/{TextArea-GR2ZWwLh.js.map → TextArea-D_VoyGIO.js.map} +1 -1
- package/dist/{ToggleSwitch-b54K58vY.js → ToggleSwitch-ev4Jh4y-.js} +2 -2
- package/dist/{ToggleSwitch-b54K58vY.js.map → ToggleSwitch-ev4Jh4y-.js.map} +1 -1
- package/dist/{VarIndicator-DoMWwSUm.js → VarIndicator-D0cnlcIf.js} +2 -2
- package/dist/{VarIndicator-DoMWwSUm.js.map → VarIndicator-D0cnlcIf.js.map} +1 -1
- package/dist/assets/DataTable.css +1 -0
- package/dist/{chunk-FON5IJBZ-BBb6rYhU.js → chunk-5WKL7XVT-3IraU-Ja.js} +19 -24
- package/dist/chunk-5WKL7XVT-3IraU-Ja.js.map +1 -0
- package/dist/{client-DJaPTT6C.js → client-BcEWjSJP.js} +2 -2
- package/dist/client-BcEWjSJP.js.map +1 -0
- package/dist/{clsx-BWCAbrjV.js → clsx-C67XSbzZ.js} +2 -2
- package/dist/clsx-C67XSbzZ.js.map +1 -0
- package/dist/components/Accordion/Accordion.js +1 -1
- package/dist/components/Accordion/Accordion.stories.js +2 -2
- package/dist/components/Accordion/Accordion.test.js +4 -4
- package/dist/components/Accordion/index.js +1 -1
- package/dist/components/AccordionCard/AccordionCard.js +1 -1
- package/dist/components/AccordionCard/AccordionCard.stories.js +2 -2
- package/dist/components/AccordionCard/AccordionCard.test.js +4 -4
- package/dist/components/AccordionCard/index.js +1 -1
- package/dist/components/ActionList/ActionList.js +1 -1
- package/dist/components/ActionList/ActionList.stories.js +1 -1
- package/dist/components/ActionList/ActionList.test.js +4 -4
- package/dist/components/ActionList/index.js +1 -1
- package/dist/components/AppStatusBar/AppStatusBar.js +1 -1
- package/dist/components/AppStatusBar/AppStatusBar.stories.js +1 -1
- package/dist/components/AppStatusBar/AppStatusBar.test.js +3 -3
- package/dist/components/AppStatusBar/index.js +1 -1
- package/dist/components/Attention/Attention.test.js +2 -2
- package/dist/components/Backdrop/Backdrop.stories.js +1 -1
- package/dist/components/Backdrop/Backdrop.test.js +2 -2
- package/dist/components/ButtonGroup/ButtonGroup.js +1 -1
- package/dist/components/ButtonGroup/ButtonGroup.stories.js +2 -2
- package/dist/components/ButtonGroup/index.js +1 -1
- package/dist/components/Buttons/Button.js +1 -1
- package/dist/components/Buttons/Button.stories.js +1 -1
- package/dist/components/Buttons/Button.test.js +2 -2
- package/dist/components/Buttons/LinkButton.js +1 -1
- package/dist/components/Buttons/LinkButton.stories.js +1 -1
- package/dist/components/Buttons/LinkButton.test.js +2 -2
- package/dist/components/Buttons/MenuButton.js +1 -1
- package/dist/components/Buttons/MenuButton.stories.js +1 -1
- package/dist/components/Buttons/MenuButton.test.js +2 -2
- package/dist/components/Card/Card.js +1 -1
- package/dist/components/Card/Card.stories.js +1 -1
- package/dist/components/Card/Card.test.js +3 -3
- package/dist/components/Card/index.js +1 -1
- package/dist/components/Checkbox/Checkbox.stories.js +3 -3
- package/dist/components/Checkbox/Checkbox.test.js +3 -3
- package/dist/components/CheckboxButtonBar/CheckboxButtonBar.js +1 -1
- package/dist/components/CheckboxButtonBar/CheckboxButtonBar.stories.js +3 -3
- package/dist/components/CheckboxButtonBar/CheckboxButtonBar.test.js +3 -3
- package/dist/components/CheckboxButtonBar/index.js +1 -1
- package/dist/components/CheckboxTree/CheckboxTree.js +1 -1
- package/dist/components/CheckboxTree/CheckboxTree.stories.js +3 -3
- package/dist/components/CheckboxTree/index.js +1 -1
- package/dist/components/Chip/Chip.stories.js +1 -1
- package/dist/components/ControlsButton/ControlsButton.js +1 -1
- package/dist/components/ControlsButton/ControlsButton.stories.js +3 -3
- package/dist/components/ControlsButton/index.js +1 -1
- package/dist/components/CopyableText/CopyableText.js +1 -1
- package/dist/components/CopyableText/CopyableText.stories.js +1 -1
- package/dist/components/CopyableText/index.js +1 -1
- package/dist/components/DataTable/DataTable.d.ts +39 -0
- package/dist/components/DataTable/DataTable.js +2 -0
- package/dist/components/DataTable/DataTable.stories.d.ts +26 -0
- package/dist/components/DataTable/DataTable.stories.js +40349 -0
- package/dist/components/DataTable/DataTable.stories.js.map +1 -0
- package/dist/components/DataTable/hooks/useVirtualScroll.d.ts +14 -0
- package/dist/components/DataTable/hooks/useVirtualScroll.js +35 -0
- package/dist/components/DataTable/hooks/useVirtualScroll.js.map +1 -0
- package/dist/components/DataTable/index.d.ts +1 -0
- package/dist/components/DataTable/index.js +2 -0
- package/dist/components/DataTable/mockDataTableData.d.ts +39 -0
- package/dist/components/Drawer/Drawer.js +1 -1
- package/dist/components/Drawer/Drawer.stories.js +3 -3
- package/dist/components/Drawer/index.js +1 -1
- package/dist/components/EmptyStateDataDisplay/EmptyStateDataDisplay.js +1 -1
- package/dist/components/EmptyStateDataDisplay/EmptyStateDataDisplay.stories.js +1 -1
- package/dist/components/EmptyStateDataDisplay/index.js +1 -1
- package/dist/components/ExpandableInfoPanel/ExpandableInfoPanel.js +1 -1
- package/dist/components/ExpandableInfoPanel/ExpandableInfoPanel.stories.js +2 -2
- package/dist/components/ExpandableInfoPanel/index.js +1 -1
- package/dist/components/FeedbackBar/FeedbackBar.js +1 -1
- package/dist/components/FeedbackBar/FeedbackBar.stories.js +3 -3
- package/dist/components/FeedbackBar/FeedbackBar.test.js +3 -3
- package/dist/components/FeedbackBar/index.js +1 -1
- package/dist/components/FeedbackBox/FeedbackBox.js +1 -1
- package/dist/components/FeedbackBox/FeedbackBox.stories.js +3 -3
- package/dist/components/FeedbackBox/index.js +1 -1
- package/dist/components/Fieldset/Fieldset.js +1 -1
- package/dist/components/Fieldset/Fieldset.stories.js +5 -5
- package/dist/components/Fieldset/index.js +1 -1
- package/dist/components/FormField/FormField.js +1 -1
- package/dist/components/FormField/FormField.stories.js +4 -4
- package/dist/components/FormField/index.js +1 -1
- package/dist/components/FormInput/FormInput.js +1 -1
- package/dist/components/FormInput/FormInput.stories.js +2 -2
- package/dist/components/FormInput/index.js +1 -1
- package/dist/components/GridRow/Column/Column.js +1 -1
- package/dist/components/GridRow/Column/index.js +1 -1
- package/dist/components/GridRow/GridRow.js +2 -2
- package/dist/components/IconButton/IconButton.js +1 -1
- package/dist/components/IconButton/IconButton.stories.js +2 -2
- package/dist/components/IconButton/index.js +1 -1
- package/dist/components/InfoMessage/InfoMessage.js +1 -1
- package/dist/components/InfoMessage/InfoMessage.stories.js +1 -1
- package/dist/components/InfoMessage/index.js +1 -1
- package/dist/components/Input/Input.js +1 -1
- package/dist/components/Input/Input.stories.js +1 -1
- package/dist/components/Input/index.js +1 -1
- package/dist/components/InputField/InputField.js +1 -1
- package/dist/components/InputField/InputField.stories.js +3 -3
- package/dist/components/InputField/index.js +1 -1
- package/dist/components/Label/Label.js +1 -1
- package/dist/components/Label/Label.stories.js +1 -1
- package/dist/components/Label/Label.test.js +3 -3
- package/dist/components/Label/index.js +1 -1
- package/dist/components/MenuLink/MenuLink.js +1 -1
- package/dist/components/MenuLink/MenuLink.stories.js +1 -1
- package/dist/components/MenuLink/index.js +1 -1
- package/dist/components/MetaDataBar/MetaDataBar.test.js +1 -1
- package/dist/components/MetaDataList/MetaDataList.stories.js +1 -1
- package/dist/components/ModalDialog/ModalDialog.js +1 -1
- package/dist/components/ModalDialog/ModalDialog.stories.js +6 -6
- package/dist/components/ModalDialog/index.js +1 -1
- package/dist/components/MultiSelect/MultiSelect.js +1 -1
- package/dist/components/MultiSelect/MultiSelect.stories.js +3 -3
- package/dist/components/MultiSelect/components/MultiSelectHeader.js +1 -1
- package/dist/components/MultiSelect/components/MultiSelectItem.js +1 -1
- package/dist/components/MultiSelect/index.js +1 -1
- package/dist/components/MultiSelectBox/MultiSelectBox.js +1 -1
- package/dist/components/MultiSelectBox/MultiSelectBox.stories.js +2 -2
- package/dist/components/MultiSelectBox/MultiSelectBox.test.js +3 -3
- package/dist/components/MultiSelectBox/index.js +1 -1
- package/dist/components/Notification/Notification.js +1 -1
- package/dist/components/Notification/Notification.stories.js +2 -2
- package/dist/components/Notification/Notification.test.js +3 -3
- package/dist/components/Notification/index.js +1 -1
- package/dist/components/OverlayCloseButton/OverlayCloseButton.js +1 -1
- package/dist/components/OverlayCloseButton/OverlayCloseButton.stories.js +3 -3
- package/dist/components/OverlayCloseButton/index.js +1 -1
- package/dist/components/OverlayStepBar/OverlayStepBar.js +1 -1
- package/dist/components/OverlayStepBar/OverlayStepBar.stories.js +1 -1
- package/dist/components/OverlayStepBar/index.js +1 -1
- package/dist/components/PageOverlay/PageOverlay.js +1 -1
- package/dist/components/PageOverlay/PageOverlay.stories.js +6 -6
- package/dist/components/PageOverlay/PageOverlay.stories.js.map +1 -1
- package/dist/components/PageOverlay/index.js +1 -1
- package/dist/components/PeriodSelector/PeriodSelector.js +1 -1
- package/dist/components/PeriodSelector/PeriodSelector.stories.js +2 -2
- package/dist/components/PeriodSelector/index.js +1 -1
- package/dist/components/Periods/Periods.js +1 -1
- package/dist/components/Periods/Periods.stories.js +1 -1
- package/dist/components/Periods/index.js +1 -1
- package/dist/components/ProgrammeCard/ProgrammeCard.js +1 -1
- package/dist/components/ProgrammeCard/ProgrammeCard.stories.js +3 -3
- package/dist/components/ProgrammeCard/index.js +1 -1
- package/dist/components/RadioButton/RadioButton.js +1 -1
- package/dist/components/RadioButton/RadioButton.stories.js +1 -1
- package/dist/components/RadioButton/index.js +1 -1
- package/dist/components/RadioGroup/RadioGroup.js +1 -1
- package/dist/components/RadioGroup/RadioGroup.stories.js +2 -2
- package/dist/components/RadioGroup/Radiogroup.test.js +3 -3
- package/dist/components/RadioGroup/index.js +1 -1
- package/dist/components/RadioTabSelector/RadioTabSelector.js +1 -1
- package/dist/components/RadioTabSelector/RadioTabSelector.stories.js +2 -2
- package/dist/components/RadioTabSelector/index.js +1 -1
- package/dist/components/Repeater/Repeater.js +1 -1
- package/dist/components/Repeater/Repeater.stories.js +2 -2
- package/dist/components/Repeater/index.js +1 -1
- package/dist/components/RteEditor/EditorHeader/EditorHeader.js +1 -1
- package/dist/components/RteEditor/EditorHeader/index.js +1 -1
- package/dist/components/RteEditor/Plugins/BlockFormatPlugin/BlockFormatPlugin.js +3 -3
- 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 +5 -5
- package/dist/components/RteEditor/Plugins/HistoryPlugin/HistoryPlugin.js +1 -1
- package/dist/components/RteEditor/Plugins/HistoryPlugin/index.js +1 -1
- package/dist/components/RteEditor/Plugins/LinkPlugin/AddLinkForm/AddLinkFrom.js +1 -1
- package/dist/components/RteEditor/Plugins/LinkPlugin/LinkContextMenu/LinkContextMenu.js +1 -1
- package/dist/components/RteEditor/Plugins/LinkPlugin/LinkPlugin.js +1 -1
- package/dist/components/RteEditor/Plugins/LinkPlugin/helpers.js +1 -1
- package/dist/components/RteEditor/Plugins/LinkPlugin/index.js +1 -1
- package/dist/components/RteEditor/Plugins/ListPlugin/ListPlugin.js +5 -5
- 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 -1
- package/dist/components/RteEditor/Plugins/TablePlugin/TableCellContextMenu/TableCellContextMenu.js +1 -1
- package/dist/components/RteEditor/Plugins/TablePlugin/TableCellContextMenu/index.js +1 -1
- package/dist/components/RteEditor/Plugins/TablePlugin/TablePlugin.js +1 -1
- package/dist/components/RteEditor/Plugins/TablePlugin/helpers.js +2 -2
- package/dist/components/RteEditor/Plugins/TablePlugin/index.js +2 -2
- package/dist/components/RteEditor/Plugins/ToolbarPlugin/ToolbarPlugin.js +1 -1
- package/dist/components/RteEditor/Plugins/ToolbarPlugin/index.js +1 -1
- package/dist/components/RteEditor/Plugins/index.js +4 -4
- package/dist/components/RteEditor/RteEditor.js +1 -1
- package/dist/components/RteEditor/RteEditor.stories.js +2 -2
- package/dist/components/RteEditor/helpers.js +4 -4
- package/dist/components/RteEditor/index.js +1 -1
- package/dist/components/RteEditor/nodes/CourseCatalogueNode/CourseCatalogueNode.js +3 -3
- package/dist/components/RteEditor/nodes/TableWrapperNode/TableWrapperNode.js +3 -3
- package/dist/components/SearchField/SearchField.js +1 -1
- package/dist/components/SectionNotification/SectionNotification.js +1 -1
- package/dist/components/SectionNotification/SectionNotification.stories.js +1 -1
- package/dist/components/SectionNotification/index.js +1 -1
- package/dist/components/SelectListbox/SelectListBox.stories.js +1 -1
- package/dist/components/SelectListbox/components/SelectButton.js +1 -1
- package/dist/components/SelectListbox/components/SelectOption.js +1 -1
- package/dist/components/Slider/Slider.js +1 -1
- package/dist/components/Slider/Slider.stories.js +1 -1
- package/dist/components/Slider/index.js +1 -1
- package/dist/components/Sortable/Sortable.js +1 -1
- package/dist/components/Sortable/Sortable.stories.js +2 -2
- package/dist/components/Sortable/SortableProvider.js +1 -1
- package/dist/components/Sortable/components/SortableContainer.js +1 -1
- package/dist/components/Sortable/components/SortableItem.js +2 -2
- package/dist/components/StatusBadge/StatusBadge.stories.js +1 -1
- package/dist/components/StatusBadge/StatusBadge.test.js +3 -3
- package/dist/components/StatusBadge/StatusBage.js +1 -1
- package/dist/components/StatusBadge/index.js +1 -1
- package/dist/components/StatusPill/StatusPill.js +1 -1
- package/dist/components/StatusPill/StatusPill.stories.js +2 -2
- package/dist/components/StatusPill/index.js +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 -4
- package/dist/components/TextArea/index.js +1 -1
- package/dist/components/ToggleSwitch/ToggleSwitch.js +1 -1
- package/dist/components/ToggleSwitch/ToggleSwitch.stories.js +2 -2
- package/dist/components/ToggleSwitch/index.js +1 -1
- package/dist/components/Tooltip/Tooltip.stories.js +1 -1
- package/dist/components/VarIndicator/VarIndicator.js +1 -1
- package/dist/components/VarIndicator/VarIndicator.stories.js +2 -2
- package/dist/components/VarIndicator/VarIndicator.test.js +4 -4
- package/dist/components/VarIndicator/index.js +1 -1
- package/dist/components/WeekSelector/components/WeekSelectorOption.js +1 -1
- package/dist/components/index.d.ts +1 -0
- package/dist/components/index.js +56 -55
- package/dist/{components-D6_Sx8Hs.js → components-DHB1OMJ8.js} +38 -38
- package/dist/components-DHB1OMJ8.js.map +1 -0
- package/dist/{lib-Do6N-CJR.js → dist-C6Ar8a59.js} +2799 -714
- package/dist/dist-C6Ar8a59.js.map +1 -0
- package/dist/{esm-BJhEQquH.js → esm-B6Pg-v2v.js} +89 -89
- package/dist/esm-B6Pg-v2v.js.map +1 -0
- package/dist/{helpers-z8cqBNoz.js → helpers-C3IJbMVf.js} +4 -4
- package/dist/helpers-C3IJbMVf.js.map +1 -0
- package/dist/index.js +56 -55
- package/dist/{react-18-BAudFSEM.js → react-18-DbbN8Pdb.js} +3 -3
- package/dist/react-18-DbbN8Pdb.js.map +1 -0
- package/dist/react.esm-56DGmlLk.js +8884 -0
- package/dist/react.esm-56DGmlLk.js.map +1 -0
- package/dist/setupTests.js +6 -1192
- package/dist/setupTests.js.map +1 -1
- package/dist/storyComponents/Container/Container.js +1 -1
- package/dist/storyComponents/Container/index.js +1 -1
- package/dist/storybook__react.d.js +17 -17
- package/dist/storybook__react.d.js.map +1 -1
- package/dist/{test-Bd7kXF_B.js → test-WxLxsxwA.js} +56 -57
- package/dist/test-WxLxsxwA.js.map +1 -0
- package/dist/{test-utils-DcI4ZXle.js → test-utils-CMrZ33U0.js} +2 -2
- package/dist/test-utils-CMrZ33U0.js.map +1 -0
- package/package.json +30 -17
- package/dist/Lexical.prod-8zZnpGo4.js.map +0 -1
- package/dist/LexicalClipboard.prod-hbxbsROy.js.map +0 -1
- package/dist/LexicalComposerContext.prod-y_BRxu3Z.js.map +0 -1
- package/dist/LexicalExtension.prod-v8IpET5E.js.map +0 -1
- package/dist/LexicalLink.prod-BVUv9-sZ.js.map +0 -1
- package/dist/LexicalList.prod-CCPDDafy.js.map +0 -1
- package/dist/LexicalTable.prod-D_9Dr3kL.js.map +0 -1
- package/dist/LexicalUtils.prod-BWhWP8es.js.map +0 -1
- package/dist/TableCellResizerPlugin-Djym940U.js.map +0 -1
- package/dist/chunk-FON5IJBZ-BBb6rYhU.js.map +0 -1
- package/dist/client-DJaPTT6C.js.map +0 -1
- package/dist/clsx-BWCAbrjV.js.map +0 -1
- package/dist/components-D6_Sx8Hs.js.map +0 -1
- package/dist/dist-Cxk2-lJw.js +0 -2005
- package/dist/dist-Cxk2-lJw.js.map +0 -1
- package/dist/esm-BJhEQquH.js.map +0 -1
- package/dist/helpers-z8cqBNoz.js.map +0 -1
- package/dist/lib-Do6N-CJR.js.map +0 -1
- package/dist/react-18-BAudFSEM.js.map +0 -1
- package/dist/react.esm-GvSawg5E.js +0 -3297
- package/dist/react.esm-GvSawg5E.js.map +0 -1
- package/dist/test-Bd7kXF_B.js.map +0 -1
- package/dist/test-utils-DcI4ZXle.js.map +0 -1
package/dist/dist-Cxk2-lJw.js
DELETED
|
@@ -1,2005 +0,0 @@
|
|
|
1
|
-
import { i as e, t } from "./chunk-CWhphoD1.js";
|
|
2
|
-
import { t as n } from "./lib-Do6N-CJR.js";
|
|
3
|
-
//#region node_modules/min-indent/index.js
|
|
4
|
-
var r = /* @__PURE__ */ t(((e, t) => {
|
|
5
|
-
t.exports = (e) => {
|
|
6
|
-
let t = e.match(/^[ \t]*(?=\S)/gm);
|
|
7
|
-
return t ? t.reduce((e, t) => Math.min(e, t.length), Infinity) : 0;
|
|
8
|
-
};
|
|
9
|
-
})), i = /* @__PURE__ */ t(((e, t) => {
|
|
10
|
-
var n = r();
|
|
11
|
-
t.exports = (e) => {
|
|
12
|
-
let t = n(e);
|
|
13
|
-
if (t === 0) return e;
|
|
14
|
-
let r = RegExp(`^[ \\t]{${t}}`, "gm");
|
|
15
|
-
return e.replace(r, "");
|
|
16
|
-
};
|
|
17
|
-
})), a = /* @__PURE__ */ t(((e, t) => {
|
|
18
|
-
t.exports = (e, t = 1, n) => {
|
|
19
|
-
if (n = {
|
|
20
|
-
indent: " ",
|
|
21
|
-
includeEmptyLines: !1,
|
|
22
|
-
...n
|
|
23
|
-
}, typeof e != "string") throw TypeError(`Expected \`input\` to be a \`string\`, got \`${typeof e}\``);
|
|
24
|
-
if (typeof t != "number") throw TypeError(`Expected \`count\` to be a \`number\`, got \`${typeof t}\``);
|
|
25
|
-
if (typeof n.indent != "string") throw TypeError(`Expected \`options.indent\` to be a \`string\`, got \`${typeof n.indent}\``);
|
|
26
|
-
if (t === 0) return e;
|
|
27
|
-
let r = n.includeEmptyLines ? /^/gm : /^(?!\s*$)/gm;
|
|
28
|
-
return e.replace(r, n.indent.repeat(t));
|
|
29
|
-
};
|
|
30
|
-
})), o = /* @__PURE__ */ e((/* @__PURE__ */ t(((e, t) => {
|
|
31
|
-
var n = i(), r = a();
|
|
32
|
-
t.exports = (e, t = 0, i) => r(n(e), t, i);
|
|
33
|
-
})))(), 1), s = class extends Error {
|
|
34
|
-
reason;
|
|
35
|
-
filename;
|
|
36
|
-
line;
|
|
37
|
-
column;
|
|
38
|
-
source;
|
|
39
|
-
constructor(e, t, n, r, i) {
|
|
40
|
-
super(`${e}:${n}:${r}: ${t}`), this.reason = t, this.filename = e, this.line = n, this.column = r, this.source = i;
|
|
41
|
-
}
|
|
42
|
-
}, c = class {
|
|
43
|
-
start;
|
|
44
|
-
end;
|
|
45
|
-
source;
|
|
46
|
-
constructor(e, t, n) {
|
|
47
|
-
this.start = e, this.end = t, this.source = n;
|
|
48
|
-
}
|
|
49
|
-
}, l;
|
|
50
|
-
(function(e) {
|
|
51
|
-
e.stylesheet = "stylesheet", e.rule = "rule", e.declaration = "declaration", e.comment = "comment", e.container = "container", e.charset = "charset", e.document = "document", e.customMedia = "custom-media", e.fontFace = "font-face", e.host = "host", e.import = "import", e.keyframes = "keyframes", e.keyframe = "keyframe", e.layer = "layer", e.media = "media", e.namespace = "namespace", e.page = "page", e.startingStyle = "starting-style", e.supports = "supports";
|
|
52
|
-
})(l ||= {});
|
|
53
|
-
var u = (e, t, n) => {
|
|
54
|
-
let r = n, i = 1e4;
|
|
55
|
-
do {
|
|
56
|
-
let n = t.map((t) => e.indexOf(t, r));
|
|
57
|
-
n.push(e.indexOf("\\", r));
|
|
58
|
-
let a = n.filter((e) => e !== -1);
|
|
59
|
-
if (a.length === 0) return -1;
|
|
60
|
-
let o = Math.min(...a);
|
|
61
|
-
if (e[o] !== "\\") return o;
|
|
62
|
-
r = o + 2, i--;
|
|
63
|
-
} while (i > 0);
|
|
64
|
-
throw Error("Too many escaping");
|
|
65
|
-
}, d = (e, t, n) => {
|
|
66
|
-
let r = n, i = 1e4;
|
|
67
|
-
do {
|
|
68
|
-
let n = t.map((t) => e.indexOf(t, r));
|
|
69
|
-
n.push(e.indexOf("(", r)), n.push(e.indexOf("\"", r)), n.push(e.indexOf("'", r)), n.push(e.indexOf("\\", r));
|
|
70
|
-
let a = n.filter((e) => e !== -1);
|
|
71
|
-
if (a.length === 0) return -1;
|
|
72
|
-
let o = Math.min(...a);
|
|
73
|
-
switch (e[o]) {
|
|
74
|
-
case "\\":
|
|
75
|
-
r = o + 2;
|
|
76
|
-
break;
|
|
77
|
-
case "(":
|
|
78
|
-
{
|
|
79
|
-
let t = d(e, [")"], o + 1);
|
|
80
|
-
if (t === -1) return -1;
|
|
81
|
-
r = t + 1;
|
|
82
|
-
}
|
|
83
|
-
break;
|
|
84
|
-
case "\"":
|
|
85
|
-
{
|
|
86
|
-
let t = u(e, ["\""], o + 1);
|
|
87
|
-
if (t === -1) return -1;
|
|
88
|
-
r = t + 1;
|
|
89
|
-
}
|
|
90
|
-
break;
|
|
91
|
-
case "'":
|
|
92
|
-
{
|
|
93
|
-
let t = u(e, ["'"], o + 1);
|
|
94
|
-
if (t === -1) return -1;
|
|
95
|
-
r = t + 1;
|
|
96
|
-
}
|
|
97
|
-
break;
|
|
98
|
-
default: return o;
|
|
99
|
-
}
|
|
100
|
-
i--;
|
|
101
|
-
} while (i > 0);
|
|
102
|
-
throw Error("Too many escaping");
|
|
103
|
-
}, f = /\/\*[^]*?(?:\*\/|$)/g;
|
|
104
|
-
function p(e) {
|
|
105
|
-
return e ? e.trim() : "";
|
|
106
|
-
}
|
|
107
|
-
function m(e, t) {
|
|
108
|
-
let n = e && typeof e.type == "string", r = n ? e : t;
|
|
109
|
-
for (let t in e) {
|
|
110
|
-
let n = e[t];
|
|
111
|
-
Array.isArray(n) ? n.forEach((e) => {
|
|
112
|
-
m(e, r);
|
|
113
|
-
}) : n && typeof n == "object" && m(n, r);
|
|
114
|
-
}
|
|
115
|
-
return n && Object.defineProperty(e, "parent", {
|
|
116
|
-
configurable: !0,
|
|
117
|
-
writable: !0,
|
|
118
|
-
enumerable: !1,
|
|
119
|
-
value: t || null
|
|
120
|
-
}), e;
|
|
121
|
-
}
|
|
122
|
-
var h = (e, t) => {
|
|
123
|
-
t ||= {};
|
|
124
|
-
let n = 1, r = 1;
|
|
125
|
-
function i() {
|
|
126
|
-
let e = {
|
|
127
|
-
line: n,
|
|
128
|
-
column: r
|
|
129
|
-
};
|
|
130
|
-
return (i) => (i.position = new c(e, {
|
|
131
|
-
line: n,
|
|
132
|
-
column: r
|
|
133
|
-
}, t?.source || ""), v(), i);
|
|
134
|
-
}
|
|
135
|
-
let a = [];
|
|
136
|
-
function o(i) {
|
|
137
|
-
let o = new s(t?.source || "", i, n, r, e);
|
|
138
|
-
if (!t?.silent) throw o;
|
|
139
|
-
a.push(o);
|
|
140
|
-
}
|
|
141
|
-
function u() {
|
|
142
|
-
let t = /^{\s*/.exec(e);
|
|
143
|
-
return !!t && (_(t), !0);
|
|
144
|
-
}
|
|
145
|
-
function h() {
|
|
146
|
-
let t = /^}/.exec(e);
|
|
147
|
-
return !!t && (_(t), !0);
|
|
148
|
-
}
|
|
149
|
-
function g() {
|
|
150
|
-
let t, n = [];
|
|
151
|
-
for (v(), y(n); e.length && e.charAt(0) !== "}" && (t = ne() || D(), t);) n.push(t), y(n);
|
|
152
|
-
return n;
|
|
153
|
-
}
|
|
154
|
-
function _(t) {
|
|
155
|
-
let i = t[0];
|
|
156
|
-
return function(e) {
|
|
157
|
-
let t = e.match(/\n/g);
|
|
158
|
-
t && (n += t.length);
|
|
159
|
-
let i = e.lastIndexOf("\n");
|
|
160
|
-
r = ~i ? e.length - i : r + e.length;
|
|
161
|
-
}(i), e = e.slice(i.length), t;
|
|
162
|
-
}
|
|
163
|
-
function v() {
|
|
164
|
-
let t = /^\s*/.exec(e);
|
|
165
|
-
t && _(t);
|
|
166
|
-
}
|
|
167
|
-
function y(e) {
|
|
168
|
-
e ||= [];
|
|
169
|
-
let t = b();
|
|
170
|
-
for (; t;) e.push(t), t = b();
|
|
171
|
-
return e;
|
|
172
|
-
}
|
|
173
|
-
function b() {
|
|
174
|
-
let t = i();
|
|
175
|
-
if (e.charAt(0) !== "/" || e.charAt(1) !== "*") return;
|
|
176
|
-
let n = /^\/\*[^]*?\*\//.exec(e);
|
|
177
|
-
return n ? (_(n), t({
|
|
178
|
-
type: l.comment,
|
|
179
|
-
comment: n[0].slice(2, -2)
|
|
180
|
-
})) : o("End of comment missing");
|
|
181
|
-
}
|
|
182
|
-
function x() {
|
|
183
|
-
let t = /^([^{]+)/.exec(e);
|
|
184
|
-
if (t) return _(t), ((e, t) => {
|
|
185
|
-
let n = [], r = 0;
|
|
186
|
-
for (; r < e.length;) {
|
|
187
|
-
let i = d(e, t, r);
|
|
188
|
-
if (i === -1) return n.push(e.substring(r)), n;
|
|
189
|
-
n.push(e.substring(r, i)), r = i + 1;
|
|
190
|
-
}
|
|
191
|
-
return n;
|
|
192
|
-
})(p(t[0]).replace(f, ""), [","]).map((e) => p(e));
|
|
193
|
-
}
|
|
194
|
-
function S() {
|
|
195
|
-
let t = i(), n = /^(\*?[-#/*\\\w]+(\[[0-9a-z_-]+\])?)\s*/.exec(e);
|
|
196
|
-
if (!n) return;
|
|
197
|
-
_(n);
|
|
198
|
-
let r = p(n[0]), a = /^:\s*/.exec(e);
|
|
199
|
-
if (!a) return o("property missing ':'");
|
|
200
|
-
_(a);
|
|
201
|
-
let s = "", c = d(e, [";", "}"]);
|
|
202
|
-
c !== -1 && (s = e.substring(0, c), _([s]), s = p(s).replace(f, ""));
|
|
203
|
-
let u = t({
|
|
204
|
-
type: l.declaration,
|
|
205
|
-
property: r.replace(f, ""),
|
|
206
|
-
value: s
|
|
207
|
-
}), m = /^[;\s]*/.exec(e);
|
|
208
|
-
return m && _(m), u;
|
|
209
|
-
}
|
|
210
|
-
function C() {
|
|
211
|
-
let e = [];
|
|
212
|
-
if (!u()) return o("missing '{'");
|
|
213
|
-
y(e);
|
|
214
|
-
let t = S();
|
|
215
|
-
for (; t;) e.push(t), y(e), t = S();
|
|
216
|
-
return h() ? e : o("missing '}'");
|
|
217
|
-
}
|
|
218
|
-
function w() {
|
|
219
|
-
let t = [], n = i(), r = /^((\d+\.\d+|\.\d+|\d+)%?|[a-z]+)\s*/.exec(e);
|
|
220
|
-
for (; r;) {
|
|
221
|
-
let n = _(r);
|
|
222
|
-
t.push(n[1]);
|
|
223
|
-
let i = /^,\s*/.exec(e);
|
|
224
|
-
i && _(i), r = /^((\d+\.\d+|\.\d+|\d+)%?|[a-z]+)\s*/.exec(e);
|
|
225
|
-
}
|
|
226
|
-
if (t.length) return n({
|
|
227
|
-
type: l.keyframe,
|
|
228
|
-
values: t,
|
|
229
|
-
declarations: C() || []
|
|
230
|
-
});
|
|
231
|
-
}
|
|
232
|
-
let ee = E("import"), te = E("charset"), T = E("namespace");
|
|
233
|
-
function E(t) {
|
|
234
|
-
let n = RegExp("^@" + t + "\\s*((?::?[^;'\"]|\"(?:\\\\\"|[^\"])*?\"|'(?:\\\\'|[^'])*?')+)(?:;|$)");
|
|
235
|
-
return () => {
|
|
236
|
-
let r = i(), a = n.exec(e);
|
|
237
|
-
if (!a) return;
|
|
238
|
-
let o = _(a), s = { type: t };
|
|
239
|
-
return s[t] = o[1].trim(), r(s);
|
|
240
|
-
};
|
|
241
|
-
}
|
|
242
|
-
function ne() {
|
|
243
|
-
if (e[0] === "@") return function() {
|
|
244
|
-
let t = i(), n = /^@([-\w]+)?keyframes\s*/.exec(e);
|
|
245
|
-
if (!n) return;
|
|
246
|
-
let r = _(n)[1], a = /^([-\w]+)\s*/.exec(e);
|
|
247
|
-
if (!a) return o("@keyframes missing name");
|
|
248
|
-
let s = _(a)[1];
|
|
249
|
-
if (!u()) return o("@keyframes missing '{'");
|
|
250
|
-
let c = y(), d = w();
|
|
251
|
-
for (; d;) c.push(d), c = c.concat(y()), d = w();
|
|
252
|
-
return h() ? t({
|
|
253
|
-
type: l.keyframes,
|
|
254
|
-
name: s,
|
|
255
|
-
vendor: r,
|
|
256
|
-
keyframes: c
|
|
257
|
-
}) : o("@keyframes missing '}'");
|
|
258
|
-
}() || function() {
|
|
259
|
-
let t = i(), n = /^@media *([^{]+)/.exec(e);
|
|
260
|
-
if (!n) return;
|
|
261
|
-
let r = p(_(n)[1]);
|
|
262
|
-
if (!u()) return o("@media missing '{'");
|
|
263
|
-
let a = y().concat(g());
|
|
264
|
-
return h() ? t({
|
|
265
|
-
type: l.media,
|
|
266
|
-
media: r,
|
|
267
|
-
rules: a
|
|
268
|
-
}) : o("@media missing '}'");
|
|
269
|
-
}() || function() {
|
|
270
|
-
let t = i(), n = /^@custom-media\s+(--\S+)\s+([^{;\s][^{;]*);/.exec(e);
|
|
271
|
-
if (!n) return;
|
|
272
|
-
let r = _(n);
|
|
273
|
-
return t({
|
|
274
|
-
type: l.customMedia,
|
|
275
|
-
name: p(r[1]),
|
|
276
|
-
media: p(r[2])
|
|
277
|
-
});
|
|
278
|
-
}() || function() {
|
|
279
|
-
let t = i(), n = /^@supports *([^{]+)/.exec(e);
|
|
280
|
-
if (!n) return;
|
|
281
|
-
let r = p(_(n)[1]);
|
|
282
|
-
if (!u()) return o("@supports missing '{'");
|
|
283
|
-
let a = y().concat(g());
|
|
284
|
-
return h() ? t({
|
|
285
|
-
type: l.supports,
|
|
286
|
-
supports: r,
|
|
287
|
-
rules: a
|
|
288
|
-
}) : o("@supports missing '}'");
|
|
289
|
-
}() || ee() || te() || T() || function() {
|
|
290
|
-
let t = i(), n = /^@([-\w]+)?document *([^{]+)/.exec(e);
|
|
291
|
-
if (!n) return;
|
|
292
|
-
let r = _(n), a = p(r[1]), s = p(r[2]);
|
|
293
|
-
if (!u()) return o("@document missing '{'");
|
|
294
|
-
let c = y().concat(g());
|
|
295
|
-
return h() ? t({
|
|
296
|
-
type: l.document,
|
|
297
|
-
document: s,
|
|
298
|
-
vendor: a,
|
|
299
|
-
rules: c
|
|
300
|
-
}) : o("@document missing '}'");
|
|
301
|
-
}() || function() {
|
|
302
|
-
let t = i(), n = /^@page */.exec(e);
|
|
303
|
-
if (!n) return;
|
|
304
|
-
_(n);
|
|
305
|
-
let r = x() || [];
|
|
306
|
-
if (!u()) return o("@page missing '{'");
|
|
307
|
-
let a = y(), s = S();
|
|
308
|
-
for (; s;) a.push(s), a = a.concat(y()), s = S();
|
|
309
|
-
return h() ? t({
|
|
310
|
-
type: l.page,
|
|
311
|
-
selectors: r,
|
|
312
|
-
declarations: a
|
|
313
|
-
}) : o("@page missing '}'");
|
|
314
|
-
}() || function() {
|
|
315
|
-
let t = i(), n = /^@host\s*/.exec(e);
|
|
316
|
-
if (!n) return;
|
|
317
|
-
if (_(n), !u()) return o("@host missing '{'");
|
|
318
|
-
let r = y().concat(g());
|
|
319
|
-
return h() ? t({
|
|
320
|
-
type: l.host,
|
|
321
|
-
rules: r
|
|
322
|
-
}) : o("@host missing '}'");
|
|
323
|
-
}() || function() {
|
|
324
|
-
let t = i(), n = /^@font-face\s*/.exec(e);
|
|
325
|
-
if (!n) return;
|
|
326
|
-
if (_(n), !u()) return o("@font-face missing '{'");
|
|
327
|
-
let r = y(), a = S();
|
|
328
|
-
for (; a;) r.push(a), r = r.concat(y()), a = S();
|
|
329
|
-
return h() ? t({
|
|
330
|
-
type: l.fontFace,
|
|
331
|
-
declarations: r
|
|
332
|
-
}) : o("@font-face missing '}'");
|
|
333
|
-
}() || function() {
|
|
334
|
-
let t = i(), n = /^@container *([^{]+)/.exec(e);
|
|
335
|
-
if (!n) return;
|
|
336
|
-
let r = p(_(n)[1]);
|
|
337
|
-
if (!u()) return o("@container missing '{'");
|
|
338
|
-
let a = y().concat(g());
|
|
339
|
-
return h() ? t({
|
|
340
|
-
type: l.container,
|
|
341
|
-
container: r,
|
|
342
|
-
rules: a
|
|
343
|
-
}) : o("@container missing '}'");
|
|
344
|
-
}() || function() {
|
|
345
|
-
let t = i(), n = /^@starting-style\s*/.exec(e);
|
|
346
|
-
if (!n) return;
|
|
347
|
-
if (_(n), !u()) return o("@starting-style missing '{'");
|
|
348
|
-
let r = y().concat(g());
|
|
349
|
-
return h() ? t({
|
|
350
|
-
type: l.startingStyle,
|
|
351
|
-
rules: r
|
|
352
|
-
}) : o("@starting-style missing '}'");
|
|
353
|
-
}() || function() {
|
|
354
|
-
let t = i(), n = /^@layer *([^{;@]+)/.exec(e);
|
|
355
|
-
if (!n) return;
|
|
356
|
-
let r = p(_(n)[1]);
|
|
357
|
-
if (!u()) {
|
|
358
|
-
let n = /^[;\s]*/.exec(e);
|
|
359
|
-
return n && _(n), t({
|
|
360
|
-
type: l.layer,
|
|
361
|
-
layer: r
|
|
362
|
-
});
|
|
363
|
-
}
|
|
364
|
-
let a = y().concat(g());
|
|
365
|
-
return h() ? t({
|
|
366
|
-
type: l.layer,
|
|
367
|
-
layer: r,
|
|
368
|
-
rules: a
|
|
369
|
-
}) : o("@layer missing '}'");
|
|
370
|
-
}();
|
|
371
|
-
}
|
|
372
|
-
function D() {
|
|
373
|
-
let e = i(), t = x();
|
|
374
|
-
return t ? (y(), e({
|
|
375
|
-
type: l.rule,
|
|
376
|
-
selectors: t,
|
|
377
|
-
declarations: C() || []
|
|
378
|
-
})) : o("selector missing");
|
|
379
|
-
}
|
|
380
|
-
return m(function() {
|
|
381
|
-
let e = g();
|
|
382
|
-
return {
|
|
383
|
-
type: l.stylesheet,
|
|
384
|
-
stylesheet: {
|
|
385
|
-
source: t?.source,
|
|
386
|
-
rules: e,
|
|
387
|
-
parsingErrors: a
|
|
388
|
-
}
|
|
389
|
-
};
|
|
390
|
-
}());
|
|
391
|
-
}, g = Object.prototype.toString;
|
|
392
|
-
function _(e) {
|
|
393
|
-
return typeof e == "function" || g.call(e) === "[object Function]";
|
|
394
|
-
}
|
|
395
|
-
function v(e) {
|
|
396
|
-
var t = Number(e);
|
|
397
|
-
return isNaN(t) ? 0 : t === 0 || !isFinite(t) ? t : (t > 0 ? 1 : -1) * Math.floor(Math.abs(t));
|
|
398
|
-
}
|
|
399
|
-
var y = 2 ** 53 - 1;
|
|
400
|
-
function b(e) {
|
|
401
|
-
var t = v(e);
|
|
402
|
-
return Math.min(Math.max(t, 0), y);
|
|
403
|
-
}
|
|
404
|
-
function x(e, t) {
|
|
405
|
-
var n = Array, r = Object(e);
|
|
406
|
-
if (e == null) throw TypeError("Array.from requires an array-like object - not null or undefined");
|
|
407
|
-
if (t !== void 0 && !_(t)) throw TypeError("Array.from: when provided, the second argument must be a function");
|
|
408
|
-
for (var i = b(r.length), a = _(n) ? Object(new n(i)) : Array(i), o = 0, s; o < i;) s = r[o], t ? a[o] = t(s, o) : a[o] = s, o += 1;
|
|
409
|
-
return a.length = i, a;
|
|
410
|
-
}
|
|
411
|
-
//#endregion
|
|
412
|
-
//#region node_modules/@testing-library/jest-dom/node_modules/dom-accessibility-api/dist/polyfills/SetLike.mjs
|
|
413
|
-
function S(e) {
|
|
414
|
-
"@babel/helpers - typeof";
|
|
415
|
-
return S = typeof Symbol == "function" && typeof Symbol.iterator == "symbol" ? function(e) {
|
|
416
|
-
return typeof e;
|
|
417
|
-
} : function(e) {
|
|
418
|
-
return e && typeof Symbol == "function" && e.constructor === Symbol && e !== Symbol.prototype ? "symbol" : typeof e;
|
|
419
|
-
}, S(e);
|
|
420
|
-
}
|
|
421
|
-
function C(e, t) {
|
|
422
|
-
if (!(e instanceof t)) throw TypeError("Cannot call a class as a function");
|
|
423
|
-
}
|
|
424
|
-
function w(e, t) {
|
|
425
|
-
for (var n = 0; n < t.length; n++) {
|
|
426
|
-
var r = t[n];
|
|
427
|
-
r.enumerable = r.enumerable || !1, r.configurable = !0, "value" in r && (r.writable = !0), Object.defineProperty(e, T(r.key), r);
|
|
428
|
-
}
|
|
429
|
-
}
|
|
430
|
-
function ee(e, t, n) {
|
|
431
|
-
return t && w(e.prototype, t), n && w(e, n), Object.defineProperty(e, "prototype", { writable: !1 }), e;
|
|
432
|
-
}
|
|
433
|
-
function te(e, t, n) {
|
|
434
|
-
return t = T(t), t in e ? Object.defineProperty(e, t, {
|
|
435
|
-
value: n,
|
|
436
|
-
enumerable: !0,
|
|
437
|
-
configurable: !0,
|
|
438
|
-
writable: !0
|
|
439
|
-
}) : e[t] = n, e;
|
|
440
|
-
}
|
|
441
|
-
function T(e) {
|
|
442
|
-
var t = E(e, "string");
|
|
443
|
-
return S(t) === "symbol" ? t : String(t);
|
|
444
|
-
}
|
|
445
|
-
function E(e, t) {
|
|
446
|
-
if (S(e) !== "object" || e === null) return e;
|
|
447
|
-
var n = e[Symbol.toPrimitive];
|
|
448
|
-
if (n !== void 0) {
|
|
449
|
-
var r = n.call(e, t || "default");
|
|
450
|
-
if (S(r) !== "object") return r;
|
|
451
|
-
throw TypeError("@@toPrimitive must return a primitive value.");
|
|
452
|
-
}
|
|
453
|
-
return (t === "string" ? String : Number)(e);
|
|
454
|
-
}
|
|
455
|
-
var ne = typeof Set > "u" ? Set : /* @__PURE__ */ function() {
|
|
456
|
-
function e() {
|
|
457
|
-
var t = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : [];
|
|
458
|
-
C(this, e), te(this, "items", void 0), this.items = t;
|
|
459
|
-
}
|
|
460
|
-
return ee(e, [
|
|
461
|
-
{
|
|
462
|
-
key: "add",
|
|
463
|
-
value: function(e) {
|
|
464
|
-
return this.has(e) === !1 && this.items.push(e), this;
|
|
465
|
-
}
|
|
466
|
-
},
|
|
467
|
-
{
|
|
468
|
-
key: "clear",
|
|
469
|
-
value: function() {
|
|
470
|
-
this.items = [];
|
|
471
|
-
}
|
|
472
|
-
},
|
|
473
|
-
{
|
|
474
|
-
key: "delete",
|
|
475
|
-
value: function(e) {
|
|
476
|
-
var t = this.items.length;
|
|
477
|
-
return this.items = this.items.filter(function(t) {
|
|
478
|
-
return t !== e;
|
|
479
|
-
}), t !== this.items.length;
|
|
480
|
-
}
|
|
481
|
-
},
|
|
482
|
-
{
|
|
483
|
-
key: "forEach",
|
|
484
|
-
value: function(e) {
|
|
485
|
-
var t = this;
|
|
486
|
-
this.items.forEach(function(n) {
|
|
487
|
-
e(n, n, t);
|
|
488
|
-
});
|
|
489
|
-
}
|
|
490
|
-
},
|
|
491
|
-
{
|
|
492
|
-
key: "has",
|
|
493
|
-
value: function(e) {
|
|
494
|
-
return this.items.indexOf(e) !== -1;
|
|
495
|
-
}
|
|
496
|
-
},
|
|
497
|
-
{
|
|
498
|
-
key: "size",
|
|
499
|
-
get: function() {
|
|
500
|
-
return this.items.length;
|
|
501
|
-
}
|
|
502
|
-
}
|
|
503
|
-
]), e;
|
|
504
|
-
}();
|
|
505
|
-
//#endregion
|
|
506
|
-
//#region node_modules/@testing-library/jest-dom/node_modules/dom-accessibility-api/dist/getRole.mjs
|
|
507
|
-
function D(e) {
|
|
508
|
-
return e.localName ?? e.tagName.toLowerCase();
|
|
509
|
-
}
|
|
510
|
-
var re = {
|
|
511
|
-
article: "article",
|
|
512
|
-
aside: "complementary",
|
|
513
|
-
button: "button",
|
|
514
|
-
datalist: "listbox",
|
|
515
|
-
dd: "definition",
|
|
516
|
-
details: "group",
|
|
517
|
-
dialog: "dialog",
|
|
518
|
-
dt: "term",
|
|
519
|
-
fieldset: "group",
|
|
520
|
-
figure: "figure",
|
|
521
|
-
form: "form",
|
|
522
|
-
footer: "contentinfo",
|
|
523
|
-
h1: "heading",
|
|
524
|
-
h2: "heading",
|
|
525
|
-
h3: "heading",
|
|
526
|
-
h4: "heading",
|
|
527
|
-
h5: "heading",
|
|
528
|
-
h6: "heading",
|
|
529
|
-
header: "banner",
|
|
530
|
-
hr: "separator",
|
|
531
|
-
html: "document",
|
|
532
|
-
legend: "legend",
|
|
533
|
-
li: "listitem",
|
|
534
|
-
math: "math",
|
|
535
|
-
main: "main",
|
|
536
|
-
menu: "list",
|
|
537
|
-
nav: "navigation",
|
|
538
|
-
ol: "list",
|
|
539
|
-
optgroup: "group",
|
|
540
|
-
option: "option",
|
|
541
|
-
output: "status",
|
|
542
|
-
progress: "progressbar",
|
|
543
|
-
section: "region",
|
|
544
|
-
summary: "button",
|
|
545
|
-
table: "table",
|
|
546
|
-
tbody: "rowgroup",
|
|
547
|
-
textarea: "textbox",
|
|
548
|
-
tfoot: "rowgroup",
|
|
549
|
-
td: "cell",
|
|
550
|
-
th: "columnheader",
|
|
551
|
-
thead: "rowgroup",
|
|
552
|
-
tr: "row",
|
|
553
|
-
ul: "list"
|
|
554
|
-
}, ie = {
|
|
555
|
-
caption: new Set(["aria-label", "aria-labelledby"]),
|
|
556
|
-
code: new Set(["aria-label", "aria-labelledby"]),
|
|
557
|
-
deletion: new Set(["aria-label", "aria-labelledby"]),
|
|
558
|
-
emphasis: new Set(["aria-label", "aria-labelledby"]),
|
|
559
|
-
generic: new Set([
|
|
560
|
-
"aria-label",
|
|
561
|
-
"aria-labelledby",
|
|
562
|
-
"aria-roledescription"
|
|
563
|
-
]),
|
|
564
|
-
insertion: new Set(["aria-label", "aria-labelledby"]),
|
|
565
|
-
none: new Set(["aria-label", "aria-labelledby"]),
|
|
566
|
-
paragraph: new Set(["aria-label", "aria-labelledby"]),
|
|
567
|
-
presentation: new Set(["aria-label", "aria-labelledby"]),
|
|
568
|
-
strong: new Set(["aria-label", "aria-labelledby"]),
|
|
569
|
-
subscript: new Set(["aria-label", "aria-labelledby"]),
|
|
570
|
-
superscript: new Set(["aria-label", "aria-labelledby"])
|
|
571
|
-
};
|
|
572
|
-
function ae(e, t) {
|
|
573
|
-
return [
|
|
574
|
-
"aria-atomic",
|
|
575
|
-
"aria-busy",
|
|
576
|
-
"aria-controls",
|
|
577
|
-
"aria-current",
|
|
578
|
-
"aria-description",
|
|
579
|
-
"aria-describedby",
|
|
580
|
-
"aria-details",
|
|
581
|
-
"aria-dropeffect",
|
|
582
|
-
"aria-flowto",
|
|
583
|
-
"aria-grabbed",
|
|
584
|
-
"aria-hidden",
|
|
585
|
-
"aria-keyshortcuts",
|
|
586
|
-
"aria-label",
|
|
587
|
-
"aria-labelledby",
|
|
588
|
-
"aria-live",
|
|
589
|
-
"aria-owns",
|
|
590
|
-
"aria-relevant",
|
|
591
|
-
"aria-roledescription"
|
|
592
|
-
].some(function(n) {
|
|
593
|
-
var r;
|
|
594
|
-
return e.hasAttribute(n) && !((r = ie[t]) != null && r.has(n));
|
|
595
|
-
});
|
|
596
|
-
}
|
|
597
|
-
function oe(e, t) {
|
|
598
|
-
return ae(e, t);
|
|
599
|
-
}
|
|
600
|
-
function se(e) {
|
|
601
|
-
var t = le(e);
|
|
602
|
-
if (t === null || O.indexOf(t) !== -1) {
|
|
603
|
-
var n = ce(e);
|
|
604
|
-
if (O.indexOf(t || "") === -1 || oe(e, n || "")) return n;
|
|
605
|
-
}
|
|
606
|
-
return t;
|
|
607
|
-
}
|
|
608
|
-
function ce(e) {
|
|
609
|
-
var t = re[D(e)];
|
|
610
|
-
if (t !== void 0) return t;
|
|
611
|
-
switch (D(e)) {
|
|
612
|
-
case "a":
|
|
613
|
-
case "area":
|
|
614
|
-
case "link":
|
|
615
|
-
if (e.hasAttribute("href")) return "link";
|
|
616
|
-
break;
|
|
617
|
-
case "img": return e.getAttribute("alt") === "" && !oe(e, "img") ? "presentation" : "img";
|
|
618
|
-
case "input":
|
|
619
|
-
var n = e.type;
|
|
620
|
-
switch (n) {
|
|
621
|
-
case "button":
|
|
622
|
-
case "image":
|
|
623
|
-
case "reset":
|
|
624
|
-
case "submit": return "button";
|
|
625
|
-
case "checkbox":
|
|
626
|
-
case "radio": return n;
|
|
627
|
-
case "range": return "slider";
|
|
628
|
-
case "email":
|
|
629
|
-
case "tel":
|
|
630
|
-
case "text":
|
|
631
|
-
case "url": return e.hasAttribute("list") ? "combobox" : "textbox";
|
|
632
|
-
case "search": return e.hasAttribute("list") ? "combobox" : "searchbox";
|
|
633
|
-
case "number": return "spinbutton";
|
|
634
|
-
default: return null;
|
|
635
|
-
}
|
|
636
|
-
case "select": return e.hasAttribute("multiple") || e.size > 1 ? "listbox" : "combobox";
|
|
637
|
-
}
|
|
638
|
-
return null;
|
|
639
|
-
}
|
|
640
|
-
function le(e) {
|
|
641
|
-
var t = e.getAttribute("role");
|
|
642
|
-
if (t !== null) {
|
|
643
|
-
var n = t.trim().split(" ")[0];
|
|
644
|
-
if (n.length > 0) return n;
|
|
645
|
-
}
|
|
646
|
-
return null;
|
|
647
|
-
}
|
|
648
|
-
//#endregion
|
|
649
|
-
//#region node_modules/@testing-library/jest-dom/node_modules/dom-accessibility-api/dist/util.mjs
|
|
650
|
-
var O = ["presentation", "none"];
|
|
651
|
-
function k(e) {
|
|
652
|
-
return e !== null && e.nodeType === e.ELEMENT_NODE;
|
|
653
|
-
}
|
|
654
|
-
function ue(e) {
|
|
655
|
-
return k(e) && D(e) === "caption";
|
|
656
|
-
}
|
|
657
|
-
function A(e) {
|
|
658
|
-
return k(e) && D(e) === "input";
|
|
659
|
-
}
|
|
660
|
-
function de(e) {
|
|
661
|
-
return k(e) && D(e) === "optgroup";
|
|
662
|
-
}
|
|
663
|
-
function fe(e) {
|
|
664
|
-
return k(e) && D(e) === "select";
|
|
665
|
-
}
|
|
666
|
-
function pe(e) {
|
|
667
|
-
return k(e) && D(e) === "table";
|
|
668
|
-
}
|
|
669
|
-
function me(e) {
|
|
670
|
-
return k(e) && D(e) === "textarea";
|
|
671
|
-
}
|
|
672
|
-
function he(e) {
|
|
673
|
-
var t = (e.ownerDocument === null ? e : e.ownerDocument).defaultView;
|
|
674
|
-
if (t === null) throw TypeError("no window available");
|
|
675
|
-
return t;
|
|
676
|
-
}
|
|
677
|
-
function ge(e) {
|
|
678
|
-
return k(e) && D(e) === "fieldset";
|
|
679
|
-
}
|
|
680
|
-
function _e(e) {
|
|
681
|
-
return k(e) && D(e) === "legend";
|
|
682
|
-
}
|
|
683
|
-
function ve(e) {
|
|
684
|
-
return k(e) && D(e) === "slot";
|
|
685
|
-
}
|
|
686
|
-
function ye(e) {
|
|
687
|
-
return k(e) && e.ownerSVGElement !== void 0;
|
|
688
|
-
}
|
|
689
|
-
function be(e) {
|
|
690
|
-
return k(e) && D(e) === "svg";
|
|
691
|
-
}
|
|
692
|
-
function xe(e) {
|
|
693
|
-
return ye(e) && D(e) === "title";
|
|
694
|
-
}
|
|
695
|
-
function j(e, t) {
|
|
696
|
-
if (k(e) && e.hasAttribute(t)) {
|
|
697
|
-
var n = e.getAttribute(t).split(" "), r = e.getRootNode ? e.getRootNode() : e.ownerDocument;
|
|
698
|
-
return n.map(function(e) {
|
|
699
|
-
return r.getElementById(e);
|
|
700
|
-
}).filter(function(e) {
|
|
701
|
-
return e !== null;
|
|
702
|
-
});
|
|
703
|
-
}
|
|
704
|
-
return [];
|
|
705
|
-
}
|
|
706
|
-
function M(e, t) {
|
|
707
|
-
return k(e) ? t.indexOf(se(e)) !== -1 : !1;
|
|
708
|
-
}
|
|
709
|
-
//#endregion
|
|
710
|
-
//#region node_modules/@testing-library/jest-dom/node_modules/dom-accessibility-api/dist/accessible-name-and-description.mjs
|
|
711
|
-
function Se(e) {
|
|
712
|
-
return e.trim().replace(/\s\s+/g, " ");
|
|
713
|
-
}
|
|
714
|
-
function Ce(e, t) {
|
|
715
|
-
if (!k(e)) return !1;
|
|
716
|
-
if (e.hasAttribute("hidden") || e.getAttribute("aria-hidden") === "true") return !0;
|
|
717
|
-
var n = t(e);
|
|
718
|
-
return n.getPropertyValue("display") === "none" || n.getPropertyValue("visibility") === "hidden";
|
|
719
|
-
}
|
|
720
|
-
function we(e) {
|
|
721
|
-
return M(e, [
|
|
722
|
-
"button",
|
|
723
|
-
"combobox",
|
|
724
|
-
"listbox",
|
|
725
|
-
"textbox"
|
|
726
|
-
]) || N(e, "range");
|
|
727
|
-
}
|
|
728
|
-
function N(e, t) {
|
|
729
|
-
if (!k(e)) return !1;
|
|
730
|
-
switch (t) {
|
|
731
|
-
case "range": return M(e, [
|
|
732
|
-
"meter",
|
|
733
|
-
"progressbar",
|
|
734
|
-
"scrollbar",
|
|
735
|
-
"slider",
|
|
736
|
-
"spinbutton"
|
|
737
|
-
]);
|
|
738
|
-
default: throw TypeError(`No knowledge about abstract role '${t}'. This is likely a bug :(`);
|
|
739
|
-
}
|
|
740
|
-
}
|
|
741
|
-
function P(e, t) {
|
|
742
|
-
var n = x(e.querySelectorAll(t));
|
|
743
|
-
return j(e, "aria-owns").forEach(function(e) {
|
|
744
|
-
n.push.apply(n, x(e.querySelectorAll(t)));
|
|
745
|
-
}), n;
|
|
746
|
-
}
|
|
747
|
-
function Te(e) {
|
|
748
|
-
return fe(e) ? e.selectedOptions || P(e, "[selected]") : P(e, "[aria-selected=\"true\"]");
|
|
749
|
-
}
|
|
750
|
-
function Ee(e) {
|
|
751
|
-
return M(e, O);
|
|
752
|
-
}
|
|
753
|
-
function De(e) {
|
|
754
|
-
return ue(e);
|
|
755
|
-
}
|
|
756
|
-
function Oe(e) {
|
|
757
|
-
return M(e, [
|
|
758
|
-
"button",
|
|
759
|
-
"cell",
|
|
760
|
-
"checkbox",
|
|
761
|
-
"columnheader",
|
|
762
|
-
"gridcell",
|
|
763
|
-
"heading",
|
|
764
|
-
"label",
|
|
765
|
-
"legend",
|
|
766
|
-
"link",
|
|
767
|
-
"menuitem",
|
|
768
|
-
"menuitemcheckbox",
|
|
769
|
-
"menuitemradio",
|
|
770
|
-
"option",
|
|
771
|
-
"radio",
|
|
772
|
-
"row",
|
|
773
|
-
"rowheader",
|
|
774
|
-
"switch",
|
|
775
|
-
"tab",
|
|
776
|
-
"tooltip",
|
|
777
|
-
"treeitem"
|
|
778
|
-
]);
|
|
779
|
-
}
|
|
780
|
-
function ke(e) {
|
|
781
|
-
return !1;
|
|
782
|
-
}
|
|
783
|
-
function Ae(e) {
|
|
784
|
-
return A(e) || me(e) ? e.value : e.textContent || "";
|
|
785
|
-
}
|
|
786
|
-
function F(e) {
|
|
787
|
-
var t = e.getPropertyValue("content");
|
|
788
|
-
return /^["'].*["']$/.test(t) ? t.slice(1, -1) : "";
|
|
789
|
-
}
|
|
790
|
-
function I(e) {
|
|
791
|
-
var t = D(e);
|
|
792
|
-
return t === "button" || t === "input" && e.getAttribute("type") !== "hidden" || t === "meter" || t === "output" || t === "progress" || t === "select" || t === "textarea";
|
|
793
|
-
}
|
|
794
|
-
function je(e) {
|
|
795
|
-
if (I(e)) return e;
|
|
796
|
-
var t = null;
|
|
797
|
-
return e.childNodes.forEach(function(e) {
|
|
798
|
-
if (t === null && k(e)) {
|
|
799
|
-
var n = je(e);
|
|
800
|
-
n !== null && (t = n);
|
|
801
|
-
}
|
|
802
|
-
}), t;
|
|
803
|
-
}
|
|
804
|
-
function Me(e) {
|
|
805
|
-
if (e.control !== void 0) return e.control;
|
|
806
|
-
var t = e.getAttribute("for");
|
|
807
|
-
return t === null ? je(e) : e.ownerDocument.getElementById(t);
|
|
808
|
-
}
|
|
809
|
-
function Ne(e) {
|
|
810
|
-
var t = e.labels;
|
|
811
|
-
if (t === null) return t;
|
|
812
|
-
if (t !== void 0) return x(t);
|
|
813
|
-
if (!I(e)) return null;
|
|
814
|
-
var n = e.ownerDocument;
|
|
815
|
-
return x(n.querySelectorAll("label")).filter(function(t) {
|
|
816
|
-
return Me(t) === e;
|
|
817
|
-
});
|
|
818
|
-
}
|
|
819
|
-
function Pe(e) {
|
|
820
|
-
var t = e.assignedNodes();
|
|
821
|
-
return t.length === 0 ? x(e.childNodes) : t;
|
|
822
|
-
}
|
|
823
|
-
function Fe(e) {
|
|
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
|
-
function f(e, t) {
|
|
826
|
-
var n = "";
|
|
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
|
-
var r = g(e, {
|
|
829
|
-
isEmbeddedInLabel: t.isEmbeddedInLabel,
|
|
830
|
-
isReferenced: !1,
|
|
831
|
-
recursion: !0
|
|
832
|
-
}), i = (k(e) ? l(e).getPropertyValue("display") : "inline") === "inline" ? "" : " ";
|
|
833
|
-
n += `${i}${r}${i}`;
|
|
834
|
-
}), k(e) && s) {
|
|
835
|
-
var r = F(l(e, "::after"));
|
|
836
|
-
n = `${n} ${r}`;
|
|
837
|
-
}
|
|
838
|
-
return n.trim();
|
|
839
|
-
}
|
|
840
|
-
function p(e, t) {
|
|
841
|
-
var r = e.getAttributeNode(t);
|
|
842
|
-
return r !== null && !n.has(r) && r.value.trim() !== "" ? (n.add(r), r.value) : null;
|
|
843
|
-
}
|
|
844
|
-
function m(e) {
|
|
845
|
-
return k(e) ? p(e, "title") : null;
|
|
846
|
-
}
|
|
847
|
-
function h(e) {
|
|
848
|
-
if (!k(e)) return null;
|
|
849
|
-
if (ge(e)) {
|
|
850
|
-
n.add(e);
|
|
851
|
-
for (var t = x(e.childNodes), r = 0; r < t.length; r += 1) {
|
|
852
|
-
var i = t[r];
|
|
853
|
-
if (_e(i)) return g(i, {
|
|
854
|
-
isEmbeddedInLabel: !1,
|
|
855
|
-
isReferenced: !1,
|
|
856
|
-
recursion: !1
|
|
857
|
-
});
|
|
858
|
-
}
|
|
859
|
-
} else if (pe(e)) {
|
|
860
|
-
n.add(e);
|
|
861
|
-
for (var a = x(e.childNodes), o = 0; o < a.length; o += 1) {
|
|
862
|
-
var s = a[o];
|
|
863
|
-
if (ue(s)) return g(s, {
|
|
864
|
-
isEmbeddedInLabel: !1,
|
|
865
|
-
isReferenced: !1,
|
|
866
|
-
recursion: !1
|
|
867
|
-
});
|
|
868
|
-
}
|
|
869
|
-
} else if (be(e)) {
|
|
870
|
-
n.add(e);
|
|
871
|
-
for (var c = x(e.childNodes), l = 0; l < c.length; l += 1) {
|
|
872
|
-
var u = c[l];
|
|
873
|
-
if (xe(u)) return u.textContent;
|
|
874
|
-
}
|
|
875
|
-
return null;
|
|
876
|
-
} else if (D(e) === "img" || D(e) === "area") {
|
|
877
|
-
var d = p(e, "alt");
|
|
878
|
-
if (d !== null) return d;
|
|
879
|
-
} else if (de(e)) {
|
|
880
|
-
var m = p(e, "label");
|
|
881
|
-
if (m !== null) return m;
|
|
882
|
-
}
|
|
883
|
-
if (A(e) && (e.type === "button" || e.type === "submit" || e.type === "reset")) {
|
|
884
|
-
var h = p(e, "value");
|
|
885
|
-
if (h !== null) return h;
|
|
886
|
-
if (e.type === "submit") return "Submit";
|
|
887
|
-
if (e.type === "reset") return "Reset";
|
|
888
|
-
}
|
|
889
|
-
var _ = Ne(e);
|
|
890
|
-
if (_ !== null && _.length !== 0) return n.add(e), x(_).map(function(e) {
|
|
891
|
-
return g(e, {
|
|
892
|
-
isEmbeddedInLabel: !0,
|
|
893
|
-
isReferenced: !1,
|
|
894
|
-
recursion: !0
|
|
895
|
-
});
|
|
896
|
-
}).filter(function(e) {
|
|
897
|
-
return e.length > 0;
|
|
898
|
-
}).join(" ");
|
|
899
|
-
if (A(e) && e.type === "image") {
|
|
900
|
-
var v = p(e, "alt");
|
|
901
|
-
if (v !== null) return v;
|
|
902
|
-
var y = p(e, "title");
|
|
903
|
-
return y === null ? "Submit Query" : y;
|
|
904
|
-
}
|
|
905
|
-
if (M(e, ["button"])) {
|
|
906
|
-
var b = f(e, {
|
|
907
|
-
isEmbeddedInLabel: !1,
|
|
908
|
-
isReferenced: !1
|
|
909
|
-
});
|
|
910
|
-
if (b !== "") return b;
|
|
911
|
-
}
|
|
912
|
-
return null;
|
|
913
|
-
}
|
|
914
|
-
function g(e, t) {
|
|
915
|
-
if (n.has(e)) return "";
|
|
916
|
-
if (!d && Ce(e, l) && !t.isReferenced) return n.add(e), "";
|
|
917
|
-
var r = k(e) ? e.getAttributeNode("aria-labelledby") : null, i = r !== null && !n.has(r) ? j(e, "aria-labelledby") : [];
|
|
918
|
-
if (a === "name" && !t.isReferenced && i.length > 0) return n.add(r), i.map(function(e) {
|
|
919
|
-
return g(e, {
|
|
920
|
-
isEmbeddedInLabel: t.isEmbeddedInLabel,
|
|
921
|
-
isReferenced: !0,
|
|
922
|
-
recursion: !1
|
|
923
|
-
});
|
|
924
|
-
}).join(" ");
|
|
925
|
-
var o = t.recursion && we(e) && a === "name";
|
|
926
|
-
if (!o) {
|
|
927
|
-
var s = (k(e) && e.getAttribute("aria-label") || "").trim();
|
|
928
|
-
if (s !== "" && a === "name") return n.add(e), s;
|
|
929
|
-
if (!Ee(e)) {
|
|
930
|
-
var c = h(e);
|
|
931
|
-
if (c !== null) return n.add(e), c;
|
|
932
|
-
}
|
|
933
|
-
}
|
|
934
|
-
if (M(e, ["menu"])) return n.add(e), "";
|
|
935
|
-
if (o || t.isEmbeddedInLabel || t.isReferenced) {
|
|
936
|
-
if (M(e, ["combobox", "listbox"])) {
|
|
937
|
-
n.add(e);
|
|
938
|
-
var u = Te(e);
|
|
939
|
-
return u.length === 0 ? A(e) ? e.value : "" : x(u).map(function(e) {
|
|
940
|
-
return g(e, {
|
|
941
|
-
isEmbeddedInLabel: t.isEmbeddedInLabel,
|
|
942
|
-
isReferenced: !1,
|
|
943
|
-
recursion: !0
|
|
944
|
-
});
|
|
945
|
-
}).join(" ");
|
|
946
|
-
}
|
|
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
|
-
}
|
|
950
|
-
if (Oe(e) || k(e) && t.isReferenced || De(e) || ke(e)) {
|
|
951
|
-
var p = f(e, {
|
|
952
|
-
isEmbeddedInLabel: t.isEmbeddedInLabel,
|
|
953
|
-
isReferenced: !1
|
|
954
|
-
});
|
|
955
|
-
if (p !== "") return n.add(e), p;
|
|
956
|
-
}
|
|
957
|
-
if (e.nodeType === e.TEXT_NODE) return n.add(e), e.textContent || "";
|
|
958
|
-
if (t.recursion) return n.add(e), f(e, {
|
|
959
|
-
isEmbeddedInLabel: t.isEmbeddedInLabel,
|
|
960
|
-
isReferenced: !1
|
|
961
|
-
});
|
|
962
|
-
var _ = m(e);
|
|
963
|
-
return _ === null ? (n.add(e), "") : (n.add(e), _);
|
|
964
|
-
}
|
|
965
|
-
return Se(g(e, {
|
|
966
|
-
isEmbeddedInLabel: !1,
|
|
967
|
-
isReferenced: a === "description",
|
|
968
|
-
recursion: !1
|
|
969
|
-
}));
|
|
970
|
-
}
|
|
971
|
-
//#endregion
|
|
972
|
-
//#region node_modules/@testing-library/jest-dom/node_modules/dom-accessibility-api/dist/accessible-description.mjs
|
|
973
|
-
function L(e) {
|
|
974
|
-
"@babel/helpers - typeof";
|
|
975
|
-
return L = typeof Symbol == "function" && typeof Symbol.iterator == "symbol" ? function(e) {
|
|
976
|
-
return typeof e;
|
|
977
|
-
} : function(e) {
|
|
978
|
-
return e && typeof Symbol == "function" && e.constructor === Symbol && e !== Symbol.prototype ? "symbol" : typeof e;
|
|
979
|
-
}, L(e);
|
|
980
|
-
}
|
|
981
|
-
function Ie(e, t) {
|
|
982
|
-
var n = Object.keys(e);
|
|
983
|
-
if (Object.getOwnPropertySymbols) {
|
|
984
|
-
var r = Object.getOwnPropertySymbols(e);
|
|
985
|
-
t && (r = r.filter(function(t) {
|
|
986
|
-
return Object.getOwnPropertyDescriptor(e, t).enumerable;
|
|
987
|
-
})), n.push.apply(n, r);
|
|
988
|
-
}
|
|
989
|
-
return n;
|
|
990
|
-
}
|
|
991
|
-
function Le(e) {
|
|
992
|
-
for (var t = 1; t < arguments.length; t++) {
|
|
993
|
-
var n = arguments[t] == null ? {} : arguments[t];
|
|
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
|
-
Object.defineProperty(e, t, Object.getOwnPropertyDescriptor(n, t));
|
|
998
|
-
});
|
|
999
|
-
}
|
|
1000
|
-
return e;
|
|
1001
|
-
}
|
|
1002
|
-
function Re(e, t, n) {
|
|
1003
|
-
return t = ze(t), t in e ? Object.defineProperty(e, t, {
|
|
1004
|
-
value: n,
|
|
1005
|
-
enumerable: !0,
|
|
1006
|
-
configurable: !0,
|
|
1007
|
-
writable: !0
|
|
1008
|
-
}) : e[t] = n, e;
|
|
1009
|
-
}
|
|
1010
|
-
function ze(e) {
|
|
1011
|
-
var t = Be(e, "string");
|
|
1012
|
-
return L(t) === "symbol" ? t : String(t);
|
|
1013
|
-
}
|
|
1014
|
-
function Be(e, t) {
|
|
1015
|
-
if (L(e) !== "object" || e === null) return e;
|
|
1016
|
-
var n = e[Symbol.toPrimitive];
|
|
1017
|
-
if (n !== void 0) {
|
|
1018
|
-
var r = n.call(e, t || "default");
|
|
1019
|
-
if (L(r) !== "object") return r;
|
|
1020
|
-
throw TypeError("@@toPrimitive must return a primitive value.");
|
|
1021
|
-
}
|
|
1022
|
-
return (t === "string" ? String : Number)(e);
|
|
1023
|
-
}
|
|
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
|
-
}).join(" ");
|
|
1028
|
-
if (n === "") {
|
|
1029
|
-
var r = e.getAttribute("aria-description");
|
|
1030
|
-
n = r === null ? "" : r;
|
|
1031
|
-
}
|
|
1032
|
-
if (n === "") {
|
|
1033
|
-
var i = e.getAttribute("title");
|
|
1034
|
-
n = i === null ? "" : i;
|
|
1035
|
-
}
|
|
1036
|
-
return n;
|
|
1037
|
-
}
|
|
1038
|
-
//#endregion
|
|
1039
|
-
//#region node_modules/@testing-library/jest-dom/node_modules/dom-accessibility-api/dist/accessible-name.mjs
|
|
1040
|
-
function He(e) {
|
|
1041
|
-
return M(e, [
|
|
1042
|
-
"caption",
|
|
1043
|
-
"code",
|
|
1044
|
-
"deletion",
|
|
1045
|
-
"emphasis",
|
|
1046
|
-
"generic",
|
|
1047
|
-
"insertion",
|
|
1048
|
-
"none",
|
|
1049
|
-
"paragraph",
|
|
1050
|
-
"presentation",
|
|
1051
|
-
"strong",
|
|
1052
|
-
"subscript",
|
|
1053
|
-
"superscript"
|
|
1054
|
-
]);
|
|
1055
|
-
}
|
|
1056
|
-
function Ue(e) {
|
|
1057
|
-
var t = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {};
|
|
1058
|
-
return He(e) ? "" : Fe(e, t);
|
|
1059
|
-
}
|
|
1060
|
-
//#endregion
|
|
1061
|
-
//#region node_modules/picocolors/picocolors.browser.js
|
|
1062
|
-
var We = /* @__PURE__ */ t(((e, t) => {
|
|
1063
|
-
var n = String, r = function() {
|
|
1064
|
-
return {
|
|
1065
|
-
isColorSupported: !1,
|
|
1066
|
-
reset: n,
|
|
1067
|
-
bold: n,
|
|
1068
|
-
dim: n,
|
|
1069
|
-
italic: n,
|
|
1070
|
-
underline: n,
|
|
1071
|
-
inverse: n,
|
|
1072
|
-
hidden: n,
|
|
1073
|
-
strikethrough: n,
|
|
1074
|
-
black: n,
|
|
1075
|
-
red: n,
|
|
1076
|
-
green: n,
|
|
1077
|
-
yellow: n,
|
|
1078
|
-
blue: n,
|
|
1079
|
-
magenta: n,
|
|
1080
|
-
cyan: n,
|
|
1081
|
-
white: n,
|
|
1082
|
-
gray: n,
|
|
1083
|
-
bgBlack: n,
|
|
1084
|
-
bgRed: n,
|
|
1085
|
-
bgGreen: n,
|
|
1086
|
-
bgYellow: n,
|
|
1087
|
-
bgBlue: n,
|
|
1088
|
-
bgMagenta: n,
|
|
1089
|
-
bgCyan: n,
|
|
1090
|
-
bgWhite: n,
|
|
1091
|
-
blackBright: n,
|
|
1092
|
-
redBright: n,
|
|
1093
|
-
greenBright: n,
|
|
1094
|
-
yellowBright: n,
|
|
1095
|
-
blueBright: n,
|
|
1096
|
-
magentaBright: n,
|
|
1097
|
-
cyanBright: n,
|
|
1098
|
-
whiteBright: n,
|
|
1099
|
-
bgBlackBright: n,
|
|
1100
|
-
bgRedBright: n,
|
|
1101
|
-
bgGreenBright: n,
|
|
1102
|
-
bgYellowBright: n,
|
|
1103
|
-
bgBlueBright: n,
|
|
1104
|
-
bgMagentaBright: n,
|
|
1105
|
-
bgCyanBright: n,
|
|
1106
|
-
bgWhiteBright: n
|
|
1107
|
-
};
|
|
1108
|
-
};
|
|
1109
|
-
t.exports = r(), t.exports.createColors = r;
|
|
1110
|
-
})), Ge = /* @__PURE__ */ t(((e, t) => {
|
|
1111
|
-
(function(n, r) {
|
|
1112
|
-
typeof e == "object" ? t.exports = r(n) : typeof define == "function" && define.amd ? define([], r.bind(n, n)) : r(n);
|
|
1113
|
-
})(typeof global < "u" ? global : e, function(e) {
|
|
1114
|
-
if (e.CSS && e.CSS.escape) return e.CSS.escape;
|
|
1115
|
-
var t = function(e) {
|
|
1116
|
-
if (arguments.length == 0) throw TypeError("`CSS.escape` requires an argument.");
|
|
1117
|
-
for (var t = String(e), n = t.length, r = -1, i, a = "", o = t.charCodeAt(0); ++r < n;) {
|
|
1118
|
-
if (i = t.charCodeAt(r), i == 0) {
|
|
1119
|
-
a += "�";
|
|
1120
|
-
continue;
|
|
1121
|
-
}
|
|
1122
|
-
if (i >= 1 && i <= 31 || i == 127 || r == 0 && i >= 48 && i <= 57 || r == 1 && i >= 48 && i <= 57 && o == 45) {
|
|
1123
|
-
a += "\\" + i.toString(16) + " ";
|
|
1124
|
-
continue;
|
|
1125
|
-
}
|
|
1126
|
-
if (r == 0 && n == 1 && i == 45) {
|
|
1127
|
-
a += "\\" + t.charAt(r);
|
|
1128
|
-
continue;
|
|
1129
|
-
}
|
|
1130
|
-
if (i >= 128 || i == 45 || i == 95 || i >= 48 && i <= 57 || i >= 65 && i <= 90 || i >= 97 && i <= 122) {
|
|
1131
|
-
a += t.charAt(r);
|
|
1132
|
-
continue;
|
|
1133
|
-
}
|
|
1134
|
-
a += "\\" + t.charAt(r);
|
|
1135
|
-
}
|
|
1136
|
-
return a;
|
|
1137
|
-
};
|
|
1138
|
-
return e.CSS ||= {}, e.CSS.escape = t, t;
|
|
1139
|
-
});
|
|
1140
|
-
})), R = n(), Ke = /* @__PURE__ */ e(We(), 1), qe = /* @__PURE__ */ e(Ge(), 1), Je = class extends Error {
|
|
1141
|
-
constructor(e, t, n, r) {
|
|
1142
|
-
/* istanbul ignore next */
|
|
1143
|
-
super(), Error.captureStackTrace && Error.captureStackTrace(this, n);
|
|
1144
|
-
let i = "";
|
|
1145
|
-
try {
|
|
1146
|
-
i = r.utils.printWithType("Received", t, r.utils.printReceived);
|
|
1147
|
-
} catch {}
|
|
1148
|
-
this.message = [
|
|
1149
|
-
r.utils.matcherHint(`${r.isNot ? ".not" : ""}.${n.name}`, "received", ""),
|
|
1150
|
-
"",
|
|
1151
|
-
`${r.utils.RECEIVED_COLOR("received")} value must ${e}.`,
|
|
1152
|
-
i
|
|
1153
|
-
].join("\n");
|
|
1154
|
-
}
|
|
1155
|
-
}, Ye = class extends Je {
|
|
1156
|
-
constructor(...e) {
|
|
1157
|
-
super("be an HTMLElement or an SVGElement", ...e);
|
|
1158
|
-
}
|
|
1159
|
-
}, Xe = class extends Je {
|
|
1160
|
-
constructor(...e) {
|
|
1161
|
-
super("be a Node", ...e);
|
|
1162
|
-
}
|
|
1163
|
-
};
|
|
1164
|
-
function Ze(e, t, ...n) {
|
|
1165
|
-
if (!e || !e.ownerDocument || !e.ownerDocument.defaultView) throw new t(e, ...n);
|
|
1166
|
-
}
|
|
1167
|
-
function Qe(e, ...t) {
|
|
1168
|
-
if (Ze(e, Xe, ...t), !(e instanceof e.ownerDocument.defaultView.Node)) throw new Xe(e, ...t);
|
|
1169
|
-
}
|
|
1170
|
-
function z(e, ...t) {
|
|
1171
|
-
Ze(e, Ye, ...t);
|
|
1172
|
-
let n = e.ownerDocument.defaultView;
|
|
1173
|
-
if (!(e instanceof n.HTMLElement) && !(e instanceof n.SVGElement)) throw new Ye(e, ...t);
|
|
1174
|
-
}
|
|
1175
|
-
var $e = class extends Error {
|
|
1176
|
-
constructor(e, t, n) {
|
|
1177
|
-
super(), Error.captureStackTrace && Error.captureStackTrace(this, t), this.message = [
|
|
1178
|
-
e.message,
|
|
1179
|
-
"",
|
|
1180
|
-
n.utils.RECEIVED_COLOR("Failing css:"),
|
|
1181
|
-
n.utils.RECEIVED_COLOR(`${e.css}`)
|
|
1182
|
-
].join("\n");
|
|
1183
|
-
}
|
|
1184
|
-
};
|
|
1185
|
-
function et(e, ...t) {
|
|
1186
|
-
let n = h(`selector { ${e} }`, { silent: !0 }).stylesheet;
|
|
1187
|
-
if (n.parsingErrors && n.parsingErrors.length > 0) {
|
|
1188
|
-
let { reason: r, line: i } = n.parsingErrors[0];
|
|
1189
|
-
throw new $e({
|
|
1190
|
-
css: e,
|
|
1191
|
-
message: `Syntax error parsing expected css: ${r} on line: ${i}`
|
|
1192
|
-
}, ...t);
|
|
1193
|
-
}
|
|
1194
|
-
return n.rules[0].declarations.filter((e) => e.type === "declaration").reduce((e, { property: t, value: n }) => Object.assign(e, { [t]: n }), {});
|
|
1195
|
-
}
|
|
1196
|
-
function tt(e, t) {
|
|
1197
|
-
return typeof t == "string" ? t : e.utils.stringify(t);
|
|
1198
|
-
}
|
|
1199
|
-
function B(e, t, n, r, i, a) {
|
|
1200
|
-
return [
|
|
1201
|
-
`${t}\n`,
|
|
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
|
-
].join("\n");
|
|
1205
|
-
}
|
|
1206
|
-
function nt(e, t) {
|
|
1207
|
-
return t instanceof RegExp ? t.test(e) : e.includes(String(t));
|
|
1208
|
-
}
|
|
1209
|
-
function V(e, t) {
|
|
1210
|
-
console.warn(`Warning: ${e} has been deprecated and will be removed in future updates.`, t);
|
|
1211
|
-
}
|
|
1212
|
-
function H(e) {
|
|
1213
|
-
return e.replace(/\s+/g, " ").trim();
|
|
1214
|
-
}
|
|
1215
|
-
function U(e) {
|
|
1216
|
-
return e.tagName && e.tagName.toLowerCase();
|
|
1217
|
-
}
|
|
1218
|
-
function rt({ multiple: e, options: t }) {
|
|
1219
|
-
let n = [...t].filter((e) => e.selected);
|
|
1220
|
-
if (e) return [...n].map((e) => e.value);
|
|
1221
|
-
if (n.length !== 0) return n[0].value;
|
|
1222
|
-
}
|
|
1223
|
-
function it(e) {
|
|
1224
|
-
switch (e.type) {
|
|
1225
|
-
case "number": return e.value === "" ? null : Number(e.value);
|
|
1226
|
-
case "checkbox": return e.checked;
|
|
1227
|
-
default: return e.value;
|
|
1228
|
-
}
|
|
1229
|
-
}
|
|
1230
|
-
var at = [
|
|
1231
|
-
"meter",
|
|
1232
|
-
"progressbar",
|
|
1233
|
-
"slider",
|
|
1234
|
-
"spinbutton"
|
|
1235
|
-
];
|
|
1236
|
-
function ot(e) {
|
|
1237
|
-
if (at.includes(e.getAttribute("role"))) return Number(e.getAttribute("aria-valuenow"));
|
|
1238
|
-
}
|
|
1239
|
-
function st(e) {
|
|
1240
|
-
if (e) switch (e.tagName.toLowerCase()) {
|
|
1241
|
-
case "input": return it(e);
|
|
1242
|
-
case "select": return rt(e);
|
|
1243
|
-
default: return e.value ?? ot(e);
|
|
1244
|
-
}
|
|
1245
|
-
}
|
|
1246
|
-
function ct(e, { wordConnector: t = ", ", lastWordConnector: n = " and " } = {}) {
|
|
1247
|
-
return [e.slice(0, -1).join(t), e[e.length - 1]].join(e.length > 1 ? n : "");
|
|
1248
|
-
}
|
|
1249
|
-
function W(e, t) {
|
|
1250
|
-
return Array.isArray(e) && Array.isArray(t) ? [...new Set(e)].every((e) => new Set(t).has(e)) : e === t;
|
|
1251
|
-
}
|
|
1252
|
-
function G(e, t) {
|
|
1253
|
-
return V("toBeInTheDOM", "Please use toBeInTheDocument for searching the entire document and toContainElement for searching a specific container."), e && z(e, G, this), t && z(t, G, this), {
|
|
1254
|
-
pass: t ? t.contains(e) : !!e,
|
|
1255
|
-
message: () => [
|
|
1256
|
-
this.utils.matcherHint(`${this.isNot ? ".not" : ""}.toBeInTheDOM`, "element", ""),
|
|
1257
|
-
"",
|
|
1258
|
-
"Received:",
|
|
1259
|
-
` ${this.utils.printReceived(e && e.cloneNode(!1))}`
|
|
1260
|
-
].join("\n")
|
|
1261
|
-
};
|
|
1262
|
-
}
|
|
1263
|
-
function lt(e) {
|
|
1264
|
-
(e !== null || !this.isNot) && z(e, lt, this);
|
|
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
|
-
return {
|
|
1267
|
-
pass: t,
|
|
1268
|
-
message: () => [
|
|
1269
|
-
this.utils.matcherHint(`${this.isNot ? ".not" : ""}.toBeInTheDocument`, "element", ""),
|
|
1270
|
-
"",
|
|
1271
|
-
this.utils.RECEIVED_COLOR(this.isNot ? n() : r())
|
|
1272
|
-
].join("\n")
|
|
1273
|
-
};
|
|
1274
|
-
}
|
|
1275
|
-
function ut(e) {
|
|
1276
|
-
return V("toBeEmpty", "Please use instead toBeEmptyDOMElement for finding empty nodes in the DOM."), z(e, ut, this), {
|
|
1277
|
-
pass: e.innerHTML === "",
|
|
1278
|
-
message: () => [
|
|
1279
|
-
this.utils.matcherHint(`${this.isNot ? ".not" : ""}.toBeEmpty`, "element", ""),
|
|
1280
|
-
"",
|
|
1281
|
-
"Received:",
|
|
1282
|
-
` ${this.utils.printReceived(e.innerHTML)}`
|
|
1283
|
-
].join("\n")
|
|
1284
|
-
};
|
|
1285
|
-
}
|
|
1286
|
-
function dt(e) {
|
|
1287
|
-
return z(e, dt, this), {
|
|
1288
|
-
pass: ft(e),
|
|
1289
|
-
message: () => [
|
|
1290
|
-
this.utils.matcherHint(`${this.isNot ? ".not" : ""}.toBeEmptyDOMElement`, "element", ""),
|
|
1291
|
-
"",
|
|
1292
|
-
"Received:",
|
|
1293
|
-
` ${this.utils.printReceived(e.innerHTML)}`
|
|
1294
|
-
].join("\n")
|
|
1295
|
-
};
|
|
1296
|
-
}
|
|
1297
|
-
function ft(e) {
|
|
1298
|
-
return [...e.childNodes].filter((e) => e.nodeType !== 8).length === 0;
|
|
1299
|
-
}
|
|
1300
|
-
function K(e, t) {
|
|
1301
|
-
return z(e, K, this), t !== null && z(t, K, this), {
|
|
1302
|
-
pass: e.contains(t),
|
|
1303
|
-
message: () => [
|
|
1304
|
-
this.utils.matcherHint(`${this.isNot ? ".not" : ""}.toContainElement`, "element", "element"),
|
|
1305
|
-
"",
|
|
1306
|
-
this.utils.RECEIVED_COLOR(`${this.utils.stringify(e.cloneNode(!1))} ${this.isNot ? "contains:" : "does not contain:"} ${this.utils.stringify(t && t.cloneNode(!1))}
|
|
1307
|
-
`)
|
|
1308
|
-
].join("\n")
|
|
1309
|
-
};
|
|
1310
|
-
}
|
|
1311
|
-
function pt(e, t) {
|
|
1312
|
-
let n = e.ownerDocument.createElement("div");
|
|
1313
|
-
return n.innerHTML = t, n.innerHTML;
|
|
1314
|
-
}
|
|
1315
|
-
function mt(e, t) {
|
|
1316
|
-
if (z(e, mt, this), typeof t != "string") throw Error(`.toContainHTML() expects a string value, got ${t}`);
|
|
1317
|
-
return {
|
|
1318
|
-
pass: e.outerHTML.includes(pt(e, t)),
|
|
1319
|
-
message: () => [
|
|
1320
|
-
this.utils.matcherHint(`${this.isNot ? ".not" : ""}.toContainHTML`, "element", ""),
|
|
1321
|
-
"Expected:",
|
|
1322
|
-
` ${this.utils.EXPECTED_COLOR(t)}`,
|
|
1323
|
-
"Received:",
|
|
1324
|
-
` ${this.utils.printReceived(e.cloneNode(!0))}`
|
|
1325
|
-
].join("\n")
|
|
1326
|
-
};
|
|
1327
|
-
}
|
|
1328
|
-
function ht(e, t, n = { normalizeWhitespace: !0 }) {
|
|
1329
|
-
Qe(e, ht, this);
|
|
1330
|
-
let r = n.normalizeWhitespace ? H(e.textContent) : e.textContent.replace(/\u00a0/g, " "), i = r !== "" && t === "";
|
|
1331
|
-
return {
|
|
1332
|
-
pass: !i && nt(r, t),
|
|
1333
|
-
message: () => {
|
|
1334
|
-
let e = this.isNot ? "not to" : "to";
|
|
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);
|
|
1336
|
-
}
|
|
1337
|
-
};
|
|
1338
|
-
}
|
|
1339
|
-
function q(e, t) {
|
|
1340
|
-
z(e, q, this);
|
|
1341
|
-
let n = Ve(e), r = arguments.length === 1, i = !1;
|
|
1342
|
-
return i = r ? n !== "" : t instanceof RegExp ? t.test(n) : this.equals(n, t), {
|
|
1343
|
-
pass: i,
|
|
1344
|
-
message: () => {
|
|
1345
|
-
let e = this.isNot ? "not to" : "to";
|
|
1346
|
-
return B(this, this.utils.matcherHint(`${this.isNot ? ".not" : ""}.${q.name}`, "element", ""), `Expected element ${e} have accessible description`, t, "Received", n);
|
|
1347
|
-
}
|
|
1348
|
-
};
|
|
1349
|
-
}
|
|
1350
|
-
var J = "aria-invalid", gt = ["false"];
|
|
1351
|
-
function _t(e, t) {
|
|
1352
|
-
z(e, _t, this);
|
|
1353
|
-
let n = this.isNot ? "not to" : "to", r = this.isNot ? ".not.toHaveAccessibleErrorMessage" : ".toHaveAccessibleErrorMessage", i = e.getAttribute("aria-errormessage");
|
|
1354
|
-
if (i && /\s+/.test(i)) return {
|
|
1355
|
-
pass: !1,
|
|
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
|
-
};
|
|
1358
|
-
let a = e.getAttribute(J);
|
|
1359
|
-
if (!e.hasAttribute(J) || gt.includes(a)) return {
|
|
1360
|
-
pass: !1,
|
|
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
|
-
};
|
|
1363
|
-
let o = H(e.ownerDocument.getElementById(i)?.textContent ?? "");
|
|
1364
|
-
return {
|
|
1365
|
-
pass: t === void 0 ? !!o : t instanceof RegExp ? t.test(o) : this.equals(o, t),
|
|
1366
|
-
message: () => B(this, this.utils.matcherHint(r, "element"), `Expected element ${n} have accessible error message`, t ?? "", "Received", o)
|
|
1367
|
-
};
|
|
1368
|
-
}
|
|
1369
|
-
var vt = xt(R.elementRoles);
|
|
1370
|
-
function Y(e, t) {
|
|
1371
|
-
z(e, Y, this);
|
|
1372
|
-
let n = yt(e);
|
|
1373
|
-
return {
|
|
1374
|
-
pass: n.some((e) => e === t),
|
|
1375
|
-
message: () => {
|
|
1376
|
-
let e = this.isNot ? "not to" : "to";
|
|
1377
|
-
return B(this, this.utils.matcherHint(`${this.isNot ? ".not" : ""}.${Y.name}`, "element", ""), `Expected element ${e} have role`, t, "Received", n.join(", "));
|
|
1378
|
-
}
|
|
1379
|
-
};
|
|
1380
|
-
}
|
|
1381
|
-
function yt(e) {
|
|
1382
|
-
return e.hasAttribute("role") ? e.getAttribute("role").split(" ").filter(Boolean) : bt(e);
|
|
1383
|
-
}
|
|
1384
|
-
function bt(e) {
|
|
1385
|
-
for (let { match: t, roles: n } of vt) if (t(e)) return [...n];
|
|
1386
|
-
/* istanbul ignore next */
|
|
1387
|
-
return [];
|
|
1388
|
-
}
|
|
1389
|
-
function xt(e) {
|
|
1390
|
-
function t({ name: e, attributes: t }) {
|
|
1391
|
-
return `${e}${t.map(({ name: e, value: t, constraints: n = [] }) => n.indexOf("undefined") === -1 ? t ? `[${e}="${t}"]` : `[${e}]` : `:not([${e}])`).join("")}`;
|
|
1392
|
-
}
|
|
1393
|
-
function n({ attributes: e = [] }) {
|
|
1394
|
-
return e.length;
|
|
1395
|
-
}
|
|
1396
|
-
function r({ specificity: e }, { specificity: t }) {
|
|
1397
|
-
return t - e;
|
|
1398
|
-
}
|
|
1399
|
-
function i(e) {
|
|
1400
|
-
let { attributes: n = [] } = e, r = n.findIndex((e) => e.value && e.name === "type" && e.value === "text");
|
|
1401
|
-
r >= 0 && (n = [...n.slice(0, r), ...n.slice(r + 1)]);
|
|
1402
|
-
let i = t({
|
|
1403
|
-
...e,
|
|
1404
|
-
attributes: n
|
|
1405
|
-
});
|
|
1406
|
-
return (e) => r >= 0 && e.type !== "text" ? !1 : e.matches(i);
|
|
1407
|
-
}
|
|
1408
|
-
let a = [];
|
|
1409
|
-
for (let [t, r] of e.entries()) a = [...a, {
|
|
1410
|
-
match: i(t),
|
|
1411
|
-
roles: Array.from(r),
|
|
1412
|
-
specificity: n(t)
|
|
1413
|
-
}];
|
|
1414
|
-
return a.sort(r);
|
|
1415
|
-
}
|
|
1416
|
-
function X(e, t) {
|
|
1417
|
-
z(e, X, this);
|
|
1418
|
-
let n = Ue(e), r = arguments.length === 1, i = !1;
|
|
1419
|
-
return i = r ? n !== "" : t instanceof RegExp ? t.test(n) : this.equals(n, t), {
|
|
1420
|
-
pass: i,
|
|
1421
|
-
message: () => {
|
|
1422
|
-
let e = this.isNot ? "not to" : "to";
|
|
1423
|
-
return B(this, this.utils.matcherHint(`${this.isNot ? ".not" : ""}.${X.name}`, "element", ""), `Expected element ${e} have accessible name`, t, "Received", n);
|
|
1424
|
-
}
|
|
1425
|
-
};
|
|
1426
|
-
}
|
|
1427
|
-
function St(e, t, n) {
|
|
1428
|
-
return n === void 0 ? t : `${t}=${e(n)}`;
|
|
1429
|
-
}
|
|
1430
|
-
function Ct(e, t, n) {
|
|
1431
|
-
return n === void 0 ? `element.hasAttribute(${e(t)})` : `element.getAttribute(${e(t)}) === ${e(n)}`;
|
|
1432
|
-
}
|
|
1433
|
-
function wt(e, t, n) {
|
|
1434
|
-
z(e, wt, this);
|
|
1435
|
-
let r = n !== void 0, i = e.hasAttribute(t), a = e.getAttribute(t);
|
|
1436
|
-
return {
|
|
1437
|
-
pass: r ? i && this.equals(a, n) : i,
|
|
1438
|
-
message: () => {
|
|
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
|
-
secondArgument: r ? this.utils.printExpected(n) : void 0,
|
|
1441
|
-
comment: Ct(this.utils.stringify, t, n)
|
|
1442
|
-
});
|
|
1443
|
-
return B(this, s, `Expected the element ${e} have attribute`, St(this.utils.stringify, t, n), "Received", o);
|
|
1444
|
-
}
|
|
1445
|
-
};
|
|
1446
|
-
}
|
|
1447
|
-
function Tt(e) {
|
|
1448
|
-
let t = e.pop(), n, r;
|
|
1449
|
-
return typeof t == "object" && !(t instanceof RegExp) ? (n = e, r = t) : (n = e.concat(t), r = { exact: !1 }), {
|
|
1450
|
-
expectedClassNames: n,
|
|
1451
|
-
options: r
|
|
1452
|
-
};
|
|
1453
|
-
}
|
|
1454
|
-
function Et(e) {
|
|
1455
|
-
return e ? e.split(/\s+/).filter((e) => e.length > 0) : [];
|
|
1456
|
-
}
|
|
1457
|
-
function Dt(e, t) {
|
|
1458
|
-
return e.every((e) => typeof e == "string" ? t.includes(e) : t.some((t) => e.test(t)));
|
|
1459
|
-
}
|
|
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
|
-
if (r.exact && o) throw Error("Exact option does not support RegExp expected class names");
|
|
1464
|
-
return r.exact ? {
|
|
1465
|
-
pass: Dt(a, i) && a.length === i.length,
|
|
1466
|
-
message: () => {
|
|
1467
|
-
let e = this.isNot ? "not to" : "to";
|
|
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
|
-
}
|
|
1470
|
-
} : a.length > 0 ? {
|
|
1471
|
-
pass: Dt(a, i),
|
|
1472
|
-
message: () => {
|
|
1473
|
-
let e = this.isNot ? "not to" : "to";
|
|
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(" "));
|
|
1475
|
-
}
|
|
1476
|
-
} : {
|
|
1477
|
-
pass: this.isNot ? i.length > 0 : !1,
|
|
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
|
-
};
|
|
1480
|
-
}
|
|
1481
|
-
function kt(e, t) {
|
|
1482
|
-
let n = {}, r = e.createElement("div");
|
|
1483
|
-
return Object.keys(t).forEach((e) => {
|
|
1484
|
-
r.style[e] = t[e], n[e] = r.style[e];
|
|
1485
|
-
}), n;
|
|
1486
|
-
}
|
|
1487
|
-
function At(e, t) {
|
|
1488
|
-
return !!Object.keys(e).length && Object.entries(e).every(([e, n]) => {
|
|
1489
|
-
let r = e.startsWith("--"), i = [e];
|
|
1490
|
-
return r || i.push(e.toLowerCase()), i.some((e) => t[e] === n || t.getPropertyValue(e) === n);
|
|
1491
|
-
});
|
|
1492
|
-
}
|
|
1493
|
-
function jt(e) {
|
|
1494
|
-
return Object.keys(e).sort().map((t) => `${t}: ${e[t]};`).join("\n");
|
|
1495
|
-
}
|
|
1496
|
-
function Mt(e, t, n) {
|
|
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(jt(t), jt(r)).replace(`${Ke.default.red("+ Received")}\n`, "");
|
|
1499
|
-
}
|
|
1500
|
-
function Z(e, t) {
|
|
1501
|
-
z(e, Z, this);
|
|
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
|
-
return {
|
|
1504
|
-
pass: At(i, a),
|
|
1505
|
-
message: () => {
|
|
1506
|
-
let e = `${this.isNot ? ".not" : ""}.toHaveStyle`;
|
|
1507
|
-
return [this.utils.matcherHint(e, "element", ""), Mt(this.utils.diff, i, a)].join("\n\n");
|
|
1508
|
-
}
|
|
1509
|
-
};
|
|
1510
|
-
}
|
|
1511
|
-
function Nt(e) {
|
|
1512
|
-
return z(e, Nt, this), {
|
|
1513
|
-
pass: e.ownerDocument.activeElement === e,
|
|
1514
|
-
message: () => [
|
|
1515
|
-
this.utils.matcherHint(`${this.isNot ? ".not" : ""}.toHaveFocus`, "element", ""),
|
|
1516
|
-
"",
|
|
1517
|
-
...this.isNot ? ["Received element is focused:", ` ${this.utils.printReceived(e)}`] : [
|
|
1518
|
-
"Expected element with focus:",
|
|
1519
|
-
` ${this.utils.printExpected(e)}`,
|
|
1520
|
-
"Received element with focus:",
|
|
1521
|
-
` ${this.utils.printReceived(e.ownerDocument.activeElement)}`
|
|
1522
|
-
]
|
|
1523
|
-
].join("\n")
|
|
1524
|
-
};
|
|
1525
|
-
}
|
|
1526
|
-
function Pt(e) {
|
|
1527
|
-
let t = [...new Set(e.map((e) => e.type))];
|
|
1528
|
-
if (t.length !== 1) throw Error("Multiple form elements with the same name must be of the same type");
|
|
1529
|
-
switch (t[0]) {
|
|
1530
|
-
case "radio": {
|
|
1531
|
-
let t = e.find((e) => e.checked);
|
|
1532
|
-
return t ? t.value : void 0;
|
|
1533
|
-
}
|
|
1534
|
-
case "checkbox": return e.filter((e) => e.checked).map((e) => e.value);
|
|
1535
|
-
default: return e.map((e) => e.value);
|
|
1536
|
-
}
|
|
1537
|
-
}
|
|
1538
|
-
function Ft(e, t) {
|
|
1539
|
-
let n = [...e.querySelectorAll(`[name="${(0, qe.default)(t)}"]`)];
|
|
1540
|
-
if (n.length !== 0) switch (n.length) {
|
|
1541
|
-
case 1: return st(n[0]);
|
|
1542
|
-
default: return Pt(n);
|
|
1543
|
-
}
|
|
1544
|
-
}
|
|
1545
|
-
function It(e) {
|
|
1546
|
-
return /\[\]$/.test(e) ? e.slice(0, -2) : e;
|
|
1547
|
-
}
|
|
1548
|
-
function Lt(e) {
|
|
1549
|
-
return Array.from(e.elements).map((e) => e.name).reduce((t, n) => ({
|
|
1550
|
-
...t,
|
|
1551
|
-
[It(n)]: Ft(e, n)
|
|
1552
|
-
}), {});
|
|
1553
|
-
}
|
|
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
|
-
return {
|
|
1558
|
-
pass: Object.entries(t).every(([e, t]) => W(n[e], t)),
|
|
1559
|
-
message: () => {
|
|
1560
|
-
let e = this.isNot ? "not to" : "to", r = `${this.isNot ? ".not" : ""}.toHaveFormValues`, i = Object.keys(n).filter((e) => t.hasOwnProperty(e)).reduce((e, t) => ({
|
|
1561
|
-
...e,
|
|
1562
|
-
[t]: n[t]
|
|
1563
|
-
}), {});
|
|
1564
|
-
return [
|
|
1565
|
-
this.utils.matcherHint(r, "element", ""),
|
|
1566
|
-
`Expected the element ${e} have form values`,
|
|
1567
|
-
this.utils.diff(t, i)
|
|
1568
|
-
].join("\n\n");
|
|
1569
|
-
}
|
|
1570
|
-
};
|
|
1571
|
-
}
|
|
1572
|
-
function zt(e) {
|
|
1573
|
-
let { getComputedStyle: t } = e.ownerDocument.defaultView, { display: n, visibility: r, opacity: i } = t(e);
|
|
1574
|
-
return n !== "none" && r !== "hidden" && r !== "collapse" && i !== "0" && i !== 0;
|
|
1575
|
-
}
|
|
1576
|
-
function Bt(e, t) {
|
|
1577
|
-
let n;
|
|
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
|
-
}
|
|
1580
|
-
function Vt(e, t) {
|
|
1581
|
-
return zt(e) && Bt(e, t) && (!e.parentElement || Vt(e.parentElement, e));
|
|
1582
|
-
}
|
|
1583
|
-
function Ht(e) {
|
|
1584
|
-
z(e, Ht, this);
|
|
1585
|
-
let t = e.ownerDocument === e.getRootNode({ composed: !0 }), n = t && Vt(e);
|
|
1586
|
-
return {
|
|
1587
|
-
pass: n,
|
|
1588
|
-
message: () => {
|
|
1589
|
-
let r = n ? "is" : "is not";
|
|
1590
|
-
return [
|
|
1591
|
-
this.utils.matcherHint(`${this.isNot ? ".not" : ""}.toBeVisible`, "element", ""),
|
|
1592
|
-
"",
|
|
1593
|
-
`Received element ${r} visible${t ? "" : " (element is not in the document)"}:`,
|
|
1594
|
-
` ${this.utils.printReceived(e.cloneNode(!1))}`
|
|
1595
|
-
].join("\n");
|
|
1596
|
-
}
|
|
1597
|
-
};
|
|
1598
|
-
}
|
|
1599
|
-
var Ut = [
|
|
1600
|
-
"fieldset",
|
|
1601
|
-
"input",
|
|
1602
|
-
"select",
|
|
1603
|
-
"optgroup",
|
|
1604
|
-
"option",
|
|
1605
|
-
"button",
|
|
1606
|
-
"textarea"
|
|
1607
|
-
];
|
|
1608
|
-
function Wt(e, t) {
|
|
1609
|
-
return U(e) === "legend" && U(t) === "fieldset" && e.isSameNode(Array.from(t.children).find((e) => U(e) === "legend"));
|
|
1610
|
-
}
|
|
1611
|
-
function Gt(e, t) {
|
|
1612
|
-
return Jt(t) && !Wt(e, t);
|
|
1613
|
-
}
|
|
1614
|
-
function Kt(e) {
|
|
1615
|
-
return e.includes("-");
|
|
1616
|
-
}
|
|
1617
|
-
function qt(e) {
|
|
1618
|
-
let t = U(e);
|
|
1619
|
-
return Ut.includes(t) || Kt(t);
|
|
1620
|
-
}
|
|
1621
|
-
function Jt(e) {
|
|
1622
|
-
return qt(e) && e.hasAttribute("disabled");
|
|
1623
|
-
}
|
|
1624
|
-
function Yt(e) {
|
|
1625
|
-
let t = e.parentElement;
|
|
1626
|
-
return !!t && (Gt(e, t) || Yt(t));
|
|
1627
|
-
}
|
|
1628
|
-
function Xt(e) {
|
|
1629
|
-
return qt(e) && (Jt(e) || Yt(e));
|
|
1630
|
-
}
|
|
1631
|
-
function Zt(e) {
|
|
1632
|
-
z(e, Zt, this);
|
|
1633
|
-
let t = Xt(e);
|
|
1634
|
-
return {
|
|
1635
|
-
pass: t,
|
|
1636
|
-
message: () => {
|
|
1637
|
-
let n = t ? "is" : "is not";
|
|
1638
|
-
return [
|
|
1639
|
-
this.utils.matcherHint(`${this.isNot ? ".not" : ""}.toBeDisabled`, "element", ""),
|
|
1640
|
-
"",
|
|
1641
|
-
`Received element ${n} disabled:`,
|
|
1642
|
-
` ${this.utils.printReceived(e.cloneNode(!1))}`
|
|
1643
|
-
].join("\n");
|
|
1644
|
-
}
|
|
1645
|
-
};
|
|
1646
|
-
}
|
|
1647
|
-
function Qt(e) {
|
|
1648
|
-
z(e, Qt, this);
|
|
1649
|
-
let t = !Xt(e);
|
|
1650
|
-
return {
|
|
1651
|
-
pass: t,
|
|
1652
|
-
message: () => {
|
|
1653
|
-
let n = t ? "is" : "is not";
|
|
1654
|
-
return [
|
|
1655
|
-
this.utils.matcherHint(`${this.isNot ? ".not" : ""}.toBeEnabled`, "element", ""),
|
|
1656
|
-
"",
|
|
1657
|
-
`Received element ${n} enabled:`,
|
|
1658
|
-
` ${this.utils.printReceived(e.cloneNode(!1))}`
|
|
1659
|
-
].join("\n");
|
|
1660
|
-
}
|
|
1661
|
-
};
|
|
1662
|
-
}
|
|
1663
|
-
var $t = ["select", "textarea"], en = [
|
|
1664
|
-
"input",
|
|
1665
|
-
"select",
|
|
1666
|
-
"textarea"
|
|
1667
|
-
], tn = [
|
|
1668
|
-
"color",
|
|
1669
|
-
"hidden",
|
|
1670
|
-
"range",
|
|
1671
|
-
"submit",
|
|
1672
|
-
"image",
|
|
1673
|
-
"reset"
|
|
1674
|
-
], nn = [
|
|
1675
|
-
"checkbox",
|
|
1676
|
-
"combobox",
|
|
1677
|
-
"gridcell",
|
|
1678
|
-
"listbox",
|
|
1679
|
-
"radiogroup",
|
|
1680
|
-
"spinbutton",
|
|
1681
|
-
"textbox",
|
|
1682
|
-
"tree"
|
|
1683
|
-
];
|
|
1684
|
-
function rn(e) {
|
|
1685
|
-
return $t.includes(U(e)) && e.hasAttribute("required");
|
|
1686
|
-
}
|
|
1687
|
-
function an(e) {
|
|
1688
|
-
return U(e) === "input" && e.hasAttribute("required") && (e.hasAttribute("type") && !tn.includes(e.getAttribute("type")) || !e.hasAttribute("type"));
|
|
1689
|
-
}
|
|
1690
|
-
function on(e) {
|
|
1691
|
-
return e.hasAttribute("aria-required") && e.getAttribute("aria-required") === "true" && (en.includes(U(e)) || e.hasAttribute("role") && nn.includes(e.getAttribute("role")));
|
|
1692
|
-
}
|
|
1693
|
-
function sn(e) {
|
|
1694
|
-
z(e, sn, this);
|
|
1695
|
-
let t = rn(e) || an(e) || on(e);
|
|
1696
|
-
return {
|
|
1697
|
-
pass: t,
|
|
1698
|
-
message: () => {
|
|
1699
|
-
let n = t ? "is" : "is not";
|
|
1700
|
-
return [
|
|
1701
|
-
this.utils.matcherHint(`${this.isNot ? ".not" : ""}.toBeRequired`, "element", ""),
|
|
1702
|
-
"",
|
|
1703
|
-
`Received element ${n} required:`,
|
|
1704
|
-
` ${this.utils.printReceived(e.cloneNode(!1))}`
|
|
1705
|
-
].join("\n");
|
|
1706
|
-
}
|
|
1707
|
-
};
|
|
1708
|
-
}
|
|
1709
|
-
var cn = [
|
|
1710
|
-
"form",
|
|
1711
|
-
"input",
|
|
1712
|
-
"select",
|
|
1713
|
-
"textarea"
|
|
1714
|
-
];
|
|
1715
|
-
function ln(e) {
|
|
1716
|
-
return e.hasAttribute("aria-invalid") && e.getAttribute("aria-invalid") !== "false";
|
|
1717
|
-
}
|
|
1718
|
-
function un(e) {
|
|
1719
|
-
return cn.includes(U(e));
|
|
1720
|
-
}
|
|
1721
|
-
function dn(e) {
|
|
1722
|
-
let t = ln(e);
|
|
1723
|
-
return un(e) ? t || !e.checkValidity() : t;
|
|
1724
|
-
}
|
|
1725
|
-
function fn(e) {
|
|
1726
|
-
z(e, fn, this);
|
|
1727
|
-
let t = dn(e);
|
|
1728
|
-
return {
|
|
1729
|
-
pass: t,
|
|
1730
|
-
message: () => {
|
|
1731
|
-
let n = t ? "is" : "is not";
|
|
1732
|
-
return [
|
|
1733
|
-
this.utils.matcherHint(`${this.isNot ? ".not" : ""}.toBeInvalid`, "element", ""),
|
|
1734
|
-
"",
|
|
1735
|
-
`Received element ${n} currently invalid:`,
|
|
1736
|
-
` ${this.utils.printReceived(e.cloneNode(!1))}`
|
|
1737
|
-
].join("\n");
|
|
1738
|
-
}
|
|
1739
|
-
};
|
|
1740
|
-
}
|
|
1741
|
-
function pn(e) {
|
|
1742
|
-
z(e, pn, this);
|
|
1743
|
-
let t = !dn(e);
|
|
1744
|
-
return {
|
|
1745
|
-
pass: t,
|
|
1746
|
-
message: () => {
|
|
1747
|
-
let n = t ? "is" : "is not";
|
|
1748
|
-
return [
|
|
1749
|
-
this.utils.matcherHint(`${this.isNot ? ".not" : ""}.toBeValid`, "element", ""),
|
|
1750
|
-
"",
|
|
1751
|
-
`Received element ${n} currently valid:`,
|
|
1752
|
-
` ${this.utils.printReceived(e.cloneNode(!1))}`
|
|
1753
|
-
].join("\n");
|
|
1754
|
-
}
|
|
1755
|
-
};
|
|
1756
|
-
}
|
|
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
|
-
return t == n && t !== n && (i = `${t} (${typeof t})`, a = `${n} (${typeof n})`), {
|
|
1761
|
-
pass: r ? W(n, t) : !!n,
|
|
1762
|
-
message: () => {
|
|
1763
|
-
let e = this.isNot ? "not to" : "to", n = this.utils.matcherHint(`${this.isNot ? ".not" : ""}.toHaveValue`, "element", t);
|
|
1764
|
-
return B(this, n, `Expected the element ${e} have value`, r ? i : "(any)", "Received", a);
|
|
1765
|
-
}
|
|
1766
|
-
};
|
|
1767
|
-
}
|
|
1768
|
-
function hn(e, t) {
|
|
1769
|
-
z(e, hn, this);
|
|
1770
|
-
let n = e.tagName.toLowerCase();
|
|
1771
|
-
if (![
|
|
1772
|
-
"select",
|
|
1773
|
-
"input",
|
|
1774
|
-
"textarea"
|
|
1775
|
-
].includes(n)) throw Error(".toHaveDisplayValue() currently supports only input, textarea or select elements, try with another matcher instead.");
|
|
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 = 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
|
-
return {
|
|
1779
|
-
pass: o && s,
|
|
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
|
-
};
|
|
1782
|
-
}
|
|
1783
|
-
function gn(e, t) {
|
|
1784
|
-
return e === "select" ? Array.from(t).filter((e) => e.selected).map((e) => e.textContent) : [t.value];
|
|
1785
|
-
}
|
|
1786
|
-
function _n(e) {
|
|
1787
|
-
return e instanceof Array ? e : [e];
|
|
1788
|
-
}
|
|
1789
|
-
function vn(e) {
|
|
1790
|
-
z(e, vn, this);
|
|
1791
|
-
let t = () => e.tagName.toLowerCase() === "input" && ["checkbox", "radio"].includes(e.type);
|
|
1792
|
-
if (!t() && !(xn(e.getAttribute("role")) && ["true", "false"].includes(e.getAttribute("aria-checked")))) return {
|
|
1793
|
-
pass: !1,
|
|
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
|
-
};
|
|
1796
|
-
let n = () => t() ? e.checked : e.getAttribute("aria-checked") === "true";
|
|
1797
|
-
return {
|
|
1798
|
-
pass: n(),
|
|
1799
|
-
message: () => {
|
|
1800
|
-
let t = n() ? "is" : "is not";
|
|
1801
|
-
return [
|
|
1802
|
-
this.utils.matcherHint(`${this.isNot ? ".not" : ""}.toBeChecked`, "element", ""),
|
|
1803
|
-
"",
|
|
1804
|
-
`Received element ${t} checked:`,
|
|
1805
|
-
` ${this.utils.printReceived(e.cloneNode(!1))}`
|
|
1806
|
-
].join("\n");
|
|
1807
|
-
}
|
|
1808
|
-
};
|
|
1809
|
-
}
|
|
1810
|
-
function yn() {
|
|
1811
|
-
return ct(bn().map((e) => `role="${e}"`), { lastWordConnector: " or " });
|
|
1812
|
-
}
|
|
1813
|
-
function bn() {
|
|
1814
|
-
return R.roles.keys().filter(xn);
|
|
1815
|
-
}
|
|
1816
|
-
function xn(e) {
|
|
1817
|
-
return R.roles.get(e)?.props["aria-checked"] !== void 0;
|
|
1818
|
-
}
|
|
1819
|
-
function Sn(e) {
|
|
1820
|
-
z(e, Sn, this);
|
|
1821
|
-
let t = () => e.tagName.toLowerCase() === "input" && e.type === "checkbox";
|
|
1822
|
-
if (!t() && e.getAttribute("role") !== "checkbox") return {
|
|
1823
|
-
pass: !1,
|
|
1824
|
-
message: () => "only inputs with type=\"checkbox\" or elements with role=\"checkbox\" and a valid aria-checked attribute can be used with .toBePartiallyChecked(). Use .toHaveValue() instead"
|
|
1825
|
-
};
|
|
1826
|
-
let n = () => {
|
|
1827
|
-
let n = e.getAttribute("aria-checked") === "mixed";
|
|
1828
|
-
return t() && e.indeterminate || n;
|
|
1829
|
-
};
|
|
1830
|
-
return {
|
|
1831
|
-
pass: n(),
|
|
1832
|
-
message: () => {
|
|
1833
|
-
let t = n() ? "is" : "is not";
|
|
1834
|
-
return [
|
|
1835
|
-
this.utils.matcherHint(`${this.isNot ? ".not" : ""}.toBePartiallyChecked`, "element", ""),
|
|
1836
|
-
"",
|
|
1837
|
-
`Received element ${t} partially checked:`,
|
|
1838
|
-
` ${this.utils.printReceived(e.cloneNode(!1))}`
|
|
1839
|
-
].join("\n");
|
|
1840
|
-
}
|
|
1841
|
-
};
|
|
1842
|
-
}
|
|
1843
|
-
function Cn(e, t) {
|
|
1844
|
-
V("toHaveDescription", "Please use toHaveAccessibleDescription."), z(e, Cn, this);
|
|
1845
|
-
let n = t !== void 0, r = (e.getAttribute("aria-describedby") || "").split(/\s+/).filter(Boolean), i = "";
|
|
1846
|
-
if (r.length > 0) {
|
|
1847
|
-
let t = e.ownerDocument;
|
|
1848
|
-
i = H(r.map((e) => t.getElementById(e)).filter(Boolean).map((e) => e.textContent).join(" "));
|
|
1849
|
-
}
|
|
1850
|
-
return {
|
|
1851
|
-
pass: n ? t instanceof RegExp ? t.test(i) : this.equals(i, t) : !!i,
|
|
1852
|
-
message: () => {
|
|
1853
|
-
let e = this.isNot ? "not to" : "to";
|
|
1854
|
-
return B(this, this.utils.matcherHint(`${this.isNot ? ".not" : ""}.toHaveDescription`, "element", ""), `Expected the element ${e} have description`, this.utils.printExpected(t), "Received", this.utils.printReceived(i));
|
|
1855
|
-
}
|
|
1856
|
-
};
|
|
1857
|
-
}
|
|
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
|
-
let t = this.isNot ? ".not" : "";
|
|
1861
|
-
return {
|
|
1862
|
-
pass: !1,
|
|
1863
|
-
message: () => B(this, this.utils.matcherHint(`${t}.toHaveErrorMessage`, "element", ""), "Expected the element to have invalid state indicated by", "aria-invalid=\"true\"", "Received", e.hasAttribute("aria-invalid") ? `aria-invalid="${e.getAttribute("aria-invalid")}"` : this.utils.printReceived(""))
|
|
1864
|
-
};
|
|
1865
|
-
}
|
|
1866
|
-
let n = t !== void 0, r = (e.getAttribute("aria-errormessage") || "").split(/\s+/).filter(Boolean), i = "";
|
|
1867
|
-
if (r.length > 0) {
|
|
1868
|
-
let t = e.ownerDocument;
|
|
1869
|
-
i = H(r.map((e) => t.getElementById(e)).filter(Boolean).map((e) => e.textContent).join(" "));
|
|
1870
|
-
}
|
|
1871
|
-
return {
|
|
1872
|
-
pass: n ? t instanceof RegExp ? t.test(i) : this.equals(i, t) : !!i,
|
|
1873
|
-
message: () => {
|
|
1874
|
-
let e = this.isNot ? "not to" : "to";
|
|
1875
|
-
return B(this, this.utils.matcherHint(`${this.isNot ? ".not" : ""}.toHaveErrorMessage`, "element", ""), `Expected the element ${e} have error message`, this.utils.printExpected(t), "Received", this.utils.printReceived(i));
|
|
1876
|
-
}
|
|
1877
|
-
};
|
|
1878
|
-
}
|
|
1879
|
-
function Tn(e) {
|
|
1880
|
-
let t = e.ownerDocument.getSelection();
|
|
1881
|
-
if (["input", "textarea"].includes(e.tagName.toLowerCase())) return ["radio", "checkbox"].includes(e.type) ? "" : e.value.toString().substring(e.selectionStart, e.selectionEnd);
|
|
1882
|
-
if (t.anchorNode === null || t.focusNode === null) return "";
|
|
1883
|
-
let n = t.getRangeAt(0), r = e.ownerDocument.createRange();
|
|
1884
|
-
if (t.containsNode(e, !1)) r.selectNodeContents(e), t.removeAllRanges(), t.addRange(r);
|
|
1885
|
-
else if (!(e.contains(t.anchorNode) && e.contains(t.focusNode))) {
|
|
1886
|
-
let i = e === n.startContainer || e.contains(n.startContainer), a = e === n.endContainer || e.contains(n.endContainer);
|
|
1887
|
-
t.removeAllRanges(), (i || a) && (r.selectNodeContents(e), i && r.setStart(n.startContainer, n.startOffset), a && r.setEnd(n.endContainer, n.endOffset), t.addRange(r));
|
|
1888
|
-
}
|
|
1889
|
-
let i = t.toString();
|
|
1890
|
-
return t.removeAllRanges(), t.addRange(n), i;
|
|
1891
|
-
}
|
|
1892
|
-
function En(e, t) {
|
|
1893
|
-
z(e, En, this);
|
|
1894
|
-
let n = t !== void 0;
|
|
1895
|
-
if (n && typeof t != "string") throw Error("expected selection must be a string or undefined");
|
|
1896
|
-
let r = Tn(e);
|
|
1897
|
-
return {
|
|
1898
|
-
pass: n ? W(r, t) : !!r,
|
|
1899
|
-
message: () => {
|
|
1900
|
-
let e = this.isNot ? "not to" : "to", i = this.utils.matcherHint(`${this.isNot ? ".not" : ""}.toHaveSelection`, "element", t);
|
|
1901
|
-
return B(this, i, `Expected the element ${e} have selection`, n ? t : "(any)", "Received", r);
|
|
1902
|
-
}
|
|
1903
|
-
};
|
|
1904
|
-
}
|
|
1905
|
-
function Dn(e) {
|
|
1906
|
-
z(e, Dn, this);
|
|
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
|
-
return !n || !(r === "true" || r === "false") ? {
|
|
1909
|
-
pass: !1,
|
|
1910
|
-
message: () => "Only button or input with type=\"button\" or element with role=\"button\" and a valid aria-pressed attribute can be used with .toBePressed()"
|
|
1911
|
-
} : {
|
|
1912
|
-
pass: n && r === "true",
|
|
1913
|
-
message: () => {
|
|
1914
|
-
let e = this.utils.matcherHint(`${this.isNot ? ".not" : ""}.toBePressed`, "element", "");
|
|
1915
|
-
return B(this, e, "Expected element to have", `aria-pressed="${this.isNot ? "false" : "true"}"`, "Received", `aria-pressed="${r}"`);
|
|
1916
|
-
}
|
|
1917
|
-
};
|
|
1918
|
-
}
|
|
1919
|
-
function Q(e) {
|
|
1920
|
-
z(e, Q, this);
|
|
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
|
-
return !n || !(r === "true" || r === "false" || r === "mixed") ? {
|
|
1923
|
-
pass: !1,
|
|
1924
|
-
message: () => "Only button or input with type=\"button\" or element with role=\"button\" and a valid aria-pressed attribute can be used with .toBePartiallyPressed()"
|
|
1925
|
-
} : {
|
|
1926
|
-
pass: n && r === "mixed",
|
|
1927
|
-
message: () => {
|
|
1928
|
-
let e = this.isNot ? "not to" : "to", t = this.utils.matcherHint(`${this.isNot ? ".not" : ""}.toBePartiallyPressed`, "element", "");
|
|
1929
|
-
return B(this, t, `Expected element ${e} have`, "aria-pressed=\"mixed\"", "Received", `aria-pressed="${r}"`);
|
|
1930
|
-
}
|
|
1931
|
-
};
|
|
1932
|
-
}
|
|
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
|
-
};
|
|
1941
|
-
function Fn(e) {
|
|
1942
|
-
return e in Pn ? `${Pn[e]} (${e})` : `Unknown document position (${e})`;
|
|
1943
|
-
}
|
|
1944
|
-
function In(e, t) {
|
|
1945
|
-
return function(n, r) {
|
|
1946
|
-
z(n, $, this), z(r, $, this);
|
|
1947
|
-
let i = n.compareDocumentPosition(r);
|
|
1948
|
-
return {
|
|
1949
|
-
pass: i === t,
|
|
1950
|
-
message: () => [
|
|
1951
|
-
this.utils.matcherHint(`${this.isNot ? ".not" : ""}.${e}`, "element", "secondElement"),
|
|
1952
|
-
"",
|
|
1953
|
-
`Received: ${Fn(i)}`
|
|
1954
|
-
].join("\n")
|
|
1955
|
-
};
|
|
1956
|
-
};
|
|
1957
|
-
}
|
|
1958
|
-
function $(e, t) {
|
|
1959
|
-
return In("toAppearBefore", An).apply(this, [e, t]);
|
|
1960
|
-
}
|
|
1961
|
-
function Ln(e, t) {
|
|
1962
|
-
return In("toAppearAfter", kn).apply(this, [e, t]);
|
|
1963
|
-
}
|
|
1964
|
-
var Rn = /*#__PURE__*/ Object.freeze({
|
|
1965
|
-
__proto__: null,
|
|
1966
|
-
toAppearAfter: Ln,
|
|
1967
|
-
toAppearBefore: $,
|
|
1968
|
-
toBeChecked: vn,
|
|
1969
|
-
toBeDisabled: Zt,
|
|
1970
|
-
toBeEmpty: ut,
|
|
1971
|
-
toBeEmptyDOMElement: dt,
|
|
1972
|
-
toBeEnabled: Qt,
|
|
1973
|
-
toBeInTheDOM: G,
|
|
1974
|
-
toBeInTheDocument: lt,
|
|
1975
|
-
toBeInvalid: fn,
|
|
1976
|
-
toBePartiallyChecked: Sn,
|
|
1977
|
-
toBePartiallyPressed: Q,
|
|
1978
|
-
toBePressed: Dn,
|
|
1979
|
-
toBeRequired: sn,
|
|
1980
|
-
toBeValid: pn,
|
|
1981
|
-
toBeVisible: Ht,
|
|
1982
|
-
toContainElement: K,
|
|
1983
|
-
toContainHTML: mt,
|
|
1984
|
-
toHaveAccessibleDescription: q,
|
|
1985
|
-
toHaveAccessibleErrorMessage: _t,
|
|
1986
|
-
toHaveAccessibleName: X,
|
|
1987
|
-
toHaveAttribute: wt,
|
|
1988
|
-
toHaveClass: Ot,
|
|
1989
|
-
toHaveDescription: Cn,
|
|
1990
|
-
toHaveDisplayValue: hn,
|
|
1991
|
-
toHaveErrorMessage: wn,
|
|
1992
|
-
toHaveFocus: Nt,
|
|
1993
|
-
toHaveFormValues: Rt,
|
|
1994
|
-
toHaveRole: Y,
|
|
1995
|
-
toHaveSelection: En,
|
|
1996
|
-
toHaveStyle: Z,
|
|
1997
|
-
toHaveTextContent: ht,
|
|
1998
|
-
toHaveValue: mn
|
|
1999
|
-
});
|
|
2000
|
-
//#endregion
|
|
2001
|
-
//#region node_modules/@testing-library/jest-dom/dist/index.mjs
|
|
2002
|
-
expect.extend(Rn);
|
|
2003
|
-
//#endregion
|
|
2004
|
-
|
|
2005
|
-
//# sourceMappingURL=dist-Cxk2-lJw.js.map
|