@iclips/ui 1.2.21 → 1.2.22
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/index.cjs +8 -8
- package/dist/index.cjs.map +1 -1
- package/dist/index.js +92 -92
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -1768,33 +1768,33 @@ function y1({
|
|
|
1768
1768
|
}, [t, L, s]);
|
|
1769
1769
|
const S = T.useMemo(() => {
|
|
1770
1770
|
if (!t) return h;
|
|
1771
|
-
const D = t.getHours().toString().padStart(2, "0"),
|
|
1772
|
-
return `${D}:${
|
|
1771
|
+
const D = t.getHours().toString().padStart(2, "0"), Y = t.getMinutes().toString().padStart(2, "0");
|
|
1772
|
+
return `${D}:${Y}`;
|
|
1773
1773
|
}, [t, h]), I = (D) => {
|
|
1774
1774
|
if (!D) {
|
|
1775
1775
|
e == null || e(void 0);
|
|
1776
1776
|
return;
|
|
1777
1777
|
}
|
|
1778
1778
|
if (d) {
|
|
1779
|
-
const [
|
|
1780
|
-
D.setHours(
|
|
1779
|
+
const [Y, $] = S.split(":").map(Number);
|
|
1780
|
+
D.setHours(Y, $, 0, 0);
|
|
1781
1781
|
} else
|
|
1782
1782
|
D.setHours(0, 0, 0, 0);
|
|
1783
1783
|
e == null || e(D), d || v(!1);
|
|
1784
1784
|
}, A = (D) => {
|
|
1785
1785
|
if (t) {
|
|
1786
|
-
const
|
|
1787
|
-
|
|
1786
|
+
const Y = new Date(t), [$, le] = D.split(":").map(Number);
|
|
1787
|
+
Y.setHours($, le, 0, 0), e == null || e(Y);
|
|
1788
1788
|
} else {
|
|
1789
|
-
const
|
|
1790
|
-
|
|
1789
|
+
const Y = /* @__PURE__ */ new Date(), [$, le] = D.split(":").map(Number);
|
|
1790
|
+
Y.setHours($, le, 0, 0), e == null || e(Y);
|
|
1791
1791
|
}
|
|
1792
1792
|
}, O = (D) => {
|
|
1793
|
-
const
|
|
1794
|
-
if (!
|
|
1793
|
+
const Y = D.trim();
|
|
1794
|
+
if (!Y) return null;
|
|
1795
1795
|
for (const $ of k)
|
|
1796
1796
|
try {
|
|
1797
|
-
const le = i1(
|
|
1797
|
+
const le = i1(Y, $, /* @__PURE__ */ new Date());
|
|
1798
1798
|
if (a1(le)) {
|
|
1799
1799
|
if (i && le < i || a && le > a) continue;
|
|
1800
1800
|
return le;
|
|
@@ -1804,8 +1804,8 @@ function y1({
|
|
|
1804
1804
|
}
|
|
1805
1805
|
return null;
|
|
1806
1806
|
}, U = (D) => {
|
|
1807
|
-
const
|
|
1808
|
-
C(
|
|
1807
|
+
const Y = D.target.value;
|
|
1808
|
+
C(Y), N(!1);
|
|
1809
1809
|
}, J = () => {
|
|
1810
1810
|
if (!M.trim()) {
|
|
1811
1811
|
e == null || e(void 0), N(!1);
|
|
@@ -1813,7 +1813,7 @@ function y1({
|
|
|
1813
1813
|
}
|
|
1814
1814
|
const D = O(M);
|
|
1815
1815
|
D ? (e == null || e(D), N(!1)) : N(!0);
|
|
1816
|
-
},
|
|
1816
|
+
}, _ = (D) => {
|
|
1817
1817
|
D.key === "Enter" ? (D.preventDefault(), J(), w || v(!0)) : D.key === "Escape" && (D.preventDefault(), C(t ? fe(t, L, { locale: s }) : ""), N(!1));
|
|
1818
1818
|
}, K = (D) => {
|
|
1819
1819
|
D.stopPropagation(), e == null || e(void 0), C(""), N(!1);
|
|
@@ -1828,7 +1828,7 @@ function y1({
|
|
|
1828
1828
|
value: M,
|
|
1829
1829
|
onChange: U,
|
|
1830
1830
|
onBlur: J,
|
|
1831
|
-
onKeyDown:
|
|
1831
|
+
onKeyDown: _,
|
|
1832
1832
|
placeholder: n,
|
|
1833
1833
|
disabled: r,
|
|
1834
1834
|
"aria-invalid": c || w,
|
|
@@ -2290,7 +2290,7 @@ function kw({
|
|
|
2290
2290
|
C.setFilter(E.field, E.value, B);
|
|
2291
2291
|
}))));
|
|
2292
2292
|
}, [JSON.stringify(s)]);
|
|
2293
|
-
const
|
|
2293
|
+
const _ = Le(async (E) => {
|
|
2294
2294
|
L(E), y && (u != null && u.onFilterChange) ? await u.onFilterChange(I, E) : C.setFilter(O, E, "contains");
|
|
2295
2295
|
}, [y, u, I, C, O]), K = (E) => {
|
|
2296
2296
|
if (/^\d{4}-\d{2}-\d{2}/.test(E)) {
|
|
@@ -2318,7 +2318,7 @@ function kw({
|
|
|
2318
2318
|
is_empty: "está vazio",
|
|
2319
2319
|
is_not_empty: "não está vazio",
|
|
2320
2320
|
entre: "entre"
|
|
2321
|
-
})[E] || E,
|
|
2321
|
+
})[E] || E, Y = I.map((E) => {
|
|
2322
2322
|
var Fe, gn;
|
|
2323
2323
|
const B = a.find((ht) => ht.value === E.field), ee = D(E.operator);
|
|
2324
2324
|
let pe;
|
|
@@ -2394,7 +2394,7 @@ function kw({
|
|
|
2394
2394
|
{
|
|
2395
2395
|
placeholder: n,
|
|
2396
2396
|
value: N,
|
|
2397
|
-
onChange: (E) =>
|
|
2397
|
+
onChange: (E) => _(E.target.value),
|
|
2398
2398
|
onKeyDown: (E) => {
|
|
2399
2399
|
E.key === "Enter" && E.preventDefault();
|
|
2400
2400
|
},
|
|
@@ -2448,7 +2448,7 @@ function kw({
|
|
|
2448
2448
|
I.length > 0 && /* @__PURE__ */ f(
|
|
2449
2449
|
Fv,
|
|
2450
2450
|
{
|
|
2451
|
-
activeFilters:
|
|
2451
|
+
activeFilters: Y,
|
|
2452
2452
|
onClearAll: le
|
|
2453
2453
|
}
|
|
2454
2454
|
),
|
|
@@ -17580,26 +17580,26 @@ function X6(t) {
|
|
|
17580
17580
|
const U = S.slice(0, A);
|
|
17581
17581
|
L = U.trim();
|
|
17582
17582
|
const J = u.slice(0, N + A + I[0].length);
|
|
17583
|
-
let
|
|
17583
|
+
let _ = [];
|
|
17584
17584
|
if (L)
|
|
17585
17585
|
if (s === "block")
|
|
17586
|
-
for (
|
|
17586
|
+
for (_ = h.blockTokens(U), _.forEach((K) => {
|
|
17587
17587
|
K.text && (!K.tokens || K.tokens.length === 0) && (K.tokens = h.inlineTokens(K.text));
|
|
17588
|
-
});
|
|
17589
|
-
const K =
|
|
17588
|
+
}); _.length > 0; ) {
|
|
17589
|
+
const K = _[_.length - 1];
|
|
17590
17590
|
if (K.type === "paragraph" && (!K.text || K.text.trim() === ""))
|
|
17591
|
-
|
|
17591
|
+
_.pop();
|
|
17592
17592
|
else
|
|
17593
17593
|
break;
|
|
17594
17594
|
}
|
|
17595
17595
|
else
|
|
17596
|
-
|
|
17596
|
+
_ = h.inlineTokens(L);
|
|
17597
17597
|
return {
|
|
17598
17598
|
type: e,
|
|
17599
17599
|
raw: J,
|
|
17600
17600
|
attributes: C,
|
|
17601
17601
|
content: L,
|
|
17602
|
-
tokens:
|
|
17602
|
+
tokens: _
|
|
17603
17603
|
};
|
|
17604
17604
|
}
|
|
17605
17605
|
}
|
|
@@ -19862,12 +19862,12 @@ function BN({
|
|
|
19862
19862
|
// <>
|
|
19863
19863
|
];
|
|
19864
19864
|
for (let U = 0; U < O.length; U++) {
|
|
19865
|
-
const [J,
|
|
19866
|
-
P(L, J, K), P(K,
|
|
19865
|
+
const [J, _] = O[U], K = P(N, J);
|
|
19866
|
+
P(L, J, K), P(K, _, N);
|
|
19867
19867
|
const D = At(Do);
|
|
19868
19868
|
re(K, e, D);
|
|
19869
|
-
const
|
|
19870
|
-
re(K, n), re(D, e, D), re(D, n,
|
|
19869
|
+
const Y = At();
|
|
19870
|
+
re(K, n), re(D, e, D), re(D, n, Y), re(Y, e, D), re(Y, n, Y), P(D, _, N), P(Y, _, N);
|
|
19871
19871
|
}
|
|
19872
19872
|
return P(i, Ua, M), P(i, Jd, RN), {
|
|
19873
19873
|
start: i,
|
|
@@ -22225,7 +22225,7 @@ function Qk({
|
|
|
22225
22225
|
query: (O == null ? void 0 : O.query) || null,
|
|
22226
22226
|
text: (O == null ? void 0 : O.text) || null,
|
|
22227
22227
|
items: [],
|
|
22228
|
-
command: (
|
|
22228
|
+
command: (_) => u({ editor: e, range: (O == null ? void 0 : O.range) || { from: 0, to: 0 }, props: _ }),
|
|
22229
22229
|
decorationNode: U,
|
|
22230
22230
|
clientRect: w(k, U)
|
|
22231
22231
|
};
|
|
@@ -22240,11 +22240,11 @@ function Qk({
|
|
|
22240
22240
|
view() {
|
|
22241
22241
|
return {
|
|
22242
22242
|
update: async (k, S) => {
|
|
22243
|
-
var I, A, O, U, J,
|
|
22244
|
-
const D = (I = this.key) == null ? void 0 : I.getState(S),
|
|
22243
|
+
var I, A, O, U, J, _, K;
|
|
22244
|
+
const D = (I = this.key) == null ? void 0 : I.getState(S), Y = (A = this.key) == null ? void 0 : A.getState(k.state), $ = D.active && Y.active && D.range.from !== Y.range.from, le = !D.active && Y.active, Ce = D.active && !Y.active, Ae = !le && !Ce && D.query !== Y.query, Ie = le || $ && Ae, V = Ae || $, Z = Ce || $ && Ae;
|
|
22245
22245
|
if (!Ie && !V && !Z)
|
|
22246
22246
|
return;
|
|
22247
|
-
const ne = Z && !Ie ? D :
|
|
22247
|
+
const ne = Z && !Ie ? D : Y, E = k.dom.querySelector(`[data-decoration-id="${ne.decorationId}"]`);
|
|
22248
22248
|
v = {
|
|
22249
22249
|
editor: e,
|
|
22250
22250
|
range: ne.range,
|
|
@@ -22261,7 +22261,7 @@ function Qk({
|
|
|
22261
22261
|
}, Ie && ((O = M == null ? void 0 : M.onBeforeStart) == null || O.call(M, v)), V && ((U = M == null ? void 0 : M.onBeforeUpdate) == null || U.call(M, v)), (V || Ie) && (v.items = await p({
|
|
22262
22262
|
editor: e,
|
|
22263
22263
|
query: ne.query
|
|
22264
|
-
})), Z && ((J = M == null ? void 0 : M.onExit) == null || J.call(M, v)), V && ((
|
|
22264
|
+
})), Z && ((J = M == null ? void 0 : M.onExit) == null || J.call(M, v)), V && ((_ = M == null ? void 0 : M.onUpdate) == null || _.call(M, v)), Ie && ((K = M == null ? void 0 : M.onStart) == null || K.call(M, v));
|
|
22265
22265
|
},
|
|
22266
22266
|
destroy: () => {
|
|
22267
22267
|
var k;
|
|
@@ -22285,10 +22285,10 @@ function Qk({
|
|
|
22285
22285
|
},
|
|
22286
22286
|
// Apply changes to the plugin state from a view transaction.
|
|
22287
22287
|
apply(k, S, I, A) {
|
|
22288
|
-
const { isEditable: O } = e, { composing: U } = e.view, { selection: J } = k, { empty:
|
|
22289
|
-
if (
|
|
22288
|
+
const { isEditable: O } = e, { composing: U } = e.view, { selection: J } = k, { empty: _, from: K } = J, D = { ...S }, Y = k.getMeta(t);
|
|
22289
|
+
if (Y && Y.exit)
|
|
22290
22290
|
return D.active = !1, D.decorationId = null, D.range = { from: 0, to: 0 }, D.query = null, D.text = null, D;
|
|
22291
|
-
if (D.composing = U, O && (
|
|
22291
|
+
if (D.composing = U, O && (_ || e.view.composing)) {
|
|
22292
22292
|
(K < S.range.from || K > S.range.to) && !U && !S.composing && (D.active = !1);
|
|
22293
22293
|
const $ = g({
|
|
22294
22294
|
char: n,
|
|
@@ -22319,11 +22319,11 @@ function Qk({
|
|
|
22319
22319
|
// Call the keydown hook if suggestion is active.
|
|
22320
22320
|
handleKeyDown(k, S) {
|
|
22321
22321
|
var I, A, O, U;
|
|
22322
|
-
const { active: J, range:
|
|
22322
|
+
const { active: J, range: _ } = L.getState(k.state);
|
|
22323
22323
|
if (!J)
|
|
22324
22324
|
return !1;
|
|
22325
22325
|
if (S.key === "Escape" || S.key === "Esc") {
|
|
22326
|
-
const D = L.getState(k.state),
|
|
22326
|
+
const D = L.getState(k.state), Y = (I = v == null ? void 0 : v.decorationNode) != null ? I : null, $ = Y ?? (D != null && D.decorationId ? k.dom.querySelector(`[data-decoration-id="${D.decorationId}"]`) : null);
|
|
22327
22327
|
if (((A = M == null ? void 0 : M.onKeyDown) == null ? void 0 : A.call(M, { view: k, event: S, range: D.range })) || !1)
|
|
22328
22328
|
return !0;
|
|
22329
22329
|
const Ce = {
|
|
@@ -22341,7 +22341,7 @@ function Qk({
|
|
|
22341
22341
|
};
|
|
22342
22342
|
return (O = M == null ? void 0 : M.onExit) == null || O.call(M, Ce), N(k, t), !0;
|
|
22343
22343
|
}
|
|
22344
|
-
return ((U = M == null ? void 0 : M.onKeyDown) == null ? void 0 : U.call(M, { view: k, event: S, range:
|
|
22344
|
+
return ((U = M == null ? void 0 : M.onKeyDown) == null ? void 0 : U.call(M, { view: k, event: S, range: _ })) || !1;
|
|
22345
22345
|
},
|
|
22346
22346
|
// Setup decorator on the currently active suggestion.
|
|
22347
22347
|
decorations(k) {
|
|
@@ -23036,8 +23036,8 @@ function Va(t, e) {
|
|
|
23036
23036
|
if (p === qi && O) {
|
|
23037
23037
|
var U = O[i];
|
|
23038
23038
|
Object.keys(A).forEach(function(J) {
|
|
23039
|
-
var
|
|
23040
|
-
A[J] += U[K] *
|
|
23039
|
+
var _ = [_t, Yt].indexOf(J) >= 0 ? 1 : -1, K = [Mt, Yt].indexOf(J) >= 0 ? "y" : "x";
|
|
23040
|
+
A[J] += U[K] * _;
|
|
23041
23041
|
});
|
|
23042
23042
|
}
|
|
23043
23043
|
return A;
|
|
@@ -23081,16 +23081,16 @@ function E9(t) {
|
|
|
23081
23081
|
allowedAutoPlacements: g
|
|
23082
23082
|
}) : ne);
|
|
23083
23083
|
}, []), N = e.rects.reference, L = e.rects.popper, k = /* @__PURE__ */ new Map(), S = !0, I = w[0], A = 0; A < w.length; A++) {
|
|
23084
|
-
var O = w[A], U = cn(O), J = Ei(O) === Ti,
|
|
23084
|
+
var O = w[A], U = cn(O), J = Ei(O) === Ti, _ = [Mt, Yt].indexOf(U) >= 0, K = _ ? "width" : "height", D = Va(e, {
|
|
23085
23085
|
placement: O,
|
|
23086
23086
|
boundary: d,
|
|
23087
23087
|
rootBoundary: u,
|
|
23088
23088
|
altBoundary: p,
|
|
23089
23089
|
padding: c
|
|
23090
|
-
}),
|
|
23091
|
-
N[K] > L[K] && (
|
|
23092
|
-
var $ = _o(
|
|
23093
|
-
if (a && le.push(D[U] <= 0), s && le.push(D[
|
|
23090
|
+
}), Y = _ ? J ? _t : xt : J ? Yt : Mt;
|
|
23091
|
+
N[K] > L[K] && (Y = _o(Y));
|
|
23092
|
+
var $ = _o(Y), le = [];
|
|
23093
|
+
if (a && le.push(D[U] <= 0), s && le.push(D[Y] <= 0, D[$] <= 0), le.every(function(Z) {
|
|
23094
23094
|
return Z;
|
|
23095
23095
|
})) {
|
|
23096
23096
|
I = O, S = !1;
|
|
@@ -23228,11 +23228,11 @@ function J9(t) {
|
|
|
23228
23228
|
};
|
|
23229
23229
|
if (L) {
|
|
23230
23230
|
if (a) {
|
|
23231
|
-
var J,
|
|
23231
|
+
var J, _ = w === "y" ? Mt : xt, K = w === "y" ? Yt : _t, D = w === "y" ? "height" : "width", Y = L[w], $ = Y + y[_], le = Y - y[K], Ce = h ? -S[D] / 2 : 0, Ae = M === Ti ? k[D] : S[D], Ie = M === Ti ? -S[D] : -k[D], V = e.elements.arrow, Z = h && V ? eu(V) : {
|
|
23232
23232
|
width: 0,
|
|
23233
23233
|
height: 0
|
|
23234
|
-
}, ne = e.modifiersData["arrow#persistent"] ? e.modifiersData["arrow#persistent"].padding : vb(), E = ne[
|
|
23235
|
-
L[w] = Ji, U[w] = Ji -
|
|
23234
|
+
}, ne = e.modifiersData["arrow#persistent"] ? e.modifiersData["arrow#persistent"].padding : vb(), E = ne[_], B = ne[K], ee = Ma(0, k[D], Z[D]), pe = C ? k[D] / 2 - Ce - ee - E - A.mainAxis : Ae - ee - E - A.mainAxis, Fe = C ? -k[D] / 2 + Ce + ee + B + A.mainAxis : Ie + ee + B + A.mainAxis, gn = e.elements.arrow && oo(e.elements.arrow), ht = gn ? w === "y" ? gn.clientTop || 0 : gn.clientLeft || 0 : 0, rn = (J = O == null ? void 0 : O[w]) != null ? J : 0, hr = Y + pe - rn - ht, ti = Y + Fe - rn, Ji = Ma(h ? $s($, hr) : $, Y, h ? Dr(le, ti) : le);
|
|
23235
|
+
L[w] = Ji, U[w] = Ji - Y;
|
|
23236
23236
|
}
|
|
23237
23237
|
if (s) {
|
|
23238
23238
|
var Vi, co = w === "x" ? Mt : xt, uo = w === "x" ? Yt : _t, bn = L[N], Hn = N === "y" ? "height" : "width", Yi = bn + y[co], pr = bn - y[uo], _i = [Mt, xt].indexOf(v) !== -1, ho = (Vi = O == null ? void 0 : O[N]) != null ? Vi : 0, po = _i ? Yi : bn - k[Hn] - S[Hn] - ho + A.altAxis, mo = _i ? bn + k[Hn] + S[Hn] - ho - A.altAxis : pr, go = h && _i ? u9(po, bn, mo) : Ma(h ? po : Yi, bn, h ? mo : pr);
|
|
@@ -23842,10 +23842,10 @@ function IS(t, e) {
|
|
|
23842
23842
|
var S = M.map(function(j) {
|
|
23843
23843
|
return j.fn(w);
|
|
23844
23844
|
}), I = t.hasAttribute("aria-expanded");
|
|
23845
|
-
return gn(), Ce(),
|
|
23845
|
+
return gn(), Ce(), Y(), $("onCreate", [w]), n.showOnCreate && Yi(), L.addEventListener("mouseenter", function() {
|
|
23846
23846
|
w.props.interactive && w.state.isVisible && w.clearDelayTimeouts();
|
|
23847
23847
|
}), L.addEventListener("mouseleave", function() {
|
|
23848
|
-
w.props.interactive && w.props.trigger.indexOf("mouseenter") >= 0 &&
|
|
23848
|
+
w.props.interactive && w.props.trigger.indexOf("mouseenter") >= 0 && _().addEventListener("mousemove", m);
|
|
23849
23849
|
}), w;
|
|
23850
23850
|
function A() {
|
|
23851
23851
|
var j = w.props.touch;
|
|
@@ -23861,7 +23861,7 @@ function IS(t, e) {
|
|
|
23861
23861
|
function J() {
|
|
23862
23862
|
return g || t;
|
|
23863
23863
|
}
|
|
23864
|
-
function
|
|
23864
|
+
function _() {
|
|
23865
23865
|
var j = J().parentNode;
|
|
23866
23866
|
return j ? uS(j) : document;
|
|
23867
23867
|
}
|
|
@@ -23871,7 +23871,7 @@ function IS(t, e) {
|
|
|
23871
23871
|
function D(j) {
|
|
23872
23872
|
return w.state.isMounted && !w.state.isVisible || ln.isTouch || d && d.type === "focus" ? 0 : zf(w.props.delay, j ? 0 : 1, Lt.delay);
|
|
23873
23873
|
}
|
|
23874
|
-
function
|
|
23874
|
+
function Y(j) {
|
|
23875
23875
|
j === void 0 && (j = !1), L.style.pointerEvents = w.props.interactive && !j ? "" : "none", L.style.zIndex = "" + w.props.zIndex;
|
|
23876
23876
|
}
|
|
23877
23877
|
function $(j, Q, q) {
|
|
@@ -23906,7 +23906,7 @@ function IS(t, e) {
|
|
|
23906
23906
|
}
|
|
23907
23907
|
}
|
|
23908
23908
|
function Ae() {
|
|
23909
|
-
|
|
23909
|
+
_().removeEventListener("mousemove", m), zo = zo.filter(function(j) {
|
|
23910
23910
|
return j !== m;
|
|
23911
23911
|
});
|
|
23912
23912
|
}
|
|
@@ -23934,11 +23934,11 @@ function IS(t, e) {
|
|
|
23934
23934
|
l = !1;
|
|
23935
23935
|
}
|
|
23936
23936
|
function ne() {
|
|
23937
|
-
var j =
|
|
23937
|
+
var j = _();
|
|
23938
23938
|
j.addEventListener("mousedown", Ie, !0), j.addEventListener("touchend", Ie, br), j.addEventListener("touchstart", Z, br), j.addEventListener("touchmove", V, br);
|
|
23939
23939
|
}
|
|
23940
23940
|
function E() {
|
|
23941
|
-
var j =
|
|
23941
|
+
var j = _();
|
|
23942
23942
|
j.removeEventListener("mousedown", Ie, !0), j.removeEventListener("touchend", Ie, br), j.removeEventListener("touchstart", Z, br), j.removeEventListener("touchmove", V, br);
|
|
23943
23943
|
}
|
|
23944
23944
|
function B(j, Q) {
|
|
@@ -24146,7 +24146,7 @@ function IS(t, e) {
|
|
|
24146
24146
|
}));
|
|
24147
24147
|
w.props = q, gn(), Q.interactiveDebounce !== q.interactiveDebounce && (Ae(), m = Yp(hr, q.interactiveDebounce)), Q.triggerTarget && !q.triggerTarget ? ui(Q.triggerTarget).forEach(function(ue) {
|
|
24148
24148
|
ue.removeAttribute("aria-expanded");
|
|
24149
|
-
}) : q.triggerTarget && t.removeAttribute("aria-expanded"), Ce(),
|
|
24149
|
+
}) : q.triggerTarget && t.removeAttribute("aria-expanded"), Ce(), Y(), k && k(Q, q), w.popperInstance && (co(), Hn().forEach(function(ue) {
|
|
24150
24150
|
requestAnimationFrame(ue._tippy.popperInstance.forceUpdate);
|
|
24151
24151
|
})), $("onAfterUpdate", [w, j]);
|
|
24152
24152
|
}
|
|
@@ -24160,7 +24160,7 @@ function IS(t, e) {
|
|
|
24160
24160
|
process.env.NODE_ENV !== "production" && kn(w.state.isDestroyed, oi("show"));
|
|
24161
24161
|
var j = w.state.isVisible, Q = w.state.isDestroyed, q = !w.state.isEnabled, ue = ln.isTouch && !w.props.touch, de = zf(w.props.duration, 0, Lt.duration);
|
|
24162
24162
|
if (!(j || Q || q || ue) && !J().hasAttribute("disabled") && ($("onShow", [w], !1), w.props.onShow(w) !== !1)) {
|
|
24163
|
-
if (w.state.isVisible = !0, U() && (L.style.visibility = "visible"),
|
|
24163
|
+
if (w.state.isVisible = !0, U() && (L.style.visibility = "visible"), Y(), ne(), w.state.isMounted || (L.style.transition = "none"), U()) {
|
|
24164
24164
|
var at = K(), Et = at.box, ni = at.content;
|
|
24165
24165
|
Of([Et, ni], 0);
|
|
24166
24166
|
}
|
|
@@ -24182,7 +24182,7 @@ function IS(t, e) {
|
|
|
24182
24182
|
process.env.NODE_ENV !== "production" && kn(w.state.isDestroyed, oi("hide"));
|
|
24183
24183
|
var j = !w.state.isVisible, Q = w.state.isDestroyed, q = !w.state.isEnabled, ue = zf(w.props.duration, 1, Lt.duration);
|
|
24184
24184
|
if (!(j || Q || q) && ($("onHide", [w], !1), w.props.onHide(w) !== !1)) {
|
|
24185
|
-
if (w.state.isVisible = !1, w.state.isShown = !1, c = !1, o = !1, U() && (L.style.visibility = "hidden"), Ae(), E(),
|
|
24185
|
+
if (w.state.isVisible = !1, w.state.isShown = !1, c = !1, o = !1, U() && (L.style.visibility = "hidden"), Ae(), E(), Y(!0), U()) {
|
|
24186
24186
|
var de = K(), at = de.box, Et = de.content;
|
|
24187
24187
|
w.props.animation && (Of([at, Et], ue), Gp([at, Et], "hidden"));
|
|
24188
24188
|
}
|
|
@@ -24190,7 +24190,7 @@ function IS(t, e) {
|
|
|
24190
24190
|
}
|
|
24191
24191
|
}
|
|
24192
24192
|
function Q4(j) {
|
|
24193
|
-
process.env.NODE_ENV !== "production" && kn(w.state.isDestroyed, oi("hideWithInteractivity")),
|
|
24193
|
+
process.env.NODE_ENV !== "production" && kn(w.state.isDestroyed, oi("hideWithInteractivity")), _().addEventListener("mousemove", m), _p(zo, m), m(j);
|
|
24194
24194
|
}
|
|
24195
24195
|
function G4() {
|
|
24196
24196
|
process.env.NODE_ENV !== "production" && kn(w.state.isDestroyed, oi("unmount")), w.state.isVisible && w.hide(), w.state.isMounted && (uo(), Hn().forEach(function(j) {
|
|
@@ -50945,23 +50945,23 @@ const _c = T.forwardRef(
|
|
|
50945
50945
|
readOnly: w,
|
|
50946
50946
|
...N
|
|
50947
50947
|
}, L) => {
|
|
50948
|
-
const [k, S] = T.useState(a), [I, A] = T.useState(""), [O, U] = T.useState(!1), J = T.useRef(null),
|
|
50948
|
+
const [k, S] = T.useState(a), [I, A] = T.useState(""), [O, U] = T.useState(!1), J = T.useRef(null), _ = i !== void 0 ? i : k, K = T.useCallback((B) => u ? new Intl.NumberFormat(p, u).format(B) : B.toFixed(d), [u, p, d]), D = (B) => {
|
|
50949
50949
|
const pe = B.replace(/[^\d,.-]/g, "").replace(",", "."), Fe = parseFloat(pe);
|
|
50950
50950
|
return isNaN(Fe) ? 0 : Fe;
|
|
50951
|
-
},
|
|
50952
|
-
const pe = ee ?
|
|
50951
|
+
}, Y = (B) => g ? Math.min(Math.max(B, s), l) : B, $ = T.useCallback((B, ee = !1) => {
|
|
50952
|
+
const pe = ee ? Y(B) : B;
|
|
50953
50953
|
i === void 0 && S(pe), o && o(pe);
|
|
50954
50954
|
}, [i, o, s, l, g]);
|
|
50955
50955
|
T.useEffect(() => {
|
|
50956
|
-
O || A(K(
|
|
50957
|
-
}, [
|
|
50956
|
+
O || A(K(_));
|
|
50957
|
+
}, [_, K, O]);
|
|
50958
50958
|
const le = () => {
|
|
50959
50959
|
if (C || w) return;
|
|
50960
|
-
const B =
|
|
50960
|
+
const B = _ + c;
|
|
50961
50961
|
B <= l && $(B);
|
|
50962
50962
|
}, Ce = () => {
|
|
50963
50963
|
if (C || w) return;
|
|
50964
|
-
const B =
|
|
50964
|
+
const B = _ - c;
|
|
50965
50965
|
B >= s && $(B);
|
|
50966
50966
|
}, Ae = (B) => {
|
|
50967
50967
|
const pe = B.target.value.replace(/[^\d,.-]/g, "");
|
|
@@ -50970,13 +50970,13 @@ const _c = T.forwardRef(
|
|
|
50970
50970
|
$(Fe, !1);
|
|
50971
50971
|
}, Ie = (B) => {
|
|
50972
50972
|
if (U(!1), m) {
|
|
50973
|
-
const ee = _
|
|
50973
|
+
const ee = Y(_);
|
|
50974
50974
|
$(ee, !1), A(K(ee));
|
|
50975
50975
|
} else
|
|
50976
|
-
A(K(
|
|
50976
|
+
A(K(_));
|
|
50977
50977
|
N.onBlur && N.onBlur(B);
|
|
50978
50978
|
}, V = (B) => {
|
|
50979
|
-
U(!0), A(
|
|
50979
|
+
U(!0), A(_.toString()), B.target.select(), N.onFocus && N.onFocus(B);
|
|
50980
50980
|
}, Z = (B) => {
|
|
50981
50981
|
C || w || (B.key === "ArrowUp" ? (B.preventDefault(), le()) : B.key === "ArrowDown" && (B.preventDefault(), Ce()), N.onKeyDown && N.onKeyDown(B));
|
|
50982
50982
|
}, ne = (B) => {
|
|
@@ -50990,7 +50990,7 @@ const _c = T.forwardRef(
|
|
|
50990
50990
|
{
|
|
50991
50991
|
type: "button",
|
|
50992
50992
|
onClick: le,
|
|
50993
|
-
disabled: C || w ||
|
|
50993
|
+
disabled: C || w || _ >= l,
|
|
50994
50994
|
tabIndex: -1,
|
|
50995
50995
|
"aria-label": "Increment",
|
|
50996
50996
|
className: x(
|
|
@@ -51009,7 +51009,7 @@ const _c = T.forwardRef(
|
|
|
51009
51009
|
{
|
|
51010
51010
|
type: "button",
|
|
51011
51011
|
onClick: Ce,
|
|
51012
|
-
disabled: C || w ||
|
|
51012
|
+
disabled: C || w || _ <= s,
|
|
51013
51013
|
tabIndex: -1,
|
|
51014
51014
|
"aria-label": "Decrement",
|
|
51015
51015
|
className: x(
|
|
@@ -51067,7 +51067,7 @@ const _c = T.forwardRef(
|
|
|
51067
51067
|
readOnly: w,
|
|
51068
51068
|
"aria-valuemin": s,
|
|
51069
51069
|
"aria-valuemax": l,
|
|
51070
|
-
"aria-valuenow":
|
|
51070
|
+
"aria-valuenow": _,
|
|
51071
51071
|
role: "spinbutton",
|
|
51072
51072
|
...N
|
|
51073
51073
|
}
|
|
@@ -51109,7 +51109,7 @@ const _c = T.forwardRef(
|
|
|
51109
51109
|
readOnly: w,
|
|
51110
51110
|
"aria-valuemin": s,
|
|
51111
51111
|
"aria-valuemax": l,
|
|
51112
|
-
"aria-valuenow":
|
|
51112
|
+
"aria-valuenow": _,
|
|
51113
51113
|
role: "spinbutton",
|
|
51114
51114
|
...N
|
|
51115
51115
|
}
|
|
@@ -51415,7 +51415,7 @@ function oD({
|
|
|
51415
51415
|
} else
|
|
51416
51416
|
V.from && V.from.setHours(0, 0, 0, 0), V.to && V.to.setHours(23, 59, 59, 999);
|
|
51417
51417
|
e == null || e(V);
|
|
51418
|
-
},
|
|
51418
|
+
}, _ = (V) => {
|
|
51419
51419
|
if (!(t != null && t.from)) return;
|
|
51420
51420
|
const Z = new Date(t.from), [ne, E] = V.split(":").map(Number);
|
|
51421
51421
|
Z.setHours(ne, E, 0, 0), e == null || e({ ...t, from: Z });
|
|
@@ -51433,7 +51433,7 @@ function oD({
|
|
|
51433
51433
|
Z.from.setHours(ne, E, 0, 0), Z.to.setHours(B, ee, 0, 0);
|
|
51434
51434
|
}
|
|
51435
51435
|
e == null || e(Z);
|
|
51436
|
-
},
|
|
51436
|
+
}, Y = (V) => {
|
|
51437
51437
|
const Z = V.trim();
|
|
51438
51438
|
if (!Z) return null;
|
|
51439
51439
|
for (const ne of I)
|
|
@@ -51455,10 +51455,10 @@ function oD({
|
|
|
51455
51455
|
for (const ee of ne)
|
|
51456
51456
|
if (Z.includes(ee)) {
|
|
51457
51457
|
const pe = Z.split(ee).map((Fe) => Fe.trim());
|
|
51458
|
-
if (pe.length === 2 && (E =
|
|
51458
|
+
if (pe.length === 2 && (E = Y(pe[0]), B = Y(pe[1]), E && B))
|
|
51459
51459
|
break;
|
|
51460
51460
|
}
|
|
51461
|
-
return E || (E =
|
|
51461
|
+
return E || (E = Y(Z), E && (B = new Date(E))), !E || !B ? null : (E > B && ([E, B] = [B, E]), { from: E, to: B });
|
|
51462
51462
|
}, le = (V) => {
|
|
51463
51463
|
const Z = V.target.value;
|
|
51464
51464
|
N(Z), k(!1);
|
|
@@ -51573,7 +51573,7 @@ function oD({
|
|
|
51573
51573
|
is,
|
|
51574
51574
|
{
|
|
51575
51575
|
value: O,
|
|
51576
|
-
onChange:
|
|
51576
|
+
onChange: _,
|
|
51577
51577
|
format: p,
|
|
51578
51578
|
minuteStep: h,
|
|
51579
51579
|
variant: "select",
|
|
@@ -51958,11 +51958,11 @@ function yD({
|
|
|
51958
51958
|
[t, d]
|
|
51959
51959
|
), O = T.useCallback(
|
|
51960
51960
|
async (D) => {
|
|
51961
|
-
const
|
|
51962
|
-
if (
|
|
51961
|
+
const Y = D ?? y;
|
|
51962
|
+
if (Y != null) {
|
|
51963
51963
|
k(!0);
|
|
51964
51964
|
try {
|
|
51965
|
-
await n(
|
|
51965
|
+
await n(Y), C(!1), v(null);
|
|
51966
51966
|
} catch ($) {
|
|
51967
51967
|
console.error("Error confirming value change:", $);
|
|
51968
51968
|
} finally {
|
|
@@ -51976,13 +51976,13 @@ function yD({
|
|
|
51976
51976
|
}, [r]), J = T.useCallback(() => p && S ? p(t, S) : S ? /* @__PURE__ */ b(Ue, { children: [
|
|
51977
51977
|
S.icon,
|
|
51978
51978
|
S.label
|
|
51979
|
-
] }) : t, [p, t, S]),
|
|
51980
|
-
return i ? /* @__PURE__ */ f("div", { ref: g, className: x("inline-flex", h), ...m, children: /* @__PURE__ */ f(be, { variant:
|
|
51979
|
+
] }) : t, [p, t, S]), _ = (S == null ? void 0 : S.variant) || a, K = S == null ? void 0 : S.className;
|
|
51980
|
+
return i ? /* @__PURE__ */ f("div", { ref: g, className: x("inline-flex", h), ...m, children: /* @__PURE__ */ f(be, { variant: _, className: K, children: J() }) }) : /* @__PURE__ */ b(Ue, { children: [
|
|
51981
51981
|
/* @__PURE__ */ f("div", { ref: g, className: x("inline-flex", h), ...m, children: /* @__PURE__ */ b(fl, { open: w, onOpenChange: N, children: [
|
|
51982
51982
|
/* @__PURE__ */ f(cl, { asChild: !0, disabled: u, children: /* @__PURE__ */ b(
|
|
51983
51983
|
be,
|
|
51984
51984
|
{
|
|
51985
|
-
variant:
|
|
51985
|
+
variant: _,
|
|
51986
51986
|
className: x(
|
|
51987
51987
|
"cursor-pointer hover:opacity-80 transition-opacity gap-1.5",
|
|
51988
51988
|
u && "opacity-50 cursor-not-allowed",
|
|
@@ -54992,16 +54992,16 @@ function T4({
|
|
|
54992
54992
|
},
|
|
54993
54993
|
handleToday: () => a(/* @__PURE__ */ new Date()),
|
|
54994
54994
|
handleDropTask: (A, O, U) => {
|
|
54995
|
-
const J = t.find((
|
|
54995
|
+
const J = t.find((_) => _.id === A);
|
|
54996
54996
|
if (J) {
|
|
54997
|
-
let
|
|
54997
|
+
let _ = new Date(O);
|
|
54998
54998
|
if (o === "month" || U === "editorial")
|
|
54999
54999
|
if (J.date) {
|
|
55000
55000
|
const D = new Date(J.date);
|
|
55001
|
-
|
|
55001
|
+
_.setHours(D.getHours(), D.getMinutes());
|
|
55002
55002
|
} else
|
|
55003
|
-
|
|
55004
|
-
const K = { ...J, date:
|
|
55003
|
+
_.setHours(9, 0);
|
|
55004
|
+
const K = { ...J, date: _ };
|
|
55005
55005
|
e(K);
|
|
55006
55006
|
}
|
|
55007
55007
|
},
|