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

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 +22 -15
  2. 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 { Component, Vue, Prop, Watch, Emit } from 'vue-property-decorator'
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
- private staffPaymentData: StaffPaymentIF
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
- private readonly routingSlipNumberRules: Array<Function> = [
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
- private readonly bcolAccountNumberRules: Array<Function> = [
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
- private readonly datNumberRules: Array<Function> = [
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 this component is mounted. */
165
+ /** Called when component is mounted. */
169
166
  async mounted (): Promise<void> {
170
167
  await this.$nextTick()
171
168
  this.isMounted = true
@@ -287,8 +284,18 @@ export default class StaffPayment extends Vue {
287
284
  margin-top: 0;
288
285
  padding-top: 0;
289
286
 
290
- ::v-deep > .v-input__control {
287
+ :deep(> .v-input__control) {
291
288
  margin-bottom: -12px;
292
289
  }
293
290
  }
291
+
292
+ // override Vuetify label colors
293
+ :deep() {
294
+ .v-input--selection-controls__ripple,
295
+ .v-text-field__slot .v-label,
296
+ .v-radio .v-label,
297
+ .v-input--checkbox .v-label {
298
+ color: $gray7 !important;
299
+ }
300
+ }
294
301
  </style>
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.0.15",
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.0.25",
10
+ "@bcrs-shared-components/interfaces": "^1.0.43",
11
+ "vue-property-decorator": "^9.1.2"
12
12
  },
13
- "gitHead": "a5b870aca5f29e305aea9be0ae0e0770319ce9cd"
13
+ "gitHead": "7c1866e1351997566ee959384923adfd024aaee6"
14
14
  }