@byu-oit/vue-decision-processing-components 9.0.12 → 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.
Files changed (2) hide show
  1. package/ReportDetail.vue +5 -6
  2. package/package.json +1 -1
package/ReportDetail.vue CHANGED
@@ -101,7 +101,6 @@
101
101
  </div>
102
102
  </template>
103
103
  <script>
104
- import isIsoDate from 'is-iso-date'
105
104
  import { dateFormat, dateTimeFormat, yearTermLongFormat } from './dateTimeFormat'
106
105
  import FilterButton from './FilterButton'
107
106
  import SortableHeader from './SortableHeader'
@@ -110,6 +109,9 @@ import Spinner from './Spinner'
110
109
  import { FontAwesomeIcon } from '@fortawesome/vue-fontawesome'
111
110
  import { faFileCsv } from '@fortawesome/free-solid-svg-icons'
112
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
+
113
115
  export default {
114
116
  name: 'ReportDetail',
115
117
  components: {
@@ -168,11 +170,8 @@ export default {
168
170
  }
169
171
  },
170
172
  methods: {
171
- isIsoDate,
172
- isUuid (val) {
173
- 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
174
- return uuidPattern.test(val)
175
- },
173
+ isIsoDate: (str) => { return ISO_DATE_RX.test(str) },
174
+ isUuid: (val) => { return UUID_RX.test(val) },
176
175
  sortBy (i) {
177
176
  if (i === this.sortColumnIndex) {
178
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.12",
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",