@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
|
@@ -19,7 +19,7 @@ export const Item = styled.li `
|
|
|
19
19
|
background-color: ${({ theme }) => theme.palette.background.element};
|
|
20
20
|
}
|
|
21
21
|
|
|
22
|
-
${({ theme }) => theme.breakpoints.down('
|
|
22
|
+
${({ theme }) => theme.breakpoints.down('mobile')} {
|
|
23
23
|
padding: ${({ theme }) => theme.spacing(5, 4)};
|
|
24
24
|
|
|
25
25
|
border-bottom: 1px solid ${({ theme }) => theme.palette.components.border.default};
|
|
@@ -1,2 +1,20 @@
|
|
|
1
1
|
import type { InfiniteTreeListData, InfiniteTreeListProps } from './types';
|
|
2
|
+
/**
|
|
3
|
+
* Виртуализированное дерево с бесконечной подгрузкой
|
|
4
|
+
*
|
|
5
|
+
* @example
|
|
6
|
+
* <InfiniteTreeList
|
|
7
|
+
* items={items}
|
|
8
|
+
* scrollRef={scrollRef}
|
|
9
|
+
* onRetry={refetch}
|
|
10
|
+
* renderItem={(item) => (
|
|
11
|
+
* <InfiniteTreeListItem>{item.name}</InfiniteTreeListItem>
|
|
12
|
+
* )}
|
|
13
|
+
* renderParent={(item) => (
|
|
14
|
+
* <InfiniteTreeListItem childItems={childrenState[item.id]?.data}>
|
|
15
|
+
* {item.name}
|
|
16
|
+
* </InfiniteTreeListItem>
|
|
17
|
+
* )}
|
|
18
|
+
* />
|
|
19
|
+
*/
|
|
2
20
|
export declare const InfiniteTreeList: <TData extends InfiniteTreeListData<TData>>(props: InfiniteTreeListProps<TData>) => import("react/jsx-runtime").JSX.Element;
|
|
@@ -1,27 +1,34 @@
|
|
|
1
|
-
import { jsx as _jsx,
|
|
1
|
+
import { jsx as _jsx, Fragment as _Fragment, jsxs as _jsxs } from "react/jsx-runtime";
|
|
2
|
+
// cspell:ignore Виртуализированное
|
|
2
3
|
import { Virtuoso } from 'react-virtuoso';
|
|
3
4
|
import { ContentState } from '../ContentState';
|
|
4
|
-
import {
|
|
5
|
-
import {
|
|
6
|
-
import { EndData } from './EndData';
|
|
7
|
-
import { ErrorMessage } from './ErrorMessage';
|
|
8
|
-
import { InfiniteTreeListContextProvider } from './InfiniteTreeListContext';
|
|
9
|
-
import { TreeListItemContextProvider } from './InfiniteTreeListItem';
|
|
5
|
+
import { InfiniteTreeListContextProvider, } from './InfiniteTreeListContext';
|
|
6
|
+
import { ListFooter } from './ListFooter';
|
|
10
7
|
import { NoDataPlaceholder } from './NoDataPlaceholder';
|
|
11
8
|
import { OnTopButton } from './OnTopButton';
|
|
12
|
-
import {
|
|
9
|
+
import { ParentItems } from './ParentItems';
|
|
13
10
|
import { TreeItem } from './TreeItem';
|
|
14
11
|
import { useLogic } from './useLogic';
|
|
12
|
+
const computeItemKey = (_, item) => item.id;
|
|
13
|
+
/**
|
|
14
|
+
* Виртуализированное дерево с бесконечной подгрузкой
|
|
15
|
+
*
|
|
16
|
+
* @example
|
|
17
|
+
* <InfiniteTreeList
|
|
18
|
+
* items={items}
|
|
19
|
+
* scrollRef={scrollRef}
|
|
20
|
+
* onRetry={refetch}
|
|
21
|
+
* renderItem={(item) => (
|
|
22
|
+
* <InfiniteTreeListItem>{item.name}</InfiniteTreeListItem>
|
|
23
|
+
* )}
|
|
24
|
+
* renderParent={(item) => (
|
|
25
|
+
* <InfiniteTreeListItem childItems={childrenState[item.id]?.data}>
|
|
26
|
+
* {item.name}
|
|
27
|
+
* </InfiniteTreeListItem>
|
|
28
|
+
* )}
|
|
29
|
+
* />
|
|
30
|
+
*/
|
|
15
31
|
export const InfiniteTreeList = (props) => {
|
|
16
|
-
const { flatList, onToggle, contentStateProps, scrollParent, virtuosoProps,
|
|
17
|
-
|
|
18
|
-
return (_jsx(InfiniteTreeListContextProvider, { itemSkeleton: itemSkeleton, children: _jsx(ContentState, { ...contentStateProps, children: items.length && scrollParent ? (_jsxs(_Fragment, { children: [_jsx(Virtuoso, { ...virtuosoProps, data: flatList, customScrollParent: scrollParent, endReached: onLoadMore, itemContent: renderItemContent, computeItemKey: (_, item) => item.id, components: {
|
|
19
|
-
Footer: () => {
|
|
20
|
-
const { isLoading, isError, isEndReached } = footerProps;
|
|
21
|
-
if (!isLoading && !isError && !isEndReached) {
|
|
22
|
-
return _jsx(FooterDummy, {});
|
|
23
|
-
}
|
|
24
|
-
return (_jsxs(Footer, { children: [isLoading && _jsx(Loader, {}), isError && _jsx(ErrorMessage, { onRetry: onRetry }), isEndReached && (_jsx(EndData, { endOfScrollMsg: endOfScrollMsg }))] }));
|
|
25
|
-
},
|
|
26
|
-
}, overscan: OVERSCAN }), _jsx(OnTopButton, { ...onTopButtonProps })] })) : (_jsx(NoDataPlaceholder, { noDataImgSrc: noDataImgSrc })) }) }));
|
|
32
|
+
const { flatList, onToggle, contentStateProps, scrollParent, virtuosoProps, footerContext, onTopButtonProps, renderItem, renderParent, items, itemSkeleton, onRetry, noDataImgSrc, enterAnimation, tailRegistry, nodePaginationMap, registerChildren, notifyExpand, parentItems, acquireParentSlot, } = useLogic(props);
|
|
33
|
+
return (_jsxs(InfiniteTreeListContextProvider, { itemSkeleton: itemSkeleton, nodePaginationMap: nodePaginationMap, registerChildren: registerChildren, notifyExpand: notifyExpand, onListRetry: onRetry, enterAnimation: enterAnimation, tailRegistry: tailRegistry, renderItem: renderItem, renderParent: renderParent, onToggle: onToggle, acquireParentSlot: acquireParentSlot, children: [_jsx(ParentItems, { parents: parentItems }), _jsx(ContentState, { ...contentStateProps, children: items.length > 0 && scrollParent ? (_jsxs(_Fragment, { children: [_jsx(Virtuoso, { ...virtuosoProps, data: flatList, customScrollParent: scrollParent, computeItemKey: computeItemKey, context: footerContext, components: { Item: TreeItem, Footer: ListFooter } }), _jsx(OnTopButton, { ...onTopButtonProps })] })) : (_jsx(NoDataPlaceholder, { noDataImgSrc: noDataImgSrc })) })] }));
|
|
27
34
|
};
|
|
@@ -1,2 +1,11 @@
|
|
|
1
1
|
import type { InfiniteTreeListActionProps } from './types';
|
|
2
|
+
/**
|
|
3
|
+
* Действия строки дерева. Блокирующее действие в состоянии загрузки блокирует
|
|
4
|
+
* строку вместе со всей её веткой
|
|
5
|
+
*
|
|
6
|
+
* @example
|
|
7
|
+
* <InfiniteTreeListActions
|
|
8
|
+
* actions={{ main: [{ name: 'Изменить', onClick: handleEdit }] }}
|
|
9
|
+
* />
|
|
10
|
+
*/
|
|
2
11
|
export declare const InfiniteTreeListActions: <TItem>({ actions, }: InfiniteTreeListActionProps<TItem>) => import("react/jsx-runtime").JSX.Element;
|
|
@@ -1,6 +1,15 @@
|
|
|
1
1
|
import { jsx as _jsx } from "react/jsx-runtime";
|
|
2
2
|
import { ActionCellBase } from '../../ActionCellBase';
|
|
3
3
|
import { useLogic } from './useLogic';
|
|
4
|
+
/**
|
|
5
|
+
* Действия строки дерева. Блокирующее действие в состоянии загрузки блокирует
|
|
6
|
+
* строку вместе со всей её веткой
|
|
7
|
+
*
|
|
8
|
+
* @example
|
|
9
|
+
* <InfiniteTreeListActions
|
|
10
|
+
* actions={{ main: [{ name: 'Изменить', onClick: handleEdit }] }}
|
|
11
|
+
* />
|
|
12
|
+
*/
|
|
4
13
|
export const InfiniteTreeListActions = ({ actions, }) => {
|
|
5
14
|
const { isDisabledAction, handleWrapperClick, handleActionClick } = useLogic({
|
|
6
15
|
actions,
|
|
@@ -7,17 +7,16 @@ export const useLogic = ({ actions }) => {
|
|
|
7
7
|
const { setDisabled } = useContext(InfiniteTreeListContext);
|
|
8
8
|
const blockingAction = useMemo(() => [...main, ...secondary].find((action) => action.isBlockingOperation && action.loading), [main, secondary]);
|
|
9
9
|
const isDisabledAction = Boolean(blockingAction);
|
|
10
|
+
const loadingNote = blockingAction?.loadingNote;
|
|
10
11
|
useEffect(() => {
|
|
11
|
-
if (
|
|
12
|
-
// Добавляем id элемента в Set disabled элементов
|
|
12
|
+
if (isDisabledAction) {
|
|
13
13
|
setDisabled(item.id, true);
|
|
14
|
-
setDisabledReason(
|
|
14
|
+
setDisabledReason(loadingNote);
|
|
15
15
|
return;
|
|
16
16
|
}
|
|
17
|
-
// Удаляем id элемента из Set disabled элементов
|
|
18
17
|
setDisabled(item.id, false);
|
|
19
|
-
setDisabledReason(
|
|
20
|
-
}, [
|
|
18
|
+
setDisabledReason(undefined);
|
|
19
|
+
}, [isDisabledAction, loadingNote, item.id]);
|
|
21
20
|
const handleActionClick = useCallback((onClick) => () => {
|
|
22
21
|
onClick?.(item);
|
|
23
22
|
}, [item]);
|
|
@@ -1,7 +1,88 @@
|
|
|
1
1
|
import { type ReactNode } from 'react';
|
|
2
|
+
import type { EnterAnimationResult } from '../hooks';
|
|
3
|
+
import type { FlattenTree, InfiniteTreeChildrenPagination, InfiniteTreeListData } from '../types';
|
|
4
|
+
import type { TailRegistry } from '../utils';
|
|
5
|
+
export type NodePagination = {
|
|
6
|
+
/**
|
|
7
|
+
* ID последнего загруженного дочернего элемента узла
|
|
8
|
+
*/
|
|
9
|
+
lastChildId?: string;
|
|
10
|
+
/**
|
|
11
|
+
* Все дочерние данные узла загружены
|
|
12
|
+
*/
|
|
13
|
+
isEndReached?: boolean;
|
|
14
|
+
/**
|
|
15
|
+
* Дочерние элементы узла загружаются
|
|
16
|
+
*/
|
|
17
|
+
isChildrenLoading?: boolean;
|
|
18
|
+
/**
|
|
19
|
+
* Загрузка дочерних элементов завершилась ошибкой
|
|
20
|
+
*/
|
|
21
|
+
isChildrenError?: boolean;
|
|
22
|
+
};
|
|
23
|
+
export type NodeChildrenCallbacks = {
|
|
24
|
+
/**
|
|
25
|
+
* Обработчик подгрузки данных
|
|
26
|
+
*/
|
|
27
|
+
onLoadMore?: () => void;
|
|
28
|
+
/**
|
|
29
|
+
* Функция обработки нажатия на кнопку "Повторить запрос"
|
|
30
|
+
*/
|
|
31
|
+
onRetry?: () => void;
|
|
32
|
+
};
|
|
2
33
|
export type InfiniteTreeListContextProps = {
|
|
34
|
+
/**
|
|
35
|
+
* Рендер-функция строки
|
|
36
|
+
*/
|
|
37
|
+
renderItem: (item: FlattenTree<InfiniteTreeListData>) => ReactNode;
|
|
38
|
+
/**
|
|
39
|
+
* Рендер-функция строки узла с подгружаемыми дочерними элементами
|
|
40
|
+
*/
|
|
41
|
+
renderParent: (item: FlattenTree<InfiniteTreeListData>) => ReactNode;
|
|
42
|
+
/**
|
|
43
|
+
* Переключает раскрытие узла
|
|
44
|
+
*/
|
|
45
|
+
onToggle: (item: InfiniteTreeListData) => void;
|
|
46
|
+
/**
|
|
47
|
+
* Строка в состоянии загрузки
|
|
48
|
+
*/
|
|
3
49
|
itemSkeleton: ReactNode;
|
|
50
|
+
/**
|
|
51
|
+
* Id заблокированных узлов
|
|
52
|
+
*/
|
|
4
53
|
disabledIdList: Set<string>;
|
|
54
|
+
/**
|
|
55
|
+
* Отмечает узел заблокированным или снимает отметку
|
|
56
|
+
*/
|
|
5
57
|
setDisabled: (itemId: string, disabled: boolean) => void;
|
|
58
|
+
/**
|
|
59
|
+
* Данные пагинации узлов по parentId
|
|
60
|
+
*/
|
|
61
|
+
nodePaginationMap: Record<string, NodePagination>;
|
|
62
|
+
/**
|
|
63
|
+
* Регистрирует callback-функции загрузки дочерних элементов узла
|
|
64
|
+
*/
|
|
65
|
+
registerChildrenCallbacks: (itemId: string, callbacks: NodeChildrenCallbacks) => void;
|
|
66
|
+
/**
|
|
67
|
+
* Передаёт состояние загрузки дочерних элементов в список. Список
|
|
68
|
+
* синхронизирует плоский список
|
|
69
|
+
*/
|
|
70
|
+
registerChildren: (itemId: string, childrenState: InfiniteTreeChildrenPagination) => void;
|
|
71
|
+
/**
|
|
72
|
+
* Оповещает список о раскрытии узла
|
|
73
|
+
*/
|
|
74
|
+
notifyExpand: (itemId: string, onOpen?: () => void) => void;
|
|
75
|
+
onLoadMore: (parentId: string) => void;
|
|
76
|
+
onRetry: (parentId: string) => void;
|
|
77
|
+
enterAnimation: EnterAnimationResult;
|
|
78
|
+
/**
|
|
79
|
+
* Реестр хвостов вложенных веток. Переживает размонтирование строки
|
|
80
|
+
*/
|
|
81
|
+
tailRegistry: TailRegistry;
|
|
82
|
+
/**
|
|
83
|
+
* Отдаёт постоянный DOM-контейнер строки узла: строка монтируется вне
|
|
84
|
+
* виртуализации, а её контейнер переносится в строку скролла
|
|
85
|
+
*/
|
|
86
|
+
acquireParentSlot: (itemId: string) => HTMLDivElement | null;
|
|
6
87
|
};
|
|
7
88
|
export declare const InfiniteTreeListContext: import("react").Context<InfiniteTreeListContextProps>;
|
|
@@ -1,6 +1,27 @@
|
|
|
1
1
|
import { createContext } from 'react';
|
|
2
2
|
export const InfiniteTreeListContext = createContext({
|
|
3
|
+
renderItem: () => null,
|
|
4
|
+
renderParent: () => null,
|
|
5
|
+
onToggle: () => undefined,
|
|
3
6
|
itemSkeleton: '',
|
|
4
7
|
disabledIdList: new Set(),
|
|
5
8
|
setDisabled: () => undefined,
|
|
9
|
+
nodePaginationMap: {},
|
|
10
|
+
registerChildrenCallbacks: () => undefined,
|
|
11
|
+
registerChildren: () => undefined,
|
|
12
|
+
notifyExpand: () => undefined,
|
|
13
|
+
onLoadMore: () => undefined,
|
|
14
|
+
onRetry: () => undefined,
|
|
15
|
+
enterAnimation: {
|
|
16
|
+
schedule: () => undefined,
|
|
17
|
+
read: () => ({ shouldAnimate: false }),
|
|
18
|
+
claim: () => undefined,
|
|
19
|
+
reset: () => undefined,
|
|
20
|
+
},
|
|
21
|
+
tailRegistry: {
|
|
22
|
+
register: () => undefined,
|
|
23
|
+
unregister: () => undefined,
|
|
24
|
+
checkRange: () => undefined,
|
|
25
|
+
},
|
|
26
|
+
acquireParentSlot: () => null,
|
|
6
27
|
});
|
|
@@ -1,7 +1,8 @@
|
|
|
1
1
|
import { type ReactNode } from 'react';
|
|
2
2
|
import { type InfiniteTreeListContextProps } from '../InfiniteTreeListContext';
|
|
3
|
-
type Props = Pick<InfiniteTreeListContextProps, 'itemSkeleton'> & {
|
|
3
|
+
type Props = Pick<InfiniteTreeListContextProps, 'itemSkeleton' | 'nodePaginationMap' | 'enterAnimation' | 'tailRegistry' | 'registerChildren' | 'notifyExpand' | 'renderItem' | 'renderParent' | 'onToggle' | 'acquireParentSlot'> & {
|
|
4
4
|
children: ReactNode;
|
|
5
|
+
onListRetry: () => void;
|
|
5
6
|
};
|
|
6
|
-
export declare const InfiniteTreeListContextProvider: ({ children, itemSkeleton, }: Props) => import("react/jsx-runtime").JSX.Element;
|
|
7
|
+
export declare const InfiniteTreeListContextProvider: ({ children, itemSkeleton, nodePaginationMap, onListRetry, registerChildren, notifyExpand, enterAnimation, tailRegistry, renderItem, renderParent, onToggle, acquireParentSlot, }: Props) => import("react/jsx-runtime").JSX.Element;
|
|
7
8
|
export {};
|
|
@@ -1,16 +1,72 @@
|
|
|
1
1
|
import { jsx as _jsx } from "react/jsx-runtime";
|
|
2
|
-
import {
|
|
2
|
+
import { useCallback, useMemo, useRef, useState } from 'react';
|
|
3
3
|
import { InfiniteTreeListContext, } from '../InfiniteTreeListContext';
|
|
4
|
-
export const InfiniteTreeListContextProvider = ({ children, itemSkeleton, }) => {
|
|
5
|
-
const [disabledIdList,
|
|
6
|
-
const
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
4
|
+
export const InfiniteTreeListContextProvider = ({ children, itemSkeleton, nodePaginationMap, onListRetry, registerChildren, notifyExpand, enterAnimation, tailRegistry, renderItem, renderParent, onToggle, acquireParentSlot, }) => {
|
|
5
|
+
const [disabledIdList, setDisabledIdList] = useState(new Set());
|
|
6
|
+
const childrenCallbacksRef = useRef({});
|
|
7
|
+
const setDisabled = useCallback((itemId, disabled) => {
|
|
8
|
+
setDisabledIdList((prev) => {
|
|
9
|
+
// Сохранение ссылки на Set при отсутствии изменений предотвращает
|
|
10
|
+
// бесконечный ре-рендер потребителей контекста
|
|
11
|
+
if (prev.has(itemId) === disabled) {
|
|
12
|
+
return prev;
|
|
13
|
+
}
|
|
14
|
+
const next = new Set(prev);
|
|
15
|
+
if (disabled) {
|
|
16
|
+
next.add(itemId);
|
|
17
|
+
}
|
|
18
|
+
else {
|
|
19
|
+
next.delete(itemId);
|
|
20
|
+
}
|
|
21
|
+
return next;
|
|
22
|
+
});
|
|
23
|
+
}, []);
|
|
24
|
+
const registerChildrenCallbacks = useCallback((itemId, callbacks) => {
|
|
25
|
+
childrenCallbacksRef.current[itemId] = callbacks;
|
|
26
|
+
}, []);
|
|
27
|
+
const onLoadMore = useCallback((parentId) => {
|
|
28
|
+
childrenCallbacksRef.current[parentId]?.onLoadMore?.();
|
|
29
|
+
}, []);
|
|
30
|
+
const onRetry = useCallback((parentId) => {
|
|
31
|
+
const retryChildren = childrenCallbacksRef.current[parentId]?.onRetry;
|
|
32
|
+
if (retryChildren) {
|
|
33
|
+
retryChildren();
|
|
34
|
+
return;
|
|
35
|
+
}
|
|
36
|
+
onListRetry();
|
|
37
|
+
}, [onListRetry]);
|
|
38
|
+
const value = useMemo(() => ({
|
|
39
|
+
renderItem,
|
|
40
|
+
renderParent,
|
|
41
|
+
onToggle,
|
|
42
|
+
itemSkeleton,
|
|
43
|
+
disabledIdList,
|
|
44
|
+
setDisabled,
|
|
45
|
+
nodePaginationMap,
|
|
46
|
+
registerChildrenCallbacks,
|
|
47
|
+
registerChildren,
|
|
48
|
+
notifyExpand,
|
|
49
|
+
onLoadMore,
|
|
50
|
+
onRetry,
|
|
51
|
+
enterAnimation,
|
|
52
|
+
tailRegistry,
|
|
53
|
+
acquireParentSlot,
|
|
54
|
+
}), [
|
|
55
|
+
renderItem,
|
|
56
|
+
renderParent,
|
|
57
|
+
onToggle,
|
|
58
|
+
itemSkeleton,
|
|
59
|
+
disabledIdList,
|
|
60
|
+
setDisabled,
|
|
61
|
+
nodePaginationMap,
|
|
62
|
+
registerChildrenCallbacks,
|
|
63
|
+
registerChildren,
|
|
64
|
+
notifyExpand,
|
|
65
|
+
onLoadMore,
|
|
66
|
+
onRetry,
|
|
67
|
+
enterAnimation,
|
|
68
|
+
tailRegistry,
|
|
69
|
+
acquireParentSlot,
|
|
70
|
+
]);
|
|
71
|
+
return (_jsx(InfiniteTreeListContext.Provider, { value: value, children: children }));
|
|
16
72
|
};
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
2
|
+
import { Button } from '../../../Button';
|
|
3
|
+
import { Typography } from '../../../Typography';
|
|
4
|
+
import { DEFAULT_ERROR_MESSAGE } from './constants';
|
|
5
|
+
import { Wrapper } from './styles';
|
|
6
|
+
export const ErrorPlaceholder = ({ onRetry, errorMsg = DEFAULT_ERROR_MESSAGE, }) => {
|
|
7
|
+
return (_jsxs(Wrapper, { children: [_jsx(Typography, { color: "grey", colorIntensity: "600", children: errorMsg }), _jsx(Button, { onClick: onRetry, variant: "link", children: "\u041F\u043E\u043F\u0440\u043E\u0431\u043E\u0432\u0430\u0442\u044C \u0441\u043D\u043E\u0432\u0430" })] }));
|
|
8
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare const DEFAULT_ERROR_MESSAGE = "\u041D\u0435 \u0443\u0434\u0430\u043B\u043E\u0441\u044C \u0437\u0430\u0433\u0440\u0443\u0437\u0438\u0442\u044C \u0434\u0430\u043D\u043D\u044B\u0435";
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export const DEFAULT_ERROR_MESSAGE = 'Не удалось загрузить данные';
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { ErrorPlaceholder } from './ErrorPlaceholder';
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { ErrorPlaceholder } from './ErrorPlaceholder';
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
|
-
export declare const Wrapper: import("
|
|
2
|
+
export declare const Wrapper: import("../../../styled").StyledComponent<{
|
|
3
3
|
theme?: import("@emotion/react").Theme | undefined;
|
|
4
4
|
as?: import("react").ElementType<any, keyof import("react").JSX.IntrinsicElements> | undefined;
|
|
5
5
|
}, import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, {}>;
|
|
@@ -1,15 +1,37 @@
|
|
|
1
1
|
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
2
2
|
import { Chevron } from '../../Chevron';
|
|
3
3
|
import { ContentState } from '../../ContentState';
|
|
4
|
+
import { Loader } from '../../Loader';
|
|
4
5
|
import { Tooltip } from '../../Tooltip';
|
|
6
|
+
import { cn } from '../../utils/cn';
|
|
7
|
+
import { cva } from '../../utils/cva';
|
|
5
8
|
import { getInertProps } from '../../utils/getInertProps';
|
|
6
|
-
import {
|
|
9
|
+
import { infiniteTreeListItemClassnames } from './constants';
|
|
10
|
+
import { ErrorPlaceholder } from './ErrorPlaceholder';
|
|
11
|
+
import { ActionsWrapper, LoaderWrapper, Wrapper } from './styles';
|
|
7
12
|
import { useLogic } from './useLogic';
|
|
13
|
+
const infiniteTreeListItemCva = cva(infiniteTreeListItemClassnames.root, {
|
|
14
|
+
variants: {
|
|
15
|
+
isDisabled: {
|
|
16
|
+
true: infiniteTreeListItemClassnames.disabled,
|
|
17
|
+
},
|
|
18
|
+
isLoading: {
|
|
19
|
+
true: infiniteTreeListItemClassnames.loading,
|
|
20
|
+
},
|
|
21
|
+
hasNested: {
|
|
22
|
+
true: infiniteTreeListItemClassnames.hasNested,
|
|
23
|
+
},
|
|
24
|
+
},
|
|
25
|
+
});
|
|
8
26
|
export const InfiniteTreeListItem = (props) => {
|
|
9
|
-
const { itemSkeleton, item, handleClick, isDisabledByActions, tooltipProps, isChevronActive, } = useLogic(props);
|
|
10
|
-
const { isDisabled, className, onRetry = () => undefined, actions, errorMsg,
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
27
|
+
const { itemSkeleton, item, handleClick, isDisabledByActions, tooltipProps, isChevronActive, isRowLoading, isRowError, } = useLogic(props);
|
|
28
|
+
const { isDisabled, className, onRetry = () => undefined, actions, errorMsg, children, } = props;
|
|
29
|
+
if (isRowError) {
|
|
30
|
+
return _jsx(ErrorPlaceholder, { onRetry: onRetry, errorMsg: errorMsg });
|
|
31
|
+
}
|
|
32
|
+
return (_jsx(ContentState, { isLoading: isRowLoading, isSmoothLoading: false, loadingContent: _jsx(Wrapper, { className: infiniteTreeListItemCva({ isLoading: true }), children: itemSkeleton || (_jsx(LoaderWrapper, { children: _jsx(Loader, {}) })) }), children: _jsx(Tooltip, { ...tooltipProps, children: _jsxs(Wrapper, { onClick: handleClick, className: cn(infiniteTreeListItemCva({
|
|
33
|
+
isDisabled: Boolean(isDisabled || isDisabledByActions),
|
|
34
|
+
isLoading: isRowLoading,
|
|
35
|
+
hasNested: item.meta.hasNested,
|
|
36
|
+
}), className), ...getInertProps(isDisabled || isDisabledByActions), children: [item.meta.hasNested && _jsx(Chevron, { isActive: isChevronActive }), children, actions && _jsx(ActionsWrapper, { children: actions })] }, `infinite-tree-list-item-${item.id}`) }) }));
|
|
15
37
|
};
|
|
@@ -1,10 +1,29 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
2
|
import type { FlattenTree, InfiniteTreeListData } from '../../types';
|
|
3
3
|
export type TreeListItemContextProps = {
|
|
4
|
+
/**
|
|
5
|
+
* Строка плоского списка, для которой рендерится содержимое
|
|
6
|
+
*/
|
|
4
7
|
item: FlattenTree<InfiniteTreeListData>;
|
|
8
|
+
/**
|
|
9
|
+
* Переключает раскрытие узла строки
|
|
10
|
+
*/
|
|
5
11
|
onToggle: (item: InfiniteTreeListData) => void;
|
|
12
|
+
/**
|
|
13
|
+
* Строка заблокирована: своим действием или действием родителя
|
|
14
|
+
*/
|
|
6
15
|
isDisabled: boolean;
|
|
16
|
+
/**
|
|
17
|
+
* Причина блокировки. Показывается в tooltip строки
|
|
18
|
+
*/
|
|
7
19
|
disabledReason?: string;
|
|
20
|
+
/**
|
|
21
|
+
* Записывает причину блокировки
|
|
22
|
+
*/
|
|
8
23
|
setDisabledReason: (disabledReason?: string) => void;
|
|
9
24
|
};
|
|
25
|
+
/**
|
|
26
|
+
* Контекст одной строки дерева: сама строка и её состояние блокировки.
|
|
27
|
+
* Отделён от контекста списка — значение у каждой строки своё
|
|
28
|
+
*/
|
|
10
29
|
export declare const TreeListItemContext: import("react").Context<TreeListItemContextProps>;
|
package/components/InfiniteTreeList/InfiniteTreeListItem/TreeListItemContext/TreeListItemContext.js
CHANGED
|
@@ -1,4 +1,8 @@
|
|
|
1
1
|
import { createContext } from 'react';
|
|
2
|
+
/**
|
|
3
|
+
* Контекст одной строки дерева: сама строка и её состояние блокировки.
|
|
4
|
+
* Отделён от контекста списка — значение у каждой строки своё
|
|
5
|
+
*/
|
|
2
6
|
export const TreeListItemContext = createContext({
|
|
3
7
|
item: {},
|
|
4
8
|
onToggle: () => undefined,
|
|
@@ -3,5 +3,9 @@ import { type TreeListItemContextProps } from '../TreeListItemContext';
|
|
|
3
3
|
type Props = Pick<TreeListItemContextProps, 'item' | 'onToggle'> & {
|
|
4
4
|
children: ReactNode;
|
|
5
5
|
};
|
|
6
|
+
/**
|
|
7
|
+
* Ставит контекст строки: считает блокировку по пути узла и отдаёт вниз
|
|
8
|
+
* саму строку с её причиной блокировки
|
|
9
|
+
*/
|
|
6
10
|
export declare const TreeListItemContextProvider: ({ item, children, onToggle, }: Props) => import("react/jsx-runtime").JSX.Element;
|
|
7
11
|
export {};
|
|
@@ -2,17 +2,22 @@ import { jsx as _jsx } from "react/jsx-runtime";
|
|
|
2
2
|
import { useContext, useMemo, useState } from 'react';
|
|
3
3
|
import { InfiniteTreeListContext } from '../../../InfiniteTreeListContext';
|
|
4
4
|
import { TreeListItemContext, } from '../TreeListItemContext';
|
|
5
|
+
/**
|
|
6
|
+
* Ставит контекст строки: считает блокировку по пути узла и отдаёт вниз
|
|
7
|
+
* саму строку с её причиной блокировки
|
|
8
|
+
*/
|
|
5
9
|
export const TreeListItemContextProvider = ({ item, children, onToggle, }) => {
|
|
6
10
|
const [disabledReason, setDisabledReason] = useState();
|
|
7
11
|
const { disabledIdList } = useContext(InfiniteTreeListContext);
|
|
8
12
|
const isDisabled = useMemo(() => {
|
|
9
13
|
return item.meta.path.some((id) => disabledIdList.has(id));
|
|
10
|
-
}, [item.path, disabledIdList]);
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
14
|
+
}, [item.meta.path, disabledIdList]);
|
|
15
|
+
const value = useMemo(() => ({
|
|
16
|
+
item,
|
|
17
|
+
onToggle,
|
|
18
|
+
isDisabled,
|
|
19
|
+
disabledReason,
|
|
20
|
+
setDisabledReason,
|
|
21
|
+
}), [item, onToggle, isDisabled, disabledReason]);
|
|
22
|
+
return (_jsx(TreeListItemContext.Provider, { value: value, children: children }));
|
|
18
23
|
};
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import { createUIKitClassname } from '../../utils/createUIKitClassname';
|
|
2
|
+
export const infiniteTreeListItemClassnames = {
|
|
3
|
+
root: createUIKitClassname('infinite-tree-list__item'),
|
|
4
|
+
disabled: createUIKitClassname('infinite-tree-list__item_disabled'),
|
|
5
|
+
loading: createUIKitClassname('infinite-tree-list__item_loading'),
|
|
6
|
+
hasNested: createUIKitClassname('infinite-tree-list__item_has-nested'),
|
|
7
|
+
};
|
|
@@ -2,12 +2,12 @@
|
|
|
2
2
|
export declare const Wrapper: import("../../styled").StyledComponent<{
|
|
3
3
|
theme?: import("@emotion/react").Theme | undefined;
|
|
4
4
|
as?: import("react").ElementType<any, keyof import("react").JSX.IntrinsicElements> | undefined;
|
|
5
|
-
} & {
|
|
6
|
-
$isDisabled?: boolean | undefined;
|
|
7
|
-
$isLoading?: boolean | undefined;
|
|
8
|
-
$hasNested?: boolean | undefined;
|
|
9
5
|
}, import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, {}>;
|
|
10
6
|
export declare const ActionsWrapper: import("../../styled").StyledComponent<{
|
|
11
7
|
theme?: import("@emotion/react").Theme | undefined;
|
|
12
8
|
as?: import("react").ElementType<any, keyof import("react").JSX.IntrinsicElements> | undefined;
|
|
13
9
|
}, import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, {}>;
|
|
10
|
+
export declare const LoaderWrapper: import("../../styled").StyledComponent<{
|
|
11
|
+
theme?: import("@emotion/react").Theme | undefined;
|
|
12
|
+
as?: import("react").ElementType<any, keyof import("react").JSX.IntrinsicElements> | undefined;
|
|
13
|
+
}, import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, {}>;
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import { styled } from '../../styled';
|
|
2
|
+
import { infiniteTreeListItemClassnames } from './constants';
|
|
2
3
|
export const Wrapper = styled.div `
|
|
3
|
-
cursor:
|
|
4
|
+
cursor: default;
|
|
4
5
|
|
|
5
6
|
display: flex;
|
|
6
7
|
gap: ${({ theme }) => theme.spacing(3)};
|
|
@@ -10,7 +11,6 @@ export const Wrapper = styled.div `
|
|
|
10
11
|
min-height: 60px;
|
|
11
12
|
padding: ${({ theme }) => theme.spacing(3, 4)};
|
|
12
13
|
|
|
13
|
-
opacity: ${({ $isDisabled }) => ($isDisabled ? 0.5 : 1)};
|
|
14
14
|
background: ${({ theme }) => theme.palette.background.default};
|
|
15
15
|
|
|
16
16
|
transition: ${({ theme }) => theme.transitions.create('background-color', {
|
|
@@ -19,9 +19,26 @@ export const Wrapper = styled.div `
|
|
|
19
19
|
})};
|
|
20
20
|
|
|
21
21
|
&:hover {
|
|
22
|
-
background-color: ${({ theme
|
|
23
|
-
|
|
24
|
-
|
|
22
|
+
background-color: ${({ theme }) => theme.palette.background.elementHover};
|
|
23
|
+
}
|
|
24
|
+
|
|
25
|
+
&.${infiniteTreeListItemClassnames.hasNested} {
|
|
26
|
+
cursor: pointer;
|
|
27
|
+
}
|
|
28
|
+
|
|
29
|
+
&.${infiniteTreeListItemClassnames.loading} {
|
|
30
|
+
cursor: default;
|
|
31
|
+
}
|
|
32
|
+
|
|
33
|
+
&.${infiniteTreeListItemClassnames.disabled} {
|
|
34
|
+
cursor: default;
|
|
35
|
+
|
|
36
|
+
opacity: 0.5;
|
|
37
|
+
}
|
|
38
|
+
|
|
39
|
+
&.${infiniteTreeListItemClassnames.loading}:hover,
|
|
40
|
+
&.${infiniteTreeListItemClassnames.disabled}:hover {
|
|
41
|
+
background-color: ${({ theme }) => theme.palette.background.default};
|
|
25
42
|
}
|
|
26
43
|
`;
|
|
27
44
|
export const ActionsWrapper = styled.div `
|
|
@@ -29,3 +46,9 @@ export const ActionsWrapper = styled.div `
|
|
|
29
46
|
|
|
30
47
|
margin-left: auto;
|
|
31
48
|
`;
|
|
49
|
+
export const LoaderWrapper = styled.div `
|
|
50
|
+
display: flex;
|
|
51
|
+
justify-content: center;
|
|
52
|
+
|
|
53
|
+
width: 100%;
|
|
54
|
+
`;
|