@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
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import React, { type PropsWithChildren } from 'react';
|
|
1
|
+
import React, { type PropsWithChildren, type MemoExoticComponent, type FC } from 'react';
|
|
2
2
|
import ActionBarItemPopoverContent from './ActionBarItemPopoverContent';
|
|
3
3
|
import ActionBarItemIcon from './ActionBarItemIcon';
|
|
4
4
|
import ActionBarItemList from './ActionBarItemList';
|
|
@@ -49,9 +49,5 @@ export type ActionBarItemComponents = {
|
|
|
49
49
|
ListSeparator: typeof ActionBarItemListSeparator;
|
|
50
50
|
};
|
|
51
51
|
type ActionBarItemPropsWithChildren = PropsWithChildren<ActionBarItemProps>;
|
|
52
|
-
declare const ActionBarItem: ActionBarItemComponents &
|
|
53
|
-
children?: React.ReactNode;
|
|
54
|
-
}> & {
|
|
55
|
-
readonly type: React.FC<ActionBarItemPropsWithChildren>;
|
|
56
|
-
};
|
|
52
|
+
declare const ActionBarItem: ActionBarItemComponents & MemoExoticComponent<FC<ActionBarItemPropsWithChildren>>;
|
|
57
53
|
export default ActionBarItem;
|
|
@@ -40,7 +40,7 @@ const checkIfSmallResolution = () => {
|
|
|
40
40
|
const isActionBarItemPopover = (child) => child.type && child.type.displayName === ActionBarItemPopoverContent_1.default.displayName;
|
|
41
41
|
const isActionBarItemIcon = (child) => child.type && child.type.displayName === ActionBarItemIcon_1.default.displayName;
|
|
42
42
|
const ActionBarItemBase = (props) => {
|
|
43
|
-
const { id = getRandomString(), className, mobileDialogBodyClassName = '', children, popoverWidth = DEFAULT_POPOVER_WIDTH, hidePopoverOnClick = true
|
|
43
|
+
const { id = getRandomString(), className, mobileDialogBodyClassName = '', children, popoverWidth = DEFAULT_POPOVER_WIDTH, hidePopoverOnClick = true, ...remainingProps } = props;
|
|
44
44
|
const [isShown, setIsShown] = (0, react_1.useState)(false);
|
|
45
45
|
const clickOutsideRef = (0, react_1.useRef)(null);
|
|
46
46
|
(0, react_1.useLayoutEffect)(() => {
|
|
@@ -89,17 +89,17 @@ const ActionBarItemBase = (props) => {
|
|
|
89
89
|
const itemPopover = childrenAsList.find(isActionBarItemPopover);
|
|
90
90
|
const itemIcon = childrenAsList.find(isActionBarItemIcon);
|
|
91
91
|
if (!itemPopover) {
|
|
92
|
-
return (0, jsx_runtime_1.jsx)("div",
|
|
92
|
+
return (0, jsx_runtime_1.jsx)("div", { className: classes, children: children });
|
|
93
93
|
}
|
|
94
94
|
const { useOffscreen = false, title } = itemPopover.props;
|
|
95
95
|
// Filter out the popover and icon component from the list of children as they are handled separately
|
|
96
96
|
const childrenWithoutPopover = childrenAsList.filter(child => !isActionBarItemPopover(child));
|
|
97
97
|
const childrenWithoutPopoverAndIcon = childrenWithoutPopover.filter(child => !isActionBarItemIcon(child));
|
|
98
98
|
if (isSmallScreen) {
|
|
99
|
-
return ((0, jsx_runtime_1.jsxs)("div",
|
|
99
|
+
return ((0, jsx_runtime_1.jsxs)("div", { ...remainingProps, className: classes, ref: clickOutsideRef, children: [react_1.default.cloneElement(itemIcon, { onClick: onToggle }), (0, jsx_runtime_1.jsx)("div", { onClick: () => setIsShown(false), children: (0, jsx_runtime_1.jsx)(Dialog_1.default, { show: isShown, onClose: () => setIsShown(false), body: itemPopover, bodyClassName: mobileDialogBodyClassName, title: title }) }), childrenWithoutPopoverAndIcon] }));
|
|
100
100
|
}
|
|
101
|
-
const overlay = ((0, jsx_runtime_1.jsx)(ActionBarOverlay_1.default,
|
|
102
|
-
return ((0, jsx_runtime_1.jsxs)("div",
|
|
101
|
+
const overlay = ((0, jsx_runtime_1.jsx)(ActionBarOverlay_1.default, { id: id, title: title, width: popoverWidth, preRender: useOffscreen, show: isShown, children: itemPopover }, 'child'));
|
|
102
|
+
return ((0, jsx_runtime_1.jsxs)("div", { ...remainingProps, className: classes, ref: clickOutsideRef, children: [(0, jsx_runtime_1.jsx)(OverlayTrigger_1.default, { onToggle: onToggle, show: isShown || useOffscreen, placement: OverlayTrigger_1.default.BOTTOM_END, overlay: overlay, rootClose: false, trigger: 'click', popperConfig: {
|
|
103
103
|
modifiers: [
|
|
104
104
|
{
|
|
105
105
|
name: 'offset',
|
|
@@ -112,7 +112,7 @@ const ActionBarItemBase = (props) => {
|
|
|
112
112
|
options: {},
|
|
113
113
|
},
|
|
114
114
|
],
|
|
115
|
-
}
|
|
115
|
+
}, children: itemIcon }), childrenWithoutPopoverAndIcon] }));
|
|
116
116
|
};
|
|
117
117
|
const ActionBarItem = (0, react_1.memo)(ActionBarItemBase);
|
|
118
118
|
// Define static variables on the component type
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
declare const ActionBarItemIcon: React.ForwardRefExoticComponent<React.HTMLAttributes<HTMLDivElement> & {
|
|
3
|
-
className?: string
|
|
3
|
+
className?: string;
|
|
4
4
|
} & {
|
|
5
|
-
children?: React.ReactNode;
|
|
5
|
+
children?: React.ReactNode | undefined;
|
|
6
6
|
} & React.RefAttributes<HTMLDivElement>>;
|
|
7
7
|
export default ActionBarItemIcon;
|
|
@@ -6,9 +6,9 @@ const jsx_runtime_1 = require("react/jsx-runtime");
|
|
|
6
6
|
const react_1 = require("react");
|
|
7
7
|
const classnames_1 = tslib_1.__importDefault(require("classnames"));
|
|
8
8
|
const ActionBarItemIcon = (0, react_1.forwardRef)((props, ref) => {
|
|
9
|
-
const { className, children
|
|
9
|
+
const { className, children, ...remainingProps } = props;
|
|
10
10
|
const classes = (0, classnames_1.default)('ActionBarItemIcon', className);
|
|
11
|
-
return ((0, jsx_runtime_1.jsx)("div",
|
|
11
|
+
return ((0, jsx_runtime_1.jsx)("div", { ...remainingProps, className: classes, ref: ref, children: children }));
|
|
12
12
|
});
|
|
13
13
|
// The displayName is used in ActionBarItem for checking the component "isActionBarItemIcon"
|
|
14
14
|
ActionBarItemIcon.displayName = 'ActionBarItemIcon';
|
|
@@ -2,12 +2,9 @@
|
|
|
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
|
-
const ActionBarItemList = (
|
|
9
|
-
var { className, children } = _a, remainingProps = tslib_1.__rest(_a, ["className", "children"]);
|
|
6
|
+
const ActionBarItemList = ({ className, children, ...remainingProps }) => {
|
|
10
7
|
const classes = (0, classnames_1.default)('ActionBarItemList', className);
|
|
11
|
-
return ((0, jsx_runtime_1.jsx)("ul",
|
|
8
|
+
return ((0, jsx_runtime_1.jsx)("ul", { ...remainingProps, className: classes, children: children }));
|
|
12
9
|
};
|
|
13
10
|
exports.default = ActionBarItemList;
|
|
@@ -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 ActionBarItemListItem = (props) => {
|
|
9
|
-
const { hasLink, icon, onClick, className, children
|
|
7
|
+
const { hasLink, icon, onClick, className, children, ...remainingProps } = props;
|
|
10
8
|
const classes = (0, classnames_1.default)('ActionBarItemListItem', hasLink && 'has-link', className);
|
|
11
9
|
const iconClasses = (0, classnames_1.default)('ActionBarItemListItemIcon', 'rioglyph', icon);
|
|
12
10
|
const btnClasses = (0, classnames_1.default)('ActionBarItemListItemButton');
|
|
13
|
-
return ((0, jsx_runtime_1.jsxs)("li",
|
|
11
|
+
return ((0, jsx_runtime_1.jsxs)("li", { ...remainingProps, className: classes, onClick: onClick, children: [icon && (0, jsx_runtime_1.jsx)("span", { className: iconClasses }), hasLink && !onClick && (0, jsx_runtime_1.jsx)("span", { children: children }), onClick && (0, jsx_runtime_1.jsx)("div", { className: btnClasses, children: children }), !hasLink && !onClick && children] }));
|
|
14
12
|
};
|
|
15
13
|
exports.default = ActionBarItemListItem;
|
|
@@ -2,12 +2,9 @@
|
|
|
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
|
-
const ActionBarItemListSeparator = (
|
|
9
|
-
var { className } = _a, remainingProps = tslib_1.__rest(_a, ["className"]);
|
|
6
|
+
const ActionBarItemListSeparator = ({ className, ...remainingProps }) => {
|
|
10
7
|
const classes = (0, classnames_1.default)('ActionBarItemListSeparator', className);
|
|
11
|
-
return (0, jsx_runtime_1.jsx)("hr",
|
|
8
|
+
return (0, jsx_runtime_1.jsx)("hr", { ...remainingProps, className: classes });
|
|
12
9
|
};
|
|
13
10
|
exports.default = ActionBarItemListSeparator;
|
|
@@ -2,15 +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 omit_1 = tslib_1.__importDefault(require("lodash/fp/omit"));
|
|
9
|
-
const ActionBarItemPopoverContent = (
|
|
10
|
-
var { className, children } = _a, remainingProps = tslib_1.__rest(_a, ["className", "children"]);
|
|
7
|
+
const ActionBarItemPopoverContent = ({ className, children, ...remainingProps }) => {
|
|
11
8
|
const classes = (0, classnames_1.default)('ActionBarItemPopoverContent', className);
|
|
12
9
|
const filterProps = (0, omit_1.default)(['title', 'useOffscreen'])(remainingProps);
|
|
13
|
-
return ((0, jsx_runtime_1.jsx)("div",
|
|
10
|
+
return ((0, jsx_runtime_1.jsx)("div", { ...filterProps, className: classes, children: children }));
|
|
14
11
|
};
|
|
15
12
|
// The displayName is used in ActionBarItem for checking the component "isActionBarItemPopover"
|
|
16
13
|
ActionBarItemPopoverContent.displayName = 'ActionBarItemPopoverContent';
|
|
@@ -14,6 +14,6 @@ export type ActionBarOverlayProps = {
|
|
|
14
14
|
className?: string;
|
|
15
15
|
};
|
|
16
16
|
declare const ActionBarOverlay: React.ForwardRefExoticComponent<ActionBarOverlayProps & {
|
|
17
|
-
children?: React.ReactNode;
|
|
17
|
+
children?: React.ReactNode | undefined;
|
|
18
18
|
} & React.RefAttributes<HTMLDivElement>>;
|
|
19
19
|
export default ActionBarOverlay;
|
|
@@ -10,11 +10,11 @@ const Popover_1 = tslib_1.__importStar(require("../popover/Popover"));
|
|
|
10
10
|
const DEFAULT_PLACEMENT = Popover_1.PLACEMENT_MAP.BOTTOM;
|
|
11
11
|
const DEFAULT_WIDTH = 250;
|
|
12
12
|
const ActionBarOverlay = (0, react_1.forwardRef)((props, ref) => {
|
|
13
|
-
const { children, show, preRender, id, title, onClick = noop_1.default, width = DEFAULT_WIDTH, style = {}, className, placement = DEFAULT_PLACEMENT
|
|
14
|
-
const adjustedStyles =
|
|
13
|
+
const { children, show, preRender, id, title, onClick = noop_1.default, width = DEFAULT_WIDTH, style = {}, className, placement = DEFAULT_PLACEMENT, ...remainingProps } = props;
|
|
14
|
+
const adjustedStyles = { ...style, width };
|
|
15
15
|
const adjustedClassName = preRender && !show ? (0, classnames_1.default)(className, 'position-offscreen') : className;
|
|
16
16
|
const popoverTitleClasses = (0, classnames_1.default)('ActionBarItemPopover text-color-dark', className);
|
|
17
17
|
const popoverContentClasses = (0, classnames_1.default)('ActionBarItemPopover', className);
|
|
18
|
-
return ((0, jsx_runtime_1.jsxs)(Popover_1.default,
|
|
18
|
+
return ((0, jsx_runtime_1.jsxs)(Popover_1.default, { ref: ref, id: id, onClick: onClick, placement: placement, ...remainingProps, style: adjustedStyles, className: adjustedClassName, children: [title && (0, jsx_runtime_1.jsx)(Popover_1.default.Title, { className: popoverTitleClasses, children: title }), (0, jsx_runtime_1.jsx)(Popover_1.default.Content, { className: popoverContentClasses, children: children })] }));
|
|
19
19
|
});
|
|
20
20
|
exports.default = ActionBarOverlay;
|
|
@@ -18,12 +18,12 @@ const icons = {
|
|
|
18
18
|
};
|
|
19
19
|
const SIZE_MAP = { SIZE_SM: 'sm', SIZE_LG: 'lg', SIZE_XL: 'xl' };
|
|
20
20
|
const Activity = (0, react_1.forwardRef)((props, ref) => {
|
|
21
|
-
const { activity, duration, isOutdated = false, bsSize, onClick = () => { }, className = ''
|
|
21
|
+
const { activity, duration, isOutdated = false, bsSize, onClick = () => { }, className = '', ...remainingProps } = props;
|
|
22
22
|
if (!activity) {
|
|
23
23
|
return null;
|
|
24
24
|
}
|
|
25
25
|
const wrapperClassNames = (0, classnames_1.default)('activity', `activity-${activity}`, isOutdated && 'opacity-50', bsSize && `activity-${bsSize}`, className && className);
|
|
26
|
-
return ((0, jsx_runtime_1.jsxs)("div",
|
|
26
|
+
return ((0, jsx_runtime_1.jsxs)("div", { ref: ref, ...remainingProps, className: wrapperClassNames, onClick: onClick, children: [(0, jsx_runtime_1.jsx)("span", { className: 'activity-icon', children: (0, jsx_runtime_1.jsx)("span", { className: `rioglyph ${icons[activity]}` }) }), duration && (0, jsx_runtime_1.jsx)("span", { className: 'activity-text', children: duration })] }));
|
|
27
27
|
});
|
|
28
28
|
// statics
|
|
29
29
|
Object.assign(Activity, STATUS_MAP);
|
|
@@ -49,30 +49,30 @@ export declare const AnimatedNumber: React.ForwardRefExoticComponent<React.HTMLA
|
|
|
49
49
|
/**
|
|
50
50
|
* A prefix to be added to the final string.
|
|
51
51
|
*/
|
|
52
|
-
prefix?: string
|
|
52
|
+
prefix?: string;
|
|
53
53
|
/**
|
|
54
54
|
* A unit suffix to be added to the final string.
|
|
55
55
|
*/
|
|
56
|
-
unit?: string
|
|
56
|
+
unit?: string;
|
|
57
57
|
/**
|
|
58
58
|
* The speed in milliseconds to count up or down.
|
|
59
59
|
*
|
|
60
60
|
* @default 10
|
|
61
61
|
*/
|
|
62
|
-
speed?: number
|
|
62
|
+
speed?: number;
|
|
63
63
|
/**
|
|
64
64
|
* Enables to count backwards.
|
|
65
65
|
*
|
|
66
66
|
* @default false
|
|
67
67
|
*/
|
|
68
|
-
decreasing?: boolean
|
|
68
|
+
decreasing?: boolean;
|
|
69
69
|
/**
|
|
70
70
|
* Callback function to be invoked when the end value is reached.
|
|
71
71
|
*/
|
|
72
|
-
onEnd?: VoidFunction
|
|
72
|
+
onEnd?: VoidFunction;
|
|
73
73
|
/**
|
|
74
74
|
* Additional classes to be set on the wrapping element.
|
|
75
75
|
*/
|
|
76
|
-
className?: string
|
|
76
|
+
className?: string;
|
|
77
77
|
} & React.RefAttributes<HTMLSpanElement>>;
|
|
78
78
|
export default AnimatedNumber;
|
|
@@ -7,7 +7,7 @@ const react_1 = require("react");
|
|
|
7
7
|
const useInterval_1 = tslib_1.__importDefault(require("../../hooks/useInterval"));
|
|
8
8
|
const TIMER = 10;
|
|
9
9
|
exports.AnimatedNumber = (0, react_1.forwardRef)((props, ref) => {
|
|
10
|
-
const { start, end, prefix = '', unit = '', speed = TIMER, decreasing = false, onEnd = () => { }, className = ''
|
|
10
|
+
const { start, end, prefix = '', unit = '', speed = TIMER, decreasing = false, onEnd = () => { }, className = '', ...remainingProps } = props;
|
|
11
11
|
const [value, setValue] = (0, react_1.useState)(start);
|
|
12
12
|
const shallContinueRunning = decreasing ? value > end : value < end;
|
|
13
13
|
(0, useInterval_1.default)(() => {
|
|
@@ -18,6 +18,6 @@ exports.AnimatedNumber = (0, react_1.forwardRef)((props, ref) => {
|
|
|
18
18
|
onEnd();
|
|
19
19
|
}
|
|
20
20
|
});
|
|
21
|
-
return (0, jsx_runtime_1.jsx)("span",
|
|
21
|
+
return (0, jsx_runtime_1.jsx)("span", { ref: ref, ...remainingProps, className: className, children: `${prefix}${value}${unit}` });
|
|
22
22
|
});
|
|
23
23
|
exports.default = exports.AnimatedNumber;
|
|
@@ -2,15 +2,13 @@
|
|
|
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 AppMenuDropdown_1 = tslib_1.__importDefault(require("./AppMenuDropdown"));
|
|
9
7
|
const AppMenuContent_1 = tslib_1.__importDefault(require("./AppMenuContent"));
|
|
10
8
|
const AppMenu = (props) => {
|
|
11
|
-
const { label = 'Unknown', appMenuItems = [], appNavigatorClassName, appNavigator, onToggleAppMenu
|
|
12
|
-
const hasItems = !!(
|
|
9
|
+
const { label = 'Unknown', appMenuItems = [], appNavigatorClassName, appNavigator, onToggleAppMenu, ...remainingProps } = props;
|
|
10
|
+
const hasItems = !!(appMenuItems?.length || appNavigator);
|
|
13
11
|
const wrapperClassNames = (0, classnames_1.default)('ModuleNavigation AppMenu', 'user-select-none', { hasModules: hasItems }, !appNavigator && 'pointer-events-none', appNavigatorClassName && appNavigatorClassName);
|
|
14
|
-
return ((0, jsx_runtime_1.jsx)("ul",
|
|
12
|
+
return ((0, jsx_runtime_1.jsx)("ul", { ...remainingProps, className: wrapperClassNames, children: (0, jsx_runtime_1.jsx)(AppMenuDropdown_1.default, { title: label, caret: hasItems, onToggleAppMenu: onToggleAppMenu, children: appNavigator && (0, jsx_runtime_1.jsx)(AppMenuContent_1.default, { appMenuItems: appMenuItems, appNavigator: appNavigator }) }) }));
|
|
15
13
|
};
|
|
16
14
|
exports.default = AppMenu;
|
|
@@ -1,18 +1,16 @@
|
|
|
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 AppMenuContent = (props) => {
|
|
7
5
|
const { appMenuItems, appNavigator } = props;
|
|
8
6
|
// In case there is a navigation component injected into the header,
|
|
9
7
|
// render this component
|
|
10
8
|
if (appNavigator) {
|
|
11
|
-
return ((0, jsx_runtime_1.jsx)("li",
|
|
9
|
+
return ((0, jsx_runtime_1.jsx)("li", { role: 'presentation', children: appNavigator }, 'app-navigator'));
|
|
12
10
|
}
|
|
13
11
|
// If there is a list of appMenuItems given, render them as a list
|
|
14
12
|
return ((0, jsx_runtime_1.jsx)(jsx_runtime_1.Fragment, { children: appMenuItems.map(module => {
|
|
15
|
-
return ((0, jsx_runtime_1.jsx)("li",
|
|
13
|
+
return ((0, jsx_runtime_1.jsx)("li", { role: 'presentation', children: module.route }, `link-icon-${module.key}`));
|
|
16
14
|
}) }));
|
|
17
15
|
};
|
|
18
16
|
exports.default = AppMenuContent;
|
|
@@ -13,18 +13,18 @@ const ToggleButton = (props) => {
|
|
|
13
13
|
const toggleClassName = (0, classnames_1.default)('ModuleNavigation-dropdown', 'dropdown-toggle justify-content-between', {
|
|
14
14
|
inactive: !caret,
|
|
15
15
|
});
|
|
16
|
-
return ((0, jsx_runtime_1.jsxs)("a",
|
|
16
|
+
return ((0, jsx_runtime_1.jsxs)("a", { className: toggleClassName, role: 'button', id: 'basic-nav-dropdown', children: [(0, jsx_runtime_1.jsx)("span", { children: title }), caret && (0, jsx_runtime_1.jsx)("span", { className: 'caret' })] }));
|
|
17
17
|
};
|
|
18
18
|
const DropdownMenu = (props) => {
|
|
19
19
|
const { children } = props;
|
|
20
20
|
if ((0, isEmpty_1.default)(children)) {
|
|
21
21
|
return null;
|
|
22
22
|
}
|
|
23
|
-
return ((0, jsx_runtime_1.jsx)("ul",
|
|
23
|
+
return ((0, jsx_runtime_1.jsx)("ul", { role: 'menu', className: 'dropdown-menu ModuleNavigation-dropdown-menu', children: children }));
|
|
24
24
|
};
|
|
25
25
|
const AppMenuDropdownOpener = (0, react_1.forwardRef)((props, ref) => {
|
|
26
26
|
const { open, children, onDropdownClick } = props;
|
|
27
|
-
return ((0, jsx_runtime_1.jsx)("li",
|
|
27
|
+
return ((0, jsx_runtime_1.jsx)("li", { ref: ref, className: (0, classnames_1.default)('dropdown', { open }), onClick: onDropdownClick, children: children }));
|
|
28
28
|
});
|
|
29
29
|
const AppMenuDropdown = (props) => {
|
|
30
30
|
const { title, caret = false, onToggleAppMenu = noop_1.default, children } = props;
|
|
@@ -36,7 +36,7 @@ const AppMenuDropdown = (props) => {
|
|
|
36
36
|
onToggleAppMenu(newState);
|
|
37
37
|
};
|
|
38
38
|
const openWithChildren = !(0, isEmpty_1.default)(children) && isOpen;
|
|
39
|
-
return ((0, jsx_runtime_1.jsxs)(AppMenuDropdownOpener,
|
|
39
|
+
return ((0, jsx_runtime_1.jsxs)(AppMenuDropdownOpener, { open: openWithChildren, onDropdownClick: handleDropdownClick, ref: wrapperRef, children: [(0, jsx_runtime_1.jsx)(ToggleButton, { title: title, caret: caret }), (0, jsx_runtime_1.jsx)(DropdownMenu, { children: children })] }));
|
|
40
40
|
};
|
|
41
41
|
exports.AppMenuDropdown = AppMenuDropdown;
|
|
42
42
|
exports.default = exports.AppMenuDropdown;
|
|
@@ -1,13 +1,10 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
const tslib_1 = require("tslib");
|
|
4
3
|
const jsx_runtime_1 = require("react/jsx-runtime");
|
|
5
|
-
// @ts-ignore-next-line importsNotUsedAsValues
|
|
6
|
-
require("react");
|
|
7
4
|
const ApplicationActionBar = (props) => {
|
|
8
|
-
const { items, nodeRef, className = ''
|
|
9
|
-
return ((0, jsx_runtime_1.jsx)("ul",
|
|
10
|
-
return ((0, jsx_runtime_1.jsx)("li",
|
|
11
|
-
}) }))
|
|
5
|
+
const { items, nodeRef, className = '', ...remainingProps } = props;
|
|
6
|
+
return ((0, jsx_runtime_1.jsx)("ul", { ...remainingProps, className: `ApplicationActionBar nav navbar-nav navbar-right ${className}`, ref: nodeRef, children: items?.map((item, index) => {
|
|
7
|
+
return ((0, jsx_runtime_1.jsx)("li", { role: 'presentation', className: 'navigationItem', children: item }, index));
|
|
8
|
+
}) }));
|
|
12
9
|
};
|
|
13
10
|
exports.default = ApplicationActionBar;
|
|
@@ -14,10 +14,10 @@ const useResizeObserver_1 = tslib_1.__importDefault(require("../../hooks/useResi
|
|
|
14
14
|
const NavItems_1 = tslib_1.__importDefault(require("./NavItems"));
|
|
15
15
|
const SCREEN_SM = 768; // @screen-sm: 768px;
|
|
16
16
|
exports.ApplicationHeader = (0, react_1.forwardRef)((props, ref) => {
|
|
17
|
-
const { homeRoute = '', showHomeIcon = true, label, className, appNavigator, appNavigatorClassName, appMenuItems, navItems, actionBarItems = [], onToggleAppMenu = () => { }
|
|
17
|
+
const { homeRoute = '', showHomeIcon = true, label, className, appNavigator, appNavigatorClassName, appMenuItems, navItems, actionBarItems = [], onToggleAppMenu = () => { }, ...remainingProps } = props;
|
|
18
18
|
const actionBarRef = (0, react_1.useRef)(null);
|
|
19
19
|
const [navRef, entry] = (0, useResizeObserver_1.default)();
|
|
20
|
-
const contentRect = entry
|
|
20
|
+
const contentRect = entry?.contentRect;
|
|
21
21
|
(0, react_1.useImperativeHandle)(ref, () => navRef, [navRef]);
|
|
22
22
|
const getContentRect = (0, react_1.useCallback)((key) => {
|
|
23
23
|
if (contentRect) {
|
|
@@ -29,7 +29,7 @@ exports.ApplicationHeader = (0, react_1.forwardRef)((props, ref) => {
|
|
|
29
29
|
const isMobileWidth = containerWidth <= SCREEN_SM;
|
|
30
30
|
const hasActionBarItems = !(0, isEmpty_1.default)(actionBarItems);
|
|
31
31
|
const wrapperClassNames = (0, classnames_1.default)('ApplicationHeader', 'user-select-none', isMobileWidth && 'mobile', className && className);
|
|
32
|
-
return ((0, jsx_runtime_1.jsxs)("nav",
|
|
32
|
+
return ((0, jsx_runtime_1.jsxs)("nav", { ...remainingProps, className: wrapperClassNames, ref: navRef, children: [isMobileWidth && ((0, jsx_runtime_1.jsxs)(react_1.default.Fragment, { children: [(0, jsx_runtime_1.jsx)(MobileAppMenu_1.default, { showHomeIcon: showHomeIcon, homeRoute: homeRoute, appMenuItems: appMenuItems, appNavigator: appNavigator, onToggleAppMenu: onToggleAppMenu }), (0, jsx_runtime_1.jsxs)("div", { className: 'flex-1-1-0 display-flex gap-10', children: [(0, jsx_runtime_1.jsx)(MobileSubmoduleNavigation_1.default, { className: 'flex-1-1', label: label, navItems: navItems }), hasActionBarItems && (0, jsx_runtime_1.jsx)(Divider, {}), (0, jsx_runtime_1.jsx)(ApplicationActionBar_1.default, { className: 'mobile', nodeRef: actionBarRef, items: actionBarItems })] })] })), !isMobileWidth && ((0, jsx_runtime_1.jsxs)(react_1.default.Fragment, { children: [(0, jsx_runtime_1.jsx)("div", { className: 'navbar-header', children: (0, jsx_runtime_1.jsx)("span", { className: `navbar-brand ${showHomeIcon ? 'home-icon' : ''}`, children: homeRoute }) }), label && ((0, jsx_runtime_1.jsx)(AppMenu_1.default, { label: label, appMenuItems: appMenuItems, appNavigator: appNavigator, appNavigatorClassName: appNavigatorClassName, onToggleAppMenu: onToggleAppMenu }, 'AppMenu')), (0, isEmpty_1.default)(navItems) && (0, jsx_runtime_1.jsx)("ul", { className: 'SubmoduleNavigation nav' }), !(0, isEmpty_1.default)(navItems) && ((0, jsx_runtime_1.jsx)(NavItems_1.default, { navItems: navItems, containerWidth: containerWidth, actionBarItems: actionBarItems }, 'NavItems')), (0, jsx_runtime_1.jsx)(ApplicationActionBar_1.default, { nodeRef: actionBarRef, items: actionBarItems })] }))] }));
|
|
33
33
|
});
|
|
34
|
-
const Divider = () => ((0, jsx_runtime_1.jsx)("div",
|
|
34
|
+
const Divider = () => ((0, jsx_runtime_1.jsx)("div", { className: 'divider display-flex align-items-center', children: (0, jsx_runtime_1.jsx)("div", { className: 'width-3 height-20 bg-lighter' }) }));
|
|
35
35
|
exports.default = exports.ApplicationHeader;
|
|
@@ -10,8 +10,8 @@ const CollapsedNavItem = (0, react_1.forwardRef)((props, ref) => {
|
|
|
10
10
|
return null;
|
|
11
11
|
}
|
|
12
12
|
const collapsedDropdownClass = show ? 'open' : '';
|
|
13
|
-
return ((0, jsx_runtime_1.jsxs)("li",
|
|
14
|
-
return ((0, jsx_runtime_1.jsx)("li",
|
|
15
|
-
}) })
|
|
13
|
+
return ((0, jsx_runtime_1.jsxs)("li", { className: `CollapsedDropdown dropdown ${collapsedDropdownClass}`, ref: ref, children: [(0, jsx_runtime_1.jsx)("a", { id: 'basic-nav-dropdown', role: 'button', className: 'dropdown-toggle text-color-gray', "aria-haspopup": 'true', "aria-expanded": 'true', onClick: onDropdownClick, children: (0, jsx_runtime_1.jsx)("span", { className: 'rioglyph rioglyph-option-horizontal', "aria-hidden": 'true' }) }), (0, jsx_runtime_1.jsx)("ul", { className: 'dropdown-menu', role: 'menu', "aria-labelledby": 'basic-nav-dropdown', children: navItems.map(navItem => {
|
|
14
|
+
return ((0, jsx_runtime_1.jsx)("li", { className: 'submodule', onClick: onItemClick, "data-nav-item-key": navItem.key, children: navItem.route }, navItem.key));
|
|
15
|
+
}) })] }, 'collapsed-dropdown'));
|
|
16
16
|
});
|
|
17
17
|
exports.default = CollapsedNavItem;
|
|
@@ -14,7 +14,7 @@ const MobileAppMenu = (props) => {
|
|
|
14
14
|
onToggleAppMenu(newState);
|
|
15
15
|
};
|
|
16
16
|
const hasAppContent = !((0, isNil_1.default)(appMenuItems) && (0, isNil_1.default)(appNavigator));
|
|
17
|
-
return ((0, jsx_runtime_1.jsxs)(react_1.default.Fragment, { children: [(0, jsx_runtime_1.jsxs)("div",
|
|
18
|
-
'overflow-hidden position-relative display-flex align-items-center', onClick: handleToggleNavigation
|
|
17
|
+
return ((0, jsx_runtime_1.jsxs)(react_1.default.Fragment, { children: [(0, jsx_runtime_1.jsxs)("div", { className: 'navbar-header min-width-50 padding-5 ' +
|
|
18
|
+
'overflow-hidden position-relative display-flex align-items-center', onClick: handleToggleNavigation, children: [(0, jsx_runtime_1.jsx)("span", { className: `navbar-brand height-40 width-40 ${showHomeIcon ? 'home-icon' : ''}`, children: !hasAppContent && homeRoute }), hasAppContent && ((0, jsx_runtime_1.jsx)("div", { className: 'position-absolute right-2 bottom-0 text-color-white rotate-45', children: (0, jsx_runtime_1.jsx)("span", { className: 'rioglyph rioglyph-triangle-right' }) }))] }), appNavigator && ((0, jsx_runtime_1.jsx)(MobileHeaderModal_1.default, { show: isShown, modalClassName: 'padding-top-25', onClose: handleToggleNavigation, children: (0, jsx_runtime_1.jsx)("div", { className: 'width-100pct height-100pct', children: appNavigator }) })), appMenuItems && ((0, jsx_runtime_1.jsx)(MobileHeaderModal_1.default, { show: isShown, modalClassName: 'padding-15', onClose: handleToggleNavigation, children: appMenuItems.map(module => ((0, jsx_runtime_1.jsx)("li", { role: 'presentation', children: module.route }, `link-icon-${module.key}`))) }))] }));
|
|
19
19
|
};
|
|
20
20
|
exports.default = MobileAppMenu;
|
|
@@ -15,7 +15,7 @@ const MobileHeaderModal = (props) => {
|
|
|
15
15
|
const modalRoot = (0, portalRoot_1.getOrCreatePortalRoot)();
|
|
16
16
|
const pageHeight = window.innerHeight - 30;
|
|
17
17
|
const offset = OFFSET_POSITION - window.innerHeight;
|
|
18
|
-
return ((0, jsx_runtime_1.jsx)(jsx_runtime_1.Fragment, { children: react_dom_1.default.createPortal((0, jsx_runtime_1.jsxs)(react_1.default.Fragment, { children: [(0, jsx_runtime_1.jsx)(framer_motion_1.AnimatePresence, { children: show && ((0, jsx_runtime_1.jsxs)(framer_motion_1.motion.div,
|
|
19
|
-
'text-size-20 text-color-dark', onClick: onClose
|
|
18
|
+
return ((0, jsx_runtime_1.jsx)(jsx_runtime_1.Fragment, { children: react_dom_1.default.createPortal((0, jsx_runtime_1.jsxs)(react_1.default.Fragment, { children: [(0, jsx_runtime_1.jsx)(framer_motion_1.AnimatePresence, { children: show && ((0, jsx_runtime_1.jsxs)(framer_motion_1.motion.div, { className: wrapperClasses, initial: { opacity: 0, top: offset }, animate: { opacity: 1, y: 0, top: 0 }, exit: { opacity: 0, transition: { duration: 0.3 }, top: offset }, children: [(0, jsx_runtime_1.jsx)("div", { className: modalClasses, style: { height: `${pageHeight}px` }, children: children }), showClose && ((0, jsx_runtime_1.jsx)("div", { className: 'position-absolute top-15 right-15 margin-top-15 margin-right-15 ' +
|
|
19
|
+
'text-size-20 text-color-dark', onClick: onClose, children: (0, jsx_runtime_1.jsx)("span", { className: 'rioglyph rioglyph-remove' }) }))] })) }), (0, jsx_runtime_1.jsx)(framer_motion_1.AnimatePresence, { children: show && ((0, jsx_runtime_1.jsx)(framer_motion_1.motion.div, { className: 'bottom-sheet-backdrop', initial: { opacity: 0 }, animate: { opacity: 0.5 }, exit: { opacity: 0 } })) })] }), modalRoot) }));
|
|
20
20
|
};
|
|
21
21
|
exports.default = MobileHeaderModal;
|
|
@@ -15,11 +15,11 @@ const MobileSubmoduleNavigation = (props) => {
|
|
|
15
15
|
const labelClasses = (0, classnames_1.default)(hasNavItems
|
|
16
16
|
? 'text-size-12 text-color-dark line-height-14'
|
|
17
17
|
: 'text-size-16 line-height-16 text-color-darkest text-medium text-uppercase', 'width-100pct ellipsis-1');
|
|
18
|
-
return ((0, jsx_runtime_1.jsxs)("div",
|
|
18
|
+
return ((0, jsx_runtime_1.jsxs)("div", { className: classes, onClick: handleToggleNavigation, children: [(0, jsx_runtime_1.jsxs)("div", { className: 'flex-1-1 display-flex flex-column align-items-center width-0', children: [(0, jsx_runtime_1.jsx)("div", { className: labelClasses, children: label }), (0, jsx_runtime_1.jsx)("div", { className: 'text-medium width-100pct', children: navItems.map(navItem => ((0, jsx_runtime_1.jsx)("div", { className: 'ellipsis-1', children: react_1.default.cloneElement(navItem.route, {
|
|
19
19
|
className: 'text-size-16 line-height-16 text-color-darkest text-decoration-none',
|
|
20
20
|
onClick: (event) => event.preventDefault(),
|
|
21
|
-
}) }
|
|
21
|
+
}) }, navItem.key))) })] }), hasNavItems && ((0, jsx_runtime_1.jsx)("div", { className: 'text-size-16 text-color-dark', children: (0, jsx_runtime_1.jsx)("span", { className: 'rioglyph rioglyph-chevron-down' }) })), hasNavItems && ((0, jsx_runtime_1.jsx)(MobileHeaderModal_1.default, { show: isShown, children: navItems.map(navItem => ((0, jsx_runtime_1.jsx)("div", { className: 'margin-y-15 font-size-20', children: react_1.default.cloneElement(navItem.route, {
|
|
22
22
|
className: 'text-size-20 text-color-darker',
|
|
23
|
-
}) }
|
|
23
|
+
}) }, navItem.key))) }))] }));
|
|
24
24
|
};
|
|
25
25
|
exports.default = MobileSubmoduleNavigation;
|
|
@@ -105,7 +105,7 @@ const NavItems = (props) => {
|
|
|
105
105
|
}
|
|
106
106
|
};
|
|
107
107
|
const renderNavItem = (navItem, isItemOffscreen) => {
|
|
108
|
-
return ((0, jsx_runtime_1.jsx)("li",
|
|
108
|
+
return ((0, jsx_runtime_1.jsx)("li", { className: `submodule ${isItemOffscreen ? 'offscreen' : ''}`, "data-nav-item-key": navItem.key, children: navItem.route }, navItem.key));
|
|
109
109
|
};
|
|
110
110
|
const renderNavItems = () => {
|
|
111
111
|
if (!isOffscreen.current && !(0, isEmpty_1.default)(collapsedNavItems)) {
|
|
@@ -121,7 +121,7 @@ const NavItems = (props) => {
|
|
|
121
121
|
// the computation whether a navItem need to be shown under the collapsed dropdown or not
|
|
122
122
|
// needs to be done after the component did mount to the DOM.
|
|
123
123
|
const classes = (0, classnames_1.default)('SubmoduleNavigation', 'nav');
|
|
124
|
-
return ((0, jsx_runtime_1.jsx)("ul",
|
|
124
|
+
return ((0, jsx_runtime_1.jsx)("ul", { className: classes, ref: navigationRef, children: renderNavItems() }));
|
|
125
125
|
};
|
|
126
126
|
exports.NavItems = NavItems;
|
|
127
127
|
exports.default = exports.NavItems;
|
|
@@ -9,14 +9,13 @@ const ApplicationLayoutHeader_1 = tslib_1.__importDefault(require("./Application
|
|
|
9
9
|
const ApplicationLayoutSidebar_1 = tslib_1.__importDefault(require("./ApplicationLayoutSidebar"));
|
|
10
10
|
const ApplicationLayoutBody_1 = tslib_1.__importDefault(require("./ApplicationLayoutBody"));
|
|
11
11
|
const initDocumentBootstrapping_1 = require("../../utils/init/initDocumentBootstrapping");
|
|
12
|
-
require("../../utils/init/initConfig");
|
|
13
12
|
// initializes document bootstrapping - keep the import to avoid being tree-shaken
|
|
14
13
|
// noinspection JSIgnoredPromiseFromCall
|
|
15
14
|
(0, initDocumentBootstrapping_1.initDocumentBootstrapping)();
|
|
16
15
|
const ApplicationLayout = (0, react_1.forwardRef)((props, ref) => {
|
|
17
|
-
const { className, layoutRef, children
|
|
16
|
+
const { className, layoutRef, children, ...remainingProps } = props;
|
|
18
17
|
const classes = (0, classnames_1.default)('ApplicationLayout', className);
|
|
19
|
-
return ((0, jsx_runtime_1.jsx)("div",
|
|
18
|
+
return ((0, jsx_runtime_1.jsx)("div", { ...remainingProps, ref: ref || layoutRef, className: classes, children: children }));
|
|
20
19
|
});
|
|
21
20
|
ApplicationLayout.Header = ApplicationLayoutHeader_1.default;
|
|
22
21
|
ApplicationLayout.Sidebar = ApplicationLayoutSidebar_1.default;
|
|
@@ -45,6 +45,6 @@ export type ApplicationLayoutBodyProps = {
|
|
|
45
45
|
className?: string;
|
|
46
46
|
};
|
|
47
47
|
declare const ApplicationLayoutBody: React.ForwardRefExoticComponent<ApplicationLayoutBodyProps & {
|
|
48
|
-
children?: React.ReactNode;
|
|
48
|
+
children?: React.ReactNode | undefined;
|
|
49
49
|
} & React.RefAttributes<HTMLDivElement>>;
|
|
50
50
|
export default ApplicationLayoutBody;
|
|
@@ -9,11 +9,14 @@ const SmoothScrollbars_1 = tslib_1.__importDefault(require("../smoothScrollbars/
|
|
|
9
9
|
const RESIZE_THROTTLING = 200;
|
|
10
10
|
const DEFAULT_BOTTOM_BAR_HEIGHT = 54;
|
|
11
11
|
const ApplicationLayoutBody = (0, react_1.forwardRef)((props, ref) => {
|
|
12
|
-
const { className, innerClassName, forceScrollbar = true, enableScrollToTop = true, banner, navigation, bottomBar, bottomBarHeight = DEFAULT_BOTTOM_BAR_HEIGHT, scrollResetTrigger, children
|
|
12
|
+
const { className, innerClassName, forceScrollbar = true, enableScrollToTop = true, banner, navigation, bottomBar, bottomBarHeight = DEFAULT_BOTTOM_BAR_HEIGHT, scrollResetTrigger, children, ...remainingProps } = props;
|
|
13
13
|
const [offset, setOffset] = (0, react_1.useState)(0);
|
|
14
14
|
const moduleContentRef = (0, react_1.useRef)(null);
|
|
15
15
|
const layoutBodyRef = (0, react_1.useRef)(null);
|
|
16
|
-
|
|
16
|
+
// Use imperative handle to expose the internal layout ref. Usually this is used to
|
|
17
|
+
// expose internal function without exposing the underlying DOM element.
|
|
18
|
+
// In this case however, we want access to the element to trigger functions like scrollIntoView()
|
|
19
|
+
(0, react_1.useImperativeHandle)(ref, () => layoutBodyRef?.current, []);
|
|
17
20
|
// Reset scroll position when children are different. This fixes the issue of
|
|
18
21
|
// changing body content (like in another route) and still having the same scroll position
|
|
19
22
|
// biome-ignore lint/correctness/useExhaustiveDependencies: <explanation>
|
|
@@ -24,8 +27,7 @@ const ApplicationLayoutBody = (0, react_1.forwardRef)((props, ref) => {
|
|
|
24
27
|
}
|
|
25
28
|
}, [scrollResetTrigger]);
|
|
26
29
|
(0, react_1.useEffect)(() => {
|
|
27
|
-
|
|
28
|
-
if (((_a = layoutBodyRef.current) === null || _a === void 0 ? void 0 : _a.parentNode) instanceof HTMLElement) {
|
|
30
|
+
if (layoutBodyRef.current?.parentNode instanceof HTMLElement) {
|
|
29
31
|
layoutBodyRef.current.parentNode.style.setProperty('--ApplicationLayoutBodyBottomBarHeight', `${bottomBarHeight}px`);
|
|
30
32
|
}
|
|
31
33
|
}, [bottomBarHeight]);
|
|
@@ -35,16 +37,15 @@ const ApplicationLayoutBody = (0, react_1.forwardRef)((props, ref) => {
|
|
|
35
37
|
}
|
|
36
38
|
});
|
|
37
39
|
const handleToTop = () => {
|
|
38
|
-
var _a;
|
|
39
40
|
if (!moduleContentRef.current) {
|
|
40
41
|
return;
|
|
41
42
|
}
|
|
42
43
|
const scrollWrapper = moduleContentRef.current.container;
|
|
43
44
|
const scrollingElement = scrollWrapper.firstElementChild;
|
|
44
|
-
const currentScroll =
|
|
45
|
+
const currentScroll = scrollingElement?.scrollTop ?? 0;
|
|
45
46
|
if (currentScroll > 0) {
|
|
46
47
|
window.requestAnimationFrame(handleToTop);
|
|
47
|
-
scrollingElement
|
|
48
|
+
scrollingElement?.scrollTo(0, currentScroll - currentScroll / 5);
|
|
48
49
|
scrollWrapper.classList.add('is-scrolling-to-top');
|
|
49
50
|
setOffset(currentScroll);
|
|
50
51
|
}
|
|
@@ -56,6 +57,6 @@ const ApplicationLayoutBody = (0, react_1.forwardRef)((props, ref) => {
|
|
|
56
57
|
const innerClasses = (0, classnames_1.default)('module-content', innerClassName && innerClassName);
|
|
57
58
|
const offsetThreshold = window.innerHeight * 0.1;
|
|
58
59
|
const scrollToTopClasses = (0, classnames_1.default)('scroll-to-top', offset > offsetThreshold && 'in');
|
|
59
|
-
return ((0, jsx_runtime_1.jsxs)(react_1.default.Fragment, { children: [(0, jsx_runtime_1.jsxs)("div",
|
|
60
|
+
return ((0, jsx_runtime_1.jsxs)(react_1.default.Fragment, { children: [(0, jsx_runtime_1.jsxs)("div", { ...remainingProps, ref: layoutBodyRef, className: classes, children: [(0, jsx_runtime_1.jsxs)("div", { className: 'module-content-wrapper', children: [navigation && navigation, banner && banner, (0, jsx_runtime_1.jsx)(SmoothScrollbars_1.default, { ref: moduleContentRef, slideIn: !forceScrollbar, largeTrack: true, trackOffset: true, className: innerClasses, onScroll: handleScroll, children: (0, jsx_runtime_1.jsx)("div", { className: 'scrollbar-content', children: children }) })] }), enableScrollToTop && ((0, jsx_runtime_1.jsx)("span", { className: scrollToTopClasses, children: (0, jsx_runtime_1.jsx)("button", { type: 'button', className: 'btn btn-primary btn-icon-only', onClick: handleToTop, children: (0, jsx_runtime_1.jsx)("span", { className: 'rioglyph rioglyph-arrow-up' }) }) }))] }), bottomBar && bottomBar] }));
|
|
60
61
|
});
|
|
61
62
|
exports.default = ApplicationLayoutBody;
|
|
@@ -21,6 +21,6 @@ export type ApplicationLayoutBodyBannerProps = {
|
|
|
21
21
|
className?: string;
|
|
22
22
|
};
|
|
23
23
|
declare const ApplicationLayoutBodyBanner: React.ForwardRefExoticComponent<ApplicationLayoutBodyBannerProps & {
|
|
24
|
-
children?: React.ReactNode;
|
|
24
|
+
children?: React.ReactNode | undefined;
|
|
25
25
|
} & React.RefAttributes<HTMLDivElement>>;
|
|
26
26
|
export default ApplicationLayoutBodyBanner;
|
|
@@ -7,8 +7,8 @@ const classnames_1 = tslib_1.__importDefault(require("classnames"));
|
|
|
7
7
|
const DEFAULT_TEXT_COLOR = 'text-color-white';
|
|
8
8
|
const DEFAULT_BACKGROUND_COLOR = 'bg-primary';
|
|
9
9
|
const ApplicationLayoutBodyBanner = (0, react_1.forwardRef)((props, ref) => {
|
|
10
|
-
const { textColor = DEFAULT_TEXT_COLOR, backgroundColor = DEFAULT_BACKGROUND_COLOR, isSticky = true, className, children
|
|
10
|
+
const { textColor = DEFAULT_TEXT_COLOR, backgroundColor = DEFAULT_BACKGROUND_COLOR, isSticky = true, className, children, ...remainingProps } = props;
|
|
11
11
|
const bannerClasses = (0, classnames_1.default)('ApplicationLayoutBodyBanner', textColor, backgroundColor, isSticky && 'position-sticky top-0 z-index-3', className);
|
|
12
|
-
return ((0, jsx_runtime_1.jsx)("div",
|
|
12
|
+
return ((0, jsx_runtime_1.jsx)("div", { ...remainingProps, ref: ref, className: bannerClasses, children: children }));
|
|
13
13
|
});
|
|
14
14
|
exports.default = ApplicationLayoutBodyBanner;
|