@astral/ui 4.99.2 → 4.101.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/components/Accordion/styles.js +4 -4
- package/components/Alert/styles.js +2 -2
- package/components/Autocomplete/styles.js +1 -1
- package/components/Badge/styles.js +1 -1
- package/components/Banner/BannerTemplate/styles.js +3 -3
- package/components/Button/styles.js +1 -1
- package/components/CardGridInfinite/Card/styles.js +1 -1
- package/components/CardGridInfinite/CardGridSecondaryAction/CardGridSecondaryActionsSkeleton/styles.js +2 -2
- package/components/CardGridInfinite/ErrorMessage/styles.js +1 -1
- package/components/CardGridInfinite/List/styles.js +1 -1
- package/components/CardGridInfinite/OnTopButton/styles.js +1 -1
- package/components/CardGridInfinite/styles.js +1 -1
- package/components/Checkbox/styles.js +2 -2
- package/components/CheckboxField/styles.js +2 -2
- package/components/Chip/styles.js +4 -4
- package/components/ConfirmAction/styles.js +3 -3
- package/components/ConfirmDialog/styles.js +1 -1
- package/components/DashboardAlert/styles.js +2 -2
- package/components/DashboardLayout/Container/styles.js +2 -2
- package/components/DashboardLayout/DashboardSidebar/styles.js +6 -6
- package/components/DashboardLayout/DashboardWrapper/styles.js +1 -1
- package/components/DashboardLayout/Header/styles.js +10 -10
- package/components/DashboardLayout/Main/styles.js +3 -3
- package/components/DashboardLayoutNotificationList/styles.js +1 -1
- package/components/DashboardLayoutSkeleton/styles.js +1 -1
- package/components/DashboardSidebarButton/styles.js +1 -1
- package/components/DashboardSidebarCounter/styles.js +1 -1
- package/components/DashboardSidebarPopover/FadePopup/styles.js +1 -1
- package/components/DashboardSidebarPopover/SidebarPopoverItem/styles.js +1 -1
- package/components/DashboardSidebarPopover/styles.js +2 -2
- package/components/DashboardSidebarSkeleton/styles.js +1 -1
- package/components/DataGrid/Body/styles.js +1 -1
- package/components/DataGrid/Cell/CellInner/styles.js +2 -2
- package/components/DataGrid/Cell/styles.js +1 -1
- package/components/DataGrid/Head/styles.js +1 -1
- package/components/DataGrid/Loader/styles.js +2 -2
- package/components/DataGrid/Row/NestedChildren/styles.js +3 -3
- package/components/DataGrid/Row/styles.js +8 -8
- package/components/DataGrid/RowBase/GroupCell/styles.js +1 -1
- package/components/DataGrid/RowBase/styles.js +3 -3
- package/components/DataGrid/styles.js +3 -3
- package/components/DataGridActionCell/DataGridMainActions/Action/MainIconButton/styles.js +1 -1
- package/components/DataGridActionCell/DataGridMainActions/Action/MobileMainButton/styles.js +1 -1
- package/components/DataGridActionCell/SecondaryActionsButton/styles.js +1 -1
- package/components/DataGridActionCell/styles.js +1 -1
- package/components/DataGridCollapsibleRow/styles.js +4 -4
- package/components/DataGridInfinite/ErrorMessage/styles.js +1 -1
- package/components/DataGridInfinite/styles.js +1 -1
- package/components/DataGridPaginationContainer/styles.js +2 -2
- package/components/DatePicker/DateCalendar/DateCalendarChevronButton/DateCalendarNextButton/styles.js +2 -2
- package/components/DatePicker/DateCalendar/DateCalendarChevronButton/DateCalendarPrevButton/styles.js +2 -2
- package/components/DatePicker/DateCalendar/DateCalendarHead/styles.js +2 -2
- package/components/DatePicker/DateCalendar/DateCalendarWrapper/styles.js +1 -1
- package/components/DatePicker/DatePickerPopover/styles.js +1 -1
- package/components/DatePicker/styles.js +1 -1
- package/components/DateRangePicker/styles.js +1 -1
- package/components/Description/Value/styles.js +2 -2
- package/components/Description/styles.js +1 -1
- package/components/DescriptionCell/styles.js +2 -2
- package/components/DescriptionList/styles.js +3 -3
- package/components/DialogActions/styles.js +2 -2
- package/components/DialogContent/styles.js +1 -1
- package/components/ExpansionPanel/Details/ErrorState/styles.js +1 -1
- package/components/ExpansionPanel/Details/LoadingState/styles.js +1 -1
- package/components/Fieldset/styles.js +5 -5
- package/components/FlowButton/styles.js +1 -1
- package/components/GlobalStyles/GlobalStyles.js +1 -1
- package/components/HintPopover/styles.js +4 -4
- package/components/IconButton/styles.js +1 -1
- package/components/InfiniteDataList/EndData/styles.js +1 -1
- package/components/InfiniteDataList/ErrorMessage/styles.js +1 -1
- package/components/InfiniteDataList/Loader/styles.js +1 -1
- package/components/InfiniteDataList/styles.js +1 -1
- package/components/InfiniteTreeList/InfiniteTreeList.d.ts +18 -0
- package/components/InfiniteTreeList/InfiniteTreeList.js +26 -19
- package/components/InfiniteTreeList/InfiniteTreeListActions/InfiniteTreeListActions.d.ts +9 -0
- package/components/InfiniteTreeList/InfiniteTreeListActions/InfiniteTreeListActions.js +9 -0
- package/components/InfiniteTreeList/InfiniteTreeListActions/types.d.ts +5 -0
- package/components/InfiniteTreeList/InfiniteTreeListActions/useLogic/useLogic.js +5 -6
- package/components/InfiniteTreeList/InfiniteTreeListContext/InfiniteTreeListContext.d.ts +81 -0
- package/components/InfiniteTreeList/InfiniteTreeListContext/InfiniteTreeListContext.js +21 -0
- package/components/InfiniteTreeList/InfiniteTreeListContext/InfiniteTreeListContextProvider/InfiniteTreeListContextProvider.d.ts +3 -2
- package/components/InfiniteTreeList/InfiniteTreeListContext/InfiniteTreeListContextProvider/InfiniteTreeListContextProvider.js +69 -13
- package/components/InfiniteTreeList/InfiniteTreeListItem/ErrorPlaceholder/ErrorPlaceholder.d.ts +6 -0
- package/components/InfiniteTreeList/InfiniteTreeListItem/ErrorPlaceholder/ErrorPlaceholder.js +8 -0
- package/components/InfiniteTreeList/InfiniteTreeListItem/ErrorPlaceholder/constants.d.ts +1 -0
- package/components/InfiniteTreeList/InfiniteTreeListItem/ErrorPlaceholder/constants.js +1 -0
- package/components/InfiniteTreeList/InfiniteTreeListItem/ErrorPlaceholder/index.d.ts +1 -0
- package/components/InfiniteTreeList/InfiniteTreeListItem/ErrorPlaceholder/index.js +1 -0
- package/components/InfiniteTreeList/{ErrorMessage → InfiniteTreeListItem/ErrorPlaceholder}/styles.d.ts +1 -1
- package/components/InfiniteTreeList/InfiniteTreeListItem/ErrorPlaceholder/styles.js +8 -0
- package/components/InfiniteTreeList/InfiniteTreeListItem/InfiniteTreeListItem.js +29 -7
- package/components/InfiniteTreeList/InfiniteTreeListItem/TreeListItemContext/TreeListItemContext.d.ts +19 -0
- package/components/InfiniteTreeList/InfiniteTreeListItem/TreeListItemContext/TreeListItemContext.js +4 -0
- package/components/InfiniteTreeList/InfiniteTreeListItem/TreeListItemContext/TreeListItemContextProvider/TreeListItemContextProvider.d.ts +4 -0
- package/components/InfiniteTreeList/InfiniteTreeListItem/TreeListItemContext/TreeListItemContextProvider/TreeListItemContextProvider.js +13 -8
- package/components/InfiniteTreeList/InfiniteTreeListItem/constants.d.ts +6 -0
- package/components/InfiniteTreeList/InfiniteTreeListItem/constants.js +7 -0
- package/components/InfiniteTreeList/InfiniteTreeListItem/styles.d.ts +4 -4
- package/components/InfiniteTreeList/InfiniteTreeListItem/styles.js +28 -5
- package/components/InfiniteTreeList/InfiniteTreeListItem/types.d.ts +20 -3
- package/components/InfiniteTreeList/InfiniteTreeListItem/useLogic/useLogic.d.ts +7 -1
- package/components/InfiniteTreeList/InfiniteTreeListItem/useLogic/useLogic.js +57 -5
- package/components/InfiniteTreeList/{EndData → ListFooter/EndData}/EndData.js +1 -1
- package/components/InfiniteTreeList/{ErrorMessage → ListFooter/ErrorMessage}/ErrorMessage.js +2 -2
- package/components/InfiniteTreeList/ListFooter/ErrorMessage/styles.d.ts +5 -0
- package/components/InfiniteTreeList/{ErrorMessage → ListFooter/ErrorMessage}/styles.js +2 -2
- package/components/InfiniteTreeList/ListFooter/ListFooter.d.ts +10 -0
- package/components/InfiniteTreeList/ListFooter/ListFooter.js +25 -0
- package/components/InfiniteTreeList/ListFooter/index.d.ts +2 -0
- package/components/InfiniteTreeList/ListFooter/index.js +1 -0
- package/components/InfiniteTreeList/{styles.d.ts → ListFooter/styles.d.ts} +2 -2
- package/components/InfiniteTreeList/{styles.js → ListFooter/styles.js} +1 -1
- package/components/InfiniteTreeList/ListFooter/types.d.ts +22 -0
- package/components/InfiniteTreeList/ListFooter/types.js +1 -0
- package/components/InfiniteTreeList/OnTopButton/OnTopButton.d.ts +8 -2
- package/components/InfiniteTreeList/OnTopButton/OnTopButton.js +6 -5
- package/components/InfiniteTreeList/OnTopButton/styles.d.ts +4 -0
- package/components/InfiniteTreeList/OnTopButton/styles.js +10 -0
- package/components/InfiniteTreeList/ParentItems/Item/CustomParentWrapper/CustomParentWrapper.d.ts +23 -0
- package/components/InfiniteTreeList/ParentItems/Item/CustomParentWrapper/CustomParentWrapper.js +12 -0
- package/components/InfiniteTreeList/ParentItems/Item/CustomParentWrapper/index.d.ts +1 -0
- package/components/InfiniteTreeList/ParentItems/Item/CustomParentWrapper/index.js +1 -0
- package/components/InfiniteTreeList/ParentItems/Item/Item.d.ts +10 -0
- package/components/InfiniteTreeList/ParentItems/Item/Item.js +22 -0
- package/components/InfiniteTreeList/ParentItems/Item/index.d.ts +2 -0
- package/components/InfiniteTreeList/ParentItems/Item/index.js +2 -0
- package/components/InfiniteTreeList/ParentItems/Item/types.d.ts +8 -0
- package/components/InfiniteTreeList/ParentItems/Item/types.js +1 -0
- package/components/InfiniteTreeList/ParentItems/Item/useLogic/index.d.ts +1 -0
- package/components/InfiniteTreeList/ParentItems/Item/useLogic/index.js +1 -0
- package/components/InfiniteTreeList/ParentItems/Item/useLogic/useLogic.d.ts +12 -0
- package/components/InfiniteTreeList/ParentItems/Item/useLogic/useLogic.js +12 -0
- package/components/InfiniteTreeList/ParentItems/ParentItems.d.ts +11 -0
- package/components/InfiniteTreeList/ParentItems/ParentItems.js +11 -0
- package/components/InfiniteTreeList/ParentItems/index.d.ts +3 -0
- package/components/InfiniteTreeList/ParentItems/index.js +3 -0
- package/components/InfiniteTreeList/ParentItems/types.d.ts +8 -0
- package/components/InfiniteTreeList/ParentItems/types.js +1 -0
- package/components/InfiniteTreeList/TreeItem/ChildrenPlaceholder/ChildrenPlaceholder.d.ts +9 -0
- package/components/InfiniteTreeList/TreeItem/ChildrenPlaceholder/ChildrenPlaceholder.js +22 -0
- package/components/InfiniteTreeList/TreeItem/ChildrenPlaceholder/NoDataRow/NoDataRow.d.ts +1 -0
- package/components/InfiniteTreeList/TreeItem/ChildrenPlaceholder/NoDataRow/NoDataRow.js +5 -0
- package/components/InfiniteTreeList/TreeItem/ChildrenPlaceholder/NoDataRow/index.d.ts +1 -0
- package/components/InfiniteTreeList/TreeItem/ChildrenPlaceholder/NoDataRow/index.js +1 -0
- package/components/InfiniteTreeList/TreeItem/ChildrenPlaceholder/index.d.ts +1 -0
- package/components/InfiniteTreeList/TreeItem/ChildrenPlaceholder/index.js +1 -0
- package/components/InfiniteTreeList/TreeItem/CustomItemWrapper/CustomItemWrapper.d.ts +20 -0
- package/components/InfiniteTreeList/TreeItem/CustomItemWrapper/CustomItemWrapper.js +10 -0
- package/components/InfiniteTreeList/TreeItem/CustomItemWrapper/index.d.ts +1 -0
- package/components/InfiniteTreeList/TreeItem/CustomItemWrapper/index.js +1 -0
- package/components/InfiniteTreeList/TreeItem/ParentSlot/ParentSlot.d.ts +5 -0
- package/components/InfiniteTreeList/TreeItem/ParentSlot/ParentSlot.js +38 -0
- package/components/InfiniteTreeList/TreeItem/ParentSlot/index.d.ts +2 -0
- package/components/InfiniteTreeList/TreeItem/ParentSlot/index.js +2 -0
- package/components/InfiniteTreeList/TreeItem/ParentSlot/styles.d.ts +9 -0
- package/components/InfiniteTreeList/TreeItem/ParentSlot/styles.js +8 -0
- package/components/InfiniteTreeList/TreeItem/ParentSlot/types.d.ts +6 -0
- package/components/InfiniteTreeList/TreeItem/ParentSlot/types.js +1 -0
- package/components/InfiniteTreeList/TreeItem/TreeItem.d.ts +5 -2
- package/components/InfiniteTreeList/TreeItem/TreeItem.js +31 -4
- package/components/InfiniteTreeList/TreeItem/constants.d.ts +3 -0
- package/components/InfiniteTreeList/TreeItem/constants.js +3 -1
- package/components/InfiniteTreeList/TreeItem/styles.d.ts +0 -3
- package/components/InfiniteTreeList/TreeItem/styles.js +23 -8
- package/components/InfiniteTreeList/TreeItem/types.d.ts +4 -9
- package/components/InfiniteTreeList/TreeItem/useLogic/useLogic.d.ts +29 -9
- package/components/InfiniteTreeList/TreeItem/useLogic/useLogic.js +61 -19
- package/components/InfiniteTreeList/constants.d.ts +14 -2
- package/components/InfiniteTreeList/constants.js +14 -2
- package/components/InfiniteTreeList/hooks/index.d.ts +5 -0
- package/components/InfiniteTreeList/hooks/index.js +5 -0
- package/components/InfiniteTreeList/hooks/useChildrenState/index.d.ts +2 -0
- package/components/InfiniteTreeList/hooks/useChildrenState/index.js +2 -0
- package/components/InfiniteTreeList/hooks/useChildrenState/types.d.ts +43 -0
- package/components/InfiniteTreeList/hooks/useChildrenState/types.js +1 -0
- package/components/InfiniteTreeList/hooks/useChildrenState/useChildrenState.d.ts +20 -0
- package/components/InfiniteTreeList/hooks/useChildrenState/useChildrenState.js +115 -0
- package/components/InfiniteTreeList/hooks/useEnterAnimation/index.d.ts +2 -0
- package/components/InfiniteTreeList/hooks/useEnterAnimation/index.js +2 -0
- package/components/InfiniteTreeList/hooks/useEnterAnimation/types.d.ts +29 -0
- package/components/InfiniteTreeList/hooks/useEnterAnimation/types.js +1 -0
- package/components/InfiniteTreeList/hooks/useEnterAnimation/useEnterAnimation.d.ts +6 -0
- package/components/InfiniteTreeList/hooks/useEnterAnimation/useEnterAnimation.js +35 -0
- package/components/InfiniteTreeList/hooks/useExpandNotifier/index.d.ts +1 -0
- package/components/InfiniteTreeList/hooks/useExpandNotifier/index.js +1 -0
- package/components/InfiniteTreeList/hooks/useExpandNotifier/useExpandNotifier.d.ts +8 -0
- package/components/InfiniteTreeList/hooks/useExpandNotifier/useExpandNotifier.js +19 -0
- package/components/InfiniteTreeList/hooks/useFlatTree/index.d.ts +2 -0
- package/components/InfiniteTreeList/hooks/useFlatTree/index.js +2 -0
- package/components/InfiniteTreeList/hooks/useFlatTree/types.d.ts +20 -0
- package/components/InfiniteTreeList/hooks/useFlatTree/types.js +1 -0
- package/components/InfiniteTreeList/hooks/useFlatTree/useFlatTree.d.ts +15 -0
- package/components/InfiniteTreeList/hooks/useFlatTree/useFlatTree.js +88 -0
- package/components/InfiniteTreeList/hooks/useListScroll/index.d.ts +2 -0
- package/components/InfiniteTreeList/hooks/useListScroll/index.js +2 -0
- package/components/InfiniteTreeList/hooks/useListScroll/types.d.ts +25 -0
- package/components/InfiniteTreeList/hooks/useListScroll/types.js +1 -0
- package/components/InfiniteTreeList/hooks/useListScroll/useListScroll.d.ts +29 -0
- package/components/InfiniteTreeList/hooks/useListScroll/useListScroll.js +59 -0
- package/components/InfiniteTreeList/index.d.ts +1 -1
- package/components/InfiniteTreeList/public.d.ts +1 -1
- package/components/InfiniteTreeList/types.d.ts +83 -17
- package/components/InfiniteTreeList/useLogic/useLogic.d.ts +22 -12
- package/components/InfiniteTreeList/useLogic/useLogic.js +66 -71
- package/components/InfiniteTreeList/utils/checkHasSkeletonPlaceholders/checkHasSkeletonPlaceholders.d.ts +5 -0
- package/components/InfiniteTreeList/utils/checkHasSkeletonPlaceholders/checkHasSkeletonPlaceholders.js +6 -0
- package/components/InfiniteTreeList/utils/checkHasSkeletonPlaceholders/index.d.ts +1 -0
- package/components/InfiniteTreeList/utils/checkHasSkeletonPlaceholders/index.js +1 -0
- package/components/InfiniteTreeList/utils/checkIsChildrenPlaceholder/checkIsChildrenPlaceholder.d.ts +5 -0
- package/components/InfiniteTreeList/utils/checkIsChildrenPlaceholder/checkIsChildrenPlaceholder.js +4 -0
- package/components/InfiniteTreeList/utils/checkIsChildrenPlaceholder/index.d.ts +1 -0
- package/components/InfiniteTreeList/utils/checkIsChildrenPlaceholder/index.js +1 -0
- package/components/InfiniteTreeList/utils/checkIsChildrenPlaceholderOf/checkIsChildrenPlaceholderOf.d.ts +5 -0
- package/components/InfiniteTreeList/utils/checkIsChildrenPlaceholderOf/checkIsChildrenPlaceholderOf.js +5 -0
- package/components/InfiniteTreeList/utils/checkIsChildrenPlaceholderOf/index.d.ts +1 -0
- package/components/InfiniteTreeList/utils/checkIsChildrenPlaceholderOf/index.js +1 -0
- package/components/InfiniteTreeList/utils/checkIsDirectChild/checkIsDirectChild.d.ts +6 -0
- package/components/InfiniteTreeList/utils/checkIsDirectChild/checkIsDirectChild.js +6 -0
- package/components/InfiniteTreeList/utils/checkIsDirectChild/index.d.ts +1 -0
- package/components/InfiniteTreeList/utils/checkIsDirectChild/index.js +1 -0
- package/components/InfiniteTreeList/utils/checkIsNoDataChildren/checkIsNoDataChildren.d.ts +12 -0
- package/components/InfiniteTreeList/utils/checkIsNoDataChildren/checkIsNoDataChildren.js +14 -0
- package/components/InfiniteTreeList/utils/checkIsNoDataChildren/index.d.ts +1 -0
- package/components/InfiniteTreeList/utils/checkIsNoDataChildren/index.js +1 -0
- package/components/InfiniteTreeList/utils/checkIsSameChildren/checkIsSameChildren.d.ts +5 -0
- package/components/InfiniteTreeList/utils/checkIsSameChildren/checkIsSameChildren.js +16 -0
- package/components/InfiniteTreeList/utils/checkIsSameChildren/index.d.ts +1 -0
- package/components/InfiniteTreeList/utils/checkIsSameChildren/index.js +1 -0
- package/components/InfiniteTreeList/utils/countDirectChildren/countDirectChildren.d.ts +5 -0
- package/components/InfiniteTreeList/utils/countDirectChildren/countDirectChildren.js +5 -0
- package/components/InfiniteTreeList/utils/countDirectChildren/index.d.ts +1 -0
- package/components/InfiniteTreeList/utils/countDirectChildren/index.js +1 -0
- package/components/InfiniteTreeList/utils/createParentSlots/createParentSlots.d.ts +24 -0
- package/components/InfiniteTreeList/utils/createParentSlots/createParentSlots.js +35 -0
- package/components/InfiniteTreeList/utils/createParentSlots/index.d.ts +1 -0
- package/components/InfiniteTreeList/utils/createParentSlots/index.js +1 -0
- package/components/InfiniteTreeList/utils/createTailRegistry/createTailRegistry.d.ts +21 -0
- package/components/InfiniteTreeList/utils/createTailRegistry/createTailRegistry.js +40 -0
- package/components/InfiniteTreeList/utils/createTailRegistry/index.d.ts +1 -0
- package/components/InfiniteTreeList/utils/createTailRegistry/index.js +1 -0
- package/components/InfiniteTreeList/utils/flattenChildren/flattenChildren.d.ts +5 -0
- package/components/InfiniteTreeList/utils/flattenChildren/flattenChildren.js +5 -0
- package/components/InfiniteTreeList/utils/flattenChildren/index.d.ts +1 -0
- package/components/InfiniteTreeList/utils/flattenChildren/index.js +1 -0
- package/components/InfiniteTreeList/utils/flattenTree/flattenTree.d.ts +6 -0
- package/components/InfiniteTreeList/{useLogic/utils → utils}/flattenTree/flattenTree.js +9 -4
- package/components/InfiniteTreeList/utils/getEnteringChildren/getEnteringChildren.d.ts +17 -0
- package/components/InfiniteTreeList/utils/getEnteringChildren/getEnteringChildren.js +14 -0
- package/components/InfiniteTreeList/utils/getEnteringChildren/index.d.ts +1 -0
- package/components/InfiniteTreeList/utils/getEnteringChildren/index.js +1 -0
- package/components/InfiniteTreeList/utils/getIdsToKeep/getIdsToKeep.d.ts +10 -0
- package/components/InfiniteTreeList/utils/getIdsToKeep/getIdsToKeep.js +27 -0
- package/components/InfiniteTreeList/utils/getIdsToKeep/index.d.ts +1 -0
- package/components/InfiniteTreeList/utils/getIdsToKeep/index.js +1 -0
- package/components/InfiniteTreeList/{useLogic/utils → utils}/getInitialExpandedIds/getInitialExpandedIds.d.ts +4 -2
- package/components/InfiniteTreeList/{useLogic/utils → utils}/getInitialExpandedIds/getInitialExpandedIds.js +5 -4
- package/components/InfiniteTreeList/utils/getNestedItems/getNestedItems.d.ts +6 -0
- package/components/InfiniteTreeList/utils/getNestedItems/getNestedItems.js +18 -0
- package/components/InfiniteTreeList/utils/getNestedItems/index.d.ts +1 -0
- package/components/InfiniteTreeList/utils/getNestedItems/index.js +1 -0
- package/components/InfiniteTreeList/utils/index.d.ts +20 -0
- package/components/InfiniteTreeList/utils/index.js +20 -0
- package/components/InfiniteTreeList/utils/insertChildren/index.d.ts +1 -0
- package/components/InfiniteTreeList/utils/insertChildren/index.js +1 -0
- package/components/InfiniteTreeList/utils/insertChildren/insertChildren.d.ts +5 -0
- package/components/InfiniteTreeList/utils/insertChildren/insertChildren.js +41 -0
- package/components/InfiniteTreeList/utils/removeChildren/index.d.ts +1 -0
- package/components/InfiniteTreeList/utils/removeChildren/index.js +1 -0
- package/components/InfiniteTreeList/utils/removeChildren/removeChildren.d.ts +5 -0
- package/components/InfiniteTreeList/utils/removeChildren/removeChildren.js +12 -0
- package/components/InfiniteTreeList/utils/sortCollapsed/sortCollapsed.d.ts +5 -0
- package/components/InfiniteTreeList/{useLogic/utils → utils}/sortCollapsed/sortCollapsed.js +1 -6
- package/components/InfiniteTreeList/utils/startRemoveAnimation/index.d.ts +1 -0
- package/components/InfiniteTreeList/utils/startRemoveAnimation/index.js +1 -0
- package/components/InfiniteTreeList/utils/startRemoveAnimation/startRemoveAnimation.d.ts +1 -0
- package/components/InfiniteTreeList/utils/startRemoveAnimation/startRemoveAnimation.js +5 -0
- package/components/InfiniteTreeList/utils/syncChildrenPlaceholders/index.d.ts +1 -0
- package/components/InfiniteTreeList/utils/syncChildrenPlaceholders/index.js +1 -0
- package/components/InfiniteTreeList/utils/syncChildrenPlaceholders/syncChildrenPlaceholders.d.ts +11 -0
- package/components/InfiniteTreeList/utils/syncChildrenPlaceholders/syncChildrenPlaceholders.js +99 -0
- package/components/MenuOrganization/NoData/styles.js +1 -1
- package/components/MenuOrganization/OrganizationButton/styles.js +1 -1
- package/components/MenuOrganization/OrganizationItem/styles.js +1 -1
- package/components/MenuOrganization/OrganizationListSkeleton/styles.js +2 -2
- package/components/MenuOrganization/styles.js +4 -4
- package/components/MinimalisticPagination/styles.js +1 -1
- package/components/NavMenu/Item/ItemButton/styles.js +4 -4
- package/components/NewStepper/Step/Description/styles.js +1 -1
- package/components/NewStepper/Step/Label/styles.js +2 -2
- package/components/NewStepper/Step/styles.js +8 -8
- package/components/NewStepper/styles.js +1 -1
- package/components/NotFoundPage/styles.js +4 -4
- package/components/Notification/NotificationContainer/styles.js +8 -8
- package/components/Notification/NotificationStackContainer/styles.js +10 -10
- package/components/Notification/NotificationTemplate/styles.js +3 -3
- package/components/NotificationList/ListItem/styles.js +1 -1
- package/components/NotificationList/SettingsButton/styles.js +1 -1
- package/components/NotificationList/styles.js +4 -4
- package/components/PageAside/MobileAsideButton/styles.js +1 -1
- package/components/PageAside/styles.js +3 -3
- package/components/PageAsideBlock/styles.js +2 -2
- package/components/PageAsideNavigation/PageAsideNavigationItem/styles.js +2 -2
- package/components/PageAsideNavigation/styles.js +3 -3
- package/components/PageContent/PageContentHeader/Description/styles.js +1 -1
- package/components/PageContent/PageContentHeader/PageContentHeaderActions/MobilePageContentHeaderActions/styles.js +3 -3
- package/components/PageContent/PageContentHeader/PageContentHeaderActions/PageContentHeaderActionsSkeleton/styles.js +1 -1
- package/components/PageContent/PageContentHeader/Title/styles.js +1 -1
- package/components/PageContent/PageContentHeader/styles.js +2 -2
- package/components/PageContent/styles.js +4 -4
- package/components/PageHeader/HeaderContent/Description/styles.js +2 -2
- package/components/PageHeader/HeaderContent/styles.js +4 -4
- package/components/PageHeader/MobilePageActions/styles.js +3 -3
- package/components/PageHeader/PageActions/MainActions/styles.js +1 -1
- package/components/PageHeader/PageActions/SecondaryActions/styles.js +2 -2
- package/components/PageHeader/PageActions/SecondaryVisibleActions/styles.js +2 -2
- package/components/PageHeader/PageActions/styles.js +4 -4
- package/components/PageHeader/Title/styles.js +2 -2
- package/components/PageHeader/styles.js +3 -3
- package/components/PageLayout/styles.js +3 -3
- package/components/PageLayoutContainer/styles.js +2 -2
- package/components/PageLayoutFooter/styles.js +1 -1
- package/components/PageLayoutLoader/styles.js +1 -1
- package/components/PageLayoutSection/PageLayoutSectionContainer/styles.js +2 -2
- package/components/PageLayoutSection/styles.js +2 -2
- package/components/PagePinnableAside/styles.js +3 -3
- package/components/Pagination/PaginationItem/styles.js +1 -1
- package/components/PdfViewer/ControlBar/styles.js +1 -1
- package/components/PdfViewer/List/styles.js +1 -1
- package/components/PdfViewer/PdfDocument/styles.js +1 -1
- package/components/PdfViewer/PdfPage/styles.js +1 -1
- package/components/PdfViewer/styles.js +2 -2
- package/components/Profile/MenuList/styles.js +3 -3
- package/components/Profile/ProfileSkeleton/styles.js +1 -1
- package/components/Profile/styles.js +3 -3
- package/components/Radio/styles.js +2 -2
- package/components/RadioCard/styles.js +6 -6
- package/components/RadioField/styles.js +1 -1
- package/components/ScrollToTopButton/styles.js +1 -1
- package/components/Select/styles.js +1 -1
- package/components/SideDialog/styles.js +1 -1
- package/components/SideDialogHeader/styles.js +1 -1
- package/components/StaticCalendar/StaticCalendarButton/styles.js +1 -1
- package/components/StaticCalendar/StaticCalendarGridButton/styles.js +1 -1
- package/components/Stepper/StepIcon/styles.js +1 -1
- package/components/SvgIcon/styles.js +0 -1
- package/components/Switch/styles.js +2 -2
- package/components/Tabs/styles.js +1 -1
- package/components/Tag/styles.js +1 -1
- package/components/ToggleButtonGroup/styles.js +1 -1
- package/components/Tree/MultipleTreeList/TreeItem/styles.js +6 -5
- package/components/Tree/MultipleTreeList/styles.js +7 -8
- package/components/Tree/TreeItem/MobileSlidePanel/MobileSlidePanelContent/styles.js +22 -20
- package/components/Tree/TreeItem/styles.js +19 -19
- package/components/Tree/TreeList/TreeItem/styles.js +4 -5
- package/components/Tree/TreeList/styles.js +7 -8
- package/components/TreeAsyncAutocomplete/OptionsModal/NoData/styles.js +2 -1
- package/components/TreeAsyncAutocomplete/OptionsModal/styles.js +14 -15
- package/components/TreeAutocomplete/OptionsModal/NoData/styles.js +2 -1
- package/components/TreeAutocomplete/OptionsModal/styles.js +7 -8
- package/components/TreeLikeAsyncAutocomplete/OptionsModal/NoData/styles.js +2 -1
- package/components/TreeLikeAsyncAutocomplete/OptionsModal/styles.js +18 -18
- package/components/TreeLikeAutocomplete/OptionsModal/NoData/styles.js +2 -1
- package/components/TreeLikeAutocomplete/OptionsModal/styles.js +9 -9
- package/components/TreeLikeList/TreeItem/styles.js +7 -6
- package/components/TreeLikeList/styles.js +6 -8
- package/components/declaration/mui-material.d.ts +1 -0
- package/components/fileUploading/FileInfo/styles.js +3 -3
- package/components/fileUploading/FileUploader/FIleList/styles.js +1 -1
- package/components/fileUploading/FileUploaderDropzone/DropzoneWrapper/styles.js +1 -1
- package/components/fileUploading/FileUploaderDropzone/HintPlaceholder/styles.js +1 -1
- package/components/fileUploading/FileUploaderDropzone/PlaceholderContainer/styles.js +1 -1
- package/components/fileUploading/FileUploaderFile/styles.js +1 -1
- package/components/fileUploading/PreviewFileUploaderDropZone/HintPlaceholder/styles.js +1 -1
- package/components/fileUploading/PreviewFileUploaderDropZone/PlaceholderWrapper/styles.js +1 -1
- package/components/fileUploading/PreviewFileUploaderFile/FileError/styles.js +2 -2
- package/components/fileUploading/PreviewFileUploaderFile/FilePreview/styles.js +4 -4
- package/components/placeholders/Placeholder/Image/styles.js +1 -1
- package/components/placeholders/Placeholder/styles.js +4 -4
- package/components/theme/baseTheme/baseTheme.js +11 -2
- package/components/theme/breakpoints.d.ts +1 -0
- package/components/theme/breakpoints.js +1 -0
- package/components/theme/components/MuiAlert.js +1 -1
- package/components/theme/components/MuiButton.js +2 -2
- package/components/theme/components/MuiMenuItem.js +1 -1
- package/components/theme/components/MuiTextField.js +4 -4
- package/components/theme/types.d.ts +1 -0
- package/components/theme/types.js +12 -12
- package/components/useViewportType/useViewportType.js +1 -1
- package/hook-form/EditableText/EditingForm/styles.js +4 -4
- package/hook-form/FormFilters/AllFiltersButton/styles.js +2 -2
- package/hook-form/FormFilters/FormFiltersDialog/ResetButton/styles.js +2 -2
- package/hook-form/FormFilters/FormFiltersDialog/styles.js +2 -2
- package/hook-form/FormFilters/FormFiltersSkeleton/styles.js +2 -2
- package/hook-form/FormFilters/styles.js +2 -2
- package/hook-form/FormFiltersModalGroup/styles.js +1 -1
- package/hook-form/FormFiltersSearchField/styles.js +2 -2
- package/hook-form/FormPageFooterContainer/styles.js +1 -1
- package/hook-form/FormPageLayout/FormPageFooter/SecondaryActions/styles.js +3 -3
- package/hook-form/FormPageLayout/FormPageFooter/styles.js +3 -3
- package/hook-form/FormPageLayout/styles.js +1 -1
- package/hook-form/FormPageLayoutBase/FormMobileActions/styles.js +2 -2
- package/hook-form/FormPageLayoutBase/styles.js +5 -5
- package/hook-form/FormQuickFilters/styles.js +2 -2
- package/hook-form/FormWizard/styles.js +3 -3
- package/hook-form/FormWizardPageLayout/FormWizardFooter/styles.js +3 -3
- package/node/components/Accordion/styles.js +4 -4
- package/node/components/Alert/styles.js +2 -2
- package/node/components/Autocomplete/styles.js +1 -1
- package/node/components/Badge/styles.js +1 -1
- package/node/components/Banner/BannerTemplate/styles.js +3 -3
- package/node/components/Button/styles.js +1 -1
- package/node/components/CardGridInfinite/Card/styles.js +1 -1
- package/node/components/CardGridInfinite/CardGridSecondaryAction/CardGridSecondaryActionsSkeleton/styles.js +2 -2
- package/node/components/CardGridInfinite/ErrorMessage/styles.js +1 -1
- package/node/components/CardGridInfinite/List/styles.js +1 -1
- package/node/components/CardGridInfinite/OnTopButton/styles.js +1 -1
- package/node/components/CardGridInfinite/styles.js +1 -1
- package/node/components/Checkbox/styles.js +2 -2
- package/node/components/CheckboxField/styles.js +2 -2
- package/node/components/Chip/styles.js +4 -4
- package/node/components/ConfirmAction/styles.js +3 -3
- package/node/components/ConfirmDialog/styles.js +1 -1
- package/node/components/DashboardAlert/styles.js +2 -2
- package/node/components/DashboardLayout/Container/styles.js +2 -2
- package/node/components/DashboardLayout/DashboardSidebar/styles.js +6 -6
- package/node/components/DashboardLayout/DashboardWrapper/styles.js +1 -1
- package/node/components/DashboardLayout/Header/styles.js +10 -10
- package/node/components/DashboardLayout/Main/styles.js +3 -3
- package/node/components/DashboardLayoutNotificationList/styles.js +1 -1
- package/node/components/DashboardLayoutSkeleton/styles.js +1 -1
- package/node/components/DashboardSidebarButton/styles.js +1 -1
- package/node/components/DashboardSidebarCounter/styles.js +1 -1
- package/node/components/DashboardSidebarPopover/FadePopup/styles.js +1 -1
- package/node/components/DashboardSidebarPopover/SidebarPopoverItem/styles.js +1 -1
- package/node/components/DashboardSidebarPopover/styles.js +2 -2
- package/node/components/DashboardSidebarSkeleton/styles.js +1 -1
- package/node/components/DataGrid/Body/styles.js +1 -1
- package/node/components/DataGrid/Cell/CellInner/styles.js +2 -2
- package/node/components/DataGrid/Cell/styles.js +1 -1
- package/node/components/DataGrid/Head/styles.js +1 -1
- package/node/components/DataGrid/Loader/styles.js +2 -2
- package/node/components/DataGrid/Row/NestedChildren/styles.js +3 -3
- package/node/components/DataGrid/Row/styles.js +8 -8
- package/node/components/DataGrid/RowBase/GroupCell/styles.js +1 -1
- package/node/components/DataGrid/RowBase/styles.js +3 -3
- package/node/components/DataGrid/styles.js +3 -3
- package/node/components/DataGridActionCell/DataGridMainActions/Action/MainIconButton/styles.js +1 -1
- package/node/components/DataGridActionCell/DataGridMainActions/Action/MobileMainButton/styles.js +1 -1
- package/node/components/DataGridActionCell/SecondaryActionsButton/styles.js +1 -1
- package/node/components/DataGridActionCell/styles.js +1 -1
- package/node/components/DataGridCollapsibleRow/styles.js +4 -4
- package/node/components/DataGridInfinite/ErrorMessage/styles.js +1 -1
- package/node/components/DataGridInfinite/styles.js +1 -1
- package/node/components/DataGridPaginationContainer/styles.js +2 -2
- package/node/components/DatePicker/DateCalendar/DateCalendarChevronButton/DateCalendarNextButton/styles.js +2 -2
- package/node/components/DatePicker/DateCalendar/DateCalendarChevronButton/DateCalendarPrevButton/styles.js +2 -2
- package/node/components/DatePicker/DateCalendar/DateCalendarHead/styles.js +2 -2
- package/node/components/DatePicker/DateCalendar/DateCalendarWrapper/styles.js +1 -1
- package/node/components/DatePicker/DatePickerPopover/styles.js +1 -1
- package/node/components/DatePicker/styles.js +1 -1
- package/node/components/DateRangePicker/styles.js +1 -1
- package/node/components/Description/Value/styles.js +2 -2
- package/node/components/Description/styles.js +1 -1
- package/node/components/DescriptionCell/styles.js +2 -2
- package/node/components/DescriptionList/styles.js +3 -3
- package/node/components/DialogActions/styles.js +2 -2
- package/node/components/DialogContent/styles.js +1 -1
- package/node/components/ExpansionPanel/Details/ErrorState/styles.js +1 -1
- package/node/components/ExpansionPanel/Details/LoadingState/styles.js +1 -1
- package/node/components/Fieldset/styles.js +5 -5
- package/node/components/FlowButton/styles.js +1 -1
- package/node/components/GlobalStyles/GlobalStyles.js +1 -1
- package/node/components/HintPopover/styles.js +4 -4
- package/node/components/IconButton/styles.js +1 -1
- package/node/components/InfiniteDataList/EndData/styles.js +1 -1
- package/node/components/InfiniteDataList/ErrorMessage/styles.js +1 -1
- package/node/components/InfiniteDataList/Loader/styles.js +1 -1
- package/node/components/InfiniteDataList/styles.js +1 -1
- package/node/components/InfiniteTreeList/InfiniteTreeList.d.ts +18 -0
- package/node/components/InfiniteTreeList/InfiniteTreeList.js +24 -17
- package/node/components/InfiniteTreeList/InfiniteTreeListActions/InfiniteTreeListActions.d.ts +9 -0
- package/node/components/InfiniteTreeList/InfiniteTreeListActions/InfiniteTreeListActions.js +9 -0
- package/node/components/InfiniteTreeList/InfiniteTreeListActions/types.d.ts +5 -0
- package/node/components/InfiniteTreeList/InfiniteTreeListActions/useLogic/useLogic.js +5 -6
- package/node/components/InfiniteTreeList/InfiniteTreeListContext/InfiniteTreeListContext.d.ts +81 -0
- package/node/components/InfiniteTreeList/InfiniteTreeListContext/InfiniteTreeListContext.js +21 -0
- package/node/components/InfiniteTreeList/InfiniteTreeListContext/InfiniteTreeListContextProvider/InfiniteTreeListContextProvider.d.ts +3 -2
- package/node/components/InfiniteTreeList/InfiniteTreeListContext/InfiniteTreeListContextProvider/InfiniteTreeListContextProvider.js +69 -13
- package/node/components/InfiniteTreeList/InfiniteTreeListItem/ErrorPlaceholder/ErrorPlaceholder.d.ts +6 -0
- package/node/components/InfiniteTreeList/InfiniteTreeListItem/ErrorPlaceholder/ErrorPlaceholder.js +12 -0
- package/node/components/InfiniteTreeList/InfiniteTreeListItem/ErrorPlaceholder/constants.d.ts +1 -0
- package/node/components/InfiniteTreeList/InfiniteTreeListItem/ErrorPlaceholder/constants.js +4 -0
- package/node/components/InfiniteTreeList/InfiniteTreeListItem/ErrorPlaceholder/index.d.ts +1 -0
- package/node/components/InfiniteTreeList/InfiniteTreeListItem/ErrorPlaceholder/index.js +5 -0
- package/node/components/InfiniteTreeList/InfiniteTreeListItem/ErrorPlaceholder/styles.js +11 -0
- package/node/components/InfiniteTreeList/InfiniteTreeListItem/InfiniteTreeListItem.js +28 -6
- package/node/components/InfiniteTreeList/InfiniteTreeListItem/TreeListItemContext/TreeListItemContext.d.ts +19 -0
- package/node/components/InfiniteTreeList/InfiniteTreeListItem/TreeListItemContext/TreeListItemContext.js +4 -0
- package/node/components/InfiniteTreeList/InfiniteTreeListItem/TreeListItemContext/TreeListItemContextProvider/TreeListItemContextProvider.d.ts +4 -0
- package/node/components/InfiniteTreeList/InfiniteTreeListItem/TreeListItemContext/TreeListItemContextProvider/TreeListItemContextProvider.js +13 -8
- package/node/components/InfiniteTreeList/InfiniteTreeListItem/constants.d.ts +6 -0
- package/node/components/InfiniteTreeList/InfiniteTreeListItem/constants.js +10 -0
- package/node/components/InfiniteTreeList/InfiniteTreeListItem/styles.d.ts +4 -4
- package/node/components/InfiniteTreeList/InfiniteTreeListItem/styles.js +29 -6
- package/node/components/InfiniteTreeList/InfiniteTreeListItem/types.d.ts +20 -3
- package/node/components/InfiniteTreeList/InfiniteTreeListItem/useLogic/useLogic.d.ts +7 -1
- package/node/components/InfiniteTreeList/InfiniteTreeListItem/useLogic/useLogic.js +56 -4
- package/node/components/InfiniteTreeList/{EndData → ListFooter/EndData}/EndData.js +1 -1
- package/node/components/InfiniteTreeList/{ErrorMessage → ListFooter/ErrorMessage}/ErrorMessage.js +2 -2
- package/node/components/InfiniteTreeList/ListFooter/ErrorMessage/styles.d.ts +5 -0
- package/node/components/InfiniteTreeList/{ErrorMessage → ListFooter/ErrorMessage}/styles.js +2 -2
- package/node/components/InfiniteTreeList/ListFooter/ListFooter.d.ts +10 -0
- package/node/components/InfiniteTreeList/ListFooter/ListFooter.js +29 -0
- package/node/components/InfiniteTreeList/ListFooter/index.d.ts +2 -0
- package/node/components/InfiniteTreeList/ListFooter/index.js +17 -0
- package/node/components/InfiniteTreeList/{styles.js → ListFooter/styles.js} +1 -1
- package/node/components/InfiniteTreeList/ListFooter/types.d.ts +22 -0
- package/node/components/InfiniteTreeList/ListFooter/types.js +2 -0
- package/node/components/InfiniteTreeList/OnTopButton/OnTopButton.d.ts +8 -2
- package/node/components/InfiniteTreeList/OnTopButton/OnTopButton.js +6 -5
- package/node/components/InfiniteTreeList/OnTopButton/styles.d.ts +4 -0
- package/node/components/InfiniteTreeList/OnTopButton/styles.js +13 -0
- package/node/components/InfiniteTreeList/ParentItems/Item/CustomParentWrapper/CustomParentWrapper.d.ts +23 -0
- package/node/components/InfiniteTreeList/ParentItems/Item/CustomParentWrapper/CustomParentWrapper.js +15 -0
- package/node/components/InfiniteTreeList/ParentItems/Item/CustomParentWrapper/index.d.ts +1 -0
- package/node/components/InfiniteTreeList/ParentItems/Item/CustomParentWrapper/index.js +17 -0
- package/node/components/InfiniteTreeList/ParentItems/Item/Item.d.ts +10 -0
- package/node/components/InfiniteTreeList/ParentItems/Item/Item.js +25 -0
- package/node/components/InfiniteTreeList/ParentItems/Item/index.d.ts +2 -0
- package/node/components/InfiniteTreeList/ParentItems/Item/index.js +18 -0
- package/node/components/InfiniteTreeList/ParentItems/Item/types.d.ts +8 -0
- package/node/components/InfiniteTreeList/ParentItems/Item/types.js +2 -0
- package/node/components/InfiniteTreeList/ParentItems/Item/useLogic/index.d.ts +1 -0
- package/node/components/InfiniteTreeList/ParentItems/Item/useLogic/index.js +17 -0
- package/node/components/InfiniteTreeList/ParentItems/Item/useLogic/useLogic.d.ts +12 -0
- package/node/components/InfiniteTreeList/ParentItems/Item/useLogic/useLogic.js +16 -0
- package/node/components/InfiniteTreeList/ParentItems/ParentItems.d.ts +11 -0
- package/node/components/InfiniteTreeList/ParentItems/ParentItems.js +15 -0
- package/node/components/InfiniteTreeList/ParentItems/index.d.ts +3 -0
- package/node/components/InfiniteTreeList/ParentItems/index.js +19 -0
- package/node/components/InfiniteTreeList/ParentItems/types.d.ts +8 -0
- package/node/components/InfiniteTreeList/ParentItems/types.js +2 -0
- package/node/components/InfiniteTreeList/TreeItem/ChildrenPlaceholder/ChildrenPlaceholder.d.ts +9 -0
- package/node/components/InfiniteTreeList/TreeItem/ChildrenPlaceholder/ChildrenPlaceholder.js +26 -0
- package/node/components/InfiniteTreeList/TreeItem/ChildrenPlaceholder/NoDataRow/NoDataRow.d.ts +1 -0
- package/node/components/InfiniteTreeList/TreeItem/ChildrenPlaceholder/NoDataRow/NoDataRow.js +9 -0
- package/node/components/InfiniteTreeList/TreeItem/ChildrenPlaceholder/NoDataRow/index.d.ts +1 -0
- package/node/components/InfiniteTreeList/TreeItem/ChildrenPlaceholder/NoDataRow/index.js +17 -0
- package/node/components/InfiniteTreeList/TreeItem/ChildrenPlaceholder/index.d.ts +1 -0
- package/node/components/InfiniteTreeList/TreeItem/ChildrenPlaceholder/index.js +17 -0
- package/node/components/InfiniteTreeList/TreeItem/CustomItemWrapper/CustomItemWrapper.d.ts +20 -0
- package/node/components/InfiniteTreeList/TreeItem/CustomItemWrapper/CustomItemWrapper.js +13 -0
- package/node/components/InfiniteTreeList/TreeItem/CustomItemWrapper/index.d.ts +1 -0
- package/node/components/InfiniteTreeList/TreeItem/CustomItemWrapper/index.js +17 -0
- package/node/components/InfiniteTreeList/TreeItem/ParentSlot/ParentSlot.d.ts +5 -0
- package/node/components/InfiniteTreeList/TreeItem/ParentSlot/ParentSlot.js +42 -0
- package/node/components/InfiniteTreeList/TreeItem/ParentSlot/index.d.ts +2 -0
- package/node/components/InfiniteTreeList/TreeItem/ParentSlot/index.js +18 -0
- package/node/components/InfiniteTreeList/TreeItem/ParentSlot/styles.d.ts +9 -0
- package/node/components/InfiniteTreeList/TreeItem/ParentSlot/styles.js +11 -0
- package/node/components/InfiniteTreeList/TreeItem/ParentSlot/types.d.ts +6 -0
- package/node/components/InfiniteTreeList/TreeItem/ParentSlot/types.js +2 -0
- package/node/components/InfiniteTreeList/TreeItem/TreeItem.d.ts +5 -2
- package/node/components/InfiniteTreeList/TreeItem/TreeItem.js +31 -4
- package/node/components/InfiniteTreeList/TreeItem/constants.d.ts +3 -0
- package/node/components/InfiniteTreeList/TreeItem/constants.js +3 -1
- package/node/components/InfiniteTreeList/TreeItem/styles.d.ts +0 -3
- package/node/components/InfiniteTreeList/TreeItem/styles.js +23 -8
- package/node/components/InfiniteTreeList/TreeItem/types.d.ts +4 -9
- package/node/components/InfiniteTreeList/TreeItem/useLogic/useLogic.d.ts +29 -9
- package/node/components/InfiniteTreeList/TreeItem/useLogic/useLogic.js +60 -18
- package/node/components/InfiniteTreeList/constants.d.ts +14 -2
- package/node/components/InfiniteTreeList/constants.js +15 -3
- package/node/components/InfiniteTreeList/hooks/index.d.ts +5 -0
- package/node/components/InfiniteTreeList/hooks/index.js +21 -0
- package/node/components/InfiniteTreeList/hooks/useChildrenState/index.d.ts +2 -0
- package/node/components/InfiniteTreeList/hooks/useChildrenState/index.js +18 -0
- package/node/components/InfiniteTreeList/hooks/useChildrenState/types.d.ts +43 -0
- package/node/components/InfiniteTreeList/hooks/useChildrenState/types.js +2 -0
- package/node/components/InfiniteTreeList/hooks/useChildrenState/useChildrenState.d.ts +20 -0
- package/node/components/InfiniteTreeList/hooks/useChildrenState/useChildrenState.js +119 -0
- package/node/components/InfiniteTreeList/hooks/useEnterAnimation/index.d.ts +2 -0
- package/node/components/InfiniteTreeList/hooks/useEnterAnimation/index.js +18 -0
- package/node/components/InfiniteTreeList/hooks/useEnterAnimation/types.d.ts +29 -0
- package/node/components/InfiniteTreeList/hooks/useEnterAnimation/types.js +2 -0
- package/node/components/InfiniteTreeList/hooks/useEnterAnimation/useEnterAnimation.d.ts +6 -0
- package/node/components/InfiniteTreeList/hooks/useEnterAnimation/useEnterAnimation.js +39 -0
- package/node/components/InfiniteTreeList/hooks/useExpandNotifier/index.d.ts +1 -0
- package/node/components/InfiniteTreeList/hooks/useExpandNotifier/index.js +17 -0
- package/node/components/InfiniteTreeList/hooks/useExpandNotifier/useExpandNotifier.d.ts +8 -0
- package/node/components/InfiniteTreeList/hooks/useExpandNotifier/useExpandNotifier.js +23 -0
- package/node/components/InfiniteTreeList/hooks/useFlatTree/index.d.ts +2 -0
- package/node/components/InfiniteTreeList/hooks/useFlatTree/index.js +18 -0
- package/node/components/InfiniteTreeList/hooks/useFlatTree/types.d.ts +20 -0
- package/node/components/InfiniteTreeList/hooks/useFlatTree/types.js +2 -0
- package/node/components/InfiniteTreeList/hooks/useFlatTree/useFlatTree.d.ts +15 -0
- package/node/components/InfiniteTreeList/hooks/useFlatTree/useFlatTree.js +92 -0
- package/node/components/InfiniteTreeList/hooks/useListScroll/index.d.ts +2 -0
- package/node/components/InfiniteTreeList/hooks/useListScroll/index.js +18 -0
- package/node/components/InfiniteTreeList/hooks/useListScroll/types.d.ts +25 -0
- package/node/components/InfiniteTreeList/hooks/useListScroll/types.js +2 -0
- package/node/components/InfiniteTreeList/hooks/useListScroll/useListScroll.d.ts +29 -0
- package/node/components/InfiniteTreeList/hooks/useListScroll/useListScroll.js +63 -0
- package/node/components/InfiniteTreeList/index.d.ts +1 -1
- package/node/components/InfiniteTreeList/public.d.ts +1 -1
- package/node/components/InfiniteTreeList/types.d.ts +83 -17
- package/node/components/InfiniteTreeList/useLogic/useLogic.d.ts +22 -12
- package/node/components/InfiniteTreeList/useLogic/useLogic.js +64 -69
- package/node/components/InfiniteTreeList/utils/checkHasSkeletonPlaceholders/checkHasSkeletonPlaceholders.d.ts +5 -0
- package/node/components/InfiniteTreeList/utils/checkHasSkeletonPlaceholders/checkHasSkeletonPlaceholders.js +10 -0
- package/node/components/InfiniteTreeList/utils/checkHasSkeletonPlaceholders/index.d.ts +1 -0
- package/node/components/InfiniteTreeList/utils/checkHasSkeletonPlaceholders/index.js +17 -0
- package/node/components/InfiniteTreeList/utils/checkIsChildrenPlaceholder/checkIsChildrenPlaceholder.d.ts +5 -0
- package/node/components/InfiniteTreeList/utils/checkIsChildrenPlaceholder/checkIsChildrenPlaceholder.js +8 -0
- package/node/components/InfiniteTreeList/utils/checkIsChildrenPlaceholder/index.d.ts +1 -0
- package/node/components/InfiniteTreeList/utils/checkIsChildrenPlaceholder/index.js +17 -0
- package/node/components/InfiniteTreeList/utils/checkIsChildrenPlaceholderOf/checkIsChildrenPlaceholderOf.d.ts +5 -0
- package/node/components/InfiniteTreeList/utils/checkIsChildrenPlaceholderOf/checkIsChildrenPlaceholderOf.js +9 -0
- package/node/components/InfiniteTreeList/utils/checkIsChildrenPlaceholderOf/index.d.ts +1 -0
- package/node/components/InfiniteTreeList/utils/checkIsChildrenPlaceholderOf/index.js +17 -0
- package/node/components/InfiniteTreeList/utils/checkIsDirectChild/checkIsDirectChild.d.ts +6 -0
- package/node/components/InfiniteTreeList/utils/checkIsDirectChild/checkIsDirectChild.js +10 -0
- package/node/components/InfiniteTreeList/utils/checkIsDirectChild/index.d.ts +1 -0
- package/node/components/InfiniteTreeList/utils/checkIsDirectChild/index.js +17 -0
- package/node/components/InfiniteTreeList/utils/checkIsNoDataChildren/checkIsNoDataChildren.d.ts +12 -0
- package/node/components/InfiniteTreeList/utils/checkIsNoDataChildren/checkIsNoDataChildren.js +18 -0
- package/node/components/InfiniteTreeList/utils/checkIsNoDataChildren/index.d.ts +1 -0
- package/node/components/InfiniteTreeList/utils/checkIsNoDataChildren/index.js +17 -0
- package/node/components/InfiniteTreeList/utils/checkIsSameChildren/checkIsSameChildren.d.ts +5 -0
- package/node/components/InfiniteTreeList/utils/checkIsSameChildren/checkIsSameChildren.js +20 -0
- package/node/components/InfiniteTreeList/utils/checkIsSameChildren/index.d.ts +1 -0
- package/node/components/InfiniteTreeList/utils/checkIsSameChildren/index.js +17 -0
- package/node/components/InfiniteTreeList/utils/countDirectChildren/countDirectChildren.d.ts +5 -0
- package/node/components/InfiniteTreeList/utils/countDirectChildren/countDirectChildren.js +9 -0
- package/node/components/InfiniteTreeList/utils/countDirectChildren/index.d.ts +1 -0
- package/node/components/InfiniteTreeList/utils/countDirectChildren/index.js +17 -0
- package/node/components/InfiniteTreeList/utils/createParentSlots/createParentSlots.d.ts +24 -0
- package/node/components/InfiniteTreeList/utils/createParentSlots/createParentSlots.js +39 -0
- package/node/components/InfiniteTreeList/utils/createParentSlots/index.d.ts +1 -0
- package/node/components/InfiniteTreeList/utils/createParentSlots/index.js +17 -0
- package/node/components/InfiniteTreeList/utils/createTailRegistry/createTailRegistry.d.ts +21 -0
- package/node/components/InfiniteTreeList/utils/createTailRegistry/createTailRegistry.js +44 -0
- package/node/components/InfiniteTreeList/utils/createTailRegistry/index.d.ts +1 -0
- package/node/components/InfiniteTreeList/utils/createTailRegistry/index.js +5 -0
- package/node/components/InfiniteTreeList/utils/flattenChildren/flattenChildren.d.ts +5 -0
- package/node/components/InfiniteTreeList/utils/flattenChildren/flattenChildren.js +9 -0
- package/node/components/InfiniteTreeList/utils/flattenChildren/index.d.ts +1 -0
- package/node/components/InfiniteTreeList/utils/flattenChildren/index.js +17 -0
- package/node/components/InfiniteTreeList/utils/flattenTree/flattenTree.d.ts +6 -0
- package/node/components/InfiniteTreeList/{useLogic/utils → utils}/flattenTree/flattenTree.js +9 -4
- package/node/components/InfiniteTreeList/utils/getEnteringChildren/getEnteringChildren.d.ts +17 -0
- package/node/components/InfiniteTreeList/utils/getEnteringChildren/getEnteringChildren.js +18 -0
- package/node/components/InfiniteTreeList/utils/getEnteringChildren/index.d.ts +1 -0
- package/node/components/InfiniteTreeList/utils/getEnteringChildren/index.js +17 -0
- package/node/components/InfiniteTreeList/utils/getIdsToKeep/getIdsToKeep.d.ts +10 -0
- package/node/components/InfiniteTreeList/utils/getIdsToKeep/getIdsToKeep.js +31 -0
- package/node/components/InfiniteTreeList/utils/getIdsToKeep/index.d.ts +1 -0
- package/node/components/InfiniteTreeList/utils/getIdsToKeep/index.js +17 -0
- package/node/components/InfiniteTreeList/{useLogic/utils → utils}/getInitialExpandedIds/getInitialExpandedIds.d.ts +4 -2
- package/node/components/InfiniteTreeList/{useLogic/utils → utils}/getInitialExpandedIds/getInitialExpandedIds.js +5 -4
- package/node/components/InfiniteTreeList/utils/getNestedItems/getNestedItems.d.ts +6 -0
- package/node/components/InfiniteTreeList/utils/getNestedItems/getNestedItems.js +22 -0
- package/node/components/InfiniteTreeList/utils/getNestedItems/index.d.ts +1 -0
- package/node/components/InfiniteTreeList/{useLogic/utils/getDescendants → utils/getNestedItems}/index.js +1 -1
- package/node/components/InfiniteTreeList/utils/index.d.ts +20 -0
- package/node/components/InfiniteTreeList/utils/index.js +36 -0
- package/node/components/InfiniteTreeList/utils/insertChildren/index.d.ts +1 -0
- package/node/components/InfiniteTreeList/utils/insertChildren/index.js +17 -0
- package/node/components/InfiniteTreeList/utils/insertChildren/insertChildren.d.ts +5 -0
- package/node/components/InfiniteTreeList/utils/insertChildren/insertChildren.js +45 -0
- package/node/components/InfiniteTreeList/utils/removeChildren/index.d.ts +1 -0
- package/node/components/InfiniteTreeList/utils/removeChildren/index.js +17 -0
- package/node/components/InfiniteTreeList/utils/removeChildren/removeChildren.d.ts +5 -0
- package/node/components/InfiniteTreeList/utils/removeChildren/removeChildren.js +16 -0
- package/node/components/InfiniteTreeList/utils/sortCollapsed/sortCollapsed.d.ts +5 -0
- package/node/components/InfiniteTreeList/{useLogic/utils → utils}/sortCollapsed/sortCollapsed.js +1 -6
- package/node/components/InfiniteTreeList/utils/startRemoveAnimation/index.d.ts +1 -0
- package/node/components/InfiniteTreeList/utils/startRemoveAnimation/index.js +17 -0
- package/node/components/InfiniteTreeList/utils/startRemoveAnimation/startRemoveAnimation.d.ts +1 -0
- package/node/components/InfiniteTreeList/utils/startRemoveAnimation/startRemoveAnimation.js +9 -0
- package/node/components/InfiniteTreeList/utils/syncChildrenPlaceholders/index.d.ts +1 -0
- package/node/components/InfiniteTreeList/utils/syncChildrenPlaceholders/index.js +17 -0
- package/node/components/InfiniteTreeList/utils/syncChildrenPlaceholders/syncChildrenPlaceholders.d.ts +11 -0
- package/node/components/InfiniteTreeList/utils/syncChildrenPlaceholders/syncChildrenPlaceholders.js +104 -0
- package/node/components/MenuOrganization/NoData/styles.js +1 -1
- package/node/components/MenuOrganization/OrganizationButton/styles.js +1 -1
- package/node/components/MenuOrganization/OrganizationItem/styles.js +1 -1
- package/node/components/MenuOrganization/OrganizationListSkeleton/styles.js +2 -2
- package/node/components/MenuOrganization/styles.js +4 -4
- package/node/components/MinimalisticPagination/styles.js +1 -1
- package/node/components/NavMenu/Item/ItemButton/styles.js +4 -4
- package/node/components/NewStepper/Step/Description/styles.js +1 -1
- package/node/components/NewStepper/Step/Label/styles.js +2 -2
- package/node/components/NewStepper/Step/styles.js +8 -8
- package/node/components/NewStepper/styles.js +1 -1
- package/node/components/NotFoundPage/styles.js +4 -4
- package/node/components/Notification/NotificationContainer/styles.js +8 -8
- package/node/components/Notification/NotificationStackContainer/styles.js +10 -10
- package/node/components/Notification/NotificationTemplate/styles.js +3 -3
- package/node/components/NotificationList/ListItem/styles.js +1 -1
- package/node/components/NotificationList/SettingsButton/styles.js +1 -1
- package/node/components/NotificationList/styles.js +4 -4
- package/node/components/PageAside/MobileAsideButton/styles.js +1 -1
- package/node/components/PageAside/styles.js +3 -3
- package/node/components/PageAsideBlock/styles.js +2 -2
- package/node/components/PageAsideNavigation/PageAsideNavigationItem/styles.js +2 -2
- package/node/components/PageAsideNavigation/styles.js +3 -3
- package/node/components/PageContent/PageContentHeader/Description/styles.js +1 -1
- package/node/components/PageContent/PageContentHeader/PageContentHeaderActions/MobilePageContentHeaderActions/styles.js +3 -3
- package/node/components/PageContent/PageContentHeader/PageContentHeaderActions/PageContentHeaderActionsSkeleton/styles.js +1 -1
- package/node/components/PageContent/PageContentHeader/Title/styles.js +1 -1
- package/node/components/PageContent/PageContentHeader/styles.js +2 -2
- package/node/components/PageContent/styles.js +4 -4
- package/node/components/PageHeader/HeaderContent/Description/styles.js +2 -2
- package/node/components/PageHeader/HeaderContent/styles.js +4 -4
- package/node/components/PageHeader/MobilePageActions/styles.js +3 -3
- package/node/components/PageHeader/PageActions/MainActions/styles.js +1 -1
- package/node/components/PageHeader/PageActions/SecondaryActions/styles.js +2 -2
- package/node/components/PageHeader/PageActions/SecondaryVisibleActions/styles.js +2 -2
- package/node/components/PageHeader/PageActions/styles.js +4 -4
- package/node/components/PageHeader/Title/styles.js +2 -2
- package/node/components/PageHeader/styles.js +3 -3
- package/node/components/PageLayout/styles.js +3 -3
- package/node/components/PageLayoutContainer/styles.js +2 -2
- package/node/components/PageLayoutFooter/styles.js +1 -1
- package/node/components/PageLayoutLoader/styles.js +1 -1
- package/node/components/PageLayoutSection/PageLayoutSectionContainer/styles.js +2 -2
- package/node/components/PageLayoutSection/styles.js +2 -2
- package/node/components/PagePinnableAside/styles.js +3 -3
- package/node/components/Pagination/PaginationItem/styles.js +1 -1
- package/node/components/PdfViewer/ControlBar/styles.js +1 -1
- package/node/components/PdfViewer/List/styles.js +1 -1
- package/node/components/PdfViewer/PdfDocument/styles.js +1 -1
- package/node/components/PdfViewer/PdfPage/styles.js +1 -1
- package/node/components/PdfViewer/styles.js +2 -2
- package/node/components/Profile/MenuList/styles.js +3 -3
- package/node/components/Profile/ProfileSkeleton/styles.js +1 -1
- package/node/components/Profile/styles.js +3 -3
- package/node/components/Radio/styles.js +2 -2
- package/node/components/RadioCard/styles.js +6 -6
- package/node/components/RadioField/styles.js +1 -1
- package/node/components/ScrollToTopButton/styles.js +1 -1
- package/node/components/Select/styles.js +1 -1
- package/node/components/SideDialog/styles.js +1 -1
- package/node/components/SideDialogHeader/styles.js +1 -1
- package/node/components/StaticCalendar/StaticCalendarButton/styles.js +1 -1
- package/node/components/StaticCalendar/StaticCalendarGridButton/styles.js +1 -1
- package/node/components/Stepper/StepIcon/styles.js +1 -1
- package/node/components/SvgIcon/styles.js +0 -1
- package/node/components/Switch/styles.js +2 -2
- package/node/components/Tabs/styles.js +1 -1
- package/node/components/Tag/styles.js +1 -1
- package/node/components/ToggleButtonGroup/styles.js +1 -1
- package/node/components/Tree/MultipleTreeList/TreeItem/styles.js +6 -5
- package/node/components/Tree/MultipleTreeList/styles.js +7 -8
- package/node/components/Tree/TreeItem/MobileSlidePanel/MobileSlidePanelContent/styles.js +22 -20
- package/node/components/Tree/TreeItem/styles.js +19 -19
- package/node/components/Tree/TreeList/TreeItem/styles.js +4 -5
- package/node/components/Tree/TreeList/styles.js +7 -8
- package/node/components/TreeAsyncAutocomplete/OptionsModal/NoData/styles.js +2 -1
- package/node/components/TreeAsyncAutocomplete/OptionsModal/styles.js +14 -15
- package/node/components/TreeAutocomplete/OptionsModal/NoData/styles.js +2 -1
- package/node/components/TreeAutocomplete/OptionsModal/styles.js +7 -8
- package/node/components/TreeLikeAsyncAutocomplete/OptionsModal/NoData/styles.js +2 -1
- package/node/components/TreeLikeAsyncAutocomplete/OptionsModal/styles.js +18 -18
- package/node/components/TreeLikeAutocomplete/OptionsModal/NoData/styles.js +2 -1
- package/node/components/TreeLikeAutocomplete/OptionsModal/styles.js +9 -9
- package/node/components/TreeLikeList/TreeItem/styles.js +7 -6
- package/node/components/TreeLikeList/styles.js +6 -8
- package/node/components/fileUploading/FileInfo/styles.js +3 -3
- package/node/components/fileUploading/FileUploader/FIleList/styles.js +1 -1
- package/node/components/fileUploading/FileUploaderDropzone/DropzoneWrapper/styles.js +1 -1
- package/node/components/fileUploading/FileUploaderDropzone/HintPlaceholder/styles.js +1 -1
- package/node/components/fileUploading/FileUploaderDropzone/PlaceholderContainer/styles.js +1 -1
- package/node/components/fileUploading/FileUploaderFile/styles.js +1 -1
- package/node/components/fileUploading/PreviewFileUploaderDropZone/HintPlaceholder/styles.js +1 -1
- package/node/components/fileUploading/PreviewFileUploaderDropZone/PlaceholderWrapper/styles.js +1 -1
- package/node/components/fileUploading/PreviewFileUploaderFile/FileError/styles.js +2 -2
- package/node/components/fileUploading/PreviewFileUploaderFile/FilePreview/styles.js +4 -4
- package/node/components/placeholders/Placeholder/Image/styles.js +1 -1
- package/node/components/placeholders/Placeholder/styles.js +4 -4
- package/node/components/theme/baseTheme/baseTheme.js +11 -2
- package/node/components/theme/breakpoints.d.ts +1 -0
- package/node/components/theme/breakpoints.js +1 -0
- package/node/components/theme/components/MuiAlert.js +1 -1
- package/node/components/theme/components/MuiButton.js +2 -2
- package/node/components/theme/components/MuiMenuItem.js +1 -1
- package/node/components/theme/components/MuiTextField.js +4 -4
- package/node/components/theme/types.d.ts +1 -0
- package/node/components/theme/types.js +12 -12
- package/node/components/useViewportType/useViewportType.js +1 -1
- package/node/hook-form/EditableText/EditingForm/styles.js +4 -4
- package/node/hook-form/FormFilters/AllFiltersButton/styles.js +2 -2
- package/node/hook-form/FormFilters/FormFiltersDialog/ResetButton/styles.js +2 -2
- package/node/hook-form/FormFilters/FormFiltersDialog/styles.js +2 -2
- package/node/hook-form/FormFilters/FormFiltersSkeleton/styles.js +2 -2
- package/node/hook-form/FormFilters/styles.js +2 -2
- package/node/hook-form/FormFiltersModalGroup/styles.js +1 -1
- package/node/hook-form/FormFiltersSearchField/styles.js +2 -2
- package/node/hook-form/FormPageFooterContainer/styles.js +1 -1
- package/node/hook-form/FormPageLayout/FormPageFooter/SecondaryActions/styles.js +3 -3
- package/node/hook-form/FormPageLayout/FormPageFooter/styles.js +3 -3
- package/node/hook-form/FormPageLayout/styles.js +1 -1
- package/node/hook-form/FormPageLayoutBase/FormMobileActions/styles.js +2 -2
- package/node/hook-form/FormPageLayoutBase/styles.js +5 -5
- package/node/hook-form/FormQuickFilters/styles.js +2 -2
- package/node/hook-form/FormWizard/styles.js +3 -3
- package/node/hook-form/FormWizardPageLayout/FormWizardFooter/styles.js +3 -3
- package/package.json +1 -1
- package/components/InfiniteTreeList/useLogic/utils/flattenTree/flattenTree.d.ts +0 -5
- package/components/InfiniteTreeList/useLogic/utils/getDescendants/getDescendants.d.ts +0 -10
- package/components/InfiniteTreeList/useLogic/utils/getDescendants/getDescendants.js +0 -22
- package/components/InfiniteTreeList/useLogic/utils/getDescendants/index.d.ts +0 -1
- package/components/InfiniteTreeList/useLogic/utils/getDescendants/index.js +0 -1
- package/components/InfiniteTreeList/useLogic/utils/index.d.ts +0 -4
- package/components/InfiniteTreeList/useLogic/utils/index.js +0 -4
- package/components/InfiniteTreeList/useLogic/utils/sortCollapsed/sortCollapsed.d.ts +0 -10
- package/node/components/InfiniteTreeList/useLogic/utils/flattenTree/flattenTree.d.ts +0 -5
- package/node/components/InfiniteTreeList/useLogic/utils/getDescendants/getDescendants.d.ts +0 -10
- package/node/components/InfiniteTreeList/useLogic/utils/getDescendants/getDescendants.js +0 -26
- package/node/components/InfiniteTreeList/useLogic/utils/getDescendants/index.d.ts +0 -1
- package/node/components/InfiniteTreeList/useLogic/utils/index.d.ts +0 -4
- package/node/components/InfiniteTreeList/useLogic/utils/index.js +0 -20
- package/node/components/InfiniteTreeList/useLogic/utils/sortCollapsed/sortCollapsed.d.ts +0 -10
- /package/components/InfiniteTreeList/{EndData → ListFooter/EndData}/EndData.d.ts +0 -0
- /package/components/InfiniteTreeList/{EndData → ListFooter/EndData}/constants.d.ts +0 -0
- /package/components/InfiniteTreeList/{EndData → ListFooter/EndData}/constants.js +0 -0
- /package/components/InfiniteTreeList/{EndData → ListFooter/EndData}/index.d.ts +0 -0
- /package/components/InfiniteTreeList/{EndData → ListFooter/EndData}/index.js +0 -0
- /package/components/InfiniteTreeList/{ErrorMessage → ListFooter/ErrorMessage}/ErrorMessage.d.ts +0 -0
- /package/components/InfiniteTreeList/{ErrorMessage → ListFooter/ErrorMessage}/constants.d.ts +0 -0
- /package/components/InfiniteTreeList/{ErrorMessage → ListFooter/ErrorMessage}/constants.js +0 -0
- /package/components/InfiniteTreeList/{ErrorMessage → ListFooter/ErrorMessage}/index.d.ts +0 -0
- /package/components/InfiniteTreeList/{ErrorMessage → ListFooter/ErrorMessage}/index.js +0 -0
- /package/components/InfiniteTreeList/{useLogic/utils → utils}/flattenTree/index.d.ts +0 -0
- /package/components/InfiniteTreeList/{useLogic/utils → utils}/flattenTree/index.js +0 -0
- /package/components/InfiniteTreeList/{useLogic/utils → utils}/getInitialExpandedIds/index.d.ts +0 -0
- /package/components/InfiniteTreeList/{useLogic/utils → utils}/getInitialExpandedIds/index.js +0 -0
- /package/components/InfiniteTreeList/{useLogic/utils → utils}/sortCollapsed/index.d.ts +0 -0
- /package/components/InfiniteTreeList/{useLogic/utils → utils}/sortCollapsed/index.js +0 -0
- /package/node/components/InfiniteTreeList/{ErrorMessage → InfiniteTreeListItem/ErrorPlaceholder}/styles.d.ts +0 -0
- /package/node/components/InfiniteTreeList/{EndData → ListFooter/EndData}/EndData.d.ts +0 -0
- /package/node/components/InfiniteTreeList/{EndData → ListFooter/EndData}/constants.d.ts +0 -0
- /package/node/components/InfiniteTreeList/{EndData → ListFooter/EndData}/constants.js +0 -0
- /package/node/components/InfiniteTreeList/{EndData → ListFooter/EndData}/index.d.ts +0 -0
- /package/node/components/InfiniteTreeList/{EndData → ListFooter/EndData}/index.js +0 -0
- /package/node/components/InfiniteTreeList/{ErrorMessage → ListFooter/ErrorMessage}/ErrorMessage.d.ts +0 -0
- /package/node/components/InfiniteTreeList/{ErrorMessage → ListFooter/ErrorMessage}/constants.d.ts +0 -0
- /package/node/components/InfiniteTreeList/{ErrorMessage → ListFooter/ErrorMessage}/constants.js +0 -0
- /package/node/components/InfiniteTreeList/{ErrorMessage → ListFooter/ErrorMessage}/index.d.ts +0 -0
- /package/node/components/InfiniteTreeList/{ErrorMessage → ListFooter/ErrorMessage}/index.js +0 -0
- /package/node/components/InfiniteTreeList/{styles.d.ts → ListFooter/styles.d.ts} +0 -0
- /package/node/components/InfiniteTreeList/{useLogic/utils → utils}/flattenTree/index.d.ts +0 -0
- /package/node/components/InfiniteTreeList/{useLogic/utils → utils}/flattenTree/index.js +0 -0
- /package/node/components/InfiniteTreeList/{useLogic/utils → utils}/getInitialExpandedIds/index.d.ts +0 -0
- /package/node/components/InfiniteTreeList/{useLogic/utils → utils}/getInitialExpandedIds/index.js +0 -0
- /package/node/components/InfiniteTreeList/{useLogic/utils → utils}/sortCollapsed/index.d.ts +0 -0
- /package/node/components/InfiniteTreeList/{useLogic/utils → utils}/sortCollapsed/index.js +0 -0
|
@@ -0,0 +1,92 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.useFlatTree = void 0;
|
|
4
|
+
const react_1 = require("react");
|
|
5
|
+
const hooks_1 = require("../../../theme/hooks");
|
|
6
|
+
const useSet_1 = require("../../../useSet");
|
|
7
|
+
const utils_1 = require("../../utils");
|
|
8
|
+
/**
|
|
9
|
+
* Управляет плоским списком строк и набором раскрытых узлов
|
|
10
|
+
*/
|
|
11
|
+
const useFlatTree = ({ items, initialExpandedLevel, enterAnimation, onCollapse, }) => {
|
|
12
|
+
const theme = (0, hooks_1.useTheme)();
|
|
13
|
+
const [expandedIds, { add: addExpandedId, remove: removeExpandedId }] = (0, useSet_1.useSet)(new Set());
|
|
14
|
+
const [flatList, setFlatList] = (0, react_1.useState)(() => (0, utils_1.flattenTree)(items, new Set()));
|
|
15
|
+
const expandedIdsRef = (0, react_1.useRef)(expandedIds);
|
|
16
|
+
const flatListRef = (0, react_1.useRef)(flatList);
|
|
17
|
+
// Синхронизация после коммита: запись в ref во время рендера — side effect,
|
|
18
|
+
// отброшенный рендер оставил бы в ref значение из дерева, которое
|
|
19
|
+
// не попало в коммит.
|
|
20
|
+
// Эффект объявлен первым, поэтому эффекты ниже по списку хуков читают из ref
|
|
21
|
+
// актуальные значения
|
|
22
|
+
(0, react_1.useEffect)(() => {
|
|
23
|
+
expandedIdsRef.current = expandedIds;
|
|
24
|
+
flatListRef.current = flatList;
|
|
25
|
+
});
|
|
26
|
+
const collapseTimersRef = (0, react_1.useRef)([]);
|
|
27
|
+
(0, react_1.useEffect)(() => () => {
|
|
28
|
+
collapseTimersRef.current.forEach(clearTimeout);
|
|
29
|
+
}, []);
|
|
30
|
+
(0, react_1.useEffect)(() => {
|
|
31
|
+
const next = (0, utils_1.getInitialExpandedIds)(expandedIdsRef.current, items, initialExpandedLevel);
|
|
32
|
+
next.forEach(addExpandedId);
|
|
33
|
+
expandedIdsRef.current = next;
|
|
34
|
+
setFlatList((0, utils_1.flattenTree)(items, next));
|
|
35
|
+
}, [items]);
|
|
36
|
+
const insertChildren = (0, react_1.useCallback)((parentId, childrenData) => {
|
|
37
|
+
setFlatList((prev) => (0, utils_1.insertChildren)(prev, parentId, childrenData, expandedIdsRef.current));
|
|
38
|
+
}, []);
|
|
39
|
+
const syncChildrenPlaceholders = (0, react_1.useCallback)((parentId, isChildrenLoading, skeletonCount, isChildrenError, isChildrenNoData) => {
|
|
40
|
+
setFlatList((prev) => (0, utils_1.syncChildrenPlaceholders)(prev, parentId, isChildrenLoading, skeletonCount, isChildrenError, isChildrenNoData));
|
|
41
|
+
}, []);
|
|
42
|
+
const expandNode = (0, react_1.useCallback)((itemId) => {
|
|
43
|
+
const staticChildren = flatListRef.current.find((item) => item.id === itemId)?.children;
|
|
44
|
+
enterAnimation.schedule(staticChildren?.map((child) => child.id) ?? []);
|
|
45
|
+
addExpandedId(itemId);
|
|
46
|
+
expandedIdsRef.current = new Set(expandedIdsRef.current).add(itemId);
|
|
47
|
+
setFlatList((prev) => {
|
|
48
|
+
const withExpanded = prev.map((item) => item.id === itemId
|
|
49
|
+
? { ...item, meta: { ...item.meta, isExpanded: true } }
|
|
50
|
+
: item);
|
|
51
|
+
if (!staticChildren?.length) {
|
|
52
|
+
return withExpanded;
|
|
53
|
+
}
|
|
54
|
+
return (0, utils_1.insertChildren)(withExpanded, itemId, staticChildren, expandedIdsRef.current);
|
|
55
|
+
});
|
|
56
|
+
}, [addExpandedId, enterAnimation]);
|
|
57
|
+
const collapseNode = (0, react_1.useCallback)((itemId) => {
|
|
58
|
+
const nestedItems = (0, utils_1.sortCollapsed)((0, utils_1.getNestedItems)(flatListRef.current, itemId));
|
|
59
|
+
nestedItems.forEach(({ meta }) => (0, utils_1.startRemoveAnimation)(meta.nodeId));
|
|
60
|
+
// Ветка уходит из данных только после анимации закрытия
|
|
61
|
+
const timerId = setTimeout(() => {
|
|
62
|
+
collapseTimersRef.current = collapseTimersRef.current.filter((id) => id !== timerId);
|
|
63
|
+
const collapsedIds = [itemId, ...nestedItems.map(({ id }) => id)];
|
|
64
|
+
const nextExpanded = new Set(expandedIdsRef.current);
|
|
65
|
+
collapsedIds.forEach((collapsedId) => {
|
|
66
|
+
removeExpandedId(collapsedId);
|
|
67
|
+
nextExpanded.delete(collapsedId);
|
|
68
|
+
});
|
|
69
|
+
expandedIdsRef.current = nextExpanded;
|
|
70
|
+
onCollapse(collapsedIds);
|
|
71
|
+
setFlatList((prev) => (0, utils_1.removeChildren)(prev, itemId));
|
|
72
|
+
}, theme.transitions.duration.shorter);
|
|
73
|
+
collapseTimersRef.current.push(timerId);
|
|
74
|
+
}, [onCollapse, removeExpandedId, theme]);
|
|
75
|
+
const onToggle = (0, react_1.useCallback)(({ id: itemId }) => {
|
|
76
|
+
if (expandedIdsRef.current.has(itemId)) {
|
|
77
|
+
collapseNode(itemId);
|
|
78
|
+
return;
|
|
79
|
+
}
|
|
80
|
+
expandNode(itemId);
|
|
81
|
+
}, [collapseNode, expandNode]);
|
|
82
|
+
return {
|
|
83
|
+
flatList,
|
|
84
|
+
flatListRef,
|
|
85
|
+
expandedIds,
|
|
86
|
+
expandedIdsRef,
|
|
87
|
+
insertChildren,
|
|
88
|
+
syncChildrenPlaceholders,
|
|
89
|
+
onToggle,
|
|
90
|
+
};
|
|
91
|
+
};
|
|
92
|
+
exports.useFlatTree = useFlatTree;
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
|
+
if (k2 === undefined) k2 = k;
|
|
4
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
5
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
6
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
7
|
+
}
|
|
8
|
+
Object.defineProperty(o, k2, desc);
|
|
9
|
+
}) : (function(o, m, k, k2) {
|
|
10
|
+
if (k2 === undefined) k2 = k;
|
|
11
|
+
o[k2] = m[k];
|
|
12
|
+
}));
|
|
13
|
+
var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
14
|
+
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
15
|
+
};
|
|
16
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
|
+
__exportStar(require("./types"), exports);
|
|
18
|
+
__exportStar(require("./useListScroll"), exports);
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
import type { RefObject } from 'react';
|
|
2
|
+
import type { FlattenTree, InfiniteTreeListData } from '../../types';
|
|
3
|
+
import type { EnterAnimationResult } from '../useEnterAnimation';
|
|
4
|
+
export type UseListScrollParams<TData extends InfiniteTreeListData<TData>> = {
|
|
5
|
+
/**
|
|
6
|
+
* Ref на контейнер, в котором должен быть скролл
|
|
7
|
+
*/
|
|
8
|
+
scrollRef: RefObject<HTMLElement | null>;
|
|
9
|
+
/**
|
|
10
|
+
* Флаг достижения конца списка
|
|
11
|
+
*/
|
|
12
|
+
isEndReached?: boolean;
|
|
13
|
+
/**
|
|
14
|
+
* Обработчик подгрузки данных
|
|
15
|
+
*/
|
|
16
|
+
onLoadMore?: () => void;
|
|
17
|
+
/**
|
|
18
|
+
* Плоский список: реестр хвостов ищет в нём позицию строки
|
|
19
|
+
*/
|
|
20
|
+
flatListRef: RefObject<FlattenTree<TData>[]>;
|
|
21
|
+
/**
|
|
22
|
+
* Контроллер enter-анимации: скролл снимает метки со строк
|
|
23
|
+
*/
|
|
24
|
+
enterAnimation: EnterAnimationResult;
|
|
25
|
+
};
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
import type { ListRange, VirtuosoHandle } from 'react-virtuoso';
|
|
3
|
+
import type { InfiniteTreeListData } from '../../types';
|
|
4
|
+
import { type TailRegistry } from '../../utils';
|
|
5
|
+
import type { UseListScrollParams } from './types';
|
|
6
|
+
/**
|
|
7
|
+
* Скролл-обвязка списка: props для `Virtuoso`, кнопка «наверх» и реестр хвостов
|
|
8
|
+
* вложенных веток. Хвосты регистрируют сами строки, хук создаёт реестр и на
|
|
9
|
+
* смене видимого диапазона проверяет, попал ли хвост в кадр
|
|
10
|
+
*/
|
|
11
|
+
export declare const useListScroll: <TData extends InfiniteTreeListData<TData>>({ scrollRef, isEndReached, onLoadMore, flatListRef, enterAnimation, }: UseListScrollParams<TData>) => {
|
|
12
|
+
scrollParent: HTMLElement | null;
|
|
13
|
+
tailRegistry: TailRegistry;
|
|
14
|
+
isEndReachedWithScroll: boolean | undefined;
|
|
15
|
+
virtuosoProps: {
|
|
16
|
+
id: string;
|
|
17
|
+
ref: import("react").RefObject<VirtuosoHandle | null>;
|
|
18
|
+
overscan: number;
|
|
19
|
+
rangeChanged: (range: ListRange) => void;
|
|
20
|
+
endReached: () => void;
|
|
21
|
+
totalListHeightChanged: () => void;
|
|
22
|
+
isScrolling: (isScrolling: boolean) => void;
|
|
23
|
+
};
|
|
24
|
+
onTopButtonProps: {
|
|
25
|
+
buttonRef: import("react").RefObject<HTMLButtonElement | null>;
|
|
26
|
+
handleScrollToTop: () => void;
|
|
27
|
+
scrollRef: import("react").RefObject<HTMLElement | null>;
|
|
28
|
+
};
|
|
29
|
+
};
|
|
@@ -0,0 +1,63 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.useListScroll = void 0;
|
|
4
|
+
const react_1 = require("react");
|
|
5
|
+
const useScrollManagement_1 = require("../../../useScrollManagement");
|
|
6
|
+
const constants_1 = require("../../constants");
|
|
7
|
+
const utils_1 = require("../../utils");
|
|
8
|
+
/**
|
|
9
|
+
* Скролл-обвязка списка: props для `Virtuoso`, кнопка «наверх» и реестр хвостов
|
|
10
|
+
* вложенных веток. Хвосты регистрируют сами строки, хук создаёт реестр и на
|
|
11
|
+
* смене видимого диапазона проверяет, попал ли хвост в кадр
|
|
12
|
+
*/
|
|
13
|
+
const useListScroll = ({ scrollRef, isEndReached, onLoadMore, flatListRef, enterAnimation, }) => {
|
|
14
|
+
const virtuosoRef = (0, react_1.useRef)(null);
|
|
15
|
+
const scrollToTopButtonRef = (0, react_1.useRef)(null);
|
|
16
|
+
const tailRegistryRef = (0, react_1.useRef)(null);
|
|
17
|
+
if (!tailRegistryRef.current) {
|
|
18
|
+
tailRegistryRef.current = (0, utils_1.createTailRegistry)();
|
|
19
|
+
}
|
|
20
|
+
const tailRegistry = tailRegistryRef.current;
|
|
21
|
+
const { scrollParent, recalculateVerticalScroll, handleEndReach, isEndReachedWithScroll, } = (0, useScrollManagement_1.useScrollManagement)({
|
|
22
|
+
scrollRef,
|
|
23
|
+
isEndReached,
|
|
24
|
+
onLoadMore,
|
|
25
|
+
virtuosoId: constants_1.VIRTUOSO_CONTAINER_ID,
|
|
26
|
+
});
|
|
27
|
+
// Скролл виртуализации монтирует строки, которые появлением не считаются
|
|
28
|
+
const handleScrollingChange = (0, react_1.useCallback)((isScrolling) => {
|
|
29
|
+
if (isScrolling) {
|
|
30
|
+
enterAnimation.reset();
|
|
31
|
+
}
|
|
32
|
+
}, [enterAnimation]);
|
|
33
|
+
const handleRangeChanged = (0, react_1.useCallback)((range) => {
|
|
34
|
+
scrollToTopButtonRef.current?.classList.toggle(constants_1.infiniteTreeListClassnames.visibleScrollToTopButton, range.startIndex > 2);
|
|
35
|
+
tailRegistry.checkRange(range.endIndex, (itemId) => flatListRef.current.findIndex((item) => item.id === itemId));
|
|
36
|
+
}, [flatListRef, tailRegistry]);
|
|
37
|
+
const handleScrollToTop = (0, react_1.useCallback)(() => {
|
|
38
|
+
if (scrollRef.current) {
|
|
39
|
+
scrollRef.current.style.scrollBehavior = 'auto';
|
|
40
|
+
}
|
|
41
|
+
virtuosoRef.current?.scrollToIndex(0);
|
|
42
|
+
}, [scrollRef]);
|
|
43
|
+
return {
|
|
44
|
+
scrollParent,
|
|
45
|
+
tailRegistry,
|
|
46
|
+
isEndReachedWithScroll,
|
|
47
|
+
virtuosoProps: {
|
|
48
|
+
id: constants_1.VIRTUOSO_CONTAINER_ID,
|
|
49
|
+
ref: virtuosoRef,
|
|
50
|
+
overscan: constants_1.OVERSCAN,
|
|
51
|
+
rangeChanged: handleRangeChanged,
|
|
52
|
+
endReached: handleEndReach,
|
|
53
|
+
totalListHeightChanged: recalculateVerticalScroll,
|
|
54
|
+
isScrolling: handleScrollingChange,
|
|
55
|
+
},
|
|
56
|
+
onTopButtonProps: {
|
|
57
|
+
buttonRef: scrollToTopButtonRef,
|
|
58
|
+
handleScrollToTop,
|
|
59
|
+
scrollRef,
|
|
60
|
+
},
|
|
61
|
+
};
|
|
62
|
+
};
|
|
63
|
+
exports.useListScroll = useListScroll;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
export { InfiniteTreeList } from './InfiniteTreeList';
|
|
2
|
-
export type { InfiniteTreeListProps } from './types';
|
|
2
|
+
export type { InfiniteTreeChildrenPagination, InfiniteTreeItemMeta, InfiniteTreeListProps, } from './types';
|
|
3
3
|
export { InfiniteTreeListItem, type InfiniteTreeListItemProps, } from './InfiniteTreeListItem';
|
|
4
4
|
export { type InfiniteTreeListActionProps, InfiniteTreeListActions, } from './InfiniteTreeListActions';
|
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
export { InfiniteTreeList } from './InfiniteTreeList';
|
|
2
2
|
export { type InfiniteTreeListActionProps, InfiniteTreeListActions, } from './InfiniteTreeListActions';
|
|
3
3
|
export { InfiniteTreeListItem, type InfiniteTreeListItemProps, } from './InfiniteTreeListItem';
|
|
4
|
-
export type { InfiniteTreeListProps } from './types';
|
|
4
|
+
export type { InfiniteTreeChildrenPagination, InfiniteTreeItemMeta, InfiniteTreeListProps, } from './types';
|
|
@@ -1,34 +1,56 @@
|
|
|
1
1
|
import type { ReactNode, RefObject } from 'react';
|
|
2
|
-
/**
|
|
3
|
-
* Базовый тип элемента дерева для InfiniteTreeList
|
|
4
|
-
*/
|
|
5
2
|
export type InfiniteTreeListDataBase = {
|
|
6
3
|
/**
|
|
7
4
|
* Уникальный идентификатор элемента
|
|
8
5
|
*/
|
|
9
6
|
id: string;
|
|
10
7
|
/**
|
|
11
|
-
*
|
|
8
|
+
* Дочерние элементы узла подгружаются отдельно: список раскрывает такой узел,
|
|
9
|
+
* показывает skeleton-строки и ждёт их из props строки (`childItems`).
|
|
10
|
+
*
|
|
11
|
+
* Статическое дерево описывается полем `children` и флага не требует
|
|
12
|
+
*/
|
|
13
|
+
hasChildren?: boolean;
|
|
14
|
+
/**
|
|
15
|
+
* Дополнительные поля
|
|
12
16
|
*/
|
|
13
17
|
[key: string]: unknown;
|
|
14
18
|
};
|
|
15
|
-
/**
|
|
16
|
-
* Тип элемента дерева с возможными дочерними элементами
|
|
17
|
-
*/
|
|
18
19
|
export type InfiniteTreeListData<TData extends InfiniteTreeListData<TData> = InfiniteTreeListDataBase> = InfiniteTreeListDataBase & {
|
|
19
20
|
children?: TData[];
|
|
20
21
|
};
|
|
22
|
+
/**
|
|
23
|
+
* Состояние пагинации дочерних элементов узла
|
|
24
|
+
*/
|
|
25
|
+
export type InfiniteTreeChildrenPagination<TData extends InfiniteTreeListData<TData> = InfiniteTreeListDataBase> = {
|
|
26
|
+
/**
|
|
27
|
+
* Загруженные дочерние элементы узла
|
|
28
|
+
*/
|
|
29
|
+
data: TData[];
|
|
30
|
+
/**
|
|
31
|
+
* Дочерние элементы загружаются
|
|
32
|
+
*/
|
|
33
|
+
isLoading?: boolean;
|
|
34
|
+
/**
|
|
35
|
+
* Загрузка дочерних элементов завершилась ошибкой
|
|
36
|
+
*/
|
|
37
|
+
isError?: boolean;
|
|
38
|
+
/**
|
|
39
|
+
* Все дочерние элементы узла загружены
|
|
40
|
+
*/
|
|
41
|
+
isEndReached?: boolean;
|
|
42
|
+
};
|
|
21
43
|
export type InfiniteTreeListProps<TData extends InfiniteTreeListData<TData> = InfiniteTreeListDataBase> = {
|
|
22
44
|
/**
|
|
23
45
|
* Список элементов дерева
|
|
24
46
|
*/
|
|
25
47
|
items: TData[];
|
|
26
48
|
/**
|
|
27
|
-
*
|
|
49
|
+
* Список в состоянии загрузки
|
|
28
50
|
*/
|
|
29
51
|
isLoading?: boolean;
|
|
30
52
|
/**
|
|
31
|
-
*
|
|
53
|
+
* Список в состоянии ошибки
|
|
32
54
|
*/
|
|
33
55
|
isError?: boolean;
|
|
34
56
|
/**
|
|
@@ -48,11 +70,11 @@ export type InfiniteTreeListProps<TData extends InfiniteTreeListData<TData> = In
|
|
|
48
70
|
*/
|
|
49
71
|
onLoadMore?: () => void;
|
|
50
72
|
/**
|
|
51
|
-
*
|
|
73
|
+
* Ref на контейнер, в котором должен быть скролл
|
|
52
74
|
*/
|
|
53
75
|
scrollRef: RefObject<HTMLElement | null>;
|
|
54
76
|
/**
|
|
55
|
-
* Рендер-функция
|
|
77
|
+
* Рендер-функция строки без пагинации дочерних элементов.
|
|
56
78
|
*
|
|
57
79
|
* @example
|
|
58
80
|
* renderItem={(item) => (
|
|
@@ -66,7 +88,29 @@ export type InfiniteTreeListProps<TData extends InfiniteTreeListData<TData> = In
|
|
|
66
88
|
meta: InfiniteTreeItemMeta;
|
|
67
89
|
}) => ReactNode;
|
|
68
90
|
/**
|
|
69
|
-
*
|
|
91
|
+
* Рендер-функция строки узла с подгружаемыми дочерними элементами (`hasChildren`).
|
|
92
|
+
* Без `renderParent` такие узлы рендерит `renderItem`.
|
|
93
|
+
*
|
|
94
|
+
* @example
|
|
95
|
+
* renderParent={(item) => (
|
|
96
|
+
* <InfiniteTreeListItem
|
|
97
|
+
* isLoading={childrenState?.isLoading}
|
|
98
|
+
* isError={childrenState?.isError}
|
|
99
|
+
* isEndReached={childrenState?.isEndReached}
|
|
100
|
+
* childItems={childrenState?.data}
|
|
101
|
+
* onOpen={() => loadChildren(item.id)}
|
|
102
|
+
* onLoadMore={() => loadChildren(item.id)}
|
|
103
|
+
* >
|
|
104
|
+
* <Avatar>{item.avatarName}</Avatar>
|
|
105
|
+
* <Typography>{item.organization}</Typography>
|
|
106
|
+
* </InfiniteTreeListItem>
|
|
107
|
+
* )}
|
|
108
|
+
*/
|
|
109
|
+
renderParent?: (item: TData & {
|
|
110
|
+
meta: InfiniteTreeItemMeta;
|
|
111
|
+
}) => ReactNode;
|
|
112
|
+
/**
|
|
113
|
+
* Уровень раскрытия дерева по умолчанию.
|
|
70
114
|
*/
|
|
71
115
|
initialExpandedLevel?: number;
|
|
72
116
|
/**
|
|
@@ -74,7 +118,7 @@ export type InfiniteTreeListProps<TData extends InfiniteTreeListData<TData> = In
|
|
|
74
118
|
*/
|
|
75
119
|
endOfScrollMsg?: string;
|
|
76
120
|
/**
|
|
77
|
-
*
|
|
121
|
+
* Строка в состоянии загрузки.
|
|
78
122
|
*/
|
|
79
123
|
itemSkeleton?: ReactNode;
|
|
80
124
|
/**
|
|
@@ -93,7 +137,7 @@ export type InfiniteTreeItemMeta = {
|
|
|
93
137
|
*/
|
|
94
138
|
level: number;
|
|
95
139
|
/**
|
|
96
|
-
* Путь до
|
|
140
|
+
* Путь до элемента: id всех родителей от корня и id самого элемента
|
|
97
141
|
*/
|
|
98
142
|
path: string[];
|
|
99
143
|
/**
|
|
@@ -101,22 +145,44 @@ export type InfiniteTreeItemMeta = {
|
|
|
101
145
|
*/
|
|
102
146
|
parentId?: string;
|
|
103
147
|
/**
|
|
104
|
-
* Индекс элемента среди siblings
|
|
148
|
+
* Индекс элемента среди соседей (siblings) для каскадной анимации
|
|
105
149
|
*/
|
|
106
150
|
siblingIndex: number;
|
|
107
151
|
/**
|
|
108
|
-
*
|
|
152
|
+
* У элемента есть вложенные элементы: строка получает Chevron
|
|
109
153
|
*/
|
|
110
154
|
hasNested: boolean;
|
|
155
|
+
/**
|
|
156
|
+
* Дочерние элементы узла подгружаются, а не лежат в `children`
|
|
157
|
+
*/
|
|
158
|
+
isChildrenAsync: boolean;
|
|
111
159
|
/**
|
|
112
160
|
* Флаг раскрытия узла
|
|
113
161
|
*/
|
|
114
162
|
isExpanded: boolean;
|
|
115
163
|
/**
|
|
116
|
-
* Id
|
|
164
|
+
* Id DOM-узла строки. Используется для анимации закрытия
|
|
117
165
|
*/
|
|
118
166
|
nodeId: string;
|
|
119
167
|
};
|
|
168
|
+
/**
|
|
169
|
+
* Вид строки-заглушки, которой список замещает дочерние элементы раскрытого
|
|
170
|
+
* родителя:
|
|
171
|
+
* - `skeleton` — первая загрузка ветки, дочерних элементов ещё нет;
|
|
172
|
+
* - `spinner` — догрузка следующей порции под уже показанными дочерними
|
|
173
|
+
* элементами;
|
|
174
|
+
* - `no-data` — ветка загрузилась пустой;
|
|
175
|
+
* - `error` — загрузка ветки упала
|
|
176
|
+
*/
|
|
177
|
+
export type ChildrenPlaceholderKind = 'skeleton' | 'spinner' | 'no-data' | 'error';
|
|
120
178
|
export type FlattenTree<TData extends InfiniteTreeListData<TData>> = TData & {
|
|
121
179
|
meta: InfiniteTreeItemMeta;
|
|
180
|
+
/**
|
|
181
|
+
* Вид строки-заглушки. У строк с данными потребителя поля нет
|
|
182
|
+
*/
|
|
183
|
+
placeholderKind?: ChildrenPlaceholderKind;
|
|
184
|
+
};
|
|
185
|
+
export type FlattenTreeParent = {
|
|
186
|
+
id: string;
|
|
187
|
+
meta: Pick<InfiniteTreeItemMeta, 'path' | 'level'>;
|
|
122
188
|
};
|
|
@@ -1,38 +1,48 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
2
|
import { type ContentStateProps } from '../../ContentState';
|
|
3
|
-
import type {
|
|
3
|
+
import type { ListFooterContext } from '../ListFooter';
|
|
4
|
+
import type { InfiniteTreeListData, InfiniteTreeListProps } from '../types';
|
|
4
5
|
type UseLogicParams<TData extends InfiniteTreeListData<TData>> = InfiniteTreeListProps<TData>;
|
|
5
|
-
|
|
6
|
-
|
|
6
|
+
/**
|
|
7
|
+
* Логика списка: сводит плоский список, данные дочерних элементов, скролл
|
|
8
|
+
* и анимацию появления строк в props для `Virtuoso` и дочерних компонентов
|
|
9
|
+
*/
|
|
10
|
+
export declare const useLogic: <TData extends InfiniteTreeListData<TData>>({ initialExpandedLevel, items, onRetry, errorMsg, isError, isLoading, scrollRef, isEndReached, onLoadMore, renderItem, renderParent, itemSkeleton, endOfScrollMsg, noDataImgSrc, errorImgSrc, }: UseLogicParams<TData>) => {
|
|
11
|
+
flatList: import("../types").FlattenTree<TData>[];
|
|
7
12
|
onToggle: ({ id: itemId }: InfiniteTreeListData) => void;
|
|
13
|
+
nodePaginationMap: Record<string, import("../InfiniteTreeListContext").NodePagination>;
|
|
14
|
+
registerChildren: (itemId: string, childrenState: import("../types").InfiniteTreeChildrenPagination) => void;
|
|
15
|
+
notifyExpand: (itemId: string, onOpen?: (() => void) | undefined) => void;
|
|
16
|
+
parentItems: import("../types").FlattenTree<TData>[];
|
|
17
|
+
acquireParentSlot: (itemId: string) => HTMLDivElement | null;
|
|
8
18
|
contentStateProps: Omit<ContentStateProps, "children">;
|
|
9
19
|
scrollParent: HTMLElement | null;
|
|
10
20
|
virtuosoProps: {
|
|
11
21
|
id: string;
|
|
12
22
|
ref: import("react").RefObject<import("react-virtuoso").VirtuosoHandle | null>;
|
|
23
|
+
overscan: number;
|
|
13
24
|
rangeChanged: (range: import("react-virtuoso").ListRange) => void;
|
|
14
25
|
endReached: () => void;
|
|
15
26
|
totalListHeightChanged: () => void;
|
|
27
|
+
isScrolling: (isScrolling: boolean) => void;
|
|
16
28
|
};
|
|
17
|
-
|
|
18
|
-
isError: boolean | undefined;
|
|
19
|
-
isLoading: boolean | undefined;
|
|
20
|
-
isEndReached: boolean | undefined;
|
|
21
|
-
};
|
|
29
|
+
footerContext: ListFooterContext;
|
|
22
30
|
onTopButtonProps: {
|
|
23
|
-
|
|
31
|
+
buttonRef: import("react").RefObject<HTMLButtonElement | null>;
|
|
24
32
|
handleScrollToTop: () => void;
|
|
25
33
|
scrollRef: import("react").RefObject<HTMLElement | null>;
|
|
26
34
|
};
|
|
27
|
-
endOfScrollMsg: string | undefined;
|
|
28
35
|
itemSkeleton: import("react").ReactNode;
|
|
29
36
|
renderItem: (item: TData & {
|
|
30
37
|
meta: import("../types").InfiniteTreeItemMeta;
|
|
31
38
|
}) => import("react").ReactNode;
|
|
39
|
+
renderParent: (item: TData & {
|
|
40
|
+
meta: import("../types").InfiniteTreeItemMeta;
|
|
41
|
+
}) => import("react").ReactNode;
|
|
32
42
|
items: TData[];
|
|
33
|
-
onLoadMore: (() => void) | undefined;
|
|
34
43
|
onRetry: () => void;
|
|
35
44
|
noDataImgSrc: string | undefined;
|
|
36
|
-
|
|
45
|
+
enterAnimation: import("../hooks").EnterAnimationResult;
|
|
46
|
+
tailRegistry: import("../utils").TailRegistry;
|
|
37
47
|
};
|
|
38
48
|
export {};
|
|
@@ -3,52 +3,54 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
3
3
|
exports.useLogic = void 0;
|
|
4
4
|
const react_1 = require("react");
|
|
5
5
|
const ConfigProvider_1 = require("../../ConfigProvider");
|
|
6
|
-
const useTheme_1 = require("../../theme/hooks/useTheme");
|
|
7
|
-
const useScrollManagement_1 = require("../../useScrollManagement");
|
|
8
|
-
const useSet_1 = require("../../useSet");
|
|
9
|
-
const useStickyButton_1 = require("../../useStickyButton");
|
|
10
6
|
const constants_1 = require("../constants");
|
|
11
|
-
const
|
|
12
|
-
const
|
|
7
|
+
const hooks_1 = require("../hooks");
|
|
8
|
+
const utils_1 = require("../utils");
|
|
9
|
+
/**
|
|
10
|
+
* Логика списка: сводит плоский список, данные дочерних элементов, скролл
|
|
11
|
+
* и анимацию появления строк в props для `Virtuoso` и дочерних компонентов
|
|
12
|
+
*/
|
|
13
|
+
const useLogic = ({ initialExpandedLevel, items, onRetry, errorMsg, isError, isLoading, scrollRef, isEndReached, onLoadMore, renderItem, renderParent, itemSkeleton, endOfScrollMsg, noDataImgSrc, errorImgSrc, }) => {
|
|
13
14
|
const { imagesMap } = (0, react_1.useContext)(ConfigProvider_1.ConfigContext);
|
|
14
|
-
const
|
|
15
|
-
const
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
const
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
};
|
|
24
|
-
(0,
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
15
|
+
const enterAnimation = (0, hooks_1.useEnterAnimation)();
|
|
16
|
+
const parentSlotsRef = (0, react_1.useRef)(null);
|
|
17
|
+
if (!parentSlotsRef.current) {
|
|
18
|
+
parentSlotsRef.current = (0, utils_1.createParentSlots)();
|
|
19
|
+
}
|
|
20
|
+
const acquireParentSlot = (0, react_1.useCallback)((itemId) => parentSlotsRef.current?.acquire(itemId) ?? null, []);
|
|
21
|
+
const releaseParentSlot = (0, react_1.useCallback)((itemId) => {
|
|
22
|
+
parentSlotsRef.current?.release(itemId);
|
|
23
|
+
}, []);
|
|
24
|
+
const { notifyExpand, resetExpandNotification } = (0, hooks_1.useExpandNotifier)();
|
|
25
|
+
const { flatList, flatListRef, expandedIds, expandedIdsRef, insertChildren, syncChildrenPlaceholders, onToggle, } = (0, hooks_1.useFlatTree)({
|
|
26
|
+
items,
|
|
27
|
+
initialExpandedLevel,
|
|
28
|
+
enterAnimation,
|
|
29
|
+
onCollapse: resetExpandNotification,
|
|
30
|
+
});
|
|
31
|
+
const { registerChildren, nodePaginationMap, parentItems } = (0, hooks_1.useChildrenState)({
|
|
32
|
+
items,
|
|
33
|
+
flatList,
|
|
34
|
+
flatListRef,
|
|
35
|
+
expandedIds,
|
|
36
|
+
expandedIdsRef,
|
|
37
|
+
enterAnimation,
|
|
38
|
+
insertChildren,
|
|
39
|
+
syncChildrenPlaceholders,
|
|
40
|
+
skeletonCount: itemSkeleton ? constants_1.CHILDREN_SKELETON_COUNT : 1,
|
|
41
|
+
releaseParentSlot,
|
|
42
|
+
});
|
|
43
|
+
const { scrollParent, tailRegistry, isEndReachedWithScroll, virtuosoProps, onTopButtonProps, } = (0, hooks_1.useListScroll)({
|
|
44
|
+
scrollRef,
|
|
45
|
+
isEndReached,
|
|
46
|
+
onLoadMore,
|
|
47
|
+
flatListRef,
|
|
48
|
+
enterAnimation,
|
|
49
|
+
});
|
|
48
50
|
const contentStateProps = (0, react_1.useMemo)(() => {
|
|
49
51
|
const isNoData = !items?.length;
|
|
50
52
|
return {
|
|
51
|
-
// Проверка на текущие элементы списка необходима для рендера loading состояния при
|
|
53
|
+
// Проверка на текущие элементы списка необходима для рендера loading состояния при подгрузке данных
|
|
52
54
|
// вместо общего LoadingPlaceholder на всю страницу
|
|
53
55
|
isLoading: isNoData && isLoading,
|
|
54
56
|
isError: isNoData && isError,
|
|
@@ -60,44 +62,37 @@ const useLogic = ({ initialExpandedLevel, items, onRetry, errorMsg, isError, isL
|
|
|
60
62
|
onRetry,
|
|
61
63
|
},
|
|
62
64
|
};
|
|
63
|
-
}, [items, isLoading, isError, errorMsg, onRetry, imagesMap]);
|
|
64
|
-
const
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
65
|
+
}, [items, isLoading, isError, errorMsg, errorImgSrc, onRetry, imagesMap]);
|
|
66
|
+
const footerContext = (0, react_1.useMemo)(() => ({
|
|
67
|
+
isLoading,
|
|
68
|
+
isError,
|
|
69
|
+
isEndReached: isEndReachedWithScroll,
|
|
70
|
+
endOfScrollMsg,
|
|
71
|
+
onRetry,
|
|
72
|
+
}), [isLoading, isError, isEndReachedWithScroll, endOfScrollMsg, onRetry]);
|
|
71
73
|
return {
|
|
72
74
|
flatList,
|
|
73
75
|
onToggle,
|
|
76
|
+
nodePaginationMap,
|
|
77
|
+
registerChildren,
|
|
78
|
+
notifyExpand,
|
|
79
|
+
parentItems,
|
|
80
|
+
acquireParentSlot,
|
|
74
81
|
contentStateProps,
|
|
75
82
|
scrollParent,
|
|
76
|
-
virtuosoProps
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
rangeChanged: handleRangeChanged,
|
|
80
|
-
endReached: handleEndReach,
|
|
81
|
-
totalListHeightChanged: recalculateVerticalScroll,
|
|
82
|
-
},
|
|
83
|
-
footerProps: {
|
|
84
|
-
isError,
|
|
85
|
-
isLoading,
|
|
86
|
-
isEndReached: isEndReachedWithScroll,
|
|
87
|
-
},
|
|
88
|
-
onTopButtonProps: {
|
|
89
|
-
isActive: isStickyButtonActive,
|
|
90
|
-
handleScrollToTop,
|
|
91
|
-
scrollRef,
|
|
92
|
-
},
|
|
93
|
-
endOfScrollMsg,
|
|
83
|
+
virtuosoProps,
|
|
84
|
+
footerContext,
|
|
85
|
+
onTopButtonProps,
|
|
94
86
|
itemSkeleton,
|
|
95
87
|
renderItem,
|
|
88
|
+
// Fallback подставляется один раз: ниже по дереву строка выбирает функцию по
|
|
89
|
+
// типу узла, не проверяя, передал ли потребитель renderParent
|
|
90
|
+
renderParent: renderParent ?? renderItem,
|
|
96
91
|
items,
|
|
97
|
-
onLoadMore,
|
|
98
92
|
onRetry,
|
|
99
93
|
noDataImgSrc,
|
|
100
|
-
|
|
94
|
+
enterAnimation,
|
|
95
|
+
tailRegistry,
|
|
101
96
|
};
|
|
102
97
|
};
|
|
103
98
|
exports.useLogic = useLogic;
|