@eeplatform/nuxt-layer-common 1.7.37 → 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 CHANGED
@@ -1,5 +1,17 @@
1
1
  # @eeplatform/nuxt-layer-common
2
2
 
3
+ ## 1.7.39
4
+
5
+ ### Patch Changes
6
+
7
+ - 3287e62: Fix enrollment form parent and guardian contact validation
8
+
9
+ ## 1.7.38
10
+
11
+ ### Patch Changes
12
+
13
+ - ddb3d8b: Fix enrollment preview action
14
+
3
15
  ## 1.7.37
4
16
 
5
17
  ### Patch Changes
@@ -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";
@@ -541,10 +541,7 @@
541
541
 
542
542
  <v-toolbar class="pa-0" density="compact">
543
543
  <v-row no-gutters>
544
- <v-col
545
- :cols="localProps.application?.status === 'pending' ? '6' : '12'"
546
- class="pa-0"
547
- >
544
+ <v-col :cols="localProps.noAction ? '12' : '6'" class="pa-0">
548
545
  <v-btn
549
546
  block
550
547
  variant="text"
@@ -605,6 +602,10 @@ const localProps = defineProps({
605
602
  application: {
606
603
  default: () => useEnrollment().enrollment.value,
607
604
  },
605
+ noAction: {
606
+ type: Boolean,
607
+ default: false,
608
+ },
608
609
  });
609
610
 
610
611
  const placeOfBirth = computed(() => {
package/package.json CHANGED
@@ -2,7 +2,7 @@
2
2
  "name": "@eeplatform/nuxt-layer-common",
3
3
  "license": "MIT",
4
4
  "type": "module",
5
- "version": "1.7.37",
5
+ "version": "1.7.39",
6
6
  "main": "./nuxt.config.ts",
7
7
  "publishConfig": {
8
8
  "access": "public"