@luizleon/sf.prefeiturasp.vuecomponents 0.0.4 → 0.0.6
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/dist/components/content/Content.d.ts +35 -21
- package/dist/components/icon/Icon.d.ts +38 -39
- package/dist/components/internal/ScrollToTop.d.ts +7 -2
- package/dist/components/internal/ThemeToggle.d.ts +14 -2
- package/dist/components/layout/Layout.d.ts +44 -12
- package/dist/components/navmenulink/NavMenuLink.d.ts +34 -12
- package/dist/components/tabnavigation/TabNavigation.d.ts +42 -26
- package/dist/lib.es.js +8 -4
- package/dist/lib.es.js.map +1 -1
- package/dist/lib.umd.js +1 -1
- package/dist/lib.umd.js.map +1 -1
- package/dist/ts-helpers.d.ts +57 -0
- package/package.json +3 -3
- package/src/components/tabnavigation/TabNavigation.d.ts +6 -1
- package/src/components/tabnavigation/TabNavigation.vue +10 -7
- package/dist/components/internal/HeaderAvatar.d.ts +0 -2
|
@@ -1,21 +1,35 @@
|
|
|
1
|
-
import {
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
}
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
};
|
|
1
|
+
import { VNode } from "vue";
|
|
2
|
+
import { StyleValue } from "vue";
|
|
3
|
+
import {
|
|
4
|
+
ClassComponent,
|
|
5
|
+
GlobalComponentConstructor,
|
|
6
|
+
} from "../../ts-helpers";
|
|
7
|
+
|
|
8
|
+
export interface SfContentProps {
|
|
9
|
+
class?: any;
|
|
10
|
+
style?: StyleValue;
|
|
11
|
+
disableBodyPadding?: boolean;
|
|
12
|
+
disableHeaderPadding?: boolean;
|
|
13
|
+
disableFooterPadding?: boolean;
|
|
14
|
+
}
|
|
15
|
+
|
|
16
|
+
export interface SfContentSlots {
|
|
17
|
+
header: () => VNode[];
|
|
18
|
+
footer: () => VNode[];
|
|
19
|
+
}
|
|
20
|
+
|
|
21
|
+
export declare type SfContentEmits = {};
|
|
22
|
+
|
|
23
|
+
declare class SfContent extends ClassComponent<
|
|
24
|
+
SfContentProps,
|
|
25
|
+
SfContentSlots,
|
|
26
|
+
SfContentEmits
|
|
27
|
+
> {}
|
|
28
|
+
|
|
29
|
+
declare module "@vue/runtime-core" {
|
|
30
|
+
interface GlobalComponents {
|
|
31
|
+
SfContent: GlobalComponentConstructor<SfContent>;
|
|
32
|
+
}
|
|
33
|
+
}
|
|
34
|
+
|
|
35
|
+
export default SfContent;
|
|
@@ -1,39 +1,38 @@
|
|
|
1
|
-
import { Cor, Tamanho } from "../../enum";
|
|
2
|
-
import {
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
export
|
|
23
|
-
|
|
24
|
-
type
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
}
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
} & {};
|
|
1
|
+
import { Cor, Tamanho } from "../../enum";
|
|
2
|
+
import {
|
|
3
|
+
ClassComponent,
|
|
4
|
+
GlobalComponentConstructor,
|
|
5
|
+
} from "../../ts-helpers";
|
|
6
|
+
import { StyleValue, ButtonHTMLAttributes } from "vue";
|
|
7
|
+
|
|
8
|
+
export interface SfIconProps {
|
|
9
|
+
icone?: string;
|
|
10
|
+
visible?: boolean;
|
|
11
|
+
class?: any;
|
|
12
|
+
style?: StyleValue;
|
|
13
|
+
disabled?: boolean;
|
|
14
|
+
loading?: boolean;
|
|
15
|
+
button?: boolean;
|
|
16
|
+
tamanho?: Tamanho;
|
|
17
|
+
dot?: boolean;
|
|
18
|
+
dotColor?: Cor;
|
|
19
|
+
buttonProps?: ButtonHTMLAttributes;
|
|
20
|
+
}
|
|
21
|
+
|
|
22
|
+
export interface SfIconSlots {}
|
|
23
|
+
|
|
24
|
+
export declare type SfIconEmits = {};
|
|
25
|
+
|
|
26
|
+
declare class SfIcon extends ClassComponent<
|
|
27
|
+
SfIconProps,
|
|
28
|
+
SfIconSlots,
|
|
29
|
+
SfIconEmits
|
|
30
|
+
> {}
|
|
31
|
+
|
|
32
|
+
declare module "@vue/runtime-core" {
|
|
33
|
+
interface GlobalComponents {
|
|
34
|
+
SfIcon: GlobalComponentConstructor<SfIcon>;
|
|
35
|
+
}
|
|
36
|
+
}
|
|
37
|
+
|
|
38
|
+
export default SfIcon;
|
|
@@ -1,2 +1,7 @@
|
|
|
1
|
-
declare const
|
|
2
|
-
|
|
1
|
+
declare const _sfc_main: import("vue").DefineComponent<{}, {
|
|
2
|
+
visible: import("vue").Ref<boolean>;
|
|
3
|
+
id: string;
|
|
4
|
+
parent: HTMLElement | null;
|
|
5
|
+
ButtonClick: () => void;
|
|
6
|
+
}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{}>>, {}, {}>;
|
|
7
|
+
export default _sfc_main;
|
|
@@ -1,2 +1,14 @@
|
|
|
1
|
-
declare
|
|
2
|
-
|
|
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 {};
|
|
11
|
+
SetInitialTheme(): void;
|
|
12
|
+
};
|
|
13
|
+
}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{}>>, {}, {}>;
|
|
14
|
+
export default _sfc_main;
|
|
@@ -1,12 +1,44 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
export
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
1
|
+
import { VNode } from "vue";
|
|
2
|
+
import {
|
|
3
|
+
ClassComponent,
|
|
4
|
+
GlobalComponentConstructor,
|
|
5
|
+
} from "../ts-helpers";
|
|
6
|
+
|
|
7
|
+
export interface SfLayoutProps {}
|
|
8
|
+
|
|
9
|
+
export interface SfLayoutSlots {
|
|
10
|
+
/**
|
|
11
|
+
* Título ao lado do botão do menu
|
|
12
|
+
*/
|
|
13
|
+
title: () => VNode[];
|
|
14
|
+
/**
|
|
15
|
+
* Conteúdo para ficar no menu
|
|
16
|
+
*/
|
|
17
|
+
menu: () => VNode[];
|
|
18
|
+
/**
|
|
19
|
+
* Visível no footer da aplicação.
|
|
20
|
+
*/
|
|
21
|
+
"app-version": () => VNode[];
|
|
22
|
+
/**
|
|
23
|
+
* Conteúdo principal
|
|
24
|
+
*/
|
|
25
|
+
content: () => VNode[];
|
|
26
|
+
}
|
|
27
|
+
|
|
28
|
+
export declare type SfLayoutEmits = {
|
|
29
|
+
mounted: () => void;
|
|
30
|
+
};
|
|
31
|
+
|
|
32
|
+
declare class SfLayout extends ClassComponent<
|
|
33
|
+
SfLayoutProps,
|
|
34
|
+
SfLayoutSlots,
|
|
35
|
+
SfLayoutEmits
|
|
36
|
+
> {}
|
|
37
|
+
|
|
38
|
+
declare module "@vue/runtime-core" {
|
|
39
|
+
interface GlobalComponents {
|
|
40
|
+
SfLayout: GlobalComponentConstructor<SfLayout>;
|
|
41
|
+
}
|
|
42
|
+
}
|
|
43
|
+
|
|
44
|
+
export default SfLayout;
|
|
@@ -1,12 +1,34 @@
|
|
|
1
|
-
import {
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
}
|
|
1
|
+
import {
|
|
2
|
+
ClassComponent,
|
|
3
|
+
GlobalComponentConstructor,
|
|
4
|
+
} from "../../ts-helpers";
|
|
5
|
+
|
|
6
|
+
export interface SfNavMenuLinkProps {
|
|
7
|
+
href: string;
|
|
8
|
+
text: string;
|
|
9
|
+
icon?: string;
|
|
10
|
+
}
|
|
11
|
+
|
|
12
|
+
export interface SfNavMenuLinkSlots {}
|
|
13
|
+
|
|
14
|
+
export declare type SfNavMenuLinkEmits = {};
|
|
15
|
+
|
|
16
|
+
declare class SfNavMenuLink extends ClassComponent<
|
|
17
|
+
SfNavMenuLinkProps,
|
|
18
|
+
SfNavMenuLinkSlots,
|
|
19
|
+
SfNavMenuLinkEmits
|
|
20
|
+
> {}
|
|
21
|
+
|
|
22
|
+
declare module "@vue/runtime-core" {
|
|
23
|
+
interface GlobalComponents {
|
|
24
|
+
SfNavMenuLink: GlobalComponentConstructor<SfNavMenuLink>;
|
|
25
|
+
}
|
|
26
|
+
}
|
|
27
|
+
|
|
28
|
+
/**
|
|
29
|
+
* Componente para navegação no menu.
|
|
30
|
+
*
|
|
31
|
+
* Dependência: router-link.
|
|
32
|
+
* @see [https://router.vuejs.org/api/#router-link-s-v-slot](https://router.vuejs.org/api/#router-link-s-v-slot)
|
|
33
|
+
*/
|
|
34
|
+
export default SfNavMenuLink;
|
|
@@ -1,26 +1,42 @@
|
|
|
1
|
-
import {
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
type
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
1
|
+
import {
|
|
2
|
+
ClassComponent,
|
|
3
|
+
GlobalComponentConstructor,
|
|
4
|
+
} from "../../ts-helpers";
|
|
5
|
+
|
|
6
|
+
export interface SfTabNavigationTab {
|
|
7
|
+
text: string;
|
|
8
|
+
route: string;
|
|
9
|
+
}
|
|
10
|
+
|
|
11
|
+
export interface SfTabNavigationProps {
|
|
12
|
+
tabs: SfTabNavigationTab[];
|
|
13
|
+
}
|
|
14
|
+
|
|
15
|
+
export interface SfTabNavigationSlots {
|
|
16
|
+
item: (scope: {
|
|
17
|
+
navigate: () => void;
|
|
18
|
+
isActive: boolean;
|
|
19
|
+
}) => VNode[];
|
|
20
|
+
}
|
|
21
|
+
|
|
22
|
+
export declare type SfTabNavigationEmits = {};
|
|
23
|
+
|
|
24
|
+
declare class SfTabNavigation extends ClassComponent<
|
|
25
|
+
SfTabNavigationProps,
|
|
26
|
+
SfTabNavigationSlots,
|
|
27
|
+
SfTabNavigationEmits
|
|
28
|
+
> {}
|
|
29
|
+
|
|
30
|
+
declare module "@vue/runtime-core" {
|
|
31
|
+
interface GlobalComponents {
|
|
32
|
+
SfTabNavigation: GlobalComponentConstructor<SfTabNavigation>;
|
|
33
|
+
}
|
|
34
|
+
}
|
|
35
|
+
|
|
36
|
+
/**
|
|
37
|
+
* Componente para navegação em abas
|
|
38
|
+
*
|
|
39
|
+
* Dependência: router-link.
|
|
40
|
+
* @see [https://router.vuejs.org/api/#router-link-s-v-slot](https://router.vuejs.org/api/#router-link-s-v-slot)
|
|
41
|
+
*/
|
|
42
|
+
export default SfTabNavigation;
|
package/dist/lib.es.js
CHANGED
|
@@ -2752,10 +2752,14 @@ const ThemeToggleBase = (() => new ThemeToggle())(), _hoisted_1$3 = /* @__PURE__
|
|
|
2752
2752
|
return onMounted(() => {
|
|
2753
2753
|
u.value.addEventListener("scroll", h), f.observe(u.value);
|
|
2754
2754
|
}), onBeforeUnmount(() => {
|
|
2755
|
-
|
|
2756
|
-
|
|
2757
|
-
|
|
2758
|
-
|
|
2755
|
+
var x;
|
|
2756
|
+
try {
|
|
2757
|
+
(x = u.value) == null || x.removeEventListener(
|
|
2758
|
+
"scroll",
|
|
2759
|
+
h
|
|
2760
|
+
), f.unobserve(u.value), f.disconnect();
|
|
2761
|
+
} catch {
|
|
2762
|
+
}
|
|
2759
2763
|
}), (x, B) => {
|
|
2760
2764
|
const U = resolveComponent("RouterLink");
|
|
2761
2765
|
return openBlock(), createElementBlock("div", _hoisted_1, [
|