@salesgenterp/ui-components 0.4.222 → 0.4.224
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 +44 -27
- package/dist/index.js.map +1 -1
- package/dist/index.modern.js +44 -27
- package/dist/index.modern.js.map +1 -1
- package/package.json +3 -2
package/dist/index.js
CHANGED
|
@@ -1158,9 +1158,9 @@ var Dashboard = function Dashboard(_ref) {
|
|
|
1158
1158
|
defaultStoreId = _ref.defaultStoreId,
|
|
1159
1159
|
storeIdList = _ref.storeIdList,
|
|
1160
1160
|
isNightMode = _ref.isNightMode,
|
|
1161
|
-
|
|
1162
|
-
|
|
1163
|
-
|
|
1161
|
+
sectionLeftImageSection = _ref.sectionLeftImageSection,
|
|
1162
|
+
sectionRightImageSection = _ref.sectionRightImageSection,
|
|
1163
|
+
discountImageSection = _ref.discountImageSection,
|
|
1164
1164
|
hideDiscountImage = _ref.hideDiscountImage;
|
|
1165
1165
|
var _useState = React.useState({}),
|
|
1166
1166
|
customerData = _useState[0],
|
|
@@ -1337,7 +1337,7 @@ var Dashboard = function Dashboard(_ref) {
|
|
|
1337
1337
|
fontColor: fontColor,
|
|
1338
1338
|
primaryColor: primaryColor,
|
|
1339
1339
|
backgroundColor: backgroundColor
|
|
1340
|
-
}, /*#__PURE__*/React__default.createElement("span", null, currentTimeText()),
|
|
1340
|
+
}, /*#__PURE__*/React__default.createElement("span", null, currentTimeText()), /*#__PURE__*/React__default.createElement("b", null, " ", customerData === null || customerData === void 0 ? void 0 : (_customerData$custome = customerData.customerDto) === null || _customerData$custome === void 0 ? void 0 : _customerData$custome.name, "!"))), /*#__PURE__*/React__default.createElement(TotalRoot, null, /*#__PURE__*/React__default.createElement(material.Grid, {
|
|
1341
1341
|
container: true,
|
|
1342
1342
|
spacing: 3
|
|
1343
1343
|
}, totalDataSource === null || totalDataSource === void 0 ? void 0 : totalDataSource.map(function (data) {
|
|
@@ -1372,10 +1372,16 @@ var Dashboard = function Dashboard(_ref) {
|
|
|
1372
1372
|
xs: 12,
|
|
1373
1373
|
sm: 6,
|
|
1374
1374
|
md: 8
|
|
1375
|
-
}, sectionLeftImageSrc ? /*#__PURE__*/React__default.createElement(ImageContainer, {
|
|
1375
|
+
}, sectionLeftImageSection !== null && sectionLeftImageSection !== void 0 && sectionLeftImageSection.sectionLeftImageSrc ? /*#__PURE__*/React__default.createElement(ImageContainer, {
|
|
1376
1376
|
component: "img",
|
|
1377
|
-
image: sectionLeftImageSrc,
|
|
1378
|
-
alt: "image"
|
|
1377
|
+
image: sectionLeftImageSection === null || sectionLeftImageSection === void 0 ? void 0 : sectionLeftImageSection.sectionLeftImageSrc,
|
|
1378
|
+
alt: "image",
|
|
1379
|
+
style: {
|
|
1380
|
+
cursor: 'pointer'
|
|
1381
|
+
},
|
|
1382
|
+
onClick: function onClick() {
|
|
1383
|
+
(sectionLeftImageSection === null || sectionLeftImageSection === void 0 ? void 0 : sectionLeftImageSection.onClick) && (sectionLeftImageSection === null || sectionLeftImageSection === void 0 ? void 0 : sectionLeftImageSection.onClick());
|
|
1384
|
+
}
|
|
1379
1385
|
}) : /*#__PURE__*/React__default.createElement(CategoryContainer, null, /*#__PURE__*/React__default.createElement(material.Grid, {
|
|
1380
1386
|
container: true,
|
|
1381
1387
|
spacing: 2
|
|
@@ -1401,10 +1407,16 @@ var Dashboard = function Dashboard(_ref) {
|
|
|
1401
1407
|
xs: 12,
|
|
1402
1408
|
sm: 6,
|
|
1403
1409
|
md: 4
|
|
1404
|
-
}, sectionRightImageSrc ? /*#__PURE__*/React__default.createElement(ImageContainer, {
|
|
1410
|
+
}, sectionRightImageSection !== null && sectionRightImageSection !== void 0 && sectionRightImageSection.sectionRightImageSrc ? /*#__PURE__*/React__default.createElement(ImageContainer, {
|
|
1405
1411
|
component: "img",
|
|
1406
|
-
image: sectionRightImageSrc,
|
|
1407
|
-
alt: "image"
|
|
1412
|
+
image: sectionRightImageSection === null || sectionRightImageSection === void 0 ? void 0 : sectionRightImageSection.sectionRightImageSrc,
|
|
1413
|
+
alt: "image",
|
|
1414
|
+
style: {
|
|
1415
|
+
cursor: 'pointer'
|
|
1416
|
+
},
|
|
1417
|
+
onClick: function onClick() {
|
|
1418
|
+
(sectionRightImageSection === null || sectionRightImageSection === void 0 ? void 0 : sectionRightImageSection.onClick) && (sectionRightImageSection === null || sectionRightImageSection === void 0 ? void 0 : sectionRightImageSection.onClick());
|
|
1419
|
+
}
|
|
1408
1420
|
}) : /*#__PURE__*/React__default.createElement(DiscoverContainer, null, /*#__PURE__*/React__default.createElement(material.Grid, {
|
|
1409
1421
|
container: true,
|
|
1410
1422
|
spacing: 2,
|
|
@@ -1602,8 +1614,14 @@ var Dashboard = function Dashboard(_ref) {
|
|
|
1602
1614
|
xs: 12
|
|
1603
1615
|
}, /*#__PURE__*/React__default.createElement(ImageContainer, {
|
|
1604
1616
|
component: "img",
|
|
1605
|
-
image: discountImageSrc || 'https://d23gso0b80cetw.cloudfront.net/dashboard-image/Ad.png',
|
|
1606
|
-
alt: "image"
|
|
1617
|
+
image: (discountImageSection === null || discountImageSection === void 0 ? void 0 : discountImageSection.discountImageSrc) || 'https://d23gso0b80cetw.cloudfront.net/dashboard-image/Ad.png',
|
|
1618
|
+
alt: "image",
|
|
1619
|
+
style: {
|
|
1620
|
+
cursor: 'pointer'
|
|
1621
|
+
},
|
|
1622
|
+
onClick: function onClick() {
|
|
1623
|
+
(discountImageSection === null || discountImageSection === void 0 ? void 0 : discountImageSection.onClick) && (discountImageSection === null || discountImageSection === void 0 ? void 0 : discountImageSection.onClick());
|
|
1624
|
+
}
|
|
1607
1625
|
})))))))));
|
|
1608
1626
|
};
|
|
1609
1627
|
var Root$2 = styled__default.div(_templateObject$4 || (_templateObject$4 = _taggedTemplateLiteralLoose([""])));
|
|
@@ -3701,9 +3719,9 @@ var AccountDetails = function AccountDetails(_ref) {
|
|
|
3701
3719
|
path = _ref.path,
|
|
3702
3720
|
onChangePath = _ref.onChangePath,
|
|
3703
3721
|
maxWidth = _ref.maxWidth,
|
|
3704
|
-
|
|
3705
|
-
|
|
3706
|
-
|
|
3722
|
+
sectionLeftImageSection = _ref.sectionLeftImageSection,
|
|
3723
|
+
sectionRightImageSection = _ref.sectionRightImageSection,
|
|
3724
|
+
discountImageSection = _ref.discountImageSection,
|
|
3707
3725
|
hideDiscountImage = _ref.hideDiscountImage;
|
|
3708
3726
|
var serviceApiEndPoint = apiEndPoint.replace('/api', '/services/pdf');
|
|
3709
3727
|
var isMobile = useMediaQuery('(max-width:800px)');
|
|
@@ -3815,9 +3833,9 @@ var AccountDetails = function AccountDetails(_ref) {
|
|
|
3815
3833
|
storeIdList: storeIdList,
|
|
3816
3834
|
defaultStoreId: defaultStoreId,
|
|
3817
3835
|
isNightMode: isNightMode,
|
|
3818
|
-
|
|
3819
|
-
|
|
3820
|
-
|
|
3836
|
+
sectionLeftImageSection: sectionLeftImageSection,
|
|
3837
|
+
sectionRightImageSection: sectionRightImageSection,
|
|
3838
|
+
discountImageSection: discountImageSection,
|
|
3821
3839
|
hideDiscountImage: hideDiscountImage
|
|
3822
3840
|
});
|
|
3823
3841
|
case 'My Profile':
|
|
@@ -4111,15 +4129,14 @@ var CartDrawer = function CartDrawer(_ref) {
|
|
|
4111
4129
|
loading = _ref.loading,
|
|
4112
4130
|
imgnotfoundUrl = _ref.imgnotfoundUrl;
|
|
4113
4131
|
return /*#__PURE__*/React__default.createElement(React__default.Fragment, null, /*#__PURE__*/React__default.createElement(CartDrawerContainer, {
|
|
4132
|
+
className: "cartDrawer-container",
|
|
4114
4133
|
maxWidth: maxWidth
|
|
4115
4134
|
}, /*#__PURE__*/React__default.createElement(CartDrawerBar, null, /*#__PURE__*/React__default.createElement("h2", null, "Your Cart"), /*#__PURE__*/React__default.createElement(gr.GrClose, {
|
|
4116
4135
|
className: "icon",
|
|
4117
4136
|
onClick: function onClick() {
|
|
4118
4137
|
handleClose();
|
|
4119
4138
|
}
|
|
4120
|
-
})), /*#__PURE__*/React__default.createElement(material.Box, {
|
|
4121
|
-
bgcolor: "#fff"
|
|
4122
|
-
}, cartData && (cartData === null || cartData === void 0 ? void 0 : cartData.totalCartQuantity) > 0 ? /*#__PURE__*/React__default.createElement(CartDrawerProductContainer, {
|
|
4139
|
+
})), /*#__PURE__*/React__default.createElement(material.Box, null, cartData && (cartData === null || cartData === void 0 ? void 0 : cartData.totalCartQuantity) > 0 ? /*#__PURE__*/React__default.createElement(CartDrawerProductContainer, {
|
|
4123
4140
|
opacity: loading ? '.4' : '1'
|
|
4124
4141
|
}, cartData === null || cartData === void 0 ? void 0 : (_cartData$cartLineIte = cartData.cartLineItemDtoList) === null || _cartData$cartLineIte === void 0 ? void 0 : _cartData$cartLineIte.map(function (product, i) {
|
|
4125
4142
|
return /*#__PURE__*/React__default.createElement(React__default.Fragment, null, loading && /*#__PURE__*/React__default.createElement(CartDrawerLoader, null, /*#__PURE__*/React__default.createElement(reactSpinners.PuffLoader, {
|
|
@@ -4138,7 +4155,7 @@ var CartDrawer = function CartDrawer(_ref) {
|
|
|
4138
4155
|
color: color
|
|
4139
4156
|
}, /*#__PURE__*/React__default.createElement(bs.BsCartX, {
|
|
4140
4157
|
className: "icon"
|
|
4141
|
-
}), /*#__PURE__*/React__default.createElement("h6", null, "
|
|
4158
|
+
}), /*#__PURE__*/React__default.createElement("h6", null, "Oops!"), /*#__PURE__*/React__default.createElement("p", null, "your cart is empty"))), cartData && (cartData === null || cartData === void 0 ? void 0 : cartData.totalCartQuantity) > 0 && /*#__PURE__*/React__default.createElement(CartDrawerBottomSection, null, /*#__PURE__*/React__default.createElement(material.Stack, {
|
|
4142
4159
|
flexDirection: "row",
|
|
4143
4160
|
justifyContent: "space-between",
|
|
4144
4161
|
alignItems: "center",
|
|
@@ -6426,14 +6443,14 @@ var CheckoutSummary = function CheckoutSummary(_ref) {
|
|
|
6426
6443
|
className: "text"
|
|
6427
6444
|
}, "order total :"), /*#__PURE__*/React__default.createElement("h6", {
|
|
6428
6445
|
className: "total"
|
|
6429
|
-
}, renderMoney(total + ((shippingMethod === null || shippingMethod === void 0 ? void 0 : shippingMethod.amount) || 0) - (discountTotal || 0)))), discountTotal && discountTotal > 0
|
|
6446
|
+
}, renderMoney(total + ((shippingMethod === null || shippingMethod === void 0 ? void 0 : shippingMethod.amount) || 0) - (discountTotal || 0)))), discountTotal && discountTotal > 0 ? /*#__PURE__*/React__default.createElement(TextRow, null, /*#__PURE__*/React__default.createElement("p", {
|
|
6430
6447
|
className: "text"
|
|
6431
6448
|
}, "Discount Total :"), /*#__PURE__*/React__default.createElement("h6", {
|
|
6432
6449
|
className: "total",
|
|
6433
6450
|
style: {
|
|
6434
6451
|
fontSize: '1rem'
|
|
6435
6452
|
}
|
|
6436
|
-
}, renderMoney(discountTotal || 0))), /*#__PURE__*/React__default.createElement(FilledInfo, null, /*#__PURE__*/React__default.createElement("h6", {
|
|
6453
|
+
}, renderMoney(discountTotal || 0))) : null, /*#__PURE__*/React__default.createElement(FilledInfo, null, /*#__PURE__*/React__default.createElement("h6", {
|
|
6437
6454
|
className: "heading"
|
|
6438
6455
|
}, "Billing Information"), billingInformation !== null && billingInformation !== void 0 && billingInformation.title ? /*#__PURE__*/React__default.createElement(React__default.Fragment, null, /*#__PURE__*/React__default.createElement("p", {
|
|
6439
6456
|
className: "bold"
|
|
@@ -8127,7 +8144,7 @@ var Step4 = function Step4(_ref) {
|
|
|
8127
8144
|
fontSize: '0.8rem'
|
|
8128
8145
|
}
|
|
8129
8146
|
}, renderMoney(coupon === null || coupon === void 0 ? void 0 : coupon.amount))));
|
|
8130
|
-
}), discountTotal && discountTotal > 0
|
|
8147
|
+
}), discountTotal && discountTotal > 0 ? /*#__PURE__*/React__default.createElement(StyledTableRow, null, /*#__PURE__*/React__default.createElement(StyledTableCell, {
|
|
8131
8148
|
colSpan: 1,
|
|
8132
8149
|
noSmall: true
|
|
8133
8150
|
}), /*#__PURE__*/React__default.createElement(StyledTableCell, {
|
|
@@ -8140,7 +8157,7 @@ var Step4 = function Step4(_ref) {
|
|
|
8140
8157
|
align: "right"
|
|
8141
8158
|
}, /*#__PURE__*/React__default.createElement("p", {
|
|
8142
8159
|
className: "max sm primaryColor"
|
|
8143
|
-
}, renderMoney(discountTotal)))), storeCredits && storeCredits > 0
|
|
8160
|
+
}, renderMoney(discountTotal)))) : null, storeCredits && storeCredits > 0 ? /*#__PURE__*/React__default.createElement(StyledTableRow, null, /*#__PURE__*/React__default.createElement(StyledTableCell, {
|
|
8144
8161
|
colSpan: 1,
|
|
8145
8162
|
noSmall: true
|
|
8146
8163
|
}), /*#__PURE__*/React__default.createElement(StyledTableCell, {
|
|
@@ -8153,7 +8170,7 @@ var Step4 = function Step4(_ref) {
|
|
|
8153
8170
|
align: "right"
|
|
8154
8171
|
}, /*#__PURE__*/React__default.createElement("p", {
|
|
8155
8172
|
className: "max sm price"
|
|
8156
|
-
}, "- $", (storeCr === null || storeCr === void 0 ? void 0 : storeCr.toFixed(2)) || 0))), /*#__PURE__*/React__default.createElement(StyledTableRow, null, /*#__PURE__*/React__default.createElement(StyledTableCell, {
|
|
8173
|
+
}, "- $", (storeCr === null || storeCr === void 0 ? void 0 : storeCr.toFixed(2)) || 0))) : null, /*#__PURE__*/React__default.createElement(StyledTableRow, null, /*#__PURE__*/React__default.createElement(StyledTableCell, {
|
|
8157
8174
|
colSpan: 1,
|
|
8158
8175
|
noSmall: true
|
|
8159
8176
|
}), /*#__PURE__*/React__default.createElement(StyledTableCell, {
|