codevdesign 0.0.93 → 0.0.95

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.
@@ -58,7 +58,7 @@
58
58
  :btn-annuler-texte="texteBoutonAnnuler"
59
59
  @annuler="annuler"
60
60
  @ok="ok"
61
- ><template #contenu>
61
+ ><template #content>
62
62
  <div class="pt-2"></div>
63
63
  <hr class="pt-0 mt-0 pl-0" />
64
64
  <div class="pt-4">
@@ -2,7 +2,6 @@
2
2
  <v-date-input
3
3
  v-model="dateValeur"
4
4
  v-bind="$attrs"
5
- :display-format="toIso"
6
5
  input-format="yyyy-MM-dd"
7
6
  variant="outlined"
8
7
  prepend-icon=""
@@ -26,17 +25,6 @@
26
25
  const emit = defineEmits(['update:modelValue'])
27
26
  const dateValeur = ref<Date | string | null>(props.modelValue)
28
27
 
29
- // yyyy-MM-dd en local time (évite toISOString qui est en UTC)
30
- function toIso(d?: unknown) {
31
- if (!d) return ''
32
- const date = typeof d === 'string' ? new Date(d) : (d as Date)
33
- if (Number.isNaN(date?.getTime?.())) return ''
34
- const y = date.getFullYear()
35
- const m = String(date.getMonth() + 1).padStart(2, '0')
36
- const day = String(date.getDate()).padStart(2, '0')
37
- return `${y}-${m}-${day}`
38
- }
39
-
40
28
  const formatDate = (date: Date | string | null) => {
41
29
  if (date == null) {
42
30
  emit('update:modelValue', null)
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "codevdesign",
3
- "version": "0.0.93",
3
+ "version": "0.0.95",
4
4
  "description": "Composants Vuetify 3 pour les projets Codev",
5
5
  "files": [
6
6
  "./**/*.vue",