@simsustech/quasar-components 0.10.4 → 0.10.6
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 +13 -0
- package/dist/{QSubmitButton.vue_vue_type_script_setup_true_lang-DWleuHVF.js → QSubmitButton.vue_vue_type_script_setup_true_lang-D133pxTB.js} +3 -9
- package/dist/authentication.js +34 -66
- package/dist/{en-US-BEeILC7o.js → en-US-BQLrPvIP.js} +2 -7
- package/dist/flags.js +1 -1
- package/dist/form.js +37 -50
- package/dist/general.js +6 -10
- package/dist/types/ui/authentication/AccountsTable.vue.d.ts +59 -0
- package/dist/types/ui/authentication/ConsentList.vue.d.ts +11 -12
- package/dist/types/ui/authentication/EmailChangeForm.vue.d.ts +21 -16
- package/dist/types/ui/authentication/EmailChangeStepper.vue.d.ts +25 -18
- package/dist/types/ui/authentication/LoginButton.vue.d.ts +1 -10
- package/dist/types/ui/authentication/LoginForm.vue.d.ts +31 -20
- package/dist/types/ui/authentication/OtpInput.vue.d.ts +5 -14
- package/dist/types/ui/authentication/PasswordChangeForm.vue.d.ts +21 -36
- package/dist/types/ui/authentication/PasswordChangeStepper.vue.d.ts +19 -20
- package/dist/types/ui/authentication/RegisterForm.vue.d.ts +39 -44
- package/dist/types/ui/authentication/RequestOtpForm.vue.d.ts +18 -17
- package/dist/types/ui/authentication/UserMenuButton.vue.d.ts +7 -16
- package/dist/types/ui/authentication/VerificationSlider.vue.d.ts +7 -16
- package/dist/types/ui/authentication/lang/index.d.ts +108 -0
- package/dist/types/ui/flags/lang/index.d.ts +130 -0
- package/dist/types/ui/form/BooleanItem.vue.d.ts +1 -10
- package/dist/types/ui/form/BooleanSelect.vue.d.ts +3 -12
- package/dist/types/ui/form/CronScheduleInput.vue.d.ts +4 -13
- package/dist/types/ui/form/CurrencySelect.vue.d.ts +3 -12
- package/dist/types/ui/form/DateInput.vue.d.ts +6 -33
- package/dist/types/ui/form/DatePicker.vue.d.ts +16 -25
- package/dist/types/ui/form/EmailInput.vue.d.ts +8 -17
- package/dist/types/ui/form/FilteredModelSelect.vue.d.ts +21 -77
- package/dist/types/ui/form/FormInput.vue.d.ts +11 -8
- package/dist/types/ui/form/FormItem.vue.d.ts +11 -13
- package/dist/types/ui/form/GenderItem.vue.d.ts +1 -10
- package/dist/types/ui/form/GenderSelect.vue.d.ts +3 -12
- package/dist/types/ui/form/LocaleSelect.vue.d.ts +1 -10
- package/dist/types/ui/form/PostalCodeInput.vue.d.ts +3 -12
- package/dist/types/ui/form/TelephoneNumberInput.vue.d.ts +3 -12
- package/dist/types/ui/form/lang/index.d.ts +71 -0
- package/dist/types/ui/general/QDrawerList.vue.d.ts +10 -3
- package/dist/types/ui/general/QLanguageSelect.vue.d.ts +1 -10
- package/dist/types/ui/general/QStyledCard.vue.d.ts +4 -13
- package/dist/types/ui/general/QStyledLayout.vue.d.ts +4 -13
- package/dist/types/ui/general/QSubmitButton.vue.d.ts +8 -33
- package/dist/types/ui/general/ResourcePage.vue.d.ts +7 -16
- package/dist/types/ui/general/ResponsiveDialog.vue.d.ts +14 -15
- package/dist/types/ui/general/lang/index.d.ts +6 -0
- package/dist/vite-plugin.js +2 -2
- package/package.json +24 -24
- package/src/ui/authentication/AccountsTable.vue +5 -6
- package/src/ui/form/DateInput.vue +4 -4
- package/src/ui/form/FilteredModelSelect.vue +4 -11
- package/src/ui/form/FormInput.vue +5 -1
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@simsustech/quasar-components",
|
|
3
|
-
"version": "0.10.
|
|
3
|
+
"version": "0.10.6",
|
|
4
4
|
"author": "Stefan van Herwijnen",
|
|
5
5
|
"description": "High level components for Quasar Framework",
|
|
6
6
|
"license": "MIT",
|
|
@@ -46,37 +46,37 @@
|
|
|
46
46
|
},
|
|
47
47
|
"bugs": "https://github.com/simsusech/quasar-components/issues",
|
|
48
48
|
"dependencies": {
|
|
49
|
-
"validator": "^13.
|
|
49
|
+
"validator": "^13.12.0"
|
|
50
50
|
},
|
|
51
51
|
"peerDependencies": {
|
|
52
52
|
"quasar": "^2.15.2"
|
|
53
53
|
},
|
|
54
54
|
"devDependencies": {
|
|
55
|
-
"@types/node": "^
|
|
56
|
-
"@types/validator": "^13.
|
|
57
|
-
"@types/ws": "^8.5.
|
|
58
|
-
"@typescript-eslint/eslint-plugin": "^
|
|
59
|
-
"@typescript-eslint/parser": "^
|
|
60
|
-
"@vitejs/plugin-vue": "^5.
|
|
61
|
-
"@vue/server-renderer": "^3.
|
|
62
|
-
"eslint": "^9.
|
|
55
|
+
"@types/node": "^22.7.5",
|
|
56
|
+
"@types/validator": "^13.12.2",
|
|
57
|
+
"@types/ws": "^8.5.12",
|
|
58
|
+
"@typescript-eslint/eslint-plugin": "^8.8.1",
|
|
59
|
+
"@typescript-eslint/parser": "^8.8.1",
|
|
60
|
+
"@vitejs/plugin-vue": "^5.1.4",
|
|
61
|
+
"@vue/server-renderer": "^3.5.11",
|
|
62
|
+
"eslint": "^9.12.0",
|
|
63
63
|
"eslint-config-prettier": "^9.1.0",
|
|
64
|
-
"eslint-plugin-prettier": "^5.1
|
|
64
|
+
"eslint-plugin-prettier": "^5.2.1",
|
|
65
65
|
"eslint-plugin-prettier-vue": "^5.0.0",
|
|
66
|
-
"eslint-plugin-vue": "^9.
|
|
67
|
-
"glob": "^
|
|
66
|
+
"eslint-plugin-vue": "^9.28.0",
|
|
67
|
+
"glob": "^11.0.0",
|
|
68
68
|
"local-pkg": "^0.5.0",
|
|
69
|
-
"prettier": "^3.
|
|
70
|
-
"quasar": "^2.
|
|
71
|
-
"rimraf": "^
|
|
72
|
-
"typescript": "^5.
|
|
73
|
-
"typescript-eslint": "^
|
|
74
|
-
"unplugin-vue-components": "^0.
|
|
75
|
-
"vite": "^5.
|
|
76
|
-
"vue": "^3.
|
|
77
|
-
"vue-eslint-parser": "^9.4.
|
|
78
|
-
"vue-router": "^4.
|
|
79
|
-
"vue-tsc": "^2.
|
|
69
|
+
"prettier": "^3.3.3",
|
|
70
|
+
"quasar": "^2.17.0",
|
|
71
|
+
"rimraf": "^6.0.1",
|
|
72
|
+
"typescript": "^5.6.3",
|
|
73
|
+
"typescript-eslint": "^8.8.1",
|
|
74
|
+
"unplugin-vue-components": "^0.27.4",
|
|
75
|
+
"vite": "^5.4.8",
|
|
76
|
+
"vue": "^3.5.11",
|
|
77
|
+
"vue-eslint-parser": "^9.4.3",
|
|
78
|
+
"vue-router": "^4.4.5",
|
|
79
|
+
"vue-tsc": "^2.1.6"
|
|
80
80
|
},
|
|
81
81
|
"scripts": {
|
|
82
82
|
"build:plugin": "vite build",
|
|
@@ -110,25 +110,24 @@ export interface Account {
|
|
|
110
110
|
roles: string[]
|
|
111
111
|
}
|
|
112
112
|
|
|
113
|
-
interface Pagination {
|
|
113
|
+
export interface Pagination {
|
|
114
114
|
limit: number
|
|
115
115
|
offset: number
|
|
116
116
|
sortBy: keyof Account
|
|
117
117
|
descending: boolean
|
|
118
118
|
}
|
|
119
119
|
|
|
120
|
-
interface Criteria {
|
|
120
|
+
export interface Criteria {
|
|
121
121
|
roles: string[]
|
|
122
122
|
}
|
|
123
|
-
|
|
123
|
+
|
|
124
|
+
const props = defineProps<{
|
|
124
125
|
modelValue: T[]
|
|
125
126
|
count: number
|
|
126
127
|
pagination: Pagination
|
|
127
128
|
mappedRoles: Record<string, string> // value: label
|
|
128
129
|
columns?: QTableColumn[]
|
|
129
|
-
}
|
|
130
|
-
|
|
131
|
-
const props = defineProps<Props>()
|
|
130
|
+
}>()
|
|
132
131
|
|
|
133
132
|
const emit = defineEmits<{
|
|
134
133
|
(e: 'update:pagination', pagination: Pagination): void
|
|
@@ -15,7 +15,7 @@
|
|
|
15
15
|
v-bind="dateProps[part]"
|
|
16
16
|
>
|
|
17
17
|
<template #after>
|
|
18
|
-
<a v-if="index < 2" style="margin-left: -0.
|
|
18
|
+
<a v-if="index < 2" style="margin-left: -0.75em; margin-top: 0.75em"
|
|
19
19
|
>-</a
|
|
20
20
|
>
|
|
21
21
|
</template>
|
|
@@ -187,7 +187,7 @@ const dateProps = computed<Record<string, QInputProps>>(() => ({
|
|
|
187
187
|
placeholder: lang.value.datePicker.YYYY,
|
|
188
188
|
style: 'width: 7ch; margin-top: -2em; margin-bottom: -0.5em',
|
|
189
189
|
// suffix: format.value === 'YYYY-MM-DD' ? '-' : undefined,
|
|
190
|
-
class: format.value !== 'YYYY-MM-DD' ? 'q-mb-none q-ml-
|
|
190
|
+
class: format.value !== 'YYYY-MM-DD' ? 'q-mb-none q-ml-none' : undefined,
|
|
191
191
|
'onUpdate:modelValue': setYear,
|
|
192
192
|
onKeydown: goToNextElement
|
|
193
193
|
},
|
|
@@ -196,7 +196,7 @@ const dateProps = computed<Record<string, QInputProps>>(() => ({
|
|
|
196
196
|
placeholder: lang.value.datePicker.MM,
|
|
197
197
|
style: 'width: 6ch; margin-top: -2em; margin-bottom: -0.5em',
|
|
198
198
|
// suffix: '-',
|
|
199
|
-
class: 'q-ml-
|
|
199
|
+
class: 'q-ml-none',
|
|
200
200
|
'onUpdate:modelValue': setMonth,
|
|
201
201
|
onKeydown: goToNextElement
|
|
202
202
|
},
|
|
@@ -205,7 +205,7 @@ const dateProps = computed<Record<string, QInputProps>>(() => ({
|
|
|
205
205
|
placeholder: lang.value.datePicker.DD,
|
|
206
206
|
style: 'width: 6ch; margin-top: -2em; margin-bottom: -0.5em',
|
|
207
207
|
// suffix: format.value === 'DD-MM-YYYY' ? '-' : undefined,
|
|
208
|
-
class: format.value === 'YYYY-MM-DD' ? 'q-ml-
|
|
208
|
+
class: format.value === 'YYYY-MM-DD' ? 'q-ml-none' : undefined,
|
|
209
209
|
'onUpdate:modelValue': setDay,
|
|
210
210
|
onKeydown: goToNextElement
|
|
211
211
|
}
|
|
@@ -19,18 +19,12 @@
|
|
|
19
19
|
@update:model-value="$emit('update:model-value', $event)"
|
|
20
20
|
>
|
|
21
21
|
<template #hint> {{ hint }} </template>
|
|
22
|
-
<template v-for="(_, slot) in $slots"
|
|
22
|
+
<template v-for="(_, slot) in $slots" #[slot]="scope">
|
|
23
23
|
<slot :name="slot" v-bind="scope || {}" />
|
|
24
24
|
</template>
|
|
25
25
|
</q-select>
|
|
26
26
|
</template>
|
|
27
27
|
|
|
28
|
-
<script lang="ts">
|
|
29
|
-
export default {
|
|
30
|
-
name: 'FilteredModelSelect'
|
|
31
|
-
}
|
|
32
|
-
</script>
|
|
33
|
-
|
|
34
28
|
<script
|
|
35
29
|
setup
|
|
36
30
|
lang="ts"
|
|
@@ -40,7 +34,7 @@ import { QSelect } from 'quasar'
|
|
|
40
34
|
import { computed, ref, toRefs, useAttrs, watch } from 'vue'
|
|
41
35
|
import { useLang } from './lang/index.js'
|
|
42
36
|
|
|
43
|
-
|
|
37
|
+
const props = defineProps<{
|
|
44
38
|
modelValue?: number | number[] | null
|
|
45
39
|
labelKey: string
|
|
46
40
|
labelFunction?: (option: unknown) => string
|
|
@@ -52,8 +46,7 @@ interface Props {
|
|
|
52
46
|
multiple?: boolean
|
|
53
47
|
label?: string
|
|
54
48
|
hint?: string
|
|
55
|
-
}
|
|
56
|
-
const props = defineProps<Props>()
|
|
49
|
+
}>()
|
|
57
50
|
const attrs = useAttrs()
|
|
58
51
|
|
|
59
52
|
const emit = defineEmits<{
|
|
@@ -120,7 +113,7 @@ const selectedIds = computed(() => {
|
|
|
120
113
|
return []
|
|
121
114
|
})
|
|
122
115
|
|
|
123
|
-
const filterFn: QSelect['$props']['onFilter'] = (val, update
|
|
116
|
+
const filterFn: QSelect['$props']['onFilter'] = (val, update) => {
|
|
124
117
|
if (!onFilter.value) update(() => {})
|
|
125
118
|
emit('filter', {
|
|
126
119
|
ids: selectedIds.value,
|
|
@@ -7,7 +7,11 @@
|
|
|
7
7
|
required ? '*' : ''
|
|
8
8
|
}`"
|
|
9
9
|
@update:model-value="$emit('update:modelValue', $event)"
|
|
10
|
-
|
|
10
|
+
>
|
|
11
|
+
<template v-for="(_, slot) in $slots" #[slot]="scope">
|
|
12
|
+
<slot :name="slot" v-bind="scope || {}" />
|
|
13
|
+
</template>
|
|
14
|
+
</q-input>
|
|
11
15
|
</template>
|
|
12
16
|
|
|
13
17
|
<script setup lang="ts">
|