@salesgenterp/ui-components 0.4.276 → 0.4.277
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 +10 -4
- package/dist/index.js.map +1 -1
- package/dist/index.modern.js +10 -4
- package/dist/index.modern.js.map +1 -1
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -5888,6 +5888,7 @@ var headCells = [{
|
|
|
5888
5888
|
function EnhancedTableHead(props) {
|
|
5889
5889
|
var _styles$cartSummary, _styles$cartSummary2;
|
|
5890
5890
|
var onSelectAllClick = props.onSelectAllClick,
|
|
5891
|
+
disabledSelectAllProductCheckbox = props.disabledSelectAllProductCheckbox,
|
|
5891
5892
|
order = props.order,
|
|
5892
5893
|
orderBy = props.orderBy,
|
|
5893
5894
|
numSelected = props.numSelected,
|
|
@@ -5913,6 +5914,7 @@ function EnhancedTableHead(props) {
|
|
|
5913
5914
|
indeterminate: numSelected > 0 && numSelected < rowCount,
|
|
5914
5915
|
checked: rowCount > 0 && numSelected === rowCount,
|
|
5915
5916
|
onChange: onSelectAllClick,
|
|
5917
|
+
disabled: disabledSelectAllProductCheckbox,
|
|
5916
5918
|
inputProps: {
|
|
5917
5919
|
'aria-label': 'select all products'
|
|
5918
5920
|
},
|
|
@@ -5958,7 +5960,8 @@ function EnhancedTable(_ref) {
|
|
|
5958
5960
|
handleIncrementDecrement = _ref.handleIncrementDecrement,
|
|
5959
5961
|
handleRemoveProduct = _ref.handleRemoveProduct,
|
|
5960
5962
|
handleRemoveAll = _ref.handleRemoveAll,
|
|
5961
|
-
styles = _ref.styles
|
|
5963
|
+
styles = _ref.styles,
|
|
5964
|
+
disabledSelectAllProductCheckbox = _ref.disabledSelectAllProductCheckbox;
|
|
5962
5965
|
var cartList = cartData === null || cartData === void 0 ? void 0 : (_cartData$cartLineIte = cartData.cartLineItemDtoList) === null || _cartData$cartLineIte === void 0 ? void 0 : _cartData$cartLineIte.map(function (li) {
|
|
5963
5966
|
return _extends({}, li, {
|
|
5964
5967
|
subtotal: li.standardPrice * li.quantity
|
|
@@ -6049,7 +6052,8 @@ function EnhancedTable(_ref) {
|
|
|
6049
6052
|
onSelectAllClick: handleSelectAllClick,
|
|
6050
6053
|
onRequestSort: handleRequestSort,
|
|
6051
6054
|
rowCount: cartArray === null || cartArray === void 0 ? void 0 : cartArray.length,
|
|
6052
|
-
styles: styles
|
|
6055
|
+
styles: styles,
|
|
6056
|
+
disabledSelectAllProductCheckbox: disabledSelectAllProductCheckbox
|
|
6053
6057
|
}), /*#__PURE__*/React.createElement(TableBody, null, (_sortBy = lodash.sortBy(cartArray, function (o) {
|
|
6054
6058
|
return !((o === null || o === void 0 ? void 0 : o.quantity) > (o === null || o === void 0 ? void 0 : o.availableQuantity));
|
|
6055
6059
|
})) === null || _sortBy === void 0 ? void 0 : _sortBy.map(function (row, index) {
|
|
@@ -6414,7 +6418,8 @@ var CartPageComponent = function CartPageComponent(_ref) {
|
|
|
6414
6418
|
imgnotfoundUrl = _ref.imgnotfoundUrl,
|
|
6415
6419
|
styles = _ref.styles,
|
|
6416
6420
|
onChangeDiscountCoupon = _ref.onChangeDiscountCoupon,
|
|
6417
|
-
discountCoupons = _ref.discountCoupons
|
|
6421
|
+
discountCoupons = _ref.discountCoupons,
|
|
6422
|
+
disabledSelectAllProductCheckbox = _ref.disabledSelectAllProductCheckbox;
|
|
6418
6423
|
var _useState = React.useState([]),
|
|
6419
6424
|
storeData = _useState[0],
|
|
6420
6425
|
setStoreData = _useState[1];
|
|
@@ -6467,7 +6472,8 @@ var CartPageComponent = function CartPageComponent(_ref) {
|
|
|
6467
6472
|
styles: styles,
|
|
6468
6473
|
handleIncrementDecrement: handleIncrementDecrement,
|
|
6469
6474
|
handleRemoveProduct: handleRemoveProduct,
|
|
6470
|
-
handleRemoveAll: handleRemoveAll
|
|
6475
|
+
handleRemoveAll: handleRemoveAll,
|
|
6476
|
+
disabledSelectAllProductCheckbox: disabledSelectAllProductCheckbox
|
|
6471
6477
|
}), /*#__PURE__*/React__default.createElement(CartSummary, {
|
|
6472
6478
|
apiEndPoint: apiEndPoint,
|
|
6473
6479
|
token: token,
|