@gisce/react-ooui 1.2.0-rc.65 → 1.2.0-rc.67
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 +634 -591
- package/dist/react-ooui.es.js.map +1 -1
- package/dist/react-ooui.umd.js +11 -11
- package/dist/react-ooui.umd.js.map +1 -1
- package/dist/views/actionViews/GraphActionView.d.ts.map +1 -1
- package/dist/widgets/views/Graph/GraphDefaults.d.ts.map +1 -1
- package/package.json +1 -1
- package/src/views/actionViews/GraphActionView.tsx +1 -0
- package/src/widgets/views/Graph/GraphDefaults.ts +53 -0
package/dist/react-ooui.es.js
CHANGED
|
@@ -1303,8 +1303,8 @@ function requireReactIs_development() {
|
|
|
1303
1303
|
}
|
|
1304
1304
|
function b(T) {
|
|
1305
1305
|
if (typeof T == "object" && T !== null) {
|
|
1306
|
-
var
|
|
1307
|
-
switch (
|
|
1306
|
+
var Y = T.$$typeof;
|
|
1307
|
+
switch (Y) {
|
|
1308
1308
|
case t:
|
|
1309
1309
|
var Z = T.type;
|
|
1310
1310
|
switch (Z) {
|
|
@@ -1325,31 +1325,31 @@ function requireReactIs_development() {
|
|
|
1325
1325
|
case s:
|
|
1326
1326
|
return ee;
|
|
1327
1327
|
default:
|
|
1328
|
-
return
|
|
1328
|
+
return Y;
|
|
1329
1329
|
}
|
|
1330
1330
|
}
|
|
1331
1331
|
case r:
|
|
1332
|
-
return
|
|
1332
|
+
return Y;
|
|
1333
1333
|
}
|
|
1334
1334
|
}
|
|
1335
1335
|
}
|
|
1336
1336
|
var C = l, w = c, D = u, $ = s, S = t, P = d, k = n, M = m, O = g, N = r, A = o, I = a, j = f, V = !1;
|
|
1337
1337
|
function B(T) {
|
|
1338
|
-
return V || (V = !0, console.warn("The ReactIs.isAsyncMode() alias has been deprecated, and will be removed in React 17+. Update your code to use ReactIs.isConcurrentMode() instead. It has the exact same API.")),
|
|
1338
|
+
return V || (V = !0, console.warn("The ReactIs.isAsyncMode() alias has been deprecated, and will be removed in React 17+. Update your code to use ReactIs.isConcurrentMode() instead. It has the exact same API.")), W(T) || b(T) === l;
|
|
1339
1339
|
}
|
|
1340
|
-
function
|
|
1340
|
+
function W(T) {
|
|
1341
1341
|
return b(T) === c;
|
|
1342
1342
|
}
|
|
1343
1343
|
function L(T) {
|
|
1344
1344
|
return b(T) === u;
|
|
1345
1345
|
}
|
|
1346
|
-
function
|
|
1346
|
+
function U(T) {
|
|
1347
1347
|
return b(T) === s;
|
|
1348
1348
|
}
|
|
1349
1349
|
function H(T) {
|
|
1350
1350
|
return typeof T == "object" && T !== null && T.$$typeof === t;
|
|
1351
1351
|
}
|
|
1352
|
-
function
|
|
1352
|
+
function z(T) {
|
|
1353
1353
|
return b(T) === d;
|
|
1354
1354
|
}
|
|
1355
1355
|
function K(T) {
|
|
@@ -1373,7 +1373,7 @@ function requireReactIs_development() {
|
|
|
1373
1373
|
function E(T) {
|
|
1374
1374
|
return b(T) === f;
|
|
1375
1375
|
}
|
|
1376
|
-
reactIs_development.AsyncMode = C, reactIs_development.ConcurrentMode = w, reactIs_development.ContextConsumer = D, reactIs_development.ContextProvider = $, reactIs_development.Element = S, reactIs_development.ForwardRef = P, reactIs_development.Fragment = k, reactIs_development.Lazy = M, reactIs_development.Memo = O, reactIs_development.Portal = N, reactIs_development.Profiler = A, reactIs_development.StrictMode = I, reactIs_development.Suspense = j, reactIs_development.isAsyncMode = B, reactIs_development.isConcurrentMode =
|
|
1376
|
+
reactIs_development.AsyncMode = C, reactIs_development.ConcurrentMode = w, reactIs_development.ContextConsumer = D, reactIs_development.ContextProvider = $, reactIs_development.Element = S, reactIs_development.ForwardRef = P, reactIs_development.Fragment = k, reactIs_development.Lazy = M, reactIs_development.Memo = O, reactIs_development.Portal = N, reactIs_development.Profiler = A, reactIs_development.StrictMode = I, reactIs_development.Suspense = j, reactIs_development.isAsyncMode = B, reactIs_development.isConcurrentMode = W, reactIs_development.isContextConsumer = L, reactIs_development.isContextProvider = U, reactIs_development.isElement = H, reactIs_development.isForwardRef = z, reactIs_development.isFragment = K, reactIs_development.isLazy = F, reactIs_development.isMemo = q, reactIs_development.isPortal = G, reactIs_development.isProfiler = Q, reactIs_development.isStrictMode = X, reactIs_development.isSuspense = E, reactIs_development.isValidElementType = _, reactIs_development.typeOf = b;
|
|
1377
1377
|
}()), reactIs_development;
|
|
1378
1378
|
}
|
|
1379
1379
|
(function(e) {
|
|
@@ -1967,22 +1967,22 @@ var _excluded$7 = ["prefixCls", "onPressEnter", "defaultValue", "value", "autoSi
|
|
|
1967
1967
|
if (M === RESIZE_START)
|
|
1968
1968
|
O(RESIZE_MEASURING);
|
|
1969
1969
|
else if (M === RESIZE_MEASURING) {
|
|
1970
|
-
var
|
|
1971
|
-
O(RESIZE_STABLE), j(
|
|
1970
|
+
var z = calculateAutoSizeStyle(_.current, !1, w, D);
|
|
1971
|
+
O(RESIZE_STABLE), j(z);
|
|
1972
1972
|
} else
|
|
1973
1973
|
S();
|
|
1974
1974
|
}, [M]);
|
|
1975
|
-
var B = React$n.useRef(),
|
|
1975
|
+
var B = React$n.useRef(), W = function() {
|
|
1976
1976
|
wrapperRaf.cancel(B.current);
|
|
1977
1977
|
}, L = function(K) {
|
|
1978
|
-
M === RESIZE_STABLE && (u == null || u(K), s && (
|
|
1978
|
+
M === RESIZE_STABLE && (u == null || u(K), s && (W(), B.current = wrapperRaf(function() {
|
|
1979
1979
|
V();
|
|
1980
1980
|
})));
|
|
1981
1981
|
};
|
|
1982
1982
|
React$n.useEffect(function() {
|
|
1983
|
-
return
|
|
1983
|
+
return W;
|
|
1984
1984
|
}, []);
|
|
1985
|
-
var
|
|
1985
|
+
var U = $ ? I : null, H = _objectSpread2$g(_objectSpread2$g({}, c), U);
|
|
1986
1986
|
return (M === RESIZE_START || M === RESIZE_MEASURING) && (H.overflowY = "hidden", H.overflowX = "hidden"), /* @__PURE__ */ jsx(ResizeObserver, {
|
|
1987
1987
|
onResize: L,
|
|
1988
1988
|
disabled: !(s || u),
|
|
@@ -2315,27 +2315,27 @@ function _regeneratorRuntime() {
|
|
|
2315
2315
|
}
|
|
2316
2316
|
function b(M, O) {
|
|
2317
2317
|
function N(I, j, V, B) {
|
|
2318
|
-
var
|
|
2319
|
-
if (
|
|
2320
|
-
var L =
|
|
2321
|
-
return
|
|
2318
|
+
var W = d(M[I], M, j);
|
|
2319
|
+
if (W.type !== "throw") {
|
|
2320
|
+
var L = W.arg, U = L.value;
|
|
2321
|
+
return U && _typeof$2(U) == "object" && r.call(U, "__await") ? O.resolve(U.__await).then(function(H) {
|
|
2322
2322
|
N("next", H, V, B);
|
|
2323
2323
|
}, function(H) {
|
|
2324
2324
|
N("throw", H, V, B);
|
|
2325
|
-
}) : O.resolve(
|
|
2325
|
+
}) : O.resolve(U).then(function(H) {
|
|
2326
2326
|
L.value = H, V(L);
|
|
2327
2327
|
}, function(H) {
|
|
2328
2328
|
return N("throw", H, V, B);
|
|
2329
2329
|
});
|
|
2330
2330
|
}
|
|
2331
|
-
B(
|
|
2331
|
+
B(W.arg);
|
|
2332
2332
|
}
|
|
2333
2333
|
var A;
|
|
2334
2334
|
n(this, "_invoke", {
|
|
2335
2335
|
value: function(j, V) {
|
|
2336
2336
|
function B() {
|
|
2337
|
-
return new O(function(
|
|
2338
|
-
N(j, V,
|
|
2337
|
+
return new O(function(W, L) {
|
|
2338
|
+
N(j, V, W, L);
|
|
2339
2339
|
});
|
|
2340
2340
|
}
|
|
2341
2341
|
return A = A ? A.then(B, B) : B();
|
|
@@ -2371,16 +2371,16 @@ function _regeneratorRuntime() {
|
|
|
2371
2371
|
} else
|
|
2372
2372
|
N.method === "return" && N.abrupt("return", N.arg);
|
|
2373
2373
|
A = "executing";
|
|
2374
|
-
var
|
|
2375
|
-
if (
|
|
2376
|
-
if (A = N.done ? "completed" : "suspendedYield",
|
|
2374
|
+
var W = d(M, O, N);
|
|
2375
|
+
if (W.type === "normal") {
|
|
2376
|
+
if (A = N.done ? "completed" : "suspendedYield", W.arg === f)
|
|
2377
2377
|
continue;
|
|
2378
2378
|
return {
|
|
2379
|
-
value:
|
|
2379
|
+
value: W.arg,
|
|
2380
2380
|
done: N.done
|
|
2381
2381
|
};
|
|
2382
2382
|
}
|
|
2383
|
-
|
|
2383
|
+
W.type === "throw" && (A = "completed", N.method = "throw", N.arg = W.arg);
|
|
2384
2384
|
}
|
|
2385
2385
|
};
|
|
2386
2386
|
}
|
|
@@ -2499,16 +2499,16 @@ function _regeneratorRuntime() {
|
|
|
2499
2499
|
if (this.done)
|
|
2500
2500
|
throw O;
|
|
2501
2501
|
var N = this;
|
|
2502
|
-
function A(L,
|
|
2503
|
-
return V.type = "throw", V.arg = O, N.next = L,
|
|
2502
|
+
function A(L, U) {
|
|
2503
|
+
return V.type = "throw", V.arg = O, N.next = L, U && (N.method = "next", N.arg = void 0), !!U;
|
|
2504
2504
|
}
|
|
2505
2505
|
for (var I = this.tryEntries.length - 1; I >= 0; --I) {
|
|
2506
2506
|
var j = this.tryEntries[I], V = j.completion;
|
|
2507
2507
|
if (j.tryLoc === "root")
|
|
2508
2508
|
return A("end");
|
|
2509
2509
|
if (j.tryLoc <= this.prev) {
|
|
2510
|
-
var B = r.call(j, "catchLoc"),
|
|
2511
|
-
if (B &&
|
|
2510
|
+
var B = r.call(j, "catchLoc"), W = r.call(j, "finallyLoc");
|
|
2511
|
+
if (B && W) {
|
|
2512
2512
|
if (this.prev < j.catchLoc)
|
|
2513
2513
|
return A(j.catchLoc, !0);
|
|
2514
2514
|
if (this.prev < j.finallyLoc)
|
|
@@ -2517,7 +2517,7 @@ function _regeneratorRuntime() {
|
|
|
2517
2517
|
if (this.prev < j.catchLoc)
|
|
2518
2518
|
return A(j.catchLoc, !0);
|
|
2519
2519
|
} else {
|
|
2520
|
-
if (!
|
|
2520
|
+
if (!W)
|
|
2521
2521
|
throw new Error("try statement without catch or finally");
|
|
2522
2522
|
if (this.prev < j.finallyLoc)
|
|
2523
2523
|
return A(j.finallyLoc);
|
|
@@ -4506,15 +4506,15 @@ var FormContext$1 = /* @__PURE__ */ React$n.createContext({
|
|
|
4506
4506
|
};
|
|
4507
4507
|
}, [_, w, n]), k(_objectSpread2$g(_objectSpread2$g({}, _.validateMessages), f)), P({
|
|
4508
4508
|
onValuesChange: m,
|
|
4509
|
-
onFieldsChange: function(
|
|
4510
|
-
if (_.triggerFormChange(n,
|
|
4511
|
-
for (var H = arguments.length,
|
|
4512
|
-
|
|
4513
|
-
y.apply(void 0, [
|
|
4509
|
+
onFieldsChange: function(U) {
|
|
4510
|
+
if (_.triggerFormChange(n, U), y) {
|
|
4511
|
+
for (var H = arguments.length, z = new Array(H > 1 ? H - 1 : 0), K = 1; K < H; K++)
|
|
4512
|
+
z[K - 1] = arguments[K];
|
|
4513
|
+
y.apply(void 0, [U].concat(z));
|
|
4514
4514
|
}
|
|
4515
4515
|
},
|
|
4516
|
-
onFinish: function(
|
|
4517
|
-
_.triggerFormFinish(n,
|
|
4516
|
+
onFinish: function(U) {
|
|
4517
|
+
_.triggerFormFinish(n, U), x && x(U);
|
|
4518
4518
|
},
|
|
4519
4519
|
onFinishFailed: h
|
|
4520
4520
|
}), M(u);
|
|
@@ -4540,20 +4540,20 @@ var FormContext$1 = /* @__PURE__ */ React$n.createContext({
|
|
|
4540
4540
|
return _objectSpread2$g(_objectSpread2$g({}, w), {}, {
|
|
4541
4541
|
validateTrigger: g
|
|
4542
4542
|
});
|
|
4543
|
-
}, [w, g]),
|
|
4543
|
+
}, [w, g]), W = /* @__PURE__ */ jsx(Context.Provider, {
|
|
4544
4544
|
value: B,
|
|
4545
4545
|
children: A
|
|
4546
4546
|
});
|
|
4547
|
-
return d === !1 ?
|
|
4547
|
+
return d === !1 ? W : /* @__PURE__ */ jsx(d, {
|
|
4548
4548
|
...v,
|
|
4549
|
-
onSubmit: function(
|
|
4550
|
-
|
|
4549
|
+
onSubmit: function(U) {
|
|
4550
|
+
U.preventDefault(), U.stopPropagation(), w.submit();
|
|
4551
4551
|
},
|
|
4552
|
-
onReset: function(
|
|
4552
|
+
onReset: function(U) {
|
|
4553
4553
|
var H;
|
|
4554
|
-
|
|
4554
|
+
U.preventDefault(), w.resetFields(), (H = v.onReset) === null || H === void 0 || H.call(v, U);
|
|
4555
4555
|
},
|
|
4556
|
-
children:
|
|
4556
|
+
children: W
|
|
4557
4557
|
});
|
|
4558
4558
|
};
|
|
4559
4559
|
function stringify$1(e) {
|
|
@@ -6619,16 +6619,16 @@ const useStepQueue = function(e, t) {
|
|
|
6619
6619
|
}, []), [o, a];
|
|
6620
6620
|
};
|
|
6621
6621
|
function useStatus(e, t, r, n) {
|
|
6622
|
-
var a = n.motionEnter, o = a === void 0 ? !0 : a, s = n.motionAppear, u = s === void 0 ? !0 : s, l = n.motionLeave, c = l === void 0 ? !0 : l, d = n.motionDeadline, f = n.motionLeaveImmediately, p = n.onAppearPrepare, g = n.onEnterPrepare, m = n.onLeavePrepare, y = n.onAppearStart, x = n.onEnterStart, h = n.onLeaveStart, v = n.onAppearActive, _ = n.onEnterActive, b = n.onLeaveActive, C = n.onAppearEnd, w = n.onEnterEnd, D = n.onLeaveEnd, $ = n.onVisibleChanged, S = useSafeState$1(), P = _slicedToArray(S, 2), k = P[0], M = P[1], O = useSafeState$1(STATUS_NONE), N = _slicedToArray(O, 2), A = N[0], I = N[1], j = useSafeState$1(null), V = _slicedToArray(j, 2), B = V[0],
|
|
6622
|
+
var a = n.motionEnter, o = a === void 0 ? !0 : a, s = n.motionAppear, u = s === void 0 ? !0 : s, l = n.motionLeave, c = l === void 0 ? !0 : l, d = n.motionDeadline, f = n.motionLeaveImmediately, p = n.onAppearPrepare, g = n.onEnterPrepare, m = n.onLeavePrepare, y = n.onAppearStart, x = n.onEnterStart, h = n.onLeaveStart, v = n.onAppearActive, _ = n.onEnterActive, b = n.onLeaveActive, C = n.onAppearEnd, w = n.onEnterEnd, D = n.onLeaveEnd, $ = n.onVisibleChanged, S = useSafeState$1(), P = _slicedToArray(S, 2), k = P[0], M = P[1], O = useSafeState$1(STATUS_NONE), N = _slicedToArray(O, 2), A = N[0], I = N[1], j = useSafeState$1(null), V = _slicedToArray(j, 2), B = V[0], W = V[1], L = useRef(!1), U = useRef(null);
|
|
6623
6623
|
function H() {
|
|
6624
6624
|
return r();
|
|
6625
6625
|
}
|
|
6626
|
-
var
|
|
6626
|
+
var z = useRef(!1);
|
|
6627
6627
|
function K(te) {
|
|
6628
6628
|
var re = H();
|
|
6629
6629
|
if (!(te && !te.deadline && te.target !== re)) {
|
|
6630
|
-
var se =
|
|
6631
|
-
A === STATUS_APPEAR && se ? _e = C == null ? void 0 : C(re, te) : A === STATUS_ENTER && se ? _e = w == null ? void 0 : w(re, te) : A === STATUS_LEAVE && se && (_e = D == null ? void 0 : D(re, te)), A !== STATUS_NONE && se && _e !== !1 && (I(STATUS_NONE, !0),
|
|
6630
|
+
var se = z.current, _e;
|
|
6631
|
+
A === STATUS_APPEAR && se ? _e = C == null ? void 0 : C(re, te) : A === STATUS_ENTER && se ? _e = w == null ? void 0 : w(re, te) : A === STATUS_LEAVE && se && (_e = D == null ? void 0 : D(re, te)), A !== STATUS_NONE && se && _e !== !1 && (I(STATUS_NONE, !0), W(null, !0));
|
|
6632
6632
|
}
|
|
6633
6633
|
}
|
|
6634
6634
|
var F = useDomMotionEvents(K), q = _slicedToArray(F, 1), G = q[0], Q = React$n.useMemo(function() {
|
|
@@ -6648,17 +6648,17 @@ function useStatus(e, t, r, n) {
|
|
|
6648
6648
|
var re = Q[STEP_PREPARE];
|
|
6649
6649
|
return re ? re(H()) : SkipStep;
|
|
6650
6650
|
}
|
|
6651
|
-
if (
|
|
6651
|
+
if (Y in Q) {
|
|
6652
6652
|
var se;
|
|
6653
|
-
|
|
6653
|
+
W(((se = Q[Y]) === null || se === void 0 ? void 0 : se.call(Q, H(), null)) || null);
|
|
6654
6654
|
}
|
|
6655
|
-
return
|
|
6655
|
+
return Y === STEP_ACTIVE && (G(H()), d > 0 && (clearTimeout(U.current), U.current = setTimeout(function() {
|
|
6656
6656
|
K({
|
|
6657
6657
|
deadline: !0
|
|
6658
6658
|
});
|
|
6659
6659
|
}, d))), DoStep;
|
|
6660
|
-
}), E = _slicedToArray(X, 2), T = E[0],
|
|
6661
|
-
|
|
6660
|
+
}), E = _slicedToArray(X, 2), T = E[0], Y = E[1], Z = isActive(Y);
|
|
6661
|
+
z.current = Z, useIsomorphicLayoutEffect(function() {
|
|
6662
6662
|
M(t);
|
|
6663
6663
|
var te = L.current;
|
|
6664
6664
|
if (L.current = !0, !!e) {
|
|
@@ -6669,7 +6669,7 @@ function useStatus(e, t, r, n) {
|
|
|
6669
6669
|
(A === STATUS_APPEAR && !u || A === STATUS_ENTER && !o || A === STATUS_LEAVE && !c) && I(STATUS_NONE);
|
|
6670
6670
|
}, [u, o, c]), useEffect(function() {
|
|
6671
6671
|
return function() {
|
|
6672
|
-
L.current = !1, clearTimeout(
|
|
6672
|
+
L.current = !1, clearTimeout(U.current);
|
|
6673
6673
|
};
|
|
6674
6674
|
}, []);
|
|
6675
6675
|
var ee = React$n.useRef(!1);
|
|
@@ -6677,9 +6677,9 @@ function useStatus(e, t, r, n) {
|
|
|
6677
6677
|
k && (ee.current = !0), k !== void 0 && A === STATUS_NONE && ((ee.current || k) && ($ == null || $(k)), ee.current = !0);
|
|
6678
6678
|
}, [k, A]);
|
|
6679
6679
|
var J = B;
|
|
6680
|
-
return Q[STEP_PREPARE] &&
|
|
6680
|
+
return Q[STEP_PREPARE] && Y === STEP_START && (J = _objectSpread2$g({
|
|
6681
6681
|
transition: "none"
|
|
6682
|
-
}, J)), [A,
|
|
6682
|
+
}, J)), [A, Y, J, k != null ? k : t];
|
|
6683
6683
|
}
|
|
6684
6684
|
var DomWrapper = /* @__PURE__ */ function(e) {
|
|
6685
6685
|
_inherits(r, e);
|
|
@@ -7472,10 +7472,10 @@ function requireMessage() {
|
|
|
7472
7472
|
function P(L) {
|
|
7473
7473
|
L.top !== void 0 && (h = L.top, y = null), L.duration !== void 0 && (x = L.duration), L.prefixCls !== void 0 && (_ = L.prefixCls), L.getContainer !== void 0 && (w = L.getContainer, y = null), L.transitionName !== void 0 && (b = L.transitionName, y = null, C = !0), L.maxCount !== void 0 && (D = L.maxCount, y = null), L.rtl !== void 0 && ($ = L.rtl);
|
|
7474
7474
|
}
|
|
7475
|
-
function k(L,
|
|
7476
|
-
var H = L.prefixCls,
|
|
7475
|
+
function k(L, U) {
|
|
7476
|
+
var H = L.prefixCls, z = L.getPopupContainer, K = (0, g.globalConfig)(), F = K.getPrefixCls, q = K.getRootPrefixCls, G = K.getIconPrefixCls, Q = F("message", H || _), X = q(L.rootPrefixCls, Q), E = G();
|
|
7477
7477
|
if (y) {
|
|
7478
|
-
|
|
7478
|
+
U({
|
|
7479
7479
|
prefixCls: Q,
|
|
7480
7480
|
rootPrefixCls: X,
|
|
7481
7481
|
iconPrefixCls: E,
|
|
@@ -7489,12 +7489,12 @@ function requireMessage() {
|
|
|
7489
7489
|
style: {
|
|
7490
7490
|
top: h
|
|
7491
7491
|
},
|
|
7492
|
-
getContainer: w ||
|
|
7492
|
+
getContainer: w || z,
|
|
7493
7493
|
maxCount: D
|
|
7494
7494
|
};
|
|
7495
|
-
f.default.newInstance(T, function(
|
|
7495
|
+
f.default.newInstance(T, function(Y) {
|
|
7496
7496
|
if (y) {
|
|
7497
|
-
|
|
7497
|
+
U({
|
|
7498
7498
|
prefixCls: Q,
|
|
7499
7499
|
rootPrefixCls: X,
|
|
7500
7500
|
iconPrefixCls: E,
|
|
@@ -7502,11 +7502,11 @@ function requireMessage() {
|
|
|
7502
7502
|
});
|
|
7503
7503
|
return;
|
|
7504
7504
|
}
|
|
7505
|
-
y =
|
|
7505
|
+
y = Y, process.env.NODE_ENV === "test" && (y.config = T), U({
|
|
7506
7506
|
prefixCls: Q,
|
|
7507
7507
|
rootPrefixCls: X,
|
|
7508
7508
|
iconPrefixCls: E,
|
|
7509
|
-
instance:
|
|
7509
|
+
instance: Y
|
|
7510
7510
|
});
|
|
7511
7511
|
});
|
|
7512
7512
|
}
|
|
@@ -7518,8 +7518,8 @@ function requireMessage() {
|
|
|
7518
7518
|
loading: c.default
|
|
7519
7519
|
}, O = Object.keys(M);
|
|
7520
7520
|
e.typeList = O;
|
|
7521
|
-
function N(L,
|
|
7522
|
-
var
|
|
7521
|
+
function N(L, U, H) {
|
|
7522
|
+
var z, K = L.duration !== void 0 ? L.duration : x, F = M[L.type], q = (0, d.default)("".concat(U, "-custom-content"), (z = {}, (0, a.default)(z, "".concat(U, "-").concat(L.type), L.type), (0, a.default)(z, "".concat(U, "-rtl"), $ === !0), z));
|
|
7523
7523
|
return {
|
|
7524
7524
|
key: L.key,
|
|
7525
7525
|
duration: K,
|
|
@@ -7535,23 +7535,23 @@ function requireMessage() {
|
|
|
7535
7535
|
};
|
|
7536
7536
|
}
|
|
7537
7537
|
function A(L) {
|
|
7538
|
-
var
|
|
7538
|
+
var U = L.key || S(), H = new Promise(function(K) {
|
|
7539
7539
|
var F = function() {
|
|
7540
7540
|
return typeof L.onClose == "function" && L.onClose(), K(!0);
|
|
7541
7541
|
};
|
|
7542
7542
|
k(L, function(q) {
|
|
7543
7543
|
var G = q.prefixCls, Q = q.iconPrefixCls, X = q.instance;
|
|
7544
7544
|
X.notice(N((0, n.default)((0, n.default)({}, L), {
|
|
7545
|
-
key:
|
|
7545
|
+
key: U,
|
|
7546
7546
|
onClose: F
|
|
7547
7547
|
}), G, Q));
|
|
7548
7548
|
});
|
|
7549
|
-
}),
|
|
7550
|
-
y && y.removeNotice(
|
|
7549
|
+
}), z = function() {
|
|
7550
|
+
y && y.removeNotice(U);
|
|
7551
7551
|
};
|
|
7552
|
-
return
|
|
7552
|
+
return z.then = function(K, F) {
|
|
7553
7553
|
return H.then(K, F);
|
|
7554
|
-
},
|
|
7554
|
+
}, z.promise = H, z;
|
|
7555
7555
|
}
|
|
7556
7556
|
function I(L) {
|
|
7557
7557
|
return Object.prototype.toString.call(L) === "[object Object]" && !!L.content;
|
|
@@ -7559,25 +7559,25 @@ function requireMessage() {
|
|
|
7559
7559
|
var j = {
|
|
7560
7560
|
open: A,
|
|
7561
7561
|
config: P,
|
|
7562
|
-
destroy: function(
|
|
7562
|
+
destroy: function(U) {
|
|
7563
7563
|
if (y)
|
|
7564
|
-
if (
|
|
7565
|
-
var H = y,
|
|
7566
|
-
|
|
7564
|
+
if (U) {
|
|
7565
|
+
var H = y, z = H.removeNotice;
|
|
7566
|
+
z(U);
|
|
7567
7567
|
} else {
|
|
7568
7568
|
var K = y, F = K.destroy;
|
|
7569
7569
|
F(), y = null;
|
|
7570
7570
|
}
|
|
7571
7571
|
}
|
|
7572
7572
|
};
|
|
7573
|
-
function V(L,
|
|
7574
|
-
L[
|
|
7573
|
+
function V(L, U) {
|
|
7574
|
+
L[U] = function(H, z, K) {
|
|
7575
7575
|
return I(H) ? L.open((0, n.default)((0, n.default)({}, H), {
|
|
7576
|
-
type:
|
|
7577
|
-
})) : (typeof
|
|
7576
|
+
type: U
|
|
7577
|
+
})) : (typeof z == "function" && (K = z, z = void 0), L.open({
|
|
7578
7578
|
content: H,
|
|
7579
|
-
duration:
|
|
7580
|
-
type:
|
|
7579
|
+
duration: z,
|
|
7580
|
+
type: U,
|
|
7581
7581
|
onClose: K
|
|
7582
7582
|
}));
|
|
7583
7583
|
};
|
|
@@ -7589,8 +7589,8 @@ function requireMessage() {
|
|
|
7589
7589
|
return process.env.NODE_ENV === "test" ? y : null;
|
|
7590
7590
|
};
|
|
7591
7591
|
e.getInstance = B;
|
|
7592
|
-
var
|
|
7593
|
-
e.default =
|
|
7592
|
+
var W = j;
|
|
7593
|
+
e.default = W;
|
|
7594
7594
|
}(message)), message;
|
|
7595
7595
|
}
|
|
7596
7596
|
var notification = {}, regeneratorRuntime = { exports: {} };
|
|
@@ -7619,10 +7619,10 @@ var notification = {}, regeneratorRuntime = { exports: {} };
|
|
|
7619
7619
|
};
|
|
7620
7620
|
}
|
|
7621
7621
|
function p(A, I, j, V) {
|
|
7622
|
-
var B = I && I.prototype instanceof y ? I : y,
|
|
7623
|
-
return s(
|
|
7622
|
+
var B = I && I.prototype instanceof y ? I : y, W = Object.create(B.prototype), L = new M(V || []);
|
|
7623
|
+
return s(W, "_invoke", {
|
|
7624
7624
|
value: $(A, j, L)
|
|
7625
|
-
}),
|
|
7625
|
+
}), W;
|
|
7626
7626
|
}
|
|
7627
7627
|
function g(A, I, j) {
|
|
7628
7628
|
try {
|
|
@@ -7660,52 +7660,52 @@ var notification = {}, regeneratorRuntime = { exports: {} };
|
|
|
7660
7660
|
});
|
|
7661
7661
|
}
|
|
7662
7662
|
function D(A, I) {
|
|
7663
|
-
function j(B,
|
|
7664
|
-
var H = g(A[B], A,
|
|
7663
|
+
function j(B, W, L, U) {
|
|
7664
|
+
var H = g(A[B], A, W);
|
|
7665
7665
|
if (H.type !== "throw") {
|
|
7666
|
-
var
|
|
7666
|
+
var z = H.arg, K = z.value;
|
|
7667
7667
|
return K && t(K) == "object" && o.call(K, "__await") ? I.resolve(K.__await).then(function(F) {
|
|
7668
|
-
j("next", F, L,
|
|
7668
|
+
j("next", F, L, U);
|
|
7669
7669
|
}, function(F) {
|
|
7670
|
-
j("throw", F, L,
|
|
7670
|
+
j("throw", F, L, U);
|
|
7671
7671
|
}) : I.resolve(K).then(function(F) {
|
|
7672
|
-
|
|
7672
|
+
z.value = F, L(z);
|
|
7673
7673
|
}, function(F) {
|
|
7674
|
-
return j("throw", F, L,
|
|
7674
|
+
return j("throw", F, L, U);
|
|
7675
7675
|
});
|
|
7676
7676
|
}
|
|
7677
|
-
|
|
7677
|
+
U(H.arg);
|
|
7678
7678
|
}
|
|
7679
7679
|
var V;
|
|
7680
7680
|
s(this, "_invoke", {
|
|
7681
|
-
value: function(
|
|
7682
|
-
function
|
|
7683
|
-
return new I(function(H,
|
|
7684
|
-
j(
|
|
7681
|
+
value: function(W, L) {
|
|
7682
|
+
function U() {
|
|
7683
|
+
return new I(function(H, z) {
|
|
7684
|
+
j(W, L, H, z);
|
|
7685
7685
|
});
|
|
7686
7686
|
}
|
|
7687
|
-
return V = V ? V.then(
|
|
7687
|
+
return V = V ? V.then(U, U) : U();
|
|
7688
7688
|
}
|
|
7689
7689
|
});
|
|
7690
7690
|
}
|
|
7691
7691
|
function $(A, I, j) {
|
|
7692
7692
|
var V = "suspendedStart";
|
|
7693
|
-
return function(B,
|
|
7693
|
+
return function(B, W) {
|
|
7694
7694
|
if (V === "executing")
|
|
7695
7695
|
throw new Error("Generator is already running");
|
|
7696
7696
|
if (V === "completed") {
|
|
7697
7697
|
if (B === "throw")
|
|
7698
|
-
throw
|
|
7698
|
+
throw W;
|
|
7699
7699
|
return N();
|
|
7700
7700
|
}
|
|
7701
|
-
for (j.method = B, j.arg =
|
|
7701
|
+
for (j.method = B, j.arg = W; ; ) {
|
|
7702
7702
|
var L = j.delegate;
|
|
7703
7703
|
if (L) {
|
|
7704
|
-
var
|
|
7705
|
-
if (
|
|
7706
|
-
if (
|
|
7704
|
+
var U = S(L, j);
|
|
7705
|
+
if (U) {
|
|
7706
|
+
if (U === m)
|
|
7707
7707
|
continue;
|
|
7708
|
-
return
|
|
7708
|
+
return U;
|
|
7709
7709
|
}
|
|
7710
7710
|
}
|
|
7711
7711
|
if (j.method === "next")
|
|
@@ -7807,9 +7807,9 @@ var notification = {}, regeneratorRuntime = { exports: {} };
|
|
|
7807
7807
|
return this;
|
|
7808
7808
|
}), n.AsyncIterator = D, n.async = function(A, I, j, V, B) {
|
|
7809
7809
|
B === void 0 && (B = Promise);
|
|
7810
|
-
var
|
|
7811
|
-
return n.isGeneratorFunction(I) ?
|
|
7812
|
-
return L.done ? L.value :
|
|
7810
|
+
var W = new D(p(A, I, j, V), B);
|
|
7811
|
+
return n.isGeneratorFunction(I) ? W : W.next().then(function(L) {
|
|
7812
|
+
return L.done ? L.value : W.next();
|
|
7813
7813
|
});
|
|
7814
7814
|
}, w(C), f(C, d, "Generator"), f(C, l, function() {
|
|
7815
7815
|
return this;
|
|
@@ -7821,9 +7821,9 @@ var notification = {}, regeneratorRuntime = { exports: {} };
|
|
|
7821
7821
|
j.push(V);
|
|
7822
7822
|
return j.reverse(), function B() {
|
|
7823
7823
|
for (; j.length; ) {
|
|
7824
|
-
var
|
|
7825
|
-
if (
|
|
7826
|
-
return B.value =
|
|
7824
|
+
var W = j.pop();
|
|
7825
|
+
if (W in I)
|
|
7826
|
+
return B.value = W, B.done = !1, B;
|
|
7827
7827
|
}
|
|
7828
7828
|
return B.done = !0, B;
|
|
7829
7829
|
};
|
|
@@ -7845,28 +7845,28 @@ var notification = {}, regeneratorRuntime = { exports: {} };
|
|
|
7845
7845
|
if (this.done)
|
|
7846
7846
|
throw I;
|
|
7847
7847
|
var j = this;
|
|
7848
|
-
function V(
|
|
7849
|
-
return L.type = "throw", L.arg = I, j.next =
|
|
7848
|
+
function V(z, K) {
|
|
7849
|
+
return L.type = "throw", L.arg = I, j.next = z, K && (j.method = "next", j.arg = void 0), !!K;
|
|
7850
7850
|
}
|
|
7851
7851
|
for (var B = this.tryEntries.length - 1; B >= 0; --B) {
|
|
7852
|
-
var
|
|
7853
|
-
if (
|
|
7852
|
+
var W = this.tryEntries[B], L = W.completion;
|
|
7853
|
+
if (W.tryLoc === "root")
|
|
7854
7854
|
return V("end");
|
|
7855
|
-
if (
|
|
7856
|
-
var
|
|
7857
|
-
if (
|
|
7858
|
-
if (this.prev <
|
|
7859
|
-
return V(
|
|
7860
|
-
if (this.prev <
|
|
7861
|
-
return V(
|
|
7862
|
-
} else if (
|
|
7863
|
-
if (this.prev <
|
|
7864
|
-
return V(
|
|
7855
|
+
if (W.tryLoc <= this.prev) {
|
|
7856
|
+
var U = o.call(W, "catchLoc"), H = o.call(W, "finallyLoc");
|
|
7857
|
+
if (U && H) {
|
|
7858
|
+
if (this.prev < W.catchLoc)
|
|
7859
|
+
return V(W.catchLoc, !0);
|
|
7860
|
+
if (this.prev < W.finallyLoc)
|
|
7861
|
+
return V(W.finallyLoc);
|
|
7862
|
+
} else if (U) {
|
|
7863
|
+
if (this.prev < W.catchLoc)
|
|
7864
|
+
return V(W.catchLoc, !0);
|
|
7865
7865
|
} else {
|
|
7866
7866
|
if (!H)
|
|
7867
7867
|
throw new Error("try statement without catch or finally");
|
|
7868
|
-
if (this.prev <
|
|
7869
|
-
return V(
|
|
7868
|
+
if (this.prev < W.finallyLoc)
|
|
7869
|
+
return V(W.finallyLoc);
|
|
7870
7870
|
}
|
|
7871
7871
|
}
|
|
7872
7872
|
}
|
|
@@ -7875,13 +7875,13 @@ var notification = {}, regeneratorRuntime = { exports: {} };
|
|
|
7875
7875
|
for (var V = this.tryEntries.length - 1; V >= 0; --V) {
|
|
7876
7876
|
var B = this.tryEntries[V];
|
|
7877
7877
|
if (B.tryLoc <= this.prev && o.call(B, "finallyLoc") && this.prev < B.finallyLoc) {
|
|
7878
|
-
var
|
|
7878
|
+
var W = B;
|
|
7879
7879
|
break;
|
|
7880
7880
|
}
|
|
7881
7881
|
}
|
|
7882
|
-
|
|
7883
|
-
var L =
|
|
7884
|
-
return L.type = I, L.arg = j,
|
|
7882
|
+
W && (I === "break" || I === "continue") && W.tryLoc <= j && j <= W.finallyLoc && (W = null);
|
|
7883
|
+
var L = W ? W.completion : {};
|
|
7884
|
+
return L.type = I, L.arg = j, W ? (this.method = "next", this.next = W.finallyLoc, m) : this.complete(L);
|
|
7885
7885
|
},
|
|
7886
7886
|
complete: function(I, j) {
|
|
7887
7887
|
if (I.type === "throw")
|
|
@@ -7901,10 +7901,10 @@ var notification = {}, regeneratorRuntime = { exports: {} };
|
|
|
7901
7901
|
if (V.tryLoc === I) {
|
|
7902
7902
|
var B = V.completion;
|
|
7903
7903
|
if (B.type === "throw") {
|
|
7904
|
-
var
|
|
7904
|
+
var W = B.arg;
|
|
7905
7905
|
k(V);
|
|
7906
7906
|
}
|
|
7907
|
-
return
|
|
7907
|
+
return W;
|
|
7908
7908
|
}
|
|
7909
7909
|
}
|
|
7910
7910
|
throw new Error("illegal catch attempt");
|
|
@@ -8133,13 +8133,13 @@ function requireNotification() {
|
|
|
8133
8133
|
Object.defineProperty(e, "__esModule", {
|
|
8134
8134
|
value: !0
|
|
8135
8135
|
}), e.getInstance = e.default = void 0;
|
|
8136
|
-
var n = r(regeneratorRuntime.exports), a = r(_extends$1.exports), o = r(defineProperty.exports), s = r(CheckCircleOutlined$3.exports), u = r(CloseCircleOutlined$3.exports), l = r(CloseOutlined$3.exports), c = r(ExclamationCircleOutlined$3.exports), d = r(InfoCircleOutlined$3.exports), f = r(classnames.exports), p = r(require$$11$1), g = t(React__default), m = t(requireConfigProvider()), y = r(requireUseNotification()), x = function(
|
|
8137
|
-
function
|
|
8138
|
-
return K instanceof
|
|
8136
|
+
var n = r(regeneratorRuntime.exports), a = r(_extends$1.exports), o = r(defineProperty.exports), s = r(CheckCircleOutlined$3.exports), u = r(CloseCircleOutlined$3.exports), l = r(CloseOutlined$3.exports), c = r(ExclamationCircleOutlined$3.exports), d = r(InfoCircleOutlined$3.exports), f = r(classnames.exports), p = r(require$$11$1), g = t(React__default), m = t(requireConfigProvider()), y = r(requireUseNotification()), x = function(W, L, U, H) {
|
|
8137
|
+
function z(K) {
|
|
8138
|
+
return K instanceof U ? K : new U(function(F) {
|
|
8139
8139
|
F(K);
|
|
8140
8140
|
});
|
|
8141
8141
|
}
|
|
8142
|
-
return new (
|
|
8142
|
+
return new (U || (U = Promise))(function(K, F) {
|
|
8143
8143
|
function q(X) {
|
|
8144
8144
|
try {
|
|
8145
8145
|
Q(H.next(X));
|
|
@@ -8155,18 +8155,18 @@ function requireNotification() {
|
|
|
8155
8155
|
}
|
|
8156
8156
|
}
|
|
8157
8157
|
function Q(X) {
|
|
8158
|
-
X.done ? K(X.value) :
|
|
8158
|
+
X.done ? K(X.value) : z(X.value).then(q, G);
|
|
8159
8159
|
}
|
|
8160
|
-
Q((H = H.apply(
|
|
8160
|
+
Q((H = H.apply(W, L || [])).next());
|
|
8161
8161
|
});
|
|
8162
8162
|
}, h = {}, v = 4.5, _ = 24, b = 24, C = "", w = "topRight", D, $, S = !1, P;
|
|
8163
|
-
function k(
|
|
8164
|
-
var L =
|
|
8165
|
-
q !== void 0 && (C = q), L !== void 0 && (v = L),
|
|
8163
|
+
function k(W) {
|
|
8164
|
+
var L = W.duration, U = W.placement, H = W.bottom, z = W.top, K = W.getContainer, F = W.closeIcon, q = W.prefixCls;
|
|
8165
|
+
q !== void 0 && (C = q), L !== void 0 && (v = L), U !== void 0 ? w = U : W.rtl && (w = "topLeft"), H !== void 0 && (b = H), z !== void 0 && (_ = z), K !== void 0 && (D = K), F !== void 0 && ($ = F), W.rtl !== void 0 && (S = W.rtl), W.maxCount !== void 0 && (P = W.maxCount);
|
|
8166
8166
|
}
|
|
8167
|
-
function M(
|
|
8168
|
-
var L = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : _,
|
|
8169
|
-
switch (
|
|
8167
|
+
function M(W) {
|
|
8168
|
+
var L = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : _, U = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : b, H;
|
|
8169
|
+
switch (W) {
|
|
8170
8170
|
case "top":
|
|
8171
8171
|
H = {
|
|
8172
8172
|
left: "50%",
|
|
@@ -8196,33 +8196,33 @@ function requireNotification() {
|
|
|
8196
8196
|
transform: "translateX(-50%)",
|
|
8197
8197
|
right: "auto",
|
|
8198
8198
|
top: "auto",
|
|
8199
|
-
bottom:
|
|
8199
|
+
bottom: U
|
|
8200
8200
|
};
|
|
8201
8201
|
break;
|
|
8202
8202
|
case "bottomLeft":
|
|
8203
8203
|
H = {
|
|
8204
8204
|
left: 0,
|
|
8205
8205
|
top: "auto",
|
|
8206
|
-
bottom:
|
|
8206
|
+
bottom: U
|
|
8207
8207
|
};
|
|
8208
8208
|
break;
|
|
8209
8209
|
default:
|
|
8210
8210
|
H = {
|
|
8211
8211
|
right: 0,
|
|
8212
8212
|
top: "auto",
|
|
8213
|
-
bottom:
|
|
8213
|
+
bottom: U
|
|
8214
8214
|
};
|
|
8215
8215
|
break;
|
|
8216
8216
|
}
|
|
8217
8217
|
return H;
|
|
8218
8218
|
}
|
|
8219
|
-
function O(
|
|
8220
|
-
var
|
|
8219
|
+
function O(W, L) {
|
|
8220
|
+
var U = W.placement, H = U === void 0 ? w : U, z = W.top, K = W.bottom, F = W.getContainer, q = F === void 0 ? D : F, G = W.prefixCls, Q = (0, m.globalConfig)(), X = Q.getPrefixCls, E = Q.getIconPrefixCls, T = X("notification", G || C), Y = E(), Z = "".concat(T, "-").concat(H), ee = h[Z];
|
|
8221
8221
|
if (ee) {
|
|
8222
8222
|
Promise.resolve(ee).then(function(te) {
|
|
8223
8223
|
L({
|
|
8224
8224
|
prefixCls: "".concat(T, "-notice"),
|
|
8225
|
-
iconPrefixCls:
|
|
8225
|
+
iconPrefixCls: Y,
|
|
8226
8226
|
instance: te
|
|
8227
8227
|
});
|
|
8228
8228
|
});
|
|
@@ -8233,13 +8233,13 @@ function requireNotification() {
|
|
|
8233
8233
|
p.default.newInstance({
|
|
8234
8234
|
prefixCls: T,
|
|
8235
8235
|
className: J,
|
|
8236
|
-
style: M(H,
|
|
8236
|
+
style: M(H, z, K),
|
|
8237
8237
|
getContainer: q,
|
|
8238
8238
|
maxCount: P
|
|
8239
8239
|
}, function(re) {
|
|
8240
8240
|
te(re), L({
|
|
8241
8241
|
prefixCls: "".concat(T, "-notice"),
|
|
8242
|
-
iconPrefixCls:
|
|
8242
|
+
iconPrefixCls: Y,
|
|
8243
8243
|
instance: re
|
|
8244
8244
|
});
|
|
8245
8245
|
});
|
|
@@ -8251,11 +8251,11 @@ function requireNotification() {
|
|
|
8251
8251
|
error: u.default,
|
|
8252
8252
|
warning: c.default
|
|
8253
8253
|
};
|
|
8254
|
-
function A(
|
|
8255
|
-
var H =
|
|
8256
|
-
|
|
8254
|
+
function A(W, L, U) {
|
|
8255
|
+
var H = W.duration, z = W.icon, K = W.type, F = W.description, q = W.message, G = W.btn, Q = W.onClose, X = W.onClick, E = W.key, T = W.style, Y = W.className, Z = W.closeIcon, ee = Z === void 0 ? $ : Z, J = W.props, te = H === void 0 ? v : H, re = null;
|
|
8256
|
+
z ? re = /* @__PURE__ */ g.createElement("span", {
|
|
8257
8257
|
className: "".concat(L, "-icon")
|
|
8258
|
-
},
|
|
8258
|
+
}, W.icon) : K && (re = /* @__PURE__ */ g.createElement(N[K] || null, {
|
|
8259
8259
|
className: "".concat(L, "-icon ").concat(L, "-icon-").concat(K)
|
|
8260
8260
|
}));
|
|
8261
8261
|
var se = /* @__PURE__ */ g.createElement("span", {
|
|
@@ -8267,7 +8267,7 @@ function requireNotification() {
|
|
|
8267
8267
|
}) : null;
|
|
8268
8268
|
return {
|
|
8269
8269
|
content: /* @__PURE__ */ g.createElement(m.default, {
|
|
8270
|
-
iconPrefixCls:
|
|
8270
|
+
iconPrefixCls: U
|
|
8271
8271
|
}, /* @__PURE__ */ g.createElement("div", {
|
|
8272
8272
|
className: re ? "".concat(L, "-with-icon") : "",
|
|
8273
8273
|
role: "alert"
|
|
@@ -8285,21 +8285,21 @@ function requireNotification() {
|
|
|
8285
8285
|
onClick: X,
|
|
8286
8286
|
key: E,
|
|
8287
8287
|
style: T || {},
|
|
8288
|
-
className: (0, f.default)(
|
|
8288
|
+
className: (0, f.default)(Y, (0, o.default)({}, "".concat(L, "-").concat(K), !!K)),
|
|
8289
8289
|
props: J
|
|
8290
8290
|
};
|
|
8291
8291
|
}
|
|
8292
|
-
function I(
|
|
8293
|
-
O(
|
|
8294
|
-
var
|
|
8295
|
-
|
|
8292
|
+
function I(W) {
|
|
8293
|
+
O(W, function(L) {
|
|
8294
|
+
var U = L.prefixCls, H = L.iconPrefixCls, z = L.instance;
|
|
8295
|
+
z.notice(A(W, U, H));
|
|
8296
8296
|
});
|
|
8297
8297
|
}
|
|
8298
8298
|
var j = {
|
|
8299
8299
|
open: I,
|
|
8300
8300
|
close: function(L) {
|
|
8301
|
-
Object.keys(h).forEach(function(
|
|
8302
|
-
return Promise.resolve(h[
|
|
8301
|
+
Object.keys(h).forEach(function(U) {
|
|
8302
|
+
return Promise.resolve(h[U]).then(function(H) {
|
|
8303
8303
|
H.removeNotice(L);
|
|
8304
8304
|
});
|
|
8305
8305
|
});
|
|
@@ -8307,31 +8307,31 @@ function requireNotification() {
|
|
|
8307
8307
|
config: k,
|
|
8308
8308
|
destroy: function() {
|
|
8309
8309
|
Object.keys(h).forEach(function(L) {
|
|
8310
|
-
Promise.resolve(h[L]).then(function(
|
|
8311
|
-
|
|
8310
|
+
Promise.resolve(h[L]).then(function(U) {
|
|
8311
|
+
U.destroy();
|
|
8312
8312
|
}), delete h[L];
|
|
8313
8313
|
});
|
|
8314
8314
|
}
|
|
8315
8315
|
};
|
|
8316
|
-
["success", "info", "warning", "error"].forEach(function(
|
|
8317
|
-
j[
|
|
8316
|
+
["success", "info", "warning", "error"].forEach(function(W) {
|
|
8317
|
+
j[W] = function(L) {
|
|
8318
8318
|
return j.open((0, a.default)((0, a.default)({}, L), {
|
|
8319
|
-
type:
|
|
8319
|
+
type: W
|
|
8320
8320
|
}));
|
|
8321
8321
|
};
|
|
8322
8322
|
}), j.warn = j.warning, j.useNotification = (0, y.default)(O, A);
|
|
8323
8323
|
var V = function(L) {
|
|
8324
|
-
return x(void 0, void 0, void 0, /* @__PURE__ */ (0, n.default)().mark(function
|
|
8325
|
-
return (0, n.default)().wrap(function(
|
|
8324
|
+
return x(void 0, void 0, void 0, /* @__PURE__ */ (0, n.default)().mark(function U() {
|
|
8325
|
+
return (0, n.default)().wrap(function(z) {
|
|
8326
8326
|
for (; ; )
|
|
8327
|
-
switch (
|
|
8327
|
+
switch (z.prev = z.next) {
|
|
8328
8328
|
case 0:
|
|
8329
|
-
return
|
|
8329
|
+
return z.abrupt("return", process.env.NODE_ENV === "test" ? h[L] : null);
|
|
8330
8330
|
case 1:
|
|
8331
8331
|
case "end":
|
|
8332
|
-
return
|
|
8332
|
+
return z.stop();
|
|
8333
8333
|
}
|
|
8334
|
-
},
|
|
8334
|
+
}, U);
|
|
8335
8335
|
}));
|
|
8336
8336
|
};
|
|
8337
8337
|
e.getInstance = V;
|
|
@@ -8501,17 +8501,17 @@ function requireConfigProvider() {
|
|
|
8501
8501
|
};
|
|
8502
8502
|
e.globalConfig = P;
|
|
8503
8503
|
var k = function(A) {
|
|
8504
|
-
var I, j, V = A.children, B = A.csp,
|
|
8504
|
+
var I, j, V = A.children, B = A.csp, W = A.autoInsertSpaceInButton, L = A.form, U = A.locale, H = A.componentSize, z = A.direction, K = A.space, F = A.virtual, q = A.dropdownMatchSelectWidth, G = A.legacyLocale, Q = A.parentContext, X = A.iconPrefixCls, E = A.componentDisabled, T = u.useCallback(function(re, se) {
|
|
8505
8505
|
var _e = A.prefixCls;
|
|
8506
8506
|
if (se)
|
|
8507
8507
|
return se;
|
|
8508
8508
|
var be = _e || Q.getPrefixCls("");
|
|
8509
8509
|
return re ? "".concat(be, "-").concat(re) : be;
|
|
8510
|
-
}, [Q.getPrefixCls, A.prefixCls]),
|
|
8510
|
+
}, [Q.getPrefixCls, A.prefixCls]), Y = (0, n.default)((0, n.default)({}, Q), {
|
|
8511
8511
|
csp: B,
|
|
8512
|
-
autoInsertSpaceInButton:
|
|
8513
|
-
locale:
|
|
8514
|
-
direction:
|
|
8512
|
+
autoInsertSpaceInButton: W,
|
|
8513
|
+
locale: U || G,
|
|
8514
|
+
direction: z,
|
|
8515
8515
|
space: K,
|
|
8516
8516
|
virtual: F,
|
|
8517
8517
|
dropdownMatchSelectWidth: q,
|
|
@@ -8519,11 +8519,11 @@ function requireConfigProvider() {
|
|
|
8519
8519
|
});
|
|
8520
8520
|
v.forEach(function(re) {
|
|
8521
8521
|
var se = A[re];
|
|
8522
|
-
se && (
|
|
8522
|
+
se && (Y[re] = se);
|
|
8523
8523
|
});
|
|
8524
8524
|
var Z = (0, s.default)(function() {
|
|
8525
|
-
return
|
|
8526
|
-
},
|
|
8525
|
+
return Y;
|
|
8526
|
+
}, Y, function(re, se) {
|
|
8527
8527
|
var _e = Object.keys(re), be = Object.keys(se);
|
|
8528
8528
|
return _e.length !== be.length || _e.some(function(Se) {
|
|
8529
8529
|
return re[Se] !== se[Se];
|
|
@@ -8534,10 +8534,10 @@ function requireConfigProvider() {
|
|
|
8534
8534
|
csp: B
|
|
8535
8535
|
};
|
|
8536
8536
|
}, [X, B]), J = V, te = {};
|
|
8537
|
-
return
|
|
8537
|
+
return U && (te = ((I = U.Form) === null || I === void 0 ? void 0 : I.defaultValidateMessages) || ((j = d.default.Form) === null || j === void 0 ? void 0 : j.defaultValidateMessages) || {}), L && L.validateMessages && (te = (0, n.default)((0, n.default)({}, te), L.validateMessages)), Object.keys(te).length > 0 && (J = /* @__PURE__ */ u.createElement(o.FormProvider, {
|
|
8538
8538
|
validateMessages: te
|
|
8539
|
-
}, V)),
|
|
8540
|
-
locale:
|
|
8539
|
+
}, V)), U && (J = /* @__PURE__ */ u.createElement(l.default, {
|
|
8540
|
+
locale: U,
|
|
8541
8541
|
_ANT_MARK__: l.ANT_MARK
|
|
8542
8542
|
}, J)), (X || B) && (J = /* @__PURE__ */ u.createElement(a.default.Provider, {
|
|
8543
8543
|
value: ee
|
|
@@ -8687,14 +8687,14 @@ function cloneElement(e, t) {
|
|
|
8687
8687
|
}, {
|
|
8688
8688
|
key: "renderTextAreaWithClearIcon",
|
|
8689
8689
|
value: function(D, $, S) {
|
|
8690
|
-
var P, k = this.props, M = k.value, O = k.allowClear, N = k.className, A = k.style, I = k.direction, j = k.bordered, V = k.hidden, B = k.status,
|
|
8690
|
+
var P, k = this.props, M = k.value, O = k.allowClear, N = k.className, A = k.style, I = k.direction, j = k.bordered, V = k.hidden, B = k.status, W = S.status, L = S.hasFeedback;
|
|
8691
8691
|
if (!O)
|
|
8692
8692
|
return (0, p.cloneElement)($, {
|
|
8693
8693
|
value: M
|
|
8694
8694
|
});
|
|
8695
|
-
var
|
|
8695
|
+
var U = (0, c.default)("".concat(D, "-affix-wrapper"), "".concat(D, "-affix-wrapper-textarea-with-clear-btn"), (0, g.getStatusClassNames)("".concat(D, "-affix-wrapper"), (0, g.getMergedStatus)(W, B), L), (P = {}, (0, n.default)(P, "".concat(D, "-affix-wrapper-rtl"), I === "rtl"), (0, n.default)(P, "".concat(D, "-affix-wrapper-borderless"), !j), (0, n.default)(P, "".concat(N), !x(this.props) && N), P));
|
|
8696
8696
|
return /* @__PURE__ */ d.createElement("span", {
|
|
8697
|
-
className:
|
|
8697
|
+
className: U,
|
|
8698
8698
|
style: A,
|
|
8699
8699
|
hidden: V
|
|
8700
8700
|
}, (0, p.cloneElement)($, {
|
|
@@ -8782,13 +8782,13 @@ var BaseInput = function(t) {
|
|
|
8782
8782
|
var V;
|
|
8783
8783
|
if (!h)
|
|
8784
8784
|
return null;
|
|
8785
|
-
var B = !g && !m && v,
|
|
8785
|
+
var B = !g && !m && v, W = "".concat(n, "-clear-icon"), L = _typeof$2(h) === "object" && h !== null && h !== void 0 && h.clearIcon ? h.clearIcon : "\u2716";
|
|
8786
8786
|
return /* @__PURE__ */ jsx("span", {
|
|
8787
8787
|
onClick: _,
|
|
8788
8788
|
onMouseDown: function(H) {
|
|
8789
8789
|
return H.preventDefault();
|
|
8790
8790
|
},
|
|
8791
|
-
className: classNames(
|
|
8791
|
+
className: classNames(W, (V = {}, _defineProperty$1(V, "".concat(W, "-hidden"), !B), _defineProperty$1(V, "".concat(W, "-has-suffix"), !!o), V)),
|
|
8792
8792
|
role: "button",
|
|
8793
8793
|
tabIndex: -1,
|
|
8794
8794
|
children: L
|
|
@@ -8850,23 +8850,23 @@ function omit(e, t) {
|
|
|
8850
8850
|
var _excluded$1 = ["autoComplete", "onChange", "onFocus", "onBlur", "onPressEnter", "onKeyDown", "prefixCls", "disabled", "htmlSize", "className", "maxLength", "suffix", "showCount", "type", "inputClassName"], Input = /* @__PURE__ */ forwardRef(function(e, t) {
|
|
8851
8851
|
var r = e.autoComplete, n = e.onChange, a = e.onFocus, o = e.onBlur, s = e.onPressEnter, u = e.onKeyDown, l = e.prefixCls, c = l === void 0 ? "rc-input" : l, d = e.disabled, f = e.htmlSize, p = e.className, g = e.maxLength, m = e.suffix, y = e.showCount, x = e.type, h = x === void 0 ? "text" : x, v = e.inputClassName, _ = _objectWithoutProperties(e, _excluded$1), b = useMergedState$2(e.defaultValue, {
|
|
8852
8852
|
value: e.value
|
|
8853
|
-
}), C = _slicedToArray(b, 2), w = C[0], D = C[1], $ = useState$1(!1), S = _slicedToArray($, 2), P = S[0], k = S[1], M = useRef(null), O = function(
|
|
8854
|
-
M.current && triggerFocus(M.current,
|
|
8853
|
+
}), C = _slicedToArray(b, 2), w = C[0], D = C[1], $ = useState$1(!1), S = _slicedToArray($, 2), P = S[0], k = S[1], M = useRef(null), O = function(U) {
|
|
8854
|
+
M.current && triggerFocus(M.current, U);
|
|
8855
8855
|
};
|
|
8856
8856
|
useImperativeHandle(t, function() {
|
|
8857
8857
|
return {
|
|
8858
8858
|
focus: O,
|
|
8859
8859
|
blur: function() {
|
|
8860
|
-
var
|
|
8861
|
-
(
|
|
8860
|
+
var U;
|
|
8861
|
+
(U = M.current) === null || U === void 0 || U.blur();
|
|
8862
8862
|
},
|
|
8863
|
-
setSelectionRange: function(
|
|
8863
|
+
setSelectionRange: function(U, H, z) {
|
|
8864
8864
|
var K;
|
|
8865
|
-
(K = M.current) === null || K === void 0 || K.setSelectionRange(
|
|
8865
|
+
(K = M.current) === null || K === void 0 || K.setSelectionRange(U, H, z);
|
|
8866
8866
|
},
|
|
8867
8867
|
select: function() {
|
|
8868
|
-
var
|
|
8869
|
-
(
|
|
8868
|
+
var U;
|
|
8869
|
+
(U = M.current) === null || U === void 0 || U.select();
|
|
8870
8870
|
},
|
|
8871
8871
|
input: M.current
|
|
8872
8872
|
};
|
|
@@ -8875,18 +8875,18 @@ var _excluded$1 = ["autoComplete", "onChange", "onFocus", "onBlur", "onPressEnte
|
|
|
8875
8875
|
return L && d ? !1 : L;
|
|
8876
8876
|
});
|
|
8877
8877
|
}, [d]);
|
|
8878
|
-
var N = function(
|
|
8879
|
-
e.value === void 0 && D(
|
|
8880
|
-
}, A = function(
|
|
8881
|
-
s &&
|
|
8882
|
-
}, I = function(
|
|
8883
|
-
k(!0), a == null || a(
|
|
8884
|
-
}, j = function(
|
|
8885
|
-
k(!1), o == null || o(
|
|
8886
|
-
}, V = function(
|
|
8887
|
-
D(""), O(), M.current && resolveOnChange(M.current,
|
|
8878
|
+
var N = function(U) {
|
|
8879
|
+
e.value === void 0 && D(U.target.value), M.current && resolveOnChange(M.current, U, n);
|
|
8880
|
+
}, A = function(U) {
|
|
8881
|
+
s && U.key === "Enter" && s(U), u == null || u(U);
|
|
8882
|
+
}, I = function(U) {
|
|
8883
|
+
k(!0), a == null || a(U);
|
|
8884
|
+
}, j = function(U) {
|
|
8885
|
+
k(!1), o == null || o(U);
|
|
8886
|
+
}, V = function(U) {
|
|
8887
|
+
D(""), O(), M.current && resolveOnChange(M.current, U, n);
|
|
8888
8888
|
}, B = function() {
|
|
8889
|
-
var
|
|
8889
|
+
var U = omit(e, [
|
|
8890
8890
|
"prefixCls",
|
|
8891
8891
|
"onPressEnter",
|
|
8892
8892
|
"addonBefore",
|
|
@@ -8904,7 +8904,7 @@ var _excluded$1 = ["autoComplete", "onChange", "onFocus", "onBlur", "onPressEnte
|
|
|
8904
8904
|
]);
|
|
8905
8905
|
return /* @__PURE__ */ jsx("input", {
|
|
8906
8906
|
autoComplete: r,
|
|
8907
|
-
...
|
|
8907
|
+
...U,
|
|
8908
8908
|
onChange: N,
|
|
8909
8909
|
onFocus: I,
|
|
8910
8910
|
onBlur: j,
|
|
@@ -8914,14 +8914,14 @@ var _excluded$1 = ["autoComplete", "onChange", "onFocus", "onBlur", "onPressEnte
|
|
|
8914
8914
|
size: f,
|
|
8915
8915
|
type: h
|
|
8916
8916
|
});
|
|
8917
|
-
},
|
|
8918
|
-
var
|
|
8917
|
+
}, W = function() {
|
|
8918
|
+
var U = Number(g) > 0;
|
|
8919
8919
|
if (m || y) {
|
|
8920
|
-
var H = fixControlledValue(w),
|
|
8920
|
+
var H = fixControlledValue(w), z = _toConsumableArray(H).length, K = _typeof$2(y) === "object" ? y.formatter({
|
|
8921
8921
|
value: H,
|
|
8922
|
-
count:
|
|
8922
|
+
count: z,
|
|
8923
8923
|
maxLength: g
|
|
8924
|
-
}) : "".concat(
|
|
8924
|
+
}) : "".concat(z).concat(U ? " / ".concat(g) : "");
|
|
8925
8925
|
return /* @__PURE__ */ jsxs(Fragment, {
|
|
8926
8926
|
children: [!!y && /* @__PURE__ */ jsx("span", {
|
|
8927
8927
|
className: classNames("".concat(c, "-show-count-suffix"), _defineProperty$1({}, "".concat(c, "-show-count-has-suffix"), !!m)),
|
|
@@ -8940,7 +8940,7 @@ var _excluded$1 = ["autoComplete", "onChange", "onFocus", "onBlur", "onPressEnte
|
|
|
8940
8940
|
value: fixControlledValue(w),
|
|
8941
8941
|
focused: P,
|
|
8942
8942
|
triggerFocus: O,
|
|
8943
|
-
suffix:
|
|
8943
|
+
suffix: W(),
|
|
8944
8944
|
disabled: d
|
|
8945
8945
|
});
|
|
8946
8946
|
});
|
|
@@ -9044,14 +9044,14 @@ function toArray$1(e) {
|
|
|
9044
9044
|
}, v);
|
|
9045
9045
|
}, m = function(h) {
|
|
9046
9046
|
var v, _ = u.useContext(l.ConfigContext), b = _.getPrefixCls, C = _.direction, w = h.size, D = w === void 0 ? "middle" : w, $ = h.direction, S = h.block, P = h.prefixCls, k = h.className, M = h.children, O = c(h, ["size", "direction", "block", "prefixCls", "className", "children"]), N = b("space-compact", P), A = (0, o.default)(N, (v = {}, (0, a.default)(v, "".concat(N, "-rtl"), C === "rtl"), (0, a.default)(v, "".concat(N, "-block"), S), (0, a.default)(v, "".concat(N, "-vertical"), $ === "vertical"), v), k), I = u.useContext(d), j = (0, s.default)(M), V = u.useMemo(function() {
|
|
9047
|
-
return j.map(function(B,
|
|
9048
|
-
var L = B && B.key || "".concat(N, "-item-").concat(
|
|
9047
|
+
return j.map(function(B, W) {
|
|
9048
|
+
var L = B && B.key || "".concat(N, "-item-").concat(W);
|
|
9049
9049
|
return /* @__PURE__ */ u.createElement(g, {
|
|
9050
9050
|
key: L,
|
|
9051
9051
|
compactSize: D,
|
|
9052
9052
|
compactDirection: $,
|
|
9053
|
-
isFirstItem:
|
|
9054
|
-
isLastItem:
|
|
9053
|
+
isFirstItem: W === 0 && (!I || (I == null ? void 0 : I.isFirstItem)),
|
|
9054
|
+
isLastItem: W === j.length - 1 && (!I || (I == null ? void 0 : I.isLastItem))
|
|
9055
9055
|
}, B);
|
|
9056
9056
|
});
|
|
9057
9057
|
}, [D, j, I]);
|
|
@@ -9158,7 +9158,7 @@ function hasPrefixSuffix(e) {
|
|
|
9158
9158
|
}
|
|
9159
9159
|
}
|
|
9160
9160
|
var $ = /* @__PURE__ */ (0, d.forwardRef)(function(P, k) {
|
|
9161
|
-
var M, O, N, A = P.prefixCls, I = P.bordered, j = I === void 0 ? !0 : I, V = P.status, B = P.size,
|
|
9161
|
+
var M, O, N, A = P.prefixCls, I = P.bordered, j = I === void 0 ? !0 : I, V = P.status, B = P.size, W = P.disabled, L = P.onBlur, U = P.onFocus, H = P.suffix, z = P.allowClear, K = P.addonAfter, F = P.addonBefore, q = P.className, G = P.onChange, Q = b(P, ["prefixCls", "bordered", "status", "size", "disabled", "onBlur", "onFocus", "suffix", "allowClear", "addonAfter", "addonBefore", "className", "onChange"]), X = d.default.useContext(f.ConfigContext), E = X.getPrefixCls, T = X.direction, Y = X.input, Z = E("input", A), ee = (0, d.useRef)(null), J = (0, y.useCompactItemContext)(Z, T), te = J.compactSize, re = J.compactItemClassnames, se = d.default.useContext(g.default), _e = te || B || se, be = d.default.useContext(p.default), Se = W != null ? W : be, ie = (0, d.useContext)(m.FormItemInputContext), ge = ie.status, ue = ie.hasFeedback, he = ie.feedbackIcon, me = (0, x.getMergedStatus)(ge, V), oe = (0, _.hasPrefixSuffix)(P) || !!ue, ye = (0, d.useRef)(oe);
|
|
9162
9162
|
(0, d.useEffect)(function() {
|
|
9163
9163
|
var Ce;
|
|
9164
9164
|
oe && !ye.current && process.env.NODE_ENV !== "production" && (0, h.default)(document.activeElement === ((Ce = ee.current) === null || Ce === void 0 ? void 0 : Ce.input), "Input", "When Input is focused, dynamic add or remove prefix / suffix will make it lose focus caused by dom structure change. Read more: https://ant.design/components/input/#FAQ"), ye.current = oe;
|
|
@@ -9166,16 +9166,16 @@ function hasPrefixSuffix(e) {
|
|
|
9166
9166
|
var $e = (0, v.default)(ee, !0), Me = function(de) {
|
|
9167
9167
|
$e(), L == null || L(de);
|
|
9168
9168
|
}, Ee = function(de) {
|
|
9169
|
-
$e(),
|
|
9169
|
+
$e(), U == null || U(de);
|
|
9170
9170
|
}, ke = function(de) {
|
|
9171
9171
|
$e(), G == null || G(de);
|
|
9172
9172
|
}, le = (ue || H) && /* @__PURE__ */ d.default.createElement(d.default.Fragment, null, H, ue && he), pe;
|
|
9173
|
-
return (0, o.default)(
|
|
9173
|
+
return (0, o.default)(z) === "object" && (z == null ? void 0 : z.clearIcon) ? pe = z : z && (pe = {
|
|
9174
9174
|
clearIcon: /* @__PURE__ */ d.default.createElement(s.default, null)
|
|
9175
9175
|
}), /* @__PURE__ */ d.default.createElement(l.default, (0, a.default)({
|
|
9176
9176
|
ref: (0, c.composeRef)(k, ee),
|
|
9177
9177
|
prefixCls: Z,
|
|
9178
|
-
autoComplete:
|
|
9178
|
+
autoComplete: Y == null ? void 0 : Y.autoComplete
|
|
9179
9179
|
}, Q, {
|
|
9180
9180
|
disabled: Se || void 0,
|
|
9181
9181
|
onBlur: Me,
|
|
@@ -9222,12 +9222,12 @@ function hasPrefixSuffix(e) {
|
|
|
9222
9222
|
return S ? O = C(k, M) : (0, u.default)(P || "").length < k.length && (0, u.default)(k || "").length > M && (O = P), O;
|
|
9223
9223
|
}
|
|
9224
9224
|
var D = /* @__PURE__ */ p.forwardRef(function(S, P) {
|
|
9225
|
-
var k, M = S.prefixCls, O = S.bordered, N = O === void 0 ? !0 : O, A = S.showCount, I = A === void 0 ? !1 : A, j = S.maxLength, V = S.className, B = S.style,
|
|
9225
|
+
var k, M = S.prefixCls, O = S.bordered, N = O === void 0 ? !0 : O, A = S.showCount, I = A === void 0 ? !1 : A, j = S.maxLength, V = S.className, B = S.style, W = S.size, L = S.disabled, U = S.onCompositionStart, H = S.onCompositionEnd, z = S.onChange, K = S.status, F = b(S, ["prefixCls", "bordered", "showCount", "maxLength", "className", "style", "size", "disabled", "onCompositionStart", "onCompositionEnd", "onChange", "status"]), q = p.useContext(g.ConfigContext), G = q.getPrefixCls, Q = q.direction, X = p.useContext(y.default), E = p.useContext(m.default), T = L != null ? L : E, Y = p.useContext(x.FormItemInputContext), Z = Y.status, ee = Y.hasFeedback, J = Y.isFormItemInput, te = Y.feedbackIcon, re = (0, h.getMergedStatus)(Z, K), se = p.useRef(null), _e = p.useRef(null), be = p.useState(!1), Se = (0, s.default)(be, 2), ie = Se[0], ge = Se[1], ue = p.useRef(), he = p.useRef(0), me = (0, d.default)(F.defaultValue, {
|
|
9226
9226
|
value: F.value
|
|
9227
9227
|
}), oe = (0, s.default)(me, 2), ye = oe[0], $e = oe[1], Me = F.hidden, Ee = function(Fe, Pe) {
|
|
9228
9228
|
F.value === void 0 && ($e(Fe), Pe == null || Pe());
|
|
9229
9229
|
}, ke = Number(j) > 0, le = function(Fe) {
|
|
9230
|
-
ge(!0), ue.current = ye, he.current = Fe.currentTarget.selectionStart,
|
|
9230
|
+
ge(!0), ue.current = ye, he.current = Fe.currentTarget.selectionStart, U == null || U(Fe);
|
|
9231
9231
|
}, pe = function(Fe) {
|
|
9232
9232
|
var Pe;
|
|
9233
9233
|
ge(!1);
|
|
@@ -9236,17 +9236,17 @@ function hasPrefixSuffix(e) {
|
|
|
9236
9236
|
var Le = he.current >= j + 1 || he.current === ((Pe = ue.current) === null || Pe === void 0 ? void 0 : Pe.length);
|
|
9237
9237
|
De = w(Le, ue.current, De, j);
|
|
9238
9238
|
}
|
|
9239
|
-
De !== ye && (Ee(De), (0, _.resolveOnChange)(Fe.currentTarget, Fe,
|
|
9239
|
+
De !== ye && (Ee(De), (0, _.resolveOnChange)(Fe.currentTarget, Fe, z, De)), H == null || H(Fe);
|
|
9240
9240
|
}, Ce = function(Fe) {
|
|
9241
9241
|
var Pe = Fe.target.value;
|
|
9242
9242
|
if (!ie && ke) {
|
|
9243
9243
|
var De = Fe.target.selectionStart >= j + 1 || Fe.target.selectionStart === Pe.length || !Fe.target.selectionStart;
|
|
9244
9244
|
Pe = w(De, ye, Pe, j);
|
|
9245
9245
|
}
|
|
9246
|
-
Ee(Pe), (0, _.resolveOnChange)(Fe.currentTarget, Fe,
|
|
9246
|
+
Ee(Pe), (0, _.resolveOnChange)(Fe.currentTarget, Fe, z, Pe);
|
|
9247
9247
|
}, de = function(Fe) {
|
|
9248
9248
|
var Pe, De, Le;
|
|
9249
|
-
Ee(""), (Pe = se.current) === null || Pe === void 0 || Pe.focus(), (0, _.resolveOnChange)((Le = (De = se.current) === null || De === void 0 ? void 0 : De.resizableTextArea) === null || Le === void 0 ? void 0 : Le.textArea, Fe,
|
|
9249
|
+
Ee(""), (Pe = se.current) === null || Pe === void 0 || Pe.focus(), (0, _.resolveOnChange)((Le = (De = se.current) === null || De === void 0 ? void 0 : De.resizableTextArea) === null || Le === void 0 ? void 0 : Le.textArea, Fe, z);
|
|
9250
9250
|
}, xe = G("input", M);
|
|
9251
9251
|
p.useImperativeHandle(P, function() {
|
|
9252
9252
|
var qe;
|
|
@@ -9264,7 +9264,7 @@ function hasPrefixSuffix(e) {
|
|
|
9264
9264
|
});
|
|
9265
9265
|
var we = /* @__PURE__ */ p.createElement(c.default, (0, o.default)({}, (0, f.default)(F, ["allowClear"]), {
|
|
9266
9266
|
disabled: T,
|
|
9267
|
-
className: (0, l.default)((k = {}, (0, a.default)(k, "".concat(xe, "-borderless"), !N), (0, a.default)(k, V, V && !I), (0, a.default)(k, "".concat(xe, "-sm"), X === "small" ||
|
|
9267
|
+
className: (0, l.default)((k = {}, (0, a.default)(k, "".concat(xe, "-borderless"), !N), (0, a.default)(k, V, V && !I), (0, a.default)(k, "".concat(xe, "-sm"), X === "small" || W === "small"), (0, a.default)(k, "".concat(xe, "-lg"), X === "large" || W === "large"), k), (0, h.getStatusClassNames)(xe, re)),
|
|
9268
9268
|
style: I ? {
|
|
9269
9269
|
resize: B == null ? void 0 : B.resize
|
|
9270
9270
|
} : B,
|
|
@@ -10425,8 +10425,8 @@ function require_stream_writable() {
|
|
|
10425
10425
|
var T = k(q, Q, X);
|
|
10426
10426
|
Q !== T && (G = !0, X = "buffer", Q = T);
|
|
10427
10427
|
}
|
|
10428
|
-
var
|
|
10429
|
-
q.length +=
|
|
10428
|
+
var Y = q.objectMode ? 1 : Q.length;
|
|
10429
|
+
q.length += Y;
|
|
10430
10430
|
var Z = q.length < q.highWaterMark;
|
|
10431
10431
|
if (Z || (q.needDrain = !0), q.writing || q.corked) {
|
|
10432
10432
|
var ee = q.lastBufferedRequest;
|
|
@@ -10438,7 +10438,7 @@ function require_stream_writable() {
|
|
|
10438
10438
|
next: null
|
|
10439
10439
|
}, ee ? ee.next = q.lastBufferedRequest : q.bufferedRequest = q.lastBufferedRequest, q.bufferedRequestCount += 1;
|
|
10440
10440
|
} else
|
|
10441
|
-
O(F, q, !1,
|
|
10441
|
+
O(F, q, !1, Y, Q, X, E);
|
|
10442
10442
|
return Z;
|
|
10443
10443
|
}
|
|
10444
10444
|
function O(F, q, G, Q, X, E, T) {
|
|
@@ -10457,7 +10457,7 @@ function require_stream_writable() {
|
|
|
10457
10457
|
if (A(G), q)
|
|
10458
10458
|
N(F, G, Q, q, X);
|
|
10459
10459
|
else {
|
|
10460
|
-
var E =
|
|
10460
|
+
var E = W(G) || F.destroyed;
|
|
10461
10461
|
!E && !G.corked && !G.bufferProcessing && G.bufferedRequest && B(F, G), Q ? process.nextTick(j, F, G, E, X) : j(F, G, E, X);
|
|
10462
10462
|
}
|
|
10463
10463
|
}
|
|
@@ -10473,9 +10473,9 @@ function require_stream_writable() {
|
|
|
10473
10473
|
if (F._writev && G && G.next) {
|
|
10474
10474
|
var Q = q.bufferedRequestCount, X = new Array(Q), E = q.corkedRequestsFree;
|
|
10475
10475
|
E.entry = G;
|
|
10476
|
-
for (var T = 0,
|
|
10477
|
-
X[T] = G, G.isBuf || (
|
|
10478
|
-
X.allBuffers =
|
|
10476
|
+
for (var T = 0, Y = !0; G; )
|
|
10477
|
+
X[T] = G, G.isBuf || (Y = !1), G = G.next, T += 1;
|
|
10478
|
+
X.allBuffers = Y, O(F, q, !0, q.length, X, "", E.finish), q.pendingcb++, q.lastBufferedRequest = null, E.next ? (q.corkedRequestsFree = E.next, E.next = null) : q.corkedRequestsFree = new e(q), q.bufferedRequestCount = 0;
|
|
10479
10479
|
} else {
|
|
10480
10480
|
for (; G; ) {
|
|
10481
10481
|
var Z = G.chunk, ee = G.encoding, J = G.callback, te = q.objectMode ? 1 : Z.length;
|
|
@@ -10490,14 +10490,14 @@ function require_stream_writable() {
|
|
|
10490
10490
|
G(new g("_write()"));
|
|
10491
10491
|
}, $.prototype._writev = null, $.prototype.end = function(F, q, G) {
|
|
10492
10492
|
var Q = this._writableState;
|
|
10493
|
-
return typeof F == "function" ? (G = F, F = null, q = null) : typeof q == "function" && (G = q, q = null), F != null && this.write(F, q), Q.corked && (Q.corked = 1, this.uncork()), Q.ending ||
|
|
10493
|
+
return typeof F == "function" ? (G = F, F = null, q = null) : typeof q == "function" && (G = q, q = null), F != null && this.write(F, q), Q.corked && (Q.corked = 1, this.uncork()), Q.ending || z(this, Q, G), this;
|
|
10494
10494
|
}, Object.defineProperty($.prototype, "writableLength", {
|
|
10495
10495
|
enumerable: !1,
|
|
10496
10496
|
get: function() {
|
|
10497
10497
|
return this._writableState.length;
|
|
10498
10498
|
}
|
|
10499
10499
|
});
|
|
10500
|
-
function
|
|
10500
|
+
function W(F) {
|
|
10501
10501
|
return F.ending && F.length === 0 && F.bufferedRequest === null && !F.finished && !F.writing;
|
|
10502
10502
|
}
|
|
10503
10503
|
function L(F, q) {
|
|
@@ -10505,18 +10505,18 @@ function require_stream_writable() {
|
|
|
10505
10505
|
q.pendingcb--, G && b(F, G), q.prefinished = !0, F.emit("prefinish"), H(F, q);
|
|
10506
10506
|
});
|
|
10507
10507
|
}
|
|
10508
|
-
function
|
|
10508
|
+
function U(F, q) {
|
|
10509
10509
|
!q.prefinished && !q.finalCalled && (typeof F._final == "function" && !q.destroyed ? (q.pendingcb++, q.finalCalled = !0, process.nextTick(L, F, q)) : (q.prefinished = !0, F.emit("prefinish")));
|
|
10510
10510
|
}
|
|
10511
10511
|
function H(F, q) {
|
|
10512
|
-
var G =
|
|
10513
|
-
if (G && (
|
|
10512
|
+
var G = W(q);
|
|
10513
|
+
if (G && (U(F, q), q.pendingcb === 0 && (q.finished = !0, F.emit("finish"), q.autoDestroy))) {
|
|
10514
10514
|
var Q = F._readableState;
|
|
10515
10515
|
(!Q || Q.autoDestroy && Q.endEmitted) && F.destroy();
|
|
10516
10516
|
}
|
|
10517
10517
|
return G;
|
|
10518
10518
|
}
|
|
10519
|
-
function
|
|
10519
|
+
function z(F, q, G) {
|
|
10520
10520
|
q.ending = !0, H(F, q), G && (q.finished ? process.nextTick(G) : F.once("finish", G)), q.ended = !0, F.writable = !1;
|
|
10521
10521
|
}
|
|
10522
10522
|
function K(F, q, G) {
|
|
@@ -10961,8 +10961,8 @@ function require_stream_readable() {
|
|
|
10961
10961
|
hasRequired_stream_readable = 1, _stream_readable = S;
|
|
10962
10962
|
var e;
|
|
10963
10963
|
S.ReadableState = $, events.exports.EventEmitter;
|
|
10964
|
-
var t = function(T,
|
|
10965
|
-
return T.listeners(
|
|
10964
|
+
var t = function(T, Y) {
|
|
10965
|
+
return T.listeners(Y).length;
|
|
10966
10966
|
}, r = streamBrowser, n = require$$0.Buffer, a = commonjsGlobal.Uint8Array || function() {
|
|
10967
10967
|
};
|
|
10968
10968
|
function o(E) {
|
|
@@ -10977,13 +10977,13 @@ function require_stream_readable() {
|
|
|
10977
10977
|
var c = requireBuffer_list(), d = destroy_1, f = state, p = f.getHighWaterMark, g = errorsBrowser.codes, m = g.ERR_INVALID_ARG_TYPE, y = g.ERR_STREAM_PUSH_AFTER_EOF, x = g.ERR_METHOD_NOT_IMPLEMENTED, h = g.ERR_STREAM_UNSHIFT_AFTER_END_EVENT, v, _, b;
|
|
10978
10978
|
inherits_browser.exports(S, r);
|
|
10979
10979
|
var C = d.errorOrDestroy, w = ["error", "close", "destroy", "pause", "resume"];
|
|
10980
|
-
function D(E, T,
|
|
10980
|
+
function D(E, T, Y) {
|
|
10981
10981
|
if (typeof E.prependListener == "function")
|
|
10982
|
-
return E.prependListener(T,
|
|
10983
|
-
!E._events || !E._events[T] ? E.on(T,
|
|
10982
|
+
return E.prependListener(T, Y);
|
|
10983
|
+
!E._events || !E._events[T] ? E.on(T, Y) : Array.isArray(E._events[T]) ? E._events[T].unshift(Y) : E._events[T] = [Y, E._events[T]];
|
|
10984
10984
|
}
|
|
10985
|
-
function $(E, T,
|
|
10986
|
-
e = e || require_stream_duplex(), E = E || {}, typeof
|
|
10985
|
+
function $(E, T, Y) {
|
|
10986
|
+
e = e || require_stream_duplex(), E = E || {}, typeof Y != "boolean" && (Y = T instanceof e), this.objectMode = !!E.objectMode, Y && (this.objectMode = this.objectMode || !!E.readableObjectMode), this.highWaterMark = p(this, E, "readableHighWaterMark", Y), this.buffer = new c(), 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 = E.emitClose !== !1, this.autoDestroy = !!E.autoDestroy, this.destroyed = !1, this.defaultEncoding = E.defaultEncoding || "utf8", this.awaitDrain = 0, this.readingMore = !1, this.decoder = null, this.encoding = null, E.encoding && (v || (v = requireString_decoder().StringDecoder), this.decoder = new v(E.encoding), this.encoding = E.encoding);
|
|
10987
10987
|
}
|
|
10988
10988
|
function S(E) {
|
|
10989
10989
|
if (e = e || require_stream_duplex(), !(this instanceof S))
|
|
@@ -11002,12 +11002,12 @@ function require_stream_readable() {
|
|
|
11002
11002
|
}), S.prototype.destroy = d.destroy, S.prototype._undestroy = d.undestroy, S.prototype._destroy = function(E, T) {
|
|
11003
11003
|
T(E);
|
|
11004
11004
|
}, S.prototype.push = function(E, T) {
|
|
11005
|
-
var
|
|
11006
|
-
return
|
|
11005
|
+
var Y = this._readableState, Z;
|
|
11006
|
+
return Y.objectMode ? Z = !0 : typeof E == "string" && (T = T || Y.defaultEncoding, T !== Y.encoding && (E = n.from(E, T), T = ""), Z = !0), P(this, E, T, !1, Z);
|
|
11007
11007
|
}, S.prototype.unshift = function(E) {
|
|
11008
11008
|
return P(this, E, null, !0, !1);
|
|
11009
11009
|
};
|
|
11010
|
-
function P(E, T,
|
|
11010
|
+
function P(E, T, Y, Z, ee) {
|
|
11011
11011
|
l("readableAddChunk", T);
|
|
11012
11012
|
var J = E._readableState;
|
|
11013
11013
|
if (T === null)
|
|
@@ -11024,19 +11024,19 @@ function require_stream_readable() {
|
|
|
11024
11024
|
else {
|
|
11025
11025
|
if (J.destroyed)
|
|
11026
11026
|
return !1;
|
|
11027
|
-
J.reading = !1, J.decoder && !
|
|
11027
|
+
J.reading = !1, J.decoder && !Y ? (T = J.decoder.write(T), J.objectMode || T.length !== 0 ? k(E, J, T, !1) : B(E, J)) : k(E, J, T, !1);
|
|
11028
11028
|
}
|
|
11029
11029
|
else
|
|
11030
11030
|
Z || (J.reading = !1, B(E, J));
|
|
11031
11031
|
}
|
|
11032
11032
|
return !J.ended && (J.length < J.highWaterMark || J.length === 0);
|
|
11033
11033
|
}
|
|
11034
|
-
function k(E, T,
|
|
11035
|
-
T.flowing && T.length === 0 && !T.sync ? (T.awaitDrain = 0, E.emit("data",
|
|
11034
|
+
function k(E, T, Y, Z) {
|
|
11035
|
+
T.flowing && T.length === 0 && !T.sync ? (T.awaitDrain = 0, E.emit("data", Y)) : (T.length += T.objectMode ? 1 : Y.length, Z ? T.buffer.unshift(Y) : T.buffer.push(Y), T.needReadable && j(E)), B(E, T);
|
|
11036
11036
|
}
|
|
11037
11037
|
function M(E, T) {
|
|
11038
|
-
var
|
|
11039
|
-
return !s(T) && typeof T != "string" && T !== void 0 && !E.objectMode && (
|
|
11038
|
+
var Y;
|
|
11039
|
+
return !s(T) && typeof T != "string" && T !== void 0 && !E.objectMode && (Y = new m("chunk", ["string", "Buffer", "Uint8Array"], T)), Y;
|
|
11040
11040
|
}
|
|
11041
11041
|
S.prototype.isPaused = function() {
|
|
11042
11042
|
return this._readableState.flowing === !1;
|
|
@@ -11044,8 +11044,8 @@ function require_stream_readable() {
|
|
|
11044
11044
|
v || (v = requireString_decoder().StringDecoder);
|
|
11045
11045
|
var T = new v(E);
|
|
11046
11046
|
this._readableState.decoder = T, this._readableState.encoding = this._readableState.decoder.encoding;
|
|
11047
|
-
for (var
|
|
11048
|
-
Z += T.write(
|
|
11047
|
+
for (var Y = this._readableState.buffer.head, Z = ""; Y !== null; )
|
|
11048
|
+
Z += T.write(Y.data), Y = Y.next;
|
|
11049
11049
|
return this._readableState.buffer.clear(), Z !== "" && this._readableState.buffer.push(Z), this._readableState.length = Z.length, this;
|
|
11050
11050
|
};
|
|
11051
11051
|
var O = 1073741824;
|
|
@@ -11057,21 +11057,21 @@ function require_stream_readable() {
|
|
|
11057
11057
|
}
|
|
11058
11058
|
S.prototype.read = function(E) {
|
|
11059
11059
|
l("read", E), E = parseInt(E, 10);
|
|
11060
|
-
var T = this._readableState,
|
|
11060
|
+
var T = this._readableState, Y = E;
|
|
11061
11061
|
if (E !== 0 && (T.emittedReadable = !1), E === 0 && T.needReadable && ((T.highWaterMark !== 0 ? T.length >= T.highWaterMark : T.length > 0) || T.ended))
|
|
11062
11062
|
return l("read: emitReadable", T.length, T.ended), T.length === 0 && T.ended ? G(this) : j(this), null;
|
|
11063
11063
|
if (E = A(E, T), E === 0 && T.ended)
|
|
11064
11064
|
return T.length === 0 && G(this), null;
|
|
11065
11065
|
var Z = T.needReadable;
|
|
11066
|
-
l("need readable", Z), (T.length === 0 || T.length - E < T.highWaterMark) && (Z = !0, l("length less than watermark", Z)), T.ended || T.reading ? (Z = !1, l("reading or ended", Z)) : Z && (l("do read"), T.reading = !0, T.sync = !0, T.length === 0 && (T.needReadable = !0), this._read(T.highWaterMark), T.sync = !1, T.reading || (E = A(
|
|
11066
|
+
l("need readable", Z), (T.length === 0 || T.length - E < T.highWaterMark) && (Z = !0, l("length less than watermark", Z)), T.ended || T.reading ? (Z = !1, l("reading or ended", Z)) : Z && (l("do read"), T.reading = !0, T.sync = !0, T.length === 0 && (T.needReadable = !0), this._read(T.highWaterMark), T.sync = !1, T.reading || (E = A(Y, T)));
|
|
11067
11067
|
var ee;
|
|
11068
|
-
return E > 0 ? ee = q(E, T) : ee = null, ee === null ? (T.needReadable = T.length <= T.highWaterMark, E = 0) : (T.length -= E, T.awaitDrain = 0), T.length === 0 && (T.ended || (T.needReadable = !0),
|
|
11068
|
+
return E > 0 ? ee = q(E, T) : ee = null, ee === null ? (T.needReadable = T.length <= T.highWaterMark, E = 0) : (T.length -= E, T.awaitDrain = 0), T.length === 0 && (T.ended || (T.needReadable = !0), Y !== E && T.ended && G(this)), ee !== null && this.emit("data", ee), ee;
|
|
11069
11069
|
};
|
|
11070
11070
|
function I(E, T) {
|
|
11071
11071
|
if (l("onEofChunk"), !T.ended) {
|
|
11072
11072
|
if (T.decoder) {
|
|
11073
|
-
var
|
|
11074
|
-
|
|
11073
|
+
var Y = T.decoder.end();
|
|
11074
|
+
Y && Y.length && (T.buffer.push(Y), T.length += T.objectMode ? 1 : Y.length);
|
|
11075
11075
|
}
|
|
11076
11076
|
T.ended = !0, T.sync ? j(E) : (T.needReadable = !1, T.emittedReadable || (T.emittedReadable = !0, V(E)));
|
|
11077
11077
|
}
|
|
@@ -11085,12 +11085,12 @@ function require_stream_readable() {
|
|
|
11085
11085
|
l("emitReadable_", T.destroyed, T.length, T.ended), !T.destroyed && (T.length || T.ended) && (E.emit("readable"), T.emittedReadable = !1), T.needReadable = !T.flowing && !T.ended && T.length <= T.highWaterMark, F(E);
|
|
11086
11086
|
}
|
|
11087
11087
|
function B(E, T) {
|
|
11088
|
-
T.readingMore || (T.readingMore = !0, process.nextTick(
|
|
11088
|
+
T.readingMore || (T.readingMore = !0, process.nextTick(W, E, T));
|
|
11089
11089
|
}
|
|
11090
|
-
function
|
|
11090
|
+
function W(E, T) {
|
|
11091
11091
|
for (; !T.reading && !T.ended && (T.length < T.highWaterMark || T.flowing && T.length === 0); ) {
|
|
11092
|
-
var
|
|
11093
|
-
if (l("maybeReadMore read 0"), E.read(0),
|
|
11092
|
+
var Y = T.length;
|
|
11093
|
+
if (l("maybeReadMore read 0"), E.read(0), Y === T.length)
|
|
11094
11094
|
break;
|
|
11095
11095
|
}
|
|
11096
11096
|
T.readingMore = !1;
|
|
@@ -11098,7 +11098,7 @@ function require_stream_readable() {
|
|
|
11098
11098
|
S.prototype._read = function(E) {
|
|
11099
11099
|
C(this, new x("_read()"));
|
|
11100
11100
|
}, S.prototype.pipe = function(E, T) {
|
|
11101
|
-
var
|
|
11101
|
+
var Y = this, Z = this._readableState;
|
|
11102
11102
|
switch (Z.pipesCount) {
|
|
11103
11103
|
case 0:
|
|
11104
11104
|
Z.pipes = E;
|
|
@@ -11112,24 +11112,24 @@ function require_stream_readable() {
|
|
|
11112
11112
|
}
|
|
11113
11113
|
Z.pipesCount += 1, l("pipe count=%d opts=%j", Z.pipesCount, T);
|
|
11114
11114
|
var ee = (!T || T.end !== !1) && E !== process.stdout && E !== process.stderr, J = ee ? re : he;
|
|
11115
|
-
Z.endEmitted ? process.nextTick(J) :
|
|
11115
|
+
Z.endEmitted ? process.nextTick(J) : Y.once("end", J), E.on("unpipe", te);
|
|
11116
11116
|
function te(me, oe) {
|
|
11117
|
-
l("onunpipe"), me ===
|
|
11117
|
+
l("onunpipe"), me === Y && oe && oe.hasUnpiped === !1 && (oe.hasUnpiped = !0, be());
|
|
11118
11118
|
}
|
|
11119
11119
|
function re() {
|
|
11120
11120
|
l("onend"), E.end();
|
|
11121
11121
|
}
|
|
11122
|
-
var se = L(
|
|
11122
|
+
var se = L(Y);
|
|
11123
11123
|
E.on("drain", se);
|
|
11124
11124
|
var _e = !1;
|
|
11125
11125
|
function be() {
|
|
11126
|
-
l("cleanup"), E.removeListener("close", ge), E.removeListener("finish", ue), E.removeListener("drain", se), E.removeListener("error", ie), E.removeListener("unpipe", te),
|
|
11126
|
+
l("cleanup"), E.removeListener("close", ge), E.removeListener("finish", ue), E.removeListener("drain", se), E.removeListener("error", ie), E.removeListener("unpipe", te), Y.removeListener("end", re), Y.removeListener("end", he), Y.removeListener("data", Se), _e = !0, Z.awaitDrain && (!E._writableState || E._writableState.needDrain) && se();
|
|
11127
11127
|
}
|
|
11128
|
-
|
|
11128
|
+
Y.on("data", Se);
|
|
11129
11129
|
function Se(me) {
|
|
11130
11130
|
l("ondata");
|
|
11131
11131
|
var oe = E.write(me);
|
|
11132
|
-
l("dest.write", oe), oe === !1 && ((Z.pipesCount === 1 && Z.pipes === E || Z.pipesCount > 1 && X(Z.pipes, E) !== -1) && !_e && (l("false write response, pause", Z.awaitDrain), Z.awaitDrain++),
|
|
11132
|
+
l("dest.write", oe), oe === !1 && ((Z.pipesCount === 1 && Z.pipes === E || Z.pipesCount > 1 && X(Z.pipes, E) !== -1) && !_e && (l("false write response, pause", Z.awaitDrain), Z.awaitDrain++), Y.pause());
|
|
11133
11133
|
}
|
|
11134
11134
|
function ie(me) {
|
|
11135
11135
|
l("onerror", me), he(), E.removeListener("error", ie), t(E, "error") === 0 && C(E, me);
|
|
@@ -11144,24 +11144,24 @@ function require_stream_readable() {
|
|
|
11144
11144
|
}
|
|
11145
11145
|
E.once("finish", ue);
|
|
11146
11146
|
function he() {
|
|
11147
|
-
l("unpipe"),
|
|
11147
|
+
l("unpipe"), Y.unpipe(E);
|
|
11148
11148
|
}
|
|
11149
|
-
return E.emit("pipe",
|
|
11149
|
+
return E.emit("pipe", Y), Z.flowing || (l("pipe resume"), Y.resume()), E;
|
|
11150
11150
|
};
|
|
11151
11151
|
function L(E) {
|
|
11152
11152
|
return function() {
|
|
11153
|
-
var
|
|
11154
|
-
l("pipeOnDrain",
|
|
11153
|
+
var Y = E._readableState;
|
|
11154
|
+
l("pipeOnDrain", Y.awaitDrain), Y.awaitDrain && Y.awaitDrain--, Y.awaitDrain === 0 && t(E, "data") && (Y.flowing = !0, F(E));
|
|
11155
11155
|
};
|
|
11156
11156
|
}
|
|
11157
11157
|
S.prototype.unpipe = function(E) {
|
|
11158
|
-
var T = this._readableState,
|
|
11158
|
+
var T = this._readableState, Y = {
|
|
11159
11159
|
hasUnpiped: !1
|
|
11160
11160
|
};
|
|
11161
11161
|
if (T.pipesCount === 0)
|
|
11162
11162
|
return this;
|
|
11163
11163
|
if (T.pipesCount === 1)
|
|
11164
|
-
return E && E !== T.pipes ? this : (E || (E = T.pipes), T.pipes = null, T.pipesCount = 0, T.flowing = !1, E && E.emit("unpipe", this,
|
|
11164
|
+
return E && E !== T.pipes ? this : (E || (E = T.pipes), T.pipes = null, T.pipesCount = 0, T.flowing = !1, E && E.emit("unpipe", this, Y), this);
|
|
11165
11165
|
if (!E) {
|
|
11166
11166
|
var Z = T.pipes, ee = T.pipesCount;
|
|
11167
11167
|
T.pipes = null, T.pipesCount = 0, T.flowing = !1;
|
|
@@ -11172,18 +11172,18 @@ function require_stream_readable() {
|
|
|
11172
11172
|
return this;
|
|
11173
11173
|
}
|
|
11174
11174
|
var te = X(T.pipes, E);
|
|
11175
|
-
return te === -1 ? this : (T.pipes.splice(te, 1), T.pipesCount -= 1, T.pipesCount === 1 && (T.pipes = T.pipes[0]), E.emit("unpipe", this,
|
|
11175
|
+
return te === -1 ? this : (T.pipes.splice(te, 1), T.pipesCount -= 1, T.pipesCount === 1 && (T.pipes = T.pipes[0]), E.emit("unpipe", this, Y), this);
|
|
11176
11176
|
}, S.prototype.on = function(E, T) {
|
|
11177
|
-
var
|
|
11178
|
-
return E === "data" ? (Z.readableListening = this.listenerCount("readable") > 0, Z.flowing !== !1 && this.resume()) : E === "readable" && !Z.endEmitted && !Z.readableListening && (Z.readableListening = Z.needReadable = !0, Z.flowing = !1, Z.emittedReadable = !1, l("on readable", Z.length, Z.reading), Z.length ? j(this) : Z.reading || process.nextTick(H, this)),
|
|
11177
|
+
var Y = r.prototype.on.call(this, E, T), Z = this._readableState;
|
|
11178
|
+
return E === "data" ? (Z.readableListening = this.listenerCount("readable") > 0, Z.flowing !== !1 && this.resume()) : E === "readable" && !Z.endEmitted && !Z.readableListening && (Z.readableListening = Z.needReadable = !0, Z.flowing = !1, Z.emittedReadable = !1, l("on readable", Z.length, Z.reading), Z.length ? j(this) : Z.reading || process.nextTick(H, this)), Y;
|
|
11179
11179
|
}, S.prototype.addListener = S.prototype.on, S.prototype.removeListener = function(E, T) {
|
|
11180
|
-
var
|
|
11181
|
-
return E === "readable" && process.nextTick(
|
|
11180
|
+
var Y = r.prototype.removeListener.call(this, E, T);
|
|
11181
|
+
return E === "readable" && process.nextTick(U, this), Y;
|
|
11182
11182
|
}, S.prototype.removeAllListeners = function(E) {
|
|
11183
11183
|
var T = r.prototype.removeAllListeners.apply(this, arguments);
|
|
11184
|
-
return (E === "readable" || E === void 0) && process.nextTick(
|
|
11184
|
+
return (E === "readable" || E === void 0) && process.nextTick(U, this), T;
|
|
11185
11185
|
};
|
|
11186
|
-
function
|
|
11186
|
+
function U(E) {
|
|
11187
11187
|
var T = E._readableState;
|
|
11188
11188
|
T.readableListening = E.listenerCount("readable") > 0, T.resumeScheduled && !T.paused ? T.flowing = !0 : E.listenerCount("data") > 0 && E.resume();
|
|
11189
11189
|
}
|
|
@@ -11192,9 +11192,9 @@ function require_stream_readable() {
|
|
|
11192
11192
|
}
|
|
11193
11193
|
S.prototype.resume = function() {
|
|
11194
11194
|
var E = this._readableState;
|
|
11195
|
-
return E.flowing || (l("resume"), E.flowing = !E.readableListening,
|
|
11195
|
+
return E.flowing || (l("resume"), E.flowing = !E.readableListening, z(this, E)), E.paused = !1, this;
|
|
11196
11196
|
};
|
|
11197
|
-
function
|
|
11197
|
+
function z(E, T) {
|
|
11198
11198
|
T.resumeScheduled || (T.resumeScheduled = !0, process.nextTick(K, E, T));
|
|
11199
11199
|
}
|
|
11200
11200
|
function K(E, T) {
|
|
@@ -11209,15 +11209,15 @@ function require_stream_readable() {
|
|
|
11209
11209
|
;
|
|
11210
11210
|
}
|
|
11211
11211
|
S.prototype.wrap = function(E) {
|
|
11212
|
-
var T = this,
|
|
11212
|
+
var T = this, Y = this._readableState, Z = !1;
|
|
11213
11213
|
E.on("end", function() {
|
|
11214
|
-
if (l("wrapped end"),
|
|
11215
|
-
var te =
|
|
11214
|
+
if (l("wrapped end"), Y.decoder && !Y.ended) {
|
|
11215
|
+
var te = Y.decoder.end();
|
|
11216
11216
|
te && te.length && T.push(te);
|
|
11217
11217
|
}
|
|
11218
11218
|
T.push(null);
|
|
11219
11219
|
}), E.on("data", function(te) {
|
|
11220
|
-
if (l("wrapped data"),
|
|
11220
|
+
if (l("wrapped data"), Y.decoder && (te = Y.decoder.write(te)), !(Y.objectMode && te == null) && !(!Y.objectMode && (!te || !te.length))) {
|
|
11221
11221
|
var re = T.push(te);
|
|
11222
11222
|
re || (Z = !0, E.pause());
|
|
11223
11223
|
}
|
|
@@ -11262,8 +11262,8 @@ function require_stream_readable() {
|
|
|
11262
11262
|
function q(E, T) {
|
|
11263
11263
|
if (T.length === 0)
|
|
11264
11264
|
return null;
|
|
11265
|
-
var
|
|
11266
|
-
return T.objectMode ?
|
|
11265
|
+
var Y;
|
|
11266
|
+
return T.objectMode ? Y = T.buffer.shift() : !E || E >= T.length ? (T.decoder ? Y = T.buffer.join("") : T.buffer.length === 1 ? Y = T.buffer.first() : Y = T.buffer.concat(T.length), T.buffer.clear()) : Y = T.buffer.consume(E, T.decoder), Y;
|
|
11267
11267
|
}
|
|
11268
11268
|
function G(E) {
|
|
11269
11269
|
var T = E._readableState;
|
|
@@ -11271,17 +11271,17 @@ function require_stream_readable() {
|
|
|
11271
11271
|
}
|
|
11272
11272
|
function Q(E, T) {
|
|
11273
11273
|
if (l("endReadableNT", E.endEmitted, E.length), !E.endEmitted && E.length === 0 && (E.endEmitted = !0, T.readable = !1, T.emit("end"), E.autoDestroy)) {
|
|
11274
|
-
var
|
|
11275
|
-
(!
|
|
11274
|
+
var Y = T._writableState;
|
|
11275
|
+
(!Y || Y.autoDestroy && Y.finished) && T.destroy();
|
|
11276
11276
|
}
|
|
11277
11277
|
}
|
|
11278
11278
|
typeof Symbol == "function" && (S.from = function(E, T) {
|
|
11279
11279
|
return b === void 0 && (b = requireFromBrowser()), b(S, E, T);
|
|
11280
11280
|
});
|
|
11281
11281
|
function X(E, T) {
|
|
11282
|
-
for (var
|
|
11283
|
-
if (E[
|
|
11284
|
-
return
|
|
11282
|
+
for (var Y = 0, Z = E.length; Y < Z; Y++)
|
|
11283
|
+
if (E[Y] === T)
|
|
11284
|
+
return Y;
|
|
11285
11285
|
return -1;
|
|
11286
11286
|
}
|
|
11287
11287
|
return _stream_readable;
|
|
@@ -14387,13 +14387,13 @@ const transformPlainMany2Ones = ({
|
|
|
14387
14387
|
setLimit: C,
|
|
14388
14388
|
searchParams: w = [],
|
|
14389
14389
|
setSearchValues: D
|
|
14390
|
-
} = e, [$, S] = useState$1(!1), [P, k] = useState$1(!1), [M, O] = useState$1(), [N, A] = useState$1(1), [I, j] = useState$1(0), [V, B] = useState$1(), [
|
|
14390
|
+
} = e, [$, S] = useState$1(!1), [P, k] = useState$1(!1), [M, O] = useState$1(), [N, A] = useState$1(1), [I, j] = useState$1(0), [V, B] = useState$1(), [W, L] = useState$1([]), [U, H] = useState$1(void 0), z = useRef(b || DEFAULT_SEARCH_LIMIT$1), K = useRef([]), F = useCallback((J) => {
|
|
14391
14391
|
x == null || x([...J]), L([...J]);
|
|
14392
|
-
}, []), q = useCallback(() => h ||
|
|
14392
|
+
}, []), q = useCallback(() => h || W, [h, W]), G = useCallback(async () => {
|
|
14393
14393
|
const J = await ConnectionProvider.getHandler().nameSearch({
|
|
14394
14394
|
model: t,
|
|
14395
14395
|
payload: u,
|
|
14396
|
-
limit:
|
|
14396
|
+
limit: z.current,
|
|
14397
14397
|
attrs: v,
|
|
14398
14398
|
context: c
|
|
14399
14399
|
});
|
|
@@ -14434,7 +14434,7 @@ const transformPlainMany2Ones = ({
|
|
|
14434
14434
|
async (J) => {
|
|
14435
14435
|
const { params: te, newOffset: re } = J || {}, se = mergeParams(te || w, v), { colors: _e } = getTree(f), { totalItems: be, results: Se, attrsEvaluated: ie } = await ConnectionProvider.getHandler().searchForTree({
|
|
14436
14436
|
params: se,
|
|
14437
|
-
limit:
|
|
14437
|
+
limit: z.current,
|
|
14438
14438
|
offset: re || I,
|
|
14439
14439
|
model: t,
|
|
14440
14440
|
fields: f.field_parent ? { ...f.fields, [f.field_parent]: {} } : f.fields,
|
|
@@ -14518,7 +14518,7 @@ const transformPlainMany2Ones = ({
|
|
|
14518
14518
|
), T = useCallback(
|
|
14519
14519
|
(J) => {
|
|
14520
14520
|
const { params: te, searchValues: re, limit: se, offset: _e } = J;
|
|
14521
|
-
$ || (r == null || r(void 0), n == null || n([]), D == null || D(re), a == null || a(te), o == null || o(!1), k(!0), O(void 0), A(1), se && (
|
|
14521
|
+
$ || (r == null || r(void 0), n == null || n([]), D == null || D(re), a == null || a(te), o == null || o(!1), k(!0), O(void 0), A(1), se && (z.current = se, C == null || C(se)), _e && j(_e), X({
|
|
14522
14522
|
params: te,
|
|
14523
14523
|
newOffset: _e
|
|
14524
14524
|
}));
|
|
@@ -14536,7 +14536,7 @@ const transformPlainMany2Ones = ({
|
|
|
14536
14536
|
j,
|
|
14537
14537
|
X
|
|
14538
14538
|
]
|
|
14539
|
-
),
|
|
14539
|
+
), Y = useCallback(
|
|
14540
14540
|
(J) => {
|
|
14541
14541
|
S(!0), A(J), j((J - 1) * b);
|
|
14542
14542
|
},
|
|
@@ -14575,10 +14575,10 @@ const transformPlainMany2Ones = ({
|
|
|
14575
14575
|
offset: I,
|
|
14576
14576
|
limit: b,
|
|
14577
14577
|
getResults: q,
|
|
14578
|
-
requestPageChange:
|
|
14578
|
+
requestPageChange: Y,
|
|
14579
14579
|
changeSort: E,
|
|
14580
14580
|
fetchChildrenForRecord: ee,
|
|
14581
|
-
colorsForResults:
|
|
14581
|
+
colorsForResults: U,
|
|
14582
14582
|
totalItems: V
|
|
14583
14583
|
};
|
|
14584
14584
|
}, ActionViewContext = React__default.createContext(null), ActionViewProvider = (e) => {
|
|
@@ -14608,7 +14608,7 @@ const transformPlainMany2Ones = ({
|
|
|
14608
14608
|
setSearchTreeNameSearch: D,
|
|
14609
14609
|
goToResourceId: $,
|
|
14610
14610
|
limit: S
|
|
14611
|
-
} = e, [P, k] = useState$1(!1), [M, O] = useState$1(!1), [N, A] = useState$1(!1), [I, j] = useState$1(!0), [V, B] = useState$1(!0), [
|
|
14611
|
+
} = e, [P, k] = useState$1(!1), [M, O] = useState$1(!1), [N, A] = useState$1(!1), [I, j] = useState$1(!0), [V, B] = useState$1(!0), [W, L] = useState$1([]), [U, H] = useState$1(!1), [z, K] = useState$1([]), [F, q] = useState$1(!1), [G, Q] = useState$1(!0), [X, E] = useState$1(), [T, Y] = useState$1({}), [Z, ee] = useState$1(S !== void 0 ? S : DEFAULT_SEARCH_LIMIT$1), [J, te] = useState$1(n);
|
|
14612
14612
|
useEffect(() => {
|
|
14613
14613
|
p && p.length > 0 && !g && (m == null || m(0), d == null || d(p[0].id));
|
|
14614
14614
|
}, [p]), useEffect(() => {
|
|
@@ -14649,14 +14649,14 @@ const transformPlainMany2Ones = ({
|
|
|
14649
14649
|
setFormIsLoading: j,
|
|
14650
14650
|
treeIsLoading: V,
|
|
14651
14651
|
setTreeIsLoading: B,
|
|
14652
|
-
attachments:
|
|
14652
|
+
attachments: W,
|
|
14653
14653
|
setAttachments: L,
|
|
14654
14654
|
selectedRowItems: C,
|
|
14655
14655
|
setSelectedRowItems: b,
|
|
14656
|
-
duplicatingItem:
|
|
14656
|
+
duplicatingItem: U,
|
|
14657
14657
|
setDuplicatingItem: H,
|
|
14658
14658
|
setSearchParams: K,
|
|
14659
|
-
searchParams:
|
|
14659
|
+
searchParams: z,
|
|
14660
14660
|
searchVisible: F,
|
|
14661
14661
|
setSearchVisible: q,
|
|
14662
14662
|
sorter: x,
|
|
@@ -14671,7 +14671,7 @@ const transformPlainMany2Ones = ({
|
|
|
14671
14671
|
setPreviousView: E,
|
|
14672
14672
|
goToResourceId: $,
|
|
14673
14673
|
searchValues: T,
|
|
14674
|
-
setSearchValues:
|
|
14674
|
+
setSearchValues: Y,
|
|
14675
14675
|
limit: Z,
|
|
14676
14676
|
setLimit: ee,
|
|
14677
14677
|
setTitle: te
|
|
@@ -14753,7 +14753,7 @@ const transformPlainMany2Ones = ({
|
|
|
14753
14753
|
values: P
|
|
14754
14754
|
}) : M;
|
|
14755
14755
|
try {
|
|
14756
|
-
const
|
|
14756
|
+
const W = await ConnectionProvider.getHandler().createReport({
|
|
14757
14757
|
model: O,
|
|
14758
14758
|
name: A,
|
|
14759
14759
|
datas: N,
|
|
@@ -14764,10 +14764,10 @@ const transformPlainMany2Ones = ({
|
|
|
14764
14764
|
}
|
|
14765
14765
|
});
|
|
14766
14766
|
u(!0), o.current = !0, a.current = setInterval(() => {
|
|
14767
|
-
h(
|
|
14767
|
+
h(W);
|
|
14768
14768
|
}, 1e3);
|
|
14769
|
-
} catch (
|
|
14770
|
-
o.current = !1, clearInterval(a.current), showDialog$8(
|
|
14769
|
+
} catch (W) {
|
|
14770
|
+
o.current = !1, clearInterval(a.current), showDialog$8(W), u(!1);
|
|
14771
14771
|
}
|
|
14772
14772
|
}
|
|
14773
14773
|
async function h(D) {
|
|
@@ -14859,12 +14859,12 @@ const transformPlainMany2Ones = ({
|
|
|
14859
14859
|
let I;
|
|
14860
14860
|
const j = k.view_mode.split(","), V = [];
|
|
14861
14861
|
for (const B of j) {
|
|
14862
|
-
const
|
|
14862
|
+
const W = await ConnectionProvider.getHandler().getView({
|
|
14863
14863
|
model: k.res_model,
|
|
14864
14864
|
type: B,
|
|
14865
14865
|
context: O
|
|
14866
14866
|
});
|
|
14867
|
-
V.push([
|
|
14867
|
+
V.push([W.view_id, B]);
|
|
14868
14868
|
}
|
|
14869
14869
|
if (k.view_id)
|
|
14870
14870
|
I = {
|
|
@@ -14872,9 +14872,9 @@ const transformPlainMany2Ones = ({
|
|
|
14872
14872
|
type: k.view_mode.split(",")[0]
|
|
14873
14873
|
};
|
|
14874
14874
|
else {
|
|
14875
|
-
const B = k.view_mode.split(",")[0], [
|
|
14875
|
+
const B = k.view_mode.split(",")[0], [W] = V.find(([L, U]) => U === B);
|
|
14876
14876
|
I = {
|
|
14877
|
-
id:
|
|
14877
|
+
id: W,
|
|
14878
14878
|
type: B
|
|
14879
14879
|
};
|
|
14880
14880
|
}
|
|
@@ -15010,9 +15010,9 @@ function Form(e, t) {
|
|
|
15010
15010
|
} = e, {
|
|
15011
15011
|
t: D,
|
|
15012
15012
|
lang: $
|
|
15013
|
-
} = useContext(LocaleContext), [S, P] = useState$1(!1), [k, M] = useState$1(), [O, N] = useState$1(), [A] = Form$3.useForm(), [I, j] = useState$1(), [V, B] = useState$1(),
|
|
15013
|
+
} = useContext(LocaleContext), [S, P] = useState$1(!1), [k, M] = useState$1(), [O, N] = useState$1(), [A] = Form$3.useForm(), [I, j] = useState$1(), [V, B] = useState$1(), W = useContext(FormModalContext), [L, U] = useState$1(), [H, z] = useState$1(!1), K = useRef(), F = useRef({}), q = useRef({}), G = useRef(!1), Q = useRef(!1), X = L < WIDTH_BREAKPOINT, E = useContext(FormContext$2), {
|
|
15014
15014
|
activeId: T,
|
|
15015
|
-
getPlainValues:
|
|
15015
|
+
getPlainValues: Y
|
|
15016
15016
|
} = E || {}, Z = useContext(ActionViewContext), {
|
|
15017
15017
|
setFormIsSaving: ee = void 0,
|
|
15018
15018
|
setFormHasChanges: J = void 0,
|
|
@@ -15047,7 +15047,7 @@ function Form(e, t) {
|
|
|
15047
15047
|
}, [n, r, g, m, _]), useEffect(() => {
|
|
15048
15048
|
H && (Qe({
|
|
15049
15049
|
elementHasLostFocus: !0
|
|
15050
|
-
}),
|
|
15050
|
+
}), z(!1));
|
|
15051
15051
|
}, [H]);
|
|
15052
15052
|
const ue = (ae, ne, ce) => {
|
|
15053
15053
|
J == null || J(!1), ee == null || ee(!1), o == null || o(ae, ne, ce), te == null || te(ae);
|
|
@@ -15076,7 +15076,7 @@ function Form(e, t) {
|
|
|
15076
15076
|
let ce = {};
|
|
15077
15077
|
return Object.keys(ae).forEach((fe) => {
|
|
15078
15078
|
const Oe = ae[fe];
|
|
15079
|
-
ne[fe] && ne[fe].type === "many2one" && Oe && Array.isArray(Oe) && Oe.length === 2 ? ce[fe] = Oe[0] : ne[fe] && (ne[fe].type === "one2many" || ne[fe].type === "many2many") && Oe && Oe.items ? ce[fe] = Oe.items.filter((
|
|
15079
|
+
ne[fe] && ne[fe].type === "many2one" && Oe && Array.isArray(Oe) && Oe.length === 2 ? ce[fe] = Oe[0] : ne[fe] && (ne[fe].type === "one2many" || ne[fe].type === "many2many") && Oe && Oe.items ? ce[fe] = Oe.items.filter((Ye) => Ye.operation !== "pendingRemove").map((Ye) => Ye.id) : ce[fe] = Oe;
|
|
15080
15080
|
}), ce;
|
|
15081
15081
|
}
|
|
15082
15082
|
function Ee() {
|
|
@@ -15176,7 +15176,7 @@ function Form(e, t) {
|
|
|
15176
15176
|
fields: ce,
|
|
15177
15177
|
arch: fe,
|
|
15178
15178
|
values: ne
|
|
15179
|
-
}), re == null || re(!1), J == null || J(!1), Oe &&
|
|
15179
|
+
}), re == null || re(!1), J == null || J(!1), Oe && z(!0);
|
|
15180
15180
|
}, je = async () => new Promise(async (ae) => {
|
|
15181
15181
|
Ce() ? showDialog$6({
|
|
15182
15182
|
lang: $,
|
|
@@ -15206,10 +15206,10 @@ function Form(e, t) {
|
|
|
15206
15206
|
reset: ce,
|
|
15207
15207
|
isDefaultGet: fe = !1
|
|
15208
15208
|
}) => {
|
|
15209
|
-
const
|
|
15209
|
+
const Ye = {
|
|
15210
15210
|
...ce ? {} : A.getFieldsValue(!0),
|
|
15211
15211
|
...ae
|
|
15212
|
-
}, Ze = processValues(
|
|
15212
|
+
}, Ze = processValues(Ye, ne), st = Object.keys(ne).map((tt) => {
|
|
15213
15213
|
const gt = Ze[tt] !== void 0 ? Ze[tt] : void 0;
|
|
15214
15214
|
return {
|
|
15215
15215
|
name: tt,
|
|
@@ -15331,7 +15331,7 @@ function Form(e, t) {
|
|
|
15331
15331
|
...ce,
|
|
15332
15332
|
...le()
|
|
15333
15333
|
}, ae)
|
|
15334
|
-
}), N(fe), fe.string && fe.string !== _e && (be == null || be(fe.string)),
|
|
15334
|
+
}), N(fe), fe.string && fe.string !== _e && (be == null || be(fe.string)), W && fe.string && ((Oe = W.setTitle) == null || Oe.call(W, fe.string));
|
|
15335
15335
|
}, Qe = async ({
|
|
15336
15336
|
elementHasLostFocus: ae = !1
|
|
15337
15337
|
}) => {
|
|
@@ -15381,7 +15381,7 @@ function Form(e, t) {
|
|
|
15381
15381
|
...O == null ? void 0 : O.context
|
|
15382
15382
|
}
|
|
15383
15383
|
},
|
|
15384
|
-
parentValues:
|
|
15384
|
+
parentValues: Y == null ? void 0 : Y(),
|
|
15385
15385
|
onChangeFieldActionArgs: ne.args
|
|
15386
15386
|
}), fe = await ConnectionProvider.getHandler().executeOnChange({
|
|
15387
15387
|
model: r,
|
|
@@ -15408,9 +15408,9 @@ function Form(e, t) {
|
|
|
15408
15408
|
if (fe.warning && fe.warning.title && fe.warning.message && !G.current) {
|
|
15409
15409
|
const {
|
|
15410
15410
|
title: Oe,
|
|
15411
|
-
message:
|
|
15411
|
+
message: Ye
|
|
15412
15412
|
} = fe.warning;
|
|
15413
|
-
G.current = !0, showDialog$4(Oe,
|
|
15413
|
+
G.current = !0, showDialog$4(Oe, Ye, () => {
|
|
15414
15414
|
G.current = !1;
|
|
15415
15415
|
});
|
|
15416
15416
|
}
|
|
@@ -15597,7 +15597,7 @@ function Form(e, t) {
|
|
|
15597
15597
|
bounds: !0,
|
|
15598
15598
|
onResize: (ae) => {
|
|
15599
15599
|
var ne;
|
|
15600
|
-
|
|
15600
|
+
U((ne = ae.bounds) == null ? void 0 : ne.width);
|
|
15601
15601
|
},
|
|
15602
15602
|
children: ({
|
|
15603
15603
|
measureRef: ae
|
|
@@ -19169,26 +19169,26 @@ function Tree(e) {
|
|
|
19169
19169
|
});
|
|
19170
19170
|
function V() {
|
|
19171
19171
|
var K;
|
|
19172
|
-
const
|
|
19172
|
+
const U = $.current.columns.filter((F) => F.sum !== void 0).map((F) => ({
|
|
19173
19173
|
label: F.sum,
|
|
19174
19174
|
field: F.id
|
|
19175
19175
|
}));
|
|
19176
|
-
if (!
|
|
19176
|
+
if (!U || U.length === 0)
|
|
19177
19177
|
return null;
|
|
19178
|
-
let H = [],
|
|
19179
|
-
return
|
|
19180
|
-
const q =
|
|
19178
|
+
let H = [], z = ((K = d == null ? void 0 : d.selectedRowKeys) == null ? void 0 : K.length) > 0 ? _.filter((F) => d == null ? void 0 : d.selectedRowKeys.includes(F.id)) : _;
|
|
19179
|
+
return U.forEach((F) => {
|
|
19180
|
+
const q = z.reduce((G, Q) => Q[F.field] && !isNaN(Q[F.field]) ? G + Q[F.field] : G, 0);
|
|
19181
19181
|
H.push(`${F.label}: ${Math.round(q * 100) / 100}`);
|
|
19182
19182
|
}), /* @__PURE__ */ jsx("div", {
|
|
19183
19183
|
className: "p-1 pb-0 pl-2 mt-2 bg-gray-50",
|
|
19184
19184
|
children: H.join(", ")
|
|
19185
19185
|
});
|
|
19186
19186
|
}
|
|
19187
|
-
let B,
|
|
19187
|
+
let B, W = f;
|
|
19188
19188
|
if ($.current !== null) {
|
|
19189
19189
|
B = calculateColumnsWidth(C, _, 600);
|
|
19190
|
-
const
|
|
19191
|
-
f &&
|
|
19190
|
+
const U = $.current;
|
|
19191
|
+
f && U.columns.some((H) => H.sum !== void 0) && (W = f - 30);
|
|
19192
19192
|
}
|
|
19193
19193
|
return $.current === null ? /* @__PURE__ */ jsx(Spin, {
|
|
19194
19194
|
style: {
|
|
@@ -19196,7 +19196,7 @@ function Tree(e) {
|
|
|
19196
19196
|
}
|
|
19197
19197
|
}) : /* @__PURE__ */ jsxs("div", {
|
|
19198
19198
|
children: [j(), /* @__PURE__ */ jsx(Table, {
|
|
19199
|
-
height:
|
|
19199
|
+
height: W,
|
|
19200
19200
|
columns: B.columns,
|
|
19201
19201
|
dataSource: _,
|
|
19202
19202
|
loading: u,
|
|
@@ -19242,11 +19242,11 @@ function SearchTree(e, t) {
|
|
|
19242
19242
|
setResults: j = void 0,
|
|
19243
19243
|
setCurrentItemIndex: V = void 0,
|
|
19244
19244
|
currentId: B = void 0,
|
|
19245
|
-
results:
|
|
19245
|
+
results: W = void 0,
|
|
19246
19246
|
selectedRowItems: L = void 0,
|
|
19247
|
-
setSelectedRowItems:
|
|
19247
|
+
setSelectedRowItems: U = void 0,
|
|
19248
19248
|
searchParams: H = [],
|
|
19249
|
-
setSearchParams:
|
|
19249
|
+
setSearchParams: z = void 0,
|
|
19250
19250
|
searchVisible: K = !0,
|
|
19251
19251
|
setSearchVisible: F = void 0,
|
|
19252
19252
|
sorter: q = void 0,
|
|
@@ -19255,7 +19255,7 @@ function SearchTree(e, t) {
|
|
|
19255
19255
|
setSearchTreeNameSearch: X = void 0,
|
|
19256
19256
|
setTreeIsLoading: E = void 0,
|
|
19257
19257
|
searchValues: T = {},
|
|
19258
|
-
setSearchValues:
|
|
19258
|
+
setSearchValues: Y = void 0,
|
|
19259
19259
|
limit: Z = DEFAULT_SEARCH_LIMIT$1,
|
|
19260
19260
|
setLimit: ee = void 0
|
|
19261
19261
|
} = (d ? I : {}) || {}, {
|
|
@@ -19276,9 +19276,9 @@ function SearchTree(e, t) {
|
|
|
19276
19276
|
} = useSearch({
|
|
19277
19277
|
model: v,
|
|
19278
19278
|
setSearchTreeNameSearch: X,
|
|
19279
|
-
setSelectedRowItems:
|
|
19280
|
-
setSearchParams:
|
|
19281
|
-
setSearchValues:
|
|
19279
|
+
setSelectedRowItems: U,
|
|
19280
|
+
setSearchParams: z,
|
|
19281
|
+
setSearchValues: Y,
|
|
19282
19282
|
searchParams: H,
|
|
19283
19283
|
setSearchVisible: F,
|
|
19284
19284
|
setTreeIsLoading: E,
|
|
@@ -19291,7 +19291,7 @@ function SearchTree(e, t) {
|
|
|
19291
19291
|
setSorter: G,
|
|
19292
19292
|
setCurrentItemIndex: V,
|
|
19293
19293
|
setResultsActionView: j,
|
|
19294
|
-
resultsActionView:
|
|
19294
|
+
resultsActionView: W,
|
|
19295
19295
|
domain: l,
|
|
19296
19296
|
currentId: B,
|
|
19297
19297
|
setActionViewTotalItems: Q,
|
|
@@ -19376,7 +19376,7 @@ function SearchTree(e, t) {
|
|
|
19376
19376
|
};
|
|
19377
19377
|
function pe(we) {
|
|
19378
19378
|
const Ae = ge().filter((Ve) => we.includes(Ve.id));
|
|
19379
|
-
|
|
19379
|
+
U == null || U(Ae), p == null || p(we);
|
|
19380
19380
|
}
|
|
19381
19381
|
function Ce() {
|
|
19382
19382
|
return b != null && b.isExpandable ? O - 160 : O - (P + 210);
|
|
@@ -19573,15 +19573,15 @@ const SearchTree$1 = forwardRef(SearchTree), SearchModal = (e) => {
|
|
|
19573
19573
|
elementHasLostFocus: M
|
|
19574
19574
|
} = D || {}, O = useRef([]), [N, A] = useState$1([]), I = t && t[0] || void 0, j = t && t[1] || "";
|
|
19575
19575
|
useEffect(() => {
|
|
19576
|
-
!Array.isArray(t) && t &&
|
|
19576
|
+
!Array.isArray(t) && t && U(t);
|
|
19577
19577
|
}, [t]), useEffect(() => {
|
|
19578
|
-
I && j.length === 0 ?
|
|
19578
|
+
I && j.length === 0 ? U(I) : I && j.length > 0 ? C(j) : !I && !j && C(w.current || "");
|
|
19579
19579
|
}, [t]);
|
|
19580
19580
|
const V = (F) => {
|
|
19581
19581
|
r == null || r(F), M == null || M();
|
|
19582
19582
|
}, B = (F) => {
|
|
19583
19583
|
w.current = F.target.value, V([void 0, ""]);
|
|
19584
|
-
},
|
|
19584
|
+
}, W = async () => {
|
|
19585
19585
|
if (!y && b !== j) {
|
|
19586
19586
|
if (await new Promise((F) => setTimeout(F, 100)), _.current) {
|
|
19587
19587
|
V([void 0, ""]);
|
|
@@ -19619,11 +19619,11 @@ const SearchTree$1 = forwardRef(SearchTree), SearchModal = (e) => {
|
|
|
19619
19619
|
},
|
|
19620
19620
|
totalItems: 2
|
|
19621
19621
|
});
|
|
19622
|
-
q.length === 1 ?
|
|
19622
|
+
q.length === 1 ? U(q[0]) : (v(F), p(!0));
|
|
19623
19623
|
return;
|
|
19624
19624
|
}
|
|
19625
19625
|
v(F), p(!0);
|
|
19626
|
-
},
|
|
19626
|
+
}, U = async (F) => {
|
|
19627
19627
|
x(!0);
|
|
19628
19628
|
try {
|
|
19629
19629
|
const q = await ConnectionProvider.getHandler().execute({
|
|
@@ -19656,8 +19656,8 @@ const SearchTree$1 = forwardRef(SearchTree), SearchModal = (e) => {
|
|
|
19656
19656
|
widgetFieldName: l
|
|
19657
19657
|
}))), A(O.current);
|
|
19658
19658
|
}
|
|
19659
|
-
async function
|
|
19660
|
-
F.keyCode === 13 ? (F.preventDefault(), F.stopPropagation(), await
|
|
19659
|
+
async function z(F) {
|
|
19660
|
+
F.keyCode === 13 ? (F.preventDefault(), F.stopPropagation(), await W()) : F.code === "Backspace" && I !== void 0 && (F.preventDefault(), F.stopPropagation(), V([void 0, ""]));
|
|
19661
19661
|
}
|
|
19662
19662
|
return /* @__PURE__ */ jsxs(Row, {
|
|
19663
19663
|
gutter: 8,
|
|
@@ -19670,8 +19670,8 @@ const SearchTree$1 = forwardRef(SearchTree), SearchModal = (e) => {
|
|
|
19670
19670
|
disabled: s,
|
|
19671
19671
|
onChange: B,
|
|
19672
19672
|
className: d,
|
|
19673
|
-
onBlur:
|
|
19674
|
-
onKeyDown:
|
|
19673
|
+
onBlur: W,
|
|
19674
|
+
onKeyDown: z,
|
|
19675
19675
|
suffix: /* @__PURE__ */ jsx(Many2oneSuffix, {
|
|
19676
19676
|
id: I,
|
|
19677
19677
|
model: o,
|
|
@@ -19711,7 +19711,7 @@ const SearchTree$1 = forwardRef(SearchTree), SearchModal = (e) => {
|
|
|
19711
19711
|
visible: f,
|
|
19712
19712
|
nameSearch: I ? void 0 : h,
|
|
19713
19713
|
onSelectValues: (F) => {
|
|
19714
|
-
p(!1),
|
|
19714
|
+
p(!1), U(F[0]), _.current = !1, w.current = void 0;
|
|
19715
19715
|
},
|
|
19716
19716
|
onCloseModal: () => {
|
|
19717
19717
|
p(!1), _.current = !1;
|
|
@@ -19725,7 +19725,7 @@ const SearchTree$1 = forwardRef(SearchTree), SearchModal = (e) => {
|
|
|
19725
19725
|
id: t && t[0],
|
|
19726
19726
|
visible: g,
|
|
19727
19727
|
onSubmitSucceed: (F) => {
|
|
19728
|
-
m(!1),
|
|
19728
|
+
m(!1), U(F);
|
|
19729
19729
|
},
|
|
19730
19730
|
onCancel: () => {
|
|
19731
19731
|
m(!1);
|
|
@@ -21534,7 +21534,7 @@ var PopupInner = /* @__PURE__ */ React$n.forwardRef(function(e, t) {
|
|
|
21534
21534
|
function A() {
|
|
21535
21535
|
l && N(g());
|
|
21536
21536
|
}
|
|
21537
|
-
var I = useVisibleStatus(r, A), j = _slicedToArray(I, 2), V = j[0], B = j[1],
|
|
21537
|
+
var I = useVisibleStatus(r, A), j = _slicedToArray(I, 2), V = j[0], B = j[1], W = useState$1(0), L = _slicedToArray(W, 2), U = L[0], H = L[1], z = useRef();
|
|
21538
21538
|
useLayoutEffect$2(function() {
|
|
21539
21539
|
V === "alignPre" && H(0);
|
|
21540
21540
|
}, [V]);
|
|
@@ -21542,31 +21542,31 @@ var PopupInner = /* @__PURE__ */ React$n.forwardRef(function(e, t) {
|
|
|
21542
21542
|
return p || g;
|
|
21543
21543
|
}
|
|
21544
21544
|
function F() {
|
|
21545
|
-
var
|
|
21546
|
-
(
|
|
21545
|
+
var Y;
|
|
21546
|
+
(Y = C.current) === null || Y === void 0 || Y.forceAlign();
|
|
21547
21547
|
}
|
|
21548
|
-
function q(
|
|
21548
|
+
function q(Y, Z) {
|
|
21549
21549
|
var ee = m(Z);
|
|
21550
21550
|
S !== ee && P(ee), H(function(J) {
|
|
21551
21551
|
return J + 1;
|
|
21552
|
-
}), V === "align" && (y == null || y(
|
|
21552
|
+
}), V === "align" && (y == null || y(Y, Z));
|
|
21553
21553
|
}
|
|
21554
21554
|
useLayoutEffect$2(function() {
|
|
21555
|
-
V === "align" && (
|
|
21556
|
-
var
|
|
21557
|
-
(
|
|
21555
|
+
V === "align" && (U < 3 ? F() : B(function() {
|
|
21556
|
+
var Y;
|
|
21557
|
+
(Y = z.current) === null || Y === void 0 || Y.call(z);
|
|
21558
21558
|
}));
|
|
21559
|
-
}, [
|
|
21559
|
+
}, [U]);
|
|
21560
21560
|
var G = _objectSpread2$g({}, getMotion(e));
|
|
21561
|
-
["onAppearEnd", "onEnterEnd", "onLeaveEnd"].forEach(function(
|
|
21562
|
-
var Z = G[
|
|
21563
|
-
G[
|
|
21561
|
+
["onAppearEnd", "onEnterEnd", "onLeaveEnd"].forEach(function(Y) {
|
|
21562
|
+
var Z = G[Y];
|
|
21563
|
+
G[Y] = function(ee, J) {
|
|
21564
21564
|
return B(), Z == null ? void 0 : Z(ee, J);
|
|
21565
21565
|
};
|
|
21566
21566
|
});
|
|
21567
21567
|
function Q() {
|
|
21568
|
-
return new Promise(function(
|
|
21569
|
-
|
|
21568
|
+
return new Promise(function(Y) {
|
|
21569
|
+
z.current = Y;
|
|
21570
21570
|
});
|
|
21571
21571
|
}
|
|
21572
21572
|
React$n.useEffect(function() {
|
|
@@ -21598,8 +21598,8 @@ var PopupInner = /* @__PURE__ */ React$n.forwardRef(function(e, t) {
|
|
|
21598
21598
|
onEnterPrepare: Q,
|
|
21599
21599
|
removeOnLeave: c,
|
|
21600
21600
|
forceRender: d,
|
|
21601
|
-
children: function(
|
|
21602
|
-
var ee =
|
|
21601
|
+
children: function(Y, Z) {
|
|
21602
|
+
var ee = Y.className, J = Y.style, te = classNames(n, a, S, ee);
|
|
21603
21603
|
return /* @__PURE__ */ jsx(RcAlign, {
|
|
21604
21604
|
target: K(),
|
|
21605
21605
|
ref: C,
|
|
@@ -22128,12 +22128,12 @@ var Tooltip = function e(t, r) {
|
|
|
22128
22128
|
overlayInnerStyle: k,
|
|
22129
22129
|
children: O
|
|
22130
22130
|
}, "content");
|
|
22131
|
-
},
|
|
22131
|
+
}, W = !1, L = !1;
|
|
22132
22132
|
if (typeof $ == "boolean")
|
|
22133
|
-
|
|
22133
|
+
W = $;
|
|
22134
22134
|
else if ($ && _typeof$2($) === "object") {
|
|
22135
|
-
var
|
|
22136
|
-
|
|
22135
|
+
var U = $.keepParent;
|
|
22136
|
+
W = U === !0, L = U === !1;
|
|
22137
22137
|
}
|
|
22138
22138
|
return /* @__PURE__ */ jsx(Trigger, {
|
|
22139
22139
|
popupClassName: n,
|
|
@@ -22151,7 +22151,7 @@ var Tooltip = function e(t, r) {
|
|
|
22151
22151
|
popupAnimation: h,
|
|
22152
22152
|
popupMotion: v,
|
|
22153
22153
|
defaultPopupVisible: S,
|
|
22154
|
-
destroyPopupOnHide:
|
|
22154
|
+
destroyPopupOnHide: W,
|
|
22155
22155
|
autoDestroy: L,
|
|
22156
22156
|
mouseLeaveDelay: c,
|
|
22157
22157
|
popupStyle: d,
|
|
@@ -22446,7 +22446,7 @@ placements$1.default = _default$1;
|
|
|
22446
22446
|
arrowPointAtCenter: ye,
|
|
22447
22447
|
autoAdjustOverflow: Me
|
|
22448
22448
|
});
|
|
22449
|
-
},
|
|
22449
|
+
}, W = function(me, oe) {
|
|
22450
22450
|
var ye = B(), $e = Object.keys(ye).find(function(ke) {
|
|
22451
22451
|
var le, pe;
|
|
22452
22452
|
return ye[ke].points[0] === ((le = oe.points) === null || le === void 0 ? void 0 : le[0]) && ye[ke].points[1] === ((pe = oe.points) === null || pe === void 0 ? void 0 : pe[1]);
|
|
@@ -22461,26 +22461,26 @@ placements$1.default = _default$1;
|
|
|
22461
22461
|
}, L = function() {
|
|
22462
22462
|
var me = w.title, oe = w.overlay;
|
|
22463
22463
|
return me === 0 ? me : oe || me || "";
|
|
22464
|
-
},
|
|
22464
|
+
}, U = w.getPopupContainer, H = w.placement, z = H === void 0 ? "top" : H, K = w.mouseEnterDelay, F = K === void 0 ? 0.1 : K, q = w.mouseLeaveDelay, G = q === void 0 ? 0.1 : q, Q = x(w, ["getPopupContainer", "placement", "mouseEnterDelay", "mouseLeaveDelay"]), X = w.prefixCls, E = w.openClassName, T = w.getTooltipContainer, Y = w.overlayClassName, Z = w.color, ee = w.overlayInnerStyle, J = w.children, te = k("tooltip", X), re = k(), se = A;
|
|
22465
22465
|
!("open" in w) && !("visible" in w) && j() && (se = !1);
|
|
22466
|
-
var _e = _((0, m.isValidElement)(J) && !(0, m.isFragment)(J) ? J : /* @__PURE__ */ c.createElement("span", null, J), te), be = _e.props, Se = !be.className || typeof be.className == "string" ? (0, s.default)(be.className, (0, n.default)({}, E || "".concat(te, "-open"), !0)) : be.className, ie = (0, s.default)(
|
|
22466
|
+
var _e = _((0, m.isValidElement)(J) && !(0, m.isFragment)(J) ? J : /* @__PURE__ */ c.createElement("span", null, J), te), be = _e.props, Se = !be.className || typeof be.className == "string" ? (0, s.default)(be.className, (0, n.default)({}, E || "".concat(te, "-open"), !0)) : be.className, ie = (0, s.default)(Y, ($ = {}, (0, n.default)($, "".concat(te, "-rtl"), M === "rtl"), (0, n.default)($, "".concat(te, "-").concat(Z), Z && v.test(Z)), $)), ge = ee, ue = {};
|
|
22467
22467
|
return Z && !v.test(Z) && (ge = (0, o.default)((0, o.default)({}, ee), {
|
|
22468
22468
|
background: Z
|
|
22469
22469
|
}), ue = {
|
|
22470
22470
|
"--antd-arrow-background-color": Z
|
|
22471
22471
|
}), /* @__PURE__ */ c.createElement(u.default, (0, o.default)({}, Q, {
|
|
22472
|
-
placement:
|
|
22472
|
+
placement: z,
|
|
22473
22473
|
mouseEnterDelay: F,
|
|
22474
22474
|
mouseLeaveDelay: G,
|
|
22475
22475
|
prefixCls: te,
|
|
22476
22476
|
overlayClassName: ie,
|
|
22477
|
-
getTooltipContainer:
|
|
22477
|
+
getTooltipContainer: U || T || P,
|
|
22478
22478
|
ref: D,
|
|
22479
22479
|
builtinPlacements: B(),
|
|
22480
22480
|
overlay: L(),
|
|
22481
22481
|
visible: se,
|
|
22482
22482
|
onVisibleChange: V,
|
|
22483
|
-
onPopupAlign:
|
|
22483
|
+
onPopupAlign: W,
|
|
22484
22484
|
overlayInnerStyle: ge,
|
|
22485
22485
|
arrowContent: /* @__PURE__ */ c.createElement("span", {
|
|
22486
22486
|
className: "".concat(te, "-arrow-content"),
|
|
@@ -22537,9 +22537,9 @@ EnterOutlined$2.default = _default;
|
|
|
22537
22537
|
value: !0
|
|
22538
22538
|
}), e.default = void 0;
|
|
22539
22539
|
var n = r(defineProperty.exports), a = r(slicedToArray.exports), o = r(EnterOutlined$3.exports), s = r(classnames.exports), u = r(KeyCode$1), l = t(React__default), c = r(TextArea$3), d = reactNode, f = function(m) {
|
|
22540
|
-
var y = m.prefixCls, x = m["aria-label"], h = m.className, v = m.style, _ = m.direction, b = m.maxLength, C = m.autoSize, w = C === void 0 ? !0 : C, D = m.value, $ = m.onSave, S = m.onCancel, P = m.onEnd, k = m.component, M = m.enterIcon, O = M === void 0 ? /* @__PURE__ */ l.createElement(o.default, null) : M, N = l.useRef(null), A = l.useRef(!1), I = l.useRef(), j = l.useState(D), V = (0, a.default)(j, 2), B = V[0],
|
|
22540
|
+
var y = m.prefixCls, x = m["aria-label"], h = m.className, v = m.style, _ = m.direction, b = m.maxLength, C = m.autoSize, w = C === void 0 ? !0 : C, D = m.value, $ = m.onSave, S = m.onCancel, P = m.onEnd, k = m.component, M = m.enterIcon, O = M === void 0 ? /* @__PURE__ */ l.createElement(o.default, null) : M, N = l.useRef(null), A = l.useRef(!1), I = l.useRef(), j = l.useState(D), V = (0, a.default)(j, 2), B = V[0], W = V[1];
|
|
22541
22541
|
l.useEffect(function() {
|
|
22542
|
-
|
|
22542
|
+
W(D);
|
|
22543
22543
|
}, [D]), l.useEffect(function() {
|
|
22544
22544
|
if (N.current && N.current.resizableTextArea) {
|
|
22545
22545
|
var X = N.current.resizableTextArea.textArea;
|
|
@@ -22550,19 +22550,19 @@ EnterOutlined$2.default = _default;
|
|
|
22550
22550
|
}, []);
|
|
22551
22551
|
var L = function(E) {
|
|
22552
22552
|
var T = E.target;
|
|
22553
|
-
|
|
22554
|
-
},
|
|
22553
|
+
W(T.value.replace(/[\n\r]/g, ""));
|
|
22554
|
+
}, U = function() {
|
|
22555
22555
|
A.current = !0;
|
|
22556
22556
|
}, H = function() {
|
|
22557
22557
|
A.current = !1;
|
|
22558
|
-
},
|
|
22558
|
+
}, z = function(E) {
|
|
22559
22559
|
var T = E.keyCode;
|
|
22560
22560
|
A.current || (I.current = T);
|
|
22561
22561
|
}, K = function() {
|
|
22562
22562
|
$(B.trim());
|
|
22563
22563
|
}, F = function(E) {
|
|
22564
|
-
var T = E.keyCode,
|
|
22565
|
-
I.current === T && !A.current && !
|
|
22564
|
+
var T = E.keyCode, Y = E.ctrlKey, Z = E.altKey, ee = E.metaKey, J = E.shiftKey;
|
|
22565
|
+
I.current === T && !A.current && !Y && !Z && !ee && !J && (T === u.default.ENTER ? (K(), P == null || P()) : T === u.default.ESC && S());
|
|
22566
22566
|
}, q = function() {
|
|
22567
22567
|
K();
|
|
22568
22568
|
}, G = k ? "".concat(y, "-").concat(k) : "", Q = (0, s.default)(y, "".concat(y, "-edit-content"), (0, n.default)({}, "".concat(y, "-rtl"), _ === "rtl"), h, G);
|
|
@@ -22574,9 +22574,9 @@ EnterOutlined$2.default = _default;
|
|
|
22574
22574
|
maxLength: b,
|
|
22575
22575
|
value: B,
|
|
22576
22576
|
onChange: L,
|
|
22577
|
-
onKeyDown:
|
|
22577
|
+
onKeyDown: z,
|
|
22578
22578
|
onKeyUp: F,
|
|
22579
|
-
onCompositionStart:
|
|
22579
|
+
onCompositionStart: U,
|
|
22580
22580
|
onCompositionEnd: H,
|
|
22581
22581
|
onBlur: q,
|
|
22582
22582
|
"aria-label": x,
|
|
@@ -22674,7 +22674,7 @@ var Ellipsis = {};
|
|
|
22674
22674
|
return _;
|
|
22675
22675
|
}
|
|
22676
22676
|
var p = 0, g = 1, m = 2, y = 3, x = 4, h = function(b) {
|
|
22677
|
-
var C = b.enabledMeasure, w = b.children, D = b.text, $ = b.width, S = b.fontSize, P = b.rows, k = b.onEllipsis, M = l.useState([0, 0, 0]), O = (0, a.default)(M, 2), N = (0, a.default)(O[0], 3), A = N[0], I = N[1], j = N[2], V = O[1], B = l.useState(p),
|
|
22677
|
+
var C = b.enabledMeasure, w = b.children, D = b.text, $ = b.width, S = b.fontSize, P = b.rows, k = b.onEllipsis, M = l.useState([0, 0, 0]), O = (0, a.default)(M, 2), N = (0, a.default)(O[0], 3), A = N[0], I = N[1], j = N[2], V = O[1], B = l.useState(p), W = (0, a.default)(B, 2), L = W[0], U = W[1], H = l.useState(0), z = (0, a.default)(H, 2), K = z[0], F = z[1], q = l.useRef(null), G = l.useRef(null), Q = l.useMemo(function() {
|
|
22678
22678
|
return (0, s.default)(D);
|
|
22679
22679
|
}, [D]), X = l.useMemo(function() {
|
|
22680
22680
|
return d(Q);
|
|
@@ -22682,7 +22682,7 @@ var Ellipsis = {};
|
|
|
22682
22682
|
return !C || L !== y ? w(Q, !1) : w(f(Q, I), I < X);
|
|
22683
22683
|
}, [C, L, w, Q, I, X]);
|
|
22684
22684
|
(0, u.default)(function() {
|
|
22685
|
-
C && $ && S && X && (
|
|
22685
|
+
C && $ && S && X && (U(g), V([0, Math.ceil(X / 2), X]));
|
|
22686
22686
|
}, [C, $, S, D, X, P]), (0, u.default)(function() {
|
|
22687
22687
|
var ee;
|
|
22688
22688
|
L === g && F(((ee = q.current) === null || ee === void 0 ? void 0 : ee.offsetHeight) || 0);
|
|
@@ -22691,7 +22691,7 @@ var Ellipsis = {};
|
|
|
22691
22691
|
if (K) {
|
|
22692
22692
|
if (L === g) {
|
|
22693
22693
|
var te = ((ee = G.current) === null || ee === void 0 ? void 0 : ee.offsetHeight) || 0, re = P * K;
|
|
22694
|
-
te <= re ? (
|
|
22694
|
+
te <= re ? (U(x), k(!1)) : U(m);
|
|
22695
22695
|
} else if (L === m)
|
|
22696
22696
|
if (A !== j) {
|
|
22697
22697
|
var se = ((J = G.current) === null || J === void 0 ? void 0 : J.offsetHeight) || 0, _e = P * K, be = A, Se = j;
|
|
@@ -22699,7 +22699,7 @@ var Ellipsis = {};
|
|
|
22699
22699
|
var ie = Math.ceil((be + Se) / 2);
|
|
22700
22700
|
V([be, ie, Se]);
|
|
22701
22701
|
} else
|
|
22702
|
-
|
|
22702
|
+
U(y), k(!0);
|
|
22703
22703
|
}
|
|
22704
22704
|
}, [L, A, j, P, K]);
|
|
22705
22705
|
var T = {
|
|
@@ -22707,7 +22707,7 @@ var Ellipsis = {};
|
|
|
22707
22707
|
whiteSpace: "normal",
|
|
22708
22708
|
margin: 0,
|
|
22709
22709
|
padding: 0
|
|
22710
|
-
},
|
|
22710
|
+
}, Y = function(J, te, re) {
|
|
22711
22711
|
return /* @__PURE__ */ l.createElement("span", {
|
|
22712
22712
|
"aria-hidden": !0,
|
|
22713
22713
|
ref: te,
|
|
@@ -22724,12 +22724,12 @@ var Ellipsis = {};
|
|
|
22724
22724
|
}, J);
|
|
22725
22725
|
}, Z = function(J, te) {
|
|
22726
22726
|
var re = f(Q, J);
|
|
22727
|
-
return
|
|
22727
|
+
return Y(w(re, !0), te, T);
|
|
22728
22728
|
};
|
|
22729
|
-
return /* @__PURE__ */ l.createElement(l.Fragment, null, E, C && L !== y && L !== x && /* @__PURE__ */ l.createElement(l.Fragment, null,
|
|
22729
|
+
return /* @__PURE__ */ l.createElement(l.Fragment, null, E, C && L !== y && L !== x && /* @__PURE__ */ l.createElement(l.Fragment, null, Y("lg", q, {
|
|
22730
22730
|
wordBreak: "keep-all",
|
|
22731
22731
|
whiteSpace: "nowrap"
|
|
22732
|
-
}), L === g ?
|
|
22732
|
+
}), L === g ? Y(w(Q, !1), G, T) : Z(I, G)));
|
|
22733
22733
|
};
|
|
22734
22734
|
process.env.NODE_ENV !== "production" && (h.displayName = "Ellipsis");
|
|
22735
22735
|
var v = h;
|
|
@@ -22756,30 +22756,30 @@ var EllipsisTooltip = {};
|
|
|
22756
22756
|
Object.defineProperty(e, "__esModule", {
|
|
22757
22757
|
value: !0
|
|
22758
22758
|
}), e.default = void 0;
|
|
22759
|
-
var n = r(defineProperty.exports), a = r(_extends$1.exports), o = r(_typeof$3.exports), s = r(slicedToArray.exports), u = r(CheckOutlined$3.exports), l = r(CopyOutlined$3.exports), c = r(EditOutlined$3.exports), d = r(classnames.exports), f = r(copyToClipboard), p = r(require$$11), g = r(toArray$2), m = r(useLayoutEffect$1), y = r(useMergedState$1), x = r(omit$2), h = ref, v = t(React__default), _ = requireConfigProvider(), b = LocaleReceiver, C = r(transButton), w = styleChecker$1, D = r(tooltip), $ = r(Editable), S = r(useMergedConfig), P = r(useUpdatedEffect), k = r(Typography), M = r(Ellipsis), O = r(EllipsisTooltip), N = function(L,
|
|
22759
|
+
var n = r(defineProperty.exports), a = r(_extends$1.exports), o = r(_typeof$3.exports), s = r(slicedToArray.exports), u = r(CheckOutlined$3.exports), l = r(CopyOutlined$3.exports), c = r(EditOutlined$3.exports), d = r(classnames.exports), f = r(copyToClipboard), p = r(require$$11), g = r(toArray$2), m = r(useLayoutEffect$1), y = r(useMergedState$1), x = r(omit$2), h = ref, v = t(React__default), _ = requireConfigProvider(), b = LocaleReceiver, C = r(transButton), w = styleChecker$1, D = r(tooltip), $ = r(Editable), S = r(useMergedConfig), P = r(useUpdatedEffect), k = r(Typography), M = r(Ellipsis), O = r(EllipsisTooltip), N = function(L, U) {
|
|
22760
22760
|
var H = {};
|
|
22761
|
-
for (var
|
|
22762
|
-
Object.prototype.hasOwnProperty.call(L,
|
|
22761
|
+
for (var z in L)
|
|
22762
|
+
Object.prototype.hasOwnProperty.call(L, z) && U.indexOf(z) < 0 && (H[z] = L[z]);
|
|
22763
22763
|
if (L != null && typeof Object.getOwnPropertySymbols == "function")
|
|
22764
|
-
for (var K = 0,
|
|
22765
|
-
|
|
22764
|
+
for (var K = 0, z = Object.getOwnPropertySymbols(L); K < z.length; K++)
|
|
22765
|
+
U.indexOf(z[K]) < 0 && Object.prototype.propertyIsEnumerable.call(L, z[K]) && (H[z[K]] = L[z[K]]);
|
|
22766
22766
|
return H;
|
|
22767
22767
|
};
|
|
22768
|
-
function A(L,
|
|
22769
|
-
var H = L.mark,
|
|
22770
|
-
function E(T,
|
|
22771
|
-
!T || (X = /* @__PURE__ */ v.createElement(
|
|
22768
|
+
function A(L, U) {
|
|
22769
|
+
var H = L.mark, z = L.code, K = L.underline, F = L.delete, q = L.strong, G = L.keyboard, Q = L.italic, X = U;
|
|
22770
|
+
function E(T, Y) {
|
|
22771
|
+
!T || (X = /* @__PURE__ */ v.createElement(Y, {}, X));
|
|
22772
22772
|
}
|
|
22773
|
-
return E(q, "strong"), E(K, "u"), E(F, "del"), E(
|
|
22773
|
+
return E(q, "strong"), E(K, "u"), E(F, "del"), E(z, "code"), E(H, "mark"), E(G, "kbd"), E(Q, "i"), X;
|
|
22774
22774
|
}
|
|
22775
|
-
function I(L,
|
|
22776
|
-
return L === !0 || L === void 0 ?
|
|
22775
|
+
function I(L, U, H) {
|
|
22776
|
+
return L === !0 || L === void 0 ? U : L || H && U;
|
|
22777
22777
|
}
|
|
22778
22778
|
function j(L) {
|
|
22779
22779
|
return L === !1 ? [!1, !1] : Array.isArray(L) ? L : [L];
|
|
22780
22780
|
}
|
|
22781
|
-
var V = "...", B = /* @__PURE__ */ v.forwardRef(function(L,
|
|
22782
|
-
var H,
|
|
22781
|
+
var V = "...", B = /* @__PURE__ */ v.forwardRef(function(L, U) {
|
|
22782
|
+
var H, z, K, F = L.prefixCls, q = L.className, G = L.style, Q = L.type, X = L.disabled, E = L.children, T = L.ellipsis, Y = L.editable, Z = L.copyable, ee = L.component, J = L.title, te = N(L, ["prefixCls", "className", "style", "type", "disabled", "children", "ellipsis", "editable", "copyable", "component", "title"]), re = v.useContext(_.ConfigContext), se = re.getPrefixCls, _e = re.direction, be = (0, b.useLocaleReceiver)("Text")[0], Se = v.useRef(null), ie = v.useRef(null), ge = se("typography", F), ue = (0, x.default)(te, ["mark", "code", "delete", "underline", "strong", "keyboard", "italic"]), he = (0, S.default)(Y), me = (0, s.default)(he, 2), oe = me[0], ye = me[1], $e = (0, y.default)(!1, {
|
|
22783
22783
|
value: ye.editing
|
|
22784
22784
|
}), Me = (0, s.default)($e, 2), Ee = Me[0], ke = Me[1], le = ye.triggerType, pe = le === void 0 ? ["icon"] : le, Ce = function(ve) {
|
|
22785
22785
|
var Te;
|
|
@@ -22810,33 +22810,33 @@ var EllipsisTooltip = {};
|
|
|
22810
22810
|
v.useEffect(function() {
|
|
22811
22811
|
return Xe;
|
|
22812
22812
|
}, []);
|
|
22813
|
-
var dt = v.useState(!1), nt = (0, s.default)(dt, 2), at = nt[0], ft = nt[1], pt = v.useState(!1), it = (0, s.default)(pt, 2), et = it[0], ht = it[1], mt = v.useState(!1), ot = (0, s.default)(mt, 2), vt = ot[0], ae = ot[1], ne = v.useState(!1), ce = (0, s.default)(ne, 2), fe = ce[0], Oe = ce[1],
|
|
22813
|
+
var dt = v.useState(!1), nt = (0, s.default)(dt, 2), at = nt[0], ft = nt[1], pt = v.useState(!1), it = (0, s.default)(pt, 2), et = it[0], ht = it[1], mt = v.useState(!1), ot = (0, s.default)(mt, 2), vt = ot[0], ae = ot[1], ne = v.useState(!1), ce = (0, s.default)(ne, 2), fe = ce[0], Oe = ce[1], Ye = v.useState(!1), Ze = (0, s.default)(Ye, 2), st = Ze[0], tt = Ze[1], gt = v.useState(!0), yt = (0, s.default)(gt, 2), St = yt[0], $t = yt[1], Rt = (0, S.default)(T, {
|
|
22814
22814
|
expandable: !1
|
|
22815
|
-
}), _t = (0, s.default)(Rt, 2),
|
|
22815
|
+
}), _t = (0, s.default)(Rt, 2), ze = _t[0], Ne = _t[1], Be = ze && !vt, xt = Ne.rows, Je = xt === void 0 ? 1 : xt, lt = v.useMemo(function() {
|
|
22816
22816
|
return !Be || Ne.suffix !== void 0 || Ne.onEllipsis || Ne.expandable || oe || Ie;
|
|
22817
22817
|
}, [Be, Ne, oe, Ie]);
|
|
22818
22818
|
(0, m.default)(function() {
|
|
22819
|
-
|
|
22820
|
-
}, [lt,
|
|
22819
|
+
ze && !lt && (ft((0, w.isStyleSupport)("webkitLineClamp")), ht((0, w.isStyleSupport)("textOverflow")));
|
|
22820
|
+
}, [lt, ze]);
|
|
22821
22821
|
var He = v.useMemo(function() {
|
|
22822
22822
|
return lt ? !1 : Je === 1 ? et : at;
|
|
22823
22823
|
}, [lt, et, at]), bt = Be && (He ? st : fe), Tt = Be && Je === 1 && He, ut = Be && Je > 1 && He, Et = function(ve) {
|
|
22824
22824
|
var Te;
|
|
22825
22825
|
ae(!0), (Te = Ne.onExpand) === null || Te === void 0 || Te.call(Ne, ve);
|
|
22826
22826
|
}, Ot = v.useState(0), Ct = (0, s.default)(Ot, 2), Pt = Ct[0], Ft = Ct[1], At = v.useState(0), wt = (0, s.default)(At, 2), Mt = wt[0], kt = wt[1], It = function(ve, Te) {
|
|
22827
|
-
var
|
|
22828
|
-
Ft(
|
|
22827
|
+
var We = ve.offsetWidth, Ue;
|
|
22828
|
+
Ft(We), kt(parseInt((Ue = window.getComputedStyle) === null || Ue === void 0 ? void 0 : Ue.call(window, Te).fontSize, 10) || 0);
|
|
22829
22829
|
}, Dt = function(ve) {
|
|
22830
22830
|
var Te;
|
|
22831
22831
|
Oe(ve), fe !== ve && ((Te = Ne.onEllipsis) === null || Te === void 0 || Te.call(Ne, ve));
|
|
22832
22832
|
};
|
|
22833
22833
|
v.useEffect(function() {
|
|
22834
22834
|
var Re = Se.current;
|
|
22835
|
-
if (
|
|
22835
|
+
if (ze && He && Re) {
|
|
22836
22836
|
var ve = ut ? Re.offsetHeight < Re.scrollHeight : Re.offsetWidth < Re.scrollWidth;
|
|
22837
22837
|
st !== ve && tt(ve);
|
|
22838
22838
|
}
|
|
22839
|
-
}, [
|
|
22839
|
+
}, [ze, He, E, ut, St]), v.useEffect(function() {
|
|
22840
22840
|
var Re = Se.current;
|
|
22841
22841
|
if (!(typeof IntersectionObserver > "u" || !Re || !He || !Be)) {
|
|
22842
22842
|
var ve = new IntersectionObserver(function() {
|
|
@@ -22853,7 +22853,7 @@ var EllipsisTooltip = {};
|
|
|
22853
22853
|
} : /* @__PURE__ */ v.isValidElement(Ne.tooltip) ? Ge = {
|
|
22854
22854
|
title: Ne.tooltip
|
|
22855
22855
|
} : (0, o.default)(Ne.tooltip) === "object" ? Ge = (0, a.default)({
|
|
22856
|
-
title: (
|
|
22856
|
+
title: (z = ye.text) !== null && z !== void 0 ? z : E
|
|
22857
22857
|
}, Ne.tooltip) : Ge = {
|
|
22858
22858
|
title: Ne.tooltip
|
|
22859
22859
|
};
|
|
@@ -22861,7 +22861,7 @@ var EllipsisTooltip = {};
|
|
|
22861
22861
|
var Re = function(Te) {
|
|
22862
22862
|
return ["string", "number"].includes((0, o.default)(Te));
|
|
22863
22863
|
};
|
|
22864
|
-
if (!(!
|
|
22864
|
+
if (!(!ze || He)) {
|
|
22865
22865
|
if (Re(ye.text))
|
|
22866
22866
|
return ye.text;
|
|
22867
22867
|
if (Re(E))
|
|
@@ -22871,7 +22871,7 @@ var EllipsisTooltip = {};
|
|
|
22871
22871
|
if (Re(Ge.title))
|
|
22872
22872
|
return Ge.title;
|
|
22873
22873
|
}
|
|
22874
|
-
}, [
|
|
22874
|
+
}, [ze, He, J, Ge.title, bt]);
|
|
22875
22875
|
if (Ee)
|
|
22876
22876
|
return /* @__PURE__ */ v.createElement($.default, {
|
|
22877
22877
|
value: (K = ye.text) !== null && K !== void 0 ? K : typeof E == "string" ? E : "",
|
|
@@ -22891,39 +22891,39 @@ var EllipsisTooltip = {};
|
|
|
22891
22891
|
var ve = Ne.expandable, Te = Ne.symbol;
|
|
22892
22892
|
if (!ve)
|
|
22893
22893
|
return null;
|
|
22894
|
-
var
|
|
22895
|
-
return Te ?
|
|
22894
|
+
var We;
|
|
22895
|
+
return Te ? We = Te : We = be.expand, /* @__PURE__ */ v.createElement("a", {
|
|
22896
22896
|
key: "expand",
|
|
22897
22897
|
className: "".concat(ge, "-expand"),
|
|
22898
22898
|
onClick: Et,
|
|
22899
22899
|
"aria-label": be.expand
|
|
22900
|
-
},
|
|
22900
|
+
}, We);
|
|
22901
22901
|
}, Nt = function() {
|
|
22902
22902
|
if (!!oe) {
|
|
22903
|
-
var ve = ye.icon, Te = ye.tooltip,
|
|
22903
|
+
var ve = ye.icon, Te = ye.tooltip, We = (0, g.default)(Te)[0] || be.edit, Ue = typeof We == "string" ? We : "";
|
|
22904
22904
|
return pe.includes("icon") ? /* @__PURE__ */ v.createElement(D.default, {
|
|
22905
22905
|
key: "edit",
|
|
22906
|
-
title: Te === !1 ? "" :
|
|
22906
|
+
title: Te === !1 ? "" : We
|
|
22907
22907
|
}, /* @__PURE__ */ v.createElement(C.default, {
|
|
22908
22908
|
ref: ie,
|
|
22909
22909
|
className: "".concat(ge, "-edit"),
|
|
22910
22910
|
onClick: de,
|
|
22911
|
-
"aria-label":
|
|
22911
|
+
"aria-label": Ue
|
|
22912
22912
|
}, ve || /* @__PURE__ */ v.createElement(c.default, {
|
|
22913
22913
|
role: "button"
|
|
22914
22914
|
}))) : null;
|
|
22915
22915
|
}
|
|
22916
22916
|
}, Lt = function() {
|
|
22917
22917
|
if (!!Ie) {
|
|
22918
|
-
var ve = je.tooltips, Te = je.icon,
|
|
22918
|
+
var ve = je.tooltips, Te = je.icon, We = j(ve), Ue = j(Te), rt = Fe ? I(We[1], be.copied) : I(We[0], be.copy), Wt = Fe ? be.copied : be.copy, Ut = typeof rt == "string" ? rt : Wt;
|
|
22919
22919
|
return /* @__PURE__ */ v.createElement(D.default, {
|
|
22920
22920
|
key: "copy",
|
|
22921
22921
|
title: rt
|
|
22922
22922
|
}, /* @__PURE__ */ v.createElement(C.default, {
|
|
22923
22923
|
className: (0, d.default)("".concat(ge, "-copy"), Fe && "".concat(ge, "-copy-success")),
|
|
22924
22924
|
onClick: Qe,
|
|
22925
|
-
"aria-label":
|
|
22926
|
-
}, Fe ? I(
|
|
22925
|
+
"aria-label": Ut
|
|
22926
|
+
}, Fe ? I(Ue[1], /* @__PURE__ */ v.createElement(u.default, null), !0) : I(Ue[0], /* @__PURE__ */ v.createElement(l.default, null), !0)));
|
|
22927
22927
|
}
|
|
22928
22928
|
}, Vt = function(ve) {
|
|
22929
22929
|
return [ve && jt(), Nt(), Lt()];
|
|
@@ -22943,13 +22943,13 @@ var EllipsisTooltip = {};
|
|
|
22943
22943
|
enabledEllipsis: Be,
|
|
22944
22944
|
isEllipsis: bt
|
|
22945
22945
|
}, /* @__PURE__ */ v.createElement(k.default, (0, a.default)({
|
|
22946
|
-
className: (0, d.default)((ve = {}, (0, n.default)(ve, "".concat(ge, "-").concat(Q), Q), (0, n.default)(ve, "".concat(ge, "-disabled"), X), (0, n.default)(ve, "".concat(ge, "-ellipsis"),
|
|
22946
|
+
className: (0, d.default)((ve = {}, (0, n.default)(ve, "".concat(ge, "-").concat(Q), Q), (0, n.default)(ve, "".concat(ge, "-disabled"), X), (0, n.default)(ve, "".concat(ge, "-ellipsis"), ze), (0, n.default)(ve, "".concat(ge, "-single-line"), Be && Je === 1), (0, n.default)(ve, "".concat(ge, "-ellipsis-single-line"), Tt), (0, n.default)(ve, "".concat(ge, "-ellipsis-multiple-line"), ut), ve), q),
|
|
22947
22947
|
prefixCls: F,
|
|
22948
22948
|
style: (0, a.default)((0, a.default)({}, G), {
|
|
22949
22949
|
WebkitLineClamp: ut ? Je : void 0
|
|
22950
22950
|
}),
|
|
22951
22951
|
component: ee,
|
|
22952
|
-
ref: (0, h.composeRef)(Re, Se,
|
|
22952
|
+
ref: (0, h.composeRef)(Re, Se, U),
|
|
22953
22953
|
direction: _e,
|
|
22954
22954
|
onClick: pe.includes("text") ? de : void 0,
|
|
22955
22955
|
"aria-label": ct == null ? void 0 : ct.toString(),
|
|
@@ -22961,18 +22961,18 @@ var EllipsisTooltip = {};
|
|
|
22961
22961
|
width: Pt,
|
|
22962
22962
|
fontSize: Mt,
|
|
22963
22963
|
onEllipsis: Dt
|
|
22964
|
-
}, function(Te,
|
|
22965
|
-
var
|
|
22966
|
-
Te.length &&
|
|
22964
|
+
}, function(Te, We) {
|
|
22965
|
+
var Ue = Te;
|
|
22966
|
+
Te.length && We && ct && (Ue = /* @__PURE__ */ v.createElement("span", {
|
|
22967
22967
|
key: "show-content",
|
|
22968
22968
|
"aria-hidden": !0
|
|
22969
|
-
},
|
|
22970
|
-
var rt = A(L, /* @__PURE__ */ v.createElement(v.Fragment, null,
|
|
22969
|
+
}, Ue));
|
|
22970
|
+
var rt = A(L, /* @__PURE__ */ v.createElement(v.Fragment, null, Ue, qt(We)));
|
|
22971
22971
|
return rt;
|
|
22972
22972
|
})));
|
|
22973
22973
|
});
|
|
22974
|
-
}),
|
|
22975
|
-
e.default =
|
|
22974
|
+
}), W = B;
|
|
22975
|
+
e.default = W;
|
|
22976
22976
|
})(Base);
|
|
22977
22977
|
(function(e) {
|
|
22978
22978
|
var t = interopRequireWildcard.exports.default, r = interopRequireDefault.exports.default;
|
|
@@ -23029,14 +23029,14 @@ const Title$2 = /* @__PURE__ */ getDefaultExportFromCjs(Title$3), {
|
|
|
23029
23029
|
params: j,
|
|
23030
23030
|
model: t,
|
|
23031
23031
|
context: n
|
|
23032
|
-
}),
|
|
23032
|
+
}), W = await ConnectionProvider.getHandler().readObjects({
|
|
23033
23033
|
model: t,
|
|
23034
23034
|
ids: B,
|
|
23035
23035
|
fieldsToRetrieve: [c],
|
|
23036
23036
|
context: n
|
|
23037
23037
|
});
|
|
23038
23038
|
return getValueForOperator({
|
|
23039
|
-
values:
|
|
23039
|
+
values: W.map((L) => L[c]),
|
|
23040
23040
|
operator: d
|
|
23041
23041
|
});
|
|
23042
23042
|
} else
|
|
@@ -23061,7 +23061,7 @@ const Title$2 = /* @__PURE__ */ getDefaultExportFromCjs(Title$3), {
|
|
|
23061
23061
|
context: n
|
|
23062
23062
|
});
|
|
23063
23063
|
return getValueForOperator({
|
|
23064
|
-
values: B.map((
|
|
23064
|
+
values: B.map((W) => W[c]),
|
|
23065
23065
|
operator: d
|
|
23066
23066
|
});
|
|
23067
23067
|
} else
|
|
@@ -23080,18 +23080,18 @@ const Title$2 = /* @__PURE__ */ getDefaultExportFromCjs(Title$3), {
|
|
|
23080
23080
|
isTotal: !1
|
|
23081
23081
|
});
|
|
23082
23082
|
if (y(B), o) {
|
|
23083
|
-
const
|
|
23083
|
+
const W = await ConnectionProvider.getHandler().evalDomain({
|
|
23084
23084
|
domain: o,
|
|
23085
23085
|
values: {},
|
|
23086
23086
|
context: n
|
|
23087
23087
|
});
|
|
23088
23088
|
j = await N({
|
|
23089
|
-
domain:
|
|
23089
|
+
domain: W,
|
|
23090
23090
|
isTotal: !0
|
|
23091
23091
|
}), _(j);
|
|
23092
23092
|
}
|
|
23093
23093
|
if (j ? (V = Math.round(B / j * 100 * 100) / 100, h(V)) : h(0), a) {
|
|
23094
|
-
const
|
|
23094
|
+
const W = await ConnectionProvider.getHandler().parseCondition({
|
|
23095
23095
|
condition: a,
|
|
23096
23096
|
values: {
|
|
23097
23097
|
value: B,
|
|
@@ -23099,11 +23099,11 @@ const Title$2 = /* @__PURE__ */ getDefaultExportFromCjs(Title$3), {
|
|
|
23099
23099
|
},
|
|
23100
23100
|
context: n
|
|
23101
23101
|
});
|
|
23102
|
-
S(
|
|
23102
|
+
S(W);
|
|
23103
23103
|
}
|
|
23104
23104
|
if (u)
|
|
23105
23105
|
if (u.indexOf(":") !== -1) {
|
|
23106
|
-
const
|
|
23106
|
+
const W = await ConnectionProvider.getHandler().parseCondition({
|
|
23107
23107
|
condition: u,
|
|
23108
23108
|
values: {
|
|
23109
23109
|
value: B,
|
|
@@ -23111,7 +23111,7 @@ const Title$2 = /* @__PURE__ */ getDefaultExportFromCjs(Title$3), {
|
|
|
23111
23111
|
},
|
|
23112
23112
|
context: n
|
|
23113
23113
|
});
|
|
23114
|
-
k(
|
|
23114
|
+
k(W);
|
|
23115
23115
|
} else
|
|
23116
23116
|
k(u);
|
|
23117
23117
|
} catch (B) {
|
|
@@ -23284,11 +23284,23 @@ const formatter = (e) => (t) => {
|
|
|
23284
23284
|
useGrouping: !0
|
|
23285
23285
|
});
|
|
23286
23286
|
return { name: e === "pie" ? t.x : t.type, value: r };
|
|
23287
|
-
}, axisFormatter = (e) =>
|
|
23288
|
-
|
|
23289
|
-
|
|
23290
|
-
|
|
23291
|
-
})
|
|
23287
|
+
}, axisFormatter = (e) => {
|
|
23288
|
+
if (typeof e == "string" && stringIsValidNumeric(e))
|
|
23289
|
+
return parseFloat(e).toLocaleString("es-ES", {
|
|
23290
|
+
useGrouping: !0
|
|
23291
|
+
});
|
|
23292
|
+
if (isNumber(e))
|
|
23293
|
+
return e.toLocaleString("es-ES", {
|
|
23294
|
+
useGrouping: !0
|
|
23295
|
+
});
|
|
23296
|
+
if (isValidDateString(e)) {
|
|
23297
|
+
const t = getDateType(e);
|
|
23298
|
+
return t === null ? e : hooks(e, dateFormats.input[t]).format(
|
|
23299
|
+
dateFormats.output[t]
|
|
23300
|
+
);
|
|
23301
|
+
} else
|
|
23302
|
+
return e;
|
|
23303
|
+
}, stringIsValidNumeric = (e) => /^[-+]?[0-9]*\.?[0-9]+([eE][-+]?[0-9]+)?$/.test(e), isNumber = (e) => typeof e == "number" && !isNaN(e), DefaultGraphOptions = {
|
|
23292
23304
|
default: {
|
|
23293
23305
|
padding: "auto",
|
|
23294
23306
|
xAxis: {
|
|
@@ -23369,7 +23381,37 @@ const formatter = (e) => (t) => {
|
|
|
23369
23381
|
]
|
|
23370
23382
|
}
|
|
23371
23383
|
}
|
|
23372
|
-
}
|
|
23384
|
+
};
|
|
23385
|
+
function isValidDateString(e) {
|
|
23386
|
+
return typeof e != "string" || e === void 0 ? !1 : new Date(e).toString() !== "Invalid Date";
|
|
23387
|
+
}
|
|
23388
|
+
const dateFormats = {
|
|
23389
|
+
input: {
|
|
23390
|
+
hours: "YYYY-MM-DD HH:mm",
|
|
23391
|
+
days: "YYYY-MM-DD",
|
|
23392
|
+
weeks: "YYYY-[W]WW",
|
|
23393
|
+
months: "YYYY-MM",
|
|
23394
|
+
years: "YYYY"
|
|
23395
|
+
},
|
|
23396
|
+
output: {
|
|
23397
|
+
hours: "DD/MM/YYYY HH:mm",
|
|
23398
|
+
days: "DD/MM/YYYY",
|
|
23399
|
+
weeks: "[W]WW/YYYY",
|
|
23400
|
+
months: "MM/YYYY",
|
|
23401
|
+
years: "YYYY"
|
|
23402
|
+
}
|
|
23403
|
+
};
|
|
23404
|
+
function getDateType(e) {
|
|
23405
|
+
for (const t in dateFormats.input)
|
|
23406
|
+
if (hooks(
|
|
23407
|
+
e,
|
|
23408
|
+
dateFormats.input[t],
|
|
23409
|
+
!0
|
|
23410
|
+
).isValid())
|
|
23411
|
+
return t;
|
|
23412
|
+
return null;
|
|
23413
|
+
}
|
|
23414
|
+
const {
|
|
23373
23415
|
processGraphData
|
|
23374
23416
|
} = graphProcessor, {
|
|
23375
23417
|
getFieldsToRetrieve
|
|
@@ -23810,8 +23852,8 @@ const One2manyInput = (e) => {
|
|
|
23810
23852
|
} = d || {}, {
|
|
23811
23853
|
lang: x,
|
|
23812
23854
|
t: h
|
|
23813
|
-
} = useContext(LocaleContext), [v, _] = useState$1(!1), [b, C] = useState$1(!1), [w, D] = useState$1(), [$, S] = useState$1(!1), [P, k] = useState$1(!1), [M, O] = useState$1(), [N, A] = useState$1([]), [I, j] = useState$1(!1), V = useRef([]), [B,
|
|
23814
|
-
readOnly:
|
|
23855
|
+
} = useContext(LocaleContext), [v, _] = useState$1(!1), [b, C] = useState$1(!1), [w, D] = useState$1(), [$, S] = useState$1(!1), [P, k] = useState$1(!1), [M, O] = useState$1(), [N, A] = useState$1([]), [I, j] = useState$1(!1), V = useRef([]), [B, W] = useState$1(), L = useRef(), [U, H] = useState$1(void 0), {
|
|
23856
|
+
readOnly: z,
|
|
23815
23857
|
relation: K,
|
|
23816
23858
|
context: F,
|
|
23817
23859
|
domain: q
|
|
@@ -23831,7 +23873,7 @@ const One2manyInput = (e) => {
|
|
|
23831
23873
|
useEffect(() => {
|
|
23832
23874
|
J();
|
|
23833
23875
|
}, [y]);
|
|
23834
|
-
const
|
|
23876
|
+
const Y = (le) => {
|
|
23835
23877
|
var pe, Ce;
|
|
23836
23878
|
r == null || r({
|
|
23837
23879
|
fields: ((pe = a.get("form")) == null ? void 0 : pe.fields) || ((Ce = a.get("tree")) == null ? void 0 : Ce.fields),
|
|
@@ -23859,7 +23901,7 @@ const One2manyInput = (e) => {
|
|
|
23859
23901
|
},
|
|
23860
23902
|
currentView: le || s
|
|
23861
23903
|
});
|
|
23862
|
-
return L.current || (L.current = xe.map((Ae) => Ae.id)), (s || le) === "tree" && we && H(we),
|
|
23904
|
+
return L.current || (L.current = xe.map((Ae) => Ae.id)), (s || le) === "tree" && we && H(we), Y(xe), xe;
|
|
23863
23905
|
} catch (xe) {
|
|
23864
23906
|
D(xe);
|
|
23865
23907
|
} finally {
|
|
@@ -23920,7 +23962,7 @@ const One2manyInput = (e) => {
|
|
|
23920
23962
|
values: pe,
|
|
23921
23963
|
treeValues: Ce
|
|
23922
23964
|
} : xe);
|
|
23923
|
-
|
|
23965
|
+
Y(de);
|
|
23924
23966
|
}, be = (le) => {
|
|
23925
23967
|
v ? showDialog$6({
|
|
23926
23968
|
lang: x,
|
|
@@ -23970,9 +24012,9 @@ const One2manyInput = (e) => {
|
|
|
23970
24012
|
...pe,
|
|
23971
24013
|
operation: "pendingRemove"
|
|
23972
24014
|
} : pe);
|
|
23973
|
-
|
|
24015
|
+
Y(le);
|
|
23974
24016
|
} else
|
|
23975
|
-
|
|
24017
|
+
Y(o.filter((le) => le.id !== X[l].id));
|
|
23976
24018
|
} catch (le) {
|
|
23977
24019
|
D(le);
|
|
23978
24020
|
}
|
|
@@ -23985,7 +24027,7 @@ const One2manyInput = (e) => {
|
|
|
23985
24027
|
...de,
|
|
23986
24028
|
operation: "pendingRemove"
|
|
23987
24029
|
} : de);
|
|
23988
|
-
|
|
24030
|
+
Y(Ce);
|
|
23989
24031
|
} catch (pe) {
|
|
23990
24032
|
D(pe);
|
|
23991
24033
|
}
|
|
@@ -24020,7 +24062,7 @@ const One2manyInput = (e) => {
|
|
|
24020
24062
|
}
|
|
24021
24063
|
});
|
|
24022
24064
|
}
|
|
24023
|
-
|
|
24065
|
+
Y(de), I || S(!1);
|
|
24024
24066
|
}, oe = async (le) => {
|
|
24025
24067
|
const {
|
|
24026
24068
|
id: pe
|
|
@@ -24058,7 +24100,7 @@ const One2manyInput = (e) => {
|
|
|
24058
24100
|
treeValues: we
|
|
24059
24101
|
});
|
|
24060
24102
|
}
|
|
24061
|
-
|
|
24103
|
+
Y(pe);
|
|
24062
24104
|
} catch (de) {
|
|
24063
24105
|
D(de);
|
|
24064
24106
|
} finally {
|
|
@@ -24101,9 +24143,9 @@ const One2manyInput = (e) => {
|
|
|
24101
24143
|
id: Ae
|
|
24102
24144
|
}
|
|
24103
24145
|
} : je);
|
|
24104
|
-
|
|
24146
|
+
Y(Ve), _(!0);
|
|
24105
24147
|
},
|
|
24106
|
-
readOnly:
|
|
24148
|
+
readOnly: z
|
|
24107
24149
|
});
|
|
24108
24150
|
let le = [];
|
|
24109
24151
|
if (X.some((we) => we.treeValues) && (le = B ? sortResults({
|
|
@@ -24127,12 +24169,12 @@ const One2manyInput = (e) => {
|
|
|
24127
24169
|
onChange: A
|
|
24128
24170
|
},
|
|
24129
24171
|
sorter: B,
|
|
24130
|
-
onChangeSort:
|
|
24172
|
+
onChangeSort: W,
|
|
24131
24173
|
context: {
|
|
24132
24174
|
...m == null ? void 0 : m(),
|
|
24133
24175
|
...F
|
|
24134
24176
|
},
|
|
24135
|
-
colorsForResults:
|
|
24177
|
+
colorsForResults: U
|
|
24136
24178
|
});
|
|
24137
24179
|
if (s === "graph") {
|
|
24138
24180
|
const we = [[`${n.inv_field}`, "=", f]];
|
|
@@ -24160,7 +24202,7 @@ const One2manyInput = (e) => {
|
|
|
24160
24202
|
children: [/* @__PURE__ */ jsx(One2manyTopBar, {
|
|
24161
24203
|
mode: s,
|
|
24162
24204
|
title: $e(),
|
|
24163
|
-
readOnly:
|
|
24205
|
+
readOnly: z,
|
|
24164
24206
|
isMany2Many: G,
|
|
24165
24207
|
formHasChanges: v,
|
|
24166
24208
|
totalItems: X.length,
|
|
@@ -24190,7 +24232,7 @@ const One2manyInput = (e) => {
|
|
|
24190
24232
|
onCancel: () => {
|
|
24191
24233
|
j(!1), S(!1);
|
|
24192
24234
|
},
|
|
24193
|
-
readOnly:
|
|
24235
|
+
readOnly: z,
|
|
24194
24236
|
mustClearAfterSave: Ee
|
|
24195
24237
|
}), /* @__PURE__ */ jsx(SearchModal, {
|
|
24196
24238
|
domain: V.current,
|
|
@@ -25431,7 +25473,7 @@ function FormActionBar({
|
|
|
25431
25473
|
function B() {
|
|
25432
25474
|
l && l.length > d + 1 ? (c == null || c(d + 1), f == null || f(l[d + 1].id)) : l && d + 1 === l.length && (c == null || c(0), f == null || f(l[0].id));
|
|
25433
25475
|
}
|
|
25434
|
-
function
|
|
25476
|
+
function W() {
|
|
25435
25477
|
l && d > 0 ? (c == null || c(d - 1), f == null || f(l[d - 1].id)) : l && d === 0 && (c == null || c(l.length - 1), f == null || f(l[l.length - 1].id));
|
|
25436
25478
|
}
|
|
25437
25479
|
function L() {
|
|
@@ -25439,11 +25481,11 @@ function FormActionBar({
|
|
|
25439
25481
|
confirmMessage: S("confirmRemoveItem"),
|
|
25440
25482
|
lang: P,
|
|
25441
25483
|
onOk: () => {
|
|
25442
|
-
|
|
25484
|
+
U();
|
|
25443
25485
|
}
|
|
25444
25486
|
});
|
|
25445
25487
|
}
|
|
25446
|
-
async function
|
|
25488
|
+
async function U() {
|
|
25447
25489
|
try {
|
|
25448
25490
|
g == null || g(!0), await ConnectionProvider.getHandler().delete({
|
|
25449
25491
|
model: p,
|
|
@@ -25474,7 +25516,7 @@ function FormActionBar({
|
|
|
25474
25516
|
x == null || x(!1);
|
|
25475
25517
|
}
|
|
25476
25518
|
}
|
|
25477
|
-
const
|
|
25519
|
+
const z = s || m || v || y;
|
|
25478
25520
|
function K(F) {
|
|
25479
25521
|
M == null || M({
|
|
25480
25522
|
actionData: F,
|
|
@@ -25495,7 +25537,7 @@ function FormActionBar({
|
|
|
25495
25537
|
}), /* @__PURE__ */ jsx(ActionButton, {
|
|
25496
25538
|
icon: /* @__PURE__ */ jsx(SaveOutlined, {}),
|
|
25497
25539
|
tooltip: S("save"),
|
|
25498
|
-
disabled: !o ||
|
|
25540
|
+
disabled: !o || z,
|
|
25499
25541
|
loading: s,
|
|
25500
25542
|
onClick: a
|
|
25501
25543
|
}), /* @__PURE__ */ jsx(ActionButton, {
|
|
@@ -25535,21 +25577,21 @@ function FormActionBar({
|
|
|
25535
25577
|
onChangeView: (F) => {
|
|
25536
25578
|
D == null || D(r), C == null || C(!1), n == null || n(F);
|
|
25537
25579
|
},
|
|
25538
|
-
disabled:
|
|
25580
|
+
disabled: z,
|
|
25539
25581
|
formHasChanges: o
|
|
25540
25582
|
}), separator$2(), /* @__PURE__ */ jsxs(Space, {
|
|
25541
25583
|
children: [/* @__PURE__ */ jsx(ActionButton, {
|
|
25542
25584
|
icon: /* @__PURE__ */ jsx(LeftOutlined, {}),
|
|
25543
25585
|
tooltip: S("previous"),
|
|
25544
|
-
disabled:
|
|
25586
|
+
disabled: z,
|
|
25545
25587
|
loading: !1,
|
|
25546
25588
|
onClick: () => {
|
|
25547
|
-
V(
|
|
25589
|
+
V(W);
|
|
25548
25590
|
}
|
|
25549
25591
|
}), /* @__PURE__ */ jsx(ActionButton, {
|
|
25550
25592
|
icon: /* @__PURE__ */ jsx(RightOutlined, {}),
|
|
25551
25593
|
tooltip: S("next"),
|
|
25552
|
-
disabled:
|
|
25594
|
+
disabled: z,
|
|
25553
25595
|
loading: !1,
|
|
25554
25596
|
onClick: () => {
|
|
25555
25597
|
V(B);
|
|
@@ -25557,7 +25599,7 @@ function FormActionBar({
|
|
|
25557
25599
|
})]
|
|
25558
25600
|
}), separator$2(), /* @__PURE__ */ jsx(DropdownButton, {
|
|
25559
25601
|
icon: /* @__PURE__ */ jsx(ThunderboltOutlined, {}),
|
|
25560
|
-
disabled:
|
|
25602
|
+
disabled: z,
|
|
25561
25603
|
tooltip: S("actions"),
|
|
25562
25604
|
items: e == null ? void 0 : e.action,
|
|
25563
25605
|
onItemClick: async (F) => {
|
|
@@ -25567,7 +25609,7 @@ function FormActionBar({
|
|
|
25567
25609
|
}
|
|
25568
25610
|
}), /* @__PURE__ */ jsx(DropdownButton, {
|
|
25569
25611
|
icon: /* @__PURE__ */ jsx(PrinterOutlined, {}),
|
|
25570
|
-
disabled:
|
|
25612
|
+
disabled: z,
|
|
25571
25613
|
tooltip: S("reports"),
|
|
25572
25614
|
items: e == null ? void 0 : e.print,
|
|
25573
25615
|
onItemClick: async (F) => {
|
|
@@ -25586,7 +25628,7 @@ function FormActionBar({
|
|
|
25586
25628
|
}
|
|
25587
25629
|
}), /* @__PURE__ */ jsx(DropdownButton, {
|
|
25588
25630
|
icon: /* @__PURE__ */ jsx(EnterOutlined$4, {}),
|
|
25589
|
-
disabled:
|
|
25631
|
+
disabled: z,
|
|
25590
25632
|
tooltip: S("related"),
|
|
25591
25633
|
items: e == null ? void 0 : e.relate,
|
|
25592
25634
|
onItemClick: async (F) => {
|
|
@@ -25601,7 +25643,7 @@ function FormActionBar({
|
|
|
25601
25643
|
});
|
|
25602
25644
|
}
|
|
25603
25645
|
}), /* @__PURE__ */ jsx(AttachmentsButton, {
|
|
25604
|
-
disabled:
|
|
25646
|
+
disabled: z,
|
|
25605
25647
|
attachments: _,
|
|
25606
25648
|
onAddNewAttachment: async () => {
|
|
25607
25649
|
const F = await saveDocument({
|
|
@@ -26334,8 +26376,8 @@ const GraphActionView = (e) => {
|
|
|
26334
26376
|
currentView: M
|
|
26335
26377
|
} = c || {}, [O, N] = useState$1(!0);
|
|
26336
26378
|
useEffect(() => {
|
|
26337
|
-
var
|
|
26338
|
-
(
|
|
26379
|
+
var W;
|
|
26380
|
+
(W = l.current) == null || W.refresh();
|
|
26339
26381
|
}, [S]), useEffect(() => {
|
|
26340
26382
|
t.view_id !== M.view_id && N(!0);
|
|
26341
26383
|
}, [M]);
|
|
@@ -26382,12 +26424,13 @@ const GraphActionView = (e) => {
|
|
|
26382
26424
|
...s.fields
|
|
26383
26425
|
},
|
|
26384
26426
|
searchFields: mergeSearchFields([s.search_fields, u.search_fields]),
|
|
26427
|
+
formXml: s.arch,
|
|
26385
26428
|
limit: D,
|
|
26386
26429
|
onClear: A,
|
|
26387
26430
|
offset: V,
|
|
26388
26431
|
isSearching: I,
|
|
26389
|
-
onSubmit: (
|
|
26390
|
-
N(!1), y == null || y(
|
|
26432
|
+
onSubmit: (W) => {
|
|
26433
|
+
N(!1), y == null || y(W.params), h == null || h(!1);
|
|
26391
26434
|
},
|
|
26392
26435
|
searchError: j,
|
|
26393
26436
|
searchVisible: x,
|
|
@@ -26400,7 +26443,7 @@ const GraphActionView = (e) => {
|
|
|
26400
26443
|
context: a,
|
|
26401
26444
|
domain: mergeParams(S || [], o),
|
|
26402
26445
|
limit: O ? D : void 0,
|
|
26403
|
-
manualIds: O ? g == null ? void 0 : g.map((
|
|
26446
|
+
manualIds: O ? g == null ? void 0 : g.map((W) => W.id) : void 0
|
|
26404
26447
|
})]
|
|
26405
26448
|
});
|
|
26406
26449
|
}, FormActionView = (e) => {
|
|
@@ -26499,7 +26542,7 @@ function SearchBar(e) {
|
|
|
26499
26542
|
});
|
|
26500
26543
|
}
|
|
26501
26544
|
function TreeActionBar(e) {
|
|
26502
|
-
var
|
|
26545
|
+
var U;
|
|
26503
26546
|
const {
|
|
26504
26547
|
availableViews: t,
|
|
26505
26548
|
currentView: r,
|
|
@@ -26548,28 +26591,28 @@ function TreeActionBar(e) {
|
|
|
26548
26591
|
try {
|
|
26549
26592
|
o == null || o(!0), await ConnectionProvider.getHandler().delete({
|
|
26550
26593
|
model: c,
|
|
26551
|
-
ids: a.map((
|
|
26594
|
+
ids: a.map((z) => z.id)
|
|
26552
26595
|
}), f == null || f(void 0), p == null || p(void 0), (H = d == null ? void 0 : d.current) == null || H.refreshResults();
|
|
26553
|
-
} catch (
|
|
26554
|
-
showDialog$8(
|
|
26596
|
+
} catch (z) {
|
|
26597
|
+
showDialog$8(z);
|
|
26555
26598
|
} finally {
|
|
26556
26599
|
o == null || o(!1);
|
|
26557
26600
|
}
|
|
26558
26601
|
}
|
|
26559
|
-
async function
|
|
26602
|
+
async function W() {
|
|
26560
26603
|
var H;
|
|
26561
26604
|
try {
|
|
26562
26605
|
l == null || l(!0);
|
|
26563
|
-
const
|
|
26606
|
+
const z = a[0].id;
|
|
26564
26607
|
await ConnectionProvider.getHandler().duplicate({
|
|
26565
|
-
id:
|
|
26608
|
+
id: z,
|
|
26566
26609
|
model: c,
|
|
26567
26610
|
context: {
|
|
26568
26611
|
...$
|
|
26569
26612
|
}
|
|
26570
26613
|
}) && ((H = d == null ? void 0 : d.current) == null || H.refreshResults());
|
|
26571
|
-
} catch (
|
|
26572
|
-
showDialog$8(
|
|
26614
|
+
} catch (z) {
|
|
26615
|
+
showDialog$8(z);
|
|
26573
26616
|
} finally {
|
|
26574
26617
|
l == null || l(!1);
|
|
26575
26618
|
}
|
|
@@ -26578,18 +26621,18 @@ function TreeActionBar(e) {
|
|
|
26578
26621
|
N == null || N({
|
|
26579
26622
|
actionData: H,
|
|
26580
26623
|
values: {
|
|
26581
|
-
active_id: a == null ? void 0 : a.map((
|
|
26582
|
-
active_ids: a == null ? void 0 : a.map((
|
|
26624
|
+
active_id: a == null ? void 0 : a.map((z) => z.id)[0],
|
|
26625
|
+
active_ids: a == null ? void 0 : a.map((z) => z.id)
|
|
26583
26626
|
},
|
|
26584
26627
|
fields: {},
|
|
26585
26628
|
context: {
|
|
26586
26629
|
...$,
|
|
26587
|
-
active_id: a == null ? void 0 : a.map((
|
|
26588
|
-
active_ids: a == null ? void 0 : a.map((
|
|
26630
|
+
active_id: a == null ? void 0 : a.map((z) => z.id)[0],
|
|
26631
|
+
active_ids: a == null ? void 0 : a.map((z) => z.id)
|
|
26589
26632
|
},
|
|
26590
26633
|
onRefreshParentValues: () => {
|
|
26591
|
-
var
|
|
26592
|
-
(
|
|
26634
|
+
var z;
|
|
26635
|
+
(z = d == null ? void 0 : d.current) == null || z.refreshResults();
|
|
26593
26636
|
}
|
|
26594
26637
|
});
|
|
26595
26638
|
}
|
|
@@ -26622,7 +26665,7 @@ function TreeActionBar(e) {
|
|
|
26622
26665
|
tooltip: k("duplicate"),
|
|
26623
26666
|
disabled: !a || (a == null ? void 0 : a.length) !== 1 || u || v,
|
|
26624
26667
|
loading: u,
|
|
26625
|
-
onClick:
|
|
26668
|
+
onClick: W
|
|
26626
26669
|
}), /* @__PURE__ */ jsx(ActionButton, {
|
|
26627
26670
|
icon: /* @__PURE__ */ jsx(DeleteOutlined, {}),
|
|
26628
26671
|
tooltip: k("delete"),
|
|
@@ -26675,7 +26718,7 @@ function TreeActionBar(e) {
|
|
|
26675
26718
|
...H,
|
|
26676
26719
|
datas: {
|
|
26677
26720
|
...H.datas || {},
|
|
26678
|
-
ids: a.map((
|
|
26721
|
+
ids: a.map((z) => z.id)
|
|
26679
26722
|
}
|
|
26680
26723
|
});
|
|
26681
26724
|
}
|
|
@@ -26718,15 +26761,15 @@ function TreeActionBar(e) {
|
|
|
26718
26761
|
}],
|
|
26719
26762
|
onItemClick: (H) => {
|
|
26720
26763
|
if (H.id === "print_screen") {
|
|
26721
|
-
let
|
|
26722
|
-
|
|
26764
|
+
let z = (a == null ? void 0 : a.map((K) => K.id)) || [];
|
|
26765
|
+
z.length === 0 && (z = (C == null ? void 0 : C.map((K) => K.id)) || []), L({
|
|
26723
26766
|
id: -1,
|
|
26724
26767
|
model: c,
|
|
26725
26768
|
report_name: "printscreen.list",
|
|
26726
26769
|
type: "ir.actions.report.xml",
|
|
26727
26770
|
datas: {
|
|
26728
26771
|
model: c,
|
|
26729
|
-
ids:
|
|
26772
|
+
ids: z
|
|
26730
26773
|
}
|
|
26731
26774
|
});
|
|
26732
26775
|
return;
|
|
@@ -26739,7 +26782,7 @@ function TreeActionBar(e) {
|
|
|
26739
26782
|
locale: M,
|
|
26740
26783
|
onClose: () => I(!1),
|
|
26741
26784
|
model: c,
|
|
26742
|
-
domain: mergeParams(((
|
|
26785
|
+
domain: mergeParams(((U = d == null ? void 0 : d.current) == null ? void 0 : U.getDomain()) || [], g || []),
|
|
26743
26786
|
limit: w,
|
|
26744
26787
|
totalRegisters: D || 0,
|
|
26745
26788
|
selectedRegistersToExport: a,
|
|
@@ -26905,18 +26948,18 @@ function ActionView(e, t) {
|
|
|
26905
26948
|
action_type: m,
|
|
26906
26949
|
treeExpandable: y = !1,
|
|
26907
26950
|
limit: x
|
|
26908
|
-
} = e, [h, v] = useState$1(), [_, b] = useState$1([]), [C, w] = useState$1(!0), D = p || void 0, [$, S] = useState$1(D), [P, k] = useState$1([]), [M, O] = useState$1(), [N, A] = useState$1([]), [I, j] = useState$1(), [V, B] = useState$1(0), [
|
|
26951
|
+
} = e, [h, v] = useState$1(), [_, b] = useState$1([]), [C, w] = useState$1(!0), D = p || void 0, [$, S] = useState$1(D), [P, k] = useState$1([]), [M, O] = useState$1(), [N, A] = useState$1([]), [I, j] = useState$1(), [V, B] = useState$1(0), [W, L] = useState$1(!1), [U, H] = useState$1(!1), [z, K] = useState$1(), {
|
|
26909
26952
|
t: F
|
|
26910
26953
|
} = useContext(LocaleContext), q = useRef(), G = useRef(), Q = useContext(TabManagerContext), {
|
|
26911
26954
|
setCurrentView: X,
|
|
26912
26955
|
setCurrentId: E,
|
|
26913
26956
|
tabs: T,
|
|
26914
|
-
activeKey:
|
|
26957
|
+
activeKey: Y,
|
|
26915
26958
|
openAction: Z
|
|
26916
26959
|
} = Q || {};
|
|
26917
26960
|
useHotkeys("ctrl+g,command+g", (ie) => {
|
|
26918
26961
|
ie.preventDefault(), se();
|
|
26919
|
-
}, [
|
|
26962
|
+
}, [Y, T, h, M, N]);
|
|
26920
26963
|
function ee(ie) {
|
|
26921
26964
|
S(ie), E == null || E(ie);
|
|
26922
26965
|
}
|
|
@@ -27002,13 +27045,13 @@ Please, make sure the view ids on the fields_view_get responses are the same as
|
|
|
27002
27045
|
const ie = _.find((ue) => ue.type === "tree"), ge = _.find((ue) => c.id ? ue.type === c.type && ue.view_id === c.id : ue.type === c.type);
|
|
27003
27046
|
J(ge || ie), p ? E == null || E(D) : (ee(void 0), O(void 0)), te();
|
|
27004
27047
|
}, [n, o, p]), useEffect(() => {
|
|
27005
|
-
|
|
27006
|
-
}, [T,
|
|
27048
|
+
Y === l && (E == null || E($), X == null || X(h));
|
|
27049
|
+
}, [T, Y]);
|
|
27007
27050
|
async function re() {
|
|
27008
27051
|
return h.type === "form" ? await q.current.cancelUnsavedChanges() : !0;
|
|
27009
27052
|
}
|
|
27010
27053
|
async function se() {
|
|
27011
|
-
|
|
27054
|
+
Y === l && (h.type === "form" && !await q.current.cancelUnsavedChanges() || L(!0));
|
|
27012
27055
|
}
|
|
27013
27056
|
async function _e(ie) {
|
|
27014
27057
|
var me;
|
|
@@ -27076,7 +27119,7 @@ Please, make sure the view ids on the fields_view_get responses are the same as
|
|
|
27076
27119
|
formView: _.find((ge) => ge.type === "form"),
|
|
27077
27120
|
treeView: ie,
|
|
27078
27121
|
searchTreeRef: G,
|
|
27079
|
-
searchTreeNameSearch:
|
|
27122
|
+
searchTreeNameSearch: z,
|
|
27080
27123
|
availableViews: _,
|
|
27081
27124
|
results: N,
|
|
27082
27125
|
setCurrentItemIndex: O,
|
|
@@ -27131,13 +27174,13 @@ Please, make sure the view ids on the fields_view_get responses are the same as
|
|
|
27131
27174
|
selectedRowItems: P,
|
|
27132
27175
|
setSelectedRowItems: k,
|
|
27133
27176
|
setSearchTreeNameSearch: K,
|
|
27134
|
-
searchTreeNameSearch:
|
|
27177
|
+
searchTreeNameSearch: z,
|
|
27135
27178
|
goToResourceId: _e,
|
|
27136
27179
|
limit: x,
|
|
27137
27180
|
children: [be(), /* @__PURE__ */ jsx(GoToResourceModal, {
|
|
27138
|
-
visible:
|
|
27181
|
+
visible: W,
|
|
27139
27182
|
onIdSubmitted: _e,
|
|
27140
|
-
isSearching:
|
|
27183
|
+
isSearching: U,
|
|
27141
27184
|
onCancel: () => {
|
|
27142
27185
|
L(!1);
|
|
27143
27186
|
}
|
|
@@ -27333,11 +27376,11 @@ function DashboardTree(e) {
|
|
|
27333
27376
|
domain: o = [],
|
|
27334
27377
|
visible: s = !0,
|
|
27335
27378
|
parentContext: u = {}
|
|
27336
|
-
} = e, [l, c] = useState$1(!1), [d, f] = useState$1(!1), [p, g] = useState$1(), [m, y] = useState$1(), [x, h] = useState$1(), [v, _] = useState$1(1), [b, C] = useState$1(0), w = useRef(DEFAULT_SEARCH_LIMIT), D = useRef([]), [$, S] = useState$1(0), [P, k] = useState$1([]), [M, O] = useState$1(void 0), [N, A] = useState$1(), [I, j] = useState$1(), [V, B] = useState$1(), [
|
|
27379
|
+
} = e, [l, c] = useState$1(!1), [d, f] = useState$1(!1), [p, g] = useState$1(), [m, y] = useState$1(), [x, h] = useState$1(), [v, _] = useState$1(1), [b, C] = useState$1(0), w = useRef(DEFAULT_SEARCH_LIMIT), D = useRef([]), [$, S] = useState$1(0), [P, k] = useState$1([]), [M, O] = useState$1(void 0), [N, A] = useState$1(), [I, j] = useState$1(), [V, B] = useState$1(), [W, L] = useState$1(!1), U = useRef([]), H = (E) => {
|
|
27337
27380
|
L(!0), _(E), C((E - 1) * w.current);
|
|
27338
|
-
},
|
|
27339
|
-
const E =
|
|
27340
|
-
colors:
|
|
27381
|
+
}, z = async () => {
|
|
27382
|
+
const E = U.current.length > 0 ? U.current : o, T = mergeParams(D.current, E), {
|
|
27383
|
+
colors: Y
|
|
27341
27384
|
} = getTree(m), {
|
|
27342
27385
|
totalItems: Z,
|
|
27343
27386
|
results: ee,
|
|
@@ -27349,8 +27392,8 @@ function DashboardTree(e) {
|
|
|
27349
27392
|
model: p,
|
|
27350
27393
|
fields: m.fields,
|
|
27351
27394
|
context: u,
|
|
27352
|
-
attrs:
|
|
27353
|
-
colors:
|
|
27395
|
+
attrs: Y && {
|
|
27396
|
+
colors: Y
|
|
27354
27397
|
}
|
|
27355
27398
|
}), te = await Z;
|
|
27356
27399
|
S(te), O(getColorMap(J));
|
|
@@ -27365,7 +27408,7 @@ function DashboardTree(e) {
|
|
|
27365
27408
|
k(re);
|
|
27366
27409
|
}, K = async () => {
|
|
27367
27410
|
try {
|
|
27368
|
-
L(!0), await
|
|
27411
|
+
L(!0), await z();
|
|
27369
27412
|
} catch (E) {
|
|
27370
27413
|
j(JSON.stringify(E));
|
|
27371
27414
|
} finally {
|
|
@@ -27389,7 +27432,7 @@ function DashboardTree(e) {
|
|
|
27389
27432
|
action: t,
|
|
27390
27433
|
context: u
|
|
27391
27434
|
});
|
|
27392
|
-
|
|
27435
|
+
U.current = E.domain, h(E.views.get("form")), y(E.views.get("tree")), g(E.model), w.current = E.limit;
|
|
27393
27436
|
}, G = async () => {
|
|
27394
27437
|
g(r);
|
|
27395
27438
|
const E = await ConnectionProvider.getHandler().getView({
|
|
@@ -27435,7 +27478,7 @@ function DashboardTree(e) {
|
|
|
27435
27478
|
treeView: m,
|
|
27436
27479
|
results: P,
|
|
27437
27480
|
onRequestPageChange: H,
|
|
27438
|
-
loading:
|
|
27481
|
+
loading: W,
|
|
27439
27482
|
onRowClicked: Q,
|
|
27440
27483
|
colorsForResults: M,
|
|
27441
27484
|
sorter: N,
|
|
@@ -27654,16 +27697,16 @@ function Dashboard(e, t) {
|
|
|
27654
27697
|
title: j,
|
|
27655
27698
|
views: V,
|
|
27656
27699
|
model: B,
|
|
27657
|
-
context:
|
|
27700
|
+
context: W,
|
|
27658
27701
|
domain: L,
|
|
27659
|
-
initialView:
|
|
27702
|
+
initialView: U,
|
|
27660
27703
|
limit: H
|
|
27661
27704
|
} = P;
|
|
27662
|
-
let
|
|
27705
|
+
let z = {};
|
|
27663
27706
|
try {
|
|
27664
|
-
|
|
27707
|
+
z = JSON.parse(M.replace(/'/g, '"'));
|
|
27665
27708
|
} catch {
|
|
27666
|
-
|
|
27709
|
+
z = {
|
|
27667
27710
|
x: S * 2,
|
|
27668
27711
|
y: 0,
|
|
27669
27712
|
w: 2,
|
|
@@ -27671,20 +27714,20 @@ function Dashboard(e, t) {
|
|
|
27671
27714
|
};
|
|
27672
27715
|
}
|
|
27673
27716
|
let K = null;
|
|
27674
|
-
if ((
|
|
27717
|
+
if ((U == null ? void 0 : U.type) === "graph")
|
|
27675
27718
|
K = /* @__PURE__ */ jsx(Graph, {
|
|
27676
27719
|
view_id: V.filter((G) => G[1] === "graph")[0][0],
|
|
27677
27720
|
model: B,
|
|
27678
|
-
context:
|
|
27721
|
+
context: W,
|
|
27679
27722
|
domain: L,
|
|
27680
27723
|
limit: H
|
|
27681
27724
|
});
|
|
27682
|
-
else if ((
|
|
27725
|
+
else if ((U == null ? void 0 : U.type) === "form")
|
|
27683
27726
|
K = /* @__PURE__ */ jsx(DashboardForm, {
|
|
27684
27727
|
model: B,
|
|
27685
27728
|
actionDomain: L
|
|
27686
27729
|
});
|
|
27687
|
-
else if ((
|
|
27730
|
+
else if ((U == null ? void 0 : U.type) === "tree")
|
|
27688
27731
|
K = /* @__PURE__ */ jsx(DashboardTree, {
|
|
27689
27732
|
model: B,
|
|
27690
27733
|
domain: L,
|
|
@@ -27697,12 +27740,12 @@ function Dashboard(e, t) {
|
|
|
27697
27740
|
if (Q) {
|
|
27698
27741
|
const [X, E] = Q, {
|
|
27699
27742
|
actionId: T,
|
|
27700
|
-
actionType:
|
|
27743
|
+
actionType: Y,
|
|
27701
27744
|
title: Z,
|
|
27702
27745
|
model: ee
|
|
27703
27746
|
} = P, J = {
|
|
27704
27747
|
action_id: T,
|
|
27705
|
-
action_type:
|
|
27748
|
+
action_type: Y,
|
|
27706
27749
|
name: Z,
|
|
27707
27750
|
res_id: G.id,
|
|
27708
27751
|
res_model: ee,
|
|
@@ -27713,11 +27756,11 @@ function Dashboard(e, t) {
|
|
|
27713
27756
|
}
|
|
27714
27757
|
}
|
|
27715
27758
|
});
|
|
27716
|
-
else if (
|
|
27717
|
-
const G =
|
|
27718
|
-
...
|
|
27719
|
-
id:
|
|
27720
|
-
} :
|
|
27759
|
+
else if (U !== void 0) {
|
|
27760
|
+
const G = U && Array.isArray(U.id) ? {
|
|
27761
|
+
...U,
|
|
27762
|
+
id: U.id[0]
|
|
27763
|
+
} : U;
|
|
27721
27764
|
K = /* @__PURE__ */ jsx(ActionView$1, {
|
|
27722
27765
|
action_id: N,
|
|
27723
27766
|
action_type: A,
|
|
@@ -27725,7 +27768,7 @@ function Dashboard(e, t) {
|
|
|
27725
27768
|
title: j,
|
|
27726
27769
|
views: V,
|
|
27727
27770
|
model: B,
|
|
27728
|
-
context:
|
|
27771
|
+
context: W,
|
|
27729
27772
|
domain: L,
|
|
27730
27773
|
setCanWeClose: () => {
|
|
27731
27774
|
},
|
|
@@ -27743,14 +27786,14 @@ function Dashboard(e, t) {
|
|
|
27743
27786
|
actionId: X,
|
|
27744
27787
|
actionType: E,
|
|
27745
27788
|
title: T,
|
|
27746
|
-
model:
|
|
27789
|
+
model: Y
|
|
27747
27790
|
} = P;
|
|
27748
27791
|
F = {
|
|
27749
27792
|
action_id: X,
|
|
27750
27793
|
action_type: E,
|
|
27751
27794
|
name: T,
|
|
27752
27795
|
res_id: !1,
|
|
27753
|
-
res_model:
|
|
27796
|
+
res_model: Y,
|
|
27754
27797
|
view_id: G,
|
|
27755
27798
|
view_type: Q
|
|
27756
27799
|
};
|
|
@@ -27758,7 +27801,7 @@ function Dashboard(e, t) {
|
|
|
27758
27801
|
return /* @__PURE__ */ jsx(DashboardGridItem, {
|
|
27759
27802
|
id: O,
|
|
27760
27803
|
title: j,
|
|
27761
|
-
parms:
|
|
27804
|
+
parms: z,
|
|
27762
27805
|
action: F,
|
|
27763
27806
|
openAction: g,
|
|
27764
27807
|
children: K
|
|
@@ -28112,9 +28155,9 @@ function RootView(e, t) {
|
|
|
28112
28155
|
views: j,
|
|
28113
28156
|
name: V,
|
|
28114
28157
|
target: B,
|
|
28115
|
-
view_type:
|
|
28158
|
+
view_type: W,
|
|
28116
28159
|
limit: L
|
|
28117
|
-
} = P,
|
|
28160
|
+
} = P, U = W === "tree", H = [];
|
|
28118
28161
|
for (const K of j) {
|
|
28119
28162
|
const [F, q] = K;
|
|
28120
28163
|
if (F)
|
|
@@ -28136,16 +28179,16 @@ function RootView(e, t) {
|
|
|
28136
28179
|
H.push([G, q]);
|
|
28137
28180
|
}
|
|
28138
28181
|
}
|
|
28139
|
-
let
|
|
28182
|
+
let z;
|
|
28140
28183
|
if (D) {
|
|
28141
28184
|
const [K, F] = H.find(([q, G]) => G === D);
|
|
28142
|
-
|
|
28185
|
+
z = {
|
|
28143
28186
|
id: K,
|
|
28144
28187
|
type: F
|
|
28145
28188
|
};
|
|
28146
28189
|
} else {
|
|
28147
28190
|
const [K, F] = H[0];
|
|
28148
|
-
|
|
28191
|
+
z = {
|
|
28149
28192
|
id: K,
|
|
28150
28193
|
type: F
|
|
28151
28194
|
};
|
|
@@ -28160,13 +28203,13 @@ function RootView(e, t) {
|
|
|
28160
28203
|
views: H,
|
|
28161
28204
|
title: V,
|
|
28162
28205
|
target: B,
|
|
28163
|
-
initialView:
|
|
28206
|
+
initialView: z,
|
|
28164
28207
|
action_type: k,
|
|
28165
28208
|
action_id: O,
|
|
28166
28209
|
values: C,
|
|
28167
28210
|
forced_values: w,
|
|
28168
28211
|
res_id: $,
|
|
28169
|
-
treeExpandable:
|
|
28212
|
+
treeExpandable: U,
|
|
28170
28213
|
limit: L
|
|
28171
28214
|
});
|
|
28172
28215
|
}
|
|
@@ -28210,7 +28253,7 @@ function RootView(e, t) {
|
|
|
28210
28253
|
...n
|
|
28211
28254
|
},
|
|
28212
28255
|
fields: C
|
|
28213
|
-
}),
|
|
28256
|
+
}), W = k ? await ConnectionProvider.getHandler().evalDomain({
|
|
28214
28257
|
domain: k,
|
|
28215
28258
|
values: transformPlainMany2Ones({
|
|
28216
28259
|
fields: C,
|
|
@@ -28233,7 +28276,7 @@ function RootView(e, t) {
|
|
|
28233
28276
|
...a,
|
|
28234
28277
|
...B
|
|
28235
28278
|
},
|
|
28236
|
-
domain:
|
|
28279
|
+
domain: W,
|
|
28237
28280
|
title: N,
|
|
28238
28281
|
initialView: V,
|
|
28239
28282
|
action_id: D,
|
|
@@ -28268,13 +28311,13 @@ function RootView(e, t) {
|
|
|
28268
28311
|
target: I,
|
|
28269
28312
|
view_type: j,
|
|
28270
28313
|
limit: V
|
|
28271
|
-
} = P, B = j === "tree",
|
|
28272
|
-
for (const
|
|
28273
|
-
const [K, F] =
|
|
28314
|
+
} = P, B = j === "tree", W = [];
|
|
28315
|
+
for (const z of N) {
|
|
28316
|
+
const [K, F] = z;
|
|
28274
28317
|
if (K)
|
|
28275
|
-
|
|
28318
|
+
W.push(z);
|
|
28276
28319
|
else if (F === "dashboard")
|
|
28277
|
-
|
|
28320
|
+
W.push([void 0, "dashboard"]);
|
|
28278
28321
|
else {
|
|
28279
28322
|
const {
|
|
28280
28323
|
view_id: q
|
|
@@ -28287,18 +28330,18 @@ function RootView(e, t) {
|
|
|
28287
28330
|
...k
|
|
28288
28331
|
}
|
|
28289
28332
|
});
|
|
28290
|
-
|
|
28333
|
+
W.push([q, F]);
|
|
28291
28334
|
}
|
|
28292
28335
|
}
|
|
28293
|
-
let L,
|
|
28336
|
+
let L, U;
|
|
28294
28337
|
if ($ == null) {
|
|
28295
|
-
const
|
|
28296
|
-
L = void 0,
|
|
28338
|
+
const z = W.find((K) => K[0] === void 0);
|
|
28339
|
+
L = void 0, U = z[1];
|
|
28297
28340
|
} else
|
|
28298
|
-
[L,
|
|
28341
|
+
[L, U] = W.find((z) => z[0] === void 0 ? !1 : z[0] === $);
|
|
28299
28342
|
const H = {
|
|
28300
28343
|
id: L,
|
|
28301
|
-
type:
|
|
28344
|
+
type: U
|
|
28302
28345
|
};
|
|
28303
28346
|
_({
|
|
28304
28347
|
domain: M,
|
|
@@ -28307,7 +28350,7 @@ function RootView(e, t) {
|
|
|
28307
28350
|
...k
|
|
28308
28351
|
},
|
|
28309
28352
|
model: O,
|
|
28310
|
-
views:
|
|
28353
|
+
views: W,
|
|
28311
28354
|
title: A,
|
|
28312
28355
|
target: I,
|
|
28313
28356
|
initialView: H,
|
|
@@ -28595,13 +28638,13 @@ const FavouriteButton = (e) => {
|
|
|
28595
28638
|
const V = b.view_id;
|
|
28596
28639
|
let B = !1;
|
|
28597
28640
|
b.type === "form" && (B = C || !1);
|
|
28598
|
-
const
|
|
28641
|
+
const W = await r({
|
|
28599
28642
|
action_id: I,
|
|
28600
28643
|
action_type: j,
|
|
28601
28644
|
view_id: V,
|
|
28602
28645
|
res_id: B
|
|
28603
28646
|
});
|
|
28604
|
-
|
|
28647
|
+
W !== !1 && m(W), s(W !== !1);
|
|
28605
28648
|
}
|
|
28606
28649
|
async function k() {
|
|
28607
28650
|
l(!1), w == null || w({
|
|
@@ -28682,7 +28725,7 @@ const FavouriteButton = (e) => {
|
|
|
28682
28725
|
else {
|
|
28683
28726
|
if (!b)
|
|
28684
28727
|
return;
|
|
28685
|
-
const A = v.find((
|
|
28728
|
+
const A = v.find((W) => W.key === _), {
|
|
28686
28729
|
id: I,
|
|
28687
28730
|
type: j
|
|
28688
28731
|
} = (A == null ? void 0 : A.action) || {}, V = b.view_id;
|