@eeplatform/nuxt-layer-common 1.7.14 → 1.7.15

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.15
4
+
5
+ ### Patch Changes
6
+
7
+ - 27d3d17: Fix
8
+
3
9
  ## 1.7.14
4
10
 
5
11
  ### Patch Changes
@@ -1500,7 +1500,7 @@ const programs = ref<Array<Record<string, any>>>([]);
1500
1500
  const enrollmentSchool = computed(() => enrollment.value.school);
1501
1501
 
1502
1502
  const { data: getPrograms } = await useLazyAsyncData(
1503
- `get-programs-as-options-enrollment-form`,
1503
+ `get-programs-as-options-enrollment-form-${enrollment.value.school}`,
1504
1504
  () =>
1505
1505
  getAll({
1506
1506
  limit: 20,
@@ -21,6 +21,7 @@
21
21
  density="comfortable"
22
22
  hide-details
23
23
  rounded="xl"
24
+ @keydown.enter="setSearchValue()"
24
25
  />
25
26
  </v-col>
26
27
  </v-row>
@@ -239,12 +240,9 @@ const _search = ref("");
239
240
 
240
241
  const search = defineModel("search", { type: String });
241
242
 
242
- watch(
243
- _search,
244
- debounce((value) => {
245
- search.value = value;
246
- }, 1000)
247
- );
243
+ function setSearchValue() {
244
+ search.value = _search.value;
245
+ }
248
246
 
249
247
  const { redirect, drawer } = useLocal();
250
248
 
@@ -15,9 +15,9 @@ export default function useGradeLevel() {
15
15
  status = "active",
16
16
  school = "",
17
17
  } = {}) {
18
- return $fetch<Record<string, any>>(`/api/${resource}`, {
18
+ return $fetch<Record<string, any>>(`/api/${resource}/school/${school}`, {
19
19
  method: "GET",
20
- query: { page, limit, search, status, school },
20
+ query: { page, limit, search, status },
21
21
  });
22
22
  }
23
23
 
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.14",
5
+ "version": "1.7.15",
6
6
  "main": "./nuxt.config.ts",
7
7
  "publishConfig": {
8
8
  "access": "public"