@configuratorware/configurator-frontendgui 1.56.2 → 1.57.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/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
|
@@ -15,46 +15,47 @@ function _objectWithoutPropertiesLoose(r, e) { if (null == r) return {}; var t =
|
|
|
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); }
|
|
28
28
|
var Input = exports["default"] = /*#__PURE__*/function (_React$Component) {
|
|
29
|
+
_inherits(Input, _React$Component);
|
|
30
|
+
var _super = _createSuper(Input);
|
|
29
31
|
function Input() {
|
|
30
32
|
var _this;
|
|
31
33
|
_classCallCheck(this, Input);
|
|
32
34
|
for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) {
|
|
33
35
|
args[_key] = arguments[_key];
|
|
34
36
|
}
|
|
35
|
-
_this =
|
|
36
|
-
_defineProperty(_this, "state", {
|
|
37
|
+
_this = _super.call.apply(_super, [this].concat(args));
|
|
38
|
+
_defineProperty(_assertThisInitialized(_this), "state", {
|
|
37
39
|
value: '',
|
|
38
40
|
props: {}
|
|
39
41
|
});
|
|
40
|
-
_defineProperty(_this, "onChange", function (e) {
|
|
42
|
+
_defineProperty(_assertThisInitialized(_this), "onChange", function (e) {
|
|
41
43
|
var value = e.target.value;
|
|
42
44
|
_this.setState({
|
|
43
45
|
value: value
|
|
44
46
|
});
|
|
45
47
|
if (_this.props.onChange) {
|
|
46
|
-
_this.props.onChange(e, _this);
|
|
48
|
+
_this.props.onChange(e, _assertThisInitialized(_this));
|
|
47
49
|
}
|
|
48
50
|
});
|
|
49
|
-
_defineProperty(_this, "onKeyUp", function (e) {
|
|
51
|
+
_defineProperty(_assertThisInitialized(_this), "onKeyUp", function (e) {
|
|
50
52
|
if (13 === e.keyCode && _this.props.onEnterPressed) {
|
|
51
53
|
_this.props.onEnterPressed();
|
|
52
54
|
}
|
|
53
55
|
});
|
|
54
56
|
return _this;
|
|
55
57
|
}
|
|
56
|
-
|
|
57
|
-
return _createClass(Input, [{
|
|
58
|
+
_createClass(Input, [{
|
|
58
59
|
key: "value",
|
|
59
60
|
get: function get() {
|
|
60
61
|
return this.state.value;
|
|
@@ -100,4 +101,5 @@ var Input = exports["default"] = /*#__PURE__*/function (_React$Component) {
|
|
|
100
101
|
return null;
|
|
101
102
|
}
|
|
102
103
|
}]);
|
|
104
|
+
return Input;
|
|
103
105
|
}(_react["default"].Component);
|
package/Framework/CustomError.js
CHANGED
|
@@ -10,10 +10,10 @@ function _createClass(e, r, t) { return r && _defineProperties(e.prototype, r),
|
|
|
10
10
|
function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == _typeof(i) ? i : i + ""; }
|
|
11
11
|
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); }
|
|
12
12
|
function _classCallCheck(a, n) { if (!(a instanceof n)) throw new TypeError("Cannot call a class as a function"); }
|
|
13
|
-
function
|
|
13
|
+
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); }
|
|
14
|
+
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); }; }
|
|
14
15
|
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); }
|
|
15
16
|
function _assertThisInitialized(e) { if (void 0 === e) throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); return e; }
|
|
16
|
-
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); }
|
|
17
17
|
function _wrapNativeSuper(t) { var r = "function" == typeof Map ? new Map() : void 0; return _wrapNativeSuper = function _wrapNativeSuper(t) { if (null === t || !_isNativeFunction(t)) return t; if ("function" != typeof t) throw new TypeError("Super expression must either be null or a function"); if (void 0 !== r) { if (r.has(t)) return r.get(t); r.set(t, Wrapper); } function Wrapper() { return _construct(t, arguments, _getPrototypeOf(this).constructor); } return Wrapper.prototype = Object.create(t.prototype, { constructor: { value: Wrapper, enumerable: !1, writable: !0, configurable: !0 } }), _setPrototypeOf(Wrapper, t); }, _wrapNativeSuper(t); }
|
|
18
18
|
function _construct(t, e, r) { if (_isNativeReflectConstruct()) return Reflect.construct.apply(null, arguments); var o = [null]; o.push.apply(o, e); var p = new (t.bind.apply(t, o))(); return r && _setPrototypeOf(p, r.prototype), p; }
|
|
19
19
|
function _isNativeReflectConstruct() { try { var t = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); } catch (t) {} return (_isNativeReflectConstruct = function _isNativeReflectConstruct() { return !!t; })(); }
|
|
@@ -21,14 +21,15 @@ function _isNativeFunction(t) { try { return -1 !== Function.toString.call(t).in
|
|
|
21
21
|
function _setPrototypeOf(t, e) { return _setPrototypeOf = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function (t, e) { return t.__proto__ = e, t; }, _setPrototypeOf(t, e); }
|
|
22
22
|
function _getPrototypeOf(t) { return _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf.bind() : function (t) { return t.__proto__ || Object.getPrototypeOf(t); }, _getPrototypeOf(t); }
|
|
23
23
|
var CustomError = exports["default"] = /*#__PURE__*/function (_Error) {
|
|
24
|
+
_inherits(CustomError, _Error);
|
|
25
|
+
var _super = _createSuper(CustomError);
|
|
24
26
|
function CustomError(type, message) {
|
|
25
27
|
var _this;
|
|
26
28
|
_classCallCheck(this, CustomError);
|
|
27
|
-
_this =
|
|
29
|
+
_this = _super.call(this);
|
|
28
30
|
_this.type = type;
|
|
29
31
|
_this.message = "[".concat(type, "] ").concat(message);
|
|
30
32
|
return _this;
|
|
31
33
|
}
|
|
32
|
-
_inherits(CustomError, _Error);
|
|
33
34
|
return _createClass(CustomError);
|
|
34
|
-
}(/*#__PURE__*/_wrapNativeSuper(Error));
|
|
35
|
+
}( /*#__PURE__*/_wrapNativeSuper(Error));
|
|
@@ -37,7 +37,7 @@ var TransitionDetect = exports["default"] = /*#__PURE__*/function () {
|
|
|
37
37
|
this.animating = false;
|
|
38
38
|
this.timeout = timeout;
|
|
39
39
|
}
|
|
40
|
-
|
|
40
|
+
_createClass(TransitionDetect, [{
|
|
41
41
|
key: "dismiss",
|
|
42
42
|
value: function dismiss() {
|
|
43
43
|
this.animating = false;
|
|
@@ -93,4 +93,5 @@ var TransitionDetect = exports["default"] = /*#__PURE__*/function () {
|
|
|
93
93
|
return this;
|
|
94
94
|
}
|
|
95
95
|
}]);
|
|
96
|
+
return TransitionDetect;
|
|
96
97
|
}();
|
|
@@ -16,7 +16,7 @@ var AbstractAdminareaCommunicationService = exports["default"] = /*#__PURE__*/fu
|
|
|
16
16
|
function AbstractAdminareaCommunicationService() {
|
|
17
17
|
_classCallCheck(this, AbstractAdminareaCommunicationService);
|
|
18
18
|
}
|
|
19
|
-
|
|
19
|
+
_createClass(AbstractAdminareaCommunicationService, [{
|
|
20
20
|
key: "saveConfiguration",
|
|
21
21
|
value:
|
|
22
22
|
/**
|
|
@@ -36,5 +36,6 @@ var AbstractAdminareaCommunicationService = exports["default"] = /*#__PURE__*/fu
|
|
|
36
36
|
key: "sendPostMessage",
|
|
37
37
|
value: function sendPostMessage(method, payload) {}
|
|
38
38
|
}]);
|
|
39
|
+
return AbstractAdminareaCommunicationService;
|
|
39
40
|
}();
|
|
40
41
|
_defineProperty(AbstractAdminareaCommunicationService, "serviceName", 'AdminareaCommunicationService');
|
|
@@ -16,7 +16,7 @@ var AbstractAsyncService = exports["default"] = /*#__PURE__*/function () {
|
|
|
16
16
|
function AbstractAsyncService() {
|
|
17
17
|
_classCallCheck(this, AbstractAsyncService);
|
|
18
18
|
}
|
|
19
|
-
|
|
19
|
+
_createClass(AbstractAsyncService, [{
|
|
20
20
|
key: "create",
|
|
21
21
|
value: function create(name) {}
|
|
22
22
|
}, {
|
|
@@ -32,5 +32,6 @@ var AbstractAsyncService = exports["default"] = /*#__PURE__*/function () {
|
|
|
32
32
|
key: "reject",
|
|
33
33
|
value: function reject(name, error) {}
|
|
34
34
|
}]);
|
|
35
|
+
return AbstractAsyncService;
|
|
35
36
|
}();
|
|
36
37
|
_defineProperty(AbstractAsyncService, "serviceName", 'AsyncService');
|
|
@@ -16,7 +16,7 @@ var AbstractConfiguratorService = exports["default"] = /*#__PURE__*/function ()
|
|
|
16
16
|
function AbstractConfiguratorService() {
|
|
17
17
|
_classCallCheck(this, AbstractConfiguratorService);
|
|
18
18
|
}
|
|
19
|
-
|
|
19
|
+
_createClass(AbstractConfiguratorService, [{
|
|
20
20
|
key: "prepareConfigurationForSave",
|
|
21
21
|
value: function prepareConfigurationForSave() {
|
|
22
22
|
var overwrite = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : false;
|
|
@@ -36,5 +36,6 @@ var AbstractConfiguratorService = exports["default"] = /*#__PURE__*/function ()
|
|
|
36
36
|
key: "validateConfiguration",
|
|
37
37
|
value: function validateConfiguration() {}
|
|
38
38
|
}]);
|
|
39
|
+
return AbstractConfiguratorService;
|
|
39
40
|
}();
|
|
40
41
|
_defineProperty(AbstractConfiguratorService, "serviceName", 'ConfiguratorService');
|
|
@@ -16,7 +16,7 @@ var AbstractInteractionService = exports["default"] = /*#__PURE__*/function () {
|
|
|
16
16
|
function AbstractInteractionService() {
|
|
17
17
|
_classCallCheck(this, AbstractInteractionService);
|
|
18
18
|
}
|
|
19
|
-
|
|
19
|
+
_createClass(AbstractInteractionService, [{
|
|
20
20
|
key: "saveConfiguration",
|
|
21
21
|
value: function saveConfiguration() {}
|
|
22
22
|
}, {
|
|
@@ -38,5 +38,6 @@ var AbstractInteractionService = exports["default"] = /*#__PURE__*/function () {
|
|
|
38
38
|
key: "setChannel",
|
|
39
39
|
value: function setChannel(channel) {}
|
|
40
40
|
}]);
|
|
41
|
+
return AbstractInteractionService;
|
|
41
42
|
}();
|
|
42
43
|
_defineProperty(AbstractInteractionService, "serviceName", 'InteractionService');
|
|
@@ -16,7 +16,7 @@ var AbstractStoreService = exports["default"] = /*#__PURE__*/function () {
|
|
|
16
16
|
function AbstractStoreService() {
|
|
17
17
|
_classCallCheck(this, AbstractStoreService);
|
|
18
18
|
}
|
|
19
|
-
|
|
19
|
+
_createClass(AbstractStoreService, [{
|
|
20
20
|
key: "setStore",
|
|
21
21
|
value: function setStore(store) {}
|
|
22
22
|
}, {
|
|
@@ -31,5 +31,6 @@ var AbstractStoreService = exports["default"] = /*#__PURE__*/function () {
|
|
|
31
31
|
key: "observeStore",
|
|
32
32
|
value: function observeStore(select, onChange, isEqualFunction) {}
|
|
33
33
|
}]);
|
|
34
|
+
return AbstractStoreService;
|
|
34
35
|
}();
|
|
35
36
|
_defineProperty(AbstractStoreService, "serviceName", 'StoreService');
|
|
@@ -16,7 +16,7 @@ var AbstractUIService = exports["default"] = /*#__PURE__*/function () {
|
|
|
16
16
|
function AbstractUIService() {
|
|
17
17
|
_classCallCheck(this, AbstractUIService);
|
|
18
18
|
}
|
|
19
|
-
|
|
19
|
+
_createClass(AbstractUIService, [{
|
|
20
20
|
key: "show",
|
|
21
21
|
value: function show(name) {}
|
|
22
22
|
}, {
|
|
@@ -41,5 +41,6 @@ var AbstractUIService = exports["default"] = /*#__PURE__*/function () {
|
|
|
41
41
|
key: "dismissAlert",
|
|
42
42
|
value: function dismissAlert() {}
|
|
43
43
|
}]);
|
|
44
|
+
return AbstractUIService;
|
|
44
45
|
}();
|
|
45
46
|
_defineProperty(AbstractUIService, "serviceName", 'UIService');
|
|
@@ -16,7 +16,7 @@ var AbstractVisualizationService = exports["default"] = /*#__PURE__*/function ()
|
|
|
16
16
|
function AbstractVisualizationService() {
|
|
17
17
|
_classCallCheck(this, AbstractVisualizationService);
|
|
18
18
|
}
|
|
19
|
-
|
|
19
|
+
_createClass(AbstractVisualizationService, [{
|
|
20
20
|
key: "setComponent",
|
|
21
21
|
value: function setComponent(component) {}
|
|
22
22
|
}, {
|
|
@@ -35,5 +35,6 @@ var AbstractVisualizationService = exports["default"] = /*#__PURE__*/function ()
|
|
|
35
35
|
key: "getScreenshots",
|
|
36
36
|
value: function getScreenshots() {}
|
|
37
37
|
}]);
|
|
38
|
+
return AbstractVisualizationService;
|
|
38
39
|
}();
|
|
39
40
|
_defineProperty(AbstractVisualizationService, "serviceName", 'VisualizationService');
|
|
@@ -14,20 +14,21 @@ function _defineProperties(e, r) { for (var t = 0; t < r.length; t++) { var o =
|
|
|
14
14
|
function _createClass(e, r, t) { return r && _defineProperties(e.prototype, r), t && _defineProperties(e, t), Object.defineProperty(e, "prototype", { writable: !1 }), e; }
|
|
15
15
|
function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == _typeof(i) ? i : i + ""; }
|
|
16
16
|
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); }
|
|
17
|
-
function
|
|
17
|
+
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); }
|
|
18
|
+
function _setPrototypeOf(t, e) { return _setPrototypeOf = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function (t, e) { return t.__proto__ = e, t; }, _setPrototypeOf(t, e); }
|
|
19
|
+
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); }; }
|
|
18
20
|
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); }
|
|
19
21
|
function _assertThisInitialized(e) { if (void 0 === e) throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); return e; }
|
|
20
22
|
function _isNativeReflectConstruct() { try { var t = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); } catch (t) {} return (_isNativeReflectConstruct = function _isNativeReflectConstruct() { return !!t; })(); }
|
|
21
23
|
function _getPrototypeOf(t) { return _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf.bind() : function (t) { return t.__proto__ || Object.getPrototypeOf(t); }, _getPrototypeOf(t); }
|
|
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
24
|
var AsyncService = exports["default"] = /*#__PURE__*/function (_AbstractAsyncService) {
|
|
25
|
+
_inherits(AsyncService, _AbstractAsyncService);
|
|
26
|
+
var _super = _createSuper(AsyncService);
|
|
25
27
|
function AsyncService() {
|
|
26
28
|
_classCallCheck(this, AsyncService);
|
|
27
|
-
return
|
|
29
|
+
return _super.apply(this, arguments);
|
|
28
30
|
}
|
|
29
|
-
|
|
30
|
-
return _createClass(AsyncService, [{
|
|
31
|
+
_createClass(AsyncService, [{
|
|
31
32
|
key: "create",
|
|
32
33
|
value: function create(name) {
|
|
33
34
|
return new _Deferred["default"](name).promise;
|
|
@@ -65,4 +66,5 @@ var AsyncService = exports["default"] = /*#__PURE__*/function (_AbstractAsyncSer
|
|
|
65
66
|
}
|
|
66
67
|
}
|
|
67
68
|
}]);
|
|
69
|
+
return AsyncService;
|
|
68
70
|
}(_AbstractAsyncService2["default"]);
|
|
@@ -9,20 +9,27 @@ var _redux = require("redux");
|
|
|
9
9
|
var _AbstractStoreService2 = _interopRequireDefault(require("./AbstractStoreService"));
|
|
10
10
|
var _Deferred = _interopRequireDefault(require("../../Utils/Async/Deferred"));
|
|
11
11
|
function _interopRequireDefault(e) { return e && e.__esModule ? e : { "default": e }; }
|
|
12
|
+
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 }; })(); }
|
|
13
|
+
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"); }
|
|
14
|
+
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; }; }
|
|
15
|
+
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(); }); }
|
|
16
|
+
function _regeneratorAsyncGen(r, e, t, o, n) { return new _regeneratorAsyncIterator(_regenerator().w(r, e, t, o), n || Promise); }
|
|
17
|
+
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); }
|
|
12
18
|
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 }; })(); }
|
|
13
19
|
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); }
|
|
20
|
+
function _OverloadYield(e, d) { this.v = e, this.k = d; }
|
|
14
21
|
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); }
|
|
15
22
|
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); }); }; }
|
|
16
23
|
function _classCallCheck(a, n) { if (!(a instanceof n)) throw new TypeError("Cannot call a class as a function"); }
|
|
17
24
|
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); } }
|
|
18
25
|
function _createClass(e, r, t) { return r && _defineProperties(e.prototype, r), t && _defineProperties(e, t), Object.defineProperty(e, "prototype", { writable: !1 }), e; }
|
|
19
|
-
function
|
|
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
|
+
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); }; }
|
|
20
29
|
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); }
|
|
21
30
|
function _assertThisInitialized(e) { if (void 0 === e) throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); return e; }
|
|
22
31
|
function _isNativeReflectConstruct() { try { var t = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); } catch (t) {} return (_isNativeReflectConstruct = function _isNativeReflectConstruct() { return !!t; })(); }
|
|
23
32
|
function _getPrototypeOf(t) { return _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf.bind() : function (t) { return t.__proto__ || Object.getPrototypeOf(t); }, _getPrototypeOf(t); }
|
|
24
|
-
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); }
|
|
25
|
-
function _setPrototypeOf(t, e) { return _setPrototypeOf = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function (t, e) { return t.__proto__ = e, t; }, _setPrototypeOf(t, e); }
|
|
26
33
|
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; }
|
|
27
34
|
function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == _typeof(i) ? i : i + ""; }
|
|
28
35
|
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); }
|
|
@@ -111,20 +118,21 @@ function StoreObserver() {
|
|
|
111
118
|
};
|
|
112
119
|
}
|
|
113
120
|
var StoreService = exports["default"] = /*#__PURE__*/function (_AbstractStoreService) {
|
|
121
|
+
_inherits(StoreService, _AbstractStoreService);
|
|
122
|
+
var _super = _createSuper(StoreService);
|
|
114
123
|
function StoreService() {
|
|
115
124
|
var _this;
|
|
116
125
|
_classCallCheck(this, StoreService);
|
|
117
126
|
for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) {
|
|
118
127
|
args[_key] = arguments[_key];
|
|
119
128
|
}
|
|
120
|
-
_this =
|
|
121
|
-
_defineProperty(_this, "store", null);
|
|
122
|
-
_defineProperty(_this, "storeObserver", new StoreObserver());
|
|
123
|
-
_defineProperty(_this, "storeDeferred", new _Deferred["default"]());
|
|
129
|
+
_this = _super.call.apply(_super, [this].concat(args));
|
|
130
|
+
_defineProperty(_assertThisInitialized(_this), "store", null);
|
|
131
|
+
_defineProperty(_assertThisInitialized(_this), "storeObserver", new StoreObserver());
|
|
132
|
+
_defineProperty(_assertThisInitialized(_this), "storeDeferred", new _Deferred["default"]());
|
|
124
133
|
return _this;
|
|
125
134
|
}
|
|
126
|
-
|
|
127
|
-
return _createClass(StoreService, [{
|
|
135
|
+
_createClass(StoreService, [{
|
|
128
136
|
key: "setStore",
|
|
129
137
|
value: function setStore(store) {
|
|
130
138
|
this.store = store;
|
|
@@ -156,15 +164,15 @@ var StoreService = exports["default"] = /*#__PURE__*/function (_AbstractStoreSer
|
|
|
156
164
|
}, {
|
|
157
165
|
key: "addMiddleware",
|
|
158
166
|
value: function () {
|
|
159
|
-
var _addMiddleware = _asyncToGenerator(/*#__PURE__*/
|
|
167
|
+
var _addMiddleware = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee(middleware) {
|
|
160
168
|
var store, middlewareAPI;
|
|
161
|
-
return
|
|
162
|
-
while (1) switch (_context.
|
|
169
|
+
return _regeneratorRuntime().wrap(function _callee$(_context) {
|
|
170
|
+
while (1) switch (_context.prev = _context.next) {
|
|
163
171
|
case 0:
|
|
164
|
-
_context.
|
|
172
|
+
_context.next = 2;
|
|
165
173
|
return this.storeDeferred.promise;
|
|
166
|
-
case
|
|
167
|
-
store = _context.
|
|
174
|
+
case 2:
|
|
175
|
+
store = _context.sent;
|
|
168
176
|
middlewareAPI = {
|
|
169
177
|
getState: store.getState,
|
|
170
178
|
dispatch: function dispatch(action) {
|
|
@@ -172,8 +180,9 @@ var StoreService = exports["default"] = /*#__PURE__*/function (_AbstractStoreSer
|
|
|
172
180
|
}
|
|
173
181
|
};
|
|
174
182
|
store.dispatch = (0, _redux.compose)(middleware(middlewareAPI))(store.dispatch);
|
|
175
|
-
case
|
|
176
|
-
|
|
183
|
+
case 5:
|
|
184
|
+
case "end":
|
|
185
|
+
return _context.stop();
|
|
177
186
|
}
|
|
178
187
|
}, _callee, this);
|
|
179
188
|
}));
|
|
@@ -183,4 +192,5 @@ var StoreService = exports["default"] = /*#__PURE__*/function (_AbstractStoreSer
|
|
|
183
192
|
return addMiddleware;
|
|
184
193
|
}()
|
|
185
194
|
}]);
|
|
195
|
+
return StoreService;
|
|
186
196
|
}(_AbstractStoreService2["default"]);
|
|
@@ -10,13 +10,13 @@ function _createClass(e, r, t) { return r && _defineProperties(e.prototype, r),
|
|
|
10
10
|
function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == _typeof(i) ? i : i + ""; }
|
|
11
11
|
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); }
|
|
12
12
|
function _classCallCheck(a, n) { if (!(a instanceof n)) throw new TypeError("Cannot call a class as a function"); }
|
|
13
|
-
function
|
|
13
|
+
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); }
|
|
14
|
+
function _setPrototypeOf(t, e) { return _setPrototypeOf = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function (t, e) { return t.__proto__ = e, t; }, _setPrototypeOf(t, e); }
|
|
15
|
+
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); }; }
|
|
14
16
|
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); }
|
|
15
17
|
function _assertThisInitialized(e) { if (void 0 === e) throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); return e; }
|
|
16
18
|
function _isNativeReflectConstruct() { try { var t = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); } catch (t) {} return (_isNativeReflectConstruct = function _isNativeReflectConstruct() { return !!t; })(); }
|
|
17
19
|
function _getPrototypeOf(t) { return _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf.bind() : function (t) { return t.__proto__ || Object.getPrototypeOf(t); }, _getPrototypeOf(t); }
|
|
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
20
|
/**
|
|
21
21
|
* Binds the decorated function to the object instance.
|
|
22
22
|
* Case 1: The target is an ES6 class (has a constructor function)
|
|
@@ -117,13 +117,15 @@ var bindInConstructor = exports.bindInConstructor = function bindInConstructor(t
|
|
|
117
117
|
return target;
|
|
118
118
|
}
|
|
119
119
|
return /*#__PURE__*/function (_target) {
|
|
120
|
+
_inherits(_class, _target);
|
|
121
|
+
var _super = _createSuper(_class);
|
|
120
122
|
function _class() {
|
|
121
123
|
var _this;
|
|
122
124
|
_classCallCheck(this, _class);
|
|
123
125
|
for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) {
|
|
124
126
|
args[_key] = arguments[_key];
|
|
125
127
|
}
|
|
126
|
-
_this =
|
|
128
|
+
_this = _super.call.apply(_super, [this].concat(args));
|
|
127
129
|
var key = _getKeyForObject(target);
|
|
128
130
|
if (_toBind[key]) {
|
|
129
131
|
for (var i in _toBind[key]) {
|
|
@@ -131,12 +133,11 @@ var bindInConstructor = exports.bindInConstructor = function bindInConstructor(t
|
|
|
131
133
|
if (!_this[fn]) {
|
|
132
134
|
throw new Error("This instance has no function to bind: ".concat(fn));
|
|
133
135
|
}
|
|
134
|
-
_this[fn] = _this[fn].bind(_this);
|
|
136
|
+
_this[fn] = _this[fn].bind(_assertThisInitialized(_this));
|
|
135
137
|
}
|
|
136
138
|
}
|
|
137
139
|
return _this;
|
|
138
140
|
}
|
|
139
|
-
_inherits(_class, _target);
|
|
140
141
|
return _createClass(_class);
|
|
141
142
|
}(target);
|
|
142
143
|
};
|
package/Framework/i18n.js
CHANGED
|
@@ -28,13 +28,13 @@ function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t =
|
|
|
28
28
|
function _classCallCheck(a, n) { if (!(a instanceof n)) throw new TypeError("Cannot call a class as a function"); }
|
|
29
29
|
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
30
|
function _createClass(e, r, t) { return r && _defineProperties(e.prototype, r), t && _defineProperties(e, t), Object.defineProperty(e, "prototype", { writable: !1 }), e; }
|
|
31
|
-
function
|
|
31
|
+
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); }
|
|
32
|
+
function _setPrototypeOf(t, e) { return _setPrototypeOf = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function (t, e) { return t.__proto__ = e, t; }, _setPrototypeOf(t, e); }
|
|
33
|
+
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
34
|
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
35
|
function _assertThisInitialized(e) { if (void 0 === e) throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); return e; }
|
|
34
36
|
function _isNativeReflectConstruct() { try { var t = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); } catch (t) {} return (_isNativeReflectConstruct = function _isNativeReflectConstruct() { return !!t; })(); }
|
|
35
37
|
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
38
|
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
39
|
function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == _typeof(i) ? i : i + ""; }
|
|
40
40
|
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); }
|
|
@@ -144,7 +144,7 @@ var T = exports.T = function T(value) {
|
|
|
144
144
|
if ((0, _isObject["default"])(otherProps)) {
|
|
145
145
|
for (var p in otherProps) {
|
|
146
146
|
// if the replacement is a jsx element, just render it in place
|
|
147
|
-
if (/*#__PURE__*/_react["default"].isValidElement(otherProps[p])) {
|
|
147
|
+
if ( /*#__PURE__*/_react["default"].isValidElement(otherProps[p])) {
|
|
148
148
|
otherProps[p] = _server["default"].renderToStaticMarkup(otherProps[p]);
|
|
149
149
|
}
|
|
150
150
|
}
|
|
@@ -235,19 +235,20 @@ var _default = exports["default"] = {
|
|
|
235
235
|
};
|
|
236
236
|
function translateComponent(ComponentToTranslate, mapStateToProps, mapDispatchToProps) {
|
|
237
237
|
var TranslatedComponent = /*#__PURE__*/function (_Component) {
|
|
238
|
+
_inherits(TranslatedComponent, _Component);
|
|
239
|
+
var _super = _createSuper(TranslatedComponent);
|
|
238
240
|
function TranslatedComponent(props) {
|
|
239
241
|
var _this;
|
|
240
242
|
_classCallCheck(this, TranslatedComponent);
|
|
241
|
-
_this =
|
|
243
|
+
_this = _super.call(this, props);
|
|
242
244
|
// decorate the component, so it can use directly the t() function
|
|
243
|
-
_defineProperty(_this, "setRef", function (ref) {
|
|
245
|
+
_defineProperty(_assertThisInitialized(_this), "setRef", function (ref) {
|
|
244
246
|
_this.wrappedInstance = ref;
|
|
245
247
|
});
|
|
246
248
|
ComponentToTranslate.prototype.t = _this.t;
|
|
247
249
|
return _this;
|
|
248
250
|
}
|
|
249
|
-
|
|
250
|
-
return _createClass(TranslatedComponent, [{
|
|
251
|
+
_createClass(TranslatedComponent, [{
|
|
251
252
|
key: "t",
|
|
252
253
|
value: function t() {
|
|
253
254
|
if (store) {
|
|
@@ -272,6 +273,7 @@ function translateComponent(ComponentToTranslate, mapStateToProps, mapDispatchTo
|
|
|
272
273
|
})));
|
|
273
274
|
}
|
|
274
275
|
}]);
|
|
276
|
+
return TranslatedComponent;
|
|
275
277
|
}(_react.Component); // mapping state.locale to the locale prop, so the component will update when locale changes
|
|
276
278
|
function mapMergedProps(state) {
|
|
277
279
|
return _objectSpread(_objectSpread({}, mapStateToProps instanceof Function && mapStateToProps(state)), {}, {
|
|
@@ -10,22 +10,23 @@ function _typeof(o) { "@babel/helpers - typeof"; return _typeof = "function" ==
|
|
|
10
10
|
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); } }
|
|
11
11
|
function _createClass(e, r, t) { return r && _defineProperties(e.prototype, r), t && _defineProperties(e, t), Object.defineProperty(e, "prototype", { writable: !1 }), e; }
|
|
12
12
|
function _classCallCheck(a, n) { if (!(a instanceof n)) throw new TypeError("Cannot call a class as a function"); }
|
|
13
|
-
function
|
|
13
|
+
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); }
|
|
14
|
+
function _setPrototypeOf(t, e) { return _setPrototypeOf = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function (t, e) { return t.__proto__ = e, t; }, _setPrototypeOf(t, e); }
|
|
15
|
+
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); }; }
|
|
14
16
|
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); }
|
|
15
17
|
function _assertThisInitialized(e) { if (void 0 === e) throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); return e; }
|
|
16
18
|
function _isNativeReflectConstruct() { try { var t = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); } catch (t) {} return (_isNativeReflectConstruct = function _isNativeReflectConstruct() { return !!t; })(); }
|
|
17
19
|
function _getPrototypeOf(t) { return _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf.bind() : function (t) { return t.__proto__ || Object.getPrototypeOf(t); }, _getPrototypeOf(t); }
|
|
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
20
|
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; }
|
|
21
21
|
function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == _typeof(i) ? i : i + ""; }
|
|
22
22
|
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); }
|
|
23
23
|
var DeferredError = exports.DeferredError = /*#__PURE__*/function (_CustomError) {
|
|
24
|
+
_inherits(DeferredError, _CustomError);
|
|
25
|
+
var _super = _createSuper(DeferredError);
|
|
24
26
|
function DeferredError(message) {
|
|
25
27
|
_classCallCheck(this, DeferredError);
|
|
26
|
-
return
|
|
28
|
+
return _super.call(this, DeferredError.type, message);
|
|
27
29
|
}
|
|
28
|
-
_inherits(DeferredError, _CustomError);
|
|
29
30
|
return _createClass(DeferredError);
|
|
30
31
|
}(_CustomError2["default"]);
|
|
31
32
|
_defineProperty(DeferredError, "type", 'DeferredError');
|
|
@@ -18,13 +18,13 @@ function _objectWithoutPropertiesLoose(r, e) { if (null == r) return {}; 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); }
|
|
@@ -45,15 +45,17 @@ var ResizeDetectContext = /*#__PURE__*/_react["default"].createContext(initialSt
|
|
|
45
45
|
* -> define the dom element reference for the ResizeSensor container inside the render prop with containerRef
|
|
46
46
|
*/
|
|
47
47
|
var ResizeDetect = exports.ResizeDetect = /*#__PURE__*/function (_React$Component) {
|
|
48
|
+
_inherits(ResizeDetect, _React$Component);
|
|
49
|
+
var _super = _createSuper(ResizeDetect);
|
|
48
50
|
function ResizeDetect() {
|
|
49
51
|
var _this;
|
|
50
52
|
_classCallCheck(this, ResizeDetect);
|
|
51
53
|
for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) {
|
|
52
54
|
args[_key] = arguments[_key];
|
|
53
55
|
}
|
|
54
|
-
_this =
|
|
55
|
-
_defineProperty(_this, "state", initialState);
|
|
56
|
-
_defineProperty(_this, "updateState", function () {
|
|
56
|
+
_this = _super.call.apply(_super, [this].concat(args));
|
|
57
|
+
_defineProperty(_assertThisInitialized(_this), "state", initialState);
|
|
58
|
+
_defineProperty(_assertThisInitialized(_this), "updateState", function () {
|
|
57
59
|
var container = _this.getContainer();
|
|
58
60
|
var _container$getBoundin = container.getBoundingClientRect(),
|
|
59
61
|
width = _container$getBoundin.width,
|
|
@@ -68,11 +70,10 @@ var ResizeDetect = exports.ResizeDetect = /*#__PURE__*/function (_React$Componen
|
|
|
68
70
|
var onSizeChange = _this.props.onSizeChange;
|
|
69
71
|
onSizeChange && onSizeChange(size);
|
|
70
72
|
});
|
|
71
|
-
_defineProperty(_this, "containerRef", /*#__PURE__*/_react["default"].createRef());
|
|
73
|
+
_defineProperty(_assertThisInitialized(_this), "containerRef", /*#__PURE__*/_react["default"].createRef());
|
|
72
74
|
return _this;
|
|
73
75
|
}
|
|
74
|
-
|
|
75
|
-
return _createClass(ResizeDetect, [{
|
|
76
|
+
_createClass(ResizeDetect, [{
|
|
76
77
|
key: "componentDidMount",
|
|
77
78
|
value: function componentDidMount() {
|
|
78
79
|
var container = this.getContainer();
|
|
@@ -126,6 +127,7 @@ var ResizeDetect = exports.ResizeDetect = /*#__PURE__*/function (_React$Componen
|
|
|
126
127
|
});
|
|
127
128
|
}
|
|
128
129
|
}]);
|
|
130
|
+
return ResizeDetect;
|
|
129
131
|
}(_react["default"].Component);
|
|
130
132
|
/**
|
|
131
133
|
* HOC for the 2. usage mode (provides the Component as a render function directly, so it can get the props)
|