@eeplatform/nuxt-layer-common 1.7.43 → 1.7.45
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 +16 -0
- package/components/EnrollmentPreview.vue +4 -20
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,17 @@
|
|
|
1
1
|
# @eeplatform/nuxt-layer-common
|
|
2
2
|
|
|
3
|
+
## 1.7.45
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- 3965149: Fix enrollment birthdate validation
|
|
8
|
+
|
|
9
|
+
## 1.7.44
|
|
10
|
+
|
|
11
|
+
### Patch Changes
|
|
12
|
+
|
|
13
|
+
- 6063f41: Fix enrollment form - display other info regardless if returning learner
|
|
14
|
+
|
|
3
15
|
## 1.7.43
|
|
4
16
|
|
|
5
17
|
### Patch Changes
|
|
@@ -381,6 +381,7 @@
|
|
|
381
381
|
<v-col cols="12">
|
|
382
382
|
<InputMaskDate
|
|
383
383
|
v-model="enrollment.learnerInfo.birthDate"
|
|
384
|
+
:rules="birthdateRules"
|
|
384
385
|
></InputMaskDate>
|
|
385
386
|
</v-col>
|
|
386
387
|
</v-row>
|
|
@@ -1462,6 +1463,21 @@ const prop = defineProps({
|
|
|
1462
1463
|
});
|
|
1463
1464
|
const { requiredRule, debounce } = useUtils();
|
|
1464
1465
|
|
|
1466
|
+
const birthdateRules = [
|
|
1467
|
+
(v: any) => !!v || "Birthdate is required",
|
|
1468
|
+
(v: any) => {
|
|
1469
|
+
if (!v) return true;
|
|
1470
|
+
const date = new Date(v);
|
|
1471
|
+
return date.toString() !== "Invalid Date" || "Invalid date";
|
|
1472
|
+
},
|
|
1473
|
+
(v: any) => {
|
|
1474
|
+
if (!v) return true;
|
|
1475
|
+
const date = new Date(v);
|
|
1476
|
+
if (date.toString() === "Invalid Date") return true;
|
|
1477
|
+
return date <= new Date() || "Birthdate cannot be in the future";
|
|
1478
|
+
},
|
|
1479
|
+
];
|
|
1480
|
+
|
|
1465
1481
|
const enrollment = defineModel<TLearner>({
|
|
1466
1482
|
default: () => useEnrollment().enrollment,
|
|
1467
1483
|
});
|
|
@@ -99,11 +99,7 @@
|
|
|
99
99
|
</v-col>
|
|
100
100
|
|
|
101
101
|
<!-- Learner Information -->
|
|
102
|
-
<v-col
|
|
103
|
-
cols="12"
|
|
104
|
-
class="mb-6"
|
|
105
|
-
v-if="!localProps.application.returningLearner"
|
|
106
|
-
>
|
|
102
|
+
<v-col cols="12" class="mb-6">
|
|
107
103
|
<v-card variant="outlined" border="thin" class="pa-4">
|
|
108
104
|
<v-card-title class="text-h6 font-weight-bold pa-0 mb-3">
|
|
109
105
|
Learner Information
|
|
@@ -198,11 +194,7 @@
|
|
|
198
194
|
</v-col>
|
|
199
195
|
|
|
200
196
|
<!-- Current Address -->
|
|
201
|
-
<v-col
|
|
202
|
-
cols="12"
|
|
203
|
-
class="mb-6"
|
|
204
|
-
v-if="!localProps.application.returningLearner"
|
|
205
|
-
>
|
|
197
|
+
<v-col cols="12" class="mb-6">
|
|
206
198
|
<v-card variant="outlined" border="thin" class="pa-4">
|
|
207
199
|
<v-card-title class="text-h6 font-weight-bold pa-0 mb-3">
|
|
208
200
|
Current Address
|
|
@@ -252,11 +244,7 @@
|
|
|
252
244
|
</v-col>
|
|
253
245
|
|
|
254
246
|
<!-- Permanent Address -->
|
|
255
|
-
<v-col
|
|
256
|
-
cols="12"
|
|
257
|
-
class="mb-6"
|
|
258
|
-
v-if="!localProps.application.returningLearner"
|
|
259
|
-
>
|
|
247
|
+
<v-col cols="12" class="mb-6">
|
|
260
248
|
<v-card variant="outlined" border="thin" class="pa-4">
|
|
261
249
|
<v-card-title class="text-h6 font-weight-bold pa-0 mb-3">
|
|
262
250
|
Permanent Address
|
|
@@ -313,11 +301,7 @@
|
|
|
313
301
|
</v-col>
|
|
314
302
|
|
|
315
303
|
<!-- Parent/Guardian Information -->
|
|
316
|
-
<v-col
|
|
317
|
-
cols="12"
|
|
318
|
-
class="mb-6"
|
|
319
|
-
v-if="!localProps.application.returningLearner"
|
|
320
|
-
>
|
|
304
|
+
<v-col cols="12" class="mb-6">
|
|
321
305
|
<v-card variant="outlined" border="thin" class="pa-4">
|
|
322
306
|
<v-card-title class="text-h6 font-weight-bold pa-0 mb-3">
|
|
323
307
|
Parent/Guardian Information
|