@byu-oit/vue-decision-processing-components 9.0.13 → 9.0.14
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/ReportDetail.vue +5 -8
- package/package.json +1 -1
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
|
-
|
|
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.
|
|
3
|
+
"version": "9.0.14",
|
|
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",
|