@caipira/tamandua 0.0.17 → 0.0.18
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-Cjz3Vlw9.js +51 -0
- package/dist/Button-BVvZv1Xl.js +6 -0
- package/dist/Button.css +1 -1
- package/dist/Button.js +2 -2
- package/dist/{Button.vue_vue_type_style_index_0_scoped_4208c238_lang-Blwygh_-.js → Button.vue_vue_type_style_index_0_scoped_028abb2a_lang-B8Np_xdG.js} +65 -68
- package/dist/ButtonCopy.js +2 -2
- package/dist/{ButtonCopy.vue_vue_type_script_setup_true_lang-CCdkF36R.js → ButtonCopy.vue_vue_type_script_setup_true_lang-B_Jorqip.js} +12 -11
- package/dist/Form.js +2 -2
- package/dist/{Form.vue_vue_type_script_setup_true_lang-GWUrHIHW.js → Form.vue_vue_type_script_setup_true_lang-hFd1xBcd.js} +1 -1
- package/dist/GraphyPrice.js +2 -2
- package/dist/{GraphyPrice.vue_vue_type_script_setup_true_lang-GY5TUNz8.js → GraphyPrice.vue_vue_type_script_setup_true_lang-BdCwug4U.js} +1 -1
- package/dist/Icon.js +2 -2
- package/dist/{Icon.vue_vue_type_script_setup_true_lang-CqJ-D4BM.js → Icon.vue_vue_type_script_setup_true_lang-CNUyv7CY.js} +18 -18
- package/dist/InputMultiplier.js +2 -2
- package/dist/InputMultiplier.vue_vue_type_script_setup_true_lang-DUKWtKSy.js +83 -0
- package/dist/InputPassword.js +2 -2
- package/dist/{InputPassword.vue_vue_type_script_setup_true_lang-B-x3dFWK.js → InputPassword.vue_vue_type_script_setup_true_lang-D_xGJ0Ci.js} +1 -1
- package/dist/InputSelect.js +2 -2
- package/dist/{InputSelect.vue_vue_type_script_setup_true_lang-B93CKCR3.js → InputSelect.vue_vue_type_script_setup_true_lang-Cc2Knxl7.js} +30 -28
- package/dist/Link.js +2 -2
- package/dist/{Link.vue_vue_type_script_setup_true_lang-BJVsokc1.js → Link.vue_vue_type_script_setup_true_lang-DeBJ2UGi.js} +1 -1
- package/dist/Popconfirm.js +2 -2
- package/dist/{Popconfirm.vue_vue_type_script_setup_true_lang-CGs37-Nn.js → Popconfirm.vue_vue_type_script_setup_true_lang-BNpLdXq7.js} +1 -1
- package/dist/Popover.js +2 -2
- package/dist/{Popover.vue_vue_type_script_setup_true_lang-B1brEdFx.js → Popover.vue_vue_type_script_setup_true_lang-B4Polh2y.js} +1 -1
- package/dist/{Table-grkQ9tby.js → Table-CYnCf_CG.js} +12 -11
- package/dist/Table.css +1 -1
- package/dist/Table.js +2 -2
- package/dist/Tag.js +2 -2
- package/dist/{Tag.vue_vue_type_script_setup_true_lang-BohgPbhp.js → Tag.vue_vue_type_script_setup_true_lang-D-yGH5I5.js} +28 -26
- package/dist/Toast.js +2 -2
- package/dist/{Toast.vue_vue_type_script_setup_true_lang-a5tU5-sA.js → Toast.vue_vue_type_script_setup_true_lang-Dezwl4qF.js} +1 -1
- package/dist/components.js +65 -67
- package/dist/enums.js +1 -1
- package/dist/{plugin-BCt5Fd1Y.js → plugin-BOTI2tkp.js} +1 -1
- package/dist/{plugin-DyiLV5Qf.js → plugin-BOXtmhcZ.js} +1 -1
- package/dist/{plugin-BAUSOmg1.js → plugin-Bp0MadmC.js} +1 -1
- package/dist/{plugin-BkWUeqrs.js → plugin-BriPeDzu.js} +1 -1
- package/dist/{plugin-CX1WsfRO.js → plugin-Bt6de9ZA.js} +1 -1
- package/dist/{plugin-PahpuGjl.js → plugin-CXsVFJPx.js} +1 -1
- package/dist/{plugin-DXEt6BIK.js → plugin-Cg_Ls0OX.js} +1 -1
- package/dist/{plugin-CQQde2zY.js → plugin-CxYhyNRA.js} +1 -1
- package/dist/{plugin-CHQRlAGJ.js → plugin-D2cyoBNg.js} +1 -1
- package/dist/{plugin-2nTovNcx.js → plugin-DBSBNsHg.js} +1 -1
- package/dist/{plugin-DmfiHplR.js → plugin-DK-_BDxt.js} +1 -1
- package/dist/{plugin-D9DcbHK3.js → plugin-Dn96hI0e.js} +1 -1
- package/dist/{plugin-JgFOdNjC.js → plugin-Dp-F27SY.js} +1 -1
- package/dist/{plugin-1JFePZNV.js → plugin-GzMD7Mhm.js} +1 -1
- package/dist/{plugin-C8V0p_Rv.js → plugin-dL6oP11N.js} +1 -1
- package/dist/plugins-DGJaL8lf.js +109 -0
- package/dist/plugins.js +91 -94
- package/dist/tamandua.js +1 -1
- package/dist/types/components/Avatar/Avatar.story.d.ts +1 -1
- package/dist/types/components/Avatar/Avatar.vue.d.ts +2 -2
- package/dist/types/components/Button/Button.story.d.ts +1 -1
- package/dist/types/components/Button/Button.vue.d.ts +7 -5
- package/dist/types/components/Button/types.d.ts +4 -1
- package/dist/types/components/Icon/Icon.story.d.ts +1 -1
- package/dist/types/components/index.d.ts +2 -3
- package/dist/types/components/plugins.d.ts +1 -2
- package/dist/types/enums/ui.d.ts +10 -8
- package/dist/ui-BC6H9E93.js +13 -0
- package/package.json +1 -1
- package/volar.d.ts +0 -1
- package/dist/Avatar.vue_vue_type_script_setup_true_lang-BZy_UetF.js +0 -51
- package/dist/Button-42CN8gSf.js +0 -6
- package/dist/IconButton.js +0 -6
- package/dist/IconButton.vue_vue_type_script_setup_true_lang-CfILJjtd.js +0 -91
- package/dist/InputMultiplier.vue_vue_type_script_setup_true_lang-w2RuSz1R.js +0 -83
- package/dist/plugin-BJT9iz31.js +0 -10
- package/dist/plugins-DVzcsSnU.js +0 -112
- package/dist/types/components/IconButton/IconButton.vue.d.ts +0 -55
- package/dist/types/components/IconButton/index.d.ts +0 -5
- package/dist/types/components/IconButton/plugin.d.ts +0 -4
- package/dist/types/components/IconButton/types.d.ts +0 -17
- package/dist/ui-D3dPdT4S.js +0 -13
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { defineComponent as ue, ref as p, inject as re, computed as $, onBeforeMount as ce, onBeforeUnmount as pe, watch as
|
|
1
|
+
import { defineComponent as ue, ref as p, inject as re, computed as $, onBeforeMount as ce, onBeforeUnmount as pe, watch as D, resolveComponent as b, openBlock as i, createElementBlock as c, normalizeClass as V, unref as M, createElementVNode as de, withKeys as fe, renderSlot as h, normalizeProps as k, mergeProps as I, Fragment as S, renderList as U, guardReactiveProps as H, createBlock as P, toDisplayString as me, createCommentVNode as N, withDirectives as ve, vModelText as ye, createVNode as A, withCtx as q, createSlots as be, nextTick as he } from "vue";
|
|
2
2
|
import { u as ke } from "./useDomHelpers-5CFMo6bx.js";
|
|
3
|
-
import { a as we, E as ge } from "./ui-
|
|
4
|
-
const Ve = { key: 1 },
|
|
3
|
+
import { a as we, E as ge } from "./ui-BC6H9E93.js";
|
|
4
|
+
const Ve = { key: 1 }, Se = ["placeholder", "disabled", "readonly"], _e = {
|
|
5
5
|
key: 0,
|
|
6
6
|
class: "inline-flex w-full justify-between items-center"
|
|
7
7
|
}, xe = {
|
|
@@ -13,10 +13,10 @@ const $e = /* @__PURE__ */ ue({
|
|
|
13
13
|
name: "TInputSelect",
|
|
14
14
|
__name: "InputSelect",
|
|
15
15
|
props: {
|
|
16
|
-
size: { default: we.
|
|
16
|
+
size: { default: we.Default },
|
|
17
17
|
options: { default: () => [] },
|
|
18
18
|
mapper: { type: Function, default: (f) => ({ value: f.id ?? f.uuid, label: f }) },
|
|
19
|
-
filter: { type: Function, default: (f,
|
|
19
|
+
filter: { type: Function, default: (f, _) => _.label.toLowerCase().indexOf(f.toLowerCase()) >= 0 },
|
|
20
20
|
tooltip: { default: "" },
|
|
21
21
|
disabled: { type: Boolean },
|
|
22
22
|
resource: {},
|
|
@@ -29,10 +29,10 @@ const $e = /* @__PURE__ */ ue({
|
|
|
29
29
|
dropdownPlacement: { default: ge.BOTTOM }
|
|
30
30
|
},
|
|
31
31
|
emits: ["update:model-value"],
|
|
32
|
-
setup(f, { emit:
|
|
32
|
+
setup(f, { emit: _ }) {
|
|
33
33
|
const l = f;
|
|
34
34
|
let x = !1, w, T = "";
|
|
35
|
-
const G =
|
|
35
|
+
const G = _, J = `checkbox_${++Ce}`, r = p(""), o = p([]), z = p(null), L = re("formStyle", { label: "", input: "" }), C = p(null), n = p(!1), O = p(null), a = p([]), B = p(!1), { wasClickOutsideOfContainer: Q } = ke(), d = p(null), E = $(() => a.value.length > 0), F = $(() => l.isSearchable && n.value), v = $(() => typeof l.resource == "function"), W = (e) => !l.multiple || !l.modelValue || !Array.isArray(l.modelValue) ? !1 : l.modelValue.includes(e.value), X = (e = l.modelValue) => !(e === void 0 || e === "" || Array.isArray(e) && e.length === 0), Y = (e) => {
|
|
36
36
|
G("update:model-value", e);
|
|
37
37
|
}, m = (e = l.modelValue) => {
|
|
38
38
|
if (X(e))
|
|
@@ -46,7 +46,7 @@ const $e = /* @__PURE__ */ ue({
|
|
|
46
46
|
}
|
|
47
47
|
}, K = (e) => {
|
|
48
48
|
n.value = !n.value, n.value && F.value && he(() => {
|
|
49
|
-
|
|
49
|
+
z.value?.focus();
|
|
50
50
|
}), e.stopPropagation();
|
|
51
51
|
}, R = (e) => o.value.findIndex(
|
|
52
52
|
(t) => t.value === e
|
|
@@ -90,7 +90,7 @@ const $e = /* @__PURE__ */ ue({
|
|
|
90
90
|
}, oe = async (e) => {
|
|
91
91
|
switch (e.key) {
|
|
92
92
|
case "ArrowDown":
|
|
93
|
-
|
|
93
|
+
O.value?.move(e);
|
|
94
94
|
break;
|
|
95
95
|
}
|
|
96
96
|
};
|
|
@@ -98,12 +98,12 @@ const $e = /* @__PURE__ */ ue({
|
|
|
98
98
|
v.value ? (await g(), m()) : l.options.length > 0 && (o.value = l.options), !l.modelValue && l.initialValue ? m(l.initialValue) : m(l.modelValue), document.addEventListener("click", j);
|
|
99
99
|
}), pe(() => {
|
|
100
100
|
document.removeEventListener("click", j);
|
|
101
|
-
}),
|
|
101
|
+
}), D(
|
|
102
102
|
() => l.modelValue,
|
|
103
103
|
async (e) => {
|
|
104
104
|
e && (R(e) < 0 && v.value && await g(), m(e));
|
|
105
105
|
}
|
|
106
|
-
),
|
|
106
|
+
), D(
|
|
107
107
|
a,
|
|
108
108
|
(e) => {
|
|
109
109
|
const t = l.multiple ? o.value.filter(
|
|
@@ -112,15 +112,15 @@ const $e = /* @__PURE__ */ ue({
|
|
|
112
112
|
x && (x = !1, Y(t));
|
|
113
113
|
},
|
|
114
114
|
{ deep: !0 }
|
|
115
|
-
),
|
|
115
|
+
), D(
|
|
116
116
|
() => l.options,
|
|
117
117
|
(e) => {
|
|
118
118
|
e.length > 0 && (o.value = e, l.modelValue && a.value.length === 0 && m(l.modelValue));
|
|
119
119
|
}
|
|
120
120
|
), (e, t) => {
|
|
121
|
-
const u = b("t-tag"), y = b("t-
|
|
121
|
+
const u = b("t-tag"), y = b("t-button"), ne = b("t-icon"), se = b("t-dropdown"), ie = b("t-popover");
|
|
122
122
|
return i(), c("div", {
|
|
123
|
-
class: V({ [M(
|
|
123
|
+
class: V({ [M(L).input]: !l.disableStyle })
|
|
124
124
|
}, [
|
|
125
125
|
de("div", {
|
|
126
126
|
ref_key: "wrapperRef",
|
|
@@ -129,7 +129,7 @@ const $e = /* @__PURE__ */ ue({
|
|
|
129
129
|
"h-9": !l.disableStyle && !l.multiple,
|
|
130
130
|
"min-h-9": !l.disableStyle && l.multiple,
|
|
131
131
|
"text-left select-none input-bg-color input-text-color border input-border input-roundness": !l.disableStyle,
|
|
132
|
-
[M(
|
|
132
|
+
[M(L).input]: !l.disableStyle
|
|
133
133
|
}, "inline-flex justify-between items-center w-full text-left"]),
|
|
134
134
|
role: "button",
|
|
135
135
|
onClick: K,
|
|
@@ -141,7 +141,7 @@ const $e = /* @__PURE__ */ ue({
|
|
|
141
141
|
"onUpdate:modelValue": t[0] || (t[0] = (s) => r.value = s),
|
|
142
142
|
type: "text",
|
|
143
143
|
ref_key: "inputRef",
|
|
144
|
-
ref:
|
|
144
|
+
ref: z,
|
|
145
145
|
placeholder: l.placeholder,
|
|
146
146
|
disabled: l.disabled,
|
|
147
147
|
readonly: !l.isSearchable,
|
|
@@ -149,7 +149,7 @@ const $e = /* @__PURE__ */ ue({
|
|
|
149
149
|
onClick: t[1] || (t[1] = (s) => s.stopPropagation()),
|
|
150
150
|
onInput: Z,
|
|
151
151
|
onKeydown: oe
|
|
152
|
-
}, null, 42,
|
|
152
|
+
}, null, 42, Se)), [
|
|
153
153
|
[ye, r.value]
|
|
154
154
|
]) : (i(), c("div", {
|
|
155
155
|
key: 0,
|
|
@@ -158,31 +158,33 @@ const $e = /* @__PURE__ */ ue({
|
|
|
158
158
|
"flex-wrap gap-2 py-1": l.multiple
|
|
159
159
|
}])
|
|
160
160
|
}, [
|
|
161
|
-
e.$slots.selection && E.value ? h(e.$slots, "selection", k(
|
|
162
|
-
l.multiple ? (i(!0), c(
|
|
163
|
-
], 64)) : E.value ? (i(), c(
|
|
164
|
-
l.multiple ? (i(!0), c(
|
|
161
|
+
e.$slots.selection && E.value ? h(e.$slots, "selection", k(I({ key: 0 }, o.value[a.value[0]].label))) : e.$slots.default && E.value ? (i(), c(S, { key: 1 }, [
|
|
162
|
+
l.multiple ? (i(!0), c(S, { key: 0 }, U(a.value, (s) => h(e.$slots, "default", k(H(o.value[s].label)))), 256)) : h(e.$slots, "default", k(I({ key: 1 }, o.value[a.value[0]].label)))
|
|
163
|
+
], 64)) : E.value ? (i(), c(S, { key: 2 }, [
|
|
164
|
+
l.multiple ? (i(!0), c(S, { key: 0 }, U(a.value, (s) => (i(), P(u, {
|
|
165
165
|
key: s,
|
|
166
166
|
text: o.value[s].label,
|
|
167
167
|
color: "#6e6e6e"
|
|
168
168
|
}, null, 8, ["text"]))), 128)) : (i(), c("span", Ve, me(o.value[a.value[0]]?.label), 1))
|
|
169
169
|
], 64)) : N("", !0)
|
|
170
170
|
], 2)),
|
|
171
|
-
|
|
171
|
+
A(y, {
|
|
172
|
+
variant: "transparent",
|
|
173
|
+
size: "sm",
|
|
172
174
|
"disable-style": !0,
|
|
173
175
|
class: "h-9",
|
|
174
176
|
icon: n.value === !0 ? "chevron-up" : "chevron-down",
|
|
175
177
|
onClick: K
|
|
176
178
|
}, null, 8, ["icon"])
|
|
177
179
|
], 34),
|
|
178
|
-
|
|
180
|
+
A(ie, {
|
|
179
181
|
placement: l.dropdownPlacement,
|
|
180
182
|
"is-visible": n.value
|
|
181
183
|
}, {
|
|
182
184
|
content: q(() => [
|
|
183
|
-
|
|
185
|
+
A(se, {
|
|
184
186
|
ref_key: "dropdownRef",
|
|
185
|
-
ref:
|
|
187
|
+
ref: O,
|
|
186
188
|
owner: J,
|
|
187
189
|
items: o.value,
|
|
188
190
|
"is-visible": n.value,
|
|
@@ -196,13 +198,13 @@ const $e = /* @__PURE__ */ ue({
|
|
|
196
198
|
e.$slots.default || l.multiple ? {
|
|
197
199
|
name: "default",
|
|
198
200
|
fn: q((s) => [
|
|
199
|
-
l.multiple ? (i(), c("div",
|
|
200
|
-
e.$slots.default ? h(e.$slots, "default", k(
|
|
201
|
+
l.multiple ? (i(), c("div", _e, [
|
|
202
|
+
e.$slots.default ? h(e.$slots, "default", k(I({ key: 0 }, s.label))) : (i(), P(u, {
|
|
201
203
|
key: 1,
|
|
202
204
|
text: s.label,
|
|
203
205
|
class: "m-1"
|
|
204
206
|
}, null, 8, ["text"])),
|
|
205
|
-
W(s) ? (i(),
|
|
207
|
+
W(s) ? (i(), P(ne, {
|
|
206
208
|
key: 2,
|
|
207
209
|
icon: "check",
|
|
208
210
|
size: "sm",
|
package/dist/Link.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { _ as i } from "./Link.vue_vue_type_script_setup_true_lang-
|
|
2
|
-
import { p } from "./plugin-
|
|
1
|
+
import { _ as i } from "./Link.vue_vue_type_script_setup_true_lang-DeBJ2UGi.js";
|
|
2
|
+
import { p } from "./plugin-dL6oP11N.js";
|
|
3
3
|
export {
|
|
4
4
|
i as Link,
|
|
5
5
|
p as LinkPlugin
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { defineComponent as s, computed as d, resolveComponent as c, openBlock as o, createBlock as n, resolveDynamicComponent as m, withCtx as u, renderSlot as p, createElementBlock as f, Fragment as _, createTextVNode as k, toDisplayString as y, createCommentVNode as b } from "vue";
|
|
2
|
-
import { L as l } from "./ui-
|
|
2
|
+
import { L as l } from "./ui-BC6H9E93.js";
|
|
3
3
|
const B = /* @__PURE__ */ s({
|
|
4
4
|
name: "TLink",
|
|
5
5
|
__name: "Link",
|
package/dist/Popconfirm.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { _ as p } from "./Popconfirm.vue_vue_type_script_setup_true_lang-
|
|
2
|
-
import { p as m } from "./plugin-
|
|
1
|
+
import { _ as p } from "./Popconfirm.vue_vue_type_script_setup_true_lang-BNpLdXq7.js";
|
|
2
|
+
import { p as m } from "./plugin-Bt6de9ZA.js";
|
|
3
3
|
export {
|
|
4
4
|
p as Popconfirm,
|
|
5
5
|
m as PopconfirmPlugin
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { defineComponent as b, ref as g, resolveComponent as t, openBlock as k, createBlock as y, withCtx as r, createElementVNode as o, createVNode as n, toDisplayString as P, renderSlot as w } from "vue";
|
|
2
|
-
import { E as h } from "./ui-
|
|
2
|
+
import { E as h } from "./ui-BC6H9E93.js";
|
|
3
3
|
const z = { class: "text-sm mb-6 inline-flex items-center" }, B = { class: "color-text" }, E = { class: "flex justify-end gap-2" }, O = /* @__PURE__ */ b({
|
|
4
4
|
name: "TPopconfirm",
|
|
5
5
|
__name: "Popconfirm",
|
package/dist/Popover.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { _ as p } from "./Popover.vue_vue_type_script_setup_true_lang-
|
|
2
|
-
import { p as P } from "./plugin-
|
|
1
|
+
import { _ as p } from "./Popover.vue_vue_type_script_setup_true_lang-B4Polh2y.js";
|
|
2
|
+
import { p as P } from "./plugin-Dp-F27SY.js";
|
|
3
3
|
export {
|
|
4
4
|
p as Popover,
|
|
5
5
|
P as PopoverPlugin
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { defineComponent as tt, useSlots as gt, ref as Ee, onBeforeMount as yt, onMounted as bt, onBeforeUnmount as wt, openBlock as Ae, createElementBlock as ze, createBlock as xt, withCtx as Ot, renderSlot as Ie, createCommentVNode as Xe, normalizeClass as Et, normalizeProps as At, guardReactiveProps as Pt } from "vue";
|
|
2
2
|
import { u as Ct } from "./useDomHelpers-5CFMo6bx.js";
|
|
3
|
-
import { d as Bt, E as Rt } from "./ui-
|
|
3
|
+
import { d as Bt, E as Rt } from "./ui-BC6H9E93.js";
|
|
4
4
|
import { u as kt } from "./useRender-D8PeooXE.js";
|
|
5
5
|
var k = "top", L = "bottom", S = "right", D = "left", Be = "auto", fe = [k, L, S, D], Q = "start", ie = "end", Dt = "clippingParents", rt = "viewport", ne = "popper", $t = "reference", Ye = /* @__PURE__ */ fe.reduce(function(e, t) {
|
|
6
6
|
return e.concat([t + "-" + Q, t + "-" + ie]);
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import './Table.css';
|
|
2
2
|
import { defineComponent as z, useSlots as O, ref as b, reactive as L, computed as w, resolveComponent as S, openBlock as a, createElementBlock as s, createElementVNode as y, unref as g, normalizeClass as d, createCommentVNode as p, createVNode as D, Fragment as h, renderList as x, toDisplayString as B, createBlock as M, renderSlot as E, createTextVNode as F, pushScopeId as P, popScopeId as q } from "vue";
|
|
3
3
|
import { _ as G } from "./_plugin-vue_export-helper-CHgC5LLL.js";
|
|
4
|
-
const J = (
|
|
4
|
+
const J = (f) => (P("data-v-a29223b6"), f = f(), q(), f), Q = { class: "min-w-full relative color-text" }, W = ["onClick"], X = { class: "flex items-center" }, Y = {
|
|
5
5
|
key: 0,
|
|
6
6
|
class: "animate-pulse"
|
|
7
7
|
}, Z = /* @__PURE__ */ J(() => /* @__PURE__ */ y("div", { class: "h-4 bg-gray-100 my-1 mx-2 dark:bg-neutral-800 rounded" }, null, -1)), ee = [
|
|
@@ -24,8 +24,8 @@ const J = (v) => (P("data-v-e24c44aa"), v = v(), q(), v), Q = { class: "min-w-fu
|
|
|
24
24
|
tableDataClass: { default: "px-2 py-2" }
|
|
25
25
|
},
|
|
26
26
|
emits: ["selected", "row-click"],
|
|
27
|
-
setup(
|
|
28
|
-
const e =
|
|
27
|
+
setup(f, { expose: I, emit: T }) {
|
|
28
|
+
const e = f, k = T, _ = O(), u = b(!1), n = b({}), v = b({}), C = b(!1), m = b(!1), i = L({}), R = (t) => {
|
|
29
29
|
t.stopPropagation();
|
|
30
30
|
}, U = w(() => e.columns.length + (e.selectable ? 1 : 0) + (_.details ? 1 : 0) + 1), K = () => {
|
|
31
31
|
let t = 0, r = 0;
|
|
@@ -53,7 +53,7 @@ const J = (v) => (P("data-v-e24c44aa"), v = v(), q(), v), Q = { class: "min-w-fu
|
|
|
53
53
|
clearSelection: A,
|
|
54
54
|
inSelectionMode: C
|
|
55
55
|
}), (t, r) => {
|
|
56
|
-
const c = S("t-input-checkbox"), j = S("t-
|
|
56
|
+
const c = S("t-input-checkbox"), j = S("t-button");
|
|
57
57
|
return a(), s("table", Q, [
|
|
58
58
|
y("thead", null, [
|
|
59
59
|
y("tr", null, [
|
|
@@ -105,11 +105,12 @@ const J = (v) => (P("data-v-e24c44aa"), v = v(), q(), v), Q = { class: "min-w-fu
|
|
|
105
105
|
y("div", X, [
|
|
106
106
|
"hasDetails" in l && l.hasDetails ? (a(), M(j, {
|
|
107
107
|
key: 0,
|
|
108
|
-
modelValue:
|
|
109
|
-
"onUpdate:modelValue": (o) =>
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
108
|
+
modelValue: v.value[l[e.rowKey]],
|
|
109
|
+
"onUpdate:modelValue": (o) => v.value[l[e.rowKey]] = o,
|
|
110
|
+
variant: "transparent",
|
|
111
|
+
size: "",
|
|
112
|
+
icon: v.value[l[e.rowKey]] ? "chevron-down" : "chevron-right",
|
|
113
|
+
onClick: (o) => v.value[l[e.rowKey]] = !v.value[l[e.rowKey]]
|
|
113
114
|
}, null, 8, ["modelValue", "onUpdate:modelValue", "icon", "onClick"])) : p("", !0)
|
|
114
115
|
])
|
|
115
116
|
], 2)) : p("", !0),
|
|
@@ -138,7 +139,7 @@ const J = (v) => (P("data-v-e24c44aa"), v = v(), q(), v), Q = { class: "min-w-fu
|
|
|
138
139
|
], 64)) : p("", !0)
|
|
139
140
|
], 2))), 256))
|
|
140
141
|
], 10, W),
|
|
141
|
-
g(_).details &&
|
|
142
|
+
g(_).details && v.value[l[e.rowKey]] ? (a(), s("tr", te, [
|
|
142
143
|
y("td", { colspan: U.value }, [
|
|
143
144
|
E(t.$slots, "details", { row: l }, void 0, !0)
|
|
144
145
|
], 8, le)
|
|
@@ -148,7 +149,7 @@ const J = (v) => (P("data-v-e24c44aa"), v = v(), q(), v), Q = { class: "min-w-fu
|
|
|
148
149
|
]);
|
|
149
150
|
};
|
|
150
151
|
}
|
|
151
|
-
}), re = /* @__PURE__ */ G(ae, [["__scopeId", "data-v-
|
|
152
|
+
}), re = /* @__PURE__ */ G(ae, [["__scopeId", "data-v-a29223b6"]]);
|
|
152
153
|
export {
|
|
153
154
|
re as T
|
|
154
155
|
};
|
package/dist/Table.css
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
table>thead>tr[data-v-
|
|
1
|
+
table>thead>tr[data-v-a29223b6]{border-top:1px solid var(--border-color)}table th[data-v-a29223b6],table td[data-v-a29223b6]{border-bottom:1px solid var(--border-color)}
|
package/dist/Table.js
CHANGED
package/dist/Tag.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { _ as r } from "./Tag.vue_vue_type_script_setup_true_lang-
|
|
2
|
-
import { p } from "./plugin-
|
|
1
|
+
import { _ as r } from "./Tag.vue_vue_type_script_setup_true_lang-D-yGH5I5.js";
|
|
2
|
+
import { p } from "./plugin-Cg_Ls0OX.js";
|
|
3
3
|
export {
|
|
4
4
|
r as Tag,
|
|
5
5
|
p as TagPlugin
|
|
@@ -1,14 +1,14 @@
|
|
|
1
|
-
import { defineComponent as _, resolveComponent as c, openBlock as o, createElementBlock as n, normalizeStyle as y, normalizeClass as m, createElementVNode as
|
|
2
|
-
import { a as t } from "./ui-
|
|
3
|
-
const
|
|
1
|
+
import { defineComponent as _, resolveComponent as c, openBlock as o, createElementBlock as n, normalizeStyle as y, normalizeClass as m, createElementVNode as g, renderSlot as z, unref as s, toDisplayString as C, createBlock as p, withCtx as k, createVNode as v, createCommentVNode as b } from "vue";
|
|
2
|
+
import { a as t } from "./ui-BC6H9E93.js";
|
|
3
|
+
const h = ["role"], B = { class: "px-2 py-0.5" }, S = {
|
|
4
4
|
key: 0,
|
|
5
5
|
class: "bg-[#0000006b] hover:bg-[#000000a3]"
|
|
6
|
-
},
|
|
6
|
+
}, w = /* @__PURE__ */ _({
|
|
7
7
|
name: "TTag",
|
|
8
8
|
__name: "Tag",
|
|
9
9
|
props: {
|
|
10
10
|
text: { default: "" },
|
|
11
|
-
size: { default: t.
|
|
11
|
+
size: { default: t.Default },
|
|
12
12
|
role: { default: "" },
|
|
13
13
|
color: { default: "" },
|
|
14
14
|
confirmClose: { type: Boolean, default: !1 },
|
|
@@ -16,9 +16,9 @@ const b = ["role"], h = { class: "px-2 py-0.5" }, v = {
|
|
|
16
16
|
},
|
|
17
17
|
emits: ["close"],
|
|
18
18
|
setup(u, { emit: f }) {
|
|
19
|
-
const e = u,
|
|
20
|
-
return (
|
|
21
|
-
const i = c("t-
|
|
19
|
+
const e = u, a = f;
|
|
20
|
+
return (r, l) => {
|
|
21
|
+
const i = c("t-button"), d = c("t-popconfirm");
|
|
22
22
|
return o(), n("div", {
|
|
23
23
|
style: y(`background-color:${e.color}`),
|
|
24
24
|
class: m([{
|
|
@@ -26,45 +26,47 @@ const b = ["role"], h = { class: "px-2 py-0.5" }, v = {
|
|
|
26
26
|
}, "inline-flex items-stretch rounded-sm text-sm text-white w-max select-none"]),
|
|
27
27
|
role: e.role
|
|
28
28
|
}, [
|
|
29
|
-
|
|
30
|
-
|
|
29
|
+
g("div", B, [
|
|
30
|
+
r.$slots.default ? z(r.$slots, "default", { key: 0 }) : (o(), n("span", {
|
|
31
31
|
key: 1,
|
|
32
32
|
class: m({
|
|
33
|
-
"text-xs": e.size === s(t).
|
|
34
|
-
"text-sm": e.size === s(t).
|
|
35
|
-
"text-base": e.size === s(t).
|
|
36
|
-
"text-lg": e.size === s(t).
|
|
37
|
-
"text-xl": e.size === s(t).
|
|
33
|
+
"text-xs": e.size === s(t).ExtraSmall,
|
|
34
|
+
"text-sm": e.size === s(t).Small,
|
|
35
|
+
"text-base": e.size === s(t).Default,
|
|
36
|
+
"text-lg": e.size === s(t).Large,
|
|
37
|
+
"text-xl": e.size === s(t).ExtraLarge
|
|
38
38
|
})
|
|
39
|
-
},
|
|
39
|
+
}, C(e.text), 3))
|
|
40
40
|
]),
|
|
41
|
-
e.hasCloseButton ? (o(), n("div",
|
|
41
|
+
e.hasCloseButton ? (o(), n("div", S, [
|
|
42
42
|
e.confirmClose ? (o(), p(d, {
|
|
43
43
|
key: 0,
|
|
44
44
|
message: "Are you sure you want to remove it?",
|
|
45
45
|
placement: "top",
|
|
46
|
-
onConfirm: l[0] || (l[0] = (x) =>
|
|
46
|
+
onConfirm: l[0] || (l[0] = (x) => a("close"))
|
|
47
47
|
}, {
|
|
48
|
-
default:
|
|
49
|
-
|
|
50
|
-
|
|
48
|
+
default: k(() => [
|
|
49
|
+
v(i, {
|
|
50
|
+
variant: "transparent",
|
|
51
51
|
icon: "close",
|
|
52
|
+
size: "sm",
|
|
52
53
|
class: "px-1.5 h-full"
|
|
53
54
|
})
|
|
54
55
|
]),
|
|
55
56
|
_: 1
|
|
56
57
|
})) : (o(), p(i, {
|
|
57
58
|
key: 1,
|
|
58
|
-
|
|
59
|
+
variant: "transparent",
|
|
59
60
|
icon: "close",
|
|
61
|
+
size: "sm",
|
|
60
62
|
class: "px-1.5 h-full",
|
|
61
|
-
onClick: l[1] || (l[1] = (x) =>
|
|
63
|
+
onClick: l[1] || (l[1] = (x) => a("close"))
|
|
62
64
|
}))
|
|
63
|
-
])) :
|
|
64
|
-
], 14,
|
|
65
|
+
])) : b("", !0)
|
|
66
|
+
], 14, h);
|
|
65
67
|
};
|
|
66
68
|
}
|
|
67
69
|
});
|
|
68
70
|
export {
|
|
69
|
-
|
|
71
|
+
w as _
|
|
70
72
|
};
|
package/dist/Toast.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { _ as r } from "./Toast.vue_vue_type_script_setup_true_lang-
|
|
2
|
-
import { p as t } from "./plugin-
|
|
1
|
+
import { _ as r } from "./Toast.vue_vue_type_script_setup_true_lang-Dezwl4qF.js";
|
|
2
|
+
import { p as t } from "./plugin-Dn96hI0e.js";
|
|
3
3
|
export {
|
|
4
4
|
r as Toast,
|
|
5
5
|
t as ToastPlugin
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { defineComponent as d, resolveComponent as x, openBlock as f, createElementBlock as g, normalizeClass as a, unref as _, createVNode as r, createElementVNode as w, toDisplayString as C } from "vue";
|
|
2
|
-
import { E, T as t } from "./ui-
|
|
2
|
+
import { E, T as t } from "./ui-BC6H9E93.js";
|
|
3
3
|
const N = { class: "whitespace-nowrap overflow-x-hidden overflow-ellipsis max-w-2xl" }, h = /* @__PURE__ */ d({
|
|
4
4
|
name: "TToast",
|
|
5
5
|
__name: "Toast",
|
package/dist/components.js
CHANGED
|
@@ -1,48 +1,47 @@
|
|
|
1
|
-
import { _ as a } from "./Avatar.vue_vue_type_script_setup_true_lang-
|
|
1
|
+
import { _ as a } from "./Avatar.vue_vue_type_script_setup_true_lang-Cjz3Vlw9.js";
|
|
2
2
|
import { _ as p } from "./Backdrop.vue_vue_type_script_setup_true_lang-OaEBTmYK.js";
|
|
3
|
-
import { B as s } from "./Button-
|
|
4
|
-
import { _ as f } from "./ButtonCopy.vue_vue_type_script_setup_true_lang-
|
|
3
|
+
import { B as s } from "./Button-BVvZv1Xl.js";
|
|
4
|
+
import { _ as f } from "./ButtonCopy.vue_vue_type_script_setup_true_lang-B_Jorqip.js";
|
|
5
5
|
import { _ as n } from "./ChartLine.vue_vue_type_style_index_0_lang-DO_gKCe4.js";
|
|
6
6
|
import { _ as u } from "./ChartTreemap.vue_vue_type_script_setup_true_lang-CG5aK3KH.js";
|
|
7
7
|
import { D as l } from "./Drawer-omdZnBPG.js";
|
|
8
|
-
import { _ as
|
|
8
|
+
import { _ as h } from "./Dropdown.vue_vue_type_script_setup_true_lang-DRsd_7yO.js";
|
|
9
9
|
import { _ as T } from "./FileDrop.vue_vue_type_script_setup_true_lang-DJ05bRaU.js";
|
|
10
|
-
import { _ as d } from "./Form.vue_vue_type_script_setup_true_lang-
|
|
10
|
+
import { _ as d } from "./Form.vue_vue_type_script_setup_true_lang-hFd1xBcd.js";
|
|
11
11
|
import { _ as b } from "./FormItem.vue_vue_type_script_setup_true_lang-CV5hpJ8B.js";
|
|
12
|
-
import { _ as
|
|
13
|
-
import { _ as
|
|
14
|
-
import { _ as
|
|
12
|
+
import { _ as G } from "./GraphyEmpty.vue_vue_type_script_setup_true_lang-B-hAjDCw.js";
|
|
13
|
+
import { _ as v } from "./GraphyLabel.vue_vue_type_script_setup_true_lang-dEuzASQp.js";
|
|
14
|
+
import { _ as B } from "./GraphyPrice.vue_vue_type_script_setup_true_lang-BdCwug4U.js";
|
|
15
15
|
import { _ as L } from "./GraphySubtitle.vue_vue_type_script_setup_true_lang-DtAmgZWp.js";
|
|
16
16
|
import { _ as k } from "./GraphyTitle.vue_vue_type_script_setup_true_lang-DXnrZHV2.js";
|
|
17
|
-
import { _ as A } from "./Icon.vue_vue_type_script_setup_true_lang-
|
|
18
|
-
import { _ as R } from "./
|
|
19
|
-
import { _ as q } from "./
|
|
20
|
-
import { _ as H } from "./
|
|
21
|
-
import { _ as K } from "./
|
|
22
|
-
import { _ as O } from "./
|
|
23
|
-
import { _ as U } from "./
|
|
24
|
-
import { _ as W } from "./
|
|
25
|
-
import { _ as Y } from "./
|
|
26
|
-
import { _ as $ } from "./
|
|
27
|
-
import { _ as or } from "./InputRadio.vue_vue_type_script_setup_true_lang-Dqbov2kN.js";
|
|
17
|
+
import { _ as A } from "./Icon.vue_vue_type_script_setup_true_lang-CNUyv7CY.js";
|
|
18
|
+
import { _ as R } from "./InputAvatar.vue_vue_type_script_setup_true_lang-coNpUH5g.js";
|
|
19
|
+
import { _ as q } from "./InputCheckbox.vue_vue_type_script_setup_true_lang-B5zoxg5A.js";
|
|
20
|
+
import { _ as H } from "./InputColor.vue_vue_type_script_setup_true_lang-CZ0o-B7I.js";
|
|
21
|
+
import { _ as K } from "./InputDate.vue_vue_type_script_setup_true_lang-D1H0urIZ.js";
|
|
22
|
+
import { _ as O } from "./InputMultiplier.vue_vue_type_script_setup_true_lang-DUKWtKSy.js";
|
|
23
|
+
import { _ as U } from "./InputPassword.vue_vue_type_script_setup_true_lang-D_xGJ0Ci.js";
|
|
24
|
+
import { _ as W } from "./InputPhone.vue_vue_type_script_setup_true_lang-uNqXphQY.js";
|
|
25
|
+
import { _ as Y } from "./InputPrice.vue_vue_type_script_setup_true_lang-BBi8qKn8.js";
|
|
26
|
+
import { _ as $ } from "./InputRadio.vue_vue_type_script_setup_true_lang-Dqbov2kN.js";
|
|
28
27
|
import "vue";
|
|
29
|
-
import { _ as
|
|
30
|
-
import { _ as
|
|
31
|
-
import { _ as
|
|
32
|
-
import { _ as
|
|
33
|
-
import { _ as
|
|
34
|
-
import { _ as
|
|
35
|
-
import { _ as
|
|
36
|
-
import { _ as
|
|
37
|
-
import { _ as
|
|
38
|
-
import { _ as
|
|
39
|
-
import { P as
|
|
40
|
-
import { P as
|
|
41
|
-
import { _ as
|
|
42
|
-
import { _ as
|
|
43
|
-
import { T as
|
|
44
|
-
import { _ as
|
|
45
|
-
import { _ as
|
|
28
|
+
import { _ as or } from "./InputSelect.vue_vue_type_script_setup_true_lang-Cc2Knxl7.js";
|
|
29
|
+
import { _ as ar } from "./InputSwitch.vue_vue_type_script_setup_true_lang-Dq_U-mFJ.js";
|
|
30
|
+
import { _ as pr } from "./InputText.vue_vue_type_script_setup_true_lang-CkoBmp9p.js";
|
|
31
|
+
import { _ as sr } from "./InputTextarea.vue_vue_type_script_setup_true_lang-IMz1cgV5.js";
|
|
32
|
+
import { _ as fr } from "./Link.vue_vue_type_script_setup_true_lang-DeBJ2UGi.js";
|
|
33
|
+
import { _ as nr } from "./Modal.vue_vue_type_script_setup_true_lang-DLl5shGS.js";
|
|
34
|
+
import { _ as ur } from "./ModalForm.vue_vue_type_script_setup_true_lang-CZBGpJCs.js";
|
|
35
|
+
import { _ as lr } from "./Pagination.vue_vue_type_script_setup_true_lang-PLZQJUd0.js";
|
|
36
|
+
import { _ as hr } from "./Popconfirm.vue_vue_type_script_setup_true_lang-BNpLdXq7.js";
|
|
37
|
+
import { _ as Tr } from "./Popover.vue_vue_type_script_setup_true_lang-B4Polh2y.js";
|
|
38
|
+
import { P as dr } from "./ProgressCircle-BY2eeyGY.js";
|
|
39
|
+
import { P as br } from "./ProgressLine-1ZHGvPsm.js";
|
|
40
|
+
import { _ as Gr } from "./SensitiveInfo.vue_vue_type_script_setup_true_lang-lCdRDxvZ.js";
|
|
41
|
+
import { _ as vr } from "./Tab.vue_vue_type_script_setup_true_lang-VzvYvoqa.js";
|
|
42
|
+
import { T as Br } from "./Table-CYnCf_CG.js";
|
|
43
|
+
import { _ as Lr } from "./Tag.vue_vue_type_script_setup_true_lang-D-yGH5I5.js";
|
|
44
|
+
import { _ as kr } from "./Toast.vue_vue_type_script_setup_true_lang-Dezwl4qF.js";
|
|
46
45
|
export {
|
|
47
46
|
a as Avatar,
|
|
48
47
|
p as Backdrop,
|
|
@@ -51,41 +50,40 @@ export {
|
|
|
51
50
|
n as ChartLine,
|
|
52
51
|
u as ChartTreemap,
|
|
53
52
|
l as Drawer,
|
|
54
|
-
|
|
53
|
+
h as Dropdown,
|
|
55
54
|
T as FileDrop,
|
|
56
55
|
d as Form,
|
|
57
56
|
b as FormItem,
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
57
|
+
G as GraphyEmpty,
|
|
58
|
+
v as GraphyLabel,
|
|
59
|
+
B as GraphyPrice,
|
|
61
60
|
L as GraphySubtitle,
|
|
62
61
|
k as GraphyTitle,
|
|
63
62
|
A as Icon,
|
|
64
|
-
R as
|
|
65
|
-
q as
|
|
66
|
-
H as
|
|
67
|
-
K as
|
|
68
|
-
O as
|
|
69
|
-
U as
|
|
70
|
-
W as
|
|
71
|
-
Y as
|
|
72
|
-
$ as
|
|
73
|
-
or as
|
|
74
|
-
ar as
|
|
75
|
-
pr as
|
|
76
|
-
sr as
|
|
77
|
-
fr as
|
|
78
|
-
nr as
|
|
79
|
-
ur as
|
|
80
|
-
lr as
|
|
81
|
-
|
|
82
|
-
Tr as
|
|
83
|
-
dr as
|
|
84
|
-
br as
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
Lr as
|
|
89
|
-
kr as
|
|
90
|
-
Ar as Toast
|
|
63
|
+
R as InputAvatar,
|
|
64
|
+
q as InputCheckbox,
|
|
65
|
+
H as InputColor,
|
|
66
|
+
K as InputDate,
|
|
67
|
+
O as InputMultiplier,
|
|
68
|
+
U as InputPassword,
|
|
69
|
+
W as InputPhone,
|
|
70
|
+
Y as InputPrice,
|
|
71
|
+
$ as InputRadio,
|
|
72
|
+
or as InputSelect,
|
|
73
|
+
ar as InputSwitch,
|
|
74
|
+
pr as InputText,
|
|
75
|
+
sr as InputTextarea,
|
|
76
|
+
fr as Link,
|
|
77
|
+
nr as Modal,
|
|
78
|
+
ur as ModalForm,
|
|
79
|
+
lr as Pagination,
|
|
80
|
+
hr as Popconfirm,
|
|
81
|
+
Tr as Popover,
|
|
82
|
+
dr as ProgressCircle,
|
|
83
|
+
br as ProgressLine,
|
|
84
|
+
Gr as SensitiveInfo,
|
|
85
|
+
vr as Tab,
|
|
86
|
+
Br as Table,
|
|
87
|
+
Lr as Tag,
|
|
88
|
+
kr as Toast
|
|
91
89
|
};
|
package/dist/enums.js
CHANGED