@luizleon/sf.prefeiturasp.vuecomponents 0.0.43 → 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.
Files changed (67) hide show
  1. package/dist/components/button/Button.d.ts +77 -42
  2. package/dist/components/content/Content.d.ts +28 -36
  3. package/dist/components/drawer/Drawer.d.ts +54 -55
  4. package/dist/components/icon/Icon.d.ts +59 -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 +20 -45
  9. package/dist/components/message/Message.d.ts +42 -37
  10. package/dist/components/navmenulink/NavMenuLink.d.ts +18 -35
  11. package/dist/components/tabnavigation/TabNavigation.d.ts +29 -42
  12. package/dist/components/tooltip/Tooltip.d.ts +21 -0
  13. package/dist/index.d.ts +4 -3
  14. package/dist/keycloak.d.ts +1 -1
  15. package/dist/services/dialogService.d.ts +16 -5
  16. package/dist/{lib.es.js → sf.prefeiturasp.vuecomponents.es.js} +2009 -1909
  17. package/dist/sf.prefeiturasp.vuecomponents.es.js.map +1 -0
  18. package/dist/sf.prefeiturasp.vuecomponents.umd.js +82 -0
  19. package/dist/sf.prefeiturasp.vuecomponents.umd.js.map +1 -0
  20. package/dist/style.css +1 -1
  21. package/package.json +9 -10
  22. package/src/components/button/Button.d.ts +2 -18
  23. package/src/components/button/Button.vue +45 -2
  24. package/src/components/content/Content.d.ts +0 -8
  25. package/src/components/content/Content.vue +9 -1
  26. package/src/components/drawer/Drawer.d.ts +1 -6
  27. package/src/components/drawer/Drawer.vue +11 -3
  28. package/src/components/icon/Icon.d.ts +1 -16
  29. package/src/components/icon/Icon.vue +65 -22
  30. package/src/components/internal/HeaderAvatar.vue +4 -5
  31. package/src/components/layout/Layout.d.ts +1 -2
  32. package/src/components/layout/Layout.vue +6 -1
  33. package/src/components/message/Message.d.ts +1 -10
  34. package/src/components/message/Message.vue +28 -12
  35. package/src/components/navmenulink/NavMenuLink.d.ts +1 -7
  36. package/src/components/navmenulink/NavMenuLink.vue +10 -2
  37. package/src/components/tabnavigation/TabNavigation.d.ts +1 -9
  38. package/src/components/tabnavigation/TabNavigation.vue +9 -1
  39. package/src/components/tooltip/Tooltip.d.ts +23 -0
  40. package/src/components/tooltip/Tooltip.vue +91 -0
  41. package/src/index.ts +8 -6
  42. package/src/services/dialogService.ts +71 -25
  43. package/src/style/src/_mixins.scss +5 -0
  44. package/src/style/src/components/_icon.scss +7 -7
  45. package/src/style/src/components/_message.scss +1 -1
  46. package/src/style/src/components/_tooltip.scss +11 -12
  47. package/src/style/src/sweetalert/scss/_animations.scss +197 -197
  48. package/src/style/src/sweetalert/scss/_body.scss +45 -45
  49. package/src/style/src/sweetalert/scss/_core.scss +862 -862
  50. package/src/style/src/sweetalert/scss/_mixins.scss +16 -16
  51. package/src/style/src/sweetalert/scss/_theming.scss +8 -8
  52. package/src/style/src/sweetalert/scss/_toasts-animations.scss +83 -83
  53. package/src/style/src/sweetalert/scss/_toasts-body.scss +85 -85
  54. package/src/style/src/sweetalert/scss/_toasts.scss +203 -203
  55. package/src/ts-helpers.d.ts +9 -9
  56. package/tsconfig.json +2 -2
  57. package/vite.config.js +5 -5
  58. package/dist/enum/cor.d.ts +0 -9
  59. package/dist/enum/index.d.ts +0 -2
  60. package/dist/enum/tamanho.d.ts +0 -5
  61. package/dist/lib.es.js.map +0 -1
  62. package/dist/lib.umd.js +0 -84
  63. package/dist/lib.umd.js.map +0 -1
  64. package/dist/ts-helpers.d.ts +0 -57
  65. package/src/enum/cor.ts +0 -9
  66. package/src/enum/index.ts +0 -2
  67. package/src/enum/tamanho.ts +0 -5
@@ -1,42 +1,77 @@
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 { 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
+ }
34
+ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<SfButtonProps>, {
35
+ visible: boolean;
36
+ color: string;
37
+ size: string;
38
+ type: string;
39
+ variant: string;
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_TypePropsToRuntimeProps<SfButtonProps>, {
41
+ visible: boolean;
42
+ color: string;
43
+ size: string;
44
+ type: string;
45
+ variant: string;
46
+ }>>>, {
47
+ size: "sm" | "md" | "lg";
48
+ type: "button" | "submit" | "reset";
49
+ visible: boolean;
50
+ color: "primary" | "secondary" | "info" | "success" | "help" | "warn" | "error";
51
+ variant: "text" | "filled" | "outlined";
52
+ }, {}>, {
53
+ default?(_: {}): any;
54
+ }>;
55
+ export default _default;
56
+ type __VLS_NonUndefinedable<T> = T extends undefined ? never : T;
57
+ type __VLS_TypePropsToRuntimeProps<T> = {
58
+ [K in keyof T]-?: {} extends Pick<T, K> ? {
59
+ type: import('vue').PropType<__VLS_NonUndefinedable<T[K]>>;
60
+ } : {
61
+ type: import('vue').PropType<T[K]>;
62
+ required: true;
63
+ };
64
+ };
65
+ type __VLS_WithDefaults<P, D> = {
66
+ [K in keyof Pick<P, keyof P>]: K extends keyof D ? __VLS_Prettify<P[K] & {
67
+ default: D[K];
68
+ }> : P[K];
69
+ };
70
+ type __VLS_Prettify<T> = {
71
+ [K in keyof T]: T[K];
72
+ } & {};
73
+ type __VLS_WithTemplateSlots<T, S> = T & {
74
+ new (): {
75
+ $slots: S;
76
+ };
77
+ };
@@ -1,36 +1,28 @@
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
- default: () => VNode[];
20
- }
21
-
22
- export declare type SfContentEmits = {};
23
-
24
- declare class SfContent extends ClassComponent<
25
- SfContentProps,
26
- SfContentSlots,
27
- SfContentEmits
28
- > {}
29
-
30
- declare module "@vue/runtime-core" {
31
- interface GlobalComponents {
32
- SfContent: GlobalComponentConstructor<SfContent>;
33
- }
34
- }
35
-
36
- export default SfContent;
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
+ }
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>>>, {}, {}>, {
10
+ header?(_: {}): any;
11
+ default?(_: {}): any;
12
+ footer?(_: {}): any;
13
+ }>;
14
+ export default _default;
15
+ type __VLS_NonUndefinedable<T> = T extends undefined ? never : T;
16
+ type __VLS_TypePropsToRuntimeProps<T> = {
17
+ [K in keyof T]-?: {} extends Pick<T, K> ? {
18
+ type: import('vue').PropType<__VLS_NonUndefinedable<T[K]>>;
19
+ } : {
20
+ type: import('vue').PropType<T[K]>;
21
+ required: true;
22
+ };
23
+ };
24
+ type __VLS_WithTemplateSlots<T, S> = T & {
25
+ new (): {
26
+ $slots: S;
27
+ };
28
+ };
@@ -1,55 +1,54 @@
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 { 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
+ }
10
+ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<SfDrawerProps>, {
11
+ visible: boolean;
12
+ position: string;
13
+ }>, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
14
+ "update:visible": (v: boolean) => void;
15
+ open: () => void;
16
+ "before-close": () => void;
17
+ }, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<SfDrawerProps>, {
18
+ visible: boolean;
19
+ position: string;
20
+ }>>> & {
21
+ "onUpdate:visible"?: ((v: boolean) => any) | undefined;
22
+ onOpen?: (() => any) | undefined;
23
+ "onBefore-close"?: (() => any) | undefined;
24
+ }, {
25
+ visible: boolean;
26
+ position: "left" | "right" | "bottom" | "full";
27
+ }, {}>, {
28
+ title?(_: {}): any;
29
+ default?(_: {}): any;
30
+ footer?(_: {}): any;
31
+ }>;
32
+ export default _default;
33
+ type __VLS_NonUndefinedable<T> = T extends undefined ? never : T;
34
+ type __VLS_TypePropsToRuntimeProps<T> = {
35
+ [K in keyof T]-?: {} extends Pick<T, K> ? {
36
+ type: import('vue').PropType<__VLS_NonUndefinedable<T[K]>>;
37
+ } : {
38
+ type: import('vue').PropType<T[K]>;
39
+ required: true;
40
+ };
41
+ };
42
+ type __VLS_WithDefaults<P, D> = {
43
+ [K in keyof Pick<P, keyof P>]: K extends keyof D ? __VLS_Prettify<P[K] & {
44
+ default: D[K];
45
+ }> : P[K];
46
+ };
47
+ type __VLS_Prettify<T> = {
48
+ [K in keyof T]: T[K];
49
+ } & {};
50
+ type __VLS_WithTemplateSlots<T, S> = T & {
51
+ new (): {
52
+ $slots: S;
53
+ };
54
+ };
@@ -1,38 +1,59 @@
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 { 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
+ }
23
+ declare const _default: import("vue").DefineComponent<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<SfIconProps>, {
24
+ visible: boolean;
25
+ class: string;
26
+ style: string;
27
+ size: string;
28
+ dotColor: string;
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>, {
30
+ visible: boolean;
31
+ class: string;
32
+ style: string;
33
+ size: string;
34
+ dotColor: string;
35
+ }>>>, {
36
+ style: StyleValue;
37
+ class: any;
38
+ size: "sm" | "md" | "lg";
39
+ visible: boolean;
40
+ dotColor: "primary" | "secondary" | "info" | "success" | "help" | "warn" | "error";
41
+ }, {}>;
42
+ export default _default;
43
+ type __VLS_NonUndefinedable<T> = T extends undefined ? never : T;
44
+ type __VLS_TypePropsToRuntimeProps<T> = {
45
+ [K in keyof T]-?: {} extends Pick<T, K> ? {
46
+ type: import('vue').PropType<__VLS_NonUndefinedable<T[K]>>;
47
+ } : {
48
+ type: import('vue').PropType<T[K]>;
49
+ required: true;
50
+ };
51
+ };
52
+ type __VLS_WithDefaults<P, D> = {
53
+ [K in keyof Pick<P, keyof P>]: K extends keyof D ? __VLS_Prettify<P[K] & {
54
+ default: D[K];
55
+ }> : P[K];
56
+ };
57
+ type __VLS_Prettify<T> = {
58
+ [K in keyof T]: T[K];
59
+ } & {};
@@ -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,20 @@
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
+ export interface SfLayoutProps {
2
+ }
3
+ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<{}, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
4
+ mounted: () => void;
5
+ logout: () => void;
6
+ }, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{}>> & {
7
+ onLogout?: (() => any) | undefined;
8
+ onMounted?: (() => any) | undefined;
9
+ }, {}, {}>, {
10
+ title?(_: {}): any;
11
+ action?(_: {}): any;
12
+ menu?(_: {}): any;
13
+ content?(_: {}): any;
14
+ }>;
15
+ export default _default;
16
+ type __VLS_WithTemplateSlots<T, S> = T & {
17
+ new (): {
18
+ $slots: S;
19
+ };
20
+ };
@@ -1,37 +1,42 @@
1
- import { VNode } from "vue";
2
- import { StyleValue } from "vue";
3
- import {
4
- ClassComponent,
5
- GlobalComponentConstructor,
6
- } from "../../ts-helpers";
7
- import { Cor } from "../../enum";
8
-
9
- export interface SfMessageProps {
10
- /**
11
- * @default "Info"
12
- */
13
- severity?: Cor;
14
- class?: any;
15
- style?: StyleValue;
16
- icon?: string;
17
- }
18
-
19
- export interface SfMessageSlots {
20
- default: VNode[];
21
- }
22
-
23
- export declare type SfMessageEmits = {};
24
-
25
- declare class SfMessage extends ClassComponent<
26
- SfMessageProps,
27
- SfMessageSlots,
28
- SfMessageEmits
29
- > {}
30
-
31
- declare module "@vue/runtime-core" {
32
- interface GlobalComponents {
33
- SfMessage: GlobalComponentConstructor<SfMessage>;
34
- }
35
- }
36
-
37
- export default SfMessage;
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
+ }
11
+ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<SfMessageProps>, {
12
+ color: string;
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>, {
14
+ color: string;
15
+ }>>>, {
16
+ color: "primary" | "secondary" | "info" | "success" | "help" | "warn" | "error";
17
+ }, {}>, {
18
+ default?(_: {}): any;
19
+ }>;
20
+ export default _default;
21
+ type __VLS_NonUndefinedable<T> = T extends undefined ? never : T;
22
+ type __VLS_TypePropsToRuntimeProps<T> = {
23
+ [K in keyof T]-?: {} extends Pick<T, K> ? {
24
+ type: import('vue').PropType<__VLS_NonUndefinedable<T[K]>>;
25
+ } : {
26
+ type: import('vue').PropType<T[K]>;
27
+ required: true;
28
+ };
29
+ };
30
+ type __VLS_WithDefaults<P, D> = {
31
+ [K in keyof Pick<P, keyof P>]: K extends keyof D ? __VLS_Prettify<P[K] & {
32
+ default: D[K];
33
+ }> : P[K];
34
+ };
35
+ type __VLS_Prettify<T> = {
36
+ [K in keyof T]: T[K];
37
+ } & {};
38
+ type __VLS_WithTemplateSlots<T, S> = T & {
39
+ new (): {
40
+ $slots: S;
41
+ };
42
+ };
@@ -1,35 +1,18 @@
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
+ export interface SfNavMenuLinkProps {
2
+ href: string;
3
+ text: string;
4
+ icon?: string;
5
+ iconFilled?: boolean;
6
+ exact?: boolean;
7
+ }
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>>>, {}, {}>;
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
+ };