@eeplatform/nuxt-layer-common 1.7.32 → 1.7.33
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/CHANGELOG.md
CHANGED
|
@@ -378,13 +378,9 @@
|
|
|
378
378
|
/>
|
|
379
379
|
</v-col>
|
|
380
380
|
<v-col cols="12">
|
|
381
|
-
<
|
|
381
|
+
<InputMaskDate
|
|
382
382
|
v-model="enrollment.learnerInfo.birthDate"
|
|
383
|
-
|
|
384
|
-
placeholder="MM/DD/YYYY"
|
|
385
|
-
density="comfortable"
|
|
386
|
-
variant="outlined"
|
|
387
|
-
></v-mask-input>
|
|
383
|
+
></InputMaskDate>
|
|
388
384
|
</v-col>
|
|
389
385
|
</v-row>
|
|
390
386
|
</v-col>
|
|
@@ -1469,8 +1465,6 @@ const prop = defineProps({
|
|
|
1469
1465
|
default: "",
|
|
1470
1466
|
},
|
|
1471
1467
|
});
|
|
1472
|
-
|
|
1473
|
-
import { VMaskInput } from "vuetify/labs/VMaskInput";
|
|
1474
1468
|
const { requiredRule, debounce } = useUtils();
|
|
1475
1469
|
|
|
1476
1470
|
const enrollment = defineModel<TTLearner>({
|
|
@@ -2534,7 +2528,7 @@ watchEffect(() => {
|
|
|
2534
2528
|
import { useMask } from "vuetify";
|
|
2535
2529
|
|
|
2536
2530
|
watchEffect(() => {
|
|
2537
|
-
const mask = useMask({ mask: "
|
|
2531
|
+
const mask = useMask({ mask: "##-##-####" });
|
|
2538
2532
|
const date = mask.mask(enrollment.value.learnerInfo.birthDate);
|
|
2539
2533
|
if (
|
|
2540
2534
|
enrollment.value.learnerInfo.birthDate &&
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
<template>
|
|
2
|
+
<v-mask-input
|
|
3
|
+
v-bind="attrs"
|
|
4
|
+
v-model="formattedValue"
|
|
5
|
+
mask="##-##-####"
|
|
6
|
+
placeholder="MM-DD-YYYY"
|
|
7
|
+
density="comfortable"
|
|
8
|
+
variant="outlined"
|
|
9
|
+
>
|
|
10
|
+
<template v-for="(_, name) in $slots" #[name]="slotProps">
|
|
11
|
+
<slot :name="name" v-bind="slotProps || {}" />
|
|
12
|
+
</template>
|
|
13
|
+
</v-mask-input>
|
|
14
|
+
</template>
|
|
15
|
+
|
|
16
|
+
<script setup lang="ts">
|
|
17
|
+
import { VMaskInput } from "vuetify/labs/VMaskInput";
|
|
18
|
+
|
|
19
|
+
const attrs = useAttrs();
|
|
20
|
+
const formattedValue = ref("");
|
|
21
|
+
|
|
22
|
+
const modelData = defineModel({ type: String });
|
|
23
|
+
|
|
24
|
+
import { useMask } from "vuetify";
|
|
25
|
+
|
|
26
|
+
watch(formattedValue, () => {
|
|
27
|
+
const mask = useMask({ mask: "##-##-####" });
|
|
28
|
+
modelData.value = mask.mask(formattedValue.value);
|
|
29
|
+
});
|
|
30
|
+
</script>
|