Skip to content

Commit 63313fa

Browse files
fix(components): fix vue generics
1 parent 0143ec3 commit 63313fa

File tree

6 files changed

+1485
-1009
lines changed

6 files changed

+1485
-1009
lines changed

.changeset/lucky-clocks-obey.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
---
2+
"@simsustech/quasar-components": patch
3+
---
4+
5+
fix(components): fix vue generics

packages/components/package.json

Lines changed: 23 additions & 23 deletions
Original file line numberDiff line numberDiff line change
@@ -57,36 +57,36 @@
5757
},
5858
"bugs": "https://github.com/simsusech/quasar-components/issues",
5959
"dependencies": {
60-
"validator": "^13.11.0"
60+
"validator": "^13.12.0"
6161
},
6262
"peerDependencies": {
6363
"quasar": "^2.15.2"
6464
},
6565
"devDependencies": {
66-
"@types/node": "^20.12.7",
67-
"@types/validator": "^13.11.9",
68-
"@types/ws": "^8.5.10",
69-
"@typescript-eslint/eslint-plugin": "^7.7.0",
70-
"@typescript-eslint/parser": "^7.7.0",
71-
"@vitejs/plugin-vue": "^5.0.4",
72-
"@vue/server-renderer": "^3.4.23",
73-
"eslint": "^9.0.0",
66+
"@types/node": "^22.7.5",
67+
"@types/validator": "^13.12.2",
68+
"@types/ws": "^8.5.12",
69+
"@typescript-eslint/eslint-plugin": "^8.8.1",
70+
"@typescript-eslint/parser": "^8.8.1",
71+
"@vitejs/plugin-vue": "^5.1.4",
72+
"@vue/server-renderer": "^3.5.11",
73+
"eslint": "^9.12.0",
7474
"eslint-config-prettier": "^9.1.0",
75-
"eslint-plugin-prettier": "^5.1.3",
75+
"eslint-plugin-prettier": "^5.2.1",
7676
"eslint-plugin-prettier-vue": "^5.0.0",
77-
"eslint-plugin-vue": "^9.25.0",
78-
"glob": "^10.3.12",
77+
"eslint-plugin-vue": "^9.28.0",
78+
"glob": "^11.0.0",
7979
"local-pkg": "^0.5.0",
80-
"prettier": "^3.2.5",
81-
"quasar": "^2.15.2",
82-
"rimraf": "^5.0.5",
83-
"typescript": "^5.4.5",
84-
"typescript-eslint": "^7.7.0",
85-
"unplugin-vue-components": "^0.26.0",
86-
"vite": "^5.2.9",
87-
"vue": "^3.4.23",
88-
"vue-eslint-parser": "^9.4.2",
89-
"vue-router": "^4.3.2",
90-
"vue-tsc": "^2.0.13"
80+
"prettier": "^3.3.3",
81+
"quasar": "^2.17.0",
82+
"rimraf": "^6.0.1",
83+
"typescript": "^5.6.3",
84+
"typescript-eslint": "^8.8.1",
85+
"unplugin-vue-components": "^0.27.4",
86+
"vite": "^5.4.8",
87+
"vue": "^3.5.11",
88+
"vue-eslint-parser": "^9.4.3",
89+
"vue-router": "^4.4.5",
90+
"vue-tsc": "^2.1.6"
9191
}
9292
}

packages/components/src/ui/authentication/AccountsTable.vue

Lines changed: 5 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -110,25 +110,24 @@ export interface Account {
110110
roles: string[]
111111
}
112112
113-
interface Pagination {
113+
export interface Pagination {
114114
limit: number
115115
offset: number
116116
sortBy: keyof Account
117117
descending: boolean
118118
}
119119
120-
interface Criteria {
120+
export interface Criteria {
121121
roles: string[]
122122
}
123-
interface Props {
123+
124+
const props = defineProps<{
124125
modelValue: T[]
125126
count: number
126127
pagination: Pagination
127128
mappedRoles: Record<string, string> // value: label
128129
columns?: QTableColumn[]
129-
}
130-
131-
const props = defineProps<Props>()
130+
}>()
132131
133132
const emit = defineEmits<{
134133
(e: 'update:pagination', pagination: Pagination): void

packages/components/src/ui/form/FilteredModelSelect.vue

Lines changed: 3 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -19,18 +19,12 @@
1919
@update:model-value="$emit('update:model-value', $event)"
2020
>
2121
<template #hint> {{ hint }} </template>
22-
<template v-for="(_, slot) in $slots" v-slot:[slot]="scope">
22+
<template v-for="(_, slot) in $slots" #[slot]="scope">
2323
<slot :name="slot" v-bind="scope || {}" />
2424
</template>
2525
</q-select>
2626
</template>
2727

28-
<script lang="ts">
29-
export default {
30-
name: 'FilteredModelSelect'
31-
}
32-
</script>
33-
3428
<script
3529
setup
3630
lang="ts"
@@ -40,7 +34,7 @@ import { QSelect } from 'quasar'
4034
import { computed, ref, toRefs, useAttrs, watch } from 'vue'
4135
import { useLang } from './lang/index.js'
4236
43-
interface Props {
37+
const props = defineProps<{
4438
modelValue?: number | number[] | null
4539
labelKey: string
4640
labelFunction?: (option: unknown) => string
@@ -52,8 +46,7 @@ interface Props {
5246
multiple?: boolean
5347
label?: string
5448
hint?: string
55-
}
56-
const props = defineProps<Props>()
49+
}>()
5750
const attrs = useAttrs()
5851
5952
const emit = defineEmits<{

packages/dev/package.json

Lines changed: 14 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -13,22 +13,22 @@
1313
},
1414
"author": "simsustech",
1515
"dependencies": {
16-
"@fastify/static": "^7.0.3",
17-
"@quasar/extras": "^1.16.11",
18-
"@simsustech/quasar-components": "^0.10.0",
19-
"fastify": "^4.26.2",
20-
"fastify-plugin": "^4.5.1",
21-
"quasar": "^2.15.2",
22-
"vue": "^3.4.23",
23-
"vue-router": "^4.3.2"
16+
"@fastify/static": "^8.0.1",
17+
"@quasar/extras": "^1.16.12",
18+
"@simsustech/quasar-components": "^0.10.4",
19+
"fastify": "^5.0.0",
20+
"fastify-plugin": "^5.0.1",
21+
"quasar": "^2.17.0",
22+
"vue": "^3.5.11",
23+
"vue-router": "^4.4.5"
2424
},
2525
"devDependencies": {
26-
"@types/node": "^20.12.7",
27-
"@vue/server-renderer": "^3.4.23",
28-
"critters": "^0.0.22",
26+
"@types/node": "^22.7.5",
27+
"@vue/server-renderer": "^3.5.11",
28+
"critters": "^0.0.24",
2929
"devcert": "^1.2.2",
30-
"typescript": "^5.4.5",
31-
"vite": "^5.2.9",
32-
"vitrify": "^0.14.4"
30+
"typescript": "^5.6.3",
31+
"vite": "^5.4.8",
32+
"vitrify": "^0.16.0"
3333
}
3434
}

0 commit comments

Comments
 (0)