@rio-cloud/rio-uikit 0.16.4-beta.3 → 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/components/actionBarItem/ActionBarItemIcon.d.ts +1 -1
- package/components/activity/Activity.d.ts +26 -0
- package/components/animatedNumber/AnimatedNumber.d.ts +8 -0
- 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/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 +6 -6
- 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/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 +6 -2
- package/lib/es/utils/colorScheme.d.ts +1 -1
- package/lib/es/utils/darkModeCDN.d.ts +1 -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/version.json +1 -1
|
@@ -2,11 +2,36 @@ import { type ReactNode } from 'react';
|
|
|
2
2
|
import type { TooltipWidth } from '../tooltip/Tooltip';
|
|
3
3
|
import { type Placement } from '../../values/Placement';
|
|
4
4
|
export type NoDataProps = {
|
|
5
|
+
/**
|
|
6
|
+
* The actual translated "No data" text.
|
|
7
|
+
*/
|
|
5
8
|
text: string | ReactNode;
|
|
6
|
-
|
|
9
|
+
/**
|
|
10
|
+
* Additional explanation shown inside a tooltip.
|
|
11
|
+
*/
|
|
7
12
|
tooltip?: string | ReactNode;
|
|
13
|
+
/**
|
|
14
|
+
* Sets the direction the Tooltip is positioned towards.
|
|
15
|
+
*
|
|
16
|
+
* Possible values are:
|
|
17
|
+
* `auto-start`, `auto`, `auto-end`,
|
|
18
|
+
* `top-start`, `top`, `top-end`,
|
|
19
|
+
* `bottom-start`, `bottom`, `bottom-end`,
|
|
20
|
+
* `right-start`, `right`, `right-end`,
|
|
21
|
+
* `left-start`, `left`, `left-end`
|
|
22
|
+
*/
|
|
8
23
|
tooltipPlacement?: Placement;
|
|
24
|
+
/**
|
|
25
|
+
* The width of the tooltip.
|
|
26
|
+
*
|
|
27
|
+
* Possible values are:
|
|
28
|
+
* `auto`, `100`, `150`, `200`, `250`, `300`, `350`, `400`, `450`, `500`
|
|
29
|
+
*/
|
|
9
30
|
tooltipWidth?: TooltipWidth;
|
|
31
|
+
/**
|
|
32
|
+
* Additional class names to be added to the wrapping element.
|
|
33
|
+
*/
|
|
34
|
+
className?: string;
|
|
10
35
|
};
|
|
11
|
-
declare const NoData: (props: NoDataProps) => JSX.Element;
|
|
36
|
+
declare const NoData: (props: NoDataProps) => import("react/jsx-runtime").JSX.Element;
|
|
12
37
|
export default NoData;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
export default NotificationsContainer;
|
|
2
2
|
declare function NotificationsContainer({ stacked }: {
|
|
3
3
|
stacked: any;
|
|
4
|
-
}): JSX.Element;
|
|
4
|
+
}): import("react/jsx-runtime").JSX.Element;
|
|
5
5
|
declare namespace NotificationsContainer {
|
|
6
6
|
namespace defaultProps {
|
|
7
7
|
const stacked: boolean;
|
|
@@ -1,3 +1,5 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import { type NumberInputProps } from '../numberInput/NumberInput';
|
|
3
|
+
export type NumberControlProps = NumberInputProps;
|
|
4
|
+
declare const NumberControl: React.ForwardRefExoticComponent<NumberInputProps & React.RefAttributes<HTMLInputElement>>;
|
|
1
5
|
export default NumberControl;
|
|
2
|
-
declare const NumberControl: React.ForwardRefExoticComponent<React.RefAttributes<any>>;
|
|
3
|
-
import React from "react";
|
|
@@ -2,30 +2,31 @@
|
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
const tslib_1 = require("tslib");
|
|
4
4
|
const jsx_runtime_1 = require("react/jsx-runtime");
|
|
5
|
-
const react_1 =
|
|
6
|
-
const prop_types_1 = tslib_1.__importDefault(require("prop-types"));
|
|
5
|
+
const react_1 = require("react");
|
|
7
6
|
const classnames_1 = tslib_1.__importDefault(require("classnames"));
|
|
8
7
|
const NumberInput_1 = tslib_1.__importStar(require("../numberInput/NumberInput"));
|
|
9
8
|
const INITIAL_TICK = 700;
|
|
10
9
|
const TICK_TIME = 50;
|
|
11
10
|
const DEFAULT_DIGIT_PRECISION = 3;
|
|
12
11
|
const NumberControl = (0, react_1.forwardRef)((props, ref) => {
|
|
13
|
-
const { min = NumberInput_1.
|
|
12
|
+
const { min = NumberInput_1.DEFAULT_MIN, max = NumberInput_1.DEFAULT_MAX, step = NumberInput_1.DEFAULT_STEP, value, onChange, onValueChanged = () => { }, disabled, bsSize, className, unit, inputAddon, digitPrecision = DEFAULT_DIGIT_PRECISION, placeholder } = props, remainingProps = tslib_1.__rest(props, ["min", "max", "step", "value", "onChange", "onValueChanged", "disabled", "bsSize", "className", "unit", "inputAddon", "digitPrecision", "placeholder"]);
|
|
14
13
|
// Note, "onChange" should replace "onValueChanged" in the future but it's widely used
|
|
15
14
|
const callback = onChange || onValueChanged;
|
|
16
|
-
const timeout = (0, react_1.useRef)();
|
|
15
|
+
const timeout = (0, react_1.useRef)(null);
|
|
17
16
|
const [isHoldingDownInc, setIsHoldingDownInc] = (0, react_1.useState)(false);
|
|
18
17
|
const [isHoldingDownDec, setIsHoldingDownDec] = (0, react_1.useState)(false);
|
|
19
18
|
const [internalValue, setInternalValue] = (0, react_1.useState)(value);
|
|
20
|
-
const initialTimeout =
|
|
21
|
-
|
|
19
|
+
const initialTimeout = (callbackFn) => {
|
|
20
|
+
if (timeout.current !== null) {
|
|
21
|
+
clearTimeout(timeout.current);
|
|
22
|
+
}
|
|
22
23
|
timeout.current = setTimeout(() => {
|
|
23
|
-
|
|
24
|
+
callbackFn();
|
|
24
25
|
}, INITIAL_TICK);
|
|
25
26
|
};
|
|
26
|
-
const recursiveTimeout =
|
|
27
|
+
const recursiveTimeout = (callbackFn) => {
|
|
27
28
|
timeout.current = setTimeout(() => {
|
|
28
|
-
|
|
29
|
+
callbackFn();
|
|
29
30
|
}, TICK_TIME);
|
|
30
31
|
};
|
|
31
32
|
// Update internal state if external value has changed
|
|
@@ -43,7 +44,7 @@ const NumberControl = (0, react_1.forwardRef)((props, ref) => {
|
|
|
43
44
|
(0, react_1.useEffect)(() => {
|
|
44
45
|
// Call increment function for a loop when button is holding down
|
|
45
46
|
if (isHoldingDownInc && !disabled) {
|
|
46
|
-
initialTimeout(
|
|
47
|
+
initialTimeout(incrementRecursively);
|
|
47
48
|
}
|
|
48
49
|
// Call decrement function for a loop when button is holding down
|
|
49
50
|
if (isHoldingDownDec && !disabled) {
|
|
@@ -52,7 +53,7 @@ const NumberControl = (0, react_1.forwardRef)((props, ref) => {
|
|
|
52
53
|
}, [isHoldingDownInc, isHoldingDownDec]);
|
|
53
54
|
const incrementInternalValue = () => {
|
|
54
55
|
setInternalValue(val => {
|
|
55
|
-
const currentValue = (0, NumberInput_1.convertNonIntegerToDefault)(val);
|
|
56
|
+
const currentValue = (0, NumberInput_1.convertNonIntegerToDefault)(val, NumberInput_1.DEFAULT_VALUE);
|
|
56
57
|
const newValue = Number((currentValue + step).toFixed(digitPrecision));
|
|
57
58
|
const newValueLimited = newValue <= max ? newValue : val;
|
|
58
59
|
return newValueLimited;
|
|
@@ -60,15 +61,15 @@ const NumberControl = (0, react_1.forwardRef)((props, ref) => {
|
|
|
60
61
|
};
|
|
61
62
|
const decrementInternalValue = () => {
|
|
62
63
|
setInternalValue(val => {
|
|
63
|
-
const currentValue = (0, NumberInput_1.convertNonIntegerToDefault)(val);
|
|
64
|
+
const currentValue = (0, NumberInput_1.convertNonIntegerToDefault)(val, NumberInput_1.DEFAULT_VALUE);
|
|
64
65
|
const newValue = Number((currentValue - step).toFixed(digitPrecision));
|
|
65
66
|
const newValueLimited = newValue >= min ? newValue : val;
|
|
66
67
|
return newValueLimited;
|
|
67
68
|
});
|
|
68
69
|
};
|
|
69
|
-
const
|
|
70
|
+
const incrementRecursively = () => {
|
|
70
71
|
incrementInternalValue();
|
|
71
|
-
recursiveTimeout(
|
|
72
|
+
recursiveTimeout(incrementRecursively);
|
|
72
73
|
};
|
|
73
74
|
const decrementRecursively = () => {
|
|
74
75
|
decrementInternalValue();
|
|
@@ -91,37 +92,24 @@ const NumberControl = (0, react_1.forwardRef)((props, ref) => {
|
|
|
91
92
|
decrementInternalValue();
|
|
92
93
|
};
|
|
93
94
|
const handleStopHolding = () => {
|
|
94
|
-
|
|
95
|
+
if (timeout.current !== null) {
|
|
96
|
+
clearTimeout(timeout.current);
|
|
97
|
+
}
|
|
95
98
|
setIsHoldingDownInc(false);
|
|
96
99
|
setIsHoldingDownDec(false);
|
|
97
100
|
};
|
|
98
|
-
const handleUpdatedNumberInputValue =
|
|
101
|
+
const handleUpdatedNumberInputValue = (newValue) => {
|
|
99
102
|
// Set the internal value when the value of the actual input has changed,
|
|
100
103
|
// for instance the user has typed in a number manually and to
|
|
101
104
|
// use this number as base to increase or decrease from.
|
|
102
105
|
// Ignore empty value in case the user has removed it
|
|
103
|
-
if (
|
|
104
|
-
setInternalValue(Number(
|
|
106
|
+
if (newValue !== undefined && !(isHoldingDownDec && isHoldingDownInc)) {
|
|
107
|
+
setInternalValue(Number(newValue));
|
|
105
108
|
}
|
|
106
|
-
callback(
|
|
109
|
+
callback(newValue);
|
|
107
110
|
};
|
|
108
111
|
const classes = (0, classnames_1.default)('NumberControl', 'form-group', className);
|
|
109
112
|
const inputGroupClassNames = (0, classnames_1.default)('input-group', bsSize === 'sm' && 'input-group-sm', bsSize === 'lg' && 'input-group-lg');
|
|
110
113
|
return ((0, jsx_runtime_1.jsx)("div", Object.assign({}, remainingProps, { className: classes }, { children: (0, jsx_runtime_1.jsxs)("div", Object.assign({ className: inputGroupClassNames }, { children: [inputAddon && ((0, jsx_runtime_1.jsx)("span", Object.assign({ className: 'input-group-addon' }, { children: (0, jsx_runtime_1.jsx)("span", { className: inputAddon }) }))), (0, jsx_runtime_1.jsx)(NumberInput_1.default, { ref: ref, min: min, max: max, value: internalValue, step: step, disabled: disabled, onChange: handleUpdatedNumberInputValue, digitPrecision: digitPrecision, placeholder: placeholder }), (0, jsx_runtime_1.jsxs)("div", Object.assign({ className: 'input-group-addon' }, { children: [unit && (0, jsx_runtime_1.jsx)("div", Object.assign({ className: 'margin-right-5' }, { children: unit })), (0, jsx_runtime_1.jsx)("div", Object.assign({ onMouseDown: handleMouseDownOnDecrement, onMouseUp: handleStopHolding, role: 'button', "aria-label": 'decrement-button', className: 'decrementButton text-color-gray hover-text-color-dark' }, { children: (0, jsx_runtime_1.jsx)("div", { className: 'rioglyph rioglyph-minus scale-90' }) })), (0, jsx_runtime_1.jsx)("div", Object.assign({ onMouseDown: handleMouseDownOnIncrement, onMouseUp: handleStopHolding, role: 'button', "aria-label": 'increment-button', className: 'incrementButton text-color-gray hover-text-color-dark margin-left-5' }, { children: (0, jsx_runtime_1.jsx)("div", { className: 'rioglyph rioglyph-plus scale-90' }) }))] }))] })) })));
|
|
111
114
|
});
|
|
112
|
-
NumberControl.propTypes = {
|
|
113
|
-
min: prop_types_1.default.number,
|
|
114
|
-
max: prop_types_1.default.number,
|
|
115
|
-
value: prop_types_1.default.number,
|
|
116
|
-
step: prop_types_1.default.number,
|
|
117
|
-
disabled: prop_types_1.default.bool,
|
|
118
|
-
onChange: prop_types_1.default.func,
|
|
119
|
-
onValueChanged: prop_types_1.default.func,
|
|
120
|
-
bsSize: prop_types_1.default.string,
|
|
121
|
-
className: prop_types_1.default.string,
|
|
122
|
-
unit: prop_types_1.default.oneOfType([prop_types_1.default.string, prop_types_1.default.node]),
|
|
123
|
-
inputAddon: prop_types_1.default.string,
|
|
124
|
-
digitPrecision: prop_types_1.default.number,
|
|
125
|
-
placeholder: prop_types_1.default.string,
|
|
126
|
-
};
|
|
127
115
|
exports.default = NumberControl;
|
|
@@ -1,10 +1,77 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
export
|
|
1
|
+
import React from 'react';
|
|
2
|
+
export declare const DEFAULT_VALUE = 0;
|
|
3
|
+
export declare const DEFAULT_STEP = 1;
|
|
4
|
+
export declare const DEFAULT_MIN = 0;
|
|
5
|
+
export declare const DEFAULT_MAX: number;
|
|
6
|
+
export declare const convertNonIntegerToDefault: (value: number | undefined, fallback: number) => number;
|
|
7
|
+
export type NumberInputProps = {
|
|
8
|
+
/**
|
|
9
|
+
* The minimum value of the input.
|
|
10
|
+
* @default 0
|
|
11
|
+
*/
|
|
12
|
+
min?: number;
|
|
13
|
+
/**
|
|
14
|
+
* The maximum value of the input.
|
|
15
|
+
* @default Number.MAX_VALUE
|
|
16
|
+
*/
|
|
17
|
+
max?: number;
|
|
18
|
+
/**
|
|
19
|
+
* The initial value of the input. Used to control the component from the outside.
|
|
20
|
+
* @default 0
|
|
21
|
+
*/
|
|
22
|
+
value?: number;
|
|
23
|
+
/**
|
|
24
|
+
* The size of increment or decrement (only works with number type).
|
|
25
|
+
* @default 1
|
|
26
|
+
*/
|
|
27
|
+
step?: number;
|
|
28
|
+
/**
|
|
29
|
+
* Enables or disabled the input.
|
|
30
|
+
* @default false
|
|
31
|
+
*/
|
|
32
|
+
disabled?: boolean;
|
|
33
|
+
/**
|
|
34
|
+
* Callback function triggered when the input value changes.
|
|
35
|
+
*
|
|
36
|
+
* When the value is removed by the user, the input is kept empty but it
|
|
37
|
+
* triggers the callback without any value since the user has finished his input.
|
|
38
|
+
* @param value
|
|
39
|
+
* @returns
|
|
40
|
+
*/
|
|
41
|
+
onChange?: (value?: number) => void;
|
|
42
|
+
/**
|
|
43
|
+
* Note: "onChange" should replace "onValueChanged" in the future but it's still widely used
|
|
44
|
+
* @deprecated Please use `onChange`
|
|
45
|
+
* @param value
|
|
46
|
+
* @returns
|
|
47
|
+
*/
|
|
48
|
+
onValueChanged?: (value?: number) => void;
|
|
49
|
+
/**
|
|
50
|
+
* Defines the size of the input to be rendered.
|
|
51
|
+
* @default 'md'
|
|
52
|
+
*/
|
|
53
|
+
bsSize?: 'sm' | 'md' | 'lg';
|
|
54
|
+
/**
|
|
55
|
+
* A unit for this value. This will be shown in a dedicated input addon.
|
|
56
|
+
*/
|
|
57
|
+
unit?: string | React.ReactNode;
|
|
58
|
+
/**
|
|
59
|
+
* A rioglyph icon tio be shown in front of the input.
|
|
60
|
+
*/
|
|
61
|
+
inputAddon?: string;
|
|
62
|
+
/**
|
|
63
|
+
* The input placeholder if no value is given.
|
|
64
|
+
*/
|
|
65
|
+
placeholder?: string;
|
|
66
|
+
/**
|
|
67
|
+
* Number of digits after the comma the value should be fixed to.
|
|
68
|
+
* @default 3
|
|
69
|
+
*/
|
|
70
|
+
digitPrecision?: number;
|
|
71
|
+
/**
|
|
72
|
+
* Additional classes to be set on the component.
|
|
73
|
+
*/
|
|
74
|
+
className?: string;
|
|
75
|
+
};
|
|
76
|
+
declare const NumberInput: React.ForwardRefExoticComponent<NumberInputProps & React.RefAttributes<HTMLInputElement>>;
|
|
7
77
|
export default NumberInput;
|
|
8
|
-
declare const DEFAULT_STEP: 1;
|
|
9
|
-
declare const NumberInput: React.ForwardRefExoticComponent<React.RefAttributes<any>>;
|
|
10
|
-
import React from "react";
|
|
@@ -1,29 +1,47 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.convertNonIntegerToDefault = exports.
|
|
3
|
+
exports.convertNonIntegerToDefault = exports.DEFAULT_MAX = exports.DEFAULT_MIN = exports.DEFAULT_STEP = exports.DEFAULT_VALUE = void 0;
|
|
4
4
|
const tslib_1 = require("tslib");
|
|
5
5
|
const jsx_runtime_1 = require("react/jsx-runtime");
|
|
6
|
-
const react_1 =
|
|
7
|
-
const prop_types_1 = tslib_1.__importDefault(require("prop-types"));
|
|
6
|
+
const react_1 = require("react");
|
|
8
7
|
const classnames_1 = tslib_1.__importDefault(require("classnames"));
|
|
8
|
+
const noop_1 = tslib_1.__importDefault(require("lodash/fp/noop"));
|
|
9
9
|
const useAfterMount_1 = tslib_1.__importDefault(require("../../hooks/useAfterMount"));
|
|
10
10
|
const DEFAULT_DIGIT_PRECISION = 3;
|
|
11
|
-
|
|
12
|
-
|
|
11
|
+
exports.DEFAULT_VALUE = 0;
|
|
12
|
+
exports.DEFAULT_STEP = 1;
|
|
13
|
+
exports.DEFAULT_MIN = 0;
|
|
14
|
+
exports.DEFAULT_MAX = Number.MAX_VALUE;
|
|
15
|
+
const validKeys = [
|
|
16
|
+
'0',
|
|
17
|
+
'1',
|
|
18
|
+
'2',
|
|
19
|
+
'3',
|
|
20
|
+
'4',
|
|
21
|
+
'5',
|
|
22
|
+
'6',
|
|
23
|
+
'7',
|
|
24
|
+
'8',
|
|
25
|
+
'9',
|
|
26
|
+
'.',
|
|
27
|
+
',',
|
|
28
|
+
'-',
|
|
29
|
+
'Backspace',
|
|
30
|
+
'Tab',
|
|
31
|
+
'ArrowLeft',
|
|
32
|
+
'ArrowRight',
|
|
33
|
+
'ArrowDown',
|
|
34
|
+
'ArrowUp',
|
|
35
|
+
];
|
|
13
36
|
// Note: even if limits are set and input type is number, many browsers allow to enter invalid data
|
|
14
37
|
// like entering characters or values outside the boundaries, hence we have to check the input here
|
|
15
38
|
// See https://developer.mozilla.org/en-US/docs/Web/HTML/Element/input/number
|
|
16
|
-
exports.defaultProps = {
|
|
17
|
-
min: 0,
|
|
18
|
-
max: Number.MAX_VALUE,
|
|
19
|
-
step: DEFAULT_STEP,
|
|
20
|
-
};
|
|
21
39
|
const getValueFromProps = (val, min, max, placeholder) => {
|
|
22
40
|
// Show placeholders if given instead of 0
|
|
23
41
|
if (val === undefined && placeholder) {
|
|
24
42
|
return '';
|
|
25
43
|
}
|
|
26
|
-
return clampNumber(Number(val), min, max) || DEFAULT_VALUE;
|
|
44
|
+
return clampNumber(Number(val), min, max) || exports.DEFAULT_VALUE;
|
|
27
45
|
};
|
|
28
46
|
const clampNumber = (value, min, max) => {
|
|
29
47
|
if (value < min) {
|
|
@@ -34,20 +52,23 @@ const clampNumber = (value, min, max) => {
|
|
|
34
52
|
}
|
|
35
53
|
return value;
|
|
36
54
|
};
|
|
37
|
-
const convertNonIntegerToDefault = value => {
|
|
38
|
-
|
|
39
|
-
if (!Number.isFinite(currentValue)) {
|
|
40
|
-
currentValue = DEFAULT_VALUE;
|
|
41
|
-
}
|
|
42
|
-
return currentValue;
|
|
55
|
+
const convertNonIntegerToDefault = (value, fallback) => {
|
|
56
|
+
return typeof value === 'number' && Number.isFinite(value) ? value : fallback;
|
|
43
57
|
};
|
|
44
58
|
exports.convertNonIntegerToDefault = convertNonIntegerToDefault;
|
|
45
|
-
const
|
|
46
|
-
|
|
59
|
+
const isMultipleKeyInput = (key, event, previousKeyRef) => {
|
|
60
|
+
return event.key === key && previousKeyRef.current.includes(key);
|
|
61
|
+
};
|
|
62
|
+
const isInvalidAfter = (key, possiblePreviousKeys, event, previousKeyRef) => {
|
|
63
|
+
return event.key === key && possiblePreviousKeys.includes(previousKeyRef.current);
|
|
64
|
+
};
|
|
65
|
+
const NumberInput = (0, react_1.forwardRef)((props, ref) => {
|
|
66
|
+
const { min: propMin, max: propMax, value: propValue, step = exports.DEFAULT_STEP, disabled = false, onChange, onValueChanged = noop_1.default, bsSize = 'md', unit, inputAddon, placeholder, digitPrecision = DEFAULT_DIGIT_PRECISION, className = '' } = props, remainingProps = tslib_1.__rest(props, ["min", "max", "value", "step", "disabled", "onChange", "onValueChanged", "bsSize", "unit", "inputAddon", "placeholder", "digitPrecision", "className"]);
|
|
67
|
+
const previousKeyRef = (0, react_1.useRef)('');
|
|
47
68
|
// Note, "onChange" should replace "onValueChanged" in the future but it's widely used
|
|
48
69
|
const callback = onChange || onValueChanged;
|
|
49
|
-
const min =
|
|
50
|
-
const max =
|
|
70
|
+
const min = (0, exports.convertNonIntegerToDefault)(propMin, exports.DEFAULT_MIN);
|
|
71
|
+
const max = (0, exports.convertNonIntegerToDefault)(propMax, exports.DEFAULT_MAX);
|
|
51
72
|
const value = getValueFromProps(propValue, min, max, placeholder);
|
|
52
73
|
// Define local state and define initial values
|
|
53
74
|
const [state, setState] = (0, react_1.useState)({
|
|
@@ -63,7 +84,7 @@ const NumberInput = react_1.default.forwardRef((props, ref) => {
|
|
|
63
84
|
isValid: true,
|
|
64
85
|
});
|
|
65
86
|
}, [propValue, clampNumber]);
|
|
66
|
-
const applyValue = newValue => {
|
|
87
|
+
const applyValue = (newValue) => {
|
|
67
88
|
if (newValue === '-' || newValue === '') {
|
|
68
89
|
setState({
|
|
69
90
|
value: newValue,
|
|
@@ -83,48 +104,60 @@ const NumberInput = react_1.default.forwardRef((props, ref) => {
|
|
|
83
104
|
// Only call back the caller for valid values
|
|
84
105
|
isValid && callback(newValidValue);
|
|
85
106
|
};
|
|
86
|
-
const handleOnChange = event => {
|
|
107
|
+
const handleOnChange = (event) => {
|
|
108
|
+
console.log(event.target.value);
|
|
87
109
|
applyValue(event.target.value);
|
|
88
110
|
};
|
|
89
|
-
// Prevent entering exponent to
|
|
111
|
+
// Prevent entering exponent to avoid side effects
|
|
90
112
|
// See https://bugzilla.mozilla.org/show_bug.cgi?id=1398528
|
|
91
|
-
|
|
92
|
-
|
|
113
|
+
// Also preventing letter inputs or multiple consecutive characters
|
|
114
|
+
// that is possible by Firefox and Safari
|
|
115
|
+
const handleKeyDown = (event) => {
|
|
116
|
+
// Allow for key combination like "ctrl + a"
|
|
117
|
+
if (event.ctrlKey || event.altKey || event.metaKey) {
|
|
118
|
+
return;
|
|
119
|
+
}
|
|
120
|
+
// Check for multiple dots, commas or dashes (consecutive)
|
|
121
|
+
if (isMultipleKeyInput('.', event, previousKeyRef) ||
|
|
122
|
+
isMultipleKeyInput(',', event, previousKeyRef) ||
|
|
123
|
+
isMultipleKeyInput('-', event, previousKeyRef) ||
|
|
124
|
+
isInvalidAfter(',', ['.', '-'], event, previousKeyRef) ||
|
|
125
|
+
isInvalidAfter('.', [',', '-'], event, previousKeyRef) ||
|
|
126
|
+
isInvalidAfter('-', ['.', ','], event, previousKeyRef) ||
|
|
127
|
+
event.key === 'Process' ||
|
|
128
|
+
event.key === 'Dead' ||
|
|
129
|
+
event.shiftKey) {
|
|
93
130
|
event.preventDefault();
|
|
94
131
|
}
|
|
132
|
+
// Filter out everything that is not a number
|
|
133
|
+
if (!validKeys.includes(event.key)) {
|
|
134
|
+
event.preventDefault();
|
|
135
|
+
}
|
|
136
|
+
previousKeyRef.current = event.key;
|
|
95
137
|
};
|
|
96
|
-
const handleBlur =
|
|
138
|
+
const handleBlur = () => {
|
|
97
139
|
// When the value is removed, keep the input empty but trigger the outside callback
|
|
98
140
|
// since the user has finished his input
|
|
99
141
|
const lastEnteredValue = state.enteredValue;
|
|
100
142
|
if (lastEnteredValue === '') {
|
|
101
|
-
callback(
|
|
143
|
+
callback();
|
|
102
144
|
return;
|
|
103
145
|
}
|
|
104
146
|
// Otherwise, validate the input, round it according to digitPrecision,
|
|
105
|
-
// and clamp the value if the entered value
|
|
106
|
-
const convertedEnteredValue = (0, exports.convertNonIntegerToDefault)(Number(lastEnteredValue));
|
|
107
|
-
const validNumber = clampNumber(Number(convertedEnteredValue
|
|
147
|
+
// and clamp the value if the entered value exceeds the limitations
|
|
148
|
+
const convertedEnteredValue = (0, exports.convertNonIntegerToDefault)(Number(lastEnteredValue), exports.DEFAULT_VALUE);
|
|
149
|
+
const validNumber = clampNumber(Number(convertedEnteredValue.toFixed(digitPrecision)), min, max);
|
|
108
150
|
applyValue(validNumber);
|
|
109
151
|
};
|
|
152
|
+
const handleWheel = (event) => {
|
|
153
|
+
const target = event.target;
|
|
154
|
+
if (target instanceof HTMLInputElement) {
|
|
155
|
+
target.blur();
|
|
156
|
+
}
|
|
157
|
+
};
|
|
110
158
|
const inputGroupClassNames = (0, classnames_1.default)('input-group', bsSize === 'sm' && 'input-group-sm', bsSize === 'lg' && 'input-group-lg');
|
|
111
159
|
const inputClassNames = (0, classnames_1.default)('form-control', 'no-controls', bsSize === 'sm' && 'input-sm', bsSize === 'lg' && 'input-lg', className);
|
|
112
|
-
const input = ((0, jsx_runtime_1.jsx)("input", Object.assign({}, remainingProps, { type: 'number', step: step, min: min, max: max, value: state.isValid ? state.value : state.enteredValue, className: inputClassNames, disabled: disabled, onBlur: handleBlur, onChange: handleOnChange, onKeyDown: handleKeyDown, ref: ref, "aria-label": 'number-input', placeholder: placeholder, onWheel:
|
|
160
|
+
const input = ((0, jsx_runtime_1.jsx)("input", Object.assign({}, remainingProps, { type: 'number', step: step, min: min, max: max, value: state.isValid ? state.value : state.enteredValue, className: inputClassNames, disabled: disabled, onBlur: handleBlur, onChange: handleOnChange, onKeyDown: handleKeyDown, ref: ref, "aria-label": 'number-input', placeholder: placeholder, onWheel: handleWheel })));
|
|
113
161
|
return unit || inputAddon ? ((0, jsx_runtime_1.jsxs)("div", Object.assign({ className: inputGroupClassNames }, { children: [inputAddon && ((0, jsx_runtime_1.jsx)("span", Object.assign({ className: 'input-group-addon' }, { children: (0, jsx_runtime_1.jsx)("span", { className: inputAddon }) }))), input, unit && (0, jsx_runtime_1.jsx)("span", Object.assign({ className: 'input-group-addon' }, { children: unit }))] }))) : (input);
|
|
114
162
|
});
|
|
115
|
-
NumberInput.propTypes = {
|
|
116
|
-
min: prop_types_1.default.number,
|
|
117
|
-
max: prop_types_1.default.number,
|
|
118
|
-
value: prop_types_1.default.number,
|
|
119
|
-
step: prop_types_1.default.number,
|
|
120
|
-
disabled: prop_types_1.default.bool,
|
|
121
|
-
onChange: prop_types_1.default.func,
|
|
122
|
-
onValueChanged: prop_types_1.default.func,
|
|
123
|
-
bsSize: prop_types_1.default.oneOf(['sm', 'lg', 'small', 'large']),
|
|
124
|
-
className: prop_types_1.default.string,
|
|
125
|
-
unit: prop_types_1.default.oneOfType([prop_types_1.default.string, prop_types_1.default.node]),
|
|
126
|
-
inputAddon: prop_types_1.default.string,
|
|
127
|
-
digitPrecision: prop_types_1.default.number,
|
|
128
|
-
placeholder: prop_types_1.default.string,
|
|
129
|
-
};
|
|
130
163
|
exports.default = NumberInput;
|
|
@@ -1,20 +1,8 @@
|
|
|
1
|
-
import { type PropsWithChildren
|
|
2
|
-
import type
|
|
3
|
-
|
|
4
|
-
import { type Trigger } from '../../values/Trigger';
|
|
5
|
-
export type OverlayTriggerProps = {
|
|
6
|
-
trigger?: Trigger;
|
|
7
|
-
delay?: number | delayProp;
|
|
8
|
-
placement: Placement;
|
|
9
|
-
show?: boolean;
|
|
10
|
-
defaultShow?: boolean;
|
|
11
|
-
onToggle?: VoidFunction;
|
|
12
|
-
overlay: ReactNode;
|
|
13
|
-
popperConfig?: object;
|
|
14
|
-
rootClose?: boolean;
|
|
15
|
-
};
|
|
1
|
+
import { type PropsWithChildren } from 'react';
|
|
2
|
+
import { type OverlayTriggerProps as BSOverlayTriggerProps } from 'react-bootstrap/OverlayTrigger';
|
|
3
|
+
export type OverlayTriggerProps = Omit<BSOverlayTriggerProps, 'children'>;
|
|
16
4
|
declare const OverlayTrigger: {
|
|
17
|
-
(props: PropsWithChildren<OverlayTriggerProps>): JSX.Element;
|
|
5
|
+
(props: PropsWithChildren<OverlayTriggerProps>): import("react/jsx-runtime").JSX.Element;
|
|
18
6
|
TRIGGER_CLICK: "click";
|
|
19
7
|
TRIGGER_HOVER: "hover";
|
|
20
8
|
TRIGGER_FOCUS: "focus";
|
|
@@ -5,12 +5,14 @@ const jsx_runtime_1 = require("react/jsx-runtime");
|
|
|
5
5
|
// @ts-ignore-next-line importsNotUsedAsValues
|
|
6
6
|
require("react");
|
|
7
7
|
const OverlayTrigger_1 = tslib_1.__importDefault(require("react-bootstrap/OverlayTrigger"));
|
|
8
|
+
const omit_1 = tslib_1.__importDefault(require("lodash/omit"));
|
|
8
9
|
const Placement_1 = require("../../values/Placement");
|
|
9
10
|
const Trigger_1 = require("../../values/Trigger");
|
|
10
11
|
const OverlayTrigger = (props) => {
|
|
11
|
-
const { rootClose
|
|
12
|
+
const usedProps = Object.assign({ rootClose: true }, (0, omit_1.default)(props, 'children'));
|
|
13
|
+
const { children } = props;
|
|
12
14
|
// @ts-ignore
|
|
13
|
-
return (0, jsx_runtime_1.jsx)(OverlayTrigger_1.default, Object.assign({
|
|
15
|
+
return (0, jsx_runtime_1.jsx)(OverlayTrigger_1.default, Object.assign({}, usedProps, { children: children }));
|
|
14
16
|
};
|
|
15
17
|
OverlayTrigger.TRIGGER_CLICK = Trigger_1.TRIGGER.CLICK;
|
|
16
18
|
OverlayTrigger.TRIGGER_HOVER = Trigger_1.TRIGGER.HOVER;
|
|
@@ -1,25 +1,53 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import type { ObjectValues } from '../../utils/ObjectValues';
|
|
3
|
+
export declare const PagerVariant: {
|
|
4
|
+
readonly VARIANT_FULL: "full";
|
|
5
|
+
readonly VARIANT_COMPACT: "compact";
|
|
6
|
+
};
|
|
7
|
+
export type PagerProps = {
|
|
8
|
+
/**
|
|
9
|
+
* The title or name of the section next/previous section.
|
|
10
|
+
*/
|
|
11
|
+
title: string | React.ReactNode;
|
|
12
|
+
/**
|
|
13
|
+
* The optional label for the full variant.
|
|
14
|
+
*/
|
|
15
|
+
label?: string | React.ReactNode;
|
|
16
|
+
/**
|
|
17
|
+
* Set right alignment for "previous" pager content to be aligned
|
|
18
|
+
* to the right side of the pager and the arrow on the left side.
|
|
19
|
+
* @default false
|
|
20
|
+
*/
|
|
21
|
+
alignRight?: boolean;
|
|
22
|
+
/**
|
|
23
|
+
* Define how large the component should be rendered.
|
|
24
|
+
*
|
|
25
|
+
* Possible values are:
|
|
26
|
+
* `Pager.VARIANT_FULL`, `Pager.VARIANT_COMPACT` or
|
|
27
|
+
* `full`, `compact`.
|
|
28
|
+
*
|
|
29
|
+
* @default `full`
|
|
30
|
+
*/
|
|
31
|
+
variant?: ObjectValues<typeof PagerVariant>;
|
|
32
|
+
/**
|
|
33
|
+
* Sets the pager disabled.
|
|
34
|
+
* @default false
|
|
35
|
+
*/
|
|
36
|
+
disabled?: boolean;
|
|
37
|
+
/**
|
|
38
|
+
* Callback function for when the component is clicked.
|
|
39
|
+
* @param event
|
|
40
|
+
* @returns
|
|
41
|
+
*/
|
|
42
|
+
onClick?: (event: React.MouseEvent<HTMLDivElement>) => void;
|
|
43
|
+
/**
|
|
44
|
+
* Additional classes for the wrapper element.
|
|
45
|
+
*/
|
|
46
|
+
className?: string;
|
|
47
|
+
};
|
|
48
|
+
declare const Pager: {
|
|
49
|
+
(props: PagerProps): import("react/jsx-runtime").JSX.Element;
|
|
50
|
+
VARIANT_FULL: "full";
|
|
51
|
+
VARIANT_COMPACT: "compact";
|
|
52
|
+
};
|
|
1
53
|
export default Pager;
|
|
2
|
-
declare function Pager(props: any): JSX.Element;
|
|
3
|
-
declare namespace Pager {
|
|
4
|
-
const VARIANT_FULL: string;
|
|
5
|
-
const VARIANT_COMPACT: string;
|
|
6
|
-
namespace defaultProps {
|
|
7
|
-
import variant = Pager.VARIANT_FULL;
|
|
8
|
-
export { variant };
|
|
9
|
-
export const alignRight: boolean;
|
|
10
|
-
export const disabled: boolean;
|
|
11
|
-
}
|
|
12
|
-
namespace propTypes {
|
|
13
|
-
export const title: PropTypes.Validator<NonNullable<NonNullable<PropTypes.ReactNodeLike>>>;
|
|
14
|
-
export const label: PropTypes.Requireable<NonNullable<PropTypes.ReactNodeLike>>;
|
|
15
|
-
const alignRight_1: PropTypes.Requireable<boolean>;
|
|
16
|
-
export { alignRight_1 as alignRight };
|
|
17
|
-
const variant_1: PropTypes.Requireable<string>;
|
|
18
|
-
export { variant_1 as variant };
|
|
19
|
-
const disabled_1: PropTypes.Requireable<boolean>;
|
|
20
|
-
export { disabled_1 as disabled };
|
|
21
|
-
export const onClick: PropTypes.Requireable<(...args: any[]) => any>;
|
|
22
|
-
export const className: PropTypes.Requireable<string>;
|
|
23
|
-
}
|
|
24
|
-
}
|
|
25
|
-
import PropTypes from "prop-types";
|
|
@@ -1,12 +1,16 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.PagerVariant = void 0;
|
|
3
4
|
const tslib_1 = require("tslib");
|
|
4
5
|
const jsx_runtime_1 = require("react/jsx-runtime");
|
|
5
|
-
const react_1 =
|
|
6
|
-
const prop_types_1 = tslib_1.__importDefault(require("prop-types"));
|
|
6
|
+
const react_1 = require("react");
|
|
7
7
|
const classnames_1 = tslib_1.__importDefault(require("classnames"));
|
|
8
|
-
|
|
9
|
-
|
|
8
|
+
exports.PagerVariant = {
|
|
9
|
+
VARIANT_FULL: 'full',
|
|
10
|
+
VARIANT_COMPACT: 'compact',
|
|
11
|
+
};
|
|
12
|
+
const Pager = (props) => {
|
|
13
|
+
const { title, label, alignRight = false, variant = exports.PagerVariant.VARIANT_FULL, disabled = false, onClick, className } = props, remainingProps = tslib_1.__rest(props, ["title", "label", "alignRight", "variant", "disabled", "onClick", "className"]);
|
|
10
14
|
const [isHover, setIsHover] = (0, react_1.useState)(false);
|
|
11
15
|
const handleEnter = () => !disabled && setIsHover(true);
|
|
12
16
|
const handleLeave = () => setIsHover(false);
|
|
@@ -26,20 +30,6 @@ const Pager = props => {
|
|
|
26
30
|
const titleClassesFull = (0, classnames_1.default)(titleClassesBase, alignRight && 'text-right', 'text-size-16 text-medium');
|
|
27
31
|
return ((0, jsx_runtime_1.jsxs)("div", Object.assign({}, remainingProps, { className: wrapperClassesFull, onMouseEnter: handleEnter, onMouseLeave: handleLeave, onClick: onClick }, { children: [(0, jsx_runtime_1.jsxs)("div", Object.assign({ className: `display-flex flex-1-1 flex-column ${alignRight ? 'align-items-end' : ''}` }, { children: [(0, jsx_runtime_1.jsx)("div", Object.assign({ className: 'text-color-gray line-height-16' }, { children: label })), (0, jsx_runtime_1.jsx)("div", Object.assign({ className: titleClassesFull }, { children: title }))] })), (0, jsx_runtime_1.jsx)("div", Object.assign({ className: 'text-size-12' }, { children: (0, jsx_runtime_1.jsx)("span", { className: iconClassesFull }) }))] })));
|
|
28
32
|
};
|
|
29
|
-
Pager.VARIANT_FULL =
|
|
30
|
-
Pager.VARIANT_COMPACT =
|
|
31
|
-
Pager.defaultProps = {
|
|
32
|
-
variant: Pager.VARIANT_FULL,
|
|
33
|
-
alignRight: false,
|
|
34
|
-
disabled: false,
|
|
35
|
-
};
|
|
36
|
-
Pager.propTypes = {
|
|
37
|
-
title: prop_types_1.default.oneOfType([prop_types_1.default.string, prop_types_1.default.node]).isRequired,
|
|
38
|
-
label: prop_types_1.default.oneOfType([prop_types_1.default.string, prop_types_1.default.node]),
|
|
39
|
-
alignRight: prop_types_1.default.bool,
|
|
40
|
-
variant: prop_types_1.default.oneOf([Pager.VARIANT_FULL, Pager.VARIANT_COMPACT, 'full', 'compact']),
|
|
41
|
-
disabled: prop_types_1.default.bool,
|
|
42
|
-
onClick: prop_types_1.default.func,
|
|
43
|
-
className: prop_types_1.default.string,
|
|
44
|
-
};
|
|
33
|
+
Pager.VARIANT_FULL = exports.PagerVariant.VARIANT_FULL;
|
|
34
|
+
Pager.VARIANT_COMPACT = exports.PagerVariant.VARIANT_COMPACT;
|
|
45
35
|
exports.default = Pager;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
export default RadioButton;
|
|
2
|
-
declare function RadioButton(props: any): JSX.Element;
|
|
2
|
+
declare function RadioButton(props: any): import("react/jsx-runtime").JSX.Element;
|
|
3
3
|
declare namespace RadioButton {
|
|
4
4
|
const ICON_LABEL_VERTICAL: string;
|
|
5
5
|
const ICON_LABEL_HORIZONTAL: string;
|