@byu-oit/vue-decision-processing-components 8.35.7 → 8.35.8
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/.github/workflows/deploy.yml +51 -0
- package/.repo-meta.yml +55 -55
- package/AdmitPeriodConfig.vue +115 -115
- package/ApiCallButton.vue +91 -91
- package/ApplicantInfo.vue +100 -100
- package/AssignmentBulkDialog.vue +153 -153
- package/AssignmentDialog.vue +117 -117
- package/AssignmentSummary.vue +75 -75
- package/BackgroundBadge.vue +83 -83
- package/BackgroundDetailCrime.vue +78 -78
- package/BackgroundDetailPluralMarriage.vue +43 -43
- package/BackgroundDetailSexRegistry.vue +43 -43
- package/BackgroundDetailUniversity.vue +37 -37
- package/CHANGELOG.md +676 -670
- package/Dashboard.vue +201 -201
- package/DashboardApplicationList.vue +50 -50
- package/DecisionDialog.vue +178 -178
- package/Details.vue +124 -124
- package/DetailsActivity.vue +59 -59
- package/DetailsBackground.vue +143 -143
- package/DetailsBackgroundDetail.vue +47 -47
- package/DetailsBackgroundSummary.vue +66 -66
- package/DetailsCesHold.vue +107 -107
- package/DetailsCollege.vue +93 -93
- package/DetailsContact.vue +65 -65
- package/DetailsDecision.vue +183 -183
- package/DetailsDecisionHistory.vue +56 -56
- package/DetailsEndorsement.vue +74 -74
- package/DetailsEssay.vue +59 -59
- package/DetailsFilenote.vue +62 -62
- package/DetailsFilenoteList.vue +109 -109
- package/DetailsFlagSection.vue +176 -176
- package/DetailsHeader.vue +263 -263
- package/DetailsHighSchool.vue +99 -99
- package/DetailsHsTranscript.vue +100 -100
- package/DetailsInstitute.vue +90 -90
- package/DetailsMission.vue +88 -88
- package/DetailsNewAppHistory.vue +50 -50
- package/DetailsNotes.vue +83 -83
- package/DetailsPathway.vue +45 -45
- package/DetailsScoringSection.vue +128 -128
- package/DetailsSection.vue +116 -116
- package/DetailsSeminary.vue +184 -184
- package/DetailsSrs.vue +52 -52
- package/DetailsSubnav.vue +54 -54
- package/DetailsTestScores.vue +131 -131
- package/ExpandIndicator.vue +75 -75
- package/ExternalLink.vue +34 -34
- package/FilterBreadcrumb.vue +85 -85
- package/FilterButton.vue +86 -86
- package/FilterButtonAdmitPeriod.vue +104 -109
- package/FilterButtonAppType.vue +103 -103
- package/FilterButtonAssignedTo.vue +96 -96
- package/FilterButtonClearFilters.vue +65 -65
- package/FilterButtonSex.vue +105 -105
- package/FlagButton.vue +59 -59
- package/FlagDialog.vue +129 -129
- package/Footer.vue +432 -432
- package/Header.vue +132 -132
- package/HighSchoolSummary.vue +60 -60
- package/InternationalIndicator.vue +44 -44
- package/InternationalStatus.vue +48 -48
- package/LICENSE +201 -201
- package/LoadingBadge.vue +58 -58
- package/ManageAssignments.vue +123 -123
- package/NoAuth.vue +14 -14
- package/NoteDialog.vue +106 -106
- package/ObjectViewer.vue +49 -49
- package/Queues.vue +268 -268
- package/QuickLinks.vue +25 -25
- package/README.md +2 -2
- package/RecentApplications.vue +53 -53
- package/Report.vue +340 -340
- package/ReportDetail.vue +279 -279
- package/ReportList.vue +87 -87
- package/ReportPhotos.vue +65 -65
- package/ReportSvg.vue +78 -78
- package/ReportViewer.vue +165 -165
- package/RequestAccess.vue +14 -14
- package/RequestAccessList.vue +45 -45
- package/RoleSelector.vue +29 -29
- package/Search.vue +22 -22
- package/ShowApplicantIds.vue +100 -100
- package/SortableHeader.vue +53 -53
- package/Spinner.vue +34 -34
- package/StarredIndicator.vue +36 -36
- package/StatBox.vue +73 -73
- package/StatCharts.vue +196 -196
- package/SupportDialog.vue +172 -172
- package/UserInfo.vue +52 -52
- package/YesNoIndicator.vue +48 -48
- package/dateTimeFormat.js +67 -67
- package/gpaCalculation.js +162 -162
- package/gpaFilter.js +5 -5
- package/hsSummary.json +2019 -2019
- package/package.json +36 -36
- package/parsers/application.js +396 -396
- package/parsers/decisionHistory.js +27 -27
- package/parsers/filenotes.js +27 -27
- package/parsers/notes.js +49 -49
- package/parsers/packet.js +88 -88
- package/parsers/packetList.js +57 -57
- package/parsers/reports.js +13 -13
- package/sat2Act.js +46 -46
- package/test.js +48 -48
- package/themes/ByuiFooter.vue +38 -38
- package/themes/ByuiHeader.vue +96 -96
- package/themes/LdsbcFooter.vue +38 -38
- package/themes/LdsbcHeader.vue +100 -100
- package/vuexModules/application/activity.js +32 -32
- package/vuexModules/application/applicationList.js +71 -71
- package/vuexModules/application/background.js +47 -47
- package/vuexModules/application/bio.js +38 -38
- package/vuexModules/application/citizenship.js +30 -30
- package/vuexModules/application/collegeSummaries.js +32 -32
- package/vuexModules/application/essay.js +26 -26
- package/vuexModules/application/highSchoolSummaries.js +40 -40
- package/vuexModules/application/index.js +157 -157
- package/vuexModules/application/institute.js +30 -30
- package/vuexModules/application/mission.js +48 -48
- package/vuexModules/application/personalRecords.js +24 -24
- package/vuexModules/application/questions.js +23 -23
- package/vuexModules/application/seminary.js +39 -39
- package/vuexModules/application/testScores.js +26 -26
- package/vuexModules/notes/index.js +22 -22
- package/vuexModules/packet/decision.js +43 -43
- package/vuexModules/packet/decisionHistory.js +28 -28
- package/vuexModules/packet/flags.js +174 -174
- package/vuexModules/packet/index.js +52 -52
- package/vuexModules/packet/packetList.js +127 -127
- package/vuexModules/packet/processes.js +28 -28
- package/vuexModules/reports/index.js +32 -32
- package/vuexModules/ui/index.js +56 -56
- package/vuexModules/users/index.js +46 -46
- package/yyyyMmFilter.js +7 -7
package/DetailsDecision.vue
CHANGED
|
@@ -1,183 +1,183 @@
|
|
|
1
|
-
<!--
|
|
2
|
-
Copyright 2018 Brigham Young University
|
|
3
|
-
|
|
4
|
-
Licensed under the Apache License, Version 2.0 (the "License");
|
|
5
|
-
you may not use this file except in compliance with the License.
|
|
6
|
-
You may obtain a copy of the License at
|
|
7
|
-
|
|
8
|
-
http://www.apache.org/licenses/LICENSE-2.0
|
|
9
|
-
|
|
10
|
-
Unless required by applicable law or agreed to in writing, software
|
|
11
|
-
distributed under the License is distributed on an "AS IS" BASIS,
|
|
12
|
-
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
13
|
-
See the License for the specific language governing permissions and
|
|
14
|
-
limitations under the License.
|
|
15
|
-
-->
|
|
16
|
-
<template>
|
|
17
|
-
<div class="decision-container bg-light">
|
|
18
|
-
<div v-if="!/^OPEN$/i.test(decision)" class="decision-display">
|
|
19
|
-
<span>{{ decisionText }}</span>
|
|
20
|
-
<span>{{ admitPeriod | yearTerm }}</span>
|
|
21
|
-
<span>{{ decisionDateTime | dateTime }}</span>
|
|
22
|
-
<span v-if="showUpdatedBy">{{ decisionUpdatedBy }}</span>
|
|
23
|
-
<span v-if="shortExplanation">{{ decisionExplanation }}</span>
|
|
24
|
-
<div v-else>
|
|
25
|
-
{{ truncatedExplanation }}
|
|
26
|
-
<button @click="showFullExplanation" class="btn btn-sm btn-outline-primary">View</button>
|
|
27
|
-
</div>
|
|
28
|
-
<button
|
|
29
|
-
v-if="!disabledChange && !readOnly"
|
|
30
|
-
@click="enterDecision"
|
|
31
|
-
class="btn btn-sm btn-outline-secondary"
|
|
32
|
-
>Change Decision</button>
|
|
33
|
-
<span v-else-if="!!disabledChangeMessage" class="to-caps">{{disabledChangeMessage}}</span>
|
|
34
|
-
</div>
|
|
35
|
-
<span v-else>
|
|
36
|
-
<button
|
|
37
|
-
v-if="!disabledEntry && !readOnly"
|
|
38
|
-
@click="enterDecision"
|
|
39
|
-
class="btn btn-outline-secondary block"
|
|
40
|
-
>Enter Decision</button>
|
|
41
|
-
<span v-else-if="!!disabledEntryMessage" class="block to-caps">{{disabledEntryMessage}}</span>
|
|
42
|
-
</span>
|
|
43
|
-
</div>
|
|
44
|
-
</template>
|
|
45
|
-
<script>
|
|
46
|
-
import { dateTimeFormat, yearTermLongFormat } from './dateTimeFormat'
|
|
47
|
-
import get from 'lodash.get'
|
|
48
|
-
import { mapState, mapGetters } from 'vuex'
|
|
49
|
-
|
|
50
|
-
export default {
|
|
51
|
-
name: 'DetailsDecision',
|
|
52
|
-
props: {
|
|
53
|
-
readOnly: {
|
|
54
|
-
type: Boolean,
|
|
55
|
-
default: false
|
|
56
|
-
},
|
|
57
|
-
disabled: {
|
|
58
|
-
type: Object, // { [key: ['change', 'entry', 'all']]: Boolean | String }
|
|
59
|
-
default: () => ({})
|
|
60
|
-
},
|
|
61
|
-
showUpdatedBy: {
|
|
62
|
-
type: Boolean,
|
|
63
|
-
default: false
|
|
64
|
-
}
|
|
65
|
-
},
|
|
66
|
-
filters: {
|
|
67
|
-
dateTime: dateTimeFormat,
|
|
68
|
-
yearTerm: yearTermLongFormat
|
|
69
|
-
},
|
|
70
|
-
computed: {
|
|
71
|
-
...mapState({
|
|
72
|
-
decision: state => get(state, 'packet.decision.value', 'OPEN'),
|
|
73
|
-
decisionText: state => get(
|
|
74
|
-
state,
|
|
75
|
-
'packet.decision.reason',
|
|
76
|
-
get(state, 'packet.decision.value')
|
|
77
|
-
),
|
|
78
|
-
decisionDateTime: state => get(state, 'packet.decision.dateTimeUpdated'),
|
|
79
|
-
admitPeriod: state => get(state, 'packet.admitPeriod'),
|
|
80
|
-
decisionExplanation: state => get(state, 'packet.decision.explanation'),
|
|
81
|
-
decisionUpdatedBy: state => get(state, 'packet.decision.updatedBy')
|
|
82
|
-
}),
|
|
83
|
-
disabledChange () {
|
|
84
|
-
const disabledKeys = Object.keys(this.disabled)
|
|
85
|
-
if (disabledKeys.includes('all')) {
|
|
86
|
-
return !!this.disabled.all
|
|
87
|
-
} else if (disabledKeys.includes('change')) {
|
|
88
|
-
return !!this.disabled.change
|
|
89
|
-
} else {
|
|
90
|
-
return false
|
|
91
|
-
}
|
|
92
|
-
},
|
|
93
|
-
disabledEntry () {
|
|
94
|
-
const disabledKeys = Object.keys(this.disabled)
|
|
95
|
-
if (disabledKeys.includes('all')) {
|
|
96
|
-
return !!this.disabled.all
|
|
97
|
-
} else if (disabledKeys.includes('entry')) {
|
|
98
|
-
return !!this.disabled.entry
|
|
99
|
-
} else {
|
|
100
|
-
return false
|
|
101
|
-
}
|
|
102
|
-
},
|
|
103
|
-
disabledChangeMessage () {
|
|
104
|
-
if(typeof this.disabled.change === 'string') {
|
|
105
|
-
return this.disabled.change
|
|
106
|
-
} else if (typeof this.disabled.all === 'string') {
|
|
107
|
-
return this.disabled.all
|
|
108
|
-
}
|
|
109
|
-
return ''
|
|
110
|
-
},
|
|
111
|
-
disabledEntryMessage () {
|
|
112
|
-
if(typeof this.disabled.entry === 'string') {
|
|
113
|
-
return this.disabled.entry
|
|
114
|
-
} else if (typeof this.disabled.all === 'string') {
|
|
115
|
-
return this.disabled.all
|
|
116
|
-
}
|
|
117
|
-
return ''
|
|
118
|
-
},
|
|
119
|
-
shortExplanation () {
|
|
120
|
-
return this.decisionExplanation.length < 30
|
|
121
|
-
},
|
|
122
|
-
truncatedExplanation () {
|
|
123
|
-
return this.decisionExplanation.substr(0, 26).concat('...')
|
|
124
|
-
}
|
|
125
|
-
},
|
|
126
|
-
methods: {
|
|
127
|
-
enterDecision () {
|
|
128
|
-
this.$modal.show('decision-modal')
|
|
129
|
-
},
|
|
130
|
-
showFullExplanation () {
|
|
131
|
-
this.$modal.show('dialog', {
|
|
132
|
-
title: 'Decision Explanation',
|
|
133
|
-
buttons: [
|
|
134
|
-
{ title: 'Close' }
|
|
135
|
-
],
|
|
136
|
-
text: this.decisionExplanation
|
|
137
|
-
})
|
|
138
|
-
}
|
|
139
|
-
}
|
|
140
|
-
}
|
|
141
|
-
</script>
|
|
142
|
-
<style scoped>
|
|
143
|
-
.block {
|
|
144
|
-
display: block;
|
|
145
|
-
text-align: center;
|
|
146
|
-
width: 100%;
|
|
147
|
-
}
|
|
148
|
-
|
|
149
|
-
.decision-container {
|
|
150
|
-
padding: 1rem;
|
|
151
|
-
display: flex;
|
|
152
|
-
flex-direction: column;
|
|
153
|
-
justify-content: space-around;
|
|
154
|
-
line-height: 1.2rem;
|
|
155
|
-
}
|
|
156
|
-
|
|
157
|
-
.decision-value {
|
|
158
|
-
font-size: 1.15rem;
|
|
159
|
-
}
|
|
160
|
-
|
|
161
|
-
.to-caps {
|
|
162
|
-
text-transform: uppercase;
|
|
163
|
-
}
|
|
164
|
-
|
|
165
|
-
.decision-display {
|
|
166
|
-
display: grid;
|
|
167
|
-
grid-template-columns: auto 1fr;
|
|
168
|
-
grid-auto-rows: auto;
|
|
169
|
-
grid-column-gap: 0.5rem;
|
|
170
|
-
}
|
|
171
|
-
|
|
172
|
-
.truncated {
|
|
173
|
-
position: relative;
|
|
174
|
-
height: 2.4rem;
|
|
175
|
-
overflow: hidden;
|
|
176
|
-
}
|
|
177
|
-
|
|
178
|
-
@media only screen and (max-width: 625px) {
|
|
179
|
-
.decision-container {
|
|
180
|
-
align-items: center;
|
|
181
|
-
}
|
|
182
|
-
}
|
|
183
|
-
</style>
|
|
1
|
+
<!--
|
|
2
|
+
Copyright 2018 Brigham Young University
|
|
3
|
+
|
|
4
|
+
Licensed under the Apache License, Version 2.0 (the "License");
|
|
5
|
+
you may not use this file except in compliance with the License.
|
|
6
|
+
You may obtain a copy of the License at
|
|
7
|
+
|
|
8
|
+
http://www.apache.org/licenses/LICENSE-2.0
|
|
9
|
+
|
|
10
|
+
Unless required by applicable law or agreed to in writing, software
|
|
11
|
+
distributed under the License is distributed on an "AS IS" BASIS,
|
|
12
|
+
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
13
|
+
See the License for the specific language governing permissions and
|
|
14
|
+
limitations under the License.
|
|
15
|
+
-->
|
|
16
|
+
<template>
|
|
17
|
+
<div class="decision-container bg-light">
|
|
18
|
+
<div v-if="!/^OPEN$/i.test(decision)" class="decision-display">
|
|
19
|
+
<span>{{ decisionText }}</span>
|
|
20
|
+
<span>{{ admitPeriod | yearTerm }}</span>
|
|
21
|
+
<span>{{ decisionDateTime | dateTime }}</span>
|
|
22
|
+
<span v-if="showUpdatedBy">{{ decisionUpdatedBy }}</span>
|
|
23
|
+
<span v-if="shortExplanation">{{ decisionExplanation }}</span>
|
|
24
|
+
<div v-else>
|
|
25
|
+
{{ truncatedExplanation }}
|
|
26
|
+
<button @click="showFullExplanation" class="btn btn-sm btn-outline-primary">View</button>
|
|
27
|
+
</div>
|
|
28
|
+
<button
|
|
29
|
+
v-if="!disabledChange && !readOnly"
|
|
30
|
+
@click="enterDecision"
|
|
31
|
+
class="btn btn-sm btn-outline-secondary"
|
|
32
|
+
>Change Decision</button>
|
|
33
|
+
<span v-else-if="!!disabledChangeMessage" class="to-caps">{{disabledChangeMessage}}</span>
|
|
34
|
+
</div>
|
|
35
|
+
<span v-else>
|
|
36
|
+
<button
|
|
37
|
+
v-if="!disabledEntry && !readOnly"
|
|
38
|
+
@click="enterDecision"
|
|
39
|
+
class="btn btn-outline-secondary block"
|
|
40
|
+
>Enter Decision</button>
|
|
41
|
+
<span v-else-if="!!disabledEntryMessage" class="block to-caps">{{disabledEntryMessage}}</span>
|
|
42
|
+
</span>
|
|
43
|
+
</div>
|
|
44
|
+
</template>
|
|
45
|
+
<script>
|
|
46
|
+
import { dateTimeFormat, yearTermLongFormat } from './dateTimeFormat'
|
|
47
|
+
import get from 'lodash.get'
|
|
48
|
+
import { mapState, mapGetters } from 'vuex'
|
|
49
|
+
|
|
50
|
+
export default {
|
|
51
|
+
name: 'DetailsDecision',
|
|
52
|
+
props: {
|
|
53
|
+
readOnly: {
|
|
54
|
+
type: Boolean,
|
|
55
|
+
default: false
|
|
56
|
+
},
|
|
57
|
+
disabled: {
|
|
58
|
+
type: Object, // { [key: ['change', 'entry', 'all']]: Boolean | String }
|
|
59
|
+
default: () => ({})
|
|
60
|
+
},
|
|
61
|
+
showUpdatedBy: {
|
|
62
|
+
type: Boolean,
|
|
63
|
+
default: false
|
|
64
|
+
}
|
|
65
|
+
},
|
|
66
|
+
filters: {
|
|
67
|
+
dateTime: dateTimeFormat,
|
|
68
|
+
yearTerm: yearTermLongFormat
|
|
69
|
+
},
|
|
70
|
+
computed: {
|
|
71
|
+
...mapState({
|
|
72
|
+
decision: state => get(state, 'packet.decision.value', 'OPEN'),
|
|
73
|
+
decisionText: state => get(
|
|
74
|
+
state,
|
|
75
|
+
'packet.decision.reason',
|
|
76
|
+
get(state, 'packet.decision.value')
|
|
77
|
+
),
|
|
78
|
+
decisionDateTime: state => get(state, 'packet.decision.dateTimeUpdated'),
|
|
79
|
+
admitPeriod: state => get(state, 'packet.admitPeriod'),
|
|
80
|
+
decisionExplanation: state => get(state, 'packet.decision.explanation'),
|
|
81
|
+
decisionUpdatedBy: state => get(state, 'packet.decision.updatedBy')
|
|
82
|
+
}),
|
|
83
|
+
disabledChange () {
|
|
84
|
+
const disabledKeys = Object.keys(this.disabled)
|
|
85
|
+
if (disabledKeys.includes('all')) {
|
|
86
|
+
return !!this.disabled.all
|
|
87
|
+
} else if (disabledKeys.includes('change')) {
|
|
88
|
+
return !!this.disabled.change
|
|
89
|
+
} else {
|
|
90
|
+
return false
|
|
91
|
+
}
|
|
92
|
+
},
|
|
93
|
+
disabledEntry () {
|
|
94
|
+
const disabledKeys = Object.keys(this.disabled)
|
|
95
|
+
if (disabledKeys.includes('all')) {
|
|
96
|
+
return !!this.disabled.all
|
|
97
|
+
} else if (disabledKeys.includes('entry')) {
|
|
98
|
+
return !!this.disabled.entry
|
|
99
|
+
} else {
|
|
100
|
+
return false
|
|
101
|
+
}
|
|
102
|
+
},
|
|
103
|
+
disabledChangeMessage () {
|
|
104
|
+
if(typeof this.disabled.change === 'string') {
|
|
105
|
+
return this.disabled.change
|
|
106
|
+
} else if (typeof this.disabled.all === 'string') {
|
|
107
|
+
return this.disabled.all
|
|
108
|
+
}
|
|
109
|
+
return ''
|
|
110
|
+
},
|
|
111
|
+
disabledEntryMessage () {
|
|
112
|
+
if(typeof this.disabled.entry === 'string') {
|
|
113
|
+
return this.disabled.entry
|
|
114
|
+
} else if (typeof this.disabled.all === 'string') {
|
|
115
|
+
return this.disabled.all
|
|
116
|
+
}
|
|
117
|
+
return ''
|
|
118
|
+
},
|
|
119
|
+
shortExplanation () {
|
|
120
|
+
return this.decisionExplanation.length < 30
|
|
121
|
+
},
|
|
122
|
+
truncatedExplanation () {
|
|
123
|
+
return this.decisionExplanation.substr(0, 26).concat('...')
|
|
124
|
+
}
|
|
125
|
+
},
|
|
126
|
+
methods: {
|
|
127
|
+
enterDecision () {
|
|
128
|
+
this.$modal.show('decision-modal')
|
|
129
|
+
},
|
|
130
|
+
showFullExplanation () {
|
|
131
|
+
this.$modal.show('dialog', {
|
|
132
|
+
title: 'Decision Explanation',
|
|
133
|
+
buttons: [
|
|
134
|
+
{ title: 'Close' }
|
|
135
|
+
],
|
|
136
|
+
text: this.decisionExplanation
|
|
137
|
+
})
|
|
138
|
+
}
|
|
139
|
+
}
|
|
140
|
+
}
|
|
141
|
+
</script>
|
|
142
|
+
<style scoped>
|
|
143
|
+
.block {
|
|
144
|
+
display: block;
|
|
145
|
+
text-align: center;
|
|
146
|
+
width: 100%;
|
|
147
|
+
}
|
|
148
|
+
|
|
149
|
+
.decision-container {
|
|
150
|
+
padding: 1rem;
|
|
151
|
+
display: flex;
|
|
152
|
+
flex-direction: column;
|
|
153
|
+
justify-content: space-around;
|
|
154
|
+
line-height: 1.2rem;
|
|
155
|
+
}
|
|
156
|
+
|
|
157
|
+
.decision-value {
|
|
158
|
+
font-size: 1.15rem;
|
|
159
|
+
}
|
|
160
|
+
|
|
161
|
+
.to-caps {
|
|
162
|
+
text-transform: uppercase;
|
|
163
|
+
}
|
|
164
|
+
|
|
165
|
+
.decision-display {
|
|
166
|
+
display: grid;
|
|
167
|
+
grid-template-columns: auto 1fr;
|
|
168
|
+
grid-auto-rows: auto;
|
|
169
|
+
grid-column-gap: 0.5rem;
|
|
170
|
+
}
|
|
171
|
+
|
|
172
|
+
.truncated {
|
|
173
|
+
position: relative;
|
|
174
|
+
height: 2.4rem;
|
|
175
|
+
overflow: hidden;
|
|
176
|
+
}
|
|
177
|
+
|
|
178
|
+
@media only screen and (max-width: 625px) {
|
|
179
|
+
.decision-container {
|
|
180
|
+
align-items: center;
|
|
181
|
+
}
|
|
182
|
+
}
|
|
183
|
+
</style>
|
|
@@ -1,56 +1,56 @@
|
|
|
1
|
-
<!--
|
|
2
|
-
Copyright 2018 Brigham Young University
|
|
3
|
-
|
|
4
|
-
Licensed under the Apache License, Version 2.0 (the "License");
|
|
5
|
-
you may not use this file except in compliance with the License.
|
|
6
|
-
You may obtain a copy of the License at
|
|
7
|
-
|
|
8
|
-
http://www.apache.org/licenses/LICENSE-2.0
|
|
9
|
-
|
|
10
|
-
Unless required by applicable law or agreed to in writing, software
|
|
11
|
-
distributed under the License is distributed on an "AS IS" BASIS,
|
|
12
|
-
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
13
|
-
See the License for the specific language governing permissions and
|
|
14
|
-
limitations under the License.
|
|
15
|
-
-->
|
|
16
|
-
<template>
|
|
17
|
-
<table class="table table-sm table-borderless">
|
|
18
|
-
<thead>
|
|
19
|
-
<tr>
|
|
20
|
-
<th>Admit Period</th>
|
|
21
|
-
<th>Applicant Type</th>
|
|
22
|
-
<th>Decision</th>
|
|
23
|
-
<th>Level</th>
|
|
24
|
-
<th>Qualifier</th>
|
|
25
|
-
<th>Officer</th>
|
|
26
|
-
<th>Date</th>
|
|
27
|
-
<th>Note</th>
|
|
28
|
-
</tr>
|
|
29
|
-
</thead>
|
|
30
|
-
<tbody>
|
|
31
|
-
<tr v-for="( row, i ) of decisionHistory" :key="i">
|
|
32
|
-
<td>{{row.admitPeriod | yearTermLongFormat}}</td>
|
|
33
|
-
<td>{{row.applicantType}}</td>
|
|
34
|
-
<td>{{row.decision}}</td>
|
|
35
|
-
<td>{{row.level}}</td>
|
|
36
|
-
<td>{{row.qualifier}}</td>
|
|
37
|
-
<td>{{row.officer}}</td>
|
|
38
|
-
<td>{{row.date | dateFormat}}</td>
|
|
39
|
-
<td>{{row.note}}</td>
|
|
40
|
-
</tr>
|
|
41
|
-
</tbody>
|
|
42
|
-
</table>
|
|
43
|
-
</template>
|
|
44
|
-
<script>
|
|
45
|
-
import { mapGetters } from 'vuex'
|
|
46
|
-
import { dateFormat, yearTermLongFormat } from './dateTimeFormat'
|
|
47
|
-
|
|
48
|
-
export default {
|
|
49
|
-
name: 'DetailsDecisionHistory',
|
|
50
|
-
filters: { dateFormat, yearTermLongFormat },
|
|
51
|
-
computed: {
|
|
52
|
-
...mapGetters(['decisionHistory'])
|
|
53
|
-
}
|
|
54
|
-
}
|
|
55
|
-
|
|
56
|
-
</script>
|
|
1
|
+
<!--
|
|
2
|
+
Copyright 2018 Brigham Young University
|
|
3
|
+
|
|
4
|
+
Licensed under the Apache License, Version 2.0 (the "License");
|
|
5
|
+
you may not use this file except in compliance with the License.
|
|
6
|
+
You may obtain a copy of the License at
|
|
7
|
+
|
|
8
|
+
http://www.apache.org/licenses/LICENSE-2.0
|
|
9
|
+
|
|
10
|
+
Unless required by applicable law or agreed to in writing, software
|
|
11
|
+
distributed under the License is distributed on an "AS IS" BASIS,
|
|
12
|
+
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
13
|
+
See the License for the specific language governing permissions and
|
|
14
|
+
limitations under the License.
|
|
15
|
+
-->
|
|
16
|
+
<template>
|
|
17
|
+
<table class="table table-sm table-borderless">
|
|
18
|
+
<thead>
|
|
19
|
+
<tr>
|
|
20
|
+
<th>Admit Period</th>
|
|
21
|
+
<th>Applicant Type</th>
|
|
22
|
+
<th>Decision</th>
|
|
23
|
+
<th>Level</th>
|
|
24
|
+
<th>Qualifier</th>
|
|
25
|
+
<th>Officer</th>
|
|
26
|
+
<th>Date</th>
|
|
27
|
+
<th>Note</th>
|
|
28
|
+
</tr>
|
|
29
|
+
</thead>
|
|
30
|
+
<tbody>
|
|
31
|
+
<tr v-for="( row, i ) of decisionHistory" :key="i">
|
|
32
|
+
<td>{{row.admitPeriod | yearTermLongFormat}}</td>
|
|
33
|
+
<td>{{row.applicantType}}</td>
|
|
34
|
+
<td>{{row.decision}}</td>
|
|
35
|
+
<td>{{row.level}}</td>
|
|
36
|
+
<td>{{row.qualifier}}</td>
|
|
37
|
+
<td>{{row.officer}}</td>
|
|
38
|
+
<td>{{row.date | dateFormat}}</td>
|
|
39
|
+
<td>{{row.note}}</td>
|
|
40
|
+
</tr>
|
|
41
|
+
</tbody>
|
|
42
|
+
</table>
|
|
43
|
+
</template>
|
|
44
|
+
<script>
|
|
45
|
+
import { mapGetters } from 'vuex'
|
|
46
|
+
import { dateFormat, yearTermLongFormat } from './dateTimeFormat'
|
|
47
|
+
|
|
48
|
+
export default {
|
|
49
|
+
name: 'DetailsDecisionHistory',
|
|
50
|
+
filters: { dateFormat, yearTermLongFormat },
|
|
51
|
+
computed: {
|
|
52
|
+
...mapGetters(['decisionHistory'])
|
|
53
|
+
}
|
|
54
|
+
}
|
|
55
|
+
|
|
56
|
+
</script>
|
package/DetailsEndorsement.vue
CHANGED
|
@@ -1,74 +1,74 @@
|
|
|
1
|
-
<!--
|
|
2
|
-
Copyright 2018 Brigham Young University
|
|
3
|
-
|
|
4
|
-
Licensed under the Apache License, Version 2.0 (the "License");
|
|
5
|
-
you may not use this file except in compliance with the License.
|
|
6
|
-
You may obtain a copy of the License at
|
|
7
|
-
|
|
8
|
-
http://www.apache.org/licenses/LICENSE-2.0
|
|
9
|
-
|
|
10
|
-
Unless required by applicable law or agreed to in writing, software
|
|
11
|
-
distributed under the License is distributed on an "AS IS" BASIS,
|
|
12
|
-
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
13
|
-
See the License for the specific language governing permissions and
|
|
14
|
-
limitations under the License.
|
|
15
|
-
-->
|
|
16
|
-
<template>
|
|
17
|
-
<div class="p-2">
|
|
18
|
-
<span :class="statusClass">
|
|
19
|
-
<font-awesome-icon :icon="icon" />
|
|
20
|
-
|
|
21
|
-
{{endorsementStatus}}
|
|
22
|
-
<small>
|
|
23
|
-
<a :href="endorseHref" target="_blank" data-disable-navigate="true">
|
|
24
|
-
(view details)
|
|
25
|
-
</a>
|
|
26
|
-
</small>
|
|
27
|
-
</span>
|
|
28
|
-
</div>
|
|
29
|
-
</template>
|
|
30
|
-
<script>
|
|
31
|
-
import { FontAwesomeIcon } from '@fortawesome/vue-fontawesome'
|
|
32
|
-
import { faCheck, faHourglassHalf, faExclamationTriangle } from '@fortawesome/free-solid-svg-icons'
|
|
33
|
-
import { mapState, mapGetters } from 'vuex'
|
|
34
|
-
|
|
35
|
-
export default {
|
|
36
|
-
name: 'DetailsEndorsement',
|
|
37
|
-
components: { FontAwesomeIcon },
|
|
38
|
-
computed: {
|
|
39
|
-
...mapState({
|
|
40
|
-
env: 'environment',
|
|
41
|
-
byuId: state => state.application.applicantId
|
|
42
|
-
}),
|
|
43
|
-
...mapGetters([ 'flagByValue' ]),
|
|
44
|
-
endorsementPendingFlag () { return this.flagByValue('EP') },
|
|
45
|
-
endorsementDeniedFlag () { return this.flagByValue('ED') },
|
|
46
|
-
endorsementIssuesFlag () { return this.flagByValue('EI') },
|
|
47
|
-
icon () {
|
|
48
|
-
if (this.endorsementDeniedFlag.isActive) return faExclamationTriangle
|
|
49
|
-
else if (this.endorsementIssuesFlag.isActive) return faExclamationTriangle
|
|
50
|
-
else if (this.endorsementPendingFlag.isActive) return faHourglassHalf
|
|
51
|
-
return faCheck
|
|
52
|
-
},
|
|
53
|
-
statusClass () {
|
|
54
|
-
if (this.endorsementDeniedFlag.isActive) return { 'text-danger': true }
|
|
55
|
-
else if (this.endorsementIssuesFlag.isActive) return { 'text-danger': true }
|
|
56
|
-
else if (this.endorsementPendingFlag.isActive) return { 'text-dark': true, 'font-weight-bold': true }
|
|
57
|
-
return { 'text-success': true }
|
|
58
|
-
},
|
|
59
|
-
endorsementStatus () {
|
|
60
|
-
if (this.endorsementDeniedFlag.isActive) return `Endorsement Denied`
|
|
61
|
-
else if (this.endorsementIssuesFlag.isActive) return `Endorsement Issues`
|
|
62
|
-
else if (this.endorsementPendingFlag.isActive) return `Endorsement Pending`
|
|
63
|
-
return `Endorsement Complete`
|
|
64
|
-
},
|
|
65
|
-
endorseHref () {
|
|
66
|
-
return this.env !== 'development'
|
|
67
|
-
? `https://endorse.byu.edu/admin?byuId=${this.byuId}`
|
|
68
|
-
: `https://endorse-dev.byu.edu/admin?byuId=${this.byuId}`
|
|
69
|
-
}
|
|
70
|
-
}
|
|
71
|
-
}
|
|
72
|
-
</script>
|
|
73
|
-
<style scoped>
|
|
74
|
-
</style>
|
|
1
|
+
<!--
|
|
2
|
+
Copyright 2018 Brigham Young University
|
|
3
|
+
|
|
4
|
+
Licensed under the Apache License, Version 2.0 (the "License");
|
|
5
|
+
you may not use this file except in compliance with the License.
|
|
6
|
+
You may obtain a copy of the License at
|
|
7
|
+
|
|
8
|
+
http://www.apache.org/licenses/LICENSE-2.0
|
|
9
|
+
|
|
10
|
+
Unless required by applicable law or agreed to in writing, software
|
|
11
|
+
distributed under the License is distributed on an "AS IS" BASIS,
|
|
12
|
+
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
13
|
+
See the License for the specific language governing permissions and
|
|
14
|
+
limitations under the License.
|
|
15
|
+
-->
|
|
16
|
+
<template>
|
|
17
|
+
<div class="p-2">
|
|
18
|
+
<span :class="statusClass">
|
|
19
|
+
<font-awesome-icon :icon="icon" />
|
|
20
|
+
|
|
21
|
+
{{endorsementStatus}}
|
|
22
|
+
<small>
|
|
23
|
+
<a :href="endorseHref" target="_blank" data-disable-navigate="true">
|
|
24
|
+
(view details)
|
|
25
|
+
</a>
|
|
26
|
+
</small>
|
|
27
|
+
</span>
|
|
28
|
+
</div>
|
|
29
|
+
</template>
|
|
30
|
+
<script>
|
|
31
|
+
import { FontAwesomeIcon } from '@fortawesome/vue-fontawesome'
|
|
32
|
+
import { faCheck, faHourglassHalf, faExclamationTriangle } from '@fortawesome/free-solid-svg-icons'
|
|
33
|
+
import { mapState, mapGetters } from 'vuex'
|
|
34
|
+
|
|
35
|
+
export default {
|
|
36
|
+
name: 'DetailsEndorsement',
|
|
37
|
+
components: { FontAwesomeIcon },
|
|
38
|
+
computed: {
|
|
39
|
+
...mapState({
|
|
40
|
+
env: 'environment',
|
|
41
|
+
byuId: state => state.application.applicantId
|
|
42
|
+
}),
|
|
43
|
+
...mapGetters([ 'flagByValue' ]),
|
|
44
|
+
endorsementPendingFlag () { return this.flagByValue('EP') },
|
|
45
|
+
endorsementDeniedFlag () { return this.flagByValue('ED') },
|
|
46
|
+
endorsementIssuesFlag () { return this.flagByValue('EI') },
|
|
47
|
+
icon () {
|
|
48
|
+
if (this.endorsementDeniedFlag.isActive) return faExclamationTriangle
|
|
49
|
+
else if (this.endorsementIssuesFlag.isActive) return faExclamationTriangle
|
|
50
|
+
else if (this.endorsementPendingFlag.isActive) return faHourglassHalf
|
|
51
|
+
return faCheck
|
|
52
|
+
},
|
|
53
|
+
statusClass () {
|
|
54
|
+
if (this.endorsementDeniedFlag.isActive) return { 'text-danger': true }
|
|
55
|
+
else if (this.endorsementIssuesFlag.isActive) return { 'text-danger': true }
|
|
56
|
+
else if (this.endorsementPendingFlag.isActive) return { 'text-dark': true, 'font-weight-bold': true }
|
|
57
|
+
return { 'text-success': true }
|
|
58
|
+
},
|
|
59
|
+
endorsementStatus () {
|
|
60
|
+
if (this.endorsementDeniedFlag.isActive) return `Endorsement Denied`
|
|
61
|
+
else if (this.endorsementIssuesFlag.isActive) return `Endorsement Issues`
|
|
62
|
+
else if (this.endorsementPendingFlag.isActive) return `Endorsement Pending`
|
|
63
|
+
return `Endorsement Complete`
|
|
64
|
+
},
|
|
65
|
+
endorseHref () {
|
|
66
|
+
return this.env !== 'development'
|
|
67
|
+
? `https://endorse.byu.edu/admin?byuId=${this.byuId}`
|
|
68
|
+
: `https://endorse-dev.byu.edu/admin?byuId=${this.byuId}`
|
|
69
|
+
}
|
|
70
|
+
}
|
|
71
|
+
}
|
|
72
|
+
</script>
|
|
73
|
+
<style scoped>
|
|
74
|
+
</style>
|