adata-ui 2.0.92 → 2.0.93

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.
@@ -1,4 +1,8 @@
1
1
  <script setup lang="ts">
2
+ const emit = defineEmits<{
3
+ (e: 'closed', value: boolean): void
4
+ }>()
5
+
2
6
  const { t } = useI18n()
3
7
 
4
8
  const { loginModal, autoLogoutModal } = useIdModals()
@@ -9,7 +13,7 @@ function onLogin() {
9
13
  }
10
14
 
11
15
  function onClose() {
12
- autoLogoutModal.value = false
16
+ emit('closed', true)
13
17
  }
14
18
  </script>
15
19
 
@@ -11,6 +11,10 @@ import IdResetPasswordOtpModal from '#adata-ui/components/modals/id/IdResetPassw
11
11
  import IdTwoFactorModal from '#adata-ui/components/modals/id/IdTwoFactorModal.vue'
12
12
  import IdAutoLogoutModal from '#adata-ui/components/modals/id/IdAutoLogoutModal.vue'
13
13
 
14
+ const emit = defineEmits<{
15
+ (e: 'closed', value: boolean): void
16
+ }>()
17
+
14
18
  const {
15
19
  loginModal,
16
20
  registrationModal,
@@ -64,6 +68,11 @@ watch(isAuthenticated, (val) => {
64
68
  autoLogout.value = null
65
69
  }
66
70
  })
71
+
72
+ const autoLoginClose = () => {
73
+ emit('closed', true)
74
+ autoLogoutModal.value = false
75
+ }
67
76
  </script>
68
77
 
69
78
  <template>
@@ -98,7 +107,7 @@ watch(isAuthenticated, (val) => {
98
107
  </a-modal>
99
108
 
100
109
  <a-modal v-model="autoLogoutModal" prevent-close>
101
- <id-auto-logout-modal v-if="autoLogoutModal" />
110
+ <id-auto-logout-modal v-if="autoLogoutModal" @closed="autoLoginClose" />
102
111
  </a-modal>
103
112
  </template>
104
113
 
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "adata-ui",
3
3
  "type": "module",
4
- "version": "2.0.92",
4
+ "version": "2.0.93",
5
5
  "main": "./nuxt.config.ts",
6
6
  "scripts": {
7
7
  "dev": "nuxi dev .playground",