@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 +1 @@
|
|
|
1
|
-
|
|
1
|
+
export {};
|
|
@@ -6,10 +6,10 @@ export const renderAxis = (axis, index) => {
|
|
|
6
6
|
const key = `additional-axis-${index}`;
|
|
7
7
|
if (React.isValidElement(axis)) {
|
|
8
8
|
if (axis.type === XAxis) {
|
|
9
|
-
return _jsx(RechartsXAxis,
|
|
9
|
+
return _jsx(RechartsXAxis, { ...axis.props }, key);
|
|
10
10
|
}
|
|
11
11
|
if (axis.type === YAxis) {
|
|
12
|
-
return _jsx(RechartsYAxis,
|
|
12
|
+
return _jsx(RechartsYAxis, { ...axis.props }, key);
|
|
13
13
|
}
|
|
14
14
|
}
|
|
15
15
|
return null;
|
|
@@ -6,5 +6,5 @@ export declare const defaultChartColors: string[];
|
|
|
6
6
|
export declare const getFromDefaultColors: (index: number) => string;
|
|
7
7
|
export declare const getColor: (colorKey?: string) => string | undefined;
|
|
8
8
|
export declare const mapGridOptions: <T extends {
|
|
9
|
-
stroke?: string
|
|
10
|
-
}>(gridOptions?: T
|
|
9
|
+
stroke?: string;
|
|
10
|
+
}>(gridOptions?: T) => T | undefined;
|
|
@@ -12,7 +12,7 @@ export const mapGridOptions = (gridOptions) => {
|
|
|
12
12
|
if (!gridOptions) {
|
|
13
13
|
return;
|
|
14
14
|
}
|
|
15
|
-
const mappedGridOptions =
|
|
15
|
+
const mappedGridOptions = { ...gridOptions };
|
|
16
16
|
const { stroke } = mappedGridOptions;
|
|
17
17
|
mappedGridOptions.stroke = stroke && !stroke.startsWith('#') ? getColor(stroke) : stroke;
|
|
18
18
|
return mappedGridOptions;
|
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
import { __rest } from "tslib";
|
|
2
1
|
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
3
2
|
import { useRef, useEffect } from 'react';
|
|
4
3
|
import classNames from 'classnames';
|
|
@@ -8,11 +7,10 @@ const DEFAULT_ICON_SIZE = 16;
|
|
|
8
7
|
const ICON_LABEL_VERTICAL = 'vertical';
|
|
9
8
|
const ICON_LABEL_HORIZONTAL = 'horizontal';
|
|
10
9
|
const Checkbox = (props) => {
|
|
11
|
-
const { checked, children, className, custom = false, defaultChecked, disabled = false, error = false, icon = '', iconLabelPosition = ICON_LABEL_VERTICAL, iconSize = DEFAULT_ICON_SIZE, id = props.name, indeterminate = false, inline = false, inputRef, label, name, onChange = noop, onClick = noop, required = false, right, size, tabIndex = 0
|
|
10
|
+
const { checked, children, className, custom = false, defaultChecked, disabled = false, error = false, icon = '', iconLabelPosition = ICON_LABEL_VERTICAL, iconSize = DEFAULT_ICON_SIZE, id = props.name, indeterminate = false, inline = false, inputRef, label, name, onChange = noop, onClick = noop, required = false, right, size, tabIndex = 0, ...remainingProps } = props;
|
|
12
11
|
const labelRef = useRef(null);
|
|
13
12
|
useEffect(() => {
|
|
14
|
-
|
|
15
|
-
const input = (_a = labelRef.current) === null || _a === void 0 ? void 0 : _a.firstChild;
|
|
13
|
+
const input = labelRef.current?.firstChild;
|
|
16
14
|
if (input) {
|
|
17
15
|
input.indeterminate = indeterminate;
|
|
18
16
|
}
|
|
@@ -32,12 +30,11 @@ const Checkbox = (props) => {
|
|
|
32
30
|
}
|
|
33
31
|
};
|
|
34
32
|
const toggle = (event) => {
|
|
35
|
-
var _a;
|
|
36
33
|
event.preventDefault();
|
|
37
34
|
if (disabled) {
|
|
38
35
|
return;
|
|
39
36
|
}
|
|
40
|
-
const input =
|
|
37
|
+
const input = labelRef.current?.firstChild;
|
|
41
38
|
if (input.indeterminate) {
|
|
42
39
|
input.indeterminate = false;
|
|
43
40
|
}
|
|
@@ -51,7 +48,7 @@ const Checkbox = (props) => {
|
|
|
51
48
|
const renderCustomIcon = !!icon;
|
|
52
49
|
const renderCustomContent = custom && children;
|
|
53
50
|
const renderDefault = !icon && !custom;
|
|
54
|
-
return (_jsxs("label",
|
|
51
|
+
return (_jsxs("label", { ...remainingProps, className: labelClassnames, tabIndex: tabIndex, htmlFor: id, onKeyDown: handleToggleKeyDown, ref: labelRef, children: [_jsx("input", { id: id, name: name, type: 'checkbox', checked: checked, required: required, defaultChecked: defaultChecked, disabled: disabled, className: inputClassnames, onClick: onClick, onChange: onChange, ref: inputRef }), renderCustomIcon && (_jsx(CheckboxIcon, { icon: icon, iconSize: iconSize, iconLabelPosition: iconLabelPosition, text: text })), renderDefault && _jsx("span", { className: 'checkbox-text', children: text && _jsx("span", { children: text }) }), renderCustomContent && children] }));
|
|
55
52
|
};
|
|
56
53
|
Checkbox.ICON_LABEL_VERTICAL = ICON_LABEL_VERTICAL;
|
|
57
54
|
Checkbox.ICON_LABEL_HORIZONTAL = ICON_LABEL_HORIZONTAL;
|
|
@@ -7,5 +7,5 @@ export const CheckboxIcon = (props) => {
|
|
|
7
7
|
fontSize: `${iconSize}px`,
|
|
8
8
|
lineHeight: `${iconSize}px`,
|
|
9
9
|
};
|
|
10
|
-
return (_jsxs("span",
|
|
10
|
+
return (_jsxs("span", { className: `checkbox-icon label-${iconLabelPosition}`, children: [_jsx("span", { className: `rioglyph ${icon}`, style: iconStyles }), _jsx("span", { className: 'checkbox-label', children: text })] }));
|
|
11
11
|
};
|
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
import { __rest } from "tslib";
|
|
2
1
|
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
3
2
|
import { useState, forwardRef } from 'react';
|
|
4
3
|
import omit from 'lodash/fp/omit';
|
|
@@ -13,7 +12,7 @@ export const DEFAULT_TYPE = 'text';
|
|
|
13
12
|
export const SUPPORTED_TYPES = ['text', 'password', 'email'];
|
|
14
13
|
const hasValue = (value) => !isEmpty(`${value}`);
|
|
15
14
|
const ClearableInput = forwardRef((props, ref) => {
|
|
16
|
-
const { type = DEFAULT_TYPE, defaultValue, value, maxLength, tabIndex = 0, hasError = false, inputRef, autoComplete, onChange = noop, onBlur = noop, onFocus = noop, onClear = noop, onKeyPress = noop, onClick = noop, mask, maskPlaceholder = '_', alwaysShowMask = false, inputClassName = '', disabled = false, className = '', children
|
|
15
|
+
const { type = DEFAULT_TYPE, defaultValue, value, maxLength, tabIndex = 0, hasError = false, inputRef, autoComplete, onChange = noop, onBlur = noop, onFocus = noop, onClear = noop, onKeyPress = noop, onClick = noop, mask, maskPlaceholder = '_', alwaysShowMask = false, inputClassName = '', disabled = false, className = '', children, ...remainingProps } = props;
|
|
17
16
|
const initialValue = value || defaultValue || '';
|
|
18
17
|
const [inputValue, setInputValue] = useState(initialValue);
|
|
19
18
|
const [showClear, setShowClear] = useState(hasValue(initialValue));
|
|
@@ -59,13 +58,25 @@ const ClearableInput = forwardRef((props, ref) => {
|
|
|
59
58
|
const classes = classNames('ClearableInput', 'input-group', hasError && 'has-error', disabled && 'pointer-events-none', className && className);
|
|
60
59
|
const inputClassNames = classNames('form-control', inputClassName, showClear && 'withClearButton', hasMask && 'withInputMask', disabled && 'disabled');
|
|
61
60
|
const clearButtonClassNames = classNames('clearButton', !showClear && 'hide');
|
|
62
|
-
const convertedType = type
|
|
61
|
+
const convertedType = type?.toLowerCase();
|
|
63
62
|
const inputType = SUPPORTED_TYPES.indexOf(convertedType) !== -1 ? convertedType : DEFAULT_TYPE;
|
|
64
|
-
const inputProps =
|
|
63
|
+
const inputProps = {
|
|
64
|
+
...omit(['value', 'defaultValue', 'onClear'])(remainingProps),
|
|
65
|
+
className: inputClassNames,
|
|
66
|
+
autoComplete,
|
|
67
|
+
type: inputType,
|
|
68
|
+
value: inputValue,
|
|
69
|
+
onChange: handleChange,
|
|
70
|
+
onKeyPress: handleKeyPress,
|
|
71
|
+
onBlur,
|
|
65
72
|
onFocus,
|
|
66
73
|
onClick,
|
|
67
|
-
disabled,
|
|
68
|
-
|
|
69
|
-
|
|
74
|
+
disabled,
|
|
75
|
+
maxLength: hasMask ? undefined : maxLength,
|
|
76
|
+
tabIndex,
|
|
77
|
+
ref: inputRef || ref,
|
|
78
|
+
};
|
|
79
|
+
const input = hasMask ? (_jsx(InputMask, { ...inputProps, disabled: disabled, mask: mask, maskPlaceholder: maskPlaceholder, alwaysShowMask: alwaysShowMask })) : (_jsx("input", { ...inputProps }));
|
|
80
|
+
return (_jsxs("div", { className: classes, children: [children && isFunction(children) ? children(inputProps) : input, _jsx("span", { className: clearButtonClassNames, onClick: clearInputValue, children: _jsx("span", { className: 'clearButtonIcon rioglyph rioglyph-remove-sign' }) })] }));
|
|
70
81
|
});
|
|
71
82
|
export default ClearableInput;
|
|
@@ -5,7 +5,7 @@ type CollapseProps = {
|
|
|
5
5
|
* @default false
|
|
6
6
|
*/
|
|
7
7
|
open: boolean | undefined;
|
|
8
|
-
/** Deprecated, please use `
|
|
8
|
+
/** Deprecated, please use `open` instead. @deprecated */
|
|
9
9
|
in?: boolean;
|
|
10
10
|
/**
|
|
11
11
|
* Unmount the component (remove it from the DOM) when it is collapsed.
|
|
@@ -1,6 +1,4 @@
|
|
|
1
1
|
import { jsx as _jsx, Fragment as _Fragment } from "react/jsx-runtime";
|
|
2
|
-
// @ts-ignore-next-line importsNotUsedAsValues
|
|
3
|
-
import 'react';
|
|
4
2
|
import { motion, AnimatePresence } from 'framer-motion';
|
|
5
3
|
import noop from 'lodash/fp/noop';
|
|
6
4
|
const DEFAULT_ANIMATION_TIME_IN_MS = 200;
|
|
@@ -20,7 +18,7 @@ const Collapse = (props) => {
|
|
|
20
18
|
open: { opacity: 1, height: 'auto' },
|
|
21
19
|
collapsed: { opacity: 0, height: 0 },
|
|
22
20
|
};
|
|
23
|
-
return (_jsx(_Fragment, { children: _jsx(AnimatePresence,
|
|
21
|
+
return (_jsx(_Fragment, { children: _jsx(AnimatePresence, { initial: appear, exitBeforeEnter: true, children: (open || shouldKeepContentInDom) && (_jsx(motion.div, { initial: 'collapsed', animate: open ? 'open' : 'collapsed', exit: 'collapsed', className: 'collapse display-block width-100pct', variants: variants, transition: { duration: timeout / 1000, ease: 'easeIn' }, onAnimationComplete: handleAnimationComplete, onAnimationStart: handleAnimationStart, children: children }, 'content')) }) }));
|
|
24
22
|
};
|
|
25
23
|
//
|
|
26
24
|
export default Collapse;
|
|
@@ -1,7 +1,4 @@
|
|
|
1
|
-
import { __rest } from "tslib";
|
|
2
1
|
import { jsx as _jsx } from "react/jsx-runtime";
|
|
3
|
-
// @ts-ignore-next-line importsNotUsedAsValues
|
|
4
|
-
import 'react';
|
|
5
2
|
import { default as _ContentLoader } from 'react-content-loader';
|
|
6
3
|
import cond from 'lodash/fp/cond';
|
|
7
4
|
import isNil from 'lodash/fp/isNil';
|
|
@@ -28,7 +25,7 @@ const renderCircle = ({ radius }) => _jsx("circle", { cx: radius, cy: radius, r:
|
|
|
28
25
|
* @returns
|
|
29
26
|
*/
|
|
30
27
|
const ContentLoader = (props) => {
|
|
31
|
-
const { speed = DEFAULT_SPEED, width = DEFAULT_WIDTH, height = DEFAULT_HEIGHT, radius = DEFAULT_RADIUS, type = DEFAULT_TYPE, className = '', children
|
|
28
|
+
const { speed = DEFAULT_SPEED, width = DEFAULT_WIDTH, height = DEFAULT_HEIGHT, radius = DEFAULT_RADIUS, type = DEFAULT_TYPE, className = '', children, ...remainingProps } = props;
|
|
32
29
|
const isDarkMode = useDarkMode();
|
|
33
30
|
// Since we define the default values while destructuring the props, we have to build up a new object
|
|
34
31
|
// with that defaults to be used in the conditional rendering, otherwise it would use only the props as
|
|
@@ -45,7 +42,7 @@ const ContentLoader = (props) => {
|
|
|
45
42
|
])(propsWithDefaults);
|
|
46
43
|
const wrapperHeight = isCircle(propsWithDefaults) ? radius * 2 : height;
|
|
47
44
|
const wrapperWidth = isCircle(propsWithDefaults) ? wrapperHeight : width;
|
|
48
|
-
return (_jsx(_ContentLoader,
|
|
45
|
+
return (_jsx(_ContentLoader, { backgroundColor: '#f5f6f7', foregroundColor: isDarkMode ? '#aaaaaa' : '#eeeeee', speed: speed, height: wrapperHeight, width: wrapperWidth, className: `ContentLoader ${className} ${isDarkMode ? 'use-mix-blend-mode' : ''}`, ...remainingProps, children: content }));
|
|
49
46
|
};
|
|
50
47
|
ContentLoader.RECT = RECT;
|
|
51
48
|
ContentLoader.CIRCLE = CIRCLE;
|
|
@@ -1,12 +1,9 @@
|
|
|
1
|
-
import { __rest } from "tslib";
|
|
2
1
|
import { createElement as _createElement } from "react";
|
|
3
2
|
import { jsx as _jsx } from "react/jsx-runtime";
|
|
4
|
-
// @ts-ignore-next-line importsNotUsedAsValues
|
|
5
|
-
import 'react';
|
|
6
3
|
import { motion } from 'framer-motion';
|
|
7
4
|
const DataTab = (props) => {
|
|
8
5
|
const { active = false, title, // exclude from remainingProps to avoid being set to the div element
|
|
9
|
-
tabKey, disableTransition = false, className = '', children
|
|
6
|
+
tabKey, disableTransition = false, className = '', children, ...remainingProps } = props;
|
|
10
7
|
if (disableTransition) {
|
|
11
8
|
return _jsx("div", { children: active && children });
|
|
12
9
|
}
|
|
@@ -15,9 +12,9 @@ const DataTab = (props) => {
|
|
|
15
12
|
}
|
|
16
13
|
return (
|
|
17
14
|
// @ts-ignore
|
|
18
|
-
_createElement(motion.div,
|
|
15
|
+
_createElement(motion.div, { ...remainingProps, key: tabKey, initial: { x: 0, y: 0, opacity: 0 }, animate: { x: 0, y: 0, opacity: 1 }, exit: { x: 0, y: 0, opacity: 0 }, transition: { duration: 0.1 },
|
|
19
16
|
// TODO: added "fade in" for backwards compatibility for service tests
|
|
20
17
|
// To be removed for next major version
|
|
21
|
-
className: 'fade in' }
|
|
18
|
+
className: 'fade in' }, children));
|
|
22
19
|
};
|
|
23
20
|
export default DataTab;
|
|
@@ -5,6 +5,6 @@ const DataTabHeader = (props) => {
|
|
|
5
5
|
const { tabKey, title, isActive, isFirstTab, isLastTab, onSelectTab, tabFirstChildClassName, tabLastChildClassName, tabClassName, tabHoverClassName, tabActiveClassName, arrowClassName, className, } = props;
|
|
6
6
|
const [isHovering, setIsHovering] = useState(false);
|
|
7
7
|
const tabClassNames = classNames('DataTab', 'tab', isFirstTab && tabFirstChildClassName, isLastTab && tabLastChildClassName, !isHovering && !isActive && tabClassName, isHovering && !isActive && tabHoverClassName, isActive && `active ${tabActiveClassName}`, !isActive && 'cursor-pointer', className && className);
|
|
8
|
-
return (_jsxs("li",
|
|
8
|
+
return (_jsxs("li", { className: tabClassNames, onClick: onSelectTab, "data-tabkey": tabKey, onMouseEnter: () => setIsHovering(true), onMouseLeave: () => setIsHovering(false), children: [title, _jsx("div", { className: `arrow ${arrowClassName} ${isActive ? 'in' : ''}` })] }, tabKey));
|
|
9
9
|
};
|
|
10
10
|
export default DataTabHeader;
|
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
import { __rest } from "tslib";
|
|
2
1
|
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
3
2
|
import React, { useState } from 'react';
|
|
4
3
|
import classNames from 'classnames';
|
|
@@ -6,10 +5,10 @@ import { AnimatePresence } from 'framer-motion';
|
|
|
6
5
|
import DataTabHeader from './DataTabHeader';
|
|
7
6
|
const getFirstTabKey = (children) => {
|
|
8
7
|
const [firstItem] = children;
|
|
9
|
-
return firstItem
|
|
8
|
+
return firstItem?.props.tabKey;
|
|
10
9
|
};
|
|
11
10
|
const DataTabs = (props) => {
|
|
12
|
-
const { activeKey = '', bordered = true, className: wrapperClassName, commonTabContent, disableTransition = false, arrowClassName = 'bg-highlight-dark border-color-transparent', onSelectTab = () => { }, tabActiveClassName = 'bg-highlight-dark text-color-white', tabClassName = '', tabContentClassName = '', tabFirstChildClassName = '', tabHoverClassName = 'bg-highlight-decent text-color-darkest', tabLastChildClassName = '', tabsWrapperClassName = '', vertical = false, children
|
|
11
|
+
const { activeKey = '', bordered = true, className: wrapperClassName, commonTabContent, disableTransition = false, arrowClassName = 'bg-highlight-dark border-color-transparent', onSelectTab = () => { }, tabActiveClassName = 'bg-highlight-dark text-color-white', tabClassName = '', tabContentClassName = '', tabFirstChildClassName = '', tabHoverClassName = 'bg-highlight-decent text-color-darkest', tabLastChildClassName = '', tabsWrapperClassName = '', vertical = false, children, ...remainingProps } = props;
|
|
13
12
|
const [internalActiveKey, setInternalActiveKey] = useState(activeKey || getFirstTabKey(React.Children.toArray(children)));
|
|
14
13
|
// Update internal activeKey when props change
|
|
15
14
|
const [previousActiveKey, setPreviousActiveKey] = useState(activeKey);
|
|
@@ -18,8 +17,7 @@ const DataTabs = (props) => {
|
|
|
18
17
|
setPreviousActiveKey(activeKey);
|
|
19
18
|
}
|
|
20
19
|
const handleSelectTab = (event) => {
|
|
21
|
-
|
|
22
|
-
onSelectTab((_a = event.currentTarget) === null || _a === void 0 ? void 0 : _a.getAttribute('data-tabkey'));
|
|
20
|
+
onSelectTab(event.currentTarget?.getAttribute('data-tabkey'));
|
|
23
21
|
};
|
|
24
22
|
const wrapperClassNames = classNames('DataTabsContainer', bordered && 'DataTab-bordered', wrapperClassName, vertical ? 'DataTabs-vertical' : 'DataTabs-horizontal');
|
|
25
23
|
const enrichChildren = () => {
|
|
@@ -39,14 +37,14 @@ const DataTabs = (props) => {
|
|
|
39
37
|
.map(child => React.cloneElement(child, { active: true, disableTransition }));
|
|
40
38
|
return (
|
|
41
39
|
// @ts-ignore
|
|
42
|
-
_jsx(AnimatePresence,
|
|
40
|
+
_jsx(AnimatePresence, { initial: false, exitBeforeEnter: true, children: enhancedChildren }));
|
|
43
41
|
};
|
|
44
|
-
return (_jsxs("div",
|
|
42
|
+
return (_jsxs("div", { ...remainingProps, className: wrapperClassNames, children: [_jsx("div", { className: `DataTabsWrapper ${tabsWrapperClassName}`, children: _jsx("ul", { className: 'DataTabs', role: 'tabList', children: React.Children.map(children, (child, index) => {
|
|
45
43
|
if (!child) {
|
|
46
44
|
return null;
|
|
47
45
|
}
|
|
48
46
|
const { tabKey, title, className } = child.props;
|
|
49
|
-
return (_jsx(DataTabHeader, { isActive: tabKey === internalActiveKey, tabKey: tabKey, title: title, onSelectTab: handleSelectTab, isFirstTab: index === 0, isLastTab: !!(
|
|
50
|
-
}) })
|
|
47
|
+
return (_jsx(DataTabHeader, { isActive: tabKey === internalActiveKey, tabKey: tabKey, title: title, onSelectTab: handleSelectTab, isFirstTab: index === 0, isLastTab: !!(children?.length - 1), tabFirstChildClassName: tabFirstChildClassName, tabLastChildClassName: tabLastChildClassName, tabActiveClassName: tabActiveClassName, tabClassName: tabClassName, tabHoverClassName: tabHoverClassName, arrowClassName: arrowClassName, className: className }));
|
|
48
|
+
}) }) }), _jsx("div", { className: `tab-content ${tabContentClassName}`, role: 'tabpanel', children: commonTabContent ? commonTabContent : enrichChildren() })] }));
|
|
51
49
|
};
|
|
52
50
|
export default DataTabs;
|
|
@@ -89,7 +89,7 @@ declare const DatePicker: React.ForwardRefExoticComponent<Omit<Datetime.Datetime
|
|
|
89
89
|
/**
|
|
90
90
|
* An id used for the internal input element.
|
|
91
91
|
*/
|
|
92
|
-
id?: string
|
|
92
|
+
id?: string;
|
|
93
93
|
/**
|
|
94
94
|
* The moment locale to be used for the date picker.
|
|
95
95
|
* Make sure to import the respective moment locale files.
|
|
@@ -97,43 +97,43 @@ declare const DatePicker: React.ForwardRefExoticComponent<Omit<Datetime.Datetime
|
|
|
97
97
|
* @default 'en-GB'
|
|
98
98
|
* @example import 'moment/dist/locale/de';
|
|
99
99
|
*/
|
|
100
|
-
locale?: string
|
|
100
|
+
locale?: string;
|
|
101
101
|
/**
|
|
102
102
|
* Once the day has been selected, the date picker will be closed automatically.
|
|
103
103
|
*
|
|
104
104
|
* @default true
|
|
105
105
|
*/
|
|
106
|
-
closeOnSelect?: boolean
|
|
106
|
+
closeOnSelect?: boolean;
|
|
107
107
|
/**
|
|
108
108
|
* Default value of the DatePicker (date or moment).
|
|
109
109
|
*/
|
|
110
|
-
initialValue?: Date | Moment
|
|
110
|
+
initialValue?: Date | Moment;
|
|
111
111
|
/**
|
|
112
112
|
* Value of the DatePicker (date or moment). Use this only if you want to use
|
|
113
113
|
* this component as a controlled component
|
|
114
114
|
*/
|
|
115
|
-
value?:
|
|
116
|
-
dateFormat?:
|
|
117
|
-
timeFormat?:
|
|
118
|
-
inputProps?: React.HTMLProps<HTMLInputElement
|
|
115
|
+
value?: Date | string | Moment;
|
|
116
|
+
dateFormat?: boolean | string;
|
|
117
|
+
timeFormat?: boolean | string;
|
|
118
|
+
inputProps?: React.HTMLProps<HTMLInputElement>;
|
|
119
119
|
/**
|
|
120
120
|
* Defines whether the dropdown opens upwards or not.
|
|
121
121
|
*
|
|
122
122
|
* @default false
|
|
123
123
|
*/
|
|
124
|
-
dropup?: boolean
|
|
124
|
+
dropup?: boolean;
|
|
125
125
|
/**
|
|
126
126
|
* Opens the picker right aligned.
|
|
127
127
|
*
|
|
128
128
|
* @default false
|
|
129
129
|
*/
|
|
130
|
-
alignRight?: boolean
|
|
130
|
+
alignRight?: boolean;
|
|
131
131
|
/**
|
|
132
132
|
* Defines whether the clearableInput button is shown.
|
|
133
133
|
*
|
|
134
134
|
* @default false
|
|
135
135
|
*/
|
|
136
|
-
clearableInput?: boolean
|
|
136
|
+
clearableInput?: boolean;
|
|
137
137
|
/**
|
|
138
138
|
* Optional min-width value (without px). Since the DatePicker has a max-width of 100%
|
|
139
139
|
* you can also set a high minWidth number to use 100% with of the parent element.
|
|
@@ -141,7 +141,7 @@ declare const DatePicker: React.ForwardRefExoticComponent<Omit<Datetime.Datetime
|
|
|
141
141
|
*
|
|
142
142
|
* @default 0
|
|
143
143
|
*/
|
|
144
|
-
minWidth?: number
|
|
144
|
+
minWidth?: number;
|
|
145
145
|
/**
|
|
146
146
|
* Callback function when the value changes. Receives the new date (moment)
|
|
147
147
|
* and a boolean (whether date is valid or not) as arguments.
|
|
@@ -150,23 +150,23 @@ declare const DatePicker: React.ForwardRefExoticComponent<Omit<Datetime.Datetime
|
|
|
150
150
|
* @param isValid
|
|
151
151
|
* @returns
|
|
152
152
|
*/
|
|
153
|
-
onChange?: (
|
|
153
|
+
onChange?: (value: Moment | string, isValid: boolean) => void;
|
|
154
154
|
/**
|
|
155
155
|
* Defines whether the input shows an error when the date is invalid or cleared.
|
|
156
156
|
*
|
|
157
157
|
* @default true
|
|
158
158
|
*/
|
|
159
|
-
mandatory?: boolean
|
|
159
|
+
mandatory?: boolean;
|
|
160
160
|
/**
|
|
161
161
|
* Overwrites the internal date validation function in case you need to customize it.
|
|
162
162
|
*
|
|
163
163
|
* @param date
|
|
164
164
|
* @returns
|
|
165
165
|
*/
|
|
166
|
-
dateValidation?: (
|
|
166
|
+
dateValidation?: (date: Moment | string) => boolean;
|
|
167
167
|
/**
|
|
168
168
|
* Additional classes to be set on the DatePicker element.
|
|
169
169
|
*/
|
|
170
|
-
className?: string
|
|
170
|
+
className?: string;
|
|
171
171
|
} & React.RefAttributes<unknown>>;
|
|
172
172
|
export default DatePicker;
|
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
import { __rest } from "tslib";
|
|
2
1
|
import { jsx as _jsx } from "react/jsx-runtime";
|
|
3
2
|
import { useState, forwardRef } from 'react';
|
|
4
3
|
import classNames from 'classnames';
|
|
@@ -7,7 +6,7 @@ import noop from 'lodash/fp/noop';
|
|
|
7
6
|
const DEFAULT_LOCALE = 'en-GB';
|
|
8
7
|
const DEFAULT_MIN_WIDTH = 0;
|
|
9
8
|
const DatePicker = forwardRef((props, ref) => {
|
|
10
|
-
const { id, dropup = false, alignRight = false, locale = DEFAULT_LOCALE, minWidth = DEFAULT_MIN_WIDTH, onChange = noop, mandatory = true, dateValidation, clearableInput = false, closeOnSelect = true, inputProps, className
|
|
9
|
+
const { id, dropup = false, alignRight = false, locale = DEFAULT_LOCALE, minWidth = DEFAULT_MIN_WIDTH, onChange = noop, mandatory = true, dateValidation, clearableInput = false, closeOnSelect = true, inputProps, className, ...remainingProp } = props;
|
|
11
10
|
const [hasError, setHasError] = useState(false);
|
|
12
11
|
const validateDate = (dateToValidate) => {
|
|
13
12
|
// If the entered date complies with the defined dateFormat, the Datetime component
|
|
@@ -28,10 +27,10 @@ const DatePicker = forwardRef((props, ref) => {
|
|
|
28
27
|
const classes = classNames('DatePicker', 'form-group', hasError && 'has-error', dropup && 'dropup', alignRight && 'align-right', className && className);
|
|
29
28
|
// This way we can expose the "id" as top level prop and not as part of the inputProps which
|
|
30
29
|
// makes the use of the id much more convenient
|
|
31
|
-
const enhancedInputProps =
|
|
30
|
+
const enhancedInputProps = { id, ...inputProps };
|
|
32
31
|
return (_jsx(Datetime
|
|
33
32
|
// TODO: add support for setting ref to the input. Maybe add a "inputRef" prop to react-datetime
|
|
34
33
|
// ref={ref}
|
|
35
|
-
,
|
|
34
|
+
, { ...remainingProp, locale: locale, clearableInput: clearableInput, closeOnSelect: closeOnSelect, onChange: handleChange, minWidth: minWidth, inputProps: enhancedInputProps, className: classes }));
|
|
36
35
|
});
|
|
37
36
|
export default DatePicker;
|
|
@@ -116,82 +116,82 @@ declare namespace DateRangePicker {
|
|
|
116
116
|
export { propTypes };
|
|
117
117
|
export { defaultProps };
|
|
118
118
|
}
|
|
119
|
-
import React from
|
|
120
|
-
import moment from
|
|
119
|
+
import React from 'react';
|
|
120
|
+
import moment from 'moment';
|
|
121
121
|
declare namespace propTypes {
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
|
|
122
|
+
let startValue: PropTypes.Requireable<object>;
|
|
123
|
+
let endValue: PropTypes.Requireable<object>;
|
|
124
|
+
let defaultStartValue: PropTypes.Requireable<object>;
|
|
125
|
+
let defaultEndValue: PropTypes.Requireable<object>;
|
|
126
|
+
let minValue: PropTypes.Requireable<object>;
|
|
127
|
+
let maxValue: PropTypes.Requireable<object>;
|
|
128
|
+
let onRangeChange: PropTypes.Requireable<(...args: any[]) => any>;
|
|
129
|
+
let locale: PropTypes.Requireable<string>;
|
|
130
|
+
let textDefault: PropTypes.Requireable<NonNullable<PropTypes.ReactNodeLike>>;
|
|
131
|
+
let textToday: PropTypes.Requireable<NonNullable<PropTypes.ReactNodeLike>>;
|
|
132
|
+
let textLastWeek: PropTypes.Requireable<NonNullable<PropTypes.ReactNodeLike>>;
|
|
133
|
+
let textLastMonth: PropTypes.Requireable<NonNullable<PropTypes.ReactNodeLike>>;
|
|
134
|
+
let textLastYear: PropTypes.Requireable<NonNullable<PropTypes.ReactNodeLike>>;
|
|
135
|
+
let textCustom: PropTypes.Requireable<NonNullable<PropTypes.ReactNodeLike>>;
|
|
136
|
+
let textApply: PropTypes.Requireable<NonNullable<PropTypes.ReactNodeLike>>;
|
|
137
|
+
let textCancel: PropTypes.Requireable<NonNullable<PropTypes.ReactNodeLike>>;
|
|
138
|
+
let textFrom: PropTypes.Requireable<NonNullable<PropTypes.ReactNodeLike>>;
|
|
139
|
+
let textTo: PropTypes.Requireable<NonNullable<PropTypes.ReactNodeLike>>;
|
|
140
|
+
let className: PropTypes.Requireable<string>;
|
|
141
|
+
let dropdownClass: PropTypes.Requireable<string>;
|
|
142
|
+
let dropdownMenuClass: PropTypes.Requireable<string>;
|
|
143
|
+
let hasTimePicker: PropTypes.Requireable<boolean>;
|
|
144
|
+
let customRangeOnly: PropTypes.Requireable<boolean>;
|
|
145
|
+
let customPresets: PropTypes.Requireable<(PropTypes.InferProps<{
|
|
146
146
|
startValue: PropTypes.Validator<object>;
|
|
147
147
|
endValue: PropTypes.Validator<object>;
|
|
148
148
|
text: PropTypes.Validator<string>;
|
|
149
149
|
onSelect: PropTypes.Requireable<(...args: any[]) => any>;
|
|
150
150
|
}> | null | undefined)[]>;
|
|
151
|
-
|
|
152
|
-
|
|
153
|
-
|
|
154
|
-
|
|
155
|
-
|
|
151
|
+
let dropup: PropTypes.Requireable<boolean>;
|
|
152
|
+
let pullRight: PropTypes.Requireable<boolean>;
|
|
153
|
+
let autoDropDirection: PropTypes.Requireable<boolean>;
|
|
154
|
+
let clearable: PropTypes.Requireable<boolean>;
|
|
155
|
+
let onClear: PropTypes.Requireable<(...args: any[]) => any>;
|
|
156
156
|
}
|
|
157
157
|
declare namespace defaultProps {
|
|
158
|
-
|
|
158
|
+
let defaultStartValue_1: moment.Moment;
|
|
159
159
|
export { defaultStartValue_1 as defaultStartValue };
|
|
160
|
-
|
|
160
|
+
let defaultEndValue_1: moment.Moment;
|
|
161
161
|
export { defaultEndValue_1 as defaultEndValue };
|
|
162
|
-
|
|
162
|
+
let minValue_1: null;
|
|
163
163
|
export { minValue_1 as minValue };
|
|
164
|
-
|
|
164
|
+
let maxValue_1: null;
|
|
165
165
|
export { maxValue_1 as maxValue };
|
|
166
|
-
|
|
166
|
+
let locale_1: string;
|
|
167
167
|
export { locale_1 as locale };
|
|
168
|
-
|
|
168
|
+
let textDefault_1: string;
|
|
169
169
|
export { textDefault_1 as textDefault };
|
|
170
|
-
|
|
170
|
+
let textToday_1: string;
|
|
171
171
|
export { textToday_1 as textToday };
|
|
172
|
-
|
|
172
|
+
let textLastWeek_1: string;
|
|
173
173
|
export { textLastWeek_1 as textLastWeek };
|
|
174
|
-
|
|
174
|
+
let textLastMonth_1: string;
|
|
175
175
|
export { textLastMonth_1 as textLastMonth };
|
|
176
|
-
|
|
176
|
+
let textCustom_1: string;
|
|
177
177
|
export { textCustom_1 as textCustom };
|
|
178
|
-
|
|
178
|
+
let textFrom_1: string;
|
|
179
179
|
export { textFrom_1 as textFrom };
|
|
180
|
-
|
|
180
|
+
let textTo_1: string;
|
|
181
181
|
export { textTo_1 as textTo };
|
|
182
|
-
|
|
182
|
+
let textApply_1: string;
|
|
183
183
|
export { textApply_1 as textApply };
|
|
184
|
-
|
|
184
|
+
let textCancel_1: string;
|
|
185
185
|
export { textCancel_1 as textCancel };
|
|
186
|
-
|
|
186
|
+
let dropdownClass_1: string;
|
|
187
187
|
export { dropdownClass_1 as dropdownClass };
|
|
188
|
-
|
|
188
|
+
let dropdownMenuClass_1: string;
|
|
189
189
|
export { dropdownMenuClass_1 as dropdownMenuClass };
|
|
190
|
-
|
|
190
|
+
let hasTimePicker_1: boolean;
|
|
191
191
|
export { hasTimePicker_1 as hasTimePicker };
|
|
192
|
-
|
|
192
|
+
let customRangeOnly_1: boolean;
|
|
193
193
|
export { customRangeOnly_1 as customRangeOnly };
|
|
194
|
-
|
|
194
|
+
let customPresets_1: {
|
|
195
195
|
text: string;
|
|
196
196
|
startValue: moment.Moment;
|
|
197
197
|
endValue: moment.Moment;
|
|
@@ -199,15 +199,15 @@ declare namespace defaultProps {
|
|
|
199
199
|
export { customPresets_1 as customPresets };
|
|
200
200
|
export function onRangeChange_1(): void;
|
|
201
201
|
export { onRangeChange_1 as onRangeChange };
|
|
202
|
-
|
|
202
|
+
let autoDropDirection_1: boolean;
|
|
203
203
|
export { autoDropDirection_1 as autoDropDirection };
|
|
204
|
-
|
|
204
|
+
let dropup_1: boolean;
|
|
205
205
|
export { dropup_1 as dropup };
|
|
206
|
-
|
|
206
|
+
let pullRight_1: boolean;
|
|
207
207
|
export { pullRight_1 as pullRight };
|
|
208
|
-
|
|
208
|
+
let clearable_1: boolean;
|
|
209
209
|
export { clearable_1 as clearable };
|
|
210
210
|
export function onClear_1(): undefined;
|
|
211
211
|
export { onClear_1 as onClear };
|
|
212
212
|
}
|
|
213
|
-
import PropTypes from
|
|
213
|
+
import PropTypes from 'prop-types';
|