@rio-cloud/rio-uikit 0.15.0-beta-49 → 0.16.0-beta-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/README.md +231 -187
- package/lib/components/actionBarItem/ActionBarItem.js +4 -4
- package/lib/components/actionBarItem/ActionBarItemPopoverContent.js +43 -0
- package/lib/components/actionBarItem/ActionBarOverlay.js +8 -3
- package/lib/components/applicationHeader/AppMenuDropdown.js +9 -13
- package/lib/components/applicationLayout/ApplicationLayout.js +7 -9
- package/lib/components/applicationLayout/ApplicationLayoutBody.js +5 -3
- package/lib/components/assetTree/AssetTree.js +1 -1
- package/lib/components/assetTree/AssetTree.less +2 -2
- package/lib/components/assetTree/Tree.js +2 -2
- package/lib/components/assetTree/TreeLeaf.js +9 -9
- package/lib/components/bottomSheet/BottomSheet.js +11 -7
- package/lib/components/browserWarning/BrowserWarningMessageDE.js +1 -1
- package/lib/components/browserWarning/BrowserWarningMessageEN.js +1 -1
- package/lib/components/carousel/Carousel.js +7 -426
- package/lib/components/checkbox/Checkbox.js +4 -4
- package/lib/components/clearableInput/ClearableInput.less +1 -1
- package/lib/components/datepicker/DatePicker.js +51 -73
- package/lib/components/datepicker/DatePicker.less +31 -5
- package/lib/components/dropdown/ButtonDropdown.js +149 -181
- package/lib/components/listMenu/ListMenu.js +40 -23
- package/lib/components/numberControl/NumberControl.js +4 -0
- package/lib/components/numberInput/NumberInput.js +21 -20
- package/lib/components/onboarding/OnboardingTip.js +9 -9
- package/lib/components/states/NotBookedState.js +2 -2
- package/lib/components/table/TableSettingsDialogFooter.js +1 -1
- package/lib/components/teaser/Teaser.js +1 -1
- package/lib/components/teaser/TeaserContainer.js +8 -8
- package/lib/components/tooltip/Tooltip.js +4 -4
- package/lib/components/tooltip/Tooltip.less +0 -10
- package/lib/es/DeviceUtils.d.ts +4 -2
- package/lib/es/SortDirection.d.ts +5 -0
- package/lib/es/deviceUtils.js +12 -0
- package/lib/hooks/useClipboard.js +2 -2
- package/lib/style/css/_exports/man-uikit.less +7 -5
- package/lib/style/css/_exports/rio-buyButton.less +30 -41
- package/lib/style/css/_exports/rio-uikit-core.less +105 -127
- package/lib/style/css/_exports/rio-uikit-print-utilities.less +6 -11
- package/lib/style/css/_exports/rio-uikit-responsive-utilities.less +6 -11
- package/lib/style/css/_exports/rio-uikit.less +5 -4
- package/lib/style/css/_exports/rio-website.less +110 -13
- package/lib/style/css/_exports/vw-uikit.less +10 -8
- package/lib/style/css/animations/_imports.less +9 -0
- package/lib/style/css/animations/collapse.less +16 -0
- package/lib/style/css/animations/fade.less +28 -0
- package/lib/style/css/animations/pinging.less +7 -0
- package/lib/style/css/animations/rotate.less +52 -0
- package/lib/style/css/animations/scale.less +35 -0
- package/lib/style/css/animations/slide.less +39 -0
- package/lib/style/css/animations/spinning.less +4 -0
- package/lib/style/css/animations/transition.less +129 -0
- package/lib/style/css/animations/translate.less +28 -0
- package/lib/style/css/bootstrap/badges.less +0 -12
- package/lib/style/css/bootstrap/dropdowns.less +10 -3
- package/lib/style/css/bootstrap/forms.less +38 -36
- package/lib/style/css/bootstrap/input-groups.less +4 -0
- package/lib/style/css/bootstrap/mixins/forms.less +1 -1
- package/lib/style/css/bootstrap/type.less +11 -4
- package/lib/style/css/components/Activity.less +93 -0
- package/lib/style/css/components/ApplicationHeader.less +438 -0
- package/lib/style/css/components/ApplicationLayout.less +236 -0
- package/lib/style/css/components/AssetTree.less +443 -0
- package/lib/style/css/components/AutoSuggest.less +22 -0
- package/lib/style/css/components/BottomSheet.less +14 -0
- package/lib/style/css/components/Carousel.less +212 -0
- package/lib/style/css/components/Checkbox.less +224 -0
- package/lib/style/css/components/ClearableInput.less +115 -0
- package/lib/style/css/components/Counter.less +142 -0
- package/lib/style/css/components/DataTabs.less +100 -0
- package/lib/style/css/components/DatePicker.less +391 -0
- package/lib/style/css/components/Dialog.less +482 -0
- package/lib/style/css/components/Dropdown.less +186 -0
- package/lib/style/css/components/Expander.less +196 -0
- package/lib/style/css/components/FilePicker.less +8 -0
- package/lib/style/css/components/ListMenu.less +77 -0
- package/lib/style/css/components/MapHere.less +91 -0
- package/lib/style/css/components/MapMarker.less +347 -0
- package/lib/style/css/components/MapSettings.less +140 -0
- package/lib/style/css/components/NoData.less +8 -0
- package/lib/style/css/components/Notification.less +234 -0
- package/lib/style/css/components/RadioButton.less +173 -0
- package/lib/style/css/components/Resizer.less +43 -0
- package/lib/style/css/components/Select.less +274 -0
- package/lib/style/css/components/Sidebar.less +157 -0
- package/lib/style/css/components/Slider.less +278 -0
- package/lib/style/css/components/Spinner.less +49 -0
- package/lib/style/css/components/StatsWidget.less +111 -0
- package/lib/style/css/components/SteppedProgressBar.less +323 -0
- package/lib/style/css/components/SupportMarker.less +34 -0
- package/lib/style/css/components/Switch.less +145 -0
- package/lib/style/css/components/TableSettingsDialog.less +96 -0
- package/lib/style/css/components/TableSortArrows.less +54 -0
- package/lib/style/css/components/Tag.less +246 -0
- package/lib/style/css/components/TagManager.less +4 -0
- package/lib/style/css/components/Teaser.less +12 -0
- package/lib/style/css/components/Timeline.less +69 -0
- package/lib/style/css/components/Tooltip.less +230 -0
- package/lib/style/css/design/alerts.less +55 -0
- package/lib/style/css/design/aspect-ratio.less +23 -0
- package/lib/style/css/design/badges.less +120 -0
- package/lib/style/css/design/blockquote.less +49 -0
- package/lib/style/css/design/border.less +192 -0
- package/lib/style/css/design/breadcrumbs.less +20 -0
- package/lib/style/css/design/button-groups.less +194 -0
- package/lib/style/css/design/buttons.less +540 -0
- package/lib/style/css/design/callouts.less +27 -0
- package/lib/style/css/design/caret.less +28 -0
- package/lib/style/css/design/close.less +12 -0
- package/lib/style/css/design/code.less +45 -0
- package/lib/style/css/design/colors.less +202 -0
- package/lib/style/css/design/cols.less +56 -0
- package/lib/style/css/design/container.less +29 -0
- package/lib/style/css/design/cursors.less +19 -0
- package/lib/style/css/design/custom.less +20 -0
- package/lib/style/css/design/ellipsis.less +46 -0
- package/lib/style/css/design/flexgrid.less +7 -0
- package/lib/style/css/design/fonts.less +318 -0
- package/lib/style/css/design/form-input-groups.less +245 -0
- package/lib/style/css/design/form-inputs.less +655 -0
- package/lib/style/css/design/iframe.less +80 -0
- package/lib/style/css/design/images.less +47 -0
- package/lib/style/css/design/labels.less +66 -0
- package/lib/style/css/design/list-group.less +95 -0
- package/lib/style/css/design/navs.less +254 -0
- package/lib/style/css/design/normalize.less +436 -0
- package/lib/style/css/design/opacity.less +26 -0
- package/lib/style/css/design/overflow.less +1 -0
- package/lib/style/css/design/pagination.less +161 -0
- package/lib/style/css/design/panels.less +105 -0
- package/lib/style/css/design/popovers.less +117 -0
- package/lib/style/css/design/position.less +16 -0
- package/lib/style/css/design/progress-bars.less +131 -0
- package/lib/style/css/design/responsive/_imports.less +68 -0
- package/lib/style/css/design/responsive/backgrounds.less +32 -0
- package/lib/style/css/design/responsive/display.less +9 -0
- package/lib/style/css/design/responsive/flexgrid.less +75 -0
- package/lib/style/css/design/responsive/floating.less +4 -0
- package/lib/style/css/design/responsive/gap.less +41 -0
- package/lib/style/css/design/responsive/hyphens.less +14 -0
- package/lib/style/css/design/responsive/margin.less +127 -0
- package/lib/style/css/design/responsive/overflow.less +16 -0
- package/lib/style/css/design/responsive/padding.less +71 -0
- package/lib/style/css/design/responsive/position.less +102 -0
- package/lib/style/css/design/responsive/sizing.less +115 -0
- package/lib/style/css/design/responsive/text.less +71 -0
- package/lib/style/css/design/responsive/visibility.less +115 -0
- package/lib/style/css/design/responsive-embed.less +31 -0
- package/lib/style/css/design/responsive-video.less +22 -0
- package/lib/style/css/design/rioglyph.less +24 -0
- package/lib/style/css/design/rounded.less +44 -0
- package/lib/style/css/design/shadows.less +65 -0
- package/lib/style/css/design/tables.less +976 -0
- package/lib/style/css/design/text.less +201 -0
- package/lib/style/css/design/theme.less +200 -0
- package/lib/style/css/design/thumbnails.less +29 -0
- package/lib/style/css/design/transition.less +33 -0
- package/lib/style/css/design/type.less +159 -0
- package/lib/style/css/design/utilities.less +75 -0
- package/lib/style/css/design/visibilty.less +38 -0
- package/lib/style/css/design/wells.less +17 -0
- package/lib/style/css/design/z-index.less +21 -0
- package/lib/style/css/mapping/breakpoint-map.less +44 -0
- package/lib/style/css/mapping/color-map.less +200 -0
- package/lib/style/css/mapping/cols-map.less +15 -0
- package/lib/style/css/mapping/numbers-map.less +16 -0
- package/lib/style/css/mapping/positions-map.less +21 -0
- package/lib/style/css/mapping/sizes-map.less +129 -0
- package/lib/style/css/mapping/spacings-map.less +28 -0
- package/lib/style/css/mixins/_mixins.less +13 -0
- package/lib/style/css/mixins/alerts.less +13 -0
- package/lib/style/css/mixins/border-radius.less +16 -0
- package/lib/style/css/mixins/buttons.less +117 -0
- package/lib/style/css/mixins/clearfix.less +9 -0
- package/lib/style/css/mixins/cols.less +59 -0
- package/lib/style/css/mixins/forms.less +61 -0
- package/lib/style/css/mixins/panels.less +27 -0
- package/lib/style/css/mixins/placeholder.less +17 -0
- package/lib/style/css/mixins/reset.less +27 -0
- package/lib/style/css/mixins/sizings.less +21 -0
- package/lib/style/css/mixins/spinner.less +30 -0
- package/lib/style/css/mixins/table.less +26 -0
- package/lib/style/css/mixins/tabs.less +4 -0
- package/lib/style/css/mixins/text.less +5 -0
- package/lib/style/css/print/print.less +1 -4
- package/lib/style/css/rio-theme/alerts.less +23 -61
- package/lib/style/css/rio-theme/badges.less +47 -12
- package/lib/style/css/rio-theme/blockquote.less +14 -97
- package/lib/style/css/rio-theme/buttons.less +32 -46
- package/lib/style/css/rio-theme/dropdowns.less +2 -2
- package/lib/style/css/rio-theme/forms.less +49 -20
- package/lib/style/css/rio-theme/input-groups.less +44 -25
- package/lib/style/css/rio-theme/mixins/alerts.less +13 -1
- package/lib/style/css/rio-theme/navbar.less +1 -1
- package/lib/style/css/rio-theme/variables.less +1 -0
- package/lib/style/css/shared/colors.json +1 -1
- package/lib/style/css/shared/colors.less +11 -8
- package/lib/style/css/shared/text.less +6 -5
- package/lib/style/css/utils/responsive/grid.less +15 -6
- package/lib/style/css/utils/rounded.less +1 -0
- package/lib/style/css/variables.less +179 -0
- package/lib/style/fonts/rioglyph/rioglyph.less +1 -11
- package/lib/types.ts +45 -59
- package/lib/utils/buttonEffect.js +11 -4
- package/lib/utils/deviceUtils.js +28 -37
- package/lib/utils/init.js +174 -0
- package/lib/version.json +1 -1
- package/package.json +79 -50
|
@@ -21,21 +21,19 @@ var _ApplicationLayoutSidebar = _interopRequireDefault(require("./ApplicationLay
|
|
|
21
21
|
|
|
22
22
|
var _ApplicationLayoutBody = _interopRequireDefault(require("./ApplicationLayoutBody"));
|
|
23
23
|
|
|
24
|
-
var
|
|
25
|
-
|
|
26
|
-
var _deviceUtils = require("../../utils/deviceUtils");
|
|
24
|
+
var _init = require("../../utils/init");
|
|
27
25
|
|
|
28
26
|
function _getRequireWildcardCache(nodeInterop) { if (typeof WeakMap !== "function") return null; var cacheBabelInterop = new WeakMap(); var cacheNodeInterop = new WeakMap(); return (_getRequireWildcardCache = function _getRequireWildcardCache(nodeInterop) { return nodeInterop ? cacheNodeInterop : cacheBabelInterop; })(nodeInterop); }
|
|
29
27
|
|
|
30
28
|
function _interopRequireWildcard(obj, nodeInterop) { if (!nodeInterop && obj && obj.__esModule) { return obj; } if (obj === null || _typeof(obj) !== "object" && typeof obj !== "function") { return { default: obj }; } var cache = _getRequireWildcardCache(nodeInterop); if (cache && cache.has(obj)) { return cache.get(obj); } var newObj = {}; var hasPropertyDescriptor = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var key in obj) { if (key !== "default" && Object.prototype.hasOwnProperty.call(obj, key)) { var desc = hasPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : null; if (desc && (desc.get || desc.set)) { Object.defineProperty(newObj, key, desc); } else { newObj[key] = obj[key]; } } } newObj.default = obj; if (cache) { cache.set(obj, newObj); } return newObj; }
|
|
31
29
|
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
30
|
+
// initializes document bootstrapping - keep the import to avoid being tree-shaked
|
|
31
|
+
_init.initDocumentBootstrapping;
|
|
32
|
+
|
|
33
|
+
var ApplicationLayout = function ApplicationLayout(_ref) {
|
|
34
|
+
var className = _ref.className,
|
|
35
|
+
children = _ref.children;
|
|
35
36
|
var classes = (0, _classnames.default)('ApplicationLayout', className);
|
|
36
|
-
(0, _useEffectOnce.default)(function () {
|
|
37
|
-
return (0, _deviceUtils.initdocumentBootstrapping)(document);
|
|
38
|
-
});
|
|
39
37
|
return /*#__PURE__*/_react.default.createElement("div", {
|
|
40
38
|
className: classes
|
|
41
39
|
}, children);
|
|
@@ -19,6 +19,8 @@ var _debounce = _interopRequireDefault(require("lodash/fp/debounce"));
|
|
|
19
19
|
|
|
20
20
|
var _classnames = _interopRequireDefault(require("classnames"));
|
|
21
21
|
|
|
22
|
+
var _ApplicationLayoutBodyBottomBar = require("./ApplicationLayoutBodyBottomBar");
|
|
23
|
+
|
|
22
24
|
function _getRequireWildcardCache(nodeInterop) { if (typeof WeakMap !== "function") return null; var cacheBabelInterop = new WeakMap(); var cacheNodeInterop = new WeakMap(); return (_getRequireWildcardCache = function _getRequireWildcardCache(nodeInterop) { return nodeInterop ? cacheNodeInterop : cacheBabelInterop; })(nodeInterop); }
|
|
23
25
|
|
|
24
26
|
function _interopRequireWildcard(obj, nodeInterop) { if (!nodeInterop && obj && obj.__esModule) { return obj; } if (obj === null || _typeof(obj) !== "object" && typeof obj !== "function") { return { default: obj }; } var cache = _getRequireWildcardCache(nodeInterop); if (cache && cache.has(obj)) { return cache.get(obj); } var newObj = {}; var hasPropertyDescriptor = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var key in obj) { if (key !== "default" && Object.prototype.hasOwnProperty.call(obj, key)) { var desc = hasPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : null; if (desc && (desc.get || desc.set)) { Object.defineProperty(newObj, key, desc); } else { newObj[key] = obj[key]; } } } newObj.default = obj; if (cache) { cache.set(obj, newObj); } return newObj; }
|
|
@@ -68,7 +70,7 @@ var ApplicationLayoutBody = function ApplicationLayoutBody(props) {
|
|
|
68
70
|
return /*#__PURE__*/_react.default.createElement(_react.default.Fragment, null, /*#__PURE__*/_react.default.createElement("div", {
|
|
69
71
|
className: classes
|
|
70
72
|
}, /*#__PURE__*/_react.default.createElement("div", {
|
|
71
|
-
className:
|
|
73
|
+
className: "module-content-wrapper"
|
|
72
74
|
}, banner && banner, navigation && navigation, /*#__PURE__*/_react.default.createElement("div", {
|
|
73
75
|
className: innerClasses,
|
|
74
76
|
onScroll: handleScroll,
|
|
@@ -76,10 +78,10 @@ var ApplicationLayoutBody = function ApplicationLayoutBody(props) {
|
|
|
76
78
|
}, children)), enableScrollToTop && /*#__PURE__*/_react.default.createElement("span", {
|
|
77
79
|
className: scrollToTopClasses
|
|
78
80
|
}, /*#__PURE__*/_react.default.createElement("button", {
|
|
79
|
-
className:
|
|
81
|
+
className: "btn btn-primary btn-icon-only",
|
|
80
82
|
onClick: handleToTop
|
|
81
83
|
}, /*#__PURE__*/_react.default.createElement("span", {
|
|
82
|
-
className:
|
|
84
|
+
className: "rioglyph rioglyph-arrow-up"
|
|
83
85
|
})))), bottomBar && bottomBar);
|
|
84
86
|
};
|
|
85
87
|
|
|
@@ -59,7 +59,7 @@ var getCurrentCategoryElement = function getCurrentCategoryElement(children, cur
|
|
|
59
59
|
|
|
60
60
|
var renderTreesOffscreen = function renderTreesOffscreen(children, categoryId) {
|
|
61
61
|
return _react.default.Children.map(children, function (child) {
|
|
62
|
-
var offscreenClasses = (0, _classnames.default)('TreeOffscreenWrapper', child.props.id !== categoryId && 'position-offscreen');
|
|
62
|
+
var offscreenClasses = (0, _classnames.default)('TreeOffscreenWrapper', child && child.props.id !== categoryId && 'position-offscreen');
|
|
63
63
|
return /*#__PURE__*/_react.default.createElement("div", {
|
|
64
64
|
className: offscreenClasses
|
|
65
65
|
}, child);
|
|
@@ -349,7 +349,7 @@
|
|
|
349
349
|
}
|
|
350
350
|
|
|
351
351
|
.TreeLabelName {
|
|
352
|
-
align-items: start;
|
|
352
|
+
align-items: flex-start;
|
|
353
353
|
display: flex;
|
|
354
354
|
flex: 1 1 0;
|
|
355
355
|
font-weight: @text-normal;
|
|
@@ -423,7 +423,7 @@
|
|
|
423
423
|
}
|
|
424
424
|
|
|
425
425
|
.TreeLeaf {
|
|
426
|
-
align-items: start;
|
|
426
|
+
align-items: flex-start;
|
|
427
427
|
|
|
428
428
|
.TreeCheckbox {
|
|
429
429
|
margin: 9px 7px 0 0;
|
|
@@ -608,7 +608,7 @@ var Tree = /*#__PURE__*/_react.default.memo(function (props) {
|
|
|
608
608
|
className: treeClassNames,
|
|
609
609
|
ref: treeRef
|
|
610
610
|
}, /*#__PURE__*/_react.default.createElement("div", {
|
|
611
|
-
className:
|
|
611
|
+
className: "TreeHeader"
|
|
612
612
|
}, !hideSearch && !search && /*#__PURE__*/_react.default.createElement(_TreeSearch.default, {
|
|
613
613
|
value: state.searchValue,
|
|
614
614
|
onChange: handleSearchChange,
|
|
@@ -621,7 +621,7 @@ var Tree = /*#__PURE__*/_react.default.memo(function (props) {
|
|
|
621
621
|
isIndeterminate: isIndeterminate,
|
|
622
622
|
onSelect: handeSelectAll
|
|
623
623
|
}), /*#__PURE__*/_react.default.createElement("div", {
|
|
624
|
-
className:
|
|
624
|
+
className: "display-flex justify-content-between align-items-center width-100pct"
|
|
625
625
|
}, renderSummary(), /*#__PURE__*/_react.default.createElement(_TreeOptions.default, {
|
|
626
626
|
treeOptions: treeOptions
|
|
627
627
|
})))), /*#__PURE__*/_react.default.createElement(_TreeRoot.default, {
|
|
@@ -26,33 +26,33 @@ var TreeLeaf = /*#__PURE__*/_react.default.memo(function (props) {
|
|
|
26
26
|
isSelected = props.isSelected,
|
|
27
27
|
onSelectItem = props.onSelectItem,
|
|
28
28
|
onActiveItem = props.onActiveItem;
|
|
29
|
-
var treeNodeClassNames = (0, _classnames.default)('TreeLeaf', '
|
|
29
|
+
var treeNodeClassNames = (0, _classnames.default)('TreeLeaf', 'form-group margin-bottom-0', isSelected && 'active', item.className && item.className);
|
|
30
30
|
return /*#__PURE__*/_react.default.createElement("div", {
|
|
31
31
|
className: treeNodeClassNames,
|
|
32
32
|
"data-key": item.id
|
|
33
33
|
}, hasMultiselect && /*#__PURE__*/_react.default.createElement(_Checkbox.default, {
|
|
34
|
-
className:
|
|
34
|
+
className: "TreeCheckbox",
|
|
35
35
|
checked: isSelected,
|
|
36
36
|
onClick: onSelectItem
|
|
37
37
|
}), !hasMultiselect && showRadioButtons && /*#__PURE__*/_react.default.createElement(_RadioButton.default, {
|
|
38
|
-
className:
|
|
38
|
+
className: "TreeRadioButton",
|
|
39
39
|
checked: isSelected,
|
|
40
40
|
onChange: onSelectItem
|
|
41
41
|
}), /*#__PURE__*/_react.default.createElement("span", {
|
|
42
|
-
className:
|
|
42
|
+
className: "TreeLabel",
|
|
43
43
|
onClick: onActiveItem
|
|
44
44
|
}, /*#__PURE__*/_react.default.createElement("span", {
|
|
45
|
-
className:
|
|
45
|
+
className: "TreeLabelName"
|
|
46
46
|
}, /*#__PURE__*/_react.default.createElement("span", {
|
|
47
47
|
className: "rioglyph rioglyph-".concat(item.type)
|
|
48
48
|
}), /*#__PURE__*/_react.default.createElement("span", {
|
|
49
|
-
className:
|
|
49
|
+
className: "TreeLabelNameText"
|
|
50
50
|
}, /*#__PURE__*/_react.default.createElement("span", {
|
|
51
|
-
className:
|
|
51
|
+
className: "TreeLabelNameTextHeadline"
|
|
52
52
|
}, (0, _isObject.default)(item.name) ? /*#__PURE__*/_react.default.createElement(_react.default.Fragment, null, /*#__PURE__*/_react.default.createElement("span", {
|
|
53
|
-
className:
|
|
53
|
+
className: "text-light margin-right-3"
|
|
54
54
|
}, item.name.firstName), /*#__PURE__*/_react.default.createElement("span", null, item.name.lastName)) : /*#__PURE__*/_react.default.createElement(_react.default.Fragment, null, item.name)), item.info && /*#__PURE__*/_react.default.createElement("span", {
|
|
55
|
-
className:
|
|
55
|
+
className: "TreeLabelNameTextSubline"
|
|
56
56
|
}, item.info)))));
|
|
57
57
|
});
|
|
58
58
|
|
|
@@ -13,6 +13,8 @@ var _slicedToArray2 = _interopRequireDefault(require("@babel/runtime/helpers/sli
|
|
|
13
13
|
|
|
14
14
|
var _react = _interopRequireWildcard(require("react"));
|
|
15
15
|
|
|
16
|
+
var _reactDom = _interopRequireDefault(require("react-dom"));
|
|
17
|
+
|
|
16
18
|
var _propTypes = _interopRequireDefault(require("prop-types"));
|
|
17
19
|
|
|
18
20
|
var _classnames = _interopRequireDefault(require("classnames"));
|
|
@@ -21,6 +23,8 @@ var _reactMotion = require("react-motion");
|
|
|
21
23
|
|
|
22
24
|
var _isFunction = _interopRequireDefault(require("lodash/fp/isFunction"));
|
|
23
25
|
|
|
26
|
+
var _portalRoot = require("../../utils/portalRoot");
|
|
27
|
+
|
|
24
28
|
function _getRequireWildcardCache(nodeInterop) { if (typeof WeakMap !== "function") return null; var cacheBabelInterop = new WeakMap(); var cacheNodeInterop = new WeakMap(); return (_getRequireWildcardCache = function _getRequireWildcardCache(nodeInterop) { return nodeInterop ? cacheNodeInterop : cacheBabelInterop; })(nodeInterop); }
|
|
25
29
|
|
|
26
30
|
function _interopRequireWildcard(obj, nodeInterop) { if (!nodeInterop && obj && obj.__esModule) { return obj; } if (obj === null || _typeof(obj) !== "object" && typeof obj !== "function") { return { default: obj }; } var cache = _getRequireWildcardCache(nodeInterop); if (cache && cache.has(obj)) { return cache.get(obj); } var newObj = {}; var hasPropertyDescriptor = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var key in obj) { if (key !== "default" && Object.prototype.hasOwnProperty.call(obj, key)) { var desc = hasPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : null; if (desc && (desc.get || desc.set)) { Object.defineProperty(newObj, key, desc); } else { newObj[key] = obj[key]; } } } newObj.default = obj; if (cache) { cache.set(obj, newObj); } return newObj; }
|
|
@@ -54,6 +58,7 @@ var BottomSheet = function BottomSheet(props) {
|
|
|
54
58
|
(0, _react.useEffect)(function () {
|
|
55
59
|
return setIsShown(show);
|
|
56
60
|
}, [show]);
|
|
61
|
+
var modalRoot = (0, _portalRoot.getOrCreatePortalRoot)();
|
|
57
62
|
|
|
58
63
|
var handleToggle = function handleToggle() {
|
|
59
64
|
var newValue = !isShown;
|
|
@@ -71,9 +76,8 @@ var BottomSheet = function BottomSheet(props) {
|
|
|
71
76
|
onHeightChange();
|
|
72
77
|
};
|
|
73
78
|
|
|
74
|
-
var sheetClasses = (0, _classnames.default)('bottom-sheet', 'position-fixed left-0', !width && 'width-100pct', !height && !isMaxHeight && 'height-auto', 'bg-white
|
|
79
|
+
var sheetClasses = (0, _classnames.default)('bottom-sheet', 'position-fixed left-0', !width && 'width-100pct', !height && !isMaxHeight && 'height-auto', 'bg-white', 'shadow-hard', detatch ? 'margin-15 rounded' : 'rounded-top-left rounded-top-right', className && className);
|
|
75
80
|
var sheetBodyCasses = (0, _classnames.default)('bottom-sheet-body', 'height-100pct', bodyClassName && bodyClassName);
|
|
76
|
-
var backdropClassNames = (0, _classnames.default)('modal-backdrop', 'bg-black opacity-50');
|
|
77
81
|
var sheetHeight = isMaxHeight ? window.innerHeight : height;
|
|
78
82
|
var motionStyles = {}; // Animate the bottom position
|
|
79
83
|
|
|
@@ -89,7 +93,7 @@ var BottomSheet = function BottomSheet(props) {
|
|
|
89
93
|
});
|
|
90
94
|
}
|
|
91
95
|
|
|
92
|
-
return /*#__PURE__*/_react.default.createElement(_react.default.Fragment, null, /*#__PURE__*/_react.default.createElement(_reactMotion.Motion, {
|
|
96
|
+
return /*#__PURE__*/_reactDom.default.createPortal( /*#__PURE__*/_react.default.createElement(_react.default.Fragment, null, /*#__PURE__*/_react.default.createElement(_reactMotion.Motion, {
|
|
93
97
|
defaultStyle: {
|
|
94
98
|
bottom: -1000,
|
|
95
99
|
height: height
|
|
@@ -104,7 +108,7 @@ var BottomSheet = function BottomSheet(props) {
|
|
|
104
108
|
height: style.height
|
|
105
109
|
}
|
|
106
110
|
}, /*#__PURE__*/_react.default.createElement("div", null, title && /*#__PURE__*/_react.default.createElement("div", {
|
|
107
|
-
className:
|
|
111
|
+
className: 'bottom-sheet-title display-flex justify-content-between padding-15 ' + 'border border-top-none border-left-none border-right-none border-color-lighter'
|
|
108
112
|
}, /*#__PURE__*/_react.default.createElement("div", {
|
|
109
113
|
className: "text-size-18"
|
|
110
114
|
}, title)), showCloseButton && /*#__PURE__*/_react.default.createElement("div", {
|
|
@@ -115,7 +119,7 @@ var BottomSheet = function BottomSheet(props) {
|
|
|
115
119
|
}, /*#__PURE__*/_react.default.createElement("span", {
|
|
116
120
|
className: "rioglyph rioglyph-remove"
|
|
117
121
|
}))), showMaximizeButton && /*#__PURE__*/_react.default.createElement("div", {
|
|
118
|
-
className:
|
|
122
|
+
className: 'bottom-sheet-maximize height-30 ' + 'position-absolute top-5 left-50pct translate-x-50 cursor-pointer',
|
|
119
123
|
onClick: handleMaximize
|
|
120
124
|
}, /*#__PURE__*/_react.default.createElement("div", {
|
|
121
125
|
className: "height-5 width-40 rounded bg-lighter"
|
|
@@ -124,9 +128,9 @@ var BottomSheet = function BottomSheet(props) {
|
|
|
124
128
|
ref: bodyRef
|
|
125
129
|
}, children));
|
|
126
130
|
}), useBackdrop && isShown && /*#__PURE__*/_react.default.createElement("div", {
|
|
127
|
-
className:
|
|
131
|
+
className: "bottom-sheet-backdrop",
|
|
128
132
|
onClick: handleToggle
|
|
129
|
-
}));
|
|
133
|
+
})), modalRoot);
|
|
130
134
|
};
|
|
131
135
|
|
|
132
136
|
BottomSheet.defaultProps = {
|
|
@@ -23,7 +23,7 @@ var BrowserWarningMessageDE = function BrowserWarningMessageDE(_ref) {
|
|
|
23
23
|
className: 'text-size-18 margin-bottom-25'
|
|
24
24
|
}, 'Der ', /*#__PURE__*/_react.default.createElement("b", null, 'Internet Explorer'), ' ist mit seinen knapp 7 Jahren nun langsam ins hohe Alter gekommen und kann ', 'in Sachen ', /*#__PURE__*/_react.default.createElement("b", null, 'Schnelligkeit'), ', ', /*#__PURE__*/_react.default.createElement("b", null, 'Features'), ' aber vor allem in Punkto ', /*#__PURE__*/_react.default.createElement("b", null, 'Sicherheit'), ', nicht mehr mit modernen Browsern mithalten.'), /*#__PURE__*/_react.default.createElement("p", {
|
|
25
25
|
className: 'text-size-18 margin-bottom-25'
|
|
26
|
-
}, 'Wir bei RIO haben uns das Ziel gesetzt, Ihnen die ', /*#__PURE__*/_react.default.createElement("b", null, 'bestmögliche Software'), ' bereitzustellen um Ihnen ein ', /*#__PURE__*/_react.default.createElement("b", null, 'optimales Nutzungserlebnis'), ' zu bieten. Daher haben wir uns dazu entschlossen den Support für ', 'den IE11
|
|
26
|
+
}, 'Wir bei RIO haben uns das Ziel gesetzt, Ihnen die ', /*#__PURE__*/_react.default.createElement("b", null, 'bestmögliche Software'), ' bereitzustellen um Ihnen ein ', /*#__PURE__*/_react.default.createElement("b", null, 'optimales Nutzungserlebnis'), ' zu bieten. Daher haben wir uns dazu entschlossen den Support für ', 'den IE11 einzustellen.'), /*#__PURE__*/_react.default.createElement("p", {
|
|
27
27
|
className: 'text-size-18'
|
|
28
28
|
}, /*#__PURE__*/_react.default.createElement("b", null, 'Erleben Sie RIO von einer ganz neuen Seite, z.B. mit einem der folgenden Browser:'))), /*#__PURE__*/_react.default.createElement("div", {
|
|
29
29
|
className: "display-flex justify-content-center justify-content-around flex-wrap\n padding-right-2pct-ls padding-left-2pct-ls"
|
|
@@ -23,7 +23,7 @@ var BrowserWarningMessageEN = function BrowserWarningMessageEN(_ref) {
|
|
|
23
23
|
className: 'text-size-18 margin-bottom-25'
|
|
24
24
|
}, 'With just under 7 years the ', /*#__PURE__*/_react.default.createElement("b", null, 'Internet Explorer'), ' is slowly getting old and can no longer keep up with modern browsers in terms of ', /*#__PURE__*/_react.default.createElement("b", null, 'speed'), ', ', /*#__PURE__*/_react.default.createElement("b", null, 'functionality'), ' but above all in terms of ', /*#__PURE__*/_react.default.createElement("b", null, 'security'), '.'), /*#__PURE__*/_react.default.createElement("p", {
|
|
25
25
|
className: 'text-size-18 margin-bottom-25'
|
|
26
|
-
}, 'We at RIO, have set ourselves the goal of providing you with the ', /*#__PURE__*/_react.default.createElement("b", null, 'best possible software'), ' to offer you the ', /*#__PURE__*/_react.default.createElement("b", null, 'best possible user experience'), '. Therefore, we have decided to end the support for the IE11
|
|
26
|
+
}, 'We at RIO, have set ourselves the goal of providing you with the ', /*#__PURE__*/_react.default.createElement("b", null, 'best possible software'), ' to offer you the ', /*#__PURE__*/_react.default.createElement("b", null, 'best possible user experience'), '. Therefore, we have decided to end the support for the IE11.'), /*#__PURE__*/_react.default.createElement("p", {
|
|
27
27
|
className: 'text-size-18'
|
|
28
28
|
}, /*#__PURE__*/_react.default.createElement("b", null, 'Experience RIO from a whole new side with a modern browser:'))), /*#__PURE__*/_react.default.createElement("div", {
|
|
29
29
|
className: "display-flex justify-content-center justify-content-around flex-wrap\n padding-right-2pct-ls padding-left-2pct-ls"
|