@sbc-connect/nuxt-forms 0.8.0 → 0.9.0
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,22 @@
|
|
|
1
1
|
# @sbc-connect/nuxt-forms
|
|
2
2
|
|
|
3
|
+
## 0.9.0
|
|
4
|
+
|
|
5
|
+
### Minor Changes
|
|
6
|
+
|
|
7
|
+
- [#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.
|
|
8
|
+
|
|
9
|
+
### Patch Changes
|
|
10
|
+
|
|
11
|
+
- Updated dependencies [[`f19c40c`](https://github.com/bcgov/connect-nuxt/commit/f19c40c3702a53ef3a01a22b7068301f5d328122)]:
|
|
12
|
+
- @sbc-connect/nuxt-base@0.15.0
|
|
13
|
+
|
|
14
|
+
## 0.8.1
|
|
15
|
+
|
|
16
|
+
### Patch Changes
|
|
17
|
+
|
|
18
|
+
- [#204](https://github.com/bcgov/connect-nuxt/pull/204) [`a6c655c`](https://github.com/bcgov/connect-nuxt/commit/a6c655c177798565b04ffc0fe76b308d4841c9e5) Thanks [@eve-git](https://github.com/eve-git)! - Country dropdown: keep Canada and United States pinned at the top and also list them in their alphabetical position; search results show each only once.
|
|
19
|
+
|
|
3
20
|
## 0.8.0
|
|
4
21
|
|
|
5
22
|
### Minor Changes
|
|
@@ -44,7 +44,7 @@ const padding = paddingClass === 'x-default'
|
|
|
44
44
|
'flex gap-4 sm:gap-6',
|
|
45
45
|
bodyVariant === 'none' ? padding : '',
|
|
46
46
|
orientation === 'horizontal' ? 'flex-col sm:flex-row' : 'flex-col',
|
|
47
|
-
(error && bodyVariant === 'none') ? 'shadow-section-error' : ''
|
|
47
|
+
(error && bodyVariant === 'none') ? 'shadow-section-error' : ''
|
|
48
48
|
]"
|
|
49
49
|
>
|
|
50
50
|
<div
|
|
@@ -43,11 +43,13 @@ function matchesWordStart(text: string, search: string): boolean {
|
|
|
43
43
|
// anything at runtime - the separator object itself stays `{ type: 'separator' }`.
|
|
44
44
|
type CountryOption = Iso3166_1Country | (Partial<Iso3166_1Country> & { type: 'separator' })
|
|
45
45
|
|
|
46
|
+
// CA and US are pinned to the top for convenience, but also stay in their
|
|
47
|
+
// alphabetical position in the full list below the separator.
|
|
46
48
|
const options: Array<CountryOption> = [
|
|
47
49
|
countries.find(c => c.alpha_2 === 'CA')!,
|
|
48
50
|
countries.find(c => c.alpha_2 === 'US')!,
|
|
49
51
|
{ type: 'separator' },
|
|
50
|
-
...countries
|
|
52
|
+
...countries
|
|
51
53
|
]
|
|
52
54
|
|
|
53
55
|
const searchTerm = ref('')
|
|
@@ -56,12 +58,8 @@ const filteredItems = computed(() => {
|
|
|
56
58
|
if (!searchTerm.value.trim()) {
|
|
57
59
|
return options
|
|
58
60
|
}
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
return false
|
|
62
|
-
}
|
|
63
|
-
return matchesWordStart(item.name, searchTerm.value)
|
|
64
|
-
})
|
|
61
|
+
// Search the full list (not `options`) so pinned countries only appear once
|
|
62
|
+
return countries.filter(item => matchesWordStart(item.name, searchTerm.value))
|
|
65
63
|
})
|
|
66
64
|
</script>
|
|
67
65
|
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@sbc-connect/nuxt-forms",
|
|
3
3
|
"type": "module",
|
|
4
|
-
"version": "0.
|
|
4
|
+
"version": "0.9.0",
|
|
5
5
|
"repository": {
|
|
6
6
|
"type": "git",
|
|
7
7
|
"url": "github:bcgov/connect-nuxt"
|
|
@@ -10,18 +10,17 @@
|
|
|
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/eslint-config": "0.0.8",
|
|
16
|
+
"vue-tsc": "3.3.13",
|
|
18
17
|
"@sbc-connect/playwright-config": "0.2.1",
|
|
19
18
|
"@sbc-connect/vitest-config": "0.2.0"
|
|
20
19
|
},
|
|
21
20
|
"dependencies": {
|
|
22
21
|
"country-codes-list": "3.2.0",
|
|
23
22
|
"vue-country-flag-next": "2.3.2",
|
|
24
|
-
"@sbc-connect/nuxt-base": "0.
|
|
23
|
+
"@sbc-connect/nuxt-base": "0.15.0"
|
|
25
24
|
},
|
|
26
25
|
"scripts": {
|
|
27
26
|
"preinstall": "npx only-allow pnpm",
|