@bcrs-shared-components/staff-payment 1.1.4 → 2.0.2

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 +35 -40
  2. package/package.json +4 -4
package/StaffPayment.vue CHANGED
@@ -1,19 +1,20 @@
1
1
  <template>
2
- <v-card flat id="staff-payment-container" class="mt-4 py-8 pr-6 rounded-0">
2
+ <div id="staff-payment-container">
3
3
  <v-row no-gutters>
4
- <v-col cols="3" class="pl-5" v-if="displaySideLabel">
5
- <label class="side-label" :class="{'error-text': invalidSection}">Payment</label>
4
+ <v-col v-if="displaySideLabel" cols="12" sm="3" class="pr-4 pb-4">
5
+ <label class="title-label" :class="{'error-text': invalidSection}">Payment</label>
6
6
  </v-col>
7
7
 
8
- <v-col :cols="displaySideLabel ? 9 : 12" class="pl-2">
9
- <v-radio-group class="payment-group" v-model="paymentOption" hide-details>
8
+ <v-col cols="12" :sm="displaySideLabel ? 9 : 12">
9
+ <v-radio-group class="payment-group" v-model="paymentOption">
10
10
  <!-- Cash or Cheque radio button and form -->
11
- <v-radio id="fas-radio" label="Cash or Cheque" :value="StaffPaymentOptions.FAS" />
12
- <v-form class="ml-8" ref="fasForm" v-model="fasFormValid">
11
+ <v-radio id="fas-radio" class="mb-0" label="Cash or Cheque" :value="StaffPaymentOptions.FAS" />
12
+ <v-form class="mt-4 ml-8" ref="fasForm" v-model="fasFormValid">
13
13
  <v-text-field
14
14
  filled
15
15
  id="routing-slip-number-textfield"
16
16
  label="Routing Slip Number"
17
+ v-model.trim="staffPaymentData.routingSlipNumber"
17
18
  :value="staffPaymentData.routingSlipNumber"
18
19
  :rules="validate ? routingSlipNumberRules : []"
19
20
  :disabled="paymentOption === StaffPaymentOptions.BCOL || paymentOption === StaffPaymentOptions.NO_FEE"
@@ -23,12 +24,13 @@
23
24
  </v-form>
24
25
 
25
26
  <!-- BC Online radio button and form -->
26
- <v-radio id="bcol-radio" label="BC Online" :value="StaffPaymentOptions.BCOL" />
27
- <v-form class="ml-8" ref="bcolForm" v-model="bcolFormValid">
27
+ <v-radio id="bcol-radio" class="mb-0 pt-2" label="BC Online" :value="StaffPaymentOptions.BCOL" />
28
+ <v-form class="mt-4 ml-8" ref="bcolForm" v-model="bcolFormValid">
28
29
  <v-text-field
29
30
  filled
30
31
  id="bcol-account-number-textfield"
31
32
  label="BC Online Account Number"
33
+ v-model.trim="staffPaymentData.bcolAccountNumber"
32
34
  :value="staffPaymentData.bcolAccountNumber"
33
35
  :rules="validate ? bcolAccountNumberRules : []"
34
36
  :disabled="paymentOption === StaffPaymentOptions.FAS || paymentOption === StaffPaymentOptions.NO_FEE"
@@ -39,6 +41,7 @@
39
41
  filled
40
42
  id="dat-number-textfield"
41
43
  label="DAT Number"
44
+ v-model.trim="staffPaymentData.datNumber"
42
45
  :value="staffPaymentData.datNumber"
43
46
  :rules="validate ? datNumberRules : []"
44
47
  :disabled="paymentOption === StaffPaymentOptions.FAS || paymentOption === StaffPaymentOptions.NO_FEE"
@@ -57,15 +60,15 @@
57
60
  </v-form>
58
61
 
59
62
  <!-- No Fee radio button -->
60
- <v-radio id="no-fee-radio" label="No Fee" :value="StaffPaymentOptions.NO_FEE" />
63
+ <v-radio id="no-fee-radio" class="mb-0 pt-2" label="No Fee" :value="StaffPaymentOptions.NO_FEE" />
61
64
 
62
65
  <template v-if="displayPriorityCheckbox">
63
- <v-divider class="mt-5"></v-divider>
66
+ <v-divider class="mt-6"></v-divider>
64
67
 
65
68
  <!-- Priority checkbox -->
66
69
  <v-checkbox
67
- class="mt-2"
68
70
  id="priority-checkbox"
71
+ class="priority-checkbox mt-6 pt-0"
69
72
  label="Priority (add $100.00)"
70
73
  hide-details
71
74
  :input-value="staffPaymentData.isPriority"
@@ -76,7 +79,7 @@
76
79
  </v-radio-group>
77
80
  </v-col>
78
81
  </v-row>
79
- </v-card>
82
+ </div>
80
83
  </template>
81
84
 
82
85
  <script lang="ts">
@@ -230,10 +233,10 @@ export default class StaffPayment extends Vue {
230
233
  @Emit('update:staffPaymentData')
231
234
  private emitStaffPaymentData ({
232
235
  option = this.staffPaymentData.option,
233
- routingSlipNumber = this.staffPaymentData.routingSlipNumber || '',
234
- bcolAccountNumber = this.staffPaymentData.bcolAccountNumber || '',
235
- datNumber = this.staffPaymentData.datNumber || '',
236
- folioNumber = this.staffPaymentData.folioNumber || '',
236
+ routingSlipNumber = this.staffPaymentData.routingSlipNumber?.trim() || '',
237
+ bcolAccountNumber = this.staffPaymentData.bcolAccountNumber?.trim() || '',
238
+ datNumber = this.staffPaymentData.datNumber?.trim() || '',
239
+ folioNumber = this.staffPaymentData.folioNumber?.trim() || '',
237
240
  isPriority = this.staffPaymentData.isPriority || false
238
241
  }): StaffPaymentIF {
239
242
  // return only the appropriate fields for each option
@@ -264,36 +267,28 @@ export default class StaffPayment extends Vue {
264
267
  @import '@/assets/styles/theme.scss';
265
268
 
266
269
  #staff-payment-container {
267
- margin-top: 1rem;
268
- padding-bottom: 0.5rem;
269
- padding-top: 1rem;
270
270
  line-height: 1.2rem;
271
- font-size: 1rem;
271
+ font-size: $px-16;
272
272
  }
273
273
 
274
- .payment-group {
275
- margin-top: 0;
276
- padding-top: 0;
277
- width: 100%;
274
+ .title-label {
275
+ font-weight: bold;
276
+ color: $gray9;
278
277
  }
279
278
 
280
- // radio buttons
281
- ::v-deep .v-input--selection-controls__input >.v-icon {
282
- color: $gray7 !important;
283
- }
284
-
285
- // radio labels and checkbox labels
286
- ::v-deep .v-input--selection-controls__input + .v-label {
287
- color: $gray7 !important;
279
+ .payment-container {
280
+ > label:first-child {
281
+ font-weight: 700;
282
+ margin-bottom: 2rem;
283
+ }
288
284
  }
289
285
 
290
- // text field labels
291
- ::v-deep .v-text-field__slot .theme--light.v-label {
292
- color: $gray7 !important;
293
- }
286
+ .payment-group {
287
+ margin-top: 0;
288
+ padding-top: 0;
294
289
 
295
- // text input
296
- ::v-deep .v-text-field__slot input {
297
- color: $gray9 !important;
290
+ ::v-deep > .v-input__control {
291
+ margin-bottom: -12px;
292
+ }
298
293
  }
299
294
  </style>
package/package.json CHANGED
@@ -1,14 +1,14 @@
1
1
  {
2
2
  "name": "@bcrs-shared-components/staff-payment",
3
- "version": "1.1.4",
3
+ "version": "2.0.2",
4
4
  "publishConfig": {
5
5
  "access": "public"
6
6
  },
7
7
  "dependencies": {
8
8
  "@bcrs-shared-components/enums": "^1.0.17",
9
- "@bcrs-shared-components/folio-number-input": "^1.0.14",
10
- "@bcrs-shared-components/interfaces": "^1.0.32",
9
+ "@bcrs-shared-components/folio-number-input": "^1.0.15",
10
+ "@bcrs-shared-components/interfaces": "^1.0.33",
11
11
  "vue-property-decorator": "^8.4.0"
12
12
  },
13
- "gitHead": "c6b5073d1508693aa68d2e9f88e04114444fcec9"
13
+ "gitHead": "89ee25c1031faa8c55be52170afaff5a5327f4bd"
14
14
  }