@rio-cloud/rio-uikit 0.16.4-beta.3 → 0.16.4-beta.4
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/components/actionBarItem/ActionBarItemIcon.d.ts +1 -1
- package/components/activity/Activity.d.ts +26 -0
- package/components/animatedNumber/AnimatedNumber.d.ts +8 -0
- package/lib/es/AppNavigationBar.d.ts +2 -5
- package/lib/es/Area.d.ts +2 -5
- package/lib/es/AreaChart.d.ts +2 -5
- package/lib/es/AreaGradient.d.ts +2 -5
- package/lib/es/AssetTree.d.ts +2 -5
- package/lib/es/AutoSuggest.d.ts +2 -6
- package/lib/es/AutoSuggest.js +3 -2
- package/lib/es/Bar.d.ts +2 -8
- package/lib/es/BarChart.d.ts +2 -5
- package/lib/es/BrowserWarning.d.ts +2 -5
- package/lib/es/Button.d.ts +2 -27
- package/lib/es/ButtonDropdown.d.ts +2 -5
- package/lib/es/CalendarStripe.d.ts +2 -5
- package/lib/es/Carousel.d.ts +2 -11
- package/lib/es/ChartNeedle.d.ts +2 -5
- package/lib/es/ChartTooltip.d.ts +2 -5
- package/lib/es/Checkbox.d.ts +2 -5
- package/lib/es/Checkbox.js +3 -2
- package/lib/es/Circle.d.ts +2 -5
- package/lib/es/ClearableInput.d.ts +2 -5
- package/lib/es/ClearableInput.js +3 -2
- package/lib/es/ClusterLayer.d.ts +2 -5
- package/lib/es/ClusterMapMarker.d.ts +2 -5
- package/lib/es/ClusterUtils.d.ts +2 -5
- package/lib/es/Collapse.d.ts +2 -5
- package/lib/es/ColorScheme.d.ts +3 -4
- package/lib/es/Colors.d.ts +2 -21
- package/lib/es/ConfirmationDialog.d.ts +2 -14
- package/lib/es/ContentLoader.d.ts +2 -8
- package/lib/es/ContentLoader.js +3 -2
- package/lib/es/ContextMenu.d.ts +2 -5
- package/lib/es/ContextMenuItem.d.ts +2 -5
- package/lib/es/CustomState.d.ts +2 -5
- package/lib/es/DataTab.d.ts +2 -5
- package/lib/es/DataTabs.d.ts +2 -5
- package/lib/es/DatePicker.d.ts +2 -5
- package/lib/es/DateRangePicker.d.ts +2 -5
- package/lib/es/DeviceUtils.d.ts +13 -13
- package/lib/es/Dialog.d.ts +2 -15
- package/lib/es/DomMarker.d.ts +2 -5
- package/lib/es/DropdownSubmenu.d.ts +2 -5
- package/lib/es/EditableContent.d.ts +2 -0
- package/lib/es/EditableContent.js +7 -0
- package/lib/es/EmptyState.d.ts +2 -5
- package/lib/es/ErrorState.d.ts +2 -5
- package/lib/es/EventUtils.d.ts +2 -36
- package/lib/es/ExpanderList.d.ts +2 -5
- package/lib/es/ExpanderPanel.d.ts +2 -5
- package/lib/es/Fade.d.ts +2 -14
- package/lib/es/FilePicker.d.ts +2 -9
- package/lib/es/ForbiddenState.d.ts +2 -5
- package/lib/es/ImagePreloader.d.ts +2 -5
- package/lib/es/IncidentsLayer.d.ts +2 -4
- package/lib/es/InfoDialog.d.ts +2 -5
- package/lib/es/Legend.d.ts +2 -5
- package/lib/es/Line.d.ts +2 -5
- package/lib/es/LineChart.d.ts +2 -5
- package/lib/es/ListMenu.d.ts +2 -6
- package/lib/es/MaintenanceState.d.ts +2 -5
- package/lib/es/Map.d.ts +2 -12
- package/lib/es/MapBoundingBoxButton.d.ts +2 -5
- package/lib/es/MapCenterMarkerButton.d.ts +2 -5
- package/lib/es/MapClusterSettings.d.ts +2 -5
- package/lib/es/MapCustomerPoiSettingsItem.d.ts +2 -5
- package/lib/es/MapLayerGroup.d.ts +2 -5
- package/lib/es/MapLayerIncidentsItem.d.ts +2 -5
- package/lib/es/MapLayerRoadRestrictionsItem.d.ts +2 -5
- package/lib/es/MapLayerSettings.d.ts +2 -5
- package/lib/es/MapLayerTrafficItem.d.ts +2 -5
- package/lib/es/MapLockMarkerButton.d.ts +2 -5
- package/lib/es/MapSettings.d.ts +2 -5
- package/lib/es/MapSettingsItem.d.ts +2 -5
- package/lib/es/MapSettingsPanel.d.ts +2 -5
- package/lib/es/MapSettingsTile.d.ts +2 -5
- package/lib/es/MapTypeSettings.d.ts +2 -5
- package/lib/es/MapWorkshopPoiSettingsItem.d.ts +2 -5
- package/lib/es/Marker.d.ts +2 -5
- package/lib/es/MarkerLayer.d.ts +2 -5
- package/lib/es/MediaDialog.d.ts +2 -9
- package/lib/es/MenuItem.d.ts +2 -5
- package/lib/es/Multiselect.d.ts +2 -12
- package/lib/es/NotBookedState.d.ts +2 -5
- package/lib/es/NotFoundState.d.ts +2 -5
- package/lib/es/Notification.d.ts +2 -9
- package/lib/es/NotificationsContainer.d.ts +2 -5
- package/lib/es/NumberControl.d.ts +2 -8
- package/lib/es/NumberControl.js +3 -2
- package/lib/es/NumberInput.d.ts +2 -8
- package/lib/es/NumberInput.js +3 -2
- package/lib/es/OnboardingTip.d.ts +2 -30
- package/lib/es/Pager.d.ts +2 -11
- package/lib/es/Pager.js +3 -2
- package/lib/es/PieChart.d.ts +2 -5
- package/lib/es/Polygon.d.ts +2 -5
- package/lib/es/Polyline.d.ts +2 -5
- package/lib/es/Popover.d.ts +2 -11
- package/lib/es/Position.d.ts +2 -5
- package/lib/es/PositionUtils.d.ts +2 -8
- package/lib/es/RadialBarChart.d.ts +2 -5
- package/lib/es/RadioButton.d.ts +2 -5
- package/lib/es/RangeSlider.d.ts +2 -5
- package/lib/es/ReleaseNotes.d.ts +2 -5
- package/lib/es/ReleaseNotesDialog.d.ts +2 -5
- package/lib/es/ReleaseNotesDialog.js +3 -2
- package/lib/es/Resizer.d.ts +2 -13
- package/lib/es/Resizer.js +3 -2
- package/lib/es/ResponsiveColumnStripe.d.ts +2 -5
- package/lib/es/Route.d.ts +2 -5
- package/lib/es/RuleConnector.d.ts +2 -10
- package/lib/es/RuleContainer.d.ts +2 -6
- package/lib/es/RulesWrapper.d.ts +2 -6
- package/lib/es/SaveDialog.d.ts +2 -14
- package/lib/es/Select.d.ts +2 -5
- package/lib/es/Sidebar.d.ts +2 -11
- package/lib/es/SimpleButtonDropdown.d.ts +2 -5
- package/lib/es/SimpleClusterLayer.d.ts +2 -5
- package/lib/es/SimpleDialog.d.ts +2 -14
- package/lib/es/SingleButtonDropdown.d.ts +2 -5
- package/lib/es/SingleMapMarker.d.ts +2 -5
- package/lib/es/Slider.d.ts +2 -5
- package/lib/es/SortArrowDown.d.ts +2 -5
- package/lib/es/SortArrowUp.d.ts +2 -5
- package/lib/es/SortArrows.d.ts +2 -5
- package/lib/es/SortDirection.d.ts +2 -11
- package/lib/es/SortUtils.d.ts +3 -16
- package/lib/es/Spinner.d.ts +2 -5
- package/lib/es/Spinner.js +3 -2
- package/lib/es/SplitButtonDropdown.d.ts +2 -5
- package/lib/es/SplitDialog.d.ts +2 -14
- package/lib/es/StatsWidget.d.ts +2 -10
- package/lib/es/StatsWidget.js +3 -2
- package/lib/es/StatsWidgetNumber.d.ts +2 -5
- package/lib/es/StatsWidgetNumber.js +3 -2
- package/lib/es/StatsWidgetSpacer.d.ts +2 -5
- package/lib/es/StatsWidgetSpacer.js +3 -2
- package/lib/es/StatsWidgets.d.ts +1 -5
- package/lib/es/StatsWidgets.js +5 -3
- package/lib/es/StatusBar.d.ts +2 -5
- package/lib/es/StatusBar.js +3 -2
- package/lib/es/SteppedProgressBar.d.ts +2 -9
- package/lib/es/SubNavigation.d.ts +2 -5
- package/lib/es/Switch.d.ts +2 -8
- package/lib/es/Switch.js +3 -2
- package/lib/es/TableCardsSorting.d.ts +2 -5
- package/lib/es/TableSearch.d.ts +2 -5
- package/lib/es/TableSettingsDialog.d.ts +2 -5
- package/lib/es/TableToolbar.d.ts +2 -5
- package/lib/es/TableViewToggles.d.ts +2 -12
- package/lib/es/Tag.d.ts +2 -5
- package/lib/es/TagList.d.ts +2 -5
- package/lib/es/TagManager.d.ts +2 -5
- package/lib/es/Teaser.d.ts +2 -5
- package/lib/es/TeaserContainer.d.ts +2 -5
- package/lib/es/TextMarker.d.ts +2 -5
- package/lib/es/TimePicker.d.ts +2 -5
- package/lib/es/ToggleButton.d.ts +2 -5
- package/lib/es/TrafficLayer.d.ts +2 -4
- package/lib/es/Tree.d.ts +2 -5
- package/lib/es/TreeCategory.d.ts +2 -5
- package/lib/es/TreeOption.d.ts +2 -5
- package/lib/es/TreeSearch.d.ts +2 -5
- package/lib/es/TreeSummary.d.ts +2 -5
- package/lib/es/TruckLayer.d.ts +2 -4
- package/lib/es/TypeCounter.d.ts +2 -5
- package/lib/es/VolkswagenApplicationHeader.d.ts +2 -5
- package/lib/es/components/actionBarItem/ActionBarItem.d.ts +21 -0
- package/lib/es/components/actionBarItem/ActionBarItemIcon.d.ts +2 -2
- package/lib/es/components/actionBarItem/ActionBarItemList.d.ts +4 -1
- package/lib/es/components/actionBarItem/ActionBarItemListItem.d.ts +19 -2
- package/lib/es/components/actionBarItem/ActionBarItemListSeparator.d.ts +4 -1
- package/lib/es/components/actionBarItem/ActionBarItemPopoverContent.d.ts +7 -1
- package/lib/es/components/activity/Activity.d.ts +27 -0
- package/lib/es/components/animatedNumber/AnimatedNumber.d.ts +8 -0
- package/lib/es/components/applicationHeader/AppMenu.d.ts +1 -1
- package/lib/es/components/applicationHeader/AppMenu.js +2 -2
- package/lib/es/components/applicationHeader/AppMenuContent.d.ts +1 -1
- package/lib/es/components/applicationHeader/AppMenuDropdown.d.ts +1 -1
- package/lib/es/components/applicationHeader/ApplicationActionBar.d.ts +1 -1
- package/lib/es/components/applicationHeader/ApplicationHeader.d.ts +52 -1
- package/lib/es/components/applicationHeader/MobileAppMenu.d.ts +1 -1
- package/lib/es/components/applicationHeader/MobileHeaderModal.d.ts +1 -1
- package/lib/es/components/applicationHeader/MobileSubmoduleNavigation.d.ts +1 -1
- package/lib/es/components/applicationHeader/NavItems.d.ts +1 -1
- package/lib/es/components/applicationLayout/ApplicationLayout.d.ts +7 -1
- package/lib/es/components/applicationLayout/ApplicationLayoutBody.d.ts +29 -2
- package/lib/es/components/applicationLayout/ApplicationLayoutBodyBanner.d.ts +15 -0
- package/lib/es/components/applicationLayout/ApplicationLayoutBodyBottomBar.d.ts +15 -0
- package/lib/es/components/applicationLayout/ApplicationLayoutBodyNavigation.d.ts +3 -0
- package/lib/es/components/applicationLayout/ApplicationLayoutHeader.d.ts +3 -0
- package/lib/es/components/applicationLayout/ApplicationLayoutSidebar.d.ts +3 -0
- package/lib/es/components/aspectRatioPlaceholder/AspectRatioPlaceholder.d.ts +4 -1
- package/lib/es/components/assetTree/Tree.js +1 -2
- package/lib/es/components/assetTree/TreeLeafList.d.ts +1 -1
- package/lib/es/components/assetTree/TreeNodeContainer.d.ts +1 -1
- package/lib/es/components/assetTree/TreeNothingFound.d.ts +1 -1
- package/lib/es/components/assetTree/TreeOption.d.ts +1 -1
- package/lib/es/components/assetTree/TreeOption.js +2 -2
- package/lib/es/components/assetTree/TreeOptions.d.ts +1 -1
- package/lib/es/components/assetTree/TreeOptions.js +2 -2
- package/lib/es/components/assetTree/TreeRoot.d.ts +1 -1
- package/lib/es/components/assetTree/TreeSelectAll.d.ts +1 -1
- package/lib/es/components/assetTree/TreeSummary.js +1 -1
- package/lib/es/components/assetTree/TypeCounter.js +2 -2
- package/lib/es/components/autosuggest/AutoSuggest.d.ts +200 -115
- package/lib/es/components/autosuggest/AutoSuggest.js +144 -258
- package/lib/es/components/autosuggest/AutoSuggestAddons.d.ts +8 -0
- package/lib/es/components/autosuggest/AutoSuggestAddons.js +9 -0
- package/lib/es/components/autosuggest/DropdownSpinner.d.ts +4 -0
- package/lib/es/components/autosuggest/DropdownSpinner.js +8 -0
- package/lib/es/components/autosuggest/NoItemMessage.d.ts +5 -0
- package/lib/es/components/autosuggest/NoItemMessage.js +7 -0
- package/lib/es/components/bottomSheet/BottomSheet.d.ts +6 -6
- package/lib/es/components/browserWarning/BrowserIcons.d.ts +2 -2
- package/lib/es/components/browserWarning/BrowserWarning.d.ts +1 -1
- package/lib/es/components/browserWarning/BrowserWarningMessageDE.d.ts +1 -1
- package/lib/es/components/browserWarning/BrowserWarningMessageEN.d.ts +1 -1
- package/lib/es/components/button/Button.d.ts +1 -1
- package/lib/es/components/button/ToggleButton.d.ts +1 -1
- package/lib/es/components/carousel/CarouselCaption.d.ts +1 -1
- package/lib/es/components/carousel/CarouselItem.d.ts +1 -1
- package/lib/es/components/charts/AreaChart.d.ts +2 -2
- package/lib/es/components/charts/AreaGradient.d.ts +1 -1
- package/lib/es/components/charts/BarChart.d.ts +2 -2
- package/lib/es/components/charts/ChartNeedle.d.ts +1 -1
- package/lib/es/components/charts/LineChart.d.ts +2 -2
- package/lib/es/components/charts/PieChart.d.ts +3 -3
- package/lib/es/components/charts/RadialBarChart.d.ts +2 -2
- package/lib/es/components/checkbox/Checkbox.d.ts +126 -56
- package/lib/es/components/checkbox/Checkbox.js +25 -65
- package/lib/es/components/checkbox/CheckboxIcon.d.ts +9 -0
- package/lib/es/components/checkbox/CheckboxIcon.js +15 -0
- package/lib/es/components/clearableInput/ClearableInput.d.ts +95 -58
- package/lib/es/components/clearableInput/ClearableInput.js +47 -97
- package/lib/es/components/collapse/Collapse.d.ts +1 -1
- package/lib/es/components/contentLoader/ContentLoader.d.ts +54 -32
- package/lib/es/components/contentLoader/ContentLoader.js +36 -33
- package/lib/es/components/dataTabs/DataTabs.d.ts +1 -1
- package/lib/es/components/datepicker/DateRangePicker.d.ts +6 -6
- package/lib/es/components/dialog/ConfirmationDialog.d.ts +1 -1
- package/lib/es/components/dialog/Dialog.js +14 -3
- package/lib/es/components/dialog/DialogBody.d.ts +1 -1
- package/lib/es/components/dialog/DialogFooter.d.ts +1 -1
- package/lib/es/components/dialog/DialogHeader.d.ts +1 -1
- package/lib/es/components/dialog/InfoDialog.d.ts +1 -1
- package/lib/es/components/dialog/MediaDialog.d.ts +6 -6
- package/lib/es/components/dialog/ReleaseNotesDialog.d.ts +1 -1
- package/lib/es/components/dialog/SaveDialog.d.ts +1 -1
- package/lib/es/components/dialog/SimpleDialog.d.ts +1 -1
- package/lib/es/components/dialog/SplitDialog.d.ts +1 -1
- package/lib/es/components/driverName/DriverName.d.ts +1 -1
- package/lib/es/components/dropdown/ButtonDropdown.d.ts +1 -1
- package/lib/es/components/dropdown/Caret.d.ts +1 -1
- package/lib/es/components/dropdown/DropdownSubmenu.d.ts +1 -1
- package/lib/es/components/dropdown/SimpleButtonDropdown.d.ts +1 -1
- package/lib/es/components/dropdown/SingleButtonDropdown.d.ts +1 -1
- package/lib/es/components/dropdown/SplitButtonDropdown.d.ts +1 -1
- package/lib/es/components/editableContent/EditableContent.d.ts +86 -0
- package/lib/es/components/editableContent/EditableContent.js +112 -0
- package/lib/es/components/expander/ExpanderList.d.ts +3 -3
- package/lib/es/components/expander/ExpanderPanel.d.ts +1 -1
- package/lib/es/components/fade/Fade.d.ts +1 -1
- package/lib/es/components/filepicker/FilePicker.d.ts +1 -1
- package/lib/es/components/listMenu/ListMenu.d.ts +1 -1
- package/lib/es/components/loadMore/LoadMoreButton.d.ts +31 -3
- package/lib/es/components/loadMore/LoadMoreProgress.d.ts +1 -1
- package/lib/es/components/map/components/Map.d.ts +1 -1
- package/lib/es/components/map/components/features/MapSettings.d.ts +1 -1
- package/lib/es/components/map/components/features/Route.d.ts +1 -1
- package/lib/es/components/map/components/features/basics/MapLayerGroup.d.ts +1 -1
- package/lib/es/components/map/components/features/basics/marker/TextMarker.d.ts +1 -1
- package/lib/es/components/map/components/features/layers/IncidentsLayer.d.ts +1 -1
- package/lib/es/components/map/components/features/layers/MarkerLayer.d.ts +1 -1
- package/lib/es/components/map/components/features/layers/RoadRestrictionLayer.d.ts +1 -1
- package/lib/es/components/map/components/features/layers/TrafficLayer.d.ts +1 -1
- package/lib/es/components/map/components/features/layers/clustering/SimpleClusterLayer.d.ts +1 -1
- package/lib/es/components/map/components/features/settings/MapSettingsItem.d.ts +1 -1
- package/lib/es/components/map/components/features/settings/MapSettingsPanel.d.ts +1 -1
- package/lib/es/components/map/components/features/settings/MapSettingsTile.d.ts +1 -1
- package/lib/es/components/map/components/features/settings/ZoomButtons.d.ts +1 -1
- package/lib/es/components/map/components/features/settings/builtinSettings/MapClusterSettings.d.ts +1 -1
- package/lib/es/components/map/components/features/settings/builtinSettings/MapLayerSettings.d.ts +1 -1
- package/lib/es/components/map/components/features/settings/builtinSettings/MapTypeSettings.d.ts +1 -1
- package/lib/es/components/map/components/features/settings/buttons/MapBoundingBoxButton.d.ts +1 -1
- package/lib/es/components/map/components/features/settings/buttons/MapCenterMarkerButton.d.ts +1 -1
- package/lib/es/components/map/components/features/settings/buttons/MapLockMarkerButton.d.ts +1 -1
- package/lib/es/components/map/components/features/settings/items/MapCustomerPoiSettingsItem.d.ts +1 -1
- package/lib/es/components/map/components/features/settings/items/MapLayerIncidentsItem.d.ts +1 -1
- package/lib/es/components/map/components/features/settings/items/MapLayerRoadRestrictionsItem.d.ts +1 -1
- package/lib/es/components/map/components/features/settings/items/MapLayerTrafficItem.d.ts +1 -1
- package/lib/es/components/map/components/features/settings/items/MapWorkshopPoiSettingsItem.d.ts +1 -1
- package/lib/es/components/mapMarker/ClusterMapMarker.d.ts +1 -1
- package/lib/es/components/mapMarker/SingleMapMarker.d.ts +1 -1
- package/lib/es/components/menuItems/MenuItem.d.ts +13 -24
- package/lib/es/components/menuItems/MenuItem.js +8 -23
- package/lib/es/components/navigation/AppNavigationBar.js +1 -1
- package/lib/es/components/noData/NoData.d.ts +27 -2
- package/lib/es/components/notification/NotificationsContainer.d.ts +1 -1
- package/lib/es/components/numberControl/NumberControl.d.ts +4 -2
- package/lib/es/components/numberControl/NumberControl.js +22 -34
- package/lib/es/components/numberInput/NumberInput.d.ts +76 -9
- package/lib/es/components/numberInput/NumberInput.js +80 -47
- package/lib/es/components/overlay/OverlayTrigger.d.ts +4 -16
- package/lib/es/components/overlay/OverlayTrigger.js +4 -2
- package/lib/es/components/pager/Pager.d.ts +52 -24
- package/lib/es/components/pager/Pager.js +10 -20
- package/lib/es/components/position/Position.d.ts +1 -1
- package/lib/es/components/radiobutton/RadioButton.d.ts +1 -1
- package/lib/es/components/radiobutton/RadioButton.js +3 -3
- package/lib/es/components/releaseNotes/ReleaseNotes.d.ts +34 -8
- package/lib/es/components/releaseNotes/ReleaseNotes.js +8 -18
- package/lib/es/components/resizer/Resizer.d.ts +57 -64
- package/lib/es/components/resizer/Resizer.js +109 -109
- package/lib/es/components/rules/RuleConnector.d.ts +1 -1
- package/lib/es/components/rules/RuleContainer.d.ts +1 -1
- package/lib/es/components/rules/RulesWrapper.d.ts +1 -1
- package/lib/es/components/saveableInput/SaveableInput.d.ts +34 -2
- package/lib/es/components/selects/BaseDropdownMenu.d.ts +2 -2
- package/lib/es/components/selects/DropdownHeader.d.ts +1 -1
- package/lib/es/components/selects/Multiselect.d.ts +7 -7
- package/lib/es/components/selects/Select.d.ts +7 -7
- package/lib/es/components/sidebars/Sidebar.d.ts +1 -1
- package/lib/es/components/slider/RangeSlider.d.ts +1 -1
- package/lib/es/components/slider/Slider.d.ts +1 -1
- package/lib/es/components/spinner/Spinner.d.ts +47 -27
- package/lib/es/components/spinner/Spinner.js +12 -31
- package/lib/es/components/states/CustomState.d.ts +1 -1
- package/lib/es/components/states/EmptyState.d.ts +1 -1
- package/lib/es/components/states/ErrorState.d.ts +1 -1
- package/lib/es/components/states/ForbiddenState.d.ts +1 -1
- package/lib/es/components/states/MaintenanceState.d.ts +1 -1
- package/lib/es/components/states/NotBookedState.d.ts +1 -1
- package/lib/es/components/states/NotFoundState.d.ts +1 -1
- package/lib/es/components/statsWidget/StatsWidget.d.ts +25 -21
- package/lib/es/components/statsWidget/StatsWidget.js +8 -16
- package/lib/es/components/statsWidget/StatsWidgetBody.d.ts +13 -12
- package/lib/es/components/statsWidget/StatsWidgetBody.js +6 -13
- package/lib/es/components/statsWidget/StatsWidgetFooter.d.ts +9 -2
- package/lib/es/components/statsWidget/StatsWidgetFooter.js +6 -5
- package/lib/es/components/statsWidget/StatsWidgetHeader.d.ts +8 -1
- package/lib/es/components/statsWidget/StatsWidgetHeader.js +5 -4
- package/lib/es/components/statsWidget/StatsWidgetNumber.d.ts +30 -20
- package/lib/es/components/statsWidget/StatsWidgetNumber.js +6 -19
- package/lib/es/components/statsWidget/StatsWidgetSpacer.d.ts +7 -1
- package/lib/es/components/statsWidget/StatsWidgetSpacer.js +4 -4
- package/lib/es/components/statsWidget/StatsWidgets.d.ts +8 -7
- package/lib/es/components/statsWidget/StatsWidgets.js +5 -8
- package/lib/es/components/statusBar/StatusBar.d.ts +32 -54
- package/lib/es/components/statusBar/StatusBar.js +51 -127
- package/lib/es/components/statusBar/StatusBar.types.d.ts +85 -0
- package/lib/es/components/statusBar/StatusBar.types.js +2 -0
- package/lib/es/components/statusBar/StatusBarConstants.d.ts +8 -0
- package/lib/es/components/statusBar/StatusBarConstants.js +16 -0
- package/lib/es/components/statusBar/StatusBarIcon.d.ts +7 -0
- package/lib/es/components/statusBar/StatusBarIcon.js +19 -0
- package/lib/es/components/statusBar/StatusBarLabel.d.ts +8 -0
- package/lib/es/components/statusBar/StatusBarLabel.js +23 -0
- package/lib/es/components/statusBar/StatusBarProgressBar.d.ts +8 -0
- package/lib/es/components/statusBar/StatusBarProgressBar.js +21 -0
- package/lib/es/components/steppedProgressBar/SteppedProgressBar.d.ts +1 -1
- package/lib/es/components/switch/Switch.d.ts +50 -28
- package/lib/es/components/switch/Switch.js +11 -27
- package/lib/es/components/table/SortArrows.d.ts +3 -3
- package/lib/es/components/table/TableCardsSorting.d.ts +1 -1
- package/lib/es/components/table/TableSearch.d.ts +1 -1
- package/lib/es/components/table/TableSettingsColumnButtons.d.ts +1 -1
- package/lib/es/components/table/TableSettingsColumnDetails.d.ts +1 -1
- package/lib/es/components/table/TableSettingsDialog.d.ts +4 -4
- package/lib/es/components/table/TableSettingsDialogFooter.d.ts +1 -1
- package/lib/es/components/table/TableSettingsListContainer.d.ts +1 -1
- package/lib/es/components/table/TableSettingsListItem.d.ts +1 -1
- package/lib/es/components/table/TableToolbar.d.ts +1 -1
- package/lib/es/components/table/TableViewToggles.d.ts +1 -1
- package/lib/es/components/tag/Tag.d.ts +1 -1
- package/lib/es/components/tag/TagList.d.ts +1 -1
- package/lib/es/components/tagManager/CustomSuggestionItem.d.ts +1 -1
- package/lib/es/components/tagManager/TagManager.d.ts +1 -1
- package/lib/es/components/tagManager/TagManagerItemList.d.ts +1 -1
- package/lib/es/components/teaser/Teaser.d.ts +8 -8
- package/lib/es/components/teaser/TeaserContainer.d.ts +1 -1
- package/lib/es/components/timepicker/TimePicker.d.ts +1 -1
- package/lib/es/components/tooltip/SimpleTooltip.d.ts +1 -1
- package/lib/es/components/video/ResponsiveVideo.d.ts +25 -5
- package/lib/es/components/video/ResponsiveVideo.js +4 -2
- package/lib/es/framer-motion.d.ts +1 -1
- package/lib/es/hooks/useEsc.d.ts +2 -1
- package/lib/es/hooks/useEsc.js +2 -2
- package/lib/es/hooks/useEvent.d.ts +2 -1
- package/lib/es/hooks/useEvent.js +9 -4
- package/lib/es/hooks/useFocusTrap.d.ts +16 -0
- package/lib/es/hooks/useFocusTrap.js +64 -0
- package/lib/es/hooks/useHover.d.ts +3 -0
- package/lib/es/hooks/useHover.js +31 -0
- package/lib/es/hooks/useKey.d.ts +3 -1
- package/lib/es/hooks/useKey.js +8 -4
- package/lib/es/hooks/usePrevious.d.ts +21 -1
- package/lib/es/hooks/usePrevious.js +30 -11
- package/lib/es/index.d.ts +35 -31
- package/lib/es/index.js +58 -35
- package/lib/es/types.d.ts +1 -239
- package/lib/es/types.js +1 -19
- package/lib/es/useAfterMount.d.ts +2 -4
- package/lib/es/useClickOutside.d.ts +2 -4
- package/lib/es/useClipboard.d.ts +2 -4
- package/lib/es/useDarkMode.d.ts +2 -4
- package/lib/es/useDebugInfo.d.ts +2 -4
- package/lib/es/useEffectOnce.d.ts +2 -4
- package/lib/es/useElementSize.d.ts +2 -4
- package/lib/es/useEsc.d.ts +1 -4
- package/lib/es/useEsc.js +5 -3
- package/lib/es/useEvent.d.ts +1 -4
- package/lib/es/useEvent.js +5 -3
- package/lib/es/useFocusTrap.d.ts +1 -0
- package/lib/es/useFocusTrap.js +8 -0
- package/lib/es/useFullscreen.d.ts +2 -4
- package/lib/es/useHover.d.ts +1 -0
- package/lib/es/useHover.js +8 -0
- package/lib/es/useInterval.d.ts +2 -4
- package/lib/es/useKey.d.ts +1 -4
- package/lib/es/useKey.js +5 -3
- package/lib/es/useLocalStorage.d.ts +2 -4
- package/lib/es/useMutationObserver.d.ts +2 -4
- package/lib/es/useOnScreen.d.ts +2 -4
- package/lib/es/useOnlineStatus.d.ts +2 -4
- package/lib/es/usePrevious.d.ts +2 -4
- package/lib/es/usePrevious.js +3 -2
- package/lib/es/useRenderCount.d.ts +2 -4
- package/lib/es/useResizeObserver.d.ts +2 -4
- package/lib/es/useScrollPosition.d.ts +2 -4
- package/lib/es/useSessionStorage.d.ts +2 -4
- package/lib/es/useStateWithValidation.d.ts +2 -4
- package/lib/es/useTimeout.d.ts +2 -4
- package/lib/es/useWindowResize.d.ts +2 -4
- package/lib/es/utils/buttonEffect.js +6 -2
- package/lib/es/utils/colorScheme.d.ts +1 -1
- package/lib/es/utils/darkModeCDN.d.ts +1 -1
- package/lib/es/utils/getDropDirection.d.ts +2 -4
- package/lib/es/utils/getDropDirection.js +12 -8
- package/lib/es/utils/init.d.ts +2 -2
- package/lib/es/utils/init.js +29 -6
- package/lib/es/utils/logDeprecatedWarnings.d.ts +8 -2
- package/lib/es/utils/logDeprecatedWarnings.js +2 -3
- package/lib/es/utils/useDropDirection.d.ts +12 -0
- package/lib/es/utils/useDropDirection.js +26 -0
- package/lib/es/version.json +1 -1
- package/package.json +1 -1
- package/version.json +1 -1
|
@@ -19,12 +19,12 @@ const RadioButton = props => {
|
|
|
19
19
|
const { checked, children, className, custom, defaultChecked, disabled, icon, iconLabelPosition, iconSize, inline, inputRef, label, name, onChange, onClick, right, tabIndex, value } = props, remainingProps = tslib_1.__rest(props, ["checked", "children", "className", "custom", "defaultChecked", "disabled", "icon", "iconLabelPosition", "iconSize", "inline", "inputRef", "label", "name", "onChange", "onClick", "right", "tabIndex", "value"]);
|
|
20
20
|
const labelRef = (0, react_1.useRef)();
|
|
21
21
|
const handleToggleKeyDown = event => {
|
|
22
|
-
switch (event.
|
|
23
|
-
case
|
|
22
|
+
switch (event.key) {
|
|
23
|
+
case ' ':
|
|
24
24
|
// toggle on space
|
|
25
25
|
toggle(event);
|
|
26
26
|
break;
|
|
27
|
-
case
|
|
27
|
+
case 'Enter':
|
|
28
28
|
// open on enter
|
|
29
29
|
toggle(event);
|
|
30
30
|
break;
|
|
@@ -1,9 +1,35 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
export type NoteContent = (React.ReactNode | JSX.Element) | (React.ReactNode | JSX.Element)[];
|
|
3
|
+
export type NoteProps = {
|
|
4
|
+
version: string;
|
|
5
|
+
note: {
|
|
6
|
+
date: string;
|
|
7
|
+
content: NoteContent;
|
|
8
|
+
};
|
|
9
|
+
};
|
|
10
|
+
export type ReleaseNotesProps = {
|
|
11
|
+
/**
|
|
12
|
+
* Translated release notes of the following shape:
|
|
13
|
+
* @example
|
|
14
|
+
* {
|
|
15
|
+
"0.1.2": {
|
|
16
|
+
date: '23.07.2018',
|
|
17
|
+
content: (
|
|
18
|
+
<div className='padding-left-15'>
|
|
19
|
+
Map view within the tour history table
|
|
20
|
+
• Modern map design as used in the Beta of the fleet monitor
|
|
21
|
+
• Works with all event types
|
|
22
|
+
</div>
|
|
23
|
+
),
|
|
24
|
+
}
|
|
25
|
+
}
|
|
26
|
+
*/
|
|
27
|
+
releaseNotes: {
|
|
28
|
+
[key: string]: {
|
|
29
|
+
date: string;
|
|
30
|
+
content: NoteContent;
|
|
31
|
+
};
|
|
32
|
+
};
|
|
33
|
+
};
|
|
34
|
+
declare const ReleaseNotes: (props: ReleaseNotesProps) => import("react/jsx-runtime").JSX.Element;
|
|
1
35
|
export default ReleaseNotes;
|
|
2
|
-
declare function ReleaseNotes(props: any): JSX.Element;
|
|
3
|
-
declare namespace ReleaseNotes {
|
|
4
|
-
const defaultProps: {};
|
|
5
|
-
namespace propTypes {
|
|
6
|
-
const releaseNotes: PropTypes.Requireable<object>;
|
|
7
|
-
}
|
|
8
|
-
}
|
|
9
|
-
import PropTypes from "prop-types";
|
|
@@ -2,28 +2,18 @@
|
|
|
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
|
-
|
|
5
|
+
// @ts-ignore-next-line importsNotUsedAsValues
|
|
6
|
+
require("react");
|
|
7
7
|
const isArray_1 = tslib_1.__importDefault(require("lodash/fp/isArray"));
|
|
8
8
|
const map_1 = tslib_1.__importDefault(require("lodash/fp/map"));
|
|
9
9
|
const toPairs_1 = tslib_1.__importDefault(require("lodash/fp/toPairs"));
|
|
10
|
-
const
|
|
11
|
-
const
|
|
12
|
-
const getNotes = (content, version) => {
|
|
13
|
-
return (0, map_1.default)(point => {
|
|
14
|
-
return (0, jsx_runtime_1.jsx)("li", { children: point }, `${version}-note-${Math.random()}`);
|
|
15
|
-
}, content);
|
|
16
|
-
};
|
|
17
|
-
const renderNotes = (note, version) => {
|
|
10
|
+
const Note = (props) => {
|
|
11
|
+
const { note, version } = props;
|
|
18
12
|
const { date, content } = note;
|
|
19
|
-
return ((0, jsx_runtime_1.jsxs)("div", Object.assign({ className: 'panel panel-default' }, { children: [(0, jsx_runtime_1.jsx)("div", Object.assign({ className: 'panel-heading' }, { children: (0, jsx_runtime_1.jsxs)("div", Object.assign({ className: 'display-flex justify-content-between' }, { children: [(0, jsx_runtime_1.jsx)("span", Object.assign({ className: 'text-size-16 text-medium' }, { children: `${version}` })), (0, jsx_runtime_1.jsx)("span", Object.assign({ className: 'text-muted text-thin' }, { children: date }))] })) })), (0, jsx_runtime_1.jsx)("div", Object.assign({ className: 'panel-body white-space-pre-line' }, { children: (0, isArray_1.default)(content) ?
|
|
20
|
-
};
|
|
21
|
-
const getReleases = ({ releaseNotes }) => {
|
|
22
|
-
return (0, map_1.default)(([key, note]) => renderNotes(note, key), (0, toPairs_1.default)(releaseNotes));
|
|
13
|
+
return ((0, jsx_runtime_1.jsxs)("div", Object.assign({ className: 'panel panel-default' }, { children: [(0, jsx_runtime_1.jsx)("div", Object.assign({ className: 'panel-heading' }, { children: (0, jsx_runtime_1.jsxs)("div", Object.assign({ className: 'display-flex justify-content-between' }, { children: [(0, jsx_runtime_1.jsx)("span", Object.assign({ className: 'text-size-16 text-medium' }, { children: `${version}` })), (0, jsx_runtime_1.jsx)("span", Object.assign({ className: 'text-muted text-thin' }, { children: date }))] })) })), (0, jsx_runtime_1.jsx)("div", Object.assign({ className: 'panel-body white-space-pre-line' }, { children: (0, isArray_1.default)(content) ? ((0, jsx_runtime_1.jsx)("ul", Object.assign({ className: 'margin-bottom-0 margin-left-5 padding-left-25' }, { children: (0, map_1.default)((item) => ((0, jsx_runtime_1.jsx)("li", { children: item }, `${version}-note-${Math.random()}`)), content) }))) : ((0, jsx_runtime_1.jsx)("div", { children: content })) }))] }), `${version}-note`));
|
|
23
14
|
};
|
|
24
|
-
const ReleaseNotes = props =>
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
releaseNotes: prop_types_1.default.object,
|
|
15
|
+
const ReleaseNotes = (props) => {
|
|
16
|
+
const { releaseNotes } = props, remainingProps = tslib_1.__rest(props, ["releaseNotes"]);
|
|
17
|
+
return ((0, jsx_runtime_1.jsx)("div", Object.assign({}, remainingProps, { children: (0, map_1.default)(([key, note]) => ((0, jsx_runtime_1.jsx)(Note, { note: note, version: key }, key)), (0, toPairs_1.default)(releaseNotes)) })));
|
|
28
18
|
};
|
|
29
19
|
exports.default = ReleaseNotes;
|
|
@@ -1,65 +1,58 @@
|
|
|
1
|
+
import { type MouseEvent, type TouchEvent, type PropsWithChildren } from 'react';
|
|
2
|
+
declare const HORIZONTAL = "x";
|
|
3
|
+
declare const VERTICAL = "y";
|
|
4
|
+
declare const LEFT = "left";
|
|
5
|
+
declare const RIGHT = "right";
|
|
6
|
+
declare const TOP = "top";
|
|
7
|
+
declare const BOTTOM = "bottom";
|
|
8
|
+
export type ResizerProps = {
|
|
9
|
+
/**
|
|
10
|
+
* Defines where the resize handle is positioned relative to the element to resize.
|
|
11
|
+
*
|
|
12
|
+
* Possible values are:
|
|
13
|
+
* `Resizer.LEFT`, `Resizer.RIGHT`, `Resizer.TOP`, `Resizer.BOTTOM` or
|
|
14
|
+
* `left`, `right`, `top`, `bottom`.
|
|
15
|
+
*/
|
|
16
|
+
position?: typeof LEFT | typeof RIGHT | typeof TOP | typeof BOTTOM;
|
|
17
|
+
/**
|
|
18
|
+
* Defines on which axis to resize.
|
|
19
|
+
*
|
|
20
|
+
* Possible values are:
|
|
21
|
+
* `Resizer.HORIZONTAL`, `Resizer.VERTICAL` or `x`, `y`.
|
|
22
|
+
*/
|
|
23
|
+
direction?: typeof HORIZONTAL | typeof VERTICAL;
|
|
24
|
+
/**
|
|
25
|
+
* Callback when the resize starts, means when the handle is pressed. It returns the respective event.
|
|
26
|
+
* @param event
|
|
27
|
+
* @returns
|
|
28
|
+
*/
|
|
29
|
+
onResizeStart?: (event: MouseEvent | TouchEvent) => void;
|
|
30
|
+
/**
|
|
31
|
+
* Callback when the resize handle is moved. The function returns the distant between the last
|
|
32
|
+
* position and the mouse movement. Means you can either subtract or add this diff to the elements
|
|
33
|
+
* width you want to change.
|
|
34
|
+
* @param diff
|
|
35
|
+
* @returns
|
|
36
|
+
*/
|
|
37
|
+
onResize?: (diff: number) => void;
|
|
38
|
+
/**
|
|
39
|
+
* Callback when the resize ends, means when the handle is released. It returns the respective event.
|
|
40
|
+
* @param event
|
|
41
|
+
* @returns
|
|
42
|
+
*/
|
|
43
|
+
onResizeEnd?: (event: Event) => void;
|
|
44
|
+
/**
|
|
45
|
+
* Additional classes to be set on the wrapper element.
|
|
46
|
+
*/
|
|
47
|
+
className?: string;
|
|
48
|
+
};
|
|
49
|
+
declare const Resizer: {
|
|
50
|
+
(props: PropsWithChildren<ResizerProps>): import("react/jsx-runtime").JSX.Element;
|
|
51
|
+
HORIZONTAL: "x";
|
|
52
|
+
VERTICAL: "y";
|
|
53
|
+
LEFT: "left";
|
|
54
|
+
RIGHT: "right";
|
|
55
|
+
TOP: "top";
|
|
56
|
+
BOTTOM: "bottom";
|
|
57
|
+
};
|
|
1
58
|
export default Resizer;
|
|
2
|
-
declare class Resizer extends React.Component<any, any, any> {
|
|
3
|
-
constructor(props: any);
|
|
4
|
-
state: {
|
|
5
|
-
isDrag: boolean;
|
|
6
|
-
startPos: {
|
|
7
|
-
x: number;
|
|
8
|
-
y: number;
|
|
9
|
-
};
|
|
10
|
-
};
|
|
11
|
-
handleMove(event: any): void;
|
|
12
|
-
handleStart(event: any): void;
|
|
13
|
-
handleEnd(event: any): void;
|
|
14
|
-
listeners: () => {
|
|
15
|
-
remove(): void;
|
|
16
|
-
};
|
|
17
|
-
componentWillUnmount(): void;
|
|
18
|
-
isTouch(event: any): boolean;
|
|
19
|
-
getClientX(event: any): any;
|
|
20
|
-
getClientY(event: any): any;
|
|
21
|
-
events: {
|
|
22
|
-
remove(): void;
|
|
23
|
-
} | undefined;
|
|
24
|
-
removeListeners(): void;
|
|
25
|
-
updateStartPosition(event: any): void;
|
|
26
|
-
getStartPos(event: any): {
|
|
27
|
-
x: any;
|
|
28
|
-
y: any;
|
|
29
|
-
};
|
|
30
|
-
render(): JSX.Element;
|
|
31
|
-
}
|
|
32
|
-
declare namespace Resizer {
|
|
33
|
-
const HORIZONTAL: string;
|
|
34
|
-
const VERTICAL: string;
|
|
35
|
-
const LEFT: string;
|
|
36
|
-
const RIGHT: string;
|
|
37
|
-
const TOP: string;
|
|
38
|
-
const BOTTOM: string;
|
|
39
|
-
namespace defaultProps {
|
|
40
|
-
export const className: string;
|
|
41
|
-
import direction = Resizer.HORIZONTAL;
|
|
42
|
-
export { direction };
|
|
43
|
-
import position = Resizer.RIGHT;
|
|
44
|
-
export { position };
|
|
45
|
-
export function onResizeStart(): void;
|
|
46
|
-
export function onResize(): void;
|
|
47
|
-
export function onResizeEnd(): void;
|
|
48
|
-
}
|
|
49
|
-
namespace propTypes {
|
|
50
|
-
const className_1: PropTypes.Requireable<string>;
|
|
51
|
-
export { className_1 as className };
|
|
52
|
-
const direction_1: PropTypes.Requireable<string>;
|
|
53
|
-
export { direction_1 as direction };
|
|
54
|
-
const position_1: PropTypes.Requireable<string>;
|
|
55
|
-
export { position_1 as position };
|
|
56
|
-
const onResizeStart_1: PropTypes.Requireable<(...args: any[]) => any>;
|
|
57
|
-
export { onResizeStart_1 as onResizeStart };
|
|
58
|
-
const onResize_1: PropTypes.Validator<(...args: any[]) => any>;
|
|
59
|
-
export { onResize_1 as onResize };
|
|
60
|
-
const onResizeEnd_1: PropTypes.Requireable<(...args: any[]) => any>;
|
|
61
|
-
export { onResizeEnd_1 as onResizeEnd };
|
|
62
|
-
}
|
|
63
|
-
}
|
|
64
|
-
import React from "react";
|
|
65
|
-
import PropTypes from "prop-types";
|
|
@@ -2,130 +2,130 @@
|
|
|
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"));
|
|
7
|
-
const ownerDocument_1 = tslib_1.__importDefault(require("../../utils/ownerDocument"));
|
|
8
|
-
const addEventListener_1 = tslib_1.__importDefault(require("../../utils/addEventListener"));
|
|
5
|
+
const react_1 = require("react");
|
|
9
6
|
const classnames_1 = tslib_1.__importDefault(require("classnames"));
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
7
|
+
const noop_1 = tslib_1.__importDefault(require("lodash/fp/noop"));
|
|
8
|
+
const HORIZONTAL = 'x';
|
|
9
|
+
const VERTICAL = 'y';
|
|
10
|
+
const LEFT = 'left';
|
|
11
|
+
const RIGHT = 'right';
|
|
12
|
+
const TOP = 'top';
|
|
13
|
+
const BOTTOM = 'bottom';
|
|
14
|
+
const createListeners = (targetNode, onEnd, onMove) => {
|
|
15
|
+
if (!targetNode) {
|
|
16
|
+
return;
|
|
17
|
+
}
|
|
18
|
+
// The read-only ownerDocument property of the Node interface returns
|
|
19
|
+
// the top-level document object of the node.
|
|
20
|
+
const ownerDocument = targetNode.ownerDocument;
|
|
21
|
+
ownerDocument.addEventListener('mouseup', onEnd);
|
|
22
|
+
ownerDocument.addEventListener('mousemove', onMove);
|
|
23
|
+
ownerDocument.addEventListener('touchend', onEnd);
|
|
24
|
+
ownerDocument.addEventListener('touchmove', onMove);
|
|
25
|
+
return {
|
|
26
|
+
remove: () => {
|
|
27
|
+
ownerDocument.removeEventListener('mouseup', onEnd);
|
|
28
|
+
ownerDocument.removeEventListener('mousemove', onMove);
|
|
29
|
+
ownerDocument.removeEventListener('touchend', onEnd);
|
|
30
|
+
ownerDocument.removeEventListener('touchmove', onMove);
|
|
31
|
+
},
|
|
32
|
+
};
|
|
33
|
+
};
|
|
34
|
+
const Resizer = (props) => {
|
|
35
|
+
const { className = '', direction = HORIZONTAL, position = RIGHT, onResizeStart = noop_1.default, onResize = noop_1.default, onResizeEnd = noop_1.default, children } = props, remainingProps = tslib_1.__rest(props, ["className", "direction", "position", "onResizeStart", "onResize", "onResizeEnd", "children"]);
|
|
36
|
+
const eventsRef = (0, react_1.useRef)(null);
|
|
37
|
+
// Use refs here instead of local state as the move event listener fired before the state is set
|
|
38
|
+
// and then it would work with outdated state at that time.
|
|
39
|
+
const elementRef = (0, react_1.useRef)(null);
|
|
40
|
+
const isDragRef = (0, react_1.useRef)(false);
|
|
41
|
+
const startPositionRef = (0, react_1.useRef)({ x: 0, y: 0 });
|
|
42
|
+
(0, react_1.useEffect)(() => {
|
|
43
|
+
return () => {
|
|
44
|
+
removeListeners();
|
|
19
45
|
};
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
46
|
+
}, []);
|
|
47
|
+
const getClientX = (event) => {
|
|
48
|
+
if (event instanceof TouchEvent) {
|
|
49
|
+
return event.touches[0].clientX;
|
|
50
|
+
}
|
|
51
|
+
if (event instanceof MouseEvent) {
|
|
52
|
+
return event.clientX;
|
|
53
|
+
}
|
|
54
|
+
throw new Error('Unsupported event type');
|
|
55
|
+
};
|
|
56
|
+
const getClientY = (event) => {
|
|
57
|
+
if (event instanceof TouchEvent) {
|
|
58
|
+
return event.touches[0].clientY;
|
|
59
|
+
}
|
|
60
|
+
if (event instanceof MouseEvent) {
|
|
61
|
+
return event.clientY;
|
|
62
|
+
}
|
|
63
|
+
throw new Error('Unsupported event type');
|
|
64
|
+
};
|
|
65
|
+
const handleMouseStart = (event) => {
|
|
66
|
+
isDragRef.current = true;
|
|
67
|
+
// Use the native event to check for the event type. Otherwise the type check
|
|
68
|
+
// fails and the start position would be { x: 0, y: 0 }.
|
|
69
|
+
const mouseEvent = event.nativeEvent;
|
|
70
|
+
const { clientX, clientY } = mouseEvent;
|
|
71
|
+
startPositionRef.current = {
|
|
72
|
+
x: clientX,
|
|
73
|
+
y: clientY,
|
|
37
74
|
};
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
75
|
+
onResizeStart(event);
|
|
76
|
+
eventsRef.current = createListeners(elementRef.current, handleEnd, handleMove);
|
|
77
|
+
};
|
|
78
|
+
const handleTouchStart = (event) => {
|
|
79
|
+
isDragRef.current = true;
|
|
80
|
+
// Use the native event to check for the event type. Otherwise the type check
|
|
81
|
+
// fails and the start position would be { x: 0, y: 0 }.
|
|
82
|
+
const touchEvent = event.nativeEvent;
|
|
83
|
+
const firstTouch = touchEvent.touches[0];
|
|
84
|
+
startPositionRef.current = {
|
|
85
|
+
x: firstTouch.clientX,
|
|
86
|
+
y: firstTouch.clientY,
|
|
87
|
+
};
|
|
88
|
+
onResizeStart(event);
|
|
89
|
+
eventsRef.current = createListeners(elementRef.current, handleEnd, handleMove);
|
|
90
|
+
};
|
|
91
|
+
const handleMove = (event) => {
|
|
92
|
+
if (!isDragRef.current) {
|
|
54
93
|
return;
|
|
55
94
|
}
|
|
56
|
-
const { direction, onResize } = this.props;
|
|
57
95
|
if (direction === Resizer.HORIZONTAL) {
|
|
58
|
-
const diff =
|
|
96
|
+
const diff = startPositionRef.current.x - getClientX(event);
|
|
59
97
|
if (diff !== 0) {
|
|
60
98
|
onResize(diff);
|
|
61
99
|
}
|
|
62
100
|
}
|
|
63
101
|
if (direction === Resizer.VERTICAL) {
|
|
64
|
-
const diff =
|
|
102
|
+
const diff = startPositionRef.current.y - getClientY(event);
|
|
65
103
|
if (diff !== 0) {
|
|
66
104
|
onResize(diff);
|
|
67
105
|
}
|
|
68
106
|
}
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
event.preventDefault();
|
|
73
|
-
this.setState({
|
|
74
|
-
isDrag: true,
|
|
75
|
-
startPos: this.getStartPos(event),
|
|
76
|
-
});
|
|
77
|
-
this.props.onResizeStart(event);
|
|
78
|
-
this.events = this.listeners();
|
|
79
|
-
}
|
|
80
|
-
handleEnd(event) {
|
|
81
|
-
this.setState({
|
|
82
|
-
isDrag: false,
|
|
83
|
-
});
|
|
84
|
-
this.props.onResizeEnd(event);
|
|
85
|
-
this.removeListeners();
|
|
86
|
-
}
|
|
87
|
-
removeListeners() {
|
|
88
|
-
if (this.events) {
|
|
89
|
-
this.events.remove();
|
|
90
|
-
}
|
|
91
|
-
}
|
|
92
|
-
updateStartPosition(event) {
|
|
93
|
-
this.setState({
|
|
94
|
-
startPos: this.getStartPos(event),
|
|
95
|
-
});
|
|
96
|
-
}
|
|
97
|
-
getStartPos(event) {
|
|
98
|
-
return {
|
|
99
|
-
x: this.getClientX(event),
|
|
100
|
-
y: this.getClientY(event),
|
|
107
|
+
startPositionRef.current = {
|
|
108
|
+
x: getClientX(event),
|
|
109
|
+
y: getClientY(event),
|
|
101
110
|
};
|
|
102
|
-
}
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
}
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
Resizer.defaultProps = {
|
|
116
|
-
className: '',
|
|
117
|
-
direction: Resizer.HORIZONTAL,
|
|
118
|
-
position: Resizer.RIGHT,
|
|
119
|
-
onResizeStart: () => { },
|
|
120
|
-
onResize: () => { },
|
|
121
|
-
onResizeEnd: () => { },
|
|
122
|
-
};
|
|
123
|
-
Resizer.propTypes = {
|
|
124
|
-
className: prop_types_1.default.string,
|
|
125
|
-
direction: prop_types_1.default.oneOf([Resizer.HORIZONTAL, Resizer.VERTICAL]),
|
|
126
|
-
position: prop_types_1.default.oneOf([Resizer.LEFT, Resizer.RIGHT, Resizer.TOP, Resizer.BOTTOM]),
|
|
127
|
-
onResizeStart: prop_types_1.default.func,
|
|
128
|
-
onResize: prop_types_1.default.func.isRequired,
|
|
129
|
-
onResizeEnd: prop_types_1.default.func,
|
|
111
|
+
};
|
|
112
|
+
const handleEnd = (event) => {
|
|
113
|
+
isDragRef.current = false;
|
|
114
|
+
onResizeEnd(event);
|
|
115
|
+
removeListeners();
|
|
116
|
+
};
|
|
117
|
+
const removeListeners = () => {
|
|
118
|
+
if (eventsRef.current) {
|
|
119
|
+
eventsRef.current.remove();
|
|
120
|
+
}
|
|
121
|
+
};
|
|
122
|
+
const wrapperClasses = (0, classnames_1.default)('Resizer', direction === 'x' && 'resize-horizontal', direction === 'y' && 'resize-vertical', position === 'left' && 'resize-left', position === 'right' && 'resize-right', position === 'top' && 'resize-top', position === 'bottom' && 'resize-bottom', className && className);
|
|
123
|
+
return ((0, jsx_runtime_1.jsx)("div", Object.assign({ ref: elementRef, className: wrapperClasses, onMouseDown: handleMouseStart, onTouchStart: handleTouchStart }, remainingProps, { children: children })));
|
|
130
124
|
};
|
|
125
|
+
Resizer.HORIZONTAL = HORIZONTAL;
|
|
126
|
+
Resizer.VERTICAL = VERTICAL;
|
|
127
|
+
Resizer.LEFT = LEFT;
|
|
128
|
+
Resizer.RIGHT = RIGHT;
|
|
129
|
+
Resizer.TOP = TOP;
|
|
130
|
+
Resizer.BOTTOM = BOTTOM;
|
|
131
131
|
exports.default = Resizer;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
export default RuleContainer;
|
|
2
|
-
declare function RuleContainer(props: any): JSX.Element | null;
|
|
2
|
+
declare function RuleContainer(props: any): import("react/jsx-runtime").JSX.Element | null;
|
|
3
3
|
declare namespace RuleContainer {
|
|
4
4
|
namespace defaultProps {
|
|
5
5
|
const show: boolean;
|
|
@@ -1,14 +1,46 @@
|
|
|
1
1
|
import { type Attributes } from 'react';
|
|
2
2
|
export type SaveableInputProps = {
|
|
3
|
+
/**
|
|
4
|
+
* The input placeholder.
|
|
5
|
+
*/
|
|
3
6
|
placeholder?: string;
|
|
7
|
+
/**
|
|
8
|
+
* The previous or old value shown above the input value.
|
|
9
|
+
* This value will *not* be changed for new input values.
|
|
10
|
+
*/
|
|
4
11
|
fixedPreviousValue?: string;
|
|
12
|
+
/**
|
|
13
|
+
* The previous or old value shown above the input value.
|
|
14
|
+
* This value *changes* when a new input value is accepted.
|
|
15
|
+
*/
|
|
5
16
|
previousValue?: string;
|
|
17
|
+
/**
|
|
18
|
+
* The actual input value.
|
|
19
|
+
*/
|
|
6
20
|
value?: string;
|
|
21
|
+
/**
|
|
22
|
+
* Callback function triggered when the value changes.
|
|
23
|
+
* @param value
|
|
24
|
+
* @param previousValue
|
|
25
|
+
* @returns
|
|
26
|
+
*/
|
|
7
27
|
onValueChanged?: (value: string, previousValue: string) => void;
|
|
28
|
+
/**
|
|
29
|
+
* Defines the button style: `default` or `primary`.
|
|
30
|
+
*/
|
|
8
31
|
buttonStyle?: 'primary' | 'default';
|
|
32
|
+
/**
|
|
33
|
+
* Additional HTML attributes to be set on the input element.
|
|
34
|
+
*/
|
|
35
|
+
inputProps?: Attributes;
|
|
36
|
+
/**
|
|
37
|
+
* Additional classes to be set on the input itself.
|
|
38
|
+
*/
|
|
9
39
|
inputClassName?: string;
|
|
40
|
+
/**
|
|
41
|
+
* Additional classes to be set on the wrapper element.
|
|
42
|
+
*/
|
|
10
43
|
className?: string;
|
|
11
|
-
inputProps?: Attributes;
|
|
12
44
|
};
|
|
13
|
-
declare const SaveableInput: (props: SaveableInputProps) => JSX.Element;
|
|
45
|
+
declare const SaveableInput: (props: SaveableInputProps) => import("react/jsx-runtime").JSX.Element;
|
|
14
46
|
export default SaveableInput;
|
|
@@ -20,9 +20,9 @@ export class BaseDropdownMenu extends React.Component<any, any, any> {
|
|
|
20
20
|
}[] | undefined;
|
|
21
21
|
getFocusedOptionNode(): any;
|
|
22
22
|
selectOptionOnEnter(event: any): void;
|
|
23
|
-
render(): JSX.Element | null;
|
|
23
|
+
render(): import("react/jsx-runtime").JSX.Element | null;
|
|
24
24
|
refDropdownMenu: HTMLUListElement | null | undefined;
|
|
25
|
-
renderMenuOption(option: any, index: any): JSX.Element;
|
|
25
|
+
renderMenuOption(option: any, index: any): import("react/jsx-runtime").JSX.Element;
|
|
26
26
|
getSelectedFocusedItemIndex(): any;
|
|
27
27
|
isAutoDropActive(): boolean;
|
|
28
28
|
openMenu(nextProps: any): void;
|
|
@@ -20,18 +20,18 @@ export class Multiselect extends React.Component<any, any, any> {
|
|
|
20
20
|
UNSAFE_componentWillMount(): void;
|
|
21
21
|
UNSAFE_componentWillReceiveProps(nextProps: any): void;
|
|
22
22
|
updateSelectedItems(options: any, value: any): void;
|
|
23
|
-
render(): JSX.Element;
|
|
23
|
+
render(): import("react/jsx-runtime").JSX.Element;
|
|
24
24
|
multiselectWrapper: HTMLDivElement | null | undefined;
|
|
25
|
-
buildSelectionRepresentation(options: any): JSX.Element | "";
|
|
25
|
+
buildSelectionRepresentation(options: any): import("react/jsx-runtime").JSX.Element | "";
|
|
26
26
|
renderCounterMessage(selectedItems: any, counterMessage: any, renderCounterMessage: any): any;
|
|
27
27
|
isItemSelected(item: any): boolean;
|
|
28
|
-
renderSelectionItem(item: any, index: any): JSX.Element;
|
|
28
|
+
renderSelectionItem(item: any, index: any): import("react/jsx-runtime").JSX.Element;
|
|
29
29
|
renderSelection(): any;
|
|
30
|
-
renderPlaceholder(placeholder: any): JSX.Element;
|
|
31
|
-
renderToggle(): JSX.Element;
|
|
30
|
+
renderPlaceholder(placeholder: any): import("react/jsx-runtime").JSX.Element;
|
|
31
|
+
renderToggle(): import("react/jsx-runtime").JSX.Element;
|
|
32
32
|
refToggle: HTMLDivElement | null | undefined;
|
|
33
|
-
renderDropdownMenu(): JSX.Element;
|
|
34
|
-
renderFilterInput(): JSX.Element;
|
|
33
|
+
renderDropdownMenu(): import("react/jsx-runtime").JSX.Element;
|
|
34
|
+
renderFilterInput(): import("react/jsx-runtime").JSX.Element;
|
|
35
35
|
filterOptions(itemDOMValues: any, filterValue: any, options: any): any;
|
|
36
36
|
updateSelection(selectedItemId: any): any;
|
|
37
37
|
removeSelectedItem(event: any, itemId: any): void;
|
|
@@ -21,15 +21,15 @@ export class Select extends React.Component<any, any, any> {
|
|
|
21
21
|
onOpenMenu(dropup: any): void;
|
|
22
22
|
UNSAFE_componentWillMount(): void;
|
|
23
23
|
UNSAFE_componentWillReceiveProps(nextProps: any): void;
|
|
24
|
-
render(): JSX.Element;
|
|
24
|
+
render(): import("react/jsx-runtime").JSX.Element;
|
|
25
25
|
refSelect: HTMLDivElement | null | undefined;
|
|
26
|
-
renderUnselectedItemIcons(options: any, selectedItem: any): JSX.Element;
|
|
27
|
-
getSelectedItemLabel(selectedItem: any, placeholder: any): JSX.Element | " ";
|
|
28
|
-
renderClearButton(): JSX.Element;
|
|
29
|
-
renderToggle(): JSX.Element;
|
|
26
|
+
renderUnselectedItemIcons(options: any, selectedItem: any): import("react/jsx-runtime").JSX.Element;
|
|
27
|
+
getSelectedItemLabel(selectedItem: any, placeholder: any): import("react/jsx-runtime").JSX.Element | " ";
|
|
28
|
+
renderClearButton(): import("react/jsx-runtime").JSX.Element;
|
|
29
|
+
renderToggle(): import("react/jsx-runtime").JSX.Element;
|
|
30
30
|
refToggle: HTMLButtonElement | null | undefined;
|
|
31
|
-
renderDropdownMenu(): JSX.Element;
|
|
32
|
-
renderFilterInput(): JSX.Element;
|
|
31
|
+
renderDropdownMenu(): import("react/jsx-runtime").JSX.Element;
|
|
32
|
+
renderFilterInput(): import("react/jsx-runtime").JSX.Element;
|
|
33
33
|
filterOptions(itemDOMValues: any[] | undefined, filterValue: any, options: any): any;
|
|
34
34
|
isAutoDropActive(): boolean;
|
|
35
35
|
}
|
|
@@ -24,7 +24,7 @@ declare class Sidebar extends React.Component<any, any, any> {
|
|
|
24
24
|
getWidthInBoundaries(minWidth: any, maxWidth: any, width: any): any;
|
|
25
25
|
handlePrevContent(): void;
|
|
26
26
|
handleNextContent(): void;
|
|
27
|
-
render(): JSX.Element;
|
|
27
|
+
render(): import("react/jsx-runtime").JSX.Element;
|
|
28
28
|
sidebarRef: HTMLDivElement | null | undefined;
|
|
29
29
|
}
|
|
30
30
|
declare namespace Sidebar {
|