@byu-oit/vue-decision-processing-components 8.24.0 → 8.25.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/CHANGELOG.md CHANGED
@@ -2,6 +2,28 @@
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.25.2](https://github.com/byu-oit/vue-decision-processing-components/compare/v8.25.1...v8.25.2) (2022-03-25)
6
+
7
+
8
+ ### Bug Fixes
9
+
10
+ * provide a default value if no match found ([4a086bb](https://github.com/byu-oit/vue-decision-processing-components/commit/4a086bb7a55a017894e3a45470ca510140f3afe2))
11
+ * use v-show instead of v-if so that the dom elements will exist whether or not the section is expanded ([8480266](https://github.com/byu-oit/vue-decision-processing-components/commit/8480266a651b6c364172d425d82a4aadc402eceb))
12
+
13
+ ### [8.25.1](https://github.com/byu-oit/vue-decision-processing-components/compare/v8.25.0...v8.25.1) (2022-02-03)
14
+
15
+
16
+ ### Bug Fixes
17
+
18
+ * need to use encodeURIComponent as encodeURI will not escape valid URL characters like # that need to be encoded within our data urls ([48c601d](https://github.com/byu-oit/vue-decision-processing-components/commit/48c601de64339bda0abd00c636897ccc454af2c8))
19
+
20
+ ## [8.25.0](https://github.com/byu-oit/vue-decision-processing-components/compare/v8.24.0...v8.25.0) (2022-01-31)
21
+
22
+
23
+ ### Features
24
+
25
+ * component for application history in the new app service(s) ([deebecb](https://github.com/byu-oit/vue-decision-processing-components/commit/deebecb8dd64f67388cb5fe5712bfddad7ca4b83))
26
+
5
27
  ## [8.24.0](https://github.com/byu-oit/vue-decision-processing-components/compare/v8.23.5...v8.24.0) (2022-01-14)
6
28
 
7
29
 
@@ -0,0 +1,50 @@
1
+ <!--
2
+ Copyright 2022 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>Status</th>
23
+ <th>Decision</th>
24
+ <th>Date</th>
25
+ </tr>
26
+ </thead>
27
+ <tbody>
28
+ <tr v-for="row of newAppHistory.applicationList" :key="row.appId">
29
+ <td>{{row.admitPeriod | yearTermLongFormat}}</td>
30
+ <td>{{row.applicantType}}</td>
31
+ <td>{{row.status}}</td>
32
+ <td>{{row.decision}}</td>
33
+ <td>{{row.decisionDateTime | dateFormat}}</td>
34
+ </tr>
35
+ </tbody>
36
+ </table>
37
+ </template>
38
+ <script>
39
+ import { mapState } from 'vuex'
40
+ import { dateFormat, yearTermLongFormat } from './dateTimeFormat'
41
+
42
+ export default {
43
+ name: 'DetailsDecisionHistory',
44
+ filters: { dateFormat, yearTermLongFormat },
45
+ computed: {
46
+ ...mapState(['newAppHistory'])
47
+ }
48
+ }
49
+
50
+ </script>
@@ -21,7 +21,7 @@
21
21
  <slot name="summary"></slot>
22
22
  </div>
23
23
  <ExpandIndicator v-if="hasDetail" :collapsed="collapsed" @update:collapsed="changeCollapse" class="more" />
24
- <div v-if="hasDetail && !collapsed" class="detail">
24
+ <div v-show="hasDetail && !collapsed" class="detail">
25
25
  <slot></slot>
26
26
  </div>
27
27
  </div>
package/ReportDetail.vue CHANGED
@@ -157,7 +157,7 @@ export default {
157
157
  },
158
158
  computed: {
159
159
  csvDataEncoded () {
160
- const encoded = window.encodeURI(this.csv)
160
+ const encoded = window.encodeURIComponent(this.csv)
161
161
  return `data:text/csv;charset=utf-8,${encoded}`
162
162
  },
163
163
  rowCount () {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@byu-oit/vue-decision-processing-components",
3
- "version": "8.24.0",
3
+ "version": "8.25.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",
@@ -114,6 +114,7 @@ export const parseMissions = (mission, personal) => {
114
114
  case 'F': return 'Full-Time'
115
115
  case 'P': return 'Part-Time'
116
116
  case 'S': return 'Service'
117
+ default: return ''
117
118
  }
118
119
  }
119
120
  return {