ordering-ui-external 14.1.23 → 14.1.24
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.
|
@@ -270,12 +270,13 @@ var PhoneAutocompleteUI = function PhoneAutocompleteUI(props) {
|
|
|
270
270
|
deleteUserCustomer(true);
|
|
271
271
|
};
|
|
272
272
|
var handleOnPaste = function handleOnPaste(e) {
|
|
273
|
-
var _e$clipboardData$getD;
|
|
273
|
+
var _e$clipboardData, _e$clipboardData$getD;
|
|
274
274
|
var regex = /\D/;
|
|
275
|
-
var
|
|
276
|
-
var
|
|
277
|
-
if (!regex.test(value) && length >= 7 && !optSelected) {
|
|
275
|
+
var textCellphone = e === null || e === void 0 || (_e$clipboardData = e.clipboardData) === null || _e$clipboardData === void 0 || (_e$clipboardData$getD = _e$clipboardData.getData) === null || _e$clipboardData$getD === void 0 ? void 0 : _e$clipboardData$getD.call(_e$clipboardData, 'text').replace(/\s/g, '');
|
|
276
|
+
var value = parseInt(textCellphone);
|
|
277
|
+
if (!regex.test(value) && (textCellphone === null || textCellphone === void 0 ? void 0 : textCellphone.length) >= 7 && !optSelected) {
|
|
278
278
|
getUsers(value);
|
|
279
|
+
setInputValue(textCellphone);
|
|
279
280
|
}
|
|
280
281
|
};
|
|
281
282
|
var handleSetInitialValues = function handleSetInitialValues() {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "ordering-ui-external",
|
|
3
|
-
"version": "14.1.
|
|
3
|
+
"version": "14.1.24",
|
|
4
4
|
"description": "Ordering UI Components",
|
|
5
5
|
"main": "./_modules/index.js",
|
|
6
6
|
"exports": {
|
|
@@ -88,7 +88,7 @@
|
|
|
88
88
|
"lodash": "^4.17.19",
|
|
89
89
|
"moment": "^2.29.4",
|
|
90
90
|
"nanoid": "^4.0.0",
|
|
91
|
-
"ordering-components-external": "13.0.
|
|
91
|
+
"ordering-components-external": "13.0.32",
|
|
92
92
|
"payment": "^2.4.6",
|
|
93
93
|
"polished": "^3.6.6",
|
|
94
94
|
"react-bootstrap-icons": "^1.7.2",
|
|
@@ -204,10 +204,11 @@ const PhoneAutocompleteUI = (props) => {
|
|
|
204
204
|
|
|
205
205
|
const handleOnPaste = (e) => {
|
|
206
206
|
const regex = /\D/
|
|
207
|
-
const
|
|
208
|
-
const
|
|
209
|
-
if (!regex.test(value) && length >= 7 && !optSelected) {
|
|
207
|
+
const textCellphone = e?.clipboardData?.getData?.('text').replace(/\s/g, '')
|
|
208
|
+
const value = parseInt(textCellphone)
|
|
209
|
+
if (!regex.test(value) && textCellphone?.length >= 7 && !optSelected) {
|
|
210
210
|
getUsers(value)
|
|
211
|
+
setInputValue(textCellphone)
|
|
211
212
|
}
|
|
212
213
|
}
|
|
213
214
|
|