@caipira/tamandua 0.0.94 → 0.0.96
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/Avatar.js +2 -2
- package/dist/{Avatar.vue_vue_type_script_setup_true_lang-CnvI4bGL.js → Avatar.vue_vue_type_script_setup_true_lang-Do8b2K_t.js} +1 -1
- package/dist/Button.js +2 -2
- package/dist/{Button.vue_vue_type_script_setup_true_lang-CmbPvjSg.js → Button.vue_vue_type_script_setup_true_lang-_OeJ2AhD.js} +2 -2
- package/dist/Dropdown.js +2 -2
- package/dist/{Dropdown.vue_vue_type_script_setup_true_lang-DtTBnNsn.js → Dropdown.vue_vue_type_script_setup_true_lang-CUEXq7Zs.js} +1 -1
- package/dist/Form.js +2 -2
- package/dist/{Form.vue_vue_type_script_setup_true_lang-Bd8NlDpG.js → Form.vue_vue_type_script_setup_true_lang-BeFMY193.js} +25 -22
- package/dist/FormItem.js +2 -2
- package/dist/FormItem.vue_vue_type_script_setup_true_lang-C85gKVqz.js +76 -0
- package/dist/GraphyPrice.js +2 -2
- package/dist/{GraphyPrice.vue_vue_type_script_setup_true_lang-Cr4zjIiS.js → GraphyPrice.vue_vue_type_script_setup_true_lang-D8MkH_w7.js} +1 -1
- package/dist/Icon.js +2 -2
- package/dist/{Icon.vue_vue_type_script_setup_true_lang-BuMQjBAy.js → Icon.vue_vue_type_script_setup_true_lang-Bgu3LG73.js} +2 -2
- package/dist/InputMultiplier.js +2 -2
- package/dist/{InputMultiplier.vue_vue_type_script_setup_true_lang-Cho_7MEo.js → InputMultiplier.vue_vue_type_script_setup_true_lang-BecR5si4.js} +1 -1
- package/dist/InputPassword.js +2 -2
- package/dist/{InputPassword.vue_vue_type_script_setup_true_lang-Qeq0BBp3.js → InputPassword.vue_vue_type_script_setup_true_lang-CpYXJCNe.js} +1 -1
- package/dist/InputSelect.js +2 -2
- package/dist/{InputSelect.vue_vue_type_script_setup_true_lang-uUjFwWIE.js → InputSelect.vue_vue_type_script_setup_true_lang-CvJ9Xb8I.js} +1 -1
- package/dist/InputText.js +2 -2
- package/dist/{InputText.vue_vue_type_script_setup_true_lang-twigJ_WD.js → InputText.vue_vue_type_script_setup_true_lang-BpjS2Be0.js} +1 -1
- package/dist/Link.js +2 -2
- package/dist/{Link.vue_vue_type_script_setup_true_lang-0z-EeE3p.js → Link.vue_vue_type_script_setup_true_lang-CrIluCU0.js} +1 -1
- package/dist/ModalForm.js +2 -2
- package/dist/{ModalForm.vue_vue_type_script_setup_true_lang-arUXLdgo.js → ModalForm.vue_vue_type_script_setup_true_lang-CBZyDz1y.js} +1 -1
- package/dist/Popconfirm.js +2 -2
- package/dist/{Popconfirm.vue_vue_type_script_setup_true_lang-BDEqMoax.js → Popconfirm.vue_vue_type_script_setup_true_lang-Yt6dNEqp.js} +1 -1
- package/dist/Popover-DzmYXsyF.js +94 -0
- package/dist/Popover.css +1 -1
- package/dist/Popover.js +2 -2
- package/dist/Tag.js +2 -2
- package/dist/{Tag.vue_vue_type_script_setup_true_lang-G3i5m3sB.js → Tag.vue_vue_type_script_setup_true_lang-91C8bCJH.js} +1 -1
- package/dist/Toast.js +2 -2
- package/dist/{Toast.vue_vue_type_script_setup_true_lang-BlfCFBHV.js → Toast.vue_vue_type_script_setup_true_lang-CrCzKWTF.js} +1 -1
- package/dist/components.js +17 -17
- package/dist/{crud-n73o4CzO.js → crud-BkxHN8N6.js} +1 -1
- package/dist/enums.js +2 -2
- package/dist/{form-BkXpIJ0e.js → form-Dctryp6H.js} +3 -3
- package/dist/form2.js +1 -1
- package/dist/{plugin-i0cgy8R3.js → plugin-5jvspvI0.js} +1 -1
- package/dist/{plugin-CrcKkoHW.js → plugin-B9rQVmFX.js} +1 -1
- package/dist/{plugin-Dja0bljQ.js → plugin-BE6O7Qpe.js} +1 -1
- package/dist/{plugin-BviXQKyF.js → plugin-BkyobNZg.js} +1 -1
- package/dist/{plugin-CoKL2vk5.js → plugin-CAguOi9L.js} +1 -1
- package/dist/{plugin-CnSU08rb.js → plugin-CBvitRro.js} +1 -1
- package/dist/{plugin-CdZkyAp1.js → plugin-ClvcWrZG.js} +1 -1
- package/dist/{plugin-DhHWk6sK.js → plugin-CooN18KC.js} +1 -1
- package/dist/{plugin-B2DiDUlP.js → plugin-CvNqsbcf.js} +1 -1
- package/dist/{plugin-CDu6of44.js → plugin-CwASecVp.js} +1 -1
- package/dist/{plugin-DKMiwQmN.js → plugin-DeJ26JgJ.js} +1 -1
- package/dist/{plugin-ZJybqwxT.js → plugin-Do0bV12u.js} +1 -1
- package/dist/{plugin-Bij2CJr7.js → plugin-KtNhwRWj.js} +1 -1
- package/dist/{plugin-CQXEZDaa.js → plugin-NvHGDTwj.js} +1 -1
- package/dist/{plugin-DArlmex8.js → plugin-WwUyw_Bi.js} +1 -1
- package/dist/{plugin-Ccz1v8Wx.js → plugin-fd7isG2u.js} +1 -1
- package/dist/{plugin-DX5ICUyA.js → plugin-yz62_YLm.js} +1 -1
- package/dist/{plugins-BCg_1Ej9.js → plugins-fA-uHoda.js} +30 -30
- package/dist/plugins.js +30 -30
- package/dist/replay-BYiTmUTJ.js +5 -0
- package/dist/tamandua.js +1 -1
- package/dist/types/components/Button/Button.vue.d.ts +3 -3
- package/dist/types/components/InputSelect/InputSelect.vue.d.ts +2 -2
- package/dist/types/components/Popover/Popover.story.d.ts +3 -0
- package/dist/types/components/Popover/Popover.vue.d.ts +6 -6
- package/dist/types/enums/form.d.ts +2 -1
- package/dist/types/enums/ui.d.ts +5 -2
- package/dist/types/types/form.d.ts +1 -0
- package/dist/ui-C0HpAttE.js +14 -0
- package/package.json +8 -13
- package/dist/FormItem.vue_vue_type_script_setup_true_lang-CtioNKpW.js +0 -74
- package/dist/Popover-C3ovolxY.js +0 -73
- package/dist/ui-D5oXHNg_.js +0 -14
|
@@ -1,3 +1,5 @@
|
|
|
1
|
+
import { InputSelectOption } from '../InputSelect/types.js';
|
|
2
|
+
|
|
1
3
|
declare const _default: {
|
|
2
4
|
title: string;
|
|
3
5
|
args: {};
|
|
@@ -8,6 +10,7 @@ export declare const Popover: (args: any) => {
|
|
|
8
10
|
args: any;
|
|
9
11
|
open: import('vue').Ref<boolean>;
|
|
10
12
|
page: import('vue').Ref<string>;
|
|
13
|
+
options: InputSelectOption[];
|
|
11
14
|
};
|
|
12
15
|
template: string;
|
|
13
16
|
};
|
|
@@ -11,11 +11,11 @@ declare const _default: __VLS_WithTemplateSlots<import('vue').DefineComponent<{
|
|
|
11
11
|
default: string;
|
|
12
12
|
};
|
|
13
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">;
|
|
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" | "activation-position">;
|
|
15
15
|
default: ElementPosition;
|
|
16
16
|
};
|
|
17
17
|
trigger: {
|
|
18
|
-
type: import("vue").PropType<"click" | "hover">;
|
|
18
|
+
type: import("vue").PropType<"click" | "hover" | "context-menu">;
|
|
19
19
|
default: ElementTrigger;
|
|
20
20
|
};
|
|
21
21
|
slotWrapperClasses: {
|
|
@@ -35,11 +35,11 @@ declare const _default: __VLS_WithTemplateSlots<import('vue').DefineComponent<{
|
|
|
35
35
|
default: string;
|
|
36
36
|
};
|
|
37
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">;
|
|
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" | "activation-position">;
|
|
39
39
|
default: ElementPosition;
|
|
40
40
|
};
|
|
41
41
|
trigger: {
|
|
42
|
-
type: import("vue").PropType<"click" | "hover">;
|
|
42
|
+
type: import("vue").PropType<"click" | "hover" | "context-menu">;
|
|
43
43
|
default: ElementTrigger;
|
|
44
44
|
};
|
|
45
45
|
slotWrapperClasses: {
|
|
@@ -54,10 +54,10 @@ declare const _default: __VLS_WithTemplateSlots<import('vue').DefineComponent<{
|
|
|
54
54
|
slotWrapperClasses: string;
|
|
55
55
|
}, {}>, {
|
|
56
56
|
default?(_: {
|
|
57
|
-
onTogglePopover: (isVisible: unknown) => void;
|
|
57
|
+
onTogglePopover: (isVisible: unknown, event?: MouseEvent) => void;
|
|
58
58
|
}): any;
|
|
59
59
|
content?(_: {
|
|
60
|
-
onTogglePopover: (isVisible: unknown) => void;
|
|
60
|
+
onTogglePopover: (isVisible: unknown, event?: MouseEvent) => void;
|
|
61
61
|
}): any;
|
|
62
62
|
}>;
|
|
63
63
|
export default _default;
|
package/dist/types/enums/ui.d.ts
CHANGED
|
@@ -14,7 +14,8 @@ export declare enum ElementShape {
|
|
|
14
14
|
}
|
|
15
15
|
export declare enum ElementTrigger {
|
|
16
16
|
CLICK = "click",
|
|
17
|
-
HOVER = "hover"
|
|
17
|
+
HOVER = "hover",
|
|
18
|
+
CONTEXT_MENU = "context-menu"
|
|
18
19
|
}
|
|
19
20
|
export declare enum ElementPosition {
|
|
20
21
|
TOP_START = "top-start",
|
|
@@ -28,7 +29,8 @@ export declare enum ElementPosition {
|
|
|
28
29
|
BOTTOM_START = "bottom-start",
|
|
29
30
|
LEFT_END = "left-end",
|
|
30
31
|
LEFT = "left",
|
|
31
|
-
LEFT_START = "left-start"
|
|
32
|
+
LEFT_START = "left-start",
|
|
33
|
+
ACTIVATION_POSITION = "activation-position"
|
|
32
34
|
}
|
|
33
35
|
export declare enum FormControlSize {
|
|
34
36
|
Small = "sm",
|
|
@@ -171,6 +173,7 @@ export declare enum Icon {
|
|
|
171
173
|
ProgressClock = "progress-clock",
|
|
172
174
|
QrcodeScan = "qrcode-scan",
|
|
173
175
|
Refresh = "refresh",
|
|
176
|
+
Replay = "replay",
|
|
174
177
|
Save = "save",
|
|
175
178
|
Search = "search",
|
|
176
179
|
Shuffle = "shuffle",
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
var l = /* @__PURE__ */ ((e) => (e.Unset = "", e.ExtraSmall = "xs", e.Small = "sm", e.Default = "default", e.Large = "lg", e.ExtraLarge = "xl", e))(l || {}), t = /* @__PURE__ */ ((e) => (e.Unset = "", e.Square = "square", e.Rounded = "rounded", e.Circle = "circle", e))(t || {}), u = /* @__PURE__ */ ((e) => (e.CLICK = "click", e.HOVER = "hover", e.CONTEXT_MENU = "context-menu", e))(u || {}), i = /* @__PURE__ */ ((e) => (e.TOP_START = "top-start", e.TOP = "top", e.TOP_END = "top-end", e.RIGHT_START = "right-start", e.RIGHT = "right", e.RIGHT_END = "right-end", e.BOTTOM_END = "bottom-end", e.BOTTOM = "bottom", e.BOTTOM_START = "bottom-start", e.LEFT_END = "left-end", e.LEFT = "left", e.LEFT_START = "left-start", e.ACTIVATION_POSITION = "activation-position", e))(i || {}), r = /* @__PURE__ */ ((e) => (e.Small = "sm", e.Default = "default", e))(r || {}), a = /* @__PURE__ */ ((e) => (e.DEFAULT = "default", e.PRIMARY = "primary", e.SUCCESS = "success", e.DANGER = "danger", e.WARNING = "warning", e))(a || {}), s = /* @__PURE__ */ ((e) => (e.DEFAULT = "default", e.PRIMARY = "primary", e.SUCCESS = "success", e.DANGER = "danger", e.WARNING = "warning", e.LINK = "link", e.TRANSPARENT = "transparent", e))(s || {}), p = /* @__PURE__ */ ((e) => (e.BUTTON = "button", e.SUBMIT = "submit", e.FILE = "file", e))(p || {}), o = /* @__PURE__ */ ((e) => (e.Default = "default", e.Router = "router", e))(o || {}), O = /* @__PURE__ */ ((e) => (e.DEFAULT = "default", e.INCREASE = "increase", e.DECREASE = "decrease", e.AUTO = "auto", e))(O || {}), d = /* @__PURE__ */ ((e) => (e.Account = "account", e.AccountBox = "account-box", e.AccountBoxOutline = "account-box-outline", e.AccountCircle = "account-circle", e.AccountCircleOutline = "account-circle-outline", e.AccountGroup = "account-group", e.AccountGroupOutline = "account-group-outline", e.AccountMultiple = "account-multiple", e.AccountMultipleOutline = "account-multiple-outline", e.AccountOutline = "account-outline", e.AlertOctagon = "alert-octagon", e.AlertOctagonOutline = "alert-octagon-outline", e.Archive = "archive", e.ArchiveOutline = "archive-outline", e.ArrowLeft = "arrow-left", e.ArrowRight = "arrow-right", e.Bank = "bank", e.BankOutline = "bank-outline", e.BookAlphabet = "book-alphabet", e.BookMultiple = "book-multiple", e.BookMultipleOutline = "book-multiple-outline", e.Bookshelf = "bookshelf", e.Camera = "camera", e.CardsOutline = "cards-outline", e.CardsVariant = "cards-variant", e.CartOutline = "cart-outline", e.ChartBox = "chart-box", e.ChartBoxOutline = "chart-box-outline", e.Check = "check", e.CheckCircle = "check-circle", e.CheckCircleOutline = "check-circle-outline", e.ChevronDown = "chevron-down", e.ChevronLeft = "chevron-left", e.ChevronRight = "chevron-right", e.ChevronUp = "chevron-up", e.Circle = "circle", e.Clock = "clock", e.ClockFast = "clock-fast", e.ClockOutline = "clock-outline", e.Close = "close", e.CloseCircle = "close-circle", e.CloseCircleOutline = "close-circle-outline", e.Cog = "cog", e.Contacts = "contacts", e.ContactsOutline = "contacts-outline", e.Copy = "copy", e.CreditCard = "credit-card", e.CreditCardPlus = "credit-card-plus", e.Currency = "currency", e.Database = "database", e.DotsGrid = "dots-grid", e.DotsHorizontal = "dots-horizontal", e.DotsVertical = "dots-vertical", e.EmailOpenOutline = "email-open-outline", e.EmailOutline = "email-outline", e.Eye = "eye", e.EyeOff = "eye-off", e.FIleDocumentPlusOutline = "file-document-plus-outline", e.Filmstrip = "filmstrip", e.Filter = "filter", e.Fullscreen = "fullscreen", e.FullscreenExit = "fullscreen-exit", e.Group = "group", e.Home = "home", e.HomeOutline = "home-outline", e.Image = "image", e.ImageAlbum = "image-album", e.ImageAlbumOutline = "image-album-outline", e.ImageOutline = "image-outline", e.InfoOutline = "info-outline", e.Key = "key", e.KeyChain = "key-chain", e.KeyVariant = "key-variant", e.ListboxOutline = "listbox-outline", e.Loading = "loading", e.Lock = "lock", e.LockOutline = "lock-outline", e.Logout = "logout", e.Menu = "menu", e.MenuDown = "menu-down", e.MenuLeft = "menu-left", e.MenuRight = "menu-right", e.Minus = "minus", e.MinusCircle = "minus-circle", e.MinusCircleOutline = "minus-circle-outline", e.Moon = "moon", e.MovieOpen = "movie-open", e.MovieOpenOutline = "movie-open-outline", e.OpenInNew = "open-in-new", e.Pause = "pause", e.PauseCircle = "pause-circle", e.Pencil = "pencil", e.PiggyBankOutline = "piggy-bank-outline", e.Play = "play", e.PlayBox = "play-box", e.PlayBoxEditOutline = "play-box-edit-outline", e.PlayBoxOutline = "play-box-outline", e.PlayCircle = "play-circle", e.PlaylistPlay = "playlist-play", e.Plus = "plus", e.PlusCircle = "plus-circle", e.PlusCircleOutline = "plus-circle-outline", e.ProgressClock = "progress-clock", e.QrcodeScan = "qrcode-scan", e.Refresh = "refresh", e.Replay = "replay", e.Save = "save", e.Search = "search", e.Shuffle = "shuffle", e.ShuffleDisabled = "shuffle-disabled", e.ShuffleVariant = "shuffle-variant", e.SkipBackward = "skip-backward", e.SkipForward = "skip-forward", e.SkipNext = "skip-next", e.SkipPrevious = "skip-previous", e.Spotlight = "spotlight", e.Stop = "stop", e.Store = "store", e.StoreOutline = "store-outline", e.Sun = "sun", e.Swap = "swap", e.SwapHorizontal = "swap-horizontal", e.SwapLeft = "swap-left", e.SwapRight = "swap-right", e.SystemTheme = "system-theme", e.TagOutline = "tag-outline", e.Text = "text", e.TextBox = "text-box", e.TextBoxMultiple = "text-box-multiple", e.TextBoxMultipleOutline = "text-box-multiple-outline", e.TextBoxOutline = "text-box-outline", e.TextLong = "text-long", e.TimerOutline = "timer-outline", e.TimerRefreshOutline = "timer-refresh-outline", e.TrashCan = "trash-can", e.TrashCanOutline = "trash-can-outline", e.Ungroup = "ungroup", e.Upload = "upload", e.UploadBoxOutline = "upload-box-outline", e.UploadMultipleOutline = "upload-multiple-outline", e.UploadOutline = "upload-outline", e.Video = "video", e.VideoOutline = "video-outline", e.Web = "web", e.ZipBox = "zip-box", e))(d || {});
|
|
2
|
+
export {
|
|
3
|
+
s as B,
|
|
4
|
+
l as E,
|
|
5
|
+
r as F,
|
|
6
|
+
O as G,
|
|
7
|
+
d as I,
|
|
8
|
+
o as L,
|
|
9
|
+
a as T,
|
|
10
|
+
i as a,
|
|
11
|
+
t as b,
|
|
12
|
+
p as c,
|
|
13
|
+
u as d
|
|
14
|
+
};
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@caipira/tamandua",
|
|
3
|
-
"version": "0.0.
|
|
3
|
+
"version": "0.0.96",
|
|
4
4
|
"private": false,
|
|
5
5
|
"description": "UI library for the Caipira ecosystem",
|
|
6
6
|
"license": "GPL-3.0-only",
|
|
@@ -65,7 +65,7 @@
|
|
|
65
65
|
"test:start": "vitest",
|
|
66
66
|
"test": "vitest --run",
|
|
67
67
|
"typecheck": "vue-tsc --noEmit -p tsconfig.json --composite false",
|
|
68
|
-
"start:sb": "storybook dev",
|
|
68
|
+
"start:sb": "storybook dev -p 3001",
|
|
69
69
|
"build:sb": "storybook build",
|
|
70
70
|
"prepublishOnly": "npm run build:prod"
|
|
71
71
|
},
|
|
@@ -85,15 +85,9 @@
|
|
|
85
85
|
},
|
|
86
86
|
"devDependencies": {
|
|
87
87
|
"@faker-js/faker": "^8.4.1",
|
|
88
|
-
"@storybook/addon-
|
|
89
|
-
"@storybook/addon-
|
|
90
|
-
"@storybook/
|
|
91
|
-
"@storybook/addon-links": "^8.6.6",
|
|
92
|
-
"@storybook/addon-themes": "^8.6.6",
|
|
93
|
-
"@storybook/blocks": "^8.6.6",
|
|
94
|
-
"@storybook/test": "^8.6.6",
|
|
95
|
-
"@storybook/vue3": "^8.6.6",
|
|
96
|
-
"@storybook/vue3-vite": "^8.6.6",
|
|
88
|
+
"@storybook/addon-links": "^10.0.5",
|
|
89
|
+
"@storybook/addon-themes": "^10.0.5",
|
|
90
|
+
"@storybook/vue3-vite": "^10.0.5",
|
|
97
91
|
"@types/d3": "^7.4.3",
|
|
98
92
|
"@types/js-cookie": "^2.2.7",
|
|
99
93
|
"@types/jsdom": "^21.1.6",
|
|
@@ -102,7 +96,7 @@
|
|
|
102
96
|
"@vue/test-utils": "^2.4.1",
|
|
103
97
|
"@vue/tsconfig": "^0.5.1",
|
|
104
98
|
"jsdom": "^26.0.0",
|
|
105
|
-
"storybook": "^
|
|
99
|
+
"storybook": "^10.0.5",
|
|
106
100
|
"ts-node": "^10.9.1",
|
|
107
101
|
"typescript": "^5.4.5",
|
|
108
102
|
"vite": "^5.2.6",
|
|
@@ -112,6 +106,7 @@
|
|
|
112
106
|
"vitest": "^3.0.8",
|
|
113
107
|
"vue": "^3.4.21",
|
|
114
108
|
"vue-component-type-helpers": "^2.0.19",
|
|
115
|
-
"vue-tsc": "^2.0.13"
|
|
109
|
+
"vue-tsc": "^2.0.13",
|
|
110
|
+
"@storybook/addon-docs": "^10.0.5"
|
|
116
111
|
}
|
|
117
112
|
}
|
|
@@ -1,74 +0,0 @@
|
|
|
1
|
-
import { defineComponent as x, useSlots as b, inject as g, computed as i, resolveComponent as S, openBlock as r, createElementBlock as a, createElementVNode as u, normalizeClass as s, createBlock as k, unref as t, withCtx as C, renderSlot as d, Fragment as F, renderList as B, toDisplayString as I, createCommentVNode as w } from "vue";
|
|
2
|
-
import { F as c } from "./ui-D5oXHNg_.js";
|
|
3
|
-
const D = { class: "w-full" }, E = {
|
|
4
|
-
key: 0,
|
|
5
|
-
class: "float-right"
|
|
6
|
-
}, V = /* @__PURE__ */ x({
|
|
7
|
-
name: "TFormItem",
|
|
8
|
-
__name: "FormItem",
|
|
9
|
-
props: {
|
|
10
|
-
label: {},
|
|
11
|
-
rules: {}
|
|
12
|
-
},
|
|
13
|
-
setup(v) {
|
|
14
|
-
const m = v, n = b(), p = [], e = g("formStyle", {
|
|
15
|
-
label: "",
|
|
16
|
-
input: "",
|
|
17
|
-
layout: "horizontal",
|
|
18
|
-
size: c.Default
|
|
19
|
-
}), h = i(() => {
|
|
20
|
-
if (!n || !n.default)
|
|
21
|
-
return !1;
|
|
22
|
-
const o = n?.default();
|
|
23
|
-
return o ? o[0].type.name : !1;
|
|
24
|
-
}), f = i(() => h.value === "TInputMultiplier"), l = i(() => e.layout ? e.layout : "horizontal");
|
|
25
|
-
return (o, M) => {
|
|
26
|
-
const y = S("t-graphy-label");
|
|
27
|
-
return r(), a("div", D, [
|
|
28
|
-
u("div", {
|
|
29
|
-
class: s(["flex gap-2 my-5", {
|
|
30
|
-
"flex-col": l.value === "vertical",
|
|
31
|
-
"items-center": l.value === "horizontal" && !f.value,
|
|
32
|
-
"items-start": f.value
|
|
33
|
-
}])
|
|
34
|
-
}, [
|
|
35
|
-
m.label ? (r(), k(y, {
|
|
36
|
-
key: 0,
|
|
37
|
-
text: m.label,
|
|
38
|
-
class: s({
|
|
39
|
-
[t(e).label]: !0,
|
|
40
|
-
"text-sm": t(e).size === t(c).Small,
|
|
41
|
-
"relative top-1": l.value === "horizontal" && t(e).size === t(c).Small,
|
|
42
|
-
"text-right": l.value === "horizontal"
|
|
43
|
-
})
|
|
44
|
-
}, {
|
|
45
|
-
default: C(() => [
|
|
46
|
-
d(o.$slots, "label")
|
|
47
|
-
]),
|
|
48
|
-
_: 3
|
|
49
|
-
}, 8, ["text", "class"])) : (r(), a("div", {
|
|
50
|
-
key: 1,
|
|
51
|
-
class: s({
|
|
52
|
-
[t(e).label]: !0,
|
|
53
|
-
"text-right": l.value === "horizontal"
|
|
54
|
-
})
|
|
55
|
-
}, null, 2)),
|
|
56
|
-
u("div", {
|
|
57
|
-
class: s({ [t(e).input]: !0 })
|
|
58
|
-
}, [
|
|
59
|
-
d(o.$slots, "default")
|
|
60
|
-
], 2)
|
|
61
|
-
], 2),
|
|
62
|
-
p ? (r(), a("div", E, [
|
|
63
|
-
(r(), a(F, null, B(p, (_, z) => u("span", {
|
|
64
|
-
class: "text-sm text-red-600",
|
|
65
|
-
key: z
|
|
66
|
-
}, I(_), 1)), 64))
|
|
67
|
-
])) : w("", !0)
|
|
68
|
-
]);
|
|
69
|
-
};
|
|
70
|
-
}
|
|
71
|
-
});
|
|
72
|
-
export {
|
|
73
|
-
V as _
|
|
74
|
-
};
|
package/dist/Popover-C3ovolxY.js
DELETED
|
@@ -1,73 +0,0 @@
|
|
|
1
|
-
import './Popover.css';
|
|
2
|
-
import { defineComponent as w, mergeModels as B, useModel as P, ref as r, computed as f, onBeforeMount as E, onBeforeUnmount as M, openBlock as u, createElementBlock as d, renderSlot as m, normalizeProps as v, guardReactiveProps as g, normalizeStyle as x, unref as z, normalizeClass as O, createCommentVNode as R } from "vue";
|
|
3
|
-
import { u as T } from "./useDomHelpers-CGVrQd35.js";
|
|
4
|
-
import { d as S, a as $ } from "./ui-D5oXHNg_.js";
|
|
5
|
-
import { o as L, s as W, a as I, u as U, b as j } from "./floating-ui.vue-B5QcGNjh.js";
|
|
6
|
-
import { _ as A } from "./_plugin-vue_export-helper-CHgC5LLL.js";
|
|
7
|
-
let D = 0;
|
|
8
|
-
const F = /* @__PURE__ */ w({
|
|
9
|
-
name: "TPopover",
|
|
10
|
-
__name: "Popover",
|
|
11
|
-
props: /* @__PURE__ */ B({
|
|
12
|
-
trigger: { default: S.CLICK },
|
|
13
|
-
disabled: { type: Boolean, default: !1 },
|
|
14
|
-
placement: { default: $.BOTTOM },
|
|
15
|
-
slotWrapperClasses: { default: "input-roundness" },
|
|
16
|
-
width: { default: "auto" }
|
|
17
|
-
}, {
|
|
18
|
-
open: { type: Boolean, default: !1 },
|
|
19
|
-
openModifiers: {}
|
|
20
|
-
}),
|
|
21
|
-
emits: ["update:open"],
|
|
22
|
-
setup(a, { expose: y }) {
|
|
23
|
-
const o = P(a, "open"), n = a, s = `popover_${++D}`, l = r(), C = f(() => n.placement), t = r(), { wasClickOutsideOfContainer: _ } = T(), k = f(
|
|
24
|
-
() => t.value?.firstChild?.nextElementSibling
|
|
25
|
-
), b = r([
|
|
26
|
-
L(5),
|
|
27
|
-
W({
|
|
28
|
-
apply({ elements: e }) {
|
|
29
|
-
if (n.width === "static")
|
|
30
|
-
return;
|
|
31
|
-
const c = e.reference.getBoundingClientRect();
|
|
32
|
-
Object.assign(e.floating.style, {
|
|
33
|
-
minWidth: `${c.width}px`
|
|
34
|
-
});
|
|
35
|
-
}
|
|
36
|
-
}),
|
|
37
|
-
I({ crossAxis: !0 })
|
|
38
|
-
]), { floatingStyles: h } = U(k, l, {
|
|
39
|
-
open: o,
|
|
40
|
-
placement: C,
|
|
41
|
-
middleware: b,
|
|
42
|
-
whileElementsMounted: j
|
|
43
|
-
}), i = (e) => {
|
|
44
|
-
o.value = typeof e == "boolean" ? e : !o.value;
|
|
45
|
-
}, p = (e) => o.value && t.value && _(e, t.value) ? (o.value = !1, !1) : !0;
|
|
46
|
-
return E(() => {
|
|
47
|
-
document.addEventListener("click", p);
|
|
48
|
-
}), M(() => {
|
|
49
|
-
document.removeEventListener("click", p);
|
|
50
|
-
}), y({ name: s }), (e, c) => (u(), d("div", {
|
|
51
|
-
ref_key: "wrapperRef",
|
|
52
|
-
ref: t
|
|
53
|
-
}, [
|
|
54
|
-
m(e.$slots, "default", v(g({ onTogglePopover: i })), void 0, !0),
|
|
55
|
-
o.value ? (u(), d("div", {
|
|
56
|
-
key: 0,
|
|
57
|
-
ref_key: "floating",
|
|
58
|
-
ref: l,
|
|
59
|
-
role: "tooltip",
|
|
60
|
-
id: s,
|
|
61
|
-
style: x(z(h)),
|
|
62
|
-
class: O(["popover-floatable bg-caipira-primary z-10", {
|
|
63
|
-
[n.slotWrapperClasses]: !0
|
|
64
|
-
}])
|
|
65
|
-
}, [
|
|
66
|
-
m(e.$slots, "content", v(g({ onTogglePopover: i })), void 0, !0)
|
|
67
|
-
], 6)) : R("", !0)
|
|
68
|
-
], 512));
|
|
69
|
-
}
|
|
70
|
-
}), J = /* @__PURE__ */ A(F, [["__scopeId", "data-v-28c8fbcf"]]);
|
|
71
|
-
export {
|
|
72
|
-
J as P
|
|
73
|
-
};
|
package/dist/ui-D5oXHNg_.js
DELETED
|
@@ -1,14 +0,0 @@
|
|
|
1
|
-
var l = /* @__PURE__ */ ((e) => (e.Unset = "", e.ExtraSmall = "xs", e.Small = "sm", e.Default = "default", e.Large = "lg", e.ExtraLarge = "xl", e))(l || {}), t = /* @__PURE__ */ ((e) => (e.Unset = "", e.Square = "square", e.Rounded = "rounded", e.Circle = "circle", e))(t || {}), u = /* @__PURE__ */ ((e) => (e.CLICK = "click", e.HOVER = "hover", e))(u || {}), i = /* @__PURE__ */ ((e) => (e.TOP_START = "top-start", e.TOP = "top", e.TOP_END = "top-end", e.RIGHT_START = "right-start", e.RIGHT = "right", e.RIGHT_END = "right-end", e.BOTTOM_END = "bottom-end", e.BOTTOM = "bottom", e.BOTTOM_START = "bottom-start", e.LEFT_END = "left-end", e.LEFT = "left", e.LEFT_START = "left-start", e))(i || {}), r = /* @__PURE__ */ ((e) => (e.Small = "sm", e.Default = "default", e))(r || {}), a = /* @__PURE__ */ ((e) => (e.DEFAULT = "default", e.PRIMARY = "primary", e.SUCCESS = "success", e.DANGER = "danger", e.WARNING = "warning", e))(a || {}), s = /* @__PURE__ */ ((e) => (e.DEFAULT = "default", e.PRIMARY = "primary", e.SUCCESS = "success", e.DANGER = "danger", e.WARNING = "warning", e.LINK = "link", e.TRANSPARENT = "transparent", e))(s || {}), p = /* @__PURE__ */ ((e) => (e.BUTTON = "button", e.SUBMIT = "submit", e.FILE = "file", e))(p || {}), o = /* @__PURE__ */ ((e) => (e.Default = "default", e.Router = "router", e))(o || {}), d = /* @__PURE__ */ ((e) => (e.DEFAULT = "default", e.INCREASE = "increase", e.DECREASE = "decrease", e.AUTO = "auto", e))(d || {}), O = /* @__PURE__ */ ((e) => (e.Account = "account", e.AccountBox = "account-box", e.AccountBoxOutline = "account-box-outline", e.AccountCircle = "account-circle", e.AccountCircleOutline = "account-circle-outline", e.AccountGroup = "account-group", e.AccountGroupOutline = "account-group-outline", e.AccountMultiple = "account-multiple", e.AccountMultipleOutline = "account-multiple-outline", e.AccountOutline = "account-outline", e.AlertOctagon = "alert-octagon", e.AlertOctagonOutline = "alert-octagon-outline", e.Archive = "archive", e.ArchiveOutline = "archive-outline", e.ArrowLeft = "arrow-left", e.ArrowRight = "arrow-right", e.Bank = "bank", e.BankOutline = "bank-outline", e.BookAlphabet = "book-alphabet", e.BookMultiple = "book-multiple", e.BookMultipleOutline = "book-multiple-outline", e.Bookshelf = "bookshelf", e.Camera = "camera", e.CardsOutline = "cards-outline", e.CardsVariant = "cards-variant", e.CartOutline = "cart-outline", e.ChartBox = "chart-box", e.ChartBoxOutline = "chart-box-outline", e.Check = "check", e.CheckCircle = "check-circle", e.CheckCircleOutline = "check-circle-outline", e.ChevronDown = "chevron-down", e.ChevronLeft = "chevron-left", e.ChevronRight = "chevron-right", e.ChevronUp = "chevron-up", e.Circle = "circle", e.Clock = "clock", e.ClockFast = "clock-fast", e.ClockOutline = "clock-outline", e.Close = "close", e.CloseCircle = "close-circle", e.CloseCircleOutline = "close-circle-outline", e.Cog = "cog", e.Contacts = "contacts", e.ContactsOutline = "contacts-outline", e.Copy = "copy", e.CreditCard = "credit-card", e.CreditCardPlus = "credit-card-plus", e.Currency = "currency", e.Database = "database", e.DotsGrid = "dots-grid", e.DotsHorizontal = "dots-horizontal", e.DotsVertical = "dots-vertical", e.EmailOpenOutline = "email-open-outline", e.EmailOutline = "email-outline", e.Eye = "eye", e.EyeOff = "eye-off", e.FIleDocumentPlusOutline = "file-document-plus-outline", e.Filmstrip = "filmstrip", e.Filter = "filter", e.Fullscreen = "fullscreen", e.FullscreenExit = "fullscreen-exit", e.Group = "group", e.Home = "home", e.HomeOutline = "home-outline", e.Image = "image", e.ImageAlbum = "image-album", e.ImageAlbumOutline = "image-album-outline", e.ImageOutline = "image-outline", e.InfoOutline = "info-outline", e.Key = "key", e.KeyChain = "key-chain", e.KeyVariant = "key-variant", e.ListboxOutline = "listbox-outline", e.Loading = "loading", e.Lock = "lock", e.LockOutline = "lock-outline", e.Logout = "logout", e.Menu = "menu", e.MenuDown = "menu-down", e.MenuLeft = "menu-left", e.MenuRight = "menu-right", e.Minus = "minus", e.MinusCircle = "minus-circle", e.MinusCircleOutline = "minus-circle-outline", e.Moon = "moon", e.MovieOpen = "movie-open", e.MovieOpenOutline = "movie-open-outline", e.OpenInNew = "open-in-new", e.Pause = "pause", e.PauseCircle = "pause-circle", e.Pencil = "pencil", e.PiggyBankOutline = "piggy-bank-outline", e.Play = "play", e.PlayBox = "play-box", e.PlayBoxEditOutline = "play-box-edit-outline", e.PlayBoxOutline = "play-box-outline", e.PlayCircle = "play-circle", e.PlaylistPlay = "playlist-play", e.Plus = "plus", e.PlusCircle = "plus-circle", e.PlusCircleOutline = "plus-circle-outline", e.ProgressClock = "progress-clock", e.QrcodeScan = "qrcode-scan", e.Refresh = "refresh", e.Save = "save", e.Search = "search", e.Shuffle = "shuffle", e.ShuffleDisabled = "shuffle-disabled", e.ShuffleVariant = "shuffle-variant", e.SkipBackward = "skip-backward", e.SkipForward = "skip-forward", e.SkipNext = "skip-next", e.SkipPrevious = "skip-previous", e.Spotlight = "spotlight", e.Stop = "stop", e.Store = "store", e.StoreOutline = "store-outline", e.Sun = "sun", e.Swap = "swap", e.SwapHorizontal = "swap-horizontal", e.SwapLeft = "swap-left", e.SwapRight = "swap-right", e.SystemTheme = "system-theme", e.TagOutline = "tag-outline", e.Text = "text", e.TextBox = "text-box", e.TextBoxMultiple = "text-box-multiple", e.TextBoxMultipleOutline = "text-box-multiple-outline", e.TextBoxOutline = "text-box-outline", e.TextLong = "text-long", e.TimerOutline = "timer-outline", e.TimerRefreshOutline = "timer-refresh-outline", e.TrashCan = "trash-can", e.TrashCanOutline = "trash-can-outline", e.Ungroup = "ungroup", e.Upload = "upload", e.UploadBoxOutline = "upload-box-outline", e.UploadMultipleOutline = "upload-multiple-outline", e.UploadOutline = "upload-outline", e.Video = "video", e.VideoOutline = "video-outline", e.Web = "web", e.ZipBox = "zip-box", e))(O || {});
|
|
2
|
-
export {
|
|
3
|
-
s as B,
|
|
4
|
-
l as E,
|
|
5
|
-
r as F,
|
|
6
|
-
d as G,
|
|
7
|
-
O as I,
|
|
8
|
-
o as L,
|
|
9
|
-
a as T,
|
|
10
|
-
i as a,
|
|
11
|
-
t as b,
|
|
12
|
-
p as c,
|
|
13
|
-
u as d
|
|
14
|
-
};
|