@luizleon/sf.prefeiturasp.vuecomponents 0.0.3 → 0.0.5
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 +11 -12
- 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 +37 -26
- package/dist/lib.es.js +1 -0
- package/dist/lib.es.js.map +1 -0
- package/dist/lib.umd.js +1 -0
- package/dist/lib.umd.js.map +1 -0
- package/dist/ts-helpers.d.ts +57 -0
- package/package.json +3 -3
- package/tsconfig.json +1 -1
- package/vite.config.js +1 -0
- 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,12 +1,11 @@
|
|
|
1
|
-
declare
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
export default _default;
|
|
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;
|
|
@@ -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,37 @@
|
|
|
1
|
-
import {
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
1
|
+
import {
|
|
2
|
+
ClassComponent,
|
|
3
|
+
GlobalComponentConstructor,
|
|
4
|
+
} from "../../ts-helpers";
|
|
5
|
+
|
|
6
|
+
export interface SfTabNavigationProps {
|
|
7
|
+
tabs: { text: string; route: string }[];
|
|
8
|
+
}
|
|
9
|
+
|
|
10
|
+
export interface SfTabNavigationSlots {
|
|
11
|
+
item: (scope: {
|
|
12
|
+
navigate: () => void;
|
|
13
|
+
isActive: boolean;
|
|
14
|
+
}) => VNode[];
|
|
15
|
+
}
|
|
16
|
+
|
|
17
|
+
export declare type SfTabNavigationEmits = {};
|
|
18
|
+
|
|
19
|
+
declare class SfTabNavigation extends ClassComponent<
|
|
20
|
+
SfTabNavigationProps,
|
|
21
|
+
SfTabNavigationSlots,
|
|
22
|
+
SfTabNavigationEmits
|
|
23
|
+
> {}
|
|
24
|
+
|
|
25
|
+
declare module "@vue/runtime-core" {
|
|
26
|
+
interface GlobalComponents {
|
|
27
|
+
SfTabNavigation: GlobalComponentConstructor<SfTabNavigation>;
|
|
28
|
+
}
|
|
29
|
+
}
|
|
30
|
+
|
|
31
|
+
/**
|
|
32
|
+
* Componente para navegação em abas
|
|
33
|
+
*
|
|
34
|
+
* Dependência: router-link.
|
|
35
|
+
* @see [https://router.vuejs.org/api/#router-link-s-v-slot](https://router.vuejs.org/api/#router-link-s-v-slot)
|
|
36
|
+
*/
|
|
37
|
+
export default SfTabNavigation;
|
package/dist/lib.es.js
CHANGED