@eeplatform/nuxt-layer-common 1.7.7 → 1.7.9
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 +12 -0
- package/composables/useBasicEdu.ts +4 -14
- package/composables/useEnrollment.ts +2 -1
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,17 @@
|
|
|
1
1
|
# @eeplatform/nuxt-layer-common
|
|
2
2
|
|
|
3
|
+
## 1.7.9
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- eb1a1ec: useBasicEdu - remove kindergarten education level
|
|
8
|
+
|
|
9
|
+
## 1.7.8
|
|
10
|
+
|
|
11
|
+
### Patch Changes
|
|
12
|
+
|
|
13
|
+
- 54a5c7e: Update get all enrollment query
|
|
14
|
+
|
|
3
15
|
## 1.7.7
|
|
4
16
|
|
|
5
17
|
### Patch Changes
|
|
@@ -1,9 +1,5 @@
|
|
|
1
1
|
export default function useBasicEdu() {
|
|
2
2
|
const educationLevels = [
|
|
3
|
-
{
|
|
4
|
-
title: "Kindergarten",
|
|
5
|
-
value: "kindergarten",
|
|
6
|
-
},
|
|
7
3
|
{
|
|
8
4
|
title: "Elementary",
|
|
9
5
|
value: "elementary",
|
|
@@ -21,10 +17,9 @@ export default function useBasicEdu() {
|
|
|
21
17
|
// K-12 only
|
|
22
18
|
function getGradeLevels(educationLevel: string) {
|
|
23
19
|
switch (educationLevel) {
|
|
24
|
-
case "kindergarten":
|
|
25
|
-
return ["K1", "K2"];
|
|
26
20
|
case "elementary":
|
|
27
21
|
return [
|
|
22
|
+
"Kindergarten",
|
|
28
23
|
"Grade 1",
|
|
29
24
|
"Grade 2",
|
|
30
25
|
"Grade 3",
|
|
@@ -43,14 +38,9 @@ export default function useBasicEdu() {
|
|
|
43
38
|
|
|
44
39
|
const gradeLevels = [
|
|
45
40
|
{
|
|
46
|
-
title: "
|
|
47
|
-
value: "
|
|
48
|
-
level: "
|
|
49
|
-
},
|
|
50
|
-
{
|
|
51
|
-
title: "K2",
|
|
52
|
-
value: "K2",
|
|
53
|
-
level: "kindergarten",
|
|
41
|
+
title: "Kindergarten",
|
|
42
|
+
value: "kindergarten",
|
|
43
|
+
level: "elementary",
|
|
54
44
|
},
|
|
55
45
|
{
|
|
56
46
|
title: "Grade 1",
|
|
@@ -102,9 +102,10 @@ export default function useEnrollment() {
|
|
|
102
102
|
limit = 10,
|
|
103
103
|
search = "",
|
|
104
104
|
createdBy = "",
|
|
105
|
+
gradeLevel = "",
|
|
105
106
|
} = {}) {
|
|
106
107
|
return $fetch<Record<string, any>>("/api/basic-education/enrollments", {
|
|
107
|
-
query: { status, page, limit, search, createdBy, school },
|
|
108
|
+
query: { status, page, limit, search, createdBy, school, gradeLevel },
|
|
108
109
|
});
|
|
109
110
|
}
|
|
110
111
|
|