@byu-oit/vue-decision-processing-components 8.26.1 → 8.27.3
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/ApplicantInfo.vue +16 -2
- package/CHANGELOG.md +23 -0
- package/DetailsHeader.vue +4 -1
- package/DetailsHighSchool.vue +1 -1
- package/DetailsTestScores.vue +28 -5
- package/package.json +1 -1
- package/parsers/application.js +1 -0
- package/vuexModules/application/highSchoolSummaries.js +1 -0
package/ApplicantInfo.vue
CHANGED
|
@@ -16,7 +16,10 @@
|
|
|
16
16
|
<template>
|
|
17
17
|
<div class="applicant" slot="applicantInfo">
|
|
18
18
|
<em>{{ applicantType }}</em>
|
|
19
|
-
<div>
|
|
19
|
+
<div v-if="compact">
|
|
20
|
+
{{ netId }}
|
|
21
|
+
</div>
|
|
22
|
+
<div v-else>
|
|
20
23
|
{{ netId }}
|
|
21
24
|
|
|
|
22
25
|
{{ byuId }}
|
|
@@ -29,7 +32,12 @@
|
|
|
29
32
|
|
|
|
30
33
|
{{ religion }}
|
|
31
34
|
</div>
|
|
32
|
-
<div>
|
|
35
|
+
<div v-if="compact">
|
|
36
|
+
{{ admitPeriod | yearTerm }}
|
|
37
|
+
|
|
|
38
|
+
{{ applicationStatus }}
|
|
39
|
+
</div>
|
|
40
|
+
<div v-else>
|
|
33
41
|
{{ admitPeriod | yearTerm }}
|
|
34
42
|
|
|
|
35
43
|
{{ applicantMajor }}
|
|
@@ -45,6 +53,12 @@ import { mapState } from 'vuex'
|
|
|
45
53
|
export default {
|
|
46
54
|
name: 'ApplicantInfo',
|
|
47
55
|
filters: { dateFormat },
|
|
56
|
+
props: {
|
|
57
|
+
compact: {
|
|
58
|
+
type: Boolean,
|
|
59
|
+
default: false
|
|
60
|
+
}
|
|
61
|
+
},
|
|
48
62
|
computed: {
|
|
49
63
|
...mapState({
|
|
50
64
|
applicantType: state => state.packet.applicantType ? state.packet.applicantType : state.application.applicantType,
|
package/CHANGELOG.md
CHANGED
|
@@ -2,6 +2,29 @@
|
|
|
2
2
|
|
|
3
3
|
All notable changes to this project will be documented in this file. See [standard-version](https://github.com/conventional-changelog/standard-version) for commit guidelines.
|
|
4
4
|
|
|
5
|
+
### [8.27.3](https://github.com/byu-oit/vue-decision-processing-components/compare/v8.27.2...v8.27.3) (2022-06-29)
|
|
6
|
+
|
|
7
|
+
### [8.27.2](https://github.com/byu-oit/vue-decision-processing-components/compare/v8.27.1...v8.27.2) (2022-06-24)
|
|
8
|
+
|
|
9
|
+
|
|
10
|
+
### Bug Fixes
|
|
11
|
+
|
|
12
|
+
* some applications have a 3rd field for GPA ([e18e15f](https://github.com/byu-oit/vue-decision-processing-components/commit/e18e15fe8a64303c92691e8e4b2cded06dfd9586))
|
|
13
|
+
|
|
14
|
+
### [8.27.1](https://github.com/byu-oit/vue-decision-processing-components/compare/v8.27.0...v8.27.1) (2022-06-15)
|
|
15
|
+
|
|
16
|
+
|
|
17
|
+
### Bug Fixes
|
|
18
|
+
|
|
19
|
+
* styling and errors due to (sometimes) missing ref element ([28784c3](https://github.com/byu-oit/vue-decision-processing-components/commit/28784c386f464659a2897242c18f944c8c63f5aa))
|
|
20
|
+
|
|
21
|
+
## [8.27.0](https://github.com/byu-oit/vue-decision-processing-components/compare/v8.26.1...v8.27.0) (2022-06-07)
|
|
22
|
+
|
|
23
|
+
|
|
24
|
+
### Features
|
|
25
|
+
|
|
26
|
+
* add compact option ([f9b5d98](https://github.com/byu-oit/vue-decision-processing-components/commit/f9b5d986155ccb5aca813466cdf150124b1a2a99))
|
|
27
|
+
|
|
5
28
|
### [8.26.1](https://github.com/byu-oit/vue-decision-processing-components/compare/v8.26.0...v8.26.1) (2022-06-03)
|
|
6
29
|
|
|
7
30
|
|
package/DetailsHeader.vue
CHANGED
|
@@ -30,7 +30,7 @@
|
|
|
30
30
|
<div class="additional">
|
|
31
31
|
<slot name="additionalInfoCompact"></slot>
|
|
32
32
|
</div>
|
|
33
|
-
<div class="actions bg-light">
|
|
33
|
+
<div class="actions bg-light text-body">
|
|
34
34
|
<slot name="actionsCompact"></slot>
|
|
35
35
|
</div>
|
|
36
36
|
</div>
|
|
@@ -118,6 +118,9 @@ export default {
|
|
|
118
118
|
handleScroll () {
|
|
119
119
|
if (!this.hovering) {
|
|
120
120
|
const containerElem = this.$refs.container
|
|
121
|
+
if (!containerElem || !containerElem.getBoundingClientRect) {
|
|
122
|
+
return
|
|
123
|
+
}
|
|
121
124
|
const containerTopY = containerElem.getBoundingClientRect().top
|
|
122
125
|
// Prevent flickering when just over the scroll threshold
|
|
123
126
|
if (this.justShrank) {
|
package/DetailsHighSchool.vue
CHANGED
package/DetailsTestScores.vue
CHANGED
|
@@ -25,7 +25,7 @@
|
|
|
25
25
|
</tr>
|
|
26
26
|
</thead>
|
|
27
27
|
<tbody>
|
|
28
|
-
<tr v-for="(ts, i) in
|
|
28
|
+
<tr v-for="(ts, i) in orderedTestScores">
|
|
29
29
|
<td>
|
|
30
30
|
{{ts.testName}}
|
|
31
31
|
<template v-if="ts.selfReported">
|
|
@@ -45,7 +45,7 @@
|
|
|
45
45
|
<span class="bold">({{ts.compositeScore | sat2ActFilter}} ACT)</span>
|
|
46
46
|
</td>
|
|
47
47
|
<td v-else class="composite">
|
|
48
|
-
<span class="badge badge-primary x-lg">{{ts.compositeScore}}</span>
|
|
48
|
+
<span class="badge badge-primary x-lg">{{ts.compositeScore | removeLeadingZeros}}</span>
|
|
49
49
|
</td>
|
|
50
50
|
<td>
|
|
51
51
|
<table class="table table-borderless table-sm" v-if="ts.testComponents.length > 0">
|
|
@@ -53,7 +53,7 @@
|
|
|
53
53
|
<th v-for="sub in ts.testComponents" :key="sub.name">{{sub.name}}</th>
|
|
54
54
|
</thead>
|
|
55
55
|
<tbody>
|
|
56
|
-
<td v-for="sub in ts.testComponents" :key="sub.name">{{sub.score}}</td>
|
|
56
|
+
<td v-for="sub in ts.testComponents" :key="sub.name">{{sub.score | removeLeadingZeros}}</td>
|
|
57
57
|
</tbody>
|
|
58
58
|
</table>
|
|
59
59
|
</td>
|
|
@@ -72,11 +72,34 @@ import { sat2ActFilter } from './sat2Act'
|
|
|
72
72
|
export default {
|
|
73
73
|
name: 'DetailsTestScores',
|
|
74
74
|
computed: {
|
|
75
|
-
...mapGetters([ 'testScores' ])
|
|
75
|
+
...mapGetters([ 'testScores' ]),
|
|
76
|
+
|
|
77
|
+
orderedTestScores() {
|
|
78
|
+
// sort test scores by test date
|
|
79
|
+
const scores = this.testScores.sort((a, b) => {
|
|
80
|
+
if (!a.testDate) return 1
|
|
81
|
+
if (a.testDate > b.testDate) return 1
|
|
82
|
+
else return 0
|
|
83
|
+
})
|
|
84
|
+
|
|
85
|
+
// sort 'reading' before 'listening' for TOEFL test
|
|
86
|
+
for (let score of scores) {
|
|
87
|
+
if (!score.testComponents || score.testName !== 'TOEFL') continue
|
|
88
|
+
score.testComponents = score.testComponents.sort((a, b) => {
|
|
89
|
+
if (a.name === 'listening' && b.name === 'reading') return 1
|
|
90
|
+
return 0
|
|
91
|
+
})
|
|
92
|
+
}
|
|
93
|
+
return scores
|
|
94
|
+
}
|
|
76
95
|
},
|
|
77
96
|
filters: {
|
|
78
97
|
dateFormat,
|
|
79
|
-
sat2ActFilter
|
|
98
|
+
sat2ActFilter,
|
|
99
|
+
removeLeadingZeros: function (value) {
|
|
100
|
+
if ( (!value) || !(/^\d+$/.test(value)) ) return value // leave as is if not a string of numbers
|
|
101
|
+
return parseInt(value, 10) // remove leading zeros
|
|
102
|
+
}
|
|
80
103
|
}
|
|
81
104
|
}
|
|
82
105
|
</script>
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@byu-oit/vue-decision-processing-components",
|
|
3
|
-
"version": "8.
|
|
3
|
+
"version": "8.27.3",
|
|
4
4
|
"description": "Vue components shared between decision processing systems for the CES schools.",
|
|
5
5
|
"dependencies": {
|
|
6
6
|
"@fortawesome/fontawesome-free": "^5.15.4",
|
package/parsers/application.js
CHANGED
|
@@ -185,6 +185,7 @@ export const parseHighSchoolSummaries = a => {
|
|
|
185
185
|
graduationStatus: get(h, 'graduation_status.value'),
|
|
186
186
|
graduationDate: get(h, 'graduation_date.value'),
|
|
187
187
|
highSchoolGpa: get(h, 'high_school_gpa.value'),
|
|
188
|
+
officialGpa: get(h, 'official_gpa.value'),
|
|
188
189
|
gpaCalculated: get(h, 'gpa_calculated.value'),
|
|
189
190
|
concurrentEnrollment: get(h, 'concurrent_enrollment.value'),
|
|
190
191
|
updatedDateTime: get(h, 'updated_date_time.value'),
|