@caipira/tamandua 0.0.115 → 0.0.116
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/types/components/Alert/Alert.story.d.ts +19 -0
- package/dist/types/components/Alert/Alert.vue.d.ts +62 -0
- package/dist/types/components/Alert/index.d.ts +4 -0
- package/dist/types/components/Alert/plugin.d.ts +3 -0
- package/dist/types/components/Alert/types.d.ts +42 -0
- package/dist/types/components/Avatar/Avatar.story.d.ts +27 -0
- package/dist/types/components/Avatar/Avatar.vue.d.ts +44 -0
- package/dist/types/components/Avatar/index.d.ts +4 -0
- package/dist/types/components/Avatar/plugin.d.ts +3 -0
- package/dist/types/components/Avatar/types.d.ts +10 -0
- package/dist/types/components/Backdrop/Backdrop.vue.d.ts +32 -0
- package/dist/types/components/Backdrop/index.d.ts +4 -0
- package/dist/types/components/Backdrop/plugin.d.ts +3 -0
- package/dist/types/components/Backdrop/types.d.ts +6 -0
- package/dist/types/components/Button/Button.story.d.ts +45 -0
- package/dist/types/components/Button/Button.vue.d.ts +141 -0
- package/dist/types/components/Button/index.d.ts +4 -0
- package/dist/types/components/Button/plugin.d.ts +3 -0
- package/dist/types/components/Button/types.d.ts +29 -0
- package/dist/types/components/ChartLine/ChartLine.story.d.ts +25 -0
- package/dist/types/components/ChartLine/ChartLine.vue.d.ts +35 -0
- package/dist/types/components/ChartLine/index.d.ts +4 -0
- package/dist/types/components/ChartLine/plugin.d.ts +3 -0
- package/dist/types/components/ChartLine/types.d.ts +17 -0
- package/dist/types/components/ChartTreemap/ChartTreemap.story.d.ts +45 -0
- package/dist/types/components/ChartTreemap/ChartTreemap.vue.d.ts +19 -0
- package/dist/types/components/ChartTreemap/index.d.ts +4 -0
- package/dist/types/components/ChartTreemap/plugin.d.ts +3 -0
- package/dist/types/components/ChartTreemap/types.d.ts +15 -0
- package/dist/types/components/DialogProvider/DialogProvider.vue.d.ts +3 -0
- package/dist/types/components/DialogProvider/index.d.ts +3 -0
- package/dist/types/components/DialogProvider/plugin.d.ts +3 -0
- package/dist/types/components/Drawer/Drawer.story.d.ts +21 -0
- package/dist/types/components/Drawer/Drawer.vue.d.ts +61 -0
- package/dist/types/components/Drawer/index.d.ts +4 -0
- package/dist/types/components/Drawer/plugin.d.ts +3 -0
- package/dist/types/components/Drawer/types.d.ts +11 -0
- package/dist/types/components/Dropdown/Dropdown.vue.d.ts +124 -0
- package/dist/types/components/Dropdown/index.d.ts +4 -0
- package/dist/types/components/Dropdown/plugin.d.ts +3 -0
- package/dist/types/components/Dropdown/types.d.ts +25 -0
- package/dist/types/components/FileDrop/FileDrop.vue.d.ts +37 -0
- package/dist/types/components/FileDrop/index.d.ts +4 -0
- package/dist/types/components/FileDrop/plugin.d.ts +3 -0
- package/dist/types/components/FileDrop/types.d.ts +5 -0
- package/dist/types/components/Form/Form.story.d.ts +32 -0
- package/dist/types/components/Form/Form.test.d.ts +1 -0
- package/dist/types/components/Form/Form.vue.d.ts +36 -0
- package/dist/types/components/Form/index.d.ts +4 -0
- package/dist/types/components/Form/plugin.d.ts +3 -0
- package/dist/types/components/Form/types.d.ts +26 -0
- package/dist/types/components/FormItem/FormItem.vue.d.ts +24 -0
- package/dist/types/components/FormItem/index.d.ts +4 -0
- package/dist/types/components/FormItem/plugin.d.ts +3 -0
- package/dist/types/components/FormItem/types.d.ts +4 -0
- package/dist/types/components/GraphyEmpty/GraphyEmpty.vue.d.ts +22 -0
- package/dist/types/components/GraphyEmpty/index.d.ts +4 -0
- package/dist/types/components/GraphyEmpty/plugin.d.ts +3 -0
- package/dist/types/components/GraphyEmpty/types.d.ts +3 -0
- package/dist/types/components/GraphyLabel/GraphyLabel.vue.d.ts +22 -0
- package/dist/types/components/GraphyLabel/index.d.ts +4 -0
- package/dist/types/components/GraphyLabel/plugin.d.ts +3 -0
- package/dist/types/components/GraphyLabel/types.d.ts +3 -0
- package/dist/types/components/GraphyPrice/GraphyPrice.story.d.ts +27 -0
- package/dist/types/components/GraphyPrice/GraphyPrice.vue.d.ts +35 -0
- package/dist/types/components/GraphyPrice/index.d.ts +4 -0
- package/dist/types/components/GraphyPrice/plugin.d.ts +3 -0
- package/dist/types/components/GraphyPrice/types.d.ts +8 -0
- package/dist/types/components/GraphySubtitle/GraphySubtitle.vue.d.ts +28 -0
- package/dist/types/components/GraphySubtitle/index.d.ts +4 -0
- package/dist/types/components/GraphySubtitle/plugin.d.ts +3 -0
- package/dist/types/components/GraphySubtitle/types.d.ts +4 -0
- package/dist/types/components/GraphyTitle/GraphyTitle.vue.d.ts +12 -0
- package/dist/types/components/GraphyTitle/index.d.ts +4 -0
- package/dist/types/components/GraphyTitle/plugin.d.ts +3 -0
- package/dist/types/components/GraphyTitle/types.d.ts +3 -0
- package/dist/types/components/Icon/Icon.story.d.ts +25 -0
- package/dist/types/components/Icon/Icon.vue.d.ts +34 -0
- package/dist/types/components/Icon/index.d.ts +4 -0
- package/dist/types/components/Icon/plugin.d.ts +3 -0
- package/dist/types/components/Icon/types.d.ts +6 -0
- package/dist/types/components/InputAvatar/InputAvatar.vue.d.ts +16 -0
- package/dist/types/components/InputAvatar/index.d.ts +4 -0
- package/dist/types/components/InputAvatar/plugin.d.ts +3 -0
- package/dist/types/components/InputAvatar/types.d.ts +6 -0
- package/dist/types/components/InputCheckbox/Input-checkbox.story.d.ts +14 -0
- package/dist/types/components/InputCheckbox/InputCheckbox.vue.d.ts +43 -0
- package/dist/types/components/InputCheckbox/index.d.ts +4 -0
- package/dist/types/components/InputCheckbox/plugin.d.ts +3 -0
- package/dist/types/components/InputCheckbox/types.d.ts +18 -0
- package/dist/types/components/InputColor/InputColor.vue.d.ts +35 -0
- package/dist/types/components/InputColor/index.d.ts +4 -0
- package/dist/types/components/InputColor/plugin.d.ts +3 -0
- package/dist/types/components/InputColor/types.d.ts +8 -0
- package/dist/types/components/InputCryptoCurrency/InputCryptoCurrency.story.d.ts +14 -0
- package/dist/types/components/InputCryptoCurrency/InputCryptoCurrency.vue.d.ts +21 -0
- package/dist/types/components/InputCryptoCurrency/currencies.d.ts +8 -0
- package/dist/types/components/InputCryptoCurrency/index.d.ts +4 -0
- package/dist/types/components/InputCryptoCurrency/plugin.d.ts +3 -0
- package/dist/types/components/InputCryptoCurrency/types.d.ts +8 -0
- package/dist/types/components/InputDate/InputDate.story.d.ts +13 -0
- package/dist/types/components/InputDate/InputDate.vue.d.ts +16 -0
- package/dist/types/components/InputDate/index.d.ts +4 -0
- package/dist/types/components/InputDate/plugin.d.ts +3 -0
- package/dist/types/components/InputDate/types.d.ts +15 -0
- package/dist/types/components/InputMultiplier/InputMultiplier.vue.d.ts +50 -0
- package/dist/types/components/InputMultiplier/index.d.ts +4 -0
- package/dist/types/components/InputMultiplier/input-multiplier.story.d.ts +43 -0
- package/dist/types/components/InputMultiplier/plugin.d.ts +3 -0
- package/dist/types/components/InputMultiplier/types.d.ts +19 -0
- package/dist/types/components/InputPassword/Input-password.story.d.ts +30 -0
- package/dist/types/components/InputPassword/InputPassword.vue.d.ts +55 -0
- package/dist/types/components/InputPassword/index.d.ts +4 -0
- package/dist/types/components/InputPassword/plugin.d.ts +3 -0
- package/dist/types/components/InputPassword/types.d.ts +21 -0
- package/dist/types/components/InputPhone/InputPhone.vue.d.ts +44 -0
- package/dist/types/components/InputPhone/index.d.ts +4 -0
- package/dist/types/components/InputPhone/plugin.d.ts +3 -0
- package/dist/types/components/InputPhone/types.d.ts +13 -0
- package/dist/types/components/InputPrice/InputPrice.story.d.ts +13 -0
- package/dist/types/components/InputPrice/InputPrice.vue.d.ts +25 -0
- package/dist/types/components/InputPrice/index.d.ts +4 -0
- package/dist/types/components/InputPrice/plugin.d.ts +3 -0
- package/dist/types/components/InputPrice/service.d.ts +7 -0
- package/dist/types/components/InputPrice/service.test.d.ts +1 -0
- package/dist/types/components/InputPrice/types.d.ts +12 -0
- package/dist/types/components/InputRadio/InputRadio.vue.d.ts +12 -0
- package/dist/types/components/InputRadio/InputRadioGroup.story.d.ts +11 -0
- package/dist/types/components/InputRadio/InputRadioGroup.vue.d.ts +42 -0
- package/dist/types/components/InputRadio/index.d.ts +4 -0
- package/dist/types/components/InputRadio/plugin.d.ts +3 -0
- package/dist/types/components/InputRadio/types.d.ts +12 -0
- package/dist/types/components/InputSelect/InputSelect.story.d.ts +46 -0
- package/dist/types/components/InputSelect/InputSelect.vue.d.ts +2032 -0
- package/dist/types/components/InputSelect/index.d.ts +4 -0
- package/dist/types/components/InputSelect/plugin.d.ts +3 -0
- package/dist/types/components/InputSelect/types.d.ts +85 -0
- package/dist/types/components/InputSwitch/InputSwitch.story.d.ts +27 -0
- package/dist/types/components/InputSwitch/InputSwitch.vue.d.ts +39 -0
- package/dist/types/components/InputSwitch/index.d.ts +4 -0
- package/dist/types/components/InputSwitch/plugin.d.ts +3 -0
- package/dist/types/components/InputSwitch/types.d.ts +10 -0
- package/dist/types/components/InputText/InputText.story.d.ts +21 -0
- package/dist/types/components/InputText/InputText.vue.d.ts +67 -0
- package/dist/types/components/InputText/index.d.ts +4 -0
- package/dist/types/components/InputText/plugin.d.ts +3 -0
- package/dist/types/components/InputText/types.d.ts +16 -0
- package/dist/types/components/InputTextarea/InputTextarea.vue.d.ts +41 -0
- package/dist/types/components/InputTextarea/index.d.ts +4 -0
- package/dist/types/components/InputTextarea/plugin.d.ts +3 -0
- package/dist/types/components/InputTextarea/types.d.ts +10 -0
- package/dist/types/components/Link/Link.story.d.ts +20 -0
- package/dist/types/components/Link/Link.vue.d.ts +50 -0
- package/dist/types/components/Link/index.d.ts +4 -0
- package/dist/types/components/Link/plugin.d.ts +3 -0
- package/dist/types/components/Link/types.d.ts +10 -0
- package/dist/types/components/Modal/Modal.story.d.ts +21 -0
- package/dist/types/components/Modal/Modal.vue.d.ts +78 -0
- package/dist/types/components/Modal/index.d.ts +4 -0
- package/dist/types/components/Modal/plugin.d.ts +3 -0
- package/dist/types/components/Modal/types.d.ts +37 -0
- package/dist/types/components/ModalForm/ModalForm.story.d.ts +34 -0
- package/dist/types/components/ModalForm/ModalForm.vue.d.ts +58 -0
- package/dist/types/components/ModalForm/index.d.ts +4 -0
- package/dist/types/components/ModalForm/plugin.d.ts +3 -0
- package/dist/types/components/ModalForm/types.d.ts +20 -0
- package/dist/types/components/Pagination/Pagination.story.d.ts +16 -0
- package/dist/types/components/Pagination/Pagination.vue.d.ts +50 -0
- package/dist/types/components/Pagination/index.d.ts +4 -0
- package/dist/types/components/Pagination/plugin.d.ts +3 -0
- package/dist/types/components/Pagination/types.d.ts +7 -0
- package/dist/types/components/Popconfirm/Popconfirm.vue.d.ts +48 -0
- package/dist/types/components/Popconfirm/index.d.ts +4 -0
- package/dist/types/components/Popconfirm/plugin.d.ts +3 -0
- package/dist/types/components/Popconfirm/types.d.ts +8 -0
- package/dist/types/components/Popover/Popover.story.d.ts +15 -0
- package/dist/types/components/Popover/Popover.vue.d.ts +70 -0
- package/dist/types/components/Popover/index.d.ts +4 -0
- package/dist/types/components/Popover/plugin.d.ts +3 -0
- package/dist/types/components/Popover/types.d.ts +17 -0
- package/dist/types/components/ProgressCircle/ProgressCircle.story.d.ts +15 -0
- package/dist/types/components/ProgressCircle/ProgressCircle.vue.d.ts +50 -0
- package/dist/types/components/ProgressCircle/index.d.ts +4 -0
- package/dist/types/components/ProgressCircle/plugin.d.ts +3 -0
- package/dist/types/components/ProgressCircle/types.d.ts +7 -0
- package/dist/types/components/ProgressLine/ProgressLine.story.d.ts +14 -0
- package/dist/types/components/ProgressLine/ProgressLine.vue.d.ts +77 -0
- package/dist/types/components/ProgressLine/index.d.ts +4 -0
- package/dist/types/components/ProgressLine/plugin.d.ts +3 -0
- package/dist/types/components/ProgressLine/types.d.ts +18 -0
- package/dist/types/components/Range/Range.story.d.ts +56 -0
- package/dist/types/components/Range/Range.vue.d.ts +50 -0
- package/dist/types/components/Range/index.d.ts +4 -0
- package/dist/types/components/Range/plugin.d.ts +3 -0
- package/dist/types/components/Range/types.d.ts +12 -0
- package/dist/types/components/SensitiveInfo/SensitiveInfo.vue.d.ts +22 -0
- package/dist/types/components/SensitiveInfo/index.d.ts +4 -0
- package/dist/types/components/SensitiveInfo/plugin.d.ts +3 -0
- package/dist/types/components/SensitiveInfo/types.d.ts +3 -0
- package/dist/types/components/Skeleton/Skeleton.vue.d.ts +31 -0
- package/dist/types/components/Skeleton/index.d.ts +4 -0
- package/dist/types/components/Skeleton/plugin.d.ts +3 -0
- package/dist/types/components/Skeleton/types.d.ts +4 -0
- package/dist/types/components/Tab/Tab.story.d.ts +15 -0
- package/dist/types/components/Tab/Tab.vue.d.ts +48 -0
- package/dist/types/components/Tab/index.d.ts +4 -0
- package/dist/types/components/Tab/plugin.d.ts +3 -0
- package/dist/types/components/Tab/types.d.ts +9 -0
- package/dist/types/components/Table/Table.story.d.ts +30 -0
- package/dist/types/components/Table/Table.vue.d.ts +34 -0
- package/dist/types/components/Table/index.d.ts +4 -0
- package/dist/types/components/Table/plugin.d.ts +3 -0
- package/dist/types/components/Table/types.d.ts +19 -0
- package/dist/types/components/Tag/Tag.story.d.ts +28 -0
- package/dist/types/components/Tag/Tag.vue.d.ts +58 -0
- package/dist/types/components/Tag/index.d.ts +4 -0
- package/dist/types/components/Tag/plugin.d.ts +3 -0
- package/dist/types/components/Tag/types.d.ts +13 -0
- package/dist/types/components/Toast/Toast.vue.d.ts +16 -0
- package/dist/types/components/Toast/index.d.ts +4 -0
- package/dist/types/components/Toast/plugin.d.ts +3 -0
- package/dist/types/components/Toast/types.d.ts +7 -0
- package/dist/types/components/index.d.ts +48 -0
- package/dist/types/components/plugins.d.ts +48 -0
- package/dist/types/components/types.d.ts +46 -0
- package/dist/types/composables/index.d.ts +6 -0
- package/dist/types/composables/useBreakpoints.d.ts +5 -0
- package/dist/types/composables/useClipboard.d.ts +3 -0
- package/dist/types/composables/useDialog.d.ts +466 -0
- package/dist/types/composables/useDomHelpers.d.ts +3 -0
- package/dist/types/composables/useRender.d.ts +2 -0
- package/dist/types/enums/form.d.ts +24 -0
- package/dist/types/enums/index.d.ts +3 -0
- package/dist/types/enums/ui.d.ts +238 -0
- package/dist/types/form/convertors.d.ts +3 -0
- package/dist/types/form/crud.d.ts +27 -0
- package/dist/types/form/form-data-transformers.d.ts +3 -0
- package/dist/types/form/form-transformer.d.ts +6 -0
- package/dist/types/form/form-transformer.test.d.ts +1 -0
- package/dist/types/form/index.d.ts +3 -0
- package/dist/types/form/json-transformers.d.ts +4 -0
- package/dist/types/form/transformers.d.ts +8 -0
- package/dist/types/form/useForm.d.ts +18 -0
- package/dist/types/form/useForm.test.d.ts +1 -0
- package/dist/types/i18n.d.ts +21 -0
- package/dist/types/index.d.ts +8 -6
- package/dist/types/mocks/countries.d.ts +14 -0
- package/dist/types/plugins/register-component.d.ts +3 -0
- package/dist/types/services/date.d.ts +2 -0
- package/dist/types/services/password.d.ts +5 -0
- package/dist/types/services/password.test.d.ts +1 -0
- package/dist/types/types/index.d.ts +6 -0
- package/dist/types/vitest.setup.d.ts +1 -0
- package/package.json +6 -5
- /package/dist/types/{address.d.ts → types/address.d.ts} +0 -0
- /package/dist/types/{api.d.ts → types/api.d.ts} +0 -0
- /package/dist/types/{common.d.ts → types/common.d.ts} +0 -0
- /package/dist/types/{form.d.ts → types/form.d.ts} +0 -0
- /package/dist/types/{ui.d.ts → types/ui.d.ts} +0 -0
- /package/dist/types/{website.d.ts → types/website.d.ts} +0 -0
|
@@ -0,0 +1,238 @@
|
|
|
1
|
+
export declare enum ElementSize {
|
|
2
|
+
Unset = "",
|
|
3
|
+
ExtraSmall = "xs",
|
|
4
|
+
Small = "sm",
|
|
5
|
+
Default = "default",
|
|
6
|
+
Large = "lg",
|
|
7
|
+
ExtraLarge = "xl"
|
|
8
|
+
}
|
|
9
|
+
export declare enum ElementShape {
|
|
10
|
+
Unset = "",
|
|
11
|
+
Square = "square",
|
|
12
|
+
Rounded = "rounded",
|
|
13
|
+
Circle = "circle"
|
|
14
|
+
}
|
|
15
|
+
export declare enum ElementTrigger {
|
|
16
|
+
CLICK = "click",
|
|
17
|
+
HOVER = "hover",
|
|
18
|
+
CONTEXT_MENU = "context-menu"
|
|
19
|
+
}
|
|
20
|
+
export declare enum ElementPosition {
|
|
21
|
+
TOP_START = "top-start",
|
|
22
|
+
TOP = "top",
|
|
23
|
+
TOP_END = "top-end",
|
|
24
|
+
RIGHT_START = "right-start",
|
|
25
|
+
RIGHT = "right",
|
|
26
|
+
RIGHT_END = "right-end",
|
|
27
|
+
BOTTOM_END = "bottom-end",
|
|
28
|
+
BOTTOM = "bottom",
|
|
29
|
+
BOTTOM_START = "bottom-start",
|
|
30
|
+
LEFT_END = "left-end",
|
|
31
|
+
LEFT = "left",
|
|
32
|
+
LEFT_START = "left-start",
|
|
33
|
+
ACTIVATION_POSITION = "activation-position"
|
|
34
|
+
}
|
|
35
|
+
export declare enum FormControlSize {
|
|
36
|
+
Small = "sm",
|
|
37
|
+
Default = "default"
|
|
38
|
+
}
|
|
39
|
+
export declare enum ToastVariant {
|
|
40
|
+
DEFAULT = "default",
|
|
41
|
+
PRIMARY = "primary",
|
|
42
|
+
SUCCESS = "success",
|
|
43
|
+
DANGER = "danger",
|
|
44
|
+
WARNING = "warning"
|
|
45
|
+
}
|
|
46
|
+
export declare enum ButtonType {
|
|
47
|
+
BUTTON = "button",
|
|
48
|
+
SUBMIT = "submit",
|
|
49
|
+
FILE = "file"
|
|
50
|
+
}
|
|
51
|
+
export declare enum ButtonVariant {
|
|
52
|
+
Unset = "",
|
|
53
|
+
DEFAULT = "default",
|
|
54
|
+
PRIMARY = "primary",
|
|
55
|
+
SUCCESS = "success",
|
|
56
|
+
DANGER = "danger",
|
|
57
|
+
WARNING = "warning",
|
|
58
|
+
LINK = "link",
|
|
59
|
+
TRANSPARENT = "transparent"
|
|
60
|
+
}
|
|
61
|
+
export declare enum ButtonInnerAlignment {
|
|
62
|
+
Unset = "",
|
|
63
|
+
Left = "left",
|
|
64
|
+
Center = "center"
|
|
65
|
+
}
|
|
66
|
+
export declare enum LinkType {
|
|
67
|
+
Default = "default",
|
|
68
|
+
Router = "router"
|
|
69
|
+
}
|
|
70
|
+
export declare enum GraphyPriceVariant {
|
|
71
|
+
DEFAULT = "default",
|
|
72
|
+
INCREASE = "increase",
|
|
73
|
+
DECREASE = "decrease",
|
|
74
|
+
AUTO = "auto"
|
|
75
|
+
}
|
|
76
|
+
export declare enum Icon {
|
|
77
|
+
Account = "account",
|
|
78
|
+
AccountBox = "account-box",
|
|
79
|
+
AccountBoxOutline = "account-box-outline",
|
|
80
|
+
AccountCircle = "account-circle",
|
|
81
|
+
AccountCircleOutline = "account-circle-outline",
|
|
82
|
+
AccountGroup = "account-group",
|
|
83
|
+
AccountGroupOutline = "account-group-outline",
|
|
84
|
+
AccountMultiple = "account-multiple",
|
|
85
|
+
AccountMultipleOutline = "account-multiple-outline",
|
|
86
|
+
AccountOutline = "account-outline",
|
|
87
|
+
AlertOctagon = "alert-octagon",
|
|
88
|
+
AlertOctagonOutline = "alert-octagon-outline",
|
|
89
|
+
Api = "api",
|
|
90
|
+
Apps = "apps",
|
|
91
|
+
Archive = "archive",
|
|
92
|
+
ArchiveOutline = "archive-outline",
|
|
93
|
+
ArrowLeft = "arrow-left",
|
|
94
|
+
ArrowRight = "arrow-right",
|
|
95
|
+
Bank = "bank",
|
|
96
|
+
BankOutline = "bank-outline",
|
|
97
|
+
BookAlphabet = "book-alphabet",
|
|
98
|
+
BookMultiple = "book-multiple",
|
|
99
|
+
BookMultipleOutline = "book-multiple-outline",
|
|
100
|
+
Bookshelf = "bookshelf",
|
|
101
|
+
Bucket = "bucket",
|
|
102
|
+
BucketOutline = "bucket-outline",
|
|
103
|
+
Camera = "camera",
|
|
104
|
+
CardsOutline = "cards-outline",
|
|
105
|
+
CardsVariant = "cards-variant",
|
|
106
|
+
CartOutline = "cart-outline",
|
|
107
|
+
ChartBox = "chart-box",
|
|
108
|
+
ChartBoxOutline = "chart-box-outline",
|
|
109
|
+
Check = "check",
|
|
110
|
+
CheckCircle = "check-circle",
|
|
111
|
+
CheckCircleOutline = "check-circle-outline",
|
|
112
|
+
ChevronDown = "chevron-down",
|
|
113
|
+
ChevronLeft = "chevron-left",
|
|
114
|
+
ChevronRight = "chevron-right",
|
|
115
|
+
ChevronUp = "chevron-up",
|
|
116
|
+
Circle = "circle",
|
|
117
|
+
Clock = "clock",
|
|
118
|
+
ClockFast = "clock-fast",
|
|
119
|
+
ClockOutline = "clock-outline",
|
|
120
|
+
Close = "close",
|
|
121
|
+
CloseCircle = "close-circle",
|
|
122
|
+
CloseCircleOutline = "close-circle-outline",
|
|
123
|
+
Cog = "cog",
|
|
124
|
+
Contacts = "contacts",
|
|
125
|
+
ContactsOutline = "contacts-outline",
|
|
126
|
+
Copy = "copy",
|
|
127
|
+
CreditCard = "credit-card",
|
|
128
|
+
CreditCardPlus = "credit-card-plus",
|
|
129
|
+
Currency = "currency",
|
|
130
|
+
Database = "database",
|
|
131
|
+
DatabaseOutline = "database-outline",
|
|
132
|
+
DotsGrid = "dots-grid",
|
|
133
|
+
DotsHorizontal = "dots-horizontal",
|
|
134
|
+
DotsVertical = "dots-vertical",
|
|
135
|
+
Download = "download",
|
|
136
|
+
DownloadBox = "download-box",
|
|
137
|
+
DownloadBoxOutline = "download-box-outline",
|
|
138
|
+
EmailOpenOutline = "email-open-outline",
|
|
139
|
+
EmailOutline = "email-outline",
|
|
140
|
+
Eye = "eye",
|
|
141
|
+
EyeOff = "eye-off",
|
|
142
|
+
FIleDocumentPlusOutline = "file-document-plus-outline",
|
|
143
|
+
Filmstrip = "filmstrip",
|
|
144
|
+
Filter = "filter",
|
|
145
|
+
Fullscreen = "fullscreen",
|
|
146
|
+
FullscreenExit = "fullscreen-exit",
|
|
147
|
+
Git = "git",
|
|
148
|
+
Group = "group",
|
|
149
|
+
Home = "home",
|
|
150
|
+
HomeOutline = "home-outline",
|
|
151
|
+
Image = "image",
|
|
152
|
+
ImageAlbum = "image-album",
|
|
153
|
+
ImageAlbumOutline = "image-album-outline",
|
|
154
|
+
ImageOutline = "image-outline",
|
|
155
|
+
InfoOutline = "info-outline",
|
|
156
|
+
Key = "key",
|
|
157
|
+
KeyChain = "key-chain",
|
|
158
|
+
KeyVariant = "key-variant",
|
|
159
|
+
Label = "label",
|
|
160
|
+
LabelOutline = "label-outline",
|
|
161
|
+
ListboxOutline = "listbox-outline",
|
|
162
|
+
Loading = "loading",
|
|
163
|
+
Lock = "lock",
|
|
164
|
+
LockOutline = "lock-outline",
|
|
165
|
+
Logout = "logout",
|
|
166
|
+
Menu = "menu",
|
|
167
|
+
MenuDown = "menu-down",
|
|
168
|
+
MenuLeft = "menu-left",
|
|
169
|
+
MenuRight = "menu-right",
|
|
170
|
+
Minus = "minus",
|
|
171
|
+
MinusCircle = "minus-circle",
|
|
172
|
+
MinusCircleOutline = "minus-circle-outline",
|
|
173
|
+
Moon = "moon",
|
|
174
|
+
MovieOpen = "movie-open",
|
|
175
|
+
MovieOpenOutline = "movie-open-outline",
|
|
176
|
+
OpenInNew = "open-in-new",
|
|
177
|
+
Pause = "pause",
|
|
178
|
+
PauseCircle = "pause-circle",
|
|
179
|
+
Pencil = "pencil",
|
|
180
|
+
PiggyBankOutline = "piggy-bank-outline",
|
|
181
|
+
Play = "play",
|
|
182
|
+
PlayBox = "play-box",
|
|
183
|
+
PlayBoxEditOutline = "play-box-edit-outline",
|
|
184
|
+
PlayBoxOutline = "play-box-outline",
|
|
185
|
+
PlayCircle = "play-circle",
|
|
186
|
+
PlaylistPlay = "playlist-play",
|
|
187
|
+
Plus = "plus",
|
|
188
|
+
PlusCircle = "plus-circle",
|
|
189
|
+
PlusCircleOutline = "plus-circle-outline",
|
|
190
|
+
ProgressClock = "progress-clock",
|
|
191
|
+
QrcodeScan = "qrcode-scan",
|
|
192
|
+
Refresh = "refresh",
|
|
193
|
+
Replay = "replay",
|
|
194
|
+
Save = "save",
|
|
195
|
+
Search = "search",
|
|
196
|
+
Shuffle = "shuffle",
|
|
197
|
+
ShuffleDisabled = "shuffle-disabled",
|
|
198
|
+
ShuffleVariant = "shuffle-variant",
|
|
199
|
+
SkipBackward = "skip-backward",
|
|
200
|
+
SkipForward = "skip-forward",
|
|
201
|
+
SkipNext = "skip-next",
|
|
202
|
+
SkipPrevious = "skip-previous",
|
|
203
|
+
SourceRepository = "source-repository",
|
|
204
|
+
Spotlight = "spotlight",
|
|
205
|
+
Stop = "stop",
|
|
206
|
+
Store = "store",
|
|
207
|
+
StoreOutline = "store-outline",
|
|
208
|
+
Sun = "sun",
|
|
209
|
+
Swap = "swap",
|
|
210
|
+
SwapHorizontal = "swap-horizontal",
|
|
211
|
+
SwapLeft = "swap-left",
|
|
212
|
+
SwapRight = "swap-right",
|
|
213
|
+
SystemTheme = "system-theme",
|
|
214
|
+
Tag = "tag",
|
|
215
|
+
TagEdit = "tag-edit",
|
|
216
|
+
TagEditOutline = "tag-edit-outline",
|
|
217
|
+
TagOutline = "tag-outline",
|
|
218
|
+
Text = "text",
|
|
219
|
+
TextBox = "text-box",
|
|
220
|
+
TextBoxMultiple = "text-box-multiple",
|
|
221
|
+
TextBoxMultipleOutline = "text-box-multiple-outline",
|
|
222
|
+
TextBoxOutline = "text-box-outline",
|
|
223
|
+
TextLong = "text-long",
|
|
224
|
+
TimerOutline = "timer-outline",
|
|
225
|
+
TimerRefreshOutline = "timer-refresh-outline",
|
|
226
|
+
TrashCan = "trash-can",
|
|
227
|
+
TrashCanOutline = "trash-can-outline",
|
|
228
|
+
TrayArrowDown = "tray-arrow-down",
|
|
229
|
+
Ungroup = "ungroup",
|
|
230
|
+
Upload = "upload",
|
|
231
|
+
UploadBoxOutline = "upload-box-outline",
|
|
232
|
+
UploadMultipleOutline = "upload-multiple-outline",
|
|
233
|
+
UploadOutline = "upload-outline",
|
|
234
|
+
Video = "video",
|
|
235
|
+
VideoOutline = "video-outline",
|
|
236
|
+
Web = "web",
|
|
237
|
+
ZipBox = "zip-box"
|
|
238
|
+
}
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
import { default as ModalForm } from '../components/ModalForm/ModalForm.vue';
|
|
2
|
+
import { ComponentExposed } from 'vue-component-type-helpers';
|
|
3
|
+
import { FormStates } from '../enums/form.js';
|
|
4
|
+
export default class CrudService {
|
|
5
|
+
id: string;
|
|
6
|
+
visible: boolean;
|
|
7
|
+
state: FormStates;
|
|
8
|
+
title: string;
|
|
9
|
+
titles: {
|
|
10
|
+
ADD: string;
|
|
11
|
+
EDIT: string;
|
|
12
|
+
};
|
|
13
|
+
isLoading: boolean;
|
|
14
|
+
formReference: ComponentExposed<typeof ModalForm> | undefined;
|
|
15
|
+
constructor(entity: string, formReference: any);
|
|
16
|
+
get isEditing(): boolean;
|
|
17
|
+
get isCreating(): boolean;
|
|
18
|
+
show(state?: FormStates): void;
|
|
19
|
+
setLoading(value?: boolean): void;
|
|
20
|
+
edit(id: string): void;
|
|
21
|
+
close(): void;
|
|
22
|
+
reset(): void;
|
|
23
|
+
save(): Promise<void>;
|
|
24
|
+
onSave(close?: boolean): void;
|
|
25
|
+
delete(): void;
|
|
26
|
+
onDelete(close?: boolean): void;
|
|
27
|
+
}
|
|
@@ -0,0 +1,3 @@
|
|
|
1
|
+
import { FormDataTypes, FormSubmissionFormat } from '../enums/form.js';
|
|
2
|
+
import { FormDataForm, TransformedForm } from '../types/form.js';
|
|
3
|
+
export declare const formValueToFormDataValue: (schema: FormDataTypes, form: TransformedForm<FormSubmissionFormat.FormData>, value: any, key: string) => Promise<FormDataForm>;
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import { FormSubmissionFormat } from '../enums/form.js';
|
|
2
|
+
import { JSONForm, FormSchema, FormInstance, FormDataForm } from '../types/form.js';
|
|
3
|
+
/**
|
|
4
|
+
* Transforms the form values to a format that conforms to the submission format
|
|
5
|
+
*/
|
|
6
|
+
export declare const transformForm: <F extends FormSubmissionFormat, S extends FormSchema>(form: FormInstance<S>, schema: S, format: F) => Promise<F extends FormSubmissionFormat.FormData ? FormDataForm : JSONForm>;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
import { Maybe } from '../types/common.js';
|
|
2
|
+
import { FormSubmissionFormat } from '../enums/form.js';
|
|
3
|
+
import { JSONForm, TransformedForm, FormSchemaValueMap } from '../types/form.js';
|
|
4
|
+
export declare const formValueToJSONFormValue: <T extends keyof FormSchemaValueMap>(schema: T, form: TransformedForm<FormSubmissionFormat.JSON>, value: Maybe<FormSchemaValueMap[T]>, key: string) => Promise<JSONForm>;
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { Country } from '../types/address.js';
|
|
2
|
+
import { InputPriceModel } from '../components/InputPrice/types.js';
|
|
3
|
+
import { InputPasswordModel } from '../components/InputPassword/types.js';
|
|
4
|
+
declare const date: (date: Date) => string;
|
|
5
|
+
declare const price: (priceValue: InputPriceModel) => string[];
|
|
6
|
+
declare const country: (country?: Country) => string;
|
|
7
|
+
declare const password: (password?: InputPasswordModel) => string;
|
|
8
|
+
export { date, price, country, password };
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import { Ref, UnwrapNestedRefs } from 'vue';
|
|
2
|
+
import { FormSchema, FormInstance } from '../types/form.js';
|
|
3
|
+
import { FormSubmissionFormat } from '../enums/form.js';
|
|
4
|
+
export default function useForm<TSchema extends FormSchema = FormSchema>(options: {
|
|
5
|
+
id?: Ref<string | number | undefined>;
|
|
6
|
+
schema: TSchema;
|
|
7
|
+
format?: FormSubmissionFormat;
|
|
8
|
+
}): {
|
|
9
|
+
form: UnwrapNestedRefs<FormInstance<TSchema>>;
|
|
10
|
+
setValue: <K extends keyof UnwrapNestedRefs<FormInstance<TSchema>>>(key: K, value: UnwrapNestedRefs<FormInstance<TSchema>>[K]) => void;
|
|
11
|
+
setValues: (values: Partial<FormInstance<TSchema>>) => void;
|
|
12
|
+
getValue: (key: keyof UnwrapNestedRefs<FormInstance<TSchema>>) => UnwrapNestedRefs<FormInstance<TSchema>>[keyof UnwrapNestedRefs<FormInstance<TSchema>>];
|
|
13
|
+
reset: () => void;
|
|
14
|
+
submit: () => Promise<{
|
|
15
|
+
isValid: boolean;
|
|
16
|
+
form: FormData | import('../types/form.js').JSONForm;
|
|
17
|
+
}>;
|
|
18
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
declare const _default: import('vue-i18n').I18n<{}, {}, {
|
|
2
|
+
EUR: {
|
|
3
|
+
currency: {
|
|
4
|
+
style: "currency";
|
|
5
|
+
currency: string;
|
|
6
|
+
};
|
|
7
|
+
};
|
|
8
|
+
BRL: {
|
|
9
|
+
currency: {
|
|
10
|
+
style: "currency";
|
|
11
|
+
currency: string;
|
|
12
|
+
};
|
|
13
|
+
};
|
|
14
|
+
USD: {
|
|
15
|
+
currency: {
|
|
16
|
+
style: "currency";
|
|
17
|
+
currency: string;
|
|
18
|
+
};
|
|
19
|
+
};
|
|
20
|
+
}, string, false>;
|
|
21
|
+
export default _default;
|
package/dist/types/index.d.ts
CHANGED
|
@@ -1,6 +1,8 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
1
|
+
type InstallableApp = {
|
|
2
|
+
use(plugin: unknown): unknown;
|
|
3
|
+
};
|
|
4
|
+
declare const plugin: {
|
|
5
|
+
install(app: InstallableApp): void;
|
|
6
|
+
};
|
|
7
|
+
export type * from './types/index.js';
|
|
8
|
+
export default plugin;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@caipira/tamandua",
|
|
3
|
-
"version": "0.0.
|
|
3
|
+
"version": "0.0.116",
|
|
4
4
|
"private": false,
|
|
5
5
|
"description": "UI library for the Caipira ecosystem",
|
|
6
6
|
"license": "GPL-3.0-only",
|
|
@@ -59,7 +59,7 @@
|
|
|
59
59
|
},
|
|
60
60
|
"./form": {
|
|
61
61
|
"types": "./dist/types/form/index.d.ts",
|
|
62
|
-
"import": "./dist/
|
|
62
|
+
"import": "./dist/form.js"
|
|
63
63
|
},
|
|
64
64
|
"./date": {
|
|
65
65
|
"types": "./dist/types/services/date.d.ts",
|
|
@@ -86,14 +86,14 @@
|
|
|
86
86
|
"scripts": {
|
|
87
87
|
"start": "vite --host",
|
|
88
88
|
"build:dev": "vite build --mode development",
|
|
89
|
-
"build
|
|
89
|
+
"build": "vite build --mode production",
|
|
90
90
|
"preview": "vite preview",
|
|
91
91
|
"test:start": "vitest",
|
|
92
92
|
"test": "vitest --run",
|
|
93
93
|
"typecheck": "vue-tsc --noEmit -p tsconfig.json --composite false",
|
|
94
94
|
"start:sb": "storybook dev -p 3001",
|
|
95
95
|
"build:sb": "storybook build",
|
|
96
|
-
"prepublishOnly": "npm run build
|
|
96
|
+
"prepublishOnly": "npm run build"
|
|
97
97
|
},
|
|
98
98
|
"dependencies": {
|
|
99
99
|
"@floating-ui/vue": "^1.0.6",
|
|
@@ -120,14 +120,15 @@
|
|
|
120
120
|
"@types/jsdom": "^21.1.6",
|
|
121
121
|
"@types/node": "^20.11.30",
|
|
122
122
|
"@vitejs/plugin-vue": "^6.0.7",
|
|
123
|
+
"@vue/language-core": "^3.3.5",
|
|
123
124
|
"@vue/test-utils": "^2.4.1",
|
|
124
125
|
"@vue/tsconfig": "^0.5.1",
|
|
125
126
|
"jsdom": "^26.0.0",
|
|
126
127
|
"storybook": "^10.0.5",
|
|
127
128
|
"ts-node": "^10.9.1",
|
|
128
129
|
"typescript": "^5.4.5",
|
|
130
|
+
"unplugin-dts": "^1.0.3",
|
|
129
131
|
"vite": "^8.1.0",
|
|
130
|
-
"vite-plugin-dts": "^5.0.3",
|
|
131
132
|
"vite-plugin-lib-inject-css": "^2.0.1",
|
|
132
133
|
"vite-tsconfig-paths": "^4.2.0",
|
|
133
134
|
"vitest": "^3.0.8",
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|