@drax/dashboard-vue 3.50.0 → 3.54.0

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
@@ -3,7 +3,7 @@
3
3
  "publishConfig": {
4
4
  "access": "public"
5
5
  },
6
- "version": "3.50.0",
6
+ "version": "3.54.0",
7
7
  "type": "module",
8
8
  "main": "./src/index.ts",
9
9
  "module": "./src/index.ts",
@@ -22,9 +22,9 @@
22
22
  "format": "prettier --write src/"
23
23
  },
24
24
  "dependencies": {
25
- "@drax/crud-front": "^3.21.0",
26
- "@drax/crud-share": "^3.50.0",
27
- "@drax/dashboard-front": "^3.29.0"
25
+ "@drax/crud-front": "^3.54.0",
26
+ "@drax/crud-share": "^3.54.0",
27
+ "@drax/dashboard-front": "^3.54.0"
28
28
  },
29
29
  "peerDependencies": {
30
30
  "pinia": "^3.0.4",
@@ -46,5 +46,5 @@
46
46
  "vue-tsc": "^3.2.4",
47
47
  "vuetify": "^3.11.8"
48
48
  },
49
- "gitHead": "1f7040e46eafd8ed45dcdec95d3c1ba41e567e75"
49
+ "gitHead": "e7b0f29f3f68e352e8accb9d70c66b6f745a3278"
50
50
  }
@@ -12,6 +12,7 @@ import {useI18n} from "vue-i18n"
12
12
  import CrudFormField from "@drax/crud-vue/src/components/CrudFormField.vue";
13
13
  import {useFilterIcon} from "@drax/crud-vue";
14
14
  import {useDynamicFilters} from "@drax/crud-vue/src/composables/UseDynamicFilters";
15
+ import {expandRangeFilters} from "@drax/crud-vue/src/helpers/CrudRangeFilters";
15
16
 
16
17
  const props = defineProps({
17
18
  modelValue: {type: Object as PropType<IDashboardCard>, required: true}
@@ -95,12 +96,16 @@ ensureStructure();
95
96
 
96
97
  const save = () => {
97
98
  const payload = form.value
98
- payload.filters = filters.value
99
+ payload.filters = expandRangeFilters(filters.value
99
100
  .filter((filter: IEntityCrudFilter) => filter.name && filter.operator)
100
101
  .map((filter: IEntityCrudFilter) => ({
101
102
  field: filter.name,
102
103
  operator: filter.operator as string,
103
- value: filter.value == null ? '' : String(filter.value)
104
+ value: filter.value
105
+ })))
106
+ .map((filter: IDraxFieldFilter) => ({
107
+ ...filter,
108
+ value: filter.value instanceof Date ? filter.value.toISOString() : (filter.value == null ? '' : String(filter.value))
104
109
  }))
105
110
  emit('update:modelValue', payload);
106
111
  emit('save');
@@ -309,7 +314,7 @@ const {
309
314
  class="mb-3"></v-select>
310
315
  </v-col>
311
316
  <v-col cols="12" md="6">
312
- <v-select v-model="form.groupBy!.dateFormat" :items="['year', 'month', 'day', 'hour', 'minute', 'second']"
317
+ <v-select v-model="form.groupBy!.dateFormat" :items="['year', 'month', 'week', 'day', 'hour', 'minute', 'second']"
313
318
  label="Formato de Fecha (opcional)" variant="outlined" density="compact" hide-details="auto"
314
319
  clearable class="mb-3"></v-select>
315
320
  </v-col>