@salesgenterp/ui-components 0.4.541 → 0.4.543
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 +14 -8
- package/dist/index.js.map +1 -1
- package/dist/index.modern.js +14 -8
- package/dist/index.modern.js.map +1 -1
- package/package.json +1 -1
package/dist/index.modern.js
CHANGED
|
@@ -16293,7 +16293,7 @@ var DEFAULT_GRID_SPAN = {
|
|
|
16293
16293
|
sm: 6,
|
|
16294
16294
|
xs: 6
|
|
16295
16295
|
};
|
|
16296
|
-
var WISHLIST_ITEM_OMIT_KEYS = ['
|
|
16296
|
+
var WISHLIST_ITEM_OMIT_KEYS = ['createdBy', 'insertedTimestamp', 'updatedBy', 'updatedTimestamp'];
|
|
16297
16297
|
var getStyleOverride = function getStyleOverride(styleOverrides) {
|
|
16298
16298
|
for (var _len = arguments.length, keys = new Array(_len > 1 ? _len - 1 : 0), _key = 1; _key < _len; _key++) {
|
|
16299
16299
|
keys[_key - 1] = arguments[_key];
|
|
@@ -16319,6 +16319,7 @@ var WishlistComponent = function WishlistComponent(_ref) {
|
|
|
16319
16319
|
primaryColor = _ref.primaryColor,
|
|
16320
16320
|
apiEndPoint = _ref.apiEndPoint,
|
|
16321
16321
|
onAddToCart = _ref.onAddToCart,
|
|
16322
|
+
onProductCardClick = _ref.onProductCardClick,
|
|
16322
16323
|
_ref$doNotShowPrice = _ref.doNotShowPrice,
|
|
16323
16324
|
doNotShowPrice = _ref$doNotShowPrice === void 0 ? false : _ref$doNotShowPrice;
|
|
16324
16325
|
var _useAllSystemFeatureV = useAllSystemFeatureValues({
|
|
@@ -16413,7 +16414,8 @@ var WishlistComponent = function WishlistComponent(_ref) {
|
|
|
16413
16414
|
imgNotFoundUrl: imgNotFoundUrl,
|
|
16414
16415
|
onAddToCart: onAddToCart,
|
|
16415
16416
|
allowToProcessInvoiceForOutOfStockProductsEcommerce: allowToProcessInvoiceForOutOfStockProductsEcommerce,
|
|
16416
|
-
doNotShowPrice: doNotShowPrice
|
|
16417
|
+
doNotShowPrice: doNotShowPrice,
|
|
16418
|
+
onProductCardClick: onProductCardClick
|
|
16417
16419
|
}));
|
|
16418
16420
|
})));
|
|
16419
16421
|
};
|
|
@@ -16440,7 +16442,8 @@ var ProductCard = function ProductCard(_ref3) {
|
|
|
16440
16442
|
imgNotFoundUrl = _ref3.imgNotFoundUrl,
|
|
16441
16443
|
allowToProcessInvoiceForOutOfStockProductsEcommerce = _ref3.allowToProcessInvoiceForOutOfStockProductsEcommerce,
|
|
16442
16444
|
onAddToCart = _ref3.onAddToCart,
|
|
16443
|
-
doNotShowPrice = _ref3.doNotShowPrice
|
|
16445
|
+
doNotShowPrice = _ref3.doNotShowPrice,
|
|
16446
|
+
onProductCardClick = _ref3.onProductCardClick;
|
|
16444
16447
|
var router = useRouter();
|
|
16445
16448
|
var _useState2 = useState(false),
|
|
16446
16449
|
deleteLoading = _useState2[0],
|
|
@@ -16487,8 +16490,9 @@ var ProductCard = function ProductCard(_ref3) {
|
|
|
16487
16490
|
return /*#__PURE__*/React__default.createElement(ProductCardWrapper, {
|
|
16488
16491
|
style: getStyleOverride(styleOverrides, 'productCardWrapper', 'ProductCardWrapper'),
|
|
16489
16492
|
onClick: function onClick() {
|
|
16490
|
-
|
|
16491
|
-
|
|
16493
|
+
if (typeof onProductCardClick === 'function') {
|
|
16494
|
+
onProductCardClick(product);
|
|
16495
|
+
}
|
|
16492
16496
|
}
|
|
16493
16497
|
}, /*#__PURE__*/React__default.createElement(DeleteButton, {
|
|
16494
16498
|
type: "button",
|
|
@@ -16532,8 +16536,10 @@ var ProductCard = function ProductCard(_ref3) {
|
|
|
16532
16536
|
onClick: function onClick(e) {
|
|
16533
16537
|
e.stopPropagation();
|
|
16534
16538
|
e.preventDefault();
|
|
16535
|
-
if (product !== null && product !== void 0 && product.
|
|
16536
|
-
|
|
16539
|
+
if (product !== null && product !== void 0 && product.hasChildProduct) {
|
|
16540
|
+
if (typeof onProductCardClick === 'function') {
|
|
16541
|
+
onProductCardClick(product);
|
|
16542
|
+
}
|
|
16537
16543
|
} else {
|
|
16538
16544
|
if (onAddToCart) {
|
|
16539
16545
|
var _product$quantity;
|
|
@@ -16547,7 +16553,7 @@ var ProductCard = function ProductCard(_ref3) {
|
|
|
16547
16553
|
}
|
|
16548
16554
|
}
|
|
16549
16555
|
}
|
|
16550
|
-
}, product !== null && product !== void 0 && product.hasChildProduct ? 'Select Options' : addToCartLoading ? '
|
|
16556
|
+
}, product !== null && product !== void 0 && product.hasChildProduct ? 'Select Options' : addToCartLoading ? 'Moving...' : 'Move to Cart') : /*#__PURE__*/React__default.createElement(OutOfStockButton, {
|
|
16551
16557
|
variant: "contained",
|
|
16552
16558
|
color: "primary",
|
|
16553
16559
|
disabled: true,
|