@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.
- package/dist/components/button/Button.d.ts +45 -42
- package/dist/components/content/Content.d.ts +21 -36
- package/dist/components/drawer/Drawer.d.ts +46 -55
- package/dist/components/icon/Icon.d.ts +38 -38
- package/dist/components/internal/HeaderAvatar.d.ts +6 -0
- package/dist/components/internal/ScrollToTop.d.ts +2 -7
- package/dist/components/internal/ThemeToggle.d.ts +2 -11
- package/dist/components/layout/Layout.d.ts +18 -45
- package/dist/components/message/Message.d.ts +33 -37
- package/dist/components/navmenulink/NavMenuLink.d.ts +12 -35
- package/dist/components/tabnavigation/TabNavigation.d.ts +23 -42
- package/dist/index.d.ts +3 -3
- package/dist/keycloak.d.ts +1 -1
- package/dist/services/dialogService.d.ts +16 -5
- package/dist/{lib.es.js → sf.prefeiturasp.vuecomponents.es.js} +1300 -1266
- package/dist/sf.prefeiturasp.vuecomponents.es.js.map +1 -0
- package/dist/sf.prefeiturasp.vuecomponents.umd.js +82 -0
- package/dist/sf.prefeiturasp.vuecomponents.umd.js.map +1 -0
- package/dist/style.css +1 -1
- package/package.json +10 -10
- package/src/components/button/Button.d.ts +18 -3
- package/src/components/button/Button.vue +1 -0
- package/src/components/drawer/Drawer.d.ts +3 -0
- package/src/components/icon/Icon.d.ts +17 -3
- package/src/components/icon/Icon.vue +14 -8
- package/src/components/internal/HeaderAvatar.vue +4 -5
- package/src/components/message/Message.d.ts +10 -2
- package/src/components/message/Message.vue +9 -10
- package/src/index.ts +6 -6
- package/src/services/dialogService.ts +71 -25
- package/src/style/src/components/_icon.scss +0 -7
- package/src/style/src/sweetalert/scss/_animations.scss +197 -197
- package/src/style/src/sweetalert/scss/_body.scss +45 -45
- package/src/style/src/sweetalert/scss/_core.scss +862 -862
- package/src/style/src/sweetalert/scss/_mixins.scss +16 -16
- package/src/style/src/sweetalert/scss/_theming.scss +8 -8
- package/src/style/src/sweetalert/scss/_toasts-animations.scss +83 -83
- package/src/style/src/sweetalert/scss/_toasts-body.scss +85 -85
- package/src/style/src/sweetalert/scss/_toasts.scss +203 -203
- package/src/ts-helpers.d.ts +9 -9
- package/tsconfig.json +2 -2
- package/vite.config.js +4 -3
- package/dist/enum/cor.d.ts +0 -9
- package/dist/enum/index.d.ts +0 -2
- package/dist/enum/tamanho.d.ts +0 -5
- package/dist/lib.es.js.map +0 -1
- package/dist/lib.umd.js +0 -84
- package/dist/lib.umd.js.map +0 -1
- package/dist/ts-helpers.d.ts +0 -57
- package/src/enum/cor.ts +0 -9
- package/src/enum/index.ts +0 -2
- 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?:
|
|
11
|
+
icon?: SweetAlertIcon;
|
|
11
12
|
}
|
|
12
|
-
declare class
|
|
13
|
+
declare class Base {
|
|
13
14
|
get IsVisible(): boolean;
|
|
14
|
-
ConfirmAsync(options: ConfirmOptions): Promise<boolean>;
|
|
15
|
-
AlertAsync(options: AlertOptions): Promise<boolean>;
|
|
16
15
|
}
|
|
17
|
-
|
|
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 {};
|