@caipira/tamandua 0.0.44 → 0.0.46
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/{Button-DxCwFAWy.js → Button-DusGbcIs.js} +10 -10
- package/dist/Button.css +1 -1
- package/dist/Button.js +2 -2
- package/dist/Drawer-CKfQZ6rv.js +74 -0
- package/dist/Drawer.css +1 -1
- package/dist/Drawer.js +2 -2
- package/dist/Form.js +2 -2
- package/dist/{Form.vue_vue_type_script_setup_true_lang-CaCu47jH.js → Form.vue_vue_type_script_setup_true_lang-35_V6mw8.js} +83 -86
- package/dist/FormItem.js +2 -2
- package/dist/FormItem.vue_vue_type_script_setup_true_lang-D7a8YCgS.js +64 -0
- package/dist/GraphySubtitle.js +2 -2
- package/dist/GraphySubtitle.vue_vue_type_script_setup_true_lang-DsBHn2gS.js +18 -0
- package/dist/InputCheckbox.js +2 -2
- package/dist/InputCheckbox.vue_vue_type_style_index_0_lang-D5J-rPuH.js +49 -0
- package/dist/InputMultiplier.js +2 -2
- package/dist/{InputMultiplier.vue_vue_type_script_setup_true_lang-BFDBZk2M.js → InputMultiplier.vue_vue_type_script_setup_true_lang-BguqKGGe.js} +5 -6
- package/dist/InputPassword.js +2 -2
- package/dist/{InputPassword.vue_vue_type_script_setup_true_lang-DtP-Tv-2.js → InputPassword.vue_vue_type_script_setup_true_lang-BghMiF8B.js} +1 -1
- package/dist/InputRadio.js +2 -2
- package/dist/InputRadio.vue_vue_type_style_index_0_lang-DusKEybQ.js +35 -0
- package/dist/InputSwitch.js +2 -2
- package/dist/{InputSwitch.vue_vue_type_script_setup_true_lang-Dq_U-mFJ.js → InputSwitch.vue_vue_type_script_setup_true_lang-Q3wQlqfk.js} +1 -1
- package/dist/InputText.js +2 -2
- package/dist/InputText.vue_vue_type_script_setup_true_lang-JLAlUE_2.js +38 -0
- package/dist/Link.js +2 -2
- package/dist/{Link.vue_vue_type_script_setup_true_lang-DBYJfl5l.js → Link.vue_vue_type_script_setup_true_lang-gTf77Jvd.js} +10 -10
- package/dist/Modal.js +2 -2
- package/dist/{Modal.vue_vue_type_script_setup_true_lang-aQ-G7tuI.js → Modal.vue_vue_type_script_setup_true_lang-CEaX1svl.js} +10 -10
- package/dist/components.js +13 -13
- package/dist/{plugin-BN2jubTY.js → plugin-BT2ef1QG.js} +1 -1
- package/dist/{plugin-CrUFQdOK.js → plugin-BV0OSVIw.js} +1 -1
- package/dist/{plugin-DT7LVAli.js → plugin-BZOU6h10.js} +1 -1
- package/dist/{plugin-WcNmSb_y.js → plugin-Br-QOjhk.js} +1 -1
- package/dist/{plugin-BjXXC0b-.js → plugin-CvohbpUQ.js} +1 -1
- package/dist/{plugin-DQ6digu2.js → plugin-DH3hMjgo.js} +1 -1
- package/dist/{plugin-BDFttGl1.js → plugin-DHstqRmE.js} +1 -1
- package/dist/{plugin-GUvrG7aO.js → plugin-DKjcKBPg.js} +1 -1
- package/dist/{plugin-Dz7BPW4D.js → plugin-DPCk5fFS.js} +1 -1
- package/dist/{plugin-uMlQixCx.js → plugin-DcQ8tvKe.js} +1 -1
- package/dist/{plugin-DN54VuID.js → plugin-F3dxY_wr.js} +1 -1
- package/dist/{plugin-D6dx276z.js → plugin-Y4yYnlO3.js} +1 -1
- package/dist/{plugin-DDUNw6fL.js → plugin-lYDlOt8p.js} +1 -1
- package/dist/{plugins-Dwz7OLJO.js → plugins-8zKsGUYL.js} +19 -19
- package/dist/plugins.js +19 -19
- package/dist/tamandua.js +1 -1
- package/dist/types/components/Drawer/Drawer.story.d.ts +31 -0
- package/dist/types/components/Dropdown/Dropdown.vue.d.ts +97 -0
- package/dist/types/components/Dropdown/types.d.ts +2 -3
- package/dist/types/components/Form/{form.story.d.ts → Form.story.d.ts} +7 -1
- package/dist/types/components/Form/Form.vue.d.ts +6 -19
- package/dist/types/components/Form/types.d.ts +3 -5
- package/dist/types/components/FormItem/FormItem.vue.d.ts +2 -16
- package/dist/types/components/FormItem/types.d.ts +3 -1
- package/dist/types/components/InputAvatar/InputAvatar.vue.d.ts +1 -1
- package/dist/types/components/InputCheckbox/InputCheckbox.vue.d.ts +3 -0
- package/dist/types/components/InputCheckbox/types.d.ts +1 -0
- package/dist/types/components/InputMultiplier/InputMultiplier.vue.d.ts +0 -3
- package/dist/types/components/InputMultiplier/types.d.ts +0 -1
- package/dist/types/components/Popconfirm/Popconfirm.vue.d.ts +1 -1
- package/dist/types/components/Popover/Popover.vue.d.ts +9 -9
- package/package.json +1 -1
- package/dist/Drawer-KwhQs5WA.js +0 -74
- package/dist/FormItem.vue_vue_type_script_setup_true_lang-CV7IVjE4.js +0 -84
- package/dist/GraphySubtitle.vue_vue_type_script_setup_true_lang-DtAmgZWp.js +0 -18
- package/dist/InputCheckbox.vue_vue_type_style_index_0_lang-BONJ9l1D.js +0 -40
- package/dist/InputRadio.vue_vue_type_style_index_0_lang-IqPZ9Qzl.js +0 -35
- package/dist/InputText.vue_vue_type_script_setup_true_lang-D4nIMRiz.js +0 -39
- /package/dist/types/components/InputCheckbox/{input-checkbox.story.d.ts → Input-checkbox.story.d.ts} +0 -0
- /package/dist/types/components/InputPassword/{input-password.story.d.ts → Input-password.story.d.ts} +0 -0
|
@@ -0,0 +1,97 @@
|
|
|
1
|
+
import { DropdownProps } from './types.js';
|
|
2
|
+
import { InputSelectOption } from '../InputSelect/types.js';
|
|
3
|
+
|
|
4
|
+
declare const _default: __VLS_WithTemplateSlots<import('vue').DefineComponent<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<DropdownProps>, {
|
|
5
|
+
items: () => never[];
|
|
6
|
+
loading: boolean;
|
|
7
|
+
multiple: boolean;
|
|
8
|
+
isVisible: boolean;
|
|
9
|
+
optionMarginClass: string;
|
|
10
|
+
optionPaddingClass: string;
|
|
11
|
+
wrapperPaddingClass: string;
|
|
12
|
+
optionRoundnessClass: string;
|
|
13
|
+
wrapperRoundnessClass: string;
|
|
14
|
+
}>, {
|
|
15
|
+
move: (e: KeyboardEvent) => boolean;
|
|
16
|
+
resetScroll: () => void;
|
|
17
|
+
}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
18
|
+
change: (val: import("./types.js").SelectEvent) => void;
|
|
19
|
+
"end-reached": () => void;
|
|
20
|
+
created: (val: import("vue").ComponentInternalInstance | null) => void;
|
|
21
|
+
}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<DropdownProps>, {
|
|
22
|
+
items: () => never[];
|
|
23
|
+
loading: boolean;
|
|
24
|
+
multiple: boolean;
|
|
25
|
+
isVisible: boolean;
|
|
26
|
+
optionMarginClass: string;
|
|
27
|
+
optionPaddingClass: string;
|
|
28
|
+
wrapperPaddingClass: string;
|
|
29
|
+
optionRoundnessClass: string;
|
|
30
|
+
wrapperRoundnessClass: string;
|
|
31
|
+
}>>> & {
|
|
32
|
+
onChange?: ((val: import("./types.js").SelectEvent) => any) | undefined;
|
|
33
|
+
"onEnd-reached"?: (() => any) | undefined;
|
|
34
|
+
onCreated?: ((val: import("vue").ComponentInternalInstance | null) => any) | undefined;
|
|
35
|
+
}, {
|
|
36
|
+
loading: boolean;
|
|
37
|
+
multiple: boolean;
|
|
38
|
+
items: InputSelectOption[];
|
|
39
|
+
isVisible: boolean;
|
|
40
|
+
optionMarginClass: string;
|
|
41
|
+
optionPaddingClass: string;
|
|
42
|
+
wrapperPaddingClass: string;
|
|
43
|
+
optionRoundnessClass: string;
|
|
44
|
+
wrapperRoundnessClass: string;
|
|
45
|
+
}, {}>, {
|
|
46
|
+
default?(_: {
|
|
47
|
+
icon?: "circle" | "account" | "alert-octagon" | "alert-octagon-outline" | "archive" | "archive-outline" | "arrow-left" | "arrow-right" | "bank" | "bank-outline" | "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" | "close" | "close-circle" | "close-circle-outline" | "cog" | "color-fill" | "copy" | "credit-card" | "credit-card-plus" | "currency" | "database" | "dots-grid" | "dots-vertical" | "email-open-outline" | "email-outline" | "eye" | "eye-off" | "file-document-plus-outline" | "filmstrip" | "filter" | "fullscreen" | "fullscreen-exit" | "group" | "image" | "image-album" | "image-album-outline" | "image-outline" | "info-outline" | "key" | "key-chain" | "key-variant" | "listbox-outline" | "loading" | "lock" | "lock-outline" | "logout" | "menu" | "menu-down" | "menu-left" | "menu-right" | "minus" | "minus-circle" | "minus-circle-outline" | "moon" | "open-in-new" | "pencil" | "people" | "piggy-bank-outline" | "plus" | "plus-circle" | "plus-circle-outline" | "qrcode-scan" | "refresh" | "save" | "search" | "spotlight" | "store-outline" | "sun" | "swap" | "swap-horizontal" | "swap-left" | "swap-right" | "system-theme" | "tag-outline" | "trash-can" | "trash-can-outline" | "upload" | "user-circle" | "zip-box" | undefined;
|
|
48
|
+
label: string | object;
|
|
49
|
+
type?: string | undefined;
|
|
50
|
+
renderer?: string | undefined;
|
|
51
|
+
isGroupLabel: boolean;
|
|
52
|
+
value?: undefined;
|
|
53
|
+
action?: undefined;
|
|
54
|
+
} | {
|
|
55
|
+
icon?: "circle" | "account" | "alert-octagon" | "alert-octagon-outline" | "archive" | "archive-outline" | "arrow-left" | "arrow-right" | "bank" | "bank-outline" | "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" | "close" | "close-circle" | "close-circle-outline" | "cog" | "color-fill" | "copy" | "credit-card" | "credit-card-plus" | "currency" | "database" | "dots-grid" | "dots-vertical" | "email-open-outline" | "email-outline" | "eye" | "eye-off" | "file-document-plus-outline" | "filmstrip" | "filter" | "fullscreen" | "fullscreen-exit" | "group" | "image" | "image-album" | "image-album-outline" | "image-outline" | "info-outline" | "key" | "key-chain" | "key-variant" | "listbox-outline" | "loading" | "lock" | "lock-outline" | "logout" | "menu" | "menu-down" | "menu-left" | "menu-right" | "minus" | "minus-circle" | "minus-circle-outline" | "moon" | "open-in-new" | "pencil" | "people" | "piggy-bank-outline" | "plus" | "plus-circle" | "plus-circle-outline" | "qrcode-scan" | "refresh" | "save" | "search" | "spotlight" | "store-outline" | "sun" | "swap" | "swap-horizontal" | "swap-left" | "swap-right" | "system-theme" | "tag-outline" | "trash-can" | "trash-can-outline" | "upload" | "user-circle" | "zip-box" | undefined;
|
|
56
|
+
label: string | object;
|
|
57
|
+
type?: string | undefined;
|
|
58
|
+
renderer?: string | undefined;
|
|
59
|
+
value: import('../InputSelect/types.js').InputSelectValue;
|
|
60
|
+
action?: undefined;
|
|
61
|
+
isGroupLabel?: undefined;
|
|
62
|
+
} | {
|
|
63
|
+
icon?: "circle" | "account" | "alert-octagon" | "alert-octagon-outline" | "archive" | "archive-outline" | "arrow-left" | "arrow-right" | "bank" | "bank-outline" | "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" | "close" | "close-circle" | "close-circle-outline" | "cog" | "color-fill" | "copy" | "credit-card" | "credit-card-plus" | "currency" | "database" | "dots-grid" | "dots-vertical" | "email-open-outline" | "email-outline" | "eye" | "eye-off" | "file-document-plus-outline" | "filmstrip" | "filter" | "fullscreen" | "fullscreen-exit" | "group" | "image" | "image-album" | "image-album-outline" | "image-outline" | "info-outline" | "key" | "key-chain" | "key-variant" | "listbox-outline" | "loading" | "lock" | "lock-outline" | "logout" | "menu" | "menu-down" | "menu-left" | "menu-right" | "minus" | "minus-circle" | "minus-circle-outline" | "moon" | "open-in-new" | "pencil" | "people" | "piggy-bank-outline" | "plus" | "plus-circle" | "plus-circle-outline" | "qrcode-scan" | "refresh" | "save" | "search" | "spotlight" | "store-outline" | "sun" | "swap" | "swap-horizontal" | "swap-left" | "swap-right" | "system-theme" | "tag-outline" | "trash-can" | "trash-can-outline" | "upload" | "user-circle" | "zip-box" | undefined;
|
|
64
|
+
label: string | object;
|
|
65
|
+
type?: string | undefined;
|
|
66
|
+
renderer?: string | undefined;
|
|
67
|
+
action: (filters?: import('../../index.js').APISearchFilters | undefined) => void | Promise<void> | Promise<{
|
|
68
|
+
items: unknown[];
|
|
69
|
+
pagination: import('../../index.js').Pagination;
|
|
70
|
+
}>;
|
|
71
|
+
value?: undefined;
|
|
72
|
+
isGroupLabel?: undefined;
|
|
73
|
+
}): any;
|
|
74
|
+
}>;
|
|
75
|
+
export default _default;
|
|
76
|
+
type __VLS_NonUndefinedable<T> = T extends undefined ? never : T;
|
|
77
|
+
type __VLS_TypePropsToRuntimeProps<T> = {
|
|
78
|
+
[K in keyof T]-?: {} extends Pick<T, K> ? {
|
|
79
|
+
type: import('vue').PropType<__VLS_NonUndefinedable<T[K]>>;
|
|
80
|
+
} : {
|
|
81
|
+
type: import('vue').PropType<T[K]>;
|
|
82
|
+
required: true;
|
|
83
|
+
};
|
|
84
|
+
};
|
|
85
|
+
type __VLS_WithDefaults<P, D> = {
|
|
86
|
+
[K in keyof Pick<P, keyof P>]: K extends keyof D ? __VLS_Prettify<P[K] & {
|
|
87
|
+
default: D[K];
|
|
88
|
+
}> : P[K];
|
|
89
|
+
};
|
|
90
|
+
type __VLS_Prettify<T> = {
|
|
91
|
+
[K in keyof T]: T[K];
|
|
92
|
+
} & {};
|
|
93
|
+
type __VLS_WithTemplateSlots<T, S> = T & {
|
|
94
|
+
new (): {
|
|
95
|
+
$slots: S;
|
|
96
|
+
};
|
|
97
|
+
};
|
|
@@ -12,14 +12,13 @@ export type DropdownProps = {
|
|
|
12
12
|
optionRoundnessClass?: string;
|
|
13
13
|
wrapperRoundnessClass?: string;
|
|
14
14
|
};
|
|
15
|
-
|
|
15
|
+
export type SelectEvent = {
|
|
16
16
|
index: number;
|
|
17
17
|
option: InputSelectOption;
|
|
18
18
|
hold: boolean;
|
|
19
|
-
}
|
|
19
|
+
};
|
|
20
20
|
export type DropdownEvents = {
|
|
21
21
|
(e: "change", val: SelectEvent): void;
|
|
22
22
|
(e: "end-reached"): void;
|
|
23
23
|
(e: "created", val: ReturnType<typeof getCurrentInstance>): void;
|
|
24
24
|
};
|
|
25
|
-
export {};
|
|
@@ -7,8 +7,14 @@ declare const _default: {
|
|
|
7
7
|
password: FormDataTypes.Password;
|
|
8
8
|
username: FormDataTypes.String;
|
|
9
9
|
};
|
|
10
|
+
layout: string;
|
|
11
|
+
};
|
|
12
|
+
argTypes: {
|
|
13
|
+
layout: {
|
|
14
|
+
options: string[];
|
|
15
|
+
control: string;
|
|
16
|
+
};
|
|
10
17
|
};
|
|
11
|
-
argTypes: {};
|
|
12
18
|
};
|
|
13
19
|
export default _default;
|
|
14
20
|
export declare const Form: (args: any) => {
|
|
@@ -1,19 +1,14 @@
|
|
|
1
1
|
import { FormSubmissionFormat } from '../../enums/form.js';
|
|
2
|
-
import { ButtonVariant } from '../../enums/ui.js';
|
|
3
2
|
import { FormSchema, FormInstance } from '../../types/form.js';
|
|
4
3
|
import { FormEvents } from './types.js';
|
|
5
4
|
|
|
6
5
|
declare const _default: <T extends FormSchema>(__VLS_props: {
|
|
7
6
|
id?: string | number | undefined;
|
|
8
7
|
schema?: T | undefined;
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
label?: string | undefined;
|
|
12
|
-
} | undefined;
|
|
8
|
+
layout?: import('./types.js').FormLayout | undefined;
|
|
9
|
+
formStyle?: import('./types.js').FormStyle | undefined;
|
|
13
10
|
showSubmit?: boolean | undefined;
|
|
14
|
-
submitLabel?: string | undefined;
|
|
15
11
|
buttonProps?: import('../types.js').ButtonProps | undefined;
|
|
16
|
-
buttonVariant?: ButtonVariant | undefined;
|
|
17
12
|
submissionFormat?: FormSubmissionFormat | undefined;
|
|
18
13
|
buttonWrapperClasses?: string | undefined;
|
|
19
14
|
} & import('vue').VNodeProps & import('vue').AllowedComponentProps & import('vue').ComponentCustomProps, __VLS_ctx?: {
|
|
@@ -38,14 +33,10 @@ declare const _default: <T extends FormSchema>(__VLS_props: {
|
|
|
38
33
|
props: {
|
|
39
34
|
id?: string | number | undefined;
|
|
40
35
|
schema?: T | undefined;
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
label?: string | undefined;
|
|
44
|
-
} | undefined;
|
|
36
|
+
layout?: import('./types.js').FormLayout | undefined;
|
|
37
|
+
formStyle?: import('./types.js').FormStyle | undefined;
|
|
45
38
|
showSubmit?: boolean | undefined;
|
|
46
|
-
submitLabel?: string | undefined;
|
|
47
39
|
buttonProps?: import('../types.js').ButtonProps | undefined;
|
|
48
|
-
buttonVariant?: ButtonVariant | undefined;
|
|
49
40
|
submissionFormat?: FormSubmissionFormat | undefined;
|
|
50
41
|
buttonWrapperClasses?: string | undefined;
|
|
51
42
|
} & import('vue').VNodeProps & import('vue').AllowedComponentProps & import('vue').ComponentCustomProps;
|
|
@@ -74,14 +65,10 @@ declare const _default: <T extends FormSchema>(__VLS_props: {
|
|
|
74
65
|
props: {
|
|
75
66
|
id?: string | number | undefined;
|
|
76
67
|
schema?: T | undefined;
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
label?: string | undefined;
|
|
80
|
-
} | undefined;
|
|
68
|
+
layout?: import('./types.js').FormLayout | undefined;
|
|
69
|
+
formStyle?: import('./types.js').FormStyle | undefined;
|
|
81
70
|
showSubmit?: boolean | undefined;
|
|
82
|
-
submitLabel?: string | undefined;
|
|
83
71
|
buttonProps?: import('../types.js').ButtonProps | undefined;
|
|
84
|
-
buttonVariant?: ButtonVariant | undefined;
|
|
85
72
|
submissionFormat?: FormSubmissionFormat | undefined;
|
|
86
73
|
buttonWrapperClasses?: string | undefined;
|
|
87
74
|
} & import('vue').VNodeProps & import('vue').AllowedComponentProps & import('vue').ComponentCustomProps;
|
|
@@ -1,19 +1,18 @@
|
|
|
1
1
|
import { FormSubmissionFormat } from '../../enums/form.js';
|
|
2
|
-
import { ButtonVariant } from '../../enums/ui.js';
|
|
3
2
|
import { ButtonProps } from '../Button/types.js';
|
|
4
3
|
import { FormSchema, FormInstance, ValidationResult } from '../../types/form.js';
|
|
5
4
|
|
|
6
|
-
type FormStyle = {
|
|
5
|
+
export type FormStyle = {
|
|
7
6
|
[key in "label" | "input"]?: string;
|
|
8
7
|
};
|
|
8
|
+
export type FormLayout = "horizontal" | "vertical" | "inline";
|
|
9
9
|
export type FormProps<T extends FormSchema> = {
|
|
10
10
|
id?: string | number;
|
|
11
11
|
schema?: T;
|
|
12
|
+
layout?: FormLayout;
|
|
12
13
|
formStyle?: FormStyle;
|
|
13
14
|
showSubmit?: boolean;
|
|
14
|
-
submitLabel?: string;
|
|
15
15
|
buttonProps?: ButtonProps;
|
|
16
|
-
buttonVariant?: ButtonVariant;
|
|
17
16
|
submissionFormat?: FormSubmissionFormat;
|
|
18
17
|
buttonWrapperClasses?: string;
|
|
19
18
|
};
|
|
@@ -21,4 +20,3 @@ export type FormEvents = {
|
|
|
21
20
|
<T extends FormSubmissionFormat>(e: "submit", val: ValidationResult<T>): void;
|
|
22
21
|
<T extends FormSchema>(e: "change", val: FormInstance<T>): void;
|
|
23
22
|
};
|
|
24
|
-
export {};
|
|
@@ -1,14 +1,8 @@
|
|
|
1
1
|
import { FormItemProps } from './types.js';
|
|
2
2
|
|
|
3
|
-
declare const _default: __VLS_WithTemplateSlots<import('vue').DefineComponent<
|
|
4
|
-
inline: boolean;
|
|
5
|
-
}>, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<FormItemProps>, {
|
|
6
|
-
inline: boolean;
|
|
7
|
-
}>>>, {
|
|
8
|
-
inline: boolean;
|
|
9
|
-
}, {}>, {
|
|
10
|
-
default?(_: {}): any;
|
|
3
|
+
declare const _default: __VLS_WithTemplateSlots<import('vue').DefineComponent<__VLS_TypePropsToRuntimeProps<FormItemProps>, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<__VLS_TypePropsToRuntimeProps<FormItemProps>>>, {}, {}>, {
|
|
11
4
|
label?(_: {}): any;
|
|
5
|
+
default?(_: {}): any;
|
|
12
6
|
}>;
|
|
13
7
|
export default _default;
|
|
14
8
|
type __VLS_NonUndefinedable<T> = T extends undefined ? never : T;
|
|
@@ -20,14 +14,6 @@ type __VLS_TypePropsToRuntimeProps<T> = {
|
|
|
20
14
|
required: true;
|
|
21
15
|
};
|
|
22
16
|
};
|
|
23
|
-
type __VLS_WithDefaults<P, D> = {
|
|
24
|
-
[K in keyof Pick<P, keyof P>]: K extends keyof D ? __VLS_Prettify<P[K] & {
|
|
25
|
-
default: D[K];
|
|
26
|
-
}> : P[K];
|
|
27
|
-
};
|
|
28
|
-
type __VLS_Prettify<T> = {
|
|
29
|
-
[K in keyof T]: T[K];
|
|
30
|
-
} & {};
|
|
31
17
|
type __VLS_WithTemplateSlots<T, S> = T & {
|
|
32
18
|
new (): {
|
|
33
19
|
$slots: S;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { InputAvatarProps } from './types.
|
|
1
|
+
import { InputAvatarProps } from './types.js';
|
|
2
2
|
|
|
3
3
|
declare const _default: import('vue').DefineComponent<__VLS_TypePropsToRuntimeProps<InputAvatarProps>, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
4
4
|
"update:model-value": (val: File) => void;
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import { InputCheckboxProps } from './types.js';
|
|
2
2
|
|
|
3
3
|
declare const _default: import('vue').DefineComponent<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<InputCheckboxProps>, {
|
|
4
|
+
label: string;
|
|
4
5
|
disabled: boolean;
|
|
5
6
|
isIndeterminate: boolean;
|
|
6
7
|
initializeValue: boolean;
|
|
@@ -8,6 +9,7 @@ declare const _default: import('vue').DefineComponent<__VLS_WithDefaults<__VLS_T
|
|
|
8
9
|
input: (args_0: boolean) => void;
|
|
9
10
|
"update:model-value": (args_0: boolean) => void;
|
|
10
11
|
}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<InputCheckboxProps>, {
|
|
12
|
+
label: string;
|
|
11
13
|
disabled: boolean;
|
|
12
14
|
isIndeterminate: boolean;
|
|
13
15
|
initializeValue: boolean;
|
|
@@ -15,6 +17,7 @@ declare const _default: import('vue').DefineComponent<__VLS_WithDefaults<__VLS_T
|
|
|
15
17
|
onInput?: ((args_0: boolean) => any) | undefined;
|
|
16
18
|
"onUpdate:model-value"?: ((args_0: boolean) => any) | undefined;
|
|
17
19
|
}, {
|
|
20
|
+
label: string;
|
|
18
21
|
disabled: boolean;
|
|
19
22
|
isIndeterminate: boolean;
|
|
20
23
|
initializeValue: boolean;
|
|
@@ -2,20 +2,17 @@ import { InputMultiplierProps } from './types.js';
|
|
|
2
2
|
|
|
3
3
|
declare const _default: import('vue').DefineComponent<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<InputMultiplierProps>, {
|
|
4
4
|
component: string;
|
|
5
|
-
label: string;
|
|
6
5
|
listeners: () => {};
|
|
7
6
|
inputProps: () => {};
|
|
8
7
|
}>, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
9
8
|
"update:model-value": (value: any[]) => void;
|
|
10
9
|
}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<InputMultiplierProps>, {
|
|
11
10
|
component: string;
|
|
12
|
-
label: string;
|
|
13
11
|
listeners: () => {};
|
|
14
12
|
inputProps: () => {};
|
|
15
13
|
}>>> & {
|
|
16
14
|
"onUpdate:model-value"?: ((value: any[]) => any) | undefined;
|
|
17
15
|
}, {
|
|
18
|
-
label: string;
|
|
19
16
|
component: import("vue").Component | "t-input-text" | "t-input-phone";
|
|
20
17
|
inputProps: any;
|
|
21
18
|
listeners: {
|
|
@@ -12,8 +12,8 @@ declare const _default: __VLS_WithTemplateSlots<import('vue').DefineComponent<__
|
|
|
12
12
|
}>>> & {
|
|
13
13
|
onConfirm?: (() => any) | undefined;
|
|
14
14
|
}, {
|
|
15
|
-
message: string;
|
|
16
15
|
placement: "top-start" | "top" | "top-end" | "right-start" | "right" | "right-end" | "bottom-end" | "bottom" | "bottom-start" | "left-end" | "left" | "left-start";
|
|
16
|
+
message: string;
|
|
17
17
|
}, {}>, {
|
|
18
18
|
default?(_: {
|
|
19
19
|
onTogglePopover: any;
|
|
@@ -10,14 +10,14 @@ declare const _default: __VLS_WithTemplateSlots<import('vue').DefineComponent<{
|
|
|
10
10
|
type: import("vue").PropType<"auto" | "static">;
|
|
11
11
|
default: string;
|
|
12
12
|
};
|
|
13
|
-
placement: {
|
|
14
|
-
type: import("vue").PropType<"top-start" | "top" | "top-end" | "right-start" | "right" | "right-end" | "bottom-end" | "bottom" | "bottom-start" | "left-end" | "left" | "left-start">;
|
|
15
|
-
default: ElementPosition;
|
|
16
|
-
};
|
|
17
13
|
trigger: {
|
|
18
14
|
type: import("vue").PropType<"click" | "hover">;
|
|
19
15
|
default: ElementTrigger;
|
|
20
16
|
};
|
|
17
|
+
placement: {
|
|
18
|
+
type: import("vue").PropType<"top-start" | "top" | "top-end" | "right-start" | "right" | "right-end" | "bottom-end" | "bottom" | "bottom-start" | "left-end" | "left" | "left-start">;
|
|
19
|
+
default: ElementPosition;
|
|
20
|
+
};
|
|
21
21
|
slotWrapperClasses: {
|
|
22
22
|
type: import("vue").PropType<string>;
|
|
23
23
|
default: string;
|
|
@@ -34,14 +34,14 @@ declare const _default: __VLS_WithTemplateSlots<import('vue').DefineComponent<{
|
|
|
34
34
|
type: import("vue").PropType<"auto" | "static">;
|
|
35
35
|
default: string;
|
|
36
36
|
};
|
|
37
|
-
placement: {
|
|
38
|
-
type: import("vue").PropType<"top-start" | "top" | "top-end" | "right-start" | "right" | "right-end" | "bottom-end" | "bottom" | "bottom-start" | "left-end" | "left" | "left-start">;
|
|
39
|
-
default: ElementPosition;
|
|
40
|
-
};
|
|
41
37
|
trigger: {
|
|
42
38
|
type: import("vue").PropType<"click" | "hover">;
|
|
43
39
|
default: ElementTrigger;
|
|
44
40
|
};
|
|
41
|
+
placement: {
|
|
42
|
+
type: import("vue").PropType<"top-start" | "top" | "top-end" | "right-start" | "right" | "right-end" | "bottom-end" | "bottom" | "bottom-start" | "left-end" | "left" | "left-start">;
|
|
43
|
+
default: ElementPosition;
|
|
44
|
+
};
|
|
45
45
|
slotWrapperClasses: {
|
|
46
46
|
type: import("vue").PropType<string>;
|
|
47
47
|
default: string;
|
|
@@ -49,8 +49,8 @@ declare const _default: __VLS_WithTemplateSlots<import('vue').DefineComponent<{
|
|
|
49
49
|
}>>, {
|
|
50
50
|
disabled: boolean;
|
|
51
51
|
width: "auto" | "static";
|
|
52
|
-
placement: "top-start" | "top" | "top-end" | "right-start" | "right" | "right-end" | "bottom-end" | "bottom" | "bottom-start" | "left-end" | "left" | "left-start";
|
|
53
52
|
trigger: "click" | "hover";
|
|
53
|
+
placement: "top-start" | "top" | "top-end" | "right-start" | "right" | "right-end" | "bottom-end" | "bottom" | "bottom-start" | "left-end" | "left" | "left-start";
|
|
54
54
|
slotWrapperClasses: string;
|
|
55
55
|
}, {}>, {
|
|
56
56
|
default?(_: {
|
package/package.json
CHANGED
package/dist/Drawer-KwhQs5WA.js
DELETED
|
@@ -1,74 +0,0 @@
|
|
|
1
|
-
import './Drawer.css';
|
|
2
|
-
import { defineComponent as _, ref as y, onMounted as b, resolveComponent as v, openBlock as o, createElementBlock as t, withKeys as h, createVNode as i, createElementVNode as a, normalizeClass as c, renderSlot as l, toDisplayString as w, createCommentVNode as d } from "vue";
|
|
3
|
-
import { _ as k } from "./Backdrop.vue_vue_type_script_setup_true_lang-OaEBTmYK.js";
|
|
4
|
-
import { _ as x } from "./_plugin-vue_export-helper-CHgC5LLL.js";
|
|
5
|
-
const C = {
|
|
6
|
-
key: 0,
|
|
7
|
-
class: "flex justify-between items-center p-4 border-b border-color"
|
|
8
|
-
}, $ = { key: 0 }, g = {
|
|
9
|
-
key: 1,
|
|
10
|
-
class: "inline-block text-base"
|
|
11
|
-
}, D = { class: "flex flex-col flex-1 relative overflow-y-auto scrollbar" }, z = /* @__PURE__ */ _({
|
|
12
|
-
name: "TDrawer",
|
|
13
|
-
__name: "Drawer",
|
|
14
|
-
props: {
|
|
15
|
-
title: { default: "" },
|
|
16
|
-
style: { default: () => ({
|
|
17
|
-
footer: ""
|
|
18
|
-
}) },
|
|
19
|
-
direction: { default: "rtl" },
|
|
20
|
-
showHeader: { type: Boolean, default: !0 }
|
|
21
|
-
},
|
|
22
|
-
emits: ["closed"],
|
|
23
|
-
setup(f, { emit: m }) {
|
|
24
|
-
const r = f, p = m, n = y(null), s = (e) => {
|
|
25
|
-
e.stopPropagation(), p("closed");
|
|
26
|
-
};
|
|
27
|
-
return b(() => {
|
|
28
|
-
n.value?.focus();
|
|
29
|
-
}), (e, B) => {
|
|
30
|
-
const u = v("t-icon");
|
|
31
|
-
return o(), t("div", {
|
|
32
|
-
class: "fixed inset-0 flex items-center z-10",
|
|
33
|
-
tabindex: "0",
|
|
34
|
-
ref_key: "modal",
|
|
35
|
-
ref: n,
|
|
36
|
-
onKeyup: h(s, ["esc"])
|
|
37
|
-
}, [
|
|
38
|
-
i(k, { onClick: s }),
|
|
39
|
-
a("div", {
|
|
40
|
-
class: c(["w-[38rem] absolute inset-y-0 z-20 flex flex-col bg-caipira-primary drawer", {
|
|
41
|
-
"right-0 drop-shadow-lg": r.direction === "ltr",
|
|
42
|
-
"left-0": r.direction === "rtl"
|
|
43
|
-
}])
|
|
44
|
-
}, [
|
|
45
|
-
r.showHeader ? (o(), t("div", C, [
|
|
46
|
-
e.$slots.header ? (o(), t("div", $, [
|
|
47
|
-
l(e.$slots, "header", {}, void 0, !0)
|
|
48
|
-
])) : (o(), t("span", g, w(r.title), 1)),
|
|
49
|
-
i(u, {
|
|
50
|
-
icon: "close",
|
|
51
|
-
role: "button",
|
|
52
|
-
onClick: s,
|
|
53
|
-
size: "sm"
|
|
54
|
-
})
|
|
55
|
-
])) : d("", !0),
|
|
56
|
-
a("div", D, [
|
|
57
|
-
l(e.$slots, "default", {}, void 0, !0)
|
|
58
|
-
]),
|
|
59
|
-
e.$slots.footer ? (o(), t("div", {
|
|
60
|
-
key: 1,
|
|
61
|
-
class: c(["p-4 border-t border-color", {
|
|
62
|
-
[e.style.footer]: !0
|
|
63
|
-
}])
|
|
64
|
-
}, [
|
|
65
|
-
l(e.$slots, "footer", {}, void 0, !0)
|
|
66
|
-
], 2)) : d("", !0)
|
|
67
|
-
], 2)
|
|
68
|
-
], 544);
|
|
69
|
-
};
|
|
70
|
-
}
|
|
71
|
-
}), H = /* @__PURE__ */ x(z, [["__scopeId", "data-v-4b55ad69"]]);
|
|
72
|
-
export {
|
|
73
|
-
H as D
|
|
74
|
-
};
|
|
@@ -1,84 +0,0 @@
|
|
|
1
|
-
import { defineComponent as C, useSlots as I, inject as S, computed as p, provide as $, resolveComponent as B, openBlock as t, createElementBlock as l, createElementVNode as o, normalizeClass as s, Fragment as d, unref as a, renderSlot as n, createVNode as x, withCtx as y, renderList as F, toDisplayString as N, createCommentVNode as T } from "vue";
|
|
2
|
-
const V = { class: "w-full" }, w = {
|
|
3
|
-
key: 0,
|
|
4
|
-
class: "float-right"
|
|
5
|
-
};
|
|
6
|
-
let E = 0;
|
|
7
|
-
const z = /* @__PURE__ */ C({
|
|
8
|
-
name: "TFormItem",
|
|
9
|
-
__name: "FormItem",
|
|
10
|
-
props: {
|
|
11
|
-
label: {},
|
|
12
|
-
rules: {},
|
|
13
|
-
inline: { type: Boolean, default: !0 }
|
|
14
|
-
},
|
|
15
|
-
setup(h) {
|
|
16
|
-
const u = h, i = `formitem_${++E}`, c = I(), f = [], r = S("formStyle", { label: "", input: "" }), v = p(() => {
|
|
17
|
-
if (!c || !c.default)
|
|
18
|
-
return !1;
|
|
19
|
-
const e = c?.default();
|
|
20
|
-
return e ? e[0].type.name : !1;
|
|
21
|
-
}), m = p(() => v.value === "TInputCheckbox"), _ = p(() => v.value === "TInputMultiplier");
|
|
22
|
-
return $("id", i), (e, M) => {
|
|
23
|
-
const b = B("t-graphy-label");
|
|
24
|
-
return t(), l("div", V, [
|
|
25
|
-
o("div", {
|
|
26
|
-
class: s(["flex gap-2 my-5", {
|
|
27
|
-
"flex-col": !u.inline,
|
|
28
|
-
"items-center": !_.value,
|
|
29
|
-
"items-start": _.value
|
|
30
|
-
}])
|
|
31
|
-
}, [
|
|
32
|
-
m.value ? (t(), l(d, { key: 0 }, [
|
|
33
|
-
o("div", {
|
|
34
|
-
class: s(["text-right", { [a(r).label]: !0 }])
|
|
35
|
-
}, [
|
|
36
|
-
n(e.$slots, "default")
|
|
37
|
-
], 2),
|
|
38
|
-
x(b, {
|
|
39
|
-
text: u.label,
|
|
40
|
-
for: i,
|
|
41
|
-
class: s([{
|
|
42
|
-
[a(r).input]: !0,
|
|
43
|
-
"cursor-pointer": m.value
|
|
44
|
-
}, "text-left"])
|
|
45
|
-
}, {
|
|
46
|
-
default: y(() => [
|
|
47
|
-
n(e.$slots, "label")
|
|
48
|
-
]),
|
|
49
|
-
_: 3
|
|
50
|
-
}, 8, ["text", "class"])
|
|
51
|
-
], 64)) : (t(), l(d, { key: 1 }, [
|
|
52
|
-
x(b, {
|
|
53
|
-
text: u.label,
|
|
54
|
-
for: i,
|
|
55
|
-
class: s([{
|
|
56
|
-
[a(r).label]: !0,
|
|
57
|
-
"cursor-pointer": m.value
|
|
58
|
-
}, "text-right"])
|
|
59
|
-
}, {
|
|
60
|
-
default: y(() => [
|
|
61
|
-
n(e.$slots, "label")
|
|
62
|
-
]),
|
|
63
|
-
_: 3
|
|
64
|
-
}, 8, ["text", "class"]),
|
|
65
|
-
o("div", {
|
|
66
|
-
class: s({ [a(r).input]: !0 })
|
|
67
|
-
}, [
|
|
68
|
-
n(e.$slots, "default")
|
|
69
|
-
], 2)
|
|
70
|
-
], 64))
|
|
71
|
-
], 2),
|
|
72
|
-
f ? (t(), l("div", w, [
|
|
73
|
-
(t(), l(d, null, F(f, (g, k) => o("span", {
|
|
74
|
-
class: "text-sm text-red-600",
|
|
75
|
-
key: k
|
|
76
|
-
}, N(g), 1)), 64))
|
|
77
|
-
])) : T("", !0)
|
|
78
|
-
]);
|
|
79
|
-
};
|
|
80
|
-
}
|
|
81
|
-
});
|
|
82
|
-
export {
|
|
83
|
-
z as _
|
|
84
|
-
};
|
|
@@ -1,18 +0,0 @@
|
|
|
1
|
-
import { defineComponent as r, openBlock as l, createElementBlock as n, normalizeClass as a, toDisplayString as p } from "vue";
|
|
2
|
-
const m = /* @__PURE__ */ r({
|
|
3
|
-
name: "TGraphySubtitle",
|
|
4
|
-
__name: "GraphySubtitle",
|
|
5
|
-
props: {
|
|
6
|
-
text: {},
|
|
7
|
-
textColor: { default: "color-text" }
|
|
8
|
-
},
|
|
9
|
-
setup(t) {
|
|
10
|
-
const e = t;
|
|
11
|
-
return (o, s) => (l(), n("h2", {
|
|
12
|
-
class: a(["text-2xl font-bold mr-2", [o.textColor]])
|
|
13
|
-
}, p(e.text), 3));
|
|
14
|
-
}
|
|
15
|
-
});
|
|
16
|
-
export {
|
|
17
|
-
m as _
|
|
18
|
-
};
|
|
@@ -1,40 +0,0 @@
|
|
|
1
|
-
import './InputCheckbox.css';
|
|
2
|
-
import { defineComponent as p, inject as s, ref as c, watch as m, withDirectives as f, openBlock as b, createElementBlock as v, mergeProps as h, unref as k, vModelCheckbox as y } from "vue";
|
|
3
|
-
const B = ["indeterminate", "id", "disabled"], I = /* @__PURE__ */ p({
|
|
4
|
-
name: "TInputCheckbox",
|
|
5
|
-
__name: "InputCheckbox",
|
|
6
|
-
props: {
|
|
7
|
-
disabled: { type: Boolean, default: !1 },
|
|
8
|
-
modelValue: { type: Boolean },
|
|
9
|
-
isIndeterminate: { type: Boolean, default: !1 },
|
|
10
|
-
initializeValue: { type: Boolean, default: !1 }
|
|
11
|
-
},
|
|
12
|
-
emits: ["update:model-value", "input"],
|
|
13
|
-
setup(o, { emit: l }) {
|
|
14
|
-
const a = o, i = l, d = s("id", ""), t = c(!1), r = () => {
|
|
15
|
-
const e = !t.value;
|
|
16
|
-
i("update:model-value", e), i("input", e);
|
|
17
|
-
};
|
|
18
|
-
return m(
|
|
19
|
-
() => a.modelValue,
|
|
20
|
-
(e) => {
|
|
21
|
-
a.initializeValue && typeof e > "u" && i("update:model-value", !1), t.value = e;
|
|
22
|
-
},
|
|
23
|
-
{ immediate: !0 }
|
|
24
|
-
), (e, n) => f((b(), v("input", h({
|
|
25
|
-
"onUpdate:modelValue": n[0] || (n[0] = (u) => t.value = u)
|
|
26
|
-
}, e.$attrs, {
|
|
27
|
-
type: "checkbox",
|
|
28
|
-
class: "form-checkbox w-5 h-5 border input-border input-roundness color-caipira-primary-inverted bg-caipira-primary checked:bg-caipira-primary-inverted input-outline",
|
|
29
|
-
indeterminate: a.isIndeterminate,
|
|
30
|
-
id: k(d),
|
|
31
|
-
disabled: e.disabled,
|
|
32
|
-
onInput: r
|
|
33
|
-
}), null, 16, B)), [
|
|
34
|
-
[y, t.value]
|
|
35
|
-
]);
|
|
36
|
-
}
|
|
37
|
-
});
|
|
38
|
-
export {
|
|
39
|
-
I as _
|
|
40
|
-
};
|