@eeplatform/nuxt-layer-common 1.7.32 → 1.7.34
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 +12 -0
- package/components/EnrollmentForm.vue +10 -27
- package/components/Input/MaskDate.vue +30 -0
- package/package.json +1 -1
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>
|
|
@@ -1083,12 +1079,7 @@
|
|
|
1083
1079
|
v-model="
|
|
1084
1080
|
enrollment.parentGuardianInfo.father.contactNumber
|
|
1085
1081
|
"
|
|
1086
|
-
|
|
1087
|
-
mask: '09NN-NNN-NNNN',
|
|
1088
|
-
tokens: {
|
|
1089
|
-
N: { pattern: /[0-9]/ },
|
|
1090
|
-
},
|
|
1091
|
-
}"
|
|
1082
|
+
mask="####-###-####"
|
|
1092
1083
|
placeholder="09XX-XXX-XXXX"
|
|
1093
1084
|
variant="outlined"
|
|
1094
1085
|
density="comfortable"
|
|
@@ -1163,12 +1154,7 @@
|
|
|
1163
1154
|
v-model="
|
|
1164
1155
|
enrollment.parentGuardianInfo.mother.contactNumber
|
|
1165
1156
|
"
|
|
1166
|
-
|
|
1167
|
-
mask: '09NN-NNN-NNNN',
|
|
1168
|
-
tokens: {
|
|
1169
|
-
N: { pattern: /[0-9]/ },
|
|
1170
|
-
},
|
|
1171
|
-
}"
|
|
1157
|
+
mask="####-###-####"
|
|
1172
1158
|
placeholder="09XX-XXX-XXXX"
|
|
1173
1159
|
variant="outlined"
|
|
1174
1160
|
density="comfortable"
|
|
@@ -1243,12 +1229,7 @@
|
|
|
1243
1229
|
enrollment.parentGuardianInfo.legalGuardian
|
|
1244
1230
|
.contactNumber
|
|
1245
1231
|
"
|
|
1246
|
-
|
|
1247
|
-
mask: '09NN-NNN-NNNN',
|
|
1248
|
-
tokens: {
|
|
1249
|
-
N: { pattern: /[0-9]/ },
|
|
1250
|
-
},
|
|
1251
|
-
}"
|
|
1232
|
+
mask="####-###-####"
|
|
1252
1233
|
placeholder="09XX-XXX-XXXX"
|
|
1253
1234
|
variant="outlined"
|
|
1254
1235
|
density="comfortable"
|
|
@@ -1469,8 +1450,6 @@ const prop = defineProps({
|
|
|
1469
1450
|
default: "",
|
|
1470
1451
|
},
|
|
1471
1452
|
});
|
|
1472
|
-
|
|
1473
|
-
import { VMaskInput } from "vuetify/labs/VMaskInput";
|
|
1474
1453
|
const { requiredRule, debounce } = useUtils();
|
|
1475
1454
|
|
|
1476
1455
|
const enrollment = defineModel<TTLearner>({
|
|
@@ -2264,6 +2243,10 @@ watch(
|
|
|
2264
2243
|
(trackValue) => {
|
|
2265
2244
|
if (!trackValue || !enrollment.value.seniorHighInfo) return;
|
|
2266
2245
|
|
|
2246
|
+
// Clear strand when track changes
|
|
2247
|
+
enrollment.value.seniorHighInfo.strand = "";
|
|
2248
|
+
enrollment.value.seniorHighInfo.strandName = "";
|
|
2249
|
+
|
|
2267
2250
|
const selectedTrack = tracks.find((track) => track.value === trackValue);
|
|
2268
2251
|
if (selectedTrack && enrollment.value.seniorHighInfo) {
|
|
2269
2252
|
enrollment.value.seniorHighInfo.trackName = selectedTrack.title ?? "";
|
|
@@ -2534,7 +2517,7 @@ watchEffect(() => {
|
|
|
2534
2517
|
import { useMask } from "vuetify";
|
|
2535
2518
|
|
|
2536
2519
|
watchEffect(() => {
|
|
2537
|
-
const mask = useMask({ mask: "
|
|
2520
|
+
const mask = useMask({ mask: "##-##-####" });
|
|
2538
2521
|
const date = mask.mask(enrollment.value.learnerInfo.birthDate);
|
|
2539
2522
|
if (
|
|
2540
2523
|
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>
|