@sbc-connect/nuxt-auth 0.17.1 → 0.18.1
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 +18 -0
- package/app/components/Connect/Account/Create/index.vue +1 -1
- package/app/components/Connect/Account/Existing/List/Item.vue +20 -4
- package/app/components/Connect/Header/AccountLabel.vue +1 -1
- package/app/components/Connect/Header/AccountOptionsMenu.vue +1 -1
- package/app/components/Connect/TermsOfUse/Form.vue +2 -2
- package/app/pages/auth/login.vue +1 -1
- package/app/pages/auth/terms-of-use.vue +2 -2
- package/package.json +9 -10
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,23 @@
|
|
|
1
1
|
# @sbc-connect/nuxt-auth
|
|
2
2
|
|
|
3
|
+
## 0.18.1
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- [#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.
|
|
8
|
+
|
|
9
|
+
## 0.18.0
|
|
10
|
+
|
|
11
|
+
### Minor Changes
|
|
12
|
+
|
|
13
|
+
- [#206](https://github.com/bcgov/connect-nuxt/pull/206) [`f19c40c`](https://github.com/bcgov/connect-nuxt/commit/f19c40c3702a53ef3a01a22b7068301f5d328122) Thanks [@deetz99](https://github.com/deetz99)! - Update Nuxt, Nuxt UI, JSDom and Pinia Colada to latest. Delete ConnectInputDate, replaced by ConnectInputDatePicker. Resolve theme issues after Nuxt UI update.
|
|
14
|
+
|
|
15
|
+
### Patch Changes
|
|
16
|
+
|
|
17
|
+
- Updated dependencies [[`f19c40c`](https://github.com/bcgov/connect-nuxt/commit/f19c40c3702a53ef3a01a22b7068301f5d328122)]:
|
|
18
|
+
- @sbc-connect/nuxt-base@0.15.0
|
|
19
|
+
- @sbc-connect/nuxt-forms@0.9.0
|
|
20
|
+
|
|
3
21
|
## 0.17.1
|
|
4
22
|
|
|
5
23
|
### Patch 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
|
|
@@ -53,14 +66,14 @@ const addressLine = computed(() => {
|
|
|
53
66
|
<div
|
|
54
67
|
class="flex flex-row items-center gap-4 sm:gap-6"
|
|
55
68
|
:class="{
|
|
56
|
-
'opacity-50': isUnusable
|
|
69
|
+
'opacity-50': isUnusable
|
|
57
70
|
}"
|
|
58
71
|
>
|
|
59
72
|
<UAvatar
|
|
60
73
|
:alt="account.label[0]"
|
|
61
74
|
:ui="{
|
|
62
75
|
root: 'bg-blue-300 rounded-sm',
|
|
63
|
-
fallback: 'text-white font-bold text-xl'
|
|
76
|
+
fallback: 'text-white font-bold text-xl'
|
|
64
77
|
}"
|
|
65
78
|
/>
|
|
66
79
|
<div class="flex w-full flex-col text-left">
|
|
@@ -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
|
-
|
|
100
|
+
variant="solid"
|
|
101
|
+
class="rounded-sm px-3 text-center font-bold uppercase"
|
|
86
102
|
/>
|
|
87
103
|
</div>
|
|
88
104
|
</div>
|
|
@@ -25,7 +25,7 @@ const { locale } = useI18n()
|
|
|
25
25
|
class="text-sm"
|
|
26
26
|
:class="{
|
|
27
27
|
'line-clamp-1 overflow-hidden text-ellipsis text-inverted max-w-64': theme === 'header',
|
|
28
|
-
'text-neutral-highlighted max-w-80': theme === 'dropdown'
|
|
28
|
+
'text-neutral-highlighted max-w-80': theme === 'dropdown'
|
|
29
29
|
}"
|
|
30
30
|
>
|
|
31
31
|
{{ username }}
|
|
@@ -10,7 +10,7 @@ const isLargeScreen = useMediaQuery('(min-width: 1024px)')
|
|
|
10
10
|
id="account-options-menu"
|
|
11
11
|
:items="loggedInUserOptions"
|
|
12
12
|
:ui="{
|
|
13
|
-
content: 'max-w-[90dvw] account-options-menu-pw-selector'
|
|
13
|
+
content: 'max-w-[90dvw] account-options-menu-pw-selector'
|
|
14
14
|
}"
|
|
15
15
|
>
|
|
16
16
|
<UButton
|
|
@@ -67,7 +67,7 @@ watch(() => props.hasReachedBottom, (newVal) => {
|
|
|
67
67
|
v-slot="{ error }"
|
|
68
68
|
name="agreeToTerms"
|
|
69
69
|
:ui="{
|
|
70
|
-
error: 'text-base'
|
|
70
|
+
error: 'text-base'
|
|
71
71
|
}"
|
|
72
72
|
>
|
|
73
73
|
<UCheckbox
|
|
@@ -75,7 +75,7 @@ watch(() => props.hasReachedBottom, (newVal) => {
|
|
|
75
75
|
v-model="state.agreeToTerms"
|
|
76
76
|
:label="$t('connect.text.iHaveReadAndAcceptTermsOfUse')"
|
|
77
77
|
:ui="{
|
|
78
|
-
label: error ? 'text-lg text-error' : 'text-lg'
|
|
78
|
+
label: error ? 'text-lg text-error' : 'text-lg'
|
|
79
79
|
}"
|
|
80
80
|
/>
|
|
81
81
|
</UFormField>
|
package/app/pages/auth/login.vue
CHANGED
|
@@ -67,10 +67,10 @@ const disableButtons = computed<boolean>(() => {
|
|
|
67
67
|
@submit="mutate({
|
|
68
68
|
payload: {
|
|
69
69
|
accepted: true,
|
|
70
|
-
version: data!.versionId
|
|
70
|
+
version: data!.versionId
|
|
71
71
|
},
|
|
72
72
|
silent: false,
|
|
73
|
-
successCb: () => finalRedirect(useRoute(), true)
|
|
73
|
+
successCb: () => finalRedirect(useRoute(), true)
|
|
74
74
|
})"
|
|
75
75
|
/>
|
|
76
76
|
</UContainer>
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@sbc-connect/nuxt-auth",
|
|
3
3
|
"type": "module",
|
|
4
|
-
"version": "0.
|
|
4
|
+
"version": "0.18.1",
|
|
5
5
|
"repository": {
|
|
6
6
|
"type": "git",
|
|
7
7
|
"url": "github:bcgov/connect-nuxt"
|
|
@@ -10,23 +10,22 @@
|
|
|
10
10
|
"main": "./nuxt.config.ts",
|
|
11
11
|
"devDependencies": {
|
|
12
12
|
"@axe-core/playwright": "4.13.0",
|
|
13
|
-
"dotenv": "18.0.
|
|
14
|
-
"nuxt": "4.
|
|
13
|
+
"dotenv": "18.0.7",
|
|
14
|
+
"nuxt": "4.6.1",
|
|
15
15
|
"typescript": "6.0.3",
|
|
16
|
-
"vue-tsc": "3.3.
|
|
17
|
-
"@sbc-connect/
|
|
18
|
-
"@sbc-connect/playwright-config": "0.2.1"
|
|
19
|
-
"@sbc-connect/vitest-config": "0.2.0"
|
|
16
|
+
"vue-tsc": "3.3.13",
|
|
17
|
+
"@sbc-connect/vitest-config": "0.2.0",
|
|
18
|
+
"@sbc-connect/playwright-config": "0.2.1"
|
|
20
19
|
},
|
|
21
20
|
"dependencies": {
|
|
22
|
-
"@pinia/colada": "1.4.
|
|
21
|
+
"@pinia/colada": "1.4.8",
|
|
23
22
|
"@pinia/colada-nuxt": "1.2.0",
|
|
24
23
|
"@pinia/nuxt": "1.0.2",
|
|
25
24
|
"keycloak-js": "26.2.4",
|
|
26
25
|
"pinia": "4.0.3",
|
|
27
26
|
"pinia-plugin-persistedstate": "4.7.1",
|
|
28
|
-
"@sbc-connect/nuxt-base": "0.
|
|
29
|
-
"@sbc-connect/nuxt-forms": "0.
|
|
27
|
+
"@sbc-connect/nuxt-base": "0.15.0",
|
|
28
|
+
"@sbc-connect/nuxt-forms": "0.9.0"
|
|
30
29
|
},
|
|
31
30
|
"scripts": {
|
|
32
31
|
"preinstall": "npx only-allow pnpm",
|