@luizleon/sf.prefeiturasp.vuecomponents 0.0.28 → 0.0.30

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@luizleon/sf.prefeiturasp.vuecomponents",
3
- "version": "0.0.28",
3
+ "version": "0.0.30",
4
4
  "type": "module",
5
5
  "main": "dist/lib.umd.js",
6
6
  "module": "dist/lib.es.js",
@@ -27,6 +27,7 @@ export interface SfLayoutSlots {
27
27
 
28
28
  export declare type SfLayoutEmits = {
29
29
  mounted: () => void;
30
+ logout: () => void;
30
31
  };
31
32
 
32
33
  declare class SfLayout extends ClassComponent<
@@ -1,4 +1,5 @@
1
1
  <script setup lang="ts">
2
+ import { onMounted } from "vue";
2
3
  import { UseNavMenuService } from "../../services/navMenuService";
3
4
  import Icon from "../icon/Icon.vue";
4
5
  import HeaderAvatar from "../internal/HeaderAvatar.vue";
@@ -8,8 +9,13 @@ import ThemeToggle from "../internal/ThemeToggle.vue";
8
9
  const navService = UseNavMenuService();
9
10
 
10
11
  const emit = defineEmits<{
12
+ (event: "mounted"): void;
11
13
  (event: "logout"): void;
12
14
  }>();
15
+
16
+ onMounted(() => {
17
+ emit("mounted");
18
+ });
13
19
  </script>
14
20
 
15
21
  <template>
@@ -30,7 +36,7 @@ const emit = defineEmits<{
30
36
  </div>
31
37
  <slot name="action"> </slot>
32
38
  <ThemeToggle />
33
- <HeaderAvatar @logout="" />
39
+ <HeaderAvatar @logout="emit('logout')" />
34
40
  </header>
35
41
  <nav :class="{ visible: navService.IsVisible }">
36
42
  <div class="sf-layout-nav-header">