@ryuzaki13/react-foundation-ui 3.10.0 → 3.11.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +11 -0
- package/dist/badge/index.js +1 -1
- package/dist/barcode-scanner/index.js +1 -1
- package/dist/base-table/index.js +1 -1
- package/dist/chunks/{TextEditorLexicalClient-BQH41FFT.js → TextEditorLexicalClient-Cj6yjCGm.js} +3 -3
- package/dist/chunks/{TextEditorLexicalClient-BQH41FFT.js.map → TextEditorLexicalClient-Cj6yjCGm.js.map} +1 -1
- package/dist/chunks/{base-table-CacTH3BE.js → base-table-CoVXG2FT.js} +4 -4
- package/dist/chunks/{base-table-CacTH3BE.js.map → base-table-CoVXG2FT.js.map} +1 -1
- package/dist/chunks/{context-menu-BV8636Ou.js → context-menu-BlLesqpZ.js} +2 -2
- package/dist/chunks/{context-menu-BV8636Ou.js.map → context-menu-BlLesqpZ.js.map} +1 -1
- package/dist/chunks/flex-BhrQCH4I.js +401 -0
- package/dist/chunks/flex-BhrQCH4I.js.map +1 -0
- package/dist/chunks/grid-D6wPRCjx.js +394 -0
- package/dist/chunks/grid-D6wPRCjx.js.map +1 -0
- package/dist/chunks/{misc-BjdDK6mm.js → misc-Dcr24uDY.js} +2 -2
- package/dist/chunks/{misc-BjdDK6mm.js.map → misc-Dcr24uDY.js.map} +1 -1
- package/dist/chunks/{modal-CBGNsqrq.js → modal-DeABSKrb.js} +4 -4
- package/dist/chunks/{modal-CBGNsqrq.js.map → modal-DeABSKrb.js.map} +1 -1
- package/dist/chunks/{picker-DagDe9OH.js → picker-CWx7vPE8.js} +2 -2
- package/dist/chunks/{picker-DagDe9OH.js.map → picker-CWx7vPE8.js.map} +1 -1
- package/dist/chunks/responsiveLayout-D2mtCDdh.js +28 -0
- package/dist/chunks/responsiveLayout-D2mtCDdh.js.map +1 -0
- package/dist/chunks/{select-C-1U-ujV.js → select-CHBBo5fn.js} +2 -2
- package/dist/chunks/{select-C-1U-ujV.js.map → select-CHBBo5fn.js.map} +1 -1
- package/dist/chunks/{table-Cx__DvpN.js → table-Cm9NhT9K.js} +2 -2
- package/dist/chunks/{table-Cx__DvpN.js.map → table-Cm9NhT9K.js.map} +1 -1
- package/dist/context-menu/index.js +1 -1
- package/dist/disclosure/index.js +1 -1
- package/dist/errors/index.js +1 -1
- package/dist/expandable-action-panel/index.js +1 -1
- package/dist/flex/FlexContainer.d.ts +1 -1
- package/dist/flex/FlexContainer.d.ts.map +1 -1
- package/dist/flex/FlexItem.d.ts +1 -1
- package/dist/flex/FlexItem.d.ts.map +1 -1
- package/dist/flex/PredefinedFlex.d.ts +1 -1
- package/dist/flex/PredefinedFlex.d.ts.map +1 -1
- package/dist/flex/getFlexClasses.d.ts +5 -0
- package/dist/flex/getFlexClasses.d.ts.map +1 -0
- package/dist/flex/index.js +1 -1
- package/dist/floating-windows/FloatingWindow.d.ts +19 -0
- package/dist/floating-windows/FloatingWindow.d.ts.map +1 -0
- package/dist/floating-windows/FloatingWindowHeader.d.ts +14 -0
- package/dist/floating-windows/FloatingWindowHeader.d.ts.map +1 -0
- package/dist/floating-windows/FloatingWindows.d.ts +16 -0
- package/dist/floating-windows/FloatingWindows.d.ts.map +1 -0
- package/dist/floating-windows/FloatingWindowsBoundary.d.ts +10 -0
- package/dist/floating-windows/FloatingWindowsBoundary.d.ts.map +1 -0
- package/dist/floating-windows/FloatingWindowsProvider.d.ts +11 -0
- package/dist/floating-windows/FloatingWindowsProvider.d.ts.map +1 -0
- package/dist/floating-windows/index.d.ts +4 -0
- package/dist/floating-windows/index.d.ts.map +1 -0
- package/dist/floating-windows/index.js +576 -0
- package/dist/floating-windows/index.js.map +1 -0
- package/dist/floating-windows/lib/constrainFloatingWindowPosition.d.ts +8 -0
- package/dist/floating-windows/lib/constrainFloatingWindowPosition.d.ts.map +1 -0
- package/dist/floating-windows/lib/floatingWindowsStorage.d.ts +10 -0
- package/dist/floating-windows/lib/floatingWindowsStorage.d.ts.map +1 -0
- package/dist/floating-windows/lib/getFloatingWindowStyle.d.ts +5 -0
- package/dist/floating-windows/lib/getFloatingWindowStyle.d.ts.map +1 -0
- package/dist/floating-windows/lib/isFloatingWindowId.d.ts +3 -0
- package/dist/floating-windows/lib/isFloatingWindowId.d.ts.map +1 -0
- package/dist/floating-windows/lib/selectFloatingWindowCascadePosition.d.ts +8 -0
- package/dist/floating-windows/lib/selectFloatingWindowCascadePosition.d.ts.map +1 -0
- package/dist/floating-windows/lib/selectFloatingWindowRestoreFocus.d.ts +3 -0
- package/dist/floating-windows/lib/selectFloatingWindowRestoreFocus.d.ts.map +1 -0
- package/dist/floating-windows/model/FloatingWindowsContext.d.ts +4 -0
- package/dist/floating-windows/model/FloatingWindowsContext.d.ts.map +1 -0
- package/dist/floating-windows/model/createFloatingWindowsStore.d.ts +8 -0
- package/dist/floating-windows/model/createFloatingWindowsStore.d.ts.map +1 -0
- package/dist/floating-windows/model/floatingWindowMoveTypes.d.ts +27 -0
- package/dist/floating-windows/model/floatingWindowMoveTypes.d.ts.map +1 -0
- package/dist/floating-windows/model/floatingWindowsTypes.d.ts +40 -0
- package/dist/floating-windows/model/floatingWindowsTypes.d.ts.map +1 -0
- package/dist/floating-windows/model/useFloatingWindowFocus.d.ts +4 -0
- package/dist/floating-windows/model/useFloatingWindowFocus.d.ts.map +1 -0
- package/dist/floating-windows/model/useFloatingWindowMeasurements.d.ts +5 -0
- package/dist/floating-windows/model/useFloatingWindowMeasurements.d.ts.map +1 -0
- package/dist/floating-windows/model/useFloatingWindowMove.d.ts +4 -0
- package/dist/floating-windows/model/useFloatingWindowMove.d.ts.map +1 -0
- package/dist/floating-windows/model/useFloatingWindowSnapshot.d.ts +4 -0
- package/dist/floating-windows/model/useFloatingWindowSnapshot.d.ts.map +1 -0
- package/dist/floating-windows/model/useFloatingWindowsBounds.d.ts +4 -0
- package/dist/floating-windows/model/useFloatingWindowsBounds.d.ts.map +1 -0
- package/dist/floating-windows/model/useFloatingWindowsPersistence.d.ts +4 -0
- package/dist/floating-windows/model/useFloatingWindowsPersistence.d.ts.map +1 -0
- package/dist/floating-windows/model/useFloatingWindowsStore.d.ts +4 -0
- package/dist/floating-windows/model/useFloatingWindowsStore.d.ts.map +1 -0
- package/dist/grid/GridContainer.d.ts.map +1 -1
- package/dist/grid/GridItem.d.ts.map +1 -1
- package/dist/grid/getGridClasses.d.ts +12 -0
- package/dist/grid/getGridClasses.d.ts.map +1 -0
- package/dist/grid/index.js +1 -1
- package/dist/image/index.js +2 -2
- package/dist/layout-picker/index.js +1 -1
- package/dist/list/index.js +2 -2
- package/dist/listbox/index.js +1 -1
- package/dist/misc/index.js +1 -1
- package/dist/modal/index.js +1 -1
- package/dist/multi-select/index.js +1 -1
- package/dist/notifications/index.js +10 -10
- package/dist/picker/index.js +1 -1
- package/dist/preset-range-date-input/index.js +1 -1
- package/dist/preset-select/index.js +1 -1
- package/dist/responsive-layout/responsiveLayout.d.ts +17 -0
- package/dist/responsive-layout/responsiveLayout.d.ts.map +1 -0
- package/dist/select/index.js +1 -1
- package/dist/simple-table/index.js +1 -1
- package/dist/slider/index.js +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 +1 -1
- package/dist/text-editor/index.js +2 -2
- package/dist/toolbar/index.js +2 -2
- package/dist/tree-select/index.js +1 -1
- package/dist/tree-table/index.js +1 -1
- package/package.json +5 -1
- package/storybook-static/assets/{Badge-DxGi2POg.js → Badge-CVgLMAJT.js} +1 -1
- package/storybook-static/assets/{Badge.stories-D6Em1fN8.js → Badge.stories-KeadkKsz.js} +1 -1
- package/storybook-static/assets/{BadgeList-DemBuxUQ.js → BadgeList-_jBtMkE3.js} +1 -1
- package/storybook-static/assets/{BarcodeScannerDialog.stories-Bxnb0wH3.js → BarcodeScannerDialog.stories-J9XDExKK.js} +1 -1
- package/storybook-static/assets/{Button-dlGIhkja.js → Button-C-uRygWz.js} +1 -1
- package/storybook-static/assets/{Button-9vGUTM3m.js → Button-DegBPiAl.js} +1 -1
- package/storybook-static/assets/{Button.stories-WOE1_ovM.js → Button.stories-Ds4zCq_9.js} +1 -1
- package/storybook-static/assets/{CalendarView-Co2EiQf9.js → CalendarView-iyr_ipPy.js} +1 -1
- package/storybook-static/assets/{CheckBox-CwJshQX2.js → CheckBox-B0zrARHA.js} +1 -1
- package/storybook-static/assets/{CheckBox-Dpg2QsvS.js → CheckBox-nBqHJGY9.js} +1 -1
- package/storybook-static/assets/{CheckBox.stories-K8wng7-q.js → CheckBox.stories-CxO9FwA7.js} +1 -1
- package/storybook-static/assets/Color-6AOWCN3U-Dzuzn5Yr.js +1 -0
- package/storybook-static/assets/{ContextMenu-DbmUWR4I.js → ContextMenu-BC5OXqVj.js} +1 -1
- package/storybook-static/assets/{ContextMenu-C1zzFMni.js → ContextMenu-CnZu58rQ.js} +1 -1
- package/storybook-static/assets/{ContextMenu.stories-D0tclMo1.js → ContextMenu.stories-CPdTdVV7.js} +1 -1
- package/storybook-static/assets/{DateInput-BDxg1E80.js → DateInput-B5j7kofa.js} +1 -1
- package/storybook-static/assets/{DateInput-DxpENevn.js → DateInput-CuYe4WXO.js} +1 -1
- package/storybook-static/assets/{DateInput.stories-De_AOkrK.js → DateInput.stories-C4ZaIPUG.js} +1 -1
- package/storybook-static/assets/{DateRangePresetSelect-CD7jNInU.js → DateRangePresetSelect-CbDK9t1J.js} +1 -1
- package/storybook-static/assets/{DateRangePresetSelect-CD8qu2LL.js → DateRangePresetSelect-Cg6yPY0K.js} +1 -1
- package/storybook-static/assets/{DateRangePresetSelect.stories-phHkk3Q1.js → DateRangePresetSelect.stories-DPWUHjXu.js} +1 -1
- package/storybook-static/assets/{DeprecatedMultiSelect-Bdv505U3.js → DeprecatedMultiSelect-DCReLsN-.js} +1 -1
- package/storybook-static/assets/{DeprecatedMultiSelect-B4VEjiTj.js → DeprecatedMultiSelect-DkGsEVRD.js} +1 -1
- package/storybook-static/assets/{DeprecatedMultiSelect.stories-DdPzDJjx.js → DeprecatedMultiSelect.stories-tbYFDSML.js} +1 -1
- package/storybook-static/assets/{Detail-BoazSWw_.js → Detail-CtVpK6xU.js} +1 -1
- package/storybook-static/assets/{Detail.stories-Cc9fEkdx.js → Detail.stories-zAQfXGuT.js} +1 -1
- package/storybook-static/assets/{Dialog-ieE9mpAU.js → Dialog-B9ltl4hS.js} +1 -1
- package/storybook-static/assets/{Dialog-VJ62BLtp.js → Dialog-JetMtpYt.js} +1 -1
- package/storybook-static/assets/{Dialog.stories-CUyAMGoD.js → Dialog.stories-tJymN3yq.js} +1 -1
- package/storybook-static/assets/{Disclosure-BP8VhRCA.js → Disclosure-j-RCrVFs.js} +1 -1
- package/storybook-static/assets/{Disclosure.stories-DwIo-o1J.js → Disclosure.stories-4Jj2XNlo.js} +1 -1
- package/storybook-static/assets/{DisclosureGroup-LjgDW-Z6.js → DisclosureGroup-CM7GlGI4.js} +1 -1
- package/storybook-static/assets/{DocsRenderer-JROSPFPF-BjRaiNDG.js → DocsRenderer-JROSPFPF-DevtpZi5.js} +1 -1
- package/storybook-static/assets/{DropZone-BMT4jv2L.js → DropZone-Bwo7NG5D.js} +1 -1
- package/storybook-static/assets/{DropZone-Dg3GZxY8.js → DropZone-CPrhOtX-.js} +1 -1
- package/storybook-static/assets/{DropZone.stories-szOGIPHx.js → DropZone.stories-VyNhIaxw.js} +1 -1
- package/storybook-static/assets/{DropdownMenu-B0EI5ePH.js → DropdownMenu-DMWZzFK1.js} +1 -1
- package/storybook-static/assets/{ExpandableActionPanel-D_qy2JID.js → ExpandableActionPanel-DmKB3xVB.js} +1 -1
- package/storybook-static/assets/{ExpandableActionPanel.stories-wdmlBDmK.js → ExpandableActionPanel.stories-Kh_OSEIl.js} +1 -1
- package/storybook-static/assets/Flex-BZKhuaao.js +81 -0
- package/storybook-static/assets/Flex.stories-CrHxjVCH.js +454 -0
- package/storybook-static/assets/FlexContainer-DGc37vCr.js +1 -0
- package/storybook-static/assets/{FlexItem-BE_4juAd.js → FlexItem-DYv72TvP.js} +2 -2
- package/storybook-static/assets/{FloatingPopover-DHxMCBdS.js → FloatingPopover-Bd3b1U8c.js} +1 -1
- package/storybook-static/assets/FloatingWindows-C2FJO6ij.css +1 -0
- package/storybook-static/assets/FloatingWindows.stories-Cs_i092m.js +13 -0
- package/storybook-static/assets/FormattedTableCell-CdlWquoj.js +15 -0
- package/storybook-static/assets/Grid-DIKudfVu.js +84 -0
- package/storybook-static/assets/{Grid-0NnWfTJ7.js → Grid-DUcSdqsI.js} +2 -2
- package/storybook-static/assets/Grid.stories-sZUaIp7v.js +657 -0
- package/storybook-static/assets/{GridContainer-BHSfIiml.js → GridContainer-C5r-VTTG.js} +2 -2
- package/storybook-static/assets/GridContainer-DgBuOs_1.css +1 -0
- package/storybook-static/assets/{ImageCropper.stories-Cf5ogf7p.js → ImageCropper.stories-Bk3SF90a.js} +1 -1
- package/storybook-static/assets/{ImageRenderer-CsN1-IP6.js → ImageRenderer-CM-YetP0.js} +1 -1
- package/storybook-static/assets/{ImageRenderer.stories-DIC-UR-l.js → ImageRenderer.stories-CMqKyVuX.js} +1 -1
- package/storybook-static/assets/{ImageView.stories-DT6QZR-1.js → ImageView.stories-9IjWDUev.js} +1 -1
- package/storybook-static/assets/{ImageViewer.stories-DxpCKbpk.js → ImageViewer.stories-D-Zzvzh3.js} +2 -2
- package/storybook-static/assets/{ImageViewerRuntime-COhNh4_y.js → ImageViewerRuntime-BRWmVnG3.js} +1 -1
- package/storybook-static/assets/{Input-BJ3sPHt1.js → Input-BaEhNNL0.js} +1 -1
- package/storybook-static/assets/{Input-D2eqioLp.js → Input-YuUUu0DD.js} +1 -1
- package/storybook-static/assets/{Input.stories-MtAx6H2F.js → Input.stories-CoJY4vR8.js} +1 -1
- package/storybook-static/assets/{InputDateTime-CNNqhoo6.js → InputDateTime-CPlDTMTI.js} +1 -1
- package/storybook-static/assets/{InputDateTime.stories-DT3CvxRy.js → InputDateTime.stories-DaOA4pFM.js} +1 -1
- package/storybook-static/assets/{InputFile-RfdomZEH.js → InputFile-7PMO3B4Q.js} +1 -1
- package/storybook-static/assets/{InputFile-DiI_0QV5.js → InputFile-D2HPvbt_.js} +1 -1
- package/storybook-static/assets/{InputFile.stories-CiqGBnkS.js → InputFile.stories-CD4sJtXF.js} +1 -1
- package/storybook-static/assets/{InputFiles-CBrPDNlV.js → InputFiles-DSOs_hpc.js} +1 -1
- package/storybook-static/assets/{InputFiles-CgyVXpI1.js → InputFiles-DwgBtqPe.js} +1 -1
- package/storybook-static/assets/{InputFiles.stories-QHNxJjiV.js → InputFiles.stories-B2zPOUXW.js} +1 -1
- package/storybook-static/assets/{InputFilesList-BEIBTAEK.js → InputFilesList-DWtH6HFC.js} +1 -1
- package/storybook-static/assets/{InputImage-BBJr8TWl.js → InputImage-Cke0I8XV.js} +1 -1
- package/storybook-static/assets/{InputImage-vXbhnE46.js → InputImage-CnTU-bKF.js} +1 -1
- package/storybook-static/assets/{InputImage.stories-VoVU0QZB.js → InputImage.stories-CadyFqUh.js} +1 -1
- package/storybook-static/assets/{InteractiveComponents-CjkX3vU6.js → InteractiveComponents-cNgymLXT.js} +1 -1
- package/storybook-static/assets/{InteractiveComponents.stories-Gc_Ju4xJ.js → InteractiveComponents.stories-c5kIdj-d.js} +1 -1
- package/storybook-static/assets/{LayoutPicker-DwpDr_Is.js → LayoutPicker-BydBdeCh.js} +1 -1
- package/storybook-static/assets/{LayoutPicker-ONnrtLDR.js → LayoutPicker-u5tv4tmF.js} +1 -1
- package/storybook-static/assets/{LayoutPicker.stories-B-HIq6DD.js → LayoutPicker.stories-ZcTgJxX5.js} +1 -1
- package/storybook-static/assets/{Listbox-XIi0yHgl.js → Listbox-CaBDvhDA.js} +1 -1
- package/storybook-static/assets/{Listbox-DoF5nZIP.js → Listbox-CzmfAAEG.js} +1 -1
- package/storybook-static/assets/{Listbox.stories-DT8FJQ3z.js → Listbox.stories-B_tFWmxp.js} +1 -1
- package/storybook-static/assets/{Modal-C3F4r2UA.js → Modal-CIptTLdh.js} +1 -1
- package/storybook-static/assets/{Modal-Ml7EuSvu.js → Modal-DIJuHLSp.js} +1 -1
- package/storybook-static/assets/{Modal.stories-DRwnYxst.js → Modal.stories-BAh1Lzf0.js} +1 -1
- package/storybook-static/assets/{ModalManagerProvider-CmqdB_ni.js → ModalManagerProvider-DH2lt3jw.js} +1 -1
- package/storybook-static/assets/{MultiSelect-CAg-L0dM.js → MultiSelect-CbcU2Cam.js} +1 -1
- package/storybook-static/assets/{MultiSelect-B1QokJ3C.js → MultiSelect-OPkS-VFp.js} +1 -1
- package/storybook-static/assets/{MultiSelect.stories-Dfh2Lp0N.js → MultiSelect.stories-jghnBwe0.js} +1 -1
- package/storybook-static/assets/{MultiSelectCore-GRGtCBO1.js → MultiSelectCore-AgK9lN-8.js} +1 -1
- package/storybook-static/assets/{NoData-BZhNhaYV.js → NoData-CRi9NzcI.js} +1 -1
- package/storybook-static/assets/{NotificationsHost-BUPLrDM3.js → NotificationsHost-C8sCDEzY.js} +9 -9
- package/storybook-static/assets/{NotificationsHost.stories-CKbR-_nq.js → NotificationsHost.stories-BxpWtMHl.js} +1 -1
- package/storybook-static/assets/{ODataMultiSelect-CDW0B1az.js → ODataMultiSelect-Cjptiw3k.js} +1 -1
- package/storybook-static/assets/{ODataMultiSelect.stories-BbKrxs7t.js → ODataMultiSelect.stories-B-tBcHkU.js} +2 -2
- package/storybook-static/assets/{ODataSelect-C5G0dCnn.js → ODataSelect-BdVlf2WW.js} +1 -1
- package/storybook-static/assets/{ODataSelect.stories-DcX50cyD.js → ODataSelect.stories-DZv8DgW4.js} +2 -2
- package/storybook-static/assets/{ODataTreeMultiSelect-4mTjhnlJ.js → ODataTreeMultiSelect-B83uLKnT.js} +1 -1
- package/storybook-static/assets/{ODataTreeMultiSelect.stories-B-4UUg5l.js → ODataTreeMultiSelect.stories-k92VjXYz.js} +1 -1
- package/storybook-static/assets/{ODataTreeSelect-D-wcx2OH.js → ODataTreeSelect-CkZeBBoA.js} +1 -1
- package/storybook-static/assets/{ODataTreeSelect.stories-uB_sG4ga.js → ODataTreeSelect.stories-COweaWEr.js} +1 -1
- package/storybook-static/assets/{OneStepScroller-DQI5POnJ.js → OneStepScroller-dD9RSWvg.js} +1 -1
- package/storybook-static/assets/{Option-CrEWqsFF.js → Option-lTkoUcHa.js} +1 -1
- package/storybook-static/assets/{OptionButton-BEQ2oSPf.js → OptionButton-Bt6YtqRZ.js} +1 -1
- package/storybook-static/assets/{OptionContent-C8S7IjI3.js → OptionContent-C7Zoef1L.js} +1 -1
- package/storybook-static/assets/{OptionContentContainer-ljQts_jY.js → OptionContentContainer-xpO-es_t.js} +1 -1
- package/storybook-static/assets/{PeriodSelect-DuqatGdk.js → PeriodSelect-CmGjITS0.js} +1 -1
- package/storybook-static/assets/{PeriodSelect-BTdDU06N.js → PeriodSelect-DkGZmPFu.js} +1 -1
- package/storybook-static/assets/{PeriodSelect.stories-CX4DSFJG.js → PeriodSelect.stories-BxkZen1s.js} +1 -1
- package/storybook-static/assets/{PickerField-Cgcm-Y5T.js → PickerField-vwGcXNU3.js} +1 -1
- package/storybook-static/assets/{PickerTriggerActions-DWe2uX0K.js → PickerTriggerActions-BVO2pwu2.js} +1 -1
- package/storybook-static/assets/{Popover-C55I0GTn.js → Popover-DU0wD6MT.js} +1 -1
- package/storybook-static/assets/{Popover-0QfSvwRS.js → Popover-PRWJVARx.js} +1 -1
- package/storybook-static/assets/{Popover.stories-Bgjomdgb.js → Popover.stories-CXKDCIfT.js} +1 -1
- package/storybook-static/assets/{PresetRangeDateInput-C-vQa5BZ.js → PresetRangeDateInput-B1oR9Z-A.js} +1 -1
- package/storybook-static/assets/{PresetRangeDateInput-Cai5fvRb.js → PresetRangeDateInput-DUcxF5lh.js} +1 -1
- package/storybook-static/assets/{PresetRangeDateInput.stories-CWtIukRG.js → PresetRangeDateInput.stories-CAPHV6_P.js} +1 -1
- package/storybook-static/assets/{PresetSelect-HqtmoRLb.js → PresetSelect-Hrow5Qbz.js} +1 -1
- package/storybook-static/assets/{README-DfVaZ9rz.js → README-AWtoYOeO.js} +1 -1
- package/storybook-static/assets/{README-CxsbsDff.js → README-BB_tSzAG.js} +1 -1
- package/storybook-static/assets/{README-QWeHqOh2.js → README-BCBBtU0T.js} +1 -1
- package/storybook-static/assets/{README-BFjx8Jxa.js → README-BCXjh3I1.js} +1 -1
- package/storybook-static/assets/{README-CxMmicr4.js → README-BDdhvdKa.js} +1 -1
- package/storybook-static/assets/{README-UC0a4Wh9.js → README-BEUQd7JO.js} +1 -1
- package/storybook-static/assets/{README-BEypAdTE.js → README-BIHT1kGT.js} +1 -1
- package/storybook-static/assets/{README-CdnQbIDn.js → README-BJXCE3us.js} +1 -1
- package/storybook-static/assets/{README-B5wBU6mA.js → README-BLog3wnj.js} +1 -1
- package/storybook-static/assets/{README-C2xdMez4.js → README-BPOSX1IH.js} +1 -1
- package/storybook-static/assets/{README-DUShQLyj.js → README-BwSjP1rm.js} +1 -1
- package/storybook-static/assets/{README-BzIE9gSk.js → README-C8-H1dVZ.js} +1 -1
- package/storybook-static/assets/{README-CxEn3Q3j.js → README-CDYORt73.js} +1 -1
- package/storybook-static/assets/{README-DitsKP8x.js → README-CDq7upsw.js} +1 -1
- package/storybook-static/assets/{README-eRuOqnaA.js → README-CF5B-uBm.js} +1 -1
- package/storybook-static/assets/{README-DF3qw7Jo.js → README-CF79JAmm.js} +1 -1
- package/storybook-static/assets/{README-Bk6x-7we.js → README-CGalXaw7.js} +1 -1
- package/storybook-static/assets/{README-RGQ7HMZR.js → README-CHgqsGMV.js} +1 -1
- package/storybook-static/assets/{README-B5Lc1yT4.js → README-COzEPNJ8.js} +1 -1
- package/storybook-static/assets/{README-ClH6EKpO.js → README-CRfg4Opx.js} +1 -1
- package/storybook-static/assets/{README-C6ryhIOV.js → README-CRk_ElRL.js} +1 -1
- package/storybook-static/assets/{README-SafL9Bz5.js → README-CTbRRHIT.js} +1 -1
- package/storybook-static/assets/{README-2lBx3R6g.js → README-C_hI3IVn.js} +1 -1
- package/storybook-static/assets/{README-DycS0KDV.js → README-CbCzYjzO.js} +1 -1
- package/storybook-static/assets/{README-mxJzt2Xo.js → README-Cb_U_ZYK.js} +1 -1
- package/storybook-static/assets/{README-B8RrtmaZ.js → README-CdDd6nD8.js} +1 -1
- package/storybook-static/assets/{README-BqMpFJKP.js → README-Cu3r4RYC.js} +1 -1
- package/storybook-static/assets/{README-DFGUcAOx.js → README-CxBqJjI3.js} +1 -1
- package/storybook-static/assets/{README-QZrJnhYv.js → README-D0EguYwa.js} +1 -1
- package/storybook-static/assets/{README-Brd9di5k.js → README-DA8e0atn.js} +1 -1
- package/storybook-static/assets/{README-DAozVWEl.js → README-DUVORqie.js} +1 -1
- package/storybook-static/assets/{README-Dk7syFq-.js → README-DYjyXvbd.js} +1 -1
- package/storybook-static/assets/{README-C1BajdmC.js → README-D_iA9J4Q.js} +1 -1
- package/storybook-static/assets/{README-BHrzFd3i.js → README-De02nG6s.js} +1 -1
- package/storybook-static/assets/{README-C702dbsS.js → README-DjM1av8U.js} +1 -1
- package/storybook-static/assets/{README-BUKlvu1v.js → README-DmT1wyUb.js} +1 -1
- package/storybook-static/assets/{README-B41_J33v.js → README-DnpmMCNN.js} +1 -1
- package/storybook-static/assets/{README-B1IMnjhg.js → README-FJ4JNfan.js} +1 -1
- package/storybook-static/assets/{README-C8oftQ5c.js → README-JqCoy91R.js} +1 -1
- package/storybook-static/assets/{README-BNLmyDfy.js → README-JrppLPED.js} +1 -1
- package/storybook-static/assets/{README-_K214jGV.js → README-MUzkojYd.js} +1 -1
- package/storybook-static/assets/{README-DlBBM40-.js → README-O1ww7U1S.js} +1 -1
- package/storybook-static/assets/{README-BRJHDPaP.js → README-SkcZXYo1.js} +1 -1
- package/storybook-static/assets/{README-CdMmAh_G.js → README-UfCsOg0n.js} +1 -1
- package/storybook-static/assets/{README-DBpH2nf1.js → README-Xu3cmYZg.js} +1 -1
- package/storybook-static/assets/{README-BkFTTVE2.js → README-bcnh89ek.js} +1 -1
- package/storybook-static/assets/{README-Bl1rJEQE.js → README-ctVjdbq7.js} +1 -1
- package/storybook-static/assets/{README-CUUPvXQd.js → README-diVWU6bQ.js} +1 -1
- package/storybook-static/assets/{README-kvlO41U2.js → README-f5UPnPkY.js} +1 -1
- package/storybook-static/assets/{README-BTk3TSh8.js → README-mq6pyk4G.js} +1 -1
- package/storybook-static/assets/{README-BhvWyeL_.js → README-o-a96Aib.js} +1 -1
- package/storybook-static/assets/{README-BgbNoj4_.js → README-w3_FegOo.js} +1 -1
- package/storybook-static/assets/{README-CM5yZ6jf.js → README-zelg96nd.js} +1 -1
- package/storybook-static/assets/{RadioButton-BKsBk3--.js → RadioButton-BztQMLNR.js} +1 -1
- package/storybook-static/assets/{RadioButton-CsM-RT0A.js → RadioButton-DUOPHyRt.js} +1 -1
- package/storybook-static/assets/{RadioButton.stories-D5PGiHj5.js → RadioButton.stories-BOE5cGej.js} +1 -1
- package/storybook-static/assets/{RadioGroup-B3bLu8Qg.js → RadioGroup-CDqbnv4J.js} +1 -1
- package/storybook-static/assets/{RadioGroup-BZY_jeje.js → RadioGroup-QICEWbjz.js} +1 -1
- package/storybook-static/assets/{RadioGroup.stories-DMfcZFp0.js → RadioGroup.stories-f2qU7hhM.js} +1 -1
- package/storybook-static/assets/ResponsiveLayoutPreview-BWBLsr8u.js +1 -0
- package/storybook-static/assets/ResponsiveLayoutPreview-CyXawjCA.css +1 -0
- package/storybook-static/assets/{Scrollable-DdXQmkMU.js → Scrollable-CAnjXb6_.js} +1 -1
- package/storybook-static/assets/{Scrollable-DLyQwImF.js → Scrollable-Cc641kuG.js} +1 -1
- package/storybook-static/assets/{Scrollable.stories-Du5joHAp.js → Scrollable.stories-ZQT-1f1f.js} +1 -1
- package/storybook-static/assets/{Select-CT_wwcDN.js → Select-BeoH_3V4.js} +1 -1
- package/storybook-static/assets/{Select-8PYQeQRR.js → Select-D6RLm9D5.js} +1 -1
- package/storybook-static/assets/{Select.stories-DIqia2Hb.js → Select.stories-DI6pVDzi.js} +1 -1
- package/storybook-static/assets/{Separator-DJ93-Cvq.js → Separator-De9vEg4j.js} +1 -1
- package/storybook-static/assets/{Separator-CelBAATq.js → Separator-tkZoR8Ft.js} +1 -1
- package/storybook-static/assets/{Separator.stories-DBEDpiqL.js → Separator.stories-CGZrsdLJ.js} +1 -1
- package/storybook-static/assets/{SerializableSelect-C-00d6wC.js → SerializableSelect-BWgkYLIe.js} +1 -1
- package/storybook-static/assets/{SerializableSelect.stories-CP7fJBNa.js → SerializableSelect.stories-BfGg_SmN.js} +1 -1
- package/storybook-static/assets/{ShimmerText-qA7CslLE.js → ShimmerText-D1ygdKrh.js} +1 -1
- package/storybook-static/assets/{ShimmerText.stories-CiGIbhCm.js → ShimmerText.stories-D5AB85Hj.js} +1 -1
- package/storybook-static/assets/{SingleDateTimeInput-B7tnYWQl.js → SingleDateTimeInput-Bf2RpSbC.js} +1 -1
- package/storybook-static/assets/{SingleDateTimeInput-DJ2vRS9H.js → SingleDateTimeInput-C2O-fXgE.js} +1 -1
- package/storybook-static/assets/{SingleDateTimeInput.stories-BK59HKLf.js → SingleDateTimeInput.stories-BUbSA1UY.js} +1 -1
- package/storybook-static/assets/{Slider-Cm6kd77G.js → Slider-BhfM7XZ9.js} +1 -1
- package/storybook-static/assets/{Slider-CXcIxUE3.js → Slider-CVPKS3XB.js} +1 -1
- package/storybook-static/assets/{Slider.stories-BuhFWvUX.js → Slider.stories-C6ZUJc4b.js} +1 -1
- package/storybook-static/assets/{SliderInput-DI2h4X8P.js → SliderInput-MMUGLDDl.js} +1 -1
- package/storybook-static/assets/{SliderInput-DpmYS5Zb.js → SliderInput-PwHeDeo2.js} +1 -1
- package/storybook-static/assets/{SliderInput.stories-CLdLS0_8.js → SliderInput.stories-zBDRonPh.js} +1 -1
- package/storybook-static/assets/{Sortable-CpjAZLxn.js → Sortable-BKNLJGIe.js} +1 -1
- package/storybook-static/assets/{Sortable.stories-Ck2MHBoR.js → Sortable.stories-CLY263mj.js} +1 -1
- package/storybook-static/assets/{Splitter-Cpk_5dTf.js → Splitter-PyZco_V_.js} +1 -1
- package/storybook-static/assets/{Splitter.stories-BIf9NNWq.js → Splitter.stories-CY3Itq_G.js} +1 -1
- package/storybook-static/assets/{StateSelect-BznE9WIu.js → StateSelect-BlEIRWer.js} +1 -1
- package/storybook-static/assets/{StateSelect-C5tnrhWT.js → StateSelect-DfUif3cG.js} +1 -1
- package/storybook-static/assets/{StateSelect.stories-DLvSnAcF.js → StateSelect.stories-ClSYkdz8.js} +1 -1
- package/storybook-static/assets/{StatusIndicator-vJAPPq2m.js → StatusIndicator-CL-WMBHT.js} +1 -1
- package/storybook-static/assets/{StatusIndicator.stories-B7PGK2_C.js → StatusIndicator.stories-BbpEocDe.js} +1 -1
- package/storybook-static/assets/{StringToggle.stories-DBpxJZL-.js → StringToggle.stories-0r9TfflS.js} +1 -1
- package/storybook-static/assets/{Switch-BkTvYjyQ.js → Switch-AoVSoc9P.js} +1 -1
- package/storybook-static/assets/{Switch-DlRrk6o7.js → Switch-HAWn3D1c.js} +1 -1
- package/storybook-static/assets/{Switch.stories-BtctkC2W.js → Switch.stories-D1VJIWsC.js} +1 -1
- package/storybook-static/assets/{Table-xOdM6spm.js → Table-CyX8frK4.js} +1 -1
- package/storybook-static/assets/Table.stories-DoGpFMZB.js +184 -0
- package/storybook-static/assets/{TableEditor.stories-GU46gl20.js → TableEditor.stories-Mh6q2awx.js} +1 -1
- package/storybook-static/assets/{Tabs-Cg_IYAXs.js → Tabs-BZfNXmy0.js} +1 -1
- package/storybook-static/assets/{Tabs.stories-2cS0B94o.js → Tabs.stories-C9L4pJDb.js} +1 -1
- package/storybook-static/assets/{TabsBox-Dz3AsaoR.js → TabsBox-qRCIBtqi.js} +1 -1
- package/storybook-static/assets/{TagInput-CCTgbRhQ.js → TagInput-CPB6lb2J.js} +1 -1
- package/storybook-static/assets/{TagInput.stories-CevhCeXY.js → TagInput.stories-CT6B8CVV.js} +1 -1
- package/storybook-static/assets/{Text-CDCeYwIB.js → Text-AbSWZQO3.js} +1 -1
- package/storybook-static/assets/{Textarea-CNsrFSip.js → Textarea-BY51Li7J.js} +1 -1
- package/storybook-static/assets/{Textarea-Ba4MyNoY.js → Textarea-Bz9O1y1I.js} +1 -1
- package/storybook-static/assets/{Textarea.stories-laVFWVXL.js → Textarea.stories-CJbv3jrK.js} +1 -1
- package/storybook-static/assets/{TimePanel-Ddy67nzH.js → TimePanel-Wn5lUiwx.js} +1 -1
- package/storybook-static/assets/{TimePanel.stories-OLefy0XD.js → TimePanel.stories-dF5kTdp1.js} +1 -1
- package/storybook-static/assets/{Toggle-BGbyfmSW.js → Toggle-BpDn9f6k.js} +1 -1
- package/storybook-static/assets/{Toggle-BlCBtQd1.js → Toggle-CUO99pvo.js} +1 -1
- package/storybook-static/assets/{Toggle.stories-BjeTDL90.js → Toggle.stories-T1Hk_etn.js} +1 -1
- package/storybook-static/assets/{TreeMultiSelect-ZVSLdnCU.js → TreeMultiSelect-DEsECkRj.js} +1 -1
- package/storybook-static/assets/{TreeMultiSelect-BJnAzsFO.js → TreeMultiSelect-bqQExCm8.js} +1 -1
- package/storybook-static/assets/{TreeMultiSelect.stories-BJOtdIDe.js → TreeMultiSelect.stories-DyK7bWZu.js} +1 -1
- package/storybook-static/assets/{TreePickerBase-BQKfhufH.js → TreePickerBase-BCbV37dL.js} +1 -1
- package/storybook-static/assets/{TreeSelect-BSr4FMlq.js → TreeSelect-CTvlmF81.js} +1 -1
- package/storybook-static/assets/{TreeSelect-DSHQjGD1.js → TreeSelect-Cepr58wS.js} +1 -1
- package/storybook-static/assets/{TreeSelect.stories-GRcEv-kN.js → TreeSelect.stories-RVPMBCd_.js} +1 -1
- package/storybook-static/assets/{TreeTable-CzmxD2ee.js → TreeTable-DznOmuAD.js} +1 -1
- package/storybook-static/assets/TreeTable.stories-Lx2ImfgC.js +138 -0
- package/storybook-static/assets/blocks-u0CCD6I1.js +287 -0
- package/storybook-static/assets/{check-BYM7OgKl.js → check-CHvYWZD5.js} +1 -1
- package/storybook-static/assets/{chevron-down-Mu7usNfR.js → chevron-down-DqHAghNU.js} +1 -1
- package/storybook-static/assets/{chevron-left-CiOR-CGA.js → chevron-left-Bj7vIyg-.js} +1 -1
- package/storybook-static/assets/{chevron-right-5Rrk5UhO.js → chevron-right-BUqG0v39.js} +1 -1
- package/storybook-static/assets/{chunk-W22LQPXL-Cj8Y9DHq.js → chunk-W22LQPXL-BSczDjJT.js} +1 -1
- package/storybook-static/assets/{circle-alert-BXB7LSDS.js → circle-alert-DXUFM6uc.js} +1 -1
- package/storybook-static/assets/{circle-check-DrVuYn1Q.js → circle-check-0x9vHUU_.js} +1 -1
- package/storybook-static/assets/{contextMenu-BaB_e0Tl.js → contextMenu-D8PjjiwD.js} +1 -1
- package/storybook-static/assets/{download-W-Vr_TI7.js → download-15Eb3eUj.js} +1 -1
- package/storybook-static/assets/{floating-ui.react-BTEwHffF.js → floating-ui.react-CypKyrM4.js} +1 -1
- package/storybook-static/assets/{foundationApi-BcoJ1zeX.js → foundationApi-dmPNotab.js} +1 -1
- package/storybook-static/assets/{foundationLib-B2kQ07LT.js → foundationLib-CyrgF87o.js} +1 -1
- package/storybook-static/assets/getFlexClasses-BBvI2V8h.css +1 -0
- package/storybook-static/assets/getFlexClasses-DOf6NlyJ.js +1 -0
- package/storybook-static/assets/{hooks-BgMXxXbY.js → hooks-DM8_3IU2.js} +1 -1
- package/storybook-static/assets/{iframe-CU98mtpe.js → iframe-BmGorvhi.js} +4 -4
- package/storybook-static/assets/iframe-WuXBbC_P.js +1 -0
- package/storybook-static/assets/{info-BhHmytIH.js → info-HMSnCOw2.js} +1 -1
- package/storybook-static/assets/isRecord-DXDTW-jA-DtM9YD3V.js +1 -0
- package/storybook-static/assets/odata-DLogt0PY.js +1 -0
- package/storybook-static/assets/{odataStoryFixtures-CnZ_YrUb.js → odataStoryFixtures-DiC-gXoK.js} +1 -1
- package/storybook-static/assets/{react-C2mSveWL.js → react-BLxZ0fqY.js} +1 -1
- package/storybook-static/assets/{refresh-cw-D8_L8K4Y.js → refresh-cw-Obk3FkLO.js} +1 -1
- package/storybook-static/assets/responsiveLayout-B9XAp69M.js +1 -0
- package/storybook-static/assets/{settings-2-jWGaWGT0.js → settings-2-BQ2LYeiA.js} +1 -1
- package/storybook-static/assets/{sortable-BteEe6X0.js → sortable-BrLDYUp8.js} +1 -1
- package/storybook-static/assets/{syntaxhighlighter-QEQV7K2Y-eEu1MRSg.js → syntaxhighlighter-QEQV7K2Y-JUCJEf5U.js} +1 -1
- package/storybook-static/assets/{trash-2-CwmbYA8i.js → trash-2-CzXfDl_F.js} +1 -1
- package/storybook-static/assets/{triangle-alert-TRLt6Woa.js → triangle-alert-Ww2Tuzxk.js} +1 -1
- package/storybook-static/assets/{useODataSelectBase-BxHmAh7D.js → useODataSelectBase-DIZSERuU.js} +1 -1
- package/storybook-static/assets/useODataTreeData-DLgIiNMG.js +1 -0
- package/storybook-static/assets/{usePickerQuery-ByBt1NRd.js → usePickerQuery-BZ1Hrn2J.js} +1 -1
- package/storybook-static/assets/{usePickerTriggerController-CqdXiV2q.js → usePickerTriggerController-BIarg6M4.js} +1 -1
- package/storybook-static/assets/{x-BPRzfyys.js → x-BmlmEU-a.js} +1 -1
- package/storybook-static/iframe.html +2 -2
- package/storybook-static/index.json +1 -1
- package/storybook-static/project.json +1 -1
- package/dist/chunks/flex-D86M_h-0.js +0 -222
- package/dist/chunks/flex-D86M_h-0.js.map +0 -1
- package/dist/chunks/grid-CFuzBigM.js +0 -186
- package/dist/chunks/grid-CFuzBigM.js.map +0 -1
- package/dist/flex/useFlexClasses.d.ts +0 -8
- package/dist/flex/useFlexClasses.d.ts.map +0 -1
- package/dist/grid/useGridClasses.d.ts +0 -10
- package/dist/grid/useGridClasses.d.ts.map +0 -1
- package/storybook-static/assets/Color-6AOWCN3U-D-64SqRn.js +0 -1
- package/storybook-static/assets/Flex-DYXuexPG.js +0 -61
- package/storybook-static/assets/Flex.stories-DH1BReS-.js +0 -300
- package/storybook-static/assets/FlexContainer-DO3X5f_1.js +0 -1
- package/storybook-static/assets/FormattedTableCell-BfEiCYOi.js +0 -15
- package/storybook-static/assets/Grid-ChS0GzNg.js +0 -61
- package/storybook-static/assets/Grid.stories-ClZzgSfZ.js +0 -495
- package/storybook-static/assets/GridContainer-K9R_IHaw.css +0 -1
- package/storybook-static/assets/Table.stories-FORIU5CX.js +0 -184
- package/storybook-static/assets/TreeTable.stories-35ufhVh1.js +0 -138
- package/storybook-static/assets/blocks-SX-KK9Lg.js +0 -48
- package/storybook-static/assets/components-BEDJAYMp.js +0 -241
- package/storybook-static/assets/iframe-DaZCH1M-.js +0 -1
- package/storybook-static/assets/media-D9cE2tzi.js +0 -1
- package/storybook-static/assets/odata-yWIAioh9.js +0 -1
- package/storybook-static/assets/useFlexClasses-IXK2se1Y.css +0 -1
- package/storybook-static/assets/useFlexClasses-SgVG37Bb.js +0 -1
- package/storybook-static/assets/useODataTreeData-dSt1HJsq.js +0 -1
|
@@ -0,0 +1,576 @@
|
|
|
1
|
+
import { o as e } from "../chunks/flex-BhrQCH4I.js";
|
|
2
|
+
import { n as t } from "../chunks/button-DudCl375.js";
|
|
3
|
+
import { cn as n } from "@ryuzaki13/react-foundation-lib/utils";
|
|
4
|
+
import { Move as r, X as i } from "lucide-react";
|
|
5
|
+
import { jsx as a, jsxs as o } from "react/jsx-runtime";
|
|
6
|
+
import { createContext as s, useContext as c, useEffect as l, useEffectEvent as u, useId as d, useMemo as f, useRef as p, useState as m } from "react";
|
|
7
|
+
import { useOverlayFocus as h } from "@ryuzaki13/react-foundation-lib/dom";
|
|
8
|
+
import { createMissingContextError as g } from "@ryuzaki13/react-foundation-lib/error";
|
|
9
|
+
import { createStore as _ } from "zustand/vanilla";
|
|
10
|
+
import { clampNumberScaleValue as v } from "@ryuzaki13/react-foundation-lib/number-scale";
|
|
11
|
+
import { isRecord as y } from "@ryuzaki13/react-foundation-lib/validators";
|
|
12
|
+
import { useStore as b } from "zustand";
|
|
13
|
+
var x = {
|
|
14
|
+
boundary: "k9WITw",
|
|
15
|
+
window: "QIQYat",
|
|
16
|
+
header: "_7-j1qT",
|
|
17
|
+
handle: "r0aEv3",
|
|
18
|
+
content: "PZ5cL0"
|
|
19
|
+
};
|
|
20
|
+
//#endregion
|
|
21
|
+
//#region src/floating-windows/model/useFloatingWindowsBounds.ts
|
|
22
|
+
function S(e) {
|
|
23
|
+
let t = p(null);
|
|
24
|
+
return l(() => {
|
|
25
|
+
let n = t.current;
|
|
26
|
+
if (!n) return;
|
|
27
|
+
let r = () => {
|
|
28
|
+
e.getState().setBounds({
|
|
29
|
+
width: n.clientWidth,
|
|
30
|
+
height: n.clientHeight
|
|
31
|
+
});
|
|
32
|
+
};
|
|
33
|
+
if (r(), typeof ResizeObserver > "u") return;
|
|
34
|
+
let i = new ResizeObserver(r);
|
|
35
|
+
return i.observe(n), () => i.disconnect();
|
|
36
|
+
}, [e]), t;
|
|
37
|
+
}
|
|
38
|
+
//#endregion
|
|
39
|
+
//#region src/floating-windows/model/FloatingWindowsContext.ts
|
|
40
|
+
var C = s(null);
|
|
41
|
+
//#endregion
|
|
42
|
+
//#region src/floating-windows/model/useFloatingWindowsStore.ts
|
|
43
|
+
function w() {
|
|
44
|
+
let e = c(C);
|
|
45
|
+
if (!e) throw g({
|
|
46
|
+
hookName: "useFloatingWindowsStore",
|
|
47
|
+
providerName: "FloatingWindows"
|
|
48
|
+
});
|
|
49
|
+
return e;
|
|
50
|
+
}
|
|
51
|
+
//#endregion
|
|
52
|
+
//#region src/floating-windows/FloatingWindowsBoundary.tsx
|
|
53
|
+
function T({ children: e, className: t, style: r }) {
|
|
54
|
+
let i = S(w());
|
|
55
|
+
return /* @__PURE__ */ a("div", {
|
|
56
|
+
ref: i,
|
|
57
|
+
className: n(x.boundary, t),
|
|
58
|
+
style: r,
|
|
59
|
+
"data-floating-windows": "",
|
|
60
|
+
children: e
|
|
61
|
+
});
|
|
62
|
+
}
|
|
63
|
+
//#endregion
|
|
64
|
+
//#region src/floating-windows/lib/constrainFloatingWindowPosition.ts
|
|
65
|
+
function E(e, t, n) {
|
|
66
|
+
if (!Number.isFinite(e.x) || !Number.isFinite(e.y)) throw RangeError("Координаты плавающего окна должны быть конечными числами.");
|
|
67
|
+
for (let e of [t, n]) if (e !== null && (!Number.isFinite(e.width) || !Number.isFinite(e.height) || e.width < 0 || e.height < 0)) throw RangeError("Размер окна и рабочей области должен состоять из конечных неотрицательных чисел.");
|
|
68
|
+
if (t === null || n === null || n.width === 0 || n.height === 0) return e;
|
|
69
|
+
let r = v(e.x, 0, Math.max(0, n.width - t.width)), i = v(e.y, 0, Math.max(0, n.height - t.height));
|
|
70
|
+
return r === e.x && i === e.y ? e : {
|
|
71
|
+
x: r,
|
|
72
|
+
y: i
|
|
73
|
+
};
|
|
74
|
+
}
|
|
75
|
+
//#endregion
|
|
76
|
+
//#region src/floating-windows/lib/isFloatingWindowId.ts
|
|
77
|
+
function D(e) {
|
|
78
|
+
return typeof e == "string" && e.trim().length > 0 && e.length <= 256;
|
|
79
|
+
}
|
|
80
|
+
//#endregion
|
|
81
|
+
//#region src/floating-windows/lib/selectFloatingWindowCascadePosition.ts
|
|
82
|
+
function O(e, t, n = 24) {
|
|
83
|
+
if (!Number.isFinite(n) || n < 0) throw RangeError("Смещение каскада должно быть конечным неотрицательным числом.");
|
|
84
|
+
for (let n of [e, ...t]) if (!Number.isFinite(n.x) || !Number.isFinite(n.y)) throw RangeError("Координаты каскада плавающих окон должны быть конечными числами.");
|
|
85
|
+
if (n === 0) return e;
|
|
86
|
+
let r = e;
|
|
87
|
+
for (let e = 0; e < t.length; e += 1) {
|
|
88
|
+
if (!t.some((e) => e.x === r.x && e.y === r.y)) return r;
|
|
89
|
+
let e = r.x + n, i = r.y + n;
|
|
90
|
+
if (!Number.isFinite(e) || !Number.isFinite(i)) throw RangeError("Координаты каскада вышли за пределы конечных чисел.");
|
|
91
|
+
r = {
|
|
92
|
+
x: e,
|
|
93
|
+
y: i
|
|
94
|
+
};
|
|
95
|
+
}
|
|
96
|
+
return r;
|
|
97
|
+
}
|
|
98
|
+
//#endregion
|
|
99
|
+
//#region src/floating-windows/model/createFloatingWindowsStore.ts
|
|
100
|
+
function k({ cascadeOffset: e = 24 } = {}) {
|
|
101
|
+
if (!Number.isFinite(e) || e < 0) throw RangeError("Смещение каскада должно быть конечным неотрицательным числом.");
|
|
102
|
+
return _()((t, n) => ({
|
|
103
|
+
windows: /* @__PURE__ */ new Map(),
|
|
104
|
+
positions: /* @__PURE__ */ new Map(),
|
|
105
|
+
order: [],
|
|
106
|
+
bounds: null,
|
|
107
|
+
register: (r, i = {
|
|
108
|
+
x: 24,
|
|
109
|
+
y: 24
|
|
110
|
+
}) => {
|
|
111
|
+
if (!D(r)) throw Error("Идентификатор плавающего окна должен содержать от 1 до 256 символов и не состоять из пробелов.");
|
|
112
|
+
let a = n();
|
|
113
|
+
if (a.windows.has(r)) throw Error(`Плавающее окно с идентификатором «${r}» уже открыто в этой рабочей области.`);
|
|
114
|
+
E(i, null, null);
|
|
115
|
+
let o = a.positions.get(r), s = o ?? O(i, Array.from(a.windows.values(), (e) => e.position), e), c = [...a.order, r], l = new Map(a.windows);
|
|
116
|
+
l.set(r, {
|
|
117
|
+
position: s,
|
|
118
|
+
size: null,
|
|
119
|
+
layer: c.length
|
|
120
|
+
}), t({
|
|
121
|
+
windows: l,
|
|
122
|
+
positions: o ? a.positions : new Map(a.positions).set(r, s),
|
|
123
|
+
order: c
|
|
124
|
+
});
|
|
125
|
+
let u = !0;
|
|
126
|
+
return () => {
|
|
127
|
+
u && (u = !1, t((e) => {
|
|
128
|
+
let t = e.order.filter((e) => e !== r), n = new Map(e.windows);
|
|
129
|
+
return n.delete(r), t.forEach((e, t) => {
|
|
130
|
+
let r = n.get(e);
|
|
131
|
+
r && r.layer !== t + 1 && n.set(e, {
|
|
132
|
+
...r,
|
|
133
|
+
layer: t + 1
|
|
134
|
+
});
|
|
135
|
+
}), {
|
|
136
|
+
windows: n,
|
|
137
|
+
order: t
|
|
138
|
+
};
|
|
139
|
+
}));
|
|
140
|
+
};
|
|
141
|
+
},
|
|
142
|
+
setPosition: (e, n) => {
|
|
143
|
+
t((t) => {
|
|
144
|
+
let r = t.windows.get(e);
|
|
145
|
+
if (!r) return t;
|
|
146
|
+
let i = E(n, r.size, t.bounds);
|
|
147
|
+
return r.position.x === i.x && r.position.y === i.y ? t : {
|
|
148
|
+
windows: new Map(t.windows).set(e, {
|
|
149
|
+
...r,
|
|
150
|
+
position: i
|
|
151
|
+
}),
|
|
152
|
+
positions: new Map(t.positions).set(e, i)
|
|
153
|
+
};
|
|
154
|
+
});
|
|
155
|
+
},
|
|
156
|
+
setSize: (e, n) => {
|
|
157
|
+
t((t) => {
|
|
158
|
+
let r = t.windows.get(e);
|
|
159
|
+
if (!r) return t;
|
|
160
|
+
let i = E(r.position, n, t.bounds);
|
|
161
|
+
return r.size?.width === n.width && r.size.height === n.height && i === r.position ? t : {
|
|
162
|
+
windows: new Map(t.windows).set(e, {
|
|
163
|
+
...r,
|
|
164
|
+
position: i,
|
|
165
|
+
size: n
|
|
166
|
+
}),
|
|
167
|
+
positions: i === r.position ? t.positions : new Map(t.positions).set(e, i)
|
|
168
|
+
};
|
|
169
|
+
});
|
|
170
|
+
},
|
|
171
|
+
setBounds: (e) => {
|
|
172
|
+
E({
|
|
173
|
+
x: 0,
|
|
174
|
+
y: 0
|
|
175
|
+
}, null, e), t((t) => {
|
|
176
|
+
if (t.bounds?.width === e?.width && t.bounds?.height === e?.height) return t;
|
|
177
|
+
let n = new Map(t.windows), r = new Map(t.positions), i = !1;
|
|
178
|
+
for (let [a, o] of t.windows) {
|
|
179
|
+
let t = E(o.position, o.size, e);
|
|
180
|
+
t !== o.position && (i = !0, n.set(a, {
|
|
181
|
+
...o,
|
|
182
|
+
position: t
|
|
183
|
+
}), r.set(a, t));
|
|
184
|
+
}
|
|
185
|
+
return {
|
|
186
|
+
bounds: e,
|
|
187
|
+
windows: i ? n : t.windows,
|
|
188
|
+
positions: i ? r : t.positions
|
|
189
|
+
};
|
|
190
|
+
});
|
|
191
|
+
},
|
|
192
|
+
bringToFront: (e) => {
|
|
193
|
+
t((t) => {
|
|
194
|
+
if (!t.windows.has(e) || t.order.at(-1) === e) return t;
|
|
195
|
+
let n = [...t.order.filter((t) => t !== e), e], r = new Map(t.windows);
|
|
196
|
+
return n.forEach((e, t) => {
|
|
197
|
+
let n = r.get(e);
|
|
198
|
+
n && n.layer !== t + 1 && r.set(e, {
|
|
199
|
+
...n,
|
|
200
|
+
layer: t + 1
|
|
201
|
+
});
|
|
202
|
+
}), {
|
|
203
|
+
windows: r,
|
|
204
|
+
order: n
|
|
205
|
+
};
|
|
206
|
+
});
|
|
207
|
+
},
|
|
208
|
+
restorePositions: (e) => {
|
|
209
|
+
for (let [t, n] of e) {
|
|
210
|
+
if (!D(t)) throw Error("Идентификатор плавающего окна должен содержать от 1 до 256 символов и не состоять из пробелов.");
|
|
211
|
+
E(n, null, null);
|
|
212
|
+
}
|
|
213
|
+
t((t) => {
|
|
214
|
+
let n = /* @__PURE__ */ new Map();
|
|
215
|
+
for (let [r, i] of e) {
|
|
216
|
+
let e = t.positions.get(r);
|
|
217
|
+
n.set(r, e && e.x === i.x && e.y === i.y ? e : i);
|
|
218
|
+
}
|
|
219
|
+
let r = new Map(t.windows), i = !1;
|
|
220
|
+
for (let [e, a] of t.windows) {
|
|
221
|
+
let o = E(n.get(e) ?? a.position, a.size, t.bounds), s = o.x === a.position.x && o.y === a.position.y, c = s ? a.position : o;
|
|
222
|
+
n.set(e, c), !s && (i = !0, r.set(e, {
|
|
223
|
+
...a,
|
|
224
|
+
position: c
|
|
225
|
+
}));
|
|
226
|
+
}
|
|
227
|
+
let a = n.size === t.positions.size && Array.from(n).every(([e, n]) => t.positions.get(e) === n);
|
|
228
|
+
return !i && a ? t : {
|
|
229
|
+
windows: i ? r : t.windows,
|
|
230
|
+
positions: a ? t.positions : n
|
|
231
|
+
};
|
|
232
|
+
});
|
|
233
|
+
}
|
|
234
|
+
}));
|
|
235
|
+
}
|
|
236
|
+
//#endregion
|
|
237
|
+
//#region src/floating-windows/lib/floatingWindowsStorage.ts
|
|
238
|
+
var A = 200, j = 65536;
|
|
239
|
+
function M(e) {
|
|
240
|
+
if (e.length > j) throw Error("Сохранённые позиции окон превышают допустимый размер.");
|
|
241
|
+
let t = JSON.parse(e);
|
|
242
|
+
if (!y(t) || t.version !== 1 || !Array.isArray(t.positions) || t.positions.length > A) throw Error("Неизвестный формат сохранённых позиций окон.");
|
|
243
|
+
let n = /* @__PURE__ */ new Map();
|
|
244
|
+
for (let e of t.positions) {
|
|
245
|
+
if (!y(e) || !D(e.id) || n.has(e.id) || typeof e.x != "number" || !Number.isFinite(e.x) || typeof e.y != "number" || !Number.isFinite(e.y)) throw Error("Сохранённая позиция окна не прошла проверку.");
|
|
246
|
+
n.set(e.id, {
|
|
247
|
+
x: e.x,
|
|
248
|
+
y: e.y
|
|
249
|
+
});
|
|
250
|
+
}
|
|
251
|
+
return n;
|
|
252
|
+
}
|
|
253
|
+
function N(e) {
|
|
254
|
+
let t = [...e].slice(-200), n = [], r = 28;
|
|
255
|
+
for (let e = t.length - 1; e >= 0; --e) {
|
|
256
|
+
let [i, a] = t[e];
|
|
257
|
+
if (!D(i) || !Number.isFinite(a.x) || !Number.isFinite(a.y)) throw Error("Сохранённая позиция окна не прошла проверку.");
|
|
258
|
+
let o = JSON.stringify({
|
|
259
|
+
id: i,
|
|
260
|
+
x: a.x,
|
|
261
|
+
y: a.y
|
|
262
|
+
}), s = r + o.length + (n.length === 0 ? 0 : 1);
|
|
263
|
+
if (s > j) break;
|
|
264
|
+
n.push(o), r = s;
|
|
265
|
+
}
|
|
266
|
+
return `{"version":1,"positions":[${n.reverse().join(",")}]}`;
|
|
267
|
+
}
|
|
268
|
+
//#endregion
|
|
269
|
+
//#region src/floating-windows/model/useFloatingWindowsPersistence.ts
|
|
270
|
+
function P(e, t, n) {
|
|
271
|
+
let r = u((e) => n?.(e));
|
|
272
|
+
l(() => {
|
|
273
|
+
if (!t) return;
|
|
274
|
+
let n;
|
|
275
|
+
try {
|
|
276
|
+
n = window.localStorage;
|
|
277
|
+
let r = n.getItem(t);
|
|
278
|
+
r !== null && e.getState().restorePositions(M(r));
|
|
279
|
+
} catch (e) {
|
|
280
|
+
r(e);
|
|
281
|
+
return;
|
|
282
|
+
}
|
|
283
|
+
let i = !0, a = () => {
|
|
284
|
+
if (i) try {
|
|
285
|
+
n.setItem(t, N(e.getState().positions));
|
|
286
|
+
} catch (e) {
|
|
287
|
+
i = !1, r(e);
|
|
288
|
+
}
|
|
289
|
+
};
|
|
290
|
+
return a(), e.subscribe((e, t) => {
|
|
291
|
+
e.positions !== t.positions && a();
|
|
292
|
+
});
|
|
293
|
+
}, [e, t]);
|
|
294
|
+
}
|
|
295
|
+
//#endregion
|
|
296
|
+
//#region src/floating-windows/FloatingWindowsProvider.tsx
|
|
297
|
+
function F({ children: e, cascadeOffset: t, storageKey: n, onStorageError: r }) {
|
|
298
|
+
let [i] = m(() => k({ cascadeOffset: t }));
|
|
299
|
+
return P(i, n, r), /* @__PURE__ */ a(C, {
|
|
300
|
+
value: i,
|
|
301
|
+
children: e
|
|
302
|
+
});
|
|
303
|
+
}
|
|
304
|
+
//#endregion
|
|
305
|
+
//#region src/floating-windows/FloatingWindows.tsx
|
|
306
|
+
function I({ children: e, className: t, style: n, storageKey: r, cascadeOffset: i, onStorageError: o }) {
|
|
307
|
+
if (r !== void 0 && !r.trim()) throw Error("Ключ сохранения области окон не может быть пустым.");
|
|
308
|
+
return /* @__PURE__ */ a(F, {
|
|
309
|
+
storageKey: r,
|
|
310
|
+
cascadeOffset: i,
|
|
311
|
+
onStorageError: o,
|
|
312
|
+
children: /* @__PURE__ */ a(T, {
|
|
313
|
+
className: t,
|
|
314
|
+
style: n,
|
|
315
|
+
children: e
|
|
316
|
+
})
|
|
317
|
+
}, r);
|
|
318
|
+
}
|
|
319
|
+
//#endregion
|
|
320
|
+
//#region src/floating-windows/FloatingWindowHeader.tsx
|
|
321
|
+
function L({ title: n, titleId: s, instructionId: c, actions: l, onClose: u, move: d }) {
|
|
322
|
+
return /* @__PURE__ */ o(e, {
|
|
323
|
+
row: !0,
|
|
324
|
+
align: "center",
|
|
325
|
+
gap: "xs",
|
|
326
|
+
className: x.header,
|
|
327
|
+
children: [
|
|
328
|
+
/* @__PURE__ */ a(t, {
|
|
329
|
+
appearance: "ghost",
|
|
330
|
+
icon: /* @__PURE__ */ a(r, { size: 16 }),
|
|
331
|
+
className: x.handle,
|
|
332
|
+
"aria-label": `Переместить окно «${n}»`,
|
|
333
|
+
"aria-describedby": c,
|
|
334
|
+
"aria-pressed": d.moving,
|
|
335
|
+
"data-floating-window-action": "move",
|
|
336
|
+
...d.handleProps,
|
|
337
|
+
children: /* @__PURE__ */ a("span", {
|
|
338
|
+
id: s,
|
|
339
|
+
children: n
|
|
340
|
+
})
|
|
341
|
+
}),
|
|
342
|
+
l,
|
|
343
|
+
u && /* @__PURE__ */ a(t, {
|
|
344
|
+
icon: /* @__PURE__ */ a(i, { size: 16 }),
|
|
345
|
+
appearance: "ghost",
|
|
346
|
+
"aria-label": `Закрыть окно «${n}»`,
|
|
347
|
+
"data-floating-window-action": "close",
|
|
348
|
+
onClick: u
|
|
349
|
+
})
|
|
350
|
+
]
|
|
351
|
+
});
|
|
352
|
+
}
|
|
353
|
+
//#endregion
|
|
354
|
+
//#region src/floating-windows/lib/getFloatingWindowStyle.ts
|
|
355
|
+
function R(e, t, n) {
|
|
356
|
+
let r = e.size?.width ?? (typeof t == "number" ? t : null), i = e.size?.height ?? (typeof n == "number" ? n : null);
|
|
357
|
+
return {
|
|
358
|
+
width: t,
|
|
359
|
+
height: n,
|
|
360
|
+
zIndex: e.layer,
|
|
361
|
+
left: r === null ? 0 : `clamp(0px, ${e.position.x}px, max(0px, calc(100% - ${r}px)))`,
|
|
362
|
+
top: i === null ? 0 : `clamp(0px, ${e.position.y}px, max(0px, calc(100% - ${i}px)))`
|
|
363
|
+
};
|
|
364
|
+
}
|
|
365
|
+
//#endregion
|
|
366
|
+
//#region src/floating-windows/lib/selectFloatingWindowRestoreFocus.ts
|
|
367
|
+
function z(e) {
|
|
368
|
+
let t = document.activeElement;
|
|
369
|
+
return t instanceof HTMLElement && t !== document.body && !e?.contains(t) ? t : void 0;
|
|
370
|
+
}
|
|
371
|
+
//#endregion
|
|
372
|
+
//#region src/floating-windows/model/useFloatingWindowFocus.ts
|
|
373
|
+
function B(e) {
|
|
374
|
+
let t = p(null);
|
|
375
|
+
h({
|
|
376
|
+
active: !0,
|
|
377
|
+
trapFocus: !1,
|
|
378
|
+
containerRef: e,
|
|
379
|
+
initialFocus: (e) => (t.current = e, e),
|
|
380
|
+
restoreFocusTarget: () => z(t.current)
|
|
381
|
+
});
|
|
382
|
+
}
|
|
383
|
+
//#endregion
|
|
384
|
+
//#region src/floating-windows/model/useFloatingWindowMeasurements.ts
|
|
385
|
+
function V(e, t, n) {
|
|
386
|
+
l(() => {
|
|
387
|
+
let r = n.current;
|
|
388
|
+
if (!r) return;
|
|
389
|
+
let i = () => {
|
|
390
|
+
let n = r.offsetWidth, i = r.offsetHeight;
|
|
391
|
+
n > 0 && i > 0 && e.getState().setSize(t, {
|
|
392
|
+
width: n,
|
|
393
|
+
height: i
|
|
394
|
+
});
|
|
395
|
+
};
|
|
396
|
+
if (i(), typeof ResizeObserver > "u") return;
|
|
397
|
+
let a = new ResizeObserver(i);
|
|
398
|
+
return a.observe(r), () => a.disconnect();
|
|
399
|
+
}, [
|
|
400
|
+
e,
|
|
401
|
+
t,
|
|
402
|
+
n
|
|
403
|
+
]);
|
|
404
|
+
}
|
|
405
|
+
//#endregion
|
|
406
|
+
//#region src/floating-windows/model/useFloatingWindowMove.ts
|
|
407
|
+
function H({ id: e, store: t, panelRef: n, onPositionChange: r }) {
|
|
408
|
+
let i = p(null), a = p(null), [o, s] = m(!1), c = () => {
|
|
409
|
+
a.current !== null && cancelAnimationFrame(a.current), a.current = null, n.current?.style.removeProperty("transform");
|
|
410
|
+
}, d = (e) => {
|
|
411
|
+
e?.pointer?.target.hasPointerCapture(e.pointer.id) && e.pointer.target.releasePointerCapture(e.pointer.id);
|
|
412
|
+
}, f = (n) => {
|
|
413
|
+
let a = i.current;
|
|
414
|
+
if (!a || (i.current = null, c(), d(a), s(!1), !n)) return;
|
|
415
|
+
t.getState().setPosition(e, a.position);
|
|
416
|
+
let o = t.getState().windows.get(e)?.position;
|
|
417
|
+
o && (o.x !== a.origin.x || o.y !== a.origin.y) && r?.(o);
|
|
418
|
+
}, h = (r) => {
|
|
419
|
+
let o = i.current;
|
|
420
|
+
if (!o) return;
|
|
421
|
+
let s = t.getState();
|
|
422
|
+
o.position = E(r, s.windows.get(e)?.size ?? null, s.bounds), a.current === null && (a.current = requestAnimationFrame(() => {
|
|
423
|
+
a.current = null;
|
|
424
|
+
let e = i.current;
|
|
425
|
+
e && n.current && (n.current.style.transform = `translate(${e.position.x - e.origin.x}px, ${e.position.y - e.origin.y}px)`);
|
|
426
|
+
}));
|
|
427
|
+
}, g = (n) => {
|
|
428
|
+
if (i.current) return;
|
|
429
|
+
let r = t.getState().windows.get(e);
|
|
430
|
+
r && (t.getState().bringToFront(e), i.current = {
|
|
431
|
+
origin: r.position,
|
|
432
|
+
position: r.position,
|
|
433
|
+
pointer: n
|
|
434
|
+
}, s(!0));
|
|
435
|
+
}, _ = u(() => f(!1)), v = u(() => {
|
|
436
|
+
let e = i.current;
|
|
437
|
+
i.current = null, c(), d(e);
|
|
438
|
+
});
|
|
439
|
+
return l(() => {
|
|
440
|
+
let n = t.subscribe((t, n) => {
|
|
441
|
+
let r = n.windows.get(e), i = t.windows.get(e);
|
|
442
|
+
(t.bounds !== n.bounds || r?.size !== i?.size || r?.position !== i?.position) && _();
|
|
443
|
+
});
|
|
444
|
+
return () => {
|
|
445
|
+
n(), v();
|
|
446
|
+
};
|
|
447
|
+
}, [t, e]), {
|
|
448
|
+
moving: o,
|
|
449
|
+
handleProps: {
|
|
450
|
+
onClick: (e) => {
|
|
451
|
+
e.detail !== 0 || i.current?.pointer || (i.current ? f(!0) : g(null));
|
|
452
|
+
},
|
|
453
|
+
onPointerDown: (e) => {
|
|
454
|
+
if (e.button !== 0 || !e.isPrimary || i.current) return;
|
|
455
|
+
e.preventDefault(), e.currentTarget.focus({ preventScroll: !0 });
|
|
456
|
+
let t = n.current;
|
|
457
|
+
if (!t) return;
|
|
458
|
+
let r = t.getBoundingClientRect();
|
|
459
|
+
g({
|
|
460
|
+
id: e.pointerId,
|
|
461
|
+
x: e.clientX,
|
|
462
|
+
y: e.clientY,
|
|
463
|
+
target: e.currentTarget,
|
|
464
|
+
scaleX: t.offsetWidth > 0 && r.width > 0 ? r.width / t.offsetWidth : 1,
|
|
465
|
+
scaleY: t.offsetHeight > 0 && r.height > 0 ? r.height / t.offsetHeight : 1
|
|
466
|
+
}), e.currentTarget.setPointerCapture(e.pointerId);
|
|
467
|
+
},
|
|
468
|
+
onPointerMove: (e) => {
|
|
469
|
+
let t = i.current;
|
|
470
|
+
!t?.pointer || t.pointer.id !== e.pointerId || h({
|
|
471
|
+
x: t.origin.x + (e.clientX - t.pointer.x) / t.pointer.scaleX,
|
|
472
|
+
y: t.origin.y + (e.clientY - t.pointer.y) / t.pointer.scaleY
|
|
473
|
+
});
|
|
474
|
+
},
|
|
475
|
+
onPointerUp: (e) => {
|
|
476
|
+
let t = i.current;
|
|
477
|
+
!t?.pointer || t.pointer.id !== e.pointerId || (h({
|
|
478
|
+
x: t.origin.x + (e.clientX - t.pointer.x) / t.pointer.scaleX,
|
|
479
|
+
y: t.origin.y + (e.clientY - t.pointer.y) / t.pointer.scaleY
|
|
480
|
+
}), f(!0));
|
|
481
|
+
},
|
|
482
|
+
onPointerCancel: (e) => {
|
|
483
|
+
i.current?.pointer?.id === e.pointerId && f(!1);
|
|
484
|
+
},
|
|
485
|
+
onLostPointerCapture: (e) => {
|
|
486
|
+
i.current?.pointer?.id === e.pointerId && f(!1);
|
|
487
|
+
},
|
|
488
|
+
onBlur: () => f(!1),
|
|
489
|
+
onKeyDown: (e) => {
|
|
490
|
+
if (e.defaultPrevented) return;
|
|
491
|
+
if (e.key === "Escape" && i.current) {
|
|
492
|
+
e.preventDefault(), e.stopPropagation(), f(!1);
|
|
493
|
+
return;
|
|
494
|
+
}
|
|
495
|
+
if ((e.key === " " || e.key === "Enter") && !i.current?.pointer) {
|
|
496
|
+
if (e.preventDefault(), e.repeat) return;
|
|
497
|
+
i.current ? f(!0) : g(null);
|
|
498
|
+
return;
|
|
499
|
+
}
|
|
500
|
+
let t = i.current;
|
|
501
|
+
if (!t || t.pointer) return;
|
|
502
|
+
let n = e.shiftKey ? 1 : 10, r = e.key === "ArrowLeft" ? -n : e.key === "ArrowRight" ? n : 0, a = e.key === "ArrowUp" ? -n : e.key === "ArrowDown" ? n : 0;
|
|
503
|
+
(r || a) && (e.preventDefault(), h({
|
|
504
|
+
x: t.position.x + r,
|
|
505
|
+
y: t.position.y + a
|
|
506
|
+
}));
|
|
507
|
+
}
|
|
508
|
+
}
|
|
509
|
+
};
|
|
510
|
+
}
|
|
511
|
+
//#endregion
|
|
512
|
+
//#region src/floating-windows/model/useFloatingWindowSnapshot.ts
|
|
513
|
+
function U(e, t, n) {
|
|
514
|
+
let r = n?.x ?? 24, i = n?.y ?? 24, a = f(() => ({
|
|
515
|
+
position: {
|
|
516
|
+
x: r,
|
|
517
|
+
y: i
|
|
518
|
+
},
|
|
519
|
+
size: null,
|
|
520
|
+
layer: 0
|
|
521
|
+
}), [r, i]), o = b(e, (e) => e.windows.get(t) ?? a), s = u(() => e.getState().register(t, {
|
|
522
|
+
x: r,
|
|
523
|
+
y: i
|
|
524
|
+
}));
|
|
525
|
+
return l(() => s(), [e, t]), o;
|
|
526
|
+
}
|
|
527
|
+
//#endregion
|
|
528
|
+
//#region src/floating-windows/FloatingWindow.tsx
|
|
529
|
+
function W({ id: t, title: r, children: i, defaultPosition: s, width: c = 360, height: l = 300, actions: u, onClose: f, onPositionChange: m, className: h }) {
|
|
530
|
+
let g = w(), _ = U(g, t, s), v = p(null), y = d(), b = d();
|
|
531
|
+
V(g, t, v), B(v);
|
|
532
|
+
let S = H({
|
|
533
|
+
id: t,
|
|
534
|
+
store: g,
|
|
535
|
+
panelRef: v,
|
|
536
|
+
onPositionChange: m
|
|
537
|
+
});
|
|
538
|
+
return /* @__PURE__ */ o(e, {
|
|
539
|
+
column: !0,
|
|
540
|
+
ref: v,
|
|
541
|
+
role: "dialog",
|
|
542
|
+
"aria-labelledby": y,
|
|
543
|
+
tabIndex: -1,
|
|
544
|
+
"data-floating-window-id": t,
|
|
545
|
+
className: n("surface0 radiusMd shadowLg", x.window, h),
|
|
546
|
+
style: R(_, c, l),
|
|
547
|
+
onPointerDownCapture: () => g.getState().bringToFront(t),
|
|
548
|
+
onFocusCapture: () => g.getState().bringToFront(t),
|
|
549
|
+
onKeyDown: (e) => {
|
|
550
|
+
e.key !== "Escape" || e.defaultPrevented || g.getState().order.at(-1) !== t || !f || (e.preventDefault(), e.stopPropagation(), f());
|
|
551
|
+
},
|
|
552
|
+
children: [
|
|
553
|
+
/* @__PURE__ */ a(L, {
|
|
554
|
+
title: r,
|
|
555
|
+
titleId: y,
|
|
556
|
+
instructionId: b,
|
|
557
|
+
actions: u,
|
|
558
|
+
onClose: f,
|
|
559
|
+
move: S
|
|
560
|
+
}),
|
|
561
|
+
/* @__PURE__ */ a("span", {
|
|
562
|
+
id: b,
|
|
563
|
+
className: "visuallyHidden",
|
|
564
|
+
children: "Для перемещения нажмите Enter или пробел, затем используйте стрелки. Shift — шаг 1 пиксель. Enter или пробел — сохранить, Escape — отменить."
|
|
565
|
+
}),
|
|
566
|
+
/* @__PURE__ */ a("div", {
|
|
567
|
+
className: x.content,
|
|
568
|
+
children: i
|
|
569
|
+
})
|
|
570
|
+
]
|
|
571
|
+
});
|
|
572
|
+
}
|
|
573
|
+
//#endregion
|
|
574
|
+
export { W as FloatingWindow, I as FloatingWindows };
|
|
575
|
+
|
|
576
|
+
//# sourceMappingURL=index.js.map
|