@rio-cloud/rio-uikit 1.6.0 → 1.7.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/.DS_Store +0 -0
- package/AccentBar.d.ts +2 -0
- package/AccentBar.js +2 -0
- package/Avatar.d.ts +2 -0
- package/Avatar.js +2 -0
- package/AvatarGroup.d.ts +2 -0
- package/AvatarGroup.js +2 -0
- package/Banner.d.ts +2 -0
- package/Banner.js +2 -0
- package/ButtonToolbar.d.ts +2 -0
- package/ButtonToolbar.js +2 -0
- package/Card.d.ts +2 -0
- package/Card.js +2 -0
- package/DateRangePicker.js +2 -3
- package/FormLabel.d.ts +2 -0
- package/FormLabel.js +2 -0
- package/LabeledElement.d.ts +2 -0
- package/LabeledElement.js +2 -0
- package/StepButton.d.ts +2 -0
- package/StepButton.js +2 -0
- package/VirtualList.d.ts +2 -0
- package/VirtualList.js +2 -0
- package/components/accentBar/AccentBar.d.ts +21 -0
- package/components/accentBar/AccentBar.js +12 -0
- package/components/actionBarItem/ActionBarItem.d.ts +2 -6
- package/components/actionBarItem/ActionBarItem.js +6 -7
- package/components/actionBarItem/ActionBarItemIcon.d.ts +2 -2
- package/components/actionBarItem/ActionBarItemIcon.js +2 -3
- package/components/actionBarItem/ActionBarItemList.js +2 -6
- package/components/actionBarItem/ActionBarItemListItem.js +2 -5
- package/components/actionBarItem/ActionBarItemListSeparator.js +2 -6
- package/components/actionBarItem/ActionBarItemPopoverContent.js +2 -6
- package/components/actionBarItem/ActionBarOverlay.d.ts +1 -1
- package/components/actionBarItem/ActionBarOverlay.js +3 -4
- package/components/activity/Activity.js +2 -3
- package/components/animatedNumber/AnimatedNumber.d.ts +6 -6
- package/components/animatedNumber/AnimatedNumber.js +2 -3
- package/components/applicationHeader/AppMenu.js +3 -6
- package/components/applicationHeader/AppMenuContent.js +2 -4
- package/components/applicationHeader/AppMenuDropdown.js +4 -4
- package/components/applicationHeader/ApplicationActionBar.js +4 -7
- package/components/applicationHeader/ApplicationHeader.js +4 -5
- package/components/applicationHeader/CollapsedNavItem.js +3 -3
- package/components/applicationHeader/MobileAppMenu.js +2 -2
- package/components/applicationHeader/MobileHeaderModal.js +2 -2
- package/components/applicationHeader/MobileSubmoduleNavigation.js +3 -3
- package/components/applicationHeader/NavItems.js +2 -2
- package/components/applicationLayout/ApplicationLayout.js +2 -4
- package/components/applicationLayout/ApplicationLayoutBody.d.ts +1 -1
- package/components/applicationLayout/ApplicationLayoutBody.js +9 -9
- package/components/applicationLayout/ApplicationLayoutBodyBanner.d.ts +1 -1
- package/components/applicationLayout/ApplicationLayoutBodyBanner.js +2 -3
- package/components/applicationLayout/ApplicationLayoutBodyBottomBar.js +2 -3
- package/components/applicationLayout/ApplicationLayoutBodyNavigation.d.ts +1 -1
- package/components/applicationLayout/ApplicationLayoutBodyNavigation.js +2 -3
- package/components/applicationLayout/ApplicationLayoutHeader.d.ts +1 -1
- package/components/applicationLayout/ApplicationLayoutHeader.js +2 -3
- package/components/applicationLayout/ApplicationLayoutSidebar.d.ts +1 -1
- package/components/applicationLayout/ApplicationLayoutSidebar.js +2 -3
- package/components/applicationLayout/SubNavigation.js +2 -3
- package/components/aspectRatioPlaceholder/AspectRatioPlaceholder.js +1 -3
- package/components/assetTree/AssetTree.d.ts +1 -1
- package/components/assetTree/AssetTree.js +4 -5
- package/components/assetTree/Tree.d.ts +2 -2
- package/components/assetTree/Tree.js +9 -12
- package/components/assetTree/TreeLeaf.js +1 -1
- package/components/assetTree/TreeLeafList.js +0 -2
- package/components/assetTree/TreeNode.js +1 -1
- package/components/assetTree/TreeNodeContainer.js +1 -3
- package/components/assetTree/TreeNothingFound.js +2 -2
- package/components/assetTree/TreeOption.js +2 -5
- package/components/assetTree/TreeOptions.js +3 -5
- package/components/assetTree/TreeRoot.js +1 -3
- package/components/assetTree/TreeSearch.js +1 -1
- package/components/assetTree/TreeSelectAll.js +1 -3
- package/components/assetTree/TreeSidebar.js +2 -3
- package/components/assetTree/TreeSidebarCategories.js +2 -4
- package/components/assetTree/TreeSummary.js +1 -1
- package/components/assetTree/TreeSummaryRow.js +1 -3
- package/components/assetTree/TypeCounter.js +2 -3
- package/components/assetTree/treeReducer.js +8 -8
- package/components/assetTree/treeUtils.d.ts +0 -2
- package/components/assetTree/treeUtils.js +14 -11
- package/components/autosuggest/AutoSuggest.js +12 -16
- package/components/autosuggest/AutoSuggestAddons.js +1 -3
- package/components/autosuggest/DropdownSpinner.js +1 -2
- package/components/autosuggest/NoItemMessage.js +1 -3
- package/components/avatar/Avatar.d.ts +54 -0
- package/components/avatar/Avatar.js +27 -0
- package/components/avatar/AvatarContent.d.ts +10 -0
- package/components/avatar/AvatarContent.js +20 -0
- package/components/avatar/AvatarGroup.d.ts +15 -0
- package/components/avatar/AvatarGroup.js +23 -0
- package/components/banner/Banner.d.ts +66 -0
- package/components/banner/Banner.js +49 -0
- package/components/banner/BannerActions.d.ts +9 -0
- package/components/banner/BannerActions.js +5 -0
- package/components/banner/BannerContent.d.ts +25 -0
- package/components/banner/BannerContent.js +16 -0
- package/components/banner/BannerIcon.d.ts +9 -0
- package/components/banner/BannerIcon.js +5 -0
- package/components/banner/BannerPage.d.ts +9 -0
- package/components/banner/BannerPage.js +5 -0
- package/components/bottomSheet/BottomSheet.d.ts +2 -2
- package/components/bottomSheet/BottomSheet.js +5 -6
- package/components/bottomSheet/TimedBottomSheet.js +3 -4
- package/components/button/Button.d.ts +2 -0
- package/components/button/Button.js +4 -5
- package/components/button/ButtonToolbar.d.ts +13 -0
- package/components/button/ButtonToolbar.js +8 -0
- package/components/button/StepButton.d.ts +12 -0
- package/components/button/StepButton.js +8 -0
- package/components/button/ToggleButton.js +1 -3
- package/components/calendarStripe/CalendarStripe.js +1 -1
- package/components/card/Card.d.ts +21 -0
- package/components/card/Card.js +8 -0
- package/components/carousel/Carousel.d.ts +4 -6
- package/components/charts/AreaChart.js +6 -9
- package/components/charts/AreaGradient.js +1 -2
- package/components/charts/BarChart.js +13 -12
- package/components/charts/ChartGrid.js +1 -1
- package/components/charts/ChartLabel.d.ts +0 -1
- package/components/charts/ChartNeedle.js +13 -4
- package/components/charts/ComposedChart.js +13 -16
- package/components/charts/Legend.js +0 -2
- package/components/charts/LineChart.js +7 -10
- package/components/charts/PieChart.js +6 -9
- package/components/charts/RadialBarChart.js +5 -8
- package/components/charts/ReferenceLine.js +3 -6
- package/components/charts/ResponsiveContainer.js +1 -1
- package/components/charts/XAxis.js +2 -2
- package/components/charts/YAxis.d.ts +0 -1
- package/components/charts/chartHelper.d.ts +2 -2
- package/components/charts/chartHelper.js +1 -1
- package/components/checkbox/Checkbox.js +4 -7
- package/components/checkbox/CheckboxIcon.js +1 -1
- package/components/clearableInput/ClearableInput.js +18 -7
- package/components/collapse/Collapse.d.ts +1 -1
- package/components/collapse/Collapse.js +1 -3
- package/components/contentLoader/ContentLoader.js +2 -5
- package/components/dataTabs/DataTab.js +3 -6
- package/components/dataTabs/DataTabHeader.js +1 -1
- package/components/dataTabs/DataTabs.js +7 -9
- package/components/datepicker/DatePicker.d.ts +16 -16
- package/components/datepicker/DatePicker.js +3 -4
- package/components/datepicker/DateRangePicker.d.ts +55 -55
- package/components/datepicker/DateRangePicker.js +28 -14
- package/components/dialog/ConfirmationDialog.js +3 -6
- package/components/dialog/Dialog.d.ts +2 -2
- package/components/dialog/Dialog.js +13 -13
- package/components/dialog/DialogBody.js +2 -6
- package/components/dialog/DialogFooter.js +2 -5
- package/components/dialog/DialogHeader.js +2 -3
- package/components/dialog/FrameDialog.js +2 -2
- package/components/dialog/InfoDialog.js +2 -5
- package/components/dialog/MediaDialog.js +7 -9
- package/components/dialog/OnboardingDialog.js +2 -5
- package/components/dialog/ReleaseNotesDialog.js +1 -3
- package/components/dialog/SaveDialog.js +3 -6
- package/components/dialog/SimpleDialog.js +2 -5
- package/components/dialog/SplitDialog.js +3 -6
- package/components/divider/Divider.js +3 -5
- package/components/dropdown/ButtonDropdown.d.ts +1 -1
- package/components/dropdown/ButtonDropdown.js +11 -11
- package/components/dropdown/Caret.js +0 -2
- package/components/dropdown/DropdownSubmenu.js +2 -3
- package/components/dropdown/DropdownToggleButton.js +2 -3
- package/components/dropdown/SimpleButtonDropdown.js +1 -3
- package/components/dropdown/SingleButtonDropdown.js +1 -3
- package/components/dropdown/SplitButtonDropdown.js +1 -3
- package/components/dropdown/SplitCaretButton.js +2 -3
- package/components/editableContent/EditableContent.js +6 -9
- package/components/expander/ExpanderList.js +5 -5
- package/components/expander/ExpanderPanel.js +2 -3
- package/components/fade/Fade.js +2 -2
- package/components/fade/FadeExpander.js +2 -2
- package/components/fade/FadeUp.js +2 -3
- package/components/feedback/FeedbackInlineButtons.js +2 -5
- package/components/feedback/FeedbackRating.js +4 -6
- package/components/feedback/FeedbackReactions.js +4 -5
- package/components/filepicker/FilePicker.js +5 -6
- package/components/formLabel/FormLabel.d.ts +13 -0
- package/components/formLabel/FormLabel.js +17 -0
- package/components/formLabel/LabeledElement.d.ts +28 -0
- package/components/formLabel/LabeledElement.js +11 -0
- package/components/groupedItemList/GroupedItemList.js +2 -5
- package/components/licensePlate/LicensePlate.js +4 -6
- package/components/listMenu/ListMenu.d.ts +1 -0
- package/components/listMenu/ListMenu.js +11 -11
- package/components/listMenu/ListMenuGroup.d.ts +17 -0
- package/components/listMenu/ListMenuGroup.js +1 -3
- package/components/listMenu/ListMenuHeader.d.ts +3 -1
- package/components/listMenu/ListMenuHeader.js +3 -5
- package/components/loadMore/LoadMoreButton.js +2 -5
- package/components/loadMore/LoadMoreProgress.js +1 -1
- package/components/map/components/Map.js +5 -7
- package/components/map/components/MapContext.d.ts +0 -1
- package/components/map/components/MapElements.js +1 -1
- package/components/map/components/MapPosition.js +3 -5
- package/components/map/components/MapSize.js +3 -3
- package/components/map/components/constants.d.ts +1 -2
- package/components/map/components/features/ContextMenu.d.ts +0 -2
- package/components/map/components/features/ContextMenu.js +3 -4
- package/components/map/components/features/ContextMenuItem.d.ts +0 -1
- package/components/map/components/features/MapSettings.d.ts +0 -1
- package/components/map/components/features/MapSettings.js +6 -7
- package/components/map/components/features/MapZoom.js +6 -9
- package/components/map/components/features/Route.d.ts +1 -1
- package/components/map/components/features/Route.js +23 -4
- package/components/map/components/features/basics/Circle.d.ts +0 -1
- package/components/map/components/features/basics/Circle.js +3 -5
- package/components/map/components/features/basics/InfoBubble.d.ts +0 -1
- package/components/map/components/features/basics/InfoBubble.js +4 -6
- package/components/map/components/features/basics/Marker.d.ts +2 -3
- package/components/map/components/features/basics/Marker.js +2 -4
- package/components/map/components/features/basics/Polygon.d.ts +0 -1
- package/components/map/components/features/basics/Polygon.js +3 -5
- package/components/map/components/features/basics/Polyline.d.ts +0 -1
- package/components/map/components/features/basics/Polyline.js +18 -7
- package/components/map/components/features/basics/TextMarker.js +2 -5
- package/components/map/components/features/layers/MapLayerGroup.js +11 -7
- package/components/map/components/features/layers/MapOverlayLayers.js +0 -1
- package/components/map/components/features/layers/MarkerLayer.js +6 -6
- package/components/map/components/features/layers/clustering/ClusterLayer.d.ts +0 -1
- package/components/map/components/features/layers/clustering/ClusterLayer.js +2 -4
- package/components/map/components/features/layers/clustering/SimpleClusterLayer.js +2 -4
- package/components/map/components/features/layers/overlayLayers/IncidentsLayer.js +13 -16
- package/components/map/components/features/layers/overlayLayers/Layer.d.ts +0 -1
- package/components/map/components/features/layers/overlayLayers/Layer.js +4 -8
- package/components/map/components/features/layers/overlayLayers/RoadRestrictionLayer.js +2 -5
- package/components/map/components/features/layers/overlayLayers/TrafficLayer.js +4 -8
- package/components/map/components/features/settings/MapSettingsItem.js +3 -3
- package/components/map/components/features/settings/MapSettingsPanel.js +2 -4
- package/components/map/components/features/settings/MapSettingsTile.js +9 -10
- package/components/map/components/features/settings/ZoomButtons.js +1 -3
- package/components/map/components/features/settings/builtinSettings/MapAdditionalLayerSettings.js +2 -5
- package/components/map/components/features/settings/builtinSettings/MapClusterSettings.js +2 -5
- package/components/map/components/features/settings/builtinSettings/MapLayerSettings.js +8 -13
- package/components/map/components/features/settings/builtinSettings/MapTypeSettings.js +3 -4
- package/components/map/components/features/settings/buttons/MapBoundingBoxButton.js +2 -5
- package/components/map/components/features/settings/buttons/MapCenterMarkerButton.js +2 -5
- package/components/map/components/features/settings/buttons/MapLockMarkerButton.js +2 -5
- package/components/map/components/features/settings/items/MapCustomerPoiSettingsItem.d.ts +0 -1
- package/components/map/components/features/settings/items/MapCustomerPoiSettingsItem.js +2 -4
- package/components/map/components/features/settings/items/MapLayerIncidentsItem.d.ts +0 -1
- package/components/map/components/features/settings/items/MapLayerIncidentsItem.js +2 -4
- package/components/map/components/features/settings/items/MapLayerRoadRestrictionsItem.d.ts +0 -1
- package/components/map/components/features/settings/items/MapLayerRoadRestrictionsItem.js +2 -4
- package/components/map/components/features/settings/items/MapLayerTrafficItem.d.ts +0 -1
- package/components/map/components/features/settings/items/MapLayerTrafficItem.js +2 -4
- package/components/map/components/features/settings/items/MapSettingsDropdownHeader.js +2 -4
- package/components/map/components/features/settings/items/MapWorkshopPoiSettingsItem.d.ts +0 -1
- package/components/map/components/features/settings/items/MapWorkshopPoiSettingsItem.js +2 -4
- package/components/map/icons/MapIcon.js +35 -35
- package/components/map/utils/clustering.d.ts +0 -1
- package/components/map/utils/eventHandling.d.ts +0 -1
- package/components/map/utils/eventHandling.js +1 -1
- package/components/map/utils/mapTypes.d.ts +0 -2
- package/components/map/utils/mapUi.d.ts +0 -1
- package/components/map/utils/mapUtils.d.ts +0 -1
- package/components/map/utils/mapUtils.js +5 -5
- package/components/map/utils/positions.js +2 -2
- package/components/map/utils/rendering.d.ts +0 -1
- package/components/map/utils/rendering.js +8 -10
- package/components/mapMarker/ClusterMapMarker.js +1 -2
- package/components/mapMarker/SingleMapMarker.js +4 -7
- package/components/menuItems/MenuItem.js +1 -1
- package/components/menuItems/MenuItemList.js +2 -3
- package/components/menuItems/MenuItems.js +1 -5
- package/components/navigation/AppNavigationBar.d.ts +17 -0
- package/components/navigation/AppNavigationBar.js +3 -4
- package/components/noData/NoData.js +3 -6
- package/components/notification/Notification.d.ts +50 -30
- package/components/notification/Notification.js +96 -3
- package/components/notification/NotificationsContainer.d.ts +2 -0
- package/components/notification/NotificationsContainer.js +2 -4
- package/components/numberControl/NumberControl.js +3 -4
- package/components/numberInput/NumberInput.js +4 -5
- package/components/onboarding/OnboardingTip.js +3 -5
- package/components/overlay/OverlayTrigger.js +29 -14
- package/components/page/Page.js +1 -3
- package/components/pager/Pager.js +4 -5
- package/components/popover/Popover.d.ts +5 -5
- package/components/popover/Popover.js +4 -6
- package/components/position/Position.js +1 -2
- package/components/radiobutton/RadioButton.js +3 -4
- package/components/releaseNotes/ReleaseNotes.js +3 -6
- package/components/resizer/Resizer.js +2 -3
- package/components/responsiveColumnStripe/ResponsiveColumnStripe.d.ts +1 -1
- package/components/responsiveColumnStripe/ResponsiveColumnStripe.js +8 -12
- package/components/rules/RuleConnector.js +2 -5
- package/components/rules/RuleContainer.js +4 -6
- package/components/rules/RulesWrapper.js +3 -9
- package/components/saveableInput/SaveableInput.js +4 -6
- package/components/selects/BaseSelectDropdown.js +9 -9
- package/components/selects/ClearButton.js +1 -3
- package/components/selects/DropdownHeader.js +1 -3
- package/components/selects/Multiselect.js +7 -9
- package/components/selects/MultiselectToggleCounter.js +1 -3
- package/components/selects/MultiselectToggleFilter.js +0 -2
- package/components/selects/MultiselectTogglePlaceholder.js +1 -3
- package/components/selects/MultiselectToggleSelection.js +5 -7
- package/components/selects/NoItemMessage.js +1 -3
- package/components/selects/Select.js +5 -7
- package/components/selects/SelectFilter.js +0 -2
- package/components/selects/SelectedOption.js +6 -8
- package/components/selects/WithFeedbackAndAddon.js +1 -3
- package/components/sidebars/Sidebar.js +8 -10
- package/components/sidebars/SidebarBackdrop.js +0 -1
- package/components/sidebars/SidebarCloseButton.js +1 -2
- package/components/sidebars/SidebarFooter.js +1 -3
- package/components/sidebars/SidebarFullscreenToggle.js +2 -3
- package/components/slider/RangeSlider.js +2 -3
- package/components/slider/Slider.js +2 -3
- package/components/smoothScrollbars/SmoothScrollbars.d.ts +1 -1
- package/components/smoothScrollbars/SmoothScrollbars.js +7 -7
- package/components/spinner/Spinner.js +6 -9
- package/components/states/BaseStateProps.js +1 -2
- package/components/states/CustomState.js +12 -15
- package/components/states/EmptyState.js +2 -5
- package/components/states/ErrorState.js +2 -5
- package/components/states/ForbiddenState.js +2 -5
- package/components/states/MaintenanceState.js +2 -5
- package/components/states/NotBookedState.js +4 -7
- package/components/states/NotFoundState.js +2 -5
- package/components/states/StateButton.js +2 -4
- package/components/states/StateIcon.js +0 -1
- package/components/statsWidget/StatsWidget.d.ts +4 -4
- package/components/statsWidget/StatsWidget.js +3 -6
- package/components/statsWidget/StatsWidgetBody.js +2 -5
- package/components/statsWidget/StatsWidgetFooter.js +2 -5
- package/components/statsWidget/StatsWidgetHeader.js +2 -5
- package/components/statsWidget/StatsWidgetNumber.js +2 -5
- package/components/statsWidget/StatsWidgetSpacer.js +2 -4
- package/components/statsWidget/StatsWidgets.js +2 -5
- package/components/statusBar/StatusBar.js +3 -5
- package/components/statusBar/StatusBarIcon.js +2 -5
- package/components/statusBar/StatusBarLabel.js +2 -5
- package/components/statusBar/StatusBarProgressBar.js +2 -3
- package/components/steppedProgressBar/SteppedProgressBar.js +1 -1
- package/components/switch/Switch.d.ts +4 -6
- package/components/switch/Switch.js +2 -3
- package/components/table/SortArrowDown.js +0 -1
- package/components/table/SortArrowUp.js +0 -1
- package/components/table/SortArrows.js +0 -1
- package/components/table/TableCardsSorting.js +1 -1
- package/components/table/TableSearch.js +2 -4
- package/components/table/TableSettingsColumnButtons.js +3 -4
- package/components/table/TableSettingsColumnDetails.js +1 -3
- package/components/table/TableSettingsDialog.js +8 -6
- package/components/table/TableSettingsDialog.types.d.ts +0 -1
- package/components/table/TableSettingsDialogFooter.js +1 -3
- package/components/table/TableSettingsListContainer.js +1 -1
- package/components/table/TableSettingsListItem.js +2 -4
- package/components/table/TableToolbar.js +1 -3
- package/components/table/TableViewToggles.js +4 -5
- package/components/tag/Tag.js +2 -3
- package/components/tag/TagList.js +3 -6
- package/components/tagManager/CustomSuggestionItem.js +1 -3
- package/components/tagManager/TagManager.js +2 -3
- package/components/tagManager/TagManagerItemList.js +3 -4
- package/components/teaser/Teaser.js +11 -15
- package/components/teaser/TeaserContainer.js +3 -3
- package/components/timepicker/TimePicker.js +3 -4
- package/components/tooltip/SimpleTooltip.js +2 -5
- package/components/tooltip/Tooltip.js +2 -3
- package/components/video/ResponsiveVideo.js +1 -2
- package/components/virtualList/VirtualList.d.ts +59 -0
- package/components/virtualList/VirtualList.js +140 -0
- package/components/virtualList/VirtualListItemWrapper.d.ts +10 -0
- package/components/virtualList/VirtualListItemWrapper.js +13 -0
- package/components/virtualList/useVirtualListResizeObserver.d.ts +2 -0
- package/components/virtualList/useVirtualListResizeObserver.js +44 -0
- package/hooks/useClickOutside.d.ts +4 -3
- package/hooks/useClickOutside.js +10 -4
- package/hooks/useClipboard.js +1 -1
- package/hooks/useDebugInfo.js +6 -3
- package/hooks/useFocusTrap.js +7 -7
- package/hooks/useFullscreen.js +8 -9
- package/hooks/useHover.d.ts +2 -2
- package/hooks/useInterval.js +1 -1
- package/hooks/useKey.d.ts +1 -1
- package/hooks/useMutationObserver.js +1 -1
- package/hooks/usePostMessage.d.ts +1 -1
- package/hooks/useResizeObserver.js +3 -4
- package/hooks/useStorage.d.ts +2 -3
- package/hooks/useTimeout.js +2 -2
- package/hooks/useToggle.d.ts +13 -0
- package/hooks/useToggle.js +31 -0
- package/hooks/useUncontrollable.js +7 -4
- package/lib/es/AccentBar.d.ts +2 -0
- package/lib/es/AccentBar.js +7 -0
- package/lib/es/Avatar.d.ts +2 -0
- package/lib/es/Avatar.js +7 -0
- package/lib/es/AvatarGroup.d.ts +2 -0
- package/lib/es/AvatarGroup.js +7 -0
- package/lib/es/Banner.d.ts +2 -0
- package/lib/es/Banner.js +7 -0
- package/lib/es/ButtonToolbar.d.ts +2 -0
- package/lib/es/ButtonToolbar.js +7 -0
- package/lib/es/Card.d.ts +2 -0
- package/lib/es/Card.js +7 -0
- package/lib/es/Colors.js +2 -4
- package/lib/es/DateRangePicker.js +2 -2
- package/lib/es/FormLabel.d.ts +2 -0
- package/lib/es/FormLabel.js +7 -0
- package/lib/es/LabeledElement.d.ts +2 -0
- package/lib/es/LabeledElement.js +7 -0
- package/lib/es/StatsWidgets.js +2 -4
- package/lib/es/StepButton.d.ts +2 -0
- package/lib/es/{Onboarding.js → StepButton.js} +3 -3
- package/lib/es/TagList.js +2 -4
- package/lib/es/VirtualList.d.ts +2 -0
- package/lib/es/VirtualList.js +7 -0
- package/lib/es/components/accentBar/AccentBar.d.ts +21 -0
- package/lib/es/components/accentBar/AccentBar.js +15 -0
- package/lib/es/components/actionBarItem/ActionBarItem.d.ts +2 -6
- package/lib/es/components/actionBarItem/ActionBarItem.js +6 -6
- package/lib/es/components/actionBarItem/ActionBarItemIcon.d.ts +2 -2
- package/lib/es/components/actionBarItem/ActionBarItemIcon.js +2 -2
- package/lib/es/components/actionBarItem/ActionBarItemList.js +2 -5
- package/lib/es/components/actionBarItem/ActionBarItemListItem.js +2 -4
- package/lib/es/components/actionBarItem/ActionBarItemListSeparator.js +2 -5
- package/lib/es/components/actionBarItem/ActionBarItemPopoverContent.js +2 -5
- package/lib/es/components/actionBarItem/ActionBarOverlay.d.ts +1 -1
- package/lib/es/components/actionBarItem/ActionBarOverlay.js +3 -3
- package/lib/es/components/activity/Activity.js +2 -2
- package/lib/es/components/animatedNumber/AnimatedNumber.d.ts +6 -6
- package/lib/es/components/animatedNumber/AnimatedNumber.js +2 -2
- package/lib/es/components/applicationHeader/AppMenu.js +3 -5
- package/lib/es/components/applicationHeader/AppMenuContent.js +2 -4
- package/lib/es/components/applicationHeader/AppMenuDropdown.js +4 -4
- package/lib/es/components/applicationHeader/ApplicationActionBar.js +4 -7
- package/lib/es/components/applicationHeader/ApplicationHeader.js +4 -4
- package/lib/es/components/applicationHeader/CollapsedNavItem.js +3 -3
- package/lib/es/components/applicationHeader/MobileAppMenu.js +2 -2
- package/lib/es/components/applicationHeader/MobileHeaderModal.js +2 -2
- package/lib/es/components/applicationHeader/MobileSubmoduleNavigation.js +3 -3
- package/lib/es/components/applicationHeader/NavItems.js +2 -2
- package/lib/es/components/applicationLayout/ApplicationLayout.js +2 -3
- package/lib/es/components/applicationLayout/ApplicationLayoutBody.d.ts +1 -1
- package/lib/es/components/applicationLayout/ApplicationLayoutBody.js +9 -8
- package/lib/es/components/applicationLayout/ApplicationLayoutBodyBanner.d.ts +1 -1
- package/lib/es/components/applicationLayout/ApplicationLayoutBodyBanner.js +2 -2
- package/lib/es/components/applicationLayout/ApplicationLayoutBodyBottomBar.js +2 -2
- package/lib/es/components/applicationLayout/ApplicationLayoutBodyNavigation.d.ts +1 -1
- package/lib/es/components/applicationLayout/ApplicationLayoutBodyNavigation.js +2 -2
- package/lib/es/components/applicationLayout/ApplicationLayoutHeader.d.ts +1 -1
- package/lib/es/components/applicationLayout/ApplicationLayoutHeader.js +2 -2
- package/lib/es/components/applicationLayout/ApplicationLayoutSidebar.d.ts +1 -1
- package/lib/es/components/applicationLayout/ApplicationLayoutSidebar.js +2 -2
- package/lib/es/components/applicationLayout/SubNavigation.js +2 -2
- package/lib/es/components/aspectRatioPlaceholder/AspectRatioPlaceholder.js +1 -3
- package/lib/es/components/assetTree/AssetTree.d.ts +1 -1
- package/lib/es/components/assetTree/AssetTree.js +4 -4
- package/lib/es/components/assetTree/Tree.d.ts +2 -2
- package/lib/es/components/assetTree/Tree.js +9 -11
- package/lib/es/components/assetTree/TreeLeaf.js +1 -1
- package/lib/es/components/assetTree/TreeLeafList.js +0 -2
- package/lib/es/components/assetTree/TreeNode.js +1 -1
- package/lib/es/components/assetTree/TreeNodeContainer.js +1 -3
- package/lib/es/components/assetTree/TreeNothingFound.js +2 -2
- package/lib/es/components/assetTree/TreeOption.js +2 -4
- package/lib/es/components/assetTree/TreeOptions.js +3 -5
- package/lib/es/components/assetTree/TreeRoot.js +1 -3
- package/lib/es/components/assetTree/TreeSearch.js +1 -1
- package/lib/es/components/assetTree/TreeSelectAll.js +1 -3
- package/lib/es/components/assetTree/TreeSidebar.js +2 -2
- package/lib/es/components/assetTree/TreeSidebarCategories.js +2 -4
- package/lib/es/components/assetTree/TreeSummary.js +1 -1
- package/lib/es/components/assetTree/TreeSummaryRow.js +1 -3
- package/lib/es/components/assetTree/TypeCounter.js +2 -2
- package/lib/es/components/assetTree/treeReducer.js +8 -8
- package/lib/es/components/assetTree/treeUtils.d.ts +0 -2
- package/lib/es/components/assetTree/treeUtils.js +14 -11
- package/lib/es/components/autosuggest/AutoSuggest.js +12 -15
- package/lib/es/components/autosuggest/AutoSuggestAddons.js +1 -3
- package/lib/es/components/autosuggest/DropdownSpinner.js +1 -2
- package/lib/es/components/autosuggest/NoItemMessage.js +1 -3
- package/lib/es/components/avatar/Avatar.d.ts +54 -0
- package/lib/es/components/avatar/Avatar.js +30 -0
- package/lib/es/components/avatar/AvatarContent.d.ts +10 -0
- package/lib/es/components/avatar/AvatarContent.js +22 -0
- package/lib/es/components/avatar/AvatarGroup.d.ts +15 -0
- package/lib/es/components/avatar/AvatarGroup.js +26 -0
- package/lib/es/components/banner/Banner.d.ts +66 -0
- package/lib/es/components/banner/Banner.js +52 -0
- package/lib/es/components/banner/BannerActions.d.ts +9 -0
- package/lib/es/components/banner/BannerActions.js +7 -0
- package/lib/es/components/banner/BannerContent.d.ts +25 -0
- package/lib/es/components/banner/BannerContent.js +19 -0
- package/lib/es/components/banner/BannerIcon.d.ts +9 -0
- package/lib/es/components/banner/BannerIcon.js +7 -0
- package/lib/es/components/banner/BannerPage.d.ts +9 -0
- package/lib/es/components/banner/BannerPage.js +7 -0
- package/lib/es/components/bottomSheet/BottomSheet.d.ts +2 -2
- package/lib/es/components/bottomSheet/BottomSheet.js +5 -5
- package/lib/es/components/bottomSheet/TimedBottomSheet.js +3 -3
- package/lib/es/components/button/Button.d.ts +2 -0
- package/lib/es/components/button/Button.js +4 -4
- package/lib/es/components/button/ButtonToolbar.d.ts +13 -0
- package/lib/es/components/button/ButtonToolbar.js +11 -0
- package/lib/es/components/button/StepButton.d.ts +12 -0
- package/lib/es/components/button/StepButton.js +11 -0
- package/lib/es/components/button/ToggleButton.js +1 -3
- package/lib/es/components/calendarStripe/CalendarStripe.js +1 -1
- package/lib/es/components/card/Card.d.ts +21 -0
- package/lib/es/components/card/Card.js +11 -0
- package/lib/es/components/carousel/Carousel.d.ts +4 -6
- package/lib/es/components/charts/AreaChart.js +6 -8
- package/lib/es/components/charts/AreaGradient.js +1 -2
- package/lib/es/components/charts/BarChart.js +13 -11
- package/lib/es/components/charts/ChartGrid.js +0 -1
- package/lib/es/components/charts/ChartLabel.d.ts +0 -1
- package/lib/es/components/charts/ChartNeedle.js +13 -4
- package/lib/es/components/charts/ComposedChart.js +13 -15
- package/lib/es/components/charts/Legend.js +0 -2
- package/lib/es/components/charts/LineChart.js +7 -9
- package/lib/es/components/charts/PieChart.js +6 -8
- package/lib/es/components/charts/RadialBarChart.js +5 -7
- package/lib/es/components/charts/ReferenceLine.js +3 -6
- package/lib/es/components/charts/ResponsiveContainer.js +0 -1
- package/lib/es/components/charts/XAxis.js +2 -2
- package/lib/es/components/charts/YAxis.d.ts +0 -1
- package/lib/es/components/charts/chartHelper.d.ts +2 -2
- package/lib/es/components/charts/chartHelper.js +1 -1
- package/lib/es/components/checkbox/Checkbox.js +4 -6
- package/lib/es/components/checkbox/CheckboxIcon.js +1 -1
- package/lib/es/components/clearableInput/ClearableInput.js +18 -6
- package/lib/es/components/collapse/Collapse.d.ts +1 -1
- package/lib/es/components/collapse/Collapse.js +1 -3
- package/lib/es/components/contentLoader/ContentLoader.js +2 -4
- package/lib/es/components/dataTabs/DataTab.js +3 -6
- package/lib/es/components/dataTabs/DataTabHeader.js +1 -1
- package/lib/es/components/dataTabs/DataTabs.js +7 -8
- package/lib/es/components/datepicker/DatePicker.d.ts +16 -16
- package/lib/es/components/datepicker/DatePicker.js +3 -3
- package/lib/es/components/datepicker/DateRangePicker.d.ts +55 -55
- package/lib/es/components/datepicker/DateRangePicker.js +28 -14
- package/lib/es/components/dialog/ConfirmationDialog.js +3 -5
- package/lib/es/components/dialog/Dialog.d.ts +2 -2
- package/lib/es/components/dialog/Dialog.js +12 -11
- package/lib/es/components/dialog/DialogBody.js +2 -5
- package/lib/es/components/dialog/DialogFooter.js +2 -4
- package/lib/es/components/dialog/DialogHeader.js +2 -2
- package/lib/es/components/dialog/FrameDialog.js +2 -2
- package/lib/es/components/dialog/InfoDialog.js +2 -4
- package/lib/es/components/dialog/MediaDialog.js +6 -7
- package/lib/es/components/dialog/OnboardingDialog.js +2 -4
- package/lib/es/components/dialog/ReleaseNotesDialog.js +1 -3
- package/lib/es/components/dialog/SaveDialog.js +3 -5
- package/lib/es/components/dialog/SimpleDialog.js +2 -4
- package/lib/es/components/dialog/SplitDialog.js +3 -5
- package/lib/es/components/divider/Divider.js +3 -5
- package/lib/es/components/dropdown/ButtonDropdown.d.ts +1 -1
- package/lib/es/components/dropdown/ButtonDropdown.js +11 -10
- package/lib/es/components/dropdown/Caret.js +0 -2
- package/lib/es/components/dropdown/DropdownSubmenu.js +2 -2
- package/lib/es/components/dropdown/DropdownToggleButton.js +2 -2
- package/lib/es/components/dropdown/SimpleButtonDropdown.js +1 -3
- package/lib/es/components/dropdown/SingleButtonDropdown.js +1 -3
- package/lib/es/components/dropdown/SplitButtonDropdown.js +1 -3
- package/lib/es/components/dropdown/SplitCaretButton.js +2 -2
- package/lib/es/components/editableContent/EditableContent.js +6 -8
- package/lib/es/components/expander/ExpanderList.js +5 -5
- package/lib/es/components/expander/ExpanderPanel.js +2 -2
- package/lib/es/components/fade/Fade.js +2 -2
- package/lib/es/components/fade/FadeExpander.js +2 -2
- package/lib/es/components/fade/FadeUp.js +2 -2
- package/lib/es/components/feedback/FeedbackInlineButtons.js +2 -5
- package/lib/es/components/feedback/FeedbackRating.js +4 -5
- package/lib/es/components/feedback/FeedbackReactions.js +4 -4
- package/lib/es/components/filepicker/FilePicker.js +5 -5
- package/lib/es/components/formLabel/FormLabel.d.ts +13 -0
- package/lib/es/components/formLabel/FormLabel.js +20 -0
- package/lib/es/components/formLabel/LabeledElement.d.ts +28 -0
- package/lib/es/components/formLabel/LabeledElement.js +14 -0
- package/lib/es/components/groupedItemList/GroupedItemList.js +2 -5
- package/lib/es/components/licensePlate/LicensePlate.js +4 -6
- package/lib/es/components/listMenu/ListMenu.d.ts +1 -0
- package/lib/es/components/listMenu/ListMenu.js +11 -10
- package/lib/es/components/listMenu/ListMenuGroup.d.ts +17 -0
- package/lib/es/components/listMenu/ListMenuGroup.js +1 -3
- package/lib/es/components/listMenu/ListMenuHeader.d.ts +3 -1
- package/lib/es/components/listMenu/ListMenuHeader.js +2 -4
- package/lib/es/components/loadMore/LoadMoreButton.js +2 -4
- package/lib/es/components/loadMore/LoadMoreProgress.js +1 -1
- package/lib/es/components/map/components/Map.js +5 -7
- package/lib/es/components/map/components/MapContext.d.ts +0 -1
- package/lib/es/components/map/components/MapElements.js +1 -1
- package/lib/es/components/map/components/MapPosition.js +3 -5
- package/lib/es/components/map/components/MapSize.js +3 -3
- package/lib/es/components/map/components/constants.d.ts +1 -2
- package/lib/es/components/map/components/features/ContextMenu.d.ts +0 -2
- package/lib/es/components/map/components/features/ContextMenu.js +3 -4
- package/lib/es/components/map/components/features/ContextMenuItem.d.ts +0 -1
- package/lib/es/components/map/components/features/MapSettings.d.ts +0 -1
- package/lib/es/components/map/components/features/MapSettings.js +6 -7
- package/lib/es/components/map/components/features/MapZoom.js +6 -9
- package/lib/es/components/map/components/features/Route.d.ts +1 -1
- package/lib/es/components/map/components/features/Route.js +24 -5
- package/lib/es/components/map/components/features/basics/Circle.d.ts +0 -1
- package/lib/es/components/map/components/features/basics/Circle.js +3 -5
- package/lib/es/components/map/components/features/basics/InfoBubble.d.ts +0 -1
- package/lib/es/components/map/components/features/basics/InfoBubble.js +4 -6
- package/lib/es/components/map/components/features/basics/Marker.d.ts +2 -3
- package/lib/es/components/map/components/features/basics/Marker.js +2 -4
- package/lib/es/components/map/components/features/basics/Polygon.d.ts +0 -1
- package/lib/es/components/map/components/features/basics/Polygon.js +3 -5
- package/lib/es/components/map/components/features/basics/Polyline.d.ts +0 -1
- package/lib/es/components/map/components/features/basics/Polyline.js +18 -7
- package/lib/es/components/map/components/features/basics/TextMarker.js +2 -4
- package/lib/es/components/map/components/features/layers/MapLayerGroup.js +11 -7
- package/lib/es/components/map/components/features/layers/MapOverlayLayers.js +0 -1
- package/lib/es/components/map/components/features/layers/MarkerLayer.js +6 -5
- package/lib/es/components/map/components/features/layers/clustering/ClusterLayer.d.ts +0 -1
- package/lib/es/components/map/components/features/layers/clustering/ClusterLayer.js +2 -4
- package/lib/es/components/map/components/features/layers/clustering/SimpleClusterLayer.js +2 -3
- package/lib/es/components/map/components/features/layers/overlayLayers/IncidentsLayer.js +13 -16
- package/lib/es/components/map/components/features/layers/overlayLayers/Layer.d.ts +0 -1
- package/lib/es/components/map/components/features/layers/overlayLayers/Layer.js +4 -8
- package/lib/es/components/map/components/features/layers/overlayLayers/RoadRestrictionLayer.js +2 -5
- package/lib/es/components/map/components/features/layers/overlayLayers/TrafficLayer.js +4 -8
- package/lib/es/components/map/components/features/settings/MapSettingsItem.js +3 -3
- package/lib/es/components/map/components/features/settings/MapSettingsPanel.js +2 -4
- package/lib/es/components/map/components/features/settings/MapSettingsTile.js +9 -9
- package/lib/es/components/map/components/features/settings/ZoomButtons.js +1 -3
- package/lib/es/components/map/components/features/settings/builtinSettings/MapAdditionalLayerSettings.js +2 -4
- package/lib/es/components/map/components/features/settings/builtinSettings/MapClusterSettings.js +2 -4
- package/lib/es/components/map/components/features/settings/builtinSettings/MapLayerSettings.js +8 -12
- package/lib/es/components/map/components/features/settings/builtinSettings/MapTypeSettings.js +3 -3
- package/lib/es/components/map/components/features/settings/buttons/MapBoundingBoxButton.js +2 -4
- package/lib/es/components/map/components/features/settings/buttons/MapCenterMarkerButton.js +2 -4
- package/lib/es/components/map/components/features/settings/buttons/MapLockMarkerButton.js +2 -4
- package/lib/es/components/map/components/features/settings/items/MapCustomerPoiSettingsItem.d.ts +0 -1
- package/lib/es/components/map/components/features/settings/items/MapCustomerPoiSettingsItem.js +2 -3
- package/lib/es/components/map/components/features/settings/items/MapLayerIncidentsItem.d.ts +0 -1
- package/lib/es/components/map/components/features/settings/items/MapLayerIncidentsItem.js +2 -3
- package/lib/es/components/map/components/features/settings/items/MapLayerRoadRestrictionsItem.d.ts +0 -1
- package/lib/es/components/map/components/features/settings/items/MapLayerRoadRestrictionsItem.js +2 -3
- package/lib/es/components/map/components/features/settings/items/MapLayerTrafficItem.d.ts +0 -1
- package/lib/es/components/map/components/features/settings/items/MapLayerTrafficItem.js +2 -3
- package/lib/es/components/map/components/features/settings/items/MapSettingsDropdownHeader.js +2 -3
- package/lib/es/components/map/components/features/settings/items/MapWorkshopPoiSettingsItem.d.ts +0 -1
- package/lib/es/components/map/components/features/settings/items/MapWorkshopPoiSettingsItem.js +2 -3
- package/lib/es/components/map/icons/MapIcon.js +35 -35
- package/lib/es/components/map/utils/clustering.d.ts +0 -1
- package/lib/es/components/map/utils/eventHandling.d.ts +0 -1
- package/lib/es/components/map/utils/eventHandling.js +1 -1
- package/lib/es/components/map/utils/mapTypes.d.ts +0 -2
- package/lib/es/components/map/utils/mapUi.d.ts +0 -1
- package/lib/es/components/map/utils/mapUtils.d.ts +0 -1
- package/lib/es/components/map/utils/mapUtils.js +5 -5
- package/lib/es/components/map/utils/positions.js +2 -2
- package/lib/es/components/map/utils/rendering.d.ts +0 -1
- package/lib/es/components/map/utils/rendering.js +8 -10
- package/lib/es/components/mapMarker/ClusterMapMarker.js +1 -2
- package/lib/es/components/mapMarker/SingleMapMarker.js +4 -7
- package/lib/es/components/menuItems/MenuItem.js +1 -1
- package/lib/es/components/menuItems/MenuItemList.js +2 -2
- package/lib/es/components/menuItems/MenuItems.js +1 -5
- package/lib/es/components/navigation/AppNavigationBar.d.ts +17 -0
- package/lib/es/components/navigation/AppNavigationBar.js +3 -3
- package/lib/es/components/noData/NoData.js +3 -5
- package/lib/es/components/notification/Notification.d.ts +50 -30
- package/lib/es/components/notification/Notification.js +99 -4
- package/lib/es/components/notification/NotificationsContainer.d.ts +2 -0
- package/lib/es/components/notification/NotificationsContainer.js +2 -4
- package/lib/es/components/numberControl/NumberControl.js +3 -3
- package/lib/es/components/numberInput/NumberInput.js +4 -4
- package/lib/es/components/onboarding/OnboardingTip.js +3 -5
- package/lib/es/components/overlay/OverlayTrigger.js +29 -14
- package/lib/es/components/page/Page.js +1 -3
- package/lib/es/components/pager/Pager.js +4 -4
- package/lib/es/components/popover/Popover.d.ts +5 -5
- package/lib/es/components/popover/Popover.js +4 -5
- package/lib/es/components/position/Position.js +1 -2
- package/lib/es/components/radiobutton/RadioButton.js +3 -3
- package/lib/es/components/releaseNotes/ReleaseNotes.js +3 -5
- package/lib/es/components/resizer/Resizer.js +2 -2
- package/lib/es/components/responsiveColumnStripe/ResponsiveColumnStripe.d.ts +1 -1
- package/lib/es/components/responsiveColumnStripe/ResponsiveColumnStripe.js +8 -11
- package/lib/es/components/rules/RuleConnector.js +2 -4
- package/lib/es/components/rules/RuleContainer.js +4 -5
- package/lib/es/components/rules/RulesWrapper.js +3 -9
- package/lib/es/components/saveableInput/SaveableInput.js +4 -5
- package/lib/es/components/selects/BaseSelectDropdown.js +8 -8
- package/lib/es/components/selects/ClearButton.js +1 -3
- package/lib/es/components/selects/DropdownHeader.js +1 -3
- package/lib/es/components/selects/Multiselect.js +7 -8
- package/lib/es/components/selects/MultiselectToggleCounter.js +1 -3
- package/lib/es/components/selects/MultiselectToggleFilter.js +0 -2
- package/lib/es/components/selects/MultiselectTogglePlaceholder.js +1 -3
- package/lib/es/components/selects/MultiselectToggleSelection.js +5 -7
- package/lib/es/components/selects/NoItemMessage.js +1 -3
- package/lib/es/components/selects/Select.js +5 -6
- package/lib/es/components/selects/SelectFilter.js +0 -2
- package/lib/es/components/selects/SelectedOption.js +5 -7
- package/lib/es/components/selects/WithFeedbackAndAddon.js +1 -3
- package/lib/es/components/sidebars/Sidebar.js +8 -9
- package/lib/es/components/sidebars/SidebarBackdrop.js +0 -1
- package/lib/es/components/sidebars/SidebarCloseButton.js +1 -2
- package/lib/es/components/sidebars/SidebarFooter.js +1 -3
- package/lib/es/components/sidebars/SidebarFullscreenToggle.js +2 -3
- package/lib/es/components/slider/RangeSlider.js +2 -2
- package/lib/es/components/slider/Slider.js +2 -2
- package/lib/es/components/smoothScrollbars/SmoothScrollbars.d.ts +1 -1
- package/lib/es/components/smoothScrollbars/SmoothScrollbars.js +7 -7
- package/lib/es/components/spinner/Spinner.js +6 -8
- package/lib/es/components/states/BaseStateProps.js +0 -2
- package/lib/es/components/states/CustomState.js +12 -14
- package/lib/es/components/states/EmptyState.js +2 -4
- package/lib/es/components/states/ErrorState.js +2 -4
- package/lib/es/components/states/ForbiddenState.js +2 -4
- package/lib/es/components/states/MaintenanceState.js +2 -4
- package/lib/es/components/states/NotBookedState.js +3 -5
- package/lib/es/components/states/NotFoundState.js +2 -4
- package/lib/es/components/states/StateButton.js +2 -4
- package/lib/es/components/states/StateIcon.js +0 -1
- package/lib/es/components/statsWidget/StatsWidget.d.ts +4 -4
- package/lib/es/components/statsWidget/StatsWidget.js +3 -5
- package/lib/es/components/statsWidget/StatsWidgetBody.js +2 -4
- package/lib/es/components/statsWidget/StatsWidgetFooter.js +2 -4
- package/lib/es/components/statsWidget/StatsWidgetHeader.js +2 -4
- package/lib/es/components/statsWidget/StatsWidgetNumber.js +2 -4
- package/lib/es/components/statsWidget/StatsWidgetSpacer.js +2 -3
- package/lib/es/components/statsWidget/StatsWidgets.js +2 -4
- package/lib/es/components/statusBar/StatusBar.js +3 -5
- package/lib/es/components/statusBar/StatusBarIcon.js +2 -5
- package/lib/es/components/statusBar/StatusBarLabel.js +2 -5
- package/lib/es/components/statusBar/StatusBarProgressBar.js +2 -3
- package/lib/es/components/steppedProgressBar/SteppedProgressBar.js +1 -1
- package/lib/es/components/switch/Switch.d.ts +4 -6
- package/lib/es/components/switch/Switch.js +2 -2
- package/lib/es/components/table/SortArrowDown.js +0 -1
- package/lib/es/components/table/SortArrowUp.js +0 -1
- package/lib/es/components/table/SortArrows.js +0 -1
- package/lib/es/components/table/TableCardsSorting.js +1 -1
- package/lib/es/components/table/TableSearch.js +2 -3
- package/lib/es/components/table/TableSettingsColumnButtons.js +3 -4
- package/lib/es/components/table/TableSettingsColumnDetails.js +1 -3
- package/lib/es/components/table/TableSettingsDialog.js +8 -6
- package/lib/es/components/table/TableSettingsDialog.types.d.ts +0 -1
- package/lib/es/components/table/TableSettingsDialogFooter.js +1 -3
- package/lib/es/components/table/TableSettingsListContainer.js +1 -1
- package/lib/es/components/table/TableSettingsListItem.js +2 -4
- package/lib/es/components/table/TableToolbar.js +1 -3
- package/lib/es/components/table/TableViewToggles.js +4 -4
- package/lib/es/components/tag/Tag.js +2 -2
- package/lib/es/components/tag/TagList.js +3 -5
- package/lib/es/components/tagManager/CustomSuggestionItem.js +1 -3
- package/lib/es/components/tagManager/TagManager.js +2 -2
- package/lib/es/components/tagManager/TagManagerItemList.js +3 -4
- package/lib/es/components/teaser/Teaser.js +11 -15
- package/lib/es/components/teaser/TeaserContainer.js +3 -3
- package/lib/es/components/timepicker/TimePicker.js +3 -3
- package/lib/es/components/tooltip/SimpleTooltip.js +2 -4
- package/lib/es/components/tooltip/Tooltip.js +2 -2
- package/lib/es/components/video/ResponsiveVideo.js +1 -2
- package/lib/es/components/virtualList/VirtualList.d.ts +59 -0
- package/lib/es/components/virtualList/VirtualList.js +145 -0
- package/lib/es/components/virtualList/VirtualListItemWrapper.d.ts +10 -0
- package/lib/es/components/virtualList/VirtualListItemWrapper.js +16 -0
- package/lib/es/components/virtualList/useVirtualListResizeObserver.d.ts +2 -0
- package/lib/es/components/virtualList/useVirtualListResizeObserver.js +46 -0
- package/lib/es/hooks/useClickOutside.d.ts +4 -3
- package/lib/es/hooks/useClickOutside.js +11 -5
- package/lib/es/hooks/useClipboard.js +1 -1
- package/lib/es/hooks/useDebugInfo.js +6 -3
- package/lib/es/hooks/useFocusTrap.js +7 -7
- package/lib/es/hooks/useFullscreen.js +8 -8
- package/lib/es/hooks/useHover.d.ts +2 -2
- package/lib/es/hooks/useInterval.js +1 -1
- package/lib/es/hooks/useKey.d.ts +1 -1
- package/lib/es/hooks/useMutationObserver.js +1 -1
- package/lib/es/hooks/usePostMessage.d.ts +1 -1
- package/lib/es/hooks/useResizeObserver.js +3 -4
- package/lib/es/hooks/useStorage.d.ts +2 -3
- package/lib/es/hooks/useTimeout.js +2 -2
- package/lib/es/hooks/useToggle.d.ts +13 -0
- package/lib/es/hooks/useToggle.js +33 -0
- package/lib/es/hooks/useUncontrollable.js +10 -8
- package/lib/es/styles/variables/colors/colors.json +7 -1
- package/lib/es/themes/Volkswagen/components/applicationHeader/VolkswagenApplicationHeader.d.ts +7 -7
- package/lib/es/themes/Volkswagen/components/applicationHeader/VolkswagenApplicationHeader.js +2 -2
- package/lib/es/useAfterMount.js +2 -4
- package/lib/es/useClipboard.js +2 -4
- package/lib/es/useDarkMode.js +2 -4
- package/lib/es/useDebugInfo.js +2 -4
- package/lib/es/useEffectOnce.js +2 -4
- package/lib/es/useElementSize.js +2 -4
- package/lib/es/useEsc.js +2 -4
- package/lib/es/useEvent.js +2 -4
- package/lib/es/useFocusTrap.js +2 -4
- package/lib/es/useFullscreen.js +2 -4
- package/lib/es/useHover.js +2 -4
- package/lib/es/useInterval.js +2 -4
- package/lib/es/useKey.js +2 -4
- package/lib/es/useToggle.d.ts +2 -0
- package/lib/es/useToggle.js +7 -0
- package/lib/es/utils/colorScheme.js +2 -3
- package/lib/es/utils/darkModeCDN.js +1 -1
- package/lib/es/utils/deviceUtils.js +5 -6
- package/lib/es/utils/init/checkForReleaseVersion.d.ts +1 -0
- package/lib/es/utils/init/checkForReleaseVersion.js +21 -0
- package/lib/es/utils/init/doNotUseTailwind.d.ts +1 -0
- package/lib/es/utils/init/doNotUseTailwind.js +57 -0
- package/lib/es/utils/init/initCSS.js +1 -2
- package/lib/es/utils/init/initDocumentBootstrapping.js +23 -27
- package/lib/es/utils/init/styledLogs.d.ts +3 -0
- package/lib/es/utils/init/styledLogs.js +7 -0
- package/lib/es/utils/init/usedUikitVersion.d.ts +1 -0
- package/lib/es/utils/init/usedUikitVersion.js +11 -0
- package/lib/es/utils/init/weAreHiring.d.ts +1 -0
- package/lib/es/utils/init/weAreHiring.js +10 -0
- package/lib/es/utils/mergeRefs.d.ts +2 -2
- package/lib/es/utils/mergeRefs.js +0 -2
- package/lib/es/utils/routeUtils.d.ts +1 -1
- package/lib/es/utils/routeUtils.js +3 -3
- package/lib/es/utils/urlFeatureToggles.d.ts +0 -1
- package/lib/es/utils/urlFeatureToggles.js +1 -2
- package/lib/es/version.json +1 -1
- package/package.json +39 -39
- package/styles/variables/colors/colors.json +7 -1
- package/themes/Volkswagen/components/applicationHeader/VolkswagenApplicationHeader.d.ts +7 -7
- package/themes/Volkswagen/components/applicationHeader/VolkswagenApplicationHeader.js +2 -3
- package/useToggle.d.ts +2 -0
- package/useToggle.js +2 -0
- package/utils/colorScheme.js +2 -3
- package/utils/darkModeCDN.js +1 -1
- package/utils/deviceUtils.js +5 -6
- package/utils/init/checkForReleaseVersion.d.ts +1 -0
- package/utils/init/checkForReleaseVersion.js +17 -0
- package/utils/init/doNotUseTailwind.d.ts +1 -0
- package/utils/init/doNotUseTailwind.js +53 -0
- package/utils/init/initCSS.js +1 -2
- package/utils/init/initDocumentBootstrapping.js +24 -28
- package/utils/init/styledLogs.d.ts +3 -0
- package/utils/init/styledLogs.js +3 -0
- package/utils/init/usedUikitVersion.d.ts +1 -0
- package/utils/init/usedUikitVersion.js +7 -0
- package/utils/init/weAreHiring.d.ts +1 -0
- package/utils/init/weAreHiring.js +6 -0
- package/utils/mergeRefs.d.ts +2 -2
- package/utils/mergeRefs.js +0 -2
- package/utils/routeUtils.d.ts +1 -1
- package/utils/routeUtils.js +3 -3
- package/utils/urlFeatureToggles.d.ts +0 -1
- package/utils/urlFeatureToggles.js +1 -2
- package/version.json +1 -1
- package/lib/es/Onboarding.d.ts +0 -2
|
@@ -5,9 +5,9 @@ const jsx_runtime_1 = require("react/jsx-runtime");
|
|
|
5
5
|
const react_1 = require("react");
|
|
6
6
|
const classnames_1 = tslib_1.__importDefault(require("classnames"));
|
|
7
7
|
const ApplicationLayoutBodyBottomBar = (0, react_1.forwardRef)((props, ref) => {
|
|
8
|
-
const { className, buttonAlignment, useBodyPaddings = false, children
|
|
8
|
+
const { className, buttonAlignment, useBodyPaddings = false, children, ...remainingProps } = props;
|
|
9
9
|
const classes = (0, classnames_1.default)('ApplicationLayoutBodyBottomBar', buttonAlignment === 'left' && 'justify-content-start', buttonAlignment === 'right' && 'justify-content-end', buttonAlignment !== 'left' && buttonAlignment !== 'right' && 'justify-content-between', useBodyPaddings && 'use-body-padding', className && className);
|
|
10
|
-
return ((0, jsx_runtime_1.jsx)("div",
|
|
10
|
+
return ((0, jsx_runtime_1.jsx)("div", { ref: ref, ...remainingProps, className: classes, children: children }));
|
|
11
11
|
});
|
|
12
12
|
ApplicationLayoutBodyBottomBar.LEFT = 'left';
|
|
13
13
|
ApplicationLayoutBodyBottomBar.RIGHT = 'right';
|
|
@@ -6,6 +6,6 @@ export type ApplicationLayoutBodyNavigationProps = {
|
|
|
6
6
|
className?: string;
|
|
7
7
|
};
|
|
8
8
|
declare const ApplicationLayoutBodyNavigation: React.ForwardRefExoticComponent<ApplicationLayoutBodyNavigationProps & {
|
|
9
|
-
children?: React.ReactNode;
|
|
9
|
+
children?: React.ReactNode | undefined;
|
|
10
10
|
} & React.RefAttributes<HTMLDivElement>>;
|
|
11
11
|
export default ApplicationLayoutBodyNavigation;
|
|
@@ -5,8 +5,8 @@ const jsx_runtime_1 = require("react/jsx-runtime");
|
|
|
5
5
|
const react_1 = require("react");
|
|
6
6
|
const classnames_1 = tslib_1.__importDefault(require("classnames"));
|
|
7
7
|
const ApplicationLayoutBodyNavigation = (0, react_1.forwardRef)((props, ref) => {
|
|
8
|
-
const { className, children
|
|
8
|
+
const { className, children, ...remainingProps } = props;
|
|
9
9
|
const navigationClasses = (0, classnames_1.default)('ApplicationLayoutBodyNavigation', className);
|
|
10
|
-
return ((0, jsx_runtime_1.jsx)("div",
|
|
10
|
+
return ((0, jsx_runtime_1.jsx)("div", { ref: ref, ...remainingProps, className: navigationClasses, children: children }));
|
|
11
11
|
});
|
|
12
12
|
exports.default = ApplicationLayoutBodyNavigation;
|
|
@@ -6,6 +6,6 @@ export type ApplicationLayoutHeaderProps = {
|
|
|
6
6
|
className?: string;
|
|
7
7
|
};
|
|
8
8
|
declare const ApplicationLayoutHeader: React.ForwardRefExoticComponent<ApplicationLayoutHeaderProps & {
|
|
9
|
-
children?: React.ReactNode;
|
|
9
|
+
children?: React.ReactNode | undefined;
|
|
10
10
|
} & React.RefAttributes<HTMLDivElement>>;
|
|
11
11
|
export default ApplicationLayoutHeader;
|
|
@@ -5,8 +5,8 @@ const jsx_runtime_1 = require("react/jsx-runtime");
|
|
|
5
5
|
const react_1 = require("react");
|
|
6
6
|
const classnames_1 = tslib_1.__importDefault(require("classnames"));
|
|
7
7
|
const ApplicationLayoutHeader = (0, react_1.forwardRef)((props, ref) => {
|
|
8
|
-
const { className, children
|
|
8
|
+
const { className, children, ...remainingProps } = props;
|
|
9
9
|
const classes = (0, classnames_1.default)('ApplicationLayoutHeader', className);
|
|
10
|
-
return ((0, jsx_runtime_1.jsx)("div",
|
|
10
|
+
return ((0, jsx_runtime_1.jsx)("div", { ref: ref, ...remainingProps, className: classes, id: 'ApplicationLayoutHeader', children: children }));
|
|
11
11
|
});
|
|
12
12
|
exports.default = ApplicationLayoutHeader;
|
|
@@ -6,6 +6,6 @@ export type ApplicationLayoutSidebarProps = {
|
|
|
6
6
|
className?: string;
|
|
7
7
|
};
|
|
8
8
|
declare const ApplicationLayoutSidebar: React.ForwardRefExoticComponent<ApplicationLayoutSidebarProps & {
|
|
9
|
-
children?: React.ReactNode;
|
|
9
|
+
children?: React.ReactNode | undefined;
|
|
10
10
|
} & React.RefAttributes<HTMLDivElement>>;
|
|
11
11
|
export default ApplicationLayoutSidebar;
|
|
@@ -5,8 +5,8 @@ const jsx_runtime_1 = require("react/jsx-runtime");
|
|
|
5
5
|
const react_1 = require("react");
|
|
6
6
|
const classnames_1 = tslib_1.__importDefault(require("classnames"));
|
|
7
7
|
const ApplicationLayoutSidebar = (0, react_1.forwardRef)((props, ref) => {
|
|
8
|
-
const { className, children
|
|
8
|
+
const { className, children, ...remainingProps } = props;
|
|
9
9
|
const classes = (0, classnames_1.default)('ApplicationLayoutSidebar', className);
|
|
10
|
-
return ((0, jsx_runtime_1.jsx)("div",
|
|
10
|
+
return ((0, jsx_runtime_1.jsx)("div", { ref: ref, ...remainingProps, className: classes, children: children }));
|
|
11
11
|
});
|
|
12
12
|
exports.default = ApplicationLayoutSidebar;
|
|
@@ -5,8 +5,8 @@ const jsx_runtime_1 = require("react/jsx-runtime");
|
|
|
5
5
|
const react_1 = require("react");
|
|
6
6
|
const classnames_1 = tslib_1.__importDefault(require("classnames"));
|
|
7
7
|
const SubNavigation = (0, react_1.forwardRef)((props, ref) => {
|
|
8
|
-
const { className, navItems = []
|
|
8
|
+
const { className, navItems = [], ...remainingProps } = props;
|
|
9
9
|
const navigationClasses = (0, classnames_1.default)('SubNavigation', 'width-100pct overflow-auto', className);
|
|
10
|
-
return ((0, jsx_runtime_1.jsx)("div",
|
|
10
|
+
return ((0, jsx_runtime_1.jsx)("div", { ref: ref, ...remainingProps, className: navigationClasses, children: (0, jsx_runtime_1.jsx)("ul", { className: 'SubmoduleNavigation nav', children: navItems.map(navItem => ((0, jsx_runtime_1.jsx)("li", { className: 'submodule', "data-nav-item-key": navItem.key, children: navItem.route }, navItem.key))) }) }));
|
|
11
11
|
});
|
|
12
12
|
exports.default = SubNavigation;
|
|
@@ -1,10 +1,8 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
const jsx_runtime_1 = require("react/jsx-runtime");
|
|
4
|
-
// @ts-ignore-next-line importsNotUsedAsValues
|
|
5
|
-
require("react");
|
|
6
4
|
const AspectRatioPlaceholder = (props) => {
|
|
7
5
|
const { width = 16, height = 9, className = '', children } = props;
|
|
8
|
-
return ((0, jsx_runtime_1.jsx)("div",
|
|
6
|
+
return ((0, jsx_runtime_1.jsx)("div", { className: `position-relative ${className}`, style: { aspectRatio: `${width} / ${height}` }, children: children }));
|
|
9
7
|
};
|
|
10
8
|
exports.default = AspectRatioPlaceholder;
|
|
@@ -80,6 +80,6 @@ export type AssetTreeProps = {
|
|
|
80
80
|
className?: string;
|
|
81
81
|
};
|
|
82
82
|
declare const AssetTree: React.MemoExoticComponent<React.ForwardRefExoticComponent<AssetTreeProps & {
|
|
83
|
-
children?: React.ReactNode;
|
|
83
|
+
children?: React.ReactNode | undefined;
|
|
84
84
|
} & React.RefAttributes<HTMLDivElement>>>;
|
|
85
85
|
export default AssetTree;
|
|
@@ -22,14 +22,14 @@ const TreeMode = {
|
|
|
22
22
|
MODE_FLY: 'fly',
|
|
23
23
|
MODE_FLUID: 'fluid',
|
|
24
24
|
};
|
|
25
|
-
const getSidebarBodyRef = (sidebarRef) =>
|
|
25
|
+
const getSidebarBodyRef = (sidebarRef) => (0, head_1.default)(sidebarRef?.current?.getElementsByClassName('AssetTreeBody'));
|
|
26
26
|
const getCurrentCategoryElement = (children, currentCategoryId) => {
|
|
27
27
|
return (0, isArray_1.default)(children) ? children.find(child => child && child.props.id === currentCategoryId) : children;
|
|
28
28
|
};
|
|
29
29
|
const renderTreesOffscreen = (children, categoryId) => {
|
|
30
30
|
return react_1.default.Children.map(children, child => {
|
|
31
31
|
const offscreenClasses = (0, classnames_1.default)('TreeOffscreenWrapper', child && child.props.id !== categoryId && 'position-offscreen pointer-events-none');
|
|
32
|
-
return (0, jsx_runtime_1.jsx)("div",
|
|
32
|
+
return (0, jsx_runtime_1.jsx)("div", { className: offscreenClasses, children: child });
|
|
33
33
|
});
|
|
34
34
|
};
|
|
35
35
|
// Check if the child is a React element and if it has the type TreeCategory
|
|
@@ -37,7 +37,7 @@ const isTreeCategory = (child) => {
|
|
|
37
37
|
return react_1.default.isValidElement(child) && child.type === TreeCategory_1.default;
|
|
38
38
|
};
|
|
39
39
|
const AssetTree = (0, react_1.memo)((0, react_1.forwardRef)((props, ref) => {
|
|
40
|
-
const { className, resizable = true, width = DEFAULT_WIDTH, minWidth = DEFAULT_MIN_WIDTH, maxWidth = DEFAULT_MAX_WIDTH, height, bordered = false, currentCategoryId, isOpen = true, useOffscreen = false, fly = false, onCategoryChange = noop_1.default, onToggleTree = noop_1.default, onResizeEnd = noop_1.default, children = []
|
|
40
|
+
const { className, resizable = true, width = DEFAULT_WIDTH, minWidth = DEFAULT_MIN_WIDTH, maxWidth = DEFAULT_MAX_WIDTH, height, bordered = false, currentCategoryId, isOpen = true, useOffscreen = false, fly = false, onCategoryChange = noop_1.default, onToggleTree = noop_1.default, onResizeEnd = noop_1.default, children = [], ...remainingProps } = props;
|
|
41
41
|
const getSidebarMode = (isFly) => (isFly ? TreeMode.MODE_FLY : TreeMode.MODE_FLUID);
|
|
42
42
|
const [treeWidth, setTreeWidth] = (0, react_1.useState)(width);
|
|
43
43
|
const [isResize, setIsResize] = (0, react_1.useState)(false);
|
|
@@ -103,7 +103,7 @@ const AssetTree = (0, react_1.memo)((0, react_1.forwardRef)((props, ref) => {
|
|
|
103
103
|
setIsResize(false);
|
|
104
104
|
onResizeEnd();
|
|
105
105
|
};
|
|
106
|
-
return ((0, jsx_runtime_1.jsxs)("div",
|
|
106
|
+
return ((0, jsx_runtime_1.jsxs)("div", { ...remainingProps, className: classes, style: style, ref: mergedRefs, children: [(0, jsx_runtime_1.jsx)("div", { className: resizeLimitClasses, style: resizeLimitStyle }), (0, jsx_runtime_1.jsxs)("div", { className: 'AssetTreeContent', children: [(0, jsx_runtime_1.jsx)(TreeSidebar_1.default, { onSelectCategory: handleSelectCategory, currentCategoryId: currentCategoryId, onClick: handleToggleTreeContent, children: (0, isArray_1.default)(children) ? children : [children] }), (0, jsx_runtime_1.jsx)(SmoothScrollbars_1.default, { slideIn: true, className: 'AssetTreeBody', children: useOffscreen ? renderTreesOffscreen(childrenArray, currentCategoryId) : category })] }), resizable && isOpen && ((0, jsx_runtime_1.jsx)(Resizer_1.default, { onResizeStart: handleResizeStart, onResize: handleResize, onResizeEnd: handleResizeEnd, direction: Resizer_1.default.HORIZONTAL, position: Resizer_1.default.RIGHT }))] }));
|
|
107
107
|
}));
|
|
108
108
|
Object.assign(AssetTree, TreeMode);
|
|
109
109
|
exports.default = AssetTree;
|
|
@@ -45,12 +45,12 @@ export type TreeItem = {
|
|
|
45
45
|
*/
|
|
46
46
|
info?: string | React.ReactNode;
|
|
47
47
|
/**
|
|
48
|
-
* The type of an item which is also the name of the respective
|
|
48
|
+
* The type of an item which is also the name of the respective rioglyph icon without the prefix
|
|
49
49
|
* `rioglyph-`.
|
|
50
50
|
*/
|
|
51
51
|
type: string;
|
|
52
52
|
/**
|
|
53
|
-
* The sub type of an item which is also the name of the respective
|
|
53
|
+
* The sub type of an item which is also the name of the respective rioglyph icon without the prefix.
|
|
54
54
|
* This could be used to show a secondary paired icon like for fuel type.
|
|
55
55
|
*/
|
|
56
56
|
subType?: string;
|
|
@@ -43,7 +43,7 @@ const filterProps = (0, omit_1.default)([
|
|
|
43
43
|
]);
|
|
44
44
|
const customCompare = (prevProps, nextProps) => (0, isEqual_1.default)(filterProps(prevProps), filterProps(nextProps));
|
|
45
45
|
const Tree = react_1.default.memo((props) => {
|
|
46
|
-
const { groups = [], items = [], selectedGroups = [], selectedItems = [], onSelectionChange = noop_1.default, hasMultiselect = true, showRadioButtons = false, hideSearch = false, hideTreeHead, treeHeaderContent, summary, hideSummary = false, search, searchPlaceholder = 'Type here to filter by name', onSearchChange = noop_1.default, className, scrollHeight, expandedGroups, onExpandGroupsChange = noop_1.default, showEmptyGroups = true, treeOptions = [], treeOptionsTooltip, disableAnimation = false
|
|
46
|
+
const { groups = [], items = [], selectedGroups = [], selectedItems = [], onSelectionChange = noop_1.default, hasMultiselect = true, showRadioButtons = false, hideSearch = false, hideTreeHead, treeHeaderContent, summary, hideSummary = false, search, searchPlaceholder = 'Type here to filter by name', onSearchChange = noop_1.default, className, scrollHeight, expandedGroups, onExpandGroupsChange = noop_1.default, showEmptyGroups = true, treeOptions = [], treeOptionsTooltip, disableAnimation = false, ...remainingProps } = props;
|
|
47
47
|
const [state, dispatch] = (0, react_1.useReducer)(treeReducer_1.treeReducer, {
|
|
48
48
|
groupedItems: [],
|
|
49
49
|
flatItems: [],
|
|
@@ -123,7 +123,7 @@ const Tree = react_1.default.memo((props) => {
|
|
|
123
123
|
};
|
|
124
124
|
const handleToggleNode = (nodeId) => {
|
|
125
125
|
const nodeContainer = getNodeContainerDomElementById(nodeId);
|
|
126
|
-
if (!
|
|
126
|
+
if (!internalExpandedGroups?.current || !nodeContainer) {
|
|
127
127
|
return;
|
|
128
128
|
}
|
|
129
129
|
const openGroups = internalExpandedGroups.current;
|
|
@@ -141,8 +141,7 @@ const Tree = react_1.default.memo((props) => {
|
|
|
141
141
|
onExpandGroupsChange(newExpandedNodes);
|
|
142
142
|
};
|
|
143
143
|
const getNodeContainerDomElementById = (nodeId) => {
|
|
144
|
-
|
|
145
|
-
return (_a = treeRef === null || treeRef === void 0 ? void 0 : treeRef.current) === null || _a === void 0 ? void 0 : _a.querySelector(`.TreeNodeContainer[data-id="${nodeId}"]`);
|
|
144
|
+
return treeRef?.current?.querySelector(`.TreeNodeContainer[data-id="${nodeId}"]`);
|
|
146
145
|
};
|
|
147
146
|
const selectAllSearchResultItems = (shouldSelect) => selectAllFlatItems(shouldSelect);
|
|
148
147
|
const handleSelectAll = (shouldSelect, isStateIndeterminate) => {
|
|
@@ -172,7 +171,7 @@ const Tree = react_1.default.memo((props) => {
|
|
|
172
171
|
: (0, treeUtils_1.excludeFromList)(selectedGroups, groupId);
|
|
173
172
|
// deselect all items of a node since they will be selected inherently via the group itself
|
|
174
173
|
const itemsInGroup = (0, find_1.default)((entry) => entry.id === groupId)(state.groupedItems);
|
|
175
|
-
const itemIdsOfGroup = (0, map_1.default)((item) => item.id)(itemsInGroup
|
|
174
|
+
const itemIdsOfGroup = (0, map_1.default)((item) => item.id)(itemsInGroup?.items);
|
|
176
175
|
const updatedSelectedItems = (0, without_1.default)(itemIdsOfGroup, selectedItems);
|
|
177
176
|
// check if all groups are selected to change the state of TreeSelectAll
|
|
178
177
|
const groupAmount = groups.length;
|
|
@@ -231,14 +230,13 @@ const Tree = react_1.default.memo((props) => {
|
|
|
231
230
|
return (0, jsx_runtime_1.jsx)(TreeNothingFound_1.default, {});
|
|
232
231
|
}
|
|
233
232
|
const result = (0, map_1.default)((group) => {
|
|
234
|
-
var _a, _b;
|
|
235
233
|
const groupId = group.id;
|
|
236
234
|
const groupItems = group.items;
|
|
237
|
-
const isOpen =
|
|
235
|
+
const isOpen = internalExpandedGroups.current?.includes(groupId) ?? false;
|
|
238
236
|
const numSelectedGroupItems = (0, filter_1.default)((0, treeUtils_1.containsItemById)(selectedItems))(groupItems).length;
|
|
239
237
|
const isGroupSelected = selectedGroups.includes(groupId);
|
|
240
238
|
const isStateIndeterminate = !isGroupSelected && numSelectedGroupItems > 0;
|
|
241
|
-
return ((0, jsx_runtime_1.jsxs)(TreeNodeContainer_1.default,
|
|
239
|
+
return ((0, jsx_runtime_1.jsxs)(TreeNodeContainer_1.default, { groupId: groupId, isOpen: isOpen, disableAnimation: disableAnimation, children: [(0, jsx_runtime_1.jsx)(TreeNode_1.default, { node: group, hasMultiselect: hasMultiselect, onToggleNode: handleToggleNode, onSelect: handleGroupSelection, isSelected: isGroupSelected, isIndeterminate: isStateIndeterminate }), (0, jsx_runtime_1.jsx)(TreeLeafList_1.default, { leafList: groupItems, hasMultiselect: hasMultiselect, showRadioButtons: showRadioButtons, selectedItems: selectedItems, selectedGroups: selectedGroups, onSelectionChange: respondSelection })] }, groupId));
|
|
242
240
|
})(groupedItems);
|
|
243
241
|
return result;
|
|
244
242
|
};
|
|
@@ -246,7 +244,7 @@ const Tree = react_1.default.memo((props) => {
|
|
|
246
244
|
const { flatItems } = state;
|
|
247
245
|
const hasLeafs = (0, isEmpty_1.default)(flatItems);
|
|
248
246
|
const getLeafs = () => ((0, jsx_runtime_1.jsx)(TreeLeafList_1.default, { leafList: flatItems, hasMultiselect: hasMultiselect, showRadioButtons: showRadioButtons, selectedItems: selectedItems, selectedGroups: selectedGroups, onSelectionChange: respondSelection }));
|
|
249
|
-
return ((0, jsx_runtime_1.jsx)(TreeNodeContainer_1.default,
|
|
247
|
+
return ((0, jsx_runtime_1.jsx)(TreeNodeContainer_1.default, { disableAnimation: disableAnimation, isOpen: true, children: hasLeafs ? (0, jsx_runtime_1.jsx)(TreeNothingFound_1.default, {}) : getLeafs() }));
|
|
250
248
|
};
|
|
251
249
|
const hasExternalGroups = (0, treeUtils_1.notEmpty)(groups);
|
|
252
250
|
const hasInternalSearchValue = () => (0, treeUtils_1.notEmpty)(state.searchValue);
|
|
@@ -278,8 +276,8 @@ const Tree = react_1.default.memo((props) => {
|
|
|
278
276
|
const showSearch = !hideSearch;
|
|
279
277
|
const showSummary = !hideSummary;
|
|
280
278
|
const hasCustomSearch = !(0, isNil_1.default)(search);
|
|
281
|
-
return ((0, jsx_runtime_1.jsxs)("div",
|
|
279
|
+
return ((0, jsx_runtime_1.jsxs)("div", { ...remainingProps, className: treeClassNames, ref: treeRef, children: [(0, jsx_runtime_1.jsxs)("div", { className: 'TreeHeader', children: [treeHeaderContent, showSearch && !hasCustomSearch && ((0, jsx_runtime_1.jsx)(TreeSearch_1.default, { value: state.searchValue, onChange: handleSearchChange, placeholder: searchPlaceholder })), hasCustomSearch && search, showTreeHead && ((0, jsx_runtime_1.jsxs)("div", { className: treeHeadClasses, children: [showSelectAll && ((0, jsx_runtime_1.jsx)("div", { className: 'border border-right-only hidden-empty padding-right-10 margin-right-2', children: (0, jsx_runtime_1.jsx)(TreeSelectAll_1.default, { isChecked: state.allChecked, isEnabled: hasMultiselect, isIndeterminate: isIndeterminate, onSelect: handleSelectAll }) })), (0, jsx_runtime_1.jsx)("div", { className: 'display-flex justify-content-between align-items-start width-100pct', children: showSummary
|
|
282
280
|
? summary || ((0, jsx_runtime_1.jsx)(TreeSummary_1.default, { children: (0, map_1.default)((typeCounter) => ((0, jsx_runtime_1.jsx)(TypeCounter_1.default, { type: typeCounter, icon: `${typeCounter}`, value: state.assetCounts[typeCounter], onClick: handleFilterByType, isActive: state.typeFilter.includes(typeCounter), hasFilter: isFilterActive, enableActivity: enableActivity }, typeCounter)))(state.visibleTypeCounters) }))
|
|
283
|
-
: null })
|
|
281
|
+
: null }), (0, jsx_runtime_1.jsx)(TreeOptions_1.default, { treeOptions: treeOptions, treeOptionsTooltip: treeOptionsTooltip })] }))] }), (0, jsx_runtime_1.jsx)(TreeRoot_1.default, { maxHeight: scrollHeight, disableAnimation: disableAnimation, children: content })] }));
|
|
284
282
|
}, customCompare);
|
|
285
283
|
exports.default = Tree;
|
|
@@ -11,6 +11,6 @@ const RadioButton_1 = tslib_1.__importDefault(require("../radiobutton/RadioButto
|
|
|
11
11
|
const TreeLeaf = react_1.default.memo((props) => {
|
|
12
12
|
const { item, hasMultiselect, showRadioButtons, isSelected, onSelectItem, onActiveItem } = props;
|
|
13
13
|
const treeNodeClassNames = (0, classnames_1.default)('TreeLeaf', 'form-group margin-bottom-0', isSelected && 'active', item.className && item.className);
|
|
14
|
-
return ((0, jsx_runtime_1.jsxs)("div",
|
|
14
|
+
return ((0, jsx_runtime_1.jsxs)("div", { className: treeNodeClassNames, "data-key": item.id, children: [hasMultiselect && (0, jsx_runtime_1.jsx)(Checkbox_1.default, { className: 'TreeCheckbox', checked: isSelected, onClick: onSelectItem }), !hasMultiselect && showRadioButtons && ((0, jsx_runtime_1.jsx)(RadioButton_1.default, { className: 'TreeRadioButton', checked: isSelected, onChange: onSelectItem })), (0, jsx_runtime_1.jsxs)("span", { className: 'TreeLabel TreeLabelName', onClick: onActiveItem, children: [!item.subType && (0, jsx_runtime_1.jsx)("span", { className: `rioglyph rioglyph-${item.type}` }), item.subType && ((0, jsx_runtime_1.jsxs)("span", { className: 'rioglyph-icon-pair', children: [(0, jsx_runtime_1.jsx)("span", { className: `rioglyph rioglyph-${item.type}` }), (0, jsx_runtime_1.jsx)("span", { className: `rioglyph rioglyph-${item.subType}` })] })), (0, jsx_runtime_1.jsxs)("span", { className: 'TreeLabelNameText', children: [(0, jsx_runtime_1.jsx)("span", { className: 'TreeLabelNameTextHeadline', children: (0, isObject_1.default)(item.name) ? ((0, jsx_runtime_1.jsxs)(jsx_runtime_1.Fragment, { children: [(0, jsx_runtime_1.jsx)("span", { className: 'text-light margin-right-3', children: item.name.firstName }), (0, jsx_runtime_1.jsx)("span", { children: item.name.lastName })] })) : (item.name) }), item.info && (0, jsx_runtime_1.jsx)("span", { className: 'TreeLabelNameTextSubline', children: item.info })] })] })] }));
|
|
15
15
|
});
|
|
16
16
|
exports.default = TreeLeaf;
|
|
@@ -2,8 +2,6 @@
|
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
const tslib_1 = require("tslib");
|
|
4
4
|
const jsx_runtime_1 = require("react/jsx-runtime");
|
|
5
|
-
// @ts-ignore-next-line importsNotUsedAsValues
|
|
6
|
-
require("react");
|
|
7
5
|
const TreeLeaf_1 = tslib_1.__importDefault(require("./TreeLeaf"));
|
|
8
6
|
const treeUtils_1 = require("./treeUtils");
|
|
9
7
|
const TreeLeafList = (props) => {
|
|
@@ -9,6 +9,6 @@ const TreeNode = react_1.default.memo((props) => {
|
|
|
9
9
|
const { node, hasMultiselect = false, isSelected = false, isIndeterminate = false, onToggleNode, onSelect } = props;
|
|
10
10
|
const treeNodeClassNames = (0, classnames_1.default)('TreeNode', 'from-group', isSelected && 'checked', node.className && node.className);
|
|
11
11
|
const hasChildren = !!node.items.length;
|
|
12
|
-
return ((0, jsx_runtime_1.jsxs)("div",
|
|
12
|
+
return ((0, jsx_runtime_1.jsxs)("div", { className: treeNodeClassNames, "data-key": node.id, onClick: () => hasChildren && onToggleNode(node.id), children: [hasMultiselect && ((0, jsx_runtime_1.jsx)(Checkbox_1.default, { className: 'TreeCheckbox', checked: isSelected, disabled: node.disabled, indeterminate: isIndeterminate, onClick: () => onSelect(node, isIndeterminate) })), (0, jsx_runtime_1.jsxs)("span", { className: 'TreeLabel TreeLabelName', children: [node.icon && (0, jsx_runtime_1.jsx)("span", { className: `rioglyph ${node.icon}` }), (0, jsx_runtime_1.jsx)("span", { className: 'TreeLabelNameText', children: (0, jsx_runtime_1.jsx)("span", { className: 'TreeLabelNameTextHeadline', children: node.name }) }), (0, jsx_runtime_1.jsx)("span", { className: 'TreeLabelCount label label-muted label-filled label-condensed', children: node.items.length }), (0, jsx_runtime_1.jsx)("span", { className: `TreeLabelExpander rioglyph rioglyph-chevron-down ${hasChildren ? '' : 'text-color-light'}` })] })] }));
|
|
13
13
|
});
|
|
14
14
|
exports.default = TreeNode;
|
|
@@ -2,12 +2,10 @@
|
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
const tslib_1 = require("tslib");
|
|
4
4
|
const jsx_runtime_1 = require("react/jsx-runtime");
|
|
5
|
-
// @ts-ignore-next-line importsNotUsedAsValues
|
|
6
|
-
require("react");
|
|
7
5
|
const classnames_1 = tslib_1.__importDefault(require("classnames"));
|
|
8
6
|
const TreeNodeContainer = (props) => {
|
|
9
7
|
const { isOpen, groupId, disableAnimation, children } = props;
|
|
10
8
|
const treeNodeContainerClasses = (0, classnames_1.default)('TreeNodeContainer', 'user-select-none overflow-hidden', isOpen && 'open');
|
|
11
|
-
return ((0, jsx_runtime_1.jsx)("div",
|
|
9
|
+
return ((0, jsx_runtime_1.jsx)("div", { className: treeNodeContainerClasses, "data-id": groupId, children: children }));
|
|
12
10
|
};
|
|
13
11
|
exports.default = TreeNodeContainer;
|
|
@@ -4,7 +4,7 @@ const tslib_1 = require("tslib");
|
|
|
4
4
|
const jsx_runtime_1 = require("react/jsx-runtime");
|
|
5
5
|
const react_1 = tslib_1.__importDefault(require("react"));
|
|
6
6
|
const TreeNothingFound = react_1.default.memo((props) => {
|
|
7
|
-
return ((0, jsx_runtime_1.jsx)("div",
|
|
8
|
-
padding-top-25 margin-top-25 margin-bottom-25
|
|
7
|
+
return ((0, jsx_runtime_1.jsx)("div", { className: `TreeTreeNothingFound display-flex justify-content-center text-size-20
|
|
8
|
+
padding-top-25 margin-top-25 margin-bottom-25`, children: (0, jsx_runtime_1.jsx)("span", { className: 'rioglyph rioglyph-looking-glass-man text-size-400pct text-color-light' }) }));
|
|
9
9
|
});
|
|
10
10
|
exports.default = TreeNothingFound;
|
|
@@ -2,14 +2,12 @@
|
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
const tslib_1 = require("tslib");
|
|
4
4
|
const jsx_runtime_1 = require("react/jsx-runtime");
|
|
5
|
-
// @ts-ignore-next-line importsNotUsedAsValues
|
|
6
|
-
require("react");
|
|
7
5
|
const classnames_1 = tslib_1.__importDefault(require("classnames"));
|
|
8
6
|
const noop_1 = tslib_1.__importDefault(require("lodash/fp/noop"));
|
|
9
7
|
const Switch_1 = tslib_1.__importDefault(require("../switch/Switch"));
|
|
10
8
|
const TreeOption = (props) => {
|
|
11
|
-
const { isChecked = false, className, label, onChange = noop_1.default
|
|
9
|
+
const { isChecked = false, className, label, onChange = noop_1.default, ...remainingProps } = props;
|
|
12
10
|
const optionClasses = (0, classnames_1.default)('TreeOption', 'display-flex', 'justify-content-start', 'align-items-center', 'gap-10', 'cursor-pointer', className);
|
|
13
|
-
return ((0, jsx_runtime_1.jsxs)("div",
|
|
11
|
+
return ((0, jsx_runtime_1.jsxs)("div", { ...remainingProps, className: optionClasses, onClick: onChange, children: [(0, jsx_runtime_1.jsx)("span", { className: 'flex-1-1', children: label }), (0, jsx_runtime_1.jsx)("span", { className: 'pointer-events-none scale-80', children: (0, jsx_runtime_1.jsx)(Switch_1.default, { keyName: 'TreeOption-switch', checked: isChecked }) })] }));
|
|
14
12
|
};
|
|
15
13
|
exports.default = TreeOption;
|
|
@@ -2,8 +2,6 @@
|
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
const tslib_1 = require("tslib");
|
|
4
4
|
const jsx_runtime_1 = require("react/jsx-runtime");
|
|
5
|
-
// @ts-ignore-next-line importsNotUsedAsValues
|
|
6
|
-
require("react");
|
|
7
5
|
const classnames_1 = tslib_1.__importDefault(require("classnames"));
|
|
8
6
|
const lodash_1 = require("lodash");
|
|
9
7
|
const ButtonDropdown_1 = tslib_1.__importDefault(require("../dropdown/ButtonDropdown"));
|
|
@@ -14,10 +12,10 @@ const TreeOptions = (props) => {
|
|
|
14
12
|
return null;
|
|
15
13
|
}
|
|
16
14
|
const dropdownClasses = (0, classnames_1.default)('display-flex flex-column gap-10', 'width-250', 'padding-15', className);
|
|
17
|
-
const customDropdown = (0, jsx_runtime_1.jsx)("div",
|
|
15
|
+
const customDropdown = (0, jsx_runtime_1.jsx)("div", { className: dropdownClasses, children: treeOptions });
|
|
18
16
|
const dropdown = ((0, jsx_runtime_1.jsx)(ButtonDropdown_1.default, { title: (0, jsx_runtime_1.jsx)("span", { className: 'rioglyph rioglyph-option-vertical', "aria-hidden": 'true' }), bsStyle: 'default', bsSize: 'sm', customDropdown: customDropdown, toggleClassName: 'hover-bg-white border-none text-color-gray hover-text-color-dark', className: 'TreeHeaderOptions height-20', pullRight: true, iconOnly: true }));
|
|
19
17
|
if (treeOptionsTooltip) {
|
|
20
|
-
return ((0, jsx_runtime_1.jsx)(SimpleTooltip_1.default,
|
|
18
|
+
return ((0, jsx_runtime_1.jsx)(SimpleTooltip_1.default, { content: treeOptionsTooltip, placement: 'bottom-end', delay: { show: 1000, hide: 0 }, popperConfig: {
|
|
21
19
|
modifiers: [
|
|
22
20
|
{
|
|
23
21
|
name: 'offset',
|
|
@@ -30,7 +28,7 @@ const TreeOptions = (props) => {
|
|
|
30
28
|
options: {},
|
|
31
29
|
},
|
|
32
30
|
],
|
|
33
|
-
}
|
|
31
|
+
}, children: (0, jsx_runtime_1.jsx)("div", { children: dropdown }) }));
|
|
34
32
|
}
|
|
35
33
|
return dropdown;
|
|
36
34
|
};
|
|
@@ -2,14 +2,12 @@
|
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
const tslib_1 = require("tslib");
|
|
4
4
|
const jsx_runtime_1 = require("react/jsx-runtime");
|
|
5
|
-
// @ts-ignore-next-line importsNotUsedAsValues
|
|
6
|
-
require("react");
|
|
7
5
|
const classnames_1 = tslib_1.__importDefault(require("classnames"));
|
|
8
6
|
const react_1 = require("@formkit/auto-animate/react");
|
|
9
7
|
const TreeRoot = ({ maxHeight, disableAnimation, children }) => {
|
|
10
8
|
const treeRootClasses = (0, classnames_1.default)('TreeRoot', 'user-select-none', maxHeight ? 'overflow-auto' : 'overflow-hidden');
|
|
11
9
|
const [parent, enableAnimations] = (0, react_1.useAutoAnimate)();
|
|
12
10
|
enableAnimations(!disableAnimation);
|
|
13
|
-
return ((0, jsx_runtime_1.jsx)("div",
|
|
11
|
+
return ((0, jsx_runtime_1.jsx)("div", { ref: parent, className: treeRootClasses, style: { maxHeight }, children: children }));
|
|
14
12
|
};
|
|
15
13
|
exports.default = TreeRoot;
|
|
@@ -10,6 +10,6 @@ const ClearableInput_1 = tslib_1.__importDefault(require("../clearableInput/Clea
|
|
|
10
10
|
const TreeSearch = react_1.default.memo((props) => {
|
|
11
11
|
const { value, className, placeholder, onChange = noop_1.default } = props;
|
|
12
12
|
const classes = (0, classnames_1.default)('TreeSearch', className);
|
|
13
|
-
return ((0, jsx_runtime_1.jsx)("div",
|
|
13
|
+
return ((0, jsx_runtime_1.jsx)("div", { className: classes, children: (0, jsx_runtime_1.jsxs)("div", { className: 'input-group flex-1-0', children: [(0, jsx_runtime_1.jsx)("span", { className: 'input-group-addon', children: (0, jsx_runtime_1.jsx)("span", { className: 'rioglyph rioglyph-search', "aria-hidden": 'true' }) }), (0, jsx_runtime_1.jsx)(ClearableInput_1.default, { value: value, onChange: onChange, placeholder: placeholder })] }) }));
|
|
14
14
|
});
|
|
15
15
|
exports.default = TreeSearch;
|
|
@@ -2,14 +2,12 @@
|
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
const tslib_1 = require("tslib");
|
|
4
4
|
const jsx_runtime_1 = require("react/jsx-runtime");
|
|
5
|
-
// @ts-ignore-next-line importsNotUsedAsValues
|
|
6
|
-
require("react");
|
|
7
5
|
const noop_1 = tslib_1.__importDefault(require("lodash/fp/noop"));
|
|
8
6
|
const Checkbox_1 = tslib_1.__importDefault(require("../checkbox/Checkbox"));
|
|
9
7
|
const TreeSelectAll = (props) => {
|
|
10
8
|
const { isDisabled, isChecked = false, isEnabled = true, isIndeterminate = false, hasSearchResults = false, // needed?
|
|
11
9
|
onSelect = noop_1.default, } = props;
|
|
12
10
|
const handleSelectAll = (event) => onSelect(event.target.checked, isIndeterminate);
|
|
13
|
-
return isEnabled ? ((0, jsx_runtime_1.jsx)("div",
|
|
11
|
+
return isEnabled ? ((0, jsx_runtime_1.jsx)("div", { className: 'TreeSelectAll display-flex align-items-center', children: (0, jsx_runtime_1.jsx)(Checkbox_1.default, { checked: isChecked, onClick: handleSelectAll, disabled: isDisabled, indeterminate: isIndeterminate, className: 'margin-top--1' }) })) : null;
|
|
14
12
|
};
|
|
15
13
|
exports.default = TreeSelectAll;
|
|
@@ -7,8 +7,8 @@ const noop_1 = tslib_1.__importDefault(require("lodash/fp/noop"));
|
|
|
7
7
|
const classnames_1 = tslib_1.__importDefault(require("classnames"));
|
|
8
8
|
const TreeSidebarCategories_1 = tslib_1.__importDefault(require("./TreeSidebarCategories"));
|
|
9
9
|
const TreeSidebar = react_1.default.memo((props) => {
|
|
10
|
-
const { className, onClick = noop_1.default
|
|
10
|
+
const { className, onClick = noop_1.default, ...remainingProps } = props;
|
|
11
11
|
const classes = (0, classnames_1.default)('TreeSidebar', className);
|
|
12
|
-
return ((0, jsx_runtime_1.jsxs)("div",
|
|
12
|
+
return ((0, jsx_runtime_1.jsxs)("div", { className: classes, children: [(0, jsx_runtime_1.jsx)("ul", { className: 'TreeSidebarNavigation', onClick: onClick, children: (0, jsx_runtime_1.jsx)(TreeSidebarCategories_1.default, { ...remainingProps }) }), (0, jsx_runtime_1.jsx)("div", { className: 'TreeSidebarToggle', onClick: onClick, children: (0, jsx_runtime_1.jsx)("span", { className: 'rioglyph rioglyph-chevron-left' }) })] }));
|
|
13
13
|
});
|
|
14
14
|
exports.default = TreeSidebar;
|
|
@@ -2,8 +2,6 @@
|
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
const tslib_1 = require("tslib");
|
|
4
4
|
const jsx_runtime_1 = require("react/jsx-runtime");
|
|
5
|
-
// @ts-ignore-next-line importsNotUsedAsValues
|
|
6
|
-
require("react");
|
|
7
5
|
const classnames_1 = tslib_1.__importDefault(require("classnames"));
|
|
8
6
|
const noop_1 = tslib_1.__importDefault(require("lodash/fp/noop"));
|
|
9
7
|
const OverlayTrigger_1 = tslib_1.__importDefault(require("../overlay/OverlayTrigger"));
|
|
@@ -25,10 +23,10 @@ const TreeSidebarCategories = (props) => {
|
|
|
25
23
|
event.stopPropagation();
|
|
26
24
|
onSelectCategory(id);
|
|
27
25
|
};
|
|
28
|
-
const category = ((0, jsx_runtime_1.jsx)("li",
|
|
26
|
+
const category = ((0, jsx_runtime_1.jsx)("li", { onClick: handleSelectCategory, className: statusClassName, children: (0, jsx_runtime_1.jsx)("div", { className: 'selection-bubble', children: (0, jsx_runtime_1.jsx)("span", { className: `rioglyph ${icon}` }) }) }, id));
|
|
29
27
|
if (label) {
|
|
30
28
|
const tooltip = (0, jsx_runtime_1.jsx)("span", { children: label });
|
|
31
|
-
return ((0, jsx_runtime_1.jsx)(OverlayTrigger_1.default,
|
|
29
|
+
return ((0, jsx_runtime_1.jsx)(OverlayTrigger_1.default, { placement: Tooltip_1.default.RIGHT, delay: { show: TOOLTIP_DELAY, hide: 0 }, overlay: (0, jsx_runtime_1.jsx)(Tooltip_1.default, { id: 'tooltip', width: 'auto', children: tooltip }), children: category }, `category-tooltip-${id}`));
|
|
32
30
|
}
|
|
33
31
|
return category;
|
|
34
32
|
}) }));
|
|
@@ -14,6 +14,6 @@ const DefaultAssetCounts = ({ assetCounts }) => {
|
|
|
14
14
|
const TreeSummary = react_1.default.memo((props) => {
|
|
15
15
|
const { className = '', assetCounts = {}, gridCols, children } = props;
|
|
16
16
|
const classes = (0, classnames_1.default)('TreeSummary', 'display-flex flex-wrap', 'align-items-center', 'gap-10', 'padding-left-3', className);
|
|
17
|
-
return ((0, jsx_runtime_1.jsx)("div",
|
|
17
|
+
return ((0, jsx_runtime_1.jsx)("div", { className: classes, children: children || ((0, jsx_runtime_1.jsx)(TreeSummaryRow_1.default, { gridCols: gridCols, children: (0, jsx_runtime_1.jsx)(DefaultAssetCounts, { assetCounts: assetCounts }) })) }));
|
|
18
18
|
});
|
|
19
19
|
exports.default = TreeSummary;
|
|
@@ -2,8 +2,6 @@
|
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.TreeSummaryRow = void 0;
|
|
4
4
|
const jsx_runtime_1 = require("react/jsx-runtime");
|
|
5
|
-
|
|
6
|
-
require("react");
|
|
7
|
-
const TreeSummaryRow = ({ gridCols = 4, children }) => ((0, jsx_runtime_1.jsx)("div", Object.assign({ className: `TreeSummaryRow display-grid grid-cols-${gridCols} gap-10` }, { children: children })));
|
|
5
|
+
const TreeSummaryRow = ({ gridCols = 4, children }) => ((0, jsx_runtime_1.jsx)("div", { className: `TreeSummaryRow display-grid grid-cols-${gridCols} gap-10`, children: children }));
|
|
8
6
|
exports.TreeSummaryRow = TreeSummaryRow;
|
|
9
7
|
exports.default = exports.TreeSummaryRow;
|
|
@@ -9,7 +9,7 @@ const noop_1 = tslib_1.__importDefault(require("lodash/fp/noop"));
|
|
|
9
9
|
const useHover_1 = tslib_1.__importDefault(require("../../hooks/useHover"));
|
|
10
10
|
const mergeRefs_1 = tslib_1.__importDefault(require("../../utils/mergeRefs"));
|
|
11
11
|
const TypeCounter = (0, react_1.forwardRef)((props, ref) => {
|
|
12
|
-
const { icon, value, isActive, hasFilter = false, enableActivity = false, onClick = noop_1.default, type, hideOnZero = false
|
|
12
|
+
const { icon, value, isActive, hasFilter = false, enableActivity = false, onClick = noop_1.default, type, hideOnZero = false, ...remainingProps } = props;
|
|
13
13
|
const internalRef = (0, react_1.useRef)(null);
|
|
14
14
|
const mergedRef = (0, mergeRefs_1.default)([ref, internalRef]);
|
|
15
15
|
const isHover = (0, useHover_1.default)(internalRef);
|
|
@@ -19,6 +19,6 @@ const TypeCounter = (0, react_1.forwardRef)((props, ref) => {
|
|
|
19
19
|
if (hideOnZero && !value) {
|
|
20
20
|
return null;
|
|
21
21
|
}
|
|
22
|
-
return ((0, jsx_runtime_1.jsxs)("div",
|
|
22
|
+
return ((0, jsx_runtime_1.jsxs)("div", { ref: mergedRef, ...remainingProps, className: wrapperClassName, onClick: handleClick, children: [(0, jsx_runtime_1.jsx)("span", { className: `rioglyph rioglyph-${icon} text-size-16 margin-right-2` }), (0, jsx_runtime_1.jsx)("span", { className: counterClassNames, children: value || 0 })] }));
|
|
23
23
|
});
|
|
24
24
|
exports.default = TypeCounter;
|
|
@@ -25,21 +25,21 @@ exports.emptyGroupsChanged = emptyGroupsChanged;
|
|
|
25
25
|
const treeReducer = (state, action) => {
|
|
26
26
|
switch (action.type) {
|
|
27
27
|
case 'assetCounted':
|
|
28
|
-
return
|
|
28
|
+
return { ...state, assetCounts: action.payload };
|
|
29
29
|
case 'allCheckedChanged':
|
|
30
|
-
return
|
|
30
|
+
return { ...state, allChecked: action.payload };
|
|
31
31
|
case 'searchValueChanged':
|
|
32
|
-
return
|
|
32
|
+
return { ...state, searchValue: action.payload, allChecked: false };
|
|
33
33
|
case 'flatItemsChanged':
|
|
34
|
-
return
|
|
34
|
+
return { ...state, flatItems: action.payload };
|
|
35
35
|
case 'groupedItemsChanged':
|
|
36
|
-
return
|
|
36
|
+
return { ...state, groupedItems: action.payload };
|
|
37
37
|
case 'typeFilterChanged':
|
|
38
|
-
return
|
|
38
|
+
return { ...state, typeFilter: action.payload };
|
|
39
39
|
case 'visibleTypeCountersChanged':
|
|
40
|
-
return
|
|
40
|
+
return { ...state, visibleTypeCounters: action.payload };
|
|
41
41
|
case 'emptyGroupsChanged':
|
|
42
|
-
return
|
|
42
|
+
return { ...state, emptyGroups: action.payload };
|
|
43
43
|
default:
|
|
44
44
|
(0, tiny_invariant_1.default)(false, 'Unknown action type in tree reducer');
|
|
45
45
|
}
|
|
@@ -34,12 +34,9 @@ const getFullName = (item) => `${item.name.firstName} ${item.name.lastName}`;
|
|
|
34
34
|
exports.getFullName = getFullName;
|
|
35
35
|
const getName = (item) => (isNameObject(item) ? (0, exports.getFullName)(item) : item.name);
|
|
36
36
|
const orderByName = (0, orderBy_1.default)([
|
|
37
|
-
(item) =>
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
? item.name.lastName.toLowerCase()
|
|
41
|
-
: ((_a = item.name.toLowerCase()) !== null && _a !== void 0 ? _a : '');
|
|
42
|
-
},
|
|
37
|
+
(item) => isNameObject(item)
|
|
38
|
+
? item.name.lastName.toLowerCase()
|
|
39
|
+
: (item.name.toLowerCase() ?? ''),
|
|
43
40
|
], ['asc']);
|
|
44
41
|
// TODO: extend to use provided external search function instead?
|
|
45
42
|
const filterByName = (searchValue) => (item) => {
|
|
@@ -60,25 +57,31 @@ const sortGroupsByName = (groups) => {
|
|
|
60
57
|
const sortableGroups = {};
|
|
61
58
|
(0, mapValues_1.default)((group) => {
|
|
62
59
|
if (group.position === 'last') {
|
|
63
|
-
fixedGroups[group.id] =
|
|
60
|
+
fixedGroups[group.id] = { ...group };
|
|
64
61
|
}
|
|
65
62
|
else {
|
|
66
|
-
sortableGroups[group.id] =
|
|
63
|
+
sortableGroups[group.id] = { ...group };
|
|
67
64
|
}
|
|
68
65
|
})(groups);
|
|
69
66
|
const sortedGroups = orderByName(sortableGroups);
|
|
70
|
-
return (0, isEmpty_1.default)(fixedGroups) ? sortedGroups :
|
|
67
|
+
return (0, isEmpty_1.default)(fixedGroups) ? sortedGroups : { ...sortedGroups, ...fixedGroups };
|
|
71
68
|
};
|
|
72
69
|
exports.sortGroupsByName = sortGroupsByName;
|
|
73
70
|
const sortGroupItemsByName = (groups) => {
|
|
74
|
-
return (0, mapValues_1.default)((group) => (
|
|
71
|
+
return (0, mapValues_1.default)((group) => ({
|
|
72
|
+
...group,
|
|
73
|
+
items: orderByName(group.items),
|
|
74
|
+
}))(groups);
|
|
75
75
|
};
|
|
76
76
|
exports.sortGroupItemsByName = sortGroupItemsByName;
|
|
77
77
|
const getMappedItemsToGroups = (groups, items) => {
|
|
78
78
|
const mappedGroups = {};
|
|
79
79
|
// build an object for listing the groups by id
|
|
80
80
|
groups.forEach(group => {
|
|
81
|
-
mappedGroups[group.id] =
|
|
81
|
+
mappedGroups[group.id] = {
|
|
82
|
+
...group,
|
|
83
|
+
items: [],
|
|
84
|
+
};
|
|
82
85
|
});
|
|
83
86
|
items.forEach(item => {
|
|
84
87
|
// add items to the respective group
|