@simsustech/quasar-components 0.4.6 → 0.4.8
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-62670a79.js → QSubmitButton.vue_vue_type_script_setup_true_lang-3DA1OTeA.js} +19 -14
- package/dist/authentication.js +13 -30
- package/dist/en-US-Ub0VDpRf.js +227 -0
- package/dist/flags.js +5 -224
- package/dist/form.js +7 -8
- package/dist/general.js +2 -3
- package/dist/icons.js +1 -1
- package/dist/{nl-710ec15d.js → nl-Y-pHriZy.js} +3 -0
- package/dist/types/ui/authentication/ConsentList.vue.d.ts +1 -1
- package/dist/types/ui/authentication/EmailChangeForm.vue.d.ts +1 -1
- package/dist/types/ui/authentication/EmailChangeStepper.vue.d.ts +1 -1
- package/dist/types/ui/authentication/LoginButton.vue.d.ts +1 -1
- package/dist/types/ui/authentication/LoginForm.vue.d.ts +1 -1
- package/dist/types/ui/authentication/OtpInput.vue.d.ts +1 -1
- package/dist/types/ui/authentication/PasswordChangeForm.vue.d.ts +2 -4
- package/dist/types/ui/authentication/PasswordChangeStepper.vue.d.ts +1 -5
- package/dist/types/ui/authentication/RegisterForm.vue.d.ts +1 -1
- package/dist/types/ui/authentication/RequestOtpForm.vue.d.ts +2 -4
- package/dist/types/ui/authentication/UserMenuButton.vue.d.ts +1 -1
- package/dist/types/ui/authentication/VerificationSlider.vue.d.ts +1 -1
- package/dist/types/ui/authentication/lang/index.d.ts +6 -0
- package/dist/types/ui/form/BooleanItem.vue.d.ts +2 -2
- package/dist/types/ui/form/BooleanSelect.vue.d.ts +1 -1
- package/dist/types/ui/form/DateInput.vue.d.ts +1 -1
- package/dist/types/ui/form/DatePicker.vue.d.ts +1 -1
- package/dist/types/ui/form/EmailInput.vue.d.ts +1 -1
- package/dist/types/ui/form/FormInput.vue.d.ts +1 -1
- package/dist/types/ui/form/FormItem.vue.d.ts +1 -1
- package/dist/types/ui/form/GenderItem.vue.d.ts +1 -1
- package/dist/types/ui/form/GenderSelect.vue.d.ts +1 -1
- package/dist/types/ui/form/PostalCodeInput.vue.d.ts +1 -1
- package/dist/types/ui/form/TelephoneNumberInput.vue.d.ts +1 -1
- package/dist/types/ui/general/QLanguageSelect.vue.d.ts +1 -1
- package/dist/types/ui/general/QStyledCard.vue.d.ts +1 -1
- package/dist/types/ui/general/QStyledLayout.vue.d.ts +1 -1
- package/dist/types/ui/general/QSubmitButton.vue.d.ts +1 -1
- package/dist/types/ui/general/ResourcePage.vue.d.ts +1 -1
- package/dist/types/ui/general/ResponsiveDialog.vue.d.ts +1 -1
- package/package.json +24 -24
- package/src/ui/authentication/PasswordChangeForm.vue +1 -4
- package/src/ui/authentication/PasswordChangeStepper.vue +8 -16
- package/src/ui/authentication/RequestOtpForm.vue +1 -2
- package/src/ui/authentication/lang/en-US.ts +3 -0
- package/src/ui/authentication/lang/index.ts +3 -0
- package/src/ui/authentication/lang/nl.ts +3 -0
- package/src/ui/form/BooleanItem.vue +2 -2
- package/src/ui/form/EmailInput.vue +2 -0
- package/src/ui/general/QSubmitButton.vue +13 -9
- package/tsconfig.build.plugin.json +2 -1
- package/tsconfig.json +1 -1
- package/tsconfig.node.json +1 -1
- package/tsconfig.types.json +1 -1
- /package/dist/{nl-fa466587.js → nl-VodfMDVb.js} +0 -0
- /package/dist/{nl-f499b5cb.js → nl-ddFMi2cz.js} +0 -0
- /package/dist/{nl-38cb2607.js → nl-w63lODNM.js} +0 -0
|
@@ -65,7 +65,6 @@ watch($q.lang, (val) => {
|
|
|
65
65
|
})
|
|
66
66
|
|
|
67
67
|
const email = ref('')
|
|
68
|
-
const header = computed(() => lang.value.otp.request)
|
|
69
68
|
|
|
70
69
|
const formRef = ref<QForm>()
|
|
71
70
|
const validations = computed<
|
|
@@ -90,7 +89,7 @@ const submit: InstanceType<typeof QSubmitButton>['$props']['onSubmit'] = ({
|
|
|
90
89
|
})
|
|
91
90
|
}
|
|
92
91
|
|
|
93
|
-
const variables = ref({
|
|
92
|
+
const variables = ref({})
|
|
94
93
|
const functions = ref({ submit })
|
|
95
94
|
defineExpose({
|
|
96
95
|
variables,
|
|
@@ -32,6 +32,9 @@ const lang: Language = {
|
|
|
32
32
|
fieldRequired: 'Field is required.',
|
|
33
33
|
invalidEmail: 'A valid email address is required.'
|
|
34
34
|
},
|
|
35
|
+
messages: {
|
|
36
|
+
unknownEmail: 'Email address is not registered.'
|
|
37
|
+
},
|
|
35
38
|
request: 'Request a one-time password',
|
|
36
39
|
checkEmail:
|
|
37
40
|
'You will receive a verification code in your email. Please use this verification code in the next step.',
|
|
@@ -32,6 +32,9 @@ const lang: Language = {
|
|
|
32
32
|
fieldRequired: 'Veld is vereist.',
|
|
33
33
|
invalidEmail: 'Het email adres is ongeldig.'
|
|
34
34
|
},
|
|
35
|
+
messages: {
|
|
36
|
+
unknownEmail: 'Email adres is niet geregistreerd.'
|
|
37
|
+
},
|
|
35
38
|
request: 'Vraag een eenmalig wachtwoord aan.',
|
|
36
39
|
checkEmail:
|
|
37
40
|
'U ontvangt een verificatie code in uw mailbox. Gebruik deze code in de volgende stap.',
|
|
@@ -5,7 +5,7 @@
|
|
|
5
5
|
{{ label }}
|
|
6
6
|
</q-item-label>
|
|
7
7
|
<q-item-label>
|
|
8
|
-
{{ modelValue ? lang.yes : lang.no }}
|
|
8
|
+
{{ modelValue === null ? '-' : modelValue ? lang.yes : lang.no }}
|
|
9
9
|
</q-item-label>
|
|
10
10
|
</q-item-section>
|
|
11
11
|
</q-item>
|
|
@@ -17,7 +17,7 @@ import { QItem, QItemLabel, QItemSection, useQuasar } from 'quasar'
|
|
|
17
17
|
import { useLang, loadLang } from './lang'
|
|
18
18
|
|
|
19
19
|
export interface Props {
|
|
20
|
-
modelValue: boolean
|
|
20
|
+
modelValue: boolean | null
|
|
21
21
|
label: string
|
|
22
22
|
}
|
|
23
23
|
defineProps<Props>()
|
|
@@ -21,7 +21,7 @@ export default {
|
|
|
21
21
|
|
|
22
22
|
<script setup lang="ts">
|
|
23
23
|
import { ref, watch, useAttrs } from 'vue'
|
|
24
|
-
import { useQuasar } from 'quasar'
|
|
24
|
+
import { useQuasar, debounce } from 'quasar'
|
|
25
25
|
import { useLang, loadLang } from './lang'
|
|
26
26
|
export interface Props {
|
|
27
27
|
loading?: boolean
|
|
@@ -67,12 +67,16 @@ watch($q.lang, (val) => {
|
|
|
67
67
|
|
|
68
68
|
let loadingInternal = ref(false)
|
|
69
69
|
|
|
70
|
-
const submit = (
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
}
|
|
70
|
+
const submit = debounce(
|
|
71
|
+
() => {
|
|
72
|
+
if (props.loading === void 0) loadingInternal.value = true
|
|
73
|
+
const p = new Promise((resolve, reject) => {
|
|
74
|
+
emit('submit', { done: () => resolve(true) })
|
|
75
|
+
}).finally(() => {
|
|
76
|
+
if (props.loading === void 0) loadingInternal.value = false
|
|
77
|
+
})
|
|
78
|
+
},
|
|
79
|
+
1000,
|
|
80
|
+
true
|
|
81
|
+
)
|
|
78
82
|
</script>
|
package/tsconfig.json
CHANGED
package/tsconfig.node.json
CHANGED
package/tsconfig.types.json
CHANGED
|
File without changes
|
|
File without changes
|
|
File without changes
|