@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,29 @@
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
+ export interface SfTabNavigationTab {
2
+ text: string;
3
+ route: string;
4
+ }
5
+ export interface SfTabNavigationProps {
6
+ tabs: SfTabNavigationTab[];
7
+ }
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>>>, {}, {}>, {
9
+ item?(_: {
10
+ item: SfTabNavigationTab;
11
+ navigate: any;
12
+ isActive: any;
13
+ }): any;
14
+ }>;
15
+ export default _default;
16
+ type __VLS_NonUndefinedable<T> = T extends undefined ? never : T;
17
+ type __VLS_TypePropsToRuntimeProps<T> = {
18
+ [K in keyof T]-?: {} extends Pick<T, K> ? {
19
+ type: import('vue').PropType<__VLS_NonUndefinedable<T[K]>>;
20
+ } : {
21
+ type: import('vue').PropType<T[K]>;
22
+ required: true;
23
+ };
24
+ };
25
+ type __VLS_WithTemplateSlots<T, S> = T & {
26
+ new (): {
27
+ $slots: S;
28
+ };
29
+ };
@@ -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
- import { UseDialogService } from "./services/dialogService";
11
+ import { UseAlertService, UseConfirmService } from "./services/dialogService";
11
12
  import { UseAuthService } from "./services/authService";
12
13
  import { AppResult } from "./common/appResult";
13
- import { Cor, Tamanho } from "./enum";
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, UseDialogService, UseAxiosClient, AppResult, Cor, Tamanho, AxiosClient, };
16
+ export { SfLayout, SfIcon, SfNavMenuLink, SfContent, SfTabNavigation, SfButton, SfDrawer, SfMessage, SfTooltip, 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 {};