@eeplatform/nuxt-layer-common 1.7.26 → 1.7.28

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.28
4
+
5
+ ### Patch Changes
6
+
7
+ - 3983aac: Use v-list-item prepend-icon for selected item
8
+
9
+ ## 1.7.27
10
+
11
+ ### Patch Changes
12
+
13
+ - 8a1ccac: Fix grade level loading
14
+
3
15
  ## 1.7.26
4
16
 
5
17
  ### Patch Changes
@@ -123,6 +123,8 @@
123
123
  v-model="enrollment.gradeLevel"
124
124
  :rules="[requiredRule]"
125
125
  :items="gradeLevelOffering"
126
+ :loading="loadingGradeLevel"
127
+ :disabled="loadingGradeLevel"
126
128
  ></v-autocomplete>
127
129
  </v-col>
128
130
  </v-row>
@@ -1737,13 +1739,16 @@ const { getAll: getGradeLevels } = useGradeLevel();
1737
1739
 
1738
1740
  const theSchool = computed(() => prop.school || enrollment.value.school);
1739
1741
 
1740
- const { data: getGradeLevelReq } = await useLazyAsyncData(
1741
- "get-grade-level-offerings" + theSchool.value,
1742
- () => getGradeLevels({ school: theSchool.value, limit: 100 }),
1743
- {
1744
- watch: [theSchool],
1745
- }
1746
- );
1742
+ const { data: getGradeLevelReq, status: statusGradeLevel } =
1743
+ await useLazyAsyncData(
1744
+ "get-grade-level-offerings" + theSchool.value,
1745
+ () => getGradeLevels({ school: theSchool.value, limit: 100 }),
1746
+ {
1747
+ watch: [theSchool],
1748
+ }
1749
+ );
1750
+
1751
+ const loadingGradeLevel = computed(() => statusGradeLevel.value === "pending");
1747
1752
 
1748
1753
  watchEffect(() => {
1749
1754
  if (getGradeLevelReq.value && getGradeLevelReq.value.items) {
@@ -49,11 +49,8 @@
49
49
  v-for="item in prop.items"
50
50
  :key="item.value"
51
51
  @click="selectItem(item.value)"
52
+ :prepend-icon="selected === item.value ? 'ph:check-bold' : 'none'"
52
53
  >
53
- <v-icon size="16" class="mr-2">
54
- {{ selected === item.value ? "mdi-check" : "" }}
55
- </v-icon>
56
-
57
54
  {{ item.text }}
58
55
  </v-list-item>
59
56
  </v-list>
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.26",
5
+ "version": "1.7.28",
6
6
  "main": "./nuxt.config.ts",
7
7
  "publishConfig": {
8
8
  "access": "public"