@bildvitta/quasar-ui-asteroid 3.10.0-beta.2 → 3.10.0-beta.4

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/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@bildvitta/quasar-ui-asteroid",
3
3
  "description": "Asteroid",
4
- "version": "3.10.0-beta.2",
4
+ "version": "3.10.0-beta.4",
5
5
  "author": "Bild & Vitta <systemteam@bild.com.br>",
6
6
  "license": "MIT",
7
7
  "main": "dist/asteroid.cjs.min.js",
@@ -388,7 +388,6 @@ export default {
388
388
  .q-btn {
389
389
  border: 0;
390
390
  box-shadow: none;
391
- color: $grey-9;
392
391
  height: 30px !important;
393
392
  min-height: 30px;
394
393
  min-width: 30px;
@@ -407,6 +406,10 @@ export default {
407
406
  @include set-typography($subtitle2);
408
407
  }
409
408
  }
409
+
410
+ &__today {
411
+ color: $primary;
412
+ }
410
413
  }
411
414
  }
412
415
  </style>
@@ -314,7 +314,7 @@ export default {
314
314
  }
315
315
 
316
316
  for (const key in query) {
317
- if (!query[key]) delete query[key]
317
+ query[key] ?? delete query[key]
318
318
  }
319
319
 
320
320
  this.hideFiltersMenu()
@@ -272,7 +272,17 @@ export default {
272
272
  this.$watch(model, options => {
273
273
  if (!options?.length) return
274
274
 
275
- this.mx_filteredOptions = [...options]
275
+ /*
276
+ * pode ser que as opções sejam inicializadas após o primeiro fetch de opções
277
+ * fazendo com que as opções sobrescreva as que vieram através do fetch, então é
278
+ * preciso tratar para nestes casos serem incrementadas ao invés de sobrescrever.
279
+ */
280
+ if (this.mx_fetchCount === 1) {
281
+ this.mx_filteredOptions.unshift(...options)
282
+ } else {
283
+ this.mx_filteredOptions = [...options]
284
+ }
285
+
276
286
  this.mx_cachedOptions = [...options]
277
287
  }, { immediate: true })
278
288
  }