@bildvitta/quasar-ui-asteroid 2.12.2 → 2.12.3

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,6 +1,6 @@
1
1
  {
2
2
  "name": "@bildvitta/quasar-ui-asteroid",
3
- "version": "2.12.2",
3
+ "version": "2.12.3",
4
4
  "description": "",
5
5
  "main": "./src/index.js",
6
6
  "scripts": {
@@ -41,7 +41,7 @@
41
41
  </div>
42
42
 
43
43
  <div v-if="badges && hasActiveFilters" class="q-mt-md">
44
- <q-chip v-for="(filterItem, key) in activeFilters" :key="key" color="grey-4" dense removable size="md" text-color="grey-8" @remove="removeFilter(filterItem)">{{ filterItem.label }} = "{{ handleChipValue(filterItem.value) }}"</q-chip>
44
+ <q-chip v-for="(filterItem, key) in activeFilters" :key="key" color="grey-4" dense removable size="md" text-color="grey-8" @remove="removeFilter(filterItem)">{{ filterItem.label }} = "{{ getChipValue(filterItem.value) }}"</q-chip>
45
45
  </div>
46
46
 
47
47
  <slot :context="context" :filter="filter" :filters="activeFilters" :removeFilter="removeFilter" />
@@ -122,7 +122,7 @@ export default {
122
122
  const hasField = fields.includes(key)
123
123
 
124
124
  if (hasField) {
125
- const value = humanize(this.fields[key], filters[key])
125
+ const value = humanize(this.fields[key], this.normalizeValues(filters[key], this.fields[key]?.multiple))
126
126
  const { label, name } = this.fields[key]
127
127
 
128
128
  activeFilters[key] = { label, name, value }
@@ -96,6 +96,8 @@ function handleMasks (value) {
96
96
 
97
97
  // Labels
98
98
  function humanize (field = {}, value) {
99
+ if (!value) return value
100
+
99
101
  const mappedMasks = handleMasks(value)
100
102
 
101
103
  if (mappedMasks[field.mask]) {