@configuratorware/configurator-admingui 1.56.2 → 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/Api.js +12 -8
- package/App/Config/app.js +3 -3
- package/App/Data.js +11 -9
- package/App/ErrorBoundary.js +9 -7
- package/App/Main.js +11 -9
- package/App/Reducers/Api/Actions.js +1 -0
- package/App/Reducers/Entity/Actions.js +4 -4
- package/App/Services/WindowCommunication.js +2 -1
- package/App/TestHelpers.js +13 -9
- package/App/i18n.js +3 -3
- package/App/index.js +8 -6
- package/App/initServices.js +4 -2
- package/Components/CallToActionField.js +30 -19
- package/Components/CopyPaste.js +10 -8
- package/Components/DefaultForm.js +8 -6
- package/Components/DefaultList.js +20 -17
- package/Components/DefaultScreen.js +9 -7
- package/Components/Form.js +15 -12
- package/Components/FormFragments/AttributeValueChip.js +17 -16
- package/Components/FormFragments/AutoComplete.js +18 -16
- package/Components/FormFragments/AutocompleteEntity.js +16 -14
- package/Components/FormFragments/Chip.js +15 -14
- package/Components/FormFragments/DynSourceInput.js +9 -7
- package/Components/FormFragments/File.js +4 -4
- package/Components/FormFragments/InlineAddButton.js +14 -12
- package/Components/FormFragments/InputArray.js +18 -16
- package/Components/FormFragments/IntlInput.js +17 -13
- package/Components/FormFragments/NestedDataComponent.js +15 -13
- package/Components/FormFragments/SetInput.js +10 -8
- package/Components/FormFragments/SimpleNestedData.js +8 -6
- package/Components/FormFragments/SimpleTable.js +13 -11
- package/Components/FormFragments/Tabs.js +15 -13
- package/Components/FormFragments/TwoSideSelect.js +17 -13
- package/Components/GeneralFragments/ConfigurationEditor.js +35 -24
- package/Components/GeneralFragments/ConfiguratorOverlay.js +8 -6
- package/Components/GeneralFragments/Image.js +10 -8
- package/Components/GeneralFragments/MiniPopup.js +11 -9
- package/Components/LicenseInfo.js +8 -6
- package/Components/List.js +17 -15
- package/Components/ListColumnFilter.js +15 -13
- package/Components/Menu.js +11 -9
- package/Components/ModalContainer.js +9 -7
- package/Components/OrderList.js +14 -12
- package/Components/Pagination.js +14 -12
- package/Components/SearchBar.js +11 -9
- package/Components/TranslateComponent.js +14 -11
- package/Screens/ApiKeys/Containers/Edit.js +26 -15
- package/Screens/Attribute/__tests/AttributeScreen.js +1 -1
- package/Screens/AttributeValue/__tests/AttributeValueScreen.js +1 -1
- package/Screens/Channel/__tests/ChannelScreen.js +1 -1
- package/Screens/ColorPalettes/Components/DefaultColorSwitch.js +9 -7
- package/Screens/ColorPalettes/Reducers/Reducer.js +1 -0
- package/Screens/ConfigurationTypeEditor/Screen.js +8 -6
- package/Screens/ConfigurationWorkflowStatus/Containers/List.js +14 -10
- package/Screens/ConfigurationWorkflowStatus/Screen.js +8 -6
- package/Screens/Creator/Components/BaseConfigurationEditor.js +15 -11
- package/Screens/Creator/Components/CheckData/ApiCalls.js +17 -6
- package/Screens/Creator/Components/CheckData/CheckData.js +39 -30
- package/Screens/Creator/Components/CheckData/Translations.js +5 -5
- package/Screens/Creator/Components/ComponentEditor.js +27 -19
- package/Screens/Creator/Components/OptionclassificationEditor.js +49 -39
- package/Screens/Creator/Components/Rules/Containers/Edit.js +17 -12
- package/Screens/Creator/Components/Rules/Containers/RuleForms/AdditionalOption.js +8 -6
- package/Screens/Creator/Components/Rules/Containers/RuleForms/AttributeValueGroupAutoSwitch.js +8 -6
- package/Screens/Creator/Components/Rules/Containers/RuleForms/DefaultOption.js +8 -6
- package/Screens/Creator/Components/Rules/Containers/RuleForms/ItemAttributeMatch.js +8 -6
- package/Screens/Creator/Components/Rules/Containers/RuleForms/ItemAttributeMaxSum.js +8 -6
- package/Screens/Creator/Components/Rules/Containers/RuleForms/OptionClassificationMaxAmount.js +8 -6
- package/Screens/Creator/Components/Rules/Containers/RuleForms/OptionClassificationMinAmount.js +8 -6
- package/Screens/Creator/Components/Rules/Containers/RuleForms/OptionDependency.js +8 -6
- package/Screens/Creator/Components/Rules/Containers/RuleForms/OptionExclusion.js +8 -6
- package/Screens/Creator/Components/Rules/Containers/RuleForms/OptionMaxAmount.js +8 -6
- package/Screens/Creator/Components/Rules/Containers/RuleForms/RuleForm.js +9 -7
- package/Screens/Creator/Components/Rules/index.js +8 -6
- package/Screens/Creator/Components/VisualizationAndMediaData/ApiCalls.js +18 -7
- package/Screens/Creator/Components/VisualizationAndMediaData/Components/ImageEditTools.js +75 -64
- package/Screens/Creator/Components/VisualizationAndMediaData/Components/PathStructure.js +1 -1
- package/Screens/Creator/Components/VisualizationAndMediaData/VisualizationAndMediaData.js +181 -164
- package/Screens/Creator/Containers/Edit.js +19 -15
- package/Screens/Creator/Reducers/ConfigurationActions.js +49 -39
- package/Screens/Demo/Screen.js +10 -8
- package/Screens/Designer/Components/DesignDataTransfer.js +67 -54
- package/Screens/Designer/Components/TemplateDefaultList.js +27 -25
- package/Screens/Designer/Components/TemplateList.js +14 -12
- package/Screens/Designer/Containers/Edit.js +37 -26
- package/Screens/Designer/SubScreens/DesignAreas/Components/ColorPalettes.js +22 -18
- package/Screens/Designer/SubScreens/DesignAreas/Components/FormArray.js +15 -13
- package/Screens/Designer/SubScreens/DesignAreas/Components/MaskEditorField/MaskEditorCanvas.js +27 -19
- package/Screens/Designer/SubScreens/DesignAreas/Components/MaskEditorField/MaskEditorField.js +25 -17
- package/Screens/Designer/SubScreens/DesignAreas/Components/MaskEditorField/withFileUpload.js +27 -19
- package/Screens/Designer/SubScreens/DesignAreas/Containers/FormProductionMethods.js +20 -18
- package/Screens/Designer/SubScreens/DesignAreas/Utils/getMaskSrcByType.js +2 -1
- package/Screens/Designer/SubScreens/Designviews/Reducers/Actions.js +19 -8
- package/Screens/Designer/SubScreens/Visualization/ApiCalls.js +28 -14
- package/Screens/Designer/SubScreens/Visualization/Components/AreaEditor.js +58 -44
- package/Screens/Designer/SubScreens/Visualization/Components/ExpansionContainer.js +9 -7
- package/Screens/Designer/SubScreens/Visualization/Components/Three2DEditor.js +83 -62
- package/Screens/Designer/SubScreens/Visualization/Components/VisualizationContainer.js +10 -8
- package/Screens/Designer/SubScreens/Visualization/Containers/Edit/Edit.js +116 -99
- package/Screens/Designer/SubScreens/Visualization/Containers/Edit/VisualizationUtils.js +29 -21
- package/Screens/Designer/SubScreens/Visualization/Containers/List.js +8 -6
- package/Screens/Finder/Reducers/Actions.js +22 -13
- package/Screens/Font/Reducers/Actions.js +4 -3
- package/Screens/ImageGallery/Containers/Edit.js +8 -6
- package/Screens/ImageGallery/Containers/List.js +36 -23
- package/Screens/ImageGallery/ImageTags/TagsEditorPopup.js +8 -6
- package/Screens/ImageGallery/Reducers/Actions.js +1 -0
- package/Screens/Inspirations/Reducers/Actions.js +18 -7
- package/Screens/Item/ApiCalls.js +19 -8
- package/Screens/Item/Components/AttributeEditorPopup.js +8 -6
- package/Screens/Item/Components/CopyCreatorItemDialog.js +26 -15
- package/Screens/Item/Components/ExportCreatorItemDialog.js +26 -15
- package/Screens/Item/Components/Images/ItemImageUploadDialog.js +31 -22
- package/Screens/Item/Components/ImportItemDialog.js +29 -21
- package/Screens/Item/Components/ListItemStatusEditor.js +25 -14
- package/Screens/Item/Components/Variants/VariantsAutocomplete.js +64 -53
- package/Screens/Item/Components/Variants/VariantsEditor.js +28 -26
- package/Screens/Item/Components/Variants/VariantsEditorDialog.js +8 -6
- package/Screens/Item/Components/Variants/VariantsEditorPopup.js +24 -14
- package/Screens/Item/Components/Variants/VariantsSelection.js +13 -11
- package/Screens/Item/Components/Variants/VariantsSortFilter.js +18 -16
- package/Screens/Item/Containers/Edit.js +31 -21
- package/Screens/Item/DataStructures/Prices/ActionHelpers.js +4 -4
- package/Screens/Login/Screen.js +15 -12
- package/Screens/Login/__tests/LoginScreen.js +2 -2
- package/Screens/ProductionView/Components/ConfigurationDataSheet.js +8 -6
- package/Screens/ProductionView/Containers/List.js +11 -8
- package/Screens/ReceiveOfferRequests/Components/ConfigurationDataSheet.js +8 -6
- package/Screens/ReceiveOfferRequests/Containers/List.js +8 -6
- package/Screens/Savedconfigurations/Components/ConfigurationDataSheet.js +8 -6
- package/Screens/Savedconfigurations/Containers/List.js +15 -10
- package/Screens/Setting/Containers/Edit.js +8 -6
- package/Screens/TranslationFileHandling/Containers/Edit.js +57 -45
- package/Screens/User/__tests/UserScreen.js +1 -1
- package/UIComponents/AutoComplete.js +12 -10
- package/UIComponents/ChipInput.js +14 -12
- package/UIComponents/IconMenu.js +12 -10
- package/UIComponents/InlineHelp/index.js +8 -6
- package/UIComponents/Pagination.js +12 -10
- package/UIComponents/SelectField.js +8 -6
- package/UIComponents/Table/Table.js +15 -13
- package/UIComponents/Table/TableBody.js +8 -6
- package/UIComponents/Table/TableHead.js +8 -6
- package/UIComponents/Table/TableRow.js +8 -6
- package/Utils/Async/Deferred.js +4 -2
- package/Utils/Async/newestRequest.js +23 -14
- package/Utils/Decorators/Observable.js +2 -1
- package/Utils/FunDraw/createMask.js +17 -7
- package/Utils/FunDraw/funDraw.js +71 -54
- package/Utils/FunDraw/movableObject.js +21 -12
- package/Utils/HOCs/AsyncProps.js +24 -16
- package/Utils/HOCs/LocalState.js +11 -9
- package/Utils/Request/lazyFetch.js +46 -38
- package/default.js +1 -1
- package/dev.js +1 -1
- package/package.json +3 -3
|
@@ -23,20 +23,27 @@ function _unsupportedIterableToArray(r, a) { if (r) { if ("string" == typeof r)
|
|
|
23
23
|
function _arrayLikeToArray(r, a) { (null == a || a > r.length) && (a = r.length); for (var e = 0, n = Array(a); e < a; e++) n[e] = r[e]; return n; }
|
|
24
24
|
function _iterableToArrayLimit(r, l) { var t = null == r ? null : "undefined" != typeof Symbol && r[Symbol.iterator] || r["@@iterator"]; if (null != t) { var e, n, i, u, a = [], f = !0, o = !1; try { if (i = (t = t.call(r)).next, 0 === l) { if (Object(t) !== t) return; f = !1; } else for (; !(f = (e = i.call(t)).done) && (a.push(e.value), a.length !== l); f = !0); } catch (r) { o = !0, n = r; } finally { try { if (!f && null != t["return"] && (u = t["return"](), Object(u) !== u)) return; } finally { if (o) throw n; } } return a; } }
|
|
25
25
|
function _arrayWithHoles(r) { if (Array.isArray(r)) return r; }
|
|
26
|
+
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 }; })(); }
|
|
27
|
+
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"); }
|
|
28
|
+
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; }; }
|
|
29
|
+
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(); }); }
|
|
30
|
+
function _regeneratorAsyncGen(r, e, t, o, n) { return new _regeneratorAsyncIterator(_regenerator().w(r, e, t, o), n || Promise); }
|
|
31
|
+
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); }
|
|
26
32
|
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 }; })(); }
|
|
27
33
|
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); }
|
|
34
|
+
function _OverloadYield(e, d) { this.v = e, this.k = d; }
|
|
28
35
|
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); }
|
|
29
36
|
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); }); }; }
|
|
30
37
|
function _classCallCheck(a, n) { if (!(a instanceof n)) throw new TypeError("Cannot call a class as a function"); }
|
|
31
38
|
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); } }
|
|
32
39
|
function _createClass(e, r, t) { return r && _defineProperties(e.prototype, r), t && _defineProperties(e, t), Object.defineProperty(e, "prototype", { writable: !1 }), e; }
|
|
33
|
-
function
|
|
40
|
+
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); }
|
|
41
|
+
function _setPrototypeOf(t, e) { return _setPrototypeOf = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function (t, e) { return t.__proto__ = e, t; }, _setPrototypeOf(t, e); }
|
|
42
|
+
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); }; }
|
|
34
43
|
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); }
|
|
35
44
|
function _assertThisInitialized(e) { if (void 0 === e) throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); return e; }
|
|
36
45
|
function _isNativeReflectConstruct() { try { var t = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); } catch (t) {} return (_isNativeReflectConstruct = function _isNativeReflectConstruct() { return !!t; })(); }
|
|
37
46
|
function _getPrototypeOf(t) { return _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf.bind() : function (t) { return t.__proto__ || Object.getPrototypeOf(t); }, _getPrototypeOf(t); }
|
|
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
47
|
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; }
|
|
41
48
|
function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == _typeof(i) ? i : i + ""; }
|
|
42
49
|
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); }
|
|
@@ -53,14 +60,16 @@ var styles = {
|
|
|
53
60
|
}
|
|
54
61
|
};
|
|
55
62
|
var VariantsAutocomplete = /*#__PURE__*/function (_Component) {
|
|
63
|
+
_inherits(VariantsAutocomplete, _Component);
|
|
64
|
+
var _super = _createSuper(VariantsAutocomplete);
|
|
56
65
|
function VariantsAutocomplete(props) {
|
|
57
66
|
var _this;
|
|
58
67
|
_classCallCheck(this, VariantsAutocomplete);
|
|
59
|
-
_this =
|
|
68
|
+
_this = _super.call(this, props);
|
|
60
69
|
// store if selection happened since the last focus event
|
|
61
70
|
// this helps to identify the case when a "late selection" has to be performed
|
|
62
|
-
_defineProperty(_this, "itemSelectionHappened", false);
|
|
63
|
-
_defineProperty(_this, "handleChange", function (item) {
|
|
71
|
+
_defineProperty(_assertThisInitialized(_this), "itemSelectionHappened", false);
|
|
72
|
+
_defineProperty(_assertThisInitialized(_this), "handleChange", function (item) {
|
|
64
73
|
var _this$props = _this.props,
|
|
65
74
|
variantId = _this$props.variantId,
|
|
66
75
|
groupId = _this$props.groupId,
|
|
@@ -72,7 +81,7 @@ var VariantsAutocomplete = /*#__PURE__*/function (_Component) {
|
|
|
72
81
|
_this.itemSelectionHappened = true;
|
|
73
82
|
_this.downshiftRef.current.closeMenu();
|
|
74
83
|
});
|
|
75
|
-
_defineProperty(_this, "handleAddClick", function () {
|
|
84
|
+
_defineProperty(_assertThisInitialized(_this), "handleAddClick", function () {
|
|
76
85
|
var _this$props2 = _this.props,
|
|
77
86
|
variantId = _this$props2.variantId,
|
|
78
87
|
groupId = _this$props2.groupId,
|
|
@@ -80,17 +89,17 @@ var VariantsAutocomplete = /*#__PURE__*/function (_Component) {
|
|
|
80
89
|
onAddClick(variantId, groupId);
|
|
81
90
|
_this.itemSelectionHappened = true;
|
|
82
91
|
});
|
|
83
|
-
_defineProperty(_this, "handleAddMouseDown", function (e) {
|
|
92
|
+
_defineProperty(_assertThisInitialized(_this), "handleAddMouseDown", function (e) {
|
|
84
93
|
e.preventDefault();
|
|
85
94
|
});
|
|
86
|
-
_defineProperty(_this, "onInputValueChange", /*#__PURE__*/function () {
|
|
87
|
-
var _ref = _asyncToGenerator(/*#__PURE__*/
|
|
88
|
-
var requestParams, response
|
|
89
|
-
return
|
|
90
|
-
while (1) switch (_context.
|
|
95
|
+
_defineProperty(_assertThisInitialized(_this), "onInputValueChange", /*#__PURE__*/function () {
|
|
96
|
+
var _ref = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee(searchText) {
|
|
97
|
+
var requestParams, response;
|
|
98
|
+
return _regeneratorRuntime().wrap(function _callee$(_context) {
|
|
99
|
+
while (1) switch (_context.prev = _context.next) {
|
|
91
100
|
case 0:
|
|
92
101
|
if (!(typeof searchText === 'undefined')) {
|
|
93
|
-
_context.
|
|
102
|
+
_context.next = 3;
|
|
94
103
|
break;
|
|
95
104
|
}
|
|
96
105
|
if (!_this.itemSelectionHappened) {
|
|
@@ -99,8 +108,8 @@ var VariantsAutocomplete = /*#__PURE__*/function (_Component) {
|
|
|
99
108
|
searchText: ''
|
|
100
109
|
});
|
|
101
110
|
}
|
|
102
|
-
return _context.
|
|
103
|
-
case
|
|
111
|
+
return _context.abrupt("return");
|
|
112
|
+
case 3:
|
|
104
113
|
_this.setState({
|
|
105
114
|
searchText: searchText
|
|
106
115
|
});
|
|
@@ -110,33 +119,34 @@ var VariantsAutocomplete = /*#__PURE__*/function (_Component) {
|
|
|
110
119
|
query: searchText.trim()
|
|
111
120
|
}
|
|
112
121
|
};
|
|
113
|
-
_context.
|
|
122
|
+
_context.prev = 5;
|
|
114
123
|
_this.api.cancel();
|
|
115
|
-
_context.
|
|
124
|
+
_context.next = 9;
|
|
116
125
|
return _this.api.request(requestParams);
|
|
117
|
-
case
|
|
118
|
-
response = _context.
|
|
126
|
+
case 9:
|
|
127
|
+
response = _context.sent;
|
|
119
128
|
_this.setState({
|
|
120
129
|
dataSource: response.data.data
|
|
121
130
|
});
|
|
122
|
-
_context.
|
|
131
|
+
_context.next = 15;
|
|
123
132
|
break;
|
|
124
|
-
case
|
|
125
|
-
_context.
|
|
126
|
-
|
|
127
|
-
case
|
|
128
|
-
|
|
133
|
+
case 13:
|
|
134
|
+
_context.prev = 13;
|
|
135
|
+
_context.t0 = _context["catch"](5);
|
|
136
|
+
case 15:
|
|
137
|
+
case "end":
|
|
138
|
+
return _context.stop();
|
|
129
139
|
}
|
|
130
|
-
}, _callee, null, [[
|
|
140
|
+
}, _callee, null, [[5, 13]]);
|
|
131
141
|
}));
|
|
132
142
|
return function (_x) {
|
|
133
143
|
return _ref.apply(this, arguments);
|
|
134
144
|
};
|
|
135
145
|
}());
|
|
136
|
-
_defineProperty(_this, "onBlur", /*#__PURE__*/_asyncToGenerator(/*#__PURE__*/
|
|
146
|
+
_defineProperty(_assertThisInitialized(_this), "onBlur", /*#__PURE__*/_asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee2() {
|
|
137
147
|
var _this$state, searchText, dataSource, dataSourceMatches, requestParams, response, list;
|
|
138
|
-
return
|
|
139
|
-
while (1) switch (_context2.
|
|
148
|
+
return _regeneratorRuntime().wrap(function _callee2$(_context2) {
|
|
149
|
+
while (1) switch (_context2.prev = _context2.next) {
|
|
140
150
|
case 0:
|
|
141
151
|
_this.setState({
|
|
142
152
|
addButtonVisible: false
|
|
@@ -144,7 +154,7 @@ var VariantsAutocomplete = /*#__PURE__*/function (_Component) {
|
|
|
144
154
|
_this.downshiftRef.current.closeMenu();
|
|
145
155
|
_this$state = _this.state, searchText = _this$state.searchText, dataSource = _this$state.dataSource;
|
|
146
156
|
if (!(!_this.itemSelectionHappened && searchText && searchText !== _this.props.searchText)) {
|
|
147
|
-
_context2.
|
|
157
|
+
_context2.next = 25;
|
|
148
158
|
break;
|
|
149
159
|
}
|
|
150
160
|
// try to find it in the dataSource first (it's already loaded while typing)
|
|
@@ -170,12 +180,12 @@ var VariantsAutocomplete = /*#__PURE__*/function (_Component) {
|
|
|
170
180
|
return item;
|
|
171
181
|
});
|
|
172
182
|
if (!dataSourceMatches.length) {
|
|
173
|
-
_context2.
|
|
183
|
+
_context2.next = 8;
|
|
174
184
|
break;
|
|
175
185
|
}
|
|
176
186
|
_this.handleChange(dataSourceMatches[0]);
|
|
177
|
-
return _context2.
|
|
178
|
-
case
|
|
187
|
+
return _context2.abrupt("return");
|
|
188
|
+
case 8:
|
|
179
189
|
// try to find a match with a new request
|
|
180
190
|
requestParams = {
|
|
181
191
|
url: 'groupentries',
|
|
@@ -186,47 +196,48 @@ var VariantsAutocomplete = /*#__PURE__*/function (_Component) {
|
|
|
186
196
|
_this.setState({
|
|
187
197
|
isLoading: true
|
|
188
198
|
});
|
|
189
|
-
_context2.
|
|
199
|
+
_context2.prev = 10;
|
|
190
200
|
_this.api.cancel();
|
|
191
|
-
_context2.
|
|
201
|
+
_context2.next = 14;
|
|
192
202
|
return _this.api.request(requestParams);
|
|
193
|
-
case
|
|
194
|
-
response = _context2.
|
|
203
|
+
case 14:
|
|
204
|
+
response = _context2.sent;
|
|
195
205
|
list = response.data.data;
|
|
196
206
|
if (!(list.length > 0)) {
|
|
197
|
-
_context2.
|
|
207
|
+
_context2.next = 19;
|
|
198
208
|
break;
|
|
199
209
|
}
|
|
200
210
|
_this.handleChange(list[0]);
|
|
201
|
-
return _context2.
|
|
202
|
-
case
|
|
203
|
-
_context2.
|
|
211
|
+
return _context2.abrupt("return");
|
|
212
|
+
case 19:
|
|
213
|
+
_context2.prev = 19;
|
|
204
214
|
_this.setState({
|
|
205
215
|
isLoading: false
|
|
206
216
|
});
|
|
207
|
-
return _context2.
|
|
208
|
-
case
|
|
217
|
+
return _context2.finish(19);
|
|
218
|
+
case 22:
|
|
209
219
|
_this.handleChange(null);
|
|
210
|
-
_context2.
|
|
220
|
+
_context2.next = 26;
|
|
211
221
|
break;
|
|
212
|
-
case
|
|
222
|
+
case 25:
|
|
213
223
|
if (!searchText) {
|
|
214
224
|
_this.setState({
|
|
215
225
|
searchText: _this.props.searchText
|
|
216
226
|
});
|
|
217
227
|
}
|
|
218
|
-
case
|
|
219
|
-
|
|
228
|
+
case 26:
|
|
229
|
+
case "end":
|
|
230
|
+
return _context2.stop();
|
|
220
231
|
}
|
|
221
|
-
}, _callee2, null, [[
|
|
232
|
+
}, _callee2, null, [[10,, 19, 22]]);
|
|
222
233
|
})));
|
|
223
|
-
_defineProperty(_this, "onFocus", function () {
|
|
234
|
+
_defineProperty(_assertThisInitialized(_this), "onFocus", function () {
|
|
224
235
|
_this.setState({
|
|
225
236
|
addButtonVisible: true
|
|
226
237
|
});
|
|
227
238
|
_this.itemSelectionHappened = false;
|
|
228
239
|
});
|
|
229
|
-
_defineProperty(_this, "downshiftRef", /*#__PURE__*/_react["default"].createRef());
|
|
240
|
+
_defineProperty(_assertThisInitialized(_this), "downshiftRef", /*#__PURE__*/_react["default"].createRef());
|
|
230
241
|
_this.state = {
|
|
231
242
|
searchText: _this.props.searchText,
|
|
232
243
|
dataSource: [],
|
|
@@ -238,8 +249,7 @@ var VariantsAutocomplete = /*#__PURE__*/function (_Component) {
|
|
|
238
249
|
_this.api = _Api["default"].create();
|
|
239
250
|
return _this;
|
|
240
251
|
}
|
|
241
|
-
|
|
242
|
-
return _createClass(VariantsAutocomplete, [{
|
|
252
|
+
_createClass(VariantsAutocomplete, [{
|
|
243
253
|
key: "componentDidUpdate",
|
|
244
254
|
value: function componentDidUpdate(prevProps, prevState) {
|
|
245
255
|
var searchText = this.props.searchText;
|
|
@@ -299,6 +309,7 @@ var VariantsAutocomplete = /*#__PURE__*/function (_Component) {
|
|
|
299
309
|
}, /*#__PURE__*/_react["default"].createElement(_AddCircleOutlineIcon["default"], null)));
|
|
300
310
|
}
|
|
301
311
|
}]);
|
|
312
|
+
return VariantsAutocomplete;
|
|
302
313
|
}(_react.Component);
|
|
303
314
|
_defineProperty(VariantsAutocomplete, "propTypes", {
|
|
304
315
|
searchText: _propTypes["default"].string,
|
|
@@ -40,13 +40,13 @@ function _interopRequireWildcard(e, t) { if ("function" == typeof WeakMap) var r
|
|
|
40
40
|
function _classCallCheck(a, n) { if (!(a instanceof n)) throw new TypeError("Cannot call a class as a function"); }
|
|
41
41
|
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); } }
|
|
42
42
|
function _createClass(e, r, t) { return r && _defineProperties(e.prototype, r), t && _defineProperties(e, t), Object.defineProperty(e, "prototype", { writable: !1 }), e; }
|
|
43
|
-
function
|
|
43
|
+
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); }
|
|
44
|
+
function _setPrototypeOf(t, e) { return _setPrototypeOf = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function (t, e) { return t.__proto__ = e, t; }, _setPrototypeOf(t, e); }
|
|
45
|
+
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); }; }
|
|
44
46
|
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); }
|
|
45
47
|
function _assertThisInitialized(e) { if (void 0 === e) throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); return e; }
|
|
46
48
|
function _isNativeReflectConstruct() { try { var t = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); } catch (t) {} return (_isNativeReflectConstruct = function _isNativeReflectConstruct() { return !!t; })(); }
|
|
47
49
|
function _getPrototypeOf(t) { return _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf.bind() : function (t) { return t.__proto__ || Object.getPrototypeOf(t); }, _getPrototypeOf(t); }
|
|
48
|
-
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); }
|
|
49
|
-
function _setPrototypeOf(t, e) { return _setPrototypeOf = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function (t, e) { return t.__proto__ = e, t; }, _setPrototypeOf(t, e); }
|
|
50
50
|
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; }
|
|
51
51
|
function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == _typeof(i) ? i : i + ""; }
|
|
52
52
|
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); }
|
|
@@ -199,11 +199,13 @@ var NarrowTableCell = (0, _styles.withStyles)({
|
|
|
199
199
|
}
|
|
200
200
|
})(_TableCell["default"]);
|
|
201
201
|
var VariantsEditor = /*#__PURE__*/function (_Component) {
|
|
202
|
+
_inherits(VariantsEditor, _Component);
|
|
203
|
+
var _super = _createSuper(VariantsEditor);
|
|
202
204
|
function VariantsEditor(props) {
|
|
203
205
|
var _this;
|
|
204
206
|
_classCallCheck(this, VariantsEditor);
|
|
205
|
-
_this =
|
|
206
|
-
_defineProperty(_this, "addGroupEntryToVariant", function (variantId, groupId, entry) {
|
|
207
|
+
_this = _super.call(this, props);
|
|
208
|
+
_defineProperty(_assertThisInitialized(_this), "addGroupEntryToVariant", function (variantId, groupId, entry) {
|
|
207
209
|
var children = _lodash["default"].cloneDeep(_this.props.entityState.data.children.value);
|
|
208
210
|
var variant = _lodash["default"].find(children, function (o) {
|
|
209
211
|
return o.id === variantId;
|
|
@@ -218,7 +220,7 @@ var VariantsEditor = /*#__PURE__*/function (_Component) {
|
|
|
218
220
|
group.groupEntry = entry;
|
|
219
221
|
_this.props.setData('children', children);
|
|
220
222
|
});
|
|
221
|
-
_defineProperty(_this, "onMountEntity", function (action) {
|
|
223
|
+
_defineProperty(_assertThisInitialized(_this), "onMountEntity", function (action) {
|
|
222
224
|
if (action.key === _Actions3.DATA_KEY) {
|
|
223
225
|
var entry = _lodash["default"].cloneDeep(action.data);
|
|
224
226
|
if (entry && _this.lastActiveAutocompleteField && action.isSaved) {
|
|
@@ -234,7 +236,7 @@ var VariantsEditor = /*#__PURE__*/function (_Component) {
|
|
|
234
236
|
}
|
|
235
237
|
}
|
|
236
238
|
});
|
|
237
|
-
_defineProperty(_this, "addGroup", function (group) {
|
|
239
|
+
_defineProperty(_assertThisInitialized(_this), "addGroup", function (group) {
|
|
238
240
|
var _this$state = _this.state,
|
|
239
241
|
groups = _this$state.groups,
|
|
240
242
|
groupIdsInOrder = _this$state.groupIdsInOrder;
|
|
@@ -250,10 +252,10 @@ var VariantsEditor = /*#__PURE__*/function (_Component) {
|
|
|
250
252
|
groupIdsInOrder: (0, _uniq["default"])(groupIdsInOrder)
|
|
251
253
|
});
|
|
252
254
|
});
|
|
253
|
-
_defineProperty(_this, "onGroupEntryChange", function (variantId, groupId, entry) {
|
|
255
|
+
_defineProperty(_assertThisInitialized(_this), "onGroupEntryChange", function (variantId, groupId, entry) {
|
|
254
256
|
_this.addGroupEntryToVariant(variantId, groupId, entry);
|
|
255
257
|
});
|
|
256
|
-
_defineProperty(_this, "onGroupEntryAddClick", function (variantId, groupId) {
|
|
258
|
+
_defineProperty(_assertThisInitialized(_this), "onGroupEntryAddClick", function (variantId, groupId) {
|
|
257
259
|
var onAction = _this.props.onAction;
|
|
258
260
|
_this.lastActiveAutocompleteField = {
|
|
259
261
|
variantId: variantId,
|
|
@@ -263,27 +265,27 @@ var VariantsEditor = /*#__PURE__*/function (_Component) {
|
|
|
263
265
|
target: _Actions3.DATA_KEY
|
|
264
266
|
});
|
|
265
267
|
});
|
|
266
|
-
_defineProperty(_this, "onAddGroupClick", function () {
|
|
268
|
+
_defineProperty(_assertThisInitialized(_this), "onAddGroupClick", function () {
|
|
267
269
|
var onAction = _this.props.onAction;
|
|
268
270
|
onAction('CREATE_ENTITY', {
|
|
269
271
|
target: _Actions2.DATA_KEY
|
|
270
272
|
});
|
|
271
273
|
});
|
|
272
|
-
_defineProperty(_this, "onEditBaseDataClick", function (id) {
|
|
274
|
+
_defineProperty(_assertThisInitialized(_this), "onEditBaseDataClick", function (id) {
|
|
273
275
|
_this.props.loadVariantDetails({
|
|
274
276
|
id: id
|
|
275
277
|
});
|
|
276
278
|
});
|
|
277
|
-
_defineProperty(_this, "closeEditBaseDataDialog", function () {
|
|
279
|
+
_defineProperty(_assertThisInitialized(_this), "closeEditBaseDataDialog", function () {
|
|
278
280
|
_this.props.hideVariantDetails();
|
|
279
281
|
});
|
|
280
|
-
_defineProperty(_this, "renderDeleteButton", function () {
|
|
282
|
+
_defineProperty(_assertThisInitialized(_this), "renderDeleteButton", function () {
|
|
281
283
|
var showDelete = _lodash["default"].isArray(_this.state.selectedRow) && _this.state.selectedRow.length > 0;
|
|
282
284
|
return showDelete && /*#__PURE__*/_react["default"].createElement(_IconButton["default"], {
|
|
283
285
|
onClick: _this.deleteRow
|
|
284
286
|
}, /*#__PURE__*/_react["default"].createElement(_DeleteForeverIcon["default"], null));
|
|
285
287
|
});
|
|
286
|
-
_defineProperty(_this, "deleteRow", function () {
|
|
288
|
+
_defineProperty(_assertThisInitialized(_this), "deleteRow", function () {
|
|
287
289
|
var entityState = _this.props.entityState;
|
|
288
290
|
var selectedRow = _this.state.selectedRow;
|
|
289
291
|
var result = [].concat(entityState.data.children.value);
|
|
@@ -295,7 +297,7 @@ var VariantsEditor = /*#__PURE__*/function (_Component) {
|
|
|
295
297
|
selectedRow: []
|
|
296
298
|
});
|
|
297
299
|
});
|
|
298
|
-
_defineProperty(_this, "selectRow", function (variant) {
|
|
300
|
+
_defineProperty(_assertThisInitialized(_this), "selectRow", function (variant) {
|
|
299
301
|
return function (_ref) {
|
|
300
302
|
var target = _ref.target;
|
|
301
303
|
if (!target || target.type !== 'checkbox') {
|
|
@@ -318,7 +320,7 @@ var VariantsEditor = /*#__PURE__*/function (_Component) {
|
|
|
318
320
|
});
|
|
319
321
|
};
|
|
320
322
|
});
|
|
321
|
-
_defineProperty(_this, "handleSelectAllClick", function (event) {
|
|
323
|
+
_defineProperty(_assertThisInitialized(_this), "handleSelectAllClick", function (event) {
|
|
322
324
|
if (event.target.checked) {
|
|
323
325
|
_this.setState({
|
|
324
326
|
selectedRow: _this.props.entityState.data.children.value.map(function (n) {
|
|
@@ -331,42 +333,42 @@ var VariantsEditor = /*#__PURE__*/function (_Component) {
|
|
|
331
333
|
selectedRow: []
|
|
332
334
|
});
|
|
333
335
|
});
|
|
334
|
-
_defineProperty(_this, "onVariantsSetSelection", function (selectedVariants) {
|
|
336
|
+
_defineProperty(_assertThisInitialized(_this), "onVariantsSetSelection", function (selectedVariants) {
|
|
335
337
|
var children = mergeVariants(_this.props.entityState.data.children.value, selectedVariants);
|
|
336
338
|
_this.setState({
|
|
337
339
|
showVariantsSelectionDialog: false
|
|
338
340
|
});
|
|
339
341
|
_this.props.setData('children', children);
|
|
340
342
|
});
|
|
341
|
-
_defineProperty(_this, "onVariantsCloseSelection", function () {
|
|
343
|
+
_defineProperty(_assertThisInitialized(_this), "onVariantsCloseSelection", function () {
|
|
342
344
|
_this.setState({
|
|
343
345
|
showVariantsSelectionDialog: false
|
|
344
346
|
});
|
|
345
347
|
});
|
|
346
|
-
_defineProperty(_this, "onAddVariantClick", function () {
|
|
348
|
+
_defineProperty(_assertThisInitialized(_this), "onAddVariantClick", function () {
|
|
347
349
|
_this.setState({
|
|
348
350
|
showVariantsSelectionDialog: true
|
|
349
351
|
});
|
|
350
352
|
});
|
|
351
|
-
_defineProperty(_this, "handleChangePage", function (event, page) {
|
|
353
|
+
_defineProperty(_assertThisInitialized(_this), "handleChangePage", function (event, page) {
|
|
352
354
|
_this.setState({
|
|
353
355
|
page: page
|
|
354
356
|
});
|
|
355
357
|
});
|
|
356
|
-
_defineProperty(_this, "handleChangeRowsPerPage", function (event) {
|
|
358
|
+
_defineProperty(_assertThisInitialized(_this), "handleChangeRowsPerPage", function (event) {
|
|
357
359
|
_this.setState({
|
|
358
360
|
rowsPerPage: event.target.value
|
|
359
361
|
});
|
|
360
362
|
});
|
|
361
|
-
_defineProperty(_this, "isSelected", function (id) {
|
|
363
|
+
_defineProperty(_assertThisInitialized(_this), "isSelected", function (id) {
|
|
362
364
|
return _this.state.selectedRow.indexOf(id) !== -1;
|
|
363
365
|
});
|
|
364
|
-
_defineProperty(_this, "updateList", function (listParams) {
|
|
366
|
+
_defineProperty(_assertThisInitialized(_this), "updateList", function (listParams) {
|
|
365
367
|
_this.setState({
|
|
366
368
|
listParams: listParams
|
|
367
369
|
});
|
|
368
370
|
});
|
|
369
|
-
_defineProperty(_this, "callActionWithValidation", function (actionCreator) {
|
|
371
|
+
_defineProperty(_assertThisInitialized(_this), "callActionWithValidation", function (actionCreator) {
|
|
370
372
|
return function () {
|
|
371
373
|
// check if all the groups are selected
|
|
372
374
|
var children = _this.props.entityState.data.children.value;
|
|
@@ -404,8 +406,7 @@ var VariantsEditor = /*#__PURE__*/function (_Component) {
|
|
|
404
406
|
};
|
|
405
407
|
return _this;
|
|
406
408
|
}
|
|
407
|
-
|
|
408
|
-
return _createClass(VariantsEditor, [{
|
|
409
|
+
_createClass(VariantsEditor, [{
|
|
409
410
|
key: "componentDidMount",
|
|
410
411
|
value: function componentDidMount() {
|
|
411
412
|
(0, _ReduxListener.addReduxListener)(this.mountEntityListener);
|
|
@@ -592,5 +593,6 @@ var VariantsEditor = /*#__PURE__*/function (_Component) {
|
|
|
592
593
|
}))));
|
|
593
594
|
}
|
|
594
595
|
}]);
|
|
596
|
+
return VariantsEditor;
|
|
595
597
|
}(_react.Component);
|
|
596
598
|
var _default = exports["default"] = (0, _styles.withStyles)(styles)((0, _DefaultConnectedForm.connectDefault)((0, _withTranslationFinder["default"])(VariantsEditor), _Actions.ITEM_REDUCER_NAME, _Actions["default"].setFieldData, _Actions["default"].postData, _Actions["default"].hideDetails, _Actions["default"].customAction));
|
|
@@ -23,13 +23,13 @@ function _defineProperties(e, r) { for (var t = 0; t < r.length; t++) { var o =
|
|
|
23
23
|
function _createClass(e, r, t) { return r && _defineProperties(e.prototype, r), t && _defineProperties(e, t), Object.defineProperty(e, "prototype", { writable: !1 }), e; }
|
|
24
24
|
function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == _typeof(i) ? i : i + ""; }
|
|
25
25
|
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); }
|
|
26
|
-
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); }; }
|
|
27
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); }
|
|
28
30
|
function _assertThisInitialized(e) { if (void 0 === e) throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); return e; }
|
|
29
31
|
function _isNativeReflectConstruct() { try { var t = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); } catch (t) {} return (_isNativeReflectConstruct = function _isNativeReflectConstruct() { return !!t; })(); }
|
|
30
32
|
function _getPrototypeOf(t) { return _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf.bind() : function (t) { return t.__proto__ || Object.getPrototypeOf(t); }, _getPrototypeOf(t); }
|
|
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
33
|
function _toConsumableArray(r) { return _arrayWithoutHoles(r) || _iterableToArray(r) || _unsupportedIterableToArray(r) || _nonIterableSpread(); }
|
|
34
34
|
function _nonIterableSpread() { throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); }
|
|
35
35
|
function _unsupportedIterableToArray(r, a) { if (r) { if ("string" == typeof r) return _arrayLikeToArray(r, a); var t = {}.toString.call(r).slice(8, -1); return "Object" === t && r.constructor && (t = r.constructor.name), "Map" === t || "Set" === t ? Array.from(r) : "Arguments" === t || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t) ? _arrayLikeToArray(r, a) : void 0; } }
|
|
@@ -146,12 +146,13 @@ var formFields = [{
|
|
|
146
146
|
}].concat(_toConsumableArray(_Editor["default"]));
|
|
147
147
|
var BaseDataForm = (0, _DefaultConnectedForm["default"])(formFields, _Actions2.REDUCER_NAME, _Actions2["default"].setFieldData, _Actions2["default"].postData, false, _Actions2["default"].customAction);
|
|
148
148
|
var VariantsEditorDialog = /*#__PURE__*/function (_React$Component) {
|
|
149
|
+
_inherits(VariantsEditorDialog, _React$Component);
|
|
150
|
+
var _super = _createSuper(VariantsEditorDialog);
|
|
149
151
|
function VariantsEditorDialog() {
|
|
150
152
|
_classCallCheck(this, VariantsEditorDialog);
|
|
151
|
-
return
|
|
153
|
+
return _super.apply(this, arguments);
|
|
152
154
|
}
|
|
153
|
-
|
|
154
|
-
return _createClass(VariantsEditorDialog, [{
|
|
155
|
+
_createClass(VariantsEditorDialog, [{
|
|
155
156
|
key: "render",
|
|
156
157
|
value: function render() {
|
|
157
158
|
var classes = this.props.classes;
|
|
@@ -171,5 +172,6 @@ var VariantsEditorDialog = /*#__PURE__*/function (_React$Component) {
|
|
|
171
172
|
})));
|
|
172
173
|
}
|
|
173
174
|
}]);
|
|
175
|
+
return VariantsEditorDialog;
|
|
174
176
|
}(_react["default"].Component);
|
|
175
177
|
var _default = exports["default"] = (0, _styles.withStyles)(styles)(VariantsEditorDialog);
|
|
@@ -14,10 +14,17 @@ var GroupActions = _interopRequireWildcard(require("../../../Group/Reducers/Acti
|
|
|
14
14
|
var GroupEntryActions = _interopRequireWildcard(require("../../../GroupEntry/Reducers/Actions"));
|
|
15
15
|
var _i18n = require("../../../../App/i18n");
|
|
16
16
|
var _Actions3 = require("../../../../App/Reducers/Api/Actions");
|
|
17
|
-
function _interopRequireWildcard(e, t) { if ("function" == typeof WeakMap) var r = new WeakMap(), n = new WeakMap(); return (_interopRequireWildcard = function _interopRequireWildcard(e, t) { if (!t && e && e.__esModule) return e; var o, i, f = { __proto__: null, "default": e }; if (null === e || "object" != _typeof(e) && "function" != typeof e) return f; if (o = t ? n : r) { if (o.has(e)) return o.get(e); o.set(e, f); } for (var
|
|
17
|
+
function _interopRequireWildcard(e, t) { if ("function" == typeof WeakMap) var r = new WeakMap(), n = new WeakMap(); return (_interopRequireWildcard = function _interopRequireWildcard(e, t) { if (!t && e && e.__esModule) return e; var o, i, f = { __proto__: null, "default": e }; if (null === e || "object" != _typeof(e) && "function" != typeof e) return f; if (o = t ? n : r) { if (o.has(e)) return o.get(e); o.set(e, f); } for (var _t2 in e) "default" !== _t2 && {}.hasOwnProperty.call(e, _t2) && ((i = (o = Object.defineProperty) && Object.getOwnPropertyDescriptor(e, _t2)) && (i.get || i.set) ? o(f, _t2, i) : f[_t2] = e[_t2]); return f; })(e, t); }
|
|
18
18
|
function _interopRequireDefault(e) { return e && e.__esModule ? e : { "default": e }; }
|
|
19
|
+
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 }; })(); }
|
|
20
|
+
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"); }
|
|
21
|
+
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; }; }
|
|
22
|
+
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(); }); }
|
|
23
|
+
function _regeneratorAsyncGen(r, e, t, o, n) { return new _regeneratorAsyncIterator(_regenerator().w(r, e, t, o), n || Promise); }
|
|
24
|
+
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); }
|
|
19
25
|
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 }; })(); }
|
|
20
26
|
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); }
|
|
27
|
+
function _OverloadYield(e, d) { this.v = e, this.k = d; }
|
|
21
28
|
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); }
|
|
22
29
|
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); }); }; }
|
|
23
30
|
function _classCallCheck(a, n) { if (!(a instanceof n)) throw new TypeError("Cannot call a class as a function"); }
|
|
@@ -25,20 +32,21 @@ function _defineProperties(e, r) { for (var t = 0; t < r.length; t++) { var o =
|
|
|
25
32
|
function _createClass(e, r, t) { return r && _defineProperties(e.prototype, r), t && _defineProperties(e, t), Object.defineProperty(e, "prototype", { writable: !1 }), e; }
|
|
26
33
|
function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == _typeof(i) ? i : i + ""; }
|
|
27
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); }
|
|
28
|
-
function
|
|
35
|
+
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); }
|
|
36
|
+
function _setPrototypeOf(t, e) { return _setPrototypeOf = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function (t, e) { return t.__proto__ = e, t; }, _setPrototypeOf(t, e); }
|
|
37
|
+
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); }; }
|
|
29
38
|
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); }
|
|
30
39
|
function _assertThisInitialized(e) { if (void 0 === e) throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); return e; }
|
|
31
40
|
function _isNativeReflectConstruct() { try { var t = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); } catch (t) {} return (_isNativeReflectConstruct = function _isNativeReflectConstruct() { return !!t; })(); }
|
|
32
41
|
function _getPrototypeOf(t) { return _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf.bind() : function (t) { return t.__proto__ || Object.getPrototypeOf(t); }, _getPrototypeOf(t); }
|
|
33
|
-
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); }
|
|
34
|
-
function _setPrototypeOf(t, e) { return _setPrototypeOf = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function (t, e) { return t.__proto__ = e, t; }, _setPrototypeOf(t, e); }
|
|
35
42
|
var VariantsEditorPopup = exports.VariantsEditorPopup = /*#__PURE__*/function (_React$Component) {
|
|
43
|
+
_inherits(VariantsEditorPopup, _React$Component);
|
|
44
|
+
var _super = _createSuper(VariantsEditorPopup);
|
|
36
45
|
function VariantsEditorPopup() {
|
|
37
46
|
_classCallCheck(this, VariantsEditorPopup);
|
|
38
|
-
return
|
|
47
|
+
return _super.apply(this, arguments);
|
|
39
48
|
}
|
|
40
|
-
|
|
41
|
-
return _createClass(VariantsEditorPopup, [{
|
|
49
|
+
_createClass(VariantsEditorPopup, [{
|
|
42
50
|
key: "render",
|
|
43
51
|
value: function render() {
|
|
44
52
|
var _this$props = this.props,
|
|
@@ -65,6 +73,7 @@ var VariantsEditorPopup = exports.VariantsEditorPopup = /*#__PURE__*/function (_
|
|
|
65
73
|
})));
|
|
66
74
|
}
|
|
67
75
|
}]);
|
|
76
|
+
return VariantsEditorPopup;
|
|
68
77
|
}(_react["default"].Component);
|
|
69
78
|
var renderStateToProps = function renderStateToProps(state) {
|
|
70
79
|
var groupEntity = state[GroupActions.REDUCER_NAME];
|
|
@@ -80,17 +89,18 @@ var renderDispatchToProps = function renderDispatchToProps(dispatch) {
|
|
|
80
89
|
dispatch(GroupActions.hideDetails(false));
|
|
81
90
|
},
|
|
82
91
|
customPostData: function () {
|
|
83
|
-
var _customPostData = _asyncToGenerator(/*#__PURE__*/
|
|
84
|
-
return
|
|
85
|
-
while (1) switch (_context.
|
|
92
|
+
var _customPostData = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee() {
|
|
93
|
+
return _regeneratorRuntime().wrap(function _callee$(_context) {
|
|
94
|
+
while (1) switch (_context.prev = _context.next) {
|
|
86
95
|
case 0:
|
|
87
|
-
_context.
|
|
96
|
+
_context.next = 2;
|
|
88
97
|
return dispatch(GroupActions.postData(true));
|
|
89
|
-
case
|
|
98
|
+
case 2:
|
|
90
99
|
// need to reset didInvalidate flag as it is set on save of group which is blocking to reloadList
|
|
91
100
|
dispatch((0, _Actions3.resetDidInvalidate)(GroupActions.GROUPS_URL));
|
|
92
|
-
case
|
|
93
|
-
|
|
101
|
+
case 3:
|
|
102
|
+
case "end":
|
|
103
|
+
return _context.stop();
|
|
94
104
|
}
|
|
95
105
|
}, _callee);
|
|
96
106
|
}));
|