@eeplatform/nuxt-layer-common 1.7.31 → 1.7.32

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,11 @@
1
1
  # @eeplatform/nuxt-layer-common
2
2
 
3
+ ## 1.7.32
4
+
5
+ ### Patch Changes
6
+
7
+ - 9403626: Set track/strand names and update autocompletes
8
+
3
9
  ## 1.7.31
4
10
 
5
11
  ### Patch Changes
@@ -1302,6 +1302,9 @@
1302
1302
  <v-col cols="12">
1303
1303
  <v-autocomplete
1304
1304
  v-model="enrollment.seniorHighInfo.track"
1305
+ item-title="title"
1306
+ item-value="value"
1307
+ :return-object="false"
1305
1308
  :items="tracks"
1306
1309
  ></v-autocomplete>
1307
1310
  </v-col>
@@ -1318,6 +1321,9 @@
1318
1321
  <v-col cols="12">
1319
1322
  <v-autocomplete
1320
1323
  v-model="enrollment.seniorHighInfo.strand"
1324
+ item-title="title"
1325
+ item-value="value"
1326
+ :return-object="false"
1321
1327
  :items="selectedTrackStrands"
1322
1328
  ></v-autocomplete>
1323
1329
  </v-col>
@@ -2252,6 +2258,34 @@ const isSeniorHighSchool = computed(() => {
2252
2258
  return ["grade-11", "grade-12"].includes(gradeLevel);
2253
2259
  });
2254
2260
 
2261
+ // Watch for track selection and set trackName
2262
+ watch(
2263
+ () => enrollment.value.seniorHighInfo?.track,
2264
+ (trackValue) => {
2265
+ if (!trackValue || !enrollment.value.seniorHighInfo) return;
2266
+
2267
+ const selectedTrack = tracks.find((track) => track.value === trackValue);
2268
+ if (selectedTrack && enrollment.value.seniorHighInfo) {
2269
+ enrollment.value.seniorHighInfo.trackName = selectedTrack.title ?? "";
2270
+ }
2271
+ }
2272
+ );
2273
+
2274
+ // Watch for strand selection and set strandName
2275
+ watch(
2276
+ () => enrollment.value.seniorHighInfo?.strand,
2277
+ (strandValue) => {
2278
+ if (!strandValue || !enrollment.value.seniorHighInfo) return;
2279
+
2280
+ const selectedStrand = selectedTrackStrands.value.find(
2281
+ (strand) => strand.value === strandValue
2282
+ );
2283
+ if (selectedStrand && enrollment.value.seniorHighInfo) {
2284
+ enrollment.value.seniorHighInfo.strandName = selectedStrand.title ?? "";
2285
+ }
2286
+ }
2287
+ );
2288
+
2255
2289
  const isKindergarten = computed(() => {
2256
2290
  const gradeLevel = enrollment.value.gradeLevel;
2257
2291
  return gradeLevel === "kindergarten" || gradeLevel === "kinder";
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.31",
5
+ "version": "1.7.32",
6
6
  "main": "./nuxt.config.ts",
7
7
  "publishConfig": {
8
8
  "access": "public"