@rio-cloud/rio-uikit 0.16.1-beta.23 → 0.16.1
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/ActionBarItem.d.ts +1 -1
- package/ActionBarItemList.d.ts +1 -1
- package/ActionBarItemListItem.d.ts +1 -1
- package/ActionBarItemListSeparator.d.ts +1 -1
- package/Activity.d.ts +1 -1
- package/AnimatedNumber.d.ts +1 -1
- package/AppNavigationBar.d.ts +1 -1
- package/ApplicationHeader.d.ts +1 -1
- package/ApplicationLayout.d.ts +1 -1
- package/ApplicationLayoutBodyBanner.d.ts +1 -1
- package/ApplicationLayoutBodyBottomBar.d.ts +1 -1
- package/ApplicationLayoutBodyNavigation.d.ts +1 -1
- package/Area.d.ts +1 -1
- package/AreaChart.d.ts +1 -1
- package/AreaGradient.d.ts +1 -1
- package/AssetTree.d.ts +1 -1
- package/AutoSuggest.d.ts +6 -5
- package/Bar.d.ts +5 -2
- package/BarChart.d.ts +1 -1
- package/BottomSheet.d.ts +1 -1
- package/BrowserWarning.d.ts +1 -1
- package/Button.d.ts +24 -2
- package/ButtonDropdown.d.ts +1 -1
- package/Carousel.d.ts +3 -1
- package/ChartNeedle.d.ts +1 -1
- package/ChartTooltip.d.ts +1 -1
- package/Checkbox.d.ts +1 -1
- package/Circle.d.ts +1 -1
- package/ClearableInput.d.ts +1 -1
- package/ClusterLayer.d.ts +1 -1
- package/ClusterMapMarker.d.ts +1 -1
- package/ClusterUtils.d.ts +1 -1
- package/Collapse.d.ts +1 -1
- package/Colors.d.ts +1 -1
- package/ConfirmationDialog.d.ts +9 -2
- package/ContentLoader.d.ts +5 -2
- package/ContextMenu.d.ts +1 -1
- package/ContextMenuItem.d.ts +1 -1
- package/CustomState.d.ts +1 -1
- package/DataTab.d.ts +1 -1
- package/DataTabs.d.ts +1 -1
- package/DatePicker.d.ts +1 -1
- package/DateRangePicker.d.ts +1 -1
- package/DeviceUtils.d.ts +1 -1
- package/Dialog.d.ts +1 -1
- package/DomMarker.d.ts +1 -1
- package/DropdownSubmenu.d.ts +1 -1
- package/EmptyState.d.ts +1 -1
- package/EnhancedMapEvent.d.ts +1 -1
- package/ErrorState.d.ts +1 -1
- package/EventUtils.d.ts +1 -1
- package/ExpanderList.d.ts +5 -5
- package/ExpanderPanel.d.ts +1 -1
- package/Fade.d.ts +11 -2
- package/FilePicker.d.ts +6 -2
- package/ForbiddenState.d.ts +1 -1
- package/ImagePreloader.d.ts +1 -1
- package/IncidentsLayer.d.ts +1 -1
- package/InfoDialog.d.ts +1 -1
- package/Legend.d.ts +1 -1
- package/Line.d.ts +1 -1
- package/LineChart.d.ts +1 -1
- package/ListMenu.d.ts +6 -5
- package/LoadMoreButton.d.ts +1 -1
- package/MaintenanceState.d.ts +1 -1
- package/Map.d.ts +10 -7
- package/MapBoundingBoxButton.d.ts +1 -1
- package/MapCenterMarkerButton.d.ts +1 -1
- package/MapClusterSettings.d.ts +1 -1
- package/MapCustomerPoiSettingsItem.d.ts +1 -1
- package/MapLayerGroup.d.ts +1 -1
- package/MapLayerIncidentsItem.d.ts +1 -1
- package/MapLayerRoadRestrictionsItem.d.ts +1 -1
- package/MapLayerSettings.d.ts +1 -1
- package/MapLayerTrafficItem.d.ts +1 -1
- package/MapLockMarkerButton.d.ts +1 -1
- package/MapSettings.d.ts +1 -1
- package/MapSettingsItem.d.ts +1 -1
- package/MapSettingsPanel.d.ts +1 -1
- package/MapSettingsTile.d.ts +1 -1
- package/MapTypeSettings.d.ts +1 -1
- package/MapWorkshopPoiSettingsItem.d.ts +1 -1
- package/Marker.d.ts +1 -1
- package/MarkerLayer.d.ts +1 -1
- package/MediaDialog.d.ts +8 -4
- package/MenuItem.d.ts +2 -2
- package/Multiselect.d.ts +11 -4
- package/NoData.d.ts +1 -1
- package/NotBookedState.d.ts +1 -1
- package/NotFoundState.d.ts +1 -1
- package/Notification.d.ts +1 -1
- package/NotificationsContainer.d.ts +1 -1
- package/NumberControl.d.ts +5 -2
- package/NumberInput.d.ts +5 -2
- package/OnboardingTip.d.ts +27 -2
- package/OverlayTrigger.d.ts +26 -2
- package/Pager.d.ts +1 -1
- package/PieChart.d.ts +1 -1
- package/Polygon.d.ts +1 -1
- package/Polyline.d.ts +1 -1
- package/Popover.d.ts +8 -2
- package/Position.d.ts +1 -1
- package/PositionUtils.d.ts +1 -1
- package/RadialBarChart.d.ts +1 -1
- package/RadioButton.d.ts +1 -1
- package/RangeSlider.d.ts +1 -1
- package/ReleaseNotes.d.ts +1 -1
- package/ReleaseNotesDialog.d.ts +1 -1
- package/Resizer.d.ts +10 -2
- package/ResponsiveVideo.d.ts +5 -2
- package/Route.d.ts +1 -1
- package/RuleConnector.d.ts +9 -0
- package/RuleConnector.js +2 -0
- package/RuleContainer.d.ts +5 -0
- package/RuleContainer.js +2 -0
- package/RulesWrapper.d.ts +5 -0
- package/RulesWrapper.js +2 -0
- package/SaveDialog.d.ts +9 -2
- package/Select.d.ts +5 -5
- package/Sidebar.d.ts +8 -2
- package/SimpleButtonDropdown.d.ts +1 -1
- package/SimpleClusterLayer.d.ts +1 -1
- package/SimpleDialog.d.ts +9 -2
- package/SimpleTooltip.d.ts +26 -2
- package/SingleButtonDropdown.d.ts +1 -1
- package/SingleMapMarker.d.ts +1 -1
- package/Slider.d.ts +1 -1
- package/SortArrowDown.d.ts +1 -1
- package/SortArrowUp.d.ts +1 -1
- package/SortArrows.d.ts +1 -1
- package/SortDirection.d.ts +1 -1
- package/SortUtils.d.ts +1 -1
- package/Spinner.d.ts +1 -1
- package/SplitButtonDropdown.d.ts +1 -1
- package/SplitDialog.d.ts +9 -2
- package/StatsWidget.d.ts +1 -1
- package/StatsWidgetNumber.d.ts +1 -1
- package/StatsWidgetSpacer.d.ts +1 -1
- package/StatsWidgets.d.ts +1 -1
- package/StatusBar.d.ts +1 -1
- package/SteppedProgressBar.d.ts +6 -2
- package/SubNavigation.d.ts +1 -1
- package/Switch.d.ts +5 -2
- package/TableCardsSorting.d.ts +1 -1
- package/TableSearch.d.ts +1 -1
- package/TableSettingsDialog.d.ts +1 -1
- package/TableToolbar.d.ts +1 -1
- package/TableViewToggles.d.ts +1 -1
- package/Tag.d.ts +1 -1
- package/TagList.d.ts +1 -1
- package/TagManager.d.ts +5 -5
- package/Teaser.d.ts +1 -1
- package/TeaserContainer.d.ts +1 -1
- package/TextMarker.d.ts +1 -1
- package/TimePicker.d.ts +1 -1
- package/ToggleButton.d.ts +1 -1
- package/Tooltip.d.ts +29 -2
- package/TrafficLayer.d.ts +1 -1
- package/Tree.d.ts +1 -1
- package/TreeCategory.d.ts +1 -1
- package/TreeOption.d.ts +1 -1
- package/TreeSearch.d.ts +1 -1
- package/TreeSummary.d.ts +1 -1
- package/TruckLayer.d.ts +1 -1
- package/TypeCounter.d.ts +1 -1
- package/VolkswagenApplicationHeader.d.ts +1 -1
- package/components/button/Button.js +6 -3
- package/components/datepicker/DatePicker.js +5 -2
- package/components/dialog/SplitDialog.js +5 -2
- package/components/dropdown/ButtonDropdown.js +9 -3
- package/components/map/components/Map.js +24 -1
- package/components/overlay/OverlayTrigger.js +2 -1
- package/components/rules/RuleConnector.js +76 -0
- package/components/rules/RuleContainer.js +68 -0
- package/components/rules/RulesWrapper.js +17 -0
- package/components/selects/BaseDropdownMenu.js +40 -26
- package/components/selects/Multiselect.js +5 -3
- package/components/selects/Select.js +7 -5
- package/framer-motion.d.ts +1 -0
- package/index.d.ts +7 -1
- package/index.js +6 -0
- package/lib/es/AutoSuggest.d.ts +6 -5
- package/lib/es/Bar.d.ts +4 -1
- package/lib/es/Button.d.ts +23 -1
- package/lib/es/Carousel.d.ts +2 -0
- package/lib/es/ConfirmationDialog.d.ts +8 -1
- package/lib/es/ContentLoader.d.ts +4 -1
- package/lib/es/ExpanderList.d.ts +5 -5
- package/lib/es/Fade.d.ts +10 -1
- package/lib/es/FilePicker.d.ts +5 -1
- package/lib/es/ListMenu.d.ts +6 -5
- package/lib/es/Map.d.ts +10 -7
- package/lib/es/MediaDialog.d.ts +8 -4
- package/lib/es/MenuItem.d.ts +1 -1
- package/lib/es/Multiselect.d.ts +11 -4
- package/lib/es/NumberControl.d.ts +4 -1
- package/lib/es/NumberInput.d.ts +4 -1
- package/lib/es/OnboardingTip.d.ts +26 -1
- package/lib/es/OverlayTrigger.d.ts +25 -1
- package/lib/es/Popover.d.ts +7 -1
- package/lib/es/Resizer.d.ts +9 -1
- package/lib/es/ResponsiveVideo.d.ts +4 -1
- package/lib/es/RuleConnector.d.ts +9 -0
- package/lib/es/RuleConnector.js +13 -0
- package/lib/es/RuleContainer.d.ts +5 -0
- package/lib/es/RuleContainer.js +13 -0
- package/lib/es/RulesWrapper.d.ts +5 -0
- package/lib/es/RulesWrapper.js +13 -0
- package/lib/es/SaveDialog.d.ts +8 -1
- package/lib/es/Select.d.ts +5 -5
- package/lib/es/Sidebar.d.ts +7 -1
- package/lib/es/SimpleDialog.d.ts +8 -1
- package/lib/es/SimpleTooltip.d.ts +25 -1
- package/lib/es/SplitDialog.d.ts +8 -1
- package/lib/es/SteppedProgressBar.d.ts +5 -1
- package/lib/es/Switch.d.ts +4 -1
- package/lib/es/TagManager.d.ts +5 -5
- package/lib/es/Tooltip.d.ts +28 -1
- package/lib/es/components/button/Button.js +6 -3
- package/lib/es/components/datepicker/DatePicker.js +3 -3
- package/lib/es/components/dialog/SplitDialog.js +5 -2
- package/lib/es/components/dropdown/ButtonDropdown.js +9 -3
- package/lib/es/components/map/components/Map.js +24 -1
- package/lib/es/components/overlay/OverlayTrigger.js +2 -1
- package/lib/es/components/rules/RuleConnector.js +84 -0
- package/lib/es/components/rules/RuleContainer.js +76 -0
- package/lib/es/components/rules/RulesWrapper.js +25 -0
- package/lib/es/components/selects/BaseDropdownMenu.js +40 -26
- package/lib/es/components/selects/Multiselect.js +5 -3
- package/lib/es/components/selects/Select.js +7 -5
- package/lib/es/framer-motion.d.ts +1 -0
- package/lib/es/index.d.ts +8 -2
- package/lib/es/index.js +24 -0
- package/lib/es/styles/components/Dialog.less +10 -0
- package/lib/es/styles/components/Dropdown.less +11 -2
- package/lib/es/styles/components/Select.less +5 -6
- package/lib/es/styles/design/box-sizing.less +8 -0
- package/lib/es/styles/design/fonts.less +23 -23
- package/lib/es/styles/design/normalize.less +0 -2
- package/lib/es/styles/design/responsive/flexgrid.less +4 -6
- package/lib/es/styles/design/responsive/sizing.less +3 -0
- package/lib/es/styles/design/tables.less +5 -0
- package/lib/es/styles/mixins/panels.less +3 -3
- package/lib/es/styles/print/print.less +36 -4
- package/lib/es/styles/rio-uikit-core.less +2 -1
- package/lib/es/styles/rio-uikit-print-utilities.less +1 -0
- package/lib/es/themes/Website/styles/rio-website.less +2 -2
- package/lib/es/types.ts +40 -16
- package/lib/es/utils/init.js +1 -1
- package/lib/es/version.json +1 -1
- package/package.json +13 -11
- package/styles/components/Dialog.less +10 -0
- package/styles/components/Dropdown.less +11 -2
- package/styles/components/Select.less +5 -6
- package/styles/design/box-sizing.less +8 -0
- package/styles/design/fonts.less +23 -23
- package/styles/design/normalize.less +0 -2
- package/styles/design/responsive/flexgrid.less +4 -6
- package/styles/design/responsive/sizing.less +3 -0
- package/styles/design/tables.less +5 -0
- package/styles/mixins/panels.less +3 -3
- package/styles/print/print.less +36 -4
- package/styles/rio-uikit-core.less +2 -1
- package/styles/rio-uikit-print-utilities.less +1 -0
- package/themes/Website/styles/rio-website.less +2 -2
- package/types.ts +40 -16
- package/useAfterMount.d.ts +1 -1
- package/useClickOutside.d.ts +1 -1
- package/useClipboard.d.ts +1 -1
- package/useDebugInfo.d.ts +1 -1
- package/useEffectOnce.d.ts +1 -1
- package/useElementSize.d.ts +1 -1
- package/useEsc.d.ts +1 -1
- package/useEvent.d.ts +1 -1
- package/useFullscreen.d.ts +1 -1
- package/useInterval.d.ts +1 -1
- package/useKey.d.ts +1 -1
- package/useLocalStorage.d.ts +1 -1
- package/useOnScreen.d.ts +1 -1
- package/useOnlineStatus.d.ts +1 -1
- package/useRenderCount.d.ts +1 -1
- package/useResizeObserver.d.ts +1 -1
- package/useSessionStorage.d.ts +1 -1
- package/useStateWithValidation.d.ts +1 -1
- package/useTimeout.d.ts +1 -1
- package/useWindowResize.d.ts +1 -1
- package/utils/init.js +1 -1
- package/version.json +1 -1
- package/.DS_Store +0 -0
- package/components/.DS_Store +0 -0
- package/components/map/.DS_Store +0 -0
- package/lib/.DS_Store +0 -0
- package/lib/es/.DS_Store +0 -0
- package/lib/es/components/.DS_Store +0 -0
- package/lib/es/styles/.DS_Store +0 -0
- package/lib/es/themes/.DS_Store +0 -0
- package/styles/.DS_Store +0 -0
- package/themes/.DS_Store +0 -0
- package/themes/Volkswagen/.DS_Store +0 -0
|
@@ -34,6 +34,9 @@
|
|
|
34
34
|
.align-self-start@{suffix} { align-self: flex-start !important }
|
|
35
35
|
.align-self-stretch@{suffix} { align-self: stretch !important }
|
|
36
36
|
|
|
37
|
+
.place-items-center@{suffix} { place-items: center !important }
|
|
38
|
+
.place-self-center@{suffix} { place-self: center !important }
|
|
39
|
+
|
|
37
40
|
/* Flexbox - Helper */
|
|
38
41
|
.flex-0-1@{suffix} { flex: 0 1 auto !important }
|
|
39
42
|
.flex-1-0@{suffix} { flex: 1 0 auto !important }
|
|
@@ -70,9 +73,4 @@ each(@gridColumns, {
|
|
|
70
73
|
.grid-colspan-auto@{suffix} { grid-column: auto !important }
|
|
71
74
|
|
|
72
75
|
// AutoRows
|
|
73
|
-
.grid-auto-rows@{suffix} { grid-auto-rows: minmax(min-content, max-content)}
|
|
74
|
-
|
|
75
|
-
// Placement
|
|
76
|
-
.place-items-center@{suffix} {
|
|
77
|
-
place-items: center !important;
|
|
78
|
-
}
|
|
76
|
+
.grid-auto-rows@{suffix} { grid-auto-rows: minmax(min-content, max-content)}
|
|
@@ -10,6 +10,9 @@
|
|
|
10
10
|
.max-height-0@{suffix} { max-height: 0 !important }
|
|
11
11
|
.max-width-0@{suffix} { max-width: 0 !important }
|
|
12
12
|
|
|
13
|
+
.max-width-none@{suffix} { max-width: none !important }
|
|
14
|
+
.max-height-none@{suffix} { max-height: none !important }
|
|
15
|
+
|
|
13
16
|
// width/height px
|
|
14
17
|
each(@sizes-px, {
|
|
15
18
|
// width
|
|
@@ -227,8 +227,10 @@
|
|
|
227
227
|
&.table-checkbox {
|
|
228
228
|
min-width: 40px;
|
|
229
229
|
width: 40px;
|
|
230
|
+
max-width: 40px;
|
|
230
231
|
|
|
231
232
|
&:first-child {
|
|
233
|
+
max-width: 50px;
|
|
232
234
|
min-width: 50px;
|
|
233
235
|
width: 50px;
|
|
234
236
|
}
|
|
@@ -281,6 +283,9 @@
|
|
|
281
283
|
|
|
282
284
|
&:first-child {
|
|
283
285
|
padding-left: @table-cell-padding;
|
|
286
|
+
max-width: 50px;
|
|
287
|
+
min-width: 50px;
|
|
288
|
+
width: 50px;
|
|
284
289
|
}
|
|
285
290
|
|
|
286
291
|
// > .dropdown > .dropdown-toggle {
|
|
@@ -1,12 +1,28 @@
|
|
|
1
1
|
// Print utils classes - WORK IN PROGRESS
|
|
2
|
+
@media screen {
|
|
3
|
+
.only-printable {
|
|
4
|
+
display: none !important;
|
|
5
|
+
}
|
|
6
|
+
}
|
|
7
|
+
|
|
2
8
|
@media print {
|
|
3
|
-
@page { margin:
|
|
9
|
+
@page { margin: 0 }
|
|
10
|
+
body { margin: 1.6cm }
|
|
4
11
|
|
|
5
12
|
body,
|
|
6
13
|
#root {
|
|
7
14
|
background: transparent !important;
|
|
8
15
|
}
|
|
9
16
|
|
|
17
|
+
html,
|
|
18
|
+
html:not(.window-iframe) {
|
|
19
|
+
background-color: #ffffff;
|
|
20
|
+
}
|
|
21
|
+
|
|
22
|
+
.scroll-to-top {
|
|
23
|
+
display: none !important;
|
|
24
|
+
}
|
|
25
|
+
|
|
10
26
|
// Bootstrap Stuff
|
|
11
27
|
*,
|
|
12
28
|
*:before,
|
|
@@ -60,9 +76,14 @@
|
|
|
60
76
|
display: none !important;
|
|
61
77
|
}
|
|
62
78
|
|
|
79
|
+
.only-printable {
|
|
80
|
+
display: block !important;
|
|
81
|
+
}
|
|
82
|
+
|
|
63
83
|
.ApplicationLayoutHeader,
|
|
64
84
|
.ApplicationLayoutBody,
|
|
65
|
-
.ApplicationLayoutSidebar
|
|
85
|
+
.ApplicationLayoutSidebar,
|
|
86
|
+
#uikit-root .modal {
|
|
66
87
|
&:not(.print-area) {
|
|
67
88
|
display: none !important;
|
|
68
89
|
}
|
|
@@ -72,7 +93,6 @@
|
|
|
72
93
|
.ApplicationLayoutSidebar,
|
|
73
94
|
.ApplicationLayoutSidebar .Sidebar {
|
|
74
95
|
float: none !important;
|
|
75
|
-
//height: auto !important;
|
|
76
96
|
overflow: visible !important;
|
|
77
97
|
width: 100% !important;
|
|
78
98
|
}
|
|
@@ -87,17 +107,29 @@
|
|
|
87
107
|
.SidebarContent {
|
|
88
108
|
display: block !important;
|
|
89
109
|
|
|
90
|
-
.SidebarHeader,
|
|
91
110
|
.SidebarBody {
|
|
92
111
|
display: block !important;
|
|
93
112
|
}
|
|
94
113
|
|
|
114
|
+
.SidebarHeader,
|
|
95
115
|
.SidebarFooter {
|
|
96
116
|
display: none !important;
|
|
97
117
|
}
|
|
98
118
|
}
|
|
99
119
|
}
|
|
100
120
|
|
|
121
|
+
#uikit-root .modal {
|
|
122
|
+
width: 100% !important;
|
|
123
|
+
|
|
124
|
+
.modal-dialog .modal-content {
|
|
125
|
+
box-shadow: none !important;
|
|
126
|
+
}
|
|
127
|
+
|
|
128
|
+
.modal-backdrop {
|
|
129
|
+
display: none !important;
|
|
130
|
+
}
|
|
131
|
+
}
|
|
132
|
+
|
|
101
133
|
// Components
|
|
102
134
|
.table {
|
|
103
135
|
display: table !important;
|
|
@@ -8,6 +8,7 @@
|
|
|
8
8
|
@import (less) './design/normalize.less';
|
|
9
9
|
|
|
10
10
|
// Styles // right order is important
|
|
11
|
+
@import (less) './design/box-sizing.less';
|
|
11
12
|
@import (less) './design/code.less';
|
|
12
13
|
@import (less) './design/cols.less';
|
|
13
14
|
@import (less) './design/tables.less';
|
|
@@ -70,7 +71,7 @@
|
|
|
70
71
|
@import (less) './filter/_imports.less';
|
|
71
72
|
|
|
72
73
|
// Print
|
|
73
|
-
@import (less) './print/print.less';
|
|
74
|
+
// @import (less) './print/print.less';
|
|
74
75
|
|
|
75
76
|
// Component styles
|
|
76
77
|
@import (less) './components/Activity.less';
|
|
@@ -2208,11 +2208,11 @@ body:not(.legal-documents) {
|
|
|
2208
2208
|
}
|
|
2209
2209
|
|
|
2210
2210
|
&[class*="clip-top"]:after {
|
|
2211
|
-
top:
|
|
2211
|
+
top: -1px;
|
|
2212
2212
|
}
|
|
2213
2213
|
|
|
2214
2214
|
&[class*="clip-bottom"]::after {
|
|
2215
|
-
bottom:
|
|
2215
|
+
bottom: -1px;
|
|
2216
2216
|
}
|
|
2217
2217
|
|
|
2218
2218
|
&[class*="clip-white"]:after {
|
package/lib/es/types.ts
CHANGED
|
@@ -588,7 +588,7 @@ export interface DomMarkerProps {
|
|
|
588
588
|
|
|
589
589
|
export interface DropdownSubmenuProps {
|
|
590
590
|
title?: string | React.ReactNode;
|
|
591
|
-
items?:
|
|
591
|
+
items?: MenuItem[];
|
|
592
592
|
disabled?: boolean;
|
|
593
593
|
className?: string;
|
|
594
594
|
}
|
|
@@ -769,15 +769,15 @@ export interface LineChartProps {
|
|
|
769
769
|
tooltip?: ChartTooltip | boolean;
|
|
770
770
|
}
|
|
771
771
|
|
|
772
|
-
export interface
|
|
772
|
+
export interface ListMenuItem {
|
|
773
773
|
group?: string | React.ReactNode;
|
|
774
774
|
groupNavItem?: React.ReactNode;
|
|
775
|
-
navItems:
|
|
775
|
+
navItems: NavItem[];
|
|
776
776
|
isSubItem?: boolean;
|
|
777
777
|
}
|
|
778
778
|
|
|
779
779
|
export interface ListMenuProps {
|
|
780
|
-
menuItems:
|
|
780
|
+
menuItems: ListMenuItem[];
|
|
781
781
|
enableFilter?: boolean;
|
|
782
782
|
focusFilter?: boolean;
|
|
783
783
|
filterKey?: string;
|
|
@@ -808,7 +808,7 @@ export type markerColor =
|
|
|
808
808
|
| 'bg-map-marker-geofence'
|
|
809
809
|
| 'bg-map-marker-route';
|
|
810
810
|
|
|
811
|
-
export interface
|
|
811
|
+
export interface MediaDialogMedia {
|
|
812
812
|
type: 'image' | 'video';
|
|
813
813
|
src: string;
|
|
814
814
|
title: string | React.ReactNode;
|
|
@@ -818,7 +818,7 @@ export interface MediaDialogMediaProps {
|
|
|
818
818
|
}
|
|
819
819
|
|
|
820
820
|
export interface MediaDialogProps extends BaseDialogProps {
|
|
821
|
-
media:
|
|
821
|
+
media: MediaDialogMedia[];
|
|
822
822
|
previousButtonText: string | React.ReactNode;
|
|
823
823
|
previousButtonCallback?: Function;
|
|
824
824
|
nextButtonText: string | React.ReactNode;
|
|
@@ -984,7 +984,7 @@ export interface MarkerLayerProps {
|
|
|
984
984
|
clusterDissolvable?: boolean;
|
|
985
985
|
}
|
|
986
986
|
|
|
987
|
-
export interface
|
|
987
|
+
export interface MenuItem {
|
|
988
988
|
value?: string | React.ReactNode;
|
|
989
989
|
disabled?: boolean;
|
|
990
990
|
divider?: boolean;
|
|
@@ -1005,7 +1005,7 @@ interface MultiselectCounterMessage {
|
|
|
1005
1005
|
many: string | React.ReactNode;
|
|
1006
1006
|
}
|
|
1007
1007
|
|
|
1008
|
-
interface MultiselectOption {
|
|
1008
|
+
export interface MultiselectOption {
|
|
1009
1009
|
id: string;
|
|
1010
1010
|
label: string | React.ReactNode;
|
|
1011
1011
|
selected?: boolean;
|
|
@@ -1023,7 +1023,7 @@ export interface MultiselectProps {
|
|
|
1023
1023
|
pullRight?: boolean;
|
|
1024
1024
|
autoDropDirection?: boolean;
|
|
1025
1025
|
value?: [];
|
|
1026
|
-
bsSize?: 'sm' | 'lg'
|
|
1026
|
+
bsSize?: 'sm' | 'lg';
|
|
1027
1027
|
disabled?: boolean;
|
|
1028
1028
|
className?: string;
|
|
1029
1029
|
tabIndex?: number;
|
|
@@ -1038,7 +1038,7 @@ export interface MultiselectProps {
|
|
|
1038
1038
|
|
|
1039
1039
|
// N --------------------------------------------------------------------------------------------------
|
|
1040
1040
|
|
|
1041
|
-
export interface
|
|
1041
|
+
export interface NavItem {
|
|
1042
1042
|
key: string;
|
|
1043
1043
|
item: React.ReactNode;
|
|
1044
1044
|
disabled?: boolean;
|
|
@@ -1083,7 +1083,7 @@ export interface NumberControlProps {
|
|
|
1083
1083
|
step?: number;
|
|
1084
1084
|
disabled?: boolean;
|
|
1085
1085
|
onValueChanged?: (value: number) => void;
|
|
1086
|
-
bsSize?: 'sm' | 'lg'
|
|
1086
|
+
bsSize?: 'sm' | 'lg';
|
|
1087
1087
|
className?: string;
|
|
1088
1088
|
unit?: string | React.ReactNode;
|
|
1089
1089
|
inputAddon?: string;
|
|
@@ -1097,7 +1097,7 @@ export interface NumberInputProps {
|
|
|
1097
1097
|
type?: string;
|
|
1098
1098
|
disabled?: boolean;
|
|
1099
1099
|
onValueChanged?: (value: number) => void;
|
|
1100
|
-
bsSize?: 'sm' | 'lg'
|
|
1100
|
+
bsSize?: 'sm' | 'lg';
|
|
1101
1101
|
className?: string;
|
|
1102
1102
|
unit?: string | React.ReactNode;
|
|
1103
1103
|
inputAddon?: string;
|
|
@@ -1450,6 +1450,30 @@ export interface RouteProps {
|
|
|
1450
1450
|
markers?: JSX.Element[];
|
|
1451
1451
|
}
|
|
1452
1452
|
|
|
1453
|
+
export interface RulesWrapperProps {}
|
|
1454
|
+
|
|
1455
|
+
export interface RuleContainerProps {
|
|
1456
|
+
show: boolean;
|
|
1457
|
+
unchecked: boolean;
|
|
1458
|
+
background: string;
|
|
1459
|
+
borderColor: string;
|
|
1460
|
+
hideConnector: boolean;
|
|
1461
|
+
customConnector: string | JSX.Element;
|
|
1462
|
+
className: string;
|
|
1463
|
+
}
|
|
1464
|
+
|
|
1465
|
+
export interface RuleConnectorProps {
|
|
1466
|
+
placement: 'start' | 'center' | 'end';
|
|
1467
|
+
icon: string;
|
|
1468
|
+
hidden: boolean;
|
|
1469
|
+
background: string;
|
|
1470
|
+
pageBackground: string;
|
|
1471
|
+
contentClassName: string;
|
|
1472
|
+
hasBorder: boolean;
|
|
1473
|
+
borderColor: string;
|
|
1474
|
+
className: string;
|
|
1475
|
+
}
|
|
1476
|
+
|
|
1453
1477
|
// S --------------------------------------------------------------------------------------------------
|
|
1454
1478
|
|
|
1455
1479
|
export interface SelectedSuggestion {
|
|
@@ -1533,7 +1557,7 @@ export interface SimpleButtonDropdownProps {
|
|
|
1533
1557
|
noCaret?: boolean;
|
|
1534
1558
|
splitButton?: boolean;
|
|
1535
1559
|
usePortal?: boolean;
|
|
1536
|
-
items:
|
|
1560
|
+
items: MenuItem[];
|
|
1537
1561
|
className?: string;
|
|
1538
1562
|
dropdownClassName?: string;
|
|
1539
1563
|
disabled?: boolean;
|
|
@@ -1867,15 +1891,15 @@ export interface TagListProps {
|
|
|
1867
1891
|
className?: string;
|
|
1868
1892
|
}
|
|
1869
1893
|
|
|
1870
|
-
export interface
|
|
1894
|
+
export interface TagManagerTag {
|
|
1871
1895
|
label?: string;
|
|
1872
1896
|
toAdd?: boolean;
|
|
1873
1897
|
toRemove?: boolean;
|
|
1874
1898
|
}
|
|
1875
1899
|
|
|
1876
1900
|
export interface TagManagerProps {
|
|
1877
|
-
tagList:
|
|
1878
|
-
tagSuggestions:
|
|
1901
|
+
tagList: TagManagerTag[];
|
|
1902
|
+
tagSuggestions: TagManagerTag[];
|
|
1879
1903
|
onTagListChange?: Function;
|
|
1880
1904
|
placeholder?: string;
|
|
1881
1905
|
customTagPlaceholder?: string;
|
package/lib/es/utils/init.js
CHANGED
|
@@ -14,7 +14,7 @@ var _deviceUtils = require("./deviceUtils");
|
|
|
14
14
|
var _version = _interopRequireDefault(require("../version.json"));
|
|
15
15
|
var uikitVersion = _version["default"].version;
|
|
16
16
|
|
|
17
|
-
// Note: using import.meta.env.DEV does not work here due to
|
|
17
|
+
// Note: using import.meta.env.DEV does not work here due to backward compatibility with webpack and jest setups
|
|
18
18
|
var isProdEnv = function isProdEnv() {
|
|
19
19
|
return _process["default"].env.NODE_ENV === 'production' || location.protocol.startsWith('https');
|
|
20
20
|
};
|
package/lib/es/version.json
CHANGED
package/package.json
CHANGED
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@rio-cloud/rio-uikit",
|
|
3
|
-
"version": "0.16.1
|
|
3
|
+
"version": "0.16.1",
|
|
4
4
|
"description": "The RIO UIKIT component library",
|
|
5
5
|
"repository": "https://collaboration.msi.audi.com/stash/projects/RIOFRONT/repos/uikit-web/browse",
|
|
6
6
|
"scripts": {
|
|
7
7
|
"build": "npm run build:styles && npm run build:vite && echo '\n👉 For an npm release use build:npm 👈'",
|
|
8
|
-
"build:npm": "npm run build:cjs && npm run build:esm && npm run copy-to-package && echo '\n📦 Publish to npm only from within 'package' folder 📦'",
|
|
8
|
+
"build:npm": "npm run build:cjs && npm run build:esm && npm run copy-to-package && npm run fixEsmImports && echo '\n📦 Publish to npm only from within 'package' folder 📦'",
|
|
9
9
|
"build:cjs": "NODE_ENV=production BABEL_ENV=cjs babel src --out-dir package/lib/es --copy-files",
|
|
10
10
|
"build:esm": "NODE_ENV=production BABEL_ENV=esm babel src --out-dir package --copy-files",
|
|
11
11
|
"build:vite": "vite build",
|
|
@@ -14,12 +14,14 @@
|
|
|
14
14
|
"build:style-core": "vite build --mode style-core",
|
|
15
15
|
"build:style-responsive": "vite build --mode style-responsive",
|
|
16
16
|
"build:style-print": "vite build --mode style-print",
|
|
17
|
-
"build:style-website": "vite build --mode style-website",
|
|
17
|
+
"build:style-website": "vite build --mode style-website && npm run fixCssMinified",
|
|
18
18
|
"build:style-buyButton": "vite build --mode style-buyButton",
|
|
19
19
|
"build:style-man": "vite build --mode style-man",
|
|
20
20
|
"build:style-vw": "vite build --mode style-vw",
|
|
21
21
|
"build:style-scania": "vite build --mode style-scania",
|
|
22
22
|
"build:style-xmas": "vite build --mode style-xmas",
|
|
23
|
+
"fixEsmImports": "node tools/fixEsmImportsInDeclarations.mjs",
|
|
24
|
+
"fixCssMinified": "node tools/fixCssMinified.mjs",
|
|
23
25
|
"copy-to-package": "copyfiles package.json README.md LICENSE package",
|
|
24
26
|
"test": "vitest run",
|
|
25
27
|
"test:ci": "vitest run --reporter=junit --outputFile.junit=./results/jest/junit.xml",
|
|
@@ -41,15 +43,15 @@
|
|
|
41
43
|
],
|
|
42
44
|
"devDependencies": {
|
|
43
45
|
"@babel/cli": "7.19.3",
|
|
44
|
-
"@babel/core": "7.19.
|
|
46
|
+
"@babel/core": "7.19.6",
|
|
45
47
|
"@babel/eslint-parser": "7.19.1",
|
|
46
48
|
"@babel/plugin-proposal-class-properties": "7.18.6",
|
|
47
49
|
"@babel/plugin-proposal-object-rest-spread": "7.19.4",
|
|
48
50
|
"@babel/plugin-syntax-dynamic-import": "7.8.3",
|
|
49
|
-
"@babel/plugin-transform-modules-commonjs": "7.
|
|
51
|
+
"@babel/plugin-transform-modules-commonjs": "7.19.6",
|
|
50
52
|
"@babel/plugin-transform-react-display-name": "7.18.6",
|
|
51
53
|
"@babel/plugin-transform-react-jsx": "7.19.0",
|
|
52
|
-
"@babel/plugin-transform-runtime": "7.19.
|
|
54
|
+
"@babel/plugin-transform-runtime": "7.19.6",
|
|
53
55
|
"@babel/preset-env": "7.19.4",
|
|
54
56
|
"@babel/preset-react": "7.18.6",
|
|
55
57
|
"@babel/runtime": "7.19.4",
|
|
@@ -60,8 +62,8 @@
|
|
|
60
62
|
"@types/react": "18.0.21",
|
|
61
63
|
"@types/react-redux": "7.1.24",
|
|
62
64
|
"@types/resize-observer-browser": "0.1.7",
|
|
63
|
-
"@typescript-eslint/eslint-plugin": "5.40.
|
|
64
|
-
"@typescript-eslint/parser": "5.40.
|
|
65
|
+
"@typescript-eslint/eslint-plugin": "5.40.1",
|
|
66
|
+
"@typescript-eslint/parser": "5.40.1",
|
|
65
67
|
"@vitejs/plugin-react": "^2.1.0",
|
|
66
68
|
"@vitest/coverage-c8": "0.24.3",
|
|
67
69
|
"@wojtekmaj/enzyme-adapter-react-17": "^0.6.7",
|
|
@@ -71,7 +73,7 @@
|
|
|
71
73
|
"dotenv": "16.0.3",
|
|
72
74
|
"enzyme": "3.11.0",
|
|
73
75
|
"enzyme-adapter-react-16": "1.15.6",
|
|
74
|
-
"eslint": "8.
|
|
76
|
+
"eslint": "8.26.0",
|
|
75
77
|
"eslint-config-prettier": "8.5.0",
|
|
76
78
|
"eslint-plugin-compat": "4.0.2",
|
|
77
79
|
"eslint-plugin-getsentry": "2.0.0",
|
|
@@ -113,7 +115,7 @@
|
|
|
113
115
|
"lodash": "4.17.21",
|
|
114
116
|
"moment": "2.29.4",
|
|
115
117
|
"natural-orderby": "2.0.3",
|
|
116
|
-
"process": "
|
|
118
|
+
"process": "0.11.10",
|
|
117
119
|
"prop-types": "15.8.1",
|
|
118
120
|
"react-bootstrap": "1.6.4",
|
|
119
121
|
"react-content-loader": "6.2.0",
|
|
@@ -125,6 +127,6 @@
|
|
|
125
127
|
"react-popper": "2.3.0",
|
|
126
128
|
"react-responsive": "9.0.0",
|
|
127
129
|
"react-transition-group": "4.4.5",
|
|
128
|
-
"recharts": "2.1.
|
|
130
|
+
"recharts": "2.1.15"
|
|
129
131
|
}
|
|
130
132
|
}
|
|
@@ -212,6 +212,16 @@ body {
|
|
|
212
212
|
.modal-body {
|
|
213
213
|
position: relative;
|
|
214
214
|
padding: @modal-inner-padding;
|
|
215
|
+
|
|
216
|
+
&:first-child {
|
|
217
|
+
border-top-left-radius: @border-radius-lg;
|
|
218
|
+
border-top-right-radius: @border-radius-lg;
|
|
219
|
+
}
|
|
220
|
+
|
|
221
|
+
&:last-child {
|
|
222
|
+
border-bottom-left-radius: @border-radius-lg;
|
|
223
|
+
border-bottom-right-radius: @border-radius-lg;
|
|
224
|
+
}
|
|
215
225
|
}
|
|
216
226
|
|
|
217
227
|
.modal-footer {
|
|
@@ -1,7 +1,9 @@
|
|
|
1
1
|
@dropdown-max-height: 211px; // Used for Select and AutoSuggest components
|
|
2
2
|
|
|
3
|
-
.btn-group
|
|
4
|
-
|
|
3
|
+
.btn-group {
|
|
4
|
+
&.open .dropdown-toggle {
|
|
5
|
+
box-shadow: none !important;
|
|
6
|
+
}
|
|
5
7
|
}
|
|
6
8
|
|
|
7
9
|
.dropdown {
|
|
@@ -18,6 +20,7 @@
|
|
|
18
20
|
padding: 0;
|
|
19
21
|
position: absolute;
|
|
20
22
|
text-align: left;
|
|
23
|
+
//width: 100%;
|
|
21
24
|
z-index: @zindex-dropdown;
|
|
22
25
|
|
|
23
26
|
// closed by default
|
|
@@ -28,6 +31,12 @@
|
|
|
28
31
|
display: block;
|
|
29
32
|
}
|
|
30
33
|
|
|
34
|
+
.AutoSuggest &,
|
|
35
|
+
.select &,
|
|
36
|
+
.multiselect & {
|
|
37
|
+
width: 100%;
|
|
38
|
+
}
|
|
39
|
+
|
|
31
40
|
// portal style
|
|
32
41
|
#uikit-root > & {
|
|
33
42
|
display: block;
|
|
@@ -162,13 +162,17 @@
|
|
|
162
162
|
.dropdown-menu {
|
|
163
163
|
max-height: @dropdown-max-height;
|
|
164
164
|
overflow-x: hidden;
|
|
165
|
-
width: 100%; // not on dropdowns, only on selects
|
|
166
165
|
|
|
167
166
|
svg {
|
|
168
167
|
margin-right: 0.5em;
|
|
169
168
|
vertical-align: middle;
|
|
170
169
|
}
|
|
171
170
|
|
|
171
|
+
&.pull-right {
|
|
172
|
+
left: auto !important;
|
|
173
|
+
right: 0 !important;
|
|
174
|
+
}
|
|
175
|
+
|
|
172
176
|
> li {
|
|
173
177
|
> a.focus {
|
|
174
178
|
text-decoration: none;
|
|
@@ -189,11 +193,6 @@
|
|
|
189
193
|
}
|
|
190
194
|
}
|
|
191
195
|
|
|
192
|
-
&.pull-right {
|
|
193
|
-
left: auto !important;
|
|
194
|
-
right: 0 !important;
|
|
195
|
-
}
|
|
196
|
-
|
|
197
196
|
&.dropup.open .dropdown-menu {
|
|
198
197
|
bottom: 0;
|
|
199
198
|
left: 0;
|