@luizleon/sf.prefeiturasp.vuecomponents 0.0.43 → 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 (52) hide show
  1. package/dist/components/button/Button.d.ts +45 -42
  2. package/dist/components/content/Content.d.ts +21 -36
  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 -37
  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 +3 -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} +1300 -1266
  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/drawer/Drawer.d.ts +3 -0
  24. package/src/components/icon/Icon.d.ts +17 -3
  25. package/src/components/icon/Icon.vue +14 -8
  26. package/src/components/internal/HeaderAvatar.vue +4 -5
  27. package/src/components/message/Message.d.ts +10 -2
  28. package/src/components/message/Message.vue +9 -10
  29. package/src/index.ts +6 -6
  30. package/src/services/dialogService.ts +71 -25
  31. package/src/style/src/components/_icon.scss +0 -7
  32. package/src/style/src/sweetalert/scss/_animations.scss +197 -197
  33. package/src/style/src/sweetalert/scss/_body.scss +45 -45
  34. package/src/style/src/sweetalert/scss/_core.scss +862 -862
  35. package/src/style/src/sweetalert/scss/_mixins.scss +16 -16
  36. package/src/style/src/sweetalert/scss/_theming.scss +8 -8
  37. package/src/style/src/sweetalert/scss/_toasts-animations.scss +83 -83
  38. package/src/style/src/sweetalert/scss/_toasts-body.scss +85 -85
  39. package/src/style/src/sweetalert/scss/_toasts.scss +203 -203
  40. package/src/ts-helpers.d.ts +9 -9
  41. package/tsconfig.json +2 -2
  42. package/vite.config.js +4 -3
  43. package/dist/enum/cor.d.ts +0 -9
  44. package/dist/enum/index.d.ts +0 -2
  45. package/dist/enum/tamanho.d.ts +0 -5
  46. package/dist/lib.es.js.map +0 -1
  47. package/dist/lib.umd.js +0 -84
  48. package/dist/lib.umd.js.map +0 -1
  49. package/dist/ts-helpers.d.ts +0 -57
  50. package/src/enum/cor.ts +0 -9
  51. package/src/enum/index.ts +0 -2
  52. package/src/enum/tamanho.ts +0 -5
@@ -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 {};