@luizleon/sf.prefeiturasp.vuecomponents 4.0.1 → 4.0.2
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/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/axios/axiosClient.d.ts +3 -3
- package/dist/src/components/button/{Button.vue.d.ts → Button.d.ts} +3 -3
- package/dist/src/components/content/{Content.vue.d.ts → Content.d.ts} +2 -2
- package/dist/src/components/drawer/{Drawer.vue.d.ts → Drawer.d.ts} +4 -4
- package/dist/src/components/icon/{Icon.vue.d.ts → Icon.d.ts} +4 -4
- package/dist/src/components/internal/HeaderAvatar.d.ts +6 -0
- package/dist/src/components/internal/LoadingCircle.d.ts +2 -0
- package/dist/src/components/internal/MenuIcon.d.ts +2 -0
- package/dist/src/components/internal/ScrollToTop.d.ts +2 -0
- package/dist/src/components/internal/ThemeToggle.d.ts +2 -10
- package/dist/src/components/layout/Layout.d.ts +19 -0
- package/dist/src/components/message/{Message.vue.d.ts → Message.d.ts} +3 -3
- package/dist/src/components/navmenu/NavMenu.d.ts +15 -0
- package/dist/src/components/tabnavigation/{TabNavigation.vue.d.ts → TabNavigation.d.ts} +1 -1
- package/dist/src/components/tooltip/{Tooltip.vue.d.ts → Tooltip.d.ts} +1 -1
- package/dist/src/index.d.ts +15 -16
- package/dist/src/keycloak.d.ts +671 -0
- package/dist/src/services/authService.d.ts +2 -2
- package/dist/src/services/dialogService.d.ts +1 -1
- package/dist/src/types/index.d.ts +1 -1
- package/package.json +3 -5
- package/src/components/layout/Layout.d.ts +38 -0
- package/src/components/layout/Layout.vue +0 -9
- package/src/ts-helpers.d.ts +44 -0
- package/vite.config.js +2 -1
- 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.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/tsconfig.tsbuildinfo +0 -1
|
@@ -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;
|
|
@@ -1,10 +1,2 @@
|
|
|
1
|
-
declare
|
|
2
|
-
|
|
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 _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/src/index.d.ts
CHANGED
|
@@ -1,17 +1,16 @@
|
|
|
1
|
-
import SfLayout from
|
|
2
|
-
import SfIcon from
|
|
3
|
-
import SfContent from
|
|
4
|
-
import SfTabNavigation from
|
|
5
|
-
import SfButton from
|
|
6
|
-
import SfDrawer from
|
|
7
|
-
import SfMessage from
|
|
8
|
-
import SfTooltip from
|
|
9
|
-
import SfNavMenu from
|
|
10
|
-
import { UseNavMenuService } from
|
|
11
|
-
import { UseAlertService, UseConfirmService } from
|
|
12
|
-
import { StartAuthService, UseAuthService } from
|
|
13
|
-
import { AppResult } from
|
|
14
|
-
import
|
|
15
|
-
import { AxiosClient, UseAxiosClient } from "./axios/axiosClient";
|
|
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';
|
|
16
15
|
export { SfLayout, SfIcon, SfContent, SfTabNavigation, SfButton, SfDrawer, SfMessage, SfTooltip, SfNavMenu, StartAuthService, UseAuthService, UseNavMenuService, UseConfirmService, UseAlertService, UseAxiosClient, AppResult, AxiosClient, };
|
|
17
|
-
export * from
|
|
16
|
+
export * from './types';
|