@cgi-learning-hub/ui 1.4.0-dev.1742230542 → 1.4.0-dev.1742380894
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-DG3eL-Ib.cjs → Alert-7nB8aE0d.cjs} +1 -1
- package/dist/{Alert-CKb0chao.js → Alert-BjcIurGE.js} +9 -9
- package/dist/{Backdrop-BstwstC2.cjs → Backdrop-BM-OE2Q_.cjs} +1 -1
- package/dist/{Backdrop-iPLBOqna.js → Backdrop-COiz4sPF.js} +6 -6
- package/dist/{Box-Bur5FaJN.cjs → Box-BmfpLwYG.cjs} +1 -1
- package/dist/{Box-WOWWyD8I.js → Box-C-j-U8SH.js} +3 -3
- package/dist/{Button-BwM-MwfL.cjs → Button-BGWvL_UD.cjs} +1 -1
- package/dist/{Button-9t4F1m3f.js → Button-CQQdMCSm.js} +6 -6
- package/dist/{ButtonBase-_bcYKepP.js → ButtonBase-CZFKUUHD.js} +4 -4
- package/dist/{ButtonBase-Dc0VLLRk.cjs → ButtonBase-NqQjeQ4X.cjs} +1 -1
- package/dist/{CardContent-BaDUN0u9.cjs → CardContent-GHLuvxgm.cjs} +1 -1
- package/dist/{CardContent-Cqcej9rj.js → CardContent-sX9Bw4Ke.js} +3 -3
- package/dist/{Checkbox-BphoJHzz.js → Checkbox-1Zr36vDa.js} +7 -7
- package/dist/{Checkbox-Bg5Js3hU.cjs → Checkbox-BZYoJieY.cjs} +1 -1
- package/dist/{Chip-CtTzX7L1.js → Chip-BsErraqe.js} +6 -6
- package/dist/{Chip-BXh7lD_u.cjs → Chip-Cu_SZxrx.cjs} +1 -1
- package/dist/{CircularProgress-bjuAAr_2.js → CircularProgress-BBHGA0JX.js} +4 -4
- package/dist/{CircularProgress-DzvDjNK5.cjs → CircularProgress-CdS7-HOv.cjs} +1 -1
- package/dist/{CloseRounded-CH_wqyxH.js → CloseRounded-B-eaQsyM.js} +1 -1
- package/dist/{CloseRounded-CpwMhnlE.cjs → CloseRounded-CWmxueMc.cjs} +1 -1
- package/dist/CustomTreeItem-BIl2yiro.cjs +4 -0
- package/dist/{CustomTreeItem-Dedtqa4t.js → CustomTreeItem-BpAK85gf.js} +245 -238
- package/dist/{DatePicker-B7pz453y.js → DatePicker-CWMXTgRG.js} +641 -635
- package/dist/{DatePicker-DfoPEGZZ.cjs → DatePicker-tyDzcyzu.cjs} +11 -10
- package/dist/{DefaultPropsProvider-DwzqwJhN.cjs → DefaultPropsProvider-BTnRBr0O.cjs} +1 -1
- package/dist/{DefaultPropsProvider-Dvh13KFH.js → DefaultPropsProvider-CXfMJdg8.js} +1 -1
- package/dist/{Delete-BFylYk6v.cjs → Delete-CpTtpM4U.cjs} +1 -1
- package/dist/{Delete-DM9C9aQh.js → Delete-DKn2lIDB.js} +1 -1
- package/dist/{Dialog-DP022eS9.cjs → Dialog-DIHzs0ro.cjs} +1 -1
- package/dist/{Dialog-n8vimrxc.js → Dialog-pU1ZAttp.js} +9 -9
- package/dist/{DialogContent-MuEOvxs_.cjs → DialogContent-B-9ga3Wv.cjs} +1 -1
- package/dist/{DialogContent-BGSQL0RK.js → DialogContent-BEgapieO.js} +3 -3
- package/dist/{DialogTitle-0G76KDGl.cjs → DialogTitle-B_UN_oL2.cjs} +1 -1
- package/dist/{DialogTitle-ezVE1To8.js → DialogTitle-Dcls3mcZ.js} +5 -5
- package/dist/{Divider-Dsv97Wn2.js → Divider-CT4XaEn6.js} +4 -4
- package/dist/{Divider-R7sa-2lG.cjs → Divider-iYLSpFUc.cjs} +1 -1
- package/dist/{Folder-C3sJnRGB.cjs → Folder-DWD_1Fux.cjs} +1 -1
- package/dist/{Folder-DYg6kxq4.js → Folder-DoEl37QZ.js} +1 -1
- package/dist/{FormLabel-CGGAOZFH.js → FormLabel-BF6m-_uI.js} +4 -4
- package/dist/{FormLabel-cq7UJ4go.cjs → FormLabel-Cp2OFw8d.cjs} +1 -1
- package/dist/{Grow-pE2G14NE.js → Grow-Bk7XkPFP.js} +4 -4
- package/dist/{Grow-Cb2fuU7a.cjs → Grow-DXY5DOqR.cjs} +1 -1
- package/dist/{IconButton-BHDAW2iJ.cjs → IconButton-BLZJne06.cjs} +1 -1
- package/dist/{IconButton-BakKGuRi.js → IconButton-BQW0xjdH.js} +6 -6
- package/dist/{InputAdornment-DFDYHaYJ.cjs → InputAdornment-C0WI_oQg.cjs} +1 -1
- package/dist/{InputAdornment-Bkmq6VNk.js → InputAdornment-C6UfLaud.js} +5 -5
- package/dist/{InputBase-BKnhhWZn.cjs → InputBase-B3KOyouT.cjs} +1 -1
- package/dist/{InputBase-bnA8K4W2.js → InputBase-YOnatBxw.js} +7 -7
- package/dist/{Link-DEU_DTLR.js → Link-C3rf4gqc.js} +7 -7
- package/dist/{Link-0wJXqOAe.cjs → Link-lvpmE2yz.cjs} +1 -1
- package/dist/{List-oGUq0Gn0.js → List-CFInjv2S.js} +2 -2
- package/dist/{List-COMUCfZk.cjs → List-PQXGlDbt.cjs} +1 -1
- package/dist/{ListItem-CMtCDluy.js → ListItem-BAAZxsu5.js} +5 -5
- package/dist/{ListItem-CC-cmpXo.cjs → ListItem-CWEvdMjN.cjs} +1 -1
- package/dist/{ListItemText-kdAemcvv.cjs → ListItemText-BhxrnTkb.cjs} +1 -1
- package/dist/{ListItemText-DKTxIs9G.js → ListItemText-CADHegDF.js} +11 -11
- package/dist/{Menu-BVTaox-P.js → Menu-BgO92SV3.js} +12 -12
- package/dist/{Menu-DTsiNh8Q.cjs → Menu-DBacrp-P.cjs} +1 -1
- package/dist/{MenuItem-Do747s86.js → MenuItem-B8eWAj8E.js} +7 -7
- package/dist/{MenuItem-Cs5iZIh5.cjs → MenuItem-DkcVAo3U.cjs} +1 -1
- package/dist/{Modal-ByPqMZ34.js → Modal-CFv4UMTP.js} +8 -8
- package/dist/{Modal-CKhDE8dD.cjs → Modal-kUvS-N46.cjs} +1 -1
- package/dist/{MoreVert-Y1VAw2HL.cjs → MoreVert-B_Gz5Gfx.cjs} +1 -1
- package/dist/{MoreVert-BeKrLZJ3.js → MoreVert-Dq8BqKg4.js} +1 -1
- package/dist/{Paper-DUe1p9WA.cjs → Paper-ByOgFIEE.cjs} +1 -1
- package/dist/{Paper-BjgQvh8P.js → Paper-DeL_n4k9.js} +4 -4
- package/dist/{Popper-Ddr6kqA6.js → Popper-BKxRTMsO.js} +6 -6
- package/dist/{Popper-B-PuE-bB.cjs → Popper-CsQqc5DE.cjs} +1 -1
- package/dist/{Portal-DG6GhbHe.js → Portal-7MKUQzjh.js} +2 -2
- package/dist/{Portal-CRHmQs3P.cjs → Portal-DhGy1jKe.cjs} +1 -1
- package/dist/{Radio-B3m8v75H.js → Radio-BVfoGshx.js} +9 -9
- package/dist/{Radio-DzRo6qOl.cjs → Radio-DG-k6cXx.cjs} +1 -1
- package/dist/{RadioGroup-CXVKYEdL.js → RadioGroup-DcqRUtV8.js} +3 -3
- package/dist/{RadioGroup-D3-QbdXe.cjs → RadioGroup-Dd0mX-H2.cjs} +1 -1
- package/dist/{Select-DNt8NZqc.js → Select-Vnsr3NSv.js} +10 -10
- package/dist/{Select-BNu0nA09.cjs → Select-b6liJFDI.cjs} +1 -1
- package/dist/{Stack-CH8i1CHm.js → Stack-PQFKjbdN.js} +4 -4
- package/dist/{Stack-DY5yaM_Q.cjs → Stack-gtxG2YLo.cjs} +1 -1
- package/dist/{Switch-D8Pqg_PZ.cjs → Switch-BlwDxL6O.cjs} +1 -1
- package/dist/{Switch-CJAXOMfu.js → Switch-Bn8zlIOf.js} +6 -6
- package/dist/{SwitchBase-7hTSk2Ag.cjs → SwitchBase-DtKlxrES.cjs} +1 -1
- package/dist/{SwitchBase-CBcUUziU.js → SwitchBase-QwOXoy8f.js} +5 -5
- package/dist/{Tab-BilrTZRW.js → Tab-A0R3g6rB.js} +11 -11
- package/dist/{Tab-DLYuqVH8.cjs → Tab-Dx7V4E6B.cjs} +1 -1
- package/dist/{TextField-NFbVLcRr.cjs → TextField-CB2n4aV8.cjs} +1 -1
- package/dist/{TextField-lOgVscdx.js → TextField-Di6Nfe3O.js} +8 -8
- package/dist/{ToggleButtonGroup-5yTr7ilf.cjs → ToggleButtonGroup-DrH5Qy6D.cjs} +35 -35
- package/dist/{ToggleButtonGroup-B7yQDytL.js → ToggleButtonGroup-XrVMrsxz.js} +1526 -1514
- package/dist/{Tooltip-m0ZCbyoe.cjs → Tooltip-D0jvnXYu.cjs} +1 -1
- package/dist/{Tooltip-CzA_Asv5.js → Tooltip-KTkLBRQj.js} +10 -10
- package/dist/{Typography-D2e0HXGw.cjs → Typography-3CpuuLtj.cjs} +1 -1
- package/dist/{Typography-DVBKpN4u.js → Typography-DZ11k9cZ.js} +5 -5
- package/dist/{capitalize-D-yulWPl.cjs → capitalize-B3tmp8MO.cjs} +1 -1
- package/dist/{capitalize-P7jI1m0a.js → capitalize-Bs7Xs33U.js} +1 -1
- package/dist/components/Alert/Alert.cjs.js +1 -1
- package/dist/components/Alert/Alert.es.js +1 -1
- 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 +2 -2
- package/dist/components/Dropzone/Dropzone.cjs.js +1 -1
- package/dist/components/Dropzone/Dropzone.es.js +4 -4
- package/dist/components/EmptyState/EmptyState.cjs.js +1 -1
- package/dist/components/EmptyState/EmptyState.es.js +3 -3
- package/dist/components/FileList/FileIcon.cjs.js +1 -1
- package/dist/components/FileList/FileIcon.es.js +1 -1
- package/dist/components/FileList/FileListItem.cjs.js +1 -1
- package/dist/components/FileList/FileListItem.es.js +4 -4
- package/dist/components/FolderCard/FolderCard.cjs.js +1 -1
- package/dist/components/FolderCard/FolderCard.d.ts +1 -0
- package/dist/components/FolderCard/FolderCard.es.js +32 -31
- package/dist/components/FolderCard/styles.cjs.js +1 -1
- package/dist/components/FolderCard/styles.d.ts +9 -0
- package/dist/components/FolderCard/styles.es.js +14 -5
- package/dist/components/FolderCard/types.cjs.js +1 -1
- package/dist/components/FolderCard/types.d.ts +3 -11
- package/dist/components/FolderCard/types.es.js +6 -6
- package/dist/components/Heading/Heading.cjs.js +1 -1
- package/dist/components/Heading/Heading.es.js +2 -2
- package/dist/components/ImagePicker/ImagePicker.cjs.js +1 -1
- package/dist/components/ImagePicker/ImagePicker.es.js +5 -5
- package/dist/components/Loader/Loader.cjs.js +1 -1
- package/dist/components/Loader/Loader.es.js +1 -1
- package/dist/components/LoaderBackdrop/LoaderBackdrop.cjs.js +1 -1
- package/dist/components/LoaderBackdrop/LoaderBackdrop.es.js +2 -2
- package/dist/components/PasswordInput/PasswordInput.cjs.js +1 -1
- package/dist/components/PasswordInput/PasswordInput.es.js +4 -4
- package/dist/components/ResourceCard/ResourceCard.cjs.js +1 -1
- package/dist/components/ResourceCard/ResourceCard.es.js +1 -1
- package/dist/components/SearchInput/SearchInput.cjs.js +1 -1
- package/dist/components/SearchInput/SearchInput.es.js +4 -4
- package/dist/components/TreeView/TreeView.cjs.js +4 -4
- package/dist/components/TreeView/TreeView.es.js +12 -13
- package/dist/components/TreeView/components/CustomTreeItem.cjs.js +1 -1
- package/dist/components/TreeView/components/CustomTreeItem.es.js +2 -2
- package/dist/components/TreeView/utils.cjs.js +1 -1
- package/dist/components/TreeView/utils.es.js +3 -3
- package/dist/components/index.cjs.js +1 -1
- package/dist/components/index.es.js +40 -40
- package/dist/components/stories/Alert.stories.cjs.js +1 -1
- package/dist/components/stories/Alert.stories.es.js +1 -1
- 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 +1 -1
- package/dist/components/stories/TreeView.stories.es.js +9 -9
- package/dist/components/stories/Typography.stories.cjs.js +1 -1
- package/dist/components/stories/Typography.stories.es.js +1 -1
- package/dist/{createSvgIcon-C-xu_b94.cjs → createSvgIcon-2wwaxLPT.cjs} +1 -1
- package/dist/{createSvgIcon-CJhvvvqA.js → createSvgIcon-BFqOnlgU.js} +4 -4
- package/dist/{dividerClasses-8us6UU9a.js → dividerClasses-BYkvalOn.js} +1 -1
- package/dist/{dividerClasses-DjtRGgBE.cjs → dividerClasses-izm7KFVg.cjs} +1 -1
- package/dist/{elementTypeAcceptingRef-BKLM-XWC.js → elementTypeAcceptingRef-1usJq_B8.js} +1 -1
- package/dist/{elementTypeAcceptingRef-CUhueWZ_.cjs → elementTypeAcceptingRef-GoqLuvj1.cjs} +1 -1
- package/dist/{extendSxProp-B3iQ6W4H.cjs → extendSxProp-Bv3E507G.cjs} +1 -1
- package/dist/{extendSxProp-C0R7yiG4.js → extendSxProp-D_IkoDXB.js} +1 -1
- package/dist/{generateUtilityClasses-qBH_3lvP.js → generateUtilityClasses-CqzQXpT_.js} +1 -1
- package/dist/{generateUtilityClasses-Bnvii3Zv.cjs → generateUtilityClasses-KugHyZhN.cjs} +1 -1
- package/dist/{getReactElementRef-IE1Keh2q.cjs → getReactElementRef-D7IvykPI.cjs} +1 -1
- package/dist/{getReactElementRef-4PbLT8Hy.js → getReactElementRef-DtLerx40.js} +1 -1
- package/dist/{index-BeDJBhYu.cjs → index-9hEUqvaJ.cjs} +1 -1
- package/dist/{index-Dx_q65HZ.cjs → index-BomeQRLD.cjs} +1 -1
- package/dist/{index-BKqZ9KaQ.js → index-C7WfZsMe.js} +1 -1
- package/dist/{index--jmdhZ-K.js → index-CFIk4hVM.js} +4 -4
- package/dist/{index-CBgsstcV.cjs → index-DS8G_wjP.cjs} +1 -1
- package/dist/{index-DiVU2T0K.js → index-sDFEVHTg.js} +1 -1
- package/dist/index.cjs.js +1 -1
- package/dist/index.es.js +40 -40
- package/dist/{listItemTextClasses-DQ08IVSw.js → listItemTextClasses-C0D3xQur.js} +1 -1
- package/dist/{listItemTextClasses-BIn6LnTI.cjs → listItemTextClasses-CQXcckDA.cjs} +1 -1
- package/dist/{memoTheme-Bdc3PRAw.js → memoTheme-B0xVysYu.js} +1 -1
- package/dist/{memoTheme-tEno1c9b.cjs → memoTheme-WwIyYqBX.cjs} +1 -1
- package/dist/{refType-B8r_q_30.js → refType-BvSJNaoq.js} +1 -1
- package/dist/{refType-C8q8lKZo.cjs → refType-D-n-tVSl.cjs} +1 -1
- package/dist/{resolveComponentProps-DjrZpsT9.cjs → resolveComponentProps-Byi_59AN.cjs} +1 -1
- package/dist/{resolveComponentProps-Gcj9bqhP.js → resolveComponentProps-Ctw0-dUN.js} +1 -1
- package/dist/{useSlot-CZIukiuE.cjs → useSlot-CGbU9jGm.cjs} +1 -1
- package/dist/{useSlot--O8JIo9E.js → useSlot-CqjfyGd9.js} +1 -1
- package/dist/{useSlotProps-6i1DWAkd.js → useSlotProps-Ceyorp-u.js} +1 -1
- package/dist/{useSlotProps-COYNTPfw.cjs → useSlotProps-DfO7r_4Y.cjs} +1 -1
- package/dist/{useTheme-B1zgxKTF.js → useTheme-2JCMQS-E.js} +1 -1
- package/dist/{useTheme-g_JWgLNP.cjs → useTheme-B6wow4M9.cjs} +1 -1
- package/dist/useTheme-DepbBZga.js +11 -0
- package/dist/{useTheme-CobOLSlE.cjs → useTheme-MahNaB8C.cjs} +1 -1
- package/dist/useThemeProps-BqypsO1h.cjs +1 -0
- package/dist/{useThemeProps-DcCmn46r.js → useThemeProps-Cuazh32X.js} +2 -2
- package/dist/useThemeProps-Drd5oJEF.js +17 -0
- package/dist/{useThemeProps-Kq9aLb1W.cjs → useThemeProps-RdxbcMsR.cjs} +1 -1
- package/dist/{utils-365il-YC.js → utils-BVg32WSe.js} +1 -1
- package/dist/{utils-B7ix7w4M.cjs → utils-CUU5fjzL.cjs} +1 -1
- package/package.json +1 -1
- package/dist/CustomTreeItem-DLoOl_op.cjs +0 -3
- package/dist/useTheme-CJM-QIGb.js +0 -11
- package/dist/useThemeProps-D1cSSjm5.js +0 -17
- package/dist/useThemeProps-DewY2V1T.cjs +0 -1
- package/dist/warning-C8W811fV.js +0 -11
- package/dist/warning-DMUNDgRg.cjs +0 -2
|
@@ -1,29 +1,28 @@
|
|
|
1
1
|
import { jsx as x, jsxs as ie } from "react/jsx-runtime";
|
|
2
|
-
import { c as ae } from "./createSvgIcon-
|
|
3
|
-
import { B as
|
|
4
|
-
import { _ as
|
|
2
|
+
import { c as ae } from "./createSvgIcon-BFqOnlgU.js";
|
|
3
|
+
import { B as Be } from "./Box-C-j-U8SH.js";
|
|
4
|
+
import { _ as f } from "./ButtonBase-CZFKUUHD.js";
|
|
5
5
|
import * as R from "react";
|
|
6
|
-
import { w as Be } from "./warning-C8W811fV.js";
|
|
7
6
|
import { u as ce } from "./useForkRef-C_4o__cU.js";
|
|
8
|
-
import { e as B, r as be } from "./resolveComponentProps-
|
|
7
|
+
import { e as B, r as be } from "./resolveComponentProps-Ctw0-dUN.js";
|
|
9
8
|
import { treeContentStyle as Ke, arrowContainerStyle as Fe, expandedGroupStyle as je } from "./components/TreeView/style.es.js";
|
|
10
9
|
import { getIconComponent as qe } from "./components/TreeView/utils.es.js";
|
|
11
|
-
import { G as
|
|
12
|
-
import { a as
|
|
13
|
-
import { u as
|
|
14
|
-
import { u as We, s as A, c as
|
|
15
|
-
import { u as Ge } from "./useTheme-
|
|
16
|
-
import { m as Xe } from "./memoTheme-
|
|
17
|
-
import { T as Ye, g as Ie } from "./utils-
|
|
10
|
+
import { G as Ce, H as we, x as _e, I as Te, P as i, n as oe } from "./generateUtilityClasses-CqzQXpT_.js";
|
|
11
|
+
import { a as ve } from "./TransitionGroupContext-DbLioz_6.js";
|
|
12
|
+
import { u as Ue } from "./useThemeProps-Drd5oJEF.js";
|
|
13
|
+
import { u as We, s as A, c as Pe, f as le } from "./DefaultPropsProvider-CXfMJdg8.js";
|
|
14
|
+
import { u as Ge } from "./useTheme-DepbBZga.js";
|
|
15
|
+
import { m as Xe } from "./memoTheme-B0xVysYu.js";
|
|
16
|
+
import { T as Ye, g as Ie } from "./utils-BVg32WSe.js";
|
|
18
17
|
import { u as Je } from "./useTimeout-CrCYVizI.js";
|
|
19
|
-
import { e as Qe } from "./elementTypeAcceptingRef-
|
|
20
|
-
import { C as Ze } from "./Checkbox-
|
|
18
|
+
import { e as Qe } from "./elementTypeAcceptingRef-1usJq_B8.js";
|
|
19
|
+
import { C as Ze } from "./Checkbox-1Zr36vDa.js";
|
|
21
20
|
import { u as He } from "./unsupportedProp-BuVD30Gh.js";
|
|
22
|
-
import { u as K } from "./useSlotProps-
|
|
21
|
+
import { u as K } from "./useSlotProps-Ceyorp-u.js";
|
|
23
22
|
function et(e) {
|
|
24
|
-
return
|
|
23
|
+
return we("MuiCollapse", e);
|
|
25
24
|
}
|
|
26
|
-
const Xt =
|
|
25
|
+
const Xt = Ce("MuiCollapse", ["root", "horizontal", "vertical", "entered", "hidden", "wrapper", "wrapperInner"]), tt = (e) => {
|
|
27
26
|
const {
|
|
28
27
|
orientation: t,
|
|
29
28
|
classes: o
|
|
@@ -34,7 +33,7 @@ const Xt = xe("MuiCollapse", ["root", "horizontal", "vertical", "entered", "hidd
|
|
|
34
33
|
wrapper: ["wrapper", `${t}`],
|
|
35
34
|
wrapperInner: ["wrapperInner", `${t}`]
|
|
36
35
|
};
|
|
37
|
-
return
|
|
36
|
+
return Pe(s, et, o);
|
|
38
37
|
}, ot = A("div", {
|
|
39
38
|
name: "MuiCollapse",
|
|
40
39
|
slot: "Root",
|
|
@@ -122,9 +121,9 @@ const Xt = xe("MuiCollapse", ["root", "horizontal", "vertical", "entered", "hidd
|
|
|
122
121
|
}), {
|
|
123
122
|
addEndListener: p,
|
|
124
123
|
children: d,
|
|
125
|
-
className:
|
|
124
|
+
className: g,
|
|
126
125
|
collapsedSize: l = "0px",
|
|
127
|
-
component:
|
|
126
|
+
component: m,
|
|
128
127
|
easing: c,
|
|
129
128
|
in: h,
|
|
130
129
|
onEnter: b,
|
|
@@ -134,22 +133,22 @@ const Xt = xe("MuiCollapse", ["root", "horizontal", "vertical", "entered", "hidd
|
|
|
134
133
|
onExited: S,
|
|
135
134
|
onExiting: F,
|
|
136
135
|
orientation: X = "vertical",
|
|
137
|
-
style:
|
|
138
|
-
timeout:
|
|
136
|
+
style: _,
|
|
137
|
+
timeout: T = _e.standard,
|
|
139
138
|
// eslint-disable-next-line react/prop-types
|
|
140
139
|
TransitionComponent: E = Ye,
|
|
141
140
|
...P
|
|
142
|
-
} = s,
|
|
141
|
+
} = s, w = {
|
|
143
142
|
...s,
|
|
144
143
|
orientation: X,
|
|
145
144
|
collapsedSize: l
|
|
146
|
-
}, O = tt(
|
|
145
|
+
}, O = tt(w), U = Ge(), Y = Je(), D = R.useRef(null), j = R.useRef(), q = typeof l == "number" ? `${l}px` : l, M = X === "horizontal", z = M ? "width" : "height", $ = R.useRef(null), H = ce(o, $), N = (I) => (k) => {
|
|
147
146
|
if (I) {
|
|
148
|
-
const L =
|
|
147
|
+
const L = $.current;
|
|
149
148
|
k === void 0 ? I(L) : I(L, k);
|
|
150
149
|
}
|
|
151
150
|
}, W = () => D.current ? D.current[M ? "clientWidth" : "clientHeight"] : 0, J = N((I, k) => {
|
|
152
|
-
D.current && M && (D.current.style.position = "absolute"), I.style[
|
|
151
|
+
D.current && M && (D.current.style.position = "absolute"), I.style[z] = q, b && b(I, k);
|
|
153
152
|
}), ee = N((I, k) => {
|
|
154
153
|
const L = W();
|
|
155
154
|
D.current && M && (D.current.style.position = "");
|
|
@@ -157,39 +156,39 @@ const Xt = xe("MuiCollapse", ["root", "horizontal", "vertical", "entered", "hidd
|
|
|
157
156
|
duration: Z,
|
|
158
157
|
easing: a
|
|
159
158
|
} = Ie({
|
|
160
|
-
style:
|
|
161
|
-
timeout:
|
|
159
|
+
style: _,
|
|
160
|
+
timeout: T,
|
|
162
161
|
easing: c
|
|
163
162
|
}, {
|
|
164
163
|
mode: "enter"
|
|
165
164
|
});
|
|
166
|
-
if (
|
|
167
|
-
const n =
|
|
165
|
+
if (T === "auto") {
|
|
166
|
+
const n = U.transitions.getAutoHeightDuration(L);
|
|
168
167
|
I.style.transitionDuration = `${n}ms`, j.current = n;
|
|
169
168
|
} else
|
|
170
169
|
I.style.transitionDuration = typeof Z == "string" ? Z : `${Z}ms`;
|
|
171
|
-
I.style[
|
|
170
|
+
I.style[z] = `${L}px`, I.style.transitionTimingFunction = a, r && r(I, k);
|
|
172
171
|
}), Q = N((I, k) => {
|
|
173
|
-
I.style[
|
|
172
|
+
I.style[z] = "auto", C && C(I, k);
|
|
174
173
|
}), re = N((I) => {
|
|
175
|
-
I.style[
|
|
176
|
-
}), ue = N(S),
|
|
174
|
+
I.style[z] = `${W()}px`, y && y(I);
|
|
175
|
+
}), ue = N(S), ge = N((I) => {
|
|
177
176
|
const k = W(), {
|
|
178
177
|
duration: L,
|
|
179
178
|
easing: Z
|
|
180
179
|
} = Ie({
|
|
181
|
-
style:
|
|
182
|
-
timeout:
|
|
180
|
+
style: _,
|
|
181
|
+
timeout: T,
|
|
183
182
|
easing: c
|
|
184
183
|
}, {
|
|
185
184
|
mode: "exit"
|
|
186
185
|
});
|
|
187
|
-
if (
|
|
188
|
-
const a =
|
|
186
|
+
if (T === "auto") {
|
|
187
|
+
const a = U.transitions.getAutoHeightDuration(k);
|
|
189
188
|
I.style.transitionDuration = `${a}ms`, j.current = a;
|
|
190
189
|
} else
|
|
191
190
|
I.style.transitionDuration = typeof L == "string" ? L : `${L}ms`;
|
|
192
|
-
I.style[
|
|
191
|
+
I.style[z] = q, I.style.transitionTimingFunction = Z, F && F(I);
|
|
193
192
|
});
|
|
194
193
|
return /* @__PURE__ */ x(E, {
|
|
195
194
|
in: h,
|
|
@@ -198,42 +197,42 @@ const Xt = xe("MuiCollapse", ["root", "horizontal", "vertical", "entered", "hidd
|
|
|
198
197
|
onEntering: ee,
|
|
199
198
|
onExit: re,
|
|
200
199
|
onExited: ue,
|
|
201
|
-
onExiting:
|
|
200
|
+
onExiting: ge,
|
|
202
201
|
addEndListener: (I) => {
|
|
203
|
-
|
|
202
|
+
T === "auto" && Y.start(j.current || 0, I), p && p($.current, I);
|
|
204
203
|
},
|
|
205
|
-
nodeRef:
|
|
206
|
-
timeout:
|
|
204
|
+
nodeRef: $,
|
|
205
|
+
timeout: T === "auto" ? null : T,
|
|
207
206
|
...P,
|
|
208
207
|
children: (I, {
|
|
209
208
|
ownerState: k,
|
|
210
209
|
...L
|
|
211
210
|
}) => /* @__PURE__ */ x(ot, {
|
|
212
|
-
as:
|
|
213
|
-
className: Te(O.root,
|
|
211
|
+
as: m,
|
|
212
|
+
className: Te(O.root, g, {
|
|
214
213
|
entered: O.entered,
|
|
215
214
|
exited: !h && q === "0px" && O.hidden
|
|
216
215
|
}[I]),
|
|
217
216
|
style: {
|
|
218
217
|
[M ? "minWidth" : "minHeight"]: q,
|
|
219
|
-
...
|
|
218
|
+
..._
|
|
220
219
|
},
|
|
221
220
|
ref: H,
|
|
222
221
|
ownerState: {
|
|
223
|
-
...
|
|
222
|
+
...w,
|
|
224
223
|
state: I
|
|
225
224
|
},
|
|
226
225
|
...L,
|
|
227
226
|
children: /* @__PURE__ */ x(nt, {
|
|
228
227
|
ownerState: {
|
|
229
|
-
...
|
|
228
|
+
...w,
|
|
230
229
|
state: I
|
|
231
230
|
},
|
|
232
231
|
className: O.wrapper,
|
|
233
232
|
ref: D,
|
|
234
233
|
children: /* @__PURE__ */ x(rt, {
|
|
235
234
|
ownerState: {
|
|
236
|
-
...
|
|
235
|
+
...w,
|
|
237
236
|
state: I
|
|
238
237
|
},
|
|
239
238
|
className: O.wrapperInner,
|
|
@@ -343,32 +342,39 @@ const it = ae(/* @__PURE__ */ x("path", {
|
|
|
343
342
|
d: "M7.41 8.59 12 13.17l4.59-4.58L18 10l-6 6-6-6z"
|
|
344
343
|
}), "KeyboardArrowDown"), st = ae(/* @__PURE__ */ x("path", {
|
|
345
344
|
d: "M8.59 16.59 13.17 12 8.59 7.41 10 6l6 6-6 6z"
|
|
346
|
-
}), "KeyboardArrowRight");
|
|
347
|
-
function at(e) {
|
|
348
|
-
|
|
345
|
+
}), "KeyboardArrowRight"), he = /* @__PURE__ */ new Set();
|
|
346
|
+
function at(e, t = "warning") {
|
|
347
|
+
if (process.env.NODE_ENV === "production")
|
|
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));
|
|
349
352
|
}
|
|
350
|
-
|
|
351
|
-
|
|
353
|
+
function lt(e) {
|
|
354
|
+
return Ue;
|
|
355
|
+
}
|
|
356
|
+
let ye = 0;
|
|
357
|
+
const Yt = () => (ye += 1, `mui-tree-view-${ye}`), dt = ({
|
|
352
358
|
id: e,
|
|
353
359
|
treeId: t = "",
|
|
354
360
|
itemId: o
|
|
355
|
-
}) => e ?? `${t}-${o}`,
|
|
356
|
-
process.env.NODE_ENV !== "production" && (
|
|
361
|
+
}) => e ?? `${t}-${o}`, Ee = /* @__PURE__ */ R.createContext(null);
|
|
362
|
+
process.env.NODE_ENV !== "production" && (Ee.displayName = "TreeViewContext");
|
|
357
363
|
const ne = () => {
|
|
358
|
-
const e = R.useContext(
|
|
364
|
+
const e = R.useContext(Ee);
|
|
359
365
|
if (e == null)
|
|
360
366
|
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(`
|
|
361
367
|
`));
|
|
362
368
|
return e;
|
|
363
|
-
},
|
|
364
|
-
process.env.NODE_ENV !== "production" && (
|
|
365
|
-
const
|
|
369
|
+
}, Re = /* @__PURE__ */ R.createContext(() => -1);
|
|
370
|
+
process.env.NODE_ENV !== "production" && (Re.displayName = "TreeViewItemDepthContext");
|
|
371
|
+
const Se = (e, t) => {
|
|
366
372
|
let o = t.length - 1;
|
|
367
373
|
for (; o >= 0 && !e.isItemNavigable(t[o]); )
|
|
368
374
|
o -= 1;
|
|
369
375
|
if (o !== -1)
|
|
370
376
|
return t[o];
|
|
371
|
-
},
|
|
377
|
+
}, ct = (e, t) => {
|
|
372
378
|
const o = e.getItemMeta(t), s = e.getItemOrderedChildrenIds(o.parentId), p = e.getItemIndex(t);
|
|
373
379
|
if (p === 0)
|
|
374
380
|
return o.parentId;
|
|
@@ -376,12 +382,12 @@ const Re = (e, t) => {
|
|
|
376
382
|
for (; !e.isItemNavigable(s[d]) && d >= 0; )
|
|
377
383
|
d -= 1;
|
|
378
384
|
if (d === -1)
|
|
379
|
-
return o.parentId == null ? null :
|
|
380
|
-
let
|
|
381
|
-
for (; e.isItemExpanded(
|
|
382
|
-
|
|
383
|
-
return
|
|
384
|
-
},
|
|
385
|
+
return o.parentId == null ? null : ct(e, o.parentId);
|
|
386
|
+
let g = s[d], l = Se(e, e.getItemOrderedChildrenIds(g));
|
|
387
|
+
for (; e.isItemExpanded(g) && l != null; )
|
|
388
|
+
g = l, l = e.getItemOrderedChildrenIds(g).find(e.isItemNavigable);
|
|
389
|
+
return g;
|
|
390
|
+
}, pt = (e, t) => {
|
|
385
391
|
if (e.isItemExpanded(t)) {
|
|
386
392
|
const s = e.getItemOrderedChildrenIds(t).find(e.isItemNavigable);
|
|
387
393
|
if (s != null)
|
|
@@ -403,29 +409,29 @@ const Re = (e, t) => {
|
|
|
403
409
|
}, Jt = (e) => {
|
|
404
410
|
let t = null;
|
|
405
411
|
for (; t == null || e.isItemExpanded(t); ) {
|
|
406
|
-
const o = e.getItemOrderedChildrenIds(t), s =
|
|
412
|
+
const o = e.getItemOrderedChildrenIds(t), s = Se(e, o);
|
|
407
413
|
if (s == null)
|
|
408
414
|
return t;
|
|
409
415
|
t = s;
|
|
410
416
|
}
|
|
411
417
|
return t;
|
|
412
|
-
},
|
|
418
|
+
}, ut = (e) => e.getItemOrderedChildrenIds(null).find(e.isItemNavigable), gt = (e, t, o) => {
|
|
413
419
|
if (t === o)
|
|
414
420
|
return [t, o];
|
|
415
421
|
const s = e.getItemMeta(t), p = e.getItemMeta(o);
|
|
416
422
|
if (s.parentId === p.id || p.parentId === s.id)
|
|
417
423
|
return p.parentId === s.id ? [s.id, p.id] : [p.id, s.id];
|
|
418
|
-
const d = [s.id],
|
|
419
|
-
let l = s.parentId,
|
|
424
|
+
const d = [s.id], g = [p.id];
|
|
425
|
+
let l = s.parentId, m = p.parentId, c = g.indexOf(l) !== -1, h = d.indexOf(m) !== -1, b = !0, C = !0;
|
|
420
426
|
for (; !h && !c; )
|
|
421
|
-
b && (d.push(l), c =
|
|
422
|
-
const r = c ? l :
|
|
427
|
+
b && (d.push(l), c = g.indexOf(l) !== -1, b = l !== null, !c && b && (l = e.getItemMeta(l).parentId)), C && !c && (g.push(m), h = d.indexOf(m) !== -1, C = m !== null, !h && C && (m = e.getItemMeta(m).parentId));
|
|
428
|
+
const r = c ? l : m, y = e.getItemOrderedChildrenIds(r), S = d[d.indexOf(r) - 1], F = g[g.indexOf(r) - 1];
|
|
423
429
|
return y.indexOf(S) < y.indexOf(F) ? [t, o] : [o, t];
|
|
424
430
|
}, Qt = (e, t, o) => {
|
|
425
|
-
const s = (
|
|
426
|
-
if (e.isItemExpandable(
|
|
427
|
-
return e.getItemOrderedChildrenIds(
|
|
428
|
-
let c = e.getItemMeta(
|
|
431
|
+
const s = (m) => {
|
|
432
|
+
if (e.isItemExpandable(m) && e.isItemExpanded(m))
|
|
433
|
+
return e.getItemOrderedChildrenIds(m)[0];
|
|
434
|
+
let c = e.getItemMeta(m);
|
|
429
435
|
for (; c != null; ) {
|
|
430
436
|
const h = e.getItemOrderedChildrenIds(c.parentId), b = e.getItemIndex(c.id);
|
|
431
437
|
if (b < h.length - 1)
|
|
@@ -433,18 +439,18 @@ const Re = (e, t) => {
|
|
|
433
439
|
c = e.getItemMeta(c.parentId);
|
|
434
440
|
}
|
|
435
441
|
throw new Error("Invalid range");
|
|
436
|
-
}, [p, d] =
|
|
442
|
+
}, [p, d] = gt(e, t, o), g = [p];
|
|
437
443
|
let l = p;
|
|
438
444
|
for (; l !== d; )
|
|
439
|
-
l = s(l), e.isItemDisabled(l) ||
|
|
440
|
-
return
|
|
445
|
+
l = s(l), e.isItemDisabled(l) || g.push(l);
|
|
446
|
+
return g;
|
|
441
447
|
}, Zt = (e) => {
|
|
442
|
-
let t =
|
|
448
|
+
let t = ut(e);
|
|
443
449
|
const o = [];
|
|
444
450
|
for (; t != null; )
|
|
445
|
-
o.push(t), t =
|
|
451
|
+
o.push(t), t = pt(e, t);
|
|
446
452
|
return o;
|
|
447
|
-
},
|
|
453
|
+
}, xe = (e, t) => t !== e.closest('*[role="treeitem"]'), de = (e, t) => e.getAvailablePlugins().has(t), ft = ({
|
|
448
454
|
props: e
|
|
449
455
|
}) => {
|
|
450
456
|
const {
|
|
@@ -452,14 +458,14 @@ const Re = (e, t) => {
|
|
|
452
458
|
} = ne(), {
|
|
453
459
|
label: o,
|
|
454
460
|
itemId: s
|
|
455
|
-
} = e, [p, d] = R.useState(o),
|
|
461
|
+
} = e, [p, d] = R.useState(o), g = t.isItemBeingEdited(s);
|
|
456
462
|
return R.useEffect(() => {
|
|
457
|
-
|
|
458
|
-
}, [
|
|
463
|
+
g || d(o);
|
|
464
|
+
}, [g, o]), {
|
|
459
465
|
propsEnhancers: {
|
|
460
466
|
labelInput: ({
|
|
461
467
|
externalEventHandlers: l,
|
|
462
|
-
interactions:
|
|
468
|
+
interactions: m
|
|
463
469
|
}) => t.isItemEditable(s) ? {
|
|
464
470
|
value: p ?? "",
|
|
465
471
|
"data-element": "labelInput",
|
|
@@ -472,11 +478,11 @@ const Re = (e, t) => {
|
|
|
472
478
|
if ((S = l.onKeyDown) == null || S.call(l, r), r.defaultMuiPrevented)
|
|
473
479
|
return;
|
|
474
480
|
const y = r.target;
|
|
475
|
-
r.key === "Enter" && y.value ?
|
|
481
|
+
r.key === "Enter" && y.value ? m.handleSaveItemLabel(r, y.value) : r.key === "Escape" && m.handleCancelItemLabelEditing(r);
|
|
476
482
|
},
|
|
477
483
|
onBlur: (r) => {
|
|
478
484
|
var y;
|
|
479
|
-
(y = l.onBlur) == null || y.call(l, r), !r.defaultMuiPrevented && r.target.value &&
|
|
485
|
+
(y = l.onBlur) == null || y.call(l, r), !r.defaultMuiPrevented && r.target.value && m.handleSaveItemLabel(r, r.target.value);
|
|
480
486
|
},
|
|
481
487
|
autoFocus: !0,
|
|
482
488
|
type: "text"
|
|
@@ -489,12 +495,12 @@ const Re = (e, t) => {
|
|
|
489
495
|
setState: o,
|
|
490
496
|
params: s
|
|
491
497
|
}) => {
|
|
492
|
-
const p = R.useRef(t.editedItemId), d = (b) => p.current === b,
|
|
493
|
-
o((C) =>
|
|
498
|
+
const p = R.useRef(t.editedItemId), d = (b) => p.current === b, g = (b) => {
|
|
499
|
+
o((C) => f({}, C, {
|
|
494
500
|
editedItemId: b
|
|
495
501
|
})), p.current = b;
|
|
496
|
-
}, l = (b) => b === t.editedItemId,
|
|
497
|
-
if (b == null || !
|
|
502
|
+
}, l = (b) => b === t.editedItemId, m = !!s.isItemEditable, c = (b) => {
|
|
503
|
+
if (b == null || !m)
|
|
498
504
|
return !1;
|
|
499
505
|
const C = e.getItem(b);
|
|
500
506
|
return C ? typeof s.isItemEditable == "function" ? s.isItemEditable(C) : !!s.isItemEditable : !1;
|
|
@@ -504,10 +510,10 @@ const Re = (e, t) => {
|
|
|
504
510
|
`));
|
|
505
511
|
o((r) => {
|
|
506
512
|
const y = r.items.itemMetaMap[b];
|
|
507
|
-
return y.label !== C ?
|
|
508
|
-
items:
|
|
509
|
-
itemMetaMap:
|
|
510
|
-
[b]:
|
|
513
|
+
return y.label !== C ? f({}, r, {
|
|
514
|
+
items: f({}, r.items, {
|
|
515
|
+
itemMetaMap: f({}, r.items.itemMetaMap, {
|
|
516
|
+
[b]: f({}, y, {
|
|
511
517
|
label: C
|
|
512
518
|
})
|
|
513
519
|
})
|
|
@@ -517,11 +523,11 @@ const Re = (e, t) => {
|
|
|
517
523
|
};
|
|
518
524
|
return {
|
|
519
525
|
instance: {
|
|
520
|
-
setEditedItemId:
|
|
526
|
+
setEditedItemId: g,
|
|
521
527
|
isItemBeingEdited: l,
|
|
522
528
|
updateItemLabel: h,
|
|
523
529
|
isItemEditable: c,
|
|
524
|
-
isTreeViewEditable:
|
|
530
|
+
isTreeViewEditable: m,
|
|
525
531
|
isItemBeingEditedRef: d
|
|
526
532
|
},
|
|
527
533
|
publicAPI: {
|
|
@@ -529,13 +535,13 @@ const Re = (e, t) => {
|
|
|
529
535
|
}
|
|
530
536
|
};
|
|
531
537
|
};
|
|
532
|
-
G.itemPlugin =
|
|
538
|
+
G.itemPlugin = ft;
|
|
533
539
|
G.getDefaultizedParams = ({
|
|
534
540
|
params: e,
|
|
535
541
|
experimentalFeatures: t
|
|
536
542
|
}) => {
|
|
537
543
|
const o = t == null ? void 0 : t.labelEditing;
|
|
538
|
-
return process.env.NODE_ENV !== "production" && e.isItemEditable && !o &&
|
|
544
|
+
return process.env.NODE_ENV !== "production" && e.isItemEditable && !o && at(["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/"]), f({}, e, {
|
|
539
545
|
isItemEditable: o ? e.isItemEditable ?? !1 : !1
|
|
540
546
|
});
|
|
541
547
|
};
|
|
@@ -546,7 +552,7 @@ G.params = {
|
|
|
546
552
|
onItemLabelChange: !0,
|
|
547
553
|
isItemEditable: !0
|
|
548
554
|
};
|
|
549
|
-
const
|
|
555
|
+
const mt = A("div", {
|
|
550
556
|
name: "MuiTreeItem2DragAndDropOverlay",
|
|
551
557
|
slot: "Root",
|
|
552
558
|
overridesResolver: (e, t) => t.root,
|
|
@@ -596,10 +602,10 @@ const gt = A("div", {
|
|
|
596
602
|
}
|
|
597
603
|
}]
|
|
598
604
|
}));
|
|
599
|
-
function
|
|
600
|
-
return e.action == null ? null : /* @__PURE__ */ x(
|
|
605
|
+
function Oe(e) {
|
|
606
|
+
return e.action == null ? null : /* @__PURE__ */ x(mt, f({}, e));
|
|
601
607
|
}
|
|
602
|
-
process.env.NODE_ENV !== "production" && (
|
|
608
|
+
process.env.NODE_ENV !== "production" && (Oe.propTypes = {
|
|
603
609
|
// ----------------------------- Warning --------------------------------
|
|
604
610
|
// | These PropTypes are generated from the TypeScript type definitions |
|
|
605
611
|
// | To update them edit the TypeScript types and run "pnpm proptypes" |
|
|
@@ -607,13 +613,13 @@ process.env.NODE_ENV !== "production" && (Se.propTypes = {
|
|
|
607
613
|
action: i.oneOf(["make-child", "move-to-parent", "reorder-above", "reorder-below"]),
|
|
608
614
|
style: i.object
|
|
609
615
|
});
|
|
610
|
-
const
|
|
616
|
+
const bt = A("input", {
|
|
611
617
|
name: "MuiTreeItem2",
|
|
612
618
|
slot: "LabelInput",
|
|
613
619
|
overridesResolver: (e, t) => t.labelInput
|
|
614
620
|
})(({
|
|
615
621
|
theme: e
|
|
616
|
-
}) =>
|
|
622
|
+
}) => f({}, e.typography.body1, {
|
|
617
623
|
width: "100%",
|
|
618
624
|
backgroundColor: e.palette.background.paper,
|
|
619
625
|
borderRadius: e.shape.borderRadius,
|
|
@@ -624,12 +630,12 @@ const ft = A("input", {
|
|
|
624
630
|
outline: `1px solid ${e.palette.primary.main}`
|
|
625
631
|
}
|
|
626
632
|
}));
|
|
627
|
-
function
|
|
628
|
-
return
|
|
633
|
+
function It(e) {
|
|
634
|
+
return we("MuiTreeItem", e);
|
|
629
635
|
}
|
|
630
|
-
const Ht =
|
|
636
|
+
const Ht = Ce("MuiTreeItem", ["root", "groupTransition", "content", "expanded", "selected", "focused", "disabled", "iconContainer", "label", "checkbox", "labelInput", "editable", "editing", "dragAndDropOverlay"]), ht = ae(/* @__PURE__ */ x("path", {
|
|
631
637
|
d: "M10 6 8.59 7.41 13.17 12l-4.58 4.59L10 18l6-6z"
|
|
632
|
-
}), "TreeViewExpandIcon"),
|
|
638
|
+
}), "TreeViewExpandIcon"), yt = ae(/* @__PURE__ */ x("path", {
|
|
633
639
|
d: "M16.59 8.59 12 13.17 7.41 8.59 6 10l6 6 6-6z"
|
|
634
640
|
}), "TreeViewCollapseIcon");
|
|
635
641
|
function pe(e) {
|
|
@@ -654,7 +660,7 @@ pe.propTypes = {
|
|
|
654
660
|
children: i.node,
|
|
655
661
|
itemId: i.string.isRequired
|
|
656
662
|
};
|
|
657
|
-
const
|
|
663
|
+
const De = (e) => Array.isArray(e) ? e.length > 0 && e.some(De) : !!e, xt = ({
|
|
658
664
|
itemId: e,
|
|
659
665
|
children: t
|
|
660
666
|
}) => {
|
|
@@ -665,14 +671,14 @@ const Oe = (e) => Array.isArray(e) ? e.length > 0 && e.some(Oe) : !!e, yt = ({
|
|
|
665
671
|
},
|
|
666
672
|
publicAPI: p
|
|
667
673
|
} = ne(), d = {
|
|
668
|
-
expandable:
|
|
674
|
+
expandable: De(t),
|
|
669
675
|
expanded: o.isItemExpanded(e),
|
|
670
676
|
focused: o.isItemFocused(e),
|
|
671
677
|
selected: o.isItemSelected(e),
|
|
672
678
|
disabled: o.isItemDisabled(e),
|
|
673
679
|
editing: o != null && o.isItemBeingEdited ? o == null ? void 0 : o.isItemBeingEdited(e) : !1,
|
|
674
680
|
editable: o.isItemEditable ? o.isItemEditable(e) : !1
|
|
675
|
-
},
|
|
681
|
+
}, g = (r) => {
|
|
676
682
|
if (d.disabled)
|
|
677
683
|
return;
|
|
678
684
|
d.focused || o.focusItem(r, e);
|
|
@@ -690,7 +696,7 @@ const Oe = (e) => Array.isArray(e) ? e.length > 0 && e.some(Oe) : !!e, yt = ({
|
|
|
690
696
|
itemId: e,
|
|
691
697
|
shouldBeSelected: !0
|
|
692
698
|
});
|
|
693
|
-
},
|
|
699
|
+
}, m = (r) => {
|
|
694
700
|
const y = r.nativeEvent.shiftKey;
|
|
695
701
|
s && y ? o.expandSelectionRange(r, e) : o.selectItem({
|
|
696
702
|
event: r,
|
|
@@ -703,9 +709,9 @@ const Oe = (e) => Array.isArray(e) ? e.length > 0 && e.some(Oe) : !!e, yt = ({
|
|
|
703
709
|
};
|
|
704
710
|
return {
|
|
705
711
|
interactions: {
|
|
706
|
-
handleExpansion:
|
|
712
|
+
handleExpansion: g,
|
|
707
713
|
handleSelection: l,
|
|
708
|
-
handleCheckboxSelection:
|
|
714
|
+
handleCheckboxSelection: m,
|
|
709
715
|
toggleItemEditing: c,
|
|
710
716
|
handleSaveItemLabel: (r, y) => {
|
|
711
717
|
de(o, G) && o.isItemBeingEditedRef(e) && (o.updateItemLabel(e, y), c(), o.focusItem(r, e));
|
|
@@ -717,7 +723,7 @@ const Oe = (e) => Array.isArray(e) ? e.length > 0 && e.some(Oe) : !!e, yt = ({
|
|
|
717
723
|
status: d,
|
|
718
724
|
publicAPI: p
|
|
719
725
|
};
|
|
720
|
-
},
|
|
726
|
+
}, Ct = (e) => {
|
|
721
727
|
const {
|
|
722
728
|
runItemPlugins: t,
|
|
723
729
|
items: {
|
|
@@ -727,15 +733,15 @@ const Oe = (e) => Array.isArray(e) ? e.length > 0 && e.some(Oe) : !!e, yt = ({
|
|
|
727
733
|
},
|
|
728
734
|
selection: {
|
|
729
735
|
disableSelection: d,
|
|
730
|
-
checkboxSelection:
|
|
736
|
+
checkboxSelection: g
|
|
731
737
|
},
|
|
732
738
|
expansion: {
|
|
733
739
|
expansionTrigger: l
|
|
734
740
|
},
|
|
735
|
-
treeId:
|
|
741
|
+
treeId: m,
|
|
736
742
|
instance: c,
|
|
737
743
|
publicAPI: h
|
|
738
|
-
} = ne(), b = R.useContext(
|
|
744
|
+
} = ne(), b = R.useContext(Re), {
|
|
739
745
|
id: C,
|
|
740
746
|
itemId: r,
|
|
741
747
|
label: y,
|
|
@@ -743,36 +749,36 @@ const Oe = (e) => Array.isArray(e) ? e.length > 0 && e.some(Oe) : !!e, yt = ({
|
|
|
743
749
|
rootRef: F
|
|
744
750
|
} = e, {
|
|
745
751
|
rootRef: X,
|
|
746
|
-
contentRef:
|
|
747
|
-
propsEnhancers:
|
|
752
|
+
contentRef: _,
|
|
753
|
+
propsEnhancers: T
|
|
748
754
|
} = t(e), {
|
|
749
755
|
interactions: E,
|
|
750
756
|
status: P
|
|
751
|
-
} =
|
|
757
|
+
} = xt({
|
|
752
758
|
itemId: r,
|
|
753
759
|
children: S
|
|
754
|
-
}),
|
|
760
|
+
}), w = R.useRef(null), O = R.useRef(null), U = ce(F, X, w), Y = ce(_, O), D = R.useRef(null), j = dt({
|
|
755
761
|
itemId: r,
|
|
756
|
-
treeId:
|
|
762
|
+
treeId: m,
|
|
757
763
|
id: C
|
|
758
764
|
}), q = c.canItemBeTabbed(r) ? 0 : -1, M = {
|
|
759
|
-
rootRefObject:
|
|
765
|
+
rootRefObject: w,
|
|
760
766
|
contentRefObject: O,
|
|
761
767
|
interactions: E
|
|
762
|
-
},
|
|
768
|
+
}, z = (a) => (n) => {
|
|
763
769
|
var v;
|
|
764
770
|
if ((v = a.onFocus) == null || v.call(a, n), n.defaultMuiPrevented)
|
|
765
771
|
return;
|
|
766
772
|
const u = !P.disabled || s;
|
|
767
773
|
!P.focused && u && n.currentTarget === n.target && c.focusItem(n, r);
|
|
768
|
-
},
|
|
769
|
-
var v, V, te,
|
|
774
|
+
}, $ = (a) => (n) => {
|
|
775
|
+
var v, V, te, fe, me;
|
|
770
776
|
if ((v = a.onBlur) == null || v.call(a, n), n.defaultMuiPrevented)
|
|
771
777
|
return;
|
|
772
778
|
const u = c.getItemDOMElement(r);
|
|
773
779
|
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
|
|
774
780
|
// 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
|
|
775
|
-
n.relatedTarget &&
|
|
781
|
+
n.relatedTarget && xe(n.relatedTarget, u) && (n.target && ((te = (V = n.target) == null ? void 0 : V.dataset) == null ? void 0 : te.element) === "labelInput" && xe(n.target, u) || ((me = (fe = n.relatedTarget) == null ? void 0 : fe.dataset) == null ? void 0 : me.element) === "labelInput") || c.removeFocusedItem();
|
|
776
782
|
}, H = (a) => (n) => {
|
|
777
783
|
var u, v, V;
|
|
778
784
|
(u = a.onKeyDown) == null || u.call(a, n), !(n.defaultMuiPrevented || ((V = (v = n.target) == null ? void 0 : v.dataset) == null ? void 0 : V.element) === "labelInput") && c.handleItemKeyDown(n, r);
|
|
@@ -781,7 +787,7 @@ const Oe = (e) => Array.isArray(e) ? e.length > 0 && e.some(Oe) : !!e, yt = ({
|
|
|
781
787
|
(u = a.onDoubleClick) == null || u.call(a, n), !n.defaultMuiPrevented && E.toggleItemEditing();
|
|
782
788
|
}, W = (a) => (n) => {
|
|
783
789
|
var u, v;
|
|
784
|
-
(u = a.onClick) == null || u.call(a, n), o == null || o(n, r), !(n.defaultMuiPrevented || (v = D.current) != null && v.contains(n.target)) && (l === "content" && E.handleExpansion(n),
|
|
790
|
+
(u = a.onClick) == null || u.call(a, n), o == null || o(n, r), !(n.defaultMuiPrevented || (v = D.current) != null && v.contains(n.target)) && (l === "content" && E.handleExpansion(n), g || E.handleSelection(n));
|
|
785
791
|
}, J = (a) => (n) => {
|
|
786
792
|
var u;
|
|
787
793
|
(u = a.onMouseDown) == null || u.call(a, n), !n.defaultMuiPrevented && (n.shiftKey || n.ctrlKey || n.metaKey || P.disabled) && n.preventDefault();
|
|
@@ -795,11 +801,11 @@ const Oe = (e) => Array.isArray(e) ? e.length > 0 && e.some(Oe) : !!e, yt = ({
|
|
|
795
801
|
return {
|
|
796
802
|
getRootProps: (a = {}) => {
|
|
797
803
|
var te;
|
|
798
|
-
const n =
|
|
804
|
+
const n = f({}, B(e), B(a));
|
|
799
805
|
let u;
|
|
800
806
|
P.selected ? u = !0 : d || P.disabled ? u = void 0 : u = !1;
|
|
801
|
-
const v =
|
|
802
|
-
ref:
|
|
807
|
+
const v = f({}, n, {
|
|
808
|
+
ref: U,
|
|
803
809
|
role: "treeitem",
|
|
804
810
|
tabIndex: q,
|
|
805
811
|
id: j,
|
|
@@ -807,34 +813,34 @@ const Oe = (e) => Array.isArray(e) ? e.length > 0 && e.some(Oe) : !!e, yt = ({
|
|
|
807
813
|
"aria-selected": u,
|
|
808
814
|
"aria-disabled": P.disabled || void 0
|
|
809
815
|
}, a, {
|
|
810
|
-
onFocus:
|
|
811
|
-
onBlur:
|
|
816
|
+
onFocus: z(n),
|
|
817
|
+
onBlur: $(n),
|
|
812
818
|
onKeyDown: H(n)
|
|
813
819
|
});
|
|
814
820
|
p && (v.style = {
|
|
815
821
|
"--TreeView-itemDepth": typeof b == "function" ? b(r) : b
|
|
816
822
|
});
|
|
817
|
-
const V = ((te =
|
|
823
|
+
const V = ((te = T.root) == null ? void 0 : te.call(T, f({}, M, {
|
|
818
824
|
externalEventHandlers: n
|
|
819
825
|
}))) ?? {};
|
|
820
|
-
return
|
|
826
|
+
return f({}, v, V);
|
|
821
827
|
},
|
|
822
828
|
getContentProps: (a = {}) => {
|
|
823
829
|
var V;
|
|
824
|
-
const n = B(a), u =
|
|
830
|
+
const n = B(a), u = f({}, n, a, {
|
|
825
831
|
ref: Y,
|
|
826
832
|
onClick: W(n),
|
|
827
833
|
onMouseDown: J(n),
|
|
828
834
|
status: P
|
|
829
835
|
});
|
|
830
836
|
p && (u.indentationAtItemLevel = !0);
|
|
831
|
-
const v = ((V =
|
|
837
|
+
const v = ((V = T.content) == null ? void 0 : V.call(T, f({}, M, {
|
|
832
838
|
externalEventHandlers: n
|
|
833
839
|
}))) ?? {};
|
|
834
|
-
return
|
|
840
|
+
return f({}, u, v);
|
|
835
841
|
},
|
|
836
842
|
getGroupTransitionProps: (a = {}) => {
|
|
837
|
-
const n = B(a), u =
|
|
843
|
+
const n = B(a), u = f({}, n, {
|
|
838
844
|
unmountOnExit: !0,
|
|
839
845
|
component: "ul",
|
|
840
846
|
role: "group",
|
|
@@ -845,14 +851,14 @@ const Oe = (e) => Array.isArray(e) ? e.length > 0 && e.some(Oe) : !!e, yt = ({
|
|
|
845
851
|
},
|
|
846
852
|
getIconContainerProps: (a = {}) => {
|
|
847
853
|
const n = B(a);
|
|
848
|
-
return
|
|
854
|
+
return f({}, n, a, {
|
|
849
855
|
onClick: Q(n)
|
|
850
856
|
});
|
|
851
857
|
},
|
|
852
858
|
getCheckboxProps: (a = {}) => {
|
|
853
859
|
const n = B(a);
|
|
854
|
-
return
|
|
855
|
-
visible:
|
|
860
|
+
return f({}, n, {
|
|
861
|
+
visible: g,
|
|
856
862
|
ref: D,
|
|
857
863
|
checked: P.selected,
|
|
858
864
|
disabled: d || P.disabled,
|
|
@@ -862,7 +868,7 @@ const Oe = (e) => Array.isArray(e) ? e.length > 0 && e.some(Oe) : !!e, yt = ({
|
|
|
862
868
|
});
|
|
863
869
|
},
|
|
864
870
|
getLabelProps: (a = {}) => {
|
|
865
|
-
const n =
|
|
871
|
+
const n = f({}, B(a)), u = f({}, n, {
|
|
866
872
|
children: y
|
|
867
873
|
}, a, {
|
|
868
874
|
onDoubleClick: N(n)
|
|
@@ -871,46 +877,46 @@ const Oe = (e) => Array.isArray(e) ? e.length > 0 && e.some(Oe) : !!e, yt = ({
|
|
|
871
877
|
},
|
|
872
878
|
getLabelInputProps: (a = {}) => {
|
|
873
879
|
var v;
|
|
874
|
-
const n = B(a), u = ((v =
|
|
875
|
-
rootRefObject:
|
|
880
|
+
const n = B(a), u = ((v = T.labelInput) == null ? void 0 : v.call(T, {
|
|
881
|
+
rootRefObject: w,
|
|
876
882
|
contentRefObject: O,
|
|
877
883
|
externalEventHandlers: n,
|
|
878
884
|
interactions: E
|
|
879
885
|
})) ?? {};
|
|
880
|
-
return
|
|
886
|
+
return f({}, a, u);
|
|
881
887
|
},
|
|
882
888
|
getDragAndDropOverlayProps: (a = {}) => {
|
|
883
889
|
var v;
|
|
884
|
-
const n = B(a), u = ((v =
|
|
890
|
+
const n = B(a), u = ((v = T.dragAndDropOverlay) == null ? void 0 : v.call(T, f({}, M, {
|
|
885
891
|
externalEventHandlers: n
|
|
886
892
|
}))) ?? {};
|
|
887
|
-
return
|
|
893
|
+
return f({}, a, u);
|
|
888
894
|
},
|
|
889
|
-
rootRef:
|
|
895
|
+
rootRef: U,
|
|
890
896
|
status: P,
|
|
891
897
|
publicAPI: h
|
|
892
898
|
};
|
|
893
|
-
},
|
|
894
|
-
function
|
|
899
|
+
}, Me = Ct;
|
|
900
|
+
function ke(e) {
|
|
895
901
|
const {
|
|
896
902
|
slots: t,
|
|
897
903
|
slotProps: o,
|
|
898
904
|
status: s
|
|
899
|
-
} = e, p = ne(), d =
|
|
900
|
-
expandIcon: p.icons.slots.expandIcon ??
|
|
901
|
-
collapseIcon: p.icons.slots.collapseIcon ??
|
|
902
|
-
}),
|
|
905
|
+
} = e, p = ne(), d = f({}, p.icons.slots, {
|
|
906
|
+
expandIcon: p.icons.slots.expandIcon ?? ht,
|
|
907
|
+
collapseIcon: p.icons.slots.collapseIcon ?? yt
|
|
908
|
+
}), g = p.icons.slotProps;
|
|
903
909
|
let l;
|
|
904
910
|
t != null && t.icon ? l = "icon" : s.expandable ? s.expanded ? l = "collapseIcon" : l = "expandIcon" : l = "endIcon";
|
|
905
|
-
const
|
|
906
|
-
elementType:
|
|
907
|
-
externalSlotProps: (h) =>
|
|
911
|
+
const m = (t == null ? void 0 : t[l]) ?? d[l], c = K({
|
|
912
|
+
elementType: m,
|
|
913
|
+
externalSlotProps: (h) => f({}, be(g[l], h), be(o == null ? void 0 : o[l], h)),
|
|
908
914
|
// TODO: Add proper ownerState
|
|
909
915
|
ownerState: {}
|
|
910
916
|
});
|
|
911
|
-
return
|
|
917
|
+
return m ? /* @__PURE__ */ x(m, f({}, c)) : null;
|
|
912
918
|
}
|
|
913
|
-
process.env.NODE_ENV !== "production" && (
|
|
919
|
+
process.env.NODE_ENV !== "production" && (ke.propTypes = {
|
|
914
920
|
// ----------------------------- Warning --------------------------------
|
|
915
921
|
// | These PropTypes are generated from the TypeScript type definitions |
|
|
916
922
|
// | To update them edit the TypeScript types and run "pnpm proptypes" |
|
|
@@ -935,7 +941,7 @@ process.env.NODE_ENV !== "production" && (Me.propTypes = {
|
|
|
935
941
|
selected: i.bool.isRequired
|
|
936
942
|
}).isRequired
|
|
937
943
|
});
|
|
938
|
-
const
|
|
944
|
+
const wt = ["visible"], Tt = ["id", "itemId", "label", "disabled", "children", "slots", "slotProps"], vt = lt(), Le = A("li", {
|
|
939
945
|
name: "MuiTreeItem2",
|
|
940
946
|
slot: "Root",
|
|
941
947
|
overridesResolver: (e, t) => t.root
|
|
@@ -944,7 +950,7 @@ const Ct = ["visible"], Tt = ["id", "itemId", "label", "disabled", "children", "
|
|
|
944
950
|
margin: 0,
|
|
945
951
|
padding: 0,
|
|
946
952
|
outline: 0
|
|
947
|
-
}),
|
|
953
|
+
}), Ne = A("div", {
|
|
948
954
|
name: "MuiTreeItem2",
|
|
949
955
|
slot: "Content",
|
|
950
956
|
overridesResolver: (e, t) => t.content,
|
|
@@ -1014,14 +1020,14 @@ const Ct = ["visible"], Tt = ["id", "itemId", "label", "disabled", "children", "
|
|
|
1014
1020
|
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)
|
|
1015
1021
|
}
|
|
1016
1022
|
}]
|
|
1017
|
-
})),
|
|
1023
|
+
})), Ae = A("div", {
|
|
1018
1024
|
name: "MuiTreeItem2",
|
|
1019
1025
|
slot: "Label",
|
|
1020
1026
|
overridesResolver: (e, t) => t.label,
|
|
1021
1027
|
shouldForwardProp: (e) => le(e) && e !== "editable"
|
|
1022
1028
|
})(({
|
|
1023
1029
|
theme: e
|
|
1024
|
-
}) =>
|
|
1030
|
+
}) => f({
|
|
1025
1031
|
width: "100%",
|
|
1026
1032
|
boxSizing: "border-box",
|
|
1027
1033
|
// prevent width + padding to overflow
|
|
@@ -1038,7 +1044,7 @@ const Ct = ["visible"], Tt = ["id", "itemId", "label", "disabled", "children", "
|
|
|
1038
1044
|
paddingLeft: "2px"
|
|
1039
1045
|
}
|
|
1040
1046
|
}]
|
|
1041
|
-
})),
|
|
1047
|
+
})), Ve = A("div", {
|
|
1042
1048
|
name: "MuiTreeItem2",
|
|
1043
1049
|
slot: "IconContainer",
|
|
1044
1050
|
overridesResolver: (e, t) => t.iconContainer
|
|
@@ -1050,7 +1056,7 @@ const Ct = ["visible"], Tt = ["id", "itemId", "label", "disabled", "children", "
|
|
|
1050
1056
|
"& svg": {
|
|
1051
1057
|
fontSize: 18
|
|
1052
1058
|
}
|
|
1053
|
-
}),
|
|
1059
|
+
}), ze = A(se, {
|
|
1054
1060
|
name: "MuiTreeItem2",
|
|
1055
1061
|
slot: "GroupTransition",
|
|
1056
1062
|
overridesResolver: (e, t) => t.groupTransition,
|
|
@@ -1067,11 +1073,11 @@ const Ct = ["visible"], Tt = ["id", "itemId", "label", "disabled", "children", "
|
|
|
1067
1073
|
paddingLeft: 0
|
|
1068
1074
|
}
|
|
1069
1075
|
}]
|
|
1070
|
-
}),
|
|
1076
|
+
}), Pt = A(/* @__PURE__ */ R.forwardRef((e, t) => {
|
|
1071
1077
|
const {
|
|
1072
1078
|
visible: o
|
|
1073
|
-
} = e, s =
|
|
1074
|
-
return o ? /* @__PURE__ */ x(Ze,
|
|
1079
|
+
} = e, s = ve(e, wt);
|
|
1080
|
+
return o ? /* @__PURE__ */ x(Ze, f({}, s, {
|
|
1075
1081
|
ref: t
|
|
1076
1082
|
})) : null;
|
|
1077
1083
|
}), {
|
|
@@ -1080,11 +1086,11 @@ const Ct = ["visible"], Tt = ["id", "itemId", "label", "disabled", "children", "
|
|
|
1080
1086
|
overridesResolver: (e, t) => t.checkbox
|
|
1081
1087
|
})({
|
|
1082
1088
|
padding: 0
|
|
1083
|
-
}),
|
|
1089
|
+
}), Et = (e) => {
|
|
1084
1090
|
const {
|
|
1085
1091
|
classes: t
|
|
1086
1092
|
} = e;
|
|
1087
|
-
return
|
|
1093
|
+
return Pe({
|
|
1088
1094
|
root: ["root"],
|
|
1089
1095
|
content: ["content"],
|
|
1090
1096
|
expanded: ["expanded"],
|
|
@@ -1099,36 +1105,36 @@ const Ct = ["visible"], Tt = ["id", "itemId", "label", "disabled", "children", "
|
|
|
1099
1105
|
groupTransition: ["groupTransition"],
|
|
1100
1106
|
labelInput: ["labelInput"],
|
|
1101
1107
|
dragAndDropOverlay: ["dragAndDropOverlay"]
|
|
1102
|
-
},
|
|
1103
|
-
},
|
|
1104
|
-
const s =
|
|
1108
|
+
}, It, t);
|
|
1109
|
+
}, Rt = /* @__PURE__ */ R.forwardRef(function(t, o) {
|
|
1110
|
+
const s = vt({
|
|
1105
1111
|
props: t,
|
|
1106
1112
|
name: "MuiTreeItem2"
|
|
1107
1113
|
}), {
|
|
1108
1114
|
id: p,
|
|
1109
1115
|
itemId: d,
|
|
1110
|
-
label:
|
|
1116
|
+
label: g,
|
|
1111
1117
|
disabled: l,
|
|
1112
|
-
children:
|
|
1118
|
+
children: m,
|
|
1113
1119
|
slots: c = {},
|
|
1114
1120
|
slotProps: h = {}
|
|
1115
|
-
} = s, b =
|
|
1121
|
+
} = s, b = ve(s, Tt), {
|
|
1116
1122
|
getRootProps: C,
|
|
1117
1123
|
getContentProps: r,
|
|
1118
1124
|
getIconContainerProps: y,
|
|
1119
1125
|
getCheckboxProps: S,
|
|
1120
1126
|
getLabelProps: F,
|
|
1121
1127
|
getGroupTransitionProps: X,
|
|
1122
|
-
getLabelInputProps:
|
|
1123
|
-
getDragAndDropOverlayProps:
|
|
1128
|
+
getLabelInputProps: _,
|
|
1129
|
+
getDragAndDropOverlayProps: T,
|
|
1124
1130
|
status: E
|
|
1125
|
-
} =
|
|
1131
|
+
} = Me({
|
|
1126
1132
|
id: p,
|
|
1127
1133
|
itemId: d,
|
|
1128
|
-
children:
|
|
1129
|
-
label:
|
|
1134
|
+
children: m,
|
|
1135
|
+
label: g,
|
|
1130
1136
|
disabled: l
|
|
1131
|
-
}), P =
|
|
1137
|
+
}), P = f({}, s, E), w = Et(P), O = c.root ?? Le, U = K({
|
|
1132
1138
|
elementType: O,
|
|
1133
1139
|
getSlotProps: C,
|
|
1134
1140
|
externalForwardedProps: b,
|
|
@@ -1137,68 +1143,68 @@ const Ct = ["visible"], Tt = ["id", "itemId", "label", "disabled", "children", "
|
|
|
1137
1143
|
ref: o
|
|
1138
1144
|
},
|
|
1139
1145
|
ownerState: {},
|
|
1140
|
-
className:
|
|
1141
|
-
}), Y = c.content ??
|
|
1146
|
+
className: w.root
|
|
1147
|
+
}), Y = c.content ?? Ne, D = K({
|
|
1142
1148
|
elementType: Y,
|
|
1143
1149
|
getSlotProps: r,
|
|
1144
1150
|
externalSlotProps: h.content,
|
|
1145
1151
|
ownerState: {},
|
|
1146
|
-
className: Te(
|
|
1147
|
-
}), j = c.iconContainer ??
|
|
1152
|
+
className: Te(w.content, E.expanded && w.expanded, E.selected && w.selected, E.focused && w.focused, E.disabled && w.disabled, E.editing && w.editing, E.editable && w.editable)
|
|
1153
|
+
}), j = c.iconContainer ?? Ve, q = K({
|
|
1148
1154
|
elementType: j,
|
|
1149
1155
|
getSlotProps: y,
|
|
1150
1156
|
externalSlotProps: h.iconContainer,
|
|
1151
1157
|
ownerState: {},
|
|
1152
|
-
className:
|
|
1153
|
-
}), M = c.label ??
|
|
1158
|
+
className: w.iconContainer
|
|
1159
|
+
}), M = c.label ?? Ae, z = K({
|
|
1154
1160
|
elementType: M,
|
|
1155
1161
|
getSlotProps: F,
|
|
1156
1162
|
externalSlotProps: h.label,
|
|
1157
1163
|
ownerState: {},
|
|
1158
|
-
className:
|
|
1159
|
-
}),
|
|
1160
|
-
elementType:
|
|
1164
|
+
className: w.label
|
|
1165
|
+
}), $ = c.checkbox ?? Pt, H = K({
|
|
1166
|
+
elementType: $,
|
|
1161
1167
|
getSlotProps: S,
|
|
1162
1168
|
externalSlotProps: h.checkbox,
|
|
1163
1169
|
ownerState: {},
|
|
1164
|
-
className:
|
|
1170
|
+
className: w.checkbox
|
|
1165
1171
|
}), N = c.groupTransition ?? void 0, W = K({
|
|
1166
1172
|
elementType: N,
|
|
1167
1173
|
getSlotProps: X,
|
|
1168
1174
|
externalSlotProps: h.groupTransition,
|
|
1169
1175
|
ownerState: {},
|
|
1170
|
-
className:
|
|
1171
|
-
}), J = c.labelInput ??
|
|
1176
|
+
className: w.groupTransition
|
|
1177
|
+
}), J = c.labelInput ?? bt, ee = K({
|
|
1172
1178
|
elementType: J,
|
|
1173
|
-
getSlotProps:
|
|
1179
|
+
getSlotProps: _,
|
|
1174
1180
|
externalSlotProps: h.labelInput,
|
|
1175
1181
|
ownerState: {},
|
|
1176
|
-
className:
|
|
1177
|
-
}), Q = c.dragAndDropOverlay ??
|
|
1182
|
+
className: w.labelInput
|
|
1183
|
+
}), Q = c.dragAndDropOverlay ?? Oe, re = K({
|
|
1178
1184
|
elementType: Q,
|
|
1179
|
-
getSlotProps:
|
|
1185
|
+
getSlotProps: T,
|
|
1180
1186
|
externalSlotProps: h.dragAndDropOverlay,
|
|
1181
1187
|
ownerState: {},
|
|
1182
|
-
className:
|
|
1188
|
+
className: w.dragAndDropOverlay
|
|
1183
1189
|
});
|
|
1184
1190
|
return /* @__PURE__ */ x(pe, {
|
|
1185
1191
|
itemId: d,
|
|
1186
|
-
children: /* @__PURE__ */ ie(O,
|
|
1187
|
-
children: [/* @__PURE__ */ ie(Y,
|
|
1188
|
-
children: [/* @__PURE__ */ x(j,
|
|
1189
|
-
children: /* @__PURE__ */ x(
|
|
1192
|
+
children: /* @__PURE__ */ ie(O, f({}, U, {
|
|
1193
|
+
children: [/* @__PURE__ */ ie(Y, f({}, D, {
|
|
1194
|
+
children: [/* @__PURE__ */ x(j, f({}, q, {
|
|
1195
|
+
children: /* @__PURE__ */ x(ke, {
|
|
1190
1196
|
status: E,
|
|
1191
1197
|
slots: c,
|
|
1192
1198
|
slotProps: h
|
|
1193
1199
|
})
|
|
1194
|
-
})), /* @__PURE__ */ x(
|
|
1195
|
-
})),
|
|
1200
|
+
})), /* @__PURE__ */ x($, f({}, H)), E.editing ? /* @__PURE__ */ x(J, f({}, ee)) : /* @__PURE__ */ x(M, f({}, z)), /* @__PURE__ */ x(Q, f({}, re))]
|
|
1201
|
+
})), m && /* @__PURE__ */ x(ze, f({
|
|
1196
1202
|
as: N
|
|
1197
1203
|
}, W))]
|
|
1198
1204
|
}))
|
|
1199
1205
|
});
|
|
1200
1206
|
});
|
|
1201
|
-
process.env.NODE_ENV !== "production" && (
|
|
1207
|
+
process.env.NODE_ENV !== "production" && (Rt.propTypes = {
|
|
1202
1208
|
// ----------------------------- Warning --------------------------------
|
|
1203
1209
|
// | These PropTypes are generated from the TypeScript type definitions |
|
|
1204
1210
|
// | To update them edit the TypeScript types and run "pnpm proptypes" |
|
|
@@ -1261,12 +1267,12 @@ function eo(e) {
|
|
|
1261
1267
|
label: s,
|
|
1262
1268
|
disabled: p,
|
|
1263
1269
|
children: d,
|
|
1264
|
-
itemData:
|
|
1270
|
+
itemData: g,
|
|
1265
1271
|
iconColor: l = "primary",
|
|
1266
|
-
ref:
|
|
1272
|
+
ref: m
|
|
1267
1273
|
} = e, c = qe(
|
|
1268
|
-
|
|
1269
|
-
|
|
1274
|
+
g == null ? void 0 : g.iconType,
|
|
1275
|
+
g == null ? void 0 : g.customIcon
|
|
1270
1276
|
), {
|
|
1271
1277
|
getRootProps: h,
|
|
1272
1278
|
getContentProps: b,
|
|
@@ -1274,21 +1280,21 @@ function eo(e) {
|
|
|
1274
1280
|
getGroupTransitionProps: r,
|
|
1275
1281
|
getIconContainerProps: y,
|
|
1276
1282
|
status: S
|
|
1277
|
-
} =
|
|
1283
|
+
} = Me({ id: t, itemId: o, label: s, disabled: p, children: d, rootRef: m });
|
|
1278
1284
|
return /* @__PURE__ */ x(pe, { itemId: o, children: /* @__PURE__ */ ie(
|
|
1279
|
-
|
|
1285
|
+
Le,
|
|
1280
1286
|
{
|
|
1281
1287
|
...h(),
|
|
1282
1288
|
"data-treeview-item": o || "",
|
|
1283
1289
|
"data-treeview-item-label": s || "",
|
|
1284
1290
|
children: [
|
|
1285
|
-
/* @__PURE__ */ ie(
|
|
1286
|
-
/* @__PURE__ */ x(
|
|
1287
|
-
/* @__PURE__ */ x(
|
|
1288
|
-
/* @__PURE__ */ x(
|
|
1291
|
+
/* @__PURE__ */ ie(Ne, { ...b(), style: Ke, children: [
|
|
1292
|
+
/* @__PURE__ */ x(Ve, { ...y(), children: /* @__PURE__ */ x(c, { fontSize: "small", color: l }) }),
|
|
1293
|
+
/* @__PURE__ */ x(Ae, { ...C() }),
|
|
1294
|
+
/* @__PURE__ */ x(Be, { sx: Fe, children: S.expandable && (S.expanded ? /* @__PURE__ */ x(it, { fontSize: "small" }) : /* @__PURE__ */ x(st, { fontSize: "small" })) })
|
|
1289
1295
|
] }),
|
|
1290
1296
|
d && /* @__PURE__ */ x(
|
|
1291
|
-
|
|
1297
|
+
ze,
|
|
1292
1298
|
{
|
|
1293
1299
|
...r(),
|
|
1294
1300
|
style: S.expanded ? je : void 0
|
|
@@ -1300,30 +1306,31 @@ function eo(e) {
|
|
|
1300
1306
|
}
|
|
1301
1307
|
export {
|
|
1302
1308
|
se as C,
|
|
1303
|
-
|
|
1309
|
+
Ee as T,
|
|
1304
1310
|
Yt as a,
|
|
1305
|
-
|
|
1311
|
+
dt as b,
|
|
1306
1312
|
Xt as c,
|
|
1307
|
-
|
|
1313
|
+
Re as d,
|
|
1308
1314
|
Jt as e,
|
|
1309
|
-
|
|
1315
|
+
ut as f,
|
|
1310
1316
|
et as g,
|
|
1311
|
-
|
|
1317
|
+
gt as h,
|
|
1312
1318
|
Zt as i,
|
|
1313
1319
|
Qt as j,
|
|
1314
|
-
|
|
1315
|
-
|
|
1316
|
-
|
|
1320
|
+
xe as k,
|
|
1321
|
+
pt as l,
|
|
1322
|
+
ct as m,
|
|
1317
1323
|
de as n,
|
|
1318
1324
|
ne as o,
|
|
1319
|
-
|
|
1320
|
-
|
|
1321
|
-
|
|
1322
|
-
|
|
1323
|
-
|
|
1325
|
+
bt as p,
|
|
1326
|
+
Oe as q,
|
|
1327
|
+
lt as r,
|
|
1328
|
+
yt as s,
|
|
1329
|
+
ht as t,
|
|
1324
1330
|
G as u,
|
|
1325
1331
|
pe as v,
|
|
1326
|
-
|
|
1327
|
-
|
|
1328
|
-
|
|
1332
|
+
at as w,
|
|
1333
|
+
It as x,
|
|
1334
|
+
Ht as y,
|
|
1335
|
+
eo as z
|
|
1329
1336
|
};
|