@configuratorware/configurator-frontendgui 1.49.9 → 1.50.0
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/App/Error/ProductionErrorPage/index.js +5 -1
- package/App/Modules/Creator/Components/Incompatibility/OptionExclusionRule/index.js +2 -1
- package/App/Modules/Creator/Components/Incompatibility/OptionRule/index.js +2 -1
- package/App/Modules/Creator/Components/Incompatibility/index.js +1 -2
- package/App/Modules/Creator/Components/InvalidConfigurationNotice/index.js +8 -31
- package/App/Modules/Creator/Components/Option/index.js +18 -14
- package/App/Modules/Creator/Components/OptionAmount/index.js +11 -7
- package/App/Modules/Creator/Components/ProductPart/index.js +20 -25
- package/App/Modules/Creator/Components/ProductPartsList/index.js +0 -2
- package/App/Modules/Creator/Layouts/DefaultLayout.js +8 -9
- package/App/Modules/Designer/Components/AddGalleryImage/index.js +5 -2
- package/App/Modules/Designer/Components/DesignerSelectionToolbox/CustomFontOverlay.js +0 -2
- package/App/Modules/Designer/Components/Dialog/index.js +1 -3
- package/App/Modules/Designer/Components/ImageControlbox/index.js +1 -3
- package/App/Reducers/Reducer.js +8 -2
- package/App/Screens/Configurator/Components/Confirm/index.js +1 -5
- package/App/Screens/Configurator/Components/Error/index.js +0 -3
- package/App/Screens/Configurator/Components/FullScreenView/index.js +2 -5
- package/App/Screens/Configurator/Components/FullScreenView/index.test.js +1 -1
- package/App/Screens/Configurator/Components/PreviewPortal/index.js +23 -28
- package/App/Screens/Configurator/Components/Thumbnail/index.js +9 -6
- package/App/Screens/Configurator/ThemeProvider.js +7 -4
- package/App/Shared/Components/AccessibleButton/AccessibleButton.js +40 -0
- package/App/Shared/Components/AlertDialog/index.js +0 -3
- package/App/Shared/Components/AmountPrice/index.js +29 -20
- package/App/Shared/Components/Analytics/AnalyticsWrapper.js +7 -1
- package/App/Shared/Components/AutoFocusDialogContentContainer/AutoFocusDialogContentContainer.js +71 -0
- package/App/Shared/Components/BulkNames/index.js +9 -6
- package/App/Shared/Components/LoadConfiguration/index.js +0 -2
- package/App/Shared/Components/PdfDownload/index.js +0 -2
- package/App/Shared/Components/SaveConfiguration/index.js +3 -4
- package/App/Shared/Components/SendEmail/index.js +0 -2
- package/App/Shared/Components/ToolbarList/index.js +18 -16
- package/App/Shared/Hooks/useDialogId.js +19 -0
- package/Shared/Components/CustomDialog.js +77 -56
- package/package.json +4 -4
- package/public/invoke.js +1 -1
- package/public/translations/de_DE.json +2 -1
- package/public/translations/en_GB.json +2 -1
- package/scripts/utils/fileSystem.js +6 -1
- package/src/App/Error/ProductionErrorPage/index.js +27 -24
- package/src/App/Modules/Creator/Components/Incompatibility/OptionExclusionRule/index.js +1 -1
- package/src/App/Modules/Creator/Components/Incompatibility/OptionRule/index.js +1 -1
- package/src/App/Modules/Creator/Components/Incompatibility/index.js +1 -2
- package/src/App/Modules/Creator/Components/InvalidConfigurationNotice/index.js +10 -27
- package/src/App/Modules/Creator/Components/Option/__snapshots__/index.test.js.snap +142 -90
- package/src/App/Modules/Creator/Components/Option/index.js +30 -14
- package/src/App/Modules/Creator/Components/OptionAmount/__snapshots__/index.test.js.snap +31 -18
- package/src/App/Modules/Creator/Components/OptionAmount/index.js +7 -2
- package/src/App/Modules/Creator/Components/ProductPart/__snapshots__/index.test.js.snap +32 -24
- package/src/App/Modules/Creator/Components/ProductPart/index.js +20 -27
- package/src/App/Modules/Creator/Components/ProductPartsList/index.js +0 -2
- package/src/App/Modules/Creator/Layouts/DefaultLayout.js +12 -13
- package/src/App/Modules/Designer/Components/AddGalleryImage/__snapshots__/index.test.jsx.snap +1 -0
- package/src/App/Modules/Designer/Components/AddGalleryImage/index.js +4 -1
- package/src/App/Modules/Designer/Components/DesignerSelectionToolbox/CustomFontOverlay.js +0 -2
- package/src/App/Modules/Designer/Components/Dialog/index.js +1 -1
- package/src/App/Modules/Designer/Components/ImageControlbox/index.js +0 -2
- package/src/App/Reducers/Reducer.js +7 -0
- package/src/App/Screens/Configurator/Components/Confirm/index.js +1 -3
- package/src/App/Screens/Configurator/Components/Error/index.js +2 -11
- package/src/App/Screens/Configurator/Components/FullScreenView/__snapshots__/index.test.jsx.snap +3 -4
- package/src/App/Screens/Configurator/Components/FullScreenView/index.js +17 -17
- package/src/App/Screens/Configurator/Components/FullScreenView/index.test.jsx +1 -1
- package/src/App/Screens/Configurator/Components/PreviewPortal/index.js +23 -32
- package/src/App/Screens/Configurator/Components/Thumbnail/__snapshots__/index.test.jsx.snap +32 -8
- package/src/App/Screens/Configurator/Components/Thumbnail/index.js +8 -5
- package/src/App/Screens/Configurator/ThemeProvider.js +6 -3
- package/src/App/Shared/Components/AccessibleButton/AccessibleButton.js +29 -0
- package/src/App/Shared/Components/AlertDialog/index.js +1 -6
- package/src/App/Shared/Components/AmountPrice/__snapshots__/index.test.jsx.snap +15 -15
- package/src/App/Shared/Components/AmountPrice/index.js +31 -21
- package/src/App/Shared/Components/Analytics/AnalyticsWrapper.js +6 -0
- package/src/App/Shared/Components/AutoFocusDialogContentContainer/AutoFocusDialogContentContainer.jsx +52 -0
- package/src/App/Shared/Components/BulkNames/index.js +11 -6
- package/src/App/Shared/Components/LoadConfiguration/index.js +0 -2
- package/src/App/Shared/Components/PdfDownload/index.js +0 -2
- package/src/App/Shared/Components/SaveConfiguration/index.js +6 -4
- package/src/App/Shared/Components/SendEmail/index.js +0 -2
- package/src/App/Shared/Components/ToolbarList/__snapshots__/ToolbarList.test.js.snap +44 -20
- package/src/App/Shared/Components/ToolbarList/index.js +30 -27
- package/src/App/Shared/Hooks/useDialogId.js +11 -0
- package/src/Shared/Components/CustomDialog.js +60 -43
- package/App/Modules/Creator/Components/LoginForm/Styles.scss +0 -9
- package/App/Modules/Creator/Components/LoginForm/index.js +0 -91
- package/App/Modules/Creator/Components/SavedConfiguration/Styles.scss +0 -19
- package/App/Modules/Creator/Components/SavedConfiguration/index.js +0 -50
- package/App/Modules/Creator/Components/ShareConfiguration/Styles.scss +0 -23
- package/App/Modules/Creator/Components/ShareConfiguration/index.js +0 -165
- package/App/Modules/Creator/Components/StockInformation/index.js +0 -62
- package/App/Modules/Creator/Components/StoreConfigurationForm/Styles.scss +0 -5
- package/App/Modules/Creator/Components/StoreConfigurationForm/index.js +0 -86
- package/App/Modules/Creator/Components/ValidationResult/Styles.scss +0 -45
- package/App/Modules/Creator/Components/ValidationResult/index.js +0 -119
- package/App/Modules/Creator/Components/index.js +0 -57
- package/src/App/Modules/Creator/Components/LoginForm/Styles.scss +0 -9
- package/src/App/Modules/Creator/Components/LoginForm/index.js +0 -69
- package/src/App/Modules/Creator/Components/SavedConfiguration/Styles.scss +0 -19
- package/src/App/Modules/Creator/Components/SavedConfiguration/index.js +0 -37
- package/src/App/Modules/Creator/Components/ShareConfiguration/Styles.scss +0 -23
- package/src/App/Modules/Creator/Components/ShareConfiguration/index.js +0 -161
- package/src/App/Modules/Creator/Components/StockInformation/index.js +0 -39
- package/src/App/Modules/Creator/Components/StoreConfigurationForm/Styles.scss +0 -5
- package/src/App/Modules/Creator/Components/StoreConfigurationForm/index.js +0 -73
- package/src/App/Modules/Creator/Components/ValidationResult/Styles.scss +0 -45
- package/src/App/Modules/Creator/Components/ValidationResult/index.js +0 -89
- package/src/App/Modules/Creator/Components/index.js +0 -51
|
@@ -5,19 +5,21 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
5
5
|
});
|
|
6
6
|
exports["default"] = void 0;
|
|
7
7
|
var _react = _interopRequireDefault(require("react"));
|
|
8
|
-
var _reactDom = _interopRequireDefault(require("react-dom"));
|
|
9
8
|
var _propTypes = _interopRequireDefault(require("prop-types"));
|
|
10
9
|
var _isFunction = _interopRequireDefault(require("lodash/isFunction"));
|
|
11
10
|
var _Icon = _interopRequireDefault(require("@material-ui/core/Icon"));
|
|
12
11
|
var _styles = require("@material-ui/core/styles");
|
|
13
12
|
var _withWidth = _interopRequireDefault(require("@material-ui/core/withWidth"));
|
|
14
|
-
var _Typography = _interopRequireDefault(require("@material-ui/core/Typography"));
|
|
15
13
|
var _Button = _interopRequireDefault(require("@material-ui/core/Button"));
|
|
16
14
|
var _Grid = _interopRequireDefault(require("@material-ui/core/Grid"));
|
|
17
15
|
var _AlignTargetProvider = require("redhotmagma-visualization/AlignTargetProvider");
|
|
18
16
|
var _i18n = require("../../../../../Framework/i18n");
|
|
19
|
-
var _AnalyticsWrapper =
|
|
17
|
+
var _AnalyticsWrapper = _interopRequireWildcard(require("../../../../Shared/Components/Analytics/AnalyticsWrapper"));
|
|
20
18
|
var _Thumbnail = _interopRequireDefault(require("../../Containers/Thumbnail"));
|
|
19
|
+
var _Dialog = _interopRequireDefault(require("@material-ui/core/Dialog"));
|
|
20
|
+
var _CustomDialog = require("../../../../../Shared/Components/CustomDialog");
|
|
21
|
+
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); }
|
|
22
|
+
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; }
|
|
21
23
|
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
|
|
22
24
|
function _typeof(o) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (o) { return typeof o; } : function (o) { return o && "function" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? "symbol" : typeof o; }, _typeof(o); }
|
|
23
25
|
function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
|
|
@@ -137,40 +139,38 @@ var PreviewPortal = /*#__PURE__*/function (_React$Component) {
|
|
|
137
139
|
this.props.alignTarget.remove(this.wrapperRef.current);
|
|
138
140
|
}
|
|
139
141
|
}, {
|
|
140
|
-
key: "
|
|
141
|
-
value: function
|
|
142
|
+
key: "render",
|
|
143
|
+
value: function render() {
|
|
142
144
|
var _this$props = this.props,
|
|
143
145
|
hasMoreItems = _this$props.hasMoreItems,
|
|
144
146
|
closePreviewMode = _this$props.closePreviewMode,
|
|
145
147
|
classes = _this$props.classes,
|
|
146
148
|
children = _this$props.children,
|
|
147
|
-
width = _this$props.width
|
|
148
|
-
|
|
149
|
-
|
|
150
|
-
|
|
151
|
-
|
|
149
|
+
width = _this$props.width;
|
|
150
|
+
var dialogTitleId = 'product-preview-dialog-title';
|
|
151
|
+
return /*#__PURE__*/_react["default"].createElement(_Dialog["default"], {
|
|
152
|
+
fullScreen: true,
|
|
153
|
+
open: true,
|
|
154
|
+
"aria-labelledby": dialogTitleId,
|
|
155
|
+
onClose: closePreviewMode
|
|
152
156
|
}, /*#__PURE__*/_react["default"].createElement("div", {
|
|
153
157
|
className: classes.fullScreenTitle
|
|
154
|
-
}, width === 'xs' && /*#__PURE__*/_react["default"].createElement(
|
|
155
|
-
|
|
156
|
-
|
|
157
|
-
|
|
158
|
-
|
|
159
|
-
}, /*#__PURE__*/_react["default"].createElement(_Icon["default"], {
|
|
160
|
-
className: "previewClose",
|
|
161
|
-
onClick: closePreviewMode
|
|
162
|
-
}, "close")))), /*#__PURE__*/_react["default"].createElement("div", {
|
|
158
|
+
}, width === 'xs' && /*#__PURE__*/_react["default"].createElement(_CustomDialog.CustomDialogHeader, {
|
|
159
|
+
dialogTitle: (0, _i18n.t)('configurator.previewTitle'),
|
|
160
|
+
dialogTitleId: dialogTitleId,
|
|
161
|
+
onClose: (0, _AnalyticsWrapper.withAnalyticsTarget)(closePreviewMode, 'preview_close')
|
|
162
|
+
})), /*#__PURE__*/_react["default"].createElement("div", {
|
|
163
163
|
ref: this.wrapperRef,
|
|
164
164
|
className: hasMoreItems ? classes.visualizationWrapperThumbs : classes.visualizationWrapperCanvas
|
|
165
165
|
}, children), hasMoreItems && /*#__PURE__*/_react["default"].createElement(_Thumbnail["default"], {
|
|
166
166
|
previewOpen: true
|
|
167
|
-
}), width !== 'xs' && /*#__PURE__*/_react["default"].createElement(
|
|
168
|
-
targetId: "preview_close"
|
|
169
|
-
}, /*#__PURE__*/_react["default"].createElement(_Grid["default"], {
|
|
167
|
+
}), width !== 'xs' && /*#__PURE__*/_react["default"].createElement(_Grid["default"], {
|
|
170
168
|
container: true,
|
|
171
169
|
className: classes.CloseEditorRoot,
|
|
172
170
|
alignItems: "center",
|
|
173
|
-
|
|
171
|
+
justifyContent: "center"
|
|
172
|
+
}, /*#__PURE__*/_react["default"].createElement(_AnalyticsWrapper["default"], {
|
|
173
|
+
targetId: "preview_close"
|
|
174
174
|
}, /*#__PURE__*/_react["default"].createElement(_Button["default"], {
|
|
175
175
|
variant: "text",
|
|
176
176
|
onClick: closePreviewMode,
|
|
@@ -184,11 +184,6 @@ var PreviewPortal = /*#__PURE__*/function (_React$Component) {
|
|
|
184
184
|
}
|
|
185
185
|
}, "close"), /*#__PURE__*/_react["default"].createElement("b", null, (0, _i18n.t)('configurator.previewClose'))))));
|
|
186
186
|
}
|
|
187
|
-
}, {
|
|
188
|
-
key: "render",
|
|
189
|
-
value: function render() {
|
|
190
|
-
return /*#__PURE__*/_reactDom["default"].createPortal(this.renderPreview(), document.getElementById('frame'));
|
|
191
|
-
}
|
|
192
187
|
}]);
|
|
193
188
|
return PreviewPortal;
|
|
194
189
|
}(_react["default"].Component);
|
|
@@ -14,6 +14,7 @@ var _Icon = _interopRequireDefault(require("@material-ui/core/Icon"));
|
|
|
14
14
|
var _ResizeDetect = require("../../../../../Shared/HOCs/ResizeDetect/ResizeDetect");
|
|
15
15
|
var _Typography = _interopRequireDefault(require("@material-ui/core/Typography"));
|
|
16
16
|
var _withWidth = _interopRequireWildcard(require("@material-ui/core/withWidth"));
|
|
17
|
+
var _AccessibleButton = _interopRequireDefault(require("../../../../Shared/Components/AccessibleButton/AccessibleButton"));
|
|
17
18
|
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); }
|
|
18
19
|
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; }
|
|
19
20
|
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
|
|
@@ -263,15 +264,16 @@ var Thumbnail = /*#__PURE__*/function (_React$Component) {
|
|
|
263
264
|
return /*#__PURE__*/_react["default"].createElement("div", {
|
|
264
265
|
className: classes.dots
|
|
265
266
|
}, items && items.map(function (thumbnail, index) {
|
|
266
|
-
return /*#__PURE__*/_react["default"].createElement("
|
|
267
|
-
className: "".concat(classes.dotContainer, " ").concat(isSmallScreen ? 'wrap-container' : ''),
|
|
268
|
-
key: thumbnail.identifier
|
|
269
|
-
}, /*#__PURE__*/_react["default"].createElement(_Typography["default"], {
|
|
267
|
+
return /*#__PURE__*/_react["default"].createElement(_AccessibleButton["default"], {
|
|
270
268
|
component: "div",
|
|
271
|
-
className:
|
|
269
|
+
className: "".concat(classes.dotContainer, " ").concat(isSmallScreen ? 'wrap-container' : ''),
|
|
270
|
+
key: thumbnail.identifier,
|
|
272
271
|
onClick: function onClick() {
|
|
273
272
|
return onThumbnailClick(thumbnail.identifier);
|
|
274
273
|
}
|
|
274
|
+
}, /*#__PURE__*/_react["default"].createElement(_Typography["default"], {
|
|
275
|
+
component: "div",
|
|
276
|
+
className: selectedDesignViewIdentifier === thumbnail.identifier ? classes.activeDotMode : classes.inactiveDotMode
|
|
275
277
|
}, index + 1));
|
|
276
278
|
}));
|
|
277
279
|
}
|
|
@@ -295,7 +297,8 @@ var Thumbnail = /*#__PURE__*/function (_React$Component) {
|
|
|
295
297
|
justifyContent: !isScrollingAvailable ? 'center' : 'initial'
|
|
296
298
|
}
|
|
297
299
|
}, items && items.map(function (thumbnail) {
|
|
298
|
-
return /*#__PURE__*/_react["default"].createElement("
|
|
300
|
+
return /*#__PURE__*/_react["default"].createElement(_AccessibleButton["default"], {
|
|
301
|
+
component: "div",
|
|
299
302
|
className: classes.thumbnailImageContainer,
|
|
300
303
|
key: thumbnail.identifier,
|
|
301
304
|
onClick: function onClick() {
|
|
@@ -105,6 +105,10 @@ var defaultTheme = {
|
|
|
105
105
|
MuiButton: {
|
|
106
106
|
outlined: {
|
|
107
107
|
color: darkTextColor
|
|
108
|
+
},
|
|
109
|
+
root: {
|
|
110
|
+
textAlign: 'left',
|
|
111
|
+
textTransform: 'none'
|
|
108
112
|
}
|
|
109
113
|
},
|
|
110
114
|
MuiIcon: {
|
|
@@ -194,12 +198,11 @@ var defaultTheme = {
|
|
|
194
198
|
}
|
|
195
199
|
},
|
|
196
200
|
productPart: {
|
|
197
|
-
captionPaddingTop: '
|
|
201
|
+
captionPaddingTop: '4px',
|
|
198
202
|
itemSize: '110px',
|
|
199
203
|
selectedItemSize: '118px',
|
|
200
|
-
lineHeight: '
|
|
201
|
-
markerThickness: '8px'
|
|
202
|
-
spaceBetweenItemAndMarker: '8px'
|
|
204
|
+
lineHeight: '1em',
|
|
205
|
+
markerThickness: '8px'
|
|
203
206
|
},
|
|
204
207
|
productPartsList: {
|
|
205
208
|
marginLeft: 10,
|
|
@@ -0,0 +1,40 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, "__esModule", {
|
|
4
|
+
value: true
|
|
5
|
+
});
|
|
6
|
+
exports["default"] = void 0;
|
|
7
|
+
var _react = _interopRequireDefault(require("react"));
|
|
8
|
+
var _styles = require("@material-ui/core/styles");
|
|
9
|
+
var _ButtonBase = _interopRequireDefault(require("@material-ui/core/ButtonBase"));
|
|
10
|
+
var _propTypes = _interopRequireDefault(require("prop-types"));
|
|
11
|
+
var _excluded = ["notAccessible"];
|
|
12
|
+
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
|
|
13
|
+
function _extends() { _extends = Object.assign ? Object.assign.bind() : function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); }
|
|
14
|
+
function _objectWithoutProperties(source, excluded) { if (source == null) return {}; var target = _objectWithoutPropertiesLoose(source, excluded); var key, i; if (Object.getOwnPropertySymbols) { var sourceSymbolKeys = Object.getOwnPropertySymbols(source); for (i = 0; i < sourceSymbolKeys.length; i++) { key = sourceSymbolKeys[i]; if (excluded.indexOf(key) >= 0) continue; if (!Object.prototype.propertyIsEnumerable.call(source, key)) continue; target[key] = source[key]; } } return target; }
|
|
15
|
+
function _objectWithoutPropertiesLoose(source, excluded) { if (source == null) return {}; var target = {}; var sourceKeys = Object.keys(source); var key, i; for (i = 0; i < sourceKeys.length; i++) { key = sourceKeys[i]; if (excluded.indexOf(key) >= 0) continue; target[key] = source[key]; } return target; }
|
|
16
|
+
var AccessibleButtonBase = function AccessibleButtonBase(_ref) {
|
|
17
|
+
var notAccessible = _ref.notAccessible,
|
|
18
|
+
props = _objectWithoutProperties(_ref, _excluded);
|
|
19
|
+
return /*#__PURE__*/_react["default"].createElement(_ButtonBase["default"], _extends({
|
|
20
|
+
tabIndex: notAccessible ? -1 : 0,
|
|
21
|
+
focusRipple: true,
|
|
22
|
+
disableTouchRipple: true
|
|
23
|
+
}, props));
|
|
24
|
+
};
|
|
25
|
+
AccessibleButtonBase.defaultProps = {
|
|
26
|
+
notAccessible: false
|
|
27
|
+
};
|
|
28
|
+
var _default = exports["default"] = (0, _styles.withStyles)(function () {
|
|
29
|
+
return {
|
|
30
|
+
root: {
|
|
31
|
+
justifyContent: 'left',
|
|
32
|
+
textAlign: 'left',
|
|
33
|
+
'& .MuiTouchRipple-root .MuiTouchRipple-child': {
|
|
34
|
+
borderRadius: '8px'
|
|
35
|
+
}
|
|
36
|
+
}
|
|
37
|
+
};
|
|
38
|
+
}, {
|
|
39
|
+
name: 'AccessibleButton'
|
|
40
|
+
})(AccessibleButtonBase);
|
|
@@ -69,12 +69,9 @@ var AlertDialog = /*#__PURE__*/function (_React$Component) {
|
|
|
69
69
|
className: classes.dialogWrapper,
|
|
70
70
|
open: true,
|
|
71
71
|
onClose: this.handleClose,
|
|
72
|
-
"aria-labelledby": "alert-dialog-title",
|
|
73
|
-
"aria-describedby": "alert-dialog-description",
|
|
74
72
|
onCancel: this.handleClose,
|
|
75
73
|
dialogTitle: title
|
|
76
74
|
}, /*#__PURE__*/_react["default"].createElement(_DialogContent["default"], null, /*#__PURE__*/_react["default"].createElement(_DialogContentText["default"], {
|
|
77
|
-
id: "alert-dialog-description",
|
|
78
75
|
dangerouslySetInnerHTML: {
|
|
79
76
|
__html: message
|
|
80
77
|
}
|
|
@@ -39,6 +39,8 @@ var _utils = require("@material-ui/core/utils");
|
|
|
39
39
|
var _AcceptPrivacy = _interopRequireDefault(require("../AcceptPrivacy"));
|
|
40
40
|
var _ConfigurationOverview = _interopRequireDefault(require("../ConfigurationOverview"));
|
|
41
41
|
var _isMobileDevice = require("../../../../Framework/Helpers/isMobileDevice");
|
|
42
|
+
var _IconButton = _interopRequireDefault(require("@material-ui/core/IconButton"));
|
|
43
|
+
var _AutoFocusDialogContentContainer = _interopRequireDefault(require("../AutoFocusDialogContentContainer/AutoFocusDialogContentContainer"));
|
|
42
44
|
var _excluded = ["onTouchMove"],
|
|
43
45
|
_excluded2 = ["wrapperClass", "renderPriceBox"];
|
|
44
46
|
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
|
|
@@ -193,7 +195,8 @@ var styles = function styles(theme) {
|
|
|
193
195
|
}), _defineProperty(_mainButtonLabel, "whiteSpace", 'nowrap'), _mainButtonLabel),
|
|
194
196
|
AmountPriceTypography: _defineProperty({
|
|
195
197
|
textAlign: 'end',
|
|
196
|
-
lineHeight: 1.2
|
|
198
|
+
lineHeight: 1.2,
|
|
199
|
+
fontSize: '1.5rem'
|
|
197
200
|
}, theme.breakpoints.down('xs'), {
|
|
198
201
|
padding: '3px 0',
|
|
199
202
|
textAlign: 'start',
|
|
@@ -216,10 +219,10 @@ var styles = function styles(theme) {
|
|
|
216
219
|
}),
|
|
217
220
|
closeIcon: (_closeIcon = {
|
|
218
221
|
position: 'absolute',
|
|
219
|
-
right:
|
|
220
|
-
top:
|
|
222
|
+
right: 16,
|
|
223
|
+
top: 16
|
|
221
224
|
}, _defineProperty(_closeIcon, theme.breakpoints.down('xs'), {
|
|
222
|
-
right:
|
|
225
|
+
right: 0
|
|
223
226
|
}), _defineProperty(_closeIcon, '&:hover', {
|
|
224
227
|
cursor: 'pointer'
|
|
225
228
|
}), _closeIcon),
|
|
@@ -603,7 +606,7 @@ var AmountPrice = /*#__PURE__*/function (_React$Component) {
|
|
|
603
606
|
md: 7,
|
|
604
607
|
lg: 7
|
|
605
608
|
}, /*#__PURE__*/_react["default"].createElement(_Typography["default"], {
|
|
606
|
-
variant: "
|
|
609
|
+
variant: "body2",
|
|
607
610
|
classes: {
|
|
608
611
|
root: classes.AmountPriceTypography
|
|
609
612
|
}
|
|
@@ -692,9 +695,9 @@ var AmountPrice = /*#__PURE__*/function (_React$Component) {
|
|
|
692
695
|
userConfiguration = _this$props6.userConfiguration,
|
|
693
696
|
width = _this$props6.width,
|
|
694
697
|
classes = _this$props6.classes;
|
|
698
|
+
var dialogTitleId = 'configuration-overview-dialog-title';
|
|
695
699
|
return /*#__PURE__*/_react["default"].createElement(_Dialog["default"], {
|
|
696
|
-
"aria-labelledby":
|
|
697
|
-
"aria-describedby": "alert-dialog-description",
|
|
700
|
+
"aria-labelledby": dialogTitleId,
|
|
698
701
|
classes: {
|
|
699
702
|
paper: classes.dialogWrapper,
|
|
700
703
|
container: width === 'md' || width === 'xs' ? classes.dialogPositioning : '',
|
|
@@ -715,11 +718,12 @@ var AmountPrice = /*#__PURE__*/function (_React$Component) {
|
|
|
715
718
|
root: classes.dialogTitleRoot
|
|
716
719
|
}
|
|
717
720
|
}, /*#__PURE__*/_react["default"].createElement(_Typography["default"], {
|
|
718
|
-
variant: "body1"
|
|
719
|
-
|
|
721
|
+
variant: "body1",
|
|
722
|
+
id: dialogTitleId
|
|
723
|
+
}, /*#__PURE__*/_react["default"].createElement("b", null, (0, _i18n.t)('amountPrice.configurationOverview'))), /*#__PURE__*/_react["default"].createElement(_IconButton["default"], {
|
|
720
724
|
className: classes.closeIcon,
|
|
721
725
|
onClick: this.handleClose.bind(this)
|
|
722
|
-
}, "close")), /*#__PURE__*/_react["default"].createElement(_RootRef["default"], {
|
|
726
|
+
}, /*#__PURE__*/_react["default"].createElement(_Icon["default"], null, "close"))), /*#__PURE__*/_react["default"].createElement(_RootRef["default"], {
|
|
723
727
|
rootRef: this.dialogContentRef
|
|
724
728
|
}, /*#__PURE__*/_react["default"].createElement(_DialogContent["default"], {
|
|
725
729
|
classes: {
|
|
@@ -731,9 +735,11 @@ var AmountPrice = /*#__PURE__*/function (_React$Component) {
|
|
|
731
735
|
}
|
|
732
736
|
}, {
|
|
733
737
|
key: "renderDialogTitle",
|
|
734
|
-
value: function renderDialogTitle() {
|
|
735
|
-
|
|
736
|
-
|
|
738
|
+
value: function renderDialogTitle(options) {
|
|
739
|
+
var dialogTitleId = options.dialogTitleId;
|
|
740
|
+
return this.props.renderDialogTitle ? this.props.renderDialogTitle(this.props, options) : /*#__PURE__*/_react["default"].createElement(_Typography["default"], {
|
|
741
|
+
variant: "body1",
|
|
742
|
+
id: dialogTitleId
|
|
737
743
|
}, /*#__PURE__*/_react["default"].createElement("b", null, (0, _i18n.t)(this.props.showReceiveOfferForm ? 'receiveOfferForm.sendButton' : 'amountPrice.intoCart')));
|
|
738
744
|
}
|
|
739
745
|
}, {
|
|
@@ -785,9 +791,9 @@ var AmountPrice = /*#__PURE__*/function (_React$Component) {
|
|
|
785
791
|
});
|
|
786
792
|
});
|
|
787
793
|
}
|
|
794
|
+
var dialogTitleId = 'price-overview-dialog-title';
|
|
788
795
|
return /*#__PURE__*/_react["default"].createElement(_Dialog["default"], {
|
|
789
|
-
"aria-labelledby":
|
|
790
|
-
"aria-describedby": "alert-dialog-description",
|
|
796
|
+
"aria-labelledby": dialogTitleId,
|
|
791
797
|
classes: {
|
|
792
798
|
paper: classes.dialogWrapper,
|
|
793
799
|
container: width === 'md' || width === 'xs' ? classes.dialogPositioning : '',
|
|
@@ -808,12 +814,15 @@ var AmountPrice = /*#__PURE__*/function (_React$Component) {
|
|
|
808
814
|
classes: {
|
|
809
815
|
root: classes.dialogTitleRoot
|
|
810
816
|
}
|
|
811
|
-
}, this.renderDialogTitle(
|
|
812
|
-
|
|
813
|
-
|
|
814
|
-
|
|
817
|
+
}, this.renderDialogTitle({
|
|
818
|
+
dialogTitleId: dialogTitleId
|
|
819
|
+
}), /*#__PURE__*/_react["default"].createElement(_IconButton["default"], {
|
|
820
|
+
onClick: this.handleClose.bind(this),
|
|
821
|
+
className: classes.closeIcon
|
|
822
|
+
}, /*#__PURE__*/_react["default"].createElement(_Icon["default"], null, "close"))), /*#__PURE__*/_react["default"].createElement(_RootRef["default"], {
|
|
815
823
|
rootRef: this.dialogContentRef
|
|
816
|
-
}, /*#__PURE__*/_react["default"].createElement(
|
|
824
|
+
}, /*#__PURE__*/_react["default"].createElement(_AutoFocusDialogContentContainer["default"], {
|
|
825
|
+
Component: _DialogContent["default"],
|
|
817
826
|
classes: {
|
|
818
827
|
root: classes.contentPositioning
|
|
819
828
|
}
|
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
Object.defineProperty(exports, "__esModule", {
|
|
4
4
|
value: true
|
|
5
5
|
});
|
|
6
|
-
exports["default"] = void 0;
|
|
6
|
+
exports.withAnalyticsTarget = exports["default"] = void 0;
|
|
7
7
|
var _react = _interopRequireDefault(require("react"));
|
|
8
8
|
var _Constant = require("../../../Constant");
|
|
9
9
|
var _ServiceLocator = require("../../../ServiceLocator");
|
|
@@ -34,4 +34,10 @@ var AnalyticsWrapper = function AnalyticsWrapper(_ref) {
|
|
|
34
34
|
}
|
|
35
35
|
return /*#__PURE__*/_react["default"].cloneElement(children, _objectSpread(_objectSpread({}, props), events));
|
|
36
36
|
};
|
|
37
|
+
var withAnalyticsTarget = exports.withAnalyticsTarget = function withAnalyticsTarget(fn, targetId, data) {
|
|
38
|
+
return function () {
|
|
39
|
+
_ServiceLocator.Services.analytics.triggerEvent(_Constant.EventTypes[targetId], data);
|
|
40
|
+
return fn.apply(void 0, arguments);
|
|
41
|
+
};
|
|
42
|
+
};
|
|
37
43
|
var _default = exports["default"] = AnalyticsWrapper;
|
package/App/Shared/Components/AutoFocusDialogContentContainer/AutoFocusDialogContentContainer.js
ADDED
|
@@ -0,0 +1,71 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
function _typeof(o) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (o) { return typeof o; } : function (o) { return o && "function" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? "symbol" : typeof o; }, _typeof(o); }
|
|
4
|
+
Object.defineProperty(exports, "__esModule", {
|
|
5
|
+
value: true
|
|
6
|
+
});
|
|
7
|
+
exports["default"] = void 0;
|
|
8
|
+
var _react = _interopRequireWildcard(require("react"));
|
|
9
|
+
var _propTypes = _interopRequireDefault(require("prop-types"));
|
|
10
|
+
var _excluded = ["Component", "open", "children"];
|
|
11
|
+
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
|
|
12
|
+
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); }
|
|
13
|
+
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; }
|
|
14
|
+
function _extends() { _extends = Object.assign ? Object.assign.bind() : function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); }
|
|
15
|
+
function _toConsumableArray(arr) { return _arrayWithoutHoles(arr) || _iterableToArray(arr) || _unsupportedIterableToArray(arr) || _nonIterableSpread(); }
|
|
16
|
+
function _nonIterableSpread() { throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); }
|
|
17
|
+
function _iterableToArray(iter) { if (typeof Symbol !== "undefined" && iter[Symbol.iterator] != null || iter["@@iterator"] != null) return Array.from(iter); }
|
|
18
|
+
function _arrayWithoutHoles(arr) { if (Array.isArray(arr)) return _arrayLikeToArray(arr); }
|
|
19
|
+
function _slicedToArray(arr, i) { return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || _unsupportedIterableToArray(arr, i) || _nonIterableRest(); }
|
|
20
|
+
function _nonIterableRest() { throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); }
|
|
21
|
+
function _unsupportedIterableToArray(o, minLen) { if (!o) return; if (typeof o === "string") return _arrayLikeToArray(o, minLen); var n = Object.prototype.toString.call(o).slice(8, -1); if (n === "Object" && o.constructor) n = o.constructor.name; if (n === "Map" || n === "Set") return Array.from(o); if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _arrayLikeToArray(o, minLen); }
|
|
22
|
+
function _arrayLikeToArray(arr, len) { if (len == null || len > arr.length) len = arr.length; for (var i = 0, arr2 = new Array(len); i < len; i++) arr2[i] = arr[i]; return arr2; }
|
|
23
|
+
function _iterableToArrayLimit(r, l) { var t = null == r ? null : "undefined" != typeof Symbol && r[Symbol.iterator] || r["@@iterator"]; if (null != t) { var e, n, i, u, a = [], f = !0, o = !1; try { if (i = (t = t.call(r)).next, 0 === l) { if (Object(t) !== t) return; f = !1; } else for (; !(f = (e = i.call(t)).done) && (a.push(e.value), a.length !== l); f = !0); } catch (r) { o = !0, n = r; } finally { try { if (!f && null != t["return"] && (u = t["return"](), Object(u) !== u)) return; } finally { if (o) throw n; } } return a; } }
|
|
24
|
+
function _arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; }
|
|
25
|
+
function _objectWithoutProperties(source, excluded) { if (source == null) return {}; var target = _objectWithoutPropertiesLoose(source, excluded); var key, i; if (Object.getOwnPropertySymbols) { var sourceSymbolKeys = Object.getOwnPropertySymbols(source); for (i = 0; i < sourceSymbolKeys.length; i++) { key = sourceSymbolKeys[i]; if (excluded.indexOf(key) >= 0) continue; if (!Object.prototype.propertyIsEnumerable.call(source, key)) continue; target[key] = source[key]; } } return target; }
|
|
26
|
+
function _objectWithoutPropertiesLoose(source, excluded) { if (source == null) return {}; var target = {}; var sourceKeys = Object.keys(source); var key, i; for (i = 0; i < sourceKeys.length; i++) { key = sourceKeys[i]; if (excluded.indexOf(key) >= 0) continue; target[key] = source[key]; } return target; }
|
|
27
|
+
var AutoFocusDialogContentContainer = function AutoFocusDialogContentContainer(props) {
|
|
28
|
+
var Component = props.Component,
|
|
29
|
+
open = props.open,
|
|
30
|
+
children = props.children,
|
|
31
|
+
otherProps = _objectWithoutProperties(props, _excluded);
|
|
32
|
+
var _useState = (0, _react.useState)(null),
|
|
33
|
+
_useState2 = _slicedToArray(_useState, 2),
|
|
34
|
+
contentRef = _useState2[0],
|
|
35
|
+
setContentRef = _useState2[1];
|
|
36
|
+
var _useState3 = (0, _react.useState)(false),
|
|
37
|
+
_useState4 = _slicedToArray(_useState3, 2),
|
|
38
|
+
focusedOnce = _useState4[0],
|
|
39
|
+
setFocusedOnce = _useState4[1];
|
|
40
|
+
var focusFirstInteractiveElement = (0, _react.useCallback)(function (element) {
|
|
41
|
+
setContentRef(element);
|
|
42
|
+
}, []);
|
|
43
|
+
(0, _react.useEffect)(function () {
|
|
44
|
+
open && setFocusedOnce(false);
|
|
45
|
+
}, [open]);
|
|
46
|
+
(0, _react.useEffect)(function () {
|
|
47
|
+
if (!contentRef) {
|
|
48
|
+
return;
|
|
49
|
+
}
|
|
50
|
+
var focusableElements = contentRef.querySelectorAll('button, [href], input, select, textarea, [tabindex]:not([tabindex="-1"])');
|
|
51
|
+
if (!focusedOnce && focusableElements.length > 0 && !_toConsumableArray(focusableElements).some(function (element) {
|
|
52
|
+
return element === document.activeElement;
|
|
53
|
+
})) {
|
|
54
|
+
var timeout = setTimeout(function () {
|
|
55
|
+
var firstElement = focusableElements[0];
|
|
56
|
+
firstElement.focus();
|
|
57
|
+
setFocusedOnce(true);
|
|
58
|
+
}, 100);
|
|
59
|
+
return function () {
|
|
60
|
+
return clearTimeout(timeout);
|
|
61
|
+
};
|
|
62
|
+
}
|
|
63
|
+
}, [children, focusedOnce, contentRef, focusFirstInteractiveElement]);
|
|
64
|
+
return /*#__PURE__*/_react["default"].createElement(Component, _extends({
|
|
65
|
+
ref: focusFirstInteractiveElement
|
|
66
|
+
}, otherProps), children);
|
|
67
|
+
};
|
|
68
|
+
AutoFocusDialogContentContainer.defaultProps = {
|
|
69
|
+
Component: 'div'
|
|
70
|
+
};
|
|
71
|
+
var _default = exports["default"] = AutoFocusDialogContentContainer;
|
|
@@ -55,8 +55,8 @@ var styles = function styles(theme) {
|
|
|
55
55
|
},
|
|
56
56
|
CloseIcon: {
|
|
57
57
|
position: 'absolute',
|
|
58
|
-
right:
|
|
59
|
-
top:
|
|
58
|
+
right: 16,
|
|
59
|
+
top: 16,
|
|
60
60
|
'&:hover': {
|
|
61
61
|
cursor: 'pointer'
|
|
62
62
|
}
|
|
@@ -138,22 +138,25 @@ var BulkNames = /*#__PURE__*/function (_React$Component) {
|
|
|
138
138
|
handleText = _this$props.handleText,
|
|
139
139
|
saveConfigurationBulkNames = _this$props.saveConfigurationBulkNames,
|
|
140
140
|
size = _this$props.size;
|
|
141
|
+
var dialogTitleId = 'bulk-names-edit-dialog-title';
|
|
141
142
|
return /*#__PURE__*/_react["default"].createElement(_Dialog["default"], {
|
|
142
143
|
open: showBulkNameForm,
|
|
143
144
|
onClose: onClose,
|
|
144
145
|
maxWidth: 'sm',
|
|
145
146
|
fullWidth: true,
|
|
146
147
|
fullScreen: width === 'sm' || width === 'xs',
|
|
147
|
-
scroll: "paper"
|
|
148
|
+
scroll: "paper",
|
|
149
|
+
"aria-labelledby": dialogTitleId
|
|
148
150
|
}, /*#__PURE__*/_react["default"].createElement(_DialogTitle["default"], {
|
|
149
151
|
className: classes.dialogTitleRoot
|
|
150
152
|
}, /*#__PURE__*/_react["default"].createElement(_Typography["default"], {
|
|
151
153
|
className: classes.TypographyCaption,
|
|
152
|
-
variant: "body1"
|
|
153
|
-
|
|
154
|
+
variant: "body1",
|
|
155
|
+
id: dialogTitleId
|
|
156
|
+
}, /*#__PURE__*/_react["default"].createElement("b", null, (0, _i18n.t)('bulkNames.bulkNamesEdit'))), /*#__PURE__*/_react["default"].createElement(_IconButton["default"], {
|
|
154
157
|
className: classes.CloseIcon,
|
|
155
158
|
onClick: onClose
|
|
156
|
-
}, "close")), /*#__PURE__*/_react["default"].createElement(_DialogContent["default"], {
|
|
159
|
+
}, /*#__PURE__*/_react["default"].createElement(_Icon["default"], null, "close"))), /*#__PURE__*/_react["default"].createElement(_DialogContent["default"], {
|
|
157
160
|
className: classes.dialogContentRoot
|
|
158
161
|
}, /*#__PURE__*/_react["default"].createElement(_Grid["default"], {
|
|
159
162
|
container: true
|
|
@@ -123,8 +123,6 @@ var LoadConfiguration = /*#__PURE__*/function (_React$Component) {
|
|
|
123
123
|
return /*#__PURE__*/_react["default"].createElement(_CustomDialog["default"], {
|
|
124
124
|
open: show,
|
|
125
125
|
onClose: onClose,
|
|
126
|
-
"aria-labelledby": "alert-dialog-title",
|
|
127
|
-
"aria-describedby": "alert-dialog-description",
|
|
128
126
|
dialogTitle: (0, _i18n.t)('loadConfiguration.dialogTitle'),
|
|
129
127
|
onCancel: onClose
|
|
130
128
|
}, /*#__PURE__*/_react["default"].createElement(_DialogContent["default"], null, workInProgress && /*#__PURE__*/_react["default"].createElement(_Typography["default"], {
|
|
@@ -118,8 +118,6 @@ var PdfDownload = /*#__PURE__*/function (_React$Component) {
|
|
|
118
118
|
return /*#__PURE__*/_react["default"].createElement(_CustomDialog["default"], {
|
|
119
119
|
open: show,
|
|
120
120
|
onClose: onClose,
|
|
121
|
-
"aria-labelledby": "alert-dialog-title",
|
|
122
|
-
"aria-describedby": "alert-dialog-description",
|
|
123
121
|
dialogTitle: (0, _i18n.t)('pdfDownloadDialog.title'),
|
|
124
122
|
onCancel: onClose
|
|
125
123
|
}, /*#__PURE__*/_react["default"].createElement(_DialogContent["default"], {
|
|
@@ -18,6 +18,7 @@ var _MainButton = _interopRequireDefault(require("../../../../Shared/Components/
|
|
|
18
18
|
var _CustomDialog = _interopRequireDefault(require("../../../../Shared/Components/CustomDialog"));
|
|
19
19
|
var _propTypes = _interopRequireDefault(require("prop-types"));
|
|
20
20
|
var _Tooltip = _interopRequireDefault(require("@material-ui/core/Tooltip"));
|
|
21
|
+
var _AccessibleButton = _interopRequireDefault(require("../AccessibleButton/AccessibleButton"));
|
|
21
22
|
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
|
|
22
23
|
function _typeof(o) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (o) { return typeof o; } : function (o) { return o && "function" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? "symbol" : typeof o; }, _typeof(o); }
|
|
23
24
|
function _regeneratorRuntime() { "use strict"; /*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/facebook/regenerator/blob/main/LICENSE */ _regeneratorRuntime = function _regeneratorRuntime() { return e; }; var t, e = {}, r = Object.prototype, n = r.hasOwnProperty, o = Object.defineProperty || function (t, e, r) { t[e] = r.value; }, i = "function" == typeof Symbol ? Symbol : {}, a = i.iterator || "@@iterator", c = i.asyncIterator || "@@asyncIterator", u = i.toStringTag || "@@toStringTag"; function define(t, e, r) { return Object.defineProperty(t, e, { value: r, enumerable: !0, configurable: !0, writable: !0 }), t[e]; } try { define({}, ""); } catch (t) { define = function define(t, e, r) { return t[e] = r; }; } function wrap(t, e, r, n) { var i = e && e.prototype instanceof Generator ? e : Generator, a = Object.create(i.prototype), c = new Context(n || []); return o(a, "_invoke", { value: makeInvokeMethod(t, r, c) }), a; } function tryCatch(t, e, r) { try { return { type: "normal", arg: t.call(e, r) }; } catch (t) { return { type: "throw", arg: t }; } } e.wrap = wrap; var h = "suspendedStart", l = "suspendedYield", f = "executing", s = "completed", y = {}; function Generator() {} function GeneratorFunction() {} function GeneratorFunctionPrototype() {} var p = {}; define(p, a, function () { return this; }); var d = Object.getPrototypeOf, v = d && d(d(values([]))); v && v !== r && n.call(v, a) && (p = v); var g = GeneratorFunctionPrototype.prototype = Generator.prototype = Object.create(p); function defineIteratorMethods(t) { ["next", "throw", "return"].forEach(function (e) { define(t, e, function (t) { return this._invoke(e, t); }); }); } function AsyncIterator(t, e) { function invoke(r, o, i, a) { var c = tryCatch(t[r], t, o); if ("throw" !== c.type) { var u = c.arg, h = u.value; return h && "object" == _typeof(h) && n.call(h, "__await") ? e.resolve(h.__await).then(function (t) { invoke("next", t, i, a); }, function (t) { invoke("throw", t, i, a); }) : e.resolve(h).then(function (t) { u.value = t, i(u); }, function (t) { return invoke("throw", t, i, a); }); } a(c.arg); } var r; o(this, "_invoke", { value: function value(t, n) { function callInvokeWithMethodAndArg() { return new e(function (e, r) { invoke(t, n, e, r); }); } return r = r ? r.then(callInvokeWithMethodAndArg, callInvokeWithMethodAndArg) : callInvokeWithMethodAndArg(); } }); } function makeInvokeMethod(e, r, n) { var o = h; return function (i, a) { if (o === f) throw new Error("Generator is already running"); if (o === s) { if ("throw" === i) throw a; return { value: t, done: !0 }; } for (n.method = i, n.arg = a;;) { var c = n.delegate; if (c) { var u = maybeInvokeDelegate(c, n); if (u) { if (u === y) continue; return u; } } if ("next" === n.method) n.sent = n._sent = n.arg;else if ("throw" === n.method) { if (o === h) throw o = s, n.arg; n.dispatchException(n.arg); } else "return" === n.method && n.abrupt("return", n.arg); o = f; var p = tryCatch(e, r, n); if ("normal" === p.type) { if (o = n.done ? s : l, p.arg === y) continue; return { value: p.arg, done: n.done }; } "throw" === p.type && (o = s, n.method = "throw", n.arg = p.arg); } }; } function maybeInvokeDelegate(e, r) { var n = r.method, o = e.iterator[n]; if (o === t) return r.delegate = null, "throw" === n && e.iterator["return"] && (r.method = "return", r.arg = t, maybeInvokeDelegate(e, r), "throw" === r.method) || "return" !== n && (r.method = "throw", r.arg = new TypeError("The iterator does not provide a '" + n + "' method")), y; var i = tryCatch(o, e.iterator, r.arg); if ("throw" === i.type) return r.method = "throw", r.arg = i.arg, r.delegate = null, y; var a = i.arg; return a ? a.done ? (r[e.resultName] = a.value, r.next = e.nextLoc, "return" !== r.method && (r.method = "next", r.arg = t), r.delegate = null, y) : a : (r.method = "throw", r.arg = new TypeError("iterator result is not an object"), r.delegate = null, y); } function pushTryEntry(t) { var e = { tryLoc: t[0] }; 1 in t && (e.catchLoc = t[1]), 2 in t && (e.finallyLoc = t[2], e.afterLoc = t[3]), this.tryEntries.push(e); } function resetTryEntry(t) { var e = t.completion || {}; e.type = "normal", delete e.arg, t.completion = e; } function Context(t) { this.tryEntries = [{ tryLoc: "root" }], t.forEach(pushTryEntry, this), this.reset(!0); } function values(e) { if (e || "" === e) { var r = e[a]; if (r) return r.call(e); if ("function" == typeof e.next) return e; if (!isNaN(e.length)) { var o = -1, i = function next() { for (; ++o < e.length;) if (n.call(e, o)) return next.value = e[o], next.done = !1, next; return next.value = t, next.done = !0, next; }; return i.next = i; } } throw new TypeError(_typeof(e) + " is not iterable"); } return GeneratorFunction.prototype = GeneratorFunctionPrototype, o(g, "constructor", { value: GeneratorFunctionPrototype, configurable: !0 }), o(GeneratorFunctionPrototype, "constructor", { value: GeneratorFunction, configurable: !0 }), GeneratorFunction.displayName = define(GeneratorFunctionPrototype, u, "GeneratorFunction"), e.isGeneratorFunction = function (t) { var e = "function" == typeof t && t.constructor; return !!e && (e === GeneratorFunction || "GeneratorFunction" === (e.displayName || e.name)); }, e.mark = function (t) { return Object.setPrototypeOf ? Object.setPrototypeOf(t, GeneratorFunctionPrototype) : (t.__proto__ = GeneratorFunctionPrototype, define(t, u, "GeneratorFunction")), t.prototype = Object.create(g), t; }, e.awrap = function (t) { return { __await: t }; }, defineIteratorMethods(AsyncIterator.prototype), define(AsyncIterator.prototype, c, function () { return this; }), e.AsyncIterator = AsyncIterator, e.async = function (t, r, n, o, i) { void 0 === i && (i = Promise); var a = new AsyncIterator(wrap(t, r, n, o), i); return e.isGeneratorFunction(r) ? a : a.next().then(function (t) { return t.done ? t.value : a.next(); }); }, defineIteratorMethods(g), define(g, u, "Generator"), define(g, a, function () { return this; }), define(g, "toString", function () { return "[object Generator]"; }), e.keys = function (t) { var e = Object(t), r = []; for (var n in e) r.push(n); return r.reverse(), function next() { for (; r.length;) { var t = r.pop(); if (t in e) return next.value = t, next.done = !1, next; } return next.done = !0, next; }; }, e.values = values, Context.prototype = { constructor: Context, reset: function reset(e) { if (this.prev = 0, this.next = 0, this.sent = this._sent = t, this.done = !1, this.delegate = null, this.method = "next", this.arg = t, this.tryEntries.forEach(resetTryEntry), !e) for (var r in this) "t" === r.charAt(0) && n.call(this, r) && !isNaN(+r.slice(1)) && (this[r] = t); }, stop: function stop() { this.done = !0; var t = this.tryEntries[0].completion; if ("throw" === t.type) throw t.arg; return this.rval; }, dispatchException: function dispatchException(e) { if (this.done) throw e; var r = this; function handle(n, o) { return a.type = "throw", a.arg = e, r.next = n, o && (r.method = "next", r.arg = t), !!o; } for (var o = this.tryEntries.length - 1; o >= 0; --o) { var i = this.tryEntries[o], a = i.completion; if ("root" === i.tryLoc) return handle("end"); if (i.tryLoc <= this.prev) { var c = n.call(i, "catchLoc"), u = n.call(i, "finallyLoc"); if (c && u) { if (this.prev < i.catchLoc) return handle(i.catchLoc, !0); if (this.prev < i.finallyLoc) return handle(i.finallyLoc); } else if (c) { if (this.prev < i.catchLoc) return handle(i.catchLoc, !0); } else { if (!u) throw new Error("try statement without catch or finally"); if (this.prev < i.finallyLoc) return handle(i.finallyLoc); } } } }, abrupt: function abrupt(t, e) { for (var r = this.tryEntries.length - 1; r >= 0; --r) { var o = this.tryEntries[r]; if (o.tryLoc <= this.prev && n.call(o, "finallyLoc") && this.prev < o.finallyLoc) { var i = o; break; } } i && ("break" === t || "continue" === t) && i.tryLoc <= e && e <= i.finallyLoc && (i = null); var a = i ? i.completion : {}; return a.type = t, a.arg = e, i ? (this.method = "next", this.next = i.finallyLoc, y) : this.complete(a); }, complete: function complete(t, e) { if ("throw" === t.type) throw t.arg; return "break" === t.type || "continue" === t.type ? this.next = t.arg : "return" === t.type ? (this.rval = this.arg = t.arg, this.method = "return", this.next = "end") : "normal" === t.type && e && (this.next = e), y; }, finish: function finish(t) { for (var e = this.tryEntries.length - 1; e >= 0; --e) { var r = this.tryEntries[e]; if (r.finallyLoc === t) return this.complete(r.completion, r.afterLoc), resetTryEntry(r), y; } }, "catch": function _catch(t) { for (var e = this.tryEntries.length - 1; e >= 0; --e) { var r = this.tryEntries[e]; if (r.tryLoc === t) { var n = r.completion; if ("throw" === n.type) { var o = n.arg; resetTryEntry(r); } return o; } } throw new Error("illegal catch attempt"); }, delegateYield: function delegateYield(e, r, n) { return this.delegate = { iterator: values(e), resultName: r, nextLoc: n }, "next" === this.method && (this.arg = t), y; } }, e; }
|
|
@@ -182,8 +183,6 @@ var SaveConfiguration = /*#__PURE__*/function (_React$Component) {
|
|
|
182
183
|
return /*#__PURE__*/_react["default"].createElement(_CustomDialog["default"], {
|
|
183
184
|
open: show,
|
|
184
185
|
onClose: onClose,
|
|
185
|
-
"aria-labelledby": "alert-dialog-title",
|
|
186
|
-
"aria-describedby": "alert-dialog-description",
|
|
187
186
|
onCancel: onClose,
|
|
188
187
|
dialogTitle: (0, _i18n.t)('saveConfiguration.dialogTitle')
|
|
189
188
|
}, /*#__PURE__*/_react["default"].createElement(_DialogContent["default"], {
|
|
@@ -224,12 +223,12 @@ var SaveConfiguration = /*#__PURE__*/function (_React$Component) {
|
|
|
224
223
|
className: classes.successResultIcon
|
|
225
224
|
}), /*#__PURE__*/_react["default"].createElement("b", null, code), IconCopyShareUrl && /*#__PURE__*/_react["default"].createElement(_Tooltip["default"], {
|
|
226
225
|
title: (0, _i18n.t)('saveConfiguration.copyConfigurationLink')
|
|
227
|
-
}, /*#__PURE__*/_react["default"].createElement(
|
|
226
|
+
}, /*#__PURE__*/_react["default"].createElement(_AccessibleButton["default"], {
|
|
228
227
|
className: classes.copyShareUrlIcon,
|
|
229
228
|
onClick: function onClick() {
|
|
230
229
|
return _this2.onCopyShareUrl(shareUrl);
|
|
231
230
|
}
|
|
232
|
-
})))), loadLoginInfoInProgress && /*#__PURE__*/_react["default"].createElement(_Typography["default"], {
|
|
231
|
+
}, /*#__PURE__*/_react["default"].createElement(IconCopyShareUrl, null))))), loadLoginInfoInProgress && /*#__PURE__*/_react["default"].createElement(_Typography["default"], {
|
|
233
232
|
variant: "body1",
|
|
234
233
|
classes: {
|
|
235
234
|
root: classes.TypographyCaption
|
|
@@ -51,8 +51,6 @@ var SendEmail = function SendEmail(props) {
|
|
|
51
51
|
return /*#__PURE__*/_react["default"].createElement(_CustomDialog["default"], {
|
|
52
52
|
open: show,
|
|
53
53
|
onClose: onClose,
|
|
54
|
-
"aria-labelledby": "alert-dialog-title",
|
|
55
|
-
"aria-describedby": "alert-dialog-description",
|
|
56
54
|
dialogTitle: (0, _i18n.t)('sendEmailDialog.title'),
|
|
57
55
|
onCancel: onClose
|
|
58
56
|
}, /*#__PURE__*/_react["default"].createElement(_DialogContent["default"], {
|