@caipira/tamandua 0.0.108 → 0.0.110

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 (75) hide show
  1. package/dist/Avatar.js +2 -2
  2. package/dist/{Avatar.vue_vue_type_script_setup_true_lang-DSJKDT8K.js → Avatar.vue_vue_type_script_setup_true_lang-BfieuQNL.js} +1 -1
  3. package/dist/Button.js +2 -2
  4. package/dist/{Button.vue_vue_type_script_setup_true_lang-C8hR8Mib.js → Button.vue_vue_type_script_setup_true_lang-FMipEkfO.js} +31 -28
  5. package/dist/Dropdown.js +2 -2
  6. package/dist/{Dropdown.vue_vue_type_script_setup_true_lang-CSTzXt4q.js → Dropdown.vue_vue_type_script_setup_true_lang-DS7cWe9y.js} +23 -23
  7. package/dist/Form.js +2 -2
  8. package/dist/{Form.vue_vue_type_script_setup_true_lang-DDfFG5ov.js → Form.vue_vue_type_script_setup_true_lang-v7aEXY0P.js} +1 -1
  9. package/dist/FormItem.js +2 -2
  10. package/dist/{FormItem.vue_vue_type_script_setup_true_lang-C4UxWB8-.js → FormItem.vue_vue_type_script_setup_true_lang-CPDhCwT3.js} +1 -1
  11. package/dist/GraphyPrice.js +2 -2
  12. package/dist/{GraphyPrice.vue_vue_type_script_setup_true_lang-CEoy34yZ.js → GraphyPrice.vue_vue_type_script_setup_true_lang-DWrPfQkl.js} +1 -1
  13. package/dist/Icon.js +2 -2
  14. package/dist/{Icon.vue_vue_type_script_setup_true_lang-Bw9oxUXE.js → Icon.vue_vue_type_script_setup_true_lang-Cf60EnJ0.js} +1 -1
  15. package/dist/InputMultiplier.js +2 -2
  16. package/dist/{InputMultiplier.vue_vue_type_script_setup_true_lang-BqLjHOXs.js → InputMultiplier.vue_vue_type_script_setup_true_lang-hbu4tSBl.js} +1 -1
  17. package/dist/InputPassword.js +2 -2
  18. package/dist/{InputPassword.vue_vue_type_script_setup_true_lang-CFGOn6D6.js → InputPassword.vue_vue_type_script_setup_true_lang-CdDdCkH1.js} +1 -1
  19. package/dist/InputSelect.js +2 -2
  20. package/dist/{InputSelect.vue_vue_type_script_setup_true_lang-BiqElQMB.js → InputSelect.vue_vue_type_script_setup_true_lang-C0IG8j5U.js} +48 -47
  21. package/dist/InputText.js +2 -2
  22. package/dist/{InputText.vue_vue_type_script_setup_true_lang-BSJs5QvW.js → InputText.vue_vue_type_script_setup_true_lang-B42_Uupe.js} +1 -1
  23. package/dist/Link.js +2 -2
  24. package/dist/{Link.vue_vue_type_script_setup_true_lang-1FF8-bx3.js → Link.vue_vue_type_script_setup_true_lang-CVJARk4u.js} +1 -1
  25. package/dist/Popconfirm.js +2 -2
  26. package/dist/{Popconfirm.vue_vue_type_script_setup_true_lang-2SWveLua.js → Popconfirm.vue_vue_type_script_setup_true_lang-pSZs1aLq.js} +1 -1
  27. package/dist/{Popover-C3muJRU2.js → Popover-LsBKjPQo.js} +1 -1
  28. package/dist/Popover.js +2 -2
  29. package/dist/Range-DSNQDUDW.js +81 -0
  30. package/dist/Range.css +1 -0
  31. package/dist/Range.js +6 -0
  32. package/dist/Tag.js +2 -2
  33. package/dist/{Tag.vue_vue_type_script_setup_true_lang-BGfQx0Zm.js → Tag.vue_vue_type_script_setup_true_lang-DYJ5GWWC.js} +1 -1
  34. package/dist/Toast.js +2 -2
  35. package/dist/{Toast.vue_vue_type_script_setup_true_lang-C3DPOGhk.js → Toast.vue_vue_type_script_setup_true_lang-D2BmbbjR.js} +1 -1
  36. package/dist/components.js +36 -34
  37. package/dist/enums.js +1 -1
  38. package/dist/index.css +7 -9
  39. package/dist/{plugin-BKGGwpX5.js → plugin-2EOpg2Hm.js} +1 -1
  40. package/dist/{plugin-Bm19fIFW.js → plugin-B6tq39a7.js} +1 -1
  41. package/dist/{plugin-ecfRWrSm.js → plugin-BgYMFlp9.js} +1 -1
  42. package/dist/{plugin-DpjcK3XL.js → plugin-Bl-ieCLY.js} +1 -1
  43. package/dist/{plugin-Bqj74SAX.js → plugin-BlAFrrBh.js} +1 -1
  44. package/dist/plugin-BsEcG3SH.js +10 -0
  45. package/dist/{plugin-ulOCLfK6.js → plugin-C-hzgafN.js} +1 -1
  46. package/dist/{plugin-DHpk9u10.js → plugin-C4ZwDhqb.js} +1 -1
  47. package/dist/{plugin-CY8npg4V.js → plugin-CbahIIjI.js} +1 -1
  48. package/dist/{plugin-DicwvIqH.js → plugin-D81dElMV.js} +1 -1
  49. package/dist/{plugin-DdFaVjC1.js → plugin-DPIBggyG.js} +1 -1
  50. package/dist/{plugin-BPCrfFKZ.js → plugin-DXi8aCer.js} +1 -1
  51. package/dist/{plugin-BoCsGIsZ.js → plugin-DZK7Bkjx.js} +1 -1
  52. package/dist/{plugin-DJJL4q-n.js → plugin-Lap81czB.js} +1 -1
  53. package/dist/{plugin-BnuHbmyz.js → plugin-M4Xqncbq.js} +1 -1
  54. package/dist/{plugin-DTlQ12ia.js → plugin-kLxDNCij.js} +1 -1
  55. package/dist/{plugin-D1hnDHxy.js → plugin-xOWvAZJ8.js} +1 -1
  56. package/dist/{plugins-CKVBk6Nv.js → plugins-CFWRsvy1.js} +38 -35
  57. package/dist/plugins.js +105 -102
  58. package/dist/tamandua.js +1 -1
  59. package/dist/types/components/Button/Button.vue.d.ts +4 -1
  60. package/dist/types/components/Button/types.d.ts +2 -1
  61. package/dist/types/components/Dropdown/Dropdown.vue.d.ts +1 -0
  62. package/dist/types/components/InputSelect/InputSelect.vue.d.ts +1 -0
  63. package/dist/types/components/InputSelect/types.d.ts +3 -0
  64. package/dist/types/components/Range/Range.story.d.ts +56 -0
  65. package/dist/types/components/Range/Range.vue.d.ts +49 -0
  66. package/dist/types/components/Range/index.d.ts +5 -0
  67. package/dist/types/components/Range/plugin.d.ts +4 -0
  68. package/dist/types/components/Range/types.d.ts +12 -0
  69. package/dist/types/components/index.d.ts +2 -1
  70. package/dist/types/components/plugins.d.ts +2 -1
  71. package/dist/types/components/types.d.ts +2 -1
  72. package/dist/types/enums/ui.d.ts +11 -4
  73. package/dist/{ui-B7g6EoyG.js → ui-djKlQTOR.js} +8 -7
  74. package/package.json +1 -1
  75. package/volar.d.ts +1 -0
package/dist/Avatar.js CHANGED
@@ -1,5 +1,5 @@
1
- import { _ as o } from "./Avatar.vue_vue_type_script_setup_true_lang-DSJKDT8K.js";
2
- import { p } from "./plugin-DdFaVjC1.js";
1
+ import { _ as o } from "./Avatar.vue_vue_type_script_setup_true_lang-BfieuQNL.js";
2
+ import { p } from "./plugin-DPIBggyG.js";
3
3
  export {
4
4
  o as Avatar,
5
5
  p as AvatarPlugin
@@ -1,5 +1,5 @@
1
1
  import { defineComponent as f, computed as c, resolveComponent as x, openBlock as a, createElementBlock as o, normalizeClass as u, unref as t, createBlock as h, toDisplayString as z, createCommentVNode as _ } from "vue";
2
- import { E as r, b as l } from "./ui-B7g6EoyG.js";
2
+ import { E as r, b as l } from "./ui-djKlQTOR.js";
3
3
  const g = ["role"], v = ["src"], w = /* @__PURE__ */ f({
4
4
  name: "TAvatar",
5
5
  __name: "Avatar",
package/dist/Button.js CHANGED
@@ -1,5 +1,5 @@
1
- import { _ as r } from "./Button.vue_vue_type_script_setup_true_lang-C8hR8Mib.js";
2
- import { p } from "./plugin-DJJL4q-n.js";
1
+ import { _ as r } from "./Button.vue_vue_type_script_setup_true_lang-FMipEkfO.js";
2
+ import { p } from "./plugin-Lap81czB.js";
3
3
  export {
4
4
  r as Button,
5
5
  p as ButtonPlugin
@@ -1,8 +1,8 @@
1
- import { defineComponent as I, ref as y, computed as s, resolveComponent as A, openBlock as c, createBlock as d, resolveDynamicComponent as z, normalizeClass as P, unref as r, withCtx as U, mergeProps as b, createCommentVNode as u, renderSlot as _, createElementBlock as h, Fragment as D, createTextVNode as k, toDisplayString as L } from "vue";
2
- import { b as f, E as i, c as t, B as a } from "./ui-B7g6EoyG.js";
3
- import { g } from "./index-CVD_wAsU.js";
4
- import "./Icon.vue_vue_type_script_setup_true_lang-Bw9oxUXE.js";
5
- const F = ["multiple"], V = /* @__PURE__ */ I({
1
+ import { defineComponent as N, ref as y, computed as s, resolveComponent as z, openBlock as c, createBlock as d, resolveDynamicComponent as P, normalizeClass as U, unref as r, withCtx as _, mergeProps as b, createCommentVNode as u, renderSlot as D, createElementBlock as h, Fragment as k, createTextVNode as L, toDisplayString as F } from "vue";
2
+ import { b as f, E as i, c as t, B as a, d as g } from "./ui-djKlQTOR.js";
3
+ import { g as S } from "./index-CVD_wAsU.js";
4
+ import "./Icon.vue_vue_type_script_setup_true_lang-Cf60EnJ0.js";
5
+ const M = ["multiple"], Y = /* @__PURE__ */ N({
6
6
  name: "TButton",
7
7
  __name: "Button",
8
8
  props: {
@@ -19,11 +19,12 @@ const F = ["multiple"], V = /* @__PURE__ */ I({
19
19
  shape: { default: f.Rounded },
20
20
  size: { default: i.Default },
21
21
  type: { default: t.BUTTON },
22
- variant: { default: a.DEFAULT }
22
+ variant: { default: a.DEFAULT },
23
+ innerAlignment: { default: g.Center }
23
24
  },
24
25
  emits: ["upload"],
25
- setup(S, { expose: E, emit: T }) {
26
- const e = S, x = T, m = y(), p = y(null), B = s(() => {
26
+ setup(E, { expose: T, emit: B }) {
27
+ const e = E, x = B, m = y(), p = y(null), R = s(() => {
27
28
  switch (e.type) {
28
29
  case t.SUBMIT:
29
30
  return "submit";
@@ -32,7 +33,7 @@ const F = ["multiple"], V = /* @__PURE__ */ I({
32
33
  default:
33
34
  return "button";
34
35
  }
35
- }), R = s(() => e.type === t.SUBMIT ? e.label : void 0), w = s(() => {
36
+ }), A = s(() => e.type === t.SUBMIT ? e.label : void 0), C = s(() => {
36
37
  switch (e.type) {
37
38
  case t.SUBMIT:
38
39
  return "input";
@@ -41,19 +42,19 @@ const F = ["multiple"], V = /* @__PURE__ */ I({
41
42
  default:
42
43
  return "button";
43
44
  }
44
- }), N = (o) => {
45
+ }), w = (o) => {
45
46
  if (e.type === t.SUBMIT && o.preventDefault(), e.type === t.FILE && m.value?.click(), e.animate) {
46
47
  let n = null;
47
- e.animate.target === "icon" && (n = p.value?.reference), n && g.to(n, {
48
+ e.animate.target === "icon" && (n = p.value?.reference), n && S.to(n, {
48
49
  duration: 0.2,
49
50
  ...e.animate.animation,
50
51
  ease: "power3.easeInOut",
51
52
  onComplete: () => {
52
- g.set(n, e.animate?.reset);
53
+ S.set(n, e.animate?.reset);
53
54
  }
54
55
  });
55
56
  }
56
- }, C = (o) => {
57
+ }, I = (o) => {
57
58
  o.stopPropagation();
58
59
  const l = o.target.files;
59
60
  !l || !l.length || x("upload", l);
@@ -75,13 +76,13 @@ const F = ["multiple"], V = /* @__PURE__ */ I({
75
76
  return 20;
76
77
  }
77
78
  });
78
- return E({ iconReference: p }), (o, n) => {
79
- const l = A("t-icon");
80
- return c(), d(z(w.value), {
81
- type: B.value,
82
- value: R.value,
79
+ return T({ iconReference: p }), (o, n) => {
80
+ const l = z("t-icon");
81
+ return c(), d(P(C.value), {
82
+ type: R.value,
83
+ value: A.value,
83
84
  disabled: e.disabled,
84
- class: P([{
85
+ class: U([{
85
86
  // Size
86
87
  "text-xs px-1 h-4": e.size === r(i).ExtraSmall,
87
88
  "text-sm px-2 h-7": e.size === r(i).Small,
@@ -98,6 +99,8 @@ const F = ["multiple"], V = /* @__PURE__ */ I({
98
99
  "cursor-pointer": !e.disabled,
99
100
  // Bold
100
101
  "font-bold": e.bold,
102
+ // Inner alignment
103
+ "items-center justify-center": e.innerAlignment === r(g).Center,
101
104
  // Default color
102
105
  "border-caipira-primary-inverted fill-caipira-primary-inverted": e.variant === r(a).DEFAULT,
103
106
  "bg-transparent color-caipira-primary-inverted hover:bg-caipira-primary-inverted hover:color-caipira-primary hover:fill-white": e.variant === r(a).DEFAULT && e.outline,
@@ -123,11 +126,11 @@ const F = ["multiple"], V = /* @__PURE__ */ I({
123
126
  // Transparent
124
127
  "bg-transparent": e.variant === r(a).TRANSPARENT,
125
128
  "hover:bg-[var(--hover-color)]": e.variant === r(a).TRANSPARENT && e.hover
126
- }, "input-outline flex gap-1 items-center select-none whitespace-nowrap"]),
129
+ }, "input-outline flex gap-1 select-none whitespace-nowrap"]),
127
130
  role: "button",
128
- onClick: N
131
+ onClick: w
129
132
  }, {
130
- default: U(() => [
133
+ default: _(() => [
131
134
  e.icon && e.iconPosition === "left" ? (c(), d(l, b({
132
135
  key: 0,
133
136
  ref_key: "iconReference",
@@ -135,9 +138,9 @@ const F = ["multiple"], V = /* @__PURE__ */ I({
135
138
  size: v.value,
136
139
  icon: e.icon
137
140
  }, e.iconProps), null, 16, ["size", "icon"])) : u("", !0),
138
- _(o.$slots, "default"),
139
- e.label && e.type !== r(t).SUBMIT ? (c(), h(D, { key: 1 }, [
140
- k(L(e.label), 1)
141
+ D(o.$slots, "default"),
142
+ e.label && e.type !== r(t).SUBMIT ? (c(), h(k, { key: 1 }, [
143
+ L(F(e.label), 1)
141
144
  ], 64)) : u("", !0),
142
145
  e.icon && e.iconPosition === "right" ? (c(), d(l, b({
143
146
  key: 2,
@@ -153,8 +156,8 @@ const F = ["multiple"], V = /* @__PURE__ */ I({
153
156
  ref_key: "fileInput",
154
157
  ref: m,
155
158
  class: "hidden",
156
- onChange: C
157
- }, null, 40, F)) : u("", !0)
159
+ onChange: I
160
+ }, null, 40, M)) : u("", !0)
158
161
  ]),
159
162
  _: 3
160
163
  }, 8, ["type", "value", "disabled", "class"]);
@@ -162,5 +165,5 @@ const F = ["multiple"], V = /* @__PURE__ */ I({
162
165
  }
163
166
  });
164
167
  export {
165
- V as _
168
+ Y as _
166
169
  };
package/dist/Dropdown.js CHANGED
@@ -1,5 +1,5 @@
1
- import { _ as p } from "./Dropdown.vue_vue_type_script_setup_true_lang-CSTzXt4q.js";
2
- import { p as a } from "./plugin-CY8npg4V.js";
1
+ import { _ as p } from "./Dropdown.vue_vue_type_script_setup_true_lang-DS7cWe9y.js";
2
+ import { p as a } from "./plugin-CbahIIjI.js";
3
3
  export {
4
4
  p as Dropdown,
5
5
  a as DropdownPlugin
@@ -1,5 +1,5 @@
1
1
  import { defineComponent as A, ref as y, computed as P, resolveComponent as E, openBlock as n, createElementBlock as r, normalizeClass as c, createVNode as G, Fragment as D, renderList as F, toDisplayString as V, withKeys as $, renderSlot as I, normalizeProps as O, mergeProps as U, createBlock as j, createCommentVNode as q, createTextVNode as J, createElementVNode as Q } from "vue";
2
- import { F as d } from "./ui-B7g6EoyG.js";
2
+ import { F as d } from "./ui-djKlQTOR.js";
3
3
  const W = /* @__PURE__ */ Q("span", null, "Loading...", -1), X = ["aria-selected", "onKeydown", "onClick"], Y = {
4
4
  key: 1,
5
5
  class: "inline-flex items-center select-none input-text-color"
@@ -38,34 +38,34 @@ const W = /* @__PURE__ */ Q("span", null, "Loading...", -1), X = ["aria-selected
38
38
  default:
39
39
  return "text-base";
40
40
  }
41
- }), b = async (t = i.value, o = s.items[t], l = void 0) => {
42
- l?.stopPropagation(), o.action && await o.action(), R("change", {
43
- index: t,
44
- option: o,
41
+ }), b = async (o = i.value, t = s.items[o], l = void 0) => {
42
+ l?.stopPropagation(), t?.action && typeof t.action == "function" && (typeof t?.manual > "u" || t.manual === !1) && await t.action(), R("change", {
43
+ index: o,
44
+ option: t,
45
45
  hold: l?.ctrlKey ?? !1
46
46
  });
47
- }, M = (t) => {
47
+ }, M = (o) => {
48
48
  if (!s.isVisible)
49
49
  return !1;
50
- switch (t.preventDefault(), p.value = "keyboard", t.key) {
50
+ switch (o.preventDefault(), p.value = "keyboard", o.key) {
51
51
  case "ArrowUp":
52
52
  case "ArrowDown":
53
- return S(t);
53
+ return S(o);
54
54
  case "Enter":
55
55
  return b();
56
56
  }
57
57
  }, N = () => {
58
- const t = C.value;
59
- t.scrollTop = 0;
60
- }, S = (t) => {
61
- const o = t.key === "ArrowDown", l = s.items.length;
58
+ const o = C.value;
59
+ o.scrollTop = 0;
60
+ }, S = (o) => {
61
+ const t = o.key === "ArrowDown", l = s.items.length;
62
62
  let e = i.value;
63
63
  const a = () => s.items[e] ? "isGroupLabel" in s.items[e] && s.items[e].isGroupLabel : !1, g = () => {
64
64
  e === l - 1 ? e = 0 : e++;
65
65
  }, K = () => {
66
66
  e === 0 ? e = l - 1 : e--;
67
67
  };
68
- if (o)
68
+ if (t)
69
69
  do
70
70
  g();
71
71
  while (a());
@@ -78,18 +78,18 @@ const W = /* @__PURE__ */ Q("span", null, "Loading...", -1), X = ["aria-selected
78
78
  let w = 0;
79
79
  if (_.focus(), v === 0 || u === 0)
80
80
  w = v - z + h;
81
- else if (o && v + h > z + u)
81
+ else if (t && v + h > z + u)
82
82
  w = u + h;
83
- else if (!o && v < u)
83
+ else if (!t && v < u)
84
84
  w = u - h;
85
85
  else
86
86
  return !0;
87
87
  return x.scroll({ top: w }), !0;
88
- }, T = (t) => {
89
- const o = t.target, l = f.value[0];
90
- !o || !l || o.scrollTop + o.clientHeight + l.offsetHeight >= o.scrollHeight && R("end-reached");
88
+ }, T = (o) => {
89
+ const t = o.target, l = f.value[0];
90
+ !t || !l || t.scrollTop + t.clientHeight + l.offsetHeight >= t.scrollHeight && R("end-reached");
91
91
  };
92
- return B({ move: S, resetScroll: N }), (t, o) => {
92
+ return B({ move: S, resetScroll: N }), (o, t) => {
93
93
  const l = E("t-icon");
94
94
  return n(), r("ul", {
95
95
  ref_key: "listRef",
@@ -97,7 +97,7 @@ const W = /* @__PURE__ */ Q("span", null, "Loading...", -1), X = ["aria-selected
97
97
  role: "listbox",
98
98
  class: c(["text-left max-h-60 min-w-fit z-10 overflow-y-auto scrollbar select-none floatable w-full", [s.wrapperRoundnessClass, s.wrapperPaddingClass]]),
99
99
  onScrollend: T,
100
- onMousemove: o[0] || (o[0] = () => p.value = "mouse"),
100
+ onMousemove: t[0] || (t[0] = () => p.value = "mouse"),
101
101
  onKeydown: M
102
102
  }, [
103
103
  s.loading ? (n(), r("li", {
@@ -117,7 +117,7 @@ const W = /* @__PURE__ */ Q("span", null, "Loading...", -1), X = ["aria-selected
117
117
  icon: "loading"
118
118
  }),
119
119
  W
120
- ], 2)) : t.items.length === 0 ? (n(), r("li", {
120
+ ], 2)) : o.items.length === 0 ? (n(), r("li", {
121
121
  key: 1,
122
122
  role: "option",
123
123
  "aria-disabled": "true",
@@ -127,7 +127,7 @@ const W = /* @__PURE__ */ Q("span", null, "Loading...", -1), X = ["aria-selected
127
127
  [s.optionMarginClass],
128
128
  [s.optionRoundnessClass]
129
129
  ]])
130
- }, " Nothing here ", 2)) : (n(!0), r(D, { key: 2 }, F(t.items, (e, a) => (n(), r(D, {
130
+ }, " Nothing here ", 2)) : (n(!0), r(D, { key: 2 }, F(o.items, (e, a) => (n(), r(D, {
131
131
  key: e?.isGroupLabel ? a : e.value
132
132
  }, [
133
133
  e.isGroupLabel ? (n(), r("li", {
@@ -159,7 +159,7 @@ const W = /* @__PURE__ */ Q("span", null, "Loading...", -1), X = ["aria-selected
159
159
  onKeydown: $((g) => b(a, e), ["enter"]),
160
160
  onClick: (g) => b(a, e, g)
161
161
  }, [
162
- t.$slots.default ? I(t.$slots, "default", O(U({ key: 0 }, e))) : (n(), r("div", Y, [
162
+ o.$slots.default ? I(o.$slots, "default", O(U({ key: 0 }, e))) : (n(), r("div", Y, [
163
163
  e.icon ? (n(), j(l, {
164
164
  key: 0,
165
165
  icon: e.icon,
package/dist/Form.js CHANGED
@@ -1,5 +1,5 @@
1
- import { _ as m } from "./Form.vue_vue_type_script_setup_true_lang-DDfFG5ov.js";
2
- import { p as a } from "./plugin-BKGGwpX5.js";
1
+ import { _ as m } from "./Form.vue_vue_type_script_setup_true_lang-v7aEXY0P.js";
2
+ import { p as a } from "./plugin-2EOpg2Hm.js";
3
3
  export {
4
4
  m as Form,
5
5
  a as FormPlugin
@@ -1,5 +1,5 @@
1
1
  import { reactive as C, defineComponent as $, ref as _, computed as N, watch as O, provide as z, resolveComponent as A, openBlock as J, createElementBlock as P, renderSlot as j, unref as E, createElementVNode as B, normalizeClass as T, withDirectives as W, createVNode as R, mergeProps as q, vShow as x } from "vue";
2
- import { F as G } from "./ui-B7g6EoyG.js";
2
+ import { F as G } from "./ui-djKlQTOR.js";
3
3
  import { F as s, a as f } from "./form-Dctryp6H.js";
4
4
  import { d as h, c as S, p as F, a as V } from "./transformers-CrxkoXtN.js";
5
5
  const i = {
package/dist/FormItem.js CHANGED
@@ -1,5 +1,5 @@
1
- import { _ as r } from "./FormItem.vue_vue_type_script_setup_true_lang-C4UxWB8-.js";
2
- import { p as t } from "./plugin-DHpk9u10.js";
1
+ import { _ as r } from "./FormItem.vue_vue_type_script_setup_true_lang-CPDhCwT3.js";
2
+ import { p as t } from "./plugin-C4ZwDhqb.js";
3
3
  export {
4
4
  r as FormItem,
5
5
  t as FormItemPlugin
@@ -1,5 +1,5 @@
1
1
  import { defineComponent as x, useSlots as S, inject as b, computed as c, resolveComponent as g, openBlock as o, createElementBlock as n, createElementVNode as m, normalizeClass as i, createBlock as k, unref as e, withCtx as C, renderSlot as v, Fragment as F, renderList as B, toDisplayString as I, createCommentVNode as w } from "vue";
2
- import { F as r } from "./ui-B7g6EoyG.js";
2
+ import { F as r } from "./ui-djKlQTOR.js";
3
3
  const D = { class: "w-full" }, E = {
4
4
  key: 0,
5
5
  class: "float-right"
@@ -1,5 +1,5 @@
1
- import { _ as a } from "./GraphyPrice.vue_vue_type_script_setup_true_lang-CEoy34yZ.js";
2
- import { p as o } from "./plugin-DpjcK3XL.js";
1
+ import { _ as a } from "./GraphyPrice.vue_vue_type_script_setup_true_lang-DWrPfQkl.js";
2
+ import { p as o } from "./plugin-Bl-ieCLY.js";
3
3
  export {
4
4
  a as GraphyPrice,
5
5
  o as GraphyPricePlugin
@@ -1,5 +1,5 @@
1
1
  import { defineComponent as c, reactive as p, watch as l, openBlock as s, createElementBlock as u, normalizeClass as m, unref as r, toDisplayString as v } from "vue";
2
- import { G as e } from "./ui-B7g6EoyG.js";
2
+ import { G as e } from "./ui-djKlQTOR.js";
3
3
  import { g as f } from "./index-CVD_wAsU.js";
4
4
  import { useI18n as y } from "vue-i18n";
5
5
  const _ = /* @__PURE__ */ c({
package/dist/Icon.js CHANGED
@@ -1,5 +1,5 @@
1
- import { _ as n } from "./Icon.vue_vue_type_script_setup_true_lang-Bw9oxUXE.js";
2
- import { p as a } from "./plugin-BoCsGIsZ.js";
1
+ import { _ as n } from "./Icon.vue_vue_type_script_setup_true_lang-Cf60EnJ0.js";
2
+ import { p as a } from "./plugin-DZK7Bkjx.js";
3
3
  export {
4
4
  n as Icon,
5
5
  a as IconPlugin
@@ -1,5 +1,5 @@
1
1
  import { defineComponent as u, ref as p, computed as m, watch as d, openBlock as h, createElementBlock as f, normalizeClass as b, unref as t, normalizeStyle as k } from "vue";
2
- import { E as o } from "./ui-B7g6EoyG.js";
2
+ import { E as o } from "./ui-djKlQTOR.js";
3
3
  const x = (n, i) => {
4
4
  const s = n[i];
5
5
  return s ? typeof s == "function" ? s() : Promise.resolve(s) : new Promise((c, e) => {
@@ -1,5 +1,5 @@
1
- import { _ as t } from "./InputMultiplier.vue_vue_type_script_setup_true_lang-BqLjHOXs.js";
2
- import { p as l } from "./plugin-Bm19fIFW.js";
1
+ import { _ as t } from "./InputMultiplier.vue_vue_type_script_setup_true_lang-hbu4tSBl.js";
2
+ import { p as l } from "./plugin-B6tq39a7.js";
3
3
  export {
4
4
  t as InputMultiplier,
5
5
  l as InputMultiplierPlugin
@@ -1,5 +1,5 @@
1
1
  import { defineComponent as z, ref as b, watch as m, resolveComponent as k, openBlock as n, createElementBlock as s, createVNode as c, Fragment as V, renderList as C, createBlock as I, resolveDynamicComponent as y, mergeProps as R, toHandlers as w } from "vue";
2
- import { F as x } from "./ui-B7g6EoyG.js";
2
+ import { F as x } from "./ui-djKlQTOR.js";
3
3
  const B = /* @__PURE__ */ z({
4
4
  name: "TInputMultiplier",
5
5
  __name: "InputMultiplier",
@@ -1,5 +1,5 @@
1
- import { _ as s } from "./InputPassword.vue_vue_type_script_setup_true_lang-CFGOn6D6.js";
2
- import { p as a } from "./plugin-DTlQ12ia.js";
1
+ import { _ as s } from "./InputPassword.vue_vue_type_script_setup_true_lang-CdDdCkH1.js";
2
+ import { p as a } from "./plugin-kLxDNCij.js";
3
3
  export {
4
4
  s as InputPassword,
5
5
  a as InputPasswordPlugin
@@ -1,6 +1,6 @@
1
1
  import { defineComponent as ee, mergeModels as V, useModel as te, ref as R, watch as le, resolveComponent as j, openBlock as A, createElementBlock as S, Fragment as ne, createElementVNode as z, normalizeClass as B, createVNode as k, unref as U, createCommentVNode as _, withKeys as oe, createBlock as se, toDisplayString as re } from "vue";
2
2
  import { u as ae } from "./useClipboard-BHFD0Jvv.js";
3
- import "./InputText.vue_vue_type_script_setup_true_lang-BSJs5QvW.js";
3
+ import "./InputText.vue_vue_type_script_setup_true_lang-B42_Uupe.js";
4
4
  import { f as ie } from "./format-CNTeOuM7.js";
5
5
  const ue = (o = 18) => {
6
6
  const e = "abcdefghkmnpqrstuvwxyzABCDEFGHKMNPQRSTUVWXYZ23456789", r = "!?@#-+<%$>[]{}";
@@ -1,5 +1,5 @@
1
- import { _ as p } from "./InputSelect.vue_vue_type_script_setup_true_lang-BiqElQMB.js";
2
- import { p as r } from "./plugin-ecfRWrSm.js";
1
+ import { _ as p } from "./InputSelect.vue_vue_type_script_setup_true_lang-C0IG8j5U.js";
2
+ import { p as r } from "./plugin-BgYMFlp9.js";
3
3
  export {
4
4
  p as InputSelect,
5
5
  r as InputSelectPlugin
@@ -1,5 +1,5 @@
1
- import { defineComponent as ie, mergeModels as U, useModel as re, ref as d, computed as I, onBeforeMount as pe, watch as P, resolveComponent as _, openBlock as i, createBlock as E, normalizeClass as S, withCtx as R, createElementVNode as q, unref as f, withDirectives as G, createElementBlock as v, vModelText as ce, createCommentVNode as F, createVNode as H, renderSlot as z, normalizeProps as x, mergeProps as M, Fragment as V, renderList as J, guardReactiveProps as Q, toDisplayString as W, vShow as de, createSlots as fe, createTextVNode as ve, nextTick as me } from "vue";
2
- import { F as c, a as ye } from "./ui-B7g6EoyG.js";
1
+ import { defineComponent as ie, mergeModels as U, useModel as re, ref as d, computed as I, onBeforeMount as ce, watch as P, resolveComponent as _, openBlock as i, createBlock as E, normalizeClass as S, withCtx as R, createElementVNode as q, unref as f, withDirectives as G, createElementBlock as v, vModelText as pe, createCommentVNode as F, createVNode as H, renderSlot as z, normalizeProps as x, mergeProps as M, Fragment as V, renderList as J, guardReactiveProps as Q, toDisplayString as W, vShow as de, createSlots as fe, createTextVNode as ve, nextTick as me } from "vue";
2
+ import { F as p, a as ye } from "./ui-djKlQTOR.js";
3
3
  const he = ["placeholder", "disabled", "readonly"], be = { key: 1 }, we = {
4
4
  key: 0,
5
5
  class: "inline-flex w-full justify-between items-center"
@@ -10,7 +10,7 @@ const he = ["placeholder", "disabled", "readonly"], be = { key: 1 }, we = {
10
10
  name: "TInputSelect",
11
11
  __name: "InputSelect",
12
12
  props: /* @__PURE__ */ U({
13
- size: { default: c.Default },
13
+ size: { default: p.Default },
14
14
  options: { default: () => [] },
15
15
  mapper: { type: Function, default: (m) => ({
16
16
  value: m.id ?? m.uuid,
@@ -36,9 +36,9 @@ const he = ["placeholder", "disabled", "readonly"], be = { key: 1 }, we = {
36
36
  setup(m, { emit: T }) {
37
37
  const l = m;
38
38
  let B = !1, C, j = "";
39
- const L = T, n = re(m, "modelValue"), o = d([]), p = d(""), O = d(null), N = d(), u = d(!1), K = d(null), a = d([]), $ = d(!1), y = d(null), w = I(() => a.value.length > 0), h = I(() => l.isSearchable && u.value), g = I(() => typeof l.resource == "function"), X = (e) => !l.multiple || !n.value || !Array.isArray(n.value) ? !1 : n.value.includes(e.value), Y = (e = n.value) => !(e === void 0 || e === "" || Array.isArray(e) && e.length === 0), Z = (e) => {
39
+ const L = T, s = re(m, "modelValue"), n = d([]), c = d(""), O = d(null), N = d(), u = d(!1), K = d(null), a = d([]), $ = d(!1), y = d(null), w = I(() => a.value.length > 0), h = I(() => l.isSearchable && u.value), g = I(() => typeof l.resource == "function"), X = (e) => !l.multiple || !s.value || !Array.isArray(s.value) ? !1 : s.value.includes(e.value), Y = (e = s.value) => !(e === void 0 || e === "" || Array.isArray(e) && e.length === 0), Z = (e) => {
40
40
  L("update:model-value", e);
41
- }, b = (e = n.value) => {
41
+ }, b = (e = s.value) => {
42
42
  if (Y(e))
43
43
  if (l.multiple)
44
44
  Array.isArray(e) && (a.value = e.map(
@@ -52,7 +52,7 @@ const he = ["placeholder", "disabled", "readonly"], be = { key: 1 }, we = {
52
52
  e.target.nodeName === "svg" && e.stopPropagation(), u.value = !u.value, u.value && h.value && me(() => {
53
53
  O.value?.focus();
54
54
  });
55
- }, A = (e) => o.value.findIndex(
55
+ }, A = (e) => n.value.findIndex(
56
56
  (t) => t.value === e
57
57
  ), D = async (e = !1) => {
58
58
  if (!l.resource)
@@ -60,16 +60,16 @@ const he = ["placeholder", "disabled", "readonly"], be = { key: 1 }, we = {
60
60
  $.value = !0;
61
61
  const t = {
62
62
  ...l.defaultParams,
63
- t: p.value,
63
+ t: c.value,
64
64
  r: "option"
65
65
  };
66
- e && y.value && y.value.pages > y.value.page ? t.page = y.value.page + 1 : e = !1, !p.value && n.value && (t.i = n.value);
66
+ e && y.value && y.value.pages > y.value.page ? t.page = y.value.page + 1 : e = !1, !c.value && s.value && (t.i = s.value);
67
67
  const r = await l.resource(t);
68
- e ? o.value.push(...r.items.map(l.mapper)) : o.value = r.items.map(l.mapper), y.value = r.pagination, !g.value && p.value && b(p.value), $.value = !1;
68
+ e ? n.value.push(...r.items.map(l.mapper)) : n.value = r.items.map(l.mapper), y.value = r.pagination, !g.value && c.value && b(c.value), $.value = !1;
69
69
  }, le = () => {
70
- !p.value || j === p.value || (C && (clearTimeout(C), C = null), C = setTimeout(() => {
71
- j = p.value, g.value ? (u.value || (u.value = !0), D()) : l.isSearchable && (o.value = l.options.filter(
72
- (e) => l.filter(p.value, e)
70
+ !c.value || j === c.value || (C && (clearTimeout(C), C = null), C = setTimeout(() => {
71
+ j = c.value, g.value ? (u.value || (u.value = !0), D()) : l.isSearchable && (n.value = l.options.filter(
72
+ (e) => l.filter(c.value, e)
73
73
  ));
74
74
  }, 500));
75
75
  }, te = ({
@@ -86,7 +86,7 @@ const he = ["placeholder", "disabled", "readonly"], be = { key: 1 }, we = {
86
86
  (!l.multiple || !t) && (u.value = !1);
87
87
  }, ae = () => {
88
88
  g.value && y.value && y.value.pages > y.value.page && D(!0);
89
- }, oe = async (e) => {
89
+ }, ne = async (e) => {
90
90
  switch (e.key) {
91
91
  case "ArrowDown":
92
92
  K.value?.move(e);
@@ -96,32 +96,32 @@ const he = ["placeholder", "disabled", "readonly"], be = { key: 1 }, we = {
96
96
  break;
97
97
  }
98
98
  };
99
- return pe(async () => {
100
- g.value ? (await D(), b(), L("initial-hydration", o.value)) : l.options.length > 0 && (o.value = l.options), !n.value && l.initialValue ? b(l.initialValue) : b(n.value);
99
+ return ce(async () => {
100
+ g.value ? (await D(), b(), L("initial-hydration", n.value)) : l.options.length > 0 && (n.value = l.options), !s.value && l.initialValue ? b(l.initialValue) : b(s.value);
101
101
  }), P(
102
- () => n.value,
102
+ () => s.value,
103
103
  async (e) => {
104
104
  e && (A(e) < 0 && g.value && await D(), b(e));
105
105
  }
106
106
  ), P(
107
107
  a,
108
108
  (e) => {
109
- const t = l.multiple ? o.value.filter(
109
+ const t = l.multiple ? n.value.filter(
110
110
  (r, k) => a.value.includes(k)
111
- ).map((r) => r.value) : o.value[a.value[0]].value;
111
+ ).map((r) => r.value) : n.value[a.value[0]].value;
112
112
  B && (B = !1, Z(t));
113
113
  },
114
114
  { deep: !0 }
115
115
  ), P(
116
116
  () => l.options,
117
117
  (e) => {
118
- e.length > 0 && (o.value = e, n.value && a.value.length === 0 && b(n.value));
118
+ e.length > 0 && (n.value = e, s.value && a.value.length === 0 && b(s.value));
119
119
  }
120
120
  ), (e, t) => {
121
- const r = _("t-tag"), k = _("t-button"), se = _("t-icon"), ne = _("t-dropdown"), ue = _("t-popover");
121
+ const r = _("t-tag"), k = _("t-button"), oe = _("t-icon"), se = _("t-dropdown"), ue = _("t-popover");
122
122
  return i(), E(ue, {
123
123
  open: u.value,
124
- "onUpdate:open": t[1] || (t[1] = (s) => u.value = s),
124
+ "onUpdate:open": t[1] || (t[1] = (o) => u.value = o),
125
125
  placement: l.dropdownPlacement,
126
126
  class: S([l.widthClass]),
127
127
  ref_key: "popoverRef",
@@ -130,17 +130,17 @@ const he = ["placeholder", "disabled", "readonly"], be = { key: 1 }, we = {
130
130
  default: R(() => [
131
131
  q("div", {
132
132
  class: S([{
133
- "h-7": l.size === f(c).Small && !l.multiple,
134
- "h-9": l.size === f(c).Default && !l.multiple,
135
- "h-full *:min-h-7": l.size === f(c).Small && l.multiple,
136
- "h-full *:min-h-9": l.size === f(c).Default && l.multiple,
133
+ "h-7": l.size === f(p).Small && !l.multiple,
134
+ "h-9": l.size === f(p).Default && !l.multiple,
135
+ "h-full *:min-h-7": l.size === f(p).Small && l.multiple,
136
+ "h-full *:min-h-9": l.size === f(p).Default && l.multiple,
137
137
  [l.borderClass]: !0,
138
138
  [l.roundnessClass]: !0
139
139
  }, "flex justify-between items-center w-full max-w-96 input-text-color select-none input-bg-color"])
140
140
  }, [
141
141
  h.value ? G((i(), v("input", {
142
142
  key: 0,
143
- "onUpdate:modelValue": t[0] || (t[0] = (s) => p.value = s),
143
+ "onUpdate:modelValue": t[0] || (t[0] = (o) => c.value = o),
144
144
  type: "text",
145
145
  ref_key: "inputRef",
146
146
  ref: O,
@@ -148,29 +148,30 @@ const he = ["placeholder", "disabled", "readonly"], be = { key: 1 }, we = {
148
148
  disabled: l.disabled,
149
149
  readonly: !l.isSearchable,
150
150
  class: S(["bg-transparent input-padding input-roundness input-outline w-full", {
151
- "h-7 text-sm": l.size === f(c).Small,
152
- "h-9 text-base": l.size === f(c).Default
151
+ "h-7 text-sm": l.size === f(p).Small,
152
+ "h-9 text-base": l.size === f(p).Default
153
153
  }]),
154
154
  onInput: le,
155
- onKeydown: oe
155
+ onKeydown: ne
156
156
  }, null, 42, he)), [
157
- [ce, p.value]
157
+ [pe, c.value]
158
158
  ]) : F("", !0),
159
159
  H(k, {
160
160
  variant: "transparent",
161
161
  size: "",
162
- class: S(["h-full", {
162
+ class: S(["h-full items-center", {
163
163
  "w-full justify-end pr-2": !h.value && !w.value,
164
164
  "w-full justify-between pr-2": !h.value && w.value,
165
165
  "w-10 justify-center": h.value,
166
- "text-sm": l.size === f(c).Small,
167
- "text-base": l.size === f(c).Default
166
+ "text-sm": l.size === f(p).Small,
167
+ "text-base": l.size === f(p).Default
168
168
  }]),
169
+ "inner-alignment": "",
169
170
  "aria-describedby": N.value?.name,
170
171
  icon: u.value === !0 ? "chevron-up" : "chevron-down",
171
172
  "icon-position": h.value ? "left" : "right",
172
173
  "icon-props": {
173
- size: l.size === f(c).Default ? 18 : 15,
174
+ size: l.size === f(p).Default ? 18 : 15,
174
175
  class: "text-(--border-color)"
175
176
  },
176
177
  hover: !1,
@@ -183,14 +184,14 @@ const he = ["placeholder", "disabled", "readonly"], be = { key: 1 }, we = {
183
184
  "flex-wrap gap-2 py-1": l.multiple
184
185
  }])
185
186
  }, [
186
- e.$slots.selection && w.value ? z(e.$slots, "selection", x(M({ key: 0 }, o.value[a.value[0]]))) : e.$slots.default && w.value ? (i(), v(V, { key: 1 }, [
187
- l.multiple ? (i(!0), v(V, { key: 0 }, J(a.value, (s) => z(e.$slots, "default", x(Q(o.value[s])))), 256)) : z(e.$slots, "default", x(M({ key: 1 }, o.value[a.value[0]])))
187
+ e.$slots.selection && w.value ? z(e.$slots, "selection", x(M({ key: 0 }, n.value[a.value[0]]))) : e.$slots.default && w.value ? (i(), v(V, { key: 1 }, [
188
+ l.multiple ? (i(!0), v(V, { key: 0 }, J(a.value, (o) => z(e.$slots, "default", x(Q(n.value[o])))), 256)) : z(e.$slots, "default", x(M({ key: 1 }, n.value[a.value[0]])))
188
189
  ], 64)) : w.value ? (i(), v(V, { key: 2 }, [
189
- l.multiple ? (i(!0), v(V, { key: 0 }, J(a.value, (s) => (i(), E(r, {
190
- key: s,
191
- text: o.value[s]?.label,
190
+ l.multiple ? (i(!0), v(V, { key: 0 }, J(a.value, (o) => (i(), E(r, {
191
+ key: o,
192
+ text: n.value[o]?.label,
192
193
  color: "#6e6e6e"
193
- }, null, 8, ["text"]))), 128)) : (i(), v("span", be, W(o.value[a.value[0]]?.label), 1))
194
+ }, null, 8, ["text"]))), 128)) : (i(), v("span", be, W(n.value[a.value[0]]?.label), 1))
194
195
  ], 64)) : F("", !0)
195
196
  ], 2), [
196
197
  [de, !h.value]
@@ -201,10 +202,10 @@ const he = ["placeholder", "disabled", "readonly"], be = { key: 1 }, we = {
201
202
  ], 2)
202
203
  ]),
203
204
  content: R(() => [
204
- H(ne, {
205
+ H(se, {
205
206
  ref_key: "dropdownRef",
206
207
  ref: K,
207
- items: o.value,
208
+ items: n.value,
208
209
  "is-visible": u.value,
209
210
  multiple: l.multiple,
210
211
  loading: $.value,
@@ -215,19 +216,19 @@ const he = ["placeholder", "disabled", "readonly"], be = { key: 1 }, we = {
215
216
  }, fe({ _: 2 }, [
216
217
  e.$slots.default || l.multiple ? {
217
218
  name: "default",
218
- fn: R((s) => [
219
+ fn: R((o) => [
219
220
  l.multiple ? (i(), v("div", we, [
220
- e.$slots.default ? z(e.$slots, "default", x(M({ key: 0 }, s))) : (i(), v(V, { key: 1 }, [
221
- ve(W(s.label), 1)
221
+ e.$slots.default ? z(e.$slots, "default", x(M({ key: 0 }, o))) : (i(), v(V, { key: 1 }, [
222
+ ve(W(o.label), 1)
222
223
  ], 64)),
223
- X(s) ? (i(), E(se, {
224
+ X(o) ? (i(), E(oe, {
224
225
  key: 2,
225
226
  icon: "check",
226
227
  size: "sm",
227
228
  class: "float-right ml-2"
228
229
  })) : F("", !0)
229
230
  ])) : (i(), v("div", ge, [
230
- z(e.$slots, "default", x(Q(s)))
231
+ z(e.$slots, "default", x(Q(o)))
231
232
  ]))
232
233
  ]),
233
234
  key: "0"