@rio-cloud/rio-uikit 0.16.4-beta.2 → 0.16.4-beta.4
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/DeviceUtils.js +2 -2
- package/components/actionBarItem/ActionBarItemIcon.d.ts +1 -1
- package/components/activity/Activity.d.ts +26 -0
- package/components/animatedNumber/AnimatedNumber.d.ts +8 -0
- package/components/bottomSheet/BottomSheet.d.ts +50 -1
- package/components/bottomSheet/BottomSheet.js +9 -4
- package/components/map/utils/eventHandling.d.ts +10 -10
- package/components/map/utils/eventHandling.js +29 -29
- package/lib/es/AppNavigationBar.d.ts +2 -5
- package/lib/es/Area.d.ts +2 -5
- package/lib/es/AreaChart.d.ts +2 -5
- package/lib/es/AreaGradient.d.ts +2 -5
- package/lib/es/AssetTree.d.ts +2 -5
- package/lib/es/AutoSuggest.d.ts +2 -6
- package/lib/es/AutoSuggest.js +3 -2
- package/lib/es/Bar.d.ts +2 -8
- package/lib/es/BarChart.d.ts +2 -5
- package/lib/es/BrowserWarning.d.ts +2 -5
- package/lib/es/Button.d.ts +2 -27
- package/lib/es/ButtonDropdown.d.ts +2 -5
- package/lib/es/CalendarStripe.d.ts +2 -5
- package/lib/es/Carousel.d.ts +2 -11
- package/lib/es/ChartNeedle.d.ts +2 -5
- package/lib/es/ChartTooltip.d.ts +2 -5
- package/lib/es/Checkbox.d.ts +2 -5
- package/lib/es/Checkbox.js +3 -2
- package/lib/es/Circle.d.ts +2 -5
- package/lib/es/ClearableInput.d.ts +2 -5
- package/lib/es/ClearableInput.js +3 -2
- package/lib/es/ClusterLayer.d.ts +2 -5
- package/lib/es/ClusterMapMarker.d.ts +2 -5
- package/lib/es/ClusterUtils.d.ts +2 -5
- package/lib/es/Collapse.d.ts +2 -5
- package/lib/es/ColorScheme.d.ts +3 -4
- package/lib/es/Colors.d.ts +2 -21
- package/lib/es/ConfirmationDialog.d.ts +2 -14
- package/lib/es/ContentLoader.d.ts +2 -8
- package/lib/es/ContentLoader.js +3 -2
- package/lib/es/ContextMenu.d.ts +2 -5
- package/lib/es/ContextMenuItem.d.ts +2 -5
- package/lib/es/CustomState.d.ts +2 -5
- package/lib/es/DataTab.d.ts +2 -5
- package/lib/es/DataTabs.d.ts +2 -5
- package/lib/es/DatePicker.d.ts +2 -5
- package/lib/es/DateRangePicker.d.ts +2 -5
- package/lib/es/DeviceUtils.d.ts +13 -13
- package/lib/es/DeviceUtils.js +2 -1
- package/lib/es/Dialog.d.ts +2 -15
- package/lib/es/DomMarker.d.ts +2 -5
- package/lib/es/DropdownSubmenu.d.ts +2 -5
- package/lib/es/EditableContent.d.ts +2 -0
- package/lib/es/EditableContent.js +7 -0
- package/lib/es/EmptyState.d.ts +2 -5
- package/lib/es/ErrorState.d.ts +2 -5
- package/lib/es/EventUtils.d.ts +2 -36
- package/lib/es/ExpanderList.d.ts +2 -5
- package/lib/es/ExpanderPanel.d.ts +2 -5
- package/lib/es/Fade.d.ts +2 -14
- package/lib/es/FilePicker.d.ts +2 -9
- package/lib/es/ForbiddenState.d.ts +2 -5
- package/lib/es/ImagePreloader.d.ts +2 -5
- package/lib/es/IncidentsLayer.d.ts +2 -4
- package/lib/es/InfoDialog.d.ts +2 -5
- package/lib/es/Legend.d.ts +2 -5
- package/lib/es/Line.d.ts +2 -5
- package/lib/es/LineChart.d.ts +2 -5
- package/lib/es/ListMenu.d.ts +2 -6
- package/lib/es/MaintenanceState.d.ts +2 -5
- package/lib/es/Map.d.ts +2 -12
- package/lib/es/MapBoundingBoxButton.d.ts +2 -5
- package/lib/es/MapCenterMarkerButton.d.ts +2 -5
- package/lib/es/MapClusterSettings.d.ts +2 -5
- package/lib/es/MapCustomerPoiSettingsItem.d.ts +2 -5
- package/lib/es/MapLayerGroup.d.ts +2 -5
- package/lib/es/MapLayerIncidentsItem.d.ts +2 -5
- package/lib/es/MapLayerRoadRestrictionsItem.d.ts +2 -5
- package/lib/es/MapLayerSettings.d.ts +2 -5
- package/lib/es/MapLayerTrafficItem.d.ts +2 -5
- package/lib/es/MapLockMarkerButton.d.ts +2 -5
- package/lib/es/MapSettings.d.ts +2 -5
- package/lib/es/MapSettingsItem.d.ts +2 -5
- package/lib/es/MapSettingsPanel.d.ts +2 -5
- package/lib/es/MapSettingsTile.d.ts +2 -5
- package/lib/es/MapTypeSettings.d.ts +2 -5
- package/lib/es/MapWorkshopPoiSettingsItem.d.ts +2 -5
- package/lib/es/Marker.d.ts +2 -5
- package/lib/es/MarkerLayer.d.ts +2 -5
- package/lib/es/MediaDialog.d.ts +2 -9
- package/lib/es/MenuItem.d.ts +2 -5
- package/lib/es/Multiselect.d.ts +2 -12
- package/lib/es/NotBookedState.d.ts +2 -5
- package/lib/es/NotFoundState.d.ts +2 -5
- package/lib/es/Notification.d.ts +2 -9
- package/lib/es/NotificationsContainer.d.ts +2 -5
- package/lib/es/NumberControl.d.ts +2 -8
- package/lib/es/NumberControl.js +3 -2
- package/lib/es/NumberInput.d.ts +2 -8
- package/lib/es/NumberInput.js +3 -2
- package/lib/es/OnboardingTip.d.ts +2 -30
- package/lib/es/Pager.d.ts +2 -11
- package/lib/es/Pager.js +3 -2
- package/lib/es/PieChart.d.ts +2 -5
- package/lib/es/Polygon.d.ts +2 -5
- package/lib/es/Polyline.d.ts +2 -5
- package/lib/es/Popover.d.ts +2 -11
- package/lib/es/Position.d.ts +2 -5
- package/lib/es/PositionUtils.d.ts +2 -8
- package/lib/es/RadialBarChart.d.ts +2 -5
- package/lib/es/RadioButton.d.ts +2 -5
- package/lib/es/RangeSlider.d.ts +2 -5
- package/lib/es/ReleaseNotes.d.ts +2 -5
- package/lib/es/ReleaseNotesDialog.d.ts +2 -5
- package/lib/es/ReleaseNotesDialog.js +3 -2
- package/lib/es/Resizer.d.ts +2 -13
- package/lib/es/Resizer.js +3 -2
- package/lib/es/ResponsiveColumnStripe.d.ts +2 -5
- package/lib/es/Route.d.ts +2 -5
- package/lib/es/RuleConnector.d.ts +2 -10
- package/lib/es/RuleContainer.d.ts +2 -6
- package/lib/es/RulesWrapper.d.ts +2 -6
- package/lib/es/SaveDialog.d.ts +2 -14
- package/lib/es/Select.d.ts +2 -5
- package/lib/es/Sidebar.d.ts +2 -11
- package/lib/es/SimpleButtonDropdown.d.ts +2 -5
- package/lib/es/SimpleClusterLayer.d.ts +2 -5
- package/lib/es/SimpleDialog.d.ts +2 -14
- package/lib/es/SingleButtonDropdown.d.ts +2 -5
- package/lib/es/SingleMapMarker.d.ts +2 -5
- package/lib/es/Slider.d.ts +2 -5
- package/lib/es/SortArrowDown.d.ts +2 -5
- package/lib/es/SortArrowUp.d.ts +2 -5
- package/lib/es/SortArrows.d.ts +2 -5
- package/lib/es/SortDirection.d.ts +2 -11
- package/lib/es/SortUtils.d.ts +3 -16
- package/lib/es/Spinner.d.ts +2 -5
- package/lib/es/Spinner.js +3 -2
- package/lib/es/SplitButtonDropdown.d.ts +2 -5
- package/lib/es/SplitDialog.d.ts +2 -14
- package/lib/es/StatsWidget.d.ts +2 -10
- package/lib/es/StatsWidget.js +3 -2
- package/lib/es/StatsWidgetNumber.d.ts +2 -5
- package/lib/es/StatsWidgetNumber.js +3 -2
- package/lib/es/StatsWidgetSpacer.d.ts +2 -5
- package/lib/es/StatsWidgetSpacer.js +3 -2
- package/lib/es/StatsWidgets.d.ts +1 -5
- package/lib/es/StatsWidgets.js +5 -3
- package/lib/es/StatusBar.d.ts +2 -5
- package/lib/es/StatusBar.js +3 -2
- package/lib/es/SteppedProgressBar.d.ts +2 -9
- package/lib/es/SubNavigation.d.ts +2 -5
- package/lib/es/Switch.d.ts +2 -8
- package/lib/es/Switch.js +3 -2
- package/lib/es/TableCardsSorting.d.ts +2 -5
- package/lib/es/TableSearch.d.ts +2 -5
- package/lib/es/TableSettingsDialog.d.ts +2 -5
- package/lib/es/TableToolbar.d.ts +2 -5
- package/lib/es/TableViewToggles.d.ts +2 -12
- package/lib/es/Tag.d.ts +2 -5
- package/lib/es/TagList.d.ts +2 -5
- package/lib/es/TagManager.d.ts +2 -5
- package/lib/es/Teaser.d.ts +2 -5
- package/lib/es/TeaserContainer.d.ts +2 -5
- package/lib/es/TextMarker.d.ts +2 -5
- package/lib/es/TimePicker.d.ts +2 -5
- package/lib/es/ToggleButton.d.ts +2 -5
- package/lib/es/TrafficLayer.d.ts +2 -4
- package/lib/es/Tree.d.ts +2 -5
- package/lib/es/TreeCategory.d.ts +2 -5
- package/lib/es/TreeOption.d.ts +2 -5
- package/lib/es/TreeSearch.d.ts +2 -5
- package/lib/es/TreeSummary.d.ts +2 -5
- package/lib/es/TruckLayer.d.ts +2 -4
- package/lib/es/TypeCounter.d.ts +2 -5
- package/lib/es/VolkswagenApplicationHeader.d.ts +2 -5
- package/lib/es/components/actionBarItem/ActionBarItem.d.ts +21 -0
- package/lib/es/components/actionBarItem/ActionBarItemIcon.d.ts +2 -2
- package/lib/es/components/actionBarItem/ActionBarItemList.d.ts +4 -1
- package/lib/es/components/actionBarItem/ActionBarItemListItem.d.ts +19 -2
- package/lib/es/components/actionBarItem/ActionBarItemListSeparator.d.ts +4 -1
- package/lib/es/components/actionBarItem/ActionBarItemPopoverContent.d.ts +7 -1
- package/lib/es/components/activity/Activity.d.ts +27 -0
- package/lib/es/components/animatedNumber/AnimatedNumber.d.ts +8 -0
- package/lib/es/components/applicationHeader/AppMenu.d.ts +1 -1
- package/lib/es/components/applicationHeader/AppMenu.js +2 -2
- package/lib/es/components/applicationHeader/AppMenuContent.d.ts +1 -1
- package/lib/es/components/applicationHeader/AppMenuDropdown.d.ts +1 -1
- package/lib/es/components/applicationHeader/ApplicationActionBar.d.ts +1 -1
- package/lib/es/components/applicationHeader/ApplicationHeader.d.ts +52 -1
- package/lib/es/components/applicationHeader/MobileAppMenu.d.ts +1 -1
- package/lib/es/components/applicationHeader/MobileHeaderModal.d.ts +1 -1
- package/lib/es/components/applicationHeader/MobileSubmoduleNavigation.d.ts +1 -1
- package/lib/es/components/applicationHeader/NavItems.d.ts +1 -1
- package/lib/es/components/applicationLayout/ApplicationLayout.d.ts +7 -1
- package/lib/es/components/applicationLayout/ApplicationLayoutBody.d.ts +29 -2
- package/lib/es/components/applicationLayout/ApplicationLayoutBodyBanner.d.ts +15 -0
- package/lib/es/components/applicationLayout/ApplicationLayoutBodyBottomBar.d.ts +15 -0
- package/lib/es/components/applicationLayout/ApplicationLayoutBodyNavigation.d.ts +3 -0
- package/lib/es/components/applicationLayout/ApplicationLayoutHeader.d.ts +3 -0
- package/lib/es/components/applicationLayout/ApplicationLayoutSidebar.d.ts +3 -0
- package/lib/es/components/aspectRatioPlaceholder/AspectRatioPlaceholder.d.ts +4 -1
- package/lib/es/components/assetTree/Tree.js +1 -2
- package/lib/es/components/assetTree/TreeLeafList.d.ts +1 -1
- package/lib/es/components/assetTree/TreeNodeContainer.d.ts +1 -1
- package/lib/es/components/assetTree/TreeNothingFound.d.ts +1 -1
- package/lib/es/components/assetTree/TreeOption.d.ts +1 -1
- package/lib/es/components/assetTree/TreeOption.js +2 -2
- package/lib/es/components/assetTree/TreeOptions.d.ts +1 -1
- package/lib/es/components/assetTree/TreeOptions.js +2 -2
- package/lib/es/components/assetTree/TreeRoot.d.ts +1 -1
- package/lib/es/components/assetTree/TreeSelectAll.d.ts +1 -1
- package/lib/es/components/assetTree/TreeSummary.js +1 -1
- package/lib/es/components/assetTree/TypeCounter.js +2 -2
- package/lib/es/components/autosuggest/AutoSuggest.d.ts +200 -115
- package/lib/es/components/autosuggest/AutoSuggest.js +144 -258
- package/lib/es/components/autosuggest/AutoSuggestAddons.d.ts +8 -0
- package/lib/es/components/autosuggest/AutoSuggestAddons.js +9 -0
- package/lib/es/components/autosuggest/DropdownSpinner.d.ts +4 -0
- package/lib/es/components/autosuggest/DropdownSpinner.js +8 -0
- package/lib/es/components/autosuggest/NoItemMessage.d.ts +5 -0
- package/lib/es/components/autosuggest/NoItemMessage.js +7 -0
- package/lib/es/components/bottomSheet/BottomSheet.d.ts +50 -1
- package/lib/es/components/bottomSheet/BottomSheet.js +9 -4
- package/lib/es/components/browserWarning/BrowserIcons.d.ts +2 -2
- package/lib/es/components/browserWarning/BrowserWarning.d.ts +1 -1
- package/lib/es/components/browserWarning/BrowserWarningMessageDE.d.ts +1 -1
- package/lib/es/components/browserWarning/BrowserWarningMessageEN.d.ts +1 -1
- package/lib/es/components/button/Button.d.ts +1 -1
- package/lib/es/components/button/ToggleButton.d.ts +1 -1
- package/lib/es/components/carousel/CarouselCaption.d.ts +1 -1
- package/lib/es/components/carousel/CarouselItem.d.ts +1 -1
- package/lib/es/components/charts/AreaChart.d.ts +2 -2
- package/lib/es/components/charts/AreaGradient.d.ts +1 -1
- package/lib/es/components/charts/BarChart.d.ts +2 -2
- package/lib/es/components/charts/ChartNeedle.d.ts +1 -1
- package/lib/es/components/charts/LineChart.d.ts +2 -2
- package/lib/es/components/charts/PieChart.d.ts +3 -3
- package/lib/es/components/charts/RadialBarChart.d.ts +2 -2
- package/lib/es/components/checkbox/Checkbox.d.ts +126 -56
- package/lib/es/components/checkbox/Checkbox.js +25 -65
- package/lib/es/components/checkbox/CheckboxIcon.d.ts +9 -0
- package/lib/es/components/checkbox/CheckboxIcon.js +15 -0
- package/lib/es/components/clearableInput/ClearableInput.d.ts +95 -58
- package/lib/es/components/clearableInput/ClearableInput.js +47 -97
- package/lib/es/components/collapse/Collapse.d.ts +1 -1
- package/lib/es/components/contentLoader/ContentLoader.d.ts +54 -32
- package/lib/es/components/contentLoader/ContentLoader.js +36 -33
- package/lib/es/components/dataTabs/DataTabs.d.ts +1 -1
- package/lib/es/components/datepicker/DateRangePicker.d.ts +6 -6
- package/lib/es/components/dialog/ConfirmationDialog.d.ts +1 -1
- package/lib/es/components/dialog/Dialog.js +14 -3
- package/lib/es/components/dialog/DialogBody.d.ts +1 -1
- package/lib/es/components/dialog/DialogFooter.d.ts +1 -1
- package/lib/es/components/dialog/DialogHeader.d.ts +1 -1
- package/lib/es/components/dialog/InfoDialog.d.ts +1 -1
- package/lib/es/components/dialog/MediaDialog.d.ts +6 -6
- package/lib/es/components/dialog/ReleaseNotesDialog.d.ts +1 -1
- package/lib/es/components/dialog/SaveDialog.d.ts +1 -1
- package/lib/es/components/dialog/SimpleDialog.d.ts +1 -1
- package/lib/es/components/dialog/SplitDialog.d.ts +1 -1
- package/lib/es/components/driverName/DriverName.d.ts +1 -1
- package/lib/es/components/dropdown/ButtonDropdown.d.ts +1 -1
- package/lib/es/components/dropdown/Caret.d.ts +1 -1
- package/lib/es/components/dropdown/DropdownSubmenu.d.ts +1 -1
- package/lib/es/components/dropdown/SimpleButtonDropdown.d.ts +1 -1
- package/lib/es/components/dropdown/SingleButtonDropdown.d.ts +1 -1
- package/lib/es/components/dropdown/SplitButtonDropdown.d.ts +1 -1
- package/lib/es/components/editableContent/EditableContent.d.ts +86 -0
- package/lib/es/components/editableContent/EditableContent.js +112 -0
- package/lib/es/components/expander/ExpanderList.d.ts +3 -3
- package/lib/es/components/expander/ExpanderPanel.d.ts +1 -1
- package/lib/es/components/fade/Fade.d.ts +1 -1
- package/lib/es/components/filepicker/FilePicker.d.ts +1 -1
- package/lib/es/components/listMenu/ListMenu.d.ts +1 -1
- package/lib/es/components/loadMore/LoadMoreButton.d.ts +31 -3
- package/lib/es/components/loadMore/LoadMoreProgress.d.ts +1 -1
- package/lib/es/components/map/components/Map.d.ts +1 -1
- package/lib/es/components/map/components/features/MapSettings.d.ts +1 -1
- package/lib/es/components/map/components/features/Route.d.ts +1 -1
- package/lib/es/components/map/components/features/basics/MapLayerGroup.d.ts +1 -1
- package/lib/es/components/map/components/features/basics/marker/TextMarker.d.ts +1 -1
- package/lib/es/components/map/components/features/layers/IncidentsLayer.d.ts +1 -1
- package/lib/es/components/map/components/features/layers/MarkerLayer.d.ts +1 -1
- package/lib/es/components/map/components/features/layers/RoadRestrictionLayer.d.ts +1 -1
- package/lib/es/components/map/components/features/layers/TrafficLayer.d.ts +1 -1
- package/lib/es/components/map/components/features/layers/clustering/SimpleClusterLayer.d.ts +1 -1
- package/lib/es/components/map/components/features/settings/MapSettingsItem.d.ts +1 -1
- package/lib/es/components/map/components/features/settings/MapSettingsPanel.d.ts +1 -1
- package/lib/es/components/map/components/features/settings/MapSettingsTile.d.ts +1 -1
- package/lib/es/components/map/components/features/settings/ZoomButtons.d.ts +1 -1
- package/lib/es/components/map/components/features/settings/builtinSettings/MapClusterSettings.d.ts +1 -1
- package/lib/es/components/map/components/features/settings/builtinSettings/MapLayerSettings.d.ts +1 -1
- package/lib/es/components/map/components/features/settings/builtinSettings/MapTypeSettings.d.ts +1 -1
- package/lib/es/components/map/components/features/settings/buttons/MapBoundingBoxButton.d.ts +1 -1
- package/lib/es/components/map/components/features/settings/buttons/MapCenterMarkerButton.d.ts +1 -1
- package/lib/es/components/map/components/features/settings/buttons/MapLockMarkerButton.d.ts +1 -1
- package/lib/es/components/map/components/features/settings/items/MapCustomerPoiSettingsItem.d.ts +1 -1
- package/lib/es/components/map/components/features/settings/items/MapLayerIncidentsItem.d.ts +1 -1
- package/lib/es/components/map/components/features/settings/items/MapLayerRoadRestrictionsItem.d.ts +1 -1
- package/lib/es/components/map/components/features/settings/items/MapLayerTrafficItem.d.ts +1 -1
- package/lib/es/components/map/components/features/settings/items/MapWorkshopPoiSettingsItem.d.ts +1 -1
- package/lib/es/components/map/utils/eventHandling.d.ts +10 -10
- package/lib/es/components/map/utils/eventHandling.js +30 -30
- package/lib/es/components/mapMarker/ClusterMapMarker.d.ts +1 -1
- package/lib/es/components/mapMarker/SingleMapMarker.d.ts +1 -1
- package/lib/es/components/menuItems/MenuItem.d.ts +13 -24
- package/lib/es/components/menuItems/MenuItem.js +8 -23
- package/lib/es/components/navigation/AppNavigationBar.js +1 -1
- package/lib/es/components/noData/NoData.d.ts +27 -2
- package/lib/es/components/notification/NotificationsContainer.d.ts +1 -1
- package/lib/es/components/numberControl/NumberControl.d.ts +4 -2
- package/lib/es/components/numberControl/NumberControl.js +22 -34
- package/lib/es/components/numberInput/NumberInput.d.ts +76 -9
- package/lib/es/components/numberInput/NumberInput.js +80 -47
- package/lib/es/components/overlay/OverlayTrigger.d.ts +4 -16
- package/lib/es/components/overlay/OverlayTrigger.js +4 -2
- package/lib/es/components/pager/Pager.d.ts +52 -24
- package/lib/es/components/pager/Pager.js +10 -20
- package/lib/es/components/position/Position.d.ts +1 -1
- package/lib/es/components/radiobutton/RadioButton.d.ts +1 -1
- package/lib/es/components/radiobutton/RadioButton.js +3 -3
- package/lib/es/components/releaseNotes/ReleaseNotes.d.ts +34 -8
- package/lib/es/components/releaseNotes/ReleaseNotes.js +8 -18
- package/lib/es/components/resizer/Resizer.d.ts +57 -64
- package/lib/es/components/resizer/Resizer.js +109 -109
- package/lib/es/components/rules/RuleConnector.d.ts +1 -1
- package/lib/es/components/rules/RuleContainer.d.ts +1 -1
- package/lib/es/components/rules/RulesWrapper.d.ts +1 -1
- package/lib/es/components/saveableInput/SaveableInput.d.ts +34 -2
- package/lib/es/components/selects/BaseDropdownMenu.d.ts +2 -2
- package/lib/es/components/selects/DropdownHeader.d.ts +1 -1
- package/lib/es/components/selects/Multiselect.d.ts +7 -7
- package/lib/es/components/selects/Select.d.ts +7 -7
- package/lib/es/components/sidebars/Sidebar.d.ts +1 -1
- package/lib/es/components/slider/RangeSlider.d.ts +1 -1
- package/lib/es/components/slider/Slider.d.ts +1 -1
- package/lib/es/components/spinner/Spinner.d.ts +47 -27
- package/lib/es/components/spinner/Spinner.js +12 -31
- package/lib/es/components/states/CustomState.d.ts +1 -1
- package/lib/es/components/states/EmptyState.d.ts +1 -1
- package/lib/es/components/states/ErrorState.d.ts +1 -1
- package/lib/es/components/states/ForbiddenState.d.ts +1 -1
- package/lib/es/components/states/MaintenanceState.d.ts +1 -1
- package/lib/es/components/states/NotBookedState.d.ts +1 -1
- package/lib/es/components/states/NotFoundState.d.ts +1 -1
- package/lib/es/components/statsWidget/StatsWidget.d.ts +25 -21
- package/lib/es/components/statsWidget/StatsWidget.js +8 -16
- package/lib/es/components/statsWidget/StatsWidgetBody.d.ts +13 -12
- package/lib/es/components/statsWidget/StatsWidgetBody.js +6 -13
- package/lib/es/components/statsWidget/StatsWidgetFooter.d.ts +9 -2
- package/lib/es/components/statsWidget/StatsWidgetFooter.js +6 -5
- package/lib/es/components/statsWidget/StatsWidgetHeader.d.ts +8 -1
- package/lib/es/components/statsWidget/StatsWidgetHeader.js +5 -4
- package/lib/es/components/statsWidget/StatsWidgetNumber.d.ts +30 -20
- package/lib/es/components/statsWidget/StatsWidgetNumber.js +6 -19
- package/lib/es/components/statsWidget/StatsWidgetSpacer.d.ts +7 -1
- package/lib/es/components/statsWidget/StatsWidgetSpacer.js +4 -4
- package/lib/es/components/statsWidget/StatsWidgets.d.ts +8 -7
- package/lib/es/components/statsWidget/StatsWidgets.js +5 -8
- package/lib/es/components/statusBar/StatusBar.d.ts +32 -54
- package/lib/es/components/statusBar/StatusBar.js +51 -127
- package/lib/es/components/statusBar/StatusBar.types.d.ts +85 -0
- package/lib/es/components/statusBar/StatusBar.types.js +2 -0
- package/lib/es/components/statusBar/StatusBarConstants.d.ts +8 -0
- package/lib/es/components/statusBar/StatusBarConstants.js +16 -0
- package/lib/es/components/statusBar/StatusBarIcon.d.ts +7 -0
- package/lib/es/components/statusBar/StatusBarIcon.js +19 -0
- package/lib/es/components/statusBar/StatusBarLabel.d.ts +8 -0
- package/lib/es/components/statusBar/StatusBarLabel.js +23 -0
- package/lib/es/components/statusBar/StatusBarProgressBar.d.ts +8 -0
- package/lib/es/components/statusBar/StatusBarProgressBar.js +21 -0
- package/lib/es/components/steppedProgressBar/SteppedProgressBar.d.ts +1 -1
- package/lib/es/components/switch/Switch.d.ts +50 -28
- package/lib/es/components/switch/Switch.js +11 -27
- package/lib/es/components/table/SortArrows.d.ts +3 -3
- package/lib/es/components/table/TableCardsSorting.d.ts +1 -1
- package/lib/es/components/table/TableSearch.d.ts +1 -1
- package/lib/es/components/table/TableSettingsColumnButtons.d.ts +1 -1
- package/lib/es/components/table/TableSettingsColumnDetails.d.ts +1 -1
- package/lib/es/components/table/TableSettingsDialog.d.ts +4 -4
- package/lib/es/components/table/TableSettingsDialogFooter.d.ts +1 -1
- package/lib/es/components/table/TableSettingsListContainer.d.ts +1 -1
- package/lib/es/components/table/TableSettingsListItem.d.ts +1 -1
- package/lib/es/components/table/TableToolbar.d.ts +1 -1
- package/lib/es/components/table/TableViewToggles.d.ts +1 -1
- package/lib/es/components/tag/Tag.d.ts +1 -1
- package/lib/es/components/tag/TagList.d.ts +1 -1
- package/lib/es/components/tagManager/CustomSuggestionItem.d.ts +1 -1
- package/lib/es/components/tagManager/TagManager.d.ts +1 -1
- package/lib/es/components/tagManager/TagManagerItemList.d.ts +1 -1
- package/lib/es/components/teaser/Teaser.d.ts +8 -8
- package/lib/es/components/teaser/TeaserContainer.d.ts +1 -1
- package/lib/es/components/timepicker/TimePicker.d.ts +1 -1
- package/lib/es/components/tooltip/SimpleTooltip.d.ts +1 -1
- package/lib/es/components/video/ResponsiveVideo.d.ts +25 -5
- package/lib/es/components/video/ResponsiveVideo.js +4 -2
- package/lib/es/framer-motion.d.ts +1 -1
- package/lib/es/hooks/useEsc.d.ts +2 -1
- package/lib/es/hooks/useEsc.js +2 -2
- package/lib/es/hooks/useEvent.d.ts +2 -1
- package/lib/es/hooks/useEvent.js +9 -4
- package/lib/es/hooks/useFocusTrap.d.ts +16 -0
- package/lib/es/hooks/useFocusTrap.js +64 -0
- package/lib/es/hooks/useHover.d.ts +3 -0
- package/lib/es/hooks/useHover.js +31 -0
- package/lib/es/hooks/useKey.d.ts +3 -1
- package/lib/es/hooks/useKey.js +8 -4
- package/lib/es/hooks/usePrevious.d.ts +21 -1
- package/lib/es/hooks/usePrevious.js +30 -11
- package/lib/es/index.d.ts +35 -31
- package/lib/es/index.js +58 -35
- package/lib/es/types.d.ts +1 -239
- package/lib/es/types.js +1 -19
- package/lib/es/useAfterMount.d.ts +2 -4
- package/lib/es/useClickOutside.d.ts +2 -4
- package/lib/es/useClipboard.d.ts +2 -4
- package/lib/es/useDarkMode.d.ts +2 -4
- package/lib/es/useDebugInfo.d.ts +2 -4
- package/lib/es/useEffectOnce.d.ts +2 -4
- package/lib/es/useElementSize.d.ts +2 -4
- package/lib/es/useEsc.d.ts +1 -4
- package/lib/es/useEsc.js +5 -3
- package/lib/es/useEvent.d.ts +1 -4
- package/lib/es/useEvent.js +5 -3
- package/lib/es/useFocusTrap.d.ts +1 -0
- package/lib/es/useFocusTrap.js +8 -0
- package/lib/es/useFullscreen.d.ts +2 -4
- package/lib/es/useHover.d.ts +1 -0
- package/lib/es/useHover.js +8 -0
- package/lib/es/useInterval.d.ts +2 -4
- package/lib/es/useKey.d.ts +1 -4
- package/lib/es/useKey.js +5 -3
- package/lib/es/useLocalStorage.d.ts +2 -4
- package/lib/es/useMutationObserver.d.ts +2 -4
- package/lib/es/useOnScreen.d.ts +2 -4
- package/lib/es/useOnlineStatus.d.ts +2 -4
- package/lib/es/usePrevious.d.ts +2 -4
- package/lib/es/usePrevious.js +3 -2
- package/lib/es/useRenderCount.d.ts +2 -4
- package/lib/es/useResizeObserver.d.ts +2 -4
- package/lib/es/useScrollPosition.d.ts +2 -4
- package/lib/es/useSessionStorage.d.ts +2 -4
- package/lib/es/useStateWithValidation.d.ts +2 -4
- package/lib/es/useTimeout.d.ts +2 -4
- package/lib/es/useWindowResize.d.ts +2 -4
- package/lib/es/utils/buttonEffect.js +7 -2
- package/lib/es/utils/colorScheme.d.ts +1 -1
- package/lib/es/utils/darkModeCDN.d.ts +1 -1
- package/lib/es/utils/deviceUtils.d.ts +1 -0
- package/lib/es/utils/deviceUtils.js +3 -1
- package/lib/es/utils/getDropDirection.d.ts +2 -4
- package/lib/es/utils/getDropDirection.js +12 -8
- package/lib/es/utils/init.d.ts +2 -2
- package/lib/es/utils/init.js +29 -6
- package/lib/es/utils/logDeprecatedWarnings.d.ts +8 -2
- package/lib/es/utils/logDeprecatedWarnings.js +2 -3
- package/lib/es/utils/useDropDirection.d.ts +12 -0
- package/lib/es/utils/useDropDirection.js +26 -0
- package/lib/es/version.json +1 -1
- package/package.json +1 -1
- package/utils/buttonEffect.js +2 -1
- package/utils/deviceUtils.d.ts +1 -0
- package/utils/deviceUtils.js +1 -0
- package/version.json +1 -1
|
@@ -6,5 +6,5 @@ export type MobileHeaderModalProps = {
|
|
|
6
6
|
onClose?: () => void;
|
|
7
7
|
className?: string;
|
|
8
8
|
};
|
|
9
|
-
declare const MobileHeaderModal: (props: PropsWithChildren<MobileHeaderModalProps>) => JSX.Element;
|
|
9
|
+
declare const MobileHeaderModal: (props: PropsWithChildren<MobileHeaderModalProps>) => import("react/jsx-runtime").JSX.Element;
|
|
10
10
|
export default MobileHeaderModal;
|
|
@@ -5,5 +5,5 @@ export type MobileSubmoduleNavigationProps = {
|
|
|
5
5
|
navItems?: ModulePropType[];
|
|
6
6
|
className?: string;
|
|
7
7
|
};
|
|
8
|
-
declare const MobileSubmoduleNavigation: (props: MobileSubmoduleNavigationProps) => JSX.Element;
|
|
8
|
+
declare const MobileSubmoduleNavigation: (props: MobileSubmoduleNavigationProps) => import("react/jsx-runtime").JSX.Element;
|
|
9
9
|
export default MobileSubmoduleNavigation;
|
|
@@ -5,5 +5,5 @@ export type NavItemsProps = {
|
|
|
5
5
|
containerWidth: number;
|
|
6
6
|
actionBarItems?: React.ReactNode[];
|
|
7
7
|
};
|
|
8
|
-
export declare const NavItems: (props: NavItemsProps) => JSX.Element;
|
|
8
|
+
export declare const NavItems: (props: NavItemsProps) => import("react/jsx-runtime").JSX.Element;
|
|
9
9
|
export default NavItems;
|
|
@@ -3,8 +3,14 @@ import ApplicationLayoutHeader from './ApplicationLayoutHeader';
|
|
|
3
3
|
import ApplicationLayoutSidebar from './ApplicationLayoutSidebar';
|
|
4
4
|
import ApplicationLayoutBody from './ApplicationLayoutBody';
|
|
5
5
|
export type ApplicationLayoutProps = {
|
|
6
|
-
|
|
6
|
+
/**
|
|
7
|
+
* A React ref function assigned to the wrapper element.
|
|
8
|
+
*/
|
|
7
9
|
layoutRef?: MutableRefObject<HTMLDivElement>;
|
|
10
|
+
/**
|
|
11
|
+
* Additional class names that are added to the respective component
|
|
12
|
+
*/
|
|
13
|
+
className?: string;
|
|
8
14
|
};
|
|
9
15
|
type Props = PropsWithChildren<ApplicationLayoutProps>;
|
|
10
16
|
type ApplicationLayoutType = ForwardRefExoticComponent<Props & RefAttributes<HTMLDivElement>> & {
|
|
@@ -1,13 +1,40 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
export type ApplicationLayoutBodyProps = {
|
|
3
|
-
|
|
4
|
-
|
|
3
|
+
/**
|
|
4
|
+
* Show scroll to top button after scrolling the content.
|
|
5
|
+
* @default true
|
|
6
|
+
*/
|
|
5
7
|
enableScrollToTop?: boolean;
|
|
8
|
+
/**
|
|
9
|
+
* Always show vertical scrollbar to prevent the content from jumping.
|
|
10
|
+
* @default false
|
|
11
|
+
*/
|
|
6
12
|
forceScrollbar?: boolean;
|
|
13
|
+
/**
|
|
14
|
+
* The ApplicationLayoutBodyBanner component.
|
|
15
|
+
*/
|
|
7
16
|
banner?: React.ReactNode;
|
|
17
|
+
/**
|
|
18
|
+
* The `ApplicationLayoutBodyNavigation` component.
|
|
19
|
+
*/
|
|
8
20
|
navigation?: React.ReactNode;
|
|
21
|
+
/**
|
|
22
|
+
* Optional bottom bar component or a simple string.
|
|
23
|
+
*/
|
|
9
24
|
bottomBar?: React.ReactNode;
|
|
25
|
+
/**
|
|
26
|
+
* Height of the bottomBar in pixel.
|
|
27
|
+
* @default 54
|
|
28
|
+
*/
|
|
10
29
|
bottomBarHeight?: number;
|
|
30
|
+
/**
|
|
31
|
+
* Additional class names that are added to the inner module-content component.
|
|
32
|
+
*/
|
|
33
|
+
innerClassName?: string;
|
|
34
|
+
/**
|
|
35
|
+
* Additional class names that are added to the respective component.
|
|
36
|
+
*/
|
|
37
|
+
className?: string;
|
|
11
38
|
};
|
|
12
39
|
declare const ApplicationLayoutBody: React.ForwardRefExoticComponent<ApplicationLayoutBodyProps & {
|
|
13
40
|
children?: React.ReactNode;
|
|
@@ -1,8 +1,23 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
export type ApplicationLayoutBodyBannerProps = {
|
|
3
|
+
/**
|
|
4
|
+
* One of the `text-color` utility classes.
|
|
5
|
+
* @default `text-color-white`
|
|
6
|
+
*/
|
|
3
7
|
textColor?: string;
|
|
8
|
+
/**
|
|
9
|
+
* One of the `bg-color` utility classes.
|
|
10
|
+
* @default `bg-primary`
|
|
11
|
+
*/
|
|
4
12
|
backgroundColor?: string;
|
|
13
|
+
/**
|
|
14
|
+
* Allows sticky banner while scrolling.
|
|
15
|
+
* @default false
|
|
16
|
+
*/
|
|
5
17
|
isSticky?: boolean;
|
|
18
|
+
/**
|
|
19
|
+
* Additional class names that are added to the respective component.
|
|
20
|
+
*/
|
|
6
21
|
className?: string;
|
|
7
22
|
};
|
|
8
23
|
declare const ApplicationLayoutBodyBanner: React.ForwardRefExoticComponent<ApplicationLayoutBodyBannerProps & {
|
|
@@ -2,8 +2,23 @@ import { type PropsWithChildren, type ForwardRefExoticComponent, type RefAttribu
|
|
|
2
2
|
type ButtonAlignmentLeft = 'left';
|
|
3
3
|
type ButtonAlignmentRight = 'right';
|
|
4
4
|
export type ApplicationLayoutBodyBottomBarProps = {
|
|
5
|
+
/**
|
|
6
|
+
* Additional class names that are added to the respective component
|
|
7
|
+
*/
|
|
5
8
|
className?: string;
|
|
9
|
+
/**
|
|
10
|
+
* Use same paddings (left and right) as the ApplicationLayoutBody.
|
|
11
|
+
* @default false
|
|
12
|
+
*/
|
|
6
13
|
useBodyPaddings?: boolean;
|
|
14
|
+
/**
|
|
15
|
+
* Tells the buttons if they are left or right aligned.
|
|
16
|
+
* Default behavior is: 1st button left and 2nd button right.
|
|
17
|
+
*
|
|
18
|
+
* Possible values are:
|
|
19
|
+
* `ApplicationLayoutBodyBottomBar.LEFT`, `ApplicationLayoutBodyBottomBar.RIGHT` or
|
|
20
|
+
* `left`, `right`
|
|
21
|
+
*/
|
|
7
22
|
buttonAlignment?: ButtonAlignmentLeft | ButtonAlignmentRight;
|
|
8
23
|
};
|
|
9
24
|
type Props = PropsWithChildren<ApplicationLayoutBodyBottomBarProps>;
|
|
@@ -1,5 +1,8 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
export type ApplicationLayoutBodyNavigationProps = {
|
|
3
|
+
/**
|
|
4
|
+
* Additional class names that are added to the respective component. Example: `has-offset`.
|
|
5
|
+
*/
|
|
3
6
|
className?: string;
|
|
4
7
|
};
|
|
5
8
|
declare const ApplicationLayoutBodyNavigation: React.ForwardRefExoticComponent<ApplicationLayoutBodyNavigationProps & {
|
|
@@ -1,5 +1,8 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
export type ApplicationLayoutHeaderProps = {
|
|
3
|
+
/**
|
|
4
|
+
* Additional class names that are added to the respective component.
|
|
5
|
+
*/
|
|
3
6
|
className?: string;
|
|
4
7
|
};
|
|
5
8
|
declare const ApplicationLayoutHeader: React.ForwardRefExoticComponent<ApplicationLayoutHeaderProps & {
|
|
@@ -1,5 +1,8 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
export type ApplicationLayoutSidebarProps = {
|
|
3
|
+
/**
|
|
4
|
+
* Additional class names that are added to the respective component
|
|
5
|
+
*/
|
|
3
6
|
className?: string;
|
|
4
7
|
};
|
|
5
8
|
declare const ApplicationLayoutSidebar: React.ForwardRefExoticComponent<ApplicationLayoutSidebarProps & {
|
|
@@ -1,8 +1,11 @@
|
|
|
1
1
|
import { type PropsWithChildren } from 'react';
|
|
2
2
|
export type AspectRatioPlaceholderProps = {
|
|
3
|
+
/** Defines the aspect ratio width. @default 16 */
|
|
3
4
|
height?: number;
|
|
5
|
+
/** Defines the aspect ratio height. @default 9 */
|
|
4
6
|
width?: number;
|
|
7
|
+
/** Additional class names that are added to the wrapping element. */
|
|
5
8
|
className?: string;
|
|
6
9
|
};
|
|
7
|
-
declare const AspectRatioPlaceholder: (props: AspectRatioPlaceholderProps & PropsWithChildren) => JSX.Element;
|
|
10
|
+
declare const AspectRatioPlaceholder: (props: AspectRatioPlaceholderProps & PropsWithChildren) => import("react/jsx-runtime").JSX.Element;
|
|
8
11
|
export default AspectRatioPlaceholder;
|
|
@@ -41,8 +41,7 @@ const SEARCH_DEBOUNCE = 100;
|
|
|
41
41
|
const otherwise = stubTrue_1.default;
|
|
42
42
|
const notEqual = (0, negate_1.default)(isEqual_1.default);
|
|
43
43
|
const notEmpty = (0, negate_1.default)(isEmpty_1.default);
|
|
44
|
-
const Divider = () => (
|
|
45
|
-
'margin-top-2 margin-bottom-0 margin-left-10 margin-right-10' }));
|
|
44
|
+
const Divider = () => (0, jsx_runtime_1.jsx)("div", { className: 'TreeSelectDivider bg-light padding-left-1 height-10 margin-top-2 margin-x-10' });
|
|
46
45
|
const isNameObject = item => (0, isObject_1.default)(item.name);
|
|
47
46
|
const getFullName = item => `${item.name.firstName} ${item.name.lastName}`;
|
|
48
47
|
const getName = item => (isNameObject(item) ? getFullName(item) : item.name);
|
|
@@ -3,7 +3,7 @@ declare function TreeNodeContainer({ isOpen, groupId, children }: {
|
|
|
3
3
|
isOpen: any;
|
|
4
4
|
groupId: any;
|
|
5
5
|
children: any;
|
|
6
|
-
}): JSX.Element;
|
|
6
|
+
}): import("react/jsx-runtime").JSX.Element;
|
|
7
7
|
declare namespace TreeNodeContainer {
|
|
8
8
|
const displayName: string;
|
|
9
9
|
namespace propTypes {
|
|
@@ -8,8 +8,8 @@ const classnames_1 = tslib_1.__importDefault(require("classnames"));
|
|
|
8
8
|
const Switch_1 = tslib_1.__importDefault(require("../switch/Switch"));
|
|
9
9
|
const TreeOption = props => {
|
|
10
10
|
const { isChecked, className, label, onChange } = props, remainingProps = tslib_1.__rest(props, ["isChecked", "className", "label", "onChange"]);
|
|
11
|
-
const optionClasses = (0, classnames_1.default)('TreeOption', 'display-flex', 'justify-content-start', 'cursor-pointer', className);
|
|
12
|
-
return ((0, jsx_runtime_1.jsxs)("div", Object.assign({}, remainingProps, { className: optionClasses, onClick: onChange }, { children: [(0, jsx_runtime_1.jsx)("span", Object.assign({ className: '
|
|
11
|
+
const optionClasses = (0, classnames_1.default)('TreeOption', 'display-flex', 'justify-content-start', 'align-items-center', 'gap-10', 'cursor-pointer', className);
|
|
12
|
+
return ((0, jsx_runtime_1.jsxs)("div", Object.assign({}, remainingProps, { className: optionClasses, onClick: onChange }, { children: [(0, jsx_runtime_1.jsx)("span", Object.assign({ className: 'flex-1-1' }, { children: label })), (0, jsx_runtime_1.jsx)("span", Object.assign({ className: 'pointer-events-none scale-80' }, { children: (0, jsx_runtime_1.jsx)(Switch_1.default, { keyName: 'TreeOption-switch', checked: isChecked }) }))] })));
|
|
13
13
|
};
|
|
14
14
|
TreeOption.displayName = 'TreeOption';
|
|
15
15
|
TreeOption.defaultProps = {
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
export default TreeOptions;
|
|
2
|
-
declare function TreeOptions(props: any): JSX.Element | null;
|
|
2
|
+
declare function TreeOptions(props: any): import("react/jsx-runtime").JSX.Element | null;
|
|
3
3
|
declare namespace TreeOptions {
|
|
4
4
|
const displayName: string;
|
|
5
5
|
namespace defaultProps {
|
|
@@ -5,14 +5,14 @@ const jsx_runtime_1 = require("react/jsx-runtime");
|
|
|
5
5
|
const react_1 = tslib_1.__importDefault(require("react"));
|
|
6
6
|
const prop_types_1 = tslib_1.__importDefault(require("prop-types"));
|
|
7
7
|
const classnames_1 = tslib_1.__importDefault(require("classnames"));
|
|
8
|
-
const ButtonDropdown_1 = tslib_1.__importDefault(require("../dropdown/ButtonDropdown"));
|
|
9
8
|
const lodash_1 = require("lodash");
|
|
9
|
+
const ButtonDropdown_1 = tslib_1.__importDefault(require("../dropdown/ButtonDropdown"));
|
|
10
10
|
const TreeOptions = props => {
|
|
11
11
|
const { treeOptions, className } = props;
|
|
12
12
|
if ((0, lodash_1.isEmpty)(treeOptions)) {
|
|
13
13
|
return null;
|
|
14
14
|
}
|
|
15
|
-
const dropdownClasses = (0, classnames_1.default)('width-250', 'padding-
|
|
15
|
+
const dropdownClasses = (0, classnames_1.default)('display-flex flex-column gap-10', 'width-250', 'padding-15', className);
|
|
16
16
|
const customDropdown = (0, jsx_runtime_1.jsx)("div", Object.assign({ className: dropdownClasses }, { children: treeOptions }));
|
|
17
17
|
return ((0, jsx_runtime_1.jsx)(ButtonDropdown_1.default, { title: (0, jsx_runtime_1.jsx)("span", { className: 'rioglyph rioglyph-option-vertical', "aria-hidden": 'true' }), bsStyle: 'muted', customDropdown: customDropdown, className: 'TreeHeaderOptions', pullRight: true, iconOnly: true }));
|
|
18
18
|
};
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
export default TreeSelectAll;
|
|
2
|
-
declare function TreeSelectAll(props: any): JSX.Element | null;
|
|
2
|
+
declare function TreeSelectAll(props: any): import("react/jsx-runtime").JSX.Element | null;
|
|
3
3
|
declare namespace TreeSelectAll {
|
|
4
4
|
const displayName: string;
|
|
5
5
|
namespace defaultProps {
|
|
@@ -12,7 +12,7 @@ const DefaultAssetCounts = ({ assetCounts }) => {
|
|
|
12
12
|
};
|
|
13
13
|
const TreeSummary = react_1.default.memo(props => {
|
|
14
14
|
const { className, assetCounts, children } = props;
|
|
15
|
-
const classes = (0, classnames_1.default)('TreeSummary', 'display-flex', 'align-items-center', className);
|
|
15
|
+
const classes = (0, classnames_1.default)('TreeSummary', 'display-flex', 'flex-wrap', 'align-items-center', 'column-gap-15', 'row-gap-5', className);
|
|
16
16
|
return (0, jsx_runtime_1.jsx)("div", Object.assign({ className: classes }, { children: children || (0, jsx_runtime_1.jsx)(DefaultAssetCounts, { assetCounts: assetCounts }) }));
|
|
17
17
|
});
|
|
18
18
|
TreeSummary.displayName = 'TreeSummary';
|
|
@@ -7,13 +7,13 @@ const prop_types_1 = tslib_1.__importDefault(require("prop-types"));
|
|
|
7
7
|
const classnames_1 = tslib_1.__importDefault(require("classnames"));
|
|
8
8
|
const TypeCounter = (0, react_1.forwardRef)((props, ref) => {
|
|
9
9
|
const { icon, value, isActive, hasFilter, enableActivity, onClick, type, hideOnZero } = props, remainingProps = tslib_1.__rest(props, ["icon", "value", "isActive", "hasFilter", "enableActivity", "onClick", "type", "hideOnZero"]);
|
|
10
|
-
const wrapperClassName = (0, classnames_1.default)('TypeCounter', 'display-flex align-items-center', 'user-select-none
|
|
10
|
+
const wrapperClassName = (0, classnames_1.default)('TypeCounter', 'display-flex align-items-center', 'user-select-none', enableActivity ? 'cursor-pointer' : 'pointer-events-none', enableActivity && hasFilter && !isActive && 'opacity-50');
|
|
11
11
|
const counterClassNames = (0, classnames_1.default)('TreeLabelCount', 'label label-condensed', isActive ? 'label-primary' : 'label-muted label-filled');
|
|
12
12
|
const handleClick = () => onClick(type);
|
|
13
13
|
if (hideOnZero && !value) {
|
|
14
14
|
return null;
|
|
15
15
|
}
|
|
16
|
-
return ((0, jsx_runtime_1.jsxs)("div", Object.assign({ ref: ref }, remainingProps, { className: wrapperClassName, onClick: handleClick }, { children: [(0, jsx_runtime_1.jsx)("span", { className: `rioglyph rioglyph-${icon} text-size-16 margin-right-2` }), (0, jsx_runtime_1.jsx)("span", Object.assign({ className: counterClassNames }, { children: value || 0 }))] })));
|
|
16
|
+
return ((0, jsx_runtime_1.jsxs)("div", Object.assign({ ref: ref }, remainingProps, { className: wrapperClassName, onClick: handleClick }, { children: [(0, jsx_runtime_1.jsx)("span", { className: `rioglyph rioglyph-${icon} text-size-16 margin-right-2 margin-left--4` }), (0, jsx_runtime_1.jsx)("span", Object.assign({ className: counterClassNames }, { children: value || 0 }))] })));
|
|
17
17
|
});
|
|
18
18
|
TypeCounter.defaultProps = {
|
|
19
19
|
hideOnZero: false,
|
|
@@ -1,115 +1,200 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
1
|
+
import React from 'react';
|
|
2
|
+
export type AutoSuggestSuggestion = {
|
|
3
|
+
label: string;
|
|
4
|
+
disabled?: boolean;
|
|
5
|
+
[name: string]: string | React.ReactNode;
|
|
6
|
+
};
|
|
7
|
+
export type SelectedSuggestion = {
|
|
8
|
+
highlightedItemIndex: -1;
|
|
9
|
+
suggestionValue: string | React.ReactElement;
|
|
10
|
+
suggestion: AutoSuggestSuggestion;
|
|
11
|
+
};
|
|
12
|
+
export type AutoSuggestInputProps = {
|
|
13
|
+
/**
|
|
14
|
+
* The value to be set for the input. Using this prop the input can be controlled from the outside.
|
|
15
|
+
*/
|
|
16
|
+
value?: string;
|
|
17
|
+
/**
|
|
18
|
+
* String that will be displayed inside the input when nothing is typed in.
|
|
19
|
+
* @default `Start typing ...`
|
|
20
|
+
*/
|
|
21
|
+
placeholder?: string | React.ReactNode;
|
|
22
|
+
/**
|
|
23
|
+
* Icon class name that shall be used. If defined, the input element is wrapped in an input-group
|
|
24
|
+
* and the icon will be set in an input-addon. Example: `rioglyph-search`.
|
|
25
|
+
*/
|
|
26
|
+
icon?: string;
|
|
27
|
+
/**
|
|
28
|
+
* Callback function which will be called when the input changes. __This is usually not needed__ as
|
|
29
|
+
* the "onSuggestionsFetchRequested" callback takes care of any input change. It is listed here
|
|
30
|
+
* for completeness and for certain edge cases.
|
|
31
|
+
*
|
|
32
|
+
* __Note:__ It might be removed in the future when not needed.'
|
|
33
|
+
* @deprecated please use `onSuggestionsFetchRequested` instead
|
|
34
|
+
* @param changeEvent
|
|
35
|
+
* @param changeProps
|
|
36
|
+
* @returns
|
|
37
|
+
*/
|
|
38
|
+
onChange?: (changeEvent: React.SyntheticEvent, changeProps: {
|
|
39
|
+
newValue: string;
|
|
40
|
+
}) => void;
|
|
41
|
+
/**
|
|
42
|
+
* Callback function which gets triggered when the input gaines focus.
|
|
43
|
+
*/
|
|
44
|
+
onFocus?: VoidFunction;
|
|
45
|
+
/**
|
|
46
|
+
* Callback function which gets triggered when the input looses the focus.
|
|
47
|
+
*/
|
|
48
|
+
onBlur?: VoidFunction;
|
|
49
|
+
/**
|
|
50
|
+
* Callback function which will be called when the input is cleared. __This is usually not needed__ as
|
|
51
|
+
* the "onSuggestionsFetchRequested" callback takes care of any input change. It is listed here
|
|
52
|
+
* for completeness and for certain edge cases.
|
|
53
|
+
*
|
|
54
|
+
* __Note:__ It might be removed in the future when not needed.
|
|
55
|
+
*/
|
|
56
|
+
onClear?: VoidFunction;
|
|
57
|
+
/**
|
|
58
|
+
* Boolean value that adds the class `has-error` to the input
|
|
59
|
+
* component. Use this for validation use cases. The Autosuggest component
|
|
60
|
+
* should be wrapped in a `form-group` element with the class `has-feedback`.
|
|
61
|
+
* @default false
|
|
62
|
+
*/
|
|
63
|
+
hasError?: boolean;
|
|
64
|
+
/**
|
|
65
|
+
* Defines the tab index to be added to the input element.
|
|
66
|
+
* @default 0
|
|
67
|
+
*/
|
|
68
|
+
tabIndex?: number;
|
|
69
|
+
/**
|
|
70
|
+
* Boolean value that disabled the input component.
|
|
71
|
+
* @default false
|
|
72
|
+
*/
|
|
73
|
+
disabled?: boolean;
|
|
74
|
+
/**
|
|
75
|
+
* The React ref for the underlying input.
|
|
76
|
+
*/
|
|
77
|
+
inputRef?: React.MutableRefObject<HTMLInputElement>;
|
|
78
|
+
/**
|
|
79
|
+
* Additional class names that are added to the input component.
|
|
80
|
+
*/
|
|
81
|
+
className?: string;
|
|
82
|
+
};
|
|
83
|
+
export type AutoSuggestProps = {
|
|
84
|
+
/**
|
|
85
|
+
* Object to define properties for the input component. For the input, the ClearableInput
|
|
86
|
+
* component is used.
|
|
87
|
+
*/
|
|
88
|
+
inputProps?: AutoSuggestInputProps;
|
|
89
|
+
/**
|
|
90
|
+
* Array of items which will be displayed. Items can be arbitrary objects as long as they
|
|
91
|
+
* have a label defined.
|
|
92
|
+
*/
|
|
93
|
+
suggestions?: AutoSuggestSuggestion[];
|
|
94
|
+
/**
|
|
95
|
+
* Text that will be shown when there is not match found. If nothing is defined the dropdown-menu
|
|
96
|
+
* will not be rendered.
|
|
97
|
+
*/
|
|
98
|
+
noItemMessage?: string | React.ReactNode;
|
|
99
|
+
/**
|
|
100
|
+
* Callback function which will be called every time you need to recalculate suggestions e.i.
|
|
101
|
+
* when the filter is updates after each input. It will also be called when the input is
|
|
102
|
+
* cleared. The value would be an empty string in this case.
|
|
103
|
+
* @param result
|
|
104
|
+
* @returns
|
|
105
|
+
*/
|
|
106
|
+
onSuggestionsFetchRequested?: (result: {
|
|
107
|
+
value: string;
|
|
108
|
+
}) => void;
|
|
109
|
+
/**
|
|
110
|
+
* Callback function which will be called when a suggestion is selected from the dropdown menu.
|
|
111
|
+
* @param event
|
|
112
|
+
* @param selectedSuggestion
|
|
113
|
+
* @returns
|
|
114
|
+
*/
|
|
115
|
+
onSuggestionSelected?: (event: React.MouseEvent<HTMLLIElement> | React.KeyboardEvent<HTMLDivElement>, selectedSuggestion: SelectedSuggestion) => void;
|
|
116
|
+
/**
|
|
117
|
+
* Callback function which will be called every time the highlighted selection changes.
|
|
118
|
+
* @param suggestion
|
|
119
|
+
* @returns
|
|
120
|
+
*/
|
|
121
|
+
onSuggestionHighlighted?: (suggestion: AutoSuggestSuggestion | null) => void;
|
|
122
|
+
/**
|
|
123
|
+
* Function that returns a string which will be displayed inside the input.
|
|
124
|
+
* This is required when a custom render function for suggestions is provided.
|
|
125
|
+
* Overwrite this function to provide the value to be used for a suggestion.
|
|
126
|
+
* Default implementation is: `suggestion => suggestion.label`
|
|
127
|
+
*
|
|
128
|
+
* @param suggestion
|
|
129
|
+
* @returns
|
|
130
|
+
*/
|
|
131
|
+
getSuggestionValue?: (suggestion: AutoSuggestSuggestion) => string;
|
|
132
|
+
/**
|
|
133
|
+
* Function that defines how suggestions are rendered on the dropdown-menu.
|
|
134
|
+
* Use this to customize the appearance for instance when you want to show an icon
|
|
135
|
+
* for a suggestion.
|
|
136
|
+
* Default implementation is: `suggestion => suggestion.label`
|
|
137
|
+
*
|
|
138
|
+
* @param suggestion
|
|
139
|
+
* @returns
|
|
140
|
+
*/
|
|
141
|
+
renderSuggestion?: (suggestion: AutoSuggestSuggestion) => React.ReactNode;
|
|
142
|
+
/**
|
|
143
|
+
* Boolean that disabled autoDropDirection and opens the dropdown-menu be above the toggle.
|
|
144
|
+
* @default false
|
|
145
|
+
*/
|
|
146
|
+
dropup?: boolean;
|
|
147
|
+
/**
|
|
148
|
+
* Defines whether the dropdown opens right aligned or not.
|
|
149
|
+
* Set to true additionally disables autoDrop feature.
|
|
150
|
+
* @default false
|
|
151
|
+
*/
|
|
152
|
+
pullRight?: boolean;
|
|
153
|
+
/**
|
|
154
|
+
* Boolean that enables autoDrop feature.
|
|
155
|
+
* @default true
|
|
156
|
+
*/
|
|
157
|
+
autoDropDirection?: boolean;
|
|
158
|
+
/**
|
|
159
|
+
* Shows a loading spinner instead of the items if set to true.
|
|
160
|
+
* @default false
|
|
161
|
+
*/
|
|
162
|
+
isLoading?: boolean;
|
|
163
|
+
/**
|
|
164
|
+
* Boolean that enables opening the dropdown menu when gaining focus.
|
|
165
|
+
* @default false
|
|
166
|
+
*/
|
|
167
|
+
openOnFocus?: boolean;
|
|
168
|
+
/**
|
|
169
|
+
* Boolean that enables the selection of an item to close the dropdown or not.
|
|
170
|
+
* @default true
|
|
171
|
+
*/
|
|
172
|
+
closeOnSelect?: boolean;
|
|
173
|
+
/**
|
|
174
|
+
* Defines whether or not a selected item is shown in the input after it was selected.
|
|
175
|
+
* @default true
|
|
176
|
+
*/
|
|
177
|
+
showSelectedItemsInInput?: boolean;
|
|
178
|
+
/**
|
|
179
|
+
* Sets autocomplete value for autosuggest forms.
|
|
180
|
+
*/
|
|
181
|
+
autoComplete?: string;
|
|
182
|
+
/**
|
|
183
|
+
* Adds a list of input-addons elements in front of the input.
|
|
184
|
+
*/
|
|
185
|
+
leadingInputAddons?: React.ReactNode[];
|
|
186
|
+
/**
|
|
187
|
+
* Adds a list of input-addons elements after the input.
|
|
188
|
+
*/
|
|
189
|
+
trailingInputAddons?: React.ReactNode[];
|
|
190
|
+
/**
|
|
191
|
+
* Additional class names that are added to the dropdown element.
|
|
192
|
+
*/
|
|
193
|
+
dropdownClassName?: string;
|
|
194
|
+
/**
|
|
195
|
+
* Additional class names that are added to the wrapping element.
|
|
196
|
+
*/
|
|
197
|
+
className?: string;
|
|
198
|
+
};
|
|
199
|
+
export declare const AutoSuggest: (props: AutoSuggestProps) => import("react/jsx-runtime").JSX.Element;
|
|
200
|
+
export default AutoSuggest;
|