@luizleon/sf.prefeiturasp.vuecomponents 4.0.1 → 4.0.3
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/{src/axios → axios}/axiosClient.d.ts +3 -3
- package/dist/{src/components/button/Button.vue.d.ts → components/button/Button.d.ts} +3 -3
- package/dist/{src/components/content/Content.vue.d.ts → components/content/Content.d.ts} +2 -2
- package/dist/{src/components/drawer/Drawer.vue.d.ts → components/drawer/Drawer.d.ts} +4 -4
- package/dist/{src/components/icon/Icon.vue.d.ts → components/icon/Icon.d.ts} +4 -4
- package/dist/components/internal/HeaderAvatar.d.ts +6 -0
- package/dist/components/internal/LoadingCircle.d.ts +2 -0
- package/dist/components/internal/MenuIcon.d.ts +2 -0
- package/dist/components/internal/ScrollToTop.d.ts +2 -0
- package/dist/components/internal/ThemeToggle.d.ts +2 -0
- package/dist/components/layout/Layout.d.ts +19 -0
- package/dist/{src/components/message/Message.vue.d.ts → components/message/Message.d.ts} +3 -3
- package/dist/components/navmenu/NavMenu.d.ts +15 -0
- package/dist/{src/components/tabnavigation/TabNavigation.vue.d.ts → components/tabnavigation/TabNavigation.d.ts} +1 -1
- package/dist/{src/components/tooltip/Tooltip.vue.d.ts → components/tooltip/Tooltip.d.ts} +1 -1
- package/dist/index.d.ts +16 -0
- package/dist/{src/services → services}/authService.d.ts +2 -2
- package/dist/{src/services → services}/dialogService.d.ts +1 -1
- package/dist/sf.prefeiturasp.vuecomponents.cjs.map +1 -1
- package/dist/sf.prefeiturasp.vuecomponents.js.map +1 -1
- package/dist/sf.prefeiturasp.vuecomponents.umd.cjs.map +1 -1
- package/dist/{src/types → types}/index.d.ts +1 -1
- package/package.json +7 -6
- package/dist/src/components/internal/HeaderAvatar.vue.d.ts +0 -6
- package/dist/src/components/internal/LoadingCircle.vue.d.ts +0 -2
- package/dist/src/components/internal/MenuIcon.vue.d.ts +0 -2
- package/dist/src/components/internal/ScrollToTop.vue.d.ts +0 -2
- package/dist/src/components/internal/ThemeToggle.d.ts +0 -10
- package/dist/src/components/internal/ThemeToggle.vue.d.ts +0 -2
- package/dist/src/components/layout/Layout.vue.d.ts +0 -27
- package/dist/src/components/navmenu/NavMenu.vue.d.ts +0 -15
- package/dist/src/index.d.ts +0 -17
- package/dist/tsconfig.tsbuildinfo +0 -1
- package/src/axios/axiosClient.ts +0 -207
- package/src/common/appResult.ts +0 -34
- package/src/components/button/Button.vue +0 -104
- package/src/components/content/Content.vue +0 -49
- package/src/components/drawer/Drawer.vue +0 -146
- package/src/components/icon/Icon.vue +0 -96
- package/src/components/internal/HeaderAvatar.vue +0 -73
- package/src/components/internal/LoadingCircle.vue +0 -16
- package/src/components/internal/MenuIcon.vue +0 -13
- package/src/components/internal/ScrollToTop.vue +0 -26
- package/src/components/internal/ThemeToggle.ts +0 -41
- package/src/components/internal/ThemeToggle.vue +0 -23
- package/src/components/internal/cssClassBuilder.ts +0 -44
- package/src/components/internal/getMaxZindex.ts +0 -15
- package/src/components/layout/Layout.vue +0 -67
- package/src/components/message/Message.vue +0 -65
- package/src/components/navmenu/NavMenu.vue +0 -109
- package/src/components/tabnavigation/TabNavigation.vue +0 -125
- package/src/components/tooltip/Tooltip.vue +0 -91
- package/src/index.ts +0 -53
- package/src/keycloak.js +0 -1731
- package/src/services/authService.ts +0 -118
- package/src/services/dialogService.ts +0 -109
- package/src/services/navMenuService.ts +0 -21
- package/src/style/componentes.scss +0 -20
- package/src/style/src/_functions.scss +0 -19
- package/src/style/src/_mixins.scss +0 -193
- package/src/style/src/_variables.scss +0 -12
- package/src/style/src/components/_button.scss +0 -104
- package/src/style/src/components/_content.scss +0 -57
- package/src/style/src/components/_drawer.scss +0 -89
- package/src/style/src/components/_headerAvatar.scss +0 -22
- package/src/style/src/components/_icon.scss +0 -119
- package/src/style/src/components/_layout.scss +0 -160
- package/src/style/src/components/_loading-circle.scss +0 -24
- package/src/style/src/components/_mask.scss +0 -35
- package/src/style/src/components/_message.scss +0 -47
- package/src/style/src/components/_navmenulink.scss +0 -31
- package/src/style/src/components/_scrollToTop.scss +0 -28
- package/src/style/src/components/_svg_icon.scss +0 -5
- package/src/style/src/components/_tab-navigation.scss +0 -93
- package/src/style/src/components/_themetoggle.scss +0 -52
- package/src/style/src/components/_tooltip.scss +0 -53
- package/src/style/src/sweetalert/_sweetalert.scss +0 -9
- package/src/style/src/sweetalert/scss/_animations.scss +0 -197
- package/src/style/src/sweetalert/scss/_body.scss +0 -45
- package/src/style/src/sweetalert/scss/_core.scss +0 -862
- package/src/style/src/sweetalert/scss/_mixins.scss +0 -16
- package/src/style/src/sweetalert/scss/_theming.scss +0 -8
- package/src/style/src/sweetalert/scss/_toasts-animations.scss +0 -83
- package/src/style/src/sweetalert/scss/_toasts-body.scss +0 -85
- package/src/style/src/sweetalert/scss/_toasts.scss +0 -203
- package/src/style/src/sweetalert/scss/_variables.scss +0 -271
- package/src/types/index.ts +0 -59
- package/src/vite-env.d.ts +0 -1
- package/tsconfig.json +0 -22
- package/vite.config.js +0 -28
- /package/dist/{src/common → common}/appResult.d.ts +0 -0
- /package/dist/{src/components → components}/internal/cssClassBuilder.d.ts +0 -0
- /package/dist/{src/components → components}/internal/getMaxZindex.d.ts +0 -0
- /package/{src → dist}/keycloak.d.ts +0 -0
- /package/dist/{src/services → services}/navMenuService.d.ts +0 -0
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { AxiosInstance, AxiosResponse } from
|
|
2
|
-
import { AppResult } from
|
|
3
|
-
import Keycloak from
|
|
1
|
+
import { AxiosInstance, AxiosResponse } from 'axios';
|
|
2
|
+
import { AppResult } from '../common/appResult';
|
|
3
|
+
import { default as Keycloak } from '../keycloak';
|
|
4
4
|
declare class AxiosClient {
|
|
5
5
|
constructor(keycloak: Keycloak, baseUrl: string);
|
|
6
6
|
keycloak: Keycloak;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { StyleValue } from
|
|
1
|
+
import { StyleValue } from 'vue';
|
|
2
2
|
export interface SfButtonProps {
|
|
3
3
|
icon?: string;
|
|
4
4
|
/**
|
|
@@ -31,13 +31,13 @@ export interface SfButtonProps {
|
|
|
31
31
|
type?: "submit" | "reset" | "button";
|
|
32
32
|
value?: string | string[] | number;
|
|
33
33
|
}
|
|
34
|
-
declare const _default: __VLS_WithTemplateSlots<import(
|
|
34
|
+
declare const _default: __VLS_WithTemplateSlots<import('vue').DefineComponent<__VLS_WithDefaults<__VLS_TypePropsToOption<SfButtonProps>, {
|
|
35
35
|
visible: boolean;
|
|
36
36
|
color: string;
|
|
37
37
|
size: string;
|
|
38
38
|
type: string;
|
|
39
39
|
variant: string;
|
|
40
|
-
}>, {}, unknown, {}, {}, import(
|
|
40
|
+
}>, {}, unknown, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').VNodeProps & import('vue').AllowedComponentProps & import('vue').ComponentCustomProps, Readonly<import('vue').ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToOption<SfButtonProps>, {
|
|
41
41
|
visible: boolean;
|
|
42
42
|
color: string;
|
|
43
43
|
size: string;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { StyleValue } from
|
|
1
|
+
import { StyleValue } from 'vue';
|
|
2
2
|
export interface SfContentProps {
|
|
3
3
|
class?: any;
|
|
4
4
|
style?: StyleValue;
|
|
@@ -6,7 +6,7 @@ export interface SfContentProps {
|
|
|
6
6
|
disableHeaderPadding?: boolean;
|
|
7
7
|
disableFooterPadding?: boolean;
|
|
8
8
|
}
|
|
9
|
-
declare const _default: __VLS_WithTemplateSlots<import(
|
|
9
|
+
declare const _default: __VLS_WithTemplateSlots<import('vue').DefineComponent<__VLS_TypePropsToOption<SfContentProps>, {}, unknown, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').VNodeProps & import('vue').AllowedComponentProps & import('vue').ComponentCustomProps, Readonly<import('vue').ExtractPropTypes<__VLS_TypePropsToOption<SfContentProps>>>, {}, {}>, {
|
|
10
10
|
header?(_: {}): any;
|
|
11
11
|
default?(_: {}): any;
|
|
12
12
|
footer?(_: {}): any;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { StyleValue } from
|
|
1
|
+
import { StyleValue } from 'vue';
|
|
2
2
|
export interface SfDrawerProps {
|
|
3
3
|
visible: boolean;
|
|
4
4
|
/**
|
|
@@ -7,14 +7,14 @@ export interface SfDrawerProps {
|
|
|
7
7
|
position?: "left" | "right" | "bottom" | "full";
|
|
8
8
|
style?: StyleValue;
|
|
9
9
|
}
|
|
10
|
-
declare const _default: __VLS_WithTemplateSlots<import(
|
|
10
|
+
declare const _default: __VLS_WithTemplateSlots<import('vue').DefineComponent<__VLS_WithDefaults<__VLS_TypePropsToOption<SfDrawerProps>, {
|
|
11
11
|
visible: boolean;
|
|
12
12
|
position: string;
|
|
13
|
-
}>, {}, unknown, {}, {}, import(
|
|
13
|
+
}>, {}, unknown, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
|
|
14
14
|
"update:visible": (v: boolean) => void;
|
|
15
15
|
open: () => void;
|
|
16
16
|
"before-close": () => void;
|
|
17
|
-
}, string, import(
|
|
17
|
+
}, string, import('vue').VNodeProps & import('vue').AllowedComponentProps & import('vue').ComponentCustomProps, Readonly<import('vue').ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToOption<SfDrawerProps>, {
|
|
18
18
|
visible: boolean;
|
|
19
19
|
position: string;
|
|
20
20
|
}>>> & {
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { ButtonHTMLAttributes, StyleValue } from
|
|
2
|
-
import { Color, IconSize } from
|
|
1
|
+
import { ButtonHTMLAttributes, StyleValue } from 'vue';
|
|
2
|
+
import { Color, IconSize } from '../../types';
|
|
3
3
|
export interface SfIconProps {
|
|
4
4
|
icon?: string;
|
|
5
5
|
visible?: boolean;
|
|
@@ -16,14 +16,14 @@ export interface SfIconProps {
|
|
|
16
16
|
tooltip?: string;
|
|
17
17
|
color?: Color | "inherit";
|
|
18
18
|
}
|
|
19
|
-
declare const _default: import(
|
|
19
|
+
declare const _default: import('vue').DefineComponent<__VLS_WithDefaults<__VLS_TypePropsToOption<SfIconProps>, {
|
|
20
20
|
visible: boolean;
|
|
21
21
|
class: string;
|
|
22
22
|
style: string;
|
|
23
23
|
size: string;
|
|
24
24
|
dotColor: string;
|
|
25
25
|
color: string;
|
|
26
|
-
}>, {}, unknown, {}, {}, import(
|
|
26
|
+
}>, {}, unknown, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').VNodeProps & import('vue').AllowedComponentProps & import('vue').ComponentCustomProps, Readonly<import('vue').ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToOption<SfIconProps>, {
|
|
27
27
|
visible: boolean;
|
|
28
28
|
class: string;
|
|
29
29
|
style: string;
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
declare const _default: import('vue').DefineComponent<{}, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
|
|
2
|
+
logout: () => void;
|
|
3
|
+
}, string, import('vue').VNodeProps & import('vue').AllowedComponentProps & import('vue').ComponentCustomProps, Readonly<import('vue').ExtractPropTypes<{}>> & {
|
|
4
|
+
onLogout?: (() => any) | undefined;
|
|
5
|
+
}, {}, {}>;
|
|
6
|
+
export default _default;
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
declare const _default: import('vue').DefineComponent<{}, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').VNodeProps & import('vue').AllowedComponentProps & import('vue').ComponentCustomProps, Readonly<import('vue').ExtractPropTypes<{}>>, {}, {}>;
|
|
2
|
+
export default _default;
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
declare const _default: import('vue').DefineComponent<{}, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').VNodeProps & import('vue').AllowedComponentProps & import('vue').ComponentCustomProps, Readonly<import('vue').ExtractPropTypes<{}>>, {}, {}>;
|
|
2
|
+
export default _default;
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
declare const _default: import('vue').DefineComponent<{}, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').VNodeProps & import('vue').AllowedComponentProps & import('vue').ComponentCustomProps, Readonly<import('vue').ExtractPropTypes<{}>>, {}, {}>;
|
|
2
|
+
export default _default;
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
declare const _default: import('vue').DefineComponent<{}, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').VNodeProps & import('vue').AllowedComponentProps & import('vue').ComponentCustomProps, Readonly<import('vue').ExtractPropTypes<{}>>, {}, {}>;
|
|
2
|
+
export default _default;
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
declare const _default: __VLS_WithTemplateSlots<import('vue').DefineComponent<{}, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
|
|
2
|
+
mounted: () => void;
|
|
3
|
+
logout: () => void;
|
|
4
|
+
}, string, import('vue').VNodeProps & import('vue').AllowedComponentProps & import('vue').ComponentCustomProps, Readonly<import('vue').ExtractPropTypes<{}>> & {
|
|
5
|
+
onLogout?: (() => any) | undefined;
|
|
6
|
+
onMounted?: (() => any) | undefined;
|
|
7
|
+
}, {}, {}>, {
|
|
8
|
+
title?(_: {}): any;
|
|
9
|
+
action?(_: {}): any;
|
|
10
|
+
menu?(_: {}): any;
|
|
11
|
+
content?(_: {}): any;
|
|
12
|
+
}>;
|
|
13
|
+
export default _default;
|
|
14
|
+
|
|
15
|
+
type __VLS_WithTemplateSlots<T, S> = T & {
|
|
16
|
+
new (): {
|
|
17
|
+
$slots: S;
|
|
18
|
+
};
|
|
19
|
+
};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { StyleValue } from
|
|
1
|
+
import { StyleValue } from 'vue';
|
|
2
2
|
export interface SfMessageProps {
|
|
3
3
|
/**
|
|
4
4
|
* @default 'info'
|
|
@@ -8,9 +8,9 @@ export interface SfMessageProps {
|
|
|
8
8
|
style?: StyleValue;
|
|
9
9
|
icon?: string;
|
|
10
10
|
}
|
|
11
|
-
declare const _default: __VLS_WithTemplateSlots<import(
|
|
11
|
+
declare const _default: __VLS_WithTemplateSlots<import('vue').DefineComponent<__VLS_WithDefaults<__VLS_TypePropsToOption<SfMessageProps>, {
|
|
12
12
|
color: string;
|
|
13
|
-
}>, {}, unknown, {}, {}, import(
|
|
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_TypePropsToOption<SfMessageProps>, {
|
|
14
14
|
color: string;
|
|
15
15
|
}>>>, {
|
|
16
16
|
color: "primary" | "secondary" | "info" | "success" | "help" | "warn" | "error";
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import { SfNavMenuItem } from './../../types';
|
|
2
|
+
export interface SfNavMenuProps {
|
|
3
|
+
items: SfNavMenuItem[];
|
|
4
|
+
}
|
|
5
|
+
declare const _default: import('vue').DefineComponent<__VLS_TypePropsToOption<SfNavMenuProps>, {}, unknown, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').VNodeProps & import('vue').AllowedComponentProps & import('vue').ComponentCustomProps, Readonly<import('vue').ExtractPropTypes<__VLS_TypePropsToOption<SfNavMenuProps>>>, {}, {}>;
|
|
6
|
+
export default _default;
|
|
7
|
+
type __VLS_NonUndefinedable<T> = T extends undefined ? never : T;
|
|
8
|
+
type __VLS_TypePropsToOption<T> = {
|
|
9
|
+
[K in keyof T]-?: {} extends Pick<T, K> ? {
|
|
10
|
+
type: import('vue').PropType<__VLS_NonUndefinedable<T[K]>>;
|
|
11
|
+
} : {
|
|
12
|
+
type: import('vue').PropType<T[K]>;
|
|
13
|
+
required: true;
|
|
14
|
+
};
|
|
15
|
+
};
|
|
@@ -5,7 +5,7 @@ export interface SfTabNavigationTab {
|
|
|
5
5
|
export interface SfTabNavigationProps {
|
|
6
6
|
tabs: SfTabNavigationTab[];
|
|
7
7
|
}
|
|
8
|
-
declare const _default: __VLS_WithTemplateSlots<import(
|
|
8
|
+
declare const _default: __VLS_WithTemplateSlots<import('vue').DefineComponent<__VLS_TypePropsToOption<SfTabNavigationProps>, {}, unknown, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').VNodeProps & import('vue').AllowedComponentProps & import('vue').ComponentCustomProps, Readonly<import('vue').ExtractPropTypes<__VLS_TypePropsToOption<SfTabNavigationProps>>>, {}, {}>, {
|
|
9
9
|
item?(_: {
|
|
10
10
|
item: SfTabNavigationTab;
|
|
11
11
|
navigate: any;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
export interface SfTooltipProps {
|
|
2
2
|
text: string;
|
|
3
3
|
}
|
|
4
|
-
declare const _default: __VLS_WithTemplateSlots<import(
|
|
4
|
+
declare const _default: __VLS_WithTemplateSlots<import('vue').DefineComponent<__VLS_TypePropsToOption<SfTooltipProps>, {}, unknown, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').VNodeProps & import('vue').AllowedComponentProps & import('vue').ComponentCustomProps, Readonly<import('vue').ExtractPropTypes<__VLS_TypePropsToOption<SfTooltipProps>>>, {}, {}>, {
|
|
5
5
|
default?(_: {}): any;
|
|
6
6
|
}>;
|
|
7
7
|
export default _default;
|
package/dist/index.d.ts
ADDED
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import { default as SfLayout } from './components/layout/Layout';
|
|
2
|
+
import { default as SfIcon } from './components/icon/Icon';
|
|
3
|
+
import { default as SfContent } from './components/content/Content';
|
|
4
|
+
import { default as SfTabNavigation } from './components/tabnavigation/TabNavigation';
|
|
5
|
+
import { default as SfButton } from './components/button/Button';
|
|
6
|
+
import { default as SfDrawer } from './components/drawer/Drawer';
|
|
7
|
+
import { default as SfMessage } from './components/message/Message';
|
|
8
|
+
import { default as SfTooltip } from './components/tooltip/Tooltip';
|
|
9
|
+
import { default as SfNavMenu } from './components/navmenu/NavMenu';
|
|
10
|
+
import { UseNavMenuService } from './services/navMenuService';
|
|
11
|
+
import { UseAlertService, UseConfirmService } from './services/dialogService';
|
|
12
|
+
import { StartAuthService, UseAuthService } from './services/authService';
|
|
13
|
+
import { AppResult } from './common/appResult';
|
|
14
|
+
import { AxiosClient, UseAxiosClient } from './axios/axiosClient';
|
|
15
|
+
export { SfLayout, SfIcon, SfContent, SfTabNavigation, SfButton, SfDrawer, SfMessage, SfTooltip, SfNavMenu, StartAuthService, UseAuthService, UseNavMenuService, UseConfirmService, UseAlertService, UseAxiosClient, AppResult, AxiosClient, };
|
|
16
|
+
export * from './types';
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { IAuthService } from
|
|
2
|
-
import { KeycloakConfig } from
|
|
1
|
+
import { IAuthService } from '../types';
|
|
2
|
+
import { KeycloakConfig } from './../keycloak';
|
|
3
3
|
declare const UseAuthService: () => IAuthService;
|
|
4
4
|
declare const StartAuthService: (config: KeycloakConfig) => IAuthService;
|
|
5
5
|
export { StartAuthService, UseAuthService };
|