@updog/data-editor-wc 0.1.54 → 0.1.56
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/index.css +1 -1
- package/index.js +245 -244
- package/package.json +1 -1
package/index.js
CHANGED
|
@@ -783,9 +783,9 @@ var e = Object.create, t = Object.defineProperty, n = Object.getOwnPropertyDescr
|
|
|
783
783
|
function H(e, t) {
|
|
784
784
|
z++, ee[z] = e.current, e.current = t;
|
|
785
785
|
}
|
|
786
|
-
var te = B(null), ne = B(null),
|
|
787
|
-
function
|
|
788
|
-
switch (H(
|
|
786
|
+
var te = B(null), ne = B(null), U = B(null), re = B(null);
|
|
787
|
+
function ie(e, t) {
|
|
788
|
+
switch (H(U, t), H(ne, e), H(te, null), t.nodeType) {
|
|
789
789
|
case 9:
|
|
790
790
|
case 11:
|
|
791
791
|
e = (e = t.documentElement) && (e = e.namespaceURI) ? Jd(e) : 0;
|
|
@@ -803,16 +803,16 @@ var e = Object.create, t = Object.defineProperty, n = Object.getOwnPropertyDescr
|
|
|
803
803
|
}
|
|
804
804
|
V(te), H(te, e);
|
|
805
805
|
}
|
|
806
|
-
function
|
|
807
|
-
V(te), V(ne), V(
|
|
806
|
+
function ae() {
|
|
807
|
+
V(te), V(ne), V(U);
|
|
808
808
|
}
|
|
809
|
-
function
|
|
810
|
-
e.memoizedState !== null && H(
|
|
809
|
+
function oe(e) {
|
|
810
|
+
e.memoizedState !== null && H(re, e);
|
|
811
811
|
var t = te.current, n = Yd(t, e.type);
|
|
812
812
|
t !== n && (H(ne, e), H(te, n));
|
|
813
813
|
}
|
|
814
814
|
function se(e) {
|
|
815
|
-
ne.current === e && (V(te), V(ne)),
|
|
815
|
+
ne.current === e && (V(te), V(ne)), re.current === e && (V(re), ap._currentValue = R);
|
|
816
816
|
}
|
|
817
817
|
var ce, le;
|
|
818
818
|
function ue(e) {
|
|
@@ -2261,7 +2261,7 @@ var e = Object.create, t = Object.defineProperty, n = Object.getOwnPropertyDescr
|
|
|
2261
2261
|
var c = a.type;
|
|
2262
2262
|
gr(a.pendingProps.value, s.value) || (e === null ? e = [c] : e.push(c));
|
|
2263
2263
|
}
|
|
2264
|
-
} else if (a ===
|
|
2264
|
+
} else if (a === re.current) {
|
|
2265
2265
|
if (s = a.alternate, s === null) throw Error(i(387));
|
|
2266
2266
|
s.memoizedState.memoizedState !== a.memoizedState.memoizedState && (e === null ? e = [ap] : e.push(ap));
|
|
2267
2267
|
}
|
|
@@ -4135,14 +4135,14 @@ var e = Object.create, t = Object.defineProperty, n = Object.getOwnPropertyDescr
|
|
|
4135
4135
|
function kc(e, t, n) {
|
|
4136
4136
|
switch (t.tag) {
|
|
4137
4137
|
case 3:
|
|
4138
|
-
|
|
4138
|
+
ie(t, t.stateNode.containerInfo), Ui(t, na, e.memoizedState.cache), Li();
|
|
4139
4139
|
break;
|
|
4140
4140
|
case 27:
|
|
4141
4141
|
case 5:
|
|
4142
|
-
|
|
4142
|
+
oe(t);
|
|
4143
4143
|
break;
|
|
4144
4144
|
case 4:
|
|
4145
|
-
|
|
4145
|
+
ie(t, t.stateNode.containerInfo);
|
|
4146
4146
|
break;
|
|
4147
4147
|
case 10:
|
|
4148
4148
|
Ui(t, t.type, t.memoizedProps.value);
|
|
@@ -4199,7 +4199,7 @@ var e = Object.create, t = Object.defineProperty, n = Object.getOwnPropertyDescr
|
|
|
4199
4199
|
case 1: return r = t.type, a = Ws(r, t.pendingProps), hc(e, t, r, a, n);
|
|
4200
4200
|
case 3:
|
|
4201
4201
|
a: {
|
|
4202
|
-
if (
|
|
4202
|
+
if (ie(t, t.stateNode.containerInfo), e === null) throw Error(i(387));
|
|
4203
4203
|
r = t.pendingProps;
|
|
4204
4204
|
var o = t.memoizedState;
|
|
4205
4205
|
a = o.element, La(e, t), Wa(t, r, null, n);
|
|
@@ -4233,12 +4233,12 @@ var e = Object.create, t = Object.defineProperty, n = Object.getOwnPropertyDescr
|
|
|
4233
4233
|
t = t.child;
|
|
4234
4234
|
}
|
|
4235
4235
|
return t;
|
|
4236
|
-
case 26: return fc(e, t), e === null ? (n = If(t.type, null, t.pendingProps, null)) ? t.memoizedState = n : ki || (n = t.type, e = t.pendingProps, r = qd(
|
|
4237
|
-
case 27: return
|
|
4238
|
-
case 5: return e === null && ki && ((a = r = Oi) && (r = lf(r, t.type, t.pendingProps, ji), r === null ? a = !1 : (t.stateNode = r, Di = t, Oi = hf(r.firstChild), ji = !1, a = !0)), a || Ni(t)),
|
|
4236
|
+
case 26: return fc(e, t), e === null ? (n = If(t.type, null, t.pendingProps, null)) ? t.memoizedState = n : ki || (n = t.type, e = t.pendingProps, r = qd(U.current).createElement(n), r[et] = t, r[tt] = e, Vd(r, n, e), pt(r), t.stateNode = r) : t.memoizedState = If(t.type, e.memoizedProps, t.pendingProps, e.memoizedState), null;
|
|
4237
|
+
case 27: return oe(t), e === null && ki && (r = t.stateNode = yf(t.type, t.pendingProps, U.current), Di = t, ji = !0, a = Oi, af(t.type) ? (gf = a, Oi = hf(r.firstChild)) : Oi = a), nc(e, t, t.pendingProps.children, n), fc(e, t), e === null && (t.flags |= 4194304), t.child;
|
|
4238
|
+
case 5: return e === null && ki && ((a = r = Oi) && (r = lf(r, t.type, t.pendingProps, ji), r === null ? a = !1 : (t.stateNode = r, Di = t, Oi = hf(r.firstChild), ji = !1, a = !0)), a || Ni(t)), oe(t), a = t.type, o = t.pendingProps, s = e === null ? null : e.memoizedProps, r = o.children, Xd(a, o) ? r = null : s !== null && Xd(a, s) && (t.flags |= 32), t.memoizedState !== null && (a = bo(e, t, Co, null, null, n), ap._currentValue = a), fc(e, t), nc(e, t, r, n), t.child;
|
|
4239
4239
|
case 6: return e === null && ki && ((e = n = Oi) && (n = uf(n, t.pendingProps, ji), n === null ? e = !1 : (t.stateNode = n, Di = t, Oi = null, e = !0)), e || Ni(t)), null;
|
|
4240
4240
|
case 13: return bc(e, t, n);
|
|
4241
|
-
case 4: return
|
|
4241
|
+
case 4: return ie(t, t.stateNode.containerInfo), r = t.pendingProps, e === null ? t.child = Na(t, null, r, n) : nc(e, t, r, n), t.child;
|
|
4242
4242
|
case 11: return rc(e, t, t.type, t.pendingProps, n);
|
|
4243
4243
|
case 7: return nc(e, t, t.pendingProps, n), t.child;
|
|
4244
4244
|
case 8: return nc(e, t, t.pendingProps.children, n), t.child;
|
|
@@ -4311,12 +4311,12 @@ var e = Object.create, t = Object.defineProperty, n = Object.getOwnPropertyDescr
|
|
|
4311
4311
|
case 9:
|
|
4312
4312
|
case 14: return Ic(t), null;
|
|
4313
4313
|
case 1: return Ic(t), null;
|
|
4314
|
-
case 3: return n = t.stateNode, r = null, e !== null && (r = e.memoizedState.cache), t.memoizedState.cache !== r && (t.flags |= 2048), Wi(na),
|
|
4314
|
+
case 3: return n = t.stateNode, r = null, e !== null && (r = e.memoizedState.cache), t.memoizedState.cache !== r && (t.flags |= 2048), Wi(na), ae(), n.pendingContext && (n.context = n.pendingContext, n.pendingContext = null), (e === null || e.child === null) && (Ii(t) ? jc(t) : e === null || e.memoizedState.isDehydrated && !(t.flags & 256) || (t.flags |= 1024, Ri())), Ic(t), null;
|
|
4315
4315
|
case 26:
|
|
4316
4316
|
var a = t.type, o = t.memoizedState;
|
|
4317
4317
|
return e === null ? (jc(t), o === null ? (Ic(t), Mc(t, a, null, r, n)) : (Ic(t), Nc(t, o))) : o ? o === e.memoizedState ? (Ic(t), t.flags &= -16777217) : (jc(t), Ic(t), Nc(t, o)) : (e = e.memoizedProps, e !== r && jc(t), Ic(t), Mc(t, a, e, r, n)), null;
|
|
4318
4318
|
case 27:
|
|
4319
|
-
if (se(t), n =
|
|
4319
|
+
if (se(t), n = U.current, a = t.type, e !== null && t.stateNode != null) e.memoizedProps !== r && jc(t);
|
|
4320
4320
|
else {
|
|
4321
4321
|
if (!r) {
|
|
4322
4322
|
if (t.stateNode === null) throw Error(i(166));
|
|
@@ -4334,7 +4334,7 @@ var e = Object.create, t = Object.defineProperty, n = Object.getOwnPropertyDescr
|
|
|
4334
4334
|
}
|
|
4335
4335
|
if (o = te.current, Ii(t)) Pi(t, o);
|
|
4336
4336
|
else {
|
|
4337
|
-
var s = qd(
|
|
4337
|
+
var s = qd(U.current);
|
|
4338
4338
|
switch (o) {
|
|
4339
4339
|
case 1:
|
|
4340
4340
|
o = s.createElementNS("http://www.w3.org/2000/svg", a);
|
|
@@ -4393,7 +4393,7 @@ var e = Object.create, t = Object.defineProperty, n = Object.getOwnPropertyDescr
|
|
|
4393
4393
|
if (e && t.stateNode != null) e.memoizedProps !== r && jc(t);
|
|
4394
4394
|
else {
|
|
4395
4395
|
if (typeof r != "string" && t.stateNode === null) throw Error(i(166));
|
|
4396
|
-
if (e =
|
|
4396
|
+
if (e = U.current, Ii(t)) {
|
|
4397
4397
|
if (e = t.stateNode, n = t.memoizedProps, r = null, a = Di, a !== null) switch (a.tag) {
|
|
4398
4398
|
case 27:
|
|
4399
4399
|
case 5: r = a.memoizedProps;
|
|
@@ -4429,7 +4429,7 @@ var e = Object.create, t = Object.defineProperty, n = Object.getOwnPropertyDescr
|
|
|
4429
4429
|
if (!a) return t.flags & 256 ? (io(t), t) : (io(t), null);
|
|
4430
4430
|
}
|
|
4431
4431
|
return io(t), t.flags & 128 ? (t.lanes = n, t) : (n = r !== null, e = e !== null && e.memoizedState !== null, n && (r = t.child, a = null, r.alternate !== null && r.alternate.memoizedState !== null && r.alternate.memoizedState.cachePool !== null && (a = r.alternate.memoizedState.cachePool.pool), o = null, r.memoizedState !== null && r.memoizedState.cachePool !== null && (o = r.memoizedState.cachePool.pool), o !== a && (r.flags |= 2048)), n !== e && n && (t.child.flags |= 8192), Pc(t, t.updateQueue), Ic(t), null);
|
|
4432
|
-
case 4: return
|
|
4432
|
+
case 4: return ae(), e === null && Od(t.stateNode.containerInfo), Ic(t), null;
|
|
4433
4433
|
case 10: return Wi(t.type), Ic(t), null;
|
|
4434
4434
|
case 19:
|
|
4435
4435
|
if (V(ao), r = t.memoizedState, r === null) return Ic(t), null;
|
|
@@ -4462,7 +4462,7 @@ var e = Object.create, t = Object.defineProperty, n = Object.getOwnPropertyDescr
|
|
|
4462
4462
|
function Rc(e, t) {
|
|
4463
4463
|
switch (Ti(t), t.tag) {
|
|
4464
4464
|
case 1: return e = t.flags, e & 65536 ? (t.flags = e & -65537 | 128, t) : null;
|
|
4465
|
-
case 3: return Wi(na),
|
|
4465
|
+
case 3: return Wi(na), ae(), e = t.flags, e & 65536 && !(e & 128) ? (t.flags = e & -65537 | 128, t) : null;
|
|
4466
4466
|
case 26:
|
|
4467
4467
|
case 27:
|
|
4468
4468
|
case 5: return se(t), null;
|
|
@@ -4479,7 +4479,7 @@ var e = Object.create, t = Object.defineProperty, n = Object.getOwnPropertyDescr
|
|
|
4479
4479
|
}
|
|
4480
4480
|
return e = t.flags, e & 65536 ? (t.flags = e & -65537 | 128, t) : null;
|
|
4481
4481
|
case 19: return V(ao), null;
|
|
4482
|
-
case 4: return
|
|
4482
|
+
case 4: return ae(), null;
|
|
4483
4483
|
case 10: return Wi(t.type), null;
|
|
4484
4484
|
case 22:
|
|
4485
4485
|
case 23: return io(t), Za(), e !== null && V(pa), e = t.flags, e & 65536 ? (t.flags = e & -65537 | 128, t) : null;
|
|
@@ -4491,7 +4491,7 @@ var e = Object.create, t = Object.defineProperty, n = Object.getOwnPropertyDescr
|
|
|
4491
4491
|
function zc(e, t) {
|
|
4492
4492
|
switch (Ti(t), t.tag) {
|
|
4493
4493
|
case 3:
|
|
4494
|
-
Wi(na),
|
|
4494
|
+
Wi(na), ae();
|
|
4495
4495
|
break;
|
|
4496
4496
|
case 26:
|
|
4497
4497
|
case 27:
|
|
@@ -4499,7 +4499,7 @@ var e = Object.create, t = Object.defineProperty, n = Object.getOwnPropertyDescr
|
|
|
4499
4499
|
se(t);
|
|
4500
4500
|
break;
|
|
4501
4501
|
case 4:
|
|
4502
|
-
|
|
4502
|
+
ae();
|
|
4503
4503
|
break;
|
|
4504
4504
|
case 31:
|
|
4505
4505
|
t.memoizedState !== null && io(t);
|
|
@@ -7337,7 +7337,7 @@ var e = Object.create, t = Object.defineProperty, n = Object.getOwnPropertyDescr
|
|
|
7337
7337
|
}
|
|
7338
7338
|
}
|
|
7339
7339
|
function If(e, t, n, r) {
|
|
7340
|
-
var a = (a =
|
|
7340
|
+
var a = (a = U.current) ? Cf(a) : null;
|
|
7341
7341
|
if (!a) throw Error(i(446));
|
|
7342
7342
|
switch (e) {
|
|
7343
7343
|
case "meta":
|
|
@@ -8696,13 +8696,13 @@ var P = (...e) => e.filter((e, t, n) => !!e && e.trim() !== "" && n.indexOf(e) =
|
|
|
8696
8696
|
d: "M15 14h5l-5 6h5",
|
|
8697
8697
|
key: "ur5jdg"
|
|
8698
8698
|
}]
|
|
8699
|
-
]),
|
|
8699
|
+
]), U = B("arrow-up", [["path", {
|
|
8700
8700
|
d: "m5 12 7-7 7 7",
|
|
8701
8701
|
key: "hav0vg"
|
|
8702
8702
|
}], ["path", {
|
|
8703
8703
|
d: "M12 19V5",
|
|
8704
8704
|
key: "x0mq9r"
|
|
8705
|
-
}]]),
|
|
8705
|
+
}]]), re = B("calendar", [
|
|
8706
8706
|
["path", {
|
|
8707
8707
|
d: "M8 2v4",
|
|
8708
8708
|
key: "1cmpym"
|
|
@@ -8723,7 +8723,7 @@ var P = (...e) => e.filter((e, t, n) => !!e && e.trim() !== "" && n.indexOf(e) =
|
|
|
8723
8723
|
d: "M3 10h18",
|
|
8724
8724
|
key: "8toen8"
|
|
8725
8725
|
}]
|
|
8726
|
-
]),
|
|
8726
|
+
]), ie = B("case-sensitive", [
|
|
8727
8727
|
["path", {
|
|
8728
8728
|
d: "m2 16 4.039-9.69a.5.5 0 0 1 .923 0L11 16",
|
|
8729
8729
|
key: "d5nyq2"
|
|
@@ -8742,10 +8742,10 @@ var P = (...e) => e.filter((e, t, n) => !!e && e.trim() !== "" && n.indexOf(e) =
|
|
|
8742
8742
|
r: "3.5",
|
|
8743
8743
|
key: "z97x68"
|
|
8744
8744
|
}]
|
|
8745
|
-
]),
|
|
8745
|
+
]), ae = B("check", [["path", {
|
|
8746
8746
|
d: "M20 6 9 17l-5-5",
|
|
8747
8747
|
key: "1gmf2c"
|
|
8748
|
-
}]]),
|
|
8748
|
+
}]]), oe = B("chevron-down", [["path", {
|
|
8749
8749
|
d: "m6 9 6 6 6-6",
|
|
8750
8750
|
key: "qrunsl"
|
|
8751
8751
|
}]]), se = B("chevron-left", [["path", {
|
|
@@ -9965,7 +9965,7 @@ var St = () => {
|
|
|
9965
9965
|
style: { outlineOffset: 1 },
|
|
9966
9966
|
children: /* @__PURE__ */ (0, O.jsx)("div", {
|
|
9967
9967
|
className: "updog-checkbox__icon",
|
|
9968
|
-
children: f ? /* @__PURE__ */ (0, O.jsx)(Ee, { size: x }) : /* @__PURE__ */ (0, O.jsx)(
|
|
9968
|
+
children: f ? /* @__PURE__ */ (0, O.jsx)(Ee, { size: x }) : /* @__PURE__ */ (0, O.jsx)(ae, { size: x })
|
|
9969
9969
|
})
|
|
9970
9970
|
}),
|
|
9971
9971
|
k
|
|
@@ -12053,7 +12053,7 @@ function Do(e) {
|
|
|
12053
12053
|
k,
|
|
12054
12054
|
_
|
|
12055
12055
|
]);
|
|
12056
|
-
let te = y.useRef(null), ne = y.useRef(null),
|
|
12056
|
+
let te = y.useRef(null), ne = y.useRef(null), U = vo([te, N?.beforeInsideRef]), re = vo([ne, N?.afterInsideRef]);
|
|
12057
12057
|
y.useEffect(() => {
|
|
12058
12058
|
var e, t;
|
|
12059
12059
|
if (r || !b) return;
|
|
@@ -12173,18 +12173,18 @@ function Do(e) {
|
|
|
12173
12173
|
B,
|
|
12174
12174
|
k
|
|
12175
12175
|
]);
|
|
12176
|
-
function
|
|
12176
|
+
function ie(e) {
|
|
12177
12177
|
return r || !u || !l ? null : /* @__PURE__ */ (0, O.jsx)(Eo, {
|
|
12178
12178
|
ref: e === "start" ? P : F,
|
|
12179
12179
|
onClick: (e) => h(!1, e.nativeEvent),
|
|
12180
12180
|
children: typeof u == "string" ? u : "Dismiss"
|
|
12181
12181
|
});
|
|
12182
12182
|
}
|
|
12183
|
-
let
|
|
12183
|
+
let ae = !r && E && (l ? !w : !0) && (z || l);
|
|
12184
12184
|
return /* @__PURE__ */ (0, O.jsxs)(O.Fragment, { children: [
|
|
12185
|
-
|
|
12185
|
+
ae && /* @__PURE__ */ (0, O.jsx)(uo, {
|
|
12186
12186
|
"data-type": "inside",
|
|
12187
|
-
ref:
|
|
12187
|
+
ref: U,
|
|
12188
12188
|
onFocus: (e) => {
|
|
12189
12189
|
if (l) {
|
|
12190
12190
|
let e = H();
|
|
@@ -12196,12 +12196,12 @@ function Do(e) {
|
|
|
12196
12196
|
}
|
|
12197
12197
|
}
|
|
12198
12198
|
}),
|
|
12199
|
-
!w &&
|
|
12199
|
+
!w && ie("start"),
|
|
12200
12200
|
n,
|
|
12201
|
-
|
|
12202
|
-
|
|
12201
|
+
ie("end"),
|
|
12202
|
+
ae && /* @__PURE__ */ (0, O.jsx)(uo, {
|
|
12203
12203
|
"data-type": "inside",
|
|
12204
|
-
ref:
|
|
12204
|
+
ref: re,
|
|
12205
12205
|
onFocus: (e) => {
|
|
12206
12206
|
if (l) Xa(H()[0]);
|
|
12207
12207
|
else if (N != null && N.preserveTabOrder && N.portalNode) if (d && (I.current = !0), di(e, N.portalNode)) ui(v)?.focus();
|
|
@@ -12705,11 +12705,11 @@ function $o(e, t) {
|
|
|
12705
12705
|
}, [e, x]);
|
|
12706
12706
|
let j = Xr(() => {
|
|
12707
12707
|
c(P.current === -1 ? null : P.current);
|
|
12708
|
-
}), M = Fr(i.domReference), N = y.useRef(g), P = y.useRef(u ?? -1), F = y.useRef(null), I = y.useRef(!0), L = y.useRef(j), R = y.useRef(!!i.floating), ee = y.useRef(n), z = y.useRef(!1), B = y.useRef(!1), V = Jr(b), H = Jr(n), te = Jr(w), ne = Jr(u), [
|
|
12708
|
+
}), M = Fr(i.domReference), N = y.useRef(g), P = y.useRef(u ?? -1), F = y.useRef(null), I = y.useRef(!0), L = y.useRef(j), R = y.useRef(!!i.floating), ee = y.useRef(n), z = y.useRef(!1), B = y.useRef(!1), V = Jr(b), H = Jr(n), te = Jr(w), ne = Jr(u), [U, re] = y.useState(), [ie, ae] = y.useState(), oe = Xr(() => {
|
|
12709
12709
|
function e(e) {
|
|
12710
12710
|
if (h) {
|
|
12711
12711
|
var t;
|
|
12712
|
-
(t = e.id) != null && t.endsWith("-fui-option") && (e.id = a + "-" + Math.random().toString(16).slice(2, 10)),
|
|
12712
|
+
(t = e.id) != null && t.endsWith("-fui-option") && (e.id = a + "-" + Math.random().toString(16).slice(2, 10)), re(e.id), A?.events.emit("virtualfocus", e), T && (T.current = e);
|
|
12713
12713
|
} else Xa(e, {
|
|
12714
12714
|
sync: z.current,
|
|
12715
12715
|
preventScroll: !0
|
|
@@ -12738,13 +12738,13 @@ function $o(e, t) {
|
|
|
12738
12738
|
]), Kr(() => {
|
|
12739
12739
|
if (l && n && i.floating) if (s == null) {
|
|
12740
12740
|
if (z.current = !1, ne.current != null) return;
|
|
12741
|
-
if (R.current && (P.current = -1,
|
|
12741
|
+
if (R.current && (P.current = -1, oe()), (!ee.current || !R.current) && N.current && (F.current != null || N.current === !0 && F.current == null)) {
|
|
12742
12742
|
let e = 0, t = () => {
|
|
12743
12743
|
o.current[0] == null ? (e < 2 && (e ? requestAnimationFrame : queueMicrotask)(t), e++) : (P.current = F.current == null || Xo(F.current, x, m) || p ? $r(o, V.current) : ei(o, V.current), F.current = null, j());
|
|
12744
12744
|
};
|
|
12745
12745
|
t();
|
|
12746
12746
|
}
|
|
12747
|
-
} else Qr(o, s) || (P.current = s,
|
|
12747
|
+
} else Qr(o, s) || (P.current = s, oe(), B.current = !1);
|
|
12748
12748
|
}, [
|
|
12749
12749
|
l,
|
|
12750
12750
|
n,
|
|
@@ -12756,7 +12756,7 @@ function $o(e, t) {
|
|
|
12756
12756
|
x,
|
|
12757
12757
|
m,
|
|
12758
12758
|
j,
|
|
12759
|
-
|
|
12759
|
+
oe,
|
|
12760
12760
|
V
|
|
12761
12761
|
]), Kr(() => {
|
|
12762
12762
|
var e;
|
|
@@ -12772,7 +12772,7 @@ function $o(e, t) {
|
|
|
12772
12772
|
]), Kr(() => {
|
|
12773
12773
|
if (!l || !A || !h || k) return;
|
|
12774
12774
|
function e(e) {
|
|
12775
|
-
|
|
12775
|
+
ae(e.id), T && (T.current = e);
|
|
12776
12776
|
}
|
|
12777
12777
|
return A.events.on("virtualfocus", e), () => {
|
|
12778
12778
|
A.events.off("virtualfocus", e);
|
|
@@ -12875,12 +12875,12 @@ function $o(e, t) {
|
|
|
12875
12875
|
disabledIndices: b
|
|
12876
12876
|
})), Qr(o, P.current) && (P.current = -1), j();
|
|
12877
12877
|
}
|
|
12878
|
-
}), de = y.useMemo(() => h && n && se && { "aria-activedescendant":
|
|
12878
|
+
}), de = y.useMemo(() => h && n && se && { "aria-activedescendant": ie || U }, [
|
|
12879
12879
|
h,
|
|
12880
12880
|
n,
|
|
12881
12881
|
se,
|
|
12882
|
-
|
|
12883
|
-
|
|
12882
|
+
ie,
|
|
12883
|
+
U
|
|
12884
12884
|
]), fe = y.useMemo(() => ({
|
|
12885
12885
|
"aria-orientation": x === "both" ? void 0 : x,
|
|
12886
12886
|
...M ? {} : de,
|
|
@@ -12913,8 +12913,8 @@ function $o(e, t) {
|
|
|
12913
12913
|
bubbles: !0
|
|
12914
12914
|
});
|
|
12915
12915
|
if (s || c) {
|
|
12916
|
-
let r = n.context?.elements.domReference === e.currentTarget, i = c && !r ? n.context?.elements.domReference : s ? o.current.find((e) => e?.id ===
|
|
12917
|
-
i && (Vr(e), i.dispatchEvent(t),
|
|
12916
|
+
let r = n.context?.elements.domReference === e.currentTarget, i = c && !r ? n.context?.elements.domReference : s ? o.current.find((e) => e?.id === U) : null;
|
|
12917
|
+
i && (Vr(e), i.dispatchEvent(t), ae(void 0));
|
|
12918
12918
|
}
|
|
12919
12919
|
if ((d || i) && n.context && n.context.open && n.parentId && e.currentTarget !== n.context.elements.domReference) {
|
|
12920
12920
|
var g;
|
|
@@ -12945,7 +12945,7 @@ function $o(e, t) {
|
|
|
12945
12945
|
onClick: e
|
|
12946
12946
|
};
|
|
12947
12947
|
}, [
|
|
12948
|
-
|
|
12948
|
+
U,
|
|
12949
12949
|
de,
|
|
12950
12950
|
C,
|
|
12951
12951
|
ue,
|
|
@@ -13507,118 +13507,119 @@ var As = (0, y.forwardRef)(({ children: e, ...t }, n) => {
|
|
|
13507
13507
|
if (!e) throw Error("useDropdownContext must be used within a DropdownProvider");
|
|
13508
13508
|
return e;
|
|
13509
13509
|
}, Ps = (0, y.createContext)({}), Fs = () => (0, y.useContext)(Ps), Is = (e) => {
|
|
13510
|
-
let { open: t, onOpenChange: n, defaultIsOpen: r, disabled: i = !1, animation: a = !0, placement: o = "bottom", offset: s = 8, flip: c = !0, shift: l = !0, autoPlacement: u = !1,
|
|
13510
|
+
let { open: t, onOpenChange: n, defaultIsOpen: r, disabled: i = !1, animation: a = !0, placement: o = "bottom", offset: s = 8, flip: c = !0, shift: l = !0, autoPlacement: u = !1, closeOnScroll: d = !0, interactions: f = ["click", "dismiss"], role: p = "dialog", minWidth: m, maxWidth: h, minHeight: g, maxHeight: _, matchTriggerWidth: v = !1, typeaheadListRef: b, triggerId: x, contentId: S, middleware: C, clickOptions: w, hoverOptions: T, focusOptions: E, dismissOptions: D, roleOptions: O, listNavigationOptions: k, typeaheadOptions: A } = e, j = (0, y.useId)(), M = `${j}-trigger`, N = `${j}-content`, P = x || M, F = S || N, { value: I, onChange: L } = kt({
|
|
13511
13511
|
controlledValue: t,
|
|
13512
13512
|
controlledOnChange: n,
|
|
13513
13513
|
defaultValue: r
|
|
13514
|
-
}),
|
|
13515
|
-
|
|
13516
|
-
}, [
|
|
13514
|
+
}), R = za(), ee = (0, y.useCallback)(() => {
|
|
13515
|
+
L(!1), R && R.events.emit("dismissAll");
|
|
13516
|
+
}, [L, R]);
|
|
13517
13517
|
(0, y.useEffect)(() => {
|
|
13518
|
-
if (!
|
|
13518
|
+
if (!R) return;
|
|
13519
13519
|
let e = () => {
|
|
13520
|
-
|
|
13520
|
+
L(!1);
|
|
13521
13521
|
};
|
|
13522
|
-
return
|
|
13523
|
-
|
|
13522
|
+
return R.events.on("dismissAll", e), () => {
|
|
13523
|
+
R.events.off("dismissAll", e);
|
|
13524
13524
|
};
|
|
13525
|
-
}, [
|
|
13526
|
-
let
|
|
13527
|
-
|
|
13528
|
-
}, []), [
|
|
13529
|
-
open:
|
|
13530
|
-
onOpenChange:
|
|
13525
|
+
}, [R, L]);
|
|
13526
|
+
let z = (0, y.useRef)([]), B = (0, y.useCallback)((e) => (t) => {
|
|
13527
|
+
z.current[e] = t;
|
|
13528
|
+
}, []), [V, H] = (0, y.useState)(null), { refs: te, floatingStyles: ne, context: U, placement: re } = Ho({
|
|
13529
|
+
open: I,
|
|
13530
|
+
onOpenChange: L,
|
|
13531
13531
|
placement: o,
|
|
13532
|
-
middleware:
|
|
13532
|
+
middleware: C ?? [
|
|
13533
13533
|
ha(s),
|
|
13534
13534
|
c && _a(),
|
|
13535
13535
|
l && ga(),
|
|
13536
13536
|
u && ya(),
|
|
13537
13537
|
va({ apply({ availableWidth: e, availableHeight: t, elements: n, rects: r }) {
|
|
13538
|
-
let i =
|
|
13538
|
+
let i = h ? Math.min(h, e) : e, a = _ ? Math.min(_, t) : t, o = v ? r.reference.width : void 0;
|
|
13539
13539
|
Object.assign(n.floating.style, {
|
|
13540
13540
|
maxWidth: `${i}px`,
|
|
13541
13541
|
maxHeight: `${a}px`,
|
|
13542
|
-
...
|
|
13543
|
-
...
|
|
13542
|
+
...m && { minWidth: Ds(m) },
|
|
13543
|
+
...g && { minHeight: Ds(g) },
|
|
13544
13544
|
...o && { width: `${o}px` }
|
|
13545
13545
|
});
|
|
13546
13546
|
} })
|
|
13547
13547
|
].filter(Boolean),
|
|
13548
13548
|
whileElementsMounted: na
|
|
13549
|
-
}), ie = typeof window < "u" && window.matchMedia("(prefers-reduced-motion: reduce)").matches, { isMounted: ae, styles: oe } = os(
|
|
13549
|
+
}), ie = typeof window < "u" && window.matchMedia("(prefers-reduced-motion: reduce)").matches, { isMounted: ae, styles: oe } = os(U, {
|
|
13550
13550
|
duration: !a || ie ? 0 : 100,
|
|
13551
13551
|
initial: { opacity: 0 }
|
|
13552
|
-
}),
|
|
13553
|
-
Io(
|
|
13554
|
-
...C,
|
|
13555
|
-
enabled: C?.enabled || U("click") && !i,
|
|
13556
|
-
event: C?.event || "click",
|
|
13557
|
-
toggle: C?.toggle || !0
|
|
13558
|
-
}),
|
|
13559
|
-
Ja(ne, {
|
|
13552
|
+
}), se = (e) => f.includes(e), { getReferenceProps: ce, getFloatingProps: le, getItemProps: ue } = Ko([
|
|
13553
|
+
Io(U, {
|
|
13560
13554
|
...w,
|
|
13561
|
-
enabled: w?.enabled ||
|
|
13562
|
-
|
|
13563
|
-
|
|
13555
|
+
enabled: w?.enabled || se("click") && !i,
|
|
13556
|
+
event: w?.event || "click",
|
|
13557
|
+
toggle: w?.toggle || !0
|
|
13564
13558
|
}),
|
|
13565
|
-
|
|
13559
|
+
Ja(U, {
|
|
13566
13560
|
...T,
|
|
13567
|
-
enabled: T?.enabled ||
|
|
13561
|
+
enabled: T?.enabled || se("hover") && !i,
|
|
13562
|
+
delay: T?.delay,
|
|
13563
|
+
handleClose: T?.handleClose || ds()
|
|
13568
13564
|
}),
|
|
13569
|
-
|
|
13565
|
+
Wo(U, {
|
|
13570
13566
|
...E,
|
|
13571
|
-
enabled: E?.enabled ||
|
|
13572
|
-
outsidePress: E?.outsidePress || ((e) => {
|
|
13573
|
-
let t = e.target, n = H.floating.current?.contains(t), r = H.reference.current?.contains?.(t);
|
|
13574
|
-
return !n && !r;
|
|
13575
|
-
}),
|
|
13576
|
-
escapeKey: E?.escapeKey || !0,
|
|
13577
|
-
bubbles: E?.bubbles || { escapeKey: !1 }
|
|
13567
|
+
enabled: E?.enabled || se("focus") && !i
|
|
13578
13568
|
}),
|
|
13579
|
-
|
|
13569
|
+
Bo(U, {
|
|
13580
13570
|
...D,
|
|
13581
|
-
|
|
13571
|
+
ancestorScroll: D?.ancestorScroll ?? d,
|
|
13572
|
+
enabled: D?.enabled || se("dismiss") && !i,
|
|
13573
|
+
outsidePress: D?.outsidePress || ((e) => {
|
|
13574
|
+
let t = e.target, n = te.floating.current?.contains(t), r = te.reference.current?.contains?.(t);
|
|
13575
|
+
return !n && !r;
|
|
13576
|
+
}),
|
|
13577
|
+
escapeKey: D?.escapeKey || !0,
|
|
13578
|
+
bubbles: D?.bubbles || { escapeKey: !1 }
|
|
13582
13579
|
}),
|
|
13583
|
-
|
|
13580
|
+
ts(U, {
|
|
13584
13581
|
...O,
|
|
13585
|
-
|
|
13586
|
-
listRef: O?.listRef || ee,
|
|
13587
|
-
activeIndex: O?.activeIndex || B,
|
|
13588
|
-
onNavigate: O?.onNavigate || V,
|
|
13589
|
-
loop: O?.loop || !0,
|
|
13590
|
-
nested: O?.nested,
|
|
13591
|
-
parentOrientation: O?.parentOrientation,
|
|
13592
|
-
rtl: O?.rtl
|
|
13582
|
+
role: O?.role || p
|
|
13593
13583
|
}),
|
|
13594
|
-
|
|
13584
|
+
$o(U, {
|
|
13595
13585
|
...k,
|
|
13596
|
-
enabled: k?.enabled ||
|
|
13597
|
-
listRef: k?.listRef ||
|
|
13598
|
-
activeIndex: k?.activeIndex ||
|
|
13599
|
-
|
|
13600
|
-
|
|
13586
|
+
enabled: k?.enabled || se("listNavigation") && !i,
|
|
13587
|
+
listRef: k?.listRef || z,
|
|
13588
|
+
activeIndex: k?.activeIndex || V,
|
|
13589
|
+
onNavigate: k?.onNavigate || H,
|
|
13590
|
+
loop: k?.loop || !0,
|
|
13591
|
+
nested: k?.nested,
|
|
13592
|
+
parentOrientation: k?.parentOrientation,
|
|
13593
|
+
rtl: k?.rtl
|
|
13594
|
+
}),
|
|
13595
|
+
ss(U, {
|
|
13596
|
+
...A,
|
|
13597
|
+
enabled: A?.enabled || se("typeahead") && !i,
|
|
13598
|
+
listRef: A?.listRef || b || { current: [] },
|
|
13599
|
+
activeIndex: A?.activeIndex || V,
|
|
13600
|
+
onMatch: A?.onMatch || H,
|
|
13601
|
+
resetMs: A?.resetMs || 750
|
|
13601
13602
|
})
|
|
13602
13603
|
]);
|
|
13603
13604
|
return {
|
|
13604
|
-
refs:
|
|
13605
|
-
floatingStyles:
|
|
13606
|
-
context:
|
|
13607
|
-
getReferenceProps:
|
|
13608
|
-
getFloatingProps:
|
|
13609
|
-
getItemProps:
|
|
13610
|
-
open: !!
|
|
13611
|
-
setOpen:
|
|
13605
|
+
refs: te,
|
|
13606
|
+
floatingStyles: ne,
|
|
13607
|
+
context: U,
|
|
13608
|
+
getReferenceProps: ce,
|
|
13609
|
+
getFloatingProps: le,
|
|
13610
|
+
getItemProps: se("listNavigation") ? ue : void 0,
|
|
13611
|
+
open: !!I,
|
|
13612
|
+
setOpen: L,
|
|
13612
13613
|
placement: re,
|
|
13613
|
-
activeIndex:
|
|
13614
|
-
setActiveIndex:
|
|
13615
|
-
navigationRef:
|
|
13614
|
+
activeIndex: V,
|
|
13615
|
+
setActiveIndex: H,
|
|
13616
|
+
navigationRef: B,
|
|
13616
13617
|
props: e,
|
|
13617
|
-
dismiss:
|
|
13618
|
+
dismiss: ee,
|
|
13618
13619
|
isMounted: ae,
|
|
13619
13620
|
transitionStyles: oe,
|
|
13620
|
-
triggerId:
|
|
13621
|
-
contentId:
|
|
13621
|
+
triggerId: P,
|
|
13622
|
+
contentId: F
|
|
13622
13623
|
};
|
|
13623
13624
|
}, Ls = (e) => {
|
|
13624
13625
|
let { trigger: t, content: n, floatingFocusManager: r, contentClassName: i, ariaLabel: a, preventDefaultOnTrigger: o, stopPropagationOnTrigger: s, portal: c = !0 } = e, { rtl: l } = j(), { refs: u, floatingStyles: d, context: f, getReferenceProps: p, getFloatingProps: m, getItemProps: h, open: g, setOpen: _, dismiss: v, placement: b, activeIndex: x, setActiveIndex: S, navigationRef: C, isMounted: w, transitionStyles: T, triggerId: E, contentId: D } = Is(e), k = Ba(), A = (0, y.useMemo)(() => ({
|
|
@@ -13987,7 +13988,7 @@ var Hs = (0, y.forwardRef)(Vs), Us = (e) => !("type" in e), Ws = (e) => "type" i
|
|
|
13987
13988
|
let B = typeof window < "u" && window.matchMedia("(prefers-reduced-motion: reduce)").matches, { isMounted: V, styles: H } = os(ee, {
|
|
13988
13989
|
duration: !a || B ? 0 : 100,
|
|
13989
13990
|
initial: { opacity: 0 }
|
|
13990
|
-
}), { getReferenceProps: te, getFloatingProps: ne, getItemProps:
|
|
13991
|
+
}), { getReferenceProps: te, getFloatingProps: ne, getItemProps: U } = Ko([
|
|
13991
13992
|
Bo(ee, {
|
|
13992
13993
|
escapeKey: !0,
|
|
13993
13994
|
outsidePress: !0,
|
|
@@ -14008,7 +14009,7 @@ var Hs = (0, y.forwardRef)(Vs), Us = (e) => !("type" in e), Ws = (e) => "type" i
|
|
|
14008
14009
|
onMatch: w,
|
|
14009
14010
|
resetMs: 750
|
|
14010
14011
|
})
|
|
14011
|
-
]),
|
|
14012
|
+
]), re = (0, y.useRef)(null), ie = (0, y.useCallback)((e) => {
|
|
14012
14013
|
i || (p !== !1 && e.preventDefault(), m && e.stopPropagation(), L.setPositionReference({ getBoundingClientRect() {
|
|
14013
14014
|
return {
|
|
14014
14015
|
x: e.clientX,
|
|
@@ -14026,7 +14027,7 @@ var Hs = (0, y.forwardRef)(Vs), Us = (e) => !("type" in e), Ws = (e) => "type" i
|
|
|
14026
14027
|
p,
|
|
14027
14028
|
m,
|
|
14028
14029
|
L
|
|
14029
|
-
]),
|
|
14030
|
+
]), ae = (0, y.useMemo)(() => ({
|
|
14030
14031
|
open: x ?? !1,
|
|
14031
14032
|
setOpen: S,
|
|
14032
14033
|
dismiss: D,
|
|
@@ -14038,7 +14039,7 @@ var Hs = (0, y.forwardRef)(Vs), Us = (e) => !("type" in e), Ws = (e) => "type" i
|
|
|
14038
14039
|
},
|
|
14039
14040
|
getReferenceProps: te,
|
|
14040
14041
|
getFloatingProps: ne,
|
|
14041
|
-
getItemProps:
|
|
14042
|
+
getItemProps: U,
|
|
14042
14043
|
activeIndex: C,
|
|
14043
14044
|
setActiveIndex: w,
|
|
14044
14045
|
navigationRef: F,
|
|
@@ -14057,7 +14058,7 @@ var Hs = (0, y.forwardRef)(Vs), Us = (e) => !("type" in e), Ws = (e) => "type" i
|
|
|
14057
14058
|
L.setFloating,
|
|
14058
14059
|
te,
|
|
14059
14060
|
ne,
|
|
14060
|
-
|
|
14061
|
+
U,
|
|
14061
14062
|
C,
|
|
14062
14063
|
F,
|
|
14063
14064
|
ee,
|
|
@@ -14065,11 +14066,11 @@ var Hs = (0, y.forwardRef)(Vs), Us = (e) => !("type" in e), Ws = (e) => "type" i
|
|
|
14065
14066
|
H,
|
|
14066
14067
|
A,
|
|
14067
14068
|
M
|
|
14068
|
-
]),
|
|
14069
|
+
]), oe = (0, y.useMemo)(() => ({
|
|
14069
14070
|
onSelect: r,
|
|
14070
14071
|
options: n,
|
|
14071
14072
|
rtl: b,
|
|
14072
|
-
rootTriggerRef:
|
|
14073
|
+
rootTriggerRef: re,
|
|
14073
14074
|
portal: s,
|
|
14074
14075
|
minWidth: c
|
|
14075
14076
|
}), [
|
|
@@ -14108,14 +14109,14 @@ var Hs = (0, y.forwardRef)(Vs), Us = (e) => !("type" in e), Ws = (e) => "type" i
|
|
|
14108
14109
|
ee,
|
|
14109
14110
|
n
|
|
14110
14111
|
]), ce = /* @__PURE__ */ (0, O.jsx)(Ms, {
|
|
14111
|
-
value:
|
|
14112
|
+
value: ae,
|
|
14112
14113
|
children: /* @__PURE__ */ (0, O.jsx)(Ps.Provider, {
|
|
14113
|
-
value:
|
|
14114
|
+
value: oe,
|
|
14114
14115
|
children: /* @__PURE__ */ (0, O.jsxs)(Va, {
|
|
14115
14116
|
id: E,
|
|
14116
14117
|
children: [/* @__PURE__ */ (0, O.jsx)("div", {
|
|
14117
|
-
ref:
|
|
14118
|
-
onContextMenu:
|
|
14118
|
+
ref: re,
|
|
14119
|
+
onContextMenu: ie,
|
|
14119
14120
|
style: { display: "contents" },
|
|
14120
14121
|
children: t
|
|
14121
14122
|
}), s ? /* @__PURE__ */ (0, O.jsx)(go, {
|
|
@@ -14239,7 +14240,7 @@ var Hs = (0, y.forwardRef)(Vs), Us = (e) => !("type" in e), Ws = (e) => "type" i
|
|
|
14239
14240
|
color: "neutral",
|
|
14240
14241
|
tabIndex: -1,
|
|
14241
14242
|
"aria-label": x("ui.datePicker.openCalendar"),
|
|
14242
|
-
children: /* @__PURE__ */ (0, O.jsx)(
|
|
14243
|
+
children: /* @__PURE__ */ (0, O.jsx)(re, { className: "updog-datepicker__chevron" })
|
|
14243
14244
|
})
|
|
14244
14245
|
]
|
|
14245
14246
|
})] })
|
|
@@ -14624,18 +14625,18 @@ function dc(e, t) {
|
|
|
14624
14625
|
controlledValue: n,
|
|
14625
14626
|
controlledOnChange: r,
|
|
14626
14627
|
defaultValue: i
|
|
14627
|
-
}), ne = (0, y.useRef)(null),
|
|
14628
|
+
}), ne = (0, y.useRef)(null), U = (0, y.useId)(), re = o.props.id || I || `${U}-trigger`, ie = L || (o.props.id ? `${o.props.id}-content` : `${U}-content`), ae = (0, y.useRef)([]);
|
|
14628
14629
|
(0, y.useMemo)(() => {
|
|
14629
|
-
|
|
14630
|
+
ae.current = s.filter(Us).map((e) => e.text);
|
|
14630
14631
|
}, [s]);
|
|
14631
|
-
let
|
|
14632
|
+
let oe = Os(t, (0, y.useCallback)((e) => {
|
|
14632
14633
|
ne.current = e;
|
|
14633
14634
|
}, [])), se = a || o, ce = (0, y.useMemo)(() => /* @__PURE__ */ (0, O.jsx)(As, {
|
|
14634
|
-
ref:
|
|
14635
|
+
ref: oe,
|
|
14635
14636
|
...B,
|
|
14636
14637
|
children: se
|
|
14637
14638
|
}), [
|
|
14638
|
-
|
|
14639
|
+
oe,
|
|
14639
14640
|
B,
|
|
14640
14641
|
se
|
|
14641
14642
|
]);
|
|
@@ -14652,8 +14653,8 @@ function dc(e, t) {
|
|
|
14652
14653
|
portal: z,
|
|
14653
14654
|
trigger: ce,
|
|
14654
14655
|
content: /* @__PURE__ */ (0, O.jsx)(Js, { options: s }),
|
|
14655
|
-
triggerId:
|
|
14656
|
-
contentId:
|
|
14656
|
+
triggerId: re,
|
|
14657
|
+
contentId: ie,
|
|
14657
14658
|
open: H,
|
|
14658
14659
|
onOpenChange: te,
|
|
14659
14660
|
disabled: v,
|
|
@@ -14692,7 +14693,7 @@ function dc(e, t) {
|
|
|
14692
14693
|
loop: !0,
|
|
14693
14694
|
...A
|
|
14694
14695
|
},
|
|
14695
|
-
typeaheadListRef: ee ??
|
|
14696
|
+
typeaheadListRef: ee ?? ae,
|
|
14696
14697
|
preventDefaultOnTrigger: f,
|
|
14697
14698
|
stopPropagationOnTrigger: p,
|
|
14698
14699
|
minHeight: m,
|
|
@@ -14946,20 +14947,20 @@ var vc = () => {
|
|
|
14946
14947
|
l?.(), C.current?.focus();
|
|
14947
14948
|
}, [l, C]), ne = (0, y.useCallback)((e) => {
|
|
14948
14949
|
T?.(e), C.current?.focus();
|
|
14949
|
-
}, [T, C]),
|
|
14950
|
+
}, [T, C]), U = {
|
|
14950
14951
|
sm: "xs",
|
|
14951
14952
|
md: "sm",
|
|
14952
14953
|
lg: "md"
|
|
14953
|
-
},
|
|
14954
|
+
}, re = !r && !f && u && /* @__PURE__ */ (0, O.jsx)(ct, {
|
|
14954
14955
|
variant: "filled",
|
|
14955
14956
|
size: bs[i],
|
|
14956
14957
|
color: "neutral",
|
|
14957
14958
|
onClick: te,
|
|
14958
14959
|
content: /* @__PURE__ */ (0, O.jsx)(qe, {}),
|
|
14959
14960
|
"aria-label": n("ui.comboBox.clearSelection")
|
|
14960
|
-
}),
|
|
14961
|
+
}), ie = !r && f && /* @__PURE__ */ (0, O.jsx)($s, {
|
|
14961
14962
|
size: i,
|
|
14962
|
-
children: /* @__PURE__ */ (0, O.jsx)($e, { size:
|
|
14963
|
+
children: /* @__PURE__ */ (0, O.jsx)($e, { size: U[i] })
|
|
14963
14964
|
});
|
|
14964
14965
|
return /* @__PURE__ */ (0, O.jsxs)("div", {
|
|
14965
14966
|
ref: t,
|
|
@@ -15009,7 +15010,7 @@ var vc = () => {
|
|
|
15009
15010
|
})]
|
|
15010
15011
|
}), /* @__PURE__ */ (0, O.jsx)("div", {
|
|
15011
15012
|
className: "updog-combobox__trigger-actions",
|
|
15012
|
-
children:
|
|
15013
|
+
children: ie || re
|
|
15013
15014
|
})]
|
|
15014
15015
|
});
|
|
15015
15016
|
}), xc = (0, y.forwardRef)((e = {}, t) => {
|
|
@@ -15108,7 +15109,7 @@ var Sc = (0, y.createContext)(void 0), Cc = Sc.Provider, wc = () => {
|
|
|
15108
15109
|
] }), /* @__PURE__ */ (0, O.jsx)("span", {
|
|
15109
15110
|
"aria-hidden": !0,
|
|
15110
15111
|
className: N("updog-select__option-checkMark", d ? "updog-select__option-checkMark--visible" : ""),
|
|
15111
|
-
children: /* @__PURE__ */ (0, O.jsx)(
|
|
15112
|
+
children: /* @__PURE__ */ (0, O.jsx)(ae, {
|
|
15112
15113
|
size: "1rem",
|
|
15113
15114
|
className: "rtl-mirror"
|
|
15114
15115
|
})
|
|
@@ -15220,7 +15221,7 @@ var Sc = (0, y.createContext)(void 0), Cc = Sc.Provider, wc = () => {
|
|
|
15220
15221
|
size: bs[S],
|
|
15221
15222
|
color: "neutral",
|
|
15222
15223
|
tabIndex: -1,
|
|
15223
|
-
children: /* @__PURE__ */ (0, O.jsx)(
|
|
15224
|
+
children: /* @__PURE__ */ (0, O.jsx)(oe, { className: N("updog-select__chevron", w && "updog-select__chevron--rotate") })
|
|
15224
15225
|
})
|
|
15225
15226
|
]
|
|
15226
15227
|
})] })
|
|
@@ -15321,7 +15322,7 @@ var Sc = (0, y.createContext)(void 0), Cc = Sc.Provider, wc = () => {
|
|
|
15321
15322
|
children: t
|
|
15322
15323
|
}), Lc = ({ index: e, isActive: t, isCompleted: n, isDisabled: r }) => n ? /* @__PURE__ */ (0, O.jsx)(Ic, {
|
|
15323
15324
|
className: "updog-stepper__indicator--completed",
|
|
15324
|
-
children: /* @__PURE__ */ (0, O.jsx)(
|
|
15325
|
+
children: /* @__PURE__ */ (0, O.jsx)(ae, {
|
|
15325
15326
|
className: "updog-stepper__indicator-icon",
|
|
15326
15327
|
size: 12,
|
|
15327
15328
|
strokeWidth: 3
|
|
@@ -17490,7 +17491,7 @@ function Zu() {
|
|
|
17490
17491
|
e.dataTransfer.dropEffect = "copy";
|
|
17491
17492
|
} catch {}
|
|
17492
17493
|
return t && d && d(e), !1;
|
|
17493
|
-
}, [d, w]),
|
|
17494
|
+
}, [d, w]), U = (0, y.useCallback)(function(e) {
|
|
17494
17495
|
e.preventDefault(), e.persist(), pe(e);
|
|
17495
17496
|
var t = z.current.filter(function(e) {
|
|
17496
17497
|
return j.current && j.current.contains(e);
|
|
@@ -17505,7 +17506,7 @@ function Zu() {
|
|
|
17505
17506
|
j,
|
|
17506
17507
|
u,
|
|
17507
17508
|
w
|
|
17508
|
-
]),
|
|
17509
|
+
]), re = (0, y.useCallback)(function(e, t) {
|
|
17509
17510
|
var n = [], r = [];
|
|
17510
17511
|
e.forEach(function(e) {
|
|
17511
17512
|
var t = Lu(du(e, D), 2), i = t[0], s = t[1], c = Lu(fu(e, o, a), 2), l = c[0], u = c[1], d = E ? E(e) : null;
|
|
@@ -17540,18 +17541,18 @@ function Zu() {
|
|
|
17540
17541
|
p,
|
|
17541
17542
|
m,
|
|
17542
17543
|
E
|
|
17543
|
-
]),
|
|
17544
|
+
]), ie = (0, y.useCallback)(function(e) {
|
|
17544
17545
|
e.preventDefault(), e.persist(), pe(e), z.current = [], gu(e) && Promise.resolve(i(e)).then(function(t) {
|
|
17545
|
-
hu(e) && !w ||
|
|
17546
|
+
hu(e) && !w || re(t, e);
|
|
17546
17547
|
}).catch(function(e) {
|
|
17547
17548
|
return H(e);
|
|
17548
17549
|
}), F({ type: "reset" });
|
|
17549
17550
|
}, [
|
|
17550
17551
|
i,
|
|
17551
|
-
|
|
17552
|
+
re,
|
|
17552
17553
|
H,
|
|
17553
17554
|
w
|
|
17554
|
-
]),
|
|
17555
|
+
]), ae = (0, y.useCallback)(function() {
|
|
17555
17556
|
if (R.current) {
|
|
17556
17557
|
F({ type: "openDialog" }), k();
|
|
17557
17558
|
var e = {
|
|
@@ -17561,7 +17562,7 @@ function Zu() {
|
|
|
17561
17562
|
window.showOpenFilePicker(e).then(function(e) {
|
|
17562
17563
|
return i(e);
|
|
17563
17564
|
}).then(function(e) {
|
|
17564
|
-
|
|
17565
|
+
re(e, null), F({ type: "closeDialog" });
|
|
17565
17566
|
}).catch(function(e) {
|
|
17566
17567
|
Tu(e) ? (A(e), F({ type: "closeDialog" })) : Eu(e) ? (R.current = !1, M.current ? (M.current.value = null, M.current.click()) : H(/* @__PURE__ */ Error("Cannot open the file picker because the https://developer.mozilla.org/en-US/docs/Web/API/File_System_Access_API is not supported and no <input> was provided."))) : H(e);
|
|
17567
17568
|
});
|
|
@@ -17573,19 +17574,19 @@ function Zu() {
|
|
|
17573
17574
|
k,
|
|
17574
17575
|
A,
|
|
17575
17576
|
_,
|
|
17576
|
-
|
|
17577
|
+
re,
|
|
17577
17578
|
H,
|
|
17578
17579
|
O,
|
|
17579
17580
|
s
|
|
17580
|
-
]),
|
|
17581
|
-
!j.current || !j.current.isEqualNode(e.target) || (e.key === " " || e.key === "Enter" || e.keyCode === 32 || e.keyCode === 13) && (e.preventDefault(),
|
|
17582
|
-
}, [j,
|
|
17581
|
+
]), oe = (0, y.useCallback)(function(e) {
|
|
17582
|
+
!j.current || !j.current.isEqualNode(e.target) || (e.key === " " || e.key === "Enter" || e.keyCode === 32 || e.keyCode === 13) && (e.preventDefault(), ae());
|
|
17583
|
+
}, [j, ae]), se = (0, y.useCallback)(function() {
|
|
17583
17584
|
F({ type: "focus" });
|
|
17584
17585
|
}, []), ce = (0, y.useCallback)(function() {
|
|
17585
17586
|
F({ type: "blur" });
|
|
17586
17587
|
}, []), le = (0, y.useCallback)(function() {
|
|
17587
|
-
x || (bu() ? setTimeout(
|
|
17588
|
-
}, [x,
|
|
17588
|
+
x || (bu() ? setTimeout(ae, 0) : ae());
|
|
17589
|
+
}, [x, ae]), ue = function(e) {
|
|
17589
17590
|
return r ? null : e;
|
|
17590
17591
|
}, de = function(e) {
|
|
17591
17592
|
return S ? null : ue(e);
|
|
@@ -17597,27 +17598,27 @@ function Zu() {
|
|
|
17597
17598
|
return function() {
|
|
17598
17599
|
var e = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {}, t = e.refKey, n = t === void 0 ? "ref" : t, i = e.role, a = e.onKeyDown, o = e.onFocus, s = e.onBlur, c = e.onClick, l = e.onDragEnter, u = e.onDragOver, d = e.onDragLeave, f = e.onDrop, p = Ku(e, ju);
|
|
17599
17600
|
return Wu(Wu(Gu({
|
|
17600
|
-
onKeyDown: de(xu(a,
|
|
17601
|
+
onKeyDown: de(xu(a, oe)),
|
|
17601
17602
|
onFocus: de(xu(o, se)),
|
|
17602
17603
|
onBlur: de(xu(s, ce)),
|
|
17603
17604
|
onClick: ue(xu(c, le)),
|
|
17604
17605
|
onDragEnter: fe(xu(l, te)),
|
|
17605
17606
|
onDragOver: fe(xu(u, ne)),
|
|
17606
|
-
onDragLeave: fe(xu(d,
|
|
17607
|
-
onDrop: fe(xu(f,
|
|
17607
|
+
onDragLeave: fe(xu(d, U)),
|
|
17608
|
+
onDrop: fe(xu(f, ie)),
|
|
17608
17609
|
role: typeof i == "string" && i !== "" ? i : "presentation"
|
|
17609
17610
|
}, n, j), !r && !S ? { tabIndex: 0 } : {}), p);
|
|
17610
17611
|
};
|
|
17611
17612
|
}, [
|
|
17612
17613
|
j,
|
|
17613
|
-
|
|
17614
|
+
oe,
|
|
17614
17615
|
se,
|
|
17615
17616
|
ce,
|
|
17616
17617
|
le,
|
|
17617
17618
|
te,
|
|
17618
17619
|
ne,
|
|
17619
|
-
|
|
17620
|
-
|
|
17620
|
+
U,
|
|
17621
|
+
ie,
|
|
17621
17622
|
S,
|
|
17622
17623
|
C,
|
|
17623
17624
|
r
|
|
@@ -17642,7 +17643,7 @@ function Zu() {
|
|
|
17642
17643
|
width: "1px",
|
|
17643
17644
|
whiteSpace: "nowrap"
|
|
17644
17645
|
},
|
|
17645
|
-
onChange: ue(xu(r,
|
|
17646
|
+
onChange: ue(xu(r, ie)),
|
|
17646
17647
|
onClick: ue(xu(i, he)),
|
|
17647
17648
|
tabIndex: -1
|
|
17648
17649
|
}, n, M)), a);
|
|
@@ -17651,7 +17652,7 @@ function Zu() {
|
|
|
17651
17652
|
M,
|
|
17652
17653
|
n,
|
|
17653
17654
|
s,
|
|
17654
|
-
|
|
17655
|
+
ie,
|
|
17655
17656
|
r
|
|
17656
17657
|
]);
|
|
17657
17658
|
return Wu(Wu({}, P), {}, {
|
|
@@ -17660,7 +17661,7 @@ function Zu() {
|
|
|
17660
17661
|
getInputProps: ge,
|
|
17661
17662
|
rootRef: j,
|
|
17662
17663
|
inputRef: M,
|
|
17663
|
-
open: ue(
|
|
17664
|
+
open: ue(ae)
|
|
17664
17665
|
});
|
|
17665
17666
|
}
|
|
17666
17667
|
function Qu(e, t) {
|
|
@@ -29909,7 +29910,7 @@ function Qm({ columns: e, primaryKey: t, loadData: n, scaleClient: r, onComplete
|
|
|
29909
29910
|
A.setSchemaColumns(e);
|
|
29910
29911
|
let { addDynamicColumns: M, removeDynamicColumn: N, updateColumn: P } = Km(A), F = (0, y.useCallback)((e) => {
|
|
29911
29912
|
A.setDynamicColumns(e);
|
|
29912
|
-
}, [A]), I = (0, y.useSyncExternalStore)(A.subscribe, A.getEffectiveColumns), { navigateToCell: L, navigateByIndex: R, navigateToCellRef: ee, resetScrollRef: z, scrollToGridTop: B } = qm(A), { validator: V, validatorRef: H, findReplace: te } = Zm(A, I, r?.findAndReplace, R), { search: ne, setSearch:
|
|
29913
|
+
}, [A]), I = (0, y.useSyncExternalStore)(A.subscribe, A.getEffectiveColumns), { navigateToCell: L, navigateByIndex: R, navigateToCellRef: ee, resetScrollRef: z, scrollToGridTop: B } = qm(A), { validator: V, validatorRef: H, findReplace: te } = Zm(A, I, r?.findAndReplace, R), { search: ne, setSearch: U, matchCase: re, setMatchCase: ie, matchEntireCell: ae, setMatchEntireCell: oe, searchMode: se, setSearchMode: ce, filterColumns: le, setFilterColumns: ue, filtersResetKey: de, resetFilters: fe } = Ym(A, te, L, B);
|
|
29913
29914
|
Gm(A, H, n, k);
|
|
29914
29915
|
let { onVisibleRangeChange: pe } = Xm(A, k), { portalRef: me } = Jm(), [he, ge] = (0, y.useState)(null), [_e, ve] = (0, y.useState)(null), ye = (0, y.useCallback)((e) => {
|
|
29915
29916
|
ve(e), s(!0);
|
|
@@ -29943,11 +29944,11 @@ function Qm({ columns: e, primaryKey: t, loadData: n, scaleClient: r, onComplete
|
|
|
29943
29944
|
variant: a ?? "editor",
|
|
29944
29945
|
isViewer: a === "viewer",
|
|
29945
29946
|
search: ne,
|
|
29946
|
-
setSearch:
|
|
29947
|
-
matchCase:
|
|
29948
|
-
setMatchCase:
|
|
29949
|
-
matchEntireCell:
|
|
29950
|
-
setMatchEntireCell:
|
|
29947
|
+
setSearch: U,
|
|
29948
|
+
matchCase: re,
|
|
29949
|
+
setMatchCase: ie,
|
|
29950
|
+
matchEntireCell: ae,
|
|
29951
|
+
setMatchEntireCell: oe,
|
|
29951
29952
|
searchMode: se,
|
|
29952
29953
|
setSearchMode: ce,
|
|
29953
29954
|
filterColumns: le,
|
|
@@ -30986,7 +30987,7 @@ var Yh = ({ open: e, onClose: t, onConfirm: n, loading: r = !1 }) => {
|
|
|
30986
30987
|
e,
|
|
30987
30988
|
t,
|
|
30988
30989
|
c
|
|
30989
|
-
]),
|
|
30990
|
+
]), U = s("dataEditor.footer.submit"), re = !b || S || A || C;
|
|
30990
30991
|
return /* @__PURE__ */ (0, O.jsxs)(O.Fragment, { children: [/* @__PURE__ */ (0, O.jsxs)("footer", {
|
|
30991
30992
|
className: "updog__data-editor-footer",
|
|
30992
30993
|
children: [/* @__PURE__ */ (0, O.jsx)(Xh, {}), /* @__PURE__ */ (0, O.jsxs)("div", {
|
|
@@ -31023,7 +31024,7 @@ var Yh = ({ open: e, onClose: t, onConfirm: n, loading: r = !1 }) => {
|
|
|
31023
31024
|
loading: w,
|
|
31024
31025
|
disabled: x || S,
|
|
31025
31026
|
spinnerPosition: "end",
|
|
31026
|
-
endIcon: /* @__PURE__ */ (0, O.jsx)(
|
|
31027
|
+
endIcon: /* @__PURE__ */ (0, O.jsx)(oe, {}),
|
|
31027
31028
|
children: P
|
|
31028
31029
|
})
|
|
31029
31030
|
}),
|
|
@@ -31032,9 +31033,9 @@ var Yh = ({ open: e, onClose: t, onConfirm: n, loading: r = !1 }) => {
|
|
|
31032
31033
|
content: s("dataEditor.footer.submitBlockedByErrors"),
|
|
31033
31034
|
placement: "top-end",
|
|
31034
31035
|
children: /* @__PURE__ */ (0, O.jsx)(ot, {
|
|
31035
|
-
disabled:
|
|
31036
|
+
disabled: re,
|
|
31036
31037
|
onClick: D,
|
|
31037
|
-
children:
|
|
31038
|
+
children: U
|
|
31038
31039
|
})
|
|
31039
31040
|
})
|
|
31040
31041
|
]
|
|
@@ -32615,7 +32616,7 @@ var n_ = ({ editing: e, editingSnapshot: t, style: n, onAfterEdit: r, column: i
|
|
|
32615
32616
|
size: u_,
|
|
32616
32617
|
className: "rtl-mirror"
|
|
32617
32618
|
}),
|
|
32618
|
-
"mark-as-correct": /* @__PURE__ */ (0, O.jsx)(
|
|
32619
|
+
"mark-as-correct": /* @__PURE__ */ (0, O.jsx)(ae, {
|
|
32619
32620
|
size: u_,
|
|
32620
32621
|
className: "rtl-mirror"
|
|
32621
32622
|
}),
|
|
@@ -44330,7 +44331,7 @@ var NA = {
|
|
|
44330
44331
|
...z,
|
|
44331
44332
|
...e
|
|
44332
44333
|
}), B(null);
|
|
44333
|
-
}, [z, u]), ne = (0, y.useMemo)(() => P.columns.map((e) => e.title), [P.columns]), { anchor:
|
|
44334
|
+
}, [z, u]), ne = (0, y.useMemo)(() => P.columns.map((e) => e.title), [P.columns]), { anchor: U, items: re, handleCanvasContextMenu: ie, handleSelect: ae, handleOpenChange: oe, transformModal: se, transformModalColIds: ce, transformModalScope: le, handleApplyMerge: ue, handleApplySplit: de, closeTransformModal: fe, showFormulaModal: pe, closeFormulaModal: me, handleApplyFormula: he, formulaColumnIds: ge, formulaScope: _e } = Jk({
|
|
44334
44335
|
controller: k,
|
|
44335
44336
|
store: t,
|
|
44336
44337
|
columnSnapshot: P,
|
|
@@ -44344,25 +44345,25 @@ var NA = {
|
|
|
44344
44345
|
onEditColumn: V
|
|
44345
44346
|
});
|
|
44346
44347
|
(0, y.useEffect)(() => {
|
|
44347
|
-
if (!
|
|
44348
|
-
let e = E.current, t = D.current, n = () =>
|
|
44348
|
+
if (!U) return;
|
|
44349
|
+
let e = E.current, t = D.current, n = () => oe(!1);
|
|
44349
44350
|
return e?.addEventListener("scroll", n), t?.addEventListener("scroll", n), () => {
|
|
44350
44351
|
e?.removeEventListener("scroll", n), t?.removeEventListener("scroll", n);
|
|
44351
44352
|
};
|
|
44352
|
-
}, [
|
|
44353
|
-
let ve = !M.isEditing &&
|
|
44353
|
+
}, [U, oe]);
|
|
44354
|
+
let ve = !M.isEditing && U === null, ye = kA(T, A.focusCell, ve, R, p, L, E, D), be = (0, y.useCallback)((e) => {
|
|
44354
44355
|
k.keyboard.handleKeyDown(e.nativeEvent);
|
|
44355
44356
|
}, [k]);
|
|
44356
|
-
MA(T, k, R, p, P.columns.length, n,
|
|
44357
|
+
MA(T, k, R, p, P.columns.length, n, ie, L, E, D);
|
|
44357
44358
|
let xe = (0, y.useCallback)(() => {
|
|
44358
44359
|
T.current?.focus();
|
|
44359
44360
|
}, []);
|
|
44360
44361
|
return /* @__PURE__ */ (0, O.jsxs)(O.Fragment, { children: [
|
|
44361
44362
|
/* @__PURE__ */ (0, O.jsx)(p_, {
|
|
44362
|
-
anchor:
|
|
44363
|
-
items:
|
|
44364
|
-
onSelect:
|
|
44365
|
-
onOpenChange:
|
|
44363
|
+
anchor: U,
|
|
44364
|
+
items: re,
|
|
44365
|
+
onSelect: ae,
|
|
44366
|
+
onOpenChange: oe,
|
|
44366
44367
|
children: /* @__PURE__ */ (0, O.jsxs)("div", {
|
|
44367
44368
|
ref: T,
|
|
44368
44369
|
className: N("updog-grid", !(x > 0) && "updog-grid--hidden", C && "updog-grid--rtl"),
|
|
@@ -44949,7 +44950,7 @@ var NA = {
|
|
|
44949
44950
|
size: "xs",
|
|
44950
44951
|
onClick: e,
|
|
44951
44952
|
"aria-label": n,
|
|
44952
|
-
children: /* @__PURE__ */ (0, O.jsx)(
|
|
44953
|
+
children: /* @__PURE__ */ (0, O.jsx)(oe, {
|
|
44953
44954
|
className: N("rtl-mirror", t && "updog__error-filter-section__icon-rotate"),
|
|
44954
44955
|
size: "1rem"
|
|
44955
44956
|
})
|
|
@@ -45121,7 +45122,7 @@ var NA = {
|
|
|
45121
45122
|
t(!e);
|
|
45122
45123
|
},
|
|
45123
45124
|
"aria-label": n("dataEditor.filters.matchCase"),
|
|
45124
|
-
children: /* @__PURE__ */ (0, O.jsx)(
|
|
45125
|
+
children: /* @__PURE__ */ (0, O.jsx)(ie, { size: "1.125rem" })
|
|
45125
45126
|
})
|
|
45126
45127
|
});
|
|
45127
45128
|
}, XA = () => {
|
|
@@ -45170,7 +45171,7 @@ var NA = {
|
|
|
45170
45171
|
type: "button",
|
|
45171
45172
|
disabled: n,
|
|
45172
45173
|
"aria-label": r("dataEditor.filters.replaceAll"),
|
|
45173
|
-
children: /* @__PURE__ */ (0, O.jsx)(
|
|
45174
|
+
children: /* @__PURE__ */ (0, O.jsx)(oe, { size: "1rem" })
|
|
45174
45175
|
})
|
|
45175
45176
|
})
|
|
45176
45177
|
]
|
|
@@ -45202,7 +45203,7 @@ var NA = {
|
|
|
45202
45203
|
className: "updog__search-mode-select__button",
|
|
45203
45204
|
children: /* @__PURE__ */ (0, O.jsxs)("span", {
|
|
45204
45205
|
className: "updog__search-mode-select__icon-wrapper",
|
|
45205
|
-
children: [a, /* @__PURE__ */ (0, O.jsx)(
|
|
45206
|
+
children: [a, /* @__PURE__ */ (0, O.jsx)(oe, { size: "0.625rem" })]
|
|
45206
45207
|
})
|
|
45207
45208
|
})
|
|
45208
45209
|
}), [a, n]),
|
|
@@ -45285,7 +45286,7 @@ var NA = {
|
|
|
45285
45286
|
size: "sm",
|
|
45286
45287
|
onClick: E,
|
|
45287
45288
|
"aria-label": f("dataEditor.filters.previousOccurrence"),
|
|
45288
|
-
children: /* @__PURE__ */ (0, O.jsx)(
|
|
45289
|
+
children: /* @__PURE__ */ (0, O.jsx)(U, {})
|
|
45289
45290
|
})
|
|
45290
45291
|
}),
|
|
45291
45292
|
/* @__PURE__ */ (0, O.jsx)(Hs, {
|
|
@@ -47324,7 +47325,7 @@ var $M = () => {
|
|
|
47324
47325
|
className: "updog__value-matching__collapse-btn",
|
|
47325
47326
|
"aria-label": s,
|
|
47326
47327
|
onClick: l,
|
|
47327
|
-
children: /* @__PURE__ */ (0, O.jsx)(
|
|
47328
|
+
children: /* @__PURE__ */ (0, O.jsx)(oe, { className: N("updog__value-matching__collapse-icon", o && "updog__value-matching__collapse-icon--collapsed") })
|
|
47328
47329
|
})
|
|
47329
47330
|
})]
|
|
47330
47331
|
});
|
|
@@ -47719,7 +47720,7 @@ var hN = () => {
|
|
|
47719
47720
|
children: n ? /* @__PURE__ */ (0, O.jsx)(bN, {}) : /* @__PURE__ */ (0, O.jsxs)(O.Fragment, { children: [
|
|
47720
47721
|
/* @__PURE__ */ (0, O.jsx)("div", {
|
|
47721
47722
|
className: "updog__step-select-files__icon-container",
|
|
47722
|
-
children: r ? /* @__PURE__ */ (0, O.jsx)(
|
|
47723
|
+
children: r ? /* @__PURE__ */ (0, O.jsx)(ae, {
|
|
47723
47724
|
size: "1rem",
|
|
47724
47725
|
className: "updog__step-select-files__icon rtl-mirror"
|
|
47725
47726
|
}) : /* @__PURE__ */ (0, O.jsx)(We, {
|
|
@@ -48014,14 +48015,14 @@ function JN() {
|
|
|
48014
48015
|
let { store: e, validator: t, columns: n, primaryKey: r, setShowUploader: i, pendingImportFile: a, setPendingImportFile: o, onColumnMatch: s, onValueMatch: c, synonyms: l, addDynamicColumns: u, scaleClient: d } = th(), { t: f } = j(), [p, m] = (0, y.useState)(0), [h, g] = (0, y.useState)(0), [_, v] = (0, y.useState)(null), [b, x] = (0, y.useState)({}), S = (0, y.useMemo)(() => {
|
|
48015
48016
|
let e = new Set(Object.values(b).filter(Boolean));
|
|
48016
48017
|
return n.filter((t) => t.unique && e.has(t.id));
|
|
48017
|
-
}, [b, n]), [C, w] = (0, y.useState)(() => r), [T, E] = (0, y.useState)(!1), [D, k] = (0, y.useState)(!1), [A, M] = (0, y.useState)(null), [N, P] = (0, y.useState)([]), [F, I] = (0, y.useState)(null), [L, R] = (0, y.useState)([]), [ee, z] = (0, y.useState)({}), [B, V] = (0, y.useState)([]), [H, te] = (0, y.useState)({}), ne = (0, y.useRef)(null), [
|
|
48018
|
+
}, [b, n]), [C, w] = (0, y.useState)(() => r), [T, E] = (0, y.useState)(!1), [D, k] = (0, y.useState)(!1), [A, M] = (0, y.useState)(null), [N, P] = (0, y.useState)([]), [F, I] = (0, y.useState)(null), [L, R] = (0, y.useState)([]), [ee, z] = (0, y.useState)({}), [B, V] = (0, y.useState)([]), [H, te] = (0, y.useState)({}), ne = (0, y.useRef)(null), [U, re] = (0, y.useState)(-1), ie = (0, y.useCallback)((e, t) => t ? f("dataEditor.uploader.matchColumns.syntheticColumnValue", {
|
|
48018
48019
|
index: e + 1,
|
|
48019
48020
|
value: t
|
|
48020
|
-
}) : f("dataEditor.uploader.matchColumns.syntheticColumn", { index: e + 1 }), [f]),
|
|
48021
|
+
}) : f("dataEditor.uploader.matchColumns.syntheticColumn", { index: e + 1 }), [f]), ae = (0, y.useMemo)(() => _ ? HM(_.detection, U) : 0, [_, U]), oe = (0, y.useMemo)(() => _ ? UM(_.rawRows, U, ae, ie) : [], [
|
|
48021
48022
|
_,
|
|
48022
|
-
|
|
48023
|
-
|
|
48024
|
-
|
|
48023
|
+
U,
|
|
48024
|
+
ae,
|
|
48025
|
+
ie
|
|
48025
48026
|
]), se = (0, y.useCallback)((e) => {
|
|
48026
48027
|
D || w(e);
|
|
48027
48028
|
}, [D]), ce = (0, y.useRef)(null);
|
|
@@ -48078,20 +48079,20 @@ function JN() {
|
|
|
48078
48079
|
v(e), E(!1);
|
|
48079
48080
|
}, []), ye = (0, y.useRef)(0);
|
|
48080
48081
|
(0, y.useEffect)(() => {
|
|
48081
|
-
if (!_ ||
|
|
48082
|
+
if (!_ || oe.length === 0) return;
|
|
48082
48083
|
let e = ++ye.current;
|
|
48083
|
-
Xj(
|
|
48084
|
+
Xj(oe, n, s, l).then((t) => {
|
|
48084
48085
|
ye.current === e && x(t);
|
|
48085
48086
|
});
|
|
48086
48087
|
}, [
|
|
48087
48088
|
_,
|
|
48088
|
-
|
|
48089
|
+
oe,
|
|
48089
48090
|
n,
|
|
48090
48091
|
s,
|
|
48091
48092
|
l
|
|
48092
48093
|
]);
|
|
48093
48094
|
let be = (0, y.useCallback)(() => {
|
|
48094
|
-
le.cancel(), v(null), E(!1), x({}), V([]), te({}), ne.current = null,
|
|
48095
|
+
le.cancel(), v(null), E(!1), x({}), V([]), te({}), ne.current = null, re(-1), M(null), P([]), I(null), R([]);
|
|
48095
48096
|
}, [le]), xe = (0, y.useCallback)((e, t, n) => {
|
|
48096
48097
|
M(e), P(t), I(t[0]), R(n), E(!1);
|
|
48097
48098
|
}, []), Se = (0, y.useCallback)(() => {
|
|
@@ -48101,7 +48102,7 @@ function JN() {
|
|
|
48101
48102
|
}).then((e) => {
|
|
48102
48103
|
if (e.kind !== "rows") return;
|
|
48103
48104
|
let t = TM(e.rows);
|
|
48104
|
-
|
|
48105
|
+
re(t.headerRowIndex), ve({
|
|
48105
48106
|
fileName: A.name,
|
|
48106
48107
|
rawRows: e.rows,
|
|
48107
48108
|
detection: t,
|
|
@@ -48116,7 +48117,7 @@ function JN() {
|
|
|
48116
48117
|
le,
|
|
48117
48118
|
ve,
|
|
48118
48119
|
me,
|
|
48119
|
-
|
|
48120
|
+
ie
|
|
48120
48121
|
]), Ce = (0, y.useCallback)(async (t) => {
|
|
48121
48122
|
try {
|
|
48122
48123
|
let e = await le.parse(t, { format: "csv" });
|
|
@@ -48125,7 +48126,7 @@ function JN() {
|
|
|
48125
48126
|
return;
|
|
48126
48127
|
}
|
|
48127
48128
|
let n = TM(e.rows);
|
|
48128
|
-
if (
|
|
48129
|
+
if (re(n.headerRowIndex), ve({
|
|
48129
48130
|
fileName: t.name,
|
|
48130
48131
|
rawRows: e.rows,
|
|
48131
48132
|
detection: n,
|
|
@@ -48151,12 +48152,12 @@ function JN() {
|
|
|
48151
48152
|
E,
|
|
48152
48153
|
e,
|
|
48153
48154
|
f,
|
|
48154
|
-
|
|
48155
|
+
ie
|
|
48155
48156
|
]), we = (0, y.useCallback)(async (t) => {
|
|
48156
48157
|
try {
|
|
48157
48158
|
let e = await le.parse(t, { format: "json" });
|
|
48158
48159
|
if (e.kind !== "records") return;
|
|
48159
|
-
|
|
48160
|
+
re(0), ve({
|
|
48160
48161
|
fileName: t.name,
|
|
48161
48162
|
rawRows: GM(e.headers, e.rows),
|
|
48162
48163
|
detection: WM()
|
|
@@ -48178,7 +48179,7 @@ function JN() {
|
|
|
48178
48179
|
try {
|
|
48179
48180
|
let e = await le.parse(t, { format: "xml" });
|
|
48180
48181
|
if (e.kind !== "records") return;
|
|
48181
|
-
|
|
48182
|
+
re(0), ve({
|
|
48182
48183
|
fileName: t.name,
|
|
48183
48184
|
rawRows: GM(e.headers, e.rows),
|
|
48184
48185
|
detection: WM()
|
|
@@ -48200,7 +48201,7 @@ function JN() {
|
|
|
48200
48201
|
le.parse(t, { format: "xlsx" }).then((e) => {
|
|
48201
48202
|
if (e.kind === "sheets") {
|
|
48202
48203
|
let n = e.sheets.map((e) => {
|
|
48203
|
-
let t = TM(e.rows), n = HM(t, t.headerRowIndex), r = UM(e.rows, t.headerRowIndex, n,
|
|
48204
|
+
let t = TM(e.rows), n = HM(t, t.headerRowIndex), r = UM(e.rows, t.headerRowIndex, n, ie);
|
|
48204
48205
|
return {
|
|
48205
48206
|
name: e.name,
|
|
48206
48207
|
headers: r,
|
|
@@ -48213,7 +48214,7 @@ function JN() {
|
|
|
48213
48214
|
}
|
|
48214
48215
|
if (e.kind !== "rows") return;
|
|
48215
48216
|
let n = TM(e.rows);
|
|
48216
|
-
|
|
48217
|
+
re(n.headerRowIndex), ve({
|
|
48217
48218
|
fileName: t.name,
|
|
48218
48219
|
rawRows: e.rows,
|
|
48219
48220
|
detection: n,
|
|
@@ -48233,7 +48234,7 @@ function JN() {
|
|
|
48233
48234
|
xe,
|
|
48234
48235
|
E,
|
|
48235
48236
|
e,
|
|
48236
|
-
|
|
48237
|
+
ie
|
|
48237
48238
|
]), De = (0, y.useCallback)((e) => {
|
|
48238
48239
|
E(!0), ne.current = e;
|
|
48239
48240
|
let t = e.name.split(".").pop()?.toLowerCase();
|
|
@@ -48272,7 +48273,7 @@ function JN() {
|
|
|
48272
48273
|
}
|
|
48273
48274
|
return t;
|
|
48274
48275
|
});
|
|
48275
|
-
|
|
48276
|
+
re(0), ve({
|
|
48276
48277
|
fileName: e.label,
|
|
48277
48278
|
rawRows: GM(n, r),
|
|
48278
48279
|
detection: WM()
|
|
@@ -48303,7 +48304,7 @@ function JN() {
|
|
|
48303
48304
|
return;
|
|
48304
48305
|
}
|
|
48305
48306
|
if (D) return;
|
|
48306
|
-
let e = {}, t = {}, r = KM(
|
|
48307
|
+
let e = {}, t = {}, r = KM(oe);
|
|
48307
48308
|
for (let [i, a] of Object.entries(b)) {
|
|
48308
48309
|
if (!a) continue;
|
|
48309
48310
|
let o = n.find((e) => e.id === a);
|
|
@@ -48312,7 +48313,7 @@ function JN() {
|
|
|
48312
48313
|
if (s !== "select" && s !== "multiselect") continue;
|
|
48313
48314
|
let c = o.editor.options, l = r.get(i);
|
|
48314
48315
|
if (l === void 0) continue;
|
|
48315
|
-
let u = qM(_.rawRows,
|
|
48316
|
+
let u = qM(_.rawRows, ae, l);
|
|
48316
48317
|
if (s === "multiselect") {
|
|
48317
48318
|
let n = o.editor.delimiter, r = AN(u, c, n);
|
|
48318
48319
|
t[a] = r;
|
|
@@ -48348,8 +48349,8 @@ function JN() {
|
|
|
48348
48349
|
c,
|
|
48349
48350
|
l,
|
|
48350
48351
|
D,
|
|
48351
|
-
|
|
48352
|
-
|
|
48352
|
+
oe,
|
|
48353
|
+
ae
|
|
48353
48354
|
]);
|
|
48354
48355
|
let Be = (0, y.useMemo)(() => {
|
|
48355
48356
|
let e = {};
|
|
@@ -48377,17 +48378,17 @@ function JN() {
|
|
|
48377
48378
|
if (!t) return;
|
|
48378
48379
|
let r = n.find((t) => t.id === e);
|
|
48379
48380
|
if (r?.editor?.type !== "multiselect") return;
|
|
48380
|
-
let i = KM(
|
|
48381
|
+
let i = KM(oe).get(t);
|
|
48381
48382
|
if (i === void 0) return;
|
|
48382
|
-
let a = qM(_.rawRows,
|
|
48383
|
+
let a = qM(_.rawRows, ae, i), o = r.editor.delimiter;
|
|
48383
48384
|
He(e, AN(a, r.editor.options, o));
|
|
48384
48385
|
}, [
|
|
48385
48386
|
_,
|
|
48386
48387
|
b,
|
|
48387
48388
|
n,
|
|
48388
48389
|
He,
|
|
48389
|
-
|
|
48390
|
-
|
|
48390
|
+
oe,
|
|
48391
|
+
ae
|
|
48391
48392
|
]), We = (0, y.useCallback)((e, t) => {
|
|
48392
48393
|
te((n) => {
|
|
48393
48394
|
let r = n[e] ?? [];
|
|
@@ -48401,13 +48402,13 @@ function JN() {
|
|
|
48401
48402
|
for (let [r, i] of Object.entries(b)) !i || e.has(i) || n.find((e) => e.id === i)?.editor?.type === "date" && t.push(r);
|
|
48402
48403
|
return t;
|
|
48403
48404
|
}, [b, n]), Ke = (0, y.useCallback)(() => {
|
|
48404
|
-
let e = new Set(B.map((e) => e.id)), t = EN(b, n, e), i = _ ? YM(_.rawRows,
|
|
48405
|
+
let e = new Set(B.map((e) => e.id)), t = EN(b, n, e), i = _ ? YM(_.rawRows, oe, ae, 1e3) : [], a = rp(i, DN(t)), o = cp(i, Ge(e));
|
|
48405
48406
|
return {
|
|
48406
48407
|
columnMapping: b,
|
|
48407
48408
|
valueMapping: Be,
|
|
48408
48409
|
primaryKey: C ?? r,
|
|
48409
48410
|
selectedSheet: F ?? void 0,
|
|
48410
|
-
headerRowIndex:
|
|
48411
|
+
headerRowIndex: U,
|
|
48411
48412
|
numberFormat: a,
|
|
48412
48413
|
dateFormat: o,
|
|
48413
48414
|
newColumns: B
|
|
@@ -48419,9 +48420,9 @@ function JN() {
|
|
|
48419
48420
|
C,
|
|
48420
48421
|
F,
|
|
48421
48422
|
r,
|
|
48422
|
-
re,
|
|
48423
48423
|
U,
|
|
48424
48424
|
oe,
|
|
48425
|
+
ae,
|
|
48425
48426
|
B,
|
|
48426
48427
|
n,
|
|
48427
48428
|
Ge
|
|
@@ -48448,8 +48449,8 @@ function JN() {
|
|
|
48448
48449
|
monthTable: op(f),
|
|
48449
48450
|
valueMapping: Be,
|
|
48450
48451
|
multiselectDelimiters: Le
|
|
48451
|
-
}, l =
|
|
48452
|
-
for (let e =
|
|
48452
|
+
}, l = oe, u = t.rawRows, p = [];
|
|
48453
|
+
for (let e = ae; e < u.length; e++) {
|
|
48453
48454
|
let t = u[e];
|
|
48454
48455
|
t && !RM(t) && p.push(e);
|
|
48455
48456
|
}
|
|
@@ -48482,8 +48483,8 @@ function JN() {
|
|
|
48482
48483
|
b,
|
|
48483
48484
|
B,
|
|
48484
48485
|
n,
|
|
48485
|
-
U,
|
|
48486
48486
|
oe,
|
|
48487
|
+
ae,
|
|
48487
48488
|
Be,
|
|
48488
48489
|
Le,
|
|
48489
48490
|
e,
|
|
@@ -48500,12 +48501,12 @@ function JN() {
|
|
|
48500
48501
|
for (let [t, n] of Object.entries(H)) e.addColumnOptions(t, n);
|
|
48501
48502
|
let o = e.registerSource({ name: i.fileName });
|
|
48502
48503
|
e.setSourceLoading(o, !0), e.recordLearnedSynonyms(MN(b, Be, [...n, ...B], Mj(jj, l)));
|
|
48503
|
-
let s =
|
|
48504
|
-
for (let e =
|
|
48504
|
+
let s = oe, c = i.delimiter ?? ",", d = i.rawRows, p = [];
|
|
48505
|
+
for (let e = ae; e < d.length; e++) {
|
|
48505
48506
|
let t = d[e];
|
|
48506
48507
|
t && !RM(t) && p.push(e);
|
|
48507
48508
|
}
|
|
48508
|
-
let m = YM(i.rawRows, s,
|
|
48509
|
+
let m = YM(i.rawRows, s, ae, 1e3), h = EN(b, n, a), g = {
|
|
48509
48510
|
numberFormat: rp(m, DN(h)),
|
|
48510
48511
|
dateFormat: cp(m, Ge(a)),
|
|
48511
48512
|
monthTable: op(f),
|
|
@@ -48577,8 +48578,8 @@ function JN() {
|
|
|
48577
48578
|
Le,
|
|
48578
48579
|
l,
|
|
48579
48580
|
Ge,
|
|
48580
|
-
U,
|
|
48581
48581
|
oe,
|
|
48582
|
+
ae,
|
|
48582
48583
|
f
|
|
48583
48584
|
]);
|
|
48584
48585
|
return {
|
|
@@ -48643,10 +48644,10 @@ function JN() {
|
|
|
48643
48644
|
remoteSourceError: Ae,
|
|
48644
48645
|
clearRemoteSourceError: Me,
|
|
48645
48646
|
handleRemoteSourceSelect: Ne,
|
|
48646
|
-
headerRowIndex:
|
|
48647
|
-
setHeaderRowIndex:
|
|
48648
|
-
headers:
|
|
48649
|
-
dataStartIndex:
|
|
48647
|
+
headerRowIndex: U,
|
|
48648
|
+
setHeaderRowIndex: re,
|
|
48649
|
+
headers: oe,
|
|
48650
|
+
dataStartIndex: ae
|
|
48650
48651
|
};
|
|
48651
48652
|
}
|
|
48652
48653
|
//#endregion
|