@salesgenterp/ui-components 0.4.310 → 0.4.311
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 +40 -23
- package/dist/index.js.map +1 -1
- package/dist/index.modern.js +41 -24
- package/dist/index.modern.js.map +1 -1
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -1881,7 +1881,6 @@ var AddAuthorizeDotNetCard = function AddAuthorizeDotNetCard(_ref) {
|
|
|
1881
1881
|
visible = _ref.visible,
|
|
1882
1882
|
onCancel = _ref.onCancel,
|
|
1883
1883
|
styles = _ref.styles,
|
|
1884
|
-
fontColor = _ref.fontColor,
|
|
1885
1884
|
customerId = _ref.customerId,
|
|
1886
1885
|
setListUpdate = _ref.setListUpdate;
|
|
1887
1886
|
var _useForm = reactHookForm.useForm({
|
|
@@ -1889,7 +1888,8 @@ var AddAuthorizeDotNetCard = function AddAuthorizeDotNetCard(_ref) {
|
|
|
1889
1888
|
}),
|
|
1890
1889
|
handleSubmit = _useForm.handleSubmit,
|
|
1891
1890
|
control = _useForm.control,
|
|
1892
|
-
setValue = _useForm.setValue
|
|
1891
|
+
setValue = _useForm.setValue,
|
|
1892
|
+
watch = _useForm.watch;
|
|
1893
1893
|
var _useState = React.useState(false),
|
|
1894
1894
|
submitLoading = _useState[0],
|
|
1895
1895
|
setSubmitLoading = _useState[1];
|
|
@@ -1899,6 +1899,11 @@ var AddAuthorizeDotNetCard = function AddAuthorizeDotNetCard(_ref) {
|
|
|
1899
1899
|
var _useState3 = React.useState([]),
|
|
1900
1900
|
states = _useState3[0],
|
|
1901
1901
|
setStates = _useState3[1];
|
|
1902
|
+
var cardNumber = watch('cardNumber');
|
|
1903
|
+
var expirationYear = watch('expirationYear');
|
|
1904
|
+
var expirationMonth = watch('expirationMonth');
|
|
1905
|
+
var firstName = watch('firstName');
|
|
1906
|
+
var lastName = watch('lastName');
|
|
1902
1907
|
var getCountryData = function getCountryData() {
|
|
1903
1908
|
try {
|
|
1904
1909
|
var _temp = _catch(function () {
|
|
@@ -2005,7 +2010,11 @@ var AddAuthorizeDotNetCard = function AddAuthorizeDotNetCard(_ref) {
|
|
|
2005
2010
|
},
|
|
2006
2011
|
onClick: onCancel
|
|
2007
2012
|
}, "Cancel"))))
|
|
2008
|
-
}, /*#__PURE__*/React__default.createElement(
|
|
2013
|
+
}, /*#__PURE__*/React__default.createElement(Cards, {
|
|
2014
|
+
expiry: (expirationMonth || '') + " " + (expirationYear || '') || '----',
|
|
2015
|
+
name: (firstName || '') + " " + (lastName || ''),
|
|
2016
|
+
number: cardNumber || ''
|
|
2017
|
+
}), /*#__PURE__*/React__default.createElement("form", null, /*#__PURE__*/React__default.createElement(material.Grid, {
|
|
2009
2018
|
container: true,
|
|
2010
2019
|
columnSpacing: 2
|
|
2011
2020
|
}, /*#__PURE__*/React__default.createElement(material.Grid, {
|
|
@@ -2017,7 +2026,7 @@ var AddAuthorizeDotNetCard = function AddAuthorizeDotNetCard(_ref) {
|
|
|
2017
2026
|
name: "firstName",
|
|
2018
2027
|
required: true,
|
|
2019
2028
|
control: control,
|
|
2020
|
-
fontColor: fontColor
|
|
2029
|
+
fontColor: styles === null || styles === void 0 ? void 0 : styles.fontColor
|
|
2021
2030
|
})), /*#__PURE__*/React__default.createElement(material.Grid, {
|
|
2022
2031
|
item: true,
|
|
2023
2032
|
xs: 12,
|
|
@@ -2027,7 +2036,7 @@ var AddAuthorizeDotNetCard = function AddAuthorizeDotNetCard(_ref) {
|
|
|
2027
2036
|
name: "lastName",
|
|
2028
2037
|
required: true,
|
|
2029
2038
|
control: control,
|
|
2030
|
-
fontColor: fontColor
|
|
2039
|
+
fontColor: styles === null || styles === void 0 ? void 0 : styles.fontColor
|
|
2031
2040
|
})), /*#__PURE__*/React__default.createElement(material.Grid, {
|
|
2032
2041
|
item: true,
|
|
2033
2042
|
xs: 12
|
|
@@ -2037,7 +2046,7 @@ var AddAuthorizeDotNetCard = function AddAuthorizeDotNetCard(_ref) {
|
|
|
2037
2046
|
type: "number",
|
|
2038
2047
|
required: true,
|
|
2039
2048
|
control: control,
|
|
2040
|
-
fontColor: fontColor
|
|
2049
|
+
fontColor: styles === null || styles === void 0 ? void 0 : styles.fontColor
|
|
2041
2050
|
})), /*#__PURE__*/React__default.createElement(material.Grid, {
|
|
2042
2051
|
item: true,
|
|
2043
2052
|
xs: 12,
|
|
@@ -2048,7 +2057,7 @@ var AddAuthorizeDotNetCard = function AddAuthorizeDotNetCard(_ref) {
|
|
|
2048
2057
|
type: "number",
|
|
2049
2058
|
required: true,
|
|
2050
2059
|
control: control,
|
|
2051
|
-
fontColor: fontColor
|
|
2060
|
+
fontColor: styles === null || styles === void 0 ? void 0 : styles.fontColor
|
|
2052
2061
|
})), /*#__PURE__*/React__default.createElement(material.Grid, {
|
|
2053
2062
|
item: true,
|
|
2054
2063
|
xs: 12,
|
|
@@ -2059,7 +2068,7 @@ var AddAuthorizeDotNetCard = function AddAuthorizeDotNetCard(_ref) {
|
|
|
2059
2068
|
type: "number",
|
|
2060
2069
|
required: true,
|
|
2061
2070
|
control: control,
|
|
2062
|
-
fontColor: fontColor
|
|
2071
|
+
fontColor: styles === null || styles === void 0 ? void 0 : styles.fontColor
|
|
2063
2072
|
})), /*#__PURE__*/React__default.createElement(material.Grid, {
|
|
2064
2073
|
item: true,
|
|
2065
2074
|
xs: 12,
|
|
@@ -2070,7 +2079,7 @@ var AddAuthorizeDotNetCard = function AddAuthorizeDotNetCard(_ref) {
|
|
|
2070
2079
|
type: "number",
|
|
2071
2080
|
required: true,
|
|
2072
2081
|
control: control,
|
|
2073
|
-
fontColor: fontColor
|
|
2082
|
+
fontColor: styles === null || styles === void 0 ? void 0 : styles.fontColor
|
|
2074
2083
|
})), /*#__PURE__*/React__default.createElement(material.Grid, {
|
|
2075
2084
|
item: true,
|
|
2076
2085
|
xs: 12,
|
|
@@ -2084,7 +2093,7 @@ var AddAuthorizeDotNetCard = function AddAuthorizeDotNetCard(_ref) {
|
|
|
2084
2093
|
valueKey: "id",
|
|
2085
2094
|
labelKey: "code",
|
|
2086
2095
|
onChangeField: onUpdateCountry,
|
|
2087
|
-
fontColor: fontColor
|
|
2096
|
+
fontColor: styles === null || styles === void 0 ? void 0 : styles.fontColor
|
|
2088
2097
|
})), /*#__PURE__*/React__default.createElement(material.Grid, {
|
|
2089
2098
|
item: true,
|
|
2090
2099
|
xs: 12,
|
|
@@ -2097,7 +2106,7 @@ var AddAuthorizeDotNetCard = function AddAuthorizeDotNetCard(_ref) {
|
|
|
2097
2106
|
options: states,
|
|
2098
2107
|
valueKey: "id",
|
|
2099
2108
|
labelKey: "name",
|
|
2100
|
-
fontColor: fontColor
|
|
2109
|
+
fontColor: styles === null || styles === void 0 ? void 0 : styles.fontColor
|
|
2101
2110
|
})), /*#__PURE__*/React__default.createElement(material.Grid, {
|
|
2102
2111
|
item: true,
|
|
2103
2112
|
xs: 12,
|
|
@@ -2107,7 +2116,7 @@ var AddAuthorizeDotNetCard = function AddAuthorizeDotNetCard(_ref) {
|
|
|
2107
2116
|
name: "city",
|
|
2108
2117
|
required: true,
|
|
2109
2118
|
control: control,
|
|
2110
|
-
fontColor: fontColor
|
|
2119
|
+
fontColor: styles === null || styles === void 0 ? void 0 : styles.fontColor
|
|
2111
2120
|
})), /*#__PURE__*/React__default.createElement(material.Grid, {
|
|
2112
2121
|
item: true,
|
|
2113
2122
|
xs: 12,
|
|
@@ -2117,7 +2126,7 @@ var AddAuthorizeDotNetCard = function AddAuthorizeDotNetCard(_ref) {
|
|
|
2117
2126
|
name: "zipcode",
|
|
2118
2127
|
required: true,
|
|
2119
2128
|
control: control,
|
|
2120
|
-
fontColor: fontColor
|
|
2129
|
+
fontColor: styles === null || styles === void 0 ? void 0 : styles.fontColor
|
|
2121
2130
|
}))))));
|
|
2122
2131
|
};
|
|
2123
2132
|
|
|
@@ -2128,7 +2137,6 @@ var PaymentModal = function PaymentModal(_ref) {
|
|
|
2128
2137
|
visible = _ref.visible,
|
|
2129
2138
|
onCancel = _ref.onCancel,
|
|
2130
2139
|
styles = _ref.styles,
|
|
2131
|
-
fontColor = _ref.fontColor,
|
|
2132
2140
|
orderId = _ref.orderId,
|
|
2133
2141
|
storeIdList = _ref.storeIdList;
|
|
2134
2142
|
var _useState = React.useState(),
|
|
@@ -2289,7 +2297,8 @@ var PaymentModal = function PaymentModal(_ref) {
|
|
|
2289
2297
|
}
|
|
2290
2298
|
},
|
|
2291
2299
|
customerId: orderDto === null || orderDto === void 0 ? void 0 : orderDto.customerId,
|
|
2292
|
-
setListUpdate: setListUpdate
|
|
2300
|
+
setListUpdate: setListUpdate,
|
|
2301
|
+
styles: styles
|
|
2293
2302
|
}), visible && /*#__PURE__*/React__default.createElement(MuiModal, {
|
|
2294
2303
|
onClose: onCancel,
|
|
2295
2304
|
"aria-labelledby": "customized-dialog-title",
|
|
@@ -2341,7 +2350,7 @@ var PaymentModal = function PaymentModal(_ref) {
|
|
|
2341
2350
|
type: "number",
|
|
2342
2351
|
required: true,
|
|
2343
2352
|
control: control,
|
|
2344
|
-
fontColor: fontColor,
|
|
2353
|
+
fontColor: styles === null || styles === void 0 ? void 0 : styles.fontColor,
|
|
2345
2354
|
max: orderDto === null || orderDto === void 0 ? void 0 : orderDto.dueAmount
|
|
2346
2355
|
})), /*#__PURE__*/React__default.createElement(material.Grid, {
|
|
2347
2356
|
item: true,
|
|
@@ -2353,7 +2362,7 @@ var PaymentModal = function PaymentModal(_ref) {
|
|
|
2353
2362
|
required: true,
|
|
2354
2363
|
disabled: true,
|
|
2355
2364
|
control: control,
|
|
2356
|
-
fontColor: fontColor
|
|
2365
|
+
fontColor: styles === null || styles === void 0 ? void 0 : styles.fontColor
|
|
2357
2366
|
})), /*#__PURE__*/React__default.createElement(material.Grid, {
|
|
2358
2367
|
item: true,
|
|
2359
2368
|
xs: 12,
|
|
@@ -2363,7 +2372,7 @@ var PaymentModal = function PaymentModal(_ref) {
|
|
|
2363
2372
|
name: "paymentModeId",
|
|
2364
2373
|
required: true,
|
|
2365
2374
|
control: control,
|
|
2366
|
-
fontColor: fontColor,
|
|
2375
|
+
fontColor: styles === null || styles === void 0 ? void 0 : styles.fontColor,
|
|
2367
2376
|
valueKey: "id",
|
|
2368
2377
|
labelKey: "name",
|
|
2369
2378
|
options: (_filter = lodash.filter(paymentMethods || [], {
|
|
@@ -2389,7 +2398,7 @@ var PaymentModal = function PaymentModal(_ref) {
|
|
|
2389
2398
|
name: "authorizeDotNetCard",
|
|
2390
2399
|
required: true,
|
|
2391
2400
|
control: control,
|
|
2392
|
-
fontColor: fontColor,
|
|
2401
|
+
fontColor: styles === null || styles === void 0 ? void 0 : styles.fontColor,
|
|
2393
2402
|
options: customerCreditCards === null || customerCreditCards === void 0 ? void 0 : (_customerCreditCards$4 = customerCreditCards.profile) === null || _customerCreditCards$4 === void 0 ? void 0 : (_customerCreditCards$5 = _customerCreditCards$4.paymentProfiles) === null || _customerCreditCards$5 === void 0 ? void 0 : _customerCreditCards$5.map(function (profile) {
|
|
2394
2403
|
var _profile$payment, _profile$payment$cred, _profile$payment2, _profile$payment2$cre, _profile$payment2$cre2, _profile$payment2$cre3;
|
|
2395
2404
|
return {
|
|
@@ -2398,12 +2407,17 @@ var PaymentModal = function PaymentModal(_ref) {
|
|
|
2398
2407
|
};
|
|
2399
2408
|
})
|
|
2400
2409
|
})), /*#__PURE__*/React__default.createElement(MuiButton, {
|
|
2401
|
-
variant: "outlined",
|
|
2402
2410
|
onClick: function onClick() {
|
|
2403
2411
|
setOpenAddNewCardModal(true);
|
|
2404
2412
|
setValue('authorizeDotNetCard', null);
|
|
2405
|
-
}
|
|
2406
|
-
|
|
2413
|
+
},
|
|
2414
|
+
primaryColor: styles === null || styles === void 0 ? void 0 : styles.primaryColor,
|
|
2415
|
+
startIcon: /*#__PURE__*/React__default.createElement(ai.AiOutlinePlus, {
|
|
2416
|
+
style: {
|
|
2417
|
+
fontSize: 'inherit'
|
|
2418
|
+
}
|
|
2419
|
+
})
|
|
2420
|
+
}, /*#__PURE__*/React__default.createElement("span", null, "Add New Card"))))))));
|
|
2407
2421
|
};
|
|
2408
2422
|
|
|
2409
2423
|
var _templateObject$c, _templateObject2$6, _templateObject3$3, _templateObject4$1, _templateObject5$1, _templateObject6$1, _templateObject7$1, _templateObject8$1, _templateObject9$1, _templateObject10$1, _templateObject11, _templateObject12, _templateObject13, _templateObject14, _templateObject15, _templateObject16, _templateObject17, _templateObject18;
|
|
@@ -2426,6 +2440,7 @@ var Dashboard = function Dashboard(_ref) {
|
|
|
2426
2440
|
serviceApiEndPoint = _ref.serviceApiEndPoint,
|
|
2427
2441
|
token = _ref.token,
|
|
2428
2442
|
queryParams = _ref.queryParams,
|
|
2443
|
+
styles = _ref.styles,
|
|
2429
2444
|
primaryColor = _ref.primaryColor,
|
|
2430
2445
|
secondaryColor = _ref.secondaryColor,
|
|
2431
2446
|
backgroundColor = _ref.backgroundColor,
|
|
@@ -2663,7 +2678,8 @@ var Dashboard = function Dashboard(_ref) {
|
|
|
2663
2678
|
return Promise.reject(e);
|
|
2664
2679
|
}
|
|
2665
2680
|
},
|
|
2666
|
-
orderId: isPaymentModal === null || isPaymentModal === void 0 ? void 0 : isPaymentModal.orderId
|
|
2681
|
+
orderId: isPaymentModal === null || isPaymentModal === void 0 ? void 0 : isPaymentModal.orderId,
|
|
2682
|
+
styles: styles
|
|
2667
2683
|
}), /*#__PURE__*/React__default.createElement(material.Grid, {
|
|
2668
2684
|
container: true,
|
|
2669
2685
|
columnSpacing: 4
|
|
@@ -4468,6 +4484,7 @@ var AccountDetails = function AccountDetails(_ref) {
|
|
|
4468
4484
|
serviceApiEndPoint: serviceApiEndPoint,
|
|
4469
4485
|
token: token,
|
|
4470
4486
|
queryParams: queryParams,
|
|
4487
|
+
styles: colors,
|
|
4471
4488
|
primaryColor: colors.primaryColor,
|
|
4472
4489
|
secondaryColor: colors.secondaryColor,
|
|
4473
4490
|
backgroundColor: colors.backgroundColor,
|