@drax/crud-vue 0.21.0 → 0.22.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": "0.21.0",
6
+ "version": "0.22.0",
7
7
  "type": "module",
8
8
  "main": "./src/index.ts",
9
9
  "module": "./src/index.ts",
@@ -24,10 +24,10 @@
24
24
  "format": "prettier --write src/"
25
25
  },
26
26
  "dependencies": {
27
- "@drax/common-front": "^0.21.0",
28
- "@drax/crud-front": "^0.21.0",
29
- "@drax/crud-share": "^0.21.0",
30
- "@drax/media-vue": "^0.21.0"
27
+ "@drax/common-front": "^0.22.0",
28
+ "@drax/crud-front": "^0.22.0",
29
+ "@drax/crud-share": "^0.22.0",
30
+ "@drax/media-vue": "^0.22.0"
31
31
  },
32
32
  "peerDependencies": {
33
33
  "pinia": "^2.2.2",
@@ -64,5 +64,5 @@
64
64
  "vue-tsc": "^2.1.10",
65
65
  "vuetify": "^3.8.2"
66
66
  },
67
- "gitHead": "f548c85def32664144bfece18641b17c27bab6dd"
67
+ "gitHead": "b808a636aec2291d8516e37e3cc1e9659a442177"
68
68
  }
@@ -78,7 +78,7 @@ const emit = defineEmits(['filter', 'clear','updateValue'])
78
78
  density="compact"
79
79
  variant="outlined"
80
80
  :prepend-inner-icon="icon(filter)"
81
- hide-details single-line disable-rules
81
+ hide-details disable-rules
82
82
  @updateValue="$emit('updateValue')"
83
83
  />
84
84
  </v-col>
@@ -282,7 +282,6 @@ defineEmits(['updateValue'])
282
282
 
283
283
  <v-date-input
284
284
  v-if="field.type === 'date'"
285
- type="text"
286
285
  :name="name"
287
286
  :label="label"
288
287
  :hint="field.hint"
@@ -296,12 +295,25 @@ defineEmits(['updateValue'])
296
295
  :clearable="clearable"
297
296
  :hide-details="hideDetails"
298
297
  :single-line="singleLine"
299
- @update:modelValue="$emit('updateValue')"
298
+ @update:modelValue="(v) => {
299
+ if(field.endOfDay){
300
+ const date = new Date(v)
301
+ date.setHours(23, 59, 59, 0)
302
+ valueModel = date
303
+ }
304
+ $emit('updateValue')
305
+ }"
306
+ @click:clear="() => {valueModel = null; $emit('updateValue');} "
300
307
  :prepend-icon="prependIcon"
301
308
  :append-icon="appendIcon"
302
309
  :prepend-inner-icon="prependInnerIcon"
303
310
  :append-inner-icon="appendInnerIcon"
304
- />
311
+
312
+ >
313
+ <template v-if="field.endOfDay" v-slot:append-inner>
314
+ <v-chip size="small">23:59</v-chip>
315
+ </template>
316
+ </v-date-input>
305
317
 
306
318
  <crud-autocomplete
307
319
  v-if="field.type === 'ref'"