@iclips/ui 1.3.18 → 1.3.19
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.js
CHANGED
|
@@ -1771,16 +1771,18 @@ function M0({
|
|
|
1771
1771
|
const E = t.getHours().toString().padStart(2, "0"), U = t.getMinutes().toString().padStart(2, "0");
|
|
1772
1772
|
return `${E}:${U}`;
|
|
1773
1773
|
}, [t, h]), T = (E) => {
|
|
1774
|
-
if (!
|
|
1775
|
-
|
|
1776
|
-
|
|
1774
|
+
if (!r) {
|
|
1775
|
+
if (!E) {
|
|
1776
|
+
e == null || e(void 0);
|
|
1777
|
+
return;
|
|
1778
|
+
}
|
|
1779
|
+
if (d) {
|
|
1780
|
+
const [U, _] = A.split(":").map(Number);
|
|
1781
|
+
E.setHours(U, _, 0, 0);
|
|
1782
|
+
} else
|
|
1783
|
+
E.setHours(0, 0, 0, 0);
|
|
1784
|
+
e == null || e(E), d || v(!1);
|
|
1777
1785
|
}
|
|
1778
|
-
if (d) {
|
|
1779
|
-
const [U, _] = A.split(":").map(Number);
|
|
1780
|
-
E.setHours(U, _, 0, 0);
|
|
1781
|
-
} else
|
|
1782
|
-
E.setHours(0, 0, 0, 0);
|
|
1783
|
-
e == null || e(E), d || v(!1);
|
|
1784
1786
|
}, S = (E) => {
|
|
1785
1787
|
if (t) {
|
|
1786
1788
|
const U = new Date(t), [_, Q] = E.split(":").map(Number);
|
|
@@ -1804,9 +1806,11 @@ function M0({
|
|
|
1804
1806
|
}
|
|
1805
1807
|
return null;
|
|
1806
1808
|
}, Y = (E) => {
|
|
1809
|
+
if (r) return;
|
|
1807
1810
|
const U = E.target.value;
|
|
1808
1811
|
x(U), N(!1);
|
|
1809
1812
|
}, F = () => {
|
|
1813
|
+
if (r) return;
|
|
1810
1814
|
if (!M.trim()) {
|
|
1811
1815
|
e == null || e(void 0), N(!1);
|
|
1812
1816
|
return;
|
|
@@ -1818,7 +1822,9 @@ function M0({
|
|
|
1818
1822
|
}, W = (E) => {
|
|
1819
1823
|
E.stopPropagation(), e == null || e(void 0), x(""), N(!1);
|
|
1820
1824
|
};
|
|
1821
|
-
return /* @__PURE__ */ b(it, { open: w, onOpenChange:
|
|
1825
|
+
return /* @__PURE__ */ b(it, { open: !r && w, onOpenChange: (E) => {
|
|
1826
|
+
r || v(E);
|
|
1827
|
+
}, children: [
|
|
1822
1828
|
/* @__PURE__ */ f(Ze, { asChild: !0, children: /* @__PURE__ */ b("div", { className: "relative w-full", children: [
|
|
1823
1829
|
/* @__PURE__ */ f(
|
|
1824
1830
|
Lt,
|