@caipira/tamandua 0.0.47 → 0.0.49

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.
Files changed (33) hide show
  1. package/dist/InputCheckbox.js +2 -2
  2. package/dist/{InputCheckbox.vue_vue_type_style_index_0_lang-D5J-rPuH.js → InputCheckbox.vue_vue_type_style_index_0_lang-DnRqQiOj.js} +20 -19
  3. package/dist/InputCryptoCurrency.js +6 -0
  4. package/dist/InputCryptoCurrency.vue_vue_type_script_setup_true_lang-BIUT5eCh.js +757 -0
  5. package/dist/InputPrice.js +2 -2
  6. package/dist/InputPrice.vue_vue_type_script_setup_true_lang-C2wDVwnm.js +80 -0
  7. package/dist/InputSelect.js +2 -2
  8. package/dist/InputSelect.vue_vue_type_script_setup_true_lang-B89uyzj-.js +226 -0
  9. package/dist/components.js +61 -59
  10. package/dist/{plugin-DPCk5fFS.js → plugin-4XhHBTQc.js} +1 -1
  11. package/dist/plugin-Bq4nQPd4.js +10 -0
  12. package/dist/{plugin-cVdTR_s6.js → plugin-C77cnZuW.js} +1 -1
  13. package/dist/{plugin-z8Hr_T_O.js → plugin-CQ-FpZui.js} +1 -1
  14. package/dist/{plugins-DFHv5iXr.js → plugins-CkB_la4g.js} +48 -46
  15. package/dist/plugins.js +59 -57
  16. package/dist/tamandua.js +1 -1
  17. package/dist/types/components/InputCryptoCurrency/InputCryptoCurrency.story.d.ts +14 -0
  18. package/dist/types/components/InputCryptoCurrency/InputCryptoCurrency.vue.d.ts +14 -0
  19. package/dist/types/components/InputCryptoCurrency/currencies.d.ts +8 -0
  20. package/dist/types/components/InputCryptoCurrency/index.d.ts +5 -0
  21. package/dist/types/components/InputCryptoCurrency/plugin.d.ts +4 -0
  22. package/dist/types/components/InputCryptoCurrency/types.d.ts +8 -0
  23. package/dist/types/components/InputPrice/InputPrice.story.d.ts +13 -0
  24. package/dist/types/components/InputPrice/InputPrice.vue.d.ts +8 -2
  25. package/dist/types/components/InputPrice/types.d.ts +4 -1
  26. package/dist/types/components/InputSelect/InputSelect.vue.d.ts +157 -53
  27. package/dist/types/components/InputSelect/types.d.ts +0 -1
  28. package/dist/types/components/index.d.ts +2 -1
  29. package/dist/types/components/plugins.d.ts +2 -1
  30. package/package.json +1 -1
  31. package/volar.d.ts +1 -0
  32. package/dist/InputPrice.vue_vue_type_script_setup_true_lang-BX4rsYIr.js +0 -67
  33. package/dist/InputSelect.vue_vue_type_script_setup_true_lang-vCtwK795.js +0 -235
package/dist/plugins.js CHANGED
@@ -1,7 +1,7 @@
1
1
  import "./Avatar.vue_vue_type_script_setup_true_lang-C8p8_0Uc.js";
2
- import { p as y } from "./plugin-DDoM02Fq.js";
2
+ import { p as C } from "./plugin-DDoM02Fq.js";
3
3
  import "vue";
4
- import { p as C } from "./plugin-C-iGigb_.js";
4
+ import { p as b } from "./plugin-C-iGigb_.js";
5
5
  import "./Button-DusGbcIs.js";
6
6
  import { p as S } from "./plugin-DH3hMjgo.js";
7
7
  import "./transform-DSaNEFMr.js";
@@ -24,45 +24,46 @@ import { p as X } from "./plugin-DOeDaXWj.js";
24
24
  import "./Icon.vue_vue_type_script_setup_true_lang-DXUyEtqW.js";
25
25
  import { p as Z } from "./plugin-Dk3KBChD.js";
26
26
  import { p as $ } from "./plugin--F5QK2vy.js";
27
- import "./InputCheckbox.vue_vue_type_style_index_0_lang-D5J-rPuH.js";
28
- import { p as or } from "./plugin-DPCk5fFS.js";
29
- import { p as tr } from "./plugin-D9KHvOM3.js";
30
- import { p as er } from "./plugin-BtF6kCcf.js";
31
- import { p as mr } from "./plugin-Br-QOjhk.js";
32
- import { p as ur } from "./plugin-BT2ef1QG.js";
33
- import { p as Pr } from "./plugin-CrHDShgh.js";
34
- import { p as gr } from "./plugin-z8Hr_T_O.js";
27
+ import "./InputCheckbox.vue_vue_type_style_index_0_lang-DnRqQiOj.js";
28
+ import { p as or } from "./plugin-4XhHBTQc.js";
29
+ import { p as tr } from "./plugin-Bq4nQPd4.js";
30
+ import { p as er } from "./plugin-D9KHvOM3.js";
31
+ import { p as nr } from "./plugin-BtF6kCcf.js";
32
+ import { p as ur } from "./plugin-Br-QOjhk.js";
33
+ import { p as Pr } from "./plugin-BT2ef1QG.js";
34
+ import { p as gr } from "./plugin-CrHDShgh.js";
35
+ import { p as fr } from "./plugin-CQ-FpZui.js";
35
36
  import "./InputRadio.vue_vue_type_style_index_0_lang-DusKEybQ.js";
36
- import { p as fr } from "./plugin-Y4yYnlO3.js";
37
- import "./InputSelect.vue_vue_type_script_setup_true_lang-vCtwK795.js";
38
- import { p as hr } from "./plugin-cVdTR_s6.js";
39
- import { p as Tr } from "./plugin-BZOU6h10.js";
40
- import { p as yr } from "./plugin-lYDlOt8p.js";
41
- import { p as Cr } from "./plugin-BQFwx3d5.js";
37
+ import { p as cr } from "./plugin-Y4yYnlO3.js";
38
+ import "./InputSelect.vue_vue_type_script_setup_true_lang-B89uyzj-.js";
39
+ import { p as yr } from "./plugin-C77cnZuW.js";
40
+ import { p as Cr } from "./plugin-BZOU6h10.js";
41
+ import { p as br } from "./plugin-lYDlOt8p.js";
42
+ import { p as Sr } from "./plugin-BQFwx3d5.js";
42
43
  import "./Link.vue_vue_type_script_setup_true_lang-gTf77Jvd.js";
43
- import { p as Sr } from "./plugin-DHstqRmE.js";
44
- import { p as vr } from "./plugin-DKjcKBPg.js";
45
- import { p as Dr } from "./plugin-DNXazWwT.js";
46
- import { p as Lr } from "./plugin-YUomn9tF.js";
44
+ import { p as vr } from "./plugin-DHstqRmE.js";
45
+ import { p as Dr } from "./plugin-DKjcKBPg.js";
46
+ import { p as Lr } from "./plugin-DNXazWwT.js";
47
+ import { p as Ar } from "./plugin-YUomn9tF.js";
47
48
  import "./Popconfirm.vue_vue_type_script_setup_true_lang-XyjBUx0p.js";
48
- import { p as Ar } from "./plugin-Ee4Z5Rtp.js";
49
+ import { p as Er } from "./plugin-Ee4Z5Rtp.js";
49
50
  import "./Popover.vue_vue_type_script_setup_true_lang-dnL75W40.js";
50
- import { p as Er } from "./plugin-CdJ1wBq2.js";
51
+ import { p as jr } from "./plugin-CdJ1wBq2.js";
51
52
  import "./ProgressCircle-Cpmi2CpO.js";
52
- import { p as jr } from "./plugin-MAzqwXys.js";
53
+ import { p as zr } from "./plugin-MAzqwXys.js";
53
54
  import "./ProgressLine-bKh0terH.js";
54
- import { p as zr } from "./plugin-VQZG4jD0.js";
55
- import { p as Jr } from "./plugin-cvHKUGjm.js";
56
- import { p as Nr } from "./plugin-B9wG8DUw.js";
57
- import { p as Qr } from "./plugin-BV-k02s1.js";
55
+ import { p as Jr } from "./plugin-VQZG4jD0.js";
56
+ import { p as Nr } from "./plugin-cvHKUGjm.js";
57
+ import { p as Qr } from "./plugin-B9wG8DUw.js";
58
+ import { p as Vr } from "./plugin-BV-k02s1.js";
58
59
  import "./Table-C0Sr_Lfm.js";
59
- import { p as Vr } from "./plugin-CTMcmMdr.js";
60
+ import { p as Xr } from "./plugin-CTMcmMdr.js";
60
61
  import "./Tag.vue_vue_type_script_setup_true_lang-DatNytmx.js";
61
- import { p as Xr } from "./plugin-DXjluPIV.js";
62
- import { p as Zr } from "./plugin-Dn96hI0e.js";
62
+ import { p as Zr } from "./plugin-DXjluPIV.js";
63
+ import { p as $r } from "./plugin-Dn96hI0e.js";
63
64
  export {
64
- y as AvatarPlugin,
65
- C as BackdropPlugin,
65
+ C as AvatarPlugin,
66
+ b as BackdropPlugin,
66
67
  S as ButtonPlugin,
67
68
  v as ChartLinePlugin,
68
69
  D as ChartTreemapPlugin,
@@ -79,29 +80,30 @@ export {
79
80
  Z as IconPlugin,
80
81
  $ as InputAvatarPlugin,
81
82
  or as InputCheckboxPlugin,
82
- tr as InputColorPlugin,
83
- er as InputDatePlugin,
84
- mr as InputMultiplierPlugin,
85
- ur as InputPasswordPlugin,
86
- Pr as InputPhonePlugin,
87
- gr as InputPricePlugin,
88
- fr as InputRadioPlugin,
89
- hr as InputSelectPlugin,
90
- Tr as InputSwitchPlugin,
91
- yr as InputTextPlugin,
92
- Cr as InputTextareaPlugin,
93
- Sr as LinkPlugin,
94
- Dr as ModalFormPlugin,
95
- vr as ModalPlugin,
96
- Lr as PaginationPlugin,
97
- Ar as PopconfirmPlugin,
98
- Er as PopoverPlugin,
99
- jr as ProgressCirclePlugin,
100
- zr as ProgressLinePlugin,
101
- Jr as SensitiveInfoPlugin,
102
- Nr as SkeletonPlugin,
103
- Qr as TabPlugin,
104
- Vr as TablePlugin,
105
- Xr as TagPlugin,
106
- Zr as ToastPlugin
83
+ er as InputColorPlugin,
84
+ tr as InputCryptoCurrencyPlugin,
85
+ nr as InputDatePlugin,
86
+ ur as InputMultiplierPlugin,
87
+ Pr as InputPasswordPlugin,
88
+ gr as InputPhonePlugin,
89
+ fr as InputPricePlugin,
90
+ cr as InputRadioPlugin,
91
+ yr as InputSelectPlugin,
92
+ Cr as InputSwitchPlugin,
93
+ br as InputTextPlugin,
94
+ Sr as InputTextareaPlugin,
95
+ vr as LinkPlugin,
96
+ Lr as ModalFormPlugin,
97
+ Dr as ModalPlugin,
98
+ Ar as PaginationPlugin,
99
+ Er as PopconfirmPlugin,
100
+ jr as PopoverPlugin,
101
+ zr as ProgressCirclePlugin,
102
+ Jr as ProgressLinePlugin,
103
+ Nr as SensitiveInfoPlugin,
104
+ Qr as SkeletonPlugin,
105
+ Vr as TabPlugin,
106
+ Xr as TablePlugin,
107
+ Zr as TagPlugin,
108
+ $r as ToastPlugin
107
109
  };
package/dist/tamandua.js CHANGED
@@ -1,4 +1,4 @@
1
- import { p as n } from "./plugins-DFHv5iXr.js";
1
+ import { p as n } from "./plugins-CkB_la4g.js";
2
2
  const o = {
3
3
  install(s) {
4
4
  for (const i in n)
@@ -0,0 +1,14 @@
1
+ declare const _default: {
2
+ title: string;
3
+ args: {
4
+ value: undefined;
5
+ };
6
+ argTypes: {};
7
+ };
8
+ export default _default;
9
+ export declare const Crypto: (args: any) => {
10
+ setup(): {
11
+ args: any;
12
+ };
13
+ template: string;
14
+ };
@@ -0,0 +1,14 @@
1
+ import { InputCryptoCurrencyModel } from './types.js';
2
+
3
+ declare const _default: import('vue').DefineComponent<{
4
+ modelValue: import("vue").PropType<InputCryptoCurrencyModel>;
5
+ disabled: {
6
+ type: import("vue").PropType<boolean>;
7
+ };
8
+ }, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
9
+ modelValue: import("vue").PropType<InputCryptoCurrencyModel>;
10
+ disabled: {
11
+ type: import("vue").PropType<boolean>;
12
+ };
13
+ }>>, {}, {}>;
14
+ export default _default;
@@ -0,0 +1,8 @@
1
+ declare const _default: ({
2
+ name: string;
3
+ regex: string;
4
+ } | {
5
+ name: string;
6
+ regex?: undefined;
7
+ })[];
8
+ export default _default;
@@ -0,0 +1,5 @@
1
+ import { default as InputCryptoCurrencyPlugin } from './plugin.js';
2
+ import { default as InputCryptoCurrency } from './InputCryptoCurrency.vue';
3
+
4
+ export { InputCryptoCurrency, InputCryptoCurrencyPlugin };
5
+ export type { InputCryptoCurrencyModel, InputCryptoCurrencyProps, InputCryptoCurrencyEvents, } from './types.js';
@@ -0,0 +1,4 @@
1
+ import { Plugin } from 'vue';
2
+
3
+ declare const _default: Plugin;
4
+ export default _default;
@@ -0,0 +1,8 @@
1
+ export type InputCryptoCurrencyModel = {
2
+ currency: string;
3
+ address: string;
4
+ };
5
+ export type InputCryptoCurrencyProps = {
6
+ disabled?: boolean;
7
+ };
8
+ export type InputCryptoCurrencyEvents = {};
@@ -0,0 +1,13 @@
1
+ declare const _default: {
2
+ title: string;
3
+ };
4
+ export default _default;
5
+ export declare const Price: (args: any) => {
6
+ setup(): {
7
+ args: any;
8
+ onEnter: (newValue: any) => void;
9
+ onUpdate: (newValue: any) => void;
10
+ getCurrencies: () => Promise<unknown>;
11
+ };
12
+ template: string;
13
+ };
@@ -8,7 +8,10 @@ declare const _default: import('vue').DefineComponent<{
8
8
  disabled: {
9
9
  type: import("vue").PropType<boolean>;
10
10
  };
11
- }, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
11
+ }, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
12
+ keyup: (val: KeyboardEvent) => void;
13
+ blur: (val: Event) => void;
14
+ }, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
12
15
  modelValue: import("vue").PropType<InputPriceModel>;
13
16
  resource: {
14
17
  type: import("vue").PropType<() => any>;
@@ -16,5 +19,8 @@ declare const _default: import('vue').DefineComponent<{
16
19
  disabled: {
17
20
  type: import("vue").PropType<boolean>;
18
21
  };
19
- }>>, {}, {}>;
22
+ }>> & {
23
+ onBlur?: ((val: Event) => any) | undefined;
24
+ onKeyup?: ((val: KeyboardEvent) => any) | undefined;
25
+ }, {}, {}>;
20
26
  export default _default;
@@ -6,4 +6,7 @@ export type InputPriceProps = {
6
6
  resource?: () => any;
7
7
  disabled?: boolean;
8
8
  };
9
- export type InputPriceEvents = {};
9
+ export type InputPriceEvents = {
10
+ (e: "keyup", val: KeyboardEvent): void;
11
+ (e: "blur", val: Event): void;
12
+ };
@@ -1,41 +1,135 @@
1
1
  import { ElementSize, ElementPosition } from '../../enums/ui.js';
2
- import { InputSelectProps, InputSelectOption } from './types.js';
2
+ import { InputSelectValue, InputSelectOption, SelectValuePrimitives } from './types.js';
3
+ import { APISearchFilters } from '../../types/api.js';
4
+ import { Pagination } from '../../types/ui.js';
3
5
 
4
- declare const _default: __VLS_WithTemplateSlots<import('vue').DefineComponent<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<InputSelectProps>, {
5
- size: ElementSize;
6
- options: () => never[];
7
- mapper: (i: any) => InputSelectOption;
8
- filter: (input: string, option: InputSelectOption) => boolean;
9
- tooltip: string;
10
- multiple: boolean;
11
- placeholder: string;
12
- isSearchable: boolean;
13
- dropdownPlacement: ElementPosition;
14
- /**
15
- * CSS Classes
16
- */
17
- widthClass: string;
18
- borderClass: string;
19
- roundnessClass: string;
20
- }>, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
6
+ declare const _default: __VLS_WithTemplateSlots<import('vue').DefineComponent<{
7
+ modelValue: import("vue").PropType<InputSelectValue>;
8
+ filter: {
9
+ type: import("vue").PropType<(input: string, option: InputSelectOption) => boolean>;
10
+ default: (input: string, option: InputSelectOption) => boolean;
11
+ };
12
+ size: {
13
+ type: import("vue").PropType<ElementSize>;
14
+ default: ElementSize;
15
+ };
16
+ multiple: {
17
+ type: import("vue").PropType<boolean>;
18
+ default: boolean;
19
+ };
20
+ disabled: {
21
+ type: import("vue").PropType<boolean>;
22
+ };
23
+ options: {
24
+ type: import("vue").PropType<InputSelectOption[]>;
25
+ default: () => never[];
26
+ };
27
+ initialValue: {
28
+ type: import("vue").PropType<any>;
29
+ };
30
+ placeholder: {
31
+ type: import("vue").PropType<string>;
32
+ default: string;
33
+ };
34
+ resource: {
35
+ type: import("vue").PropType<(filters?: APISearchFilters | undefined) => Promise<{
36
+ items: unknown[];
37
+ pagination: Pagination;
38
+ }>>;
39
+ };
40
+ mapper: {
41
+ type: import("vue").PropType<(i: any) => InputSelectOption>;
42
+ default: (i: any) => InputSelectOption;
43
+ };
44
+ tooltip: {
45
+ type: import("vue").PropType<string>;
46
+ default: string;
47
+ };
48
+ isSearchable: {
49
+ type: import("vue").PropType<boolean>;
50
+ default: boolean;
51
+ };
52
+ dropdownPlacement: {
53
+ type: import("vue").PropType<"top-start" | "top" | "top-end" | "right-start" | "right" | "right-end" | "bottom-end" | "bottom" | "bottom-start" | "left-end" | "left" | "left-start">;
54
+ default: ElementPosition;
55
+ };
56
+ widthClass: {
57
+ type: import("vue").PropType<string>;
58
+ default: string;
59
+ };
60
+ borderClass: {
61
+ type: import("vue").PropType<string>;
62
+ default: string;
63
+ };
64
+ roundnessClass: {
65
+ type: import("vue").PropType<string>;
66
+ default: string;
67
+ };
68
+ }, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
21
69
  "update:model-value": (val: any) => void;
22
- }, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<InputSelectProps>, {
23
- size: ElementSize;
24
- options: () => never[];
25
- mapper: (i: any) => InputSelectOption;
26
- filter: (input: string, option: InputSelectOption) => boolean;
27
- tooltip: string;
28
- multiple: boolean;
29
- placeholder: string;
30
- isSearchable: boolean;
31
- dropdownPlacement: ElementPosition;
32
- /**
33
- * CSS Classes
34
- */
35
- widthClass: string;
36
- borderClass: string;
37
- roundnessClass: string;
38
- }>>> & {
70
+ }, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
71
+ modelValue: import("vue").PropType<InputSelectValue>;
72
+ filter: {
73
+ type: import("vue").PropType<(input: string, option: InputSelectOption) => boolean>;
74
+ default: (input: string, option: InputSelectOption) => boolean;
75
+ };
76
+ size: {
77
+ type: import("vue").PropType<ElementSize>;
78
+ default: ElementSize;
79
+ };
80
+ multiple: {
81
+ type: import("vue").PropType<boolean>;
82
+ default: boolean;
83
+ };
84
+ disabled: {
85
+ type: import("vue").PropType<boolean>;
86
+ };
87
+ options: {
88
+ type: import("vue").PropType<InputSelectOption[]>;
89
+ default: () => never[];
90
+ };
91
+ initialValue: {
92
+ type: import("vue").PropType<any>;
93
+ };
94
+ placeholder: {
95
+ type: import("vue").PropType<string>;
96
+ default: string;
97
+ };
98
+ resource: {
99
+ type: import("vue").PropType<(filters?: APISearchFilters | undefined) => Promise<{
100
+ items: unknown[];
101
+ pagination: Pagination;
102
+ }>>;
103
+ };
104
+ mapper: {
105
+ type: import("vue").PropType<(i: any) => InputSelectOption>;
106
+ default: (i: any) => InputSelectOption;
107
+ };
108
+ tooltip: {
109
+ type: import("vue").PropType<string>;
110
+ default: string;
111
+ };
112
+ isSearchable: {
113
+ type: import("vue").PropType<boolean>;
114
+ default: boolean;
115
+ };
116
+ dropdownPlacement: {
117
+ type: import("vue").PropType<"top-start" | "top" | "top-end" | "right-start" | "right" | "right-end" | "bottom-end" | "bottom" | "bottom-start" | "left-end" | "left" | "left-start">;
118
+ default: ElementPosition;
119
+ };
120
+ widthClass: {
121
+ type: import("vue").PropType<string>;
122
+ default: string;
123
+ };
124
+ borderClass: {
125
+ type: import("vue").PropType<string>;
126
+ default: string;
127
+ };
128
+ roundnessClass: {
129
+ type: import("vue").PropType<string>;
130
+ default: string;
131
+ };
132
+ }>> & {
39
133
  "onUpdate:model-value"?: ((val: any) => any) | undefined;
40
134
  }, {
41
135
  filter: (input: string, option: InputSelectOption) => boolean;
@@ -51,27 +145,37 @@ declare const _default: __VLS_WithTemplateSlots<import('vue').DefineComponent<__
51
145
  borderClass: string;
52
146
  roundnessClass: string;
53
147
  }, {}>, {
54
- selection?(_: {}): any;
148
+ selection?(_: {
149
+ 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;
150
+ label: string | object;
151
+ type?: string | undefined;
152
+ renderer?: string | undefined;
153
+ isGroupLabel: boolean;
154
+ value?: undefined;
155
+ action?: undefined;
156
+ } | {
157
+ 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;
158
+ label: string | object;
159
+ type?: string | undefined;
160
+ renderer?: string | undefined;
161
+ value: SelectValuePrimitives | SelectValuePrimitives[];
162
+ action?: undefined;
163
+ isGroupLabel?: undefined;
164
+ } | {
165
+ 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;
166
+ label: string | object;
167
+ type?: string | undefined;
168
+ renderer?: string | undefined;
169
+ action: (filters?: APISearchFilters | undefined) => void | Promise<void> | Promise<{
170
+ items: unknown[];
171
+ pagination: Pagination;
172
+ }>;
173
+ value?: undefined;
174
+ isGroupLabel?: undefined;
175
+ }): any;
55
176
  default?(_: any): any;
56
177
  }>;
57
178
  export default _default;
58
- type __VLS_NonUndefinedable<T> = T extends undefined ? never : T;
59
- type __VLS_TypePropsToRuntimeProps<T> = {
60
- [K in keyof T]-?: {} extends Pick<T, K> ? {
61
- type: import('vue').PropType<__VLS_NonUndefinedable<T[K]>>;
62
- } : {
63
- type: import('vue').PropType<T[K]>;
64
- required: true;
65
- };
66
- };
67
- type __VLS_WithDefaults<P, D> = {
68
- [K in keyof Pick<P, keyof P>]: K extends keyof D ? __VLS_Prettify<P[K] & {
69
- default: D[K];
70
- }> : P[K];
71
- };
72
- type __VLS_Prettify<T> = {
73
- [K in keyof T]: T[K];
74
- } & {};
75
179
  type __VLS_WithTemplateSlots<T, S> = T & {
76
180
  new (): {
77
181
  $slots: S;
@@ -48,7 +48,6 @@ export type InputSelectProps = {
48
48
  pagination: Pagination;
49
49
  }>;
50
50
  multiple?: boolean;
51
- modelValue?: InputSelectValue;
52
51
  placeholder?: string;
53
52
  initialValue?: any;
54
53
  /** Indicates whether the user can search the options */
@@ -23,6 +23,7 @@ import { InputPassword } from './InputPassword/index.js';
23
23
  import { InputMultiplier } from './InputMultiplier/index.js';
24
24
  import { InputDate } from './InputDate/index.js';
25
25
  import { InputColor } from './InputColor/index.js';
26
+ import { InputCryptoCurrency } from './InputCryptoCurrency/index.js';
26
27
  import { InputCheckbox } from './InputCheckbox/index.js';
27
28
  import { InputAvatar } from './InputAvatar/index.js';
28
29
  import { Icon } from './Icon/index.js';
@@ -42,4 +43,4 @@ import { Button } from './Button/index.js';
42
43
  import { Backdrop } from './Backdrop/index.js';
43
44
  import { Avatar } from './Avatar/index.js';
44
45
 
45
- export { Avatar, Backdrop, Button, ChartLine, ChartTreemap, Drawer, Dropdown, FileDrop, Form, FormItem, GraphyEmpty, GraphyLabel, GraphyPrice, GraphySubtitle, GraphyTitle, Icon, InputAvatar, InputCheckbox, InputColor, InputDate, InputMultiplier, InputPassword, InputPhone, InputPrice, InputRadio, InputSelect, InputSwitch, InputText, InputTextarea, Link, Modal, ModalForm, Pagination, Popconfirm, Popover, ProgressCircle, ProgressLine, SensitiveInfo, Skeleton, Tab, Table, Tag, Toast, };
46
+ export { Avatar, Backdrop, Button, ChartLine, ChartTreemap, Drawer, Dropdown, FileDrop, Form, FormItem, GraphyEmpty, GraphyLabel, GraphyPrice, GraphySubtitle, GraphyTitle, Icon, InputAvatar, InputCheckbox, InputCryptoCurrency, InputColor, InputDate, InputMultiplier, InputPassword, InputPhone, InputPrice, InputRadio, InputSelect, InputSwitch, InputText, InputTextarea, Link, Modal, ModalForm, Pagination, Popconfirm, Popover, ProgressCircle, ProgressLine, SensitiveInfo, Skeleton, Tab, Table, Tag, Toast, };
@@ -23,6 +23,7 @@ import { InputPasswordPlugin } from './InputPassword/index.js';
23
23
  import { InputMultiplierPlugin } from './InputMultiplier/index.js';
24
24
  import { InputDatePlugin } from './InputDate/index.js';
25
25
  import { InputColorPlugin } from './InputColor/index.js';
26
+ import { InputCryptoCurrencyPlugin } from './InputCryptoCurrency/index.js';
26
27
  import { InputCheckboxPlugin } from './InputCheckbox/index.js';
27
28
  import { InputAvatarPlugin } from './InputAvatar/index.js';
28
29
  import { IconPlugin } from './Icon/index.js';
@@ -42,4 +43,4 @@ import { ButtonPlugin } from './Button/index.js';
42
43
  import { BackdropPlugin } from './Backdrop/index.js';
43
44
  import { AvatarPlugin } from './Avatar/index.js';
44
45
 
45
- export { AvatarPlugin, BackdropPlugin, ButtonPlugin, ChartLinePlugin, ChartTreemapPlugin, DrawerPlugin, DropdownPlugin, FileDropPlugin, FormPlugin, FormItemPlugin, GraphyEmptyPlugin, GraphyLabelPlugin, GraphyPricePlugin, GraphySubtitlePlugin, GraphyTitlePlugin, IconPlugin, InputAvatarPlugin, InputCheckboxPlugin, InputColorPlugin, InputDatePlugin, InputMultiplierPlugin, InputPasswordPlugin, InputPhonePlugin, InputPricePlugin, InputRadioPlugin, InputSelectPlugin, InputSwitchPlugin, InputTextPlugin, InputTextareaPlugin, LinkPlugin, ModalPlugin, ModalFormPlugin, PaginationPlugin, PopconfirmPlugin, PopoverPlugin, ProgressCirclePlugin, ProgressLinePlugin, SensitiveInfoPlugin, SkeletonPlugin, TabPlugin, TablePlugin, TagPlugin, ToastPlugin, };
46
+ export { AvatarPlugin, BackdropPlugin, ButtonPlugin, ChartLinePlugin, ChartTreemapPlugin, DrawerPlugin, DropdownPlugin, FileDropPlugin, FormPlugin, FormItemPlugin, GraphyEmptyPlugin, GraphyLabelPlugin, GraphyPricePlugin, GraphySubtitlePlugin, GraphyTitlePlugin, IconPlugin, InputAvatarPlugin, InputCheckboxPlugin, InputCryptoCurrencyPlugin, InputColorPlugin, InputDatePlugin, InputMultiplierPlugin, InputPasswordPlugin, InputPhonePlugin, InputPricePlugin, InputRadioPlugin, InputSelectPlugin, InputSwitchPlugin, InputTextPlugin, InputTextareaPlugin, LinkPlugin, ModalPlugin, ModalFormPlugin, PaginationPlugin, PopconfirmPlugin, PopoverPlugin, ProgressCirclePlugin, ProgressLinePlugin, SensitiveInfoPlugin, SkeletonPlugin, TabPlugin, TablePlugin, TagPlugin, ToastPlugin, };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@caipira/tamandua",
3
- "version": "0.0.47",
3
+ "version": "0.0.49",
4
4
  "private": false,
5
5
  "description": "UI library for the Caipira ecosystem",
6
6
  "license": "GPL-3.0-only",
package/volar.d.ts CHANGED
@@ -18,6 +18,7 @@ declare module "vue" {
18
18
  TIcon: (typeof import("@caipira/tamandua/dist/types/components/Icon"))["Icon"];
19
19
  TInputAvatar: (typeof import("@caipira/tamandua/dist/types/components/InputAvatar"))["InputAvatar"];
20
20
  TInputCheckbox: (typeof import("@caipira/tamandua/dist/types/components/InputCheckbox"))["InputCheckbox"];
21
+ TInputCryptoCurrency: (typeof import("@caipira/tamandua/dist/types/components/InputCryptoCurrency"))["InputCryptoCurrency"];
21
22
  TInputColor: (typeof import("@caipira/tamandua/dist/types/components/InputColor"))["InputColor"];
22
23
  TInputDate: (typeof import("@caipira/tamandua/dist/types/components/InputDate"))["InputDate"];
23
24
  TInputMultiplier: (typeof import("@caipira/tamandua/dist/types/components/InputMultiplier"))["InputMultiplier"];
@@ -1,67 +0,0 @@
1
- import { defineComponent as p, mergeModels as c, useModel as m, watch as v, resolveComponent as b, openBlock as f, createElementBlock as _, createVNode as g, withDirectives as h, createElementVNode as x, vModelText as N } from "vue";
2
- const I = {
3
- options: {
4
- precision: 2
5
- },
6
- inputToPriceNumber(r) {
7
- return r = r.replace(/[^0-9]/g, "").trim(), r ? parseFloat(r) / Math.pow(10, this.options.precision) : void 0;
8
- }
9
- }, M = { class: "flex items-center h-9 w-full input-bg-color input-text-color border input-border input-roundness" }, P = ["disabled"], y = /* @__PURE__ */ p({
10
- name: "TInputPrice",
11
- inheritAttrs: !1,
12
- __name: "InputPrice",
13
- props: /* @__PURE__ */ c({
14
- resource: { type: Function },
15
- disabled: { type: Boolean }
16
- }, {
17
- modelValue: {
18
- default: {
19
- iso: "",
20
- value: void 0
21
- }
22
- },
23
- modelModifiers: {}
24
- }),
25
- emits: ["update:modelValue"],
26
- setup(r, { emit: n }) {
27
- const t = m(r, "modelValue"), i = r, u = (e) => ({
28
- label: e.symbol,
29
- value: e.iso
30
- }), a = (e, o) => {
31
- if (o === void 0) {
32
- t.value = { ...t.value };
33
- return;
34
- }
35
- e?.value && e.value !== o?.value && (t.value.value = e.value), e?.iso && e.iso !== o?.iso && (t.value.iso = e.iso);
36
- }, d = (e) => {
37
- const s = e.target.value;
38
- return t.value.value = I.inputToPriceNumber(s), !1;
39
- };
40
- return v(t, a, { immediate: !0 }), (e, o) => {
41
- const s = b("t-input-select");
42
- return f(), _("div", M, [
43
- g(s, {
44
- modelValue: t.value.iso,
45
- "onUpdate:modelValue": o[0] || (o[0] = (l) => t.value.iso = l),
46
- resource: i.resource,
47
- mapper: u,
48
- "width-class": "w-20",
49
- "border-class": "border-t border-r border-b input-border",
50
- "roundness-class": ""
51
- }, null, 8, ["modelValue", "resource"]),
52
- h(x("input", {
53
- "onUpdate:modelValue": o[1] || (o[1] = (l) => t.value.value = l),
54
- type: "text",
55
- class: "w-full h-full input-bg-color input-text-color input-outline input-roundness input-padding",
56
- disabled: i.disabled,
57
- onInput: d
58
- }, null, 40, P), [
59
- [N, t.value.value]
60
- ])
61
- ]);
62
- };
63
- }
64
- });
65
- export {
66
- y as _
67
- };