@eeplatform/nuxt-layer-common 1.7.50 → 1.7.51
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 +6 -0
- package/components/EnrollmentForm.vue +22 -5
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -1274,6 +1274,7 @@
|
|
|
1274
1274
|
<v-radio-group
|
|
1275
1275
|
v-model="enrollment.seniorHighInfo.semester"
|
|
1276
1276
|
density="compact"
|
|
1277
|
+
:rules="[requiredRule]"
|
|
1277
1278
|
>
|
|
1278
1279
|
<v-radio label="1st" value="1st"></v-radio>
|
|
1279
1280
|
<v-radio label="2nd" value="2nd"></v-radio>
|
|
@@ -1298,6 +1299,7 @@
|
|
|
1298
1299
|
item-value="value"
|
|
1299
1300
|
:return-object="false"
|
|
1300
1301
|
:items="tracks"
|
|
1302
|
+
:rules="[requiredRule]"
|
|
1301
1303
|
></v-autocomplete>
|
|
1302
1304
|
</v-col>
|
|
1303
1305
|
</v-row>
|
|
@@ -1317,6 +1319,7 @@
|
|
|
1317
1319
|
item-value="value"
|
|
1318
1320
|
:return-object="false"
|
|
1319
1321
|
:items="selectedTrackStrands"
|
|
1322
|
+
:rules="[requiredRule]"
|
|
1320
1323
|
></v-autocomplete>
|
|
1321
1324
|
</v-col>
|
|
1322
1325
|
</v-row>
|
|
@@ -1491,10 +1494,16 @@ const birthdateRules = [
|
|
|
1491
1494
|
const today = new Date();
|
|
1492
1495
|
let age = today.getFullYear() - date.getFullYear();
|
|
1493
1496
|
const monthDiff = today.getMonth() - date.getMonth();
|
|
1494
|
-
if (
|
|
1497
|
+
if (
|
|
1498
|
+
monthDiff < 0 ||
|
|
1499
|
+
(monthDiff === 0 && today.getDate() < date.getDate())
|
|
1500
|
+
) {
|
|
1495
1501
|
age--;
|
|
1496
1502
|
}
|
|
1497
|
-
|
|
1503
|
+
if (enrollment.value.gradeLevel === "non-graded") return true;
|
|
1504
|
+
return (
|
|
1505
|
+
age >= 5 || "Learner must be at least 5 years old (Kindergarten age)"
|
|
1506
|
+
);
|
|
1498
1507
|
},
|
|
1499
1508
|
(v: any) => {
|
|
1500
1509
|
if (!v) return true;
|
|
@@ -1503,7 +1512,10 @@ const birthdateRules = [
|
|
|
1503
1512
|
const today = new Date();
|
|
1504
1513
|
let age = today.getFullYear() - date.getFullYear();
|
|
1505
1514
|
const monthDiff = today.getMonth() - date.getMonth();
|
|
1506
|
-
if (
|
|
1515
|
+
if (
|
|
1516
|
+
monthDiff < 0 ||
|
|
1517
|
+
(monthDiff === 0 && today.getDate() < date.getDate())
|
|
1518
|
+
) {
|
|
1507
1519
|
age--;
|
|
1508
1520
|
}
|
|
1509
1521
|
return age <= 80 || "Learner must be at most 80 years old";
|
|
@@ -2350,7 +2362,11 @@ watch(
|
|
|
2350
2362
|
|
|
2351
2363
|
const isKindergarten = computed(() => {
|
|
2352
2364
|
const gradeLevel = enrollment.value.gradeLevel;
|
|
2353
|
-
return
|
|
2365
|
+
return (
|
|
2366
|
+
gradeLevel === "kindergarten" ||
|
|
2367
|
+
gradeLevel === "kinder" ||
|
|
2368
|
+
gradeLevel === "non-graded"
|
|
2369
|
+
);
|
|
2354
2370
|
});
|
|
2355
2371
|
|
|
2356
2372
|
const allowedLastGradeLevels = computed(() => {
|
|
@@ -2598,7 +2614,8 @@ import { useMask } from "vuetify";
|
|
|
2598
2614
|
watchEffect(() => {
|
|
2599
2615
|
if (
|
|
2600
2616
|
enrollment.value.learnerInfo.birthDate &&
|
|
2601
|
-
parseBirthdate(enrollment.value.learnerInfo.birthDate).toString() !==
|
|
2617
|
+
parseBirthdate(enrollment.value.learnerInfo.birthDate).toString() !==
|
|
2618
|
+
"Invalid Date"
|
|
2602
2619
|
) {
|
|
2603
2620
|
const birthDate = parseBirthdate(enrollment.value.learnerInfo.birthDate);
|
|
2604
2621
|
|