@uva-glass/component-library 3.55.1 → 3.55.2
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-DCGjHGxG.js +5235 -0
- package/dist/Lexical.prod-DCGjHGxG.js.map +1 -0
- package/dist/LexicalClipboard.prod-CGG14aoP.js +248 -0
- package/dist/LexicalClipboard.prod-CGG14aoP.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-DWt1IjPF.js +854 -0
- package/dist/LexicalExtension.prod-DWt1IjPF.js.map +1 -0
- package/dist/LexicalLink.prod-Dy1gE75H.js +665 -0
- package/dist/LexicalLink.prod-Dy1gE75H.js.map +1 -0
- package/dist/LexicalList.prod-D9R0L7cu.js +760 -0
- package/dist/LexicalList.prod-D9R0L7cu.js.map +1 -0
- package/dist/LexicalTable.prod-C2FP47Lm.js +1991 -0
- package/dist/LexicalTable.prod-C2FP47Lm.js.map +1 -0
- package/dist/LexicalUtils.prod-BzrjMu6t.js +242 -0
- package/dist/LexicalUtils.prod-BzrjMu6t.js.map +1 -0
- package/dist/LinkContextMenu-DZlKfbg1.js +101 -0
- package/dist/LinkContextMenu-DZlKfbg1.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-DUdocSHB.js +235 -0
- package/dist/PasteHandlerPlugin-DUdocSHB.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-BGolbi44.js +208 -0
- package/dist/TableCellResizerPlugin-BGolbi44.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-OPOZOKLO-CXKdjnjn.js +8448 -0
- package/dist/chunk-OPOZOKLO-CXKdjnjn.js.map +1 -0
- package/dist/client-C0JVBgoR.js +18953 -0
- package/dist/client-C0JVBgoR.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-DVUYdcHS.js +1992 -0
- package/dist/components-DVUYdcHS.js.map +1 -0
- package/dist/dist-D6qYwmKD.js +2005 -0
- package/dist/dist-D6qYwmKD.js.map +1 -0
- package/dist/esm-Cmy7DlsJ.js +2781 -0
- package/dist/esm-Cmy7DlsJ.js.map +1 -0
- package/dist/helpers-DcFTH1J1.js +34 -0
- package/dist/helpers-DcFTH1J1.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-PI4Gvl2f.js +43 -0
- package/dist/react-18-PI4Gvl2f.js.map +1 -0
- package/dist/react.esm-Cev8dB-E.js +3297 -0
- package/dist/react.esm-Cev8dB-E.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-CPFNM-bL.js +21586 -0
- package/dist/test-CPFNM-bL.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 +22 -22
- 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,760 @@
|
|
|
1
|
+
import { An as e, Bt as t, Cn as n, Dt as r, Fn as i, Ft as a, G as o, It as s, K as c, Ln as l, Ot as u, Q as d, T as f, V as p, Vn as m, Vt as h, W as g, _t as _, an as ee, cn as v, et as y, hn as te, i as b, in as x, jn as S, jt as C, n as w, q as ne, qt as T, r as re, rn as ie, ut as E, v as D, yn as O, zt as ae } from "./Lexical.prod-DCGjHGxG.js";
|
|
2
|
+
import { _ as k, l as oe, n as se } from "./LexicalUtils.prod-BzrjMu6t.js";
|
|
3
|
+
import { n as A, o as ce } from "./LexicalExtension.prod-DWt1IjPF.js";
|
|
4
|
+
//#region node_modules/@lexical/list/LexicalList.prod.mjs
|
|
5
|
+
function j(e, ...t) {
|
|
6
|
+
let n = new URL("https://lexical.dev/docs/error"), r = new URLSearchParams();
|
|
7
|
+
r.append("code", e);
|
|
8
|
+
for (let e of t) r.append("v", e);
|
|
9
|
+
throw n.search = r.toString(), Error(`Minified Lexical error #${e}; visit ${n.toString()} for the full message or use the non-minified dev environment for full errors and additional helpful warnings.`);
|
|
10
|
+
}
|
|
11
|
+
function M(e) {
|
|
12
|
+
let t = 1, n = e.getParent();
|
|
13
|
+
for (; n != null;) {
|
|
14
|
+
if (K(n)) {
|
|
15
|
+
let e = n.getParent();
|
|
16
|
+
if (Z(e)) {
|
|
17
|
+
t++, n = e.getParent();
|
|
18
|
+
continue;
|
|
19
|
+
}
|
|
20
|
+
j(40);
|
|
21
|
+
}
|
|
22
|
+
return t;
|
|
23
|
+
}
|
|
24
|
+
return t;
|
|
25
|
+
}
|
|
26
|
+
function N(e) {
|
|
27
|
+
let t = e.getParent();
|
|
28
|
+
Z(t) || j(40);
|
|
29
|
+
let n = t;
|
|
30
|
+
for (; n !== null;) n = n.getParent(), Z(n) && (t = n);
|
|
31
|
+
return t;
|
|
32
|
+
}
|
|
33
|
+
function P(e) {
|
|
34
|
+
let t = [], n = e.getChildren().filter(K);
|
|
35
|
+
for (let e = 0; e < n.length; e++) {
|
|
36
|
+
let r = n[e], i = r.getFirstChild();
|
|
37
|
+
Z(i) ? t = t.concat(P(i)) : t.push(r);
|
|
38
|
+
}
|
|
39
|
+
return t;
|
|
40
|
+
}
|
|
41
|
+
function F(e) {
|
|
42
|
+
return K(e) && Z(e.getFirstChild());
|
|
43
|
+
}
|
|
44
|
+
function I(e) {
|
|
45
|
+
return G().append(e);
|
|
46
|
+
}
|
|
47
|
+
function L(e, t) {
|
|
48
|
+
return K(e) && (t.length === 0 || t.length === 1 && e.is(t[0]) && e.getChildrenSize() === 0);
|
|
49
|
+
}
|
|
50
|
+
function R(e) {
|
|
51
|
+
let t = w();
|
|
52
|
+
if (t !== null) {
|
|
53
|
+
let n = t.getNodes();
|
|
54
|
+
if (S(t)) {
|
|
55
|
+
let r = t.getStartEndPoints();
|
|
56
|
+
r === null && j(143);
|
|
57
|
+
let [a] = r, o = a.getNode(), s = o.getParent();
|
|
58
|
+
if (i(o)) {
|
|
59
|
+
let e = o.getFirstChild();
|
|
60
|
+
if (e) n = e.selectStart().getNodes();
|
|
61
|
+
else {
|
|
62
|
+
let e = _();
|
|
63
|
+
o.append(e), n = e.select().getNodes();
|
|
64
|
+
}
|
|
65
|
+
} else if (L(o, n)) {
|
|
66
|
+
let t = X(e);
|
|
67
|
+
if (i(s)) {
|
|
68
|
+
o.replace(t);
|
|
69
|
+
let e = G();
|
|
70
|
+
d(o) && (e.setFormat(o.getFormatType()), e.setIndent(o.getIndent())), t.append(e);
|
|
71
|
+
} else if (K(o)) {
|
|
72
|
+
let e = o.getParentOrThrow();
|
|
73
|
+
z(t, e.getChildren()), e.replace(t);
|
|
74
|
+
}
|
|
75
|
+
return;
|
|
76
|
+
}
|
|
77
|
+
}
|
|
78
|
+
let r = /* @__PURE__ */ new Set();
|
|
79
|
+
for (let t = 0; t < n.length; t++) {
|
|
80
|
+
let a = n[t];
|
|
81
|
+
if (d(a) && a.isEmpty() && !K(a) && !r.has(a.getKey())) {
|
|
82
|
+
B(a, e);
|
|
83
|
+
continue;
|
|
84
|
+
}
|
|
85
|
+
let o = x(a) ? a.getParent() : K(a) && a.isEmpty() ? a : null;
|
|
86
|
+
for (; o != null;) {
|
|
87
|
+
let t = o.getKey();
|
|
88
|
+
if (Z(o)) {
|
|
89
|
+
if (!r.has(t)) {
|
|
90
|
+
let n = X(e);
|
|
91
|
+
z(n, o.getChildren()), o.replace(n), r.add(t);
|
|
92
|
+
}
|
|
93
|
+
break;
|
|
94
|
+
}
|
|
95
|
+
{
|
|
96
|
+
let n = o.getParent();
|
|
97
|
+
if (i(n) && !r.has(t)) {
|
|
98
|
+
r.add(t), B(o, e);
|
|
99
|
+
break;
|
|
100
|
+
}
|
|
101
|
+
o = n;
|
|
102
|
+
}
|
|
103
|
+
}
|
|
104
|
+
}
|
|
105
|
+
}
|
|
106
|
+
}
|
|
107
|
+
function z(e, t) {
|
|
108
|
+
e.splice(e.getChildrenSize(), 0, t);
|
|
109
|
+
}
|
|
110
|
+
function B(e, t) {
|
|
111
|
+
if (Z(e)) return e;
|
|
112
|
+
let n = e.getPreviousSibling(), r = e.getNextSibling(), i = G(), a;
|
|
113
|
+
if (z(i, e.getChildren()), Z(n) && t === n.getListType()) n.append(i), Z(r) && t === r.getListType() && (z(n, r.getChildren()), r.remove()), a = n;
|
|
114
|
+
else if (Z(r) && t === r.getListType()) r.getFirstChildOrThrow().insertBefore(i), a = r;
|
|
115
|
+
else {
|
|
116
|
+
let n = X(t);
|
|
117
|
+
n.append(i), e.replace(n), a = n;
|
|
118
|
+
}
|
|
119
|
+
i.setFormat(e.getFormatType()), i.setIndent(e.getIndent());
|
|
120
|
+
let o = w();
|
|
121
|
+
return S(o) && (a.getKey() === o.anchor.key && o.anchor.set(i.getKey(), o.anchor.offset, "element"), a.getKey() === o.focus.key && o.focus.set(i.getKey(), o.focus.offset, "element")), e.remove(), a;
|
|
122
|
+
}
|
|
123
|
+
function V(e, t) {
|
|
124
|
+
let n = e.getLastChild(), r = t.getFirstChild();
|
|
125
|
+
n && r && F(n) && F(r) && (V(n.getFirstChild(), r.getFirstChild()), r.remove());
|
|
126
|
+
let i = t.getChildren();
|
|
127
|
+
i.length > 0 && e.append(...i), t.remove();
|
|
128
|
+
}
|
|
129
|
+
function le() {
|
|
130
|
+
let e = w();
|
|
131
|
+
if (S(e)) {
|
|
132
|
+
let t = /* @__PURE__ */ new Set(), n = e.getNodes(), r = e.anchor.getNode();
|
|
133
|
+
if (L(r, n)) t.add(N(r));
|
|
134
|
+
else for (let e = 0; e < n.length; e++) {
|
|
135
|
+
let r = n[e];
|
|
136
|
+
if (x(r)) {
|
|
137
|
+
let e = oe(r, U);
|
|
138
|
+
e != null && t.add(N(e));
|
|
139
|
+
}
|
|
140
|
+
}
|
|
141
|
+
for (let n of t) {
|
|
142
|
+
let t = n, r = P(n);
|
|
143
|
+
for (let n of r) {
|
|
144
|
+
let r = _().setTextStyle(e.style).setTextFormat(e.format);
|
|
145
|
+
z(r, n.getChildren()), t.insertAfter(r), t = r, n.__key === e.anchor.key && g(e.anchor, m(T(r, "next"))), n.__key === e.focus.key && g(e.focus, m(T(r, "next"))), n.remove();
|
|
146
|
+
}
|
|
147
|
+
n.remove();
|
|
148
|
+
}
|
|
149
|
+
}
|
|
150
|
+
}
|
|
151
|
+
function H(e) {
|
|
152
|
+
let t = e.getListType() !== "check", n = e.getStart();
|
|
153
|
+
for (let r of e.getChildren()) K(r) && (r.getValue() !== n && r.setValue(n), t && r.getLatest().__checked != null && r.setChecked(void 0), Z(r.getFirstChild()) || n++);
|
|
154
|
+
}
|
|
155
|
+
function ue(e) {
|
|
156
|
+
let t = /* @__PURE__ */ new Set();
|
|
157
|
+
if (F(e) || t.has(e.getKey())) return;
|
|
158
|
+
let n = e.getParent(), r = e.getNextSibling(), i = e.getPreviousSibling();
|
|
159
|
+
if (F(r) && F(i)) {
|
|
160
|
+
let n = i.getFirstChild();
|
|
161
|
+
if (Z(n)) {
|
|
162
|
+
n.append(e);
|
|
163
|
+
let i = r.getFirstChild();
|
|
164
|
+
Z(i) && (z(n, i.getChildren()), r.remove(), t.add(r.getKey()));
|
|
165
|
+
}
|
|
166
|
+
} else if (F(r)) {
|
|
167
|
+
let t = r.getFirstChild();
|
|
168
|
+
if (Z(t)) {
|
|
169
|
+
let n = t.getFirstChild();
|
|
170
|
+
n !== null && n.insertBefore(e);
|
|
171
|
+
}
|
|
172
|
+
} else if (F(i)) {
|
|
173
|
+
let t = i.getFirstChild();
|
|
174
|
+
Z(t) && t.append(e);
|
|
175
|
+
} else if (Z(n)) {
|
|
176
|
+
let t = G().setTextFormat(e.getTextFormat()).setTextStyle(e.getTextStyle()), a = X(n.getListType()).setTextFormat(n.getTextFormat()).setTextStyle(n.getTextStyle());
|
|
177
|
+
t.append(a), a.append(e), i ? i.insertAfter(t) : r ? r.insertBefore(t) : n.append(t);
|
|
178
|
+
}
|
|
179
|
+
}
|
|
180
|
+
function de(e) {
|
|
181
|
+
if (F(e)) return;
|
|
182
|
+
let t = e.getParent(), n = t ? t.getParent() : void 0;
|
|
183
|
+
if (Z(n ? n.getParent() : void 0) && K(n) && Z(t)) {
|
|
184
|
+
let r = t ? t.getFirstChild() : void 0, i = t ? t.getLastChild() : void 0;
|
|
185
|
+
if (e.is(r)) n.insertBefore(e), t.isEmpty() && n.remove();
|
|
186
|
+
else if (e.is(i)) n.insertAfter(e), t.isEmpty() && n.remove();
|
|
187
|
+
else {
|
|
188
|
+
let r = t.getListType(), i = G(), a = X(r);
|
|
189
|
+
i.append(a), e.getPreviousSiblings().forEach((e) => a.append(e));
|
|
190
|
+
let o = G(), s = X(r);
|
|
191
|
+
o.append(s), z(s, e.getNextSiblings()), n.insertBefore(i), n.insertAfter(o), n.replace(e);
|
|
192
|
+
}
|
|
193
|
+
}
|
|
194
|
+
}
|
|
195
|
+
function fe(e = !1) {
|
|
196
|
+
let t = w();
|
|
197
|
+
if (!S(t) || !t.isCollapsed()) return !1;
|
|
198
|
+
let n = t.anchor.getNode(), r = null;
|
|
199
|
+
if (K(n) && n.getChildrenSize() === 0) r = n;
|
|
200
|
+
else if (l(n)) {
|
|
201
|
+
let e = n.getParent();
|
|
202
|
+
K(e) && e.getChildren().every((e) => l(e) && e.getTextContent().trim() === "") && (r = e);
|
|
203
|
+
}
|
|
204
|
+
if (r === null) return !1;
|
|
205
|
+
let a = N(r), o = r.getParent();
|
|
206
|
+
Z(o) || j(40);
|
|
207
|
+
let s = o.getParent(), c;
|
|
208
|
+
if (i(s)) c = _(), a.insertAfter(c);
|
|
209
|
+
else {
|
|
210
|
+
if (!K(s)) return !1;
|
|
211
|
+
c = G(), s.insertAfter(c);
|
|
212
|
+
}
|
|
213
|
+
c.setTextStyle(t.style).setTextFormat(t.format).select();
|
|
214
|
+
let u = r.getNextSiblings();
|
|
215
|
+
if (u.length > 0) {
|
|
216
|
+
let t = e ? function(e, t) {
|
|
217
|
+
return e.getStart() + t.getIndexWithinParent();
|
|
218
|
+
}(o, r) : 1, n = X(o.getListType(), t);
|
|
219
|
+
if (K(c)) {
|
|
220
|
+
let e = G();
|
|
221
|
+
e.append(n), c.insertAfter(e);
|
|
222
|
+
} else c.insertAfter(n);
|
|
223
|
+
n.append(...u);
|
|
224
|
+
}
|
|
225
|
+
return function(e) {
|
|
226
|
+
let t = e;
|
|
227
|
+
for (; t.getNextSibling() == null && t.getPreviousSibling() == null;) {
|
|
228
|
+
let e = t.getParent();
|
|
229
|
+
if (e == null || !K(e) && !Z(e)) break;
|
|
230
|
+
t = e;
|
|
231
|
+
}
|
|
232
|
+
t.remove();
|
|
233
|
+
}(r), !0;
|
|
234
|
+
}
|
|
235
|
+
var U = class extends b {
|
|
236
|
+
__value;
|
|
237
|
+
__checked;
|
|
238
|
+
$config() {
|
|
239
|
+
return this.config("listitem", {
|
|
240
|
+
$transform: (e) => {
|
|
241
|
+
if (e.__checked == null) return;
|
|
242
|
+
let t = e.getParent();
|
|
243
|
+
Z(t) && t.getListType() !== "check" && e.getChecked() != null && e.setChecked(void 0);
|
|
244
|
+
},
|
|
245
|
+
extends: b,
|
|
246
|
+
importDOM: p({ li: () => ({
|
|
247
|
+
conversion: pe,
|
|
248
|
+
priority: 0
|
|
249
|
+
}) })
|
|
250
|
+
});
|
|
251
|
+
}
|
|
252
|
+
constructor(e = 1, t = void 0, n) {
|
|
253
|
+
super(n), this.__value = e === void 0 ? 1 : e, this.__checked = t;
|
|
254
|
+
}
|
|
255
|
+
afterCloneFrom(e) {
|
|
256
|
+
super.afterCloneFrom(e), this.__value = e.__value, this.__checked = e.__checked;
|
|
257
|
+
}
|
|
258
|
+
createDOM(e) {
|
|
259
|
+
let t = document.createElement("li");
|
|
260
|
+
return this.updateListItemDOM(null, t, e), t;
|
|
261
|
+
}
|
|
262
|
+
updateListItemDOM(e, t, r) {
|
|
263
|
+
(function(e, t, n) {
|
|
264
|
+
let r = t.getParent();
|
|
265
|
+
!Z(r) || r.getListType() !== "check" || Z(t.getFirstChild()) ? (e.removeAttribute("role"), e.removeAttribute("tabIndex"), e.removeAttribute("aria-checked")) : (e.setAttribute("role", "checkbox"), e.setAttribute("tabIndex", "-1"), n && t.__checked === n.__checked || e.setAttribute("aria-checked", t.getChecked() ? "true" : "false"));
|
|
266
|
+
})(t, this, e), t.value = this.__value, function(e, t, r) {
|
|
267
|
+
let i = [], a = [], o = t.list, s = o ? o.listitem : void 0, c;
|
|
268
|
+
if (o && o.nested && (c = o.nested.listitem), s !== void 0 && i.push(...y(s)), o) {
|
|
269
|
+
let e = r.getParent(), t = Z(e) && e.getListType() === "check", n = r.getChecked();
|
|
270
|
+
t && !n || a.push(o.listitemUnchecked), t && n || a.push(o.listitemChecked), t && i.push(n ? o.listitemChecked : o.listitemUnchecked);
|
|
271
|
+
}
|
|
272
|
+
if (c !== void 0) {
|
|
273
|
+
let e = y(c);
|
|
274
|
+
r.getChildren().some((e) => Z(e)) ? i.push(...e) : a.push(...e);
|
|
275
|
+
}
|
|
276
|
+
a.length > 0 && n(e, ...a), i.length > 0 && C(e, ...i);
|
|
277
|
+
}(t, r.theme, this);
|
|
278
|
+
let i = e ? e.__style : "", a = this.__style;
|
|
279
|
+
i !== a && (a === "" ? t.removeAttribute("style") : t.style.cssText = a), function(e, t, n) {
|
|
280
|
+
let r = k(t.__textStyle);
|
|
281
|
+
for (let t in r) e.style.setProperty(`--listitem-marker-${t}`, r[t]);
|
|
282
|
+
if (n) for (let t in k(n.__textStyle)) t in r || e.style.removeProperty(`--listitem-marker-${t}`);
|
|
283
|
+
}(t, this, e);
|
|
284
|
+
}
|
|
285
|
+
updateDOM(e, t, n) {
|
|
286
|
+
let r = t;
|
|
287
|
+
return this.updateListItemDOM(e, r, n), !1;
|
|
288
|
+
}
|
|
289
|
+
updateFromJSON(e) {
|
|
290
|
+
return super.updateFromJSON(e).setValue(e.value).setChecked(e.checked);
|
|
291
|
+
}
|
|
292
|
+
exportDOM(e) {
|
|
293
|
+
let t = this.createDOM(e._config), n = this.getFormatType();
|
|
294
|
+
n && (t.style.textAlign = n);
|
|
295
|
+
let r = this.getDirection();
|
|
296
|
+
return r && (t.dir = r), { element: t };
|
|
297
|
+
}
|
|
298
|
+
exportJSON() {
|
|
299
|
+
return {
|
|
300
|
+
...super.exportJSON(),
|
|
301
|
+
checked: this.getChecked(),
|
|
302
|
+
value: this.getValue()
|
|
303
|
+
};
|
|
304
|
+
}
|
|
305
|
+
append(...e) {
|
|
306
|
+
for (let t = 0; t < e.length; t++) {
|
|
307
|
+
let n = e[t];
|
|
308
|
+
if (d(n) && this.canMergeWith(n)) {
|
|
309
|
+
let e = n.getChildren();
|
|
310
|
+
this.append(...e), n.remove();
|
|
311
|
+
} else super.append(n);
|
|
312
|
+
}
|
|
313
|
+
return this;
|
|
314
|
+
}
|
|
315
|
+
replace(e, t) {
|
|
316
|
+
if (K(e)) return super.replace(e);
|
|
317
|
+
this.setIndent(0);
|
|
318
|
+
let n = this.getParentOrThrow();
|
|
319
|
+
if (!Z(n)) return e;
|
|
320
|
+
if (n.__first === this.getKey()) n.insertBefore(e);
|
|
321
|
+
else if (n.__last === this.getKey()) n.insertAfter(e);
|
|
322
|
+
else {
|
|
323
|
+
let t = X(n.getListType()), r = this.getNextSibling();
|
|
324
|
+
for (; r;) {
|
|
325
|
+
let e = r;
|
|
326
|
+
r = r.getNextSibling(), t.append(e);
|
|
327
|
+
}
|
|
328
|
+
n.insertAfter(e), e.insertAfter(t);
|
|
329
|
+
}
|
|
330
|
+
return t && (d(e) || j(139), this.getChildren().forEach((t) => {
|
|
331
|
+
e.append(t);
|
|
332
|
+
})), this.remove(), n.getChildrenSize() === 0 && n.remove(), e;
|
|
333
|
+
}
|
|
334
|
+
insertAfter(e, t = !0) {
|
|
335
|
+
let n = this.getParentOrThrow();
|
|
336
|
+
if (Z(n) || j(39), K(e)) return super.insertAfter(e, t);
|
|
337
|
+
let r = this.getNextSiblings();
|
|
338
|
+
if (n.insertAfter(e, t), r.length !== 0) {
|
|
339
|
+
let i = X(n.getListType());
|
|
340
|
+
r.forEach((e) => i.append(e)), e.insertAfter(i, t);
|
|
341
|
+
}
|
|
342
|
+
return e;
|
|
343
|
+
}
|
|
344
|
+
remove(e) {
|
|
345
|
+
let t = this.getPreviousSibling(), n = this.getNextSibling();
|
|
346
|
+
super.remove(e), t && n && F(t) && F(n) && (V(t.getFirstChild(), n.getFirstChild()), n.remove());
|
|
347
|
+
}
|
|
348
|
+
insertNewAfter(e, t = !0) {
|
|
349
|
+
let n = G().updateFromJSON(this.exportJSON()).setChecked(!this.getChecked() && void 0);
|
|
350
|
+
return this.insertAfter(n, t), n;
|
|
351
|
+
}
|
|
352
|
+
collapseAtStart(e) {
|
|
353
|
+
let t = _();
|
|
354
|
+
this.getChildren().forEach((e) => t.append(e));
|
|
355
|
+
let n = this.getParentOrThrow(), r = n.getParentOrThrow(), i = K(r);
|
|
356
|
+
if (n.getChildrenSize() === 1) if (i) n.remove(), r.select();
|
|
357
|
+
else {
|
|
358
|
+
n.insertBefore(t), n.remove();
|
|
359
|
+
let r = e.anchor, i = e.focus, a = t.getKey();
|
|
360
|
+
r.type === "element" && r.getNode().is(this) && r.set(a, r.offset, "element"), i.type === "element" && i.getNode().is(this) && i.set(a, i.offset, "element");
|
|
361
|
+
}
|
|
362
|
+
else n.insertBefore(t), this.remove();
|
|
363
|
+
return !0;
|
|
364
|
+
}
|
|
365
|
+
getValue() {
|
|
366
|
+
return this.getLatest().__value;
|
|
367
|
+
}
|
|
368
|
+
setValue(e) {
|
|
369
|
+
let t = this.getWritable();
|
|
370
|
+
return t.__value = e, t;
|
|
371
|
+
}
|
|
372
|
+
getChecked() {
|
|
373
|
+
let e = this.getLatest(), t, n = this.getParent();
|
|
374
|
+
return Z(n) && (t = n.getListType()), t === "check" ? !!e.__checked : void 0;
|
|
375
|
+
}
|
|
376
|
+
setChecked(e) {
|
|
377
|
+
let t = this.getWritable();
|
|
378
|
+
return t.__checked = e, t;
|
|
379
|
+
}
|
|
380
|
+
toggleChecked() {
|
|
381
|
+
let e = this.getWritable();
|
|
382
|
+
return e.setChecked(!e.__checked);
|
|
383
|
+
}
|
|
384
|
+
getIndent() {
|
|
385
|
+
let e = this.getParent();
|
|
386
|
+
if (e === null || !this.isAttached()) return this.getLatest().__indent;
|
|
387
|
+
let t = e.getParentOrThrow(), n = 0;
|
|
388
|
+
for (; K(t);) t = t.getParentOrThrow().getParentOrThrow(), n++;
|
|
389
|
+
return n;
|
|
390
|
+
}
|
|
391
|
+
setIndent(e) {
|
|
392
|
+
typeof e != "number" && j(117), (e = Math.floor(e)) >= 0 || j(199);
|
|
393
|
+
let t = this.getIndent();
|
|
394
|
+
for (; t !== e;) t < e ? (ue(this), t++) : (de(this), t--);
|
|
395
|
+
return this;
|
|
396
|
+
}
|
|
397
|
+
canInsertAfter(e) {
|
|
398
|
+
return K(e);
|
|
399
|
+
}
|
|
400
|
+
canReplaceWith(e) {
|
|
401
|
+
return K(e);
|
|
402
|
+
}
|
|
403
|
+
canMergeWith(e) {
|
|
404
|
+
return K(e) || r(e);
|
|
405
|
+
}
|
|
406
|
+
extractWithChild(e, t) {
|
|
407
|
+
if (!S(t)) return !1;
|
|
408
|
+
let n = t.anchor.getNode(), r = t.focus.getNode();
|
|
409
|
+
return this.isParentOf(n) && this.isParentOf(r) && this.getTextContent().length === t.getTextContent().length;
|
|
410
|
+
}
|
|
411
|
+
isParentRequired() {
|
|
412
|
+
return !0;
|
|
413
|
+
}
|
|
414
|
+
createParentElementNode() {
|
|
415
|
+
return X("bullet");
|
|
416
|
+
}
|
|
417
|
+
canMergeWhenEmpty() {
|
|
418
|
+
return !0;
|
|
419
|
+
}
|
|
420
|
+
};
|
|
421
|
+
function pe(e) {
|
|
422
|
+
if (e.classList.contains("task-list-item")) {
|
|
423
|
+
for (let t of e.children) if (t.tagName === "INPUT") return W(t);
|
|
424
|
+
}
|
|
425
|
+
if (e.classList.contains("joplin-checkbox")) {
|
|
426
|
+
for (let t of e.children) if (t.classList.contains("checkbox-wrapper") && t.children.length > 0 && t.children[0].tagName === "INPUT") return W(t.children[0]);
|
|
427
|
+
}
|
|
428
|
+
let t = e.getAttribute("aria-checked");
|
|
429
|
+
return { node: G(t === "true" || t !== "false" && void 0) };
|
|
430
|
+
}
|
|
431
|
+
function W(e) {
|
|
432
|
+
return e.getAttribute("type") === "checkbox" ? { node: G(e.hasAttribute("checked")) } : { node: null };
|
|
433
|
+
}
|
|
434
|
+
function G(e) {
|
|
435
|
+
return E(new U(void 0, e));
|
|
436
|
+
}
|
|
437
|
+
function K(e) {
|
|
438
|
+
return e instanceof U;
|
|
439
|
+
}
|
|
440
|
+
var q = class extends b {
|
|
441
|
+
__tag;
|
|
442
|
+
__start;
|
|
443
|
+
__listType;
|
|
444
|
+
$config() {
|
|
445
|
+
return this.config("list", {
|
|
446
|
+
$transform: (e) => {
|
|
447
|
+
(function(e) {
|
|
448
|
+
let t = e.getNextSibling();
|
|
449
|
+
Z(t) && e.getListType() === t.getListType() && V(e, t);
|
|
450
|
+
})(e), H(e);
|
|
451
|
+
},
|
|
452
|
+
extends: b,
|
|
453
|
+
importDOM: p({
|
|
454
|
+
ol: () => ({
|
|
455
|
+
conversion: Y,
|
|
456
|
+
priority: 0
|
|
457
|
+
}),
|
|
458
|
+
ul: () => ({
|
|
459
|
+
conversion: Y,
|
|
460
|
+
priority: 0
|
|
461
|
+
})
|
|
462
|
+
})
|
|
463
|
+
});
|
|
464
|
+
}
|
|
465
|
+
constructor(e = "number", t = 1, n) {
|
|
466
|
+
super(n);
|
|
467
|
+
let r = he[e] || e;
|
|
468
|
+
this.__listType = r, this.__tag = r === "number" ? "ol" : "ul", this.__start = t;
|
|
469
|
+
}
|
|
470
|
+
afterCloneFrom(e) {
|
|
471
|
+
super.afterCloneFrom(e), this.__listType = e.__listType, this.__tag = e.__tag, this.__start = e.__start;
|
|
472
|
+
}
|
|
473
|
+
getTag() {
|
|
474
|
+
return this.getLatest().__tag;
|
|
475
|
+
}
|
|
476
|
+
setListType(e) {
|
|
477
|
+
let t = this.getWritable();
|
|
478
|
+
return t.__listType = e, t.__tag = e === "number" ? "ol" : "ul", t;
|
|
479
|
+
}
|
|
480
|
+
getListType() {
|
|
481
|
+
return this.getLatest().__listType;
|
|
482
|
+
}
|
|
483
|
+
getStart() {
|
|
484
|
+
return this.getLatest().__start;
|
|
485
|
+
}
|
|
486
|
+
setStart(e) {
|
|
487
|
+
let t = this.getWritable();
|
|
488
|
+
return t.__start = e, t;
|
|
489
|
+
}
|
|
490
|
+
createDOM(e, t) {
|
|
491
|
+
let n = this.__tag, r = document.createElement(n);
|
|
492
|
+
return this.__start !== 1 && r.setAttribute("start", String(this.__start)), r.__lexicalListType = this.__listType, J(r, e.theme, this), r;
|
|
493
|
+
}
|
|
494
|
+
updateDOM(e, t, n) {
|
|
495
|
+
return e.__tag !== this.__tag || e.__listType !== this.__listType || (J(t, n.theme, this), e.__start !== this.__start && t.setAttribute("start", String(this.__start)), !1);
|
|
496
|
+
}
|
|
497
|
+
updateFromJSON(e) {
|
|
498
|
+
return super.updateFromJSON(e).setListType(e.listType).setStart(e.start);
|
|
499
|
+
}
|
|
500
|
+
exportDOM(e) {
|
|
501
|
+
let t = this.createDOM(e._config, e);
|
|
502
|
+
return c(t) && (this.__start !== 1 && t.setAttribute("start", String(this.__start)), this.__listType === "check" && t.setAttribute("__lexicalListType", "check")), { element: t };
|
|
503
|
+
}
|
|
504
|
+
exportJSON() {
|
|
505
|
+
return {
|
|
506
|
+
...super.exportJSON(),
|
|
507
|
+
listType: this.getListType(),
|
|
508
|
+
start: this.getStart(),
|
|
509
|
+
tag: this.getTag()
|
|
510
|
+
};
|
|
511
|
+
}
|
|
512
|
+
canBeEmpty() {
|
|
513
|
+
return !1;
|
|
514
|
+
}
|
|
515
|
+
canIndent() {
|
|
516
|
+
return !1;
|
|
517
|
+
}
|
|
518
|
+
splice(e, t, n) {
|
|
519
|
+
let r = n;
|
|
520
|
+
for (let e = 0; e < n.length; e++) {
|
|
521
|
+
let t = n[e];
|
|
522
|
+
K(t) || (r === n && (r = [...n]), r[e] = G().append(!d(t) || Z(t) || t.isInline() ? t : te(t.getTextContent())));
|
|
523
|
+
}
|
|
524
|
+
return super.splice(e, t, r);
|
|
525
|
+
}
|
|
526
|
+
extractWithChild(e) {
|
|
527
|
+
return K(e);
|
|
528
|
+
}
|
|
529
|
+
};
|
|
530
|
+
function J(e, t, r) {
|
|
531
|
+
let i = [], a = [], o = t.list;
|
|
532
|
+
if (o !== void 0) {
|
|
533
|
+
let e = o[`${r.__tag}Depth`] || [], t = M(r) - 1, n = t % e.length, s = e[n], c = o[r.__tag], l, u = o.nested, d = o.checklist;
|
|
534
|
+
if (u !== void 0 && u.list && (l = u.list), c !== void 0 && i.push(c), d !== void 0 && r.__listType === "check" && i.push(d), s !== void 0) {
|
|
535
|
+
i.push(...y(s));
|
|
536
|
+
for (let t = 0; t < e.length; t++) t !== n && a.push(r.__tag + t);
|
|
537
|
+
}
|
|
538
|
+
if (l !== void 0) {
|
|
539
|
+
let e = y(l);
|
|
540
|
+
t > 1 ? i.push(...e) : a.push(...e);
|
|
541
|
+
}
|
|
542
|
+
}
|
|
543
|
+
a.length > 0 && n(e, ...a), i.length > 0 && C(e, ...i);
|
|
544
|
+
}
|
|
545
|
+
function me(e) {
|
|
546
|
+
let t = [];
|
|
547
|
+
for (let n = 0; n < e.length; n++) {
|
|
548
|
+
let r = e[n];
|
|
549
|
+
if (K(r)) {
|
|
550
|
+
t.push(r);
|
|
551
|
+
let e = r.getChildren();
|
|
552
|
+
e.length > 1 && e.forEach((e) => {
|
|
553
|
+
Z(e) && t.push(I(e));
|
|
554
|
+
});
|
|
555
|
+
} else t.push(I(r));
|
|
556
|
+
}
|
|
557
|
+
return t;
|
|
558
|
+
}
|
|
559
|
+
function Y(e) {
|
|
560
|
+
let t = e.nodeName.toLowerCase(), n = null;
|
|
561
|
+
return t === "ol" ? n = X("number", e.start) : t === "ul" && (n = function(e) {
|
|
562
|
+
if (e.getAttribute("__lexicallisttype") === "check" || e.classList.contains("contains-task-list") || e.getAttribute("data-is-checklist") === "1") return !0;
|
|
563
|
+
for (let t of e.childNodes) if (c(t) && t.hasAttribute("aria-checked")) return !0;
|
|
564
|
+
return !1;
|
|
565
|
+
}(e) ? X("check") : X("bullet")), {
|
|
566
|
+
after: me,
|
|
567
|
+
node: n
|
|
568
|
+
};
|
|
569
|
+
}
|
|
570
|
+
var he = {
|
|
571
|
+
ol: "number",
|
|
572
|
+
ul: "bullet"
|
|
573
|
+
};
|
|
574
|
+
function X(e = "number", t = 1) {
|
|
575
|
+
return E(new q(e, t));
|
|
576
|
+
}
|
|
577
|
+
function Z(e) {
|
|
578
|
+
return e instanceof q;
|
|
579
|
+
}
|
|
580
|
+
var ge = v("INSERT_CHECK_LIST_COMMAND");
|
|
581
|
+
function _e(n, r) {
|
|
582
|
+
let i = r && r.disableTakeFocusOnClick || !1, o = (e) => {
|
|
583
|
+
(function(e, n) {
|
|
584
|
+
ve(e, () => {
|
|
585
|
+
if (c(e.target)) {
|
|
586
|
+
let r = e.target, i = a(r);
|
|
587
|
+
i != null && i.isEditable() && i.update(() => {
|
|
588
|
+
let e = D(r);
|
|
589
|
+
K(e) && (n ? (t("skip-selection-focus"), t("skip-dom-selection")) : r.focus(), e.toggleChecked());
|
|
590
|
+
});
|
|
591
|
+
}
|
|
592
|
+
});
|
|
593
|
+
})(e, i);
|
|
594
|
+
}, l = (e) => {
|
|
595
|
+
(function(e, t) {
|
|
596
|
+
ve(e, () => {
|
|
597
|
+
e.preventDefault(), t && e.stopPropagation();
|
|
598
|
+
});
|
|
599
|
+
})(e, i);
|
|
600
|
+
};
|
|
601
|
+
return h(n.registerCommand(ge, () => (R("check"), !0), 1), n.registerCommand(e, (e) => ye(e, n, !1), 1), n.registerCommand(s, (e) => ye(e, n, !0), 1), n.registerCommand(re, () => Q() == null ? !1 : (n.getRootElement()?.focus(), !0), 1), n.registerCommand(ne, (e) => {
|
|
602
|
+
let t = Q();
|
|
603
|
+
return !(t == null || !n.isEditable()) && (n.update(() => {
|
|
604
|
+
let n = D(t);
|
|
605
|
+
K(n) && (e.preventDefault(), n.toggleChecked());
|
|
606
|
+
}), !0);
|
|
607
|
+
}, 1), n.registerCommand(ie, (e) => n.getEditorState().read(() => {
|
|
608
|
+
let t = w();
|
|
609
|
+
if (S(t) && t.isCollapsed()) {
|
|
610
|
+
let { anchor: r } = t, i = r.type === "element";
|
|
611
|
+
if (i || r.offset === 0) {
|
|
612
|
+
let t = r.getNode(), a = O(t, (e) => d(e) && !e.isInline());
|
|
613
|
+
if (K(a)) {
|
|
614
|
+
let r = a.getParent();
|
|
615
|
+
if (Z(r) && r.getListType() === "check" && (i || a.getFirstDescendant() === t)) {
|
|
616
|
+
let t = n.getElementByKey(a.__key);
|
|
617
|
+
if (t != null && document.activeElement !== t) return t.focus(), e.preventDefault(), !0;
|
|
618
|
+
}
|
|
619
|
+
}
|
|
620
|
+
}
|
|
621
|
+
}
|
|
622
|
+
return !1;
|
|
623
|
+
}), 1), n.registerRootListener((e, t) => {
|
|
624
|
+
e !== null && (e.addEventListener("click", o), e.addEventListener("pointerdown", l, { capture: !0 }), e.addEventListener("mousedown", l, { capture: !0 }), e.addEventListener("touchstart", l, {
|
|
625
|
+
capture: !0,
|
|
626
|
+
passive: !1
|
|
627
|
+
})), t !== null && (t.removeEventListener("click", o), t.removeEventListener("pointerdown", l, { capture: !0 }), t.removeEventListener("mousedown", l, { capture: !0 }), t.removeEventListener("touchstart", l, { capture: !0 }));
|
|
628
|
+
}));
|
|
629
|
+
}
|
|
630
|
+
function ve(e, t) {
|
|
631
|
+
let n = e.target;
|
|
632
|
+
if (!c(n)) return;
|
|
633
|
+
let r = n.firstChild;
|
|
634
|
+
if (c(r) && (r.tagName === "UL" || r.tagName === "OL")) return;
|
|
635
|
+
let i = n.parentNode;
|
|
636
|
+
if (!i || i.__lexicalListType !== "check") return;
|
|
637
|
+
let a = null, o = null;
|
|
638
|
+
if ("clientX" in e) a = e.clientX;
|
|
639
|
+
else if ("touches" in e) {
|
|
640
|
+
let t = e.touches;
|
|
641
|
+
t.length > 0 && (a = t[0].clientX, o = "touch");
|
|
642
|
+
}
|
|
643
|
+
if (a == null) return;
|
|
644
|
+
let s = n.getBoundingClientRect(), l = a / se(n), u = window.getComputedStyle ? window.getComputedStyle(n, "::before") : { width: "0px" }, d = parseFloat(u.width), f = o === "touch" || e.pointerType === "touch" ? 32 : 0;
|
|
645
|
+
(n.dir === "rtl" ? l < s.right + f && l > s.right - d - f : l > s.left - f && l < s.left + d + f) && t();
|
|
646
|
+
}
|
|
647
|
+
function Q() {
|
|
648
|
+
let e = document.activeElement;
|
|
649
|
+
return c(e) && e.tagName === "LI" && e.parentNode != null && e.parentNode.__lexicalListType === "check" ? e : null;
|
|
650
|
+
}
|
|
651
|
+
function ye(e, t, n) {
|
|
652
|
+
let r = Q();
|
|
653
|
+
return r != null && t.update(() => {
|
|
654
|
+
let i = D(r);
|
|
655
|
+
if (!K(i)) return;
|
|
656
|
+
let a = function(e, t) {
|
|
657
|
+
let n = t ? e.getPreviousSibling() : e.getNextSibling(), r = e;
|
|
658
|
+
for (; n == null && K(r);) r = r.getParentOrThrow().getParent(), r != null && (n = t ? r.getPreviousSibling() : r.getNextSibling());
|
|
659
|
+
for (; K(n);) {
|
|
660
|
+
let e = t ? n.getLastChild() : n.getFirstChild();
|
|
661
|
+
if (!Z(e)) return n;
|
|
662
|
+
n = t ? e.getLastChild() : e.getFirstChild();
|
|
663
|
+
}
|
|
664
|
+
return null;
|
|
665
|
+
}(i, n);
|
|
666
|
+
if (a != null) {
|
|
667
|
+
a.selectStart();
|
|
668
|
+
let n = t.getElementByKey(a.__key);
|
|
669
|
+
n != null && (e.preventDefault(), setTimeout(() => {
|
|
670
|
+
n.focus();
|
|
671
|
+
}, 0));
|
|
672
|
+
}
|
|
673
|
+
}), !1;
|
|
674
|
+
}
|
|
675
|
+
var be = v("UPDATE_LIST_START_COMMAND"), xe = v("INSERT_UNORDERED_LIST_COMMAND"), Se = v("INSERT_ORDERED_LIST_COMMAND"), Ce = v("REMOVE_LIST_COMMAND");
|
|
676
|
+
function we(e, t) {
|
|
677
|
+
return h(e.registerCommand(Se, () => (R("number"), !0), 1), e.registerCommand(be, (e) => {
|
|
678
|
+
let { listNodeKey: t, newStart: n } = e, r = o(t);
|
|
679
|
+
return !!Z(r) && (r.getListType() === "number" && (r.setStart(n), H(r)), !0);
|
|
680
|
+
}, 1), e.registerCommand(xe, () => (R("bullet"), !0), 1), e.registerCommand(Ce, () => (le(), !0), 1), e.registerCommand(ae, () => fe(!!(t && t.restoreNumbering)), 1), e.registerNodeTransform(U, (e) => {
|
|
681
|
+
let t = e.getFirstChild();
|
|
682
|
+
if (t) {
|
|
683
|
+
if (l(t)) {
|
|
684
|
+
let n = t.getStyle(), r = t.getFormat();
|
|
685
|
+
e.getTextStyle() !== n && e.setTextStyle(n), e.getTextFormat() !== r && e.setTextFormat(r);
|
|
686
|
+
}
|
|
687
|
+
} else {
|
|
688
|
+
let t = w();
|
|
689
|
+
S(t) && (t.style !== e.getTextStyle() || t.format !== e.getTextFormat()) && t.isCollapsed() && e.is(t.anchor.getNode()) && e.setTextStyle(t.style).setTextFormat(t.format);
|
|
690
|
+
}
|
|
691
|
+
}), e.registerNodeTransform(ee, (e) => {
|
|
692
|
+
let t = e.getParent();
|
|
693
|
+
if (K(t) && e.is(t.getFirstChild())) {
|
|
694
|
+
let n = e.getStyle(), r = e.getFormat();
|
|
695
|
+
n === t.getTextStyle() && r === t.getTextFormat() || t.setTextStyle(n).setTextFormat(r);
|
|
696
|
+
}
|
|
697
|
+
}));
|
|
698
|
+
}
|
|
699
|
+
function $(e) {
|
|
700
|
+
let t = (e) => {
|
|
701
|
+
let t = e.getParent();
|
|
702
|
+
if (Z(e.getFirstChild()) || !Z(t)) return;
|
|
703
|
+
let n = O(e, (e) => K(e) && Z(e.getParent()) && K(e.getPreviousSibling()));
|
|
704
|
+
if (n === null && e.getIndent() > 0) e.setIndent(0);
|
|
705
|
+
else if (K(n)) {
|
|
706
|
+
let r = n.getPreviousSibling();
|
|
707
|
+
if (K(r)) {
|
|
708
|
+
let n = function(e) {
|
|
709
|
+
let t = e, n = t.getFirstChild();
|
|
710
|
+
for (; Z(n);) {
|
|
711
|
+
let e = n.getLastChild();
|
|
712
|
+
if (!K(e)) break;
|
|
713
|
+
t = e, n = t.getFirstChild();
|
|
714
|
+
}
|
|
715
|
+
return t;
|
|
716
|
+
}(r).getParent();
|
|
717
|
+
if (Z(n)) {
|
|
718
|
+
let r = M(n);
|
|
719
|
+
r + 1 < M(t) && e.setIndent(r);
|
|
720
|
+
}
|
|
721
|
+
}
|
|
722
|
+
}
|
|
723
|
+
};
|
|
724
|
+
return e.registerNodeTransform(q, (e) => {
|
|
725
|
+
let n = [e];
|
|
726
|
+
for (; n.length > 0;) {
|
|
727
|
+
let e = n.shift();
|
|
728
|
+
if (Z(e)) {
|
|
729
|
+
for (let r of e.getChildren()) if (K(r)) {
|
|
730
|
+
t(r);
|
|
731
|
+
let e = r.getFirstChild();
|
|
732
|
+
Z(e) && n.push(e);
|
|
733
|
+
}
|
|
734
|
+
}
|
|
735
|
+
}
|
|
736
|
+
});
|
|
737
|
+
}
|
|
738
|
+
var Te = u({
|
|
739
|
+
build: (e, t, n) => ce(t),
|
|
740
|
+
config: f({
|
|
741
|
+
hasStrictIndent: !1,
|
|
742
|
+
shouldPreserveNumbering: !1
|
|
743
|
+
}),
|
|
744
|
+
name: "@lexical/list/List",
|
|
745
|
+
nodes: () => [q, U],
|
|
746
|
+
register(e, t, n) {
|
|
747
|
+
let r = n.getOutput();
|
|
748
|
+
return h(A(() => we(e, { restoreNumbering: r.shouldPreserveNumbering.value })), A(() => r.hasStrictIndent.value ? $(e) : void 0));
|
|
749
|
+
}
|
|
750
|
+
});
|
|
751
|
+
u({
|
|
752
|
+
config: f({ disableTakeFocusOnClick: !1 }),
|
|
753
|
+
dependencies: [Te],
|
|
754
|
+
name: "@lexical/list/CheckList",
|
|
755
|
+
register: _e
|
|
756
|
+
});
|
|
757
|
+
//#endregion
|
|
758
|
+
export { Se as a, U as c, Ce as i, q as l, $ as n, Z as o, K as r, X as s, we as t, xe as u };
|
|
759
|
+
|
|
760
|
+
//# sourceMappingURL=LexicalList.prod-D9R0L7cu.js.map
|