@byu-oit/vue-decision-processing-components 9.0.13 → 9.0.15

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.
@@ -19,11 +19,6 @@
19
19
  <font-awesome-icon :icon="icon" />
20
20
 
21
21
  {{endorsementStatus}}
22
- <small>
23
- <a :href="endorseHref" target="_blank" data-disable-navigate="true">
24
- (view details)
25
- </a>
26
- </small>
27
22
  </span>
28
23
  </div>
29
24
  </template>
@@ -112,11 +107,6 @@
112
107
  else if (this.endorsementIssuesFlag.isActive) return `Endorsement Issues`
113
108
  else if (this.endorsementPendingFlag.isActive) return `Endorsement Pending`
114
109
  return `Endorsement Complete`
115
- },
116
- endorseHref () {
117
- return this.env !== 'development'
118
- ? `https://endorse.byu.edu/admin?byuId=${this.byuId}`
119
- : `https://endorse-dev.byu.edu/admin?byuId=${this.byuId}`
120
110
  }
121
111
  }
122
112
  }
package/ReportDetail.vue CHANGED
@@ -109,6 +109,9 @@ import Spinner from './Spinner'
109
109
  import { FontAwesomeIcon } from '@fortawesome/vue-fontawesome'
110
110
  import { faFileCsv } from '@fortawesome/free-solid-svg-icons'
111
111
 
112
+ const ISO_DATE_RX = /(\d{4}-[01]\d-[0-3]\dT[0-2]\d:[0-5]\d:[0-5]\d\.\d+([+-][0-2]\d:[0-5]\d|Z))|(\d{4}-[01]\d-[0-3]\dT[0-2]\d:[0-5]\d:[0-5]\d([+-][0-2]\d:[0-5]\d|Z))|(\d{4}-[01]\d-[0-3]\dT[0-2]\d:[0-5]\d([+-][0-2]\d:[0-5]\d|Z))/i
113
+ const UUID_RX = /^[0-9a-f]{8}-[0-9a-f]{4}-[1-5][0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}$/i
114
+
112
115
  export default {
113
116
  name: 'ReportDetail',
114
117
  components: {
@@ -167,14 +170,8 @@ export default {
167
170
  }
168
171
  },
169
172
  methods: {
170
- isIsoDate (str) {
171
- const isoDatePattern = /(\d{4}-[01]\d-[0-3]\dT[0-2]\d:[0-5]\d:[0-5]\d\.\d+([+-][0-2]\d:[0-5]\d|Z))|(\d{4}-[01]\d-[0-3]\dT[0-2]\d:[0-5]\d:[0-5]\d([+-][0-2]\d:[0-5]\d|Z))|(\d{4}-[01]\d-[0-3]\dT[0-2]\d:[0-5]\d([+-][0-2]\d:[0-5]\d|Z))/i
172
- return isoDatePattern.test(str)
173
- },
174
- isUuid (val) {
175
- const uuidPattern = /^[0-9a-f]{8}-[0-9a-f]{4}-[1-5][0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}$/i
176
- return uuidPattern.test(val)
177
- },
173
+ isIsoDate: (str) => { return ISO_DATE_RX.test(str) },
174
+ isUuid: (val) => { return UUID_RX.test(val) },
178
175
  sortBy (i) {
179
176
  if (i === this.sortColumnIndex) {
180
177
  const order = this.sortOrder
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@byu-oit/vue-decision-processing-components",
3
- "version": "9.0.13",
3
+ "version": "9.0.15",
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",