@caipira/tamandua 0.0.68 → 0.0.70
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/Button.js +2 -2
- package/dist/{Button.vue_vue_type_script_setup_true_lang-DW0Q2Ut2.js → Button.vue_vue_type_script_setup_true_lang-BkK6idln.js} +1 -1
- package/dist/Form.js +2 -2
- package/dist/{Form.vue_vue_type_script_setup_true_lang-CNGNCak7.js → Form.vue_vue_type_script_setup_true_lang-s3wmU1NZ.js} +1 -1
- package/dist/FormItem.js +2 -2
- package/dist/FormItem.vue_vue_type_script_setup_true_lang-CInvGeMR.js +71 -0
- package/dist/Icon.js +2 -2
- package/dist/{Icon.vue_vue_type_script_setup_true_lang-C2QvF2xM.js → Icon.vue_vue_type_script_setup_true_lang-B74Viy_i.js} +1 -1
- package/dist/InputDate.js +2 -2
- package/dist/{InputDate.vue_vue_type_script_setup_true_lang-BUEAELkk.js → InputDate.vue_vue_type_script_setup_true_lang-CNmUyWG3.js} +3 -3
- package/dist/InputPassword.js +2 -2
- package/dist/{InputPassword.vue_vue_type_script_setup_true_lang-ChHDOnS8.js → InputPassword.vue_vue_type_script_setup_true_lang-CYcJ-agy.js} +1 -1
- package/dist/InputTextarea.js +2 -2
- package/dist/{InputTextarea.vue_vue_type_script_setup_true_lang-q9T4fINI.js → InputTextarea.vue_vue_type_script_setup_true_lang-C8f2hfeZ.js} +11 -11
- package/dist/Modal.js +2 -2
- package/dist/{Modal.vue_vue_type_script_setup_true_lang-BvUk8ebI.js → Modal.vue_vue_type_script_setup_true_lang-60BGY-iH.js} +21 -21
- package/dist/components.js +8 -8
- package/dist/date.js +252 -153
- package/dist/form2.js +1 -1
- package/dist/{format-BZx-8XXc.js → format-CNTeOuM7.js} +10 -8
- package/dist/index.css +18 -7
- package/dist/pause-circle-BMlgPlcn.js +5 -0
- package/dist/play-circle-LCrYDAxO.js +5 -0
- package/dist/{plugin-BShPzL82.js → plugin-4gYIxYVl.js} +1 -1
- package/dist/{plugin-3Ql4s0Jh.js → plugin-CBUyNiTn.js} +1 -1
- package/dist/{plugin-CvohbpUQ.js → plugin-CEsqY6D6.js} +1 -1
- package/dist/{plugin-DSHWwE9A.js → plugin-CLPYJfBT.js} +1 -1
- package/dist/{plugin-n_PnyR3n.js → plugin-CPpRqUnI.js} +1 -1
- package/dist/{plugin-C8Z-XgLn.js → plugin-Clp0zNY0.js} +1 -1
- package/dist/{plugin-CV_fI920.js → plugin-Dg5N4aqg.js} +1 -1
- package/dist/{plugin-BuU0zOfE.js → plugin-NrO_mAYp.js} +1 -1
- package/dist/{plugins-CEGTMSZE.js → plugins-CFTCb2K4.js} +11 -11
- package/dist/plugins.js +11 -11
- package/dist/{subMonths-XOke808J.js → subMonths-D17wKxDQ.js} +1 -1
- package/dist/tamandua.js +1 -1
- package/dist/{transformers-DowKEH_9.js → transformers-CrxkoXtN.js} +1 -1
- package/dist/types/components/FormItem/types.d.ts +1 -1
- package/dist/types/services/date.d.ts +2 -2
- package/package.json +1 -1
- package/dist/FormItem.vue_vue_type_script_setup_true_lang-D7a8YCgS.js +0 -64
package/dist/date.js
CHANGED
|
@@ -1,133 +1,230 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { f as
|
|
3
|
-
import { b as
|
|
4
|
-
|
|
5
|
-
|
|
1
|
+
import { t as l, c as T, m as A, n as g, s as O, d as $, a as P, e as U, g as x, b as H, h as N, i as X } from "./format-CNTeOuM7.js";
|
|
2
|
+
import { f as Ht } from "./format-CNTeOuM7.js";
|
|
3
|
+
import { b as Z } from "./subMonths-D17wKxDQ.js";
|
|
4
|
+
import { g as St, c as Ct, a as bt, s as zt } from "./subMonths-D17wKxDQ.js";
|
|
5
|
+
function j(t, e, n) {
|
|
6
|
+
const r = l(t, n?.in);
|
|
7
|
+
return isNaN(e) ? T(n?.in || t, NaN) : (e && r.setDate(r.getDate() + e), r);
|
|
8
|
+
}
|
|
9
|
+
function I(t, e, n) {
|
|
10
|
+
const {
|
|
11
|
+
years: r = 0,
|
|
12
|
+
months: s = 0,
|
|
13
|
+
weeks: o = 0,
|
|
14
|
+
days: i = 0,
|
|
15
|
+
hours: a = 0,
|
|
16
|
+
minutes: c = 0,
|
|
17
|
+
seconds: f = 0
|
|
18
|
+
} = e, d = l(t, n?.in), D = s || r ? Z(d, s + r * 12) : d, u = i || o ? j(D, i + o * 7) : D, m = c + a * 60, M = (f + m * 60) * 1e3;
|
|
19
|
+
return T(n?.in || t, +u + M);
|
|
6
20
|
}
|
|
7
|
-
function
|
|
8
|
-
|
|
9
|
-
return s.setTime(s.getTime() + e * z), s;
|
|
21
|
+
function yt(t, e, n) {
|
|
22
|
+
return T(n?.in || t, +l(t) + e);
|
|
10
23
|
}
|
|
11
|
-
function
|
|
12
|
-
const
|
|
24
|
+
function It(t, e, n) {
|
|
25
|
+
const r = l(t, n?.in);
|
|
26
|
+
return r.setTime(r.getTime() + e * A), r;
|
|
27
|
+
}
|
|
28
|
+
function y(t, e) {
|
|
29
|
+
const n = +l(t) - +l(e);
|
|
13
30
|
return n < 0 ? -1 : n > 0 ? 1 : n;
|
|
14
31
|
}
|
|
15
|
-
function
|
|
16
|
-
return
|
|
32
|
+
function L(t) {
|
|
33
|
+
return T(t, Date.now());
|
|
34
|
+
}
|
|
35
|
+
function W(t, e, n) {
|
|
36
|
+
const [r, s] = g(
|
|
37
|
+
n?.in,
|
|
38
|
+
t,
|
|
39
|
+
e
|
|
40
|
+
);
|
|
41
|
+
return +O(r) == +O(s);
|
|
42
|
+
}
|
|
43
|
+
function G(t, e, n) {
|
|
44
|
+
const [r, s] = g(
|
|
45
|
+
n?.in,
|
|
46
|
+
t,
|
|
47
|
+
e
|
|
48
|
+
), o = r.getFullYear() - s.getFullYear(), i = r.getMonth() - s.getMonth();
|
|
49
|
+
return o * 12 + i;
|
|
17
50
|
}
|
|
18
|
-
function
|
|
19
|
-
const [
|
|
51
|
+
function V(t, e, n) {
|
|
52
|
+
const [r, s] = g(
|
|
20
53
|
n?.in,
|
|
21
54
|
t,
|
|
22
55
|
e
|
|
23
56
|
);
|
|
24
|
-
return
|
|
57
|
+
return r.getFullYear() - s.getFullYear();
|
|
25
58
|
}
|
|
26
|
-
function
|
|
27
|
-
const [
|
|
59
|
+
function q(t, e, n) {
|
|
60
|
+
const [r, s] = g(
|
|
28
61
|
n?.in,
|
|
29
62
|
t,
|
|
30
63
|
e
|
|
31
|
-
),
|
|
32
|
-
|
|
64
|
+
), o = Y(r, s), i = Math.abs(
|
|
65
|
+
$(r, s)
|
|
66
|
+
);
|
|
67
|
+
r.setDate(r.getDate() - o * i);
|
|
68
|
+
const a = +(Y(r, s) === -o), c = o * (i - a);
|
|
69
|
+
return c === 0 ? 0 : c;
|
|
70
|
+
}
|
|
71
|
+
function Y(t, e) {
|
|
72
|
+
const n = t.getFullYear() - e.getFullYear() || t.getMonth() - e.getMonth() || t.getDate() - e.getDate() || t.getHours() - e.getHours() || t.getMinutes() - e.getMinutes() || t.getSeconds() - e.getSeconds() || t.getMilliseconds() - e.getMilliseconds();
|
|
73
|
+
return n < 0 ? -1 : n > 0 ? 1 : n;
|
|
33
74
|
}
|
|
34
|
-
function
|
|
75
|
+
function F(t) {
|
|
35
76
|
return (e) => {
|
|
36
|
-
const
|
|
37
|
-
return
|
|
77
|
+
const r = (t ? Math[t] : Math.trunc)(e);
|
|
78
|
+
return r === 0 ? 0 : r;
|
|
38
79
|
};
|
|
39
80
|
}
|
|
81
|
+
function B(t, e, n) {
|
|
82
|
+
const [r, s] = g(
|
|
83
|
+
n?.in,
|
|
84
|
+
t,
|
|
85
|
+
e
|
|
86
|
+
), o = (+r - +s) / P;
|
|
87
|
+
return F(n?.roundingMethod)(o);
|
|
88
|
+
}
|
|
40
89
|
function k(t, e) {
|
|
41
|
-
return +
|
|
90
|
+
return +l(t) - +l(e);
|
|
42
91
|
}
|
|
43
|
-
function
|
|
44
|
-
const
|
|
92
|
+
function J(t, e, n) {
|
|
93
|
+
const r = k(t, e) / A;
|
|
94
|
+
return F(n?.roundingMethod)(r);
|
|
95
|
+
}
|
|
96
|
+
function K(t, e) {
|
|
97
|
+
const n = l(t, e?.in);
|
|
45
98
|
return n.setHours(23, 59, 59, 999), n;
|
|
46
99
|
}
|
|
47
|
-
function
|
|
48
|
-
const n =
|
|
49
|
-
return n.setFullYear(n.getFullYear(),
|
|
100
|
+
function Q(t, e) {
|
|
101
|
+
const n = l(t, e?.in), r = n.getMonth();
|
|
102
|
+
return n.setFullYear(n.getFullYear(), r + 1, 0), n.setHours(23, 59, 59, 999), n;
|
|
50
103
|
}
|
|
51
|
-
function
|
|
52
|
-
const n =
|
|
53
|
-
return +
|
|
104
|
+
function tt(t, e) {
|
|
105
|
+
const n = l(t, e?.in);
|
|
106
|
+
return +K(n, e) == +Q(n, e);
|
|
54
107
|
}
|
|
55
|
-
function
|
|
56
|
-
const [
|
|
108
|
+
function v(t, e, n) {
|
|
109
|
+
const [r, s, o] = g(
|
|
57
110
|
n?.in,
|
|
58
111
|
t,
|
|
59
112
|
t,
|
|
60
113
|
e
|
|
61
|
-
), i =
|
|
62
|
-
|
|
114
|
+
), i = y(s, o), a = Math.abs(
|
|
115
|
+
G(s, o)
|
|
63
116
|
);
|
|
64
|
-
if (
|
|
117
|
+
if (a < 1)
|
|
65
118
|
return 0;
|
|
66
|
-
|
|
67
|
-
let
|
|
68
|
-
|
|
69
|
-
const
|
|
70
|
-
return
|
|
119
|
+
s.getMonth() === 1 && s.getDate() > 27 && s.setDate(30), s.setMonth(s.getMonth() - i * a);
|
|
120
|
+
let c = y(s, o) === -i;
|
|
121
|
+
tt(r) && a === 1 && y(r, o) === 1 && (c = !1);
|
|
122
|
+
const f = i * (a - +c);
|
|
123
|
+
return f === 0 ? 0 : f;
|
|
71
124
|
}
|
|
72
|
-
function
|
|
73
|
-
const
|
|
74
|
-
return
|
|
125
|
+
function E(t, e, n) {
|
|
126
|
+
const r = k(t, e) / 1e3;
|
|
127
|
+
return F(n?.roundingMethod)(r);
|
|
75
128
|
}
|
|
76
|
-
function
|
|
77
|
-
const
|
|
129
|
+
function et(t, e, n) {
|
|
130
|
+
const [r, s] = g(
|
|
131
|
+
n?.in,
|
|
132
|
+
t,
|
|
133
|
+
e
|
|
134
|
+
), o = y(r, s), i = Math.abs(V(r, s));
|
|
135
|
+
r.setFullYear(1584), s.setFullYear(1584);
|
|
136
|
+
const a = y(r, s) === -o, c = o * (i - +a);
|
|
137
|
+
return c === 0 ? 0 : c;
|
|
138
|
+
}
|
|
139
|
+
function nt(t, e) {
|
|
140
|
+
const [n, r] = g(t, e.start, e.end);
|
|
141
|
+
return { start: n, end: r };
|
|
142
|
+
}
|
|
143
|
+
function st(t, e, n) {
|
|
144
|
+
const r = X(), s = n?.locale ?? r.locale ?? U, o = 2520, i = y(t, e);
|
|
78
145
|
if (isNaN(i))
|
|
79
146
|
throw new RangeError("Invalid time value");
|
|
80
|
-
const
|
|
147
|
+
const a = Object.assign({}, n, {
|
|
81
148
|
addSuffix: n?.addSuffix,
|
|
82
149
|
comparison: i
|
|
83
|
-
}), [
|
|
150
|
+
}), [c, f] = g(
|
|
84
151
|
n?.in,
|
|
85
152
|
...i > 0 ? [e, t] : [t, e]
|
|
86
|
-
),
|
|
87
|
-
let
|
|
88
|
-
if (
|
|
89
|
-
return n?.includeSeconds ?
|
|
90
|
-
if (
|
|
91
|
-
return
|
|
92
|
-
if (
|
|
93
|
-
return
|
|
94
|
-
if (
|
|
95
|
-
const
|
|
96
|
-
return
|
|
153
|
+
), d = E(f, c), D = (x(f) - x(c)) / 1e3, u = Math.round((d - D) / 60);
|
|
154
|
+
let m;
|
|
155
|
+
if (u < 2)
|
|
156
|
+
return n?.includeSeconds ? d < 5 ? s.formatDistance("lessThanXSeconds", 5, a) : d < 10 ? s.formatDistance("lessThanXSeconds", 10, a) : d < 20 ? s.formatDistance("lessThanXSeconds", 20, a) : d < 40 ? s.formatDistance("halfAMinute", 0, a) : d < 60 ? s.formatDistance("lessThanXMinutes", 1, a) : s.formatDistance("xMinutes", 1, a) : u === 0 ? s.formatDistance("lessThanXMinutes", 1, a) : s.formatDistance("xMinutes", u, a);
|
|
157
|
+
if (u < 45)
|
|
158
|
+
return s.formatDistance("xMinutes", u, a);
|
|
159
|
+
if (u < 90)
|
|
160
|
+
return s.formatDistance("aboutXHours", 1, a);
|
|
161
|
+
if (u < H) {
|
|
162
|
+
const h = Math.round(u / 60);
|
|
163
|
+
return s.formatDistance("aboutXHours", h, a);
|
|
97
164
|
} else {
|
|
98
|
-
if (
|
|
99
|
-
return
|
|
100
|
-
if (
|
|
101
|
-
const
|
|
102
|
-
return
|
|
103
|
-
} else if (
|
|
104
|
-
return
|
|
165
|
+
if (u < o)
|
|
166
|
+
return s.formatDistance("xDays", 1, a);
|
|
167
|
+
if (u < N) {
|
|
168
|
+
const h = Math.round(u / H);
|
|
169
|
+
return s.formatDistance("xDays", h, a);
|
|
170
|
+
} else if (u < N * 2)
|
|
171
|
+
return m = Math.round(u / N), s.formatDistance("aboutXMonths", m, a);
|
|
105
172
|
}
|
|
106
|
-
if (
|
|
107
|
-
const
|
|
108
|
-
return
|
|
173
|
+
if (m = v(f, c), m < 12) {
|
|
174
|
+
const h = Math.round(u / N);
|
|
175
|
+
return s.formatDistance("xMonths", h, a);
|
|
109
176
|
} else {
|
|
110
|
-
const
|
|
111
|
-
return
|
|
177
|
+
const h = m % 12, M = Math.trunc(m / 12);
|
|
178
|
+
return h < 3 ? s.formatDistance("aboutXYears", M, a) : h < 9 ? s.formatDistance("overXYears", M, a) : s.formatDistance("almostXYears", M + 1, a);
|
|
112
179
|
}
|
|
113
180
|
}
|
|
114
|
-
function
|
|
115
|
-
return
|
|
181
|
+
function Tt(t, e) {
|
|
182
|
+
return st(t, L(t), e);
|
|
116
183
|
}
|
|
117
|
-
|
|
118
|
-
|
|
184
|
+
const rt = [
|
|
185
|
+
"years",
|
|
186
|
+
"months",
|
|
187
|
+
"weeks",
|
|
188
|
+
"days",
|
|
189
|
+
"hours",
|
|
190
|
+
"minutes",
|
|
191
|
+
"seconds"
|
|
192
|
+
];
|
|
193
|
+
function Nt(t, e) {
|
|
194
|
+
const n = X(), r = e?.locale ?? n.locale ?? U, s = e?.format ?? rt, o = e?.zero ?? !1, i = e?.delimiter ?? " ";
|
|
195
|
+
return r.formatDistance ? s.reduce((c, f) => {
|
|
196
|
+
const d = `x${f.replace(/(^.)/, (u) => u.toUpperCase())}`, D = t[f];
|
|
197
|
+
return D !== void 0 && (o || t[f]) ? c.concat(r.formatDistance(d, D)) : c;
|
|
198
|
+
}, []).join(i) : "";
|
|
119
199
|
}
|
|
120
|
-
function
|
|
121
|
-
return
|
|
122
|
-
|
|
123
|
-
|
|
200
|
+
function _t(t) {
|
|
201
|
+
return Math.trunc(+l(t) / 1e3);
|
|
202
|
+
}
|
|
203
|
+
function pt(t, e) {
|
|
204
|
+
const { start: n, end: r } = nt(e?.in, t), s = {}, o = et(r, n);
|
|
205
|
+
o && (s.years = o);
|
|
206
|
+
const i = I(n, { years: s.years }), a = v(r, i);
|
|
207
|
+
a && (s.months = a);
|
|
208
|
+
const c = I(i, { months: s.months }), f = q(r, c);
|
|
209
|
+
f && (s.days = f);
|
|
210
|
+
const d = I(c, { days: s.days }), D = B(r, d);
|
|
211
|
+
D && (s.hours = D);
|
|
212
|
+
const u = I(d, { hours: s.hours }), m = J(r, u);
|
|
213
|
+
m && (s.minutes = m);
|
|
214
|
+
const h = I(u, { minutes: s.minutes }), M = E(r, h);
|
|
215
|
+
return M && (s.seconds = M), s;
|
|
216
|
+
}
|
|
217
|
+
function wt(t, e) {
|
|
218
|
+
return W(
|
|
219
|
+
T(e?.in || t, t),
|
|
220
|
+
L(e?.in || t)
|
|
124
221
|
);
|
|
125
222
|
}
|
|
126
|
-
function
|
|
127
|
-
const n =
|
|
128
|
-
return "formatToParts" in n ?
|
|
223
|
+
function ot(t, e) {
|
|
224
|
+
const n = ft(e);
|
|
225
|
+
return "formatToParts" in n ? it(n, t) : ct(n, t);
|
|
129
226
|
}
|
|
130
|
-
const
|
|
227
|
+
const at = {
|
|
131
228
|
year: 0,
|
|
132
229
|
month: 1,
|
|
133
230
|
day: 2,
|
|
@@ -135,32 +232,32 @@ const V = {
|
|
|
135
232
|
minute: 4,
|
|
136
233
|
second: 5
|
|
137
234
|
};
|
|
138
|
-
function
|
|
235
|
+
function it(t, e) {
|
|
139
236
|
try {
|
|
140
|
-
const n = t.formatToParts(e),
|
|
141
|
-
for (let
|
|
142
|
-
const
|
|
143
|
-
|
|
237
|
+
const n = t.formatToParts(e), r = [];
|
|
238
|
+
for (let s = 0; s < n.length; s++) {
|
|
239
|
+
const o = at[n[s].type];
|
|
240
|
+
o !== void 0 && (r[o] = parseInt(n[s].value, 10));
|
|
144
241
|
}
|
|
145
|
-
return
|
|
242
|
+
return r;
|
|
146
243
|
} catch (n) {
|
|
147
244
|
if (n instanceof RangeError)
|
|
148
245
|
return [NaN];
|
|
149
246
|
throw n;
|
|
150
247
|
}
|
|
151
248
|
}
|
|
152
|
-
function
|
|
153
|
-
const n = t.format(e),
|
|
249
|
+
function ct(t, e) {
|
|
250
|
+
const n = t.format(e), r = /(\d+)\/(\d+)\/(\d+),? (\d+):(\d+):(\d+)/.exec(n);
|
|
154
251
|
return [
|
|
155
|
-
parseInt(
|
|
156
|
-
parseInt(
|
|
157
|
-
parseInt(
|
|
158
|
-
parseInt(
|
|
159
|
-
parseInt(
|
|
160
|
-
parseInt(
|
|
252
|
+
parseInt(r[3], 10),
|
|
253
|
+
parseInt(r[1], 10),
|
|
254
|
+
parseInt(r[2], 10),
|
|
255
|
+
parseInt(r[4], 10),
|
|
256
|
+
parseInt(r[5], 10),
|
|
257
|
+
parseInt(r[6], 10)
|
|
161
258
|
];
|
|
162
259
|
}
|
|
163
|
-
const
|
|
260
|
+
const _ = {}, S = new Intl.DateTimeFormat("en-US", {
|
|
164
261
|
hourCycle: "h23",
|
|
165
262
|
timeZone: "America/New_York",
|
|
166
263
|
year: "numeric",
|
|
@@ -169,9 +266,9 @@ const I = {}, _ = new Intl.DateTimeFormat("en-US", {
|
|
|
169
266
|
hour: "2-digit",
|
|
170
267
|
minute: "2-digit",
|
|
171
268
|
second: "2-digit"
|
|
172
|
-
}).format(/* @__PURE__ */ new Date("2014-06-25T04:00:00.123Z")),
|
|
173
|
-
function
|
|
174
|
-
return
|
|
269
|
+
}).format(/* @__PURE__ */ new Date("2014-06-25T04:00:00.123Z")), ut = S === "06/25/2014, 00:00:00" || S === "06/25/2014 00:00:00";
|
|
270
|
+
function ft(t) {
|
|
271
|
+
return _[t] || (_[t] = ut ? new Intl.DateTimeFormat("en-US", {
|
|
175
272
|
hourCycle: "h23",
|
|
176
273
|
timeZone: t,
|
|
177
274
|
year: "numeric",
|
|
@@ -189,85 +286,87 @@ function K(t) {
|
|
|
189
286
|
hour: "2-digit",
|
|
190
287
|
minute: "2-digit",
|
|
191
288
|
second: "2-digit"
|
|
192
|
-
})),
|
|
289
|
+
})), _[t];
|
|
193
290
|
}
|
|
194
|
-
function
|
|
195
|
-
const
|
|
196
|
-
return
|
|
291
|
+
function R(t, e, n, r, s, o, i) {
|
|
292
|
+
const a = /* @__PURE__ */ new Date(0);
|
|
293
|
+
return a.setUTCFullYear(t, e, n), a.setUTCHours(r, s, o, i), a;
|
|
197
294
|
}
|
|
198
|
-
const
|
|
295
|
+
const C = 36e5, dt = 6e4, p = {
|
|
199
296
|
timezone: /([Z+-].*)$/,
|
|
200
297
|
timezoneZ: /^(Z)$/,
|
|
201
298
|
timezoneHH: /^([+-]\d{2})$/,
|
|
202
299
|
timezoneHHMM: /^([+-])(\d{2}):?(\d{2})$/
|
|
203
300
|
};
|
|
204
|
-
function
|
|
301
|
+
function lt(t, e, n) {
|
|
205
302
|
if (!t)
|
|
206
303
|
return 0;
|
|
207
|
-
let
|
|
208
|
-
if (
|
|
304
|
+
let r = p.timezoneZ.exec(t);
|
|
305
|
+
if (r)
|
|
209
306
|
return 0;
|
|
210
|
-
let
|
|
211
|
-
if (
|
|
212
|
-
return
|
|
213
|
-
if (
|
|
214
|
-
|
|
215
|
-
const i = parseInt(
|
|
216
|
-
return
|
|
307
|
+
let s, o;
|
|
308
|
+
if (r = p.timezoneHH.exec(t), r)
|
|
309
|
+
return s = parseInt(r[1], 10), b(s) ? -(s * C) : NaN;
|
|
310
|
+
if (r = p.timezoneHHMM.exec(t), r) {
|
|
311
|
+
s = parseInt(r[2], 10);
|
|
312
|
+
const i = parseInt(r[3], 10);
|
|
313
|
+
return b(s, i) ? (o = Math.abs(s) * C + i * dt, r[1] === "+" ? -o : o) : NaN;
|
|
217
314
|
}
|
|
218
|
-
if (
|
|
315
|
+
if (Dt(t)) {
|
|
219
316
|
e = new Date(e || Date.now());
|
|
220
|
-
const i = n ? e :
|
|
221
|
-
return -(n ?
|
|
317
|
+
const i = n ? e : mt(e), a = w(i, t);
|
|
318
|
+
return -(n ? a : ht(e, a, t));
|
|
222
319
|
}
|
|
223
320
|
return NaN;
|
|
224
321
|
}
|
|
225
|
-
function
|
|
226
|
-
return
|
|
322
|
+
function mt(t) {
|
|
323
|
+
return R(t.getFullYear(), t.getMonth(), t.getDate(), t.getHours(), t.getMinutes(), t.getSeconds(), t.getMilliseconds());
|
|
227
324
|
}
|
|
228
|
-
function
|
|
229
|
-
const n =
|
|
230
|
-
let
|
|
231
|
-
const
|
|
232
|
-
return
|
|
325
|
+
function w(t, e) {
|
|
326
|
+
const n = ot(t, e), r = R(n[0], n[1] - 1, n[2], n[3] % 24, n[4], n[5], 0).getTime();
|
|
327
|
+
let s = t.getTime();
|
|
328
|
+
const o = s % 1e3;
|
|
329
|
+
return s -= o >= 0 ? o : 1e3 + o, r - s;
|
|
233
330
|
}
|
|
234
|
-
function
|
|
235
|
-
let
|
|
236
|
-
const
|
|
237
|
-
if (e ===
|
|
331
|
+
function ht(t, e, n) {
|
|
332
|
+
let s = t.getTime() - e;
|
|
333
|
+
const o = w(new Date(s), n);
|
|
334
|
+
if (e === o)
|
|
238
335
|
return e;
|
|
239
|
-
|
|
240
|
-
const i =
|
|
241
|
-
return
|
|
336
|
+
s -= o - e;
|
|
337
|
+
const i = w(new Date(s), n);
|
|
338
|
+
return o === i ? o : Math.max(o, i);
|
|
242
339
|
}
|
|
243
|
-
function
|
|
340
|
+
function b(t, e) {
|
|
244
341
|
return -23 <= t && t <= 23 && (e == null || 0 <= e && e <= 59);
|
|
245
342
|
}
|
|
246
|
-
const
|
|
247
|
-
function
|
|
248
|
-
if (
|
|
343
|
+
const z = {};
|
|
344
|
+
function Dt(t) {
|
|
345
|
+
if (z[t])
|
|
249
346
|
return !0;
|
|
250
347
|
try {
|
|
251
|
-
return new Intl.DateTimeFormat(void 0, { timeZone: t }),
|
|
348
|
+
return new Intl.DateTimeFormat(void 0, { timeZone: t }), z[t] = !0, !0;
|
|
252
349
|
} catch {
|
|
253
350
|
return !1;
|
|
254
351
|
}
|
|
255
352
|
}
|
|
256
|
-
function
|
|
257
|
-
return -
|
|
353
|
+
function Ft(t, e) {
|
|
354
|
+
return -lt(t, e);
|
|
258
355
|
}
|
|
259
356
|
export {
|
|
260
|
-
|
|
261
|
-
|
|
262
|
-
|
|
263
|
-
|
|
264
|
-
|
|
265
|
-
|
|
266
|
-
|
|
267
|
-
|
|
268
|
-
|
|
269
|
-
|
|
270
|
-
|
|
271
|
-
|
|
272
|
-
|
|
357
|
+
yt as addMilliseconds,
|
|
358
|
+
It as addMinutes,
|
|
359
|
+
Z as addMonths,
|
|
360
|
+
Ht as format,
|
|
361
|
+
st as formatDistance,
|
|
362
|
+
Tt as formatDistanceToNow,
|
|
363
|
+
Nt as formatDuration,
|
|
364
|
+
St as getDaysInMonth,
|
|
365
|
+
Ft as getTimezoneOffset,
|
|
366
|
+
_t as getUnixTime,
|
|
367
|
+
pt as intervalToDuration,
|
|
368
|
+
wt as isToday,
|
|
369
|
+
Ct as setDate,
|
|
370
|
+
bt as setYear,
|
|
371
|
+
zt as subMonths
|
|
273
372
|
};
|
package/dist/form2.js
CHANGED
|
@@ -126,11 +126,11 @@ const A = {
|
|
|
126
126
|
narrow: ["B", "A"],
|
|
127
127
|
abbreviated: ["BC", "AD"],
|
|
128
128
|
wide: ["Before Christ", "Anno Domini"]
|
|
129
|
-
},
|
|
129
|
+
}, I = {
|
|
130
130
|
narrow: ["1", "2", "3", "4"],
|
|
131
131
|
abbreviated: ["Q1", "Q2", "Q3", "Q4"],
|
|
132
132
|
wide: ["1st quarter", "2nd quarter", "3rd quarter", "4th quarter"]
|
|
133
|
-
},
|
|
133
|
+
}, R = {
|
|
134
134
|
narrow: ["J", "F", "M", "A", "M", "J", "J", "A", "S", "O", "N", "D"],
|
|
135
135
|
abbreviated: [
|
|
136
136
|
"Jan",
|
|
@@ -254,12 +254,12 @@ const A = {
|
|
|
254
254
|
defaultWidth: "wide"
|
|
255
255
|
}),
|
|
256
256
|
quarter: b({
|
|
257
|
-
values:
|
|
257
|
+
values: I,
|
|
258
258
|
defaultWidth: "wide",
|
|
259
259
|
argumentCallback: (t) => t - 1
|
|
260
260
|
}),
|
|
261
261
|
month: b({
|
|
262
|
-
values:
|
|
262
|
+
values: R,
|
|
263
263
|
defaultWidth: "wide"
|
|
264
264
|
}),
|
|
265
265
|
day: b({
|
|
@@ -435,7 +435,7 @@ let gt = {};
|
|
|
435
435
|
function O() {
|
|
436
436
|
return gt;
|
|
437
437
|
}
|
|
438
|
-
const E = 6048e5, wt = 864e5, Gt = 6e4, Bt =
|
|
438
|
+
const E = 6048e5, wt = 864e5, Gt = 6e4, Bt = 36e5, At = 43200, It = 1440, W = Symbol.for("constructDateFrom");
|
|
439
439
|
function g(t, e) {
|
|
440
440
|
return typeof t == "function" ? t(e) : t && typeof t == "object" && W in t ? t[W](e) : t instanceof Date ? new t.constructor(e) : new Date(e);
|
|
441
441
|
}
|
|
@@ -1203,13 +1203,15 @@ function jt(t) {
|
|
|
1203
1203
|
return e ? e[1].replace(_t, "'") : t;
|
|
1204
1204
|
}
|
|
1205
1205
|
export {
|
|
1206
|
-
|
|
1207
|
-
|
|
1206
|
+
Bt as a,
|
|
1207
|
+
It as b,
|
|
1208
1208
|
g as c,
|
|
1209
|
-
|
|
1209
|
+
bt as d,
|
|
1210
1210
|
lt as e,
|
|
1211
1211
|
Rt as f,
|
|
1212
1212
|
D as g,
|
|
1213
|
+
At as h,
|
|
1214
|
+
O as i,
|
|
1213
1215
|
Gt as m,
|
|
1214
1216
|
yt as n,
|
|
1215
1217
|
v as s,
|
package/dist/index.css
CHANGED
|
@@ -7,15 +7,15 @@
|
|
|
7
7
|
/* Light theme */
|
|
8
8
|
--caipira-light-primary: #fff;
|
|
9
9
|
--caipira-light-secondary: #f5f5f5;
|
|
10
|
-
--caipira-light-red: #
|
|
11
|
-
--caipira-light-green: #
|
|
10
|
+
--caipira-light-red: #d32f2f;
|
|
11
|
+
--caipira-light-green: #2e7d32;
|
|
12
12
|
--caipira-light-yellow: #df8e1d;
|
|
13
13
|
--caipira-light-blue: #1e66f5;
|
|
14
14
|
|
|
15
15
|
/* Dark theme */
|
|
16
|
-
--caipira-dark-primary: #
|
|
16
|
+
--caipira-dark-primary: #0f0f0f;
|
|
17
17
|
--caipira-dark-secondary: #1e1e1e;
|
|
18
|
-
--caipira-dark-red: #
|
|
18
|
+
--caipira-dark-red: #c62828;
|
|
19
19
|
--caipira-dark-green: #3fb950;
|
|
20
20
|
--caipira-dark-yellow: #df8e1d;
|
|
21
21
|
--caipira-dark-blue: #4089ff;
|
|
@@ -79,6 +79,8 @@
|
|
|
79
79
|
--text-color: var(--caipira-primary-inverted);
|
|
80
80
|
|
|
81
81
|
--input-radius: var(--radius-sm);
|
|
82
|
+
|
|
83
|
+
--content-radius: var(--radius-md);
|
|
82
84
|
}
|
|
83
85
|
}
|
|
84
86
|
|
|
@@ -181,14 +183,20 @@
|
|
|
181
183
|
color: var(--text-color);
|
|
182
184
|
}
|
|
183
185
|
.input-padding {
|
|
184
|
-
|
|
186
|
+
padding: calc(var(--spacing) * 2);
|
|
185
187
|
}
|
|
186
188
|
|
|
187
189
|
/* Card */
|
|
188
190
|
.card {
|
|
189
|
-
|
|
191
|
+
width: 100%;
|
|
192
|
+
max-width: var(--container-md);
|
|
193
|
+
position: relative;
|
|
194
|
+
border-style: var(--tw-border-style);
|
|
195
|
+
border-width: 1px;
|
|
190
196
|
border-color: var(--border-color);
|
|
191
197
|
background-color: var(--bg-color);
|
|
198
|
+
padding: calc(var(--spacing) * 4);
|
|
199
|
+
border-radius: var(--content-radius);
|
|
192
200
|
}
|
|
193
201
|
.card-grid {
|
|
194
202
|
@apply flex flex-wrap justify-start md:justify-start items-stretch gap-3;
|
|
@@ -204,9 +212,12 @@
|
|
|
204
212
|
|
|
205
213
|
/* Floatables (Modal, Popover, etc) */
|
|
206
214
|
.floatable {
|
|
207
|
-
@apply shadow-xs
|
|
215
|
+
@apply shadow-xs;
|
|
216
|
+
border-style: var(--tw-border-style);
|
|
217
|
+
border-width: 1px;
|
|
208
218
|
border-color: var(--border-color);
|
|
209
219
|
background-color: var(--bg-color);
|
|
220
|
+
border-radius: var(--content-radius);
|
|
210
221
|
}
|
|
211
222
|
|
|
212
223
|
/* Scrollbar */
|