@luizleon/sf.prefeiturasp.vuecomponents 0.0.42 → 0.0.44

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.
Files changed (56) hide show
  1. package/dist/components/button/Button.d.ts +45 -42
  2. package/dist/components/content/Content.d.ts +21 -35
  3. package/dist/components/drawer/Drawer.d.ts +46 -55
  4. package/dist/components/icon/Icon.d.ts +38 -38
  5. package/dist/components/internal/HeaderAvatar.d.ts +6 -0
  6. package/dist/components/internal/ScrollToTop.d.ts +2 -7
  7. package/dist/components/internal/ThemeToggle.d.ts +2 -11
  8. package/dist/components/layout/Layout.d.ts +18 -45
  9. package/dist/components/message/Message.d.ts +33 -0
  10. package/dist/components/navmenulink/NavMenuLink.d.ts +12 -35
  11. package/dist/components/tabnavigation/TabNavigation.d.ts +23 -42
  12. package/dist/index.d.ts +4 -3
  13. package/dist/keycloak.d.ts +1 -1
  14. package/dist/services/dialogService.d.ts +16 -5
  15. package/dist/{lib.es.js → sf.prefeiturasp.vuecomponents.es.js} +1493 -1424
  16. package/dist/sf.prefeiturasp.vuecomponents.es.js.map +1 -0
  17. package/dist/sf.prefeiturasp.vuecomponents.umd.js +82 -0
  18. package/dist/sf.prefeiturasp.vuecomponents.umd.js.map +1 -0
  19. package/dist/style.css +1 -1
  20. package/package.json +10 -10
  21. package/src/components/button/Button.d.ts +18 -3
  22. package/src/components/button/Button.vue +1 -0
  23. package/src/components/content/Content.d.ts +1 -0
  24. package/src/components/drawer/Drawer.d.ts +3 -0
  25. package/src/components/icon/Icon.d.ts +17 -3
  26. package/src/components/icon/Icon.vue +14 -8
  27. package/src/components/internal/HeaderAvatar.vue +4 -5
  28. package/src/components/message/Message.d.ts +45 -0
  29. package/src/components/message/Message.vue +48 -0
  30. package/src/index.ts +9 -7
  31. package/src/services/dialogService.ts +71 -25
  32. package/src/style/componentes.scss +1 -0
  33. package/src/style/src/_mixins.scss +16 -0
  34. package/src/style/src/components/_icon.scss +0 -7
  35. package/src/style/src/components/_message.scss +47 -0
  36. package/src/style/src/sweetalert/scss/_animations.scss +197 -197
  37. package/src/style/src/sweetalert/scss/_body.scss +45 -45
  38. package/src/style/src/sweetalert/scss/_core.scss +862 -862
  39. package/src/style/src/sweetalert/scss/_mixins.scss +16 -16
  40. package/src/style/src/sweetalert/scss/_theming.scss +8 -8
  41. package/src/style/src/sweetalert/scss/_toasts-animations.scss +83 -83
  42. package/src/style/src/sweetalert/scss/_toasts-body.scss +85 -85
  43. package/src/style/src/sweetalert/scss/_toasts.scss +203 -203
  44. package/src/ts-helpers.d.ts +9 -9
  45. package/tsconfig.json +2 -2
  46. package/vite.config.js +4 -3
  47. package/dist/enum/cor.d.ts +0 -9
  48. package/dist/enum/index.d.ts +0 -2
  49. package/dist/enum/tamanho.d.ts +0 -5
  50. package/dist/lib.es.js.map +0 -1
  51. package/dist/lib.umd.js +0 -84
  52. package/dist/lib.umd.js.map +0 -1
  53. package/dist/ts-helpers.d.ts +0 -57
  54. package/src/enum/cor.ts +0 -9
  55. package/src/enum/index.ts +0 -2
  56. package/src/enum/tamanho.ts +0 -5
@@ -1,42 +1,45 @@
1
- import { VNode } from "vue";
2
- import { StyleValue } from "vue";
3
- import {
4
- ClassComponent,
5
- GlobalComponentConstructor,
6
- } from "../../ts-helpers";
7
-
8
- export interface SfButtonProps {
9
- icon?: string;
10
- visible?: boolean;
11
- class?: any;
12
- style?: StyleValue;
13
- disabled?: boolean;
14
- loading?: boolean;
15
- color?: Color;
16
- size?: Size;
17
- variant?: "filled" | "outlined" | "text";
18
- autofocus?: boolean;
19
- form?: string;
20
- name?: string;
21
- id?: string;
22
- type?: "submit" | "reset" | "button";
23
- value?: string | string[] | number;
24
- }
25
-
26
- export interface SfButtonSlots {}
27
-
28
- export declare type SfButtonEmits = {};
29
-
30
- declare class SfButton extends ClassComponent<
31
- SfButtonProps,
32
- SfButtonSlots,
33
- SfButtonEmits
34
- > {}
35
-
36
- declare module "@vue/runtime-core" {
37
- interface GlobalComponents {
38
- SfButton: GlobalComponentConstructor<SfButton>;
39
- }
40
- }
41
-
42
- export default SfButton;
1
+ import { SfButtonProps } from "./Button";
2
+ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<SfButtonProps>, {
3
+ visible: boolean;
4
+ color: string;
5
+ size: string;
6
+ type: string;
7
+ variant: string;
8
+ }>, {}, 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<SfButtonProps>, {
9
+ visible: boolean;
10
+ color: string;
11
+ size: string;
12
+ type: string;
13
+ variant: string;
14
+ }>>>, {
15
+ visible: boolean;
16
+ type: "button" | "submit" | "reset";
17
+ color: "primary" | "secondary" | "info" | "success" | "help" | "warn" | "error";
18
+ size: "sm" | "md" | "lg";
19
+ variant: "text" | "filled" | "outlined";
20
+ }, {}>, {
21
+ default?(_: {}): any;
22
+ }>;
23
+ export default _default;
24
+ type __VLS_NonUndefinedable<T> = T extends undefined ? never : T;
25
+ type __VLS_TypePropsToRuntimeProps<T> = {
26
+ [K in keyof T]-?: {} extends Pick<T, K> ? {
27
+ type: import('vue').PropType<__VLS_NonUndefinedable<T[K]>>;
28
+ } : {
29
+ type: import('vue').PropType<T[K]>;
30
+ required: true;
31
+ };
32
+ };
33
+ type __VLS_WithDefaults<P, D> = {
34
+ [K in keyof Pick<P, keyof P>]: K extends keyof D ? __VLS_Prettify<P[K] & {
35
+ default: D[K];
36
+ }> : P[K];
37
+ };
38
+ type __VLS_Prettify<T> = {
39
+ [K in keyof T]: T[K];
40
+ } & {};
41
+ type __VLS_WithTemplateSlots<T, S> = T & {
42
+ new (): {
43
+ $slots: S;
44
+ };
45
+ };
@@ -1,35 +1,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
+ import { SfContentProps } from "./Content";
2
+ 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
+ header?(_: {}): any;
4
+ default?(_: {}): any;
5
+ footer?(_: {}): 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
+ };
@@ -1,55 +1,46 @@
1
- import { StyleValue, VNode } from "vue";
2
- import {
3
- ClassComponent,
4
- GlobalComponentConstructor,
5
- } from "../../ts-helpers";
6
-
7
- export interface SfDrawerProps {
8
- visible: boolean;
9
- position?: "left" | "right" | "bottom" | "full";
10
- style?: StyleValue;
11
- }
12
-
13
- export interface SfDrawerSlots {
14
- /**
15
- * Default content slot.
16
- */
17
- default: () => VNode[];
18
- /**
19
- * Título da janela
20
- */
21
- title: () => VNode[];
22
- /**
23
- * Conteúdo para exibir no rodapé
24
- */
25
- footer: () => VNode[];
26
- }
27
-
28
- export declare type SfDrawerEmits = {
29
- /**
30
- * Emitted when the visible changes.
31
- */
32
- "update:visible": (value: boolean) => void;
33
- /**
34
- * Emitido após aberta
35
- */
36
- open: () => void;
37
- /**
38
- * Emitido antes de fechar
39
- */
40
- "before-close": () => void;
41
- };
42
-
43
- declare class SfDrawer extends ClassComponent<
44
- SfDrawerProps,
45
- SfDrawerSlots,
46
- SfDrawerEmits
47
- > {}
48
-
49
- declare module "@vue/runtime-core" {
50
- interface GlobalComponents {
51
- SfDrawer: GlobalComponentConstructor<SfDrawer>;
52
- }
53
- }
54
-
55
- export default SfDrawer;
1
+ import { SfDrawerProps } from "./Drawer";
2
+ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<SfDrawerProps>, {
3
+ visible: boolean;
4
+ position: string;
5
+ }>, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
6
+ "update:visible": (v: boolean) => void;
7
+ open: () => void;
8
+ "before-close": () => void;
9
+ }, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<SfDrawerProps>, {
10
+ visible: boolean;
11
+ position: string;
12
+ }>>> & {
13
+ "onUpdate:visible"?: ((v: boolean) => any) | undefined;
14
+ onOpen?: (() => any) | undefined;
15
+ "onBefore-close"?: (() => any) | undefined;
16
+ }, {
17
+ visible: boolean;
18
+ position: "left" | "right" | "bottom" | "full";
19
+ }, {}>, {
20
+ title?(_: {}): any;
21
+ default?(_: {}): any;
22
+ footer?(_: {}): any;
23
+ }>;
24
+ export default _default;
25
+ type __VLS_NonUndefinedable<T> = T extends undefined ? never : T;
26
+ type __VLS_TypePropsToRuntimeProps<T> = {
27
+ [K in keyof T]-?: {} extends Pick<T, K> ? {
28
+ type: import('vue').PropType<__VLS_NonUndefinedable<T[K]>>;
29
+ } : {
30
+ type: import('vue').PropType<T[K]>;
31
+ required: true;
32
+ };
33
+ };
34
+ type __VLS_WithDefaults<P, D> = {
35
+ [K in keyof Pick<P, keyof P>]: K extends keyof D ? __VLS_Prettify<P[K] & {
36
+ default: D[K];
37
+ }> : P[K];
38
+ };
39
+ type __VLS_Prettify<T> = {
40
+ [K in keyof T]: T[K];
41
+ } & {};
42
+ type __VLS_WithTemplateSlots<T, S> = T & {
43
+ new (): {
44
+ $slots: S;
45
+ };
46
+ };
@@ -1,38 +1,38 @@
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
+ import { SfIconProps } from "./Icon";
2
+ declare const _default: import("vue").DefineComponent<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<SfIconProps>, {
3
+ visible: boolean;
4
+ class: string;
5
+ style: string;
6
+ tamanho: string;
7
+ dotColor: string;
8
+ }>, {}, 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
+ visible: boolean;
10
+ class: string;
11
+ style: string;
12
+ tamanho: string;
13
+ dotColor: string;
14
+ }>>>, {
15
+ style: import("vue").StyleValue;
16
+ class: any;
17
+ visible: boolean;
18
+ tamanho: "sm" | "md" | "lg";
19
+ dotColor: "primary" | "secondary" | "info" | "success" | "help" | "warn" | "error";
20
+ }, {}>;
21
+ export default _default;
22
+ type __VLS_NonUndefinedable<T> = T extends undefined ? never : T;
23
+ type __VLS_TypePropsToRuntimeProps<T> = {
24
+ [K in keyof T]-?: {} extends Pick<T, K> ? {
25
+ type: import('vue').PropType<__VLS_NonUndefinedable<T[K]>>;
26
+ } : {
27
+ type: import('vue').PropType<T[K]>;
28
+ required: true;
29
+ };
30
+ };
31
+ type __VLS_WithDefaults<P, D> = {
32
+ [K in keyof Pick<P, keyof P>]: K extends keyof D ? __VLS_Prettify<P[K] & {
33
+ default: D[K];
34
+ }> : P[K];
35
+ };
36
+ type __VLS_Prettify<T> = {
37
+ [K in keyof T]: T[K];
38
+ } & {};
@@ -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;
@@ -1,7 +1,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
+ 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,11 +1,2 @@
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
+ 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,45 +1,18 @@
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
- logout: () => void;
31
- };
32
-
33
- declare class SfLayout extends ClassComponent<
34
- SfLayoutProps,
35
- SfLayoutSlots,
36
- SfLayoutEmits
37
- > {}
38
-
39
- declare module "@vue/runtime-core" {
40
- interface GlobalComponents {
41
- SfLayout: GlobalComponentConstructor<SfLayout>;
42
- }
43
- }
44
-
45
- export default SfLayout;
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
+ type __VLS_WithTemplateSlots<T, S> = T & {
15
+ new (): {
16
+ $slots: S;
17
+ };
18
+ };
@@ -0,0 +1,33 @@
1
+ import { SfMessageProps } from "./Message";
2
+ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<SfMessageProps>, {
3
+ color: string;
4
+ }>, {}, 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>, {
5
+ color: string;
6
+ }>>>, {
7
+ color: "primary" | "secondary" | "info" | "success" | "help" | "warn" | "error";
8
+ }, {}>, {
9
+ default?(_: {}): any;
10
+ }>;
11
+ export default _default;
12
+ type __VLS_NonUndefinedable<T> = T extends undefined ? never : T;
13
+ type __VLS_TypePropsToRuntimeProps<T> = {
14
+ [K in keyof T]-?: {} extends Pick<T, K> ? {
15
+ type: import('vue').PropType<__VLS_NonUndefinedable<T[K]>>;
16
+ } : {
17
+ type: import('vue').PropType<T[K]>;
18
+ required: true;
19
+ };
20
+ };
21
+ type __VLS_WithDefaults<P, D> = {
22
+ [K in keyof Pick<P, keyof P>]: K extends keyof D ? __VLS_Prettify<P[K] & {
23
+ default: D[K];
24
+ }> : P[K];
25
+ };
26
+ type __VLS_Prettify<T> = {
27
+ [K in keyof T]: T[K];
28
+ } & {};
29
+ type __VLS_WithTemplateSlots<T, S> = T & {
30
+ new (): {
31
+ $slots: S;
32
+ };
33
+ };
@@ -1,35 +1,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
- exact?: boolean;
11
- }
12
-
13
- export interface SfNavMenuLinkSlots {}
14
-
15
- export declare type SfNavMenuLinkEmits = {};
16
-
17
- declare class SfNavMenuLink extends ClassComponent<
18
- SfNavMenuLinkProps,
19
- SfNavMenuLinkSlots,
20
- SfNavMenuLinkEmits
21
- > {}
22
-
23
- declare module "@vue/runtime-core" {
24
- interface GlobalComponents {
25
- SfNavMenuLink: GlobalComponentConstructor<SfNavMenuLink>;
26
- }
27
- }
28
-
29
- /**
30
- * Componente para navegação no menu.
31
- *
32
- * Dependência: router-link.
33
- * @see [https://router.vuejs.org/api/#router-link-s-v-slot](https://router.vuejs.org/api/#router-link-s-v-slot)
34
- */
35
- export default SfNavMenuLink;
1
+ import { SfNavMenuLinkProps } from "./NavMenuLink";
2
+ 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
+ export default _default;
4
+ type __VLS_NonUndefinedable<T> = T extends undefined ? never : T;
5
+ type __VLS_TypePropsToRuntimeProps<T> = {
6
+ [K in keyof T]-?: {} extends Pick<T, K> ? {
7
+ type: import('vue').PropType<__VLS_NonUndefinedable<T[K]>>;
8
+ } : {
9
+ type: import('vue').PropType<T[K]>;
10
+ required: true;
11
+ };
12
+ };
@@ -1,42 +1,23 @@
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;
1
+ import { SfTabNavigationProps } from "./TabNavigation";
2
+ 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
+ item?(_: {
4
+ item: import("./TabNavigation").SfTabNavigationTab;
5
+ navigate: any;
6
+ isActive: any;
7
+ }): any;
8
+ }>;
9
+ export default _default;
10
+ type __VLS_NonUndefinedable<T> = T extends undefined ? never : T;
11
+ type __VLS_TypePropsToRuntimeProps<T> = {
12
+ [K in keyof T]-?: {} extends Pick<T, K> ? {
13
+ type: import('vue').PropType<__VLS_NonUndefinedable<T[K]>>;
14
+ } : {
15
+ type: import('vue').PropType<T[K]>;
16
+ required: true;
17
+ };
18
+ };
19
+ type __VLS_WithTemplateSlots<T, S> = T & {
20
+ new (): {
21
+ $slots: S;
22
+ };
23
+ };
package/dist/index.d.ts CHANGED
@@ -5,10 +5,11 @@ import SfContent from "./components/content/Content";
5
5
  import SfTabNavigation from "./components/tabnavigation/TabNavigation";
6
6
  import SfButton from "./components/button/Button";
7
7
  import SfDrawer from "./components/drawer/Drawer";
8
+ import SfMessage from "./components/message/Message";
8
9
  import { UseNavMenuService } from "./services/navMenuService";
9
- import { UseDialogService } from "./services/dialogService";
10
+ import { UseAlertService, UseConfirmService } from "./services/dialogService";
10
11
  import { UseAuthService } from "./services/authService";
11
12
  import { AppResult } from "./common/appResult";
12
- import { Cor, Tamanho } from "./enum";
13
+ import "./style/componentes.scss";
13
14
  import { AxiosClient, UseAxiosClient } from "./axios/axiosClient";
14
- export { SfLayout, SfIcon, SfNavMenuLink, SfContent, SfTabNavigation, SfButton, SfDrawer, UseAuthService, UseNavMenuService, UseDialogService, UseAxiosClient, AppResult, Cor, Tamanho, AxiosClient, };
15
+ export { SfLayout, SfIcon, SfNavMenuLink, SfContent, SfTabNavigation, SfButton, SfDrawer, SfMessage, UseAuthService, UseNavMenuService, UseConfirmService, UseAlertService, UseAxiosClient, AppResult, AxiosClient, };
@@ -361,7 +361,7 @@ export interface KeycloakRoles {
361
361
  }
362
362
 
363
363
  /**
364
- * @deprecated Instead of importing 'KeycloakInstance' you can directly as a type.
364
+ * @deprecated Instead of importing 'KeycloakInstance' you can import 'Keycloak' directly as a type.
365
365
  */
366
366
  export type KeycloakInstance = Keycloak;
367
367
 
@@ -1,3 +1,4 @@
1
+ import { SweetAlertIcon } from "sweetalert2";
1
2
  interface ConfirmOptions {
2
3
  text: string;
3
4
  title?: string;
@@ -7,12 +8,22 @@ interface ConfirmOptions {
7
8
  interface AlertOptions {
8
9
  text: string | string[];
9
10
  title?: string;
10
- icon?: "info" | "error" | "success" | "warning" | "question";
11
+ icon?: SweetAlertIcon;
11
12
  }
12
- declare class DialogService {
13
+ declare class Base {
13
14
  get IsVisible(): boolean;
14
- ConfirmAsync(options: ConfirmOptions): Promise<boolean>;
15
- AlertAsync(options: AlertOptions): Promise<boolean>;
16
15
  }
17
- export declare const UseDialogService: () => DialogService;
16
+ declare class AlertService extends Base {
17
+ constructor();
18
+ CreateAlertAsync(options: AlertOptions | string | string[]): Promise<boolean>;
19
+ AlertAsync(message: string | string[]): Promise<boolean>;
20
+ AlertErrorAsync(error: string | string[]): Promise<boolean>;
21
+ AlertSuccessAsync(message: string | string[]): Promise<boolean>;
22
+ }
23
+ declare class ConfirmService extends Base {
24
+ CreateConfirmAsync(options: ConfirmOptions): Promise<boolean>;
25
+ ConfirmAsync(message: string): Promise<boolean>;
26
+ }
27
+ export declare const UseAlertService: () => AlertService;
28
+ export declare const UseConfirmService: () => ConfirmService;
18
29
  export {};