@rio-cloud/uikit-mcp 1.1.8 → 1.1.10
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/README.md +17 -7
- package/dist/doc-metadata.json +325 -85
- package/dist/docs/components/accentBar.md +110 -116
- package/dist/docs/components/activity.md +1 -1
- package/dist/docs/components/analyticsAnalysisOverlay.md +628 -0
- package/dist/docs/components/animatedNumber.md +2 -2
- package/dist/docs/components/animatedTextReveal.md +53 -55
- package/dist/docs/components/animations.md +22 -22
- package/dist/docs/components/appHeader.md +27 -38
- package/dist/docs/components/appLayout.md +38 -42
- package/dist/docs/components/appNavigationBar.md +1 -1
- package/dist/docs/components/areaCharts.md +57 -63
- package/dist/docs/components/aspectRatioPlaceholder.md +1 -1
- package/dist/docs/components/assetTree.md +200 -167
- 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 +531 -417
- package/dist/docs/components/barList.md +9 -9
- package/dist/docs/components/basicMap.md +60 -39
- package/dist/docs/components/bottomSheet.md +2 -2
- package/dist/docs/components/button.md +8 -2
- package/dist/docs/components/buttonToolbar.md +1 -1
- package/dist/docs/components/calendarStripe.md +57 -65
- package/dist/docs/components/card.md +1 -1
- package/dist/docs/components/carousel.md +1 -1
- package/dist/docs/components/chartColors.md +1 -3
- package/dist/docs/components/chartsGettingStarted.md +1 -3
- package/dist/docs/components/chat.md +2 -2
- package/dist/docs/components/checkbox.md +15 -12
- package/dist/docs/components/circularProgress.md +8 -8
- package/dist/docs/components/clearableInput.md +1 -1
- package/dist/docs/components/collapse.md +2 -4
- package/dist/docs/components/composedCharts.md +63 -53
- package/dist/docs/components/contentLoader.md +1 -1
- package/dist/docs/components/dataTabs.md +33 -33
- package/dist/docs/components/datepickers.md +693 -687
- package/dist/docs/components/dayPicker.md +5574 -0
- package/dist/docs/components/dayPickerCalendar.md +5269 -0
- package/dist/docs/components/dialogs.md +17 -19
- package/dist/docs/components/divider.md +1 -1
- package/dist/docs/components/dropdowns.md +3252 -3276
- package/dist/docs/components/editableContent.md +91 -91
- package/dist/docs/components/expander.md +4 -1
- package/dist/docs/components/fade.md +1 -1
- package/dist/docs/components/fadeExpander.md +1 -1
- package/dist/docs/components/fadeUp.md +32 -36
- package/dist/docs/components/feedback.md +1 -1
- package/dist/docs/components/filePickers.md +1 -1
- package/dist/docs/components/formLabel.md +29 -31
- package/dist/docs/components/groupedItemList.md +3 -7
- package/dist/docs/components/htmlTable.md +5074 -0
- package/dist/docs/components/iconList.md +4 -4
- 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 +172 -172
- package/dist/docs/components/listMenu.md +15 -12
- package/dist/docs/components/loadMore.md +4 -2
- package/dist/docs/components/mainNavigation.md +1 -1
- package/dist/docs/components/mapCircle.md +10 -1
- package/dist/docs/components/mapCluster.md +23 -1
- package/dist/docs/components/mapContext.md +12 -4
- package/dist/docs/components/mapDraggableMarker.md +12 -1
- package/dist/docs/components/mapGettingStarted.md +1 -1
- package/dist/docs/components/mapInfoBubble.md +129 -2
- package/dist/docs/components/mapLayerGroup.md +10 -1
- package/dist/docs/components/mapMarker.md +10 -3
- package/dist/docs/components/mapPolygon.md +288 -85
- package/dist/docs/components/mapRoute.md +262 -172
- package/dist/docs/components/mapRouteGenerator.md +1 -1
- package/dist/docs/components/mapSettings.md +23 -1
- package/dist/docs/components/mapUtils.md +1 -1
- package/dist/docs/components/multiselects.md +211 -18
- package/dist/docs/components/noData.md +1 -1
- package/dist/docs/components/notifications.md +2 -2
- package/dist/docs/components/numbercontrol.md +15 -15
- 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 +237 -213
- package/dist/docs/components/popover.md +1 -1
- package/dist/docs/components/position.md +1 -1
- package/dist/docs/components/radialBarCharts.md +446 -400
- package/dist/docs/components/radioCardGroup.md +1 -1
- package/dist/docs/components/radiobutton.md +96 -98
- package/dist/docs/components/releaseNotes.md +1 -1
- package/dist/docs/components/resizer.md +1 -3
- package/dist/docs/components/responsiveColumnStripe.md +1 -3
- package/dist/docs/components/responsiveVideo.md +1 -1
- package/dist/docs/components/rioglyph.md +1 -1
- package/dist/docs/components/rules.md +41 -47
- package/dist/docs/components/saveableInput.md +252 -252
- package/dist/docs/components/selects.md +165 -111
- package/dist/docs/components/sidebar.md +1 -1
- package/dist/docs/components/sliders.md +1 -1
- package/dist/docs/components/smoothScrollbars.md +19 -15
- 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 +9 -11
- 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 +3 -1
- package/dist/docs/components/table.md +19584 -0
- package/dist/docs/components/tableControls.md +982 -0
- package/dist/docs/components/tagManager.md +1 -1
- package/dist/docs/components/tags.md +1 -1
- package/dist/docs/components/teaser.md +1 -3
- 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 +3 -1
- package/dist/docs/components/tooltip.md +4 -2
- package/dist/docs/components/tracker.md +1 -1
- package/dist/docs/components/virtualList.md +56 -56
- package/dist/docs/foundations.md +640 -3122
- package/dist/docs/start/changelog.md +53 -3
- package/dist/docs/start/goodtoknow.md +2 -4
- 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 -3
- package/dist/docs/start/guidelines/iframe.md +17 -19
- package/dist/docs/start/guidelines/obfuscate-data.md +2 -4
- 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 +12 -20
- package/dist/docs/start/intro.md +1 -1
- package/dist/docs/start/responsiveness.md +1 -3
- package/dist/docs/templates/ai-assistant.md +311 -0
- package/dist/docs/templates/common-table.md +814 -0
- package/dist/docs/templates/detail-views.md +846 -0
- package/dist/docs/templates/expandable-details.md +214 -0
- package/dist/docs/templates/feature-cards.md +479 -0
- package/dist/docs/templates/form-summary.md +179 -0
- package/dist/docs/templates/form-toggle.md +329 -0
- package/dist/docs/templates/list-blocks.md +872 -0
- package/dist/docs/templates/loading-progress.md +100 -0
- package/dist/docs/templates/options-panel.md +132 -0
- package/dist/docs/templates/panel-variants.md +137 -0
- package/dist/docs/templates/progress-cards.md +541 -0
- package/dist/docs/templates/progress-success.md +125 -0
- package/dist/docs/templates/settings-form.md +401 -0
- package/dist/docs/templates/stats-blocks.md +1245 -0
- package/dist/docs/templates/table-panel.md +310 -0
- package/dist/docs/templates/usage-cards.md +199 -0
- package/dist/docs/utilities/classNames.md +1 -1
- package/dist/docs/utilities/deviceUtils.md +2 -2
- package/dist/docs/utilities/featureToggles.md +1 -1
- package/dist/docs/utilities/fuelTypeUtils.md +27 -29
- package/dist/docs/utilities/getTrackingAttributes.md +277 -0
- package/dist/docs/utilities/routeUtils.md +2 -2
- 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 +5 -4
- package/dist/docs/utilities/useDebugInfo.md +3 -3
- package/dist/docs/utilities/useDraggableElement.md +281 -0
- 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 +8 -10
- 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 +2 -2
- package/dist/docs/utilities/usePostMessageSender.md +1 -1
- package/dist/docs/utilities/usePrevious.md +2 -4
- package/dist/docs/utilities/useResizeObserver.md +35 -15
- package/dist/docs/utilities/useRioCookieConsent.md +1 -1
- package/dist/docs/utilities/useScrollPosition.md +3 -6
- package/dist/docs/utilities/useSearch.md +1 -3
- package/dist/docs/utilities/useSearchHighlight.md +1 -1
- package/dist/docs/utilities/useSorting.md +370 -239
- package/dist/docs/utilities/useStateWithValidation.md +1 -1
- package/dist/docs/utilities/useSum.md +1 -1
- package/dist/docs/utilities/useTableExport.md +364 -288
- package/dist/docs/utilities/useTableSelection.md +88 -92
- 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 +2 -8
- package/dist/search-synonyms.json +2 -2
- package/dist/version.json +2 -2
- package/package.json +15 -9
- package/dist/docs/components/tables.md +0 -8
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
*Category:* Components
|
|
4
4
|
*Section:* Misc
|
|
5
5
|
*Source:* https://uikit.developers.rio.cloud/#/components/listMenu
|
|
6
|
-
*Captured:* 2026-
|
|
6
|
+
*Captured:* 2026-04-20T12:54:47.861Z
|
|
7
7
|
|
|
8
8
|
A simple list menu that supports grouping and filter.
|
|
9
9
|
|
|
@@ -203,6 +203,7 @@ export default () => {
|
|
|
203
203
|
| groupClassName | string | — | Additional classes to be set on the menu group element. |
|
|
204
204
|
| trailingInputAddon | React.ReactNode | — | Additional addon for the input group. |
|
|
205
205
|
| className | string | — | Additional classes to be set on the wrapper element. |
|
|
206
|
+
| filterFn | ListMenuFilterFn<T> | — | Optional custom filter function. Use this when filtering should do more than a simple substring match, for example fuzzy ranking or multi-field weighting. |
|
|
206
207
|
|
|
207
208
|
#### Props: ListMenuNavItem
|
|
208
209
|
|
|
@@ -241,6 +242,8 @@ import { NavLink } from 'react-router-dom';
|
|
|
241
242
|
|
|
242
243
|
import ListMenu, { type ListMenuItem } from '@rio-cloud/rio-uikit/ListMenu';
|
|
243
244
|
|
|
245
|
+
const getNavLinkClassName = ({ isActive }: { isActive: boolean }) => (isActive ? 'active' : '');
|
|
246
|
+
|
|
244
247
|
const menuItems: ListMenuItem[] = [
|
|
245
248
|
{
|
|
246
249
|
group: 'Group',
|
|
@@ -248,7 +251,7 @@ const menuItems: ListMenuItem[] = [
|
|
|
248
251
|
{
|
|
249
252
|
key: 'Lorem',
|
|
250
253
|
item: (
|
|
251
|
-
<NavLink
|
|
254
|
+
<NavLink className={getNavLinkClassName} to='/components/listMenu'>
|
|
252
255
|
Lorem
|
|
253
256
|
</NavLink>
|
|
254
257
|
),
|
|
@@ -256,7 +259,7 @@ const menuItems: ListMenuItem[] = [
|
|
|
256
259
|
{
|
|
257
260
|
key: 'Lipsum',
|
|
258
261
|
item: (
|
|
259
|
-
<NavLink
|
|
262
|
+
<NavLink className={getNavLinkClassName} to='/foo'>
|
|
260
263
|
Lipsum
|
|
261
264
|
</NavLink>
|
|
262
265
|
),
|
|
@@ -264,7 +267,7 @@ const menuItems: ListMenuItem[] = [
|
|
|
264
267
|
{
|
|
265
268
|
key: 'Dolor',
|
|
266
269
|
item: (
|
|
267
|
-
<NavLink
|
|
270
|
+
<NavLink className={getNavLinkClassName} to='/foo'>
|
|
268
271
|
Dolor
|
|
269
272
|
</NavLink>
|
|
270
273
|
),
|
|
@@ -272,7 +275,7 @@ const menuItems: ListMenuItem[] = [
|
|
|
272
275
|
{
|
|
273
276
|
key: 'Sit amet',
|
|
274
277
|
item: (
|
|
275
|
-
<NavLink
|
|
278
|
+
<NavLink className={getNavLinkClassName} to='/foo'>
|
|
276
279
|
Sit amet
|
|
277
280
|
</NavLink>
|
|
278
281
|
),
|
|
@@ -286,12 +289,11 @@ const menuItems: ListMenuItem[] = [
|
|
|
286
289
|
},
|
|
287
290
|
{
|
|
288
291
|
group: 'Another group',
|
|
289
|
-
isSubItem: true,
|
|
290
292
|
navItems: [
|
|
291
293
|
{
|
|
292
294
|
key: 'Lorem',
|
|
293
295
|
item: (
|
|
294
|
-
<NavLink
|
|
296
|
+
<NavLink className={getNavLinkClassName} to='/bar'>
|
|
295
297
|
Lorem
|
|
296
298
|
</NavLink>
|
|
297
299
|
),
|
|
@@ -319,16 +321,16 @@ export default () => (
|
|
|
319
321
|
<span class="">Group</span>
|
|
320
322
|
</li>
|
|
321
323
|
<li class="">
|
|
322
|
-
<a
|
|
324
|
+
<a aria-current="page" class="active" href="#/components/listMenu" data-discover="true">Lorem</a>
|
|
323
325
|
</li>
|
|
324
326
|
<li class="">
|
|
325
|
-
<a
|
|
327
|
+
<a class="" href="#/foo" data-discover="true">Lipsum</a>
|
|
326
328
|
</li>
|
|
327
329
|
<li class="">
|
|
328
|
-
<a
|
|
330
|
+
<a class="" href="#/foo" data-discover="true">Dolor</a>
|
|
329
331
|
</li>
|
|
330
332
|
<li class="">
|
|
331
|
-
<a
|
|
333
|
+
<a class="" href="#/foo" data-discover="true">Sit amet</a>
|
|
332
334
|
</li>
|
|
333
335
|
<li class="subitem">
|
|
334
336
|
<span>No Link Sample</span>
|
|
@@ -339,7 +341,7 @@ export default () => (
|
|
|
339
341
|
<span class="">Another group</span>
|
|
340
342
|
</li>
|
|
341
343
|
<li class="">
|
|
342
|
-
<a
|
|
344
|
+
<a class="" href="#/bar" data-discover="true">Lorem</a>
|
|
343
345
|
</li>
|
|
344
346
|
</ul>
|
|
345
347
|
</div>
|
|
@@ -369,6 +371,7 @@ export default () => (
|
|
|
369
371
|
| groupClassName | string | — | Additional classes to be set on the menu group element. |
|
|
370
372
|
| trailingInputAddon | React.ReactNode | — | Additional addon for the input group. |
|
|
371
373
|
| className | string | — | Additional classes to be set on the wrapper element. |
|
|
374
|
+
| filterFn | ListMenuFilterFn<T> | — | Optional custom filter function. Use this when filtering should do more than a simple substring match, for example fuzzy ranking or multi-field weighting. |
|
|
372
375
|
|
|
373
376
|
#### Props: ListMenuNavItem
|
|
374
377
|
|
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
*Category:* Components
|
|
4
4
|
*Section:* Interaction
|
|
5
5
|
*Source:* https://uikit.developers.rio.cloud/#/components/loadMore
|
|
6
|
-
*Captured:* 2026-
|
|
6
|
+
*Captured:* 2026-04-20T12:53:45.163Z
|
|
7
7
|
|
|
8
8
|
## LoadMoreButton
|
|
9
9
|
|
|
@@ -95,6 +95,7 @@ export default () => {
|
|
|
95
95
|
| onLoadMore | VoidFunction | — | Callback fired when clicking on the load more button. |
|
|
96
96
|
| progressBarStyle | ProgressBarStyle | 'white' | In case the component is used on white background, set the progress bar style to gray. |
|
|
97
97
|
| className | string | — | Additional classes to be set on the wrapper element. |
|
|
98
|
+
| hideOnPrint | boolean | true | Hides the wrapper in print styles. |
|
|
98
99
|
|
|
99
100
|
### Example: Example 2
|
|
100
101
|
|
|
@@ -197,4 +198,5 @@ export default () => {
|
|
|
197
198
|
| isInteractive | boolean | true | If set to false, the button will not be rendered. The loadMoreMessage will be shown as text. |
|
|
198
199
|
| onLoadMore | VoidFunction | — | Callback fired when clicking on the load more button. |
|
|
199
200
|
| progressBarStyle | ProgressBarStyle | 'white' | In case the component is used on white background, set the progress bar style to gray. |
|
|
200
|
-
| className | string | — | Additional classes to be set on the wrapper element. |
|
|
201
|
+
| className | string | — | Additional classes to be set on the wrapper element. |
|
|
202
|
+
| hideOnPrint | boolean | true | Hides the wrapper in print styles. |
|
|
@@ -3,13 +3,22 @@
|
|
|
3
3
|
*Category:* Components
|
|
4
4
|
*Section:* Map
|
|
5
5
|
*Source:* https://uikit.developers.rio.cloud/#/components/mapCircle
|
|
6
|
-
*Captured:* 2026-
|
|
6
|
+
*Captured:* 2026-04-20T12:55:18.827Z
|
|
7
7
|
|
|
8
8
|
## Circle
|
|
9
9
|
|
|
10
10
|
### Example: Example 1
|
|
11
11
|
|
|
12
|
+
Terms of use © 1987–2026 HERE
|
|
12
13
|
|
|
14
|
+
10 km
|
|
15
|
+
|
|
16
|
+
Choose view
|
|
17
|
+
Map view
|
|
18
|
+
Satellite
|
|
19
|
+
|
|
20
|
+
Traffic conditions
|
|
21
|
+
Show traffic incidents
|
|
13
22
|
|
|
14
23
|
#### React (tsx)
|
|
15
24
|
|
|
@@ -3,12 +3,23 @@
|
|
|
3
3
|
*Category:* Components
|
|
4
4
|
*Section:* Map
|
|
5
5
|
*Source:* https://uikit.developers.rio.cloud/#/components/mapCluster
|
|
6
|
-
*Captured:* 2026-
|
|
6
|
+
*Captured:* 2026-04-20T12:55:14.806Z
|
|
7
7
|
|
|
8
8
|
## Clusters
|
|
9
9
|
|
|
10
10
|
### Example: Example 1
|
|
11
11
|
|
|
12
|
+
Terms of use © 1987–2026 HERE
|
|
13
|
+
|
|
14
|
+
50 km
|
|
15
|
+
|
|
16
|
+
Choose view
|
|
17
|
+
Map view
|
|
18
|
+
Satellite
|
|
19
|
+
|
|
20
|
+
Traffic conditions
|
|
21
|
+
Show traffic incidents
|
|
22
|
+
|
|
12
23
|
Regenerate data Toggle cluster
|
|
13
24
|
|
|
14
25
|
#### React (tsx)
|
|
@@ -140,6 +151,17 @@ export default ClustersExample;
|
|
|
140
151
|
|
|
141
152
|
### Example: Example 2
|
|
142
153
|
|
|
154
|
+
Terms of use © 1987–2026 HERE
|
|
155
|
+
|
|
156
|
+
50 km
|
|
157
|
+
|
|
158
|
+
Choose view
|
|
159
|
+
Map view
|
|
160
|
+
Satellite
|
|
161
|
+
|
|
162
|
+
Traffic conditions
|
|
163
|
+
Show traffic incidents
|
|
164
|
+
|
|
143
165
|
Regenerate data
|
|
144
166
|
|
|
145
167
|
#### React (tsx)
|
|
@@ -3,13 +3,22 @@
|
|
|
3
3
|
*Category:* Components
|
|
4
4
|
*Section:* Map
|
|
5
5
|
*Source:* https://uikit.developers.rio.cloud/#/components/mapContext
|
|
6
|
-
*Captured:* 2026-
|
|
6
|
+
*Captured:* 2026-04-20T12:55:26.951Z
|
|
7
7
|
|
|
8
8
|
## Map
|
|
9
9
|
|
|
10
10
|
### Example: Example 1
|
|
11
11
|
|
|
12
|
+
Terms of use © 1987–2026 HERE
|
|
12
13
|
|
|
14
|
+
10 km
|
|
15
|
+
|
|
16
|
+
Choose view
|
|
17
|
+
Map view
|
|
18
|
+
Satellite
|
|
19
|
+
|
|
20
|
+
Traffic conditions
|
|
21
|
+
Show traffic incidents
|
|
13
22
|
|
|
14
23
|
#### React (tsx)
|
|
15
24
|
|
|
@@ -35,12 +44,11 @@ import type { MapApi, MapContextMenuEvent, MapEvent, Position } from '@rio-cloud
|
|
|
35
44
|
import { UIKIT_DEMO_CREDENTIALS_ARE_NOT_ALLOWED_IN_PROD_ENVIRONMENT } from '../uikit_demo_credentials';
|
|
36
45
|
import MapSettingsDropdownHeader from '@rio-cloud/rio-uikit/MapSettingsDropdownHeader';
|
|
37
46
|
|
|
38
|
-
const formatCoordinates = (coordinates: Position) =>
|
|
39
|
-
|
|
47
|
+
const formatCoordinates = (coordinates: Position) =>
|
|
48
|
+
[
|
|
40
49
|
Math.abs(Number(coordinates.lat.toFixed(4))) + (coordinates.lat > 0 ? 'N' : 'S'),
|
|
41
50
|
Math.abs(Number(coordinates.lng.toFixed(4))) + (coordinates.lng > 0 ? 'E' : 'W'),
|
|
42
51
|
].join(' ');
|
|
43
|
-
};
|
|
44
52
|
|
|
45
53
|
const notifyCoordinates = (coordinates: Position) => Notification.info(JSON.stringify(coordinates));
|
|
46
54
|
|
|
@@ -3,12 +3,23 @@
|
|
|
3
3
|
*Category:* Components
|
|
4
4
|
*Section:* Map
|
|
5
5
|
*Source:* https://uikit.developers.rio.cloud/#/components/mapDraggableMarker
|
|
6
|
-
*Captured:* 2026-
|
|
6
|
+
*Captured:* 2026-04-20T12:55:16.462Z
|
|
7
7
|
|
|
8
8
|
## Draggable marker
|
|
9
9
|
|
|
10
10
|
### Example: Example 1
|
|
11
11
|
|
|
12
|
+
Terms of use © 1987–2026 HERE
|
|
13
|
+
|
|
14
|
+
10 km
|
|
15
|
+
|
|
16
|
+
Choose view
|
|
17
|
+
Map view
|
|
18
|
+
Satellite
|
|
19
|
+
|
|
20
|
+
Traffic conditions
|
|
21
|
+
Show traffic incidents
|
|
22
|
+
|
|
12
23
|
Marker position {"lat":48.16,"lng":11.38}
|
|
13
24
|
|
|
14
25
|
#### React (tsx)
|
|
@@ -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-04-20T12:55:02.170Z
|
|
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,11 +3,138 @@
|
|
|
3
3
|
*Category:* Components
|
|
4
4
|
*Section:* Map
|
|
5
5
|
*Source:* https://uikit.developers.rio.cloud/#/components/mapInfoBubble
|
|
6
|
-
*Captured:* 2026-
|
|
6
|
+
*Captured:* 2026-04-20T12:55:25.012Z
|
|
7
7
|
|
|
8
8
|
## InfoBubble
|
|
9
9
|
|
|
10
|
-
### Example:
|
|
10
|
+
### Example: Click the POI marker to open the InfoBubble.
|
|
11
|
+
|
|
12
|
+
Terms of use © 1987–2026 HERE
|
|
13
|
+
|
|
14
|
+
1 km
|
|
15
|
+
|
|
16
|
+
Choose view
|
|
17
|
+
Map view
|
|
18
|
+
Satellite
|
|
19
|
+
|
|
20
|
+
Traffic conditions
|
|
21
|
+
Show traffic incidents
|
|
22
|
+
|
|
23
|
+
Click the POI marker to open the InfoBubble.
|
|
24
|
+
|
|
25
|
+
#### React (tsx)
|
|
26
|
+
|
|
27
|
+
```tsx
|
|
28
|
+
import { useRef, useState } from 'react';
|
|
29
|
+
|
|
30
|
+
import EventUtils from '@rio-cloud/rio-uikit/EventUtils';
|
|
31
|
+
import InfoBubble from '@rio-cloud/rio-uikit/InfoBubble';
|
|
32
|
+
import Map from '@rio-cloud/rio-uikit/Map';
|
|
33
|
+
import MapSettings from '@rio-cloud/rio-uikit/MapSettings';
|
|
34
|
+
import MapTypeSettings from '@rio-cloud/rio-uikit/MapTypeSettings';
|
|
35
|
+
import Marker from '@rio-cloud/rio-uikit/Marker';
|
|
36
|
+
import SingleMapMarker from '@rio-cloud/rio-uikit/SingleMapMarker';
|
|
37
|
+
import type { MapApi } from '@rio-cloud/rio-uikit/mapTypes';
|
|
38
|
+
|
|
39
|
+
import { UIKIT_DEMO_CREDENTIALS_ARE_NOT_ALLOWED_IN_PROD_ENVIRONMENT } from '../uikit_demo_credentials';
|
|
40
|
+
|
|
41
|
+
const mapCenter = { lat: 48.1398, lng: 11.582 };
|
|
42
|
+
const poiPosition = { lat: 48.1274, lng: 11.593 };
|
|
43
|
+
|
|
44
|
+
const PoiInfoBubbleContent = () => (
|
|
45
|
+
<div className='width-250 user-select-none'>
|
|
46
|
+
<div className='margin--15 padding-20 rounded'>
|
|
47
|
+
<div className='text-size-16 text-medium'>RIO Campus Munich</div>
|
|
48
|
+
<div className='text-color-dark'>80939 Munich, Germany</div>
|
|
49
|
+
|
|
50
|
+
<div className='margin-top-15 display-flex justify-content-between'>
|
|
51
|
+
<div className='text-medium'>Open 24/7</div>
|
|
52
|
+
<div className=''>
|
|
53
|
+
<span className='label label-success label-condensed'>Available</span>
|
|
54
|
+
</div>
|
|
55
|
+
</div>
|
|
56
|
+
<div className='margin-top-10 text-color-darker line-height-20'>
|
|
57
|
+
Visitor parking, reception and charging stations directly on site.
|
|
58
|
+
</div>
|
|
59
|
+
</div>
|
|
60
|
+
</div>
|
|
61
|
+
);
|
|
62
|
+
|
|
63
|
+
export default () => {
|
|
64
|
+
const [showInfoBubble, setShowInfoBubble] = useState(false);
|
|
65
|
+
const mapApiRef = useRef<MapApi>();
|
|
66
|
+
|
|
67
|
+
return (
|
|
68
|
+
<>
|
|
69
|
+
<Map
|
|
70
|
+
credentials={UIKIT_DEMO_CREDENTIALS_ARE_NOT_ALLOWED_IN_PROD_ENVIRONMENT}
|
|
71
|
+
center={mapCenter}
|
|
72
|
+
zoom={13}
|
|
73
|
+
height={420}
|
|
74
|
+
mapSettings={
|
|
75
|
+
<MapSettings
|
|
76
|
+
options={[
|
|
77
|
+
<MapTypeSettings
|
|
78
|
+
key='mapTypeSettings'
|
|
79
|
+
tooltip='Change map type'
|
|
80
|
+
dropdownHeaderText='Map views'
|
|
81
|
+
defaultTypeLabel='Default view'
|
|
82
|
+
truckTypeLabel='Truck view'
|
|
83
|
+
terrainTypeLabel='Terrain view'
|
|
84
|
+
satelliteTypeLabel='Satellite view'
|
|
85
|
+
nightTypeLabel='Night view'
|
|
86
|
+
/>,
|
|
87
|
+
]}
|
|
88
|
+
/>
|
|
89
|
+
}
|
|
90
|
+
>
|
|
91
|
+
{(api: MapApi) => {
|
|
92
|
+
mapApiRef.current = api;
|
|
93
|
+
|
|
94
|
+
return (
|
|
95
|
+
<Marker
|
|
96
|
+
position={poiPosition}
|
|
97
|
+
icon={
|
|
98
|
+
<SingleMapMarker
|
|
99
|
+
iconNames={['factory']}
|
|
100
|
+
markerColor='bg-map-marker-poi'
|
|
101
|
+
active={showInfoBubble}
|
|
102
|
+
/>
|
|
103
|
+
}
|
|
104
|
+
eventListenerMap={{
|
|
105
|
+
[EventUtils.TAP]: () => setShowInfoBubble(true),
|
|
106
|
+
}}
|
|
107
|
+
/>
|
|
108
|
+
);
|
|
109
|
+
}}
|
|
110
|
+
</Map>
|
|
111
|
+
{showInfoBubble && (
|
|
112
|
+
<InfoBubble
|
|
113
|
+
api={mapApiRef.current}
|
|
114
|
+
position={poiPosition}
|
|
115
|
+
markerOffset={{ x: 0, y: -50 }}
|
|
116
|
+
content={<PoiInfoBubbleContent />}
|
|
117
|
+
onClose={() => setShowInfoBubble(false)}
|
|
118
|
+
/>
|
|
119
|
+
)}
|
|
120
|
+
<div className='margin-top-15 text-color-dark'>Click the POI marker to open the InfoBubble.</div>
|
|
121
|
+
</>
|
|
122
|
+
);
|
|
123
|
+
};
|
|
124
|
+
```
|
|
125
|
+
|
|
126
|
+
### Example: Example 2
|
|
127
|
+
|
|
128
|
+
Terms of use © 1987–2026 HERE
|
|
129
|
+
|
|
130
|
+
10 km
|
|
131
|
+
|
|
132
|
+
Ansicht auswählen
|
|
133
|
+
Kartenansicht
|
|
134
|
+
Satellit
|
|
135
|
+
|
|
136
|
+
Verkehrslage
|
|
137
|
+
Verkehrsstörungen anzeigen
|
|
11
138
|
|
|
12
139
|
Toggle info
|
|
13
140
|
|
|
@@ -3,13 +3,22 @@
|
|
|
3
3
|
*Category:* Components
|
|
4
4
|
*Section:* Map
|
|
5
5
|
*Source:* https://uikit.developers.rio.cloud/#/components/mapLayerGroup
|
|
6
|
-
*Captured:* 2026-
|
|
6
|
+
*Captured:* 2026-04-20T12:55:16.979Z
|
|
7
7
|
|
|
8
8
|
## MapLayerGroup
|
|
9
9
|
|
|
10
10
|
### Example: Example 1
|
|
11
11
|
|
|
12
|
+
Terms of use © 1987–2026 HERE
|
|
12
13
|
|
|
14
|
+
10 km
|
|
15
|
+
|
|
16
|
+
Choose view
|
|
17
|
+
Map view
|
|
18
|
+
Satellite
|
|
19
|
+
|
|
20
|
+
Traffic conditions
|
|
21
|
+
Show traffic incidents
|
|
13
22
|
|
|
14
23
|
#### React (tsx)
|
|
15
24
|
|
|
@@ -3,21 +3,28 @@
|
|
|
3
3
|
*Category:* Components
|
|
4
4
|
*Section:* Map
|
|
5
5
|
*Source:* https://uikit.developers.rio.cloud/#/components/mapMarker
|
|
6
|
-
*Captured:* 2026-
|
|
6
|
+
*Captured:* 2026-04-20T12:55:13.224Z
|
|
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
|
|
|
10
10
|
## Marker
|
|
11
11
|
|
|
12
|
-
> Note: The map zoom level does not affect the size of Markers.
|
|
13
|
-
|
|
14
12
|
**Sharing icon between Markers**
|
|
15
13
|
|
|
16
14
|
It's possible to share icon instances between different markers. This can be used to improve rendering performance of many markers on the map.
|
|
17
15
|
|
|
18
16
|
### Example: Example 1
|
|
19
17
|
|
|
18
|
+
Terms of use © 1987–2026 HERE
|
|
19
|
+
|
|
20
|
+
10 km
|
|
21
|
+
|
|
22
|
+
Choose view
|
|
23
|
+
Map view
|
|
24
|
+
Satellite
|
|
20
25
|
|
|
26
|
+
Traffic conditions
|
|
27
|
+
Show traffic incidents
|
|
21
28
|
|
|
22
29
|
#### React (tsx)
|
|
23
30
|
|