@salesgenterp/ui-components 0.4.253 → 0.4.254
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/dist/index.js +7 -15
- package/dist/index.js.map +1 -1
- package/dist/index.modern.js +7 -15
- package/dist/index.modern.js.map +1 -1
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -644,9 +644,7 @@ var erLocalStorage = {
|
|
|
644
644
|
var returnValue = {};
|
|
645
645
|
try {
|
|
646
646
|
returnValue = localStorage.getItem(key) ? JSON.parse(localStorage.getItem(key)) : {};
|
|
647
|
-
} catch (e) {
|
|
648
|
-
console.error(e);
|
|
649
|
-
}
|
|
647
|
+
} catch (e) {}
|
|
650
648
|
return returnValue;
|
|
651
649
|
}
|
|
652
650
|
};
|
|
@@ -679,9 +677,7 @@ var ErCache = /*#__PURE__*/function () {
|
|
|
679
677
|
value = _ref2.value;
|
|
680
678
|
try {
|
|
681
679
|
return this.sessionStorage.setItem(key, JSON.stringify(value));
|
|
682
|
-
} catch (e) {
|
|
683
|
-
console.error(e);
|
|
684
|
-
}
|
|
680
|
+
} catch (e) {}
|
|
685
681
|
};
|
|
686
682
|
return ErCache;
|
|
687
683
|
}();
|
|
@@ -806,7 +802,6 @@ var API$1 = function API(apiData) {
|
|
|
806
802
|
function _temp4(_result3) {
|
|
807
803
|
return _exit ? _result3 : function () {
|
|
808
804
|
if (axios.isCancel(exception)) {} else {
|
|
809
|
-
console.log('Exception on API call', url, exception);
|
|
810
805
|
return Promise.resolve(handleError({
|
|
811
806
|
exception: exception,
|
|
812
807
|
url: url,
|
|
@@ -4278,7 +4273,6 @@ var AsyncDataLoad = function AsyncDataLoad(_ref) {
|
|
|
4278
4273
|
}();
|
|
4279
4274
|
return _temp && _temp.then ? _temp.then(_temp2) : _temp2(_temp);
|
|
4280
4275
|
}, function (e) {
|
|
4281
|
-
console.error('Async data load error', e);
|
|
4282
4276
|
setApiState({
|
|
4283
4277
|
status: API_STATUSES.ERROR,
|
|
4284
4278
|
data: {}
|
|
@@ -7407,7 +7401,6 @@ function ProductTable(_ref) {
|
|
|
7407
7401
|
var isSelected = function isSelected(name) {
|
|
7408
7402
|
return selected.includes(name);
|
|
7409
7403
|
};
|
|
7410
|
-
console.log('isSelected: ', isSelected);
|
|
7411
7404
|
React.useEffect(function () {
|
|
7412
7405
|
setCartArray(cartList);
|
|
7413
7406
|
}, [cartData]);
|
|
@@ -7551,11 +7544,8 @@ var QuickOrder = function QuickOrder(_ref) {
|
|
|
7551
7544
|
setProducts([].concat(filterProduct));
|
|
7552
7545
|
}
|
|
7553
7546
|
};
|
|
7554
|
-
var handleIncrementDecrement = function handleIncrementDecrement(data) {
|
|
7555
|
-
console.log('data: ', data);
|
|
7556
|
-
};
|
|
7547
|
+
var handleIncrementDecrement = function handleIncrementDecrement(data) {};
|
|
7557
7548
|
var handleRemoveAll = function handleRemoveAll(data) {
|
|
7558
|
-
console.log('data: ', data);
|
|
7559
7549
|
if (confirm('Are you sure, do you wan to delete items?')) {
|
|
7560
7550
|
var _data = lodash.remove(products, function (n) {});
|
|
7561
7551
|
}
|
|
@@ -8752,7 +8742,9 @@ var Step2 = function Step2(_ref) {
|
|
|
8752
8742
|
(option === null || option === void 0 ? void 0 : option.id) === (expandCarrier === null || expandCarrier === void 0 ? void 0 : expandCarrier.id) ? setExpandCarrier(null) : setExpandCarrier(option);
|
|
8753
8743
|
} else {
|
|
8754
8744
|
!(option !== null && option !== void 0 && option.shippingId) && setExpandCarrier(null);
|
|
8755
|
-
setMethod(option
|
|
8745
|
+
setMethod(_extends({}, option, {
|
|
8746
|
+
amount: (cartData === null || cartData === void 0 ? void 0 : cartData.totalCartPrice) > (option === null || option === void 0 ? void 0 : option.freeShippingLimit) ? 0 : option === null || option === void 0 ? void 0 : option.amount
|
|
8747
|
+
}));
|
|
8756
8748
|
}
|
|
8757
8749
|
},
|
|
8758
8750
|
key: i,
|
|
@@ -8891,7 +8883,7 @@ var Step2 = function Step2(_ref) {
|
|
|
8891
8883
|
paddingBottom: '1rem'
|
|
8892
8884
|
}, modifyOptions === null || modifyOptions === void 0 ? void 0 : modifyOptions.map(function (option, i) {
|
|
8893
8885
|
return deliveryOption(option, i);
|
|
8894
|
-
})), showShippingPriceRangeLimit && (method === null || method === void 0 ? void 0 : method.shippingPriceRange) && /*#__PURE__*/React__default.createElement(material.Stack, {
|
|
8886
|
+
})), method !== null && method !== void 0 && method.freeShippingLimit ? /*#__PURE__*/React__default.createElement("div", null, /*#__PURE__*/React__default.createElement("span", null, "Free shipping on orders over", ' ', /*#__PURE__*/React__default.createElement("b", null, renderMoney(method === null || method === void 0 ? void 0 : method.freeShippingLimit)))) : null, showShippingPriceRangeLimit && (method === null || method === void 0 ? void 0 : method.shippingPriceRange) && /*#__PURE__*/React__default.createElement(material.Stack, {
|
|
8895
8887
|
flexDirection: "column",
|
|
8896
8888
|
width: "100%",
|
|
8897
8889
|
alignItems: 'flex-start',
|