@midas-ds/components 14.0.0 → 15.0.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/AccordionItem-DTbu3lqx.js +343 -0
- package/AccordionItem-tWS22wDv.cjs +1 -0
- package/{Breadcrumbs-DpUPChG9.cjs → Breadcrumbs-BBDGxc68.cjs} +1 -1
- package/{Breadcrumbs-CV3rVTjR.js → Breadcrumbs-BenPNv8Z.js} +4 -4
- package/Button-1sEX8jKn.cjs +1 -0
- package/{Button-xc8A29pm.cjs → Button-BEWKXjlP.cjs} +1 -1
- package/{Button-B6lxIKPk.js → Button-BbfVT9Yl.js} +122 -116
- package/{Button-CRIYvCRM.js → Button-DdXFHfXw.js} +1 -1
- package/CHANGELOG.md +49 -0
- package/{Card-CfosvMF5.js → Card-CdqGFff2.js} +3 -3
- package/{Card-D2E3gviQ.cjs → Card-Db9xdzJ0.cjs} +1 -1
- package/{CharacterCounter-C-PFKoGg.cjs → CharacterCounter-CTpQ12f7.cjs} +1 -1
- package/{CharacterCounter-DpFONstE.js → CharacterCounter-gbDGfize.js} +2 -2
- package/Checkbox-BgrLxY6P.cjs +1 -0
- package/{Checkbox-Cr3MmHPE.js → Checkbox-CdN1D5pD.js} +94 -90
- package/{CheckboxGroup-DEY3JDEL.js → CheckboxGroup-CtJJqk_q.js} +7 -7
- package/{CheckboxGroup-f9Oa1MhQ.cjs → CheckboxGroup-thvsvOqD.cjs} +1 -1
- package/{Collection-j_iWeuZo.js → Collection-BkxwF21i.js} +205 -213
- package/Collection-vGO6v3_U.cjs +1 -0
- package/{ColorSchemeSwitch-Cur7zN5_.cjs → ColorSchemeSwitch-Ckna0otR.cjs} +1 -1
- package/{ColorSchemeSwitch-ChFSNntp.js → ColorSchemeSwitch-aF2UxI20.js} +2 -2
- package/{ComboBox-D7eKe-M5.js → ComboBox-BDX4BYWJ.js} +244 -229
- package/ComboBox-DFPrJUoV.cjs +1 -0
- package/{DateField-BszKZodr.cjs → DateField-B92Cqf9K.cjs} +1 -1
- package/{DateField-xyhyDy7u.js → DateField-BPRWrVcu.js} +4 -4
- package/DateInputDivider-CCrXjsUB.cjs +1 -0
- package/{DateInputDivider-2Wf2hlXA.js → DateInputDivider-DOHpVaNE.js} +191 -188
- package/DateRangePicker-COSTCOt8.cjs +6 -0
- package/{DateRangePicker-YwKi0ukr.js → DateRangePicker-Cmt9NC35.js} +119 -115
- package/Dialog-CPuJA2fm.js +256 -0
- package/{Dialog-DOyFzvUa.js → Dialog-D4Py85wi.js} +712 -694
- package/Dialog-DtOf0vWx.cjs +1 -0
- package/Dialog-DycTLpdr.cjs +6 -0
- package/{DragAndDrop-DQ_6tl6K.cjs → DragAndDrop-Cs-V-9ak.cjs} +1 -1
- package/{DragAndDrop-DPRU3Y0Y.js → DragAndDrop-DF0VoPJw.js} +1 -1
- package/{Dropdown-uC9wc8vd.js → Dropdown-B4lwe0Hn.js} +2 -2
- package/{Dropdown-5rmvcHD_.cjs → Dropdown-_g9l5k07.cjs} +1 -1
- package/{FieldError-C4kD4yJZ.js → FieldError-CIxlNQCM.js} +13 -13
- package/{FieldError-C4WBoCRc.cjs → FieldError-JWxR_EqN.cjs} +1 -1
- package/{FileUpload-CTbh7Gic.cjs → FileUpload-C0TjNkuh.cjs} +2 -2
- package/{FileUpload-01wGpykv.js → FileUpload-DLBP3VPp.js} +260 -534
- package/Group-B0Wj9pI8.cjs +1 -0
- package/Group-BAd7alBM.js +46 -0
- package/{Heading-CEx2LJyM.js → Heading-CCoGfKQ8.js} +9 -9
- package/{Heading-CUShN98j.cjs → Heading-x7y3xadc.cjs} +1 -1
- package/{InfoBanner-CRSz8DK2.js → InfoBanner-D7Ta-7PI.js} +1 -1
- package/{InfoBanner-D_pNj1J2.cjs → InfoBanner-_M_rGQiu.cjs} +1 -1
- package/{Input-CCuE9Sc5.cjs → Input-Bda0PCu5.cjs} +1 -1
- package/{Input-CkTOajNJ.js → Input-CQzv-D9g.js} +3 -3
- package/{Label-CkIRTC0_.cjs → Label-DpY2SZdQ.cjs} +1 -1
- package/{Label-CV9p0K2n.js → Label-FfEnd4ai.js} +4 -4
- package/Layout-BrEuHajQ.cjs +16 -0
- package/{Layout-IeVrHpT0.js → Layout-Hd1e_MEA.js} +62 -63
- package/{Link-BFvUN5Sq.js → Link-BudFjYrw.js} +1 -1
- package/{Link-D2K7bDd3.cjs → Link-BvUSTIip.cjs} +1 -1
- package/{Link-a3Ymcnoa.cjs → Link-DRU6Qzia.cjs} +1 -1
- package/{Link-B9CQXWzE.js → Link-l-nMP-Zd.js} +5 -5
- package/{LinkButton-BCn5gR10.cjs → LinkButton-DGdnbTgR.cjs} +1 -1
- package/{LinkButton-DN3J1Agu.js → LinkButton-DP9W-E32.js} +1 -1
- package/{ListBox-2eEa1l0M.js → ListBox-5GK4ZRj1.js} +189 -178
- package/ListBox-FD30iELk.cjs +1 -0
- package/{ListBoxSection-dksiACMZ.js → ListBox-LJ3VgZMr.js} +230 -266
- package/ListBox-u6ZXp5Yi.cjs +1 -0
- package/{ListBoxLoadMoreItem-IcGb_XwN.js → ListBoxLoadMoreItem-B4GFbdYf.js} +3 -3
- package/ListBoxLoadMoreItem-DMUOzVtt.cjs +1 -0
- package/ListBoxSection-CBlpg0AG.cjs +1 -0
- package/ListBoxSection-DjGs1ndn.js +51 -0
- package/ListKeyboardDelegate-8zuIfwQ7.cjs +1 -0
- package/{ListKeyboardDelegate-Dyu4eFtP.js → ListKeyboardDelegate-BBmpJ-2O.js} +36 -40
- package/{OverlayArrow-Bh_G2tJ3.js → OverlayArrow-CjGslX2c.js} +2 -2
- package/{OverlayArrow-DJ4nNscD.cjs → OverlayArrow-bcrb_syE.cjs} +1 -1
- package/Popover-CS8Yyfrq.js +39 -0
- package/Popover-DpB0XDBp.cjs +1 -0
- package/{PressResponder-DUhG97jJ.js → PressResponder-BMj6Zvbn.js} +3 -3
- package/{PressResponder-AXK2I_yx.cjs → PressResponder-ChvCuOue.cjs} +1 -1
- package/{ProgressBar-B-TOuoAC.cjs → ProgressBar-BZqAQTV3.cjs} +1 -1
- package/{ProgressBar-B0WEQkyq.js → ProgressBar-BpsvPCKk.js} +12 -12
- package/{RSPContexts-BW2SEIqe.js → RSPContexts-B0lEq7qq.js} +5 -3
- package/RSPContexts-XUvspq3j.cjs +1 -0
- package/Radio-B3FBTn4F.cjs +1 -0
- package/Radio-LevFYAg4.js +340 -0
- package/{RangeCalendar-B6zKSDju.cjs → RangeCalendar-CH0CyBui.cjs} +2 -2
- package/{RangeCalendar-D5TMu8GI.js → RangeCalendar-DT_KVd80.js} +58 -58
- package/{SearchField-DnBBlPT7.cjs → SearchField-BX7P7BgV.cjs} +1 -1
- package/{SearchField-wojUSY2S.js → SearchField-C-TFzcJF.js} +3 -3
- package/Select-C-ykeY_T.js +773 -0
- package/Select-CiCng7ZP.js +678 -0
- package/Select-D4wi-0Jw.cjs +1 -0
- package/Select-JIDW2mN8.cjs +1 -0
- package/{FocusScope-8ILtcq9W.js → SelectionIndicator-C2E23-zO.js} +270 -174
- package/SelectionIndicator-ClG0GpJu.cjs +1 -0
- package/SelectionManager-CNJmHeCF.cjs +1 -0
- package/SelectionManager-DoNLJm8c.js +1063 -0
- package/{Separator-COlhRmJF.js → Separator-CQfDz_zr.js} +10 -10
- package/{Separator-DcbM84B8.cjs → Separator-CSyYDGNE.cjs} +1 -1
- package/{Separator-BQkxEZC9.cjs → Separator-DCi4bnBr.cjs} +1 -1
- package/{Separator--4b7vckr.js → Separator-DLr4kUJD.js} +2 -2
- package/Spinner-D6Fcu_Dp.js +54 -0
- package/Spinner-DIapnvIz.cjs +6 -0
- package/TabList-BBmBumm6.js +394 -0
- package/TabList-DVzXuGXA.cjs +1 -0
- package/Table-B1nxmW14.cjs +16 -0
- package/{Table-cCSOrPkK.js → Table-DxqKDp7N.js} +707 -703
- package/Tag-BL-_PONN.cjs +1 -0
- package/Tag-DX1X_NZE.js +774 -0
- package/{Text-CkhG15SU.cjs → Text-0wXj3J8E.cjs} +1 -1
- package/{Text-BQe1I4-r.js → Text-BBFWBNAH.js} +1 -1
- package/{Text-CkhZTTV5.cjs → Text-D5OSv6Uv.cjs} +1 -1
- package/{Text-BpERRete.js → Text-bqP9NeVg.js} +1 -1
- package/{TextArea-B5TsyJxa.cjs → TextArea-Bjf8CBp0.cjs} +1 -1
- package/{TextArea-Cado2arG.js → TextArea-CJPBvogq.js} +8 -8
- package/TextField-DtD9-arA.cjs +1 -0
- package/{TextField-5AI6T1ol.js → TextField-DyR61bjZ.js} +10 -10
- package/{Toast-CgXRE33Y.js → Toast-B99bLWnh.js} +12 -12
- package/{Toast-Cs-Uvf1p.cjs → Toast-DUZ5jfG1.cjs} +1 -1
- package/{ToggleButtonGroup-SKGgfFs4.js → ToggleButtonGroup-CFRutAZ4.js} +82 -78
- package/ToggleButtonGroup-dnvnzkaD.cjs +1 -0
- package/{Tooltip-txk48Qof.js → Tooltip-CUdmOznK.js} +4 -4
- package/{Tooltip-BrupFzaI.cjs → Tooltip-D-ATlbIM.cjs} +1 -1
- package/{VisuallyHidden-Awup6QxT.cjs → VisuallyHidden-BMelU6B0.cjs} +1 -1
- package/{VisuallyHidden-D2ZXHTJs.js → VisuallyHidden-DuW70K-5.js} +1 -1
- package/accordion/index.cjs +1 -1
- package/accordion/index.js +1 -1
- package/assets/AccordionItem.css +1 -1
- package/assets/FieldError.css +1 -1
- package/assets/ListBox.css +1 -0
- package/assets/Popover.css +1 -1
- package/assets/RangeCalendar.css +1 -1
- package/assets/Select.css +1 -1
- package/assets/Select2.css +1 -0
- package/assets/Spinner.css +1 -1
- package/assets/TabList.css +1 -1
- package/assets/Tag.css +1 -1
- package/assets/default.css +1 -1
- package/breadcrumbs/index.cjs +1 -1
- package/breadcrumbs/index.js +1 -1
- package/button/index.cjs +1 -1
- package/button/index.js +1 -1
- package/calendar/index.cjs +1 -1
- package/calendar/index.js +1 -1
- package/card/index.cjs +1 -1
- package/card/index.js +1 -1
- package/character-counter/index.cjs +1 -1
- package/character-counter/index.js +1 -1
- package/checkbox/index.cjs +1 -1
- package/checkbox/index.js +2 -2
- package/color-scheme-switch/index.cjs +1 -1
- package/color-scheme-switch/index.js +1 -1
- package/combobox/index.cjs +1 -1
- package/combobox/index.js +1 -1
- package/date-field/index.cjs +1 -1
- package/date-field/index.js +2 -2
- package/date-picker/index.cjs +1 -1
- package/date-picker/index.js +1 -1
- package/dropdown/index.cjs +1 -1
- package/dropdown/index.js +1 -1
- package/field-error/index.cjs +1 -1
- package/field-error/index.js +1 -1
- package/file-upload/index.cjs +1 -1
- package/file-upload/index.js +1 -1
- package/{getScrollParent-Ru2U2LlM.js → getScrollParent-DFCzfqHG.js} +1 -1
- package/{getScrollParent-DuKmPmUa.cjs → getScrollParent-DjULaF_q.cjs} +1 -1
- package/heading/index.cjs +1 -1
- package/heading/index.js +1 -1
- package/index.cjs +1 -1
- package/index.d.ts +1 -0
- package/index.js +99 -95
- package/info-banner/index.cjs +1 -1
- package/info-banner/index.js +1 -1
- package/intlStrings-Cd44R5hT.js +278 -0
- package/intlStrings-ClBuC6xN.cjs +1 -0
- package/label/index.cjs +1 -1
- package/label/index.js +1 -1
- package/layout/index.cjs +1 -1
- package/layout/index.js +1 -1
- package/legacy-select/Select.d.ts +8 -0
- package/legacy-select/SelectTrigger.d.ts +10 -0
- package/legacy-select/index.cjs +1 -0
- package/legacy-select/index.d.ts +2 -0
- package/legacy-select/index.js +4 -0
- package/legacy-select/intl/translations.json.d.ts +17 -0
- package/{select → legacy-select}/types.d.ts +2 -2
- package/legacy-select/useMultiSelect.d.ts +5 -0
- package/link/index.cjs +1 -1
- package/link/index.js +2 -2
- package/link-button/index.cjs +1 -1
- package/link-button/index.js +2 -2
- package/list-box/ListBox.d.ts +1 -2
- package/list-box/ListBoxHeader.d.ts +3 -0
- package/list-box/ListBoxItem.d.ts +9 -3
- package/list-box/ListBoxSection.d.ts +1 -1
- package/list-box/index.cjs +1 -1
- package/list-box/index.d.ts +1 -0
- package/list-box/index.js +9 -7
- package/menu/index.cjs +1 -1
- package/menu/index.js +2 -2
- package/modal/index.cjs +1 -1
- package/modal/index.js +2 -2
- package/package.json +4 -4
- package/popover/Popover.d.ts +2 -1
- package/popover/index.cjs +1 -1
- package/popover/index.js +1 -1
- package/progress-bar/index.cjs +1 -1
- package/progress-bar/index.js +1 -1
- package/radio/index.cjs +1 -1
- package/radio/index.js +1 -1
- package/scrollIntoView-BVI21Y4-.js +65 -0
- package/scrollIntoView-BueMOyGp.cjs +1 -0
- package/search-field/index.cjs +1 -1
- package/search-field/index.js +1 -1
- package/select/Select.d.ts +33 -4
- package/select/SelectAll.d.ts +1 -0
- package/select/SelectTags.d.ts +4 -0
- package/select/SelectTrigger.d.ts +4 -8
- package/select/SelectValueTag.d.ts +5 -0
- package/select/index.cjs +1 -1
- package/select/index.d.ts +1 -2
- package/select/index.js +1 -1
- package/select/intl/translations.json.d.ts +2 -2
- package/spinner/Spinner.d.ts +5 -1
- package/spinner/index.cjs +1 -1
- package/spinner/index.js +1 -1
- package/table/index.cjs +1 -1
- package/table/index.js +1 -1
- package/tabs/Tabs.d.ts +2 -9
- package/tabs/index.cjs +1 -1
- package/tabs/index.d.ts +0 -1
- package/tabs/index.js +1 -1
- package/tag/index.cjs +1 -1
- package/tag/index.js +1 -1
- package/text/index.cjs +1 -1
- package/text/index.js +1 -1
- package/textfield/TextArea.d.ts +3 -2
- package/textfield/TextField.d.ts +3 -2
- package/textfield/index.cjs +1 -1
- package/textfield/index.js +1 -1
- package/toast/index.cjs +1 -1
- package/toast/index.js +1 -1
- package/toggle-button/index.cjs +1 -1
- package/toggle-button/index.js +1 -1
- package/tooltip/index.cjs +1 -1
- package/tooltip/index.js +1 -1
- package/{useButton-Bh3duhYL.cjs → useButton-C0r5nrqs.cjs} +1 -1
- package/{useButton-A-VOfwuT.js → useButton-CRgN6aZf.js} +2 -2
- package/useDateFormatter-BrrFo4nY.cjs +1 -0
- package/{useDateFormatter-CxlJTAki.js → useDateFormatter-Bs5A6Xtu.js} +353 -322
- package/{useField-sSWPm-He.js → useField-Bx76iuoW.js} +1 -1
- package/{useField-CY4OYE5a.cjs → useField-DvszkIMx.cjs} +1 -1
- package/{useFilter-DHcouDzv.js → useFilter-Dn4vTT3G.js} +1 -1
- package/{useFilter-DlZLqsJD.cjs → useFilter-eOgdlVLd.cjs} +1 -1
- package/{useFocusRing-Cig5Y0l-.cjs → useFocusRing-C-XVcAE5.cjs} +1 -1
- package/{useFocusRing-Copf_tx8.js → useFocusRing-CcxI7nbg.js} +2 -2
- package/{useFocusWithin-BKopz9sr.js → useFocusWithin-DhXBuB2O.js} +1 -1
- package/{useFocusWithin-TryC2Kkw.cjs → useFocusWithin-GBjoTL5o.cjs} +1 -1
- package/{useFocusable-CCh54GIw.js → useFocusable-BJj-Bkig.js} +3 -3
- package/{useFocusable-DhdAtEw8.cjs → useFocusable-M4se1KJt.cjs} +1 -1
- package/{useFormValidation-DdIIVZ5j.js → useFormValidation-By7G-T7y.js} +1 -1
- package/{useFormValidation-BJNizNDf.cjs → useFormValidation-DV2Ioblb.cjs} +1 -1
- package/useHasTabbableChild-BJ_VejL5.cjs +1 -0
- package/{useHasTabbableChild-BbgOpdGQ.js → useHasTabbableChild-DpISgPsS.js} +1 -1
- package/{useHighlightSelectionDescription-D6F-YO6b.cjs → useHighlightSelectionDescription-CBZfyrhy.cjs} +1 -1
- package/{useHighlightSelectionDescription-BL_02EKv.js → useHighlightSelectionDescription-Zvo5KTxM.js} +2 -2
- package/{useHover-eU40luVI.cjs → useHover-DULSfLuK.cjs} +1 -1
- package/{useHover-zCCNtF6g.js → useHover-DkC5FyNd.js} +4 -4
- package/{useListState-D2yPZrFZ.js → useListState-CP7AKhOX.js} +1 -1
- package/{useListState-BdC308Sq.cjs → useListState-DZFWpD-x.cjs} +1 -1
- package/{usePress-4yZ5a87p.js → usePress-BqQIhkNY.js} +43 -43
- package/usePress-DmU79HEg.cjs +7 -0
- package/{useSingleSelectListState-lyai-bC_.js → useSingleSelectListState-GSY0f4qW.js} +1 -1
- package/{useSingleSelectListState-b_SPhYG4.cjs → useSingleSelectListState-JCvbhUVI.cjs} +1 -1
- package/{useTextField-DUEQl6sr.cjs → useTextField-CiWV3eeD.cjs} +1 -1
- package/{useTextField-DjxrmW7d.js → useTextField-I3QVGvyX.js} +4 -4
- package/utils/types.d.ts +5 -0
- package/utils-CtICjCYt.cjs +1 -0
- package/{utils-BMBoiyL7.js → utils-D2iKpxcZ.js} +43 -39
- package/utils-DRIRjPUS.cjs +1 -0
- package/{utils-CrT5PVBA.js → utils-Dxh86KaB.js} +19 -17
- package/AccordionItem-BJw5IKe0.js +0 -334
- package/AccordionItem-DhMimhYo.cjs +0 -1
- package/Button-BTX5G3le.cjs +0 -1
- package/Checkbox-D-CFY6QF.cjs +0 -1
- package/Collection-DaZzboRu.cjs +0 -1
- package/ComboBox-C4NybZ32.cjs +0 -1
- package/DateInputDivider-BgXKFwB0.cjs +0 -1
- package/DateRangePicker-DTPkr3hX.cjs +0 -6
- package/Dialog-DLnopN3Z.js +0 -237
- package/Dialog-DNu42oLH.cjs +0 -1
- package/Dialog-w6EBWT__.cjs +0 -1
- package/FocusScope-Dv0F-mG2.cjs +0 -1
- package/Group-C2hEIsGV.js +0 -45
- package/Group-cuyk9Hsy.cjs +0 -1
- package/Layout-CVnlO10z.cjs +0 -16
- package/ListBox-Bx9M5vqb.cjs +0 -1
- package/ListBoxLoadMoreItem-BBE3OF4J.cjs +0 -1
- package/ListBoxSection-kujY2gUl.cjs +0 -1
- package/ListKeyboardDelegate-DJDPir-w.cjs +0 -1
- package/Popover-BI2Koco0.cjs +0 -1
- package/Popover-D7_IfJ3o.js +0 -38
- package/RSPContexts-D8hmBfGm.cjs +0 -1
- package/Radio-D6KNkSA2.js +0 -333
- package/Radio-DsVsutMH.cjs +0 -1
- package/Select-D9h_RQ2k.cjs +0 -1
- package/Select-Dc6y8gPR.js +0 -654
- package/SelectionManager-D-4ThfPZ.js +0 -1043
- package/SelectionManager-FYrDfe5v.cjs +0 -1
- package/Spinner-CTha503N.js +0 -47
- package/Spinner-DKQ9_SQB.cjs +0 -6
- package/TabList-BhC96APe.cjs +0 -1
- package/TabList-P5HnizZt.js +0 -393
- package/Table-BB8Ag5_3.cjs +0 -16
- package/Tag-D2vh0KRD.js +0 -765
- package/Tag-D32MGLjS.cjs +0 -1
- package/TextField-4xfAzdBI.cjs +0 -1
- package/ToggleButtonGroup-CiX2eXB8.cjs +0 -1
- package/assets/ListBoxSection.css +0 -1
- package/scrollIntoView-ClEACHUk.js +0 -57
- package/scrollIntoView-DRSoJp89.cjs +0 -1
- package/select/useMultiSelect.d.ts +0 -4
- package/useDateFormatter-D0bVjgIb.cjs +0 -1
- package/useHasTabbableChild-wH3RCjTd.cjs +0 -1
- package/useObserveElement-BdI4zgd7.js +0 -27
- package/useObserveElement-BzEr5D32.cjs +0 -1
- package/usePress-Dj3t18Pf.cjs +0 -7
- package/utils-I-LGXGYH.cjs +0 -1
- package/utils-cBvgilDa.cjs +0 -1
- package/variables-B3KEYyhW.cjs +0 -1
- package/variables-DzXcMW2k.js +0 -5
- /package/{select → legacy-select}/HiddenMultiSelect.d.ts +0 -0
- /package/{select → legacy-select}/MultiSelectValueTag.d.ts +0 -0
- /package/{select → legacy-select}/SelectFieldError.d.ts +0 -0
- /package/{select → legacy-select}/SelectListBox.d.ts +0 -0
- /package/{select → legacy-select}/useMultiSelectListState.d.ts +0 -0
- /package/{select → legacy-select}/useMultiSelectState.d.ts +0 -0
- /package/{select → legacy-select}/utils.d.ts +0 -0
|
@@ -1,17 +1,15 @@
|
|
|
1
|
-
import { jsx as
|
|
2
|
-
import {
|
|
3
|
-
import { g as
|
|
4
|
-
import
|
|
5
|
-
import {
|
|
6
|
-
import { $ as
|
|
7
|
-
import { flushSync as
|
|
8
|
-
import { g as
|
|
9
|
-
import { $ as
|
|
10
|
-
import { c as
|
|
11
|
-
import { f as
|
|
12
|
-
import
|
|
13
|
-
import { e as ye } from "./Separator-COlhRmJF.js";
|
|
14
|
-
import './assets/ListBoxSection.css';class ve {
|
|
1
|
+
import { jsx as K } from "react/jsx-runtime";
|
|
2
|
+
import { e as te } from "./ListBox-5GK4ZRj1.js";
|
|
3
|
+
import { g as ie, m as le } from "./Collection-BkxwF21i.js";
|
|
4
|
+
import m, { useState as z, useRef as _, useMemo as C, useCallback as k, useEffect as oe, createContext as W, useContext as D } from "react";
|
|
5
|
+
import { d as ne, $ as M } from "./mergeProps-Ct8m5-xW.js";
|
|
6
|
+
import { $ as X } from "./context-Dl_saGB6.js";
|
|
7
|
+
import { flushSync as V } from "react-dom";
|
|
8
|
+
import { g as se } from "./OverlayArrow-CjGslX2c.js";
|
|
9
|
+
import { $ as re } from "./useEvent-smuTnX4G.js";
|
|
10
|
+
import { c as ae } from "./clsx-jbLnTBqA.js";
|
|
11
|
+
import { f as q } from "./SelectionManager-DoNLJm8c.js";
|
|
12
|
+
import './assets/ListBox.css';class he {
|
|
15
13
|
/**
|
|
16
14
|
* Returns whether the layout should invalidate in response to
|
|
17
15
|
* visible rectangle changes. By default, it only invalidates
|
|
@@ -204,12 +202,12 @@ class f {
|
|
|
204
202
|
this.x = e, this.y = t, this.width = i, this.height = l;
|
|
205
203
|
}
|
|
206
204
|
}
|
|
207
|
-
class
|
|
205
|
+
class $ {
|
|
208
206
|
/**
|
|
209
207
|
* Returns a copy of this size.
|
|
210
208
|
*/
|
|
211
209
|
copy() {
|
|
212
|
-
return new
|
|
210
|
+
return new $(this.width, this.height);
|
|
213
211
|
}
|
|
214
212
|
/**
|
|
215
213
|
* Returns whether this size is equal to another one.
|
|
@@ -227,8 +225,8 @@ class H {
|
|
|
227
225
|
this.width = Math.max(e, 0), this.height = Math.max(t, 0);
|
|
228
226
|
}
|
|
229
227
|
}
|
|
230
|
-
let
|
|
231
|
-
class
|
|
228
|
+
let de = 0;
|
|
229
|
+
class A {
|
|
232
230
|
/**
|
|
233
231
|
* Prepares the view for reuse. Called just before the view is removed from the DOM.
|
|
234
232
|
*/
|
|
@@ -237,7 +235,7 @@ class G {
|
|
|
237
235
|
}
|
|
238
236
|
getReusableView(e) {
|
|
239
237
|
let t = this.reusableViews.get(e);
|
|
240
|
-
return t && t.length > 0 ? t.shift() : new
|
|
238
|
+
return t && t.length > 0 ? t.shift() : new ue(this.virtualizer, this, e);
|
|
241
239
|
}
|
|
242
240
|
reuseChild(e) {
|
|
243
241
|
e.prepareForReuse();
|
|
@@ -245,27 +243,27 @@ class G {
|
|
|
245
243
|
t || (t = [], this.reusableViews.set(e.viewType, t)), t.push(e);
|
|
246
244
|
}
|
|
247
245
|
constructor(e, t) {
|
|
248
|
-
this.virtualizer = e, this.key = ++
|
|
246
|
+
this.virtualizer = e, this.key = ++de, this.viewType = t, this.children = /* @__PURE__ */ new Set(), this.reusableViews = /* @__PURE__ */ new Map(), this.layoutInfo = null, this.content = null, this.rendered = null;
|
|
249
247
|
}
|
|
250
248
|
}
|
|
251
|
-
class
|
|
249
|
+
class ce extends A {
|
|
252
250
|
constructor(e) {
|
|
253
251
|
super(e, "root");
|
|
254
252
|
}
|
|
255
253
|
}
|
|
256
|
-
class
|
|
254
|
+
class ue extends A {
|
|
257
255
|
constructor(e, t, i) {
|
|
258
256
|
super(e, i), this.parent = t;
|
|
259
257
|
}
|
|
260
258
|
}
|
|
261
|
-
function
|
|
262
|
-
if (
|
|
263
|
-
if (
|
|
264
|
-
for (let t of
|
|
259
|
+
function fe(s, e) {
|
|
260
|
+
if (s === e) return !0;
|
|
261
|
+
if (s.size !== e.size) return !1;
|
|
262
|
+
for (let t of s)
|
|
265
263
|
if (!e.has(t)) return !1;
|
|
266
264
|
return !0;
|
|
267
265
|
}
|
|
268
|
-
class
|
|
266
|
+
class ge {
|
|
269
267
|
setVisibleRect(e) {
|
|
270
268
|
let t = performance.now() - this.startTime;
|
|
271
269
|
t < 500 && (e.x !== this.visibleRect.x && t > 0 && (this.velocity.x = (e.x - this.visibleRect.x) / t), e.y !== this.visibleRect.y && t > 0 && (this.velocity.y = (e.y - this.visibleRect.y) / t)), this.startTime = performance.now(), this.visibleRect = e;
|
|
@@ -282,7 +280,7 @@ class xe {
|
|
|
282
280
|
this.startTime = 0, this.velocity = new x(0, 0), this.visibleRect = new f();
|
|
283
281
|
}
|
|
284
282
|
}
|
|
285
|
-
class
|
|
283
|
+
class ye {
|
|
286
284
|
/** Returns whether the given key, or an ancestor, is persisted. */
|
|
287
285
|
isPersistedKey(e) {
|
|
288
286
|
if (this.persistedKeys.has(e)) return !0;
|
|
@@ -332,9 +330,9 @@ class Ie {
|
|
|
332
330
|
getVisibleLayoutInfos() {
|
|
333
331
|
let e = process.env.NODE_ENV === "test" && !process.env.VIRT_ON, t = e && typeof HTMLElement < "u" && Object.getOwnPropertyNames(HTMLElement.prototype).includes("clientWidth"), i = e && typeof HTMLElement < "u" && Object.getOwnPropertyNames(HTMLElement.prototype).includes("clientHeight"), l;
|
|
334
332
|
e && !(t && i) ? l = new f(0, 0, this.contentSize.width, this.contentSize.height) : l = this._overscanManager.getOverscannedRect();
|
|
335
|
-
let o = this.layout.getVisibleLayoutInfos(l),
|
|
336
|
-
for (let a of o)
|
|
337
|
-
return
|
|
333
|
+
let o = this.layout.getVisibleLayoutInfos(l), n = /* @__PURE__ */ new Map();
|
|
334
|
+
for (let a of o) n.set(a.key, a);
|
|
335
|
+
return n;
|
|
338
336
|
}
|
|
339
337
|
updateSubviews() {
|
|
340
338
|
let e = this.getVisibleLayoutInfos(), t = /* @__PURE__ */ new Set();
|
|
@@ -348,8 +346,8 @@ class Ie {
|
|
|
348
346
|
o = this.getReusableView(l), o.parent.children.add(o), this._visibleViews.set(i, o), t.delete(o);
|
|
349
347
|
else {
|
|
350
348
|
o.layoutInfo = l;
|
|
351
|
-
let
|
|
352
|
-
o.content !==
|
|
349
|
+
let n = this.collection.getItem(l.key);
|
|
350
|
+
o.content !== n && (o.content != null && this._renderedContent.delete(o.content), this._renderView(o));
|
|
353
351
|
}
|
|
354
352
|
}
|
|
355
353
|
for (let i of t)
|
|
@@ -362,11 +360,11 @@ class Ie {
|
|
|
362
360
|
}
|
|
363
361
|
/** Performs layout and updates visible views as needed. */
|
|
364
362
|
render(e) {
|
|
365
|
-
let t = this, i = !1, l = !1, o = !1,
|
|
366
|
-
return e.collection !== this.collection && (t.collection = e.collection, i = !0), (e.layout !== this.layout || this.layout.virtualizer !== this) && (this.layout && (this.layout.virtualizer = null), e.layout.virtualizer = this, t.layout = e.layout, i = !0), e.persistedKeys && !
|
|
363
|
+
let t = this, i = !1, l = !1, o = !1, n = !1, a = !1, h = !1;
|
|
364
|
+
return e.collection !== this.collection && (t.collection = e.collection, i = !0), (e.layout !== this.layout || this.layout.virtualizer !== this) && (this.layout && (this.layout.virtualizer = null), e.layout.virtualizer = this, t.layout = e.layout, i = !0), e.persistedKeys && !fe(e.persistedKeys, this.persistedKeys) && (t.persistedKeys = e.persistedKeys, h = !0), this.visibleRect.equals(e.visibleRect) || (this._overscanManager.setVisibleRect(e.visibleRect), this.layout.shouldInvalidate(e.visibleRect, this.visibleRect) ? (l = !e.visibleRect.pointEquals(this.visibleRect), o = !e.visibleRect.sizeEquals(this.visibleRect), i = !0) : h = !0, t.visibleRect = e.visibleRect), e.invalidationContext !== this._invalidationContext && (e.invalidationContext && (o || (o = e.invalidationContext.sizeChanged || !1), l || (l = e.invalidationContext.offsetChanged || !1), n || (n = e.invalidationContext.itemSizeChanged || !1), a || (a = e.invalidationContext.layoutOptions != null && this._invalidationContext.layoutOptions != null && e.invalidationContext.layoutOptions !== this._invalidationContext.layoutOptions && this.layout.shouldInvalidateLayoutOptions(e.invalidationContext.layoutOptions, this._invalidationContext.layoutOptions)), i || (i = n || o || l || a)), this._invalidationContext = e.invalidationContext), e.isScrolling !== this._isScrolling && (this._isScrolling = e.isScrolling, e.isScrolling || (h = !0)), i ? this.relayout({
|
|
367
365
|
offsetChanged: l,
|
|
368
366
|
sizeChanged: o,
|
|
369
|
-
itemSizeChanged:
|
|
367
|
+
itemSizeChanged: n,
|
|
370
368
|
layoutOptionsChanged: a,
|
|
371
369
|
layoutOptions: this._invalidationContext.layoutOptions
|
|
372
370
|
}) : h && this.updateSubviews(), Array.from(this._rootView.children);
|
|
@@ -384,52 +382,54 @@ class Ie {
|
|
|
384
382
|
});
|
|
385
383
|
}
|
|
386
384
|
constructor(e) {
|
|
387
|
-
this.delegate = e.delegate, this.collection = e.collection, this.layout = e.layout, this.contentSize = new
|
|
385
|
+
this.delegate = e.delegate, this.collection = e.collection, this.layout = e.layout, this.contentSize = new $(), this.visibleRect = new f(), this.persistedKeys = /* @__PURE__ */ new Set(), this._visibleViews = /* @__PURE__ */ new Map(), this._renderedContent = /* @__PURE__ */ new WeakMap(), this._rootView = new ce(this), this._isScrolling = !1, this._invalidationContext = {}, this._overscanManager = new ge();
|
|
388
386
|
}
|
|
389
387
|
}
|
|
390
|
-
|
|
391
|
-
|
|
392
|
-
|
|
393
|
-
|
|
388
|
+
const ve = typeof document < "u" ? m.useLayoutEffect : () => {
|
|
389
|
+
};
|
|
390
|
+
function pe(s) {
|
|
391
|
+
let [e, t] = z(new f(0, 0, 0, 0)), [i, l] = z(!1), [o, n] = z({}), a = _(!1), [h] = z(() => new ye({
|
|
392
|
+
collection: s.collection,
|
|
393
|
+
layout: s.layout,
|
|
394
394
|
delegate: {
|
|
395
395
|
setVisibleRect(v) {
|
|
396
396
|
t(v), a.current = !0;
|
|
397
397
|
},
|
|
398
398
|
// TODO: should changing these invalidate the entire cache?
|
|
399
|
-
renderView:
|
|
400
|
-
invalidate:
|
|
399
|
+
renderView: s.renderView,
|
|
400
|
+
invalidate: n
|
|
401
401
|
}
|
|
402
402
|
}));
|
|
403
|
-
|
|
404
|
-
a.current && (a.current = !1,
|
|
403
|
+
ve(() => {
|
|
404
|
+
a.current && (a.current = !1, s.onVisibleRectChange(e));
|
|
405
405
|
});
|
|
406
|
-
let r =
|
|
406
|
+
let r = C(() => s.layoutOptions != null ? {
|
|
407
407
|
...o,
|
|
408
|
-
layoutOptions:
|
|
408
|
+
layoutOptions: s.layoutOptions
|
|
409
409
|
} : o, [
|
|
410
410
|
o,
|
|
411
|
-
|
|
411
|
+
s.layoutOptions
|
|
412
412
|
]), d = h.render({
|
|
413
|
-
layout:
|
|
414
|
-
collection:
|
|
415
|
-
persistedKeys:
|
|
416
|
-
layoutOptions:
|
|
413
|
+
layout: s.layout,
|
|
414
|
+
collection: s.collection,
|
|
415
|
+
persistedKeys: s.persistedKeys,
|
|
416
|
+
layoutOptions: s.layoutOptions,
|
|
417
417
|
visibleRect: e,
|
|
418
418
|
invalidationContext: r,
|
|
419
419
|
isScrolling: i
|
|
420
|
-
}), c = h.contentSize, u =
|
|
420
|
+
}), c = h.contentSize, u = k(() => {
|
|
421
421
|
l(!0);
|
|
422
|
-
}, []),
|
|
422
|
+
}, []), y = k(() => {
|
|
423
423
|
l(!1);
|
|
424
424
|
}, []);
|
|
425
|
-
return
|
|
425
|
+
return C(() => ({
|
|
426
426
|
virtualizer: h,
|
|
427
427
|
visibleViews: d,
|
|
428
428
|
setVisibleRect: t,
|
|
429
429
|
contentSize: c,
|
|
430
430
|
isScrolling: i,
|
|
431
431
|
startScrolling: u,
|
|
432
|
-
endScrolling:
|
|
432
|
+
endScrolling: y
|
|
433
433
|
}), [
|
|
434
434
|
h,
|
|
435
435
|
d,
|
|
@@ -437,11 +437,11 @@ function Re(n) {
|
|
|
437
437
|
c,
|
|
438
438
|
i,
|
|
439
439
|
u,
|
|
440
|
-
|
|
440
|
+
y
|
|
441
441
|
]);
|
|
442
442
|
}
|
|
443
443
|
const R = 48;
|
|
444
|
-
class
|
|
444
|
+
class me extends he {
|
|
445
445
|
// Backward compatibility for subclassing.
|
|
446
446
|
get collection() {
|
|
447
447
|
return this.virtualizer.collection;
|
|
@@ -453,12 +453,12 @@ class Se extends ve {
|
|
|
453
453
|
getVisibleLayoutInfos(e) {
|
|
454
454
|
if (e.height > 1) {
|
|
455
455
|
var t, i;
|
|
456
|
-
let
|
|
457
|
-
e.y = Math.floor(e.y /
|
|
456
|
+
let n = ((i = (t = this.rowHeight) !== null && t !== void 0 ? t : this.estimatedRowHeight) !== null && i !== void 0 ? i : R) + this.gap;
|
|
457
|
+
e.y = Math.floor(e.y / n) * n, e.height = Math.ceil(e.height / n) * n;
|
|
458
458
|
}
|
|
459
459
|
this.layoutIfNeeded(e);
|
|
460
|
-
let l = [], o = (
|
|
461
|
-
for (let a of
|
|
460
|
+
let l = [], o = (n) => {
|
|
461
|
+
for (let a of n) this.isVisible(a, e) && (l.push(a.layoutInfo), a.children && o(a.children));
|
|
462
462
|
};
|
|
463
463
|
return o(this.rootNodes), l;
|
|
464
464
|
}
|
|
@@ -477,8 +477,8 @@ class Se extends ve {
|
|
|
477
477
|
}
|
|
478
478
|
shouldInvalidateEverything(e) {
|
|
479
479
|
let t = e.layoutOptions;
|
|
480
|
-
var i, l, o,
|
|
481
|
-
return e.sizeChanged || this.rowHeight !== ((i = t == null ? void 0 : t.rowHeight) !== null && i !== void 0 ? i : this.rowHeight) || this.headingHeight !== ((l = t == null ? void 0 : t.headingHeight) !== null && l !== void 0 ? l : this.headingHeight) || this.loaderHeight !== ((o = t == null ? void 0 : t.loaderHeight) !== null && o !== void 0 ? o : this.loaderHeight) || this.gap !== ((
|
|
480
|
+
var i, l, o, n, a;
|
|
481
|
+
return e.sizeChanged || this.rowHeight !== ((i = t == null ? void 0 : t.rowHeight) !== null && i !== void 0 ? i : this.rowHeight) || this.headingHeight !== ((l = t == null ? void 0 : t.headingHeight) !== null && l !== void 0 ? l : this.headingHeight) || this.loaderHeight !== ((o = t == null ? void 0 : t.loaderHeight) !== null && o !== void 0 ? o : this.loaderHeight) || this.gap !== ((n = t == null ? void 0 : t.gap) !== null && n !== void 0 ? n : this.gap) || this.padding !== ((a = t == null ? void 0 : t.padding) !== null && a !== void 0 ? a : this.padding);
|
|
482
482
|
}
|
|
483
483
|
shouldInvalidateLayoutOptions(e, t) {
|
|
484
484
|
return e.rowHeight !== t.rowHeight || e.estimatedRowHeight !== t.estimatedRowHeight || e.headingHeight !== t.headingHeight || e.estimatedHeadingHeight !== t.estimatedHeadingHeight || e.loaderHeight !== t.loaderHeight || e.dropIndicatorThickness !== t.dropIndicatorThickness || e.gap !== t.gap || e.padding !== t.padding;
|
|
@@ -491,8 +491,8 @@ class Se extends ve {
|
|
|
491
491
|
this.rowHeight = (l = i == null ? void 0 : i.rowHeight) !== null && l !== void 0 ? l : this.rowHeight;
|
|
492
492
|
var o;
|
|
493
493
|
this.estimatedRowHeight = (o = i == null ? void 0 : i.estimatedRowHeight) !== null && o !== void 0 ? o : this.estimatedRowHeight;
|
|
494
|
-
var
|
|
495
|
-
this.headingHeight = (
|
|
494
|
+
var n;
|
|
495
|
+
this.headingHeight = (n = i == null ? void 0 : i.headingHeight) !== null && n !== void 0 ? n : this.headingHeight;
|
|
496
496
|
var a;
|
|
497
497
|
this.estimatedHeadingHeight = (a = i == null ? void 0 : i.estimatedHeadingHeight) !== null && a !== void 0 ? a : this.estimatedHeadingHeight;
|
|
498
498
|
var h;
|
|
@@ -509,8 +509,8 @@ class Se extends ve {
|
|
|
509
509
|
buildCollection(e = this.padding) {
|
|
510
510
|
let t = this.virtualizer.collection, i = [
|
|
511
511
|
...t
|
|
512
|
-
], l = i.filter((r) => r.type === "loader"), o = [],
|
|
513
|
-
|
|
512
|
+
], l = i.filter((r) => r.type === "loader"), o = [], n = (t == null ? void 0 : t.size) === 0;
|
|
513
|
+
n && (e = 0);
|
|
514
514
|
for (let r of i) {
|
|
515
515
|
var a, h;
|
|
516
516
|
let d = ((h = (a = this.rowHeight) !== null && a !== void 0 ? a : this.estimatedRowHeight) !== null && h !== void 0 ? h : R) + this.gap;
|
|
@@ -525,17 +525,17 @@ class Se extends ve {
|
|
|
525
525
|
}
|
|
526
526
|
if ((r.type === "item" || r.type === "loader") && e > this.requestedRect.maxY) {
|
|
527
527
|
let u = i.indexOf(r);
|
|
528
|
-
for (let
|
|
529
|
-
let
|
|
530
|
-
e += (
|
|
531
|
-
let v = this.buildChild(
|
|
532
|
-
o.push(v), e = v.layoutInfo.rect.maxY, u =
|
|
528
|
+
for (let y of l) {
|
|
529
|
+
let g = i.indexOf(y);
|
|
530
|
+
e += (g - u - 1) * d;
|
|
531
|
+
let v = this.buildChild(y, this.padding, e, null);
|
|
532
|
+
o.push(v), e = v.layoutInfo.rect.maxY, u = g;
|
|
533
533
|
}
|
|
534
534
|
e += (i.length - u - 1) * d;
|
|
535
535
|
break;
|
|
536
536
|
}
|
|
537
537
|
}
|
|
538
|
-
return e -= this.gap, e +=
|
|
538
|
+
return e -= this.gap, e += n ? 0 : this.padding, this.contentSize = new $(this.virtualizer.visibleRect.width, e), o;
|
|
539
539
|
}
|
|
540
540
|
isValid(e, t) {
|
|
541
541
|
let i = this.layoutNodes.get(e.key);
|
|
@@ -565,30 +565,30 @@ class Se extends ve {
|
|
|
565
565
|
buildLoader(e, t, i) {
|
|
566
566
|
let l = new f(t, i, this.padding, 0), o = new b("loader", e.key, l);
|
|
567
567
|
l.width = this.virtualizer.contentSize.width - this.padding - t;
|
|
568
|
-
var
|
|
569
|
-
return l.height = e.props.isLoading ? (h = (a = (
|
|
568
|
+
var n, a, h;
|
|
569
|
+
return l.height = e.props.isLoading ? (h = (a = (n = this.loaderHeight) !== null && n !== void 0 ? n : this.rowHeight) !== null && a !== void 0 ? a : this.estimatedRowHeight) !== null && h !== void 0 ? h : R : 0, {
|
|
570
570
|
layoutInfo: o,
|
|
571
571
|
validRect: l.intersection(this.requestedRect)
|
|
572
572
|
};
|
|
573
573
|
}
|
|
574
574
|
buildSection(e, t, i) {
|
|
575
|
-
let l = this.virtualizer.collection, o = this.virtualizer.visibleRect.width - this.padding,
|
|
576
|
-
for (let
|
|
575
|
+
let l = this.virtualizer.collection, o = this.virtualizer.visibleRect.width - this.padding, n = new f(t, i, o - t, 0), a = new b(e.type, e.key, n), h = i, r = 0, d = [];
|
|
576
|
+
for (let y of q(e, l)) {
|
|
577
577
|
var c, u;
|
|
578
|
-
let
|
|
579
|
-
if (i +
|
|
580
|
-
i +=
|
|
578
|
+
let g = ((u = (c = this.rowHeight) !== null && c !== void 0 ? c : this.estimatedRowHeight) !== null && u !== void 0 ? u : R) + this.gap;
|
|
579
|
+
if (i + g < this.requestedRect.y && !this.isValid(e, i)) {
|
|
580
|
+
i += g, r++;
|
|
581
581
|
continue;
|
|
582
582
|
}
|
|
583
|
-
let v = this.buildChild(
|
|
583
|
+
let v = this.buildChild(y, t, i, a.key);
|
|
584
584
|
if (i = v.layoutInfo.rect.maxY + this.gap, d.push(v), i > this.requestedRect.maxY) {
|
|
585
585
|
i += ([
|
|
586
|
-
...
|
|
587
|
-
].length - (d.length + r)) *
|
|
586
|
+
...q(e, l)
|
|
587
|
+
].length - (d.length + r)) * g;
|
|
588
588
|
break;
|
|
589
589
|
}
|
|
590
590
|
}
|
|
591
|
-
return i -= this.gap,
|
|
591
|
+
return i -= this.gap, n.height = i - h, {
|
|
592
592
|
layoutInfo: a,
|
|
593
593
|
children: d,
|
|
594
594
|
validRect: a.rect.intersection(this.requestedRect),
|
|
@@ -596,18 +596,18 @@ class Se extends ve {
|
|
|
596
596
|
};
|
|
597
597
|
}
|
|
598
598
|
buildSectionHeader(e, t, i) {
|
|
599
|
-
let l = this.virtualizer.visibleRect.width - this.padding, o = this.headingHeight,
|
|
599
|
+
let l = this.virtualizer.visibleRect.width - this.padding, o = this.headingHeight, n = !1;
|
|
600
600
|
if (o == null) {
|
|
601
601
|
let r = this.layoutNodes.get(e.key), d = r == null ? void 0 : r.layoutInfo;
|
|
602
602
|
if (d) {
|
|
603
603
|
let c = this.virtualizer.collection.getItem(e.key), u = this.lastCollection ? this.lastCollection.getItem(e.key) : null;
|
|
604
|
-
o = d.rect.height,
|
|
604
|
+
o = d.rect.height, n = l !== d.rect.width || c !== u || d.estimatedSize;
|
|
605
605
|
} else
|
|
606
|
-
o = e.rendered ? this.estimatedHeadingHeight : 0,
|
|
606
|
+
o = e.rendered ? this.estimatedHeadingHeight : 0, n = !0;
|
|
607
607
|
}
|
|
608
608
|
o == null && (o = R);
|
|
609
609
|
let a = new f(t, i, l - t, o), h = new b("header", e.key, a);
|
|
610
|
-
return h.estimatedSize =
|
|
610
|
+
return h.estimatedSize = n, {
|
|
611
611
|
layoutInfo: h,
|
|
612
612
|
children: [],
|
|
613
613
|
validRect: h.rect.intersection(this.requestedRect),
|
|
@@ -615,14 +615,14 @@ class Se extends ve {
|
|
|
615
615
|
};
|
|
616
616
|
}
|
|
617
617
|
buildItem(e, t, i) {
|
|
618
|
-
let l = this.virtualizer.visibleRect.width - this.padding - t, o = this.rowHeight,
|
|
618
|
+
let l = this.virtualizer.visibleRect.width - this.padding - t, o = this.rowHeight, n = !1;
|
|
619
619
|
if (o == null) {
|
|
620
620
|
let r = this.layoutNodes.get(e.key);
|
|
621
|
-
r ? (o = r.layoutInfo.rect.height,
|
|
621
|
+
r ? (o = r.layoutInfo.rect.height, n = l !== r.layoutInfo.rect.width || e !== r.node || r.layoutInfo.estimatedSize) : (o = this.estimatedRowHeight, n = !0);
|
|
622
622
|
}
|
|
623
623
|
o == null && (o = R);
|
|
624
624
|
let a = new f(t, i, l, o), h = new b(e.type, e.key, a);
|
|
625
|
-
return h.estimatedSize =
|
|
625
|
+
return h.estimatedSize = n, {
|
|
626
626
|
layoutInfo: h,
|
|
627
627
|
children: [],
|
|
628
628
|
validRect: h.rect,
|
|
@@ -634,11 +634,11 @@ class Se extends ve {
|
|
|
634
634
|
if (!i) return !1;
|
|
635
635
|
let l = this.virtualizer.collection, o = i.layoutInfo;
|
|
636
636
|
if (o.estimatedSize = !1, o.rect.height !== t.height) {
|
|
637
|
-
let
|
|
638
|
-
|
|
637
|
+
let n = o.copy();
|
|
638
|
+
n.rect.height = t.height, i.layoutInfo = n, this.validRect.height = Math.min(this.validRect.height, o.rect.y - this.validRect.y), this.requestedRect.height += n.rect.height - o.rect.height, this.updateLayoutNode(e, o, n);
|
|
639
639
|
let a = o.parentKey != null ? l.getItem(o.parentKey) : null;
|
|
640
640
|
for (; a; )
|
|
641
|
-
this.updateLayoutNode(a.key, o,
|
|
641
|
+
this.updateLayoutNode(a.key, o, n), a = a.parentKey != null ? l.getItem(a.parentKey) : null;
|
|
642
642
|
return !0;
|
|
643
643
|
}
|
|
644
644
|
return !1;
|
|
@@ -652,16 +652,16 @@ class Se extends ve {
|
|
|
652
652
|
}
|
|
653
653
|
getDropTargetFromPoint(e, t, i) {
|
|
654
654
|
e += this.virtualizer.visibleRect.x, t += this.virtualizer.visibleRect.y;
|
|
655
|
-
let l = new f(e, Math.max(0, t - this.gap), 1, Math.max(1, this.gap * 2)), o = this.getVisibleLayoutInfos(l),
|
|
655
|
+
let l = new f(e, Math.max(0, t - this.gap), 1, Math.max(1, this.gap * 2)), o = this.getVisibleLayoutInfos(l), n = null, a = 1 / 0;
|
|
656
656
|
for (let c of o) {
|
|
657
657
|
if (!c.rect.intersects(l)) continue;
|
|
658
|
-
let u = Math.abs(c.rect.y - t),
|
|
659
|
-
|
|
658
|
+
let u = Math.abs(c.rect.y - t), y = Math.abs(c.rect.maxY - t), g = Math.min(u, y);
|
|
659
|
+
g < a && (a = g, n = c.key);
|
|
660
660
|
}
|
|
661
|
-
if (
|
|
661
|
+
if (n == null || this.virtualizer.collection.size === 0) return {
|
|
662
662
|
type: "root"
|
|
663
663
|
};
|
|
664
|
-
let h = this.getLayoutInfo(
|
|
664
|
+
let h = this.getLayoutInfo(n);
|
|
665
665
|
if (!h) return null;
|
|
666
666
|
let r = h.rect, d = {
|
|
667
667
|
type: "item",
|
|
@@ -689,10 +689,10 @@ class Se extends ve {
|
|
|
689
689
|
let o = this.collection.getItem(e.key);
|
|
690
690
|
if (o) {
|
|
691
691
|
var l;
|
|
692
|
-
let
|
|
692
|
+
let n = (l = o.level) !== null && l !== void 0 ? l : 0, a = this.collection.getKeyAfter(e.key);
|
|
693
693
|
for (; a != null; ) {
|
|
694
694
|
let h = this.collection.getItem(a);
|
|
695
|
-
if (!h || h.level <=
|
|
695
|
+
if (!h || h.level <= n) break;
|
|
696
696
|
t = this.getLayoutInfo(a) || t, a = this.collection.getKeyAfter(a);
|
|
697
697
|
}
|
|
698
698
|
}
|
|
@@ -714,13 +714,13 @@ class Se extends ve {
|
|
|
714
714
|
this.headingHeight = (l = e.headingHeight) !== null && l !== void 0 ? l : null;
|
|
715
715
|
var o;
|
|
716
716
|
this.estimatedHeadingHeight = (o = e.estimatedHeadingHeight) !== null && o !== void 0 ? o : null;
|
|
717
|
-
var
|
|
718
|
-
this.loaderHeight = (
|
|
717
|
+
var n;
|
|
718
|
+
this.loaderHeight = (n = e.loaderHeight) !== null && n !== void 0 ? n : null, this.dropIndicatorThickness = e.dropIndicatorThickness || 2, this.gap = e.gap || 0, this.padding = e.padding || 0, this.layoutNodes = /* @__PURE__ */ new Map(), this.rootNodes = [], this.lastCollection = null, this.invalidateEverything = !1, this.validRect = new f(), this.requestedRect = new f(), this.contentSize = new $();
|
|
719
719
|
}
|
|
720
720
|
}
|
|
721
721
|
let S = null;
|
|
722
|
-
function
|
|
723
|
-
if (S === null ||
|
|
722
|
+
function we(s = !1) {
|
|
723
|
+
if (S === null || s) {
|
|
724
724
|
const e = document.createElement("div"), t = e.style;
|
|
725
725
|
t.width = "50px", t.height = "50px", t.overflow = "scroll", t.direction = "rtl";
|
|
726
726
|
const i = document.createElement("div"), l = i.style;
|
|
@@ -728,11 +728,11 @@ function $e(n = !1) {
|
|
|
728
728
|
}
|
|
729
729
|
return S;
|
|
730
730
|
}
|
|
731
|
-
function
|
|
732
|
-
let { scrollLeft: t } =
|
|
731
|
+
function be(s, e) {
|
|
732
|
+
let { scrollLeft: t } = s;
|
|
733
733
|
if (e === "rtl") {
|
|
734
|
-
let { scrollWidth: i, clientWidth: l } =
|
|
735
|
-
switch (
|
|
734
|
+
let { scrollWidth: i, clientWidth: l } = s;
|
|
735
|
+
switch (we()) {
|
|
736
736
|
case "negative":
|
|
737
737
|
t = -t;
|
|
738
738
|
break;
|
|
@@ -743,8 +743,8 @@ function ze(n, e) {
|
|
|
743
743
|
}
|
|
744
744
|
return t;
|
|
745
745
|
}
|
|
746
|
-
function
|
|
747
|
-
let { contentSize: t, onVisibleRectChange: i, innerStyle: l, onScrollStart: o, onScrollEnd:
|
|
746
|
+
function xe(s, e) {
|
|
747
|
+
let { contentSize: t, onVisibleRectChange: i, innerStyle: l, onScrollStart: o, onScrollEnd: n, scrollDirection: a = "both", ...h } = s, r = _({
|
|
748
748
|
scrollTop: 0,
|
|
749
749
|
scrollLeft: 0,
|
|
750
750
|
scrollEndTime: 0,
|
|
@@ -752,62 +752,59 @@ function He(n, e) {
|
|
|
752
752
|
width: 0,
|
|
753
753
|
height: 0,
|
|
754
754
|
isScrolling: !1
|
|
755
|
-
}).current, { direction: d } =
|
|
756
|
-
|
|
757
|
-
|
|
758
|
-
|
|
759
|
-
s
|
|
760
|
-
]), y = z((p) => {
|
|
761
|
-
p.target === p.currentTarget && (n.onScroll && n.onScroll(p), B(() => {
|
|
762
|
-
let m = p.currentTarget.scrollTop, _ = ze(p.currentTarget, d);
|
|
763
|
-
r.scrollTop = Math.max(0, Math.min(m, t.height - r.height)), r.scrollLeft = Math.max(0, Math.min(_, t.width - r.width)), i(new f(r.scrollLeft, r.scrollTop, r.width, r.height)), r.isScrolling || (r.isScrolling = !0, u(!0), window.dispatchEvent(new Event("tk.disconnect-observer")), o && o());
|
|
755
|
+
}).current, { direction: d } = X(), [c, u] = z(!1), y = k((p) => {
|
|
756
|
+
p.target === p.currentTarget && (s.onScroll && s.onScroll(p), V(() => {
|
|
757
|
+
let w = p.currentTarget.scrollTop, H = be(p.currentTarget, d);
|
|
758
|
+
r.scrollTop = Math.max(0, Math.min(w, t.height - r.height)), r.scrollLeft = Math.max(0, Math.min(H, t.width - r.width)), i(new f(r.scrollLeft, r.scrollTop, r.width, r.height)), r.isScrolling || (r.isScrolling = !0, u(!0), window.dispatchEvent(new Event("tk.disconnect-observer")), o && o());
|
|
764
759
|
let E = Date.now();
|
|
765
|
-
|
|
760
|
+
r.scrollEndTime <= E + 50 && (r.scrollEndTime = E + 300, r.scrollTimeout != null && clearTimeout(r.scrollTimeout), r.scrollTimeout = setTimeout(() => {
|
|
761
|
+
r.isScrolling = !1, u(!1), r.scrollTimeout = null, window.dispatchEvent(new Event("tk.connect-observer")), n && n();
|
|
762
|
+
}, 300));
|
|
766
763
|
}));
|
|
767
764
|
}, [
|
|
768
|
-
|
|
765
|
+
s,
|
|
769
766
|
d,
|
|
770
767
|
r,
|
|
771
768
|
t,
|
|
772
769
|
i,
|
|
773
770
|
o,
|
|
774
|
-
|
|
771
|
+
n
|
|
775
772
|
]);
|
|
776
|
-
|
|
773
|
+
re(e, "scroll", y), oe(() => () => {
|
|
777
774
|
r.scrollTimeout != null && clearTimeout(r.scrollTimeout), r.isScrolling && window.dispatchEvent(new Event("tk.connect-observer"));
|
|
778
775
|
}, []);
|
|
779
|
-
let
|
|
780
|
-
let
|
|
781
|
-
if (!
|
|
782
|
-
|
|
783
|
-
let
|
|
784
|
-
(r.width !==
|
|
785
|
-
i(new f(r.scrollLeft, r.scrollTop,
|
|
786
|
-
}), (!
|
|
776
|
+
let g = _(!1), v = ne((p) => {
|
|
777
|
+
let w = e.current;
|
|
778
|
+
if (!w || g.current) return;
|
|
779
|
+
g.current = !0;
|
|
780
|
+
let H = process.env.NODE_ENV === "test" && !process.env.VIRT_ON, E = Object.getOwnPropertyNames(window.HTMLElement.prototype).includes("clientWidth"), ee = Object.getOwnPropertyNames(window.HTMLElement.prototype).includes("clientHeight"), O = w.clientWidth, P = w.clientHeight, N = H && !E ? 1 / 0 : O, T = H && !ee ? 1 / 0 : P;
|
|
781
|
+
(r.width !== N || r.height !== T) && (r.width = N, r.height = T, p(() => {
|
|
782
|
+
i(new f(r.scrollLeft, r.scrollTop, N, T));
|
|
783
|
+
}), (!H && O !== w.clientWidth || P !== w.clientHeight) && (r.width = w.clientWidth, r.height = w.clientHeight, p(() => {
|
|
787
784
|
i(new f(r.scrollLeft, r.scrollTop, r.width, r.height));
|
|
788
|
-
}))),
|
|
789
|
-
}),
|
|
790
|
-
|
|
791
|
-
if (!
|
|
785
|
+
}))), g.current = !1;
|
|
786
|
+
}), L = _(null), [J, Q] = z({});
|
|
787
|
+
M(() => {
|
|
788
|
+
if (!g.current && (L.current == null || !t.equals(L.current)))
|
|
792
789
|
if (typeof IS_REACT_ACT_ENVIRONMENT == "boolean" ? IS_REACT_ACT_ENVIRONMENT : typeof jest < "u") {
|
|
793
|
-
|
|
790
|
+
Q({}), L.current = t;
|
|
794
791
|
return;
|
|
795
|
-
} else queueMicrotask(() =>
|
|
796
|
-
|
|
797
|
-
}),
|
|
798
|
-
|
|
792
|
+
} else queueMicrotask(() => v(V));
|
|
793
|
+
L.current = t;
|
|
794
|
+
}), M(() => {
|
|
795
|
+
v((p) => p());
|
|
799
796
|
}, [
|
|
800
|
-
|
|
797
|
+
J
|
|
801
798
|
]);
|
|
802
|
-
let
|
|
803
|
-
|
|
799
|
+
let Z = k(() => {
|
|
800
|
+
v(V);
|
|
804
801
|
}, [
|
|
805
|
-
|
|
802
|
+
v
|
|
806
803
|
]);
|
|
807
|
-
|
|
804
|
+
se({
|
|
808
805
|
ref: e,
|
|
809
806
|
box: "border-box",
|
|
810
|
-
onResize:
|
|
807
|
+
onResize: Z
|
|
811
808
|
});
|
|
812
809
|
let I = {
|
|
813
810
|
// Reset padding so that relative positioning works correctly. Padding will be done in JS layout.
|
|
@@ -832,51 +829,51 @@ function He(n, e) {
|
|
|
832
829
|
}
|
|
833
830
|
};
|
|
834
831
|
}
|
|
835
|
-
function
|
|
836
|
-
let { layoutInfo: e, virtualizer: t, ref: i } =
|
|
832
|
+
function Ie(s) {
|
|
833
|
+
let { layoutInfo: e, virtualizer: t, ref: i } = s, l = e == null ? void 0 : e.key, o = k(() => {
|
|
837
834
|
if (l != null && i.current) {
|
|
838
|
-
let
|
|
839
|
-
t.updateItemSize(l,
|
|
835
|
+
let n = Re(i.current);
|
|
836
|
+
t.updateItemSize(l, n);
|
|
840
837
|
}
|
|
841
838
|
}, [
|
|
842
839
|
t,
|
|
843
840
|
l,
|
|
844
841
|
i
|
|
845
842
|
]);
|
|
846
|
-
return
|
|
843
|
+
return M(() => {
|
|
847
844
|
e != null && e.estimatedSize && o();
|
|
848
845
|
}), {
|
|
849
846
|
updateSize: o
|
|
850
847
|
};
|
|
851
848
|
}
|
|
852
|
-
function
|
|
853
|
-
let e =
|
|
854
|
-
|
|
855
|
-
let t = new
|
|
856
|
-
return
|
|
849
|
+
function Re(s) {
|
|
850
|
+
let e = s.style.height;
|
|
851
|
+
s.style.height = "";
|
|
852
|
+
let t = new $(s.scrollWidth, s.scrollHeight);
|
|
853
|
+
return s.style.height = e, t;
|
|
857
854
|
}
|
|
858
|
-
function
|
|
859
|
-
let { style: e, className: t, layoutInfo: i, virtualizer: l, parent: o, children:
|
|
860
|
-
return
|
|
855
|
+
function F(s) {
|
|
856
|
+
let { style: e, className: t, layoutInfo: i, virtualizer: l, parent: o, children: n } = s, { direction: a } = X(), h = _(null);
|
|
857
|
+
return Ie({
|
|
861
858
|
layoutInfo: i,
|
|
862
859
|
virtualizer: l,
|
|
863
860
|
ref: h
|
|
864
|
-
}), /* @__PURE__ */
|
|
861
|
+
}), /* @__PURE__ */ m.createElement("div", {
|
|
865
862
|
role: "presentation",
|
|
866
863
|
ref: h,
|
|
867
864
|
className: t,
|
|
868
865
|
style: {
|
|
869
|
-
...
|
|
866
|
+
...Se(i, a, o),
|
|
870
867
|
...e
|
|
871
868
|
}
|
|
872
|
-
},
|
|
869
|
+
}, n);
|
|
873
870
|
}
|
|
874
|
-
let
|
|
875
|
-
function
|
|
876
|
-
let i = e === "rtl" ? "right" : "left", l =
|
|
871
|
+
let B = /* @__PURE__ */ new WeakMap();
|
|
872
|
+
function Se(s, e, t) {
|
|
873
|
+
let i = e === "rtl" ? "right" : "left", l = B.get(s);
|
|
877
874
|
if (l && l[i] != null) {
|
|
878
875
|
if (!t) return l;
|
|
879
|
-
let h =
|
|
876
|
+
let h = s.rect.y - t.rect.y, r = s.rect.x - t.rect.x;
|
|
880
877
|
if (l.top === h && l[i] === r) return l;
|
|
881
878
|
}
|
|
882
879
|
let o = {
|
|
@@ -884,55 +881,55 @@ function ke(n, e, t) {
|
|
|
884
881
|
// which WON'T be the parent since the parent has overflow visible. This means we shouldn't offset the height by the parent's position
|
|
885
882
|
// Not 100% about this change here since it is quite ambigious what the scrolling container maybe and how its top is positioned with respect to the
|
|
886
883
|
// calculated layoutInfo.y here
|
|
887
|
-
top:
|
|
888
|
-
[i]:
|
|
889
|
-
width:
|
|
890
|
-
height:
|
|
884
|
+
top: s.rect.y - (t && !(t.allowOverflow && s.isSticky) ? t.rect.y : 0),
|
|
885
|
+
[i]: s.rect.x - (t && !(t.allowOverflow && s.isSticky) ? t.rect.x : 0),
|
|
886
|
+
width: s.rect.width,
|
|
887
|
+
height: s.rect.height
|
|
891
888
|
};
|
|
892
889
|
Object.entries(o).forEach(([h, r]) => {
|
|
893
890
|
Number.isFinite(r) || (o[h] = void 0);
|
|
894
891
|
});
|
|
895
|
-
var
|
|
892
|
+
var n;
|
|
896
893
|
let a = {
|
|
897
|
-
position:
|
|
894
|
+
position: s.isSticky ? "sticky" : "absolute",
|
|
898
895
|
// Sticky elements are positioned in normal document flow. Display inline-block so that they don't push other sticky columns onto the following rows.
|
|
899
|
-
display:
|
|
900
|
-
overflow:
|
|
901
|
-
opacity:
|
|
902
|
-
zIndex:
|
|
903
|
-
transform: (
|
|
896
|
+
display: s.isSticky ? "inline-block" : void 0,
|
|
897
|
+
overflow: s.allowOverflow ? "visible" : "hidden",
|
|
898
|
+
opacity: s.opacity,
|
|
899
|
+
zIndex: s.zIndex,
|
|
900
|
+
transform: (n = s.transform) !== null && n !== void 0 ? n : void 0,
|
|
904
901
|
contain: "size layout style",
|
|
905
902
|
...o
|
|
906
903
|
};
|
|
907
|
-
return
|
|
904
|
+
return B.set(s, a), a;
|
|
908
905
|
}
|
|
909
|
-
const
|
|
910
|
-
function
|
|
911
|
-
let { children: e, layout: t, layoutOptions: i } =
|
|
906
|
+
const j = /* @__PURE__ */ W(null), U = /* @__PURE__ */ W(null);
|
|
907
|
+
function ze(s) {
|
|
908
|
+
let { children: e, layout: t, layoutOptions: i } = s, l = C(() => typeof t == "function" ? new t() : t, [
|
|
912
909
|
t
|
|
913
|
-
]), o =
|
|
910
|
+
]), o = C(() => ({
|
|
914
911
|
isVirtualized: !0,
|
|
915
912
|
layoutDelegate: l,
|
|
916
913
|
dropTargetDelegate: l.getDropTargetFromPoint ? l : void 0,
|
|
917
|
-
CollectionRoot:
|
|
918
|
-
CollectionBranch:
|
|
914
|
+
CollectionRoot: $e,
|
|
915
|
+
CollectionBranch: He
|
|
919
916
|
}), [
|
|
920
917
|
l
|
|
921
918
|
]);
|
|
922
|
-
return /* @__PURE__ */
|
|
919
|
+
return /* @__PURE__ */ m.createElement(ie.Provider, {
|
|
923
920
|
value: o
|
|
924
|
-
}, /* @__PURE__ */
|
|
921
|
+
}, /* @__PURE__ */ m.createElement(U.Provider, {
|
|
925
922
|
value: {
|
|
926
923
|
layout: l,
|
|
927
924
|
layoutOptions: i
|
|
928
925
|
}
|
|
929
926
|
}, e));
|
|
930
927
|
}
|
|
931
|
-
function
|
|
928
|
+
function $e({ collection: s, persistedKeys: e, scrollRef: t, renderDropIndicator: i }) {
|
|
932
929
|
var l;
|
|
933
|
-
let { layout: o, layoutOptions:
|
|
930
|
+
let { layout: o, layoutOptions: n } = D(U), a = (l = o.useLayoutOptions) === null || l === void 0 ? void 0 : l.call(o), h = pe({
|
|
934
931
|
layout: o,
|
|
935
|
-
collection:
|
|
932
|
+
collection: s,
|
|
936
933
|
renderView: (d, c) => {
|
|
937
934
|
var u;
|
|
938
935
|
return c == null || (u = c.render) === null || u === void 0 ? void 0 : u.call(c, c);
|
|
@@ -942,58 +939,58 @@ function Ne({ collection: n, persistedKeys: e, scrollRef: t, renderDropIndicator
|
|
|
942
939
|
c && (c.scrollLeft = d.x, c.scrollTop = d.y);
|
|
943
940
|
},
|
|
944
941
|
persistedKeys: e,
|
|
945
|
-
layoutOptions:
|
|
946
|
-
...
|
|
942
|
+
layoutOptions: C(() => n && a ? {
|
|
943
|
+
...n,
|
|
947
944
|
...a
|
|
948
|
-
} :
|
|
949
|
-
|
|
945
|
+
} : n || a, [
|
|
946
|
+
n,
|
|
950
947
|
a
|
|
951
948
|
])
|
|
952
|
-
}), { contentProps: r } =
|
|
949
|
+
}), { contentProps: r } = xe({
|
|
953
950
|
onVisibleRectChange: h.setVisibleRect,
|
|
954
951
|
contentSize: h.contentSize,
|
|
955
952
|
onScrollStart: h.startScrolling,
|
|
956
953
|
onScrollEnd: h.endScrolling
|
|
957
954
|
}, t);
|
|
958
|
-
return /* @__PURE__ */
|
|
955
|
+
return /* @__PURE__ */ m.createElement("div", r, /* @__PURE__ */ m.createElement(j.Provider, {
|
|
959
956
|
value: h
|
|
960
|
-
},
|
|
957
|
+
}, G(null, h.visibleViews, i)));
|
|
961
958
|
}
|
|
962
|
-
function
|
|
963
|
-
let i = j
|
|
964
|
-
return
|
|
959
|
+
function He({ parent: s, renderDropIndicator: e }) {
|
|
960
|
+
let i = D(j).virtualizer.getVisibleView(s.key);
|
|
961
|
+
return G(i, Array.from(i.children), e);
|
|
965
962
|
}
|
|
966
|
-
function
|
|
967
|
-
return e.map((i) =>
|
|
963
|
+
function G(s, e, t) {
|
|
964
|
+
return e.map((i) => _e(s, i, t));
|
|
968
965
|
}
|
|
969
|
-
function
|
|
970
|
-
let i = /* @__PURE__ */
|
|
966
|
+
function _e(s, e, t) {
|
|
967
|
+
let i = /* @__PURE__ */ m.createElement(F, {
|
|
971
968
|
key: e.key,
|
|
972
969
|
layoutInfo: e.layoutInfo,
|
|
973
970
|
virtualizer: e.virtualizer,
|
|
974
|
-
parent:
|
|
975
|
-
}, e.rendered), { collection: l, layout: o } = e.virtualizer,
|
|
976
|
-
return (
|
|
971
|
+
parent: s == null ? void 0 : s.layoutInfo
|
|
972
|
+
}, e.rendered), { collection: l, layout: o } = e.virtualizer, n = e.content;
|
|
973
|
+
return (n == null ? void 0 : n.type) === "item" && t && o.getDropTargetLayoutInfo && (i = /* @__PURE__ */ m.createElement(m.Fragment, {
|
|
977
974
|
key: e.key
|
|
978
|
-
},
|
|
975
|
+
}, Y(s, e, {
|
|
979
976
|
type: "item",
|
|
980
977
|
key: e.content.key,
|
|
981
978
|
dropPosition: "before"
|
|
982
|
-
}, t), i,
|
|
979
|
+
}, t), i, le(l, n, (a) => Y(s, e, a, t)))), i;
|
|
983
980
|
}
|
|
984
|
-
function
|
|
981
|
+
function Y(s, e, t, i) {
|
|
985
982
|
let l = i(t);
|
|
986
983
|
if (l) {
|
|
987
984
|
let o = e.virtualizer.layout.getDropTargetLayoutInfo(t);
|
|
988
|
-
l = /* @__PURE__ */
|
|
985
|
+
l = /* @__PURE__ */ m.createElement(F, {
|
|
989
986
|
layoutInfo: o,
|
|
990
987
|
virtualizer: e.virtualizer,
|
|
991
|
-
parent:
|
|
988
|
+
parent: s == null ? void 0 : s.layoutInfo
|
|
992
989
|
}, l);
|
|
993
990
|
}
|
|
994
991
|
return l;
|
|
995
992
|
}
|
|
996
|
-
class
|
|
993
|
+
class Ce extends me {
|
|
997
994
|
/**
|
|
998
995
|
* When using the ListLayout our scroll container height is not calculated properly when the content is partially sectioned.
|
|
999
996
|
* ```ts
|
|
@@ -1018,68 +1015,35 @@ class Ve extends Se {
|
|
|
1018
1015
|
}), this.contentSize;
|
|
1019
1016
|
}
|
|
1020
1017
|
}
|
|
1021
|
-
const
|
|
1022
|
-
listBox:
|
|
1023
|
-
listBoxPopover:
|
|
1024
|
-
listBoxSectionHeading:
|
|
1025
|
-
listBoxButton:
|
|
1026
|
-
listBoxItem:
|
|
1027
|
-
listBoxLoadMoreItem:
|
|
1028
|
-
},
|
|
1029
|
-
className:
|
|
1018
|
+
const ke = "_listBox_13mbb_4", Le = "_listBoxPopover_13mbb_16", Ee = "_listBoxSectionHeading_13mbb_31", Ne = "_listBoxButton_13mbb_43", Te = "_listBoxItem_13mbb_55", Ve = "_listBoxLoadMoreItem_13mbb_165", Me = {
|
|
1019
|
+
listBox: ke,
|
|
1020
|
+
listBoxPopover: Le,
|
|
1021
|
+
listBoxSectionHeading: Ee,
|
|
1022
|
+
listBoxButton: Ne,
|
|
1023
|
+
listBoxItem: Te,
|
|
1024
|
+
listBoxLoadMoreItem: Ve
|
|
1025
|
+
}, je = ({
|
|
1026
|
+
className: s,
|
|
1030
1027
|
children: e,
|
|
1031
1028
|
...t
|
|
1032
|
-
}) => /* @__PURE__ */
|
|
1033
|
-
|
|
1029
|
+
}) => /* @__PURE__ */ K(
|
|
1030
|
+
ze,
|
|
1034
1031
|
{
|
|
1035
|
-
layout:
|
|
1032
|
+
layout: Ce,
|
|
1036
1033
|
layoutOptions: {
|
|
1037
|
-
headingHeight:
|
|
1034
|
+
headingHeight: 38
|
|
1038
1035
|
},
|
|
1039
|
-
children: /* @__PURE__ */
|
|
1040
|
-
|
|
1036
|
+
children: /* @__PURE__ */ K(
|
|
1037
|
+
te,
|
|
1041
1038
|
{
|
|
1042
|
-
className:
|
|
1039
|
+
className: ae(Me.listBox, s),
|
|
1043
1040
|
...t,
|
|
1044
1041
|
children: e
|
|
1045
1042
|
}
|
|
1046
1043
|
)
|
|
1047
1044
|
}
|
|
1048
|
-
)
|
|
1049
|
-
children: n,
|
|
1050
|
-
className: e,
|
|
1051
|
-
...t
|
|
1052
|
-
}) => /* @__PURE__ */ k(
|
|
1053
|
-
re,
|
|
1054
|
-
{
|
|
1055
|
-
className: K(M.listBoxItem, e),
|
|
1056
|
-
...t,
|
|
1057
|
-
children: n
|
|
1058
|
-
}
|
|
1059
|
-
), lt = ({
|
|
1060
|
-
className: n,
|
|
1061
|
-
children: e,
|
|
1062
|
-
...t
|
|
1063
|
-
}) => /* @__PURE__ */ k(
|
|
1064
|
-
ge,
|
|
1065
|
-
{
|
|
1066
|
-
className: K(n, M.listBoxPopover),
|
|
1067
|
-
offset: 0,
|
|
1068
|
-
...t,
|
|
1069
|
-
children: e
|
|
1070
|
-
}
|
|
1071
|
-
), ot = ({
|
|
1072
|
-
children: n,
|
|
1073
|
-
name: e,
|
|
1074
|
-
...t
|
|
1075
|
-
}) => /* @__PURE__ */ ne(ae, { ...t, children: [
|
|
1076
|
-
/* @__PURE__ */ k(ye, { className: M.listBoxSectionHeading, children: e }),
|
|
1077
|
-
n
|
|
1078
|
-
] });
|
|
1045
|
+
);
|
|
1079
1046
|
export {
|
|
1080
|
-
|
|
1081
|
-
|
|
1082
|
-
lt as b,
|
|
1083
|
-
ot as c,
|
|
1084
|
-
M as s
|
|
1047
|
+
je as L,
|
|
1048
|
+
Me as s
|
|
1085
1049
|
};
|