@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
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export function ChromeIcon(): JSX.Element;
|
|
2
|
-
export function FirefoxIcon(): JSX.Element;
|
|
1
|
+
export function ChromeIcon(): import("react/jsx-runtime").JSX.Element;
|
|
2
|
+
export function FirefoxIcon(): import("react/jsx-runtime").JSX.Element;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
export default BrowserWarning;
|
|
2
|
-
declare function BrowserWarning(props: any): JSX.Element;
|
|
2
|
+
declare function BrowserWarning(props: any): import("react/jsx-runtime").JSX.Element;
|
|
3
3
|
declare namespace BrowserWarning {
|
|
4
4
|
namespace defaultProps {
|
|
5
5
|
function onClose(): void;
|
|
@@ -2,7 +2,7 @@ export default CarouselCaption;
|
|
|
2
2
|
declare class CarouselCaption extends React.Component<any, any, any> {
|
|
3
3
|
constructor(props: any);
|
|
4
4
|
constructor(props: any, context: any);
|
|
5
|
-
render(): JSX.Element;
|
|
5
|
+
render(): import("react/jsx-runtime").JSX.Element;
|
|
6
6
|
}
|
|
7
7
|
declare namespace CarouselCaption {
|
|
8
8
|
namespace defaultProps {
|
|
@@ -10,7 +10,7 @@ declare class CarouselItem extends React.Component<any, any, any> {
|
|
|
10
10
|
componentDidUpdate(prevProps: any): void;
|
|
11
11
|
componentWillUnmount(): void;
|
|
12
12
|
startAnimation(): void;
|
|
13
|
-
render(): JSX.Element;
|
|
13
|
+
render(): import("react/jsx-runtime").JSX.Element;
|
|
14
14
|
}
|
|
15
15
|
declare namespace CarouselItem {
|
|
16
16
|
export { propTypes };
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
export default AreaChart;
|
|
2
|
-
declare function AreaChart(props: any): JSX.Element;
|
|
2
|
+
declare function AreaChart(props: any): import("react/jsx-runtime").JSX.Element;
|
|
3
3
|
declare namespace AreaChart {
|
|
4
4
|
namespace defaultProps {
|
|
5
5
|
const width: number;
|
|
@@ -12,6 +12,6 @@ declare namespace AreaChart {
|
|
|
12
12
|
const showYAxis: boolean;
|
|
13
13
|
const showGrid: boolean;
|
|
14
14
|
const brush: boolean;
|
|
15
|
-
const tooltip: JSX.Element;
|
|
15
|
+
const tooltip: import("react/jsx-runtime").JSX.Element;
|
|
16
16
|
}
|
|
17
17
|
}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
export default BarChart;
|
|
2
|
-
declare function BarChart(props: any): JSX.Element;
|
|
2
|
+
declare function BarChart(props: any): import("react/jsx-runtime").JSX.Element;
|
|
3
3
|
declare namespace BarChart {
|
|
4
4
|
namespace defaultProps {
|
|
5
5
|
const width: number;
|
|
@@ -12,7 +12,7 @@ declare namespace BarChart {
|
|
|
12
12
|
const showYAxis: boolean;
|
|
13
13
|
const useDataColors: boolean;
|
|
14
14
|
const brush: boolean;
|
|
15
|
-
const tooltip: JSX.Element;
|
|
15
|
+
const tooltip: import("react/jsx-runtime").JSX.Element;
|
|
16
16
|
const legend: boolean;
|
|
17
17
|
}
|
|
18
18
|
}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
export default LineChart;
|
|
2
|
-
declare function LineChart(props: any): JSX.Element;
|
|
2
|
+
declare function LineChart(props: any): import("react/jsx-runtime").JSX.Element;
|
|
3
3
|
declare namespace LineChart {
|
|
4
4
|
namespace defaultProps {
|
|
5
5
|
const width: number;
|
|
@@ -11,6 +11,6 @@ declare namespace LineChart {
|
|
|
11
11
|
const showYAxis: boolean;
|
|
12
12
|
const showGrid: boolean;
|
|
13
13
|
const brush: boolean;
|
|
14
|
-
const tooltip: JSX.Element;
|
|
14
|
+
const tooltip: import("react/jsx-runtime").JSX.Element;
|
|
15
15
|
}
|
|
16
16
|
}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
export default PieChart;
|
|
2
|
-
declare function PieChart(props: any): JSX.Element;
|
|
2
|
+
declare function PieChart(props: any): import("react/jsx-runtime").JSX.Element;
|
|
3
3
|
declare namespace PieChart {
|
|
4
4
|
namespace defaultProps {
|
|
5
5
|
const width: string;
|
|
@@ -14,7 +14,7 @@ declare namespace PieChart {
|
|
|
14
14
|
const labels: boolean;
|
|
15
15
|
const innerLabels: boolean;
|
|
16
16
|
const paddingAngle: number;
|
|
17
|
-
const legend: JSX.Element;
|
|
18
|
-
const tooltip: JSX.Element;
|
|
17
|
+
const legend: import("react/jsx-runtime").JSX.Element;
|
|
18
|
+
const tooltip: import("react/jsx-runtime").JSX.Element;
|
|
19
19
|
}
|
|
20
20
|
}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
export default RadialBarChart;
|
|
2
|
-
declare function RadialBarChart(props: any): JSX.Element;
|
|
2
|
+
declare function RadialBarChart(props: any): import("react/jsx-runtime").JSX.Element;
|
|
3
3
|
declare namespace RadialBarChart {
|
|
4
4
|
namespace defaultProps {
|
|
5
5
|
const width: number;
|
|
@@ -11,7 +11,7 @@ declare namespace RadialBarChart {
|
|
|
11
11
|
const innerRadius: string;
|
|
12
12
|
const outerRadius: string;
|
|
13
13
|
const clockWise: boolean;
|
|
14
|
-
const legend: JSX.Element;
|
|
14
|
+
const legend: import("react/jsx-runtime").JSX.Element;
|
|
15
15
|
const showBarLabel: boolean;
|
|
16
16
|
const cornerRadius: number;
|
|
17
17
|
const background: boolean;
|
|
@@ -1,57 +1,127 @@
|
|
|
1
|
+
import React, { type ReactNode, type PropsWithChildren } from 'react';
|
|
2
|
+
declare const ICON_LABEL_VERTICAL = "vertical";
|
|
3
|
+
declare const ICON_LABEL_HORIZONTAL = "horizontal";
|
|
4
|
+
export type CheckboxProps = {
|
|
5
|
+
/**
|
|
6
|
+
* Passed through as HTML attribute to the underlying input.
|
|
7
|
+
* Set an `id` or a `name` otherwise.
|
|
8
|
+
*/
|
|
9
|
+
id?: string;
|
|
10
|
+
/**
|
|
11
|
+
* Passed through as HTML attribute to the underlying input
|
|
12
|
+
*/
|
|
13
|
+
name?: string;
|
|
14
|
+
/**
|
|
15
|
+
* Define some text or component as a label.
|
|
16
|
+
*/
|
|
17
|
+
label?: string | ReactNode;
|
|
18
|
+
/**
|
|
19
|
+
* Define a custom icon for the checkbox by naming a rioglyph icon like `rioglyph-truck`.
|
|
20
|
+
*/
|
|
21
|
+
icon?: string;
|
|
22
|
+
/**
|
|
23
|
+
* The icon size in pixel.
|
|
24
|
+
*/
|
|
25
|
+
iconSize?: number;
|
|
26
|
+
/**
|
|
27
|
+
* The label position for a custom icon checkbox. Using this on a regular checkbox has no effect.
|
|
28
|
+
*
|
|
29
|
+
* Possible values are: `horizontal` or `vertical`.
|
|
30
|
+
*/
|
|
31
|
+
iconLabelPosition?: typeof ICON_LABEL_VERTICAL | typeof ICON_LABEL_HORIZONTAL;
|
|
32
|
+
/**
|
|
33
|
+
* Callback function that is invoked when the checkbox is checked or unchecked.
|
|
34
|
+
* @param event
|
|
35
|
+
* @returns
|
|
36
|
+
*/
|
|
37
|
+
onClick?: (event: React.MouseEvent<HTMLInputElement>) => void;
|
|
38
|
+
/**
|
|
39
|
+
* Callback function that is invoked when the checkbox value changes.
|
|
40
|
+
* This will also be invoked by a keyboard event.
|
|
41
|
+
* @param event
|
|
42
|
+
* @returns
|
|
43
|
+
*/
|
|
44
|
+
onChange?: (event: React.ChangeEvent<HTMLInputElement>) => void;
|
|
45
|
+
/**
|
|
46
|
+
* Defines whether the checkbox is checked or not (state cannot be changed).
|
|
47
|
+
*/
|
|
48
|
+
checked?: boolean;
|
|
49
|
+
/**
|
|
50
|
+
* Defines whether the checkbox is initially checked or not (state can be changed on click).
|
|
51
|
+
*/
|
|
52
|
+
defaultChecked?: boolean;
|
|
53
|
+
/**
|
|
54
|
+
* Defines whether the checkbox is disabled or not.
|
|
55
|
+
* @default false
|
|
56
|
+
*/
|
|
57
|
+
disabled?: boolean;
|
|
58
|
+
/**
|
|
59
|
+
* Allows for rendering a completely different layout with or without a checkbox tick.
|
|
60
|
+
* Note, when using the `custom` option, make sure to wrap the children with the class name
|
|
61
|
+
* `checkbox-text-wrapper`. For using the checkbox tick, use an element with class name
|
|
62
|
+
* `checkbox-text`.
|
|
63
|
+
* @example
|
|
64
|
+
* <div className='checkbox-text-wrapper display-flex justify-content-between'>
|
|
65
|
+
<div className='margin-right-15'>
|
|
66
|
+
<div className='text-medium text-size-16 text-color-darker'>Option 1</div>
|
|
67
|
+
<div className='text-color-dark'>This option is a first option</div>
|
|
68
|
+
</div>
|
|
69
|
+
<div className='checkbox-text' />
|
|
70
|
+
</div>
|
|
71
|
+
*/
|
|
72
|
+
custom?: boolean;
|
|
73
|
+
/**
|
|
74
|
+
* Defines whether the checkbox is required or not.
|
|
75
|
+
* @default false
|
|
76
|
+
*/
|
|
77
|
+
required?: boolean;
|
|
78
|
+
/**
|
|
79
|
+
* Defines if the checkbox is in an indeterminate state in regard to other checkboxes that may be in different
|
|
80
|
+
* selection state.
|
|
81
|
+
*
|
|
82
|
+
* @default false
|
|
83
|
+
*/
|
|
84
|
+
indeterminate?: boolean;
|
|
85
|
+
/**
|
|
86
|
+
* Defines whether the checkbox is applying an inline style. Use this in combination
|
|
87
|
+
* with other checkboxes.
|
|
88
|
+
* @default false
|
|
89
|
+
*/
|
|
90
|
+
inline?: boolean;
|
|
91
|
+
/**
|
|
92
|
+
* Defines whether the checkbox is on the right side.
|
|
93
|
+
* @default false
|
|
94
|
+
*/
|
|
95
|
+
right?: boolean;
|
|
96
|
+
/**
|
|
97
|
+
* Use "error" to change color of the checkbox.
|
|
98
|
+
* @default false
|
|
99
|
+
*/
|
|
100
|
+
error?: boolean;
|
|
101
|
+
/**
|
|
102
|
+
* Defines the size of the checkbox. Omitting this prop renders the Checkbox in normal size.
|
|
103
|
+
*
|
|
104
|
+
* Possible values are:
|
|
105
|
+
* `large`
|
|
106
|
+
*/
|
|
107
|
+
size?: 'large';
|
|
108
|
+
/**
|
|
109
|
+
* A React ref assigned to the input itself.
|
|
110
|
+
*/
|
|
111
|
+
inputRef?: React.RefObject<HTMLInputElement>;
|
|
112
|
+
/**
|
|
113
|
+
* Number of the index used for keyboard support.
|
|
114
|
+
* @default 0
|
|
115
|
+
*/
|
|
116
|
+
tabIndex?: number;
|
|
117
|
+
/**
|
|
118
|
+
* Additional classes to be set on the input field.
|
|
119
|
+
*/
|
|
120
|
+
className?: string;
|
|
121
|
+
};
|
|
122
|
+
declare const Checkbox: {
|
|
123
|
+
(props: PropsWithChildren<CheckboxProps>): import("react/jsx-runtime").JSX.Element;
|
|
124
|
+
ICON_LABEL_VERTICAL: "vertical";
|
|
125
|
+
ICON_LABEL_HORIZONTAL: "horizontal";
|
|
126
|
+
};
|
|
1
127
|
export default Checkbox;
|
|
2
|
-
declare function Checkbox(props: any): JSX.Element;
|
|
3
|
-
declare namespace Checkbox {
|
|
4
|
-
const ICON_LABEL_VERTICAL: string;
|
|
5
|
-
const ICON_LABEL_HORIZONTAL: string;
|
|
6
|
-
namespace defaultProps {
|
|
7
|
-
export const inline: boolean;
|
|
8
|
-
export const error: boolean;
|
|
9
|
-
export const disabled: boolean;
|
|
10
|
-
export const custom: boolean;
|
|
11
|
-
export const indeterminate: boolean;
|
|
12
|
-
export const required: boolean;
|
|
13
|
-
export const tabIndex: number;
|
|
14
|
-
export const icon: string;
|
|
15
|
-
export const iconSize: number;
|
|
16
|
-
import iconLabelPosition = Checkbox.ICON_LABEL_VERTICAL;
|
|
17
|
-
export { iconLabelPosition };
|
|
18
|
-
export function onClick(): void;
|
|
19
|
-
export function onChange(): void;
|
|
20
|
-
}
|
|
21
|
-
namespace propTypes {
|
|
22
|
-
export const id: PropTypes.Requireable<string>;
|
|
23
|
-
export const name: PropTypes.Requireable<string>;
|
|
24
|
-
export const label: PropTypes.Requireable<NonNullable<PropTypes.ReactNodeLike>>;
|
|
25
|
-
const icon_1: PropTypes.Requireable<string>;
|
|
26
|
-
export { icon_1 as icon };
|
|
27
|
-
const iconSize_1: PropTypes.Requireable<number>;
|
|
28
|
-
export { iconSize_1 as iconSize };
|
|
29
|
-
const iconLabelPosition_1: PropTypes.Requireable<string>;
|
|
30
|
-
export { iconLabelPosition_1 as iconLabelPosition };
|
|
31
|
-
const onClick_1: PropTypes.Validator<(...args: any[]) => any>;
|
|
32
|
-
export { onClick_1 as onClick };
|
|
33
|
-
const onChange_1: PropTypes.Requireable<(...args: any[]) => any>;
|
|
34
|
-
export { onChange_1 as onChange };
|
|
35
|
-
export const checked: PropTypes.Requireable<NonNullable<string | boolean | null | undefined>>;
|
|
36
|
-
export const defaultChecked: PropTypes.Requireable<boolean>;
|
|
37
|
-
const disabled_1: PropTypes.Requireable<boolean>;
|
|
38
|
-
export { disabled_1 as disabled };
|
|
39
|
-
const custom_1: PropTypes.Requireable<boolean>;
|
|
40
|
-
export { custom_1 as custom };
|
|
41
|
-
const required_1: PropTypes.Requireable<boolean>;
|
|
42
|
-
export { required_1 as required };
|
|
43
|
-
const indeterminate_1: PropTypes.Requireable<boolean>;
|
|
44
|
-
export { indeterminate_1 as indeterminate };
|
|
45
|
-
export const className: PropTypes.Requireable<string>;
|
|
46
|
-
const inline_1: PropTypes.Requireable<boolean>;
|
|
47
|
-
export { inline_1 as inline };
|
|
48
|
-
export const right: PropTypes.Requireable<boolean>;
|
|
49
|
-
const error_1: PropTypes.Requireable<boolean>;
|
|
50
|
-
export { error_1 as error };
|
|
51
|
-
export const size: PropTypes.Requireable<string>;
|
|
52
|
-
export const inputRef: PropTypes.Requireable<(...args: any[]) => any>;
|
|
53
|
-
const tabIndex_1: PropTypes.Requireable<number>;
|
|
54
|
-
export { tabIndex_1 as tabIndex };
|
|
55
|
-
}
|
|
56
|
-
}
|
|
57
|
-
import PropTypes from "prop-types";
|
|
@@ -2,34 +2,30 @@
|
|
|
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
|
-
const
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
return ((0, jsx_runtime_1.jsxs)("span", Object.assign({ className: `checkbox-icon label-${iconLabelPosition}` }, { children: [(0, jsx_runtime_1.jsx)("span", { className: `rioglyph ${icon}`, style: iconStyles }), (0, jsx_runtime_1.jsx)("span", Object.assign({ className: 'checkbox-label' }, { children: text }))] })));
|
|
17
|
-
};
|
|
18
|
-
const Checkbox = props => {
|
|
19
|
-
const { checked, children, className, custom, defaultChecked, disabled, error, icon, iconLabelPosition, iconSize, id = props.name, indeterminate, inline, inputRef, label, name, onChange, onClick, required, right, size, tabIndex } = props, remainingProps = tslib_1.__rest(props, ["checked", "children", "className", "custom", "defaultChecked", "disabled", "error", "icon", "iconLabelPosition", "iconSize", "id", "indeterminate", "inline", "inputRef", "label", "name", "onChange", "onClick", "required", "right", "size", "tabIndex"]);
|
|
20
|
-
const labelRef = (0, react_1.useRef)();
|
|
21
|
-
const getInput = () => labelRef.current.firstChild;
|
|
7
|
+
const noop_1 = tslib_1.__importDefault(require("lodash/fp/noop"));
|
|
8
|
+
const CheckboxIcon_1 = require("./CheckboxIcon");
|
|
9
|
+
const DEFAULT_ICON_SIZE = 16;
|
|
10
|
+
const ICON_LABEL_VERTICAL = 'vertical';
|
|
11
|
+
const ICON_LABEL_HORIZONTAL = 'horizontal';
|
|
12
|
+
const Checkbox = (props) => {
|
|
13
|
+
const { checked, children, className, custom = false, defaultChecked, disabled = false, error = false, icon = '', iconLabelPosition = ICON_LABEL_VERTICAL, iconSize = DEFAULT_ICON_SIZE, id = props.name, indeterminate = false, inline = false, inputRef, label, name, onChange = noop_1.default, onClick = noop_1.default, required = false, right, size, tabIndex = 0 } = props, remainingProps = tslib_1.__rest(props, ["checked", "children", "className", "custom", "defaultChecked", "disabled", "error", "icon", "iconLabelPosition", "iconSize", "id", "indeterminate", "inline", "inputRef", "label", "name", "onChange", "onClick", "required", "right", "size", "tabIndex"]);
|
|
14
|
+
const labelRef = (0, react_1.useRef)(null);
|
|
22
15
|
(0, react_1.useEffect)(() => {
|
|
23
|
-
|
|
24
|
-
input
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
16
|
+
var _a;
|
|
17
|
+
const input = (_a = labelRef.current) === null || _a === void 0 ? void 0 : _a.firstChild;
|
|
18
|
+
if (input) {
|
|
19
|
+
input.indeterminate = indeterminate;
|
|
20
|
+
}
|
|
21
|
+
}, [indeterminate, labelRef.current]);
|
|
22
|
+
const handleToggleKeyDown = (event) => {
|
|
23
|
+
switch (event.key) {
|
|
24
|
+
case ' ':
|
|
29
25
|
// toggle on space
|
|
30
26
|
toggle(event);
|
|
31
27
|
break;
|
|
32
|
-
case
|
|
28
|
+
case 'Enter':
|
|
33
29
|
// open on enter
|
|
34
30
|
toggle(event);
|
|
35
31
|
break;
|
|
@@ -37,12 +33,13 @@ const Checkbox = props => {
|
|
|
37
33
|
break;
|
|
38
34
|
}
|
|
39
35
|
};
|
|
40
|
-
const toggle = event => {
|
|
36
|
+
const toggle = (event) => {
|
|
37
|
+
var _a;
|
|
41
38
|
event.preventDefault();
|
|
42
39
|
if (disabled) {
|
|
43
40
|
return;
|
|
44
41
|
}
|
|
45
|
-
const input =
|
|
42
|
+
const input = (_a = labelRef.current) === null || _a === void 0 ? void 0 : _a.firstChild;
|
|
46
43
|
if (input.indeterminate) {
|
|
47
44
|
input.indeterminate = false;
|
|
48
45
|
}
|
|
@@ -56,45 +53,8 @@ const Checkbox = props => {
|
|
|
56
53
|
const renderCustomIcon = !!icon;
|
|
57
54
|
const renderCustomContent = custom && children;
|
|
58
55
|
const renderDefault = !icon && !custom;
|
|
59
|
-
return ((0, jsx_runtime_1.jsxs)("label", Object.assign({}, remainingProps, { className: labelClassnames, tabIndex: tabIndex, htmlFor: id, onKeyDown: handleToggleKeyDown, ref: labelRef }, { children: [(0, jsx_runtime_1.jsx)("input", { id: id, name: name, type: 'checkbox', checked: checked, required: required, defaultChecked: defaultChecked, disabled: disabled, className: inputClassnames, onClick: onClick, onChange: onChange, ref: inputRef }), renderCustomIcon && ((0, jsx_runtime_1.jsx)(CheckboxIcon, { icon: icon, iconSize: iconSize, iconLabelPosition: iconLabelPosition, text: text })), renderDefault && ((0, jsx_runtime_1.jsx)("span", Object.assign({ className: 'checkbox-text' }, { children: (0, jsx_runtime_1.jsx)("span", { children: text }) }))), renderCustomContent && children] })));
|
|
60
|
-
};
|
|
61
|
-
Checkbox.ICON_LABEL_VERTICAL = 'vertical';
|
|
62
|
-
Checkbox.ICON_LABEL_HORIZONTAL = 'horizontal';
|
|
63
|
-
Checkbox.defaultProps = {
|
|
64
|
-
inline: false,
|
|
65
|
-
error: false,
|
|
66
|
-
disabled: false,
|
|
67
|
-
custom: false,
|
|
68
|
-
indeterminate: false,
|
|
69
|
-
required: false,
|
|
70
|
-
tabIndex: 0,
|
|
71
|
-
icon: '',
|
|
72
|
-
iconSize: 16,
|
|
73
|
-
iconLabelPosition: Checkbox.ICON_LABEL_VERTICAL,
|
|
74
|
-
onClick: () => { },
|
|
75
|
-
onChange: () => { },
|
|
76
|
-
};
|
|
77
|
-
Checkbox.propTypes = {
|
|
78
|
-
id: prop_types_1.default.string,
|
|
79
|
-
name: prop_types_1.default.string,
|
|
80
|
-
label: prop_types_1.default.oneOfType([prop_types_1.default.string, prop_types_1.default.node]),
|
|
81
|
-
icon: prop_types_1.default.string,
|
|
82
|
-
iconSize: prop_types_1.default.number,
|
|
83
|
-
iconLabelPosition: prop_types_1.default.oneOf([Checkbox.ICON_LABEL_VERTICAL, Checkbox.ICON_LABEL_HORIZONTAL]),
|
|
84
|
-
onClick: prop_types_1.default.func.isRequired,
|
|
85
|
-
onChange: prop_types_1.default.func,
|
|
86
|
-
checked: prop_types_1.default.oneOfType([prop_types_1.default.bool, prop_types_1.default.string]),
|
|
87
|
-
defaultChecked: prop_types_1.default.bool,
|
|
88
|
-
disabled: prop_types_1.default.bool,
|
|
89
|
-
custom: prop_types_1.default.bool,
|
|
90
|
-
required: prop_types_1.default.bool,
|
|
91
|
-
indeterminate: prop_types_1.default.bool,
|
|
92
|
-
className: prop_types_1.default.string,
|
|
93
|
-
inline: prop_types_1.default.bool,
|
|
94
|
-
right: prop_types_1.default.bool,
|
|
95
|
-
error: prop_types_1.default.bool,
|
|
96
|
-
size: prop_types_1.default.string,
|
|
97
|
-
inputRef: prop_types_1.default.func,
|
|
98
|
-
tabIndex: prop_types_1.default.number,
|
|
56
|
+
return ((0, jsx_runtime_1.jsxs)("label", Object.assign({}, remainingProps, { className: labelClassnames, tabIndex: tabIndex, htmlFor: id, onKeyDown: handleToggleKeyDown, ref: labelRef }, { children: [(0, jsx_runtime_1.jsx)("input", { id: id, name: name, type: 'checkbox', checked: checked, required: required, defaultChecked: defaultChecked, disabled: disabled, className: inputClassnames, onClick: onClick, onChange: onChange, ref: inputRef }), renderCustomIcon && ((0, jsx_runtime_1.jsx)(CheckboxIcon_1.CheckboxIcon, { icon: icon, iconSize: iconSize, iconLabelPosition: iconLabelPosition, text: text })), renderDefault && ((0, jsx_runtime_1.jsx)("span", Object.assign({ className: 'checkbox-text' }, { children: (0, jsx_runtime_1.jsx)("span", { children: text }) }))), renderCustomContent && children] })));
|
|
99
57
|
};
|
|
58
|
+
Checkbox.ICON_LABEL_VERTICAL = ICON_LABEL_VERTICAL;
|
|
59
|
+
Checkbox.ICON_LABEL_HORIZONTAL = ICON_LABEL_HORIZONTAL;
|
|
100
60
|
exports.default = Checkbox;
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import type { ReactNode } from 'react';
|
|
2
|
+
type CheckboxIconProps = {
|
|
3
|
+
icon: string;
|
|
4
|
+
iconSize: number;
|
|
5
|
+
iconLabelPosition: 'vertical' | 'horizontal';
|
|
6
|
+
text?: string | ReactNode;
|
|
7
|
+
};
|
|
8
|
+
export declare const CheckboxIcon: (props: CheckboxIconProps) => import("react/jsx-runtime").JSX.Element;
|
|
9
|
+
export {};
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.CheckboxIcon = void 0;
|
|
4
|
+
const jsx_runtime_1 = require("react/jsx-runtime");
|
|
5
|
+
const CheckboxIcon = (props) => {
|
|
6
|
+
const { icon, iconSize, iconLabelPosition, text } = props;
|
|
7
|
+
const iconStyles = {
|
|
8
|
+
width: `${iconSize}px`,
|
|
9
|
+
height: `${iconSize}px`,
|
|
10
|
+
fontSize: `${iconSize}px`,
|
|
11
|
+
lineHeight: `${iconSize}px`,
|
|
12
|
+
};
|
|
13
|
+
return ((0, jsx_runtime_1.jsxs)("span", Object.assign({ className: `checkbox-icon label-${iconLabelPosition}` }, { children: [(0, jsx_runtime_1.jsx)("span", { className: `rioglyph ${icon}`, style: iconStyles }), (0, jsx_runtime_1.jsx)("span", Object.assign({ className: 'checkbox-label' }, { children: text }))] })));
|
|
14
|
+
};
|
|
15
|
+
exports.CheckboxIcon = CheckboxIcon;
|
|
@@ -1,59 +1,96 @@
|
|
|
1
|
-
|
|
2
|
-
export const
|
|
1
|
+
import React from 'react';
|
|
2
|
+
export declare const DEFAULT_TYPE = "text";
|
|
3
|
+
export declare const SUPPORTED_TYPES: string[];
|
|
4
|
+
export type ClearableInputProps = {
|
|
5
|
+
/**
|
|
6
|
+
* The translated text that shall be shown when the input is empty.
|
|
7
|
+
*/
|
|
8
|
+
placeholder?: string | React.ReactNode;
|
|
9
|
+
/**
|
|
10
|
+
* Defines the type of the input itself.
|
|
11
|
+
*
|
|
12
|
+
* There are three types supported:
|
|
13
|
+
* `text`, `email`, `password`.
|
|
14
|
+
*/
|
|
15
|
+
type?: 'text' | 'password' | 'email';
|
|
16
|
+
/**
|
|
17
|
+
* Initial value of the ClearableInput. Pass this prop if you want to use this
|
|
18
|
+
* component as an uncontrolled component.
|
|
19
|
+
*/
|
|
20
|
+
defaultValue?: string;
|
|
21
|
+
/**
|
|
22
|
+
* Value of the ClearableInput. Pass this prop if you want to use this
|
|
23
|
+
* component as a controlled component.
|
|
24
|
+
*/
|
|
25
|
+
value?: string;
|
|
26
|
+
/**
|
|
27
|
+
* Defines the maximum amount of characters that can be entered.
|
|
28
|
+
*/
|
|
29
|
+
maxLength?: number;
|
|
30
|
+
/**
|
|
31
|
+
* Defines the tab index to be added to the input element.
|
|
32
|
+
*/
|
|
33
|
+
tabIndex?: number;
|
|
34
|
+
/**
|
|
35
|
+
* Defined whether or not the input has the error styling.
|
|
36
|
+
*/
|
|
37
|
+
hasError?: boolean;
|
|
38
|
+
/**
|
|
39
|
+
* The callback ref for the underlying input. Alternatively, use can use a forward ref.
|
|
40
|
+
*/
|
|
41
|
+
inputRef?: React.RefObject<HTMLInputElement>;
|
|
42
|
+
/**
|
|
43
|
+
* Sets autocomplete value for autosuggest forms.
|
|
44
|
+
*/
|
|
45
|
+
autoComplete?: string;
|
|
46
|
+
/**
|
|
47
|
+
* Callback function for when the value changes. Receives new value as an argument.
|
|
48
|
+
* @param newValue
|
|
49
|
+
* @param event
|
|
50
|
+
* @returns
|
|
51
|
+
*/
|
|
52
|
+
onChange?: (newValue: string, event: React.ChangeEvent<HTMLInputElement> | React.MouseEvent<HTMLSpanElement>) => void;
|
|
53
|
+
/**
|
|
54
|
+
* Callback function which gets triggered when the input looses the focus.
|
|
55
|
+
* @param event
|
|
56
|
+
* @returns
|
|
57
|
+
*/
|
|
58
|
+
onBlur?: (event: React.FocusEvent<HTMLInputElement>) => void;
|
|
59
|
+
/**
|
|
60
|
+
* Callback function which gets triggered when the input gains the focus.
|
|
61
|
+
* @param event
|
|
62
|
+
* @returns
|
|
63
|
+
*/
|
|
64
|
+
onFocus?: (event: React.MouseEvent<HTMLSpanElement>) => void;
|
|
65
|
+
/**
|
|
66
|
+
* Callback function for when the value is cleared via the clear button.
|
|
67
|
+
* @param event
|
|
68
|
+
* @returns
|
|
69
|
+
*/
|
|
70
|
+
onClear?: (event: React.MouseEvent<HTMLSpanElement>) => void;
|
|
71
|
+
/**
|
|
72
|
+
* Callback function for every key pressed including `Enter` key.
|
|
73
|
+
* @param event
|
|
74
|
+
* @returns
|
|
75
|
+
*/
|
|
76
|
+
onKeyPress?: (event: React.KeyboardEvent<HTMLInputElement>) => void;
|
|
77
|
+
/**
|
|
78
|
+
* Additional classes to be set on the input element.
|
|
79
|
+
*/
|
|
80
|
+
inputClassName?: string;
|
|
81
|
+
/**
|
|
82
|
+
* Additional classes to be set on the wrapper element.
|
|
83
|
+
*/
|
|
84
|
+
className?: string;
|
|
85
|
+
};
|
|
86
|
+
type ChildrenProp = {
|
|
87
|
+
/**
|
|
88
|
+
* Providing a function enables the render props approach. The function gets the input props
|
|
89
|
+
* passed and is responsible for rendering the custom `input` component.
|
|
90
|
+
* @param props
|
|
91
|
+
* @returns
|
|
92
|
+
*/
|
|
93
|
+
children?: (props: React.InputHTMLAttributes<HTMLInputElement>) => React.ReactNode;
|
|
94
|
+
};
|
|
95
|
+
declare const ClearableInput: React.ForwardRefExoticComponent<ClearableInputProps & ChildrenProp & React.RefAttributes<HTMLInputElement>>;
|
|
3
96
|
export default ClearableInput;
|
|
4
|
-
declare class ClearableInput extends React.Component<any, any, any> {
|
|
5
|
-
constructor(props: any);
|
|
6
|
-
state: {
|
|
7
|
-
inputValue: any;
|
|
8
|
-
showClear: boolean;
|
|
9
|
-
isControlled: boolean;
|
|
10
|
-
};
|
|
11
|
-
handleChange(event: any): void;
|
|
12
|
-
handleKeyPress(event: any): void;
|
|
13
|
-
clearInputValue(event: any): void;
|
|
14
|
-
UNSAFE_componentWillReceiveProps(nextProps: any): void;
|
|
15
|
-
hasValue(value: any): boolean;
|
|
16
|
-
changeInternalValue(newValue?: string): void;
|
|
17
|
-
render(): JSX.Element;
|
|
18
|
-
}
|
|
19
|
-
declare namespace ClearableInput {
|
|
20
|
-
namespace defaultProps {
|
|
21
|
-
export { DEFAULT_TYPE as type };
|
|
22
|
-
export const className: string;
|
|
23
|
-
export const inputClassName: string;
|
|
24
|
-
export const hasError: boolean;
|
|
25
|
-
export const tabIndex: number;
|
|
26
|
-
export function onChange(): void;
|
|
27
|
-
export function onBlur(): void;
|
|
28
|
-
export function onFocus(): void;
|
|
29
|
-
export function onKeyPress(): void;
|
|
30
|
-
}
|
|
31
|
-
namespace propTypes {
|
|
32
|
-
const className_1: PropTypes.Requireable<string>;
|
|
33
|
-
export { className_1 as className };
|
|
34
|
-
const inputClassName_1: PropTypes.Requireable<string>;
|
|
35
|
-
export { inputClassName_1 as inputClassName };
|
|
36
|
-
const onChange_1: PropTypes.Requireable<(...args: any[]) => any>;
|
|
37
|
-
export { onChange_1 as onChange };
|
|
38
|
-
const onBlur_1: PropTypes.Requireable<(...args: any[]) => any>;
|
|
39
|
-
export { onBlur_1 as onBlur };
|
|
40
|
-
const onFocus_1: PropTypes.Requireable<(...args: any[]) => any>;
|
|
41
|
-
export { onFocus_1 as onFocus };
|
|
42
|
-
export const onClear: PropTypes.Requireable<(...args: any[]) => any>;
|
|
43
|
-
const onKeyPress_1: PropTypes.Requireable<(...args: any[]) => any>;
|
|
44
|
-
export { onKeyPress_1 as onKeyPress };
|
|
45
|
-
export const placeholder: PropTypes.Requireable<NonNullable<PropTypes.ReactNodeLike>>;
|
|
46
|
-
export const type: PropTypes.Requireable<string>;
|
|
47
|
-
export const defaultValue: PropTypes.Requireable<NonNullable<PropTypes.ReactNodeLike>>;
|
|
48
|
-
export const value: PropTypes.Requireable<NonNullable<PropTypes.ReactNodeLike>>;
|
|
49
|
-
export const maxLength: PropTypes.Requireable<number>;
|
|
50
|
-
const tabIndex_1: PropTypes.Requireable<number>;
|
|
51
|
-
export { tabIndex_1 as tabIndex };
|
|
52
|
-
const hasError_1: PropTypes.Requireable<boolean>;
|
|
53
|
-
export { hasError_1 as hasError };
|
|
54
|
-
export const inputRef: PropTypes.Requireable<object>;
|
|
55
|
-
export const autoComplete: PropTypes.Requireable<string>;
|
|
56
|
-
}
|
|
57
|
-
}
|
|
58
|
-
import React from "react";
|
|
59
|
-
import PropTypes from "prop-types";
|