atom-nuxt 1.0.150 → 1.0.151
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/module.json
CHANGED
|
@@ -8,6 +8,7 @@ const addressSearchResults = ref([]);
|
|
|
8
8
|
const loading = ref(false);
|
|
9
9
|
const selectedPlaceId = ref(null);
|
|
10
10
|
const model = defineModel();
|
|
11
|
+
const placeModel = defineModel("place");
|
|
11
12
|
const fetchAutocompleteSuggestions = async (query) => {
|
|
12
13
|
if (!query || loading.value) return;
|
|
13
14
|
loading.value = true;
|
|
@@ -54,6 +55,7 @@ const fetchPlaceId = async (placeId) => {
|
|
|
54
55
|
}
|
|
55
56
|
);
|
|
56
57
|
if (result.status === "OK") {
|
|
58
|
+
placeModel.value = result.result;
|
|
57
59
|
model.value = `${result.result.geometry.location.lat},${result.result.geometry.location.lng}`;
|
|
58
60
|
} else {
|
|
59
61
|
console.error("Error fetching place details:", result.status);
|
|
@@ -9,6 +9,10 @@ const props = defineProps({
|
|
|
9
9
|
type: Boolean,
|
|
10
10
|
default: false
|
|
11
11
|
},
|
|
12
|
+
disableNoResults: {
|
|
13
|
+
type: Boolean,
|
|
14
|
+
default: false
|
|
15
|
+
},
|
|
12
16
|
path: {
|
|
13
17
|
type: String,
|
|
14
18
|
required: true
|
|
@@ -104,7 +108,7 @@ onBeforeUnmount(() => {
|
|
|
104
108
|
<slot v-if="hasListErrors" name="errors">
|
|
105
109
|
<crud-error-display :errors="listErrors"/>
|
|
106
110
|
</slot>
|
|
107
|
-
<slot v-if="!listPending && totalItems === 0" name="empty">
|
|
111
|
+
<slot v-if="!listPending && totalItems === 0 && !disableNoResults" name="empty">
|
|
108
112
|
<v-alert icon="mdi-playlist-remove" type="info" >
|
|
109
113
|
{{ noResultsText }}
|
|
110
114
|
</v-alert>
|
|
@@ -151,7 +151,7 @@ watch(() => fileToUpload.value, () => {
|
|
|
151
151
|
<div>
|
|
152
152
|
<div v-if="title" style="font-size: 12px;" class="text-grey-darken-2 mb-1">{{ title }}</div>
|
|
153
153
|
|
|
154
|
-
<div
|
|
154
|
+
<div class="mb-3">
|
|
155
155
|
<v-btn :disabled="disabled" @click="dialog = true" size="small" color="success">
|
|
156
156
|
Select Media
|
|
157
157
|
</v-btn>
|