@cgi-learning-hub/ui 1.6.0 → 1.7.0-dev.1750693982
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-PmI169Dq.js → Alert-BhLIlUBu.js} +126 -212
- package/dist/Alert-DPSZppEy.cjs +1 -0
- package/dist/Alert-OeEy_IGc.js +94 -0
- package/dist/Alert-rPyl-bqs.cjs +1 -0
- package/dist/Autocomplete-BdPO9SAd.cjs +6 -0
- package/dist/{Autocomplete-BIBR54X2.js → Autocomplete-WZw_zCjA.js} +391 -398
- package/dist/{Backdrop-BxgGvlLM.js → Backdrop-CjZYrxkZ.js} +5 -5
- package/dist/Backdrop-DeNTZlA5.cjs +1 -0
- package/dist/Badge-Bwcsnbsa.js +465 -0
- package/dist/Badge-DFzvdVS-.cjs +1 -0
- package/dist/{Box-o7Tjjyko.js → Box-BI4osO9v.js} +3 -3
- package/dist/Box-DR3n_po_.cjs +1 -0
- package/dist/{Button-D974vesA.js → Button-DDV5EfwJ.js} +115 -151
- package/dist/Button-DyJV5llI.cjs +1 -0
- package/dist/{ButtonBase-Chb99sDQ.js → ButtonBase-6TF6t2SP.js} +22 -23
- package/dist/ButtonBase-Dp6sf_dP.cjs +74 -0
- package/dist/CardContent-COfaU6E0.cjs +1 -0
- package/dist/{CardContent-DaZl2i3G.js → CardContent-D3uGcxlr.js} +34 -36
- package/dist/Checkbox-3hTSv0EZ.cjs +1 -0
- package/dist/{Checkbox-p-PKpEw_.js → Checkbox-BfBDowB2.js} +27 -28
- package/dist/Chip-BG0OU0KI.cjs +1 -0
- package/dist/{Chip-CPR3r42q.js → Chip-DmjZbx_X.js} +213 -164
- package/dist/CircularProgress-CXXyPavb.cjs +28 -0
- package/dist/{CircularProgress-DVKNRMKq.js → CircularProgress-DZuYTFz-.js} +34 -36
- package/dist/{Close-DyRqry3p.cjs → Close-7S2hSoFB.cjs} +1 -1
- package/dist/{Close-m-MX3rFn.js → Close-DEMecSZ6.js} +1 -1
- package/dist/{CloseRounded-CjjQdrNy.js → CloseRounded-CioV1GK3.js} +1 -1
- package/dist/{CloseRounded-Bpxbxvyb.cjs → CloseRounded-DS-4-gMR.cjs} +1 -1
- package/dist/CustomTreeItem-B9FylIhL.js +2045 -0
- package/dist/CustomTreeItem-Bg8Ub4dn.cjs +41 -0
- package/dist/DatePicker-CH8XRum0.cjs +16 -0
- package/dist/DatePicker-DasS2wq6.js +10663 -0
- package/dist/DefaultPropsProvider-Cnf49AIv.cjs +1 -0
- package/dist/{DefaultPropsProvider-hFv1J_xl.js → DefaultPropsProvider-DqazQPtr.js} +36 -34
- package/dist/{Delete-9fJbdRit.js → Delete-B5VTV71K.js} +1 -1
- package/dist/{Delete-CEX2hq0f.cjs → Delete-BvkBJXEM.cjs} +1 -1
- package/dist/Dialog-Btagj_Gt.cjs +1 -0
- package/dist/{Dialog-BzsWl6Vl.js → Dialog-DEWB041V.js} +36 -41
- package/dist/{DialogContent-B41jvlMn.js → DialogContent-C294EkoQ.js} +3 -3
- package/dist/DialogContent-DXfUge3c.cjs +1 -0
- package/dist/{DialogTitle-CVvztEM0.js → DialogTitle-BSiId6Q1.js} +38 -40
- package/dist/DialogTitle-y2PrK6uU.cjs +1 -0
- package/dist/Divider-NermA5hZ.cjs +1 -0
- package/dist/{Divider-CJwnMdVg.js → Divider-kKp4VqHh.js} +4 -4
- package/dist/{Folder-7plrMkOp.cjs → Folder-BfLBqDHM.cjs} +1 -1
- package/dist/{Folder-CutUz0bW.js → Folder-BgQP5-Ve.js} +1 -1
- package/dist/{FormLabel-DSi2pGSZ.js → FormLabel-B3WAnPGP.js} +36 -38
- package/dist/FormLabel-JrZR9kt8.cjs +2 -0
- package/dist/Grid-BHYQ3JNy.cjs +2 -0
- package/dist/Grid-DFk-4jnZ.js +411 -0
- package/dist/Grow-BULCy6GX.cjs +1 -0
- package/dist/{Grow-FFFqe81C.js → Grow-BfjkXlG8.js} +2 -2
- package/dist/{IconButton-CgwURB2g.js → IconButton-BYvak8Nw.js} +13 -15
- package/dist/IconButton-CjtMjZ9e.cjs +2 -0
- package/dist/{InputAdornment-DgWvMLgR.js → InputAdornment-BBZXvhZ-.js} +14 -15
- package/dist/InputAdornment-DvHQMisT.cjs +1 -0
- package/dist/{InputBase-DxLqRpcl.js → InputBase-BS5oknUK.js} +196 -194
- package/dist/InputBase-DPdKpmOz.cjs +4 -0
- package/dist/Link-BwbY60dS.cjs +1 -0
- package/dist/{Link-rb-SwfiY.js → Link-DYPjEdvu.js} +10 -11
- package/dist/{List-BjfdkeEI.js → List-CB_cqCSw.js} +2 -2
- package/dist/List-t9bWFewp.cjs +1 -0
- package/dist/{ListItem-B0EiObKw.js → ListItem-DAZQEir2.js} +25 -26
- package/dist/ListItem-DP7YmqZk.cjs +1 -0
- package/dist/ListItemText-cVnimPLO.cjs +1 -0
- package/dist/ListItemText-qfdqJP77.js +441 -0
- package/dist/{Menu-By6cOqEO.js → Menu-9BK8jmzW.js} +110 -114
- package/dist/Menu-C61wLk41.cjs +7 -0
- package/dist/{MenuItem-B1FTx8Uo.js → MenuItem-C8nduSzJ.js} +8 -8
- package/dist/MenuItem-DHM3qxwr.cjs +1 -0
- package/dist/{Modal-vrLLqk9Y.js → Modal-D3Q9vEAI.js} +51 -55
- package/dist/Modal-DkzrSKHd.cjs +2 -0
- package/dist/{MoreVert-DC6HBf1h.cjs → MoreVert-C-Rhn-xK.cjs} +1 -1
- package/dist/{MoreVert-DJ8sAY3o.js → MoreVert-C_W1m_Z_.js} +1 -1
- package/dist/Paper-BbqZL5vx.cjs +2 -0
- package/dist/Paper-IQckggbn.js +158 -0
- package/dist/{Popper-DfwuvxaQ.js → Popper-CfFLBZ7-.js} +6 -7
- package/dist/Popper-DvWx5tR3.cjs +4 -0
- package/dist/{Portal-ChC9wmMZ.js → Portal-BlK6ttxt.js} +5 -5
- package/dist/Portal-CPOCKeMh.cjs +1 -0
- package/dist/Radio-Bwh_t6PC.cjs +1 -0
- package/dist/{Radio-BqY-su_F.js → Radio-DKiu6lVB.js} +17 -19
- package/dist/RadioGroup-Cvnwt4JE.cjs +1 -0
- package/dist/{RadioGroup-BQvlYFpE.js → RadioGroup-DFKMlNWO.js} +4 -4
- package/dist/Select-3HP39Z7o.cjs +3 -0
- package/dist/{Select-DZMwqCYA.js → Select-CpNF3a57.js} +425 -410
- package/dist/Stack-CIyfgZCM.cjs +1 -0
- package/dist/{Stack-CMUWQxQn.js → Stack-DSJ2DqNd.js} +36 -37
- package/dist/Stepper-CXHfLPtA.cjs +1 -0
- package/dist/Stepper-DE2l91K0.js +965 -0
- package/dist/{Switch-Bg4QB4PJ.js → Switch-BIcwDf_P.js} +24 -27
- package/dist/Switch-CTEqKDiv.cjs +1 -0
- package/dist/{SwitchBase-EDFBMPd7.js → SwitchBase-DZV8S81Z.js} +21 -22
- package/dist/SwitchBase-P3zHVmLX.cjs +1 -0
- package/dist/{Tab-52AkFc9v.js → Tab-Ckr6Bn59.js} +96 -99
- package/dist/Tab-r5imbU9z.cjs +4 -0
- package/dist/{TextField-DG9mRp_m.js → TextField-BenBw4oE.js} +46 -48
- package/dist/TextField-Brw3X9cn.cjs +1 -0
- package/dist/ToggleButtonGroup-CA1cSosV.cjs +138 -0
- package/dist/{Badge-rX7YUmBc.js → ToggleButtonGroup-DhtAoGtM.js} +3144 -4140
- package/dist/Tooltip-BAOKe3SY.cjs +4 -0
- package/dist/{Tooltip-DCgaU2em.js → Tooltip-KkgNQm4r.js} +27 -29
- package/dist/Typography-CSTmKyr8.cjs +1 -0
- package/dist/{Typography-DwMlN0K5.js → Typography-Dy8r_tT2.js} +6 -7
- package/dist/components/Alert/Alert.cjs.js +1 -1
- package/dist/components/Alert/Alert.es.js +5 -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 +2 -2
- package/dist/components/ButtonGroup/ButtonGroup.cjs.js +1 -0
- package/dist/components/ButtonGroup/ButtonGroup.d.ts +3 -0
- package/dist/components/ButtonGroup/ButtonGroup.es.js +38 -0
- package/dist/components/ButtonGroup/index.cjs.js +1 -0
- package/dist/components/ButtonGroup/index.d.ts +2 -0
- package/dist/components/ButtonGroup/index.es.js +4 -0
- package/dist/components/ButtonGroup/style.cjs.js +1 -0
- package/dist/components/ButtonGroup/style.es.js +29 -0
- package/dist/components/ButtonGroup/types.cjs.js +1 -0
- package/dist/components/ButtonGroup/types.d.ts +22 -0
- package/dist/components/ButtonGroup/types.es.js +1 -0
- package/dist/components/ColorPicker/ColorPicker.cjs.js +1 -1
- package/dist/components/ColorPicker/ColorPicker.es.js +5 -5
- package/dist/components/ColorPicker/styles.es.js +13 -11
- package/dist/components/DatePicker/DatePicker.cjs.js +1 -1
- package/dist/components/DatePicker/DatePicker.d.ts +1 -2
- 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 +8 -3
- package/dist/components/Dropzone/Dropzone.cjs.js +1 -1
- package/dist/components/Dropzone/Dropzone.es.js +3 -3
- package/dist/components/EmptyState/EmptyState.cjs.js +1 -1
- package/dist/components/EmptyState/EmptyState.d.ts +1 -0
- package/dist/components/EmptyState/EmptyState.es.js +13 -12
- 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 +4 -4
- 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 -7
- package/dist/components/TreeView/TreeView.es.js +1207 -1452
- package/dist/components/TreeView/components/CustomTreeItem.cjs.js +1 -1
- package/dist/components/TreeView/components/CustomTreeItem.d.ts +2 -2
- package/dist/components/TreeView/components/CustomTreeItem.es.js +3 -3
- package/dist/components/TreeView/types.d.ts +5 -5
- 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.d.ts +7 -2
- package/dist/components/index.es.js +402 -391
- package/dist/components/stories/Alert.stories.cjs.js +1 -1
- package/dist/components/stories/Alert.stories.d.ts +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.d.ts +1 -1
- package/dist/components/stories/Autocomplete.stories.es.js +2 -2
- package/dist/components/stories/Badge.stories.cjs.js +1 -0
- package/dist/components/stories/Badge.stories.d.ts +17 -0
- package/dist/components/stories/Badge.stories.es.js +188 -0
- package/dist/components/stories/Button.stories.cjs.js +1 -1
- package/dist/components/stories/Button.stories.d.ts +1 -1
- package/dist/components/stories/Button.stories.es.js +1 -1
- package/dist/components/stories/ButtonGroup.stories.cjs.js +153 -0
- package/dist/components/stories/ButtonGroup.stories.d.ts +17 -0
- package/dist/components/stories/ButtonGroup.stories.es.js +1296 -0
- package/dist/components/stories/Card.stories.cjs.js +1 -1
- package/dist/components/stories/Card.stories.d.ts +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.d.ts +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.d.ts +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.d.ts +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.d.ts +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.d.ts +1 -1
- package/dist/components/stories/Divider.stories.es.js +1 -1
- package/dist/components/stories/Dropzone.stories.d.ts +1 -1
- package/dist/components/stories/EllipsisWithTooltip.stories.d.ts +1 -1
- package/dist/components/stories/EmptyState.stories.d.ts +1 -1
- package/dist/components/stories/FileList.stories.d.ts +1 -1
- package/dist/components/stories/FolderCard.stories.d.ts +1 -1
- package/dist/components/stories/FormControlLabel.stories.cjs.js +1 -1
- package/dist/components/stories/FormControlLabel.stories.d.ts +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.d.ts +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.d.ts +1 -1
- package/dist/components/stories/IconButton.stories.es.js +2 -2
- package/dist/components/stories/ImagePicker.stories.d.ts +1 -1
- package/dist/components/stories/Link.stories.cjs.js +1 -1
- package/dist/components/stories/Link.stories.d.ts +1 -1
- package/dist/components/stories/Link.stories.es.js +1 -1
- package/dist/components/stories/Loader.stories.d.ts +1 -1
- package/dist/components/stories/LoaderBackdrop.stories.d.ts +1 -1
- package/dist/components/stories/Menu.stories.cjs.js +1 -1
- package/dist/components/stories/Menu.stories.d.ts +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.d.ts +1 -1
- package/dist/components/stories/Paper.stories.es.js +1 -1
- package/dist/components/stories/PasswordInput.stories.d.ts +1 -1
- package/dist/components/stories/RadioGroup.stories.cjs.js +1 -1
- package/dist/components/stories/RadioGroup.stories.d.ts +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.d.ts +1 -1
- package/dist/components/stories/ResourceCard.stories.es.js +1 -1
- package/dist/components/stories/SearchInput.stories.d.ts +1 -1
- package/dist/components/stories/Select.stories.cjs.js +1 -1
- package/dist/components/stories/Select.stories.d.ts +1 -1
- package/dist/components/stories/Select.stories.es.js +3 -3
- package/dist/components/stories/Stepper.stories.cjs.js +1 -0
- package/dist/components/stories/Stepper.stories.d.ts +7 -0
- package/dist/components/stories/Stepper.stories.es.js +161 -0
- package/dist/components/stories/TabList.stories.cjs.js +1 -1
- package/dist/components/stories/TabList.stories.d.ts +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.d.ts +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.d.ts +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 +1 -1
- package/dist/components/stories/TreeView.stories.es.js +39 -38
- package/dist/components/stories/Typography.stories.cjs.js +1 -1
- package/dist/components/stories/Typography.stories.d.ts +1 -1
- package/dist/components/stories/Typography.stories.es.js +1 -1
- package/dist/{createSvgIcon-BlKmtOkV.js → createSvgIcon-B1E6Wo8z.js} +7 -8
- package/dist/createSvgIcon-IET9soda.cjs +1 -0
- package/dist/{dividerClasses-Glz8RJdF.js → dividerClasses-BPJZ8SFy.js} +1 -1
- package/dist/dividerClasses-C07OJKLL.cjs +1 -0
- package/dist/elementAcceptingRef-BZ42cOGO.cjs +1 -0
- package/dist/{extendSxProp-BouzOuB6.js → extendSxProp-CesAxox9.js} +1 -1
- package/dist/extendSxProp-ZMCunXYm.cjs +1 -0
- package/dist/identifier-BoZelETM.cjs +55 -0
- package/dist/{generateUtilityClasses-DngCqveO.js → identifier-PWESmBq6.js} +582 -612
- package/dist/{index-l8yqod25.js → index-8G2jvqZ8.js} +4 -4
- package/dist/index-D3lMWU76.cjs +1 -0
- package/dist/index.cjs.js +1 -1
- package/dist/index.es.js +402 -391
- package/dist/integerPropType-BihGt2aU.js +31 -0
- package/dist/integerPropType-CR7ytEJG.cjs +1 -0
- package/dist/{listItemTextClasses-BRj19IXv.js → listItemTextClasses-B5VhLd9W.js} +1 -1
- package/dist/listItemTextClasses-CJDKfXvl.cjs +1 -0
- package/dist/{memoTheme-BAbn60Cb.cjs → memoTheme-BKfsJx_F.cjs} +1 -1
- package/dist/{memoTheme-nmt7i1dS.js → memoTheme-DAFDflPY.js} +1 -1
- package/dist/{mergeSlotProps-BBciKnr4.js → mergeSlotProps-ChAye7iz.js} +1 -1
- package/dist/mergeSlotProps-DXwOW3FE.cjs +1 -0
- package/dist/styled-C7gyRDlj.js +5 -0
- package/dist/styled-Cax0O00h.cjs +1 -0
- package/dist/useControlled-QrrYcKxm.cjs +3 -0
- package/dist/useControlled-nm4pBabJ.js +31 -0
- package/dist/{useEventCallback-Yoj9nCug.js → useEventCallback-Y2KwRxBw.js} +2 -2
- package/dist/usePreviousProps-ByGlbpJ6.js +10 -0
- package/dist/usePreviousProps-jC3PWcIp.cjs +1 -0
- package/dist/{useSlot-BDb1lvxu.js → useSlot-BzdKwDQ5.js} +1 -1
- package/dist/useSlot-C2FjoUpF.cjs +1 -0
- package/dist/{useSlotProps-OhEflPiz.cjs → useSlotProps-CrQGQLdL.cjs} +1 -1
- package/dist/{useSlotProps-B_D8u0j-.js → useSlotProps-DdMuGelR.js} +1 -1
- package/dist/{useTheme-D9cVynB-.js → useTheme--i9fxE_A.js} +1 -1
- package/dist/useTheme-BLMJDSsv.cjs +1 -0
- package/dist/useTheme-CooC_6Ep.cjs +1 -0
- package/dist/useTheme-XJ9sFCWX.js +11 -0
- package/dist/{useThemeProps-ggw56DH-.js → useThemeProps-B4VFkcP0.js} +4 -4
- package/dist/{useThemeProps-DQOn-ezC.cjs → useThemeProps-B9E_wuN9.cjs} +1 -1
- package/dist/useThemeProps-C1A3rnbh.cjs +1 -0
- package/dist/useThemeProps-CQ9rZe7g.js +17 -0
- package/package.json +12 -11
- package/dist/Alert-DW8yCR-B.cjs +0 -1
- package/dist/Autocomplete-D9hZ2wrR.cjs +0 -6
- package/dist/Backdrop-3TL73mAe.cjs +0 -1
- package/dist/Badge-DhyDno9j.cjs +0 -138
- package/dist/Box-DYD6q-6M.cjs +0 -1
- package/dist/Button-y1LmxqGA.cjs +0 -1
- package/dist/ButtonBase-Cteo-mSC.cjs +0 -74
- package/dist/CardContent-ji0_AneN.cjs +0 -1
- package/dist/Checkbox-XXqW_dbW.cjs +0 -1
- package/dist/Chip-Bpcd3tnL.cjs +0 -1
- package/dist/CircularProgress-Wqx0-T36.cjs +0 -28
- package/dist/CustomTreeItem-DPyfIueW.cjs +0 -3
- package/dist/CustomTreeItem-hIRSCwAW.js +0 -1336
- package/dist/DatePicker-BMzW4v1g.js +0 -10255
- package/dist/DatePicker-CNhBoaI3.cjs +0 -14
- package/dist/DefaultPropsProvider-B1crdkTC.cjs +0 -1
- package/dist/Dialog-B2LKe7ZM.cjs +0 -1
- package/dist/DialogContent-BbCu_OEw.cjs +0 -1
- package/dist/DialogTitle-SwUSpeBT.cjs +0 -1
- package/dist/Divider-Cshcr5kR.cjs +0 -1
- package/dist/FormLabel-0LbNeQQU.cjs +0 -2
- package/dist/Grow-aEgTOewU.cjs +0 -1
- package/dist/IconButton-BKwDNYJl.cjs +0 -2
- package/dist/InputAdornment-C7e-kyf7.cjs +0 -1
- package/dist/InputBase-pYQWRFK2.cjs +0 -3
- package/dist/Link-DUtuCYMx.cjs +0 -1
- package/dist/List-BH_S4Hqm.cjs +0 -1
- package/dist/ListItem-D33t-hkx.cjs +0 -1
- package/dist/ListItemText-B8jlTz59.cjs +0 -2
- package/dist/ListItemText-BeyHu1da.js +0 -853
- package/dist/Menu-BjrN8rMF.cjs +0 -7
- package/dist/MenuItem-Cz_x60jl.cjs +0 -1
- package/dist/Modal-DxwlW5NV.cjs +0 -2
- package/dist/Paper-984iTz4H.js +0 -186
- package/dist/Paper-Bh9CKUCb.cjs +0 -2
- package/dist/Popper-yO_RaCbM.cjs +0 -4
- package/dist/Portal-B5KqLEa0.cjs +0 -1
- package/dist/Radio-C7zzpRFc.cjs +0 -1
- package/dist/RadioGroup-BlUWRmLG.cjs +0 -1
- package/dist/Select-Doay7ukI.cjs +0 -3
- package/dist/Stack-BVWbOqY_.cjs +0 -1
- package/dist/Switch-CEfqaD33.cjs +0 -1
- package/dist/SwitchBase-DvCITKv8.cjs +0 -1
- package/dist/Tab-C6H241Pf.cjs +0 -4
- package/dist/TextField-bE2NUKKK.cjs +0 -1
- package/dist/Tooltip-D_w-IJoD.cjs +0 -4
- package/dist/Typography-De-21leI.cjs +0 -1
- package/dist/capitalize-BHFotl9B.js +0 -9
- package/dist/capitalize-CKLkSyDO.cjs +0 -1
- package/dist/composeClasses-CJKlIaRn.js +0 -51
- package/dist/composeClasses-CWgX5SFD.cjs +0 -1
- package/dist/createSvgIcon-BgBODH2F.cjs +0 -1
- package/dist/dividerClasses-D3gnW6kZ.cjs +0 -1
- package/dist/extendSxProp-Cm-DtZe3.cjs +0 -1
- package/dist/generateUtilityClasses-CMlilM6r.cjs +0 -55
- package/dist/getReactElementRef-EVJnBPlV.cjs +0 -1
- package/dist/index-BzsuDIEl.cjs +0 -1
- package/dist/listItemTextClasses-BJFgw1ah.cjs +0 -1
- package/dist/mergeSlotProps-Z5-o9vSe.cjs +0 -1
- package/dist/useControlled-BYdyS7Pn.js +0 -31
- package/dist/useControlled-Ysk4KqoX.cjs +0 -3
- package/dist/useSlot-W0PiuVaZ.cjs +0 -1
- package/dist/useTheme-C59wIJ3-.js +0 -11
- package/dist/useTheme-ClhInrO2.cjs +0 -1
- package/dist/useTheme-CqYtLDbs.cjs +0 -1
- package/dist/useThemeProps-BFQ8ndnj.js +0 -17
- package/dist/useThemeProps-DYpozGhe.cjs +0 -1
- package/dist/{getReactElementRef-H8kwrWP1.js → elementAcceptingRef-CEweUuUA.js} +5 -5
|
@@ -1,1336 +0,0 @@
|
|
|
1
|
-
import { jsx as x, jsxs as ie } from "react/jsx-runtime";
|
|
2
|
-
import { c as ae } from "./createSvgIcon-BlKmtOkV.js";
|
|
3
|
-
import { _ as g } from "./ButtonBase-Chb99sDQ.js";
|
|
4
|
-
import * as R from "react";
|
|
5
|
-
import { w as ze } from "./warning-C8W811fV.js";
|
|
6
|
-
import { u as ce } from "./useForkRef-u29GSuCu.js";
|
|
7
|
-
import { e as K, r as be } from "./useSlot-BDb1lvxu.js";
|
|
8
|
-
import { treeItemRootStyle as Be, treeContentStyle as Ke, iconStyle as Ie, arrowContainerStyle as Fe, expandedGroupStyle as je } from "./components/TreeView/style.es.js";
|
|
9
|
-
import { getIconComponent as qe } from "./components/TreeView/utils.es.js";
|
|
10
|
-
import Ue from "./components/EllipsisWithTooltip/EllipsisWithTooltip.es.js";
|
|
11
|
-
import { P as i } from "./index-Sy88PpwE.js";
|
|
12
|
-
import { a as Ce } from "./TransitionGroupContext-DbLioz_6.js";
|
|
13
|
-
import { F as Te, G as we, w as We, H as ve, n as oe } from "./generateUtilityClasses-DngCqveO.js";
|
|
14
|
-
import { u as _e } from "./useThemeProps-BFQ8ndnj.js";
|
|
15
|
-
import { u as Ge, s as V, c as Pe, f as le } from "./DefaultPropsProvider-hFv1J_xl.js";
|
|
16
|
-
import { u as Xe } from "./useTheme-C59wIJ3-.js";
|
|
17
|
-
import { m as Ye } from "./memoTheme-nmt7i1dS.js";
|
|
18
|
-
import { T as Je, g as he } from "./utils-BQenyzDz.js";
|
|
19
|
-
import { u as Qe } from "./useTimeout-CrCYVizI.js";
|
|
20
|
-
import { e as Ze } from "./elementTypeAcceptingRef-DOeckaXy.js";
|
|
21
|
-
import { C as He } from "./Checkbox-p-PKpEw_.js";
|
|
22
|
-
import { u as et } from "./unsupportedProp-BuVD30Gh.js";
|
|
23
|
-
import { u as F } from "./useSlotProps-B_D8u0j-.js";
|
|
24
|
-
import { B as tt } from "./Box-o7Tjjyko.js";
|
|
25
|
-
function ot(e) {
|
|
26
|
-
return we("MuiCollapse", e);
|
|
27
|
-
}
|
|
28
|
-
const Ht = Te("MuiCollapse", ["root", "horizontal", "vertical", "entered", "hidden", "wrapper", "wrapperInner"]), nt = (e) => {
|
|
29
|
-
const {
|
|
30
|
-
orientation: t,
|
|
31
|
-
classes: o
|
|
32
|
-
} = e, s = {
|
|
33
|
-
root: ["root", `${t}`],
|
|
34
|
-
entered: ["entered"],
|
|
35
|
-
hidden: ["hidden"],
|
|
36
|
-
wrapper: ["wrapper", `${t}`],
|
|
37
|
-
wrapperInner: ["wrapperInner", `${t}`]
|
|
38
|
-
};
|
|
39
|
-
return Pe(s, ot, o);
|
|
40
|
-
}, rt = V("div", {
|
|
41
|
-
name: "MuiCollapse",
|
|
42
|
-
slot: "Root",
|
|
43
|
-
overridesResolver: (e, t) => {
|
|
44
|
-
const {
|
|
45
|
-
ownerState: o
|
|
46
|
-
} = e;
|
|
47
|
-
return [t.root, t[o.orientation], o.state === "entered" && t.entered, o.state === "exited" && !o.in && o.collapsedSize === "0px" && t.hidden];
|
|
48
|
-
}
|
|
49
|
-
})(Ye(({
|
|
50
|
-
theme: e
|
|
51
|
-
}) => ({
|
|
52
|
-
height: 0,
|
|
53
|
-
overflow: "hidden",
|
|
54
|
-
transition: e.transitions.create("height"),
|
|
55
|
-
variants: [{
|
|
56
|
-
props: {
|
|
57
|
-
orientation: "horizontal"
|
|
58
|
-
},
|
|
59
|
-
style: {
|
|
60
|
-
height: "auto",
|
|
61
|
-
width: 0,
|
|
62
|
-
transition: e.transitions.create("width")
|
|
63
|
-
}
|
|
64
|
-
}, {
|
|
65
|
-
props: {
|
|
66
|
-
state: "entered"
|
|
67
|
-
},
|
|
68
|
-
style: {
|
|
69
|
-
height: "auto",
|
|
70
|
-
overflow: "visible"
|
|
71
|
-
}
|
|
72
|
-
}, {
|
|
73
|
-
props: {
|
|
74
|
-
state: "entered",
|
|
75
|
-
orientation: "horizontal"
|
|
76
|
-
},
|
|
77
|
-
style: {
|
|
78
|
-
width: "auto"
|
|
79
|
-
}
|
|
80
|
-
}, {
|
|
81
|
-
props: ({
|
|
82
|
-
ownerState: t
|
|
83
|
-
}) => t.state === "exited" && !t.in && t.collapsedSize === "0px",
|
|
84
|
-
style: {
|
|
85
|
-
visibility: "hidden"
|
|
86
|
-
}
|
|
87
|
-
}]
|
|
88
|
-
}))), it = V("div", {
|
|
89
|
-
name: "MuiCollapse",
|
|
90
|
-
slot: "Wrapper",
|
|
91
|
-
overridesResolver: (e, t) => t.wrapper
|
|
92
|
-
})({
|
|
93
|
-
// Hack to get children with a negative margin to not falsify the height computation.
|
|
94
|
-
display: "flex",
|
|
95
|
-
width: "100%",
|
|
96
|
-
variants: [{
|
|
97
|
-
props: {
|
|
98
|
-
orientation: "horizontal"
|
|
99
|
-
},
|
|
100
|
-
style: {
|
|
101
|
-
width: "auto",
|
|
102
|
-
height: "100%"
|
|
103
|
-
}
|
|
104
|
-
}]
|
|
105
|
-
}), st = V("div", {
|
|
106
|
-
name: "MuiCollapse",
|
|
107
|
-
slot: "WrapperInner",
|
|
108
|
-
overridesResolver: (e, t) => t.wrapperInner
|
|
109
|
-
})({
|
|
110
|
-
width: "100%",
|
|
111
|
-
variants: [{
|
|
112
|
-
props: {
|
|
113
|
-
orientation: "horizontal"
|
|
114
|
-
},
|
|
115
|
-
style: {
|
|
116
|
-
width: "auto",
|
|
117
|
-
height: "100%"
|
|
118
|
-
}
|
|
119
|
-
}]
|
|
120
|
-
}), se = /* @__PURE__ */ R.forwardRef(function(t, o) {
|
|
121
|
-
const s = Ge({
|
|
122
|
-
props: t,
|
|
123
|
-
name: "MuiCollapse"
|
|
124
|
-
}), {
|
|
125
|
-
addEndListener: p,
|
|
126
|
-
children: d,
|
|
127
|
-
className: m,
|
|
128
|
-
collapsedSize: l = "0px",
|
|
129
|
-
component: f,
|
|
130
|
-
easing: c,
|
|
131
|
-
in: h,
|
|
132
|
-
onEnter: b,
|
|
133
|
-
onEntered: C,
|
|
134
|
-
onEntering: r,
|
|
135
|
-
onExit: y,
|
|
136
|
-
onExited: S,
|
|
137
|
-
onExiting: O,
|
|
138
|
-
orientation: j = "vertical",
|
|
139
|
-
style: W,
|
|
140
|
-
timeout: w = We.standard,
|
|
141
|
-
// eslint-disable-next-line react/prop-types
|
|
142
|
-
TransitionComponent: E = Je,
|
|
143
|
-
...P
|
|
144
|
-
} = s, T = {
|
|
145
|
-
...s,
|
|
146
|
-
orientation: j,
|
|
147
|
-
collapsedSize: l
|
|
148
|
-
}, D = nt(T), _ = 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) => {
|
|
149
|
-
if (I) {
|
|
150
|
-
const N = B.current;
|
|
151
|
-
L === void 0 ? I(N) : I(N, L);
|
|
152
|
-
}
|
|
153
|
-
}, G = () => M.current ? M.current[k ? "clientWidth" : "clientHeight"] : 0, J = A((I, L) => {
|
|
154
|
-
M.current && k && (M.current.style.position = "absolute"), I.style[z] = U, b && b(I, L);
|
|
155
|
-
}), ee = A((I, L) => {
|
|
156
|
-
const N = G();
|
|
157
|
-
M.current && k && (M.current.style.position = "");
|
|
158
|
-
const {
|
|
159
|
-
duration: Z,
|
|
160
|
-
easing: a
|
|
161
|
-
} = he({
|
|
162
|
-
style: W,
|
|
163
|
-
timeout: w,
|
|
164
|
-
easing: c
|
|
165
|
-
}, {
|
|
166
|
-
mode: "enter"
|
|
167
|
-
});
|
|
168
|
-
if (w === "auto") {
|
|
169
|
-
const n = _.transitions.getAutoHeightDuration(N);
|
|
170
|
-
I.style.transitionDuration = `${n}ms`, q.current = n;
|
|
171
|
-
} else
|
|
172
|
-
I.style.transitionDuration = typeof Z == "string" ? Z : `${Z}ms`;
|
|
173
|
-
I.style[z] = `${N}px`, I.style.transitionTimingFunction = a, r && r(I, L);
|
|
174
|
-
}), Q = A((I, L) => {
|
|
175
|
-
I.style[z] = "auto", C && C(I, L);
|
|
176
|
-
}), re = A((I) => {
|
|
177
|
-
I.style[z] = `${G()}px`, y && y(I);
|
|
178
|
-
}), ue = A(S), me = A((I) => {
|
|
179
|
-
const L = G(), {
|
|
180
|
-
duration: N,
|
|
181
|
-
easing: Z
|
|
182
|
-
} = he({
|
|
183
|
-
style: W,
|
|
184
|
-
timeout: w,
|
|
185
|
-
easing: c
|
|
186
|
-
}, {
|
|
187
|
-
mode: "exit"
|
|
188
|
-
});
|
|
189
|
-
if (w === "auto") {
|
|
190
|
-
const a = _.transitions.getAutoHeightDuration(L);
|
|
191
|
-
I.style.transitionDuration = `${a}ms`, q.current = a;
|
|
192
|
-
} else
|
|
193
|
-
I.style.transitionDuration = typeof N == "string" ? N : `${N}ms`;
|
|
194
|
-
I.style[z] = U, I.style.transitionTimingFunction = Z, O && O(I);
|
|
195
|
-
});
|
|
196
|
-
return /* @__PURE__ */ x(E, {
|
|
197
|
-
in: h,
|
|
198
|
-
onEnter: J,
|
|
199
|
-
onEntered: Q,
|
|
200
|
-
onEntering: ee,
|
|
201
|
-
onExit: re,
|
|
202
|
-
onExited: ue,
|
|
203
|
-
onExiting: me,
|
|
204
|
-
addEndListener: (I) => {
|
|
205
|
-
w === "auto" && Y.start(q.current || 0, I), p && p(B.current, I);
|
|
206
|
-
},
|
|
207
|
-
nodeRef: B,
|
|
208
|
-
timeout: w === "auto" ? null : w,
|
|
209
|
-
...P,
|
|
210
|
-
children: (I, {
|
|
211
|
-
ownerState: L,
|
|
212
|
-
...N
|
|
213
|
-
}) => /* @__PURE__ */ x(rt, {
|
|
214
|
-
as: f,
|
|
215
|
-
className: ve(D.root, m, {
|
|
216
|
-
entered: D.entered,
|
|
217
|
-
exited: !h && U === "0px" && D.hidden
|
|
218
|
-
}[I]),
|
|
219
|
-
style: {
|
|
220
|
-
[k ? "minWidth" : "minHeight"]: U,
|
|
221
|
-
...W
|
|
222
|
-
},
|
|
223
|
-
ref: H,
|
|
224
|
-
ownerState: {
|
|
225
|
-
...T,
|
|
226
|
-
state: I
|
|
227
|
-
},
|
|
228
|
-
...N,
|
|
229
|
-
children: /* @__PURE__ */ x(it, {
|
|
230
|
-
ownerState: {
|
|
231
|
-
...T,
|
|
232
|
-
state: I
|
|
233
|
-
},
|
|
234
|
-
className: D.wrapper,
|
|
235
|
-
ref: M,
|
|
236
|
-
children: /* @__PURE__ */ x(st, {
|
|
237
|
-
ownerState: {
|
|
238
|
-
...T,
|
|
239
|
-
state: I
|
|
240
|
-
},
|
|
241
|
-
className: D.wrapperInner,
|
|
242
|
-
children: d
|
|
243
|
-
})
|
|
244
|
-
})
|
|
245
|
-
})
|
|
246
|
-
});
|
|
247
|
-
});
|
|
248
|
-
process.env.NODE_ENV !== "production" && (se.propTypes = {
|
|
249
|
-
// ┌────────────────────────────── Warning ──────────────────────────────┐
|
|
250
|
-
// │ These PropTypes are generated from the TypeScript type definitions. │
|
|
251
|
-
// │ To update them, edit the d.ts file and run `pnpm proptypes`. │
|
|
252
|
-
// └─────────────────────────────────────────────────────────────────────┘
|
|
253
|
-
/**
|
|
254
|
-
* Add a custom transition end trigger. Called with the transitioning DOM
|
|
255
|
-
* node and a done callback. Allows for more fine grained transition end
|
|
256
|
-
* logic. Note: Timeouts are still used as a fallback if provided.
|
|
257
|
-
*/
|
|
258
|
-
addEndListener: i.func,
|
|
259
|
-
/**
|
|
260
|
-
* The content node to be collapsed.
|
|
261
|
-
*/
|
|
262
|
-
children: i.node,
|
|
263
|
-
/**
|
|
264
|
-
* Override or extend the styles applied to the component.
|
|
265
|
-
*/
|
|
266
|
-
classes: i.object,
|
|
267
|
-
/**
|
|
268
|
-
* @ignore
|
|
269
|
-
*/
|
|
270
|
-
className: i.string,
|
|
271
|
-
/**
|
|
272
|
-
* The width (horizontal) or height (vertical) of the container when collapsed.
|
|
273
|
-
* @default '0px'
|
|
274
|
-
*/
|
|
275
|
-
collapsedSize: i.oneOfType([i.number, i.string]),
|
|
276
|
-
/**
|
|
277
|
-
* The component used for the root node.
|
|
278
|
-
* Either a string to use a HTML element or a component.
|
|
279
|
-
*/
|
|
280
|
-
component: Ze,
|
|
281
|
-
/**
|
|
282
|
-
* The transition timing function.
|
|
283
|
-
* You may specify a single easing or a object containing enter and exit values.
|
|
284
|
-
*/
|
|
285
|
-
easing: i.oneOfType([i.shape({
|
|
286
|
-
enter: i.string,
|
|
287
|
-
exit: i.string
|
|
288
|
-
}), i.string]),
|
|
289
|
-
/**
|
|
290
|
-
* If `true`, the component will transition in.
|
|
291
|
-
*/
|
|
292
|
-
in: i.bool,
|
|
293
|
-
/**
|
|
294
|
-
* @ignore
|
|
295
|
-
*/
|
|
296
|
-
onEnter: i.func,
|
|
297
|
-
/**
|
|
298
|
-
* @ignore
|
|
299
|
-
*/
|
|
300
|
-
onEntered: i.func,
|
|
301
|
-
/**
|
|
302
|
-
* @ignore
|
|
303
|
-
*/
|
|
304
|
-
onEntering: i.func,
|
|
305
|
-
/**
|
|
306
|
-
* @ignore
|
|
307
|
-
*/
|
|
308
|
-
onExit: i.func,
|
|
309
|
-
/**
|
|
310
|
-
* @ignore
|
|
311
|
-
*/
|
|
312
|
-
onExited: i.func,
|
|
313
|
-
/**
|
|
314
|
-
* @ignore
|
|
315
|
-
*/
|
|
316
|
-
onExiting: i.func,
|
|
317
|
-
/**
|
|
318
|
-
* The transition orientation.
|
|
319
|
-
* @default 'vertical'
|
|
320
|
-
*/
|
|
321
|
-
orientation: i.oneOf(["horizontal", "vertical"]),
|
|
322
|
-
/**
|
|
323
|
-
* @ignore
|
|
324
|
-
*/
|
|
325
|
-
style: i.object,
|
|
326
|
-
/**
|
|
327
|
-
* The system prop that allows defining system overrides as well as additional CSS styles.
|
|
328
|
-
*/
|
|
329
|
-
sx: i.oneOfType([i.arrayOf(i.oneOfType([i.func, i.object, i.bool])), i.func, i.object]),
|
|
330
|
-
/**
|
|
331
|
-
* The duration for the transition, in milliseconds.
|
|
332
|
-
* You may specify a single timeout for all transitions, or individually with an object.
|
|
333
|
-
*
|
|
334
|
-
* Set to 'auto' to automatically calculate transition time based on height.
|
|
335
|
-
* @default duration.standard
|
|
336
|
-
*/
|
|
337
|
-
timeout: i.oneOfType([i.oneOf(["auto"]), i.number, i.shape({
|
|
338
|
-
appear: i.number,
|
|
339
|
-
enter: i.number,
|
|
340
|
-
exit: i.number
|
|
341
|
-
})])
|
|
342
|
-
});
|
|
343
|
-
se && (se.muiSupportAuto = !0);
|
|
344
|
-
const at = ae(/* @__PURE__ */ x("path", {
|
|
345
|
-
d: "M7.41 8.59 12 13.17l4.59-4.58L18 10l-6 6-6-6z"
|
|
346
|
-
}), "KeyboardArrowDown"), lt = ae(/* @__PURE__ */ x("path", {
|
|
347
|
-
d: "M8.59 16.59 13.17 12 8.59 7.41 10 6l6 6-6 6z"
|
|
348
|
-
}), "KeyboardArrowRight");
|
|
349
|
-
function dt(e) {
|
|
350
|
-
return _e;
|
|
351
|
-
}
|
|
352
|
-
let ye = 0;
|
|
353
|
-
const eo = () => (ye += 1, `mui-tree-view-${ye}`), ct = ({
|
|
354
|
-
id: e,
|
|
355
|
-
treeId: t = "",
|
|
356
|
-
itemId: o
|
|
357
|
-
}) => e ?? `${t}-${o}`, Ee = /* @__PURE__ */ R.createContext(null);
|
|
358
|
-
process.env.NODE_ENV !== "production" && (Ee.displayName = "TreeViewContext");
|
|
359
|
-
const ne = () => {
|
|
360
|
-
const e = R.useContext(Ee);
|
|
361
|
-
if (e == null)
|
|
362
|
-
throw new Error(["MUI X: Could not find the Tree View context.", "It looks like you rendered your component outside of a SimpleTreeView or RichTreeView parent component.", "This can also happen if you are bundling multiple versions of the Tree View."].join(`
|
|
363
|
-
`));
|
|
364
|
-
return e;
|
|
365
|
-
}, Re = /* @__PURE__ */ R.createContext(() => -1);
|
|
366
|
-
process.env.NODE_ENV !== "production" && (Re.displayName = "TreeViewItemDepthContext");
|
|
367
|
-
const Se = (e, t) => {
|
|
368
|
-
let o = t.length - 1;
|
|
369
|
-
for (; o >= 0 && !e.isItemNavigable(t[o]); )
|
|
370
|
-
o -= 1;
|
|
371
|
-
if (o !== -1)
|
|
372
|
-
return t[o];
|
|
373
|
-
}, pt = (e, t) => {
|
|
374
|
-
const o = e.getItemMeta(t), s = e.getItemOrderedChildrenIds(o.parentId), p = e.getItemIndex(t);
|
|
375
|
-
if (p === 0)
|
|
376
|
-
return o.parentId;
|
|
377
|
-
let d = p - 1;
|
|
378
|
-
for (; !e.isItemNavigable(s[d]) && d >= 0; )
|
|
379
|
-
d -= 1;
|
|
380
|
-
if (d === -1)
|
|
381
|
-
return o.parentId == null ? null : pt(e, o.parentId);
|
|
382
|
-
let m = s[d], l = Se(e, e.getItemOrderedChildrenIds(m));
|
|
383
|
-
for (; e.isItemExpanded(m) && l != null; )
|
|
384
|
-
m = l, l = e.getItemOrderedChildrenIds(m).find(e.isItemNavigable);
|
|
385
|
-
return m;
|
|
386
|
-
}, ut = (e, t) => {
|
|
387
|
-
if (e.isItemExpanded(t)) {
|
|
388
|
-
const s = e.getItemOrderedChildrenIds(t).find(e.isItemNavigable);
|
|
389
|
-
if (s != null)
|
|
390
|
-
return s;
|
|
391
|
-
}
|
|
392
|
-
let o = e.getItemMeta(t);
|
|
393
|
-
for (; o != null; ) {
|
|
394
|
-
const s = e.getItemOrderedChildrenIds(o.parentId), p = e.getItemIndex(o.id);
|
|
395
|
-
if (p < s.length - 1) {
|
|
396
|
-
let d = p + 1;
|
|
397
|
-
for (; !e.isItemNavigable(s[d]) && d < s.length - 1; )
|
|
398
|
-
d += 1;
|
|
399
|
-
if (e.isItemNavigable(s[d]))
|
|
400
|
-
return s[d];
|
|
401
|
-
}
|
|
402
|
-
o = e.getItemMeta(o.parentId);
|
|
403
|
-
}
|
|
404
|
-
return null;
|
|
405
|
-
}, to = (e) => {
|
|
406
|
-
let t = null;
|
|
407
|
-
for (; t == null || e.isItemExpanded(t); ) {
|
|
408
|
-
const o = e.getItemOrderedChildrenIds(t), s = Se(e, o);
|
|
409
|
-
if (s == null)
|
|
410
|
-
return t;
|
|
411
|
-
t = s;
|
|
412
|
-
}
|
|
413
|
-
return t;
|
|
414
|
-
}, mt = (e) => e.getItemOrderedChildrenIds(null).find(e.isItemNavigable), gt = (e, t, o) => {
|
|
415
|
-
if (t === o)
|
|
416
|
-
return [t, o];
|
|
417
|
-
const s = e.getItemMeta(t), p = e.getItemMeta(o);
|
|
418
|
-
if (s.parentId === p.id || p.parentId === s.id)
|
|
419
|
-
return p.parentId === s.id ? [s.id, p.id] : [p.id, s.id];
|
|
420
|
-
const d = [s.id], m = [p.id];
|
|
421
|
-
let l = s.parentId, f = p.parentId, c = m.indexOf(l) !== -1, h = d.indexOf(f) !== -1, b = !0, C = !0;
|
|
422
|
-
for (; !h && !c; )
|
|
423
|
-
b && (d.push(l), c = m.indexOf(l) !== -1, b = l !== null, !c && b && (l = e.getItemMeta(l).parentId)), C && !c && (m.push(f), h = d.indexOf(f) !== -1, C = f !== null, !h && C && (f = e.getItemMeta(f).parentId));
|
|
424
|
-
const r = c ? l : f, y = e.getItemOrderedChildrenIds(r), S = d[d.indexOf(r) - 1], O = m[m.indexOf(r) - 1];
|
|
425
|
-
return y.indexOf(S) < y.indexOf(O) ? [t, o] : [o, t];
|
|
426
|
-
}, oo = (e, t, o) => {
|
|
427
|
-
const s = (f) => {
|
|
428
|
-
if (e.isItemExpandable(f) && e.isItemExpanded(f))
|
|
429
|
-
return e.getItemOrderedChildrenIds(f)[0];
|
|
430
|
-
let c = e.getItemMeta(f);
|
|
431
|
-
for (; c != null; ) {
|
|
432
|
-
const h = e.getItemOrderedChildrenIds(c.parentId), b = e.getItemIndex(c.id);
|
|
433
|
-
if (b < h.length - 1)
|
|
434
|
-
return h[b + 1];
|
|
435
|
-
c = e.getItemMeta(c.parentId);
|
|
436
|
-
}
|
|
437
|
-
throw new Error("Invalid range");
|
|
438
|
-
}, [p, d] = gt(e, t, o), m = [p];
|
|
439
|
-
let l = p;
|
|
440
|
-
for (; l !== d; )
|
|
441
|
-
l = s(l), e.isItemDisabled(l) || m.push(l);
|
|
442
|
-
return m;
|
|
443
|
-
}, no = (e) => {
|
|
444
|
-
let t = mt(e);
|
|
445
|
-
const o = [];
|
|
446
|
-
for (; t != null; )
|
|
447
|
-
o.push(t), t = ut(e, t);
|
|
448
|
-
return o;
|
|
449
|
-
}, xe = (e, t) => t !== e.closest('*[role="treeitem"]'), de = (e, t) => e.getAvailablePlugins().has(t), ft = ({
|
|
450
|
-
props: e
|
|
451
|
-
}) => {
|
|
452
|
-
const {
|
|
453
|
-
instance: t
|
|
454
|
-
} = ne(), {
|
|
455
|
-
label: o,
|
|
456
|
-
itemId: s
|
|
457
|
-
} = e, [p, d] = R.useState(o), m = t.isItemBeingEdited(s);
|
|
458
|
-
return R.useEffect(() => {
|
|
459
|
-
m || d(o);
|
|
460
|
-
}, [m, o]), {
|
|
461
|
-
propsEnhancers: {
|
|
462
|
-
labelInput: ({
|
|
463
|
-
externalEventHandlers: l,
|
|
464
|
-
interactions: f
|
|
465
|
-
}) => t.isItemEditable(s) ? {
|
|
466
|
-
value: p ?? "",
|
|
467
|
-
"data-element": "labelInput",
|
|
468
|
-
onChange: (r) => {
|
|
469
|
-
var y;
|
|
470
|
-
(y = l.onChange) == null || y.call(l, r), d(r.target.value);
|
|
471
|
-
},
|
|
472
|
-
onKeyDown: (r) => {
|
|
473
|
-
var S;
|
|
474
|
-
if ((S = l.onKeyDown) == null || S.call(l, r), r.defaultMuiPrevented)
|
|
475
|
-
return;
|
|
476
|
-
const y = r.target;
|
|
477
|
-
r.key === "Enter" && y.value ? f.handleSaveItemLabel(r, y.value) : r.key === "Escape" && f.handleCancelItemLabelEditing(r);
|
|
478
|
-
},
|
|
479
|
-
onBlur: (r) => {
|
|
480
|
-
var y;
|
|
481
|
-
(y = l.onBlur) == null || y.call(l, r), !r.defaultMuiPrevented && r.target.value && f.handleSaveItemLabel(r, r.target.value);
|
|
482
|
-
},
|
|
483
|
-
autoFocus: !0,
|
|
484
|
-
type: "text"
|
|
485
|
-
} : {}
|
|
486
|
-
}
|
|
487
|
-
};
|
|
488
|
-
}, X = ({
|
|
489
|
-
instance: e,
|
|
490
|
-
state: t,
|
|
491
|
-
setState: o,
|
|
492
|
-
params: s
|
|
493
|
-
}) => {
|
|
494
|
-
const p = R.useRef(t.editedItemId), d = (b) => p.current === b, m = (b) => {
|
|
495
|
-
o((C) => g({}, C, {
|
|
496
|
-
editedItemId: b
|
|
497
|
-
})), p.current = b;
|
|
498
|
-
}, l = (b) => b === t.editedItemId, f = !!s.isItemEditable, c = (b) => {
|
|
499
|
-
if (b == null || !f)
|
|
500
|
-
return !1;
|
|
501
|
-
const C = e.getItem(b);
|
|
502
|
-
return C ? typeof s.isItemEditable == "function" ? s.isItemEditable(C) : !!s.isItemEditable : !1;
|
|
503
|
-
}, h = (b, C) => {
|
|
504
|
-
if (!C)
|
|
505
|
-
throw new Error(["MUI X: The Tree View component requires all items to have a `label` property.", "The label of an item cannot be empty.", b].join(`
|
|
506
|
-
`));
|
|
507
|
-
o((r) => {
|
|
508
|
-
const y = r.items.itemMetaMap[b];
|
|
509
|
-
return y.label !== C ? g({}, r, {
|
|
510
|
-
items: g({}, r.items, {
|
|
511
|
-
itemMetaMap: g({}, r.items.itemMetaMap, {
|
|
512
|
-
[b]: g({}, y, {
|
|
513
|
-
label: C
|
|
514
|
-
})
|
|
515
|
-
})
|
|
516
|
-
})
|
|
517
|
-
}) : r;
|
|
518
|
-
}), s.onItemLabelChange && s.onItemLabelChange(b, C);
|
|
519
|
-
};
|
|
520
|
-
return {
|
|
521
|
-
instance: {
|
|
522
|
-
setEditedItemId: m,
|
|
523
|
-
isItemBeingEdited: l,
|
|
524
|
-
updateItemLabel: h,
|
|
525
|
-
isItemEditable: c,
|
|
526
|
-
isTreeViewEditable: f,
|
|
527
|
-
isItemBeingEditedRef: d
|
|
528
|
-
},
|
|
529
|
-
publicAPI: {
|
|
530
|
-
updateItemLabel: h
|
|
531
|
-
}
|
|
532
|
-
};
|
|
533
|
-
};
|
|
534
|
-
X.itemPlugin = ft;
|
|
535
|
-
X.getDefaultizedParams = ({
|
|
536
|
-
params: e,
|
|
537
|
-
experimentalFeatures: t
|
|
538
|
-
}) => {
|
|
539
|
-
const o = t == null ? void 0 : t.labelEditing;
|
|
540
|
-
return process.env.NODE_ENV !== "production" && e.isItemEditable && !o && ze(["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/"]), g({}, e, {
|
|
541
|
-
isItemEditable: o ? e.isItemEditable ?? !1 : !1
|
|
542
|
-
});
|
|
543
|
-
};
|
|
544
|
-
X.getInitialState = () => ({
|
|
545
|
-
editedItemId: null
|
|
546
|
-
});
|
|
547
|
-
X.params = {
|
|
548
|
-
onItemLabelChange: !0,
|
|
549
|
-
isItemEditable: !0
|
|
550
|
-
};
|
|
551
|
-
const bt = V("div", {
|
|
552
|
-
name: "MuiTreeItem2DragAndDropOverlay",
|
|
553
|
-
slot: "Root",
|
|
554
|
-
overridesResolver: (e, t) => t.root,
|
|
555
|
-
shouldForwardProp: (e) => le(e) && e !== "action"
|
|
556
|
-
})(({
|
|
557
|
-
theme: e
|
|
558
|
-
}) => ({
|
|
559
|
-
position: "absolute",
|
|
560
|
-
left: 0,
|
|
561
|
-
display: "flex",
|
|
562
|
-
top: 0,
|
|
563
|
-
bottom: 0,
|
|
564
|
-
right: 0,
|
|
565
|
-
pointerEvents: "none",
|
|
566
|
-
variants: [{
|
|
567
|
-
props: {
|
|
568
|
-
action: "make-child"
|
|
569
|
-
},
|
|
570
|
-
style: {
|
|
571
|
-
marginLeft: "calc(var(--TreeView-indentMultiplier) * var(--TreeView-itemDepth))",
|
|
572
|
-
borderRadius: e.shape.borderRadius,
|
|
573
|
-
backgroundColor: e.vars ? `rgba(${e.vars.palette.primary.darkChannel} / ${e.vars.palette.action.focusOpacity})` : oe(e.palette.primary.dark, e.palette.action.focusOpacity)
|
|
574
|
-
}
|
|
575
|
-
}, {
|
|
576
|
-
props: {
|
|
577
|
-
action: "reorder-above"
|
|
578
|
-
},
|
|
579
|
-
style: {
|
|
580
|
-
marginLeft: "calc(var(--TreeView-indentMultiplier) * var(--TreeView-itemDepth))",
|
|
581
|
-
borderTop: `1px solid ${(e.vars || e).palette.action.active}`
|
|
582
|
-
}
|
|
583
|
-
}, {
|
|
584
|
-
props: {
|
|
585
|
-
action: "reorder-below"
|
|
586
|
-
},
|
|
587
|
-
style: {
|
|
588
|
-
marginLeft: "calc(var(--TreeView-indentMultiplier) * var(--TreeView-itemDepth))",
|
|
589
|
-
borderBottom: `1px solid ${(e.vars || e).palette.action.active}`
|
|
590
|
-
}
|
|
591
|
-
}, {
|
|
592
|
-
props: {
|
|
593
|
-
action: "move-to-parent"
|
|
594
|
-
},
|
|
595
|
-
style: {
|
|
596
|
-
marginLeft: "calc(var(--TreeView-indentMultiplier) * calc(var(--TreeView-itemDepth) - 1))",
|
|
597
|
-
borderBottom: `1px solid ${(e.vars || e).palette.action.active}`
|
|
598
|
-
}
|
|
599
|
-
}]
|
|
600
|
-
}));
|
|
601
|
-
function Oe(e) {
|
|
602
|
-
return e.action == null ? null : /* @__PURE__ */ x(bt, g({}, e));
|
|
603
|
-
}
|
|
604
|
-
process.env.NODE_ENV !== "production" && (Oe.propTypes = {
|
|
605
|
-
// ----------------------------- Warning --------------------------------
|
|
606
|
-
// | These PropTypes are generated from the TypeScript type definitions |
|
|
607
|
-
// | To update them edit the TypeScript types and run "pnpm proptypes" |
|
|
608
|
-
// ----------------------------------------------------------------------
|
|
609
|
-
action: i.oneOf(["make-child", "move-to-parent", "reorder-above", "reorder-below"]),
|
|
610
|
-
style: i.object
|
|
611
|
-
});
|
|
612
|
-
const It = V("input", {
|
|
613
|
-
name: "MuiTreeItem2",
|
|
614
|
-
slot: "LabelInput",
|
|
615
|
-
overridesResolver: (e, t) => t.labelInput
|
|
616
|
-
})(({
|
|
617
|
-
theme: e
|
|
618
|
-
}) => g({}, e.typography.body1, {
|
|
619
|
-
width: "100%",
|
|
620
|
-
backgroundColor: e.palette.background.paper,
|
|
621
|
-
borderRadius: e.shape.borderRadius,
|
|
622
|
-
border: "none",
|
|
623
|
-
padding: "0 2px",
|
|
624
|
-
boxSizing: "border-box",
|
|
625
|
-
"&:focus": {
|
|
626
|
-
outline: `1px solid ${e.palette.primary.main}`
|
|
627
|
-
}
|
|
628
|
-
}));
|
|
629
|
-
function ht(e) {
|
|
630
|
-
return we("MuiTreeItem", e);
|
|
631
|
-
}
|
|
632
|
-
const ro = Te("MuiTreeItem", ["root", "groupTransition", "content", "expanded", "selected", "focused", "disabled", "iconContainer", "label", "checkbox", "labelInput", "editable", "editing", "dragAndDropOverlay"]), yt = ae(/* @__PURE__ */ x("path", {
|
|
633
|
-
d: "M10 6 8.59 7.41 13.17 12l-4.58 4.59L10 18l6-6z"
|
|
634
|
-
}), "TreeViewExpandIcon"), xt = ae(/* @__PURE__ */ x("path", {
|
|
635
|
-
d: "M16.59 8.59 12 13.17 7.41 8.59 6 10l6 6 6-6z"
|
|
636
|
-
}), "TreeViewCollapseIcon");
|
|
637
|
-
function pe(e) {
|
|
638
|
-
const {
|
|
639
|
-
children: t,
|
|
640
|
-
itemId: o
|
|
641
|
-
} = e, {
|
|
642
|
-
wrapItem: s,
|
|
643
|
-
instance: p
|
|
644
|
-
} = ne();
|
|
645
|
-
return s({
|
|
646
|
-
children: t,
|
|
647
|
-
itemId: o,
|
|
648
|
-
instance: p
|
|
649
|
-
});
|
|
650
|
-
}
|
|
651
|
-
pe.propTypes = {
|
|
652
|
-
// ----------------------------- Warning --------------------------------
|
|
653
|
-
// | These PropTypes are generated from the TypeScript type definitions |
|
|
654
|
-
// | To update them edit the TypeScript types and run "pnpm proptypes" |
|
|
655
|
-
// ----------------------------------------------------------------------
|
|
656
|
-
children: i.node,
|
|
657
|
-
itemId: i.string.isRequired
|
|
658
|
-
};
|
|
659
|
-
const De = (e) => Array.isArray(e) ? e.length > 0 && e.some(De) : !!e, Ct = ({
|
|
660
|
-
itemId: e,
|
|
661
|
-
children: t
|
|
662
|
-
}) => {
|
|
663
|
-
const {
|
|
664
|
-
instance: o,
|
|
665
|
-
selection: {
|
|
666
|
-
multiSelect: s
|
|
667
|
-
},
|
|
668
|
-
publicAPI: p
|
|
669
|
-
} = ne(), d = {
|
|
670
|
-
expandable: De(t),
|
|
671
|
-
expanded: o.isItemExpanded(e),
|
|
672
|
-
focused: o.isItemFocused(e),
|
|
673
|
-
selected: o.isItemSelected(e),
|
|
674
|
-
disabled: o.isItemDisabled(e),
|
|
675
|
-
editing: o != null && o.isItemBeingEdited ? o == null ? void 0 : o.isItemBeingEdited(e) : !1,
|
|
676
|
-
editable: o.isItemEditable ? o.isItemEditable(e) : !1
|
|
677
|
-
}, m = (r) => {
|
|
678
|
-
if (d.disabled)
|
|
679
|
-
return;
|
|
680
|
-
d.focused || o.focusItem(r, e);
|
|
681
|
-
const y = s && (r.shiftKey || r.ctrlKey || r.metaKey);
|
|
682
|
-
d.expandable && !(y && o.isItemExpanded(e)) && o.toggleItemExpansion(r, e);
|
|
683
|
-
}, l = (r) => {
|
|
684
|
-
if (d.disabled)
|
|
685
|
-
return;
|
|
686
|
-
d.focused || o.focusItem(r, e), s && (r.shiftKey || r.ctrlKey || r.metaKey) ? r.shiftKey ? o.expandSelectionRange(r, e) : o.selectItem({
|
|
687
|
-
event: r,
|
|
688
|
-
itemId: e,
|
|
689
|
-
keepExistingSelection: !0
|
|
690
|
-
}) : o.selectItem({
|
|
691
|
-
event: r,
|
|
692
|
-
itemId: e,
|
|
693
|
-
shouldBeSelected: !0
|
|
694
|
-
});
|
|
695
|
-
}, f = (r) => {
|
|
696
|
-
const y = r.nativeEvent.shiftKey;
|
|
697
|
-
s && y ? o.expandSelectionRange(r, e) : o.selectItem({
|
|
698
|
-
event: r,
|
|
699
|
-
itemId: e,
|
|
700
|
-
keepExistingSelection: s,
|
|
701
|
-
shouldBeSelected: r.target.checked
|
|
702
|
-
});
|
|
703
|
-
}, c = () => {
|
|
704
|
-
de(o, X) && o.isItemEditable(e) && (o.isItemBeingEdited(e) ? o.setEditedItemId(null) : o.setEditedItemId(e));
|
|
705
|
-
};
|
|
706
|
-
return {
|
|
707
|
-
interactions: {
|
|
708
|
-
handleExpansion: m,
|
|
709
|
-
handleSelection: l,
|
|
710
|
-
handleCheckboxSelection: f,
|
|
711
|
-
toggleItemEditing: c,
|
|
712
|
-
handleSaveItemLabel: (r, y) => {
|
|
713
|
-
de(o, X) && o.isItemBeingEditedRef(e) && (o.updateItemLabel(e, y), c(), o.focusItem(r, e));
|
|
714
|
-
},
|
|
715
|
-
handleCancelItemLabelEditing: (r) => {
|
|
716
|
-
de(o, X) && o.isItemBeingEditedRef(e) && (c(), o.focusItem(r, e));
|
|
717
|
-
}
|
|
718
|
-
},
|
|
719
|
-
status: d,
|
|
720
|
-
publicAPI: p
|
|
721
|
-
};
|
|
722
|
-
}, Tt = (e) => {
|
|
723
|
-
const {
|
|
724
|
-
runItemPlugins: t,
|
|
725
|
-
items: {
|
|
726
|
-
onItemClick: o,
|
|
727
|
-
disabledItemsFocusable: s,
|
|
728
|
-
indentationAtItemLevel: p
|
|
729
|
-
},
|
|
730
|
-
selection: {
|
|
731
|
-
disableSelection: d,
|
|
732
|
-
checkboxSelection: m
|
|
733
|
-
},
|
|
734
|
-
expansion: {
|
|
735
|
-
expansionTrigger: l
|
|
736
|
-
},
|
|
737
|
-
treeId: f,
|
|
738
|
-
instance: c,
|
|
739
|
-
publicAPI: h
|
|
740
|
-
} = ne(), b = R.useContext(Re), {
|
|
741
|
-
id: C,
|
|
742
|
-
itemId: r,
|
|
743
|
-
label: y,
|
|
744
|
-
children: S,
|
|
745
|
-
rootRef: O
|
|
746
|
-
} = e, {
|
|
747
|
-
rootRef: j,
|
|
748
|
-
contentRef: W,
|
|
749
|
-
propsEnhancers: w
|
|
750
|
-
} = t(e), {
|
|
751
|
-
interactions: E,
|
|
752
|
-
status: P
|
|
753
|
-
} = Ct({
|
|
754
|
-
itemId: r,
|
|
755
|
-
children: S
|
|
756
|
-
}), T = R.useRef(null), D = R.useRef(null), _ = ce(O, j, T), Y = ce(W, D), M = R.useRef(null), q = ct({
|
|
757
|
-
itemId: r,
|
|
758
|
-
treeId: f,
|
|
759
|
-
id: C
|
|
760
|
-
}), U = c.canItemBeTabbed(r) ? 0 : -1, k = {
|
|
761
|
-
rootRefObject: T,
|
|
762
|
-
contentRefObject: D,
|
|
763
|
-
interactions: E
|
|
764
|
-
}, z = (a) => (n) => {
|
|
765
|
-
var v;
|
|
766
|
-
if ((v = a.onFocus) == null || v.call(a, n), n.defaultMuiPrevented)
|
|
767
|
-
return;
|
|
768
|
-
const u = !P.disabled || s;
|
|
769
|
-
!P.focused && u && n.currentTarget === n.target && c.focusItem(n, r);
|
|
770
|
-
}, B = (a) => (n) => {
|
|
771
|
-
var v, $, te, ge, fe;
|
|
772
|
-
if ((v = a.onBlur) == null || v.call(a, n), n.defaultMuiPrevented)
|
|
773
|
-
return;
|
|
774
|
-
const u = c.getItemDOMElement(r);
|
|
775
|
-
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
|
|
776
|
-
// 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
|
|
777
|
-
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 = (ge = n.relatedTarget) == null ? void 0 : ge.dataset) == null ? void 0 : fe.element) === "labelInput") || c.removeFocusedItem();
|
|
778
|
-
}, H = (a) => (n) => {
|
|
779
|
-
var u, v, $;
|
|
780
|
-
(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);
|
|
781
|
-
}, A = (a) => (n) => {
|
|
782
|
-
var u;
|
|
783
|
-
(u = a.onDoubleClick) == null || u.call(a, n), !n.defaultMuiPrevented && E.toggleItemEditing();
|
|
784
|
-
}, G = (a) => (n) => {
|
|
785
|
-
var u, v;
|
|
786
|
-
(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), m || E.handleSelection(n));
|
|
787
|
-
}, J = (a) => (n) => {
|
|
788
|
-
var u;
|
|
789
|
-
(u = a.onMouseDown) == null || u.call(a, n), !n.defaultMuiPrevented && (n.shiftKey || n.ctrlKey || n.metaKey || P.disabled) && n.preventDefault();
|
|
790
|
-
}, ee = (a) => (n) => {
|
|
791
|
-
var u;
|
|
792
|
-
(u = a.onChange) == null || u.call(a, n), !n.defaultMuiPrevented && (d || P.disabled || E.handleCheckboxSelection(n));
|
|
793
|
-
}, Q = (a) => (n) => {
|
|
794
|
-
var u;
|
|
795
|
-
(u = a.onClick) == null || u.call(a, n), !n.defaultMuiPrevented && l === "iconContainer" && E.handleExpansion(n);
|
|
796
|
-
};
|
|
797
|
-
return {
|
|
798
|
-
getRootProps: (a = {}) => {
|
|
799
|
-
var te;
|
|
800
|
-
const n = g({}, K(e), K(a));
|
|
801
|
-
let u;
|
|
802
|
-
P.selected ? u = !0 : d || P.disabled ? u = void 0 : u = !1;
|
|
803
|
-
const v = g({}, n, {
|
|
804
|
-
ref: _,
|
|
805
|
-
role: "treeitem",
|
|
806
|
-
tabIndex: U,
|
|
807
|
-
id: q,
|
|
808
|
-
"aria-expanded": P.expandable ? P.expanded : void 0,
|
|
809
|
-
"aria-selected": u,
|
|
810
|
-
"aria-disabled": P.disabled || void 0
|
|
811
|
-
}, a, {
|
|
812
|
-
onFocus: z(n),
|
|
813
|
-
onBlur: B(n),
|
|
814
|
-
onKeyDown: H(n)
|
|
815
|
-
});
|
|
816
|
-
p && (v.style = {
|
|
817
|
-
"--TreeView-itemDepth": typeof b == "function" ? b(r) : b
|
|
818
|
-
});
|
|
819
|
-
const $ = ((te = w.root) == null ? void 0 : te.call(w, g({}, k, {
|
|
820
|
-
externalEventHandlers: n
|
|
821
|
-
}))) ?? {};
|
|
822
|
-
return g({}, v, $);
|
|
823
|
-
},
|
|
824
|
-
getContentProps: (a = {}) => {
|
|
825
|
-
var $;
|
|
826
|
-
const n = K(a), u = g({}, n, a, {
|
|
827
|
-
ref: Y,
|
|
828
|
-
onClick: G(n),
|
|
829
|
-
onMouseDown: J(n),
|
|
830
|
-
status: P
|
|
831
|
-
});
|
|
832
|
-
p && (u.indentationAtItemLevel = !0);
|
|
833
|
-
const v = (($ = w.content) == null ? void 0 : $.call(w, g({}, k, {
|
|
834
|
-
externalEventHandlers: n
|
|
835
|
-
}))) ?? {};
|
|
836
|
-
return g({}, u, v);
|
|
837
|
-
},
|
|
838
|
-
getGroupTransitionProps: (a = {}) => {
|
|
839
|
-
const n = K(a), u = g({}, n, {
|
|
840
|
-
unmountOnExit: !0,
|
|
841
|
-
component: "ul",
|
|
842
|
-
role: "group",
|
|
843
|
-
in: P.expanded,
|
|
844
|
-
children: S
|
|
845
|
-
}, a);
|
|
846
|
-
return p && (u.indentationAtItemLevel = !0), u;
|
|
847
|
-
},
|
|
848
|
-
getIconContainerProps: (a = {}) => {
|
|
849
|
-
const n = K(a);
|
|
850
|
-
return g({}, n, a, {
|
|
851
|
-
onClick: Q(n)
|
|
852
|
-
});
|
|
853
|
-
},
|
|
854
|
-
getCheckboxProps: (a = {}) => {
|
|
855
|
-
const n = K(a);
|
|
856
|
-
return g({}, n, {
|
|
857
|
-
visible: m,
|
|
858
|
-
ref: M,
|
|
859
|
-
checked: P.selected,
|
|
860
|
-
disabled: d || P.disabled,
|
|
861
|
-
tabIndex: -1
|
|
862
|
-
}, a, {
|
|
863
|
-
onChange: ee(n)
|
|
864
|
-
});
|
|
865
|
-
},
|
|
866
|
-
getLabelProps: (a = {}) => {
|
|
867
|
-
const n = g({}, K(a)), u = g({}, n, {
|
|
868
|
-
children: y
|
|
869
|
-
}, a, {
|
|
870
|
-
onDoubleClick: A(n)
|
|
871
|
-
});
|
|
872
|
-
return c.isTreeViewEditable && (u.editable = P.editable), u;
|
|
873
|
-
},
|
|
874
|
-
getLabelInputProps: (a = {}) => {
|
|
875
|
-
var v;
|
|
876
|
-
const n = K(a), u = ((v = w.labelInput) == null ? void 0 : v.call(w, {
|
|
877
|
-
rootRefObject: T,
|
|
878
|
-
contentRefObject: D,
|
|
879
|
-
externalEventHandlers: n,
|
|
880
|
-
interactions: E
|
|
881
|
-
})) ?? {};
|
|
882
|
-
return g({}, a, u);
|
|
883
|
-
},
|
|
884
|
-
getDragAndDropOverlayProps: (a = {}) => {
|
|
885
|
-
var v;
|
|
886
|
-
const n = K(a), u = ((v = w.dragAndDropOverlay) == null ? void 0 : v.call(w, g({}, k, {
|
|
887
|
-
externalEventHandlers: n
|
|
888
|
-
}))) ?? {};
|
|
889
|
-
return g({}, a, u);
|
|
890
|
-
},
|
|
891
|
-
rootRef: _,
|
|
892
|
-
status: P,
|
|
893
|
-
publicAPI: h
|
|
894
|
-
};
|
|
895
|
-
}, Me = Tt;
|
|
896
|
-
function ke(e) {
|
|
897
|
-
const {
|
|
898
|
-
slots: t,
|
|
899
|
-
slotProps: o,
|
|
900
|
-
status: s
|
|
901
|
-
} = e, p = ne(), d = g({}, p.icons.slots, {
|
|
902
|
-
expandIcon: p.icons.slots.expandIcon ?? yt,
|
|
903
|
-
collapseIcon: p.icons.slots.collapseIcon ?? xt
|
|
904
|
-
}), m = p.icons.slotProps;
|
|
905
|
-
let l;
|
|
906
|
-
t != null && t.icon ? l = "icon" : s.expandable ? s.expanded ? l = "collapseIcon" : l = "expandIcon" : l = "endIcon";
|
|
907
|
-
const f = (t == null ? void 0 : t[l]) ?? d[l], c = F({
|
|
908
|
-
elementType: f,
|
|
909
|
-
externalSlotProps: (h) => g({}, be(m[l], h), be(o == null ? void 0 : o[l], h)),
|
|
910
|
-
// TODO: Add proper ownerState
|
|
911
|
-
ownerState: {}
|
|
912
|
-
});
|
|
913
|
-
return f ? /* @__PURE__ */ x(f, g({}, c)) : null;
|
|
914
|
-
}
|
|
915
|
-
process.env.NODE_ENV !== "production" && (ke.propTypes = {
|
|
916
|
-
// ----------------------------- Warning --------------------------------
|
|
917
|
-
// | These PropTypes are generated from the TypeScript type definitions |
|
|
918
|
-
// | To update them edit the TypeScript types and run "pnpm proptypes" |
|
|
919
|
-
// ----------------------------------------------------------------------
|
|
920
|
-
/**
|
|
921
|
-
* The props used for each component slot.
|
|
922
|
-
* @default {}
|
|
923
|
-
*/
|
|
924
|
-
slotProps: i.object,
|
|
925
|
-
/**
|
|
926
|
-
* Overridable component slots.
|
|
927
|
-
* @default {}
|
|
928
|
-
*/
|
|
929
|
-
slots: i.object,
|
|
930
|
-
status: i.shape({
|
|
931
|
-
disabled: i.bool.isRequired,
|
|
932
|
-
editable: i.bool.isRequired,
|
|
933
|
-
editing: i.bool.isRequired,
|
|
934
|
-
expandable: i.bool.isRequired,
|
|
935
|
-
expanded: i.bool.isRequired,
|
|
936
|
-
focused: i.bool.isRequired,
|
|
937
|
-
selected: i.bool.isRequired
|
|
938
|
-
}).isRequired
|
|
939
|
-
});
|
|
940
|
-
const wt = ["visible"], vt = ["id", "itemId", "label", "disabled", "children", "slots", "slotProps"], Pt = dt(), Le = V("li", {
|
|
941
|
-
name: "MuiTreeItem2",
|
|
942
|
-
slot: "Root",
|
|
943
|
-
overridesResolver: (e, t) => t.root
|
|
944
|
-
})({
|
|
945
|
-
listStyle: "none",
|
|
946
|
-
margin: 0,
|
|
947
|
-
padding: 0,
|
|
948
|
-
outline: 0
|
|
949
|
-
}), Ne = V("div", {
|
|
950
|
-
name: "MuiTreeItem2",
|
|
951
|
-
slot: "Content",
|
|
952
|
-
overridesResolver: (e, t) => t.content,
|
|
953
|
-
shouldForwardProp: (e) => le(e) && e !== "status" && e !== "indentationAtItemLevel"
|
|
954
|
-
})(({
|
|
955
|
-
theme: e
|
|
956
|
-
}) => ({
|
|
957
|
-
padding: e.spacing(0.5, 1),
|
|
958
|
-
borderRadius: e.shape.borderRadius,
|
|
959
|
-
width: "100%",
|
|
960
|
-
boxSizing: "border-box",
|
|
961
|
-
// prevent width + padding to overflow
|
|
962
|
-
position: "relative",
|
|
963
|
-
display: "flex",
|
|
964
|
-
alignItems: "center",
|
|
965
|
-
gap: e.spacing(1),
|
|
966
|
-
cursor: "pointer",
|
|
967
|
-
WebkitTapHighlightColor: "transparent",
|
|
968
|
-
"&:hover": {
|
|
969
|
-
backgroundColor: (e.vars || e).palette.action.hover,
|
|
970
|
-
// Reset on touch devices, it doesn't add specificity
|
|
971
|
-
"@media (hover: none)": {
|
|
972
|
-
backgroundColor: "transparent"
|
|
973
|
-
}
|
|
974
|
-
},
|
|
975
|
-
variants: [{
|
|
976
|
-
props: {
|
|
977
|
-
indentationAtItemLevel: !0
|
|
978
|
-
},
|
|
979
|
-
style: {
|
|
980
|
-
paddingLeft: `calc(${e.spacing(1)} + var(--TreeView-itemChildrenIndentation) * var(--TreeView-itemDepth))`
|
|
981
|
-
}
|
|
982
|
-
}, {
|
|
983
|
-
props: ({
|
|
984
|
-
status: t
|
|
985
|
-
}) => t.disabled,
|
|
986
|
-
style: {
|
|
987
|
-
opacity: (e.vars || e).palette.action.disabledOpacity,
|
|
988
|
-
backgroundColor: "transparent"
|
|
989
|
-
}
|
|
990
|
-
}, {
|
|
991
|
-
props: ({
|
|
992
|
-
status: t
|
|
993
|
-
}) => t.focused,
|
|
994
|
-
style: {
|
|
995
|
-
backgroundColor: (e.vars || e).palette.action.focus
|
|
996
|
-
}
|
|
997
|
-
}, {
|
|
998
|
-
props: ({
|
|
999
|
-
status: t
|
|
1000
|
-
}) => t.selected,
|
|
1001
|
-
style: {
|
|
1002
|
-
backgroundColor: e.vars ? `rgba(${e.vars.palette.primary.mainChannel} / ${e.vars.palette.action.selectedOpacity})` : oe(e.palette.primary.main, e.palette.action.selectedOpacity),
|
|
1003
|
-
"&:hover": {
|
|
1004
|
-
backgroundColor: e.vars ? `rgba(${e.vars.palette.primary.mainChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.hoverOpacity}))` : oe(e.palette.primary.main, e.palette.action.selectedOpacity + e.palette.action.hoverOpacity),
|
|
1005
|
-
// Reset on touch devices, it doesn't add specificity
|
|
1006
|
-
"@media (hover: none)": {
|
|
1007
|
-
backgroundColor: e.vars ? `rgba(${e.vars.palette.primary.mainChannel} / ${e.vars.palette.action.selectedOpacity})` : oe(e.palette.primary.main, e.palette.action.selectedOpacity)
|
|
1008
|
-
}
|
|
1009
|
-
}
|
|
1010
|
-
}
|
|
1011
|
-
}, {
|
|
1012
|
-
props: ({
|
|
1013
|
-
status: t
|
|
1014
|
-
}) => t.selected && t.focused,
|
|
1015
|
-
style: {
|
|
1016
|
-
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)
|
|
1017
|
-
}
|
|
1018
|
-
}]
|
|
1019
|
-
})), Et = V("div", {
|
|
1020
|
-
name: "MuiTreeItem2",
|
|
1021
|
-
slot: "Label",
|
|
1022
|
-
overridesResolver: (e, t) => t.label,
|
|
1023
|
-
shouldForwardProp: (e) => le(e) && e !== "editable"
|
|
1024
|
-
})(({
|
|
1025
|
-
theme: e
|
|
1026
|
-
}) => g({
|
|
1027
|
-
width: "100%",
|
|
1028
|
-
boxSizing: "border-box",
|
|
1029
|
-
// prevent width + padding to overflow
|
|
1030
|
-
// fixes overflow - see https://github.com/mui/material-ui/issues/27372
|
|
1031
|
-
minWidth: 0,
|
|
1032
|
-
position: "relative",
|
|
1033
|
-
overflow: "hidden"
|
|
1034
|
-
}, e.typography.body1, {
|
|
1035
|
-
variants: [{
|
|
1036
|
-
props: ({
|
|
1037
|
-
editable: t
|
|
1038
|
-
}) => t,
|
|
1039
|
-
style: {
|
|
1040
|
-
paddingLeft: "2px"
|
|
1041
|
-
}
|
|
1042
|
-
}]
|
|
1043
|
-
})), Ae = V("div", {
|
|
1044
|
-
name: "MuiTreeItem2",
|
|
1045
|
-
slot: "IconContainer",
|
|
1046
|
-
overridesResolver: (e, t) => t.iconContainer
|
|
1047
|
-
})({
|
|
1048
|
-
width: 16,
|
|
1049
|
-
display: "flex",
|
|
1050
|
-
flexShrink: 0,
|
|
1051
|
-
justifyContent: "center",
|
|
1052
|
-
"& svg": {
|
|
1053
|
-
fontSize: 18
|
|
1054
|
-
}
|
|
1055
|
-
}), Ve = V(se, {
|
|
1056
|
-
name: "MuiTreeItem2",
|
|
1057
|
-
slot: "GroupTransition",
|
|
1058
|
-
overridesResolver: (e, t) => t.groupTransition,
|
|
1059
|
-
shouldForwardProp: (e) => le(e) && e !== "indentationAtItemLevel"
|
|
1060
|
-
})({
|
|
1061
|
-
margin: 0,
|
|
1062
|
-
padding: 0,
|
|
1063
|
-
paddingLeft: "var(--TreeView-itemChildrenIndentation)",
|
|
1064
|
-
variants: [{
|
|
1065
|
-
props: {
|
|
1066
|
-
indentationAtItemLevel: !0
|
|
1067
|
-
},
|
|
1068
|
-
style: {
|
|
1069
|
-
paddingLeft: 0
|
|
1070
|
-
}
|
|
1071
|
-
}]
|
|
1072
|
-
}), Rt = V(/* @__PURE__ */ R.forwardRef((e, t) => {
|
|
1073
|
-
const {
|
|
1074
|
-
visible: o
|
|
1075
|
-
} = e, s = Ce(e, wt);
|
|
1076
|
-
return o ? /* @__PURE__ */ x(He, g({}, s, {
|
|
1077
|
-
ref: t
|
|
1078
|
-
})) : null;
|
|
1079
|
-
}), {
|
|
1080
|
-
name: "MuiTreeItem2",
|
|
1081
|
-
slot: "Checkbox",
|
|
1082
|
-
overridesResolver: (e, t) => t.checkbox
|
|
1083
|
-
})({
|
|
1084
|
-
padding: 0
|
|
1085
|
-
}), St = (e) => {
|
|
1086
|
-
const {
|
|
1087
|
-
classes: t
|
|
1088
|
-
} = e;
|
|
1089
|
-
return Pe({
|
|
1090
|
-
root: ["root"],
|
|
1091
|
-
content: ["content"],
|
|
1092
|
-
expanded: ["expanded"],
|
|
1093
|
-
editing: ["editing"],
|
|
1094
|
-
editable: ["editable"],
|
|
1095
|
-
selected: ["selected"],
|
|
1096
|
-
focused: ["focused"],
|
|
1097
|
-
disabled: ["disabled"],
|
|
1098
|
-
iconContainer: ["iconContainer"],
|
|
1099
|
-
checkbox: ["checkbox"],
|
|
1100
|
-
label: ["label"],
|
|
1101
|
-
groupTransition: ["groupTransition"],
|
|
1102
|
-
labelInput: ["labelInput"],
|
|
1103
|
-
dragAndDropOverlay: ["dragAndDropOverlay"]
|
|
1104
|
-
}, ht, t);
|
|
1105
|
-
}, Ot = /* @__PURE__ */ R.forwardRef(function(t, o) {
|
|
1106
|
-
const s = Pt({
|
|
1107
|
-
props: t,
|
|
1108
|
-
name: "MuiTreeItem2"
|
|
1109
|
-
}), {
|
|
1110
|
-
id: p,
|
|
1111
|
-
itemId: d,
|
|
1112
|
-
label: m,
|
|
1113
|
-
disabled: l,
|
|
1114
|
-
children: f,
|
|
1115
|
-
slots: c = {},
|
|
1116
|
-
slotProps: h = {}
|
|
1117
|
-
} = s, b = Ce(s, vt), {
|
|
1118
|
-
getRootProps: C,
|
|
1119
|
-
getContentProps: r,
|
|
1120
|
-
getIconContainerProps: y,
|
|
1121
|
-
getCheckboxProps: S,
|
|
1122
|
-
getLabelProps: O,
|
|
1123
|
-
getGroupTransitionProps: j,
|
|
1124
|
-
getLabelInputProps: W,
|
|
1125
|
-
getDragAndDropOverlayProps: w,
|
|
1126
|
-
status: E
|
|
1127
|
-
} = Me({
|
|
1128
|
-
id: p,
|
|
1129
|
-
itemId: d,
|
|
1130
|
-
children: f,
|
|
1131
|
-
label: m,
|
|
1132
|
-
disabled: l
|
|
1133
|
-
}), P = g({}, s, E), T = St(P), D = c.root ?? Le, _ = F({
|
|
1134
|
-
elementType: D,
|
|
1135
|
-
getSlotProps: C,
|
|
1136
|
-
externalForwardedProps: b,
|
|
1137
|
-
externalSlotProps: h.root,
|
|
1138
|
-
additionalProps: {
|
|
1139
|
-
ref: o
|
|
1140
|
-
},
|
|
1141
|
-
ownerState: {},
|
|
1142
|
-
className: T.root
|
|
1143
|
-
}), Y = c.content ?? Ne, M = F({
|
|
1144
|
-
elementType: Y,
|
|
1145
|
-
getSlotProps: r,
|
|
1146
|
-
externalSlotProps: h.content,
|
|
1147
|
-
ownerState: {},
|
|
1148
|
-
className: ve(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)
|
|
1149
|
-
}), q = c.iconContainer ?? Ae, U = F({
|
|
1150
|
-
elementType: q,
|
|
1151
|
-
getSlotProps: y,
|
|
1152
|
-
externalSlotProps: h.iconContainer,
|
|
1153
|
-
ownerState: {},
|
|
1154
|
-
className: T.iconContainer
|
|
1155
|
-
}), k = c.label ?? Et, z = F({
|
|
1156
|
-
elementType: k,
|
|
1157
|
-
getSlotProps: O,
|
|
1158
|
-
externalSlotProps: h.label,
|
|
1159
|
-
ownerState: {},
|
|
1160
|
-
className: T.label
|
|
1161
|
-
}), B = c.checkbox ?? Rt, H = F({
|
|
1162
|
-
elementType: B,
|
|
1163
|
-
getSlotProps: S,
|
|
1164
|
-
externalSlotProps: h.checkbox,
|
|
1165
|
-
ownerState: {},
|
|
1166
|
-
className: T.checkbox
|
|
1167
|
-
}), A = c.groupTransition ?? void 0, G = F({
|
|
1168
|
-
elementType: A,
|
|
1169
|
-
getSlotProps: j,
|
|
1170
|
-
externalSlotProps: h.groupTransition,
|
|
1171
|
-
ownerState: {},
|
|
1172
|
-
className: T.groupTransition
|
|
1173
|
-
}), J = c.labelInput ?? It, ee = F({
|
|
1174
|
-
elementType: J,
|
|
1175
|
-
getSlotProps: W,
|
|
1176
|
-
externalSlotProps: h.labelInput,
|
|
1177
|
-
ownerState: {},
|
|
1178
|
-
className: T.labelInput
|
|
1179
|
-
}), Q = c.dragAndDropOverlay ?? Oe, re = F({
|
|
1180
|
-
elementType: Q,
|
|
1181
|
-
getSlotProps: w,
|
|
1182
|
-
externalSlotProps: h.dragAndDropOverlay,
|
|
1183
|
-
ownerState: {},
|
|
1184
|
-
className: T.dragAndDropOverlay
|
|
1185
|
-
});
|
|
1186
|
-
return /* @__PURE__ */ x(pe, {
|
|
1187
|
-
itemId: d,
|
|
1188
|
-
children: /* @__PURE__ */ ie(D, g({}, _, {
|
|
1189
|
-
children: [/* @__PURE__ */ ie(Y, g({}, M, {
|
|
1190
|
-
children: [/* @__PURE__ */ x(q, g({}, U, {
|
|
1191
|
-
children: /* @__PURE__ */ x(ke, {
|
|
1192
|
-
status: E,
|
|
1193
|
-
slots: c,
|
|
1194
|
-
slotProps: h
|
|
1195
|
-
})
|
|
1196
|
-
})), /* @__PURE__ */ x(B, g({}, H)), E.editing ? /* @__PURE__ */ x(J, g({}, ee)) : /* @__PURE__ */ x(k, g({}, z)), /* @__PURE__ */ x(Q, g({}, re))]
|
|
1197
|
-
})), f && /* @__PURE__ */ x(Ve, g({
|
|
1198
|
-
as: A
|
|
1199
|
-
}, G))]
|
|
1200
|
-
}))
|
|
1201
|
-
});
|
|
1202
|
-
});
|
|
1203
|
-
process.env.NODE_ENV !== "production" && (Ot.propTypes = {
|
|
1204
|
-
// ----------------------------- Warning --------------------------------
|
|
1205
|
-
// | These PropTypes are generated from the TypeScript type definitions |
|
|
1206
|
-
// | To update them edit the TypeScript types and run "pnpm proptypes" |
|
|
1207
|
-
// ----------------------------------------------------------------------
|
|
1208
|
-
/**
|
|
1209
|
-
* The content of the component.
|
|
1210
|
-
*/
|
|
1211
|
-
children: i.node,
|
|
1212
|
-
/**
|
|
1213
|
-
* Override or extend the styles applied to the component.
|
|
1214
|
-
*/
|
|
1215
|
-
classes: i.object,
|
|
1216
|
-
className: i.string,
|
|
1217
|
-
/**
|
|
1218
|
-
* If `true`, the item is disabled.
|
|
1219
|
-
* @default false
|
|
1220
|
-
*/
|
|
1221
|
-
disabled: i.bool,
|
|
1222
|
-
/**
|
|
1223
|
-
* The id attribute of the item. If not provided, it will be generated.
|
|
1224
|
-
*/
|
|
1225
|
-
id: i.string,
|
|
1226
|
-
/**
|
|
1227
|
-
* The id of the item.
|
|
1228
|
-
* Must be unique.
|
|
1229
|
-
*/
|
|
1230
|
-
itemId: i.string.isRequired,
|
|
1231
|
-
/**
|
|
1232
|
-
* The label of the item.
|
|
1233
|
-
*/
|
|
1234
|
-
label: i.node,
|
|
1235
|
-
/**
|
|
1236
|
-
* Callback fired when the item root is blurred.
|
|
1237
|
-
*/
|
|
1238
|
-
onBlur: i.func,
|
|
1239
|
-
/**
|
|
1240
|
-
* This prop isn't supported.
|
|
1241
|
-
* Use the `onItemFocus` callback on the tree if you need to monitor an item's focus.
|
|
1242
|
-
*/
|
|
1243
|
-
onFocus: et,
|
|
1244
|
-
/**
|
|
1245
|
-
* Callback fired when a key is pressed on the keyboard and the tree is in focus.
|
|
1246
|
-
*/
|
|
1247
|
-
onKeyDown: i.func,
|
|
1248
|
-
/**
|
|
1249
|
-
* The props used for each component slot.
|
|
1250
|
-
* @default {}
|
|
1251
|
-
*/
|
|
1252
|
-
slotProps: i.object,
|
|
1253
|
-
/**
|
|
1254
|
-
* Overridable component slots.
|
|
1255
|
-
* @default {}
|
|
1256
|
-
*/
|
|
1257
|
-
slots: i.object
|
|
1258
|
-
});
|
|
1259
|
-
function io(e) {
|
|
1260
|
-
const {
|
|
1261
|
-
id: t,
|
|
1262
|
-
itemId: o,
|
|
1263
|
-
label: s,
|
|
1264
|
-
disabled: p,
|
|
1265
|
-
children: d,
|
|
1266
|
-
itemData: m,
|
|
1267
|
-
iconColor: l = "primary",
|
|
1268
|
-
hasNoIcons: f,
|
|
1269
|
-
ref: c
|
|
1270
|
-
} = e, h = qe(
|
|
1271
|
-
m == null ? void 0 : m.iconType,
|
|
1272
|
-
m == null ? void 0 : m.customIcon
|
|
1273
|
-
), {
|
|
1274
|
-
getRootProps: b,
|
|
1275
|
-
getContentProps: C,
|
|
1276
|
-
getLabelProps: r,
|
|
1277
|
-
getGroupTransitionProps: y,
|
|
1278
|
-
getIconContainerProps: S,
|
|
1279
|
-
status: O
|
|
1280
|
-
} = Me({ id: t, itemId: o, label: s, disabled: p, children: d, rootRef: c }), j = {
|
|
1281
|
-
...O.selected && { fontWeight: 600 },
|
|
1282
|
-
color: "var(--theme-palette-text-primary)"
|
|
1283
|
-
};
|
|
1284
|
-
return /* @__PURE__ */ x(pe, { itemId: o, children: /* @__PURE__ */ ie(
|
|
1285
|
-
Le,
|
|
1286
|
-
{
|
|
1287
|
-
...b(),
|
|
1288
|
-
"data-treeview-item": o || "",
|
|
1289
|
-
"data-treeview-item-label": s || "",
|
|
1290
|
-
sx: Be,
|
|
1291
|
-
children: [
|
|
1292
|
-
/* @__PURE__ */ ie(Ne, { ...C(), style: Ke, children: [
|
|
1293
|
-
!f && /* @__PURE__ */ x(Ae, { ...S(), sx: Ie, children: /* @__PURE__ */ x(h, { color: l, sx: Ie }) }),
|
|
1294
|
-
/* @__PURE__ */ x(Ue, { ...r(), typographyProps: j }),
|
|
1295
|
-
/* @__PURE__ */ x(tt, { sx: Fe, children: O.expandable && (O.expanded ? /* @__PURE__ */ x(at, { fontSize: "small" }) : /* @__PURE__ */ x(lt, { fontSize: "small" })) })
|
|
1296
|
-
] }),
|
|
1297
|
-
d && /* @__PURE__ */ x(
|
|
1298
|
-
Ve,
|
|
1299
|
-
{
|
|
1300
|
-
...y(),
|
|
1301
|
-
style: O.expanded ? je : void 0
|
|
1302
|
-
}
|
|
1303
|
-
)
|
|
1304
|
-
]
|
|
1305
|
-
}
|
|
1306
|
-
) });
|
|
1307
|
-
}
|
|
1308
|
-
export {
|
|
1309
|
-
se as C,
|
|
1310
|
-
Ee as T,
|
|
1311
|
-
eo as a,
|
|
1312
|
-
ct as b,
|
|
1313
|
-
Ht as c,
|
|
1314
|
-
Re as d,
|
|
1315
|
-
to as e,
|
|
1316
|
-
mt as f,
|
|
1317
|
-
ot as g,
|
|
1318
|
-
gt as h,
|
|
1319
|
-
no as i,
|
|
1320
|
-
oo as j,
|
|
1321
|
-
xe as k,
|
|
1322
|
-
ut as l,
|
|
1323
|
-
pt as m,
|
|
1324
|
-
de as n,
|
|
1325
|
-
ne as o,
|
|
1326
|
-
It as p,
|
|
1327
|
-
Oe as q,
|
|
1328
|
-
dt as r,
|
|
1329
|
-
xt as s,
|
|
1330
|
-
yt as t,
|
|
1331
|
-
X as u,
|
|
1332
|
-
pe as v,
|
|
1333
|
-
ht as w,
|
|
1334
|
-
ro as x,
|
|
1335
|
-
io as y
|
|
1336
|
-
};
|