@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.
Files changed (56) hide show
  1. package/CHANGELOG.md +13 -0
  2. package/dist/{QSubmitButton.vue_vue_type_script_setup_true_lang-62670a79.js → QSubmitButton.vue_vue_type_script_setup_true_lang-3DA1OTeA.js} +19 -14
  3. package/dist/authentication.js +13 -30
  4. package/dist/en-US-Ub0VDpRf.js +227 -0
  5. package/dist/flags.js +5 -224
  6. package/dist/form.js +7 -8
  7. package/dist/general.js +2 -3
  8. package/dist/icons.js +1 -1
  9. package/dist/{nl-710ec15d.js → nl-Y-pHriZy.js} +3 -0
  10. package/dist/types/ui/authentication/ConsentList.vue.d.ts +1 -1
  11. package/dist/types/ui/authentication/EmailChangeForm.vue.d.ts +1 -1
  12. package/dist/types/ui/authentication/EmailChangeStepper.vue.d.ts +1 -1
  13. package/dist/types/ui/authentication/LoginButton.vue.d.ts +1 -1
  14. package/dist/types/ui/authentication/LoginForm.vue.d.ts +1 -1
  15. package/dist/types/ui/authentication/OtpInput.vue.d.ts +1 -1
  16. package/dist/types/ui/authentication/PasswordChangeForm.vue.d.ts +2 -4
  17. package/dist/types/ui/authentication/PasswordChangeStepper.vue.d.ts +1 -5
  18. package/dist/types/ui/authentication/RegisterForm.vue.d.ts +1 -1
  19. package/dist/types/ui/authentication/RequestOtpForm.vue.d.ts +2 -4
  20. package/dist/types/ui/authentication/UserMenuButton.vue.d.ts +1 -1
  21. package/dist/types/ui/authentication/VerificationSlider.vue.d.ts +1 -1
  22. package/dist/types/ui/authentication/lang/index.d.ts +6 -0
  23. package/dist/types/ui/form/BooleanItem.vue.d.ts +2 -2
  24. package/dist/types/ui/form/BooleanSelect.vue.d.ts +1 -1
  25. package/dist/types/ui/form/DateInput.vue.d.ts +1 -1
  26. package/dist/types/ui/form/DatePicker.vue.d.ts +1 -1
  27. package/dist/types/ui/form/EmailInput.vue.d.ts +1 -1
  28. package/dist/types/ui/form/FormInput.vue.d.ts +1 -1
  29. package/dist/types/ui/form/FormItem.vue.d.ts +1 -1
  30. package/dist/types/ui/form/GenderItem.vue.d.ts +1 -1
  31. package/dist/types/ui/form/GenderSelect.vue.d.ts +1 -1
  32. package/dist/types/ui/form/PostalCodeInput.vue.d.ts +1 -1
  33. package/dist/types/ui/form/TelephoneNumberInput.vue.d.ts +1 -1
  34. package/dist/types/ui/general/QLanguageSelect.vue.d.ts +1 -1
  35. package/dist/types/ui/general/QStyledCard.vue.d.ts +1 -1
  36. package/dist/types/ui/general/QStyledLayout.vue.d.ts +1 -1
  37. package/dist/types/ui/general/QSubmitButton.vue.d.ts +1 -1
  38. package/dist/types/ui/general/ResourcePage.vue.d.ts +1 -1
  39. package/dist/types/ui/general/ResponsiveDialog.vue.d.ts +1 -1
  40. package/package.json +24 -24
  41. package/src/ui/authentication/PasswordChangeForm.vue +1 -4
  42. package/src/ui/authentication/PasswordChangeStepper.vue +8 -16
  43. package/src/ui/authentication/RequestOtpForm.vue +1 -2
  44. package/src/ui/authentication/lang/en-US.ts +3 -0
  45. package/src/ui/authentication/lang/index.ts +3 -0
  46. package/src/ui/authentication/lang/nl.ts +3 -0
  47. package/src/ui/form/BooleanItem.vue +2 -2
  48. package/src/ui/form/EmailInput.vue +2 -0
  49. package/src/ui/general/QSubmitButton.vue +13 -9
  50. package/tsconfig.build.plugin.json +2 -1
  51. package/tsconfig.json +1 -1
  52. package/tsconfig.node.json +1 -1
  53. package/tsconfig.types.json +1 -1
  54. /package/dist/{nl-fa466587.js → nl-VodfMDVb.js} +0 -0
  55. /package/dist/{nl-f499b5cb.js → nl-ddFMi2cz.js} +0 -0
  56. /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({ header })
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.',
@@ -46,6 +46,9 @@ export interface Language {
46
46
  fieldRequired: string
47
47
  invalidEmail: string
48
48
  }
49
+ messages: {
50
+ unknownEmail: string
51
+ }
49
52
  request: string
50
53
  checkEmail: string
51
54
  verificationCode: string
@@ -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>()
@@ -13,6 +13,8 @@
13
13
  </template>
14
14
 
15
15
  <script lang="ts">
16
+ import { QInput, QEditor } from 'quasar'
17
+
16
18
  export default {
17
19
  name: 'EmailInput'
18
20
  }
@@ -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
- if (props.loading === void 0) loadingInternal.value = true
72
- const p = new Promise((resolve, reject) => {
73
- emit('submit', { done: () => resolve(true) })
74
- }).finally(() => {
75
- if (props.loading === void 0) loadingInternal.value = false
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>
@@ -1,6 +1,7 @@
1
1
  {
2
2
  "compilerOptions": {
3
- "rootDir": "src/"
3
+ "rootDir": "src/",
4
+ "skipLibCheck": true
4
5
  },
5
6
  "extends": "./tsconfig.node.json",
6
7
  "include": ["./src/vite-plugin.ts", "./src/virtualModules.ts"]
package/tsconfig.json CHANGED
@@ -3,7 +3,7 @@
3
3
  "target": "esnext",
4
4
  "useDefineForClassFields": true,
5
5
  "module": "esnext",
6
- "moduleResolution": "node",
6
+ "moduleResolution": "bundler",
7
7
  "strict": true,
8
8
  "jsx": "preserve",
9
9
  "sourceMap": true,
@@ -2,7 +2,7 @@
2
2
  "compilerOptions": {
3
3
  "composite": true,
4
4
  "module": "esnext",
5
- "moduleResolution": "node",
5
+ "moduleResolution": "Bundler",
6
6
  "outDir": "./dist",
7
7
  "declaration": true
8
8
  },
@@ -5,7 +5,7 @@
5
5
  "lib": ["esnext", "DOM"],
6
6
  "strict": true,
7
7
  "skipLibCheck": true,
8
- "moduleResolution": "node",
8
+ "moduleResolution": "Bundler",
9
9
  "declaration": true,
10
10
  "outDir": "dist",
11
11
  "emitDeclarationOnly": true,
File without changes
File without changes
File without changes