@caipira/tamandua 0.0.43 → 0.0.45
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-CAiIEdkK.js → Button-DxCwFAWy.js} +21 -23
- package/dist/Button.css +1 -1
- package/dist/Button.js +2 -2
- package/dist/Drawer-BNQfu7JD.js +76 -0
- package/dist/Drawer.css +1 -1
- package/dist/Drawer.js +2 -2
- package/dist/FormItem.js +2 -2
- package/dist/FormItem.vue_vue_type_script_setup_true_lang-CV7IVjE4.js +84 -0
- package/dist/GraphySubtitle.js +2 -2
- package/dist/GraphySubtitle.vue_vue_type_script_setup_true_lang-DsBHn2gS.js +18 -0
- package/dist/InputCheckbox.css +1 -0
- package/dist/InputCheckbox.js +2 -2
- package/dist/{InputCheckbox.vue_vue_type_script_setup_true_lang-Bh8HA3Ay.js → InputCheckbox.vue_vue_type_style_index_0_lang-BONJ9l1D.js} +1 -0
- package/dist/InputMultiplier.js +2 -2
- package/dist/InputMultiplier.vue_vue_type_script_setup_true_lang-BFDBZk2M.js +66 -0
- package/dist/InputRadio.css +1 -0
- package/dist/InputRadio.js +2 -2
- package/dist/{InputRadio.vue_vue_type_script_setup_true_lang-Cu7lzDAh.js → InputRadio.vue_vue_type_style_index_0_lang-IqPZ9Qzl.js} +1 -0
- package/dist/InputText.js +2 -2
- package/dist/InputText.vue_vue_type_script_setup_true_lang-D4nIMRiz.js +39 -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/{ProgressCircle-BY2eeyGY.js → ProgressCircle-Cpmi2CpO.js} +4 -4
- package/dist/ProgressCircle.css +1 -1
- package/dist/ProgressCircle.js +2 -2
- package/dist/components.js +10 -10
- package/dist/index.css +1 -29
- package/dist/{plugin-DLFPglIt.js → plugin-BjXXC0b-.js} +1 -1
- package/dist/{plugin-DRcJuXpS.js → plugin-D0o7F2L4.js} +1 -1
- package/dist/{plugin-Bog7k3Qf.js → plugin-D6dx276z.js} +1 -1
- package/dist/{plugin-Bbt6pP0l.js → plugin-DDUNw6fL.js} +1 -1
- package/dist/{plugin-BDFttGl1.js → plugin-DHstqRmE.js} +1 -1
- package/dist/{plugin-DcWjzc_X.js → plugin-DQ6digu2.js} +1 -1
- package/dist/{plugin-DLkeyKDM.js → plugin-Dz7BPW4D.js} +1 -1
- package/dist/{plugin-DN54VuID.js → plugin-F3dxY_wr.js} +1 -1
- package/dist/{plugin-DXSsGfRI.js → plugin-MAzqwXys.js} +1 -1
- package/dist/{plugin-U6NcpOUL.js → plugin-WcNmSb_y.js} +1 -1
- package/dist/{plugins-DXwzOgCo.js → plugins-C7Uur4I5.js} +18 -16
- package/dist/plugins.js +92 -90
- package/dist/tamandua.js +1 -1
- package/dist/types/components/Button/Button.vue.d.ts +47 -6
- package/dist/types/components/ChartTreemap/ChartTreemap.vue.d.ts +12 -3
- package/dist/types/components/Drawer/Drawer.story.d.ts +31 -0
- package/dist/types/components/Drawer/Drawer.vue.d.ts +44 -2
- package/dist/types/components/Dropdown/Dropdown.vue.d.ts +87 -4
- package/dist/types/components/Dropdown/types.d.ts +2 -3
- package/dist/types/components/GraphyLabel/GraphyLabel.vue.d.ts +12 -3
- package/dist/types/components/GraphySubtitle/GraphySubtitle.vue.d.ts +25 -2
- package/dist/types/components/GraphyTitle/GraphyTitle.vue.d.ts +12 -3
- package/dist/types/components/Icon/Icon.vue.d.ts +30 -3
- package/dist/types/components/InputAvatar/InputAvatar.vue.d.ts +1 -1
- package/dist/types/components/InputCheckbox/InputCheckbox.vue.d.ts +37 -2
- package/dist/types/components/InputColor/InputColor.vue.d.ts +32 -2
- package/dist/types/components/InputDate/InputDate.vue.d.ts +16 -3
- package/dist/types/components/InputMultiplier/InputMultiplier.vue.d.ts +40 -2
- package/dist/types/components/InputRadio/InputRadio.vue.d.ts +12 -3
- package/dist/types/components/InputRadio/InputRadioGroup.vue.d.ts +29 -2
- package/dist/types/components/InputSwitch/InputSwitch.vue.d.ts +32 -2
- package/dist/types/components/InputText/InputText.vue.d.ts +46 -38
- package/dist/types/components/InputText/types.d.ts +0 -2
- package/dist/types/components/InputTextarea/InputTextarea.vue.d.ts +38 -2
- package/dist/types/components/Modal/Modal.vue.d.ts +49 -2
- package/dist/types/components/Pagination/Pagination.vue.d.ts +39 -2
- package/dist/types/components/Popconfirm/Popconfirm.vue.d.ts +33 -2
- package/dist/types/components/Popover/Popover.vue.d.ts +9 -9
- package/dist/types/components/ProgressCircle/ProgressCircle.vue.d.ts +37 -2
- package/package.json +1 -1
- package/dist/Drawer-omdZnBPG.js +0 -74
- package/dist/FormItem.vue_vue_type_script_setup_true_lang-CjW-P8Xf.js +0 -80
- package/dist/GraphySubtitle.vue_vue_type_script_setup_true_lang-DtAmgZWp.js +0 -18
- package/dist/InputMultiplier.vue_vue_type_script_setup_true_lang-BJJQTQzF.js +0 -74
- package/dist/InputText.vue_vue_type_script_setup_true_lang-Dyvx9Ob-.js +0 -40
|
@@ -1,4 +1,40 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
1
|
+
import { InputTextareaProps } from './types.js';
|
|
2
|
+
|
|
3
|
+
declare const _default: import('vue').DefineComponent<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<InputTextareaProps>, {
|
|
4
|
+
type: string;
|
|
5
|
+
disabled: boolean;
|
|
6
|
+
placeholder: undefined;
|
|
7
|
+
disableStyle: boolean;
|
|
8
|
+
}>, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
9
|
+
"update:model-value": (val: string) => void;
|
|
10
|
+
}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<InputTextareaProps>, {
|
|
11
|
+
type: string;
|
|
12
|
+
disabled: boolean;
|
|
13
|
+
placeholder: undefined;
|
|
14
|
+
disableStyle: boolean;
|
|
15
|
+
}>>> & {
|
|
16
|
+
"onUpdate:model-value"?: ((val: string) => any) | undefined;
|
|
17
|
+
}, {
|
|
18
|
+
disableStyle: boolean;
|
|
19
|
+
type: string;
|
|
20
|
+
disabled: boolean;
|
|
21
|
+
placeholder: string;
|
|
3
22
|
}, {}>;
|
|
4
23
|
export default _default;
|
|
24
|
+
type __VLS_NonUndefinedable<T> = T extends undefined ? never : T;
|
|
25
|
+
type __VLS_TypePropsToRuntimeProps<T> = {
|
|
26
|
+
[K in keyof T]-?: {} extends Pick<T, K> ? {
|
|
27
|
+
type: import('vue').PropType<__VLS_NonUndefinedable<T[K]>>;
|
|
28
|
+
} : {
|
|
29
|
+
type: import('vue').PropType<T[K]>;
|
|
30
|
+
required: true;
|
|
31
|
+
};
|
|
32
|
+
};
|
|
33
|
+
type __VLS_WithDefaults<P, D> = {
|
|
34
|
+
[K in keyof Pick<P, keyof P>]: K extends keyof D ? __VLS_Prettify<P[K] & {
|
|
35
|
+
default: D[K];
|
|
36
|
+
}> : P[K];
|
|
37
|
+
};
|
|
38
|
+
type __VLS_Prettify<T> = {
|
|
39
|
+
[K in keyof T]: T[K];
|
|
40
|
+
} & {};
|
|
@@ -1,11 +1,58 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
1
|
+
import { ModalProps } from './types.js';
|
|
2
|
+
|
|
3
|
+
declare const _default: __VLS_WithTemplateSlots<import('vue').DefineComponent<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<ModalProps>, {
|
|
4
|
+
title: string;
|
|
5
|
+
showHeader: boolean;
|
|
6
|
+
injectStyle: () => {
|
|
7
|
+
wrapper: string;
|
|
8
|
+
body: string;
|
|
9
|
+
container: string;
|
|
10
|
+
};
|
|
11
|
+
hasBackdrop: boolean;
|
|
12
|
+
disableStyle: boolean;
|
|
13
|
+
}>, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
14
|
+
closed: () => void;
|
|
15
|
+
}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<ModalProps>, {
|
|
16
|
+
title: string;
|
|
17
|
+
showHeader: boolean;
|
|
18
|
+
injectStyle: () => {
|
|
19
|
+
wrapper: string;
|
|
20
|
+
body: string;
|
|
21
|
+
container: string;
|
|
22
|
+
};
|
|
23
|
+
hasBackdrop: boolean;
|
|
24
|
+
disableStyle: boolean;
|
|
25
|
+
}>>> & {
|
|
26
|
+
onClosed?: (() => any) | undefined;
|
|
27
|
+
}, {
|
|
28
|
+
disableStyle: boolean;
|
|
29
|
+
title: string;
|
|
30
|
+
showHeader: boolean;
|
|
31
|
+
injectStyle: any;
|
|
32
|
+
hasBackdrop: boolean;
|
|
3
33
|
}, {}>, {
|
|
4
34
|
header?(_: {}): any;
|
|
5
35
|
default?(_: {}): any;
|
|
6
36
|
footer?(_: {}): any;
|
|
7
37
|
}>;
|
|
8
38
|
export default _default;
|
|
39
|
+
type __VLS_NonUndefinedable<T> = T extends undefined ? never : T;
|
|
40
|
+
type __VLS_TypePropsToRuntimeProps<T> = {
|
|
41
|
+
[K in keyof T]-?: {} extends Pick<T, K> ? {
|
|
42
|
+
type: import('vue').PropType<__VLS_NonUndefinedable<T[K]>>;
|
|
43
|
+
} : {
|
|
44
|
+
type: import('vue').PropType<T[K]>;
|
|
45
|
+
required: true;
|
|
46
|
+
};
|
|
47
|
+
};
|
|
48
|
+
type __VLS_WithDefaults<P, D> = {
|
|
49
|
+
[K in keyof Pick<P, keyof P>]: K extends keyof D ? __VLS_Prettify<P[K] & {
|
|
50
|
+
default: D[K];
|
|
51
|
+
}> : P[K];
|
|
52
|
+
};
|
|
53
|
+
type __VLS_Prettify<T> = {
|
|
54
|
+
[K in keyof T]: T[K];
|
|
55
|
+
} & {};
|
|
9
56
|
type __VLS_WithTemplateSlots<T, S> = T & {
|
|
10
57
|
new (): {
|
|
11
58
|
$slots: S;
|
|
@@ -1,4 +1,41 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
1
|
+
import { PaginationProps } from './types.js';
|
|
2
|
+
import { Pagination } from '../../types/ui.js';
|
|
3
|
+
|
|
4
|
+
declare const _default: import('vue').DefineComponent<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<PaginationProps>, {
|
|
5
|
+
disabled: boolean;
|
|
6
|
+
pagination: () => Pagination;
|
|
7
|
+
pageLengths: () => number[];
|
|
8
|
+
showDescription: boolean;
|
|
9
|
+
}>, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
10
|
+
updated: (val: Pagination) => void;
|
|
11
|
+
}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<PaginationProps>, {
|
|
12
|
+
disabled: boolean;
|
|
13
|
+
pagination: () => Pagination;
|
|
14
|
+
pageLengths: () => number[];
|
|
15
|
+
showDescription: boolean;
|
|
16
|
+
}>>> & {
|
|
17
|
+
onUpdated?: ((val: Pagination) => any) | undefined;
|
|
18
|
+
}, {
|
|
19
|
+
disabled: boolean;
|
|
20
|
+
pagination: Pagination;
|
|
21
|
+
pageLengths: number[];
|
|
22
|
+
showDescription: boolean;
|
|
3
23
|
}, {}>;
|
|
4
24
|
export default _default;
|
|
25
|
+
type __VLS_NonUndefinedable<T> = T extends undefined ? never : T;
|
|
26
|
+
type __VLS_TypePropsToRuntimeProps<T> = {
|
|
27
|
+
[K in keyof T]-?: {} extends Pick<T, K> ? {
|
|
28
|
+
type: import('vue').PropType<__VLS_NonUndefinedable<T[K]>>;
|
|
29
|
+
} : {
|
|
30
|
+
type: import('vue').PropType<T[K]>;
|
|
31
|
+
required: true;
|
|
32
|
+
};
|
|
33
|
+
};
|
|
34
|
+
type __VLS_WithDefaults<P, D> = {
|
|
35
|
+
[K in keyof Pick<P, keyof P>]: K extends keyof D ? __VLS_Prettify<P[K] & {
|
|
36
|
+
default: D[K];
|
|
37
|
+
}> : P[K];
|
|
38
|
+
};
|
|
39
|
+
type __VLS_Prettify<T> = {
|
|
40
|
+
[K in keyof T]: T[K];
|
|
41
|
+
} & {};
|
|
@@ -1,11 +1,42 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
1
|
+
import { ElementPosition } from '../../enums/ui.js';
|
|
2
|
+
import { PopconfirmProps } from './types.js';
|
|
3
|
+
|
|
4
|
+
declare const _default: __VLS_WithTemplateSlots<import('vue').DefineComponent<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<PopconfirmProps>, {
|
|
5
|
+
message: string;
|
|
6
|
+
placement: ElementPosition;
|
|
7
|
+
}>, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
8
|
+
confirm: () => void;
|
|
9
|
+
}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<PopconfirmProps>, {
|
|
10
|
+
message: string;
|
|
11
|
+
placement: ElementPosition;
|
|
12
|
+
}>>> & {
|
|
13
|
+
onConfirm?: (() => any) | undefined;
|
|
14
|
+
}, {
|
|
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;
|
|
3
17
|
}, {}>, {
|
|
4
18
|
default?(_: {
|
|
5
19
|
onTogglePopover: any;
|
|
6
20
|
}): any;
|
|
7
21
|
}>;
|
|
8
22
|
export default _default;
|
|
23
|
+
type __VLS_NonUndefinedable<T> = T extends undefined ? never : T;
|
|
24
|
+
type __VLS_TypePropsToRuntimeProps<T> = {
|
|
25
|
+
[K in keyof T]-?: {} extends Pick<T, K> ? {
|
|
26
|
+
type: import('vue').PropType<__VLS_NonUndefinedable<T[K]>>;
|
|
27
|
+
} : {
|
|
28
|
+
type: import('vue').PropType<T[K]>;
|
|
29
|
+
required: true;
|
|
30
|
+
};
|
|
31
|
+
};
|
|
32
|
+
type __VLS_WithDefaults<P, D> = {
|
|
33
|
+
[K in keyof Pick<P, keyof P>]: K extends keyof D ? __VLS_Prettify<P[K] & {
|
|
34
|
+
default: D[K];
|
|
35
|
+
}> : P[K];
|
|
36
|
+
};
|
|
37
|
+
type __VLS_Prettify<T> = {
|
|
38
|
+
[K in keyof T]: T[K];
|
|
39
|
+
} & {};
|
|
9
40
|
type __VLS_WithTemplateSlots<T, S> = T & {
|
|
10
41
|
new (): {
|
|
11
42
|
$slots: S;
|
|
@@ -10,6 +10,10 @@ declare const _default: __VLS_WithTemplateSlots<import('vue').DefineComponent<{
|
|
|
10
10
|
type: import("vue").PropType<"auto" | "static">;
|
|
11
11
|
default: string;
|
|
12
12
|
};
|
|
13
|
+
trigger: {
|
|
14
|
+
type: import("vue").PropType<"click" | "hover">;
|
|
15
|
+
default: ElementTrigger;
|
|
16
|
+
};
|
|
13
17
|
placement: {
|
|
14
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">;
|
|
15
19
|
default: ElementPosition;
|
|
@@ -18,10 +22,6 @@ declare const _default: __VLS_WithTemplateSlots<import('vue').DefineComponent<{
|
|
|
18
22
|
type: import("vue").PropType<string>;
|
|
19
23
|
default: string;
|
|
20
24
|
};
|
|
21
|
-
trigger: {
|
|
22
|
-
type: import("vue").PropType<"click" | "hover">;
|
|
23
|
-
default: ElementTrigger;
|
|
24
|
-
};
|
|
25
25
|
}, {
|
|
26
26
|
name: string;
|
|
27
27
|
}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
|
|
@@ -34,6 +34,10 @@ declare const _default: __VLS_WithTemplateSlots<import('vue').DefineComponent<{
|
|
|
34
34
|
type: import("vue").PropType<"auto" | "static">;
|
|
35
35
|
default: string;
|
|
36
36
|
};
|
|
37
|
+
trigger: {
|
|
38
|
+
type: import("vue").PropType<"click" | "hover">;
|
|
39
|
+
default: ElementTrigger;
|
|
40
|
+
};
|
|
37
41
|
placement: {
|
|
38
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">;
|
|
39
43
|
default: ElementPosition;
|
|
@@ -42,16 +46,12 @@ declare const _default: __VLS_WithTemplateSlots<import('vue').DefineComponent<{
|
|
|
42
46
|
type: import("vue").PropType<string>;
|
|
43
47
|
default: string;
|
|
44
48
|
};
|
|
45
|
-
trigger: {
|
|
46
|
-
type: import("vue").PropType<"click" | "hover">;
|
|
47
|
-
default: ElementTrigger;
|
|
48
|
-
};
|
|
49
49
|
}>>, {
|
|
50
50
|
disabled: boolean;
|
|
51
51
|
width: "auto" | "static";
|
|
52
|
+
trigger: "click" | "hover";
|
|
52
53
|
placement: "top-start" | "top" | "top-end" | "right-start" | "right" | "right-end" | "bottom-end" | "bottom" | "bottom-start" | "left-end" | "left" | "left-start";
|
|
53
54
|
slotWrapperClasses: string;
|
|
54
|
-
trigger: "click" | "hover";
|
|
55
55
|
}, {}>, {
|
|
56
56
|
default?(_: {
|
|
57
57
|
onTogglePopover: (isVisible?: boolean) => void;
|
|
@@ -1,9 +1,44 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
1
|
+
import { ProgressCircleProps } from './types.js';
|
|
2
|
+
|
|
3
|
+
declare const _default: __VLS_WithTemplateSlots<import('vue').DefineComponent<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<ProgressCircleProps>, {
|
|
4
|
+
value: number;
|
|
5
|
+
width: number;
|
|
6
|
+
strokeWidth: number;
|
|
7
|
+
strokeColor: string;
|
|
8
|
+
backgroundColor: string;
|
|
9
|
+
}>, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<ProgressCircleProps>, {
|
|
10
|
+
value: number;
|
|
11
|
+
width: number;
|
|
12
|
+
strokeWidth: number;
|
|
13
|
+
strokeColor: string;
|
|
14
|
+
backgroundColor: string;
|
|
15
|
+
}>>>, {
|
|
16
|
+
value: number;
|
|
17
|
+
backgroundColor: string;
|
|
18
|
+
strokeWidth: number;
|
|
19
|
+
width: number;
|
|
20
|
+
strokeColor: string;
|
|
3
21
|
}, {}>, {
|
|
4
22
|
default?(_: {}): any;
|
|
5
23
|
}>;
|
|
6
24
|
export default _default;
|
|
25
|
+
type __VLS_NonUndefinedable<T> = T extends undefined ? never : T;
|
|
26
|
+
type __VLS_TypePropsToRuntimeProps<T> = {
|
|
27
|
+
[K in keyof T]-?: {} extends Pick<T, K> ? {
|
|
28
|
+
type: import('vue').PropType<__VLS_NonUndefinedable<T[K]>>;
|
|
29
|
+
} : {
|
|
30
|
+
type: import('vue').PropType<T[K]>;
|
|
31
|
+
required: true;
|
|
32
|
+
};
|
|
33
|
+
};
|
|
34
|
+
type __VLS_WithDefaults<P, D> = {
|
|
35
|
+
[K in keyof Pick<P, keyof P>]: K extends keyof D ? __VLS_Prettify<P[K] & {
|
|
36
|
+
default: D[K];
|
|
37
|
+
}> : P[K];
|
|
38
|
+
};
|
|
39
|
+
type __VLS_Prettify<T> = {
|
|
40
|
+
[K in keyof T]: T[K];
|
|
41
|
+
} & {};
|
|
7
42
|
type __VLS_WithTemplateSlots<T, S> = T & {
|
|
8
43
|
new (): {
|
|
9
44
|
$slots: S;
|
package/package.json
CHANGED
package/dist/Drawer-omdZnBPG.js
DELETED
|
@@ -1,74 +0,0 @@
|
|
|
1
|
-
import './Drawer.css';
|
|
2
|
-
import { defineComponent as _, ref as y, onMounted as v, resolveComponent as b, openBlock as o, createElementBlock as t, withKeys as h, createVNode as a, createElementVNode as i, 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 v(() => {
|
|
28
|
-
n.value?.focus();
|
|
29
|
-
}), (e, B) => {
|
|
30
|
-
const u = b("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
|
-
a(k, { onClick: s }),
|
|
39
|
-
i("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
|
-
a(u, {
|
|
50
|
-
icon: "close",
|
|
51
|
-
role: "button",
|
|
52
|
-
onClick: s,
|
|
53
|
-
size: "sm"
|
|
54
|
-
})
|
|
55
|
-
])) : d("", !0),
|
|
56
|
-
i("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-8ed9a90a"]]);
|
|
72
|
-
export {
|
|
73
|
-
H as D
|
|
74
|
-
};
|
|
@@ -1,80 +0,0 @@
|
|
|
1
|
-
import { defineComponent as k, useSlots as C, inject as S, computed as _, provide as $, resolveComponent as I, openBlock as t, createElementBlock as l, createElementVNode as r, normalizeClass as s, Fragment as d, unref as n, renderSlot as a, createVNode as b, withCtx as v, renderList as B, toDisplayString as F, createCommentVNode as N } 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__ */ k({
|
|
8
|
-
name: "TFormItem",
|
|
9
|
-
__name: "FormItem",
|
|
10
|
-
props: {
|
|
11
|
-
label: {},
|
|
12
|
-
rules: {},
|
|
13
|
-
inline: { type: Boolean, default: !0 }
|
|
14
|
-
},
|
|
15
|
-
setup(x) {
|
|
16
|
-
const c = x, u = `formitem_${++E}`, i = C(), p = [], o = S("formStyle", { label: "", input: "" }), m = _(() => {
|
|
17
|
-
if (!i || !i.default)
|
|
18
|
-
return !1;
|
|
19
|
-
const e = i?.default();
|
|
20
|
-
return e ? e[0].type.name === "TInputCheckbox" : !1;
|
|
21
|
-
}), y = _(() => m.value === !0);
|
|
22
|
-
return $("id", u), (e, T) => {
|
|
23
|
-
const f = I("t-graphy-label");
|
|
24
|
-
return t(), l("div", V, [
|
|
25
|
-
r("div", {
|
|
26
|
-
class: s(["flex items-center gap-2 my-3", { "flex-col": !c.inline }])
|
|
27
|
-
}, [
|
|
28
|
-
y.value ? (t(), l(d, { key: 0 }, [
|
|
29
|
-
r("div", {
|
|
30
|
-
class: s(["text-right", { [n(o).label]: !0 }])
|
|
31
|
-
}, [
|
|
32
|
-
a(e.$slots, "default")
|
|
33
|
-
], 2),
|
|
34
|
-
b(f, {
|
|
35
|
-
text: c.label,
|
|
36
|
-
for: u,
|
|
37
|
-
class: s([{
|
|
38
|
-
[n(o).input]: !0,
|
|
39
|
-
"cursor-pointer": m.value
|
|
40
|
-
}, "text-left"])
|
|
41
|
-
}, {
|
|
42
|
-
default: v(() => [
|
|
43
|
-
a(e.$slots, "label")
|
|
44
|
-
]),
|
|
45
|
-
_: 3
|
|
46
|
-
}, 8, ["text", "class"])
|
|
47
|
-
], 64)) : (t(), l(d, { key: 1 }, [
|
|
48
|
-
b(f, {
|
|
49
|
-
text: c.label,
|
|
50
|
-
for: u,
|
|
51
|
-
class: s([{
|
|
52
|
-
[n(o).label]: !0,
|
|
53
|
-
"cursor-pointer": m.value
|
|
54
|
-
}, "text-right"])
|
|
55
|
-
}, {
|
|
56
|
-
default: v(() => [
|
|
57
|
-
a(e.$slots, "label")
|
|
58
|
-
]),
|
|
59
|
-
_: 3
|
|
60
|
-
}, 8, ["text", "class"]),
|
|
61
|
-
r("div", {
|
|
62
|
-
class: s({ [n(o).input]: !0 })
|
|
63
|
-
}, [
|
|
64
|
-
a(e.$slots, "default")
|
|
65
|
-
], 2)
|
|
66
|
-
], 64))
|
|
67
|
-
], 2),
|
|
68
|
-
p ? (t(), l("div", w, [
|
|
69
|
-
(t(), l(d, null, B(p, (h, g) => r("span", {
|
|
70
|
-
class: "text-sm text-red-600",
|
|
71
|
-
key: g
|
|
72
|
-
}, F(h), 1)), 64))
|
|
73
|
-
])) : N("", !0)
|
|
74
|
-
]);
|
|
75
|
-
};
|
|
76
|
-
}
|
|
77
|
-
});
|
|
78
|
-
export {
|
|
79
|
-
z as _
|
|
80
|
-
};
|
|
@@ -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,74 +0,0 @@
|
|
|
1
|
-
import { defineComponent as y, ref as h, watch as r, resolveComponent as m, openBlock as n, createElementBlock as o, createElementVNode as k, createBlock as c, createCommentVNode as C, createVNode as i, Fragment as g, renderList as I, resolveDynamicComponent as N, mergeProps as $, toHandlers as w } from "vue";
|
|
2
|
-
const B = { class: "inline-flex w-full items-center gap-2 my-3" }, P = ["label"], j = /* @__PURE__ */ y({
|
|
3
|
-
name: "TInputMultiplier",
|
|
4
|
-
__name: "InputMultiplier",
|
|
5
|
-
props: {
|
|
6
|
-
component: { default: "t-input-text" },
|
|
7
|
-
inputProps: { default: () => ({}) },
|
|
8
|
-
label: { default: "" },
|
|
9
|
-
listeners: { default: () => ({}) },
|
|
10
|
-
modelValue: {}
|
|
11
|
-
},
|
|
12
|
-
emits: ["update:model-value"],
|
|
13
|
-
setup(p, { emit: d }) {
|
|
14
|
-
const a = p, v = d, l = h([]), _ = () => {
|
|
15
|
-
l.value.push("");
|
|
16
|
-
}, b = (e) => {
|
|
17
|
-
l.value = e;
|
|
18
|
-
}, f = (e) => {
|
|
19
|
-
l.value.splice(e, 1);
|
|
20
|
-
};
|
|
21
|
-
return r(
|
|
22
|
-
l,
|
|
23
|
-
(e) => {
|
|
24
|
-
v("update:model-value", e);
|
|
25
|
-
},
|
|
26
|
-
{ deep: !0 }
|
|
27
|
-
), r(
|
|
28
|
-
() => a.modelValue,
|
|
29
|
-
(e) => {
|
|
30
|
-
b(e ?? []);
|
|
31
|
-
},
|
|
32
|
-
{ immediate: !0 }
|
|
33
|
-
), (e, E) => {
|
|
34
|
-
const V = m("t-graphy-label"), s = m("t-button");
|
|
35
|
-
return n(), o("div", null, [
|
|
36
|
-
k("div", B, [
|
|
37
|
-
e.label ? (n(), c(V, {
|
|
38
|
-
key: 0,
|
|
39
|
-
text: e.label,
|
|
40
|
-
class: "text-right"
|
|
41
|
-
}, null, 8, ["text"])) : C("", !0),
|
|
42
|
-
i(s, {
|
|
43
|
-
label: `Add ${e.label}`,
|
|
44
|
-
variant: "primary",
|
|
45
|
-
"is-outline": !0,
|
|
46
|
-
icon: "plus",
|
|
47
|
-
size: "sm",
|
|
48
|
-
onClick: _
|
|
49
|
-
}, null, 8, ["label"])
|
|
50
|
-
]),
|
|
51
|
-
(n(!0), o(g, null, I(l.value, (M, t) => (n(), o("div", {
|
|
52
|
-
key: t,
|
|
53
|
-
label: `${e.label} ${t + 1}`,
|
|
54
|
-
class: "flex items-center justify-start mt-1 ml-2"
|
|
55
|
-
}, [
|
|
56
|
-
(n(), c(N(a.component), $(a.inputProps, w(a.listeners), {
|
|
57
|
-
modelValue: l.value[t],
|
|
58
|
-
"onUpdate:modelValue": (u) => l.value[t] = u,
|
|
59
|
-
class: "my-1"
|
|
60
|
-
}), null, 16, ["modelValue", "onUpdate:modelValue"])),
|
|
61
|
-
i(s, {
|
|
62
|
-
variant: "transparent",
|
|
63
|
-
icon: "close",
|
|
64
|
-
class: "ml-2",
|
|
65
|
-
onClick: (u) => f(t)
|
|
66
|
-
}, null, 8, ["onClick"])
|
|
67
|
-
], 8, P))), 128))
|
|
68
|
-
]);
|
|
69
|
-
};
|
|
70
|
-
}
|
|
71
|
-
});
|
|
72
|
-
export {
|
|
73
|
-
j as _
|
|
74
|
-
};
|
|
@@ -1,40 +0,0 @@
|
|
|
1
|
-
import { defineComponent as m, inject as o, computed as f, withDirectives as v, openBlock as b, createElementBlock as y, mergeProps as h, unref as t, vModelDynamic as _ } from "vue";
|
|
2
|
-
const x = ["type", "id", "placeholder", "autocomplete", "disabled"], B = /* @__PURE__ */ m({
|
|
3
|
-
name: "TInputText",
|
|
4
|
-
__name: "InputText",
|
|
5
|
-
props: {
|
|
6
|
-
modelValue: { default: "" },
|
|
7
|
-
type: { default: "text" },
|
|
8
|
-
placeholder: { default: void 0 },
|
|
9
|
-
autocomplete: { default: void 0 },
|
|
10
|
-
disabled: { type: Boolean, default: !1 },
|
|
11
|
-
disableStyle: { type: Boolean, default: !1 }
|
|
12
|
-
},
|
|
13
|
-
emits: ["update:model-value", "keyup.enter"],
|
|
14
|
-
setup(i, { emit: p }) {
|
|
15
|
-
const e = i, r = o("id", ""), s = p, d = o("invalid", !1), a = o("validated", !1), n = f({
|
|
16
|
-
get: () => e.modelValue,
|
|
17
|
-
set: (l) => {
|
|
18
|
-
s("update:model-value", l);
|
|
19
|
-
}
|
|
20
|
-
});
|
|
21
|
-
return (l, u) => v((b(), y("input", h({
|
|
22
|
-
"onUpdate:modelValue": u[0] || (u[0] = (c) => n.value = c),
|
|
23
|
-
type: e.type,
|
|
24
|
-
class: {
|
|
25
|
-
"h-9 input-bg-color input-text-color input-outline border input-border input-roundness input-padding w-full": !e.disableStyle,
|
|
26
|
-
"border-red-500": !t(a) && t(d),
|
|
27
|
-
"border-emerald-500": t(a) && !t(d)
|
|
28
|
-
},
|
|
29
|
-
id: t(r),
|
|
30
|
-
placeholder: e.placeholder,
|
|
31
|
-
autocomplete: e.autocomplete,
|
|
32
|
-
disabled: e.disabled
|
|
33
|
-
}, l.$attrs), null, 16, x)), [
|
|
34
|
-
[_, n.value]
|
|
35
|
-
]);
|
|
36
|
-
}
|
|
37
|
-
});
|
|
38
|
-
export {
|
|
39
|
-
B as _
|
|
40
|
-
};
|