@bcrs-shared-components/staff-payment 2.0.13 → 2.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/StaffPayment.vue +11 -14
- package/package.json +5 -5
package/StaffPayment.vue
CHANGED
|
@@ -83,7 +83,8 @@
|
|
|
83
83
|
</template>
|
|
84
84
|
|
|
85
85
|
<script lang="ts">
|
|
86
|
-
import
|
|
86
|
+
import Vue from 'vue'
|
|
87
|
+
import { Component, Prop, Watch, Emit } from 'vue-property-decorator'
|
|
87
88
|
import { StaffPaymentOptions } from '@bcrs-shared-components/enums'
|
|
88
89
|
import { FolioNumberInput } from '@bcrs-shared-components/folio-number-input'
|
|
89
90
|
import { FormIF, StaffPaymentIF } from '@bcrs-shared-components/interfaces'
|
|
@@ -105,20 +106,16 @@ export default class StaffPayment extends Vue {
|
|
|
105
106
|
readonly StaffPaymentOptions = StaffPaymentOptions
|
|
106
107
|
|
|
107
108
|
/** Whether to display side label. */
|
|
108
|
-
@Prop({ default: true })
|
|
109
|
-
readonly displaySideLabel: boolean
|
|
109
|
+
@Prop({ default: true }) readonly displaySideLabel!: boolean
|
|
110
110
|
|
|
111
111
|
/** Whether to display priority checkbox. */
|
|
112
|
-
@Prop({ default: true })
|
|
113
|
-
readonly displayPriorityCheckbox: boolean
|
|
112
|
+
@Prop({ default: true }) readonly displayPriorityCheckbox!: boolean
|
|
114
113
|
|
|
115
114
|
/** Whether to validate the fields. */
|
|
116
|
-
@Prop({ default: false })
|
|
117
|
-
private validate: boolean
|
|
115
|
+
@Prop({ default: false }) readonly validate!: boolean
|
|
118
116
|
|
|
119
117
|
/** Whether to show invalid section styling (label only). */
|
|
120
|
-
@Prop({ default: false })
|
|
121
|
-
private invalidSection: boolean
|
|
118
|
+
@Prop({ default: false }) readonly invalidSection!: boolean
|
|
122
119
|
|
|
123
120
|
/** Staff Payment Data prop. */
|
|
124
121
|
@Prop({
|
|
@@ -133,7 +130,7 @@ export default class StaffPayment extends Vue {
|
|
|
133
130
|
}
|
|
134
131
|
}
|
|
135
132
|
})
|
|
136
|
-
|
|
133
|
+
readonly staffPaymentData!: StaffPaymentIF
|
|
137
134
|
|
|
138
135
|
/** Radio group model property. */
|
|
139
136
|
private paymentOption = StaffPaymentOptions.NONE
|
|
@@ -148,24 +145,24 @@ export default class StaffPayment extends Vue {
|
|
|
148
145
|
private isMounted = false
|
|
149
146
|
|
|
150
147
|
/** Validation rules for Routing Slip Number. */
|
|
151
|
-
|
|
148
|
+
readonly routingSlipNumberRules: Array<(v) => boolean | string> = [
|
|
152
149
|
v => !!v || 'Enter FAS Routing Slip Number',
|
|
153
150
|
v => /^\d{9}$/.test(v) || 'Routing Slip Number must be 9 digits'
|
|
154
151
|
]
|
|
155
152
|
|
|
156
153
|
/** Validation rules for BCOL Account Number. */
|
|
157
|
-
|
|
154
|
+
readonly bcolAccountNumberRules: Array<(v) => boolean | string> = [
|
|
158
155
|
v => !!v || 'Enter BC Online Account Number',
|
|
159
156
|
v => /^\d{6}$/.test(v) || 'BC Online Account Number must be 6 digits'
|
|
160
157
|
]
|
|
161
158
|
|
|
162
159
|
/** Validation rules for DAT Number. */
|
|
163
|
-
|
|
160
|
+
readonly datNumberRules: Array<(v) => boolean | string> = [
|
|
164
161
|
v => !!v || 'Enter DAT Number',
|
|
165
162
|
v => /^[A-Z]{1}[0-9]{7,9}$/.test(v) || 'DAT Number must be in standard format (eg, C1234567)'
|
|
166
163
|
]
|
|
167
164
|
|
|
168
|
-
/** Called when
|
|
165
|
+
/** Called when component is mounted. */
|
|
169
166
|
async mounted (): Promise<void> {
|
|
170
167
|
await this.$nextTick()
|
|
171
168
|
this.isMounted = true
|
package/package.json
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@bcrs-shared-components/staff-payment",
|
|
3
|
-
"version": "2.0.
|
|
3
|
+
"version": "2.0.14",
|
|
4
4
|
"publishConfig": {
|
|
5
5
|
"access": "public"
|
|
6
6
|
},
|
|
7
7
|
"dependencies": {
|
|
8
8
|
"@bcrs-shared-components/enums": "^1.0.22",
|
|
9
|
-
"@bcrs-shared-components/folio-number-input": "^1.0.
|
|
10
|
-
"@bcrs-shared-components/interfaces": "^1.0.
|
|
11
|
-
"vue-property-decorator": "^
|
|
9
|
+
"@bcrs-shared-components/folio-number-input": "^1.0.25",
|
|
10
|
+
"@bcrs-shared-components/interfaces": "^1.0.43",
|
|
11
|
+
"vue-property-decorator": "^9.1.2"
|
|
12
12
|
},
|
|
13
|
-
"gitHead": "
|
|
13
|
+
"gitHead": "6183a393dd216617fbde7341ed7d3d8b35db7fc2"
|
|
14
14
|
}
|