@configuratorware/configurator-frontendgui 1.56.1 → 1.56.4
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/ErrorBoundary.js +8 -6
- package/App/Frame.js +8 -6
- package/App/Modules/Creator/Components/ConfigurationvariantItem/index.js +10 -8
- package/App/Modules/Creator/Components/ConfigurationvariantSelection/index.js +10 -8
- package/App/Modules/Creator/Components/CustomTitleEditor/index.js +10 -8
- package/App/Modules/Creator/Components/ExternalVisualization/index.js +9 -7
- package/App/Modules/Creator/Components/FastConfigurationRow/index.js +8 -6
- package/App/Modules/Creator/Components/FastConfigurationSelect/index.js +8 -6
- package/App/Modules/Creator/Components/FullScreenView/FullScreenView.js +11 -10
- package/App/Modules/Creator/Components/Incompatibility/OptionExclusionRule/index.js +8 -6
- package/App/Modules/Creator/Components/Incompatibility/OptionRule/index.js +8 -6
- package/App/Modules/Creator/Components/Incompatibility/RuleComponent.js +9 -7
- package/App/Modules/Creator/Components/Incompatibility/index.js +9 -8
- package/App/Modules/Creator/Components/Option/index.js +1 -0
- package/App/Modules/Creator/Components/OptionAmount/index.js +14 -6
- package/App/Modules/Creator/Components/Optiondetail/ZoomImage/index.js +7 -6
- package/App/Modules/Creator/Components/Optiondetail/index.js +17 -15
- package/App/Modules/Creator/Components/OptionsList/index.js +12 -11
- package/App/Modules/Creator/Components/Price/index.js +8 -6
- package/App/Modules/Creator/Components/ProductPart/index.js +8 -7
- package/App/Modules/Creator/Components/Tools/index.js +8 -6
- package/App/Modules/Creator/Layouts/DefaultLayout.js +30 -28
- package/App/Modules/Designer/Components/AddGalleryImage/index.js +11 -9
- package/App/Modules/Designer/Components/AddGalleryImage/index.story.js +4 -4
- package/App/Modules/Designer/Components/AddGalleryImage/index.test.js +6 -6
- package/App/Modules/Designer/Components/AddVisualElement/index.js +8 -6
- package/App/Modules/Designer/Components/AddVisualElement/index.test.js +3 -3
- package/App/Modules/Designer/Components/CloseDesignEditor/index.js +8 -6
- package/App/Modules/Designer/Components/CloseGraphicsEditorButton/index.js +5 -4
- package/App/Modules/Designer/Components/ColorPalettes/index.js +26 -21
- package/App/Modules/Designer/Components/ColorPalettes/index.test.js +3 -3
- package/App/Modules/Designer/Components/DesignAreaControlbox/index.js +23 -20
- package/App/Modules/Designer/Components/DesignAreaControlbox/index.test.js +7 -7
- package/App/Modules/Designer/Components/Dialog/index.js +13 -10
- package/App/Modules/Designer/Components/FeedbackNotice/index.js +9 -7
- package/App/Modules/Designer/Components/FeedbackNotice/index.test.js +1 -1
- package/App/Modules/Designer/Components/FullScreenView/FullScreenView.js +7 -6
- package/App/Modules/Designer/Components/ImageColorPicker/ImageColorPicker.js +12 -10
- package/App/Modules/Designer/Components/ImageColorize/index.js +39 -29
- package/App/Modules/Designer/Components/ImageControlbox/index.js +16 -13
- package/App/Modules/Designer/Components/ImageEditDialog/ImageThumbnail.js +24 -14
- package/App/Modules/Designer/Components/ImageEditDialog/ImageUpload.js +85 -69
- package/App/Modules/Designer/Components/ImageEditDialog/index.js +45 -42
- package/App/Modules/Designer/Components/ImageLibraryThumbnail/index.js +9 -7
- package/App/Modules/Designer/Components/ObjectTools/index.js +8 -6
- package/App/Modules/Designer/Components/Select/index.js +8 -6
- package/App/Modules/Designer/Components/TextControlbox/index.js +26 -21
- package/App/Modules/Designer/Components/TextControlbox/index.test.js +10 -10
- package/App/Modules/Designer/Containers/AddVisualElement.js +21 -11
- package/App/Modules/Designer/Containers/ImageEditDialog.js +173 -157
- package/App/Modules/Designer/Designer.js +7 -6
- package/App/Modules/Designer/Layouts/DefaultLayout.js +20 -17
- package/App/Modules/Designer/Layouts/PopupAreaProvider.js +18 -15
- package/App/Modules/Designer/Utils/Transformers.js +23 -13
- package/App/Modules/Designer/setupDesigner.js +27 -16
- package/App/Modules/Designer/withActiveCanvas.js +10 -8
- package/App/Modules/Visualization/AlignTargetContainer.js +1 -0
- package/App/Modules/Visualization/CreatorAlignTarget.js +12 -11
- package/App/Modules/Visualization/DefaultVisualizationProvider.js +10 -8
- package/App/Modules/Visualization/DesignerAlignTarget.js +10 -9
- package/App/Reducers/Actions.js +44 -36
- package/App/Reducers/Configurator/Actions.js +92 -78
- package/App/Reducers/Configurator/Selectors.js +5 -5
- package/App/Reducers/Confirm/Actions.js +16 -6
- package/App/Reducers/DesignArea/Selectors.js +2 -1
- package/App/Reducers/ImageGallery/Actions.js +31 -18
- package/App/Reducers/ImageGallery/Reducer.js +1 -0
- package/App/Reducers/ImageGallery/Selectors.js +1 -0
- package/App/Reducers/UI/Actions.js +40 -26
- package/App/Routing.js +8 -6
- package/App/Screens/Configurator/Components/AmountSelection/index.js +11 -9
- package/App/Screens/Configurator/Components/CalculationWidget/index.js +19 -17
- package/App/Screens/Configurator/Components/CalculationWidget/index.test.js +8 -8
- package/App/Screens/Configurator/Components/Confirm/index.js +8 -6
- package/App/Screens/Configurator/Components/Error/index.js +9 -7
- package/App/Screens/Configurator/Components/FullScreenView/index.js +24 -21
- package/App/Screens/Configurator/Components/FullScreenView/index.test.js +2 -2
- package/App/Screens/Configurator/Components/ItemTile/ItemTile.js +13 -5
- package/App/Screens/Configurator/Components/PreviewPortal/index.js +10 -8
- package/App/Screens/Configurator/Components/Thumbnail/index.js +27 -24
- package/App/Screens/Configurator/Components/Thumbnail/index.test.js +2 -2
- package/App/Screens/Configurator/Containers/AmountPrice.js +6 -5
- package/App/Screens/Configurator/Containers/ConfigurationModeSwitch.js +19 -10
- package/App/Screens/DesignerProductPreview/DesignerProductPreviewManager.js +88 -73
- package/App/Screens/DesignerProductPreview/Screen.js +21 -14
- package/App/Screens/ItemOverview/Components/ItemOverview.js +47 -32
- package/App/ServiceLocator.js +4 -2
- package/App/Services/AdminareaCommunicationService.js +24 -14
- package/App/Services/AnalyticsService.js +48 -47
- package/App/Services/ConfiguratorService.js +142 -121
- package/App/Services/DesignDataService.js +619 -555
- package/App/Services/DesignerService.js +100 -79
- package/App/Services/InteractionService.js +236 -210
- package/App/Services/UIService.js +10 -7
- package/App/Services/VisualizationService.js +104 -86
- package/App/Shared/Components/AcceptDesign/index.js +19 -16
- package/App/Shared/Components/AcceptPrivacy/index.js +8 -6
- package/App/Shared/Components/AddToBasket/index.js +8 -6
- package/App/Shared/Components/AlertDialog/index.js +9 -7
- package/App/Shared/Components/AmountInput/index.js +24 -21
- package/App/Shared/Components/AmountPrice/index.js +128 -115
- package/App/Shared/Components/AmountPrice/index.test.js +5 -5
- package/App/Shared/Components/BulkNames/index.js +8 -6
- package/App/Shared/Components/ConfigurationOverview/index.js +8 -6
- package/App/Shared/Components/InformationTag/InformationTag.js +11 -9
- package/App/Shared/Components/LicenseNotice/LicenseNotice.js +8 -6
- package/App/Shared/Components/LoadConfiguration/index.js +9 -7
- package/App/Shared/Components/Notification/index.js +8 -6
- package/App/Shared/Components/PdfDownload/index.js +25 -15
- package/App/Shared/Components/PriceList/index.js +16 -13
- package/App/Shared/Components/PriceOverview/index.js +13 -10
- package/App/Shared/Components/ProductVariant/index.js +25 -22
- package/App/Shared/Components/ProductVariant/index.story.js +1 -0
- package/App/Shared/Components/ReceiveOfferForm/index.js +12 -10
- package/App/Shared/Components/ReceiveOfferForm/index.test.js +2 -2
- package/App/Shared/Components/SaveConfiguration/index.js +32 -22
- package/App/Shared/Components/Stepper/index.js +10 -8
- package/App/Shared/Components/ToolbarList/index.js +11 -9
- package/App/Shared/Components/VariantChooser/index.js +13 -10
- package/App/Shared/Containers/BulkNames.js +15 -13
- package/App/Shared/Containers/Header/index.js +15 -7
- package/App/Shared/Containers/LoadConfiguration/LoadConfiguration.js +22 -15
- package/App/Shared/Containers/ProductVariant/ProductVariant.js +23 -15
- package/App/Translations.js +56 -40
- package/App/Utils/Request/lazyFetch.js +27 -19
- package/App/configuration.js +4 -0
- package/App/index.js +24 -14
- package/Framework/Api.js +2 -1
- package/Framework/ComponentContainer.js +14 -11
- package/Framework/Components/Carousel/index.js +13 -11
- package/Framework/Components/Dialog/index.js +35 -33
- package/Framework/Components/DialogSelect/index.js +19 -16
- package/Framework/Components/Input/index.js +12 -10
- package/Framework/CustomError.js +6 -5
- package/Framework/Helpers/TransitionDetect.js +2 -1
- package/Framework/Services/AbstractAdminareaCommunicationService.js +2 -1
- package/Framework/Services/AbstractAsyncService.js +2 -1
- package/Framework/Services/AbstractConfiguratorService.js +2 -1
- package/Framework/Services/AbstractInteractionService.js +2 -1
- package/Framework/Services/AbstractStoreService.js +2 -1
- package/Framework/Services/AbstractUIService.js +2 -1
- package/Framework/Services/AbstractVisualizationService.js +2 -1
- package/Framework/Services/AsyncService.js +8 -6
- package/Framework/Services/StoreService.js +27 -17
- package/Framework/bindDecorator.js +7 -6
- package/Framework/i18n.js +10 -8
- package/Shared/ErrorTypes/DeferredError.js +6 -5
- package/Shared/HOCs/ResizeDetect/ResizeDetect.js +11 -9
- package/Utils/Async/AsyncManager.js +30 -20
- package/Utils/Async/Deferred.js +4 -2
- package/Utils/Decorators/Observable.js +2 -1
- package/Utils/Dev/HOCs/withFilePicker.js +10 -8
- package/Utils/Immutable/set.js +6 -6
- package/Utils/Test/mountWithState.js +1 -1
- package/package.json +4 -4
|
@@ -31,17 +31,18 @@ function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t =
|
|
|
31
31
|
function _classCallCheck(a, n) { if (!(a instanceof n)) throw new TypeError("Cannot call a class as a function"); }
|
|
32
32
|
function _defineProperties(e, r) { for (var t = 0; t < r.length; t++) { var o = r[t]; o.enumerable = o.enumerable || !1, o.configurable = !0, "value" in o && (o.writable = !0), Object.defineProperty(e, _toPropertyKey(o.key), o); } }
|
|
33
33
|
function _createClass(e, r, t) { return r && _defineProperties(e.prototype, r), t && _defineProperties(e, t), Object.defineProperty(e, "prototype", { writable: !1 }), e; }
|
|
34
|
-
function
|
|
34
|
+
function _inherits(t, e) { if ("function" != typeof e && null !== e) throw new TypeError("Super expression must either be null or a function"); t.prototype = Object.create(e && e.prototype, { constructor: { value: t, writable: !0, configurable: !0 } }), Object.defineProperty(t, "prototype", { writable: !1 }), e && _setPrototypeOf(t, e); }
|
|
35
|
+
function _setPrototypeOf(t, e) { return _setPrototypeOf = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function (t, e) { return t.__proto__ = e, t; }, _setPrototypeOf(t, e); }
|
|
36
|
+
function _createSuper(t) { var r = _isNativeReflectConstruct(); return function () { var e, o = _getPrototypeOf(t); if (r) { var s = _getPrototypeOf(this).constructor; e = Reflect.construct(o, arguments, s); } else e = o.apply(this, arguments); return _possibleConstructorReturn(this, e); }; }
|
|
35
37
|
function _possibleConstructorReturn(t, e) { if (e && ("object" == _typeof(e) || "function" == typeof e)) return e; if (void 0 !== e) throw new TypeError("Derived constructors may only return object or undefined"); return _assertThisInitialized(t); }
|
|
36
38
|
function _assertThisInitialized(e) { if (void 0 === e) throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); return e; }
|
|
37
39
|
function _isNativeReflectConstruct() { try { var t = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); } catch (t) {} return (_isNativeReflectConstruct = function _isNativeReflectConstruct() { return !!t; })(); }
|
|
38
40
|
function _getPrototypeOf(t) { return _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf.bind() : function (t) { return t.__proto__ || Object.getPrototypeOf(t); }, _getPrototypeOf(t); }
|
|
39
|
-
function _inherits(t, e) { if ("function" != typeof e && null !== e) throw new TypeError("Super expression must either be null or a function"); t.prototype = Object.create(e && e.prototype, { constructor: { value: t, writable: !0, configurable: !0 } }), Object.defineProperty(t, "prototype", { writable: !1 }), e && _setPrototypeOf(t, e); }
|
|
40
|
-
function _setPrototypeOf(t, e) { return _setPrototypeOf = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function (t, e) { return t.__proto__ = e, t; }, _setPrototypeOf(t, e); }
|
|
41
41
|
function _defineProperty(e, r, t) { return (r = _toPropertyKey(r)) in e ? Object.defineProperty(e, r, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : e[r] = t, e; }
|
|
42
42
|
function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == _typeof(i) ? i : i + ""; }
|
|
43
43
|
function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || "default"); if ("object" != _typeof(i)) return i; throw new TypeError("@@toPrimitive must return a primitive value."); } return ("string" === r ? String : Number)(t); }
|
|
44
44
|
var styles = function styles(theme) {
|
|
45
|
+
var _ButtonOutlinedRoot, _productAmounts;
|
|
45
46
|
return {
|
|
46
47
|
ProductVariantRoot: _defineProperty({
|
|
47
48
|
height: 'auto',
|
|
@@ -50,16 +51,16 @@ var styles = function styles(theme) {
|
|
|
50
51
|
}, theme.breakpoints.down('xs'), {
|
|
51
52
|
paddingRight: 0
|
|
52
53
|
}),
|
|
53
|
-
ButtonOutlinedRoot:
|
|
54
|
+
ButtonOutlinedRoot: (_ButtonOutlinedRoot = {
|
|
54
55
|
fontWeight: 'bold',
|
|
55
56
|
textTransform: 'none',
|
|
56
57
|
whiteSpace: 'nowrap'
|
|
57
|
-
}, theme.breakpoints.down('xs'), {
|
|
58
|
+
}, _defineProperty(_ButtonOutlinedRoot, theme.breakpoints.down('xs'), {
|
|
58
59
|
minWidth: 35,
|
|
59
60
|
padding: 0
|
|
60
|
-
}), theme.breakpoints.up('sm'), {
|
|
61
|
+
}), _defineProperty(_ButtonOutlinedRoot, theme.breakpoints.up('sm'), {
|
|
61
62
|
display: 'block'
|
|
62
|
-
}),
|
|
63
|
+
}), _ButtonOutlinedRoot),
|
|
63
64
|
ButtonOutlinedRootLabel: {
|
|
64
65
|
fontWeight: 'bold'
|
|
65
66
|
},
|
|
@@ -73,13 +74,13 @@ var styles = function styles(theme) {
|
|
|
73
74
|
marginRight: 16,
|
|
74
75
|
maxWidth: 100
|
|
75
76
|
},
|
|
76
|
-
productAmounts:
|
|
77
|
+
productAmounts: (_productAmounts = {}, _defineProperty(_productAmounts, theme.breakpoints.up('sm'), {
|
|
77
78
|
width: 200,
|
|
78
79
|
maxWidth: 200,
|
|
79
80
|
minWidth: 200
|
|
80
|
-
}), theme.breakpoints.down('sm'), {
|
|
81
|
+
}), _defineProperty(_productAmounts, theme.breakpoints.down('sm'), {
|
|
81
82
|
maxWidth: 225
|
|
82
|
-
}),
|
|
83
|
+
}), _productAmounts),
|
|
83
84
|
selectedCheck: {
|
|
84
85
|
whiteSpace: 'nowrap',
|
|
85
86
|
paddingBottom: 8
|
|
@@ -147,21 +148,23 @@ var hasError = exports.hasError = function hasError(identifier, errors) {
|
|
|
147
148
|
return !!error;
|
|
148
149
|
};
|
|
149
150
|
var ProductVariant = /*#__PURE__*/function (_React$Component) {
|
|
151
|
+
_inherits(ProductVariant, _React$Component);
|
|
152
|
+
var _super = _createSuper(ProductVariant);
|
|
150
153
|
function ProductVariant() {
|
|
151
154
|
var _this;
|
|
152
155
|
_classCallCheck(this, ProductVariant);
|
|
153
156
|
for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) {
|
|
154
157
|
args[_key] = arguments[_key];
|
|
155
158
|
}
|
|
156
|
-
_this =
|
|
157
|
-
_defineProperty(_this, "state", {
|
|
159
|
+
_this = _super.call.apply(_super, [this].concat(args));
|
|
160
|
+
_defineProperty(_assertThisInitialized(_this), "state", {
|
|
158
161
|
activeItem: null,
|
|
159
162
|
sizes: {},
|
|
160
163
|
showBulkNameForm: false,
|
|
161
164
|
activeVariantItem: {},
|
|
162
165
|
activeSize: {}
|
|
163
166
|
});
|
|
164
|
-
_defineProperty(_this, "handleChange", function (variant, size) {
|
|
167
|
+
_defineProperty(_assertThisInitialized(_this), "handleChange", function (variant, size) {
|
|
165
168
|
return function (value) {
|
|
166
169
|
//variant sizes length should be > 1 because the button for saving is then visible
|
|
167
170
|
if (variant && variant.sizes && variant.sizes.length > 1 && size && size.identifier) {
|
|
@@ -177,21 +180,21 @@ var ProductVariant = /*#__PURE__*/function (_React$Component) {
|
|
|
177
180
|
}
|
|
178
181
|
};
|
|
179
182
|
});
|
|
180
|
-
_defineProperty(_this, "handleFocus", function (event) {
|
|
183
|
+
_defineProperty(_assertThisInitialized(_this), "handleFocus", function (event) {
|
|
181
184
|
// select text async for mac os safari
|
|
182
185
|
var target = event.target;
|
|
183
186
|
setTimeout(function () {
|
|
184
187
|
return target.select();
|
|
185
188
|
}, 0);
|
|
186
189
|
});
|
|
187
|
-
_defineProperty(_this, "handleOpenSizeClick", function (activeItem) {
|
|
190
|
+
_defineProperty(_assertThisInitialized(_this), "handleOpenSizeClick", function (activeItem) {
|
|
188
191
|
return function () {
|
|
189
192
|
_this.setState({
|
|
190
193
|
activeItem: activeItem
|
|
191
194
|
});
|
|
192
195
|
};
|
|
193
196
|
});
|
|
194
|
-
_defineProperty(_this, "handleBulkNameForm", function (variant, size) {
|
|
197
|
+
_defineProperty(_assertThisInitialized(_this), "handleBulkNameForm", function (variant, size) {
|
|
195
198
|
return function () {
|
|
196
199
|
var activeBulkNames = _this.props.activeBulkNames;
|
|
197
200
|
if (!activeBulkNames) {
|
|
@@ -204,17 +207,17 @@ var ProductVariant = /*#__PURE__*/function (_React$Component) {
|
|
|
204
207
|
});
|
|
205
208
|
};
|
|
206
209
|
});
|
|
207
|
-
_defineProperty(_this, "handleBulkNamesFormClose", function () {
|
|
210
|
+
_defineProperty(_assertThisInitialized(_this), "handleBulkNamesFormClose", function () {
|
|
208
211
|
_this.setState({
|
|
209
212
|
showBulkNameForm: false
|
|
210
213
|
});
|
|
211
214
|
});
|
|
212
|
-
_defineProperty(_this, "handleBulkNamesSave", function (identifier, bulkNamesData) {
|
|
215
|
+
_defineProperty(_assertThisInitialized(_this), "handleBulkNamesSave", function (identifier, bulkNamesData) {
|
|
213
216
|
if ((0, _isFunction["default"])(_this.props.saveConfigurationBulkNames)) {
|
|
214
217
|
_this.props.saveConfigurationBulkNames(identifier, bulkNamesData);
|
|
215
218
|
}
|
|
216
219
|
});
|
|
217
|
-
_defineProperty(_this, "handleConfirmSize", function (variant) {
|
|
220
|
+
_defineProperty(_assertThisInitialized(_this), "handleConfirmSize", function (variant) {
|
|
218
221
|
if ((0, _isFunction["default"])(_this.props.handleMultipleAmountInputsChange)) {
|
|
219
222
|
_this.props.handleMultipleAmountInputsChange(variant, _this.state.sizes);
|
|
220
223
|
}
|
|
@@ -222,15 +225,14 @@ var ProductVariant = /*#__PURE__*/function (_React$Component) {
|
|
|
222
225
|
activeItem: null
|
|
223
226
|
});
|
|
224
227
|
});
|
|
225
|
-
_defineProperty(_this, "deleteAllSelectedAmount", function (variant) {
|
|
228
|
+
_defineProperty(_assertThisInitialized(_this), "deleteAllSelectedAmount", function (variant) {
|
|
226
229
|
if ((0, _isFunction["default"])(_this.props.deleteSelectedAmounts)) {
|
|
227
230
|
_this.props.deleteSelectedAmounts(variant, _this.state.sizes);
|
|
228
231
|
}
|
|
229
232
|
});
|
|
230
233
|
return _this;
|
|
231
234
|
}
|
|
232
|
-
|
|
233
|
-
return _createClass(ProductVariant, [{
|
|
235
|
+
_createClass(ProductVariant, [{
|
|
234
236
|
key: "componentDidUpdate",
|
|
235
237
|
value: function componentDidUpdate(prevProps, prevState) {
|
|
236
238
|
var amountMap = this.props.amountMap;
|
|
@@ -372,6 +374,7 @@ var ProductVariant = /*#__PURE__*/function (_React$Component) {
|
|
|
372
374
|
})));
|
|
373
375
|
}
|
|
374
376
|
}]);
|
|
377
|
+
return ProductVariant;
|
|
375
378
|
}(_react["default"].Component);
|
|
376
379
|
_defineProperty(ProductVariant, "defaultProps", {
|
|
377
380
|
BulkNamesComponent: _BulkNames["default"],
|
|
@@ -18,13 +18,13 @@ function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t =
|
|
|
18
18
|
function _classCallCheck(a, n) { if (!(a instanceof n)) throw new TypeError("Cannot call a class as a function"); }
|
|
19
19
|
function _defineProperties(e, r) { for (var t = 0; t < r.length; t++) { var o = r[t]; o.enumerable = o.enumerable || !1, o.configurable = !0, "value" in o && (o.writable = !0), Object.defineProperty(e, _toPropertyKey(o.key), o); } }
|
|
20
20
|
function _createClass(e, r, t) { return r && _defineProperties(e.prototype, r), t && _defineProperties(e, t), Object.defineProperty(e, "prototype", { writable: !1 }), e; }
|
|
21
|
-
function
|
|
21
|
+
function _inherits(t, e) { if ("function" != typeof e && null !== e) throw new TypeError("Super expression must either be null or a function"); t.prototype = Object.create(e && e.prototype, { constructor: { value: t, writable: !0, configurable: !0 } }), Object.defineProperty(t, "prototype", { writable: !1 }), e && _setPrototypeOf(t, e); }
|
|
22
|
+
function _setPrototypeOf(t, e) { return _setPrototypeOf = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function (t, e) { return t.__proto__ = e, t; }, _setPrototypeOf(t, e); }
|
|
23
|
+
function _createSuper(t) { var r = _isNativeReflectConstruct(); return function () { var e, o = _getPrototypeOf(t); if (r) { var s = _getPrototypeOf(this).constructor; e = Reflect.construct(o, arguments, s); } else e = o.apply(this, arguments); return _possibleConstructorReturn(this, e); }; }
|
|
22
24
|
function _possibleConstructorReturn(t, e) { if (e && ("object" == _typeof(e) || "function" == typeof e)) return e; if (void 0 !== e) throw new TypeError("Derived constructors may only return object or undefined"); return _assertThisInitialized(t); }
|
|
23
25
|
function _assertThisInitialized(e) { if (void 0 === e) throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); return e; }
|
|
24
26
|
function _isNativeReflectConstruct() { try { var t = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); } catch (t) {} return (_isNativeReflectConstruct = function _isNativeReflectConstruct() { return !!t; })(); }
|
|
25
27
|
function _getPrototypeOf(t) { return _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf.bind() : function (t) { return t.__proto__ || Object.getPrototypeOf(t); }, _getPrototypeOf(t); }
|
|
26
|
-
function _inherits(t, e) { if ("function" != typeof e && null !== e) throw new TypeError("Super expression must either be null or a function"); t.prototype = Object.create(e && e.prototype, { constructor: { value: t, writable: !0, configurable: !0 } }), Object.defineProperty(t, "prototype", { writable: !1 }), e && _setPrototypeOf(t, e); }
|
|
27
|
-
function _setPrototypeOf(t, e) { return _setPrototypeOf = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function (t, e) { return t.__proto__ = e, t; }, _setPrototypeOf(t, e); }
|
|
28
28
|
function _defineProperty(e, r, t) { return (r = _toPropertyKey(r)) in e ? Object.defineProperty(e, r, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : e[r] = t, e; }
|
|
29
29
|
function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == _typeof(i) ? i : i + ""; }
|
|
30
30
|
function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || "default"); if ("object" != _typeof(i)) return i; throw new TypeError("@@toPrimitive must return a primitive value."); } return ("string" === r ? String : Number)(t); }
|
|
@@ -61,11 +61,13 @@ var validateTextInput = function validateTextInput(name, value) {
|
|
|
61
61
|
return null;
|
|
62
62
|
};
|
|
63
63
|
var ReceiveOfferForm = /*#__PURE__*/function (_React$Component) {
|
|
64
|
+
_inherits(ReceiveOfferForm, _React$Component);
|
|
65
|
+
var _super = _createSuper(ReceiveOfferForm);
|
|
64
66
|
function ReceiveOfferForm(props) {
|
|
65
67
|
var _this;
|
|
66
68
|
_classCallCheck(this, ReceiveOfferForm);
|
|
67
|
-
_this =
|
|
68
|
-
_defineProperty(_this, "setInputRef", function (ref) {
|
|
69
|
+
_this = _super.call(this, props);
|
|
70
|
+
_defineProperty(_assertThisInitialized(_this), "setInputRef", function (ref) {
|
|
69
71
|
if (ref) {
|
|
70
72
|
_this.inputRefs[ref.name] = ref;
|
|
71
73
|
}
|
|
@@ -105,13 +107,12 @@ var ReceiveOfferForm = /*#__PURE__*/function (_React$Component) {
|
|
|
105
107
|
}
|
|
106
108
|
};
|
|
107
109
|
_this.inputRefs = {};
|
|
108
|
-
_this.handleChange = _this.handleChange.bind(_this);
|
|
109
|
-
_this.handleBlur = _this.handleBlur.bind(_this);
|
|
110
|
-
_this.setInputRef = _this.setInputRef.bind(_this);
|
|
110
|
+
_this.handleChange = _this.handleChange.bind(_assertThisInitialized(_this));
|
|
111
|
+
_this.handleBlur = _this.handleBlur.bind(_assertThisInitialized(_this));
|
|
112
|
+
_this.setInputRef = _this.setInputRef.bind(_assertThisInitialized(_this));
|
|
111
113
|
return _this;
|
|
112
114
|
}
|
|
113
|
-
|
|
114
|
-
return _createClass(ReceiveOfferForm, [{
|
|
115
|
+
_createClass(ReceiveOfferForm, [{
|
|
115
116
|
key: "handleChange",
|
|
116
117
|
value: function handleChange(event) {
|
|
117
118
|
this.setState(_defineProperty({}, event.target.name, {
|
|
@@ -374,6 +375,7 @@ var ReceiveOfferForm = /*#__PURE__*/function (_React$Component) {
|
|
|
374
375
|
}));
|
|
375
376
|
}
|
|
376
377
|
}]);
|
|
378
|
+
return ReceiveOfferForm;
|
|
377
379
|
}(_react["default"].Component);
|
|
378
380
|
var _default = exports["default"] = (0, _styles.withStyles)(styles, {
|
|
379
381
|
name: 'ReceiveOfferForm'
|
|
@@ -12,7 +12,7 @@ var mockStore = (0, _reduxMockStore["default"])();
|
|
|
12
12
|
it('renders correctly with approval', function () {
|
|
13
13
|
var store = mockStore({});
|
|
14
14
|
store.dispatch = jest.fn();
|
|
15
|
-
var tree = (0, _enzyme.render)(/*#__PURE__*/_react["default"].createElement(_reactRedux.Provider, {
|
|
15
|
+
var tree = (0, _enzyme.render)( /*#__PURE__*/_react["default"].createElement(_reactRedux.Provider, {
|
|
16
16
|
store: store
|
|
17
17
|
}, /*#__PURE__*/_react["default"].createElement(_index["default"], {
|
|
18
18
|
displayApproval: true
|
|
@@ -22,7 +22,7 @@ it('renders correctly with approval', function () {
|
|
|
22
22
|
it('renders correctly without approval', function () {
|
|
23
23
|
var store = mockStore({});
|
|
24
24
|
store.dispatch = jest.fn();
|
|
25
|
-
var tree = (0, _enzyme.render)(/*#__PURE__*/_react["default"].createElement(_reactRedux.Provider, {
|
|
25
|
+
var tree = (0, _enzyme.render)( /*#__PURE__*/_react["default"].createElement(_reactRedux.Provider, {
|
|
26
26
|
store: store
|
|
27
27
|
}, /*#__PURE__*/_react["default"].createElement(_index["default"], {
|
|
28
28
|
displayApproval: false
|
|
@@ -21,20 +21,27 @@ var _Tooltip = _interopRequireDefault(require("@material-ui/core/Tooltip"));
|
|
|
21
21
|
var _AccessibleButton = _interopRequireDefault(require("../AccessibleButton/AccessibleButton"));
|
|
22
22
|
function _interopRequireDefault(e) { return e && e.__esModule ? e : { "default": e }; }
|
|
23
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); }
|
|
24
|
+
function _regeneratorRuntime() { "use strict"; var r = _regenerator(), e = r.m(_regeneratorRuntime), t = (Object.getPrototypeOf ? Object.getPrototypeOf(e) : e.__proto__).constructor; function n(r) { var e = "function" == typeof r && r.constructor; return !!e && (e === t || "GeneratorFunction" === (e.displayName || e.name)); } var o = { "throw": 1, "return": 2, "break": 3, "continue": 3 }; function a(r) { var e, t; return function (n) { e || (e = { stop: function stop() { return t(n.a, 2); }, "catch": function _catch() { return n.v; }, abrupt: function abrupt(r, e) { return t(n.a, o[r], e); }, delegateYield: function delegateYield(r, o, a) { return e.resultName = o, t(n.d, _regeneratorValues(r), a); }, finish: function finish(r) { return t(n.f, r); } }, t = function t(r, _t, o) { n.p = e.prev, n.n = e.next; try { return r(_t, o); } finally { e.next = n.n; } }), e.resultName && (e[e.resultName] = n.v, e.resultName = void 0), e.sent = n.v, e.next = n.n; try { return r.call(this, e); } finally { n.p = e.prev, n.n = e.next; } }; } return (_regeneratorRuntime = function _regeneratorRuntime() { return { wrap: function wrap(e, t, n, o) { return r.w(a(e), t, n, o && o.reverse()); }, isGeneratorFunction: n, mark: r.m, awrap: function awrap(r, e) { return new _OverloadYield(r, e); }, AsyncIterator: _regeneratorAsyncIterator, async: function async(r, e, t, o, u) { return (n(e) ? _regeneratorAsyncGen : _regeneratorAsync)(a(r), e, t, o, u); }, keys: _regeneratorKeys, values: _regeneratorValues }; })(); }
|
|
25
|
+
function _regeneratorValues(e) { if (null != e) { var t = e["function" == typeof Symbol && Symbol.iterator || "@@iterator"], r = 0; if (t) return t.call(e); if ("function" == typeof e.next) return e; if (!isNaN(e.length)) return { next: function next() { return e && r >= e.length && (e = void 0), { value: e && e[r++], done: !e }; } }; } throw new TypeError(_typeof(e) + " is not iterable"); }
|
|
26
|
+
function _regeneratorKeys(e) { var n = Object(e), r = []; for (var t in n) r.unshift(t); return function e() { for (; r.length;) if ((t = r.pop()) in n) return e.value = t, e.done = !1, e; return e.done = !0, e; }; }
|
|
27
|
+
function _regeneratorAsync(n, e, r, t, o) { var a = _regeneratorAsyncGen(n, e, r, t, o); return a.next().then(function (n) { return n.done ? n.value : a.next(); }); }
|
|
28
|
+
function _regeneratorAsyncGen(r, e, t, o, n) { return new _regeneratorAsyncIterator(_regenerator().w(r, e, t, o), n || Promise); }
|
|
29
|
+
function _regeneratorAsyncIterator(t, e) { function n(r, o, i, f) { try { var c = t[r](o), u = c.value; return u instanceof _OverloadYield ? e.resolve(u.v).then(function (t) { n("next", t, i, f); }, function (t) { n("throw", t, i, f); }) : e.resolve(u).then(function (t) { c.value = t, i(c); }, function (t) { return n("throw", t, i, f); }); } catch (t) { f(t); } } var r; this.next || (_regeneratorDefine2(_regeneratorAsyncIterator.prototype), _regeneratorDefine2(_regeneratorAsyncIterator.prototype, "function" == typeof Symbol && Symbol.asyncIterator || "@asyncIterator", function () { return this; })), _regeneratorDefine2(this, "_invoke", function (t, o, i) { function f() { return new e(function (e, r) { n(t, i, e, r); }); } return r = r ? r.then(f, f) : f(); }, !0); }
|
|
24
30
|
function _regenerator() { /*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/babel/babel/blob/main/packages/babel-helpers/LICENSE */ var e, t, r = "function" == typeof Symbol ? Symbol : {}, n = r.iterator || "@@iterator", o = r.toStringTag || "@@toStringTag"; function i(r, n, o, i) { var c = n && n.prototype instanceof Generator ? n : Generator, u = Object.create(c.prototype); return _regeneratorDefine2(u, "_invoke", function (r, n, o) { var i, c, u, f = 0, p = o || [], y = !1, G = { p: 0, n: 0, v: e, a: d, f: d.bind(e, 4), d: function d(t, r) { return i = t, c = 0, u = e, G.n = r, a; } }; function d(r, n) { for (c = r, u = n, t = 0; !y && f && !o && t < p.length; t++) { var o, i = p[t], d = G.p, l = i[2]; r > 3 ? (o = l === n) && (u = i[(c = i[4]) ? 5 : (c = 3, 3)], i[4] = i[5] = e) : i[0] <= d && ((o = r < 2 && d < i[1]) ? (c = 0, G.v = n, G.n = i[1]) : d < l && (o = r < 3 || i[0] > n || n > l) && (i[4] = r, i[5] = n, G.n = l, c = 0)); } if (o || r > 1) return a; throw y = !0, n; } return function (o, p, l) { if (f > 1) throw TypeError("Generator is already running"); for (y && 1 === p && d(p, l), c = p, u = l; (t = c < 2 ? e : u) || !y;) { i || (c ? c < 3 ? (c > 1 && (G.n = -1), d(c, u)) : G.n = u : G.v = u); try { if (f = 2, i) { if (c || (o = "next"), t = i[o]) { if (!(t = t.call(i, u))) throw TypeError("iterator result is not an object"); if (!t.done) return t; u = t.value, c < 2 && (c = 0); } else 1 === c && (t = i["return"]) && t.call(i), c < 2 && (u = TypeError("The iterator does not provide a '" + o + "' method"), c = 1); i = e; } else if ((t = (y = G.n < 0) ? u : r.call(n, G)) !== a) break; } catch (t) { i = e, c = 1, u = t; } finally { f = 1; } } return { value: t, done: y }; }; }(r, o, i), !0), u; } var a = {}; function Generator() {} function GeneratorFunction() {} function GeneratorFunctionPrototype() {} t = Object.getPrototypeOf; var c = [][n] ? t(t([][n]())) : (_regeneratorDefine2(t = {}, n, function () { return this; }), t), u = GeneratorFunctionPrototype.prototype = Generator.prototype = Object.create(c); function f(e) { return Object.setPrototypeOf ? Object.setPrototypeOf(e, GeneratorFunctionPrototype) : (e.__proto__ = GeneratorFunctionPrototype, _regeneratorDefine2(e, o, "GeneratorFunction")), e.prototype = Object.create(u), e; } return GeneratorFunction.prototype = GeneratorFunctionPrototype, _regeneratorDefine2(u, "constructor", GeneratorFunctionPrototype), _regeneratorDefine2(GeneratorFunctionPrototype, "constructor", GeneratorFunction), GeneratorFunction.displayName = "GeneratorFunction", _regeneratorDefine2(GeneratorFunctionPrototype, o, "GeneratorFunction"), _regeneratorDefine2(u), _regeneratorDefine2(u, o, "Generator"), _regeneratorDefine2(u, n, function () { return this; }), _regeneratorDefine2(u, "toString", function () { return "[object Generator]"; }), (_regenerator = function _regenerator() { return { w: i, m: f }; })(); }
|
|
25
31
|
function _regeneratorDefine2(e, r, n, t) { var i = Object.defineProperty; try { i({}, "", {}); } catch (e) { i = 0; } _regeneratorDefine2 = function _regeneratorDefine(e, r, n, t) { function o(r, n) { _regeneratorDefine2(e, r, function (e) { return this._invoke(r, n, e); }); } r ? i ? i(e, r, { value: n, enumerable: !t, configurable: !t, writable: !t }) : e[r] = n : (o("next", 0), o("throw", 1), o("return", 2)); }, _regeneratorDefine2(e, r, n, t); }
|
|
32
|
+
function _OverloadYield(e, d) { this.v = e, this.k = d; }
|
|
26
33
|
function asyncGeneratorStep(n, t, e, r, o, a, c) { try { var i = n[a](c), u = i.value; } catch (n) { return void e(n); } i.done ? t(u) : Promise.resolve(u).then(r, o); }
|
|
27
34
|
function _asyncToGenerator(n) { return function () { var t = this, e = arguments; return new Promise(function (r, o) { var a = n.apply(t, e); function _next(n) { asyncGeneratorStep(a, r, o, _next, _throw, "next", n); } function _throw(n) { asyncGeneratorStep(a, r, o, _next, _throw, "throw", n); } _next(void 0); }); }; }
|
|
28
35
|
function _classCallCheck(a, n) { if (!(a instanceof n)) throw new TypeError("Cannot call a class as a function"); }
|
|
29
36
|
function _defineProperties(e, r) { for (var t = 0; t < r.length; t++) { var o = r[t]; o.enumerable = o.enumerable || !1, o.configurable = !0, "value" in o && (o.writable = !0), Object.defineProperty(e, _toPropertyKey(o.key), o); } }
|
|
30
37
|
function _createClass(e, r, t) { return r && _defineProperties(e.prototype, r), t && _defineProperties(e, t), Object.defineProperty(e, "prototype", { writable: !1 }), e; }
|
|
31
|
-
function
|
|
38
|
+
function _inherits(t, e) { if ("function" != typeof e && null !== e) throw new TypeError("Super expression must either be null or a function"); t.prototype = Object.create(e && e.prototype, { constructor: { value: t, writable: !0, configurable: !0 } }), Object.defineProperty(t, "prototype", { writable: !1 }), e && _setPrototypeOf(t, e); }
|
|
39
|
+
function _setPrototypeOf(t, e) { return _setPrototypeOf = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function (t, e) { return t.__proto__ = e, t; }, _setPrototypeOf(t, e); }
|
|
40
|
+
function _createSuper(t) { var r = _isNativeReflectConstruct(); return function () { var e, o = _getPrototypeOf(t); if (r) { var s = _getPrototypeOf(this).constructor; e = Reflect.construct(o, arguments, s); } else e = o.apply(this, arguments); return _possibleConstructorReturn(this, e); }; }
|
|
32
41
|
function _possibleConstructorReturn(t, e) { if (e && ("object" == _typeof(e) || "function" == typeof e)) return e; if (void 0 !== e) throw new TypeError("Derived constructors may only return object or undefined"); return _assertThisInitialized(t); }
|
|
33
42
|
function _assertThisInitialized(e) { if (void 0 === e) throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); return e; }
|
|
34
43
|
function _isNativeReflectConstruct() { try { var t = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); } catch (t) {} return (_isNativeReflectConstruct = function _isNativeReflectConstruct() { return !!t; })(); }
|
|
35
44
|
function _getPrototypeOf(t) { return _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf.bind() : function (t) { return t.__proto__ || Object.getPrototypeOf(t); }, _getPrototypeOf(t); }
|
|
36
|
-
function _inherits(t, e) { if ("function" != typeof e && null !== e) throw new TypeError("Super expression must either be null or a function"); t.prototype = Object.create(e && e.prototype, { constructor: { value: t, writable: !0, configurable: !0 } }), Object.defineProperty(t, "prototype", { writable: !1 }), e && _setPrototypeOf(t, e); }
|
|
37
|
-
function _setPrototypeOf(t, e) { return _setPrototypeOf = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function (t, e) { return t.__proto__ = e, t; }, _setPrototypeOf(t, e); }
|
|
38
45
|
function _defineProperty(e, r, t) { return (r = _toPropertyKey(r)) in e ? Object.defineProperty(e, r, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : e[r] = t, e; }
|
|
39
46
|
function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == _typeof(i) ? i : i + ""; }
|
|
40
47
|
function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || "default"); if ("object" != _typeof(i)) return i; throw new TypeError("@@toPrimitive must return a primitive value."); } return ("string" === r ? String : Number)(t); }
|
|
@@ -108,30 +115,32 @@ var styles = function styles(theme) {
|
|
|
108
115
|
};
|
|
109
116
|
};
|
|
110
117
|
var SaveConfiguration = /*#__PURE__*/function (_React$Component) {
|
|
118
|
+
_inherits(SaveConfiguration, _React$Component);
|
|
119
|
+
var _super = _createSuper(SaveConfiguration);
|
|
111
120
|
function SaveConfiguration() {
|
|
112
121
|
var _this;
|
|
113
122
|
_classCallCheck(this, SaveConfiguration);
|
|
114
123
|
for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) {
|
|
115
124
|
args[_key] = arguments[_key];
|
|
116
125
|
}
|
|
117
|
-
_this =
|
|
118
|
-
_defineProperty(_this, "onCopyShareUrl", /*#__PURE__*/function () {
|
|
119
|
-
var _ref = _asyncToGenerator(/*#__PURE__*/
|
|
120
|
-
var textArea, selection, range
|
|
121
|
-
return
|
|
122
|
-
while (1) switch (_context.
|
|
126
|
+
_this = _super.call.apply(_super, [this].concat(args));
|
|
127
|
+
_defineProperty(_assertThisInitialized(_this), "onCopyShareUrl", /*#__PURE__*/function () {
|
|
128
|
+
var _ref = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee(shareUrl) {
|
|
129
|
+
var textArea, selection, range;
|
|
130
|
+
return _regeneratorRuntime().wrap(function _callee$(_context) {
|
|
131
|
+
while (1) switch (_context.prev = _context.next) {
|
|
123
132
|
case 0:
|
|
124
|
-
_context.
|
|
125
|
-
_context.
|
|
133
|
+
_context.prev = 0;
|
|
134
|
+
_context.next = 3;
|
|
126
135
|
return navigator.clipboard.writeText(shareUrl);
|
|
127
|
-
case
|
|
128
|
-
_context.
|
|
136
|
+
case 3:
|
|
137
|
+
_context.next = 18;
|
|
129
138
|
break;
|
|
130
|
-
case
|
|
131
|
-
_context.
|
|
132
|
-
|
|
139
|
+
case 5:
|
|
140
|
+
_context.prev = 5;
|
|
141
|
+
_context.t0 = _context["catch"](0);
|
|
133
142
|
// eslint-disable-next-line no-console
|
|
134
|
-
console.error('Error while using the clipboard api:',
|
|
143
|
+
console.error('Error while using the clipboard api:', _context.t0);
|
|
135
144
|
// clipboard api only available in secure contexts (localhost, htttps) and modern(ish) browsers
|
|
136
145
|
textArea = document.createElement('textarea');
|
|
137
146
|
textArea.textContent = shareUrl;
|
|
@@ -151,10 +160,11 @@ var SaveConfiguration = /*#__PURE__*/function (_React$Component) {
|
|
|
151
160
|
selection.removeAllRanges();
|
|
152
161
|
document.body.removeChild(textArea);
|
|
153
162
|
}
|
|
154
|
-
case
|
|
155
|
-
|
|
163
|
+
case 18:
|
|
164
|
+
case "end":
|
|
165
|
+
return _context.stop();
|
|
156
166
|
}
|
|
157
|
-
}, _callee, null, [[0,
|
|
167
|
+
}, _callee, null, [[0, 5]]);
|
|
158
168
|
}));
|
|
159
169
|
return function (_x) {
|
|
160
170
|
return _ref.apply(this, arguments);
|
|
@@ -162,8 +172,7 @@ var SaveConfiguration = /*#__PURE__*/function (_React$Component) {
|
|
|
162
172
|
}());
|
|
163
173
|
return _this;
|
|
164
174
|
}
|
|
165
|
-
|
|
166
|
-
return _createClass(SaveConfiguration, [{
|
|
175
|
+
_createClass(SaveConfiguration, [{
|
|
167
176
|
key: "render",
|
|
168
177
|
value: function render() {
|
|
169
178
|
var _this2 = this;
|
|
@@ -241,6 +250,7 @@ var SaveConfiguration = /*#__PURE__*/function (_React$Component) {
|
|
|
241
250
|
}, (0, _i18n.t)('saveConfiguration.okText'))));
|
|
242
251
|
}
|
|
243
252
|
}]);
|
|
253
|
+
return SaveConfiguration;
|
|
244
254
|
}(_react["default"].Component);
|
|
245
255
|
_defineProperty(SaveConfiguration, "defaultProps", {
|
|
246
256
|
IconCopyShareUrl: _FileCopy["default"]
|
|
@@ -15,13 +15,13 @@ function _typeof(o) { "@babel/helpers - typeof"; return _typeof = "function" ==
|
|
|
15
15
|
function _classCallCheck(a, n) { if (!(a instanceof n)) throw new TypeError("Cannot call a class as a function"); }
|
|
16
16
|
function _defineProperties(e, r) { for (var t = 0; t < r.length; t++) { var o = r[t]; o.enumerable = o.enumerable || !1, o.configurable = !0, "value" in o && (o.writable = !0), Object.defineProperty(e, _toPropertyKey(o.key), o); } }
|
|
17
17
|
function _createClass(e, r, t) { return r && _defineProperties(e.prototype, r), t && _defineProperties(e, t), Object.defineProperty(e, "prototype", { writable: !1 }), e; }
|
|
18
|
-
function
|
|
18
|
+
function _inherits(t, e) { if ("function" != typeof e && null !== e) throw new TypeError("Super expression must either be null or a function"); t.prototype = Object.create(e && e.prototype, { constructor: { value: t, writable: !0, configurable: !0 } }), Object.defineProperty(t, "prototype", { writable: !1 }), e && _setPrototypeOf(t, e); }
|
|
19
|
+
function _setPrototypeOf(t, e) { return _setPrototypeOf = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function (t, e) { return t.__proto__ = e, t; }, _setPrototypeOf(t, e); }
|
|
20
|
+
function _createSuper(t) { var r = _isNativeReflectConstruct(); return function () { var e, o = _getPrototypeOf(t); if (r) { var s = _getPrototypeOf(this).constructor; e = Reflect.construct(o, arguments, s); } else e = o.apply(this, arguments); return _possibleConstructorReturn(this, e); }; }
|
|
19
21
|
function _possibleConstructorReturn(t, e) { if (e && ("object" == _typeof(e) || "function" == typeof e)) return e; if (void 0 !== e) throw new TypeError("Derived constructors may only return object or undefined"); return _assertThisInitialized(t); }
|
|
20
22
|
function _assertThisInitialized(e) { if (void 0 === e) throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); return e; }
|
|
21
23
|
function _isNativeReflectConstruct() { try { var t = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); } catch (t) {} return (_isNativeReflectConstruct = function _isNativeReflectConstruct() { return !!t; })(); }
|
|
22
24
|
function _getPrototypeOf(t) { return _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf.bind() : function (t) { return t.__proto__ || Object.getPrototypeOf(t); }, _getPrototypeOf(t); }
|
|
23
|
-
function _inherits(t, e) { if ("function" != typeof e && null !== e) throw new TypeError("Super expression must either be null or a function"); t.prototype = Object.create(e && e.prototype, { constructor: { value: t, writable: !0, configurable: !0 } }), Object.defineProperty(t, "prototype", { writable: !1 }), e && _setPrototypeOf(t, e); }
|
|
24
|
-
function _setPrototypeOf(t, e) { return _setPrototypeOf = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function (t, e) { return t.__proto__ = e, t; }, _setPrototypeOf(t, e); }
|
|
25
25
|
function _defineProperty(e, r, t) { return (r = _toPropertyKey(r)) in e ? Object.defineProperty(e, r, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : e[r] = t, e; }
|
|
26
26
|
function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == _typeof(i) ? i : i + ""; }
|
|
27
27
|
function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || "default"); if ("object" != _typeof(i)) return i; throw new TypeError("@@toPrimitive must return a primitive value."); } return ("string" === r ? String : Number)(t); }
|
|
@@ -46,25 +46,26 @@ var styles = function styles(theme) {
|
|
|
46
46
|
};
|
|
47
47
|
};
|
|
48
48
|
var Stepper = /*#__PURE__*/function (_React$Component) {
|
|
49
|
+
_inherits(Stepper, _React$Component);
|
|
50
|
+
var _super = _createSuper(Stepper);
|
|
49
51
|
function Stepper() {
|
|
50
52
|
var _this;
|
|
51
53
|
_classCallCheck(this, Stepper);
|
|
52
54
|
for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) {
|
|
53
55
|
args[_key] = arguments[_key];
|
|
54
56
|
}
|
|
55
|
-
_this =
|
|
56
|
-
_defineProperty(_this, "state", {
|
|
57
|
+
_this = _super.call.apply(_super, [this].concat(args));
|
|
58
|
+
_defineProperty(_assertThisInitialized(_this), "state", {
|
|
57
59
|
value: 0
|
|
58
60
|
});
|
|
59
|
-
_defineProperty(_this, "handleChange", function (event, value) {
|
|
61
|
+
_defineProperty(_assertThisInitialized(_this), "handleChange", function (event, value) {
|
|
60
62
|
_this.setState({
|
|
61
63
|
value: value
|
|
62
64
|
});
|
|
63
65
|
});
|
|
64
66
|
return _this;
|
|
65
67
|
}
|
|
66
|
-
|
|
67
|
-
return _createClass(Stepper, [{
|
|
68
|
+
_createClass(Stepper, [{
|
|
68
69
|
key: "render",
|
|
69
70
|
value: function render() {
|
|
70
71
|
var _this$props = this.props,
|
|
@@ -91,6 +92,7 @@ var Stepper = /*#__PURE__*/function (_React$Component) {
|
|
|
91
92
|
}));
|
|
92
93
|
}
|
|
93
94
|
}]);
|
|
95
|
+
return Stepper;
|
|
94
96
|
}(_react["default"].Component);
|
|
95
97
|
var _default = exports["default"] = (0, _styles.withStyles)(styles, {
|
|
96
98
|
name: 'Stepper'
|
|
@@ -22,13 +22,13 @@ function _typeof(o) { "@babel/helpers - typeof"; return _typeof = "function" ==
|
|
|
22
22
|
function _classCallCheck(a, n) { if (!(a instanceof n)) throw new TypeError("Cannot call a class as a function"); }
|
|
23
23
|
function _defineProperties(e, r) { for (var t = 0; t < r.length; t++) { var o = r[t]; o.enumerable = o.enumerable || !1, o.configurable = !0, "value" in o && (o.writable = !0), Object.defineProperty(e, _toPropertyKey(o.key), o); } }
|
|
24
24
|
function _createClass(e, r, t) { return r && _defineProperties(e.prototype, r), t && _defineProperties(e, t), Object.defineProperty(e, "prototype", { writable: !1 }), e; }
|
|
25
|
-
function
|
|
25
|
+
function _inherits(t, e) { if ("function" != typeof e && null !== e) throw new TypeError("Super expression must either be null or a function"); t.prototype = Object.create(e && e.prototype, { constructor: { value: t, writable: !0, configurable: !0 } }), Object.defineProperty(t, "prototype", { writable: !1 }), e && _setPrototypeOf(t, e); }
|
|
26
|
+
function _setPrototypeOf(t, e) { return _setPrototypeOf = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function (t, e) { return t.__proto__ = e, t; }, _setPrototypeOf(t, e); }
|
|
27
|
+
function _createSuper(t) { var r = _isNativeReflectConstruct(); return function () { var e, o = _getPrototypeOf(t); if (r) { var s = _getPrototypeOf(this).constructor; e = Reflect.construct(o, arguments, s); } else e = o.apply(this, arguments); return _possibleConstructorReturn(this, e); }; }
|
|
26
28
|
function _possibleConstructorReturn(t, e) { if (e && ("object" == _typeof(e) || "function" == typeof e)) return e; if (void 0 !== e) throw new TypeError("Derived constructors may only return object or undefined"); return _assertThisInitialized(t); }
|
|
27
29
|
function _assertThisInitialized(e) { if (void 0 === e) throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); return e; }
|
|
28
30
|
function _isNativeReflectConstruct() { try { var t = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); } catch (t) {} return (_isNativeReflectConstruct = function _isNativeReflectConstruct() { return !!t; })(); }
|
|
29
31
|
function _getPrototypeOf(t) { return _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf.bind() : function (t) { return t.__proto__ || Object.getPrototypeOf(t); }, _getPrototypeOf(t); }
|
|
30
|
-
function _inherits(t, e) { if ("function" != typeof e && null !== e) throw new TypeError("Super expression must either be null or a function"); t.prototype = Object.create(e && e.prototype, { constructor: { value: t, writable: !0, configurable: !0 } }), Object.defineProperty(t, "prototype", { writable: !1 }), e && _setPrototypeOf(t, e); }
|
|
31
|
-
function _setPrototypeOf(t, e) { return _setPrototypeOf = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function (t, e) { return t.__proto__ = e, t; }, _setPrototypeOf(t, e); }
|
|
32
32
|
function _defineProperty(e, r, t) { return (r = _toPropertyKey(r)) in e ? Object.defineProperty(e, r, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : e[r] = t, e; }
|
|
33
33
|
function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == _typeof(i) ? i : i + ""; }
|
|
34
34
|
function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || "default"); if ("object" != _typeof(i)) return i; throw new TypeError("@@toPrimitive must return a primitive value."); } return ("string" === r ? String : Number)(t); }
|
|
@@ -78,30 +78,31 @@ var styles = function styles(theme) {
|
|
|
78
78
|
};
|
|
79
79
|
var ITEM_HEIGHT = 52;
|
|
80
80
|
var ToolbarList = /*#__PURE__*/function (_React$Component) {
|
|
81
|
+
_inherits(ToolbarList, _React$Component);
|
|
82
|
+
var _super = _createSuper(ToolbarList);
|
|
81
83
|
function ToolbarList() {
|
|
82
84
|
var _this;
|
|
83
85
|
_classCallCheck(this, ToolbarList);
|
|
84
86
|
for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) {
|
|
85
87
|
args[_key] = arguments[_key];
|
|
86
88
|
}
|
|
87
|
-
_this =
|
|
88
|
-
_defineProperty(_this, "state", {
|
|
89
|
+
_this = _super.call.apply(_super, [this].concat(args));
|
|
90
|
+
_defineProperty(_assertThisInitialized(_this), "state", {
|
|
89
91
|
anchorEl: null
|
|
90
92
|
});
|
|
91
|
-
_defineProperty(_this, "handleClick", function (event) {
|
|
93
|
+
_defineProperty(_assertThisInitialized(_this), "handleClick", function (event) {
|
|
92
94
|
_this.setState({
|
|
93
95
|
anchorEl: event.currentTarget
|
|
94
96
|
});
|
|
95
97
|
});
|
|
96
|
-
_defineProperty(_this, "handleClose", function () {
|
|
98
|
+
_defineProperty(_assertThisInitialized(_this), "handleClose", function () {
|
|
97
99
|
_this.setState({
|
|
98
100
|
anchorEl: null
|
|
99
101
|
});
|
|
100
102
|
});
|
|
101
103
|
return _this;
|
|
102
104
|
}
|
|
103
|
-
|
|
104
|
-
return _createClass(ToolbarList, [{
|
|
105
|
+
_createClass(ToolbarList, [{
|
|
105
106
|
key: "render",
|
|
106
107
|
value: function render() {
|
|
107
108
|
var _this2 = this;
|
|
@@ -179,6 +180,7 @@ var ToolbarList = /*#__PURE__*/function (_React$Component) {
|
|
|
179
180
|
})))));
|
|
180
181
|
}
|
|
181
182
|
}]);
|
|
183
|
+
return ToolbarList;
|
|
182
184
|
}(_react["default"].Component);
|
|
183
185
|
var _default = exports["default"] = (0, _styles.withStyles)(styles, {
|
|
184
186
|
name: 'ToolbarList'
|
|
@@ -19,17 +19,18 @@ function _typeof(o) { "@babel/helpers - typeof"; return _typeof = "function" ==
|
|
|
19
19
|
function _classCallCheck(a, n) { if (!(a instanceof n)) throw new TypeError("Cannot call a class as a function"); }
|
|
20
20
|
function _defineProperties(e, r) { for (var t = 0; t < r.length; t++) { var o = r[t]; o.enumerable = o.enumerable || !1, o.configurable = !0, "value" in o && (o.writable = !0), Object.defineProperty(e, _toPropertyKey(o.key), o); } }
|
|
21
21
|
function _createClass(e, r, t) { return r && _defineProperties(e.prototype, r), t && _defineProperties(e, t), Object.defineProperty(e, "prototype", { writable: !1 }), e; }
|
|
22
|
-
function
|
|
22
|
+
function _inherits(t, e) { if ("function" != typeof e && null !== e) throw new TypeError("Super expression must either be null or a function"); t.prototype = Object.create(e && e.prototype, { constructor: { value: t, writable: !0, configurable: !0 } }), Object.defineProperty(t, "prototype", { writable: !1 }), e && _setPrototypeOf(t, e); }
|
|
23
|
+
function _setPrototypeOf(t, e) { return _setPrototypeOf = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function (t, e) { return t.__proto__ = e, t; }, _setPrototypeOf(t, e); }
|
|
24
|
+
function _createSuper(t) { var r = _isNativeReflectConstruct(); return function () { var e, o = _getPrototypeOf(t); if (r) { var s = _getPrototypeOf(this).constructor; e = Reflect.construct(o, arguments, s); } else e = o.apply(this, arguments); return _possibleConstructorReturn(this, e); }; }
|
|
23
25
|
function _possibleConstructorReturn(t, e) { if (e && ("object" == _typeof(e) || "function" == typeof e)) return e; if (void 0 !== e) throw new TypeError("Derived constructors may only return object or undefined"); return _assertThisInitialized(t); }
|
|
24
26
|
function _assertThisInitialized(e) { if (void 0 === e) throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); return e; }
|
|
25
27
|
function _isNativeReflectConstruct() { try { var t = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); } catch (t) {} return (_isNativeReflectConstruct = function _isNativeReflectConstruct() { return !!t; })(); }
|
|
26
28
|
function _getPrototypeOf(t) { return _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf.bind() : function (t) { return t.__proto__ || Object.getPrototypeOf(t); }, _getPrototypeOf(t); }
|
|
27
|
-
function _inherits(t, e) { if ("function" != typeof e && null !== e) throw new TypeError("Super expression must either be null or a function"); t.prototype = Object.create(e && e.prototype, { constructor: { value: t, writable: !0, configurable: !0 } }), Object.defineProperty(t, "prototype", { writable: !1 }), e && _setPrototypeOf(t, e); }
|
|
28
|
-
function _setPrototypeOf(t, e) { return _setPrototypeOf = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function (t, e) { return t.__proto__ = e, t; }, _setPrototypeOf(t, e); }
|
|
29
29
|
function _defineProperty(e, r, t) { return (r = _toPropertyKey(r)) in e ? Object.defineProperty(e, r, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : e[r] = t, e; }
|
|
30
30
|
function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == _typeof(i) ? i : i + ""; }
|
|
31
31
|
function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || "default"); if ("object" != _typeof(i)) return i; throw new TypeError("@@toPrimitive must return a primitive value."); } return ("string" === r ? String : Number)(t); }
|
|
32
32
|
var styles = function styles(theme) {
|
|
33
|
+
var _root;
|
|
33
34
|
return {
|
|
34
35
|
formControl: _defineProperty({
|
|
35
36
|
marginTop: theme.spacing(1),
|
|
@@ -43,15 +44,15 @@ var styles = function styles(theme) {
|
|
|
43
44
|
maxWidth: 144
|
|
44
45
|
}
|
|
45
46
|
}),
|
|
46
|
-
root:
|
|
47
|
+
root: (_root = {
|
|
47
48
|
display: 'flex',
|
|
48
49
|
maxWidth: 'calc(100% - 40px)'
|
|
49
|
-
}, theme.breakpoints.up('sm'), {
|
|
50
|
+
}, _defineProperty(_root, theme.breakpoints.up('sm'), {
|
|
50
51
|
maxWidth: 'calc(100% - 160px)' // subtract the full menu width
|
|
51
|
-
}), theme.breakpoints.between('xs', 'sm'), {
|
|
52
|
+
}), _defineProperty(_root, theme.breakpoints.between('xs', 'sm'), {
|
|
52
53
|
display: 'flex',
|
|
53
54
|
alignItems: 'center'
|
|
54
|
-
}),
|
|
55
|
+
}), _root),
|
|
55
56
|
typographyBody: _defineProperty({
|
|
56
57
|
fontWeight: 'bold',
|
|
57
58
|
fontSize: 15,
|
|
@@ -152,12 +153,13 @@ var MenuProps = {
|
|
|
152
153
|
}
|
|
153
154
|
};
|
|
154
155
|
var VariantChooser = /*#__PURE__*/function (_React$Component) {
|
|
156
|
+
_inherits(VariantChooser, _React$Component);
|
|
157
|
+
var _super = _createSuper(VariantChooser);
|
|
155
158
|
function VariantChooser() {
|
|
156
159
|
_classCallCheck(this, VariantChooser);
|
|
157
|
-
return
|
|
160
|
+
return _super.apply(this, arguments);
|
|
158
161
|
}
|
|
159
|
-
|
|
160
|
-
return _createClass(VariantChooser, [{
|
|
162
|
+
_createClass(VariantChooser, [{
|
|
161
163
|
key: "render",
|
|
162
164
|
value: function render() {
|
|
163
165
|
var _this$props = this.props,
|
|
@@ -218,6 +220,7 @@ var VariantChooser = /*#__PURE__*/function (_React$Component) {
|
|
|
218
220
|
}, title), renderExtraInfo && renderExtraInfo(this.props)));
|
|
219
221
|
}
|
|
220
222
|
}]);
|
|
223
|
+
return VariantChooser;
|
|
221
224
|
}(_react["default"].Component);
|
|
222
225
|
var _default = exports["default"] = (0, _styles.withStyles)(styles, {
|
|
223
226
|
name: 'VariantChooser'
|