@cgi-learning-hub/ui 1.5.0 → 1.5.1-dev.1744639457
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-5zQ9TB22.cjs +1 -0
- package/dist/{Alert-D7eKsj1P.js → Alert-CDbAJ9jP.js} +27 -28
- package/dist/Autocomplete-2DWwLqO5.cjs +6 -0
- package/dist/{Autocomplete-Cfz4sLy8.js → Autocomplete-DO8kdiDn.js} +704 -665
- package/dist/Backdrop-Be5Hv5U8.cjs +1 -0
- package/dist/{Backdrop-COiz4sPF.js → Backdrop-CRrNkGxU.js} +18 -18
- package/dist/{Box-C-j-U8SH.js → Box-2IEW8Uij.js} +12 -12
- package/dist/Box-Bl24J58B.cjs +1 -0
- package/dist/Button-CZTPCtLu.cjs +1 -0
- package/dist/{Button-CQQdMCSm.js → Button-DYWfAsGe.js} +114 -148
- package/dist/{ButtonBase-CZFKUUHD.js → ButtonBase-BZXGvriS.js} +24 -24
- package/dist/{ButtonBase-NqQjeQ4X.cjs → ButtonBase-DDgwUJIY.cjs} +1 -1
- package/dist/CardContent-CCMZ6TlJ.cjs +1 -0
- package/dist/{CardContent-sX9Bw4Ke.js → CardContent-oRdx06Ln.js} +5 -5
- package/dist/{Checkbox-1Zr36vDa.js → Checkbox-DMnS1qrF.js} +95 -68
- package/dist/Checkbox-Dsa-pj_7.cjs +1 -0
- package/dist/Chip-BJSNxQBQ.cjs +1 -0
- package/dist/{Chip-BsErraqe.js → Chip-CacnC2L1.js} +53 -54
- package/dist/CircularProgress-XGMwsxSL.cjs +28 -0
- package/dist/{CircularProgress-BBHGA0JX.js → CircularProgress-_VZwmayK.js} +28 -29
- package/dist/{Close-r-ZUhk0-.js → Close-CSvE0tu1.js} +1 -1
- package/dist/{Close-ZXg7X3Tz.cjs → Close-Czm0dlR9.cjs} +1 -1
- package/dist/{CloseRounded-CWmxueMc.cjs → CloseRounded-BkPBIz0q.cjs} +1 -1
- package/dist/{CloseRounded-B-eaQsyM.js → CloseRounded-CEX-NsA7.js} +1 -1
- package/dist/CustomTreeItem-CI47uzgL.cjs +3 -0
- package/dist/{CustomTreeItem-BpAK85gf.js → CustomTreeItem-DTV3xokL.js} +287 -289
- package/dist/{DatePicker-CWMXTgRG.js → DatePicker-C-toYUpc.js} +995 -1002
- package/dist/DatePicker-DbH5IN_w.cjs +13 -0
- package/dist/{DefaultPropsProvider-CXfMJdg8.js → DefaultPropsProvider-Bg-6nX-u.js} +53 -53
- package/dist/DefaultPropsProvider-DLSItMqn.cjs +1 -0
- package/dist/{Delete-CpTtpM4U.cjs → Delete-C0hR-twe.cjs} +1 -1
- package/dist/{Delete-DKn2lIDB.js → Delete-Pl5O0eBK.js} +1 -1
- package/dist/{Dialog-pU1ZAttp.js → Dialog-BGrQDZXr.js} +162 -169
- package/dist/Dialog-D1VJ5jXx.cjs +1 -0
- package/dist/DialogContent-DqdeAbSs.cjs +1 -0
- package/dist/{DialogContent-BEgapieO.js → DialogContent-ZiO3fkfO.js} +3 -3
- package/dist/DialogTitle-B3MlGamo.cjs +1 -0
- package/dist/{DialogTitle-Dcls3mcZ.js → DialogTitle-BiZ7zHp-.js} +7 -7
- package/dist/{Divider-CT4XaEn6.js → Divider-BDN4OyrO.js} +8 -8
- package/dist/Divider-I7KOokm8.cjs +1 -0
- package/dist/{Folder-DoEl37QZ.js → Folder-CF7SX2AD.js} +1 -1
- package/dist/{Folder-DWD_1Fux.cjs → Folder-ExV_xCn6.cjs} +1 -1
- package/dist/{FormLabel-BF6m-_uI.js → FormLabel-DNsUciXe.js} +24 -25
- package/dist/FormLabel-xZr5oZgx.cjs +2 -0
- package/dist/{Grow-Bk7XkPFP.js → Grow-CLBgYoz_.js} +5 -5
- package/dist/Grow-DrEdqZgX.cjs +1 -0
- package/dist/IconButton-C1I_233O.cjs +2 -0
- package/dist/{IconButton-BQW0xjdH.js → IconButton-CT0Plyy5.js} +26 -27
- package/dist/{InputAdornment-C6UfLaud.js → InputAdornment-Ci0BnJ_e.js} +10 -11
- package/dist/InputAdornment-_UPzajRP.cjs +1 -0
- package/dist/InputBase-C-ES3FPH.cjs +3 -0
- package/dist/{InputBase-YOnatBxw.js → InputBase-CJvM-WXJ.js} +261 -256
- package/dist/{Link-C3rf4gqc.js → Link-B6LNMjac.js} +15 -16
- package/dist/Link-BQrFDQ-K.cjs +1 -0
- package/dist/{List-CFInjv2S.js → List-22h7byk_.js} +2 -2
- package/dist/List-Bii833np.cjs +1 -0
- package/dist/{ListItem-BAAZxsu5.js → ListItem-B0syBgS7.js} +17 -17
- package/dist/ListItem-BtjE87R1.cjs +1 -0
- package/dist/ListItemText-Dov-H_Ii.cjs +2 -0
- package/dist/ListItemText-zFoA_mgx.js +845 -0
- package/dist/Menu-4e60iiMU.cjs +7 -0
- package/dist/{Menu-BgO92SV3.js → Menu-B6t_52q7.js} +405 -335
- package/dist/MenuItem-De2MJkYT.cjs +1 -0
- package/dist/{MenuItem-B8eWAj8E.js → MenuItem-KNXRjnwO.js} +14 -14
- package/dist/{Modal-CFv4UMTP.js → Modal-BpJ9BCOo.js} +239 -245
- package/dist/Modal-JAWJUstF.cjs +2 -0
- package/dist/{MoreVert-Dq8BqKg4.js → MoreVert-BtC5XWOR.js} +1 -1
- package/dist/{MoreVert-B_Gz5Gfx.cjs → MoreVert-MSZXYrMO.cjs} +1 -1
- package/dist/{Paper-DeL_n4k9.js → Paper-BTFv1nzl.js} +9 -9
- package/dist/Paper-CKG165jt.cjs +2 -0
- package/dist/Popper-CyH7Z-lN.cjs +4 -0
- package/dist/{Popper-BKxRTMsO.js → Popper-YJsxmJsm.js} +10 -10
- package/dist/Portal-CtsVKOQ9.js +85 -0
- package/dist/Portal-LP7SUKpU.cjs +1 -0
- package/dist/Radio-BEfQuau1.cjs +1 -0
- package/dist/{Radio-BVfoGshx.js → Radio-Dg73Pnqf.js} +226 -183
- package/dist/RadioGroup-CqCh25ZS.cjs +1 -0
- package/dist/{RadioGroup-DcqRUtV8.js → RadioGroup-jev5E2xJ.js} +20 -20
- package/dist/{Select-Vnsr3NSv.js → Select-21Pm-BzJ.js} +164 -165
- package/dist/Select-CxofSqZJ.cjs +3 -0
- package/dist/{Stack-PQFKjbdN.js → Stack-D2Plrf1_.js} +60 -104
- package/dist/Stack-DpH56CPw.cjs +1 -0
- package/dist/Switch-BIGFww3p.cjs +1 -0
- package/dist/{Switch-Bn8zlIOf.js → Switch-CNfK1N1c.js} +167 -108
- package/dist/SwitchBase-BHC3uchj.js +314 -0
- package/dist/SwitchBase-DA079uiU.cjs +1 -0
- package/dist/{Tab-A0R3g6rB.js → Tab-BbWlzMyp.js} +597 -537
- package/dist/Tab-BsIC620i.cjs +4 -0
- package/dist/{TextField-Di6Nfe3O.js → TextField-BjzDdsW_.js} +133 -124
- package/dist/TextField-DFr8lsXU.cjs +1 -0
- package/dist/ToggleButtonGroup-BEvrUL8a.cjs +138 -0
- package/dist/{ToggleButtonGroup-B-zfmsAO.js → ToggleButtonGroup-C_O-zqof.js} +1995 -1818
- package/dist/{Tooltip-KTkLBRQj.js → Tooltip-Bf5VDDeG.js} +34 -35
- package/dist/Tooltip-DJC7nrsk.cjs +4 -0
- package/dist/{Typography-DZ11k9cZ.js → Typography-BNt9mZKm.js} +13 -14
- package/dist/Typography-DOpE-TJz.cjs +1 -0
- package/dist/components/Alert/Alert.cjs.js +1 -1
- package/dist/components/Alert/Alert.es.js +3 -3
- 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 +2 -2
- 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 +15 -15
- 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.d.ts +1 -0
- package/dist/components/FolderCard/FolderCard.es.js +26 -17
- package/dist/components/FolderCard/styles.cjs.js +1 -1
- package/dist/components/FolderCard/styles.d.ts +4 -0
- package/dist/components/FolderCard/styles.es.js +9 -5
- 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.d.ts +1 -0
- package/dist/components/ResourceCard/ResourceCard.es.js +21 -19
- package/dist/components/ResourceCard/style.cjs.js +1 -1
- package/dist/components/ResourceCard/style.es.js +49 -44
- 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 +7 -7
- package/dist/components/TreeView/TreeView.es.js +323 -319
- package/dist/components/TreeView/components/CustomTreeItem.cjs.js +1 -1
- package/dist/components/TreeView/components/CustomTreeItem.es.js +2 -2
- package/dist/components/TreeView/style.cjs.js +1 -1
- package/dist/components/TreeView/style.es.js +24 -18
- package/dist/components/TreeView/types.d.ts +5 -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 +264 -266
- 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/Button.stories.cjs.js +1 -1
- package/dist/components/stories/Button.stories.es.js +1 -1
- 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/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 +3 -3
- package/dist/components/stories/TreeView.stories.d.ts +2 -0
- package/dist/components/stories/TreeView.stories.es.js +517 -268
- package/dist/components/stories/Typography.stories.cjs.js +1 -1
- package/dist/components/stories/Typography.stories.es.js +1 -1
- package/dist/{createSvgIcon-BFqOnlgU.js → createSvgIcon-CCutbgLb.js} +54 -55
- package/dist/createSvgIcon-DPiiTkVU.cjs +1 -0
- package/dist/dividerClasses-B_bu1fey.cjs +1 -0
- package/dist/{dividerClasses-BYkvalOn.js → dividerClasses-hlXEfEZK.js} +1 -1
- package/dist/{elementTypeAcceptingRef-1usJq_B8.js → elementTypeAcceptingRef-COpcDx5q.js} +1 -1
- package/dist/elementTypeAcceptingRef-DRPcjZd5.cjs +1 -0
- package/dist/{extendSxProp-D_IkoDXB.js → extendSxProp-0G38SSpC.js} +1 -1
- package/dist/extendSxProp-BZI5kY-d.cjs +1 -0
- package/dist/{getReactElementRef-DtLerx40.js → getReactElementRef-C6oFed6n.js} +1 -1
- package/dist/getReactElementRef-EDbO4rJt.cjs +1 -0
- package/dist/{generateUtilityClasses-CqzQXpT_.js → identifier-BJqC6EXa.js} +833 -865
- package/dist/identifier-gJdGmHeC.cjs +74 -0
- package/dist/{index-CFIk4hVM.js → index-BOAF-ZZq.js} +4 -4
- package/dist/index-Cfd-LNZn.cjs +1 -0
- package/dist/index-D14TzUgK.cjs +1 -0
- package/dist/{index-sDFEVHTg.js → index-DP697UN9.js} +1 -1
- package/dist/index-Dmu1HrwE.cjs +5 -0
- package/dist/{index-C7WfZsMe.js → index-gxOBDuBW.js} +2 -2
- package/dist/index.cjs.js +1 -1
- package/dist/index.es.js +264 -266
- package/dist/{listItemTextClasses-C0D3xQur.js → listItemTextClasses-DBxyCmso.js} +1 -1
- package/dist/listItemTextClasses-gsrBifRw.cjs +1 -0
- package/dist/{memoTheme-B0xVysYu.js → memoTheme-D_Qap2ZW.js} +1 -1
- package/dist/{memoTheme-WwIyYqBX.cjs → memoTheme-GOMOSdXJ.cjs} +1 -1
- package/dist/mergeSlotProps-BCz8yLkw.cjs +1 -0
- package/dist/mergeSlotProps-BSFlgsYC.js +62 -0
- package/dist/refType-53jD7LEO.cjs +1 -0
- package/dist/{refType-BvSJNaoq.js → refType-DRBJ18fO.js} +1 -1
- package/dist/styled-C7OKoThH.cjs +1 -0
- package/dist/styled-DpPa0vDp.js +5 -0
- package/dist/useEventCallback-BxpcFap0.cjs +1 -0
- package/dist/useEventCallback-Yoj9nCug.js +15 -0
- package/dist/useForkRef-CFhhTu-Q.cjs +1 -0
- package/dist/useForkRef-u29GSuCu.js +27 -0
- package/dist/useSlot-DhC6EPU2.js +125 -0
- package/dist/useSlot-zJFQDOgm.cjs +1 -0
- package/dist/{useSlotProps-Ceyorp-u.js → useSlotProps-Bos9nSja.js} +2 -2
- package/dist/useSlotProps-CuEZ7HQe.cjs +1 -0
- package/dist/{useTheme-2JCMQS-E.js → useTheme-B1xvds8x.js} +1 -1
- package/dist/useTheme-BJZcQSBU.cjs +1 -0
- package/dist/useTheme-Dt-VOIyT.js +11 -0
- package/dist/useTheme-NQRIebh0.cjs +1 -0
- package/dist/useThemeProps-CxMYNgfp.js +17 -0
- package/dist/{useThemeProps-Cuazh32X.js → useThemeProps-DSVFwH3A.js} +4 -4
- package/dist/useThemeProps-DnpiVoRo.cjs +1 -0
- package/dist/{useThemeProps-RdxbcMsR.cjs → useThemeProps-jU-2XOjK.cjs} +1 -1
- package/dist/utils-B2EQZFZP.cjs +1 -0
- package/dist/{utils-BVg32WSe.js → utils-qwVZGgXz.js} +1 -1
- package/dist/warning-C8W811fV.js +11 -0
- package/dist/warning-DMUNDgRg.cjs +2 -0
- package/package.json +10 -10
- package/dist/Alert-CvizDCvx.cjs +0 -1
- package/dist/Autocomplete-DjU6i3zL.cjs +0 -6
- package/dist/Backdrop-BM-OE2Q_.cjs +0 -1
- package/dist/Box-BmfpLwYG.cjs +0 -1
- package/dist/Button-BGWvL_UD.cjs +0 -1
- package/dist/CardContent-GHLuvxgm.cjs +0 -1
- package/dist/Checkbox-BZYoJieY.cjs +0 -1
- package/dist/Chip-Cu_SZxrx.cjs +0 -1
- package/dist/CircularProgress-CdS7-HOv.cjs +0 -28
- package/dist/CustomTreeItem-BIl2yiro.cjs +0 -4
- package/dist/DatePicker-tyDzcyzu.cjs +0 -14
- package/dist/DefaultPropsProvider-BTnRBr0O.cjs +0 -1
- package/dist/Dialog-DIHzs0ro.cjs +0 -1
- package/dist/DialogContent-B-9ga3Wv.cjs +0 -1
- package/dist/DialogTitle-B_UN_oL2.cjs +0 -1
- package/dist/Divider-iYLSpFUc.cjs +0 -1
- package/dist/FormLabel-Cp2OFw8d.cjs +0 -2
- package/dist/Grow-DXY5DOqR.cjs +0 -1
- package/dist/IconButton-BLZJne06.cjs +0 -2
- package/dist/InputAdornment-C0WI_oQg.cjs +0 -1
- package/dist/InputBase-B3KOyouT.cjs +0 -3
- package/dist/Link-lvpmE2yz.cjs +0 -1
- package/dist/List-PQXGlDbt.cjs +0 -1
- package/dist/ListItem-CWEvdMjN.cjs +0 -1
- package/dist/ListItemText-BhxrnTkb.cjs +0 -1
- package/dist/ListItemText-CADHegDF.js +0 -928
- package/dist/Menu-DBacrp-P.cjs +0 -7
- package/dist/MenuItem-DkcVAo3U.cjs +0 -1
- package/dist/Modal-kUvS-N46.cjs +0 -2
- package/dist/Paper-ByOgFIEE.cjs +0 -2
- package/dist/Popper-CsQqc5DE.cjs +0 -4
- package/dist/Portal-7MKUQzjh.js +0 -81
- package/dist/Portal-DhGy1jKe.cjs +0 -1
- package/dist/Radio-DG-k6cXx.cjs +0 -1
- package/dist/RadioGroup-Dd0mX-H2.cjs +0 -1
- package/dist/Select-b6liJFDI.cjs +0 -3
- package/dist/Stack-gtxG2YLo.cjs +0 -1
- package/dist/Switch-BlwDxL6O.cjs +0 -1
- package/dist/SwitchBase-DtKlxrES.cjs +0 -1
- package/dist/SwitchBase-QwOXoy8f.js +0 -262
- package/dist/Tab-Dx7V4E6B.cjs +0 -4
- package/dist/TextField-CB2n4aV8.cjs +0 -1
- package/dist/ToggleButtonGroup-D3bdznCl.cjs +0 -137
- package/dist/Tooltip-D0jvnXYu.cjs +0 -4
- package/dist/Typography-3CpuuLtj.cjs +0 -1
- package/dist/capitalize-B3tmp8MO.cjs +0 -1
- package/dist/capitalize-Bs7Xs33U.js +0 -9
- package/dist/createSvgIcon-2wwaxLPT.cjs +0 -1
- package/dist/dividerClasses-izm7KFVg.cjs +0 -1
- package/dist/elementTypeAcceptingRef-GoqLuvj1.cjs +0 -1
- package/dist/extendSxProp-Bv3E507G.cjs +0 -1
- package/dist/generateUtilityClasses-KugHyZhN.cjs +0 -75
- package/dist/getReactElementRef-D7IvykPI.cjs +0 -1
- package/dist/index-9hEUqvaJ.cjs +0 -1
- package/dist/index-BomeQRLD.cjs +0 -5
- package/dist/index-DS8G_wjP.cjs +0 -1
- package/dist/listItemTextClasses-CQXcckDA.cjs +0 -1
- package/dist/refType-D-n-tVSl.cjs +0 -1
- package/dist/resolveComponentProps-Byi_59AN.cjs +0 -1
- package/dist/resolveComponentProps-Ctw0-dUN.js +0 -80
- package/dist/useEnhancedEffect-BQZ6dtCo.cjs +0 -1
- package/dist/useEnhancedEffect-CJGo-L3B.js +0 -5
- package/dist/useEventCallback-BAQJJ3ye.js +0 -14
- package/dist/useEventCallback-C0-Qw3Sm.cjs +0 -1
- package/dist/useForkRef-CTI33h-3.cjs +0 -1
- package/dist/useForkRef-C_4o__cU.js +0 -15
- package/dist/useSlot-CGbU9jGm.cjs +0 -1
- package/dist/useSlot-CqjfyGd9.js +0 -48
- package/dist/useSlotProps-DfO7r_4Y.cjs +0 -1
- package/dist/useTheme-B6wow4M9.cjs +0 -1
- package/dist/useTheme-DepbBZga.js +0 -11
- package/dist/useTheme-MahNaB8C.cjs +0 -1
- package/dist/useThemeProps-BqypsO1h.cjs +0 -1
- package/dist/useThemeProps-Drd5oJEF.js +0 -17
- package/dist/utils-CUU5fjzL.cjs +0 -1
|
@@ -1,28 +1,29 @@
|
|
|
1
1
|
import { jsx as x, jsxs as ie } from "react/jsx-runtime";
|
|
2
|
-
import { c as ae } from "./createSvgIcon-
|
|
3
|
-
import {
|
|
4
|
-
import { _ as f } from "./ButtonBase-CZFKUUHD.js";
|
|
2
|
+
import { c as ae } from "./createSvgIcon-CCutbgLb.js";
|
|
3
|
+
import { _ as m } from "./ButtonBase-BZXGvriS.js";
|
|
5
4
|
import * as R from "react";
|
|
6
|
-
import {
|
|
7
|
-
import {
|
|
8
|
-
import {
|
|
9
|
-
import {
|
|
10
|
-
import {
|
|
5
|
+
import { w as Be } from "./warning-C8W811fV.js";
|
|
6
|
+
import { u as ce } from "./useForkRef-u29GSuCu.js";
|
|
7
|
+
import { e as K, r as be } from "./useSlot-DhC6EPU2.js";
|
|
8
|
+
import { treeItemRootStyle as Ke, treeContentStyle as Fe, iconStyle as Ie, arrowContainerStyle as je, expandedGroupStyle as qe } from "./components/TreeView/style.es.js";
|
|
9
|
+
import { getIconComponent as Ue } from "./components/TreeView/utils.es.js";
|
|
10
|
+
import { F as Ce, G as Te, w as _e, H as we, P as i, n as oe } from "./identifier-BJqC6EXa.js";
|
|
11
11
|
import { a as ve } from "./TransitionGroupContext-DbLioz_6.js";
|
|
12
|
-
import { u as
|
|
13
|
-
import { u as
|
|
14
|
-
import { u as
|
|
15
|
-
import { m as
|
|
16
|
-
import { T as
|
|
17
|
-
import { u as
|
|
18
|
-
import { e as
|
|
19
|
-
import { C as
|
|
20
|
-
import { u as
|
|
21
|
-
import { u as
|
|
22
|
-
|
|
23
|
-
|
|
12
|
+
import { u as We } from "./useThemeProps-CxMYNgfp.js";
|
|
13
|
+
import { u as Ge, s as V, c as Pe, f as le } from "./DefaultPropsProvider-Bg-6nX-u.js";
|
|
14
|
+
import { u as Xe } from "./useTheme-Dt-VOIyT.js";
|
|
15
|
+
import { m as Ye } from "./memoTheme-D_Qap2ZW.js";
|
|
16
|
+
import { T as Je, g as he } from "./utils-qwVZGgXz.js";
|
|
17
|
+
import { u as Qe } from "./useTimeout-CrCYVizI.js";
|
|
18
|
+
import { e as Ze } from "./elementTypeAcceptingRef-COpcDx5q.js";
|
|
19
|
+
import { C as He } from "./Checkbox-DMnS1qrF.js";
|
|
20
|
+
import { u as et } from "./unsupportedProp-BuVD30Gh.js";
|
|
21
|
+
import { u as F } from "./useSlotProps-Bos9nSja.js";
|
|
22
|
+
import { B as tt } from "./Box-2IEW8Uij.js";
|
|
23
|
+
function ot(e) {
|
|
24
|
+
return Te("MuiCollapse", e);
|
|
24
25
|
}
|
|
25
|
-
const
|
|
26
|
+
const Jt = Ce("MuiCollapse", ["root", "horizontal", "vertical", "entered", "hidden", "wrapper", "wrapperInner"]), nt = (e) => {
|
|
26
27
|
const {
|
|
27
28
|
orientation: t,
|
|
28
29
|
classes: o
|
|
@@ -33,8 +34,8 @@ const Xt = Ce("MuiCollapse", ["root", "horizontal", "vertical", "entered", "hidd
|
|
|
33
34
|
wrapper: ["wrapper", `${t}`],
|
|
34
35
|
wrapperInner: ["wrapperInner", `${t}`]
|
|
35
36
|
};
|
|
36
|
-
return Pe(s,
|
|
37
|
-
},
|
|
37
|
+
return Pe(s, ot, o);
|
|
38
|
+
}, rt = V("div", {
|
|
38
39
|
name: "MuiCollapse",
|
|
39
40
|
slot: "Root",
|
|
40
41
|
overridesResolver: (e, t) => {
|
|
@@ -43,7 +44,7 @@ const Xt = Ce("MuiCollapse", ["root", "horizontal", "vertical", "entered", "hidd
|
|
|
43
44
|
} = e;
|
|
44
45
|
return [t.root, t[o.orientation], o.state === "entered" && t.entered, o.state === "exited" && !o.in && o.collapsedSize === "0px" && t.hidden];
|
|
45
46
|
}
|
|
46
|
-
})(
|
|
47
|
+
})(Ye(({
|
|
47
48
|
theme: e
|
|
48
49
|
}) => ({
|
|
49
50
|
height: 0,
|
|
@@ -82,7 +83,7 @@ const Xt = Ce("MuiCollapse", ["root", "horizontal", "vertical", "entered", "hidd
|
|
|
82
83
|
visibility: "hidden"
|
|
83
84
|
}
|
|
84
85
|
}]
|
|
85
|
-
}))),
|
|
86
|
+
}))), it = V("div", {
|
|
86
87
|
name: "MuiCollapse",
|
|
87
88
|
slot: "Wrapper",
|
|
88
89
|
overridesResolver: (e, t) => t.wrapper
|
|
@@ -99,7 +100,7 @@ const Xt = Ce("MuiCollapse", ["root", "horizontal", "vertical", "entered", "hidd
|
|
|
99
100
|
height: "100%"
|
|
100
101
|
}
|
|
101
102
|
}]
|
|
102
|
-
}),
|
|
103
|
+
}), st = V("div", {
|
|
103
104
|
name: "MuiCollapse",
|
|
104
105
|
slot: "WrapperInner",
|
|
105
106
|
overridesResolver: (e, t) => t.wrapperInner
|
|
@@ -115,7 +116,7 @@ const Xt = Ce("MuiCollapse", ["root", "horizontal", "vertical", "entered", "hidd
|
|
|
115
116
|
}
|
|
116
117
|
}]
|
|
117
118
|
}), se = /* @__PURE__ */ R.forwardRef(function(t, o) {
|
|
118
|
-
const s =
|
|
119
|
+
const s = Ge({
|
|
119
120
|
props: t,
|
|
120
121
|
name: "MuiCollapse"
|
|
121
122
|
}), {
|
|
@@ -123,7 +124,7 @@ const Xt = Ce("MuiCollapse", ["root", "horizontal", "vertical", "entered", "hidd
|
|
|
123
124
|
children: d,
|
|
124
125
|
className: g,
|
|
125
126
|
collapsedSize: l = "0px",
|
|
126
|
-
component:
|
|
127
|
+
component: f,
|
|
127
128
|
easing: c,
|
|
128
129
|
in: h,
|
|
129
130
|
onEnter: b,
|
|
@@ -131,64 +132,64 @@ const Xt = Ce("MuiCollapse", ["root", "horizontal", "vertical", "entered", "hidd
|
|
|
131
132
|
onEntering: r,
|
|
132
133
|
onExit: y,
|
|
133
134
|
onExited: S,
|
|
134
|
-
onExiting:
|
|
135
|
-
orientation:
|
|
135
|
+
onExiting: O,
|
|
136
|
+
orientation: j = "vertical",
|
|
136
137
|
style: _,
|
|
137
|
-
timeout:
|
|
138
|
+
timeout: w = _e.standard,
|
|
138
139
|
// eslint-disable-next-line react/prop-types
|
|
139
|
-
TransitionComponent: E =
|
|
140
|
+
TransitionComponent: E = Je,
|
|
140
141
|
...P
|
|
141
|
-
} = s,
|
|
142
|
+
} = s, T = {
|
|
142
143
|
...s,
|
|
143
|
-
orientation:
|
|
144
|
+
orientation: j,
|
|
144
145
|
collapsedSize: l
|
|
145
|
-
},
|
|
146
|
+
}, D = nt(T), W = Xe(), Y = Qe(), M = R.useRef(null), q = R.useRef(), U = typeof l == "number" ? `${l}px` : l, k = j === "horizontal", z = k ? "width" : "height", B = R.useRef(null), H = ce(o, B), A = (I) => (L) => {
|
|
146
147
|
if (I) {
|
|
147
|
-
const
|
|
148
|
-
|
|
148
|
+
const N = B.current;
|
|
149
|
+
L === void 0 ? I(N) : I(N, L);
|
|
149
150
|
}
|
|
150
|
-
},
|
|
151
|
-
|
|
152
|
-
}), ee =
|
|
153
|
-
const
|
|
154
|
-
|
|
151
|
+
}, G = () => M.current ? M.current[k ? "clientWidth" : "clientHeight"] : 0, J = A((I, L) => {
|
|
152
|
+
M.current && k && (M.current.style.position = "absolute"), I.style[z] = U, b && b(I, L);
|
|
153
|
+
}), ee = A((I, L) => {
|
|
154
|
+
const N = G();
|
|
155
|
+
M.current && k && (M.current.style.position = "");
|
|
155
156
|
const {
|
|
156
157
|
duration: Z,
|
|
157
158
|
easing: a
|
|
158
|
-
} =
|
|
159
|
+
} = he({
|
|
159
160
|
style: _,
|
|
160
|
-
timeout:
|
|
161
|
+
timeout: w,
|
|
161
162
|
easing: c
|
|
162
163
|
}, {
|
|
163
164
|
mode: "enter"
|
|
164
165
|
});
|
|
165
|
-
if (
|
|
166
|
-
const n =
|
|
167
|
-
I.style.transitionDuration = `${n}ms`,
|
|
166
|
+
if (w === "auto") {
|
|
167
|
+
const n = W.transitions.getAutoHeightDuration(N);
|
|
168
|
+
I.style.transitionDuration = `${n}ms`, q.current = n;
|
|
168
169
|
} else
|
|
169
170
|
I.style.transitionDuration = typeof Z == "string" ? Z : `${Z}ms`;
|
|
170
|
-
I.style[z] = `${
|
|
171
|
-
}), Q =
|
|
172
|
-
I.style[z] = "auto", C && C(I,
|
|
173
|
-
}), re =
|
|
174
|
-
I.style[z] = `${
|
|
175
|
-
}), ue =
|
|
176
|
-
const
|
|
177
|
-
duration:
|
|
171
|
+
I.style[z] = `${N}px`, I.style.transitionTimingFunction = a, r && r(I, L);
|
|
172
|
+
}), Q = A((I, L) => {
|
|
173
|
+
I.style[z] = "auto", C && C(I, L);
|
|
174
|
+
}), re = A((I) => {
|
|
175
|
+
I.style[z] = `${G()}px`, y && y(I);
|
|
176
|
+
}), ue = A(S), ge = A((I) => {
|
|
177
|
+
const L = G(), {
|
|
178
|
+
duration: N,
|
|
178
179
|
easing: Z
|
|
179
|
-
} =
|
|
180
|
+
} = he({
|
|
180
181
|
style: _,
|
|
181
|
-
timeout:
|
|
182
|
+
timeout: w,
|
|
182
183
|
easing: c
|
|
183
184
|
}, {
|
|
184
185
|
mode: "exit"
|
|
185
186
|
});
|
|
186
|
-
if (
|
|
187
|
-
const a =
|
|
188
|
-
I.style.transitionDuration = `${a}ms`,
|
|
187
|
+
if (w === "auto") {
|
|
188
|
+
const a = W.transitions.getAutoHeightDuration(L);
|
|
189
|
+
I.style.transitionDuration = `${a}ms`, q.current = a;
|
|
189
190
|
} else
|
|
190
|
-
I.style.transitionDuration = typeof
|
|
191
|
-
I.style[z] =
|
|
191
|
+
I.style.transitionDuration = typeof N == "string" ? N : `${N}ms`;
|
|
192
|
+
I.style[z] = U, I.style.transitionTimingFunction = Z, O && O(I);
|
|
192
193
|
});
|
|
193
194
|
return /* @__PURE__ */ x(E, {
|
|
194
195
|
in: h,
|
|
@@ -199,43 +200,43 @@ const Xt = Ce("MuiCollapse", ["root", "horizontal", "vertical", "entered", "hidd
|
|
|
199
200
|
onExited: ue,
|
|
200
201
|
onExiting: ge,
|
|
201
202
|
addEndListener: (I) => {
|
|
202
|
-
|
|
203
|
+
w === "auto" && Y.start(q.current || 0, I), p && p(B.current, I);
|
|
203
204
|
},
|
|
204
|
-
nodeRef:
|
|
205
|
-
timeout:
|
|
205
|
+
nodeRef: B,
|
|
206
|
+
timeout: w === "auto" ? null : w,
|
|
206
207
|
...P,
|
|
207
208
|
children: (I, {
|
|
208
|
-
ownerState:
|
|
209
|
-
...
|
|
210
|
-
}) => /* @__PURE__ */ x(
|
|
211
|
-
as:
|
|
212
|
-
className:
|
|
213
|
-
entered:
|
|
214
|
-
exited: !h &&
|
|
209
|
+
ownerState: L,
|
|
210
|
+
...N
|
|
211
|
+
}) => /* @__PURE__ */ x(rt, {
|
|
212
|
+
as: f,
|
|
213
|
+
className: we(D.root, g, {
|
|
214
|
+
entered: D.entered,
|
|
215
|
+
exited: !h && U === "0px" && D.hidden
|
|
215
216
|
}[I]),
|
|
216
217
|
style: {
|
|
217
|
-
[
|
|
218
|
+
[k ? "minWidth" : "minHeight"]: U,
|
|
218
219
|
..._
|
|
219
220
|
},
|
|
220
221
|
ref: H,
|
|
221
222
|
ownerState: {
|
|
222
|
-
...
|
|
223
|
+
...T,
|
|
223
224
|
state: I
|
|
224
225
|
},
|
|
225
|
-
...
|
|
226
|
-
children: /* @__PURE__ */ x(
|
|
226
|
+
...N,
|
|
227
|
+
children: /* @__PURE__ */ x(it, {
|
|
227
228
|
ownerState: {
|
|
228
|
-
...
|
|
229
|
+
...T,
|
|
229
230
|
state: I
|
|
230
231
|
},
|
|
231
|
-
className:
|
|
232
|
-
ref:
|
|
233
|
-
children: /* @__PURE__ */ x(
|
|
232
|
+
className: D.wrapper,
|
|
233
|
+
ref: M,
|
|
234
|
+
children: /* @__PURE__ */ x(st, {
|
|
234
235
|
ownerState: {
|
|
235
|
-
...
|
|
236
|
+
...T,
|
|
236
237
|
state: I
|
|
237
238
|
},
|
|
238
|
-
className:
|
|
239
|
+
className: D.wrapperInner,
|
|
239
240
|
children: d
|
|
240
241
|
})
|
|
241
242
|
})
|
|
@@ -274,7 +275,7 @@ process.env.NODE_ENV !== "production" && (se.propTypes = {
|
|
|
274
275
|
* The component used for the root node.
|
|
275
276
|
* Either a string to use a HTML element or a component.
|
|
276
277
|
*/
|
|
277
|
-
component:
|
|
278
|
+
component: Ze,
|
|
278
279
|
/**
|
|
279
280
|
* The transition timing function.
|
|
280
281
|
* You may specify a single easing or a object containing enter and exit values.
|
|
@@ -338,23 +339,16 @@ process.env.NODE_ENV !== "production" && (se.propTypes = {
|
|
|
338
339
|
})])
|
|
339
340
|
});
|
|
340
341
|
se && (se.muiSupportAuto = !0);
|
|
341
|
-
const
|
|
342
|
+
const at = ae(/* @__PURE__ */ x("path", {
|
|
342
343
|
d: "M7.41 8.59 12 13.17l4.59-4.58L18 10l-6 6-6-6z"
|
|
343
|
-
}), "KeyboardArrowDown"),
|
|
344
|
+
}), "KeyboardArrowDown"), lt = ae(/* @__PURE__ */ x("path", {
|
|
344
345
|
d: "M8.59 16.59 13.17 12 8.59 7.41 10 6l6 6-6 6z"
|
|
345
|
-
}), "KeyboardArrowRight")
|
|
346
|
-
function
|
|
347
|
-
|
|
348
|
-
return;
|
|
349
|
-
const o = Array.isArray(e) ? e.join(`
|
|
350
|
-
`) : e;
|
|
351
|
-
he.has(o) || (he.add(o), t === "error" ? console.error(o) : console.warn(o));
|
|
352
|
-
}
|
|
353
|
-
function lt(e) {
|
|
354
|
-
return Ue;
|
|
346
|
+
}), "KeyboardArrowRight");
|
|
347
|
+
function dt(e) {
|
|
348
|
+
return We;
|
|
355
349
|
}
|
|
356
350
|
let ye = 0;
|
|
357
|
-
const
|
|
351
|
+
const Qt = () => (ye += 1, `mui-tree-view-${ye}`), ct = ({
|
|
358
352
|
id: e,
|
|
359
353
|
treeId: t = "",
|
|
360
354
|
itemId: o
|
|
@@ -374,7 +368,7 @@ const Se = (e, t) => {
|
|
|
374
368
|
o -= 1;
|
|
375
369
|
if (o !== -1)
|
|
376
370
|
return t[o];
|
|
377
|
-
},
|
|
371
|
+
}, pt = (e, t) => {
|
|
378
372
|
const o = e.getItemMeta(t), s = e.getItemOrderedChildrenIds(o.parentId), p = e.getItemIndex(t);
|
|
379
373
|
if (p === 0)
|
|
380
374
|
return o.parentId;
|
|
@@ -382,12 +376,12 @@ const Se = (e, t) => {
|
|
|
382
376
|
for (; !e.isItemNavigable(s[d]) && d >= 0; )
|
|
383
377
|
d -= 1;
|
|
384
378
|
if (d === -1)
|
|
385
|
-
return o.parentId == null ? null :
|
|
379
|
+
return o.parentId == null ? null : pt(e, o.parentId);
|
|
386
380
|
let g = s[d], l = Se(e, e.getItemOrderedChildrenIds(g));
|
|
387
381
|
for (; e.isItemExpanded(g) && l != null; )
|
|
388
382
|
g = l, l = e.getItemOrderedChildrenIds(g).find(e.isItemNavigable);
|
|
389
383
|
return g;
|
|
390
|
-
},
|
|
384
|
+
}, ut = (e, t) => {
|
|
391
385
|
if (e.isItemExpanded(t)) {
|
|
392
386
|
const s = e.getItemOrderedChildrenIds(t).find(e.isItemNavigable);
|
|
393
387
|
if (s != null)
|
|
@@ -406,7 +400,7 @@ const Se = (e, t) => {
|
|
|
406
400
|
o = e.getItemMeta(o.parentId);
|
|
407
401
|
}
|
|
408
402
|
return null;
|
|
409
|
-
},
|
|
403
|
+
}, Zt = (e) => {
|
|
410
404
|
let t = null;
|
|
411
405
|
for (; t == null || e.isItemExpanded(t); ) {
|
|
412
406
|
const o = e.getItemOrderedChildrenIds(t), s = Se(e, o);
|
|
@@ -415,23 +409,23 @@ const Se = (e, t) => {
|
|
|
415
409
|
t = s;
|
|
416
410
|
}
|
|
417
411
|
return t;
|
|
418
|
-
},
|
|
412
|
+
}, gt = (e) => e.getItemOrderedChildrenIds(null).find(e.isItemNavigable), mt = (e, t, o) => {
|
|
419
413
|
if (t === o)
|
|
420
414
|
return [t, o];
|
|
421
415
|
const s = e.getItemMeta(t), p = e.getItemMeta(o);
|
|
422
416
|
if (s.parentId === p.id || p.parentId === s.id)
|
|
423
417
|
return p.parentId === s.id ? [s.id, p.id] : [p.id, s.id];
|
|
424
418
|
const d = [s.id], g = [p.id];
|
|
425
|
-
let l = s.parentId,
|
|
419
|
+
let l = s.parentId, f = p.parentId, c = g.indexOf(l) !== -1, h = d.indexOf(f) !== -1, b = !0, C = !0;
|
|
426
420
|
for (; !h && !c; )
|
|
427
|
-
b && (d.push(l), c = g.indexOf(l) !== -1, b = l !== null, !c && b && (l = e.getItemMeta(l).parentId)), C && !c && (g.push(
|
|
428
|
-
const r = c ? l :
|
|
429
|
-
return y.indexOf(S) < y.indexOf(
|
|
430
|
-
},
|
|
431
|
-
const s = (
|
|
432
|
-
if (e.isItemExpandable(
|
|
433
|
-
return e.getItemOrderedChildrenIds(
|
|
434
|
-
let c = e.getItemMeta(
|
|
421
|
+
b && (d.push(l), c = g.indexOf(l) !== -1, b = l !== null, !c && b && (l = e.getItemMeta(l).parentId)), C && !c && (g.push(f), h = d.indexOf(f) !== -1, C = f !== null, !h && C && (f = e.getItemMeta(f).parentId));
|
|
422
|
+
const r = c ? l : f, y = e.getItemOrderedChildrenIds(r), S = d[d.indexOf(r) - 1], O = g[g.indexOf(r) - 1];
|
|
423
|
+
return y.indexOf(S) < y.indexOf(O) ? [t, o] : [o, t];
|
|
424
|
+
}, Ht = (e, t, o) => {
|
|
425
|
+
const s = (f) => {
|
|
426
|
+
if (e.isItemExpandable(f) && e.isItemExpanded(f))
|
|
427
|
+
return e.getItemOrderedChildrenIds(f)[0];
|
|
428
|
+
let c = e.getItemMeta(f);
|
|
435
429
|
for (; c != null; ) {
|
|
436
430
|
const h = e.getItemOrderedChildrenIds(c.parentId), b = e.getItemIndex(c.id);
|
|
437
431
|
if (b < h.length - 1)
|
|
@@ -439,16 +433,16 @@ const Se = (e, t) => {
|
|
|
439
433
|
c = e.getItemMeta(c.parentId);
|
|
440
434
|
}
|
|
441
435
|
throw new Error("Invalid range");
|
|
442
|
-
}, [p, d] =
|
|
436
|
+
}, [p, d] = mt(e, t, o), g = [p];
|
|
443
437
|
let l = p;
|
|
444
438
|
for (; l !== d; )
|
|
445
439
|
l = s(l), e.isItemDisabled(l) || g.push(l);
|
|
446
440
|
return g;
|
|
447
|
-
},
|
|
448
|
-
let t =
|
|
441
|
+
}, eo = (e) => {
|
|
442
|
+
let t = gt(e);
|
|
449
443
|
const o = [];
|
|
450
444
|
for (; t != null; )
|
|
451
|
-
o.push(t), t =
|
|
445
|
+
o.push(t), t = ut(e, t);
|
|
452
446
|
return o;
|
|
453
447
|
}, xe = (e, t) => t !== e.closest('*[role="treeitem"]'), de = (e, t) => e.getAvailablePlugins().has(t), ft = ({
|
|
454
448
|
props: e
|
|
@@ -465,7 +459,7 @@ const Se = (e, t) => {
|
|
|
465
459
|
propsEnhancers: {
|
|
466
460
|
labelInput: ({
|
|
467
461
|
externalEventHandlers: l,
|
|
468
|
-
interactions:
|
|
462
|
+
interactions: f
|
|
469
463
|
}) => t.isItemEditable(s) ? {
|
|
470
464
|
value: p ?? "",
|
|
471
465
|
"data-element": "labelInput",
|
|
@@ -478,29 +472,29 @@ const Se = (e, t) => {
|
|
|
478
472
|
if ((S = l.onKeyDown) == null || S.call(l, r), r.defaultMuiPrevented)
|
|
479
473
|
return;
|
|
480
474
|
const y = r.target;
|
|
481
|
-
r.key === "Enter" && y.value ?
|
|
475
|
+
r.key === "Enter" && y.value ? f.handleSaveItemLabel(r, y.value) : r.key === "Escape" && f.handleCancelItemLabelEditing(r);
|
|
482
476
|
},
|
|
483
477
|
onBlur: (r) => {
|
|
484
478
|
var y;
|
|
485
|
-
(y = l.onBlur) == null || y.call(l, r), !r.defaultMuiPrevented && r.target.value &&
|
|
479
|
+
(y = l.onBlur) == null || y.call(l, r), !r.defaultMuiPrevented && r.target.value && f.handleSaveItemLabel(r, r.target.value);
|
|
486
480
|
},
|
|
487
481
|
autoFocus: !0,
|
|
488
482
|
type: "text"
|
|
489
483
|
} : {}
|
|
490
484
|
}
|
|
491
485
|
};
|
|
492
|
-
},
|
|
486
|
+
}, X = ({
|
|
493
487
|
instance: e,
|
|
494
488
|
state: t,
|
|
495
489
|
setState: o,
|
|
496
490
|
params: s
|
|
497
491
|
}) => {
|
|
498
492
|
const p = R.useRef(t.editedItemId), d = (b) => p.current === b, g = (b) => {
|
|
499
|
-
o((C) =>
|
|
493
|
+
o((C) => m({}, C, {
|
|
500
494
|
editedItemId: b
|
|
501
495
|
})), p.current = b;
|
|
502
|
-
}, l = (b) => b === t.editedItemId,
|
|
503
|
-
if (b == null || !
|
|
496
|
+
}, l = (b) => b === t.editedItemId, f = !!s.isItemEditable, c = (b) => {
|
|
497
|
+
if (b == null || !f)
|
|
504
498
|
return !1;
|
|
505
499
|
const C = e.getItem(b);
|
|
506
500
|
return C ? typeof s.isItemEditable == "function" ? s.isItemEditable(C) : !!s.isItemEditable : !1;
|
|
@@ -510,10 +504,10 @@ const Se = (e, t) => {
|
|
|
510
504
|
`));
|
|
511
505
|
o((r) => {
|
|
512
506
|
const y = r.items.itemMetaMap[b];
|
|
513
|
-
return y.label !== C ?
|
|
514
|
-
items:
|
|
515
|
-
itemMetaMap:
|
|
516
|
-
[b]:
|
|
507
|
+
return y.label !== C ? m({}, r, {
|
|
508
|
+
items: m({}, r.items, {
|
|
509
|
+
itemMetaMap: m({}, r.items.itemMetaMap, {
|
|
510
|
+
[b]: m({}, y, {
|
|
517
511
|
label: C
|
|
518
512
|
})
|
|
519
513
|
})
|
|
@@ -527,7 +521,7 @@ const Se = (e, t) => {
|
|
|
527
521
|
isItemBeingEdited: l,
|
|
528
522
|
updateItemLabel: h,
|
|
529
523
|
isItemEditable: c,
|
|
530
|
-
isTreeViewEditable:
|
|
524
|
+
isTreeViewEditable: f,
|
|
531
525
|
isItemBeingEditedRef: d
|
|
532
526
|
},
|
|
533
527
|
publicAPI: {
|
|
@@ -535,24 +529,24 @@ const Se = (e, t) => {
|
|
|
535
529
|
}
|
|
536
530
|
};
|
|
537
531
|
};
|
|
538
|
-
|
|
539
|
-
|
|
532
|
+
X.itemPlugin = ft;
|
|
533
|
+
X.getDefaultizedParams = ({
|
|
540
534
|
params: e,
|
|
541
535
|
experimentalFeatures: t
|
|
542
536
|
}) => {
|
|
543
537
|
const o = t == null ? void 0 : t.labelEditing;
|
|
544
|
-
return process.env.NODE_ENV !== "production" && e.isItemEditable && !o &&
|
|
538
|
+
return process.env.NODE_ENV !== "production" && e.isItemEditable && !o && Be(["MUI X: The label editing feature requires the `labelEditing` experimental feature to be enabled.", "You can do it by passing `experimentalFeatures={{ labelEditing: true}}` to the Rich Tree View Pro component.", "Check the documentation for more details: https://mui.com/x/react-tree-view/rich-tree-view/editing/"]), m({}, e, {
|
|
545
539
|
isItemEditable: o ? e.isItemEditable ?? !1 : !1
|
|
546
540
|
});
|
|
547
541
|
};
|
|
548
|
-
|
|
542
|
+
X.getInitialState = () => ({
|
|
549
543
|
editedItemId: null
|
|
550
544
|
});
|
|
551
|
-
|
|
545
|
+
X.params = {
|
|
552
546
|
onItemLabelChange: !0,
|
|
553
547
|
isItemEditable: !0
|
|
554
548
|
};
|
|
555
|
-
const
|
|
549
|
+
const bt = V("div", {
|
|
556
550
|
name: "MuiTreeItem2DragAndDropOverlay",
|
|
557
551
|
slot: "Root",
|
|
558
552
|
overridesResolver: (e, t) => t.root,
|
|
@@ -603,7 +597,7 @@ const mt = A("div", {
|
|
|
603
597
|
}]
|
|
604
598
|
}));
|
|
605
599
|
function Oe(e) {
|
|
606
|
-
return e.action == null ? null : /* @__PURE__ */ x(
|
|
600
|
+
return e.action == null ? null : /* @__PURE__ */ x(bt, m({}, e));
|
|
607
601
|
}
|
|
608
602
|
process.env.NODE_ENV !== "production" && (Oe.propTypes = {
|
|
609
603
|
// ----------------------------- Warning --------------------------------
|
|
@@ -613,13 +607,13 @@ process.env.NODE_ENV !== "production" && (Oe.propTypes = {
|
|
|
613
607
|
action: i.oneOf(["make-child", "move-to-parent", "reorder-above", "reorder-below"]),
|
|
614
608
|
style: i.object
|
|
615
609
|
});
|
|
616
|
-
const
|
|
610
|
+
const It = V("input", {
|
|
617
611
|
name: "MuiTreeItem2",
|
|
618
612
|
slot: "LabelInput",
|
|
619
613
|
overridesResolver: (e, t) => t.labelInput
|
|
620
614
|
})(({
|
|
621
615
|
theme: e
|
|
622
|
-
}) =>
|
|
616
|
+
}) => m({}, e.typography.body1, {
|
|
623
617
|
width: "100%",
|
|
624
618
|
backgroundColor: e.palette.background.paper,
|
|
625
619
|
borderRadius: e.shape.borderRadius,
|
|
@@ -630,12 +624,12 @@ const bt = A("input", {
|
|
|
630
624
|
outline: `1px solid ${e.palette.primary.main}`
|
|
631
625
|
}
|
|
632
626
|
}));
|
|
633
|
-
function
|
|
634
|
-
return
|
|
627
|
+
function ht(e) {
|
|
628
|
+
return Te("MuiTreeItem", e);
|
|
635
629
|
}
|
|
636
|
-
const
|
|
630
|
+
const to = Ce("MuiTreeItem", ["root", "groupTransition", "content", "expanded", "selected", "focused", "disabled", "iconContainer", "label", "checkbox", "labelInput", "editable", "editing", "dragAndDropOverlay"]), yt = ae(/* @__PURE__ */ x("path", {
|
|
637
631
|
d: "M10 6 8.59 7.41 13.17 12l-4.58 4.59L10 18l6-6z"
|
|
638
|
-
}), "TreeViewExpandIcon"),
|
|
632
|
+
}), "TreeViewExpandIcon"), xt = ae(/* @__PURE__ */ x("path", {
|
|
639
633
|
d: "M16.59 8.59 12 13.17 7.41 8.59 6 10l6 6 6-6z"
|
|
640
634
|
}), "TreeViewCollapseIcon");
|
|
641
635
|
function pe(e) {
|
|
@@ -660,7 +654,7 @@ pe.propTypes = {
|
|
|
660
654
|
children: i.node,
|
|
661
655
|
itemId: i.string.isRequired
|
|
662
656
|
};
|
|
663
|
-
const De = (e) => Array.isArray(e) ? e.length > 0 && e.some(De) : !!e,
|
|
657
|
+
const De = (e) => Array.isArray(e) ? e.length > 0 && e.some(De) : !!e, Ct = ({
|
|
664
658
|
itemId: e,
|
|
665
659
|
children: t
|
|
666
660
|
}) => {
|
|
@@ -696,7 +690,7 @@ const De = (e) => Array.isArray(e) ? e.length > 0 && e.some(De) : !!e, xt = ({
|
|
|
696
690
|
itemId: e,
|
|
697
691
|
shouldBeSelected: !0
|
|
698
692
|
});
|
|
699
|
-
},
|
|
693
|
+
}, f = (r) => {
|
|
700
694
|
const y = r.nativeEvent.shiftKey;
|
|
701
695
|
s && y ? o.expandSelectionRange(r, e) : o.selectItem({
|
|
702
696
|
event: r,
|
|
@@ -705,25 +699,25 @@ const De = (e) => Array.isArray(e) ? e.length > 0 && e.some(De) : !!e, xt = ({
|
|
|
705
699
|
shouldBeSelected: r.target.checked
|
|
706
700
|
});
|
|
707
701
|
}, c = () => {
|
|
708
|
-
de(o,
|
|
702
|
+
de(o, X) && o.isItemEditable(e) && (o.isItemBeingEdited(e) ? o.setEditedItemId(null) : o.setEditedItemId(e));
|
|
709
703
|
};
|
|
710
704
|
return {
|
|
711
705
|
interactions: {
|
|
712
706
|
handleExpansion: g,
|
|
713
707
|
handleSelection: l,
|
|
714
|
-
handleCheckboxSelection:
|
|
708
|
+
handleCheckboxSelection: f,
|
|
715
709
|
toggleItemEditing: c,
|
|
716
710
|
handleSaveItemLabel: (r, y) => {
|
|
717
|
-
de(o,
|
|
711
|
+
de(o, X) && o.isItemBeingEditedRef(e) && (o.updateItemLabel(e, y), c(), o.focusItem(r, e));
|
|
718
712
|
},
|
|
719
713
|
handleCancelItemLabelEditing: (r) => {
|
|
720
|
-
de(o,
|
|
714
|
+
de(o, X) && o.isItemBeingEditedRef(e) && (c(), o.focusItem(r, e));
|
|
721
715
|
}
|
|
722
716
|
},
|
|
723
717
|
status: d,
|
|
724
718
|
publicAPI: p
|
|
725
719
|
};
|
|
726
|
-
},
|
|
720
|
+
}, Tt = (e) => {
|
|
727
721
|
const {
|
|
728
722
|
runItemPlugins: t,
|
|
729
723
|
items: {
|
|
@@ -738,7 +732,7 @@ const De = (e) => Array.isArray(e) ? e.length > 0 && e.some(De) : !!e, xt = ({
|
|
|
738
732
|
expansion: {
|
|
739
733
|
expansionTrigger: l
|
|
740
734
|
},
|
|
741
|
-
treeId:
|
|
735
|
+
treeId: f,
|
|
742
736
|
instance: c,
|
|
743
737
|
publicAPI: h
|
|
744
738
|
} = ne(), b = R.useContext(Re), {
|
|
@@ -746,24 +740,24 @@ const De = (e) => Array.isArray(e) ? e.length > 0 && e.some(De) : !!e, xt = ({
|
|
|
746
740
|
itemId: r,
|
|
747
741
|
label: y,
|
|
748
742
|
children: S,
|
|
749
|
-
rootRef:
|
|
743
|
+
rootRef: O
|
|
750
744
|
} = e, {
|
|
751
|
-
rootRef:
|
|
745
|
+
rootRef: j,
|
|
752
746
|
contentRef: _,
|
|
753
|
-
propsEnhancers:
|
|
747
|
+
propsEnhancers: w
|
|
754
748
|
} = t(e), {
|
|
755
749
|
interactions: E,
|
|
756
750
|
status: P
|
|
757
|
-
} =
|
|
751
|
+
} = Ct({
|
|
758
752
|
itemId: r,
|
|
759
753
|
children: S
|
|
760
|
-
}),
|
|
754
|
+
}), T = R.useRef(null), D = R.useRef(null), W = ce(O, j, T), Y = ce(_, D), M = R.useRef(null), q = ct({
|
|
761
755
|
itemId: r,
|
|
762
|
-
treeId:
|
|
756
|
+
treeId: f,
|
|
763
757
|
id: C
|
|
764
|
-
}),
|
|
765
|
-
rootRefObject:
|
|
766
|
-
contentRefObject:
|
|
758
|
+
}), U = c.canItemBeTabbed(r) ? 0 : -1, k = {
|
|
759
|
+
rootRefObject: T,
|
|
760
|
+
contentRefObject: D,
|
|
767
761
|
interactions: E
|
|
768
762
|
}, z = (a) => (n) => {
|
|
769
763
|
var v;
|
|
@@ -771,23 +765,23 @@ const De = (e) => Array.isArray(e) ? e.length > 0 && e.some(De) : !!e, xt = ({
|
|
|
771
765
|
return;
|
|
772
766
|
const u = !P.disabled || s;
|
|
773
767
|
!P.focused && u && n.currentTarget === n.target && c.focusItem(n, r);
|
|
774
|
-
},
|
|
775
|
-
var v,
|
|
768
|
+
}, B = (a) => (n) => {
|
|
769
|
+
var v, $, te, me, fe;
|
|
776
770
|
if ((v = a.onBlur) == null || v.call(a, n), n.defaultMuiPrevented)
|
|
777
771
|
return;
|
|
778
772
|
const u = c.getItemDOMElement(r);
|
|
779
773
|
P.editing || // we can exit the editing state by clicking outside the input (within the Tree Item) or by pressing Enter or Escape -> we don't want to remove the focused item from the state in these cases
|
|
780
774
|
// we can also exit the editing state by clicking on the root itself -> want to remove the focused item from the state in this case
|
|
781
|
-
n.relatedTarget && xe(n.relatedTarget, u) && (n.target && ((te = (
|
|
775
|
+
n.relatedTarget && xe(n.relatedTarget, u) && (n.target && ((te = ($ = n.target) == null ? void 0 : $.dataset) == null ? void 0 : te.element) === "labelInput" && xe(n.target, u) || ((fe = (me = n.relatedTarget) == null ? void 0 : me.dataset) == null ? void 0 : fe.element) === "labelInput") || c.removeFocusedItem();
|
|
782
776
|
}, H = (a) => (n) => {
|
|
783
|
-
var u, v,
|
|
784
|
-
(u = a.onKeyDown) == null || u.call(a, n), !(n.defaultMuiPrevented || ((
|
|
785
|
-
},
|
|
777
|
+
var u, v, $;
|
|
778
|
+
(u = a.onKeyDown) == null || u.call(a, n), !(n.defaultMuiPrevented || (($ = (v = n.target) == null ? void 0 : v.dataset) == null ? void 0 : $.element) === "labelInput") && c.handleItemKeyDown(n, r);
|
|
779
|
+
}, A = (a) => (n) => {
|
|
786
780
|
var u;
|
|
787
781
|
(u = a.onDoubleClick) == null || u.call(a, n), !n.defaultMuiPrevented && E.toggleItemEditing();
|
|
788
|
-
},
|
|
782
|
+
}, G = (a) => (n) => {
|
|
789
783
|
var u, v;
|
|
790
|
-
(u = a.onClick) == null || u.call(a, n), o == null || o(n, r), !(n.defaultMuiPrevented || (v =
|
|
784
|
+
(u = a.onClick) == null || u.call(a, n), o == null || o(n, r), !(n.defaultMuiPrevented || (v = M.current) != null && v.contains(n.target)) && (l === "content" && E.handleExpansion(n), g || E.handleSelection(n));
|
|
791
785
|
}, J = (a) => (n) => {
|
|
792
786
|
var u;
|
|
793
787
|
(u = a.onMouseDown) == null || u.call(a, n), !n.defaultMuiPrevented && (n.shiftKey || n.ctrlKey || n.metaKey || P.disabled) && n.preventDefault();
|
|
@@ -801,46 +795,46 @@ const De = (e) => Array.isArray(e) ? e.length > 0 && e.some(De) : !!e, xt = ({
|
|
|
801
795
|
return {
|
|
802
796
|
getRootProps: (a = {}) => {
|
|
803
797
|
var te;
|
|
804
|
-
const n =
|
|
798
|
+
const n = m({}, K(e), K(a));
|
|
805
799
|
let u;
|
|
806
800
|
P.selected ? u = !0 : d || P.disabled ? u = void 0 : u = !1;
|
|
807
|
-
const v =
|
|
808
|
-
ref:
|
|
801
|
+
const v = m({}, n, {
|
|
802
|
+
ref: W,
|
|
809
803
|
role: "treeitem",
|
|
810
|
-
tabIndex:
|
|
811
|
-
id:
|
|
804
|
+
tabIndex: U,
|
|
805
|
+
id: q,
|
|
812
806
|
"aria-expanded": P.expandable ? P.expanded : void 0,
|
|
813
807
|
"aria-selected": u,
|
|
814
808
|
"aria-disabled": P.disabled || void 0
|
|
815
809
|
}, a, {
|
|
816
810
|
onFocus: z(n),
|
|
817
|
-
onBlur:
|
|
811
|
+
onBlur: B(n),
|
|
818
812
|
onKeyDown: H(n)
|
|
819
813
|
});
|
|
820
814
|
p && (v.style = {
|
|
821
815
|
"--TreeView-itemDepth": typeof b == "function" ? b(r) : b
|
|
822
816
|
});
|
|
823
|
-
const
|
|
817
|
+
const $ = ((te = w.root) == null ? void 0 : te.call(w, m({}, k, {
|
|
824
818
|
externalEventHandlers: n
|
|
825
819
|
}))) ?? {};
|
|
826
|
-
return
|
|
820
|
+
return m({}, v, $);
|
|
827
821
|
},
|
|
828
822
|
getContentProps: (a = {}) => {
|
|
829
|
-
var
|
|
830
|
-
const n =
|
|
823
|
+
var $;
|
|
824
|
+
const n = K(a), u = m({}, n, a, {
|
|
831
825
|
ref: Y,
|
|
832
|
-
onClick:
|
|
826
|
+
onClick: G(n),
|
|
833
827
|
onMouseDown: J(n),
|
|
834
828
|
status: P
|
|
835
829
|
});
|
|
836
830
|
p && (u.indentationAtItemLevel = !0);
|
|
837
|
-
const v = ((
|
|
831
|
+
const v = (($ = w.content) == null ? void 0 : $.call(w, m({}, k, {
|
|
838
832
|
externalEventHandlers: n
|
|
839
833
|
}))) ?? {};
|
|
840
|
-
return
|
|
834
|
+
return m({}, u, v);
|
|
841
835
|
},
|
|
842
836
|
getGroupTransitionProps: (a = {}) => {
|
|
843
|
-
const n =
|
|
837
|
+
const n = K(a), u = m({}, n, {
|
|
844
838
|
unmountOnExit: !0,
|
|
845
839
|
component: "ul",
|
|
846
840
|
role: "group",
|
|
@@ -850,16 +844,16 @@ const De = (e) => Array.isArray(e) ? e.length > 0 && e.some(De) : !!e, xt = ({
|
|
|
850
844
|
return p && (u.indentationAtItemLevel = !0), u;
|
|
851
845
|
},
|
|
852
846
|
getIconContainerProps: (a = {}) => {
|
|
853
|
-
const n =
|
|
854
|
-
return
|
|
847
|
+
const n = K(a);
|
|
848
|
+
return m({}, n, a, {
|
|
855
849
|
onClick: Q(n)
|
|
856
850
|
});
|
|
857
851
|
},
|
|
858
852
|
getCheckboxProps: (a = {}) => {
|
|
859
|
-
const n =
|
|
860
|
-
return
|
|
853
|
+
const n = K(a);
|
|
854
|
+
return m({}, n, {
|
|
861
855
|
visible: g,
|
|
862
|
-
ref:
|
|
856
|
+
ref: M,
|
|
863
857
|
checked: P.selected,
|
|
864
858
|
disabled: d || P.disabled,
|
|
865
859
|
tabIndex: -1
|
|
@@ -868,53 +862,53 @@ const De = (e) => Array.isArray(e) ? e.length > 0 && e.some(De) : !!e, xt = ({
|
|
|
868
862
|
});
|
|
869
863
|
},
|
|
870
864
|
getLabelProps: (a = {}) => {
|
|
871
|
-
const n =
|
|
865
|
+
const n = m({}, K(a)), u = m({}, n, {
|
|
872
866
|
children: y
|
|
873
867
|
}, a, {
|
|
874
|
-
onDoubleClick:
|
|
868
|
+
onDoubleClick: A(n)
|
|
875
869
|
});
|
|
876
870
|
return c.isTreeViewEditable && (u.editable = P.editable), u;
|
|
877
871
|
},
|
|
878
872
|
getLabelInputProps: (a = {}) => {
|
|
879
873
|
var v;
|
|
880
|
-
const n =
|
|
881
|
-
rootRefObject:
|
|
882
|
-
contentRefObject:
|
|
874
|
+
const n = K(a), u = ((v = w.labelInput) == null ? void 0 : v.call(w, {
|
|
875
|
+
rootRefObject: T,
|
|
876
|
+
contentRefObject: D,
|
|
883
877
|
externalEventHandlers: n,
|
|
884
878
|
interactions: E
|
|
885
879
|
})) ?? {};
|
|
886
|
-
return
|
|
880
|
+
return m({}, a, u);
|
|
887
881
|
},
|
|
888
882
|
getDragAndDropOverlayProps: (a = {}) => {
|
|
889
883
|
var v;
|
|
890
|
-
const n =
|
|
884
|
+
const n = K(a), u = ((v = w.dragAndDropOverlay) == null ? void 0 : v.call(w, m({}, k, {
|
|
891
885
|
externalEventHandlers: n
|
|
892
886
|
}))) ?? {};
|
|
893
|
-
return
|
|
887
|
+
return m({}, a, u);
|
|
894
888
|
},
|
|
895
|
-
rootRef:
|
|
889
|
+
rootRef: W,
|
|
896
890
|
status: P,
|
|
897
891
|
publicAPI: h
|
|
898
892
|
};
|
|
899
|
-
}, Me =
|
|
893
|
+
}, Me = Tt;
|
|
900
894
|
function ke(e) {
|
|
901
895
|
const {
|
|
902
896
|
slots: t,
|
|
903
897
|
slotProps: o,
|
|
904
898
|
status: s
|
|
905
|
-
} = e, p = ne(), d =
|
|
906
|
-
expandIcon: p.icons.slots.expandIcon ??
|
|
907
|
-
collapseIcon: p.icons.slots.collapseIcon ??
|
|
899
|
+
} = e, p = ne(), d = m({}, p.icons.slots, {
|
|
900
|
+
expandIcon: p.icons.slots.expandIcon ?? yt,
|
|
901
|
+
collapseIcon: p.icons.slots.collapseIcon ?? xt
|
|
908
902
|
}), g = p.icons.slotProps;
|
|
909
903
|
let l;
|
|
910
904
|
t != null && t.icon ? l = "icon" : s.expandable ? s.expanded ? l = "collapseIcon" : l = "expandIcon" : l = "endIcon";
|
|
911
|
-
const
|
|
912
|
-
elementType:
|
|
913
|
-
externalSlotProps: (h) =>
|
|
905
|
+
const f = (t == null ? void 0 : t[l]) ?? d[l], c = F({
|
|
906
|
+
elementType: f,
|
|
907
|
+
externalSlotProps: (h) => m({}, be(g[l], h), be(o == null ? void 0 : o[l], h)),
|
|
914
908
|
// TODO: Add proper ownerState
|
|
915
909
|
ownerState: {}
|
|
916
910
|
});
|
|
917
|
-
return
|
|
911
|
+
return f ? /* @__PURE__ */ x(f, m({}, c)) : null;
|
|
918
912
|
}
|
|
919
913
|
process.env.NODE_ENV !== "production" && (ke.propTypes = {
|
|
920
914
|
// ----------------------------- Warning --------------------------------
|
|
@@ -941,7 +935,7 @@ process.env.NODE_ENV !== "production" && (ke.propTypes = {
|
|
|
941
935
|
selected: i.bool.isRequired
|
|
942
936
|
}).isRequired
|
|
943
937
|
});
|
|
944
|
-
const wt = ["visible"],
|
|
938
|
+
const wt = ["visible"], vt = ["id", "itemId", "label", "disabled", "children", "slots", "slotProps"], Pt = dt(), Le = V("li", {
|
|
945
939
|
name: "MuiTreeItem2",
|
|
946
940
|
slot: "Root",
|
|
947
941
|
overridesResolver: (e, t) => t.root
|
|
@@ -950,7 +944,7 @@ const wt = ["visible"], Tt = ["id", "itemId", "label", "disabled", "children", "
|
|
|
950
944
|
margin: 0,
|
|
951
945
|
padding: 0,
|
|
952
946
|
outline: 0
|
|
953
|
-
}), Ne =
|
|
947
|
+
}), Ne = V("div", {
|
|
954
948
|
name: "MuiTreeItem2",
|
|
955
949
|
slot: "Content",
|
|
956
950
|
overridesResolver: (e, t) => t.content,
|
|
@@ -1020,14 +1014,14 @@ const wt = ["visible"], Tt = ["id", "itemId", "label", "disabled", "children", "
|
|
|
1020
1014
|
backgroundColor: e.vars ? `rgba(${e.vars.palette.primary.mainChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.focusOpacity}))` : oe(e.palette.primary.main, e.palette.action.selectedOpacity + e.palette.action.focusOpacity)
|
|
1021
1015
|
}
|
|
1022
1016
|
}]
|
|
1023
|
-
})), Ae =
|
|
1017
|
+
})), Ae = V("div", {
|
|
1024
1018
|
name: "MuiTreeItem2",
|
|
1025
1019
|
slot: "Label",
|
|
1026
1020
|
overridesResolver: (e, t) => t.label,
|
|
1027
1021
|
shouldForwardProp: (e) => le(e) && e !== "editable"
|
|
1028
1022
|
})(({
|
|
1029
1023
|
theme: e
|
|
1030
|
-
}) =>
|
|
1024
|
+
}) => m({
|
|
1031
1025
|
width: "100%",
|
|
1032
1026
|
boxSizing: "border-box",
|
|
1033
1027
|
// prevent width + padding to overflow
|
|
@@ -1044,7 +1038,7 @@ const wt = ["visible"], Tt = ["id", "itemId", "label", "disabled", "children", "
|
|
|
1044
1038
|
paddingLeft: "2px"
|
|
1045
1039
|
}
|
|
1046
1040
|
}]
|
|
1047
|
-
})), Ve =
|
|
1041
|
+
})), Ve = V("div", {
|
|
1048
1042
|
name: "MuiTreeItem2",
|
|
1049
1043
|
slot: "IconContainer",
|
|
1050
1044
|
overridesResolver: (e, t) => t.iconContainer
|
|
@@ -1056,7 +1050,7 @@ const wt = ["visible"], Tt = ["id", "itemId", "label", "disabled", "children", "
|
|
|
1056
1050
|
"& svg": {
|
|
1057
1051
|
fontSize: 18
|
|
1058
1052
|
}
|
|
1059
|
-
}),
|
|
1053
|
+
}), $e = V(se, {
|
|
1060
1054
|
name: "MuiTreeItem2",
|
|
1061
1055
|
slot: "GroupTransition",
|
|
1062
1056
|
overridesResolver: (e, t) => t.groupTransition,
|
|
@@ -1073,11 +1067,11 @@ const wt = ["visible"], Tt = ["id", "itemId", "label", "disabled", "children", "
|
|
|
1073
1067
|
paddingLeft: 0
|
|
1074
1068
|
}
|
|
1075
1069
|
}]
|
|
1076
|
-
}),
|
|
1070
|
+
}), Et = V(/* @__PURE__ */ R.forwardRef((e, t) => {
|
|
1077
1071
|
const {
|
|
1078
1072
|
visible: o
|
|
1079
1073
|
} = e, s = ve(e, wt);
|
|
1080
|
-
return o ? /* @__PURE__ */ x(
|
|
1074
|
+
return o ? /* @__PURE__ */ x(He, m({}, s, {
|
|
1081
1075
|
ref: t
|
|
1082
1076
|
})) : null;
|
|
1083
1077
|
}), {
|
|
@@ -1086,7 +1080,7 @@ const wt = ["visible"], Tt = ["id", "itemId", "label", "disabled", "children", "
|
|
|
1086
1080
|
overridesResolver: (e, t) => t.checkbox
|
|
1087
1081
|
})({
|
|
1088
1082
|
padding: 0
|
|
1089
|
-
}),
|
|
1083
|
+
}), Rt = (e) => {
|
|
1090
1084
|
const {
|
|
1091
1085
|
classes: t
|
|
1092
1086
|
} = e;
|
|
@@ -1105,9 +1099,9 @@ const wt = ["visible"], Tt = ["id", "itemId", "label", "disabled", "children", "
|
|
|
1105
1099
|
groupTransition: ["groupTransition"],
|
|
1106
1100
|
labelInput: ["labelInput"],
|
|
1107
1101
|
dragAndDropOverlay: ["dragAndDropOverlay"]
|
|
1108
|
-
},
|
|
1109
|
-
},
|
|
1110
|
-
const s =
|
|
1102
|
+
}, ht, t);
|
|
1103
|
+
}, St = /* @__PURE__ */ R.forwardRef(function(t, o) {
|
|
1104
|
+
const s = Pt({
|
|
1111
1105
|
props: t,
|
|
1112
1106
|
name: "MuiTreeItem2"
|
|
1113
1107
|
}), {
|
|
@@ -1115,27 +1109,27 @@ const wt = ["visible"], Tt = ["id", "itemId", "label", "disabled", "children", "
|
|
|
1115
1109
|
itemId: d,
|
|
1116
1110
|
label: g,
|
|
1117
1111
|
disabled: l,
|
|
1118
|
-
children:
|
|
1112
|
+
children: f,
|
|
1119
1113
|
slots: c = {},
|
|
1120
1114
|
slotProps: h = {}
|
|
1121
|
-
} = s, b = ve(s,
|
|
1115
|
+
} = s, b = ve(s, vt), {
|
|
1122
1116
|
getRootProps: C,
|
|
1123
1117
|
getContentProps: r,
|
|
1124
1118
|
getIconContainerProps: y,
|
|
1125
1119
|
getCheckboxProps: S,
|
|
1126
|
-
getLabelProps:
|
|
1127
|
-
getGroupTransitionProps:
|
|
1120
|
+
getLabelProps: O,
|
|
1121
|
+
getGroupTransitionProps: j,
|
|
1128
1122
|
getLabelInputProps: _,
|
|
1129
|
-
getDragAndDropOverlayProps:
|
|
1123
|
+
getDragAndDropOverlayProps: w,
|
|
1130
1124
|
status: E
|
|
1131
1125
|
} = Me({
|
|
1132
1126
|
id: p,
|
|
1133
1127
|
itemId: d,
|
|
1134
|
-
children:
|
|
1128
|
+
children: f,
|
|
1135
1129
|
label: g,
|
|
1136
1130
|
disabled: l
|
|
1137
|
-
}), P =
|
|
1138
|
-
elementType:
|
|
1131
|
+
}), P = m({}, s, E), T = Rt(P), D = c.root ?? Le, W = F({
|
|
1132
|
+
elementType: D,
|
|
1139
1133
|
getSlotProps: C,
|
|
1140
1134
|
externalForwardedProps: b,
|
|
1141
1135
|
externalSlotProps: h.root,
|
|
@@ -1143,68 +1137,68 @@ const wt = ["visible"], Tt = ["id", "itemId", "label", "disabled", "children", "
|
|
|
1143
1137
|
ref: o
|
|
1144
1138
|
},
|
|
1145
1139
|
ownerState: {},
|
|
1146
|
-
className:
|
|
1147
|
-
}), Y = c.content ?? Ne,
|
|
1140
|
+
className: T.root
|
|
1141
|
+
}), Y = c.content ?? Ne, M = F({
|
|
1148
1142
|
elementType: Y,
|
|
1149
1143
|
getSlotProps: r,
|
|
1150
1144
|
externalSlotProps: h.content,
|
|
1151
1145
|
ownerState: {},
|
|
1152
|
-
className:
|
|
1153
|
-
}),
|
|
1154
|
-
elementType:
|
|
1146
|
+
className: we(T.content, E.expanded && T.expanded, E.selected && T.selected, E.focused && T.focused, E.disabled && T.disabled, E.editing && T.editing, E.editable && T.editable)
|
|
1147
|
+
}), q = c.iconContainer ?? Ve, U = F({
|
|
1148
|
+
elementType: q,
|
|
1155
1149
|
getSlotProps: y,
|
|
1156
1150
|
externalSlotProps: h.iconContainer,
|
|
1157
1151
|
ownerState: {},
|
|
1158
|
-
className:
|
|
1159
|
-
}),
|
|
1160
|
-
elementType:
|
|
1161
|
-
getSlotProps:
|
|
1152
|
+
className: T.iconContainer
|
|
1153
|
+
}), k = c.label ?? Ae, z = F({
|
|
1154
|
+
elementType: k,
|
|
1155
|
+
getSlotProps: O,
|
|
1162
1156
|
externalSlotProps: h.label,
|
|
1163
1157
|
ownerState: {},
|
|
1164
|
-
className:
|
|
1165
|
-
}),
|
|
1166
|
-
elementType:
|
|
1158
|
+
className: T.label
|
|
1159
|
+
}), B = c.checkbox ?? Et, H = F({
|
|
1160
|
+
elementType: B,
|
|
1167
1161
|
getSlotProps: S,
|
|
1168
1162
|
externalSlotProps: h.checkbox,
|
|
1169
1163
|
ownerState: {},
|
|
1170
|
-
className:
|
|
1171
|
-
}),
|
|
1172
|
-
elementType:
|
|
1173
|
-
getSlotProps:
|
|
1164
|
+
className: T.checkbox
|
|
1165
|
+
}), A = c.groupTransition ?? void 0, G = F({
|
|
1166
|
+
elementType: A,
|
|
1167
|
+
getSlotProps: j,
|
|
1174
1168
|
externalSlotProps: h.groupTransition,
|
|
1175
1169
|
ownerState: {},
|
|
1176
|
-
className:
|
|
1177
|
-
}), J = c.labelInput ??
|
|
1170
|
+
className: T.groupTransition
|
|
1171
|
+
}), J = c.labelInput ?? It, ee = F({
|
|
1178
1172
|
elementType: J,
|
|
1179
1173
|
getSlotProps: _,
|
|
1180
1174
|
externalSlotProps: h.labelInput,
|
|
1181
1175
|
ownerState: {},
|
|
1182
|
-
className:
|
|
1183
|
-
}), Q = c.dragAndDropOverlay ?? Oe, re =
|
|
1176
|
+
className: T.labelInput
|
|
1177
|
+
}), Q = c.dragAndDropOverlay ?? Oe, re = F({
|
|
1184
1178
|
elementType: Q,
|
|
1185
|
-
getSlotProps:
|
|
1179
|
+
getSlotProps: w,
|
|
1186
1180
|
externalSlotProps: h.dragAndDropOverlay,
|
|
1187
1181
|
ownerState: {},
|
|
1188
|
-
className:
|
|
1182
|
+
className: T.dragAndDropOverlay
|
|
1189
1183
|
});
|
|
1190
1184
|
return /* @__PURE__ */ x(pe, {
|
|
1191
1185
|
itemId: d,
|
|
1192
|
-
children: /* @__PURE__ */ ie(
|
|
1193
|
-
children: [/* @__PURE__ */ ie(Y,
|
|
1194
|
-
children: [/* @__PURE__ */ x(
|
|
1186
|
+
children: /* @__PURE__ */ ie(D, m({}, W, {
|
|
1187
|
+
children: [/* @__PURE__ */ ie(Y, m({}, M, {
|
|
1188
|
+
children: [/* @__PURE__ */ x(q, m({}, U, {
|
|
1195
1189
|
children: /* @__PURE__ */ x(ke, {
|
|
1196
1190
|
status: E,
|
|
1197
1191
|
slots: c,
|
|
1198
1192
|
slotProps: h
|
|
1199
1193
|
})
|
|
1200
|
-
})), /* @__PURE__ */ x(
|
|
1201
|
-
})),
|
|
1202
|
-
as:
|
|
1203
|
-
},
|
|
1194
|
+
})), /* @__PURE__ */ x(B, m({}, H)), E.editing ? /* @__PURE__ */ x(J, m({}, ee)) : /* @__PURE__ */ x(k, m({}, z)), /* @__PURE__ */ x(Q, m({}, re))]
|
|
1195
|
+
})), f && /* @__PURE__ */ x($e, m({
|
|
1196
|
+
as: A
|
|
1197
|
+
}, G))]
|
|
1204
1198
|
}))
|
|
1205
1199
|
});
|
|
1206
1200
|
});
|
|
1207
|
-
process.env.NODE_ENV !== "production" && (
|
|
1201
|
+
process.env.NODE_ENV !== "production" && (St.propTypes = {
|
|
1208
1202
|
// ----------------------------- Warning --------------------------------
|
|
1209
1203
|
// | These PropTypes are generated from the TypeScript type definitions |
|
|
1210
1204
|
// | To update them edit the TypeScript types and run "pnpm proptypes" |
|
|
@@ -1244,7 +1238,7 @@ process.env.NODE_ENV !== "production" && (Rt.propTypes = {
|
|
|
1244
1238
|
* This prop isn't supported.
|
|
1245
1239
|
* Use the `onItemFocus` callback on the tree if you need to monitor an item's focus.
|
|
1246
1240
|
*/
|
|
1247
|
-
onFocus:
|
|
1241
|
+
onFocus: et,
|
|
1248
1242
|
/**
|
|
1249
1243
|
* Callback fired when a key is pressed on the keyboard and the tree is in focus.
|
|
1250
1244
|
*/
|
|
@@ -1260,7 +1254,7 @@ process.env.NODE_ENV !== "production" && (Rt.propTypes = {
|
|
|
1260
1254
|
*/
|
|
1261
1255
|
slots: i.object
|
|
1262
1256
|
});
|
|
1263
|
-
function
|
|
1257
|
+
function oo(e) {
|
|
1264
1258
|
const {
|
|
1265
1259
|
id: t,
|
|
1266
1260
|
itemId: o,
|
|
@@ -1269,35 +1263,40 @@ function eo(e) {
|
|
|
1269
1263
|
children: d,
|
|
1270
1264
|
itemData: g,
|
|
1271
1265
|
iconColor: l = "primary",
|
|
1272
|
-
|
|
1273
|
-
|
|
1266
|
+
hasNoIcons: f,
|
|
1267
|
+
ref: c
|
|
1268
|
+
} = e, h = Ue(
|
|
1274
1269
|
g == null ? void 0 : g.iconType,
|
|
1275
1270
|
g == null ? void 0 : g.customIcon
|
|
1276
1271
|
), {
|
|
1277
|
-
getRootProps:
|
|
1278
|
-
getContentProps:
|
|
1279
|
-
getLabelProps:
|
|
1280
|
-
getGroupTransitionProps:
|
|
1281
|
-
getIconContainerProps:
|
|
1282
|
-
status:
|
|
1283
|
-
} = Me({ id: t, itemId: o, label: s, disabled: p, children: d, rootRef:
|
|
1272
|
+
getRootProps: b,
|
|
1273
|
+
getContentProps: C,
|
|
1274
|
+
getLabelProps: r,
|
|
1275
|
+
getGroupTransitionProps: y,
|
|
1276
|
+
getIconContainerProps: S,
|
|
1277
|
+
status: O
|
|
1278
|
+
} = Me({ id: t, itemId: o, label: s, disabled: p, children: d, rootRef: c }), j = {
|
|
1279
|
+
...O.selected && { fontWeight: 600 },
|
|
1280
|
+
color: "palette-grey-darker"
|
|
1281
|
+
};
|
|
1284
1282
|
return /* @__PURE__ */ x(pe, { itemId: o, children: /* @__PURE__ */ ie(
|
|
1285
1283
|
Le,
|
|
1286
1284
|
{
|
|
1287
|
-
...
|
|
1285
|
+
...b(),
|
|
1288
1286
|
"data-treeview-item": o || "",
|
|
1289
1287
|
"data-treeview-item-label": s || "",
|
|
1288
|
+
sx: Ke,
|
|
1290
1289
|
children: [
|
|
1291
|
-
/* @__PURE__ */ ie(Ne, { ...
|
|
1292
|
-
/* @__PURE__ */ x(Ve, { ...
|
|
1293
|
-
/* @__PURE__ */ x(Ae, { ...
|
|
1294
|
-
/* @__PURE__ */ x(
|
|
1290
|
+
/* @__PURE__ */ ie(Ne, { ...C(), style: Fe, children: [
|
|
1291
|
+
!f && /* @__PURE__ */ x(Ve, { ...S(), sx: Ie, children: /* @__PURE__ */ x(h, { color: l, sx: Ie }) }),
|
|
1292
|
+
/* @__PURE__ */ x(Ae, { ...r(), sx: j }),
|
|
1293
|
+
/* @__PURE__ */ x(tt, { sx: je, children: O.expandable && (O.expanded ? /* @__PURE__ */ x(at, { fontSize: "small" }) : /* @__PURE__ */ x(lt, { fontSize: "small" })) })
|
|
1295
1294
|
] }),
|
|
1296
1295
|
d && /* @__PURE__ */ x(
|
|
1297
|
-
|
|
1296
|
+
$e,
|
|
1298
1297
|
{
|
|
1299
|
-
...
|
|
1300
|
-
style:
|
|
1298
|
+
...y(),
|
|
1299
|
+
style: O.expanded ? qe : void 0
|
|
1301
1300
|
}
|
|
1302
1301
|
)
|
|
1303
1302
|
]
|
|
@@ -1307,30 +1306,29 @@ function eo(e) {
|
|
|
1307
1306
|
export {
|
|
1308
1307
|
se as C,
|
|
1309
1308
|
Ee as T,
|
|
1310
|
-
|
|
1311
|
-
|
|
1312
|
-
|
|
1309
|
+
Qt as a,
|
|
1310
|
+
ct as b,
|
|
1311
|
+
Jt as c,
|
|
1313
1312
|
Re as d,
|
|
1314
|
-
|
|
1315
|
-
|
|
1316
|
-
|
|
1317
|
-
|
|
1318
|
-
|
|
1319
|
-
|
|
1313
|
+
Zt as e,
|
|
1314
|
+
gt as f,
|
|
1315
|
+
ot as g,
|
|
1316
|
+
mt as h,
|
|
1317
|
+
eo as i,
|
|
1318
|
+
Ht as j,
|
|
1320
1319
|
xe as k,
|
|
1321
|
-
|
|
1322
|
-
|
|
1320
|
+
ut as l,
|
|
1321
|
+
pt as m,
|
|
1323
1322
|
de as n,
|
|
1324
1323
|
ne as o,
|
|
1325
|
-
|
|
1324
|
+
It as p,
|
|
1326
1325
|
Oe as q,
|
|
1327
|
-
|
|
1328
|
-
|
|
1329
|
-
|
|
1330
|
-
|
|
1326
|
+
dt as r,
|
|
1327
|
+
xt as s,
|
|
1328
|
+
yt as t,
|
|
1329
|
+
X as u,
|
|
1331
1330
|
pe as v,
|
|
1332
|
-
|
|
1333
|
-
|
|
1334
|
-
|
|
1335
|
-
eo as z
|
|
1331
|
+
ht as w,
|
|
1332
|
+
to as x,
|
|
1333
|
+
oo as y
|
|
1336
1334
|
};
|