@luizleon/sf.prefeiturasp.vuecomponents 0.0.9 → 0.0.10

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,10 +1,11 @@
1
- declare class ThemeToggle {
2
- get storedTheme(): "light" | "dark" | null;
3
- get IsDark(): boolean;
4
- Toggle(): void;
5
- EnableDarkMode(): void;
6
- EnableLightMode(): void;
7
- SetInitialTheme(): void;
8
- }
9
- export declare const ThemeToggleBase: ThemeToggle;
10
- export {};
1
+ declare const _sfc_main: import("vue").DefineComponent<{}, {
2
+ readonly ThemeToggleBase: {
3
+ readonly storedTheme: "light" | "dark" | null;
4
+ readonly IsDark: boolean;
5
+ Toggle(): void;
6
+ EnableDarkMode(): void;
7
+ EnableLightMode(): void;
8
+ SetInitialTheme(): void;
9
+ };
10
+ }, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{}>>, {}, {}>;
11
+ export default _sfc_main;
@@ -7,6 +7,7 @@ export interface SfNavMenuLinkProps {
7
7
  href: string;
8
8
  text: string;
9
9
  icon?: string;
10
+ exact?: boolean;
10
11
  }
11
12
 
12
13
  export interface SfNavMenuLinkSlots {}
package/dist/lib.es.js CHANGED
@@ -2668,7 +2668,8 @@ const wt = (() => new $s())(), qs = /* @__PURE__ */ Qr('<svg xmlns="http://www.w
2668
2668
  props: {
2669
2669
  href: {},
2670
2670
  text: {},
2671
- icon: {}
2671
+ icon: {},
2672
+ exact: { type: Boolean }
2672
2673
  },
2673
2674
  setup(c) {
2674
2675
  const o = c, f = ln();
@@ -2683,12 +2684,12 @@ const wt = (() => new $s())(), qs = /* @__PURE__ */ Qr('<svg xmlns="http://www.w
2683
2684
  to: o.href,
2684
2685
  custom: ""
2685
2686
  }, {
2686
- default: an(({ href: M, navigate: h, isExactActive: K }) => [
2687
+ default: an(({ href: M, navigate: h, isExactActive: K, isActive: W }) => [
2687
2688
  q("a", {
2688
2689
  class: "sf-navmenulink",
2689
2690
  href: M,
2690
- "data-active": K,
2691
- onClick: (W) => y(W, h)
2691
+ "data-active": o.exact ? K : W,
2692
+ onClick: (Y) => y(Y, h)
2692
2693
  }, [
2693
2694
  o.icon ? (oe(), et(fn, {
2694
2695
  key: 0,