@ryuzaki13/react-foundation-ui 1.5.0 → 1.5.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/advanced-search/index.js +4 -4
- package/dist/base-table/index.js +1 -1
- package/dist/chunks/CalendarView-Cfih7hjD.js +439 -0
- package/dist/chunks/{CalendarView-DtacoN_c.js.map → CalendarView-Cfih7hjD.js.map} +1 -1
- package/dist/chunks/CheckBox.module-C5SjPwSj.js.map +1 -1
- package/dist/chunks/{TextEditorLexicalClient-DVML-Nhd.js → TextEditorLexicalClient-BSafrkLJ.js} +241 -275
- package/dist/chunks/TextEditorLexicalClient-BSafrkLJ.js.map +1 -0
- package/dist/chunks/{base-table-BPcdSitC.js → base-table-X7aSSjXa.js} +2 -2
- package/dist/chunks/{base-table-BPcdSitC.js.map → base-table-X7aSSjXa.js.map} +1 -1
- package/dist/chunks/{context-menu-BY4pYGwB.js → context-menu-tcD3kVAc.js} +58 -62
- package/dist/chunks/context-menu-tcD3kVAc.js.map +1 -0
- package/dist/chunks/date-input-Bsl9dxxY.js +341 -0
- package/dist/chunks/date-input-Bsl9dxxY.js.map +1 -0
- package/dist/chunks/{input-BWCaVC06.js → input-CAw1Loze.js} +54 -47
- package/dist/chunks/input-CAw1Loze.js.map +1 -0
- package/dist/chunks/{input-files-62qH2TMj.js → input-files-CLtQ7p8j.js} +2 -2
- package/dist/chunks/{input-files-62qH2TMj.js.map → input-files-CLtQ7p8j.js.map} +1 -1
- package/dist/chunks/{input-search-CdPI1cb6.js → input-search-F6MPrUGF.js} +2 -2
- package/dist/chunks/{input-search-CdPI1cb6.js.map → input-search-F6MPrUGF.js.map} +1 -1
- package/dist/chunks/{multi-select-01xmD1nZ.js → multi-select-Dypew65l.js} +60 -59
- package/dist/chunks/multi-select-Dypew65l.js.map +1 -0
- package/dist/chunks/{picker-Mdb73_uW.js → picker-TYLwgl1c.js} +82 -92
- package/dist/chunks/{picker-Mdb73_uW.js.map → picker-TYLwgl1c.js.map} +1 -1
- package/dist/chunks/{select-DRf4_a1Z.js → select-DCSNVEYW.js} +34 -33
- package/dist/chunks/select-DCSNVEYW.js.map +1 -0
- package/dist/chunks/{table-DSg9gi_l.js → table-DihiNNJt.js} +2 -2
- package/dist/chunks/{table-DSg9gi_l.js.map → table-DihiNNJt.js.map} +1 -1
- package/dist/context-menu/components/MenuRoot.d.ts.map +1 -1
- package/dist/context-menu/index.js +1 -1
- package/dist/date-input/index.js +2 -2
- package/dist/date-input/lib/dateInputValue.d.ts +2 -6
- package/dist/date-input/lib/dateInputValue.d.ts.map +1 -1
- package/dist/date-input/lib/types.d.ts +0 -4
- package/dist/date-input/lib/types.d.ts.map +1 -1
- package/dist/date-input/model/useDateInput.d.ts +2 -2
- package/dist/date-input/model/useDateInput.d.ts.map +1 -1
- package/dist/date-input/ui/CalendarView.d.ts.map +1 -1
- package/dist/date-input/ui/DateInput.d.ts +0 -4
- package/dist/date-input/ui/DateInput.d.ts.map +1 -1
- package/dist/date-time-input/index.js +229 -234
- package/dist/date-time-input/index.js.map +1 -1
- package/dist/date-time-input/model/useDateTimeSegments.d.ts.map +1 -1
- package/dist/date-time-input/ui/SingleDateTimeInput.d.ts.map +1 -1
- package/dist/disclosure/index.js.map +1 -1
- package/dist/drop-zone/index.js +1 -1
- package/dist/image/index.js +2 -2
- package/dist/input/Input.d.ts.map +1 -1
- package/dist/input/index.js +1 -1
- package/dist/input-date-time/index.js +1 -1
- package/dist/input-file/index.js +1 -1
- package/dist/input-files/index.js +1 -1
- package/dist/input-image/index.js +1 -1
- package/dist/input-search/index.js +1 -1
- package/dist/layout-picker/index.js +1 -1
- package/dist/list/List.d.ts.map +1 -1
- package/dist/list/index.js +74 -45
- package/dist/list/index.js.map +1 -1
- package/dist/list/useListVirtualizer.d.ts +13 -0
- package/dist/list/useListVirtualizer.d.ts.map +1 -0
- package/dist/multi-select/index.js +1 -1
- package/dist/multi-select/ui/MultiSelect.d.ts.map +1 -1
- package/dist/picker/index.js +1 -1
- package/dist/picker/model/usePickerQuery.d.ts +6 -2
- package/dist/picker/model/usePickerQuery.d.ts.map +1 -1
- package/dist/picker/model/usePickerSelectionLifecycle.d.ts.map +1 -1
- package/dist/preset-range-date-input/index.js +1 -1
- package/dist/preset-select/index.js +1 -1
- package/dist/select/Select.d.ts.map +1 -1
- package/dist/select/index.js +1 -1
- package/dist/simple-table/index.js +1 -1
- package/dist/slider/SliderInput.d.ts.map +1 -1
- package/dist/slider/index.js +333 -290
- package/dist/slider/index.js.map +1 -1
- package/dist/state-select/index.js +1 -1
- package/dist/styles.css +1 -1
- package/dist/table/index.js +1 -1
- package/dist/table-sorting/index.js +1 -1
- package/dist/tabs/index.js.map +1 -1
- package/dist/tag-input/TagInput.d.ts.map +1 -1
- package/dist/tag-input/index.js +1 -1
- package/dist/tag-input/index.js.map +1 -1
- package/dist/text-editor/EmailDialog.d.ts +1 -2
- package/dist/text-editor/EmailDialog.d.ts.map +1 -1
- package/dist/text-editor/LinkDialog.d.ts +1 -2
- package/dist/text-editor/LinkDialog.d.ts.map +1 -1
- package/dist/text-editor/PhoneDialog.d.ts +1 -2
- package/dist/text-editor/PhoneDialog.d.ts.map +1 -1
- package/dist/text-editor/SemanticDialog.d.ts +1 -2
- package/dist/text-editor/SemanticDialog.d.ts.map +1 -1
- package/dist/text-editor/TextEditorDialogs.d.ts +2 -1
- package/dist/text-editor/TextEditorDialogs.d.ts.map +1 -1
- package/dist/text-editor/TimeDialog.d.ts +1 -2
- package/dist/text-editor/TimeDialog.d.ts.map +1 -1
- package/dist/text-editor/index.js +1 -1
- package/dist/textarea/index.js +1 -1
- package/dist/tree-select/TreePickerBase.d.ts.map +1 -1
- package/dist/tree-select/index.js +243 -248
- package/dist/tree-select/index.js.map +1 -1
- package/dist/tree-table/index.js +1 -1
- package/package.json +1 -1
- package/storybook-static/assets/{Badge-CblO4qSx.js → Badge-DUTHAQCE.js} +1 -1
- package/storybook-static/assets/{Badge.stories-CtRrqjAo.js → Badge.stories-6iI-UG0f.js} +1 -1
- package/storybook-static/assets/{Button-BVt4jmN4.js → Button-B0C3LMAw.js} +1 -1
- package/storybook-static/assets/{Button-Bzc9jBAF.js → Button-CqVTrqw2.js} +1 -1
- package/storybook-static/assets/{Button.stories-tqfxm0ox.js → Button.stories-DjUmGByS.js} +1 -1
- package/storybook-static/assets/{CalendarView-MkrPd5D-.js → CalendarView-hiZ9ETaP.js} +1 -1
- package/storybook-static/assets/{CheckBox-CWipX4CI.js → CheckBox-DBQ50PCI.js} +1 -1
- package/storybook-static/assets/{CheckBox-0BK2dgdD.js → CheckBox-De010n9y.js} +1 -1
- package/storybook-static/assets/CheckBox-Dw4nDCv8.css +1 -0
- package/storybook-static/assets/{CheckBox.stories-B5yWzlQa.js → CheckBox.stories-BfC6OQx3.js} +1 -1
- package/storybook-static/assets/{Color-6AOWCN3U-WdTzF_2p.js → Color-6AOWCN3U-C_KzRv-S.js} +1 -1
- package/storybook-static/assets/ContextMenu-BwrqtNnY.js +1 -0
- package/storybook-static/assets/{ContextMenu-kbSWsoCE.js → ContextMenu-CGLg47OY.js} +1 -1
- package/storybook-static/assets/{ContextMenu.stories-CQcrX3sj.js → ContextMenu.stories-JnUlLk_E.js} +1 -1
- package/storybook-static/assets/DateInput-BWbKmFEc.js +1 -0
- package/storybook-static/assets/{DateInput-CyNIW9Md.js → DateInput-CUPdoLCw.js} +1 -1
- package/storybook-static/assets/{DateInput.stories-DyB3PjTl.js → DateInput.stories-DOOukQsB.js} +1 -1
- package/storybook-static/assets/{DateRangePresetSelect-BwibZk_q.js → DateRangePresetSelect-BWm1txZP.js} +1 -1
- package/storybook-static/assets/{DateRangePresetSelect-CBZ0OAmn.js → DateRangePresetSelect-CegjuKSa.js} +1 -1
- package/storybook-static/assets/{DateRangePresetSelect.stories-kmmKl-3j.js → DateRangePresetSelect.stories-BGCOqCf7.js} +1 -1
- package/storybook-static/assets/{Detail-pHBZ5bkR.js → Detail-DLDL5IhK.js} +1 -1
- package/storybook-static/assets/{Detail.stories-Bs5YNmLn.js → Detail.stories-BcP01iwW.js} +1 -1
- package/storybook-static/assets/{Dialog-DbFhCtF1.js → Dialog-BYLrz-6d.js} +1 -1
- package/storybook-static/assets/{Dialog-DBTU-LRR.js → Dialog-DcQbPiWK.js} +1 -1
- package/storybook-static/assets/{Dialog.stories-_WQW8YNs.js → Dialog.stories-C5o4OhEy.js} +1 -1
- package/storybook-static/assets/{Disclosure-vOJWmhLt.js → Disclosure-ChpGjvgZ.js} +1 -1
- package/storybook-static/assets/{Disclosure.stories-wyulIOoJ.js → Disclosure.stories-CTL8h6Q3.js} +1 -1
- package/storybook-static/assets/{DisclosureGroup-DjObX5Qs.css → DisclosureGroup-CNoH2D1R.css} +1 -1
- package/storybook-static/assets/{DisclosureGroup-BUDxwl5C.js → DisclosureGroup-CUelavR4.js} +1 -1
- package/storybook-static/assets/{DocsRenderer-JROSPFPF-B7vhvrpB.js → DocsRenderer-JROSPFPF-BQTqLgKs.js} +1 -1
- package/storybook-static/assets/{DropZone-BvRT0gUm.js → DropZone-5Xw6HUNa.js} +1 -1
- package/storybook-static/assets/{DropZone-B7Q1qQqP.js → DropZone-ULl7tScR.js} +1 -1
- package/storybook-static/assets/{DropZone.stories-WmoR3uPj.js → DropZone.stories-Btud72HY.js} +1 -1
- package/storybook-static/assets/{DropdownMenu-BW35W6_U.js → DropdownMenu-CZDVKXjD.js} +1 -1
- package/storybook-static/assets/{ExpandableActionPanel-C9G9PsZx.js → ExpandableActionPanel-CwamleZX.js} +1 -1
- package/storybook-static/assets/{ExpandableActionPanel.stories-Dllpmeu_.js → ExpandableActionPanel.stories-BUBvJAPp.js} +1 -1
- package/storybook-static/assets/{Flex-Cydb-4MR.js → Flex-cO3yZG-t.js} +1 -1
- package/storybook-static/assets/{Flex.stories-Dczj9g4W.js → Flex.stories-BAuXOTSJ.js} +1 -1
- package/storybook-static/assets/{FloatingPopover-C-W77AcJ.js → FloatingPopover-C56UHmzH.js} +1 -1
- package/storybook-static/assets/{FormattedTableCell-fePg_bmP.js → FormattedTableCell-B4ObrqF1.js} +1 -1
- package/storybook-static/assets/{Grid-Dal3v5dj.js → Grid-B3-t0FmJ.js} +1 -1
- package/storybook-static/assets/{Grid.stories-Byb4mMpE.js → Grid.stories-Cr_GpL6X.js} +1 -1
- package/storybook-static/assets/{ImageCropper.stories-B9OD2pur.js → ImageCropper.stories-BDqwBC8C.js} +1 -1
- package/storybook-static/assets/{ImageRenderer-BcUjptiu.js → ImageRenderer-CigIY2hD.js} +1 -1
- package/storybook-static/assets/{ImageRenderer.stories-BuO2nhom.js → ImageRenderer.stories-CI8r-V1l.js} +1 -1
- package/storybook-static/assets/{ImageView.stories-mSkR535R.js → ImageView.stories-D_OG6Deg.js} +1 -1
- package/storybook-static/assets/{ImageViewer.stories-DVdR3-_j.js → ImageViewer.stories-CQSqogxL.js} +2 -2
- package/storybook-static/assets/{ImageViewerRuntime-DiR_HwIE.js → ImageViewerRuntime-DerEzrYU.js} +1 -1
- package/storybook-static/assets/{Input-BdCavSu1.js → Input-Bm1cMHGo.js} +1 -1
- package/storybook-static/assets/{Input-DZQKV4DP.js → Input-Bot494Bx.js} +1 -1
- package/storybook-static/assets/{Input.stories-Cu66SvKb.js → Input.stories-BovBOurM.js} +1 -1
- package/storybook-static/assets/{InputDateTime-Day94W-O.js → InputDateTime-BekBAEPs.js} +1 -1
- package/storybook-static/assets/{InputDateTime.stories-990MuicZ.js → InputDateTime.stories-w3S5IslS.js} +1 -1
- package/storybook-static/assets/{InputFile-Cp8x84ZG.js → InputFile-CuQb2x1k.js} +1 -1
- package/storybook-static/assets/{InputFile-CJll5mC-.js → InputFile-GBGGdgQh.js} +1 -1
- package/storybook-static/assets/{InputFile.stories-fNNwbNfa.js → InputFile.stories-f_IZth6c.js} +1 -1
- package/storybook-static/assets/{InputFiles-OusF5Lfq.js → InputFiles-C74DVQhN.js} +1 -1
- package/storybook-static/assets/{InputFiles-CBvR3Szf.js → InputFiles-CrLCcwgR.js} +1 -1
- package/storybook-static/assets/{InputFiles.stories-DcpEbOOo.js → InputFiles.stories-BsuddNi0.js} +1 -1
- package/storybook-static/assets/{InputFilesList-zuNP1QIB.js → InputFilesList-Djxwuhlq.js} +1 -1
- package/storybook-static/assets/{InputImage-Dl2bJNZk.js → InputImage-CwlTJmns.js} +1 -1
- package/storybook-static/assets/{InputImage-CjMAL3uq.js → InputImage-DMaYEhTE.js} +1 -1
- package/storybook-static/assets/{InputImage.stories-BzxEndIe.js → InputImage.stories-CnN_t-Bq.js} +1 -1
- package/storybook-static/assets/{InteractiveComponents.stories-CXF1nGLl.js → InteractiveComponents.stories-B87LSnhG.js} +1 -1
- package/storybook-static/assets/{LayoutPicker-BahcFBzK.js → LayoutPicker-DKMVqnzr.js} +1 -1
- package/storybook-static/assets/{LayoutPicker-DzAN3gGO.js → LayoutPicker-I0mjwTRq.js} +1 -1
- package/storybook-static/assets/{LayoutPicker.stories-ByamaGlv.js → LayoutPicker.stories-B94m5_5E.js} +1 -1
- package/storybook-static/assets/{Listbox-C5hwzE4s.js → Listbox-2CNZxFrM.js} +1 -1
- package/storybook-static/assets/{Listbox-CHsNGsDc.js → Listbox-BOCPTICI.js} +1 -1
- package/storybook-static/assets/{Listbox.stories-CvXZeESb.js → Listbox.stories-DkRL364d.js} +1 -1
- package/storybook-static/assets/{Modal-Dib11Lzy.js → Modal-BF5Wtu_Z.js} +1 -1
- package/storybook-static/assets/{Modal.stories-DYMy-kLP.js → Modal.stories-BuBDjhkS.js} +1 -1
- package/storybook-static/assets/{ModalManagerProvider-natWXnSM.js → ModalManagerProvider-DtAfcujR.js} +1 -1
- package/storybook-static/assets/{MultiSelect-Cl9MkPZw.js → MultiSelect-B5MJePks.js} +1 -1
- package/storybook-static/assets/{MultiSelect-DlCZ7dhH.js → MultiSelect-B75x42Va.js} +1 -1
- package/storybook-static/assets/{MultiSelect.stories-202TRBKq.js → MultiSelect.stories-pCDFxnvP.js} +1 -1
- package/storybook-static/assets/{NoData-DcHZdLTJ.js → NoData-kWRpCxvl.js} +1 -1
- package/storybook-static/assets/{NotificationsHost-DzqEi2vc.js → NotificationsHost-lblab1gc.js} +1 -1
- package/storybook-static/assets/{NotificationsHost.stories-CvoQfIjj.js → NotificationsHost.stories-a3NIcVIj.js} +1 -1
- package/storybook-static/assets/{ODataMultiSelect-CHQguikm.js → ODataMultiSelect-BDqBjXSe.js} +1 -1
- package/storybook-static/assets/{ODataMultiSelect.stories-BZbWK4CP.js → ODataMultiSelect.stories-8nYfEOBa.js} +1 -1
- package/storybook-static/assets/{ODataSelect-C1YGDpg_.js → ODataSelect-BmcZs-Q9.js} +1 -1
- package/storybook-static/assets/{ODataSelect.stories-D4tQXs2c.js → ODataSelect.stories-fiEuKGVT.js} +1 -1
- package/storybook-static/assets/{ODataTreeMultiSelect-BjR7zhyJ.js → ODataTreeMultiSelect-ZAlccR5J.js} +1 -1
- package/storybook-static/assets/{ODataTreeMultiSelect.stories-Drg8mLhi.js → ODataTreeMultiSelect.stories-sP-IANic.js} +1 -1
- package/storybook-static/assets/{ODataTreeSelect-D_fcT3Aw.js → ODataTreeSelect-DSpeH-SQ.js} +1 -1
- package/storybook-static/assets/{ODataTreeSelect.stories-BWFdmmvf.js → ODataTreeSelect.stories-C_G-ryCy.js} +1 -1
- package/storybook-static/assets/{OneStepScroller-DWCRXFHq.js → OneStepScroller-BPYnBbTY.js} +1 -1
- package/storybook-static/assets/{PeriodSelect-DtfTzrNK.js → PeriodSelect-Dj1G9UDW.js} +1 -1
- package/storybook-static/assets/{PeriodSelect-C7QQKxZ4.js → PeriodSelect-v-ybkTTW.js} +1 -1
- package/storybook-static/assets/{PeriodSelect.stories-CF65LIHm.js → PeriodSelect.stories-DcAJ8fkJ.js} +1 -1
- package/storybook-static/assets/{PickerSelectionToolbar-D9atWyWj.js → PickerSelectionToolbar-7gktfdu3.js} +1 -1
- package/storybook-static/assets/{PickerTriggerActions-C7WeaOKN.js → PickerTriggerActions-Bd-vIbv8.js} +1 -1
- package/storybook-static/assets/{Popover-DQJIeny_.js → Popover-5dsoQ1_b.js} +1 -1
- package/storybook-static/assets/{Popover-CUJF-IMC.js → Popover-BoMs5h0y.js} +1 -1
- package/storybook-static/assets/{Popover.stories-BON0z3PX.js → Popover.stories-CbNVj_hu.js} +1 -1
- package/storybook-static/assets/{PresetRangeDateInput-DpA1KOCo.js → PresetRangeDateInput-BeQMoRpC.js} +1 -1
- package/storybook-static/assets/{PresetRangeDateInput-D3_uzWzQ.js → PresetRangeDateInput-DyGnRjp4.js} +1 -1
- package/storybook-static/assets/{PresetRangeDateInput.stories-CDDJDiei.js → PresetRangeDateInput.stories-C7gwDup9.js} +1 -1
- package/storybook-static/assets/{PresetSelect-DlV2eC-b.js → PresetSelect-C8e1Xzbh.js} +1 -1
- package/storybook-static/assets/{RadioButton-BLyqp88m.js → RadioButton-blBN8xkq.js} +1 -1
- package/storybook-static/assets/{RadioButton-wkLEwRaH.js → RadioButton-kIVy3cCo.js} +1 -1
- package/storybook-static/assets/{RadioButton.stories-DS9RYBEJ.js → RadioButton.stories-B8U30Wqk.js} +1 -1
- package/storybook-static/assets/{RadioGroup-CsWIje1J.js → RadioGroup-CuWLCtLr.js} +1 -1
- package/storybook-static/assets/{RadioGroup-DERcyzA0.js → RadioGroup-D4fwjGGp.js} +1 -1
- package/storybook-static/assets/{RadioGroup.stories-DkgUPavS.js → RadioGroup.stories-CGo-8-Bv.js} +1 -1
- package/storybook-static/assets/{Scrollable-DvJ3T3Ik.js → Scrollable-CeGzYD_u.js} +1 -1
- package/storybook-static/assets/{Select-DmEm2boi.js → Select-rdcqkPnE.js} +1 -1
- package/storybook-static/assets/Select-txovgbTh.js +12 -0
- package/storybook-static/assets/{Select.stories-BEPJovVd.js → Select.stories-DPM22VkR.js} +1 -1
- package/storybook-static/assets/{SelectOptionContent-B5E2W8PZ.js → SelectOptionContent-HqUICxHy.js} +1 -1
- package/storybook-static/assets/{SerializableSelect-wgzDfqEi.js → SerializableSelect-btIwjUkv.js} +1 -1
- package/storybook-static/assets/{SerializableSelect.stories-V8IqyO9Y.js → SerializableSelect.stories-EodX_I8R.js} +1 -1
- package/storybook-static/assets/{SingleDateTimeInput-B7v0t9f5.js → SingleDateTimeInput-CMKsQ13r.js} +1 -1
- package/storybook-static/assets/SingleDateTimeInput-coulKUC8.js +1 -0
- package/storybook-static/assets/{SingleDateTimeInput.stories-FOoEMoyF.js → SingleDateTimeInput.stories-BkSaW82_.js} +1 -1
- package/storybook-static/assets/{Slider-24H5ASxG.js → Slider-BDjIIhGp.js} +1 -1
- package/storybook-static/assets/{Slider-3HQKHpoi.js → Slider-DhBLW1at.js} +1 -1
- package/storybook-static/assets/{Slider.stories-DeeP8cmV.js → Slider.stories-DpTr65-r.js} +1 -1
- package/storybook-static/assets/SliderInput-BEV5I_1l.js +2 -0
- package/storybook-static/assets/{SliderInput-CFbx-GW7.js → SliderInput-CiuILy6K.js} +1 -1
- package/storybook-static/assets/{SliderInput.stories-Djli653m.js → SliderInput.stories-CL7SlLhr.js} +1 -1
- package/storybook-static/assets/{Sortable-CMo2PMKX.js → Sortable-CtNygGoQ.js} +1 -1
- package/storybook-static/assets/{Sortable.stories-BFsQvwMx.js → Sortable.stories-BbNoyvN9.js} +1 -1
- package/storybook-static/assets/{Splitter-dwOhGuIg.js → Splitter-BYaydk0U.js} +1 -1
- package/storybook-static/assets/{Splitter.stories-DZ3nAxpo.js → Splitter.stories-Bo2rHdcD.js} +1 -1
- package/storybook-static/assets/{StateSelect-j3gi4kbM.js → StateSelect-D2MILxIu.js} +1 -1
- package/storybook-static/assets/{StateSelect-IigEzRom.js → StateSelect-DNKjfPR-.js} +1 -1
- package/storybook-static/assets/{StateSelect.stories-Bj-2m2hS.js → StateSelect.stories-D_NhQBcN.js} +1 -1
- package/storybook-static/assets/{StringToggle.stories-ClSl76ts.js → StringToggle.stories-CS507_cT.js} +1 -1
- package/storybook-static/assets/{Switch-C9OAPzUM.js → Switch-9gK7d4Is.js} +1 -1
- package/storybook-static/assets/{Switch-BDbBZjMA.js → Switch-i3aW21Wi.js} +1 -1
- package/storybook-static/assets/{Switch.stories-CQ3ueThx.js → Switch.stories-BRIuS4_o.js} +1 -1
- package/storybook-static/assets/{Table-BbGcLQ81.js → Table-CytIsA37.js} +1 -1
- package/storybook-static/assets/{Table.stories-DvaHP59R.js → Table.stories-DYPLk3TC.js} +1 -1
- package/storybook-static/assets/{Tabs-CNEYvzUv.js → Tabs-BMee-SUy.js} +1 -1
- package/storybook-static/assets/{Tabs.stories-BpyQokl8.js → Tabs.stories-KqQTRqYo.js} +1 -1
- package/storybook-static/assets/TabsBox-B5ugO318.css +1 -0
- package/storybook-static/assets/{TabsBox-ClZCbgKB.js → TabsBox-BM1mIOmT.js} +1 -1
- package/storybook-static/assets/{TagInput-DorsSF_V.js → TagInput-yEIGCMwZ.js} +1 -1
- package/storybook-static/assets/{TagInput.stories-ChgRz4Co.js → TagInput.stories-DmuVnRfR.js} +1 -1
- package/storybook-static/assets/{Text-DUqtop-c.js → Text-DUN8T0sU.js} +1 -1
- package/storybook-static/assets/{Textarea-ZfZJmHsp.js → Textarea-BeKW8LG0.js} +1 -1
- package/storybook-static/assets/{Textarea-yZWv6QdW.js → Textarea-W648f4l-.js} +1 -1
- package/storybook-static/assets/{Textarea.stories-B5Q7syxH.js → Textarea.stories-BbZ-hCVF.js} +1 -1
- package/storybook-static/assets/{TimePanel-C39f__j8.js → TimePanel-D-RygTSo.js} +1 -1
- package/storybook-static/assets/{TimePanel.stories-DtjILTPk.js → TimePanel.stories-CzVur3oq.js} +1 -1
- package/storybook-static/assets/{Toggle-CdpPJI_O.js → Toggle-CCZ3ekPb.js} +1 -1
- package/storybook-static/assets/{Toggle-BndjhQFY.js → Toggle-Dc5aTAHb.js} +1 -1
- package/storybook-static/assets/{Toggle.stories-BD_C0YTw.js → Toggle.stories-R3abtezP.js} +1 -1
- package/storybook-static/assets/{TreeMultiSelect-BPz5kISi.js → TreeMultiSelect-Bi-LirPw.js} +1 -1
- package/storybook-static/assets/{TreeMultiSelect--M1WiE_f.js → TreeMultiSelect-CzKVkvZd.js} +1 -1
- package/storybook-static/assets/{TreeMultiSelect.stories-BgkDJur9.js → TreeMultiSelect.stories-Co_PUawN.js} +1 -1
- package/storybook-static/assets/TreePickerBase-BIbhsg5t.js +22 -0
- package/storybook-static/assets/{TreeSelect-BrQGgG40.js → TreeSelect-B4G9gk8x.js} +1 -1
- package/storybook-static/assets/{TreeSelect-B0RWsDT4.js → TreeSelect-Dm3zEY1S.js} +1 -1
- package/storybook-static/assets/{TreeSelect.stories-DkgdJ5XX.js → TreeSelect.stories-sRek_0PI.js} +1 -1
- package/storybook-static/assets/{TreeTable-HQr8pb9r.js → TreeTable-ybfR3-5k.js} +1 -1
- package/storybook-static/assets/{TreeTable.stories-C4hcph6x.js → TreeTable.stories-BoZjeFKM.js} +1 -1
- package/storybook-static/assets/{async-lzSWdC34.js → async-Df2RUQlC.js} +1 -1
- package/storybook-static/assets/{blocks-D8l_hmHU.js → blocks-BcJ54T3V.js} +3 -3
- package/storybook-static/assets/{browserAndReact-BwvRFhzI.js → browserAndReact-Bfk1cWqT.js} +1 -1
- package/storybook-static/assets/{check-DpX8PMs_.js → check-Dl-iF50o.js} +1 -1
- package/storybook-static/assets/{chevron-down-DE8FRR-h.js → chevron-down-DOIDj8WF.js} +1 -1
- package/storybook-static/assets/{chevron-left-Cy3TEG_Y.js → chevron-left-DHEBK_X7.js} +1 -1
- package/storybook-static/assets/{chevron-right-CZ4-4s1X.js → chevron-right-Cf6T-grH.js} +1 -1
- package/storybook-static/assets/{chunk-W22LQPXL-Ci-XApFb.js → chunk-W22LQPXL-DLMJSt_s.js} +1 -1
- package/storybook-static/assets/{circle-alert-CWbgc3Jn.js → circle-alert-DmNt0Uwi.js} +1 -1
- package/storybook-static/assets/{circle-check-DODquDnH.js → circle-check-DN8HwnBX.js} +1 -1
- package/storybook-static/assets/{components-BdUOCBP9.js → components-DI9O99vY.js} +3 -3
- package/storybook-static/assets/{contextMenu-XvvXJEpW.js → contextMenu-DWXX4ZHr.js} +1 -1
- package/storybook-static/assets/defaultRenderers-DwI2nLiY.js +1 -0
- package/storybook-static/assets/{download-BEGaHxQc.js → download-oMaZX_8z.js} +1 -1
- package/storybook-static/assets/{filesAndExcel-C9FnZv9P.js → filesAndExcel-ur50Ve27.js} +1 -1
- package/storybook-static/assets/{floating-ui.react-GziJy4gA.js → floating-ui.react-zHdvT_EM.js} +1 -1
- package/storybook-static/assets/{formatters-CVj-3Vn0-C5-BLq9O.js → formatters-CVj-3Vn0-BFaHJqZL.js} +1 -1
- package/storybook-static/assets/{formatters-vWial7jf.js → formatters-CnFJmQFO.js} +1 -1
- package/storybook-static/assets/{formatters-runtime-DO0szrYr.js → formatters-runtime-LyrD5drJ.js} +1 -1
- package/storybook-static/assets/{foundationLib-CIqc9fhG.js → foundationLib-D-8O61ay.js} +1 -1
- package/storybook-static/assets/{hooks-DfgvMSqN.js → hooks-DbzqJvP-.js} +1 -1
- package/storybook-static/assets/iframe-hjgtoR20.js +1 -0
- package/storybook-static/assets/{iframe-BHhbrImE.js → iframe-jqJCNVG-.js} +3 -3
- package/storybook-static/assets/{info-DSZ4aUvi.js → info-DTU0XXKY.js} +1 -1
- package/storybook-static/assets/{odata-DmijE2H9.js → odata-BBbQt4pn.js} +1 -1
- package/storybook-static/assets/odata-service-B5w4YBao-BW9QLSrS.js +3 -0
- package/storybook-static/assets/{odataAndTables-m2AMS6oI.js → odataAndTables-VK5X4V6B.js} +1 -1
- package/storybook-static/assets/{odataFetchFn-CwpkgKoz.js → odataFetchFn-T6FIbpPz.js} +1 -1
- package/storybook-static/assets/{odataStoryFixtures-CBtJYQsv.js → odataStoryFixtures-pMgI1q6n.js} +1 -1
- package/storybook-static/assets/{persisted-DpSU25AR.js → persisted-EtS4vVCD.js} +1 -1
- package/storybook-static/assets/{pureUtilities-BG4ZSO63.js → pureUtilities-BIjOnY3J.js} +1 -1
- package/storybook-static/assets/{react-Bz35HWpn.js → react-BG6GAoHo.js} +1 -1
- package/storybook-static/assets/{refresh-cw-ltgf4cUB.js → refresh-cw-1qKqpsOV.js} +1 -1
- package/storybook-static/assets/{runtimeAndState-C_GrWjr8.js → runtimeAndState-BorNVnh8.js} +1 -1
- package/storybook-static/assets/{settings-2-qpVYfZn_.js → settings-2-CPrjOIso.js} +1 -1
- package/storybook-static/assets/{sortable-CrCQ3H1V.js → sortable-D6C8wTse.js} +1 -1
- package/storybook-static/assets/{syntaxhighlighter-T5IQBZDB-eOr9ght-.js → syntaxhighlighter-T5IQBZDB-ifBULuBx.js} +1 -1
- package/storybook-static/assets/{trash-2-lfhUDclN.js → trash-2-CIrQtNzc.js} +1 -1
- package/storybook-static/assets/{triangle-alert-D9YGTafY.js → triangle-alert-D3piZGn9.js} +1 -1
- package/storybook-static/assets/{useODataSelectBase-BVgxJPNn.js → useODataSelectBase-CwDThJRi.js} +1 -1
- package/storybook-static/assets/{useODataTreeData-CdLHOBnD.js → useODataTreeData-C4v28uFV.js} +1 -1
- package/storybook-static/assets/{usePickerQuery-B6U-oOS6.js → usePickerQuery-BodFjGup.js} +1 -1
- package/storybook-static/assets/{usePickerTriggerController-C-VxrzSe.js → usePickerTriggerController-BjnU7tfr.js} +1 -1
- package/storybook-static/assets/{x-CNM39xuu.js → x-CaGImgpS.js} +1 -1
- package/storybook-static/iframe.html +2 -2
- package/storybook-static/project.json +1 -1
- package/dist/chunks/CalendarView-DtacoN_c.js +0 -439
- package/dist/chunks/TextEditorLexicalClient-DVML-Nhd.js.map +0 -1
- package/dist/chunks/context-menu-BY4pYGwB.js.map +0 -1
- package/dist/chunks/date-input-DKkJO_-h.js +0 -340
- package/dist/chunks/date-input-DKkJO_-h.js.map +0 -1
- package/dist/chunks/input-BWCaVC06.js.map +0 -1
- package/dist/chunks/multi-select-01xmD1nZ.js.map +0 -1
- package/dist/chunks/select-DRf4_a1Z.js.map +0 -1
- package/storybook-static/assets/CheckBox-8XczNrjq.css +0 -1
- package/storybook-static/assets/ContextMenu-BjWu5DHB.js +0 -1
- package/storybook-static/assets/DateInput-BUgBb3aH.js +0 -1
- package/storybook-static/assets/Select-g0c0XGQY.js +0 -12
- package/storybook-static/assets/SingleDateTimeInput-CN7PyOsb.js +0 -1
- package/storybook-static/assets/SliderInput-bqFr-Lyp.js +0 -2
- package/storybook-static/assets/TabsBox-Co1vxD90.css +0 -1
- package/storybook-static/assets/TreePickerBase-Dup03AiC.js +0 -22
- package/storybook-static/assets/defaultRenderers-lMEgLPIU.js +0 -1
- package/storybook-static/assets/iframe-oIP1aL7X.js +0 -1
- package/storybook-static/assets/odata-service-B5w4YBao-BcP2cvfZ.js +0 -3
- /package/storybook-static/assets/{CheckBox.module-DPvJxTHD.js → CheckBox.module-CM_GPl_E.js} +0 -0
package/dist/chunks/{TextEditorLexicalClient-DVML-Nhd.js → TextEditorLexicalClient-BSafrkLJ.js}
RENAMED
|
@@ -1,31 +1,31 @@
|
|
|
1
1
|
import { n as e } from "./button-BOl7hYmT.js";
|
|
2
2
|
import { r as t } from "./grid-dI94AAbi.js";
|
|
3
|
-
import { n } from "./input-
|
|
3
|
+
import { n } from "./input-CAw1Loze.js";
|
|
4
4
|
import { i as r, n as i, r as a } from "./modal-DPIXoMkB.js";
|
|
5
5
|
import { t as o } from "./check-box-6HGX_KOy.js";
|
|
6
6
|
import { n as s } from "./radio-group-4j2HbemI.js";
|
|
7
7
|
import { a as c, i as l, n as u, r as d, t as f } from "./types-CxXyru6U.js";
|
|
8
|
-
import { useCallback as p, useEffect as m,
|
|
9
|
-
import { cn as
|
|
10
|
-
import { AlignCenter as
|
|
8
|
+
import { useCallback as p, useEffect as m, useMemo as h, useRef as g, useState as _ } from "react";
|
|
9
|
+
import { cn as v } from "@ryuzaki13/react-foundation-lib/utils";
|
|
10
|
+
import { AlignCenter as y, AlignJustify as b, AlignLeft as x, AlignRight as S, AtSign as C, BookType as w, BrushCleaning as T, Clock as E, ExternalLink as D, Languages as O, Link as ee, MessageSquareQuote as te, Phone as ne, PictureInPicture as re, Redo as ie, Shredder as ae, Undo as oe } from "lucide-react";
|
|
11
11
|
import { Fragment as k, jsx as A, jsxs as j } from "react/jsx-runtime";
|
|
12
|
-
import { formatPhone as
|
|
13
|
-
import { isSafe as M, validateUrl as
|
|
14
|
-
import { $generateHtmlFromNodes as
|
|
15
|
-
import { $isListItemNode as
|
|
16
|
-
import { LexicalComposer as
|
|
17
|
-
import { ContentEditable as
|
|
18
|
-
import { LexicalErrorBoundary as
|
|
19
|
-
import { HistoryPlugin as
|
|
20
|
-
import { ListPlugin as
|
|
21
|
-
import { OnChangePlugin as
|
|
22
|
-
import { RichTextPlugin as
|
|
23
|
-
import { $createHeadingNode as
|
|
12
|
+
import { formatPhone as se } from "@ryuzaki13/react-foundation-lib/formatters";
|
|
13
|
+
import { isSafe as M, validateUrl as ce } from "@ryuzaki13/react-foundation-lib/validators";
|
|
14
|
+
import { $generateHtmlFromNodes as le, $generateNodesFromDOM as ue } from "@lexical/html";
|
|
15
|
+
import { $isListItemNode as de, $isListNode as N, INSERT_ORDERED_LIST_COMMAND as fe, INSERT_UNORDERED_LIST_COMMAND as pe, ListItemNode as me, ListNode as he, REMOVE_LIST_COMMAND as P } from "@lexical/list";
|
|
16
|
+
import { LexicalComposer as ge } from "@lexical/react/LexicalComposer";
|
|
17
|
+
import { ContentEditable as _e } from "@lexical/react/LexicalContentEditable";
|
|
18
|
+
import { LexicalErrorBoundary as ve } from "@lexical/react/LexicalErrorBoundary";
|
|
19
|
+
import { HistoryPlugin as ye } from "@lexical/react/LexicalHistoryPlugin";
|
|
20
|
+
import { ListPlugin as be } from "@lexical/react/LexicalListPlugin";
|
|
21
|
+
import { OnChangePlugin as xe } from "@lexical/react/LexicalOnChangePlugin";
|
|
22
|
+
import { RichTextPlugin as Se } from "@lexical/react/LexicalRichTextPlugin";
|
|
23
|
+
import { $createHeadingNode as Ce, $createQuoteNode as we, $isHeadingNode as Te, $isQuoteNode as Ee, HeadingNode as De, QuoteNode as Oe } from "@lexical/rich-text";
|
|
24
24
|
import { useLexicalComposerContext as F } from "@lexical/react/LexicalComposerContext";
|
|
25
|
-
import { $applyNodeReplacement as I, $createParagraphNode as L, $createTextNode as R, $getRoot as
|
|
26
|
-
import { $isLinkNode as V, LinkNode as
|
|
25
|
+
import { $applyNodeReplacement as I, $createParagraphNode as L, $createTextNode as R, $getRoot as ke, $getSelection as z, $isRangeSelection as B, ElementNode as Ae, FORMAT_ELEMENT_COMMAND as je, FORMAT_TEXT_COMMAND as Me, REDO_COMMAND as Ne, UNDO_COMMAND as Pe } from "lexical";
|
|
26
|
+
import { $isLinkNode as V, LinkNode as Fe } from "@lexical/link";
|
|
27
27
|
import { $setBlocksType as H } from "@lexical/selection";
|
|
28
|
-
import { $findMatchingParent as
|
|
28
|
+
import { $findMatchingParent as Ie } from "@lexical/utils";
|
|
29
29
|
var U = {
|
|
30
30
|
toolbar: "shIOqq",
|
|
31
31
|
groupControls: "YM-4Dq"
|
|
@@ -46,31 +46,31 @@ function W({ isActive: t, disabled: n, style: r, title: i, icon: a, onClick: o }
|
|
|
46
46
|
}
|
|
47
47
|
//#endregion
|
|
48
48
|
//#region src/text-editor/toolbar/AlignmentControls.tsx
|
|
49
|
-
function
|
|
49
|
+
function Le({ onAlignmentChange: e, activeAlignment: t }) {
|
|
50
50
|
return /* @__PURE__ */ j("div", {
|
|
51
51
|
className: U.groupControls,
|
|
52
52
|
children: [
|
|
53
53
|
/* @__PURE__ */ A(W, {
|
|
54
54
|
title: "По левому краю",
|
|
55
|
-
icon: /* @__PURE__ */ A(
|
|
55
|
+
icon: /* @__PURE__ */ A(x, {}),
|
|
56
56
|
isActive: t === "left",
|
|
57
57
|
onClick: () => e("left")
|
|
58
58
|
}),
|
|
59
59
|
/* @__PURE__ */ A(W, {
|
|
60
60
|
title: "По центру",
|
|
61
|
-
icon: /* @__PURE__ */ A(
|
|
61
|
+
icon: /* @__PURE__ */ A(y, {}),
|
|
62
62
|
isActive: t === "center",
|
|
63
63
|
onClick: () => e("center")
|
|
64
64
|
}),
|
|
65
65
|
/* @__PURE__ */ A(W, {
|
|
66
66
|
title: "По правому краю",
|
|
67
|
-
icon: /* @__PURE__ */ A(
|
|
67
|
+
icon: /* @__PURE__ */ A(S, {}),
|
|
68
68
|
isActive: t === "right",
|
|
69
69
|
onClick: () => e("right")
|
|
70
70
|
}),
|
|
71
71
|
/* @__PURE__ */ A(W, {
|
|
72
72
|
title: "По ширине",
|
|
73
|
-
icon: /* @__PURE__ */ A(
|
|
73
|
+
icon: /* @__PURE__ */ A(b, {}),
|
|
74
74
|
isActive: t === "justify",
|
|
75
75
|
onClick: () => e("justify")
|
|
76
76
|
})
|
|
@@ -79,47 +79,47 @@ function Re({ onAlignmentChange: e, activeAlignment: t }) {
|
|
|
79
79
|
}
|
|
80
80
|
//#endregion
|
|
81
81
|
//#region src/text-editor/toolbar/HistoryControls.tsx
|
|
82
|
-
function
|
|
82
|
+
function Re({ onUndo: e, onRedo: t }) {
|
|
83
83
|
return /* @__PURE__ */ j("div", {
|
|
84
84
|
className: U.groupControls,
|
|
85
85
|
children: [/* @__PURE__ */ A(W, {
|
|
86
86
|
title: "Отменить последнее действие",
|
|
87
|
-
icon: /* @__PURE__ */ A(
|
|
87
|
+
icon: /* @__PURE__ */ A(oe, {}),
|
|
88
88
|
onClick: e
|
|
89
89
|
}), /* @__PURE__ */ A(W, {
|
|
90
90
|
title: "Повторить предыдущее действие",
|
|
91
|
-
icon: /* @__PURE__ */ A(
|
|
91
|
+
icon: /* @__PURE__ */ A(ie, {}),
|
|
92
92
|
onClick: t
|
|
93
93
|
})]
|
|
94
94
|
});
|
|
95
95
|
}
|
|
96
96
|
//#endregion
|
|
97
97
|
//#region src/text-editor/toolbar/LinkButtons.tsx
|
|
98
|
-
function
|
|
98
|
+
function ze({ disabled: e, onClick: t }) {
|
|
99
99
|
return /* @__PURE__ */ j("div", {
|
|
100
100
|
className: U.groupControls,
|
|
101
101
|
children: [
|
|
102
102
|
/* @__PURE__ */ A(W, {
|
|
103
103
|
title: "Добавить ссылку на статью",
|
|
104
|
-
icon: /* @__PURE__ */ A(
|
|
104
|
+
icon: /* @__PURE__ */ A(ee, {}),
|
|
105
105
|
onClick: () => t(f.LOCAL_LINK)
|
|
106
106
|
}),
|
|
107
107
|
/* @__PURE__ */ A(W, {
|
|
108
108
|
title: "Добавить ссылку",
|
|
109
109
|
disabled: e,
|
|
110
|
-
icon: /* @__PURE__ */ A(
|
|
110
|
+
icon: /* @__PURE__ */ A(D, {}),
|
|
111
111
|
onClick: () => t(f.LINK)
|
|
112
112
|
}),
|
|
113
113
|
/* @__PURE__ */ A(W, {
|
|
114
114
|
title: "Добавить телефон",
|
|
115
115
|
disabled: e,
|
|
116
|
-
icon: /* @__PURE__ */ A(
|
|
116
|
+
icon: /* @__PURE__ */ A(ne, {}),
|
|
117
117
|
onClick: () => t(f.PHONE)
|
|
118
118
|
}),
|
|
119
119
|
/* @__PURE__ */ A(W, {
|
|
120
120
|
title: "Добавить email",
|
|
121
121
|
disabled: e,
|
|
122
|
-
icon: /* @__PURE__ */ A(
|
|
122
|
+
icon: /* @__PURE__ */ A(C, {}),
|
|
123
123
|
onClick: () => t(f.EMAIL)
|
|
124
124
|
})
|
|
125
125
|
]
|
|
@@ -127,38 +127,38 @@ function Be({ disabled: e, onClick: t }) {
|
|
|
127
127
|
}
|
|
128
128
|
//#endregion
|
|
129
129
|
//#region src/text-editor/toolbar/TagButtons.tsx
|
|
130
|
-
function
|
|
130
|
+
function Be({ onClick: e }) {
|
|
131
131
|
return /* @__PURE__ */ j("div", {
|
|
132
132
|
className: U.groupControls,
|
|
133
133
|
children: [
|
|
134
134
|
/* @__PURE__ */ A(W, {
|
|
135
135
|
title: "Вставить Аббревиатуру",
|
|
136
|
-
icon: /* @__PURE__ */ A(
|
|
136
|
+
icon: /* @__PURE__ */ A(w, {}),
|
|
137
137
|
onClick: () => e(u.abbr)
|
|
138
138
|
}),
|
|
139
139
|
/* @__PURE__ */ A(W, {
|
|
140
140
|
title: "Вставить Код языка",
|
|
141
|
-
icon: /* @__PURE__ */ A(
|
|
141
|
+
icon: /* @__PURE__ */ A(O, {}),
|
|
142
142
|
onClick: () => e(u.lang)
|
|
143
143
|
}),
|
|
144
144
|
/* @__PURE__ */ A(W, {
|
|
145
145
|
title: "Вставить Дату/время",
|
|
146
|
-
icon: /* @__PURE__ */ A(
|
|
146
|
+
icon: /* @__PURE__ */ A(E, {}),
|
|
147
147
|
onClick: () => e(u.time)
|
|
148
148
|
}),
|
|
149
149
|
/* @__PURE__ */ A(W, {
|
|
150
150
|
title: "Вставить Ссылку на источник",
|
|
151
|
-
icon: /* @__PURE__ */ A(
|
|
151
|
+
icon: /* @__PURE__ */ A(te, {}),
|
|
152
152
|
onClick: () => e(u.cite)
|
|
153
153
|
}),
|
|
154
154
|
/* @__PURE__ */ A(W, {
|
|
155
155
|
title: "Вставить Удалённый фрагмент",
|
|
156
|
-
icon: /* @__PURE__ */ A(
|
|
156
|
+
icon: /* @__PURE__ */ A(ae, {}),
|
|
157
157
|
onClick: () => e(u.del)
|
|
158
158
|
}),
|
|
159
159
|
/* @__PURE__ */ A(W, {
|
|
160
160
|
title: "Вставить Добавленный фрагмент",
|
|
161
|
-
icon: /* @__PURE__ */ A(
|
|
161
|
+
icon: /* @__PURE__ */ A(re, {}),
|
|
162
162
|
onClick: () => e(u.ins)
|
|
163
163
|
})
|
|
164
164
|
]
|
|
@@ -166,7 +166,7 @@ function Ve({ onClick: e }) {
|
|
|
166
166
|
}
|
|
167
167
|
//#endregion
|
|
168
168
|
//#region src/text-editor/toolbar/TextEditorToolbarLexical.tsx
|
|
169
|
-
function
|
|
169
|
+
function Ve({ toolbarComponents: e, state: t, onBlockStyleToggle: n, onInlineStyleToggle: r, onAlignmentChange: i, onLinkClick: a, onTagClick: o, onUndo: s, onRedo: c, onCleanTag: u }) {
|
|
170
170
|
let f = {
|
|
171
171
|
history: !0,
|
|
172
172
|
...e || {}
|
|
@@ -195,23 +195,23 @@ function He({ toolbarComponents: e, state: t, onBlockStyleToggle: n, onInlineSty
|
|
|
195
195
|
onClick: r
|
|
196
196
|
}, e.style))
|
|
197
197
|
}), /* @__PURE__ */ A("hr", {})] }),
|
|
198
|
-
f.alignment && /* @__PURE__ */ j(k, { children: [/* @__PURE__ */ A(
|
|
198
|
+
f.alignment && /* @__PURE__ */ j(k, { children: [/* @__PURE__ */ A(Le, {
|
|
199
199
|
activeAlignment: t.activeAlignment,
|
|
200
200
|
onAlignmentChange: i
|
|
201
201
|
}), /* @__PURE__ */ A("hr", {})] }),
|
|
202
|
-
f.links && /* @__PURE__ */ j(k, { children: [/* @__PURE__ */ A(
|
|
202
|
+
f.links && /* @__PURE__ */ j(k, { children: [/* @__PURE__ */ A(ze, {
|
|
203
203
|
disabled: t.isTextUnselected,
|
|
204
204
|
onClick: a
|
|
205
205
|
}), /* @__PURE__ */ A("hr", {})] }),
|
|
206
|
-
f.tags && /* @__PURE__ */ j(k, { children: [/* @__PURE__ */ A(
|
|
207
|
-
f.history && /* @__PURE__ */ j(k, { children: [/* @__PURE__ */ A(
|
|
206
|
+
f.tags && /* @__PURE__ */ j(k, { children: [/* @__PURE__ */ A(Be, { onClick: o }), /* @__PURE__ */ A("hr", {})] }),
|
|
207
|
+
f.history && /* @__PURE__ */ j(k, { children: [/* @__PURE__ */ A(Re, {
|
|
208
208
|
onUndo: s,
|
|
209
209
|
onRedo: c
|
|
210
210
|
}), /* @__PURE__ */ A("hr", {})] }),
|
|
211
211
|
/* @__PURE__ */ A(W, {
|
|
212
212
|
disabled: t.isTextUnselected,
|
|
213
213
|
title: "Очистить выбранный тег",
|
|
214
|
-
icon: /* @__PURE__ */ A(
|
|
214
|
+
icon: /* @__PURE__ */ A(T, {}),
|
|
215
215
|
onClick: u
|
|
216
216
|
})
|
|
217
217
|
]
|
|
@@ -219,11 +219,11 @@ function He({ toolbarComponents: e, state: t, onBlockStyleToggle: n, onInlineSty
|
|
|
219
219
|
}
|
|
220
220
|
//#endregion
|
|
221
221
|
//#region src/text-editor/lexical/plugins/InitialHtmlPlugin.tsx
|
|
222
|
-
function
|
|
223
|
-
let [n] = F(), r =
|
|
222
|
+
function He({ initialHTML: e, shouldSkip: t }) {
|
|
223
|
+
let [n] = F(), r = g(!1);
|
|
224
224
|
return m(() => {
|
|
225
225
|
t || !e || r.current || typeof window > "u" || (r.current = !0, n.update(() => {
|
|
226
|
-
let t =
|
|
226
|
+
let t = ke(), r = new DOMParser().parseFromString(e, "text/html"), i = ue(n, r);
|
|
227
227
|
if (t.clear(), i.length === 0) {
|
|
228
228
|
t.append(L());
|
|
229
229
|
return;
|
|
@@ -250,7 +250,7 @@ var G = {
|
|
|
250
250
|
CODE: !1
|
|
251
251
|
},
|
|
252
252
|
activeAlignment: null
|
|
253
|
-
},
|
|
253
|
+
}, Ue = (e) => {
|
|
254
254
|
switch (e) {
|
|
255
255
|
case "h3": return "header-three";
|
|
256
256
|
case "h4": return "header-four";
|
|
@@ -258,7 +258,7 @@ var G = {
|
|
|
258
258
|
case "h6": return "header-six";
|
|
259
259
|
default: return "unstyled";
|
|
260
260
|
}
|
|
261
|
-
},
|
|
261
|
+
}, We = (e) => {
|
|
262
262
|
switch (e) {
|
|
263
263
|
case "header-three": return "h3";
|
|
264
264
|
case "header-four": return "h4";
|
|
@@ -266,7 +266,7 @@ var G = {
|
|
|
266
266
|
case "header-six": return "h6";
|
|
267
267
|
default: return null;
|
|
268
268
|
}
|
|
269
|
-
},
|
|
269
|
+
}, Ge = (e) => {
|
|
270
270
|
switch (e) {
|
|
271
271
|
case "BOLD": return "bold";
|
|
272
272
|
case "ITALIC": return "italic";
|
|
@@ -276,16 +276,16 @@ var G = {
|
|
|
276
276
|
case "CODE": return "code";
|
|
277
277
|
default: return null;
|
|
278
278
|
}
|
|
279
|
-
},
|
|
279
|
+
}, Ke = () => {
|
|
280
280
|
let e = z();
|
|
281
281
|
if (!B(e)) return "unstyled";
|
|
282
282
|
let t = e.anchor.getNode().getTopLevelElementOrThrow();
|
|
283
|
-
if (
|
|
283
|
+
if (de(t)) {
|
|
284
284
|
let e = t.getParent();
|
|
285
285
|
if (N(e)) return e.getListType() === "bullet" ? "unordered-list-item" : "ordered-list-item";
|
|
286
286
|
}
|
|
287
|
-
return N(t) ? t.getListType() === "bullet" ? "unordered-list-item" : "ordered-list-item" :
|
|
288
|
-
},
|
|
287
|
+
return N(t) ? t.getListType() === "bullet" ? "unordered-list-item" : "ordered-list-item" : Te(t) ? Ue(t.getTag()) : Ee(t) ? "blockquote" : t.getType() === "paragraph" ? "unstyled" : t.getType();
|
|
288
|
+
}, qe = () => {
|
|
289
289
|
let e = z();
|
|
290
290
|
if (!B(e)) return null;
|
|
291
291
|
let t = e.anchor.getNode().getTopLevelElementOrThrow().getFormatType();
|
|
@@ -296,10 +296,10 @@ var G = {
|
|
|
296
296
|
case "justify": return t;
|
|
297
297
|
default: return null;
|
|
298
298
|
}
|
|
299
|
-
},
|
|
299
|
+
}, Je = () => {
|
|
300
300
|
let e = z();
|
|
301
301
|
return B(e) ? {
|
|
302
|
-
blockType:
|
|
302
|
+
blockType: Ke(),
|
|
303
303
|
isTextUnselected: e.isCollapsed(),
|
|
304
304
|
activeInlineStyles: {
|
|
305
305
|
BOLD: e.hasFormat("bold"),
|
|
@@ -309,16 +309,16 @@ var G = {
|
|
|
309
309
|
HIGHLIGHT: e.hasFormat("highlight"),
|
|
310
310
|
CODE: e.hasFormat("code")
|
|
311
311
|
},
|
|
312
|
-
activeAlignment:
|
|
312
|
+
activeAlignment: qe()
|
|
313
313
|
} : G;
|
|
314
314
|
};
|
|
315
315
|
//#endregion
|
|
316
316
|
//#region src/text-editor/lexical/plugins/SelectionStatePlugin.tsx
|
|
317
|
-
function
|
|
317
|
+
function Ye({ onEditorReady: e, onStateChange: t }) {
|
|
318
318
|
let [n] = F();
|
|
319
319
|
return m(() => (e(n), n.registerUpdateListener(({ editorState: e }) => {
|
|
320
320
|
e.read(() => {
|
|
321
|
-
t(
|
|
321
|
+
t(Je());
|
|
322
322
|
});
|
|
323
323
|
})), [
|
|
324
324
|
n,
|
|
@@ -328,7 +328,7 @@ function Xe({ onEditorReady: e, onStateChange: t }) {
|
|
|
328
328
|
}
|
|
329
329
|
//#endregion
|
|
330
330
|
//#region src/text-editor/lib/serialization/createLexicalRaw.ts
|
|
331
|
-
var
|
|
331
|
+
var Xe = (e) => ({
|
|
332
332
|
format: "lexical",
|
|
333
333
|
version: 1,
|
|
334
334
|
editorState: e.toJSON()
|
|
@@ -336,7 +336,7 @@ var Ze = (e) => ({
|
|
|
336
336
|
let t = 0, n = e;
|
|
337
337
|
for (; n;) t += 1, n = n.getParent();
|
|
338
338
|
return t;
|
|
339
|
-
},
|
|
339
|
+
}, Ze = (e) => {
|
|
340
340
|
if (!(e instanceof HTMLAnchorElement)) return { node: null };
|
|
341
341
|
let t = e.textContent;
|
|
342
342
|
return (t === null || t === "") && e.children.length === 0 ? { node: null } : { node: J(e.getAttribute("href") || "", {
|
|
@@ -348,7 +348,7 @@ var Ze = (e) => ({
|
|
|
348
348
|
add: null,
|
|
349
349
|
text: t
|
|
350
350
|
}) };
|
|
351
|
-
}, q = class e extends
|
|
351
|
+
}, q = class e extends Fe {
|
|
352
352
|
__ariaLabel;
|
|
353
353
|
__qrCode;
|
|
354
354
|
__add;
|
|
@@ -374,7 +374,7 @@ var Ze = (e) => ({
|
|
|
374
374
|
}
|
|
375
375
|
static importDOM() {
|
|
376
376
|
return { a: () => ({
|
|
377
|
-
conversion:
|
|
377
|
+
conversion: Ze,
|
|
378
378
|
priority: 2
|
|
379
379
|
}) };
|
|
380
380
|
}
|
|
@@ -446,7 +446,7 @@ var Ze = (e) => ({
|
|
|
446
446
|
let t = this.getWritable();
|
|
447
447
|
return t.__text = e, this;
|
|
448
448
|
}
|
|
449
|
-
}, J = (e = "", t) => I(new q(e, t)), Y = (e) => e instanceof q,
|
|
449
|
+
}, J = (e = "", t) => I(new q(e, t)), Y = (e) => e instanceof q, Qe = (e) => {
|
|
450
450
|
let t = {};
|
|
451
451
|
return Array.from(e.attributes).forEach((e) => {
|
|
452
452
|
e.name !== "class" && (t[e.name] = e.value);
|
|
@@ -463,8 +463,8 @@ var Ze = (e) => ({
|
|
|
463
463
|
"ins"
|
|
464
464
|
].includes(t)) return { node: null };
|
|
465
465
|
let n = e.textContent;
|
|
466
|
-
return (n === null || n === "") && e.children.length === 0 ? { node: null } : { node: Q(t,
|
|
467
|
-
}, Z = class e extends
|
|
466
|
+
return (n === null || n === "") && e.children.length === 0 ? { node: null } : { node: Q(t, Qe(e), n) };
|
|
467
|
+
}, Z = class e extends Ae {
|
|
468
468
|
__tag;
|
|
469
469
|
__attributes;
|
|
470
470
|
__text;
|
|
@@ -578,10 +578,10 @@ var Ze = (e) => ({
|
|
|
578
578
|
let t = this.getWritable();
|
|
579
579
|
return t.__text = e, this;
|
|
580
580
|
}
|
|
581
|
-
}, Q = (e, t = {}, n = null) => I(new Z(e, t, n)),
|
|
581
|
+
}, Q = (e, t = {}, n = null) => I(new Z(e, t, n)), $e = (e) => e instanceof Z;
|
|
582
582
|
//#endregion
|
|
583
583
|
//#region src/text-editor/model/hooks/useTextEditorLexicalActions.ts
|
|
584
|
-
function
|
|
584
|
+
function et({ editor: e, toolbarState: t, hasLocalLinkDialog: n, onOpenLinkDialog: r, onOpenTagDialog: i }) {
|
|
585
585
|
let a = p((n) => {
|
|
586
586
|
if (e) {
|
|
587
587
|
if (n === "unordered-list-item") {
|
|
@@ -589,7 +589,7 @@ function tt({ editor: e, toolbarState: t, hasLocalLinkDialog: n, onOpenLinkDialo
|
|
|
589
589
|
e.dispatchCommand(P, void 0);
|
|
590
590
|
return;
|
|
591
591
|
}
|
|
592
|
-
e.dispatchCommand(
|
|
592
|
+
e.dispatchCommand(pe, void 0);
|
|
593
593
|
return;
|
|
594
594
|
}
|
|
595
595
|
if (n === "ordered-list-item") {
|
|
@@ -597,7 +597,7 @@ function tt({ editor: e, toolbarState: t, hasLocalLinkDialog: n, onOpenLinkDialo
|
|
|
597
597
|
e.dispatchCommand(P, void 0);
|
|
598
598
|
return;
|
|
599
599
|
}
|
|
600
|
-
e.dispatchCommand(
|
|
600
|
+
e.dispatchCommand(fe, void 0);
|
|
601
601
|
return;
|
|
602
602
|
}
|
|
603
603
|
e.update(() => {
|
|
@@ -608,23 +608,23 @@ function tt({ editor: e, toolbarState: t, hasLocalLinkDialog: n, onOpenLinkDialo
|
|
|
608
608
|
return;
|
|
609
609
|
}
|
|
610
610
|
if (n === "blockquote") {
|
|
611
|
-
H(e, () =>
|
|
611
|
+
H(e, () => we());
|
|
612
612
|
return;
|
|
613
613
|
}
|
|
614
|
-
let t =
|
|
615
|
-
t && H(e, () =>
|
|
614
|
+
let t = We(n);
|
|
615
|
+
t && H(e, () => Ce(t));
|
|
616
616
|
});
|
|
617
617
|
}
|
|
618
618
|
}, [e, t.blockType]), o = p((t) => {
|
|
619
619
|
if (!e) return;
|
|
620
|
-
let n =
|
|
621
|
-
n && e.dispatchCommand(
|
|
620
|
+
let n = Ge(t);
|
|
621
|
+
n && e.dispatchCommand(Me, n);
|
|
622
622
|
}, [e]), s = p((t) => {
|
|
623
|
-
e && e.dispatchCommand(
|
|
623
|
+
e && e.dispatchCommand(je, t);
|
|
624
624
|
}, [e]), c = p(() => {
|
|
625
|
-
e && e.dispatchCommand(Fe, void 0);
|
|
626
|
-
}, [e]), l = p(() => {
|
|
627
625
|
e && e.dispatchCommand(Pe, void 0);
|
|
626
|
+
}, [e]), l = p(() => {
|
|
627
|
+
e && e.dispatchCommand(Ne, void 0);
|
|
628
628
|
}, [e]), u = p(() => {
|
|
629
629
|
if (!e) return "";
|
|
630
630
|
let t = "";
|
|
@@ -675,7 +675,7 @@ function tt({ editor: e, toolbarState: t, hasLocalLinkDialog: n, onOpenLinkDialo
|
|
|
675
675
|
t = "";
|
|
676
676
|
return;
|
|
677
677
|
}
|
|
678
|
-
let n = e.getTextContent(), r = e.anchor.getNode(), i =
|
|
678
|
+
let n = e.getTextContent(), r = e.anchor.getNode(), i = Ie(r, (e) => Y(e) || V(e));
|
|
679
679
|
if (Y(i)) {
|
|
680
680
|
t = {
|
|
681
681
|
url: i.getURL(),
|
|
@@ -724,7 +724,7 @@ function tt({ editor: e, toolbarState: t, hasLocalLinkDialog: n, onOpenLinkDialo
|
|
|
724
724
|
let t = e.getNodes(), n = /* @__PURE__ */ new Set();
|
|
725
725
|
t.forEach((e) => {
|
|
726
726
|
let t = e;
|
|
727
|
-
for (; t;)
|
|
727
|
+
for (; t;) $e(t) && n.add(t), t = t.getParent();
|
|
728
728
|
}), Array.from(n).sort((e, t) => K(t) - K(e)).forEach((e) => {
|
|
729
729
|
e.isAttached() && (e.getChildren().forEach((t) => e.insertBefore(t)), e.remove());
|
|
730
730
|
});
|
|
@@ -750,34 +750,30 @@ var $ = {
|
|
|
750
750
|
};
|
|
751
751
|
//#endregion
|
|
752
752
|
//#region src/text-editor/EmailDialog.tsx
|
|
753
|
-
function
|
|
754
|
-
let
|
|
753
|
+
function tt({ onClose: t, onConfirm: o, initialState: s }) {
|
|
754
|
+
let c = M(s) && typeof s == "string" ? {
|
|
755
755
|
text: "",
|
|
756
756
|
add: "",
|
|
757
757
|
ariaLabel: "",
|
|
758
|
-
url:
|
|
759
|
-
} : c)
|
|
760
|
-
|
|
761
|
-
t && M(g) && (u(g.url ?? ""), f(g.ariaLabel ?? ""));
|
|
762
|
-
}, [t, g]);
|
|
763
|
-
let _ = (e) => /^[^\s@]+@[^\s@]+\.[^\s@]+$/.test(e) ? !0 : (h("Некорректный email адрес"), !1), b = (e) => {
|
|
764
|
-
if (e.preventDefault(), _(l)) {
|
|
758
|
+
url: s
|
|
759
|
+
} : s, [l, u] = _(() => M(c) ? c.url ?? "" : ""), [d, f] = _(() => M(c) ? c.ariaLabel ?? "" : ""), [p, m] = _(null), h = (e) => /^[^\s@]+@[^\s@]+\.[^\s@]+$/.test(e) ? !0 : (m("Некорректный email адрес"), !1), g = (e) => {
|
|
760
|
+
if (e.preventDefault(), h(l)) {
|
|
765
761
|
if (!d) {
|
|
766
|
-
|
|
762
|
+
m("Добавьте описание для email");
|
|
767
763
|
return;
|
|
768
764
|
}
|
|
769
|
-
|
|
765
|
+
o(`mailto:${l}`, "", "", d, !1), y();
|
|
770
766
|
}
|
|
771
|
-
},
|
|
772
|
-
u(""), f(""),
|
|
767
|
+
}, y = () => {
|
|
768
|
+
u(""), f(""), m(null), t();
|
|
773
769
|
};
|
|
774
770
|
return /* @__PURE__ */ j(i, {
|
|
775
|
-
isOpen:
|
|
776
|
-
onClose:
|
|
771
|
+
isOpen: !0,
|
|
772
|
+
onClose: y,
|
|
777
773
|
title: "Ссылка на email",
|
|
778
774
|
size: "md",
|
|
779
775
|
children: [/* @__PURE__ */ A(a, { children: /* @__PURE__ */ j("div", {
|
|
780
|
-
className:
|
|
776
|
+
className: v("flexColumn", "gapMd"),
|
|
781
777
|
children: [
|
|
782
778
|
/* @__PURE__ */ A(n, {
|
|
783
779
|
label: "Email адрес",
|
|
@@ -806,12 +802,12 @@ function nt({ isOpen: t, onClose: o, onConfirm: s, initialState: c }) {
|
|
|
806
802
|
}) }), /* @__PURE__ */ j(r, { children: [/* @__PURE__ */ A(e, {
|
|
807
803
|
appearance: "outline",
|
|
808
804
|
tone: "error",
|
|
809
|
-
onClick:
|
|
805
|
+
onClick: y,
|
|
810
806
|
children: "Отмена"
|
|
811
807
|
}), /* @__PURE__ */ A(e, {
|
|
812
808
|
appearance: "outline",
|
|
813
809
|
tone: "success",
|
|
814
|
-
onClick:
|
|
810
|
+
onClick: g,
|
|
815
811
|
disabled: !l || !d,
|
|
816
812
|
children: "Подтвердить"
|
|
817
813
|
})] })]
|
|
@@ -819,36 +815,32 @@ function nt({ isOpen: t, onClose: o, onConfirm: s, initialState: c }) {
|
|
|
819
815
|
}
|
|
820
816
|
//#endregion
|
|
821
817
|
//#region src/text-editor/LinkDialog.tsx
|
|
822
|
-
function
|
|
823
|
-
let
|
|
818
|
+
function nt({ onClose: s, onConfirm: c, initialState: l }) {
|
|
819
|
+
let u = M(l) && typeof l == "string" ? {
|
|
824
820
|
text: "",
|
|
825
821
|
add: "",
|
|
826
822
|
ariaLabel: "",
|
|
827
|
-
url:
|
|
828
|
-
} : u)
|
|
829
|
-
|
|
830
|
-
|
|
831
|
-
}, [s, x]);
|
|
832
|
-
let S = (e) => {
|
|
833
|
-
f(e), g && _(null);
|
|
834
|
-
}, C = (e) => {
|
|
823
|
+
url: l
|
|
824
|
+
} : l, [d, f] = _(() => M(u) ? u.url ?? "" : ""), [p, m] = _(() => M(u) ? u.ariaLabel ?? "" : ""), [h, g] = _(null), [v, y] = _(!1), b = (e) => {
|
|
825
|
+
f(e), h && g(null);
|
|
826
|
+
}, x = (e) => {
|
|
835
827
|
e.preventDefault();
|
|
836
|
-
let t =
|
|
828
|
+
let t = ce(d);
|
|
837
829
|
if (!t.isValid) {
|
|
838
|
-
|
|
830
|
+
g(t.error);
|
|
839
831
|
return;
|
|
840
832
|
}
|
|
841
833
|
if (!p) {
|
|
842
|
-
|
|
834
|
+
g("добавьте описание для ссылки");
|
|
843
835
|
return;
|
|
844
836
|
}
|
|
845
|
-
|
|
846
|
-
},
|
|
847
|
-
f(""),
|
|
837
|
+
c(d.startsWith("http") ? d : `https://${d}`, "", "", p, v), S();
|
|
838
|
+
}, S = () => {
|
|
839
|
+
f(""), m(""), g(null), s();
|
|
848
840
|
};
|
|
849
841
|
return /* @__PURE__ */ j(i, {
|
|
850
|
-
isOpen:
|
|
851
|
-
onClose:
|
|
842
|
+
isOpen: !0,
|
|
843
|
+
onClose: S,
|
|
852
844
|
title: "Ссылка на внешний url",
|
|
853
845
|
size: "md",
|
|
854
846
|
children: [/* @__PURE__ */ A(a, { children: /* @__PURE__ */ j(t, {
|
|
@@ -857,41 +849,41 @@ function rt({ isOpen: s, onClose: c, onConfirm: l, initialState: u }) {
|
|
|
857
849
|
/* @__PURE__ */ A(n, {
|
|
858
850
|
label: "Полный URL адрес",
|
|
859
851
|
value: d,
|
|
860
|
-
onChange:
|
|
852
|
+
onChange: b,
|
|
861
853
|
placeholder: "https://somesite.ru"
|
|
862
854
|
}),
|
|
863
|
-
|
|
855
|
+
h && /* @__PURE__ */ j("div", {
|
|
864
856
|
className: "textColorDanger",
|
|
865
857
|
children: [
|
|
866
858
|
/* @__PURE__ */ A("strong", { children: "Ошибка ввода:" }),
|
|
867
859
|
" ",
|
|
868
860
|
/* @__PURE__ */ A("span", {
|
|
869
861
|
className: "fontItalic",
|
|
870
|
-
children:
|
|
862
|
+
children: h
|
|
871
863
|
})
|
|
872
864
|
]
|
|
873
865
|
}),
|
|
874
866
|
/* @__PURE__ */ A(n, {
|
|
875
867
|
label: "Текст для экранных читалок",
|
|
876
868
|
value: p,
|
|
877
|
-
onChange:
|
|
869
|
+
onChange: m,
|
|
878
870
|
placeholder: "Ссылка на официальный сайт городской думмы"
|
|
879
871
|
}),
|
|
880
872
|
/* @__PURE__ */ A(o, {
|
|
881
873
|
title: "Показать кнопку для генерации QR кода ссылки",
|
|
882
|
-
value:
|
|
883
|
-
onChange:
|
|
874
|
+
value: v,
|
|
875
|
+
onChange: y
|
|
884
876
|
})
|
|
885
877
|
]
|
|
886
878
|
}) }), /* @__PURE__ */ j(r, { children: [/* @__PURE__ */ A(e, {
|
|
887
879
|
appearance: "outline",
|
|
888
880
|
tone: "error",
|
|
889
|
-
onClick:
|
|
881
|
+
onClick: S,
|
|
890
882
|
children: "Отмена"
|
|
891
883
|
}), /* @__PURE__ */ A(e, {
|
|
892
884
|
appearance: "outline",
|
|
893
885
|
tone: "success",
|
|
894
|
-
onClick:
|
|
886
|
+
onClick: x,
|
|
895
887
|
disabled: !d || !p,
|
|
896
888
|
children: "Подтвердить"
|
|
897
889
|
})] })]
|
|
@@ -899,31 +891,27 @@ function rt({ isOpen: s, onClose: c, onConfirm: l, initialState: u }) {
|
|
|
899
891
|
}
|
|
900
892
|
//#endregion
|
|
901
893
|
//#region src/text-editor/PhoneDialog.tsx
|
|
902
|
-
function
|
|
903
|
-
let
|
|
894
|
+
function rt({ onClose: o, onConfirm: s, initialState: c }) {
|
|
895
|
+
let l = M(c) && typeof c == "string" ? {
|
|
904
896
|
text: "",
|
|
905
897
|
add: "",
|
|
906
898
|
ariaLabel: "",
|
|
907
|
-
url:
|
|
908
|
-
} : l)
|
|
909
|
-
|
|
910
|
-
|
|
911
|
-
|
|
912
|
-
|
|
913
|
-
|
|
914
|
-
}, C = (e) => e.length === 10 || (b("номер телефона должен содержать 10 цифр"), !1), w = (e) => {
|
|
915
|
-
if (e.preventDefault(), !C(u)) return;
|
|
916
|
-
if (!h) {
|
|
917
|
-
b("добавьте описание для телефона");
|
|
899
|
+
url: c
|
|
900
|
+
} : c, u = M(l) ? (l.url ?? "").replace(/\D/g, "").slice(0, 11).replace(/^7/, "") : "", d = M(l) ? l.add ? (l.add ?? "").replace(/\D/g, "") : (l.url ?? "").replace(/\D/g, "").slice(11) : "", [f, p] = _(u), [m, h] = _(d), [g, y] = _(() => M(l) ? l.ariaLabel ?? "" : ""), [b, x] = _(null), S = (e) => {
|
|
901
|
+
e = e.replace(/\D/g, ""), e.length <= 10 ? (p(e), x(null)) : x("нельзя ввести более 10 цифр");
|
|
902
|
+
}, C = (e) => e.length === 10 || (x("номер телефона должен содержать 10 цифр"), !1), w = (e) => {
|
|
903
|
+
if (e.preventDefault(), !C(f)) return;
|
|
904
|
+
if (!g) {
|
|
905
|
+
x("добавьте описание для телефона");
|
|
918
906
|
return;
|
|
919
907
|
}
|
|
920
|
-
let t =
|
|
921
|
-
|
|
908
|
+
let t = se(f);
|
|
909
|
+
s(`tel:${`+7${f}`}`, m ? `${t} доб. ${m}` : t, m, g, !1), T();
|
|
922
910
|
}, T = () => {
|
|
923
|
-
|
|
911
|
+
p(""), y(""), x(null), o();
|
|
924
912
|
};
|
|
925
913
|
return /* @__PURE__ */ j(i, {
|
|
926
|
-
isOpen:
|
|
914
|
+
isOpen: !0,
|
|
927
915
|
onClose: T,
|
|
928
916
|
title: "Ссылка на телефон",
|
|
929
917
|
size: "md",
|
|
@@ -931,37 +919,37 @@ function it({ isOpen: o, onClose: s, onConfirm: c, initialState: l }) {
|
|
|
931
919
|
gap: "md",
|
|
932
920
|
children: [
|
|
933
921
|
/* @__PURE__ */ j("div", {
|
|
934
|
-
className:
|
|
922
|
+
className: v("flex", "alignItemsEnd", "gapSm"),
|
|
935
923
|
children: [/* @__PURE__ */ A(n, {
|
|
936
924
|
label: "Номер телефона без 7-ки",
|
|
937
925
|
description: "Вводится только номер (10) цифр без каких-либо дополнительных символов. Ссылка будет привязана к текущему выделенному фрагменту текста. Поэтому текст самой ссылки можно оформить грамотно, например: +7 (3522) 12-34-56 доб. 100",
|
|
938
|
-
value:
|
|
926
|
+
value: f,
|
|
939
927
|
onChange: S,
|
|
940
928
|
placeholder: "3522123456",
|
|
941
929
|
className: "flex1"
|
|
942
930
|
}), /* @__PURE__ */ A(n, {
|
|
943
931
|
label: "Добавочный номер",
|
|
944
|
-
value:
|
|
945
|
-
onChange:
|
|
932
|
+
value: m,
|
|
933
|
+
onChange: h,
|
|
946
934
|
placeholder: "100"
|
|
947
935
|
})]
|
|
948
936
|
}),
|
|
949
|
-
|
|
937
|
+
b && /* @__PURE__ */ j("div", {
|
|
950
938
|
className: "textColorDanger",
|
|
951
939
|
children: [
|
|
952
940
|
/* @__PURE__ */ A("strong", { children: "Ошибка ввода:" }),
|
|
953
941
|
" ",
|
|
954
942
|
/* @__PURE__ */ A("span", {
|
|
955
943
|
className: "fontItalic",
|
|
956
|
-
children:
|
|
944
|
+
children: b
|
|
957
945
|
})
|
|
958
946
|
]
|
|
959
947
|
}),
|
|
960
948
|
/* @__PURE__ */ A(n, {
|
|
961
949
|
label: "Текст для экранных читалок",
|
|
962
950
|
description: "Обязательное поле для организации доступности ссылки для лиц с ОВЗ, использующих скринридеры",
|
|
963
|
-
value:
|
|
964
|
-
onChange:
|
|
951
|
+
value: g,
|
|
952
|
+
onChange: y,
|
|
965
953
|
placeholder: "Контактный телефон директора"
|
|
966
954
|
})
|
|
967
955
|
]
|
|
@@ -974,93 +962,81 @@ function it({ isOpen: o, onClose: s, onConfirm: c, initialState: l }) {
|
|
|
974
962
|
appearance: "solid",
|
|
975
963
|
tone: "success",
|
|
976
964
|
onClick: w,
|
|
977
|
-
disabled: !
|
|
965
|
+
disabled: !f || !g,
|
|
978
966
|
children: "Подтвердить"
|
|
979
967
|
})] })]
|
|
980
968
|
});
|
|
981
969
|
}
|
|
982
970
|
//#endregion
|
|
983
971
|
//#region src/text-editor/SemanticDialog.tsx
|
|
984
|
-
function
|
|
985
|
-
let [
|
|
986
|
-
|
|
987
|
-
if (o && !b) {
|
|
988
|
-
let e = l.fields.reduce((e, t) => (e[t.name] = d[t.name] ?? "", e), {});
|
|
989
|
-
g(e), y({}), x(!0);
|
|
990
|
-
} else !o && b && x(!1);
|
|
991
|
-
}, [
|
|
992
|
-
o,
|
|
993
|
-
l.fields,
|
|
994
|
-
d,
|
|
995
|
-
b
|
|
996
|
-
]);
|
|
997
|
-
let S = (e, t) => {
|
|
998
|
-
g((n) => ({
|
|
972
|
+
function it({ onClose: o, onConfirm: s, config: c, initialText: l = "", initialState: u = {} }) {
|
|
973
|
+
let [d, f] = _(l), [p, m] = _(() => c.fields.reduce((e, t) => (e[t.name] = u[t.name] ?? "", e), {})), [h, g] = _({}), v = (e, t) => {
|
|
974
|
+
m((n) => ({
|
|
999
975
|
...n,
|
|
1000
976
|
[e]: t
|
|
1001
|
-
})),
|
|
977
|
+
})), g((t) => ({
|
|
1002
978
|
...t,
|
|
1003
979
|
[e]: null
|
|
1004
980
|
}));
|
|
1005
|
-
},
|
|
981
|
+
}, y = () => {
|
|
1006
982
|
let e = {}, t = !0;
|
|
1007
|
-
|
|
1008
|
-
for (let n of
|
|
1009
|
-
let r =
|
|
983
|
+
d.trim() || (e.text = "Обязательное поле", t = !1);
|
|
984
|
+
for (let n of c.fields) {
|
|
985
|
+
let r = p[n.name]?.trim();
|
|
1010
986
|
if (n.required && !r) e[n.name] = "Обязательное поле", t = !1;
|
|
1011
987
|
else if (n.validate) {
|
|
1012
988
|
let i = n.validate(r);
|
|
1013
989
|
i && (e[n.name] = i, t = !1);
|
|
1014
990
|
}
|
|
1015
991
|
}
|
|
1016
|
-
return
|
|
992
|
+
return g(e), t;
|
|
1017
993
|
};
|
|
1018
994
|
return /* @__PURE__ */ j(i, {
|
|
1019
|
-
isOpen:
|
|
1020
|
-
onClose:
|
|
1021
|
-
title: `Вставка <${
|
|
995
|
+
isOpen: !0,
|
|
996
|
+
onClose: o,
|
|
997
|
+
title: `Вставка <${c.tagName}>`,
|
|
1022
998
|
size: "md",
|
|
1023
999
|
children: [/* @__PURE__ */ A(a, { children: /* @__PURE__ */ j(t, {
|
|
1024
1000
|
gap: "md",
|
|
1025
1001
|
children: [
|
|
1026
1002
|
/* @__PURE__ */ j("div", { children: [
|
|
1027
|
-
|
|
1003
|
+
c.description,
|
|
1028
1004
|
".",
|
|
1029
1005
|
/* @__PURE__ */ A("br", {})
|
|
1030
1006
|
] }),
|
|
1031
1007
|
/* @__PURE__ */ j("div", { children: [
|
|
1032
1008
|
/* @__PURE__ */ A("strong", { children: "Пример:" }),
|
|
1033
1009
|
" ",
|
|
1034
|
-
|
|
1010
|
+
c.example
|
|
1035
1011
|
] }),
|
|
1036
1012
|
/* @__PURE__ */ A(n, {
|
|
1037
|
-
label:
|
|
1038
|
-
description: `Данный текст будет вставлен в редактор и обёрнуть в специальный семантический тег ${
|
|
1039
|
-
value:
|
|
1040
|
-
onChange:
|
|
1041
|
-
error:
|
|
1013
|
+
label: c.title,
|
|
1014
|
+
description: `Данный текст будет вставлен в редактор и обёрнуть в специальный семантический тег ${c.tagName}`,
|
|
1015
|
+
value: d,
|
|
1016
|
+
onChange: f,
|
|
1017
|
+
error: h.text ?? void 0,
|
|
1042
1018
|
required: !0
|
|
1043
1019
|
}),
|
|
1044
|
-
|
|
1020
|
+
c.fields.map((e) => /* @__PURE__ */ A(n, {
|
|
1045
1021
|
label: e.label,
|
|
1046
1022
|
description: e.description,
|
|
1047
1023
|
placeholder: e.placeholder,
|
|
1048
|
-
value:
|
|
1049
|
-
onChange: (t) =>
|
|
1050
|
-
error:
|
|
1024
|
+
value: p[e.name] ?? "",
|
|
1025
|
+
onChange: (t) => v(e.name, t),
|
|
1026
|
+
error: h[e.name] ?? void 0,
|
|
1051
1027
|
required: e.required
|
|
1052
1028
|
}, e.name))
|
|
1053
1029
|
]
|
|
1054
1030
|
}) }), /* @__PURE__ */ j(r, { children: [/* @__PURE__ */ A(e, {
|
|
1055
1031
|
appearance: "solid",
|
|
1056
1032
|
tone: "error",
|
|
1057
|
-
onClick:
|
|
1033
|
+
onClick: o,
|
|
1058
1034
|
children: "Отмена"
|
|
1059
1035
|
}), /* @__PURE__ */ A(e, {
|
|
1060
1036
|
appearance: "solid",
|
|
1061
1037
|
tone: "success",
|
|
1062
1038
|
onClick: () => {
|
|
1063
|
-
|
|
1039
|
+
y() && (s(c.tagName, d.trim(), p), o());
|
|
1064
1040
|
},
|
|
1065
1041
|
children: "Подтвердить"
|
|
1066
1042
|
})] })]
|
|
@@ -1068,7 +1044,7 @@ function at({ isOpen: o, onClose: s, onConfirm: c, config: l, initialText: u = "
|
|
|
1068
1044
|
}
|
|
1069
1045
|
//#endregion
|
|
1070
1046
|
//#region src/text-editor/semanticTagConfigs.tsx
|
|
1071
|
-
var
|
|
1047
|
+
var at = {
|
|
1072
1048
|
[u.abbr]: {
|
|
1073
1049
|
tagName: "abbr",
|
|
1074
1050
|
title: "Аббревиатура",
|
|
@@ -1204,51 +1180,45 @@ var ot = {
|
|
|
1204
1180
|
};
|
|
1205
1181
|
//#endregion
|
|
1206
1182
|
//#region src/text-editor/TimeDialog.tsx
|
|
1207
|
-
function
|
|
1208
|
-
let [
|
|
1209
|
-
f(e?.mode ?? "date"), g(e?.from ?? ""), y(e?.to ?? ""), x({});
|
|
1210
|
-
});
|
|
1211
|
-
m(() => {
|
|
1212
|
-
o && S(u);
|
|
1213
|
-
}, [o, u]);
|
|
1214
|
-
let C = () => {
|
|
1183
|
+
function ot({ onClose: o, onConfirm: c, initialState: l }) {
|
|
1184
|
+
let [u, d] = _(() => l?.mode ?? "date"), [f, p] = _(() => l?.from ?? ""), [m, h] = _(() => l?.to ?? ""), [g, v] = _({}), y = () => {
|
|
1215
1185
|
let e = {}, t = (e) => /^\d{4}-\d{2}-\d{2}$/.test(e), n = (e) => /^\d{2}:\d{2}$/.test(e), r = (e) => /^\d{4}-\d{2}-\d{2}T\d{2}:\d{2}$/.test(e), i = (e, i, a) => {
|
|
1216
1186
|
if (!i) return `${e} обязательно`;
|
|
1217
1187
|
if (a === "date" && !t(i)) return "Неверный формат даты (ГГГГ-ММ-ДД)";
|
|
1218
1188
|
if (a === "time" && !n(i)) return "Неверный формат времени (ЧЧ:ММ)";
|
|
1219
1189
|
if (a === "datetime" && !r(i)) return "Неверный формат даты и времени (ГГГГ-ММ-ДДTЧЧ:ММ)";
|
|
1220
1190
|
};
|
|
1221
|
-
switch (
|
|
1191
|
+
switch (u) {
|
|
1222
1192
|
case "date":
|
|
1223
|
-
e.from = i("Дата",
|
|
1193
|
+
e.from = i("Дата", f, "date");
|
|
1224
1194
|
break;
|
|
1225
1195
|
case "time":
|
|
1226
|
-
e.from = i("Время",
|
|
1196
|
+
e.from = i("Время", f, "time");
|
|
1227
1197
|
break;
|
|
1228
1198
|
case "datetime":
|
|
1229
|
-
e.from = i("Дата и время",
|
|
1199
|
+
e.from = i("Дата и время", f, "datetime");
|
|
1230
1200
|
break;
|
|
1231
1201
|
case "range-time":
|
|
1232
|
-
e.from = i("Время начала",
|
|
1202
|
+
e.from = i("Время начала", f, "time"), e.to = i("Время окончания", m, "time");
|
|
1233
1203
|
break;
|
|
1234
1204
|
case "range-date":
|
|
1235
|
-
e.from = i("Дата начала",
|
|
1205
|
+
e.from = i("Дата начала", f, "date"), e.to = i("Дата окончания", m, "date");
|
|
1236
1206
|
break;
|
|
1237
|
-
case "range-datetime": e.from = i("Начало",
|
|
1207
|
+
case "range-datetime": e.from = i("Начало", f, "datetime"), e.to = i("Окончание", m, "datetime");
|
|
1238
1208
|
}
|
|
1239
|
-
return
|
|
1209
|
+
return v(e), Object.values(e).every((e) => !e);
|
|
1240
1210
|
};
|
|
1241
1211
|
return /* @__PURE__ */ j(i, {
|
|
1242
|
-
isOpen:
|
|
1243
|
-
onClose:
|
|
1212
|
+
isOpen: !0,
|
|
1213
|
+
onClose: o,
|
|
1244
1214
|
title: "Вставка <time>",
|
|
1245
1215
|
size: "md",
|
|
1246
1216
|
children: [/* @__PURE__ */ A(a, { children: /* @__PURE__ */ j(t, {
|
|
1247
1217
|
gap: "md",
|
|
1248
1218
|
children: [/* @__PURE__ */ j(s, {
|
|
1249
1219
|
label: "Тип значения",
|
|
1250
|
-
value:
|
|
1251
|
-
onChange:
|
|
1220
|
+
value: u,
|
|
1221
|
+
onChange: d,
|
|
1252
1222
|
children: [
|
|
1253
1223
|
/* @__PURE__ */ A(s.Option, {
|
|
1254
1224
|
label: "Дата",
|
|
@@ -1278,30 +1248,30 @@ function st({ isOpen: o, onClose: c, onConfirm: l, initialState: u }) {
|
|
|
1278
1248
|
}), /* @__PURE__ */ A(t, {
|
|
1279
1249
|
gap: "md",
|
|
1280
1250
|
children: (() => {
|
|
1281
|
-
switch (
|
|
1251
|
+
switch (u) {
|
|
1282
1252
|
case "date":
|
|
1283
1253
|
case "datetime":
|
|
1284
1254
|
case "time": return /* @__PURE__ */ A(n, {
|
|
1285
1255
|
label: "Значение",
|
|
1286
|
-
placeholder:
|
|
1287
|
-
value:
|
|
1288
|
-
onChange:
|
|
1289
|
-
error:
|
|
1256
|
+
placeholder: u === "time" ? "09:00" : u === "date" ? "2025-05-18" : "2025-05-18T09:00",
|
|
1257
|
+
value: f,
|
|
1258
|
+
onChange: p,
|
|
1259
|
+
error: g.from
|
|
1290
1260
|
});
|
|
1291
1261
|
case "range-time":
|
|
1292
1262
|
case "range-date":
|
|
1293
1263
|
case "range-datetime": return /* @__PURE__ */ j(k, { children: [/* @__PURE__ */ A(n, {
|
|
1294
1264
|
label: "С",
|
|
1295
|
-
placeholder:
|
|
1296
|
-
value:
|
|
1297
|
-
onChange:
|
|
1298
|
-
error:
|
|
1265
|
+
placeholder: u.includes("time") ? "09:00" : u.includes("date") ? "2025-05-18" : "2025-05-18T09:00",
|
|
1266
|
+
value: f,
|
|
1267
|
+
onChange: p,
|
|
1268
|
+
error: g.from
|
|
1299
1269
|
}), /* @__PURE__ */ A(n, {
|
|
1300
1270
|
label: "По",
|
|
1301
|
-
placeholder:
|
|
1302
|
-
value:
|
|
1303
|
-
onChange:
|
|
1304
|
-
error:
|
|
1271
|
+
placeholder: u.includes("time") ? "17:00" : u.includes("date") ? "2025-05-22" : "2025-05-22T17:00",
|
|
1272
|
+
value: m,
|
|
1273
|
+
onChange: h,
|
|
1274
|
+
error: g.to
|
|
1305
1275
|
})] });
|
|
1306
1276
|
}
|
|
1307
1277
|
})()
|
|
@@ -1309,15 +1279,15 @@ function st({ isOpen: o, onClose: c, onConfirm: l, initialState: u }) {
|
|
|
1309
1279
|
}) }), /* @__PURE__ */ j(r, { children: [/* @__PURE__ */ A(e, {
|
|
1310
1280
|
appearance: "solid",
|
|
1311
1281
|
tone: "error",
|
|
1312
|
-
onClick:
|
|
1282
|
+
onClick: o,
|
|
1313
1283
|
children: "Отмена"
|
|
1314
1284
|
}), /* @__PURE__ */ A(e, {
|
|
1315
1285
|
appearance: "solid",
|
|
1316
1286
|
tone: "success",
|
|
1317
1287
|
onClick: () => {
|
|
1318
|
-
if (!
|
|
1319
|
-
let e =
|
|
1320
|
-
|
|
1288
|
+
if (!y()) return;
|
|
1289
|
+
let e = m ? `${f}/${m}` : f;
|
|
1290
|
+
c("time", e, { datetime: e }), o();
|
|
1321
1291
|
},
|
|
1322
1292
|
children: "Подтвердить"
|
|
1323
1293
|
})] })]
|
|
@@ -1325,70 +1295,66 @@ function st({ isOpen: o, onClose: c, onConfirm: l, initialState: u }) {
|
|
|
1325
1295
|
}
|
|
1326
1296
|
//#endregion
|
|
1327
1297
|
//#region src/text-editor/TextEditorDialogs.tsx
|
|
1328
|
-
function
|
|
1298
|
+
function st({ linkTypeDialog: e, tagTypeDialog: t, localLinkDialogComponent: n, onCloseLinkDialog: r, onCloseTagDialog: i, onAddLink: a, onAddLocalLink: o, onInsertSemanticTag: s, getCurrentSelectionText: c, getSelectedLinkState: l }) {
|
|
1329
1299
|
let d = n;
|
|
1330
|
-
return /* @__PURE__ */ j(k, { children: [
|
|
1331
|
-
|
|
1332
|
-
isOpen:
|
|
1300
|
+
return /* @__PURE__ */ j(k, { children: [
|
|
1301
|
+
e === f.LOCAL_LINK && d ? /* @__PURE__ */ A(d, {
|
|
1302
|
+
isOpen: !0,
|
|
1333
1303
|
onClose: r,
|
|
1334
1304
|
onConfirm: o
|
|
1335
|
-
}),
|
|
1336
|
-
/* @__PURE__ */ A(
|
|
1337
|
-
isOpen: e === f.LINK,
|
|
1305
|
+
}) : null,
|
|
1306
|
+
e === f.LINK ? /* @__PURE__ */ A(nt, {
|
|
1338
1307
|
initialState: l(),
|
|
1339
1308
|
onClose: r,
|
|
1340
1309
|
onConfirm: a
|
|
1341
|
-
}),
|
|
1342
|
-
/* @__PURE__ */ A(
|
|
1343
|
-
isOpen: e === f.PHONE,
|
|
1310
|
+
}) : null,
|
|
1311
|
+
e === f.PHONE ? /* @__PURE__ */ A(rt, {
|
|
1344
1312
|
initialState: l(),
|
|
1345
1313
|
onClose: r,
|
|
1346
1314
|
onConfirm: a
|
|
1347
|
-
}),
|
|
1348
|
-
/* @__PURE__ */ A(
|
|
1349
|
-
isOpen: e === f.EMAIL,
|
|
1315
|
+
}) : null,
|
|
1316
|
+
e === f.EMAIL ? /* @__PURE__ */ A(tt, {
|
|
1350
1317
|
initialState: l(),
|
|
1351
1318
|
onClose: r,
|
|
1352
1319
|
onConfirm: a
|
|
1353
|
-
})
|
|
1354
|
-
|
|
1355
|
-
|
|
1356
|
-
|
|
1357
|
-
|
|
1358
|
-
|
|
1359
|
-
|
|
1360
|
-
|
|
1361
|
-
|
|
1362
|
-
|
|
1363
|
-
|
|
1364
|
-
}))] });
|
|
1320
|
+
}) : null,
|
|
1321
|
+
t && (t === u.time ? /* @__PURE__ */ A(ot, {
|
|
1322
|
+
onClose: i,
|
|
1323
|
+
onConfirm: s
|
|
1324
|
+
}) : /* @__PURE__ */ A(it, {
|
|
1325
|
+
onClose: i,
|
|
1326
|
+
onConfirm: s,
|
|
1327
|
+
config: at[t],
|
|
1328
|
+
initialText: c()
|
|
1329
|
+
}))
|
|
1330
|
+
] });
|
|
1365
1331
|
}
|
|
1366
1332
|
//#endregion
|
|
1367
1333
|
//#region src/text-editor/TextEditorLexicalClient.tsx
|
|
1368
|
-
function
|
|
1369
|
-
let i = r?.LocalLinkDialogComponent, [a, o] =
|
|
1334
|
+
function ct({ initialData: e, onChange: t, toolbarComponents: n, businessAdapters: r }) {
|
|
1335
|
+
let i = r?.LocalLinkDialogComponent, [a, o] = _(!1), [s, l] = _(G), [u, d] = _(null), [f, m] = _(null), [g, y] = _(null), b = c(e?.raw) ? e.raw : null, x = !!b, S = h(() => {
|
|
1370
1336
|
if (b) return JSON.stringify(b.editorState);
|
|
1371
1337
|
}, [b]), C = p((e) => {
|
|
1372
1338
|
console.error("Ошибка редактора Lexical", e);
|
|
1373
1339
|
}, []), w = p((e, n) => {
|
|
1374
1340
|
let r = "";
|
|
1375
1341
|
e.read(() => {
|
|
1376
|
-
r =
|
|
1342
|
+
r = le(n, null);
|
|
1377
1343
|
}), t({
|
|
1378
|
-
raw:
|
|
1344
|
+
raw: Xe(e),
|
|
1379
1345
|
html: r
|
|
1380
1346
|
});
|
|
1381
1347
|
}, [t]), T = p((e) => {
|
|
1382
1348
|
m(e);
|
|
1383
1349
|
}, []), E = p((e) => {
|
|
1384
|
-
|
|
1385
|
-
}, []), D =
|
|
1350
|
+
y(e);
|
|
1351
|
+
}, []), D = et({
|
|
1386
1352
|
editor: u,
|
|
1387
1353
|
toolbarState: s,
|
|
1388
1354
|
hasLocalLinkDialog: !!i,
|
|
1389
1355
|
onOpenLinkDialog: T,
|
|
1390
1356
|
onOpenTagDialog: E
|
|
1391
|
-
}), O =
|
|
1357
|
+
}), O = h(() => ({
|
|
1392
1358
|
namespace: "KtkTextEditorLexical",
|
|
1393
1359
|
onError: C,
|
|
1394
1360
|
theme: {
|
|
@@ -1401,10 +1367,10 @@ function lt({ initialData: e, onChange: t, toolbarComponents: n, businessAdapter
|
|
|
1401
1367
|
}
|
|
1402
1368
|
},
|
|
1403
1369
|
nodes: [
|
|
1370
|
+
De,
|
|
1404
1371
|
Oe,
|
|
1405
|
-
ke,
|
|
1406
|
-
ge,
|
|
1407
1372
|
he,
|
|
1373
|
+
me,
|
|
1408
1374
|
q,
|
|
1409
1375
|
Z
|
|
1410
1376
|
],
|
|
@@ -1413,11 +1379,11 @@ function lt({ initialData: e, onChange: t, toolbarComponents: n, businessAdapter
|
|
|
1413
1379
|
return /* @__PURE__ */ j("div", {
|
|
1414
1380
|
className: $.textEditor,
|
|
1415
1381
|
children: [/* @__PURE__ */ A("div", {
|
|
1416
|
-
className:
|
|
1417
|
-
children: /* @__PURE__ */ j(
|
|
1382
|
+
className: v($.textEditorContent, { [$.focused]: a }),
|
|
1383
|
+
children: /* @__PURE__ */ j(ge, {
|
|
1418
1384
|
initialConfig: O,
|
|
1419
1385
|
children: [
|
|
1420
|
-
/* @__PURE__ */ A(
|
|
1386
|
+
/* @__PURE__ */ A(Ve, {
|
|
1421
1387
|
toolbarComponents: n,
|
|
1422
1388
|
state: s,
|
|
1423
1389
|
onBlockStyleToggle: D.handleBlockStyleToggle,
|
|
@@ -1429,8 +1395,8 @@ function lt({ initialData: e, onChange: t, toolbarComponents: n, businessAdapter
|
|
|
1429
1395
|
onRedo: D.handleRedo,
|
|
1430
1396
|
onCleanTag: D.handleCleanSemanticTag
|
|
1431
1397
|
}),
|
|
1432
|
-
/* @__PURE__ */ A(
|
|
1433
|
-
contentEditable: /* @__PURE__ */ A(
|
|
1398
|
+
/* @__PURE__ */ A(Se, {
|
|
1399
|
+
contentEditable: /* @__PURE__ */ A(_e, {
|
|
1434
1400
|
className: "lexicalEditorContentEditable",
|
|
1435
1401
|
onFocus: () => o(!0),
|
|
1436
1402
|
onBlur: () => o(!1)
|
|
@@ -1439,30 +1405,30 @@ function lt({ initialData: e, onChange: t, toolbarComponents: n, businessAdapter
|
|
|
1439
1405
|
className: "lexicalEditorPlaceholder",
|
|
1440
1406
|
children: "Введите текст..."
|
|
1441
1407
|
}),
|
|
1442
|
-
ErrorBoundary:
|
|
1408
|
+
ErrorBoundary: ve
|
|
1443
1409
|
}),
|
|
1410
|
+
/* @__PURE__ */ A(ye, {}),
|
|
1444
1411
|
/* @__PURE__ */ A(be, {}),
|
|
1445
|
-
/* @__PURE__ */ A(
|
|
1446
|
-
/* @__PURE__ */ A(Xe, {
|
|
1412
|
+
/* @__PURE__ */ A(Ye, {
|
|
1447
1413
|
onEditorReady: d,
|
|
1448
1414
|
onStateChange: l
|
|
1449
1415
|
}),
|
|
1450
|
-
/* @__PURE__ */ A(
|
|
1416
|
+
/* @__PURE__ */ A(He, {
|
|
1451
1417
|
initialHTML: e?.html,
|
|
1452
1418
|
shouldSkip: x
|
|
1453
1419
|
}),
|
|
1454
|
-
/* @__PURE__ */ A(
|
|
1420
|
+
/* @__PURE__ */ A(xe, {
|
|
1455
1421
|
onChange: w,
|
|
1456
1422
|
ignoreSelectionChange: !0
|
|
1457
1423
|
})
|
|
1458
1424
|
]
|
|
1459
1425
|
})
|
|
1460
|
-
}), /* @__PURE__ */ A(
|
|
1426
|
+
}), /* @__PURE__ */ A(st, {
|
|
1461
1427
|
linkTypeDialog: f,
|
|
1462
|
-
tagTypeDialog:
|
|
1428
|
+
tagTypeDialog: g,
|
|
1463
1429
|
localLinkDialogComponent: i,
|
|
1464
1430
|
onCloseLinkDialog: () => m(null),
|
|
1465
|
-
onCloseTagDialog: () =>
|
|
1431
|
+
onCloseTagDialog: () => y(null),
|
|
1466
1432
|
onAddLink: D.handleAddLink,
|
|
1467
1433
|
onAddLocalLink: D.handleAddLocalLink,
|
|
1468
1434
|
onInsertSemanticTag: D.insertSemanticTagAtSelection,
|
|
@@ -1472,6 +1438,6 @@ function lt({ initialData: e, onChange: t, toolbarComponents: n, businessAdapter
|
|
|
1472
1438
|
});
|
|
1473
1439
|
}
|
|
1474
1440
|
//#endregion
|
|
1475
|
-
export {
|
|
1441
|
+
export { ct as TextEditorLexicalClient };
|
|
1476
1442
|
|
|
1477
|
-
//# sourceMappingURL=TextEditorLexicalClient-
|
|
1443
|
+
//# sourceMappingURL=TextEditorLexicalClient-BSafrkLJ.js.map
|