@bcrs-shared-components/staff-payment 2.0.2 → 2.0.5
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.stories.ts +2 -2
- package/StaffPayment.vue +7 -7
- package/package.json +12 -12
package/StaffPayment.stories.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { StaffPayment } from './index'
|
|
2
|
-
import { StaffPaymentOptions } from '
|
|
3
|
-
import { StaffPaymentIF } from '
|
|
2
|
+
import { StaffPaymentOptions } from '@bcrs-shared-components/enums'
|
|
3
|
+
import { StaffPaymentIF } from '@bcrs-shared-components/interfaces'
|
|
4
4
|
|
|
5
5
|
export default {
|
|
6
6
|
title: 'component/StaffPayment',
|
package/StaffPayment.vue
CHANGED
|
@@ -14,10 +14,10 @@
|
|
|
14
14
|
filled
|
|
15
15
|
id="routing-slip-number-textfield"
|
|
16
16
|
label="Routing Slip Number"
|
|
17
|
-
v-model.trim="staffPaymentData.routingSlipNumber"
|
|
18
17
|
:value="staffPaymentData.routingSlipNumber"
|
|
19
18
|
:rules="validate ? routingSlipNumberRules : []"
|
|
20
19
|
:disabled="paymentOption === StaffPaymentOptions.BCOL || paymentOption === StaffPaymentOptions.NO_FEE"
|
|
20
|
+
@keyup="staffPaymentData.routingSlipNumber = staffPaymentData.routingSlipNumber.trim()"
|
|
21
21
|
@focus="paymentOption = StaffPaymentOptions.FAS"
|
|
22
22
|
@input="emitStaffPaymentData({ option: StaffPaymentOptions.FAS, routingSlipNumber: $event })"
|
|
23
23
|
/>
|
|
@@ -30,10 +30,10 @@
|
|
|
30
30
|
filled
|
|
31
31
|
id="bcol-account-number-textfield"
|
|
32
32
|
label="BC Online Account Number"
|
|
33
|
-
v-model.trim="staffPaymentData.bcolAccountNumber"
|
|
34
33
|
:value="staffPaymentData.bcolAccountNumber"
|
|
35
34
|
:rules="validate ? bcolAccountNumberRules : []"
|
|
36
35
|
:disabled="paymentOption === StaffPaymentOptions.FAS || paymentOption === StaffPaymentOptions.NO_FEE"
|
|
36
|
+
@keyup="staffPaymentData.bcolAccountNumber = staffPaymentData.bcolAccountNumber.trim()"
|
|
37
37
|
@focus="paymentOption = StaffPaymentOptions.BCOL"
|
|
38
38
|
@input="emitStaffPaymentData({ option: StaffPaymentOptions.BCOL, bcolAccountNumber: $event })"
|
|
39
39
|
/>
|
|
@@ -41,10 +41,10 @@
|
|
|
41
41
|
filled
|
|
42
42
|
id="dat-number-textfield"
|
|
43
43
|
label="DAT Number"
|
|
44
|
-
v-model.trim="staffPaymentData.datNumber"
|
|
45
44
|
:value="staffPaymentData.datNumber"
|
|
46
45
|
:rules="validate ? datNumberRules : []"
|
|
47
46
|
:disabled="paymentOption === StaffPaymentOptions.FAS || paymentOption === StaffPaymentOptions.NO_FEE"
|
|
47
|
+
@keyup="staffPaymentData.datNumber = staffPaymentData.datNumber.trim()"
|
|
48
48
|
@focus="paymentOption = StaffPaymentOptions.BCOL"
|
|
49
49
|
@input="emitStaffPaymentData({ option: StaffPaymentOptions.BCOL, datNumber: $event })"
|
|
50
50
|
/>
|
|
@@ -233,10 +233,10 @@ export default class StaffPayment extends Vue {
|
|
|
233
233
|
@Emit('update:staffPaymentData')
|
|
234
234
|
private emitStaffPaymentData ({
|
|
235
235
|
option = this.staffPaymentData.option,
|
|
236
|
-
routingSlipNumber = this.staffPaymentData.routingSlipNumber
|
|
237
|
-
bcolAccountNumber = this.staffPaymentData.bcolAccountNumber
|
|
238
|
-
datNumber = this.staffPaymentData.datNumber
|
|
239
|
-
folioNumber = this.staffPaymentData.folioNumber
|
|
236
|
+
routingSlipNumber = this.staffPaymentData.routingSlipNumber || '',
|
|
237
|
+
bcolAccountNumber = this.staffPaymentData.bcolAccountNumber || '',
|
|
238
|
+
datNumber = this.staffPaymentData.datNumber || '',
|
|
239
|
+
folioNumber = this.staffPaymentData.folioNumber || '',
|
|
240
240
|
isPriority = this.staffPaymentData.isPriority || false
|
|
241
241
|
}): StaffPaymentIF {
|
|
242
242
|
// return only the appropriate fields for each option
|
package/package.json
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
{
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
2
|
+
"name": "@bcrs-shared-components/staff-payment",
|
|
3
|
+
"version": "2.0.5",
|
|
4
|
+
"publishConfig": {
|
|
5
|
+
"access": "public"
|
|
6
|
+
},
|
|
7
|
+
"dependencies": {
|
|
8
|
+
"@bcrs-shared-components/enums": "^1.0.18",
|
|
9
|
+
"@bcrs-shared-components/folio-number-input": "^1.0.17",
|
|
10
|
+
"@bcrs-shared-components/interfaces": "^1.0.35",
|
|
11
|
+
"vue-property-decorator": "^8.4.0"
|
|
12
|
+
},
|
|
13
|
+
"gitHead": "c1d2db9f9804dc0e622f06e8fdd12ec2f17c5b66"
|
|
14
14
|
}
|