@burh/nuxt-core 1.0.374 → 1.0.376
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.
|
@@ -169,6 +169,7 @@
|
|
|
169
169
|
import { Dialog, Select, Option } from 'element-ui';
|
|
170
170
|
import { mask } from 'vue-the-mask';
|
|
171
171
|
import swal from 'sweetalert2';
|
|
172
|
+
import removeAccents from 'remove-accents';
|
|
172
173
|
|
|
173
174
|
export default {
|
|
174
175
|
name: 'add-customer-modal',
|
|
@@ -286,7 +287,7 @@ export default {
|
|
|
286
287
|
},
|
|
287
288
|
getCityListFiltered(query) {
|
|
288
289
|
if (query && query.length > 3) {
|
|
289
|
-
this.cityListFiltered = this.cityList.filter(city => String(city.city).toLowerCase().startsWith(query.toLowerCase()));
|
|
290
|
+
this.cityListFiltered = this.cityList.filter(city => removeAccents(String(city.city)).toLowerCase().startsWith(removeAccents(query.toLowerCase())));
|
|
290
291
|
this.cityListFiltered = this.cityListFiltered.map(city => {
|
|
291
292
|
return {
|
|
292
293
|
value: `${city.city} / ${city.uf}`
|
|
@@ -305,7 +306,7 @@ export default {
|
|
|
305
306
|
} else {
|
|
306
307
|
if (response.data) {
|
|
307
308
|
if (response.data.city_name && response.data.region_code) {
|
|
308
|
-
this.city = `${response.data.city_name}
|
|
309
|
+
this.city = `${response.data.city_name} / ${response.data.region_code}`;
|
|
309
310
|
}
|
|
310
311
|
}
|
|
311
312
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@burh/nuxt-core",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.376",
|
|
4
4
|
"description": "Design System and Components.",
|
|
5
5
|
"author": "Burh",
|
|
6
6
|
"scripts": {
|
|
@@ -62,6 +62,7 @@
|
|
|
62
62
|
"quill": "^1.3.6",
|
|
63
63
|
"quill-image-resize-module": "^3.0.0",
|
|
64
64
|
"read-env": "^1.3.0",
|
|
65
|
+
"remove-accents": "^0.4.2",
|
|
65
66
|
"sticky-js": "^1.2.0",
|
|
66
67
|
"sweetalert2": "^8.11.6",
|
|
67
68
|
"v-click-outside": "^3.1.2",
|