@eeplatform/nuxt-layer-common 1.7.38 → 1.7.39
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 +11 -0
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -1083,6 +1083,7 @@
|
|
|
1083
1083
|
placeholder="09XX-XXX-XXXX"
|
|
1084
1084
|
variant="outlined"
|
|
1085
1085
|
density="comfortable"
|
|
1086
|
+
:rules="[validContactNumber]"
|
|
1086
1087
|
></v-mask-input>
|
|
1087
1088
|
</v-col>
|
|
1088
1089
|
</v-row>
|
|
@@ -1158,6 +1159,7 @@
|
|
|
1158
1159
|
placeholder="09XX-XXX-XXXX"
|
|
1159
1160
|
variant="outlined"
|
|
1160
1161
|
density="comfortable"
|
|
1162
|
+
:rules="[validContactNumber]"
|
|
1161
1163
|
></v-mask-input>
|
|
1162
1164
|
</v-col>
|
|
1163
1165
|
</v-row>
|
|
@@ -1233,6 +1235,7 @@
|
|
|
1233
1235
|
placeholder="09XX-XXX-XXXX"
|
|
1234
1236
|
variant="outlined"
|
|
1235
1237
|
density="comfortable"
|
|
1238
|
+
:rules="[validContactNumber]"
|
|
1236
1239
|
></v-mask-input>
|
|
1237
1240
|
</v-col>
|
|
1238
1241
|
</v-row>
|
|
@@ -1466,6 +1469,14 @@ if (prop.school) {
|
|
|
1466
1469
|
|
|
1467
1470
|
enrollment.value.createdBy = useCookie("user", cookieConfig).value ?? "";
|
|
1468
1471
|
|
|
1472
|
+
function validContactNumber(value: string) {
|
|
1473
|
+
if (value && value.length < 11) {
|
|
1474
|
+
return "Contact number must be at least 11 digits.";
|
|
1475
|
+
}
|
|
1476
|
+
|
|
1477
|
+
return true;
|
|
1478
|
+
}
|
|
1479
|
+
|
|
1469
1480
|
// Set default country values on mount
|
|
1470
1481
|
if (!enrollment.value.address.current.country) {
|
|
1471
1482
|
enrollment.value.address.current.country = "Philippines";
|