@uva-glass/component-library 3.55.1 → 3.55.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/Accordion-BpnBHYIx.js +69 -0
- package/dist/Accordion-BpnBHYIx.js.map +1 -0
- package/dist/AccordionCard-BXy-plB7.js +43 -0
- package/dist/AccordionCard-BXy-plB7.js.map +1 -0
- package/dist/ActionList-O9w1hqNg.js +95 -0
- package/dist/ActionList-O9w1hqNg.js.map +1 -0
- package/dist/AddCatalogueLinkForm-Cy6fPNvN.js +117 -0
- package/dist/AddCatalogueLinkForm-Cy6fPNvN.js.map +1 -0
- package/dist/AppStatusBar-Bca0KFDR.js +20 -0
- package/dist/AppStatusBar-Bca0KFDR.js.map +1 -0
- package/dist/Attention-Bq5UU9I8.js +13 -0
- package/dist/Attention-Bq5UU9I8.js.map +1 -0
- package/dist/Backdrop-D8AHeuBn.js +10 -0
- package/dist/Backdrop-D8AHeuBn.js.map +1 -0
- package/dist/Button.module-DJlNwQUj.js +16 -0
- package/dist/Button.module-DJlNwQUj.js.map +1 -0
- package/dist/ButtonGroup-DR80lTLz.js +21 -0
- package/dist/ButtonGroup-DR80lTLz.js.map +1 -0
- package/dist/Card-DMFyuTmy.js +32 -0
- package/dist/Card-DMFyuTmy.js.map +1 -0
- package/dist/Checkbox-D6-b_4dC.js +12 -0
- package/dist/Checkbox-D6-b_4dC.js.map +1 -0
- package/dist/CheckboxButtonBar-CalU0IYK.js +79 -0
- package/dist/CheckboxButtonBar-CalU0IYK.js.map +1 -0
- package/dist/Chip-DJHvFToV.js +22 -0
- package/dist/Chip-DJHvFToV.js.map +1 -0
- package/dist/ClipboardButton-geHjMl2J.js +43 -0
- package/dist/ClipboardButton-geHjMl2J.js.map +1 -0
- package/dist/Column-BwKEOOuL.js +84 -0
- package/dist/Column-BwKEOOuL.js.map +1 -0
- package/dist/Container-BLjtYDqq.js +31 -0
- package/dist/Container-BLjtYDqq.js.map +1 -0
- package/dist/ControlsButton-zemVxTlg.js +64 -0
- package/dist/ControlsButton-zemVxTlg.js.map +1 -0
- package/dist/CopyableText-DkyhZ6wk.js +57 -0
- package/dist/CopyableText-DkyhZ6wk.js.map +1 -0
- package/dist/Drawer-Ggofac6y.js +77 -0
- package/dist/Drawer-Ggofac6y.js.map +1 -0
- package/dist/EmptyStateDataDisplay-D0QiI8nE.js +46 -0
- package/dist/EmptyStateDataDisplay-D0QiI8nE.js.map +1 -0
- package/dist/ExpandableInfoPanel-CnBVVNlJ.js +58 -0
- package/dist/ExpandableInfoPanel-CnBVVNlJ.js.map +1 -0
- package/dist/FeedbackBar-ByKp32HE.js +43 -0
- package/dist/FeedbackBar-ByKp32HE.js.map +1 -0
- package/dist/FeedbackBox-Bu7uB9DP.js +29 -0
- package/dist/FeedbackBox-Bu7uB9DP.js.map +1 -0
- package/dist/FieldHint-D0HtbTnt.js +16 -0
- package/dist/FieldHint-D0HtbTnt.js.map +1 -0
- package/dist/Fieldset-CoNu_Owa.js +23 -0
- package/dist/Fieldset-CoNu_Owa.js.map +1 -0
- package/dist/Flyout-DEpzfZOC.js +18 -0
- package/dist/Flyout-DEpzfZOC.js.map +1 -0
- package/dist/FormField-BZSoQdp9.js +21 -0
- package/dist/FormField-BZSoQdp9.js.map +1 -0
- package/dist/HorizontalList-C22DaDz-.js +20 -0
- package/dist/HorizontalList-C22DaDz-.js.map +1 -0
- package/dist/IconButton-CWCMH9uf.js +24 -0
- package/dist/IconButton-CWCMH9uf.js.map +1 -0
- package/dist/InfoBanner-DyznQLGr.js +13 -0
- package/dist/InfoBanner-DyznQLGr.js.map +1 -0
- package/dist/InfoMessage-I-VlwxVc.js +19 -0
- package/dist/InfoMessage-I-VlwxVc.js.map +1 -0
- package/dist/Input-Bn-arMaC.js +25 -0
- package/dist/Input-Bn-arMaC.js.map +1 -0
- package/dist/InputField-BWAy19w9.js +51 -0
- package/dist/InputField-BWAy19w9.js.map +1 -0
- package/dist/Label-o0BcWTUS.js +21 -0
- package/dist/Label-o0BcWTUS.js.map +1 -0
- package/dist/Lexical.prod-DIglXatJ.js +5246 -0
- package/dist/Lexical.prod-DIglXatJ.js.map +1 -0
- package/dist/LexicalClipboard.prod-Bnzu0sh_.js +248 -0
- package/dist/LexicalClipboard.prod-Bnzu0sh_.js.map +1 -0
- package/dist/LexicalComposerContext.prod-Ca-YN_fj.js +22 -0
- package/dist/LexicalComposerContext.prod-Ca-YN_fj.js.map +1 -0
- package/dist/LexicalExtension.prod-COPHoPpX.js +886 -0
- package/dist/LexicalExtension.prod-COPHoPpX.js.map +1 -0
- package/dist/LexicalLink.prod-Bf9JUdMv.js +683 -0
- package/dist/LexicalLink.prod-Bf9JUdMv.js.map +1 -0
- package/dist/LexicalList.prod-DRz8vsM9.js +766 -0
- package/dist/LexicalList.prod-DRz8vsM9.js.map +1 -0
- package/dist/LexicalTable.prod-D16GW-aZ.js +2003 -0
- package/dist/LexicalTable.prod-D16GW-aZ.js.map +1 -0
- package/dist/LexicalUtils.prod-BBTLliac.js +360 -0
- package/dist/LexicalUtils.prod-BBTLliac.js.map +1 -0
- package/dist/LinkContextMenu-m_CGQEiX.js +101 -0
- package/dist/LinkContextMenu-m_CGQEiX.js.map +1 -0
- package/dist/MenuLink-Cm1yZO_5.js +21 -0
- package/dist/MenuLink-Cm1yZO_5.js.map +1 -0
- package/dist/MetaDataBar-C4QO9oBV.js +23 -0
- package/dist/MetaDataBar-C4QO9oBV.js.map +1 -0
- package/dist/MetaDataList-CAR1HTYs.js +24 -0
- package/dist/MetaDataList-CAR1HTYs.js.map +1 -0
- package/dist/ModalDialog-HUkDdAJ-.js +114 -0
- package/dist/ModalDialog-HUkDdAJ-.js.map +1 -0
- package/dist/MultiSelectBox-Cuh_o-A1.js +189 -0
- package/dist/MultiSelectBox-Cuh_o-A1.js.map +1 -0
- package/dist/MultiSelectItem-BF5xRjz5.js +36 -0
- package/dist/MultiSelectItem-BF5xRjz5.js.map +1 -0
- package/dist/Notification-CIhsHuF0.js +68 -0
- package/dist/Notification-CIhsHuF0.js.map +1 -0
- package/dist/OverlayCloseButton-rttFbAM_.js +22 -0
- package/dist/OverlayCloseButton-rttFbAM_.js.map +1 -0
- package/dist/OverlayStepBar-CjaoYdsh.js +45 -0
- package/dist/OverlayStepBar-CjaoYdsh.js.map +1 -0
- package/dist/PageOverlay-D_wG2oie.js +108 -0
- package/dist/PageOverlay-D_wG2oie.js.map +1 -0
- package/dist/PasteHandlerPlugin-DjD1wryY.js +235 -0
- package/dist/PasteHandlerPlugin-DjD1wryY.js.map +1 -0
- package/dist/Periods-BYETtB6R.js +40 -0
- package/dist/Periods-BYETtB6R.js.map +1 -0
- package/dist/ProgrammeCard-76gG7ksx.js +27 -0
- package/dist/ProgrammeCard-76gG7ksx.js.map +1 -0
- package/dist/RadioButton-Bto2p5B9.js +35 -0
- package/dist/RadioButton-Bto2p5B9.js.map +1 -0
- package/dist/RadioGroup-JeTjVp5B.js +50 -0
- package/dist/RadioGroup-JeTjVp5B.js.map +1 -0
- package/dist/Repeater-BhkTEUai.js +22 -0
- package/dist/Repeater-BhkTEUai.js.map +1 -0
- package/dist/RteEditor.module-Jk80F1FA.js +42 -0
- package/dist/RteEditor.module-Jk80F1FA.js.map +1 -0
- package/dist/SearchField.module-BgxjHaPG.js +19 -0
- package/dist/SearchField.module-BgxjHaPG.js.map +1 -0
- package/dist/SectionNotification-CQqwPTqP.js +14 -0
- package/dist/SectionNotification-CQqwPTqP.js.map +1 -0
- package/dist/SelectListbox.module-HaPs1CLD.js +30 -0
- package/dist/SelectListbox.module-HaPs1CLD.js.map +1 -0
- package/dist/Slider-BlLyrET9.js +102 -0
- package/dist/Slider-BlLyrET9.js.map +1 -0
- package/dist/Sortable.module-BTUOSbOU.js +27 -0
- package/dist/Sortable.module-BTUOSbOU.js.map +1 -0
- package/dist/SortableProvider-Dc7hwkb5.js +147 -0
- package/dist/SortableProvider-Dc7hwkb5.js.map +1 -0
- package/dist/Spinner-D8tWqg9j.js +31 -0
- package/dist/Spinner-D8tWqg9j.js.map +1 -0
- package/dist/StatusBage-DQDOF5-U.js +13 -0
- package/dist/StatusBage-DQDOF5-U.js.map +1 -0
- package/dist/StatusPill-DM7n3I4W.js +30 -0
- package/dist/StatusPill-DM7n3I4W.js.map +1 -0
- package/dist/TableCellContextMenu-D0IMQr3E.js +119 -0
- package/dist/TableCellContextMenu-D0IMQr3E.js.map +1 -0
- package/dist/TableCellResizerPlugin-CgYsYsuY.js +208 -0
- package/dist/TableCellResizerPlugin-CgYsYsuY.js.map +1 -0
- package/dist/TextArea-DqKIpOfT.js +68 -0
- package/dist/TextArea-DqKIpOfT.js.map +1 -0
- package/dist/ToggleSwitch-C7z7JVtx.js +51 -0
- package/dist/ToggleSwitch-C7z7JVtx.js.map +1 -0
- package/dist/Tooltip-BzB3jznk.js +80 -0
- package/dist/Tooltip-BzB3jznk.js.map +1 -0
- package/dist/VarIndicator-C-GueOZD.js +50 -0
- package/dist/VarIndicator-C-GueOZD.js.map +1 -0
- package/dist/WeekSelector.module-BLPrVYgn.js +18 -0
- package/dist/WeekSelector.module-BLPrVYgn.js.map +1 -0
- package/dist/__mocks__/svgrMock.js +12 -9
- package/dist/__mocks__/svgrMock.js.map +1 -1
- package/dist/assets/Accordion.css +1 -1
- package/dist/assets/AccordionCard.css +1 -1
- package/dist/assets/ActionList.css +1 -1
- package/dist/assets/AddCatalogueLinkForm.css +1 -1
- package/dist/assets/AppStatusBar.css +1 -1
- package/dist/assets/Attention.css +1 -1
- package/dist/assets/Backdrop.css +1 -1
- package/dist/assets/Backdrop2.css +1 -1
- package/dist/assets/Button.css +1 -1
- package/dist/assets/ButtonGroup.css +1 -1
- package/dist/assets/Card.css +1 -1
- package/dist/assets/Checkbox.css +1 -1
- package/dist/assets/CheckboxButtonBar.css +1 -1
- package/dist/assets/Chip.css +1 -1
- package/dist/assets/ClipboardButton.css +1 -1
- package/dist/assets/Column.css +1 -1
- package/dist/assets/Container.css +1 -1
- package/dist/assets/ControlsButton.css +1 -1
- package/dist/assets/CopyableText.css +1 -1
- package/dist/assets/Drawer.css +1 -1
- package/dist/assets/EmptyStateDataDisplay.css +1 -1
- package/dist/assets/ExpandableInfoPanel.css +1 -1
- package/dist/assets/FeedbackBar.css +1 -1
- package/dist/assets/FeedbackBox.css +1 -1
- package/dist/assets/Fieldset.css +1 -1
- package/dist/assets/Flyout.css +1 -1
- package/dist/assets/FormField.css +1 -1
- package/dist/assets/GridRow.css +1 -1
- package/dist/assets/HorizontalList.css +1 -1
- package/dist/assets/Icon.css +1 -1
- package/dist/assets/IconButton.css +1 -1
- package/dist/assets/InfoBanner.css +1 -1
- package/dist/assets/InfoMessage.css +1 -1
- package/dist/assets/Input.css +1 -1
- package/dist/assets/InputField.css +1 -1
- package/dist/assets/Label.css +1 -1
- package/dist/assets/LinkContextMenu.css +1 -1
- package/dist/assets/MenuLink.css +1 -1
- package/dist/assets/MenuLink2.css +1 -1
- package/dist/assets/MetaDataBar.css +1 -1
- package/dist/assets/MetaDataList.css +1 -1
- package/dist/assets/ModalDialog.css +1 -1
- package/dist/assets/MultiSelectBox.css +1 -1
- package/dist/assets/MultiSelectItem.css +1 -1
- package/dist/assets/Notification.css +1 -1
- package/dist/assets/OverlayCloseButton.css +1 -1
- package/dist/assets/OverlayStepBar.css +1 -1
- package/dist/assets/PageOverlay.css +1 -1
- package/dist/assets/Periods.css +1 -1
- package/dist/assets/ProgrammeCard.css +1 -1
- package/dist/assets/RadioButton.css +1 -1
- package/dist/assets/RadioButton2.css +1 -1
- package/dist/assets/RadioGroup.css +1 -1
- package/dist/assets/RteEditor.css +1 -1
- package/dist/assets/SearchField.css +1 -1
- package/dist/assets/SectionNotification.css +1 -1
- package/dist/assets/SelectListbox.css +1 -1
- package/dist/assets/Slider.css +1 -1
- package/dist/assets/Sortable.css +1 -1
- package/dist/assets/Spinner.css +1 -1
- package/dist/assets/StatusBage.css +1 -1
- package/dist/assets/StatusPill.css +1 -1
- package/dist/assets/TableCellContextMenu.css +1 -1
- package/dist/assets/TextArea.css +1 -1
- package/dist/assets/ToggleSwitch.css +1 -1
- package/dist/assets/Tooltip.css +1 -1
- package/dist/assets/VarIndicator.css +1 -1
- package/dist/assets/WeekSelector.css +1 -1
- package/dist/assets/components.css +1 -0
- package/dist/chunk-DeC0fbbY.js +23 -0
- package/dist/chunk-SZQXB3JV-D0XG4Tlp.js +8448 -0
- package/dist/chunk-SZQXB3JV-D0XG4Tlp.js.map +1 -0
- package/dist/client-UU-mS47K.js +18953 -0
- package/dist/client-UU-mS47K.js.map +1 -0
- package/dist/clsx-BD2qMUU1.js +18 -0
- package/dist/clsx-BD2qMUU1.js.map +1 -0
- package/dist/components/Accordion/Accordion.js +2 -94
- package/dist/components/Accordion/Accordion.stories.js +30 -32
- package/dist/components/Accordion/Accordion.stories.js.map +1 -1
- package/dist/components/Accordion/Accordion.test.js +49 -27
- package/dist/components/Accordion/Accordion.test.js.map +1 -1
- package/dist/components/Accordion/index.js +2 -5
- package/dist/components/AccordionCard/AccordionCard.js +2 -58
- package/dist/components/AccordionCard/AccordionCard.stories.js +31 -32
- package/dist/components/AccordionCard/AccordionCard.stories.js.map +1 -1
- package/dist/components/AccordionCard/AccordionCard.test.js +54 -31
- package/dist/components/AccordionCard/AccordionCard.test.js.map +1 -1
- package/dist/components/AccordionCard/index.js +2 -5
- package/dist/components/ActionList/ActionList.js +2 -83
- package/dist/components/ActionList/ActionList.stories.js +49 -38
- package/dist/components/ActionList/ActionList.stories.js.map +1 -1
- package/dist/components/ActionList/ActionList.test.js +97 -57
- package/dist/components/ActionList/ActionList.test.js.map +1 -1
- package/dist/components/ActionList/index.js +2 -5
- package/dist/components/AppStatusBar/AppStatusBar.js +2 -13
- package/dist/components/AppStatusBar/AppStatusBar.stories.js +25 -26
- package/dist/components/AppStatusBar/AppStatusBar.stories.js.map +1 -1
- package/dist/components/AppStatusBar/AppStatusBar.test.js +17 -8
- package/dist/components/AppStatusBar/AppStatusBar.test.js.map +1 -1
- package/dist/components/AppStatusBar/index.js +2 -5
- package/dist/components/Attention/Attention.js +2 -12
- package/dist/components/Attention/Attention.stories.js +18 -16
- package/dist/components/Attention/Attention.stories.js.map +1 -1
- package/dist/components/Attention/Attention.test.js +14 -8
- package/dist/components/Attention/Attention.test.js.map +1 -1
- package/dist/components/Attention/index.js +2 -5
- package/dist/components/Backdrop/Backdrop.js +2 -8
- package/dist/components/Backdrop/Backdrop.stories.js +32 -28
- package/dist/components/Backdrop/Backdrop.stories.js.map +1 -1
- package/dist/components/Backdrop/Backdrop.test.js +13 -7
- package/dist/components/Backdrop/Backdrop.test.js.map +1 -1
- package/dist/components/Backdrop/index.js +2 -5
- package/dist/components/ButtonGroup/ButtonGroup.js +2 -26
- package/dist/components/ButtonGroup/ButtonGroup.stories.js +29 -39
- package/dist/components/ButtonGroup/ButtonGroup.stories.js.map +1 -1
- package/dist/components/ButtonGroup/index.js +2 -5
- package/dist/components/Buttons/Button.js +16 -22
- package/dist/components/Buttons/Button.js.map +1 -1
- package/dist/components/Buttons/Button.stories.js +43 -56
- package/dist/components/Buttons/Button.stories.js.map +1 -1
- package/dist/components/Buttons/Button.test.js +60 -33
- package/dist/components/Buttons/Button.test.js.map +1 -1
- package/dist/components/Buttons/LinkButton.js +14 -11
- package/dist/components/Buttons/LinkButton.js.map +1 -1
- package/dist/components/Buttons/LinkButton.stories.js +41 -57
- package/dist/components/Buttons/LinkButton.stories.js.map +1 -1
- package/dist/components/Buttons/LinkButton.test.js +71 -65
- package/dist/components/Buttons/LinkButton.test.js.map +1 -1
- package/dist/components/Buttons/MenuButton.js +18 -15
- package/dist/components/Buttons/MenuButton.js.map +1 -1
- package/dist/components/Buttons/MenuButton.stories.js +45 -61
- package/dist/components/Buttons/MenuButton.stories.js.map +1 -1
- package/dist/components/Buttons/MenuButton.test.js +70 -64
- package/dist/components/Buttons/MenuButton.test.js.map +1 -1
- package/dist/components/Buttons/index.js +4 -9
- package/dist/components/Card/Card.js +2 -39
- package/dist/components/Card/Card.stories.js +42 -49
- package/dist/components/Card/Card.stories.js.map +1 -1
- package/dist/components/Card/Card.test.js +14 -8
- package/dist/components/Card/Card.test.js.map +1 -1
- package/dist/components/Card/index.js +2 -5
- package/dist/components/Checkbox/Checkbox.js +2 -9
- package/dist/components/Checkbox/Checkbox.stories.js +44 -41
- package/dist/components/Checkbox/Checkbox.stories.js.map +1 -1
- package/dist/components/Checkbox/Checkbox.test.js +21 -15
- package/dist/components/Checkbox/Checkbox.test.js.map +1 -1
- package/dist/components/Checkbox/index.js +2 -5
- package/dist/components/CheckboxButtonBar/CheckboxButtonBar.js +2 -114
- package/dist/components/CheckboxButtonBar/CheckboxButtonBar.stories.js +277 -310
- package/dist/components/CheckboxButtonBar/CheckboxButtonBar.stories.js.map +1 -1
- package/dist/components/CheckboxButtonBar/CheckboxButtonBar.test.js +71 -85
- package/dist/components/CheckboxButtonBar/CheckboxButtonBar.test.js.map +1 -1
- package/dist/components/CheckboxButtonBar/index.js +2 -5
- package/dist/components/CheckboxTree/CheckboxTree.js +3 -172
- package/dist/components/CheckboxTree/CheckboxTree.stories.js +89 -139
- package/dist/components/CheckboxTree/CheckboxTree.stories.js.map +1 -1
- package/dist/components/CheckboxTree/index.js +3 -5
- package/dist/components/Chip/Chip.js +2 -14
- package/dist/components/Chip/Chip.stories.js +24 -28
- package/dist/components/Chip/Chip.stories.js.map +1 -1
- package/dist/components/Chip/index.js +2 -5
- package/dist/components/ControlsButton/ControlsButton.js +2 -82
- package/dist/components/ControlsButton/ControlsButton.stories.js +98 -122
- package/dist/components/ControlsButton/ControlsButton.stories.js.map +1 -1
- package/dist/components/ControlsButton/index.js +2 -5
- package/dist/components/CopyableText/CopyableText.js +2 -64
- package/dist/components/CopyableText/CopyableText.stories.js +36 -35
- package/dist/components/CopyableText/CopyableText.stories.js.map +1 -1
- package/dist/components/CopyableText/index.js +2 -5
- package/dist/components/Drawer/Drawer.js +2 -62
- package/dist/components/Drawer/Drawer.stories.js +49 -68
- package/dist/components/Drawer/Drawer.stories.js.map +1 -1
- package/dist/components/Drawer/index.js +2 -5
- package/dist/components/EmptyStateDataDisplay/EmptyStateDataDisplay.js +2 -50
- package/dist/components/EmptyStateDataDisplay/EmptyStateDataDisplay.stories.js +17 -18
- package/dist/components/EmptyStateDataDisplay/EmptyStateDataDisplay.stories.js.map +1 -1
- package/dist/components/EmptyStateDataDisplay/index.js +2 -5
- package/dist/components/ExpandableInfoPanel/ExpandableInfoPanel.js +2 -57
- package/dist/components/ExpandableInfoPanel/ExpandableInfoPanel.stories.js +57 -50
- package/dist/components/ExpandableInfoPanel/ExpandableInfoPanel.stories.js.map +1 -1
- package/dist/components/ExpandableInfoPanel/index.js +2 -5
- package/dist/components/FeedbackBar/FeedbackBar.js +2 -30
- package/dist/components/FeedbackBar/FeedbackBar.stories.js +30 -33
- package/dist/components/FeedbackBar/FeedbackBar.stories.js.map +1 -1
- package/dist/components/FeedbackBar/FeedbackBar.test.js +18 -12
- package/dist/components/FeedbackBar/FeedbackBar.test.js.map +1 -1
- package/dist/components/FeedbackBar/index.js +2 -5
- package/dist/components/FeedbackBox/FeedbackBox.js +2 -31
- package/dist/components/FeedbackBox/FeedbackBox.stories.js +30 -34
- package/dist/components/FeedbackBox/FeedbackBox.stories.js.map +1 -1
- package/dist/components/FeedbackBox/index.js +2 -5
- package/dist/components/FieldHint/FieldHint.js +2 -15
- package/dist/components/FieldHint/FieldHint.stories.js +27 -35
- package/dist/components/FieldHint/FieldHint.stories.js.map +1 -1
- package/dist/components/FieldHint/index.js +2 -5
- package/dist/components/Fieldset/Fieldset.js +2 -32
- package/dist/components/Fieldset/Fieldset.stories.js +40 -46
- package/dist/components/Fieldset/Fieldset.stories.js.map +1 -1
- package/dist/components/Fieldset/index.js +2 -5
- package/dist/components/FormField/FormField.js +2 -23
- package/dist/components/FormField/FormField.stories.js +40 -45
- package/dist/components/FormField/FormField.stories.js.map +1 -1
- package/dist/components/FormField/index.js +2 -5
- package/dist/components/FormInput/FormInput.js +3 -79
- package/dist/components/FormInput/FormInput.stories.js +60 -40
- package/dist/components/FormInput/FormInput.stories.js.map +1 -1
- package/dist/components/FormInput/index.js +3 -5
- package/dist/components/GridRow/Column/Column.js +2 -7
- package/dist/components/GridRow/Column/index.js +2 -5
- package/dist/components/GridRow/GridRow.js +27 -38
- package/dist/components/GridRow/GridRow.js.map +1 -1
- package/dist/components/GridRow/GridRow.stories.js +198 -95
- package/dist/components/GridRow/GridRow.stories.js.map +1 -1
- package/dist/components/GridRow/index.js +2 -5
- package/dist/components/HorizontalList/HorizontalList.js +2 -13
- package/dist/components/HorizontalList/HorizontalList.stories.js +44 -46
- package/dist/components/HorizontalList/HorizontalList.stories.js.map +1 -1
- package/dist/components/HorizontalList/index.js +2 -5
- package/dist/components/Icon/Icon.js +16 -9
- package/dist/components/Icon/Icon.js.map +1 -1
- package/dist/components/Icon/Icon.stories.js +47 -50
- package/dist/components/Icon/Icon.stories.js.map +1 -1
- package/dist/components/Icon/icons/index.js +2 -672
- package/dist/components/Icon/index.js +2 -5
- package/dist/components/IconButton/IconButton.js +2 -28
- package/dist/components/IconButton/IconButton.stories.js +55 -58
- package/dist/components/IconButton/IconButton.stories.js.map +1 -1
- package/dist/components/IconButton/index.js +2 -5
- package/dist/components/InfoBanner/InfoBanner.js +2 -12
- package/dist/components/InfoBanner/InfoBanner.stories.js +18 -22
- package/dist/components/InfoBanner/InfoBanner.stories.js.map +1 -1
- package/dist/components/InfoBanner/index.js +2 -5
- package/dist/components/InfoMessage/InfoMessage.js +2 -23
- package/dist/components/InfoMessage/InfoMessage.stories.js +21 -26
- package/dist/components/InfoMessage/InfoMessage.stories.js.map +1 -1
- package/dist/components/InfoMessage/index.js +2 -5
- package/dist/components/Input/Input.js +2 -28
- package/dist/components/Input/Input.stories.js +31 -50
- package/dist/components/Input/Input.stories.js.map +1 -1
- package/dist/components/Input/index.js +2 -5
- package/dist/components/InputField/InputField.js +2 -70
- package/dist/components/InputField/InputField.stories.js +81 -109
- package/dist/components/InputField/InputField.stories.js.map +1 -1
- package/dist/components/InputField/index.js +2 -5
- package/dist/components/Label/Label.js +2 -24
- package/dist/components/Label/Label.stories.js +26 -37
- package/dist/components/Label/Label.stories.js.map +1 -1
- package/dist/components/Label/Label.test.js +35 -20
- package/dist/components/Label/Label.test.js.map +1 -1
- package/dist/components/Label/index.js +2 -5
- package/dist/components/MenuLink/MenuLink.js +2 -25
- package/dist/components/MenuLink/MenuLink.stories.js +64 -27
- package/dist/components/MenuLink/MenuLink.stories.js.map +1 -1
- package/dist/components/MenuLink/index.js +2 -5
- package/dist/components/MetaDataBar/MetaDataBar.js +2 -13
- package/dist/components/MetaDataBar/MetaDataBar.stories.js +20 -20
- package/dist/components/MetaDataBar/MetaDataBar.stories.js.map +1 -1
- package/dist/components/MetaDataBar/MetaDataBar.test.js +26 -16
- package/dist/components/MetaDataBar/MetaDataBar.test.js.map +1 -1
- package/dist/components/MetaDataBar/index.js +2 -5
- package/dist/components/MetaDataList/MetaDataList.js +2 -14
- package/dist/components/MetaDataList/MetaDataList.stories.js +21 -23
- package/dist/components/MetaDataList/MetaDataList.stories.js.map +1 -1
- package/dist/components/MetaDataList/index.js +2 -5
- package/dist/components/ModalDialog/ModalDialog.js +2 -130
- package/dist/components/ModalDialog/ModalDialog.stories.js +80 -93
- package/dist/components/ModalDialog/ModalDialog.stories.js.map +1 -1
- package/dist/components/ModalDialog/index.js +2 -5
- package/dist/components/MultiSelect/MultiSelect.js +3 -8
- package/dist/components/MultiSelect/MultiSelect.stories.js +83 -93
- package/dist/components/MultiSelect/MultiSelect.stories.js.map +1 -1
- package/dist/components/MultiSelect/components/MultiSelectHeader.js +3 -34
- package/dist/components/MultiSelect/components/MultiSelectItem.js +2 -9
- package/dist/components/MultiSelect/index.js +3 -5
- package/dist/components/MultiSelectBox/MultiSelectBox.js +2 -207
- package/dist/components/MultiSelectBox/MultiSelectBox.stories.js +101 -70
- package/dist/components/MultiSelectBox/MultiSelectBox.stories.js.map +1 -1
- package/dist/components/MultiSelectBox/MultiSelectBox.test.js +54 -29
- package/dist/components/MultiSelectBox/MultiSelectBox.test.js.map +1 -1
- package/dist/components/MultiSelectBox/index.js +2 -5
- package/dist/components/Notification/Notification.js +2 -58
- package/dist/components/Notification/Notification.stories.js +43 -40
- package/dist/components/Notification/Notification.stories.js.map +1 -1
- package/dist/components/Notification/Notification.test.js +24 -10
- package/dist/components/Notification/Notification.test.js.map +1 -1
- package/dist/components/Notification/index.js +2 -5
- package/dist/components/OverlayCloseButton/OverlayCloseButton.js +2 -25
- package/dist/components/OverlayCloseButton/OverlayCloseButton.stories.js +30 -29
- package/dist/components/OverlayCloseButton/OverlayCloseButton.stories.js.map +1 -1
- package/dist/components/OverlayCloseButton/index.js +2 -5
- package/dist/components/OverlayStepBar/OverlayStepBar.js +2 -57
- package/dist/components/OverlayStepBar/OverlayStepBar.stories.js +44 -49
- package/dist/components/OverlayStepBar/OverlayStepBar.stories.js.map +1 -1
- package/dist/components/OverlayStepBar/index.js +2 -5
- package/dist/components/PageOverlay/PageOverlay.js +2 -114
- package/dist/components/PageOverlay/PageOverlay.stories.js +155 -163
- package/dist/components/PageOverlay/PageOverlay.stories.js.map +1 -1
- package/dist/components/PageOverlay/index.js +2 -5
- package/dist/components/PeriodSelector/PeriodSelector.js +3 -96
- package/dist/components/PeriodSelector/PeriodSelector.stories.js +27 -24
- package/dist/components/PeriodSelector/PeriodSelector.stories.js.map +1 -1
- package/dist/components/PeriodSelector/index.js +3 -5
- package/dist/components/Periods/Periods.js +2 -46
- package/dist/components/Periods/Periods.stories.js +53 -60
- package/dist/components/Periods/Periods.stories.js.map +1 -1
- package/dist/components/Periods/index.js +2 -5
- package/dist/components/ProgrammeCard/ProgrammeCard.js +2 -29
- package/dist/components/ProgrammeCard/ProgrammeCard.stories.js +71 -80
- package/dist/components/ProgrammeCard/ProgrammeCard.stories.js.map +1 -1
- package/dist/components/ProgrammeCard/index.js +2 -5
- package/dist/components/RadioButton/RadioButton.js +2 -26
- package/dist/components/RadioButton/RadioButton.stories.js +30 -40
- package/dist/components/RadioButton/RadioButton.stories.js.map +1 -1
- package/dist/components/RadioButton/index.js +2 -5
- package/dist/components/RadioGroup/RadioGroup.js +2 -52
- package/dist/components/RadioGroup/RadioGroup.stories.js +39 -46
- package/dist/components/RadioGroup/RadioGroup.stories.js.map +1 -1
- package/dist/components/RadioGroup/Radiogroup.test.js +46 -22
- package/dist/components/RadioGroup/Radiogroup.test.js.map +1 -1
- package/dist/components/RadioGroup/index.js +2 -5
- package/dist/components/RadioTabSelector/RadioTabSelector.js +3 -94
- package/dist/components/RadioTabSelector/RadioTabSelector.stories.js +76 -74
- package/dist/components/RadioTabSelector/RadioTabSelector.stories.js.map +1 -1
- package/dist/components/RadioTabSelector/index.js +3 -5
- package/dist/components/Repeater/Repeater.js +2 -19
- package/dist/components/Repeater/Repeater.stories.js +32 -42
- package/dist/components/Repeater/Repeater.stories.js.map +1 -1
- package/dist/components/Repeater/index.js +2 -5
- package/dist/components/RteEditor/EditorHeader/EditorHeader.js +3 -43
- package/dist/components/RteEditor/EditorHeader/index.js +3 -5
- package/dist/components/RteEditor/Plugins/BlockFormatPlugin/BlockFormatPlugin.js +45 -47
- package/dist/components/RteEditor/Plugins/BlockFormatPlugin/BlockFormatPlugin.js.map +1 -1
- package/dist/components/RteEditor/Plugins/BlockFormatPlugin/index.js +2 -5
- package/dist/components/RteEditor/Plugins/CourseCataloguePlugin/AddCatalogueLinkForm/AddCatalogueLinkForm.js +2 -108
- package/dist/components/RteEditor/Plugins/CourseCataloguePlugin/AddCatalogueLinkForm/index.js +2 -5
- package/dist/components/RteEditor/Plugins/CourseCataloguePlugin/CourseCataloguePlugin.js +150 -194
- package/dist/components/RteEditor/Plugins/CourseCataloguePlugin/CourseCataloguePlugin.js.map +1 -1
- package/dist/components/RteEditor/Plugins/CourseCataloguePlugin/index.js +2 -5
- package/dist/components/RteEditor/Plugins/HistoryPlugin/HistoryPlugin.js +3 -81
- package/dist/components/RteEditor/Plugins/HistoryPlugin/index.js +3 -5
- package/dist/components/RteEditor/Plugins/LinkPlugin/AddLinkForm/AddLinkFrom.js +3 -38
- package/dist/components/RteEditor/Plugins/LinkPlugin/LinkContextMenu/LinkContextMenu.js +2 -95
- package/dist/components/RteEditor/Plugins/LinkPlugin/LinkPlugin.js +3 -217
- package/dist/components/RteEditor/Plugins/LinkPlugin/helpers.js +2 -12
- package/dist/components/RteEditor/Plugins/LinkPlugin/index.js +3 -5
- package/dist/components/RteEditor/Plugins/ListPlugin/ListPlugin.js +75 -83
- package/dist/components/RteEditor/Plugins/ListPlugin/ListPlugin.js.map +1 -1
- package/dist/components/RteEditor/Plugins/ListPlugin/index.js +2 -5
- package/dist/components/RteEditor/Plugins/PasteHandlerPlugin/PasteHandlerPlugin.js +2 -31
- package/dist/components/RteEditor/Plugins/PasteHandlerPlugin/index.js +2 -5
- package/dist/components/RteEditor/Plugins/TableCellResizerPlugin/TableCellResizerPlugin.js +2 -14
- package/dist/components/RteEditor/Plugins/TableCellResizerPlugin/index.js +2 -5
- package/dist/components/RteEditor/Plugins/TablePlugin/AddTableFrom.js +3 -36
- package/dist/components/RteEditor/Plugins/TablePlugin/TableCellContextMenu/TableCellContextMenu.js +2 -133
- package/dist/components/RteEditor/Plugins/TablePlugin/TableCellContextMenu/index.js +2 -5
- package/dist/components/RteEditor/Plugins/TablePlugin/TablePlugin.js +3 -42
- package/dist/components/RteEditor/Plugins/TablePlugin/helpers.js +69 -92
- package/dist/components/RteEditor/Plugins/TablePlugin/helpers.js.map +1 -1
- package/dist/components/RteEditor/Plugins/TablePlugin/index.js +4 -7
- package/dist/components/RteEditor/Plugins/ToolbarPlugin/ToolbarPlugin.js +3 -90
- package/dist/components/RteEditor/Plugins/ToolbarPlugin/index.js +3 -5
- package/dist/components/RteEditor/Plugins/index.js +7 -21
- package/dist/components/RteEditor/Providers/LanguageProvider.js +22 -17
- package/dist/components/RteEditor/Providers/LanguageProvider.js.map +1 -1
- package/dist/components/RteEditor/RteEditor.js +3 -871
- package/dist/components/RteEditor/RteEditor.stories.js +160 -207
- package/dist/components/RteEditor/RteEditor.stories.js.map +1 -1
- package/dist/components/RteEditor/UvaTheme/UvaTheme.js +41 -40
- package/dist/components/RteEditor/UvaTheme/UvaTheme.js.map +1 -1
- package/dist/components/RteEditor/UvaTheme/index.js +2 -5
- package/dist/components/RteEditor/helpers.js +33 -40
- package/dist/components/RteEditor/helpers.js.map +1 -1
- package/dist/components/RteEditor/hooks/components/Flyout.js +2 -11
- package/dist/components/RteEditor/hooks/useFlyout.js +35 -23
- package/dist/components/RteEditor/hooks/useFlyout.js.map +1 -1
- package/dist/components/RteEditor/hooks/useTranslation.js +9 -8
- package/dist/components/RteEditor/hooks/useTranslation.js.map +1 -1
- package/dist/components/RteEditor/index.js +3 -6
- package/dist/components/RteEditor/mockCatalogueSearchData.js +484 -484
- package/dist/components/RteEditor/mockCatalogueSearchData.js.map +1 -1
- package/dist/components/RteEditor/mockRteContent.js +6 -100
- package/dist/components/RteEditor/mockRteContent.js.map +1 -1
- package/dist/components/RteEditor/nodes/CourseCatalogueNode/CourseCatalogueNode.js +98 -122
- package/dist/components/RteEditor/nodes/CourseCatalogueNode/CourseCatalogueNode.js.map +1 -1
- package/dist/components/RteEditor/nodes/CourseCatalogueNode/index.js +2 -11
- package/dist/components/RteEditor/nodes/TableWrapperNode/TableWrapperNode.js +58 -72
- package/dist/components/RteEditor/nodes/TableWrapperNode/TableWrapperNode.js.map +1 -1
- package/dist/components/RteEditor/nodes/TableWrapperNode/index.js +2 -10
- package/dist/components/RteEditor/nodes/index.js +3 -18
- package/dist/components/RteEditor/translations.js +216 -215
- package/dist/components/RteEditor/translations.js.map +1 -1
- package/dist/components/SearchField/SearchField.js +104 -105
- package/dist/components/SearchField/SearchField.js.map +1 -1
- package/dist/components/SearchField/SearcheField.stories.js +89 -118
- package/dist/components/SearchField/SearcheField.stories.js.map +1 -1
- package/dist/components/SearchField/components/ResultOptionBox.js +19 -12
- package/dist/components/SearchField/components/ResultOptionBox.js.map +1 -1
- package/dist/components/SearchField/components/ResultsOption.js +50 -55
- package/dist/components/SearchField/components/ResultsOption.js.map +1 -1
- package/dist/components/SearchField/index.js +2 -5
- package/dist/components/SearchField/mockData.js +136 -135
- package/dist/components/SearchField/mockData.js.map +1 -1
- package/dist/components/SectionNotification/SectionNotification.js +2 -18
- package/dist/components/SectionNotification/SectionNotification.stories.js +21 -24
- package/dist/components/SectionNotification/SectionNotification.stories.js.map +1 -1
- package/dist/components/SectionNotification/index.js +2 -5
- package/dist/components/SelectListbox/SelectListBox.stories.js +3415 -248
- package/dist/components/SelectListbox/SelectListBox.stories.js.map +1 -1
- package/dist/components/SelectListbox/SelectListbox.js +45 -56
- package/dist/components/SelectListbox/SelectListbox.js.map +1 -1
- package/dist/components/SelectListbox/SelectProvider.js +42 -43
- package/dist/components/SelectListbox/SelectProvider.js.map +1 -1
- package/dist/components/SelectListbox/components/SelectButton.js +63 -77
- package/dist/components/SelectListbox/components/SelectButton.js.map +1 -1
- package/dist/components/SelectListbox/components/SelectContainer.js +22 -21
- package/dist/components/SelectListbox/components/SelectContainer.js.map +1 -1
- package/dist/components/SelectListbox/components/SelectOption.js +69 -66
- package/dist/components/SelectListbox/components/SelectOption.js.map +1 -1
- package/dist/components/SelectListbox/components/SelectOptionBox.js +28 -30
- package/dist/components/SelectListbox/components/SelectOptionBox.js.map +1 -1
- package/dist/components/SelectListbox/index.js +2 -5
- package/dist/components/Slider/Slider.js +2 -113
- package/dist/components/Slider/Slider.stories.js +59 -38
- package/dist/components/Slider/Slider.stories.js.map +1 -1
- package/dist/components/Slider/index.js +2 -5
- package/dist/components/Sortable/Sortable.js +25 -41
- package/dist/components/Sortable/Sortable.js.map +1 -1
- package/dist/components/Sortable/Sortable.stories.js +79 -59
- package/dist/components/Sortable/Sortable.stories.js.map +1 -1
- package/dist/components/Sortable/SortableProvider.js +2 -10
- package/dist/components/Sortable/actions.js +24 -32
- package/dist/components/Sortable/actions.js.map +1 -1
- package/dist/components/Sortable/components/SortableContainer.js +2 -9
- package/dist/components/Sortable/components/SortableHandle.js +13 -9
- package/dist/components/Sortable/components/SortableHandle.js.map +1 -1
- package/dist/components/Sortable/components/SortableItem.js +103 -113
- package/dist/components/Sortable/components/SortableItem.js.map +1 -1
- package/dist/components/Sortable/constants.js +6 -14
- package/dist/components/Sortable/constants.js.map +1 -1
- package/dist/components/Sortable/index.js +1 -4
- package/dist/components/Sortable/sortableReducer.js +76 -90
- package/dist/components/Sortable/sortableReducer.js.map +1 -1
- package/dist/components/Spinner/Spinner.js +2 -22
- package/dist/components/Spinner/Spinner.stories.js +21 -26
- package/dist/components/Spinner/Spinner.stories.js.map +1 -1
- package/dist/components/Spinner/index.js +2 -5
- package/dist/components/StatusBadge/StatusBadge.stories.js +18 -21
- package/dist/components/StatusBadge/StatusBadge.stories.js.map +1 -1
- package/dist/components/StatusBadge/StatusBadge.test.js +19 -10
- package/dist/components/StatusBadge/StatusBadge.test.js.map +1 -1
- package/dist/components/StatusBadge/StatusBage.js +2 -10
- package/dist/components/StatusBadge/index.js +2 -5
- package/dist/components/StatusPill/StatusPill.js +2 -35
- package/dist/components/StatusPill/StatusPill.stories.js +20 -20
- package/dist/components/StatusPill/StatusPill.stories.js.map +1 -1
- package/dist/components/StatusPill/index.js +2 -5
- package/dist/components/TextArea/TextArea.js +2 -65
- package/dist/components/TextArea/TextArea.stories.js +30 -31
- package/dist/components/TextArea/TextArea.stories.js.map +1 -1
- package/dist/components/TextArea/TextArea.test.js +38 -22
- package/dist/components/TextArea/TextArea.test.js.map +1 -1
- package/dist/components/TextArea/index.js +2 -5
- package/dist/components/ToggleSwitch/ToggleSwitch.js +2 -66
- package/dist/components/ToggleSwitch/ToggleSwitch.stories.js +20 -26
- package/dist/components/ToggleSwitch/ToggleSwitch.stories.js.map +1 -1
- package/dist/components/ToggleSwitch/index.js +2 -5
- package/dist/components/Tooltip/Tooltip.js +2 -75
- package/dist/components/Tooltip/Tooltip.stories.js +27 -32
- package/dist/components/Tooltip/Tooltip.stories.js.map +1 -1
- package/dist/components/Tooltip/index.js +2 -5
- package/dist/components/VarIndicator/VarIndicator.js +2 -62
- package/dist/components/VarIndicator/VarIndicator.stories.js +31 -30
- package/dist/components/VarIndicator/VarIndicator.stories.js.map +1 -1
- package/dist/components/VarIndicator/VarIndicator.test.js +72 -54
- package/dist/components/VarIndicator/VarIndicator.test.js.map +1 -1
- package/dist/components/VarIndicator/index.js +2 -5
- package/dist/components/WeekSelector/WeekSelector.js +89 -97
- package/dist/components/WeekSelector/WeekSelector.js.map +1 -1
- package/dist/components/WeekSelector/WeekSelector.stories.js +146 -191
- package/dist/components/WeekSelector/WeekSelector.stories.js.map +1 -1
- package/dist/components/WeekSelector/components/WeekSelectorButton.js +20 -22
- package/dist/components/WeekSelector/components/WeekSelectorButton.js.map +1 -1
- package/dist/components/WeekSelector/components/WeekSelectorOption.js +72 -85
- package/dist/components/WeekSelector/components/WeekSelectorOption.js.map +1 -1
- package/dist/components/WeekSelector/components/WeekSelectorOptionContainer.js +30 -17
- package/dist/components/WeekSelector/components/WeekSelectorOptionContainer.js.map +1 -1
- package/dist/components/WeekSelector/index.js +2 -5
- package/dist/components/WeekSelector/mockdata.js +470 -469
- package/dist/components/WeekSelector/mockdata.js.map +1 -1
- package/dist/components/hooks/useDebounce.js +17 -16
- package/dist/components/hooks/useDebounce.js.map +1 -1
- package/dist/components/hooks/useOnClickOutside.js +15 -14
- package/dist/components/hooks/useOnClickOutside.js.map +1 -1
- package/dist/components/hooks/usePositionedFloaters.js +66 -71
- package/dist/components/hooks/usePositionedFloaters.js.map +1 -1
- package/dist/components/hooks/useResponsive.js +36 -32
- package/dist/components/hooks/useResponsive.js.map +1 -1
- package/dist/components/index.js +64 -139
- package/dist/components-C4MCdrDH.js +1995 -0
- package/dist/components-C4MCdrDH.js.map +1 -0
- package/dist/dist-2TKCXdYZ.js +2005 -0
- package/dist/dist-2TKCXdYZ.js.map +1 -0
- package/dist/esm-UNe_gmRA.js +2781 -0
- package/dist/esm-UNe_gmRA.js.map +1 -0
- package/dist/helpers-BBSxTGRl.js +34 -0
- package/dist/helpers-BBSxTGRl.js.map +1 -0
- package/dist/icons-TRhI-4V6.js +2681 -0
- package/dist/icons-TRhI-4V6.js.map +1 -0
- package/dist/index.js +64 -139
- package/dist/lib-6BbFZdI7.js +5595 -0
- package/dist/lib-6BbFZdI7.js.map +1 -0
- package/dist/react-18-CRbkdI-3.js +43 -0
- package/dist/react-18-CRbkdI-3.js.map +1 -0
- package/dist/react.esm-CzIhAqlo.js +3297 -0
- package/dist/react.esm-CzIhAqlo.js.map +1 -0
- package/dist/setupTests.js +1226 -36
- package/dist/setupTests.js.map +1 -1
- package/dist/storyComponents/ClipboardButton/ClipboardButton.js +2 -45
- package/dist/storyComponents/ClipboardButton/index.js +2 -5
- package/dist/storyComponents/Container/Container.js +2 -40
- package/dist/storyComponents/Container/index.js +2 -5
- package/dist/storybook__react.d.js +6939 -7524
- package/dist/storybook__react.d.js.map +1 -1
- package/dist/test-DQruvi8i.js +19466 -0
- package/dist/test-DQruvi8i.js.map +1 -0
- package/dist/test-utils-BSs0eZfL.js +21 -0
- package/dist/test-utils-BSs0eZfL.js.map +1 -0
- package/dist/types/UserInterface.js +0 -2
- package/dist/vite-env.d.js +0 -2
- package/package.json +27 -27
- package/dist/Button.module-S1-6tV9o.js +0 -16
- package/dist/Button.module-S1-6tV9o.js.map +0 -1
- package/dist/Column-BL3dsYxn.js +0 -101
- package/dist/Column-BL3dsYxn.js.map +0 -1
- package/dist/Lexical.prod-o6Eq_uLx.js +0 -5202
- package/dist/Lexical.prod-o6Eq_uLx.js.map +0 -1
- package/dist/LexicalClipboard.prod-CnUrf2_p.js +0 -265
- package/dist/LexicalClipboard.prod-CnUrf2_p.js.map +0 -1
- package/dist/LexicalComposerContext.prod-DOyoZx0P.js +0 -22
- package/dist/LexicalComposerContext.prod-DOyoZx0P.js.map +0 -1
- package/dist/LexicalExtension.prod-CanXuzFO.js +0 -551
- package/dist/LexicalExtension.prod-CanXuzFO.js.map +0 -1
- package/dist/LexicalLink.prod-DAVbKER8.js +0 -561
- package/dist/LexicalLink.prod-DAVbKER8.js.map +0 -1
- package/dist/LexicalList.prod-C6cknPBV.js +0 -632
- package/dist/LexicalList.prod-C6cknPBV.js.map +0 -1
- package/dist/LexicalSelection.prod-B8GGrzJ3.js +0 -116
- package/dist/LexicalSelection.prod-B8GGrzJ3.js.map +0 -1
- package/dist/LexicalTable.prod-upbwOtcE.js +0 -1892
- package/dist/LexicalTable.prod-upbwOtcE.js.map +0 -1
- package/dist/LexicalUtils.prod-CF7x-KWm.js +0 -134
- package/dist/LexicalUtils.prod-CF7x-KWm.js.map +0 -1
- package/dist/MultiSelectItem-BzBmsKof.js +0 -24
- package/dist/MultiSelectItem-BzBmsKof.js.map +0 -1
- package/dist/RteEditor.module-CoTOIw5i.js +0 -41
- package/dist/RteEditor.module-CoTOIw5i.js.map +0 -1
- package/dist/SearchField.module-CMUEgX7d.js +0 -17
- package/dist/SearchField.module-CMUEgX7d.js.map +0 -1
- package/dist/SelectListbox.module-CXqMuXRB.js +0 -29
- package/dist/SelectListbox.module-CXqMuXRB.js.map +0 -1
- package/dist/Sortable.module-DCVXxKnw.js +0 -26
- package/dist/Sortable.module-DCVXxKnw.js.map +0 -1
- package/dist/SortableProvider-BbwlEPIr.js +0 -160
- package/dist/SortableProvider-BbwlEPIr.js.map +0 -1
- package/dist/TableCellResizerPlugin-qMtSAoKT.js +0 -248
- package/dist/TableCellResizerPlugin-qMtSAoKT.js.map +0 -1
- package/dist/TablePlugin-BRZcXq73.js +0 -308
- package/dist/TablePlugin-BRZcXq73.js.map +0 -1
- package/dist/WeekSelector.module-Clco7jTs.js +0 -17
- package/dist/WeekSelector.module-Clco7jTs.js.map +0 -1
- package/dist/_commonjsHelpers-DaMA6jEr.js +0 -9
- package/dist/_commonjsHelpers-DaMA6jEr.js.map +0 -1
- package/dist/assets/CheckboxTree.css +0 -1
- package/dist/assets/EditorHeader.css +0 -1
- package/dist/assets/FormInput.css +0 -1
- package/dist/assets/PeriodSelector.css +0 -1
- package/dist/assets/RadioTabSelector.css +0 -1
- package/dist/assets/TablePlugin.css +0 -1
- package/dist/chunk-OPOZOKLO-nJkI9rUN.js +0 -4508
- package/dist/chunk-OPOZOKLO-nJkI9rUN.js.map +0 -1
- package/dist/client-D5eE1v54.js +0 -27222
- package/dist/client-D5eE1v54.js.map +0 -1
- package/dist/clsx-OuTLNxxd.js +0 -17
- package/dist/clsx-OuTLNxxd.js.map +0 -1
- package/dist/components/Accordion/Accordion.js.map +0 -1
- package/dist/components/Accordion/index.js.map +0 -1
- package/dist/components/AccordionCard/AccordionCard.js.map +0 -1
- package/dist/components/AccordionCard/index.js.map +0 -1
- package/dist/components/ActionList/ActionList.js.map +0 -1
- package/dist/components/ActionList/index.js.map +0 -1
- package/dist/components/AppStatusBar/AppStatusBar.js.map +0 -1
- package/dist/components/AppStatusBar/index.js.map +0 -1
- package/dist/components/Attention/Attention.js.map +0 -1
- package/dist/components/Attention/index.js.map +0 -1
- package/dist/components/Backdrop/Backdrop.js.map +0 -1
- package/dist/components/Backdrop/index.js.map +0 -1
- package/dist/components/ButtonGroup/ButtonGroup.js.map +0 -1
- package/dist/components/ButtonGroup/index.js.map +0 -1
- package/dist/components/Buttons/index.js.map +0 -1
- package/dist/components/Card/Card.js.map +0 -1
- package/dist/components/Card/index.js.map +0 -1
- package/dist/components/Checkbox/Checkbox.js.map +0 -1
- package/dist/components/Checkbox/index.js.map +0 -1
- package/dist/components/CheckboxButtonBar/CheckboxButtonBar.js.map +0 -1
- package/dist/components/CheckboxButtonBar/index.js.map +0 -1
- package/dist/components/CheckboxTree/CheckboxTree.js.map +0 -1
- package/dist/components/CheckboxTree/index.js.map +0 -1
- package/dist/components/Chip/Chip.js.map +0 -1
- package/dist/components/Chip/index.js.map +0 -1
- package/dist/components/ControlsButton/ControlsButton.js.map +0 -1
- package/dist/components/ControlsButton/index.js.map +0 -1
- package/dist/components/CopyableText/CopyableText.js.map +0 -1
- package/dist/components/CopyableText/index.js.map +0 -1
- package/dist/components/Drawer/Drawer.js.map +0 -1
- package/dist/components/Drawer/index.js.map +0 -1
- package/dist/components/EmptyStateDataDisplay/EmptyStateDataDisplay.js.map +0 -1
- package/dist/components/EmptyStateDataDisplay/index.js.map +0 -1
- package/dist/components/ExpandableInfoPanel/ExpandableInfoPanel.js.map +0 -1
- package/dist/components/ExpandableInfoPanel/index.js.map +0 -1
- package/dist/components/FeedbackBar/FeedbackBar.js.map +0 -1
- package/dist/components/FeedbackBar/index.js.map +0 -1
- package/dist/components/FeedbackBox/FeedbackBox.js.map +0 -1
- package/dist/components/FeedbackBox/index.js.map +0 -1
- package/dist/components/FieldHint/FieldHint.js.map +0 -1
- package/dist/components/FieldHint/index.js.map +0 -1
- package/dist/components/Fieldset/Fieldset.js.map +0 -1
- package/dist/components/Fieldset/index.js.map +0 -1
- package/dist/components/FormField/FormField.js.map +0 -1
- package/dist/components/FormField/index.js.map +0 -1
- package/dist/components/FormInput/FormInput.js.map +0 -1
- package/dist/components/FormInput/index.js.map +0 -1
- package/dist/components/GridRow/Column/Column.js.map +0 -1
- package/dist/components/GridRow/Column/index.js.map +0 -1
- package/dist/components/GridRow/index.js.map +0 -1
- package/dist/components/HorizontalList/HorizontalList.js.map +0 -1
- package/dist/components/HorizontalList/index.js.map +0 -1
- package/dist/components/Icon/icons/index.js.map +0 -1
- package/dist/components/Icon/index.js.map +0 -1
- package/dist/components/IconButton/IconButton.js.map +0 -1
- package/dist/components/IconButton/index.js.map +0 -1
- package/dist/components/InfoBanner/InfoBanner.js.map +0 -1
- package/dist/components/InfoBanner/index.js.map +0 -1
- package/dist/components/InfoMessage/InfoMessage.js.map +0 -1
- package/dist/components/InfoMessage/index.js.map +0 -1
- package/dist/components/Input/Input.js.map +0 -1
- package/dist/components/Input/index.js.map +0 -1
- package/dist/components/InputField/InputField.js.map +0 -1
- package/dist/components/InputField/index.js.map +0 -1
- package/dist/components/Label/Label.js.map +0 -1
- package/dist/components/Label/index.js.map +0 -1
- package/dist/components/MenuLink/MenuLink.js.map +0 -1
- package/dist/components/MenuLink/index.js.map +0 -1
- package/dist/components/MetaDataBar/MetaDataBar.js.map +0 -1
- package/dist/components/MetaDataBar/index.js.map +0 -1
- package/dist/components/MetaDataList/MetaDataList.js.map +0 -1
- package/dist/components/MetaDataList/index.js.map +0 -1
- package/dist/components/ModalDialog/ModalDialog.js.map +0 -1
- package/dist/components/ModalDialog/index.js.map +0 -1
- package/dist/components/MultiSelect/MultiSelect.js.map +0 -1
- package/dist/components/MultiSelect/components/MultiSelectHeader.js.map +0 -1
- package/dist/components/MultiSelect/components/MultiSelectItem.js.map +0 -1
- package/dist/components/MultiSelect/index.js.map +0 -1
- package/dist/components/MultiSelectBox/MultiSelectBox.js.map +0 -1
- package/dist/components/MultiSelectBox/index.js.map +0 -1
- package/dist/components/Notification/Notification.js.map +0 -1
- package/dist/components/Notification/index.js.map +0 -1
- package/dist/components/OverlayCloseButton/OverlayCloseButton.js.map +0 -1
- package/dist/components/OverlayCloseButton/index.js.map +0 -1
- package/dist/components/OverlayStepBar/OverlayStepBar.js.map +0 -1
- package/dist/components/OverlayStepBar/index.js.map +0 -1
- package/dist/components/PageOverlay/PageOverlay.js.map +0 -1
- package/dist/components/PageOverlay/index.js.map +0 -1
- package/dist/components/PeriodSelector/PeriodSelector.js.map +0 -1
- package/dist/components/PeriodSelector/index.js.map +0 -1
- package/dist/components/Periods/Periods.js.map +0 -1
- package/dist/components/Periods/index.js.map +0 -1
- package/dist/components/ProgrammeCard/ProgrammeCard.js.map +0 -1
- package/dist/components/ProgrammeCard/index.js.map +0 -1
- package/dist/components/RadioButton/RadioButton.js.map +0 -1
- package/dist/components/RadioButton/index.js.map +0 -1
- package/dist/components/RadioGroup/RadioGroup.js.map +0 -1
- package/dist/components/RadioGroup/index.js.map +0 -1
- package/dist/components/RadioTabSelector/RadioTabSelector.js.map +0 -1
- package/dist/components/RadioTabSelector/index.js.map +0 -1
- package/dist/components/Repeater/Repeater.js.map +0 -1
- package/dist/components/Repeater/index.js.map +0 -1
- package/dist/components/RteEditor/EditorHeader/EditorHeader.js.map +0 -1
- package/dist/components/RteEditor/EditorHeader/index.js.map +0 -1
- package/dist/components/RteEditor/Plugins/BlockFormatPlugin/index.js.map +0 -1
- package/dist/components/RteEditor/Plugins/CourseCataloguePlugin/AddCatalogueLinkForm/AddCatalogueLinkForm.js.map +0 -1
- package/dist/components/RteEditor/Plugins/CourseCataloguePlugin/AddCatalogueLinkForm/index.js.map +0 -1
- package/dist/components/RteEditor/Plugins/CourseCataloguePlugin/index.js.map +0 -1
- package/dist/components/RteEditor/Plugins/HistoryPlugin/HistoryPlugin.js.map +0 -1
- package/dist/components/RteEditor/Plugins/HistoryPlugin/index.js.map +0 -1
- package/dist/components/RteEditor/Plugins/LinkPlugin/AddLinkForm/AddLinkFrom.js.map +0 -1
- package/dist/components/RteEditor/Plugins/LinkPlugin/LinkContextMenu/LinkContextMenu.js.map +0 -1
- package/dist/components/RteEditor/Plugins/LinkPlugin/LinkPlugin.js.map +0 -1
- package/dist/components/RteEditor/Plugins/LinkPlugin/helpers.js.map +0 -1
- package/dist/components/RteEditor/Plugins/LinkPlugin/index.js.map +0 -1
- package/dist/components/RteEditor/Plugins/ListPlugin/index.js.map +0 -1
- package/dist/components/RteEditor/Plugins/PasteHandlerPlugin/PasteHandlerPlugin.js.map +0 -1
- package/dist/components/RteEditor/Plugins/PasteHandlerPlugin/index.js.map +0 -1
- package/dist/components/RteEditor/Plugins/TableCellResizerPlugin/TableCellResizerPlugin.js.map +0 -1
- package/dist/components/RteEditor/Plugins/TableCellResizerPlugin/index.js.map +0 -1
- package/dist/components/RteEditor/Plugins/TablePlugin/AddTableFrom.js.map +0 -1
- package/dist/components/RteEditor/Plugins/TablePlugin/TableCellContextMenu/TableCellContextMenu.js.map +0 -1
- package/dist/components/RteEditor/Plugins/TablePlugin/TableCellContextMenu/index.js.map +0 -1
- package/dist/components/RteEditor/Plugins/TablePlugin/TablePlugin.js.map +0 -1
- package/dist/components/RteEditor/Plugins/TablePlugin/index.js.map +0 -1
- package/dist/components/RteEditor/Plugins/ToolbarPlugin/ToolbarPlugin.js.map +0 -1
- package/dist/components/RteEditor/Plugins/ToolbarPlugin/index.js.map +0 -1
- package/dist/components/RteEditor/Plugins/index.js.map +0 -1
- package/dist/components/RteEditor/RteEditor.js.map +0 -1
- package/dist/components/RteEditor/UvaTheme/index.js.map +0 -1
- package/dist/components/RteEditor/hooks/components/Flyout.js.map +0 -1
- package/dist/components/RteEditor/index.js.map +0 -1
- package/dist/components/RteEditor/nodes/CourseCatalogueNode/index.js.map +0 -1
- package/dist/components/RteEditor/nodes/TableWrapperNode/index.js.map +0 -1
- package/dist/components/RteEditor/nodes/index.js.map +0 -1
- package/dist/components/SearchField/index.js.map +0 -1
- package/dist/components/SectionNotification/SectionNotification.js.map +0 -1
- package/dist/components/SectionNotification/index.js.map +0 -1
- package/dist/components/SelectListbox/index.js.map +0 -1
- package/dist/components/Slider/Slider.js.map +0 -1
- package/dist/components/Slider/index.js.map +0 -1
- package/dist/components/Sortable/SortableProvider.js.map +0 -1
- package/dist/components/Sortable/components/SortableContainer.js.map +0 -1
- package/dist/components/Sortable/index.js.map +0 -1
- package/dist/components/Spinner/Spinner.js.map +0 -1
- package/dist/components/Spinner/index.js.map +0 -1
- package/dist/components/StatusBadge/StatusBage.js.map +0 -1
- package/dist/components/StatusBadge/index.js.map +0 -1
- package/dist/components/StatusPill/StatusPill.js.map +0 -1
- package/dist/components/StatusPill/index.js.map +0 -1
- package/dist/components/TextArea/TextArea.js.map +0 -1
- package/dist/components/TextArea/index.js.map +0 -1
- package/dist/components/ToggleSwitch/ToggleSwitch.js.map +0 -1
- package/dist/components/ToggleSwitch/index.js.map +0 -1
- package/dist/components/Tooltip/Tooltip.js.map +0 -1
- package/dist/components/Tooltip/index.js.map +0 -1
- package/dist/components/VarIndicator/VarIndicator.js.map +0 -1
- package/dist/components/VarIndicator/index.js.map +0 -1
- package/dist/components/WeekSelector/index.js.map +0 -1
- package/dist/components/index.js.map +0 -1
- package/dist/index-B_q_4aBT.js +0 -24946
- package/dist/index-B_q_4aBT.js.map +0 -1
- package/dist/index-CULNJwuI.js +0 -2355
- package/dist/index-CULNJwuI.js.map +0 -1
- package/dist/index-D6WVIfcJ.js +0 -6039
- package/dist/index-D6WVIfcJ.js.map +0 -1
- package/dist/index-YdDr6J97.js +0 -3099
- package/dist/index-YdDr6J97.js.map +0 -1
- package/dist/index-yEhaxKq-.js +0 -238
- package/dist/index-yEhaxKq-.js.map +0 -1
- package/dist/index.js.map +0 -1
- package/dist/react-18-CxCoNkIN.js +0 -41
- package/dist/react-18-CxCoNkIN.js.map +0 -1
- package/dist/react.esm-C68fQMAi.js +0 -4237
- package/dist/react.esm-C68fQMAi.js.map +0 -1
- package/dist/storyComponents/ClipboardButton/ClipboardButton.js.map +0 -1
- package/dist/storyComponents/ClipboardButton/index.js.map +0 -1
- package/dist/storyComponents/Container/Container.js.map +0 -1
- package/dist/storyComponents/Container/index.js.map +0 -1
- package/dist/test-utils-BcpWLsLH.js +0 -56
- package/dist/test-utils-BcpWLsLH.js.map +0 -1
- package/dist/types/UserInterface.js.map +0 -1
- package/dist/vite-env.d.js.map +0 -1
|
@@ -0,0 +1,2781 @@
|
|
|
1
|
+
import { n as e } from "./chunk-DeC0fbbY.js";
|
|
2
|
+
import { r as t } from "./react.esm-CzIhAqlo.js";
|
|
3
|
+
//#region node_modules/@testing-library/user-event/dist/esm/utils/misc/isElementType.js
|
|
4
|
+
function n(e, t, n) {
|
|
5
|
+
return e.namespaceURI && e.namespaceURI !== "http://www.w3.org/1999/xhtml" || (t = Array.isArray(t) ? t : [t], !t.includes(e.tagName.toLowerCase())) ? !1 : n ? Object.entries(n).every(([t, n]) => e[t] === n) : !0;
|
|
6
|
+
}
|
|
7
|
+
//#endregion
|
|
8
|
+
//#region node_modules/@testing-library/user-event/dist/esm/utils/misc/getWindow.js
|
|
9
|
+
function r(e) {
|
|
10
|
+
if (i(e) && e.defaultView) return e.defaultView;
|
|
11
|
+
if (e.ownerDocument?.defaultView) return e.ownerDocument.defaultView;
|
|
12
|
+
throw Error(`Could not determine window of node. Node was ${a(e)}`);
|
|
13
|
+
}
|
|
14
|
+
function i(e) {
|
|
15
|
+
return e.nodeType === 9;
|
|
16
|
+
}
|
|
17
|
+
function a(e) {
|
|
18
|
+
return typeof e == "function" ? `function ${e.name}` : e === null ? "null" : String(e);
|
|
19
|
+
}
|
|
20
|
+
//#endregion
|
|
21
|
+
//#region node_modules/@testing-library/user-event/dist/esm/utils/dataTransfer/Blob.js
|
|
22
|
+
function o(e, t) {
|
|
23
|
+
return new Promise((n, r) => {
|
|
24
|
+
let i = new t();
|
|
25
|
+
i.onerror = r, i.onabort = r, i.onload = () => {
|
|
26
|
+
n(String(i.result));
|
|
27
|
+
}, i.readAsText(e);
|
|
28
|
+
});
|
|
29
|
+
}
|
|
30
|
+
//#endregion
|
|
31
|
+
//#region node_modules/@testing-library/user-event/dist/esm/utils/dataTransfer/FileList.js
|
|
32
|
+
function s(e, t) {
|
|
33
|
+
let n = {
|
|
34
|
+
...t,
|
|
35
|
+
length: t.length,
|
|
36
|
+
item: (e) => n[e],
|
|
37
|
+
[Symbol.iterator]: function* () {
|
|
38
|
+
for (let e = 0; e < n.length; e++) yield n[e];
|
|
39
|
+
}
|
|
40
|
+
};
|
|
41
|
+
return n.constructor = e.FileList, e.FileList && Object.setPrototypeOf(n, e.FileList.prototype), Object.freeze(n), n;
|
|
42
|
+
}
|
|
43
|
+
//#endregion
|
|
44
|
+
//#region node_modules/@testing-library/user-event/dist/esm/utils/dataTransfer/DataTransfer.js
|
|
45
|
+
function c(e, t, n) {
|
|
46
|
+
return t in e ? Object.defineProperty(e, t, {
|
|
47
|
+
value: n,
|
|
48
|
+
enumerable: !0,
|
|
49
|
+
configurable: !0,
|
|
50
|
+
writable: !0
|
|
51
|
+
}) : e[t] = n, e;
|
|
52
|
+
}
|
|
53
|
+
var l = class {
|
|
54
|
+
getAsFile() {
|
|
55
|
+
return this.file;
|
|
56
|
+
}
|
|
57
|
+
getAsString(e) {
|
|
58
|
+
typeof this.data == "string" && e(this.data);
|
|
59
|
+
}
|
|
60
|
+
/* istanbul ignore next */ webkitGetAsEntry() {
|
|
61
|
+
throw Error("not implemented");
|
|
62
|
+
}
|
|
63
|
+
constructor(e, t) {
|
|
64
|
+
c(this, "kind", void 0), c(this, "type", void 0), c(this, "file", null), c(this, "data", void 0), typeof e == "string" ? (this.kind = "string", this.type = String(t), this.data = e) : (this.kind = "file", this.type = e.type, this.file = e);
|
|
65
|
+
}
|
|
66
|
+
}, u = class extends Array {
|
|
67
|
+
add(...e) {
|
|
68
|
+
let t = new l(e[0], e[1]);
|
|
69
|
+
return this.push(t), t;
|
|
70
|
+
}
|
|
71
|
+
clear() {
|
|
72
|
+
this.splice(0, this.length);
|
|
73
|
+
}
|
|
74
|
+
remove(e) {
|
|
75
|
+
this.splice(e, 1);
|
|
76
|
+
}
|
|
77
|
+
};
|
|
78
|
+
function d(e, t) {
|
|
79
|
+
let [n, r] = e.split("/"), i = !r || r === "*";
|
|
80
|
+
return (r) => t ? r.type === (i ? n : e) : i ? r.type.startsWith(`${n}/`) : r.type === n;
|
|
81
|
+
}
|
|
82
|
+
function f(e) {
|
|
83
|
+
return new class {
|
|
84
|
+
getData(e) {
|
|
85
|
+
let t = this.items.find(d(e, !0)) ?? this.items.find(d(e, !1)), n = "";
|
|
86
|
+
return t?.getAsString((e) => {
|
|
87
|
+
n = e;
|
|
88
|
+
}), n;
|
|
89
|
+
}
|
|
90
|
+
setData(e, t) {
|
|
91
|
+
let n = this.items.findIndex(d(e, !0)), r = new l(t, e);
|
|
92
|
+
n >= 0 ? this.items.splice(n, 1, r) : this.items.push(r);
|
|
93
|
+
}
|
|
94
|
+
clearData(e) {
|
|
95
|
+
if (e) {
|
|
96
|
+
let t = this.items.findIndex(d(e, !0));
|
|
97
|
+
t >= 0 && this.items.remove(t);
|
|
98
|
+
} else this.items.clear();
|
|
99
|
+
}
|
|
100
|
+
get types() {
|
|
101
|
+
let e = [];
|
|
102
|
+
return this.files.length && e.push("Files"), this.items.forEach((t) => e.push(t.type)), Object.freeze(e), e;
|
|
103
|
+
}
|
|
104
|
+
/* istanbul ignore next */ setDragImage() {}
|
|
105
|
+
constructor() {
|
|
106
|
+
c(this, "dropEffect", "none"), c(this, "effectAllowed", "uninitialized"), c(this, "items", new u()), c(this, "files", s(e, []));
|
|
107
|
+
}
|
|
108
|
+
}();
|
|
109
|
+
}
|
|
110
|
+
function p(e, t = []) {
|
|
111
|
+
let n = e.DataTransfer === void 0 ? f(e) : new e.DataTransfer();
|
|
112
|
+
return Object.defineProperty(n, "files", { get: () => s(e, t) }), n;
|
|
113
|
+
}
|
|
114
|
+
async function ee(e, t) {
|
|
115
|
+
return t.kind === "file" ? t.getAsFile() : new e.Blob([await new Promise((e) => t.getAsString(e))], { type: t.type });
|
|
116
|
+
}
|
|
117
|
+
//#endregion
|
|
118
|
+
//#region node_modules/@testing-library/user-event/dist/esm/utils/dataTransfer/Clipboard.js
|
|
119
|
+
function te(e, t, n) {
|
|
120
|
+
return t in e ? Object.defineProperty(e, t, {
|
|
121
|
+
value: n,
|
|
122
|
+
enumerable: !0,
|
|
123
|
+
configurable: !0,
|
|
124
|
+
writable: !0
|
|
125
|
+
}) : e[t] = n, e;
|
|
126
|
+
}
|
|
127
|
+
function ne(e, ...t) {
|
|
128
|
+
let n = Object.fromEntries(t.map((e) => [typeof e == "string" ? "text/plain" : e.type, Promise.resolve(e)]));
|
|
129
|
+
return e.ClipboardItem === void 0 ? new class {
|
|
130
|
+
get types() {
|
|
131
|
+
return Array.from(Object.keys(this.data));
|
|
132
|
+
}
|
|
133
|
+
async getType(t) {
|
|
134
|
+
let n = await this.data[t];
|
|
135
|
+
if (!n) throw Error(`${t} is not one of the available MIME types on this item.`);
|
|
136
|
+
return n instanceof e.Blob ? n : new e.Blob([n], { type: t });
|
|
137
|
+
}
|
|
138
|
+
constructor(e) {
|
|
139
|
+
te(this, "data", void 0), this.data = e;
|
|
140
|
+
}
|
|
141
|
+
}(n) : new e.ClipboardItem(n);
|
|
142
|
+
}
|
|
143
|
+
var m = Symbol("Manage ClipboardSub");
|
|
144
|
+
function re(e, t) {
|
|
145
|
+
return Object.assign(new class extends e.EventTarget {
|
|
146
|
+
async read() {
|
|
147
|
+
return Array.from(this.items);
|
|
148
|
+
}
|
|
149
|
+
async readText() {
|
|
150
|
+
let t = "";
|
|
151
|
+
for (let n of this.items) {
|
|
152
|
+
let r = n.types.includes("text/plain") ? "text/plain" : n.types.find((e) => e.startsWith("text/"));
|
|
153
|
+
r && (t += await n.getType(r).then((t) => o(t, e.FileReader)));
|
|
154
|
+
}
|
|
155
|
+
return t;
|
|
156
|
+
}
|
|
157
|
+
async write(e) {
|
|
158
|
+
this.items = e;
|
|
159
|
+
}
|
|
160
|
+
async writeText(t) {
|
|
161
|
+
this.items = [ne(e, t)];
|
|
162
|
+
}
|
|
163
|
+
constructor(...e) {
|
|
164
|
+
super(...e), te(this, "items", []);
|
|
165
|
+
}
|
|
166
|
+
}(), { [m]: t });
|
|
167
|
+
}
|
|
168
|
+
function ie(e) {
|
|
169
|
+
return !!e?.[m];
|
|
170
|
+
}
|
|
171
|
+
function ae(e) {
|
|
172
|
+
if (ie(e.navigator.clipboard)) return e.navigator.clipboard[m];
|
|
173
|
+
let t = Object.getOwnPropertyDescriptor(e.navigator, "clipboard"), n, r = {
|
|
174
|
+
resetClipboardStub: () => {
|
|
175
|
+
n = re(e, r);
|
|
176
|
+
},
|
|
177
|
+
detachClipboardStub: () => {
|
|
178
|
+
/* istanbul ignore if */ t ? Object.defineProperty(e.navigator, "clipboard", t) : Object.defineProperty(e.navigator, "clipboard", {
|
|
179
|
+
value: void 0,
|
|
180
|
+
configurable: !0
|
|
181
|
+
});
|
|
182
|
+
}
|
|
183
|
+
};
|
|
184
|
+
return n = re(e, r), Object.defineProperty(e.navigator, "clipboard", {
|
|
185
|
+
get: () => n,
|
|
186
|
+
configurable: !0
|
|
187
|
+
}), n[m];
|
|
188
|
+
}
|
|
189
|
+
function oe(e) {
|
|
190
|
+
ie(e.navigator.clipboard) && e.navigator.clipboard[m].resetClipboardStub();
|
|
191
|
+
}
|
|
192
|
+
function se(e) {
|
|
193
|
+
ie(e.navigator.clipboard) && e.navigator.clipboard[m].detachClipboardStub();
|
|
194
|
+
}
|
|
195
|
+
async function ce(e) {
|
|
196
|
+
let t = e.defaultView, n = t?.navigator.clipboard, r = n && await n.read();
|
|
197
|
+
if (!r) throw Error("The Clipboard API is unavailable.");
|
|
198
|
+
let i = p(t);
|
|
199
|
+
for (let e of r) for (let n of e.types) i.setData(n, await e.getType(n).then((e) => o(e, t.FileReader)));
|
|
200
|
+
return i;
|
|
201
|
+
}
|
|
202
|
+
async function le(e, t) {
|
|
203
|
+
let n = r(e), i = n.navigator.clipboard, a = [];
|
|
204
|
+
for (let e = 0; e < t.items.length; e++) {
|
|
205
|
+
let r = t.items[e], i = await ee(n, r);
|
|
206
|
+
a.push(ne(n, i));
|
|
207
|
+
}
|
|
208
|
+
if (!(i && await i.write(a).then(
|
|
209
|
+
() => !0,
|
|
210
|
+
/* istanbul ignore next */
|
|
211
|
+
() => !1
|
|
212
|
+
))) throw Error("The Clipboard API is unavailable.");
|
|
213
|
+
}
|
|
214
|
+
var h = globalThis;
|
|
215
|
+
/* istanbul ignore else */ typeof h.afterEach == "function" && h.afterEach(() => oe(globalThis.window)), typeof h.afterAll == "function" && h.afterAll(() => se(globalThis.window));
|
|
216
|
+
//#endregion
|
|
217
|
+
//#region node_modules/@testing-library/user-event/dist/esm/utils/focus/selector.js
|
|
218
|
+
var ue = [
|
|
219
|
+
"input:not([type=hidden]):not([disabled])",
|
|
220
|
+
"button:not([disabled])",
|
|
221
|
+
"select:not([disabled])",
|
|
222
|
+
"textarea:not([disabled])",
|
|
223
|
+
"[contenteditable=\"\"]",
|
|
224
|
+
"[contenteditable=\"true\"]",
|
|
225
|
+
"a[href]",
|
|
226
|
+
"[tabindex]:not([disabled])"
|
|
227
|
+
].join(", ");
|
|
228
|
+
//#endregion
|
|
229
|
+
//#region node_modules/@testing-library/user-event/dist/esm/utils/focus/isFocusable.js
|
|
230
|
+
function de(e) {
|
|
231
|
+
return e.matches(ue);
|
|
232
|
+
}
|
|
233
|
+
//#endregion
|
|
234
|
+
//#region node_modules/@testing-library/user-event/dist/esm/utils/misc/cloneEvent.js
|
|
235
|
+
function fe(e) {
|
|
236
|
+
return new e.constructor(e.type, e);
|
|
237
|
+
}
|
|
238
|
+
//#endregion
|
|
239
|
+
//#region node_modules/@testing-library/user-event/dist/esm/utils/misc/isDisabled.js
|
|
240
|
+
function g(e) {
|
|
241
|
+
for (let t = e; t; t = t.parentElement) if (n(t, [
|
|
242
|
+
"button",
|
|
243
|
+
"input",
|
|
244
|
+
"select",
|
|
245
|
+
"textarea",
|
|
246
|
+
"optgroup",
|
|
247
|
+
"option"
|
|
248
|
+
])) {
|
|
249
|
+
if (t.hasAttribute("disabled")) return !0;
|
|
250
|
+
} else if (n(t, "fieldset")) {
|
|
251
|
+
if (t.hasAttribute("disabled") && !t.querySelector(":scope > legend")?.contains(e)) return !0;
|
|
252
|
+
} else if (t.tagName.includes("-") && t.constructor.formAssociated && t.hasAttribute("disabled")) return !0;
|
|
253
|
+
return !1;
|
|
254
|
+
}
|
|
255
|
+
//#endregion
|
|
256
|
+
//#region node_modules/@testing-library/user-event/dist/esm/utils/focus/getActiveElement.js
|
|
257
|
+
function _(e) {
|
|
258
|
+
let t = e.activeElement;
|
|
259
|
+
return t?.shadowRoot ? _(t.shadowRoot) : g(t) ? e.ownerDocument ? e.ownerDocument.body : e.body : t;
|
|
260
|
+
}
|
|
261
|
+
function pe(e) {
|
|
262
|
+
return _(e) ?? e.body;
|
|
263
|
+
}
|
|
264
|
+
//#endregion
|
|
265
|
+
//#region node_modules/@testing-library/user-event/dist/esm/utils/misc/findClosest.js
|
|
266
|
+
function me(e, t) {
|
|
267
|
+
let n = e;
|
|
268
|
+
do {
|
|
269
|
+
if (t(n)) return n;
|
|
270
|
+
n = n.parentElement;
|
|
271
|
+
} while (n && n !== e.ownerDocument.body);
|
|
272
|
+
}
|
|
273
|
+
//#endregion
|
|
274
|
+
//#region node_modules/@testing-library/user-event/dist/esm/utils/edit/isContentEditable.js
|
|
275
|
+
function v(e) {
|
|
276
|
+
return e.hasAttribute("contenteditable") && (e.getAttribute("contenteditable") == "true" || e.getAttribute("contenteditable") == "");
|
|
277
|
+
}
|
|
278
|
+
function y(e) {
|
|
279
|
+
let t = he(e);
|
|
280
|
+
return t && (t.closest("[contenteditable=\"\"]") || t.closest("[contenteditable=\"true\"]"));
|
|
281
|
+
}
|
|
282
|
+
function he(e) {
|
|
283
|
+
return e.nodeType === 1 ? e : e.parentElement;
|
|
284
|
+
}
|
|
285
|
+
//#endregion
|
|
286
|
+
//#region node_modules/@testing-library/user-event/dist/esm/utils/click/isClickableInput.js
|
|
287
|
+
var ge = /* @__PURE__ */ function(e) {
|
|
288
|
+
return e.button = "button", e.color = "color", e.file = "file", e.image = "image", e.reset = "reset", e.submit = "submit", e.checkbox = "checkbox", e.radio = "radio", e;
|
|
289
|
+
}(ge || {});
|
|
290
|
+
function _e(e) {
|
|
291
|
+
return n(e, "button") || n(e, "input") && e.type in ge;
|
|
292
|
+
}
|
|
293
|
+
//#endregion
|
|
294
|
+
//#region node_modules/@testing-library/user-event/dist/esm/utils/edit/isEditable.js
|
|
295
|
+
function b(e) {
|
|
296
|
+
return ye(e) && !e.readOnly || v(e);
|
|
297
|
+
}
|
|
298
|
+
var ve = /* @__PURE__ */ function(e) {
|
|
299
|
+
return e.text = "text", e.date = "date", e["datetime-local"] = "datetime-local", e.email = "email", e.month = "month", e.number = "number", e.password = "password", e.search = "search", e.tel = "tel", e.time = "time", e.url = "url", e.week = "week", e;
|
|
300
|
+
}(ve || {});
|
|
301
|
+
function ye(e) {
|
|
302
|
+
return n(e, "textarea") || n(e, "input") && e.type in ve;
|
|
303
|
+
}
|
|
304
|
+
//#endregion
|
|
305
|
+
//#region node_modules/@testing-library/user-event/dist/esm/utils/focus/selection.js
|
|
306
|
+
function x(e) {
|
|
307
|
+
return xe(e) && ye(e);
|
|
308
|
+
}
|
|
309
|
+
function be(e) {
|
|
310
|
+
return xe(e) && _e(e);
|
|
311
|
+
}
|
|
312
|
+
function xe(e) {
|
|
313
|
+
return e.nodeType === 1;
|
|
314
|
+
}
|
|
315
|
+
//#endregion
|
|
316
|
+
//#region node_modules/@testing-library/user-event/dist/esm/event/selection/updateSelectionOnFocus.js
|
|
317
|
+
function Se(e) {
|
|
318
|
+
let t = e.ownerDocument.getSelection();
|
|
319
|
+
if (t?.focusNode && x(e)) {
|
|
320
|
+
let n = y(t.focusNode);
|
|
321
|
+
if (n) {
|
|
322
|
+
if (!t.isCollapsed) {
|
|
323
|
+
let e = n.firstChild?.nodeType === 3 ? n.firstChild : n;
|
|
324
|
+
t.setBaseAndExtent(e, 0, e, 0);
|
|
325
|
+
}
|
|
326
|
+
} else t.setBaseAndExtent(e, 0, e, 0);
|
|
327
|
+
}
|
|
328
|
+
}
|
|
329
|
+
//#endregion
|
|
330
|
+
//#region node_modules/@testing-library/user-event/dist/esm/event/wrapEvent.js
|
|
331
|
+
function S(e, n) {
|
|
332
|
+
return t().eventWrapper(e);
|
|
333
|
+
}
|
|
334
|
+
//#endregion
|
|
335
|
+
//#region node_modules/@testing-library/user-event/dist/esm/event/focus.js
|
|
336
|
+
function C(e) {
|
|
337
|
+
let t = me(e, de), n = _(e.ownerDocument);
|
|
338
|
+
(t ?? e.ownerDocument.body) !== n && (S(t ? () => t.focus() : () => n?.blur()), Se(t ?? e.ownerDocument.body));
|
|
339
|
+
}
|
|
340
|
+
function Ce(e) {
|
|
341
|
+
de(e) && _(e.ownerDocument) === e && S(() => e.blur());
|
|
342
|
+
}
|
|
343
|
+
//#endregion
|
|
344
|
+
//#region node_modules/@testing-library/user-event/dist/esm/event/behavior/registry.js
|
|
345
|
+
var w = {};
|
|
346
|
+
//#endregion
|
|
347
|
+
//#region node_modules/@testing-library/user-event/dist/esm/event/behavior/click.js
|
|
348
|
+
w.click = (e, t, i) => {
|
|
349
|
+
let a = t.closest("button,input,label,select,textarea"), o = a && n(a, "label") && a.control;
|
|
350
|
+
if (o && o !== t) return () => {
|
|
351
|
+
de(o) && (C(o), i.dispatchEvent(o, fe(e)));
|
|
352
|
+
};
|
|
353
|
+
if (n(t, "input", { type: "file" })) return () => {
|
|
354
|
+
Ce(t), t.dispatchEvent(new (r(t)).Event("fileDialog")), C(t);
|
|
355
|
+
};
|
|
356
|
+
};
|
|
357
|
+
//#endregion
|
|
358
|
+
//#region node_modules/@testing-library/user-event/dist/esm/document/UI.js
|
|
359
|
+
var T = Symbol("Displayed value in UI"), E = Symbol("Displayed selection in UI"), D = Symbol("Initial value to compare on blur");
|
|
360
|
+
function we(e) {
|
|
361
|
+
return typeof e == "object" && T in e;
|
|
362
|
+
}
|
|
363
|
+
function Te(e) {
|
|
364
|
+
return !!e && typeof e == "object" && E in e;
|
|
365
|
+
}
|
|
366
|
+
function Ee(e, t) {
|
|
367
|
+
e[D] === void 0 && (e[D] = e.value), e[T] = t, e.value = Object.assign(new String(t), { [T]: !0 });
|
|
368
|
+
}
|
|
369
|
+
function O(e) {
|
|
370
|
+
return e[T] === void 0 ? e.value : String(e[T]);
|
|
371
|
+
}
|
|
372
|
+
function De(e) {
|
|
373
|
+
e[T] = void 0;
|
|
374
|
+
}
|
|
375
|
+
function Oe(e) {
|
|
376
|
+
e[D] = void 0;
|
|
377
|
+
}
|
|
378
|
+
function ke(e) {
|
|
379
|
+
return e[D];
|
|
380
|
+
}
|
|
381
|
+
function Ae(e, t) {
|
|
382
|
+
e[E] = t;
|
|
383
|
+
}
|
|
384
|
+
function k(e, { focusOffset: t, anchorOffset: n = t }, r = "replace") {
|
|
385
|
+
let i = O(e).length, a = (e) => Math.max(0, Math.min(i, e)), o = r === "replace" || e[E] === void 0 ? a(n) : e[E].anchorOffset, s = a(t), c = Math.min(o, s), l = Math.max(o, s);
|
|
386
|
+
if (e[E] = {
|
|
387
|
+
anchorOffset: o,
|
|
388
|
+
focusOffset: s
|
|
389
|
+
}, e.selectionStart === c && e.selectionEnd === l) return;
|
|
390
|
+
let u = Object.assign(new Number(c), { [E]: !0 });
|
|
391
|
+
try {
|
|
392
|
+
e.setSelectionRange(u, l);
|
|
393
|
+
} catch {}
|
|
394
|
+
}
|
|
395
|
+
function A(e) {
|
|
396
|
+
let t = e[E] ?? {
|
|
397
|
+
anchorOffset: e.selectionStart ?? 0,
|
|
398
|
+
focusOffset: e.selectionEnd ?? 0
|
|
399
|
+
};
|
|
400
|
+
return {
|
|
401
|
+
...t,
|
|
402
|
+
startOffset: Math.min(t.anchorOffset, t.focusOffset),
|
|
403
|
+
endOffset: Math.max(t.anchorOffset, t.focusOffset)
|
|
404
|
+
};
|
|
405
|
+
}
|
|
406
|
+
function je(e) {
|
|
407
|
+
return !!e[E];
|
|
408
|
+
}
|
|
409
|
+
function Me(e) {
|
|
410
|
+
e[E] = void 0;
|
|
411
|
+
}
|
|
412
|
+
//#endregion
|
|
413
|
+
//#region node_modules/@testing-library/user-event/dist/esm/utils/edit/timeValue.js
|
|
414
|
+
var Ne = globalThis.parseInt;
|
|
415
|
+
function Pe(e) {
|
|
416
|
+
let t = e.replace(/\D/g, "");
|
|
417
|
+
if (t.length < 2) return e;
|
|
418
|
+
let n = Ne(t[0], 10), r = Ne(t[1], 10);
|
|
419
|
+
if (n >= 3 || n === 2 && r >= 4) {
|
|
420
|
+
let e;
|
|
421
|
+
return e = n >= 3 ? 1 : 2, Fe(t, e);
|
|
422
|
+
}
|
|
423
|
+
return e.length === 2 ? e : Fe(t, 2);
|
|
424
|
+
}
|
|
425
|
+
function Fe(e, t) {
|
|
426
|
+
let n = e.slice(0, t), r = Math.min(Ne(n, 10), 23), i = Ne(e.slice(t), 10), a = Math.min(i, 59);
|
|
427
|
+
return `${r.toString().padStart(2, "0")}:${a.toString().padStart(2, "0")}`;
|
|
428
|
+
}
|
|
429
|
+
function Ie(e, t) {
|
|
430
|
+
let n = e.cloneNode();
|
|
431
|
+
return n.value = t, n.value === t;
|
|
432
|
+
}
|
|
433
|
+
//#endregion
|
|
434
|
+
//#region node_modules/@testing-library/user-event/dist/esm/utils/edit/maxLength.js
|
|
435
|
+
var Le = /* @__PURE__ */ function(e) {
|
|
436
|
+
return e.email = "email", e.password = "password", e.search = "search", e.telephone = "telephone", e.text = "text", e.url = "url", e;
|
|
437
|
+
}(Le || {});
|
|
438
|
+
function Re(e) {
|
|
439
|
+
let t = e.getAttribute("maxlength") ?? "";
|
|
440
|
+
return /^\d+$/.test(t) && Number(t) >= 0 ? Number(t) : void 0;
|
|
441
|
+
}
|
|
442
|
+
function ze(e) {
|
|
443
|
+
return n(e, "textarea") || n(e, "input") && e.type in Le;
|
|
444
|
+
}
|
|
445
|
+
//#endregion
|
|
446
|
+
//#region node_modules/@testing-library/user-event/dist/esm/utils/focus/cursor.js
|
|
447
|
+
function Be(e, t, r, i) {
|
|
448
|
+
if (Ge(e) && t + r >= 0 && t + r <= e.nodeValue.length) return {
|
|
449
|
+
node: e,
|
|
450
|
+
offset: t + r
|
|
451
|
+
};
|
|
452
|
+
let a = Ve(e, t, r);
|
|
453
|
+
if (a) {
|
|
454
|
+
if (Ge(a)) return {
|
|
455
|
+
node: a,
|
|
456
|
+
offset: r > 0 ? Math.min(1, a.nodeValue.length) : Math.max(a.nodeValue.length - 1, 0)
|
|
457
|
+
};
|
|
458
|
+
if (n(a, "br")) {
|
|
459
|
+
let e = Ve(a, void 0, r);
|
|
460
|
+
return e ? Ge(e) ? {
|
|
461
|
+
node: e,
|
|
462
|
+
offset: r > 0 ? 0 : e.nodeValue.length
|
|
463
|
+
} : r < 0 && n(e, "br") ? {
|
|
464
|
+
node: a.parentNode,
|
|
465
|
+
offset: Ue(a)
|
|
466
|
+
} : {
|
|
467
|
+
node: e.parentNode,
|
|
468
|
+
offset: Ue(e) + (r > 0 ? 0 : 1)
|
|
469
|
+
} : r < 0 && i === "deleteContentBackward" ? {
|
|
470
|
+
node: a.parentNode,
|
|
471
|
+
offset: Ue(a)
|
|
472
|
+
} : void 0;
|
|
473
|
+
} else return {
|
|
474
|
+
node: a.parentNode,
|
|
475
|
+
offset: Ue(a) + (r > 0 ? 1 : 0)
|
|
476
|
+
};
|
|
477
|
+
}
|
|
478
|
+
}
|
|
479
|
+
function Ve(e, t, n) {
|
|
480
|
+
let r = Number(t) + (n < 0 ? -1 : 0);
|
|
481
|
+
return t !== void 0 && We(e) && r >= 0 && r < e.children.length && (e = e.children[r]), Ke(e, n === 1 ? "next" : "previous", He);
|
|
482
|
+
}
|
|
483
|
+
function He(e) {
|
|
484
|
+
if (Ge(e)) return !0;
|
|
485
|
+
if (We(e)) {
|
|
486
|
+
if (n(e, ["input", "textarea"])) return e.type !== "hidden";
|
|
487
|
+
if (n(e, "br")) return !0;
|
|
488
|
+
}
|
|
489
|
+
return !1;
|
|
490
|
+
}
|
|
491
|
+
function Ue(e) {
|
|
492
|
+
let t = 0;
|
|
493
|
+
for (; e.previousSibling;) t++, e = e.previousSibling;
|
|
494
|
+
return t;
|
|
495
|
+
}
|
|
496
|
+
function We(e) {
|
|
497
|
+
return e.nodeType === 1;
|
|
498
|
+
}
|
|
499
|
+
function Ge(e) {
|
|
500
|
+
return e.nodeType === 3;
|
|
501
|
+
}
|
|
502
|
+
function Ke(e, t, n) {
|
|
503
|
+
for (;;) {
|
|
504
|
+
let r = e[`${t}Sibling`];
|
|
505
|
+
if (r) {
|
|
506
|
+
if (e = qe(r, t === "next" ? "first" : "last"), n(e)) return e;
|
|
507
|
+
} else if (e.parentNode && (!We(e.parentNode) || !v(e.parentNode) && e.parentNode !== e.ownerDocument?.body)) e = e.parentNode;
|
|
508
|
+
else break;
|
|
509
|
+
}
|
|
510
|
+
}
|
|
511
|
+
function qe(e, t) {
|
|
512
|
+
for (; e.hasChildNodes();) e = e[`${t}Child`];
|
|
513
|
+
return e;
|
|
514
|
+
}
|
|
515
|
+
//#endregion
|
|
516
|
+
//#region node_modules/@testing-library/user-event/dist/esm/document/trackValue.js
|
|
517
|
+
var j = Symbol("Track programmatic changes for React workaround");
|
|
518
|
+
function Je(e) {
|
|
519
|
+
return Object.getOwnPropertyNames(e).some((e) => e.startsWith("__react")) && r(e).REACT_VERSION === 17;
|
|
520
|
+
}
|
|
521
|
+
function Ye(e) {
|
|
522
|
+
Je(e) && (e[j] = {
|
|
523
|
+
previousValue: String(e.value),
|
|
524
|
+
tracked: []
|
|
525
|
+
});
|
|
526
|
+
}
|
|
527
|
+
function Xe(e, t) {
|
|
528
|
+
var n, r;
|
|
529
|
+
(r = e[j]) == null || (n = r.tracked) == null || n.push(t), e[j] || (De(e), k(e, { focusOffset: t.length }));
|
|
530
|
+
}
|
|
531
|
+
function Ze(e, t) {
|
|
532
|
+
let n = e[j];
|
|
533
|
+
if (e[j] = void 0, !(n != null && n.tracked?.length)) return;
|
|
534
|
+
let r = n.tracked.length === 2 && n.tracked[0] === n.previousValue && n.tracked[1] === e.value;
|
|
535
|
+
r || De(e), je(e) && k(e, { focusOffset: r ? t : e.value.length });
|
|
536
|
+
}
|
|
537
|
+
//#endregion
|
|
538
|
+
//#region node_modules/@testing-library/user-event/dist/esm/event/selection/getTargetTypeAndSelection.js
|
|
539
|
+
function Qe(e) {
|
|
540
|
+
let t = $e(e);
|
|
541
|
+
if (t && x(t)) return {
|
|
542
|
+
type: "input",
|
|
543
|
+
selection: A(t)
|
|
544
|
+
};
|
|
545
|
+
let n = t?.ownerDocument.getSelection();
|
|
546
|
+
return {
|
|
547
|
+
type: y(e) && n?.anchorNode && y(n.anchorNode) ? "contenteditable" : "default",
|
|
548
|
+
selection: n
|
|
549
|
+
};
|
|
550
|
+
}
|
|
551
|
+
function $e(e) {
|
|
552
|
+
return e.nodeType === 1 ? e : e.parentElement;
|
|
553
|
+
}
|
|
554
|
+
//#endregion
|
|
555
|
+
//#region node_modules/@testing-library/user-event/dist/esm/event/selection/getInputRange.js
|
|
556
|
+
function et(e) {
|
|
557
|
+
let t = Qe(e);
|
|
558
|
+
if (t.type === "input") return t.selection;
|
|
559
|
+
if (t.type === "contenteditable") return t.selection?.getRangeAt(0);
|
|
560
|
+
}
|
|
561
|
+
//#endregion
|
|
562
|
+
//#region node_modules/@testing-library/user-event/dist/esm/event/selection/setSelection.js
|
|
563
|
+
function M({ focusNode: e, focusOffset: t, anchorNode: n = e, anchorOffset: r = t }) {
|
|
564
|
+
var i, a;
|
|
565
|
+
if (Qe(e).type === "input") return k(e, {
|
|
566
|
+
anchorOffset: r,
|
|
567
|
+
focusOffset: t
|
|
568
|
+
});
|
|
569
|
+
(a = n.ownerDocument) == null || (i = a.getSelection()) == null || i.setBaseAndExtent(n, r, e, t);
|
|
570
|
+
}
|
|
571
|
+
//#endregion
|
|
572
|
+
//#region node_modules/@testing-library/user-event/dist/esm/event/input.js
|
|
573
|
+
function tt(e) {
|
|
574
|
+
return n(e, "input") && ["date", "time"].includes(e.type);
|
|
575
|
+
}
|
|
576
|
+
function N(e, t, n, r = "insertText") {
|
|
577
|
+
let i = et(t);
|
|
578
|
+
i && (!tt(t) && !e.dispatchUIEvent(t, "beforeinput", {
|
|
579
|
+
inputType: r,
|
|
580
|
+
data: n
|
|
581
|
+
}) || ("startContainer" in i ? nt(e, t, i, n, r) : rt(e, t, i, n, r)));
|
|
582
|
+
}
|
|
583
|
+
function nt(e, t, n, r, i) {
|
|
584
|
+
let a = !1;
|
|
585
|
+
if (!n.collapsed) a = !0, n.deleteContents();
|
|
586
|
+
else if (["deleteContentBackward", "deleteContentForward"].includes(i)) {
|
|
587
|
+
let e = Be(n.startContainer, n.startOffset, i === "deleteContentBackward" ? -1 : 1, i);
|
|
588
|
+
if (e) {
|
|
589
|
+
a = !0;
|
|
590
|
+
let t = n.cloneRange();
|
|
591
|
+
t.comparePoint(e.node, e.offset) < 0 ? t.setStart(e.node, e.offset) : t.setEnd(e.node, e.offset), t.deleteContents();
|
|
592
|
+
}
|
|
593
|
+
}
|
|
594
|
+
if (r) if (n.endContainer.nodeType === 3) {
|
|
595
|
+
let e = n.endOffset;
|
|
596
|
+
n.endContainer.insertData(e, r), n.setStart(n.endContainer, e + r.length), n.setEnd(n.endContainer, e + r.length);
|
|
597
|
+
} else {
|
|
598
|
+
let e = t.ownerDocument.createTextNode(r);
|
|
599
|
+
n.insertNode(e), n.setStart(e, r.length), n.setEnd(e, r.length);
|
|
600
|
+
}
|
|
601
|
+
(a || r) && e.dispatchUIEvent(t, "input", { inputType: i });
|
|
602
|
+
}
|
|
603
|
+
function rt(e, t, r, i, a) {
|
|
604
|
+
let o = i;
|
|
605
|
+
if (ze(t)) {
|
|
606
|
+
let e = Re(t);
|
|
607
|
+
if (e !== void 0 && i.length > 0) {
|
|
608
|
+
let n = e - t.value.length;
|
|
609
|
+
if (n > 0) o = i.substring(0, n);
|
|
610
|
+
else return;
|
|
611
|
+
}
|
|
612
|
+
}
|
|
613
|
+
let { newValue: s, newOffset: c, oldValue: l } = it(o, t, r, a);
|
|
614
|
+
s === l && c === r.startOffset && c === r.endOffset || n(t, "input", { type: "number" }) && !ot(s) || (Ee(t, s), M({
|
|
615
|
+
focusNode: t,
|
|
616
|
+
anchorOffset: c,
|
|
617
|
+
focusOffset: c
|
|
618
|
+
}), tt(t) ? Ie(t, s) && (at(e, t, c, {}), e.dispatchUIEvent(t, "change"), Oe(t)) : at(e, t, c, {
|
|
619
|
+
data: i,
|
|
620
|
+
inputType: a
|
|
621
|
+
}));
|
|
622
|
+
}
|
|
623
|
+
function it(e, t, { startOffset: r, endOffset: i }, a) {
|
|
624
|
+
let o = O(t), s = Math.max(0, r === i && a === "deleteContentBackward" ? r - 1 : r), c = o.substring(0, s), l = Math.min(o.length, r === i && a === "deleteContentForward" ? r + 1 : i), u = `${c}${e}${o.substring(l, o.length)}`, d = s + e.length;
|
|
625
|
+
if (n(t, "input", { type: "time" })) {
|
|
626
|
+
let e = Pe(u);
|
|
627
|
+
e !== "" && Ie(t, e) && (u = e, d = e.length);
|
|
628
|
+
}
|
|
629
|
+
return {
|
|
630
|
+
oldValue: o,
|
|
631
|
+
newValue: u,
|
|
632
|
+
newOffset: d
|
|
633
|
+
};
|
|
634
|
+
}
|
|
635
|
+
function at(e, t, n, r) {
|
|
636
|
+
e.dispatchUIEvent(t, "input", r), Ze(t, n);
|
|
637
|
+
}
|
|
638
|
+
function ot(e) {
|
|
639
|
+
let t = e.split("e", 2);
|
|
640
|
+
return !(/[^\d.\-e]/.test(e) || Number(e.match(/-/g)?.length) > 2 || Number(e.match(/\./g)?.length) > 1 || t[1] && !/^-?\d*$/.test(t[1]));
|
|
641
|
+
}
|
|
642
|
+
//#endregion
|
|
643
|
+
//#region node_modules/@testing-library/user-event/dist/esm/event/behavior/cut.js
|
|
644
|
+
w.cut = (e, t, n) => () => {
|
|
645
|
+
b(t) && N(n, t, "", "deleteByCut");
|
|
646
|
+
};
|
|
647
|
+
//#endregion
|
|
648
|
+
//#region node_modules/@testing-library/user-event/dist/esm/document/getValueOrTextContent.js
|
|
649
|
+
function st(e) {
|
|
650
|
+
return e ? v(e) ? e.textContent : O(e) : null;
|
|
651
|
+
}
|
|
652
|
+
//#endregion
|
|
653
|
+
//#region node_modules/@testing-library/user-event/dist/esm/utils/misc/isVisible.js
|
|
654
|
+
function ct(e) {
|
|
655
|
+
let t = r(e);
|
|
656
|
+
for (let n = e; n?.ownerDocument; n = n.parentElement) {
|
|
657
|
+
let { display: e, visibility: r } = t.getComputedStyle(n);
|
|
658
|
+
if (e === "none" || r === "hidden") return !1;
|
|
659
|
+
}
|
|
660
|
+
return !0;
|
|
661
|
+
}
|
|
662
|
+
//#endregion
|
|
663
|
+
//#region node_modules/@testing-library/user-event/dist/esm/utils/focus/getTabDestination.js
|
|
664
|
+
function lt(e, t) {
|
|
665
|
+
let r = e.ownerDocument, i = r.querySelectorAll(ue), a = Array.from(i).filter((t) => t === e || !(Number(t.getAttribute("tabindex")) < 0 || g(t)));
|
|
666
|
+
Number(e.getAttribute("tabindex")) >= 0 && a.sort((e, t) => {
|
|
667
|
+
let n = Number(e.getAttribute("tabindex")), r = Number(t.getAttribute("tabindex"));
|
|
668
|
+
return n === r ? 0 : n === 0 ? 1 : r === 0 ? -1 : n - r;
|
|
669
|
+
});
|
|
670
|
+
let o = {}, s = [r.body], c = n(e, "input", { type: "radio" }) ? e.name : void 0;
|
|
671
|
+
a.forEach((t) => {
|
|
672
|
+
let r = t;
|
|
673
|
+
if (n(r, "input", { type: "radio" }) && r.name) {
|
|
674
|
+
if (r === e) {
|
|
675
|
+
s.push(r);
|
|
676
|
+
return;
|
|
677
|
+
} else if (r.name === c) return;
|
|
678
|
+
if (r.checked) {
|
|
679
|
+
s = s.filter((e) => !n(e, "input", {
|
|
680
|
+
type: "radio",
|
|
681
|
+
name: r.name
|
|
682
|
+
})), s.push(r), o[r.name] = r;
|
|
683
|
+
return;
|
|
684
|
+
}
|
|
685
|
+
if (o[r.name] !== void 0) return;
|
|
686
|
+
}
|
|
687
|
+
s.push(r);
|
|
688
|
+
});
|
|
689
|
+
for (let n = s.findIndex((t) => t === e);;) if (n += t ? -1 : 1, n === s.length ? n = 0 : n === -1 && (n = s.length - 1), s[n] === e || s[n] === r.body || ct(s[n])) return s[n];
|
|
690
|
+
}
|
|
691
|
+
//#endregion
|
|
692
|
+
//#region node_modules/@testing-library/user-event/dist/esm/event/selection/moveSelection.js
|
|
693
|
+
function ut(e, t) {
|
|
694
|
+
if (x(e)) {
|
|
695
|
+
let n = A(e);
|
|
696
|
+
M({
|
|
697
|
+
focusNode: e,
|
|
698
|
+
focusOffset: n.startOffset === n.endOffset ? n.focusOffset + t : t < 0 ? n.startOffset : n.endOffset
|
|
699
|
+
});
|
|
700
|
+
} else {
|
|
701
|
+
let n = e.ownerDocument.getSelection();
|
|
702
|
+
if (!n?.focusNode) return;
|
|
703
|
+
if (n.isCollapsed) {
|
|
704
|
+
let e = Be(n.focusNode, n.focusOffset, t);
|
|
705
|
+
e && M({
|
|
706
|
+
focusNode: e.node,
|
|
707
|
+
focusOffset: e.offset
|
|
708
|
+
});
|
|
709
|
+
} else n[t < 0 ? "collapseToStart" : "collapseToEnd"]();
|
|
710
|
+
}
|
|
711
|
+
}
|
|
712
|
+
//#endregion
|
|
713
|
+
//#region node_modules/@testing-library/user-event/dist/esm/event/selection/selectAll.js
|
|
714
|
+
function dt(e) {
|
|
715
|
+
if (x(e)) return M({
|
|
716
|
+
focusNode: e,
|
|
717
|
+
anchorOffset: 0,
|
|
718
|
+
focusOffset: O(e).length
|
|
719
|
+
});
|
|
720
|
+
let t = y(e) ?? e.ownerDocument.body;
|
|
721
|
+
M({
|
|
722
|
+
focusNode: t,
|
|
723
|
+
anchorOffset: 0,
|
|
724
|
+
focusOffset: t.childNodes.length
|
|
725
|
+
});
|
|
726
|
+
}
|
|
727
|
+
function ft(e) {
|
|
728
|
+
if (x(e)) return A(e).startOffset === 0 && A(e).endOffset === O(e).length;
|
|
729
|
+
let t = y(e) ?? e.ownerDocument.body, n = e.ownerDocument.getSelection();
|
|
730
|
+
return n?.anchorNode === t && n.focusNode === t && n.anchorOffset === 0 && n.focusOffset === t.childNodes.length;
|
|
731
|
+
}
|
|
732
|
+
//#endregion
|
|
733
|
+
//#region node_modules/@testing-library/user-event/dist/esm/event/selection/setSelectionRange.js
|
|
734
|
+
function P(e, t, n) {
|
|
735
|
+
if (x(e)) return M({
|
|
736
|
+
focusNode: e,
|
|
737
|
+
anchorOffset: t,
|
|
738
|
+
focusOffset: n
|
|
739
|
+
});
|
|
740
|
+
/* istanbul ignore else */ if (v(e) && e.firstChild?.nodeType === 3) return M({
|
|
741
|
+
focusNode: e.firstChild,
|
|
742
|
+
anchorOffset: t,
|
|
743
|
+
focusOffset: n
|
|
744
|
+
});
|
|
745
|
+
/* istanbul ignore next */ throw Error("Not implemented. The result of this interaction is unreliable.");
|
|
746
|
+
}
|
|
747
|
+
//#endregion
|
|
748
|
+
//#region node_modules/@testing-library/user-event/dist/esm/event/radio.js
|
|
749
|
+
function F(e, t, n) {
|
|
750
|
+
let i = r(t), a = Array.from(t.ownerDocument.querySelectorAll(t.name ? `input[type="radio"][name="${i.CSS.escape(t.name)}"]` : "input[type=\"radio\"][name=\"\"], input[type=\"radio\"]:not([name])"));
|
|
751
|
+
for (let r = a.findIndex((e) => e === t) + n;; r += n) {
|
|
752
|
+
if (a[r] || (r = n > 0 ? 0 : a.length - 1), a[r] === t) return;
|
|
753
|
+
if (!g(a[r])) {
|
|
754
|
+
C(a[r]), e.dispatchUIEvent(a[r], "click");
|
|
755
|
+
return;
|
|
756
|
+
}
|
|
757
|
+
}
|
|
758
|
+
}
|
|
759
|
+
//#endregion
|
|
760
|
+
//#region node_modules/@testing-library/user-event/dist/esm/event/behavior/keydown.js
|
|
761
|
+
w.keydown = (e, t, n) => pt[e.key]?.call(pt, e, t, n) ?? mt(e, t, n);
|
|
762
|
+
var pt = {
|
|
763
|
+
ArrowDown: (e, t, r) => {
|
|
764
|
+
/* istanbul ignore else */ if (n(t, "input", { type: "radio" })) return () => F(r, t, 1);
|
|
765
|
+
},
|
|
766
|
+
ArrowLeft: (e, t, r) => n(t, "input", { type: "radio" }) ? () => F(r, t, -1) : () => ut(t, -1),
|
|
767
|
+
ArrowRight: (e, t, r) => n(t, "input", { type: "radio" }) ? () => F(r, t, 1) : () => ut(t, 1),
|
|
768
|
+
ArrowUp: (e, t, r) => {
|
|
769
|
+
/* istanbul ignore else */ if (n(t, "input", { type: "radio" })) return () => F(r, t, -1);
|
|
770
|
+
},
|
|
771
|
+
Backspace: (e, t, n) => {
|
|
772
|
+
if (b(t)) return () => {
|
|
773
|
+
N(n, t, "", "deleteContentBackward");
|
|
774
|
+
};
|
|
775
|
+
},
|
|
776
|
+
Delete: (e, t, n) => {
|
|
777
|
+
if (b(t)) return () => {
|
|
778
|
+
N(n, t, "", "deleteContentForward");
|
|
779
|
+
};
|
|
780
|
+
},
|
|
781
|
+
End: (e, t) => {
|
|
782
|
+
if (n(t, ["input", "textarea"]) || v(t)) return () => {
|
|
783
|
+
let e = st(t)?.length ?? 0;
|
|
784
|
+
P(t, e, e);
|
|
785
|
+
};
|
|
786
|
+
},
|
|
787
|
+
Home: (e, t) => {
|
|
788
|
+
if (n(t, ["input", "textarea"]) || v(t)) return () => {
|
|
789
|
+
P(t, 0, 0);
|
|
790
|
+
};
|
|
791
|
+
},
|
|
792
|
+
PageDown: (e, t) => {
|
|
793
|
+
if (n(t, ["input"])) return () => {
|
|
794
|
+
let e = O(t).length;
|
|
795
|
+
P(t, e, e);
|
|
796
|
+
};
|
|
797
|
+
},
|
|
798
|
+
PageUp: (e, t) => {
|
|
799
|
+
if (n(t, ["input"])) return () => {
|
|
800
|
+
P(t, 0, 0);
|
|
801
|
+
};
|
|
802
|
+
},
|
|
803
|
+
Tab: (e, t, n) => () => {
|
|
804
|
+
let e = lt(t, n.system.keyboard.modifiers.Shift);
|
|
805
|
+
C(e), x(e) && k(e, {
|
|
806
|
+
anchorOffset: 0,
|
|
807
|
+
focusOffset: e.value.length
|
|
808
|
+
});
|
|
809
|
+
}
|
|
810
|
+
}, mt = (e, t, n) => {
|
|
811
|
+
if (e.code === "KeyA" && n.system.keyboard.modifiers.Control) return () => dt(t);
|
|
812
|
+
};
|
|
813
|
+
//#endregion
|
|
814
|
+
//#region node_modules/@testing-library/user-event/dist/esm/event/behavior/keypress.js
|
|
815
|
+
w.keypress = (e, t, r) => {
|
|
816
|
+
if (e.key === "Enter") {
|
|
817
|
+
if (n(t, "button") || n(t, "input") && ht.includes(t.type) || n(t, "a") && t.href) return () => {
|
|
818
|
+
r.dispatchUIEvent(t, "click");
|
|
819
|
+
};
|
|
820
|
+
if (n(t, "input")) {
|
|
821
|
+
let e = t.form, n = e?.querySelector("input[type=\"submit\"], button:not([type]), button[type=\"submit\"]");
|
|
822
|
+
return n ? () => r.dispatchUIEvent(n, "click") : e && gt.includes(t.type) && e.querySelectorAll("input").length === 1 ? () => r.dispatchUIEvent(e, "submit") : void 0;
|
|
823
|
+
}
|
|
824
|
+
}
|
|
825
|
+
if (b(t)) {
|
|
826
|
+
let n = e.key === "Enter" ? v(t) && !r.system.keyboard.modifiers.Shift ? "insertParagraph" : "insertLineBreak" : "insertText", i = e.key === "Enter" ? "\n" : e.key;
|
|
827
|
+
return () => N(r, t, i, n);
|
|
828
|
+
}
|
|
829
|
+
};
|
|
830
|
+
var ht = [
|
|
831
|
+
"button",
|
|
832
|
+
"color",
|
|
833
|
+
"file",
|
|
834
|
+
"image",
|
|
835
|
+
"reset",
|
|
836
|
+
"submit"
|
|
837
|
+
], gt = [
|
|
838
|
+
"email",
|
|
839
|
+
"month",
|
|
840
|
+
"password",
|
|
841
|
+
"search",
|
|
842
|
+
"tel",
|
|
843
|
+
"text",
|
|
844
|
+
"url",
|
|
845
|
+
"week"
|
|
846
|
+
];
|
|
847
|
+
//#endregion
|
|
848
|
+
//#region node_modules/@testing-library/user-event/dist/esm/event/behavior/keyup.js
|
|
849
|
+
w.keyup = (e, t, n) => _t[e.key]?.call(_t, e, t, n);
|
|
850
|
+
var _t = { " ": (e, t, n) => {
|
|
851
|
+
if (_e(t)) return () => n.dispatchUIEvent(t, "click");
|
|
852
|
+
} };
|
|
853
|
+
//#endregion
|
|
854
|
+
//#region node_modules/@testing-library/user-event/dist/esm/event/behavior/paste.js
|
|
855
|
+
w.paste = (e, t, n) => {
|
|
856
|
+
if (b(t)) return () => {
|
|
857
|
+
let r = e.clipboardData?.getData("text");
|
|
858
|
+
r && N(n, t, r, "insertFromPaste");
|
|
859
|
+
};
|
|
860
|
+
};
|
|
861
|
+
//#endregion
|
|
862
|
+
//#region node_modules/@testing-library/user-event/dist/esm/event/eventMap.js
|
|
863
|
+
var vt = {
|
|
864
|
+
auxclick: {
|
|
865
|
+
EventType: "PointerEvent",
|
|
866
|
+
defaultInit: {
|
|
867
|
+
bubbles: !0,
|
|
868
|
+
cancelable: !0,
|
|
869
|
+
composed: !0
|
|
870
|
+
}
|
|
871
|
+
},
|
|
872
|
+
beforeinput: {
|
|
873
|
+
EventType: "InputEvent",
|
|
874
|
+
defaultInit: {
|
|
875
|
+
bubbles: !0,
|
|
876
|
+
cancelable: !0,
|
|
877
|
+
composed: !0
|
|
878
|
+
}
|
|
879
|
+
},
|
|
880
|
+
blur: {
|
|
881
|
+
EventType: "FocusEvent",
|
|
882
|
+
defaultInit: {
|
|
883
|
+
bubbles: !1,
|
|
884
|
+
cancelable: !1,
|
|
885
|
+
composed: !0
|
|
886
|
+
}
|
|
887
|
+
},
|
|
888
|
+
click: {
|
|
889
|
+
EventType: "PointerEvent",
|
|
890
|
+
defaultInit: {
|
|
891
|
+
bubbles: !0,
|
|
892
|
+
cancelable: !0,
|
|
893
|
+
composed: !0
|
|
894
|
+
}
|
|
895
|
+
},
|
|
896
|
+
contextmenu: {
|
|
897
|
+
EventType: "PointerEvent",
|
|
898
|
+
defaultInit: {
|
|
899
|
+
bubbles: !0,
|
|
900
|
+
cancelable: !0,
|
|
901
|
+
composed: !0
|
|
902
|
+
}
|
|
903
|
+
},
|
|
904
|
+
copy: {
|
|
905
|
+
EventType: "ClipboardEvent",
|
|
906
|
+
defaultInit: {
|
|
907
|
+
bubbles: !0,
|
|
908
|
+
cancelable: !0,
|
|
909
|
+
composed: !0
|
|
910
|
+
}
|
|
911
|
+
},
|
|
912
|
+
change: {
|
|
913
|
+
EventType: "Event",
|
|
914
|
+
defaultInit: {
|
|
915
|
+
bubbles: !0,
|
|
916
|
+
cancelable: !1
|
|
917
|
+
}
|
|
918
|
+
},
|
|
919
|
+
cut: {
|
|
920
|
+
EventType: "ClipboardEvent",
|
|
921
|
+
defaultInit: {
|
|
922
|
+
bubbles: !0,
|
|
923
|
+
cancelable: !0,
|
|
924
|
+
composed: !0
|
|
925
|
+
}
|
|
926
|
+
},
|
|
927
|
+
dblclick: {
|
|
928
|
+
EventType: "MouseEvent",
|
|
929
|
+
defaultInit: {
|
|
930
|
+
bubbles: !0,
|
|
931
|
+
cancelable: !0,
|
|
932
|
+
composed: !0
|
|
933
|
+
}
|
|
934
|
+
},
|
|
935
|
+
focus: {
|
|
936
|
+
EventType: "FocusEvent",
|
|
937
|
+
defaultInit: {
|
|
938
|
+
bubbles: !1,
|
|
939
|
+
cancelable: !1,
|
|
940
|
+
composed: !0
|
|
941
|
+
}
|
|
942
|
+
},
|
|
943
|
+
focusin: {
|
|
944
|
+
EventType: "FocusEvent",
|
|
945
|
+
defaultInit: {
|
|
946
|
+
bubbles: !0,
|
|
947
|
+
cancelable: !1,
|
|
948
|
+
composed: !0
|
|
949
|
+
}
|
|
950
|
+
},
|
|
951
|
+
focusout: {
|
|
952
|
+
EventType: "FocusEvent",
|
|
953
|
+
defaultInit: {
|
|
954
|
+
bubbles: !0,
|
|
955
|
+
cancelable: !1,
|
|
956
|
+
composed: !0
|
|
957
|
+
}
|
|
958
|
+
},
|
|
959
|
+
keydown: {
|
|
960
|
+
EventType: "KeyboardEvent",
|
|
961
|
+
defaultInit: {
|
|
962
|
+
bubbles: !0,
|
|
963
|
+
cancelable: !0,
|
|
964
|
+
composed: !0
|
|
965
|
+
}
|
|
966
|
+
},
|
|
967
|
+
keypress: {
|
|
968
|
+
EventType: "KeyboardEvent",
|
|
969
|
+
defaultInit: {
|
|
970
|
+
bubbles: !0,
|
|
971
|
+
cancelable: !0,
|
|
972
|
+
composed: !0
|
|
973
|
+
}
|
|
974
|
+
},
|
|
975
|
+
keyup: {
|
|
976
|
+
EventType: "KeyboardEvent",
|
|
977
|
+
defaultInit: {
|
|
978
|
+
bubbles: !0,
|
|
979
|
+
cancelable: !0,
|
|
980
|
+
composed: !0
|
|
981
|
+
}
|
|
982
|
+
},
|
|
983
|
+
paste: {
|
|
984
|
+
EventType: "ClipboardEvent",
|
|
985
|
+
defaultInit: {
|
|
986
|
+
bubbles: !0,
|
|
987
|
+
cancelable: !0,
|
|
988
|
+
composed: !0
|
|
989
|
+
}
|
|
990
|
+
},
|
|
991
|
+
input: {
|
|
992
|
+
EventType: "InputEvent",
|
|
993
|
+
defaultInit: {
|
|
994
|
+
bubbles: !0,
|
|
995
|
+
cancelable: !1,
|
|
996
|
+
composed: !0
|
|
997
|
+
}
|
|
998
|
+
},
|
|
999
|
+
mousedown: {
|
|
1000
|
+
EventType: "MouseEvent",
|
|
1001
|
+
defaultInit: {
|
|
1002
|
+
bubbles: !0,
|
|
1003
|
+
cancelable: !0,
|
|
1004
|
+
composed: !0
|
|
1005
|
+
}
|
|
1006
|
+
},
|
|
1007
|
+
mouseenter: {
|
|
1008
|
+
EventType: "MouseEvent",
|
|
1009
|
+
defaultInit: {
|
|
1010
|
+
bubbles: !1,
|
|
1011
|
+
cancelable: !1,
|
|
1012
|
+
composed: !0
|
|
1013
|
+
}
|
|
1014
|
+
},
|
|
1015
|
+
mouseleave: {
|
|
1016
|
+
EventType: "MouseEvent",
|
|
1017
|
+
defaultInit: {
|
|
1018
|
+
bubbles: !1,
|
|
1019
|
+
cancelable: !1,
|
|
1020
|
+
composed: !0
|
|
1021
|
+
}
|
|
1022
|
+
},
|
|
1023
|
+
mousemove: {
|
|
1024
|
+
EventType: "MouseEvent",
|
|
1025
|
+
defaultInit: {
|
|
1026
|
+
bubbles: !0,
|
|
1027
|
+
cancelable: !0,
|
|
1028
|
+
composed: !0
|
|
1029
|
+
}
|
|
1030
|
+
},
|
|
1031
|
+
mouseout: {
|
|
1032
|
+
EventType: "MouseEvent",
|
|
1033
|
+
defaultInit: {
|
|
1034
|
+
bubbles: !0,
|
|
1035
|
+
cancelable: !0,
|
|
1036
|
+
composed: !0
|
|
1037
|
+
}
|
|
1038
|
+
},
|
|
1039
|
+
mouseover: {
|
|
1040
|
+
EventType: "MouseEvent",
|
|
1041
|
+
defaultInit: {
|
|
1042
|
+
bubbles: !0,
|
|
1043
|
+
cancelable: !0,
|
|
1044
|
+
composed: !0
|
|
1045
|
+
}
|
|
1046
|
+
},
|
|
1047
|
+
mouseup: {
|
|
1048
|
+
EventType: "MouseEvent",
|
|
1049
|
+
defaultInit: {
|
|
1050
|
+
bubbles: !0,
|
|
1051
|
+
cancelable: !0,
|
|
1052
|
+
composed: !0
|
|
1053
|
+
}
|
|
1054
|
+
},
|
|
1055
|
+
pointerover: {
|
|
1056
|
+
EventType: "PointerEvent",
|
|
1057
|
+
defaultInit: {
|
|
1058
|
+
bubbles: !0,
|
|
1059
|
+
cancelable: !0,
|
|
1060
|
+
composed: !0
|
|
1061
|
+
}
|
|
1062
|
+
},
|
|
1063
|
+
pointerenter: {
|
|
1064
|
+
EventType: "PointerEvent",
|
|
1065
|
+
defaultInit: {
|
|
1066
|
+
bubbles: !1,
|
|
1067
|
+
cancelable: !1
|
|
1068
|
+
}
|
|
1069
|
+
},
|
|
1070
|
+
pointerdown: {
|
|
1071
|
+
EventType: "PointerEvent",
|
|
1072
|
+
defaultInit: {
|
|
1073
|
+
bubbles: !0,
|
|
1074
|
+
cancelable: !0,
|
|
1075
|
+
composed: !0
|
|
1076
|
+
}
|
|
1077
|
+
},
|
|
1078
|
+
pointermove: {
|
|
1079
|
+
EventType: "PointerEvent",
|
|
1080
|
+
defaultInit: {
|
|
1081
|
+
bubbles: !0,
|
|
1082
|
+
cancelable: !0,
|
|
1083
|
+
composed: !0
|
|
1084
|
+
}
|
|
1085
|
+
},
|
|
1086
|
+
pointerup: {
|
|
1087
|
+
EventType: "PointerEvent",
|
|
1088
|
+
defaultInit: {
|
|
1089
|
+
bubbles: !0,
|
|
1090
|
+
cancelable: !0,
|
|
1091
|
+
composed: !0
|
|
1092
|
+
}
|
|
1093
|
+
},
|
|
1094
|
+
pointercancel: {
|
|
1095
|
+
EventType: "PointerEvent",
|
|
1096
|
+
defaultInit: {
|
|
1097
|
+
bubbles: !0,
|
|
1098
|
+
cancelable: !1,
|
|
1099
|
+
composed: !0
|
|
1100
|
+
}
|
|
1101
|
+
},
|
|
1102
|
+
pointerout: {
|
|
1103
|
+
EventType: "PointerEvent",
|
|
1104
|
+
defaultInit: {
|
|
1105
|
+
bubbles: !0,
|
|
1106
|
+
cancelable: !0,
|
|
1107
|
+
composed: !0
|
|
1108
|
+
}
|
|
1109
|
+
},
|
|
1110
|
+
pointerleave: {
|
|
1111
|
+
EventType: "PointerEvent",
|
|
1112
|
+
defaultInit: {
|
|
1113
|
+
bubbles: !1,
|
|
1114
|
+
cancelable: !1
|
|
1115
|
+
}
|
|
1116
|
+
},
|
|
1117
|
+
submit: {
|
|
1118
|
+
EventType: "Event",
|
|
1119
|
+
defaultInit: {
|
|
1120
|
+
bubbles: !0,
|
|
1121
|
+
cancelable: !0
|
|
1122
|
+
}
|
|
1123
|
+
}
|
|
1124
|
+
};
|
|
1125
|
+
function yt(e) {
|
|
1126
|
+
return vt[e].EventType;
|
|
1127
|
+
}
|
|
1128
|
+
var bt = ["MouseEvent", "PointerEvent"];
|
|
1129
|
+
function xt(e) {
|
|
1130
|
+
return bt.includes(yt(e));
|
|
1131
|
+
}
|
|
1132
|
+
function St(e) {
|
|
1133
|
+
return yt(e) === "KeyboardEvent";
|
|
1134
|
+
}
|
|
1135
|
+
//#endregion
|
|
1136
|
+
//#region node_modules/@testing-library/user-event/dist/esm/event/createEvent.js
|
|
1137
|
+
var Ct = {
|
|
1138
|
+
ClipboardEvent: [Et],
|
|
1139
|
+
Event: [],
|
|
1140
|
+
FocusEvent: [R, Dt],
|
|
1141
|
+
InputEvent: [R, Ot],
|
|
1142
|
+
MouseEvent: [
|
|
1143
|
+
R,
|
|
1144
|
+
kt,
|
|
1145
|
+
jt
|
|
1146
|
+
],
|
|
1147
|
+
PointerEvent: [
|
|
1148
|
+
R,
|
|
1149
|
+
kt,
|
|
1150
|
+
jt,
|
|
1151
|
+
Mt
|
|
1152
|
+
],
|
|
1153
|
+
KeyboardEvent: [
|
|
1154
|
+
R,
|
|
1155
|
+
kt,
|
|
1156
|
+
At
|
|
1157
|
+
]
|
|
1158
|
+
};
|
|
1159
|
+
function wt(e, t, n) {
|
|
1160
|
+
let i = r(t), { EventType: a, defaultInit: o } = vt[e], s = new (Tt(i))[a](e, o);
|
|
1161
|
+
return Ct[a].forEach((e) => e(s, n ?? {})), s;
|
|
1162
|
+
}
|
|
1163
|
+
/* istanbul ignore next */ function Tt(e) {
|
|
1164
|
+
let t = e.Event ?? class {}, n = e.AnimationEvent ?? class extends t {}, r = e.ClipboardEvent ?? class extends t {}, i = e.PopStateEvent ?? class extends t {}, a = e.ProgressEvent ?? class extends t {}, o = e.TransitionEvent ?? class extends t {}, s = e.UIEvent ?? class extends t {}, c = e.CompositionEvent ?? class extends s {}, l = e.FocusEvent ?? class extends s {}, u = e.InputEvent ?? class extends s {}, d = e.KeyboardEvent ?? class extends s {}, f = e.MouseEvent ?? class extends s {};
|
|
1165
|
+
return {
|
|
1166
|
+
Event: t,
|
|
1167
|
+
AnimationEvent: n,
|
|
1168
|
+
ClipboardEvent: r,
|
|
1169
|
+
PopStateEvent: i,
|
|
1170
|
+
ProgressEvent: a,
|
|
1171
|
+
TransitionEvent: o,
|
|
1172
|
+
UIEvent: s,
|
|
1173
|
+
CompositionEvent: c,
|
|
1174
|
+
FocusEvent: l,
|
|
1175
|
+
InputEvent: u,
|
|
1176
|
+
KeyboardEvent: d,
|
|
1177
|
+
MouseEvent: f,
|
|
1178
|
+
DragEvent: e.DragEvent ?? class extends f {},
|
|
1179
|
+
PointerEvent: e.PointerEvent ?? class extends f {},
|
|
1180
|
+
TouchEvent: e.TouchEvent ?? class extends s {}
|
|
1181
|
+
};
|
|
1182
|
+
}
|
|
1183
|
+
function I(e, t) {
|
|
1184
|
+
for (let [n, r] of Object.entries(t)) Object.defineProperty(e, n, { get: () => r ?? null });
|
|
1185
|
+
}
|
|
1186
|
+
function L(e) {
|
|
1187
|
+
return Number(e ?? 0);
|
|
1188
|
+
}
|
|
1189
|
+
function Et(e, { clipboardData: t }) {
|
|
1190
|
+
I(e, { clipboardData: t });
|
|
1191
|
+
}
|
|
1192
|
+
function Dt(e, { relatedTarget: t }) {
|
|
1193
|
+
I(e, { relatedTarget: t });
|
|
1194
|
+
}
|
|
1195
|
+
function Ot(e, { data: t, inputType: n, isComposing: r }) {
|
|
1196
|
+
I(e, {
|
|
1197
|
+
data: t,
|
|
1198
|
+
isComposing: !!r,
|
|
1199
|
+
inputType: String(n)
|
|
1200
|
+
});
|
|
1201
|
+
}
|
|
1202
|
+
function R(e, { view: t, detail: n }) {
|
|
1203
|
+
I(e, {
|
|
1204
|
+
view: t,
|
|
1205
|
+
detail: L(n ?? 0)
|
|
1206
|
+
});
|
|
1207
|
+
}
|
|
1208
|
+
function kt(e, { altKey: t, ctrlKey: n, metaKey: r, shiftKey: i, modifierAltGraph: a, modifierCapsLock: o, modifierFn: s, modifierFnLock: c, modifierNumLock: l, modifierScrollLock: u, modifierSymbol: d, modifierSymbolLock: f }) {
|
|
1209
|
+
I(e, {
|
|
1210
|
+
altKey: !!t,
|
|
1211
|
+
ctrlKey: !!n,
|
|
1212
|
+
metaKey: !!r,
|
|
1213
|
+
shiftKey: !!i,
|
|
1214
|
+
getModifierState(e) {
|
|
1215
|
+
return !!{
|
|
1216
|
+
Alt: t,
|
|
1217
|
+
AltGraph: a,
|
|
1218
|
+
CapsLock: o,
|
|
1219
|
+
Control: n,
|
|
1220
|
+
Fn: s,
|
|
1221
|
+
FnLock: c,
|
|
1222
|
+
Meta: r,
|
|
1223
|
+
NumLock: l,
|
|
1224
|
+
ScrollLock: u,
|
|
1225
|
+
Shift: i,
|
|
1226
|
+
Symbol: d,
|
|
1227
|
+
SymbolLock: f
|
|
1228
|
+
}[e];
|
|
1229
|
+
}
|
|
1230
|
+
});
|
|
1231
|
+
}
|
|
1232
|
+
function At(e, { key: t, code: n, location: r, repeat: i, isComposing: a, charCode: o }) {
|
|
1233
|
+
I(e, {
|
|
1234
|
+
key: String(t),
|
|
1235
|
+
code: String(n),
|
|
1236
|
+
location: L(r),
|
|
1237
|
+
repeat: !!i,
|
|
1238
|
+
isComposing: !!a,
|
|
1239
|
+
charCode: o
|
|
1240
|
+
});
|
|
1241
|
+
}
|
|
1242
|
+
function jt(e, { x: t, y: n, screenX: r, screenY: i, clientX: a = t, clientY: o = n, button: s, buttons: c, relatedTarget: l, offsetX: u, offsetY: d, pageX: f, pageY: p }) {
|
|
1243
|
+
I(e, {
|
|
1244
|
+
screenX: L(r),
|
|
1245
|
+
screenY: L(i),
|
|
1246
|
+
clientX: L(a),
|
|
1247
|
+
x: L(a),
|
|
1248
|
+
clientY: L(o),
|
|
1249
|
+
y: L(o),
|
|
1250
|
+
button: L(s),
|
|
1251
|
+
buttons: L(c),
|
|
1252
|
+
relatedTarget: l,
|
|
1253
|
+
offsetX: L(u),
|
|
1254
|
+
offsetY: L(d),
|
|
1255
|
+
pageX: L(f),
|
|
1256
|
+
pageY: L(p)
|
|
1257
|
+
});
|
|
1258
|
+
}
|
|
1259
|
+
function Mt(e, { pointerId: t, width: n, height: r, pressure: i, tangentialPressure: a, tiltX: o, tiltY: s, twist: c, pointerType: l, isPrimary: u }) {
|
|
1260
|
+
I(e, {
|
|
1261
|
+
pointerId: L(t),
|
|
1262
|
+
width: L(n ?? 1),
|
|
1263
|
+
height: L(r ?? 1),
|
|
1264
|
+
pressure: L(i),
|
|
1265
|
+
tangentialPressure: L(a),
|
|
1266
|
+
tiltX: L(o),
|
|
1267
|
+
tiltY: L(s),
|
|
1268
|
+
twist: L(c),
|
|
1269
|
+
pointerType: String(l),
|
|
1270
|
+
isPrimary: !!u
|
|
1271
|
+
});
|
|
1272
|
+
}
|
|
1273
|
+
//#endregion
|
|
1274
|
+
//#region node_modules/@testing-library/user-event/dist/esm/event/dispatchEvent.js
|
|
1275
|
+
function Nt(e, t, n, r = !1) {
|
|
1276
|
+
(xt(t) || St(t)) && (n = {
|
|
1277
|
+
...n,
|
|
1278
|
+
...this.system.getUIEventModifiers()
|
|
1279
|
+
});
|
|
1280
|
+
let i = wt(t, e, n);
|
|
1281
|
+
return Pt.call(this, e, i, r);
|
|
1282
|
+
}
|
|
1283
|
+
function Pt(e, t, n = !1) {
|
|
1284
|
+
let r = t.type, i = n ? () => {} : w[r]?.call(w, t, e, this);
|
|
1285
|
+
if (i) {
|
|
1286
|
+
t.preventDefault();
|
|
1287
|
+
let n = !1;
|
|
1288
|
+
return Object.defineProperty(t, "defaultPrevented", { get: () => n }), Object.defineProperty(t, "preventDefault", { value: () => {
|
|
1289
|
+
n = t.cancelable;
|
|
1290
|
+
} }), S(() => e.dispatchEvent(t)), n || i(), !n;
|
|
1291
|
+
}
|
|
1292
|
+
return S(() => e.dispatchEvent(t));
|
|
1293
|
+
}
|
|
1294
|
+
function z(e, t, n) {
|
|
1295
|
+
let r = wt(t, e, n);
|
|
1296
|
+
S(() => e.dispatchEvent(r));
|
|
1297
|
+
}
|
|
1298
|
+
//#endregion
|
|
1299
|
+
//#region node_modules/@testing-library/user-event/dist/esm/document/patchFocus.js
|
|
1300
|
+
var Ft = Symbol("patched focus/blur methods");
|
|
1301
|
+
function It(e) {
|
|
1302
|
+
if (e.prototype[Ft]) return;
|
|
1303
|
+
let { focus: t, blur: n } = e.prototype;
|
|
1304
|
+
Object.defineProperties(e.prototype, {
|
|
1305
|
+
focus: {
|
|
1306
|
+
configurable: !0,
|
|
1307
|
+
get: () => i
|
|
1308
|
+
},
|
|
1309
|
+
blur: {
|
|
1310
|
+
configurable: !0,
|
|
1311
|
+
get: () => a
|
|
1312
|
+
},
|
|
1313
|
+
[Ft]: {
|
|
1314
|
+
configurable: !0,
|
|
1315
|
+
get: () => ({
|
|
1316
|
+
focus: t,
|
|
1317
|
+
blur: n
|
|
1318
|
+
})
|
|
1319
|
+
}
|
|
1320
|
+
});
|
|
1321
|
+
let r;
|
|
1322
|
+
function i(e) {
|
|
1323
|
+
if (this.ownerDocument.visibilityState !== "hidden") return t.call(this, e);
|
|
1324
|
+
let i = Lt(this.ownerDocument);
|
|
1325
|
+
if (i === this) return;
|
|
1326
|
+
let a = Symbol("focus call");
|
|
1327
|
+
r = a, i && (n.call(i), z(i, "blur", { relatedTarget: this }), z(i, "focusout", { relatedTarget: r === a ? this : null })), r === a && (t.call(this, e), z(this, "focus", { relatedTarget: i })), r === a && z(this, "focusin", { relatedTarget: i });
|
|
1328
|
+
}
|
|
1329
|
+
function a() {
|
|
1330
|
+
if (this.ownerDocument.visibilityState !== "hidden") return n.call(this);
|
|
1331
|
+
let e = Lt(this.ownerDocument);
|
|
1332
|
+
e === this && (r = Symbol("blur call"), n.call(this), z(e, "blur", { relatedTarget: null }), z(e, "focusout", { relatedTarget: null }));
|
|
1333
|
+
}
|
|
1334
|
+
}
|
|
1335
|
+
function Lt(e) {
|
|
1336
|
+
let t = _(e);
|
|
1337
|
+
return t?.tagName === "BODY" ? null : t;
|
|
1338
|
+
}
|
|
1339
|
+
//#endregion
|
|
1340
|
+
//#region node_modules/@testing-library/user-event/dist/esm/document/interceptor.js
|
|
1341
|
+
var Rt = Symbol("Interceptor for programmatical calls");
|
|
1342
|
+
function B(e, t, n) {
|
|
1343
|
+
let r = Object.getOwnPropertyDescriptor(e.constructor.prototype, t), i = Object.getOwnPropertyDescriptor(e, t), a = r?.set ? "set" : "value";
|
|
1344
|
+
/* istanbul ignore if */ if (typeof r?.[a] != "function" || r[a][Rt]) throw Error(`Element ${e.tagName} does not implement "${String(t)}".`);
|
|
1345
|
+
function o(...e) {
|
|
1346
|
+
let { applyNative: t = !1, realArgs: o, then: s } = n.call(this, ...e), c = (!t && i || r)[a];
|
|
1347
|
+
a === "set" ? c.call(this, o) : c.call(this, ...o), s?.();
|
|
1348
|
+
}
|
|
1349
|
+
o[Rt] = Rt, Object.defineProperty(e, t, {
|
|
1350
|
+
...i ?? r,
|
|
1351
|
+
[a]: o
|
|
1352
|
+
});
|
|
1353
|
+
}
|
|
1354
|
+
function zt(e) {
|
|
1355
|
+
B(e, "value", function(e) {
|
|
1356
|
+
let t = we(e);
|
|
1357
|
+
return t && Ye(this), {
|
|
1358
|
+
applyNative: !!t,
|
|
1359
|
+
realArgs: Bt(this, e),
|
|
1360
|
+
then: t ? void 0 : () => Xe(this, String(e))
|
|
1361
|
+
};
|
|
1362
|
+
});
|
|
1363
|
+
}
|
|
1364
|
+
function Bt(e, t) {
|
|
1365
|
+
return n(e, "input", { type: "number" }) && String(t) !== "" && !Number.isNaN(Number(t)) ? String(Number(t)) : String(t);
|
|
1366
|
+
}
|
|
1367
|
+
function Vt(e) {
|
|
1368
|
+
B(e, "setSelectionRange", function(t, ...n) {
|
|
1369
|
+
let r = Te(t);
|
|
1370
|
+
return {
|
|
1371
|
+
applyNative: !!r,
|
|
1372
|
+
realArgs: [Number(t), ...n],
|
|
1373
|
+
then: () => r ? void 0 : Me(e)
|
|
1374
|
+
};
|
|
1375
|
+
}), B(e, "selectionStart", function(t) {
|
|
1376
|
+
return {
|
|
1377
|
+
realArgs: t,
|
|
1378
|
+
then: () => Me(e)
|
|
1379
|
+
};
|
|
1380
|
+
}), B(e, "selectionEnd", function(t) {
|
|
1381
|
+
return {
|
|
1382
|
+
realArgs: t,
|
|
1383
|
+
then: () => Me(e)
|
|
1384
|
+
};
|
|
1385
|
+
}), B(e, "select", function() {
|
|
1386
|
+
return {
|
|
1387
|
+
realArgs: [],
|
|
1388
|
+
then: () => Ae(e, {
|
|
1389
|
+
anchorOffset: 0,
|
|
1390
|
+
focusOffset: O(e).length
|
|
1391
|
+
})
|
|
1392
|
+
};
|
|
1393
|
+
});
|
|
1394
|
+
}
|
|
1395
|
+
function Ht(e) {
|
|
1396
|
+
B(e, "setRangeText", function(...t) {
|
|
1397
|
+
return {
|
|
1398
|
+
realArgs: t,
|
|
1399
|
+
then: () => {
|
|
1400
|
+
De(e), Me(e);
|
|
1401
|
+
}
|
|
1402
|
+
};
|
|
1403
|
+
});
|
|
1404
|
+
}
|
|
1405
|
+
//#endregion
|
|
1406
|
+
//#region node_modules/@testing-library/user-event/dist/esm/document/prepareDocument.js
|
|
1407
|
+
var V = Symbol("Node prepared with document state workarounds");
|
|
1408
|
+
function Ut(e) {
|
|
1409
|
+
e[V] || (e.addEventListener("focus", (e) => {
|
|
1410
|
+
let t = e.target;
|
|
1411
|
+
Wt(t);
|
|
1412
|
+
}, {
|
|
1413
|
+
capture: !0,
|
|
1414
|
+
passive: !0
|
|
1415
|
+
}), e.activeElement && Wt(e.activeElement), e.addEventListener("blur", (e) => {
|
|
1416
|
+
let t = e.target, n = ke(t);
|
|
1417
|
+
n !== void 0 && (t.value !== n && z(t, "change"), Oe(t));
|
|
1418
|
+
}, {
|
|
1419
|
+
capture: !0,
|
|
1420
|
+
passive: !0
|
|
1421
|
+
}), e[V] = V);
|
|
1422
|
+
}
|
|
1423
|
+
function Wt(e) {
|
|
1424
|
+
e[V] || (n(e, ["input", "textarea"]) && (zt(e), Vt(e), Ht(e)), e[V] = V);
|
|
1425
|
+
}
|
|
1426
|
+
//#endregion
|
|
1427
|
+
//#region node_modules/@testing-library/user-event/dist/esm/utils/misc/getDocumentFromNode.js
|
|
1428
|
+
function Gt(e) {
|
|
1429
|
+
return Kt(e) ? e : e.ownerDocument;
|
|
1430
|
+
}
|
|
1431
|
+
function Kt(e) {
|
|
1432
|
+
return e.nodeType === 9;
|
|
1433
|
+
}
|
|
1434
|
+
//#endregion
|
|
1435
|
+
//#region node_modules/@testing-library/user-event/dist/esm/utils/misc/level.js
|
|
1436
|
+
var H = /* @__PURE__ */ function(e) {
|
|
1437
|
+
return e[e.Trigger = 2] = "Trigger", e[e.Call = 1] = "Call", e;
|
|
1438
|
+
}({});
|
|
1439
|
+
function U(e, t) {
|
|
1440
|
+
e.levelRefs[t] = {};
|
|
1441
|
+
}
|
|
1442
|
+
function W(e, t) {
|
|
1443
|
+
return e.levelRefs[t];
|
|
1444
|
+
}
|
|
1445
|
+
//#endregion
|
|
1446
|
+
//#region node_modules/@testing-library/user-event/dist/esm/utils/misc/wait.js
|
|
1447
|
+
function G(e) {
|
|
1448
|
+
let t = e.delay;
|
|
1449
|
+
if (typeof t == "number") return Promise.all([new Promise((e) => globalThis.setTimeout(() => e(), t)), e.advanceTimers(t)]);
|
|
1450
|
+
}
|
|
1451
|
+
//#endregion
|
|
1452
|
+
//#region node_modules/@testing-library/user-event/dist/esm/options.js
|
|
1453
|
+
var qt = /* @__PURE__ */ function(e) {
|
|
1454
|
+
return e[e.EachTrigger = 4] = "EachTrigger", e[e.EachApiCall = 2] = "EachApiCall", e[e.EachTarget = 1] = "EachTarget", e[e.Never = 0] = "Never", e;
|
|
1455
|
+
}({});
|
|
1456
|
+
//#endregion
|
|
1457
|
+
//#region node_modules/@testing-library/user-event/dist/esm/system/keyboard.js
|
|
1458
|
+
function K(e, t, n) {
|
|
1459
|
+
return t in e ? Object.defineProperty(e, t, {
|
|
1460
|
+
value: n,
|
|
1461
|
+
enumerable: !0,
|
|
1462
|
+
configurable: !0,
|
|
1463
|
+
writable: !0
|
|
1464
|
+
}) : e[t] = n, e;
|
|
1465
|
+
}
|
|
1466
|
+
var q = /* @__PURE__ */ function(e) {
|
|
1467
|
+
return e[e.STANDARD = 0] = "STANDARD", e[e.LEFT = 1] = "LEFT", e[e.RIGHT = 2] = "RIGHT", e[e.NUMPAD = 3] = "NUMPAD", e;
|
|
1468
|
+
}({}), Jt = [
|
|
1469
|
+
"Alt",
|
|
1470
|
+
"AltGraph",
|
|
1471
|
+
"Control",
|
|
1472
|
+
"Fn",
|
|
1473
|
+
"Meta",
|
|
1474
|
+
"Shift",
|
|
1475
|
+
"Symbol"
|
|
1476
|
+
];
|
|
1477
|
+
function Yt(e) {
|
|
1478
|
+
return Jt.includes(e);
|
|
1479
|
+
}
|
|
1480
|
+
var Xt = [
|
|
1481
|
+
"CapsLock",
|
|
1482
|
+
"FnLock",
|
|
1483
|
+
"NumLock",
|
|
1484
|
+
"ScrollLock",
|
|
1485
|
+
"SymbolLock"
|
|
1486
|
+
];
|
|
1487
|
+
function Zt(e) {
|
|
1488
|
+
return Xt.includes(e);
|
|
1489
|
+
}
|
|
1490
|
+
var Qt = class {
|
|
1491
|
+
isKeyPressed(e) {
|
|
1492
|
+
return this.pressed.has(String(e.code));
|
|
1493
|
+
}
|
|
1494
|
+
getPressedKeys() {
|
|
1495
|
+
return this.pressed.values().map((e) => e.keyDef);
|
|
1496
|
+
}
|
|
1497
|
+
async keydown(e, t) {
|
|
1498
|
+
let n = String(t.key), r = String(t.code), i = pe(e.config.document);
|
|
1499
|
+
this.setKeydownTarget(i), this.pressed.add(r, t), Yt(n) && (this.modifiers[n] = !0);
|
|
1500
|
+
let a = e.dispatchUIEvent(i, "keydown", {
|
|
1501
|
+
key: n,
|
|
1502
|
+
code: r
|
|
1503
|
+
});
|
|
1504
|
+
Zt(n) && !this.modifiers[n] && (this.modifiers[n] = !0, this.modifierLockStart[n] = !0), a && this.pressed.setUnprevented(r), a && this.hasKeyPress(n) && e.dispatchUIEvent(pe(e.config.document), "keypress", {
|
|
1505
|
+
key: n,
|
|
1506
|
+
code: r,
|
|
1507
|
+
charCode: t.key === "Enter" ? 13 : String(t.key).charCodeAt(0)
|
|
1508
|
+
});
|
|
1509
|
+
}
|
|
1510
|
+
async keyup(e, t) {
|
|
1511
|
+
let n = String(t.key), r = String(t.code), i = this.pressed.isUnprevented(r);
|
|
1512
|
+
this.pressed.delete(r), Yt(n) && !this.pressed.values().find((e) => e.keyDef.key === n) && (this.modifiers[n] = !1), e.dispatchUIEvent(pe(e.config.document), "keyup", {
|
|
1513
|
+
key: n,
|
|
1514
|
+
code: r
|
|
1515
|
+
}, !i), Zt(n) && this.modifiers[n] && (this.modifierLockStart[n] ? this.modifierLockStart[n] = !1 : this.modifiers[n] = !1);
|
|
1516
|
+
}
|
|
1517
|
+
setKeydownTarget(e) {
|
|
1518
|
+
e !== this.lastKeydownTarget && (this.carryChar = ""), this.lastKeydownTarget = e;
|
|
1519
|
+
}
|
|
1520
|
+
hasKeyPress(e) {
|
|
1521
|
+
return (e.length === 1 || e === "Enter") && !this.modifiers.Control && !this.modifiers.Alt;
|
|
1522
|
+
}
|
|
1523
|
+
constructor(e) {
|
|
1524
|
+
K(this, "system", void 0), K(this, "modifiers", {
|
|
1525
|
+
Alt: !1,
|
|
1526
|
+
AltGraph: !1,
|
|
1527
|
+
CapsLock: !1,
|
|
1528
|
+
Control: !1,
|
|
1529
|
+
Fn: !1,
|
|
1530
|
+
FnLock: !1,
|
|
1531
|
+
Meta: !1,
|
|
1532
|
+
NumLock: !1,
|
|
1533
|
+
ScrollLock: !1,
|
|
1534
|
+
Shift: !1,
|
|
1535
|
+
Symbol: !1,
|
|
1536
|
+
SymbolLock: !1
|
|
1537
|
+
}), K(this, "pressed", new class {
|
|
1538
|
+
add(e, t) {
|
|
1539
|
+
var n, r;
|
|
1540
|
+
(n = this.registry)[r = e] ?? (n[r] = {
|
|
1541
|
+
keyDef: t,
|
|
1542
|
+
unpreventedDefault: !1
|
|
1543
|
+
});
|
|
1544
|
+
}
|
|
1545
|
+
has(e) {
|
|
1546
|
+
return !!this.registry[e];
|
|
1547
|
+
}
|
|
1548
|
+
setUnprevented(e) {
|
|
1549
|
+
let t = this.registry[e];
|
|
1550
|
+
t && (t.unpreventedDefault = !0);
|
|
1551
|
+
}
|
|
1552
|
+
isUnprevented(e) {
|
|
1553
|
+
return !!this.registry[e]?.unpreventedDefault;
|
|
1554
|
+
}
|
|
1555
|
+
delete(e) {
|
|
1556
|
+
delete this.registry[e];
|
|
1557
|
+
}
|
|
1558
|
+
values() {
|
|
1559
|
+
return Object.values(this.registry);
|
|
1560
|
+
}
|
|
1561
|
+
constructor() {
|
|
1562
|
+
K(this, "registry", {});
|
|
1563
|
+
}
|
|
1564
|
+
}()), K(this, "carryChar", ""), K(this, "lastKeydownTarget", void 0), K(this, "modifierLockStart", {}), this.system = e;
|
|
1565
|
+
}
|
|
1566
|
+
}, $t = [
|
|
1567
|
+
..."0123456789".split("").map((e) => ({
|
|
1568
|
+
code: `Digit${e}`,
|
|
1569
|
+
key: e
|
|
1570
|
+
})),
|
|
1571
|
+
...")!@#$%^&*(".split("").map((e, t) => ({
|
|
1572
|
+
code: `Digit${t}`,
|
|
1573
|
+
key: e,
|
|
1574
|
+
shiftKey: !0
|
|
1575
|
+
})),
|
|
1576
|
+
..."abcdefghijklmnopqrstuvwxyz".split("").map((e) => ({
|
|
1577
|
+
code: `Key${e.toUpperCase()}`,
|
|
1578
|
+
key: e
|
|
1579
|
+
})),
|
|
1580
|
+
..."ABCDEFGHIJKLMNOPQRSTUVWXYZ".split("").map((e) => ({
|
|
1581
|
+
code: `Key${e}`,
|
|
1582
|
+
key: e,
|
|
1583
|
+
shiftKey: !0
|
|
1584
|
+
})),
|
|
1585
|
+
{
|
|
1586
|
+
code: "BracketLeft",
|
|
1587
|
+
key: "["
|
|
1588
|
+
},
|
|
1589
|
+
{
|
|
1590
|
+
code: "BracketLeft",
|
|
1591
|
+
key: "{",
|
|
1592
|
+
shiftKey: !0
|
|
1593
|
+
},
|
|
1594
|
+
{
|
|
1595
|
+
code: "BracketRight",
|
|
1596
|
+
key: "]"
|
|
1597
|
+
},
|
|
1598
|
+
{
|
|
1599
|
+
code: "BracketRight",
|
|
1600
|
+
key: "}",
|
|
1601
|
+
shiftKey: !0
|
|
1602
|
+
},
|
|
1603
|
+
{
|
|
1604
|
+
code: "Space",
|
|
1605
|
+
key: " "
|
|
1606
|
+
},
|
|
1607
|
+
{
|
|
1608
|
+
code: "AltLeft",
|
|
1609
|
+
key: "Alt",
|
|
1610
|
+
location: q.LEFT
|
|
1611
|
+
},
|
|
1612
|
+
{
|
|
1613
|
+
code: "AltRight",
|
|
1614
|
+
key: "Alt",
|
|
1615
|
+
location: q.RIGHT
|
|
1616
|
+
},
|
|
1617
|
+
{
|
|
1618
|
+
code: "ShiftLeft",
|
|
1619
|
+
key: "Shift",
|
|
1620
|
+
location: q.LEFT
|
|
1621
|
+
},
|
|
1622
|
+
{
|
|
1623
|
+
code: "ShiftRight",
|
|
1624
|
+
key: "Shift",
|
|
1625
|
+
location: q.RIGHT
|
|
1626
|
+
},
|
|
1627
|
+
{
|
|
1628
|
+
code: "ControlLeft",
|
|
1629
|
+
key: "Control",
|
|
1630
|
+
location: q.LEFT
|
|
1631
|
+
},
|
|
1632
|
+
{
|
|
1633
|
+
code: "ControlRight",
|
|
1634
|
+
key: "Control",
|
|
1635
|
+
location: q.RIGHT
|
|
1636
|
+
},
|
|
1637
|
+
{
|
|
1638
|
+
code: "MetaLeft",
|
|
1639
|
+
key: "Meta",
|
|
1640
|
+
location: q.LEFT
|
|
1641
|
+
},
|
|
1642
|
+
{
|
|
1643
|
+
code: "MetaRight",
|
|
1644
|
+
key: "Meta",
|
|
1645
|
+
location: q.RIGHT
|
|
1646
|
+
},
|
|
1647
|
+
{
|
|
1648
|
+
code: "OSLeft",
|
|
1649
|
+
key: "OS",
|
|
1650
|
+
location: q.LEFT
|
|
1651
|
+
},
|
|
1652
|
+
{
|
|
1653
|
+
code: "OSRight",
|
|
1654
|
+
key: "OS",
|
|
1655
|
+
location: q.RIGHT
|
|
1656
|
+
},
|
|
1657
|
+
{
|
|
1658
|
+
code: "ContextMenu",
|
|
1659
|
+
key: "ContextMenu"
|
|
1660
|
+
},
|
|
1661
|
+
{
|
|
1662
|
+
code: "Tab",
|
|
1663
|
+
key: "Tab"
|
|
1664
|
+
},
|
|
1665
|
+
{
|
|
1666
|
+
code: "CapsLock",
|
|
1667
|
+
key: "CapsLock"
|
|
1668
|
+
},
|
|
1669
|
+
{
|
|
1670
|
+
code: "Backspace",
|
|
1671
|
+
key: "Backspace"
|
|
1672
|
+
},
|
|
1673
|
+
{
|
|
1674
|
+
code: "Enter",
|
|
1675
|
+
key: "Enter"
|
|
1676
|
+
},
|
|
1677
|
+
{
|
|
1678
|
+
code: "Escape",
|
|
1679
|
+
key: "Escape"
|
|
1680
|
+
},
|
|
1681
|
+
{
|
|
1682
|
+
code: "ArrowUp",
|
|
1683
|
+
key: "ArrowUp"
|
|
1684
|
+
},
|
|
1685
|
+
{
|
|
1686
|
+
code: "ArrowDown",
|
|
1687
|
+
key: "ArrowDown"
|
|
1688
|
+
},
|
|
1689
|
+
{
|
|
1690
|
+
code: "ArrowLeft",
|
|
1691
|
+
key: "ArrowLeft"
|
|
1692
|
+
},
|
|
1693
|
+
{
|
|
1694
|
+
code: "ArrowRight",
|
|
1695
|
+
key: "ArrowRight"
|
|
1696
|
+
},
|
|
1697
|
+
{
|
|
1698
|
+
code: "Home",
|
|
1699
|
+
key: "Home"
|
|
1700
|
+
},
|
|
1701
|
+
{
|
|
1702
|
+
code: "End",
|
|
1703
|
+
key: "End"
|
|
1704
|
+
},
|
|
1705
|
+
{
|
|
1706
|
+
code: "Delete",
|
|
1707
|
+
key: "Delete"
|
|
1708
|
+
},
|
|
1709
|
+
{
|
|
1710
|
+
code: "PageUp",
|
|
1711
|
+
key: "PageUp"
|
|
1712
|
+
},
|
|
1713
|
+
{
|
|
1714
|
+
code: "PageDown",
|
|
1715
|
+
key: "PageDown"
|
|
1716
|
+
},
|
|
1717
|
+
{
|
|
1718
|
+
code: "Fn",
|
|
1719
|
+
key: "Fn"
|
|
1720
|
+
},
|
|
1721
|
+
{
|
|
1722
|
+
code: "Symbol",
|
|
1723
|
+
key: "Symbol"
|
|
1724
|
+
},
|
|
1725
|
+
{
|
|
1726
|
+
code: "AltRight",
|
|
1727
|
+
key: "AltGraph"
|
|
1728
|
+
}
|
|
1729
|
+
], en = [
|
|
1730
|
+
{
|
|
1731
|
+
name: "MouseLeft",
|
|
1732
|
+
pointerType: "mouse",
|
|
1733
|
+
button: "primary"
|
|
1734
|
+
},
|
|
1735
|
+
{
|
|
1736
|
+
name: "MouseRight",
|
|
1737
|
+
pointerType: "mouse",
|
|
1738
|
+
button: "secondary"
|
|
1739
|
+
},
|
|
1740
|
+
{
|
|
1741
|
+
name: "MouseMiddle",
|
|
1742
|
+
pointerType: "mouse",
|
|
1743
|
+
button: "auxiliary"
|
|
1744
|
+
},
|
|
1745
|
+
{
|
|
1746
|
+
name: "TouchA",
|
|
1747
|
+
pointerType: "touch"
|
|
1748
|
+
},
|
|
1749
|
+
{
|
|
1750
|
+
name: "TouchB",
|
|
1751
|
+
pointerType: "touch"
|
|
1752
|
+
},
|
|
1753
|
+
{
|
|
1754
|
+
name: "TouchC",
|
|
1755
|
+
pointerType: "touch"
|
|
1756
|
+
}
|
|
1757
|
+
];
|
|
1758
|
+
//#endregion
|
|
1759
|
+
//#region node_modules/@testing-library/user-event/dist/esm/system/pointer/buttons.js
|
|
1760
|
+
function tn(e, t, n) {
|
|
1761
|
+
return t in e ? Object.defineProperty(e, t, {
|
|
1762
|
+
value: n,
|
|
1763
|
+
enumerable: !0,
|
|
1764
|
+
configurable: !0,
|
|
1765
|
+
writable: !0
|
|
1766
|
+
}) : e[t] = n, e;
|
|
1767
|
+
}
|
|
1768
|
+
var nn = class {
|
|
1769
|
+
getButtons() {
|
|
1770
|
+
let e = 0;
|
|
1771
|
+
for (let t of Object.keys(this.pressed)) e |= 2 ** Number(t);
|
|
1772
|
+
return e;
|
|
1773
|
+
}
|
|
1774
|
+
down(e) {
|
|
1775
|
+
let t = an(e.button);
|
|
1776
|
+
if (t in this.pressed) {
|
|
1777
|
+
this.pressed[t].push(e);
|
|
1778
|
+
return;
|
|
1779
|
+
}
|
|
1780
|
+
return this.pressed[t] = [e], t;
|
|
1781
|
+
}
|
|
1782
|
+
up(e) {
|
|
1783
|
+
let t = an(e.button);
|
|
1784
|
+
if (t in this.pressed && (this.pressed[t] = this.pressed[t].filter((t) => t.name !== e.name), this.pressed[t].length === 0)) return delete this.pressed[t], t;
|
|
1785
|
+
}
|
|
1786
|
+
constructor() {
|
|
1787
|
+
tn(this, "pressed", {});
|
|
1788
|
+
}
|
|
1789
|
+
}, rn = {
|
|
1790
|
+
primary: 0,
|
|
1791
|
+
secondary: 1,
|
|
1792
|
+
auxiliary: 2,
|
|
1793
|
+
back: 3,
|
|
1794
|
+
X1: 3,
|
|
1795
|
+
forward: 4,
|
|
1796
|
+
X2: 4
|
|
1797
|
+
};
|
|
1798
|
+
function an(e = 0) {
|
|
1799
|
+
return e in rn ? rn[e] : Number(e);
|
|
1800
|
+
}
|
|
1801
|
+
var on = {
|
|
1802
|
+
1: 2,
|
|
1803
|
+
2: 1
|
|
1804
|
+
};
|
|
1805
|
+
function sn(e) {
|
|
1806
|
+
return e = an(e), e in on ? on[e] : e;
|
|
1807
|
+
}
|
|
1808
|
+
//#endregion
|
|
1809
|
+
//#region node_modules/@testing-library/user-event/dist/esm/system/pointer/device.js
|
|
1810
|
+
function cn(e, t, n) {
|
|
1811
|
+
return t in e ? Object.defineProperty(e, t, {
|
|
1812
|
+
value: n,
|
|
1813
|
+
enumerable: !0,
|
|
1814
|
+
configurable: !0,
|
|
1815
|
+
writable: !0
|
|
1816
|
+
}) : e[t] = n, e;
|
|
1817
|
+
}
|
|
1818
|
+
var ln = class {
|
|
1819
|
+
get countPressed() {
|
|
1820
|
+
return this.pressedKeys.size;
|
|
1821
|
+
}
|
|
1822
|
+
isPressed(e) {
|
|
1823
|
+
return this.pressedKeys.has(e.name);
|
|
1824
|
+
}
|
|
1825
|
+
addPressed(e) {
|
|
1826
|
+
return this.pressedKeys.add(e.name);
|
|
1827
|
+
}
|
|
1828
|
+
removePressed(e) {
|
|
1829
|
+
return this.pressedKeys.delete(e.name);
|
|
1830
|
+
}
|
|
1831
|
+
constructor() {
|
|
1832
|
+
cn(this, "pressedKeys", /* @__PURE__ */ new Set());
|
|
1833
|
+
}
|
|
1834
|
+
};
|
|
1835
|
+
//#endregion
|
|
1836
|
+
//#region node_modules/@testing-library/user-event/dist/esm/utils/misc/getTreeDiff.js
|
|
1837
|
+
function J(e, t) {
|
|
1838
|
+
let n = [];
|
|
1839
|
+
for (let t = e; t; t = t.parentElement) n.push(t);
|
|
1840
|
+
let r = [];
|
|
1841
|
+
for (let e = t; e; e = e.parentElement) r.push(e);
|
|
1842
|
+
let i = 0;
|
|
1843
|
+
for (; !(i >= n.length || i >= r.length || n[n.length - 1 - i] !== r[r.length - 1 - i]); i++);
|
|
1844
|
+
return [
|
|
1845
|
+
n.slice(0, n.length - i),
|
|
1846
|
+
r.slice(0, r.length - i),
|
|
1847
|
+
r.slice(r.length - i)
|
|
1848
|
+
];
|
|
1849
|
+
}
|
|
1850
|
+
//#endregion
|
|
1851
|
+
//#region node_modules/@testing-library/user-event/dist/esm/event/selection/resolveCaretPosition.js
|
|
1852
|
+
function un({ target: e, node: t, offset: n }) {
|
|
1853
|
+
return x(e) ? {
|
|
1854
|
+
node: e,
|
|
1855
|
+
offset: n ?? O(e).length
|
|
1856
|
+
} : t ? {
|
|
1857
|
+
node: t,
|
|
1858
|
+
offset: n ?? (t.nodeType === 3 ? t.nodeValue.length : t.childNodes.length)
|
|
1859
|
+
} : dn(e, n);
|
|
1860
|
+
}
|
|
1861
|
+
function dn(e, t, n = !0) {
|
|
1862
|
+
let r = t === void 0 ? e.childNodes.length - 1 : 0, i = t === void 0 ? -1 : 1;
|
|
1863
|
+
for (; t === void 0 ? r >= (n ? Math.max(e.childNodes.length - 1, 0) : 0) : r <= e.childNodes.length;) {
|
|
1864
|
+
if (t && r === e.childNodes.length) throw Error("The given offset is out of bounds.");
|
|
1865
|
+
let n = e.childNodes.item(r), a = String(n.textContent);
|
|
1866
|
+
if (a.length) {
|
|
1867
|
+
if (t !== void 0 && a.length < t) t -= a.length;
|
|
1868
|
+
else if (n.nodeType === 1) return dn(n, t, !1);
|
|
1869
|
+
else if (n.nodeType === 3) return {
|
|
1870
|
+
node: n,
|
|
1871
|
+
offset: t ?? n.nodeValue.length
|
|
1872
|
+
};
|
|
1873
|
+
}
|
|
1874
|
+
r += i;
|
|
1875
|
+
}
|
|
1876
|
+
return {
|
|
1877
|
+
node: e,
|
|
1878
|
+
offset: e.childNodes.length
|
|
1879
|
+
};
|
|
1880
|
+
}
|
|
1881
|
+
//#endregion
|
|
1882
|
+
//#region node_modules/@testing-library/user-event/dist/esm/event/selection/setSelectionPerMouse.js
|
|
1883
|
+
function fn({ document: e, target: t, clickCount: n, node: r, offset: i }) {
|
|
1884
|
+
if (be(t)) return;
|
|
1885
|
+
let a = x(t), o = String(a ? O(t) : t.textContent), [s, c] = r ? [i, i] : pn(o, i, n);
|
|
1886
|
+
if (a) return k(t, {
|
|
1887
|
+
anchorOffset: s ?? o.length,
|
|
1888
|
+
focusOffset: c ?? o.length
|
|
1889
|
+
}), {
|
|
1890
|
+
node: t,
|
|
1891
|
+
start: s ?? 0,
|
|
1892
|
+
end: c ?? o.length
|
|
1893
|
+
};
|
|
1894
|
+
{
|
|
1895
|
+
let { node: n, offset: i } = un({
|
|
1896
|
+
target: t,
|
|
1897
|
+
node: r,
|
|
1898
|
+
offset: s
|
|
1899
|
+
}), { node: a, offset: o } = un({
|
|
1900
|
+
target: t,
|
|
1901
|
+
node: r,
|
|
1902
|
+
offset: c
|
|
1903
|
+
}), l = t.ownerDocument.createRange();
|
|
1904
|
+
try {
|
|
1905
|
+
l.setStart(n, i), l.setEnd(a, o);
|
|
1906
|
+
} catch {
|
|
1907
|
+
throw Error("The given offset is out of bounds.");
|
|
1908
|
+
}
|
|
1909
|
+
let u = e.getSelection();
|
|
1910
|
+
return u?.removeAllRanges(), u?.addRange(l.cloneRange()), l;
|
|
1911
|
+
}
|
|
1912
|
+
}
|
|
1913
|
+
function pn(e, t, n) {
|
|
1914
|
+
if (n % 3 == 1 || e.length === 0) return [t, t];
|
|
1915
|
+
let r = t ?? e.length;
|
|
1916
|
+
return n % 3 == 2 ? [r - e.substr(0, t).match(/(\w+|\s+|\W)?$/)[0].length, t === void 0 ? t : t + e.substr(t).match(/^(\w+|\s+|\W)?/)[0].length] : [r - e.substr(0, t).match(/[^\r\n]*$/)[0].length, t === void 0 ? t : t + e.substr(t).match(/^[^\r\n]*/)[0].length];
|
|
1917
|
+
}
|
|
1918
|
+
//#endregion
|
|
1919
|
+
//#region node_modules/@testing-library/user-event/dist/esm/event/selection/modifySelectionPerMouse.js
|
|
1920
|
+
function mn(e, { document: t, target: n, node: r, offset: i }) {
|
|
1921
|
+
let a = un({
|
|
1922
|
+
target: n,
|
|
1923
|
+
node: r,
|
|
1924
|
+
offset: i
|
|
1925
|
+
});
|
|
1926
|
+
if ("node" in e) {
|
|
1927
|
+
/* istanbul ignore else */ if (a.node === e.node) {
|
|
1928
|
+
let t = a.offset < e.start ? e.end : e.start, n = a.offset > e.end || a.offset < e.start ? a.offset : e.end;
|
|
1929
|
+
k(e.node, {
|
|
1930
|
+
anchorOffset: t,
|
|
1931
|
+
focusOffset: n
|
|
1932
|
+
});
|
|
1933
|
+
}
|
|
1934
|
+
} else {
|
|
1935
|
+
let n = e.cloneRange(), r = n.comparePoint(a.node, a.offset);
|
|
1936
|
+
r < 0 ? n.setStart(a.node, a.offset) : r > 0 && n.setEnd(a.node, a.offset);
|
|
1937
|
+
let i = t.getSelection();
|
|
1938
|
+
i?.removeAllRanges(), i?.addRange(n.cloneRange());
|
|
1939
|
+
}
|
|
1940
|
+
}
|
|
1941
|
+
//#endregion
|
|
1942
|
+
//#region node_modules/@testing-library/user-event/dist/esm/system/pointer/shared.js
|
|
1943
|
+
function hn(e, t) {
|
|
1944
|
+
return e.target !== t.target || e.coords?.x !== t.coords?.x || e.coords?.y !== t.coords?.y || e.coords?.clientX !== t.coords?.clientX || e.coords?.clientY !== t.coords?.clientY || e.coords?.offsetX !== t.coords?.offsetX || e.coords?.offsetY !== t.coords?.offsetY || e.coords?.pageX !== t.coords?.pageX || e.coords?.pageY !== t.coords?.pageY || e.coords?.screenX !== t.coords?.screenX || e.coords?.screenY !== t.coords?.screenY || e.caret?.node !== t.caret?.node || e.caret?.offset !== t.caret?.offset;
|
|
1945
|
+
}
|
|
1946
|
+
//#endregion
|
|
1947
|
+
//#region node_modules/@testing-library/user-event/dist/esm/system/pointer/mouse.js
|
|
1948
|
+
function Y(e, t, n) {
|
|
1949
|
+
return t in e ? Object.defineProperty(e, t, {
|
|
1950
|
+
value: n,
|
|
1951
|
+
enumerable: !0,
|
|
1952
|
+
configurable: !0,
|
|
1953
|
+
writable: !0
|
|
1954
|
+
}) : e[t] = n, e;
|
|
1955
|
+
}
|
|
1956
|
+
var gn = class {
|
|
1957
|
+
move(e, t, n) {
|
|
1958
|
+
let r = this.position, i = this.getTarget(e);
|
|
1959
|
+
if (this.position = t, !hn(r, t)) return;
|
|
1960
|
+
let a = this.getTarget(e), o = this.getEventInit("mousemove"), [s, c] = J(i, a);
|
|
1961
|
+
return {
|
|
1962
|
+
leave: () => {
|
|
1963
|
+
i !== a && (e.dispatchUIEvent(i, "mouseout", o), s.forEach((t) => e.dispatchUIEvent(t, "mouseleave", o)));
|
|
1964
|
+
},
|
|
1965
|
+
enter: () => {
|
|
1966
|
+
i !== a && (e.dispatchUIEvent(a, "mouseover", o), c.forEach((t) => e.dispatchUIEvent(t, "mouseenter", o)));
|
|
1967
|
+
},
|
|
1968
|
+
move: () => {
|
|
1969
|
+
n || (e.dispatchUIEvent(a, "mousemove", o), this.modifySelecting(e));
|
|
1970
|
+
}
|
|
1971
|
+
};
|
|
1972
|
+
}
|
|
1973
|
+
down(e, t, n) {
|
|
1974
|
+
let r = this.buttons.down(t);
|
|
1975
|
+
if (r === void 0) return;
|
|
1976
|
+
let i = this.getTarget(e);
|
|
1977
|
+
this.buttonDownTarget[r] = i;
|
|
1978
|
+
let a = this.getEventInit("mousedown", t.button), o = g(i);
|
|
1979
|
+
!n && (o || e.dispatchUIEvent(i, "mousedown", a)) && (this.startSelecting(e, a.detail), C(i)), !o && sn(t.button) === 2 && e.dispatchUIEvent(i, "contextmenu", this.getEventInit("contextmenu", t.button));
|
|
1980
|
+
}
|
|
1981
|
+
up(e, t, n) {
|
|
1982
|
+
let r = this.buttons.up(t);
|
|
1983
|
+
if (r === void 0) return;
|
|
1984
|
+
let i = this.getTarget(e);
|
|
1985
|
+
if (!g(i)) {
|
|
1986
|
+
if (!n) {
|
|
1987
|
+
let n = this.getEventInit("mouseup", t.button);
|
|
1988
|
+
e.dispatchUIEvent(i, "mouseup", n), this.endSelecting();
|
|
1989
|
+
}
|
|
1990
|
+
let a = J(this.buttonDownTarget[r], i)[2][0];
|
|
1991
|
+
if (a) {
|
|
1992
|
+
let n = this.getEventInit("click", t.button);
|
|
1993
|
+
n.detail && (e.dispatchUIEvent(a, n.button === 0 ? "click" : "auxclick", n), n.button === 0 && n.detail === 2 && e.dispatchUIEvent(a, "dblclick", {
|
|
1994
|
+
...this.getEventInit("dblclick", t.button),
|
|
1995
|
+
detail: n.detail
|
|
1996
|
+
}));
|
|
1997
|
+
}
|
|
1998
|
+
}
|
|
1999
|
+
}
|
|
2000
|
+
resetClickCount() {
|
|
2001
|
+
this.clickCount.reset();
|
|
2002
|
+
}
|
|
2003
|
+
getEventInit(e, t) {
|
|
2004
|
+
let n = { ...this.position.coords };
|
|
2005
|
+
return n.button = sn(t), n.buttons = this.buttons.getButtons(), e === "mousedown" ? n.detail = this.clickCount.getOnDown(n.button) : e === "mouseup" ? n.detail = this.clickCount.getOnUp(n.button) : (e === "click" || e === "auxclick") && (n.detail = this.clickCount.incOnClick(n.button)), n;
|
|
2006
|
+
}
|
|
2007
|
+
getTarget(e) {
|
|
2008
|
+
return this.position.target ?? e.config.document.body;
|
|
2009
|
+
}
|
|
2010
|
+
startSelecting(e, t) {
|
|
2011
|
+
this.selecting = fn({
|
|
2012
|
+
document: e.config.document,
|
|
2013
|
+
target: this.getTarget(e),
|
|
2014
|
+
node: this.position.caret?.node,
|
|
2015
|
+
offset: this.position.caret?.offset,
|
|
2016
|
+
clickCount: t
|
|
2017
|
+
});
|
|
2018
|
+
}
|
|
2019
|
+
modifySelecting(e) {
|
|
2020
|
+
this.selecting && mn(this.selecting, {
|
|
2021
|
+
document: e.config.document,
|
|
2022
|
+
target: this.getTarget(e),
|
|
2023
|
+
node: this.position.caret?.node,
|
|
2024
|
+
offset: this.position.caret?.offset
|
|
2025
|
+
});
|
|
2026
|
+
}
|
|
2027
|
+
endSelecting() {
|
|
2028
|
+
this.selecting = void 0;
|
|
2029
|
+
}
|
|
2030
|
+
constructor() {
|
|
2031
|
+
Y(this, "position", {}), Y(this, "buttons", new nn()), Y(this, "selecting", void 0), Y(this, "buttonDownTarget", {}), Y(this, "clickCount", new class {
|
|
2032
|
+
incOnClick(e) {
|
|
2033
|
+
let t = this.down[e] === void 0 ? void 0 : Number(this.down[e]) + 1;
|
|
2034
|
+
return this.count = this.count[e] === void 0 ? {} : { [e]: Number(this.count[e]) + 1 }, t;
|
|
2035
|
+
}
|
|
2036
|
+
getOnDown(e) {
|
|
2037
|
+
return this.down = { [e]: this.count[e] ?? 0 }, this.count = { [e]: this.count[e] ?? 0 }, Number(this.count[e]) + 1;
|
|
2038
|
+
}
|
|
2039
|
+
getOnUp(e) {
|
|
2040
|
+
return this.down[e] === void 0 ? void 0 : Number(this.down[e]) + 1;
|
|
2041
|
+
}
|
|
2042
|
+
reset() {
|
|
2043
|
+
this.count = {};
|
|
2044
|
+
}
|
|
2045
|
+
constructor() {
|
|
2046
|
+
Y(this, "down", {}), Y(this, "count", {});
|
|
2047
|
+
}
|
|
2048
|
+
}());
|
|
2049
|
+
}
|
|
2050
|
+
};
|
|
2051
|
+
//#endregion
|
|
2052
|
+
//#region node_modules/@testing-library/user-event/dist/esm/utils/pointer/cssPointerEvents.js
|
|
2053
|
+
function _n(e, t) {
|
|
2054
|
+
return bn(e, t)?.pointerEvents !== "none";
|
|
2055
|
+
}
|
|
2056
|
+
function vn(e) {
|
|
2057
|
+
let t = r(e);
|
|
2058
|
+
for (let n = e, r = []; n?.ownerDocument; n = n.parentElement) {
|
|
2059
|
+
r.push(n);
|
|
2060
|
+
let e = t.getComputedStyle(n).pointerEvents;
|
|
2061
|
+
if (e && !["inherit", "unset"].includes(e)) return {
|
|
2062
|
+
pointerEvents: e,
|
|
2063
|
+
tree: r
|
|
2064
|
+
};
|
|
2065
|
+
}
|
|
2066
|
+
}
|
|
2067
|
+
var yn = Symbol("Last check for pointer-events");
|
|
2068
|
+
function bn(e, t) {
|
|
2069
|
+
let n = t[yn];
|
|
2070
|
+
if (!(e.config.pointerEventsCheck !== qt.Never && (!n || Cn(e.config.pointerEventsCheck, qt.EachApiCall) && n[H.Call] !== W(e, H.Call) || Cn(e.config.pointerEventsCheck, qt.EachTrigger) && n[H.Trigger] !== W(e, H.Trigger)))) return n?.result;
|
|
2071
|
+
let r = vn(t);
|
|
2072
|
+
return t[yn] = {
|
|
2073
|
+
[H.Call]: W(e, H.Call),
|
|
2074
|
+
[H.Trigger]: W(e, H.Trigger),
|
|
2075
|
+
result: r
|
|
2076
|
+
}, r;
|
|
2077
|
+
}
|
|
2078
|
+
function X(e, t) {
|
|
2079
|
+
let n = bn(e, t);
|
|
2080
|
+
if (n?.pointerEvents === "none") throw Error([
|
|
2081
|
+
`Unable to perform pointer interaction as the element ${n.tree.length > 1 ? "inherits" : "has"} \`pointer-events: none\`:`,
|
|
2082
|
+
"",
|
|
2083
|
+
xn(n.tree)
|
|
2084
|
+
].join("\n"));
|
|
2085
|
+
}
|
|
2086
|
+
function xn(e) {
|
|
2087
|
+
return e.reverse().map((t, n) => [
|
|
2088
|
+
"".padEnd(n),
|
|
2089
|
+
t.tagName,
|
|
2090
|
+
t.id && `#${t.id}`,
|
|
2091
|
+
t.hasAttribute("data-testid") && `(testId=${t.getAttribute("data-testid")})`,
|
|
2092
|
+
Sn(t),
|
|
2093
|
+
e.length > 1 && n === 0 && " <-- This element declared `pointer-events: none`",
|
|
2094
|
+
e.length > 1 && n === e.length - 1 && " <-- Asserted pointer events here"
|
|
2095
|
+
].filter(Boolean).join("")).join("\n");
|
|
2096
|
+
}
|
|
2097
|
+
function Sn(e) {
|
|
2098
|
+
let t;
|
|
2099
|
+
return e.hasAttribute("aria-label") ? t = e.getAttribute("aria-label") : e.hasAttribute("aria-labelledby") ? t = e.ownerDocument.getElementById(e.getAttribute("aria-labelledby"))?.textContent?.trim() : n(e, [
|
|
2100
|
+
"button",
|
|
2101
|
+
"input",
|
|
2102
|
+
"meter",
|
|
2103
|
+
"output",
|
|
2104
|
+
"progress",
|
|
2105
|
+
"select",
|
|
2106
|
+
"textarea"
|
|
2107
|
+
]) && e.labels?.length ? t = Array.from(e.labels).map((e) => e.textContent?.trim()).join("|") : n(e, "button") && (t = e.textContent?.trim()), t = t?.replace(/\n/g, " "), Number(t?.length) > 30 && (t = `${t?.substring(0, 29)}…`), t ? `(label=${t})` : "";
|
|
2108
|
+
}
|
|
2109
|
+
function Cn(e, t) {
|
|
2110
|
+
return (e & t) > 0;
|
|
2111
|
+
}
|
|
2112
|
+
//#endregion
|
|
2113
|
+
//#region node_modules/@testing-library/user-event/dist/esm/system/pointer/pointer.js
|
|
2114
|
+
function Z(e, t, n) {
|
|
2115
|
+
return t in e ? Object.defineProperty(e, t, {
|
|
2116
|
+
value: n,
|
|
2117
|
+
enumerable: !0,
|
|
2118
|
+
configurable: !0,
|
|
2119
|
+
writable: !0
|
|
2120
|
+
}) : e[t] = n, e;
|
|
2121
|
+
}
|
|
2122
|
+
var wn = class {
|
|
2123
|
+
init(e) {
|
|
2124
|
+
let t = this.getTarget(e), [, n] = J(null, t), r = this.getEventInit();
|
|
2125
|
+
return X(e, t), e.dispatchUIEvent(t, "pointerover", r), n.forEach((t) => e.dispatchUIEvent(t, "pointerenter", r)), this;
|
|
2126
|
+
}
|
|
2127
|
+
move(e, t) {
|
|
2128
|
+
let n = this.position, r = this.getTarget(e);
|
|
2129
|
+
if (this.position = t, !hn(n, t)) return;
|
|
2130
|
+
let i = this.getTarget(e), a = this.getEventInit(-1), [o, s] = J(r, i);
|
|
2131
|
+
return {
|
|
2132
|
+
leave: () => {
|
|
2133
|
+
_n(e, r) && r !== i && (e.dispatchUIEvent(r, "pointerout", a), o.forEach((t) => e.dispatchUIEvent(t, "pointerleave", a)));
|
|
2134
|
+
},
|
|
2135
|
+
enter: () => {
|
|
2136
|
+
X(e, i), r !== i && (e.dispatchUIEvent(i, "pointerover", a), s.forEach((t) => e.dispatchUIEvent(t, "pointerenter", a)));
|
|
2137
|
+
},
|
|
2138
|
+
move: () => {
|
|
2139
|
+
e.dispatchUIEvent(i, "pointermove", a);
|
|
2140
|
+
}
|
|
2141
|
+
};
|
|
2142
|
+
}
|
|
2143
|
+
down(e, t = 0) {
|
|
2144
|
+
if (this.isDown) return;
|
|
2145
|
+
let n = this.getTarget(e);
|
|
2146
|
+
X(e, n), this.isDown = !0, this.isPrevented = !e.dispatchUIEvent(n, "pointerdown", this.getEventInit(t));
|
|
2147
|
+
}
|
|
2148
|
+
up(e, t = 0) {
|
|
2149
|
+
if (!this.isDown) return;
|
|
2150
|
+
let n = this.getTarget(e);
|
|
2151
|
+
X(e, n), this.isPrevented = !1, this.isDown = !1, e.dispatchUIEvent(n, "pointerup", this.getEventInit(t));
|
|
2152
|
+
}
|
|
2153
|
+
release(e) {
|
|
2154
|
+
let t = this.getTarget(e), [n] = J(t, null), r = this.getEventInit();
|
|
2155
|
+
_n(e, t) && (e.dispatchUIEvent(t, "pointerout", r), n.forEach((t) => e.dispatchUIEvent(t, "pointerleave", r))), this.isCancelled = !0;
|
|
2156
|
+
}
|
|
2157
|
+
getTarget(e) {
|
|
2158
|
+
return this.position.target ?? e.config.document.body;
|
|
2159
|
+
}
|
|
2160
|
+
getEventInit(e) {
|
|
2161
|
+
return {
|
|
2162
|
+
...this.position.coords,
|
|
2163
|
+
pointerId: this.pointerId,
|
|
2164
|
+
pointerType: this.pointerType,
|
|
2165
|
+
isPrimary: this.isPrimary,
|
|
2166
|
+
button: sn(e),
|
|
2167
|
+
buttons: this.buttons.getButtons()
|
|
2168
|
+
};
|
|
2169
|
+
}
|
|
2170
|
+
constructor({ pointerId: e, pointerType: t, isPrimary: n }, r) {
|
|
2171
|
+
Z(this, "pointerId", void 0), Z(this, "pointerType", void 0), Z(this, "isPrimary", void 0), Z(this, "buttons", void 0), Z(this, "isMultitouch", !1), Z(this, "isCancelled", !1), Z(this, "isDown", !1), Z(this, "isPrevented", !1), Z(this, "position", {}), this.pointerId = e, this.pointerType = t, this.isPrimary = n, this.isMultitouch = !n, this.buttons = r;
|
|
2172
|
+
}
|
|
2173
|
+
};
|
|
2174
|
+
//#endregion
|
|
2175
|
+
//#region node_modules/@testing-library/user-event/dist/esm/system/pointer/index.js
|
|
2176
|
+
function Q(e, t, n) {
|
|
2177
|
+
return t in e ? Object.defineProperty(e, t, {
|
|
2178
|
+
value: n,
|
|
2179
|
+
enumerable: !0,
|
|
2180
|
+
configurable: !0,
|
|
2181
|
+
writable: !0
|
|
2182
|
+
}) : e[t] = n, e;
|
|
2183
|
+
}
|
|
2184
|
+
var Tn = class {
|
|
2185
|
+
isKeyPressed(e) {
|
|
2186
|
+
return this.devices.get(e.pointerType).isPressed(e);
|
|
2187
|
+
}
|
|
2188
|
+
async press(e, t, n) {
|
|
2189
|
+
this.devices.get(t.pointerType).addPressed(t), this.buttons.down(t);
|
|
2190
|
+
let r = this.getPointerName(t), i = t.pointerType === "touch" ? this.pointers.new(r, t.pointerType, this.buttons) : this.pointers.get(r);
|
|
2191
|
+
i.position = n, i.pointerType !== "touch" && (this.mouse.position = n), i.pointerType === "touch" && i.init(e), i.down(e, t.button), i.pointerType !== "touch" && this.mouse.down(e, t, i.isPrevented);
|
|
2192
|
+
}
|
|
2193
|
+
async move(e, t, n) {
|
|
2194
|
+
let r = this.pointers.get(t), i = r.move(e, n), a = r.pointerType === "touch" ? void 0 : this.mouse.move(e, n, r.isPrevented);
|
|
2195
|
+
i?.leave(), a?.leave(), i?.enter(), a?.enter(), i?.move(), a?.move();
|
|
2196
|
+
}
|
|
2197
|
+
async release(e, t, n) {
|
|
2198
|
+
let r = this.devices.get(t.pointerType);
|
|
2199
|
+
r.removePressed(t), this.buttons.up(t);
|
|
2200
|
+
let i = this.pointers.get(this.getPointerName(t)), a = i.isPrevented;
|
|
2201
|
+
if (i.position = n, i.pointerType !== "touch" && (this.mouse.position = n), r.countPressed === 0 && i.up(e, t.button), i.pointerType === "touch" && i.release(e), i.pointerType === "touch" && !i.isMultitouch) {
|
|
2202
|
+
let r = this.mouse.move(e, n, a);
|
|
2203
|
+
r?.leave(), r?.enter(), r?.move(), this.mouse.down(e, t, a);
|
|
2204
|
+
}
|
|
2205
|
+
if (!i.isMultitouch) {
|
|
2206
|
+
let r = this.mouse.move(e, n, a);
|
|
2207
|
+
r?.leave(), r?.enter(), r?.move(), this.mouse.up(e, t, a);
|
|
2208
|
+
}
|
|
2209
|
+
}
|
|
2210
|
+
getPointerName(e) {
|
|
2211
|
+
return e.pointerType === "touch" ? e.name : e.pointerType;
|
|
2212
|
+
}
|
|
2213
|
+
getPreviousPosition(e) {
|
|
2214
|
+
return this.pointers.has(e) ? this.pointers.get(e).position : void 0;
|
|
2215
|
+
}
|
|
2216
|
+
resetClickCount() {
|
|
2217
|
+
this.mouse.resetClickCount();
|
|
2218
|
+
}
|
|
2219
|
+
getMouseTarget(e) {
|
|
2220
|
+
return this.mouse.position.target ?? e.config.document.body;
|
|
2221
|
+
}
|
|
2222
|
+
setMousePosition(e) {
|
|
2223
|
+
this.mouse.position = e, this.pointers.get("mouse").position = e;
|
|
2224
|
+
}
|
|
2225
|
+
constructor(e) {
|
|
2226
|
+
Q(this, "system", void 0), Q(this, "mouse", void 0), Q(this, "buttons", void 0), Q(this, "devices", new class {
|
|
2227
|
+
get(e) {
|
|
2228
|
+
var t, n;
|
|
2229
|
+
return (t = this.registry)[n = e] ?? (t[n] = new ln());
|
|
2230
|
+
}
|
|
2231
|
+
constructor() {
|
|
2232
|
+
Q(this, "registry", {});
|
|
2233
|
+
}
|
|
2234
|
+
}()), Q(this, "pointers", new class {
|
|
2235
|
+
new(e, t, n) {
|
|
2236
|
+
let r = t !== "touch" || !Object.values(this.registry).some((e) => e.pointerType === "touch" && !e.isCancelled);
|
|
2237
|
+
return r || Object.values(this.registry).forEach((e) => {
|
|
2238
|
+
e.pointerType === t && !e.isCancelled && (e.isMultitouch = !0);
|
|
2239
|
+
}), this.registry[e] = new wn({
|
|
2240
|
+
pointerId: this.nextId++,
|
|
2241
|
+
pointerType: t,
|
|
2242
|
+
isPrimary: r
|
|
2243
|
+
}, n), this.registry[e];
|
|
2244
|
+
}
|
|
2245
|
+
get(e) {
|
|
2246
|
+
if (!this.has(e)) throw Error(`Trying to access pointer "${e}" which does not exist.`);
|
|
2247
|
+
return this.registry[e];
|
|
2248
|
+
}
|
|
2249
|
+
has(e) {
|
|
2250
|
+
return e in this.registry;
|
|
2251
|
+
}
|
|
2252
|
+
constructor() {
|
|
2253
|
+
Q(this, "registry", {}), Q(this, "nextId", 1);
|
|
2254
|
+
}
|
|
2255
|
+
}()), this.system = e, this.buttons = new nn(), this.mouse = new gn(), this.pointers.new("mouse", "mouse", this.buttons);
|
|
2256
|
+
}
|
|
2257
|
+
};
|
|
2258
|
+
//#endregion
|
|
2259
|
+
//#region node_modules/@testing-library/user-event/dist/esm/system/index.js
|
|
2260
|
+
function En(e, t, n) {
|
|
2261
|
+
return t in e ? Object.defineProperty(e, t, {
|
|
2262
|
+
value: n,
|
|
2263
|
+
enumerable: !0,
|
|
2264
|
+
configurable: !0,
|
|
2265
|
+
writable: !0
|
|
2266
|
+
}) : e[t] = n, e;
|
|
2267
|
+
}
|
|
2268
|
+
var Dn = class {
|
|
2269
|
+
getUIEventModifiers() {
|
|
2270
|
+
return {
|
|
2271
|
+
altKey: this.keyboard.modifiers.Alt,
|
|
2272
|
+
ctrlKey: this.keyboard.modifiers.Control,
|
|
2273
|
+
metaKey: this.keyboard.modifiers.Meta,
|
|
2274
|
+
shiftKey: this.keyboard.modifiers.Shift,
|
|
2275
|
+
modifierAltGraph: this.keyboard.modifiers.AltGraph,
|
|
2276
|
+
modifierCapsLock: this.keyboard.modifiers.CapsLock,
|
|
2277
|
+
modifierFn: this.keyboard.modifiers.Fn,
|
|
2278
|
+
modifierFnLock: this.keyboard.modifiers.FnLock,
|
|
2279
|
+
modifierNumLock: this.keyboard.modifiers.NumLock,
|
|
2280
|
+
modifierScrollLock: this.keyboard.modifiers.ScrollLock,
|
|
2281
|
+
modifierSymbol: this.keyboard.modifiers.Symbol,
|
|
2282
|
+
modifierSymbolLock: this.keyboard.modifiers.SymbolLock
|
|
2283
|
+
};
|
|
2284
|
+
}
|
|
2285
|
+
constructor() {
|
|
2286
|
+
En(this, "keyboard", new Qt(this)), En(this, "pointer", new Tn(this));
|
|
2287
|
+
}
|
|
2288
|
+
};
|
|
2289
|
+
//#endregion
|
|
2290
|
+
//#region node_modules/@testing-library/user-event/dist/esm/convenience/click.js
|
|
2291
|
+
async function On(e) {
|
|
2292
|
+
let t = [];
|
|
2293
|
+
return this.config.skipHover || t.push({ target: e }), t.push({
|
|
2294
|
+
keys: "[MouseLeft]",
|
|
2295
|
+
target: e
|
|
2296
|
+
}), this.pointer(t);
|
|
2297
|
+
}
|
|
2298
|
+
async function kn(e) {
|
|
2299
|
+
return this.pointer([{ target: e }, "[MouseLeft][MouseLeft]"]);
|
|
2300
|
+
}
|
|
2301
|
+
async function An(e) {
|
|
2302
|
+
return this.pointer([{ target: e }, "[MouseLeft][MouseLeft][MouseLeft]"]);
|
|
2303
|
+
}
|
|
2304
|
+
//#endregion
|
|
2305
|
+
//#region node_modules/@testing-library/user-event/dist/esm/convenience/hover.js
|
|
2306
|
+
async function jn(e) {
|
|
2307
|
+
return this.pointer({ target: e });
|
|
2308
|
+
}
|
|
2309
|
+
async function Mn(e) {
|
|
2310
|
+
return X(this, this.system.pointer.getMouseTarget(this)), this.pointer({ target: e.ownerDocument.body });
|
|
2311
|
+
}
|
|
2312
|
+
//#endregion
|
|
2313
|
+
//#region node_modules/@testing-library/user-event/dist/esm/convenience/tab.js
|
|
2314
|
+
async function Nn({ shift: e } = {}) {
|
|
2315
|
+
return this.keyboard(e === !0 ? "{Shift>}{Tab}{/Shift}" : e === !1 ? "[/ShiftLeft][/ShiftRight]{Tab}" : "{Tab}");
|
|
2316
|
+
}
|
|
2317
|
+
//#endregion
|
|
2318
|
+
//#region node_modules/@testing-library/user-event/dist/esm/utils/keyDef/readNextDescriptor.js
|
|
2319
|
+
var Pn = /* @__PURE__ */ function(e) {
|
|
2320
|
+
return e["{"] = "}", e["["] = "]", e;
|
|
2321
|
+
}(Pn || {});
|
|
2322
|
+
function Fn(e, t) {
|
|
2323
|
+
let n = 0, r = e[n] in Pn ? e[n] : "";
|
|
2324
|
+
n += r.length;
|
|
2325
|
+
let i = RegExp(`^\\${r}{2}`).test(e) ? "" : r;
|
|
2326
|
+
return {
|
|
2327
|
+
type: i,
|
|
2328
|
+
...i === "" ? In(e, n, t) : Ln(e, n, i, t)
|
|
2329
|
+
};
|
|
2330
|
+
}
|
|
2331
|
+
function In(e, t, n) {
|
|
2332
|
+
let r = e[t];
|
|
2333
|
+
return Rn(r, e, t, n), t += r.length, {
|
|
2334
|
+
consumedLength: t,
|
|
2335
|
+
descriptor: r,
|
|
2336
|
+
releasePrevious: !1,
|
|
2337
|
+
releaseSelf: !0,
|
|
2338
|
+
repeat: 1
|
|
2339
|
+
};
|
|
2340
|
+
}
|
|
2341
|
+
function Ln(e, t, n, r) {
|
|
2342
|
+
let i = e[t] === "/" ? "/" : "";
|
|
2343
|
+
t += i.length;
|
|
2344
|
+
let a = n === "{" && e[t] === "\\";
|
|
2345
|
+
t += Number(a);
|
|
2346
|
+
let o = a ? e[t] : e.slice(t).match(n === "{" ? /^\w+|^[^}>/]/ : /^\w+/)?.[0];
|
|
2347
|
+
Rn(o, e, t, r), t += o.length;
|
|
2348
|
+
let s = e.slice(t).match(/^>\d+/)?.[0] ?? "";
|
|
2349
|
+
t += s.length;
|
|
2350
|
+
let c = e[t] === "/" || !s && e[t] === ">" ? e[t] : "";
|
|
2351
|
+
t += c.length;
|
|
2352
|
+
let l = Pn[n], u = e[t] === l ? l : "";
|
|
2353
|
+
if (!u) throw Error(Bn([
|
|
2354
|
+
!s && "repeat modifier",
|
|
2355
|
+
!c && "release modifier",
|
|
2356
|
+
`"${l}"`
|
|
2357
|
+
].filter(Boolean).join(" or "), e[t], e, r));
|
|
2358
|
+
return t += u.length, {
|
|
2359
|
+
consumedLength: t,
|
|
2360
|
+
descriptor: o,
|
|
2361
|
+
releasePrevious: !!i,
|
|
2362
|
+
repeat: s ? Math.max(Number(s.substr(1)), 1) : 1,
|
|
2363
|
+
releaseSelf: zn(c, s)
|
|
2364
|
+
};
|
|
2365
|
+
}
|
|
2366
|
+
function Rn(e, t, n, r) {
|
|
2367
|
+
if (!e) throw Error(Bn("key descriptor", t[n], t, r));
|
|
2368
|
+
}
|
|
2369
|
+
function zn(e, t) {
|
|
2370
|
+
if (e) return e === "/";
|
|
2371
|
+
if (t) return !1;
|
|
2372
|
+
}
|
|
2373
|
+
function Bn(e, t, n, r) {
|
|
2374
|
+
return `Expected ${e} but found "${t ?? ""}" in "${n}"
|
|
2375
|
+
See ${r === "pointer" ? "https://testing-library.com/docs/user-event/pointer#pressing-a-button-or-touching-the-screen" : "https://testing-library.com/docs/user-event/keyboard"}
|
|
2376
|
+
for more information about how userEvent parses your input.`;
|
|
2377
|
+
}
|
|
2378
|
+
//#endregion
|
|
2379
|
+
//#region node_modules/@testing-library/user-event/dist/esm/keyboard/parseKeyDef.js
|
|
2380
|
+
function Vn(e, t) {
|
|
2381
|
+
let n = [];
|
|
2382
|
+
do {
|
|
2383
|
+
let { type: r, descriptor: i, consumedLength: a, releasePrevious: o, releaseSelf: s = !0, repeat: c } = Fn(t, "keyboard"), l = e.find((e) => r === "[" ? e.code?.toLowerCase() === i.toLowerCase() : r === "{" ? e.key?.toLowerCase() === i.toLowerCase() : e.key === i) ?? {
|
|
2384
|
+
key: "Unknown",
|
|
2385
|
+
code: "Unknown",
|
|
2386
|
+
[r === "[" ? "code" : "key"]: i
|
|
2387
|
+
};
|
|
2388
|
+
n.push({
|
|
2389
|
+
keyDef: l,
|
|
2390
|
+
releasePrevious: o,
|
|
2391
|
+
releaseSelf: s,
|
|
2392
|
+
repeat: c
|
|
2393
|
+
}), t = t.slice(a);
|
|
2394
|
+
} while (t);
|
|
2395
|
+
return n;
|
|
2396
|
+
}
|
|
2397
|
+
//#endregion
|
|
2398
|
+
//#region node_modules/@testing-library/user-event/dist/esm/keyboard/index.js
|
|
2399
|
+
async function Hn(e) {
|
|
2400
|
+
let t = Vn(this.config.keyboardMap, e);
|
|
2401
|
+
for (let e = 0; e < t.length; e++) await G(this.config), await Un(this, t[e]);
|
|
2402
|
+
}
|
|
2403
|
+
async function Un(e, { keyDef: t, releasePrevious: n, releaseSelf: r, repeat: i }) {
|
|
2404
|
+
let { system: a } = e;
|
|
2405
|
+
if (a.keyboard.isKeyPressed(t) && await a.keyboard.keyup(e, t), !n) {
|
|
2406
|
+
for (let n = 1; n <= i; n++) await a.keyboard.keydown(e, t), n < i && await G(e.config);
|
|
2407
|
+
r && await a.keyboard.keyup(e, t);
|
|
2408
|
+
}
|
|
2409
|
+
}
|
|
2410
|
+
async function Wn(e) {
|
|
2411
|
+
for (let t of e.system.keyboard.getPressedKeys()) await e.system.keyboard.keyup(e, t);
|
|
2412
|
+
}
|
|
2413
|
+
//#endregion
|
|
2414
|
+
//#region node_modules/@testing-library/user-event/dist/esm/document/copySelection.js
|
|
2415
|
+
function Gn(e) {
|
|
2416
|
+
let t = x(e) ? { "text/plain": Kn(e) } : { "text/plain": String(e.ownerDocument.getSelection()) }, n = p(r(e));
|
|
2417
|
+
for (let e in t) t[e] && n.setData(e, t[e]);
|
|
2418
|
+
return n;
|
|
2419
|
+
}
|
|
2420
|
+
function Kn(e) {
|
|
2421
|
+
let t = A(e);
|
|
2422
|
+
return O(e).substring(t.startOffset, t.endOffset);
|
|
2423
|
+
}
|
|
2424
|
+
//#endregion
|
|
2425
|
+
//#region node_modules/@testing-library/user-event/dist/esm/clipboard/copy.js
|
|
2426
|
+
async function qn() {
|
|
2427
|
+
let e = this.config.document, t = e.activeElement ?? e.body, n = Gn(t);
|
|
2428
|
+
if (n.items.length !== 0) return this.dispatchUIEvent(t, "copy", { clipboardData: n }) && this.config.writeToClipboard && await le(e, n), n;
|
|
2429
|
+
}
|
|
2430
|
+
//#endregion
|
|
2431
|
+
//#region node_modules/@testing-library/user-event/dist/esm/clipboard/cut.js
|
|
2432
|
+
async function Jn() {
|
|
2433
|
+
let e = this.config.document, t = e.activeElement ?? e.body, n = Gn(t);
|
|
2434
|
+
if (n.items.length !== 0) return this.dispatchUIEvent(t, "cut", { clipboardData: n }) && this.config.writeToClipboard && await le(t.ownerDocument, n), n;
|
|
2435
|
+
}
|
|
2436
|
+
//#endregion
|
|
2437
|
+
//#region node_modules/@testing-library/user-event/dist/esm/clipboard/paste.js
|
|
2438
|
+
async function Yn(e) {
|
|
2439
|
+
let t = this.config.document, n = t.activeElement ?? t.body, r = (typeof e == "string" ? Xn(t, e) : e) ?? await ce(t).catch(() => {
|
|
2440
|
+
throw Error("`userEvent.paste()` without `clipboardData` requires the `ClipboardAPI` to be available.");
|
|
2441
|
+
});
|
|
2442
|
+
this.dispatchUIEvent(n, "paste", { clipboardData: r });
|
|
2443
|
+
}
|
|
2444
|
+
function Xn(e, t) {
|
|
2445
|
+
let n = p(r(e));
|
|
2446
|
+
return n.setData("text", t), n;
|
|
2447
|
+
}
|
|
2448
|
+
//#endregion
|
|
2449
|
+
//#region node_modules/@testing-library/user-event/dist/esm/pointer/parseKeyDef.js
|
|
2450
|
+
function Zn(e, t) {
|
|
2451
|
+
let n = [];
|
|
2452
|
+
do {
|
|
2453
|
+
let { descriptor: r, consumedLength: i, releasePrevious: a, releaseSelf: o = !0 } = Fn(t, "pointer"), s = e.find((e) => e.name === r);
|
|
2454
|
+
s && n.push({
|
|
2455
|
+
keyDef: s,
|
|
2456
|
+
releasePrevious: a,
|
|
2457
|
+
releaseSelf: o
|
|
2458
|
+
}), t = t.slice(i);
|
|
2459
|
+
} while (t);
|
|
2460
|
+
return n;
|
|
2461
|
+
}
|
|
2462
|
+
//#endregion
|
|
2463
|
+
//#region node_modules/@testing-library/user-event/dist/esm/pointer/index.js
|
|
2464
|
+
async function Qn(e) {
|
|
2465
|
+
let { pointerMap: t } = this.config, n = [];
|
|
2466
|
+
(Array.isArray(e) ? e : [e]).forEach((e) => {
|
|
2467
|
+
typeof e == "string" ? n.push(...Zn(t, e)) : "keys" in e ? n.push(...Zn(t, e.keys).map((t) => ({
|
|
2468
|
+
...e,
|
|
2469
|
+
...t
|
|
2470
|
+
}))) : n.push(e);
|
|
2471
|
+
});
|
|
2472
|
+
for (let e = 0; e < n.length; e++) await G(this.config), await $n(this, n[e]);
|
|
2473
|
+
this.system.pointer.resetClickCount();
|
|
2474
|
+
}
|
|
2475
|
+
async function $n(e, t) {
|
|
2476
|
+
let n = "pointerName" in t && t.pointerName ? t.pointerName : "keyDef" in t ? e.system.pointer.getPointerName(t.keyDef) : "mouse", r = e.system.pointer.getPreviousPosition(n), i = {
|
|
2477
|
+
target: t.target ?? tr(e, r),
|
|
2478
|
+
coords: t.coords ?? r?.coords,
|
|
2479
|
+
caret: {
|
|
2480
|
+
node: t.node ?? (er(t) || r == null ? void 0 : r.caret?.node),
|
|
2481
|
+
offset: t.offset ?? (er(t) || r == null ? void 0 : r.caret?.offset)
|
|
2482
|
+
}
|
|
2483
|
+
};
|
|
2484
|
+
"keyDef" in t ? (e.system.pointer.isKeyPressed(t.keyDef) && (U(e, H.Trigger), await e.system.pointer.release(e, t.keyDef, i)), t.releasePrevious || (U(e, H.Trigger), await e.system.pointer.press(e, t.keyDef, i), t.releaseSelf && (U(e, H.Trigger), await e.system.pointer.release(e, t.keyDef, i)))) : (U(e, H.Trigger), await e.system.pointer.move(e, n, i));
|
|
2485
|
+
}
|
|
2486
|
+
function er(e) {
|
|
2487
|
+
return !!(e.target ?? e.node ?? e.offset !== void 0);
|
|
2488
|
+
}
|
|
2489
|
+
function tr(e, t) {
|
|
2490
|
+
if (!t) throw Error("This pointer has no previous position. Provide a target property!");
|
|
2491
|
+
return t.target ?? e.config.document.body;
|
|
2492
|
+
}
|
|
2493
|
+
//#endregion
|
|
2494
|
+
//#region node_modules/@testing-library/user-event/dist/esm/utility/clear.js
|
|
2495
|
+
async function nr(e) {
|
|
2496
|
+
if (!b(e) || g(e)) throw Error("clear()` is only supported on editable elements.");
|
|
2497
|
+
if (C(e), e.ownerDocument.activeElement !== e) throw Error("The element to be cleared could not be focused.");
|
|
2498
|
+
if (dt(e), !ft(e)) throw Error("The element content to be cleared could not be selected.");
|
|
2499
|
+
N(this, e, "", "deleteContentBackward");
|
|
2500
|
+
}
|
|
2501
|
+
//#endregion
|
|
2502
|
+
//#region node_modules/@testing-library/user-event/dist/esm/utility/selectOptions.js
|
|
2503
|
+
async function rr(e, t) {
|
|
2504
|
+
return ar.call(this, !0, e, t);
|
|
2505
|
+
}
|
|
2506
|
+
async function ir(e, t) {
|
|
2507
|
+
return ar.call(this, !1, e, t);
|
|
2508
|
+
}
|
|
2509
|
+
async function ar(e, r, i) {
|
|
2510
|
+
if (!e && !r.multiple) throw t().getElementError("Unable to deselect an option in a non-multiple select. Use selectOptions to change the selection instead.", r);
|
|
2511
|
+
let a = Array.isArray(i) ? i : [i], o = Array.from(r.querySelectorAll("option, [role=\"option\"]")), s = a.map((e) => {
|
|
2512
|
+
if (typeof e != "string" && o.includes(e)) return e;
|
|
2513
|
+
{
|
|
2514
|
+
let n = o.find((t) => t.value === e || t.innerHTML === e);
|
|
2515
|
+
if (n) return n;
|
|
2516
|
+
throw t().getElementError(`Value "${String(e)}" not found in options`, r);
|
|
2517
|
+
}
|
|
2518
|
+
}).filter((e) => !g(e));
|
|
2519
|
+
if (g(r) || !s.length) return;
|
|
2520
|
+
let c = (t) => {
|
|
2521
|
+
t.selected = e, this.dispatchUIEvent(r, "input", {
|
|
2522
|
+
bubbles: !0,
|
|
2523
|
+
cancelable: !1,
|
|
2524
|
+
composed: !0
|
|
2525
|
+
}), this.dispatchUIEvent(r, "change");
|
|
2526
|
+
};
|
|
2527
|
+
if (n(r, "select")) if (r.multiple) for (let e of s) {
|
|
2528
|
+
let t = this.config.pointerEventsCheck === 0 ? !0 : _n(this, e);
|
|
2529
|
+
t && (this.dispatchUIEvent(e, "pointerover"), this.dispatchUIEvent(r, "pointerenter"), this.dispatchUIEvent(e, "mouseover"), this.dispatchUIEvent(r, "mouseenter"), this.dispatchUIEvent(e, "pointermove"), this.dispatchUIEvent(e, "mousemove"), this.dispatchUIEvent(e, "pointerdown"), this.dispatchUIEvent(e, "mousedown")), C(r), t && (this.dispatchUIEvent(e, "pointerup"), this.dispatchUIEvent(e, "mouseup")), c(e), t && this.dispatchUIEvent(e, "click"), await G(this.config);
|
|
2530
|
+
}
|
|
2531
|
+
else if (s.length === 1) {
|
|
2532
|
+
let e = this.config.pointerEventsCheck === 0 ? !0 : _n(this, r);
|
|
2533
|
+
e ? await this.click(r) : C(r), c(s[0]), e && (this.dispatchUIEvent(r, "pointerover"), this.dispatchUIEvent(r, "pointerenter"), this.dispatchUIEvent(r, "mouseover"), this.dispatchUIEvent(r, "mouseenter"), this.dispatchUIEvent(r, "pointerup"), this.dispatchUIEvent(r, "mouseup"), this.dispatchUIEvent(r, "click")), await G(this.config);
|
|
2534
|
+
} else throw t().getElementError("Cannot select multiple options on a non-multiple select", r);
|
|
2535
|
+
else if (r.getAttribute("role") === "listbox") for (let e of s) await this.click(e), await this.unhover(e);
|
|
2536
|
+
else throw t().getElementError("Cannot select options on elements that are neither select nor listbox elements", r);
|
|
2537
|
+
}
|
|
2538
|
+
//#endregion
|
|
2539
|
+
//#region node_modules/@testing-library/user-event/dist/esm/utility/type.js
|
|
2540
|
+
async function or(e, t, { skipClick: n = this.config.skipClick, skipAutoClose: r = this.config.skipAutoClose, initialSelectionStart: i, initialSelectionEnd: a } = {}) {
|
|
2541
|
+
e.disabled || (n || await this.click(e), i !== void 0 && P(e, i, a ?? i), await this.keyboard(t), r || await Wn(this));
|
|
2542
|
+
}
|
|
2543
|
+
//#endregion
|
|
2544
|
+
//#region node_modules/@testing-library/user-event/dist/esm/utils/edit/setFiles.js
|
|
2545
|
+
var sr = Symbol("files and value properties are mocked");
|
|
2546
|
+
function cr(e, t, n) {
|
|
2547
|
+
n ? Object.defineProperty(e, t, n) : delete e[t];
|
|
2548
|
+
}
|
|
2549
|
+
function lr(e, t) {
|
|
2550
|
+
var n;
|
|
2551
|
+
(n = e[sr]) == null || n.restore();
|
|
2552
|
+
let r = Object.getOwnPropertyDescriptor(e, "type"), i = Object.getOwnPropertyDescriptor(e, "value"), a = Object.getOwnPropertyDescriptor(e, "files");
|
|
2553
|
+
function o() {
|
|
2554
|
+
cr(e, "type", r), cr(e, "value", i), cr(e, "files", a);
|
|
2555
|
+
}
|
|
2556
|
+
e[sr] = { restore: o }, Object.defineProperties(e, {
|
|
2557
|
+
files: {
|
|
2558
|
+
configurable: !0,
|
|
2559
|
+
get: () => t
|
|
2560
|
+
},
|
|
2561
|
+
value: {
|
|
2562
|
+
configurable: !0,
|
|
2563
|
+
get: () => t.length ? `C:\\fakepath\\${t[0].name}` : "",
|
|
2564
|
+
set(t) {
|
|
2565
|
+
if (t === "") o();
|
|
2566
|
+
else {
|
|
2567
|
+
var n;
|
|
2568
|
+
i == null || (n = i.set) == null || n.call(e, t);
|
|
2569
|
+
}
|
|
2570
|
+
}
|
|
2571
|
+
},
|
|
2572
|
+
type: {
|
|
2573
|
+
configurable: !0,
|
|
2574
|
+
get: () => "file",
|
|
2575
|
+
set(t) {
|
|
2576
|
+
t !== "file" && (o(), e.type = t);
|
|
2577
|
+
}
|
|
2578
|
+
}
|
|
2579
|
+
});
|
|
2580
|
+
}
|
|
2581
|
+
//#endregion
|
|
2582
|
+
//#region node_modules/@testing-library/user-event/dist/esm/utility/upload.js
|
|
2583
|
+
async function ur(e, t) {
|
|
2584
|
+
let i = n(e, "label") ? e.control : e;
|
|
2585
|
+
if (!i || !n(i, "input", { type: "file" })) throw TypeError(`The ${i === e ? "given" : "associated"} ${i?.tagName} element does not accept file uploads`);
|
|
2586
|
+
if (g(e)) return;
|
|
2587
|
+
let a = (Array.isArray(t) ? t : [t]).filter((e) => !this.config.applyAccept || fr(e, i.accept)).slice(0, i.multiple ? void 0 : 1), o = () => {
|
|
2588
|
+
a.length === i.files?.length && a.every((e, t) => e === i.files?.item(t)) || (lr(i, s(r(e), a)), this.dispatchUIEvent(i, "input"), this.dispatchUIEvent(i, "change"));
|
|
2589
|
+
};
|
|
2590
|
+
i.addEventListener("fileDialog", o), await this.click(e), i.removeEventListener("fileDialog", o);
|
|
2591
|
+
}
|
|
2592
|
+
function dr(e) {
|
|
2593
|
+
return e.toLowerCase().replace(/(\.|\/)jpg\b/g, "$1jpeg");
|
|
2594
|
+
}
|
|
2595
|
+
function fr(e, t) {
|
|
2596
|
+
if (!t) return !0;
|
|
2597
|
+
let n = [
|
|
2598
|
+
"audio/*",
|
|
2599
|
+
"image/*",
|
|
2600
|
+
"video/*"
|
|
2601
|
+
];
|
|
2602
|
+
return dr(t).trim().split(/\s*,\s*/).some((t) => t.startsWith(".") ? dr(e.name).endsWith(t) : n.includes(t) ? dr(e.type).startsWith(t.replace("*", "")) : dr(e.type) === t);
|
|
2603
|
+
}
|
|
2604
|
+
//#endregion
|
|
2605
|
+
//#region node_modules/@testing-library/user-event/dist/esm/setup/api.js
|
|
2606
|
+
var pr = {
|
|
2607
|
+
click: On,
|
|
2608
|
+
dblClick: kn,
|
|
2609
|
+
tripleClick: An,
|
|
2610
|
+
hover: jn,
|
|
2611
|
+
unhover: Mn,
|
|
2612
|
+
tab: Nn,
|
|
2613
|
+
keyboard: Hn,
|
|
2614
|
+
copy: qn,
|
|
2615
|
+
cut: Jn,
|
|
2616
|
+
paste: Yn,
|
|
2617
|
+
pointer: Qn,
|
|
2618
|
+
clear: nr,
|
|
2619
|
+
deselectOptions: ir,
|
|
2620
|
+
selectOptions: rr,
|
|
2621
|
+
type: or,
|
|
2622
|
+
upload: ur
|
|
2623
|
+
};
|
|
2624
|
+
//#endregion
|
|
2625
|
+
//#region node_modules/@testing-library/user-event/dist/esm/setup/wrapAsync.js
|
|
2626
|
+
function mr(e) {
|
|
2627
|
+
return t().asyncWrapper(e);
|
|
2628
|
+
}
|
|
2629
|
+
//#endregion
|
|
2630
|
+
//#region node_modules/@testing-library/user-event/dist/esm/setup/setup.js
|
|
2631
|
+
var hr = {
|
|
2632
|
+
applyAccept: !0,
|
|
2633
|
+
autoModify: !0,
|
|
2634
|
+
delay: 0,
|
|
2635
|
+
document: globalThis.document,
|
|
2636
|
+
keyboardMap: $t,
|
|
2637
|
+
pointerMap: en,
|
|
2638
|
+
pointerEventsCheck: qt.EachApiCall,
|
|
2639
|
+
skipAutoClose: !1,
|
|
2640
|
+
skipClick: !1,
|
|
2641
|
+
skipHover: !1,
|
|
2642
|
+
writeToClipboard: !1,
|
|
2643
|
+
advanceTimers: () => Promise.resolve()
|
|
2644
|
+
}, gr = {
|
|
2645
|
+
...hr,
|
|
2646
|
+
writeToClipboard: !0
|
|
2647
|
+
};
|
|
2648
|
+
function _r(e = {}, t = gr, n) {
|
|
2649
|
+
let r = Sr(e, n, t);
|
|
2650
|
+
return {
|
|
2651
|
+
...t,
|
|
2652
|
+
...e,
|
|
2653
|
+
document: r
|
|
2654
|
+
};
|
|
2655
|
+
}
|
|
2656
|
+
function vr(e = {}) {
|
|
2657
|
+
let t = _r(e);
|
|
2658
|
+
return Ut(t.document), It(r(t.document).HTMLElement), ae(t.document.defaultView ?? globalThis.window), xr(t).api;
|
|
2659
|
+
}
|
|
2660
|
+
function $({ keyboardState: e, pointerState: t, ...n } = {}, i) {
|
|
2661
|
+
let a = _r(n, hr, i);
|
|
2662
|
+
Ut(a.document), It(r(a.document).HTMLElement);
|
|
2663
|
+
let o = t ?? e ?? new Dn();
|
|
2664
|
+
return {
|
|
2665
|
+
api: xr(a, o).api,
|
|
2666
|
+
system: o
|
|
2667
|
+
};
|
|
2668
|
+
}
|
|
2669
|
+
function yr(e) {
|
|
2670
|
+
return xr({
|
|
2671
|
+
...this.config,
|
|
2672
|
+
...e
|
|
2673
|
+
}, this.system).api;
|
|
2674
|
+
}
|
|
2675
|
+
function br(e, t) {
|
|
2676
|
+
function n(...n) {
|
|
2677
|
+
return U(e, H.Call), mr(() => t.apply(e, n).then(async (t) => (await G(e.config), t)));
|
|
2678
|
+
}
|
|
2679
|
+
return Object.defineProperty(n, "name", { get: () => t.name }), n;
|
|
2680
|
+
}
|
|
2681
|
+
function xr(e, t = new Dn()) {
|
|
2682
|
+
let n = {};
|
|
2683
|
+
return Object.assign(n, {
|
|
2684
|
+
config: e,
|
|
2685
|
+
dispatchEvent: Pt.bind(n),
|
|
2686
|
+
dispatchUIEvent: Nt.bind(n),
|
|
2687
|
+
system: t,
|
|
2688
|
+
levelRefs: {},
|
|
2689
|
+
...pr
|
|
2690
|
+
}), {
|
|
2691
|
+
instance: n,
|
|
2692
|
+
api: {
|
|
2693
|
+
...Object.fromEntries(Object.entries(pr).map(([e, t]) => [e, br(n, t)])),
|
|
2694
|
+
setup: yr.bind(n)
|
|
2695
|
+
}
|
|
2696
|
+
};
|
|
2697
|
+
}
|
|
2698
|
+
function Sr(e, t, n) {
|
|
2699
|
+
return e.document ?? (t && Gt(t)) ?? n.document;
|
|
2700
|
+
}
|
|
2701
|
+
//#endregion
|
|
2702
|
+
//#region node_modules/@testing-library/user-event/dist/esm/setup/directApi.js
|
|
2703
|
+
var Cr = /* @__PURE__ */ e({
|
|
2704
|
+
clear: () => wr,
|
|
2705
|
+
click: () => Tr,
|
|
2706
|
+
copy: () => Er,
|
|
2707
|
+
cut: () => Dr,
|
|
2708
|
+
dblClick: () => Or,
|
|
2709
|
+
deselectOptions: () => kr,
|
|
2710
|
+
hover: () => Ar,
|
|
2711
|
+
keyboard: () => jr,
|
|
2712
|
+
paste: () => Nr,
|
|
2713
|
+
pointer: () => Mr,
|
|
2714
|
+
selectOptions: () => Pr,
|
|
2715
|
+
tab: () => zr,
|
|
2716
|
+
tripleClick: () => Fr,
|
|
2717
|
+
type: () => Ir,
|
|
2718
|
+
unhover: () => Lr,
|
|
2719
|
+
upload: () => Rr
|
|
2720
|
+
});
|
|
2721
|
+
function wr(e) {
|
|
2722
|
+
return $().api.clear(e);
|
|
2723
|
+
}
|
|
2724
|
+
function Tr(e, t = {}) {
|
|
2725
|
+
return $(t, e).api.click(e);
|
|
2726
|
+
}
|
|
2727
|
+
function Er(e = {}) {
|
|
2728
|
+
return $(e).api.copy();
|
|
2729
|
+
}
|
|
2730
|
+
function Dr(e = {}) {
|
|
2731
|
+
return $(e).api.cut();
|
|
2732
|
+
}
|
|
2733
|
+
function Or(e, t = {}) {
|
|
2734
|
+
return $(t).api.dblClick(e);
|
|
2735
|
+
}
|
|
2736
|
+
function kr(e, t, n = {}) {
|
|
2737
|
+
return $(n).api.deselectOptions(e, t);
|
|
2738
|
+
}
|
|
2739
|
+
function Ar(e, t = {}) {
|
|
2740
|
+
return $(t).api.hover(e);
|
|
2741
|
+
}
|
|
2742
|
+
async function jr(e, t = {}) {
|
|
2743
|
+
let { api: n, system: r } = $(t);
|
|
2744
|
+
return n.keyboard(e).then(() => r);
|
|
2745
|
+
}
|
|
2746
|
+
async function Mr(e, t = {}) {
|
|
2747
|
+
let { api: n, system: r } = $(t);
|
|
2748
|
+
return n.pointer(e).then(() => r);
|
|
2749
|
+
}
|
|
2750
|
+
function Nr(e, t) {
|
|
2751
|
+
return $(t).api.paste(e);
|
|
2752
|
+
}
|
|
2753
|
+
function Pr(e, t, n = {}) {
|
|
2754
|
+
return $(n).api.selectOptions(e, t);
|
|
2755
|
+
}
|
|
2756
|
+
function Fr(e, t = {}) {
|
|
2757
|
+
return $(t).api.tripleClick(e);
|
|
2758
|
+
}
|
|
2759
|
+
function Ir(e, t, n = {}) {
|
|
2760
|
+
return $(n, e).api.type(e, t, n);
|
|
2761
|
+
}
|
|
2762
|
+
function Lr(e, t = {}) {
|
|
2763
|
+
let { api: n, system: r } = $(t);
|
|
2764
|
+
return r.pointer.setMousePosition({ target: e }), n.unhover(e);
|
|
2765
|
+
}
|
|
2766
|
+
function Rr(e, t, n = {}) {
|
|
2767
|
+
return $(n).api.upload(e, t);
|
|
2768
|
+
}
|
|
2769
|
+
function zr(e = {}) {
|
|
2770
|
+
return $().api.tab(e);
|
|
2771
|
+
}
|
|
2772
|
+
//#endregion
|
|
2773
|
+
//#region node_modules/@testing-library/user-event/dist/esm/setup/index.js
|
|
2774
|
+
var Br = {
|
|
2775
|
+
...Cr,
|
|
2776
|
+
setup: vr
|
|
2777
|
+
};
|
|
2778
|
+
//#endregion
|
|
2779
|
+
export { Br as t };
|
|
2780
|
+
|
|
2781
|
+
//# sourceMappingURL=esm-UNe_gmRA.js.map
|