@luizleon/sf.prefeiturasp.vuecomponents 0.0.44 → 0.0.45
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/button/Button.d.ts +35 -3
- package/dist/components/content/Content.d.ts +8 -1
- package/dist/components/drawer/Drawer.d.ts +9 -1
- package/dist/components/icon/Icon.d.ts +26 -5
- package/dist/components/layout/Layout.d.ts +2 -0
- package/dist/components/message/Message.d.ts +10 -1
- package/dist/components/navmenulink/NavMenuLink.d.ts +7 -1
- package/dist/components/tabnavigation/TabNavigation.d.ts +8 -2
- package/dist/components/tooltip/Tooltip.d.ts +21 -0
- package/dist/index.d.ts +2 -1
- package/dist/sf.prefeiturasp.vuecomponents.es.js +1813 -1747
- package/dist/sf.prefeiturasp.vuecomponents.es.js.map +1 -1
- package/dist/sf.prefeiturasp.vuecomponents.umd.js +39 -39
- package/dist/sf.prefeiturasp.vuecomponents.umd.js.map +1 -1
- package/dist/style.css +1 -1
- package/package.json +3 -4
- package/src/components/button/Button.d.ts +1 -32
- package/src/components/button/Button.vue +44 -2
- package/src/components/content/Content.d.ts +0 -8
- package/src/components/content/Content.vue +9 -1
- package/src/components/drawer/Drawer.d.ts +1 -9
- package/src/components/drawer/Drawer.vue +11 -3
- package/src/components/icon/Icon.d.ts +1 -30
- package/src/components/icon/Icon.vue +64 -27
- package/src/components/layout/Layout.d.ts +1 -2
- package/src/components/layout/Layout.vue +6 -1
- package/src/components/message/Message.d.ts +1 -18
- package/src/components/message/Message.vue +19 -2
- package/src/components/navmenulink/NavMenuLink.d.ts +1 -7
- package/src/components/navmenulink/NavMenuLink.vue +10 -2
- package/src/components/tabnavigation/TabNavigation.d.ts +1 -9
- package/src/components/tabnavigation/TabNavigation.vue +9 -1
- package/src/components/tooltip/Tooltip.d.ts +23 -0
- package/src/components/tooltip/Tooltip.vue +91 -0
- package/src/index.ts +2 -0
- package/src/style/src/_mixins.scss +5 -0
- package/src/style/src/components/_icon.scss +7 -0
- package/src/style/src/components/_message.scss +1 -1
- package/src/style/src/components/_tooltip.scss +11 -12
- package/vite.config.js +1 -2
|
@@ -1,4 +1,36 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { StyleValue } from "vue";
|
|
2
|
+
export interface SfButtonProps {
|
|
3
|
+
icon?: string;
|
|
4
|
+
/**
|
|
5
|
+
* @default true
|
|
6
|
+
*/
|
|
7
|
+
visible?: boolean;
|
|
8
|
+
class?: any;
|
|
9
|
+
style?: StyleValue;
|
|
10
|
+
disabled?: boolean;
|
|
11
|
+
loading?: boolean;
|
|
12
|
+
/**
|
|
13
|
+
* @default 'primary'
|
|
14
|
+
*/
|
|
15
|
+
color?: "primary" | "secondary" | "info" | "success" | "help" | "warn" | "error" | undefined;
|
|
16
|
+
/**
|
|
17
|
+
* @default 'md'
|
|
18
|
+
*/
|
|
19
|
+
size?: "sm" | "md" | "lg" | undefined;
|
|
20
|
+
/**
|
|
21
|
+
* @default 'filled'
|
|
22
|
+
*/
|
|
23
|
+
variant?: "filled" | "outlined" | "text" | undefined;
|
|
24
|
+
autofocus?: boolean;
|
|
25
|
+
form?: string;
|
|
26
|
+
name?: string;
|
|
27
|
+
id?: string;
|
|
28
|
+
/**
|
|
29
|
+
* @default 'button'
|
|
30
|
+
*/
|
|
31
|
+
type?: "submit" | "reset" | "button";
|
|
32
|
+
value?: string | string[] | number;
|
|
33
|
+
}
|
|
2
34
|
declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<SfButtonProps>, {
|
|
3
35
|
visible: boolean;
|
|
4
36
|
color: string;
|
|
@@ -12,10 +44,10 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<__
|
|
|
12
44
|
type: string;
|
|
13
45
|
variant: string;
|
|
14
46
|
}>>>, {
|
|
15
|
-
|
|
47
|
+
size: "sm" | "md" | "lg";
|
|
16
48
|
type: "button" | "submit" | "reset";
|
|
49
|
+
visible: boolean;
|
|
17
50
|
color: "primary" | "secondary" | "info" | "success" | "help" | "warn" | "error";
|
|
18
|
-
size: "sm" | "md" | "lg";
|
|
19
51
|
variant: "text" | "filled" | "outlined";
|
|
20
52
|
}, {}>, {
|
|
21
53
|
default?(_: {}): any;
|
|
@@ -1,4 +1,11 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { StyleValue } from "vue";
|
|
2
|
+
export interface SfContentProps {
|
|
3
|
+
class?: any;
|
|
4
|
+
style?: StyleValue;
|
|
5
|
+
disableBodyPadding?: boolean;
|
|
6
|
+
disableHeaderPadding?: boolean;
|
|
7
|
+
disableFooterPadding?: boolean;
|
|
8
|
+
}
|
|
2
9
|
declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<__VLS_TypePropsToRuntimeProps<SfContentProps>, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<__VLS_TypePropsToRuntimeProps<SfContentProps>>>, {}, {}>, {
|
|
3
10
|
header?(_: {}): any;
|
|
4
11
|
default?(_: {}): any;
|
|
@@ -1,4 +1,12 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { StyleValue } from "vue";
|
|
2
|
+
export interface SfDrawerProps {
|
|
3
|
+
visible: boolean;
|
|
4
|
+
/**
|
|
5
|
+
* @default 'left'
|
|
6
|
+
*/
|
|
7
|
+
position?: "left" | "right" | "bottom" | "full";
|
|
8
|
+
style?: StyleValue;
|
|
9
|
+
}
|
|
2
10
|
declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<SfDrawerProps>, {
|
|
3
11
|
visible: boolean;
|
|
4
12
|
position: string;
|
|
@@ -1,21 +1,42 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { ButtonHTMLAttributes, StyleValue } from "vue";
|
|
2
|
+
export interface SfIconProps {
|
|
3
|
+
icon?: string;
|
|
4
|
+
visible?: boolean;
|
|
5
|
+
class?: any;
|
|
6
|
+
style?: StyleValue;
|
|
7
|
+
disabled?: boolean;
|
|
8
|
+
loading?: boolean;
|
|
9
|
+
button?: boolean;
|
|
10
|
+
/**
|
|
11
|
+
* @default 'md'
|
|
12
|
+
*/
|
|
13
|
+
size?: "sm" | "md" | "lg" | undefined;
|
|
14
|
+
dot?: boolean;
|
|
15
|
+
/**
|
|
16
|
+
* @default 'error'
|
|
17
|
+
*/
|
|
18
|
+
dotColor?: "primary" | "secondary" | "info" | "success" | "help" | "warn" | "error" | undefined;
|
|
19
|
+
filled?: boolean;
|
|
20
|
+
buttonProps?: ButtonHTMLAttributes;
|
|
21
|
+
tooltip?: string;
|
|
22
|
+
}
|
|
2
23
|
declare const _default: import("vue").DefineComponent<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<SfIconProps>, {
|
|
3
24
|
visible: boolean;
|
|
4
25
|
class: string;
|
|
5
26
|
style: string;
|
|
6
|
-
|
|
27
|
+
size: string;
|
|
7
28
|
dotColor: string;
|
|
8
29
|
}>, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<SfIconProps>, {
|
|
9
30
|
visible: boolean;
|
|
10
31
|
class: string;
|
|
11
32
|
style: string;
|
|
12
|
-
|
|
33
|
+
size: string;
|
|
13
34
|
dotColor: string;
|
|
14
35
|
}>>>, {
|
|
15
|
-
style:
|
|
36
|
+
style: StyleValue;
|
|
16
37
|
class: any;
|
|
38
|
+
size: "sm" | "md" | "lg";
|
|
17
39
|
visible: boolean;
|
|
18
|
-
tamanho: "sm" | "md" | "lg";
|
|
19
40
|
dotColor: "primary" | "secondary" | "info" | "success" | "help" | "warn" | "error";
|
|
20
41
|
}, {}>;
|
|
21
42
|
export default _default;
|
|
@@ -1,4 +1,13 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { StyleValue } from "vue";
|
|
2
|
+
export interface SfMessageProps {
|
|
3
|
+
/**
|
|
4
|
+
* @default 'info'
|
|
5
|
+
*/
|
|
6
|
+
color?: "primary" | "secondary" | "info" | "success" | "help" | "warn" | "error" | undefined;
|
|
7
|
+
class?: any;
|
|
8
|
+
style?: StyleValue;
|
|
9
|
+
icon?: string;
|
|
10
|
+
}
|
|
2
11
|
declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<SfMessageProps>, {
|
|
3
12
|
color: string;
|
|
4
13
|
}>, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<SfMessageProps>, {
|
|
@@ -1,4 +1,10 @@
|
|
|
1
|
-
|
|
1
|
+
export interface SfNavMenuLinkProps {
|
|
2
|
+
href: string;
|
|
3
|
+
text: string;
|
|
4
|
+
icon?: string;
|
|
5
|
+
iconFilled?: boolean;
|
|
6
|
+
exact?: boolean;
|
|
7
|
+
}
|
|
2
8
|
declare const _default: import("vue").DefineComponent<__VLS_TypePropsToRuntimeProps<SfNavMenuLinkProps>, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<__VLS_TypePropsToRuntimeProps<SfNavMenuLinkProps>>>, {}, {}>;
|
|
3
9
|
export default _default;
|
|
4
10
|
type __VLS_NonUndefinedable<T> = T extends undefined ? never : T;
|
|
@@ -1,7 +1,13 @@
|
|
|
1
|
-
|
|
1
|
+
export interface SfTabNavigationTab {
|
|
2
|
+
text: string;
|
|
3
|
+
route: string;
|
|
4
|
+
}
|
|
5
|
+
export interface SfTabNavigationProps {
|
|
6
|
+
tabs: SfTabNavigationTab[];
|
|
7
|
+
}
|
|
2
8
|
declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<__VLS_TypePropsToRuntimeProps<SfTabNavigationProps>, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<__VLS_TypePropsToRuntimeProps<SfTabNavigationProps>>>, {}, {}>, {
|
|
3
9
|
item?(_: {
|
|
4
|
-
item:
|
|
10
|
+
item: SfTabNavigationTab;
|
|
5
11
|
navigate: any;
|
|
6
12
|
isActive: any;
|
|
7
13
|
}): any;
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
export interface SfTooltipProps {
|
|
2
|
+
text: string;
|
|
3
|
+
}
|
|
4
|
+
declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<__VLS_TypePropsToRuntimeProps<SfTooltipProps>, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<__VLS_TypePropsToRuntimeProps<SfTooltipProps>>>, {}, {}>, {
|
|
5
|
+
default?(_: {}): any;
|
|
6
|
+
}>;
|
|
7
|
+
export default _default;
|
|
8
|
+
type __VLS_NonUndefinedable<T> = T extends undefined ? never : T;
|
|
9
|
+
type __VLS_TypePropsToRuntimeProps<T> = {
|
|
10
|
+
[K in keyof T]-?: {} extends Pick<T, K> ? {
|
|
11
|
+
type: import('vue').PropType<__VLS_NonUndefinedable<T[K]>>;
|
|
12
|
+
} : {
|
|
13
|
+
type: import('vue').PropType<T[K]>;
|
|
14
|
+
required: true;
|
|
15
|
+
};
|
|
16
|
+
};
|
|
17
|
+
type __VLS_WithTemplateSlots<T, S> = T & {
|
|
18
|
+
new (): {
|
|
19
|
+
$slots: S;
|
|
20
|
+
};
|
|
21
|
+
};
|
package/dist/index.d.ts
CHANGED
|
@@ -6,10 +6,11 @@ import SfTabNavigation from "./components/tabnavigation/TabNavigation";
|
|
|
6
6
|
import SfButton from "./components/button/Button";
|
|
7
7
|
import SfDrawer from "./components/drawer/Drawer";
|
|
8
8
|
import SfMessage from "./components/message/Message";
|
|
9
|
+
import SfTooltip from "./components/tooltip/Tooltip";
|
|
9
10
|
import { UseNavMenuService } from "./services/navMenuService";
|
|
10
11
|
import { UseAlertService, UseConfirmService } from "./services/dialogService";
|
|
11
12
|
import { UseAuthService } from "./services/authService";
|
|
12
13
|
import { AppResult } from "./common/appResult";
|
|
13
14
|
import "./style/componentes.scss";
|
|
14
15
|
import { AxiosClient, UseAxiosClient } from "./axios/axiosClient";
|
|
15
|
-
export { SfLayout, SfIcon, SfNavMenuLink, SfContent, SfTabNavigation, SfButton, SfDrawer, SfMessage, UseAuthService, UseNavMenuService, UseConfirmService, UseAlertService, UseAxiosClient, AppResult, AxiosClient, };
|
|
16
|
+
export { SfLayout, SfIcon, SfNavMenuLink, SfContent, SfTabNavigation, SfButton, SfDrawer, SfMessage, SfTooltip, UseAuthService, UseNavMenuService, UseConfirmService, UseAlertService, UseAxiosClient, AppResult, AxiosClient, };
|