@byu-oit/vue-decision-processing-components 8.37.0-3 → 8.37.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.
@@ -2,7 +2,7 @@ name: Deployment
2
2
 
3
3
  on:
4
4
  push:
5
- branches: [ main ]
5
+ branches: [ main, v8 ]
6
6
 
7
7
  env:
8
8
  node_version: "14"
@@ -38,4 +38,4 @@ jobs:
38
38
  - name: Publish
39
39
  run: npm publish --access public
40
40
  env:
41
- NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
41
+ NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
package/CHANGELOG.md CHANGED
@@ -2,6 +2,16 @@
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.37.0](https://github.com/byu-oit/vue-decision-processing-components/compare/v8.37.0-2...v8.37.0) (2024-10-15)
6
+
7
+
8
+ ### Bug Fixes
9
+
10
+ * api calls ([3c4dd71](https://github.com/byu-oit/vue-decision-processing-components/commit/3c4dd71dc2b24323e1b8179462a8084ee422805f))
11
+ * fetch request ([c44d2d1](https://github.com/byu-oit/vue-decision-processing-components/commit/c44d2d104168a0d1975c54b8cd95af4df20fb6c4))
12
+ * update yapi base url ([9f5198e](https://github.com/byu-oit/vue-decision-processing-components/commit/9f5198e6a0c8b2302b84c50a91f9ea3f60dd6e3e))
13
+ * ymessage api ([349924f](https://github.com/byu-oit/vue-decision-processing-components/commit/349924f3e7a7c3ba5ae2c925369141293df3e28e))
14
+
5
15
  ### [8.35.8](https://github.com/byu-oit/vue-decision-processing-components/compare/v.8.35.8...v8.35.7) (2023-12-13)
6
16
 
7
17
  ### Bug Fixes
@@ -83,18 +83,6 @@
83
83
  }
84
84
  },
85
85
  btnText () {
86
- if (this.flag.state != null && this.flag.state != '') {
87
- switch (this.flag.state.toLowerCase()){
88
- case 'pass':
89
- return 'set flag'
90
- case 'fail':
91
- return 'clear flag'
92
- case 'error':
93
- return 'clear flag'
94
- case 'indeterminate':
95
- return 'set flag'
96
- }
97
- }
98
86
  return this.flag.isActive ? 'clear flag' : 'set flag'
99
87
  },
100
88
  flagIcon () {
@@ -102,7 +90,7 @@
102
90
  if (this.flag == null){
103
91
  return faSquare
104
92
  }
105
- if (this.flag.state != null && this.flag.state != '') {
93
+ if (this.flag.state != null){
106
94
  switch (this.flag.state.toLowerCase()){
107
95
  case 'pass':
108
96
  return faCheck
@@ -123,7 +111,7 @@
123
111
  if (this.flag == null){
124
112
  return `bg-${this.flagIndeterminateColor}`
125
113
  }
126
- if (this.flag.state != null && this.flag.state != ''){
114
+ if (this.flag.state != null){
127
115
  switch (this.flag.state.toLowerCase()){
128
116
  case 'pass':
129
117
  return `bg-${this.flagPassColor}`
@@ -41,6 +41,18 @@ import { FontAwesomeIcon } from '@fortawesome/vue-fontawesome'
41
41
  import { faCalendarAlt } from '@fortawesome/free-solid-svg-icons'
42
42
  import { mapGetters, mapMutations, mapActions } from 'vuex'
43
43
 
44
+ function calcAdmitPeriods () {
45
+ const terms = [1, 3, 5],
46
+ currentYear = new Date().getFullYear(),
47
+ prevYearFall = `${currentYear}5`,
48
+ nextYearWinter = `${currentYear + 2}1`
49
+ return [
50
+ prevYearFall,
51
+ ...terms.map(term => `${currentYear + 1}${term}`),
52
+ nextYearWinter
53
+ ]
54
+ }
55
+
44
56
  export default {
45
57
  name: 'FilterButtonAdmitPeriod',
46
58
  components: { FilterButton, FontAwesomeIcon },
@@ -49,11 +61,7 @@ export default {
49
61
  admitPeriods: {
50
62
  type: Array,
51
63
  default() {
52
- return [
53
- '20241',
54
- '20243',
55
- '20245'
56
- ]
64
+ return calcAdmitPeriods()
57
65
  }
58
66
  }
59
67
  },
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@byu-oit/vue-decision-processing-components",
3
- "version": "8.37.0-3",
3
+ "version": "8.37.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",