@cgi-learning-hub/ui 1.5.0 → 1.5.1
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-D7eKsj1P.js → Alert-BfMYnyZX.js} +11 -11
- package/dist/{Alert-CvizDCvx.cjs → Alert-Dg5u5Z7d.cjs} +1 -1
- package/dist/{Autocomplete-DjU6i3zL.cjs → Autocomplete-3xshJ4m_.cjs} +1 -1
- package/dist/{Autocomplete-Cfz4sLy8.js → Autocomplete-DQyr97ya.js} +12 -12
- package/dist/{Backdrop-COiz4sPF.js → Backdrop-B200pms1.js} +6 -6
- package/dist/{Backdrop-BM-OE2Q_.cjs → Backdrop-BrTs3LxC.cjs} +1 -1
- package/dist/{Box-BmfpLwYG.cjs → Box-CFuWIdLg.cjs} +1 -1
- package/dist/{Box-C-j-U8SH.js → Box-D3Pi13ta.js} +3 -3
- package/dist/{Button-BGWvL_UD.cjs → Button-C7tsSPXV.cjs} +1 -1
- package/dist/{Button-CQQdMCSm.js → Button-D1aKdjIh.js} +6 -6
- package/dist/{ButtonBase-CZFKUUHD.js → ButtonBase-Bncgzjtp.js} +4 -4
- package/dist/{ButtonBase-NqQjeQ4X.cjs → ButtonBase-CBFRgTBs.cjs} +1 -1
- package/dist/{CardContent-GHLuvxgm.cjs → CardContent-BRUkl8hU.cjs} +1 -1
- package/dist/{CardContent-sX9Bw4Ke.js → CardContent-DyggcxBG.js} +3 -3
- package/dist/{Checkbox-BZYoJieY.cjs → Checkbox-C_wSNEHD.cjs} +1 -1
- package/dist/{Checkbox-1Zr36vDa.js → Checkbox-DkrWUPYT.js} +7 -7
- package/dist/{Chip-Cu_SZxrx.cjs → Chip-DUeBMcO4.cjs} +1 -1
- package/dist/{Chip-BsErraqe.js → Chip-Y39z3DS6.js} +6 -6
- package/dist/{CircularProgress-BBHGA0JX.js → CircularProgress-BDjnnyuL.js} +4 -4
- package/dist/{CircularProgress-CdS7-HOv.cjs → CircularProgress-DdHpo4Bf.cjs} +1 -1
- package/dist/{Close-ZXg7X3Tz.cjs → Close-DJDhRwj2.cjs} +1 -1
- package/dist/{Close-r-ZUhk0-.js → Close-hx7dlgmZ.js} +1 -1
- package/dist/{CloseRounded-CWmxueMc.cjs → CloseRounded-DapqosK3.cjs} +1 -1
- package/dist/{CloseRounded-B-eaQsyM.js → CloseRounded-aZqv6aS-.js} +1 -1
- package/dist/CustomTreeItem-9kBuTFO8.cjs +4 -0
- package/dist/{CustomTreeItem-BpAK85gf.js → CustomTreeItem-CgdZ-hEx.js} +261 -256
- package/dist/{DatePicker-tyDzcyzu.cjs → DatePicker-BYPJypQT.cjs} +1 -1
- package/dist/{DatePicker-CWMXTgRG.js → DatePicker-C2ZobNcJ.js} +31 -31
- package/dist/{DefaultPropsProvider-BTnRBr0O.cjs → DefaultPropsProvider-B6DqRWnX.cjs} +1 -1
- package/dist/{DefaultPropsProvider-CXfMJdg8.js → DefaultPropsProvider-Ik4eAJdt.js} +1 -1
- package/dist/{Delete-DKn2lIDB.js → Delete-Cfk3fOW-.js} +1 -1
- package/dist/{Delete-CpTtpM4U.cjs → Delete-DDxv1h6V.cjs} +1 -1
- package/dist/{Dialog-pU1ZAttp.js → Dialog-Ccvug1yq.js} +9 -9
- package/dist/{Dialog-DIHzs0ro.cjs → Dialog-DOXpPT7S.cjs} +1 -1
- package/dist/{DialogContent-B-9ga3Wv.cjs → DialogContent-BoIE95Tg.cjs} +1 -1
- package/dist/{DialogContent-BEgapieO.js → DialogContent-CIMpKm-U.js} +3 -3
- package/dist/{DialogTitle-B_UN_oL2.cjs → DialogTitle-B_am69Lr.cjs} +1 -1
- package/dist/{DialogTitle-Dcls3mcZ.js → DialogTitle-BwTvIaQe.js} +5 -5
- package/dist/{Divider-CT4XaEn6.js → Divider-C2cBikSL.js} +4 -4
- package/dist/{Divider-iYLSpFUc.cjs → Divider-Nyl7rx-c.cjs} +1 -1
- package/dist/{Folder-DoEl37QZ.js → Folder-Bnoqtzc6.js} +1 -1
- package/dist/{Folder-DWD_1Fux.cjs → Folder-DEtB13yM.cjs} +1 -1
- package/dist/{FormLabel-Cp2OFw8d.cjs → FormLabel-D4O160ND.cjs} +1 -1
- package/dist/{FormLabel-BF6m-_uI.js → FormLabel-EkpI8MQr.js} +4 -4
- package/dist/{Grow-Bk7XkPFP.js → Grow-B_clfUP9.js} +4 -4
- package/dist/{Grow-DXY5DOqR.cjs → Grow-DKA2Mfhu.cjs} +1 -1
- package/dist/{IconButton-BLZJne06.cjs → IconButton-CGfKAsNI.cjs} +1 -1
- package/dist/{IconButton-BQW0xjdH.js → IconButton-D1mhTuaI.js} +6 -6
- package/dist/{InputAdornment-C0WI_oQg.cjs → InputAdornment-BOcB8UIi.cjs} +1 -1
- package/dist/{InputAdornment-C6UfLaud.js → InputAdornment-BxB8_tq-.js} +5 -5
- package/dist/{InputBase-B3KOyouT.cjs → InputBase-BIf-xtMJ.cjs} +1 -1
- package/dist/{InputBase-YOnatBxw.js → InputBase-BQnEIwl1.js} +7 -7
- package/dist/{Link-C3rf4gqc.js → Link-8ltXgZj7.js} +7 -7
- package/dist/{Link-lvpmE2yz.cjs → Link-CS0qbKjo.cjs} +1 -1
- package/dist/{List-CFInjv2S.js → List-DJsqHOqv.js} +2 -2
- package/dist/{List-PQXGlDbt.cjs → List-T5dKKWkc.cjs} +1 -1
- package/dist/{ListItem-CWEvdMjN.cjs → ListItem-BN7OXyEP.cjs} +1 -1
- package/dist/{ListItem-BAAZxsu5.js → ListItem-BspNcHM_.js} +5 -5
- package/dist/{ListItemText-BhxrnTkb.cjs → ListItemText-6gXRtF3r.cjs} +1 -1
- package/dist/{ListItemText-CADHegDF.js → ListItemText-afV0BrJL.js} +11 -11
- package/dist/{Menu-DBacrp-P.cjs → Menu-D6dHPVP_.cjs} +1 -1
- package/dist/{Menu-BgO92SV3.js → Menu-DPhreDcS.js} +12 -12
- package/dist/{MenuItem-DkcVAo3U.cjs → MenuItem-DOVsV_vI.cjs} +1 -1
- package/dist/{MenuItem-B8eWAj8E.js → MenuItem-Fb7iU47J.js} +7 -7
- package/dist/{Modal-kUvS-N46.cjs → Modal-B8xPmNJd.cjs} +1 -1
- package/dist/{Modal-CFv4UMTP.js → Modal-dmMiGSAp.js} +8 -8
- package/dist/{MoreVert-Dq8BqKg4.js → MoreVert-BCGFGn8f.js} +1 -1
- package/dist/{MoreVert-B_Gz5Gfx.cjs → MoreVert-DNeLf2VB.cjs} +1 -1
- package/dist/{Paper-DeL_n4k9.js → Paper-CEDxpHWv.js} +4 -4
- package/dist/{Paper-ByOgFIEE.cjs → Paper-owda8LtM.cjs} +1 -1
- package/dist/{Popper-BKxRTMsO.js → Popper-D5_YIJX6.js} +6 -6
- package/dist/{Popper-CsQqc5DE.cjs → Popper-DMGJYlm7.cjs} +1 -1
- package/dist/{Portal-7MKUQzjh.js → Portal-BKVc0iys.js} +2 -2
- package/dist/{Portal-DhGy1jKe.cjs → Portal-CgaP8O8B.cjs} +1 -1
- package/dist/{Radio-BVfoGshx.js → Radio-B4sx0387.js} +9 -9
- package/dist/{Radio-DG-k6cXx.cjs → Radio-OUfsD89D.cjs} +1 -1
- package/dist/{RadioGroup-Dd0mX-H2.cjs → RadioGroup-Cr_IFflA.cjs} +1 -1
- package/dist/{RadioGroup-DcqRUtV8.js → RadioGroup-UStIK_UX.js} +3 -3
- package/dist/{Select-b6liJFDI.cjs → Select-CUlunaOr.cjs} +1 -1
- package/dist/{Select-Vnsr3NSv.js → Select-CxnCi-3l.js} +10 -10
- package/dist/{Stack-PQFKjbdN.js → Stack-CzKIgmIE.js} +4 -4
- package/dist/{Stack-gtxG2YLo.cjs → Stack-D5_1ZBcn.cjs} +1 -1
- package/dist/{Switch-Bn8zlIOf.js → Switch-D3KweZGQ.js} +6 -6
- package/dist/{Switch-BlwDxL6O.cjs → Switch-DpdnFebj.cjs} +1 -1
- package/dist/{SwitchBase-QwOXoy8f.js → SwitchBase-BsP35Aas.js} +5 -5
- package/dist/{SwitchBase-DtKlxrES.cjs → SwitchBase-DMGf52a3.cjs} +1 -1
- package/dist/{Tab-A0R3g6rB.js → Tab-C1r8JXwz.js} +11 -11
- package/dist/{Tab-Dx7V4E6B.cjs → Tab-DZvAf79O.cjs} +1 -1
- package/dist/{TextField-CB2n4aV8.cjs → TextField-C0KpyS6X.cjs} +1 -1
- package/dist/{TextField-Di6Nfe3O.js → TextField-D-_WjPAW.js} +8 -8
- package/dist/{ToggleButtonGroup-D3bdznCl.cjs → ToggleButtonGroup-UNGSwlQe.cjs} +36 -36
- package/dist/{ToggleButtonGroup-B-zfmsAO.js → ToggleButtonGroup-gxIqbo6a.js} +806 -800
- package/dist/{Tooltip-D0jvnXYu.cjs → Tooltip-BljbhP1z.cjs} +1 -1
- package/dist/{Tooltip-KTkLBRQj.js → Tooltip-D0bof-68.js} +10 -10
- package/dist/{Typography-DZ11k9cZ.js → Typography-DBJqhIhB.js} +5 -5
- package/dist/{Typography-3CpuuLtj.cjs → Typography-yvyJLNFu.cjs} +1 -1
- package/dist/{capitalize-B3tmp8MO.cjs → capitalize-CToVceBw.cjs} +1 -1
- package/dist/{capitalize-Bs7Xs33U.js → capitalize-DSG2FA7x.js} +1 -1
- package/dist/components/Alert/Alert.cjs.js +1 -1
- package/dist/components/Alert/Alert.es.js +3 -3
- package/dist/components/Alert/index.cjs.js +1 -1
- package/dist/components/Alert/index.es.js +1 -1
- package/dist/components/Button/Button.cjs.js +1 -1
- package/dist/components/Button/Button.es.js +2 -2
- package/dist/components/DatePicker/DatePicker.cjs.js +1 -1
- package/dist/components/DatePicker/DatePicker.es.js +1 -1
- package/dist/components/DatePicker/index.cjs.js +1 -1
- package/dist/components/DatePicker/index.es.js +1 -1
- package/dist/components/Dialog/Dialog.cjs.js +1 -1
- package/dist/components/Dialog/Dialog.es.js +15 -15
- package/dist/components/Dropzone/Dropzone.cjs.js +1 -1
- package/dist/components/Dropzone/Dropzone.es.js +4 -4
- package/dist/components/EmptyState/EmptyState.cjs.js +1 -1
- package/dist/components/EmptyState/EmptyState.es.js +3 -3
- package/dist/components/FileList/FileIcon.cjs.js +1 -1
- package/dist/components/FileList/FileIcon.es.js +1 -1
- package/dist/components/FileList/FileListItem.cjs.js +1 -1
- package/dist/components/FileList/FileListItem.es.js +4 -4
- package/dist/components/FolderCard/FolderCard.cjs.js +1 -1
- package/dist/components/FolderCard/FolderCard.d.ts +1 -0
- package/dist/components/FolderCard/FolderCard.es.js +26 -17
- package/dist/components/FolderCard/styles.cjs.js +1 -1
- package/dist/components/FolderCard/styles.d.ts +4 -0
- package/dist/components/FolderCard/styles.es.js +9 -5
- package/dist/components/Heading/Heading.cjs.js +1 -1
- package/dist/components/Heading/Heading.es.js +2 -2
- package/dist/components/ImagePicker/ImagePicker.cjs.js +1 -1
- package/dist/components/ImagePicker/ImagePicker.es.js +5 -5
- package/dist/components/Loader/Loader.cjs.js +1 -1
- package/dist/components/Loader/Loader.es.js +1 -1
- package/dist/components/LoaderBackdrop/LoaderBackdrop.cjs.js +1 -1
- package/dist/components/LoaderBackdrop/LoaderBackdrop.es.js +2 -2
- package/dist/components/PasswordInput/PasswordInput.cjs.js +1 -1
- package/dist/components/PasswordInput/PasswordInput.es.js +4 -4
- package/dist/components/ResourceCard/ResourceCard.cjs.js +1 -1
- package/dist/components/ResourceCard/ResourceCard.d.ts +1 -0
- package/dist/components/ResourceCard/ResourceCard.es.js +21 -19
- package/dist/components/ResourceCard/style.cjs.js +1 -1
- package/dist/components/ResourceCard/style.es.js +40 -35
- package/dist/components/SearchInput/SearchInput.cjs.js +1 -1
- package/dist/components/SearchInput/SearchInput.es.js +4 -4
- package/dist/components/TreeView/TreeView.cjs.js +7 -7
- package/dist/components/TreeView/TreeView.es.js +318 -315
- package/dist/components/TreeView/components/CustomTreeItem.cjs.js +1 -1
- package/dist/components/TreeView/components/CustomTreeItem.es.js +2 -2
- package/dist/components/TreeView/style.cjs.js +1 -1
- package/dist/components/TreeView/style.es.js +24 -18
- package/dist/components/TreeView/types.d.ts +5 -2
- package/dist/components/TreeView/utils.cjs.js +1 -1
- package/dist/components/TreeView/utils.es.js +3 -3
- package/dist/components/index.cjs.js +1 -1
- package/dist/components/index.es.js +41 -41
- package/dist/components/stories/Alert.stories.cjs.js +1 -1
- package/dist/components/stories/Alert.stories.es.js +1 -1
- package/dist/components/stories/Autocomplete.stories.cjs.js +1 -1
- package/dist/components/stories/Autocomplete.stories.es.js +2 -2
- package/dist/components/stories/Button.stories.cjs.js +1 -1
- package/dist/components/stories/Button.stories.es.js +1 -1
- package/dist/components/stories/Card.stories.cjs.js +1 -1
- package/dist/components/stories/Card.stories.es.js +2 -2
- package/dist/components/stories/Checkbox.stories.cjs.js +1 -1
- package/dist/components/stories/Checkbox.stories.es.js +1 -1
- package/dist/components/stories/Chip.stories.cjs.js +1 -1
- package/dist/components/stories/Chip.stories.es.js +1 -1
- package/dist/components/stories/DatePicker.stories.cjs.js +1 -1
- package/dist/components/stories/DatePicker.stories.es.js +1 -1
- package/dist/components/stories/Dialog.stories.cjs.js +1 -1
- package/dist/components/stories/Dialog.stories.es.js +2 -2
- package/dist/components/stories/Divider.stories.cjs.js +1 -1
- package/dist/components/stories/Divider.stories.es.js +1 -1
- package/dist/components/stories/FormControlLabel.stories.cjs.js +1 -1
- package/dist/components/stories/FormControlLabel.stories.es.js +3 -3
- package/dist/components/stories/Heading.stories.cjs.js +1 -1
- package/dist/components/stories/Heading.stories.es.js +2 -2
- package/dist/components/stories/IconButton.stories.cjs.js +1 -1
- package/dist/components/stories/IconButton.stories.es.js +2 -2
- package/dist/components/stories/Link.stories.cjs.js +1 -1
- package/dist/components/stories/Link.stories.es.js +1 -1
- package/dist/components/stories/Menu.stories.cjs.js +1 -1
- package/dist/components/stories/Menu.stories.es.js +2 -2
- package/dist/components/stories/Paper.stories.cjs.js +1 -1
- package/dist/components/stories/Paper.stories.es.js +1 -1
- package/dist/components/stories/RadioGroup.stories.cjs.js +1 -1
- package/dist/components/stories/RadioGroup.stories.es.js +3 -3
- package/dist/components/stories/ResourceCard.stories.cjs.js +1 -1
- package/dist/components/stories/ResourceCard.stories.es.js +1 -1
- package/dist/components/stories/Select.stories.cjs.js +1 -1
- package/dist/components/stories/Select.stories.es.js +3 -3
- package/dist/components/stories/TabList.stories.cjs.js +1 -1
- package/dist/components/stories/TabList.stories.es.js +1 -1
- package/dist/components/stories/TextField.stories.cjs.js +1 -1
- package/dist/components/stories/TextField.stories.es.js +1 -1
- package/dist/components/stories/Tooltip.stories.cjs.js +1 -1
- package/dist/components/stories/Tooltip.stories.es.js +2 -2
- package/dist/components/stories/TreeView.stories.cjs.js +3 -3
- package/dist/components/stories/TreeView.stories.d.ts +2 -0
- package/dist/components/stories/TreeView.stories.es.js +517 -268
- package/dist/components/stories/Typography.stories.cjs.js +1 -1
- package/dist/components/stories/Typography.stories.es.js +1 -1
- package/dist/{createSvgIcon-BFqOnlgU.js → createSvgIcon-CsMK8tGM.js} +4 -4
- package/dist/{createSvgIcon-2wwaxLPT.cjs → createSvgIcon-EiiLl5-A.cjs} +1 -1
- package/dist/{dividerClasses-BYkvalOn.js → dividerClasses-BfxSqqSn.js} +1 -1
- package/dist/{dividerClasses-izm7KFVg.cjs → dividerClasses-BtzbOVqV.cjs} +1 -1
- package/dist/{elementTypeAcceptingRef-1usJq_B8.js → elementTypeAcceptingRef-CW5o2Qxo.js} +1 -1
- package/dist/{elementTypeAcceptingRef-GoqLuvj1.cjs → elementTypeAcceptingRef-D1T31ZXC.cjs} +1 -1
- package/dist/{extendSxProp-Bv3E507G.cjs → extendSxProp-BKP1AeGz.cjs} +1 -1
- package/dist/{extendSxProp-D_IkoDXB.js → extendSxProp-DSA-5JvJ.js} +1 -1
- package/dist/{generateUtilityClasses-CqzQXpT_.js → generateUtilityClasses-BpRGbQmY.js} +124 -122
- package/dist/{generateUtilityClasses-KugHyZhN.cjs → generateUtilityClasses-q4qbJjmd.cjs} +9 -9
- package/dist/{getReactElementRef-DtLerx40.js → getReactElementRef-CD3_Stk5.js} +1 -1
- package/dist/{getReactElementRef-D7IvykPI.cjs → getReactElementRef-yvpNgSpm.cjs} +1 -1
- package/dist/{index-BomeQRLD.cjs → index-Bt7ukCXi.cjs} +1 -1
- package/dist/{index-C7WfZsMe.js → index-CDLJvERp.js} +1 -1
- package/dist/{index-CFIk4hVM.js → index-CoYVLWJY.js} +4 -4
- package/dist/{index-DS8G_wjP.cjs → index-DCpyECL4.cjs} +1 -1
- package/dist/{index-sDFEVHTg.js → index-JOgYmUF8.js} +1 -1
- package/dist/{index-9hEUqvaJ.cjs → index-baZm35zL.cjs} +1 -1
- package/dist/index.cjs.js +1 -1
- package/dist/index.es.js +41 -41
- package/dist/{listItemTextClasses-C0D3xQur.js → listItemTextClasses-Cy10XsJj.js} +1 -1
- package/dist/{listItemTextClasses-CQXcckDA.cjs → listItemTextClasses-DePeZNtZ.cjs} +1 -1
- package/dist/{memoTheme-B0xVysYu.js → memoTheme-44McxcVZ.js} +1 -1
- package/dist/{memoTheme-WwIyYqBX.cjs → memoTheme-BhhxAcUJ.cjs} +1 -1
- package/dist/{refType-D-n-tVSl.cjs → refType-DDdajp2p.cjs} +1 -1
- package/dist/{refType-BvSJNaoq.js → refType-DsRJ5_Sj.js} +1 -1
- package/dist/{resolveComponentProps-Byi_59AN.cjs → resolveComponentProps-BTEnlM7q.cjs} +1 -1
- package/dist/{resolveComponentProps-Ctw0-dUN.js → resolveComponentProps-BZQ1jKzF.js} +1 -1
- package/dist/{useSlot-CGbU9jGm.cjs → useSlot-CSTfsYPJ.cjs} +1 -1
- package/dist/{useSlot-CqjfyGd9.js → useSlot-CYOxsM2I.js} +1 -1
- package/dist/{useSlotProps-Ceyorp-u.js → useSlotProps-CDJdiQpV.js} +1 -1
- package/dist/{useSlotProps-DfO7r_4Y.cjs → useSlotProps-DTgWZk99.cjs} +1 -1
- package/dist/useTheme-BDL2rp7a.js +11 -0
- package/dist/{useTheme-2JCMQS-E.js → useTheme-C2OE_AnH.js} +1 -1
- package/dist/{useTheme-B6wow4M9.cjs → useTheme-CCi6a5Vl.cjs} +1 -1
- package/dist/{useTheme-MahNaB8C.cjs → useTheme-DpMakc_Y.cjs} +1 -1
- package/dist/useThemeProps-BnN3o4c1.cjs +1 -0
- package/dist/{useThemeProps-Cuazh32X.js → useThemeProps-ClM1OENH.js} +2 -2
- package/dist/{useThemeProps-RdxbcMsR.cjs → useThemeProps-DQFApaJ_.cjs} +1 -1
- package/dist/useThemeProps-DjkGUV8r.js +17 -0
- package/dist/{utils-CUU5fjzL.cjs → utils-Cn6wZNus.cjs} +1 -1
- package/dist/{utils-BVg32WSe.js → utils-DFLaK7Ad.js} +1 -1
- package/package.json +1 -1
- package/dist/CustomTreeItem-BIl2yiro.cjs +0 -4
- package/dist/useTheme-DepbBZga.js +0 -11
- package/dist/useThemeProps-BqypsO1h.cjs +0 -1
- package/dist/useThemeProps-Drd5oJEF.js +0 -17
|
@@ -1,61 +1,61 @@
|
|
|
1
1
|
import { jsx as S, jsxs as je } from "react/jsx-runtime";
|
|
2
2
|
import * as E from "react";
|
|
3
3
|
import { useState as yt, useMemo as Ct, useEffect as wt } from "react";
|
|
4
|
-
import { a as Rt, T as St, b as _e, d as $e, e as Ne, f as se, h as Pt, i as vt, j as kt, k as he, l as ge, m as Mt, n as oe, u as H, o as Ke, p as Dt, q as Ot, r as Ue, w as xe, s as Vt, t as At, v as Ft, x as Lt, y as O, C as jt, z as _t } from "../../CustomTreeItem-
|
|
4
|
+
import { a as Rt, T as St, b as _e, d as $e, e as Ne, f as se, h as Pt, i as vt, j as kt, k as he, l as ge, m as Mt, n as oe, u as H, o as Ke, p as Dt, q as Ot, r as Ue, w as xe, s as Vt, t as At, v as Ft, x as Lt, y as O, C as jt, z as _t } from "../../CustomTreeItem-CgdZ-hEx.js";
|
|
5
5
|
import { TreeContainer as $t, DEFAULT_CHILDREN_INDENT as Nt } from "./style.es.js";
|
|
6
6
|
import { buildItemDataMap as Kt, findItemPath as Ut, getItemId as Bt } from "./utils.es.js";
|
|
7
|
-
import { _ as C } from "../../ButtonBase-
|
|
8
|
-
import { H as zt, G as qt, I as Be, P as a, n as ne } from "../../generateUtilityClasses-
|
|
7
|
+
import { _ as C } from "../../ButtonBase-Bncgzjtp.js";
|
|
8
|
+
import { H as zt, G as qt, I as Be, P as a, n as ne } from "../../generateUtilityClasses-BpRGbQmY.js";
|
|
9
9
|
import { a as A } from "../../TransitionGroupContext-DbLioz_6.js";
|
|
10
10
|
import { u as U } from "../../useEventCallback-BAQJJ3ye.js";
|
|
11
11
|
import { o as Ht } from "../../ownerDocument-CUrv0DIK.js";
|
|
12
|
-
import { u as Xt } from "../../index-
|
|
13
|
-
import { C as Wt } from "../../Checkbox-
|
|
12
|
+
import { u as Xt } from "../../index-JOgYmUF8.js";
|
|
13
|
+
import { C as Wt } from "../../Checkbox-DkrWUPYT.js";
|
|
14
14
|
import { u as Ee } from "../../useForkRef-C_4o__cU.js";
|
|
15
|
-
import { u as N } from "../../useSlotProps-
|
|
16
|
-
import { r as $, e as Fe } from "../../resolveComponentProps-
|
|
17
|
-
import { s as ie, c as ze, f as qe } from "../../DefaultPropsProvider-
|
|
15
|
+
import { u as N } from "../../useSlotProps-CDJdiQpV.js";
|
|
16
|
+
import { r as $, e as Fe } from "../../resolveComponentProps-BZQ1jKzF.js";
|
|
17
|
+
import { s as ie, c as ze, f as qe } from "../../DefaultPropsProvider-Ik4eAJdt.js";
|
|
18
18
|
import { u as Gt } from "../../unsupportedProp-BuVD30Gh.js";
|
|
19
|
-
import { e as Jt } from "../../elementTypeAcceptingRef-
|
|
19
|
+
import { e as Jt } from "../../elementTypeAcceptingRef-CW5o2Qxo.js";
|
|
20
20
|
function Yt(e) {
|
|
21
21
|
return zt("MuiRichTreeView", e);
|
|
22
22
|
}
|
|
23
23
|
qt("MuiRichTreeView", ["root"]);
|
|
24
24
|
const Qt = (e, t) => {
|
|
25
25
|
const n = E.useRef({}), [r, l] = E.useState(() => {
|
|
26
|
-
const
|
|
27
|
-
return e.forEach((
|
|
28
|
-
|
|
26
|
+
const I = {};
|
|
27
|
+
return e.forEach((f) => {
|
|
28
|
+
f.models && Object.entries(f.models).forEach(([g, p]) => {
|
|
29
29
|
n.current[g] = {
|
|
30
30
|
isControlled: t[g] !== void 0,
|
|
31
|
-
getDefaultValue:
|
|
32
|
-
},
|
|
31
|
+
getDefaultValue: p.getDefaultValue
|
|
32
|
+
}, I[g] = p.getDefaultValue(t);
|
|
33
33
|
});
|
|
34
|
-
}),
|
|
35
|
-
}), x = Object.fromEntries(Object.entries(n.current).map(([
|
|
36
|
-
const g = t[
|
|
37
|
-
return [
|
|
34
|
+
}), I;
|
|
35
|
+
}), x = Object.fromEntries(Object.entries(n.current).map(([I, f]) => {
|
|
36
|
+
const g = t[I] ?? r[I];
|
|
37
|
+
return [I, {
|
|
38
38
|
value: g,
|
|
39
|
-
setControlledValue: (
|
|
40
|
-
|
|
41
|
-
[
|
|
39
|
+
setControlledValue: (p) => {
|
|
40
|
+
f.isControlled || l((o) => C({}, o, {
|
|
41
|
+
[I]: p
|
|
42
42
|
}));
|
|
43
43
|
}
|
|
44
44
|
}];
|
|
45
45
|
}));
|
|
46
|
-
return process.env.NODE_ENV !== "production" && Object.entries(n.current).forEach(([
|
|
47
|
-
const g = t[
|
|
46
|
+
return process.env.NODE_ENV !== "production" && Object.entries(n.current).forEach(([I, f]) => {
|
|
47
|
+
const g = t[I], p = f.getDefaultValue(t);
|
|
48
48
|
E.useEffect(() => {
|
|
49
|
-
|
|
49
|
+
f.isControlled !== (g !== void 0) && console.error([`MUI X: A component is changing the ${f.isControlled ? "" : "un"}controlled ${I} state of TreeView to be ${f.isControlled ? "un" : ""}controlled.`, "Elements should not switch from uncontrolled to controlled (or vice versa).", `Decide between using a controlled or uncontrolled ${I} element for the lifetime of the component.`, "The nature of the state is determined during the first render. It's considered controlled if the value is not `undefined`.", "More info: https://fb.me/react-controlled-components"].join(`
|
|
50
50
|
`));
|
|
51
51
|
}, [g]);
|
|
52
52
|
const {
|
|
53
53
|
current: o
|
|
54
|
-
} = E.useRef(
|
|
54
|
+
} = E.useRef(p);
|
|
55
55
|
E.useEffect(() => {
|
|
56
|
-
!
|
|
56
|
+
!f.isControlled && o !== p && console.error([`MUI X: A component is changing the default ${I} state of an uncontrolled TreeView after being initialized. To suppress this warning opt to use a controlled TreeView.`].join(`
|
|
57
57
|
`));
|
|
58
|
-
}, [JSON.stringify(
|
|
58
|
+
}, [JSON.stringify(p)]);
|
|
59
59
|
}), x;
|
|
60
60
|
};
|
|
61
61
|
class Zt {
|
|
@@ -84,13 +84,13 @@ class Zt {
|
|
|
84
84
|
if (!r)
|
|
85
85
|
return;
|
|
86
86
|
const l = Array.from(r.highPriority.keys()), x = Array.from(r.regular.keys());
|
|
87
|
-
for (let
|
|
88
|
-
const
|
|
89
|
-
r.highPriority.has(
|
|
87
|
+
for (let I = l.length - 1; I >= 0; I -= 1) {
|
|
88
|
+
const f = l[I];
|
|
89
|
+
r.highPriority.has(f) && f.apply(this, n);
|
|
90
90
|
}
|
|
91
|
-
for (let
|
|
92
|
-
const
|
|
93
|
-
r.regular.has(
|
|
91
|
+
for (let I = 0; I < x.length; I += 1) {
|
|
92
|
+
const f = x[I];
|
|
93
|
+
r.regular.has(f) && f.apply(this, n);
|
|
94
94
|
}
|
|
95
95
|
}
|
|
96
96
|
once(t, n) {
|
|
@@ -102,8 +102,8 @@ class Zt {
|
|
|
102
102
|
}
|
|
103
103
|
const en = (e) => e.isPropagationStopped !== void 0, He = () => {
|
|
104
104
|
const [e] = E.useState(() => new Zt()), t = E.useCallback((...r) => {
|
|
105
|
-
const [l, x,
|
|
106
|
-
|
|
105
|
+
const [l, x, I = {}] = r;
|
|
106
|
+
I.defaultMuiPrevented = !1, !(en(I) && I.isPropagationStopped()) && e.emit(l, x, I);
|
|
107
107
|
}, [e]), n = E.useCallback((r, l) => (e.on(r, l), () => {
|
|
108
108
|
e.removeListener(r, l);
|
|
109
109
|
}), [e]);
|
|
@@ -167,23 +167,23 @@ const tn = [He, Xe, Te], nn = ["slots", "slotProps", "apiRef", "experimentalFeat
|
|
|
167
167
|
experimentalFeatures: l
|
|
168
168
|
},
|
|
169
169
|
plugins: x
|
|
170
|
-
} = e,
|
|
171
|
-
const
|
|
172
|
-
x.forEach((
|
|
173
|
-
Object.assign(
|
|
170
|
+
} = e, I = A(e.props, nn);
|
|
171
|
+
const f = {};
|
|
172
|
+
x.forEach((u) => {
|
|
173
|
+
Object.assign(f, u.params);
|
|
174
174
|
});
|
|
175
|
-
const g = {},
|
|
176
|
-
Object.keys(
|
|
177
|
-
const b =
|
|
178
|
-
|
|
175
|
+
const g = {}, p = {};
|
|
176
|
+
Object.keys(I).forEach((u) => {
|
|
177
|
+
const b = I[u];
|
|
178
|
+
f[u] ? g[u] = b : p[u] = b;
|
|
179
179
|
});
|
|
180
|
-
const o = l ?? {}, s = x.reduce((
|
|
181
|
-
params:
|
|
180
|
+
const o = l ?? {}, s = x.reduce((u, b) => b.getDefaultizedParams ? b.getDefaultizedParams({
|
|
181
|
+
params: u,
|
|
182
182
|
experimentalFeatures: o
|
|
183
|
-
}) :
|
|
183
|
+
}) : u, g);
|
|
184
184
|
return {
|
|
185
185
|
apiRef: r,
|
|
186
|
-
forwardedProps:
|
|
186
|
+
forwardedProps: p,
|
|
187
187
|
pluginParams: s,
|
|
188
188
|
slots: t ?? {},
|
|
189
189
|
slotProps: n ?? {},
|
|
@@ -195,55 +195,55 @@ const tn = [He, Xe, Te], nn = ["slots", "slotProps", "apiRef", "experimentalFeat
|
|
|
195
195
|
publicAPI: n,
|
|
196
196
|
rootRef: r
|
|
197
197
|
}) => ({
|
|
198
|
-
runItemPlugins: (
|
|
199
|
-
let g = null,
|
|
198
|
+
runItemPlugins: (f) => {
|
|
199
|
+
let g = null, p = null;
|
|
200
200
|
const o = [], s = {};
|
|
201
201
|
e.forEach((h) => {
|
|
202
202
|
if (!h.itemPlugin)
|
|
203
203
|
return;
|
|
204
204
|
const c = h.itemPlugin({
|
|
205
|
-
props:
|
|
205
|
+
props: f,
|
|
206
206
|
rootRef: g,
|
|
207
|
-
contentRef:
|
|
207
|
+
contentRef: p
|
|
208
208
|
});
|
|
209
|
-
c != null && c.rootRef && (g = c.rootRef), c != null && c.contentRef && (
|
|
209
|
+
c != null && c.rootRef && (g = c.rootRef), c != null && c.contentRef && (p = c.contentRef), c != null && c.propsEnhancers && (o.push(c.propsEnhancers), Object.keys(c.propsEnhancers).forEach((i) => {
|
|
210
210
|
s[i] = !0;
|
|
211
211
|
}));
|
|
212
212
|
});
|
|
213
|
-
const
|
|
213
|
+
const u = (h) => (c) => {
|
|
214
214
|
const i = {};
|
|
215
|
-
return o.forEach((
|
|
216
|
-
const
|
|
217
|
-
|
|
215
|
+
return o.forEach((d) => {
|
|
216
|
+
const m = d[h];
|
|
217
|
+
m != null && Object.assign(i, m(c));
|
|
218
218
|
}), i;
|
|
219
|
-
}, b = Object.fromEntries(Object.keys(s).map((h) => [h,
|
|
219
|
+
}, b = Object.fromEntries(Object.keys(s).map((h) => [h, u(h)]));
|
|
220
220
|
return {
|
|
221
|
-
contentRef:
|
|
221
|
+
contentRef: p,
|
|
222
222
|
rootRef: g,
|
|
223
223
|
propsEnhancers: b
|
|
224
224
|
};
|
|
225
225
|
},
|
|
226
226
|
wrapItem: ({
|
|
227
|
-
itemId:
|
|
227
|
+
itemId: f,
|
|
228
228
|
children: g
|
|
229
229
|
}) => {
|
|
230
|
-
let
|
|
230
|
+
let p = g;
|
|
231
231
|
for (let o = e.length - 1; o >= 0; o -= 1) {
|
|
232
232
|
const s = e[o];
|
|
233
|
-
s.wrapItem && (
|
|
234
|
-
itemId:
|
|
235
|
-
children:
|
|
233
|
+
s.wrapItem && (p = s.wrapItem({
|
|
234
|
+
itemId: f,
|
|
235
|
+
children: p,
|
|
236
236
|
instance: t
|
|
237
237
|
}));
|
|
238
238
|
}
|
|
239
|
-
return
|
|
239
|
+
return p;
|
|
240
240
|
},
|
|
241
241
|
wrapRoot: ({
|
|
242
|
-
children:
|
|
242
|
+
children: f
|
|
243
243
|
}) => {
|
|
244
|
-
let g =
|
|
245
|
-
for (let
|
|
246
|
-
const o = e[
|
|
244
|
+
let g = f;
|
|
245
|
+
for (let p = e.length - 1; p >= 0; p -= 1) {
|
|
246
|
+
const o = e[p];
|
|
247
247
|
o.wrapRoot && (g = o.wrapRoot({
|
|
248
248
|
children: g,
|
|
249
249
|
instance: t
|
|
@@ -267,37 +267,37 @@ const ln = ({
|
|
|
267
267
|
const r = [...tn, ...e], {
|
|
268
268
|
pluginParams: l,
|
|
269
269
|
forwardedProps: x,
|
|
270
|
-
apiRef:
|
|
271
|
-
experimentalFeatures:
|
|
270
|
+
apiRef: I,
|
|
271
|
+
experimentalFeatures: f,
|
|
272
272
|
slots: g,
|
|
273
|
-
slotProps:
|
|
273
|
+
slotProps: p
|
|
274
274
|
} = on({
|
|
275
275
|
plugins: r,
|
|
276
276
|
props: n
|
|
277
|
-
}), o = Qt(r, l),
|
|
277
|
+
}), o = Qt(r, l), u = E.useRef({}).current, b = sn(I), h = E.useRef(null), c = Ee(h, t), i = rn({
|
|
278
278
|
plugins: r,
|
|
279
|
-
instance:
|
|
279
|
+
instance: u,
|
|
280
280
|
publicAPI: b,
|
|
281
281
|
rootRef: h
|
|
282
|
-
}), [
|
|
282
|
+
}), [d, m] = E.useState(() => {
|
|
283
283
|
const R = {};
|
|
284
284
|
return r.forEach((v) => {
|
|
285
285
|
v.getInitialState && Object.assign(R, v.getInitialState(l));
|
|
286
286
|
}), R;
|
|
287
287
|
}), T = [], P = (R) => {
|
|
288
288
|
const v = R({
|
|
289
|
-
instance:
|
|
289
|
+
instance: u,
|
|
290
290
|
params: l,
|
|
291
291
|
slots: g,
|
|
292
|
-
slotProps:
|
|
293
|
-
experimentalFeatures:
|
|
294
|
-
state:
|
|
295
|
-
setState:
|
|
292
|
+
slotProps: p,
|
|
293
|
+
experimentalFeatures: f,
|
|
294
|
+
state: d,
|
|
295
|
+
setState: m,
|
|
296
296
|
rootRef: h,
|
|
297
297
|
models: o,
|
|
298
298
|
plugins: r
|
|
299
299
|
});
|
|
300
|
-
v.getRootProps && T.push(v.getRootProps), v.publicAPI && Object.assign(b, v.publicAPI), v.instance && Object.assign(
|
|
300
|
+
v.getRootProps && T.push(v.getRootProps), v.publicAPI && Object.assign(b, v.publicAPI), v.instance && Object.assign(u, v.instance), v.contextValue && Object.assign(i, v.contextValue);
|
|
301
301
|
};
|
|
302
302
|
return r.forEach(P), {
|
|
303
303
|
getRootProps: (R = {}) => {
|
|
@@ -312,7 +312,7 @@ const ln = ({
|
|
|
312
312
|
},
|
|
313
313
|
rootRef: c,
|
|
314
314
|
contextValue: i,
|
|
315
|
-
instance:
|
|
315
|
+
instance: u
|
|
316
316
|
};
|
|
317
317
|
};
|
|
318
318
|
function an(e) {
|
|
@@ -341,41 +341,41 @@ const cn = (e, t, n) => {
|
|
|
341
341
|
getItemLabel: n,
|
|
342
342
|
getItemId: r
|
|
343
343
|
}) => {
|
|
344
|
-
const l = {}, x = {},
|
|
344
|
+
const l = {}, x = {}, I = {
|
|
345
345
|
[K]: []
|
|
346
|
-
},
|
|
346
|
+
}, f = (p, o, s) => {
|
|
347
347
|
var c, i;
|
|
348
|
-
const
|
|
349
|
-
if (
|
|
350
|
-
throw new Error(["MUI X: The Tree View component requires all items to have a unique `id` property.", "Alternatively, you can use the `getItemId` prop to specify a custom id for each item.", "An item was provided without id in the `items` prop:", JSON.stringify(
|
|
348
|
+
const u = r ? r(p) : p.id;
|
|
349
|
+
if (u == null)
|
|
350
|
+
throw new Error(["MUI X: The Tree View component requires all items to have a unique `id` property.", "Alternatively, you can use the `getItemId` prop to specify a custom id for each item.", "An item was provided without id in the `items` prop:", JSON.stringify(p)].join(`
|
|
351
351
|
`));
|
|
352
|
-
if (l[
|
|
353
|
-
throw new Error(["MUI X: The Tree View component requires all items to have a unique `id` property.", "Alternatively, you can use the `getItemId` prop to specify a custom id for each item.", `Two items were provided with the same id in the \`items\` prop: "${
|
|
352
|
+
if (l[u] != null)
|
|
353
|
+
throw new Error(["MUI X: The Tree View component requires all items to have a unique `id` property.", "Alternatively, you can use the `getItemId` prop to specify a custom id for each item.", `Two items were provided with the same id in the \`items\` prop: "${u}"`].join(`
|
|
354
354
|
`));
|
|
355
|
-
const b = n ? n(
|
|
355
|
+
const b = n ? n(p) : p.label;
|
|
356
356
|
if (b == null)
|
|
357
|
-
throw new Error(["MUI X: The Tree View component requires all items to have a `label` property.", "Alternatively, you can use the `getItemLabel` prop to specify a custom label for each item.", "An item was provided without label in the `items` prop:", JSON.stringify(
|
|
357
|
+
throw new Error(["MUI X: The Tree View component requires all items to have a `label` property.", "Alternatively, you can use the `getItemLabel` prop to specify a custom label for each item.", "An item was provided without label in the `items` prop:", JSON.stringify(p)].join(`
|
|
358
358
|
`));
|
|
359
|
-
l[
|
|
360
|
-
id:
|
|
359
|
+
l[u] = {
|
|
360
|
+
id: u,
|
|
361
361
|
label: b,
|
|
362
362
|
parentId: s,
|
|
363
363
|
idAttribute: void 0,
|
|
364
|
-
expandable: !!((c =
|
|
365
|
-
disabled: t ? t(
|
|
364
|
+
expandable: !!((c = p.children) != null && c.length),
|
|
365
|
+
disabled: t ? t(p) : !1,
|
|
366
366
|
depth: o
|
|
367
|
-
}, x[
|
|
367
|
+
}, x[u] = p;
|
|
368
368
|
const h = s ?? K;
|
|
369
|
-
|
|
369
|
+
I[h] || (I[h] = []), I[h].push(u), (i = p.children) == null || i.forEach((d) => f(d, o + 1, u));
|
|
370
370
|
};
|
|
371
|
-
e.forEach((
|
|
371
|
+
e.forEach((p) => f(p, 0, null));
|
|
372
372
|
const g = {};
|
|
373
|
-
return Object.keys(
|
|
374
|
-
g[
|
|
373
|
+
return Object.keys(I).forEach((p) => {
|
|
374
|
+
g[p] = un(I[p]);
|
|
375
375
|
}), {
|
|
376
376
|
itemMetaMap: l,
|
|
377
377
|
itemMap: x,
|
|
378
|
-
itemOrderedChildrenIds:
|
|
378
|
+
itemOrderedChildrenIds: I,
|
|
379
379
|
itemChildrenIndexes: g
|
|
380
380
|
};
|
|
381
381
|
}, X = ({
|
|
@@ -385,51 +385,51 @@ const cn = (e, t, n) => {
|
|
|
385
385
|
setState: r,
|
|
386
386
|
experimentalFeatures: l
|
|
387
387
|
}) => {
|
|
388
|
-
const x = E.useCallback((
|
|
389
|
-
const
|
|
390
|
-
const T = n.items.itemMap[
|
|
391
|
-
return y && (P.children = y.map(
|
|
388
|
+
const x = E.useCallback((d) => n.items.itemMetaMap[d], [n.items.itemMetaMap]), I = E.useCallback((d) => n.items.itemMap[d], [n.items.itemMap]), f = E.useCallback(() => {
|
|
389
|
+
const d = (m) => {
|
|
390
|
+
const T = n.items.itemMap[m], P = A(T, dn), y = n.items.itemOrderedChildrenIds[m];
|
|
391
|
+
return y && (P.children = y.map(d)), P;
|
|
392
392
|
};
|
|
393
|
-
return n.items.itemOrderedChildrenIds[K].map(
|
|
394
|
-
}, [n.items.itemMap, n.items.itemOrderedChildrenIds]), g = E.useCallback((
|
|
395
|
-
if (
|
|
393
|
+
return n.items.itemOrderedChildrenIds[K].map(d);
|
|
394
|
+
}, [n.items.itemMap, n.items.itemOrderedChildrenIds]), g = E.useCallback((d) => {
|
|
395
|
+
if (d == null)
|
|
396
396
|
return !1;
|
|
397
|
-
let
|
|
398
|
-
if (!
|
|
397
|
+
let m = e.getItemMeta(d);
|
|
398
|
+
if (!m)
|
|
399
399
|
return !1;
|
|
400
|
-
if (
|
|
400
|
+
if (m.disabled)
|
|
401
401
|
return !0;
|
|
402
|
-
for (;
|
|
403
|
-
if (
|
|
402
|
+
for (; m.parentId != null; )
|
|
403
|
+
if (m = e.getItemMeta(m.parentId), m.disabled)
|
|
404
404
|
return !0;
|
|
405
405
|
return !1;
|
|
406
|
-
}, [e]),
|
|
407
|
-
const
|
|
408
|
-
return n.items.itemChildrenIndexes[
|
|
409
|
-
}, [e, n.items.itemChildrenIndexes]), o = E.useCallback((
|
|
410
|
-
const
|
|
411
|
-
return
|
|
406
|
+
}, [e]), p = E.useCallback((d) => {
|
|
407
|
+
const m = e.getItemMeta(d).parentId ?? K;
|
|
408
|
+
return n.items.itemChildrenIndexes[m][d];
|
|
409
|
+
}, [e, n.items.itemChildrenIndexes]), o = E.useCallback((d) => n.items.itemOrderedChildrenIds[d ?? K] ?? [], [n.items.itemOrderedChildrenIds]), s = (d) => {
|
|
410
|
+
const m = e.getItemMeta(d);
|
|
411
|
+
return m == null ? null : document.getElementById(_e({
|
|
412
412
|
treeId: n.id.treeId,
|
|
413
|
-
itemId:
|
|
414
|
-
id:
|
|
413
|
+
itemId: d,
|
|
414
|
+
id: m.idAttribute
|
|
415
415
|
}));
|
|
416
|
-
},
|
|
416
|
+
}, u = (d) => t.disabledItemsFocusable ? !0 : !e.isItemDisabled(d), b = E.useRef(!1), h = E.useCallback(() => {
|
|
417
417
|
b.current = !0;
|
|
418
418
|
}, []), c = E.useCallback(() => b.current, []);
|
|
419
419
|
return E.useEffect(() => {
|
|
420
|
-
e.areItemUpdatesPrevented() || r((
|
|
421
|
-
const
|
|
420
|
+
e.areItemUpdatesPrevented() || r((d) => {
|
|
421
|
+
const m = We({
|
|
422
422
|
items: t.items,
|
|
423
423
|
isItemDisabled: t.isItemDisabled,
|
|
424
424
|
getItemId: t.getItemId,
|
|
425
425
|
getItemLabel: t.getItemLabel
|
|
426
426
|
});
|
|
427
|
-
return Object.values(
|
|
428
|
-
|
|
427
|
+
return Object.values(d.items.itemMetaMap).forEach((T) => {
|
|
428
|
+
m.itemMetaMap[T.id] || cn(e, "removeItem", {
|
|
429
429
|
id: T.id
|
|
430
430
|
});
|
|
431
|
-
}), C({},
|
|
432
|
-
items:
|
|
431
|
+
}), C({}, d, {
|
|
432
|
+
items: m
|
|
433
433
|
});
|
|
434
434
|
});
|
|
435
435
|
}, [e, r, t.items, t.isItemDisabled, t.getItemId, t.getItemLabel]), {
|
|
@@ -439,33 +439,33 @@ const cn = (e, t, n) => {
|
|
|
439
439
|
}
|
|
440
440
|
}),
|
|
441
441
|
publicAPI: {
|
|
442
|
-
getItem:
|
|
442
|
+
getItem: I,
|
|
443
443
|
getItemDOMElement: s,
|
|
444
|
-
getItemTree:
|
|
444
|
+
getItemTree: f,
|
|
445
445
|
getItemOrderedChildrenIds: o
|
|
446
446
|
},
|
|
447
447
|
instance: {
|
|
448
448
|
getItemMeta: x,
|
|
449
|
-
getItem:
|
|
450
|
-
getItemTree:
|
|
449
|
+
getItem: I,
|
|
450
|
+
getItemTree: f,
|
|
451
451
|
getItemsToRender: () => {
|
|
452
|
-
const
|
|
452
|
+
const d = (m) => {
|
|
453
453
|
var P;
|
|
454
|
-
const T = n.items.itemMetaMap[
|
|
454
|
+
const T = n.items.itemMetaMap[m];
|
|
455
455
|
return {
|
|
456
456
|
label: T.label,
|
|
457
457
|
itemId: T.id,
|
|
458
458
|
id: T.idAttribute,
|
|
459
|
-
children: (P = n.items.itemOrderedChildrenIds[
|
|
459
|
+
children: (P = n.items.itemOrderedChildrenIds[m]) == null ? void 0 : P.map(d)
|
|
460
460
|
};
|
|
461
461
|
};
|
|
462
|
-
return n.items.itemOrderedChildrenIds[K].map(
|
|
462
|
+
return n.items.itemOrderedChildrenIds[K].map(d);
|
|
463
463
|
},
|
|
464
|
-
getItemIndex:
|
|
464
|
+
getItemIndex: p,
|
|
465
465
|
getItemDOMElement: s,
|
|
466
466
|
getItemOrderedChildrenIds: o,
|
|
467
467
|
isItemDisabled: g,
|
|
468
|
-
isItemNavigable:
|
|
468
|
+
isItemNavigable: u,
|
|
469
469
|
preventItemUpdates: h,
|
|
470
470
|
areItemUpdatesPrevented: c
|
|
471
471
|
},
|
|
@@ -518,27 +518,27 @@ const le = ({
|
|
|
518
518
|
}) => {
|
|
519
519
|
const r = E.useMemo(() => {
|
|
520
520
|
const s = /* @__PURE__ */ new Map();
|
|
521
|
-
return n.expandedItems.value.forEach((
|
|
522
|
-
s.set(
|
|
521
|
+
return n.expandedItems.value.forEach((u) => {
|
|
522
|
+
s.set(u, !0);
|
|
523
523
|
}), s;
|
|
524
|
-
}, [n.expandedItems.value]), l = (s,
|
|
524
|
+
}, [n.expandedItems.value]), l = (s, u) => {
|
|
525
525
|
var b;
|
|
526
|
-
(b = t.onExpandedItemsChange) == null || b.call(t, s,
|
|
527
|
-
}, x = E.useCallback((s) => r.has(s), [r]),
|
|
528
|
-
var
|
|
529
|
-
return !!((
|
|
530
|
-
}, [e]),
|
|
531
|
-
const b = e.isItemExpanded(
|
|
532
|
-
e.setItemExpansion(s,
|
|
533
|
-
}), g = U((s,
|
|
534
|
-
if (e.isItemExpanded(
|
|
526
|
+
(b = t.onExpandedItemsChange) == null || b.call(t, s, u), n.expandedItems.setControlledValue(u);
|
|
527
|
+
}, x = E.useCallback((s) => r.has(s), [r]), I = E.useCallback((s) => {
|
|
528
|
+
var u;
|
|
529
|
+
return !!((u = e.getItemMeta(s)) != null && u.expandable);
|
|
530
|
+
}, [e]), f = U((s, u) => {
|
|
531
|
+
const b = e.isItemExpanded(u);
|
|
532
|
+
e.setItemExpansion(s, u, !b);
|
|
533
|
+
}), g = U((s, u, b) => {
|
|
534
|
+
if (e.isItemExpanded(u) === b)
|
|
535
535
|
return;
|
|
536
536
|
let c;
|
|
537
|
-
b ? c = [
|
|
538
|
-
}),
|
|
539
|
-
const b = e.getItemMeta(
|
|
540
|
-
c.length > 0 && (t.onItemExpansionToggle && c.forEach((
|
|
541
|
-
t.onItemExpansionToggle(s,
|
|
537
|
+
b ? c = [u].concat(n.expandedItems.value) : c = n.expandedItems.value.filter((i) => i !== u), t.onItemExpansionToggle && t.onItemExpansionToggle(s, u, b), l(s, c);
|
|
538
|
+
}), p = (s, u) => {
|
|
539
|
+
const b = e.getItemMeta(u), c = e.getItemOrderedChildrenIds(b.parentId).filter((d) => e.isItemExpandable(d) && !e.isItemExpanded(d)), i = n.expandedItems.value.concat(c);
|
|
540
|
+
c.length > 0 && (t.onItemExpansionToggle && c.forEach((d) => {
|
|
541
|
+
t.onItemExpansionToggle(s, d, !0);
|
|
542
542
|
}), l(s, i));
|
|
543
543
|
}, o = E.useMemo(() => t.expansionTrigger ? t.expansionTrigger : e.isTreeViewEditable ? "iconContainer" : "content", [t.expansionTrigger, e.isTreeViewEditable]);
|
|
544
544
|
return {
|
|
@@ -547,10 +547,10 @@ const le = ({
|
|
|
547
547
|
},
|
|
548
548
|
instance: {
|
|
549
549
|
isItemExpanded: x,
|
|
550
|
-
isItemExpandable:
|
|
550
|
+
isItemExpandable: I,
|
|
551
551
|
setItemExpansion: g,
|
|
552
|
-
toggleItemExpansion:
|
|
553
|
-
expandAllSiblings:
|
|
552
|
+
toggleItemExpansion: f,
|
|
553
|
+
expandAllSiblings: p
|
|
554
554
|
},
|
|
555
555
|
contextValue: {
|
|
556
556
|
expansion: {
|
|
@@ -592,39 +592,39 @@ const re = (e) => Array.isArray(e) ? e : e != null ? [e] : [], be = (e) => {
|
|
|
592
592
|
return Array.isArray(n.selectedItems.value) ? n.selectedItems.value.forEach((i) => {
|
|
593
593
|
c.set(i, !0);
|
|
594
594
|
}) : n.selectedItems.value != null && c.set(n.selectedItems.value, !0), c;
|
|
595
|
-
}, [n.selectedItems.value]),
|
|
595
|
+
}, [n.selectedItems.value]), I = (c, i) => {
|
|
596
596
|
if (t.onItemSelectionToggle)
|
|
597
597
|
if (t.multiSelect) {
|
|
598
|
-
const
|
|
599
|
-
|
|
598
|
+
const d = i.filter((T) => !e.isItemSelected(T)), m = n.selectedItems.value.filter((T) => !i.includes(T));
|
|
599
|
+
d.forEach((T) => {
|
|
600
600
|
t.onItemSelectionToggle(c, T, !0);
|
|
601
|
-
}),
|
|
601
|
+
}), m.forEach((T) => {
|
|
602
602
|
t.onItemSelectionToggle(c, T, !1);
|
|
603
603
|
});
|
|
604
604
|
} else i !== n.selectedItems.value && (n.selectedItems.value != null && t.onItemSelectionToggle(c, n.selectedItems.value, !1), i != null && t.onItemSelectionToggle(c, i, !0));
|
|
605
605
|
t.onSelectedItemsChange && t.onSelectedItemsChange(c, i), n.selectedItems.setControlledValue(i);
|
|
606
|
-
},
|
|
606
|
+
}, f = (c) => x.has(c), g = ({
|
|
607
607
|
event: c,
|
|
608
608
|
itemId: i,
|
|
609
|
-
keepExistingSelection:
|
|
610
|
-
shouldBeSelected:
|
|
609
|
+
keepExistingSelection: d = !1,
|
|
610
|
+
shouldBeSelected: m
|
|
611
611
|
}) => {
|
|
612
612
|
if (t.disableSelection)
|
|
613
613
|
return;
|
|
614
614
|
let T;
|
|
615
|
-
if (
|
|
615
|
+
if (d) {
|
|
616
616
|
const P = re(n.selectedItems.value), y = e.isItemSelected(i);
|
|
617
|
-
y && (
|
|
617
|
+
y && (m === !1 || m == null) ? T = P.filter((R) => R !== i) : !y && (m === !0 || m == null) ? T = [i].concat(P) : T = P;
|
|
618
618
|
} else
|
|
619
|
-
|
|
620
|
-
|
|
621
|
-
},
|
|
619
|
+
m === !1 || m == null && e.isItemSelected(i) ? T = t.multiSelect ? [] : null : T = t.multiSelect ? [i] : i;
|
|
620
|
+
I(c, T), r.current = i, l.current = {};
|
|
621
|
+
}, p = (c, [i, d]) => {
|
|
622
622
|
if (t.disableSelection || !t.multiSelect)
|
|
623
623
|
return;
|
|
624
|
-
let
|
|
625
|
-
Object.keys(l.current).length > 0 && (
|
|
626
|
-
const T = be(
|
|
627
|
-
|
|
624
|
+
let m = re(n.selectedItems.value).slice();
|
|
625
|
+
Object.keys(l.current).length > 0 && (m = m.filter((R) => !l.current[R]));
|
|
626
|
+
const T = be(m), P = kt(e, i, d), y = P.filter((R) => !T[R]);
|
|
627
|
+
m = m.concat(y), I(c, m), l.current = be(P);
|
|
628
628
|
};
|
|
629
629
|
return {
|
|
630
630
|
getRootProps: () => ({
|
|
@@ -634,34 +634,34 @@ const re = (e) => Array.isArray(e) ? e : e != null ? [e] : [], be = (e) => {
|
|
|
634
634
|
selectItem: g
|
|
635
635
|
},
|
|
636
636
|
instance: {
|
|
637
|
-
isItemSelected:
|
|
637
|
+
isItemSelected: f,
|
|
638
638
|
selectItem: g,
|
|
639
639
|
selectAllNavigableItems: (c) => {
|
|
640
640
|
if (t.disableSelection || !t.multiSelect)
|
|
641
641
|
return;
|
|
642
642
|
const i = vt(e);
|
|
643
|
-
|
|
643
|
+
I(c, i), l.current = be(i);
|
|
644
644
|
},
|
|
645
645
|
expandSelectionRange: (c, i) => {
|
|
646
646
|
if (r.current != null) {
|
|
647
|
-
const [
|
|
648
|
-
|
|
647
|
+
const [d, m] = Pt(e, i, r.current);
|
|
648
|
+
p(c, [d, m]);
|
|
649
649
|
}
|
|
650
650
|
},
|
|
651
651
|
selectRangeFromStartToItem: (c, i) => {
|
|
652
|
-
|
|
652
|
+
p(c, [se(e), i]);
|
|
653
653
|
},
|
|
654
654
|
selectRangeFromItemToEnd: (c, i) => {
|
|
655
|
-
|
|
655
|
+
p(c, [i, Ne(e)]);
|
|
656
656
|
},
|
|
657
|
-
selectItemFromArrowNavigation: (c, i,
|
|
657
|
+
selectItemFromArrowNavigation: (c, i, d) => {
|
|
658
658
|
if (t.disableSelection || !t.multiSelect)
|
|
659
659
|
return;
|
|
660
|
-
let
|
|
661
|
-
Object.keys(l.current).length === 0 ? (
|
|
660
|
+
let m = re(n.selectedItems.value).slice();
|
|
661
|
+
Object.keys(l.current).length === 0 ? (m.push(d), l.current = {
|
|
662
662
|
[i]: !0,
|
|
663
|
-
[
|
|
664
|
-
}) : (l.current[i] || (l.current = {}), l.current[
|
|
663
|
+
[d]: !0
|
|
664
|
+
}) : (l.current[i] || (l.current = {}), l.current[d] ? (m = m.filter((T) => T !== i), delete l.current[i]) : (m.push(d), l.current[d] = !0)), I(c, m);
|
|
665
665
|
}
|
|
666
666
|
},
|
|
667
667
|
contextValue: {
|
|
@@ -742,37 +742,37 @@ function bn(e) {
|
|
|
742
742
|
let t = 0;
|
|
743
743
|
return function(r, l, x) {
|
|
744
744
|
e.registry === null && (e.registry = typeof FinalizationRegistry < "u" ? new In() : new mn());
|
|
745
|
-
const [
|
|
745
|
+
const [I] = E.useState(new gn()), f = E.useRef(null), g = E.useRef(void 0);
|
|
746
746
|
g.current = x;
|
|
747
|
-
const
|
|
748
|
-
if (!
|
|
749
|
-
const o = (s,
|
|
747
|
+
const p = E.useRef(null);
|
|
748
|
+
if (!f.current && g.current) {
|
|
749
|
+
const o = (s, u) => {
|
|
750
750
|
var b;
|
|
751
|
-
|
|
751
|
+
u.defaultMuiPrevented || (b = g.current) == null || b.call(g, s, u);
|
|
752
752
|
};
|
|
753
|
-
|
|
753
|
+
f.current = r.$$subscribeEvent(l, o), t += 1, p.current = {
|
|
754
754
|
cleanupToken: t
|
|
755
755
|
}, e.registry.register(
|
|
756
|
-
|
|
756
|
+
I,
|
|
757
757
|
// The callback below will be called once this reference stops being retained
|
|
758
758
|
() => {
|
|
759
759
|
var s;
|
|
760
|
-
(s =
|
|
760
|
+
(s = f.current) == null || s.call(f), f.current = null, p.current = null;
|
|
761
761
|
},
|
|
762
|
-
|
|
762
|
+
p.current
|
|
763
763
|
);
|
|
764
|
-
} else !g.current &&
|
|
764
|
+
} else !g.current && f.current && (f.current(), f.current = null, p.current && (e.registry.unregister(p.current), p.current = null));
|
|
765
765
|
E.useEffect(() => {
|
|
766
|
-
if (!
|
|
767
|
-
const o = (s,
|
|
766
|
+
if (!f.current && g.current) {
|
|
767
|
+
const o = (s, u) => {
|
|
768
768
|
var b;
|
|
769
|
-
|
|
769
|
+
u.defaultMuiPrevented || (b = g.current) == null || b.call(g, s, u);
|
|
770
770
|
};
|
|
771
|
-
|
|
771
|
+
f.current = r.$$subscribeEvent(l, o);
|
|
772
772
|
}
|
|
773
|
-
return
|
|
773
|
+
return p.current && e.registry && (e.registry.unregister(p.current), p.current = null), () => {
|
|
774
774
|
var o;
|
|
775
|
-
(o =
|
|
775
|
+
(o = f.current) == null || o.call(f), f.current = null;
|
|
776
776
|
};
|
|
777
777
|
}, [r, l]);
|
|
778
778
|
};
|
|
@@ -798,48 +798,48 @@ const hn = {
|
|
|
798
798
|
models: l,
|
|
799
799
|
rootRef: x
|
|
800
800
|
}) => {
|
|
801
|
-
const
|
|
802
|
-
const
|
|
803
|
-
n.focusedItemId !==
|
|
804
|
-
focusedItemId:
|
|
801
|
+
const I = En(e, l.selectedItems.value), f = U((i) => {
|
|
802
|
+
const d = typeof i == "function" ? i(n.focusedItemId) : i;
|
|
803
|
+
n.focusedItemId !== d && r((m) => C({}, m, {
|
|
804
|
+
focusedItemId: d
|
|
805
805
|
}));
|
|
806
|
-
}), g = E.useCallback(() => !!x.current && x.current.contains(Ge(Ht(x.current))), [x]),
|
|
807
|
-
const
|
|
808
|
-
return
|
|
809
|
-
}, s = (i,
|
|
810
|
-
const
|
|
811
|
-
|
|
812
|
-
},
|
|
813
|
-
o(
|
|
806
|
+
}), g = E.useCallback(() => !!x.current && x.current.contains(Ge(Ht(x.current))), [x]), p = E.useCallback((i) => n.focusedItemId === i && g(), [n.focusedItemId, g]), o = (i) => {
|
|
807
|
+
const d = e.getItemMeta(i);
|
|
808
|
+
return d && (d.parentId == null || e.isItemExpanded(d.parentId));
|
|
809
|
+
}, s = (i, d) => {
|
|
810
|
+
const m = e.getItemDOMElement(d);
|
|
811
|
+
m && m.focus(), f(d), t.onItemFocus && t.onItemFocus(i, d);
|
|
812
|
+
}, u = U((i, d) => {
|
|
813
|
+
o(d) && s(i, d);
|
|
814
814
|
}), b = U(() => {
|
|
815
815
|
if (n.focusedItemId == null)
|
|
816
816
|
return;
|
|
817
817
|
if (e.getItemMeta(n.focusedItemId)) {
|
|
818
|
-
const
|
|
819
|
-
|
|
818
|
+
const d = e.getItemDOMElement(n.focusedItemId);
|
|
819
|
+
d && d.blur();
|
|
820
820
|
}
|
|
821
|
-
|
|
822
|
-
}), h = (i) => i ===
|
|
821
|
+
f(null);
|
|
822
|
+
}), h = (i) => i === I;
|
|
823
823
|
xn(e, "removeItem", ({
|
|
824
824
|
id: i
|
|
825
825
|
}) => {
|
|
826
|
-
n.focusedItemId === i && s(null,
|
|
826
|
+
n.focusedItemId === i && s(null, I);
|
|
827
827
|
});
|
|
828
|
-
const c = (i) => (
|
|
829
|
-
var
|
|
830
|
-
(
|
|
828
|
+
const c = (i) => (d) => {
|
|
829
|
+
var m;
|
|
830
|
+
(m = i.onFocus) == null || m.call(i, d), !d.defaultMuiPrevented && d.target === d.currentTarget && s(d, I);
|
|
831
831
|
};
|
|
832
832
|
return {
|
|
833
833
|
getRootProps: (i) => ({
|
|
834
834
|
onFocus: c(i)
|
|
835
835
|
}),
|
|
836
836
|
publicAPI: {
|
|
837
|
-
focusItem:
|
|
837
|
+
focusItem: u
|
|
838
838
|
},
|
|
839
839
|
instance: {
|
|
840
|
-
isItemFocused:
|
|
840
|
+
isItemFocused: p,
|
|
841
841
|
canItemBeTabbed: h,
|
|
842
|
-
focusItem:
|
|
842
|
+
focusItem: u,
|
|
843
843
|
removeFocusedItem: b
|
|
844
844
|
}
|
|
845
845
|
};
|
|
@@ -864,32 +864,32 @@ const Je = ({
|
|
|
864
864
|
E.useEffect(() => {
|
|
865
865
|
if (e.areItemUpdatesPrevented())
|
|
866
866
|
return;
|
|
867
|
-
const o = {}, s = (
|
|
868
|
-
o[
|
|
867
|
+
const o = {}, s = (u) => {
|
|
868
|
+
o[u.id] = u.label.substring(0, 1).toLowerCase();
|
|
869
869
|
};
|
|
870
870
|
Object.values(n.items.itemMetaMap).forEach(s), l.current = o;
|
|
871
871
|
}, [n.items.itemMetaMap, t.getItemId, e]);
|
|
872
|
-
const
|
|
873
|
-
const
|
|
874
|
-
const
|
|
875
|
-
return
|
|
872
|
+
const I = (o, s) => {
|
|
873
|
+
const u = s.toLowerCase(), b = (d) => {
|
|
874
|
+
const m = ge(e, d);
|
|
875
|
+
return m === null ? se(e) : m;
|
|
876
876
|
};
|
|
877
877
|
let h = null, c = b(o);
|
|
878
878
|
const i = {};
|
|
879
879
|
for (; h == null && !i[c]; )
|
|
880
|
-
l.current[c] ===
|
|
880
|
+
l.current[c] === u ? h = c : (i[c] = !0, c = b(c));
|
|
881
881
|
return h;
|
|
882
|
-
},
|
|
882
|
+
}, f = (o) => !t.disableSelection && !e.isItemDisabled(o), g = (o) => !e.isItemDisabled(o) && e.isItemExpandable(o);
|
|
883
883
|
return {
|
|
884
884
|
instance: {
|
|
885
885
|
updateFirstCharMap: x,
|
|
886
886
|
handleItemKeyDown: (o, s) => {
|
|
887
887
|
if (o.defaultMuiPrevented || o.altKey || he(o.target, o.currentTarget))
|
|
888
888
|
return;
|
|
889
|
-
const
|
|
889
|
+
const u = o.ctrlKey || o.metaKey, b = o.key;
|
|
890
890
|
switch (!0) {
|
|
891
891
|
// Select the item when pressing "Space"
|
|
892
|
-
case (b === " " &&
|
|
892
|
+
case (b === " " && f(s)): {
|
|
893
893
|
o.preventDefault(), t.multiSelect && o.shiftKey ? e.expandSelectionRange(o, s) : e.selectItem({
|
|
894
894
|
event: o,
|
|
895
895
|
itemId: s,
|
|
@@ -901,7 +901,7 @@ const Je = ({
|
|
|
901
901
|
// If the focused item has children, we expand it.
|
|
902
902
|
// If the focused item has no children, we select it.
|
|
903
903
|
case b === "Enter": {
|
|
904
|
-
oe(e, H) && e.isItemEditable(s) && !e.isItemBeingEdited(s) ? e.setEditedItemId(s) : g(s) ? (e.toggleItemExpansion(o, s), o.preventDefault()) :
|
|
904
|
+
oe(e, H) && e.isItemEditable(s) && !e.isItemBeingEdited(s) ? e.setEditedItemId(s) : g(s) ? (e.toggleItemExpansion(o, s), o.preventDefault()) : f(s) && (t.multiSelect ? (o.preventDefault(), e.selectItem({
|
|
905
905
|
event: o,
|
|
906
906
|
itemId: s,
|
|
907
907
|
keepExistingSelection: !0
|
|
@@ -914,19 +914,19 @@ const Je = ({
|
|
|
914
914
|
// Focus the next focusable item
|
|
915
915
|
case b === "ArrowDown": {
|
|
916
916
|
const h = ge(e, s);
|
|
917
|
-
h && (o.preventDefault(), e.focusItem(o, h), t.multiSelect && o.shiftKey &&
|
|
917
|
+
h && (o.preventDefault(), e.focusItem(o, h), t.multiSelect && o.shiftKey && f(h) && e.selectItemFromArrowNavigation(o, s, h));
|
|
918
918
|
break;
|
|
919
919
|
}
|
|
920
920
|
// Focuses the previous focusable item
|
|
921
921
|
case b === "ArrowUp": {
|
|
922
922
|
const h = Mt(e, s);
|
|
923
|
-
h && (o.preventDefault(), e.focusItem(o, h), t.multiSelect && o.shiftKey &&
|
|
923
|
+
h && (o.preventDefault(), e.focusItem(o, h), t.multiSelect && o.shiftKey && f(h) && e.selectItemFromArrowNavigation(o, s, h));
|
|
924
924
|
break;
|
|
925
925
|
}
|
|
926
926
|
// If the focused item is expanded, we move the focus to its first child
|
|
927
927
|
// If the focused item is collapsed and has children, we expand it
|
|
928
928
|
case (b === "ArrowRight" && !r || b === "ArrowLeft" && r): {
|
|
929
|
-
if (
|
|
929
|
+
if (u)
|
|
930
930
|
return;
|
|
931
931
|
if (e.isItemExpanded(s)) {
|
|
932
932
|
const h = ge(e, s);
|
|
@@ -937,7 +937,7 @@ const Je = ({
|
|
|
937
937
|
// If the focused item is expanded, we collapse it
|
|
938
938
|
// If the focused item is collapsed and has a parent, we move the focus to this parent
|
|
939
939
|
case (b === "ArrowLeft" && !r || b === "ArrowRight" && r): {
|
|
940
|
-
if (
|
|
940
|
+
if (u)
|
|
941
941
|
return;
|
|
942
942
|
if (g(s) && e.isItemExpanded(s))
|
|
943
943
|
e.toggleItemExpansion(o, s), o.preventDefault();
|
|
@@ -949,12 +949,12 @@ const Je = ({
|
|
|
949
949
|
}
|
|
950
950
|
// Focuses the first item in the tree
|
|
951
951
|
case b === "Home": {
|
|
952
|
-
|
|
952
|
+
f(s) && t.multiSelect && u && o.shiftKey ? e.selectRangeFromStartToItem(o, s) : e.focusItem(o, se(e)), o.preventDefault();
|
|
953
953
|
break;
|
|
954
954
|
}
|
|
955
955
|
// Focuses the last item in the tree
|
|
956
956
|
case b === "End": {
|
|
957
|
-
|
|
957
|
+
f(s) && t.multiSelect && u && o.shiftKey ? e.selectRangeFromItemToEnd(o, s) : e.focusItem(o, Ne(e)), o.preventDefault();
|
|
958
958
|
break;
|
|
959
959
|
}
|
|
960
960
|
// Expand all siblings that are at the same level as the focused item
|
|
@@ -964,14 +964,14 @@ const Je = ({
|
|
|
964
964
|
}
|
|
965
965
|
// Multi select behavior when pressing Ctrl + a
|
|
966
966
|
// Selects all the items
|
|
967
|
-
case (String.fromCharCode(o.keyCode) === "A" &&
|
|
967
|
+
case (String.fromCharCode(o.keyCode) === "A" && u && t.multiSelect && !t.disableSelection): {
|
|
968
968
|
e.selectAllNavigableItems(o), o.preventDefault();
|
|
969
969
|
break;
|
|
970
970
|
}
|
|
971
971
|
// Type-ahead
|
|
972
972
|
// TODO: Support typing multiple characters
|
|
973
|
-
case (!
|
|
974
|
-
const h =
|
|
973
|
+
case (!u && !o.shiftKey && Tn(b)): {
|
|
974
|
+
const h = I(s, b);
|
|
975
975
|
h != null && (e.focusItem(o, h), o.preventDefault());
|
|
976
976
|
break;
|
|
977
977
|
}
|
|
@@ -1014,16 +1014,16 @@ function Qe(e) {
|
|
|
1014
1014
|
disableSelection: x
|
|
1015
1015
|
},
|
|
1016
1016
|
expansion: {
|
|
1017
|
-
expansionTrigger:
|
|
1017
|
+
expansionTrigger: I
|
|
1018
1018
|
}
|
|
1019
|
-
} = Ke(),
|
|
1019
|
+
} = Ke(), f = t.isItemExpandable(e), g = t.isItemExpanded(e), p = t.isItemFocused(e), o = t.isItemSelected(e), s = t.isItemDisabled(e), u = t != null && t.isItemBeingEdited ? t == null ? void 0 : t.isItemBeingEdited(e) : !1, b = t.isItemEditable ? t.isItemEditable(e) : !1, h = (y) => {
|
|
1020
1020
|
if (!s) {
|
|
1021
|
-
|
|
1021
|
+
p || t.focusItem(y, e);
|
|
1022
1022
|
const R = r && (y.shiftKey || y.ctrlKey || y.metaKey);
|
|
1023
|
-
|
|
1023
|
+
f && !(R && t.isItemExpanded(e)) && t.toggleItemExpansion(y, e);
|
|
1024
1024
|
}
|
|
1025
1025
|
}, c = (y) => {
|
|
1026
|
-
s || (
|
|
1026
|
+
s || (p || t.focusItem(y, e), r && (y.shiftKey || y.ctrlKey || y.metaKey) ? y.shiftKey ? t.expandSelectionRange(y, e) : t.selectItem({
|
|
1027
1027
|
event: y,
|
|
1028
1028
|
itemId: e,
|
|
1029
1029
|
keepExistingSelection: !0
|
|
@@ -1042,32 +1042,32 @@ function Qe(e) {
|
|
|
1042
1042
|
keepExistingSelection: r,
|
|
1043
1043
|
shouldBeSelected: y.target.checked
|
|
1044
1044
|
});
|
|
1045
|
-
},
|
|
1045
|
+
}, d = (y) => {
|
|
1046
1046
|
(y.shiftKey || y.ctrlKey || y.metaKey || s) && y.preventDefault();
|
|
1047
|
-
},
|
|
1047
|
+
}, m = () => {
|
|
1048
1048
|
oe(t, H) && t.isItemEditable(e) && (t.isItemBeingEdited(e) ? t.setEditedItemId(null) : t.setEditedItemId(e));
|
|
1049
1049
|
};
|
|
1050
1050
|
return {
|
|
1051
1051
|
disabled: s,
|
|
1052
1052
|
expanded: g,
|
|
1053
1053
|
selected: o,
|
|
1054
|
-
focused:
|
|
1054
|
+
focused: p,
|
|
1055
1055
|
editable: b,
|
|
1056
|
-
editing:
|
|
1056
|
+
editing: u,
|
|
1057
1057
|
disableSelection: x,
|
|
1058
1058
|
checkboxSelection: l,
|
|
1059
1059
|
handleExpansion: h,
|
|
1060
1060
|
handleSelection: c,
|
|
1061
1061
|
handleCheckboxSelection: i,
|
|
1062
1062
|
handleContentClick: n,
|
|
1063
|
-
preventSelection:
|
|
1064
|
-
expansionTrigger:
|
|
1065
|
-
toggleItemEditing:
|
|
1063
|
+
preventSelection: d,
|
|
1064
|
+
expansionTrigger: I,
|
|
1065
|
+
toggleItemEditing: m,
|
|
1066
1066
|
handleSaveItemLabel: (y, R) => {
|
|
1067
|
-
oe(t, H) && t.isItemBeingEditedRef(e) && (t.updateItemLabel(e, R),
|
|
1067
|
+
oe(t, H) && t.isItemBeingEditedRef(e) && (t.updateItemLabel(e, R), m(), t.focusItem(y, e));
|
|
1068
1068
|
},
|
|
1069
1069
|
handleCancelItemLabelEditing: (y) => {
|
|
1070
|
-
oe(t, H) && t.isItemBeingEditedRef(e) && (
|
|
1070
|
+
oe(t, H) && t.isItemBeingEditedRef(e) && (m(), t.focusItem(y, e));
|
|
1071
1071
|
}
|
|
1072
1072
|
};
|
|
1073
1073
|
}
|
|
@@ -1076,19 +1076,19 @@ const Cn = ["classes", "className", "displayIcon", "expansionIcon", "icon", "lab
|
|
|
1076
1076
|
classes: r,
|
|
1077
1077
|
className: l,
|
|
1078
1078
|
displayIcon: x,
|
|
1079
|
-
expansionIcon:
|
|
1080
|
-
icon:
|
|
1079
|
+
expansionIcon: I,
|
|
1080
|
+
icon: f,
|
|
1081
1081
|
label: g,
|
|
1082
|
-
itemId:
|
|
1082
|
+
itemId: p,
|
|
1083
1083
|
onClick: o,
|
|
1084
1084
|
onMouseDown: s,
|
|
1085
|
-
dragAndDropOverlayProps:
|
|
1085
|
+
dragAndDropOverlayProps: u,
|
|
1086
1086
|
labelInputProps: b
|
|
1087
1087
|
} = t, h = A(t, Cn), {
|
|
1088
1088
|
disabled: c,
|
|
1089
1089
|
expanded: i,
|
|
1090
|
-
selected:
|
|
1091
|
-
focused:
|
|
1090
|
+
selected: d,
|
|
1091
|
+
focused: m,
|
|
1092
1092
|
editing: T,
|
|
1093
1093
|
editable: P,
|
|
1094
1094
|
disableSelection: y,
|
|
@@ -1100,18 +1100,18 @@ const Cn = ["classes", "className", "displayIcon", "expansionIcon", "icon", "lab
|
|
|
1100
1100
|
preventSelection: L,
|
|
1101
1101
|
expansionTrigger: W,
|
|
1102
1102
|
toggleItemEditing: G
|
|
1103
|
-
} = Qe(
|
|
1103
|
+
} = Qe(p), j = f || I || x, J = E.useRef(null), ce = (M) => {
|
|
1104
1104
|
L(M), s && s(M);
|
|
1105
1105
|
}, ue = (M) => {
|
|
1106
1106
|
var Y;
|
|
1107
|
-
V == null || V(M,
|
|
1107
|
+
V == null || V(M, p), !((Y = J.current) != null && Y.contains(M.target)) && (W === "content" && v(M), R || F(M), o && o(M));
|
|
1108
1108
|
}, de = (M) => {
|
|
1109
1109
|
M.defaultMuiPrevented || G();
|
|
1110
1110
|
};
|
|
1111
1111
|
return (
|
|
1112
1112
|
/* eslint-disable-next-line jsx-a11y/click-events-have-key-events,jsx-a11y/no-static-element-interactions -- Key event is handled by the TreeView */
|
|
1113
1113
|
/* @__PURE__ */ je("div", C({}, h, {
|
|
1114
|
-
className: Be(r.root, l, i && r.expanded,
|
|
1114
|
+
className: Be(r.root, l, i && r.expanded, d && r.selected, m && r.focused, c && r.disabled, T && r.editing, P && r.editable),
|
|
1115
1115
|
onClick: ue,
|
|
1116
1116
|
onMouseDown: ce,
|
|
1117
1117
|
ref: n,
|
|
@@ -1120,7 +1120,7 @@ const Cn = ["classes", "className", "displayIcon", "expansionIcon", "icon", "lab
|
|
|
1120
1120
|
children: j
|
|
1121
1121
|
}), R && /* @__PURE__ */ S(Wt, {
|
|
1122
1122
|
className: r.checkbox,
|
|
1123
|
-
checked:
|
|
1123
|
+
checked: d,
|
|
1124
1124
|
onChange: B,
|
|
1125
1125
|
disabled: c || y,
|
|
1126
1126
|
ref: J,
|
|
@@ -1133,7 +1133,7 @@ const Cn = ["classes", "className", "displayIcon", "expansionIcon", "icon", "lab
|
|
|
1133
1133
|
onDoubleClick: de
|
|
1134
1134
|
}, {
|
|
1135
1135
|
children: g
|
|
1136
|
-
})),
|
|
1136
|
+
})), u && /* @__PURE__ */ S(Ot, C({}, u))]
|
|
1137
1137
|
}))
|
|
1138
1138
|
);
|
|
1139
1139
|
});
|
|
@@ -1311,17 +1311,17 @@ const wn = ["children", "className", "slots", "slotProps", "ContentComponent", "
|
|
|
1311
1311
|
runItemPlugins: l,
|
|
1312
1312
|
items: {
|
|
1313
1313
|
disabledItemsFocusable: x,
|
|
1314
|
-
indentationAtItemLevel:
|
|
1314
|
+
indentationAtItemLevel: I
|
|
1315
1315
|
},
|
|
1316
1316
|
selection: {
|
|
1317
|
-
disableSelection:
|
|
1317
|
+
disableSelection: f
|
|
1318
1318
|
},
|
|
1319
1319
|
expansion: {
|
|
1320
1320
|
expansionTrigger: g
|
|
1321
1321
|
},
|
|
1322
|
-
treeId:
|
|
1322
|
+
treeId: p,
|
|
1323
1323
|
instance: o
|
|
1324
|
-
} = Ke(), s = E.useContext($e),
|
|
1324
|
+
} = Ke(), s = E.useContext($e), u = vn({
|
|
1325
1325
|
props: t,
|
|
1326
1326
|
name: "MuiTreeItem"
|
|
1327
1327
|
}), {
|
|
@@ -1329,8 +1329,8 @@ const wn = ["children", "className", "slots", "slotProps", "ContentComponent", "
|
|
|
1329
1329
|
className: h,
|
|
1330
1330
|
slots: c,
|
|
1331
1331
|
slotProps: i,
|
|
1332
|
-
ContentComponent:
|
|
1333
|
-
ContentProps:
|
|
1332
|
+
ContentComponent: d = Ce,
|
|
1333
|
+
ContentProps: m,
|
|
1334
1334
|
itemId: T,
|
|
1335
1335
|
id: P,
|
|
1336
1336
|
label: y,
|
|
@@ -1338,7 +1338,7 @@ const wn = ["children", "className", "slots", "slotProps", "ContentComponent", "
|
|
|
1338
1338
|
onMouseDown: v,
|
|
1339
1339
|
onBlur: F,
|
|
1340
1340
|
onKeyDown: B
|
|
1341
|
-
} =
|
|
1341
|
+
} = u, V = A(u, wn), {
|
|
1342
1342
|
expanded: L,
|
|
1343
1343
|
focused: W,
|
|
1344
1344
|
selected: G,
|
|
@@ -1348,23 +1348,23 @@ const wn = ["children", "className", "slots", "slotProps", "ContentComponent", "
|
|
|
1348
1348
|
handleCancelItemLabelEditing: ue,
|
|
1349
1349
|
handleSaveItemLabel: de
|
|
1350
1350
|
} = Qe(T);
|
|
1351
|
-
process.env.NODE_ENV !== "production" && (
|
|
1351
|
+
process.env.NODE_ENV !== "production" && (u.ContentComponent && xe(["MUI X: The ContentComponent prop of the TreeItem component is deprecated and will be removed in the next major release.", "You can use the new TreeItem2 component or the new useTreeItem2 hook to customize the rendering of the content.", "For more detail, see https://mui.com/x/react-tree-view/tree-item-customization/."]), u.ContentProps && xe(["MUI X: The ContentProps prop of the TreeItem component is deprecated and will be removed in the next major release.", "You can use the new TreeItem2 component or the new useTreeItem2 hook to customize the rendering of the content.", "For more detail, see https://mui.com/x/react-tree-view/tree-item-customization/."]));
|
|
1352
1352
|
const {
|
|
1353
1353
|
contentRef: M,
|
|
1354
1354
|
rootRef: Y,
|
|
1355
1355
|
propsEnhancers: D
|
|
1356
|
-
} = l(
|
|
1356
|
+
} = l(u), Q = E.useRef(null), we = E.useRef(null), nt = Ee(n, Y, Q), ot = Ee(m == null ? void 0 : m.ref, M, we), z = {
|
|
1357
1357
|
expandIcon: (c == null ? void 0 : c.expandIcon) ?? r.slots.expandIcon ?? At,
|
|
1358
1358
|
collapseIcon: (c == null ? void 0 : c.collapseIcon) ?? r.slots.collapseIcon ?? Vt,
|
|
1359
1359
|
endIcon: (c == null ? void 0 : c.endIcon) ?? r.slots.endIcon,
|
|
1360
1360
|
icon: c == null ? void 0 : c.icon,
|
|
1361
1361
|
groupTransition: c == null ? void 0 : c.groupTransition
|
|
1362
|
-
}, Re = (w) => Array.isArray(w) ? w.length > 0 && w.some(Re) : !!w, Z = Re(b), fe = C({},
|
|
1362
|
+
}, Re = (w) => Array.isArray(w) ? w.length > 0 && w.some(Re) : !!w, Z = Re(b), fe = C({}, u, {
|
|
1363
1363
|
expanded: L,
|
|
1364
1364
|
focused: W,
|
|
1365
1365
|
selected: G,
|
|
1366
1366
|
disabled: j,
|
|
1367
|
-
indentationAtItemLevel:
|
|
1367
|
+
indentationAtItemLevel: I
|
|
1368
1368
|
}), k = kn(fe), Se = z.groupTransition ?? void 0, rt = N({
|
|
1369
1369
|
elementType: Se,
|
|
1370
1370
|
ownerState: {},
|
|
@@ -1374,7 +1374,7 @@ const wn = ["children", "className", "slots", "slotProps", "ContentComponent", "
|
|
|
1374
1374
|
in: L,
|
|
1375
1375
|
component: "ul",
|
|
1376
1376
|
role: "group"
|
|
1377
|
-
},
|
|
1377
|
+
}, I ? {
|
|
1378
1378
|
indentationAtItemLevel: !0
|
|
1379
1379
|
} : {}),
|
|
1380
1380
|
className: k.groupTransition
|
|
@@ -1397,7 +1397,7 @@ const wn = ["children", "className", "slots", "slotProps", "ContentComponent", "
|
|
|
1397
1397
|
externalSlotProps: i == null ? void 0 : i.icon
|
|
1398
1398
|
}), pt = A(ft, Pn), mt = Ie ? /* @__PURE__ */ S(Ie, C({}, pt)) : null;
|
|
1399
1399
|
let ee;
|
|
1400
|
-
G ? ee = !0 :
|
|
1400
|
+
G ? ee = !0 : f || j ? ee = void 0 : ee = !1;
|
|
1401
1401
|
function It(w) {
|
|
1402
1402
|
!W && (!j || x) && w.currentTarget === w.target && o.focusItem(w, T);
|
|
1403
1403
|
}
|
|
@@ -1412,7 +1412,7 @@ const wn = ["children", "className", "slots", "slotProps", "ContentComponent", "
|
|
|
1412
1412
|
B == null || B(w), ((q = (_ = w.target) == null ? void 0 : _.dataset) == null ? void 0 : q.element) !== "labelInput" && o.handleItemKeyDown(w, T);
|
|
1413
1413
|
}, ht = _e({
|
|
1414
1414
|
itemId: T,
|
|
1415
|
-
treeId:
|
|
1415
|
+
treeId: p,
|
|
1416
1416
|
id: P
|
|
1417
1417
|
}), xt = o.canItemBeTabbed(T) ? 0 : -1, te = {
|
|
1418
1418
|
rootRefObject: Q,
|
|
@@ -1424,7 +1424,7 @@ const wn = ["children", "className", "slots", "slotProps", "ContentComponent", "
|
|
|
1424
1424
|
}, Et = ((ke = D.root) == null ? void 0 : ke.call(D, C({}, te, {
|
|
1425
1425
|
externalEventHandlers: Fe(V)
|
|
1426
1426
|
}))) ?? {}, Tt = ((Me = D.content) == null ? void 0 : Me.call(D, C({}, te, {
|
|
1427
|
-
externalEventHandlers: Fe(
|
|
1427
|
+
externalEventHandlers: Fe(m)
|
|
1428
1428
|
}))) ?? {}, Pe = ((De = D.dragAndDropOverlay) == null ? void 0 : De.call(D, C({}, te, {
|
|
1429
1429
|
externalEventHandlers: {}
|
|
1430
1430
|
}))) ?? {}, ve = ((Oe = D.labelInput) == null ? void 0 : Oe.call(D, C({}, te, {
|
|
@@ -1446,12 +1446,12 @@ const wn = ["children", "className", "slots", "slotProps", "ContentComponent", "
|
|
|
1446
1446
|
onBlur: gt,
|
|
1447
1447
|
onKeyDown: bt,
|
|
1448
1448
|
ref: nt,
|
|
1449
|
-
style:
|
|
1449
|
+
style: I ? C({}, V.style, {
|
|
1450
1450
|
"--TreeView-itemDepth": typeof s == "function" ? s(T) : s
|
|
1451
1451
|
}) : V.style
|
|
1452
1452
|
}, Et, {
|
|
1453
1453
|
children: [/* @__PURE__ */ S(Dn, C({
|
|
1454
|
-
as:
|
|
1454
|
+
as: d,
|
|
1455
1455
|
classes: {
|
|
1456
1456
|
root: k.content,
|
|
1457
1457
|
expanded: k.expanded,
|
|
@@ -1473,7 +1473,7 @@ const wn = ["children", "className", "slots", "slotProps", "ContentComponent", "
|
|
|
1473
1473
|
expansionIcon: at,
|
|
1474
1474
|
displayIcon: dt,
|
|
1475
1475
|
ownerState: fe
|
|
1476
|
-
},
|
|
1476
|
+
}, m, Tt, Pe.action == null ? {} : {
|
|
1477
1477
|
dragAndDropOverlayProps: Pe
|
|
1478
1478
|
}, ve.value == null ? {} : {
|
|
1479
1479
|
labelInputProps: ve
|
|
@@ -1558,8 +1558,8 @@ function An({
|
|
|
1558
1558
|
itemId: l,
|
|
1559
1559
|
itemsToRender: x
|
|
1560
1560
|
}) {
|
|
1561
|
-
const
|
|
1562
|
-
elementType:
|
|
1561
|
+
const I = (e == null ? void 0 : e.item) ?? Ze, f = N({
|
|
1562
|
+
elementType: I,
|
|
1563
1563
|
externalSlotProps: t == null ? void 0 : t.item,
|
|
1564
1564
|
additionalProps: {
|
|
1565
1565
|
itemId: l,
|
|
@@ -1570,13 +1570,13 @@ function An({
|
|
|
1570
1570
|
itemId: l,
|
|
1571
1571
|
label: n
|
|
1572
1572
|
}
|
|
1573
|
-
}), g = A(
|
|
1573
|
+
}), g = A(f, Vn), p = E.useMemo(() => x ? /* @__PURE__ */ S(et, {
|
|
1574
1574
|
itemsToRender: x,
|
|
1575
1575
|
slots: e,
|
|
1576
1576
|
slotProps: t
|
|
1577
1577
|
}) : null, [x, e, t]);
|
|
1578
|
-
return /* @__PURE__ */ S(
|
|
1579
|
-
children:
|
|
1578
|
+
return /* @__PURE__ */ S(I, C({}, g, {
|
|
1579
|
+
children: p
|
|
1580
1580
|
}));
|
|
1581
1581
|
}
|
|
1582
1582
|
function et(e) {
|
|
@@ -1622,18 +1622,18 @@ const Fn = Ue(), Ln = (e) => {
|
|
|
1622
1622
|
const {
|
|
1623
1623
|
getRootProps: l,
|
|
1624
1624
|
contextValue: x,
|
|
1625
|
-
instance:
|
|
1625
|
+
instance: I
|
|
1626
1626
|
} = ln({
|
|
1627
1627
|
plugins: yn,
|
|
1628
1628
|
rootRef: n,
|
|
1629
1629
|
props: r
|
|
1630
1630
|
}), {
|
|
1631
|
-
slots:
|
|
1631
|
+
slots: f,
|
|
1632
1632
|
slotProps: g
|
|
1633
|
-
} = r,
|
|
1633
|
+
} = r, p = Ln(r), o = (f == null ? void 0 : f.root) ?? jn, s = N({
|
|
1634
1634
|
elementType: o,
|
|
1635
1635
|
externalSlotProps: g == null ? void 0 : g.root,
|
|
1636
|
-
className:
|
|
1636
|
+
className: p.root,
|
|
1637
1637
|
getSlotProps: l,
|
|
1638
1638
|
ownerState: r
|
|
1639
1639
|
});
|
|
@@ -1641,9 +1641,9 @@ const Fn = Ue(), Ln = (e) => {
|
|
|
1641
1641
|
value: x,
|
|
1642
1642
|
children: /* @__PURE__ */ S(o, C({}, s, {
|
|
1643
1643
|
children: /* @__PURE__ */ S(et, {
|
|
1644
|
-
slots:
|
|
1644
|
+
slots: f,
|
|
1645
1645
|
slotProps: g,
|
|
1646
|
-
itemsToRender:
|
|
1646
|
+
itemsToRender: I.getItemsToRender()
|
|
1647
1647
|
})
|
|
1648
1648
|
}))
|
|
1649
1649
|
});
|
|
@@ -1841,43 +1841,46 @@ const no = ({
|
|
|
1841
1841
|
selectedItemId: t,
|
|
1842
1842
|
handleSelectedItemChange: n,
|
|
1843
1843
|
iconColor: r = "primary",
|
|
1844
|
-
|
|
1844
|
+
hasNoIcons: l = !1,
|
|
1845
|
+
maxHeight: x = 300,
|
|
1846
|
+
defaultExpandedItems: I = []
|
|
1845
1847
|
}) => {
|
|
1846
|
-
const [
|
|
1848
|
+
const [f, g] = yt(I), p = Ct(() => Kt(e), [e]);
|
|
1847
1849
|
return wt(() => {
|
|
1848
1850
|
if (t) {
|
|
1849
|
-
const
|
|
1850
|
-
if (
|
|
1851
|
-
const
|
|
1852
|
-
|
|
1853
|
-
const
|
|
1854
|
-
(
|
|
1851
|
+
const s = Ut(e, t);
|
|
1852
|
+
if (s) {
|
|
1853
|
+
const u = s.slice(0, -1);
|
|
1854
|
+
g((b) => {
|
|
1855
|
+
const h = u.filter(
|
|
1856
|
+
(c) => !b.includes(c)
|
|
1855
1857
|
);
|
|
1856
|
-
return
|
|
1858
|
+
return h.length > 0 ? [...b, ...h] : b;
|
|
1857
1859
|
});
|
|
1858
1860
|
}
|
|
1859
1861
|
}
|
|
1860
|
-
}, [t, e]), /* @__PURE__ */ S($t, {
|
|
1862
|
+
}, [t, e]), /* @__PURE__ */ S($t, { maxHeight: x, "data-treeview-root": "true", children: /* @__PURE__ */ S(
|
|
1861
1863
|
tt,
|
|
1862
1864
|
{
|
|
1863
1865
|
items: e,
|
|
1864
1866
|
selectedItems: t,
|
|
1865
|
-
expandedItems:
|
|
1866
|
-
onExpandedItemsChange: (
|
|
1867
|
-
|
|
1867
|
+
expandedItems: f,
|
|
1868
|
+
onExpandedItemsChange: (s, u) => {
|
|
1869
|
+
g(u);
|
|
1868
1870
|
},
|
|
1869
1871
|
itemChildrenIndentation: Nt,
|
|
1870
1872
|
onSelectedItemsChange: n,
|
|
1871
1873
|
getItemId: Bt,
|
|
1872
1874
|
slots: {
|
|
1873
|
-
item: (
|
|
1874
|
-
const
|
|
1875
|
+
item: (s) => {
|
|
1876
|
+
const u = s.itemId ? p[s.itemId] : void 0;
|
|
1875
1877
|
return /* @__PURE__ */ S(
|
|
1876
1878
|
_t,
|
|
1877
1879
|
{
|
|
1878
|
-
...
|
|
1879
|
-
itemData:
|
|
1880
|
-
iconColor: r
|
|
1880
|
+
...s,
|
|
1881
|
+
itemData: u,
|
|
1882
|
+
iconColor: r,
|
|
1883
|
+
hasNoIcons: l
|
|
1881
1884
|
}
|
|
1882
1885
|
);
|
|
1883
1886
|
}
|