@byu-oit/vue-decision-processing-components 8.34.1 → 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.
Files changed (135) hide show
  1. package/.github/workflows/deploy.yml +51 -0
  2. package/.repo-meta.yml +55 -55
  3. package/AdmitPeriodConfig.vue +115 -115
  4. package/ApiCallButton.vue +91 -91
  5. package/ApplicantInfo.vue +100 -100
  6. package/AssignmentBulkDialog.vue +153 -153
  7. package/AssignmentDialog.vue +117 -117
  8. package/AssignmentSummary.vue +75 -75
  9. package/BackgroundBadge.vue +83 -83
  10. package/BackgroundDetailCrime.vue +78 -78
  11. package/BackgroundDetailPluralMarriage.vue +43 -43
  12. package/BackgroundDetailSexRegistry.vue +43 -43
  13. package/BackgroundDetailUniversity.vue +37 -37
  14. package/CHANGELOG.md +676 -665
  15. package/Dashboard.vue +201 -201
  16. package/DashboardApplicationList.vue +50 -50
  17. package/DecisionDialog.vue +178 -178
  18. package/Details.vue +124 -124
  19. package/DetailsActivity.vue +59 -59
  20. package/DetailsBackground.vue +143 -143
  21. package/DetailsBackgroundDetail.vue +47 -47
  22. package/DetailsBackgroundSummary.vue +66 -66
  23. package/DetailsCesHold.vue +107 -107
  24. package/DetailsCollege.vue +93 -93
  25. package/DetailsContact.vue +65 -65
  26. package/DetailsDecision.vue +183 -183
  27. package/DetailsDecisionHistory.vue +56 -56
  28. package/DetailsEndorsement.vue +74 -74
  29. package/DetailsEssay.vue +59 -59
  30. package/DetailsFilenote.vue +62 -62
  31. package/DetailsFilenoteList.vue +109 -109
  32. package/DetailsFlagSection.vue +176 -176
  33. package/DetailsHeader.vue +263 -263
  34. package/DetailsHighSchool.vue +99 -99
  35. package/DetailsHsTranscript.vue +100 -100
  36. package/DetailsInstitute.vue +90 -90
  37. package/DetailsMission.vue +88 -88
  38. package/DetailsNewAppHistory.vue +50 -50
  39. package/DetailsNotes.vue +83 -83
  40. package/DetailsPathway.vue +45 -45
  41. package/DetailsScoringSection.vue +128 -128
  42. package/DetailsSection.vue +116 -116
  43. package/DetailsSeminary.vue +184 -184
  44. package/DetailsSrs.vue +52 -52
  45. package/DetailsSubnav.vue +54 -54
  46. package/DetailsTestScores.vue +131 -131
  47. package/ExpandIndicator.vue +75 -75
  48. package/ExternalLink.vue +34 -34
  49. package/FilterBreadcrumb.vue +85 -85
  50. package/FilterButton.vue +86 -86
  51. package/FilterButtonAdmitPeriod.vue +104 -109
  52. package/FilterButtonAppType.vue +103 -103
  53. package/FilterButtonAssignedTo.vue +96 -96
  54. package/FilterButtonClearFilters.vue +65 -65
  55. package/FilterButtonSex.vue +105 -105
  56. package/FlagButton.vue +59 -59
  57. package/FlagDialog.vue +129 -129
  58. package/Footer.vue +432 -432
  59. package/Header.vue +132 -132
  60. package/HighSchoolSummary.vue +60 -60
  61. package/InternationalIndicator.vue +44 -44
  62. package/InternationalStatus.vue +48 -48
  63. package/LICENSE +201 -201
  64. package/LoadingBadge.vue +58 -58
  65. package/ManageAssignments.vue +123 -123
  66. package/NoAuth.vue +14 -14
  67. package/NoteDialog.vue +106 -106
  68. package/ObjectViewer.vue +49 -49
  69. package/Queues.vue +268 -268
  70. package/QuickLinks.vue +25 -25
  71. package/README.md +2 -2
  72. package/RecentApplications.vue +53 -53
  73. package/Report.vue +340 -340
  74. package/ReportDetail.vue +279 -279
  75. package/ReportList.vue +87 -87
  76. package/ReportPhotos.vue +65 -65
  77. package/ReportSvg.vue +78 -78
  78. package/ReportViewer.vue +165 -165
  79. package/RequestAccess.vue +14 -14
  80. package/RequestAccessList.vue +45 -45
  81. package/RoleSelector.vue +29 -29
  82. package/Search.vue +22 -22
  83. package/ShowApplicantIds.vue +100 -0
  84. package/SortableHeader.vue +53 -53
  85. package/Spinner.vue +34 -34
  86. package/StarredIndicator.vue +36 -36
  87. package/StatBox.vue +73 -73
  88. package/StatCharts.vue +196 -196
  89. package/SupportDialog.vue +172 -172
  90. package/UserInfo.vue +52 -52
  91. package/YesNoIndicator.vue +48 -48
  92. package/dateTimeFormat.js +67 -67
  93. package/gpaCalculation.js +162 -162
  94. package/gpaFilter.js +5 -5
  95. package/hsSummary.json +2019 -2019
  96. package/package.json +36 -36
  97. package/parsers/application.js +396 -396
  98. package/parsers/decisionHistory.js +27 -27
  99. package/parsers/filenotes.js +27 -27
  100. package/parsers/notes.js +49 -49
  101. package/parsers/packet.js +88 -88
  102. package/parsers/packetList.js +57 -57
  103. package/parsers/reports.js +13 -13
  104. package/sat2Act.js +46 -46
  105. package/test.js +48 -48
  106. package/themes/ByuiFooter.vue +38 -38
  107. package/themes/ByuiHeader.vue +96 -96
  108. package/themes/LdsbcFooter.vue +38 -38
  109. package/themes/LdsbcHeader.vue +100 -100
  110. package/vuexModules/application/activity.js +32 -32
  111. package/vuexModules/application/applicationList.js +71 -71
  112. package/vuexModules/application/background.js +47 -47
  113. package/vuexModules/application/bio.js +38 -38
  114. package/vuexModules/application/citizenship.js +30 -30
  115. package/vuexModules/application/collegeSummaries.js +32 -32
  116. package/vuexModules/application/essay.js +26 -26
  117. package/vuexModules/application/highSchoolSummaries.js +40 -40
  118. package/vuexModules/application/index.js +157 -157
  119. package/vuexModules/application/institute.js +30 -30
  120. package/vuexModules/application/mission.js +48 -48
  121. package/vuexModules/application/personalRecords.js +24 -24
  122. package/vuexModules/application/questions.js +23 -23
  123. package/vuexModules/application/seminary.js +39 -39
  124. package/vuexModules/application/testScores.js +26 -26
  125. package/vuexModules/notes/index.js +22 -22
  126. package/vuexModules/packet/decision.js +43 -43
  127. package/vuexModules/packet/decisionHistory.js +28 -28
  128. package/vuexModules/packet/flags.js +174 -174
  129. package/vuexModules/packet/index.js +52 -52
  130. package/vuexModules/packet/packetList.js +127 -127
  131. package/vuexModules/packet/processes.js +28 -28
  132. package/vuexModules/reports/index.js +32 -32
  133. package/vuexModules/ui/index.js +56 -56
  134. package/vuexModules/users/index.js +46 -46
  135. package/yyyyMmFilter.js +7 -7
@@ -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>
@@ -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>