@caipira/tamandua 0.0.100 → 0.0.102
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-DdpepOBn.js +24 -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-BULzzlLD.js +89 -0
- package/dist/components.js +92 -88
- package/dist/composables.js +11 -9
- package/dist/{plugin-CPpRqUnI.js → plugin-BbE8ivq1.js} +1 -1
- package/dist/{plugin-TMApjjiI.js → plugin-BeifNbnf.js} +1 -1
- package/dist/plugin-NlTwzbQb.js +10 -0
- package/dist/plugin-W9_PLHv4.js +10 -0
- package/dist/plugins-iuR3SgQL.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/Dropdown/Dropdown.vue.d.ts +1 -1
- package/dist/types/components/InputSelect/InputSelect.vue.d.ts +14 -12
- 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.story.d.ts +21 -0
- package/dist/types/components/Modal/Modal.vue.d.ts +19 -9
- package/dist/types/components/Modal/types.d.ts +24 -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 +471 -0
- package/dist/useDialog-BOJPIAnz.js +42 -0
- package/package.json +1 -1
- package/volar.d.ts +46 -44
- package/dist/Modal.vue_vue_type_script_setup_true_lang-60BGY-iH.js +0 -81
- package/dist/plugins-CyxTeM7y.js +0 -116
|
@@ -0,0 +1,471 @@
|
|
|
1
|
+
import { AlertProps } from '../components/Alert/types.js';
|
|
2
|
+
import { ModalProps } from '../components/Modal/types.js';
|
|
3
|
+
|
|
4
|
+
type ModalOptions = ModalProps & {
|
|
5
|
+
onClose?: () => void;
|
|
6
|
+
};
|
|
7
|
+
type AlertOptions = AlertProps & {
|
|
8
|
+
onConfirm?: () => void;
|
|
9
|
+
onClose?: () => void;
|
|
10
|
+
};
|
|
11
|
+
export default function useDialog(): {
|
|
12
|
+
modals: import('vue').Ref<{
|
|
13
|
+
id: string;
|
|
14
|
+
events: {
|
|
15
|
+
is?: import("vue").FunctionalComponent<any, {}, any, {}> | {
|
|
16
|
+
new (...args: any[]): any;
|
|
17
|
+
__isFragment?: never;
|
|
18
|
+
__isTeleport?: never;
|
|
19
|
+
__isSuspense?: never;
|
|
20
|
+
} | {
|
|
21
|
+
[x: string]: any;
|
|
22
|
+
setup?: ((this: void, props: import("@vue/shared").LooseRequired<any>, ctx: {
|
|
23
|
+
attrs: {
|
|
24
|
+
[x: string]: unknown;
|
|
25
|
+
};
|
|
26
|
+
slots: Readonly<{
|
|
27
|
+
[name: string]: import("vue").Slot<any> | undefined;
|
|
28
|
+
}>;
|
|
29
|
+
emit: ((event: unknown, ...args: any[]) => void) | ((event: string, ...args: any[]) => void);
|
|
30
|
+
expose: (exposed?: Record<string, any>) => void;
|
|
31
|
+
}) => any) | undefined;
|
|
32
|
+
name?: string | undefined;
|
|
33
|
+
template?: string | object | undefined;
|
|
34
|
+
render?: Function | undefined;
|
|
35
|
+
components?: Record<string, import("vue").Component> | undefined;
|
|
36
|
+
directives?: Record<string, import("vue").Directive> | undefined;
|
|
37
|
+
inheritAttrs?: boolean | undefined;
|
|
38
|
+
emits?: any;
|
|
39
|
+
slots?: {} | undefined;
|
|
40
|
+
expose?: string[] | undefined;
|
|
41
|
+
serverPrefetch?: (() => void | Promise<any>) | undefined;
|
|
42
|
+
compilerOptions?: {
|
|
43
|
+
isCustomElement?: ((tag: string) => boolean) | undefined;
|
|
44
|
+
whitespace?: "preserve" | "condense" | undefined;
|
|
45
|
+
comments?: boolean | undefined;
|
|
46
|
+
delimiters?: [string, string] | undefined;
|
|
47
|
+
} | undefined;
|
|
48
|
+
call?: ((this: unknown, ...args: unknown[]) => never) | undefined;
|
|
49
|
+
__isFragment?: never | undefined;
|
|
50
|
+
__isTeleport?: never | undefined;
|
|
51
|
+
__isSuspense?: never | undefined;
|
|
52
|
+
__defaults?: any;
|
|
53
|
+
compatConfig?: {
|
|
54
|
+
GLOBAL_MOUNT?: boolean | "suppress-warning" | undefined;
|
|
55
|
+
GLOBAL_MOUNT_CONTAINER?: boolean | "suppress-warning" | undefined;
|
|
56
|
+
GLOBAL_EXTEND?: boolean | "suppress-warning" | undefined;
|
|
57
|
+
GLOBAL_PROTOTYPE?: boolean | "suppress-warning" | undefined;
|
|
58
|
+
GLOBAL_SET?: boolean | "suppress-warning" | undefined;
|
|
59
|
+
GLOBAL_DELETE?: boolean | "suppress-warning" | undefined;
|
|
60
|
+
GLOBAL_OBSERVABLE?: boolean | "suppress-warning" | undefined;
|
|
61
|
+
GLOBAL_PRIVATE_UTIL?: boolean | "suppress-warning" | undefined;
|
|
62
|
+
CONFIG_SILENT?: boolean | "suppress-warning" | undefined;
|
|
63
|
+
CONFIG_DEVTOOLS?: boolean | "suppress-warning" | undefined;
|
|
64
|
+
CONFIG_KEY_CODES?: boolean | "suppress-warning" | undefined;
|
|
65
|
+
CONFIG_PRODUCTION_TIP?: boolean | "suppress-warning" | undefined;
|
|
66
|
+
CONFIG_IGNORED_ELEMENTS?: boolean | "suppress-warning" | undefined;
|
|
67
|
+
CONFIG_WHITESPACE?: boolean | "suppress-warning" | undefined;
|
|
68
|
+
CONFIG_OPTION_MERGE_STRATS?: boolean | "suppress-warning" | undefined;
|
|
69
|
+
INSTANCE_SET?: boolean | "suppress-warning" | undefined;
|
|
70
|
+
INSTANCE_DELETE?: boolean | "suppress-warning" | undefined;
|
|
71
|
+
INSTANCE_DESTROY?: boolean | "suppress-warning" | undefined;
|
|
72
|
+
INSTANCE_EVENT_EMITTER?: boolean | "suppress-warning" | undefined;
|
|
73
|
+
INSTANCE_EVENT_HOOKS?: boolean | "suppress-warning" | undefined;
|
|
74
|
+
INSTANCE_CHILDREN?: boolean | "suppress-warning" | undefined;
|
|
75
|
+
INSTANCE_LISTENERS?: boolean | "suppress-warning" | undefined;
|
|
76
|
+
INSTANCE_SCOPED_SLOTS?: boolean | "suppress-warning" | undefined;
|
|
77
|
+
INSTANCE_ATTRS_CLASS_STYLE?: boolean | "suppress-warning" | undefined;
|
|
78
|
+
OPTIONS_DATA_FN?: boolean | "suppress-warning" | undefined;
|
|
79
|
+
OPTIONS_DATA_MERGE?: boolean | "suppress-warning" | undefined;
|
|
80
|
+
OPTIONS_BEFORE_DESTROY?: boolean | "suppress-warning" | undefined;
|
|
81
|
+
OPTIONS_DESTROYED?: boolean | "suppress-warning" | undefined;
|
|
82
|
+
WATCH_ARRAY?: boolean | "suppress-warning" | undefined;
|
|
83
|
+
PROPS_DEFAULT_THIS?: boolean | "suppress-warning" | undefined;
|
|
84
|
+
V_ON_KEYCODE_MODIFIER?: boolean | "suppress-warning" | undefined;
|
|
85
|
+
CUSTOM_DIR?: boolean | "suppress-warning" | undefined;
|
|
86
|
+
ATTR_FALSE_VALUE?: boolean | "suppress-warning" | undefined;
|
|
87
|
+
ATTR_ENUMERATED_COERCION?: boolean | "suppress-warning" | undefined;
|
|
88
|
+
TRANSITION_CLASSES?: boolean | "suppress-warning" | undefined;
|
|
89
|
+
TRANSITION_GROUP_ROOT?: boolean | "suppress-warning" | undefined;
|
|
90
|
+
COMPONENT_ASYNC?: boolean | "suppress-warning" | undefined;
|
|
91
|
+
COMPONENT_FUNCTIONAL?: boolean | "suppress-warning" | undefined;
|
|
92
|
+
COMPONENT_V_MODEL?: boolean | "suppress-warning" | undefined;
|
|
93
|
+
RENDER_FUNCTION?: boolean | "suppress-warning" | undefined;
|
|
94
|
+
FILTERS?: boolean | "suppress-warning" | undefined;
|
|
95
|
+
PRIVATE_APIS?: boolean | "suppress-warning" | undefined;
|
|
96
|
+
MODE?: 2 | 3 | ((comp: import("vue").Component | null) => 2 | 3) | undefined;
|
|
97
|
+
} | undefined;
|
|
98
|
+
data?: ((this: any, vm: any) => any) | undefined;
|
|
99
|
+
computed?: import("vue").ComputedOptions | undefined;
|
|
100
|
+
methods?: import("vue").MethodOptions | undefined;
|
|
101
|
+
watch?: {
|
|
102
|
+
[x: string]: (string | import("vue").WatchCallback<any, any> | ({
|
|
103
|
+
handler: import("vue").WatchCallback | string;
|
|
104
|
+
} & import("vue").WatchOptions<boolean>)) | (string | import("vue").WatchCallback<any, any> | ({
|
|
105
|
+
handler: import("vue").WatchCallback | string;
|
|
106
|
+
} & import("vue").WatchOptions<boolean>))[];
|
|
107
|
+
} | undefined;
|
|
108
|
+
provide?: import("vue").ComponentProvideOptions | undefined;
|
|
109
|
+
inject?: {} | string[] | undefined;
|
|
110
|
+
filters?: Record<string, Function> | undefined;
|
|
111
|
+
mixins?: any[] | undefined;
|
|
112
|
+
extends?: any;
|
|
113
|
+
beforeCreate?: (() => void) | undefined;
|
|
114
|
+
created?: (() => void) | undefined;
|
|
115
|
+
beforeMount?: (() => void) | undefined;
|
|
116
|
+
mounted?: (() => void) | undefined;
|
|
117
|
+
beforeUpdate?: (() => void) | undefined;
|
|
118
|
+
updated?: (() => void) | undefined;
|
|
119
|
+
activated?: (() => void) | undefined;
|
|
120
|
+
deactivated?: (() => void) | undefined;
|
|
121
|
+
beforeDestroy?: (() => void) | undefined;
|
|
122
|
+
beforeUnmount?: (() => void) | undefined;
|
|
123
|
+
destroyed?: (() => void) | undefined;
|
|
124
|
+
unmounted?: (() => void) | undefined;
|
|
125
|
+
renderTracked?: ((e: import("vue").DebuggerEvent) => void) | undefined;
|
|
126
|
+
renderTriggered?: ((e: import("vue").DebuggerEvent) => void) | undefined;
|
|
127
|
+
errorCaptured?: ((err: unknown, instance: import("vue").ComponentPublicInstance | null, info: string) => boolean | void) | undefined;
|
|
128
|
+
delimiters?: [string, string] | undefined;
|
|
129
|
+
__differentiator?: string | number | symbol | undefined;
|
|
130
|
+
__isBuiltIn?: boolean | undefined;
|
|
131
|
+
__file?: string | undefined;
|
|
132
|
+
__name?: string | undefined;
|
|
133
|
+
i18n?: {
|
|
134
|
+
locale?: string | undefined;
|
|
135
|
+
fallbackLocale?: string | false | string[] | {
|
|
136
|
+
[x: string]: string[];
|
|
137
|
+
} | undefined;
|
|
138
|
+
messages?: {
|
|
139
|
+
[x: string]: import("@intlify/core-base").LocaleMessage<import("vue-i18n").VueMessageType>;
|
|
140
|
+
} | undefined;
|
|
141
|
+
flatJson?: boolean | undefined;
|
|
142
|
+
datetimeFormats?: {
|
|
143
|
+
[x: string]: import("vue-i18n").IntlDateTimeFormat;
|
|
144
|
+
} | undefined;
|
|
145
|
+
numberFormats?: {
|
|
146
|
+
[x: string]: import("vue-i18n").IntlNumberFormat;
|
|
147
|
+
} | undefined;
|
|
148
|
+
availableLocales?: import("vue-i18n").Locale[] | undefined;
|
|
149
|
+
modifiers?: import("vue-i18n").LinkedModifiers<import("vue-i18n").VueMessageType> | undefined;
|
|
150
|
+
formatter?: {
|
|
151
|
+
interpolate: (message: string, values: any, path: string) => Array<any> | null;
|
|
152
|
+
} | undefined;
|
|
153
|
+
missing?: import("vue-i18n").MissingHandler | undefined;
|
|
154
|
+
fallbackRoot?: boolean | undefined;
|
|
155
|
+
silentTranslationWarn?: boolean | {
|
|
156
|
+
exec: (string: string) => RegExpExecArray | null;
|
|
157
|
+
test: (string: string) => boolean;
|
|
158
|
+
readonly source: string;
|
|
159
|
+
readonly global: boolean;
|
|
160
|
+
readonly ignoreCase: boolean;
|
|
161
|
+
readonly multiline: boolean;
|
|
162
|
+
lastIndex: number;
|
|
163
|
+
compile: (pattern: string, flags?: string) => RegExp;
|
|
164
|
+
readonly flags: string;
|
|
165
|
+
readonly sticky: boolean;
|
|
166
|
+
readonly unicode: boolean;
|
|
167
|
+
readonly dotAll: boolean;
|
|
168
|
+
readonly hasIndices: boolean;
|
|
169
|
+
readonly unicodeSets: boolean;
|
|
170
|
+
[Symbol.match]: (string: string) => RegExpMatchArray | null;
|
|
171
|
+
[Symbol.replace]: {
|
|
172
|
+
(string: string, replaceValue: string): string;
|
|
173
|
+
(string: string, replacer: (substring: string, ...args: any[]) => string): string;
|
|
174
|
+
};
|
|
175
|
+
[Symbol.search]: (string: string) => number;
|
|
176
|
+
[Symbol.split]: (string: string, limit?: number) => string[];
|
|
177
|
+
[Symbol.matchAll]: (str: string) => RegExpStringIterator<RegExpMatchArray>;
|
|
178
|
+
} | undefined;
|
|
179
|
+
silentFallbackWarn?: boolean | {
|
|
180
|
+
exec: (string: string) => RegExpExecArray | null;
|
|
181
|
+
test: (string: string) => boolean;
|
|
182
|
+
readonly source: string;
|
|
183
|
+
readonly global: boolean;
|
|
184
|
+
readonly ignoreCase: boolean;
|
|
185
|
+
readonly multiline: boolean;
|
|
186
|
+
lastIndex: number;
|
|
187
|
+
compile: (pattern: string, flags?: string) => RegExp;
|
|
188
|
+
readonly flags: string;
|
|
189
|
+
readonly sticky: boolean;
|
|
190
|
+
readonly unicode: boolean;
|
|
191
|
+
readonly dotAll: boolean;
|
|
192
|
+
readonly hasIndices: boolean;
|
|
193
|
+
readonly unicodeSets: boolean;
|
|
194
|
+
[Symbol.match]: (string: string) => RegExpMatchArray | null;
|
|
195
|
+
[Symbol.replace]: {
|
|
196
|
+
(string: string, replaceValue: string): string;
|
|
197
|
+
(string: string, replacer: (substring: string, ...args: any[]) => string): string;
|
|
198
|
+
};
|
|
199
|
+
[Symbol.search]: (string: string) => number;
|
|
200
|
+
[Symbol.split]: (string: string, limit?: number) => string[];
|
|
201
|
+
[Symbol.matchAll]: (str: string) => RegExpStringIterator<RegExpMatchArray>;
|
|
202
|
+
} | undefined;
|
|
203
|
+
formatFallbackMessages?: boolean | undefined;
|
|
204
|
+
preserveDirectiveContent?: boolean | undefined;
|
|
205
|
+
warnHtmlInMessage?: import("vue-i18n").WarnHtmlInMessageLevel | undefined;
|
|
206
|
+
escapeParameterHtml?: boolean | undefined;
|
|
207
|
+
sharedMessages?: import("vue-i18n").LocaleMessages<import("vue-i18n").VueMessageType> | undefined;
|
|
208
|
+
pluralizationRules?: import("@intlify/core-base").PluralizationRules | undefined;
|
|
209
|
+
postTranslation?: import("vue-i18n").PostTranslationHandler<import("vue-i18n").VueMessageType> | undefined;
|
|
210
|
+
sync?: boolean | undefined;
|
|
211
|
+
messageResolver?: import("vue-i18n").MessageResolver | undefined;
|
|
212
|
+
} | undefined;
|
|
213
|
+
__i18n?: {
|
|
214
|
+
locale: import("vue-i18n").Locale;
|
|
215
|
+
resource: import("vue-i18n").LocaleMessages<import("vue-i18n").VueMessageType>;
|
|
216
|
+
}[] | undefined;
|
|
217
|
+
__INTLIFY_META__?: string | undefined;
|
|
218
|
+
} | undefined;
|
|
219
|
+
props?: Record<string, any> | undefined;
|
|
220
|
+
title?: string | undefined;
|
|
221
|
+
canClose?: boolean | undefined;
|
|
222
|
+
showHeader?: boolean | undefined;
|
|
223
|
+
showFooter?: boolean | undefined;
|
|
224
|
+
injectStyle?: any;
|
|
225
|
+
hasBackdrop?: boolean | undefined;
|
|
226
|
+
disableStyle?: boolean | undefined;
|
|
227
|
+
onClose?: (() => void) | undefined;
|
|
228
|
+
};
|
|
229
|
+
options: {
|
|
230
|
+
is?: import("vue").FunctionalComponent<any, {}, any, {}> | {
|
|
231
|
+
new (...args: any[]): any;
|
|
232
|
+
__isFragment?: never;
|
|
233
|
+
__isTeleport?: never;
|
|
234
|
+
__isSuspense?: never;
|
|
235
|
+
} | {
|
|
236
|
+
[x: string]: any;
|
|
237
|
+
setup?: ((this: void, props: import("@vue/shared").LooseRequired<any>, ctx: {
|
|
238
|
+
attrs: {
|
|
239
|
+
[x: string]: unknown;
|
|
240
|
+
};
|
|
241
|
+
slots: Readonly<{
|
|
242
|
+
[name: string]: import("vue").Slot<any> | undefined;
|
|
243
|
+
}>;
|
|
244
|
+
emit: ((event: unknown, ...args: any[]) => void) | ((event: string, ...args: any[]) => void);
|
|
245
|
+
expose: (exposed?: Record<string, any>) => void;
|
|
246
|
+
}) => any) | undefined;
|
|
247
|
+
name?: string | undefined;
|
|
248
|
+
template?: string | object | undefined;
|
|
249
|
+
render?: Function | undefined;
|
|
250
|
+
components?: Record<string, import("vue").Component> | undefined;
|
|
251
|
+
directives?: Record<string, import("vue").Directive> | undefined;
|
|
252
|
+
inheritAttrs?: boolean | undefined;
|
|
253
|
+
emits?: any;
|
|
254
|
+
slots?: {} | undefined;
|
|
255
|
+
expose?: string[] | undefined;
|
|
256
|
+
serverPrefetch?: (() => void | Promise<any>) | undefined;
|
|
257
|
+
compilerOptions?: {
|
|
258
|
+
isCustomElement?: ((tag: string) => boolean) | undefined;
|
|
259
|
+
whitespace?: "preserve" | "condense" | undefined;
|
|
260
|
+
comments?: boolean | undefined;
|
|
261
|
+
delimiters?: [string, string] | undefined;
|
|
262
|
+
} | undefined;
|
|
263
|
+
call?: ((this: unknown, ...args: unknown[]) => never) | undefined;
|
|
264
|
+
__isFragment?: never | undefined;
|
|
265
|
+
__isTeleport?: never | undefined;
|
|
266
|
+
__isSuspense?: never | undefined;
|
|
267
|
+
__defaults?: any;
|
|
268
|
+
compatConfig?: {
|
|
269
|
+
GLOBAL_MOUNT?: boolean | "suppress-warning" | undefined;
|
|
270
|
+
GLOBAL_MOUNT_CONTAINER?: boolean | "suppress-warning" | undefined;
|
|
271
|
+
GLOBAL_EXTEND?: boolean | "suppress-warning" | undefined;
|
|
272
|
+
GLOBAL_PROTOTYPE?: boolean | "suppress-warning" | undefined;
|
|
273
|
+
GLOBAL_SET?: boolean | "suppress-warning" | undefined;
|
|
274
|
+
GLOBAL_DELETE?: boolean | "suppress-warning" | undefined;
|
|
275
|
+
GLOBAL_OBSERVABLE?: boolean | "suppress-warning" | undefined;
|
|
276
|
+
GLOBAL_PRIVATE_UTIL?: boolean | "suppress-warning" | undefined;
|
|
277
|
+
CONFIG_SILENT?: boolean | "suppress-warning" | undefined;
|
|
278
|
+
CONFIG_DEVTOOLS?: boolean | "suppress-warning" | undefined;
|
|
279
|
+
CONFIG_KEY_CODES?: boolean | "suppress-warning" | undefined;
|
|
280
|
+
CONFIG_PRODUCTION_TIP?: boolean | "suppress-warning" | undefined;
|
|
281
|
+
CONFIG_IGNORED_ELEMENTS?: boolean | "suppress-warning" | undefined;
|
|
282
|
+
CONFIG_WHITESPACE?: boolean | "suppress-warning" | undefined;
|
|
283
|
+
CONFIG_OPTION_MERGE_STRATS?: boolean | "suppress-warning" | undefined;
|
|
284
|
+
INSTANCE_SET?: boolean | "suppress-warning" | undefined;
|
|
285
|
+
INSTANCE_DELETE?: boolean | "suppress-warning" | undefined;
|
|
286
|
+
INSTANCE_DESTROY?: boolean | "suppress-warning" | undefined;
|
|
287
|
+
INSTANCE_EVENT_EMITTER?: boolean | "suppress-warning" | undefined;
|
|
288
|
+
INSTANCE_EVENT_HOOKS?: boolean | "suppress-warning" | undefined;
|
|
289
|
+
INSTANCE_CHILDREN?: boolean | "suppress-warning" | undefined;
|
|
290
|
+
INSTANCE_LISTENERS?: boolean | "suppress-warning" | undefined;
|
|
291
|
+
INSTANCE_SCOPED_SLOTS?: boolean | "suppress-warning" | undefined;
|
|
292
|
+
INSTANCE_ATTRS_CLASS_STYLE?: boolean | "suppress-warning" | undefined;
|
|
293
|
+
OPTIONS_DATA_FN?: boolean | "suppress-warning" | undefined;
|
|
294
|
+
OPTIONS_DATA_MERGE?: boolean | "suppress-warning" | undefined;
|
|
295
|
+
OPTIONS_BEFORE_DESTROY?: boolean | "suppress-warning" | undefined;
|
|
296
|
+
OPTIONS_DESTROYED?: boolean | "suppress-warning" | undefined;
|
|
297
|
+
WATCH_ARRAY?: boolean | "suppress-warning" | undefined;
|
|
298
|
+
PROPS_DEFAULT_THIS?: boolean | "suppress-warning" | undefined;
|
|
299
|
+
V_ON_KEYCODE_MODIFIER?: boolean | "suppress-warning" | undefined;
|
|
300
|
+
CUSTOM_DIR?: boolean | "suppress-warning" | undefined;
|
|
301
|
+
ATTR_FALSE_VALUE?: boolean | "suppress-warning" | undefined;
|
|
302
|
+
ATTR_ENUMERATED_COERCION?: boolean | "suppress-warning" | undefined;
|
|
303
|
+
TRANSITION_CLASSES?: boolean | "suppress-warning" | undefined;
|
|
304
|
+
TRANSITION_GROUP_ROOT?: boolean | "suppress-warning" | undefined;
|
|
305
|
+
COMPONENT_ASYNC?: boolean | "suppress-warning" | undefined;
|
|
306
|
+
COMPONENT_FUNCTIONAL?: boolean | "suppress-warning" | undefined;
|
|
307
|
+
COMPONENT_V_MODEL?: boolean | "suppress-warning" | undefined;
|
|
308
|
+
RENDER_FUNCTION?: boolean | "suppress-warning" | undefined;
|
|
309
|
+
FILTERS?: boolean | "suppress-warning" | undefined;
|
|
310
|
+
PRIVATE_APIS?: boolean | "suppress-warning" | undefined;
|
|
311
|
+
MODE?: 2 | 3 | ((comp: import("vue").Component | null) => 2 | 3) | undefined;
|
|
312
|
+
} | undefined;
|
|
313
|
+
data?: ((this: any, vm: any) => any) | undefined;
|
|
314
|
+
computed?: import("vue").ComputedOptions | undefined;
|
|
315
|
+
methods?: import("vue").MethodOptions | undefined;
|
|
316
|
+
watch?: {
|
|
317
|
+
[x: string]: (string | import("vue").WatchCallback<any, any> | ({
|
|
318
|
+
handler: import("vue").WatchCallback | string;
|
|
319
|
+
} & import("vue").WatchOptions<boolean>)) | (string | import("vue").WatchCallback<any, any> | ({
|
|
320
|
+
handler: import("vue").WatchCallback | string;
|
|
321
|
+
} & import("vue").WatchOptions<boolean>))[];
|
|
322
|
+
} | undefined;
|
|
323
|
+
provide?: import("vue").ComponentProvideOptions | undefined;
|
|
324
|
+
inject?: {} | string[] | undefined;
|
|
325
|
+
filters?: Record<string, Function> | undefined;
|
|
326
|
+
mixins?: any[] | undefined;
|
|
327
|
+
extends?: any;
|
|
328
|
+
beforeCreate?: (() => void) | undefined;
|
|
329
|
+
created?: (() => void) | undefined;
|
|
330
|
+
beforeMount?: (() => void) | undefined;
|
|
331
|
+
mounted?: (() => void) | undefined;
|
|
332
|
+
beforeUpdate?: (() => void) | undefined;
|
|
333
|
+
updated?: (() => void) | undefined;
|
|
334
|
+
activated?: (() => void) | undefined;
|
|
335
|
+
deactivated?: (() => void) | undefined;
|
|
336
|
+
beforeDestroy?: (() => void) | undefined;
|
|
337
|
+
beforeUnmount?: (() => void) | undefined;
|
|
338
|
+
destroyed?: (() => void) | undefined;
|
|
339
|
+
unmounted?: (() => void) | undefined;
|
|
340
|
+
renderTracked?: ((e: import("vue").DebuggerEvent) => void) | undefined;
|
|
341
|
+
renderTriggered?: ((e: import("vue").DebuggerEvent) => void) | undefined;
|
|
342
|
+
errorCaptured?: ((err: unknown, instance: import("vue").ComponentPublicInstance | null, info: string) => boolean | void) | undefined;
|
|
343
|
+
delimiters?: [string, string] | undefined;
|
|
344
|
+
__differentiator?: string | number | symbol | undefined;
|
|
345
|
+
__isBuiltIn?: boolean | undefined;
|
|
346
|
+
__file?: string | undefined;
|
|
347
|
+
__name?: string | undefined;
|
|
348
|
+
i18n?: {
|
|
349
|
+
locale?: string | undefined;
|
|
350
|
+
fallbackLocale?: string | false | string[] | {
|
|
351
|
+
[x: string]: string[];
|
|
352
|
+
} | undefined;
|
|
353
|
+
messages?: {
|
|
354
|
+
[x: string]: import("@intlify/core-base").LocaleMessage<import("vue-i18n").VueMessageType>;
|
|
355
|
+
} | undefined;
|
|
356
|
+
flatJson?: boolean | undefined;
|
|
357
|
+
datetimeFormats?: {
|
|
358
|
+
[x: string]: import("vue-i18n").IntlDateTimeFormat;
|
|
359
|
+
} | undefined;
|
|
360
|
+
numberFormats?: {
|
|
361
|
+
[x: string]: import("vue-i18n").IntlNumberFormat;
|
|
362
|
+
} | undefined;
|
|
363
|
+
availableLocales?: import("vue-i18n").Locale[] | undefined;
|
|
364
|
+
modifiers?: import("vue-i18n").LinkedModifiers<import("vue-i18n").VueMessageType> | undefined;
|
|
365
|
+
formatter?: {
|
|
366
|
+
interpolate: (message: string, values: any, path: string) => Array<any> | null;
|
|
367
|
+
} | undefined;
|
|
368
|
+
missing?: import("vue-i18n").MissingHandler | undefined;
|
|
369
|
+
fallbackRoot?: boolean | undefined;
|
|
370
|
+
silentTranslationWarn?: boolean | {
|
|
371
|
+
exec: (string: string) => RegExpExecArray | null;
|
|
372
|
+
test: (string: string) => boolean;
|
|
373
|
+
readonly source: string;
|
|
374
|
+
readonly global: boolean;
|
|
375
|
+
readonly ignoreCase: boolean;
|
|
376
|
+
readonly multiline: boolean;
|
|
377
|
+
lastIndex: number;
|
|
378
|
+
compile: (pattern: string, flags?: string) => RegExp;
|
|
379
|
+
readonly flags: string;
|
|
380
|
+
readonly sticky: boolean;
|
|
381
|
+
readonly unicode: boolean;
|
|
382
|
+
readonly dotAll: boolean;
|
|
383
|
+
readonly hasIndices: boolean;
|
|
384
|
+
readonly unicodeSets: boolean;
|
|
385
|
+
[Symbol.match]: (string: string) => RegExpMatchArray | null;
|
|
386
|
+
[Symbol.replace]: {
|
|
387
|
+
(string: string, replaceValue: string): string;
|
|
388
|
+
(string: string, replacer: (substring: string, ...args: any[]) => string): string;
|
|
389
|
+
};
|
|
390
|
+
[Symbol.search]: (string: string) => number;
|
|
391
|
+
[Symbol.split]: (string: string, limit?: number) => string[];
|
|
392
|
+
[Symbol.matchAll]: (str: string) => RegExpStringIterator<RegExpMatchArray>;
|
|
393
|
+
} | undefined;
|
|
394
|
+
silentFallbackWarn?: boolean | {
|
|
395
|
+
exec: (string: string) => RegExpExecArray | null;
|
|
396
|
+
test: (string: string) => boolean;
|
|
397
|
+
readonly source: string;
|
|
398
|
+
readonly global: boolean;
|
|
399
|
+
readonly ignoreCase: boolean;
|
|
400
|
+
readonly multiline: boolean;
|
|
401
|
+
lastIndex: number;
|
|
402
|
+
compile: (pattern: string, flags?: string) => RegExp;
|
|
403
|
+
readonly flags: string;
|
|
404
|
+
readonly sticky: boolean;
|
|
405
|
+
readonly unicode: boolean;
|
|
406
|
+
readonly dotAll: boolean;
|
|
407
|
+
readonly hasIndices: boolean;
|
|
408
|
+
readonly unicodeSets: boolean;
|
|
409
|
+
[Symbol.match]: (string: string) => RegExpMatchArray | null;
|
|
410
|
+
[Symbol.replace]: {
|
|
411
|
+
(string: string, replaceValue: string): string;
|
|
412
|
+
(string: string, replacer: (substring: string, ...args: any[]) => string): string;
|
|
413
|
+
};
|
|
414
|
+
[Symbol.search]: (string: string) => number;
|
|
415
|
+
[Symbol.split]: (string: string, limit?: number) => string[];
|
|
416
|
+
[Symbol.matchAll]: (str: string) => RegExpStringIterator<RegExpMatchArray>;
|
|
417
|
+
} | undefined;
|
|
418
|
+
formatFallbackMessages?: boolean | undefined;
|
|
419
|
+
preserveDirectiveContent?: boolean | undefined;
|
|
420
|
+
warnHtmlInMessage?: import("vue-i18n").WarnHtmlInMessageLevel | undefined;
|
|
421
|
+
escapeParameterHtml?: boolean | undefined;
|
|
422
|
+
sharedMessages?: import("vue-i18n").LocaleMessages<import("vue-i18n").VueMessageType> | undefined;
|
|
423
|
+
pluralizationRules?: import("@intlify/core-base").PluralizationRules | undefined;
|
|
424
|
+
postTranslation?: import("vue-i18n").PostTranslationHandler<import("vue-i18n").VueMessageType> | undefined;
|
|
425
|
+
sync?: boolean | undefined;
|
|
426
|
+
messageResolver?: import("vue-i18n").MessageResolver | undefined;
|
|
427
|
+
} | undefined;
|
|
428
|
+
__i18n?: {
|
|
429
|
+
locale: import("vue-i18n").Locale;
|
|
430
|
+
resource: import("vue-i18n").LocaleMessages<import("vue-i18n").VueMessageType>;
|
|
431
|
+
}[] | undefined;
|
|
432
|
+
__INTLIFY_META__?: string | undefined;
|
|
433
|
+
} | undefined;
|
|
434
|
+
props?: Record<string, any> | undefined;
|
|
435
|
+
title?: string | undefined;
|
|
436
|
+
canClose?: boolean | undefined;
|
|
437
|
+
showHeader?: boolean | undefined;
|
|
438
|
+
showFooter?: boolean | undefined;
|
|
439
|
+
injectStyle?: any;
|
|
440
|
+
hasBackdrop?: boolean | undefined;
|
|
441
|
+
disableStyle?: boolean | undefined;
|
|
442
|
+
onClose?: (() => void) | undefined;
|
|
443
|
+
};
|
|
444
|
+
}[]>;
|
|
445
|
+
alerts: import('vue').Ref<{
|
|
446
|
+
id: string;
|
|
447
|
+
events: {
|
|
448
|
+
title?: string | undefined;
|
|
449
|
+
message?: string | string[] | undefined;
|
|
450
|
+
confirm?: boolean | undefined;
|
|
451
|
+
closeTitle?: string | undefined;
|
|
452
|
+
cancelTitle?: string | undefined;
|
|
453
|
+
confirmTitle?: string | undefined;
|
|
454
|
+
onConfirm?: (() => void) | undefined;
|
|
455
|
+
onClose?: (() => void) | undefined;
|
|
456
|
+
};
|
|
457
|
+
options: {
|
|
458
|
+
title?: string | undefined;
|
|
459
|
+
message?: string | string[] | undefined;
|
|
460
|
+
confirm?: boolean | undefined;
|
|
461
|
+
closeTitle?: string | undefined;
|
|
462
|
+
cancelTitle?: string | undefined;
|
|
463
|
+
confirmTitle?: string | undefined;
|
|
464
|
+
onConfirm?: (() => void) | undefined;
|
|
465
|
+
onClose?: (() => void) | undefined;
|
|
466
|
+
};
|
|
467
|
+
}[]>;
|
|
468
|
+
modal: (options: ModalOptions) => void;
|
|
469
|
+
alert: (options: AlertOptions) => void;
|
|
470
|
+
};
|
|
471
|
+
export {};
|
|
@@ -0,0 +1,42 @@
|
|
|
1
|
+
import { ref as c, markRaw as r } from "vue";
|
|
2
|
+
const i = c([]), t = c([]);
|
|
3
|
+
function u() {
|
|
4
|
+
const a = () => Date.now().toString(), l = (e, n) => {
|
|
5
|
+
const s = e.findIndex((o) => o.id === n);
|
|
6
|
+
s !== -1 && e.splice(s, 1);
|
|
7
|
+
};
|
|
8
|
+
return {
|
|
9
|
+
modals: i,
|
|
10
|
+
alerts: t,
|
|
11
|
+
modal: (e) => {
|
|
12
|
+
const n = a(), s = {
|
|
13
|
+
onClose: () => {
|
|
14
|
+
e?.onClose && e.onClose(), l(i.value, n);
|
|
15
|
+
}
|
|
16
|
+
}, o = { ...e };
|
|
17
|
+
delete o?.onClose, "is" in o && o.is && (o.is = r(o.is)), i.value.push({
|
|
18
|
+
id: n,
|
|
19
|
+
events: s,
|
|
20
|
+
options: o
|
|
21
|
+
});
|
|
22
|
+
},
|
|
23
|
+
alert: (e) => {
|
|
24
|
+
const n = a(), s = {
|
|
25
|
+
onClose: () => {
|
|
26
|
+
e?.onClose && e.onClose(), l(t.value, n);
|
|
27
|
+
},
|
|
28
|
+
onConfirm: () => {
|
|
29
|
+
e?.onConfirm && e.onConfirm(), l(t.value, n);
|
|
30
|
+
}
|
|
31
|
+
}, o = { ...e };
|
|
32
|
+
delete o?.onClose, delete o?.onConfirm, t.value.push({
|
|
33
|
+
id: n,
|
|
34
|
+
events: s,
|
|
35
|
+
options: o
|
|
36
|
+
});
|
|
37
|
+
}
|
|
38
|
+
};
|
|
39
|
+
}
|
|
40
|
+
export {
|
|
41
|
+
u
|
|
42
|
+
};
|
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 {};
|