@cgi-learning-hub/ui 1.8.0 → 1.9.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/dist/Alert-BH_3hKCB.cjs +1 -0
- package/dist/{Alert-6yOnGlLE.js → Alert-BeVYzSS-.js} +7 -7
- package/dist/Alert-BoYBWOXe.cjs +1 -0
- package/dist/{Alert-D6SQnjuJ.js → Alert-CEu3llDi.js} +15 -14
- package/dist/Autocomplete-BKpavKFW.cjs +6 -0
- package/dist/{Autocomplete-B8u-WYi5.js → Autocomplete-DBZYn4YL.js} +49 -48
- package/dist/{Backdrop-DuOPKUSY.js → Backdrop-BvL371G3.js} +7 -7
- package/dist/Backdrop-qOBrabpf.cjs +1 -0
- package/dist/{Badge-BJ4yH_Da.js → Badge-2Kgbx-Cs.js} +11 -10
- package/dist/Badge-DXl0Da36.cjs +1 -0
- package/dist/{Box-BWETzF5p.js → Box-BaZ7KlAc.js} +4 -4
- package/dist/Box-CYQlQqRB.cjs +1 -0
- package/dist/Button-BP-QmmUu.cjs +1 -0
- package/dist/{Button-C8_HxKFe.js → Button-C1mKNW-c.js} +167 -130
- package/dist/{ButtonBase-CJYV8wgs.js → ButtonBase-C2jRC_V7.js} +7 -7
- package/dist/{ButtonBase-DPIkh47Q.cjs → ButtonBase-DSJojbNE.cjs} +1 -1
- package/dist/CardContent-DVcUynuH.cjs +1 -0
- package/dist/{CardContent-V9JMSLmA.js → CardContent-kIapWv4T.js} +4 -4
- package/dist/Checkbox-DhhuvKO5.cjs +1 -0
- package/dist/{Checkbox-DMMz_IAP.js → Checkbox-RxHWtafR.js} +16 -15
- package/dist/{Chip-BDVqkZZM.js → Chip-DgGmi9yn.js} +13 -12
- package/dist/Chip-n1kY-Dsh.cjs +1 -0
- package/dist/CircularProgress-BOm4zz7e.cjs +28 -0
- package/dist/{CircularProgress-CrWnCGqN.js → CircularProgress-CLq0Rl-1.js} +15 -14
- package/dist/{Close-2eEmvKPH.cjs → Close-DR9m6hv3.cjs} +1 -1
- package/dist/{Close-Cr2OT0GV.js → Close-vu-MZYNA.js} +1 -1
- package/dist/{CloseRounded-B6cT7aGi.cjs → CloseRounded-Cpp6nWQi.cjs} +1 -1
- package/dist/{CloseRounded-BrGeesu1.js → CloseRounded-DF05lCUu.js} +1 -1
- package/dist/{CustomTreeItem-DhB3ECa2.js → CustomTreeItem-AecanDDg.js} +21 -20
- package/dist/CustomTreeItem-BBMp0k4i.cjs +41 -0
- package/dist/{DatePicker-ofISDY8Q.js → DatePicker-Cd-Aj-F8.js} +3905 -3811
- package/dist/DatePicker-Dj7U52Mk.cjs +16 -0
- package/dist/{DefaultPropsProvider-nxIPd34m.js → DefaultPropsProvider-BrmlvPWg.js} +24 -24
- package/dist/DefaultPropsProvider-C1g4BXET.cjs +1 -0
- package/dist/{Delete-BF63Gpr-.cjs → Delete-C36W48MB.cjs} +1 -1
- package/dist/{Delete-CwWpjEOT.js → Delete-DXUljXzP.js} +1 -1
- package/dist/Dialog-C2HYr67H.cjs +1 -0
- package/dist/{Dialog-eK1zTFBm.js → Dialog-D__8rwpw.js} +16 -15
- package/dist/{DialogContent-BsPZJR2a.js → DialogContent-MPwmUJQp.js} +4 -4
- package/dist/DialogContent-lup2v_ab.cjs +1 -0
- package/dist/DialogTitle-B8jOk7ZE.cjs +1 -0
- package/dist/{DialogTitle-CaAd59jN.js → DialogTitle-Dly5D3Ud.js} +6 -6
- package/dist/{Divider-D_gbcyWE.js → Divider-BN12gMv9.js} +5 -5
- package/dist/Divider-wisA5Qp_.cjs +1 -0
- package/dist/{Folder-COKXTjZ4.js → Folder-BSZMyA2L.js} +1 -1
- package/dist/{Folder-D0fZbyc-.cjs → Folder-aAI_w_uF.cjs} +1 -1
- package/dist/FormLabel-ByYWZh7M.cjs +2 -0
- package/dist/{FormLabel-DmLckqyT.js → FormLabel-DtxJI2CU.js} +17 -16
- package/dist/{Grid-vM--ojbL.js → Grid-C0LY-MbT.js} +83 -75
- package/dist/Grid-CPXE25PR.cjs +2 -0
- package/dist/{Grow-ovNT7Sot.cjs → Grow-6zwoqUfO.cjs} +1 -1
- package/dist/{Grow-DE5x7F5S.js → Grow-CeGwnQpw.js} +4 -4
- package/dist/IconButton-BTN16gZi.cjs +2 -0
- package/dist/{IconButton-f9EZgwvD.js → IconButton-DBjiNqOa.js} +17 -16
- package/dist/InputAdornment-C1r1YutO.cjs +1 -0
- package/dist/{InputAdornment-B615VSjF.js → InputAdornment-DuR35FtU.js} +16 -15
- package/dist/InputBase-CxknnWV4.cjs +4 -0
- package/dist/{InputBase-BCbPPzW1.js → InputBase-D5UJOJBu.js} +52 -51
- package/dist/Link-T11NCxGd.cjs +1 -0
- package/dist/{Link-GBRiPElP.js → Link-hWCqsQiI.js} +50 -49
- package/dist/{List-DZkddOsr.js → List-CmJ1jCss.js} +3 -3
- package/dist/List-eQ4D0MvJ.cjs +1 -0
- package/dist/ListItem-CgWgbZ_g.cjs +1 -0
- package/dist/{ListItem-CMoibMI7.js → ListItem-onoPfwb4.js} +6 -6
- package/dist/ListItemText-B-dySXgz.cjs +1 -0
- package/dist/{ListItemText-BbrPf29n.js → ListItemText-BjhXxIIV.js} +10 -10
- package/dist/{Menu-C0uY9Dd0.cjs → Menu-D7B383z4.cjs} +5 -5
- package/dist/{Menu-3UjlpKRJ.js → Menu-DGvAkF5F.js} +32 -32
- package/dist/{MenuItem-CHEWce5u.js → MenuItem-Cusmy5t2.js} +8 -8
- package/dist/MenuItem-D-4xzo-S.cjs +1 -0
- package/dist/Modal-DB9K8sJI.cjs +2 -0
- package/dist/{Modal-Du5LfkZg.js → Modal-DtjScKxh.js} +8 -8
- package/dist/{MoreVert-DZjEMvuw.cjs → MoreVert-BwfUF9pO.cjs} +1 -1
- package/dist/{MoreVert-PLU7h8WO.js → MoreVert-woCQ0dNf.js} +1 -1
- package/dist/{Paper-BylmTlAJ.js → Paper-CZXfHfN_.js} +5 -5
- package/dist/Paper-DcVuAxq3.cjs +2 -0
- package/dist/{Popper-CvQLHjwo.js → Popper-BwuGO_Si.js} +7 -7
- package/dist/Popper-D5Cs38W_.cjs +4 -0
- package/dist/Portal-Cmv45gpL.cjs +1 -0
- package/dist/{Portal-BlK6ttxt.js → Portal-PkRJuFYN.js} +17 -17
- package/dist/{Radio-CbYgci2-.js → Radio-DiyDpiVL.js} +18 -17
- package/dist/Radio-DzKwkI68.cjs +1 -0
- package/dist/RadioGroup-BlkHQVRF.cjs +1 -0
- package/dist/{RadioGroup-D-Cq8SmM.js → RadioGroup-CjUaFqjJ.js} +4 -4
- package/dist/{Select-Bx0yVOZE.js → Select-BxH16ruJ.js} +528 -552
- package/dist/Select-CSQfbogA.cjs +3 -0
- package/dist/Stack-ChvZzNqc.cjs +1 -0
- package/dist/{Stack-CbK4a2n5.js → Stack-pMJEpL7k.js} +17 -17
- package/dist/Stepper-BsfN7O-W.cjs +1 -0
- package/dist/{Stepper-DU9nixCp.js → Stepper-DyH4sgY5.js} +24 -23
- package/dist/{Switch-Bm3Gclye.js → Switch-BgZUmsKc.js} +8 -7
- package/dist/Switch-Dr2jgPGV.cjs +1 -0
- package/dist/SwitchBase-BP_I-APE.cjs +1 -0
- package/dist/{SwitchBase-9CKmTWdZ.js → SwitchBase-BWz31Ed6.js} +22 -21
- package/dist/{Tab-DBCv1T9W.js → Tab-Bksf_S4K.js} +78 -77
- package/dist/Tab-D2mI5G0L.cjs +4 -0
- package/dist/TextField-C9AnzUpZ.cjs +1 -0
- package/dist/{TextField-V-EQ80Y6.js → TextField-Ctx4aW6-.js} +25 -24
- package/dist/ToggleButtonGroup-CBw2I124.cjs +138 -0
- package/dist/{ToggleButtonGroup-_UpIjysl.js → ToggleButtonGroup-DtjRqNbI.js} +1225 -1199
- package/dist/{Tooltip-DKHOTDh0.js → Tooltip-C5AffX17.js} +24 -23
- package/dist/Tooltip-CUm8vKGq.cjs +4 -0
- package/dist/{Typography-o0iALAVg.js → Typography-Cr-aIusw.js} +8 -7
- package/dist/Typography-DHjq4GzQ.cjs +1 -0
- package/dist/capitalize-3OjkeP9i.cjs +1 -0
- package/dist/capitalize-BHEX83JQ.js +9 -0
- package/dist/components/ActionBar/style.cjs.js +1 -1
- package/dist/components/ActionBar/style.es.js +2 -2
- package/dist/components/Alert/Alert.cjs.js +1 -1
- package/dist/components/Alert/Alert.es.js +4 -4
- package/dist/components/Alert/index.cjs.js +1 -1
- package/dist/components/Alert/index.es.js +1 -1
- package/dist/components/Button/Button.cjs.js +1 -1
- package/dist/components/Button/Button.es.js +42 -20
- package/dist/components/ColorPicker/ColorPicker.cjs.js +4 -4
- package/dist/components/ColorPicker/ColorPicker.es.js +64 -64
- package/dist/components/DatePicker/DatePicker.cjs.js +1 -1
- package/dist/components/DatePicker/DatePicker.es.js +1 -1
- package/dist/components/DatePicker/index.cjs.js +1 -1
- package/dist/components/DatePicker/index.es.js +1 -1
- package/dist/components/Dialog/Dialog.cjs.js +1 -1
- package/dist/components/Dialog/Dialog.es.js +2 -2
- package/dist/components/Dropzone/Dropzone.cjs.js +1 -1
- package/dist/components/Dropzone/Dropzone.es.js +4 -4
- package/dist/components/EmptyState/EmptyState.cjs.js +1 -1
- package/dist/components/EmptyState/EmptyState.es.js +3 -3
- package/dist/components/FileList/FileIcon.cjs.js +1 -1
- package/dist/components/FileList/FileIcon.es.js +1 -1
- package/dist/components/FileList/FileListItem.cjs.js +1 -1
- package/dist/components/FileList/FileListItem.es.js +4 -4
- package/dist/components/FolderCard/FolderCard.cjs.js +1 -1
- package/dist/components/FolderCard/FolderCard.es.js +2 -2
- package/dist/components/Heading/Heading.cjs.js +1 -1
- package/dist/components/Heading/Heading.es.js +2 -2
- package/dist/components/ImagePicker/ImagePicker.cjs.js +1 -1
- package/dist/components/ImagePicker/ImagePicker.es.js +5 -5
- package/dist/components/Loader/Loader.cjs.js +1 -1
- package/dist/components/Loader/Loader.es.js +1 -1
- package/dist/components/LoaderBackdrop/LoaderBackdrop.cjs.js +1 -1
- package/dist/components/LoaderBackdrop/LoaderBackdrop.es.js +2 -2
- package/dist/components/PasswordInput/PasswordInput.cjs.js +1 -1
- package/dist/components/PasswordInput/PasswordInput.es.js +4 -4
- package/dist/components/ResourceCard/ResourceCard.cjs.js +1 -1
- package/dist/components/ResourceCard/ResourceCard.es.js +1 -1
- package/dist/components/SearchInput/SearchInput.cjs.js +1 -1
- package/dist/components/SearchInput/SearchInput.es.js +4 -4
- package/dist/components/TreeView/TreeView.cjs.js +5 -5
- package/dist/components/TreeView/TreeView.es.js +568 -555
- package/dist/components/TreeView/components/CustomTreeItem.cjs.js +1 -1
- package/dist/components/TreeView/components/CustomTreeItem.es.js +2 -2
- package/dist/components/TreeView/utils.cjs.js +1 -1
- package/dist/components/TreeView/utils.es.js +3 -3
- package/dist/components/index.cjs.js +1 -1
- package/dist/components/index.es.js +44 -44
- package/dist/components/stories/Alert.stories.cjs.js +1 -1
- package/dist/components/stories/Alert.stories.es.js +1 -1
- package/dist/components/stories/Autocomplete.stories.cjs.js +1 -1
- package/dist/components/stories/Autocomplete.stories.es.js +2 -2
- package/dist/components/stories/Badge.stories.cjs.js +1 -1
- package/dist/components/stories/Badge.stories.es.js +2 -2
- package/dist/components/stories/Button.stories.cjs.js +1 -1
- package/dist/components/stories/Button.stories.es.js +26 -8
- package/dist/components/stories/ButtonGroup.stories.cjs.js +1 -1
- package/dist/components/stories/ButtonGroup.stories.es.js +6 -6
- package/dist/components/stories/Card.stories.cjs.js +1 -1
- package/dist/components/stories/Card.stories.es.js +2 -2
- package/dist/components/stories/Checkbox.stories.cjs.js +1 -1
- package/dist/components/stories/Checkbox.stories.es.js +1 -1
- package/dist/components/stories/Chip.stories.cjs.js +1 -1
- package/dist/components/stories/Chip.stories.es.js +1 -1
- package/dist/components/stories/DatePicker.stories.cjs.js +1 -1
- package/dist/components/stories/DatePicker.stories.es.js +1 -1
- package/dist/components/stories/Dialog.stories.cjs.js +1 -1
- package/dist/components/stories/Dialog.stories.es.js +2 -2
- package/dist/components/stories/Divider.stories.cjs.js +1 -1
- package/dist/components/stories/Divider.stories.es.js +1 -1
- package/dist/components/stories/FormControlLabel.stories.cjs.js +1 -1
- package/dist/components/stories/FormControlLabel.stories.es.js +3 -3
- package/dist/components/stories/Heading.stories.cjs.js +1 -1
- package/dist/components/stories/Heading.stories.es.js +2 -2
- package/dist/components/stories/IconButton.stories.cjs.js +1 -1
- package/dist/components/stories/IconButton.stories.es.js +2 -2
- package/dist/components/stories/Link.stories.cjs.js +1 -1
- package/dist/components/stories/Link.stories.es.js +1 -1
- package/dist/components/stories/Menu.stories.cjs.js +1 -1
- package/dist/components/stories/Menu.stories.es.js +2 -2
- package/dist/components/stories/Paper.stories.cjs.js +1 -1
- package/dist/components/stories/Paper.stories.es.js +1 -1
- package/dist/components/stories/RadioGroup.stories.cjs.js +1 -1
- package/dist/components/stories/RadioGroup.stories.es.js +3 -3
- package/dist/components/stories/ResourceCard.stories.cjs.js +1 -1
- package/dist/components/stories/ResourceCard.stories.es.js +1 -1
- package/dist/components/stories/Select.stories.cjs.js +1 -1
- package/dist/components/stories/Select.stories.es.js +3 -3
- package/dist/components/stories/Stepper.stories.cjs.js +1 -1
- package/dist/components/stories/Stepper.stories.es.js +4 -4
- package/dist/components/stories/TabList.stories.cjs.js +1 -1
- package/dist/components/stories/TabList.stories.es.js +1 -1
- package/dist/components/stories/TextField.stories.cjs.js +1 -1
- package/dist/components/stories/TextField.stories.es.js +1 -1
- package/dist/components/stories/Tooltip.stories.cjs.js +1 -1
- package/dist/components/stories/Tooltip.stories.es.js +2 -2
- package/dist/components/stories/TreeView.stories.cjs.js +1 -1
- package/dist/components/stories/TreeView.stories.es.js +12 -12
- package/dist/components/stories/Typography.stories.cjs.js +1 -1
- package/dist/components/stories/Typography.stories.es.js +1 -1
- package/dist/composeClasses-BskurlZX.js +51 -0
- package/dist/composeClasses-vN5Almps.cjs +1 -0
- package/dist/createSvgIcon-CcWpa9Le.cjs +1 -0
- package/dist/{createSvgIcon-BV54rC7k.js → createSvgIcon-DFIM5PqN.js} +9 -8
- package/dist/{dividerClasses-DDXs86hs.js → dividerClasses-BEzQ_reA.js} +1 -1
- package/dist/dividerClasses-BpVbhp8e.cjs +1 -0
- package/dist/{elementAcceptingRef-CEweUuUA.js → elementAcceptingRef-CZLfau9O.js} +1 -1
- package/dist/{elementAcceptingRef-BZ42cOGO.cjs → elementAcceptingRef-CuMilXz3.cjs} +1 -1
- package/dist/{elementTypeAcceptingRef-DOeckaXy.js → elementTypeAcceptingRef-vRb2iI4O.js} +1 -1
- package/dist/{elementTypeAcceptingRef-BwZv9xBI.cjs → elementTypeAcceptingRef-vjR5jGLx.cjs} +1 -1
- package/dist/{extendSxProp-XouBF-Ct.js → extendSxProp-DGsHTtAe.js} +1 -1
- package/dist/extendSxProp-Dwd9vpYv.cjs +1 -0
- package/dist/{identifier-Dnc8T93Z.js → generateUtilityClasses-B_xKAflz.js} +645 -615
- package/dist/generateUtilityClasses-CENS22bI.cjs +55 -0
- package/dist/{index-Sy88PpwE.js → index-B9vkf41S.js} +2 -2
- package/dist/index-BPpGXp0s.cjs +1 -0
- package/dist/{index-DIyAQH20.cjs → index-BS46Ff4t.cjs} +1 -1
- package/dist/{index-DX2Sl0Ig.js → index-Ba4TEBpP.js} +1 -1
- package/dist/{index-CX0sAlmK.js → index-CJMnfcQs.js} +1 -1
- package/dist/{index-9te7SXrs.js → index-CwHv-blH.js} +5 -5
- package/dist/{index-CrINMjCH.cjs → index-D_kvDIOz.cjs} +1 -1
- package/dist/{index-DLnSn8GT.cjs → index-kjfz41UI.cjs} +1 -1
- package/dist/index.cjs.js +1 -1
- package/dist/index.es.js +44 -44
- package/dist/{listItemTextClasses-4p_83pwn.js → listItemTextClasses-CEbo8A-K.js} +1 -1
- package/dist/listItemTextClasses-wcJANWC3.cjs +1 -0
- package/dist/{memoTheme-Dv-rDqFz.cjs → memoTheme-Bi1UNdyO.cjs} +1 -1
- package/dist/{memoTheme-K37vidlb.js → memoTheme-C-PaH-Cy.js} +1 -1
- package/dist/mergeSlotProps-CL6s5QgQ.cjs +1 -0
- package/dist/{mergeSlotProps-DSWiBSbD.js → mergeSlotProps-DVtjofCS.js} +1 -1
- package/dist/{refType-Dp7CJc86.js → refType-8hihVLUh.js} +1 -1
- package/dist/{refType-B_IEJm4x.cjs → refType-DJyA--UV.cjs} +1 -1
- package/dist/{useSlot-GooGQrej.js → useSlot-BSkdRaZr.js} +1 -1
- package/dist/useSlot-C-aMxEm0.cjs +1 -0
- package/dist/{useSlotProps-CtYqUyy1.cjs → useSlotProps-BVVfeURp.cjs} +1 -1
- package/dist/{useSlotProps-C34Wr67s.js → useSlotProps-CWTjRiRv.js} +1 -1
- package/dist/useTheme-0AkY41zn.js +11 -0
- package/dist/useTheme-BT6SDKkk.cjs +1 -0
- package/dist/useTheme-BrGF2Vm0.cjs +1 -0
- package/dist/{useTheme-VH02z7nF.js → useTheme-DSA6Ir8k.js} +1 -1
- package/dist/useThemeProps-BWsN0TEk.cjs +1 -0
- package/dist/{useThemeProps-DZ05-54P.js → useThemeProps-CAonvyKa.js} +4 -4
- package/dist/{useThemeProps-BU5PNyhK.cjs → useThemeProps-JozrkyA_.cjs} +1 -1
- package/dist/useThemeProps-hSh1qhnc.js +17 -0
- package/dist/{utils-BQenyzDz.js → utils-B_pVp6UZ.js} +3 -3
- package/dist/utils-XujN9ndp.cjs +1 -0
- package/package.json +5 -5
- package/dist/Alert-CWHOYWde.cjs +0 -1
- package/dist/Alert-D4-73fYc.cjs +0 -1
- package/dist/Autocomplete-BA6NkciB.cjs +0 -6
- package/dist/Backdrop-Dp1hKKfU.cjs +0 -1
- package/dist/Badge-XMr4Ygjv.cjs +0 -1
- package/dist/Box-B5E7sstc.cjs +0 -1
- package/dist/Button-BJB830NI.cjs +0 -1
- package/dist/CardContent-H0z20SY7.cjs +0 -1
- package/dist/Checkbox-BZPMiwbF.cjs +0 -1
- package/dist/Chip-DMBSp59F.cjs +0 -1
- package/dist/CircularProgress-BMVNeiSf.cjs +0 -28
- package/dist/CustomTreeItem-BXgsWbl_.cjs +0 -41
- package/dist/DatePicker-DtPvvFiK.cjs +0 -16
- package/dist/DefaultPropsProvider-BFTLy05-.cjs +0 -1
- package/dist/Dialog-Cymf3DJ2.cjs +0 -1
- package/dist/DialogContent-Gy1s3ela.cjs +0 -1
- package/dist/DialogTitle-BDyrzRXS.cjs +0 -1
- package/dist/Divider-BzdMIEJJ.cjs +0 -1
- package/dist/FormLabel-BLySmpkL.cjs +0 -2
- package/dist/Grid-DFaRzlB4.cjs +0 -2
- package/dist/IconButton-DCQiOq7W.cjs +0 -2
- package/dist/InputAdornment-BrrJ8chb.cjs +0 -1
- package/dist/InputBase-CRrFludT.cjs +0 -4
- package/dist/Link-CMes5bws.cjs +0 -1
- package/dist/List-E_TAQ1jJ.cjs +0 -1
- package/dist/ListItem-qTKJTg7f.cjs +0 -1
- package/dist/ListItemText-B3z5dHrQ.cjs +0 -1
- package/dist/MenuItem--a878rw9.cjs +0 -1
- package/dist/Modal-CdcolE0C.cjs +0 -2
- package/dist/Paper-DgHGh6vt.cjs +0 -2
- package/dist/Popper-BsNp09Gg.cjs +0 -4
- package/dist/Portal-CPOCKeMh.cjs +0 -1
- package/dist/Radio-CLNMQGNf.cjs +0 -1
- package/dist/RadioGroup-Dyf8fKum.cjs +0 -1
- package/dist/Select-CRVPbesC.cjs +0 -3
- package/dist/Stack-COmIqMxy.cjs +0 -1
- package/dist/Stepper-CWq9t5jy.cjs +0 -1
- package/dist/Switch-kHZOqjeU.cjs +0 -1
- package/dist/SwitchBase-Hbqxtooi.cjs +0 -1
- package/dist/Tab-DnxFjc89.cjs +0 -4
- package/dist/TextField-BhdmUny-.cjs +0 -1
- package/dist/ToggleButtonGroup-B2FBwoDV.cjs +0 -138
- package/dist/Tooltip-DYTDIzp4.cjs +0 -4
- package/dist/Typography-BvRUTdLD.cjs +0 -1
- package/dist/createSvgIcon-BJRigbha.cjs +0 -1
- package/dist/dividerClasses-CbwbHy8r.cjs +0 -1
- package/dist/extendSxProp-CxMSlckP.cjs +0 -1
- package/dist/identifier-DBvccNCw.cjs +0 -55
- package/dist/index-BkNQtUZJ.cjs +0 -1
- package/dist/listItemTextClasses-Cxo4anAo.cjs +0 -1
- package/dist/mergeSlotProps-CXO1f70l.cjs +0 -1
- package/dist/styled-B7pKW9DQ.cjs +0 -1
- package/dist/styled-JnAdiSL5.js +0 -5
- package/dist/useSlot-ONna5RyM.cjs +0 -1
- package/dist/useTheme-CH7DA5fq.js +0 -11
- package/dist/useTheme-D6wPRo0G.cjs +0 -1
- package/dist/useTheme-DkiCyF-9.cjs +0 -1
- package/dist/useThemeProps-CnZ-QgwI.cjs +0 -1
- package/dist/useThemeProps-DT4QxdFn.js +0 -17
- package/dist/utils-ByXw_ZY1.cjs +0 -1
|
@@ -1,28 +1,33 @@
|
|
|
1
|
+
var Pe = Object.defineProperty;
|
|
2
|
+
var ye = (t, e, o) => e in t ? Pe(t, e, { enumerable: !0, configurable: !0, writable: !0, value: o }) : t[e] = o;
|
|
3
|
+
var L = (t, e, o) => ye(t, typeof e != "symbol" ? e + "" : e, o);
|
|
1
4
|
import { jsx as P } from "react/jsx-runtime";
|
|
2
5
|
import * as x from "react";
|
|
3
|
-
import { useState as
|
|
4
|
-
import { a as
|
|
5
|
-
import { TreeContainer as
|
|
6
|
-
import { buildItemDataMap as
|
|
7
|
-
import { _ as T } from "../../ButtonBase-
|
|
8
|
-
import { a as
|
|
9
|
-
import { P as g } from "../../index-
|
|
10
|
-
import { G as
|
|
11
|
-
import { a as S, u as
|
|
12
|
-
import { w as
|
|
13
|
-
import { u as
|
|
14
|
-
import { u as
|
|
15
|
-
import { u as
|
|
16
|
-
import { s as
|
|
17
|
-
import { T as
|
|
18
|
-
import { A as
|
|
19
|
-
function
|
|
20
|
-
return
|
|
6
|
+
import { useState as Re, useMemo as Se, useEffect as Le } from "react";
|
|
7
|
+
import { a as Me, u as M, s as de, T as ve, b as De, d as se, e as V, f as R, h as Oe, i as Ve, j as ie, k as Ae, l as Fe, m as le, n as N, o as fe, p as _, q as A, r as Z, t as Ne, v as me, w as je, x as O, y as K, z as pe, A as W, B as _e, D as $e, E as X, F as Ue, G as qe, H as B, I as re, J as Ke, K as Be, L as z, M as ze, N as Ge, O as We, P as Xe, Q as ce, R as Ie, S as Je, U as Qe, V as Ye, W as Ze, X as He } from "../../CustomTreeItem-AecanDDg.js";
|
|
8
|
+
import { TreeContainer as et, DEFAULT_CHILDREN_INDENT as tt } from "./style.es.js";
|
|
9
|
+
import { buildItemDataMap as nt, findItemPath as ot, getItemId as st } from "./utils.es.js";
|
|
10
|
+
import { _ as T } from "../../ButtonBase-C2jRC_V7.js";
|
|
11
|
+
import { a as H } from "../../TransitionGroupContext-DbLioz_6.js";
|
|
12
|
+
import { P as g } from "../../index-B9vkf41S.js";
|
|
13
|
+
import { G as it, F as lt } from "../../generateUtilityClasses-B_xKAflz.js";
|
|
14
|
+
import { a as S, u as J } from "../../useEventCallback-Y2KwRxBw.js";
|
|
15
|
+
import { w as Q } from "../../warning-C8W811fV.js";
|
|
16
|
+
import { u as rt } from "../../index-Ba4TEBpP.js";
|
|
17
|
+
import { u as he } from "../../useSlotProps-CWTjRiRv.js";
|
|
18
|
+
import { u as ct } from "../../useForkRef-u29GSuCu.js";
|
|
19
|
+
import { s as ut, c as at } from "../../DefaultPropsProvider-BrmlvPWg.js";
|
|
20
|
+
import { T as dt } from "../../Typography-Cr-aIusw.js";
|
|
21
|
+
import { A as ft } from "../../Alert-CEu3llDi.js";
|
|
22
|
+
function mt(t) {
|
|
23
|
+
return it("MuiRichTreeView", t);
|
|
21
24
|
}
|
|
22
|
-
|
|
23
|
-
class
|
|
25
|
+
lt("MuiRichTreeView", ["root", "item", "itemContent", "itemGroupTransition", "itemIconContainer", "itemLabel", "itemCheckbox", "itemLabelInput"]);
|
|
26
|
+
class pt {
|
|
24
27
|
constructor() {
|
|
25
|
-
this
|
|
28
|
+
L(this, "maxListeners", 20);
|
|
29
|
+
L(this, "warnOnce", !1);
|
|
30
|
+
L(this, "events", {});
|
|
26
31
|
}
|
|
27
32
|
on(e, o, i = {}) {
|
|
28
33
|
let l = this.events[e];
|
|
@@ -30,8 +35,8 @@ class dt {
|
|
|
30
35
|
highPriority: /* @__PURE__ */ new Map(),
|
|
31
36
|
regular: /* @__PURE__ */ new Map()
|
|
32
37
|
}, this.events[e] = l), i.isFirst ? l.highPriority.set(o, !0) : l.regular.set(o, !0), process.env.NODE_ENV !== "production") {
|
|
33
|
-
const
|
|
34
|
-
|
|
38
|
+
const h = l.highPriority.size + l.regular.size;
|
|
39
|
+
h > this.maxListeners && !this.warnOnce && (this.warnOnce = !0, console.warn([`Possible EventEmitter memory leak detected. ${h} ${e} listeners added.`].join(`
|
|
35
40
|
`)));
|
|
36
41
|
}
|
|
37
42
|
}
|
|
@@ -45,27 +50,27 @@ class dt {
|
|
|
45
50
|
const i = this.events[e];
|
|
46
51
|
if (!i)
|
|
47
52
|
return;
|
|
48
|
-
const l = Array.from(i.highPriority.keys()),
|
|
49
|
-
for (let
|
|
50
|
-
const
|
|
51
|
-
i.highPriority.has(
|
|
53
|
+
const l = Array.from(i.highPriority.keys()), h = Array.from(i.regular.keys());
|
|
54
|
+
for (let a = l.length - 1; a >= 0; a -= 1) {
|
|
55
|
+
const d = l[a];
|
|
56
|
+
i.highPriority.has(d) && d.apply(this, o);
|
|
52
57
|
}
|
|
53
|
-
for (let
|
|
54
|
-
const
|
|
55
|
-
i.regular.has(
|
|
58
|
+
for (let a = 0; a < h.length; a += 1) {
|
|
59
|
+
const d = h[a];
|
|
60
|
+
i.regular.has(d) && d.apply(this, o);
|
|
56
61
|
}
|
|
57
62
|
}
|
|
58
63
|
once(e, o) {
|
|
59
64
|
const i = this;
|
|
60
|
-
this.on(e, function l(...
|
|
61
|
-
i.removeListener(e, l), o.apply(i,
|
|
65
|
+
this.on(e, function l(...h) {
|
|
66
|
+
i.removeListener(e, l), o.apply(i, h);
|
|
62
67
|
});
|
|
63
68
|
}
|
|
64
69
|
}
|
|
65
|
-
const
|
|
66
|
-
const [t] = x.useState(() => new
|
|
67
|
-
const [l,
|
|
68
|
-
|
|
70
|
+
const It = (t) => t.isPropagationStopped !== void 0, ge = () => {
|
|
71
|
+
const [t] = x.useState(() => new pt()), e = x.useCallback((...i) => {
|
|
72
|
+
const [l, h, a = {}] = i;
|
|
73
|
+
a.defaultMuiPrevented = !1, !(It(a) && a.isPropagationStopped()) && t.emit(l, h, a);
|
|
69
74
|
}, [t]), o = x.useCallback((i, l) => (t.on(i, l), () => {
|
|
70
75
|
t.removeListener(i, l);
|
|
71
76
|
}), [t]);
|
|
@@ -76,8 +81,8 @@ const ft = (t) => t.isPropagationStopped !== void 0, he = () => {
|
|
|
76
81
|
}
|
|
77
82
|
};
|
|
78
83
|
};
|
|
79
|
-
|
|
80
|
-
const
|
|
84
|
+
ge.params = {};
|
|
85
|
+
const be = ({
|
|
81
86
|
plugins: t
|
|
82
87
|
}) => {
|
|
83
88
|
const e = new Set(t);
|
|
@@ -87,29 +92,29 @@ const ge = ({
|
|
|
87
92
|
}
|
|
88
93
|
};
|
|
89
94
|
};
|
|
90
|
-
|
|
91
|
-
const
|
|
95
|
+
be.params = {};
|
|
96
|
+
const ee = ({
|
|
92
97
|
params: t,
|
|
93
98
|
store: e
|
|
94
99
|
}) => {
|
|
95
100
|
x.useEffect(() => {
|
|
96
101
|
e.update((i) => t.id === i.id.providedTreeId && i.id.treeId !== void 0 ? i : T({}, i, {
|
|
97
102
|
id: T({}, i.id, {
|
|
98
|
-
treeId: t.id ??
|
|
103
|
+
treeId: t.id ?? Me()
|
|
99
104
|
})
|
|
100
105
|
}));
|
|
101
106
|
}, [e, t.id]);
|
|
102
|
-
const o =
|
|
107
|
+
const o = M(e, de);
|
|
103
108
|
return {
|
|
104
109
|
getRootProps: () => ({
|
|
105
110
|
id: o
|
|
106
111
|
})
|
|
107
112
|
};
|
|
108
113
|
};
|
|
109
|
-
|
|
114
|
+
ee.params = {
|
|
110
115
|
id: !0
|
|
111
116
|
};
|
|
112
|
-
|
|
117
|
+
ee.getInitialState = ({
|
|
113
118
|
id: t
|
|
114
119
|
}) => ({
|
|
115
120
|
id: {
|
|
@@ -117,94 +122,94 @@ H.getInitialState = ({
|
|
|
117
122
|
providedTreeId: t
|
|
118
123
|
}
|
|
119
124
|
});
|
|
120
|
-
const
|
|
125
|
+
const ht = [ge, be, ee], gt = ["apiRef"], bt = (t) => {
|
|
121
126
|
let {
|
|
122
127
|
props: {
|
|
123
128
|
apiRef: e
|
|
124
129
|
},
|
|
125
130
|
plugins: o
|
|
126
|
-
} = t, i =
|
|
131
|
+
} = t, i = H(t.props, gt);
|
|
127
132
|
const l = x.useMemo(() => {
|
|
128
|
-
const
|
|
129
|
-
return o.forEach((
|
|
130
|
-
Object.assign(
|
|
131
|
-
}),
|
|
133
|
+
const d = {};
|
|
134
|
+
return o.forEach((r) => {
|
|
135
|
+
Object.assign(d, r.params);
|
|
136
|
+
}), d;
|
|
132
137
|
}, [o]), {
|
|
133
|
-
forwardedProps:
|
|
134
|
-
pluginParams:
|
|
138
|
+
forwardedProps: h,
|
|
139
|
+
pluginParams: a
|
|
135
140
|
} = x.useMemo(() => {
|
|
136
|
-
const
|
|
141
|
+
const d = {}, r = {};
|
|
137
142
|
Object.keys(i).forEach((c) => {
|
|
138
143
|
const n = i[c];
|
|
139
|
-
l[c] ?
|
|
144
|
+
l[c] ? d[c] = n : r[c] = n;
|
|
140
145
|
});
|
|
141
|
-
const
|
|
146
|
+
const m = o.reduce((c, n) => n.applyDefaultValuesToParams ? n.applyDefaultValuesToParams({
|
|
142
147
|
params: c
|
|
143
|
-
}) : c,
|
|
148
|
+
}) : c, d);
|
|
144
149
|
return {
|
|
145
|
-
forwardedProps:
|
|
146
|
-
pluginParams:
|
|
150
|
+
forwardedProps: r,
|
|
151
|
+
pluginParams: m
|
|
147
152
|
};
|
|
148
153
|
}, [o, i, l]);
|
|
149
154
|
return {
|
|
150
|
-
forwardedProps:
|
|
151
|
-
pluginParams:
|
|
155
|
+
forwardedProps: h,
|
|
156
|
+
pluginParams: a,
|
|
152
157
|
apiRef: e
|
|
153
158
|
};
|
|
154
|
-
},
|
|
159
|
+
}, Et = (t) => {
|
|
155
160
|
const {
|
|
156
161
|
plugins: e,
|
|
157
162
|
instance: o,
|
|
158
163
|
publicAPI: i,
|
|
159
164
|
store: l,
|
|
160
|
-
rootRef:
|
|
161
|
-
} = t,
|
|
165
|
+
rootRef: h
|
|
166
|
+
} = t, a = x.useCallback((m) => {
|
|
162
167
|
let c = null, n = null;
|
|
163
168
|
const s = [], I = {};
|
|
164
|
-
e.forEach((
|
|
165
|
-
if (!
|
|
169
|
+
e.forEach((p) => {
|
|
170
|
+
if (!p.itemPlugin)
|
|
166
171
|
return;
|
|
167
|
-
const
|
|
168
|
-
props:
|
|
172
|
+
const u = p.itemPlugin({
|
|
173
|
+
props: m,
|
|
169
174
|
rootRef: c,
|
|
170
175
|
contentRef: n
|
|
171
176
|
});
|
|
172
|
-
|
|
177
|
+
u != null && u.rootRef && (c = u.rootRef), u != null && u.contentRef && (n = u.contentRef), u != null && u.propsEnhancers && (s.push(u.propsEnhancers), Object.keys(u.propsEnhancers).forEach((f) => {
|
|
173
178
|
I[f] = !0;
|
|
174
179
|
}));
|
|
175
180
|
});
|
|
176
|
-
const
|
|
181
|
+
const b = (p) => (u) => {
|
|
177
182
|
const f = {};
|
|
178
183
|
return s.forEach((w) => {
|
|
179
|
-
const k = w[
|
|
180
|
-
k != null && Object.assign(f, k(
|
|
184
|
+
const k = w[p];
|
|
185
|
+
k != null && Object.assign(f, k(u));
|
|
181
186
|
}), f;
|
|
182
|
-
},
|
|
187
|
+
}, E = Object.fromEntries(Object.keys(I).map((p) => [p, b(p)]));
|
|
183
188
|
return {
|
|
184
189
|
contentRef: n,
|
|
185
190
|
rootRef: c,
|
|
186
|
-
propsEnhancers:
|
|
191
|
+
propsEnhancers: E
|
|
187
192
|
};
|
|
188
|
-
}, [e]),
|
|
189
|
-
itemId:
|
|
193
|
+
}, [e]), d = x.useCallback(({
|
|
194
|
+
itemId: m,
|
|
190
195
|
children: c,
|
|
191
196
|
idAttribute: n
|
|
192
197
|
}) => {
|
|
193
198
|
let s = c;
|
|
194
199
|
for (let I = e.length - 1; I >= 0; I -= 1) {
|
|
195
|
-
const
|
|
196
|
-
|
|
200
|
+
const b = e[I];
|
|
201
|
+
b.wrapItem && (s = b.wrapItem({
|
|
197
202
|
instance: o,
|
|
198
|
-
itemId:
|
|
203
|
+
itemId: m,
|
|
199
204
|
children: s,
|
|
200
205
|
idAttribute: n
|
|
201
206
|
}));
|
|
202
207
|
}
|
|
203
208
|
return s;
|
|
204
|
-
}, [e, o]),
|
|
205
|
-
children:
|
|
209
|
+
}, [e, o]), r = x.useCallback(({
|
|
210
|
+
children: m
|
|
206
211
|
}) => {
|
|
207
|
-
let c =
|
|
212
|
+
let c = m;
|
|
208
213
|
for (let n = e.length - 1; n >= 0; n -= 1) {
|
|
209
214
|
const s = e[n];
|
|
210
215
|
s.wrapRoot && (c = s.wrapRoot({
|
|
@@ -214,96 +219,99 @@ const mt = [he, ge, H], pt = ["apiRef"], It = (t) => {
|
|
|
214
219
|
return c;
|
|
215
220
|
}, [e]);
|
|
216
221
|
return x.useMemo(() => ({
|
|
217
|
-
runItemPlugins:
|
|
218
|
-
wrapItem:
|
|
219
|
-
wrapRoot:
|
|
222
|
+
runItemPlugins: a,
|
|
223
|
+
wrapItem: d,
|
|
224
|
+
wrapRoot: r,
|
|
220
225
|
instance: o,
|
|
221
226
|
publicAPI: i,
|
|
222
227
|
store: l,
|
|
223
|
-
rootRef:
|
|
224
|
-
}), [d, r,
|
|
228
|
+
rootRef: h
|
|
229
|
+
}), [a, d, r, o, i, l, h]);
|
|
225
230
|
};
|
|
226
|
-
class
|
|
231
|
+
class Tt {
|
|
227
232
|
constructor(e) {
|
|
228
|
-
this
|
|
229
|
-
this.listeners.delete(
|
|
230
|
-
})
|
|
231
|
-
|
|
232
|
-
|
|
233
|
-
|
|
233
|
+
L(this, "subscribe", (e) => (this.listeners.add(e), () => {
|
|
234
|
+
this.listeners.delete(e);
|
|
235
|
+
}));
|
|
236
|
+
L(this, "getSnapshot", () => this.value);
|
|
237
|
+
L(this, "update", (e) => {
|
|
238
|
+
const o = e(this.value);
|
|
239
|
+
o !== this.value && (this.value = o, this.listeners.forEach((i) => i(o)));
|
|
240
|
+
});
|
|
241
|
+
this.value = e, this.listeners = /* @__PURE__ */ new Set();
|
|
234
242
|
}
|
|
235
243
|
}
|
|
236
|
-
function
|
|
244
|
+
function xt(t) {
|
|
237
245
|
return t.current == null && (t.current = {}), t;
|
|
238
246
|
}
|
|
239
|
-
function
|
|
247
|
+
function wt(t) {
|
|
240
248
|
const e = x.useRef({});
|
|
241
|
-
return t ?
|
|
249
|
+
return t ? xt(t) : e;
|
|
242
250
|
}
|
|
243
|
-
let
|
|
244
|
-
const
|
|
251
|
+
let ue = 0;
|
|
252
|
+
const kt = ({
|
|
245
253
|
plugins: t,
|
|
246
254
|
rootRef: e,
|
|
247
255
|
props: o
|
|
248
256
|
}) => {
|
|
249
|
-
const i = x.useMemo(() => [...
|
|
257
|
+
const i = x.useMemo(() => [...ht, ...t], [t]), {
|
|
250
258
|
pluginParams: l,
|
|
251
|
-
forwardedProps:
|
|
252
|
-
apiRef:
|
|
253
|
-
} =
|
|
259
|
+
forwardedProps: h,
|
|
260
|
+
apiRef: a
|
|
261
|
+
} = bt({
|
|
254
262
|
plugins: i,
|
|
255
263
|
props: o
|
|
256
|
-
}),
|
|
264
|
+
}), r = x.useRef({}).current, m = wt(a), c = x.useRef(null), n = ct(c, e), s = x.useRef(null);
|
|
257
265
|
if (s.current == null) {
|
|
258
|
-
|
|
259
|
-
const
|
|
266
|
+
ue += 1;
|
|
267
|
+
const u = {
|
|
260
268
|
cacheKey: {
|
|
261
|
-
id:
|
|
269
|
+
id: ue
|
|
262
270
|
}
|
|
263
271
|
};
|
|
264
272
|
i.forEach((f) => {
|
|
265
|
-
f.getInitialState && Object.assign(
|
|
266
|
-
}), s.current = new
|
|
273
|
+
f.getInitialState && Object.assign(u, f.getInitialState(l));
|
|
274
|
+
}), s.current = new Tt(u);
|
|
267
275
|
}
|
|
268
|
-
const I =
|
|
276
|
+
const I = Et({
|
|
269
277
|
plugins: i,
|
|
270
|
-
instance:
|
|
271
|
-
publicAPI:
|
|
278
|
+
instance: r,
|
|
279
|
+
publicAPI: m.current,
|
|
272
280
|
store: s.current,
|
|
273
281
|
rootRef: c
|
|
274
|
-
}),
|
|
275
|
-
const f =
|
|
276
|
-
instance:
|
|
282
|
+
}), b = [], E = (u) => {
|
|
283
|
+
const f = u({
|
|
284
|
+
instance: r,
|
|
277
285
|
params: l,
|
|
278
286
|
rootRef: c,
|
|
279
287
|
plugins: i,
|
|
280
288
|
store: s.current
|
|
281
289
|
});
|
|
282
|
-
f.getRootProps &&
|
|
290
|
+
f.getRootProps && b.push(f.getRootProps), f.publicAPI && Object.assign(m.current, f.publicAPI), f.instance && Object.assign(r, f.instance);
|
|
283
291
|
};
|
|
284
|
-
return i.forEach(
|
|
285
|
-
getRootProps: (
|
|
292
|
+
return i.forEach(E), {
|
|
293
|
+
getRootProps: (u = {}) => {
|
|
286
294
|
const f = T({
|
|
287
295
|
role: "tree"
|
|
288
|
-
},
|
|
296
|
+
}, h, u, {
|
|
289
297
|
ref: n
|
|
290
298
|
});
|
|
291
|
-
return
|
|
292
|
-
Object.assign(f, w(
|
|
299
|
+
return b.forEach((w) => {
|
|
300
|
+
Object.assign(f, w(u));
|
|
293
301
|
}), f;
|
|
294
302
|
},
|
|
295
303
|
rootRef: n,
|
|
296
304
|
contextValue: I
|
|
297
305
|
};
|
|
298
|
-
},
|
|
299
|
-
function
|
|
306
|
+
}, G = {};
|
|
307
|
+
function Ct(t) {
|
|
300
308
|
const {
|
|
301
309
|
contextValue: e,
|
|
302
|
-
classes: o =
|
|
303
|
-
slots: i =
|
|
304
|
-
slotProps: l =
|
|
305
|
-
children:
|
|
306
|
-
} = t,
|
|
310
|
+
classes: o = G,
|
|
311
|
+
slots: i = G,
|
|
312
|
+
slotProps: l = G,
|
|
313
|
+
children: h
|
|
314
|
+
} = t, a = x.useMemo(() => ({
|
|
307
315
|
classes: o,
|
|
308
316
|
slots: {
|
|
309
317
|
collapseIcon: i.collapseIcon,
|
|
@@ -316,134 +324,134 @@ function xt(t) {
|
|
|
316
324
|
endIcon: l.endIcon
|
|
317
325
|
}
|
|
318
326
|
}), [o, i.collapseIcon, i.expandIcon, i.endIcon, l.collapseIcon, l.expandIcon, l.endIcon]);
|
|
319
|
-
return /* @__PURE__ */ P(
|
|
327
|
+
return /* @__PURE__ */ P(ve.Provider, {
|
|
320
328
|
value: e,
|
|
321
|
-
children: /* @__PURE__ */ P(
|
|
322
|
-
value:
|
|
329
|
+
children: /* @__PURE__ */ P(De.Provider, {
|
|
330
|
+
value: a,
|
|
323
331
|
children: e.wrapRoot({
|
|
324
|
-
children:
|
|
332
|
+
children: h
|
|
325
333
|
})
|
|
326
334
|
})
|
|
327
335
|
});
|
|
328
336
|
}
|
|
329
|
-
const
|
|
337
|
+
const $ = (t, e, o) => {
|
|
330
338
|
t.$$publishEvent(e, o);
|
|
331
|
-
},
|
|
339
|
+
}, Pt = (t, e, o) => {
|
|
332
340
|
if (t == null)
|
|
333
341
|
throw new Error(["MUI X: The Tree View component requires all items to have a unique `id` property.", "Alternatively, you can use the `getItemId` prop to specify a custom id for each item.", "An item was provided without id in the `items` prop:", JSON.stringify(e)].join(`
|
|
334
342
|
`));
|
|
335
343
|
if (o[t] != null)
|
|
336
344
|
throw new Error(["MUI X: The Tree View component requires all items to have a unique `id` property.", "Alternatively, you can use the `getItemId` prop to specify a custom id for each item.", `Two items were provided with the same id in the \`items\` prop: "${t}"`].join(`
|
|
337
345
|
`));
|
|
338
|
-
},
|
|
346
|
+
}, Y = ({
|
|
339
347
|
disabledItemsFocusable: t,
|
|
340
348
|
items: e,
|
|
341
349
|
isItemDisabled: o,
|
|
342
350
|
getItemLabel: i,
|
|
343
351
|
getItemChildren: l,
|
|
344
|
-
getItemId:
|
|
345
|
-
initialDepth:
|
|
346
|
-
initialParentId:
|
|
347
|
-
getChildrenCount:
|
|
348
|
-
ignoreChildren:
|
|
352
|
+
getItemId: h,
|
|
353
|
+
initialDepth: a = 0,
|
|
354
|
+
initialParentId: d = null,
|
|
355
|
+
getChildrenCount: r,
|
|
356
|
+
ignoreChildren: m = !1
|
|
349
357
|
}) => {
|
|
350
358
|
const c = {}, n = {}, s = {
|
|
351
|
-
[
|
|
352
|
-
}, I = (
|
|
353
|
-
const f =
|
|
354
|
-
|
|
355
|
-
const w = i ? i(
|
|
359
|
+
[ie]: []
|
|
360
|
+
}, I = (E, p, u) => {
|
|
361
|
+
const f = h ? h(E) : E.id;
|
|
362
|
+
Pt(f, E, c);
|
|
363
|
+
const w = i ? i(E) : E.label;
|
|
356
364
|
if (w == null)
|
|
357
|
-
throw new Error(["MUI X: The Tree View component requires all items to have a `label` property.", "Alternatively, you can use the `getItemLabel` prop to specify a custom label for each item.", "An item was provided without label in the `items` prop:", JSON.stringify(
|
|
365
|
+
throw new Error(["MUI X: The Tree View component requires all items to have a `label` property.", "Alternatively, you can use the `getItemLabel` prop to specify a custom label for each item.", "An item was provided without label in the `items` prop:", JSON.stringify(E)].join(`
|
|
358
366
|
`));
|
|
359
|
-
const k = l ? l(
|
|
367
|
+
const k = l ? l(E) : E.children;
|
|
360
368
|
c[f] = {
|
|
361
369
|
id: f,
|
|
362
370
|
label: w,
|
|
363
|
-
parentId:
|
|
371
|
+
parentId: u,
|
|
364
372
|
idAttribute: void 0,
|
|
365
|
-
expandable:
|
|
366
|
-
disabled: o ? o(
|
|
367
|
-
depth:
|
|
368
|
-
}, n[f] =
|
|
369
|
-
const C =
|
|
370
|
-
s[C] || (s[C] = []), s[C].push(f),
|
|
373
|
+
expandable: r ? r(E) > 0 : !!(k != null && k.length),
|
|
374
|
+
disabled: o ? o(E) : !1,
|
|
375
|
+
depth: p
|
|
376
|
+
}, n[f] = E;
|
|
377
|
+
const C = u ?? ie;
|
|
378
|
+
s[C] || (s[C] = []), s[C].push(f), m || k == null || k.forEach((y) => I(y, p + 1, f));
|
|
371
379
|
};
|
|
372
|
-
e == null || e.forEach((
|
|
373
|
-
const
|
|
374
|
-
return Object.keys(s).forEach((
|
|
375
|
-
E
|
|
380
|
+
e == null || e.forEach((E) => I(E, a, d));
|
|
381
|
+
const b = {};
|
|
382
|
+
return Object.keys(s).forEach((E) => {
|
|
383
|
+
b[E] = Oe(s[E]);
|
|
376
384
|
}), {
|
|
377
385
|
disabledItemsFocusable: t,
|
|
378
386
|
itemMetaLookup: c,
|
|
379
387
|
itemModelLookup: n,
|
|
380
388
|
itemOrderedChildrenIdsLookup: s,
|
|
381
|
-
itemChildrenIndexesLookup:
|
|
389
|
+
itemChildrenIndexesLookup: b
|
|
382
390
|
};
|
|
383
|
-
},
|
|
391
|
+
}, F = ({
|
|
384
392
|
instance: t,
|
|
385
393
|
params: e,
|
|
386
394
|
store: o
|
|
387
395
|
}) => {
|
|
388
|
-
const i = x.useCallback((
|
|
389
|
-
const f =
|
|
396
|
+
const i = x.useCallback((u) => se(o.value, u), [o]), l = x.useCallback((u) => {
|
|
397
|
+
const f = V(o.value, u);
|
|
390
398
|
return (f == null ? void 0 : f.parentId) || null;
|
|
391
|
-
}, [o]),
|
|
399
|
+
}, [o]), h = S((u) => {
|
|
392
400
|
o.update((f) => T({}, f, {
|
|
393
401
|
items: T({}, f.items, {
|
|
394
|
-
loading:
|
|
402
|
+
loading: u
|
|
395
403
|
})
|
|
396
404
|
}));
|
|
397
|
-
}),
|
|
405
|
+
}), a = S((u) => {
|
|
398
406
|
o.update((f) => T({}, f, {
|
|
399
407
|
items: T({}, f.items, {
|
|
400
|
-
error:
|
|
408
|
+
error: u
|
|
401
409
|
})
|
|
402
410
|
}));
|
|
403
|
-
}),
|
|
404
|
-
itemId:
|
|
411
|
+
}), d = S(({
|
|
412
|
+
itemId: u,
|
|
405
413
|
shouldBeDisabled: f
|
|
406
414
|
}) => {
|
|
407
415
|
o.update((w) => {
|
|
408
|
-
if (!w.items.itemMetaLookup[
|
|
416
|
+
if (!w.items.itemMetaLookup[u])
|
|
409
417
|
return w;
|
|
410
418
|
const k = T({}, w.items.itemMetaLookup);
|
|
411
|
-
return k[
|
|
412
|
-
disabled: f ?? !k[
|
|
419
|
+
return k[u] = T({}, k[u], {
|
|
420
|
+
disabled: f ?? !k[u].disabled
|
|
413
421
|
}), T({}, w, {
|
|
414
422
|
items: T({}, w.items, {
|
|
415
423
|
itemMetaLookup: k
|
|
416
424
|
})
|
|
417
425
|
});
|
|
418
426
|
});
|
|
419
|
-
}),
|
|
420
|
-
const
|
|
421
|
-
const w =
|
|
422
|
-
return k.length > 0 ? w.children = k.map(
|
|
427
|
+
}), r = x.useCallback(() => {
|
|
428
|
+
const u = (f) => {
|
|
429
|
+
const w = se(o.value, f), k = R(o.value, f);
|
|
430
|
+
return k.length > 0 ? w.children = k.map(u) : delete w.children, w;
|
|
423
431
|
};
|
|
424
|
-
return R(o.value, null).map(
|
|
425
|
-
}, [o]),
|
|
426
|
-
const f =
|
|
432
|
+
return R(o.value, null).map(u);
|
|
433
|
+
}, [o]), m = x.useCallback((u) => R(o.value, u), [o]), c = (u) => {
|
|
434
|
+
const f = V(o.value, u);
|
|
427
435
|
if (f == null)
|
|
428
436
|
return null;
|
|
429
|
-
const w =
|
|
430
|
-
treeId:
|
|
431
|
-
itemId:
|
|
437
|
+
const w = Ve({
|
|
438
|
+
treeId: de(o.value),
|
|
439
|
+
itemId: u,
|
|
432
440
|
id: f.idAttribute
|
|
433
441
|
});
|
|
434
442
|
return document.getElementById(w);
|
|
435
443
|
}, n = x.useRef(!1), s = x.useCallback(() => {
|
|
436
444
|
n.current = !0;
|
|
437
|
-
}, []), I = x.useCallback(() => n.current, []),
|
|
438
|
-
items:
|
|
445
|
+
}, []), I = x.useCallback(() => n.current, []), b = ({
|
|
446
|
+
items: u,
|
|
439
447
|
parentId: f,
|
|
440
448
|
depth: w,
|
|
441
449
|
getChildrenCount: k
|
|
442
450
|
}) => {
|
|
443
|
-
if (
|
|
444
|
-
const C =
|
|
451
|
+
if (u) {
|
|
452
|
+
const C = Y({
|
|
445
453
|
disabledItemsFocusable: e.disabledItemsFocusable,
|
|
446
|
-
items:
|
|
454
|
+
items: u,
|
|
447
455
|
isItemDisabled: e.isItemDisabled,
|
|
448
456
|
getItemId: e.getItemId,
|
|
449
457
|
getItemLabel: e.getItemLabel,
|
|
@@ -454,29 +462,29 @@ const _ = (t, e, o) => {
|
|
|
454
462
|
ignoreChildren: !0
|
|
455
463
|
});
|
|
456
464
|
o.update((y) => {
|
|
457
|
-
let
|
|
458
|
-
return f ?
|
|
465
|
+
let D;
|
|
466
|
+
return f ? D = {
|
|
459
467
|
itemModelLookup: T({}, y.items.itemModelLookup, C.itemModelLookup),
|
|
460
468
|
itemMetaLookup: T({}, y.items.itemMetaLookup, C.itemMetaLookup),
|
|
461
469
|
itemOrderedChildrenIdsLookup: T({}, C.itemOrderedChildrenIdsLookup, y.items.itemOrderedChildrenIdsLookup),
|
|
462
470
|
itemChildrenIndexesLookup: T({}, C.itemChildrenIndexesLookup, y.items.itemChildrenIndexesLookup)
|
|
463
|
-
} :
|
|
471
|
+
} : D = {
|
|
464
472
|
itemModelLookup: C.itemModelLookup,
|
|
465
473
|
itemMetaLookup: C.itemMetaLookup,
|
|
466
474
|
itemOrderedChildrenIdsLookup: C.itemOrderedChildrenIdsLookup,
|
|
467
475
|
itemChildrenIndexesLookup: C.itemChildrenIndexesLookup
|
|
468
|
-
}, Object.values(y.items.itemMetaLookup).forEach((
|
|
469
|
-
|
|
470
|
-
id:
|
|
476
|
+
}, Object.values(y.items.itemMetaLookup).forEach((v) => {
|
|
477
|
+
D.itemMetaLookup[v.id] || $(t, "removeItem", {
|
|
478
|
+
id: v.id
|
|
471
479
|
});
|
|
472
480
|
}), T({}, y, {
|
|
473
|
-
items: T({}, y.items,
|
|
481
|
+
items: T({}, y.items, D)
|
|
474
482
|
});
|
|
475
483
|
});
|
|
476
484
|
}
|
|
477
|
-
},
|
|
485
|
+
}, E = (u) => {
|
|
478
486
|
o.update((f) => {
|
|
479
|
-
if (!
|
|
487
|
+
if (!u)
|
|
480
488
|
return T({}, f, {
|
|
481
489
|
items: T({}, f.items, {
|
|
482
490
|
itemMetaLookup: {},
|
|
@@ -484,15 +492,15 @@ const _ = (t, e, o) => {
|
|
|
484
492
|
itemChildrenIndexesLookup: {}
|
|
485
493
|
})
|
|
486
494
|
});
|
|
487
|
-
const w = Object.keys(f.items.itemMetaLookup).reduce((y,
|
|
488
|
-
const
|
|
489
|
-
return
|
|
490
|
-
id:
|
|
495
|
+
const w = Object.keys(f.items.itemMetaLookup).reduce((y, D) => {
|
|
496
|
+
const v = f.items.itemMetaLookup[D];
|
|
497
|
+
return v.parentId === u ? ($(t, "removeItem", {
|
|
498
|
+
id: v.id
|
|
491
499
|
}), y) : T({}, y, {
|
|
492
|
-
[
|
|
500
|
+
[v.id]: v
|
|
493
501
|
});
|
|
494
502
|
}, {}), k = f.items.itemOrderedChildrenIdsLookup, C = f.items.itemChildrenIndexesLookup;
|
|
495
|
-
return delete C[
|
|
503
|
+
return delete C[u], delete k[u], T({}, f, {
|
|
496
504
|
items: T({}, f.items, {
|
|
497
505
|
itemMetaLookup: w,
|
|
498
506
|
itemOrderedChildrenIdsLookup: k,
|
|
@@ -502,8 +510,8 @@ const _ = (t, e, o) => {
|
|
|
502
510
|
});
|
|
503
511
|
};
|
|
504
512
|
x.useEffect(() => {
|
|
505
|
-
t.areItemUpdatesPrevented() || o.update((
|
|
506
|
-
const f =
|
|
513
|
+
t.areItemUpdatesPrevented() || o.update((u) => {
|
|
514
|
+
const f = Y({
|
|
507
515
|
disabledItemsFocusable: e.disabledItemsFocusable,
|
|
508
516
|
items: e.items,
|
|
509
517
|
isItemDisabled: e.isItemDisabled,
|
|
@@ -511,17 +519,17 @@ const _ = (t, e, o) => {
|
|
|
511
519
|
getItemLabel: e.getItemLabel,
|
|
512
520
|
getItemChildren: e.getItemChildren
|
|
513
521
|
});
|
|
514
|
-
return Object.values(
|
|
515
|
-
f.itemMetaLookup[w.id] ||
|
|
522
|
+
return Object.values(u.items.itemMetaLookup).forEach((w) => {
|
|
523
|
+
f.itemMetaLookup[w.id] || $(t, "removeItem", {
|
|
516
524
|
id: w.id
|
|
517
525
|
});
|
|
518
|
-
}), T({},
|
|
519
|
-
items: T({},
|
|
526
|
+
}), T({}, u, {
|
|
527
|
+
items: T({}, u.items, f)
|
|
520
528
|
});
|
|
521
529
|
});
|
|
522
530
|
}, [t, o, e.items, e.disabledItemsFocusable, e.isItemDisabled, e.getItemId, e.getItemLabel, e.getItemChildren]);
|
|
523
|
-
const
|
|
524
|
-
e.onItemClick && e.onItemClick(
|
|
531
|
+
const p = S((u, f) => {
|
|
532
|
+
e.onItemClick && e.onItemClick(u, f);
|
|
525
533
|
});
|
|
526
534
|
return {
|
|
527
535
|
getRootProps: () => ({
|
|
@@ -532,25 +540,25 @@ const _ = (t, e, o) => {
|
|
|
532
540
|
publicAPI: {
|
|
533
541
|
getItem: i,
|
|
534
542
|
getItemDOMElement: c,
|
|
535
|
-
getItemTree:
|
|
536
|
-
getItemOrderedChildrenIds:
|
|
537
|
-
setIsItemDisabled:
|
|
543
|
+
getItemTree: r,
|
|
544
|
+
getItemOrderedChildrenIds: m,
|
|
545
|
+
setIsItemDisabled: d,
|
|
538
546
|
getParentId: l
|
|
539
547
|
},
|
|
540
548
|
instance: {
|
|
541
549
|
getItemDOMElement: c,
|
|
542
550
|
preventItemUpdates: s,
|
|
543
551
|
areItemUpdatesPrevented: I,
|
|
544
|
-
addItems:
|
|
545
|
-
setTreeViewLoading:
|
|
546
|
-
setTreeViewError:
|
|
547
|
-
removeChildren:
|
|
548
|
-
handleItemClick:
|
|
552
|
+
addItems: b,
|
|
553
|
+
setTreeViewLoading: h,
|
|
554
|
+
setTreeViewError: a,
|
|
555
|
+
removeChildren: E,
|
|
556
|
+
handleItemClick: p
|
|
549
557
|
}
|
|
550
558
|
};
|
|
551
559
|
};
|
|
552
|
-
|
|
553
|
-
items: T({},
|
|
560
|
+
F.getInitialState = (t) => ({
|
|
561
|
+
items: T({}, Y({
|
|
554
562
|
disabledItemsFocusable: t.disabledItemsFocusable,
|
|
555
563
|
items: t.items,
|
|
556
564
|
isItemDisabled: t.isItemDisabled,
|
|
@@ -562,20 +570,20 @@ A.getInitialState = (t) => ({
|
|
|
562
570
|
error: null
|
|
563
571
|
})
|
|
564
572
|
});
|
|
565
|
-
|
|
573
|
+
F.applyDefaultValuesToParams = ({
|
|
566
574
|
params: t
|
|
567
575
|
}) => T({}, t, {
|
|
568
576
|
disabledItemsFocusable: t.disabledItemsFocusable ?? !1,
|
|
569
577
|
itemChildrenIndentation: t.itemChildrenIndentation ?? "12px"
|
|
570
578
|
});
|
|
571
|
-
|
|
579
|
+
F.wrapRoot = ({
|
|
572
580
|
children: t
|
|
573
|
-
}) => /* @__PURE__ */ P(
|
|
574
|
-
value:
|
|
581
|
+
}) => /* @__PURE__ */ P(Ae.Provider, {
|
|
582
|
+
value: Fe,
|
|
575
583
|
children: t
|
|
576
584
|
});
|
|
577
|
-
process.env.NODE_ENV !== "production" && (
|
|
578
|
-
|
|
585
|
+
process.env.NODE_ENV !== "production" && (F.wrapRoot.displayName = "useTreeViewItems.wrapRoot");
|
|
586
|
+
F.params = {
|
|
579
587
|
disabledItemsFocusable: !0,
|
|
580
588
|
items: !0,
|
|
581
589
|
isItemDisabled: !0,
|
|
@@ -585,134 +593,137 @@ A.params = {
|
|
|
585
593
|
onItemClick: !0,
|
|
586
594
|
itemChildrenIndentation: !0
|
|
587
595
|
};
|
|
588
|
-
function
|
|
596
|
+
function yt(t) {
|
|
589
597
|
const {
|
|
590
598
|
componentName: e,
|
|
591
599
|
propName: o,
|
|
592
600
|
controlled: i,
|
|
593
601
|
defaultValue: l,
|
|
594
|
-
warningPrefix:
|
|
602
|
+
warningPrefix: h = "MUI X"
|
|
595
603
|
} = t, [{
|
|
596
|
-
initialDefaultValue:
|
|
597
|
-
isControlled:
|
|
604
|
+
initialDefaultValue: a,
|
|
605
|
+
isControlled: d
|
|
598
606
|
}] = x.useState({
|
|
599
607
|
initialDefaultValue: l,
|
|
600
608
|
isControlled: i !== void 0
|
|
601
609
|
});
|
|
602
|
-
|
|
610
|
+
d !== (i !== void 0) && Q([`${h}: A component is changing the ${d ? "" : "un"}controlled ${o} state of ${e} to be ${d ? "un" : ""}controlled.`, "Elements should not switch from uncontrolled to controlled (or vice versa).", `Decide between using a controlled or uncontrolled ${o} element for the lifetime of the component.`, "The nature of the state is determined during the first render. It's considered controlled if the value is not `undefined`.", "More info: https://fb.me/react-controlled-components"], "error"), JSON.stringify(a) !== JSON.stringify(l) && Q([`${h}: A component is changing the default ${o} state of an uncontrolled ${e} after being initialized. To suppress this warning opt to use a controlled ${e}.`], "error");
|
|
603
611
|
}
|
|
604
|
-
const
|
|
605
|
-
} :
|
|
612
|
+
const Ee = process.env.NODE_ENV === "production" ? () => {
|
|
613
|
+
} : yt, Te = ({
|
|
606
614
|
isItemEditable: t,
|
|
607
615
|
expansionTrigger: e
|
|
608
|
-
}) => e || (t ? "iconContainer" : "content"),
|
|
616
|
+
}) => e || (t ? "iconContainer" : "content"), q = ({
|
|
609
617
|
instance: t,
|
|
610
618
|
store: e,
|
|
611
619
|
params: o
|
|
612
620
|
}) => {
|
|
613
|
-
|
|
621
|
+
Ee({
|
|
614
622
|
componentName: "Tree View",
|
|
615
623
|
propName: "expandedItems",
|
|
616
624
|
controlled: o.expandedItems,
|
|
617
625
|
defaultValue: o.defaultExpandedItems
|
|
618
|
-
}),
|
|
626
|
+
}), J(() => {
|
|
619
627
|
e.update((r) => {
|
|
620
|
-
const
|
|
628
|
+
const m = Te({
|
|
621
629
|
isItemEditable: o.isItemEditable,
|
|
622
630
|
expansionTrigger: o.expansionTrigger
|
|
623
631
|
});
|
|
624
|
-
return r.expansion.expansionTrigger ===
|
|
632
|
+
return r.expansion.expansionTrigger === m ? r : T({}, r, {
|
|
625
633
|
expansion: T({}, r.expansion, {
|
|
626
|
-
expansionTrigger:
|
|
634
|
+
expansionTrigger: m
|
|
627
635
|
})
|
|
628
636
|
});
|
|
629
637
|
});
|
|
630
638
|
}, [e, o.isItemEditable, o.expansionTrigger]);
|
|
631
|
-
const i = (r,
|
|
632
|
-
var
|
|
633
|
-
o.expandedItems === void 0 && e.update((
|
|
634
|
-
expansion: T({},
|
|
635
|
-
expandedItems:
|
|
639
|
+
const i = (r, m) => {
|
|
640
|
+
var c;
|
|
641
|
+
o.expandedItems === void 0 && e.update((n) => T({}, n, {
|
|
642
|
+
expansion: T({}, n.expansion, {
|
|
643
|
+
expandedItems: m
|
|
636
644
|
})
|
|
637
|
-
})), (
|
|
638
|
-
}, l = S(({
|
|
645
|
+
})), (c = o.onExpandedItemsChange) == null || c.call(o, r, m);
|
|
646
|
+
}, l = S(() => {
|
|
647
|
+
i(null, []);
|
|
648
|
+
}), h = S(({
|
|
639
649
|
itemId: r,
|
|
640
|
-
event:
|
|
641
|
-
shouldBeExpanded:
|
|
650
|
+
event: m,
|
|
651
|
+
shouldBeExpanded: c
|
|
642
652
|
}) => {
|
|
643
|
-
const
|
|
644
|
-
let
|
|
645
|
-
|
|
646
|
-
}),
|
|
653
|
+
const n = le(e.value);
|
|
654
|
+
let s;
|
|
655
|
+
c ? s = [r].concat(n) : s = n.filter((I) => I !== r), o.onItemExpansionToggle && o.onItemExpansionToggle(m, r, c), i(m, s);
|
|
656
|
+
}), a = S(({
|
|
647
657
|
itemId: r,
|
|
648
|
-
event:
|
|
649
|
-
shouldBeExpanded:
|
|
658
|
+
event: m = null,
|
|
659
|
+
shouldBeExpanded: c
|
|
650
660
|
}) => {
|
|
651
|
-
const
|
|
652
|
-
if (
|
|
661
|
+
const n = N(e.value, r), s = c ?? !n;
|
|
662
|
+
if (n === s)
|
|
653
663
|
return;
|
|
654
|
-
const
|
|
664
|
+
const I = {
|
|
655
665
|
isExpansionPrevented: !1,
|
|
656
|
-
shouldBeExpanded:
|
|
657
|
-
event:
|
|
666
|
+
shouldBeExpanded: s,
|
|
667
|
+
event: m,
|
|
658
668
|
itemId: r
|
|
659
669
|
};
|
|
660
|
-
|
|
670
|
+
$(t, "beforeItemToggleExpansion", I), !I.isExpansionPrevented && t.applyItemExpansion({
|
|
661
671
|
itemId: r,
|
|
662
|
-
event:
|
|
663
|
-
shouldBeExpanded:
|
|
672
|
+
event: m,
|
|
673
|
+
shouldBeExpanded: s
|
|
664
674
|
});
|
|
665
|
-
}), d = (r,
|
|
666
|
-
const
|
|
667
|
-
if (
|
|
675
|
+
}), d = (r, m) => {
|
|
676
|
+
const c = V(e.value, m);
|
|
677
|
+
if (c == null)
|
|
668
678
|
return;
|
|
669
|
-
const
|
|
670
|
-
|
|
671
|
-
o.onItemExpansionToggle(r,
|
|
672
|
-
}), i(r,
|
|
679
|
+
const s = R(e.value, c.parentId).filter((b) => fe(e.value, b) && !N(e.value, b)), I = le(e.value).concat(s);
|
|
680
|
+
s.length > 0 && (o.onItemExpansionToggle && s.forEach((b) => {
|
|
681
|
+
o.onItemExpansionToggle(r, b, !0);
|
|
682
|
+
}), i(r, I));
|
|
673
683
|
};
|
|
674
|
-
return
|
|
684
|
+
return J(() => {
|
|
675
685
|
const r = o.expandedItems;
|
|
676
|
-
r !== void 0 && e.update((
|
|
677
|
-
expansion: T({},
|
|
686
|
+
r !== void 0 && e.update((m) => T({}, m, {
|
|
687
|
+
expansion: T({}, m.expansion, {
|
|
678
688
|
expandedItems: r
|
|
679
689
|
})
|
|
680
690
|
}));
|
|
681
691
|
}, [e, o.expandedItems]), {
|
|
682
692
|
publicAPI: {
|
|
683
|
-
setItemExpansion:
|
|
693
|
+
setItemExpansion: a
|
|
684
694
|
},
|
|
685
695
|
instance: {
|
|
686
|
-
setItemExpansion:
|
|
687
|
-
applyItemExpansion:
|
|
688
|
-
expandAllSiblings: d
|
|
696
|
+
setItemExpansion: a,
|
|
697
|
+
applyItemExpansion: h,
|
|
698
|
+
expandAllSiblings: d,
|
|
699
|
+
resetItemExpansion: l
|
|
689
700
|
}
|
|
690
701
|
};
|
|
691
|
-
},
|
|
692
|
-
|
|
702
|
+
}, Rt = [];
|
|
703
|
+
q.applyDefaultValuesToParams = ({
|
|
693
704
|
params: t
|
|
694
705
|
}) => T({}, t, {
|
|
695
|
-
defaultExpandedItems: t.defaultExpandedItems ??
|
|
706
|
+
defaultExpandedItems: t.defaultExpandedItems ?? Rt
|
|
696
707
|
});
|
|
697
|
-
|
|
708
|
+
q.getInitialState = (t) => ({
|
|
698
709
|
expansion: {
|
|
699
710
|
expandedItems: t.expandedItems === void 0 ? t.defaultExpandedItems : t.expandedItems,
|
|
700
|
-
expansionTrigger:
|
|
711
|
+
expansionTrigger: Te(t)
|
|
701
712
|
}
|
|
702
713
|
});
|
|
703
|
-
|
|
714
|
+
q.params = {
|
|
704
715
|
expandedItems: !0,
|
|
705
716
|
defaultExpandedItems: !0,
|
|
706
717
|
onExpandedItemsChange: !0,
|
|
707
718
|
onItemExpansionToggle: !0,
|
|
708
719
|
expansionTrigger: !0
|
|
709
720
|
};
|
|
710
|
-
const
|
|
721
|
+
const U = (t) => {
|
|
711
722
|
const e = {};
|
|
712
723
|
return t.forEach((o) => {
|
|
713
724
|
e[o] = !0;
|
|
714
725
|
}), e;
|
|
715
|
-
},
|
|
726
|
+
}, xe = ({
|
|
716
727
|
store: t,
|
|
717
728
|
oldModel: e,
|
|
718
729
|
newModel: o
|
|
@@ -721,10 +732,10 @@ const $ = (t) => {
|
|
|
721
732
|
return o.forEach((l) => {
|
|
722
733
|
i.set(l, !0);
|
|
723
734
|
}), {
|
|
724
|
-
added: o.filter((l) => !
|
|
735
|
+
added: o.filter((l) => !A(t.value, l)),
|
|
725
736
|
removed: e.filter((l) => !i.has(l))
|
|
726
737
|
};
|
|
727
|
-
},
|
|
738
|
+
}, St = ({
|
|
728
739
|
store: t,
|
|
729
740
|
selectionPropagation: e,
|
|
730
741
|
newModel: o,
|
|
@@ -733,60 +744,60 @@ const $ = (t) => {
|
|
|
733
744
|
}) => {
|
|
734
745
|
if (!e.descendants && !e.parents)
|
|
735
746
|
return o;
|
|
736
|
-
let
|
|
737
|
-
const
|
|
747
|
+
let h = !1;
|
|
748
|
+
const a = U(o), d = xe({
|
|
738
749
|
store: t,
|
|
739
750
|
newModel: o,
|
|
740
751
|
oldModel: i
|
|
741
752
|
});
|
|
742
|
-
return l == null || l.forEach((
|
|
743
|
-
|
|
744
|
-
}),
|
|
753
|
+
return l == null || l.forEach((r) => {
|
|
754
|
+
a[r] ? d.added.includes(r) || d.added.push(r) : d.removed.includes(r) || d.removed.push(r);
|
|
755
|
+
}), d.added.forEach((r) => {
|
|
745
756
|
if (e.descendants) {
|
|
746
|
-
const
|
|
747
|
-
c !==
|
|
757
|
+
const m = (c) => {
|
|
758
|
+
c !== r && (h = !0, a[c] = !0), R(t.value, c).forEach(m);
|
|
748
759
|
};
|
|
749
|
-
|
|
760
|
+
m(r);
|
|
750
761
|
}
|
|
751
762
|
if (e.parents) {
|
|
752
|
-
const
|
|
753
|
-
const s =
|
|
763
|
+
const m = (n) => a[n] ? R(t.value, n).every(m) : !1, c = (n) => {
|
|
764
|
+
const s = _(t.value, n);
|
|
754
765
|
if (s == null)
|
|
755
766
|
return;
|
|
756
|
-
R(t.value, s).every(
|
|
767
|
+
R(t.value, s).every(m) && (h = !0, a[s] = !0, c(s));
|
|
757
768
|
};
|
|
758
|
-
c(
|
|
769
|
+
c(r);
|
|
759
770
|
}
|
|
760
|
-
}),
|
|
771
|
+
}), d.removed.forEach((r) => {
|
|
761
772
|
if (e.parents) {
|
|
762
|
-
let
|
|
763
|
-
for (;
|
|
764
|
-
|
|
773
|
+
let m = _(t.value, r);
|
|
774
|
+
for (; m != null; )
|
|
775
|
+
a[m] && (h = !0, delete a[m]), m = _(t.value, m);
|
|
765
776
|
}
|
|
766
777
|
if (e.descendants) {
|
|
767
|
-
const
|
|
768
|
-
c !==
|
|
778
|
+
const m = (c) => {
|
|
779
|
+
c !== r && (h = !0, delete a[c]), R(t.value, c).forEach(m);
|
|
769
780
|
};
|
|
770
|
-
|
|
781
|
+
m(r);
|
|
771
782
|
}
|
|
772
|
-
}),
|
|
773
|
-
},
|
|
774
|
-
function
|
|
783
|
+
}), h ? Object.keys(a) : o;
|
|
784
|
+
}, Lt = Object.is;
|
|
785
|
+
function we(t, e) {
|
|
775
786
|
if (t === e)
|
|
776
787
|
return !0;
|
|
777
788
|
if (!(t instanceof Object) || !(e instanceof Object))
|
|
778
789
|
return !1;
|
|
779
790
|
let o = 0, i = 0;
|
|
780
791
|
for (const l in t)
|
|
781
|
-
if (o += 1, !
|
|
792
|
+
if (o += 1, !Lt(t[l], e[l]) || !(l in e))
|
|
782
793
|
return !1;
|
|
783
794
|
for (const l in e)
|
|
784
795
|
i += 1;
|
|
785
796
|
return o === i;
|
|
786
797
|
}
|
|
787
|
-
function
|
|
788
|
-
const o =
|
|
789
|
-
if (
|
|
798
|
+
function Mt(t, e) {
|
|
799
|
+
const o = Ne(t), i = me(t, e);
|
|
800
|
+
if (A(t, e))
|
|
790
801
|
return {
|
|
791
802
|
disabled: !i,
|
|
792
803
|
visible: o,
|
|
@@ -800,131 +811,131 @@ function Rt(t, e) {
|
|
|
800
811
|
indeterminate: !1,
|
|
801
812
|
checked: !1
|
|
802
813
|
};
|
|
803
|
-
let
|
|
804
|
-
const
|
|
805
|
-
|
|
814
|
+
let h = !1, a = !1;
|
|
815
|
+
const d = (r) => {
|
|
816
|
+
r !== e && (A(t, r) ? h = !0 : a = !0), R(t, r).forEach(d);
|
|
806
817
|
};
|
|
807
|
-
return
|
|
818
|
+
return d(e), {
|
|
808
819
|
disabled: !i,
|
|
809
820
|
visible: o,
|
|
810
|
-
indeterminate:
|
|
811
|
-
checked:
|
|
821
|
+
indeterminate: h && a,
|
|
822
|
+
checked: je(t).parents ? h && !a : !1
|
|
812
823
|
};
|
|
813
824
|
}
|
|
814
|
-
const
|
|
825
|
+
const vt = ({
|
|
815
826
|
props: t
|
|
816
827
|
}) => {
|
|
817
828
|
const {
|
|
818
829
|
itemId: e
|
|
819
830
|
} = t, {
|
|
820
831
|
store: o
|
|
821
|
-
} =
|
|
832
|
+
} = Z(), i = M(o, Mt, e, we);
|
|
822
833
|
return {
|
|
823
834
|
propsEnhancers: {
|
|
824
835
|
checkbox: ({
|
|
825
836
|
externalEventHandlers: l,
|
|
826
|
-
interactions:
|
|
837
|
+
interactions: h
|
|
827
838
|
}) => T({
|
|
828
839
|
tabIndex: -1,
|
|
829
|
-
onChange: (
|
|
830
|
-
var
|
|
831
|
-
(
|
|
840
|
+
onChange: (d) => {
|
|
841
|
+
var r;
|
|
842
|
+
(r = l.onChange) == null || r.call(l, d), !d.defaultMuiPrevented && me(o.value, e) && h.handleCheckboxSelection(d);
|
|
832
843
|
}
|
|
833
844
|
}, i)
|
|
834
845
|
}
|
|
835
846
|
};
|
|
836
|
-
},
|
|
847
|
+
}, j = ({
|
|
837
848
|
store: t,
|
|
838
849
|
params: e
|
|
839
850
|
}) => {
|
|
840
|
-
|
|
851
|
+
Ee({
|
|
841
852
|
componentName: "Tree View",
|
|
842
853
|
propName: "selectedItems",
|
|
843
854
|
controlled: e.selectedItems,
|
|
844
855
|
defaultValue: e.defaultSelectedItems
|
|
845
856
|
});
|
|
846
|
-
const o = x.useRef(null), i = x.useRef({}), l = (s, I,
|
|
857
|
+
const o = x.useRef(null), i = x.useRef({}), l = (s, I, b) => {
|
|
847
858
|
var f;
|
|
848
|
-
const
|
|
849
|
-
let
|
|
850
|
-
const
|
|
851
|
-
if (
|
|
859
|
+
const E = Ue(t.value);
|
|
860
|
+
let p;
|
|
861
|
+
const u = O(t.value);
|
|
862
|
+
if (u && (e.selectionPropagation.descendants || e.selectionPropagation.parents) ? p = St({
|
|
852
863
|
store: t,
|
|
853
864
|
selectionPropagation: e.selectionPropagation,
|
|
854
865
|
newModel: I,
|
|
855
|
-
oldModel:
|
|
856
|
-
additionalItemsToPropagate:
|
|
857
|
-
}) :
|
|
858
|
-
if (
|
|
859
|
-
const w =
|
|
866
|
+
oldModel: E,
|
|
867
|
+
additionalItemsToPropagate: b
|
|
868
|
+
}) : p = I, e.onItemSelectionToggle)
|
|
869
|
+
if (u) {
|
|
870
|
+
const w = xe({
|
|
860
871
|
store: t,
|
|
861
|
-
newModel:
|
|
862
|
-
oldModel:
|
|
872
|
+
newModel: p,
|
|
873
|
+
oldModel: E
|
|
863
874
|
});
|
|
864
875
|
e.onItemSelectionToggle && (w.added.forEach((k) => {
|
|
865
876
|
e.onItemSelectionToggle(s, k, !0);
|
|
866
877
|
}), w.removed.forEach((k) => {
|
|
867
878
|
e.onItemSelectionToggle(s, k, !1);
|
|
868
879
|
}));
|
|
869
|
-
} else e.onItemSelectionToggle &&
|
|
880
|
+
} else e.onItemSelectionToggle && p !== E && (E != null && e.onItemSelectionToggle(s, E, !1), p != null && e.onItemSelectionToggle(s, p, !0));
|
|
870
881
|
e.selectedItems === void 0 && t.update((w) => T({}, w, {
|
|
871
882
|
selection: T({}, w.selection, {
|
|
872
|
-
selectedItems:
|
|
883
|
+
selectedItems: p
|
|
873
884
|
})
|
|
874
|
-
})), (f = e.onSelectedItemsChange) == null || f.call(e, s,
|
|
875
|
-
},
|
|
885
|
+
})), (f = e.onSelectedItemsChange) == null || f.call(e, s, p);
|
|
886
|
+
}, h = ({
|
|
876
887
|
itemId: s,
|
|
877
888
|
event: I = null,
|
|
878
|
-
keepExistingSelection:
|
|
879
|
-
shouldBeSelected:
|
|
889
|
+
keepExistingSelection: b = !1,
|
|
890
|
+
shouldBeSelected: E
|
|
880
891
|
}) => {
|
|
881
|
-
if (!
|
|
892
|
+
if (!X(t.value))
|
|
882
893
|
return;
|
|
883
|
-
let
|
|
884
|
-
const
|
|
885
|
-
if (
|
|
886
|
-
const f =
|
|
887
|
-
w && (
|
|
894
|
+
let p;
|
|
895
|
+
const u = O(t.value);
|
|
896
|
+
if (b) {
|
|
897
|
+
const f = K(t.value), w = A(t.value, s);
|
|
898
|
+
w && (E === !1 || E == null) ? p = f.filter((k) => k !== s) : !w && (E === !0 || E == null) ? p = [s].concat(f) : p = f;
|
|
888
899
|
} else
|
|
889
|
-
|
|
900
|
+
E === !1 || E == null && A(t.value, s) ? p = u ? [] : null : p = u ? [s] : s;
|
|
890
901
|
l(
|
|
891
902
|
I,
|
|
892
|
-
|
|
903
|
+
p,
|
|
893
904
|
// If shouldBeSelected === selectorIsItemSelected(store, itemId), we still want to propagate the select.
|
|
894
905
|
// This is useful when the element is in an indeterminate state.
|
|
895
906
|
[s]
|
|
896
907
|
), o.current = s, i.current = {};
|
|
897
|
-
},
|
|
898
|
-
if (!
|
|
908
|
+
}, a = (s, [I, b]) => {
|
|
909
|
+
if (!O(t.value))
|
|
899
910
|
return;
|
|
900
|
-
let
|
|
901
|
-
Object.keys(i.current).length > 0 && (
|
|
902
|
-
const
|
|
903
|
-
|
|
904
|
-
},
|
|
911
|
+
let p = K(t.value).slice();
|
|
912
|
+
Object.keys(i.current).length > 0 && (p = p.filter((k) => !i.current[k]));
|
|
913
|
+
const u = U(p), f = qe(t.value, I, b), w = f.filter((k) => !u[k]);
|
|
914
|
+
p = p.concat(w), l(s, p), i.current = U(f);
|
|
915
|
+
}, d = (s, I) => {
|
|
905
916
|
if (o.current != null) {
|
|
906
|
-
const [
|
|
907
|
-
|
|
917
|
+
const [b, E] = _e(t.value, I, o.current);
|
|
918
|
+
a(s, [b, E]);
|
|
908
919
|
}
|
|
909
|
-
},
|
|
910
|
-
|
|
911
|
-
},
|
|
912
|
-
|
|
920
|
+
}, r = (s, I) => {
|
|
921
|
+
a(s, [W(t.value), I]);
|
|
922
|
+
}, m = (s, I) => {
|
|
923
|
+
a(s, [I, pe(t.value)]);
|
|
913
924
|
}, c = (s) => {
|
|
914
|
-
if (!
|
|
925
|
+
if (!O(t.value))
|
|
915
926
|
return;
|
|
916
|
-
const
|
|
917
|
-
l(s,
|
|
918
|
-
}, n = (s, I,
|
|
919
|
-
if (!
|
|
927
|
+
const b = $e(t.value);
|
|
928
|
+
l(s, b), i.current = U(b);
|
|
929
|
+
}, n = (s, I, b) => {
|
|
930
|
+
if (!O(t.value))
|
|
920
931
|
return;
|
|
921
|
-
let
|
|
922
|
-
Object.keys(i.current).length === 0 ? (
|
|
932
|
+
let p = K(t.value).slice();
|
|
933
|
+
Object.keys(i.current).length === 0 ? (p.push(b), i.current = {
|
|
923
934
|
[I]: !0,
|
|
924
|
-
[
|
|
925
|
-
}) : (i.current[I] || (i.current = {}), i.current[
|
|
935
|
+
[b]: !0
|
|
936
|
+
}) : (i.current[I] || (i.current = {}), i.current[b] ? (p = p.filter((u) => u !== I), delete i.current[I]) : (p.push(b), i.current[b] = !0)), l(s, p);
|
|
926
937
|
};
|
|
927
|
-
return
|
|
938
|
+
return J(() => {
|
|
928
939
|
t.update((s) => T({}, s, {
|
|
929
940
|
selection: {
|
|
930
941
|
selectedItems: e.selectedItems === void 0 ? s.selection.selectedItems : e.selectedItems,
|
|
@@ -942,30 +953,30 @@ const St = ({
|
|
|
942
953
|
"aria-multiselectable": e.multiSelect
|
|
943
954
|
}),
|
|
944
955
|
publicAPI: {
|
|
945
|
-
setItemSelection:
|
|
956
|
+
setItemSelection: h
|
|
946
957
|
},
|
|
947
958
|
instance: {
|
|
948
|
-
setItemSelection:
|
|
959
|
+
setItemSelection: h,
|
|
949
960
|
selectAllNavigableItems: c,
|
|
950
|
-
expandSelectionRange:
|
|
951
|
-
selectRangeFromStartToItem:
|
|
952
|
-
selectRangeFromItemToEnd:
|
|
961
|
+
expandSelectionRange: d,
|
|
962
|
+
selectRangeFromStartToItem: r,
|
|
963
|
+
selectRangeFromItemToEnd: m,
|
|
953
964
|
selectItemFromArrowNavigation: n
|
|
954
965
|
}
|
|
955
966
|
};
|
|
956
967
|
};
|
|
957
|
-
|
|
958
|
-
const
|
|
959
|
-
|
|
968
|
+
j.itemPlugin = vt;
|
|
969
|
+
const Dt = [], Ot = {};
|
|
970
|
+
j.applyDefaultValuesToParams = ({
|
|
960
971
|
params: t
|
|
961
972
|
}) => T({}, t, {
|
|
962
973
|
disableSelection: t.disableSelection ?? !1,
|
|
963
974
|
multiSelect: t.multiSelect ?? !1,
|
|
964
975
|
checkboxSelection: t.checkboxSelection ?? !1,
|
|
965
|
-
defaultSelectedItems: t.defaultSelectedItems ?? (t.multiSelect ?
|
|
966
|
-
selectionPropagation: t.selectionPropagation ??
|
|
976
|
+
defaultSelectedItems: t.defaultSelectedItems ?? (t.multiSelect ? Dt : null),
|
|
977
|
+
selectionPropagation: t.selectionPropagation ?? Ot
|
|
967
978
|
});
|
|
968
|
-
|
|
979
|
+
j.getInitialState = (t) => ({
|
|
969
980
|
selection: {
|
|
970
981
|
selectedItems: t.selectedItems === void 0 ? t.defaultSelectedItems : t.selectedItems,
|
|
971
982
|
isEnabled: !t.disableSelection,
|
|
@@ -974,7 +985,7 @@ N.getInitialState = (t) => ({
|
|
|
974
985
|
selectionPropagation: t.selectionPropagation
|
|
975
986
|
}
|
|
976
987
|
});
|
|
977
|
-
|
|
988
|
+
j.params = {
|
|
978
989
|
disableSelection: !0,
|
|
979
990
|
multiSelect: !0,
|
|
980
991
|
checkboxSelection: !0,
|
|
@@ -984,10 +995,12 @@ N.params = {
|
|
|
984
995
|
onItemSelectionToggle: !0,
|
|
985
996
|
selectionPropagation: !0
|
|
986
997
|
};
|
|
987
|
-
const
|
|
988
|
-
class
|
|
989
|
-
constructor(e =
|
|
990
|
-
this
|
|
998
|
+
const ae = 1e3;
|
|
999
|
+
class Vt {
|
|
1000
|
+
constructor(e = ae) {
|
|
1001
|
+
L(this, "timeouts", /* @__PURE__ */ new Map());
|
|
1002
|
+
L(this, "cleanupTimeout", ae);
|
|
1003
|
+
this.cleanupTimeout = e;
|
|
991
1004
|
}
|
|
992
1005
|
register(e, o, i) {
|
|
993
1006
|
this.timeouts || (this.timeouts = /* @__PURE__ */ new Map());
|
|
@@ -1008,11 +1021,11 @@ class vt {
|
|
|
1008
1021
|
}), this.timeouts = void 0);
|
|
1009
1022
|
}
|
|
1010
1023
|
}
|
|
1011
|
-
class
|
|
1024
|
+
class At {
|
|
1012
1025
|
constructor() {
|
|
1013
|
-
this
|
|
1026
|
+
L(this, "registry", new FinalizationRegistry((e) => {
|
|
1014
1027
|
typeof e == "function" && e();
|
|
1015
|
-
});
|
|
1028
|
+
}));
|
|
1016
1029
|
}
|
|
1017
1030
|
register(e, o, i) {
|
|
1018
1031
|
this.registry.register(e, o, i);
|
|
@@ -1024,201 +1037,201 @@ class Dt {
|
|
|
1024
1037
|
reset() {
|
|
1025
1038
|
}
|
|
1026
1039
|
}
|
|
1027
|
-
class
|
|
1040
|
+
class Ft {
|
|
1028
1041
|
}
|
|
1029
|
-
function
|
|
1042
|
+
function Nt(t) {
|
|
1030
1043
|
let e = 0;
|
|
1031
|
-
return function(i, l,
|
|
1032
|
-
t.registry === null && (t.registry = typeof FinalizationRegistry < "u" ? new
|
|
1033
|
-
const [
|
|
1034
|
-
|
|
1035
|
-
const
|
|
1036
|
-
if (!
|
|
1044
|
+
return function(i, l, h) {
|
|
1045
|
+
t.registry === null && (t.registry = typeof FinalizationRegistry < "u" ? new At() : new Vt());
|
|
1046
|
+
const [a] = x.useState(new Ft()), d = x.useRef(null), r = x.useRef(void 0);
|
|
1047
|
+
r.current = h;
|
|
1048
|
+
const m = x.useRef(null);
|
|
1049
|
+
if (!d.current && r.current) {
|
|
1037
1050
|
const c = (n, s) => {
|
|
1038
1051
|
var I;
|
|
1039
|
-
s.defaultMuiPrevented || (I =
|
|
1052
|
+
s.defaultMuiPrevented || (I = r.current) == null || I.call(r, n, s);
|
|
1040
1053
|
};
|
|
1041
|
-
|
|
1054
|
+
d.current = i.$$subscribeEvent(l, c), e += 1, m.current = {
|
|
1042
1055
|
cleanupToken: e
|
|
1043
1056
|
}, t.registry.register(
|
|
1044
|
-
|
|
1057
|
+
a,
|
|
1045
1058
|
// The callback below will be called once this reference stops being retained
|
|
1046
1059
|
() => {
|
|
1047
1060
|
var n;
|
|
1048
|
-
(n =
|
|
1061
|
+
(n = d.current) == null || n.call(d), d.current = null, m.current = null;
|
|
1049
1062
|
},
|
|
1050
|
-
|
|
1063
|
+
m.current
|
|
1051
1064
|
);
|
|
1052
|
-
} else !
|
|
1065
|
+
} else !r.current && d.current && (d.current(), d.current = null, m.current && (t.registry.unregister(m.current), m.current = null));
|
|
1053
1066
|
x.useEffect(() => {
|
|
1054
|
-
if (!
|
|
1067
|
+
if (!d.current && r.current) {
|
|
1055
1068
|
const c = (n, s) => {
|
|
1056
1069
|
var I;
|
|
1057
|
-
s.defaultMuiPrevented || (I =
|
|
1070
|
+
s.defaultMuiPrevented || (I = r.current) == null || I.call(r, n, s);
|
|
1058
1071
|
};
|
|
1059
|
-
|
|
1072
|
+
d.current = i.$$subscribeEvent(l, c);
|
|
1060
1073
|
}
|
|
1061
|
-
return
|
|
1074
|
+
return m.current && t.registry && (t.registry.unregister(m.current), m.current = null), () => {
|
|
1062
1075
|
var c;
|
|
1063
|
-
(c =
|
|
1076
|
+
(c = d.current) == null || c.call(d), d.current = null;
|
|
1064
1077
|
};
|
|
1065
1078
|
}, [i, l]);
|
|
1066
1079
|
};
|
|
1067
1080
|
}
|
|
1068
|
-
const
|
|
1081
|
+
const jt = {
|
|
1069
1082
|
registry: null
|
|
1070
|
-
},
|
|
1083
|
+
}, _t = Nt(jt), te = ({
|
|
1071
1084
|
instance: t,
|
|
1072
1085
|
params: e,
|
|
1073
1086
|
store: o
|
|
1074
1087
|
}) => {
|
|
1075
1088
|
const i = S((c) => {
|
|
1076
|
-
o.update((n) =>
|
|
1089
|
+
o.update((n) => B(n) === c ? n : T({}, n, {
|
|
1077
1090
|
focus: T({}, n.focus, {
|
|
1078
1091
|
focusedItemId: c
|
|
1079
1092
|
})
|
|
1080
1093
|
}));
|
|
1081
1094
|
}), l = (c) => {
|
|
1082
|
-
const n =
|
|
1083
|
-
return n && (n.parentId == null ||
|
|
1084
|
-
},
|
|
1095
|
+
const n = V(o.value, c);
|
|
1096
|
+
return n && (n.parentId == null || N(o.value, n.parentId));
|
|
1097
|
+
}, h = (c, n) => {
|
|
1085
1098
|
const s = t.getItemDOMElement(n);
|
|
1086
1099
|
s && s.focus(), i(n), e.onItemFocus && e.onItemFocus(c, n);
|
|
1087
|
-
},
|
|
1088
|
-
l(n) &&
|
|
1089
|
-
}),
|
|
1090
|
-
const c =
|
|
1100
|
+
}, a = S((c, n) => {
|
|
1101
|
+
l(n) && h(c, n);
|
|
1102
|
+
}), d = S(() => {
|
|
1103
|
+
const c = B(o.value);
|
|
1091
1104
|
if (c == null)
|
|
1092
1105
|
return;
|
|
1093
|
-
if (
|
|
1106
|
+
if (V(o.value, c)) {
|
|
1094
1107
|
const s = t.getItemDOMElement(c);
|
|
1095
1108
|
s && s.blur();
|
|
1096
1109
|
}
|
|
1097
1110
|
i(null);
|
|
1098
1111
|
});
|
|
1099
|
-
|
|
1112
|
+
_t(t, "removeItem", ({
|
|
1100
1113
|
id: c
|
|
1101
1114
|
}) => {
|
|
1102
|
-
const n =
|
|
1103
|
-
n === c && s != null &&
|
|
1115
|
+
const n = B(o.value), s = re(o.value);
|
|
1116
|
+
n === c && s != null && h(null, s);
|
|
1104
1117
|
});
|
|
1105
|
-
const
|
|
1118
|
+
const r = (c) => (n) => {
|
|
1106
1119
|
var I;
|
|
1107
1120
|
if ((I = c.onFocus) == null || I.call(c, n), n.defaultMuiPrevented)
|
|
1108
1121
|
return;
|
|
1109
|
-
const s =
|
|
1110
|
-
n.target === n.currentTarget && s != null &&
|
|
1111
|
-
},
|
|
1122
|
+
const s = re(o.value);
|
|
1123
|
+
n.target === n.currentTarget && s != null && h(n, s);
|
|
1124
|
+
}, m = (c) => (n) => {
|
|
1112
1125
|
var s;
|
|
1113
1126
|
(s = c.onBlur) == null || s.call(c, n), !n.defaultMuiPrevented && i(null);
|
|
1114
1127
|
};
|
|
1115
1128
|
return {
|
|
1116
1129
|
getRootProps: (c) => ({
|
|
1117
|
-
onFocus:
|
|
1118
|
-
onBlur:
|
|
1130
|
+
onFocus: r(c),
|
|
1131
|
+
onBlur: m(c)
|
|
1119
1132
|
}),
|
|
1120
1133
|
publicAPI: {
|
|
1121
|
-
focusItem:
|
|
1134
|
+
focusItem: a
|
|
1122
1135
|
},
|
|
1123
1136
|
instance: {
|
|
1124
|
-
focusItem:
|
|
1125
|
-
removeFocusedItem:
|
|
1137
|
+
focusItem: a,
|
|
1138
|
+
removeFocusedItem: d
|
|
1126
1139
|
}
|
|
1127
1140
|
};
|
|
1128
1141
|
};
|
|
1129
|
-
|
|
1142
|
+
te.getInitialState = () => ({
|
|
1130
1143
|
focus: {
|
|
1131
1144
|
focusedItemId: null
|
|
1132
1145
|
}
|
|
1133
1146
|
});
|
|
1134
|
-
|
|
1147
|
+
te.params = {
|
|
1135
1148
|
onItemFocus: !0
|
|
1136
1149
|
};
|
|
1137
|
-
function
|
|
1150
|
+
function $t(t) {
|
|
1138
1151
|
return !!t && t.length === 1 && !!t.match(/\S/);
|
|
1139
1152
|
}
|
|
1140
|
-
const
|
|
1153
|
+
const ke = ({
|
|
1141
1154
|
instance: t,
|
|
1142
1155
|
store: e,
|
|
1143
1156
|
params: o
|
|
1144
1157
|
}) => {
|
|
1145
|
-
const i =
|
|
1158
|
+
const i = rt(), l = x.useRef({}), h = S((n) => {
|
|
1146
1159
|
l.current = n(l.current);
|
|
1147
|
-
}),
|
|
1160
|
+
}), a = M(e, Ke);
|
|
1148
1161
|
x.useEffect(() => {
|
|
1149
1162
|
if (t.areItemUpdatesPrevented())
|
|
1150
1163
|
return;
|
|
1151
1164
|
const n = {}, s = (I) => {
|
|
1152
1165
|
n[I.id] = I.label.substring(0, 1).toLowerCase();
|
|
1153
1166
|
};
|
|
1154
|
-
Object.values(
|
|
1155
|
-
}, [
|
|
1156
|
-
const
|
|
1157
|
-
const I = s.toLowerCase(),
|
|
1158
|
-
const w =
|
|
1159
|
-
return w === null ?
|
|
1167
|
+
Object.values(a).forEach(s), l.current = n;
|
|
1168
|
+
}, [a, o.getItemId, t]);
|
|
1169
|
+
const d = (n, s) => {
|
|
1170
|
+
const I = s.toLowerCase(), b = (f) => {
|
|
1171
|
+
const w = z(e.value, f);
|
|
1172
|
+
return w === null ? W(e.value) : w;
|
|
1160
1173
|
};
|
|
1161
|
-
let
|
|
1162
|
-
const
|
|
1163
|
-
for (;
|
|
1164
|
-
l.current[
|
|
1165
|
-
return
|
|
1166
|
-
},
|
|
1174
|
+
let E = null, p = b(n);
|
|
1175
|
+
const u = {};
|
|
1176
|
+
for (; E == null && !u[p]; )
|
|
1177
|
+
l.current[p] === I ? E = p : (u[p] = !0, p = b(p));
|
|
1178
|
+
return E;
|
|
1179
|
+
}, r = (n) => X(e.value) && !ce(e.value, n), m = (n) => !ce(e.value, n) && fe(e.value, n);
|
|
1167
1180
|
return {
|
|
1168
1181
|
instance: {
|
|
1169
|
-
updateFirstCharMap:
|
|
1182
|
+
updateFirstCharMap: h,
|
|
1170
1183
|
handleItemKeyDown: async (n, s) => {
|
|
1171
|
-
if (n.defaultMuiPrevented || n.altKey ||
|
|
1184
|
+
if (n.defaultMuiPrevented || n.altKey || Be(n.target, n.currentTarget))
|
|
1172
1185
|
return;
|
|
1173
|
-
const I = n.ctrlKey || n.metaKey,
|
|
1186
|
+
const I = n.ctrlKey || n.metaKey, b = n.key, E = O(e.value);
|
|
1174
1187
|
switch (!0) {
|
|
1175
1188
|
// Select the item when pressing "Space"
|
|
1176
|
-
case (
|
|
1177
|
-
n.preventDefault(),
|
|
1189
|
+
case (b === " " && r(s)): {
|
|
1190
|
+
n.preventDefault(), E && n.shiftKey ? t.expandSelectionRange(n, s) : t.setItemSelection({
|
|
1178
1191
|
event: n,
|
|
1179
1192
|
itemId: s,
|
|
1180
|
-
keepExistingSelection:
|
|
1193
|
+
keepExistingSelection: E,
|
|
1181
1194
|
shouldBeSelected: void 0
|
|
1182
1195
|
});
|
|
1183
1196
|
break;
|
|
1184
1197
|
}
|
|
1185
1198
|
// If the focused item has children, we expand it.
|
|
1186
1199
|
// If the focused item has no children, we select it.
|
|
1187
|
-
case
|
|
1188
|
-
|
|
1200
|
+
case b === "Enter": {
|
|
1201
|
+
Ge(t, Ie) && We(e.value, s) && !Xe(e.value, s) ? t.setEditedItem(s) : m(s) ? (t.setItemExpansion({
|
|
1189
1202
|
event: n,
|
|
1190
1203
|
itemId: s
|
|
1191
|
-
}), n.preventDefault()) :
|
|
1204
|
+
}), n.preventDefault()) : r(s) && (E ? (n.preventDefault(), t.setItemSelection({
|
|
1192
1205
|
event: n,
|
|
1193
1206
|
itemId: s,
|
|
1194
1207
|
keepExistingSelection: !0
|
|
1195
|
-
})) :
|
|
1208
|
+
})) : A(e.value, s) || (t.setItemSelection({
|
|
1196
1209
|
event: n,
|
|
1197
1210
|
itemId: s
|
|
1198
1211
|
}), n.preventDefault()));
|
|
1199
1212
|
break;
|
|
1200
1213
|
}
|
|
1201
1214
|
// Focus the next focusable item
|
|
1202
|
-
case
|
|
1203
|
-
const
|
|
1204
|
-
|
|
1215
|
+
case b === "ArrowDown": {
|
|
1216
|
+
const p = z(e.value, s);
|
|
1217
|
+
p && (n.preventDefault(), t.focusItem(n, p), E && n.shiftKey && r(p) && t.selectItemFromArrowNavigation(n, s, p));
|
|
1205
1218
|
break;
|
|
1206
1219
|
}
|
|
1207
1220
|
// Focuses the previous focusable item
|
|
1208
|
-
case
|
|
1209
|
-
const
|
|
1210
|
-
|
|
1221
|
+
case b === "ArrowUp": {
|
|
1222
|
+
const p = ze(e.value, s);
|
|
1223
|
+
p && (n.preventDefault(), t.focusItem(n, p), E && n.shiftKey && r(p) && t.selectItemFromArrowNavigation(n, s, p));
|
|
1211
1224
|
break;
|
|
1212
1225
|
}
|
|
1213
1226
|
// If the focused item is expanded, we move the focus to its first child
|
|
1214
1227
|
// If the focused item is collapsed and has children, we expand it
|
|
1215
|
-
case (
|
|
1228
|
+
case (b === "ArrowRight" && !i || b === "ArrowLeft" && i): {
|
|
1216
1229
|
if (I)
|
|
1217
1230
|
return;
|
|
1218
|
-
if (
|
|
1219
|
-
const
|
|
1220
|
-
|
|
1221
|
-
} else
|
|
1231
|
+
if (N(e.value, s)) {
|
|
1232
|
+
const p = z(e.value, s);
|
|
1233
|
+
p && (t.focusItem(n, p), n.preventDefault());
|
|
1234
|
+
} else m(s) && (t.setItemExpansion({
|
|
1222
1235
|
event: n,
|
|
1223
1236
|
itemId: s
|
|
1224
1237
|
}), n.preventDefault());
|
|
@@ -1226,46 +1239,46 @@ const we = ({
|
|
|
1226
1239
|
}
|
|
1227
1240
|
// If the focused item is expanded, we collapse it
|
|
1228
1241
|
// If the focused item is collapsed and has a parent, we move the focus to this parent
|
|
1229
|
-
case (
|
|
1242
|
+
case (b === "ArrowLeft" && !i || b === "ArrowRight" && i): {
|
|
1230
1243
|
if (I)
|
|
1231
1244
|
return;
|
|
1232
|
-
if (
|
|
1245
|
+
if (m(s) && N(e.value, s))
|
|
1233
1246
|
t.setItemExpansion({
|
|
1234
1247
|
event: n,
|
|
1235
1248
|
itemId: s
|
|
1236
1249
|
}), n.preventDefault();
|
|
1237
1250
|
else {
|
|
1238
|
-
const
|
|
1239
|
-
|
|
1251
|
+
const p = _(e.value, s);
|
|
1252
|
+
p && (t.focusItem(n, p), n.preventDefault());
|
|
1240
1253
|
}
|
|
1241
1254
|
break;
|
|
1242
1255
|
}
|
|
1243
1256
|
// Focuses the first item in the tree
|
|
1244
|
-
case
|
|
1245
|
-
|
|
1257
|
+
case b === "Home": {
|
|
1258
|
+
r(s) && E && I && n.shiftKey ? t.selectRangeFromStartToItem(n, s) : t.focusItem(n, W(e.value)), n.preventDefault();
|
|
1246
1259
|
break;
|
|
1247
1260
|
}
|
|
1248
1261
|
// Focuses the last item in the tree
|
|
1249
|
-
case
|
|
1250
|
-
|
|
1262
|
+
case b === "End": {
|
|
1263
|
+
r(s) && E && I && n.shiftKey ? t.selectRangeFromItemToEnd(n, s) : t.focusItem(n, pe(e.value)), n.preventDefault();
|
|
1251
1264
|
break;
|
|
1252
1265
|
}
|
|
1253
1266
|
// Expand all siblings that are at the same level as the focused item
|
|
1254
|
-
case
|
|
1267
|
+
case b === "*": {
|
|
1255
1268
|
t.expandAllSiblings(n, s), n.preventDefault();
|
|
1256
1269
|
break;
|
|
1257
1270
|
}
|
|
1258
1271
|
// Multi select behavior when pressing Ctrl + a
|
|
1259
1272
|
// Selects all the items
|
|
1260
|
-
case (String.fromCharCode(n.keyCode) === "A" && I &&
|
|
1273
|
+
case (String.fromCharCode(n.keyCode) === "A" && I && E && X(e.value)): {
|
|
1261
1274
|
t.selectAllNavigableItems(n), n.preventDefault();
|
|
1262
1275
|
break;
|
|
1263
1276
|
}
|
|
1264
1277
|
// Type-ahead
|
|
1265
1278
|
// TODO: Support typing multiple characters
|
|
1266
|
-
case (!I && !n.shiftKey &&
|
|
1267
|
-
const
|
|
1268
|
-
|
|
1279
|
+
case (!I && !n.shiftKey && $t(b)): {
|
|
1280
|
+
const p = d(s, b);
|
|
1281
|
+
p != null && (t.focusItem(n, p), n.preventDefault());
|
|
1269
1282
|
break;
|
|
1270
1283
|
}
|
|
1271
1284
|
}
|
|
@@ -1273,55 +1286,55 @@ const we = ({
|
|
|
1273
1286
|
}
|
|
1274
1287
|
};
|
|
1275
1288
|
};
|
|
1276
|
-
|
|
1277
|
-
const
|
|
1278
|
-
process.env.NODE_ENV !== "production" && (
|
|
1279
|
-
const
|
|
1289
|
+
ke.params = {};
|
|
1290
|
+
const Ut = [F, q, j, te, ke, Ie], qt = ["ownerState"], ne = /* @__PURE__ */ x.createContext(null);
|
|
1291
|
+
process.env.NODE_ENV !== "production" && (ne.displayName = "RichTreeViewItemsContext");
|
|
1292
|
+
const Ce = /* @__PURE__ */ x.memo(function({
|
|
1280
1293
|
itemSlot: e,
|
|
1281
1294
|
itemSlotProps: o,
|
|
1282
1295
|
itemId: i
|
|
1283
1296
|
}) {
|
|
1284
|
-
const l = x.useContext(
|
|
1285
|
-
store:
|
|
1286
|
-
} =
|
|
1287
|
-
elementType:
|
|
1297
|
+
const l = x.useContext(ne), {
|
|
1298
|
+
store: h
|
|
1299
|
+
} = Z(), a = M(h, V, i), d = M(h, R, i), r = e ?? Je, m = he({
|
|
1300
|
+
elementType: r,
|
|
1288
1301
|
externalSlotProps: o,
|
|
1289
1302
|
additionalProps: {
|
|
1290
|
-
label:
|
|
1291
|
-
id:
|
|
1303
|
+
label: a == null ? void 0 : a.label,
|
|
1304
|
+
id: a == null ? void 0 : a.idAttribute,
|
|
1292
1305
|
itemId: i
|
|
1293
1306
|
},
|
|
1294
1307
|
ownerState: {
|
|
1295
1308
|
itemId: i,
|
|
1296
|
-
label:
|
|
1309
|
+
label: a == null ? void 0 : a.label
|
|
1297
1310
|
}
|
|
1298
|
-
}), c =
|
|
1299
|
-
return /* @__PURE__ */ P(
|
|
1300
|
-
children:
|
|
1311
|
+
}), c = H(m, qt);
|
|
1312
|
+
return /* @__PURE__ */ P(r, T({}, c, {
|
|
1313
|
+
children: d == null ? void 0 : d.map(l)
|
|
1301
1314
|
}));
|
|
1302
|
-
},
|
|
1303
|
-
process.env.NODE_ENV !== "production" && (
|
|
1304
|
-
function
|
|
1315
|
+
}, we);
|
|
1316
|
+
process.env.NODE_ENV !== "production" && (Ce.displayName = "WrappedTreeItem");
|
|
1317
|
+
function Kt(t) {
|
|
1305
1318
|
const {
|
|
1306
1319
|
slots: e,
|
|
1307
1320
|
slotProps: o
|
|
1308
1321
|
} = t, {
|
|
1309
1322
|
store: i
|
|
1310
|
-
} =
|
|
1323
|
+
} = Z(), l = e == null ? void 0 : e.item, h = o == null ? void 0 : o.item, a = M(i, R, null), d = x.useCallback((r) => /* @__PURE__ */ P(Ce, {
|
|
1311
1324
|
itemSlot: l,
|
|
1312
|
-
itemSlotProps:
|
|
1313
|
-
itemId:
|
|
1314
|
-
},
|
|
1315
|
-
return /* @__PURE__ */ P(
|
|
1316
|
-
value:
|
|
1317
|
-
children:
|
|
1325
|
+
itemSlotProps: h,
|
|
1326
|
+
itemId: r
|
|
1327
|
+
}, r), [l, h]);
|
|
1328
|
+
return /* @__PURE__ */ P(ne.Provider, {
|
|
1329
|
+
value: d,
|
|
1330
|
+
children: a.map(d)
|
|
1318
1331
|
});
|
|
1319
1332
|
}
|
|
1320
|
-
const
|
|
1333
|
+
const Bt = ["slots", "slotProps"], zt = Qe(), Gt = (t) => {
|
|
1321
1334
|
const {
|
|
1322
1335
|
classes: e
|
|
1323
1336
|
} = t;
|
|
1324
|
-
return x.useMemo(() =>
|
|
1337
|
+
return x.useMemo(() => at({
|
|
1325
1338
|
root: ["root"],
|
|
1326
1339
|
item: ["item"],
|
|
1327
1340
|
itemContent: ["itemContent"],
|
|
@@ -1332,8 +1345,8 @@ const Ut = ["slots", "slotProps"], qt = We(), Kt = (t) => {
|
|
|
1332
1345
|
itemCheckbox: ["itemCheckbox"]
|
|
1333
1346
|
// itemDragAndDropOverlay: ['itemDragAndDropOverlay'], => feature not available on this component
|
|
1334
1347
|
// itemErrorIcon: ['itemErrorIcon'], => feature not available on this component
|
|
1335
|
-
},
|
|
1336
|
-
},
|
|
1348
|
+
}, mt, e), [e]);
|
|
1349
|
+
}, Wt = ut("ul", {
|
|
1337
1350
|
name: "MuiRichTreeView",
|
|
1338
1351
|
slot: "Root"
|
|
1339
1352
|
})({
|
|
@@ -1342,49 +1355,49 @@ const Ut = ["slots", "slotProps"], qt = We(), Kt = (t) => {
|
|
|
1342
1355
|
listStyle: "none",
|
|
1343
1356
|
outline: 0,
|
|
1344
1357
|
position: "relative"
|
|
1345
|
-
}),
|
|
1346
|
-
const i =
|
|
1358
|
+
}), oe = /* @__PURE__ */ x.forwardRef(function(e, o) {
|
|
1359
|
+
const i = zt({
|
|
1347
1360
|
props: e,
|
|
1348
1361
|
name: "MuiRichTreeView"
|
|
1349
1362
|
}), {
|
|
1350
1363
|
slots: l,
|
|
1351
|
-
slotProps:
|
|
1352
|
-
} = i,
|
|
1353
|
-
process.env.NODE_ENV !== "production" && i.children != null &&
|
|
1364
|
+
slotProps: h
|
|
1365
|
+
} = i, a = H(i, Bt);
|
|
1366
|
+
process.env.NODE_ENV !== "production" && i.children != null && Q(["MUI X: The Rich Tree View component does not support JSX children.", "If you want to add items, you need to use the `items` prop.", "Check the documentation for more details: https://mui.com/x/react-tree-view/rich-tree-view/items/."]);
|
|
1354
1367
|
const {
|
|
1355
|
-
getRootProps:
|
|
1356
|
-
contextValue:
|
|
1357
|
-
} =
|
|
1358
|
-
plugins:
|
|
1368
|
+
getRootProps: d,
|
|
1369
|
+
contextValue: r
|
|
1370
|
+
} = kt({
|
|
1371
|
+
plugins: Ut,
|
|
1359
1372
|
rootRef: o,
|
|
1360
|
-
props:
|
|
1361
|
-
}),
|
|
1373
|
+
props: a
|
|
1374
|
+
}), m = M(r.store, Ye), c = M(r.store, Ze), n = Gt(i), s = (l == null ? void 0 : l.root) ?? Wt, I = he({
|
|
1362
1375
|
elementType: s,
|
|
1363
|
-
externalSlotProps:
|
|
1376
|
+
externalSlotProps: h == null ? void 0 : h.root,
|
|
1364
1377
|
className: n.root,
|
|
1365
|
-
getSlotProps:
|
|
1378
|
+
getSlotProps: d,
|
|
1366
1379
|
ownerState: i
|
|
1367
1380
|
});
|
|
1368
|
-
return
|
|
1381
|
+
return m ? /* @__PURE__ */ P(dt, {
|
|
1369
1382
|
children: "Loading..."
|
|
1370
|
-
}) : c ? /* @__PURE__ */ P(
|
|
1383
|
+
}) : c ? /* @__PURE__ */ P(ft, {
|
|
1371
1384
|
severity: "error",
|
|
1372
1385
|
children: c.message
|
|
1373
|
-
}) : /* @__PURE__ */ P(
|
|
1374
|
-
contextValue:
|
|
1386
|
+
}) : /* @__PURE__ */ P(Ct, {
|
|
1387
|
+
contextValue: r,
|
|
1375
1388
|
classes: n,
|
|
1376
1389
|
slots: l,
|
|
1377
|
-
slotProps:
|
|
1390
|
+
slotProps: h,
|
|
1378
1391
|
children: /* @__PURE__ */ P(s, T({}, I, {
|
|
1379
|
-
children: /* @__PURE__ */ P(
|
|
1392
|
+
children: /* @__PURE__ */ P(Kt, {
|
|
1380
1393
|
slots: l,
|
|
1381
|
-
slotProps:
|
|
1394
|
+
slotProps: h
|
|
1382
1395
|
})
|
|
1383
1396
|
}))
|
|
1384
1397
|
});
|
|
1385
1398
|
});
|
|
1386
|
-
process.env.NODE_ENV !== "production" && (
|
|
1387
|
-
process.env.NODE_ENV !== "production" && (
|
|
1399
|
+
process.env.NODE_ENV !== "production" && (oe.displayName = "RichTreeView");
|
|
1400
|
+
process.env.NODE_ENV !== "production" && (oe.propTypes = {
|
|
1388
1401
|
// ----------------------------- Warning --------------------------------
|
|
1389
1402
|
// | These PropTypes are generated from the TypeScript type definitions |
|
|
1390
1403
|
// | To update them edit the TypeScript types and run "pnpm proptypes" |
|
|
@@ -1593,46 +1606,46 @@ process.env.NODE_ENV !== "production" && (ne.propTypes = {
|
|
|
1593
1606
|
*/
|
|
1594
1607
|
sx: g.oneOfType([g.arrayOf(g.oneOfType([g.func, g.object, g.bool])), g.func, g.object])
|
|
1595
1608
|
});
|
|
1596
|
-
const
|
|
1609
|
+
const mn = ({
|
|
1597
1610
|
items: t,
|
|
1598
1611
|
selectedItemId: e,
|
|
1599
1612
|
handleSelectedItemChange: o,
|
|
1600
1613
|
iconColor: i = "primary",
|
|
1601
1614
|
hasNoIcons: l = !1,
|
|
1602
|
-
maxHeight:
|
|
1603
|
-
defaultExpandedItems:
|
|
1615
|
+
maxHeight: h = 300,
|
|
1616
|
+
defaultExpandedItems: a = []
|
|
1604
1617
|
}) => {
|
|
1605
|
-
const [
|
|
1606
|
-
return
|
|
1618
|
+
const [d, r] = Re(a), m = Se(() => nt(t), [t]);
|
|
1619
|
+
return Le(() => {
|
|
1607
1620
|
if (e) {
|
|
1608
|
-
const n =
|
|
1621
|
+
const n = ot(t, e);
|
|
1609
1622
|
if (n) {
|
|
1610
1623
|
const s = n.slice(0, -1);
|
|
1611
|
-
|
|
1612
|
-
const
|
|
1613
|
-
(
|
|
1624
|
+
r((I) => {
|
|
1625
|
+
const b = s.filter(
|
|
1626
|
+
(E) => !I.includes(E)
|
|
1614
1627
|
);
|
|
1615
|
-
return
|
|
1628
|
+
return b.length > 0 ? [...I, ...b] : I;
|
|
1616
1629
|
});
|
|
1617
1630
|
}
|
|
1618
1631
|
}
|
|
1619
|
-
}, [e, t]), /* @__PURE__ */ P(
|
|
1620
|
-
|
|
1632
|
+
}, [e, t]), /* @__PURE__ */ P(et, { maxHeight: h, "data-treeview-root": "true", children: /* @__PURE__ */ P(
|
|
1633
|
+
oe,
|
|
1621
1634
|
{
|
|
1622
1635
|
items: t,
|
|
1623
1636
|
selectedItems: e,
|
|
1624
|
-
expandedItems:
|
|
1637
|
+
expandedItems: d,
|
|
1625
1638
|
onExpandedItemsChange: (n, s) => {
|
|
1626
|
-
|
|
1639
|
+
r(s);
|
|
1627
1640
|
},
|
|
1628
|
-
itemChildrenIndentation:
|
|
1641
|
+
itemChildrenIndentation: tt,
|
|
1629
1642
|
onSelectedItemsChange: o,
|
|
1630
|
-
getItemId:
|
|
1643
|
+
getItemId: st,
|
|
1631
1644
|
slots: {
|
|
1632
1645
|
item: (n) => {
|
|
1633
|
-
const s = n.itemId ?
|
|
1646
|
+
const s = n.itemId ? m[n.itemId] : void 0;
|
|
1634
1647
|
return /* @__PURE__ */ P(
|
|
1635
|
-
|
|
1648
|
+
He,
|
|
1636
1649
|
{
|
|
1637
1650
|
...n,
|
|
1638
1651
|
itemData: s,
|
|
@@ -1646,5 +1659,5 @@ const un = ({
|
|
|
1646
1659
|
) });
|
|
1647
1660
|
};
|
|
1648
1661
|
export {
|
|
1649
|
-
|
|
1662
|
+
mn as default
|
|
1650
1663
|
};
|