@sbc-connect/nuxt-base 0.1.14 → 0.1.16
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,17 @@
|
|
|
1
1
|
# @sbc-connect/nuxt-base
|
|
2
2
|
|
|
3
|
+
## 0.1.16
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- [#58](https://github.com/bcgov/connect-nuxt/pull/58) [`a98c264`](https://github.com/bcgov/connect-nuxt/commit/a98c2647e041061223d504c8e974670148c08c0b) Thanks [@deetz99](https://github.com/deetz99)! - Fix base layout, add loading state to fee widget
|
|
8
|
+
|
|
9
|
+
## 0.1.15
|
|
10
|
+
|
|
11
|
+
### Patch Changes
|
|
12
|
+
|
|
13
|
+
- [#56](https://github.com/bcgov/connect-nuxt/pull/56) [`cab53dc`](https://github.com/bcgov/connect-nuxt/commit/cab53dc83ab8c8032bdb424a9e135febdfebf645) Thanks [@kialj876](https://github.com/kialj876)! - Address display component update
|
|
14
|
+
|
|
3
15
|
## 0.1.14
|
|
4
16
|
|
|
5
17
|
### Patch Changes
|
package/app/app.config.ts
CHANGED
|
@@ -2,6 +2,8 @@
|
|
|
2
2
|
const props = defineProps<{
|
|
3
3
|
address: Partial<ConnectAddress>
|
|
4
4
|
omitCountry?: boolean
|
|
5
|
+
separateCity?: boolean
|
|
6
|
+
textDecor?: boolean
|
|
5
7
|
}>()
|
|
6
8
|
|
|
7
9
|
const getAddressDisplayParts = (
|
|
@@ -37,9 +39,12 @@ const getAddressDisplayParts = (
|
|
|
37
39
|
}
|
|
38
40
|
|
|
39
41
|
const getCountry = () => {
|
|
40
|
-
|
|
42
|
+
try {
|
|
43
|
+
return address.country && !omitCountry ? (regionNamesInEnglish.of(address.country) || address.country) : ''
|
|
44
|
+
} catch {
|
|
45
|
+
return address.country || ''
|
|
46
|
+
}
|
|
41
47
|
}
|
|
42
|
-
|
|
43
48
|
return [
|
|
44
49
|
getLine1(),
|
|
45
50
|
getLine2(),
|
|
@@ -49,7 +54,7 @@ const getAddressDisplayParts = (
|
|
|
49
54
|
].filter(val => !!val && val !== ',')
|
|
50
55
|
}
|
|
51
56
|
|
|
52
|
-
const addressDisplay = getAddressDisplayParts(props.address,
|
|
57
|
+
const addressDisplay = getAddressDisplayParts(props.address, props.separateCity, props.textDecor, props.omitCountry)
|
|
53
58
|
</script>
|
|
54
59
|
|
|
55
60
|
<template>
|
|
@@ -10,13 +10,11 @@
|
|
|
10
10
|
<ConnectBreadcrumb />
|
|
11
11
|
</slot>
|
|
12
12
|
<main class="app-body px-2 sm:px-4">
|
|
13
|
-
<
|
|
14
|
-
<
|
|
15
|
-
<
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
</slot>
|
|
19
|
-
</div>
|
|
13
|
+
<slot name="body">
|
|
14
|
+
<div class="app-inner-container grow flex flex-col overflow-hidden">
|
|
15
|
+
<slot />
|
|
16
|
+
</div>
|
|
17
|
+
</slot>
|
|
20
18
|
</main>
|
|
21
19
|
<slot name="footer">
|
|
22
20
|
<ConnectFooter />
|