@sbc-connect/nuxt-auth 0.18.0 → 0.18.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.
package/CHANGELOG.md CHANGED
@@ -1,5 +1,19 @@
1
1
  # @sbc-connect/nuxt-auth
2
2
 
3
+ ## 0.18.2
4
+
5
+ ### Patch Changes
6
+
7
+ - Updated dependencies [[`cce40dc`](https://github.com/bcgov/connect-nuxt/commit/cce40dc3c35f37c83f3d3ef99a0e94096bc82810)]:
8
+ - @sbc-connect/nuxt-base@0.15.1
9
+ - @sbc-connect/nuxt-forms@0.9.1
10
+
11
+ ## 0.18.1
12
+
13
+ ### Patch Changes
14
+
15
+ - [#209](https://github.com/bcgov/connect-nuxt/pull/209) [`60f4e51`](https://github.com/bcgov/connect-nuxt/commit/60f4e515b4fd4ed6b6807f906866d68b07dfbd70) Thanks [@sumesh85](https://github.com/sumesh85)! - Account selector: existing-account badges are uppercase with a leading icon — a payment-method icon (credit card, bank, dollar, link, EFT…) on the grey pill and a warning icon on the solid red status pill.
16
+
3
17
  ## 0.18.0
4
18
 
5
19
  ### Minor Changes
@@ -38,6 +38,19 @@ const statusBadgeLabel = computed(() => {
38
38
  return 'connect.badge.nonSufficientFunds'
39
39
  })
40
40
 
41
+ const paymentMethodIcons: Record<string, string> = {
42
+ CASH: 'i-mdi-cash',
43
+ CC: 'i-mdi-credit-card-outline',
44
+ CHEQUE: 'i-mdi-checkbook',
45
+ DIRECT_PAY: 'i-mdi-credit-card-outline',
46
+ DRAWDOWN: 'i-mdi-link-variant',
47
+ EFT: 'i-mdi-arrow-right-circle-outline',
48
+ EJV: 'i-mdi-file-document-outline',
49
+ ONLINE_BANKING: 'i-mdi-currency-usd',
50
+ PAD: 'i-mdi-bank-outline'
51
+ }
52
+ const paymentMethodIcon = computed(() => paymentMethodIcons[account.paymentMethod ?? ''])
53
+
41
54
  const address = computed(() => account.address)
42
55
  const addressLine = computed(() => {
43
56
  const addr = address.value
@@ -74,15 +87,18 @@ const addressLine = computed(() => {
74
87
  <UBadge
75
88
  v-if="showPaymentMethodBadge && account.paymentMethod"
76
89
  :label="$t(`connect.badge.paymentMethod.${account.paymentMethod}`)"
90
+ :icon="paymentMethodIcon"
77
91
  variant="subtle"
78
92
  color="neutral"
79
- class="px-3 text-center font-bold"
93
+ class="rounded-sm px-3 text-center font-bold uppercase"
80
94
  />
81
95
  <UBadge
82
96
  v-if="showStatusBadge && statusBadgeLabel"
83
97
  :label="$t(statusBadgeLabel)"
98
+ icon="i-mdi-alert-outline"
84
99
  color="error"
85
- class="px-3 text-center font-bold"
100
+ variant="solid"
101
+ class="rounded-sm px-3 text-center font-bold uppercase"
86
102
  />
87
103
  </div>
88
104
  </div>
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@sbc-connect/nuxt-auth",
3
3
  "type": "module",
4
- "version": "0.18.0",
4
+ "version": "0.18.2",
5
5
  "repository": {
6
6
  "type": "git",
7
7
  "url": "github:bcgov/connect-nuxt"
@@ -24,8 +24,8 @@
24
24
  "keycloak-js": "26.2.4",
25
25
  "pinia": "4.0.3",
26
26
  "pinia-plugin-persistedstate": "4.7.1",
27
- "@sbc-connect/nuxt-forms": "0.9.0",
28
- "@sbc-connect/nuxt-base": "0.15.0"
27
+ "@sbc-connect/nuxt-base": "0.15.1",
28
+ "@sbc-connect/nuxt-forms": "0.9.1"
29
29
  },
30
30
  "scripts": {
31
31
  "preinstall": "npx only-allow pnpm",