@uva-glass/component-library 3.56.0 → 3.57.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/{Accordion-DaCqVof1.js → Accordion-DQNoRsg_.js} +2 -2
- package/dist/{Accordion-DaCqVof1.js.map → Accordion-DQNoRsg_.js.map} +1 -1
- package/dist/{AccordionCard-CD5H9gR1.js → AccordionCard-C4k8EI39.js} +2 -2
- package/dist/{AccordionCard-CD5H9gR1.js.map → AccordionCard-C4k8EI39.js.map} +1 -1
- package/dist/{ActionList-C0hD9noC.js → ActionList-D2GC2qPX.js} +2 -2
- package/dist/{ActionList-C0hD9noC.js.map → ActionList-D2GC2qPX.js.map} +1 -1
- package/dist/{AddCatalogueLinkForm-DNv2tEdF.js → AddCatalogueLinkForm-Di0xm7Ep.js} +5 -5
- package/dist/{AddCatalogueLinkForm-DNv2tEdF.js.map → AddCatalogueLinkForm-Di0xm7Ep.js.map} +1 -1
- package/dist/{AppStatusBar-BK0yaC4G.js → AppStatusBar-DW-w7Nzp.js} +2 -2
- package/dist/{AppStatusBar-BK0yaC4G.js.map → AppStatusBar-DW-w7Nzp.js.map} +1 -1
- package/dist/{ButtonGroup-ZqGGZ1rz.js → ButtonGroup-D2z5UWTR.js} +2 -2
- package/dist/{ButtonGroup-ZqGGZ1rz.js.map → ButtonGroup-D2z5UWTR.js.map} +1 -1
- package/dist/{Card-BH1ySOiP.js → Card-DENYj3eR.js} +3 -3
- package/dist/{Card-BH1ySOiP.js.map → Card-DENYj3eR.js.map} +1 -1
- package/dist/{CheckboxButtonBar-DpNnwLzI.js → CheckboxButtonBar-OrJSqUTN.js} +5 -5
- package/dist/{CheckboxButtonBar-DpNnwLzI.js.map → CheckboxButtonBar-OrJSqUTN.js.map} +1 -1
- package/dist/{Column-BwCVSZrG.js → Column-jJBZgP8m.js} +2 -2
- package/dist/{Column-BwCVSZrG.js.map → Column-jJBZgP8m.js.map} +1 -1
- package/dist/{Container-DK25h_-f.js → Container-DOcrVe7u.js} +2 -2
- package/dist/{Container-DK25h_-f.js.map → Container-DOcrVe7u.js.map} +1 -1
- package/dist/{ControlsButton-9uR_zW_F.js → ControlsButton-Byx4XQtB.js} +2 -2
- package/dist/{ControlsButton-9uR_zW_F.js.map → ControlsButton-Byx4XQtB.js.map} +1 -1
- package/dist/{CopyableText-hSqhyUWx.js → CopyableText-BKsM-TuS.js} +2 -2
- package/dist/{CopyableText-hSqhyUWx.js.map → CopyableText-BKsM-TuS.js.map} +1 -1
- package/dist/{DataTable-C46IkAmF.js → DataTable-Cgn_RKTA.js} +2 -2
- package/dist/{DataTable-C46IkAmF.js.map → DataTable-Cgn_RKTA.js.map} +1 -1
- package/dist/{Drawer-BbVJqFQI.js → Drawer-fUw0LEuj.js} +3 -3
- package/dist/{Drawer-BbVJqFQI.js.map → Drawer-fUw0LEuj.js.map} +1 -1
- package/dist/{EmptyStateDataDisplay-IT2P3ius.js → EmptyStateDataDisplay-FBDAGO88.js} +2 -2
- package/dist/{EmptyStateDataDisplay-IT2P3ius.js.map → EmptyStateDataDisplay-FBDAGO88.js.map} +1 -1
- package/dist/{ExpandableInfoPanel-DMfcJFP3.js → ExpandableInfoPanel-BmbgbAjf.js} +2 -2
- package/dist/{ExpandableInfoPanel-DMfcJFP3.js.map → ExpandableInfoPanel-BmbgbAjf.js.map} +1 -1
- package/dist/{FeedbackBar-DRbJVniP.js → FeedbackBar-DEDpoNy7.js} +3 -3
- package/dist/{FeedbackBar-DRbJVniP.js.map → FeedbackBar-DEDpoNy7.js.map} +1 -1
- package/dist/{FeedbackBox-CaSxB4uc.js → FeedbackBox-BpOf_dxg.js} +2 -2
- package/dist/{FeedbackBox-CaSxB4uc.js.map → FeedbackBox-BpOf_dxg.js.map} +1 -1
- package/dist/{Fieldset-D01_rj_p.js → Fieldset-CgnLyAyS.js} +2 -2
- package/dist/{Fieldset-D01_rj_p.js.map → Fieldset-CgnLyAyS.js.map} +1 -1
- package/dist/{FormField-CcV84TfI.js → FormField-ByjTkKKq.js} +2 -2
- package/dist/{FormField-CcV84TfI.js.map → FormField-ByjTkKKq.js.map} +1 -1
- package/dist/{IconButton-CSNMVEG1.js → IconButton-BZVNomru.js} +2 -2
- package/dist/{IconButton-CSNMVEG1.js.map → IconButton-BZVNomru.js.map} +1 -1
- package/dist/{InfoMessage-COywXu4O.js → InfoMessage-CCEg222m.js} +2 -2
- package/dist/{InfoMessage-COywXu4O.js.map → InfoMessage-CCEg222m.js.map} +1 -1
- package/dist/{Input-BzKvzbzP.js → Input-CF3dxqTC.js} +2 -2
- package/dist/{Input-BzKvzbzP.js.map → Input-CF3dxqTC.js.map} +1 -1
- package/dist/{InputField-T01uazlI.js → InputField-asFsxHvx.js} +2 -2
- package/dist/{InputField-T01uazlI.js.map → InputField-asFsxHvx.js.map} +1 -1
- package/dist/{Label-D0ACrYG3.js → Label-52ny6d06.js} +2 -2
- package/dist/{Label-D0ACrYG3.js.map → Label-52ny6d06.js.map} +1 -1
- package/dist/{Lexical.prod-8zZnpGo4.js → Lexical.prod-nAj5fF96.js} +2200 -1708
- package/dist/Lexical.prod-nAj5fF96.js.map +1 -0
- package/dist/LexicalClipboard.prod-B9sWgdS2.js +348 -0
- package/dist/LexicalClipboard.prod-B9sWgdS2.js.map +1 -0
- package/dist/{LexicalComposerContext.prod-y_BRxu3Z.js → LexicalComposerContext.prod-DumMmRBt.js} +2 -2
- package/dist/LexicalComposerContext.prod-DumMmRBt.js.map +1 -0
- package/dist/LexicalHtml.prod-RCMsF0qt.js +2139 -0
- package/dist/LexicalHtml.prod-RCMsF0qt.js.map +1 -0
- package/dist/{LexicalLink.prod-BVUv9-sZ.js → LexicalLink.prod-BcBNTFEb.js} +212 -195
- package/dist/LexicalLink.prod-BcBNTFEb.js.map +1 -0
- package/dist/LexicalList.prod-THQt9B32.js +890 -0
- package/dist/LexicalList.prod-THQt9B32.js.map +1 -0
- package/dist/{LexicalTable.prod-D_9Dr3kL.js → LexicalTable.prod-BpHQYpBM.js} +691 -608
- package/dist/LexicalTable.prod-BpHQYpBM.js.map +1 -0
- package/dist/LexicalUtils.prod-7S6iuu9A.js +347 -0
- package/dist/LexicalUtils.prod-7S6iuu9A.js.map +1 -0
- package/dist/{LinkContextMenu-CTu2nP2j.js → LinkContextMenu-Byu3AEqp.js} +2 -2
- package/dist/{LinkContextMenu-CTu2nP2j.js.map → LinkContextMenu-Byu3AEqp.js.map} +1 -1
- package/dist/{MenuLink-La_3ANEL.js → MenuLink-sK2_W2zs.js} +2 -2
- package/dist/{MenuLink-La_3ANEL.js.map → MenuLink-sK2_W2zs.js.map} +1 -1
- package/dist/{ModalDialog-J7xcPcnS.js → ModalDialog-4V70sxK_.js} +3 -3
- package/dist/{ModalDialog-J7xcPcnS.js.map → ModalDialog-4V70sxK_.js.map} +1 -1
- package/dist/{MultiSelectBox-BmBxa6PH.js → MultiSelectBox-D34qAgzc.js} +2 -2
- package/dist/{MultiSelectBox-BmBxa6PH.js.map → MultiSelectBox-D34qAgzc.js.map} +1 -1
- package/dist/{MultiSelectItem-6d8kQgFs.js → MultiSelectItem-hx3Y4Lmk.js} +2 -2
- package/dist/{MultiSelectItem-6d8kQgFs.js.map → MultiSelectItem-hx3Y4Lmk.js.map} +1 -1
- package/dist/{Notification-BAqCenxt.js → Notification-BhqWENfu.js} +2 -2
- package/dist/{Notification-BAqCenxt.js.map → Notification-BhqWENfu.js.map} +1 -1
- package/dist/{OverlayCloseButton-j-7mC4Zz.js → OverlayCloseButton-Dt6Yec8G.js} +2 -2
- package/dist/{OverlayCloseButton-j-7mC4Zz.js.map → OverlayCloseButton-Dt6Yec8G.js.map} +1 -1
- package/dist/{OverlayStepBar-Cj_-0waE.js → OverlayStepBar-BiC06Itd.js} +2 -2
- package/dist/{OverlayStepBar-Cj_-0waE.js.map → OverlayStepBar-BiC06Itd.js.map} +1 -1
- package/dist/{PageOverlay-DqwdG5ve.js → PageOverlay-BR9ypiar.js} +3 -3
- package/dist/{PageOverlay-DqwdG5ve.js.map → PageOverlay-BR9ypiar.js.map} +1 -1
- package/dist/{PasteHandlerPlugin-Bc6n-G35.js → PasteHandlerPlugin-DyTXcFsj.js} +6 -6
- package/dist/{PasteHandlerPlugin-Bc6n-G35.js.map → PasteHandlerPlugin-DyTXcFsj.js.map} +1 -1
- package/dist/{Periods-C5cxLlWt.js → Periods-B4ms3N24.js} +2 -2
- package/dist/{Periods-C5cxLlWt.js.map → Periods-B4ms3N24.js.map} +1 -1
- package/dist/{ProgrammeCard-CAAOSWKa.js → ProgrammeCard-DdCFNx0d.js} +2 -2
- package/dist/{ProgrammeCard-CAAOSWKa.js.map → ProgrammeCard-DdCFNx0d.js.map} +1 -1
- package/dist/{RadioButton-CKALsbBb.js → RadioButton-DmBpXwIS.js} +2 -2
- package/dist/{RadioButton-CKALsbBb.js.map → RadioButton-DmBpXwIS.js.map} +1 -1
- package/dist/{RadioGroup-DhnnBRJu.js → RadioGroup-DlQjMmpa.js} +3 -3
- package/dist/{RadioGroup-DhnnBRJu.js.map → RadioGroup-DlQjMmpa.js.map} +1 -1
- package/dist/{Repeater-Bnoqqz0X.js → Repeater-BAEfOMZI.js} +2 -2
- package/dist/{Repeater-Bnoqqz0X.js.map → Repeater-BAEfOMZI.js.map} +1 -1
- package/dist/{SectionNotification-BT0Z2edJ.js → SectionNotification-CN-NdGL8.js} +2 -2
- package/dist/{SectionNotification-BT0Z2edJ.js.map → SectionNotification-CN-NdGL8.js.map} +1 -1
- package/dist/{Slider-dCmT0VM2.js → Slider-Czd2xAGf.js} +2 -2
- package/dist/{Slider-dCmT0VM2.js.map → Slider-Czd2xAGf.js.map} +1 -1
- package/dist/{SortableProvider-DV6gWmq_.js → SortableProvider-D-6Ttz0h.js} +2 -2
- package/dist/{SortableProvider-DV6gWmq_.js.map → SortableProvider-D-6Ttz0h.js.map} +1 -1
- package/dist/{StatusBage-CfEIuIPa.js → StatusBage-hJmNPqtk.js} +2 -2
- package/dist/{StatusBage-CfEIuIPa.js.map → StatusBage-hJmNPqtk.js.map} +1 -1
- package/dist/{StatusPill-CbJV4t-V.js → StatusPill-vdqU92pW.js} +2 -2
- package/dist/{StatusPill-CbJV4t-V.js.map → StatusPill-vdqU92pW.js.map} +1 -1
- package/dist/{TableCellContextMenu-9V8mnPmU.js → TableCellContextMenu--4IdoKAU.js} +3 -3
- package/dist/{TableCellContextMenu-9V8mnPmU.js.map → TableCellContextMenu--4IdoKAU.js.map} +1 -1
- package/dist/TableCellResizerPlugin-Dn8Ks2Lm.js +208 -0
- package/dist/TableCellResizerPlugin-Dn8Ks2Lm.js.map +1 -0
- package/dist/{TextArea-GR2ZWwLh.js → TextArea-D_VoyGIO.js} +2 -2
- package/dist/{TextArea-GR2ZWwLh.js.map → TextArea-D_VoyGIO.js.map} +1 -1
- package/dist/{ToggleSwitch-b54K58vY.js → ToggleSwitch-ev4Jh4y-.js} +2 -2
- package/dist/{ToggleSwitch-b54K58vY.js.map → ToggleSwitch-ev4Jh4y-.js.map} +1 -1
- package/dist/{VarIndicator-DoMWwSUm.js → VarIndicator-D0cnlcIf.js} +2 -2
- package/dist/{VarIndicator-DoMWwSUm.js.map → VarIndicator-D0cnlcIf.js.map} +1 -1
- package/dist/{chunk-FON5IJBZ-BBb6rYhU.js → chunk-5WKL7XVT-3IraU-Ja.js} +19 -24
- package/dist/chunk-5WKL7XVT-3IraU-Ja.js.map +1 -0
- package/dist/{client-DJaPTT6C.js → client-BcEWjSJP.js} +2 -2
- package/dist/client-BcEWjSJP.js.map +1 -0
- package/dist/{clsx-BWCAbrjV.js → clsx-C67XSbzZ.js} +2 -2
- package/dist/clsx-C67XSbzZ.js.map +1 -0
- package/dist/components/Accordion/Accordion.js +1 -1
- package/dist/components/Accordion/Accordion.stories.js +2 -2
- package/dist/components/Accordion/Accordion.test.js +4 -4
- package/dist/components/Accordion/index.js +1 -1
- package/dist/components/AccordionCard/AccordionCard.js +1 -1
- package/dist/components/AccordionCard/AccordionCard.stories.js +2 -2
- package/dist/components/AccordionCard/AccordionCard.test.js +4 -4
- package/dist/components/AccordionCard/index.js +1 -1
- package/dist/components/ActionList/ActionList.js +1 -1
- package/dist/components/ActionList/ActionList.stories.js +1 -1
- package/dist/components/ActionList/ActionList.test.js +4 -4
- package/dist/components/ActionList/index.js +1 -1
- package/dist/components/AppStatusBar/AppStatusBar.js +1 -1
- package/dist/components/AppStatusBar/AppStatusBar.stories.js +1 -1
- package/dist/components/AppStatusBar/AppStatusBar.test.js +3 -3
- package/dist/components/AppStatusBar/index.js +1 -1
- package/dist/components/Attention/Attention.test.js +2 -2
- package/dist/components/Backdrop/Backdrop.stories.js +1 -1
- package/dist/components/Backdrop/Backdrop.test.js +2 -2
- package/dist/components/ButtonGroup/ButtonGroup.js +1 -1
- package/dist/components/ButtonGroup/ButtonGroup.stories.js +2 -2
- package/dist/components/ButtonGroup/index.js +1 -1
- package/dist/components/Buttons/Button.js +1 -1
- package/dist/components/Buttons/Button.stories.js +1 -1
- package/dist/components/Buttons/Button.test.js +2 -2
- package/dist/components/Buttons/LinkButton.js +1 -1
- package/dist/components/Buttons/LinkButton.stories.js +1 -1
- package/dist/components/Buttons/LinkButton.test.js +2 -2
- package/dist/components/Buttons/MenuButton.js +1 -1
- package/dist/components/Buttons/MenuButton.stories.js +1 -1
- package/dist/components/Buttons/MenuButton.test.js +2 -2
- package/dist/components/Card/Card.js +1 -1
- package/dist/components/Card/Card.stories.js +1 -1
- package/dist/components/Card/Card.test.js +3 -3
- package/dist/components/Card/index.js +1 -1
- package/dist/components/Checkbox/Checkbox.stories.js +3 -3
- package/dist/components/Checkbox/Checkbox.test.js +3 -3
- package/dist/components/CheckboxButtonBar/CheckboxButtonBar.js +1 -1
- package/dist/components/CheckboxButtonBar/CheckboxButtonBar.stories.js +3 -3
- package/dist/components/CheckboxButtonBar/CheckboxButtonBar.test.js +3 -3
- package/dist/components/CheckboxButtonBar/index.js +1 -1
- package/dist/components/CheckboxTree/CheckboxTree.js +1 -1
- package/dist/components/CheckboxTree/CheckboxTree.stories.js +3 -3
- package/dist/components/CheckboxTree/index.js +1 -1
- package/dist/components/Chip/Chip.stories.js +1 -1
- package/dist/components/ControlsButton/ControlsButton.js +1 -1
- package/dist/components/ControlsButton/ControlsButton.stories.js +3 -3
- package/dist/components/ControlsButton/index.js +1 -1
- package/dist/components/CopyableText/CopyableText.js +1 -1
- package/dist/components/CopyableText/CopyableText.stories.js +1 -1
- package/dist/components/CopyableText/index.js +1 -1
- package/dist/components/DataTable/DataTable.js +1 -1
- package/dist/components/DataTable/DataTable.stories.js +1 -1
- package/dist/components/DataTable/index.js +1 -1
- package/dist/components/Drawer/Drawer.js +1 -1
- package/dist/components/Drawer/Drawer.stories.js +3 -3
- package/dist/components/Drawer/index.js +1 -1
- package/dist/components/EmptyStateDataDisplay/EmptyStateDataDisplay.js +1 -1
- package/dist/components/EmptyStateDataDisplay/EmptyStateDataDisplay.stories.js +1 -1
- package/dist/components/EmptyStateDataDisplay/index.js +1 -1
- package/dist/components/ExpandableInfoPanel/ExpandableInfoPanel.js +1 -1
- package/dist/components/ExpandableInfoPanel/ExpandableInfoPanel.stories.js +2 -2
- package/dist/components/ExpandableInfoPanel/index.js +1 -1
- package/dist/components/FeedbackBar/FeedbackBar.js +1 -1
- package/dist/components/FeedbackBar/FeedbackBar.stories.js +3 -3
- package/dist/components/FeedbackBar/FeedbackBar.test.js +3 -3
- package/dist/components/FeedbackBar/index.js +1 -1
- package/dist/components/FeedbackBox/FeedbackBox.js +1 -1
- package/dist/components/FeedbackBox/FeedbackBox.stories.js +3 -3
- package/dist/components/FeedbackBox/index.js +1 -1
- package/dist/components/Fieldset/Fieldset.js +1 -1
- package/dist/components/Fieldset/Fieldset.stories.js +5 -5
- package/dist/components/Fieldset/index.js +1 -1
- package/dist/components/FormField/FormField.js +1 -1
- package/dist/components/FormField/FormField.stories.js +4 -4
- package/dist/components/FormField/index.js +1 -1
- package/dist/components/FormInput/FormInput.js +1 -1
- package/dist/components/FormInput/FormInput.stories.js +2 -2
- package/dist/components/FormInput/index.js +1 -1
- package/dist/components/GridRow/Column/Column.js +1 -1
- package/dist/components/GridRow/Column/index.js +1 -1
- package/dist/components/GridRow/GridRow.js +2 -2
- package/dist/components/IconButton/IconButton.js +1 -1
- package/dist/components/IconButton/IconButton.stories.js +2 -2
- package/dist/components/IconButton/index.js +1 -1
- package/dist/components/InfoMessage/InfoMessage.js +1 -1
- package/dist/components/InfoMessage/InfoMessage.stories.js +1 -1
- package/dist/components/InfoMessage/index.js +1 -1
- package/dist/components/Input/Input.js +1 -1
- package/dist/components/Input/Input.stories.js +1 -1
- package/dist/components/Input/index.js +1 -1
- package/dist/components/InputField/InputField.js +1 -1
- package/dist/components/InputField/InputField.stories.js +3 -3
- package/dist/components/InputField/index.js +1 -1
- package/dist/components/Label/Label.js +1 -1
- package/dist/components/Label/Label.stories.js +1 -1
- package/dist/components/Label/Label.test.js +3 -3
- package/dist/components/Label/index.js +1 -1
- package/dist/components/MenuLink/MenuLink.js +1 -1
- package/dist/components/MenuLink/MenuLink.stories.js +1 -1
- package/dist/components/MenuLink/index.js +1 -1
- package/dist/components/MetaDataBar/MetaDataBar.test.js +1 -1
- package/dist/components/MetaDataList/MetaDataList.stories.js +1 -1
- package/dist/components/ModalDialog/ModalDialog.js +1 -1
- package/dist/components/ModalDialog/ModalDialog.stories.js +6 -6
- package/dist/components/ModalDialog/index.js +1 -1
- package/dist/components/MultiSelect/MultiSelect.js +1 -1
- package/dist/components/MultiSelect/MultiSelect.stories.js +3 -3
- package/dist/components/MultiSelect/components/MultiSelectHeader.js +1 -1
- package/dist/components/MultiSelect/components/MultiSelectItem.js +1 -1
- package/dist/components/MultiSelect/index.js +1 -1
- package/dist/components/MultiSelectBox/MultiSelectBox.js +1 -1
- package/dist/components/MultiSelectBox/MultiSelectBox.stories.js +2 -2
- package/dist/components/MultiSelectBox/MultiSelectBox.test.js +3 -3
- package/dist/components/MultiSelectBox/index.js +1 -1
- package/dist/components/Notification/Notification.js +1 -1
- package/dist/components/Notification/Notification.stories.js +2 -2
- package/dist/components/Notification/Notification.test.js +3 -3
- package/dist/components/Notification/index.js +1 -1
- package/dist/components/OverlayCloseButton/OverlayCloseButton.js +1 -1
- package/dist/components/OverlayCloseButton/OverlayCloseButton.stories.js +3 -3
- package/dist/components/OverlayCloseButton/index.js +1 -1
- package/dist/components/OverlayStepBar/OverlayStepBar.js +1 -1
- package/dist/components/OverlayStepBar/OverlayStepBar.stories.js +1 -1
- package/dist/components/OverlayStepBar/index.js +1 -1
- package/dist/components/PageOverlay/PageOverlay.js +1 -1
- package/dist/components/PageOverlay/PageOverlay.stories.js +6 -6
- package/dist/components/PageOverlay/PageOverlay.stories.js.map +1 -1
- package/dist/components/PageOverlay/index.js +1 -1
- package/dist/components/PeriodSelector/PeriodSelector.js +1 -1
- package/dist/components/PeriodSelector/PeriodSelector.stories.js +2 -2
- package/dist/components/PeriodSelector/index.js +1 -1
- package/dist/components/Periods/Periods.js +1 -1
- package/dist/components/Periods/Periods.stories.js +1 -1
- package/dist/components/Periods/index.js +1 -1
- package/dist/components/ProgrammeCard/ProgrammeCard.js +1 -1
- package/dist/components/ProgrammeCard/ProgrammeCard.stories.js +3 -3
- package/dist/components/ProgrammeCard/index.js +1 -1
- package/dist/components/RadioButton/RadioButton.js +1 -1
- package/dist/components/RadioButton/RadioButton.stories.js +1 -1
- package/dist/components/RadioButton/index.js +1 -1
- package/dist/components/RadioGroup/RadioGroup.js +1 -1
- package/dist/components/RadioGroup/RadioGroup.stories.js +2 -2
- package/dist/components/RadioGroup/Radiogroup.test.js +3 -3
- package/dist/components/RadioGroup/index.js +1 -1
- package/dist/components/RadioTabSelector/RadioTabSelector.js +1 -1
- package/dist/components/RadioTabSelector/RadioTabSelector.stories.js +2 -2
- package/dist/components/RadioTabSelector/index.js +1 -1
- package/dist/components/Repeater/Repeater.js +1 -1
- package/dist/components/Repeater/Repeater.stories.js +2 -2
- package/dist/components/Repeater/index.js +1 -1
- package/dist/components/RteEditor/EditorHeader/EditorHeader.js +1 -1
- package/dist/components/RteEditor/EditorHeader/index.js +1 -1
- package/dist/components/RteEditor/Plugins/BlockFormatPlugin/BlockFormatPlugin.js +5 -5
- package/dist/components/RteEditor/Plugins/CourseCataloguePlugin/AddCatalogueLinkForm/AddCatalogueLinkForm.js +1 -1
- package/dist/components/RteEditor/Plugins/CourseCataloguePlugin/AddCatalogueLinkForm/index.js +1 -1
- package/dist/components/RteEditor/Plugins/CourseCataloguePlugin/CourseCataloguePlugin.js +37 -37
- package/dist/components/RteEditor/Plugins/HistoryPlugin/HistoryPlugin.js +1 -1
- package/dist/components/RteEditor/Plugins/HistoryPlugin/index.js +1 -1
- package/dist/components/RteEditor/Plugins/LinkPlugin/AddLinkForm/AddLinkFrom.js +1 -1
- package/dist/components/RteEditor/Plugins/LinkPlugin/LinkContextMenu/LinkContextMenu.js +1 -1
- package/dist/components/RteEditor/Plugins/LinkPlugin/LinkPlugin.js +1 -1
- package/dist/components/RteEditor/Plugins/LinkPlugin/helpers.js +1 -1
- package/dist/components/RteEditor/Plugins/LinkPlugin/index.js +1 -1
- package/dist/components/RteEditor/Plugins/ListPlugin/ListPlugin.js +15 -15
- package/dist/components/RteEditor/Plugins/PasteHandlerPlugin/PasteHandlerPlugin.js +1 -1
- package/dist/components/RteEditor/Plugins/PasteHandlerPlugin/index.js +1 -1
- package/dist/components/RteEditor/Plugins/TableCellResizerPlugin/TableCellResizerPlugin.js +1 -1
- package/dist/components/RteEditor/Plugins/TableCellResizerPlugin/index.js +1 -1
- package/dist/components/RteEditor/Plugins/TablePlugin/AddTableFrom.js +1 -1
- package/dist/components/RteEditor/Plugins/TablePlugin/TableCellContextMenu/TableCellContextMenu.js +1 -1
- package/dist/components/RteEditor/Plugins/TablePlugin/TableCellContextMenu/index.js +1 -1
- package/dist/components/RteEditor/Plugins/TablePlugin/TablePlugin.js +1 -1
- package/dist/components/RteEditor/Plugins/TablePlugin/helpers.js +30 -30
- package/dist/components/RteEditor/Plugins/TablePlugin/index.js +2 -2
- package/dist/components/RteEditor/Plugins/ToolbarPlugin/ToolbarPlugin.js +1 -1
- package/dist/components/RteEditor/Plugins/ToolbarPlugin/index.js +1 -1
- package/dist/components/RteEditor/Plugins/index.js +4 -4
- package/dist/components/RteEditor/RteEditor.js +1 -1
- package/dist/components/RteEditor/RteEditor.stories.js +2 -2
- package/dist/components/RteEditor/helpers.js +4 -4
- package/dist/components/RteEditor/index.js +1 -1
- package/dist/components/RteEditor/nodes/CourseCatalogueNode/CourseCatalogueNode.js +18 -18
- package/dist/components/RteEditor/nodes/TableWrapperNode/TableWrapperNode.js +17 -17
- package/dist/components/SearchField/SearchField.js +1 -1
- package/dist/components/SectionNotification/SectionNotification.js +1 -1
- package/dist/components/SectionNotification/SectionNotification.stories.js +1 -1
- package/dist/components/SectionNotification/index.js +1 -1
- package/dist/components/SelectListbox/SelectListBox.stories.js +1 -1
- package/dist/components/SelectListbox/components/SelectButton.js +1 -1
- package/dist/components/SelectListbox/components/SelectOption.js +1 -1
- package/dist/components/Slider/Slider.js +1 -1
- package/dist/components/Slider/Slider.stories.js +1 -1
- package/dist/components/Slider/index.js +1 -1
- package/dist/components/Sortable/Sortable.js +1 -1
- package/dist/components/Sortable/Sortable.stories.js +2 -2
- package/dist/components/Sortable/SortableProvider.js +1 -1
- package/dist/components/Sortable/components/SortableContainer.js +1 -1
- package/dist/components/Sortable/components/SortableItem.js +2 -2
- package/dist/components/StatusBadge/StatusBadge.stories.js +1 -1
- package/dist/components/StatusBadge/StatusBadge.test.js +3 -3
- package/dist/components/StatusBadge/StatusBage.js +1 -1
- package/dist/components/StatusBadge/index.js +1 -1
- package/dist/components/StatusPill/StatusPill.js +1 -1
- package/dist/components/StatusPill/StatusPill.stories.js +2 -2
- package/dist/components/StatusPill/index.js +1 -1
- package/dist/components/TextArea/TextArea.js +1 -1
- package/dist/components/TextArea/TextArea.stories.js +2 -2
- package/dist/components/TextArea/TextArea.test.js +4 -4
- package/dist/components/TextArea/index.js +1 -1
- package/dist/components/ToggleSwitch/ToggleSwitch.js +1 -1
- package/dist/components/ToggleSwitch/ToggleSwitch.stories.js +2 -2
- package/dist/components/ToggleSwitch/index.js +1 -1
- package/dist/components/Tooltip/Tooltip.stories.js +1 -1
- package/dist/components/VarIndicator/VarIndicator.js +1 -1
- package/dist/components/VarIndicator/VarIndicator.stories.js +2 -2
- package/dist/components/VarIndicator/VarIndicator.test.js +4 -4
- package/dist/components/VarIndicator/index.js +1 -1
- package/dist/components/WeekSelector/components/WeekSelectorOption.js +1 -1
- package/dist/components/index.js +42 -42
- package/dist/components-KU0q76JR.js +2150 -0
- package/dist/components-KU0q76JR.js.map +1 -0
- package/dist/{lib-Do6N-CJR.js → dist-C6Ar8a59.js} +2799 -714
- package/dist/dist-C6Ar8a59.js.map +1 -0
- package/dist/{esm-BJhEQquH.js → esm-B6Pg-v2v.js} +89 -89
- package/dist/esm-B6Pg-v2v.js.map +1 -0
- package/dist/{helpers-z8cqBNoz.js → helpers-BzYayeT-.js} +9 -9
- package/dist/helpers-BzYayeT-.js.map +1 -0
- package/dist/index.js +42 -42
- package/dist/{react-18-BAudFSEM.js → react-18-DbbN8Pdb.js} +3 -3
- package/dist/react-18-DbbN8Pdb.js.map +1 -0
- package/dist/react.esm-56DGmlLk.js +8884 -0
- package/dist/react.esm-56DGmlLk.js.map +1 -0
- package/dist/setupTests.js +6 -1196
- package/dist/setupTests.js.map +1 -1
- package/dist/storyComponents/Container/Container.js +1 -1
- package/dist/storyComponents/Container/index.js +1 -1
- package/dist/storybook__react.d.js +17 -17
- package/dist/storybook__react.d.js.map +1 -1
- package/dist/{test-Bd7kXF_B.js → test-WxLxsxwA.js} +56 -57
- package/dist/test-WxLxsxwA.js.map +1 -0
- package/dist/{test-utils-DcI4ZXle.js → test-utils-CMrZ33U0.js} +2 -2
- package/dist/test-utils-CMrZ33U0.js.map +1 -0
- package/package.json +38 -25
- package/dist/Lexical.prod-8zZnpGo4.js.map +0 -1
- package/dist/LexicalClipboard.prod-hbxbsROy.js +0 -651
- package/dist/LexicalClipboard.prod-hbxbsROy.js.map +0 -1
- package/dist/LexicalComposerContext.prod-y_BRxu3Z.js.map +0 -1
- package/dist/LexicalExtension.prod-v8IpET5E.js +0 -913
- package/dist/LexicalExtension.prod-v8IpET5E.js.map +0 -1
- package/dist/LexicalLink.prod-BVUv9-sZ.js.map +0 -1
- package/dist/LexicalList.prod-CCPDDafy.js +0 -806
- package/dist/LexicalList.prod-CCPDDafy.js.map +0 -1
- package/dist/LexicalTable.prod-D_9Dr3kL.js.map +0 -1
- package/dist/LexicalUtils.prod-BWhWP8es.js +0 -343
- package/dist/LexicalUtils.prod-BWhWP8es.js.map +0 -1
- package/dist/TableCellResizerPlugin-Djym940U.js +0 -208
- package/dist/TableCellResizerPlugin-Djym940U.js.map +0 -1
- package/dist/chunk-FON5IJBZ-BBb6rYhU.js.map +0 -1
- package/dist/client-DJaPTT6C.js.map +0 -1
- package/dist/clsx-BWCAbrjV.js.map +0 -1
- package/dist/components-D6_Sx8Hs.js +0 -1995
- package/dist/components-D6_Sx8Hs.js.map +0 -1
- package/dist/dist-Dlg0QxSO.js +0 -2225
- package/dist/dist-Dlg0QxSO.js.map +0 -1
- package/dist/esm-BJhEQquH.js.map +0 -1
- package/dist/helpers-z8cqBNoz.js.map +0 -1
- package/dist/lib-Do6N-CJR.js.map +0 -1
- package/dist/react-18-BAudFSEM.js.map +0 -1
- package/dist/react.esm-GvSawg5E.js +0 -3297
- package/dist/react.esm-GvSawg5E.js.map +0 -1
- package/dist/test-Bd7kXF_B.js.map +0 -1
- package/dist/test-utils-DcI4ZXle.js.map +0 -1
|
@@ -1,1995 +0,0 @@
|
|
|
1
|
-
import { t as e } from "./clsx-BWCAbrjV.js";
|
|
2
|
-
import { Icon as t } from "./components/Icon/Icon.js";
|
|
3
|
-
import { Button as n } from "./components/Buttons/Button.js";
|
|
4
|
-
import { t as r } from "./Checkbox-sAt4To2B.js";
|
|
5
|
-
import { t as i } from "./CheckboxButtonBar-DpNnwLzI.js";
|
|
6
|
-
import { t as a } from "./Label-D0ACrYG3.js";
|
|
7
|
-
import { t as o } from "./FeedbackBox-CaSxB4uc.js";
|
|
8
|
-
import { t as s } from "./ControlsButton-9uR_zW_F.js";
|
|
9
|
-
import { useResponsive as c } from "./components/hooks/useResponsive.js";
|
|
10
|
-
import { t as l } from "./FormField-CcV84TfI.js";
|
|
11
|
-
import { t as u } from "./InputField-T01uazlI.js";
|
|
12
|
-
import { n as d, t as f } from "./MultiSelectItem-6d8kQgFs.js";
|
|
13
|
-
import { n as p, r as m, t as h } from "./LexicalComposerContext.prod-y_BRxu3Z.js";
|
|
14
|
-
import { $t as g, An as _, At as v, B as y, Cn as b, D as x, Dn as S, F as C, Gn as w, Gt as T, H as E, Hn as ee, Ht as D, Jn as O, Jt as te, K as ne, Kt as k, L as re, Lt as ie, M as ae, Nn as oe, On as se, Ot as ce, Pn as le, Pt as A, Q as ue, Qt as de, Rt as fe, St as pe, Un as me, Ut as he, Vn as ge, W as _e, Wt as ve, X as ye, Xt as be, Yn as xe, Zn as Se, _t as Ce, a as we, an as Te, cn as Ee, ct as De, d as Oe, dn as ke, dt as Ae, er as je, et as Me, f as Ne, ft as Pe, g as Fe, ht as Ie, i as Le, m as Re, mt as j, n as ze, nn as Be, nt as Ve, on as He, ot as M, pn as Ue, qn as We, r as Ge, rn as Ke, tn as qe, u as N, un as Je, v as P, vt as Ye, w as Xe, xn as Ze, xt as Qe, zn as $e } from "./Lexical.prod-8zZnpGo4.js";
|
|
15
|
-
import { n as et, t as tt } from "./TableCellResizerPlugin-Djym940U.js";
|
|
16
|
-
import { g as nt, h as rt, n as F, o as it, r as I, u as at, v as ot } from "./LexicalUtils.prod-BWhWP8es.js";
|
|
17
|
-
import { a as st, i as L, n as ct, o as lt, r as ut, s as dt } from "./LexicalExtension.prod-v8IpET5E.js";
|
|
18
|
-
import { a as ft, c as pt, i as mt, n as ht, o as gt, r as _t, s as vt, t as yt } from "./LexicalClipboard.prod-hbxbsROy.js";
|
|
19
|
-
import { c as bt, r as xt, s as St, u as Ct } from "./LexicalList.prod-CCPDDafy.js";
|
|
20
|
-
import { a as wt, i as Tt, n as Et, o as Dt, r as Ot, t as R } from "./LexicalLink.prod-BVUv9-sZ.js";
|
|
21
|
-
import { T as kt, c as At, f as jt, h as Mt, i as Nt, l as Pt, n as Ft, o as It, p as Lt, w as Rt } from "./LexicalTable.prod-D_9Dr3kL.js";
|
|
22
|
-
import { a as zt, i as Bt, n as Vt, r as Ht, t as Ut } from "./helpers-z8cqBNoz.js";
|
|
23
|
-
import { $createTableWrapperNode as Wt, TableWrapperNode as Gt } from "./components/RteEditor/nodes/TableWrapperNode/TableWrapperNode.js";
|
|
24
|
-
import { CourseCatalogueLinkPlugin as Kt, CourseCatalogueNode as qt } from "./components/RteEditor/nodes/CourseCatalogueNode/CourseCatalogueNode.js";
|
|
25
|
-
import { cleanUpTable as Jt, exportMap as Yt, mergeBoldStrongTags as Xt, removeScrollableContainers as Zt, setScrollableContainers as Qt } from "./components/RteEditor/helpers.js";
|
|
26
|
-
import { t as z } from "./RteEditor.module-pWBasED2.js";
|
|
27
|
-
import { LanguageProvider as $t, useLanguage as en } from "./components/RteEditor/Providers/LanguageProvider.js";
|
|
28
|
-
import { useTranslation as B } from "./components/RteEditor/hooks/useTranslation.js";
|
|
29
|
-
import { CourseCataloguePlugin as tn } from "./components/RteEditor/Plugins/CourseCataloguePlugin/CourseCataloguePlugin.js";
|
|
30
|
-
import { BlockFormatPlugin as nn } from "./components/RteEditor/Plugins/BlockFormatPlugin/BlockFormatPlugin.js";
|
|
31
|
-
import { ListPlugin as rn } from "./components/RteEditor/Plugins/ListPlugin/ListPlugin.js";
|
|
32
|
-
import { t as an } from "./LinkContextMenu-CTu2nP2j.js";
|
|
33
|
-
import { useFlyout as on } from "./components/RteEditor/hooks/useFlyout.js";
|
|
34
|
-
import { createTable as sn, deleteColumn as cn, deleteRow as ln, deleteTable as un, getEditorContentWidth as dn, getEditorParrentCellWidth as fn, insertColumn as pn, insertRow as mn } from "./components/RteEditor/Plugins/TablePlugin/helpers.js";
|
|
35
|
-
import { t as hn } from "./TableCellContextMenu-9V8mnPmU.js";
|
|
36
|
-
import { t as gn } from "./PasteHandlerPlugin-Bc6n-G35.js";
|
|
37
|
-
import { UvaTheme as _n } from "./components/RteEditor/UvaTheme/UvaTheme.js";
|
|
38
|
-
import * as vn from "react";
|
|
39
|
-
import { Component as yn, Suspense as bn, createContext as xn, createElement as Sn, createRef as Cn, forwardRef as V, useCallback as wn, useEffect as H, useId as U, useImperativeHandle as Tn, useLayoutEffect as W, useMemo as En, useRef as G, useState as K } from "react";
|
|
40
|
-
import { Fragment as Dn, jsx as q, jsxs as J } from "react/jsx-runtime";
|
|
41
|
-
import { createPortal as On, flushSync as kn } from "react-dom";
|
|
42
|
-
import './assets/components.css';//#region src/components/CheckboxTree/CheckboxTree.module.css
|
|
43
|
-
var Y = {
|
|
44
|
-
"checkbox-tree__header": "_checkbox-tree__header_1kejb_1",
|
|
45
|
-
"checkbox-tree__branch": "_checkbox-tree__branch_1kejb_8",
|
|
46
|
-
"checkbox-tree__branch--icon": "_checkbox-tree__branch--icon_1kejb_21",
|
|
47
|
-
"checkbox-tree__branch--icon--expanded": "_checkbox-tree__branch--icon--expanded_1kejb_27",
|
|
48
|
-
"checkbox-tree__branch--formfield": "_checkbox-tree__branch--formfield_1kejb_32",
|
|
49
|
-
"checkbox-tree__leaves": "_checkbox-tree__leaves_1kejb_39",
|
|
50
|
-
"checkbox-tree__leaves--expanded": "_checkbox-tree__leaves--expanded_1kejb_48",
|
|
51
|
-
"checkbox-tree__leaf": "_checkbox-tree__leaf_1kejb_52"
|
|
52
|
-
}, An = ({ title: i, checkboxTree: o, selectedValues: s, noLabelFrontWeight: u = !1, onChange: d }) => {
|
|
53
|
-
let f = G({}), [p, m] = K([]), { lessThan: h } = c(), g = (e, t) => {
|
|
54
|
-
if (e.length !== t.length) return !1;
|
|
55
|
-
let n = (e) => e.reduce((e, t) => (e[t] = (e[t] || 0) + 1, e), {}), r = n(e), i = n(t);
|
|
56
|
-
return !Object.keys(r).some((e) => r[e] !== i[e]);
|
|
57
|
-
}, _ = (e) => (f.current[e] || (f.current[e] = Cn()), f.current[e]), v = () => {
|
|
58
|
-
let e = [];
|
|
59
|
-
Object.entries(f.current).forEach(([t]) => {
|
|
60
|
-
let n = f.current[t].current;
|
|
61
|
-
n && n.name.indexOf("Group") === -1 && n.checked && e.push(n.value);
|
|
62
|
-
}), m(e), d && d(e);
|
|
63
|
-
}, y = (e) => {
|
|
64
|
-
if (e === "") return;
|
|
65
|
-
let t = [];
|
|
66
|
-
Object.entries(f.current).forEach(([n]) => {
|
|
67
|
-
let r = f.current[n].current;
|
|
68
|
-
r && r?.getAttribute("data-groupname") === e && t.push(r.checked);
|
|
69
|
-
});
|
|
70
|
-
let n = t.every(Boolean), r = t.some(Boolean);
|
|
71
|
-
f.current[e].current && (f.current[e].current.checked = n, f.current[e].current.indeterminate = !n && n !== r, f.current[e].current.checked = n && n === r);
|
|
72
|
-
}, b = (e, t) => {
|
|
73
|
-
let n = t?.querySelector("[data-ul]");
|
|
74
|
-
e.childNodes[0].classList.toggle(Y["checkbox-tree__branch--icon--expanded"]), t?.closest("[data-li]")?.setAttribute("aria-expanded", t?.closest("[data-li]")?.getAttribute("aria-expanded") === "false" ? "true" : "false"), n && n.classList.toggle(Y["checkbox-tree__leaves--expanded"]);
|
|
75
|
-
}, x = (e) => {
|
|
76
|
-
let t = e.target;
|
|
77
|
-
if (!(t.type !== "checkbox" && t.type !== "button")) {
|
|
78
|
-
if (h.md && t.name.indexOf("Group") !== -1 && t.parentNode && t.parentNode.parentNode.getAttribute("aria-expanded") === "false") {
|
|
79
|
-
e.preventDefault(), b(t.parentNode, t.parentNode.parentNode);
|
|
80
|
-
return;
|
|
81
|
-
}
|
|
82
|
-
if (t.name.indexOf("Group") !== -1) {
|
|
83
|
-
let e = t.name;
|
|
84
|
-
Object.entries(f.current).forEach(([t]) => {
|
|
85
|
-
if (t.indexOf(`${e}_`) !== -1) {
|
|
86
|
-
let n = f.current[t].current, r = f.current[e].current;
|
|
87
|
-
if (!n || !r) return;
|
|
88
|
-
n.checked = !!r.checked;
|
|
89
|
-
}
|
|
90
|
-
}), y(e), v();
|
|
91
|
-
return;
|
|
92
|
-
}
|
|
93
|
-
y(t.getAttribute("data-groupname") || ""), v();
|
|
94
|
-
}
|
|
95
|
-
}, S = (e) => {
|
|
96
|
-
let t = e.target;
|
|
97
|
-
b(t, t.closest("[data-li]"));
|
|
98
|
-
};
|
|
99
|
-
return H(() => {
|
|
100
|
-
s && !g(s, p) && Object.entries(f.current).forEach(([e]) => {
|
|
101
|
-
let t = f.current[e].current;
|
|
102
|
-
t && (s?.includes(t.value) ? t.checked = !0 : t.checked = !1, t.name.indexOf("Group") !== -1 && m(s || []));
|
|
103
|
-
});
|
|
104
|
-
}, [s]), H(() => {
|
|
105
|
-
Object.entries(f.current).forEach(([e]) => {
|
|
106
|
-
let t = f.current[e].current;
|
|
107
|
-
t && t.name.indexOf("Group") !== -1 && y(t.name);
|
|
108
|
-
});
|
|
109
|
-
}, [p]), /* @__PURE__ */ J("div", { children: [i && /* @__PURE__ */ q("span", {
|
|
110
|
-
className: Y["checkbox-tree__header"],
|
|
111
|
-
children: i
|
|
112
|
-
}), /* @__PURE__ */ q("div", {
|
|
113
|
-
onClick: x,
|
|
114
|
-
"data-ul": !0,
|
|
115
|
-
role: "tree",
|
|
116
|
-
tabIndex: 0,
|
|
117
|
-
children: o.map(({ itemName: i, children: o }, s) => /* @__PURE__ */ J("div", {
|
|
118
|
-
className: Y["checkbox-tree__branch"],
|
|
119
|
-
"data-li": !0,
|
|
120
|
-
"aria-expanded": h.md ? "false" : "true",
|
|
121
|
-
children: [/* @__PURE__ */ J(l, {
|
|
122
|
-
inline: !0,
|
|
123
|
-
className: Y["checkbox-tree__branch--formfield"],
|
|
124
|
-
children: [
|
|
125
|
-
/* @__PURE__ */ q(n, {
|
|
126
|
-
variant: "blank",
|
|
127
|
-
onClick: S,
|
|
128
|
-
children: /* @__PURE__ */ q(t, {
|
|
129
|
-
name: "CheveronRight",
|
|
130
|
-
size: 16,
|
|
131
|
-
className: e(Y["checkbox-tree__branch--icon"], { [Y["checkbox-tree__branch--icon--expanded"]]: !h.md })
|
|
132
|
-
})
|
|
133
|
-
}),
|
|
134
|
-
/* @__PURE__ */ q(r, {
|
|
135
|
-
id: i,
|
|
136
|
-
name: `Group${s}`,
|
|
137
|
-
disabled: o.every((e) => e.disabled),
|
|
138
|
-
ref: _(`Group${s}`)
|
|
139
|
-
}),
|
|
140
|
-
/* @__PURE__ */ q(a, {
|
|
141
|
-
htmlFor: i,
|
|
142
|
-
noFontWeight: u,
|
|
143
|
-
children: i
|
|
144
|
-
})
|
|
145
|
-
]
|
|
146
|
-
}), /* @__PURE__ */ q("div", {
|
|
147
|
-
className: e(Y["checkbox-tree__leaves"], { [Y["checkbox-tree__leaves--expanded"]]: !h.md }),
|
|
148
|
-
"data-ul": !0,
|
|
149
|
-
children: o.map(({ itemName: e, itemValue: t, disabled: n }) => /* @__PURE__ */ q("div", {
|
|
150
|
-
className: Y["checkbox-tree__leaf"],
|
|
151
|
-
"data-li": !0,
|
|
152
|
-
children: /* @__PURE__ */ J(l, {
|
|
153
|
-
inline: !0,
|
|
154
|
-
className: Y["checkbox-tree__branch--formfield"],
|
|
155
|
-
children: [/* @__PURE__ */ q(r, {
|
|
156
|
-
id: e,
|
|
157
|
-
name: e,
|
|
158
|
-
value: t,
|
|
159
|
-
disabled: n,
|
|
160
|
-
"data-groupname": `Group${s}`,
|
|
161
|
-
ref: _(`Group${s}_${e}`)
|
|
162
|
-
}), /* @__PURE__ */ q(a, {
|
|
163
|
-
htmlFor: e,
|
|
164
|
-
noFontWeight: u,
|
|
165
|
-
children: e
|
|
166
|
-
})]
|
|
167
|
-
})
|
|
168
|
-
}, e))
|
|
169
|
-
})]
|
|
170
|
-
}, i))
|
|
171
|
-
})] });
|
|
172
|
-
}, X = {
|
|
173
|
-
"form-input__container": "_form-input__container_rt0pn_1",
|
|
174
|
-
"form-input__container--label-left": "_form-input__container--label-left_rt0pn_7",
|
|
175
|
-
"form-input__container--label-top": "_form-input__container--label-top_rt0pn_18",
|
|
176
|
-
"form-input__input-feedback-container": "_form-input__input-feedback-container_rt0pn_25",
|
|
177
|
-
"form-input__input-container": "_form-input__input-container_rt0pn_35",
|
|
178
|
-
"form-input__input": "_form-input__input_rt0pn_25",
|
|
179
|
-
"not-valid": "_not-valid_rt0pn_60"
|
|
180
|
-
}, jn = ({ id: t, label: n, labelPosition: r = "top", type: i = "text", required: s = !1, notValid: c = !1, notValidatedText: l = "", onChange: u, maxLength: d, noContainer: f = !1, customInput: p }) => {
|
|
181
|
-
let m = (e) => [
|
|
182
|
-
"e",
|
|
183
|
-
"E",
|
|
184
|
-
"+",
|
|
185
|
-
"-"
|
|
186
|
-
].includes(e.key) && e.preventDefault(), h = (e) => {
|
|
187
|
-
typeof u == "function" && u(e.target.value);
|
|
188
|
-
}, g = /* @__PURE__ */ J(Dn, { children: [n && /* @__PURE__ */ q(a, {
|
|
189
|
-
htmlFor: t,
|
|
190
|
-
required: s,
|
|
191
|
-
alignRight: !0,
|
|
192
|
-
children: n
|
|
193
|
-
}), /* @__PURE__ */ J("div", {
|
|
194
|
-
className: X["form-input__input-feedback-container"],
|
|
195
|
-
children: [p || /* @__PURE__ */ q("div", {
|
|
196
|
-
className: X["form-input__input-container"],
|
|
197
|
-
children: /* @__PURE__ */ q("input", {
|
|
198
|
-
id: t,
|
|
199
|
-
type: i,
|
|
200
|
-
...i === "number" && { onKeyDown: m },
|
|
201
|
-
onChange: h,
|
|
202
|
-
className: e(X["form-input__input"], { [X["not-valid"]]: c }),
|
|
203
|
-
...d ? { maxLength: d } : {}
|
|
204
|
-
})
|
|
205
|
-
}), l !== "" && /* @__PURE__ */ q(o, {
|
|
206
|
-
level: "error",
|
|
207
|
-
feedback: l
|
|
208
|
-
})]
|
|
209
|
-
})] });
|
|
210
|
-
return f ? g : /* @__PURE__ */ q("div", {
|
|
211
|
-
className: e(X["form-input__container"], X[`form-input__container--label-${r}`]),
|
|
212
|
-
children: g
|
|
213
|
-
});
|
|
214
|
-
};
|
|
215
|
-
//#endregion
|
|
216
|
-
//#region src/components/MultiSelect/components/MultiSelectHeader.tsx
|
|
217
|
-
function Mn({ label: e, clearTrigger: t, onClear: r }) {
|
|
218
|
-
return /* @__PURE__ */ J("header", {
|
|
219
|
-
className: d["multi-select__header"],
|
|
220
|
-
children: [/* @__PURE__ */ q(a, {
|
|
221
|
-
htmlFor: "multi-select-list",
|
|
222
|
-
children: e
|
|
223
|
-
}), t && /* @__PURE__ */ q(n, {
|
|
224
|
-
variant: "blank",
|
|
225
|
-
onClick: r,
|
|
226
|
-
children: t
|
|
227
|
-
})]
|
|
228
|
-
});
|
|
229
|
-
}
|
|
230
|
-
//#endregion
|
|
231
|
-
//#region src/components/MultiSelect/MultiSelect.tsx
|
|
232
|
-
var Nn = ({ scrollable: t = !0, noBorder: n, header: r, children: i }) => /* @__PURE__ */ J(Dn, { children: [r, /* @__PURE__ */ q("div", {
|
|
233
|
-
className: e(d["multi-select"], { [d["multi-select--no-border"]]: n }),
|
|
234
|
-
children: /* @__PURE__ */ q("ul", {
|
|
235
|
-
className: e(d["multi-select__list"], { [d["multi-select__list--scrollable"]]: t }),
|
|
236
|
-
id: "multi-select-list",
|
|
237
|
-
children: i
|
|
238
|
-
})
|
|
239
|
-
})] });
|
|
240
|
-
Nn.MultiSelectHeader = Mn, Nn.MultiSelectItem = f;
|
|
241
|
-
//#endregion
|
|
242
|
-
//#region src/components/PeriodSelector/PeriodSelector.module.css
|
|
243
|
-
var Pn = {
|
|
244
|
-
"period-selector__container": "_period-selector__container_1txwd_1",
|
|
245
|
-
"period-selector__container--label-left": "_period-selector__container--label-left_1txwd_6",
|
|
246
|
-
"period-selector__container--label-top": "_period-selector__container--label-top_1txwd_12",
|
|
247
|
-
"period-selector__selector-container": "_period-selector__selector-container_1txwd_18",
|
|
248
|
-
"period-selector__selector-row": "_period-selector__selector-row_1txwd_24"
|
|
249
|
-
}, Fn = 0, In = 1, Ln = 2, Rn = 3, zn = 7, Bn = (e) => {
|
|
250
|
-
let t = [];
|
|
251
|
-
for (let n = 0; n < e.length; n += Rn) t.push(e.slice(n, n + Rn));
|
|
252
|
-
return t;
|
|
253
|
-
}, Vn = ({ maxPeriods: t = zn, defaultValues: n, label: r, labelPosition: s = "top", required: c = !1, notValidatedText: l = "", onChange: u }) => {
|
|
254
|
-
let d = Bn(Array.from({ length: t }, (e, t) => t + 1)), f = d.map((e, t) => e.map((e) => ({
|
|
255
|
-
label: e.toString(),
|
|
256
|
-
value: e.toString()
|
|
257
|
-
}))), p = G(d.map((e) => e.reduce((e, t) => (n?.includes(t) && e.push(t), e), []))), [m, h] = K([]), g = (e) => e[Fn].length !== 0 || e[In].length !== 0 ? [Ln] : e[Ln].length === 0 ? [] : [Fn, In], _ = (e, t) => {
|
|
258
|
-
p.current[t] = e.map((e) => Number(e)), h(g(p.current)), u([...p.current.flat()].sort());
|
|
259
|
-
};
|
|
260
|
-
return H(() => {
|
|
261
|
-
h(g(p.current));
|
|
262
|
-
}, []), /* @__PURE__ */ J("div", {
|
|
263
|
-
className: e(Pn["period-selector__container"], Pn[`period-selector__container--label-${s}`]),
|
|
264
|
-
children: [r && /* @__PURE__ */ q(a, {
|
|
265
|
-
htmlFor: "",
|
|
266
|
-
required: c,
|
|
267
|
-
children: r
|
|
268
|
-
}), /* @__PURE__ */ J("div", {
|
|
269
|
-
className: Pn["period-selector__selector-container"],
|
|
270
|
-
children: [/* @__PURE__ */ q("div", {
|
|
271
|
-
className: Pn["period-selector__selector-row"],
|
|
272
|
-
children: f.map((e, t) => /* @__PURE__ */ q(i, {
|
|
273
|
-
checkboxes: e,
|
|
274
|
-
defaultValues: p.current[t].map((e) => e.toString()),
|
|
275
|
-
disableGroup: m.includes(t),
|
|
276
|
-
required: c,
|
|
277
|
-
onSetValues: (e) => _(e, t),
|
|
278
|
-
notValid: l !== ""
|
|
279
|
-
}, `group_${t}`))
|
|
280
|
-
}), l !== "" && /* @__PURE__ */ q(o, {
|
|
281
|
-
level: "error",
|
|
282
|
-
feedback: l
|
|
283
|
-
})]
|
|
284
|
-
})]
|
|
285
|
-
});
|
|
286
|
-
}, Hn = {
|
|
287
|
-
"radio-tab-selector-button-bar__container": "_radio-tab-selector-button-bar__container_wuziy_1",
|
|
288
|
-
"radio-tab-selector-button-bar__container--label-left": "_radio-tab-selector-button-bar__container--label-left_wuziy_6",
|
|
289
|
-
"radio-tab-selector-button-bar__container--label-top": "_radio-tab-selector-button-bar__container--label-top_wuziy_12",
|
|
290
|
-
"radio-tab-selector-button-bar__row-container": "_radio-tab-selector-button-bar__row-container_wuziy_18",
|
|
291
|
-
"radio-tab-selector-button-bar__row": "_radio-tab-selector-button-bar__row_wuziy_18",
|
|
292
|
-
"radio-tab-selector-button-bar__row--not-validated": "_radio-tab-selector-button-bar__row--not-validated_wuziy_35"
|
|
293
|
-
}, Un = ({ buttons: t, radioGroupName: n, defaultValue: r, label: i, labelPosition: c = "top", required: l = !1, notValidatedText: u = "", onSetValue: d }) => {
|
|
294
|
-
let [f, p] = K(r || null), m = (e) => {
|
|
295
|
-
p(e.target.value), d(e.target.value);
|
|
296
|
-
};
|
|
297
|
-
return /* @__PURE__ */ J("div", {
|
|
298
|
-
className: e(Hn["radio-tab-selector-button-bar__container"], Hn[`radio-tab-selector-button-bar__container--label-${c}`]),
|
|
299
|
-
children: [i && /* @__PURE__ */ q(a, {
|
|
300
|
-
htmlFor: "",
|
|
301
|
-
required: l,
|
|
302
|
-
children: i
|
|
303
|
-
}), /* @__PURE__ */ J("div", {
|
|
304
|
-
className: Hn["radio-tab-selector-button-bar__row-container"],
|
|
305
|
-
children: [/* @__PURE__ */ q("div", {
|
|
306
|
-
className: e(Hn["radio-tab-selector-button-bar__row"], { [Hn["radio-tab-selector-button-bar__row--not-validated"]]: u }),
|
|
307
|
-
children: t.map(({ label: e, value: t, iconName: r, disabled: i }) => /* @__PURE__ */ q(s, {
|
|
308
|
-
type: "radio",
|
|
309
|
-
name: n,
|
|
310
|
-
label: e,
|
|
311
|
-
value: t,
|
|
312
|
-
iconName: r,
|
|
313
|
-
checked: f === t,
|
|
314
|
-
disabled: i,
|
|
315
|
-
onSetValue: m
|
|
316
|
-
}, `${t}`))
|
|
317
|
-
}), u !== "" && /* @__PURE__ */ q(o, {
|
|
318
|
-
level: "error",
|
|
319
|
-
feedback: u
|
|
320
|
-
})]
|
|
321
|
-
})]
|
|
322
|
-
});
|
|
323
|
-
}, Wn = typeof window < "u" && window.document !== void 0 && window.document.createElement !== void 0, Gn = Wn ? W : H, Kn = { tag: y };
|
|
324
|
-
function qn({ initialConfig: e, children: t }) {
|
|
325
|
-
let n = En(() => {
|
|
326
|
-
let { theme: t, namespace: n, nodes: r, onError: i, editorState: a, html: o } = e, s = m(null, t), c = O({
|
|
327
|
-
editable: e.editable,
|
|
328
|
-
html: o,
|
|
329
|
-
namespace: n,
|
|
330
|
-
nodes: r,
|
|
331
|
-
onError: (e) => i(e, c),
|
|
332
|
-
theme: t
|
|
333
|
-
});
|
|
334
|
-
return function(e, t) {
|
|
335
|
-
if (t !== null) {
|
|
336
|
-
if (t === void 0) e.update(() => {
|
|
337
|
-
let t = A();
|
|
338
|
-
if (t.isEmpty()) {
|
|
339
|
-
let n = T();
|
|
340
|
-
t.append(n);
|
|
341
|
-
let r = Wn ? document.activeElement : null;
|
|
342
|
-
(M() !== null || r !== null && r === e.getRootElement()) && n.select();
|
|
343
|
-
}
|
|
344
|
-
}, Kn);
|
|
345
|
-
else if (t !== null) switch (typeof t) {
|
|
346
|
-
case "string": {
|
|
347
|
-
let n = e.parseEditorState(t);
|
|
348
|
-
e.setEditorState(n, Kn);
|
|
349
|
-
break;
|
|
350
|
-
}
|
|
351
|
-
case "object":
|
|
352
|
-
e.setEditorState(t, Kn);
|
|
353
|
-
break;
|
|
354
|
-
case "function": e.update(() => {
|
|
355
|
-
A().isEmpty() && t(e);
|
|
356
|
-
}, Kn);
|
|
357
|
-
}
|
|
358
|
-
}
|
|
359
|
-
}(c, a), [c, s];
|
|
360
|
-
}, []);
|
|
361
|
-
return Gn(() => {
|
|
362
|
-
let t = e.editable, [r] = n;
|
|
363
|
-
r.setEditable(t === void 0 || t);
|
|
364
|
-
}, []), q(p.Provider, {
|
|
365
|
-
value: n,
|
|
366
|
-
children: t
|
|
367
|
-
});
|
|
368
|
-
}
|
|
369
|
-
//#endregion
|
|
370
|
-
//#region node_modules/@lexical/react/LexicalReactProviderExtension.prod.mjs
|
|
371
|
-
var Jn = D({ name: "@lexical/react/ReactProvider" });
|
|
372
|
-
//#endregion
|
|
373
|
-
//#region node_modules/@lexical/text/LexicalText.prod.mjs
|
|
374
|
-
function Yn() {
|
|
375
|
-
return A().getTextContent();
|
|
376
|
-
}
|
|
377
|
-
function Xn(e, t = !0) {
|
|
378
|
-
if (e) return !1;
|
|
379
|
-
let n = Yn();
|
|
380
|
-
return t && (n = n.trim()), n === "";
|
|
381
|
-
}
|
|
382
|
-
function Zn(e) {
|
|
383
|
-
if (!Xn(e, !1)) return !1;
|
|
384
|
-
let t = A().getChildren(), n = t.length;
|
|
385
|
-
if (n > 1) return !1;
|
|
386
|
-
for (let e = 0; e < n; e++) {
|
|
387
|
-
let n = t[e];
|
|
388
|
-
if (Ke(n)) return !1;
|
|
389
|
-
if (pe(n)) {
|
|
390
|
-
if (!Ue(n) || n.__indent !== 0) return !1;
|
|
391
|
-
let t = n.getChildren(), r = t.length;
|
|
392
|
-
for (let n = 0; n < r; n++) {
|
|
393
|
-
let n = t[e];
|
|
394
|
-
if (!j(n)) return !1;
|
|
395
|
-
}
|
|
396
|
-
}
|
|
397
|
-
}
|
|
398
|
-
return !0;
|
|
399
|
-
}
|
|
400
|
-
function Qn(e) {
|
|
401
|
-
return () => Zn(e);
|
|
402
|
-
}
|
|
403
|
-
//#endregion
|
|
404
|
-
//#region node_modules/@lexical/dragon/LexicalDragon.prod.mjs
|
|
405
|
-
function $n(e) {
|
|
406
|
-
let t = window.location.origin, n = (n) => {
|
|
407
|
-
if (n.origin !== t) return;
|
|
408
|
-
let r = e.getRootElement();
|
|
409
|
-
if (document.activeElement !== r) return;
|
|
410
|
-
let i = n.data;
|
|
411
|
-
if (typeof i == "string") {
|
|
412
|
-
let t;
|
|
413
|
-
try {
|
|
414
|
-
t = JSON.parse(i);
|
|
415
|
-
} catch {
|
|
416
|
-
return;
|
|
417
|
-
}
|
|
418
|
-
if (t && t.protocol === "nuanria_messaging" && t.type === "request") {
|
|
419
|
-
let r = t.payload;
|
|
420
|
-
if (r && r.functionId === "makeChanges") {
|
|
421
|
-
let t = r.args;
|
|
422
|
-
if (t) {
|
|
423
|
-
let [r, i, a, o, s] = t;
|
|
424
|
-
e.update(() => {
|
|
425
|
-
let e = M();
|
|
426
|
-
if (P(e)) {
|
|
427
|
-
let t = e.anchor, c = t.getNode(), l = 0, u = 0;
|
|
428
|
-
if (j(c) && r >= 0 && i >= 0 && (l = r, u = r + i, e.setTextNodeRange(c, l, c, u)), l === u && a === "" || (e.insertRawText(a), c = t.getNode()), j(c)) {
|
|
429
|
-
l = o, u = o + s;
|
|
430
|
-
let t = c.getTextContentSize();
|
|
431
|
-
l = l > t ? t : l, u = u > t ? t : u, e.setTextNodeRange(c, l, c, u);
|
|
432
|
-
}
|
|
433
|
-
n.stopImmediatePropagation();
|
|
434
|
-
}
|
|
435
|
-
});
|
|
436
|
-
}
|
|
437
|
-
}
|
|
438
|
-
}
|
|
439
|
-
}
|
|
440
|
-
};
|
|
441
|
-
return window.addEventListener("message", n, !0), () => {
|
|
442
|
-
window.removeEventListener("message", n, !0);
|
|
443
|
-
};
|
|
444
|
-
}
|
|
445
|
-
var er = D({
|
|
446
|
-
build: (e, t, n) => L(t),
|
|
447
|
-
config: ie({ disabled: typeof window > "u" }),
|
|
448
|
-
name: "@lexical/dragon",
|
|
449
|
-
register: (e, t, n) => ct(() => n.getOutput().disabled.value ? void 0 : $n(e))
|
|
450
|
-
});
|
|
451
|
-
//#endregion
|
|
452
|
-
//#region node_modules/@lexical/rich-text/LexicalRichText.prod.mjs
|
|
453
|
-
function tr(e, t) {
|
|
454
|
-
if (document.caretRangeFromPoint !== void 0) {
|
|
455
|
-
let n = document.caretRangeFromPoint(e, t);
|
|
456
|
-
return n === null ? null : {
|
|
457
|
-
node: n.startContainer,
|
|
458
|
-
offset: n.startOffset
|
|
459
|
-
};
|
|
460
|
-
}
|
|
461
|
-
if (document.caretPositionFromPoint !== "undefined") {
|
|
462
|
-
let n = document.caretPositionFromPoint(e, t);
|
|
463
|
-
return n === null ? null : {
|
|
464
|
-
node: n.offsetNode,
|
|
465
|
-
offset: n.offset
|
|
466
|
-
};
|
|
467
|
-
}
|
|
468
|
-
return null;
|
|
469
|
-
}
|
|
470
|
-
var Z = typeof window < "u" && window.document !== void 0 && window.document.createElement !== void 0, nr = Z && "documentMode" in document ? document.documentMode : null, rr = Z && /Mac|iPod|iPhone|iPad/.test(navigator.platform), ir = !(!Z || !("InputEvent" in window) || nr) && "getTargetRanges" in new window.InputEvent("input"), ar = Z && /iPad|iPhone|iPod/.test(navigator.userAgent) && !window.MSStream, or = Z && /Android/.test(navigator.userAgent), sr = Z && /Version\/[\d.]+.*Safari/.test(navigator.userAgent) && !or, cr = Z && /^(?=.*Chrome).*/i.test(navigator.userAgent), lr = Z && /AppleWebKit\/[\d.]+/.test(navigator.userAgent) && rr && !cr, ur = _("DRAG_DROP_PASTE_FILE"), dr = class e extends we {
|
|
471
|
-
static getType() {
|
|
472
|
-
return "quote";
|
|
473
|
-
}
|
|
474
|
-
static clone(t) {
|
|
475
|
-
return new e(t.__key);
|
|
476
|
-
}
|
|
477
|
-
createDOM(e) {
|
|
478
|
-
let t = document.createElement("blockquote");
|
|
479
|
-
return Je(t, e.theme.quote), t;
|
|
480
|
-
}
|
|
481
|
-
updateDOM(e, t) {
|
|
482
|
-
return !1;
|
|
483
|
-
}
|
|
484
|
-
static importDOM() {
|
|
485
|
-
return { blockquote: (e) => ({
|
|
486
|
-
conversion: hr,
|
|
487
|
-
priority: 0
|
|
488
|
-
}) };
|
|
489
|
-
}
|
|
490
|
-
exportDOM(e) {
|
|
491
|
-
let { element: t } = super.exportDOM(e);
|
|
492
|
-
if (v(t)) {
|
|
493
|
-
this.isEmpty() && t.append(document.createElement("br"));
|
|
494
|
-
let e = this.getFormatType();
|
|
495
|
-
e && (t.style.textAlign = e);
|
|
496
|
-
let n = this.getDirection();
|
|
497
|
-
n && (t.dir = n);
|
|
498
|
-
}
|
|
499
|
-
return { element: t };
|
|
500
|
-
}
|
|
501
|
-
static importJSON(e) {
|
|
502
|
-
return fr().updateFromJSON(e);
|
|
503
|
-
}
|
|
504
|
-
insertNewAfter(e, t) {
|
|
505
|
-
let n = T(), r = this.getDirection();
|
|
506
|
-
return n.setDirection(r), this.insertAfter(n, t), n;
|
|
507
|
-
}
|
|
508
|
-
collapseAtStart() {
|
|
509
|
-
let e = T();
|
|
510
|
-
return this.getChildren().forEach((t) => e.append(t)), this.replace(e), !0;
|
|
511
|
-
}
|
|
512
|
-
canMergeWhenEmpty() {
|
|
513
|
-
return !0;
|
|
514
|
-
}
|
|
515
|
-
};
|
|
516
|
-
function fr() {
|
|
517
|
-
return je(new dr());
|
|
518
|
-
}
|
|
519
|
-
var pr = class e extends we {
|
|
520
|
-
__tag;
|
|
521
|
-
static getType() {
|
|
522
|
-
return "heading";
|
|
523
|
-
}
|
|
524
|
-
static clone(t) {
|
|
525
|
-
return new e(t.__tag, t.__key);
|
|
526
|
-
}
|
|
527
|
-
afterCloneFrom(e) {
|
|
528
|
-
super.afterCloneFrom(e), this.__tag = e.__tag;
|
|
529
|
-
}
|
|
530
|
-
constructor(e = "h1", t) {
|
|
531
|
-
super(t), this.__tag = e;
|
|
532
|
-
}
|
|
533
|
-
getTag() {
|
|
534
|
-
return this.getLatest().__tag;
|
|
535
|
-
}
|
|
536
|
-
setTag(e) {
|
|
537
|
-
let t = this.getWritable();
|
|
538
|
-
return t.__tag = e, t;
|
|
539
|
-
}
|
|
540
|
-
createDOM(e) {
|
|
541
|
-
let t = this.__tag, n = document.createElement(t), r = e.theme.heading;
|
|
542
|
-
if (r !== void 0) {
|
|
543
|
-
let e = r[t];
|
|
544
|
-
Je(n, e);
|
|
545
|
-
}
|
|
546
|
-
return n;
|
|
547
|
-
}
|
|
548
|
-
updateDOM(e, t, n) {
|
|
549
|
-
return e.__tag !== this.__tag;
|
|
550
|
-
}
|
|
551
|
-
static importDOM() {
|
|
552
|
-
return {
|
|
553
|
-
h1: (e) => ({
|
|
554
|
-
conversion: Q,
|
|
555
|
-
priority: 0
|
|
556
|
-
}),
|
|
557
|
-
h2: (e) => ({
|
|
558
|
-
conversion: Q,
|
|
559
|
-
priority: 0
|
|
560
|
-
}),
|
|
561
|
-
h3: (e) => ({
|
|
562
|
-
conversion: Q,
|
|
563
|
-
priority: 0
|
|
564
|
-
}),
|
|
565
|
-
h4: (e) => ({
|
|
566
|
-
conversion: Q,
|
|
567
|
-
priority: 0
|
|
568
|
-
}),
|
|
569
|
-
h5: (e) => ({
|
|
570
|
-
conversion: Q,
|
|
571
|
-
priority: 0
|
|
572
|
-
}),
|
|
573
|
-
h6: (e) => ({
|
|
574
|
-
conversion: Q,
|
|
575
|
-
priority: 0
|
|
576
|
-
}),
|
|
577
|
-
p: (e) => {
|
|
578
|
-
let t = e.firstChild;
|
|
579
|
-
return t !== null && mr(t) ? {
|
|
580
|
-
conversion: () => ({ node: null }),
|
|
581
|
-
priority: 3
|
|
582
|
-
} : null;
|
|
583
|
-
},
|
|
584
|
-
span: (e) => mr(e) ? {
|
|
585
|
-
conversion: (e) => ({ node: gr("h1") }),
|
|
586
|
-
priority: 3
|
|
587
|
-
} : null
|
|
588
|
-
};
|
|
589
|
-
}
|
|
590
|
-
exportDOM(e) {
|
|
591
|
-
let { element: t } = super.exportDOM(e);
|
|
592
|
-
if (v(t)) {
|
|
593
|
-
this.isEmpty() && t.append(document.createElement("br"));
|
|
594
|
-
let e = this.getFormatType();
|
|
595
|
-
e && (t.style.textAlign = e);
|
|
596
|
-
let n = this.getDirection();
|
|
597
|
-
n && (t.dir = n);
|
|
598
|
-
}
|
|
599
|
-
return { element: t };
|
|
600
|
-
}
|
|
601
|
-
static importJSON(e) {
|
|
602
|
-
return gr(e.tag).updateFromJSON(e);
|
|
603
|
-
}
|
|
604
|
-
updateFromJSON(e) {
|
|
605
|
-
return super.updateFromJSON(e).setTag(e.tag);
|
|
606
|
-
}
|
|
607
|
-
exportJSON() {
|
|
608
|
-
return {
|
|
609
|
-
...super.exportJSON(),
|
|
610
|
-
tag: this.getTag()
|
|
611
|
-
};
|
|
612
|
-
}
|
|
613
|
-
insertNewAfter(e, t = !0) {
|
|
614
|
-
let n = e ? e.anchor.offset : 0, r = this.getLastDescendant(), i = !r || e && e.anchor.key === r.getKey() && n === r.getTextContentSize() || !e ? T() : gr(this.getTag()), a = this.getDirection();
|
|
615
|
-
if (i.setDirection(a), this.insertAfter(i, t), n === 0 && !this.isEmpty() && e) {
|
|
616
|
-
let e = T();
|
|
617
|
-
e.select(), this.replace(e, !0);
|
|
618
|
-
}
|
|
619
|
-
return i;
|
|
620
|
-
}
|
|
621
|
-
collapseAtStart() {
|
|
622
|
-
let e = this.isEmpty() ? T() : gr(this.getTag());
|
|
623
|
-
return this.getChildren().forEach((t) => e.append(t)), this.replace(e), !0;
|
|
624
|
-
}
|
|
625
|
-
extractWithChild() {
|
|
626
|
-
return !0;
|
|
627
|
-
}
|
|
628
|
-
};
|
|
629
|
-
function mr(e) {
|
|
630
|
-
return e.nodeName.toLowerCase() === "span" && e.style.fontSize === "26pt";
|
|
631
|
-
}
|
|
632
|
-
function Q(e) {
|
|
633
|
-
let t = e.nodeName.toLowerCase(), n = null;
|
|
634
|
-
return t !== "h1" && t !== "h2" && t !== "h3" && t !== "h4" && t !== "h5" && t !== "h6" || (n = gr(t), e.style !== null && (le(e, n), n.setFormat(e.style.textAlign))), { node: n };
|
|
635
|
-
}
|
|
636
|
-
function hr(e) {
|
|
637
|
-
let t = fr();
|
|
638
|
-
return e.style !== null && (t.setFormat(e.style.textAlign), le(e, t)), { node: t };
|
|
639
|
-
}
|
|
640
|
-
function gr(e = "h1") {
|
|
641
|
-
return je(new pr(e));
|
|
642
|
-
}
|
|
643
|
-
function _r(e) {
|
|
644
|
-
let t = null;
|
|
645
|
-
if (I(e, DragEvent) ? t = e.dataTransfer : I(e, ClipboardEvent) && (t = e.clipboardData), t === null) return [
|
|
646
|
-
!1,
|
|
647
|
-
[],
|
|
648
|
-
!1
|
|
649
|
-
];
|
|
650
|
-
let n = t.types, r = n.includes("Files"), i = n.includes("text/html") || n.includes("text/plain");
|
|
651
|
-
return [
|
|
652
|
-
r,
|
|
653
|
-
Array.from(t.files),
|
|
654
|
-
i
|
|
655
|
-
];
|
|
656
|
-
}
|
|
657
|
-
function vr(e) {
|
|
658
|
-
return Ke(Xe(e));
|
|
659
|
-
}
|
|
660
|
-
function yr(e) {
|
|
661
|
-
for (let t of [
|
|
662
|
-
"lowercase",
|
|
663
|
-
"uppercase",
|
|
664
|
-
"capitalize"
|
|
665
|
-
]) e.hasFormat(t) && e.toggleFormat(t);
|
|
666
|
-
}
|
|
667
|
-
function br(e) {
|
|
668
|
-
return N(e.registerCommand(oe, (e) => {
|
|
669
|
-
let t = M();
|
|
670
|
-
return !!C(t) && (t.clear(), !0);
|
|
671
|
-
}, 0), e.registerCommand(te, (e) => {
|
|
672
|
-
let t = M();
|
|
673
|
-
return P(t) ? (t.deleteCharacter(e), !0) : !!C(t) && (t.deleteNodes(), !0);
|
|
674
|
-
}, 0), e.registerCommand(We, (e) => {
|
|
675
|
-
let t = M();
|
|
676
|
-
return !!P(t) && (t.deleteWord(e), !0);
|
|
677
|
-
}, 0), e.registerCommand(ke, (e) => {
|
|
678
|
-
let t = M();
|
|
679
|
-
return !!P(t) && (t.deleteLine(e), !0);
|
|
680
|
-
}, 0), e.registerCommand(be, (t) => {
|
|
681
|
-
let n = M();
|
|
682
|
-
if (typeof t == "string") n !== null && n.insertText(t);
|
|
683
|
-
else {
|
|
684
|
-
if (n === null) return !1;
|
|
685
|
-
let r = t.dataTransfer;
|
|
686
|
-
if (r != null) ht(r, n, e);
|
|
687
|
-
else if (P(n)) {
|
|
688
|
-
let e = t.data;
|
|
689
|
-
return e && n.insertText(e), !0;
|
|
690
|
-
}
|
|
691
|
-
}
|
|
692
|
-
return !0;
|
|
693
|
-
}, 0), e.registerCommand(Ze, () => {
|
|
694
|
-
let e = M();
|
|
695
|
-
return !!P(e) && (e.removeText(), !0);
|
|
696
|
-
}, 0), e.registerCommand(w, (e) => {
|
|
697
|
-
let t = M();
|
|
698
|
-
return !!P(t) && (t.formatText(e), !0);
|
|
699
|
-
}, 0), e.registerCommand(De, (e) => {
|
|
700
|
-
let t = M();
|
|
701
|
-
if (!P(t) && !C(t)) return !1;
|
|
702
|
-
let n = t.getNodes();
|
|
703
|
-
for (let t of n) {
|
|
704
|
-
let n = ve(t, (e) => pe(e) && !e.isInline());
|
|
705
|
-
n !== null && n.setFormat(e);
|
|
706
|
-
}
|
|
707
|
-
return !0;
|
|
708
|
-
}, 0), e.registerCommand(he, (e) => {
|
|
709
|
-
let t = M();
|
|
710
|
-
return !!P(t) && (t.insertLineBreak(e), !0);
|
|
711
|
-
}, 0), e.registerCommand(g, () => {
|
|
712
|
-
let e = M();
|
|
713
|
-
return !!P(e) && (e.insertParagraph(), !0);
|
|
714
|
-
}, 0), e.registerCommand(_e, () => {
|
|
715
|
-
let e = me(), t = M();
|
|
716
|
-
return P(t) && (e.setFormat(t.format), e.setStyle(t.style)), Ee([e]), !0;
|
|
717
|
-
}, 0), e.registerCommand(ae, () => at((e) => {
|
|
718
|
-
let t = e.getIndent();
|
|
719
|
-
e.setIndent(t + 1);
|
|
720
|
-
}), 0), e.registerCommand(E, () => at((e) => {
|
|
721
|
-
let t = e.getIndent();
|
|
722
|
-
t > 0 && e.setIndent(Math.max(0, t - 1));
|
|
723
|
-
}), 0), e.registerCommand(ee, (e) => {
|
|
724
|
-
let t = M();
|
|
725
|
-
if (C(t)) {
|
|
726
|
-
let n = t.getNodes();
|
|
727
|
-
if (n.length > 0) return e.preventDefault(), n[0].selectPrevious(), !0;
|
|
728
|
-
} else if (P(t)) {
|
|
729
|
-
let n = ge(t.focus, !0);
|
|
730
|
-
if (!e.shiftKey && Ke(n) && !n.isIsolated() && !n.isInline()) return n.selectPrevious(), e.preventDefault(), !0;
|
|
731
|
-
}
|
|
732
|
-
return !1;
|
|
733
|
-
}, 0), e.registerCommand(Re, (e) => {
|
|
734
|
-
let t = M();
|
|
735
|
-
if (C(t)) {
|
|
736
|
-
let n = t.getNodes();
|
|
737
|
-
if (n.length > 0) return e.preventDefault(), n[0].selectNext(0, 0), !0;
|
|
738
|
-
} else if (P(t)) {
|
|
739
|
-
if (function(e) {
|
|
740
|
-
let t = e.focus;
|
|
741
|
-
return t.key === "root" && t.offset === A().getChildrenSize();
|
|
742
|
-
}(t)) return e.preventDefault(), !0;
|
|
743
|
-
let n = ge(t.focus, !1);
|
|
744
|
-
if (!e.shiftKey && Ke(n) && !n.isIsolated() && !n.isInline()) return n.selectNext(), e.preventDefault(), !0;
|
|
745
|
-
}
|
|
746
|
-
return !1;
|
|
747
|
-
}, 0), e.registerCommand(ye, (e) => {
|
|
748
|
-
let t = M();
|
|
749
|
-
if (C(t)) {
|
|
750
|
-
let n = t.getNodes();
|
|
751
|
-
if (n.length > 0) return e.preventDefault(), rt(n[0]) ? n[0].selectNext(0, 0) : n[0].selectPrevious(), !0;
|
|
752
|
-
}
|
|
753
|
-
if (!P(t)) return !1;
|
|
754
|
-
if (nt(t, !0)) {
|
|
755
|
-
let n = e.shiftKey;
|
|
756
|
-
return e.preventDefault(), ot(t, n, !0), !0;
|
|
757
|
-
}
|
|
758
|
-
return !1;
|
|
759
|
-
}, 0), e.registerCommand(Te, (e) => {
|
|
760
|
-
let t = M();
|
|
761
|
-
if (C(t)) {
|
|
762
|
-
let n = t.getNodes();
|
|
763
|
-
if (n.length > 0) return e.preventDefault(), rt(n[0]) ? n[0].selectPrevious() : n[0].selectNext(0, 0), !0;
|
|
764
|
-
}
|
|
765
|
-
if (!P(t)) return !1;
|
|
766
|
-
let n = e.shiftKey;
|
|
767
|
-
return !!nt(t, !1) && (e.preventDefault(), ot(t, n, !1), !0);
|
|
768
|
-
}, 0), e.registerCommand(Ge, (t) => {
|
|
769
|
-
if (vr(t.target)) return !1;
|
|
770
|
-
let n = M();
|
|
771
|
-
if (P(n)) {
|
|
772
|
-
if (function(e) {
|
|
773
|
-
if (!e.isCollapsed()) return !1;
|
|
774
|
-
let { anchor: t } = e;
|
|
775
|
-
if (t.offset !== 0) return !1;
|
|
776
|
-
let n = t.getNode();
|
|
777
|
-
if (Ye(n)) return !1;
|
|
778
|
-
let r = it(n);
|
|
779
|
-
return r.getIndent() > 0 && (r.is(n) || n.is(r.getFirstDescendant()));
|
|
780
|
-
}(n)) return t.preventDefault(), e.dispatchCommand(E, void 0);
|
|
781
|
-
if (ar && navigator.language === "ko-KR") return !1;
|
|
782
|
-
} else if (!C(n)) return !1;
|
|
783
|
-
return t.preventDefault(), e.dispatchCommand(te, !0);
|
|
784
|
-
}, 0), e.registerCommand(Ve, (t) => {
|
|
785
|
-
if (vr(t.target)) return !1;
|
|
786
|
-
let n = M();
|
|
787
|
-
return !(!P(n) && !C(n)) && (t.preventDefault(), e.dispatchCommand(te, !1));
|
|
788
|
-
}, 0), e.registerCommand(ue, (t) => {
|
|
789
|
-
let n = M();
|
|
790
|
-
if (!P(n)) return !1;
|
|
791
|
-
if (yr(n), t !== null) {
|
|
792
|
-
if ((ar || sr || lr) && ir) return !1;
|
|
793
|
-
if (t.preventDefault(), t.shiftKey) return e.dispatchCommand(he, !1);
|
|
794
|
-
}
|
|
795
|
-
return e.dispatchCommand(g, void 0);
|
|
796
|
-
}, 0), e.registerCommand(Ne, () => !!P(M()) && (e.blur(), !0), 0), e.registerCommand(Se, (t) => {
|
|
797
|
-
let [, n] = _r(t);
|
|
798
|
-
if (n.length > 0) {
|
|
799
|
-
let r = tr(t.clientX, t.clientY);
|
|
800
|
-
if (r !== null) {
|
|
801
|
-
let { offset: t, node: i } = r, a = Xe(i);
|
|
802
|
-
if (a !== null) {
|
|
803
|
-
let e = S();
|
|
804
|
-
if (j(a)) e.anchor.set(a.getKey(), t, "text"), e.focus.set(a.getKey(), t, "text");
|
|
805
|
-
else {
|
|
806
|
-
let t = a.getParentOrThrow().getKey(), n = a.getIndexWithinParent() + 1;
|
|
807
|
-
e.anchor.set(t, n, "element"), e.focus.set(t, n, "element");
|
|
808
|
-
}
|
|
809
|
-
k(Pe(e));
|
|
810
|
-
}
|
|
811
|
-
e.dispatchCommand(ur, n);
|
|
812
|
-
}
|
|
813
|
-
return t.preventDefault(), !0;
|
|
814
|
-
}
|
|
815
|
-
return mt(t, e);
|
|
816
|
-
}, 0), e.registerCommand(Le, (t) => {
|
|
817
|
-
let [n] = _r(t), r = M();
|
|
818
|
-
return !(n && !P(r)) && (P(r) && !r.isCollapsed() && t.dataTransfer !== null && (gt(t.dataTransfer, ft(r)), yt(t.dataTransfer, e)), !0);
|
|
819
|
-
}, 0), e.registerCommand(Qe, (e) => {
|
|
820
|
-
let [t] = _r(e), n = M();
|
|
821
|
-
if (t && !P(n)) return !1;
|
|
822
|
-
let r = tr(e.clientX, e.clientY);
|
|
823
|
-
return r !== null && Ke(Xe(r.node)) && e.preventDefault(), !0;
|
|
824
|
-
}, 0), e.registerCommand(Ie, () => (xe(), !0), 0), e.registerCommand(re, (t) => (_t(e, I(t, ClipboardEvent) ? t : null), !0), 0), e.registerCommand(Be, (t) => (async function(e, t) {
|
|
825
|
-
await _t(t, I(e, ClipboardEvent) ? e : null), t.update(() => {
|
|
826
|
-
let e = M();
|
|
827
|
-
P(e) ? e.removeText() : C(e) && e.getNodes().forEach((e) => e.remove());
|
|
828
|
-
});
|
|
829
|
-
}(t, e), !0), 0), e.registerCommand(fe, (t) => {
|
|
830
|
-
let [, n, r] = _r(t);
|
|
831
|
-
return n.length > 0 && !r ? (e.dispatchCommand(ur, n), !0) : se(t.target) && Me(t.target) ? !1 : M() !== null && (function(e, t) {
|
|
832
|
-
e.preventDefault(), t.update(() => {
|
|
833
|
-
let n = M(), r = I(e, InputEvent) || I(e, KeyboardEvent) ? null : e.clipboardData;
|
|
834
|
-
r != null && n !== null && ht(r, n, t);
|
|
835
|
-
}, { tag: "paste" });
|
|
836
|
-
}(t, e), !0);
|
|
837
|
-
}, 0), e.registerCommand(ne, (e) => {
|
|
838
|
-
let t = M();
|
|
839
|
-
return P(t) && yr(t), !1;
|
|
840
|
-
}, 0), e.registerCommand(Fe, (e) => {
|
|
841
|
-
let t = M();
|
|
842
|
-
return P(t) && yr(t), !1;
|
|
843
|
-
}, 0));
|
|
844
|
-
}
|
|
845
|
-
D({
|
|
846
|
-
conflictsWith: ["@lexical/plain-text"],
|
|
847
|
-
dependencies: [er],
|
|
848
|
-
name: "@lexical/rich-text",
|
|
849
|
-
nodes: () => [pr, dr],
|
|
850
|
-
register: br
|
|
851
|
-
});
|
|
852
|
-
//#endregion
|
|
853
|
-
//#region node_modules/@lexical/react/LexicalRichTextPlugin.prod.mjs
|
|
854
|
-
function xr(e, ...t) {
|
|
855
|
-
let n = new URL("https://lexical.dev/docs/error"), r = new URLSearchParams();
|
|
856
|
-
r.append("code", e);
|
|
857
|
-
for (let e of t) r.append("v", e);
|
|
858
|
-
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.`);
|
|
859
|
-
}
|
|
860
|
-
var Sr = typeof window < "u" && window.document !== void 0 && window.document.createElement !== void 0 ? W : H;
|
|
861
|
-
function Cr({ editor: e, ErrorBoundary: t }) {
|
|
862
|
-
return function(e, t) {
|
|
863
|
-
let [n, r] = K(() => e.getDecorators());
|
|
864
|
-
return Sr(() => e.registerDecoratorListener((e) => {
|
|
865
|
-
kn(() => {
|
|
866
|
-
r(e);
|
|
867
|
-
});
|
|
868
|
-
}), [e]), H(() => {
|
|
869
|
-
r(e.getDecorators());
|
|
870
|
-
}, [e]), En(() => {
|
|
871
|
-
let r = [], i = Object.keys(n);
|
|
872
|
-
for (let a = 0; a < i.length; a++) {
|
|
873
|
-
let o = i[a], s = q(t, {
|
|
874
|
-
onError: (t) => e._onError(t),
|
|
875
|
-
children: q(bn, {
|
|
876
|
-
fallback: null,
|
|
877
|
-
children: n[o]
|
|
878
|
-
})
|
|
879
|
-
}), c = e.getElementByKey(o);
|
|
880
|
-
c !== null && r.push(On(s, c, o));
|
|
881
|
-
}
|
|
882
|
-
return r;
|
|
883
|
-
}, [
|
|
884
|
-
t,
|
|
885
|
-
n,
|
|
886
|
-
e
|
|
887
|
-
]);
|
|
888
|
-
}(e, t);
|
|
889
|
-
}
|
|
890
|
-
function wr({ editor: e, ErrorBoundary: t }) {
|
|
891
|
-
return function(e) {
|
|
892
|
-
let t = st.maybeFromEditor(e);
|
|
893
|
-
if (t && t.hasExtensionByName(Jn.name)) {
|
|
894
|
-
for (let e of ["@lexical/plain-text", "@lexical/rich-text"]) t.hasExtensionByName(e) && xr(320, e);
|
|
895
|
-
return !0;
|
|
896
|
-
}
|
|
897
|
-
return !1;
|
|
898
|
-
}(e) ? null : q(Cr, {
|
|
899
|
-
editor: e,
|
|
900
|
-
ErrorBoundary: t
|
|
901
|
-
});
|
|
902
|
-
}
|
|
903
|
-
function Tr(e) {
|
|
904
|
-
return e.getEditorState().read(Qn(e.isComposing()));
|
|
905
|
-
}
|
|
906
|
-
function Er({ contentEditable: e, placeholder: t = null, ErrorBoundary: n }) {
|
|
907
|
-
let [r] = h();
|
|
908
|
-
return function(e) {
|
|
909
|
-
Sr(() => N(br(e), $n(e)), [e]);
|
|
910
|
-
}(r), J(Dn, { children: [
|
|
911
|
-
e,
|
|
912
|
-
q(Dr, { content: t }),
|
|
913
|
-
q(wr, {
|
|
914
|
-
editor: r,
|
|
915
|
-
ErrorBoundary: n
|
|
916
|
-
})
|
|
917
|
-
] });
|
|
918
|
-
}
|
|
919
|
-
function Dr({ content: e }) {
|
|
920
|
-
let [t] = h(), n = function(e) {
|
|
921
|
-
let [t, n] = K(() => Tr(e));
|
|
922
|
-
return Sr(() => {
|
|
923
|
-
function t() {
|
|
924
|
-
n(Tr(e));
|
|
925
|
-
}
|
|
926
|
-
return t(), N(e.registerUpdateListener(() => {
|
|
927
|
-
t();
|
|
928
|
-
}), e.registerEditableListener(() => {
|
|
929
|
-
t();
|
|
930
|
-
}));
|
|
931
|
-
}, [e]), t;
|
|
932
|
-
}(t), r = et();
|
|
933
|
-
return n ? typeof e == "function" ? e(r) : e : null;
|
|
934
|
-
}
|
|
935
|
-
//#endregion
|
|
936
|
-
//#region node_modules/@lexical/react/LexicalContentEditable.prod.mjs
|
|
937
|
-
var Or = typeof window < "u" && window.document !== void 0 && window.document.createElement !== void 0 ? W : H;
|
|
938
|
-
function kr({ editor: e, ariaActiveDescendant: t, ariaAutoComplete: n, ariaControls: r, ariaDescribedBy: i, ariaErrorMessage: a, ariaExpanded: o, ariaInvalid: s, ariaLabel: c, ariaLabelledBy: l, ariaMultiline: u, ariaOwns: d, ariaRequired: f, autoCapitalize: p, className: m, id: h, role: g = "textbox", spellCheck: _ = !0, style: v, tabIndex: y, "data-testid": b, ...x }, S) {
|
|
939
|
-
let [C, w] = K(e.isEditable()), T = wn((t) => {
|
|
940
|
-
t && t.ownerDocument && t.ownerDocument.defaultView ? e.setRootElement(t) : e.setRootElement(null);
|
|
941
|
-
}, [e]), E = En(() => function(...e) {
|
|
942
|
-
return (t) => {
|
|
943
|
-
for (let n of e) typeof n == "function" ? n(t) : n != null && (n.current = t);
|
|
944
|
-
};
|
|
945
|
-
}(S, T), [T, S]);
|
|
946
|
-
return Or(() => (w(e.isEditable()), e.registerEditableListener((e) => {
|
|
947
|
-
w(e);
|
|
948
|
-
})), [e]), q("div", {
|
|
949
|
-
"aria-activedescendant": C ? t : void 0,
|
|
950
|
-
"aria-autocomplete": C ? n : "none",
|
|
951
|
-
"aria-controls": C ? r : void 0,
|
|
952
|
-
"aria-describedby": i,
|
|
953
|
-
...a == null ? {} : { "aria-errormessage": a },
|
|
954
|
-
"aria-expanded": C && g === "combobox" ? !!o : void 0,
|
|
955
|
-
...s == null ? {} : { "aria-invalid": s },
|
|
956
|
-
"aria-label": c,
|
|
957
|
-
"aria-labelledby": l,
|
|
958
|
-
"aria-multiline": u,
|
|
959
|
-
"aria-owns": C ? d : void 0,
|
|
960
|
-
"aria-readonly": !C || void 0,
|
|
961
|
-
"aria-required": f,
|
|
962
|
-
autoCapitalize: p,
|
|
963
|
-
className: m,
|
|
964
|
-
contentEditable: C,
|
|
965
|
-
"data-testid": b,
|
|
966
|
-
id: h,
|
|
967
|
-
ref: E,
|
|
968
|
-
role: g,
|
|
969
|
-
spellCheck: _,
|
|
970
|
-
style: v,
|
|
971
|
-
tabIndex: y,
|
|
972
|
-
...x
|
|
973
|
-
});
|
|
974
|
-
}
|
|
975
|
-
var Ar = V(kr);
|
|
976
|
-
function jr(e) {
|
|
977
|
-
return e.getEditorState().read(Qn(e.isComposing()));
|
|
978
|
-
}
|
|
979
|
-
var Mr = V(Nr);
|
|
980
|
-
function Nr(e, t) {
|
|
981
|
-
let { placeholder: n, ...r } = e, [i] = h();
|
|
982
|
-
return J(Dn, { children: [q(Ar, {
|
|
983
|
-
editor: i,
|
|
984
|
-
...r,
|
|
985
|
-
ref: t
|
|
986
|
-
}), n != null && q(Pr, {
|
|
987
|
-
editor: i,
|
|
988
|
-
content: n
|
|
989
|
-
})] });
|
|
990
|
-
}
|
|
991
|
-
function Pr({ content: e, editor: t }) {
|
|
992
|
-
let n = function(e) {
|
|
993
|
-
let [t, n] = K(() => jr(e));
|
|
994
|
-
return Or(() => {
|
|
995
|
-
function t() {
|
|
996
|
-
n(jr(e));
|
|
997
|
-
}
|
|
998
|
-
return t(), N(e.registerUpdateListener(() => {
|
|
999
|
-
t();
|
|
1000
|
-
}), e.registerEditableListener(() => {
|
|
1001
|
-
t();
|
|
1002
|
-
}));
|
|
1003
|
-
}, [e]), t;
|
|
1004
|
-
}(t), [r, i] = K(t.isEditable());
|
|
1005
|
-
if (W(() => (i(t.isEditable()), t.registerEditableListener((e) => {
|
|
1006
|
-
i(e);
|
|
1007
|
-
})), [t]), !n) return null;
|
|
1008
|
-
let a = null;
|
|
1009
|
-
return typeof e == "function" ? a = e(r) : e !== null && (a = e), a === null ? null : q("div", {
|
|
1010
|
-
"aria-hidden": !0,
|
|
1011
|
-
children: a
|
|
1012
|
-
});
|
|
1013
|
-
}
|
|
1014
|
-
//#endregion
|
|
1015
|
-
//#region node_modules/react-error-boundary/dist/react-error-boundary.js
|
|
1016
|
-
var Fr = xn(null), Ir = {
|
|
1017
|
-
didCatch: !1,
|
|
1018
|
-
error: null
|
|
1019
|
-
}, Lr = class extends yn {
|
|
1020
|
-
constructor(e) {
|
|
1021
|
-
super(e), this.resetErrorBoundary = this.resetErrorBoundary.bind(this), this.state = Ir;
|
|
1022
|
-
}
|
|
1023
|
-
static getDerivedStateFromError(e) {
|
|
1024
|
-
return {
|
|
1025
|
-
didCatch: !0,
|
|
1026
|
-
error: e
|
|
1027
|
-
};
|
|
1028
|
-
}
|
|
1029
|
-
resetErrorBoundary(...e) {
|
|
1030
|
-
let { error: t } = this.state;
|
|
1031
|
-
t !== null && (this.props.onReset?.({
|
|
1032
|
-
args: e,
|
|
1033
|
-
reason: "imperative-api"
|
|
1034
|
-
}), this.setState(Ir));
|
|
1035
|
-
}
|
|
1036
|
-
componentDidCatch(e, t) {
|
|
1037
|
-
this.props.onError?.(e, t);
|
|
1038
|
-
}
|
|
1039
|
-
componentDidUpdate(e, t) {
|
|
1040
|
-
let { didCatch: n } = this.state, { resetKeys: r } = this.props;
|
|
1041
|
-
n && t.error !== null && Rr(e.resetKeys, r) && (this.props.onReset?.({
|
|
1042
|
-
next: r,
|
|
1043
|
-
prev: e.resetKeys,
|
|
1044
|
-
reason: "keys"
|
|
1045
|
-
}), this.setState(Ir));
|
|
1046
|
-
}
|
|
1047
|
-
render() {
|
|
1048
|
-
let { children: e, fallbackRender: t, FallbackComponent: n, fallback: r } = this.props, { didCatch: i, error: a } = this.state, o = e;
|
|
1049
|
-
if (i) {
|
|
1050
|
-
let e = {
|
|
1051
|
-
error: a,
|
|
1052
|
-
resetErrorBoundary: this.resetErrorBoundary
|
|
1053
|
-
};
|
|
1054
|
-
if (typeof t == "function") o = t(e);
|
|
1055
|
-
else if (n) o = Sn(n, e);
|
|
1056
|
-
else if (r !== void 0) o = r;
|
|
1057
|
-
else throw a;
|
|
1058
|
-
}
|
|
1059
|
-
return Sn(Fr.Provider, { value: {
|
|
1060
|
-
didCatch: i,
|
|
1061
|
-
error: a,
|
|
1062
|
-
resetErrorBoundary: this.resetErrorBoundary
|
|
1063
|
-
} }, o);
|
|
1064
|
-
}
|
|
1065
|
-
};
|
|
1066
|
-
function Rr(e = [], t = []) {
|
|
1067
|
-
return e.length !== t.length || e.some((e, n) => !Object.is(e, t[n]));
|
|
1068
|
-
}
|
|
1069
|
-
//#endregion
|
|
1070
|
-
//#region node_modules/@lexical/react/LexicalErrorBoundary.prod.mjs
|
|
1071
|
-
function zr({ children: e, onError: t }) {
|
|
1072
|
-
return q(Lr, {
|
|
1073
|
-
fallback: q("div", {
|
|
1074
|
-
style: {
|
|
1075
|
-
border: "1px solid #f00",
|
|
1076
|
-
color: "#f00",
|
|
1077
|
-
padding: "8px"
|
|
1078
|
-
},
|
|
1079
|
-
children: "An error was thrown."
|
|
1080
|
-
}),
|
|
1081
|
-
onError: t,
|
|
1082
|
-
children: e
|
|
1083
|
-
});
|
|
1084
|
-
}
|
|
1085
|
-
//#endregion
|
|
1086
|
-
//#region node_modules/@lexical/react/LexicalOnChangePlugin.prod.mjs
|
|
1087
|
-
var Br = typeof window < "u" && window.document !== void 0 && window.document.createElement !== void 0 ? W : H;
|
|
1088
|
-
function Vr({ ignoreHistoryMergeTagChange: e = !0, ignoreSelectionChange: t = !1, onChange: n }) {
|
|
1089
|
-
let [r] = h();
|
|
1090
|
-
return Br(() => {
|
|
1091
|
-
if (n) return r.registerUpdateListener(({ editorState: i, dirtyElements: a, dirtyLeaves: o, prevEditorState: s, tags: c }) => {
|
|
1092
|
-
t && a.size === 0 && o.size === 0 || e && c.has("history-merge") || s.isEmpty() || n(i, r, c);
|
|
1093
|
-
});
|
|
1094
|
-
}, [
|
|
1095
|
-
r,
|
|
1096
|
-
e,
|
|
1097
|
-
t,
|
|
1098
|
-
n
|
|
1099
|
-
]), null;
|
|
1100
|
-
}
|
|
1101
|
-
//#endregion
|
|
1102
|
-
//#region node_modules/@lexical/react/LexicalListPlugin.prod.mjs
|
|
1103
|
-
function Hr({ hasStrictIndent: e = !1, shouldPreserveNumbering: t = !1 }) {
|
|
1104
|
-
let [n] = h();
|
|
1105
|
-
return H(() => {
|
|
1106
|
-
if (!n.hasNodes([bt, St])) throw Error("ListPlugin: ListNode and/or ListItemNode not registered on editor");
|
|
1107
|
-
}, [n]), H(() => N(xt(n, { restoreNumbering: t }), e ? Ct(n) : () => {}), [
|
|
1108
|
-
n,
|
|
1109
|
-
e,
|
|
1110
|
-
t
|
|
1111
|
-
]), function(e) {
|
|
1112
|
-
H(() => xt(e), [e]);
|
|
1113
|
-
}(n), null;
|
|
1114
|
-
}
|
|
1115
|
-
//#endregion
|
|
1116
|
-
//#region node_modules/@lexical/react/LexicalLinkPlugin.prod.mjs
|
|
1117
|
-
function Ur({ validateUrl: e, attributes: t }) {
|
|
1118
|
-
let [n] = h();
|
|
1119
|
-
return H(() => {
|
|
1120
|
-
if (!n.hasNodes([R])) throw Error("LinkPlugin: LinkNode not registered on editor");
|
|
1121
|
-
}), H(() => Ot(n, L({
|
|
1122
|
-
attributes: t,
|
|
1123
|
-
validateUrl: e
|
|
1124
|
-
})), [
|
|
1125
|
-
n,
|
|
1126
|
-
e,
|
|
1127
|
-
t
|
|
1128
|
-
]), null;
|
|
1129
|
-
}
|
|
1130
|
-
//#endregion
|
|
1131
|
-
//#region node_modules/@lexical/react/LexicalClickableLinkPlugin.prod.mjs
|
|
1132
|
-
function Wr({ newTab: e = !0, disabled: t = !1 }) {
|
|
1133
|
-
let [n] = h();
|
|
1134
|
-
return H(() => wt(n, L({
|
|
1135
|
-
disabled: t,
|
|
1136
|
-
newTab: e
|
|
1137
|
-
})), [
|
|
1138
|
-
n,
|
|
1139
|
-
e,
|
|
1140
|
-
t
|
|
1141
|
-
]), null;
|
|
1142
|
-
}
|
|
1143
|
-
//#endregion
|
|
1144
|
-
//#region node_modules/@lexical/history/LexicalHistory.prod.mjs
|
|
1145
|
-
function Gr(e, t, n, r, i) {
|
|
1146
|
-
if (e === null || n.size === 0 && r.size === 0 && !i) return 0;
|
|
1147
|
-
let a = t._selection, o = e._selection;
|
|
1148
|
-
if (i) return 1;
|
|
1149
|
-
if (!(P(a) && P(o) && o.isCollapsed() && a.isCollapsed())) return 0;
|
|
1150
|
-
let s = function(e, t, n) {
|
|
1151
|
-
let r = e._nodeMap, i = [];
|
|
1152
|
-
for (let e of t) {
|
|
1153
|
-
let t = r.get(e);
|
|
1154
|
-
t !== void 0 && i.push(t);
|
|
1155
|
-
}
|
|
1156
|
-
for (let [e, t] of n) {
|
|
1157
|
-
if (!t) continue;
|
|
1158
|
-
let n = r.get(e);
|
|
1159
|
-
n === void 0 || Ye(n) || i.push(n);
|
|
1160
|
-
}
|
|
1161
|
-
return i;
|
|
1162
|
-
}(t, n, r);
|
|
1163
|
-
if (s.length === 0) return 0;
|
|
1164
|
-
if (s.length > 1) {
|
|
1165
|
-
let n = t._nodeMap, r = n.get(a.anchor.key), i = n.get(o.anchor.key);
|
|
1166
|
-
return r && i && !e._nodeMap.has(r.__key) && j(r) && r.__text.length === 1 && a.anchor.offset === 1 ? 2 : 0;
|
|
1167
|
-
}
|
|
1168
|
-
let c = s[0], l = e._nodeMap.get(c.__key);
|
|
1169
|
-
if (!j(l) || !j(c) || l.__mode !== c.__mode) return 0;
|
|
1170
|
-
let u = l.__text, d = c.__text;
|
|
1171
|
-
if (u === d) return 0;
|
|
1172
|
-
let f = a.anchor, p = o.anchor;
|
|
1173
|
-
if (f.key !== p.key || f.type !== "text") return 0;
|
|
1174
|
-
let m = f.offset, h = p.offset, g = d.length - u.length;
|
|
1175
|
-
return g === 1 && h === m - 1 ? 2 : g === -1 && h === m + 1 ? 3 : g === -1 && h === m ? 4 : 0;
|
|
1176
|
-
}
|
|
1177
|
-
function Kr(e, t, n) {
|
|
1178
|
-
let r = n(), i = 0, a = r, o = 0, s = null;
|
|
1179
|
-
return (c, l, u, d, f, p) => {
|
|
1180
|
-
let m = n();
|
|
1181
|
-
if (p.has("composition-start") && (a = r, o = i, s = c), p.has("historic")) return i = 0, r = m, 2;
|
|
1182
|
-
p.has("composition-end") && s && (r = a, i = o, c = s);
|
|
1183
|
-
let h = Gr(c, l, d, f, e.isComposing()), g = (() => {
|
|
1184
|
-
let n = u === null || u.editor === e, a = p.has(ze);
|
|
1185
|
-
if (!a && n && p.has("history-merge")) return 0;
|
|
1186
|
-
if (h === 1) return 2;
|
|
1187
|
-
if (c === null) return 1;
|
|
1188
|
-
let o = l._selection;
|
|
1189
|
-
if (!(d.size > 0 || f.size > 0)) return o === null ? 2 : 0;
|
|
1190
|
-
let s = typeof t == "number" ? t : t.peek();
|
|
1191
|
-
return !1 === a && h !== 0 && h === i && m < r + s && n || d.size === 1 && function(e, t, n) {
|
|
1192
|
-
let r = t._nodeMap.get(e), i = n._nodeMap.get(e), a = t._selection, o = n._selection;
|
|
1193
|
-
return !(P(a) && P(o) && a.anchor.type === "element" && a.focus.type === "element" && o.anchor.type === "text" && o.focus.type === "text" || !j(r) || !j(i) || r.__parent !== i.__parent) && JSON.stringify(t.read(() => r.exportJSON())) === JSON.stringify(n.read(() => i.exportJSON()));
|
|
1194
|
-
}(Array.from(d)[0], c, l) ? 0 : 1;
|
|
1195
|
-
})();
|
|
1196
|
-
return r = m, i = h, g;
|
|
1197
|
-
};
|
|
1198
|
-
}
|
|
1199
|
-
function qr(e) {
|
|
1200
|
-
e.undoStack = [], e.redoStack = [], e.current = null;
|
|
1201
|
-
}
|
|
1202
|
-
function Jr(e, t, n, r = Date.now) {
|
|
1203
|
-
let i = Kr(e, n, r);
|
|
1204
|
-
return N(e.registerCommand(Oe, () => (function(e, t) {
|
|
1205
|
-
let n = t.redoStack, r = t.undoStack;
|
|
1206
|
-
if (r.length !== 0) {
|
|
1207
|
-
let i = t.current, a = r.pop();
|
|
1208
|
-
i !== null && (n.push(i), e.dispatchCommand(b, !0)), r.length === 0 && e.dispatchCommand(x, !1), t.current = a || null, a && a.editor.setEditorState(a.editorState, { tag: "historic" });
|
|
1209
|
-
}
|
|
1210
|
-
}(e, t), !0), 0), e.registerCommand(Ae, () => (function(e, t) {
|
|
1211
|
-
let n = t.redoStack, r = t.undoStack;
|
|
1212
|
-
if (n.length !== 0) {
|
|
1213
|
-
let i = t.current;
|
|
1214
|
-
i !== null && (r.push(i), e.dispatchCommand(x, !0));
|
|
1215
|
-
let a = n.pop();
|
|
1216
|
-
n.length === 0 && e.dispatchCommand(b, !1), t.current = a || null, a && a.editor.setEditorState(a.editorState, { tag: "historic" });
|
|
1217
|
-
}
|
|
1218
|
-
}(e, t), !0), 0), e.registerCommand(Ce, () => (qr(t), !1), 0), e.registerCommand(ce, () => (qr(t), e.dispatchCommand(b, !1), e.dispatchCommand(x, !1), !0), 0), e.registerUpdateListener(({ editorState: n, prevEditorState: r, dirtyLeaves: a, dirtyElements: o, tags: s }) => {
|
|
1219
|
-
let c = t.current, l = t.redoStack, u = t.undoStack, d = c === null ? null : c.editorState;
|
|
1220
|
-
if (c !== null && n === d) return;
|
|
1221
|
-
let f = i(r, n, c, a, o, s);
|
|
1222
|
-
if (f === 1) l.length !== 0 && (t.redoStack = [], e.dispatchCommand(b, !1)), c !== null && (u.push({ ...c }), e.dispatchCommand(x, !0));
|
|
1223
|
-
else if (f === 2) return;
|
|
1224
|
-
t.current = {
|
|
1225
|
-
editor: e,
|
|
1226
|
-
editorState: n
|
|
1227
|
-
};
|
|
1228
|
-
}));
|
|
1229
|
-
}
|
|
1230
|
-
function Yr() {
|
|
1231
|
-
return {
|
|
1232
|
-
current: null,
|
|
1233
|
-
redoStack: [],
|
|
1234
|
-
undoStack: []
|
|
1235
|
-
};
|
|
1236
|
-
}
|
|
1237
|
-
var Xr = D({
|
|
1238
|
-
build: (e, { delay: t, createInitialHistoryState: n, disabled: r, now: i }) => L({
|
|
1239
|
-
delay: t,
|
|
1240
|
-
disabled: r,
|
|
1241
|
-
historyState: n(e),
|
|
1242
|
-
now: i
|
|
1243
|
-
}),
|
|
1244
|
-
config: ie({
|
|
1245
|
-
createInitialHistoryState: Yr,
|
|
1246
|
-
delay: 300,
|
|
1247
|
-
disabled: typeof window > "u",
|
|
1248
|
-
now: Date.now
|
|
1249
|
-
}),
|
|
1250
|
-
name: "@lexical/history/History",
|
|
1251
|
-
register: (e, t, n) => {
|
|
1252
|
-
let r = n.getOutput();
|
|
1253
|
-
return ct(() => r.disabled.value ? void 0 : Jr(e, r.historyState.value, r.delay, () => r.now.peek()()));
|
|
1254
|
-
}
|
|
1255
|
-
});
|
|
1256
|
-
D({
|
|
1257
|
-
build: (e, { disabled: t, parentEditor: n }) => L({
|
|
1258
|
-
disabled: t,
|
|
1259
|
-
parentEditor: n || e._parentEditor
|
|
1260
|
-
}),
|
|
1261
|
-
config: ie({
|
|
1262
|
-
disabled: !1,
|
|
1263
|
-
parentEditor: null
|
|
1264
|
-
}),
|
|
1265
|
-
dependencies: [de(Xr, { disabled: !0 })],
|
|
1266
|
-
name: "@lexical/history/SharedHistory",
|
|
1267
|
-
register: (e, t, n) => ct(() => {
|
|
1268
|
-
let { disabled: e, parentEditor: t } = n.getOutput();
|
|
1269
|
-
if (!e.value) {
|
|
1270
|
-
let { output: e } = n.getDependency(Xr), r = function(e) {
|
|
1271
|
-
return e ? lt(e, Xr.name) : null;
|
|
1272
|
-
}(t.value);
|
|
1273
|
-
if (!r) return;
|
|
1274
|
-
let i = r.output;
|
|
1275
|
-
ut(() => {
|
|
1276
|
-
e.delay.value = i.delay.value, e.historyState.value = i.historyState.value, e.now.value = i.now.value, e.disabled.value = i.disabled.value;
|
|
1277
|
-
});
|
|
1278
|
-
}
|
|
1279
|
-
})
|
|
1280
|
-
});
|
|
1281
|
-
//#endregion
|
|
1282
|
-
//#region node_modules/@lexical/react/LexicalHistoryPlugin.prod.mjs
|
|
1283
|
-
function Zr({ delay: e, externalHistoryState: t }) {
|
|
1284
|
-
let [n] = h();
|
|
1285
|
-
return function(e, t, n = 1e3) {
|
|
1286
|
-
let r = En(() => t || Yr(), [t]);
|
|
1287
|
-
H(() => Jr(e, r, n), [
|
|
1288
|
-
n,
|
|
1289
|
-
e,
|
|
1290
|
-
r
|
|
1291
|
-
]);
|
|
1292
|
-
}(n, t, e), null;
|
|
1293
|
-
}
|
|
1294
|
-
//#endregion
|
|
1295
|
-
//#region node_modules/@lexical/react/LexicalTablePlugin.prod.mjs
|
|
1296
|
-
function Qr({ hasCellMerge: e = !0, hasCellBackgroundColor: t = !0, hasTabHandler: n = !0, hasHorizontalScroll: r = !1, hasNestedTables: i = !1 }) {
|
|
1297
|
-
let [a] = h();
|
|
1298
|
-
H(() => {
|
|
1299
|
-
kt(a) !== r && (Pt(a, r), a.registerNodeTransform(Rt, () => {})());
|
|
1300
|
-
}, [a, r]);
|
|
1301
|
-
let o = function(e) {
|
|
1302
|
-
let [t] = K(() => dt(e));
|
|
1303
|
-
return t.peek() !== e && (t.value = e), t;
|
|
1304
|
-
}(i);
|
|
1305
|
-
return H(() => Lt(a, { hasNestedTables: o }), [a, o]), H(() => Ft(a, n), [a, n]), H(() => {
|
|
1306
|
-
if (!e) return At(a);
|
|
1307
|
-
}, [a, e]), H(() => {
|
|
1308
|
-
if (!t) return a.registerNodeTransform(Nt, (e) => {
|
|
1309
|
-
e.getBackgroundColor() !== null && e.setBackgroundColor(null);
|
|
1310
|
-
});
|
|
1311
|
-
}, [
|
|
1312
|
-
a,
|
|
1313
|
-
t,
|
|
1314
|
-
e
|
|
1315
|
-
]), null;
|
|
1316
|
-
}
|
|
1317
|
-
//#endregion
|
|
1318
|
-
//#region node_modules/@lexical/react/LexicalEditorRefPlugin.prod.mjs
|
|
1319
|
-
function $r({ editorRef: e }) {
|
|
1320
|
-
let [t] = h();
|
|
1321
|
-
return vn.useEffect(() => {
|
|
1322
|
-
typeof e == "function" ? e(t) : typeof e == "object" && e && (e.current = t);
|
|
1323
|
-
}, [t]), null;
|
|
1324
|
-
}
|
|
1325
|
-
//#endregion
|
|
1326
|
-
//#region src/components/RteEditor/Plugins/ToolbarPlugin/ToolbarPlugin.tsx
|
|
1327
|
-
var ei = ({ editorScrollPosition: e, onCatalogueLinkSearch: t, catalogueSearchResponse: n }) => {
|
|
1328
|
-
let [r] = h(), [i, a] = K(null), o = G(null), s = wn(() => {
|
|
1329
|
-
let e = M();
|
|
1330
|
-
if (!P(e)) {
|
|
1331
|
-
a(null);
|
|
1332
|
-
return;
|
|
1333
|
-
}
|
|
1334
|
-
let t = Mt(e.anchor.getNode());
|
|
1335
|
-
if (!t) {
|
|
1336
|
-
a(null);
|
|
1337
|
-
return;
|
|
1338
|
-
}
|
|
1339
|
-
let n = r.getElementByKey(t.getKey());
|
|
1340
|
-
if (!n) return;
|
|
1341
|
-
let i = n.getBoundingClientRect();
|
|
1342
|
-
a({
|
|
1343
|
-
xPos: i.right,
|
|
1344
|
-
yPos: i.bottom,
|
|
1345
|
-
height: i.height
|
|
1346
|
-
});
|
|
1347
|
-
}, [r]), c = (e) => {
|
|
1348
|
-
o.current?.mutateTable(e);
|
|
1349
|
-
}, l = wn(() => {
|
|
1350
|
-
r.update(() => {
|
|
1351
|
-
let e = M();
|
|
1352
|
-
P(e) && Mt(e.anchor.getNode()) && (k(null), a(null));
|
|
1353
|
-
});
|
|
1354
|
-
}, [r]);
|
|
1355
|
-
return H(() => N(r.registerUpdateListener(({ editorState: e }) => {
|
|
1356
|
-
e.read(s);
|
|
1357
|
-
}), r.registerCommand($e, () => (Qt(l), !1), 1), r.registerRootListener((e, t) => {
|
|
1358
|
-
t && Zt(l), e && Qt(l);
|
|
1359
|
-
})), [
|
|
1360
|
-
r,
|
|
1361
|
-
s,
|
|
1362
|
-
l
|
|
1363
|
-
]), /* @__PURE__ */ J("div", {
|
|
1364
|
-
className: z.editor__toolbar,
|
|
1365
|
-
children: [
|
|
1366
|
-
/* @__PURE__ */ q(nn, {}),
|
|
1367
|
-
/* @__PURE__ */ q(rn, {}),
|
|
1368
|
-
/* @__PURE__ */ q(si, {
|
|
1369
|
-
isActive: !!i,
|
|
1370
|
-
ref: o
|
|
1371
|
-
}),
|
|
1372
|
-
i && /* @__PURE__ */ q(hn, {
|
|
1373
|
-
position: i,
|
|
1374
|
-
parentScrollPosition: e,
|
|
1375
|
-
onAction: c
|
|
1376
|
-
}),
|
|
1377
|
-
/* @__PURE__ */ q(ri, { parentScrollPosition: e }),
|
|
1378
|
-
t && n && /* @__PURE__ */ q(tn, {
|
|
1379
|
-
parentScrollPosition: e,
|
|
1380
|
-
onSearch: t,
|
|
1381
|
-
searchResponse: n
|
|
1382
|
-
}),
|
|
1383
|
-
/* @__PURE__ */ q(ii, {})
|
|
1384
|
-
]
|
|
1385
|
-
});
|
|
1386
|
-
}, $ = {
|
|
1387
|
-
linkform: "_linkform_1anda_1",
|
|
1388
|
-
"linkform__input-field": "_linkform__input-field_1anda_5",
|
|
1389
|
-
linkform__footer: "_linkform__footer_1anda_12",
|
|
1390
|
-
"linkform__input-url-wrapper": "_linkform__input-url-wrapper_1anda_19",
|
|
1391
|
-
"linkform__open-url-button": "_linkform__open-url-button_1anda_31",
|
|
1392
|
-
"editor__toolbar-button": "_editor__toolbar-button_1anda_55"
|
|
1393
|
-
}, ti = V(({ onCloseHandler: e, onSaveHandler: r, isLink: i = {
|
|
1394
|
-
active: !1,
|
|
1395
|
-
url: "",
|
|
1396
|
-
linktext: ""
|
|
1397
|
-
} }, s) => {
|
|
1398
|
-
let c = B(), [d, f] = K(i.url || ""), [p, m] = K(i.linktext || ""), [h, g] = K(!1), [_, v] = K(null), [y, b] = K(null), x = G(null), S = `link_${U()}`, C = `text_${U()}`, w = () => {
|
|
1399
|
-
window.open(Vt(d), "_blank");
|
|
1400
|
-
}, T = (e) => {
|
|
1401
|
-
f(e.target.value);
|
|
1402
|
-
}, E = (e) => {
|
|
1403
|
-
m(e.target.value);
|
|
1404
|
-
}, ee = (e) => Bt(e) === !1 || e.trim() === "" ? (v(c.errortext.urlNotValid), !1) : (v(null), !0), D = (e) => e.trim() === "" ? (b(c.errortext.linkTextNotValid), !1) : (b(null), !0), O = () => {
|
|
1405
|
-
!ee(d) || h && !D(p) || (r(d, p), ne());
|
|
1406
|
-
}, te = () => {
|
|
1407
|
-
e(), ne();
|
|
1408
|
-
}, ne = () => {
|
|
1409
|
-
f(""), g(!1), v(null), b(null);
|
|
1410
|
-
}, k = (e, t) => {
|
|
1411
|
-
f(e), !t && !e && g(!0);
|
|
1412
|
-
}, re = () => {
|
|
1413
|
-
x.current && x.current.focus();
|
|
1414
|
-
};
|
|
1415
|
-
return Tn(s, () => ({
|
|
1416
|
-
clearForm: ne,
|
|
1417
|
-
focusFirstField: re,
|
|
1418
|
-
setDefaults: k
|
|
1419
|
-
})), /* @__PURE__ */ J("div", {
|
|
1420
|
-
className: $.linkform,
|
|
1421
|
-
children: [
|
|
1422
|
-
/* @__PURE__ */ J(l, {
|
|
1423
|
-
className: $["linkform__input-field"],
|
|
1424
|
-
children: [
|
|
1425
|
-
/* @__PURE__ */ q(a, {
|
|
1426
|
-
htmlFor: S,
|
|
1427
|
-
children: c.links.linkLabel
|
|
1428
|
-
}),
|
|
1429
|
-
/* @__PURE__ */ J("div", {
|
|
1430
|
-
className: $["linkform__input-url-wrapper"],
|
|
1431
|
-
children: [/* @__PURE__ */ q(u, {
|
|
1432
|
-
id: S,
|
|
1433
|
-
placeholder: c.links.linkPlaceholder,
|
|
1434
|
-
value: d,
|
|
1435
|
-
onChange: (e) => T(e),
|
|
1436
|
-
onFocus: () => v(null),
|
|
1437
|
-
ref: x,
|
|
1438
|
-
"aria-label": c.aria.labels.linkField
|
|
1439
|
-
}), d && /* @__PURE__ */ q("button", {
|
|
1440
|
-
type: "button",
|
|
1441
|
-
onClick: w,
|
|
1442
|
-
className: $["linkform__open-url-button"],
|
|
1443
|
-
children: /* @__PURE__ */ q(t, {
|
|
1444
|
-
name: "ArrowTopRightOnSquare",
|
|
1445
|
-
size: 20
|
|
1446
|
-
})
|
|
1447
|
-
})]
|
|
1448
|
-
}),
|
|
1449
|
-
_ && /* @__PURE__ */ q(o, {
|
|
1450
|
-
level: "error",
|
|
1451
|
-
feedback: _
|
|
1452
|
-
})
|
|
1453
|
-
]
|
|
1454
|
-
}),
|
|
1455
|
-
h && /* @__PURE__ */ J(l, {
|
|
1456
|
-
className: $["linkform__input-field"],
|
|
1457
|
-
children: [
|
|
1458
|
-
/* @__PURE__ */ q(a, {
|
|
1459
|
-
htmlFor: C,
|
|
1460
|
-
children: c.links.linkText
|
|
1461
|
-
}),
|
|
1462
|
-
/* @__PURE__ */ q(u, {
|
|
1463
|
-
id: C,
|
|
1464
|
-
value: p,
|
|
1465
|
-
onChange: (e) => E(e),
|
|
1466
|
-
onFocus: () => b(null),
|
|
1467
|
-
"aria-label": c.aria.labels.linkTextfield
|
|
1468
|
-
}),
|
|
1469
|
-
y && /* @__PURE__ */ q(o, {
|
|
1470
|
-
level: "error",
|
|
1471
|
-
feedback: y
|
|
1472
|
-
})
|
|
1473
|
-
]
|
|
1474
|
-
}),
|
|
1475
|
-
/* @__PURE__ */ J("div", {
|
|
1476
|
-
className: $.linkform__footer,
|
|
1477
|
-
children: [/* @__PURE__ */ q(n, {
|
|
1478
|
-
variant: "secondary",
|
|
1479
|
-
onClick: te,
|
|
1480
|
-
"aria-label": c.common.cancel,
|
|
1481
|
-
type: "button",
|
|
1482
|
-
children: c.common.cancel
|
|
1483
|
-
}), /* @__PURE__ */ q(n, {
|
|
1484
|
-
variant: "primary",
|
|
1485
|
-
onClick: O,
|
|
1486
|
-
"aria-label": c.aria.labels.linkOkButton,
|
|
1487
|
-
type: "button",
|
|
1488
|
-
children: c.links.addLink
|
|
1489
|
-
})]
|
|
1490
|
-
})
|
|
1491
|
-
]
|
|
1492
|
-
});
|
|
1493
|
-
}), ni = 200, ri = ({ parentScrollPosition: n }) => {
|
|
1494
|
-
let r = B(), [i] = h(), { flyout: a, showFlyout: o, hideFlyout: s, isVisible: c } = on(), l = G(void 0), u = G(!1), d = G(""), f = G(""), [p, m] = K({
|
|
1495
|
-
active: !1,
|
|
1496
|
-
url: "",
|
|
1497
|
-
linktext: ""
|
|
1498
|
-
}), g = G(c), _ = G(null), v = G(null), y = G(void 0), b = () => {
|
|
1499
|
-
i.update(() => {
|
|
1500
|
-
_.current = M();
|
|
1501
|
-
});
|
|
1502
|
-
}, x = () => {
|
|
1503
|
-
i.update(() => {
|
|
1504
|
-
_.current && k(_.current);
|
|
1505
|
-
});
|
|
1506
|
-
}, S = (e, t) => {
|
|
1507
|
-
o({
|
|
1508
|
-
position: t,
|
|
1509
|
-
children: /* @__PURE__ */ q(an, {
|
|
1510
|
-
url: e,
|
|
1511
|
-
onSave: (e) => E(e, ""),
|
|
1512
|
-
onDelete: () => ee(),
|
|
1513
|
-
onClose: C,
|
|
1514
|
-
ref: y
|
|
1515
|
-
})
|
|
1516
|
-
});
|
|
1517
|
-
}, C = () => {
|
|
1518
|
-
y.current?.clearForm(), s(), x();
|
|
1519
|
-
}, w = () => {
|
|
1520
|
-
let e = v.current?.getBoundingClientRect();
|
|
1521
|
-
!u.current && e && (b(), o({
|
|
1522
|
-
position: {
|
|
1523
|
-
top: e.bottom,
|
|
1524
|
-
left: e.left
|
|
1525
|
-
},
|
|
1526
|
-
...D
|
|
1527
|
-
}), setTimeout(() => l.current?.setDefaults("", f.current), 0));
|
|
1528
|
-
}, T = () => {
|
|
1529
|
-
s(), x();
|
|
1530
|
-
}, E = (e, t) => {
|
|
1531
|
-
i.update(() => {
|
|
1532
|
-
let n = M();
|
|
1533
|
-
if (P(n)) {
|
|
1534
|
-
let r = F(n.anchor.getNode(), R);
|
|
1535
|
-
if (t && t !== "") {
|
|
1536
|
-
if (r) {
|
|
1537
|
-
let e = He(t);
|
|
1538
|
-
r.replace(e), e.select();
|
|
1539
|
-
}
|
|
1540
|
-
if (t !== d.current && d.current === "") {
|
|
1541
|
-
let { anchor: e, focus: r } = n;
|
|
1542
|
-
n.insertText(t), e.offset -= t.length, r.offset = e.offset + t.length;
|
|
1543
|
-
}
|
|
1544
|
-
}
|
|
1545
|
-
Et(Vt(e), { target: "_blank" });
|
|
1546
|
-
}
|
|
1547
|
-
T();
|
|
1548
|
-
});
|
|
1549
|
-
}, ee = () => {
|
|
1550
|
-
i.dispatchCommand(Tt, null), C();
|
|
1551
|
-
}, D = { children: /* @__PURE__ */ q(ti, {
|
|
1552
|
-
isLink: p,
|
|
1553
|
-
onCloseHandler: T,
|
|
1554
|
-
onSaveHandler: (e, t) => E(e, t),
|
|
1555
|
-
ref: l
|
|
1556
|
-
}) };
|
|
1557
|
-
H(() => {
|
|
1558
|
-
c ? (u.current = !0, l.current?.focusFirstField()) : (l.current?.clearForm(), d.current = f.current = "", setTimeout(() => u.current = !1, ni));
|
|
1559
|
-
}, [l, c]), H(() => {
|
|
1560
|
-
let e = (e) => {
|
|
1561
|
-
if (P(e) && e.isCollapsed()) {
|
|
1562
|
-
let t = F(e.anchor.getNode(), R);
|
|
1563
|
-
if (t) {
|
|
1564
|
-
let n = i.getElementByKey(e.anchor.getNode().getKey()), r = n ? {
|
|
1565
|
-
top: n.getBoundingClientRect().bottom,
|
|
1566
|
-
left: n.getBoundingClientRect().left
|
|
1567
|
-
} : {
|
|
1568
|
-
top: 0,
|
|
1569
|
-
left: 0
|
|
1570
|
-
};
|
|
1571
|
-
return S(t.getURL(), r), !0;
|
|
1572
|
-
}
|
|
1573
|
-
}
|
|
1574
|
-
return !1;
|
|
1575
|
-
}, t = i.registerCommand(qe, () => {
|
|
1576
|
-
let t = M();
|
|
1577
|
-
return f.current = t?.getTextContent() ?? "", e(t), !1;
|
|
1578
|
-
}, 0), n = i.registerCommand(oe, (t) => {
|
|
1579
|
-
let n = M();
|
|
1580
|
-
return b(), t.preventDefault(), t.stopPropagation(), t.stopImmediatePropagation(), e(n), !1;
|
|
1581
|
-
}, 0);
|
|
1582
|
-
return () => {
|
|
1583
|
-
n(), t();
|
|
1584
|
-
};
|
|
1585
|
-
}, [i]), H(() => {
|
|
1586
|
-
let e = i.registerCommand($e, (e) => {
|
|
1587
|
-
if (e.ctrlKey && e.shiftKey && e.key === "U") {
|
|
1588
|
-
let t = M();
|
|
1589
|
-
if (b(), !P(t)) return !1;
|
|
1590
|
-
let n = F(t.anchor.getNode(), R), r = (e = "", t = "") => {
|
|
1591
|
-
w(), setTimeout(() => l.current?.setDefaults(e, t), 0);
|
|
1592
|
-
};
|
|
1593
|
-
if (n) return e.preventDefault(), e.stopPropagation(), e.stopImmediatePropagation(), d.current = n.getTextContent(), r(n.getURL(), n.getTextContent()), !0;
|
|
1594
|
-
let i = t.getTextContent();
|
|
1595
|
-
return i === "" ? (w(), !0) : (f.current = i, r("", f.current), !0);
|
|
1596
|
-
}
|
|
1597
|
-
return !1;
|
|
1598
|
-
}, 4), t = i.registerUpdateListener(({ editorState: e }) => {
|
|
1599
|
-
m(e.read(() => {
|
|
1600
|
-
let e = M();
|
|
1601
|
-
if (b(), P(e)) {
|
|
1602
|
-
let t = F(e.anchor.getNode(), R);
|
|
1603
|
-
if (t) return {
|
|
1604
|
-
active: !0,
|
|
1605
|
-
url: t.getURL(),
|
|
1606
|
-
linktext: t.getTextContent()
|
|
1607
|
-
};
|
|
1608
|
-
}
|
|
1609
|
-
return {
|
|
1610
|
-
active: !1,
|
|
1611
|
-
url: "",
|
|
1612
|
-
linktext: ""
|
|
1613
|
-
};
|
|
1614
|
-
}));
|
|
1615
|
-
});
|
|
1616
|
-
return () => {
|
|
1617
|
-
e(), t();
|
|
1618
|
-
};
|
|
1619
|
-
}, [i]), H(() => {
|
|
1620
|
-
g.current = c, c || y.current?.clearForm();
|
|
1621
|
-
}, [c]), H(() => {
|
|
1622
|
-
c && T();
|
|
1623
|
-
}, [n]), H(() => {
|
|
1624
|
-
p.active || s();
|
|
1625
|
-
}, [p]);
|
|
1626
|
-
let O = () => {
|
|
1627
|
-
s();
|
|
1628
|
-
};
|
|
1629
|
-
return H(() => N(i.registerCommand($e, (e) => e.key === "Escape" && g.current ? (e.preventDefault(), T(), !0) : !1, 1), i.registerRootListener((e, t) => {
|
|
1630
|
-
t && t.removeEventListener("scroll", O), e && e.addEventListener("scroll", O);
|
|
1631
|
-
})), [i]), /* @__PURE__ */ q("div", {
|
|
1632
|
-
className: z["editor__toolbar-button-group"],
|
|
1633
|
-
children: /* @__PURE__ */ J("div", {
|
|
1634
|
-
className: z["editor__toolbar-button-flyoutwrapper"],
|
|
1635
|
-
children: [/* @__PURE__ */ q("button", {
|
|
1636
|
-
onClick: w,
|
|
1637
|
-
title: r.links.linkTooltip,
|
|
1638
|
-
className: e(z["editor__toolbar-button"], z["editor__toolbar-button--link"], p.active && z["editor__toolbar-button--active"]),
|
|
1639
|
-
"aria-label": r.aria.labels.link,
|
|
1640
|
-
"aria-keyshortcuts": r.aria.keyshortcuts.link,
|
|
1641
|
-
type: "button",
|
|
1642
|
-
ref: v,
|
|
1643
|
-
children: /* @__PURE__ */ q(t, {
|
|
1644
|
-
name: "Link",
|
|
1645
|
-
size: 20
|
|
1646
|
-
})
|
|
1647
|
-
}), a]
|
|
1648
|
-
})
|
|
1649
|
-
});
|
|
1650
|
-
}, ii = () => {
|
|
1651
|
-
let n = B(), [r] = h(), [i, a] = K(!1), [o, s] = K(!1);
|
|
1652
|
-
return H(() => r.registerCommand(x, (e) => (a(e), !1), 1), [r]), H(() => r.registerCommand(b, (e) => (s(e), !1), 1), [r]), /* @__PURE__ */ J("div", {
|
|
1653
|
-
className: z["editor__toolbar-button-group"],
|
|
1654
|
-
children: [/* @__PURE__ */ q("button", {
|
|
1655
|
-
onClick: () => {
|
|
1656
|
-
r.dispatchCommand(Oe, void 0);
|
|
1657
|
-
},
|
|
1658
|
-
className: e(z["editor__toolbar-button"], z["editor__toolbar-button--undo"]),
|
|
1659
|
-
"aria-label": n.aria.labels.undo,
|
|
1660
|
-
"aria-keyshortcuts": n.aria.keyshortcuts.undo,
|
|
1661
|
-
disabled: !i,
|
|
1662
|
-
title: n.format.undoTooltip,
|
|
1663
|
-
type: "button",
|
|
1664
|
-
children: /* @__PURE__ */ q(t, {
|
|
1665
|
-
name: "StepBack",
|
|
1666
|
-
size: 24
|
|
1667
|
-
})
|
|
1668
|
-
}), /* @__PURE__ */ q("button", {
|
|
1669
|
-
onClick: () => {
|
|
1670
|
-
r.dispatchCommand(Ae, void 0);
|
|
1671
|
-
},
|
|
1672
|
-
className: e(z["editor__toolbar-button"], z["editor__toolbar-button--redo"]),
|
|
1673
|
-
"aria-label": n.aria.labels.redo,
|
|
1674
|
-
"aria-keyshortcuts": n.aria.keyshortcuts.redo,
|
|
1675
|
-
disabled: !o,
|
|
1676
|
-
title: n.format.redoTooltip,
|
|
1677
|
-
type: "button",
|
|
1678
|
-
children: /* @__PURE__ */ q(t, {
|
|
1679
|
-
name: "StepForwards",
|
|
1680
|
-
size: 24
|
|
1681
|
-
})
|
|
1682
|
-
})]
|
|
1683
|
-
});
|
|
1684
|
-
}, ai = {
|
|
1685
|
-
tableform: "_tableform_t5fpq_1",
|
|
1686
|
-
"tableform__input-field": "_tableform__input-field_t5fpq_5",
|
|
1687
|
-
tableform__footer: "_tableform__footer_t5fpq_12"
|
|
1688
|
-
}, oi = V(({ onCloseHandler: e, onSaveHandler: t }, r) => {
|
|
1689
|
-
let i = B(), [o, s] = K(), [c, d] = K(), f = G(null), p = `row_${U()}`, m = `column_${U()}`, h = (e, t) => {
|
|
1690
|
-
let n = e.target.value;
|
|
1691
|
-
t === "row" ? s(parseInt(n)) : d(parseInt(n));
|
|
1692
|
-
}, g = () => {
|
|
1693
|
-
o !== void 0 && c !== void 0 && (t(o, c), v());
|
|
1694
|
-
}, _ = () => {
|
|
1695
|
-
e(), v();
|
|
1696
|
-
}, v = () => {
|
|
1697
|
-
s(void 0), d(void 0);
|
|
1698
|
-
};
|
|
1699
|
-
return Tn(r, () => ({
|
|
1700
|
-
clearForm: v,
|
|
1701
|
-
focusFirstField: () => f.current?.focus()
|
|
1702
|
-
})), H(() => {
|
|
1703
|
-
let e = () => {
|
|
1704
|
-
_();
|
|
1705
|
-
};
|
|
1706
|
-
return Qt(e), window.addEventListener("scroll", e), window.addEventListener("resize", e), () => {
|
|
1707
|
-
window.removeEventListener("scroll", e), window.removeEventListener("resize", e), Zt(e);
|
|
1708
|
-
};
|
|
1709
|
-
}, []), /* @__PURE__ */ J("div", {
|
|
1710
|
-
className: ai.tableform,
|
|
1711
|
-
children: [
|
|
1712
|
-
/* @__PURE__ */ J(l, {
|
|
1713
|
-
className: ai["tableform__input-field"],
|
|
1714
|
-
children: [/* @__PURE__ */ q(a, {
|
|
1715
|
-
htmlFor: p,
|
|
1716
|
-
children: i.table.nrofRows
|
|
1717
|
-
}), /* @__PURE__ */ q(u, {
|
|
1718
|
-
id: p,
|
|
1719
|
-
placeholder: i.table.nrofRowsPlaceholder,
|
|
1720
|
-
value: o || "",
|
|
1721
|
-
onChange: (e) => h(e, "row"),
|
|
1722
|
-
"aria-label": i.aria.labels.tableRowfield,
|
|
1723
|
-
ref: f
|
|
1724
|
-
})]
|
|
1725
|
-
}),
|
|
1726
|
-
/* @__PURE__ */ J(l, {
|
|
1727
|
-
className: ai["tableform__input-field"],
|
|
1728
|
-
children: [/* @__PURE__ */ q(a, {
|
|
1729
|
-
htmlFor: m,
|
|
1730
|
-
children: i.table.nrofColumns
|
|
1731
|
-
}), /* @__PURE__ */ q(u, {
|
|
1732
|
-
id: m,
|
|
1733
|
-
placeholder: i.table.nrofColumnsPlaceholder,
|
|
1734
|
-
value: c || "",
|
|
1735
|
-
onChange: (e) => h(e, "column"),
|
|
1736
|
-
"aria-label": i.aria.labels.tableColumnfield
|
|
1737
|
-
})]
|
|
1738
|
-
}),
|
|
1739
|
-
/* @__PURE__ */ J("div", {
|
|
1740
|
-
className: ai.tableform__footer,
|
|
1741
|
-
children: [/* @__PURE__ */ q(n, {
|
|
1742
|
-
variant: "secondary",
|
|
1743
|
-
onClick: _,
|
|
1744
|
-
"aria-label": i.common.cancel,
|
|
1745
|
-
children: i.common.cancel
|
|
1746
|
-
}), /* @__PURE__ */ q(n, {
|
|
1747
|
-
variant: "primary",
|
|
1748
|
-
onClick: g,
|
|
1749
|
-
disabled: !o || !c,
|
|
1750
|
-
"aria-label": i.aria.labels.tableOkButton,
|
|
1751
|
-
children: i.common.add
|
|
1752
|
-
})]
|
|
1753
|
-
})
|
|
1754
|
-
]
|
|
1755
|
-
});
|
|
1756
|
-
}), si = V(({ isActive: n }, r) => {
|
|
1757
|
-
let i = B(), [a] = h(), { flyout: o, showFlyout: s, hideFlyout: c, isVisible: l } = on(), u = G(void 0), d = G(null), f = G(!1), p = G(l), m = () => {
|
|
1758
|
-
let e = d.current?.getBoundingClientRect();
|
|
1759
|
-
!f.current && e && s({
|
|
1760
|
-
position: {
|
|
1761
|
-
top: e.bottom,
|
|
1762
|
-
left: e.left
|
|
1763
|
-
},
|
|
1764
|
-
...y
|
|
1765
|
-
});
|
|
1766
|
-
}, g = () => {
|
|
1767
|
-
c();
|
|
1768
|
-
}, _ = (e, t) => {
|
|
1769
|
-
a.update(() => {
|
|
1770
|
-
let n = M(), r = sn(e, t), i = P(n) && n.anchor.getNode() || C(n) && n.getNodes()[0] || null, o = i ? F(i, Nt) : null, s = o ? fn(o, t, a) : dn(a) || 320, c = Math.max(48, Math.floor(s / Math.max(1, t))), l = Array.from({ length: t }, () => c);
|
|
1771
|
-
r.setColWidths(l);
|
|
1772
|
-
let u = Wt();
|
|
1773
|
-
u.append(r), P(n) ? n.insertNodes([u]) : A().append(u);
|
|
1774
|
-
let d = u.getFirstDescendant();
|
|
1775
|
-
d && d.select();
|
|
1776
|
-
}), g();
|
|
1777
|
-
}, v = (e) => {
|
|
1778
|
-
a.update(() => {
|
|
1779
|
-
let t = M();
|
|
1780
|
-
if (P(t)) {
|
|
1781
|
-
let n = Mt(t.anchor.getNode());
|
|
1782
|
-
if (jt(n)) switch (e) {
|
|
1783
|
-
case "insertRowAbove":
|
|
1784
|
-
case "insertRowBelow":
|
|
1785
|
-
mn(n, e);
|
|
1786
|
-
break;
|
|
1787
|
-
case "deleteRow":
|
|
1788
|
-
ln(n);
|
|
1789
|
-
break;
|
|
1790
|
-
case "insertColumnLeft":
|
|
1791
|
-
case "insertColumnRight":
|
|
1792
|
-
pn(n, e);
|
|
1793
|
-
break;
|
|
1794
|
-
case "deleteColumn":
|
|
1795
|
-
cn(n);
|
|
1796
|
-
break;
|
|
1797
|
-
case "deleteTable":
|
|
1798
|
-
un(n);
|
|
1799
|
-
break;
|
|
1800
|
-
}
|
|
1801
|
-
}
|
|
1802
|
-
});
|
|
1803
|
-
}, y = { children: /* @__PURE__ */ q(oi, {
|
|
1804
|
-
onCloseHandler: g,
|
|
1805
|
-
onSaveHandler: (e, t) => _(e, t),
|
|
1806
|
-
ref: u
|
|
1807
|
-
}) };
|
|
1808
|
-
return H(() => {
|
|
1809
|
-
l ? (f.current = !0, u.current?.focusFirstField()) : (u.current?.clearForm(), setTimeout(() => f.current = !1, 200));
|
|
1810
|
-
}, [u, l]), H(() => {
|
|
1811
|
-
let e = a.registerCommand($e, (e) => e.ctrlKey && e.shiftKey && e.code === "Digit9" ? (e.preventDefault(), m(), !0) : !1, 4);
|
|
1812
|
-
return () => {
|
|
1813
|
-
e();
|
|
1814
|
-
};
|
|
1815
|
-
}, [a]), H(() => {
|
|
1816
|
-
p.current = l;
|
|
1817
|
-
}, [l]), H(() => {
|
|
1818
|
-
let e = (e) => {
|
|
1819
|
-
e.key === "Escape" && p.current && (e.preventDefault(), e.stopPropagation(), g());
|
|
1820
|
-
};
|
|
1821
|
-
return document.addEventListener("keydown", e, { capture: !0 }), () => {
|
|
1822
|
-
document.removeEventListener("keydown", e);
|
|
1823
|
-
};
|
|
1824
|
-
}, []), Tn(r, () => ({ mutateTable: v })), /* @__PURE__ */ q("div", {
|
|
1825
|
-
className: z["editor__toolbar-button-group"],
|
|
1826
|
-
children: /* @__PURE__ */ J("div", {
|
|
1827
|
-
className: z["editor__toolbar-button-flyoutwrapper"],
|
|
1828
|
-
children: [/* @__PURE__ */ q("button", {
|
|
1829
|
-
onClick: m,
|
|
1830
|
-
title: i.table.tableTooltip,
|
|
1831
|
-
className: e(z["editor__toolbar-button"], n && z["editor__toolbar-button--active"]),
|
|
1832
|
-
"aria-label": i.aria.labels.table,
|
|
1833
|
-
"aria-keyshortcuts": i.aria.keyshortcuts.table,
|
|
1834
|
-
ref: d,
|
|
1835
|
-
type: "button",
|
|
1836
|
-
children: /* @__PURE__ */ q(t, {
|
|
1837
|
-
name: "Table",
|
|
1838
|
-
size: 24
|
|
1839
|
-
})
|
|
1840
|
-
}), o]
|
|
1841
|
-
})
|
|
1842
|
-
});
|
|
1843
|
-
}), ci = {
|
|
1844
|
-
"editor-header__container": "_editor-header__container_1y1mc_1",
|
|
1845
|
-
"editor-header__info": "_editor-header__info_1y1mc_10"
|
|
1846
|
-
}, li = ({ label: e, info: t = "", required: n = !1 }) => {
|
|
1847
|
-
let r = `info_${U()}`;
|
|
1848
|
-
return /* @__PURE__ */ J("div", {
|
|
1849
|
-
className: ci["editor-header__container"],
|
|
1850
|
-
children: [e !== "" && /* @__PURE__ */ q("div", { children: /* @__PURE__ */ q(a, {
|
|
1851
|
-
htmlFor: r,
|
|
1852
|
-
required: n,
|
|
1853
|
-
children: e
|
|
1854
|
-
}) }), t !== "" && /* @__PURE__ */ q("div", {
|
|
1855
|
-
className: ci["editor-header__info"],
|
|
1856
|
-
dangerouslySetInnerHTML: { __html: t }
|
|
1857
|
-
})]
|
|
1858
|
-
});
|
|
1859
|
-
}, ui = ({ currentLanguage: t = "NL", editorId: n, initialValue: r = "", placeholder: i = "", label: a = "", info: s = "", required: c = !1, notValid: l = !1, notValidatedText: u = "", maxHeightInRem: d = "20rem", maxWords: f, rteRef: p = null, onChange: m, onCatalogueLinkSearch: h, catalogueSearchResponse: g = {
|
|
1860
|
-
state: "idle",
|
|
1861
|
-
results: []
|
|
1862
|
-
} }) => {
|
|
1863
|
-
let { switchLanguage: _ } = en(), v = B(), [y] = K(() => O()), [b, x] = K(0), [S, C] = K(0), w = U(), T = {
|
|
1864
|
-
html: { export: Yt },
|
|
1865
|
-
namespace: `UvaRte-${n.replace(/\s+/g, "-").toLowerCase()}`,
|
|
1866
|
-
editor: y,
|
|
1867
|
-
theme: _n,
|
|
1868
|
-
onError(e) {
|
|
1869
|
-
throw e;
|
|
1870
|
-
},
|
|
1871
|
-
nodes: [
|
|
1872
|
-
bt,
|
|
1873
|
-
St,
|
|
1874
|
-
R,
|
|
1875
|
-
Dt,
|
|
1876
|
-
Nt,
|
|
1877
|
-
It,
|
|
1878
|
-
Rt,
|
|
1879
|
-
Gt,
|
|
1880
|
-
qt
|
|
1881
|
-
],
|
|
1882
|
-
editorState: (e) => {
|
|
1883
|
-
let t = vt(e, new DOMParser().parseFromString(r, "text/html"));
|
|
1884
|
-
A().clear(), Ee(t), k(null);
|
|
1885
|
-
}
|
|
1886
|
-
}, E = (e) => e.trim().length === 0 ? 0 : e.split(" ").length, ee = (e, t) => {
|
|
1887
|
-
e.read(() => {
|
|
1888
|
-
let e = "";
|
|
1889
|
-
x(E(A().getTextContent().replace(/\s+/g, " ").trim())), e = Xt(pt(t)), e = Jt(e), m(e);
|
|
1890
|
-
});
|
|
1891
|
-
};
|
|
1892
|
-
return H(() => {
|
|
1893
|
-
_(t.toUpperCase());
|
|
1894
|
-
}, [t, _]), H(() => {
|
|
1895
|
-
x(E(r.replace(/<br\s*\/?>| /gi, " ").replace(/<\/?[^>]+(>|$)|&[a-z]+;/g, "").replace(/\s+/g, " ").trim()));
|
|
1896
|
-
}, [r]), /* @__PURE__ */ J("div", {
|
|
1897
|
-
className: z.editor__container,
|
|
1898
|
-
children: [
|
|
1899
|
-
(a || s || f) && /* @__PURE__ */ J("div", {
|
|
1900
|
-
className: z.editor__header,
|
|
1901
|
-
children: [/* @__PURE__ */ q(li, {
|
|
1902
|
-
label: a,
|
|
1903
|
-
info: s,
|
|
1904
|
-
required: c
|
|
1905
|
-
}), f && f > 0 && /* @__PURE__ */ J("div", {
|
|
1906
|
-
className: z["editor__header-word-count"],
|
|
1907
|
-
children: [
|
|
1908
|
-
/* @__PURE__ */ q("span", {
|
|
1909
|
-
className: e({ [z["editor__header-word-count--alert"]]: b > f }),
|
|
1910
|
-
children: b
|
|
1911
|
-
}),
|
|
1912
|
-
"\xA0/\xA0",
|
|
1913
|
-
f
|
|
1914
|
-
]
|
|
1915
|
-
})]
|
|
1916
|
-
}),
|
|
1917
|
-
/* @__PURE__ */ q("div", {
|
|
1918
|
-
className: e(z.editor, { [z["not-valid"]]: l }),
|
|
1919
|
-
children: /* @__PURE__ */ J(qn, {
|
|
1920
|
-
initialConfig: T,
|
|
1921
|
-
children: [/* @__PURE__ */ q(ei, {
|
|
1922
|
-
editorScrollPosition: S,
|
|
1923
|
-
onCatalogueLinkSearch: h,
|
|
1924
|
-
catalogueSearchResponse: g
|
|
1925
|
-
}), /* @__PURE__ */ J("div", {
|
|
1926
|
-
className: z["editor__field-wrapper"],
|
|
1927
|
-
children: [
|
|
1928
|
-
/* @__PURE__ */ q(Er, {
|
|
1929
|
-
contentEditable: /* @__PURE__ */ q(Mr, {
|
|
1930
|
-
className: z.editor__field,
|
|
1931
|
-
"aria-label": v.common.rteAriaLabel,
|
|
1932
|
-
"aria-placeholder": i,
|
|
1933
|
-
title: v.common.rteTitle,
|
|
1934
|
-
placeholder: /* @__PURE__ */ q("div", {
|
|
1935
|
-
className: z.editor__placeholder,
|
|
1936
|
-
children: i
|
|
1937
|
-
}),
|
|
1938
|
-
spellCheck: !1,
|
|
1939
|
-
id: `${w}_rteEditor`,
|
|
1940
|
-
style: {
|
|
1941
|
-
height: `${d}`,
|
|
1942
|
-
maxHeight: `${d}`
|
|
1943
|
-
},
|
|
1944
|
-
onScroll: (e) => C(e.currentTarget.scrollTop)
|
|
1945
|
-
}),
|
|
1946
|
-
placeholder: /* @__PURE__ */ q("div", {
|
|
1947
|
-
className: z.editor__placeholder,
|
|
1948
|
-
children: i
|
|
1949
|
-
}),
|
|
1950
|
-
ErrorBoundary: zr
|
|
1951
|
-
}),
|
|
1952
|
-
/* @__PURE__ */ q(Qr, {}),
|
|
1953
|
-
/* @__PURE__ */ q(tt, {}),
|
|
1954
|
-
/* @__PURE__ */ q(Zr, {}),
|
|
1955
|
-
/* @__PURE__ */ q(Hr, {}),
|
|
1956
|
-
/* @__PURE__ */ q(Ur, { validateUrl: Ht }),
|
|
1957
|
-
/* @__PURE__ */ q(zt, { matchers: Ut }),
|
|
1958
|
-
/* @__PURE__ */ q(Wr, {}),
|
|
1959
|
-
/* @__PURE__ */ q(Vr, { onChange: ee }),
|
|
1960
|
-
/* @__PURE__ */ q(gn, {}),
|
|
1961
|
-
/* @__PURE__ */ q(Kt, {}),
|
|
1962
|
-
p && /* @__PURE__ */ q($r, { editorRef: p })
|
|
1963
|
-
]
|
|
1964
|
-
})]
|
|
1965
|
-
})
|
|
1966
|
-
}),
|
|
1967
|
-
u !== "" && /* @__PURE__ */ q(o, {
|
|
1968
|
-
level: "error",
|
|
1969
|
-
feedback: u
|
|
1970
|
-
})
|
|
1971
|
-
]
|
|
1972
|
-
});
|
|
1973
|
-
}, di = ({ currentLanguage: e = "NL", editorId: t, initialValue: n = "", placeholder: r = "", label: i = "", info: a = "", required: o = !1, notValid: s = !1, notValidatedText: c = "", maxWords: l, rteRef: u, onChange: d, onCatalogueLinkSearch: f, catalogueSearchResponse: p = {
|
|
1974
|
-
state: "idle",
|
|
1975
|
-
results: []
|
|
1976
|
-
} }) => /* @__PURE__ */ q($t, { children: /* @__PURE__ */ q(ui, {
|
|
1977
|
-
currentLanguage: e.toUpperCase(),
|
|
1978
|
-
editorId: t,
|
|
1979
|
-
initialValue: n,
|
|
1980
|
-
placeholder: r,
|
|
1981
|
-
label: i,
|
|
1982
|
-
info: a,
|
|
1983
|
-
required: o,
|
|
1984
|
-
notValid: s,
|
|
1985
|
-
notValidatedText: c,
|
|
1986
|
-
maxWords: l,
|
|
1987
|
-
rteRef: u,
|
|
1988
|
-
onChange: d,
|
|
1989
|
-
onCatalogueLinkSearch: f,
|
|
1990
|
-
catalogueSearchResponse: p
|
|
1991
|
-
}) });
|
|
1992
|
-
//#endregion
|
|
1993
|
-
export { oi as a, ti as c, Vn as d, Nn as f, An as h, si as i, ei as l, jn as m, di as n, ii as o, Mn as p, li as r, ri as s, ui as t, Un as u };
|
|
1994
|
-
|
|
1995
|
-
//# sourceMappingURL=components-D6_Sx8Hs.js.map
|