@caipira/tamandua 0.0.31 → 0.0.32
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/InputCheckbox.js +2 -2
- package/dist/{InputCheckbox.vue_vue_type_script_setup_true_lang-DUczNK1m.js → InputCheckbox.vue_vue_type_script_setup_true_lang-Bh8HA3Ay.js} +8 -8
- package/dist/InputDate.js +2 -2
- package/dist/InputDate.vue_vue_type_script_setup_true_lang-BAgG9zPV.js +188 -0
- package/dist/InputRadio.js +2 -2
- package/dist/{InputRadio.vue_vue_type_script_setup_true_lang-Dqbov2kN.js → InputRadio.vue_vue_type_script_setup_true_lang-Cu7lzDAh.js} +7 -7
- package/dist/Popover.js +2 -2
- package/dist/{Popover.vue_vue_type_script_setup_true_lang-65AAXNvQ.js → Popover.vue_vue_type_script_setup_true_lang-dnL75W40.js} +14 -11
- package/dist/{Table-COkg498M.js → Table-C0Sr_Lfm.js} +2 -2
- package/dist/Table.css +1 -1
- package/dist/Table.js +2 -2
- package/dist/components.js +5 -5
- package/dist/index.css +1 -0
- package/dist/{plugin-VtriDxZB.js → plugin-Bog7k3Qf.js} +1 -1
- package/dist/{plugin-CN6om3My.js → plugin-BtF6kCcf.js} +1 -1
- package/dist/{plugin-B2fe1hFi.js → plugin-CTMcmMdr.js} +1 -1
- package/dist/{plugin--NhgQEQ9.js → plugin-CdJ1wBq2.js} +1 -1
- package/dist/{plugin-B97SpnhW.js → plugin-DLkeyKDM.js} +1 -1
- package/dist/{plugins-ph4w98yE.js → plugins-ChB184ip.js} +7 -7
- package/dist/plugins.js +7 -7
- package/dist/tamandua.js +1 -1
- package/dist/types/components/Popover/Popover.vue.d.ts +9 -0
- package/dist/types/components/Popover/types.d.ts +7 -0
- package/package.json +1 -1
- package/dist/InputDate.vue_vue_type_script_setup_true_lang-D6nd7-IJ.js +0 -188
package/dist/InputCheckbox.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { _ as e } from "./InputCheckbox.vue_vue_type_script_setup_true_lang-
|
|
2
|
-
import { p as t } from "./plugin-
|
|
1
|
+
import { _ as e } from "./InputCheckbox.vue_vue_type_script_setup_true_lang-Bh8HA3Ay.js";
|
|
2
|
+
import { p as t } from "./plugin-DLkeyKDM.js";
|
|
3
3
|
export {
|
|
4
4
|
e as InputCheckbox,
|
|
5
5
|
t as InputCheckboxPlugin
|
|
@@ -10,25 +10,25 @@ const B = ["indeterminate", "id", "disabled"], I = /* @__PURE__ */ p({
|
|
|
10
10
|
},
|
|
11
11
|
emits: ["update:model-value", "input"],
|
|
12
12
|
setup(o, { emit: l }) {
|
|
13
|
-
const
|
|
13
|
+
const a = o, i = l, d = s("id", ""), t = c(!1), r = () => {
|
|
14
14
|
const e = !t.value;
|
|
15
|
-
|
|
15
|
+
i("update:model-value", e), i("input", e);
|
|
16
16
|
};
|
|
17
17
|
return m(
|
|
18
|
-
() =>
|
|
18
|
+
() => a.modelValue,
|
|
19
19
|
(e) => {
|
|
20
|
-
|
|
20
|
+
a.initializeValue && typeof e > "u" && i("update:model-value", !1), t.value = e;
|
|
21
21
|
},
|
|
22
22
|
{ immediate: !0 }
|
|
23
23
|
), (e, n) => f((b(), v("input", h({
|
|
24
24
|
"onUpdate:modelValue": n[0] || (n[0] = (u) => t.value = u)
|
|
25
25
|
}, e.$attrs, {
|
|
26
26
|
type: "checkbox",
|
|
27
|
-
class: "form-checkbox
|
|
28
|
-
indeterminate:
|
|
29
|
-
id: k(
|
|
27
|
+
class: "form-checkbox w-5 h-5 border input-border input-roundness color-caipira-primary-inverted bg-caipira-primary checked:bg-caipira-primary-inverted input-outline",
|
|
28
|
+
indeterminate: a.isIndeterminate,
|
|
29
|
+
id: k(d),
|
|
30
30
|
disabled: e.disabled,
|
|
31
|
-
onInput:
|
|
31
|
+
onInput: r
|
|
32
32
|
}), null, 16, B)), [
|
|
33
33
|
[y, t.value]
|
|
34
34
|
]);
|
package/dist/InputDate.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { _ as a } from "./InputDate.vue_vue_type_script_setup_true_lang-
|
|
2
|
-
import { p as o } from "./plugin-
|
|
1
|
+
import { _ as a } from "./InputDate.vue_vue_type_script_setup_true_lang-BAgG9zPV.js";
|
|
2
|
+
import { p as o } from "./plugin-BtF6kCcf.js";
|
|
3
3
|
export {
|
|
4
4
|
a as InputDate,
|
|
5
5
|
o as InputDatePlugin
|
|
@@ -0,0 +1,188 @@
|
|
|
1
|
+
import { defineComponent as J, ref as x, watch as S, computed as Y, onBeforeMount as Q, resolveComponent as B, openBlock as v, createBlock as X, withCtx as I, createElementVNode as a, withKeys as K, toDisplayString as M, unref as Z, createElementBlock as m, Fragment as $, renderList as F, normalizeClass as T, createVNode as N } from "vue";
|
|
2
|
+
import { f as j } from "./index-CjvqeRf7.js";
|
|
3
|
+
import { g as A, s as D, a as ee, b as E, c as te } from "./index-CuyePt3m.js";
|
|
4
|
+
const oe = ["value"], le = {
|
|
5
|
+
class: "p-4 select-none floatable input-roundness",
|
|
6
|
+
style: { width: "17rem" }
|
|
7
|
+
}, ne = { class: "flex justify-between items-center mb-2" }, ae = { class: "text-lg font-bold" }, se = ["value", "selected"], re = ["disabled"], ue = ["disabled"], ie = { class: "flex flex-wrap mb-3 -mx-1" }, de = { class: "font-medium text-center text-xs" }, ce = { class: "flex flex-wrap -mx-1" }, ve = ["onClick"], k = !0, he = /* @__PURE__ */ J({
|
|
8
|
+
name: "TInputDate",
|
|
9
|
+
__name: "InputDate",
|
|
10
|
+
props: {
|
|
11
|
+
value: {},
|
|
12
|
+
modelValue: {},
|
|
13
|
+
initialValue: {}
|
|
14
|
+
},
|
|
15
|
+
emits: ["update:model-value"],
|
|
16
|
+
setup(L, { emit: O }) {
|
|
17
|
+
const V = O, u = x(!1), s = L, f = /* @__PURE__ */ new Date(), P = ["Sun", "Mon", "Tue", "Wed", "Thu", "Fri", "Sat"], e = x(/* @__PURE__ */ new Date()), r = x(e.value.getFullYear()), p = x(e.value.getMonth());
|
|
18
|
+
S(
|
|
19
|
+
() => e.value,
|
|
20
|
+
(o) => {
|
|
21
|
+
p.value = o.getMonth(), r.value = o.getFullYear();
|
|
22
|
+
},
|
|
23
|
+
{ immediate: !0 }
|
|
24
|
+
);
|
|
25
|
+
let h, y, g;
|
|
26
|
+
S(
|
|
27
|
+
() => s.modelValue,
|
|
28
|
+
() => {
|
|
29
|
+
if (s.modelValue)
|
|
30
|
+
switch (typeof s.modelValue) {
|
|
31
|
+
case "string":
|
|
32
|
+
const o = new Date(s.modelValue);
|
|
33
|
+
o && V("update:model-value", o);
|
|
34
|
+
break;
|
|
35
|
+
case "object":
|
|
36
|
+
e.value = s.modelValue, h = e.value.getDate(), y = e.value.getFullYear(), g = e.value.getMonth();
|
|
37
|
+
break;
|
|
38
|
+
}
|
|
39
|
+
},
|
|
40
|
+
{ immediate: !0 }
|
|
41
|
+
);
|
|
42
|
+
const W = Y(() => {
|
|
43
|
+
if (!s.modelValue)
|
|
44
|
+
return "";
|
|
45
|
+
const o = typeof s.modelValue == "string" ? new Date(s.modelValue) : s.modelValue;
|
|
46
|
+
return j(o, "yyyy-MM-dd");
|
|
47
|
+
}), z = Y(() => {
|
|
48
|
+
const o = f.getFullYear();
|
|
49
|
+
return Array.from({ length: 49 }, (n, i) => o - 1 - i).reverse().concat(Array.from({ length: 51 }, (n, i) => o + i));
|
|
50
|
+
}), G = (o) => e.value = ee(
|
|
51
|
+
e.value,
|
|
52
|
+
o?.target?.value
|
|
53
|
+
), R = (o) => {
|
|
54
|
+
o.overflow && (e.value = o.overflow > 0 ? E(e.value, o.overflow) : D(e.value, ~o.overflow + 1)), e.value = te(e.value, o.day), V("update:model-value", e.value), u.value = !1;
|
|
55
|
+
}, U = () => {
|
|
56
|
+
e.value = D(e.value, 1);
|
|
57
|
+
}, q = () => {
|
|
58
|
+
e.value = E(e.value, 1);
|
|
59
|
+
}, H = Y(() => {
|
|
60
|
+
const n = [], i = new Date(r.value, p.value).getDay(), b = A(D(e.value, 1)), t = A(e.value), _ = f.getDate(), C = f.getFullYear(), c = f.getMonth();
|
|
61
|
+
let w = 1, d = p.value - 1;
|
|
62
|
+
for (let l = b - (i - 1); l <= b; l++)
|
|
63
|
+
n.push({
|
|
64
|
+
key: `${l}-${c - 1}`,
|
|
65
|
+
day: l,
|
|
66
|
+
isToday: _ === l && c === d && C === r.value,
|
|
67
|
+
selected: h === l && g === d && y === r.value,
|
|
68
|
+
overflow: -1
|
|
69
|
+
}), w++;
|
|
70
|
+
d = p.value;
|
|
71
|
+
for (let l = 1; l <= t; l++)
|
|
72
|
+
n.push({
|
|
73
|
+
key: `${l}-${c}`,
|
|
74
|
+
day: l,
|
|
75
|
+
isToday: _ === l && c === d && C === r.value,
|
|
76
|
+
selected: h === l && g === d && y === r.value,
|
|
77
|
+
overflow: 0
|
|
78
|
+
}), w++;
|
|
79
|
+
d = p.value + 1;
|
|
80
|
+
for (let l = 1; w <= 42; l++)
|
|
81
|
+
n.push({
|
|
82
|
+
key: `${l}-${c + 1}`,
|
|
83
|
+
day: l,
|
|
84
|
+
isToday: _ === l && c === d && C === r.value,
|
|
85
|
+
selected: h === l && g === d && y === r.value,
|
|
86
|
+
overflow: 1
|
|
87
|
+
}), w++;
|
|
88
|
+
return n;
|
|
89
|
+
});
|
|
90
|
+
return Q(() => {
|
|
91
|
+
!s.modelValue && s.initialValue && V("update:model-value", s.initialValue);
|
|
92
|
+
}), (o, n) => {
|
|
93
|
+
const i = B("t-icon"), b = B("t-popover");
|
|
94
|
+
return v(), X(b, {
|
|
95
|
+
open: u.value,
|
|
96
|
+
"onUpdate:open": n[3] || (n[3] = (t) => u.value = t),
|
|
97
|
+
placement: "bottom-start",
|
|
98
|
+
class: "w-full",
|
|
99
|
+
width: "static",
|
|
100
|
+
ref: "popoverRef"
|
|
101
|
+
}, {
|
|
102
|
+
default: I(() => [
|
|
103
|
+
a("input", {
|
|
104
|
+
type: "text",
|
|
105
|
+
readonly: "",
|
|
106
|
+
value: W.value,
|
|
107
|
+
class: "w-full pl-2 pr-10 py-2 leading-none input-bg-color input-text-color border input-border input-roundness input-outline",
|
|
108
|
+
placeholder: "Select date",
|
|
109
|
+
onKeydown: n[0] || (n[0] = K((t) => u.value = !1, ["escape"])),
|
|
110
|
+
onKeyup: n[1] || (n[1] = K((t) => u.value = !u.value, ["space", "enter"])),
|
|
111
|
+
onClick: n[2] || (n[2] = (t) => u.value = !u.value)
|
|
112
|
+
}, null, 40, oe)
|
|
113
|
+
]),
|
|
114
|
+
content: I(() => [
|
|
115
|
+
a("div", le, [
|
|
116
|
+
a("div", ne, [
|
|
117
|
+
a("div", null, [
|
|
118
|
+
a("span", ae, M(Z(j)(e.value, "MMMM")), 1),
|
|
119
|
+
a("select", {
|
|
120
|
+
class: "ml-2 text-lg input-bg-color border input-border input-outline",
|
|
121
|
+
onChange: G
|
|
122
|
+
}, [
|
|
123
|
+
(v(!0), m($, null, F(z.value, (t) => (v(), m("option", {
|
|
124
|
+
key: t,
|
|
125
|
+
value: t,
|
|
126
|
+
selected: t === r.value
|
|
127
|
+
}, M(t), 9, se))), 128))
|
|
128
|
+
], 32)
|
|
129
|
+
]),
|
|
130
|
+
a("div", null, [
|
|
131
|
+
a("button", {
|
|
132
|
+
type: "button",
|
|
133
|
+
class: T(["transition ease-in-out duration-100 inline-flex cursor-pointer hover:bg-hover p-1 rounded-full", {
|
|
134
|
+
"cursor-not-allowed opacity-25": !k
|
|
135
|
+
}]),
|
|
136
|
+
disabled: !k,
|
|
137
|
+
onClick: U
|
|
138
|
+
}, [
|
|
139
|
+
N(i, { icon: "chevron-left" })
|
|
140
|
+
], 10, re),
|
|
141
|
+
a("button", {
|
|
142
|
+
type: "button",
|
|
143
|
+
class: T(["transition ease-in-out duration-100 inline-flex cursor-pointer p-1 rounded-full hover:bg-hover", {
|
|
144
|
+
"cursor-not-allowed opacity-25": !k
|
|
145
|
+
}]),
|
|
146
|
+
disabled: !k,
|
|
147
|
+
onClick: q
|
|
148
|
+
}, [
|
|
149
|
+
N(i, { icon: "chevron-right" })
|
|
150
|
+
], 10, ue)
|
|
151
|
+
])
|
|
152
|
+
]),
|
|
153
|
+
a("div", ie, [
|
|
154
|
+
(v(), m($, null, F(P, (t) => a("div", {
|
|
155
|
+
key: t,
|
|
156
|
+
style: { width: "14.26%" },
|
|
157
|
+
class: "px-1"
|
|
158
|
+
}, [
|
|
159
|
+
a("div", de, M(t), 1)
|
|
160
|
+
])), 64))
|
|
161
|
+
]),
|
|
162
|
+
a("div", ce, [
|
|
163
|
+
(v(!0), m($, null, F(H.value, (t) => (v(), m("div", {
|
|
164
|
+
key: t.key,
|
|
165
|
+
style: { width: "14.28%" },
|
|
166
|
+
class: "px-1 mb-1"
|
|
167
|
+
}, [
|
|
168
|
+
a("div", {
|
|
169
|
+
onClick: (_) => R(t),
|
|
170
|
+
class: T(["cursor-pointer text-center text-sm rounded leading-loose transition ease-in-out duration-100", {
|
|
171
|
+
"hover:bg-hover": !t.selected,
|
|
172
|
+
"color-unfocused-text": t.overflow !== 0,
|
|
173
|
+
"border border-caipira-primary-inverted": t.isToday,
|
|
174
|
+
"color-caipira-primary bg-caipira-primary-inverted": t.selected
|
|
175
|
+
}])
|
|
176
|
+
}, M(t.day), 11, ve)
|
|
177
|
+
]))), 128))
|
|
178
|
+
])
|
|
179
|
+
])
|
|
180
|
+
]),
|
|
181
|
+
_: 1
|
|
182
|
+
}, 8, ["open"]);
|
|
183
|
+
};
|
|
184
|
+
}
|
|
185
|
+
});
|
|
186
|
+
export {
|
|
187
|
+
he as _
|
|
188
|
+
};
|
package/dist/InputRadio.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { _ as a } from "./InputRadio.vue_vue_type_script_setup_true_lang-
|
|
2
|
-
import { p as t } from "./plugin-
|
|
1
|
+
import { _ as a } from "./InputRadio.vue_vue_type_script_setup_true_lang-Cu7lzDAh.js";
|
|
2
|
+
import { p as t } from "./plugin-Bog7k3Qf.js";
|
|
3
3
|
export {
|
|
4
4
|
a as InputRadio,
|
|
5
5
|
t as InputRadioPlugin
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { defineComponent as m, inject as e, openBlock as u, createElementBlock as b, createElementVNode as o, unref as r, toDisplayString as v } from "vue";
|
|
2
2
|
const h = { class: "h-9 inline-flex items-center" }, f = ["value", "name", "disabled", "checked"];
|
|
3
3
|
let _ = 0;
|
|
4
|
-
const
|
|
4
|
+
const g = /* @__PURE__ */ m({
|
|
5
5
|
name: "TInputRadio",
|
|
6
6
|
__name: "InputRadio",
|
|
7
7
|
props: {
|
|
@@ -10,25 +10,25 @@ const k = /* @__PURE__ */ m({
|
|
|
10
10
|
},
|
|
11
11
|
setup(t) {
|
|
12
12
|
const i = `radio_${++_}`, c = e("name", ""), a = t, l = e("model", ""), d = e("change", () => {
|
|
13
|
-
}),
|
|
14
|
-
return (
|
|
13
|
+
}), s = e("disabled", !1);
|
|
14
|
+
return (p, n) => (u(), b("div", h, [
|
|
15
15
|
o("input", {
|
|
16
16
|
value: a.value,
|
|
17
17
|
name: r(c),
|
|
18
18
|
id: i,
|
|
19
|
-
disabled: r(
|
|
19
|
+
disabled: r(s),
|
|
20
20
|
checked: a.value === r(l),
|
|
21
21
|
type: "radio",
|
|
22
|
-
class: "form-radio
|
|
22
|
+
class: "form-radio w-5 h-5 border border-caipira-primary-inverted checked:hover:border-caipira-primary-inverted checked:focus:border-caipira-primary-inverted checked:border-caipira-primary-inverted input-outline focus:input-outline bg-caipira-primary color-caipira-primary",
|
|
23
23
|
onChange: n[0] || (n[0] = (y) => r(d)(a.value))
|
|
24
24
|
}, null, 40, f),
|
|
25
25
|
o("label", {
|
|
26
26
|
class: "cursor-pointer pl-2 mr-3 input-label",
|
|
27
27
|
for: i
|
|
28
|
-
}, v(
|
|
28
|
+
}, v(p.label), 1)
|
|
29
29
|
]));
|
|
30
30
|
}
|
|
31
31
|
});
|
|
32
32
|
export {
|
|
33
|
-
|
|
33
|
+
g as _
|
|
34
34
|
};
|
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-dnL75W40.js";
|
|
2
|
+
import { p as P } from "./plugin-CdJ1wBq2.js";
|
|
3
3
|
export {
|
|
4
4
|
p as Popover,
|
|
5
5
|
P as PopoverPlugin
|
|
@@ -20,13 +20,13 @@ function tt(t) {
|
|
|
20
20
|
function yt(t) {
|
|
21
21
|
return t === "x" ? "y" : "x";
|
|
22
22
|
}
|
|
23
|
-
function
|
|
23
|
+
function zt(t) {
|
|
24
24
|
return t === "y" ? "height" : "width";
|
|
25
25
|
}
|
|
26
26
|
function X(t) {
|
|
27
27
|
return ["top", "bottom"].includes(j(t)) ? "y" : "x";
|
|
28
28
|
}
|
|
29
|
-
function
|
|
29
|
+
function Ht(t) {
|
|
30
30
|
return yt(X(t));
|
|
31
31
|
}
|
|
32
32
|
function It(t) {
|
|
@@ -69,7 +69,7 @@ function dt(t, e, n) {
|
|
|
69
69
|
reference: o,
|
|
70
70
|
floating: i
|
|
71
71
|
} = t;
|
|
72
|
-
const l = X(e), r =
|
|
72
|
+
const l = X(e), r = Ht(e), c = zt(r), s = j(e), a = l === "y", f = o.x + o.width / 2 - i.width / 2, d = o.y + o.height / 2 - i.height / 2, h = o[c] / 2 - i[c] / 2;
|
|
73
73
|
let u;
|
|
74
74
|
switch (s) {
|
|
75
75
|
case "top":
|
|
@@ -350,8 +350,8 @@ const Ut = function(t) {
|
|
|
350
350
|
v = f || w ? N(y, R) : R;
|
|
351
351
|
}
|
|
352
352
|
if (w && !f) {
|
|
353
|
-
const R = E(s.left, 0), x = E(s.right, 0),
|
|
354
|
-
d ? C = h - 2 * (R !== 0 || x !== 0 ? R + x : E(s.left, s.right)) : v = u - 2 * (
|
|
353
|
+
const R = E(s.left, 0), x = E(s.right, 0), z = E(s.top, 0), H = E(s.bottom, 0);
|
|
354
|
+
d ? C = h - 2 * (R !== 0 || x !== 0 ? R + x : E(s.left, s.right)) : v = u - 2 * (z !== 0 || H !== 0 ? z + H : E(s.top, s.bottom));
|
|
355
355
|
}
|
|
356
356
|
await r({
|
|
357
357
|
...e,
|
|
@@ -862,17 +862,17 @@ function xe(t, e, n) {
|
|
|
862
862
|
};
|
|
863
863
|
if (!f.value)
|
|
864
864
|
return x;
|
|
865
|
-
const
|
|
865
|
+
const z = wt(f.value, d.value), H = wt(f.value, h.value);
|
|
866
866
|
return s.value ? {
|
|
867
867
|
...x,
|
|
868
|
-
transform: "translate(" +
|
|
868
|
+
transform: "translate(" + z + "px, " + H + "px)",
|
|
869
869
|
...At(f.value) >= 1.5 && {
|
|
870
870
|
willChange: "transform"
|
|
871
871
|
}
|
|
872
872
|
} : {
|
|
873
873
|
position: u.value,
|
|
874
|
-
left:
|
|
875
|
-
top:
|
|
874
|
+
left: z + "px",
|
|
875
|
+
top: H + "px"
|
|
876
876
|
};
|
|
877
877
|
});
|
|
878
878
|
let w;
|
|
@@ -926,7 +926,8 @@ const Oe = /* @__PURE__ */ Dt({
|
|
|
926
926
|
trigger: { default: Nt.CLICK },
|
|
927
927
|
disabled: { type: Boolean, default: !1 },
|
|
928
928
|
placement: { default: $t.BOTTOM },
|
|
929
|
-
slotWrapperClasses: { default: "rounded-lg" }
|
|
929
|
+
slotWrapperClasses: { default: "rounded-lg" },
|
|
930
|
+
width: { default: "auto" }
|
|
930
931
|
}, {
|
|
931
932
|
open: { type: Boolean, default: !1 },
|
|
932
933
|
openModifiers: {}
|
|
@@ -939,6 +940,8 @@ const Oe = /* @__PURE__ */ Dt({
|
|
|
939
940
|
pe(1),
|
|
940
941
|
we({
|
|
941
942
|
apply({ elements: m }) {
|
|
943
|
+
if (o.width === "static")
|
|
944
|
+
return;
|
|
942
945
|
const p = m.reference.getBoundingClientRect();
|
|
943
946
|
Object.assign(m.floating.style, {
|
|
944
947
|
minWidth: `${p.width}px`
|
|
@@ -970,7 +973,7 @@ const Oe = /* @__PURE__ */ Dt({
|
|
|
970
973
|
role: "tooltip",
|
|
971
974
|
id: i,
|
|
972
975
|
style: Pt(F(d)),
|
|
973
|
-
class: Vt(["bg-caipira-primary", {
|
|
976
|
+
class: Vt(["bg-caipira-primary z-10", {
|
|
974
977
|
[o.slotWrapperClasses]: !0
|
|
975
978
|
}])
|
|
976
979
|
}, [
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import './Table.css';
|
|
2
2
|
import { defineComponent as M, useSlots as O, ref as k, reactive as F, computed as x, resolveComponent as K, openBlock as a, createElementBlock as s, createElementVNode as m, normalizeClass as p, createCommentVNode as c, createVNode as E, Fragment as h, renderList as V, toDisplayString as T, createBlock as b, renderSlot as $, createTextVNode as P } from "vue";
|
|
3
3
|
import { _ as q } from "./_plugin-vue_export-helper-CHgC5LLL.js";
|
|
4
|
-
const G = { class: "
|
|
4
|
+
const G = { class: "w-full color-text" }, J = ["onClick"], Q = {
|
|
5
5
|
key: 0,
|
|
6
6
|
class: "text-left w-10 h-0"
|
|
7
7
|
}, W = {
|
|
@@ -171,7 +171,7 @@ const G = { class: "min-w-full relative color-text" }, J = ["onClick"], Q = {
|
|
|
171
171
|
]);
|
|
172
172
|
};
|
|
173
173
|
}
|
|
174
|
-
}), ae = /* @__PURE__ */ q(Z, [["__scopeId", "data-v-
|
|
174
|
+
}), ae = /* @__PURE__ */ q(Z, [["__scopeId", "data-v-9a21839d"]]);
|
|
175
175
|
export {
|
|
176
176
|
ae as T
|
|
177
177
|
};
|
package/dist/Table.css
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
table>thead>tr[data-v-
|
|
1
|
+
table>thead>tr[data-v-9a21839d]{border-top:1px solid var(--border-color)}table th[data-v-9a21839d],table td[data-v-9a21839d]{border-bottom:1px solid var(--border-color)}
|
package/dist/Table.js
CHANGED
package/dist/components.js
CHANGED
|
@@ -15,14 +15,14 @@ import { _ as v } from "./GraphySubtitle.vue_vue_type_script_setup_true_lang-DtA
|
|
|
15
15
|
import { _ as F } from "./GraphyTitle.vue_vue_type_script_setup_true_lang-DXnrZHV2.js";
|
|
16
16
|
import { _ as B } from "./Icon.vue_vue_type_script_setup_true_lang-DXUyEtqW.js";
|
|
17
17
|
import { _ as A } from "./InputAvatar.vue_vue_type_script_setup_true_lang-coNpUH5g.js";
|
|
18
|
-
import { _ as R } from "./InputCheckbox.vue_vue_type_script_setup_true_lang-
|
|
18
|
+
import { _ as R } from "./InputCheckbox.vue_vue_type_script_setup_true_lang-Bh8HA3Ay.js";
|
|
19
19
|
import { _ as q } from "./InputColor.vue_vue_type_script_setup_true_lang-DT-MAgI2.js";
|
|
20
|
-
import { _ as H } from "./InputDate.vue_vue_type_script_setup_true_lang-
|
|
20
|
+
import { _ as H } from "./InputDate.vue_vue_type_script_setup_true_lang-BAgG9zPV.js";
|
|
21
21
|
import { _ as K } from "./InputMultiplier.vue_vue_type_script_setup_true_lang-BJJQTQzF.js";
|
|
22
22
|
import { _ as O } from "./InputPassword.vue_vue_type_script_setup_true_lang-Do7d1Qfe.js";
|
|
23
23
|
import { _ as U } from "./InputPhone.vue_vue_type_script_setup_true_lang-B4TULqLW.js";
|
|
24
24
|
import { _ as W } from "./InputPrice.vue_vue_type_script_setup_true_lang-BX4rsYIr.js";
|
|
25
|
-
import { _ as Y } from "./InputRadio.vue_vue_type_script_setup_true_lang-
|
|
25
|
+
import { _ as Y } from "./InputRadio.vue_vue_type_script_setup_true_lang-Cu7lzDAh.js";
|
|
26
26
|
import "vue";
|
|
27
27
|
import { _ as $ } from "./InputSelect.vue_vue_type_script_setup_true_lang-BlA3DIYZ.js";
|
|
28
28
|
import { _ as or } from "./InputSwitch.vue_vue_type_script_setup_true_lang-Dq_U-mFJ.js";
|
|
@@ -33,13 +33,13 @@ import { _ as fr } from "./Modal.vue_vue_type_script_setup_true_lang-DLl5shGS.js
|
|
|
33
33
|
import { _ as nr } from "./ModalForm.vue_vue_type_script_setup_true_lang-BSEORivR.js";
|
|
34
34
|
import { _ as ur } from "./Pagination.vue_vue_type_script_setup_true_lang-PLZQJUd0.js";
|
|
35
35
|
import { _ as lr } from "./Popconfirm.vue_vue_type_script_setup_true_lang-XyjBUx0p.js";
|
|
36
|
-
import { _ as hr } from "./Popover.vue_vue_type_script_setup_true_lang-
|
|
36
|
+
import { _ as hr } from "./Popover.vue_vue_type_script_setup_true_lang-dnL75W40.js";
|
|
37
37
|
import { P as Tr } from "./ProgressCircle-BY2eeyGY.js";
|
|
38
38
|
import { P as yr } from "./ProgressLine-CY6aDj-H.js";
|
|
39
39
|
import { _ as Cr } from "./SensitiveInfo.vue_vue_type_script_setup_true_lang-lCdRDxvZ.js";
|
|
40
40
|
import { _ as Gr } from "./Skeleton.vue_vue_type_script_setup_true_lang-BZItfVoN.js";
|
|
41
41
|
import { _ as gr } from "./Tab.vue_vue_type_script_setup_true_lang-VzvYvoqa.js";
|
|
42
|
-
import { T as vr } from "./Table-
|
|
42
|
+
import { T as vr } from "./Table-C0Sr_Lfm.js";
|
|
43
43
|
import { _ as Fr } from "./Tag.vue_vue_type_script_setup_true_lang-CgX-nT8V.js";
|
|
44
44
|
import { _ as Br } from "./Toast.vue_vue_type_script_setup_true_lang-Dezwl4qF.js";
|
|
45
45
|
export {
|
package/dist/index.css
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { r as l } from "./register-component-B-fdqewb.js";
|
|
2
|
-
import { _ as d } from "./InputRadio.vue_vue_type_script_setup_true_lang-
|
|
2
|
+
import { _ as d } from "./InputRadio.vue_vue_type_script_setup_true_lang-Cu7lzDAh.js";
|
|
3
3
|
import { defineComponent as s, onBeforeMount as u, provide as a, computed as p, renderSlot as c } from "vue";
|
|
4
4
|
const f = /* @__PURE__ */ s({
|
|
5
5
|
name: "TInputRadioGroup",
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { r } from "./register-component-B-fdqewb.js";
|
|
2
|
-
import { _ as s } from "./InputCheckbox.vue_vue_type_script_setup_true_lang-
|
|
2
|
+
import { _ as s } from "./InputCheckbox.vue_vue_type_script_setup_true_lang-Bh8HA3Ay.js";
|
|
3
3
|
const m = {
|
|
4
4
|
install(o) {
|
|
5
5
|
r(o, s);
|
|
@@ -24,14 +24,14 @@ import { p as e } from "./plugin-DOeDaXWj.js";
|
|
|
24
24
|
import "./Icon.vue_vue_type_script_setup_true_lang-DXUyEtqW.js";
|
|
25
25
|
import { p as $ } from "./plugin-Dk3KBChD.js";
|
|
26
26
|
import { p as I } from "./plugin--F5QK2vy.js";
|
|
27
|
-
import { p as c } from "./plugin-
|
|
27
|
+
import { p as c } from "./plugin-DLkeyKDM.js";
|
|
28
28
|
import { p as h } from "./plugin-D9KHvOM3.js";
|
|
29
|
-
import { p as b } from "./plugin-
|
|
29
|
+
import { p as b } from "./plugin-BtF6kCcf.js";
|
|
30
30
|
import { p as d } from "./plugin-U6NcpOUL.js";
|
|
31
31
|
import { p as y } from "./plugin-DOiXH9p9.js";
|
|
32
32
|
import { p as T } from "./plugin-CrHDShgh.js";
|
|
33
33
|
import { p as S } from "./plugin-z8Hr_T_O.js";
|
|
34
|
-
import { p as v } from "./plugin-
|
|
34
|
+
import { p as v } from "./plugin-Bog7k3Qf.js";
|
|
35
35
|
import "./InputSelect.vue_vue_type_script_setup_true_lang-BlA3DIYZ.js";
|
|
36
36
|
import { p as C } from "./plugin-Daf_swsz.js";
|
|
37
37
|
import { p as G } from "./plugin-DT7LVAli.js";
|
|
@@ -44,8 +44,8 @@ import { p as F } from "./plugin-C3jERS0X.js";
|
|
|
44
44
|
import { p as L } from "./plugin-YUomn9tF.js";
|
|
45
45
|
import "./Popconfirm.vue_vue_type_script_setup_true_lang-XyjBUx0p.js";
|
|
46
46
|
import { p as M } from "./plugin-Ee4Z5Rtp.js";
|
|
47
|
-
import "./Popover.vue_vue_type_script_setup_true_lang-
|
|
48
|
-
import { p as _ } from "./plugin
|
|
47
|
+
import "./Popover.vue_vue_type_script_setup_true_lang-dnL75W40.js";
|
|
48
|
+
import { p as _ } from "./plugin-CdJ1wBq2.js";
|
|
49
49
|
import "./ProgressCircle-BY2eeyGY.js";
|
|
50
50
|
import { p as j } from "./plugin-DXSsGfRI.js";
|
|
51
51
|
import "./ProgressLine-CY6aDj-H.js";
|
|
@@ -53,8 +53,8 @@ import { p as A } from "./plugin-Bk8QZgpY.js";
|
|
|
53
53
|
import { p as B } from "./plugin-cvHKUGjm.js";
|
|
54
54
|
import { p as z } from "./plugin-B9wG8DUw.js";
|
|
55
55
|
import { p as E } from "./plugin-5vn4G57V.js";
|
|
56
|
-
import "./Table-
|
|
57
|
-
import { p as O } from "./plugin-
|
|
56
|
+
import "./Table-C0Sr_Lfm.js";
|
|
57
|
+
import { p as O } from "./plugin-CTMcmMdr.js";
|
|
58
58
|
import "./Tag.vue_vue_type_script_setup_true_lang-CgX-nT8V.js";
|
|
59
59
|
import { p as q } from "./plugin-D8CsjFdw.js";
|
|
60
60
|
import { p as R } from "./plugin-Dn96hI0e.js";
|
package/dist/plugins.js
CHANGED
|
@@ -24,14 +24,14 @@ import { p as V } from "./plugin-DOeDaXWj.js";
|
|
|
24
24
|
import "./Icon.vue_vue_type_script_setup_true_lang-DXUyEtqW.js";
|
|
25
25
|
import { p as X } from "./plugin-Dk3KBChD.js";
|
|
26
26
|
import { p as Z } from "./plugin--F5QK2vy.js";
|
|
27
|
-
import { p as $ } from "./plugin-
|
|
27
|
+
import { p as $ } from "./plugin-DLkeyKDM.js";
|
|
28
28
|
import { p as or } from "./plugin-D9KHvOM3.js";
|
|
29
|
-
import { p as tr } from "./plugin-
|
|
29
|
+
import { p as tr } from "./plugin-BtF6kCcf.js";
|
|
30
30
|
import { p as er } from "./plugin-U6NcpOUL.js";
|
|
31
31
|
import { p as nr } from "./plugin-DOiXH9p9.js";
|
|
32
32
|
import { p as ur } from "./plugin-CrHDShgh.js";
|
|
33
33
|
import { p as Pr } from "./plugin-z8Hr_T_O.js";
|
|
34
|
-
import { p as gr } from "./plugin-
|
|
34
|
+
import { p as gr } from "./plugin-Bog7k3Qf.js";
|
|
35
35
|
import "./InputSelect.vue_vue_type_script_setup_true_lang-BlA3DIYZ.js";
|
|
36
36
|
import { p as fr } from "./plugin-Daf_swsz.js";
|
|
37
37
|
import { p as hr } from "./plugin-DT7LVAli.js";
|
|
@@ -44,8 +44,8 @@ import { p as vr } from "./plugin-C3jERS0X.js";
|
|
|
44
44
|
import { p as Dr } from "./plugin-YUomn9tF.js";
|
|
45
45
|
import "./Popconfirm.vue_vue_type_script_setup_true_lang-XyjBUx0p.js";
|
|
46
46
|
import { p as Lr } from "./plugin-Ee4Z5Rtp.js";
|
|
47
|
-
import "./Popover.vue_vue_type_script_setup_true_lang-
|
|
48
|
-
import { p as Ar } from "./plugin
|
|
47
|
+
import "./Popover.vue_vue_type_script_setup_true_lang-dnL75W40.js";
|
|
48
|
+
import { p as Ar } from "./plugin-CdJ1wBq2.js";
|
|
49
49
|
import "./ProgressCircle-BY2eeyGY.js";
|
|
50
50
|
import { p as Er } from "./plugin-DXSsGfRI.js";
|
|
51
51
|
import "./ProgressLine-CY6aDj-H.js";
|
|
@@ -53,8 +53,8 @@ import { p as jr } from "./plugin-Bk8QZgpY.js";
|
|
|
53
53
|
import { p as zr } from "./plugin-cvHKUGjm.js";
|
|
54
54
|
import { p as Jr } from "./plugin-B9wG8DUw.js";
|
|
55
55
|
import { p as Nr } from "./plugin-5vn4G57V.js";
|
|
56
|
-
import "./Table-
|
|
57
|
-
import { p as Qr } from "./plugin-
|
|
56
|
+
import "./Table-C0Sr_Lfm.js";
|
|
57
|
+
import { p as Qr } from "./plugin-CTMcmMdr.js";
|
|
58
58
|
import "./Tag.vue_vue_type_script_setup_true_lang-CgX-nT8V.js";
|
|
59
59
|
import { p as Vr } from "./plugin-D8CsjFdw.js";
|
|
60
60
|
import { p as Xr } from "./plugin-Dn96hI0e.js";
|
package/dist/tamandua.js
CHANGED
|
@@ -6,6 +6,10 @@ declare const _default: __VLS_WithTemplateSlots<import('vue').DefineComponent<{
|
|
|
6
6
|
type: import("vue").PropType<boolean>;
|
|
7
7
|
default: boolean;
|
|
8
8
|
};
|
|
9
|
+
width: {
|
|
10
|
+
type: import("vue").PropType<"auto" | "static">;
|
|
11
|
+
default: string;
|
|
12
|
+
};
|
|
9
13
|
placement: {
|
|
10
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">;
|
|
11
15
|
default: ElementPosition;
|
|
@@ -26,6 +30,10 @@ declare const _default: __VLS_WithTemplateSlots<import('vue').DefineComponent<{
|
|
|
26
30
|
type: import("vue").PropType<boolean>;
|
|
27
31
|
default: boolean;
|
|
28
32
|
};
|
|
33
|
+
width: {
|
|
34
|
+
type: import("vue").PropType<"auto" | "static">;
|
|
35
|
+
default: string;
|
|
36
|
+
};
|
|
29
37
|
placement: {
|
|
30
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">;
|
|
31
39
|
default: ElementPosition;
|
|
@@ -40,6 +48,7 @@ declare const _default: __VLS_WithTemplateSlots<import('vue').DefineComponent<{
|
|
|
40
48
|
};
|
|
41
49
|
}>>, {
|
|
42
50
|
disabled: boolean;
|
|
51
|
+
width: "auto" | "static";
|
|
43
52
|
placement: "top-start" | "top" | "top-end" | "right-start" | "right" | "right-end" | "bottom-end" | "bottom" | "bottom-start" | "left-end" | "left" | "left-start";
|
|
44
53
|
slotWrapperClasses: string;
|
|
45
54
|
trigger: "click" | "hover";
|
|
@@ -5,4 +5,11 @@ export type PopoverProps = {
|
|
|
5
5
|
disabled?: boolean;
|
|
6
6
|
placement?: `${ElementPosition}`;
|
|
7
7
|
slotWrapperClasses?: string;
|
|
8
|
+
/**
|
|
9
|
+
* Popover width strategy.
|
|
10
|
+
*
|
|
11
|
+
* `auto`: Default, auto resize based on content.
|
|
12
|
+
* `static`: Leave width untouched.
|
|
13
|
+
*/
|
|
14
|
+
width?: "auto" | "static";
|
|
8
15
|
};
|
package/package.json
CHANGED
|
@@ -1,188 +0,0 @@
|
|
|
1
|
-
import { defineComponent as X, ref as f, watch as O, computed as Y, onBeforeMount as Z, resolveComponent as ee, openBlock as c, createElementBlock as v, createElementVNode as n, withKeys as te, withDirectives as oe, toDisplayString as x, unref as le, Fragment as F, renderList as T, normalizeClass as $, createVNode as B, vShow as ne } from "vue";
|
|
2
|
-
import { u as ae } from "./useDomHelpers-CGVrQd35.js";
|
|
3
|
-
import { f as E } from "./index-CjvqeRf7.js";
|
|
4
|
-
import { g as L, s as S, a as se, b as N, c as re } from "./index-CuyePt3m.js";
|
|
5
|
-
const ue = ["value"], ie = {
|
|
6
|
-
class: "mt-9 shadow-md p-4 absolute top-0 left-0 select-none z-10 bg-caipira-primary border input-border input-roundness",
|
|
7
|
-
style: { width: "17rem" }
|
|
8
|
-
}, de = { class: "flex justify-between items-center mb-2" }, ce = { class: "text-lg font-bold" }, ve = ["value", "selected"], pe = ["disabled"], me = ["disabled"], fe = { class: "flex flex-wrap mb-3 -mx-1" }, he = { class: "font-medium text-center text-xs" }, ye = { class: "flex flex-wrap -mx-1" }, ge = ["onClick"], k = !0, ke = /* @__PURE__ */ X({
|
|
9
|
-
name: "TInputDate",
|
|
10
|
-
__name: "InputDate",
|
|
11
|
-
props: {
|
|
12
|
-
value: {},
|
|
13
|
-
modelValue: {},
|
|
14
|
-
initialValue: {}
|
|
15
|
-
},
|
|
16
|
-
emits: ["update:model-value"],
|
|
17
|
-
setup(j, { emit: z }) {
|
|
18
|
-
const M = z, a = j, h = /* @__PURE__ */ new Date(), A = ["Sun", "Mon", "Tue", "Wed", "Thu", "Fri", "Sat"], V = f(null), y = f(!1), { wasClickOutsideOfContainer: K } = ae(), e = f(/* @__PURE__ */ new Date()), s = f(e.value.getFullYear()), p = f(e.value.getMonth());
|
|
19
|
-
O(
|
|
20
|
-
() => e.value,
|
|
21
|
-
(t) => {
|
|
22
|
-
p.value = t.getMonth(), s.value = t.getFullYear();
|
|
23
|
-
},
|
|
24
|
-
{ immediate: !0 }
|
|
25
|
-
);
|
|
26
|
-
let m, g, b;
|
|
27
|
-
O(
|
|
28
|
-
() => a.modelValue,
|
|
29
|
-
() => {
|
|
30
|
-
if (a.modelValue)
|
|
31
|
-
switch (typeof a.modelValue) {
|
|
32
|
-
case "string":
|
|
33
|
-
const t = new Date(a.modelValue);
|
|
34
|
-
t && M("update:model-value", t);
|
|
35
|
-
break;
|
|
36
|
-
case "object":
|
|
37
|
-
e.value = a.modelValue, m = e.value.getDate(), g = e.value.getFullYear(), b = e.value.getMonth();
|
|
38
|
-
break;
|
|
39
|
-
}
|
|
40
|
-
},
|
|
41
|
-
{ immediate: !0 }
|
|
42
|
-
);
|
|
43
|
-
const P = Y(() => {
|
|
44
|
-
if (!a.modelValue)
|
|
45
|
-
return "";
|
|
46
|
-
const t = typeof a.modelValue == "string" ? new Date(a.modelValue) : a.modelValue;
|
|
47
|
-
return E(t, "yyyy-MM-dd");
|
|
48
|
-
}), R = Y(() => {
|
|
49
|
-
const t = h.getFullYear();
|
|
50
|
-
return Array.from({ length: 49 }, (i, r) => t - 1 - r).reverse().concat(Array.from({ length: 51 }, (i, r) => t + r));
|
|
51
|
-
}), W = (t) => e.value = se(
|
|
52
|
-
e.value,
|
|
53
|
-
t?.target?.value
|
|
54
|
-
), w = () => {
|
|
55
|
-
y.value = !1, e.value = m ? a.modelValue : /* @__PURE__ */ new Date();
|
|
56
|
-
}, G = (t) => {
|
|
57
|
-
t.overflow && (e.value = t.overflow > 0 ? N(e.value, t.overflow) : S(e.value, ~t.overflow + 1)), e.value = re(e.value, t.day), M("update:model-value", e.value), w();
|
|
58
|
-
}, H = () => {
|
|
59
|
-
e.value = S(e.value, 1);
|
|
60
|
-
}, q = () => {
|
|
61
|
-
e.value = N(e.value, 1);
|
|
62
|
-
}, J = Y(() => {
|
|
63
|
-
const i = [], r = new Date(s.value, p.value).getDay(), l = L(S(e.value, 1)), I = L(e.value), C = h.getDate(), D = h.getFullYear(), d = h.getMonth();
|
|
64
|
-
let _ = 1, u = p.value - 1;
|
|
65
|
-
for (let o = l - (r - 1); o <= l; o++)
|
|
66
|
-
i.push({
|
|
67
|
-
key: `${o}-${d - 1}`,
|
|
68
|
-
day: o,
|
|
69
|
-
isToday: C === o && d === u && D === s.value,
|
|
70
|
-
selected: m === o && b === u && g === s.value,
|
|
71
|
-
overflow: -1
|
|
72
|
-
}), _++;
|
|
73
|
-
u = p.value;
|
|
74
|
-
for (let o = 1; o <= I; o++)
|
|
75
|
-
i.push({
|
|
76
|
-
key: `${o}-${d}`,
|
|
77
|
-
day: o,
|
|
78
|
-
isToday: C === o && d === u && D === s.value,
|
|
79
|
-
selected: m === o && b === u && g === s.value,
|
|
80
|
-
overflow: 0
|
|
81
|
-
}), _++;
|
|
82
|
-
u = p.value + 1;
|
|
83
|
-
for (let o = 1; _ <= 42; o++)
|
|
84
|
-
i.push({
|
|
85
|
-
key: `${o}-${d + 1}`,
|
|
86
|
-
day: o,
|
|
87
|
-
isToday: C === o && d === u && D === s.value,
|
|
88
|
-
selected: m === o && b === u && g === s.value,
|
|
89
|
-
overflow: 1
|
|
90
|
-
}), _++;
|
|
91
|
-
return i;
|
|
92
|
-
}), Q = () => {
|
|
93
|
-
y.value ? w() : y.value = !0;
|
|
94
|
-
}, U = (t) => {
|
|
95
|
-
V.value && K(t, V.value) && w();
|
|
96
|
-
};
|
|
97
|
-
return Z(() => {
|
|
98
|
-
document.addEventListener("click", U), !a.modelValue && a.initialValue && M("update:model-value", a.initialValue);
|
|
99
|
-
}), (t, i) => {
|
|
100
|
-
const r = ee("t-icon");
|
|
101
|
-
return c(), v("div", {
|
|
102
|
-
class: "inline-block relative w-full",
|
|
103
|
-
ref_key: "wrapperRef",
|
|
104
|
-
ref: V
|
|
105
|
-
}, [
|
|
106
|
-
n("input", {
|
|
107
|
-
type: "text",
|
|
108
|
-
readonly: "",
|
|
109
|
-
value: P.value,
|
|
110
|
-
onClick: Q,
|
|
111
|
-
onKeydown: te(w, ["escape"]),
|
|
112
|
-
class: "w-full pl-2 pr-10 py-2 leading-none input-bg-color input-text-color border input-border input-roundness input-outline",
|
|
113
|
-
placeholder: "Select date"
|
|
114
|
-
}, null, 40, ue),
|
|
115
|
-
oe(n("div", ie, [
|
|
116
|
-
n("div", de, [
|
|
117
|
-
n("div", null, [
|
|
118
|
-
n("span", ce, x(le(E)(e.value, "MMMM")), 1),
|
|
119
|
-
n("select", {
|
|
120
|
-
class: "ml-2 text-lg input-bg-color border input-border input-outline",
|
|
121
|
-
onChange: W
|
|
122
|
-
}, [
|
|
123
|
-
(c(!0), v(F, null, T(R.value, (l) => (c(), v("option", {
|
|
124
|
-
key: l,
|
|
125
|
-
value: l,
|
|
126
|
-
selected: l === s.value
|
|
127
|
-
}, x(l), 9, ve))), 128))
|
|
128
|
-
], 32)
|
|
129
|
-
]),
|
|
130
|
-
n("div", null, [
|
|
131
|
-
n("button", {
|
|
132
|
-
type: "button",
|
|
133
|
-
class: $(["transition ease-in-out duration-100 inline-flex cursor-pointer hover:bg-hover p-1 rounded-full", {
|
|
134
|
-
"cursor-not-allowed opacity-25": !k
|
|
135
|
-
}]),
|
|
136
|
-
disabled: !k,
|
|
137
|
-
onClick: H
|
|
138
|
-
}, [
|
|
139
|
-
B(r, { icon: "chevron-left" })
|
|
140
|
-
], 10, pe),
|
|
141
|
-
n("button", {
|
|
142
|
-
type: "button",
|
|
143
|
-
class: $(["transition ease-in-out duration-100 inline-flex cursor-pointer p-1 rounded-full hover:bg-hover", {
|
|
144
|
-
"cursor-not-allowed opacity-25": !k
|
|
145
|
-
}]),
|
|
146
|
-
disabled: !k,
|
|
147
|
-
onClick: q
|
|
148
|
-
}, [
|
|
149
|
-
B(r, { icon: "chevron-right" })
|
|
150
|
-
], 10, me)
|
|
151
|
-
])
|
|
152
|
-
]),
|
|
153
|
-
n("div", fe, [
|
|
154
|
-
(c(), v(F, null, T(A, (l) => n("div", {
|
|
155
|
-
key: l,
|
|
156
|
-
style: { width: "14.26%" },
|
|
157
|
-
class: "px-1"
|
|
158
|
-
}, [
|
|
159
|
-
n("div", he, x(l), 1)
|
|
160
|
-
])), 64))
|
|
161
|
-
]),
|
|
162
|
-
n("div", ye, [
|
|
163
|
-
(c(!0), v(F, null, T(J.value, (l) => (c(), v("div", {
|
|
164
|
-
key: l.key,
|
|
165
|
-
style: { width: "14.28%" },
|
|
166
|
-
class: "px-1 mb-1"
|
|
167
|
-
}, [
|
|
168
|
-
n("div", {
|
|
169
|
-
onClick: (I) => G(l),
|
|
170
|
-
class: $(["cursor-pointer text-center text-sm rounded leading-loose transition ease-in-out duration-100", {
|
|
171
|
-
"hover:bg-hover": !l.selected,
|
|
172
|
-
"color-unfocused-text": l.overflow !== 0,
|
|
173
|
-
"border border-caipira-primary-inverted": l.isToday,
|
|
174
|
-
"color-caipira-primary bg-caipira-primary-inverted": l.selected
|
|
175
|
-
}])
|
|
176
|
-
}, x(l.day), 11, ge)
|
|
177
|
-
]))), 128))
|
|
178
|
-
])
|
|
179
|
-
], 512), [
|
|
180
|
-
[ne, y.value]
|
|
181
|
-
])
|
|
182
|
-
], 512);
|
|
183
|
-
};
|
|
184
|
-
}
|
|
185
|
-
});
|
|
186
|
-
export {
|
|
187
|
-
ke as _
|
|
188
|
-
};
|