@starasia/admin 8.2.4 → 8.2.5
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.js +1 -1
- package/dist/index.es.js +11 -5
- package/dist/index.umd.js +1 -1
- package/package.json +2 -2
package/dist/index.es.js
CHANGED
|
@@ -3250,7 +3250,10 @@ const Vn = ({
|
|
|
3250
3250
|
if (r === "is-empty" || r === "is-not-empty")
|
|
3251
3251
|
return /* @__PURE__ */ e(m, { paddingBlock: "sm", paddingInline: "sm", children: /* @__PURE__ */ e(b, { fontSize: "xs", color: "subtlest", children: "No further input required." }) });
|
|
3252
3252
|
if (r === "is-between") {
|
|
3253
|
-
const o = t != null && t.from
|
|
3253
|
+
const o = t != null && t.from || t != null && t.to ? {
|
|
3254
|
+
from: t != null && t.from ? new Date(t.from) : null,
|
|
3255
|
+
to: t != null && t.to ? new Date(t.to) : null
|
|
3256
|
+
} : void 0;
|
|
3254
3257
|
return (
|
|
3255
3258
|
// `key` forces a fresh StarasiaDate when switching to/from is-between —
|
|
3256
3259
|
// React would otherwise reuse the instance, leaving the wrong inner
|
|
@@ -3269,12 +3272,15 @@ const Vn = ({
|
|
|
3269
3272
|
return;
|
|
3270
3273
|
}
|
|
3271
3274
|
if (typeof i == "object" && i !== null && "from" in i && "to" in i) {
|
|
3272
|
-
|
|
3273
|
-
if (!l
|
|
3275
|
+
let { from: l, to: a } = i;
|
|
3276
|
+
if (!l && a && (l = a, a = null), !l && !a) {
|
|
3277
|
+
n({ op: r });
|
|
3278
|
+
return;
|
|
3279
|
+
}
|
|
3274
3280
|
n({
|
|
3275
3281
|
op: r,
|
|
3276
|
-
from:
|
|
3277
|
-
to:
|
|
3282
|
+
from: l ? l.toISOString() : void 0,
|
|
3283
|
+
to: a ? a.toISOString() : void 0
|
|
3278
3284
|
});
|
|
3279
3285
|
}
|
|
3280
3286
|
},
|