@caipira/tamandua 0.0.100 → 0.0.101
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/Alert.js +6 -0
- package/dist/Alert.vue_vue_type_script_setup_true_lang-CAGHRWvs.js +67 -0
- package/dist/DialogProvider.js +6 -0
- package/dist/DialogProvider.vue_vue_type_script_setup_true_lang-ejMXvlRv.js +21 -0
- package/dist/InputSelect.js +2 -2
- package/dist/{InputSelect.vue_vue_type_script_setup_true_lang-CkW6maZO.js → InputSelect.vue_vue_type_script_setup_true_lang-N2nSmX8r.js} +33 -33
- package/dist/Modal.js +2 -2
- package/dist/{Modal.vue_vue_type_script_setup_true_lang-60BGY-iH.js → Modal.vue_vue_type_script_setup_true_lang-gKqoL70h.js} +25 -23
- package/dist/components.js +92 -88
- package/dist/composables.js +11 -9
- package/dist/{plugin-TMApjjiI.js → plugin-BeifNbnf.js} +1 -1
- package/dist/{plugin-CPpRqUnI.js → plugin-Cy5TXn1Y.js} +1 -1
- package/dist/plugin-DXPPWWyR.js +10 -0
- package/dist/plugin-W9_PLHv4.js +10 -0
- package/dist/plugins-C-OK-RIJ.js +121 -0
- package/dist/plugins.js +95 -90
- package/dist/tamandua.js +1 -1
- package/dist/types/components/Alert/Alert.story.d.ts +19 -0
- package/dist/types/components/Alert/Alert.vue.d.ts +57 -0
- package/dist/types/components/Alert/index.d.ts +5 -0
- package/dist/types/components/Alert/plugin.d.ts +4 -0
- package/dist/types/components/Alert/types.d.ts +12 -0
- package/dist/types/components/Button/Button.vue.d.ts +9 -9
- package/dist/types/components/DialogProvider/DialogProvider.vue.d.ts +2 -0
- package/dist/types/components/DialogProvider/index.d.ts +4 -0
- package/dist/types/components/DialogProvider/plugin.d.ts +4 -0
- package/dist/types/components/Drawer/Drawer.vue.d.ts +1 -1
- package/dist/types/components/InputSelect/InputSelect.vue.d.ts +2 -0
- package/dist/types/components/InputSelect/types.d.ts +1 -0
- package/dist/types/components/InputText/InputText.vue.d.ts +9 -9
- package/dist/types/components/Modal/Modal.vue.d.ts +3 -0
- package/dist/types/components/Modal/types.d.ts +1 -0
- package/dist/types/components/Popconfirm/Popconfirm.vue.d.ts +1 -1
- package/dist/types/components/index.d.ts +4 -2
- package/dist/types/components/plugins.d.ts +8 -6
- package/dist/types/components/types.d.ts +2 -1
- package/dist/types/composables/index.d.ts +2 -1
- package/dist/types/composables/useDialog.d.ts +33 -0
- package/dist/useDialog-Cl-wVLea.js +28 -0
- package/package.json +1 -1
- package/volar.d.ts +46 -44
- package/dist/plugins-CyxTeM7y.js +0 -116
|
@@ -21,7 +21,7 @@ declare const __VLS_component: import('vue').DefineComponent<__VLS_WithDefaults<
|
|
|
21
21
|
}>, {
|
|
22
22
|
iconReference: import("vue").Ref<import("vue").CreateComponentPublicInstance<Readonly<import("vue").ExtractPropTypes<{
|
|
23
23
|
icon: {
|
|
24
|
-
type: import("vue").PropType<number | "circle" | "account" | "account-box" | "account-box-outline" | "account-circle" | "account-circle-outline" | "account-group" | "account-group-outline" | "account-multiple" | "account-multiple-outline" | "account-outline" | "alert-octagon" | "alert-octagon-outline" | "api" | "archive" | "archive-outline" | "arrow-left" | "arrow-right" | "bank" | "bank-outline" | "book-alphabet" | "book-multiple" | "book-multiple-outline" | "bookshelf" | "camera" | "cards-outline" | "cards-variant" | "cart-outline" | "chart-box" | "chart-box-outline" | "check" | "check-circle" | "check-circle-outline" | "chevron-down" | "chevron-left" | "chevron-right" | "chevron-up" | "clock" | "clock-fast" | "clock-outline" | "close" | "close-circle" | "close-circle-outline" | "cog" | "contacts" | "contacts-outline" | "copy" | "credit-card" | "credit-card-plus" | "currency" | "database" | "dots-grid" | "dots-horizontal" | "dots-vertical" | "email-open-outline" | "email-outline" | "eye" | "eye-off" | "file-document-plus-outline" | "filmstrip" | "
|
|
24
|
+
type: import("vue").PropType<number | "filter" | "search" | "menu" | "video" | "circle" | "image" | "stop" | "text" | "key" | "account" | "account-box" | "account-box-outline" | "account-circle" | "account-circle-outline" | "account-group" | "account-group-outline" | "account-multiple" | "account-multiple-outline" | "account-outline" | "alert-octagon" | "alert-octagon-outline" | "api" | "archive" | "archive-outline" | "arrow-left" | "arrow-right" | "bank" | "bank-outline" | "book-alphabet" | "book-multiple" | "book-multiple-outline" | "bookshelf" | "camera" | "cards-outline" | "cards-variant" | "cart-outline" | "chart-box" | "chart-box-outline" | "check" | "check-circle" | "check-circle-outline" | "chevron-down" | "chevron-left" | "chevron-right" | "chevron-up" | "clock" | "clock-fast" | "clock-outline" | "close" | "close-circle" | "close-circle-outline" | "cog" | "contacts" | "contacts-outline" | "copy" | "credit-card" | "credit-card-plus" | "currency" | "database" | "dots-grid" | "dots-horizontal" | "dots-vertical" | "email-open-outline" | "email-outline" | "eye" | "eye-off" | "file-document-plus-outline" | "filmstrip" | "fullscreen" | "fullscreen-exit" | "group" | "home" | "home-outline" | "image-album" | "image-album-outline" | "image-outline" | "info-outline" | "key-chain" | "key-variant" | "listbox-outline" | "loading" | "lock" | "lock-outline" | "logout" | "menu-down" | "menu-left" | "menu-right" | "minus" | "minus-circle" | "minus-circle-outline" | "moon" | "movie-open" | "movie-open-outline" | "open-in-new" | "pause" | "pause-circle" | "pencil" | "piggy-bank-outline" | "play" | "play-box" | "play-box-edit-outline" | "play-box-outline" | "play-circle" | "playlist-play" | "plus" | "plus-circle" | "plus-circle-outline" | "progress-clock" | "qrcode-scan" | "refresh" | "replay" | "save" | "shuffle" | "shuffle-disabled" | "shuffle-variant" | "skip-backward" | "skip-forward" | "skip-next" | "skip-previous" | "spotlight" | "store" | "store-outline" | "sun" | "swap" | "swap-horizontal" | "swap-left" | "swap-right" | "system-theme" | "tag-outline" | "text-box" | "text-box-multiple" | "text-box-multiple-outline" | "text-box-outline" | "text-long" | "timer-outline" | "timer-refresh-outline" | "trash-can" | "trash-can-outline" | "ungroup" | "upload" | "upload-box-outline" | "upload-multiple-outline" | "upload-outline" | "video-outline" | "web" | "zip-box">;
|
|
25
25
|
required: true;
|
|
26
26
|
};
|
|
27
27
|
role: {
|
|
@@ -29,14 +29,14 @@ declare const __VLS_component: import('vue').DefineComponent<__VLS_WithDefaults<
|
|
|
29
29
|
default: string;
|
|
30
30
|
};
|
|
31
31
|
size: {
|
|
32
|
-
type: import("vue").PropType<number | "" | "
|
|
32
|
+
type: import("vue").PropType<number | "" | "default" | "xs" | "sm" | "lg" | "xl">;
|
|
33
33
|
default: ElementSize;
|
|
34
34
|
};
|
|
35
35
|
}>>, {
|
|
36
36
|
reference: import("vue").Ref<HTMLElement | null>;
|
|
37
37
|
}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps & Readonly<import("vue").ExtractPropTypes<{
|
|
38
38
|
icon: {
|
|
39
|
-
type: import("vue").PropType<number | "circle" | "account" | "account-box" | "account-box-outline" | "account-circle" | "account-circle-outline" | "account-group" | "account-group-outline" | "account-multiple" | "account-multiple-outline" | "account-outline" | "alert-octagon" | "alert-octagon-outline" | "api" | "archive" | "archive-outline" | "arrow-left" | "arrow-right" | "bank" | "bank-outline" | "book-alphabet" | "book-multiple" | "book-multiple-outline" | "bookshelf" | "camera" | "cards-outline" | "cards-variant" | "cart-outline" | "chart-box" | "chart-box-outline" | "check" | "check-circle" | "check-circle-outline" | "chevron-down" | "chevron-left" | "chevron-right" | "chevron-up" | "clock" | "clock-fast" | "clock-outline" | "close" | "close-circle" | "close-circle-outline" | "cog" | "contacts" | "contacts-outline" | "copy" | "credit-card" | "credit-card-plus" | "currency" | "database" | "dots-grid" | "dots-horizontal" | "dots-vertical" | "email-open-outline" | "email-outline" | "eye" | "eye-off" | "file-document-plus-outline" | "filmstrip" | "
|
|
39
|
+
type: import("vue").PropType<number | "filter" | "search" | "menu" | "video" | "circle" | "image" | "stop" | "text" | "key" | "account" | "account-box" | "account-box-outline" | "account-circle" | "account-circle-outline" | "account-group" | "account-group-outline" | "account-multiple" | "account-multiple-outline" | "account-outline" | "alert-octagon" | "alert-octagon-outline" | "api" | "archive" | "archive-outline" | "arrow-left" | "arrow-right" | "bank" | "bank-outline" | "book-alphabet" | "book-multiple" | "book-multiple-outline" | "bookshelf" | "camera" | "cards-outline" | "cards-variant" | "cart-outline" | "chart-box" | "chart-box-outline" | "check" | "check-circle" | "check-circle-outline" | "chevron-down" | "chevron-left" | "chevron-right" | "chevron-up" | "clock" | "clock-fast" | "clock-outline" | "close" | "close-circle" | "close-circle-outline" | "cog" | "contacts" | "contacts-outline" | "copy" | "credit-card" | "credit-card-plus" | "currency" | "database" | "dots-grid" | "dots-horizontal" | "dots-vertical" | "email-open-outline" | "email-outline" | "eye" | "eye-off" | "file-document-plus-outline" | "filmstrip" | "fullscreen" | "fullscreen-exit" | "group" | "home" | "home-outline" | "image-album" | "image-album-outline" | "image-outline" | "info-outline" | "key-chain" | "key-variant" | "listbox-outline" | "loading" | "lock" | "lock-outline" | "logout" | "menu-down" | "menu-left" | "menu-right" | "minus" | "minus-circle" | "minus-circle-outline" | "moon" | "movie-open" | "movie-open-outline" | "open-in-new" | "pause" | "pause-circle" | "pencil" | "piggy-bank-outline" | "play" | "play-box" | "play-box-edit-outline" | "play-box-outline" | "play-circle" | "playlist-play" | "plus" | "plus-circle" | "plus-circle-outline" | "progress-clock" | "qrcode-scan" | "refresh" | "replay" | "save" | "shuffle" | "shuffle-disabled" | "shuffle-variant" | "skip-backward" | "skip-forward" | "skip-next" | "skip-previous" | "spotlight" | "store" | "store-outline" | "sun" | "swap" | "swap-horizontal" | "swap-left" | "swap-right" | "system-theme" | "tag-outline" | "text-box" | "text-box-multiple" | "text-box-multiple-outline" | "text-box-outline" | "text-long" | "timer-outline" | "timer-refresh-outline" | "trash-can" | "trash-can-outline" | "ungroup" | "upload" | "upload-box-outline" | "upload-multiple-outline" | "upload-outline" | "video-outline" | "web" | "zip-box">;
|
|
40
40
|
required: true;
|
|
41
41
|
};
|
|
42
42
|
role: {
|
|
@@ -44,7 +44,7 @@ declare const __VLS_component: import('vue').DefineComponent<__VLS_WithDefaults<
|
|
|
44
44
|
default: string;
|
|
45
45
|
};
|
|
46
46
|
size: {
|
|
47
|
-
type: import("vue").PropType<number | "" | "
|
|
47
|
+
type: import("vue").PropType<number | "" | "default" | "xs" | "sm" | "lg" | "xl">;
|
|
48
48
|
default: ElementSize;
|
|
49
49
|
};
|
|
50
50
|
}>>, {
|
|
@@ -59,7 +59,7 @@ declare const __VLS_component: import('vue').DefineComponent<__VLS_WithDefaults<
|
|
|
59
59
|
Defaults: {};
|
|
60
60
|
}, Readonly<import("vue").ExtractPropTypes<{
|
|
61
61
|
icon: {
|
|
62
|
-
type: import("vue").PropType<number | "circle" | "account" | "account-box" | "account-box-outline" | "account-circle" | "account-circle-outline" | "account-group" | "account-group-outline" | "account-multiple" | "account-multiple-outline" | "account-outline" | "alert-octagon" | "alert-octagon-outline" | "api" | "archive" | "archive-outline" | "arrow-left" | "arrow-right" | "bank" | "bank-outline" | "book-alphabet" | "book-multiple" | "book-multiple-outline" | "bookshelf" | "camera" | "cards-outline" | "cards-variant" | "cart-outline" | "chart-box" | "chart-box-outline" | "check" | "check-circle" | "check-circle-outline" | "chevron-down" | "chevron-left" | "chevron-right" | "chevron-up" | "clock" | "clock-fast" | "clock-outline" | "close" | "close-circle" | "close-circle-outline" | "cog" | "contacts" | "contacts-outline" | "copy" | "credit-card" | "credit-card-plus" | "currency" | "database" | "dots-grid" | "dots-horizontal" | "dots-vertical" | "email-open-outline" | "email-outline" | "eye" | "eye-off" | "file-document-plus-outline" | "filmstrip" | "
|
|
62
|
+
type: import("vue").PropType<number | "filter" | "search" | "menu" | "video" | "circle" | "image" | "stop" | "text" | "key" | "account" | "account-box" | "account-box-outline" | "account-circle" | "account-circle-outline" | "account-group" | "account-group-outline" | "account-multiple" | "account-multiple-outline" | "account-outline" | "alert-octagon" | "alert-octagon-outline" | "api" | "archive" | "archive-outline" | "arrow-left" | "arrow-right" | "bank" | "bank-outline" | "book-alphabet" | "book-multiple" | "book-multiple-outline" | "bookshelf" | "camera" | "cards-outline" | "cards-variant" | "cart-outline" | "chart-box" | "chart-box-outline" | "check" | "check-circle" | "check-circle-outline" | "chevron-down" | "chevron-left" | "chevron-right" | "chevron-up" | "clock" | "clock-fast" | "clock-outline" | "close" | "close-circle" | "close-circle-outline" | "cog" | "contacts" | "contacts-outline" | "copy" | "credit-card" | "credit-card-plus" | "currency" | "database" | "dots-grid" | "dots-horizontal" | "dots-vertical" | "email-open-outline" | "email-outline" | "eye" | "eye-off" | "file-document-plus-outline" | "filmstrip" | "fullscreen" | "fullscreen-exit" | "group" | "home" | "home-outline" | "image-album" | "image-album-outline" | "image-outline" | "info-outline" | "key-chain" | "key-variant" | "listbox-outline" | "loading" | "lock" | "lock-outline" | "logout" | "menu-down" | "menu-left" | "menu-right" | "minus" | "minus-circle" | "minus-circle-outline" | "moon" | "movie-open" | "movie-open-outline" | "open-in-new" | "pause" | "pause-circle" | "pencil" | "piggy-bank-outline" | "play" | "play-box" | "play-box-edit-outline" | "play-box-outline" | "play-circle" | "playlist-play" | "plus" | "plus-circle" | "plus-circle-outline" | "progress-clock" | "qrcode-scan" | "refresh" | "replay" | "save" | "shuffle" | "shuffle-disabled" | "shuffle-variant" | "skip-backward" | "skip-forward" | "skip-next" | "skip-previous" | "spotlight" | "store" | "store-outline" | "sun" | "swap" | "swap-horizontal" | "swap-left" | "swap-right" | "system-theme" | "tag-outline" | "text-box" | "text-box-multiple" | "text-box-multiple-outline" | "text-box-outline" | "text-long" | "timer-outline" | "timer-refresh-outline" | "trash-can" | "trash-can-outline" | "ungroup" | "upload" | "upload-box-outline" | "upload-multiple-outline" | "upload-outline" | "video-outline" | "web" | "zip-box">;
|
|
63
63
|
required: true;
|
|
64
64
|
};
|
|
65
65
|
role: {
|
|
@@ -67,7 +67,7 @@ declare const __VLS_component: import('vue').DefineComponent<__VLS_WithDefaults<
|
|
|
67
67
|
default: string;
|
|
68
68
|
};
|
|
69
69
|
size: {
|
|
70
|
-
type: import("vue").PropType<number | "" | "
|
|
70
|
+
type: import("vue").PropType<number | "" | "default" | "xs" | "sm" | "lg" | "xl">;
|
|
71
71
|
default: ElementSize;
|
|
72
72
|
};
|
|
73
73
|
}>>, {
|
|
@@ -95,12 +95,12 @@ declare const __VLS_component: import('vue').DefineComponent<__VLS_WithDefaults<
|
|
|
95
95
|
}>>> & {
|
|
96
96
|
onUpload?: ((val: FileList) => any) | undefined;
|
|
97
97
|
}, {
|
|
98
|
-
hover: boolean;
|
|
99
|
-
size: `${ElementSize}`;
|
|
100
|
-
shape: `${ElementShape}`;
|
|
101
98
|
type: `${ButtonType}`;
|
|
102
99
|
bold: boolean;
|
|
103
100
|
label: string;
|
|
101
|
+
hover: boolean;
|
|
102
|
+
size: `${ElementSize}`;
|
|
103
|
+
shape: `${ElementShape}`;
|
|
104
104
|
disabled: boolean;
|
|
105
105
|
iconPosition: "left" | "right";
|
|
106
106
|
iconProps: Partial<import("../types.js").IconProps> & {
|
|
@@ -24,10 +24,10 @@ declare const __VLS_component: import('vue').DefineComponent<__VLS_WithDefaults<
|
|
|
24
24
|
}>>> & {
|
|
25
25
|
onClosed?: (() => any) | undefined;
|
|
26
26
|
}, {
|
|
27
|
+
title: string;
|
|
27
28
|
style: {
|
|
28
29
|
footer: string;
|
|
29
30
|
};
|
|
30
|
-
title: string;
|
|
31
31
|
direction: "rtl" | "ltr";
|
|
32
32
|
showHeader: boolean;
|
|
33
33
|
}, {}>;
|
|
@@ -100,6 +100,7 @@ declare const __VLS_component: import('vue').DefineComponent<{
|
|
|
100
100
|
};
|
|
101
101
|
}, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
102
102
|
"update:model-value": (val: any) => void;
|
|
103
|
+
"initial-hydration": (val: any) => void;
|
|
103
104
|
}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
|
|
104
105
|
modelValue: import("vue").PropType<InputSelectValue>;
|
|
105
106
|
filter: {
|
|
@@ -166,6 +167,7 @@ declare const __VLS_component: import('vue').DefineComponent<{
|
|
|
166
167
|
};
|
|
167
168
|
}>> & {
|
|
168
169
|
"onUpdate:model-value"?: ((val: any) => any) | undefined;
|
|
170
|
+
"onInitial-hydration"?: ((val: any) => any) | undefined;
|
|
169
171
|
}, {
|
|
170
172
|
filter: (input: string, option: InputSelectOption) => boolean;
|
|
171
173
|
size: FormControlSize;
|
|
@@ -2,14 +2,14 @@ import { FormControlSize } from '../../enums/ui.js';
|
|
|
2
2
|
|
|
3
3
|
declare const _default: import('vue').DefineComponent<{
|
|
4
4
|
modelValue: import("vue").PropType<any>;
|
|
5
|
-
size: {
|
|
6
|
-
type: import("vue").PropType<"sm" | "default">;
|
|
7
|
-
default: FormControlSize;
|
|
8
|
-
};
|
|
9
5
|
type: {
|
|
10
6
|
type: import("vue").PropType<string>;
|
|
11
7
|
default: string;
|
|
12
8
|
};
|
|
9
|
+
size: {
|
|
10
|
+
type: import("vue").PropType<"default" | "sm">;
|
|
11
|
+
default: FormControlSize;
|
|
12
|
+
};
|
|
13
13
|
disabled: {
|
|
14
14
|
type: import("vue").PropType<boolean>;
|
|
15
15
|
default: boolean;
|
|
@@ -34,14 +34,14 @@ declare const _default: import('vue').DefineComponent<{
|
|
|
34
34
|
"keyup.enter": (val: any) => void;
|
|
35
35
|
}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
|
|
36
36
|
modelValue: import("vue").PropType<any>;
|
|
37
|
-
size: {
|
|
38
|
-
type: import("vue").PropType<"sm" | "default">;
|
|
39
|
-
default: FormControlSize;
|
|
40
|
-
};
|
|
41
37
|
type: {
|
|
42
38
|
type: import("vue").PropType<string>;
|
|
43
39
|
default: string;
|
|
44
40
|
};
|
|
41
|
+
size: {
|
|
42
|
+
type: import("vue").PropType<"default" | "sm">;
|
|
43
|
+
default: FormControlSize;
|
|
44
|
+
};
|
|
45
45
|
disabled: {
|
|
46
46
|
type: import("vue").PropType<boolean>;
|
|
47
47
|
default: boolean;
|
|
@@ -65,8 +65,8 @@ declare const _default: import('vue').DefineComponent<{
|
|
|
65
65
|
}>> & {
|
|
66
66
|
"onKeyup.enter"?: ((val: any) => any) | undefined;
|
|
67
67
|
}, {
|
|
68
|
-
size: `${FormControlSize}`;
|
|
69
68
|
type: string;
|
|
69
|
+
size: `${FormControlSize}`;
|
|
70
70
|
disabled: boolean;
|
|
71
71
|
readonly: boolean;
|
|
72
72
|
placeholder: string;
|
|
@@ -7,6 +7,7 @@ declare function __VLS_template(): {
|
|
|
7
7
|
};
|
|
8
8
|
declare const __VLS_component: import('vue').DefineComponent<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<ModalProps>, {
|
|
9
9
|
title: string;
|
|
10
|
+
canClose: boolean;
|
|
10
11
|
showHeader: boolean;
|
|
11
12
|
injectStyle: () => {
|
|
12
13
|
wrapper: string;
|
|
@@ -19,6 +20,7 @@ declare const __VLS_component: import('vue').DefineComponent<__VLS_WithDefaults<
|
|
|
19
20
|
closed: () => void;
|
|
20
21
|
}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<ModalProps>, {
|
|
21
22
|
title: string;
|
|
23
|
+
canClose: boolean;
|
|
22
24
|
showHeader: boolean;
|
|
23
25
|
injectStyle: () => {
|
|
24
26
|
wrapper: string;
|
|
@@ -33,6 +35,7 @@ declare const __VLS_component: import('vue').DefineComponent<__VLS_WithDefaults<
|
|
|
33
35
|
title: string;
|
|
34
36
|
showHeader: boolean;
|
|
35
37
|
disableStyle: boolean;
|
|
38
|
+
canClose: boolean;
|
|
36
39
|
injectStyle: any;
|
|
37
40
|
hasBackdrop: boolean;
|
|
38
41
|
}, {}>;
|
|
@@ -17,8 +17,8 @@ declare const __VLS_component: import('vue').DefineComponent<__VLS_WithDefaults<
|
|
|
17
17
|
}>>> & {
|
|
18
18
|
onConfirm?: (() => any) | undefined;
|
|
19
19
|
}, {
|
|
20
|
-
placement: `${ElementPosition}`;
|
|
21
20
|
message: string;
|
|
21
|
+
placement: `${ElementPosition}`;
|
|
22
22
|
}, {}>;
|
|
23
23
|
declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, ReturnType<typeof __VLS_template>>;
|
|
24
24
|
export default _default;
|
|
@@ -22,8 +22,8 @@ import { InputPhone } from './InputPhone/index.js';
|
|
|
22
22
|
import { InputPassword } from './InputPassword/index.js';
|
|
23
23
|
import { InputMultiplier } from './InputMultiplier/index.js';
|
|
24
24
|
import { InputDate } from './InputDate/index.js';
|
|
25
|
-
import { InputColor } from './InputColor/index.js';
|
|
26
25
|
import { InputCryptoCurrency } from './InputCryptoCurrency/index.js';
|
|
26
|
+
import { InputColor } from './InputColor/index.js';
|
|
27
27
|
import { InputCheckbox } from './InputCheckbox/index.js';
|
|
28
28
|
import { InputAvatar } from './InputAvatar/index.js';
|
|
29
29
|
import { Icon } from './Icon/index.js';
|
|
@@ -37,10 +37,12 @@ import { Form } from './Form/index.js';
|
|
|
37
37
|
import { FileDrop } from './FileDrop/index.js';
|
|
38
38
|
import { Dropdown } from './Dropdown/index.js';
|
|
39
39
|
import { Drawer } from './Drawer/index.js';
|
|
40
|
+
import { DialogProvider } from './DialogProvider/index.js';
|
|
40
41
|
import { ChartTreemap } from './ChartTreemap/index.js';
|
|
41
42
|
import { ChartLine } from './ChartLine/index.js';
|
|
42
43
|
import { Button } from './Button/index.js';
|
|
43
44
|
import { Backdrop } from './Backdrop/index.js';
|
|
44
45
|
import { Avatar } from './Avatar/index.js';
|
|
46
|
+
import { Alert } from './Alert/index.js';
|
|
45
47
|
|
|
46
|
-
export { Avatar, Backdrop, Button, ChartLine, ChartTreemap, Drawer, Dropdown, FileDrop, Form, FormItem, GraphyEmpty, GraphyLabel, GraphyPrice, GraphySubtitle, GraphyTitle, Icon, InputAvatar, InputCheckbox,
|
|
48
|
+
export { Alert, Avatar, Backdrop, Button, ChartLine, ChartTreemap, DialogProvider, Drawer, Dropdown, FileDrop, Form, FormItem, GraphyEmpty, GraphyLabel, GraphyPrice, GraphySubtitle, GraphyTitle, Icon, InputAvatar, InputCheckbox, InputColor, InputCryptoCurrency, InputDate, InputMultiplier, InputPassword, InputPhone, InputPrice, InputRadio, InputSelect, InputSwitch, InputText, InputTextarea, Link, Modal, ModalForm, Pagination, Popconfirm, Popover, ProgressCircle, ProgressLine, SensitiveInfo, Skeleton, Tab, Table, Tag, Toast, };
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { ToastPlugin } from './Toast/index.js';
|
|
2
2
|
import { TagPlugin } from './Tag/index.js';
|
|
3
|
-
import { TablePlugin } from './Table/index.js';
|
|
4
3
|
import { TabPlugin } from './Tab/index.js';
|
|
4
|
+
import { TablePlugin } from './Table/index.js';
|
|
5
5
|
import { SkeletonPlugin } from './Skeleton/index.js';
|
|
6
6
|
import { SensitiveInfoPlugin } from './SensitiveInfo/index.js';
|
|
7
7
|
import { ProgressLinePlugin } from './ProgressLine/index.js';
|
|
@@ -9,11 +9,11 @@ import { ProgressCirclePlugin } from './ProgressCircle/index.js';
|
|
|
9
9
|
import { PopoverPlugin } from './Popover/index.js';
|
|
10
10
|
import { PopconfirmPlugin } from './Popconfirm/index.js';
|
|
11
11
|
import { PaginationPlugin } from './Pagination/index.js';
|
|
12
|
-
import { ModalFormPlugin } from './ModalForm/index.js';
|
|
13
12
|
import { ModalPlugin } from './Modal/index.js';
|
|
13
|
+
import { ModalFormPlugin } from './ModalForm/index.js';
|
|
14
14
|
import { LinkPlugin } from './Link/index.js';
|
|
15
|
-
import { InputTextareaPlugin } from './InputTextarea/index.js';
|
|
16
15
|
import { InputTextPlugin } from './InputText/index.js';
|
|
16
|
+
import { InputTextareaPlugin } from './InputTextarea/index.js';
|
|
17
17
|
import { InputSwitchPlugin } from './InputSwitch/index.js';
|
|
18
18
|
import { InputSelectPlugin } from './InputSelect/index.js';
|
|
19
19
|
import { InputRadioPlugin } from './InputRadio/index.js';
|
|
@@ -22,8 +22,8 @@ import { InputPhonePlugin } from './InputPhone/index.js';
|
|
|
22
22
|
import { InputPasswordPlugin } from './InputPassword/index.js';
|
|
23
23
|
import { InputMultiplierPlugin } from './InputMultiplier/index.js';
|
|
24
24
|
import { InputDatePlugin } from './InputDate/index.js';
|
|
25
|
-
import { InputColorPlugin } from './InputColor/index.js';
|
|
26
25
|
import { InputCryptoCurrencyPlugin } from './InputCryptoCurrency/index.js';
|
|
26
|
+
import { InputColorPlugin } from './InputColor/index.js';
|
|
27
27
|
import { InputCheckboxPlugin } from './InputCheckbox/index.js';
|
|
28
28
|
import { InputAvatarPlugin } from './InputAvatar/index.js';
|
|
29
29
|
import { IconPlugin } from './Icon/index.js';
|
|
@@ -32,15 +32,17 @@ import { GraphySubtitlePlugin } from './GraphySubtitle/index.js';
|
|
|
32
32
|
import { GraphyPricePlugin } from './GraphyPrice/index.js';
|
|
33
33
|
import { GraphyLabelPlugin } from './GraphyLabel/index.js';
|
|
34
34
|
import { GraphyEmptyPlugin } from './GraphyEmpty/index.js';
|
|
35
|
-
import { FormItemPlugin } from './FormItem/index.js';
|
|
36
35
|
import { FormPlugin } from './Form/index.js';
|
|
36
|
+
import { FormItemPlugin } from './FormItem/index.js';
|
|
37
37
|
import { FileDropPlugin } from './FileDrop/index.js';
|
|
38
38
|
import { DropdownPlugin } from './Dropdown/index.js';
|
|
39
39
|
import { DrawerPlugin } from './Drawer/index.js';
|
|
40
|
+
import { DialogProviderPlugin } from './DialogProvider/index.js';
|
|
40
41
|
import { ChartTreemapPlugin } from './ChartTreemap/index.js';
|
|
41
42
|
import { ChartLinePlugin } from './ChartLine/index.js';
|
|
42
43
|
import { ButtonPlugin } from './Button/index.js';
|
|
43
44
|
import { BackdropPlugin } from './Backdrop/index.js';
|
|
44
45
|
import { AvatarPlugin } from './Avatar/index.js';
|
|
46
|
+
import { AlertPlugin } from './Alert/index.js';
|
|
45
47
|
|
|
46
|
-
export { AvatarPlugin, BackdropPlugin, ButtonPlugin, ChartLinePlugin, ChartTreemapPlugin, DrawerPlugin, DropdownPlugin, FileDropPlugin,
|
|
48
|
+
export { AlertPlugin, AvatarPlugin, BackdropPlugin, ButtonPlugin, ChartLinePlugin, ChartTreemapPlugin, DialogProviderPlugin, DrawerPlugin, DropdownPlugin, FileDropPlugin, FormItemPlugin, FormPlugin, GraphyEmptyPlugin, GraphyLabelPlugin, GraphyPricePlugin, GraphySubtitlePlugin, GraphyTitlePlugin, IconPlugin, InputAvatarPlugin, InputCheckboxPlugin, InputColorPlugin, InputCryptoCurrencyPlugin, InputDatePlugin, InputMultiplierPlugin, InputPasswordPlugin, InputPhonePlugin, InputPricePlugin, InputRadioPlugin, InputSelectPlugin, InputSwitchPlugin, InputTextareaPlugin, InputTextPlugin, LinkPlugin, ModalFormPlugin, ModalPlugin, PaginationPlugin, PopconfirmPlugin, PopoverPlugin, ProgressCirclePlugin, ProgressLinePlugin, SensitiveInfoPlugin, SkeletonPlugin, TablePlugin, TabPlugin, TagPlugin, ToastPlugin, };
|
|
@@ -41,5 +41,6 @@ import { ChartLineProps } from './ChartLine/index.js';
|
|
|
41
41
|
import { ButtonProps, ButtonEvents } from './Button/index.js';
|
|
42
42
|
import { BackdropProps, BackdropEvents } from './Backdrop/index.js';
|
|
43
43
|
import { AvatarProps } from './Avatar/index.js';
|
|
44
|
+
import { AlertProps } from './Alert/index.js';
|
|
44
45
|
|
|
45
|
-
export type { AvatarProps, BackdropProps, BackdropEvents, ButtonProps, ButtonEvents, ChartLineProps, ChartTreemapProps, DrawerProps, DrawerEvents, DropdownProps, DropdownEvents, FileDropProps, FileDropEvents, FormProps, FormEvents, FormItemProps, GraphyEmptyProps, GraphyLabelProps, GraphyPriceProps, GraphySubtitleProps, GraphyTitleProps, IconProps, InputAvatarProps, InputAvatarEvents, InputCheckboxProps, InputCheckboxEvents, InputColorProps, InputColorEvents, InputDateProps, InputDateEvents, InputMultiplierEvents, InputPasswordModel, InputPasswordProps, InputPasswordEvents, InputPhoneProps, InputPhoneEvents, InputPriceModel, InputPriceProps, InputPriceEvents, InputRadioProps, InputRadioGroupProps, InputRadioGroupEvents, InputSelectValue, InputSelectProps, InputSelectOption, InputSelectEvents, InputSwitchProps, InputSwitchEvents, InputMultiplierProps, InputTextProps, InputTextEvents, InputTextareaProps, InputTextareaEvents, LinkProps, LinkEvents, ModalProps, ModalEvents, ModalFormProps, ModalFormEvents, PaginationProps, PopconfirmProps, PopconfirmEvents, PopoverProps, ProgressCircleProps, ProgressLineProps, SensitiveInfoProps, SkeletonProps, TabProps, TableProps, TableEvents, TagEvents, TagProps, ToastProps, ToastEvents, };
|
|
46
|
+
export type { AlertProps, AvatarProps, BackdropProps, BackdropEvents, ButtonProps, ButtonEvents, ChartLineProps, ChartTreemapProps, DrawerProps, DrawerEvents, DropdownProps, DropdownEvents, FileDropProps, FileDropEvents, FormProps, FormEvents, FormItemProps, GraphyEmptyProps, GraphyLabelProps, GraphyPriceProps, GraphySubtitleProps, GraphyTitleProps, IconProps, InputAvatarProps, InputAvatarEvents, InputCheckboxProps, InputCheckboxEvents, InputColorProps, InputColorEvents, InputDateProps, InputDateEvents, InputMultiplierEvents, InputPasswordModel, InputPasswordProps, InputPasswordEvents, InputPhoneProps, InputPhoneEvents, InputPriceModel, InputPriceProps, InputPriceEvents, InputRadioProps, InputRadioGroupProps, InputRadioGroupEvents, InputSelectValue, InputSelectProps, InputSelectOption, InputSelectEvents, InputSwitchProps, InputSwitchEvents, InputMultiplierProps, InputTextProps, InputTextEvents, InputTextareaProps, InputTextareaEvents, LinkProps, LinkEvents, ModalProps, ModalEvents, ModalFormProps, ModalFormEvents, PaginationProps, PopconfirmProps, PopconfirmEvents, PopoverProps, ProgressCircleProps, ProgressLineProps, SensitiveInfoProps, SkeletonProps, TabProps, TableProps, TableEvents, TagEvents, TagProps, ToastProps, ToastEvents, };
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import { default as useRender } from './useRender.js';
|
|
2
2
|
import { default as useDomHelpers } from './useDomHelpers.js';
|
|
3
|
+
import { default as useDialog } from './useDialog.js';
|
|
3
4
|
import { default as useClipboard } from './useClipboard.js';
|
|
4
5
|
import { default as useBreakpoints } from './useBreakpoints.js';
|
|
5
6
|
|
|
6
|
-
export { useBreakpoints, useClipboard, useDomHelpers, useRender };
|
|
7
|
+
export { useBreakpoints, useClipboard, useDialog, useDomHelpers, useRender };
|
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
import { AlertProps } from '../components/Alert/types.js';
|
|
2
|
+
|
|
3
|
+
type AlertOptions = AlertProps & {
|
|
4
|
+
onConfirm?: () => void;
|
|
5
|
+
onClose?: () => void;
|
|
6
|
+
};
|
|
7
|
+
export default function useDialog(): {
|
|
8
|
+
alerts: import('vue').Ref<{
|
|
9
|
+
id: string;
|
|
10
|
+
events: {
|
|
11
|
+
title?: string | undefined;
|
|
12
|
+
message?: string | string[] | undefined;
|
|
13
|
+
confirm?: boolean | undefined;
|
|
14
|
+
closeTitle?: string | undefined;
|
|
15
|
+
cancelTitle?: string | undefined;
|
|
16
|
+
confirmTitle?: string | undefined;
|
|
17
|
+
onConfirm?: (() => void) | undefined;
|
|
18
|
+
onClose?: (() => void) | undefined;
|
|
19
|
+
};
|
|
20
|
+
options: {
|
|
21
|
+
title?: string | undefined;
|
|
22
|
+
message?: string | string[] | undefined;
|
|
23
|
+
confirm?: boolean | undefined;
|
|
24
|
+
closeTitle?: string | undefined;
|
|
25
|
+
cancelTitle?: string | undefined;
|
|
26
|
+
confirmTitle?: string | undefined;
|
|
27
|
+
onConfirm?: (() => void) | undefined;
|
|
28
|
+
onClose?: (() => void) | undefined;
|
|
29
|
+
};
|
|
30
|
+
}[]>;
|
|
31
|
+
alert: (options: AlertOptions) => void;
|
|
32
|
+
};
|
|
33
|
+
export {};
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
import { ref as f } from "vue";
|
|
2
|
+
const n = f([]);
|
|
3
|
+
function u() {
|
|
4
|
+
return {
|
|
5
|
+
alerts: n,
|
|
6
|
+
alert: (e) => {
|
|
7
|
+
const t = Date.now().toString(), s = () => {
|
|
8
|
+
const l = n.value.findIndex((r) => r.id === t);
|
|
9
|
+
l !== -1 && n.value.splice(l, 1);
|
|
10
|
+
}, i = {
|
|
11
|
+
onClose: () => {
|
|
12
|
+
e?.onClose && e.onClose(), s();
|
|
13
|
+
},
|
|
14
|
+
onConfirm: () => {
|
|
15
|
+
e?.onConfirm && e.onConfirm(), s();
|
|
16
|
+
}
|
|
17
|
+
}, o = { ...e };
|
|
18
|
+
delete o?.onClose, delete o?.onConfirm, n.value.push({
|
|
19
|
+
id: t,
|
|
20
|
+
events: i,
|
|
21
|
+
options: o
|
|
22
|
+
});
|
|
23
|
+
}
|
|
24
|
+
};
|
|
25
|
+
}
|
|
26
|
+
export {
|
|
27
|
+
u
|
|
28
|
+
};
|
package/package.json
CHANGED
package/volar.d.ts
CHANGED
|
@@ -1,49 +1,51 @@
|
|
|
1
1
|
declare module "vue" {
|
|
2
2
|
export interface GlobalComponents {
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
3
|
+
TAlert: typeof import("@caipira/tamandua/dist/types/components/Alert")["Alert"];
|
|
4
|
+
TAvatar: typeof import("@caipira/tamandua/dist/types/components/Avatar")["Avatar"];
|
|
5
|
+
TBackdrop: typeof import("@caipira/tamandua/dist/types/components/Backdrop")["Backdrop"];
|
|
6
|
+
TButton: typeof import("@caipira/tamandua/dist/types/components/Button")["Button"];
|
|
7
|
+
TChartLine: typeof import("@caipira/tamandua/dist/types/components/ChartLine")["ChartLine"];
|
|
8
|
+
TChartTreemap: typeof import("@caipira/tamandua/dist/types/components/ChartTreemap")["ChartTreemap"];
|
|
9
|
+
TDialogProvider: typeof import("@caipira/tamandua/dist/types/components/DialogProvider")["DialogProvider"];
|
|
10
|
+
TDrawer: typeof import("@caipira/tamandua/dist/types/components/Drawer")["Drawer"];
|
|
11
|
+
TDropdown: typeof import("@caipira/tamandua/dist/types/components/Dropdown")["Dropdown"];
|
|
12
|
+
TFileDrop: typeof import("@caipira/tamandua/dist/types/components/FileDrop")["FileDrop"];
|
|
13
|
+
TForm: typeof import("@caipira/tamandua/dist/types/components/Form")["Form"];
|
|
14
|
+
TFormItem: typeof import("@caipira/tamandua/dist/types/components/FormItem")["FormItem"];
|
|
15
|
+
TGraphyEmpty: typeof import("@caipira/tamandua/dist/types/components/GraphyEmpty")["GraphyEmpty"];
|
|
16
|
+
TGraphyLabel: typeof import("@caipira/tamandua/dist/types/components/GraphyLabel")["GraphyLabel"];
|
|
17
|
+
TGraphyPrice: typeof import("@caipira/tamandua/dist/types/components/GraphyPrice")["GraphyPrice"];
|
|
18
|
+
TGraphySubtitle: typeof import("@caipira/tamandua/dist/types/components/GraphySubtitle")["GraphySubtitle"];
|
|
19
|
+
TGraphyTitle: typeof import("@caipira/tamandua/dist/types/components/GraphyTitle")["GraphyTitle"];
|
|
20
|
+
TIcon: typeof import("@caipira/tamandua/dist/types/components/Icon")["Icon"];
|
|
21
|
+
TInputAvatar: typeof import("@caipira/tamandua/dist/types/components/InputAvatar")["InputAvatar"];
|
|
22
|
+
TInputCheckbox: typeof import("@caipira/tamandua/dist/types/components/InputCheckbox")["InputCheckbox"];
|
|
23
|
+
TInputColor: typeof import("@caipira/tamandua/dist/types/components/InputColor")["InputColor"];
|
|
24
|
+
TInputCryptoCurrency: typeof import("@caipira/tamandua/dist/types/components/InputCryptoCurrency")["InputCryptoCurrency"];
|
|
25
|
+
TInputDate: typeof import("@caipira/tamandua/dist/types/components/InputDate")["InputDate"];
|
|
26
|
+
TInputMultiplier: typeof import("@caipira/tamandua/dist/types/components/InputMultiplier")["InputMultiplier"];
|
|
27
|
+
TInputPassword: typeof import("@caipira/tamandua/dist/types/components/InputPassword")["InputPassword"];
|
|
28
|
+
TInputPhone: typeof import("@caipira/tamandua/dist/types/components/InputPhone")["InputPhone"];
|
|
29
|
+
TInputPrice: typeof import("@caipira/tamandua/dist/types/components/InputPrice")["InputPrice"];
|
|
30
|
+
TInputRadio: typeof import("@caipira/tamandua/dist/types/components/InputRadio")["InputRadio"];
|
|
31
|
+
TInputSelect: typeof import("@caipira/tamandua/dist/types/components/InputSelect")["InputSelect"];
|
|
32
|
+
TInputSwitch: typeof import("@caipira/tamandua/dist/types/components/InputSwitch")["InputSwitch"];
|
|
33
|
+
TInputText: typeof import("@caipira/tamandua/dist/types/components/InputText")["InputText"];
|
|
34
|
+
TInputTextarea: typeof import("@caipira/tamandua/dist/types/components/InputTextarea")["InputTextarea"];
|
|
35
|
+
TLink: typeof import("@caipira/tamandua/dist/types/components/Link")["Link"];
|
|
36
|
+
TModal: typeof import("@caipira/tamandua/dist/types/components/Modal")["Modal"];
|
|
37
|
+
TModalForm: typeof import("@caipira/tamandua/dist/types/components/ModalForm")["ModalForm"];
|
|
38
|
+
TPagination: typeof import("@caipira/tamandua/dist/types/components/Pagination")["Pagination"];
|
|
39
|
+
TPopconfirm: typeof import("@caipira/tamandua/dist/types/components/Popconfirm")["Popconfirm"];
|
|
40
|
+
TPopover: typeof import("@caipira/tamandua/dist/types/components/Popover")["Popover"];
|
|
41
|
+
TProgressCircle: typeof import("@caipira/tamandua/dist/types/components/ProgressCircle")["ProgressCircle"];
|
|
42
|
+
TProgressLine: typeof import("@caipira/tamandua/dist/types/components/ProgressLine")["ProgressLine"];
|
|
43
|
+
TSensitiveInfo: typeof import("@caipira/tamandua/dist/types/components/SensitiveInfo")["SensitiveInfo"];
|
|
44
|
+
TSkeleton: typeof import("@caipira/tamandua/dist/types/components/Skeleton")["Skeleton"];
|
|
45
|
+
TTab: typeof import("@caipira/tamandua/dist/types/components/Tab")["Tab"];
|
|
46
|
+
TTable: typeof import("@caipira/tamandua/dist/types/components/Table")["Table"];
|
|
47
|
+
TTag: typeof import("@caipira/tamandua/dist/types/components/Tag")["Tag"];
|
|
48
|
+
TToast: typeof import("@caipira/tamandua/dist/types/components/Toast")["Toast"];
|
|
47
49
|
}
|
|
48
50
|
}
|
|
49
51
|
export {};
|