codevdesign 0.0.60 → 0.0.62
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.
|
@@ -16,7 +16,7 @@
|
|
|
16
16
|
:rules="[v => (estValide ? true : regleMessageErreur)]"
|
|
17
17
|
:disabled="disable"
|
|
18
18
|
:density="density"
|
|
19
|
-
:hint="placeholder"
|
|
19
|
+
:hint="afficherHint ? placeholder : ''"
|
|
20
20
|
:max-width="maxWidth || '100%'"
|
|
21
21
|
:min-width="minWidth || '100%'"
|
|
22
22
|
@blur="sauvegarder"
|
|
@@ -31,7 +31,7 @@
|
|
|
31
31
|
|
|
32
32
|
<script setup lang="ts">
|
|
33
33
|
import { ref, computed, onMounted, nextTick } from 'vue'
|
|
34
|
-
import { VForm } from 'vuetify/components'
|
|
34
|
+
import type { VForm } from 'vuetify/components'
|
|
35
35
|
|
|
36
36
|
const emit = defineEmits(['update:modelValue', 'update:codeBudgetairesProp'])
|
|
37
37
|
|
|
@@ -41,6 +41,7 @@
|
|
|
41
41
|
modelValue: string | null
|
|
42
42
|
label: string
|
|
43
43
|
disable: boolean
|
|
44
|
+
afficherHint?: boolean
|
|
44
45
|
regleMessageErreur: string
|
|
45
46
|
density?: 'default' | 'comfortable' | 'compact'
|
|
46
47
|
maxWidth?: string | number
|
|
@@ -49,6 +50,7 @@
|
|
|
49
50
|
activerExtension?: boolean
|
|
50
51
|
}>(),
|
|
51
52
|
{
|
|
53
|
+
afficherHint: false,
|
|
52
54
|
format: '999-9-99999-999',
|
|
53
55
|
activerExtension: false,
|
|
54
56
|
},
|
|
@@ -181,7 +183,6 @@
|
|
|
181
183
|
let ext = reste.slice(0, 7).split('')
|
|
182
184
|
|
|
183
185
|
// Ne garder que le premier slash s’il est à l’index 0 ou 3
|
|
184
|
-
const slashIndices = ext.map((c, i) => (c === '/' ? i : -1)).filter(i => i !== -1)
|
|
185
186
|
ext = ext.filter((c, i) => {
|
|
186
187
|
if (c !== '/') return true
|
|
187
188
|
return i === 0 || i === 3
|