@bcrs-shared-components/staff-payment 2.0.13 → 2.1.0

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