@rio-cloud/uikit-mcp 1.1.11 → 1.1.12
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/dist/doc-metadata.json +26 -26
- package/dist/docs/components/accentBar.md +1 -1
- package/dist/docs/components/activity.md +1 -1
- package/dist/docs/components/analyticsAnalysisOverlay.md +1 -1
- package/dist/docs/components/animatedNumber.md +2 -2
- package/dist/docs/components/animatedTextReveal.md +6 -6
- package/dist/docs/components/animations.md +21 -21
- package/dist/docs/components/appHeader.md +1 -1
- package/dist/docs/components/appLayout.md +39 -23
- package/dist/docs/components/appNavigationBar.md +1 -1
- package/dist/docs/components/areaCharts.md +4 -4
- package/dist/docs/components/aspectRatioPlaceholder.md +1 -1
- package/dist/docs/components/assetTree.md +384 -420
- package/dist/docs/components/autosuggests.md +1 -1
- package/dist/docs/components/avatar.md +1 -1
- package/dist/docs/components/banner.md +2 -2
- package/dist/docs/components/barCharts.md +13 -13
- package/dist/docs/components/barList.md +10 -10
- package/dist/docs/components/basicMap.md +1 -1
- package/dist/docs/components/bottomSheet.md +1 -1
- package/dist/docs/components/button.md +1 -1
- package/dist/docs/components/buttonToolbar.md +1 -1
- package/dist/docs/components/calendarStripe.md +45 -49
- package/dist/docs/components/card.md +1 -1
- package/dist/docs/components/carousel.md +1 -1
- package/dist/docs/components/chartColors.md +1 -1
- package/dist/docs/components/chartsGettingStarted.md +1 -1
- package/dist/docs/components/chat.md +2 -2
- package/dist/docs/components/checkbox.md +1 -1
- package/dist/docs/components/circularProgress.md +8 -8
- package/dist/docs/components/clearableInput.md +1 -1
- package/dist/docs/components/collapse.md +2 -2
- package/dist/docs/components/composedCharts.md +15 -15
- package/dist/docs/components/contentLoader.md +1 -1
- package/dist/docs/components/dataTabs.md +1 -1
- package/dist/docs/components/datepickers.md +660 -660
- package/dist/docs/components/dayPicker.md +5 -5
- package/dist/docs/components/dayPickerCalendar.md +469 -469
- package/dist/docs/components/dialogs.md +1 -1
- package/dist/docs/components/divider.md +1 -1
- package/dist/docs/components/dropdowns.md +3270 -3256
- package/dist/docs/components/editableContent.md +1 -1
- package/dist/docs/components/expander.md +1 -1
- package/dist/docs/components/fade.md +1 -1
- package/dist/docs/components/fadeExpander.md +1 -1
- package/dist/docs/components/fadeUp.md +2 -2
- package/dist/docs/components/feedback.md +1 -1
- package/dist/docs/components/filePickers.md +1 -1
- package/dist/docs/components/formLabel.md +1 -1
- package/dist/docs/components/groupedItemList.md +1 -1
- package/dist/docs/components/htmlTable.md +111 -113
- package/dist/docs/components/iconList.md +3 -3
- package/dist/docs/components/imagePreloader.md +1 -1
- package/dist/docs/components/labeledElement.md +1 -1
- package/dist/docs/components/licensePlate.md +1 -1
- package/dist/docs/components/lineCharts.md +3 -3
- package/dist/docs/components/listMenu.md +1 -1
- package/dist/docs/components/loadMore.md +1 -1
- package/dist/docs/components/mainNavigation.md +1 -1
- package/dist/docs/components/mapCircle.md +1 -1
- package/dist/docs/components/mapCluster.md +1 -1
- package/dist/docs/components/mapContext.md +1 -1
- package/dist/docs/components/mapDraggableMarker.md +1 -1
- package/dist/docs/components/mapGettingStarted.md +1 -1
- package/dist/docs/components/mapInfoBubble.md +1 -1
- package/dist/docs/components/mapLayerGroup.md +1 -1
- package/dist/docs/components/mapMarker.md +1 -1
- package/dist/docs/components/mapPolygon.md +1 -1
- package/dist/docs/components/mapRoute.md +1 -1
- package/dist/docs/components/mapSettings.md +31 -9
- package/dist/docs/components/mapUtils.md +65 -2
- package/dist/docs/components/mapViewportHistory.md +1 -1
- package/dist/docs/components/multiselects.md +165 -1
- package/dist/docs/components/noData.md +1 -1
- package/dist/docs/components/notifications.md +1 -1
- package/dist/docs/components/numbercontrol.md +1 -1
- package/dist/docs/components/onboarding.md +1 -1
- package/dist/docs/components/page.md +1 -1
- package/dist/docs/components/pager.md +1 -1
- package/dist/docs/components/pieCharts.md +36 -36
- package/dist/docs/components/popover.md +1 -1
- package/dist/docs/components/position.md +1 -1
- package/dist/docs/components/radialBarCharts.md +25 -25
- package/dist/docs/components/radioCardGroup.md +1 -1
- package/dist/docs/components/radiobutton.md +1 -1
- package/dist/docs/components/releaseNotes.md +1 -1
- package/dist/docs/components/resizer.md +1 -1
- package/dist/docs/components/responsiveColumnStripe.md +1 -1
- package/dist/docs/components/responsiveVideo.md +1 -1
- package/dist/docs/components/rioglyph.md +1 -1
- package/dist/docs/components/rules.md +1 -1
- package/dist/docs/components/saveableInput.md +247 -247
- package/dist/docs/components/selects.md +1 -1
- package/dist/docs/components/sidebar.md +1 -1
- package/dist/docs/components/sliders.md +1 -1
- package/dist/docs/components/smoothScrollbars.md +1 -1
- package/dist/docs/components/spinners.md +1 -1
- package/dist/docs/components/states.md +1 -1
- package/dist/docs/components/statsWidgets.md +1 -1
- package/dist/docs/components/statusBar.md +1 -1
- package/dist/docs/components/stepButton.md +1 -1
- package/dist/docs/components/steppedProgressBars.md +1 -1
- package/dist/docs/components/subNavigation.md +1 -1
- package/dist/docs/components/supportMarker.md +1 -1
- package/dist/docs/components/svgImage.md +1 -1
- package/dist/docs/components/switch.md +1 -1
- package/dist/docs/components/table.md +14 -14
- package/dist/docs/components/tableControls.md +51 -51
- package/dist/docs/components/tagManager.md +1 -1
- package/dist/docs/components/tags.md +1 -1
- package/dist/docs/components/teaser.md +1 -1
- package/dist/docs/components/textTruncateMiddle.md +1 -1
- package/dist/docs/components/timeline.md +1 -1
- package/dist/docs/components/timepicker.md +1 -1
- package/dist/docs/components/toggleButton.md +1 -1
- package/dist/docs/components/tooltip.md +1 -1
- package/dist/docs/components/tracker.md +1 -1
- package/dist/docs/components/virtualList.md +55 -53
- package/dist/docs/foundations.md +105 -105
- package/dist/docs/start/changelog.md +25 -213
- package/dist/docs/start/goodtoknow.md +1 -1
- package/dist/docs/start/guidelines/color-combinations.md +1 -1
- package/dist/docs/start/guidelines/custom-css.md +1 -1
- package/dist/docs/start/guidelines/custom-rioglyph.md +1 -1
- package/dist/docs/start/guidelines/formatting.md +1 -1
- package/dist/docs/start/guidelines/iframe.md +1 -1
- package/dist/docs/start/guidelines/obfuscate-data.md +1 -1
- package/dist/docs/start/guidelines/print-css.md +1 -1
- package/dist/docs/start/guidelines/spinner.md +1 -1
- package/dist/docs/start/guidelines/state-in-url.md +1 -1
- package/dist/docs/start/guidelines/supported-browsers.md +1 -1
- package/dist/docs/start/guidelines/writing.md +1 -1
- package/dist/docs/start/howto.md +16 -16
- package/dist/docs/start/intro.md +2 -2
- package/dist/docs/start/responsiveness.md +1 -1
- package/dist/docs/templates/ai-assistant.md +1 -1
- package/dist/docs/templates/common-table.md +55 -55
- package/dist/docs/templates/detail-views.md +2 -2
- package/dist/docs/templates/expandable-details.md +1 -1
- package/dist/docs/templates/feature-cards.md +37 -37
- package/dist/docs/templates/form-summary.md +15 -15
- package/dist/docs/templates/form-toggle.md +1 -1
- package/dist/docs/templates/list-blocks.md +137 -137
- package/dist/docs/templates/loading-progress.md +1 -1
- package/dist/docs/templates/options-panel.md +1 -1
- package/dist/docs/templates/panel-variants.md +1 -1
- package/dist/docs/templates/progress-cards.md +1 -1
- package/dist/docs/templates/progress-success.md +1 -1
- package/dist/docs/templates/settings-form.md +18 -18
- package/dist/docs/templates/stats-blocks.md +12 -12
- package/dist/docs/templates/table-panel.md +1 -1
- package/dist/docs/templates/usage-cards.md +1 -1
- package/dist/docs/utilities/classNames.md +1 -1
- package/dist/docs/utilities/deviceUtils.md +1 -1
- package/dist/docs/utilities/featureToggles.md +1 -1
- package/dist/docs/utilities/fuelTypeUtils.md +1 -1
- package/dist/docs/utilities/getTrackingAttributes.md +1 -1
- package/dist/docs/utilities/routeUtils.md +1 -1
- package/dist/docs/utilities/useAfterMount.md +1 -1
- package/dist/docs/utilities/useAutoAnimate.md +1 -1
- package/dist/docs/utilities/useAverage.md +1 -1
- package/dist/docs/utilities/useClickOutside.md +1 -1
- package/dist/docs/utilities/useClipboard.md +2 -2
- package/dist/docs/utilities/useCookies.md +1 -1
- package/dist/docs/utilities/useCount.md +1 -1
- package/dist/docs/utilities/useDarkMode.md +1 -1
- package/dist/docs/utilities/useDebugInfo.md +3 -3
- package/dist/docs/utilities/useDraggableElement.md +1 -1
- package/dist/docs/utilities/useEffectOnce.md +1 -1
- package/dist/docs/utilities/useElapsedTime.md +1 -1
- package/dist/docs/utilities/useElementSize.md +1 -1
- package/dist/docs/utilities/useEsc.md +1 -1
- package/dist/docs/utilities/useEvent.md +1 -1
- package/dist/docs/utilities/useFocusTrap.md +1 -1
- package/dist/docs/utilities/useFullscreen.md +1 -1
- package/dist/docs/utilities/useHover.md +1 -1
- package/dist/docs/utilities/useIncomingPostMessages.md +1 -1
- package/dist/docs/utilities/useInterval.md +1 -1
- package/dist/docs/utilities/useIsFocusWithin.md +1 -1
- package/dist/docs/utilities/useKey.md +1 -1
- package/dist/docs/utilities/useLocalStorage.md +1 -1
- package/dist/docs/utilities/useLocationSuggestions.md +1 -1
- package/dist/docs/utilities/useMax.md +1 -1
- package/dist/docs/utilities/useMin.md +1 -1
- package/dist/docs/utilities/useMutationObserver.md +1 -1
- package/dist/docs/utilities/useOnScreen.md +1 -1
- package/dist/docs/utilities/useOnlineStatus.md +1 -1
- package/dist/docs/utilities/usePostMessage.md +1 -1
- package/dist/docs/utilities/usePostMessageSender.md +1 -1
- package/dist/docs/utilities/usePrevious.md +1 -1
- package/dist/docs/utilities/useResizeObserver.md +1 -1
- package/dist/docs/utilities/useRioCookieConsent.md +1 -1
- package/dist/docs/utilities/useScrollPosition.md +1 -1
- package/dist/docs/utilities/useSearch.md +1 -1
- package/dist/docs/utilities/useSearchHighlight.md +1 -1
- package/dist/docs/utilities/useSorting.md +1 -1
- package/dist/docs/utilities/useStateWithValidation.md +1 -1
- package/dist/docs/utilities/useSum.md +1 -1
- package/dist/docs/utilities/useTableExport.md +61 -61
- package/dist/docs/utilities/useTableSelection.md +72 -72
- package/dist/docs/utilities/useTimeout.md +1 -1
- package/dist/docs/utilities/useToggle.md +1 -1
- package/dist/docs/utilities/useUrlState.md +1 -1
- package/dist/docs/utilities/useWindowResize.md +1 -1
- package/dist/index.mjs +1 -1
- package/dist/version.json +2 -2
- package/package.json +7 -4
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
*Category:* Components
|
|
4
4
|
*Section:* CSS Only
|
|
5
5
|
*Source:* https://uikit.developers.rio.cloud/#/components/iconList
|
|
6
|
-
*Captured:* 2026-
|
|
6
|
+
*Captured:* 2026-05-06T12:14:37.537Z
|
|
7
7
|
|
|
8
8
|
The timeline component is a pure CSS component.
|
|
9
9
|
|
|
@@ -68,7 +68,7 @@ Lorem ipsum dolor sit amet, consectetur adipiscing elit. In pharetra dui eget ma
|
|
|
68
68
|
</div>
|
|
69
69
|
<ul class="icon-list margin-bottom-0">
|
|
70
70
|
<li>
|
|
71
|
-
<span class="rioglyph rioglyph-
|
|
71
|
+
<span class="rioglyph rioglyph-driver margin-top--1">
|
|
72
72
|
</span>
|
|
73
73
|
<span>
|
|
74
74
|
Lorem ipsum dolor sit amet, consectetur adipiscing elit. In pharetra dui eget massa efficitur aliquam condimentum in felis. Integer eget metus vel nunc efficitur iaculis.</span>
|
|
@@ -80,7 +80,7 @@ Lorem ipsum dolor sit amet, consectetur adipiscing elit. In pharetra dui eget ma
|
|
|
80
80
|
Lorem ipsum dolor sit amet, consectetur adipiscing elit. In pharetra dui eget massa efficitur aliquam condimentum in felis. Integer eget metus vel nunc efficitur iaculis.</span>
|
|
81
81
|
</li>
|
|
82
82
|
<li>
|
|
83
|
-
<span class="rioglyph rioglyph-
|
|
83
|
+
<span class="rioglyph rioglyph-trailer margin-top--1">
|
|
84
84
|
</span>
|
|
85
85
|
<span>
|
|
86
86
|
Lorem ipsum dolor sit amet, consectetur adipiscing elit. In pharetra dui eget massa efficitur aliquam condimentum in felis. Integer eget metus vel nunc efficitur iaculis.</span>
|
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
*Category:* Components
|
|
4
4
|
*Section:* Misc
|
|
5
5
|
*Source:* https://uikit.developers.rio.cloud/#/components/imagePreloader
|
|
6
|
-
*Captured:* 2026-
|
|
6
|
+
*Captured:* 2026-05-06T12:14:21.377Z
|
|
7
7
|
|
|
8
8
|
Use the preloader for controlling the various states when fetching the image. It allows to handle the failure case as well.
|
|
9
9
|
|
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
*Category:* Components
|
|
4
4
|
*Section:* Content
|
|
5
5
|
*Source:* https://uikit.developers.rio.cloud/#/components/labeledElement
|
|
6
|
-
*Captured:* 2026-
|
|
6
|
+
*Captured:* 2026-05-06T12:14:02.548Z
|
|
7
7
|
|
|
8
8
|
A simple wrapper component that associates a label with any content, ensuring a unified label style. It simplifies the usage of labels for both form and non-form elements by using the FormLabelcomponent internally. For more flexibility, you can also use it directly when needed.
|
|
9
9
|
|
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
*Category:* Components
|
|
4
4
|
*Section:* Misc
|
|
5
5
|
*Source:* https://uikit.developers.rio.cloud/#/components/licensePlate
|
|
6
|
-
*Captured:* 2026-
|
|
6
|
+
*Captured:* 2026-05-06T12:14:23.218Z
|
|
7
7
|
|
|
8
8
|
The LicensePlate component is designed to display license plate information with various customization options. It is built with container queries, which ensure that design elements are shown or hidden based on the available space.
|
|
9
9
|
|
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
*Category:* Components
|
|
4
4
|
*Section:* Charts
|
|
5
5
|
*Source:* https://uikit.developers.rio.cloud/#/components/lineCharts
|
|
6
|
-
*Captured:* 2026-
|
|
6
|
+
*Captured:* 2026-05-06T12:15:10.536Z
|
|
7
7
|
|
|
8
8
|
## LineChart
|
|
9
9
|
|
|
@@ -449,7 +449,7 @@ const data: CustomData[] = [
|
|
|
449
449
|
<g tabindex="-1" class="recharts-zIndex-layer_400">
|
|
450
450
|
<g class="recharts-layer recharts-line">
|
|
451
451
|
<g class="recharts-layer recharts-shape">
|
|
452
|
-
<path stroke="#67abc5 " fill="none" stroke-width="1" id="recharts-line-:r1:" height="108" width="438" class="recharts-curve recharts-line-curve" stroke-dasharray="46.
|
|
452
|
+
<path stroke="#67abc5 " fill="none" stroke-width="1" id="recharts-line-:r1:" height="108" width="438" class="recharts-curve recharts-line-curve" stroke-dasharray="46.2336px 51.388816833496094px" d="M45,27C66,28,87,29,108,33C129,37,150,63,171,63C192,63,213,39.6,234,39.6C255,39.6,276,66.3,297,66.3C318,66.3,339,59.3,360,51.3C381,43.3,402,30.8,423,18.3">
|
|
453
453
|
</path>
|
|
454
454
|
</g>
|
|
455
455
|
</g>
|
|
@@ -1446,7 +1446,7 @@ const data: CustomData[] = [
|
|
|
1446
1446
|
<div class="recharts-responsive-container" style="width: 100%; height: 100%; min-width: 100px; min-height: 100px;">
|
|
1447
1447
|
<div style="width: 0px; height: 0px; overflow: visible;">
|
|
1448
1448
|
<div width="876" height="268" class="recharts-wrapper" style="position: relative; cursor: default; width: 876px; height: 268px;">
|
|
1449
|
-
<div xmlns="http://www.w3.org/1999/xhtml" tabindex="-1" class="recharts-tooltip-wrapper" style="visibility: hidden; pointer-events: none; position: absolute; top: 0px; left: 0px;">
|
|
1449
|
+
<div xmlns="http://www.w3.org/1999/xhtml" tabindex="-1" class="recharts-tooltip-wrapper recharts-tooltip-wrapper-right recharts-tooltip-wrapper-bottom" style="visibility: hidden; pointer-events: none; position: absolute; top: 0px; left: 0px; transform: translate(443.758px, 138px);">
|
|
1450
1450
|
<div class="recharts-default-tooltip" role="status" aria-live="assertive" style="margin: 0px; padding: 10px; background-color: rgb(255, 255, 255); border: 1px solid rgb(204, 204, 204); white-space: nowrap;">
|
|
1451
1451
|
<p class="recharts-tooltip-label" style="margin: 0px;">
|
|
1452
1452
|
</p>
|
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
*Category:* Components
|
|
4
4
|
*Section:* Map
|
|
5
5
|
*Source:* https://uikit.developers.rio.cloud/#/components/mapGettingStarted
|
|
6
|
-
*Captured:* 2026-
|
|
6
|
+
*Captured:* 2026-05-06T12:14:37.871Z
|
|
7
7
|
|
|
8
8
|
HERE Maps credentials used in the UIKIT demo are not allowed to be used in any production environment!
|
|
9
9
|
|
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
*Category:* Components
|
|
4
4
|
*Section:* Map
|
|
5
5
|
*Source:* https://uikit.developers.rio.cloud/#/components/mapMarker
|
|
6
|
-
*Captured:* 2026-
|
|
6
|
+
*Captured:* 2026-05-06T12:14:45.960Z
|
|
7
7
|
|
|
8
8
|
Markers are used to render elements at specific locations on the map. They adapt their position as the user interacts with the map.
|
|
9
9
|
|
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
*Category:* Components
|
|
4
4
|
*Section:* Map
|
|
5
5
|
*Source:* https://uikit.developers.rio.cloud/#/components/mapPolygon
|
|
6
|
-
*Captured:* 2026-
|
|
6
|
+
*Captured:* 2026-05-06T12:15:07.846Z
|
|
7
7
|
|
|
8
8
|
Polygons and isolines support click and hover interactions. A typical hover effect can be created by changing the outline via strokeColor and lineWidth in the hoverStyle.
|
|
9
9
|
|
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
*Category:* Components
|
|
4
4
|
*Section:* Map
|
|
5
5
|
*Source:* https://uikit.developers.rio.cloud/#/components/mapRoute
|
|
6
|
-
*Captured:* 2026-
|
|
6
|
+
*Captured:* 2026-05-06T12:15:16.815Z
|
|
7
7
|
|
|
8
8
|
There are currently 3 different route styles built-in into the map component.
|
|
9
9
|
|
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
*Category:* Components
|
|
4
4
|
*Section:* Map
|
|
5
5
|
*Source:* https://uikit.developers.rio.cloud/#/components/mapSettings
|
|
6
|
-
*Captured:* 2026-
|
|
6
|
+
*Captured:* 2026-05-06T12:14:55.819Z
|
|
7
7
|
|
|
8
8
|
## Map settings
|
|
9
9
|
|
|
@@ -139,7 +139,7 @@ const mapLayerOptions: SelectOption[] = [
|
|
|
139
139
|
];
|
|
140
140
|
|
|
141
141
|
const languageOptions: SelectOption[] = [
|
|
142
|
-
{ id: 'en', label: 'English' },
|
|
142
|
+
{ id: 'en-GB', label: 'English' },
|
|
143
143
|
{ id: 'de-DE', label: 'German' },
|
|
144
144
|
{ id: 'pl', label: 'Polish' },
|
|
145
145
|
];
|
|
@@ -155,7 +155,7 @@ const FullSettingsExample = () => {
|
|
|
155
155
|
const [center, setCenter] = useState(initialPosition);
|
|
156
156
|
const [enableWebGL, setEnableWebGL] = useState(true);
|
|
157
157
|
const [enableDevicePixelRatio, setEnableDevicePixelRatio] = useState(true);
|
|
158
|
-
const [language, setLanguage] = useState('en');
|
|
158
|
+
const [language, setLanguage] = useState('en-GB');
|
|
159
159
|
|
|
160
160
|
const [minZoom, setMinZoom] = useState(DEFAULT_MIN_ZOOM);
|
|
161
161
|
const [maxZoom, setMaxZoom] = useState(DEFAULT_MAX_ZOOM);
|
|
@@ -578,6 +578,7 @@ const FullSettingsExample = () => {
|
|
|
578
578
|
<IncidentsList
|
|
579
579
|
mapLayer={mapLayerOptionIds}
|
|
580
580
|
incidents={incidents}
|
|
581
|
+
language={language}
|
|
581
582
|
api={mapApiRef.current}
|
|
582
583
|
onIncidentSelect={(pos: MapPosition) => {
|
|
583
584
|
// at zoom level 16 the incident cluster is dissolved
|
|
@@ -602,7 +603,7 @@ type IncidentItemProps = {
|
|
|
602
603
|
|
|
603
604
|
const IncidentItem = (props: IncidentItemProps) => {
|
|
604
605
|
const { api, incident, onClick } = props;
|
|
605
|
-
const { id, description, position, tooltipContent } = incident;
|
|
606
|
+
const { id, comment, description, position, summary, tooltipContent } = incident;
|
|
606
607
|
|
|
607
608
|
const [showInfo, setShowInfo] = useState(false);
|
|
608
609
|
|
|
@@ -616,8 +617,23 @@ const IncidentItem = (props: IncidentItemProps) => {
|
|
|
616
617
|
onMouseEnter={() => setShowInfo(true)}
|
|
617
618
|
onMouseLeave={() => setShowInfo(false)}
|
|
618
619
|
>
|
|
619
|
-
<div className='line-height-125rel margin-bottom-5'>{description.value}</div>
|
|
620
|
-
<div className='
|
|
620
|
+
<div className='line-height-125rel margin-bottom-5 text-medium'>{description.value}</div>
|
|
621
|
+
<div className='display-flex flex-column gap-5 margin-bottom-5 text-size-12'>
|
|
622
|
+
<div>
|
|
623
|
+
<div className='text-color-dark text-medium'>Description</div>
|
|
624
|
+
<div className='text-color-darker'>{description.value}</div>
|
|
625
|
+
</div>
|
|
626
|
+
<div>
|
|
627
|
+
<div className='text-color-dark text-medium'>Summary</div>
|
|
628
|
+
<div className='text-color-darker'>{summary.value}</div>
|
|
629
|
+
</div>
|
|
630
|
+
{comment && (
|
|
631
|
+
<div>
|
|
632
|
+
<div className='text-color-dark text-medium'>Comment</div>
|
|
633
|
+
<div className='text-color-darker'>{comment}</div>
|
|
634
|
+
</div>
|
|
635
|
+
)}
|
|
636
|
+
</div>
|
|
621
637
|
{showInfo && (
|
|
622
638
|
<InfoBubble api={api} position={position} content={tooltipContent} markerOffset={{ x: 0, y: -31 }} />
|
|
623
639
|
)}
|
|
@@ -628,13 +644,14 @@ const IncidentItem = (props: IncidentItemProps) => {
|
|
|
628
644
|
type IncidentsListProps = {
|
|
629
645
|
mapLayer: string[];
|
|
630
646
|
incidents?: MapIncidents | undefined;
|
|
647
|
+
language: string;
|
|
631
648
|
api?: MapApi;
|
|
632
649
|
onIncidentSelect: (position: MapPosition) => void;
|
|
633
650
|
onPositionChange: (position: MapPosition, zoom: number) => void;
|
|
634
651
|
};
|
|
635
652
|
|
|
636
653
|
const IncidentsList = (props: IncidentsListProps) => {
|
|
637
|
-
const { mapLayer, incidents, api, onIncidentSelect, onPositionChange } = props;
|
|
654
|
+
const { mapLayer, incidents, language, api, onIncidentSelect, onPositionChange } = props;
|
|
638
655
|
|
|
639
656
|
const [previousPosition, setPreviousPosition] = useState<MapPosition | undefined>();
|
|
640
657
|
const [previousZoom, setPreviousZoom] = useState<number | undefined>();
|
|
@@ -657,9 +674,14 @@ const IncidentsList = (props: IncidentsListProps) => {
|
|
|
657
674
|
};
|
|
658
675
|
|
|
659
676
|
return (
|
|
660
|
-
<div className='max-width-
|
|
677
|
+
<div className='max-width-400-lg min-width-400-lg'>
|
|
661
678
|
<div className='display-flex justify-content-between align-items-end'>
|
|
662
|
-
<label>
|
|
679
|
+
<label>
|
|
680
|
+
Incidents
|
|
681
|
+
<span className='text-normal text-size-12 text-color-dark margin-left-5'>
|
|
682
|
+
HERE lang: {language}
|
|
683
|
+
</span>
|
|
684
|
+
</label>
|
|
663
685
|
{previousPosition ? (
|
|
664
686
|
<div className='btn btn-link btn-link-inline margin-bottom-5' onClick={handleGoBack}>
|
|
665
687
|
<span className='rioglyph rioglyph-arrow-left' />
|
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
*Category:* Components
|
|
4
4
|
*Section:* Map
|
|
5
5
|
*Source:* https://uikit.developers.rio.cloud/#/components/mapUtils
|
|
6
|
-
*Captured:* 2026-
|
|
6
|
+
*Captured:* 2026-05-06T12:15:03.957Z
|
|
7
7
|
|
|
8
8
|
## Map utils
|
|
9
9
|
|
|
@@ -24,4 +24,67 @@ return (
|
|
|
24
24
|
mapApiRef . current = api ; // if needed, render cluster or marker layer here or return null return null ; } }
|
|
25
25
|
</ Map >
|
|
26
26
|
);
|
|
27
|
-
};
|
|
27
|
+
};
|
|
28
|
+
|
|
29
|
+
#### Code (text)
|
|
30
|
+
|
|
31
|
+
```text
|
|
32
|
+
import { useRef, useState } from 'react';
|
|
33
|
+
import { isEqual } from 'es-toolkit/compat';
|
|
34
|
+
|
|
35
|
+
import Map from '@rio-cloud/rio-uikit/Map';
|
|
36
|
+
import EventUtils from '@rio-cloud/rio-uikit/EventUtils';
|
|
37
|
+
import type { MapApi, MapEvent, Position } from '@rio-cloud/rio-uikit/mapTypes';
|
|
38
|
+
import { UIKIT_DEMO_CREDENTIALS_ARE_NOT_ALLOWED_IN_PROD_ENVIRONMENT } from '../uikit_demo_credentials';
|
|
39
|
+
|
|
40
|
+
export default () => {
|
|
41
|
+
const [zoom, setZoom] = useState(10);
|
|
42
|
+
const [center, setCenter] = useState<Position>({ lat: 48.5, lng: 12.1 });
|
|
43
|
+
const mapApiRef = useRef<MapApi>();
|
|
44
|
+
|
|
45
|
+
const eventListenerMap = {
|
|
46
|
+
[EventUtils.MAP_VIEW_CHANGE_END]: (event: MapEvent) => {
|
|
47
|
+
// Access the Map ViewModel to retrieve its' LookAtData
|
|
48
|
+
// The View model contains all relevant map data like zoom, position or bounding box.
|
|
49
|
+
// Note: Working with the ViewModel directly requires to round zoom values or to exclude
|
|
50
|
+
// other props from position object. Better, use map utils instead.
|
|
51
|
+
const target = event.currentTarget as H.Map;
|
|
52
|
+
const lookAtData = target.getViewModel().getLookAtData();
|
|
53
|
+
|
|
54
|
+
console.log({ lookAtData });
|
|
55
|
+
|
|
56
|
+
// Accessing map utils to retrieve map position, zoom and bounding box.
|
|
57
|
+
// This way, you don't have to deal with here map internals or round zoom values etc.
|
|
58
|
+
const api = mapApiRef.current;
|
|
59
|
+
const mapCenter = api?.utils?.getCenter();
|
|
60
|
+
const mapZoom = api?.utils?.getZoom();
|
|
61
|
+
const mapBoundingBox = api?.utils?.getBounds();
|
|
62
|
+
|
|
63
|
+
console.log({ mapCenter, mapZoom, mapBoundingBox });
|
|
64
|
+
|
|
65
|
+
// Check for changed values to update local state or to perform other actions
|
|
66
|
+
const isEqualZoom = isEqual(zoom, mapZoom);
|
|
67
|
+
const isEqualPosition = isEqual(center.lat, mapCenter?.lat) && isEqual(center.lng, mapCenter?.lng);
|
|
68
|
+
|
|
69
|
+
if (!(isEqualPosition && isEqualZoom)) {
|
|
70
|
+
// ... perform some actions
|
|
71
|
+
}
|
|
72
|
+
},
|
|
73
|
+
};
|
|
74
|
+
|
|
75
|
+
return (
|
|
76
|
+
<Map
|
|
77
|
+
eventListenerMap={eventListenerMap}
|
|
78
|
+
credentials={UIKIT_DEMO_CREDENTIALS_ARE_NOT_ALLOWED_IN_PROD_ENVIRONMENT}
|
|
79
|
+
// ... other map properties
|
|
80
|
+
>
|
|
81
|
+
{api => {
|
|
82
|
+
mapApiRef.current = api;
|
|
83
|
+
|
|
84
|
+
// if needed, render cluster or marker layer here or return null
|
|
85
|
+
return null;
|
|
86
|
+
}}
|
|
87
|
+
</Map>
|
|
88
|
+
);
|
|
89
|
+
};
|
|
90
|
+
```
|
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
*Category:* Components
|
|
4
4
|
*Section:* Map
|
|
5
5
|
*Source:* https://uikit.developers.rio.cloud/#/components/mapViewportHistory
|
|
6
|
-
*Captured:* 2026-
|
|
6
|
+
*Captured:* 2026-05-06T12:14:52.242Z
|
|
7
7
|
|
|
8
8
|
Viewport history stores relevant map movements and exposes a settings button that jumps back to the previous center and zoom. The button is only rendered when a previous viewport exists.
|
|
9
9
|
|
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
*Category:* Components
|
|
4
4
|
*Section:* Selection
|
|
5
5
|
*Source:* https://uikit.developers.rio.cloud/#/components/multiselects
|
|
6
|
-
*Captured:* 2026-
|
|
6
|
+
*Captured:* 2026-05-06T12:13:40.306Z
|
|
7
7
|
|
|
8
8
|
The Multiselect component is a form control and is intended to be used within forms. It's designed to be used instead of native HTML Select which cannot be styled and are rendered by each browser differently.
|
|
9
9
|
|
|
@@ -1931,6 +1931,170 @@ export default () => (
|
|
|
1931
1931
|
|
|
1932
1932
|
#### Props
|
|
1933
1933
|
|
|
1934
|
+
| Name | Type | Default | Description |
|
|
1935
|
+
| --- | --- | --- | --- |
|
|
1936
|
+
| name | String | — | Passed through as HTML attribute to the toggle button. |
|
|
1937
|
+
| id | String | — | Passed through as HTML attribute to the toggle button. Uses the value given to name if not provided explicitly. |
|
|
1938
|
+
| options | Array of Objects | [] | Items to display in the dropdown menu. |
|
|
1939
|
+
| └id | String | — | Used to identify an option |
|
|
1940
|
+
| └label | String / Node | — | The option item text |
|
|
1941
|
+
| └icon | Node | — | Icon to be displayed in front of the label |
|
|
1942
|
+
| └selected | Boolean | false | Defines whether the menu item is selected. |
|
|
1943
|
+
| └disabled | Boolean | false | Setting "disabled" to true will disable the respective item. |
|
|
1944
|
+
| └header | Boolean | false | Will treat the given value as a menu header. |
|
|
1945
|
+
| value | Array | — | Sets the ids of the selected options when the component is already mounted. |
|
|
1946
|
+
| onChange | Function | () => {} | Callback function triggered when an item is selected. |
|
|
1947
|
+
| placeholder | String / Node | — | Text to display when nothing is selected. |
|
|
1948
|
+
| dropup | Boolean | false | Defines whether the dropdown opens upwards. Set to "true" additionally disables autoDrop feature. |
|
|
1949
|
+
| pullRight | Boolean | false | Defines whether the dropdown opens right aligned to the dropdown toggle. Set to "true" additionally disables autoDrop feature. |
|
|
1950
|
+
| autoDropDirection | Boolean | true | Enables or disables the autoDrop positioning feature. When enabled, the option list opens below or above the input depending on the surrounding space. |
|
|
1951
|
+
| bsSize | String | md | Defines the size of the select to be rendered. Possible values are: 'sm', 'md' and 'lg' |
|
|
1952
|
+
| variant | 'default' \| 'blank' | 'default' | Defines the visual variant of the select. |
|
|
1953
|
+
| disabled | Boolean | false | Option to disable the opening of the option list. |
|
|
1954
|
+
| tabIndex | Number | 0 | The tabindex attribute allows developers to make HTML elements focusable, allow or prevent them from being sequentially focusable (usually with the Tab key, hence the name) and determine their relative ordering for sequential focus navigation. See tabIndex |
|
|
1955
|
+
| hasError | Boolean | false | Defines whether the Bootstrap error classes shall be added to the toggle element. |
|
|
1956
|
+
| useFilter | Boolean | false | Defines whether the component should be filterable. |
|
|
1957
|
+
| noItemMessage | String / Node | — | Text that shall be shown when not match was found when filtering. |
|
|
1958
|
+
| counterMessage | Object | — | Object that will render the number of selected items instead of individual items. Using this prop will disable the filter functionality. { one: 'item selected', many: 'items selected' } |
|
|
1959
|
+
| └one | String / Node | — | Text that will be used when a single item is selected. |
|
|
1960
|
+
| └many | String / Node | — | Text that will be used when multiple item are selected. |
|
|
1961
|
+
| renderCounterMessage | Function | — | Optional render function that is used to render the message how many items have been selected. The total amount of selected items will be passed into that function. Using this prop will disable the filter functionality. |
|
|
1962
|
+
| multiline | boolean | false | Defines whether the selected items wrap around within the dropdown toggle. |
|
|
1963
|
+
| showSelectedItemIcon | Boolean | false | Set to show only the icon and not the label of selected item. |
|
|
1964
|
+
| showUnselectedItemIcons | Boolean | false | Set to show all item icons within the toggle element. Selected items are highlighted and unselected items are shown as inactive. |
|
|
1965
|
+
| inputAddon | String \| ReactNode | — | Option to add an icon as a leading input addon to the select component. |
|
|
1966
|
+
| errorMessage | String | — | Input error message. |
|
|
1967
|
+
| warningMessage | String | — | Input warning message. |
|
|
1968
|
+
| messageWhiteSpace | 'normal' \| 'prewrap' \| 'nowrap' | 'normal' | Optional warning message white-space setting. |
|
|
1969
|
+
| dropdownClassName | String | — | Additional classes to be set to the dropdown. |
|
|
1970
|
+
| btnClassName | String | — | Additional classes to be set to the select/input. |
|
|
1971
|
+
| className | String | — | Additional classes to be set to the select wrapper. |
|
|
1972
|
+
|
|
1973
|
+
### Example: Example 7
|
|
1974
|
+
|
|
1975
|
+
Multiselect with incrementally loaded options Please select shipment states No matching shipment state
|
|
1976
|
+
|
|
1977
|
+
Load options in two steps Reset
|
|
1978
|
+
No options loaded
|
|
1979
|
+
|
|
1980
|
+
#### React (tsx)
|
|
1981
|
+
|
|
1982
|
+
```tsx
|
|
1983
|
+
import { useEffect, useRef, useState } from 'react';
|
|
1984
|
+
|
|
1985
|
+
import Button from '@rio-cloud/rio-uikit/Button';
|
|
1986
|
+
import Multiselect, { type MultiselectOption } from '@rio-cloud/rio-uikit/Multiselect';
|
|
1987
|
+
|
|
1988
|
+
const firstOptionBatch: MultiselectOption[] = [
|
|
1989
|
+
{ id: 'shipment-open', label: 'Open' },
|
|
1990
|
+
{ id: 'shipment-planned', label: 'Planned' },
|
|
1991
|
+
{ id: 'shipment-in-transit', label: 'In transit' },
|
|
1992
|
+
{ id: 'shipment-at-border', label: 'At border' },
|
|
1993
|
+
];
|
|
1994
|
+
|
|
1995
|
+
const secondOptionBatch: MultiselectOption[] = [
|
|
1996
|
+
{ id: 'shipment-delayed', label: 'Delayed' },
|
|
1997
|
+
{ id: 'shipment-delivered', label: 'Delivered' },
|
|
1998
|
+
{ id: 'shipment-cancelled', label: 'Cancelled' },
|
|
1999
|
+
{ id: 'shipment-on-hold', label: 'On hold' },
|
|
2000
|
+
];
|
|
2001
|
+
|
|
2002
|
+
const MultiselectIncrementalOptionsExample = () => {
|
|
2003
|
+
const [options, setOptions] = useState<MultiselectOption[]>([]);
|
|
2004
|
+
const [selectedOptionIds, setSelectedOptionIds] = useState<string[]>([]);
|
|
2005
|
+
const [loadStep, setLoadStep] = useState(0);
|
|
2006
|
+
const timeoutRef = useRef<number | undefined>();
|
|
2007
|
+
|
|
2008
|
+
useEffect(() => () => window.clearTimeout(timeoutRef.current), []);
|
|
2009
|
+
|
|
2010
|
+
const handleStartLoading = () => {
|
|
2011
|
+
window.clearTimeout(timeoutRef.current);
|
|
2012
|
+
|
|
2013
|
+
setSelectedOptionIds([]);
|
|
2014
|
+
setOptions(firstOptionBatch);
|
|
2015
|
+
setLoadStep(1);
|
|
2016
|
+
|
|
2017
|
+
timeoutRef.current = window.setTimeout(() => {
|
|
2018
|
+
setOptions([...firstOptionBatch, ...secondOptionBatch]);
|
|
2019
|
+
setLoadStep(2);
|
|
2020
|
+
}, 3_000);
|
|
2021
|
+
};
|
|
2022
|
+
|
|
2023
|
+
const handleReset = () => {
|
|
2024
|
+
window.clearTimeout(timeoutRef.current);
|
|
2025
|
+
|
|
2026
|
+
setSelectedOptionIds([]);
|
|
2027
|
+
setOptions([]);
|
|
2028
|
+
setLoadStep(0);
|
|
2029
|
+
};
|
|
2030
|
+
|
|
2031
|
+
const statusText =
|
|
2032
|
+
loadStep === 0
|
|
2033
|
+
? 'No options loaded'
|
|
2034
|
+
: `${options.length} of ${firstOptionBatch.length + secondOptionBatch.length} options loaded`;
|
|
2035
|
+
|
|
2036
|
+
return (
|
|
2037
|
+
<div className='max-width-400'>
|
|
2038
|
+
<label htmlFor='multiselectIncrementalOptions'>Multiselect with incrementally loaded options</label>
|
|
2039
|
+
<Multiselect
|
|
2040
|
+
id='multiselectIncrementalOptions'
|
|
2041
|
+
placeholder='Please select shipment states'
|
|
2042
|
+
options={options}
|
|
2043
|
+
value={selectedOptionIds}
|
|
2044
|
+
useFilter
|
|
2045
|
+
useClear
|
|
2046
|
+
noItemMessage='No matching shipment state'
|
|
2047
|
+
onChange={setSelectedOptionIds}
|
|
2048
|
+
/>
|
|
2049
|
+
<div className='display-flex gap-10 align-items-center margin-top-10'>
|
|
2050
|
+
<Button onClick={handleStartLoading}>Load options in two steps</Button>
|
|
2051
|
+
<Button bsStyle='default' onClick={handleReset}>
|
|
2052
|
+
Reset
|
|
2053
|
+
</Button>
|
|
2054
|
+
</div>
|
|
2055
|
+
<div className='text-size-12 text-color-gray margin-top-10'>{statusText}</div>
|
|
2056
|
+
</div>
|
|
2057
|
+
);
|
|
2058
|
+
};
|
|
2059
|
+
|
|
2060
|
+
export default MultiselectIncrementalOptionsExample;
|
|
2061
|
+
```
|
|
2062
|
+
|
|
2063
|
+
#### HTML (html)
|
|
2064
|
+
|
|
2065
|
+
```html
|
|
2066
|
+
<div class="max-width-400">
|
|
2067
|
+
<label for="multiselectIncrementalOptions">Multiselect with incrementally loaded options</label>
|
|
2068
|
+
<div class="select multiselect dropdown">
|
|
2069
|
+
<button type="button" id="multiselectIncrementalOptions" class="dropdown-toggle form-control text-left" data-toggle="dropdown" tabindex="0" aria-haspopup="true" aria-expanded="false">
|
|
2070
|
+
<span class="placeholder">Please select shipment states</span>
|
|
2071
|
+
<span class="select-toggle-actions">
|
|
2072
|
+
<span class="clearButton hide pointer-events-none">
|
|
2073
|
+
<span class="clearButtonIcon rioglyph rioglyph-remove-sign">
|
|
2074
|
+
</span>
|
|
2075
|
+
</span>
|
|
2076
|
+
<span class="caret">
|
|
2077
|
+
</span>
|
|
2078
|
+
</span>
|
|
2079
|
+
</button>
|
|
2080
|
+
<ul class="dropdown-menu" role="menu">
|
|
2081
|
+
<li class="no-item-message disabled" role="presentation">
|
|
2082
|
+
<a role="menuitem">
|
|
2083
|
+
<i>No matching shipment state</i>
|
|
2084
|
+
</a>
|
|
2085
|
+
</li>
|
|
2086
|
+
</ul>
|
|
2087
|
+
</div>
|
|
2088
|
+
<div class="display-flex gap-10 align-items-center margin-top-10">
|
|
2089
|
+
<button type="button" class="btn btn-default btn-component" tabindex="0">Load options in two steps</button>
|
|
2090
|
+
<button type="button" class="btn btn-default btn-component" tabindex="0">Reset</button>
|
|
2091
|
+
</div>
|
|
2092
|
+
<div class="text-size-12 text-color-gray margin-top-10">No options loaded</div>
|
|
2093
|
+
</div>
|
|
2094
|
+
```
|
|
2095
|
+
|
|
2096
|
+
#### Props
|
|
2097
|
+
|
|
1934
2098
|
| Name | Type | Default | Description |
|
|
1935
2099
|
| --- | --- | --- | --- |
|
|
1936
2100
|
| name | String | — | Passed through as HTML attribute to the toggle button. |
|
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
*Category:* Components
|
|
4
4
|
*Section:* Misc
|
|
5
5
|
*Source:* https://uikit.developers.rio.cloud/#/components/notifications
|
|
6
|
-
*Captured:* 2026-
|
|
6
|
+
*Captured:* 2026-05-06T12:14:25.481Z
|
|
7
7
|
|
|
8
8
|
Hint:Notifications need to be wrapped by a NotificationsContainer inside your application layout body.
|
|
9
9
|
|
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
*Category:* Components
|
|
4
4
|
*Section:* Misc
|
|
5
5
|
*Source:* https://uikit.developers.rio.cloud/#/components/onboarding
|
|
6
|
-
*Captured:* 2026-
|
|
6
|
+
*Captured:* 2026-05-06T12:14:25.513Z
|
|
7
7
|
|
|
8
8
|
Useful when you want to control a single tooltip that highlights a portion of the UI.
|
|
9
9
|
|