ordering-ui-admin-external 1.45.33 → 1.45.35
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/_bundles/{ordering-ui-admin.311f7a1a7de9e25319a2.js → ordering-ui-admin.f24191efb4fdfcd3235d.js} +2 -2
- package/_modules/components/BusinessIntelligence/AnalyticsMap/index.js +1 -0
- package/_modules/components/Stores/ProductDetailsAdvanced/index.js +22 -23
- package/_modules/components/Stores/SingleBusiness/index.js +2 -0
- package/_modules/components/Stores/index.js +8 -1
- package/_modules/index.js +12 -0
- package/_modules/styles/Select/FirstSelect/index.js +1 -1
- package/package.json +2 -2
- package/src/components/BusinessIntelligence/AnalyticsMap/index.js +1 -0
- package/src/components/Stores/ProductDetailsAdvanced/index.js +36 -27
- package/src/components/Stores/SingleBusiness/index.js +2 -0
- package/src/components/Stores/index.js +3 -1
- package/src/index.js +6 -2
- package/src/styles/Select/FirstSelect/index.js +1 -1
- /package/_bundles/{ordering-ui-admin.311f7a1a7de9e25319a2.js.LICENSE.txt → ordering-ui-admin.f24191efb4fdfcd3235d.js.LICENSE.txt} +0 -0
|
@@ -66,6 +66,7 @@ var AnalyticsMap = exports.AnalyticsMap = function AnalyticsMap(props) {
|
|
|
66
66
|
isHeatMap: true,
|
|
67
67
|
isHeat: isHeat,
|
|
68
68
|
markerIcon: theme === null || theme === void 0 || (_theme$images = theme.images) === null || _theme$images === void 0 || (_theme$images = _theme$images.icons) === null || _theme$images === void 0 ? void 0 : _theme$images.mapMarker,
|
|
69
|
+
disableAutoFit: true,
|
|
69
70
|
onError: function onError(error) {
|
|
70
71
|
return console.error('Google Maps error:', error);
|
|
71
72
|
}
|
|
@@ -34,7 +34,7 @@ function _arrayLikeToArray(r, a) { (null == a || a > r.length) && (a = r.length)
|
|
|
34
34
|
function _iterableToArrayLimit(r, l) { var t = null == r ? null : "undefined" != typeof Symbol && r[Symbol.iterator] || r["@@iterator"]; if (null != t) { var e, n, i, u, a = [], f = !0, o = !1; try { if (i = (t = t.call(r)).next, 0 === l) { if (Object(t) !== t) return; f = !1; } else for (; !(f = (e = i.call(t)).done) && (a.push(e.value), a.length !== l); f = !0); } catch (r) { o = !0, n = r; } finally { try { if (!f && null != t.return && (u = t.return(), Object(u) !== u)) return; } finally { if (o) throw n; } } return a; } }
|
|
35
35
|
function _arrayWithHoles(r) { if (Array.isArray(r)) return r; }
|
|
36
36
|
var ProductDetailsAdvancedUI = function ProductDetailsAdvancedUI(props) {
|
|
37
|
-
var _formState$changes10, _productState$estimat, _taxSelected$value,
|
|
37
|
+
var _formState$changes10, _productState$estimat, _taxSelected$value, _feesSelected$value, _productState$cost_pr, _productState$cost_of, _productState$minimum, _productState$maximum, _productState$calorie, _productState$weight, _productState$weight_;
|
|
38
38
|
var formState = props.formState,
|
|
39
39
|
productState = props.productState,
|
|
40
40
|
handleClickProperty = props.handleClickProperty,
|
|
@@ -44,12 +44,13 @@ var ProductDetailsAdvancedUI = function ProductDetailsAdvancedUI(props) {
|
|
|
44
44
|
setTaxToEdit = props.setTaxToEdit,
|
|
45
45
|
handleSaveTax = props.handleSaveTax,
|
|
46
46
|
handleChangeTax = props.handleChangeTax,
|
|
47
|
-
formTaxChanges = props.formTaxChanges,
|
|
48
47
|
handleDeleteTax = props.handleDeleteTax,
|
|
49
48
|
setAlertState = props.setAlertState,
|
|
50
49
|
alertState = props.alertState,
|
|
51
50
|
fees = props.fees,
|
|
52
|
-
handleUpdateClick = props.handleUpdateClick
|
|
51
|
+
handleUpdateClick = props.handleUpdateClick,
|
|
52
|
+
formTaxChanges = props.formTaxChanges,
|
|
53
|
+
setFormTaxChanges = props.setFormTaxChanges;
|
|
53
54
|
var formMethods = (0, _reactHookForm.useForm)();
|
|
54
55
|
var _useLanguage = (0, _orderingComponentsAdminExternal.useLanguage)(),
|
|
55
56
|
_useLanguage2 = _slicedToArray(_useLanguage, 2),
|
|
@@ -78,7 +79,7 @@ var ProductDetailsAdvancedUI = function ProductDetailsAdvancedUI(props) {
|
|
|
78
79
|
setFeesOptions = _useState8[1];
|
|
79
80
|
var _useState9 = (0, _react.useState)(null),
|
|
80
81
|
_useState10 = _slicedToArray(_useState9, 2),
|
|
81
|
-
|
|
82
|
+
feesSelected = _useState10[0],
|
|
82
83
|
setFeeSelected = _useState10[1];
|
|
83
84
|
var _useState11 = (0, _react.useState)(null),
|
|
84
85
|
_useState12 = _slicedToArray(_useState11, 2),
|
|
@@ -138,6 +139,13 @@ var ProductDetailsAdvancedUI = function ProductDetailsAdvancedUI(props) {
|
|
|
138
139
|
payload: null
|
|
139
140
|
});
|
|
140
141
|
};
|
|
142
|
+
var handleCloseModal = function handleCloseModal() {
|
|
143
|
+
setTaxToEdit({
|
|
144
|
+
action: null,
|
|
145
|
+
payload: null
|
|
146
|
+
});
|
|
147
|
+
setFormTaxChanges({});
|
|
148
|
+
};
|
|
141
149
|
var getTaxes = /*#__PURE__*/function () {
|
|
142
150
|
var _ref = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee() {
|
|
143
151
|
var inheritOption, addTaxOption, taxesOptions;
|
|
@@ -169,7 +177,8 @@ var ProductDetailsAdvancedUI = function ProductDetailsAdvancedUI(props) {
|
|
|
169
177
|
deleteFunctionality: (user === null || user === void 0 ? void 0 : user.level) === 0,
|
|
170
178
|
rate: tax.rate,
|
|
171
179
|
type: tax.type,
|
|
172
|
-
description: tax.description
|
|
180
|
+
description: tax.description,
|
|
181
|
+
order_type_rates: tax.order_type_rates
|
|
173
182
|
};
|
|
174
183
|
})), [addTaxOption]);
|
|
175
184
|
setTaxesOption(taxesOptions);
|
|
@@ -238,10 +247,10 @@ var ProductDetailsAdvancedUI = function ProductDetailsAdvancedUI(props) {
|
|
|
238
247
|
};
|
|
239
248
|
(0, _react.useEffect)(function () {
|
|
240
249
|
if (taxes) getTaxes();
|
|
241
|
-
}, [JSON.stringify(taxes)]);
|
|
250
|
+
}, [JSON.stringify(taxes), productState === null || productState === void 0 ? void 0 : productState.tax_id]);
|
|
242
251
|
(0, _react.useEffect)(function () {
|
|
243
252
|
if (fees) getFees();
|
|
244
|
-
}, [JSON.stringify(fees)]);
|
|
253
|
+
}, [JSON.stringify(fees), productState === null || productState === void 0 ? void 0 : productState.fee_id]);
|
|
245
254
|
(0, _react.useEffect)(function () {
|
|
246
255
|
if (taxToDelete.action) {
|
|
247
256
|
setAlertState({
|
|
@@ -373,9 +382,9 @@ var ProductDetailsAdvancedUI = function ProductDetailsAdvancedUI(props) {
|
|
|
373
382
|
}
|
|
374
383
|
})), /*#__PURE__*/_react.default.createElement(_styles2.LabelCustom, {
|
|
375
384
|
htmlFor: "fees"
|
|
376
|
-
}, t('FEES', 'Fees')), /*#__PURE__*/_react.default.createElement(_styles2.TypeSelectWrapper, null,
|
|
377
|
-
placeholder:
|
|
378
|
-
defaultValue: (
|
|
385
|
+
}, t('FEES', 'Fees')), /*#__PURE__*/_react.default.createElement(_styles2.TypeSelectWrapper, null, feesSelected && /*#__PURE__*/_react.default.createElement(_FirstSelect.Select, {
|
|
386
|
+
placeholder: feesSelected.showOnSelected,
|
|
387
|
+
defaultValue: (_feesSelected$value = feesSelected === null || feesSelected === void 0 ? void 0 : feesSelected.value) !== null && _feesSelected$value !== void 0 ? _feesSelected$value : 'inherit',
|
|
379
388
|
options: feesOptions,
|
|
380
389
|
onChange: function onChange(val) {
|
|
381
390
|
return handleClickProperty('fee_id', val === 'inherit' ? null : val);
|
|
@@ -560,28 +569,18 @@ var ProductDetailsAdvancedUI = function ProductDetailsAdvancedUI(props) {
|
|
|
560
569
|
color: "primary",
|
|
561
570
|
borderRadius: "7.6px",
|
|
562
571
|
disabled: formState.loading || Object.keys(formState === null || formState === void 0 ? void 0 : formState.changes).length === 0
|
|
563
|
-
}, formState !== null && formState !== void 0 && formState.loading ? t('LOADING', 'Loading') : t('SAVE', 'Save')), /*#__PURE__*/_react.default.createElement(_Shared.Modal, {
|
|
572
|
+
}, formState !== null && formState !== void 0 && formState.loading ? t('LOADING', 'Loading') : t('SAVE', 'Save')), !!(taxToEdit !== null && taxToEdit !== void 0 && taxToEdit.action) && /*#__PURE__*/_react.default.createElement(_Shared.Modal, {
|
|
564
573
|
open: !!(taxToEdit !== null && taxToEdit !== void 0 && taxToEdit.action),
|
|
565
574
|
width: "80%",
|
|
566
575
|
padding: "30px",
|
|
567
576
|
title: typeof (taxToEdit === null || taxToEdit === void 0 ? void 0 : taxToEdit.payload) === 'boolean' ? t("ADD_".concat(getTaxOrFeeString(taxToEdit === null || taxToEdit === void 0 ? void 0 : taxToEdit.action).toUpperCase()), "Add ".concat(getTaxOrFeeString(taxToEdit === null || taxToEdit === void 0 ? void 0 : taxToEdit.action))) : t("EDIT_".concat(getTaxOrFeeString(taxToEdit === null || taxToEdit === void 0 ? void 0 : taxToEdit.action).toUpperCase()), "Edit ".concat(getTaxOrFeeString(taxToEdit === null || taxToEdit === void 0 ? void 0 : taxToEdit.action))),
|
|
568
|
-
onClose:
|
|
569
|
-
return setTaxToEdit({
|
|
570
|
-
action: null,
|
|
571
|
-
payload: null
|
|
572
|
-
});
|
|
573
|
-
}
|
|
577
|
+
onClose: handleCloseModal
|
|
574
578
|
}, /*#__PURE__*/_react.default.createElement(_EditTaxManager.EditTaxManager, {
|
|
575
579
|
type: taxToEdit === null || taxToEdit === void 0 ? void 0 : taxToEdit.action,
|
|
576
580
|
data: taxToEdit === null || taxToEdit === void 0 ? void 0 : taxToEdit.payload,
|
|
577
581
|
onChange: handleChangeTax,
|
|
578
582
|
formChanges: formTaxChanges,
|
|
579
|
-
onClose:
|
|
580
|
-
return setTaxToEdit({
|
|
581
|
-
action: null,
|
|
582
|
-
payload: null
|
|
583
|
-
});
|
|
584
|
-
},
|
|
583
|
+
onClose: handleCloseModal,
|
|
585
584
|
handleSave: handleSaveTax
|
|
586
585
|
})), /*#__PURE__*/_react.default.createElement(_Shared.Alert, {
|
|
587
586
|
title: taxToDelete.action ? t("DELETE_".concat(getTaxOrFeeString(taxToDelete === null || taxToDelete === void 0 ? void 0 : taxToDelete.action).toUpperCase()), "Delete ".concat(getTaxOrFeeString(taxToDelete === null || taxToDelete === void 0 ? void 0 : taxToDelete.action))) : t('ERROR'),
|
|
@@ -160,6 +160,8 @@ var SingleBusinessUI = function SingleBusinessUI(props) {
|
|
|
160
160
|
var SingleBusiness = exports.SingleBusiness = function SingleBusiness(props) {
|
|
161
161
|
var isSkeleton = props.isSkeleton;
|
|
162
162
|
var singleBusinessProps = _objectSpread(_objectSpread({}, props), {}, {
|
|
163
|
+
notGetSites: true,
|
|
164
|
+
notGetTaxes: true,
|
|
163
165
|
UIComponent: SingleBusinessUI
|
|
164
166
|
});
|
|
165
167
|
return /*#__PURE__*/_react.default.createElement(_react.default.Fragment, null, isSkeleton ? /*#__PURE__*/_react.default.createElement(SingleBusinessUI, props) : /*#__PURE__*/_react.default.createElement(_orderingComponentsAdminExternal.BusinessDetails, singleBusinessProps));
|
|
@@ -483,6 +483,12 @@ Object.defineProperty(exports, "PaymentOption", {
|
|
|
483
483
|
return _PaymentOption.PaymentOption;
|
|
484
484
|
}
|
|
485
485
|
});
|
|
486
|
+
Object.defineProperty(exports, "PaymentOptionCredomatic", {
|
|
487
|
+
enumerable: true,
|
|
488
|
+
get: function get() {
|
|
489
|
+
return _PaymentOptionCredomatic.PaymentOptionCredomatic;
|
|
490
|
+
}
|
|
491
|
+
});
|
|
486
492
|
Object.defineProperty(exports, "PaymentOptionMethods", {
|
|
487
493
|
enumerable: true,
|
|
488
494
|
get: function get() {
|
|
@@ -828,4 +834,5 @@ var _SpoonityApiKey = require("./SpoonityApiKey");
|
|
|
828
834
|
var _BusinessPlaceGroupList = require("./BusinessPlaceGroupList");
|
|
829
835
|
var _BusinessPlaceGroup = require("./BusinessPlaceGroup");
|
|
830
836
|
var _BusinessPlace = require("./BusinessPlace");
|
|
831
|
-
var _BusinessAddStore = require("./BusinessAddStore");
|
|
837
|
+
var _BusinessAddStore = require("./BusinessAddStore");
|
|
838
|
+
var _PaymentOptionCredomatic = require("./PaymentOptionCredomatic");
|
package/_modules/index.js
CHANGED
|
@@ -765,6 +765,12 @@ Object.defineProperty(exports, "Cms", {
|
|
|
765
765
|
return _Settings.Cms;
|
|
766
766
|
}
|
|
767
767
|
});
|
|
768
|
+
Object.defineProperty(exports, "ColorPicker", {
|
|
769
|
+
enumerable: true,
|
|
770
|
+
get: function get() {
|
|
771
|
+
return _Shared.ColorPicker;
|
|
772
|
+
}
|
|
773
|
+
});
|
|
768
774
|
Object.defineProperty(exports, "ColumnAllowSettingPopover", {
|
|
769
775
|
enumerable: true,
|
|
770
776
|
get: function get() {
|
|
@@ -1677,6 +1683,12 @@ Object.defineProperty(exports, "PaymentOption", {
|
|
|
1677
1683
|
return _Stores.PaymentOption;
|
|
1678
1684
|
}
|
|
1679
1685
|
});
|
|
1686
|
+
Object.defineProperty(exports, "PaymentOptionCredomatic", {
|
|
1687
|
+
enumerable: true,
|
|
1688
|
+
get: function get() {
|
|
1689
|
+
return _Stores.PaymentOptionCredomatic;
|
|
1690
|
+
}
|
|
1691
|
+
});
|
|
1680
1692
|
Object.defineProperty(exports, "PaymentOptionMethods", {
|
|
1681
1693
|
enumerable: true,
|
|
1682
1694
|
get: function get() {
|
|
@@ -151,7 +151,7 @@ var Select = exports.Select = function Select(props) {
|
|
|
151
151
|
return onEdit(option, i);
|
|
152
152
|
},
|
|
153
153
|
className: "edit"
|
|
154
|
-
}, t('EDIT', 'Edit')), option.deleteFunctionality && /*#__PURE__*/_react.default.createElement(_BsTrash.default, {
|
|
154
|
+
}, t('EDIT', 'Edit')), option.deleteFunctionality && onDelete && /*#__PURE__*/_react.default.createElement(_BsTrash.default, {
|
|
155
155
|
className: "delete",
|
|
156
156
|
onClick: function onClick() {
|
|
157
157
|
return onDelete(option.value);
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "ordering-ui-admin-external",
|
|
3
|
-
"version": "1.45.
|
|
3
|
+
"version": "1.45.35",
|
|
4
4
|
"description": "Ordering UI Admin Components",
|
|
5
5
|
"main": "./_modules/index.js",
|
|
6
6
|
"exports": {
|
|
@@ -83,7 +83,7 @@
|
|
|
83
83
|
"lodash": "^4.17.20",
|
|
84
84
|
"moment": "^2.29.1",
|
|
85
85
|
"moment-range": "^4.0.2",
|
|
86
|
-
"ordering-components-admin-external": "1.43.
|
|
86
|
+
"ordering-components-admin-external": "1.43.79",
|
|
87
87
|
"polished": "^3.6.7",
|
|
88
88
|
"prop-types": "^15.7.2",
|
|
89
89
|
"react-big-calendar": "^1.4.2",
|
|
@@ -34,12 +34,13 @@ const ProductDetailsAdvancedUI = (props) => {
|
|
|
34
34
|
setTaxToEdit,
|
|
35
35
|
handleSaveTax,
|
|
36
36
|
handleChangeTax,
|
|
37
|
-
formTaxChanges,
|
|
38
37
|
handleDeleteTax,
|
|
39
38
|
setAlertState,
|
|
40
39
|
alertState,
|
|
41
40
|
fees,
|
|
42
|
-
handleUpdateClick
|
|
41
|
+
handleUpdateClick,
|
|
42
|
+
formTaxChanges,
|
|
43
|
+
setFormTaxChanges
|
|
43
44
|
} = props
|
|
44
45
|
|
|
45
46
|
const formMethods = useForm()
|
|
@@ -50,7 +51,7 @@ const ProductDetailsAdvancedUI = (props) => {
|
|
|
50
51
|
const [isShowPriceByWeight, setIsShowPriceByWeight] = useState(false)
|
|
51
52
|
const [taxesOption, setTaxesOption] = useState([])
|
|
52
53
|
const [feesOptions, setFeesOptions] = useState([])
|
|
53
|
-
const [
|
|
54
|
+
const [feesSelected, setFeeSelected] = useState(null)
|
|
54
55
|
const [taxSelected, setTaxSelected] = useState(null)
|
|
55
56
|
const [taxToDelete, setTaxToDelete] = useState({ action: null, id: null })
|
|
56
57
|
|
|
@@ -102,6 +103,11 @@ const ProductDetailsAdvancedUI = (props) => {
|
|
|
102
103
|
setTaxToDelete({ action: null, payload: null })
|
|
103
104
|
}
|
|
104
105
|
|
|
106
|
+
const handleCloseModal = () => {
|
|
107
|
+
setTaxToEdit({ action: null, payload: null })
|
|
108
|
+
setFormTaxChanges({})
|
|
109
|
+
}
|
|
110
|
+
|
|
105
111
|
const getTaxes = async () => {
|
|
106
112
|
const inheritOption = {
|
|
107
113
|
name: t('INHERIT_FROM_BUSINESS', 'Inherit from business'),
|
|
@@ -129,7 +135,8 @@ const ProductDetailsAdvancedUI = (props) => {
|
|
|
129
135
|
deleteFunctionality: user?.level === 0,
|
|
130
136
|
rate: tax.rate,
|
|
131
137
|
type: tax.type,
|
|
132
|
-
description: tax.description
|
|
138
|
+
description: tax.description,
|
|
139
|
+
order_type_rates: tax.order_type_rates
|
|
133
140
|
})),
|
|
134
141
|
addTaxOption
|
|
135
142
|
]
|
|
@@ -194,11 +201,11 @@ const ProductDetailsAdvancedUI = (props) => {
|
|
|
194
201
|
|
|
195
202
|
useEffect(() => {
|
|
196
203
|
if (taxes) getTaxes()
|
|
197
|
-
}, [JSON.stringify(taxes)])
|
|
204
|
+
}, [JSON.stringify(taxes), productState?.tax_id])
|
|
198
205
|
|
|
199
206
|
useEffect(() => {
|
|
200
207
|
if (fees) getFees()
|
|
201
|
-
}, [JSON.stringify(fees)])
|
|
208
|
+
}, [JSON.stringify(fees), productState?.fee_id])
|
|
202
209
|
|
|
203
210
|
useEffect(() => {
|
|
204
211
|
if (taxToDelete.action) {
|
|
@@ -331,10 +338,10 @@ const ProductDetailsAdvancedUI = (props) => {
|
|
|
331
338
|
</TypeSelectWrapper>
|
|
332
339
|
<LabelCustom htmlFor='fees'>{t('FEES', 'Fees')}</LabelCustom>
|
|
333
340
|
<TypeSelectWrapper>
|
|
334
|
-
{
|
|
341
|
+
{feesSelected && (
|
|
335
342
|
<Select
|
|
336
|
-
placeholder={
|
|
337
|
-
defaultValue={
|
|
343
|
+
placeholder={feesSelected.showOnSelected}
|
|
344
|
+
defaultValue={feesSelected?.value ?? 'inherit'}
|
|
338
345
|
options={feesOptions}
|
|
339
346
|
onChange={(val) => handleClickProperty('fee_id', val === 'inherit' ? null : val)}
|
|
340
347
|
onEdit={(val) => setTaxToEdit({ action: 'fees', payload: val })}
|
|
@@ -526,24 +533,26 @@ const ProductDetailsAdvancedUI = (props) => {
|
|
|
526
533
|
>
|
|
527
534
|
{formState?.loading ? t('LOADING', 'Loading') : t('SAVE', 'Save')}
|
|
528
535
|
</Button>
|
|
529
|
-
|
|
530
|
-
|
|
531
|
-
|
|
532
|
-
|
|
533
|
-
|
|
534
|
-
|
|
535
|
-
|
|
536
|
-
|
|
537
|
-
|
|
538
|
-
|
|
539
|
-
|
|
540
|
-
|
|
541
|
-
|
|
542
|
-
|
|
543
|
-
|
|
544
|
-
|
|
545
|
-
|
|
546
|
-
|
|
536
|
+
{!!taxToEdit?.action && (
|
|
537
|
+
<Modal
|
|
538
|
+
open={!!taxToEdit?.action}
|
|
539
|
+
width='80%'
|
|
540
|
+
padding='30px'
|
|
541
|
+
title={typeof taxToEdit?.payload === 'boolean'
|
|
542
|
+
? t(`ADD_${getTaxOrFeeString(taxToEdit?.action).toUpperCase()}`, `Add ${getTaxOrFeeString(taxToEdit?.action)}`)
|
|
543
|
+
: t(`EDIT_${getTaxOrFeeString(taxToEdit?.action).toUpperCase()}`, `Edit ${getTaxOrFeeString(taxToEdit?.action)}`)}
|
|
544
|
+
onClose={handleCloseModal}
|
|
545
|
+
>
|
|
546
|
+
<EditTaxManager
|
|
547
|
+
type={taxToEdit?.action}
|
|
548
|
+
data={taxToEdit?.payload}
|
|
549
|
+
onChange={handleChangeTax}
|
|
550
|
+
formChanges={formTaxChanges}
|
|
551
|
+
onClose={handleCloseModal}
|
|
552
|
+
handleSave={handleSaveTax}
|
|
553
|
+
/>
|
|
554
|
+
</Modal>
|
|
555
|
+
)}
|
|
547
556
|
<Alert
|
|
548
557
|
title={taxToDelete.action ? t(`DELETE_${getTaxOrFeeString(taxToDelete?.action).toUpperCase()}`, `Delete ${getTaxOrFeeString(taxToDelete?.action)}`) : t('ERROR')}
|
|
549
558
|
content={alertState.content}
|
|
@@ -116,6 +116,7 @@ import { BusinessPlaceGroupList } from './BusinessPlaceGroupList'
|
|
|
116
116
|
import { BusinessPlaceGroup } from './BusinessPlaceGroup'
|
|
117
117
|
import { BusinessPlace } from './BusinessPlace'
|
|
118
118
|
import { BusinessAddStore } from './BusinessAddStore'
|
|
119
|
+
import { PaymentOptionCredomatic } from './PaymentOptionCredomatic'
|
|
119
120
|
|
|
120
121
|
export {
|
|
121
122
|
BusinessAdd,
|
|
@@ -235,5 +236,6 @@ export {
|
|
|
235
236
|
BusinessPlaceGroupList,
|
|
236
237
|
BusinessPlaceGroup,
|
|
237
238
|
BusinessPlace,
|
|
238
|
-
BusinessAddStore
|
|
239
|
+
BusinessAddStore,
|
|
240
|
+
PaymentOptionCredomatic
|
|
239
241
|
}
|
package/src/index.js
CHANGED
|
@@ -332,7 +332,8 @@ import {
|
|
|
332
332
|
BusinessPlace,
|
|
333
333
|
BusinessSalesChannel,
|
|
334
334
|
BusinessQRCodeOptions,
|
|
335
|
-
BusinessAddStore
|
|
335
|
+
BusinessAddStore,
|
|
336
|
+
PaymentOptionCredomatic
|
|
336
337
|
} from './components/Stores'
|
|
337
338
|
import {
|
|
338
339
|
CustomersListing,
|
|
@@ -405,7 +406,8 @@ import {
|
|
|
405
406
|
ImageCrop,
|
|
406
407
|
NotFoundSource,
|
|
407
408
|
RangeCalendar,
|
|
408
|
-
InputPhoneNumber
|
|
409
|
+
InputPhoneNumber,
|
|
410
|
+
ColorPicker
|
|
409
411
|
} from './components/Shared'
|
|
410
412
|
import { LogoutButton } from './components/LogoutButton'
|
|
411
413
|
import { LanguageSelector } from './components/LanguageSelector'
|
|
@@ -747,6 +749,7 @@ export {
|
|
|
747
749
|
ProductTagDetails,
|
|
748
750
|
SingleBusiness,
|
|
749
751
|
PaymentOptionSquare,
|
|
752
|
+
PaymentOptionCredomatic,
|
|
750
753
|
BusinessWalletsList,
|
|
751
754
|
PaymentOptionMethods,
|
|
752
755
|
BusinessPublishing,
|
|
@@ -839,6 +842,7 @@ export {
|
|
|
839
842
|
NotFoundSource,
|
|
840
843
|
RangeCalendar,
|
|
841
844
|
InputPhoneNumber,
|
|
845
|
+
ColorPicker,
|
|
842
846
|
|
|
843
847
|
capitalize,
|
|
844
848
|
verifyDecimals,
|
|
@@ -160,7 +160,7 @@ export const Select = (props) => {
|
|
|
160
160
|
{t('EDIT', 'Edit')}
|
|
161
161
|
</Button>
|
|
162
162
|
)}
|
|
163
|
-
{option.deleteFunctionality && (
|
|
163
|
+
{option.deleteFunctionality && onDelete && (
|
|
164
164
|
<BsTrash className='delete' onClick={() => onDelete(option.value)} />
|
|
165
165
|
)}
|
|
166
166
|
</FunctionalityContainer>
|