@byu-oit/vue-decision-processing-components 8.26.0 → 8.27.2
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 +28 -0
- package/DetailsHeader.vue +29 -4
- package/DetailsHighSchool.vue +1 -1
- 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,34 @@
|
|
|
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.2](https://github.com/byu-oit/vue-decision-processing-components/compare/v8.27.1...v8.27.2) (2022-06-24)
|
|
6
|
+
|
|
7
|
+
|
|
8
|
+
### Bug Fixes
|
|
9
|
+
|
|
10
|
+
* some applications have a 3rd field for GPA ([e18e15f](https://github.com/byu-oit/vue-decision-processing-components/commit/e18e15fe8a64303c92691e8e4b2cded06dfd9586))
|
|
11
|
+
|
|
12
|
+
### [8.27.1](https://github.com/byu-oit/vue-decision-processing-components/compare/v8.27.0...v8.27.1) (2022-06-15)
|
|
13
|
+
|
|
14
|
+
|
|
15
|
+
### Bug Fixes
|
|
16
|
+
|
|
17
|
+
* styling and errors due to (sometimes) missing ref element ([28784c3](https://github.com/byu-oit/vue-decision-processing-components/commit/28784c386f464659a2897242c18f944c8c63f5aa))
|
|
18
|
+
|
|
19
|
+
## [8.27.0](https://github.com/byu-oit/vue-decision-processing-components/compare/v8.26.1...v8.27.0) (2022-06-07)
|
|
20
|
+
|
|
21
|
+
|
|
22
|
+
### Features
|
|
23
|
+
|
|
24
|
+
* add compact option ([f9b5d98](https://github.com/byu-oit/vue-decision-processing-components/commit/f9b5d986155ccb5aca813466cdf150124b1a2a99))
|
|
25
|
+
|
|
26
|
+
### [8.26.1](https://github.com/byu-oit/vue-decision-processing-components/compare/v8.26.0...v8.26.1) (2022-06-03)
|
|
27
|
+
|
|
28
|
+
|
|
29
|
+
### Bug Fixes
|
|
30
|
+
|
|
31
|
+
* scroll flicker ([3614ced](https://github.com/byu-oit/vue-decision-processing-components/commit/3614ced02822db8e9d6d97b6df0910e1d25a0484))
|
|
32
|
+
|
|
5
33
|
## [8.26.0](https://github.com/byu-oit/vue-decision-processing-components/compare/v8.25.4...v8.26.0) (2022-06-03)
|
|
6
34
|
|
|
7
35
|
|
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>
|
|
@@ -83,6 +83,9 @@ export default {
|
|
|
83
83
|
data () {
|
|
84
84
|
return {
|
|
85
85
|
compact: false,
|
|
86
|
+
justShrank: false,
|
|
87
|
+
shrinkYLimit: 0,
|
|
88
|
+
justGrew: false,
|
|
86
89
|
hovering: false
|
|
87
90
|
}
|
|
88
91
|
},
|
|
@@ -112,15 +115,37 @@ export default {
|
|
|
112
115
|
flagState: userFlagSet ? 'clear' : 'set'
|
|
113
116
|
})
|
|
114
117
|
},
|
|
115
|
-
handleScroll (
|
|
118
|
+
handleScroll () {
|
|
116
119
|
if (!this.hovering) {
|
|
117
120
|
const containerElem = this.$refs.container
|
|
121
|
+
if (!containerElem || !containerElem.getBoundingClientRect) {
|
|
122
|
+
return
|
|
123
|
+
}
|
|
118
124
|
const containerTopY = containerElem.getBoundingClientRect().top
|
|
119
125
|
// Prevent flickering when just over the scroll threshold
|
|
126
|
+
if (this.justShrank) {
|
|
127
|
+
if (containerTopY > 0) {
|
|
128
|
+
this.shrinkYLimit = containerTopY
|
|
129
|
+
this.justShrank = false
|
|
130
|
+
}
|
|
131
|
+
} else if (containerTopY < this.shrinkYLimit) {
|
|
132
|
+
this.shrinkYLimit = containerTopY
|
|
133
|
+
}
|
|
134
|
+
if (this.justGrew) {
|
|
135
|
+
if (containerTopY > 0) {
|
|
136
|
+
this.justGrew = false
|
|
137
|
+
}
|
|
138
|
+
}
|
|
120
139
|
if (this.compact) {
|
|
121
|
-
|
|
140
|
+
if (containerTopY > this.shrinkYLimit) {
|
|
141
|
+
this.compact = false
|
|
142
|
+
this.justGrew = true
|
|
143
|
+
}
|
|
122
144
|
} else {
|
|
123
|
-
this.
|
|
145
|
+
if (!this.justGrew && containerTopY <= 0) {
|
|
146
|
+
this.justShrank = true
|
|
147
|
+
this.compact = true
|
|
148
|
+
}
|
|
124
149
|
}
|
|
125
150
|
}
|
|
126
151
|
},
|
package/DetailsHighSchool.vue
CHANGED
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.2",
|
|
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'),
|