@gisce/react-ooui 1.1.18-rc.1 → 1.1.19-rc.0
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/react-ooui.es.js
CHANGED
|
@@ -4673,8 +4673,8 @@ function requireReactIs_development() {
|
|
|
4673
4673
|
}
|
|
4674
4674
|
function y(_) {
|
|
4675
4675
|
if (typeof _ == "object" && _ !== null) {
|
|
4676
|
-
var
|
|
4677
|
-
switch (
|
|
4676
|
+
var Z = _.$$typeof;
|
|
4677
|
+
switch (Z) {
|
|
4678
4678
|
case t:
|
|
4679
4679
|
var Q = _.type;
|
|
4680
4680
|
switch (Q) {
|
|
@@ -4686,20 +4686,20 @@ function requireReactIs_development() {
|
|
|
4686
4686
|
case f:
|
|
4687
4687
|
return Q;
|
|
4688
4688
|
default:
|
|
4689
|
-
var
|
|
4690
|
-
switch (
|
|
4689
|
+
var ee = Q && Q.$$typeof;
|
|
4690
|
+
switch (ee) {
|
|
4691
4691
|
case c:
|
|
4692
4692
|
case d:
|
|
4693
4693
|
case m:
|
|
4694
4694
|
case h:
|
|
4695
4695
|
case s:
|
|
4696
|
-
return
|
|
4696
|
+
return ee;
|
|
4697
4697
|
default:
|
|
4698
|
-
return
|
|
4698
|
+
return Z;
|
|
4699
4699
|
}
|
|
4700
4700
|
}
|
|
4701
4701
|
case n:
|
|
4702
|
-
return
|
|
4702
|
+
return Z;
|
|
4703
4703
|
}
|
|
4704
4704
|
}
|
|
4705
4705
|
}
|
|
@@ -4716,7 +4716,7 @@ function requireReactIs_development() {
|
|
|
4716
4716
|
function W(_) {
|
|
4717
4717
|
return y(_) === s;
|
|
4718
4718
|
}
|
|
4719
|
-
function
|
|
4719
|
+
function K(_) {
|
|
4720
4720
|
return typeof _ == "object" && _ !== null && _.$$typeof === t;
|
|
4721
4721
|
}
|
|
4722
4722
|
function V(_) {
|
|
@@ -4734,7 +4734,7 @@ function requireReactIs_development() {
|
|
|
4734
4734
|
function j(_) {
|
|
4735
4735
|
return y(_) === n;
|
|
4736
4736
|
}
|
|
4737
|
-
function
|
|
4737
|
+
function Y(_) {
|
|
4738
4738
|
return y(_) === a;
|
|
4739
4739
|
}
|
|
4740
4740
|
function X(_) {
|
|
@@ -4743,7 +4743,7 @@ function requireReactIs_development() {
|
|
|
4743
4743
|
function F(_) {
|
|
4744
4744
|
return y(_) === f;
|
|
4745
4745
|
}
|
|
4746
|
-
reactIs_development.AsyncMode = O, reactIs_development.ConcurrentMode = b, reactIs_development.ContextConsumer = E, reactIs_development.ContextProvider = w, reactIs_development.Element = S, reactIs_development.ForwardRef = T, reactIs_development.Fragment = k, reactIs_development.Lazy = $, reactIs_development.Memo = D, reactIs_development.Portal = M, reactIs_development.Profiler = L, reactIs_development.StrictMode = q, reactIs_development.Suspense = N, reactIs_development.isAsyncMode = U, reactIs_development.isConcurrentMode = G, reactIs_development.isContextConsumer = z, reactIs_development.isContextProvider = W, reactIs_development.isElement =
|
|
4746
|
+
reactIs_development.AsyncMode = O, reactIs_development.ConcurrentMode = b, reactIs_development.ContextConsumer = E, reactIs_development.ContextProvider = w, reactIs_development.Element = S, reactIs_development.ForwardRef = T, reactIs_development.Fragment = k, reactIs_development.Lazy = $, reactIs_development.Memo = D, reactIs_development.Portal = M, reactIs_development.Profiler = L, reactIs_development.StrictMode = q, reactIs_development.Suspense = N, reactIs_development.isAsyncMode = U, reactIs_development.isConcurrentMode = G, reactIs_development.isContextConsumer = z, reactIs_development.isContextProvider = W, reactIs_development.isElement = K, reactIs_development.isForwardRef = V, reactIs_development.isFragment = H, reactIs_development.isLazy = P, reactIs_development.isMemo = A, reactIs_development.isPortal = j, reactIs_development.isProfiler = Y, reactIs_development.isStrictMode = X, reactIs_development.isSuspense = F, reactIs_development.isValidElementType = C, reactIs_development.typeOf = y;
|
|
4747
4747
|
}()), reactIs_development;
|
|
4748
4748
|
}
|
|
4749
4749
|
var hasRequiredReactIs;
|
|
@@ -6595,11 +6595,11 @@ function requireRegeneratorRuntime() {
|
|
|
6595
6595
|
function f(D, M, L, q) {
|
|
6596
6596
|
var N = M && M.prototype instanceof m ? M : m, B = Object.create(N.prototype), U = new T(q || []);
|
|
6597
6597
|
return B._invoke = function(G, z, W) {
|
|
6598
|
-
var
|
|
6598
|
+
var K = "suspendedStart";
|
|
6599
6599
|
return function(V, H) {
|
|
6600
|
-
if (
|
|
6600
|
+
if (K === "executing")
|
|
6601
6601
|
throw new Error("Generator is already running");
|
|
6602
|
-
if (
|
|
6602
|
+
if (K === "completed") {
|
|
6603
6603
|
if (V === "throw")
|
|
6604
6604
|
throw H;
|
|
6605
6605
|
return $();
|
|
@@ -6617,22 +6617,22 @@ function requireRegeneratorRuntime() {
|
|
|
6617
6617
|
if (W.method === "next")
|
|
6618
6618
|
W.sent = W._sent = W.arg;
|
|
6619
6619
|
else if (W.method === "throw") {
|
|
6620
|
-
if (
|
|
6621
|
-
throw
|
|
6620
|
+
if (K === "suspendedStart")
|
|
6621
|
+
throw K = "completed", W.arg;
|
|
6622
6622
|
W.dispatchException(W.arg);
|
|
6623
6623
|
} else
|
|
6624
6624
|
W.method === "return" && W.abrupt("return", W.arg);
|
|
6625
|
-
|
|
6625
|
+
K = "executing";
|
|
6626
6626
|
var j = p(G, z, W);
|
|
6627
6627
|
if (j.type === "normal") {
|
|
6628
|
-
if (
|
|
6628
|
+
if (K = W.done ? "completed" : "suspendedYield", j.arg === h)
|
|
6629
6629
|
continue;
|
|
6630
6630
|
return {
|
|
6631
6631
|
value: j.arg,
|
|
6632
6632
|
done: W.done
|
|
6633
6633
|
};
|
|
6634
6634
|
}
|
|
6635
|
-
j.type === "throw" && (
|
|
6635
|
+
j.type === "throw" && (K = "completed", W.method = "throw", W.arg = j.arg);
|
|
6636
6636
|
}
|
|
6637
6637
|
};
|
|
6638
6638
|
}(D, L, U), B;
|
|
@@ -6676,12 +6676,12 @@ function requireRegeneratorRuntime() {
|
|
|
6676
6676
|
function L(N, B, U, G) {
|
|
6677
6677
|
var z = p(D[N], D, B);
|
|
6678
6678
|
if (z.type !== "throw") {
|
|
6679
|
-
var W = z.arg,
|
|
6680
|
-
return
|
|
6679
|
+
var W = z.arg, K = W.value;
|
|
6680
|
+
return K && t(K) == "object" && a.call(K, "__await") ? M.resolve(K.__await).then(function(V) {
|
|
6681
6681
|
L("next", V, U, G);
|
|
6682
6682
|
}, function(V) {
|
|
6683
6683
|
L("throw", V, U, G);
|
|
6684
|
-
}) : M.resolve(
|
|
6684
|
+
}) : M.resolve(K).then(function(V) {
|
|
6685
6685
|
W.value = V, U(W);
|
|
6686
6686
|
}, function(V) {
|
|
6687
6687
|
return L("throw", V, U, G);
|
|
@@ -6808,8 +6808,8 @@ function requireRegeneratorRuntime() {
|
|
|
6808
6808
|
if (this.done)
|
|
6809
6809
|
throw M;
|
|
6810
6810
|
var L = this;
|
|
6811
|
-
function q(W,
|
|
6812
|
-
return U.type = "throw", U.arg = M, L.next = W,
|
|
6811
|
+
function q(W, K) {
|
|
6812
|
+
return U.type = "throw", U.arg = M, L.next = W, K && (L.method = "next", L.arg = void 0), !!K;
|
|
6813
6813
|
}
|
|
6814
6814
|
for (var N = this.tryEntries.length - 1; N >= 0; --N) {
|
|
6815
6815
|
var B = this.tryEntries[N], U = B.completion;
|
|
@@ -8727,9 +8727,9 @@ var FormContext = /* @__PURE__ */ React.createContext({
|
|
|
8727
8727
|
onValuesChange: m,
|
|
8728
8728
|
onFieldsChange: function(z) {
|
|
8729
8729
|
if (C.triggerFormChange(r, z), v) {
|
|
8730
|
-
for (var W = arguments.length,
|
|
8731
|
-
|
|
8732
|
-
v.apply(void 0, [z].concat(
|
|
8730
|
+
for (var W = arguments.length, K = new Array(W > 1 ? W - 1 : 0), V = 1; V < W; V++)
|
|
8731
|
+
K[V - 1] = arguments[V];
|
|
8732
|
+
v.apply(void 0, [z].concat(K));
|
|
8733
8733
|
}
|
|
8734
8734
|
},
|
|
8735
8735
|
onFinish: function(z) {
|
|
@@ -9566,24 +9566,24 @@ const useStepQueue = function(e, t) {
|
|
|
9566
9566
|
}, []), [a, o];
|
|
9567
9567
|
};
|
|
9568
9568
|
function useStatus(e, t, n, r) {
|
|
9569
|
-
var o = r.motionEnter, a = o === void 0 ? !0 : o, s = r.motionAppear, c = s === void 0 ? !0 : s, l = r.motionLeave, u = l === void 0 ? !0 : l, d = r.motionDeadline, f = r.motionLeaveImmediately, p = r.onAppearPrepare, h = r.onEnterPrepare, m = r.onLeavePrepare, v = r.onAppearStart, x = r.onEnterStart, g = r.onLeaveStart, I = r.onAppearActive, C = r.onEnterActive, y = r.onLeaveActive, O = r.onAppearEnd, b = r.onEnterEnd, E = r.onLeaveEnd, w = r.onVisibleChanged, S = useMountStatus(), T = _slicedToArray(S, 2), k = T[0], $ = T[1], D = useMountStatus(STATUS_NONE), M = _slicedToArray(D, 2), L = M[0], q = M[1], N = useMountStatus(null), B = _slicedToArray(N, 2), U = B[0], G = B[1], z = useRef(!1), W = useRef(null),
|
|
9569
|
+
var o = r.motionEnter, a = o === void 0 ? !0 : o, s = r.motionAppear, c = s === void 0 ? !0 : s, l = r.motionLeave, u = l === void 0 ? !0 : l, d = r.motionDeadline, f = r.motionLeaveImmediately, p = r.onAppearPrepare, h = r.onEnterPrepare, m = r.onLeavePrepare, v = r.onAppearStart, x = r.onEnterStart, g = r.onLeaveStart, I = r.onAppearActive, C = r.onEnterActive, y = r.onLeaveActive, O = r.onAppearEnd, b = r.onEnterEnd, E = r.onLeaveEnd, w = r.onVisibleChanged, S = useMountStatus(), T = _slicedToArray(S, 2), k = T[0], $ = T[1], D = useMountStatus(STATUS_NONE), M = _slicedToArray(D, 2), L = M[0], q = M[1], N = useMountStatus(null), B = _slicedToArray(N, 2), U = B[0], G = B[1], z = useRef(!1), W = useRef(null), K = useRef(!1), V = useRef(null);
|
|
9570
9570
|
function H() {
|
|
9571
|
-
var
|
|
9572
|
-
return
|
|
9571
|
+
var ie = n();
|
|
9572
|
+
return ie || V.current;
|
|
9573
9573
|
}
|
|
9574
9574
|
var P = useRef(!1);
|
|
9575
|
-
function A(
|
|
9575
|
+
function A(ie) {
|
|
9576
9576
|
var le = H();
|
|
9577
|
-
if (!(
|
|
9577
|
+
if (!(ie && !ie.deadline && ie.target !== le)) {
|
|
9578
9578
|
var ae;
|
|
9579
|
-
L === STATUS_APPEAR && P.current ? ae = O == null ? void 0 : O(le,
|
|
9579
|
+
L === STATUS_APPEAR && P.current ? ae = O == null ? void 0 : O(le, ie) : L === STATUS_ENTER && P.current ? ae = b == null ? void 0 : b(le, ie) : L === STATUS_LEAVE && P.current && (ae = E == null ? void 0 : E(le, ie)), ae !== !1 && !K.current && (q(STATUS_NONE), G(null));
|
|
9580
9580
|
}
|
|
9581
9581
|
}
|
|
9582
|
-
var j = useDomMotionEvents(A),
|
|
9583
|
-
var
|
|
9582
|
+
var j = useDomMotionEvents(A), Y = _slicedToArray(j, 1), X = Y[0], F = React.useMemo(function() {
|
|
9583
|
+
var ie, le, ae;
|
|
9584
9584
|
switch (L) {
|
|
9585
9585
|
case "appear":
|
|
9586
|
-
return
|
|
9586
|
+
return ie = {}, _defineProperty$1(ie, STEP_PREPARE, p), _defineProperty$1(ie, STEP_START, v), _defineProperty$1(ie, STEP_ACTIVE, I), ie;
|
|
9587
9587
|
case "enter":
|
|
9588
9588
|
return le = {}, _defineProperty$1(le, STEP_PREPARE, h), _defineProperty$1(le, STEP_START, x), _defineProperty$1(le, STEP_ACTIVE, C), le;
|
|
9589
9589
|
case "leave":
|
|
@@ -9591,41 +9591,41 @@ function useStatus(e, t, n, r) {
|
|
|
9591
9591
|
default:
|
|
9592
9592
|
return {};
|
|
9593
9593
|
}
|
|
9594
|
-
}, [L]), _ = useStepQueue(L, function(
|
|
9595
|
-
if (
|
|
9594
|
+
}, [L]), _ = useStepQueue(L, function(ie) {
|
|
9595
|
+
if (ie === STEP_PREPARE) {
|
|
9596
9596
|
var le = F[STEP_PREPARE];
|
|
9597
9597
|
return le ? le(H()) : SkipStep;
|
|
9598
9598
|
}
|
|
9599
|
-
if (
|
|
9599
|
+
if (ee in F) {
|
|
9600
9600
|
var ae;
|
|
9601
|
-
G(((ae = F[
|
|
9601
|
+
G(((ae = F[ee]) === null || ae === void 0 ? void 0 : ae.call(F, H(), null)) || null);
|
|
9602
9602
|
}
|
|
9603
|
-
return
|
|
9603
|
+
return ee === STEP_ACTIVE && (X(H()), d > 0 && (clearTimeout(W.current), W.current = setTimeout(function() {
|
|
9604
9604
|
A({
|
|
9605
9605
|
deadline: !0
|
|
9606
9606
|
});
|
|
9607
9607
|
}, d))), DoStep;
|
|
9608
|
-
}),
|
|
9608
|
+
}), Z = _slicedToArray(_, 2), Q = Z[0], ee = Z[1], J = isActive(ee);
|
|
9609
9609
|
P.current = J, useIsomorphicLayoutEffect(function() {
|
|
9610
9610
|
if ($(t), !!e) {
|
|
9611
|
-
var
|
|
9611
|
+
var ie = z.current;
|
|
9612
9612
|
z.current = !0;
|
|
9613
9613
|
var le;
|
|
9614
|
-
!
|
|
9614
|
+
!ie && t && c && (le = STATUS_APPEAR), ie && t && a && (le = STATUS_ENTER), (ie && !t && u || !ie && f && !t && u) && (le = STATUS_LEAVE), le && (q(le), Q());
|
|
9615
9615
|
}
|
|
9616
9616
|
}, [t]), useEffect(function() {
|
|
9617
9617
|
(L === STATUS_APPEAR && !c || L === STATUS_ENTER && !a || L === STATUS_LEAVE && !u) && q(STATUS_NONE);
|
|
9618
9618
|
}, [c, a, u]), useEffect(function() {
|
|
9619
9619
|
return function() {
|
|
9620
|
-
clearTimeout(W.current),
|
|
9620
|
+
clearTimeout(W.current), K.current = !0;
|
|
9621
9621
|
};
|
|
9622
9622
|
}, []), useEffect(function() {
|
|
9623
9623
|
k !== void 0 && L === STATUS_NONE && (w == null || w(k));
|
|
9624
9624
|
}, [k, L]);
|
|
9625
|
-
var
|
|
9626
|
-
return F[STEP_PREPARE] &&
|
|
9625
|
+
var te = U;
|
|
9626
|
+
return F[STEP_PREPARE] && ee === STEP_START && (te = _objectSpread2$1({
|
|
9627
9627
|
transition: "none"
|
|
9628
|
-
},
|
|
9628
|
+
}, te)), [L, ee, te, k != null ? k : t];
|
|
9629
9629
|
}
|
|
9630
9630
|
var DomWrapper = /* @__PURE__ */ function(e) {
|
|
9631
9631
|
_inherits(n, e);
|
|
@@ -10425,14 +10425,14 @@ function requireMessage() {
|
|
|
10425
10425
|
loading: l.default
|
|
10426
10426
|
};
|
|
10427
10427
|
function k(B, U) {
|
|
10428
|
-
var G, z = B.duration !== void 0 ? B.duration : v, W = T[B.type],
|
|
10428
|
+
var G, z = B.duration !== void 0 ? B.duration : v, W = T[B.type], K = (0, s.default)("".concat(U, "-custom-content"), (G = {}, (0, o.default)(G, "".concat(U, "-").concat(B.type), B.type), (0, o.default)(G, "".concat(U, "-rtl"), b === !0), G));
|
|
10429
10429
|
return {
|
|
10430
10430
|
key: B.key,
|
|
10431
10431
|
duration: z,
|
|
10432
10432
|
style: B.style || {},
|
|
10433
10433
|
className: B.className,
|
|
10434
10434
|
content: /* @__PURE__ */ a.createElement("div", {
|
|
10435
|
-
className:
|
|
10435
|
+
className: K
|
|
10436
10436
|
}, B.icon || W && /* @__PURE__ */ a.createElement(W, null), /* @__PURE__ */ a.createElement("span", null, B.content)),
|
|
10437
10437
|
onClose: B.onClose,
|
|
10438
10438
|
onClick: B.onClick
|
|
@@ -10440,21 +10440,21 @@ function requireMessage() {
|
|
|
10440
10440
|
}
|
|
10441
10441
|
function $(B) {
|
|
10442
10442
|
var U = B.key || g++, G = new Promise(function(W) {
|
|
10443
|
-
var
|
|
10443
|
+
var K = function() {
|
|
10444
10444
|
return typeof B.onClose == "function" && B.onClose(), W(!0);
|
|
10445
10445
|
};
|
|
10446
10446
|
S(B, function(V) {
|
|
10447
10447
|
var H = V.prefixCls, P = V.instance;
|
|
10448
10448
|
P.notice(k((0, r.default)((0, r.default)({}, B), {
|
|
10449
10449
|
key: U,
|
|
10450
|
-
onClose:
|
|
10450
|
+
onClose: K
|
|
10451
10451
|
}), H));
|
|
10452
10452
|
});
|
|
10453
10453
|
}), z = function() {
|
|
10454
10454
|
m && m.removeNotice(U);
|
|
10455
10455
|
};
|
|
10456
|
-
return z.then = function(W,
|
|
10457
|
-
return G.then(W,
|
|
10456
|
+
return z.then = function(W, K) {
|
|
10457
|
+
return G.then(W, K);
|
|
10458
10458
|
}, z.promise = G, z;
|
|
10459
10459
|
}
|
|
10460
10460
|
function D(B) {
|
|
@@ -10469,8 +10469,8 @@ function requireMessage() {
|
|
|
10469
10469
|
var G = m, z = G.removeNotice;
|
|
10470
10470
|
z(U);
|
|
10471
10471
|
} else {
|
|
10472
|
-
var W = m,
|
|
10473
|
-
|
|
10472
|
+
var W = m, K = W.destroy;
|
|
10473
|
+
K(), m = null;
|
|
10474
10474
|
}
|
|
10475
10475
|
}
|
|
10476
10476
|
};
|
|
@@ -10751,35 +10751,35 @@ function requireNotification() {
|
|
|
10751
10751
|
value: !0
|
|
10752
10752
|
}), e.default = e.getInstance = void 0;
|
|
10753
10753
|
var r = n(requireRegenerator()), o = n(require_extends()), a = n(requireDefineProperty()), s = t(React__default), c = n(require$$6$1), l = n(requireCloseOutlined()), u = n(requireClassnames()), d = n(requireCheckCircleOutlined()), f = n(requireCloseCircleOutlined()), p = n(requireExclamationCircleOutlined()), h = n(requireInfoCircleOutlined()), m = n(requireUseNotification()), v = function(B, U, G, z) {
|
|
10754
|
-
function W(
|
|
10755
|
-
return
|
|
10756
|
-
V(
|
|
10754
|
+
function W(K) {
|
|
10755
|
+
return K instanceof G ? K : new G(function(V) {
|
|
10756
|
+
V(K);
|
|
10757
10757
|
});
|
|
10758
10758
|
}
|
|
10759
|
-
return new (G || (G = Promise))(function(
|
|
10759
|
+
return new (G || (G = Promise))(function(K, V) {
|
|
10760
10760
|
function H(j) {
|
|
10761
10761
|
try {
|
|
10762
10762
|
A(z.next(j));
|
|
10763
|
-
} catch (
|
|
10764
|
-
V(
|
|
10763
|
+
} catch (Y) {
|
|
10764
|
+
V(Y);
|
|
10765
10765
|
}
|
|
10766
10766
|
}
|
|
10767
10767
|
function P(j) {
|
|
10768
10768
|
try {
|
|
10769
10769
|
A(z.throw(j));
|
|
10770
|
-
} catch (
|
|
10771
|
-
V(
|
|
10770
|
+
} catch (Y) {
|
|
10771
|
+
V(Y);
|
|
10772
10772
|
}
|
|
10773
10773
|
}
|
|
10774
10774
|
function A(j) {
|
|
10775
|
-
j.done ?
|
|
10775
|
+
j.done ? K(j.value) : W(j.value).then(H, P);
|
|
10776
10776
|
}
|
|
10777
10777
|
A((z = z.apply(B, U || [])).next());
|
|
10778
10778
|
});
|
|
10779
10779
|
}, x = {}, g = 4.5, I = 24, C = 24, y = "ant-notification", O = "topRight", b, E, w = !1;
|
|
10780
10780
|
function S(B) {
|
|
10781
|
-
var U = B.duration, G = B.placement, z = B.bottom, W = B.top,
|
|
10782
|
-
H !== void 0 && (y = H), U !== void 0 && (g = U), G !== void 0 ? O = G : B.rtl && (O = "topLeft"), z !== void 0 && (C = z), W !== void 0 && (I = W),
|
|
10781
|
+
var U = B.duration, G = B.placement, z = B.bottom, W = B.top, K = B.getContainer, V = B.closeIcon, H = B.prefixCls;
|
|
10782
|
+
H !== void 0 && (y = H), U !== void 0 && (g = U), G !== void 0 ? O = G : B.rtl && (O = "topLeft"), z !== void 0 && (C = z), W !== void 0 && (I = W), K !== void 0 && (b = K), V !== void 0 && (E = V), B.rtl !== void 0 && (w = B.rtl);
|
|
10783
10783
|
}
|
|
10784
10784
|
function T(B) {
|
|
10785
10785
|
var U = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : I, G = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : C, z;
|
|
@@ -10816,11 +10816,11 @@ function requireNotification() {
|
|
|
10816
10816
|
return z;
|
|
10817
10817
|
}
|
|
10818
10818
|
function k(B, U) {
|
|
10819
|
-
var G = B.placement, z = G === void 0 ? O : G, W = B.top,
|
|
10819
|
+
var G = B.placement, z = G === void 0 ? O : G, W = B.top, K = B.bottom, V = B.getContainer, H = V === void 0 ? b : V, P = B.closeIcon, A = P === void 0 ? E : P, j = B.prefixCls || y, Y = "".concat(j, "-notice"), X = "".concat(j, "-").concat(z), F = x[X];
|
|
10820
10820
|
if (F) {
|
|
10821
10821
|
Promise.resolve(F).then(function(Q) {
|
|
10822
10822
|
U({
|
|
10823
|
-
prefixCls:
|
|
10823
|
+
prefixCls: Y,
|
|
10824
10824
|
instance: Q
|
|
10825
10825
|
});
|
|
10826
10826
|
});
|
|
@@ -10830,18 +10830,18 @@ function requireNotification() {
|
|
|
10830
10830
|
className: "".concat(j, "-close-x")
|
|
10831
10831
|
}, A || /* @__PURE__ */ s.createElement(l.default, {
|
|
10832
10832
|
className: "".concat(j, "-close-icon")
|
|
10833
|
-
})),
|
|
10833
|
+
})), Z = (0, u.default)("".concat(j, "-").concat(z), (0, a.default)({}, "".concat(j, "-rtl"), w === !0));
|
|
10834
10834
|
x[X] = new Promise(function(Q) {
|
|
10835
10835
|
c.default.newInstance({
|
|
10836
10836
|
prefixCls: j,
|
|
10837
|
-
className:
|
|
10838
|
-
style: T(z, W,
|
|
10837
|
+
className: Z,
|
|
10838
|
+
style: T(z, W, K),
|
|
10839
10839
|
getContainer: H,
|
|
10840
10840
|
closeIcon: _
|
|
10841
|
-
}, function(
|
|
10842
|
-
Q(
|
|
10843
|
-
prefixCls:
|
|
10844
|
-
instance:
|
|
10841
|
+
}, function(ee) {
|
|
10842
|
+
Q(ee), U({
|
|
10843
|
+
prefixCls: Y,
|
|
10844
|
+
instance: ee
|
|
10845
10845
|
});
|
|
10846
10846
|
});
|
|
10847
10847
|
});
|
|
@@ -10983,9 +10983,9 @@ function requireConfigProvider() {
|
|
|
10983
10983
|
return {
|
|
10984
10984
|
prefixCls: N
|
|
10985
10985
|
};
|
|
10986
|
-
}, [N]), W = O,
|
|
10987
|
-
return S && S.Form && S.Form.defaultValidateMessages && (
|
|
10988
|
-
validateMessages:
|
|
10986
|
+
}, [N]), W = O, K = {};
|
|
10987
|
+
return S && S.Form && S.Form.defaultValidateMessages && (K = S.Form.defaultValidateMessages), w && w.validateMessages && (K = (0, r.default)((0, r.default)({}, K), w.validateMessages)), Object.keys(K).length > 0 && (W = /* @__PURE__ */ o.createElement(s.FormProvider, {
|
|
10988
|
+
validateMessages: K
|
|
10989
10989
|
}, O)), S && (W = /* @__PURE__ */ o.createElement(l.default, {
|
|
10990
10990
|
locale: S,
|
|
10991
10991
|
_ANT_MARK__: l.ANT_MARK
|
|
@@ -11122,15 +11122,15 @@ function requireInput() {
|
|
|
11122
11122
|
var D = T.props, M = D.onPressEnter, L = D.onKeyDown;
|
|
11123
11123
|
$.keyCode === 13 && M && M($), L && L($);
|
|
11124
11124
|
}, T.renderComponent = function($) {
|
|
11125
|
-
var D = $.getPrefixCls, M = $.direction, L = $.input, q = T.state, N = q.value, B = q.focused, U = T.props, G = U.prefixCls, z = U.bordered, W = z === void 0 ? !0 : z,
|
|
11125
|
+
var D = $.getPrefixCls, M = $.direction, L = $.input, q = T.state, N = q.value, B = q.focused, U = T.props, G = U.prefixCls, z = U.bordered, W = z === void 0 ? !0 : z, K = D("input", G);
|
|
11126
11126
|
return T.direction = M, /* @__PURE__ */ u.createElement(m.default.Consumer, null, function(V) {
|
|
11127
11127
|
return /* @__PURE__ */ u.createElement(p.default, (0, r.default)({
|
|
11128
11128
|
size: V
|
|
11129
11129
|
}, T.props, {
|
|
11130
|
-
prefixCls:
|
|
11130
|
+
prefixCls: K,
|
|
11131
11131
|
inputType: "input",
|
|
11132
11132
|
value: x(N),
|
|
11133
|
-
element: T.renderInput(
|
|
11133
|
+
element: T.renderInput(K, V, W, L),
|
|
11134
11134
|
handleReset: T.handleReset,
|
|
11135
11135
|
ref: T.saveClearableInput,
|
|
11136
11136
|
direction: M,
|
|
@@ -11280,7 +11280,7 @@ function requireClearableLabeledInput() {
|
|
|
11280
11280
|
}, {
|
|
11281
11281
|
key: "renderLabeledIcon",
|
|
11282
11282
|
value: function(E, w) {
|
|
11283
|
-
var S, T = this.props, k = T.focused, $ = T.value, D = T.prefix, M = T.className, L = T.size, q = T.suffix, N = T.disabled, B = T.allowClear, U = T.direction, G = T.style, z = T.readOnly, W = T.bordered,
|
|
11283
|
+
var S, T = this.props, k = T.focused, $ = T.value, D = T.prefix, M = T.className, L = T.size, q = T.suffix, N = T.disabled, B = T.allowClear, U = T.direction, G = T.style, z = T.readOnly, W = T.bordered, K = this.renderSuffix(E);
|
|
11284
11284
|
if (!v(this.props))
|
|
11285
11285
|
return (0, h.cloneElement)(w, {
|
|
11286
11286
|
value: $
|
|
@@ -11297,7 +11297,7 @@ function requireClearableLabeledInput() {
|
|
|
11297
11297
|
style: null,
|
|
11298
11298
|
value: $,
|
|
11299
11299
|
className: (0, p.getInputClassName)(E, W, L, N)
|
|
11300
|
-
}),
|
|
11300
|
+
}), K);
|
|
11301
11301
|
}
|
|
11302
11302
|
}, {
|
|
11303
11303
|
key: "renderInputWithLabel",
|
|
@@ -11361,15 +11361,15 @@ function requireClearableLabeledInput() {
|
|
|
11361
11361
|
O.indexOf(E[w]) < 0 && Object.prototype.propertyIsEnumerable.call(y, E[w]) && (b[E[w]] = y[E[w]]);
|
|
11362
11362
|
return b;
|
|
11363
11363
|
}, I = /* @__PURE__ */ l.forwardRef(function(y, O) {
|
|
11364
|
-
var b, E = y.prefixCls, w = y.bordered, S = w === void 0 ? !0 : w, T = y.showCount, k = T === void 0 ? !1 : T, $ = y.maxLength, D = y.className, M = y.style, L = y.size, q = g(y, ["prefixCls", "bordered", "showCount", "maxLength", "className", "style", "size"]), N = l.useContext(m.ConfigContext), B = N.getPrefixCls, U = N.direction, G = l.useContext(x.default), z = l.useRef(null), W = l.useRef(null),
|
|
11364
|
+
var b, E = y.prefixCls, w = y.bordered, S = w === void 0 ? !0 : w, T = y.showCount, k = T === void 0 ? !1 : T, $ = y.maxLength, D = y.className, M = y.style, L = y.size, q = g(y, ["prefixCls", "bordered", "showCount", "maxLength", "className", "style", "size"]), N = l.useContext(m.ConfigContext), B = N.getPrefixCls, U = N.direction, G = l.useContext(x.default), z = l.useRef(null), W = l.useRef(null), K = (0, p.default)(q.defaultValue, {
|
|
11365
11365
|
value: q.value
|
|
11366
|
-
}), V = (0, c.default)(
|
|
11366
|
+
}), V = (0, c.default)(K, 2), H = V[0], P = V[1], A = l.useRef(q.value);
|
|
11367
11367
|
l.useEffect(function() {
|
|
11368
11368
|
(q.value !== void 0 || A.current !== q.value) && (P(q.value), A.current = q.value);
|
|
11369
11369
|
}, [q.value, A.current]);
|
|
11370
11370
|
var j = function(le, ae) {
|
|
11371
11371
|
q.value === void 0 && (P(le), ae == null || ae());
|
|
11372
|
-
},
|
|
11372
|
+
}, Y = function(le) {
|
|
11373
11373
|
j(le.target.value), (0, v.resolveOnChange)(z.current, le, q.onChange);
|
|
11374
11374
|
}, X = function(le) {
|
|
11375
11375
|
j("", function() {
|
|
@@ -11378,12 +11378,12 @@ function requireClearableLabeledInput() {
|
|
|
11378
11378
|
}), (0, v.resolveOnChange)(z.current, le, q.onChange);
|
|
11379
11379
|
}, F = B("input", E);
|
|
11380
11380
|
l.useImperativeHandle(O, function() {
|
|
11381
|
-
var
|
|
11381
|
+
var ie;
|
|
11382
11382
|
return {
|
|
11383
|
-
resizableTextArea: (
|
|
11383
|
+
resizableTextArea: (ie = z.current) === null || ie === void 0 ? void 0 : ie.resizableTextArea,
|
|
11384
11384
|
focus: function(ae) {
|
|
11385
|
-
var
|
|
11386
|
-
(0, v.triggerFocus)((
|
|
11385
|
+
var Oe, pe;
|
|
11386
|
+
(0, v.triggerFocus)((pe = (Oe = z.current) === null || Oe === void 0 ? void 0 : Oe.resizableTextArea) === null || pe === void 0 ? void 0 : pe.textArea, ae);
|
|
11387
11387
|
},
|
|
11388
11388
|
blur: function() {
|
|
11389
11389
|
var ae;
|
|
@@ -11396,32 +11396,32 @@ function requireClearableLabeledInput() {
|
|
|
11396
11396
|
className: (0, f.default)((b = {}, (0, s.default)(b, "".concat(F, "-borderless"), !S), (0, s.default)(b, D, D && !k), (0, s.default)(b, "".concat(F, "-sm"), G === "small" || L === "small"), (0, s.default)(b, "".concat(F, "-lg"), G === "large" || L === "large"), b)),
|
|
11397
11397
|
style: k ? void 0 : M,
|
|
11398
11398
|
prefixCls: F,
|
|
11399
|
-
onChange:
|
|
11399
|
+
onChange: Y,
|
|
11400
11400
|
ref: z
|
|
11401
|
-
})),
|
|
11402
|
-
|
|
11403
|
-
var
|
|
11401
|
+
})), Z = (0, v.fixControlledValue)(H), Q = Number($) > 0;
|
|
11402
|
+
Z = Q ? (0, o.default)(Z).slice(0, $).join("") : Z;
|
|
11403
|
+
var ee = /* @__PURE__ */ l.createElement(h.default, (0, a.default)({}, q, {
|
|
11404
11404
|
prefixCls: F,
|
|
11405
11405
|
direction: U,
|
|
11406
11406
|
inputType: "text",
|
|
11407
|
-
value:
|
|
11407
|
+
value: Z,
|
|
11408
11408
|
element: _,
|
|
11409
11409
|
handleReset: X,
|
|
11410
11410
|
ref: W,
|
|
11411
11411
|
bordered: S
|
|
11412
11412
|
}));
|
|
11413
11413
|
if (k) {
|
|
11414
|
-
var J = Math.min(
|
|
11415
|
-
return (0, r.default)(k) === "object" ?
|
|
11414
|
+
var J = Math.min(Z.length, $ != null ? $ : 1 / 0), te = "";
|
|
11415
|
+
return (0, r.default)(k) === "object" ? te = k.formatter({
|
|
11416
11416
|
count: J,
|
|
11417
11417
|
maxLength: $
|
|
11418
|
-
}) :
|
|
11418
|
+
}) : te = "".concat(J).concat(Q ? " / ".concat($) : ""), /* @__PURE__ */ l.createElement("div", {
|
|
11419
11419
|
className: (0, f.default)("".concat(F, "-textarea"), (0, s.default)({}, "".concat(F, "-textarea-rtl"), U === "rtl"), "".concat(F, "-textarea-show-count"), D),
|
|
11420
11420
|
style: M,
|
|
11421
|
-
"data-count":
|
|
11422
|
-
},
|
|
11421
|
+
"data-count": te
|
|
11422
|
+
}, ee);
|
|
11423
11423
|
}
|
|
11424
|
-
return
|
|
11424
|
+
return ee;
|
|
11425
11425
|
}), C = I;
|
|
11426
11426
|
e.default = C;
|
|
11427
11427
|
})(TextArea$3);
|
|
@@ -12465,8 +12465,8 @@ function require_stream_writable() {
|
|
|
12465
12465
|
}
|
|
12466
12466
|
function b(P, A, j) {
|
|
12467
12467
|
t = t || require_stream_duplex(), P = P || {}, typeof j != "boolean" && (j = A instanceof t), this.objectMode = !!P.objectMode, j && (this.objectMode = this.objectMode || !!P.writableObjectMode), this.highWaterMark = d(this, P, "writableHighWaterMark", j), this.finalCalled = !1, this.needDrain = !1, this.ending = !1, this.ended = !1, this.finished = !1, this.destroyed = !1;
|
|
12468
|
-
var
|
|
12469
|
-
this.decodeStrings = !
|
|
12468
|
+
var Y = P.decodeStrings === !1;
|
|
12469
|
+
this.decodeStrings = !Y, this.defaultEncoding = P.defaultEncoding || "utf8", this.length = 0, this.writing = !1, this.corked = 0, this.sync = !0, this.bufferProcessing = !1, this.onwrite = function(X) {
|
|
12470
12470
|
q(A, X);
|
|
12471
12471
|
}, this.writecb = null, this.writelen = 0, this.bufferedRequest = null, this.lastBufferedRequest = null, this.pendingcb = 0, this.prefinished = !1, this.errorEmitted = !1, this.emitClose = P.emitClose !== !1, this.autoDestroy = !!P.autoDestroy, this.bufferedRequestCount = 0, this.corkedRequestsFree = new e(this);
|
|
12472
12472
|
}
|
|
@@ -12506,13 +12506,13 @@ function require_stream_writable() {
|
|
|
12506
12506
|
var j = new I();
|
|
12507
12507
|
y(P, j), process.nextTick(A, j);
|
|
12508
12508
|
}
|
|
12509
|
-
function T(P, A, j,
|
|
12509
|
+
function T(P, A, j, Y) {
|
|
12510
12510
|
var X;
|
|
12511
|
-
return j === null ? X = new g() : typeof j != "string" && !A.objectMode && (X = new p("chunk", ["string", "Buffer"], j)), X ? (y(P, X), process.nextTick(
|
|
12511
|
+
return j === null ? X = new g() : typeof j != "string" && !A.objectMode && (X = new p("chunk", ["string", "Buffer"], j)), X ? (y(P, X), process.nextTick(Y, X), !1) : !0;
|
|
12512
12512
|
}
|
|
12513
12513
|
w.prototype.write = function(P, A, j) {
|
|
12514
|
-
var
|
|
12515
|
-
return F && !o.isBuffer(P) && (P = s(P)), typeof A == "function" && (j = A, A = null), F ? A = "buffer" : A || (A =
|
|
12514
|
+
var Y = this._writableState, X = !1, F = !Y.objectMode && c(P);
|
|
12515
|
+
return F && !o.isBuffer(P) && (P = s(P)), typeof A == "function" && (j = A, A = null), F ? A = "buffer" : A || (A = Y.defaultEncoding), typeof j != "function" && (j = O), Y.ending ? S(this, j) : (F || T(this, Y, P, j)) && (Y.pendingcb++, X = $(this, Y, F, P, A, j)), X;
|
|
12516
12516
|
}, w.prototype.cork = function() {
|
|
12517
12517
|
this._writableState.corked++;
|
|
12518
12518
|
}, w.prototype.uncork = function() {
|
|
@@ -12537,49 +12537,49 @@ function require_stream_writable() {
|
|
|
12537
12537
|
return this._writableState.highWaterMark;
|
|
12538
12538
|
}
|
|
12539
12539
|
});
|
|
12540
|
-
function $(P, A, j,
|
|
12540
|
+
function $(P, A, j, Y, X, F) {
|
|
12541
12541
|
if (!j) {
|
|
12542
|
-
var _ = k(A,
|
|
12543
|
-
|
|
12542
|
+
var _ = k(A, Y, X);
|
|
12543
|
+
Y !== _ && (j = !0, X = "buffer", Y = _);
|
|
12544
12544
|
}
|
|
12545
|
-
var
|
|
12546
|
-
A.length +=
|
|
12545
|
+
var Z = A.objectMode ? 1 : Y.length;
|
|
12546
|
+
A.length += Z;
|
|
12547
12547
|
var Q = A.length < A.highWaterMark;
|
|
12548
12548
|
if (Q || (A.needDrain = !0), A.writing || A.corked) {
|
|
12549
|
-
var
|
|
12549
|
+
var ee = A.lastBufferedRequest;
|
|
12550
12550
|
A.lastBufferedRequest = {
|
|
12551
|
-
chunk:
|
|
12551
|
+
chunk: Y,
|
|
12552
12552
|
encoding: X,
|
|
12553
12553
|
isBuf: j,
|
|
12554
12554
|
callback: F,
|
|
12555
12555
|
next: null
|
|
12556
|
-
},
|
|
12556
|
+
}, ee ? ee.next = A.lastBufferedRequest : A.bufferedRequest = A.lastBufferedRequest, A.bufferedRequestCount += 1;
|
|
12557
12557
|
} else
|
|
12558
|
-
D(P, A, !1,
|
|
12558
|
+
D(P, A, !1, Z, Y, X, F);
|
|
12559
12559
|
return Q;
|
|
12560
12560
|
}
|
|
12561
|
-
function D(P, A, j,
|
|
12562
|
-
A.writelen =
|
|
12561
|
+
function D(P, A, j, Y, X, F, _) {
|
|
12562
|
+
A.writelen = Y, A.writecb = _, A.writing = !0, A.sync = !0, A.destroyed ? A.onwrite(new x("write")) : j ? P._writev(X, A.onwrite) : P._write(X, F, A.onwrite), A.sync = !1;
|
|
12563
12563
|
}
|
|
12564
|
-
function M(P, A, j,
|
|
12565
|
-
--A.pendingcb, j ? (process.nextTick(X,
|
|
12564
|
+
function M(P, A, j, Y, X) {
|
|
12565
|
+
--A.pendingcb, j ? (process.nextTick(X, Y), process.nextTick(K, P, A), P._writableState.errorEmitted = !0, y(P, Y)) : (X(Y), P._writableState.errorEmitted = !0, y(P, Y), K(P, A));
|
|
12566
12566
|
}
|
|
12567
12567
|
function L(P) {
|
|
12568
12568
|
P.writing = !1, P.writecb = null, P.length -= P.writelen, P.writelen = 0;
|
|
12569
12569
|
}
|
|
12570
12570
|
function q(P, A) {
|
|
12571
|
-
var j = P._writableState,
|
|
12571
|
+
var j = P._writableState, Y = j.sync, X = j.writecb;
|
|
12572
12572
|
if (typeof X != "function")
|
|
12573
12573
|
throw new m();
|
|
12574
12574
|
if (L(j), A)
|
|
12575
|
-
M(P, j,
|
|
12575
|
+
M(P, j, Y, A, X);
|
|
12576
12576
|
else {
|
|
12577
12577
|
var F = G(j) || P.destroyed;
|
|
12578
|
-
!F && !j.corked && !j.bufferProcessing && j.bufferedRequest && U(P, j),
|
|
12578
|
+
!F && !j.corked && !j.bufferProcessing && j.bufferedRequest && U(P, j), Y ? process.nextTick(N, P, j, F, X) : N(P, j, F, X);
|
|
12579
12579
|
}
|
|
12580
12580
|
}
|
|
12581
|
-
function N(P, A, j,
|
|
12582
|
-
j || B(P, A), A.pendingcb--,
|
|
12581
|
+
function N(P, A, j, Y) {
|
|
12582
|
+
j || B(P, A), A.pendingcb--, Y(), K(P, A);
|
|
12583
12583
|
}
|
|
12584
12584
|
function B(P, A) {
|
|
12585
12585
|
A.length === 0 && A.needDrain && (A.needDrain = !1, P.emit("drain"));
|
|
@@ -12588,15 +12588,15 @@ function require_stream_writable() {
|
|
|
12588
12588
|
A.bufferProcessing = !0;
|
|
12589
12589
|
var j = A.bufferedRequest;
|
|
12590
12590
|
if (P._writev && j && j.next) {
|
|
12591
|
-
var
|
|
12591
|
+
var Y = A.bufferedRequestCount, X = new Array(Y), F = A.corkedRequestsFree;
|
|
12592
12592
|
F.entry = j;
|
|
12593
|
-
for (var _ = 0,
|
|
12594
|
-
X[_] = j, j.isBuf || (
|
|
12595
|
-
X.allBuffers =
|
|
12593
|
+
for (var _ = 0, Z = !0; j; )
|
|
12594
|
+
X[_] = j, j.isBuf || (Z = !1), j = j.next, _ += 1;
|
|
12595
|
+
X.allBuffers = Z, D(P, A, !0, A.length, X, "", F.finish), A.pendingcb++, A.lastBufferedRequest = null, F.next ? (A.corkedRequestsFree = F.next, F.next = null) : A.corkedRequestsFree = new e(A), A.bufferedRequestCount = 0;
|
|
12596
12596
|
} else {
|
|
12597
12597
|
for (; j; ) {
|
|
12598
|
-
var Q = j.chunk,
|
|
12599
|
-
if (D(P, A, !1,
|
|
12598
|
+
var Q = j.chunk, ee = j.encoding, J = j.callback, te = A.objectMode ? 1 : Q.length;
|
|
12599
|
+
if (D(P, A, !1, te, Q, ee, J), j = j.next, A.bufferedRequestCount--, A.writing)
|
|
12600
12600
|
break;
|
|
12601
12601
|
}
|
|
12602
12602
|
j === null && (A.lastBufferedRequest = null);
|
|
@@ -12606,8 +12606,8 @@ function require_stream_writable() {
|
|
|
12606
12606
|
w.prototype._write = function(P, A, j) {
|
|
12607
12607
|
j(new h("_write()"));
|
|
12608
12608
|
}, w.prototype._writev = null, w.prototype.end = function(P, A, j) {
|
|
12609
|
-
var
|
|
12610
|
-
return typeof P == "function" ? (j = P, P = null, A = null) : typeof A == "function" && (j = A, A = null), P != null && this.write(P, A),
|
|
12609
|
+
var Y = this._writableState;
|
|
12610
|
+
return typeof P == "function" ? (j = P, P = null, A = null) : typeof A == "function" && (j = A, A = null), P != null && this.write(P, A), Y.corked && (Y.corked = 1, this.uncork()), Y.ending || V(this, Y, j), this;
|
|
12611
12611
|
}, Object.defineProperty(w.prototype, "writableLength", {
|
|
12612
12612
|
enumerable: !1,
|
|
12613
12613
|
get: function() {
|
|
@@ -12619,28 +12619,28 @@ function require_stream_writable() {
|
|
|
12619
12619
|
}
|
|
12620
12620
|
function z(P, A) {
|
|
12621
12621
|
P._final(function(j) {
|
|
12622
|
-
A.pendingcb--, j && y(P, j), A.prefinished = !0, P.emit("prefinish"),
|
|
12622
|
+
A.pendingcb--, j && y(P, j), A.prefinished = !0, P.emit("prefinish"), K(P, A);
|
|
12623
12623
|
});
|
|
12624
12624
|
}
|
|
12625
12625
|
function W(P, A) {
|
|
12626
12626
|
!A.prefinished && !A.finalCalled && (typeof P._final == "function" && !A.destroyed ? (A.pendingcb++, A.finalCalled = !0, process.nextTick(z, P, A)) : (A.prefinished = !0, P.emit("prefinish")));
|
|
12627
12627
|
}
|
|
12628
|
-
function
|
|
12628
|
+
function K(P, A) {
|
|
12629
12629
|
var j = G(A);
|
|
12630
12630
|
if (j && (W(P, A), A.pendingcb === 0 && (A.finished = !0, P.emit("finish"), A.autoDestroy))) {
|
|
12631
|
-
var
|
|
12632
|
-
(!
|
|
12631
|
+
var Y = P._readableState;
|
|
12632
|
+
(!Y || Y.autoDestroy && Y.endEmitted) && P.destroy();
|
|
12633
12633
|
}
|
|
12634
12634
|
return j;
|
|
12635
12635
|
}
|
|
12636
12636
|
function V(P, A, j) {
|
|
12637
|
-
A.ending = !0,
|
|
12637
|
+
A.ending = !0, K(P, A), j && (A.finished ? process.nextTick(j) : P.once("finish", j)), A.ended = !0, P.writable = !1;
|
|
12638
12638
|
}
|
|
12639
12639
|
function H(P, A, j) {
|
|
12640
|
-
var
|
|
12641
|
-
for (P.entry = null;
|
|
12642
|
-
var X =
|
|
12643
|
-
A.pendingcb--, X(j),
|
|
12640
|
+
var Y = P.entry;
|
|
12641
|
+
for (P.entry = null; Y; ) {
|
|
12642
|
+
var X = Y.callback;
|
|
12643
|
+
A.pendingcb--, X(j), Y = Y.next;
|
|
12644
12644
|
}
|
|
12645
12645
|
A.corkedRequestsFree.next = P;
|
|
12646
12646
|
}
|
|
@@ -13078,8 +13078,8 @@ function require_stream_readable() {
|
|
|
13078
13078
|
hasRequired_stream_readable = 1, _stream_readable = S;
|
|
13079
13079
|
var e;
|
|
13080
13080
|
S.ReadableState = w, events.exports.EventEmitter;
|
|
13081
|
-
var t = function(_,
|
|
13082
|
-
return _.listeners(
|
|
13081
|
+
var t = function(_, Z) {
|
|
13082
|
+
return _.listeners(Z).length;
|
|
13083
13083
|
}, n = streamBrowser, r = require$$0.Buffer, o = commonjsGlobal.Uint8Array || function() {
|
|
13084
13084
|
};
|
|
13085
13085
|
function a(F) {
|
|
@@ -13094,13 +13094,13 @@ function require_stream_readable() {
|
|
|
13094
13094
|
var u = requireBuffer_list(), d = destroy_1, f = state, p = f.getHighWaterMark, h = errorsBrowser.codes, m = h.ERR_INVALID_ARG_TYPE, v = h.ERR_STREAM_PUSH_AFTER_EOF, x = h.ERR_METHOD_NOT_IMPLEMENTED, g = h.ERR_STREAM_UNSHIFT_AFTER_END_EVENT, I, C, y;
|
|
13095
13095
|
inherits_browser.exports(S, n);
|
|
13096
13096
|
var O = d.errorOrDestroy, b = ["error", "close", "destroy", "pause", "resume"];
|
|
13097
|
-
function E(F, _,
|
|
13097
|
+
function E(F, _, Z) {
|
|
13098
13098
|
if (typeof F.prependListener == "function")
|
|
13099
|
-
return F.prependListener(_,
|
|
13100
|
-
!F._events || !F._events[_] ? F.on(_,
|
|
13099
|
+
return F.prependListener(_, Z);
|
|
13100
|
+
!F._events || !F._events[_] ? F.on(_, Z) : Array.isArray(F._events[_]) ? F._events[_].unshift(Z) : F._events[_] = [Z, F._events[_]];
|
|
13101
13101
|
}
|
|
13102
|
-
function w(F, _,
|
|
13103
|
-
e = e || require_stream_duplex(), F = F || {}, typeof
|
|
13102
|
+
function w(F, _, Z) {
|
|
13103
|
+
e = e || require_stream_duplex(), F = F || {}, typeof Z != "boolean" && (Z = _ instanceof e), this.objectMode = !!F.objectMode, Z && (this.objectMode = this.objectMode || !!F.readableObjectMode), this.highWaterMark = p(this, F, "readableHighWaterMark", Z), this.buffer = new u(), this.length = 0, this.pipes = null, this.pipesCount = 0, this.flowing = null, this.ended = !1, this.endEmitted = !1, this.reading = !1, this.sync = !0, this.needReadable = !1, this.emittedReadable = !1, this.readableListening = !1, this.resumeScheduled = !1, this.paused = !0, this.emitClose = F.emitClose !== !1, this.autoDestroy = !!F.autoDestroy, this.destroyed = !1, this.defaultEncoding = F.defaultEncoding || "utf8", this.awaitDrain = 0, this.readingMore = !1, this.decoder = null, this.encoding = null, F.encoding && (I || (I = requireString_decoder().StringDecoder), this.decoder = new I(F.encoding), this.encoding = F.encoding);
|
|
13104
13104
|
}
|
|
13105
13105
|
function S(F) {
|
|
13106
13106
|
if (e = e || require_stream_duplex(), !(this instanceof S))
|
|
@@ -13119,20 +13119,20 @@ function require_stream_readable() {
|
|
|
13119
13119
|
}), S.prototype.destroy = d.destroy, S.prototype._undestroy = d.undestroy, S.prototype._destroy = function(F, _) {
|
|
13120
13120
|
_(F);
|
|
13121
13121
|
}, S.prototype.push = function(F, _) {
|
|
13122
|
-
var
|
|
13123
|
-
return
|
|
13122
|
+
var Z = this._readableState, Q;
|
|
13123
|
+
return Z.objectMode ? Q = !0 : typeof F == "string" && (_ = _ || Z.defaultEncoding, _ !== Z.encoding && (F = r.from(F, _), _ = ""), Q = !0), T(this, F, _, !1, Q);
|
|
13124
13124
|
}, S.prototype.unshift = function(F) {
|
|
13125
13125
|
return T(this, F, null, !0, !1);
|
|
13126
13126
|
};
|
|
13127
|
-
function T(F, _,
|
|
13127
|
+
function T(F, _, Z, Q, ee) {
|
|
13128
13128
|
l("readableAddChunk", _);
|
|
13129
13129
|
var J = F._readableState;
|
|
13130
13130
|
if (_ === null)
|
|
13131
13131
|
J.reading = !1, q(F, J);
|
|
13132
13132
|
else {
|
|
13133
|
-
var
|
|
13134
|
-
if (
|
|
13135
|
-
O(F,
|
|
13133
|
+
var te;
|
|
13134
|
+
if (ee || (te = $(J, _)), te)
|
|
13135
|
+
O(F, te);
|
|
13136
13136
|
else if (J.objectMode || _ && _.length > 0)
|
|
13137
13137
|
if (typeof _ != "string" && !J.objectMode && Object.getPrototypeOf(_) !== r.prototype && (_ = a(_)), Q)
|
|
13138
13138
|
J.endEmitted ? O(F, new g()) : k(F, J, _, !0);
|
|
@@ -13141,19 +13141,19 @@ function require_stream_readable() {
|
|
|
13141
13141
|
else {
|
|
13142
13142
|
if (J.destroyed)
|
|
13143
13143
|
return !1;
|
|
13144
|
-
J.reading = !1, J.decoder && !
|
|
13144
|
+
J.reading = !1, J.decoder && !Z ? (_ = J.decoder.write(_), J.objectMode || _.length !== 0 ? k(F, J, _, !1) : U(F, J)) : k(F, J, _, !1);
|
|
13145
13145
|
}
|
|
13146
13146
|
else
|
|
13147
13147
|
Q || (J.reading = !1, U(F, J));
|
|
13148
13148
|
}
|
|
13149
13149
|
return !J.ended && (J.length < J.highWaterMark || J.length === 0);
|
|
13150
13150
|
}
|
|
13151
|
-
function k(F, _,
|
|
13152
|
-
_.flowing && _.length === 0 && !_.sync ? (_.awaitDrain = 0, F.emit("data",
|
|
13151
|
+
function k(F, _, Z, Q) {
|
|
13152
|
+
_.flowing && _.length === 0 && !_.sync ? (_.awaitDrain = 0, F.emit("data", Z)) : (_.length += _.objectMode ? 1 : Z.length, Q ? _.buffer.unshift(Z) : _.buffer.push(Z), _.needReadable && N(F)), U(F, _);
|
|
13153
13153
|
}
|
|
13154
13154
|
function $(F, _) {
|
|
13155
|
-
var
|
|
13156
|
-
return !s(_) && typeof _ != "string" && _ !== void 0 && !F.objectMode && (
|
|
13155
|
+
var Z;
|
|
13156
|
+
return !s(_) && typeof _ != "string" && _ !== void 0 && !F.objectMode && (Z = new m("chunk", ["string", "Buffer", "Uint8Array"], _)), Z;
|
|
13157
13157
|
}
|
|
13158
13158
|
S.prototype.isPaused = function() {
|
|
13159
13159
|
return this._readableState.flowing === !1;
|
|
@@ -13161,8 +13161,8 @@ function require_stream_readable() {
|
|
|
13161
13161
|
I || (I = requireString_decoder().StringDecoder);
|
|
13162
13162
|
var _ = new I(F);
|
|
13163
13163
|
this._readableState.decoder = _, this._readableState.encoding = this._readableState.decoder.encoding;
|
|
13164
|
-
for (var
|
|
13165
|
-
Q += _.write(
|
|
13164
|
+
for (var Z = this._readableState.buffer.head, Q = ""; Z !== null; )
|
|
13165
|
+
Q += _.write(Z.data), Z = Z.next;
|
|
13166
13166
|
return this._readableState.buffer.clear(), Q !== "" && this._readableState.buffer.push(Q), this._readableState.length = Q.length, this;
|
|
13167
13167
|
};
|
|
13168
13168
|
var D = 1073741824;
|
|
@@ -13174,21 +13174,21 @@ function require_stream_readable() {
|
|
|
13174
13174
|
}
|
|
13175
13175
|
S.prototype.read = function(F) {
|
|
13176
13176
|
l("read", F), F = parseInt(F, 10);
|
|
13177
|
-
var _ = this._readableState,
|
|
13177
|
+
var _ = this._readableState, Z = F;
|
|
13178
13178
|
if (F !== 0 && (_.emittedReadable = !1), F === 0 && _.needReadable && ((_.highWaterMark !== 0 ? _.length >= _.highWaterMark : _.length > 0) || _.ended))
|
|
13179
13179
|
return l("read: emitReadable", _.length, _.ended), _.length === 0 && _.ended ? j(this) : N(this), null;
|
|
13180
13180
|
if (F = L(F, _), F === 0 && _.ended)
|
|
13181
13181
|
return _.length === 0 && j(this), null;
|
|
13182
13182
|
var Q = _.needReadable;
|
|
13183
|
-
l("need readable", Q), (_.length === 0 || _.length - F < _.highWaterMark) && (Q = !0, l("length less than watermark", Q)), _.ended || _.reading ? (Q = !1, l("reading or ended", Q)) : Q && (l("do read"), _.reading = !0, _.sync = !0, _.length === 0 && (_.needReadable = !0), this._read(_.highWaterMark), _.sync = !1, _.reading || (F = L(
|
|
13184
|
-
var
|
|
13185
|
-
return F > 0 ?
|
|
13183
|
+
l("need readable", Q), (_.length === 0 || _.length - F < _.highWaterMark) && (Q = !0, l("length less than watermark", Q)), _.ended || _.reading ? (Q = !1, l("reading or ended", Q)) : Q && (l("do read"), _.reading = !0, _.sync = !0, _.length === 0 && (_.needReadable = !0), this._read(_.highWaterMark), _.sync = !1, _.reading || (F = L(Z, _)));
|
|
13184
|
+
var ee;
|
|
13185
|
+
return F > 0 ? ee = A(F, _) : ee = null, ee === null ? (_.needReadable = _.length <= _.highWaterMark, F = 0) : (_.length -= F, _.awaitDrain = 0), _.length === 0 && (_.ended || (_.needReadable = !0), Z !== F && _.ended && j(this)), ee !== null && this.emit("data", ee), ee;
|
|
13186
13186
|
};
|
|
13187
13187
|
function q(F, _) {
|
|
13188
13188
|
if (l("onEofChunk"), !_.ended) {
|
|
13189
13189
|
if (_.decoder) {
|
|
13190
|
-
var
|
|
13191
|
-
|
|
13190
|
+
var Z = _.decoder.end();
|
|
13191
|
+
Z && Z.length && (_.buffer.push(Z), _.length += _.objectMode ? 1 : Z.length);
|
|
13192
13192
|
}
|
|
13193
13193
|
_.ended = !0, _.sync ? N(F) : (_.needReadable = !1, _.emittedReadable || (_.emittedReadable = !0, B(F)));
|
|
13194
13194
|
}
|
|
@@ -13206,8 +13206,8 @@ function require_stream_readable() {
|
|
|
13206
13206
|
}
|
|
13207
13207
|
function G(F, _) {
|
|
13208
13208
|
for (; !_.reading && !_.ended && (_.length < _.highWaterMark || _.flowing && _.length === 0); ) {
|
|
13209
|
-
var
|
|
13210
|
-
if (l("maybeReadMore read 0"), F.read(0),
|
|
13209
|
+
var Z = _.length;
|
|
13210
|
+
if (l("maybeReadMore read 0"), F.read(0), Z === _.length)
|
|
13211
13211
|
break;
|
|
13212
13212
|
}
|
|
13213
13213
|
_.readingMore = !1;
|
|
@@ -13215,7 +13215,7 @@ function require_stream_readable() {
|
|
|
13215
13215
|
S.prototype._read = function(F) {
|
|
13216
13216
|
O(this, new x("_read()"));
|
|
13217
13217
|
}, S.prototype.pipe = function(F, _) {
|
|
13218
|
-
var
|
|
13218
|
+
var Z = this, Q = this._readableState;
|
|
13219
13219
|
switch (Q.pipesCount) {
|
|
13220
13220
|
case 0:
|
|
13221
13221
|
Q.pipes = F;
|
|
@@ -13228,74 +13228,74 @@ function require_stream_readable() {
|
|
|
13228
13228
|
break;
|
|
13229
13229
|
}
|
|
13230
13230
|
Q.pipesCount += 1, l("pipe count=%d opts=%j", Q.pipesCount, _);
|
|
13231
|
-
var
|
|
13232
|
-
Q.endEmitted ? process.nextTick(J) :
|
|
13233
|
-
function
|
|
13234
|
-
l("onunpipe"),
|
|
13231
|
+
var ee = (!_ || _.end !== !1) && F !== process.stdout && F !== process.stderr, J = ee ? ie : Ie;
|
|
13232
|
+
Q.endEmitted ? process.nextTick(J) : Z.once("end", J), F.on("unpipe", te);
|
|
13233
|
+
function te(me, ve) {
|
|
13234
|
+
l("onunpipe"), me === Z && ve && ve.hasUnpiped === !1 && (ve.hasUnpiped = !0, Oe());
|
|
13235
13235
|
}
|
|
13236
|
-
function
|
|
13236
|
+
function ie() {
|
|
13237
13237
|
l("onend"), F.end();
|
|
13238
13238
|
}
|
|
13239
|
-
var le = z(
|
|
13239
|
+
var le = z(Z);
|
|
13240
13240
|
F.on("drain", le);
|
|
13241
13241
|
var ae = !1;
|
|
13242
|
-
function
|
|
13243
|
-
l("cleanup"), F.removeListener("close",
|
|
13242
|
+
function Oe() {
|
|
13243
|
+
l("cleanup"), F.removeListener("close", ge), F.removeListener("finish", de), F.removeListener("drain", le), F.removeListener("error", ne), F.removeListener("unpipe", te), Z.removeListener("end", ie), Z.removeListener("end", Ie), Z.removeListener("data", pe), ae = !0, Q.awaitDrain && (!F._writableState || F._writableState.needDrain) && le();
|
|
13244
13244
|
}
|
|
13245
|
-
|
|
13246
|
-
function me
|
|
13245
|
+
Z.on("data", pe);
|
|
13246
|
+
function pe(me) {
|
|
13247
13247
|
l("ondata");
|
|
13248
|
-
var ve = F.write(
|
|
13249
|
-
l("dest.write", ve), ve === !1 && ((Q.pipesCount === 1 && Q.pipes === F || Q.pipesCount > 1 && X(Q.pipes, F) !== -1) && !ae && (l("false write response, pause", Q.awaitDrain), Q.awaitDrain++),
|
|
13248
|
+
var ve = F.write(me);
|
|
13249
|
+
l("dest.write", ve), ve === !1 && ((Q.pipesCount === 1 && Q.pipes === F || Q.pipesCount > 1 && X(Q.pipes, F) !== -1) && !ae && (l("false write response, pause", Q.awaitDrain), Q.awaitDrain++), Z.pause());
|
|
13250
13250
|
}
|
|
13251
|
-
function
|
|
13252
|
-
l("onerror",
|
|
13251
|
+
function ne(me) {
|
|
13252
|
+
l("onerror", me), Ie(), F.removeListener("error", ne), t(F, "error") === 0 && O(F, me);
|
|
13253
13253
|
}
|
|
13254
|
-
E(F, "error",
|
|
13254
|
+
E(F, "error", ne);
|
|
13255
|
+
function ge() {
|
|
13256
|
+
F.removeListener("finish", de), Ie();
|
|
13257
|
+
}
|
|
13258
|
+
F.once("close", ge);
|
|
13255
13259
|
function de() {
|
|
13256
|
-
F.removeListener("
|
|
13260
|
+
l("onfinish"), F.removeListener("close", ge), Ie();
|
|
13257
13261
|
}
|
|
13258
|
-
F.once("
|
|
13262
|
+
F.once("finish", de);
|
|
13259
13263
|
function Ie() {
|
|
13260
|
-
l("
|
|
13261
|
-
}
|
|
13262
|
-
F.once("finish", Ie);
|
|
13263
|
-
function he() {
|
|
13264
|
-
l("unpipe"), Y.unpipe(F);
|
|
13264
|
+
l("unpipe"), Z.unpipe(F);
|
|
13265
13265
|
}
|
|
13266
|
-
return F.emit("pipe",
|
|
13266
|
+
return F.emit("pipe", Z), Q.flowing || (l("pipe resume"), Z.resume()), F;
|
|
13267
13267
|
};
|
|
13268
13268
|
function z(F) {
|
|
13269
13269
|
return function() {
|
|
13270
|
-
var
|
|
13271
|
-
l("pipeOnDrain",
|
|
13270
|
+
var Z = F._readableState;
|
|
13271
|
+
l("pipeOnDrain", Z.awaitDrain), Z.awaitDrain && Z.awaitDrain--, Z.awaitDrain === 0 && t(F, "data") && (Z.flowing = !0, P(F));
|
|
13272
13272
|
};
|
|
13273
13273
|
}
|
|
13274
13274
|
S.prototype.unpipe = function(F) {
|
|
13275
|
-
var _ = this._readableState,
|
|
13275
|
+
var _ = this._readableState, Z = {
|
|
13276
13276
|
hasUnpiped: !1
|
|
13277
13277
|
};
|
|
13278
13278
|
if (_.pipesCount === 0)
|
|
13279
13279
|
return this;
|
|
13280
13280
|
if (_.pipesCount === 1)
|
|
13281
|
-
return F && F !== _.pipes ? this : (F || (F = _.pipes), _.pipes = null, _.pipesCount = 0, _.flowing = !1, F && F.emit("unpipe", this,
|
|
13281
|
+
return F && F !== _.pipes ? this : (F || (F = _.pipes), _.pipes = null, _.pipesCount = 0, _.flowing = !1, F && F.emit("unpipe", this, Z), this);
|
|
13282
13282
|
if (!F) {
|
|
13283
|
-
var Q = _.pipes,
|
|
13283
|
+
var Q = _.pipes, ee = _.pipesCount;
|
|
13284
13284
|
_.pipes = null, _.pipesCount = 0, _.flowing = !1;
|
|
13285
|
-
for (var J = 0; J <
|
|
13285
|
+
for (var J = 0; J < ee; J++)
|
|
13286
13286
|
Q[J].emit("unpipe", this, {
|
|
13287
13287
|
hasUnpiped: !1
|
|
13288
13288
|
});
|
|
13289
13289
|
return this;
|
|
13290
13290
|
}
|
|
13291
|
-
var
|
|
13292
|
-
return
|
|
13291
|
+
var te = X(_.pipes, F);
|
|
13292
|
+
return te === -1 ? this : (_.pipes.splice(te, 1), _.pipesCount -= 1, _.pipesCount === 1 && (_.pipes = _.pipes[0]), F.emit("unpipe", this, Z), this);
|
|
13293
13293
|
}, S.prototype.on = function(F, _) {
|
|
13294
|
-
var
|
|
13295
|
-
return F === "data" ? (Q.readableListening = this.listenerCount("readable") > 0, Q.flowing !== !1 && this.resume()) : F === "readable" && !Q.endEmitted && !Q.readableListening && (Q.readableListening = Q.needReadable = !0, Q.flowing = !1, Q.emittedReadable = !1, l("on readable", Q.length, Q.reading), Q.length ? N(this) : Q.reading || process.nextTick(
|
|
13294
|
+
var Z = n.prototype.on.call(this, F, _), Q = this._readableState;
|
|
13295
|
+
return F === "data" ? (Q.readableListening = this.listenerCount("readable") > 0, Q.flowing !== !1 && this.resume()) : F === "readable" && !Q.endEmitted && !Q.readableListening && (Q.readableListening = Q.needReadable = !0, Q.flowing = !1, Q.emittedReadable = !1, l("on readable", Q.length, Q.reading), Q.length ? N(this) : Q.reading || process.nextTick(K, this)), Z;
|
|
13296
13296
|
}, S.prototype.addListener = S.prototype.on, S.prototype.removeListener = function(F, _) {
|
|
13297
|
-
var
|
|
13298
|
-
return F === "readable" && process.nextTick(W, this),
|
|
13297
|
+
var Z = n.prototype.removeListener.call(this, F, _);
|
|
13298
|
+
return F === "readable" && process.nextTick(W, this), Z;
|
|
13299
13299
|
}, S.prototype.removeAllListeners = function(F) {
|
|
13300
13300
|
var _ = n.prototype.removeAllListeners.apply(this, arguments);
|
|
13301
13301
|
return (F === "readable" || F === void 0) && process.nextTick(W, this), _;
|
|
@@ -13304,7 +13304,7 @@ function require_stream_readable() {
|
|
|
13304
13304
|
var _ = F._readableState;
|
|
13305
13305
|
_.readableListening = F.listenerCount("readable") > 0, _.resumeScheduled && !_.paused ? _.flowing = !0 : F.listenerCount("data") > 0 && F.resume();
|
|
13306
13306
|
}
|
|
13307
|
-
function
|
|
13307
|
+
function K(F) {
|
|
13308
13308
|
l("readable nexttick read 0"), F.read(0);
|
|
13309
13309
|
}
|
|
13310
13310
|
S.prototype.resume = function() {
|
|
@@ -13326,29 +13326,29 @@ function require_stream_readable() {
|
|
|
13326
13326
|
;
|
|
13327
13327
|
}
|
|
13328
13328
|
S.prototype.wrap = function(F) {
|
|
13329
|
-
var _ = this,
|
|
13329
|
+
var _ = this, Z = this._readableState, Q = !1;
|
|
13330
13330
|
F.on("end", function() {
|
|
13331
|
-
if (l("wrapped end"),
|
|
13332
|
-
var
|
|
13333
|
-
|
|
13331
|
+
if (l("wrapped end"), Z.decoder && !Z.ended) {
|
|
13332
|
+
var te = Z.decoder.end();
|
|
13333
|
+
te && te.length && _.push(te);
|
|
13334
13334
|
}
|
|
13335
13335
|
_.push(null);
|
|
13336
|
-
}), F.on("data", function(
|
|
13337
|
-
if (l("wrapped data"),
|
|
13338
|
-
var
|
|
13339
|
-
|
|
13336
|
+
}), F.on("data", function(te) {
|
|
13337
|
+
if (l("wrapped data"), Z.decoder && (te = Z.decoder.write(te)), !(Z.objectMode && te == null) && !(!Z.objectMode && (!te || !te.length))) {
|
|
13338
|
+
var ie = _.push(te);
|
|
13339
|
+
ie || (Q = !0, F.pause());
|
|
13340
13340
|
}
|
|
13341
13341
|
});
|
|
13342
|
-
for (var
|
|
13343
|
-
this[
|
|
13342
|
+
for (var ee in F)
|
|
13343
|
+
this[ee] === void 0 && typeof F[ee] == "function" && (this[ee] = function(ie) {
|
|
13344
13344
|
return function() {
|
|
13345
|
-
return F[
|
|
13345
|
+
return F[ie].apply(F, arguments);
|
|
13346
13346
|
};
|
|
13347
|
-
}(
|
|
13347
|
+
}(ee));
|
|
13348
13348
|
for (var J = 0; J < b.length; J++)
|
|
13349
13349
|
F.on(b[J], this.emit.bind(this, b[J]));
|
|
13350
|
-
return this._read = function(
|
|
13351
|
-
l("wrapped _read",
|
|
13350
|
+
return this._read = function(te) {
|
|
13351
|
+
l("wrapped _read", te), Q && (Q = !1, F.resume());
|
|
13352
13352
|
}, this;
|
|
13353
13353
|
}, typeof Symbol == "function" && (S.prototype[Symbol.asyncIterator] = function() {
|
|
13354
13354
|
return C === void 0 && (C = requireAsync_iterator()), C(this);
|
|
@@ -13379,26 +13379,26 @@ function require_stream_readable() {
|
|
|
13379
13379
|
function A(F, _) {
|
|
13380
13380
|
if (_.length === 0)
|
|
13381
13381
|
return null;
|
|
13382
|
-
var
|
|
13383
|
-
return _.objectMode ?
|
|
13382
|
+
var Z;
|
|
13383
|
+
return _.objectMode ? Z = _.buffer.shift() : !F || F >= _.length ? (_.decoder ? Z = _.buffer.join("") : _.buffer.length === 1 ? Z = _.buffer.first() : Z = _.buffer.concat(_.length), _.buffer.clear()) : Z = _.buffer.consume(F, _.decoder), Z;
|
|
13384
13384
|
}
|
|
13385
13385
|
function j(F) {
|
|
13386
13386
|
var _ = F._readableState;
|
|
13387
|
-
l("endReadable", _.endEmitted), _.endEmitted || (_.ended = !0, process.nextTick(
|
|
13387
|
+
l("endReadable", _.endEmitted), _.endEmitted || (_.ended = !0, process.nextTick(Y, _, F));
|
|
13388
13388
|
}
|
|
13389
|
-
function
|
|
13389
|
+
function Y(F, _) {
|
|
13390
13390
|
if (l("endReadableNT", F.endEmitted, F.length), !F.endEmitted && F.length === 0 && (F.endEmitted = !0, _.readable = !1, _.emit("end"), F.autoDestroy)) {
|
|
13391
|
-
var
|
|
13392
|
-
(!
|
|
13391
|
+
var Z = _._writableState;
|
|
13392
|
+
(!Z || Z.autoDestroy && Z.finished) && _.destroy();
|
|
13393
13393
|
}
|
|
13394
13394
|
}
|
|
13395
13395
|
typeof Symbol == "function" && (S.from = function(F, _) {
|
|
13396
13396
|
return y === void 0 && (y = requireFromBrowser()), y(S, F, _);
|
|
13397
13397
|
});
|
|
13398
13398
|
function X(F, _) {
|
|
13399
|
-
for (var
|
|
13400
|
-
if (F[
|
|
13401
|
-
return
|
|
13399
|
+
for (var Z = 0, Q = F.length; Z < Q; Z++)
|
|
13400
|
+
if (F[Z] === _)
|
|
13401
|
+
return Z;
|
|
13402
13402
|
return -1;
|
|
13403
13403
|
}
|
|
13404
13404
|
return _stream_readable;
|
|
@@ -16466,7 +16466,7 @@ const DEFAULT_SEARCH_LIMIT$1 = 80, useSearch = (e) => {
|
|
|
16466
16466
|
setLimit: O,
|
|
16467
16467
|
searchParams: b = [],
|
|
16468
16468
|
setSearchValues: E
|
|
16469
|
-
} = e, [w, S] = useState(!1), [T, k] = useState(!1), [$, D] = useState(), [M, L] = useState(1), [q, N] = useState(0), [B, U] = useState(), [G, z] = useState([]), [W,
|
|
16469
|
+
} = e, [w, S] = useState(!1), [T, k] = useState(!1), [$, D] = useState(), [M, L] = useState(1), [q, N] = useState(0), [B, U] = useState(), [G, z] = useState([]), [W, K] = useState(void 0), V = useRef(y || DEFAULT_SEARCH_LIMIT$1), H = useRef([]), P = useCallback((J) => {
|
|
16470
16470
|
x == null || x([...J]), z([...J]);
|
|
16471
16471
|
}, []), A = useCallback(() => g || G, [g, G]), j = useCallback(async () => {
|
|
16472
16472
|
const J = await ConnectionProvider.getHandler().nameSearch({
|
|
@@ -16477,23 +16477,23 @@ const DEFAULT_SEARCH_LIMIT$1 = 80, useSearch = (e) => {
|
|
|
16477
16477
|
context: u
|
|
16478
16478
|
});
|
|
16479
16479
|
if (U(J.length), d == null || d(J.length), J.length > 0) {
|
|
16480
|
-
const
|
|
16480
|
+
const te = J.map((ne) => ne == null ? void 0 : ne[0]), { colors: ie } = getTree(f), le = await ConnectionProvider.getHandler().readEvalUiObjects({
|
|
16481
16481
|
model: t,
|
|
16482
|
-
ids:
|
|
16482
|
+
ids: te,
|
|
16483
16483
|
arch: f == null ? void 0 : f.arch,
|
|
16484
16484
|
fields: f.field_parent ? { ...f.fields, [f.field_parent]: {} } : f.fields,
|
|
16485
16485
|
context: u,
|
|
16486
|
-
attrs:
|
|
16487
|
-
colors:
|
|
16486
|
+
attrs: ie && {
|
|
16487
|
+
colors: ie
|
|
16488
16488
|
}
|
|
16489
16489
|
}), ae = le[0];
|
|
16490
|
-
H.current = [...ae],
|
|
16491
|
-
const
|
|
16490
|
+
H.current = [...ae], K(getColorMap(le[1]));
|
|
16491
|
+
const Oe = ae.map((ne) => ne.id), pe = h !== void 0 ? sortResults({
|
|
16492
16492
|
resultsToSort: ae,
|
|
16493
16493
|
sorter: h,
|
|
16494
16494
|
fields: { ...f.fields, ...p.fields }
|
|
16495
16495
|
}) : [...H.current];
|
|
16496
|
-
P(
|
|
16496
|
+
P(pe), Oe.length > 0 ? v == null || v(0) : v == null || v(void 0);
|
|
16497
16497
|
} else
|
|
16498
16498
|
P([]), v == null || v(void 0);
|
|
16499
16499
|
l.current = !0;
|
|
@@ -16509,32 +16509,32 @@ const DEFAULT_SEARCH_LIMIT$1 = 80, useSearch = (e) => {
|
|
|
16509
16509
|
h,
|
|
16510
16510
|
v,
|
|
16511
16511
|
d
|
|
16512
|
-
]),
|
|
16512
|
+
]), Y = useCallback(
|
|
16513
16513
|
async (J) => {
|
|
16514
|
-
const { params:
|
|
16514
|
+
const { params: te, newOffset: ie } = J || {}, le = mergeParams(te || b, I), { colors: ae } = getTree(f), { totalItems: Oe, results: pe, attrsEvaluated: ne } = await ConnectionProvider.getHandler().searchForTree({
|
|
16515
16515
|
params: le,
|
|
16516
16516
|
limit: V.current,
|
|
16517
|
-
offset:
|
|
16517
|
+
offset: ie || q,
|
|
16518
16518
|
model: t,
|
|
16519
16519
|
fields: f.field_parent ? { ...f.fields, [f.field_parent]: {} } : f.fields,
|
|
16520
16520
|
context: u,
|
|
16521
16521
|
attrs: ae && { colors: ae }
|
|
16522
16522
|
});
|
|
16523
|
-
|
|
16524
|
-
const
|
|
16525
|
-
resultsToSort:
|
|
16523
|
+
K(getColorMap(ne)), H.current = [...pe];
|
|
16524
|
+
const ge = h !== void 0 ? sortResults({
|
|
16525
|
+
resultsToSort: pe,
|
|
16526
16526
|
sorter: h,
|
|
16527
16527
|
fields: { ...f.fields, ...p.fields }
|
|
16528
16528
|
}) : [...H.current];
|
|
16529
|
-
if (P(
|
|
16530
|
-
const
|
|
16531
|
-
(
|
|
16529
|
+
if (P(ge), g && ge.length > 0) {
|
|
16530
|
+
const Ie = ge.findIndex(
|
|
16531
|
+
(me) => C === me.id
|
|
16532
16532
|
);
|
|
16533
|
-
|
|
16533
|
+
Ie === -1 ? v == null || v(0) : v == null || v(Ie);
|
|
16534
16534
|
} else
|
|
16535
16535
|
v == null || v(void 0);
|
|
16536
|
-
const
|
|
16537
|
-
U(
|
|
16536
|
+
const de = await Oe;
|
|
16537
|
+
U(de), d == null || d(de);
|
|
16538
16538
|
},
|
|
16539
16539
|
[
|
|
16540
16540
|
v,
|
|
@@ -16555,9 +16555,9 @@ const DEFAULT_SEARCH_LIMIT$1 = 80, useSearch = (e) => {
|
|
|
16555
16555
|
), X = useCallback(
|
|
16556
16556
|
async (J) => {
|
|
16557
16557
|
try {
|
|
16558
|
-
S(!0), s == null || s(!0), c && !l.current ? await j() : await
|
|
16559
|
-
} catch (
|
|
16560
|
-
D(
|
|
16558
|
+
S(!0), s == null || s(!0), c && !l.current ? await j() : await Y(J);
|
|
16559
|
+
} catch (te) {
|
|
16560
|
+
D(te.message);
|
|
16561
16561
|
} finally {
|
|
16562
16562
|
S(!1), k(!1), s == null || s(!1);
|
|
16563
16563
|
}
|
|
@@ -16586,19 +16586,19 @@ const DEFAULT_SEARCH_LIMIT$1 = 80, useSearch = (e) => {
|
|
|
16586
16586
|
), F = useCallback(
|
|
16587
16587
|
(J) => {
|
|
16588
16588
|
m == null || m(J);
|
|
16589
|
-
const
|
|
16589
|
+
const te = J !== void 0 ? sortResults({
|
|
16590
16590
|
resultsToSort: A(),
|
|
16591
16591
|
sorter: J,
|
|
16592
16592
|
fields: { ...f.fields, ...p.fields }
|
|
16593
16593
|
}) : [...H.current];
|
|
16594
|
-
P(
|
|
16594
|
+
P(te);
|
|
16595
16595
|
},
|
|
16596
16596
|
[m, A, f, p, P]
|
|
16597
16597
|
), _ = useCallback(
|
|
16598
16598
|
(J) => {
|
|
16599
|
-
const { params:
|
|
16600
|
-
w || (n == null || n(void 0), r == null || r([]), E == null || E(
|
|
16601
|
-
params:
|
|
16599
|
+
const { params: te, searchValues: ie, limit: le, offset: ae } = J;
|
|
16600
|
+
w || (n == null || n(void 0), r == null || r([]), E == null || E(ie), o == null || o(te), a == null || a(!1), k(!0), D(void 0), L(1), le && (V.current = le, O == null || O(le)), ae && N(ae), X({
|
|
16601
|
+
params: te,
|
|
16602
16602
|
newOffset: ae
|
|
16603
16603
|
}));
|
|
16604
16604
|
},
|
|
@@ -16615,7 +16615,7 @@ const DEFAULT_SEARCH_LIMIT$1 = 80, useSearch = (e) => {
|
|
|
16615
16615
|
N,
|
|
16616
16616
|
X
|
|
16617
16617
|
]
|
|
16618
|
-
),
|
|
16618
|
+
), Z = useCallback(
|
|
16619
16619
|
(J) => {
|
|
16620
16620
|
S(!0), L(J), N((J - 1) * y);
|
|
16621
16621
|
},
|
|
@@ -16631,15 +16631,15 @@ const DEFAULT_SEARCH_LIMIT$1 = 80, useSearch = (e) => {
|
|
|
16631
16631
|
L,
|
|
16632
16632
|
O,
|
|
16633
16633
|
y
|
|
16634
|
-
]),
|
|
16634
|
+
]), ee = useCallback(
|
|
16635
16635
|
async (J) => {
|
|
16636
|
-
const
|
|
16636
|
+
const te = J[(f == null ? void 0 : f.field_parent) || "child_id"], ie = await ConnectionProvider.getHandler().readObjects({
|
|
16637
16637
|
model: t,
|
|
16638
|
-
ids:
|
|
16638
|
+
ids: te,
|
|
16639
16639
|
fields: f.field_parent ? { ...f.fields, [f.field_parent]: {} } : f.fields,
|
|
16640
16640
|
context: u
|
|
16641
16641
|
});
|
|
16642
|
-
return P([...A(), ...
|
|
16642
|
+
return P([...A(), ...ie]), getTableItems(getTree(f), ie);
|
|
16643
16643
|
},
|
|
16644
16644
|
[f, t, u, A, P]
|
|
16645
16645
|
);
|
|
@@ -16654,9 +16654,9 @@ const DEFAULT_SEARCH_LIMIT$1 = 80, useSearch = (e) => {
|
|
|
16654
16654
|
offset: q,
|
|
16655
16655
|
limit: y,
|
|
16656
16656
|
getResults: A,
|
|
16657
|
-
requestPageChange:
|
|
16657
|
+
requestPageChange: Z,
|
|
16658
16658
|
changeSort: F,
|
|
16659
|
-
fetchChildrenForRecord:
|
|
16659
|
+
fetchChildrenForRecord: ee,
|
|
16660
16660
|
colorsForResults: W,
|
|
16661
16661
|
totalItems: B
|
|
16662
16662
|
};
|
|
@@ -16687,19 +16687,19 @@ const DEFAULT_SEARCH_LIMIT$1 = 80, useSearch = (e) => {
|
|
|
16687
16687
|
setSearchTreeNameSearch: E,
|
|
16688
16688
|
goToResourceId: w,
|
|
16689
16689
|
limit: S
|
|
16690
|
-
} = e, [T, k] = useState(!1), [$, D] = useState(!1), [M, L] = useState(!1), [q, N] = useState(!0), [B, U] = useState(!0), [G, z] = useState([]), [W,
|
|
16690
|
+
} = e, [T, k] = useState(!1), [$, D] = useState(!1), [M, L] = useState(!1), [q, N] = useState(!0), [B, U] = useState(!0), [G, z] = useState([]), [W, K] = useState(!1), [V, H] = useState([]), [P, A] = useState(!1), [j, Y] = useState(!0), [X, F] = useState(), [_, Z] = useState({}), [Q, ee] = useState(S !== void 0 ? S : DEFAULT_SEARCH_LIMIT$1);
|
|
16691
16691
|
useEffect(() => {
|
|
16692
16692
|
p && p.length > 0 && !h && (m == null || m(0), d == null || d(p[0].id));
|
|
16693
16693
|
}, [p]), useEffect(() => {
|
|
16694
|
-
|
|
16694
|
+
ee(S !== void 0 ? S : DEFAULT_SEARCH_LIMIT$1);
|
|
16695
16695
|
}, [S]), useEffect(() => {
|
|
16696
|
-
a.length === 1 ? F(a[0]) : a.length > 1 && F(a.filter((
|
|
16696
|
+
a.length === 1 ? F(a[0]) : a.length > 1 && F(a.filter((te) => te.view_id !== n.view_id)[0]);
|
|
16697
16697
|
}, [a]), useEffect(() => {
|
|
16698
|
-
(X == null ? void 0 : X.view_id) === n.view_id && a.length > 1 && F(a.filter((
|
|
16698
|
+
(X == null ? void 0 : X.view_id) === n.view_id && a.length > 1 && F(a.filter((te) => te.view_id !== n.view_id)[0]);
|
|
16699
16699
|
}, [n]);
|
|
16700
16700
|
const J = () => {
|
|
16701
|
-
var
|
|
16702
|
-
(
|
|
16701
|
+
var te;
|
|
16702
|
+
(te = s.current) == null || te.submitForm();
|
|
16703
16703
|
};
|
|
16704
16704
|
return /* @__PURE__ */ jsx(ActionViewContext.Provider, {
|
|
16705
16705
|
value: {
|
|
@@ -16733,7 +16733,7 @@ const DEFAULT_SEARCH_LIMIT$1 = 80, useSearch = (e) => {
|
|
|
16733
16733
|
selectedRowItems: O,
|
|
16734
16734
|
setSelectedRowItems: y,
|
|
16735
16735
|
duplicatingItem: W,
|
|
16736
|
-
setDuplicatingItem:
|
|
16736
|
+
setDuplicatingItem: K,
|
|
16737
16737
|
setSearchParams: H,
|
|
16738
16738
|
searchParams: V,
|
|
16739
16739
|
searchVisible: P,
|
|
@@ -16744,15 +16744,15 @@ const DEFAULT_SEARCH_LIMIT$1 = 80, useSearch = (e) => {
|
|
|
16744
16744
|
setTotalItems: C,
|
|
16745
16745
|
searchTreeNameSearch: b,
|
|
16746
16746
|
setSearchTreeNameSearch: E,
|
|
16747
|
-
setGraphIsLoading:
|
|
16747
|
+
setGraphIsLoading: Y,
|
|
16748
16748
|
graphIsLoading: j,
|
|
16749
16749
|
previousView: X,
|
|
16750
16750
|
setPreviousView: F,
|
|
16751
16751
|
goToResourceId: w,
|
|
16752
16752
|
searchValues: _,
|
|
16753
|
-
setSearchValues:
|
|
16753
|
+
setSearchValues: Z,
|
|
16754
16754
|
limit: Q,
|
|
16755
|
-
setLimit:
|
|
16755
|
+
setLimit: ee
|
|
16756
16756
|
},
|
|
16757
16757
|
children: t
|
|
16758
16758
|
});
|
|
@@ -17087,28 +17087,29 @@ function Form(e, t) {
|
|
|
17087
17087
|
forcedValues: b = {}
|
|
17088
17088
|
} = e, {
|
|
17089
17089
|
lang: E
|
|
17090
|
-
} = useContext(LocaleContext), [w, S] = useState(!1), [T, k] = useState(), [$, D] = useState(), [M] = Form$3.useForm(), [L, q] = useState(), [N, B] = useState(), U = useContext(FormModalContext), [G, z] = useState(), [W,
|
|
17091
|
-
activeId: F
|
|
17092
|
-
|
|
17093
|
-
|
|
17094
|
-
|
|
17095
|
-
|
|
17096
|
-
|
|
17097
|
-
|
|
17098
|
-
|
|
17099
|
-
|
|
17100
|
-
|
|
17101
|
-
|
|
17090
|
+
} = useContext(LocaleContext), [w, S] = useState(!1), [T, k] = useState(), [$, D] = useState(), [M] = Form$3.useForm(), [L, q] = useState(), [N, B] = useState(), U = useContext(FormModalContext), [G, z] = useState(), [W, K] = useState(!1), V = useRef(), H = useRef({}), P = useRef({}), A = useRef(!1), j = useRef(!1), Y = G < WIDTH_BREAKPOINT, X = useContext(FormContext$1), {
|
|
17091
|
+
activeId: F,
|
|
17092
|
+
getPlainValues: _
|
|
17093
|
+
} = X || {}, Z = useContext(ActionViewContext), {
|
|
17094
|
+
setFormIsSaving: Q = void 0,
|
|
17095
|
+
setFormHasChanges: ee = void 0,
|
|
17096
|
+
setCurrentId: J = void 0,
|
|
17097
|
+
setFormIsLoading: te = void 0,
|
|
17098
|
+
setAttachments: ie = void 0
|
|
17099
|
+
} = (y ? Z : {}) || {}, le = useContext(ContentRootContext), {
|
|
17100
|
+
processAction: ae,
|
|
17101
|
+
globalValues: Oe
|
|
17102
|
+
} = le || {};
|
|
17102
17103
|
useImperativeHandle(t, () => ({
|
|
17103
17104
|
submitForm: ke,
|
|
17104
17105
|
getFields: Ie,
|
|
17105
|
-
getValues:
|
|
17106
|
-
getPlainValues:
|
|
17107
|
-
getContext:
|
|
17108
|
-
fetchValues:
|
|
17109
|
-
cancelUnsavedChanges:
|
|
17106
|
+
getValues: me,
|
|
17107
|
+
getPlainValues: ve,
|
|
17108
|
+
getContext: Se,
|
|
17109
|
+
fetchValues: Ce,
|
|
17110
|
+
cancelUnsavedChanges: Fe,
|
|
17110
17111
|
clearAndReload: () => {
|
|
17111
|
-
V.current = void 0, D(void 0),
|
|
17112
|
+
V.current = void 0, D(void 0), Ee();
|
|
17112
17113
|
}
|
|
17113
17114
|
})), useEffect(() => {
|
|
17114
17115
|
if (k(void 0), !(!n && !m)) {
|
|
@@ -17116,19 +17117,19 @@ function Form(e, t) {
|
|
|
17116
17117
|
V.current = void 0, D(void 0);
|
|
17117
17118
|
return;
|
|
17118
17119
|
}
|
|
17119
|
-
(r === void 0 && N || r !== void 0 && N && r < 0) && (V.current = void 0, D(void 0)),
|
|
17120
|
+
(r === void 0 && N || r !== void 0 && N && r < 0) && (V.current = void 0, D(void 0)), Ee();
|
|
17120
17121
|
}
|
|
17121
17122
|
}, [r, n, h, m, C]), useEffect(() => {
|
|
17122
17123
|
W && (De({
|
|
17123
17124
|
elementHasLostFocus: !0
|
|
17124
|
-
}),
|
|
17125
|
+
}), K(!1));
|
|
17125
17126
|
}, [W]);
|
|
17126
|
-
const pe = (
|
|
17127
|
-
|
|
17128
|
-
},
|
|
17129
|
-
|
|
17130
|
-
},
|
|
17131
|
-
|
|
17127
|
+
const pe = (oe, re, ce) => {
|
|
17128
|
+
ee == null || ee(!1), Q == null || Q(!1), a == null || a(oe, re, ce), J == null || J(oe);
|
|
17129
|
+
}, ne = () => {
|
|
17130
|
+
Q == null || Q(!1), o == null || o();
|
|
17131
|
+
}, ge = (oe) => {
|
|
17132
|
+
Q == null || Q(!1), u == null || u(oe);
|
|
17132
17133
|
};
|
|
17133
17134
|
function de() {
|
|
17134
17135
|
return r || V.current;
|
|
@@ -17136,140 +17137,140 @@ function Form(e, t) {
|
|
|
17136
17137
|
function Ie() {
|
|
17137
17138
|
return N;
|
|
17138
17139
|
}
|
|
17139
|
-
function
|
|
17140
|
-
const
|
|
17141
|
-
...
|
|
17142
|
-
...
|
|
17140
|
+
function me() {
|
|
17141
|
+
const oe = {
|
|
17142
|
+
...he(N),
|
|
17143
|
+
...se()
|
|
17143
17144
|
};
|
|
17144
|
-
for (const
|
|
17145
|
-
re
|
|
17146
|
-
return
|
|
17147
|
-
}
|
|
17148
|
-
function Ce() {
|
|
17149
|
-
const re = he(), te = Ie();
|
|
17150
|
-
let ue = {};
|
|
17151
|
-
return Object.keys(re).forEach((fe) => {
|
|
17152
|
-
const xe = re[fe];
|
|
17153
|
-
te[fe] && te[fe].type === "many2one" && xe && Array.isArray(xe) && xe.length === 2 ? ue[fe] = xe[0] : te[fe] && (te[fe].type === "one2many" || te[fe].type === "many2many") && xe && xe.items ? ue[fe] = xe.items.filter((Pe) => Pe.operation !== "pendingRemove").map((Pe) => Pe.id) : ue[fe] = xe;
|
|
17154
|
-
}), ue;
|
|
17145
|
+
for (const re in oe)
|
|
17146
|
+
oe[re] === void 0 && delete oe[re];
|
|
17147
|
+
return oe;
|
|
17155
17148
|
}
|
|
17156
17149
|
function ve() {
|
|
17157
|
-
const re =
|
|
17158
|
-
|
|
17150
|
+
const oe = me(), re = Ie();
|
|
17151
|
+
let ce = {};
|
|
17152
|
+
return Object.keys(oe).forEach((fe) => {
|
|
17153
|
+
const xe = oe[fe];
|
|
17154
|
+
re[fe] && re[fe].type === "many2one" && xe && Array.isArray(xe) && xe.length === 2 ? ce[fe] = xe[0] : re[fe] && (re[fe].type === "one2many" || re[fe].type === "many2many") && xe && xe.items ? ce[fe] = xe.items.filter((Pe) => Pe.operation !== "pendingRemove").map((Pe) => Pe.id) : ce[fe] = xe;
|
|
17155
|
+
}), ce;
|
|
17156
|
+
}
|
|
17157
|
+
function be() {
|
|
17158
|
+
const oe = {
|
|
17159
|
+
...he(N)
|
|
17159
17160
|
};
|
|
17160
|
-
for (const
|
|
17161
|
-
re
|
|
17162
|
-
return
|
|
17161
|
+
for (const re in oe)
|
|
17162
|
+
oe[re] === void 0 && delete oe[re];
|
|
17163
|
+
return oe;
|
|
17163
17164
|
}
|
|
17164
|
-
function
|
|
17165
|
+
function Se() {
|
|
17165
17166
|
return {
|
|
17166
17167
|
...g,
|
|
17167
17168
|
...$ == null ? void 0 : $.context
|
|
17168
17169
|
};
|
|
17169
17170
|
}
|
|
17170
|
-
function
|
|
17171
|
+
function se() {
|
|
17171
17172
|
return {
|
|
17172
17173
|
id: de(),
|
|
17173
17174
|
active_id: de(),
|
|
17174
17175
|
active_ids: [de()],
|
|
17175
17176
|
parent_id: F,
|
|
17176
|
-
...
|
|
17177
|
+
...Oe
|
|
17177
17178
|
};
|
|
17178
17179
|
}
|
|
17179
|
-
const
|
|
17180
|
-
const
|
|
17180
|
+
const ue = async (oe) => {
|
|
17181
|
+
const re = de() ? $ == null ? void 0 : $.context : {};
|
|
17181
17182
|
return await ConnectionProvider.getHandler().defaultGet({
|
|
17182
17183
|
model: n,
|
|
17183
|
-
fields:
|
|
17184
|
+
fields: oe,
|
|
17184
17185
|
context: {
|
|
17185
17186
|
...g,
|
|
17186
|
-
...
|
|
17187
|
+
...re
|
|
17187
17188
|
},
|
|
17188
17189
|
extraValues: O
|
|
17189
17190
|
});
|
|
17190
|
-
},
|
|
17191
|
+
}, ye = () => Object.keys(getTouchedValues({
|
|
17191
17192
|
source: H.current,
|
|
17192
|
-
target:
|
|
17193
|
+
target: he(N),
|
|
17193
17194
|
fields: N
|
|
17194
|
-
})).length !== 0,
|
|
17195
|
-
const
|
|
17196
|
-
return processValues(
|
|
17197
|
-
},
|
|
17195
|
+
})).length !== 0, he = (oe) => {
|
|
17196
|
+
const re = M.getFieldsValue(!0);
|
|
17197
|
+
return processValues(re, oe);
|
|
17198
|
+
}, we = (oe, re) => {
|
|
17198
17199
|
Ae({
|
|
17199
17200
|
values: {
|
|
17200
17201
|
...processValues(M.getFieldsValue(!0), N),
|
|
17201
|
-
[
|
|
17202
|
+
[oe]: re
|
|
17202
17203
|
},
|
|
17203
17204
|
fields: N,
|
|
17204
17205
|
reset: !1
|
|
17205
17206
|
});
|
|
17206
|
-
},
|
|
17207
|
-
async function
|
|
17207
|
+
}, _e = (oe) => M.getFieldsValue(!0)[oe];
|
|
17208
|
+
async function Re() {
|
|
17208
17209
|
try {
|
|
17209
17210
|
return await M.validateFields(), !1;
|
|
17210
17211
|
} catch {
|
|
17211
17212
|
return !0;
|
|
17212
17213
|
}
|
|
17213
17214
|
}
|
|
17214
|
-
const
|
|
17215
|
-
k(void 0),
|
|
17216
|
-
let
|
|
17215
|
+
const Ee = async () => {
|
|
17216
|
+
k(void 0), te == null || te(!0);
|
|
17217
|
+
let oe;
|
|
17217
17218
|
try {
|
|
17218
|
-
m ?
|
|
17219
|
+
m ? oe = {
|
|
17219
17220
|
arch: m.arch,
|
|
17220
17221
|
fields: m.fields
|
|
17221
|
-
} :
|
|
17222
|
+
} : oe = await Ne();
|
|
17222
17223
|
const {
|
|
17223
|
-
fields:
|
|
17224
|
-
arch:
|
|
17225
|
-
} =
|
|
17226
|
-
B(
|
|
17227
|
-
fields:
|
|
17228
|
-
arch:
|
|
17224
|
+
fields: re,
|
|
17225
|
+
arch: ce
|
|
17226
|
+
} = oe;
|
|
17227
|
+
B(re), q(ce), await Ce({
|
|
17228
|
+
fields: re,
|
|
17229
|
+
arch: ce
|
|
17229
17230
|
});
|
|
17230
|
-
} catch (
|
|
17231
|
-
k(
|
|
17231
|
+
} catch (re) {
|
|
17232
|
+
k(re != null && re.message ? re.message + re.stack : re), te == null || te(!1);
|
|
17232
17233
|
}
|
|
17233
|
-
},
|
|
17234
|
-
let
|
|
17235
|
-
|
|
17236
|
-
values:
|
|
17234
|
+
}, Ce = async (oe) => {
|
|
17235
|
+
let re, ce, fe, xe;
|
|
17236
|
+
te == null || te(!0), k(void 0), oe ? (ce = oe.fields, fe = oe.arch) : (ce = N, fe = L), h ? re = h : {
|
|
17237
|
+
values: re,
|
|
17237
17238
|
defaultGetCalled: xe
|
|
17238
|
-
} = await
|
|
17239
|
-
fields:
|
|
17239
|
+
} = await qe({
|
|
17240
|
+
fields: ce,
|
|
17240
17241
|
arch: fe
|
|
17241
|
-
}), I && (
|
|
17242
|
+
}), I && (re = {
|
|
17242
17243
|
...getValuesForDomain(I),
|
|
17243
|
-
...
|
|
17244
|
-
}), H.current = processValues(
|
|
17245
|
-
values:
|
|
17246
|
-
fields:
|
|
17244
|
+
...re
|
|
17245
|
+
}), H.current = processValues(re, ce), Ae({
|
|
17246
|
+
values: re,
|
|
17247
|
+
fields: ce,
|
|
17247
17248
|
reset: !0,
|
|
17248
17249
|
isDefaultGet: xe
|
|
17249
17250
|
}), Me({
|
|
17250
|
-
fields:
|
|
17251
|
+
fields: ce,
|
|
17251
17252
|
arch: fe,
|
|
17252
|
-
values:
|
|
17253
|
-
}),
|
|
17253
|
+
values: re
|
|
17254
|
+
}), te == null || te(!1), ee == null || ee(!1), xe && K(!0);
|
|
17254
17255
|
};
|
|
17255
|
-
function
|
|
17256
|
-
H.current[
|
|
17256
|
+
function Te(oe, re) {
|
|
17257
|
+
H.current[oe] = re, ee == null || ee(ye());
|
|
17257
17258
|
}
|
|
17258
|
-
const
|
|
17259
|
-
|
|
17259
|
+
const Fe = async () => new Promise(async (oe) => {
|
|
17260
|
+
ye() ? showDialog$6({
|
|
17260
17261
|
lang: E,
|
|
17261
17262
|
onOk: () => {
|
|
17262
|
-
|
|
17263
|
+
ne == null || ne(), oe(!0);
|
|
17263
17264
|
},
|
|
17264
17265
|
onCancel: () => {
|
|
17265
|
-
|
|
17266
|
+
oe(!1);
|
|
17266
17267
|
}
|
|
17267
|
-
}) : (
|
|
17268
|
-
}),
|
|
17268
|
+
}) : (ne == null || ne(), oe(!0));
|
|
17269
|
+
}), Ne = async () => {
|
|
17269
17270
|
if (c) {
|
|
17270
|
-
const
|
|
17271
|
+
const oe = await ConnectionProvider.getHandler().getActionStringForModel(n);
|
|
17271
17272
|
return (await ConnectionProvider.getHandler().getViewsForAction({
|
|
17272
|
-
action:
|
|
17273
|
+
action: oe,
|
|
17273
17274
|
context: g
|
|
17274
17275
|
})).views.get("form");
|
|
17275
17276
|
}
|
|
@@ -17279,63 +17280,63 @@ function Form(e, t) {
|
|
|
17279
17280
|
context: g
|
|
17280
17281
|
});
|
|
17281
17282
|
}, Ae = ({
|
|
17282
|
-
values:
|
|
17283
|
-
fields:
|
|
17284
|
-
reset:
|
|
17283
|
+
values: oe,
|
|
17284
|
+
fields: re,
|
|
17285
|
+
reset: ce,
|
|
17285
17286
|
isDefaultGet: fe = !1
|
|
17286
17287
|
}) => {
|
|
17287
17288
|
const Pe = {
|
|
17288
|
-
...
|
|
17289
|
-
...
|
|
17290
|
-
}, Be = processValues(Pe,
|
|
17291
|
-
const
|
|
17289
|
+
...ce ? {} : M.getFieldsValue(!0),
|
|
17290
|
+
...oe
|
|
17291
|
+
}, Be = processValues(Pe, re), Je = Object.keys(re).map((Le) => {
|
|
17292
|
+
const et = Be[Le] !== void 0 ? Be[Le] : void 0;
|
|
17292
17293
|
return {
|
|
17293
17294
|
name: Le,
|
|
17294
17295
|
touched: !1,
|
|
17295
|
-
value:
|
|
17296
|
+
value: et
|
|
17296
17297
|
};
|
|
17297
17298
|
});
|
|
17298
|
-
fe || (P.current = Be), M.setFields(
|
|
17299
|
-
},
|
|
17300
|
-
fields:
|
|
17301
|
-
arch:
|
|
17299
|
+
fe || (P.current = Be), M.setFields(Je);
|
|
17300
|
+
}, qe = async ({
|
|
17301
|
+
fields: oe,
|
|
17302
|
+
arch: re
|
|
17302
17303
|
}) => {
|
|
17303
|
-
let
|
|
17304
|
+
let ce = {}, fe = !1;
|
|
17304
17305
|
if (de()) {
|
|
17305
|
-
|
|
17306
|
+
ce = (await ConnectionProvider.getHandler().readObjects({
|
|
17306
17307
|
model: n,
|
|
17307
17308
|
ids: [de()],
|
|
17308
|
-
fields:
|
|
17309
|
+
fields: oe,
|
|
17309
17310
|
context: g
|
|
17310
17311
|
}))[0];
|
|
17311
17312
|
const xe = await ConnectionProvider.getHandler().search({
|
|
17312
17313
|
params: [["res_model", "=", n], ["res_id", "=", de()]],
|
|
17313
17314
|
fields: ["id", "name"],
|
|
17314
|
-
context:
|
|
17315
|
+
context: Se(),
|
|
17315
17316
|
model: "ir.attachment"
|
|
17316
17317
|
});
|
|
17317
|
-
|
|
17318
|
+
ie == null || ie(xe);
|
|
17318
17319
|
} else
|
|
17319
|
-
|
|
17320
|
+
ie == null || ie([]), ce = await ue(oe), fe = !0;
|
|
17320
17321
|
return {
|
|
17321
|
-
values:
|
|
17322
|
+
values: ce,
|
|
17322
17323
|
defaultGetCalled: fe
|
|
17323
17324
|
};
|
|
17324
|
-
},
|
|
17325
|
+
}, je = async (oe) => {
|
|
17325
17326
|
const {
|
|
17326
|
-
callOnSubmitSucceed:
|
|
17327
|
-
} =
|
|
17327
|
+
callOnSubmitSucceed: re = !0
|
|
17328
|
+
} = oe || {};
|
|
17328
17329
|
if (de()) {
|
|
17329
|
-
const
|
|
17330
|
+
const ce = getTouchedValues({
|
|
17330
17331
|
source: H.current,
|
|
17331
|
-
target:
|
|
17332
|
+
target: he(N),
|
|
17332
17333
|
fields: N
|
|
17333
17334
|
});
|
|
17334
17335
|
await ConnectionProvider.getHandler().update({
|
|
17335
17336
|
model: n,
|
|
17336
17337
|
id: de(),
|
|
17337
17338
|
values: {
|
|
17338
|
-
...
|
|
17339
|
+
...ce,
|
|
17339
17340
|
...b
|
|
17340
17341
|
},
|
|
17341
17342
|
fields: N,
|
|
@@ -17343,12 +17344,12 @@ function Form(e, t) {
|
|
|
17343
17344
|
...g,
|
|
17344
17345
|
...$ == null ? void 0 : $.context
|
|
17345
17346
|
}
|
|
17346
|
-
}), H.current =
|
|
17347
|
+
}), H.current = he(N);
|
|
17347
17348
|
} else {
|
|
17348
|
-
const
|
|
17349
|
+
const ce = he(N), fe = await ConnectionProvider.getHandler().create({
|
|
17349
17350
|
model: n,
|
|
17350
17351
|
values: {
|
|
17351
|
-
...
|
|
17352
|
+
...ce,
|
|
17352
17353
|
...b
|
|
17353
17354
|
},
|
|
17354
17355
|
fields: N,
|
|
@@ -17357,111 +17358,111 @@ function Form(e, t) {
|
|
|
17357
17358
|
...$ == null ? void 0 : $.context
|
|
17358
17359
|
}
|
|
17359
17360
|
});
|
|
17360
|
-
V.current = fe, H.current =
|
|
17361
|
+
V.current = fe, H.current = ce;
|
|
17361
17362
|
}
|
|
17362
|
-
v && await v([de()]), !x &&
|
|
17363
|
-
},
|
|
17363
|
+
v && await v([de()]), !x && re && (pe == null || pe(de(), me(), be()));
|
|
17364
|
+
}, Ve = async (oe) => {
|
|
17364
17365
|
const {
|
|
17365
|
-
callOnSubmitSucceed:
|
|
17366
|
-
} =
|
|
17367
|
-
!x &&
|
|
17368
|
-
}, ke = async (
|
|
17369
|
-
let
|
|
17366
|
+
callOnSubmitSucceed: re = !0
|
|
17367
|
+
} = oe || {};
|
|
17368
|
+
!x && re && (pe == null || pe(de(), me(), be()));
|
|
17369
|
+
}, ke = async (oe) => {
|
|
17370
|
+
let re = !1;
|
|
17370
17371
|
const {
|
|
17371
|
-
callOnSubmitSucceed:
|
|
17372
|
-
} =
|
|
17373
|
-
if (j.current = !0, k(void 0), !
|
|
17374
|
-
return j.current = !1,
|
|
17375
|
-
if (await
|
|
17372
|
+
callOnSubmitSucceed: ce = !0
|
|
17373
|
+
} = oe || {};
|
|
17374
|
+
if (j.current = !0, k(void 0), !ye() && de() && ce)
|
|
17375
|
+
return j.current = !1, ee == null || ee(!1), ne == null || ne(), !0;
|
|
17376
|
+
if (await Re())
|
|
17376
17377
|
return j.current = !1, showDialog$5(E), !1;
|
|
17377
|
-
S(!0),
|
|
17378
|
+
S(!0), Q == null || Q(!0);
|
|
17378
17379
|
try {
|
|
17379
|
-
p === "api" ? await
|
|
17380
|
+
p === "api" ? await je(oe) : await Ve(oe), f && (V.current = void 0, Ae({
|
|
17380
17381
|
values: {},
|
|
17381
17382
|
fields: N,
|
|
17382
17383
|
reset: !0
|
|
17383
|
-
})), await
|
|
17384
|
+
})), await Ce(), re = !0;
|
|
17384
17385
|
} catch (fe) {
|
|
17385
|
-
j.current = !1, S(!1),
|
|
17386
|
+
j.current = !1, S(!1), Q == null || Q(!1), ge == null || ge(fe), k(fe != null && fe.message ? fe.message : fe);
|
|
17386
17387
|
} finally {
|
|
17387
|
-
j.current = !1,
|
|
17388
|
+
j.current = !1, Q == null || Q(!1), S(!1);
|
|
17388
17389
|
}
|
|
17389
|
-
return
|
|
17390
|
+
return re;
|
|
17390
17391
|
}, Me = ({
|
|
17391
|
-
fields:
|
|
17392
|
-
arch:
|
|
17393
|
-
values:
|
|
17392
|
+
fields: oe,
|
|
17393
|
+
arch: re,
|
|
17394
|
+
values: ce
|
|
17394
17395
|
}) => {
|
|
17395
17396
|
var xe;
|
|
17396
|
-
const fe = new Form$4(
|
|
17397
|
-
fe.parse(
|
|
17397
|
+
const fe = new Form$4(oe);
|
|
17398
|
+
fe.parse(re, {
|
|
17398
17399
|
readOnly: d,
|
|
17399
17400
|
values: {
|
|
17400
|
-
...
|
|
17401
|
-
...
|
|
17401
|
+
...ce,
|
|
17402
|
+
...se()
|
|
17402
17403
|
}
|
|
17403
17404
|
}), D(fe), U && fe.string && ((xe = U.setTitle) == null || xe.call(U, fe.string));
|
|
17404
17405
|
}, De = async ({
|
|
17405
|
-
elementHasLostFocus:
|
|
17406
|
+
elementHasLostFocus: oe = !1
|
|
17406
17407
|
}) => {
|
|
17407
17408
|
if (j.current)
|
|
17408
17409
|
return;
|
|
17409
|
-
const
|
|
17410
|
+
const re = getTouchedValues({
|
|
17410
17411
|
source: P.current,
|
|
17411
|
-
target:
|
|
17412
|
+
target: he(N),
|
|
17412
17413
|
fields: N
|
|
17413
|
-
}),
|
|
17414
|
-
if (
|
|
17414
|
+
}), ce = Object.keys(re);
|
|
17415
|
+
if (ce.length !== 0) {
|
|
17415
17416
|
if (checkFieldsType({
|
|
17416
|
-
changedFields:
|
|
17417
|
+
changedFields: ce,
|
|
17417
17418
|
fields: N,
|
|
17418
17419
|
types: ["text", "codeeditor", "email", "url", "char", "float", "float_time", "integer", "many2one"]
|
|
17419
|
-
}) &&
|
|
17420
|
+
}) && oe !== !0)
|
|
17420
17421
|
return;
|
|
17421
17422
|
{
|
|
17422
17423
|
const fe = processValues(M.getFieldsValue(!0), N);
|
|
17423
|
-
P.current = fe, l == null || l(fe),
|
|
17424
|
+
P.current = fe, l == null || l(fe), ee == null || ee(!0), He(ce);
|
|
17424
17425
|
}
|
|
17425
17426
|
}
|
|
17426
|
-
},
|
|
17427
|
+
}, Ue = debounce_1(De, 100), He = async (oe) => {
|
|
17427
17428
|
try {
|
|
17428
|
-
for (let
|
|
17429
|
-
const
|
|
17430
|
-
await
|
|
17429
|
+
for (let re = 0; re < oe.length; re += 1) {
|
|
17430
|
+
const ce = oe[re];
|
|
17431
|
+
await We(ce);
|
|
17431
17432
|
}
|
|
17432
|
-
} catch (
|
|
17433
|
-
showDialog$8(
|
|
17433
|
+
} catch (re) {
|
|
17434
|
+
showDialog$8(re);
|
|
17434
17435
|
}
|
|
17435
|
-
},
|
|
17436
|
-
const
|
|
17437
|
-
if (!
|
|
17436
|
+
}, We = async (oe) => {
|
|
17437
|
+
const re = $ == null ? void 0 : $.onChangeFields[oe];
|
|
17438
|
+
if (!re) {
|
|
17438
17439
|
Me({
|
|
17439
17440
|
fields: N,
|
|
17440
17441
|
arch: L,
|
|
17441
|
-
values:
|
|
17442
|
+
values: he(N)
|
|
17442
17443
|
});
|
|
17443
17444
|
return;
|
|
17444
17445
|
}
|
|
17445
|
-
const
|
|
17446
|
+
const ce = getOnChangePayload({
|
|
17446
17447
|
values: {
|
|
17447
|
-
...
|
|
17448
|
+
...he(N),
|
|
17448
17449
|
context: {
|
|
17449
17450
|
...g,
|
|
17450
17451
|
...$ == null ? void 0 : $.context
|
|
17451
17452
|
}
|
|
17452
17453
|
},
|
|
17453
|
-
parentValues:
|
|
17454
|
-
onChangeFieldActionArgs:
|
|
17454
|
+
parentValues: _ == null ? void 0 : _(),
|
|
17455
|
+
onChangeFieldActionArgs: re.args
|
|
17455
17456
|
}), fe = await ConnectionProvider.getHandler().executeOnChange({
|
|
17456
17457
|
model: n,
|
|
17457
|
-
action:
|
|
17458
|
+
action: re.method,
|
|
17458
17459
|
ids: de() ? [de()] : [],
|
|
17459
|
-
payload:
|
|
17460
|
+
payload: ce,
|
|
17460
17461
|
fields: N
|
|
17461
17462
|
});
|
|
17462
17463
|
if (fe.value) {
|
|
17463
17464
|
const xe = {
|
|
17464
|
-
...
|
|
17465
|
+
...he(N),
|
|
17465
17466
|
...fe.value
|
|
17466
17467
|
};
|
|
17467
17468
|
Me({
|
|
@@ -17491,155 +17492,155 @@ function Form(e, t) {
|
|
|
17491
17492
|
Me({
|
|
17492
17493
|
fields: xe,
|
|
17493
17494
|
arch: L,
|
|
17494
|
-
values:
|
|
17495
|
+
values: he(xe)
|
|
17495
17496
|
}), B(xe);
|
|
17496
17497
|
}
|
|
17497
17498
|
};
|
|
17498
|
-
async function
|
|
17499
|
-
action:
|
|
17500
|
-
context:
|
|
17499
|
+
async function ze({
|
|
17500
|
+
action: oe,
|
|
17501
|
+
context: re
|
|
17501
17502
|
}) {
|
|
17502
|
-
const
|
|
17503
|
+
const ce = await ConnectionProvider.getHandler().execute({
|
|
17503
17504
|
model: n,
|
|
17504
|
-
action:
|
|
17505
|
+
action: oe,
|
|
17505
17506
|
payload: [de()],
|
|
17506
17507
|
context: {
|
|
17507
|
-
...
|
|
17508
|
+
...re,
|
|
17508
17509
|
...$ == null ? void 0 : $.context,
|
|
17509
17510
|
...g
|
|
17510
17511
|
}
|
|
17511
17512
|
});
|
|
17512
|
-
if (typeof
|
|
17513
|
-
pe == null || pe(de(),
|
|
17514
|
-
else if (
|
|
17515
|
-
pe == null || pe(de(),
|
|
17516
|
-
else if (
|
|
17513
|
+
if (typeof ce == "object" && ce !== null && Object.keys(ce).length === 0 && x)
|
|
17514
|
+
pe == null || pe(de(), me(), be());
|
|
17515
|
+
else if (ce.type && ce.type === "ir.actions.act_window_close")
|
|
17516
|
+
pe == null || pe(de(), me(), be());
|
|
17517
|
+
else if (ce.type) {
|
|
17517
17518
|
let fe = {};
|
|
17518
|
-
|
|
17519
|
-
context:
|
|
17519
|
+
ce.context && (fe = parseContext({
|
|
17520
|
+
context: ce.context,
|
|
17520
17521
|
fields: N,
|
|
17521
|
-
values:
|
|
17522
|
+
values: me()
|
|
17522
17523
|
})), await $e({
|
|
17523
|
-
actionData:
|
|
17524
|
+
actionData: ce,
|
|
17524
17525
|
context: {
|
|
17525
|
-
...
|
|
17526
|
+
...re,
|
|
17526
17527
|
...fe
|
|
17527
17528
|
}
|
|
17528
17529
|
});
|
|
17529
17530
|
} else
|
|
17530
|
-
await
|
|
17531
|
+
await Ce();
|
|
17531
17532
|
}
|
|
17532
|
-
async function
|
|
17533
|
-
action:
|
|
17533
|
+
async function Ge({
|
|
17534
|
+
action: oe
|
|
17534
17535
|
}) {
|
|
17535
|
-
const
|
|
17536
|
+
const re = await ConnectionProvider.getHandler().executeWorkflow({
|
|
17536
17537
|
model: n,
|
|
17537
|
-
action:
|
|
17538
|
+
action: oe,
|
|
17538
17539
|
payload: de()
|
|
17539
17540
|
});
|
|
17540
|
-
|
|
17541
|
+
re.type && re.type === "ir.actions.act_window_close" ? pe == null || pe(de(), me(), be()) : await Ce();
|
|
17541
17542
|
}
|
|
17542
|
-
async function
|
|
17543
|
-
action:
|
|
17544
|
-
context:
|
|
17543
|
+
async function Ye({
|
|
17544
|
+
action: oe,
|
|
17545
|
+
context: re
|
|
17545
17546
|
}) {
|
|
17546
|
-
const
|
|
17547
|
+
const ce = (await ConnectionProvider.getHandler().readObjects({
|
|
17547
17548
|
model: "ir.actions.actions",
|
|
17548
|
-
ids: [parseInt(
|
|
17549
|
+
ids: [parseInt(oe)],
|
|
17549
17550
|
context: g
|
|
17550
17551
|
}))[0];
|
|
17551
17552
|
await $e({
|
|
17552
|
-
actionData:
|
|
17553
|
-
context:
|
|
17553
|
+
actionData: ce,
|
|
17554
|
+
context: re
|
|
17554
17555
|
});
|
|
17555
17556
|
}
|
|
17556
17557
|
async function $e({
|
|
17557
|
-
actionData:
|
|
17558
|
-
context:
|
|
17558
|
+
actionData: oe,
|
|
17559
|
+
context: re
|
|
17559
17560
|
}) {
|
|
17560
17561
|
const {
|
|
17561
|
-
closeParent:
|
|
17562
|
-
} = await (
|
|
17563
|
-
actionData:
|
|
17562
|
+
closeParent: ce
|
|
17563
|
+
} = await (ae == null ? void 0 : ae({
|
|
17564
|
+
actionData: oe,
|
|
17564
17565
|
fields: N,
|
|
17565
|
-
values:
|
|
17566
|
+
values: me(),
|
|
17566
17567
|
context: {
|
|
17567
17568
|
...g,
|
|
17568
17569
|
...$ == null ? void 0 : $.context,
|
|
17569
|
-
...
|
|
17570
|
+
...re
|
|
17570
17571
|
},
|
|
17571
17572
|
onRefreshParentValues: () => {
|
|
17572
|
-
|
|
17573
|
+
Ce();
|
|
17573
17574
|
}
|
|
17574
17575
|
})) || {};
|
|
17575
|
-
!y &&
|
|
17576
|
+
!y && ce && (pe == null || pe(de(), me(), be()));
|
|
17576
17577
|
}
|
|
17577
|
-
function
|
|
17578
|
+
function Ke() {
|
|
17578
17579
|
De({
|
|
17579
17580
|
elementHasLostFocus: !0
|
|
17580
17581
|
});
|
|
17581
17582
|
}
|
|
17582
|
-
async function
|
|
17583
|
-
type:
|
|
17584
|
-
action:
|
|
17585
|
-
context:
|
|
17583
|
+
async function Ze({
|
|
17584
|
+
type: oe,
|
|
17585
|
+
action: re,
|
|
17586
|
+
context: ce
|
|
17586
17587
|
}) {
|
|
17587
|
-
if (
|
|
17588
|
-
|
|
17588
|
+
if (oe === "cancel") {
|
|
17589
|
+
ne == null || ne();
|
|
17589
17590
|
return;
|
|
17590
17591
|
}
|
|
17591
|
-
if (await
|
|
17592
|
+
if (await Re()) {
|
|
17592
17593
|
showDialog$5(E);
|
|
17593
17594
|
return;
|
|
17594
17595
|
}
|
|
17595
17596
|
try {
|
|
17596
17597
|
await ke({
|
|
17597
17598
|
callOnSubmitSucceed: !1
|
|
17598
|
-
}),
|
|
17599
|
-
action:
|
|
17600
|
-
context:
|
|
17601
|
-
}) :
|
|
17602
|
-
action:
|
|
17603
|
-
}) :
|
|
17604
|
-
action:
|
|
17605
|
-
context:
|
|
17599
|
+
}), oe === "object" ? await ze({
|
|
17600
|
+
action: re,
|
|
17601
|
+
context: ce
|
|
17602
|
+
}) : oe === "workflow" ? await Ge({
|
|
17603
|
+
action: re
|
|
17604
|
+
}) : oe === "action" && await Ye({
|
|
17605
|
+
action: re,
|
|
17606
|
+
context: ce
|
|
17606
17607
|
});
|
|
17607
17608
|
} catch (fe) {
|
|
17608
17609
|
showDialog$8(fe);
|
|
17609
17610
|
}
|
|
17610
17611
|
}
|
|
17611
|
-
const
|
|
17612
|
+
const Xe = () => !$ && !T ? /* @__PURE__ */ jsx(Spin, {}) : !n && !m || !C ? null : /* @__PURE__ */ jsx(Fragment, {
|
|
17612
17613
|
children: /* @__PURE__ */ jsx(FormProvider$1, {
|
|
17613
|
-
getValues:
|
|
17614
|
-
getPlainValues:
|
|
17614
|
+
getValues: me,
|
|
17615
|
+
getPlainValues: ve,
|
|
17615
17616
|
getFields: Ie,
|
|
17616
17617
|
domain: I,
|
|
17617
17618
|
activeId: r,
|
|
17618
17619
|
activeModel: n,
|
|
17619
|
-
setFieldValue:
|
|
17620
|
-
getFieldValue:
|
|
17621
|
-
executeButtonAction:
|
|
17622
|
-
getContext:
|
|
17623
|
-
setOriginalValue:
|
|
17620
|
+
setFieldValue: we,
|
|
17621
|
+
getFieldValue: _e,
|
|
17622
|
+
executeButtonAction: Ze,
|
|
17623
|
+
getContext: Se,
|
|
17624
|
+
setOriginalValue: Te,
|
|
17624
17625
|
submitForm: ke,
|
|
17625
|
-
fetchValues:
|
|
17626
|
-
formHasChanges:
|
|
17627
|
-
elementHasLostFocus:
|
|
17626
|
+
fetchValues: Ce,
|
|
17627
|
+
formHasChanges: ye,
|
|
17628
|
+
elementHasLostFocus: Ke,
|
|
17628
17629
|
children: /* @__PURE__ */ jsx(Form$3, {
|
|
17629
17630
|
form: M,
|
|
17630
17631
|
onFieldsChange: () => {
|
|
17631
|
-
|
|
17632
|
+
Ue({
|
|
17632
17633
|
elementHasLostFocus: !1
|
|
17633
17634
|
});
|
|
17634
17635
|
},
|
|
17635
17636
|
component: !1,
|
|
17636
17637
|
children: $ && /* @__PURE__ */ jsx(Container, {
|
|
17637
17638
|
container: $.container,
|
|
17638
|
-
responsiveBehaviour:
|
|
17639
|
+
responsiveBehaviour: Y
|
|
17639
17640
|
})
|
|
17640
17641
|
})
|
|
17641
17642
|
})
|
|
17642
|
-
}),
|
|
17643
|
+
}), Qe = () => /* @__PURE__ */ jsxs(Fragment, {
|
|
17643
17644
|
children: [/* @__PURE__ */ jsx(Divider, {}), /* @__PURE__ */ jsx(Row, {
|
|
17644
17645
|
justify: "end",
|
|
17645
17646
|
children: /* @__PURE__ */ jsxs(Space, {
|
|
@@ -17647,7 +17648,7 @@ function Form(e, t) {
|
|
|
17647
17648
|
icon: /* @__PURE__ */ jsx(CloseOutlined$3, {}),
|
|
17648
17649
|
disabled: w,
|
|
17649
17650
|
onClick: async () => {
|
|
17650
|
-
await
|
|
17651
|
+
await Fe();
|
|
17651
17652
|
},
|
|
17652
17653
|
children: "Cancel"
|
|
17653
17654
|
}), /* @__PURE__ */ jsx(Button$1, {
|
|
@@ -17665,21 +17666,21 @@ function Form(e, t) {
|
|
|
17665
17666
|
});
|
|
17666
17667
|
return C ? /* @__PURE__ */ jsx(Measure, {
|
|
17667
17668
|
bounds: !0,
|
|
17668
|
-
onResize: (
|
|
17669
|
-
var
|
|
17670
|
-
z((
|
|
17669
|
+
onResize: (oe) => {
|
|
17670
|
+
var re;
|
|
17671
|
+
z((re = oe.bounds) == null ? void 0 : re.width);
|
|
17671
17672
|
},
|
|
17672
17673
|
children: ({
|
|
17673
|
-
measureRef:
|
|
17674
|
+
measureRef: oe
|
|
17674
17675
|
}) => /* @__PURE__ */ jsxs("div", {
|
|
17675
17676
|
className: "pb-2",
|
|
17676
|
-
ref:
|
|
17677
|
+
ref: oe,
|
|
17677
17678
|
children: [T && /* @__PURE__ */ jsx(Alert, {
|
|
17678
17679
|
className: "mt-10 mb-20",
|
|
17679
17680
|
message: JSON.stringify(T),
|
|
17680
17681
|
type: "error",
|
|
17681
17682
|
banner: !0
|
|
17682
|
-
}),
|
|
17683
|
+
}), Xe(), s && Qe()]
|
|
17683
17684
|
})
|
|
17684
17685
|
}) : null;
|
|
17685
17686
|
}
|
|
@@ -18608,7 +18609,7 @@ function Tree(e) {
|
|
|
18608
18609
|
return null;
|
|
18609
18610
|
let B = [], U = ((G = d == null ? void 0 : d.selectedRowKeys) == null ? void 0 : G.length) > 0 ? g.filter((z) => d == null ? void 0 : d.selectedRowKeys.includes(z.id)) : g;
|
|
18610
18611
|
return N.forEach((z) => {
|
|
18611
|
-
const W = U.reduce((
|
|
18612
|
+
const W = U.reduce((K, V) => V[z.field] && !isNaN(V[z.field]) ? K + V[z.field] : K, 0);
|
|
18612
18613
|
B.push(`${z.label}: ${Math.round(W * 100) / 100}`);
|
|
18613
18614
|
}), /* @__PURE__ */ jsx("div", {
|
|
18614
18615
|
className: "p-1 pb-0 pl-2 mt-2 bg-gray-50",
|
|
@@ -18676,41 +18677,41 @@ function SearchTree(e, t) {
|
|
|
18676
18677
|
results: G = void 0,
|
|
18677
18678
|
selectedRowItems: z = void 0,
|
|
18678
18679
|
setSelectedRowItems: W = void 0,
|
|
18679
|
-
searchParams:
|
|
18680
|
+
searchParams: K = [],
|
|
18680
18681
|
setSearchParams: V = void 0,
|
|
18681
18682
|
searchVisible: H = !0,
|
|
18682
18683
|
setSearchVisible: P = void 0,
|
|
18683
18684
|
sorter: A = void 0,
|
|
18684
18685
|
setSorter: j = void 0,
|
|
18685
|
-
setTotalItems:
|
|
18686
|
+
setTotalItems: Y = void 0,
|
|
18686
18687
|
setSearchTreeNameSearch: X = void 0,
|
|
18687
18688
|
setTreeIsLoading: F = void 0,
|
|
18688
18689
|
searchValues: _ = {},
|
|
18689
|
-
setSearchValues:
|
|
18690
|
+
setSearchValues: Z = void 0,
|
|
18690
18691
|
limit: Q = DEFAULT_SEARCH_LIMIT$1,
|
|
18691
|
-
setLimit:
|
|
18692
|
+
setLimit: ee = void 0
|
|
18692
18693
|
} = (d ? q : {}) || {}, {
|
|
18693
18694
|
submit: J,
|
|
18694
|
-
clear:
|
|
18695
|
-
fetchResults:
|
|
18695
|
+
clear: te,
|
|
18696
|
+
fetchResults: ie,
|
|
18696
18697
|
tableRefreshing: le,
|
|
18697
18698
|
searchFilterLoading: ae,
|
|
18698
|
-
searchError:
|
|
18699
|
-
page:
|
|
18700
|
-
offset:
|
|
18701
|
-
getResults:
|
|
18702
|
-
requestPageChange:
|
|
18703
|
-
changeSort:
|
|
18704
|
-
fetchChildrenForRecord:
|
|
18699
|
+
searchError: Oe,
|
|
18700
|
+
page: pe,
|
|
18701
|
+
offset: ne,
|
|
18702
|
+
getResults: ge,
|
|
18703
|
+
requestPageChange: de,
|
|
18704
|
+
changeSort: Ie,
|
|
18705
|
+
fetchChildrenForRecord: me,
|
|
18705
18706
|
colorsForResults: ve,
|
|
18706
|
-
totalItems:
|
|
18707
|
+
totalItems: be
|
|
18707
18708
|
} = useSearch({
|
|
18708
18709
|
model: I,
|
|
18709
18710
|
setSearchTreeNameSearch: X,
|
|
18710
18711
|
setSelectedRowItems: W,
|
|
18711
18712
|
setSearchParams: V,
|
|
18712
|
-
setSearchValues:
|
|
18713
|
-
searchParams:
|
|
18713
|
+
setSearchValues: Z,
|
|
18714
|
+
searchParams: K,
|
|
18714
18715
|
setSearchVisible: P,
|
|
18715
18716
|
setTreeIsLoading: F,
|
|
18716
18717
|
nameSearch: s,
|
|
@@ -18725,139 +18726,139 @@ function SearchTree(e, t) {
|
|
|
18725
18726
|
resultsActionView: G,
|
|
18726
18727
|
domain: l,
|
|
18727
18728
|
currentId: U,
|
|
18728
|
-
setActionViewTotalItems:
|
|
18729
|
+
setActionViewTotalItems: Y,
|
|
18729
18730
|
limit: Q,
|
|
18730
|
-
setLimit:
|
|
18731
|
+
setLimit: ee
|
|
18731
18732
|
});
|
|
18732
18733
|
useImperativeHandle(t, () => ({
|
|
18733
18734
|
refreshResults: () => {
|
|
18734
|
-
g.current = !1,
|
|
18735
|
+
g.current = !1, ie();
|
|
18735
18736
|
}
|
|
18736
18737
|
})), useEffect(() => {
|
|
18737
|
-
!v || u && (g.current = !1,
|
|
18738
|
-
}, [
|
|
18739
|
-
const
|
|
18738
|
+
!v || u && (g.current = !1, ie());
|
|
18739
|
+
}, [pe, ne, v, u, s]);
|
|
18740
|
+
const Se = async () => {
|
|
18740
18741
|
x(!1), m(!0), S(void 0), F == null || F(!0);
|
|
18741
18742
|
try {
|
|
18742
18743
|
await se(), x(!0);
|
|
18743
|
-
} catch (
|
|
18744
|
-
S(
|
|
18744
|
+
} catch (Ce) {
|
|
18745
|
+
S(Ce);
|
|
18745
18746
|
} finally {
|
|
18746
18747
|
m(!1), F == null || F(!1);
|
|
18747
18748
|
}
|
|
18748
18749
|
}, se = async () => {
|
|
18749
18750
|
C(n);
|
|
18750
|
-
let
|
|
18751
|
-
r || (
|
|
18751
|
+
let Ce = r;
|
|
18752
|
+
r || (Ce = await ConnectionProvider.getHandler().getView({
|
|
18752
18753
|
model: n,
|
|
18753
18754
|
type: "form",
|
|
18754
18755
|
context: f
|
|
18755
18756
|
}));
|
|
18756
|
-
let
|
|
18757
|
-
o || (
|
|
18757
|
+
let Te = o;
|
|
18758
|
+
o || (Te = await ConnectionProvider.getHandler().getView({
|
|
18758
18759
|
model: n,
|
|
18759
18760
|
type: "tree",
|
|
18760
18761
|
context: f
|
|
18761
|
-
})), E(
|
|
18762
|
+
})), E(Ce), O(Te);
|
|
18762
18763
|
};
|
|
18763
18764
|
useEffect(() => {
|
|
18764
|
-
|
|
18765
|
+
Se();
|
|
18765
18766
|
}, [n]);
|
|
18766
|
-
const
|
|
18767
|
-
|
|
18768
|
-
},
|
|
18767
|
+
const ue = (Ce) => {
|
|
18768
|
+
ee == null || ee(Ce);
|
|
18769
|
+
}, ye = async (Ce) => {
|
|
18769
18770
|
const {
|
|
18770
|
-
id:
|
|
18771
|
-
} =
|
|
18771
|
+
id: Te
|
|
18772
|
+
} = Ce;
|
|
18772
18773
|
$.current || ($.current = await ConnectionProvider.getHandler().treeButOpen({
|
|
18773
18774
|
id: y.view_id,
|
|
18774
18775
|
model: I,
|
|
18775
18776
|
context: f
|
|
18776
18777
|
}));
|
|
18777
|
-
const
|
|
18778
|
+
const Fe = $.current[0][2];
|
|
18778
18779
|
await (L == null ? void 0 : L({
|
|
18779
|
-
actionData:
|
|
18780
|
+
actionData: Fe,
|
|
18780
18781
|
fields: y.fields,
|
|
18781
18782
|
values: {
|
|
18782
|
-
active_id:
|
|
18783
|
-
...
|
|
18783
|
+
active_id: Te,
|
|
18784
|
+
...Ce
|
|
18784
18785
|
},
|
|
18785
18786
|
context: f
|
|
18786
18787
|
}));
|
|
18787
|
-
},
|
|
18788
|
+
}, he = async (Ce) => {
|
|
18788
18789
|
const {
|
|
18789
|
-
id:
|
|
18790
|
-
} =
|
|
18790
|
+
id: Te
|
|
18791
|
+
} = Ce;
|
|
18791
18792
|
if (y != null && y.isExpandable) {
|
|
18792
18793
|
try {
|
|
18793
|
-
await
|
|
18794
|
-
} catch (
|
|
18795
|
-
showDialog$8(
|
|
18794
|
+
await ye(Ce);
|
|
18795
|
+
} catch (Fe) {
|
|
18796
|
+
showDialog$8(Fe);
|
|
18796
18797
|
}
|
|
18797
18798
|
return;
|
|
18798
18799
|
}
|
|
18799
18800
|
a({
|
|
18800
|
-
id:
|
|
18801
|
+
id: Te,
|
|
18801
18802
|
model: I,
|
|
18802
18803
|
formView: b,
|
|
18803
18804
|
treeView: y
|
|
18804
18805
|
});
|
|
18805
18806
|
};
|
|
18806
|
-
function
|
|
18807
|
-
const
|
|
18808
|
-
W == null || W(
|
|
18807
|
+
function we(Ce) {
|
|
18808
|
+
const Te = ge().filter((Fe) => Ce.includes(Fe.id));
|
|
18809
|
+
W == null || W(Te), p == null || p(Ce);
|
|
18809
18810
|
}
|
|
18810
|
-
function
|
|
18811
|
+
function _e() {
|
|
18811
18812
|
return y != null && y.isExpandable ? D - 160 : D - (T + 210);
|
|
18812
18813
|
}
|
|
18813
|
-
const
|
|
18814
|
+
const Re = () => !y || !b ? null : /* @__PURE__ */ jsxs(Fragment, {
|
|
18814
18815
|
children: [/* @__PURE__ */ jsx(SearchFilter, {
|
|
18815
18816
|
fields: {
|
|
18816
18817
|
...y.fields,
|
|
18817
18818
|
...b.fields
|
|
18818
18819
|
},
|
|
18819
18820
|
searchFields: mergeSearchFields([b.search_fields, y.search_fields]),
|
|
18820
|
-
onClear:
|
|
18821
|
+
onClear: te,
|
|
18821
18822
|
limit: Q,
|
|
18822
|
-
offset:
|
|
18823
|
+
offset: ne,
|
|
18823
18824
|
isSearching: ae,
|
|
18824
18825
|
onSubmit: J,
|
|
18825
|
-
onLimitChange:
|
|
18826
|
+
onLimitChange: ue,
|
|
18826
18827
|
setSearchFilterHeight: k,
|
|
18827
|
-
searchError:
|
|
18828
|
+
searchError: Oe,
|
|
18828
18829
|
searchVisible: H,
|
|
18829
18830
|
searchValues: _
|
|
18830
18831
|
}), /* @__PURE__ */ jsx(Tree, {
|
|
18831
|
-
total:
|
|
18832
|
+
total: be,
|
|
18832
18833
|
limit: Q,
|
|
18833
|
-
page:
|
|
18834
|
+
page: pe,
|
|
18834
18835
|
treeView: y,
|
|
18835
|
-
results:
|
|
18836
|
-
onRequestPageChange:
|
|
18836
|
+
results: ge(),
|
|
18837
|
+
onRequestPageChange: de,
|
|
18837
18838
|
loading: le,
|
|
18838
|
-
onRowClicked:
|
|
18839
|
-
scrollY: c ||
|
|
18839
|
+
onRowClicked: he,
|
|
18840
|
+
scrollY: c || _e(),
|
|
18840
18841
|
colorsForResults: ve,
|
|
18841
18842
|
rowSelection: {
|
|
18842
|
-
selectedRowKeys: z == null ? void 0 : z.map((
|
|
18843
|
-
onChange:
|
|
18843
|
+
selectedRowKeys: z == null ? void 0 : z.map((Ce) => Ce.id),
|
|
18844
|
+
onChange: we
|
|
18844
18845
|
},
|
|
18845
18846
|
sorter: A,
|
|
18846
|
-
onChangeSort:
|
|
18847
|
-
onFetchChildrenForRecord: y.isExpandable ?
|
|
18847
|
+
onChangeSort: Ie,
|
|
18848
|
+
onFetchChildrenForRecord: y.isExpandable ? me : void 0,
|
|
18848
18849
|
childField: y.field_parent
|
|
18849
18850
|
})]
|
|
18850
|
-
}),
|
|
18851
|
-
return
|
|
18851
|
+
}), Ee = w || Oe;
|
|
18852
|
+
return Ee ? /* @__PURE__ */ jsx(Alert, {
|
|
18852
18853
|
className: "mt-10",
|
|
18853
|
-
message:
|
|
18854
|
+
message: Ee,
|
|
18854
18855
|
type: "error",
|
|
18855
18856
|
banner: !0
|
|
18856
18857
|
}) : /* @__PURE__ */ jsx("div", {
|
|
18857
18858
|
style: u ? {} : {
|
|
18858
18859
|
display: "none"
|
|
18859
18860
|
},
|
|
18860
|
-
children: h ? /* @__PURE__ */ jsx(Spin, {}) :
|
|
18861
|
+
children: h ? /* @__PURE__ */ jsx(Spin, {}) : Re()
|
|
18861
18862
|
});
|
|
18862
18863
|
}
|
|
18863
18864
|
const SearchTree$1 = forwardRef(SearchTree), SearchModal = (e) => {
|
|
@@ -19000,9 +19001,9 @@ const SearchTree$1 = forwardRef(SearchTree), SearchModal = (e) => {
|
|
|
19000
19001
|
elementHasLostFocus: D
|
|
19001
19002
|
} = E || {}, M = useRef([]), [L, q] = useState([]), N = t && t[0] || void 0, B = t && t[1] || "";
|
|
19002
19003
|
useEffect(() => {
|
|
19003
|
-
!Array.isArray(t) && t &&
|
|
19004
|
+
!Array.isArray(t) && t && K(t);
|
|
19004
19005
|
}, [t]), useEffect(() => {
|
|
19005
|
-
N && B.length === 0 ?
|
|
19006
|
+
N && B.length === 0 ? K(N) : N && B.length > 0 ? O(B) : !N && !B && O(b.current || "");
|
|
19006
19007
|
}, [t]);
|
|
19007
19008
|
const U = (A) => {
|
|
19008
19009
|
n == null || n(A), D == null || D();
|
|
@@ -19046,14 +19047,14 @@ const SearchTree$1 = forwardRef(SearchTree), SearchModal = (e) => {
|
|
|
19046
19047
|
},
|
|
19047
19048
|
totalItems: 2
|
|
19048
19049
|
});
|
|
19049
|
-
j.length === 1 ?
|
|
19050
|
+
j.length === 1 ? K(j[0], !0) : (I(A), p(!0));
|
|
19050
19051
|
return;
|
|
19051
19052
|
}
|
|
19052
19053
|
I(A), p(!0);
|
|
19053
|
-
},
|
|
19054
|
+
}, K = async (A, j) => {
|
|
19054
19055
|
x(!0);
|
|
19055
19056
|
try {
|
|
19056
|
-
const
|
|
19057
|
+
const Y = await ConnectionProvider.getHandler().execute({
|
|
19057
19058
|
action: "name_get",
|
|
19058
19059
|
payload: [A],
|
|
19059
19060
|
model: a,
|
|
@@ -19062,9 +19063,9 @@ const SearchTree$1 = forwardRef(SearchTree), SearchModal = (e) => {
|
|
|
19062
19063
|
...c
|
|
19063
19064
|
}
|
|
19064
19065
|
});
|
|
19065
|
-
U([A,
|
|
19066
|
-
} catch (
|
|
19067
|
-
showDialog$3(
|
|
19066
|
+
U([A, Y[0][1]]), j && $(r.id, [A, Y[0][1]]);
|
|
19067
|
+
} catch (Y) {
|
|
19068
|
+
showDialog$3(Y);
|
|
19068
19069
|
} finally {
|
|
19069
19070
|
x(!1);
|
|
19070
19071
|
}
|
|
@@ -19138,7 +19139,7 @@ const SearchTree$1 = forwardRef(SearchTree), SearchModal = (e) => {
|
|
|
19138
19139
|
visible: f,
|
|
19139
19140
|
nameSearch: N ? void 0 : g,
|
|
19140
19141
|
onSelectValues: (A) => {
|
|
19141
|
-
p(!1),
|
|
19142
|
+
p(!1), K(A[0]), C.current = !1, b.current = void 0;
|
|
19142
19143
|
},
|
|
19143
19144
|
onCloseModal: () => {
|
|
19144
19145
|
p(!1), C.current = !1;
|
|
@@ -19152,7 +19153,7 @@ const SearchTree$1 = forwardRef(SearchTree), SearchModal = (e) => {
|
|
|
19152
19153
|
id: t && t[0],
|
|
19153
19154
|
visible: h,
|
|
19154
19155
|
onSubmitSucceed: (A) => {
|
|
19155
|
-
m(!1),
|
|
19156
|
+
m(!1), K(A);
|
|
19156
19157
|
},
|
|
19157
19158
|
onCancel: () => {
|
|
19158
19159
|
m(!1);
|
|
@@ -20528,8 +20529,8 @@ var PopupInner = /* @__PURE__ */ React.forwardRef(function(e, t) {
|
|
|
20528
20529
|
}
|
|
20529
20530
|
function z(A, j) {
|
|
20530
20531
|
if (q === "align") {
|
|
20531
|
-
var
|
|
20532
|
-
w(
|
|
20532
|
+
var Y = h(j);
|
|
20533
|
+
w(Y), E !== Y ? Promise.resolve().then(function() {
|
|
20533
20534
|
G();
|
|
20534
20535
|
}) : N(function() {
|
|
20535
20536
|
var X;
|
|
@@ -20540,11 +20541,11 @@ var PopupInner = /* @__PURE__ */ React.forwardRef(function(e, t) {
|
|
|
20540
20541
|
var W = _objectSpread2$1({}, getMotion(e));
|
|
20541
20542
|
["onAppearEnd", "onEnterEnd", "onLeaveEnd"].forEach(function(A) {
|
|
20542
20543
|
var j = W[A];
|
|
20543
|
-
W[A] = function(
|
|
20544
|
-
return N(), j == null ? void 0 : j(
|
|
20544
|
+
W[A] = function(Y, X) {
|
|
20545
|
+
return N(), j == null ? void 0 : j(Y, X);
|
|
20545
20546
|
};
|
|
20546
20547
|
});
|
|
20547
|
-
function
|
|
20548
|
+
function K() {
|
|
20548
20549
|
return new Promise(function(A) {
|
|
20549
20550
|
B.current = A;
|
|
20550
20551
|
});
|
|
@@ -20575,11 +20576,11 @@ var PopupInner = /* @__PURE__ */ React.forwardRef(function(e, t) {
|
|
|
20575
20576
|
ref: y,
|
|
20576
20577
|
leavedClassName: "".concat(r, "-hidden"),
|
|
20577
20578
|
...W,
|
|
20578
|
-
onAppearPrepare:
|
|
20579
|
-
onEnterPrepare:
|
|
20579
|
+
onAppearPrepare: K,
|
|
20580
|
+
onEnterPrepare: K,
|
|
20580
20581
|
removeOnLeave: u,
|
|
20581
20582
|
children: function(A, j) {
|
|
20582
|
-
var
|
|
20583
|
+
var Y = A.className, X = A.style, F = classnamesExports(r, o, E, Y);
|
|
20583
20584
|
return /* @__PURE__ */ jsx(RefAlign, {
|
|
20584
20585
|
target: U(),
|
|
20585
20586
|
ref: C,
|
|
@@ -21349,37 +21350,37 @@ function requireTooltip() {
|
|
|
21349
21350
|
"visible" in I && $(I.visible);
|
|
21350
21351
|
}, [I.visible]);
|
|
21351
21352
|
var D = function() {
|
|
21352
|
-
var
|
|
21353
|
-
return !
|
|
21354
|
-
}, M = function(
|
|
21355
|
-
"visible" in I || $(D() ? !1 :
|
|
21353
|
+
var ee = I.title, J = I.overlay;
|
|
21354
|
+
return !ee && !J && ee !== 0;
|
|
21355
|
+
}, M = function(ee) {
|
|
21356
|
+
"visible" in I || $(D() ? !1 : ee), I.onVisibleChange && !D() && I.onVisibleChange(ee);
|
|
21356
21357
|
}, L = function() {
|
|
21357
|
-
var
|
|
21358
|
-
return
|
|
21358
|
+
var ee = I.builtinPlacements, J = I.arrowPointAtCenter, te = I.autoAdjustOverflow;
|
|
21359
|
+
return ee || (0, u.default)({
|
|
21359
21360
|
arrowPointAtCenter: J,
|
|
21360
|
-
autoAdjustOverflow:
|
|
21361
|
+
autoAdjustOverflow: te
|
|
21361
21362
|
});
|
|
21362
|
-
}, q = function(
|
|
21363
|
-
var
|
|
21364
|
-
return
|
|
21363
|
+
}, q = function(ee, J) {
|
|
21364
|
+
var te = L(), ie = Object.keys(te).filter(function(Oe) {
|
|
21365
|
+
return te[Oe].points[0] === J.points[0] && te[Oe].points[1] === J.points[1];
|
|
21365
21366
|
})[0];
|
|
21366
|
-
if (!!
|
|
21367
|
-
var le =
|
|
21367
|
+
if (!!ie) {
|
|
21368
|
+
var le = ee.getBoundingClientRect(), ae = {
|
|
21368
21369
|
top: "50%",
|
|
21369
21370
|
left: "50%"
|
|
21370
21371
|
};
|
|
21371
|
-
|
|
21372
|
+
ie.indexOf("top") >= 0 || ie.indexOf("Bottom") >= 0 ? ae.top = "".concat(le.height - J.offset[1], "px") : (ie.indexOf("Top") >= 0 || ie.indexOf("bottom") >= 0) && (ae.top = "".concat(-J.offset[1], "px")), ie.indexOf("left") >= 0 || ie.indexOf("Right") >= 0 ? ae.left = "".concat(le.width - J.offset[0], "px") : (ie.indexOf("right") >= 0 || ie.indexOf("Left") >= 0) && (ae.left = "".concat(-J.offset[0], "px")), ee.style.transformOrigin = "".concat(ae.left, " ").concat(ae.top);
|
|
21372
21373
|
}
|
|
21373
21374
|
}, N = function() {
|
|
21374
|
-
var
|
|
21375
|
-
return
|
|
21376
|
-
}, B = I.prefixCls, U = I.openClassName, G = I.getPopupContainer, z = I.getTooltipContainer, W = I.overlayClassName,
|
|
21375
|
+
var ee = I.title, J = I.overlay;
|
|
21376
|
+
return ee === 0 ? ee : J || ee || "";
|
|
21377
|
+
}, B = I.prefixCls, U = I.openClassName, G = I.getPopupContainer, z = I.getTooltipContainer, W = I.overlayClassName, K = I.color, V = I.overlayInnerStyle, H = I.children, P = E("tooltip", B), A = k;
|
|
21377
21378
|
!("visible" in I) && D() && (A = !1);
|
|
21378
|
-
var j = v((0, d.isValidElement)(H) ? H : /* @__PURE__ */ s.createElement("span", null, H), P),
|
|
21379
|
-
return
|
|
21380
|
-
background:
|
|
21381
|
-
}),
|
|
21382
|
-
background:
|
|
21379
|
+
var j = v((0, d.isValidElement)(H) ? H : /* @__PURE__ */ s.createElement("span", null, H), P), Y = j.props, X = (0, l.default)(Y.className, (0, r.default)({}, U || "".concat(P, "-open"), !0)), F = (0, l.default)(W, (y = {}, (0, r.default)(y, "".concat(P, "-rtl"), w === "rtl"), (0, r.default)(y, "".concat(P, "-").concat(K), K && m.test(K)), y)), _ = V, Z;
|
|
21380
|
+
return K && !m.test(K) && (_ = (0, a.default)((0, a.default)({}, V), {
|
|
21381
|
+
background: K
|
|
21382
|
+
}), Z = {
|
|
21383
|
+
background: K
|
|
21383
21384
|
}), /* @__PURE__ */ s.createElement(c.default, (0, a.default)({}, I, {
|
|
21384
21385
|
prefixCls: P,
|
|
21385
21386
|
overlayClassName: F,
|
|
@@ -21393,7 +21394,7 @@ function requireTooltip() {
|
|
|
21393
21394
|
overlayInnerStyle: _,
|
|
21394
21395
|
arrowContent: /* @__PURE__ */ s.createElement("span", {
|
|
21395
21396
|
className: "".concat(P, "-arrow-content"),
|
|
21396
|
-
style:
|
|
21397
|
+
style: Z
|
|
21397
21398
|
})
|
|
21398
21399
|
}), A ? (0, d.cloneElement)(j, {
|
|
21399
21400
|
className: X
|
|
@@ -21543,13 +21544,13 @@ function requireEditable() {
|
|
|
21543
21544
|
}, G = function() {
|
|
21544
21545
|
E(M.trim());
|
|
21545
21546
|
}, z = function(H) {
|
|
21546
|
-
var P = H.keyCode, A = H.ctrlKey, j = H.altKey,
|
|
21547
|
-
k.current === P && !T.current && !A && !j && !
|
|
21547
|
+
var P = H.keyCode, A = H.ctrlKey, j = H.altKey, Y = H.metaKey, X = H.shiftKey;
|
|
21548
|
+
k.current === P && !T.current && !A && !j && !Y && !X && (P === c.default.ENTER ? G() : P === c.default.ESC && w());
|
|
21548
21549
|
}, W = function() {
|
|
21549
21550
|
G();
|
|
21550
|
-
},
|
|
21551
|
+
}, K = (0, s.default)(m, "".concat(m, "-edit-content"), (0, r.default)({}, "".concat(m, "-rtl"), I === "rtl"), x);
|
|
21551
21552
|
return /* @__PURE__ */ a.createElement("div", {
|
|
21552
|
-
className:
|
|
21553
|
+
className: K,
|
|
21553
21554
|
style: g
|
|
21554
21555
|
}, /* @__PURE__ */ a.createElement(u.default, {
|
|
21555
21556
|
ref: S,
|
|
@@ -21624,8 +21625,8 @@ function requireUtil() {
|
|
|
21624
21625
|
ellipsis: !1
|
|
21625
21626
|
};
|
|
21626
21627
|
var M = Array.prototype.slice.apply(u.childNodes[0].childNodes[0].cloneNode(!0).childNodes).filter(function(W) {
|
|
21627
|
-
var
|
|
21628
|
-
return
|
|
21628
|
+
var K = W.nodeType;
|
|
21629
|
+
return K !== l;
|
|
21629
21630
|
}), L = Array.prototype.slice.apply(u.childNodes[0].childNodes[1].cloneNode(!0).childNodes);
|
|
21630
21631
|
(0, r.unmountComponentAtNode)(u);
|
|
21631
21632
|
var q = [];
|
|
@@ -21639,28 +21640,28 @@ function requireUtil() {
|
|
|
21639
21640
|
function U(W) {
|
|
21640
21641
|
N.insertBefore(W, B);
|
|
21641
21642
|
}
|
|
21642
|
-
function G(W,
|
|
21643
|
-
var V = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : 0, H = arguments.length > 3 && arguments[3] !== void 0 ? arguments[3] :
|
|
21643
|
+
function G(W, K) {
|
|
21644
|
+
var V = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : 0, H = arguments.length > 3 && arguments[3] !== void 0 ? arguments[3] : K.length, P = arguments.length > 4 && arguments[4] !== void 0 ? arguments[4] : 0, A = Math.floor((V + H) / 2), j = K.slice(0, A);
|
|
21644
21645
|
if (W.textContent = j, V >= H - 1)
|
|
21645
|
-
for (var
|
|
21646
|
-
var X =
|
|
21646
|
+
for (var Y = H; Y >= V; Y -= 1) {
|
|
21647
|
+
var X = K.slice(0, Y);
|
|
21647
21648
|
if (W.textContent = X, D() || !X)
|
|
21648
|
-
return
|
|
21649
|
+
return Y === K.length ? {
|
|
21649
21650
|
finished: !1,
|
|
21650
|
-
reactNode:
|
|
21651
|
+
reactNode: K
|
|
21651
21652
|
} : {
|
|
21652
21653
|
finished: !0,
|
|
21653
21654
|
reactNode: X
|
|
21654
21655
|
};
|
|
21655
21656
|
}
|
|
21656
|
-
return D() ? G(W,
|
|
21657
|
+
return D() ? G(W, K, A, H, A) : G(W, K, V, A, P);
|
|
21657
21658
|
}
|
|
21658
|
-
function z(W,
|
|
21659
|
+
function z(W, K) {
|
|
21659
21660
|
var V = W.nodeType;
|
|
21660
21661
|
if (V === s)
|
|
21661
21662
|
return U(W), D() ? {
|
|
21662
21663
|
finished: !1,
|
|
21663
|
-
reactNode: $[
|
|
21664
|
+
reactNode: $[K]
|
|
21664
21665
|
} : (N.removeChild(W), {
|
|
21665
21666
|
finished: !0,
|
|
21666
21667
|
reactNode: null
|
|
@@ -21674,8 +21675,8 @@ function requireUtil() {
|
|
|
21674
21675
|
reactNode: null
|
|
21675
21676
|
};
|
|
21676
21677
|
}
|
|
21677
|
-
return M.some(function(W,
|
|
21678
|
-
var V = z(W,
|
|
21678
|
+
return M.some(function(W, K) {
|
|
21679
|
+
var V = z(W, K), H = V.finished, P = V.reactNode;
|
|
21679
21680
|
return P && q.push(P), H;
|
|
21680
21681
|
}), {
|
|
21681
21682
|
content: q,
|
|
@@ -21694,27 +21695,27 @@ function requireBase() {
|
|
|
21694
21695
|
value: !0
|
|
21695
21696
|
}), e.default = void 0;
|
|
21696
21697
|
var r = n(requireDefineProperty()), o = n(requireToConsumableArray()), a = n(_typeof$2.exports), s = n(require_extends()), c = n(requireClassCallCheck()), l = n(requireCreateClass()), u = n(requireInherits()), d = n(requireCreateSuper()), f = t(React__default), p = n(requireClassnames()), h = n(requireToArray()), m = n(requireCopyToClipboard()), v = n(requireOmit()), x = n(requireEditOutlined()), g = n(requireCheckOutlined()), I = n(requireCopyOutlined()), C = n(require$$18), y = requireConfigProvider(), O = n(requireLocaleReceiver()), b = n(requireDevWarning()), E = n(requireTransButton()), w = n(requireRaf()), S = requireStyleChecker(), T = n(requireTooltip()), k = n(requireTypography()), $ = n(requireEditable()), D = n(requireUtil()), M = function(z, W) {
|
|
21697
|
-
var
|
|
21698
|
+
var K = {};
|
|
21698
21699
|
for (var V in z)
|
|
21699
|
-
Object.prototype.hasOwnProperty.call(z, V) && W.indexOf(V) < 0 && (
|
|
21700
|
+
Object.prototype.hasOwnProperty.call(z, V) && W.indexOf(V) < 0 && (K[V] = z[V]);
|
|
21700
21701
|
if (z != null && typeof Object.getOwnPropertySymbols == "function")
|
|
21701
21702
|
for (var H = 0, V = Object.getOwnPropertySymbols(z); H < V.length; H++)
|
|
21702
|
-
W.indexOf(V[H]) < 0 && Object.prototype.propertyIsEnumerable.call(z, V[H]) && (
|
|
21703
|
-
return
|
|
21703
|
+
W.indexOf(V[H]) < 0 && Object.prototype.propertyIsEnumerable.call(z, V[H]) && (K[V[H]] = z[V[H]]);
|
|
21704
|
+
return K;
|
|
21704
21705
|
}, L = (0, S.isStyleSupport)("webkitLineClamp"), q = (0, S.isStyleSupport)("textOverflow");
|
|
21705
21706
|
function N(z, W) {
|
|
21706
|
-
var
|
|
21707
|
+
var K = z.mark, V = z.code, H = z.underline, P = z.delete, A = z.strong, j = z.keyboard, Y = W;
|
|
21707
21708
|
function X(F, _) {
|
|
21708
|
-
!F || (
|
|
21709
|
+
!F || (Y = /* @__PURE__ */ f.createElement(_, {}, Y));
|
|
21709
21710
|
}
|
|
21710
|
-
return X(A, "strong"), X(H, "u"), X(P, "del"), X(V, "code"), X(
|
|
21711
|
+
return X(A, "strong"), X(H, "u"), X(P, "del"), X(V, "code"), X(K, "mark"), X(j, "kbd"), Y;
|
|
21711
21712
|
}
|
|
21712
21713
|
var B = "...", U = /* @__PURE__ */ function(z) {
|
|
21713
|
-
(0, u.default)(
|
|
21714
|
-
var W = (0, d.default)(
|
|
21715
|
-
function
|
|
21714
|
+
(0, u.default)(K, z);
|
|
21715
|
+
var W = (0, d.default)(K);
|
|
21716
|
+
function K() {
|
|
21716
21717
|
var V;
|
|
21717
|
-
return (0, c.default)(this,
|
|
21718
|
+
return (0, c.default)(this, K), V = W.apply(this, arguments), V.contentRef = /* @__PURE__ */ f.createRef(), V.state = {
|
|
21718
21719
|
edit: !1,
|
|
21719
21720
|
copied: !1,
|
|
21720
21721
|
ellipsisText: "",
|
|
@@ -21739,11 +21740,11 @@ function requireBase() {
|
|
|
21739
21740
|
V.triggerEdit(!1);
|
|
21740
21741
|
}, V.onCopyClick = function(H) {
|
|
21741
21742
|
H.preventDefault();
|
|
21742
|
-
var P = V.props, A = P.children, j = P.copyable,
|
|
21743
|
-
|
|
21743
|
+
var P = V.props, A = P.children, j = P.copyable, Y = (0, s.default)({}, (0, a.default)(j) === "object" ? j : null);
|
|
21744
|
+
Y.text === void 0 && (Y.text = String(A)), (0, m.default)(Y.text || ""), V.setState({
|
|
21744
21745
|
copied: !0
|
|
21745
21746
|
}, function() {
|
|
21746
|
-
|
|
21747
|
+
Y.onCopy && Y.onCopy(), V.copyId = window.setTimeout(function() {
|
|
21747
21748
|
V.setState({
|
|
21748
21749
|
copied: !1
|
|
21749
21750
|
});
|
|
@@ -21764,7 +21765,7 @@ function requireBase() {
|
|
|
21764
21765
|
});
|
|
21765
21766
|
}, V;
|
|
21766
21767
|
}
|
|
21767
|
-
return (0, l.default)(
|
|
21768
|
+
return (0, l.default)(K, [{
|
|
21768
21769
|
key: "componentDidMount",
|
|
21769
21770
|
value: function() {
|
|
21770
21771
|
this.setState({
|
|
@@ -21804,32 +21805,32 @@ function requireBase() {
|
|
|
21804
21805
|
}, {
|
|
21805
21806
|
key: "canUseCSSEllipsis",
|
|
21806
21807
|
value: function() {
|
|
21807
|
-
var H = this.state.clientRendered, P = this.props, A = P.editable, j = P.copyable,
|
|
21808
|
-
return _ || Q || A || j || F || !H ||
|
|
21808
|
+
var H = this.state.clientRendered, P = this.props, A = P.editable, j = P.copyable, Y = this.getEllipsis(), X = Y.rows, F = Y.expandable, _ = Y.suffix, Z = Y.onEllipsis, Q = Y.tooltip;
|
|
21809
|
+
return _ || Q || A || j || F || !H || Z ? !1 : X === 1 ? q : L;
|
|
21809
21810
|
}
|
|
21810
21811
|
}, {
|
|
21811
21812
|
key: "syncEllipsis",
|
|
21812
21813
|
value: function() {
|
|
21813
|
-
var H = this.state, P = H.ellipsisText, A = H.isEllipsis, j = H.expanded,
|
|
21814
|
+
var H = this.state, P = H.ellipsisText, A = H.isEllipsis, j = H.expanded, Y = this.getEllipsis(), X = Y.rows, F = Y.suffix, _ = Y.onEllipsis, Z = this.props.children;
|
|
21814
21815
|
if (!(!X || X < 0 || !this.contentRef.current || j) && !this.canUseCSSEllipsis()) {
|
|
21815
|
-
(0, b.default)((0, h.default)(
|
|
21816
|
-
return typeof
|
|
21816
|
+
(0, b.default)((0, h.default)(Z).every(function(ie) {
|
|
21817
|
+
return typeof ie == "string";
|
|
21817
21818
|
}), "Typography", "`ellipsis` should use string as children only.");
|
|
21818
21819
|
var Q = (0, D.default)(this.contentRef.current, {
|
|
21819
21820
|
rows: X,
|
|
21820
21821
|
suffix: F
|
|
21821
|
-
},
|
|
21822
|
-
(P !== J || A !==
|
|
21822
|
+
}, Z, this.renderOperations(!0), B), ee = Q.content, J = Q.text, te = Q.ellipsis;
|
|
21823
|
+
(P !== J || A !== te) && (this.setState({
|
|
21823
21824
|
ellipsisText: J,
|
|
21824
|
-
ellipsisContent:
|
|
21825
|
-
isEllipsis:
|
|
21826
|
-
}), A !==
|
|
21825
|
+
ellipsisContent: ee,
|
|
21826
|
+
isEllipsis: te
|
|
21827
|
+
}), A !== te && _ && _(te));
|
|
21827
21828
|
}
|
|
21828
21829
|
}
|
|
21829
21830
|
}, {
|
|
21830
21831
|
key: "renderExpand",
|
|
21831
21832
|
value: function(H) {
|
|
21832
|
-
var P = this.getEllipsis(), A = P.expandable, j = P.symbol,
|
|
21833
|
+
var P = this.getEllipsis(), A = P.expandable, j = P.symbol, Y = this.state, X = Y.expanded, F = Y.isEllipsis;
|
|
21833
21834
|
if (!A || !H && (X || !F))
|
|
21834
21835
|
return null;
|
|
21835
21836
|
var _;
|
|
@@ -21845,7 +21846,7 @@ function requireBase() {
|
|
|
21845
21846
|
value: function() {
|
|
21846
21847
|
var H = this.props.editable;
|
|
21847
21848
|
if (!!H) {
|
|
21848
|
-
var P = H.icon, A = H.tooltip, j = (0, h.default)(A)[0] || this.editStr,
|
|
21849
|
+
var P = H.icon, A = H.tooltip, j = (0, h.default)(A)[0] || this.editStr, Y = typeof j == "string" ? j : "";
|
|
21849
21850
|
return /* @__PURE__ */ f.createElement(T.default, {
|
|
21850
21851
|
key: "edit",
|
|
21851
21852
|
title: A === !1 ? "" : j
|
|
@@ -21853,7 +21854,7 @@ function requireBase() {
|
|
|
21853
21854
|
ref: this.setEditRef,
|
|
21854
21855
|
className: "".concat(this.getPrefixCls(), "-edit"),
|
|
21855
21856
|
onClick: this.onEditClick,
|
|
21856
|
-
"aria-label":
|
|
21857
|
+
"aria-label": Y
|
|
21857
21858
|
}, P || /* @__PURE__ */ f.createElement(x.default, {
|
|
21858
21859
|
role: "button"
|
|
21859
21860
|
})));
|
|
@@ -21864,9 +21865,9 @@ function requireBase() {
|
|
|
21864
21865
|
value: function() {
|
|
21865
21866
|
var H = this.state.copied, P = this.props.copyable;
|
|
21866
21867
|
if (!!P) {
|
|
21867
|
-
var A = this.getPrefixCls(), j = P.tooltips,
|
|
21868
|
-
|
|
21869
|
-
var X = H ?
|
|
21868
|
+
var A = this.getPrefixCls(), j = P.tooltips, Y = (0, h.default)(j);
|
|
21869
|
+
Y.length === 0 && (Y = [this.copyStr, this.copiedStr]);
|
|
21870
|
+
var X = H ? Y[1] : Y[0], F = typeof X == "string" ? X : "", _ = (0, h.default)(P.icon);
|
|
21870
21871
|
return /* @__PURE__ */ f.createElement(T.default, {
|
|
21871
21872
|
key: "copy",
|
|
21872
21873
|
title: j === !1 ? "" : X
|
|
@@ -21880,7 +21881,7 @@ function requireBase() {
|
|
|
21880
21881
|
}, {
|
|
21881
21882
|
key: "renderEditInput",
|
|
21882
21883
|
value: function() {
|
|
21883
|
-
var H = this.props, P = H.children, A = H.className, j = H.style,
|
|
21884
|
+
var H = this.props, P = H.children, A = H.className, j = H.style, Y = this.context.direction, X = this.getEditable(), F = X.maxLength, _ = X.autoSize;
|
|
21884
21885
|
return /* @__PURE__ */ f.createElement($.default, {
|
|
21885
21886
|
value: typeof P == "string" ? P : "",
|
|
21886
21887
|
onSave: this.onEditChange,
|
|
@@ -21888,7 +21889,7 @@ function requireBase() {
|
|
|
21888
21889
|
prefixCls: this.getPrefixCls(),
|
|
21889
21890
|
className: A,
|
|
21890
21891
|
style: j,
|
|
21891
|
-
direction:
|
|
21892
|
+
direction: Y,
|
|
21892
21893
|
maxLength: F,
|
|
21893
21894
|
autoSize: _
|
|
21894
21895
|
});
|
|
@@ -21903,33 +21904,33 @@ function requireBase() {
|
|
|
21903
21904
|
}, {
|
|
21904
21905
|
key: "renderContent",
|
|
21905
21906
|
value: function() {
|
|
21906
|
-
var H = this, P = this.state, A = P.ellipsisContent, j = P.isEllipsis,
|
|
21907
|
-
if (ae && j && !
|
|
21908
|
-
var
|
|
21909
|
-
!
|
|
21910
|
-
title:
|
|
21907
|
+
var H = this, P = this.state, A = P.ellipsisContent, j = P.isEllipsis, Y = P.expanded, X = this.props, F = X.component, _ = X.children, Z = X.className, Q = X.type, ee = X.disabled, J = X.style, te = M(X, ["component", "children", "className", "type", "disabled", "style"]), ie = this.context.direction, le = this.getEllipsis(), ae = le.rows, Oe = le.suffix, pe = le.tooltip, ne = this.getPrefixCls(), ge = (0, v.default)(te, ["prefixCls", "editable", "copyable", "ellipsis", "mark", "code", "delete", "underline", "strong", "keyboard"].concat((0, o.default)(y.configConsumerProps))), de = this.canUseCSSEllipsis(), Ie = ae === 1 && de, me = ae && ae > 1 && de, ve = _;
|
|
21908
|
+
if (ae && j && !Y && !de) {
|
|
21909
|
+
var be = te.title, Se = be || "";
|
|
21910
|
+
!be && (typeof _ == "string" || typeof _ == "number") && (Se = String(_)), Se = Se == null ? void 0 : Se.slice(String(A || "").length), ve = /* @__PURE__ */ f.createElement(f.Fragment, null, A, /* @__PURE__ */ f.createElement("span", {
|
|
21911
|
+
title: Se,
|
|
21911
21912
|
"aria-hidden": "true"
|
|
21912
|
-
}, B),
|
|
21913
|
-
title:
|
|
21913
|
+
}, B), Oe), pe && (ve = /* @__PURE__ */ f.createElement(T.default, {
|
|
21914
|
+
title: pe === !0 ? _ : pe
|
|
21914
21915
|
}, /* @__PURE__ */ f.createElement("span", null, ve)));
|
|
21915
21916
|
} else
|
|
21916
|
-
ve = /* @__PURE__ */ f.createElement(f.Fragment, null, _,
|
|
21917
|
+
ve = /* @__PURE__ */ f.createElement(f.Fragment, null, _, Oe);
|
|
21917
21918
|
return ve = N(this.props, ve), /* @__PURE__ */ f.createElement(O.default, {
|
|
21918
21919
|
componentName: "Text"
|
|
21919
21920
|
}, function(se) {
|
|
21920
|
-
var
|
|
21921
|
-
return H.editStr =
|
|
21921
|
+
var ue, ye = se.edit, he = se.copy, we = se.copied, _e = se.expand;
|
|
21922
|
+
return H.editStr = ye, H.copyStr = he, H.copiedStr = we, H.expandStr = _e, /* @__PURE__ */ f.createElement(C.default, {
|
|
21922
21923
|
onResize: H.resizeOnNextFrame,
|
|
21923
21924
|
disabled: !ae
|
|
21924
21925
|
}, /* @__PURE__ */ f.createElement(k.default, (0, s.default)({
|
|
21925
|
-
className: (0, p.default)((
|
|
21926
|
+
className: (0, p.default)((ue = {}, (0, r.default)(ue, "".concat(ne, "-").concat(Q), Q), (0, r.default)(ue, "".concat(ne, "-disabled"), ee), (0, r.default)(ue, "".concat(ne, "-ellipsis"), ae), (0, r.default)(ue, "".concat(ne, "-ellipsis-single-line"), Ie), (0, r.default)(ue, "".concat(ne, "-ellipsis-multiple-line"), me), ue), Z),
|
|
21926
21927
|
style: (0, s.default)((0, s.default)({}, J), {
|
|
21927
|
-
WebkitLineClamp:
|
|
21928
|
+
WebkitLineClamp: me ? ae : void 0
|
|
21928
21929
|
}),
|
|
21929
21930
|
component: F,
|
|
21930
21931
|
ref: H.contentRef,
|
|
21931
|
-
direction:
|
|
21932
|
-
},
|
|
21932
|
+
direction: ie
|
|
21933
|
+
}, ge), ve, H.renderOperations()));
|
|
21933
21934
|
});
|
|
21934
21935
|
}
|
|
21935
21936
|
}, {
|
|
@@ -21944,7 +21945,7 @@ function requireBase() {
|
|
|
21944
21945
|
var P = H.children, A = H.editable;
|
|
21945
21946
|
return (0, b.default)(!A || typeof P == "string", "Typography", "When `editable` is enabled, the `children` should use string."), {};
|
|
21946
21947
|
}
|
|
21947
|
-
}]),
|
|
21948
|
+
}]), K;
|
|
21948
21949
|
}(f.Component);
|
|
21949
21950
|
U.contextType = y.ConfigContext, U.defaultProps = {
|
|
21950
21951
|
children: ""
|
|
@@ -22714,7 +22715,7 @@ function filterDuplicateItems(e) {
|
|
|
22714
22715
|
});
|
|
22715
22716
|
}
|
|
22716
22717
|
const One2manyInput = (e) => {
|
|
22717
|
-
var
|
|
22718
|
+
var Se;
|
|
22718
22719
|
const {
|
|
22719
22720
|
value: t,
|
|
22720
22721
|
onChange: n,
|
|
@@ -22737,31 +22738,31 @@ const One2manyInput = (e) => {
|
|
|
22737
22738
|
lang: x,
|
|
22738
22739
|
t: g
|
|
22739
22740
|
} = useContext(LocaleContext), I = useRef(), [C, y] = useState(!1), [O, b] = useState(!1), [E, w] = useState(), [S, T] = useState(!1), [k, $] = useState(!1), [D, M] = useState(), [L, q] = useState([]), [N, B] = useState(!1), U = useRef([]), [G, z] = useState(), W = useRef(), {
|
|
22740
|
-
readOnly:
|
|
22741
|
+
readOnly: K,
|
|
22741
22742
|
relation: V,
|
|
22742
22743
|
context: H,
|
|
22743
22744
|
domain: P
|
|
22744
22745
|
} = r, A = r.type === "many2many", {
|
|
22745
22746
|
id: j
|
|
22746
|
-
} = r,
|
|
22747
|
+
} = r, Y = a.filter((se) => se.values && se.operation !== "pendingRemove");
|
|
22747
22748
|
useEffect(() => {
|
|
22748
22749
|
a.some((se) => !se.values) && F();
|
|
22749
22750
|
}, [a]), useEffect(() => {
|
|
22750
|
-
|
|
22751
|
+
Z();
|
|
22751
22752
|
}, [v]);
|
|
22752
22753
|
const X = (se) => {
|
|
22753
|
-
var
|
|
22754
|
+
var ue, ye;
|
|
22754
22755
|
n == null || n({
|
|
22755
|
-
fields: ((
|
|
22756
|
+
fields: ((ue = o.get("form")) == null ? void 0 : ue.fields) || ((ye = o.get("tree")) == null ? void 0 : ye.fields),
|
|
22756
22757
|
items: filterDuplicateItems(se)
|
|
22757
22758
|
});
|
|
22758
22759
|
}, F = async () => {
|
|
22759
|
-
await _(), l >
|
|
22760
|
+
await _(), l > Y.length - 1 && l !== 0 && u(0);
|
|
22760
22761
|
}, _ = async () => {
|
|
22761
22762
|
var se;
|
|
22762
22763
|
b(!0), y(!1), w(void 0);
|
|
22763
22764
|
try {
|
|
22764
|
-
const
|
|
22765
|
+
const ue = await readObjectValues({
|
|
22765
22766
|
treeFields: o.get("tree").fields,
|
|
22766
22767
|
formFields: ((se = o.get("form")) == null ? void 0 : se.fields) || {},
|
|
22767
22768
|
model: V,
|
|
@@ -22771,14 +22772,14 @@ const One2manyInput = (e) => {
|
|
|
22771
22772
|
...H
|
|
22772
22773
|
}
|
|
22773
22774
|
});
|
|
22774
|
-
W.current || (W.current =
|
|
22775
|
-
} catch (
|
|
22776
|
-
w(
|
|
22775
|
+
W.current || (W.current = ue.map((ye) => ye.id)), X(ue);
|
|
22776
|
+
} catch (ue) {
|
|
22777
|
+
w(ue);
|
|
22777
22778
|
} finally {
|
|
22778
22779
|
b(!1);
|
|
22779
22780
|
}
|
|
22780
22781
|
};
|
|
22781
|
-
async function
|
|
22782
|
+
async function Z() {
|
|
22782
22783
|
P && (U.current = transformDomainForChildWidget({
|
|
22783
22784
|
domain: await ConnectionProvider.getHandler().evalDomain({
|
|
22784
22785
|
domain: P,
|
|
@@ -22796,21 +22797,21 @@ const One2manyInput = (e) => {
|
|
|
22796
22797
|
})));
|
|
22797
22798
|
}
|
|
22798
22799
|
const Q = () => {
|
|
22799
|
-
const se = Array.from(o.keys()),
|
|
22800
|
-
s === "form" ?
|
|
22801
|
-
c(
|
|
22802
|
-
}) : c(
|
|
22803
|
-
},
|
|
22804
|
-
l > 0 && (s === "form" ?
|
|
22800
|
+
const se = Array.from(o.keys()), ue = se[(se.indexOf(s) + 1) % se.length];
|
|
22801
|
+
s === "form" ? ie(() => {
|
|
22802
|
+
c(ue);
|
|
22803
|
+
}) : c(ue);
|
|
22804
|
+
}, ee = () => {
|
|
22805
|
+
l > 0 && (s === "form" ? ie(() => {
|
|
22805
22806
|
u(l - 1);
|
|
22806
22807
|
}) : u(l - 1));
|
|
22807
22808
|
}, J = () => {
|
|
22808
|
-
const se =
|
|
22809
|
-
l < se - 1 && (s === "form" ?
|
|
22809
|
+
const se = Y.length;
|
|
22810
|
+
l < se - 1 && (s === "form" ? ie(() => {
|
|
22810
22811
|
u(l + 1);
|
|
22811
22812
|
}) : u(l + 1));
|
|
22812
|
-
},
|
|
22813
|
-
const se =
|
|
22813
|
+
}, te = async () => {
|
|
22814
|
+
const se = Y[l].id, ue = (await ConnectionProvider.getHandler().readObjects({
|
|
22814
22815
|
model: V,
|
|
22815
22816
|
ids: [se],
|
|
22816
22817
|
fields: o.get("form").fields,
|
|
@@ -22818,7 +22819,7 @@ const One2manyInput = (e) => {
|
|
|
22818
22819
|
...m == null ? void 0 : m(),
|
|
22819
22820
|
...H
|
|
22820
22821
|
}
|
|
22821
|
-
}))[0],
|
|
22822
|
+
}))[0], ye = (await ConnectionProvider.getHandler().readObjects({
|
|
22822
22823
|
model: V,
|
|
22823
22824
|
ids: [se],
|
|
22824
22825
|
fields: o.get("tree").fields,
|
|
@@ -22826,18 +22827,18 @@ const One2manyInput = (e) => {
|
|
|
22826
22827
|
...m == null ? void 0 : m(),
|
|
22827
22828
|
...H
|
|
22828
22829
|
}
|
|
22829
|
-
}))[0],
|
|
22830
|
-
...
|
|
22830
|
+
}))[0], he = a.map((we) => we.id === se ? {
|
|
22831
|
+
...we,
|
|
22831
22832
|
operation: "original",
|
|
22832
|
-
values:
|
|
22833
|
-
treeValues:
|
|
22834
|
-
} :
|
|
22835
|
-
X(
|
|
22836
|
-
},
|
|
22833
|
+
values: ue,
|
|
22834
|
+
treeValues: ye
|
|
22835
|
+
} : we);
|
|
22836
|
+
X(he);
|
|
22837
|
+
}, ie = (se) => {
|
|
22837
22838
|
C ? showDialog$6({
|
|
22838
22839
|
lang: x,
|
|
22839
22840
|
onOk: () => {
|
|
22840
|
-
|
|
22841
|
+
te(), se(), y(!1);
|
|
22841
22842
|
}
|
|
22842
22843
|
}) : se();
|
|
22843
22844
|
}, le = () => {
|
|
@@ -22845,7 +22846,7 @@ const One2manyInput = (e) => {
|
|
|
22845
22846
|
showDialog$1({
|
|
22846
22847
|
lang: x,
|
|
22847
22848
|
onOk: () => {
|
|
22848
|
-
s === "form" ?
|
|
22849
|
+
s === "form" ? pe() : ne();
|
|
22849
22850
|
}
|
|
22850
22851
|
});
|
|
22851
22852
|
return;
|
|
@@ -22853,185 +22854,185 @@ const One2manyInput = (e) => {
|
|
|
22853
22854
|
showDialog$2({
|
|
22854
22855
|
lang: x,
|
|
22855
22856
|
onOk: () => {
|
|
22856
|
-
s === "form" ?
|
|
22857
|
+
s === "form" ? pe() : ne();
|
|
22857
22858
|
}
|
|
22858
22859
|
});
|
|
22859
22860
|
}, ae = async () => {
|
|
22860
22861
|
const {
|
|
22861
22862
|
inv_field: se
|
|
22862
22863
|
} = r;
|
|
22863
|
-
let
|
|
22864
|
-
se && f && (
|
|
22864
|
+
let ue;
|
|
22865
|
+
se && f && (ue = {
|
|
22865
22866
|
[se]: f
|
|
22866
|
-
}), s === "form" ?
|
|
22867
|
+
}), s === "form" ? ie(() => {
|
|
22867
22868
|
B(!0), M({
|
|
22868
|
-
defaultValues:
|
|
22869
|
+
defaultValues: ue
|
|
22869
22870
|
}), T(!0);
|
|
22870
22871
|
}) : (B(!0), M({
|
|
22871
|
-
defaultValues:
|
|
22872
|
+
defaultValues: ue
|
|
22872
22873
|
}), T(!0));
|
|
22873
|
-
},
|
|
22874
|
-
s === "form" ?
|
|
22874
|
+
}, Oe = async () => {
|
|
22875
|
+
s === "form" ? ie(() => {
|
|
22875
22876
|
$(!0);
|
|
22876
22877
|
}) : $(!0);
|
|
22877
|
-
},
|
|
22878
|
+
}, pe = async () => {
|
|
22878
22879
|
b(!0), y(!1), w(void 0);
|
|
22879
22880
|
try {
|
|
22880
|
-
if (
|
|
22881
|
-
const se = a.map((
|
|
22882
|
-
...
|
|
22881
|
+
if (Y[l].id > 0) {
|
|
22882
|
+
const se = a.map((ue) => ue.id === Y[l].id ? {
|
|
22883
|
+
...ue,
|
|
22883
22884
|
operation: "pendingRemove"
|
|
22884
|
-
} :
|
|
22885
|
+
} : ue);
|
|
22885
22886
|
X(se);
|
|
22886
22887
|
} else
|
|
22887
|
-
X(a.filter((se) => se.id !==
|
|
22888
|
+
X(a.filter((se) => se.id !== Y[l].id));
|
|
22888
22889
|
} catch (se) {
|
|
22889
22890
|
w(se);
|
|
22890
22891
|
}
|
|
22891
22892
|
u(0), b(!1);
|
|
22892
|
-
},
|
|
22893
|
-
const se =
|
|
22893
|
+
}, ne = async () => {
|
|
22894
|
+
const se = Y.filter((ue) => L.includes(ue.id));
|
|
22894
22895
|
b(!0), y(!1), w(void 0);
|
|
22895
22896
|
try {
|
|
22896
|
-
const
|
|
22897
|
-
...
|
|
22897
|
+
const ue = se.map((he) => he.id), ye = a.filter((he) => !(ue.includes(he.id) && he.id < 0)).map((he) => ue.includes(he.id) ? {
|
|
22898
|
+
...he,
|
|
22898
22899
|
operation: "pendingRemove"
|
|
22899
|
-
} :
|
|
22900
|
-
X(
|
|
22901
|
-
} catch (
|
|
22902
|
-
w(
|
|
22900
|
+
} : he);
|
|
22901
|
+
X(ye);
|
|
22902
|
+
} catch (ue) {
|
|
22903
|
+
w(ue);
|
|
22903
22904
|
}
|
|
22904
22905
|
u(0), b(!1);
|
|
22905
|
-
},
|
|
22906
|
-
let
|
|
22906
|
+
}, ge = (se, ue, ye) => {
|
|
22907
|
+
let he;
|
|
22907
22908
|
if (se)
|
|
22908
|
-
|
|
22909
|
+
he = a.map((we) => we.id === se ? {
|
|
22909
22910
|
id: se,
|
|
22910
22911
|
operation: se > 0 ? "pendingUpdate" : "pendingCreate",
|
|
22911
22912
|
values: {
|
|
22912
|
-
...
|
|
22913
|
+
...ye,
|
|
22913
22914
|
id: se
|
|
22914
22915
|
},
|
|
22915
22916
|
treeValues: {
|
|
22916
|
-
...
|
|
22917
|
+
...ye,
|
|
22917
22918
|
id: se
|
|
22918
22919
|
}
|
|
22919
|
-
} :
|
|
22920
|
+
} : we);
|
|
22920
22921
|
else {
|
|
22921
|
-
const
|
|
22922
|
-
|
|
22923
|
-
id:
|
|
22922
|
+
const we = getNextPendingId(a);
|
|
22923
|
+
he = a.concat({
|
|
22924
|
+
id: we,
|
|
22924
22925
|
operation: "pendingCreate",
|
|
22925
22926
|
values: {
|
|
22926
|
-
...
|
|
22927
|
-
id:
|
|
22927
|
+
...ye,
|
|
22928
|
+
id: we
|
|
22928
22929
|
},
|
|
22929
22930
|
treeValues: {
|
|
22930
|
-
...
|
|
22931
|
-
id:
|
|
22931
|
+
...ye,
|
|
22932
|
+
id: we
|
|
22932
22933
|
}
|
|
22933
22934
|
});
|
|
22934
22935
|
}
|
|
22935
|
-
X(
|
|
22936
|
-
},
|
|
22936
|
+
X(he), N || T(!1);
|
|
22937
|
+
}, de = (se) => {
|
|
22937
22938
|
const {
|
|
22938
|
-
id:
|
|
22939
|
+
id: ue
|
|
22939
22940
|
} = se;
|
|
22940
|
-
M(a.find((
|
|
22941
|
-
},
|
|
22941
|
+
M(a.find((ye) => ye.id === ue)), B(!1), T(!0);
|
|
22942
|
+
}, Ie = async (se) => {
|
|
22942
22943
|
b(!0);
|
|
22943
|
-
let
|
|
22944
|
-
const
|
|
22944
|
+
let ue = a;
|
|
22945
|
+
const ye = se.filter((he) => !a.find((we) => we.id === he));
|
|
22945
22946
|
try {
|
|
22946
|
-
for (const
|
|
22947
|
-
const
|
|
22947
|
+
for (const he of ye) {
|
|
22948
|
+
const we = (await ConnectionProvider.getHandler().readObjects({
|
|
22948
22949
|
model: V,
|
|
22949
|
-
ids: [
|
|
22950
|
+
ids: [he],
|
|
22950
22951
|
fields: o.get("form").fields,
|
|
22951
22952
|
context: {
|
|
22952
22953
|
...m == null ? void 0 : m(),
|
|
22953
22954
|
...H
|
|
22954
22955
|
}
|
|
22955
|
-
}))[0],
|
|
22956
|
+
}))[0], _e = (await ConnectionProvider.getHandler().readObjects({
|
|
22956
22957
|
model: V,
|
|
22957
|
-
ids: [
|
|
22958
|
+
ids: [he],
|
|
22958
22959
|
fields: o.get("tree").fields,
|
|
22959
22960
|
context: {
|
|
22960
22961
|
...m == null ? void 0 : m(),
|
|
22961
22962
|
...H
|
|
22962
22963
|
}
|
|
22963
22964
|
}))[0];
|
|
22964
|
-
|
|
22965
|
-
id:
|
|
22965
|
+
ue.push({
|
|
22966
|
+
id: he,
|
|
22966
22967
|
operation: "pendingLink",
|
|
22967
|
-
values:
|
|
22968
|
-
treeValues:
|
|
22968
|
+
values: we,
|
|
22969
|
+
treeValues: _e
|
|
22969
22970
|
});
|
|
22970
22971
|
}
|
|
22971
|
-
X(
|
|
22972
|
-
} catch (
|
|
22973
|
-
w(
|
|
22972
|
+
X(ue);
|
|
22973
|
+
} catch (he) {
|
|
22974
|
+
w(he);
|
|
22974
22975
|
} finally {
|
|
22975
22976
|
b(!1);
|
|
22976
22977
|
}
|
|
22977
22978
|
};
|
|
22978
|
-
function
|
|
22979
|
+
function me() {
|
|
22979
22980
|
const se = ViewObjects[s];
|
|
22980
22981
|
if (s === "graph")
|
|
22981
22982
|
return parseGraph(o.get("graph").arch).string;
|
|
22982
22983
|
{
|
|
22983
|
-
const
|
|
22984
|
-
return
|
|
22984
|
+
const ue = new se(o.get(s).fields);
|
|
22985
|
+
return ue.parse(o.get(s).arch), ue.string;
|
|
22985
22986
|
}
|
|
22986
22987
|
}
|
|
22987
22988
|
const ve = () => {
|
|
22988
|
-
var
|
|
22989
|
+
var ue, ye, he, we;
|
|
22989
22990
|
if (s === "form")
|
|
22990
|
-
return
|
|
22991
|
+
return Y.length === 0 ? g("noCurrentEntries") : /* @__PURE__ */ jsx(Form$1, {
|
|
22991
22992
|
formView: o.get("form"),
|
|
22992
|
-
values: (
|
|
22993
|
+
values: (ue = Y[l]) == null ? void 0 : ue.values,
|
|
22993
22994
|
parentContext: {
|
|
22994
22995
|
...m == null ? void 0 : m(),
|
|
22995
22996
|
...H
|
|
22996
22997
|
},
|
|
22997
22998
|
ref: I,
|
|
22998
22999
|
model: V,
|
|
22999
|
-
id: (
|
|
23000
|
+
id: (ye = Y[l]) == null ? void 0 : ye.id,
|
|
23000
23001
|
submitMode: "values",
|
|
23001
|
-
onFieldsChange: (
|
|
23002
|
-
var
|
|
23003
|
-
const
|
|
23004
|
-
...
|
|
23005
|
-
operation:
|
|
23002
|
+
onFieldsChange: (_e) => {
|
|
23003
|
+
var Ce;
|
|
23004
|
+
const Re = (Ce = Y[l]) == null ? void 0 : Ce.id, Ee = a.map((Te) => Te.id === Re ? {
|
|
23005
|
+
...Te,
|
|
23006
|
+
operation: Te.operation === "original" ? "pendingUpdate" : Te.operation,
|
|
23006
23007
|
values: {
|
|
23007
|
-
...
|
|
23008
|
-
id:
|
|
23008
|
+
..._e,
|
|
23009
|
+
id: Re
|
|
23009
23010
|
},
|
|
23010
23011
|
treeValues: {
|
|
23011
|
-
...
|
|
23012
|
-
id:
|
|
23012
|
+
..._e,
|
|
23013
|
+
id: Re
|
|
23013
23014
|
}
|
|
23014
|
-
} :
|
|
23015
|
-
X(
|
|
23015
|
+
} : Te);
|
|
23016
|
+
X(Ee), y(!0);
|
|
23016
23017
|
},
|
|
23017
|
-
readOnly:
|
|
23018
|
+
readOnly: K
|
|
23018
23019
|
});
|
|
23019
23020
|
const se = G ? sortResults({
|
|
23020
|
-
resultsToSort:
|
|
23021
|
+
resultsToSort: Y.map((_e) => _e.treeValues),
|
|
23021
23022
|
sorter: G,
|
|
23022
23023
|
fields: {
|
|
23023
23024
|
...o.get("tree").fields,
|
|
23024
|
-
...((
|
|
23025
|
+
...((he = o.get("form")) == null ? void 0 : he.fields) || {}
|
|
23025
23026
|
}
|
|
23026
|
-
}) :
|
|
23027
|
+
}) : Y.map((_e) => _e.treeValues);
|
|
23027
23028
|
if (s === "tree")
|
|
23028
23029
|
return /* @__PURE__ */ jsx(Tree, {
|
|
23029
|
-
total:
|
|
23030
|
-
limit:
|
|
23030
|
+
total: Y.length,
|
|
23031
|
+
limit: Y.length,
|
|
23031
23032
|
treeView: o.get("tree"),
|
|
23032
23033
|
results: se,
|
|
23033
23034
|
loading: O,
|
|
23034
|
-
onRowClicked: ((
|
|
23035
|
+
onRowClicked: ((we = o.get("form")) == null ? void 0 : we.fields) !== void 0 ? de : void 0,
|
|
23035
23036
|
showPagination: !1,
|
|
23036
23037
|
rowSelection: {
|
|
23037
23038
|
selectedRowKeys: L,
|
|
@@ -23041,11 +23042,11 @@ const One2manyInput = (e) => {
|
|
|
23041
23042
|
onChangeSort: z
|
|
23042
23043
|
});
|
|
23043
23044
|
if (s === "graph") {
|
|
23044
|
-
const
|
|
23045
|
+
const _e = [[`${r.inv_field}`, "=", f]];
|
|
23045
23046
|
return /* @__PURE__ */ jsx(Graph, {
|
|
23046
23047
|
view_id: o.get("graph").view_id,
|
|
23047
23048
|
model: r.relation,
|
|
23048
|
-
domain:
|
|
23049
|
+
domain: _e,
|
|
23049
23050
|
context: {
|
|
23050
23051
|
...m == null ? void 0 : m(),
|
|
23051
23052
|
...H
|
|
@@ -23061,24 +23062,24 @@ const One2manyInput = (e) => {
|
|
|
23061
23062
|
type: "error",
|
|
23062
23063
|
banner: !0
|
|
23063
23064
|
});
|
|
23064
|
-
const
|
|
23065
|
+
const be = N;
|
|
23065
23066
|
return O ? /* @__PURE__ */ jsx(Spin, {}) : /* @__PURE__ */ jsxs(Fragment, {
|
|
23066
23067
|
children: [/* @__PURE__ */ jsx(One2manyTopBar, {
|
|
23067
23068
|
mode: s,
|
|
23068
|
-
title:
|
|
23069
|
-
readOnly:
|
|
23069
|
+
title: me(),
|
|
23070
|
+
readOnly: K,
|
|
23070
23071
|
isMany2Many: A,
|
|
23071
23072
|
formHasChanges: C,
|
|
23072
|
-
totalItems:
|
|
23073
|
+
totalItems: Y.length,
|
|
23073
23074
|
currentItemIndex: l,
|
|
23074
23075
|
onDelete: le,
|
|
23075
23076
|
onCreateItem: ae,
|
|
23076
23077
|
onToggleViewMode: Q,
|
|
23077
|
-
onPreviousItem:
|
|
23078
|
+
onPreviousItem: ee,
|
|
23078
23079
|
onNextItem: J,
|
|
23079
|
-
onSearchItem:
|
|
23080
|
+
onSearchItem: Oe,
|
|
23080
23081
|
selectedRowKeys: L,
|
|
23081
|
-
showCreateButton: ((
|
|
23082
|
+
showCreateButton: ((Se = o.get("form")) == null ? void 0 : Se.fields) !== void 0,
|
|
23082
23083
|
showToggleButton: o.size > 1
|
|
23083
23084
|
}), ve(), /* @__PURE__ */ jsx(FormModal, {
|
|
23084
23085
|
formView: o.get("form"),
|
|
@@ -23088,7 +23089,7 @@ const One2manyInput = (e) => {
|
|
|
23088
23089
|
values: D == null ? void 0 : D.values,
|
|
23089
23090
|
defaultValues: D == null ? void 0 : D.defaultValues,
|
|
23090
23091
|
visible: S,
|
|
23091
|
-
onSubmitSucceed:
|
|
23092
|
+
onSubmitSucceed: ge,
|
|
23092
23093
|
parentContext: {
|
|
23093
23094
|
...m == null ? void 0 : m(),
|
|
23094
23095
|
...H
|
|
@@ -23096,8 +23097,8 @@ const One2manyInput = (e) => {
|
|
|
23096
23097
|
onCancel: () => {
|
|
23097
23098
|
B(!1), T(!1);
|
|
23098
23099
|
},
|
|
23099
|
-
readOnly:
|
|
23100
|
-
mustClearAfterSave:
|
|
23100
|
+
readOnly: K,
|
|
23101
|
+
mustClearAfterSave: be
|
|
23101
23102
|
}), /* @__PURE__ */ jsx(SearchModal, {
|
|
23102
23103
|
domain: U.current,
|
|
23103
23104
|
model: V,
|
|
@@ -23107,7 +23108,7 @@ const One2manyInput = (e) => {
|
|
|
23107
23108
|
},
|
|
23108
23109
|
visible: k,
|
|
23109
23110
|
onSelectValues: async (se) => {
|
|
23110
|
-
$(!1),
|
|
23111
|
+
$(!1), Ie(se);
|
|
23111
23112
|
},
|
|
23112
23113
|
onCloseModal: () => {
|
|
23113
23114
|
$(!1);
|
|
@@ -26656,7 +26657,7 @@ function FormActionBar({
|
|
|
26656
26657
|
h == null || h(!1);
|
|
26657
26658
|
}
|
|
26658
26659
|
}
|
|
26659
|
-
async function
|
|
26660
|
+
async function K() {
|
|
26660
26661
|
try {
|
|
26661
26662
|
x == null || x(!0);
|
|
26662
26663
|
const P = await ConnectionProvider.getHandler().duplicate({
|
|
@@ -26700,7 +26701,7 @@ function FormActionBar({
|
|
|
26700
26701
|
tooltip: S("duplicate"),
|
|
26701
26702
|
disabled: a || s || c === void 0 || v || I,
|
|
26702
26703
|
loading: v,
|
|
26703
|
-
onClick:
|
|
26704
|
+
onClick: K
|
|
26704
26705
|
}), /* @__PURE__ */ jsx(ActionButton, {
|
|
26705
26706
|
icon: /* @__PURE__ */ jsx(DeleteOutlined, {}),
|
|
26706
26707
|
tooltip: S("delete"),
|
|
@@ -27999,133 +28000,133 @@ function ActionView(e, t) {
|
|
|
27999
28000
|
action_type: m,
|
|
28000
28001
|
treeExpandable: v = !1,
|
|
28001
28002
|
limit: x
|
|
28002
|
-
} = e, [g, I] = useState(), [C, y] = useState([]), [O, b] = useState(!0), E = p || void 0, [w, S] = useState(E), [T, k] = useState([]), [$, D] = useState(), [M, L] = useState([]), [q, N] = useState(), [B, U] = useState(0), [G, z] = useState(!1), [W,
|
|
28003
|
+
} = e, [g, I] = useState(), [C, y] = useState([]), [O, b] = useState(!0), E = p || void 0, [w, S] = useState(E), [T, k] = useState([]), [$, D] = useState(), [M, L] = useState([]), [q, N] = useState(), [B, U] = useState(0), [G, z] = useState(!1), [W, K] = useState(!1), [V, H] = useState(), {
|
|
28003
28004
|
t: P
|
|
28004
|
-
} = useContext(LocaleContext), A = useRef(), j = useRef(),
|
|
28005
|
+
} = useContext(LocaleContext), A = useRef(), j = useRef(), Y = useContext(TabManagerContext), {
|
|
28005
28006
|
setCurrentView: X,
|
|
28006
28007
|
setCurrentId: F,
|
|
28007
28008
|
tabs: _,
|
|
28008
|
-
activeKey:
|
|
28009
|
+
activeKey: Z,
|
|
28009
28010
|
openAction: Q
|
|
28010
|
-
} =
|
|
28011
|
-
useHotkeys("ctrl+g,command+g", (
|
|
28012
|
-
|
|
28013
|
-
}, [
|
|
28014
|
-
function ne
|
|
28015
|
-
S(
|
|
28011
|
+
} = Y || {};
|
|
28012
|
+
useHotkeys("ctrl+g,command+g", (ne) => {
|
|
28013
|
+
ne.preventDefault(), le();
|
|
28014
|
+
}, [Z, _, g, $, M]);
|
|
28015
|
+
function ee(ne) {
|
|
28016
|
+
S(ne), F == null || F(ne);
|
|
28016
28017
|
}
|
|
28017
|
-
function J(
|
|
28018
|
-
I(
|
|
28018
|
+
function J(ne) {
|
|
28019
|
+
I(ne), X == null || X(ne);
|
|
28019
28020
|
}
|
|
28020
28021
|
useImperativeHandle(t, () => ({
|
|
28021
|
-
canWeClose:
|
|
28022
|
+
canWeClose: ie
|
|
28022
28023
|
}));
|
|
28023
|
-
const
|
|
28024
|
+
const te = async () => {
|
|
28024
28025
|
b(!0);
|
|
28025
|
-
const
|
|
28026
|
-
for (const
|
|
28027
|
-
const [
|
|
28026
|
+
const ne = [];
|
|
28027
|
+
for (const de of a) {
|
|
28028
|
+
const [Ie, me] = de;
|
|
28028
28029
|
let ve;
|
|
28029
28030
|
try {
|
|
28030
|
-
|
|
28031
|
+
me !== "dashboard" && (ve = await ConnectionProvider.getHandler().getView({
|
|
28031
28032
|
model: r,
|
|
28032
|
-
type:
|
|
28033
|
-
id:
|
|
28033
|
+
type: me,
|
|
28034
|
+
id: Ie,
|
|
28034
28035
|
context: o
|
|
28035
28036
|
}));
|
|
28036
|
-
} catch (
|
|
28037
|
-
console.error(`${r} - ${
|
|
28037
|
+
} catch (be) {
|
|
28038
|
+
console.error(`${r} - ${me}\xA0- ${JSON.stringify(be, null, 2)}`);
|
|
28038
28039
|
continue;
|
|
28039
28040
|
}
|
|
28040
|
-
switch (
|
|
28041
|
+
switch (me) {
|
|
28041
28042
|
case "dashboard": {
|
|
28042
|
-
const
|
|
28043
|
-
const [,
|
|
28044
|
-
return
|
|
28043
|
+
const be = a.find((se) => {
|
|
28044
|
+
const [, ue] = se;
|
|
28045
|
+
return ue === "form";
|
|
28045
28046
|
});
|
|
28046
|
-
let
|
|
28047
|
-
|
|
28047
|
+
let Se;
|
|
28048
|
+
be && (Se = {
|
|
28048
28049
|
action_id: h,
|
|
28049
28050
|
action_type: m,
|
|
28050
28051
|
name: s,
|
|
28051
28052
|
res_id: o.active_id,
|
|
28052
28053
|
res_model: r,
|
|
28053
|
-
view_id:
|
|
28054
|
-
view_type:
|
|
28055
|
-
}),
|
|
28054
|
+
view_id: be[0],
|
|
28055
|
+
view_type: be[1]
|
|
28056
|
+
}), ne.push({
|
|
28056
28057
|
type: "dashboard",
|
|
28057
28058
|
id: o.active_id,
|
|
28058
28059
|
model: r,
|
|
28059
28060
|
context: o,
|
|
28060
|
-
configAction:
|
|
28061
|
+
configAction: Se
|
|
28061
28062
|
});
|
|
28062
28063
|
break;
|
|
28063
28064
|
}
|
|
28064
28065
|
case "form": {
|
|
28065
|
-
|
|
28066
|
+
ne.push({
|
|
28066
28067
|
...ve,
|
|
28067
|
-
type:
|
|
28068
|
+
type: me
|
|
28068
28069
|
});
|
|
28069
28070
|
break;
|
|
28070
28071
|
}
|
|
28071
28072
|
case "tree": {
|
|
28072
|
-
|
|
28073
|
+
ne.push({
|
|
28073
28074
|
...ve,
|
|
28074
28075
|
isExpandable: v,
|
|
28075
|
-
type:
|
|
28076
|
+
type: me
|
|
28076
28077
|
});
|
|
28077
28078
|
break;
|
|
28078
28079
|
}
|
|
28079
28080
|
case "graph": {
|
|
28080
|
-
|
|
28081
|
+
ne.push({
|
|
28081
28082
|
...ve,
|
|
28082
|
-
type:
|
|
28083
|
+
type: me
|
|
28083
28084
|
});
|
|
28084
28085
|
break;
|
|
28085
28086
|
}
|
|
28086
28087
|
}
|
|
28087
28088
|
}
|
|
28088
|
-
let
|
|
28089
|
-
!u &&
|
|
28090
|
-
Please, make sure the view ids on the fields_view_get responses are the same as the ones defined in the action`), J(
|
|
28089
|
+
let ge;
|
|
28090
|
+
!u && ne.find((de) => de.type === "tree") ? ge = ne.find((Ie) => Ie.type === "tree") : u ? ge = ne.find((Ie) => u.id ? Ie.type === u.type && Ie.view_id === u.id : Ie.type === u.type) : ge = ne.find((Ie) => Ie.type === "form"), ge || showDialog$8(`Error determining the first view to show.
|
|
28091
|
+
Please, make sure the view ids on the fields_view_get responses are the same as the ones defined in the action`), J(ge), y(ne), b(!1);
|
|
28091
28092
|
};
|
|
28092
28093
|
c({
|
|
28093
28094
|
tabKey: l,
|
|
28094
|
-
canWeClose:
|
|
28095
|
+
canWeClose: ie
|
|
28095
28096
|
}), useEffect(() => {
|
|
28096
|
-
const
|
|
28097
|
-
J(
|
|
28097
|
+
const ne = C.find((de) => de.type === "tree"), ge = C.find((de) => u.id ? de.type === u.type && de.view_id === u.id : de.type === u.type);
|
|
28098
|
+
J(ge || ne), p ? F == null || F(E) : (ee(void 0), D(void 0)), te();
|
|
28098
28099
|
}, [r, a, p]), useEffect(() => {
|
|
28099
|
-
|
|
28100
|
-
}, [_,
|
|
28101
|
-
async function
|
|
28100
|
+
Z === l && (F == null || F(w), X == null || X(g));
|
|
28101
|
+
}, [_, Z]);
|
|
28102
|
+
async function ie() {
|
|
28102
28103
|
return g.type === "form" ? await A.current.cancelUnsavedChanges() : !0;
|
|
28103
28104
|
}
|
|
28104
28105
|
async function le() {
|
|
28105
|
-
|
|
28106
|
-
}
|
|
28107
|
-
async function ae(
|
|
28108
|
-
var
|
|
28109
|
-
|
|
28110
|
-
const
|
|
28111
|
-
let
|
|
28112
|
-
if (
|
|
28106
|
+
Z === l && (g.type === "form" && !await A.current.cancelUnsavedChanges() || z(!0));
|
|
28107
|
+
}
|
|
28108
|
+
async function ae(ne) {
|
|
28109
|
+
var me;
|
|
28110
|
+
K(!0);
|
|
28111
|
+
const ge = M.findIndex((ve) => ve.id === ne);
|
|
28112
|
+
let de;
|
|
28113
|
+
if (ge === -1) {
|
|
28113
28114
|
try {
|
|
28114
|
-
|
|
28115
|
+
de = (me = await ConnectionProvider.getHandler().readObjects({
|
|
28115
28116
|
model: r,
|
|
28116
|
-
ids: [
|
|
28117
|
+
ids: [ne],
|
|
28117
28118
|
context: o
|
|
28118
|
-
})) == null ? void 0 :
|
|
28119
|
+
})) == null ? void 0 : me[0];
|
|
28119
28120
|
} catch {
|
|
28120
28121
|
}
|
|
28121
|
-
if (!
|
|
28122
|
-
|
|
28122
|
+
if (!de) {
|
|
28123
|
+
K(!1), z(!1), showDialog$7(P("idNotFound"));
|
|
28123
28124
|
return;
|
|
28124
28125
|
}
|
|
28125
28126
|
} else
|
|
28126
|
-
|
|
28127
|
-
|
|
28128
|
-
const
|
|
28127
|
+
de = M[ge];
|
|
28128
|
+
K(!1), z(!1);
|
|
28129
|
+
const Ie = a.find((ve) => ve[1] === "form");
|
|
28129
28130
|
Q({
|
|
28130
28131
|
domain: [],
|
|
28131
28132
|
context: o,
|
|
@@ -28134,23 +28135,23 @@ Please, make sure the view ids on the fields_view_get responses are the same as
|
|
|
28134
28135
|
title: s,
|
|
28135
28136
|
target: "current",
|
|
28136
28137
|
initialView: {
|
|
28137
|
-
id:
|
|
28138
|
+
id: Ie == null ? void 0 : Ie[0],
|
|
28138
28139
|
type: "form"
|
|
28139
28140
|
},
|
|
28140
28141
|
action_id: h,
|
|
28141
28142
|
action_type: m,
|
|
28142
|
-
res_id:
|
|
28143
|
+
res_id: ne
|
|
28143
28144
|
});
|
|
28144
28145
|
}
|
|
28145
|
-
function
|
|
28146
|
-
return C.map((
|
|
28147
|
-
switch (
|
|
28146
|
+
function Oe() {
|
|
28147
|
+
return C.map((ne) => {
|
|
28148
|
+
switch (ne.type) {
|
|
28148
28149
|
case "form":
|
|
28149
28150
|
return /* @__PURE__ */ jsx(FormActionView, {
|
|
28150
28151
|
formRef: A,
|
|
28151
28152
|
currentId: w,
|
|
28152
|
-
visible: g.type ===
|
|
28153
|
-
formView:
|
|
28153
|
+
visible: g.type === ne.type && g.view_id === ne.view_id,
|
|
28154
|
+
formView: ne,
|
|
28154
28155
|
model: r,
|
|
28155
28156
|
context: o,
|
|
28156
28157
|
domain: n,
|
|
@@ -28159,48 +28160,48 @@ Please, make sure the view ids on the fields_view_get responses are the same as
|
|
|
28159
28160
|
results: M,
|
|
28160
28161
|
setResults: L,
|
|
28161
28162
|
setCurrentItemIndex: D
|
|
28162
|
-
}, `${
|
|
28163
|
+
}, `${ne.type}-${ne.view_id}`);
|
|
28163
28164
|
case "tree":
|
|
28164
28165
|
return /* @__PURE__ */ jsx(TreeActionView, {
|
|
28165
|
-
visible: g.type ===
|
|
28166
|
+
visible: g.type === ne.type && g.view_id === ne.view_id,
|
|
28166
28167
|
limit: x,
|
|
28167
28168
|
model: r,
|
|
28168
28169
|
context: o,
|
|
28169
28170
|
domain: n,
|
|
28170
|
-
formView: C.find((
|
|
28171
|
-
treeView:
|
|
28171
|
+
formView: C.find((ge) => ge.type === "form"),
|
|
28172
|
+
treeView: ne,
|
|
28172
28173
|
searchTreeRef: j,
|
|
28173
28174
|
searchTreeNameSearch: V,
|
|
28174
28175
|
availableViews: C,
|
|
28175
28176
|
results: M,
|
|
28176
28177
|
setCurrentItemIndex: D,
|
|
28177
|
-
setCurrentId:
|
|
28178
|
+
setCurrentId: ee,
|
|
28178
28179
|
setCurrentView: J
|
|
28179
|
-
}, `${
|
|
28180
|
+
}, `${ne.type}-${ne.view_id}`);
|
|
28180
28181
|
case "graph":
|
|
28181
28182
|
return /* @__PURE__ */ jsx(GraphActionView, {
|
|
28182
|
-
visible: g.type ===
|
|
28183
|
-
viewData:
|
|
28183
|
+
visible: g.type === ne.type && g.view_id === ne.view_id,
|
|
28184
|
+
viewData: ne,
|
|
28184
28185
|
model: r,
|
|
28185
28186
|
context: o,
|
|
28186
28187
|
domain: n,
|
|
28187
|
-
treeView: C.find((
|
|
28188
|
-
formView: C.find((
|
|
28189
|
-
}, `${
|
|
28188
|
+
treeView: C.find((ge) => ge.type === "tree"),
|
|
28189
|
+
formView: C.find((ge) => ge.type === "form")
|
|
28190
|
+
}, `${ne.type}-${ne.view_id}`);
|
|
28190
28191
|
case "dashboard":
|
|
28191
28192
|
return /* @__PURE__ */ jsx(DashboardActionView, {
|
|
28192
|
-
dashboardData:
|
|
28193
|
-
}, `${
|
|
28193
|
+
dashboardData: ne
|
|
28194
|
+
}, `${ne.type}-${ne.view_id}`);
|
|
28194
28195
|
}
|
|
28195
28196
|
});
|
|
28196
28197
|
}
|
|
28197
|
-
function
|
|
28198
|
+
function pe() {
|
|
28198
28199
|
if (w === void 0 && g.type === "form")
|
|
28199
28200
|
A.current.clearAndReload();
|
|
28200
28201
|
else {
|
|
28201
|
-
|
|
28202
|
-
const
|
|
28203
|
-
J(
|
|
28202
|
+
ee(void 0);
|
|
28203
|
+
const ne = C.find((ge) => ge.type === "form");
|
|
28204
|
+
J(ne);
|
|
28204
28205
|
}
|
|
28205
28206
|
}
|
|
28206
28207
|
return O ? /* @__PURE__ */ jsx(Spin, {}) : g ? /* @__PURE__ */ jsxs(ActionViewProvider, {
|
|
@@ -28210,9 +28211,9 @@ Please, make sure the view ids on the fields_view_get responses are the same as
|
|
|
28210
28211
|
availableViews: C,
|
|
28211
28212
|
formRef: A,
|
|
28212
28213
|
searchTreeRef: j,
|
|
28213
|
-
onNewClicked:
|
|
28214
|
+
onNewClicked: pe,
|
|
28214
28215
|
currentId: w,
|
|
28215
|
-
setCurrentId:
|
|
28216
|
+
setCurrentId: ee,
|
|
28216
28217
|
setCurrentItemIndex: D,
|
|
28217
28218
|
currentItemIndex: $,
|
|
28218
28219
|
results: M,
|
|
@@ -28228,7 +28229,7 @@ Please, make sure the view ids on the fields_view_get responses are the same as
|
|
|
28228
28229
|
searchTreeNameSearch: V,
|
|
28229
28230
|
goToResourceId: ae,
|
|
28230
28231
|
limit: x,
|
|
28231
|
-
children: [
|
|
28232
|
+
children: [Oe(), /* @__PURE__ */ jsx(GoToResourceModal, {
|
|
28232
28233
|
visible: G,
|
|
28233
28234
|
onIdSubmitted: ae,
|
|
28234
28235
|
isSearching: W,
|
|
@@ -28427,14 +28428,14 @@ function DashboardTree(e) {
|
|
|
28427
28428
|
domain: a = [],
|
|
28428
28429
|
visible: s = !0,
|
|
28429
28430
|
parentContext: c = {}
|
|
28430
|
-
} = e, [l, u] = useState(!1), [d, f] = useState(!1), [p, h] = useState(), [m, v] = useState(), [x, g] = useState(), [I, C] = useState(1), [y, O] = useState(0), b = useRef(DEFAULT_SEARCH_LIMIT), E = useRef([]), [w, S] = useState(0), [T, k] = useState([]), [$, D] = useState(void 0), [M, L] = useState(), [q, N] = useState(), [B, U] = useState(), [G, z] = useState(!1), W = useRef([]),
|
|
28431
|
+
} = e, [l, u] = useState(!1), [d, f] = useState(!1), [p, h] = useState(), [m, v] = useState(), [x, g] = useState(), [I, C] = useState(1), [y, O] = useState(0), b = useRef(DEFAULT_SEARCH_LIMIT), E = useRef([]), [w, S] = useState(0), [T, k] = useState([]), [$, D] = useState(void 0), [M, L] = useState(), [q, N] = useState(), [B, U] = useState(), [G, z] = useState(!1), W = useRef([]), K = (F) => {
|
|
28431
28432
|
z(!0), C(F), O((F - 1) * b.current);
|
|
28432
28433
|
}, V = async () => {
|
|
28433
28434
|
const F = W.current.length > 0 ? W.current : a, _ = mergeParams(E.current, F), {
|
|
28434
|
-
colors:
|
|
28435
|
+
colors: Z
|
|
28435
28436
|
} = getTree(m), {
|
|
28436
28437
|
totalItems: Q,
|
|
28437
|
-
results:
|
|
28438
|
+
results: ee,
|
|
28438
28439
|
attrsEvaluated: J
|
|
28439
28440
|
} = await ConnectionProvider.getHandler().searchForTree({
|
|
28440
28441
|
params: _,
|
|
@@ -28443,20 +28444,20 @@ function DashboardTree(e) {
|
|
|
28443
28444
|
model: p,
|
|
28444
28445
|
fields: m.fields,
|
|
28445
28446
|
context: c,
|
|
28446
|
-
attrs:
|
|
28447
|
-
colors:
|
|
28447
|
+
attrs: Z && {
|
|
28448
|
+
colors: Z
|
|
28448
28449
|
}
|
|
28449
|
-
}),
|
|
28450
|
-
S(
|
|
28451
|
-
const
|
|
28452
|
-
resultsToSort:
|
|
28450
|
+
}), te = await Q;
|
|
28451
|
+
S(te), D(getColorMap(J));
|
|
28452
|
+
const ie = sortResults({
|
|
28453
|
+
resultsToSort: ee,
|
|
28453
28454
|
sorter: M,
|
|
28454
28455
|
fields: {
|
|
28455
28456
|
...m.fields,
|
|
28456
28457
|
...x.fields
|
|
28457
28458
|
}
|
|
28458
28459
|
});
|
|
28459
|
-
k(
|
|
28460
|
+
k(ie);
|
|
28460
28461
|
}, H = async () => {
|
|
28461
28462
|
try {
|
|
28462
28463
|
z(!0), await V();
|
|
@@ -28503,7 +28504,7 @@ function DashboardTree(e) {
|
|
|
28503
28504
|
useEffect(() => {
|
|
28504
28505
|
t ? P("action") : n && P("model");
|
|
28505
28506
|
}, [t, n]);
|
|
28506
|
-
const
|
|
28507
|
+
const Y = (F) => {
|
|
28507
28508
|
const {
|
|
28508
28509
|
id: _
|
|
28509
28510
|
} = F;
|
|
@@ -28528,9 +28529,9 @@ function DashboardTree(e) {
|
|
|
28528
28529
|
page: I,
|
|
28529
28530
|
treeView: m,
|
|
28530
28531
|
results: T,
|
|
28531
|
-
onRequestPageChange:
|
|
28532
|
+
onRequestPageChange: K,
|
|
28532
28533
|
loading: G,
|
|
28533
|
-
onRowClicked:
|
|
28534
|
+
onRowClicked: Y,
|
|
28534
28535
|
colorsForResults: $,
|
|
28535
28536
|
sorter: M,
|
|
28536
28537
|
onChangeSort: (F) => {
|
|
@@ -28743,7 +28744,7 @@ function Dashboard(e, t) {
|
|
|
28743
28744
|
context: G,
|
|
28744
28745
|
domain: z,
|
|
28745
28746
|
initialView: W,
|
|
28746
|
-
limit:
|
|
28747
|
+
limit: K
|
|
28747
28748
|
} = T;
|
|
28748
28749
|
let V = {};
|
|
28749
28750
|
try {
|
|
@@ -28763,7 +28764,7 @@ function Dashboard(e, t) {
|
|
|
28763
28764
|
model: U,
|
|
28764
28765
|
context: G,
|
|
28765
28766
|
domain: z,
|
|
28766
|
-
limit:
|
|
28767
|
+
limit: K
|
|
28767
28768
|
});
|
|
28768
28769
|
else if ((W == null ? void 0 : W.type) === "form")
|
|
28769
28770
|
H = /* @__PURE__ */ jsx(DashboardForm, {
|
|
@@ -28776,22 +28777,22 @@ function Dashboard(e, t) {
|
|
|
28776
28777
|
domain: z,
|
|
28777
28778
|
view_id: B.filter((j) => j[1] === "tree")[0][0],
|
|
28778
28779
|
onRowClicked: (j) => {
|
|
28779
|
-
const
|
|
28780
|
+
const Y = B.find((X) => {
|
|
28780
28781
|
const [, F] = X;
|
|
28781
28782
|
return F === "form";
|
|
28782
28783
|
});
|
|
28783
|
-
if (
|
|
28784
|
-
const [X, F] =
|
|
28784
|
+
if (Y) {
|
|
28785
|
+
const [X, F] = Y, {
|
|
28785
28786
|
actionId: _,
|
|
28786
|
-
actionType:
|
|
28787
|
+
actionType: Z,
|
|
28787
28788
|
title: Q,
|
|
28788
|
-
model:
|
|
28789
|
+
model: ee
|
|
28789
28790
|
} = T, J = {
|
|
28790
28791
|
action_id: _,
|
|
28791
|
-
action_type:
|
|
28792
|
+
action_type: Z,
|
|
28792
28793
|
name: Q,
|
|
28793
28794
|
res_id: j.id,
|
|
28794
|
-
res_model:
|
|
28795
|
+
res_model: ee,
|
|
28795
28796
|
view_id: X,
|
|
28796
28797
|
view_type: F
|
|
28797
28798
|
};
|
|
@@ -28816,29 +28817,29 @@ function Dashboard(e, t) {
|
|
|
28816
28817
|
setCanWeClose: () => {
|
|
28817
28818
|
},
|
|
28818
28819
|
initialView: j,
|
|
28819
|
-
limit:
|
|
28820
|
+
limit: K
|
|
28820
28821
|
});
|
|
28821
28822
|
}
|
|
28822
28823
|
let P;
|
|
28823
28824
|
const A = B.find((j) => {
|
|
28824
|
-
const [,
|
|
28825
|
-
return
|
|
28825
|
+
const [, Y] = j;
|
|
28826
|
+
return Y === "tree";
|
|
28826
28827
|
});
|
|
28827
28828
|
if (A) {
|
|
28828
|
-
const [j,
|
|
28829
|
+
const [j, Y] = A, {
|
|
28829
28830
|
actionId: X,
|
|
28830
28831
|
actionType: F,
|
|
28831
28832
|
title: _,
|
|
28832
|
-
model:
|
|
28833
|
+
model: Z
|
|
28833
28834
|
} = T;
|
|
28834
28835
|
P = {
|
|
28835
28836
|
action_id: X,
|
|
28836
28837
|
action_type: F,
|
|
28837
28838
|
name: _,
|
|
28838
28839
|
res_id: !1,
|
|
28839
|
-
res_model:
|
|
28840
|
+
res_model: Z,
|
|
28840
28841
|
view_id: j,
|
|
28841
|
-
view_type:
|
|
28842
|
+
view_type: Y
|
|
28842
28843
|
};
|
|
28843
28844
|
}
|
|
28844
28845
|
return /* @__PURE__ */ jsx(DashboardGridItem, {
|
|
@@ -29183,13 +29184,13 @@ function RootView(e, t) {
|
|
|
29183
29184
|
target: U,
|
|
29184
29185
|
view_type: G,
|
|
29185
29186
|
limit: z
|
|
29186
|
-
} = T, W = G === "tree",
|
|
29187
|
+
} = T, W = G === "tree", K = [];
|
|
29187
29188
|
for (const H of N) {
|
|
29188
29189
|
const [P, A] = H;
|
|
29189
29190
|
if (P)
|
|
29190
|
-
|
|
29191
|
+
K.push(H);
|
|
29191
29192
|
else if (A === "dashboard")
|
|
29192
|
-
|
|
29193
|
+
K.push([void 0, "dashboard"]);
|
|
29193
29194
|
else {
|
|
29194
29195
|
const {
|
|
29195
29196
|
view_id: j
|
|
@@ -29202,18 +29203,18 @@ function RootView(e, t) {
|
|
|
29202
29203
|
...M
|
|
29203
29204
|
}
|
|
29204
29205
|
});
|
|
29205
|
-
|
|
29206
|
+
K.push([j, A]);
|
|
29206
29207
|
}
|
|
29207
29208
|
}
|
|
29208
29209
|
let V;
|
|
29209
29210
|
if (E) {
|
|
29210
|
-
const [H, P] =
|
|
29211
|
+
const [H, P] = K.find(([A, j]) => j === E);
|
|
29211
29212
|
V = {
|
|
29212
29213
|
id: H,
|
|
29213
29214
|
type: P
|
|
29214
29215
|
};
|
|
29215
29216
|
} else {
|
|
29216
|
-
const [H, P] =
|
|
29217
|
+
const [H, P] = K[0];
|
|
29217
29218
|
V = {
|
|
29218
29219
|
id: H,
|
|
29219
29220
|
type: P
|
|
@@ -29226,7 +29227,7 @@ function RootView(e, t) {
|
|
|
29226
29227
|
...M
|
|
29227
29228
|
},
|
|
29228
29229
|
model: q,
|
|
29229
|
-
views:
|
|
29230
|
+
views: K,
|
|
29230
29231
|
title: B,
|
|
29231
29232
|
target: U,
|
|
29232
29233
|
initialView: V,
|
|
@@ -29365,7 +29366,7 @@ function RootView(e, t) {
|
|
|
29365
29366
|
z = void 0, W = V[1];
|
|
29366
29367
|
} else
|
|
29367
29368
|
[z, W] = G.find((V) => V[0] === void 0 ? !1 : V[0] === w);
|
|
29368
|
-
const
|
|
29369
|
+
const K = {
|
|
29369
29370
|
id: z,
|
|
29370
29371
|
type: W
|
|
29371
29372
|
};
|
|
@@ -29379,7 +29380,7 @@ function RootView(e, t) {
|
|
|
29379
29380
|
views: G,
|
|
29380
29381
|
title: L,
|
|
29381
29382
|
target: q,
|
|
29382
|
-
initialView:
|
|
29383
|
+
initialView: K,
|
|
29383
29384
|
action_id: O,
|
|
29384
29385
|
action_type: b,
|
|
29385
29386
|
res_id: E,
|