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
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@atomengine/atom-nuxt",
3
3
  "configKey": "atomNuxt",
4
- "version": "1.0.150",
4
+ "version": "1.0.151",
5
5
  "builder": {
6
6
  "@nuxt/module-builder": "1.0.1",
7
7
  "unbuild": "3.5.0"
@@ -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>
@@ -6,6 +6,7 @@ type __VLS_WithSlots<T, S> = T & (new () => {
6
6
  declare const __VLS_component: import("vue").DefineComponent<{}, {
7
7
  page: number;
8
8
  debounced: boolean;
9
+ disableNoResults: boolean;
9
10
  path: string;
10
11
  perPage: number;
11
12
  await: boolean;
@@ -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 v-if="!hasSelection" class="mb-3">
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>
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "atom-nuxt",
3
- "version": "1.0.150",
3
+ "version": "1.0.151",
4
4
  "description": "My new Nuxt module",
5
5
  "repository": "atomengine/atom-nuxt",
6
6
  "license": "MIT",