atom-nuxt 1.0.139 → 1.0.141

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.139",
4
+ "version": "1.0.141",
5
5
  "builder": {
6
6
  "@nuxt/module-builder": "1.0.1",
7
7
  "unbuild": "3.5.0"
@@ -19,6 +19,9 @@ watch(() => props.modelValue, (newValue) => {
19
19
  model.value = newValue;
20
20
  });
21
21
  const filter = ref(props.filter);
22
+ watch(() => props.filter, (newValue) => {
23
+ filter.value = newValue;
24
+ });
22
25
  const searchDialogSelectedValue = ref(null);
23
26
  const search = ref(null);
24
27
  const searchDialog = ref(false);
@@ -61,7 +64,11 @@ const selectedValue = computed({
61
64
  } else {
62
65
  model.value = val;
63
66
  }
64
- debouncedUpdate();
67
+ if (props.filter.type === "search" || props.filter.type === "multiSearch" || props.filter.type === "option" || props.filter.type === "multiOption" || props.filter.type === "multiOptionTree") {
68
+ emitUpdate();
69
+ } else {
70
+ debouncedUpdate();
71
+ }
65
72
  }
66
73
  });
67
74
  const {
@@ -148,13 +155,13 @@ const displayForChip = (item) => {
148
155
  </template>
149
156
  </v-date-picker>
150
157
  </v-menu>
151
- <crud-address-search-field
152
- v-else-if="filter.optionType === 'LocationPoint'"
153
- :id="filter.key"
154
- :disabled="disabled"
155
- :label="filter.label"
156
- v-model="selectedValue"
157
- />
158
+ <crud-address-search-field
159
+ v-else-if="filter.optionType === 'LocationPoint'"
160
+ :id="filter.key"
161
+ :disabled="disabled"
162
+ :label="filter.label"
163
+ v-model="selectedValue"
164
+ />
158
165
  <v-text-field
159
166
  v-else
160
167
  dense
@@ -239,20 +246,20 @@ const displayForChip = (item) => {
239
246
 
240
247
  <template v-else-if="filter.type === 'multiOptionTree'">
241
248
  <div class="bg-white border">
242
- <v-treeview
243
- class="ma-0 pa-0"
244
- :id="filter.key"
245
- v-model="selectedValue"
246
- :disabled="disabled"
247
- select-strategy="default"
248
- :hint="filter.description"
249
- :items="filter.options"
250
- item-title="label"
251
- :clearable="true"
252
- item-value="value"
253
- :selectable="true"
254
- density="compact"
255
- ></v-treeview>
249
+ <v-treeview
250
+ class="ma-0 pa-0"
251
+ :id="filter.key"
252
+ v-model="selectedValue"
253
+ :disabled="disabled"
254
+ select-strategy="default"
255
+ :hint="filter.description"
256
+ :items="filter.options"
257
+ item-title="label"
258
+ :clearable="true"
259
+ item-value="value"
260
+ :selectable="true"
261
+ density="compact"
262
+ ></v-treeview>
256
263
  </div>
257
264
  </template>
258
265
  <template v-else-if="filter.type === 'search' || filter.type === 'multiSearch' ">
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "atom-nuxt",
3
- "version": "1.0.139",
3
+ "version": "1.0.141",
4
4
  "description": "My new Nuxt module",
5
5
  "repository": "atomengine/atom-nuxt",
6
6
  "license": "MIT",