@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
|
@@ -3,119 +3,69 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
3
3
|
exports.SUPPORTED_TYPES = exports.DEFAULT_TYPE = 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 omit_1 = tslib_1.__importDefault(require("lodash/fp/omit"));
|
|
9
8
|
const isNil_1 = tslib_1.__importDefault(require("lodash/fp/isNil"));
|
|
10
9
|
const isEmpty_1 = tslib_1.__importDefault(require("lodash/fp/isEmpty"));
|
|
11
10
|
const classnames_1 = tslib_1.__importDefault(require("classnames"));
|
|
11
|
+
const isFunction_1 = tslib_1.__importDefault(require("lodash/fp/isFunction"));
|
|
12
|
+
const noop_1 = tslib_1.__importDefault(require("lodash/fp/noop"));
|
|
13
|
+
const usePrevious_1 = tslib_1.__importDefault(require("../../hooks/usePrevious"));
|
|
12
14
|
exports.DEFAULT_TYPE = 'text';
|
|
13
15
|
exports.SUPPORTED_TYPES = ['text', 'password', 'email'];
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
this
|
|
25
|
-
|
|
26
|
-
|
|
16
|
+
const hasValue = (value) => !(0, isEmpty_1.default)(`${value}`);
|
|
17
|
+
const ClearableInput = (0, react_1.forwardRef)((props, ref) => {
|
|
18
|
+
const { type = exports.DEFAULT_TYPE, defaultValue, value, maxLength, tabIndex = 0, hasError = false, inputRef, autoComplete, onChange = noop_1.default, onBlur = noop_1.default, onFocus = noop_1.default, onClear = noop_1.default, onKeyPress = noop_1.default, inputClassName = '', className = '', children } = props, remainingProps = tslib_1.__rest(props, ["type", "defaultValue", "value", "maxLength", "tabIndex", "hasError", "inputRef", "autoComplete", "onChange", "onBlur", "onFocus", "onClear", "onKeyPress", "inputClassName", "className", "children"]);
|
|
19
|
+
const initialValue = value || defaultValue || '';
|
|
20
|
+
const [inputValue, setInputValue] = (0, react_1.useState)(initialValue);
|
|
21
|
+
const [showClear, setShowClear] = (0, react_1.useState)(hasValue(initialValue));
|
|
22
|
+
const isControlled = !(0, isNil_1.default)(value);
|
|
23
|
+
// Handles new input value and saves it in the local state.
|
|
24
|
+
// The value stored in the state is used for rendering.
|
|
25
|
+
const changeInternalValue = (newValue = '') => {
|
|
26
|
+
// this is there to prevent that onChange and UNSAFE_componentWillReceiveProps set state at the same time
|
|
27
|
+
if (inputValue === newValue) {
|
|
28
|
+
return;
|
|
29
|
+
}
|
|
30
|
+
setInputValue(newValue);
|
|
31
|
+
setShowClear(hasValue(newValue));
|
|
32
|
+
};
|
|
33
|
+
// important for when used as a controlled component and value changes from the outside.
|
|
34
|
+
const previousValue = (0, usePrevious_1.default)(value);
|
|
35
|
+
if (previousValue !== value) {
|
|
36
|
+
changeInternalValue(value);
|
|
27
37
|
}
|
|
28
38
|
// only gets triggered on user interaction.
|
|
29
|
-
handleChange(event) {
|
|
30
|
-
const
|
|
31
|
-
const { onChange } = this.props;
|
|
32
|
-
const value = event.target.value;
|
|
39
|
+
const handleChange = (event) => {
|
|
40
|
+
const newValue = event.target.value;
|
|
33
41
|
if (isControlled) {
|
|
34
|
-
onChange(
|
|
42
|
+
onChange(newValue, event);
|
|
35
43
|
}
|
|
36
44
|
else {
|
|
37
|
-
|
|
38
|
-
onChange(
|
|
45
|
+
changeInternalValue(newValue);
|
|
46
|
+
onChange(newValue, event);
|
|
39
47
|
}
|
|
40
|
-
}
|
|
48
|
+
};
|
|
41
49
|
// Will be triggered on every key press but also when pressing 'Enter' for example
|
|
42
|
-
handleKeyPress(event) {
|
|
43
|
-
const { onKeyPress } = this.props;
|
|
50
|
+
const handleKeyPress = (event) => {
|
|
44
51
|
onKeyPress(event);
|
|
45
|
-
}
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
UNSAFE_componentWillReceiveProps(nextProps) {
|
|
49
|
-
this.changeInternalValue(nextProps.value);
|
|
50
|
-
}
|
|
51
|
-
hasValue(value) {
|
|
52
|
-
return !(0, isEmpty_1.default)(`${value}`);
|
|
53
|
-
}
|
|
54
|
-
// handles new input value and saves it in the state.
|
|
55
|
-
// the value stored in the state is used for rendering.
|
|
56
|
-
changeInternalValue(newValue = '') {
|
|
57
|
-
// this is there to prevent that onChange and UNSAFE_componentWillReceiveProps set state at the same time
|
|
58
|
-
if (this.state.inputValue === newValue) {
|
|
59
|
-
return;
|
|
60
|
-
}
|
|
61
|
-
this.setState(() => ({
|
|
62
|
-
inputValue: newValue,
|
|
63
|
-
showClear: this.hasValue(newValue),
|
|
64
|
-
}));
|
|
65
|
-
}
|
|
66
|
-
clearInputValue(event) {
|
|
67
|
-
const { onChange, onClear } = this.props;
|
|
68
|
-
this.changeInternalValue('', event);
|
|
52
|
+
};
|
|
53
|
+
const clearInputValue = (event) => {
|
|
54
|
+
changeInternalValue('');
|
|
69
55
|
onChange('', event);
|
|
70
56
|
if (onClear) {
|
|
71
57
|
onClear(event);
|
|
72
58
|
}
|
|
73
|
-
}
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
const inputType = exports.SUPPORTED_TYPES.indexOf(convertedType) !== -1 ? convertedType : exports.DEFAULT_TYPE;
|
|
86
|
-
const inputProps = Object.assign(Object.assign({}, filteredProps(customProps)), { className: inputClassNames, type: inputType, value: inputValue, onChange: this.handleChange, onKeyPress: this.handleKeyPress,
|
|
87
|
-
// ref={this.props.innerRef} is the equivalent of forwardRef
|
|
88
|
-
ref: inputRef || this.props.innerRef, autoComplete });
|
|
89
|
-
return ((0, jsx_runtime_1.jsxs)("div", Object.assign({ className: classes }, { children: [children ? children(inputProps) : (0, jsx_runtime_1.jsx)("input", Object.assign({}, inputProps)), (0, jsx_runtime_1.jsx)("span", Object.assign({ className: clearButtonClassNames, onClick: this.clearInputValue }, { children: (0, jsx_runtime_1.jsx)("span", { className: 'clearButtonIcon rioglyph rioglyph-remove-sign' }) }))] })));
|
|
90
|
-
}
|
|
91
|
-
}
|
|
92
|
-
ClearableInput.defaultProps = {
|
|
93
|
-
type: exports.DEFAULT_TYPE,
|
|
94
|
-
className: '',
|
|
95
|
-
inputClassName: '',
|
|
96
|
-
hasError: false,
|
|
97
|
-
tabIndex: 0,
|
|
98
|
-
onChange: () => { },
|
|
99
|
-
onBlur: () => { },
|
|
100
|
-
onFocus: () => { },
|
|
101
|
-
onKeyPress: () => { },
|
|
102
|
-
};
|
|
103
|
-
ClearableInput.propTypes = {
|
|
104
|
-
className: prop_types_1.default.string,
|
|
105
|
-
inputClassName: prop_types_1.default.string,
|
|
106
|
-
onChange: prop_types_1.default.func,
|
|
107
|
-
onBlur: prop_types_1.default.func,
|
|
108
|
-
onFocus: prop_types_1.default.func,
|
|
109
|
-
onClear: prop_types_1.default.func,
|
|
110
|
-
onKeyPress: prop_types_1.default.func,
|
|
111
|
-
placeholder: prop_types_1.default.oneOfType([prop_types_1.default.string, prop_types_1.default.node]),
|
|
112
|
-
type: prop_types_1.default.oneOf(exports.SUPPORTED_TYPES),
|
|
113
|
-
defaultValue: prop_types_1.default.oneOfType([prop_types_1.default.string, prop_types_1.default.node]),
|
|
114
|
-
value: prop_types_1.default.oneOfType([prop_types_1.default.string, prop_types_1.default.node]),
|
|
115
|
-
maxLength: prop_types_1.default.number,
|
|
116
|
-
tabIndex: prop_types_1.default.number,
|
|
117
|
-
hasError: prop_types_1.default.bool,
|
|
118
|
-
inputRef: prop_types_1.default.oneOfType([prop_types_1.default.func, prop_types_1.default.object]),
|
|
119
|
-
autoComplete: prop_types_1.default.string,
|
|
120
|
-
};
|
|
59
|
+
};
|
|
60
|
+
const classes = (0, classnames_1.default)('ClearableInput', 'input-group', hasError && 'has-error', className && className);
|
|
61
|
+
const inputClassNames = (0, classnames_1.default)('form-control', inputClassName, showClear && 'withClearButton');
|
|
62
|
+
const clearButtonClassNames = (0, classnames_1.default)('clearButton', !showClear && 'hide');
|
|
63
|
+
const convertedType = type === null || type === void 0 ? void 0 : type.toLowerCase();
|
|
64
|
+
const inputType = exports.SUPPORTED_TYPES.indexOf(convertedType) !== -1 ? convertedType : exports.DEFAULT_TYPE;
|
|
65
|
+
const inputProps = Object.assign(Object.assign({}, (0, omit_1.default)(['value', 'defaultValue', 'onClear'])(remainingProps)), { className: inputClassNames, autoComplete, type: inputType, value: inputValue, onChange: handleChange, onKeyPress: handleKeyPress, onBlur,
|
|
66
|
+
onFocus,
|
|
67
|
+
maxLength,
|
|
68
|
+
tabIndex, ref: inputRef || ref });
|
|
69
|
+
return ((0, jsx_runtime_1.jsxs)("div", Object.assign({ className: classes }, { children: [children && (0, isFunction_1.default)(children) ? children(inputProps) : (0, jsx_runtime_1.jsx)("input", Object.assign({}, inputProps)), (0, jsx_runtime_1.jsx)("span", Object.assign({ className: clearButtonClassNames, onClick: clearInputValue }, { children: (0, jsx_runtime_1.jsx)("span", { className: 'clearButtonIcon rioglyph rioglyph-remove-sign' }) }))] })));
|
|
70
|
+
});
|
|
121
71
|
exports.default = ClearableInput;
|
|
@@ -10,7 +10,7 @@ declare class Collapse extends React.Component<any, any, any> {
|
|
|
10
10
|
componentDidMount(): void;
|
|
11
11
|
UNSAFE_componentWillReceiveProps(nextProps: any): void;
|
|
12
12
|
getFullHeight(element: any): any;
|
|
13
|
-
render(): JSX.Element;
|
|
13
|
+
render(): import("react/jsx-runtime").JSX.Element;
|
|
14
14
|
refTransition: Transition<HTMLElement | undefined> | null | undefined;
|
|
15
15
|
}
|
|
16
16
|
declare namespace Collapse {
|
|
@@ -1,33 +1,55 @@
|
|
|
1
|
+
import { type PropsWithChildren } from 'react';
|
|
2
|
+
declare const RECT = "rect";
|
|
3
|
+
declare const CIRCLE = "circle";
|
|
4
|
+
export type ContentLoaderProps = {
|
|
5
|
+
/**
|
|
6
|
+
* Sets the animation speed.
|
|
7
|
+
* @default 2
|
|
8
|
+
*/
|
|
9
|
+
speed?: number;
|
|
10
|
+
/**
|
|
11
|
+
* Sets the height of the svg element.
|
|
12
|
+
* @default 14
|
|
13
|
+
*/
|
|
14
|
+
height?: string | number;
|
|
15
|
+
/**
|
|
16
|
+
* Sets the width of the svg element.
|
|
17
|
+
* @default 100%
|
|
18
|
+
*/
|
|
19
|
+
width?: string | number;
|
|
20
|
+
/**
|
|
21
|
+
* Sets the radius of the svg element. Only relevant for circle elements.
|
|
22
|
+
* @default 16
|
|
23
|
+
*/
|
|
24
|
+
radius?: number;
|
|
25
|
+
/**
|
|
26
|
+
* Renders either a rectangle or circle.
|
|
27
|
+
*
|
|
28
|
+
* Possible values are:
|
|
29
|
+
* `ContentLoader.RECT`, `ContentLoader.CIRCLE` or `rect`, `circle`
|
|
30
|
+
*/
|
|
31
|
+
type?: typeof RECT | typeof CIRCLE;
|
|
32
|
+
/**
|
|
33
|
+
* Additional class names to ab added to the wrapping svg element.
|
|
34
|
+
*/
|
|
35
|
+
className?: string;
|
|
36
|
+
/** Rect object prop. Used internally. */
|
|
37
|
+
rx?: number;
|
|
38
|
+
/** Rect object prop. Used internally. */
|
|
39
|
+
ry?: number;
|
|
40
|
+
};
|
|
41
|
+
type ContentLoaderPropsWithChildren = PropsWithChildren<ContentLoaderProps>;
|
|
42
|
+
/**
|
|
43
|
+
* This UIKIT component is simple wrapper to make it easier to use with a predefined look and feel. It still
|
|
44
|
+
* allows for more complex configurations as all additional props are passed down to the third-party
|
|
45
|
+
* ContentLoader component. For individual customization, it allows passing svg components as rect or circle
|
|
46
|
+
* directly as children.
|
|
47
|
+
* @param props
|
|
48
|
+
* @returns
|
|
49
|
+
*/
|
|
50
|
+
declare const ContentLoader: {
|
|
51
|
+
(props: ContentLoaderPropsWithChildren): import("react/jsx-runtime").JSX.Element;
|
|
52
|
+
RECT: "rect";
|
|
53
|
+
CIRCLE: "circle";
|
|
54
|
+
};
|
|
1
55
|
export default ContentLoader;
|
|
2
|
-
declare function ContentLoader(props: any): JSX.Element;
|
|
3
|
-
declare namespace ContentLoader {
|
|
4
|
-
const RECT: string;
|
|
5
|
-
const CIRCLE: string;
|
|
6
|
-
namespace defaultProps {
|
|
7
|
-
const speed: number;
|
|
8
|
-
const height: number;
|
|
9
|
-
const width: string;
|
|
10
|
-
const radius: number;
|
|
11
|
-
const type: string;
|
|
12
|
-
const className: string;
|
|
13
|
-
const title: string;
|
|
14
|
-
}
|
|
15
|
-
namespace propTypes {
|
|
16
|
-
const speed_1: PropTypes.Requireable<number>;
|
|
17
|
-
export { speed_1 as speed };
|
|
18
|
-
const height_1: PropTypes.Requireable<NonNullable<string | number | null | undefined>>;
|
|
19
|
-
export { height_1 as height };
|
|
20
|
-
const width_1: PropTypes.Requireable<NonNullable<string | number | null | undefined>>;
|
|
21
|
-
export { width_1 as width };
|
|
22
|
-
const type_1: PropTypes.Requireable<string>;
|
|
23
|
-
export { type_1 as type };
|
|
24
|
-
const radius_1: PropTypes.Requireable<number>;
|
|
25
|
-
export { radius_1 as radius };
|
|
26
|
-
const title_1: PropTypes.Requireable<string>;
|
|
27
|
-
export { title_1 as title };
|
|
28
|
-
const className_1: PropTypes.Requireable<string>;
|
|
29
|
-
export { className_1 as className };
|
|
30
|
-
export const children: PropTypes.Requireable<PropTypes.ReactNodeLike>;
|
|
31
|
-
}
|
|
32
|
-
}
|
|
33
|
-
import PropTypes from "prop-types";
|
|
@@ -2,48 +2,51 @@
|
|
|
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
|
-
|
|
6
|
-
|
|
7
|
-
const prop_types_1 = tslib_1.__importDefault(require("prop-types"));
|
|
5
|
+
// @ts-ignore-next-line importsNotUsedAsValues
|
|
6
|
+
require("react");
|
|
8
7
|
const react_content_loader_1 = tslib_1.__importDefault(require("react-content-loader"));
|
|
9
8
|
const cond_1 = tslib_1.__importDefault(require("lodash/fp/cond"));
|
|
10
9
|
const isNil_1 = tslib_1.__importDefault(require("lodash/fp/isNil"));
|
|
10
|
+
const RECT = 'rect';
|
|
11
|
+
const CIRCLE = 'circle';
|
|
12
|
+
const DEFAULT_SPEED = 2;
|
|
13
|
+
const DEFAULT_HEIGHT = 14;
|
|
14
|
+
const DEFAULT_WIDTH = '100%';
|
|
15
|
+
const DEFAULT_RADIUS = 16;
|
|
16
|
+
const DEFAULT_TYPE = RECT;
|
|
11
17
|
const hasChildren = ({ children }) => !(0, isNil_1.default)(children);
|
|
12
18
|
const renderChildren = ({ children }) => children;
|
|
13
|
-
const isRect = ({ type }) => type ===
|
|
14
|
-
const isCircle = ({ type }) => type ===
|
|
15
|
-
const renderRect = ({ rx = 3, ry = 3 }) => (0, jsx_runtime_1.jsx)("rect", { width: '100%', height: '100%', rx: rx, ry: ry });
|
|
19
|
+
const isRect = ({ type }) => type === RECT;
|
|
20
|
+
const isCircle = ({ type }) => type === CIRCLE;
|
|
21
|
+
const renderRect = ({ rx = 3, ry = 3 }) => ((0, jsx_runtime_1.jsx)("rect", { width: '100%', height: '100%', rx: rx, ry: ry }));
|
|
16
22
|
const renderCircle = ({ radius }) => (0, jsx_runtime_1.jsx)("circle", { cx: radius, cy: radius, r: radius });
|
|
17
|
-
|
|
18
|
-
|
|
23
|
+
/**
|
|
24
|
+
* This UIKIT component is simple wrapper to make it easier to use with a predefined look and feel. It still
|
|
25
|
+
* allows for more complex configurations as all additional props are passed down to the third-party
|
|
26
|
+
* ContentLoader component. For individual customization, it allows passing svg components as rect or circle
|
|
27
|
+
* directly as children.
|
|
28
|
+
* @param props
|
|
29
|
+
* @returns
|
|
30
|
+
*/
|
|
31
|
+
const ContentLoader = (props) => {
|
|
32
|
+
const { speed = DEFAULT_SPEED, width = DEFAULT_WIDTH, height = DEFAULT_HEIGHT, radius = DEFAULT_RADIUS, type = DEFAULT_TYPE, className = '', children } = props, remainingProps = tslib_1.__rest(props, ["speed", "width", "height", "radius", "type", "className", "children"]);
|
|
33
|
+
// Since we define the default values while destructuring the props, we have to build up a new object
|
|
34
|
+
// with that defaults to be used in the conditional rendering, otherwise it would use only the props as
|
|
35
|
+
// passed into the component without the defined defaults.
|
|
36
|
+
const propsWithDefaults = {
|
|
37
|
+
type,
|
|
38
|
+
radius,
|
|
39
|
+
children,
|
|
40
|
+
};
|
|
19
41
|
const content = (0, cond_1.default)([
|
|
20
42
|
[hasChildren, renderChildren],
|
|
21
43
|
[isRect, renderRect],
|
|
22
44
|
[isCircle, renderCircle],
|
|
23
|
-
])(
|
|
24
|
-
const wrapperHeight = isCircle(
|
|
25
|
-
const wrapperWidth = isCircle(
|
|
26
|
-
return ((0, jsx_runtime_1.jsx)(react_content_loader_1.default, Object.assign({
|
|
27
|
-
};
|
|
28
|
-
ContentLoader.RECT = 'rect';
|
|
29
|
-
ContentLoader.CIRCLE = 'circle';
|
|
30
|
-
ContentLoader.defaultProps = {
|
|
31
|
-
speed: 2,
|
|
32
|
-
height: 14,
|
|
33
|
-
width: '100%',
|
|
34
|
-
radius: 16,
|
|
35
|
-
type: 'rect',
|
|
36
|
-
className: '',
|
|
37
|
-
title: '',
|
|
38
|
-
};
|
|
39
|
-
ContentLoader.propTypes = {
|
|
40
|
-
speed: prop_types_1.default.number,
|
|
41
|
-
height: prop_types_1.default.oneOfType([prop_types_1.default.string, prop_types_1.default.number]),
|
|
42
|
-
width: prop_types_1.default.oneOfType([prop_types_1.default.string, prop_types_1.default.number]),
|
|
43
|
-
type: prop_types_1.default.oneOf(['rect', 'circle', ContentLoader.RECT, ContentLoader.CIRCLE]),
|
|
44
|
-
radius: prop_types_1.default.number,
|
|
45
|
-
title: prop_types_1.default.string,
|
|
46
|
-
className: prop_types_1.default.string,
|
|
47
|
-
children: prop_types_1.default.node,
|
|
45
|
+
])(propsWithDefaults);
|
|
46
|
+
const wrapperHeight = isCircle(propsWithDefaults) ? radius * 2 : height;
|
|
47
|
+
const wrapperWidth = isCircle(propsWithDefaults) ? wrapperHeight : width;
|
|
48
|
+
return ((0, jsx_runtime_1.jsx)(react_content_loader_1.default, Object.assign({ speed: speed, height: wrapperHeight, width: wrapperWidth, className: `ContentLoader ${className}` }, remainingProps, { children: content })));
|
|
48
49
|
};
|
|
50
|
+
ContentLoader.RECT = RECT;
|
|
51
|
+
ContentLoader.CIRCLE = CIRCLE;
|
|
49
52
|
exports.default = ContentLoader;
|
|
@@ -13,7 +13,7 @@ declare class DateRangePicker extends React.Component<any, any, any> {
|
|
|
13
13
|
customRangeEndValue: moment.Moment;
|
|
14
14
|
isStartValid: boolean;
|
|
15
15
|
isEndValid: boolean;
|
|
16
|
-
dropdownToggleText: JSX.Element;
|
|
16
|
+
dropdownToggleText: import("react/jsx-runtime").JSX.Element;
|
|
17
17
|
dropup: any;
|
|
18
18
|
pullRight: any;
|
|
19
19
|
};
|
|
@@ -99,12 +99,12 @@ declare class DateRangePicker extends React.Component<any, any, any> {
|
|
|
99
99
|
* @returns {undefined}
|
|
100
100
|
*/
|
|
101
101
|
handleSelect(startValue: object, endValue: object): undefined;
|
|
102
|
-
getDropdownToggle(dropdownToggleText: any): JSX.Element;
|
|
102
|
+
getDropdownToggle(dropdownToggleText: any): import("react/jsx-runtime").JSX.Element;
|
|
103
103
|
refDropdownToggle: HTMLDivElement | null | undefined;
|
|
104
|
-
getClearButton(): JSX.Element;
|
|
105
|
-
getCustomPanelToggle(isCustomVisible: any, textCustom: any): JSX.Element;
|
|
106
|
-
getCustomPanelButtons(isCustomVisible: any, isStartValid: any, isEndValid: any, textApply: any, textCancel: any): JSX.Element;
|
|
107
|
-
render(): JSX.Element;
|
|
104
|
+
getClearButton(): import("react/jsx-runtime").JSX.Element;
|
|
105
|
+
getCustomPanelToggle(isCustomVisible: any, textCustom: any): import("react/jsx-runtime").JSX.Element;
|
|
106
|
+
getCustomPanelButtons(isCustomVisible: any, isStartValid: any, isEndValid: any, textApply: any, textCancel: any): import("react/jsx-runtime").JSX.Element;
|
|
107
|
+
render(): import("react/jsx-runtime").JSX.Element;
|
|
108
108
|
refDropdownMenu: HTMLUListElement | null | undefined;
|
|
109
109
|
}
|
|
110
110
|
declare namespace DateRangePicker {
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
export default ConfirmationDialog;
|
|
2
|
-
declare function ConfirmationDialog(props: any): JSX.Element;
|
|
2
|
+
declare function ConfirmationDialog(props: any): import("react/jsx-runtime").JSX.Element;
|
|
3
3
|
declare namespace ConfirmationDialog {
|
|
4
4
|
namespace defaultProps {
|
|
5
5
|
const show: boolean;
|
|
@@ -15,6 +15,7 @@ const DialogHeader_1 = tslib_1.__importDefault(require("./DialogHeader"));
|
|
|
15
15
|
const DialogBody_1 = tslib_1.__importDefault(require("./DialogBody"));
|
|
16
16
|
const DialogFooter_1 = tslib_1.__importDefault(require("./DialogFooter"));
|
|
17
17
|
const baseDialogPropTypes_1 = tslib_1.__importDefault(require("./baseDialogPropTypes"));
|
|
18
|
+
const useFocusTrap_1 = tslib_1.__importDefault(require("../../hooks/useFocusTrap"));
|
|
18
19
|
const MODAL_DIALOG_CLASS = 'modal-dialog';
|
|
19
20
|
const MODAL_OPEN_CLASS = 'modal-open';
|
|
20
21
|
const Dialog = props => {
|
|
@@ -22,6 +23,10 @@ const Dialog = props => {
|
|
|
22
23
|
const [open, setOpen] = (0, react_1.useState)(show);
|
|
23
24
|
const dialogWrapperRef = (0, react_1.useRef)();
|
|
24
25
|
const modalRoot = (0, portalRoot_1.getOrCreatePortalRoot)();
|
|
26
|
+
// Use a setter function for the focus trap as it would nor re-render
|
|
27
|
+
// and fails to set the focus listener
|
|
28
|
+
const [focusTrapRef, setFocusTrapRef] = (0, react_1.useState)();
|
|
29
|
+
(0, useFocusTrap_1.default)(focusTrapRef);
|
|
25
30
|
const toggleBodyClass = add => {
|
|
26
31
|
// We need to set a body class to fix the -webkit-overflow-scrolling on safari and iOS
|
|
27
32
|
// Remove "modal-open" from body only when there is no other dialog in the DOM
|
|
@@ -57,13 +62,19 @@ const Dialog = props => {
|
|
|
57
62
|
}
|
|
58
63
|
});
|
|
59
64
|
const handleEntered = () => {
|
|
65
|
+
var _a;
|
|
66
|
+
const dialogElement = dialogWrapperRef.current;
|
|
67
|
+
const currentActiveElement = (0, activeElement_1.default)(document);
|
|
68
|
+
// Set the focus to the dialog if no element inside has focus already. Otherwise, focused
|
|
69
|
+
// elements like inputs would loos their focus to the dialog.
|
|
60
70
|
// Note that in order to focus the dialog itself, the tabindex has to be set on that element
|
|
61
|
-
|
|
71
|
+
if (!dialogElement.contains(currentActiveElement)) {
|
|
72
|
+
(_a = dialogWrapperRef === null || dialogWrapperRef === void 0 ? void 0 : dialogWrapperRef.current) === null || _a === void 0 ? void 0 : _a.focus();
|
|
73
|
+
}
|
|
62
74
|
};
|
|
63
75
|
const modalClasses = (0, classnames_1.default)('modal', 'show', className);
|
|
64
76
|
const modalDialogClasses = (0, classnames_1.default)(MODAL_DIALOG_CLASS, useOverflow && 'modal-overflow', bsSize === Dialog.SIZE_SM && 'modal-sm', bsSize === Dialog.SIZE_LG && 'modal-lg', bsSize === Dialog.SIZE_XL && 'modal-xl', bsSize === Dialog.SIZE_FULL && 'modal-full-width', bsSize === Dialog.SIZE_FULL_WIDTH && 'modal-full-width', bsSize === Dialog.SIZE_FULL_HEIGHT && 'modal-full-height', bsSize === Dialog.SIZE_FULL_SCREEN && 'modal-fullscreen');
|
|
65
|
-
|
|
66
|
-
return react_dom_1.default.createPortal((0, jsx_runtime_1.jsx)(react_transition_group_1.CSSTransition, Object.assign({ in: open, timeout: 200, classNames: 'modal', unmountOnExit: true, onEntered: handleEntered }, { children: (0, jsx_runtime_1.jsxs)("div", Object.assign({}, remainingProps, { className: modalClasses, tabIndex: 1, role: 'dialog', ref: dialogWrapperRef }, { children: [(0, jsx_runtime_1.jsx)("div", Object.assign({ className: modalDialogClasses, role: 'document' }, { children: (0, jsx_runtime_1.jsxs)("div", Object.assign({ className: 'modal-content' }, { children: [title && ((0, jsx_runtime_1.jsx)(DialogHeader_1.default, { title: title, subtitle: subtitle, headerButtons: headerButtons, showCloseButton: showCloseButton, onClose: handleClose })), body && (0, jsx_runtime_1.jsx)(DialogBody_1.default, Object.assign({ className: bodyClassName }, { children: body })), footer && (0, jsx_runtime_1.jsx)(DialogFooter_1.default, Object.assign({ className: footerClassName }, { children: footer }))] })) })), (0, jsx_runtime_1.jsx)("div", { className: backdropClasses })] })) })), modalRoot);
|
|
77
|
+
return react_dom_1.default.createPortal((0, jsx_runtime_1.jsx)(react_transition_group_1.CSSTransition, Object.assign({ in: open, timeout: 200, classNames: 'modal', unmountOnExit: true, onEntered: handleEntered }, { children: (0, jsx_runtime_1.jsxs)("div", Object.assign({}, remainingProps, { className: modalClasses, tabIndex: 0, role: 'dialog', ref: dialogWrapperRef }, { children: [(0, jsx_runtime_1.jsx)("div", Object.assign({ ref: setFocusTrapRef, className: modalDialogClasses, role: 'document' }, { children: (0, jsx_runtime_1.jsxs)("div", Object.assign({ className: 'modal-content' }, { children: [title && ((0, jsx_runtime_1.jsx)(DialogHeader_1.default, { title: title, subtitle: subtitle, headerButtons: headerButtons, showCloseButton: showCloseButton, onClose: handleClose })), body && (0, jsx_runtime_1.jsx)(DialogBody_1.default, Object.assign({ className: bodyClassName }, { children: body })), footer && (0, jsx_runtime_1.jsx)(DialogFooter_1.default, Object.assign({ className: footerClassName }, { children: footer }))] })) })), (0, jsx_runtime_1.jsx)("div", { className: 'modal-backdrop' })] })) })), modalRoot);
|
|
67
78
|
};
|
|
68
79
|
Dialog.SIZE_SM = 'sm';
|
|
69
80
|
Dialog.SIZE_MD = 'md'; // default
|
|
@@ -3,7 +3,7 @@ declare function DialogBody({ className, children, ...remainingProps }: {
|
|
|
3
3
|
[x: string]: any;
|
|
4
4
|
className: any;
|
|
5
5
|
children: any;
|
|
6
|
-
}): JSX.Element;
|
|
6
|
+
}): import("react/jsx-runtime").JSX.Element;
|
|
7
7
|
declare namespace DialogBody {
|
|
8
8
|
namespace defaultProps {
|
|
9
9
|
const className: string;
|
|
@@ -3,7 +3,7 @@ declare function DialogFooter({ className, children, ...remainingProps }: {
|
|
|
3
3
|
[x: string]: any;
|
|
4
4
|
className: any;
|
|
5
5
|
children: any;
|
|
6
|
-
}): JSX.Element;
|
|
6
|
+
}): import("react/jsx-runtime").JSX.Element;
|
|
7
7
|
declare namespace DialogFooter {
|
|
8
8
|
namespace defaultProps {
|
|
9
9
|
const className: string;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
export default InfoDialog;
|
|
2
|
-
declare function InfoDialog(props: any): JSX.Element;
|
|
2
|
+
declare function InfoDialog(props: any): import("react/jsx-runtime").JSX.Element;
|
|
3
3
|
declare namespace InfoDialog {
|
|
4
4
|
const propTypes: {
|
|
5
5
|
content: PropTypes.Requireable<PropTypes.ReactNodeLike>;
|
|
@@ -6,13 +6,13 @@ declare class MediaDialog extends React.Component<any, any, any> {
|
|
|
6
6
|
};
|
|
7
7
|
handlePrevious(): void;
|
|
8
8
|
handleNext(): void;
|
|
9
|
-
renderFallback(): JSX.Element;
|
|
10
|
-
renderImage(mediaData: any): JSX.Element;
|
|
11
|
-
renderVideo(mediaData: any): JSX.Element;
|
|
9
|
+
renderFallback(): import("react/jsx-runtime").JSX.Element;
|
|
10
|
+
renderImage(mediaData: any): import("react/jsx-runtime").JSX.Element;
|
|
11
|
+
renderVideo(mediaData: any): import("react/jsx-runtime").JSX.Element;
|
|
12
12
|
renderMediaContent(mediaData?: {}): any;
|
|
13
|
-
renderBody(media: any[] | undefined, currentMediaIndex: any): JSX.Element;
|
|
14
|
-
renderFooter(props: any): JSX.Element;
|
|
15
|
-
render(): JSX.Element | null;
|
|
13
|
+
renderBody(media: any[] | undefined, currentMediaIndex: any): import("react/jsx-runtime").JSX.Element;
|
|
14
|
+
renderFooter(props: any): import("react/jsx-runtime").JSX.Element;
|
|
15
|
+
render(): import("react/jsx-runtime").JSX.Element | null;
|
|
16
16
|
}
|
|
17
17
|
declare namespace MediaDialog {
|
|
18
18
|
const MEDIA_TYPE_IMAGE: string;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
export default ReleaseNotesDialog;
|
|
2
|
-
declare function ReleaseNotesDialog(props: any): JSX.Element;
|
|
2
|
+
declare function ReleaseNotesDialog(props: any): import("react/jsx-runtime").JSX.Element;
|
|
3
3
|
declare namespace ReleaseNotesDialog {
|
|
4
4
|
namespace defaultProps {
|
|
5
5
|
const useOverflow: boolean;
|
|
@@ -5,7 +5,7 @@ export function formatDriverName({ firstName, lastName }: {
|
|
|
5
5
|
export function DriverName({ driver, ...remainingProps }: {
|
|
6
6
|
[x: string]: any;
|
|
7
7
|
driver: any;
|
|
8
|
-
}): JSX.Element;
|
|
8
|
+
}): import("react/jsx-runtime").JSX.Element;
|
|
9
9
|
export namespace DriverName {
|
|
10
10
|
namespace propTypes {
|
|
11
11
|
const driver: PropTypes.Requireable<PropTypes.InferProps<{
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
export default Caret;
|
|
2
|
-
declare function Caret(): JSX.Element;
|
|
2
|
+
declare function Caret(): import("react/jsx-runtime").JSX.Element;
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
export default SimpleButtonDropdown;
|
|
2
|
-
declare function SimpleButtonDropdown(props: any): JSX.Element;
|
|
2
|
+
declare function SimpleButtonDropdown(props: any): import("react/jsx-runtime").JSX.Element;
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
export default SingleButtonDropdown;
|
|
2
|
-
declare function SingleButtonDropdown(props: any): JSX.Element;
|
|
2
|
+
declare function SingleButtonDropdown(props: any): import("react/jsx-runtime").JSX.Element;
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
export default SplitButtonDropdown;
|
|
2
|
-
declare function SplitButtonDropdown(props: any): JSX.Element;
|
|
2
|
+
declare function SplitButtonDropdown(props: any): import("react/jsx-runtime").JSX.Element;
|